@vuetify/nightly 3.3.0 → 3.3.1-master.2023-05-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/CHANGELOG.md +9 -34
- package/dist/json/attributes.json +74 -42
- package/dist/json/importMap.json +46 -46
- package/dist/json/tags.json +8 -0
- package/dist/json/web-types.json +551 -471
- package/dist/vuetify-labs.css +528 -526
- package/dist/vuetify-labs.d.ts +6842 -12057
- package/dist/vuetify-labs.esm.js +6639 -6402
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +6638 -6401
- package/dist/vuetify-labs.min.css +2 -2
- package/dist/vuetify.css +26 -25
- package/dist/vuetify.d.ts +5405 -9248
- package/dist/vuetify.esm.js +6354 -6257
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +6353 -6256
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +2 -2
- package/dist/vuetify.min.js +872 -867
- package/dist/vuetify.min.js.map +1 -1
- package/lib/blueprints/index.d.mts +31 -31
- package/lib/blueprints/md1.d.mts +31 -31
- package/lib/blueprints/md2.d.mts +31 -31
- package/lib/blueprints/md3.d.mts +31 -31
- package/lib/components/VAlert/VAlert.mjs +5 -5
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/_variables.scss +2 -2
- package/lib/components/VAlert/index.d.mts +16 -74
- package/lib/components/VApp/VApp.mjs +3 -3
- package/lib/components/VApp/VApp.mjs.map +1 -1
- package/lib/components/VApp/index.d.mts +0 -15
- package/lib/components/VAppBar/VAppBar.mjs +8 -5
- package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
- package/lib/components/VAppBar/index.d.mts +1 -82
- package/lib/components/VAutocomplete/VAutocomplete.mjs +6 -7
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +205 -259
- package/lib/components/VAvatar/VAvatar.mjs +3 -3
- package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
- package/lib/components/VAvatar/_variables.scss +1 -1
- package/lib/components/VAvatar/index.d.mts +0 -15
- package/lib/components/VBadge/VBadge.mjs +5 -5
- package/lib/components/VBadge/VBadge.mjs.map +1 -1
- package/lib/components/VBadge/index.d.mts +0 -19
- package/lib/components/VBanner/VBanner.mjs +6 -9
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBanner/VBannerActions.mjs +1 -1
- package/lib/components/VBanner/VBannerActions.mjs.map +1 -1
- package/lib/components/VBanner/VBannerText.mjs +1 -0
- package/lib/components/VBanner/VBannerText.mjs.map +1 -1
- package/lib/components/VBanner/index.d.mts +1 -58
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs +7 -7
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
- package/lib/components/VBottomNavigation/index.d.mts +0 -15
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +5 -8
- 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/VBreadcrumbsItem.mjs +2 -2
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/index.d.mts +30 -60
- package/lib/components/VBtn/VBtn.mjs +5 -5
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/_variables.scss +15 -15
- package/lib/components/VBtn/index.d.mts +0 -27
- package/lib/components/VBtnGroup/VBtnGroup.mjs +3 -3
- package/lib/components/VBtnGroup/VBtnGroup.mjs.map +1 -1
- package/lib/components/VBtnGroup/index.d.mts +0 -15
- package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -1
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/index.d.mts +19 -34
- package/lib/components/VCard/VCard.mjs +6 -6
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/VCard.sass +2 -2
- package/lib/components/VCard/VCardItem.mjs +3 -3
- package/lib/components/VCard/VCardItem.mjs.map +1 -1
- package/lib/components/VCard/VCardSubtitle.mjs +1 -0
- package/lib/components/VCard/VCardSubtitle.mjs.map +1 -1
- package/lib/components/VCard/VCardText.mjs +1 -0
- package/lib/components/VCard/VCardText.mjs.map +1 -1
- package/lib/components/VCard/VCardTitle.mjs +1 -0
- package/lib/components/VCard/VCardTitle.mjs.map +1 -1
- package/lib/components/VCard/_variables.scss +10 -11
- package/lib/components/VCard/index.d.mts +16 -158
- package/lib/components/VCarousel/VCarousel.mjs +3 -6
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/index.d.mts +79 -237
- package/lib/components/VCheckbox/VCheckbox.mjs +2 -2
- package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
- package/lib/components/VCheckbox/index.d.mts +191 -277
- package/lib/components/VChip/VChip.mjs +6 -6
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.mts +19 -82
- package/lib/components/VChipGroup/VChipGroup.mjs +3 -6
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/index.d.mts +19 -58
- package/lib/components/VCode/index.d.mts +0 -15
- package/lib/components/VCode/index.mjs +3 -0
- package/lib/components/VCode/index.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPicker.mjs +6 -9
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs +1 -4
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.mjs +2 -2
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.mjs +2 -2
- package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.mjs +8 -8
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +205 -259
- package/lib/components/VCounter/VCounter.mjs +1 -1
- package/lib/components/VCounter/VCounter.mjs.map +1 -1
- package/lib/components/VCounter/index.d.mts +19 -34
- package/lib/components/VDefaultsProvider/index.d.mts +1 -16
- package/lib/components/VDialog/VDialog.mjs +5 -5
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/index.d.mts +175 -301
- package/lib/components/VDivider/VDivider.mjs +2 -2
- package/lib/components/VDivider/VDivider.mjs.map +1 -1
- package/lib/components/VDivider/index.d.mts +0 -15
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs +4 -4
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +2 -2
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +4 -4
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanels.mjs +2 -2
- package/lib/components/VExpansionPanel/VExpansionPanels.mjs.map +1 -1
- package/lib/components/VExpansionPanel/index.d.mts +35 -107
- package/lib/components/VField/VField.mjs +7 -7
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/VField.sass +0 -1
- package/lib/components/VField/_variables.scss +1 -0
- package/lib/components/VField/index.d.mts +39 -54
- package/lib/components/VFileInput/VFileInput.mjs +4 -4
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/index.d.mts +381 -537
- package/lib/components/VFooter/VFooter.mjs +3 -3
- package/lib/components/VFooter/VFooter.mjs.map +1 -1
- package/lib/components/VFooter/_variables.scss +1 -1
- package/lib/components/VFooter/index.d.mts +0 -15
- package/lib/components/VForm/VForm.mjs +2 -2
- package/lib/components/VForm/VForm.mjs.map +1 -1
- package/lib/components/VForm/index.d.mts +19 -146
- package/lib/components/VGrid/VCol.mjs +1 -1
- package/lib/components/VGrid/VCol.mjs.map +1 -1
- package/lib/components/VGrid/VContainer.mjs +2 -2
- package/lib/components/VGrid/VContainer.mjs.map +1 -1
- package/lib/components/VGrid/VRow.mjs +1 -1
- package/lib/components/VGrid/VRow.mjs.map +1 -1
- package/lib/components/VGrid/VSpacer.mjs +1 -0
- package/lib/components/VGrid/VSpacer.mjs.map +1 -1
- package/lib/components/VGrid/index.d.mts +0 -60
- package/lib/components/VHover/VHover.mjs.map +1 -1
- package/lib/components/VHover/index.d.mts +19 -46
- package/lib/components/VIcon/VIcon.mjs +3 -3
- package/lib/components/VIcon/VIcon.mjs.map +1 -1
- package/lib/components/VIcon/index.d.mts +0 -30
- package/lib/components/VImg/VImg.mjs +4 -3
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/index.d.mts +0 -27
- package/lib/components/VInput/InputIcon.mjs +3 -2
- package/lib/components/VInput/InputIcon.mjs.map +1 -1
- package/lib/components/VInput/VInput.mjs +3 -3
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/_variables.scss +1 -1
- package/lib/components/VInput/index.d.mts +88 -119
- package/lib/components/VItemGroup/VItem.mjs +2 -2
- 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 +38 -120
- package/lib/components/VKbd/index.d.mts +0 -15
- package/lib/components/VKbd/index.mjs +3 -0
- package/lib/components/VKbd/index.mjs.map +1 -1
- package/lib/components/VLabel/index.d.mts +0 -15
- package/lib/components/VLayout/VLayout.mjs +2 -2
- package/lib/components/VLayout/VLayout.mjs.map +1 -1
- package/lib/components/VLayout/index.d.mts +0 -30
- package/lib/components/VLazy/VLazy.mjs +2 -2
- package/lib/components/VLazy/VLazy.mjs.map +1 -1
- package/lib/components/VLazy/index.d.mts +0 -15
- package/lib/components/VList/VList.mjs +3 -3
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VListChildren.mjs +2 -2
- package/lib/components/VList/VListChildren.mjs.map +1 -1
- package/lib/components/VList/VListGroup.mjs +7 -7
- package/lib/components/VList/VListGroup.mjs.map +1 -1
- package/lib/components/VList/VListImg.mjs +1 -0
- package/lib/components/VList/VListImg.mjs.map +1 -1
- package/lib/components/VList/VListItem.mjs +8 -8
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListItemSubtitle.mjs +1 -0
- package/lib/components/VList/VListItemSubtitle.mjs.map +1 -1
- package/lib/components/VList/VListItemTitle.mjs +1 -0
- package/lib/components/VList/VListItemTitle.mjs.map +1 -1
- package/lib/components/VList/VListSubheader.mjs +2 -2
- package/lib/components/VList/VListSubheader.mjs.map +1 -1
- package/lib/components/VList/_variables.scss +6 -6
- package/lib/components/VList/index.d.mts +185 -337
- package/lib/components/VLocaleProvider/index.d.mts +0 -15
- package/lib/components/VMain/VMain.mjs +2 -2
- package/lib/components/VMain/VMain.mjs.map +1 -1
- package/lib/components/VMain/index.d.mts +0 -15
- package/lib/components/VMenu/VMenu.mjs +5 -5
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/index.d.mts +222 -348
- package/lib/components/VMenu/shared.mjs +2 -0
- package/lib/components/VMenu/shared.mjs.map +1 -1
- package/lib/components/VMessages/VMessages.mjs +2 -2
- package/lib/components/VMessages/VMessages.mjs.map +1 -1
- package/lib/components/VMessages/index.d.mts +15 -30
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +9 -9
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/index.d.mts +15 -42
- package/lib/components/VOverlay/VOverlay.mjs +10 -13
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/index.d.mts +55 -94
- package/lib/components/VOverlay/locationStrategies.mjs +4 -4
- package/lib/components/VOverlay/locationStrategies.mjs.map +1 -1
- package/lib/components/VOverlay/scrollStrategies.mjs +2 -2
- package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
- package/lib/components/VOverlay/useActivator.mjs +4 -7
- package/lib/components/VOverlay/useActivator.mjs.map +1 -1
- package/lib/components/VOverlay/util/point.mjs +2 -0
- package/lib/components/VOverlay/util/point.mjs.map +1 -1
- package/lib/components/VPagination/VPagination.mjs +8 -8
- package/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/lib/components/VPagination/index.d.mts +75 -106
- package/lib/components/VParallax/VParallax.mjs +2 -5
- package/lib/components/VParallax/VParallax.mjs.map +1 -1
- package/lib/components/VParallax/index.d.mts +0 -27
- package/lib/components/VProgressCircular/VProgressCircular.mjs +4 -4
- package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
- package/lib/components/VProgressCircular/index.d.mts +19 -42
- package/lib/components/VProgressLinear/VProgressLinear.mjs +5 -5
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/index.d.mts +19 -46
- package/lib/components/VRadio/index.d.mts +33 -68
- package/lib/components/VRadioGroup/VRadioGroup.mjs +3 -3
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/index.d.mts +140 -191
- package/lib/components/VRangeSlider/VRangeSlider.mjs +3 -3
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/index.d.mts +100 -143
- package/lib/components/VRating/VRating.mjs +5 -8
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VRating/index.d.mts +30 -49
- package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
- package/lib/components/VResponsive/index.d.mts +0 -19
- package/lib/components/VSelect/VSelect.mjs +7 -7
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +205 -259
- package/lib/components/VSelectionControl/VSelectionControl.mjs +4 -4
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
- package/lib/components/VSelectionControl/index.d.mts +24 -24
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +4 -4
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -1
- package/lib/components/VSelectionControlGroup/index.d.mts +0 -15
- package/lib/components/VSheet/VSheet.mjs +3 -3
- package/lib/components/VSheet/VSheet.mjs.map +1 -1
- package/lib/components/VSheet/index.d.mts +0 -15
- package/lib/components/VSlideGroup/VSlideGroup.mjs +6 -6
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroupItem.mjs +2 -2
- package/lib/components/VSlideGroup/VSlideGroupItem.mjs.map +1 -1
- package/lib/components/VSlideGroup/index.d.mts +68 -126
- package/lib/components/VSlider/VSlider.css +5 -4
- package/lib/components/VSlider/VSlider.mjs +5 -5
- package/lib/components/VSlider/VSlider.mjs.map +1 -1
- package/lib/components/VSlider/VSlider.sass +5 -4
- package/lib/components/VSlider/VSliderThumb.mjs +5 -5
- package/lib/components/VSlider/VSliderThumb.mjs.map +1 -1
- package/lib/components/VSlider/VSliderTrack.mjs +2 -2
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
- package/lib/components/VSlider/index.d.mts +100 -143
- package/lib/components/VSlider/slider.mjs +3 -6
- package/lib/components/VSlider/slider.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.mjs +6 -6
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/_variables.scss +1 -1
- package/lib/components/VSnackbar/index.d.mts +167 -289
- package/lib/components/VStepper/index.mjs +3 -2
- package/lib/components/VStepper/index.mjs.map +1 -1
- package/lib/components/VSwitch/VSwitch.mjs +4 -4
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/index.d.mts +164 -219
- package/lib/components/VSystemBar/VSystemBar.mjs +3 -3
- package/lib/components/VSystemBar/VSystemBar.mjs.map +1 -1
- package/lib/components/VSystemBar/_variables.scss +2 -2
- package/lib/components/VSystemBar/index.d.mts +0 -15
- package/lib/components/VTable/VTable.mjs.map +1 -1
- package/lib/components/VTable/_variables.scss +1 -1
- package/lib/components/VTable/index.d.mts +0 -27
- package/lib/components/VTabs/VTab.mjs +2 -2
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/VTabs.mjs +6 -6
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/index.d.mts +0 -30
- package/lib/components/VTabs/shared.mjs +2 -0
- package/lib/components/VTabs/shared.mjs.map +1 -1
- package/lib/components/VTextField/VTextField.mjs +5 -5
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/index.d.mts +423 -559
- package/lib/components/VTextarea/VTextarea.mjs +7 -10
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/index.d.mts +362 -494
- package/lib/components/VThemeProvider/index.d.mts +0 -15
- package/lib/components/VTimeline/VTimeline.mjs +3 -3
- package/lib/components/VTimeline/VTimeline.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineDivider.mjs +4 -4
- package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs +3 -6
- package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
- package/lib/components/VTimeline/index.d.mts +0 -38
- package/lib/components/VToolbar/VToolbar.mjs +7 -7
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbarItems.mjs +3 -3
- package/lib/components/VToolbar/VToolbarItems.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
- package/lib/components/VToolbar/_variables.scss +2 -2
- package/lib/components/VToolbar/index.d.mts +1 -70
- package/lib/components/VTooltip/VTooltip.mjs +5 -5
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/index.d.mts +222 -348
- package/lib/components/VValidation/VValidation.mjs.map +1 -1
- package/lib/components/VValidation/index.d.mts +19 -90
- package/lib/components/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
- package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +1 -1
- package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs.map +1 -1
- package/lib/components/VVirtualScroll/index.d.mts +17 -17
- package/lib/components/VWindow/VWindow.mjs +5 -5
- package/lib/components/VWindow/VWindow.mjs.map +1 -1
- package/lib/components/VWindow/VWindowItem.mjs +4 -4
- package/lib/components/VWindow/VWindowItem.mjs.map +1 -1
- package/lib/components/VWindow/index.d.mts +64 -138
- package/lib/components/index.d.mts +4451 -8296
- package/lib/components/transitions/createTransition.mjs +1 -4
- package/lib/components/transitions/createTransition.mjs.map +1 -1
- package/lib/components/transitions/dialog-transition.mjs +1 -3
- package/lib/components/transitions/dialog-transition.mjs.map +1 -1
- package/lib/components/transitions/index.d.mts +0 -240
- package/lib/composables/defaults.mjs +14 -8
- package/lib/composables/defaults.mjs.map +1 -1
- package/lib/composables/display.mjs +1 -1
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/filter.mjs +2 -4
- package/lib/composables/filter.mjs.map +1 -1
- package/lib/composables/focus.mjs +1 -1
- package/lib/composables/focus.mjs.map +1 -1
- package/lib/composables/forwardRefs.mjs +2 -0
- package/lib/composables/forwardRefs.mjs.map +1 -1
- package/lib/composables/hydration.mjs +1 -1
- package/lib/composables/hydration.mjs.map +1 -1
- package/lib/composables/icons.mjs +7 -1
- package/lib/composables/icons.mjs.map +1 -1
- package/lib/composables/lazy.mjs +1 -3
- package/lib/composables/lazy.mjs.map +1 -1
- package/lib/composables/loader.mjs.map +1 -1
- package/lib/composables/locale.mjs +2 -1
- package/lib/composables/locale.mjs.map +1 -1
- package/lib/composables/mutationObserver.mjs +1 -4
- package/lib/composables/mutationObserver.mjs.map +1 -1
- package/lib/composables/nested/nested.mjs +2 -2
- package/lib/composables/nested/nested.mjs.map +1 -1
- package/lib/composables/nested/selectStrategies.mjs +1 -0
- package/lib/composables/nested/selectStrategies.mjs.map +1 -1
- package/lib/composables/proxiedModel.mjs +3 -3
- package/lib/composables/proxiedModel.mjs.map +1 -1
- package/lib/composables/refs.mjs +4 -1
- package/lib/composables/refs.mjs.map +1 -1
- package/lib/composables/resizeObserver.mjs +1 -2
- package/lib/composables/resizeObserver.mjs.map +1 -1
- package/lib/composables/router.mjs +1 -4
- package/lib/composables/router.mjs.map +1 -1
- package/lib/composables/scopeId.mjs +1 -0
- package/lib/composables/scopeId.mjs.map +1 -1
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/toggleScope.mjs +4 -0
- package/lib/composables/toggleScope.mjs.map +1 -1
- package/lib/composables/touch.mjs +1 -0
- package/lib/composables/touch.mjs.map +1 -1
- package/lib/composables/validation.mjs +2 -2
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/directives/click-outside/index.mjs +2 -1
- package/lib/directives/click-outside/index.mjs.map +1 -1
- package/lib/directives/intersect/index.mjs +1 -1
- package/lib/directives/intersect/index.mjs.map +1 -1
- package/lib/directives/resize/index.mjs +2 -0
- package/lib/directives/resize/index.mjs.map +1 -1
- package/lib/directives/scroll/index.mjs +2 -0
- package/lib/directives/scroll/index.mjs.map +1 -1
- package/lib/directives/touch/index.mjs +1 -2
- package/lib/directives/touch/index.mjs.map +1 -1
- package/lib/entry-bundler.mjs +7 -2
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +4 -6
- package/lib/framework.mjs.map +1 -1
- package/lib/iconsets/fa.mjs +1 -1
- package/lib/iconsets/fa.mjs.map +1 -1
- package/lib/iconsets/fa4.mjs +4 -3
- package/lib/iconsets/fa4.mjs.map +1 -1
- package/lib/iconsets/md.mjs +4 -3
- package/lib/iconsets/md.mjs.map +1 -1
- package/lib/iconsets/mdi-svg.mjs +1 -1
- package/lib/iconsets/mdi-svg.mjs.map +1 -1
- package/lib/iconsets/mdi.mjs +4 -3
- package/lib/iconsets/mdi.mjs.map +1 -1
- package/lib/index.d.mts +45 -43
- package/lib/labs/VBottomSheet/index.d.mts +55 -94
- package/lib/labs/VDataIterator/VDataIterator.mjs +10 -7
- package/lib/labs/VDataIterator/VDataIterator.mjs.map +1 -1
- package/lib/labs/VDataIterator/composables/items.mjs +7 -1
- package/lib/labs/VDataIterator/composables/items.mjs.map +1 -1
- package/lib/labs/VDataIterator/index.d.mts +142 -132
- package/lib/labs/VDataTable/VDataTable.css +1 -0
- package/lib/labs/VDataTable/VDataTable.mjs +11 -8
- package/lib/labs/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTable.sass +1 -0
- package/lib/labs/VDataTable/VDataTableColumn.mjs +2 -1
- package/lib/labs/VDataTable/VDataTableColumn.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableFooter.mjs +2 -2
- package/lib/labs/VDataTable/VDataTableFooter.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableGroupHeaderRow.mjs +4 -4
- package/lib/labs/VDataTable/VDataTableGroupHeaderRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableHeaders.mjs +9 -8
- package/lib/labs/VDataTable/VDataTableHeaders.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRow.mjs +1 -0
- package/lib/labs/VDataTable/VDataTableRow.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableRows.mjs +2 -2
- package/lib/labs/VDataTable/VDataTableRows.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableServer.mjs +14 -9
- package/lib/labs/VDataTable/VDataTableServer.mjs.map +1 -1
- package/lib/labs/VDataTable/VDataTableVirtual.mjs +12 -9
- package/lib/labs/VDataTable/VDataTableVirtual.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/expand.mjs +3 -3
- package/lib/labs/VDataTable/composables/expand.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/group.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/headers.mjs +1 -1
- package/lib/labs/VDataTable/composables/headers.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/items.mjs +7 -1
- package/lib/labs/VDataTable/composables/items.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/paginate.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/select.mjs +124 -8
- package/lib/labs/VDataTable/composables/select.mjs.map +1 -1
- package/lib/labs/VDataTable/composables/sort.mjs +3 -8
- package/lib/labs/VDataTable/composables/sort.mjs.map +1 -1
- package/lib/labs/VDataTable/index.d.mts +1665 -2951
- package/lib/labs/VDataTable/types.mjs.map +1 -1
- package/lib/labs/VInfiniteScroll/VInfiniteScroll.mjs.map +1 -1
- package/lib/labs/VInfiniteScroll/index.d.mts +60 -91
- package/lib/labs/VSkeletonLoader/VSkeletonLoader.mjs +3 -3
- package/lib/labs/VSkeletonLoader/VSkeletonLoader.mjs.map +1 -1
- package/lib/labs/VSkeletonLoader/index.d.mts +0 -15
- package/lib/labs/components.d.mts +1935 -3305
- package/lib/labs/date/date.mjs.map +1 -1
- package/lib/labs/entry-bundler.mjs +3 -1
- package/lib/labs/entry-bundler.mjs.map +1 -1
- package/lib/locale/adapters/vue-i18n.d.mts +1 -1
- package/lib/locale/adapters/vue-i18n.mjs +5 -1
- package/lib/locale/adapters/vue-i18n.mjs.map +1 -1
- package/lib/locale/adapters/vuetify.mjs +1 -3
- package/lib/locale/adapters/vuetify.mjs.map +1 -1
- package/lib/styles/settings/_colors.scss +18 -15
- package/lib/util/anchor.mjs +1 -0
- package/lib/util/anchor.mjs.map +1 -1
- package/lib/util/animation.mjs +1 -0
- package/lib/util/animation.mjs.map +1 -1
- package/lib/util/color/APCA.mjs +1 -0
- package/lib/util/color/APCA.mjs.map +1 -1
- package/lib/util/color/transformCIELAB.mjs +2 -0
- package/lib/util/color/transformCIELAB.mjs.map +1 -1
- package/lib/util/color/transformSRGB.mjs +3 -1
- package/lib/util/color/transformSRGB.mjs.map +1 -1
- package/lib/util/colorUtils.mjs +2 -2
- package/lib/util/colorUtils.mjs.map +1 -1
- package/lib/util/console.mjs +1 -0
- package/lib/util/console.mjs.map +1 -1
- package/lib/util/createSimpleFunctional.mjs +2 -1
- package/lib/util/createSimpleFunctional.mjs.map +1 -1
- package/lib/util/defineComponent.mjs +3 -3
- package/lib/util/defineComponent.mjs.map +1 -1
- package/lib/util/getCurrentInstance.mjs +1 -2
- package/lib/util/getCurrentInstance.mjs.map +1 -1
- package/lib/util/injectSelf.mjs +4 -2
- package/lib/util/injectSelf.mjs.map +1 -1
- package/lib/util/propsFactory.mjs +1 -0
- package/lib/util/propsFactory.mjs.map +1 -1
- package/package.json +2 -1
|
@@ -62,12 +62,6 @@ declare const VImg: {
|
|
|
62
62
|
"v-slot:error"?: false | (() => vue.VNodeChild) | undefined;
|
|
63
63
|
"v-slot:sources"?: false | (() => vue.VNodeChild) | undefined;
|
|
64
64
|
"v-slot:placeholder"?: false | (() => vue.VNodeChild) | undefined;
|
|
65
|
-
$slots?: {
|
|
66
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
67
|
-
placeholder?: (() => vue.VNodeChild) | undefined;
|
|
68
|
-
error?: (() => vue.VNodeChild) | undefined;
|
|
69
|
-
sources?: (() => vue.VNodeChild) | undefined;
|
|
70
|
-
} | undefined;
|
|
71
65
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
72
66
|
[key: string]: any;
|
|
73
67
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
@@ -174,13 +168,6 @@ declare const VImg: {
|
|
|
174
168
|
"v-slot:placeholder"?: false | (() => vue.VNodeChild) | undefined;
|
|
175
169
|
"v-slot:error"?: false | (() => vue.VNodeChild) | undefined;
|
|
176
170
|
"v-slot:sources"?: false | (() => vue.VNodeChild) | undefined;
|
|
177
|
-
} & {
|
|
178
|
-
$slots?: {
|
|
179
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
180
|
-
placeholder?: (() => vue.VNodeChild) | undefined;
|
|
181
|
-
error?: (() => vue.VNodeChild) | undefined;
|
|
182
|
-
sources?: (() => vue.VNodeChild) | undefined;
|
|
183
|
-
} | undefined;
|
|
184
171
|
} & {
|
|
185
172
|
onError?: ((value: string | undefined) => any) | undefined;
|
|
186
173
|
onLoad?: ((value: string | undefined) => any) | undefined;
|
|
@@ -281,13 +268,6 @@ declare const VImg: {
|
|
|
281
268
|
"v-slot:placeholder"?: false | (() => vue.VNodeChild) | undefined;
|
|
282
269
|
"v-slot:error"?: false | (() => vue.VNodeChild) | undefined;
|
|
283
270
|
"v-slot:sources"?: false | (() => vue.VNodeChild) | undefined;
|
|
284
|
-
} & {
|
|
285
|
-
$slots?: {
|
|
286
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
287
|
-
placeholder?: (() => vue.VNodeChild) | undefined;
|
|
288
|
-
error?: (() => vue.VNodeChild) | undefined;
|
|
289
|
-
sources?: (() => vue.VNodeChild) | undefined;
|
|
290
|
-
} | undefined;
|
|
291
271
|
} & {
|
|
292
272
|
onError?: ((value: string | undefined) => any) | undefined;
|
|
293
273
|
onLoad?: ((value: string | undefined) => any) | undefined;
|
|
@@ -345,13 +325,6 @@ declare const VImg: {
|
|
|
345
325
|
"v-slot:placeholder"?: false | (() => vue.VNodeChild) | undefined;
|
|
346
326
|
"v-slot:error"?: false | (() => vue.VNodeChild) | undefined;
|
|
347
327
|
"v-slot:sources"?: false | (() => vue.VNodeChild) | undefined;
|
|
348
|
-
} & {
|
|
349
|
-
$slots?: {
|
|
350
|
-
default?: (() => vue.VNodeChild) | undefined;
|
|
351
|
-
placeholder?: (() => vue.VNodeChild) | undefined;
|
|
352
|
-
error?: (() => vue.VNodeChild) | undefined;
|
|
353
|
-
sources?: (() => vue.VNodeChild) | undefined;
|
|
354
|
-
} | undefined;
|
|
355
328
|
} & {
|
|
356
329
|
onError?: ((value: string | undefined) => any) | undefined;
|
|
357
330
|
onLoad?: ((value: string | undefined) => any) | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createVNode as _createVNode } from "vue";
|
|
2
|
-
|
|
3
|
-
import {
|
|
2
|
+
// Components
|
|
3
|
+
import { VIcon } from "../VIcon/index.mjs"; // Composables
|
|
4
|
+
import { useLocale } from "../../composables/locale.mjs"; // Types
|
|
4
5
|
export function useInputIcon(props) {
|
|
5
6
|
const {
|
|
6
7
|
t
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InputIcon.mjs","names":["VIcon","useLocale","useInputIcon","props","t","InputIcon","_ref","name","localeKey","prepend","prependInner","append","appendInner","clear","listener","label","undefined","_createVNode"],"sources":["../../../src/components/VInput/InputIcon.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"InputIcon.mjs","names":["VIcon","useLocale","useInputIcon","props","t","InputIcon","_ref","name","localeKey","prepend","prependInner","append","appendInner","clear","listener","label","undefined","_createVNode"],"sources":["../../../src/components/VInput/InputIcon.tsx"],"sourcesContent":["// Components\nimport { VIcon } from '@/components/VIcon'\n\n// Composables\nimport { useLocale } from '@/composables/locale'\n\n// Types\nimport type { IconValue } from '@/composables/icons'\n\ntype names = 'clear' | 'prepend' | 'append' | 'appendInner' | 'prependInner'\n\ntype EventProp<T = (...args: any[]) => any> = T | T[]\ntype InputIconProps<T extends names> = {\n label: string | undefined\n} & {\n [K in `${T}Icon`]: IconValue | undefined\n} & {\n [K in `onClick:${T}`]: EventProp | undefined\n}\n\ntype Listeners<T extends {}, U = keyof T> = U extends `onClick:${infer V extends names}` ? V : never\n\nexport function useInputIcon<T extends {}, K extends names = Listeners<T>> (props: T & InputIconProps<K>) {\n const { t } = useLocale()\n\n function InputIcon ({ name }: { name: Extract<names, K> }) {\n const localeKey = {\n prepend: 'prependAction',\n prependInner: 'prependAction',\n append: 'appendAction',\n appendInner: 'appendAction',\n clear: 'clear',\n }[name]\n const listener = props[`onClick:${name}`]\n const label = listener && localeKey\n ? t(`$vuetify.input.${localeKey}`, props.label ?? '')\n : undefined\n\n return (\n <VIcon\n icon={ props[`${name}Icon`] }\n aria-label={ label }\n onClick={ listener }\n />\n )\n }\n\n return { InputIcon }\n}\n"],"mappings":";AAAA;AAAA,SACSA,KAAK,8BAEd;AAAA,SACSC,SAAS,wCAElB;AAgBA,OAAO,SAASC,YAAYA,CAAgDC,KAA4B,EAAE;EACxG,MAAM;IAAEC;EAAE,CAAC,GAAGH,SAAS,EAAE;EAEzB,SAASI,SAASA,CAAAC,IAAA,EAAyC;IAAA,IAAvC;MAAEC;IAAkC,CAAC,GAAAD,IAAA;IACvD,MAAME,SAAS,GAAG;MAChBC,OAAO,EAAE,eAAe;MACxBC,YAAY,EAAE,eAAe;MAC7BC,MAAM,EAAE,cAAc;MACtBC,WAAW,EAAE,cAAc;MAC3BC,KAAK,EAAE;IACT,CAAC,CAACN,IAAI,CAAC;IACP,MAAMO,QAAQ,GAAGX,KAAK,CAAE,WAAUI,IAAK,EAAC,CAAC;IACzC,MAAMQ,KAAK,GAAGD,QAAQ,IAAIN,SAAS,GAC/BJ,CAAC,CAAE,kBAAiBI,SAAU,EAAC,EAAEL,KAAK,CAACY,KAAK,IAAI,EAAE,CAAC,GACnDC,SAAS;IAEb,OAAAC,YAAA,CAAAjB,KAAA;MAAA,QAEWG,KAAK,CAAE,GAAEI,IAAK,MAAK,CAAC;MAAA,cACdQ,KAAK;MAAA,WACRD;IAAQ;EAGxB;EAEA,OAAO;IAAET;EAAU,CAAC;AACtB"}
|
|
@@ -3,14 +3,14 @@ import { resolveDirective as _resolveDirective, createVNode as _createVNode } fr
|
|
|
3
3
|
import "./VInput.css";
|
|
4
4
|
|
|
5
5
|
// Components
|
|
6
|
+
import { useInputIcon } from "./InputIcon.mjs";
|
|
6
7
|
import { VMessages } from "../VMessages/VMessages.mjs"; // Composables
|
|
7
|
-
import { IconValue } from "../../composables/icons.mjs";
|
|
8
8
|
import { makeComponentProps } from "../../composables/component.mjs";
|
|
9
9
|
import { makeDensityProps, useDensity } from "../../composables/density.mjs";
|
|
10
|
+
import { IconValue } from "../../composables/icons.mjs";
|
|
10
11
|
import { makeValidationProps, useValidation } from "../../composables/validation.mjs"; // Utilities
|
|
11
12
|
import { computed } from 'vue';
|
|
12
13
|
import { EventProp, genericComponent, getUid, propsFactory, useRender } from "../../util/index.mjs"; // Types
|
|
13
|
-
import { useInputIcon } from "./InputIcon.mjs";
|
|
14
14
|
export const makeVInputProps = propsFactory({
|
|
15
15
|
id: String,
|
|
16
16
|
appendIcon: IconValue,
|
|
@@ -87,7 +87,7 @@ export const VInput = genericComponent()({
|
|
|
87
87
|
validate
|
|
88
88
|
}));
|
|
89
89
|
const messages = computed(() => {
|
|
90
|
-
if (!isPristine.value && errorMessages.value.length
|
|
90
|
+
if (props.errorMessages?.length || !isPristine.value && errorMessages.value.length) {
|
|
91
91
|
return errorMessages.value;
|
|
92
92
|
} else if (props.hint && (props.persistentHint || props.focused)) {
|
|
93
93
|
return props.hint;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VInput.mjs","names":["VMessages","IconValue","makeComponentProps","makeDensityProps","useDensity","makeValidationProps","useValidation","computed","EventProp","genericComponent","getUid","propsFactory","useRender","useInputIcon","makeVInputProps","id","String","appendIcon","centerAffix","type","Boolean","default","prependIcon","hideDetails","hint","persistentHint","messages","Array","direction","validator","v","includes","VInput","name","props","emits","val","setup","_ref","attrs","slots","emit","densityClasses","InputIcon","uid","messagesId","value","errorMessages","isDirty","isDisabled","isReadonly","isPristine","isValid","isValidating","reset","resetValidation","validate","validationClasses","slotProps","length","focused","hasPrepend","prepend","hasAppend","append","hasMessages","hasDetails","details","_createVNode","class","style","message"],"sources":["../../../src/components/VInput/VInput.tsx"],"sourcesContent":["// Styles\nimport './VInput.sass'\n\n// Components\nimport { VMessages, type VMessageSlot } from '@/components/VMessages/VMessages'\n\n// Composables\nimport { IconValue } from '@/composables/icons'\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeValidationProps, useValidation } from '@/composables/validation'\n\n// Utilities\nimport { computed } from 'vue'\nimport { EventProp, genericComponent, getUid, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef, PropType, Ref } from 'vue'\nimport { useInputIcon } from '@/components/VInput/InputIcon'\n\nexport interface VInputSlot {\n id: ComputedRef<string>\n messagesId: ComputedRef<string>\n isDirty: ComputedRef<boolean>\n isDisabled: ComputedRef<boolean>\n isReadonly: ComputedRef<boolean>\n isPristine: Ref<boolean>\n isValid: ComputedRef<boolean | null>\n isValidating: Ref<boolean>\n reset: () => void\n resetValidation: () => void\n validate: () => void\n}\n\nexport const makeVInputProps = propsFactory({\n id: String,\n appendIcon: IconValue,\n centerAffix: {\n type: Boolean,\n default: true,\n },\n prependIcon: IconValue,\n hideDetails: [Boolean, String] as PropType<boolean | 'auto'>,\n hint: String,\n persistentHint: Boolean,\n messages: {\n type: [Array, String] as PropType<string | readonly string[]>,\n default: () => ([]),\n },\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n validator: (v: any) => ['horizontal', 'vertical'].includes(v),\n },\n\n 'onClick:prepend': EventProp<[MouseEvent]>(),\n 'onClick:append': EventProp<[MouseEvent]>(),\n\n ...makeComponentProps(),\n ...makeDensityProps(),\n ...makeValidationProps(),\n}, 'v-input')\n\nexport type VInputSlots = {\n default: [VInputSlot]\n prepend: [VInputSlot]\n append: [VInputSlot]\n details: [VInputSlot]\n message: [VMessageSlot]\n}\n\nexport const VInput = genericComponent<VInputSlots>()({\n name: 'VInput',\n\n props: {\n ...makeVInputProps(),\n },\n\n emits: {\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { attrs, slots, emit }) {\n const { densityClasses } = useDensity(props)\n const { InputIcon } = useInputIcon(props)\n\n const uid = getUid()\n const id = computed(() => props.id || `input-${uid}`)\n const messagesId = computed(() => `${id.value}-messages`)\n\n const {\n errorMessages,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n validationClasses,\n } = useValidation(props, 'v-input', id)\n\n const slotProps = computed<VInputSlot>(() => ({\n id,\n messagesId,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n }))\n\n const messages = computed(() => {\n if (!isPristine.value && errorMessages.value.length > 0) {\n return errorMessages.value\n } else if (props.hint && (props.persistentHint || props.focused)) {\n return props.hint\n } else {\n return props.messages\n }\n })\n\n useRender(() => {\n const hasPrepend = !!(slots.prepend || props.prependIcon)\n const hasAppend = !!(slots.append || props.appendIcon)\n const hasMessages = messages.value.length > 0\n const hasDetails = !props.hideDetails || (\n props.hideDetails === 'auto' &&\n (hasMessages || !!slots.details)\n )\n\n return (\n <div\n class={[\n 'v-input',\n `v-input--${props.direction}`,\n {\n 'v-input--center-affix': props.centerAffix,\n },\n densityClasses.value,\n validationClasses.value,\n props.class,\n ]}\n style={ props.style }\n >\n { hasPrepend && (\n <div key=\"prepend\" class=\"v-input__prepend\">\n { slots.prepend?.(slotProps.value) }\n\n { props.prependIcon && (\n <InputIcon\n key=\"prepend-icon\"\n name=\"prepend\"\n />\n )}\n </div>\n )}\n\n { slots.default && (\n <div class=\"v-input__control\">\n { slots.default?.(slotProps.value) }\n </div>\n )}\n\n { hasAppend && (\n <div key=\"append\" class=\"v-input__append\">\n { props.appendIcon && (\n <InputIcon\n key=\"append-icon\"\n name=\"append\"\n />\n )}\n\n { slots.append?.(slotProps.value) }\n </div>\n )}\n\n { hasDetails && (\n <div class=\"v-input__details\">\n <VMessages\n id={ messagesId.value }\n active={ hasMessages }\n messages={ messages.value }\n v-slots={{ message: slots.message }}\n />\n\n { slots.details?.(slotProps.value) }\n </div>\n )}\n </div>\n )\n })\n\n return {\n reset,\n resetValidation,\n validate,\n }\n },\n})\n\nexport type VInput = InstanceType<typeof VInput>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,SAAS,sCAElB;AAAA,SACSC,SAAS;AAAA,SACTC,kBAAkB;AAAA,SAClBC,gBAAgB,EAAEC,UAAU;AAAA,SAC5BC,mBAAmB,EAAEC,aAAa,4CAE3C;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,SAAS,EAAEC,gBAAgB,EAAEC,MAAM,EAAEC,YAAY,EAAEC,SAAS,gCAErE;AAAA,SAESC,YAAY;AAgBrB,OAAO,MAAMC,eAAe,GAAGH,YAAY,CAAC;EAC1CI,EAAE,EAAEC,MAAM;EACVC,UAAU,EAAEhB,SAAS;EACrBiB,WAAW,EAAE;IACXC,IAAI,EAAEC,OAAO;IACbC,OAAO,EAAE;EACX,CAAC;EACDC,WAAW,EAAErB,SAAS;EACtBsB,WAAW,EAAE,CAACH,OAAO,EAAEJ,MAAM,CAA+B;EAC5DQ,IAAI,EAAER,MAAM;EACZS,cAAc,EAAEL,OAAO;EACvBM,QAAQ,EAAE;IACRP,IAAI,EAAE,CAACQ,KAAK,EAAEX,MAAM,CAAyC;IAC7DK,OAAO,EAAEA,CAAA,KAAO;EAClB,CAAC;EACDO,SAAS,EAAE;IACTT,IAAI,EAAEH,MAA6C;IACnDK,OAAO,EAAE,YAAY;IACrBQ,SAAS,EAAGC,CAAM,IAAK,CAAC,YAAY,EAAE,UAAU,CAAC,CAACC,QAAQ,CAACD,CAAC;EAC9D,CAAC;EAED,iBAAiB,EAAEtB,SAAS,EAAgB;EAC5C,gBAAgB,EAAEA,SAAS,EAAgB;EAE3C,GAAGN,kBAAkB,EAAE;EACvB,GAAGC,gBAAgB,EAAE;EACrB,GAAGE,mBAAmB;AACxB,CAAC,EAAE,SAAS,CAAC;AAUb,OAAO,MAAM2B,MAAM,GAAGvB,gBAAgB,EAA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,KAAK,CAAC,EAErC,EAECiB,SAAS,IAAAK,YAAA;QAAA,OACA,QAAQ;QAAA,SAAO;MAAiB,IACrClC,KAAK,CAACjB,UAAU,IAAAmD,YAAA,CAAAzB,SAAA;QAAA,OAEV,aAAa;QAAA,QACZ;MAAQ,QAEhB,EAECH,KAAK,CAACwB,MAAM,GAAGN,SAAS,CAACZ,KAAK,CAAC,EAEpC,EAECoB,UAAU,IAAAE,YAAA;QAAA,SACC;MAAkB,IAAAA,YAAA,CAAApE,SAAA;QAAA,MAEpB6C,UAAU,CAACC,KAAK;QAAA,UACZmB,WAAW;QAAA,YACTvC,QAAQ,CAACoB;MAAK,GAChB;QAAEyB,OAAO,EAAE/B,KAAK,CAAC+B;MAAQ,CAAC,GAGnC/B,KAAK,CAAC2B,OAAO,GAAGT,SAAS,CAACZ,KAAK,CAAC,EAErC;IAGP,CAAC,CAAC;IAEF,OAAO;MACLQ,KAAK;MACLC,eAAe;MACfC;IACF,CAAC;EACH;AACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"VInput.mjs","names":["useInputIcon","VMessages","makeComponentProps","makeDensityProps","useDensity","IconValue","makeValidationProps","useValidation","computed","EventProp","genericComponent","getUid","propsFactory","useRender","makeVInputProps","id","String","appendIcon","centerAffix","type","Boolean","default","prependIcon","hideDetails","hint","persistentHint","messages","Array","direction","validator","v","includes","VInput","name","props","emits","val","setup","_ref","attrs","slots","emit","densityClasses","InputIcon","uid","messagesId","value","errorMessages","isDirty","isDisabled","isReadonly","isPristine","isValid","isValidating","reset","resetValidation","validate","validationClasses","slotProps","length","focused","hasPrepend","prepend","hasAppend","append","hasMessages","hasDetails","details","_createVNode","class","style","message"],"sources":["../../../src/components/VInput/VInput.tsx"],"sourcesContent":["// Styles\nimport './VInput.sass'\n\n// Components\nimport { useInputIcon } from '@/components/VInput/InputIcon'\nimport { VMessages } from '@/components/VMessages/VMessages'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { IconValue } from '@/composables/icons'\nimport { makeValidationProps, useValidation } from '@/composables/validation'\n\n// Utilities\nimport { computed } from 'vue'\nimport { EventProp, genericComponent, getUid, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { ComputedRef, PropType, Ref } from 'vue'\nimport type { VMessageSlot } from '@/components/VMessages/VMessages'\n\nexport interface VInputSlot {\n id: ComputedRef<string>\n messagesId: ComputedRef<string>\n isDirty: ComputedRef<boolean>\n isDisabled: ComputedRef<boolean>\n isReadonly: ComputedRef<boolean>\n isPristine: Ref<boolean>\n isValid: ComputedRef<boolean | null>\n isValidating: Ref<boolean>\n reset: () => void\n resetValidation: () => void\n validate: () => void\n}\n\nexport const makeVInputProps = propsFactory({\n id: String,\n appendIcon: IconValue,\n centerAffix: {\n type: Boolean,\n default: true,\n },\n prependIcon: IconValue,\n hideDetails: [Boolean, String] as PropType<boolean | 'auto'>,\n hint: String,\n persistentHint: Boolean,\n messages: {\n type: [Array, String] as PropType<string | readonly string[]>,\n default: () => ([]),\n },\n direction: {\n type: String as PropType<'horizontal' | 'vertical'>,\n default: 'horizontal',\n validator: (v: any) => ['horizontal', 'vertical'].includes(v),\n },\n\n 'onClick:prepend': EventProp<[MouseEvent]>(),\n 'onClick:append': EventProp<[MouseEvent]>(),\n\n ...makeComponentProps(),\n ...makeDensityProps(),\n ...makeValidationProps(),\n}, 'v-input')\n\nexport type VInputSlots = {\n default: VInputSlot\n prepend: VInputSlot\n append: VInputSlot\n details: VInputSlot\n message: VMessageSlot\n}\n\nexport const VInput = genericComponent<VInputSlots>()({\n name: 'VInput',\n\n props: {\n ...makeVInputProps(),\n },\n\n emits: {\n 'update:modelValue': (val: any) => true,\n },\n\n setup (props, { attrs, slots, emit }) {\n const { densityClasses } = useDensity(props)\n const { InputIcon } = useInputIcon(props)\n\n const uid = getUid()\n const id = computed(() => props.id || `input-${uid}`)\n const messagesId = computed(() => `${id.value}-messages`)\n\n const {\n errorMessages,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n validationClasses,\n } = useValidation(props, 'v-input', id)\n\n const slotProps = computed<VInputSlot>(() => ({\n id,\n messagesId,\n isDirty,\n isDisabled,\n isReadonly,\n isPristine,\n isValid,\n isValidating,\n reset,\n resetValidation,\n validate,\n }))\n\n const messages = computed(() => {\n if (props.errorMessages?.length || (!isPristine.value && errorMessages.value.length)) {\n return errorMessages.value\n } else if (props.hint && (props.persistentHint || props.focused)) {\n return props.hint\n } else {\n return props.messages\n }\n })\n\n useRender(() => {\n const hasPrepend = !!(slots.prepend || props.prependIcon)\n const hasAppend = !!(slots.append || props.appendIcon)\n const hasMessages = messages.value.length > 0\n const hasDetails = !props.hideDetails || (\n props.hideDetails === 'auto' &&\n (hasMessages || !!slots.details)\n )\n\n return (\n <div\n class={[\n 'v-input',\n `v-input--${props.direction}`,\n {\n 'v-input--center-affix': props.centerAffix,\n },\n densityClasses.value,\n validationClasses.value,\n props.class,\n ]}\n style={ props.style }\n >\n { hasPrepend && (\n <div key=\"prepend\" class=\"v-input__prepend\">\n { slots.prepend?.(slotProps.value) }\n\n { props.prependIcon && (\n <InputIcon\n key=\"prepend-icon\"\n name=\"prepend\"\n />\n )}\n </div>\n )}\n\n { slots.default && (\n <div class=\"v-input__control\">\n { slots.default?.(slotProps.value) }\n </div>\n )}\n\n { hasAppend && (\n <div key=\"append\" class=\"v-input__append\">\n { props.appendIcon && (\n <InputIcon\n key=\"append-icon\"\n name=\"append\"\n />\n )}\n\n { slots.append?.(slotProps.value) }\n </div>\n )}\n\n { hasDetails && (\n <div class=\"v-input__details\">\n <VMessages\n id={ messagesId.value }\n active={ hasMessages }\n messages={ messages.value }\n v-slots={{ message: slots.message }}\n />\n\n { slots.details?.(slotProps.value) }\n </div>\n )}\n </div>\n )\n })\n\n return {\n reset,\n resetValidation,\n validate,\n }\n },\n})\n\nexport type VInput = InstanceType<typeof VInput>\n"],"mappings":";AAAA;AACA;;AA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,IAAAmD,YAAA,CAAAzB,SAAA;QAAA,OAEV,aAAa;QAAA,QACZ;MAAQ,QAEhB,EAECH,KAAK,CAACwB,MAAM,GAAGN,SAAS,CAACZ,KAAK,CAAC,EAEpC,EAECoB,UAAU,IAAAE,YAAA;QAAA,SACC;MAAkB,IAAAA,YAAA,CAAAnE,SAAA;QAAA,MAEpB4C,UAAU,CAACC,KAAK;QAAA,UACZmB,WAAW;QAAA,YACTvC,QAAQ,CAACoB;MAAK,GAChB;QAAEyB,OAAO,EAAE/B,KAAK,CAAC+B;MAAQ,CAAC,GAGnC/B,KAAK,CAAC2B,OAAO,GAAGT,SAAS,CAACZ,KAAK,CAAC,EAErC;IAGP,CAAC,CAAC;IAEF,OAAO;MACLQ,KAAK;MACLC,eAAe;MACfC;IACF,CAAC;EACH;AACF,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@ $input-density: ('default': 0, 'comfortable': -2, 'compact': -4) !default;
|
|
|
7
7
|
$input-control-height: 56px !default;
|
|
8
8
|
$input-font-size: tools.map-deep-get(settings.$typography, 'body-1', 'size') !default;
|
|
9
9
|
$input-font-weight: tools.map-deep-get(settings.$typography, 'body-1', 'weight') !default;
|
|
10
|
-
$input-line-height: 1.625;
|
|
10
|
+
$input-line-height: 1.625 !default;
|
|
11
11
|
|
|
12
12
|
// DETAILS
|
|
13
13
|
$input-details-font-size: .75rem !default;
|
|
@@ -13,13 +13,13 @@ type Density = null | 'default' | 'comfortable' | 'compact';
|
|
|
13
13
|
type ValidationResult = string | boolean;
|
|
14
14
|
type ValidationRule = ValidationResult | PromiseLike<ValidationResult> | ((value: any) => ValidationResult) | ((value: any) => PromiseLike<ValidationResult>);
|
|
15
15
|
|
|
16
|
+
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
|
17
|
+
declare const IconValue: PropType<IconValue>;
|
|
18
|
+
|
|
16
19
|
type VMessageSlot = {
|
|
17
20
|
message: string;
|
|
18
21
|
};
|
|
19
22
|
|
|
20
|
-
type IconValue = string | (string | [path: string, opacity: number])[] | JSXComponent;
|
|
21
|
-
declare const IconValue: PropType<IconValue>;
|
|
22
|
-
|
|
23
23
|
interface VInputSlot {
|
|
24
24
|
id: ComputedRef<string>;
|
|
25
25
|
messagesId: ComputedRef<string>;
|
|
@@ -46,10 +46,10 @@ declare const VInput: {
|
|
|
46
46
|
messages?: string | readonly string[] | undefined;
|
|
47
47
|
density?: Density | undefined;
|
|
48
48
|
focused?: boolean | undefined;
|
|
49
|
-
centerAffix?: boolean | undefined;
|
|
50
49
|
errorMessages?: string | readonly string[] | undefined;
|
|
51
50
|
maxErrors?: string | number | undefined;
|
|
52
51
|
rules?: readonly ValidationRule[] | undefined;
|
|
52
|
+
centerAffix?: boolean | undefined;
|
|
53
53
|
persistentHint?: boolean | undefined;
|
|
54
54
|
key?: string | number | symbol | undefined;
|
|
55
55
|
id?: string | undefined;
|
|
@@ -57,29 +57,22 @@ declare const VInput: {
|
|
|
57
57
|
label?: string | undefined;
|
|
58
58
|
class?: any;
|
|
59
59
|
$children?: vue.VNodeChild | {
|
|
60
|
-
default?: ((
|
|
61
|
-
prepend?: ((
|
|
62
|
-
append?: ((
|
|
63
|
-
details?: ((
|
|
64
|
-
message?: ((
|
|
65
|
-
} | ((
|
|
60
|
+
default?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
61
|
+
prepend?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
62
|
+
append?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
63
|
+
details?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
64
|
+
message?: ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
65
|
+
} | ((arg: VInputSlot) => vue.VNodeChild);
|
|
66
66
|
ref?: vue.VNodeRef | undefined;
|
|
67
67
|
ref_for?: boolean | undefined;
|
|
68
68
|
ref_key?: string | undefined;
|
|
69
|
-
"v-slot:default"?: false | ((
|
|
69
|
+
"v-slot:default"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
70
70
|
'v-slots'?: {
|
|
71
|
-
default?: false | ((
|
|
72
|
-
prepend?: false | ((
|
|
73
|
-
append?: false | ((
|
|
74
|
-
details?: false | ((
|
|
75
|
-
message?: false | ((
|
|
76
|
-
} | undefined;
|
|
77
|
-
$slots?: {
|
|
78
|
-
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
79
|
-
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
80
|
-
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
81
|
-
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
82
|
-
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
71
|
+
default?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
72
|
+
prepend?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
73
|
+
append?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
74
|
+
details?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
75
|
+
message?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
83
76
|
} | undefined;
|
|
84
77
|
onVnodeBeforeMount?: ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
85
78
|
[key: string]: any;
|
|
@@ -119,21 +112,21 @@ declare const VInput: {
|
|
|
119
112
|
}>) => void) | ((vnode: vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
120
113
|
[key: string]: any;
|
|
121
114
|
}>) => void)[] | undefined;
|
|
122
|
-
"v-slot:append"?: false | ((
|
|
123
|
-
"v-slot:prepend"?: false | ((
|
|
115
|
+
"v-slot:append"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
116
|
+
"v-slot:prepend"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
124
117
|
modelValue?: any;
|
|
125
118
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
126
119
|
prependIcon?: IconValue | undefined;
|
|
127
120
|
appendIcon?: IconValue | undefined;
|
|
128
121
|
'onClick:append'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
|
129
122
|
'onClick:prepend'?: EventProp<[MouseEvent], (args_0: MouseEvent) => any> | undefined;
|
|
123
|
+
"v-slot:message"?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
130
124
|
'onUpdate:focused'?: EventProp<[boolean], (args_0: boolean) => any> | undefined;
|
|
131
|
-
"v-slot:message"?: false | ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
132
125
|
validateOn?: "lazy" | ("input" | "blur" | "submit") | "input lazy" | "blur lazy" | "submit lazy" | "lazy input" | "lazy blur" | "lazy submit" | undefined;
|
|
133
126
|
validationValue?: any;
|
|
134
127
|
hint?: string | undefined;
|
|
135
128
|
hideDetails?: boolean | "auto" | undefined;
|
|
136
|
-
"v-slot:details"?: false | ((
|
|
129
|
+
"v-slot:details"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
137
130
|
};
|
|
138
131
|
$attrs: {
|
|
139
132
|
[x: string]: unknown;
|
|
@@ -142,19 +135,19 @@ declare const VInput: {
|
|
|
142
135
|
[x: string]: unknown;
|
|
143
136
|
};
|
|
144
137
|
$slots: Readonly<{
|
|
145
|
-
default?: ((
|
|
138
|
+
default?: ((arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
146
139
|
[key: string]: any;
|
|
147
140
|
}>[]) | undefined;
|
|
148
|
-
prepend?: ((
|
|
141
|
+
prepend?: ((arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
149
142
|
[key: string]: any;
|
|
150
143
|
}>[]) | undefined;
|
|
151
|
-
append?: ((
|
|
144
|
+
append?: ((arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
152
145
|
[key: string]: any;
|
|
153
146
|
}>[]) | undefined;
|
|
154
|
-
details?: ((
|
|
147
|
+
details?: ((arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
155
148
|
[key: string]: any;
|
|
156
149
|
}>[]) | undefined;
|
|
157
|
-
message?: ((
|
|
150
|
+
message?: ((arg: VMessageSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
158
151
|
[key: string]: any;
|
|
159
152
|
}>[]) | undefined;
|
|
160
153
|
}>;
|
|
@@ -171,10 +164,10 @@ declare const VInput: {
|
|
|
171
164
|
messages: string | readonly string[];
|
|
172
165
|
density: Density;
|
|
173
166
|
focused: boolean;
|
|
174
|
-
centerAffix: boolean;
|
|
175
167
|
errorMessages: string | readonly string[];
|
|
176
168
|
maxErrors: string | number;
|
|
177
169
|
rules: readonly ValidationRule[];
|
|
170
|
+
centerAffix: boolean;
|
|
178
171
|
persistentHint: boolean;
|
|
179
172
|
} & {
|
|
180
173
|
id?: string | undefined;
|
|
@@ -193,33 +186,25 @@ declare const VInput: {
|
|
|
193
186
|
hideDetails?: boolean | "auto" | undefined;
|
|
194
187
|
} & {
|
|
195
188
|
$children?: vue.VNodeChild | {
|
|
196
|
-
default?: ((
|
|
197
|
-
prepend?: ((
|
|
198
|
-
append?: ((
|
|
199
|
-
details?: ((
|
|
200
|
-
message?: ((
|
|
201
|
-
} | ((
|
|
189
|
+
default?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
190
|
+
prepend?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
191
|
+
append?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
192
|
+
details?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
193
|
+
message?: ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
194
|
+
} | ((arg: VInputSlot) => vue.VNodeChild);
|
|
202
195
|
'v-slots'?: {
|
|
203
|
-
default?: false | ((
|
|
204
|
-
prepend?: false | ((
|
|
205
|
-
append?: false | ((
|
|
206
|
-
details?: false | ((
|
|
207
|
-
message?: false | ((
|
|
196
|
+
default?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
197
|
+
prepend?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
198
|
+
append?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
199
|
+
details?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
200
|
+
message?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
208
201
|
} | undefined;
|
|
209
202
|
} & {
|
|
210
|
-
"v-slot:default"?: false | ((
|
|
211
|
-
"v-slot:prepend"?: false | ((
|
|
212
|
-
"v-slot:append"?: false | ((
|
|
213
|
-
"v-slot:details"?: false | ((
|
|
214
|
-
"v-slot:message"?: false | ((
|
|
215
|
-
} & {
|
|
216
|
-
$slots?: {
|
|
217
|
-
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
218
|
-
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
219
|
-
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
220
|
-
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
221
|
-
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
222
|
-
} | undefined;
|
|
203
|
+
"v-slot:default"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
204
|
+
"v-slot:prepend"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
205
|
+
"v-slot:append"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
206
|
+
"v-slot:details"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
207
|
+
"v-slot:message"?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
223
208
|
} & {
|
|
224
209
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
225
210
|
}, {
|
|
@@ -237,25 +222,25 @@ declare const VInput: {
|
|
|
237
222
|
messages: string | readonly string[];
|
|
238
223
|
density: Density;
|
|
239
224
|
focused: boolean;
|
|
240
|
-
centerAffix: boolean;
|
|
241
225
|
errorMessages: string | readonly string[];
|
|
242
226
|
maxErrors: string | number;
|
|
243
227
|
rules: readonly ValidationRule[];
|
|
228
|
+
centerAffix: boolean;
|
|
244
229
|
persistentHint: boolean;
|
|
245
230
|
}, {}, string, vue.SlotsType<Partial<{
|
|
246
|
-
default: (
|
|
231
|
+
default: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
247
232
|
[key: string]: any;
|
|
248
233
|
}>[];
|
|
249
|
-
prepend: (
|
|
234
|
+
prepend: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
250
235
|
[key: string]: any;
|
|
251
236
|
}>[];
|
|
252
|
-
append: (
|
|
237
|
+
append: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
253
238
|
[key: string]: any;
|
|
254
239
|
}>[];
|
|
255
|
-
details: (
|
|
240
|
+
details: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
256
241
|
[key: string]: any;
|
|
257
242
|
}>[];
|
|
258
|
-
message: (
|
|
243
|
+
message: (arg: VMessageSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
259
244
|
[key: string]: any;
|
|
260
245
|
}>[];
|
|
261
246
|
}>>> & {
|
|
@@ -287,10 +272,10 @@ declare const VInput: {
|
|
|
287
272
|
messages: string | readonly string[];
|
|
288
273
|
density: Density;
|
|
289
274
|
focused: boolean;
|
|
290
|
-
centerAffix: boolean;
|
|
291
275
|
errorMessages: string | readonly string[];
|
|
292
276
|
maxErrors: string | number;
|
|
293
277
|
rules: readonly ValidationRule[];
|
|
278
|
+
centerAffix: boolean;
|
|
294
279
|
persistentHint: boolean;
|
|
295
280
|
} & {
|
|
296
281
|
id?: string | undefined;
|
|
@@ -309,33 +294,25 @@ declare const VInput: {
|
|
|
309
294
|
hideDetails?: boolean | "auto" | undefined;
|
|
310
295
|
} & {
|
|
311
296
|
$children?: vue.VNodeChild | {
|
|
312
|
-
default?: ((
|
|
313
|
-
prepend?: ((
|
|
314
|
-
append?: ((
|
|
315
|
-
details?: ((
|
|
316
|
-
message?: ((
|
|
317
|
-
} | ((
|
|
297
|
+
default?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
298
|
+
prepend?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
299
|
+
append?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
300
|
+
details?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
301
|
+
message?: ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
302
|
+
} | ((arg: VInputSlot) => vue.VNodeChild);
|
|
318
303
|
'v-slots'?: {
|
|
319
|
-
default?: false | ((
|
|
320
|
-
prepend?: false | ((
|
|
321
|
-
append?: false | ((
|
|
322
|
-
details?: false | ((
|
|
323
|
-
message?: false | ((
|
|
304
|
+
default?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
305
|
+
prepend?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
306
|
+
append?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
307
|
+
details?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
308
|
+
message?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
324
309
|
} | undefined;
|
|
325
310
|
} & {
|
|
326
|
-
"v-slot:default"?: false | ((
|
|
327
|
-
"v-slot:prepend"?: false | ((
|
|
328
|
-
"v-slot:append"?: false | ((
|
|
329
|
-
"v-slot:details"?: false | ((
|
|
330
|
-
"v-slot:message"?: false | ((
|
|
331
|
-
} & {
|
|
332
|
-
$slots?: {
|
|
333
|
-
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
334
|
-
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
335
|
-
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
336
|
-
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
337
|
-
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
338
|
-
} | undefined;
|
|
311
|
+
"v-slot:default"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
312
|
+
"v-slot:prepend"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
313
|
+
"v-slot:append"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
314
|
+
"v-slot:details"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
315
|
+
"v-slot:message"?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
339
316
|
} & {
|
|
340
317
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
341
318
|
} & vue.ShallowUnwrapRef<{
|
|
@@ -355,10 +332,10 @@ declare const VInput: {
|
|
|
355
332
|
messages: string | readonly string[];
|
|
356
333
|
density: Density;
|
|
357
334
|
focused: boolean;
|
|
358
|
-
centerAffix: boolean;
|
|
359
335
|
errorMessages: string | readonly string[];
|
|
360
336
|
maxErrors: string | number;
|
|
361
337
|
rules: readonly ValidationRule[];
|
|
338
|
+
centerAffix: boolean;
|
|
362
339
|
persistentHint: boolean;
|
|
363
340
|
} & {
|
|
364
341
|
id?: string | undefined;
|
|
@@ -377,33 +354,25 @@ declare const VInput: {
|
|
|
377
354
|
hideDetails?: boolean | "auto" | undefined;
|
|
378
355
|
} & {
|
|
379
356
|
$children?: vue.VNodeChild | {
|
|
380
|
-
default?: ((
|
|
381
|
-
prepend?: ((
|
|
382
|
-
append?: ((
|
|
383
|
-
details?: ((
|
|
384
|
-
message?: ((
|
|
385
|
-
} | ((
|
|
357
|
+
default?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
358
|
+
prepend?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
359
|
+
append?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
360
|
+
details?: ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
361
|
+
message?: ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
362
|
+
} | ((arg: VInputSlot) => vue.VNodeChild);
|
|
386
363
|
'v-slots'?: {
|
|
387
|
-
default?: false | ((
|
|
388
|
-
prepend?: false | ((
|
|
389
|
-
append?: false | ((
|
|
390
|
-
details?: false | ((
|
|
391
|
-
message?: false | ((
|
|
364
|
+
default?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
365
|
+
prepend?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
366
|
+
append?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
367
|
+
details?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
368
|
+
message?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
392
369
|
} | undefined;
|
|
393
370
|
} & {
|
|
394
|
-
"v-slot:default"?: false | ((
|
|
395
|
-
"v-slot:prepend"?: false | ((
|
|
396
|
-
"v-slot:append"?: false | ((
|
|
397
|
-
"v-slot:details"?: false | ((
|
|
398
|
-
"v-slot:message"?: false | ((
|
|
399
|
-
} & {
|
|
400
|
-
$slots?: {
|
|
401
|
-
default?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
402
|
-
prepend?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
403
|
-
append?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
404
|
-
details?: ((args_0: VInputSlot) => vue.VNodeChild) | undefined;
|
|
405
|
-
message?: ((args_0: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
406
|
-
} | undefined;
|
|
371
|
+
"v-slot:default"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
372
|
+
"v-slot:prepend"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
373
|
+
"v-slot:append"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
374
|
+
"v-slot:details"?: false | ((arg: VInputSlot) => vue.VNodeChild) | undefined;
|
|
375
|
+
"v-slot:message"?: false | ((arg: VMessageSlot) => vue.VNodeChild) | undefined;
|
|
407
376
|
} & {
|
|
408
377
|
"onUpdate:modelValue"?: ((val: any) => any) | undefined;
|
|
409
378
|
}, {
|
|
@@ -421,25 +390,25 @@ declare const VInput: {
|
|
|
421
390
|
messages: string | readonly string[];
|
|
422
391
|
density: Density;
|
|
423
392
|
focused: boolean;
|
|
424
|
-
centerAffix: boolean;
|
|
425
393
|
errorMessages: string | readonly string[];
|
|
426
394
|
maxErrors: string | number;
|
|
427
395
|
rules: readonly ValidationRule[];
|
|
396
|
+
centerAffix: boolean;
|
|
428
397
|
persistentHint: boolean;
|
|
429
398
|
}, {}, string, vue.SlotsType<Partial<{
|
|
430
|
-
default: (
|
|
399
|
+
default: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
431
400
|
[key: string]: any;
|
|
432
401
|
}>[];
|
|
433
|
-
prepend: (
|
|
402
|
+
prepend: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
434
403
|
[key: string]: any;
|
|
435
404
|
}>[];
|
|
436
|
-
append: (
|
|
405
|
+
append: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
437
406
|
[key: string]: any;
|
|
438
407
|
}>[];
|
|
439
|
-
details: (
|
|
408
|
+
details: (arg: VInputSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
440
409
|
[key: string]: any;
|
|
441
410
|
}>[];
|
|
442
|
-
message: (
|
|
411
|
+
message: (arg: VMessageSlot) => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
443
412
|
[key: string]: any;
|
|
444
413
|
}>[];
|
|
445
414
|
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Composables
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { VItemGroupSymbol } from "./VItemGroup.mjs";
|
|
3
|
+
import { makeGroupItemProps, useGroupItem } from "../../composables/group.mjs"; // Utilities
|
|
4
4
|
import { genericComponent } from "../../util/index.mjs";
|
|
5
5
|
export const VItem = genericComponent()({
|
|
6
6
|
name: 'VItem',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VItem.mjs","names":["
|
|
1
|
+
{"version":3,"file":"VItem.mjs","names":["VItemGroupSymbol","makeGroupItemProps","useGroupItem","genericComponent","VItem","name","props","emits","val","setup","_ref","slots","isSelected","select","toggle","selectedClass","value","disabled","default"],"sources":["../../../src/components/VItemGroup/VItem.tsx"],"sourcesContent":["// Composables\nimport { VItemGroupSymbol } from './VItemGroup'\nimport { makeGroupItemProps, useGroupItem } from '@/composables/group'\n\n// Utilities\nimport { genericComponent } from '@/util'\n\ntype VItemSlots = {\n default: {\n isSelected: boolean | undefined\n selectedClass: boolean | (string | undefined)[] | undefined\n select: ((value: boolean) => void) | undefined\n toggle: (() => void) | undefined\n value: unknown\n disabled: boolean | undefined\n }\n}\n\nexport const VItem = genericComponent<VItemSlots>()({\n name: 'VItem',\n\n props: makeGroupItemProps(),\n\n emits: {\n 'group:selected': (val: { value: boolean }) => true,\n },\n\n setup (props, { slots }) {\n const { isSelected, select, toggle, selectedClass, value, disabled } = useGroupItem(props, VItemGroupSymbol)\n return () => slots.default?.({\n isSelected: isSelected.value,\n selectedClass: selectedClass.value,\n select,\n toggle,\n value: value.value,\n disabled: disabled.value,\n })\n },\n})\n\nexport type VItem = InstanceType<typeof VItem>\n"],"mappings":"AAAA;AAAA,SACSA,gBAAgB;AAAA,SAChBC,kBAAkB,EAAEC,YAAY,uCAEzC;AAAA,SACSC,gBAAgB;AAazB,OAAO,MAAMC,KAAK,GAAGD,gBAAgB,EAAc,CAAC;EAClDE,IAAI,EAAE,OAAO;EAEbC,KAAK,EAAEL,kBAAkB,EAAE;EAE3BM,KAAK,EAAE;IACL,gBAAgB,EAAGC,GAAuB,IAAK;EACjD,CAAC;EAEDC,KAAKA,CAAEH,KAAK,EAAAI,IAAA,EAAa;IAAA,IAAX;MAAEC;IAAM,CAAC,GAAAD,IAAA;IACrB,MAAM;MAAEE,UAAU;MAAEC,MAAM;MAAEC,MAAM;MAAEC,aAAa;MAAEC,KAAK;MAAEC;IAAS,CAAC,GAAGf,YAAY,CAACI,KAAK,EAAEN,gBAAgB,CAAC;IAC5G,OAAO,MAAMW,KAAK,CAACO,OAAO,GAAG;MAC3BN,UAAU,EAAEA,UAAU,CAACI,KAAK;MAC5BD,aAAa,EAAEA,aAAa,CAACC,KAAK;MAClCH,MAAM;MACNC,MAAM;MACNE,KAAK,EAAEA,KAAK,CAACA,KAAK;MAClBC,QAAQ,EAAEA,QAAQ,CAACD;IACrB,CAAC,CAAC;EACJ;AACF,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VItemGroup.mjs","names":["makeComponentProps","makeGroupProps","useGroup","makeTagProps","makeThemeProps","provideTheme","genericComponent","propsFactory","VItemGroupSymbol","Symbol","for","makeVItemGroupProps","selectedClass","VItemGroup","name","props","emits","value","setup","_ref","slots","themeClasses","isSelected","select","next","prev","selected","_createVNode","tag","class","style","default"],"sources":["../../../src/components/VItemGroup/VItemGroup.tsx"],"sourcesContent":["// Styles\nimport './VItemGroup.sass'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { makeGroupProps, useGroup } from '@/composables/group'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\n\n// Utilities\nimport { genericComponent, propsFactory } from '@/util'\n\nexport const VItemGroupSymbol = Symbol.for('vuetify:v-item-group')\n\nexport const makeVItemGroupProps = propsFactory({\n ...makeComponentProps(),\n ...makeGroupProps({\n selectedClass: 'v-item--selected',\n }),\n ...makeTagProps(),\n ...makeThemeProps(),\n}, 'v-item-group')\n\ntype VItemGroupSlots = {\n default:
|
|
1
|
+
{"version":3,"file":"VItemGroup.mjs","names":["makeComponentProps","makeGroupProps","useGroup","makeTagProps","makeThemeProps","provideTheme","genericComponent","propsFactory","VItemGroupSymbol","Symbol","for","makeVItemGroupProps","selectedClass","VItemGroup","name","props","emits","value","setup","_ref","slots","themeClasses","isSelected","select","next","prev","selected","_createVNode","tag","class","style","default"],"sources":["../../../src/components/VItemGroup/VItemGroup.tsx"],"sourcesContent":["// Styles\nimport './VItemGroup.sass'\n\n// Composables\nimport { makeComponentProps } from '@/composables/component'\nimport { makeGroupProps, useGroup } from '@/composables/group'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\n\n// Utilities\nimport { genericComponent, propsFactory } from '@/util'\n\nexport const VItemGroupSymbol = Symbol.for('vuetify:v-item-group')\n\nexport const makeVItemGroupProps = propsFactory({\n ...makeComponentProps(),\n ...makeGroupProps({\n selectedClass: 'v-item--selected',\n }),\n ...makeTagProps(),\n ...makeThemeProps(),\n}, 'v-item-group')\n\ntype VItemGroupSlots = {\n default: {\n isSelected: (id: number) => boolean\n select: (id: number, value: boolean) => void\n next: () => void\n prev: () => void\n selected: readonly number[]\n }\n}\n\nexport const VItemGroup = genericComponent<VItemGroupSlots>()({\n name: 'VItemGroup',\n\n props: makeVItemGroupProps(),\n\n emits: {\n 'update:modelValue': (value: any) => true,\n },\n\n setup (props, { slots }) {\n const { themeClasses } = provideTheme(props)\n const { isSelected, select, next, prev, selected } = useGroup(props, VItemGroupSymbol)\n\n return () => (\n <props.tag\n class={[\n 'v-item-group',\n themeClasses.value,\n props.class,\n ]}\n style={ props.style }\n >\n { slots.default?.({\n isSelected,\n select,\n next,\n prev,\n selected: selected.value,\n })}\n </props.tag>\n )\n },\n})\n\nexport type VItemGroup = InstanceType<typeof VItemGroup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