@cnamts/synapse 1.0.23 → 1.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AutocompleteFilter-BWLR3U7W.js +114 -0
- package/dist/AutocompleteFilter-D9jzRzAL.cjs +1 -0
- package/dist/{DateFilter-Dc-gSGwk.js → DateFilter-BpwFexzi.js} +1 -1
- package/dist/DateFilter-DTUl8hb1.cjs +1 -0
- package/dist/{NumberFilter-vP38Wp6j.js → NumberFilter-Bz_NTdX9.js} +3 -3
- package/dist/NumberFilter-MAEojdk0.cjs +1 -0
- package/dist/PeriodFilter-CC4WgIhl.cjs +1 -0
- package/dist/{PeriodFilter-Ba1uYUnT.js → PeriodFilter-DX_wy9g-.js} +1 -1
- package/dist/SelectFilter-BR3fvl-a.cjs +1 -0
- package/dist/SelectFilter-xqiPtPgX.js +135 -0
- package/dist/{TextFilter-B84dpnoq.js → TextFilter-BBl3JFqK.js} +7 -7
- package/dist/TextFilter-CCfYFl5F.cjs +1 -0
- package/dist/apLightTheme-CFSRrjv2.cjs +1 -0
- package/dist/apLightTheme-D1P4jcD0.js +1231 -0
- package/dist/components/Amelipro/AmeliproAutoCompleteField/AmeliproAutoCompleteField.d.ts +7022 -9616
- package/dist/components/Amelipro/AmeliproCarousel/AmeliproCarousel.d.ts +2 -2
- package/dist/components/Amelipro/AmeliproIconBtn/AmeliproIconBtn.d.ts +2 -2
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressCityRow/AmeliproPostalAddressCityRow.d.ts +40 -40
- package/dist/components/Amelipro/AmeliproPostalAddressField/AmeliproPostalAddressField.d.ts +60 -60
- package/dist/components/Amelipro/AmeliproSelect/AmeliproSelect.d.ts +7168 -9762
- package/dist/components/Amelipro/AmeliproStepper/AmeliproStepper.d.ts +2 -2
- package/dist/components/Amelipro/AmeliproTabs/AmeliproTabs.d.ts +7501 -10095
- package/dist/components/Amelipro/AmeliproTextArea/AmeliproTextArea.d.ts +21 -21
- package/dist/components/Amelipro/AmeliproTextField/AmeliproTextField.d.ts +41 -41
- package/dist/components/Amelipro/StructureMenu/StructureTabs/StructureTabs.d.ts +2 -2
- package/dist/components/CookiesSelection/CookiesInformation/CookiesInformation.d.ts +20 -498
- package/dist/components/Customs/Selects/SyAutocomplete/SyAutocomplete.d.ts +108 -146
- package/dist/components/Customs/Selects/SyInputSelect/SyInputSelect.d.ts +5 -5
- package/dist/components/Customs/Selects/SySelect/SySelect.d.ts +12 -16
- package/dist/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.d.ts +8 -8
- package/dist/components/Customs/SyCheckbox/SyCheckbox.d.ts +28 -506
- package/dist/components/Customs/SyRadioGroup/SyRadioGroup.d.ts +28 -506
- package/dist/components/Customs/SyTextField/SyTextField.d.ts +65 -85
- package/dist/components/DatePicker/CalendarMode/DatePicker.d.ts +627 -771
- package/dist/components/DatePicker/ComplexDatePicker/ComplexDatePicker.d.ts +315 -402
- package/dist/components/DatePicker/DateTextInput/DateTextInput.d.ts +112 -155
- package/dist/components/DatePicker/composables/index.d.ts +1 -0
- package/dist/components/DatePicker/composables/useDatePickerFocusTrap.d.ts +11 -0
- package/dist/components/DatePicker/composables/useDateTextField.d.ts +4 -4
- package/dist/components/DatePicker/composables/useDateValidation.d.ts +3 -3
- package/dist/components/DatePicker/composables/useInputBlurHandler.d.ts +2 -2
- package/dist/components/DatePicker/composables/useManualDateValidation.d.ts +2 -2
- package/dist/components/HeaderNavigationBar/HeaderNavigationBar.d.ts +4 -4
- package/dist/components/HeaderToolbar/HeaderToolbar.d.ts +20 -28
- package/dist/components/LunarCalendar/useLunarCalendarValidation.d.ts +3 -3
- package/dist/components/MonthPicker/MonthPicker.d.ts +86 -122
- package/dist/components/MonthPicker/MonthPickerText/MonthPickerInput.d.ts +85 -121
- package/dist/components/NirField/NirField.d.ts +206 -270
- package/dist/components/NirField/locales.d.ts +10 -10
- package/dist/components/NirField/useNirValidation.d.ts +64 -0
- package/dist/components/PasswordField/PasswordField.d.ts +8 -9
- package/dist/components/PeriodField/PeriodField.d.ts +1352 -1640
- package/dist/components/PhoneField/PhoneField.d.ts +88 -124
- package/dist/components/RangeField/RangeSlider/RangeSlider.d.ts +12 -12
- package/dist/components/SyTextArea/SyTextArea.d.ts +34 -14
- package/dist/components/SyTextArea/useDefaultValidationRules.d.ts +11 -0
- package/dist/components/Tables/SyServerTable/SyServerTable.d.ts +9 -6
- package/dist/components/Tables/SyTable/SyTable.d.ts +9 -6
- package/dist/components/Tables/common/SyTableFilter.d.ts +2 -3
- package/dist/components/Tables/common/SyTablePagination.d.ts +17 -19
- package/dist/components/Tables/common/filters/AutocompleteFilter.d.ts +120 -0
- package/dist/components/Tables/common/filters/locales.d.ts +0 -1
- package/dist/components/Tables/common/types.d.ts +19 -3
- package/dist/components/Tables/common/useClickableTableRow.d.ts +17 -0
- package/dist/components/Tables/common/usePagination.d.ts +3 -1
- package/dist/components/Tables/common/usePinnedColumns.d.ts +31 -0
- package/dist/components/Tables/common/useTableHeaders.d.ts +2 -0
- package/dist/components/Tables/common/useTableRowCheckboxAccessibility.d.ts +5 -0
- package/dist/components/UploadWorkflow/UploadWorkflow.d.ts +6 -6
- package/dist/composables/date/useDatePickerAccessibility.d.ts +1 -1
- package/dist/composables/rules/useFieldValidation.d.ts +4 -4
- package/dist/composables/unifyValidation/useCustomValidation.d.ts +8 -0
- package/dist/composables/unifyValidation/useValidation.d.ts +102 -0
- package/dist/composables/unifyValidation/useVuetifyValidation.d.ts +18 -0
- package/dist/composables/useFormFieldErrorHandling.d.ts +2 -2
- package/dist/composables/validation/useFormValidation.d.ts +11 -2
- package/dist/composables/validation/useValidation.d.ts +15 -9
- package/dist/design-system-v3.d.ts +2 -0
- package/dist/design-system-v3.js +186 -187
- package/dist/design-system-v3.umd.cjs +1 -1066
- package/dist/{main-aLKwdMi1.js → main-BtTqyn4z.js} +16434 -15672
- package/dist/main-C1e3eoxd.cjs +1067 -0
- package/dist/main.d.ts +0 -1
- package/dist/synapse.css +1 -0
- package/dist/tooth-11-D3sLWv2n.cjs +1 -0
- package/dist/tooth-12-CXrLuH03.cjs +1 -0
- package/dist/tooth-13-BSfo5fpT.cjs +1 -0
- package/dist/tooth-14-DMzulx0h.cjs +1 -0
- package/dist/tooth-15-BKRFVi-9.cjs +1 -0
- package/dist/tooth-16-CpuxAbuM.cjs +1 -0
- package/dist/tooth-17-BPoahUdg.cjs +1 -0
- package/dist/tooth-18-DhHJz8sy.cjs +1 -0
- package/dist/tooth-21-Dgd5hn_X.cjs +1 -0
- package/dist/tooth-22-C2Tn19sB.cjs +1 -0
- package/dist/tooth-23-C9uaaSGb.cjs +1 -0
- package/dist/tooth-24-BrK9UGpf.cjs +1 -0
- package/dist/tooth-25-CE_EfGNp.cjs +1 -0
- package/dist/tooth-26-Ctv4i9Fy.cjs +1 -0
- package/dist/tooth-27-C5J7JkWM.cjs +1 -0
- package/dist/tooth-28-Z9oWqjo0.cjs +1 -0
- package/dist/tooth-31-BrYqmkTi.cjs +1 -0
- package/dist/tooth-32-BNNR0oCZ.cjs +1 -0
- package/dist/tooth-33-DuxvqO2J.cjs +1 -0
- package/dist/tooth-34-BCSCXMB6.cjs +1 -0
- package/dist/tooth-35-BLUXkX88.cjs +1 -0
- package/dist/tooth-36-IrKHYqlA.cjs +1 -0
- package/dist/tooth-37-BYqpdMwo.cjs +1 -0
- package/dist/tooth-38-B_eNXXdu.cjs +1 -0
- package/dist/tooth-41-Ddva4Ot8.cjs +1 -0
- package/dist/tooth-42-szcDqlM0.cjs +1 -0
- package/dist/tooth-43-B3ka6rQm.cjs +1 -0
- package/dist/tooth-44-CazyQucj.cjs +1 -0
- package/dist/tooth-45-B4HQtc8n.cjs +1 -0
- package/dist/tooth-46-BPM40gbG.cjs +1 -0
- package/dist/tooth-47-Dvr20dlh.cjs +1 -0
- package/dist/tooth-48-Bd8ljGsF.cjs +1 -0
- package/dist/tooth-51-OBpwCOF3.cjs +1 -0
- package/dist/tooth-52-aKxyHcmq.cjs +1 -0
- package/dist/tooth-53-vCwJjTOc.cjs +1 -0
- package/dist/tooth-54-DsWu2iFy.cjs +1 -0
- package/dist/tooth-55-BxC1X2Dn.cjs +1 -0
- package/dist/tooth-61-BbLvxMQi.cjs +1 -0
- package/dist/tooth-62-CmTkWczP.cjs +1 -0
- package/dist/tooth-63-DI7l_2qI.cjs +1 -0
- package/dist/tooth-64-B21sOsJh.cjs +1 -0
- package/dist/tooth-65-D2ZC2VEr.cjs +1 -0
- package/dist/tooth-71-D473PPO5.cjs +1 -0
- package/dist/tooth-72-Drh1wnNu.cjs +1 -0
- package/dist/tooth-73-DzlwYI23.cjs +1 -0
- package/dist/tooth-74-8aGvcZPg.cjs +1 -0
- package/dist/tooth-75-BFK7At_r.cjs +1 -0
- package/dist/tooth-81-BZmR-I0M.cjs +1 -0
- package/dist/tooth-82-euVfUUZV.cjs +1 -0
- package/dist/tooth-83-KV010j64.cjs +1 -0
- package/dist/tooth-84-BBg1RjhZ.cjs +1 -0
- package/dist/tooth-85-Cr-kc1wM.cjs +1 -0
- package/dist/vuetifyConfig.js +561 -0
- package/dist/vuetifyConfig.umd.cjs +1 -0
- package/package.json +10 -4
- package/src/assets/overrides/_btns.scss +0 -6
- package/src/assets/overrides/_icons.scss +9 -1
- package/src/assets/overrides/_typography.scss +0 -10
- package/src/components/Amelipro/AmeliproAutoCompleteField/__tests__/__snapshots__/AmeliproAutoCompleteField.spec.ts.snap +2 -2
- package/src/components/Amelipro/AmeliproHeader/AmeliproHeaderBar/AmeliproHeaderBrandSection/__tests__/__snapshots__/AmeliproHeaderBrandSection.spec.ts.snap +1 -1
- package/src/components/Amelipro/AmeliproTextArea/__tests__/__snapshots__/AmeliproTextArea.spec.ts.snap +2 -2
- package/src/components/Captcha/accessibilite/Accessibility.mdx +86 -8
- package/src/components/Captcha/tests/__snapshots__/Captcha.spec.ts.snap +12 -12
- package/src/components/ChipList/ChipList.stories.ts +0 -15
- package/src/components/ChipList/ChipList.vue +5 -1
- package/src/components/ChipList/accessibilite/Accessibility.mdx +83 -10
- package/src/components/ChipList/tests/ChipList.a11y.spec.ts +41 -0
- package/src/components/Customs/Selects/SelectBtnField/accessibilite/Accessibility.mdx +0 -9
- package/src/components/Customs/Selects/SyAutocomplete/SyAutocomplete.vue +22 -5
- package/src/components/Customs/Selects/SyAutocomplete/tests/SyAutocomplete.spec.ts +143 -0
- package/src/components/Customs/Selects/SyAutocomplete/utils/ariaManager.ts +14 -10
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.stories.ts +4 -4
- package/src/components/Customs/Selects/SyInputSelect/SyInputSelect.vue +8 -9
- package/src/components/Customs/Selects/SyInputSelect/tests/SyInputSelect.spec.ts +10 -10
- package/src/components/Customs/Selects/SySelect/SySelect.vue +14 -11
- package/src/components/Customs/Selects/SySelect/tests/SySelect.spec.ts +54 -0
- package/src/components/Customs/SyCheckBoxGroup/SyCheckBoxGroup.vue +6 -9
- package/src/components/Customs/SyCheckbox/SyCheckbox.stories.ts +10 -16
- package/src/components/Customs/SyCheckbox/SyCheckbox.vue +16 -11
- package/src/components/Customs/SyCheckbox/accessibilite/Accessibility.mdx +35 -0
- package/src/components/Customs/SyCheckbox/tests/SyCheckbox.a11y.spec.ts +134 -2
- package/src/components/Customs/SyForm/SyForm.stories.ts +31 -5
- package/src/components/Customs/SyRadioGroup/SyRadioGroup.vue +4 -7
- package/src/components/Customs/SyTextField/SyTextField.mdx +1 -1
- package/src/components/Customs/SyTextField/SyTextField.stories.ts +29 -27
- package/src/components/Customs/SyTextField/SyTextField.vue +154 -157
- package/src/components/Customs/SyTextField/tests/SyTextField.a11y.spec.ts +32 -0
- package/src/components/Customs/SyTextField/tests/SyTextField.spec.ts +120 -11
- package/src/components/DatePicker/CalendarMode/DatePicker.stories.ts +62 -58
- package/src/components/DatePicker/CalendarMode/DatePicker.vue +330 -223
- package/src/components/DatePicker/CalendarMode/accessibilite/Accessibility.mdx +82 -0
- package/src/components/DatePicker/CalendarMode/tests/DatePicker.a11y.spec.ts +141 -0
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.stories.ts +2 -56
- package/src/components/DatePicker/ComplexDatePicker/ComplexDatePicker.vue +195 -159
- package/src/components/DatePicker/ComplexDatePicker/accessibilite/Accessibility.mdx +76 -0
- package/src/components/DatePicker/ComplexDatePicker/tests/ComplexDatePicker.spec.ts +10 -10
- package/src/components/DatePicker/DatePickerValidationExample/CalendarMode.stories.ts +8 -8
- package/src/components/DatePicker/DatePickerValidationExample/ComplexDatePicker.stories.ts +106 -8
- package/src/components/DatePicker/DatePickerValidationExample/DateTextInput.stories.ts +12 -11
- package/src/components/DatePicker/DatePickerValidationExample/MultiMode.stories.ts +12 -12
- package/src/components/DatePicker/DateTextInput/DateRange.stories.ts +0 -12
- package/src/components/DatePicker/DateTextInput/DateTextInput.vue +63 -57
- package/src/components/DatePicker/DateTextInput/NoCalendar.stories.ts +3 -0
- package/src/components/DatePicker/DateTextInput/accessibilite/Accessibility.mdx +66 -0
- package/src/components/DatePicker/DateTextInput/tests/DateTextInput.spec.ts +52 -1
- package/src/components/DatePicker/composables/index.ts +1 -0
- package/src/components/DatePicker/composables/tests/useCalendarKeyboardNavigation.spec.ts +109 -65
- package/src/components/DatePicker/composables/tests/useDatePickerFocusTrap.spec.ts +138 -0
- package/src/components/DatePicker/composables/tests/useDateValidation.spec.ts +74 -18
- package/src/components/DatePicker/composables/tests/useInputBlurHandler.spec.ts +39 -0
- package/src/components/DatePicker/composables/tests/useManualDateValidation.spec.ts +91 -0
- package/src/components/DatePicker/composables/useCalendarKeyboardNavigation.ts +442 -36
- package/src/components/DatePicker/composables/useDatePickerFocusTrap.ts +92 -0
- package/src/components/DatePicker/composables/useDateTextField.ts +7 -6
- package/src/components/DatePicker/composables/useDateValidation.ts +36 -35
- package/src/components/DatePicker/composables/useInputBlurHandler.ts +3 -3
- package/src/components/DatePicker/composables/useManualDateValidation.ts +6 -2
- package/src/components/DiacriticPicker/accessibilite/Accessibility.mdx +76 -8
- package/src/components/HeaderBar/HeaderBar.stories.ts +14 -2
- package/src/components/Logo/accessibilite/Accessibility.mdx +73 -11
- package/src/components/LogoBrandSection/accessibilite/Accessibility.mdx +85 -9
- package/src/components/LunarCalendar/tests/LunarCalendar.spec.ts +3 -1
- package/src/components/LunarCalendar/useLunarCalendarValidation.ts +4 -5
- package/src/components/MonthPicker/tests/MonthPicker.spec.ts +2 -1
- package/src/components/MonthPicker/tests/__snapshots__/MonthPicker.spec.ts.snap +7 -7
- package/src/components/NirField/NirField.stories.ts +4 -0
- package/src/components/NirField/NirField.vue +64 -260
- package/src/components/NirField/accessibilite/Accessibility.mdx +2 -2
- package/src/components/NirField/locales.ts +1 -1
- package/src/components/NirField/tests/NirField.spec.ts +6 -0
- package/src/components/NirField/useNirValidation.ts +271 -0
- package/src/components/PasswordField/PasswordField.stories.ts +4 -4
- package/src/components/PasswordField/PasswordField.vue +18 -24
- package/src/components/PasswordField/tests/PasswordField.spec.ts +6 -3
- package/src/components/PeriodField/PeriodField.stories.ts +4 -4
- package/src/components/PeriodField/PeriodField.vue +57 -57
- package/src/components/PeriodField/__tests__/PeriodField.async.spec.ts +32 -0
- package/src/components/PeriodField/accessibilite/Accessibility.mdx +68 -8
- package/src/components/PeriodField/tests/PeriodField.spec.ts +28 -2
- package/src/components/PhoneField/PhoneField.vue +5 -6
- package/src/components/PhoneField/tests/PhoneField.spec.ts +1 -0
- package/src/components/RangeField/RangeField.vue +6 -0
- package/src/components/SyTextArea/SyTextArea.stories.ts +138 -2
- package/src/components/SyTextArea/SyTextArea.vue +53 -23
- package/src/components/SyTextArea/tests/SyTextArea.spec.ts +126 -3
- package/src/components/SyTextArea/useDefaultValidationRules.ts +74 -0
- package/src/components/Tables/SyServerTable/SyServerTable.mdx +25 -0
- package/src/components/Tables/SyServerTable/SyServerTable.stories.ts +673 -1
- package/src/components/Tables/SyServerTable/SyServerTable.vue +148 -91
- package/src/components/Tables/SyServerTable/tests/SyServerTable.a11y.spec.ts +58 -0
- package/src/components/Tables/SyServerTable/tests/SyServerTable.spec.ts +122 -0
- package/src/components/Tables/SyTable/SyTable.mdx +25 -0
- package/src/components/Tables/SyTable/SyTable.stories.ts +452 -1
- package/src/components/Tables/SyTable/SyTable.vue +130 -56
- package/src/components/Tables/SyTable/tests/SyTable.a11y.spec.ts +57 -0
- package/src/components/Tables/SyTable/tests/SyTable.spec.ts +108 -0
- package/src/components/Tables/common/SyTableFilter.vue +22 -2
- package/src/components/Tables/common/TableHeader.vue +5 -1
- package/src/components/Tables/common/filters/AutocompleteFilter.vue +160 -0
- package/src/components/Tables/common/filters/NumberFilter.vue +1 -1
- package/src/components/Tables/common/filters/SelectFilter.vue +10 -11
- package/src/components/Tables/common/filters/TextFilter.vue +1 -1
- package/src/components/Tables/common/filters/getFilterComponent.ts +8 -1
- package/src/components/Tables/common/filters/locales.ts +0 -1
- package/src/components/Tables/common/filters/tests/AutocompleteFilter.a11y.spec.ts +110 -0
- package/src/components/Tables/common/filters/tests/AutocompleteFilter.spec.ts +203 -0
- package/src/components/Tables/common/filters/tests/SelectFilter.a11y.spec.ts +104 -0
- package/src/components/Tables/common/filters/tests/SelectFilter.spec.ts +152 -16
- package/src/components/Tables/common/tableFilterUtils.ts +3 -0
- package/src/components/Tables/common/tableStyles.scss +48 -4
- package/src/components/Tables/common/tests/filterByRange.spec.ts +2 -1
- package/src/components/Tables/common/types.ts +13 -4
- package/src/components/Tables/common/useClickableTableRow.ts +103 -0
- package/src/components/Tables/common/usePagination.ts +13 -0
- package/src/components/Tables/common/usePinnedColumns.ts +237 -0
- package/src/components/Tables/common/useTableHeaders.ts +3 -3
- package/src/components/Tables/common/useTableRowCheckboxAccessibility.ts +41 -0
- package/src/composables/date/tests/useDatePickerAccessibility.spec.ts +2 -6
- package/src/composables/date/useDatePickerAccessibility.ts +42 -207
- package/src/composables/rules/tests/useFieldValidation.spec.ts +120 -120
- package/src/composables/rules/useFieldValidation.ts +34 -17
- package/src/composables/unifyValidation/tests/useCustomValidation.spec.ts +601 -0
- package/src/composables/unifyValidation/tests/useValidation.spec.ts +2048 -0
- package/src/composables/unifyValidation/tests/useVuetifyValidation.spec.ts +184 -0
- package/src/composables/unifyValidation/useCustomValidation.ts +95 -0
- package/src/composables/unifyValidation/useValidation.ts +190 -0
- package/src/composables/unifyValidation/useVuetifyValidation.ts +54 -0
- package/src/composables/useFormFieldErrorHandling.ts +4 -7
- package/src/composables/validation/tests/useFormValidation.spec.ts +14 -0
- package/src/composables/validation/tests/useValidation.spec.ts +116 -21
- package/src/composables/validation/useFormValidation.ts +20 -13
- package/src/composables/validation/useValidatable.ts +8 -1
- package/src/composables/validation/useValidation.ts +135 -99
- package/src/composantsVuetify/Introduction.mdx +48 -0
- package/src/composantsVuetify/VBtn/VBtn.mdx +72 -0
- package/src/composantsVuetify/VBtn/v-btn.stories.ts +121 -0
- package/src/composantsVuetify/VTooltip/VTooltip.mdx +32 -0
- package/src/composantsVuetify/VTooltip/v-tooltip.stories.ts +95 -0
- package/src/designTokens/tokens/cnam/cnamSemantic.ts +2 -2
- package/src/main.ts +0 -2
- package/src/stories/Components/Components.stories.ts +74 -9
- package/src/stories/Demarrer/Accueil.stories.ts +3 -3
- package/src/stories/GuideDuDev/Amelipro.mdx +15 -0
- package/src/stories/GuideDuDev/Amelipro.stories.ts +209 -0
- package/src/stories/GuideDuDev/vuetifyOptions.mdx +3 -3
- package/dist/SelectFilter-BioGT6Nn.js +0 -136
- package/dist/style.css +0 -1
- package/src/components/DatePicker/Accessibilite.mdx +0 -14
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { VTextarea } from 'vuetify/components';
|
|
2
|
-
|
|
2
|
+
import { TextareaRule as Rule } from './useDefaultValidationRules';
|
|
3
|
+
import { FieldValidationProps } from '../../composables/unifyValidation/useValidation';
|
|
4
|
+
import { ValidationRule as SyValidationRule } from '../../composables/validation/useValidation';
|
|
3
5
|
type __VLS_Props = {
|
|
4
6
|
modelValue?: string;
|
|
5
7
|
trim?: boolean;
|
|
@@ -14,21 +16,39 @@ type __VLS_Props = {
|
|
|
14
16
|
color?: string;
|
|
15
17
|
label: string;
|
|
16
18
|
bgColor?: string;
|
|
17
|
-
};
|
|
18
|
-
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
19
|
+
} & FieldValidationProps;
|
|
20
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
21
|
+
validateOnSubmit: (() => Promise<boolean>) | (() => Promise<boolean>);
|
|
22
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
19
23
|
"update:modelValue": (value: string) => any;
|
|
20
24
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
25
|
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
22
26
|
}>, {
|
|
23
27
|
color: string;
|
|
28
|
+
disabled: boolean;
|
|
24
29
|
variant: VTextarea["variant"];
|
|
30
|
+
readonly: boolean;
|
|
25
31
|
trim: boolean;
|
|
26
32
|
normalize: boolean;
|
|
27
33
|
modelValue: string;
|
|
28
34
|
bgColor: string;
|
|
29
35
|
required: boolean;
|
|
30
|
-
|
|
36
|
+
showSuccessMessages: boolean;
|
|
37
|
+
disableErrorHandling: boolean;
|
|
38
|
+
errorMessages: string[] | null;
|
|
39
|
+
maxErrors: number;
|
|
40
|
+
rules: Rule[] & import('vuetify').ValidationRule[];
|
|
31
41
|
validateOn: "input" | "eager" | "lazy" | "blur" | "submit" | "invalid-input" | "blur lazy" | "input lazy" | "submit lazy" | "invalid-input lazy" | "blur eager" | "input eager" | "submit eager" | "invalid-input eager" | "lazy blur" | "lazy input" | "lazy submit" | "lazy invalid-input" | "eager blur" | "eager input" | "eager submit" | "eager invalid-input";
|
|
42
|
+
isValidateOnBlur: boolean;
|
|
43
|
+
useVuetifyValidation: boolean;
|
|
44
|
+
customRules: SyValidationRule[];
|
|
45
|
+
customWarningRules: SyValidationRule[];
|
|
46
|
+
customSuccessRules: SyValidationRule[];
|
|
47
|
+
warningMessages: string[] | null;
|
|
48
|
+
successMessages: string[] | null;
|
|
49
|
+
hasError: boolean;
|
|
50
|
+
hasWarning: boolean;
|
|
51
|
+
hasSuccess: boolean;
|
|
32
52
|
replaceTabs: number;
|
|
33
53
|
maxLines: number;
|
|
34
54
|
autoWrap: number;
|
|
@@ -396,16 +416,16 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
396
416
|
hint?: string | undefined;
|
|
397
417
|
"onClick:prepend"?: ((args_0: MouseEvent) => void) | undefined;
|
|
398
418
|
"onClick:append"?: ((args_0: MouseEvent) => void) | undefined;
|
|
399
|
-
}, "style" | "disabled" | "density" | "readonly" | "error" | "reset" | "
|
|
419
|
+
}, "style" | "disabled" | "density" | "readonly" | "error" | "reset" | "validate" | "errorMessages" | "focused" | "maxErrors" | "rules" | "centerAffix" | "direction" | "messages" | "isValid" | "resetValidation" | "glow" | "hideSpinButtons" | "persistentHint"> & {
|
|
400
420
|
reset: () => Promise<void>;
|
|
401
421
|
resetValidation: () => Promise<void>;
|
|
402
422
|
validate: (silent?: boolean) => Promise<string[]>;
|
|
403
|
-
isValid:
|
|
404
|
-
errorMessages:
|
|
405
|
-
}
|
|
423
|
+
isValid: boolean | null;
|
|
424
|
+
errorMessages: string[];
|
|
425
|
+
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
406
426
|
modelValue?: unknown;
|
|
407
427
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
408
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "
|
|
428
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "hideDetails" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & {
|
|
409
429
|
_allExposed: {
|
|
410
430
|
reset: () => Promise<void>;
|
|
411
431
|
resetValidation: () => Promise<void>;
|
|
@@ -857,16 +877,16 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
857
877
|
hint?: string | undefined;
|
|
858
878
|
"onClick:prepend"?: ((args_0: MouseEvent) => void) | undefined;
|
|
859
879
|
"onClick:append"?: ((args_0: MouseEvent) => void) | undefined;
|
|
860
|
-
}, "style" | "disabled" | "density" | "readonly" | "error" | "reset" | "
|
|
880
|
+
}, "style" | "disabled" | "density" | "readonly" | "error" | "reset" | "validate" | "errorMessages" | "focused" | "maxErrors" | "rules" | "centerAffix" | "direction" | "messages" | "isValid" | "resetValidation" | "glow" | "hideSpinButtons" | "persistentHint"> & {
|
|
861
881
|
reset: () => Promise<void>;
|
|
862
882
|
resetValidation: () => Promise<void>;
|
|
863
883
|
validate: (silent?: boolean) => Promise<string[]>;
|
|
864
|
-
isValid:
|
|
865
|
-
errorMessages:
|
|
866
|
-
}
|
|
884
|
+
isValid: boolean | null;
|
|
885
|
+
errorMessages: string[];
|
|
886
|
+
} & import('vue').ComponentCustomProperties & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
867
887
|
modelValue?: unknown;
|
|
868
888
|
"onUpdate:modelValue"?: ((value: unknown) => void) | undefined;
|
|
869
|
-
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "
|
|
889
|
+
}, import('vuetify/lib/components/VInput/VInput.mjs').VInputSlots>, "label" | "style" | "width" | "color" | "theme" | "class" | "disabled" | "$children" | "v-slots" | "v-slot:default" | keyof import('vue').VNodeProps | "density" | "maxWidth" | "minWidth" | "baseColor" | "prependIcon" | "appendIcon" | "readonly" | "v-slot:append" | "v-slot:prepend" | "id" | "error" | "name" | "modelValue" | "onUpdate:modelValue" | "iconColor" | "errorMessages" | "focused" | "maxErrors" | "rules" | "validateOn" | "validationValue" | "centerAffix" | "direction" | "hint" | "messages" | "glow" | "hideSpinButtons" | "persistentHint" | "onUpdate:focused" | "hideDetails" | "onClick:prepend" | "onClick:append" | "v-slot:details" | "v-slot:message">, `$${any}`> & {
|
|
870
890
|
_allExposed: {
|
|
871
891
|
reset: () => Promise<void>;
|
|
872
892
|
resetValidation: () => Promise<void>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ValidationRule as SyValidationRule } from '../../composables/validation/useValidation';
|
|
3
|
+
export type TextareaRule = (value: string) => boolean | string;
|
|
4
|
+
export declare function useDefaultValidationRules(params: {
|
|
5
|
+
required: Ref<boolean>;
|
|
6
|
+
maxLines: Ref<number | undefined>;
|
|
7
|
+
hasInteracted: Ref<boolean>;
|
|
8
|
+
}): {
|
|
9
|
+
vuetifyRules: import('vue').ComputedRef<TextareaRule[]>;
|
|
10
|
+
customRules: import('vue').ComputedRef<SyValidationRule[]>;
|
|
11
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
2
1
|
import { DataOptions, Items, SyServerTableProps } from '../common/types';
|
|
3
2
|
type __VLS_Props = SyServerTableProps;
|
|
4
3
|
type __VLS_PublicProps = {
|
|
@@ -497,7 +496,7 @@ declare function __VLS_template(): {
|
|
|
497
496
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
498
497
|
};
|
|
499
498
|
$forceUpdate: () => void;
|
|
500
|
-
$nextTick: typeof nextTick;
|
|
499
|
+
$nextTick: typeof import('vue').nextTick;
|
|
501
500
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
502
501
|
} & Readonly<{
|
|
503
502
|
style: import('vue').StyleValue;
|
|
@@ -624,7 +623,7 @@ declare function __VLS_template(): {
|
|
|
624
623
|
"onUpdate:options"?: ((options: any) => any) | undefined;
|
|
625
624
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
626
625
|
"onUpdate:sortBy"?: ((sortBy: any) => any) | undefined;
|
|
627
|
-
}, "style" | "tag" | "density" | "sticky" | "loadingText" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "page" | "hover" | "striped" | "nextIcon" | "prevIcon" | "mobile" | "hideNoData" | "noDataText" | "expanded" | "itemsPerPage" | "firstIcon" | "lastIcon" | "itemsPerPageOptions" | "multiSort" | "mustSort" | "sortBy" | "groupBy" | "expandOnClick" | "showExpand" | "initialSortOrder" | "showSelect" | "pageBy" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "fixedHeader" | "fixedFooter" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> &
|
|
626
|
+
}, "style" | "tag" | "density" | "sticky" | "loadingText" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "page" | "hover" | "striped" | "nextIcon" | "prevIcon" | "mobile" | "hideNoData" | "noDataText" | "expanded" | "itemsPerPage" | "firstIcon" | "lastIcon" | "itemsPerPageOptions" | "multiSort" | "mustSort" | "sortBy" | "groupBy" | "expandOnClick" | "showExpand" | "initialSortOrder" | "showSelect" | "pageBy" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "fixedHeader" | "fixedFooter" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> & {} & import('vue').ComponentCustomProperties & {} & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
628
627
|
items?: Items | undefined;
|
|
629
628
|
itemValue?: import('vuetify/lib/util/helpers.mjs').SelectItemKey<object | Record<string, unknown>>;
|
|
630
629
|
rowProps?: import('vuetify/lib/components/VDataTable/types.mjs').RowProps<object | Record<string, unknown>> | undefined;
|
|
@@ -665,9 +664,11 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
665
664
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
666
665
|
"update:modelValue": (value: unknown[]) => any;
|
|
667
666
|
"update:options": (value: Partial<DataOptions>) => any;
|
|
667
|
+
"row-click": (item: Record<string, unknown>) => any;
|
|
668
668
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
669
669
|
"onUpdate:modelValue"?: ((value: unknown[]) => any) | undefined;
|
|
670
670
|
"onUpdate:options"?: ((value: Partial<DataOptions>) => any) | undefined;
|
|
671
|
+
"onRow-click"?: ((item: Record<string, unknown>) => any) | undefined;
|
|
671
672
|
}>, {
|
|
672
673
|
caption: string;
|
|
673
674
|
headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -682,8 +683,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
682
683
|
resizableColumns: boolean;
|
|
683
684
|
filterInputConfig: Record<string, unknown>;
|
|
684
685
|
saveState: boolean;
|
|
685
|
-
|
|
686
|
+
stickySelect: boolean;
|
|
686
687
|
showSelectSingle: boolean;
|
|
688
|
+
clickableRow: boolean;
|
|
689
|
+
showFilters: boolean;
|
|
687
690
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
688
691
|
table: ({
|
|
689
692
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -1173,7 +1176,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1173
1176
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1174
1177
|
};
|
|
1175
1178
|
$forceUpdate: () => void;
|
|
1176
|
-
$nextTick: typeof nextTick;
|
|
1179
|
+
$nextTick: typeof import('vue').nextTick;
|
|
1177
1180
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1178
1181
|
} & Readonly<{
|
|
1179
1182
|
style: import('vue').StyleValue;
|
|
@@ -1300,7 +1303,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1300
1303
|
"onUpdate:options"?: ((options: any) => any) | undefined;
|
|
1301
1304
|
"onUpdate:page"?: ((page: number) => any) | undefined;
|
|
1302
1305
|
"onUpdate:sortBy"?: ((sortBy: any) => any) | undefined;
|
|
1303
|
-
}, "style" | "tag" | "density" | "sticky" | "loadingText" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "page" | "hover" | "striped" | "nextIcon" | "prevIcon" | "mobile" | "hideNoData" | "noDataText" | "expanded" | "itemsPerPage" | "firstIcon" | "lastIcon" | "itemsPerPageOptions" | "multiSort" | "mustSort" | "sortBy" | "groupBy" | "expandOnClick" | "showExpand" | "initialSortOrder" | "showSelect" | "pageBy" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "fixedHeader" | "fixedFooter" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> &
|
|
1306
|
+
}, "style" | "tag" | "density" | "sticky" | "loadingText" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "page" | "hover" | "striped" | "nextIcon" | "prevIcon" | "mobile" | "hideNoData" | "noDataText" | "expanded" | "itemsPerPage" | "firstIcon" | "lastIcon" | "itemsPerPageOptions" | "multiSort" | "mustSort" | "sortBy" | "groupBy" | "expandOnClick" | "showExpand" | "initialSortOrder" | "showSelect" | "pageBy" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "fixedHeader" | "fixedFooter" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> & {} & import('vue').ComponentCustomProperties & {} & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
1304
1307
|
items?: Items | undefined;
|
|
1305
1308
|
itemValue?: import('vuetify/lib/util/helpers.mjs').SelectItemKey<object | Record<string, unknown>>;
|
|
1306
1309
|
rowProps?: import('vuetify/lib/components/VDataTable/types.mjs').RowProps<object | Record<string, unknown>> | undefined;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { nextTick } from 'vue';
|
|
2
1
|
import { DataOptions, SyTableProps } from '../common/types';
|
|
3
2
|
type __VLS_Props = SyTableProps;
|
|
4
3
|
type __VLS_PublicProps = {
|
|
@@ -512,7 +511,7 @@ declare function __VLS_template(): {
|
|
|
512
511
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
513
512
|
};
|
|
514
513
|
$forceUpdate: () => void;
|
|
515
|
-
$nextTick: typeof nextTick;
|
|
514
|
+
$nextTick: typeof import('vue').nextTick;
|
|
516
515
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
517
516
|
} & Readonly<{
|
|
518
517
|
style: import('vue').StyleValue;
|
|
@@ -646,7 +645,7 @@ declare function __VLS_template(): {
|
|
|
646
645
|
"onUpdate:options"?: ((value: any) => any) | undefined;
|
|
647
646
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
648
647
|
"onUpdate:sortBy"?: ((value: any) => any) | undefined;
|
|
649
|
-
}, "style" | "tag" | "density" | "sticky" | "loadingText" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "page" | "hover" | "striped" | "nextIcon" | "prevIcon" | "mobile" | "hideNoData" | "noDataText" | "expanded" | "itemsPerPage" | "firstIcon" | "lastIcon" | "itemsPerPageOptions" | "multiSort" | "mustSort" | "sortBy" | "groupBy" | "filterMode" | "noFilter" | "expandOnClick" | "showExpand" | "initialSortOrder" | "showSelect" | "pageBy" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "fixedHeader" | "fixedFooter" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> &
|
|
648
|
+
}, "style" | "tag" | "density" | "sticky" | "loadingText" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "page" | "hover" | "striped" | "nextIcon" | "prevIcon" | "mobile" | "hideNoData" | "noDataText" | "expanded" | "itemsPerPage" | "firstIcon" | "lastIcon" | "itemsPerPageOptions" | "multiSort" | "mustSort" | "sortBy" | "groupBy" | "filterMode" | "noFilter" | "expandOnClick" | "showExpand" | "initialSortOrder" | "showSelect" | "pageBy" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "fixedHeader" | "fixedFooter" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> & {} & import('vue').ComponentCustomProperties & {} & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
650
649
|
items?: (object | Record<string, unknown>)[] | undefined;
|
|
651
650
|
itemValue?: import('vuetify/lib/util/helpers.mjs').SelectItemKey<object | Record<string, unknown>>;
|
|
652
651
|
rowProps?: import('vuetify/lib/components/VDataTable/types.mjs').RowProps<object | Record<string, unknown>> | undefined;
|
|
@@ -685,9 +684,11 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
|
685
684
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
686
685
|
"update:modelValue": (value: unknown[]) => any;
|
|
687
686
|
"update:options": (value: Partial<DataOptions>) => any;
|
|
687
|
+
"row-click": (item: Record<string, unknown>) => any;
|
|
688
688
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
689
689
|
"onUpdate:modelValue"?: ((value: unknown[]) => any) | undefined;
|
|
690
690
|
"onUpdate:options"?: ((value: Partial<DataOptions>) => any) | undefined;
|
|
691
|
+
"onRow-click"?: ((item: Record<string, unknown>) => any) | undefined;
|
|
691
692
|
}>, {
|
|
692
693
|
caption: string;
|
|
693
694
|
headingLevel: 1 | 2 | 3 | 4 | 5 | 6;
|
|
@@ -701,8 +702,10 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
701
702
|
resizableColumns: boolean;
|
|
702
703
|
filterInputConfig: Record<string, unknown>;
|
|
703
704
|
saveState: boolean;
|
|
704
|
-
|
|
705
|
+
stickySelect: boolean;
|
|
705
706
|
showSelectSingle: boolean;
|
|
707
|
+
clickableRow: boolean;
|
|
708
|
+
showFilters: boolean;
|
|
706
709
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
707
710
|
table: ({
|
|
708
711
|
$: import('vue').ComponentInternalInstance;
|
|
@@ -1207,7 +1210,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1207
1210
|
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
1208
1211
|
};
|
|
1209
1212
|
$forceUpdate: () => void;
|
|
1210
|
-
$nextTick: typeof nextTick;
|
|
1213
|
+
$nextTick: typeof import('vue').nextTick;
|
|
1211
1214
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
1212
1215
|
} & Readonly<{
|
|
1213
1216
|
style: import('vue').StyleValue;
|
|
@@ -1341,7 +1344,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
1341
1344
|
"onUpdate:options"?: ((value: any) => any) | undefined;
|
|
1342
1345
|
"onUpdate:page"?: ((value: number) => any) | undefined;
|
|
1343
1346
|
"onUpdate:sortBy"?: ((value: any) => any) | undefined;
|
|
1344
|
-
}, "style" | "tag" | "density" | "sticky" | "loadingText" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "page" | "hover" | "striped" | "nextIcon" | "prevIcon" | "mobile" | "hideNoData" | "noDataText" | "expanded" | "itemsPerPage" | "firstIcon" | "lastIcon" | "itemsPerPageOptions" | "multiSort" | "mustSort" | "sortBy" | "groupBy" | "filterMode" | "noFilter" | "expandOnClick" | "showExpand" | "initialSortOrder" | "showSelect" | "pageBy" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "fixedHeader" | "fixedFooter" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> &
|
|
1347
|
+
}, "style" | "tag" | "density" | "sticky" | "loadingText" | "returnObject" | "selectStrategy" | "expandIcon" | "collapseIcon" | "page" | "hover" | "striped" | "nextIcon" | "prevIcon" | "mobile" | "hideNoData" | "noDataText" | "expanded" | "itemsPerPage" | "firstIcon" | "lastIcon" | "itemsPerPageOptions" | "multiSort" | "mustSort" | "sortBy" | "groupBy" | "filterMode" | "noFilter" | "expandOnClick" | "showExpand" | "initialSortOrder" | "showSelect" | "pageBy" | "itemsPerPageText" | "pageText" | "firstPageLabel" | "prevPageLabel" | "nextPageLabel" | "lastPageLabel" | "showCurrentPage" | "disableSort" | "sortAscIcon" | "sortDescIcon" | "groupCollapseIcon" | "groupExpandIcon" | "fixedHeader" | "fixedFooter" | "hideDefaultBody" | "hideDefaultFooter" | "hideDefaultHeader"> & {} & import('vue').ComponentCustomProperties & {} & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
1345
1348
|
items?: (object | Record<string, unknown>)[] | undefined;
|
|
1346
1349
|
itemValue?: import('vuetify/lib/util/helpers.mjs').SelectItemKey<object | Record<string, unknown>>;
|
|
1347
1350
|
rowProps?: import('vuetify/lib/components/VDataTable/types.mjs').RowProps<object | Record<string, unknown>> | undefined;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { FilterOption, TableColumnHeader } from './types';
|
|
2
2
|
import { filterItems } from './tableFilterUtils';
|
|
3
|
-
import { DateValue } from '../../../composables/date/useDateInitializationDayjs';
|
|
4
3
|
declare function __VLS_template(): {
|
|
5
4
|
attrs: Partial<{}>;
|
|
6
5
|
slots: {
|
|
7
6
|
'custom-filter'?(_: {
|
|
8
7
|
header: TableColumnHeader;
|
|
9
|
-
value: number | Record<string, unknown> |
|
|
8
|
+
value: string | number | Record<string, unknown> | (string | number | Record<string, unknown>)[] | {
|
|
10
9
|
from: string | null;
|
|
11
10
|
to: string | null;
|
|
12
|
-
} | undefined;
|
|
11
|
+
} | null | undefined;
|
|
13
12
|
updateFilter: (value: any) => void;
|
|
14
13
|
}): any;
|
|
15
14
|
};
|
|
@@ -39,14 +39,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
39
39
|
menuId: string;
|
|
40
40
|
textKey: string;
|
|
41
41
|
valueKey: string;
|
|
42
|
+
disableErrorHandling: boolean;
|
|
43
|
+
errorMessages: string | readonly string[];
|
|
42
44
|
prependTooltip: string;
|
|
43
45
|
appendTooltip: string;
|
|
44
46
|
tooltipLocation: "start" | "end" | "top" | "bottom";
|
|
45
47
|
variantStyle: import('../../../types/vuetifyTypes').VariantStyle | undefined;
|
|
46
|
-
errorMessages: string | readonly string[];
|
|
47
48
|
displayAsterisk: boolean;
|
|
48
49
|
noIcon: boolean;
|
|
49
|
-
disableErrorHandling: boolean;
|
|
50
50
|
disableClickButton: boolean;
|
|
51
51
|
autocomplete: string | undefined;
|
|
52
52
|
helpText: string;
|
|
@@ -72,11 +72,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
72
72
|
readonly menuId: string;
|
|
73
73
|
readonly textKey: string;
|
|
74
74
|
readonly valueKey: string;
|
|
75
|
-
readonly
|
|
75
|
+
readonly disableErrorHandling: boolean;
|
|
76
76
|
readonly errorMessages: string | readonly string[];
|
|
77
|
+
readonly tooltipLocation: "start" | "end" | "top" | "bottom";
|
|
77
78
|
readonly displayAsterisk: boolean;
|
|
78
79
|
readonly noIcon: boolean;
|
|
79
|
-
readonly disableErrorHandling: boolean;
|
|
80
80
|
readonly disableClickButton: boolean;
|
|
81
81
|
readonly autocomplete: string;
|
|
82
82
|
readonly helpText: string;
|
|
@@ -93,7 +93,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
93
93
|
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
94
94
|
readonly "onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
95
95
|
readonly "onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
96
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "label" | "width" | "color" | "disabled" | "density" | "prependIcon" | "appendIcon" | "readonly" | "outlined" | "items" | "modelValue" | "returnObject" | "bgColor" | "multiple" | "required" | "menuId" | "textKey" | "valueKey" | "
|
|
96
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "label" | "width" | "color" | "disabled" | "density" | "prependIcon" | "appendIcon" | "readonly" | "outlined" | "items" | "modelValue" | "returnObject" | "bgColor" | "multiple" | "required" | "menuId" | "textKey" | "valueKey" | "disableErrorHandling" | "errorMessages" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "displayAsterisk" | "noIcon" | "disableClickButton" | "autocomplete" | "helpText" | "clearable" | "plainTextKey" | "hideMessages" | "chips" | "allowHtml">;
|
|
97
97
|
$attrs: import('vue').Attrs;
|
|
98
98
|
$refs: {
|
|
99
99
|
[x: string]: unknown;
|
|
@@ -505,17 +505,15 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
505
505
|
path: unknown[];
|
|
506
506
|
}) => any) | undefined;
|
|
507
507
|
"onUpdate:navigationIndex"?: ((value: number) => any) | undefined;
|
|
508
|
-
}, "nav" | "select" | "style" | "tag" | "disabled" | "children" | "density" | "rounded" | "tile" | "variant" | "slim" | "focus" | "itemType" | "returnObject" | "activatable" | "selectable" | "selectStrategy" | "openStrategy" | "mandatory" | "itemsRegistration" | "filterable" | "lines" | "navigationStrategy" | "navigationIndex" | "open" | "parents" | "getPath"> &
|
|
508
|
+
}, "nav" | "select" | "style" | "tag" | "disabled" | "children" | "density" | "rounded" | "tile" | "variant" | "slim" | "focus" | "itemType" | "returnObject" | "activatable" | "selectable" | "selectStrategy" | "openStrategy" | "mandatory" | "itemsRegistration" | "filterable" | "lines" | "navigationStrategy" | "navigationIndex" | "open" | "parents" | "getPath"> & {
|
|
509
509
|
open: (id: unknown, value: boolean, event?: Event | undefined) => void;
|
|
510
510
|
select: (id: unknown, value: boolean, event?: Event | undefined) => void;
|
|
511
511
|
focus: (location?: number | "first" | "last" | "next" | "prev" | undefined) => void;
|
|
512
|
-
children:
|
|
513
|
-
parents:
|
|
512
|
+
children: Map<unknown, unknown[]>;
|
|
513
|
+
parents: Map<unknown, unknown>;
|
|
514
514
|
getPath: (id: unknown) => unknown[];
|
|
515
|
-
navigationIndex:
|
|
516
|
-
|
|
517
|
-
};
|
|
518
|
-
}> & {} & import('vue').ComponentCustomProperties & {} & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
515
|
+
navigationIndex: number;
|
|
516
|
+
} & {} & import('vue').ComponentCustomProperties & {} & import('vuetify/lib/util/defineComponent.mjs').GenericProps<{
|
|
519
517
|
items?: readonly any[] | undefined;
|
|
520
518
|
itemTitle?: import('vuetify/lib/util/helpers.mjs').SelectItemKey<any>;
|
|
521
519
|
itemValue?: import('vuetify/lib/util/helpers.mjs').SelectItemKey<any>;
|
|
@@ -716,14 +714,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
716
714
|
menuId: string;
|
|
717
715
|
textKey: string;
|
|
718
716
|
valueKey: string;
|
|
717
|
+
disableErrorHandling: boolean;
|
|
718
|
+
errorMessages: string | readonly string[];
|
|
719
719
|
prependTooltip: string;
|
|
720
720
|
appendTooltip: string;
|
|
721
721
|
tooltipLocation: "start" | "end" | "top" | "bottom";
|
|
722
722
|
variantStyle: import('../../../types/vuetifyTypes').VariantStyle | undefined;
|
|
723
|
-
errorMessages: string | readonly string[];
|
|
724
723
|
displayAsterisk: boolean;
|
|
725
724
|
noIcon: boolean;
|
|
726
|
-
disableErrorHandling: boolean;
|
|
727
725
|
disableClickButton: boolean;
|
|
728
726
|
autocomplete: string | undefined;
|
|
729
727
|
helpText: string;
|
|
@@ -771,14 +769,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
771
769
|
menuId: string;
|
|
772
770
|
textKey: string;
|
|
773
771
|
valueKey: string;
|
|
772
|
+
disableErrorHandling: boolean;
|
|
773
|
+
errorMessages: string | readonly string[];
|
|
774
774
|
prependTooltip: string;
|
|
775
775
|
appendTooltip: string;
|
|
776
776
|
tooltipLocation: "start" | "end" | "top" | "bottom";
|
|
777
777
|
variantStyle: import('../../../types/vuetifyTypes').VariantStyle | undefined;
|
|
778
|
-
errorMessages: string | readonly string[];
|
|
779
778
|
displayAsterisk: boolean;
|
|
780
779
|
noIcon: boolean;
|
|
781
|
-
disableErrorHandling: boolean;
|
|
782
780
|
disableClickButton: boolean;
|
|
783
781
|
autocomplete: string | undefined;
|
|
784
782
|
helpText: string;
|
|
@@ -928,11 +926,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
928
926
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
929
927
|
"onPrepend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
930
928
|
"onAppend-icon-click"?: ((...args: any[]) => any) | undefined;
|
|
931
|
-
}>, "isOpen" | "validateOnSubmit" | "closeList" | ("label" | "width" | "color" | "disabled" | "density" | "prependIcon" | "appendIcon" | "readonly" | "outlined" | "items" | "modelValue" | "returnObject" | "bgColor" | "multiple" | "required" | "menuId" | "textKey" | "valueKey" | "
|
|
932
|
-
isOpen:
|
|
929
|
+
}>, "isOpen" | "validateOnSubmit" | "closeList" | ("label" | "width" | "color" | "disabled" | "density" | "prependIcon" | "appendIcon" | "readonly" | "outlined" | "items" | "modelValue" | "returnObject" | "bgColor" | "multiple" | "required" | "menuId" | "textKey" | "valueKey" | "disableErrorHandling" | "errorMessages" | "prependTooltip" | "appendTooltip" | "tooltipLocation" | "variantStyle" | "displayAsterisk" | "noIcon" | "disableClickButton" | "autocomplete" | "helpText" | "clearable" | "plainTextKey" | "hideMessages" | "chips" | "allowHtml")> & {
|
|
930
|
+
isOpen: boolean;
|
|
933
931
|
closeList: (event?: Event) => void;
|
|
934
932
|
validateOnSubmit: () => boolean;
|
|
935
|
-
}
|
|
933
|
+
} & {} & import('vue').ComponentCustomProperties & {} & {
|
|
936
934
|
$slots: {
|
|
937
935
|
prepend?(_: {}): any;
|
|
938
936
|
append?(_: {}): any;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { FilterOption, TableColumnHeader } from '../types';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
header: {
|
|
4
|
+
type: () => TableColumnHeader;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
filters: {
|
|
8
|
+
type: () => FilterOption[];
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
filterValue: {
|
|
12
|
+
type: () => string | number | Record<string, unknown> | Array<string | number | Record<string, unknown>> | undefined | null;
|
|
13
|
+
default: null;
|
|
14
|
+
};
|
|
15
|
+
inputConfig: {
|
|
16
|
+
type: () => {
|
|
17
|
+
disableErrorHandling?: boolean;
|
|
18
|
+
variant?: string;
|
|
19
|
+
hideDetails?: boolean;
|
|
20
|
+
density?: "default" | "comfortable" | "compact";
|
|
21
|
+
backgroundColor?: string;
|
|
22
|
+
clearable?: boolean;
|
|
23
|
+
};
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
26
|
+
disableErrorHandling: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
variant: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
hideDetails: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
density: {
|
|
39
|
+
type: () => "default" | "comfortable" | "compact";
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
backgroundColor: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
clearable: {
|
|
47
|
+
type: BooleanConstructor;
|
|
48
|
+
default: boolean;
|
|
49
|
+
};
|
|
50
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
51
|
+
"update:filters": (...args: any[]) => void;
|
|
52
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
53
|
+
header: {
|
|
54
|
+
type: () => TableColumnHeader;
|
|
55
|
+
required: true;
|
|
56
|
+
};
|
|
57
|
+
filters: {
|
|
58
|
+
type: () => FilterOption[];
|
|
59
|
+
default: () => never[];
|
|
60
|
+
};
|
|
61
|
+
filterValue: {
|
|
62
|
+
type: () => string | number | Record<string, unknown> | Array<string | number | Record<string, unknown>> | undefined | null;
|
|
63
|
+
default: null;
|
|
64
|
+
};
|
|
65
|
+
inputConfig: {
|
|
66
|
+
type: () => {
|
|
67
|
+
disableErrorHandling?: boolean;
|
|
68
|
+
variant?: string;
|
|
69
|
+
hideDetails?: boolean;
|
|
70
|
+
density?: "default" | "comfortable" | "compact";
|
|
71
|
+
backgroundColor?: string;
|
|
72
|
+
clearable?: boolean;
|
|
73
|
+
};
|
|
74
|
+
default: () => {};
|
|
75
|
+
};
|
|
76
|
+
disableErrorHandling: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
variant: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
hideDetails: {
|
|
85
|
+
type: BooleanConstructor;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
88
|
+
density: {
|
|
89
|
+
type: () => "default" | "comfortable" | "compact";
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
backgroundColor: {
|
|
93
|
+
type: StringConstructor;
|
|
94
|
+
default: string;
|
|
95
|
+
};
|
|
96
|
+
clearable: {
|
|
97
|
+
type: BooleanConstructor;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
}>> & Readonly<{
|
|
101
|
+
"onUpdate:filters"?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
}>, {
|
|
103
|
+
density: "default" | "comfortable" | "compact";
|
|
104
|
+
variant: string;
|
|
105
|
+
backgroundColor: string;
|
|
106
|
+
disableErrorHandling: boolean;
|
|
107
|
+
hideDetails: boolean;
|
|
108
|
+
clearable: boolean;
|
|
109
|
+
filters: FilterOption[];
|
|
110
|
+
filterValue: string | number | Record<string, unknown> | (string | number | Record<string, unknown>)[] | null | undefined;
|
|
111
|
+
inputConfig: {
|
|
112
|
+
disableErrorHandling?: boolean;
|
|
113
|
+
variant?: string;
|
|
114
|
+
hideDetails?: boolean;
|
|
115
|
+
density?: "default" | "comfortable" | "compact";
|
|
116
|
+
backgroundColor?: string;
|
|
117
|
+
clearable?: boolean;
|
|
118
|
+
};
|
|
119
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
120
|
+
export default _default;
|
|
@@ -2,8 +2,8 @@ export type SortOptions = {
|
|
|
2
2
|
key: string;
|
|
3
3
|
order: 'desc' | 'asc';
|
|
4
4
|
};
|
|
5
|
-
export type FilterType = 'text' | 'number' | 'date' | 'period' | 'select' | 'custom';
|
|
6
|
-
type FilterValue = string | number | Date | Array<string | number | Date
|
|
5
|
+
export type FilterType = 'text' | 'number' | 'date' | 'period' | 'select' | 'autocomplete' | 'custom';
|
|
6
|
+
type FilterValue = string | number | Date | Array<string | number | Date | Record<string, unknown>> | {
|
|
7
7
|
from: string | null;
|
|
8
8
|
to: string | null;
|
|
9
9
|
} | Record<string, unknown> | null | undefined;
|
|
@@ -46,6 +46,7 @@ export type DataTableHeaders = {
|
|
|
46
46
|
maxWidth?: string | number;
|
|
47
47
|
minWidth?: string | number;
|
|
48
48
|
headerProps?: Record<string, unknown>;
|
|
49
|
+
cellProps?: Record<string, unknown>;
|
|
49
50
|
};
|
|
50
51
|
export type TableColumnHeader = {
|
|
51
52
|
title?: string;
|
|
@@ -68,7 +69,8 @@ export type TableColumnHeader = {
|
|
|
68
69
|
children?: unknown[];
|
|
69
70
|
maxWidth?: string | number;
|
|
70
71
|
minWidth?: string | number;
|
|
71
|
-
headerProps?:
|
|
72
|
+
headerProps?: unknown;
|
|
73
|
+
cellProps?: unknown;
|
|
72
74
|
[key: string]: unknown;
|
|
73
75
|
};
|
|
74
76
|
export type SyTableProps = {
|
|
@@ -85,12 +87,19 @@ export type SyTableProps = {
|
|
|
85
87
|
headers?: DataTableHeaders[];
|
|
86
88
|
showSelect?: boolean;
|
|
87
89
|
showSelectSingle?: boolean;
|
|
90
|
+
stickySelect?: boolean;
|
|
88
91
|
showExpand?: boolean;
|
|
89
92
|
selectionKey?: string;
|
|
90
93
|
multiSort?: boolean;
|
|
91
94
|
mustSort?: boolean;
|
|
92
95
|
itemsPerPageOptions?: number[];
|
|
93
96
|
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
97
|
+
pinnedColumns?: Array<string | {
|
|
98
|
+
key: string;
|
|
99
|
+
side?: 'left' | 'right';
|
|
100
|
+
}>;
|
|
101
|
+
pinnedColumnKey?: string;
|
|
102
|
+
clickableRow?: boolean;
|
|
94
103
|
};
|
|
95
104
|
export type SyServerTableProps = {
|
|
96
105
|
serverItemsLength: number;
|
|
@@ -107,11 +116,18 @@ export type SyServerTableProps = {
|
|
|
107
116
|
headers?: DataTableHeaders[];
|
|
108
117
|
showSelect?: boolean;
|
|
109
118
|
showSelectSingle?: boolean;
|
|
119
|
+
stickySelect?: boolean;
|
|
110
120
|
showExpand?: boolean;
|
|
111
121
|
selectionKey?: string;
|
|
112
122
|
multiSort?: boolean;
|
|
113
123
|
mustSort?: boolean;
|
|
114
124
|
itemsPerPageOptions?: number[];
|
|
115
125
|
headingLevel?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
126
|
+
pinnedColumns?: Array<string | {
|
|
127
|
+
key: string;
|
|
128
|
+
side?: 'left' | 'right';
|
|
129
|
+
}>;
|
|
130
|
+
pinnedColumnKey?: string;
|
|
131
|
+
clickableRow?: boolean;
|
|
116
132
|
};
|
|
117
133
|
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ComputedRef, Ref } from 'vue';
|
|
2
|
+
type ClickableTableItem = Record<string, unknown>;
|
|
3
|
+
type TableRowData = {
|
|
4
|
+
index: number;
|
|
5
|
+
item: ClickableTableItem;
|
|
6
|
+
internalItem: unknown;
|
|
7
|
+
};
|
|
8
|
+
type TableRowProps = Record<string, unknown>;
|
|
9
|
+
export type ClickableTableRowPropsInput = TableRowProps | ((data: TableRowData) => TableRowProps) | undefined;
|
|
10
|
+
export declare function useClickableTableRow({ clickableRow, rowProps, onRowClick, }: {
|
|
11
|
+
clickableRow: Ref<boolean>;
|
|
12
|
+
rowProps: ComputedRef<ClickableTableRowPropsInput>;
|
|
13
|
+
onRowClick: (item: ClickableTableItem) => void;
|
|
14
|
+
}): {
|
|
15
|
+
clickableRowProps: ComputedRef<ClickableTableRowPropsInput>;
|
|
16
|
+
};
|
|
17
|
+
export {};
|
|
@@ -7,13 +7,15 @@ import { DataOptions } from './types';
|
|
|
7
7
|
* @param itemsLength - Total number of items (for client-side) or serverItemsLength (for server-side)
|
|
8
8
|
* @returns Pagination utilities and computed properties
|
|
9
9
|
*/
|
|
10
|
-
export declare function usePagination({ options, itemsLength, }: {
|
|
10
|
+
export declare function usePagination({ options, itemsLength, updateOptions, }: {
|
|
11
11
|
options: Ref<Partial<DataOptions>>;
|
|
12
12
|
itemsLength: Ref<number>;
|
|
13
|
+
updateOptions: (opts: Partial<DataOptions>) => void;
|
|
13
14
|
}): {
|
|
14
15
|
page: import('vue').WritableComputedRef<number, number>;
|
|
15
16
|
pageCount: import('vue').ComputedRef<number>;
|
|
16
17
|
itemsPerPageValue: import('vue').ComputedRef<number>;
|
|
17
18
|
updateItemsPerPage: (newItemsPerPage: number) => Promise<void>;
|
|
18
19
|
isUpdatingItemsPerPage: Ref<boolean, boolean>;
|
|
20
|
+
onUpdateOptions: (newOptions: Partial<DataOptions>) => void;
|
|
19
21
|
};
|