Skip to content

Commit

Permalink
added missing exports
Browse files Browse the repository at this point in the history
  • Loading branch information
volar committed Oct 19, 2023
1 parent 4364429 commit 0a462db
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/subjectSelect/selectStrategies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ interface DataTableSelectStrategy {
}) => Set<unknown>
}

export const generateSelectStrategy = (min: number, max: number): DataTableSelectStrategy => {
export const generateDatatableMinMaxSelectStrategy = (min: number, max: number): DataTableSelectStrategy => {
return {
showSelectAll: false,
allSelected: () => [],
Expand Down
4 changes: 4 additions & 0 deletions src/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ import AAssetSelect from '@/components/dam/assetSelect/AAssetSelect.vue'
import ASortable from '@/components/sortable/ASortable.vue'
import ASortableNested from '@/components/sortable/ASortableNested.vue'
import ASubjectSelect from '@/components/subjectSelect/ASubjectSelect.vue'
import ACheckboxSimple from '@/components/ACheckboxSimple.vue'
import { useSubjectSelect } from '@/components/subjectSelect/useSubjectSelect'
import { generateDatatableMinMaxSelectStrategy } from '@/components/subjectSelect/selectStrategies'
import { i18n } from '@/plugins/i18n'
import {
type Immutable,
Expand Down Expand Up @@ -332,6 +334,7 @@ export {
ASortable,
ASortableNested,
ASubjectSelect,
ACheckboxSimple,

// Dam
AAssetSelect,
Expand All @@ -358,6 +361,7 @@ export {
modifyLanguageSettings,
useLoginStatus,
useSubjectSelect,
generateDatatableMinMaxSelectStrategy,

// VALUE OBJECTS
Grant,
Expand Down
4 changes: 2 additions & 2 deletions src/playground/subjectSelectView/PollSelectTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { toRef } from 'vue'
import ADatetime from '@/components/ADatetime.vue'
import { usePollSelectStore } from '@/playground/subjectSelectView/pollSelectStore'
import PollSelectFilter from '@/playground/subjectSelectView/PollSelectFilter.vue'
import { generateSelectStrategy } from '@/components/subjectSelect/selectStrategies'
import { generateDatatableMinMaxSelectStrategy } from '@/components/subjectSelect/selectStrategies'
import ACheckboxSimple from '@/components/ACheckboxSimple.vue'
import { useSubjectSelect } from '@/components/subjectSelect/useSubjectSelect'
import { fetchPollListDemo, type PollDemo } from '@/playground/subjectSelectView/pollDemoApi'
Expand Down Expand Up @@ -114,7 +114,7 @@ const onConfirm = (items: Array<PollDemo>) => {
:loading="loading"
item-value="id"
return-object
:select-strategy="generateSelectStrategy(minCount, maxCount) as any"
:select-strategy="generateDatatableMinMaxSelectStrategy(minCount, maxCount) as any"
@click:row.stop="onRowClick"
>
<template #item.data-table-select="{ internalItem, toggleSelect, isSelected }">
Expand Down

0 comments on commit 0a462db

Please sign in to comment.