vuetify 3.2.4 → 3.3.0
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/_component-variables-labs.sass +1 -0
- package/dist/json/attributes.json +2503 -2151
- package/dist/json/importMap-labs.json +12 -4
- package/dist/json/importMap.json +28 -28
- package/dist/json/tags.json +107 -9
- package/dist/json/web-types.json +10785 -7110
- package/dist/vuetify-labs.css +263 -153
- package/dist/vuetify-labs.d.ts +35870 -16257
- package/dist/vuetify-labs.esm.js +1466 -934
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +1465 -933
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +246 -168
- package/dist/vuetify.d.ts +27883 -14061
- package/dist/vuetify.esm.js +477 -300
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +476 -299
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +811 -806
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/{index.d.ts → index.d.mts} +5 -1
- package/lib/blueprints/{md1.d.ts → md1.d.mts} +5 -1
- package/lib/blueprints/{md2.d.ts → md2.d.mts} +5 -1
- package/lib/blueprints/{md3.d.ts → md3.d.mts} +5 -1
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/{index.d.ts → index.d.mts} +284 -69
- package/lib/components/VApp/{index.d.ts → index.d.mts} +80 -19
- package/lib/components/VAppBar/{index.d.ts → index.d.mts} +391 -119
- package/lib/components/VAutocomplete/VAutocomplete.css +15 -9
- package/lib/components/VAutocomplete/VAutocomplete.mjs +82 -34
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.sass +15 -11
- package/lib/components/VAutocomplete/index.d.mts +2048 -0
- package/lib/components/VAvatar/{index.d.ts → index.d.mts} +85 -30
- package/lib/components/VBadge/_variables.scss +1 -1
- package/lib/components/VBadge/{index.d.ts → index.d.mts} +105 -42
- package/lib/components/VBanner/{index.d.ts → index.d.mts} +282 -63
- package/lib/components/VBottomNavigation/{index.d.ts → index.d.mts} +93 -45
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.mjs +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/{index.d.ts → index.d.mts} +348 -212
- package/lib/components/VBtn/{index.d.ts → index.d.mts} +139 -53
- package/lib/components/VBtnGroup/{index.d.ts → index.d.mts} +84 -27
- package/lib/components/VBtnToggle/{index.d.ts → index.d.mts} +88 -35
- package/lib/components/VCalendar/util/props.mjs.map +1 -1
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/{index.d.ts → index.d.mts} +957 -419
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/{index.d.ts → index.d.mts} +616 -111
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +3 -3
- package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
- package/lib/components/VCheckbox/{index.d.ts → index.d.mts} +408 -141
- package/lib/components/VChip/VChip.css +4 -2
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/VChip.sass +3 -2
- package/lib/components/VChip/{index.d.ts → index.d.mts} +376 -85
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/index.d.mts +470 -0
- package/lib/components/VCode/{index.d.ts → index.d.mts} +78 -17
- package/lib/components/VColorPicker/VColorPicker.mjs +9 -4
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs +5 -4
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
- package/lib/components/VColorPicker/{index.d.ts → index.d.mts} +241 -109
- package/lib/components/VColorPicker/util/index.mjs +2 -22
- package/lib/components/VColorPicker/util/index.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.css +15 -9
- package/lib/components/VCombobox/VCombobox.mjs +82 -37
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.sass +15 -11
- package/lib/components/VCombobox/index.d.mts +2060 -0
- package/lib/components/VCounter/VCounter.mjs.map +1 -1
- package/lib/components/VCounter/{index.d.ts → index.d.mts} +105 -45
- package/lib/components/VDefaultsProvider/{index.d.ts → index.d.mts} +82 -20
- package/lib/components/VDialog/{index.d.ts → index.d.mts} +571 -305
- package/lib/components/VDivider/{index.d.ts → index.d.mts} +81 -21
- package/lib/components/VExpansionPanel/{index.d.ts → index.d.mts} +374 -110
- package/lib/components/VField/VField.css +49 -16
- package/lib/components/VField/VField.mjs +12 -2
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/VField.sass +40 -11
- package/lib/components/VField/_variables.scss +8 -2
- package/lib/components/VField/index.d.mts +682 -0
- package/lib/components/VFileInput/VFileInput.css +3 -0
- package/lib/components/VFileInput/VFileInput.mjs +7 -1
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/VFileInput.sass +6 -1
- package/lib/components/VFileInput/{index.d.ts → index.d.mts} +1033 -399
- package/lib/components/VFooter/{index.d.ts → index.d.mts} +85 -29
- package/lib/components/VForm/VForm.mjs.map +1 -1
- package/lib/components/VForm/index.d.mts +993 -0
- package/lib/components/VGrid/{index.d.ts → index.d.mts} +334 -100
- package/lib/components/VHover/VHover.mjs.map +1 -1
- package/lib/components/VHover/{index.d.ts → index.d.mts} +120 -37
- package/lib/components/VIcon/{index.d.ts → index.d.mts} +322 -81
- package/lib/components/VImg/VImg.css +2 -4
- package/lib/components/VImg/VImg.mjs +25 -24
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/VImg.sass +4 -3
- package/lib/components/VImg/{index.d.ts → index.d.mts} +177 -40
- package/lib/components/VInput/VInput.css +10 -4
- package/lib/components/VInput/VInput.mjs +9 -3
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/VInput.sass +7 -2
- package/lib/components/VInput/_variables.scss +1 -0
- package/lib/components/VInput/{index.d.ts → index.d.mts} +237 -93
- package/lib/components/VItemGroup/VItem.mjs +1 -1
- package/lib/components/VItemGroup/VItem.mjs.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
- package/lib/components/VItemGroup/index.d.mts +781 -0
- package/lib/components/VKbd/{index.d.ts → index.d.mts} +78 -17
- package/lib/components/VLabel/{index.d.ts → index.d.mts} +79 -18
- package/lib/components/VLayout/{index.d.ts → index.d.mts} +161 -42
- package/lib/components/VLazy/{index.d.ts → index.d.mts} +82 -27
- package/lib/components/VList/VList.mjs +6 -1
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VListChildren.mjs +4 -8
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/VList/VListGroup.mjs +3 -0
- package/lib/components/VList/VListGroup.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs +11 -6
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/{index.d.ts → index.d.mts} +1245 -619
- package/lib/components/VLocaleProvider/{index.d.ts → index.d.mts} +80 -19
- package/lib/components/VMain/{index.d.ts → index.d.mts} +79 -19
- package/lib/components/VMenu/{index.d.ts → index.d.mts} +567 -299
- package/lib/components/VMessages/VMessages.mjs.map +1 -1
- package/lib/components/VMessages/{index.d.ts → index.d.mts} +87 -34
- package/lib/components/VNavigationDrawer/VNavigationDrawer.css +2 -0
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +2 -0
- package/lib/components/VNavigationDrawer/{index.d.ts → index.d.mts} +139 -57
- package/lib/components/VOverlay/{index.d.ts → index.d.mts} +159 -75
- package/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/lib/components/VPagination/{index.d.ts → index.d.mts} +229 -125
- package/lib/components/VParallax/{index.d.ts → index.d.mts} +118 -18
- package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
- package/lib/components/VProgressCircular/{index.d.ts → index.d.mts} +148 -45
- package/lib/components/VProgressLinear/{index.d.ts → index.d.mts} +119 -52
- package/lib/components/VRadio/{index.d.ts → index.d.mts} +139 -40
- package/lib/components/VRadioGroup/{index.d.ts → index.d.mts} +265 -93
- package/lib/components/VRangeSlider/VRangeSlider.mjs +4 -4
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/{index.d.ts → index.d.mts} +313 -132
- package/lib/components/VRating/{index.d.ts → index.d.mts} +108 -49
- package/lib/components/VResponsive/VResponsive.css +13 -5
- package/lib/components/VResponsive/VResponsive.mjs +4 -1
- package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
- package/lib/components/VResponsive/VResponsive.sass +12 -4
- package/lib/components/VResponsive/{index.d.ts → index.d.mts} +99 -16
- package/lib/components/VSelect/VSelect.css +15 -9
- package/lib/components/VSelect/VSelect.mjs +23 -18
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.sass +14 -11
- package/lib/components/VSelect/index.d.mts +1986 -0
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.mts +403 -0
- package/lib/components/VSelectionControlGroup/{index.d.ts → index.d.mts} +90 -38
- package/lib/components/VSheet/{index.d.ts → index.d.mts} +81 -21
- package/lib/components/VSlideGroup/{index.d.ts → index.d.mts} +236 -61
- package/lib/components/VSlider/VSlider.mjs +2 -2
- package/lib/components/VSlider/VSlider.mjs.map +1 -1
- package/lib/components/VSlider/VSliderThumb.mjs +1 -1
- package/lib/components/VSlider/VSliderThumb.mjs.map +1 -1
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSlider/{index.d.ts → index.d.mts} +308 -126
- package/lib/components/VSlider/slider.mjs +8 -2
- package/lib/components/VSlider/slider.mjs.map +1 -1
- package/lib/components/VSnackbar/{index.d.ts → index.d.mts} +566 -297
- package/lib/components/VSwitch/VSwitch.css +3 -3
- package/lib/components/VSwitch/VSwitch.sass +4 -3
- package/lib/components/VSwitch/{index.d.ts → index.d.mts} +284 -101
- package/lib/components/VSystemBar/{index.d.ts → index.d.mts} +84 -27
- package/lib/components/VTable/{index.d.ts → index.d.mts} +122 -26
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/{index.d.ts → index.d.mts} +203 -113
- package/lib/components/VTextField/VTextField.css +9 -1
- package/lib/components/VTextField/VTextField.mjs +4 -2
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/VTextField.sass +8 -1
- package/lib/components/VTextField/index.d.mts +2735 -0
- package/lib/components/VTextarea/VTextarea.mjs +13 -4
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/{index.d.ts → index.d.mts} +933 -393
- package/lib/components/VThemeProvider/{index.d.ts → index.d.mts} +80 -20
- package/lib/components/VTimeline/{index.d.ts → index.d.mts} +201 -62
- package/lib/components/VToolbar/{index.d.ts → index.d.mts} +325 -73
- package/lib/components/VTooltip/{index.d.ts → index.d.mts} +568 -297
- package/lib/components/VValidation/VValidation.mjs.map +1 -1
- package/lib/components/VValidation/index.d.mts +634 -0
- package/lib/components/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
- package/lib/components/VVirtualScroll/index.d.mts +229 -0
- package/lib/components/VWindow/{index.d.ts → index.d.mts} +271 -68
- package/lib/components/{index.d.ts → index.d.mts} +27847 -14031
- package/lib/components/index.mjs +2 -3
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/transitions/{index.d.ts → index.d.mts} +1330 -355
- package/lib/composables/display.mjs +6 -6
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/filter.mjs +5 -4
- package/lib/composables/filter.mjs.map +1 -1
- package/lib/composables/form.mjs +2 -3
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/forwardRefs.mjs.map +1 -1
- package/lib/composables/group.mjs +13 -13
- package/lib/composables/group.mjs.map +1 -1
- package/lib/composables/icons.mjs.map +1 -1
- package/lib/composables/{items.mjs → list-items.mjs} +9 -6
- package/lib/composables/list-items.mjs.map +1 -0
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/nested/selectStrategies.mjs.map +1 -1
- package/lib/composables/scroll.mjs +2 -2
- package/lib/composables/scroll.mjs.map +1 -1
- package/lib/composables/validation.mjs +44 -16
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/entry-bundler.mjs +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/framework.mjs.map +1 -1
- package/lib/{index.d.ts → index.d.mts} +16 -10
- package/lib/labs/VBottomSheet/VBottomSheet.css +33 -0
- package/lib/labs/VBottomSheet/VBottomSheet.mjs +40 -0
- package/lib/labs/VBottomSheet/VBottomSheet.mjs.map +1 -0
- package/lib/labs/VBottomSheet/VBottomSheet.sass +37 -0
- package/lib/labs/VBottomSheet/_variables.scss +5 -0
- package/lib/labs/VBottomSheet/index.d.mts +871 -0
- package/lib/labs/VBottomSheet/index.mjs +2 -0
- package/lib/labs/VBottomSheet/index.mjs.map +1 -0
- package/lib/labs/VDataIterator/VDataIterator.mjs +160 -0
- package/lib/labs/VDataIterator/VDataIterator.mjs.map +1 -0
- package/lib/labs/VDataIterator/composables/items.mjs +37 -0
- package/lib/labs/VDataIterator/composables/items.mjs.map +1 -0
- package/lib/labs/VDataIterator/index.d.mts +704 -0
- package/lib/labs/VDataIterator/index.mjs +2 -0
- package/lib/labs/VDataIterator/index.mjs.map +1 -0
- package/lib/labs/VDataTable/VDataTable.mjs +58 -20
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableGroupHeaderRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableHeaders.mjs +17 -10
- package/lib/labs/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs +50 -14
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableVirtual.mjs +50 -13
- package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/expand.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/group.mjs +8 -6
- package/lib/labs/VDataTable/composables/group.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/headers.mjs +2 -3
- package/lib/labs/VDataTable/composables/headers.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/items.mjs +31 -32
- package/lib/labs/VDataTable/composables/items.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/paginate.mjs +14 -2
- package/lib/labs/VDataTable/composables/paginate.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/select.mjs +3 -3
- package/lib/labs/VDataTable/composables/select.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/sort.mjs +17 -17
- package/lib/labs/VDataTable/composables/sort.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/virtual.mjs.map +1 -1
- package/lib/labs/VDataTable/index.d.mts +9681 -0
- package/lib/labs/VDataTable/index.mjs +1 -1
- package/lib/labs/VDataTable/index.mjs.map +1 -1
- package/lib/labs/VDataTable/types.mjs.map +1 -1
- package/lib/labs/VInfiniteScroll/VInfiniteScroll.mjs.map +1 -1
- package/lib/labs/VInfiniteScroll/{index.d.ts → index.d.mts} +161 -54
- package/lib/labs/VSkeletonLoader/VSkeletonLoader.mjs.map +1 -1
- package/lib/labs/VSkeletonLoader/{index.d.ts → index.d.mts} +92 -31
- package/lib/labs/components.d.mts +11806 -0
- package/lib/labs/components.mjs +2 -0
- package/lib/labs/components.mjs.map +1 -1
- package/lib/labs/date/date.mjs.map +1 -1
- package/lib/labs/date/index.d.mts +70 -0
- package/lib/labs/date/index.mjs +1 -1
- package/lib/labs/date/index.mjs.map +1 -1
- package/lib/styles/settings/_variables.scss +3 -3
- package/lib/util/colorUtils.mjs +68 -3
- package/lib/util/colorUtils.mjs.map +1 -1
- package/lib/util/console.mjs +12 -81
- package/lib/util/console.mjs.map +1 -1
- package/lib/util/defineComponent.mjs.map +1 -1
- package/lib/util/helpers.mjs +4 -18
- package/lib/util/helpers.mjs.map +1 -1
- package/lib/util/propsFactory.mjs +2 -0
- package/lib/util/propsFactory.mjs.map +1 -1
- package/package.json +13 -9
- package/lib/components/VAutocomplete/index.d.ts +0 -2050
- package/lib/components/VBottomSheet/VBottomSheet.mjs +0 -29
- package/lib/components/VBottomSheet/VBottomSheet.mjs.map +0 -1
- package/lib/components/VBottomSheet/VBottomSheet.sass +0 -23
- package/lib/components/VBottomSheet/_variables.scss +0 -3
- package/lib/components/VBottomSheet/index.mjs +0 -4
- package/lib/components/VBottomSheet/index.mjs.map +0 -1
- package/lib/components/VChipGroup/index.d.ts +0 -280
- package/lib/components/VCombobox/index.d.ts +0 -2086
- package/lib/components/VData/VData.mjs +0 -374
- package/lib/components/VData/VData.mjs.map +0 -1
- package/lib/components/VData/index.mjs +0 -4
- package/lib/components/VData/index.mjs.map +0 -1
- package/lib/components/VDataIterator/VDataFooter.mjs +0 -194
- package/lib/components/VDataIterator/VDataFooter.mjs.map +0 -1
- package/lib/components/VDataIterator/VDataFooter.sass +0 -71
- package/lib/components/VDataIterator/VDataIterator.mjs +0 -316
- package/lib/components/VDataIterator/VDataIterator.mjs.map +0 -1
- package/lib/components/VDataIterator/_variables.scss +0 -13
- package/lib/components/VDataIterator/index.mjs +0 -10
- package/lib/components/VDataIterator/index.mjs.map +0 -1
- package/lib/components/VField/index.d.ts +0 -563
- package/lib/components/VForm/index.d.ts +0 -284
- package/lib/components/VItemGroup/index.d.ts +0 -396
- package/lib/components/VSelect/index.d.ts +0 -1981
- package/lib/components/VSelectionControl/index.d.ts +0 -387
- package/lib/components/VTextField/index.d.ts +0 -2061
- package/lib/components/VValidation/index.d.ts +0 -243
- package/lib/components/VVirtualScroll/index.d.ts +0 -197
- package/lib/composables/items.mjs.map +0 -1
- package/lib/labs/VDataTable/index.d.ts +0 -5415
- package/lib/labs/components.d.ts +0 -5945
- package/lib/labs/date/index.d.ts +0 -38
- /package/lib/components/VNoSsr/{index.d.ts → index.d.mts} +0 -0
- /package/lib/directives/{index.d.ts → index.d.mts} +0 -0
- /package/lib/iconsets/{fa-svg.d.ts → fa-svg.d.mts} +0 -0
- /package/lib/iconsets/{fa.d.ts → fa.d.mts} +0 -0
- /package/lib/iconsets/{fa4.d.ts → fa4.d.mts} +0 -0
- /package/lib/iconsets/{md.d.ts → md.d.mts} +0 -0
- /package/lib/iconsets/{mdi-svg.d.ts → mdi-svg.d.mts} +0 -0
- /package/lib/iconsets/{mdi.d.ts → mdi.d.mts} +0 -0
- /package/lib/labs/date/adapters/{vuetify.d.ts → vuetify.d.mts} +0 -0
- /package/lib/locale/adapters/{vue-i18n.d.ts → vue-i18n.d.mts} +0 -0
- /package/lib/locale/adapters/{vuetify.d.ts → vuetify.d.mts} +0 -0
- /package/lib/locale/{index.d.ts → index.d.mts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VValidation.mjs","names":["makeValidationProps","useValidation","genericComponent","VValidation","name","props","emits","val","setup","_ref","slots","validation","default"],"sources":["../../../src/components/VValidation/VValidation.tsx"],"sourcesContent":["// Composables\nimport { makeValidationProps, useValidation } from '@/composables/validation'\n\n// Utilities\nimport { genericComponent } from '@/util'\n\nexport const VValidation = genericComponent()({\n name: 'VValidation',\n\n props: makeValidationProps(),\n\n emits: {\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { slots }) {\n const validation = useValidation(props, 'validation')\n\n return () => slots.default?.(validation)\n },\n})\n\nexport type VValidation = InstanceType<typeof VValidation>\n"],"mappings":"AAAA;AAAA,SACSA,mBAAmB,EAAEC,aAAa,4CAE3C;AAAA,SACSC,gBAAgB;
|
|
1
|
+
{"version":3,"file":"VValidation.mjs","names":["makeValidationProps","useValidation","genericComponent","VValidation","name","props","emits","val","setup","_ref","slots","validation","default"],"sources":["../../../src/components/VValidation/VValidation.tsx"],"sourcesContent":["// Composables\nimport { makeValidationProps, useValidation } from '@/composables/validation'\n\n// Utilities\nimport { genericComponent } from '@/util'\n\nexport type VValidationSlots = {\n default: [ReturnType<typeof useValidation>]\n}\n\nexport const VValidation = genericComponent<VValidationSlots>()({\n name: 'VValidation',\n\n props: makeValidationProps(),\n\n emits: {\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { slots }) {\n const validation = useValidation(props, 'validation')\n\n return () => slots.default?.(validation)\n },\n})\n\nexport type VValidation = InstanceType<typeof VValidation>\n"],"mappings":"AAAA;AAAA,SACSA,mBAAmB,EAAEC,aAAa,4CAE3C;AAAA,SACSC,gBAAgB;AAMzB,OAAO,MAAMC,WAAW,GAAGD,gBAAgB,EAAoB,CAAC;EAC9DE,IAAI,EAAE,aAAa;EAEnBC,KAAK,EAAEL,mBAAmB,EAAE;EAE5BM,KAAK,EAAE;IACL,mBAAmB,EAAGC,GAAQ,IAAK;EACrC,CAAC;EAEDC,KAAKA,CAAEH,KAAK,EAAAI,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACrB,MAAME,UAAU,GAAGV,aAAa,CAACI,KAAK,EAAE,YAAY,CAAC;IAErD,OAAO,MAAMK,KAAK,CAACE,OAAO,GAAGD,UAAU,CAAC;EAC1C;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,634 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import { ComponentPropsOptions, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
|
|
4
|
+
interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions>, Props = ExtractPropTypes<PropsOptions>> {
|
|
5
|
+
filterProps<T extends Partial<Props>, U extends Exclude<keyof Props, Exclude<keyof Props, keyof T>>>(props: T): [yes: Partial<Pick<T, U>>, no: Omit<T, U>];
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
type EventProp<T extends any[] = any[], F = (...args: T) => any> = F | F[];
|
|
9
|
+
declare const EventProp: <T extends any[] = any[]>() => PropType<EventProp<T, (...args: T) => any>>;
|
|
10
|
+
|
|
11
|
+
type ValidationResult = string | boolean;
|
|
12
|
+
type ValidationRule = ValidationResult | PromiseLike<ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike<ValidationResult>);
|
|
13
|
+
|
|
14
|
+
declare const VValidation: {
|
|
15
|
+
new (...args: any[]): {
|
|
16
|
+
$: vue.ComponentInternalInstance;
|
|
17
|
+
$data: {};
|
|
18
|
+
$props: {
|
|
19
|
+
error?: boolean | undefined;
|
|
20
|
+
disabled?: boolean | null | undefined;
|
|
21
|
+
readonly?: boolean | null | undefined;
|
|
22
|
+
focused?: boolean | undefined;
|
|
23
|
+
errorMessages?: string | readonly string[] | undefined;
|
|
24
|
+
maxErrors?: string | number | undefined;
|
|
25
|
+
rules?: readonly ValidationRule[] | undefined;
|
|
26
|
+
key?: string | number | symbol | undefined;
|
|
27
|
+
name?: string | undefined;
|
|
28
|
+
label?: string | undefined;
|
|
29
|
+
style?: unknown;
|
|
30
|
+
class?: unknown;
|
|
31
|
+
$children?: vue.VNodeChild | {
|
|
32
|
+
default?: ((args_0: {
|
|
33
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
34
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
35
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
36
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
37
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
38
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
39
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
40
|
+
reset: () => void;
|
|
41
|
+
resetValidation: () => void;
|
|
42
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
43
|
+
validationClasses: vue.ComputedRef<{
|
|
44
|
+
[x: string]: boolean;
|
|
45
|
+
}>;
|
|
46
|
+
}) => vue.VNodeChild) | undefined;
|
|
47
|
+
} | ((args_0: {
|
|
48
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
49
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
50
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
51
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
52
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
53
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
54
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
55
|
+
reset: () => void;
|
|
56
|
+
resetValidation: () => void;
|
|
57
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
58
|
+
validationClasses: vue.ComputedRef<{
|
|
59
|
+
[x: string]: boolean;
|
|
60
|
+
}>;
|
|
61
|
+
}) => vue.VNodeChild);
|
|
62
|
+
ref?: vue.VNodeRef | undefined;
|
|
63
|
+
ref_for?: boolean | undefined;
|
|
64
|
+
ref_key?: string | undefined;
|
|
65
|
+
"v-slot:default"?: false | ((args_0: {
|
|
66
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
67
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
68
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
69
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
70
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
71
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
72
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
73
|
+
reset: () => void;
|
|
74
|
+
resetValidation: () => void;
|
|
75
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
76
|
+
validationClasses: vue.ComputedRef<{
|
|
77
|
+
[x: string]: boolean;
|
|
78
|
+
}>;
|
|
79
|
+
}) => vue.VNodeChild) | undefined;
|
|
80
|
+
'v-slots'?: {
|
|
81
|
+
default?: false | ((args_0: {
|
|
82
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
83
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
84
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
85
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
86
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
87
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
88
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
89
|
+
reset: () => void;
|
|
90
|
+
resetValidation: () => void;
|
|
91
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
92
|
+
validationClasses: vue.ComputedRef<{
|
|
93
|
+
[x: string]: boolean;
|
|
94
|
+
}>;
|
|
95
|
+
}) => vue.VNodeChild) | undefined;
|
|
96
|
+
} | undefined;
|
|
97
|
+
$slots?: {
|
|
98
|
+
default?: ((args_0: {
|
|
99
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
100
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
101
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
102
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
103
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
104
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
105
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
106
|
+
reset: () => void;
|
|
107
|
+
resetValidation: () => void;
|
|
108
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
109
|
+
validationClasses: vue.ComputedRef<{
|
|
110
|
+
[x: string]: boolean;
|
|
111
|
+
}>;
|
|
112
|
+
}) => vue.VNodeChild) | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
115
|
+
[key: string]: any;
|
|
116
|
+
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
117
|
+
[key: string]: any;
|
|
118
|
+
}>) => void)[] | undefined;
|
|
119
|
+
onVnodeMounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
120
|
+
[key: string]: any;
|
|
121
|
+
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
122
|
+
[key: string]: any;
|
|
123
|
+
}>) => void)[] | undefined;
|
|
124
|
+
onVnodeBeforeUpdate?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
125
|
+
[key: string]: any;
|
|
126
|
+
}>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
127
|
+
[key: string]: any;
|
|
128
|
+
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
129
|
+
[key: string]: any;
|
|
130
|
+
}>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
131
|
+
[key: string]: any;
|
|
132
|
+
}>) => void)[] | undefined;
|
|
133
|
+
onVnodeUpdated?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
134
|
+
[key: string]: any;
|
|
135
|
+
}>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
136
|
+
[key: string]: any;
|
|
137
|
+
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
138
|
+
[key: string]: any;
|
|
139
|
+
}>, oldVNode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
140
|
+
[key: string]: any;
|
|
141
|
+
}>) => void)[] | undefined;
|
|
142
|
+
onVnodeBeforeUnmount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
143
|
+
[key: string]: any;
|
|
144
|
+
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
145
|
+
[key: string]: any;
|
|
146
|
+
}>) => void)[] | undefined;
|
|
147
|
+
onVnodeUnmounted?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
148
|
+
[key: string]: any;
|
|
149
|
+
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
150
|
+
[key: string]: any;
|
|
151
|
+
}>) => void)[] | undefined;
|
|
152
|
+
modelValue?: any;
|
|
153
|
+
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
154
|
+
'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
|
|
155
|
+
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
|
156
|
+
validationValue?: any;
|
|
157
|
+
};
|
|
158
|
+
$attrs: {
|
|
159
|
+
[x: string]: unknown;
|
|
160
|
+
};
|
|
161
|
+
$refs: {
|
|
162
|
+
[x: string]: unknown;
|
|
163
|
+
};
|
|
164
|
+
$slots: Readonly<{
|
|
165
|
+
default?: ((args_0: {
|
|
166
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
167
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
168
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
169
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
170
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
171
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
172
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
173
|
+
reset: () => void;
|
|
174
|
+
resetValidation: () => void;
|
|
175
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
176
|
+
validationClasses: vue.ComputedRef<{
|
|
177
|
+
[x: string]: boolean;
|
|
178
|
+
}>;
|
|
179
|
+
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
180
|
+
[key: string]: any;
|
|
181
|
+
}>[]) | undefined;
|
|
182
|
+
}>;
|
|
183
|
+
$root: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
184
|
+
$parent: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
185
|
+
$emit: (event: "update:modelValue", val: any) => void;
|
|
186
|
+
$el: any;
|
|
187
|
+
$options: vue.ComponentOptionsBase<{
|
|
188
|
+
error: boolean;
|
|
189
|
+
disabled: boolean | null;
|
|
190
|
+
readonly: boolean | null;
|
|
191
|
+
focused: boolean;
|
|
192
|
+
errorMessages: string | readonly string[];
|
|
193
|
+
maxErrors: string | number;
|
|
194
|
+
rules: readonly ValidationRule[];
|
|
195
|
+
} & {
|
|
196
|
+
name?: string | undefined;
|
|
197
|
+
label?: string | undefined;
|
|
198
|
+
modelValue?: any;
|
|
199
|
+
'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
|
|
200
|
+
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
|
201
|
+
validationValue?: any;
|
|
202
|
+
} & {
|
|
203
|
+
$children?: vue.VNodeChild | {
|
|
204
|
+
default?: ((args_0: {
|
|
205
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
206
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
207
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
208
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
209
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
210
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
211
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
212
|
+
reset: () => void;
|
|
213
|
+
resetValidation: () => void;
|
|
214
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
215
|
+
validationClasses: vue.ComputedRef<{
|
|
216
|
+
[x: string]: boolean;
|
|
217
|
+
}>;
|
|
218
|
+
}) => vue.VNodeChild) | undefined;
|
|
219
|
+
} | ((args_0: {
|
|
220
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
221
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
222
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
223
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
224
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
225
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
226
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
227
|
+
reset: () => void;
|
|
228
|
+
resetValidation: () => void;
|
|
229
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
230
|
+
validationClasses: vue.ComputedRef<{
|
|
231
|
+
[x: string]: boolean;
|
|
232
|
+
}>;
|
|
233
|
+
}) => vue.VNodeChild);
|
|
234
|
+
'v-slots'?: {
|
|
235
|
+
default?: false | ((args_0: {
|
|
236
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
237
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
238
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
239
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
240
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
241
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
242
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
243
|
+
reset: () => void;
|
|
244
|
+
resetValidation: () => void;
|
|
245
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
246
|
+
validationClasses: vue.ComputedRef<{
|
|
247
|
+
[x: string]: boolean;
|
|
248
|
+
}>;
|
|
249
|
+
}) => vue.VNodeChild) | undefined;
|
|
250
|
+
} | undefined;
|
|
251
|
+
} & {
|
|
252
|
+
"v-slot:default"?: false | ((args_0: {
|
|
253
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
254
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
255
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
256
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
257
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
258
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
259
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
260
|
+
reset: () => void;
|
|
261
|
+
resetValidation: () => void;
|
|
262
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
263
|
+
validationClasses: vue.ComputedRef<{
|
|
264
|
+
[x: string]: boolean;
|
|
265
|
+
}>;
|
|
266
|
+
}) => vue.VNodeChild) | undefined;
|
|
267
|
+
} & {
|
|
268
|
+
$slots?: {
|
|
269
|
+
default?: ((args_0: {
|
|
270
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
271
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
272
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
273
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
274
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
275
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
276
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
277
|
+
reset: () => void;
|
|
278
|
+
resetValidation: () => void;
|
|
279
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
280
|
+
validationClasses: vue.ComputedRef<{
|
|
281
|
+
[x: string]: boolean;
|
|
282
|
+
}>;
|
|
283
|
+
}) => vue.VNodeChild) | undefined;
|
|
284
|
+
} | undefined;
|
|
285
|
+
} & {
|
|
286
|
+
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
287
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
288
|
+
[key: string]: any;
|
|
289
|
+
}>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
290
|
+
'update:modelValue': (val: any) => boolean;
|
|
291
|
+
}, string, {
|
|
292
|
+
error: boolean;
|
|
293
|
+
disabled: boolean | null;
|
|
294
|
+
readonly: boolean | null;
|
|
295
|
+
focused: boolean;
|
|
296
|
+
errorMessages: string | readonly string[];
|
|
297
|
+
maxErrors: string | number;
|
|
298
|
+
rules: readonly ValidationRule[];
|
|
299
|
+
}, {}, string, vue.SlotsType<Partial<{
|
|
300
|
+
default: (args_0: {
|
|
301
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
302
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
303
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
304
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
305
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
306
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
307
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
308
|
+
reset: () => void;
|
|
309
|
+
resetValidation: () => void;
|
|
310
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
311
|
+
validationClasses: vue.ComputedRef<{
|
|
312
|
+
[x: string]: boolean;
|
|
313
|
+
}>;
|
|
314
|
+
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
315
|
+
[key: string]: any;
|
|
316
|
+
}>[];
|
|
317
|
+
}>>> & {
|
|
318
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
319
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
320
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
321
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
322
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
323
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
324
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
325
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
326
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
327
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
328
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
329
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
330
|
+
renderTracked?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
331
|
+
renderTriggered?: (((e: vue.DebuggerEvent) => void) | ((e: vue.DebuggerEvent) => void)[]) | undefined;
|
|
332
|
+
errorCaptured?: (((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: vue.ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, vue.ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
333
|
+
};
|
|
334
|
+
$forceUpdate: () => void;
|
|
335
|
+
$nextTick: typeof vue.nextTick;
|
|
336
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: vue.WatchOptions<boolean> | undefined): vue.WatchStopHandle;
|
|
337
|
+
} & {
|
|
338
|
+
error: boolean;
|
|
339
|
+
disabled: boolean | null;
|
|
340
|
+
readonly: boolean | null;
|
|
341
|
+
focused: boolean;
|
|
342
|
+
errorMessages: string | readonly string[];
|
|
343
|
+
maxErrors: string | number;
|
|
344
|
+
rules: readonly ValidationRule[];
|
|
345
|
+
} & {
|
|
346
|
+
name?: string | undefined;
|
|
347
|
+
label?: string | undefined;
|
|
348
|
+
modelValue?: any;
|
|
349
|
+
'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
|
|
350
|
+
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
|
351
|
+
validationValue?: any;
|
|
352
|
+
} & {
|
|
353
|
+
$children?: vue.VNodeChild | {
|
|
354
|
+
default?: ((args_0: {
|
|
355
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
356
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
357
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
358
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
359
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
360
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
361
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
362
|
+
reset: () => void;
|
|
363
|
+
resetValidation: () => void;
|
|
364
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
365
|
+
validationClasses: vue.ComputedRef<{
|
|
366
|
+
[x: string]: boolean;
|
|
367
|
+
}>;
|
|
368
|
+
}) => vue.VNodeChild) | undefined;
|
|
369
|
+
} | ((args_0: {
|
|
370
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
371
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
372
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
373
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
374
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
375
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
376
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
377
|
+
reset: () => void;
|
|
378
|
+
resetValidation: () => void;
|
|
379
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
380
|
+
validationClasses: vue.ComputedRef<{
|
|
381
|
+
[x: string]: boolean;
|
|
382
|
+
}>;
|
|
383
|
+
}) => vue.VNodeChild);
|
|
384
|
+
'v-slots'?: {
|
|
385
|
+
default?: false | ((args_0: {
|
|
386
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
387
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
388
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
389
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
390
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
391
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
392
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
393
|
+
reset: () => void;
|
|
394
|
+
resetValidation: () => void;
|
|
395
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
396
|
+
validationClasses: vue.ComputedRef<{
|
|
397
|
+
[x: string]: boolean;
|
|
398
|
+
}>;
|
|
399
|
+
}) => vue.VNodeChild) | undefined;
|
|
400
|
+
} | undefined;
|
|
401
|
+
} & {
|
|
402
|
+
"v-slot:default"?: false | ((args_0: {
|
|
403
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
404
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
405
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
406
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
407
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
408
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
409
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
410
|
+
reset: () => void;
|
|
411
|
+
resetValidation: () => void;
|
|
412
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
413
|
+
validationClasses: vue.ComputedRef<{
|
|
414
|
+
[x: string]: boolean;
|
|
415
|
+
}>;
|
|
416
|
+
}) => vue.VNodeChild) | undefined;
|
|
417
|
+
} & {
|
|
418
|
+
$slots?: {
|
|
419
|
+
default?: ((args_0: {
|
|
420
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
421
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
422
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
423
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
424
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
425
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
426
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
427
|
+
reset: () => void;
|
|
428
|
+
resetValidation: () => void;
|
|
429
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
430
|
+
validationClasses: vue.ComputedRef<{
|
|
431
|
+
[x: string]: boolean;
|
|
432
|
+
}>;
|
|
433
|
+
}) => vue.VNodeChild) | undefined;
|
|
434
|
+
} | undefined;
|
|
435
|
+
} & {
|
|
436
|
+
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
437
|
+
} & vue.ShallowUnwrapRef<() => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
438
|
+
[key: string]: any;
|
|
439
|
+
}>[] | undefined> & {} & vue.ComponentCustomProperties & {};
|
|
440
|
+
__isFragment?: undefined;
|
|
441
|
+
__isTeleport?: undefined;
|
|
442
|
+
__isSuspense?: undefined;
|
|
443
|
+
} & vue.ComponentOptionsBase<{
|
|
444
|
+
error: boolean;
|
|
445
|
+
disabled: boolean | null;
|
|
446
|
+
readonly: boolean | null;
|
|
447
|
+
focused: boolean;
|
|
448
|
+
errorMessages: string | readonly string[];
|
|
449
|
+
maxErrors: string | number;
|
|
450
|
+
rules: readonly ValidationRule[];
|
|
451
|
+
} & {
|
|
452
|
+
name?: string | undefined;
|
|
453
|
+
label?: string | undefined;
|
|
454
|
+
modelValue?: any;
|
|
455
|
+
'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
|
|
456
|
+
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
|
457
|
+
validationValue?: any;
|
|
458
|
+
} & {
|
|
459
|
+
$children?: vue.VNodeChild | {
|
|
460
|
+
default?: ((args_0: {
|
|
461
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
462
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
463
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
464
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
465
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
466
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
467
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
468
|
+
reset: () => void;
|
|
469
|
+
resetValidation: () => void;
|
|
470
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
471
|
+
validationClasses: vue.ComputedRef<{
|
|
472
|
+
[x: string]: boolean;
|
|
473
|
+
}>;
|
|
474
|
+
}) => vue.VNodeChild) | undefined;
|
|
475
|
+
} | ((args_0: {
|
|
476
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
477
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
478
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
479
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
480
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
481
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
482
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
483
|
+
reset: () => void;
|
|
484
|
+
resetValidation: () => void;
|
|
485
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
486
|
+
validationClasses: vue.ComputedRef<{
|
|
487
|
+
[x: string]: boolean;
|
|
488
|
+
}>;
|
|
489
|
+
}) => vue.VNodeChild);
|
|
490
|
+
'v-slots'?: {
|
|
491
|
+
default?: false | ((args_0: {
|
|
492
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
493
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
494
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
495
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
496
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
497
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
498
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
499
|
+
reset: () => void;
|
|
500
|
+
resetValidation: () => void;
|
|
501
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
502
|
+
validationClasses: vue.ComputedRef<{
|
|
503
|
+
[x: string]: boolean;
|
|
504
|
+
}>;
|
|
505
|
+
}) => vue.VNodeChild) | undefined;
|
|
506
|
+
} | undefined;
|
|
507
|
+
} & {
|
|
508
|
+
"v-slot:default"?: false | ((args_0: {
|
|
509
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
510
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
511
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
512
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
513
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
514
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
515
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
516
|
+
reset: () => void;
|
|
517
|
+
resetValidation: () => void;
|
|
518
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
519
|
+
validationClasses: vue.ComputedRef<{
|
|
520
|
+
[x: string]: boolean;
|
|
521
|
+
}>;
|
|
522
|
+
}) => vue.VNodeChild) | undefined;
|
|
523
|
+
} & {
|
|
524
|
+
$slots?: {
|
|
525
|
+
default?: ((args_0: {
|
|
526
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
527
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
528
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
529
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
530
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
531
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
532
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
533
|
+
reset: () => void;
|
|
534
|
+
resetValidation: () => void;
|
|
535
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
536
|
+
validationClasses: vue.ComputedRef<{
|
|
537
|
+
[x: string]: boolean;
|
|
538
|
+
}>;
|
|
539
|
+
}) => vue.VNodeChild) | undefined;
|
|
540
|
+
} | undefined;
|
|
541
|
+
} & {
|
|
542
|
+
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
543
|
+
}, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
544
|
+
[key: string]: any;
|
|
545
|
+
}>[] | undefined, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
546
|
+
'update:modelValue': (val: any) => boolean;
|
|
547
|
+
}, string, {
|
|
548
|
+
error: boolean;
|
|
549
|
+
disabled: boolean | null;
|
|
550
|
+
readonly: boolean | null;
|
|
551
|
+
focused: boolean;
|
|
552
|
+
errorMessages: string | readonly string[];
|
|
553
|
+
maxErrors: string | number;
|
|
554
|
+
rules: readonly ValidationRule[];
|
|
555
|
+
}, {}, string, vue.SlotsType<Partial<{
|
|
556
|
+
default: (args_0: {
|
|
557
|
+
errorMessages: vue.ComputedRef<string[]>;
|
|
558
|
+
isDirty: vue.ComputedRef<boolean>;
|
|
559
|
+
isDisabled: vue.ComputedRef<boolean>;
|
|
560
|
+
isReadonly: vue.ComputedRef<boolean>;
|
|
561
|
+
isPristine: vue.ShallowRef<boolean>;
|
|
562
|
+
isValid: vue.ComputedRef<boolean | null>;
|
|
563
|
+
isValidating: vue.ShallowRef<boolean>;
|
|
564
|
+
reset: () => void;
|
|
565
|
+
resetValidation: () => void;
|
|
566
|
+
validate: (silent?: boolean) => Promise<string[]>;
|
|
567
|
+
validationClasses: vue.ComputedRef<{
|
|
568
|
+
[x: string]: boolean;
|
|
569
|
+
}>;
|
|
570
|
+
}) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
571
|
+
[key: string]: any;
|
|
572
|
+
}>[];
|
|
573
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
574
|
+
focused: BooleanConstructor;
|
|
575
|
+
'onUpdate:focused': vue.PropType<EventProp<[boolean], (args_0: boolean) => any>>;
|
|
576
|
+
disabled: {
|
|
577
|
+
type: vue.PropType<boolean | null>;
|
|
578
|
+
default: null;
|
|
579
|
+
};
|
|
580
|
+
error: BooleanConstructor;
|
|
581
|
+
errorMessages: {
|
|
582
|
+
type: vue.PropType<string | readonly string[]>;
|
|
583
|
+
default: () => never[];
|
|
584
|
+
};
|
|
585
|
+
maxErrors: {
|
|
586
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
587
|
+
default: number;
|
|
588
|
+
};
|
|
589
|
+
name: StringConstructor;
|
|
590
|
+
label: StringConstructor;
|
|
591
|
+
readonly: {
|
|
592
|
+
type: vue.PropType<boolean | null>;
|
|
593
|
+
default: null;
|
|
594
|
+
};
|
|
595
|
+
rules: {
|
|
596
|
+
type: vue.PropType<readonly ValidationRule[]>;
|
|
597
|
+
default: () => never[];
|
|
598
|
+
};
|
|
599
|
+
modelValue: null;
|
|
600
|
+
validateOn: vue.PropType<"lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined>;
|
|
601
|
+
validationValue: null;
|
|
602
|
+
}, vue.ExtractPropTypes<{
|
|
603
|
+
focused: BooleanConstructor;
|
|
604
|
+
'onUpdate:focused': vue.PropType<EventProp<[boolean], (args_0: boolean) => any>>;
|
|
605
|
+
disabled: {
|
|
606
|
+
type: vue.PropType<boolean | null>;
|
|
607
|
+
default: null;
|
|
608
|
+
};
|
|
609
|
+
error: BooleanConstructor;
|
|
610
|
+
errorMessages: {
|
|
611
|
+
type: vue.PropType<string | readonly string[]>;
|
|
612
|
+
default: () => never[];
|
|
613
|
+
};
|
|
614
|
+
maxErrors: {
|
|
615
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
616
|
+
default: number;
|
|
617
|
+
};
|
|
618
|
+
name: StringConstructor;
|
|
619
|
+
label: StringConstructor;
|
|
620
|
+
readonly: {
|
|
621
|
+
type: vue.PropType<boolean | null>;
|
|
622
|
+
default: null;
|
|
623
|
+
};
|
|
624
|
+
rules: {
|
|
625
|
+
type: vue.PropType<readonly ValidationRule[]>;
|
|
626
|
+
default: () => never[];
|
|
627
|
+
};
|
|
628
|
+
modelValue: null;
|
|
629
|
+
validateOn: vue.PropType<"lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined>;
|
|
630
|
+
validationValue: null;
|
|
631
|
+
}>>;
|
|
632
|
+
type VValidation = InstanceType<typeof VValidation>;
|
|
633
|
+
|
|
634
|
+
export { VValidation };
|