@vuetify/nightly 3.7.4-next.2024-11-06 → 3.7.5-master.2024-12-03
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/json/attributes.json +1561 -1561
- package/dist/json/importMap-labs.json +8 -8
- package/dist/json/importMap.json +120 -120
- package/dist/json/web-types.json +2945 -2945
- package/dist/vuetify-labs.css +25432 -23715
- package/dist/vuetify-labs.d.ts +14220 -3389
- package/dist/vuetify-labs.esm.js +73 -70
- package/dist/vuetify-labs.esm.js.map +1 -1
- package/dist/vuetify-labs.js +73 -70
- package/dist/vuetify-labs.min.css +4 -3
- package/dist/vuetify.css +23969 -22249
- package/dist/vuetify.d.ts +11832 -2652
- package/dist/vuetify.esm.js +62 -60
- package/dist/vuetify.esm.js.map +1 -1
- package/dist/vuetify.js +62 -60
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +4 -3
- package/dist/vuetify.min.js +37 -37
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +215 -207
- package/lib/components/VAlert/VAlert.mjs +1 -1
- package/lib/components/VAlert/index.d.mts +86 -8
- package/lib/components/VApp/VApp.css +15 -16
- package/lib/components/VApp/index.d.mts +20 -4
- package/lib/components/VAppBar/VAppBar.css +12 -14
- package/lib/components/VAppBar/VAppBar.mjs +1 -1
- package/lib/components/VAppBar/VAppBarNavIcon.mjs +1 -1
- package/lib/components/VAppBar/VAppBarTitle.mjs +1 -1
- package/lib/components/VAppBar/index.d.mts +148 -12
- package/lib/components/VAutocomplete/VAutocomplete.css +85 -86
- package/lib/components/VAutocomplete/VAutocomplete.mjs +5 -5
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/index.d.mts +1396 -237
- package/lib/components/VAvatar/VAvatar.css +106 -108
- package/lib/components/VAvatar/index.d.mts +31 -4
- package/lib/components/VBadge/VBadge.css +77 -73
- package/lib/components/VBadge/VBadge.mjs +1 -1
- package/lib/components/VBadge/VBadge.sass +4 -0
- package/lib/components/VBadge/index.d.mts +41 -4
- package/lib/components/VBanner/VBanner.css +166 -161
- package/lib/components/VBanner/VBanner.mjs +1 -1
- package/lib/components/VBanner/index.d.mts +88 -12
- package/lib/components/VBottomNavigation/VBottomNavigation.css +63 -64
- package/lib/components/VBottomNavigation/index.d.mts +32 -4
- package/lib/components/VBottomSheet/VBottomSheet.css +31 -34
- package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
- package/lib/components/VBottomSheet/index.d.mts +88 -4
- package/lib/components/VBreadcrumbs/VBreadcrumbs.css +57 -54
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +1 -1
- package/lib/components/VBreadcrumbs/index.d.mts +65 -12
- package/lib/components/VBtn/VBtn.css +408 -385
- package/lib/components/VBtn/VBtn.mjs +1 -1
- package/lib/components/VBtn/VBtn.sass +4 -4
- package/lib/components/VBtn/index.d.mts +72 -4
- package/lib/components/VBtnGroup/VBtnGroup.css +64 -63
- package/lib/components/VBtnGroup/VBtnGroup.mjs +1 -1
- package/lib/components/VBtnGroup/index.d.mts +28 -4
- package/lib/components/VBtnToggle/VBtnToggle.css +14 -16
- package/lib/components/VBtnToggle/VBtnToggle.mjs +1 -1
- package/lib/components/VBtnToggle/index.d.mts +24 -4
- package/lib/components/VCard/VCard.css +302 -294
- package/lib/components/VCard/VCard.mjs +1 -1
- package/lib/components/VCard/VCardItem.mjs +1 -1
- package/lib/components/VCard/VCardSubtitle.mjs +1 -1
- package/lib/components/VCard/VCardText.mjs +1 -1
- package/lib/components/VCard/index.d.mts +190 -24
- package/lib/components/VCarousel/VCarousel.css +65 -63
- package/lib/components/VCarousel/VCarousel.mjs +1 -1
- package/lib/components/VCarousel/VCarousel.sass +1 -1
- package/lib/components/VCarousel/VCarouselItem.mjs +1 -1
- package/lib/components/VCarousel/index.d.mts +86 -8
- package/lib/components/VCheckbox/VCheckbox.css +5 -7
- package/lib/components/VCheckbox/VCheckbox.mjs +1 -1
- package/lib/components/VCheckbox/VCheckboxBtn.mjs +1 -1
- package/lib/components/VCheckbox/index.d.mts +90 -8
- package/lib/components/VChip/VChip.css +411 -378
- package/lib/components/VChip/VChip.mjs +4 -3
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/index.d.mts +113 -12
- package/lib/components/VChipGroup/VChipGroup.css +18 -19
- package/lib/components/VChipGroup/VChipGroup.mjs +1 -1
- package/lib/components/VChipGroup/index.d.mts +28 -4
- package/lib/components/VCode/VCode.css +8 -10
- package/lib/components/VCode/index.d.mts +18 -4
- package/lib/components/VColorPicker/VColorPicker.css +22 -22
- package/lib/components/VColorPicker/VColorPicker.mjs +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.css +22 -24
- package/lib/components/VColorPicker/VColorPickerEdit.css +28 -29
- package/lib/components/VColorPicker/VColorPickerPreview.css +67 -69
- package/lib/components/VColorPicker/VColorPickerPreview.sass +2 -4
- package/lib/components/VColorPicker/VColorPickerSwatches.css +34 -34
- package/lib/components/VColorPicker/index.d.mts +68 -4
- package/lib/components/VCombobox/VCombobox.css +85 -86
- package/lib/components/VCombobox/VCombobox.mjs +5 -5
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/index.d.mts +1396 -237
- package/lib/components/VConfirmEdit/VConfirmEdit.mjs +9 -7
- package/lib/components/VConfirmEdit/VConfirmEdit.mjs.map +1 -1
- package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs +2 -2
- package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.mjs.map +1 -1
- package/lib/components/VConfirmEdit/index.d.mts +16 -13
- package/lib/components/VCounter/VCounter.css +5 -7
- package/lib/components/VCounter/VCounter.mjs +1 -1
- package/lib/components/VCounter/index.d.mts +31 -9
- package/lib/components/VDataIterator/index.d.mts +56 -12
- package/lib/components/VDataTable/VDataTable.css +186 -189
- package/lib/components/VDataTable/VDataTable.mjs +1 -1
- package/lib/components/VDataTable/VDataTable.sass +10 -20
- package/lib/components/VDataTable/VDataTableFooter.css +31 -33
- package/lib/components/VDataTable/VDataTableFooter.mjs +1 -1
- package/lib/components/VDataTable/VDataTableGroupHeaderRow.mjs +1 -1
- package/lib/components/VDataTable/VDataTableHeaders.mjs +1 -1
- package/lib/components/VDataTable/VDataTableRow.mjs +1 -1
- package/lib/components/VDataTable/VDataTableRows.mjs +1 -1
- package/lib/components/VDataTable/VDataTableServer.mjs +1 -1
- package/lib/components/VDataTable/VDataTableVirtual.mjs +1 -1
- package/lib/components/VDataTable/index.d.mts +388 -36
- package/lib/components/VDatePicker/VDatePicker.css +6 -8
- package/lib/components/VDatePicker/VDatePicker.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerControls.css +56 -54
- package/lib/components/VDatePicker/VDatePickerHeader.css +60 -56
- package/lib/components/VDatePicker/VDatePickerHeader.mjs +2 -1
- package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonth.css +55 -51
- package/lib/components/VDatePicker/VDatePickerMonth.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerMonths.css +19 -20
- package/lib/components/VDatePicker/VDatePickerMonths.mjs +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.css +15 -16
- package/lib/components/VDatePicker/VDatePickerYears.mjs +1 -1
- package/lib/components/VDatePicker/index.d.mts +281 -29
- package/lib/components/VDefaultsProvider/index.d.mts +20 -4
- package/lib/components/VDialog/VDialog.css +95 -95
- package/lib/components/VDialog/VDialog.mjs +1 -1
- package/lib/components/VDialog/__test__/VDialog.spec.cy.mjs +1 -1
- package/lib/components/VDialog/index.d.mts +389 -143
- package/lib/components/VDivider/VDivider.css +52 -52
- package/lib/components/VDivider/index.d.mts +24 -4
- package/lib/components/VEmptyState/VEmptyState.css +67 -62
- package/lib/components/VEmptyState/VEmptyState.mjs +1 -1
- package/lib/components/VEmptyState/index.d.mts +66 -4
- package/lib/components/VExpansionPanel/VExpansionPanel.css +209 -203
- package/lib/components/VExpansionPanel/VExpansionPanel.sass +25 -27
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +1 -1
- package/lib/components/VExpansionPanel/index.d.mts +152 -16
- package/lib/components/VFab/VFab.css +69 -74
- package/lib/components/VFab/VFab.mjs +1 -1
- package/lib/components/VFab/VFab.sass +4 -5
- package/lib/components/VFab/index.d.mts +78 -9
- package/lib/components/VField/VField.css +579 -539
- package/lib/components/VField/VField.mjs +3 -2
- package/lib/components/VField/VField.mjs.map +1 -1
- package/lib/components/VField/VFieldLabel.mjs +1 -1
- package/lib/components/VField/index.d.mts +59 -11
- package/lib/components/VFileInput/VFileInput.css +29 -31
- package/lib/components/VFileInput/VFileInput.mjs +1 -1
- package/lib/components/VFileInput/index.d.mts +256 -71
- package/lib/components/VFooter/VFooter.css +36 -38
- package/lib/components/VFooter/VFooter.mjs +1 -1
- package/lib/components/VFooter/index.d.mts +29 -4
- package/lib/components/VForm/index.d.mts +175 -267
- package/lib/components/VGrid/VContainer.mjs +1 -1
- package/lib/components/VGrid/VGrid.css +592 -565
- package/lib/components/VGrid/index.d.mts +118 -16
- package/lib/components/VHover/index.d.mts +33 -4
- package/lib/components/VIcon/VIcon.css +52 -51
- package/lib/components/VIcon/index.d.mts +75 -17
- package/lib/components/VImg/VImg.css +51 -50
- package/lib/components/VImg/VImg.mjs +1 -1
- package/lib/components/VImg/index.d.mts +74 -19
- package/lib/components/VInfiniteScroll/VInfiniteScroll.css +37 -36
- package/lib/components/VInfiniteScroll/VInfiniteScroll.mjs +1 -1
- package/lib/components/VInfiniteScroll/index.d.mts +46 -4
- package/lib/components/VInput/VInput.css +142 -131
- package/lib/components/VInput/VInput.mjs +1 -1
- package/lib/components/VInput/index.d.mts +37 -4
- package/lib/components/VItemGroup/VItemGroup.css +5 -7
- package/lib/components/VItemGroup/index.d.mts +65 -8
- package/lib/components/VKbd/VKbd.css +11 -13
- package/lib/components/VKbd/index.d.mts +18 -4
- package/lib/components/VLabel/VLabel.css +15 -16
- package/lib/components/VLabel/index.d.mts +20 -4
- package/lib/components/VLayout/VLayout.css +8 -10
- package/lib/components/VLayout/VLayoutItem.css +7 -8
- package/lib/components/VLayout/index.d.mts +48 -8
- package/lib/components/VLazy/VLazy.mjs +1 -1
- package/lib/components/VLazy/index.d.mts +31 -4
- package/lib/components/VList/VList.css +108 -104
- package/lib/components/VList/VList.mjs +4 -3
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VList.sass +1 -1
- package/lib/components/VList/VListChildren.mjs +1 -1
- package/lib/components/VList/VListGroup.mjs +1 -1
- package/lib/components/VList/VListItem.css +452 -440
- package/lib/components/VList/VListItem.mjs +4 -3
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListItem.sass +1 -2
- package/lib/components/VList/VListItemAction.mjs +1 -1
- package/lib/components/VList/VListItemMedia.mjs +1 -1
- package/lib/components/VList/VListItemSubtitle.mjs +1 -1
- package/lib/components/VList/index.d.mts +301 -58
- package/lib/components/VLocaleProvider/VLocaleProvider.css +2 -4
- package/lib/components/VLocaleProvider/index.d.mts +21 -4
- package/lib/components/VMain/VMain.css +30 -32
- package/lib/components/VMain/index.d.mts +25 -4
- package/lib/components/VMenu/VMenu.css +19 -21
- package/lib/components/VMenu/VMenu.mjs +1 -1
- package/lib/components/VMenu/index.d.mts +397 -155
- package/lib/components/VMessages/VMessages.css +15 -17
- package/lib/components/VMessages/index.d.mts +27 -4
- package/lib/components/VNavigationDrawer/VNavigationDrawer.css +108 -106
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +1 -1
- package/lib/components/VNavigationDrawer/index.d.mts +62 -7
- package/lib/components/VOtpInput/VOtpInput.css +58 -56
- package/lib/components/VOtpInput/VOtpInput.mjs +1 -1
- package/lib/components/VOtpInput/index.d.mts +52 -7
- package/lib/components/VOverlay/VOverlay.css +63 -60
- package/lib/components/VOverlay/VOverlay.mjs +1 -1
- package/lib/components/VOverlay/VOverlay.sass +13 -14
- package/lib/components/VOverlay/index.d.mts +101 -19
- package/lib/components/VPagination/VPagination.css +8 -10
- package/lib/components/VPagination/VPagination.mjs +1 -1
- package/lib/components/VPagination/index.d.mts +64 -4
- package/lib/components/VParallax/VParallax.css +6 -8
- package/lib/components/VParallax/VParallax.mjs +1 -1
- package/lib/components/VParallax/index.d.mts +27 -4
- package/lib/components/VProgressCircular/VProgressCircular.css +101 -95
- package/lib/components/VProgressCircular/index.d.mts +34 -4
- package/lib/components/VProgressLinear/VProgressLinear.css +222 -209
- package/lib/components/VProgressLinear/index.d.mts +54 -4
- package/lib/components/VRadio/VRadio.mjs +1 -1
- package/lib/components/VRadio/index.d.mts +68 -4
- package/lib/components/VRadioGroup/VRadioGroup.css +12 -14
- package/lib/components/VRadioGroup/VRadioGroup.mjs +1 -1
- package/lib/components/VRadioGroup/index.d.mts +48 -4
- package/lib/components/VRangeSlider/VRangeSlider.mjs +1 -1
- package/lib/components/VRangeSlider/index.d.mts +107 -4
- package/lib/components/VRating/VRating.css +53 -52
- package/lib/components/VRating/VRating.mjs +1 -1
- package/lib/components/VRating/index.d.mts +42 -4
- package/lib/components/VResponsive/VResponsive.css +26 -25
- package/lib/components/VResponsive/index.d.mts +29 -4
- package/lib/components/VSelect/VSelect.css +52 -54
- package/lib/components/VSelect/VSelect.mjs +4 -4
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/index.d.mts +1388 -236
- package/lib/components/VSelectionControl/VSelectionControl.css +102 -100
- package/lib/components/VSelectionControl/VSelectionControl.mjs +1 -1
- package/lib/components/VSelectionControl/index.d.mts +37 -10
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.css +8 -10
- package/lib/components/VSelectionControlGroup/index.d.mts +26 -4
- package/lib/components/VSheet/VSheet.css +36 -38
- package/lib/components/VSheet/VSheet.mjs +1 -1
- package/lib/components/VSheet/index.d.mts +32 -4
- package/lib/components/VSkeletonLoader/VSkeletonLoader.css +224 -225
- package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +1 -1
- package/lib/components/VSkeletonLoader/index.d.mts +28 -4
- package/lib/components/VSlideGroup/VSlideGroup.css +55 -53
- package/lib/components/VSlideGroup/index.d.mts +70 -14
- package/lib/components/VSlider/VSlider.css +57 -53
- package/lib/components/VSlider/VSlider.mjs +1 -1
- package/lib/components/VSlider/VSliderThumb.css +153 -142
- package/lib/components/VSlider/VSliderThumb.mjs +1 -1
- package/lib/components/VSlider/VSliderTrack.css +174 -155
- package/lib/components/VSlider/index.d.mts +106 -4
- package/lib/components/VSnackbar/VSnackbar.css +140 -140
- package/lib/components/VSnackbar/VSnackbar.mjs +1 -1
- package/lib/components/VSnackbar/index.d.mts +398 -152
- package/lib/components/VSparkline/VBarline.mjs +2 -1
- package/lib/components/VSparkline/VBarline.mjs.map +1 -1
- package/lib/components/VSparkline/VSparkline.mjs +1 -1
- package/lib/components/VSparkline/VTrendline.mjs +2 -1
- package/lib/components/VSparkline/VTrendline.mjs.map +1 -1
- package/lib/components/VSparkline/index.d.mts +49 -4
- package/lib/components/VSpeedDial/VSpeedDial.css +41 -43
- package/lib/components/VSpeedDial/VSpeedDial.mjs +1 -1
- package/lib/components/VSpeedDial/index.d.mts +85 -4
- package/lib/components/VStepper/VStepper.css +56 -55
- package/lib/components/VStepper/VStepper.mjs +6 -5
- package/lib/components/VStepper/VStepper.mjs.map +1 -1
- package/lib/components/VStepper/VStepperItem.css +115 -112
- package/lib/components/VStepper/VStepperItem.mjs +6 -5
- package/lib/components/VStepper/VStepperItem.mjs.map +1 -1
- package/lib/components/VStepper/VStepperWindow.mjs +1 -1
- package/lib/components/VStepper/VStepperWindowItem.mjs +1 -1
- package/lib/components/VStepper/index.d.mts +301 -69
- package/lib/components/VSwitch/VSwitch.css +139 -129
- package/lib/components/VSwitch/VSwitch.mjs +1 -1
- package/lib/components/VSwitch/index.d.mts +59 -4
- package/lib/components/VSystemBar/VSystemBar.css +43 -45
- package/lib/components/VSystemBar/VSystemBar.mjs +1 -1
- package/lib/components/VSystemBar/index.d.mts +28 -4
- package/lib/components/VTable/VTable.css +141 -140
- package/lib/components/VTable/VTable.sass +2 -4
- package/lib/components/VTable/index.d.mts +33 -4
- package/lib/components/VTabs/VTab.css +29 -30
- package/lib/components/VTabs/VTab.mjs +1 -1
- package/lib/components/VTabs/VTabs.css +65 -59
- package/lib/components/VTabs/VTabs.mjs +1 -1
- package/lib/components/VTabs/VTabsWindow.mjs +1 -1
- package/lib/components/VTabs/VTabsWindowItem.mjs +1 -1
- package/lib/components/VTabs/index.d.mts +394 -98
- package/lib/components/VTextField/VTextField.css +68 -65
- package/lib/components/VTextField/VTextField.mjs +1 -1
- package/lib/components/VTextField/index.d.mts +374 -152
- package/lib/components/VTextarea/VTextarea.css +39 -47
- package/lib/components/VTextarea/VTextarea.mjs +1 -1
- package/lib/components/VTextarea/VTextarea.sass +2 -4
- package/lib/components/VTextarea/index.d.mts +244 -71
- package/lib/components/VThemeProvider/VThemeProvider.css +3 -5
- package/lib/components/VThemeProvider/index.d.mts +20 -4
- package/lib/components/VTimeline/VTimeline.css +418 -379
- package/lib/components/VTimeline/VTimeline.mjs +1 -1
- package/lib/components/VTimeline/VTimelineDivider.mjs +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs +1 -1
- package/lib/components/VTimeline/index.d.mts +75 -8
- package/lib/components/VToolbar/VToolbar.css +143 -136
- package/lib/components/VToolbar/VToolbar.mjs +1 -1
- package/lib/components/VToolbar/index.d.mts +90 -12
- package/lib/components/VTooltip/VTooltip.css +21 -25
- package/lib/components/VTooltip/VTooltip.mjs +1 -1
- package/lib/components/VTooltip/VTooltip.sass +6 -8
- package/lib/components/VTooltip/index.d.mts +386 -147
- package/lib/components/VValidation/index.d.mts +24 -10
- package/lib/components/VVirtualScroll/VVirtualScroll.css +9 -11
- package/lib/components/VVirtualScroll/VVirtualScroll.mjs +1 -1
- package/lib/components/VVirtualScroll/VVirtualScrollItem.mjs +1 -1
- package/lib/components/VVirtualScroll/index.d.mts +15 -4
- package/lib/components/VWindow/VWindow.css +70 -73
- package/lib/components/VWindow/VWindow.mjs +1 -1
- package/lib/components/VWindow/VWindowItem.mjs +1 -1
- package/lib/components/VWindow/index.d.mts +47 -8
- package/lib/components/index.d.mts +11793 -2613
- package/lib/components/transitions/dialog-transition.mjs +2 -1
- package/lib/components/transitions/dialog-transition.mjs.map +1 -1
- package/lib/components/transitions/index.d.mts +309 -64
- package/lib/composables/form.mjs +7 -2
- package/lib/composables/form.mjs.map +1 -1
- package/lib/composables/icons.mjs +1 -1
- package/lib/composables/theme.mjs +4 -4
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/validation.mjs +10 -12
- package/lib/composables/validation.mjs.map +1 -1
- package/lib/composables/variant.mjs +1 -1
- package/lib/composables/virtual.mjs +1 -1
- package/lib/composables/virtual.mjs.map +1 -1
- package/lib/directives/ripple/VRipple.css +36 -38
- package/lib/entry-bundler.mjs +1 -1
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +1 -1
- package/lib/framework.mjs.map +1 -1
- package/lib/index.d.mts +44 -44
- package/lib/labs/VCalendar/VCalendar.css +225 -219
- package/lib/labs/VCalendar/VCalendar.mjs +1 -1
- package/lib/labs/VCalendar/VCalendarDay.css +32 -33
- package/lib/labs/VCalendar/VCalendarDay.mjs +1 -1
- package/lib/labs/VCalendar/VCalendarHeader.css +13 -13
- package/lib/labs/VCalendar/VCalendarInterval.css +42 -43
- package/lib/labs/VCalendar/VCalendarIntervalEvent.css +5 -7
- package/lib/labs/VCalendar/VCalendarMonthDay.css +58 -61
- package/lib/labs/VCalendar/VCalendarMonthDay.sass +2 -3
- package/lib/labs/VCalendar/index.d.mts +211 -24
- package/lib/labs/VDateInput/VDateInput.mjs +2 -2
- package/lib/labs/VDateInput/VDateInput.mjs.map +1 -1
- package/lib/labs/VDateInput/index.d.mts +115 -4
- package/lib/labs/VNumberInput/VNumberInput.css +38 -40
- package/lib/labs/VNumberInput/VNumberInput.mjs +8 -6
- package/lib/labs/VNumberInput/VNumberInput.mjs.map +1 -1
- package/lib/labs/VNumberInput/index.d.mts +1267 -564
- package/lib/labs/VPicker/VPicker.css +57 -53
- package/lib/labs/VPicker/VPicker.mjs +1 -1
- package/lib/labs/VPicker/index.d.mts +63 -8
- package/lib/labs/VPullToRefresh/index.d.mts +35 -4
- package/lib/labs/VSnackbarQueue/VSnackbarQueue.mjs +1 -1
- package/lib/labs/VSnackbarQueue/index.d.mts +453 -156
- package/lib/labs/VStepperVertical/VStepperVertical.mjs +1 -1
- package/lib/labs/VStepperVertical/VStepperVerticalActions.mjs +1 -1
- package/lib/labs/VStepperVertical/VStepperVerticalItem.mjs +1 -1
- package/lib/labs/VStepperVertical/index.d.mts +271 -56
- package/lib/labs/VTimePicker/VTimePicker.css +7 -9
- package/lib/labs/VTimePicker/VTimePicker.mjs +1 -1
- package/lib/labs/VTimePicker/VTimePickerClock.css +129 -126
- package/lib/labs/VTimePicker/VTimePickerControls.css +103 -102
- package/lib/labs/VTimePicker/VTimePickerControls.mjs +1 -1
- package/lib/labs/VTimePicker/index.d.mts +122 -12
- package/lib/labs/VTreeview/VTreeview.mjs +1 -1
- package/lib/labs/VTreeview/VTreeviewChildren.mjs +1 -1
- package/lib/labs/VTreeview/VTreeviewGroup.mjs +1 -1
- package/lib/labs/VTreeview/VTreeviewItem.css +15 -17
- package/lib/labs/VTreeview/VTreeviewItem.mjs +4 -5
- package/lib/labs/VTreeview/VTreeviewItem.mjs.map +1 -1
- package/lib/labs/VTreeview/VTreeviewItem.sass +1 -2
- package/lib/labs/VTreeview/index.d.mts +225 -38
- package/lib/labs/components.d.mts +2940 -1043
- package/lib/locale/fr.mjs +1 -1
- package/lib/locale/fr.mjs.map +1 -1
- package/lib/styles/elements/_global.sass +1 -1
- package/lib/styles/generic/_colors.scss +3 -3
- package/lib/styles/generic/_layers.scss +1 -13
- package/lib/styles/generic/_transitions.scss +32 -32
- package/lib/styles/main.css +16139 -14666
- package/lib/styles/settings/_utilities.scss +5 -0
- package/lib/styles/settings/_variables.scss +2 -1
- package/lib/styles/tools/_bootable.sass +3 -0
- package/lib/styles/tools/_border.sass +4 -4
- package/lib/styles/tools/_display.sass +10 -0
- package/lib/styles/tools/_elevation.sass +2 -2
- package/lib/styles/tools/_index.sass +2 -0
- package/lib/styles/tools/_layer.scss +2 -4
- package/lib/styles/tools/_position.sass +2 -2
- package/lib/styles/tools/_radius.sass +10 -0
- package/lib/styles/tools/_rounded.sass +2 -2
- package/lib/styles/tools/_utilities.sass +5 -1
- package/lib/styles/utilities/_elevation.scss +1 -1
- package/package.json +4 -5
@@ -1,8 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
white-space: nowrap;
|
7
|
-
}
|
1
|
+
.v-calendar-internal-event {
|
2
|
+
overflow: hidden;
|
3
|
+
padding: 4px;
|
4
|
+
text-overflow: ellipsis;
|
5
|
+
white-space: nowrap;
|
8
6
|
}
|
@@ -1,64 +1,61 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
border-inline-end: thin solid #e0e0e0;
|
12
|
-
}
|
13
|
-
.v-calendar-weekly__day {
|
14
|
-
width: 0;
|
15
|
-
overflow: hidden;
|
16
|
-
user-select: none;
|
17
|
-
position: relative;
|
18
|
-
padding: 0px 0px 0px 0px;
|
19
|
-
min-width: 0;
|
20
|
-
min-height: 150px;
|
21
|
-
border-right: thin solid #e0e0e0;
|
22
|
-
border-bottom: thin solid #e0e0e0;
|
23
|
-
flex: 1 1 auto;
|
24
|
-
border-inline-end: thin solid #e0e0e0;
|
25
|
-
text-align: center;
|
26
|
-
}
|
27
|
-
.v-calendar-weekly__day.v-present .v-calendar-weekly__day-month {
|
28
|
-
color: currentColor;
|
29
|
-
}
|
30
|
-
.v-calendar-weekly__day-label {
|
31
|
-
text-decoration: none;
|
32
|
-
user-select: none;
|
33
|
-
cursor: pointer;
|
34
|
-
box-shadow: none;
|
35
|
-
text-align: center;
|
36
|
-
}
|
37
|
-
.v-calendar-weekly__day-label .v-btn {
|
38
|
-
font-size: 12px;
|
39
|
-
}
|
1
|
+
.v-calendar-month__day {
|
2
|
+
position: relative;
|
3
|
+
display: flex;
|
4
|
+
flex-direction: column;
|
5
|
+
min-width: 0;
|
6
|
+
min-height: 150px;
|
7
|
+
border-right: thin solid #e0e0e0;
|
8
|
+
border-bottom: thin solid #e0e0e0;
|
9
|
+
flex: 1 1 auto;
|
10
|
+
border-inline-end: thin solid #e0e0e0;
|
40
11
|
}
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
12
|
+
|
13
|
+
.v-calendar-weekly__day {
|
14
|
+
flex: 1;
|
15
|
+
width: 0;
|
16
|
+
overflow: hidden;
|
17
|
+
user-select: none;
|
18
|
+
position: relative;
|
19
|
+
padding: 0px 0px 0px 0px;
|
20
|
+
min-width: 0;
|
21
|
+
min-height: 150px;
|
22
|
+
border-right: thin solid #e0e0e0;
|
23
|
+
border-bottom: thin solid #e0e0e0;
|
24
|
+
flex: 1 1 auto;
|
25
|
+
border-inline-end: thin solid #e0e0e0;
|
26
|
+
text-align: center;
|
45
27
|
}
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
28
|
+
.v-calendar-weekly__day.v-present .v-calendar-weekly__day-month {
|
29
|
+
color: currentColor;
|
30
|
+
}
|
31
|
+
|
32
|
+
.v-calendar-weekly__day-label {
|
33
|
+
text-decoration: none;
|
34
|
+
user-select: none;
|
35
|
+
cursor: pointer;
|
36
|
+
box-shadow: none;
|
37
|
+
text-align: center;
|
38
|
+
}
|
39
|
+
.v-calendar-weekly__day-label .v-btn {
|
40
|
+
font-size: 12px;
|
41
|
+
text-transform: none !important;
|
42
|
+
}
|
43
|
+
.v-calendar-weekly__day-label .v-btn.v-calendar-weekly__day-label__today {
|
44
|
+
background: rgba(var(--v-theme-surface-variant), var(--v-medium-emphasis-opacity));
|
45
|
+
color: rgb(var(--v-theme-on-surface-variant));
|
46
|
+
}
|
47
|
+
|
48
|
+
.v-calendar-weekly__day-month {
|
49
|
+
position: absolute;
|
50
|
+
text-decoration: none;
|
51
|
+
user-select: none;
|
52
|
+
box-shadow: none;
|
53
|
+
top: 0;
|
54
|
+
left: 36px;
|
55
|
+
height: 32px;
|
56
|
+
line-height: 32px;
|
57
|
+
}
|
58
|
+
|
59
|
+
.v-calendar-weekly__day-alldayevents-container {
|
60
|
+
min-height: 24px;
|
64
61
|
}
|
@@ -17,6 +17,7 @@
|
|
17
17
|
border-inline-end: $calendar-line-width solid $calendar-line-color
|
18
18
|
|
19
19
|
.v-calendar-weekly__day
|
20
|
+
flex: 1
|
20
21
|
width: 0
|
21
22
|
overflow: hidden
|
22
23
|
user-select: none
|
@@ -46,9 +47,7 @@
|
|
46
47
|
|
47
48
|
.v-btn
|
48
49
|
font-size: $calendar-weekly-day-label-font-size
|
49
|
-
|
50
|
-
@include tools.layer('overrides')
|
51
|
-
text-transform: none
|
50
|
+
text-transform: none !important
|
52
51
|
|
53
52
|
&.v-calendar-weekly__day-label__today
|
54
53
|
background: rgba(var(--v-theme-surface-variant), var(--v-medium-emphasis-opacity))
|
@@ -6,7 +6,7 @@ interface FilterPropsOptions<PropsOptions extends Readonly<ComponentPropsOptions
|
|
6
6
|
}
|
7
7
|
|
8
8
|
declare const VCalendar: {
|
9
|
-
new (...args: any[]): vue.
|
9
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
10
10
|
text: string;
|
11
11
|
disabled: boolean;
|
12
12
|
day: Record<string, any>;
|
@@ -130,7 +130,72 @@ declare const VCalendar: {
|
|
130
130
|
next: null;
|
131
131
|
prev: null;
|
132
132
|
'update:modelValue': null;
|
133
|
-
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
133
|
+
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
134
|
+
text: string;
|
135
|
+
disabled: boolean;
|
136
|
+
day: Record<string, any>;
|
137
|
+
nextIcon: string;
|
138
|
+
prevIcon: string;
|
139
|
+
viewMode: "day" | "month" | "week";
|
140
|
+
showAdjacentMonths: boolean;
|
141
|
+
weekdays: number[];
|
142
|
+
weeksInMonth: "static" | "dynamic";
|
143
|
+
hideHeader: boolean;
|
144
|
+
intervalDivisions: number;
|
145
|
+
intervalDuration: number;
|
146
|
+
intervalHeight: number;
|
147
|
+
intervalFormat: string | Function;
|
148
|
+
intervalStart: number;
|
149
|
+
hideDayHeader: boolean;
|
150
|
+
intervals: number;
|
151
|
+
hideWeekNumber: boolean;
|
152
|
+
} & {
|
153
|
+
max?: unknown;
|
154
|
+
min?: unknown;
|
155
|
+
title?: string | undefined;
|
156
|
+
month?: string | number | undefined;
|
157
|
+
year?: string | number | undefined;
|
158
|
+
events?: any[] | undefined;
|
159
|
+
modelValue?: unknown[] | undefined;
|
160
|
+
firstDayOfWeek?: string | number | undefined;
|
161
|
+
allowedDates?: unknown[] | ((date: unknown) => boolean) | undefined;
|
162
|
+
displayValue?: unknown;
|
163
|
+
dayIndex?: number | undefined;
|
164
|
+
} & {
|
165
|
+
$children?: {} | vue.VNodeChild | {
|
166
|
+
header?: ((arg: {
|
167
|
+
title: string;
|
168
|
+
}) => vue.VNodeChild) | undefined;
|
169
|
+
event?: ((arg: {
|
170
|
+
day?: Object;
|
171
|
+
allDay: boolean;
|
172
|
+
event: Record<string, unknown>;
|
173
|
+
}) => vue.VNodeChild) | undefined;
|
174
|
+
};
|
175
|
+
'v-slots'?: {
|
176
|
+
header?: false | ((arg: {
|
177
|
+
title: string;
|
178
|
+
}) => vue.VNodeChild) | undefined;
|
179
|
+
event?: false | ((arg: {
|
180
|
+
day?: Object;
|
181
|
+
allDay: boolean;
|
182
|
+
event: Record<string, unknown>;
|
183
|
+
}) => vue.VNodeChild) | undefined;
|
184
|
+
} | undefined;
|
185
|
+
} & {
|
186
|
+
"v-slot:header"?: false | ((arg: {
|
187
|
+
title: string;
|
188
|
+
}) => vue.VNodeChild) | undefined;
|
189
|
+
"v-slot:event"?: false | ((arg: {
|
190
|
+
day?: Object;
|
191
|
+
allDay: boolean;
|
192
|
+
event: Record<string, unknown>;
|
193
|
+
}) => vue.VNodeChild) | undefined;
|
194
|
+
} & {
|
195
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
196
|
+
onNext?: ((...args: any[]) => any) | undefined;
|
197
|
+
onPrev?: ((...args: any[]) => any) | undefined;
|
198
|
+
}, {
|
134
199
|
text: string;
|
135
200
|
disabled: boolean;
|
136
201
|
day: Record<string, any>;
|
@@ -158,7 +223,7 @@ declare const VCalendar: {
|
|
158
223
|
allDay: boolean;
|
159
224
|
event: Record<string, unknown>;
|
160
225
|
}) => vue.VNode[];
|
161
|
-
}>>,
|
226
|
+
}>>, {
|
162
227
|
P: {};
|
163
228
|
B: {};
|
164
229
|
D: {};
|
@@ -460,7 +525,7 @@ declare const VCalendar: {
|
|
460
525
|
allDay: boolean;
|
461
526
|
event: Record<string, unknown>;
|
462
527
|
}) => vue.VNode[];
|
463
|
-
}
|
528
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
464
529
|
nextIcon: {
|
465
530
|
type: StringConstructor;
|
466
531
|
default: string;
|
@@ -662,7 +727,7 @@ declare const VCalendar: {
|
|
662
727
|
type VCalendar = InstanceType<typeof VCalendar>;
|
663
728
|
|
664
729
|
declare const VCalendarDay: {
|
665
|
-
new (...args: any[]): vue.
|
730
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
666
731
|
day: Record<string, any>;
|
667
732
|
intervalDivisions: number;
|
668
733
|
intervalDuration: number;
|
@@ -685,7 +750,28 @@ declare const VCalendarDay: {
|
|
685
750
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
686
751
|
}, {
|
687
752
|
intervals: vue.ComputedRef<number[]>;
|
688
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
753
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
754
|
+
day: Record<string, any>;
|
755
|
+
intervalDivisions: number;
|
756
|
+
intervalDuration: number;
|
757
|
+
intervalHeight: number;
|
758
|
+
intervalFormat: string | Function;
|
759
|
+
intervalStart: number;
|
760
|
+
hideDayHeader: boolean;
|
761
|
+
intervals: number;
|
762
|
+
} & {
|
763
|
+
events?: any[] | undefined;
|
764
|
+
dayIndex?: number | undefined;
|
765
|
+
} & {
|
766
|
+
$children?: vue.VNodeChild | {
|
767
|
+
default?: (() => vue.VNodeChild) | undefined;
|
768
|
+
} | (() => vue.VNodeChild);
|
769
|
+
'v-slots'?: {
|
770
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
771
|
+
} | undefined;
|
772
|
+
} & {
|
773
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
774
|
+
}, {
|
689
775
|
day: Record<string, any>;
|
690
776
|
intervalDivisions: number;
|
691
777
|
intervalDuration: number;
|
@@ -696,7 +782,7 @@ declare const VCalendarDay: {
|
|
696
782
|
intervals: number;
|
697
783
|
}, true, {}, vue.SlotsType<Partial<{
|
698
784
|
default: () => vue.VNode[];
|
699
|
-
}>>,
|
785
|
+
}>>, {
|
700
786
|
P: {};
|
701
787
|
B: {};
|
702
788
|
D: {};
|
@@ -773,7 +859,7 @@ declare const VCalendarDay: {
|
|
773
859
|
intervals: number;
|
774
860
|
}, {}, string, vue.SlotsType<Partial<{
|
775
861
|
default: () => vue.VNode[];
|
776
|
-
}
|
862
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
777
863
|
day: {
|
778
864
|
type: ObjectConstructor;
|
779
865
|
default: () => {};
|
@@ -871,7 +957,7 @@ declare const VCalendarDay: {
|
|
871
957
|
type VCalendarDay = InstanceType<typeof VCalendarDay>;
|
872
958
|
|
873
959
|
declare const VCalendarHeader: {
|
874
|
-
new (...args: any[]): vue.
|
960
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
875
961
|
text: string;
|
876
962
|
nextIcon: string;
|
877
963
|
prevIcon: string;
|
@@ -895,14 +981,34 @@ declare const VCalendarHeader: {
|
|
895
981
|
'click:next': () => true;
|
896
982
|
'click:prev': () => true;
|
897
983
|
'click:toToday': () => true;
|
898
|
-
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
984
|
+
}, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
985
|
+
text: string;
|
986
|
+
nextIcon: string;
|
987
|
+
prevIcon: string;
|
988
|
+
viewMode: "day" | "month" | "week";
|
989
|
+
} & {
|
990
|
+
title?: string | undefined;
|
991
|
+
} & {
|
992
|
+
$children?: vue.VNodeChild | {
|
993
|
+
default?: (() => vue.VNodeChild) | undefined;
|
994
|
+
} | (() => vue.VNodeChild);
|
995
|
+
'v-slots'?: {
|
996
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
997
|
+
} | undefined;
|
998
|
+
} & {
|
999
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
1000
|
+
} & {
|
1001
|
+
"onClick:prev"?: (() => any) | undefined;
|
1002
|
+
"onClick:next"?: (() => any) | undefined;
|
1003
|
+
"onClick:toToday"?: (() => any) | undefined;
|
1004
|
+
}, {
|
899
1005
|
text: string;
|
900
1006
|
nextIcon: string;
|
901
1007
|
prevIcon: string;
|
902
1008
|
viewMode: "day" | "month" | "week";
|
903
1009
|
}, true, {}, vue.SlotsType<Partial<{
|
904
1010
|
default: () => vue.VNode[];
|
905
|
-
}>>,
|
1011
|
+
}>>, {
|
906
1012
|
P: {};
|
907
1013
|
B: {};
|
908
1014
|
D: {};
|
@@ -969,7 +1075,7 @@ declare const VCalendarHeader: {
|
|
969
1075
|
viewMode: "day" | "month" | "week";
|
970
1076
|
}, {}, string, vue.SlotsType<Partial<{
|
971
1077
|
default: () => vue.VNode[];
|
972
|
-
}
|
1078
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
973
1079
|
nextIcon: {
|
974
1080
|
type: StringConstructor;
|
975
1081
|
default: string;
|
@@ -1009,7 +1115,7 @@ declare const VCalendarHeader: {
|
|
1009
1115
|
type VCalendarHeader = InstanceType<typeof VCalendarHeader>;
|
1010
1116
|
|
1011
1117
|
declare const VCalendarInterval: {
|
1012
|
-
new (...args: any[]): vue.
|
1118
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
1013
1119
|
index: number;
|
1014
1120
|
day: Record<string, any>;
|
1015
1121
|
intervalDivisions: number;
|
@@ -1036,7 +1142,27 @@ declare const VCalendarInterval: {
|
|
1036
1142
|
end: unknown;
|
1037
1143
|
events: any[];
|
1038
1144
|
}>;
|
1039
|
-
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
1145
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
1146
|
+
index: number;
|
1147
|
+
day: Record<string, any>;
|
1148
|
+
intervalDivisions: number;
|
1149
|
+
intervalDuration: number;
|
1150
|
+
intervalHeight: number;
|
1151
|
+
intervalFormat: string | Function;
|
1152
|
+
intervalStart: number;
|
1153
|
+
} & {
|
1154
|
+
events?: any[] | undefined;
|
1155
|
+
dayIndex?: number | undefined;
|
1156
|
+
} & {
|
1157
|
+
$children?: vue.VNodeChild | {
|
1158
|
+
default?: (() => vue.VNodeChild) | undefined;
|
1159
|
+
} | (() => vue.VNodeChild);
|
1160
|
+
'v-slots'?: {
|
1161
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
1162
|
+
} | undefined;
|
1163
|
+
} & {
|
1164
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
1165
|
+
}, {
|
1040
1166
|
day: Record<string, any>;
|
1041
1167
|
intervalDivisions: number;
|
1042
1168
|
intervalDuration: number;
|
@@ -1045,7 +1171,7 @@ declare const VCalendarInterval: {
|
|
1045
1171
|
intervalStart: number;
|
1046
1172
|
}, true, {}, vue.SlotsType<Partial<{
|
1047
1173
|
default: () => vue.VNode[];
|
1048
|
-
}>>,
|
1174
|
+
}>>, {
|
1049
1175
|
P: {};
|
1050
1176
|
B: {};
|
1051
1177
|
D: {};
|
@@ -1126,7 +1252,7 @@ declare const VCalendarInterval: {
|
|
1126
1252
|
intervalStart: number;
|
1127
1253
|
}, {}, string, vue.SlotsType<Partial<{
|
1128
1254
|
default: () => vue.VNode[];
|
1129
|
-
}
|
1255
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
1130
1256
|
day: {
|
1131
1257
|
type: ObjectConstructor;
|
1132
1258
|
default: () => {};
|
@@ -1222,7 +1348,7 @@ declare const VCalendarInterval: {
|
|
1222
1348
|
type VCalendarInterval = InstanceType<typeof VCalendarInterval>;
|
1223
1349
|
|
1224
1350
|
declare const VCalendarIntervalEvent: {
|
1225
|
-
new (...args: any[]): vue.
|
1351
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
1226
1352
|
allDay: boolean;
|
1227
1353
|
intervalDivisions: number;
|
1228
1354
|
intervalDuration: number;
|
@@ -1239,11 +1365,28 @@ declare const VCalendarIntervalEvent: {
|
|
1239
1365
|
} | undefined;
|
1240
1366
|
} & {
|
1241
1367
|
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
1242
|
-
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps
|
1368
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
1369
|
+
allDay: boolean;
|
1370
|
+
intervalDivisions: number;
|
1371
|
+
intervalDuration: number;
|
1372
|
+
intervalHeight: number;
|
1373
|
+
} & {
|
1374
|
+
interval?: Record<string, any> | undefined;
|
1375
|
+
event?: Record<string, any> | undefined;
|
1376
|
+
} & {
|
1377
|
+
$children?: vue.VNodeChild | {
|
1378
|
+
default?: (() => vue.VNodeChild) | undefined;
|
1379
|
+
} | (() => vue.VNodeChild);
|
1380
|
+
'v-slots'?: {
|
1381
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
1382
|
+
} | undefined;
|
1383
|
+
} & {
|
1384
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
1385
|
+
}, {
|
1243
1386
|
allDay: boolean;
|
1244
1387
|
}, true, {}, vue.SlotsType<Partial<{
|
1245
1388
|
default: () => vue.VNode[];
|
1246
|
-
}>>,
|
1389
|
+
}>>, {
|
1247
1390
|
P: {};
|
1248
1391
|
B: {};
|
1249
1392
|
D: {};
|
@@ -1294,7 +1437,7 @@ declare const VCalendarIntervalEvent: {
|
|
1294
1437
|
allDay: boolean;
|
1295
1438
|
}, {}, string, vue.SlotsType<Partial<{
|
1296
1439
|
default: () => vue.VNode[];
|
1297
|
-
}
|
1440
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
1298
1441
|
allDay: BooleanConstructor;
|
1299
1442
|
interval: ObjectConstructor;
|
1300
1443
|
intervalDivisions: {
|
@@ -1330,7 +1473,51 @@ declare const VCalendarIntervalEvent: {
|
|
1330
1473
|
type VCalendarIntervalEvent = InstanceType<typeof VCalendarIntervalEvent>;
|
1331
1474
|
|
1332
1475
|
declare const VCalendarMonthDay: {
|
1333
|
-
new (...args: any[]): vue.
|
1476
|
+
new (...args: any[]): vue.CreateComponentPublicInstance<{
|
1477
|
+
active: boolean;
|
1478
|
+
disabled: boolean;
|
1479
|
+
} & {
|
1480
|
+
color?: string | undefined;
|
1481
|
+
title?: string | number | undefined;
|
1482
|
+
day?: Record<string, any> | undefined;
|
1483
|
+
events?: any[] | undefined;
|
1484
|
+
} & {
|
1485
|
+
$children?: vue.VNodeChild | (() => vue.VNodeChild) | {
|
1486
|
+
default?: (() => vue.VNodeChild) | undefined;
|
1487
|
+
content?: (() => vue.VNodeChild) | undefined;
|
1488
|
+
title?: ((arg: {
|
1489
|
+
title?: number | string;
|
1490
|
+
}) => vue.VNodeChild) | undefined;
|
1491
|
+
event?: ((arg: {
|
1492
|
+
day?: Object;
|
1493
|
+
allDay: boolean;
|
1494
|
+
event: Record<string, unknown>;
|
1495
|
+
}) => vue.VNodeChild) | undefined;
|
1496
|
+
};
|
1497
|
+
'v-slots'?: {
|
1498
|
+
default?: false | (() => vue.VNodeChild) | undefined;
|
1499
|
+
content?: false | (() => vue.VNodeChild) | undefined;
|
1500
|
+
title?: false | ((arg: {
|
1501
|
+
title?: number | string;
|
1502
|
+
}) => vue.VNodeChild) | undefined;
|
1503
|
+
event?: false | ((arg: {
|
1504
|
+
day?: Object;
|
1505
|
+
allDay: boolean;
|
1506
|
+
event: Record<string, unknown>;
|
1507
|
+
}) => vue.VNodeChild) | undefined;
|
1508
|
+
} | undefined;
|
1509
|
+
} & {
|
1510
|
+
"v-slot:default"?: false | (() => vue.VNodeChild) | undefined;
|
1511
|
+
"v-slot:content"?: false | (() => vue.VNodeChild) | undefined;
|
1512
|
+
"v-slot:title"?: false | ((arg: {
|
1513
|
+
title?: number | string;
|
1514
|
+
}) => vue.VNodeChild) | undefined;
|
1515
|
+
"v-slot:event"?: false | ((arg: {
|
1516
|
+
day?: Object;
|
1517
|
+
allDay: boolean;
|
1518
|
+
event: Record<string, unknown>;
|
1519
|
+
}) => vue.VNodeChild) | undefined;
|
1520
|
+
}, {}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & {
|
1334
1521
|
active: boolean;
|
1335
1522
|
disabled: boolean;
|
1336
1523
|
} & {
|
@@ -1374,7 +1561,7 @@ declare const VCalendarMonthDay: {
|
|
1374
1561
|
allDay: boolean;
|
1375
1562
|
event: Record<string, unknown>;
|
1376
1563
|
}) => vue.VNodeChild) | undefined;
|
1377
|
-
}, {
|
1564
|
+
}, {
|
1378
1565
|
active: boolean;
|
1379
1566
|
disabled: boolean;
|
1380
1567
|
}, true, {}, vue.SlotsType<Partial<{
|
@@ -1388,7 +1575,7 @@ declare const VCalendarMonthDay: {
|
|
1388
1575
|
allDay: boolean;
|
1389
1576
|
event: Record<string, unknown>;
|
1390
1577
|
}) => vue.VNode[];
|
1391
|
-
}>>,
|
1578
|
+
}>>, {
|
1392
1579
|
P: {};
|
1393
1580
|
B: {};
|
1394
1581
|
D: {};
|
@@ -1504,7 +1691,7 @@ declare const VCalendarMonthDay: {
|
|
1504
1691
|
allDay: boolean;
|
1505
1692
|
event: Record<string, unknown>;
|
1506
1693
|
}) => vue.VNode[];
|
1507
|
-
}
|
1694
|
+
}>>> & vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps & FilterPropsOptions<{
|
1508
1695
|
active: BooleanConstructor;
|
1509
1696
|
color: StringConstructor;
|
1510
1697
|
day: ObjectConstructor;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { createVNode as _createVNode, mergeProps as _mergeProps } from "vue";
|
2
2
|
// Components
|
3
3
|
import { makeVConfirmEditProps, VConfirmEdit } from "../../components/VConfirmEdit/VConfirmEdit.mjs";
|
4
4
|
import { makeVDatePickerProps, VDatePicker } from "../../components/VDatePicker/VDatePicker.mjs";
|
@@ -120,7 +120,7 @@ export const VDateInput = genericComponent()({
|
|
120
120
|
},
|
121
121
|
"onMousedown": e => e.preventDefault()
|
122
122
|
}), {
|
123
|
-
actions: !props.hideActions ?
|
123
|
+
actions: !props.hideActions ? actions : undefined
|
124
124
|
});
|
125
125
|
}
|
126
126
|
})]
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"VDateInput.mjs","names":["makeVConfirmEditProps","VConfirmEdit","makeVDatePickerProps","VDatePicker","VMenu","makeVTextFieldProps","VTextField","useDate","makeFocusProps","useFocus","useLocale","useProxiedModel","computed","shallowRef","genericComponent","omit","propsFactory","useRender","wrapInArray","makeVDateInputProps","hideActions","Boolean","placeholder","prependIcon","weeksInMonth","hideHeader","VDateInput","name","props","emits","val","setup","_ref","slots","t","adapter","isFocused","focus","blur","model","multiple","menu","display","value","length","start","end","isValid","format","isInteractive","disabled","readonly","onKeydown","e","key","target","date","onClick","preventDefault","stopPropagation","onSave","confirmEditProps","filterProps","datePickerProps","textFieldProps","_createVNode","_mergeProps","class","style","undefined","default","$event","_ref2","actions","proxyModel"],"sources":["../../../src/labs/VDateInput/VDateInput.tsx"],"sourcesContent":["// Components\nimport { makeVConfirmEditProps, VConfirmEdit } from '@/components/VConfirmEdit/VConfirmEdit'\nimport { makeVDatePickerProps, VDatePicker } from '@/components/VDatePicker/VDatePicker'\nimport { VMenu } from '@/components/VMenu/VMenu'\nimport { makeVTextFieldProps, VTextField } from '@/components/VTextField/VTextField'\n\n// Composables\nimport { useDate } from '@/composables/date'\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, shallowRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender, wrapInArray } from '@/util'\n\n// Types\nexport interface VDateInputSlots {\n default: never\n}\n\nexport const makeVDateInputProps = propsFactory({\n hideActions: Boolean,\n\n ...makeFocusProps(),\n ...makeVConfirmEditProps(),\n ...makeVTextFieldProps({\n placeholder: 'mm/dd/yyyy',\n prependIcon: '$calendar',\n }),\n ...omit(makeVDatePickerProps({\n weeksInMonth: 'dynamic' as const,\n hideHeader: true,\n }), ['active']),\n}, 'VDateInput')\n\nexport const VDateInput = genericComponent()({\n name: 'VDateInput',\n\n props: makeVDateInputProps(),\n\n emits: {\n 'update:modelValue': (val: string) => true,\n },\n\n setup (props, { slots }) {\n const { t } = useLocale()\n const adapter = useDate()\n const { isFocused, focus, blur } = useFocus(props)\n const model = useProxiedModel(props, 'modelValue', props.multiple ? [] : null)\n const menu = shallowRef(false)\n\n const display = computed(() => {\n const value = wrapInArray(model.value)\n\n if (!value.length) return null\n\n if (props.multiple === true) {\n return t('$vuetify.datePicker.itemsSelected', value.length)\n }\n\n if (props.multiple === 'range') {\n const start = value[0]\n const end = value[value.length - 1]\n\n return adapter.isValid(start) && adapter.isValid(end)\n ? `${adapter.format(start, 'keyboardDate')} - ${adapter.format(end, 'keyboardDate')}`\n : ''\n }\n\n return adapter.isValid(model.value) ? adapter.format(model.value, 'keyboardDate') : ''\n })\n\n const isInteractive = computed(() => !props.disabled && !props.readonly)\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key !== 'Enter') return\n\n if (!menu.value || !isFocused.value) {\n menu.value = true\n\n return\n }\n\n const target = e.target as HTMLInputElement\n\n model.value = adapter.date(target.value)\n }\n\n function onClick (e: MouseEvent) {\n e.preventDefault()\n e.stopPropagation()\n\n menu.value = true\n }\n\n function onSave () {\n menu.value = false\n }\n\n useRender(() => {\n const confirmEditProps = VConfirmEdit.filterProps(props)\n const datePickerProps = VDatePicker.filterProps(omit(props, ['active']))\n const textFieldProps = VTextField.filterProps(props)\n\n return (\n <VTextField\n { ...textFieldProps }\n class={ props.class }\n style={ props.style }\n modelValue={ display.value }\n onKeydown={ isInteractive.value ? onKeydown : undefined }\n focused={ menu.value || isFocused.value }\n onFocus={ focus }\n onBlur={ blur }\n onClick:control={ isInteractive.value ? onClick : undefined }\n onClick:prepend={ isInteractive.value ? onClick : undefined }\n >\n <VMenu\n v-model={ menu.value }\n activator=\"parent\"\n min-width=\"0\"\n closeOnContentClick={ false }\n openOnClick={ false }\n >\n <VConfirmEdit\n { ...confirmEditProps }\n v-model={ model.value }\n onSave={ onSave }\n >\n {{\n default: ({ actions, model: proxyModel }) => {\n return (\n <VDatePicker\n { ...datePickerProps }\n modelValue={ props.hideActions ? model.value : proxyModel.value }\n onUpdate:modelValue={ val => {\n if (!props.hideActions) {\n proxyModel.value = val\n } else {\n model.value = val\n\n if (!props.multiple) menu.value = false\n }\n }}\n onMousedown={ (e: MouseEvent) => e.preventDefault() }\n >\n {{\n actions: !props.hideActions ? () => actions : undefined,\n }}\n </VDatePicker>\n )\n },\n }}\n </VConfirmEdit>\n </VMenu>\n\n { slots.default?.() }\n </VTextField>\n )\n })\n },\n})\n\nexport type VDateInput = InstanceType<typeof VDateInput>\n"],"mappings":";AAAA;AAAA,SACSA,qBAAqB,EAAEC,YAAY;AAAA,SACnCC,oBAAoB,EAAEC,WAAW;AAAA,SACjCC,KAAK;AAAA,SACLC,mBAAmB,EAAEC,UAAU,sDAExC;AAAA,SACSC,OAAO;AAAA,SACPC,cAAc,EAAEC,QAAQ;AAAA,SACxBC,SAAS;AAAA,SACTC,eAAe,8CAExB;AACA,SAASC,QAAQ,EAAEC,UAAU,QAAQ,KAAK;AAAA,SACjCC,gBAAgB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,EAAEC,WAAW,gCAErE;AAKA,OAAO,MAAMC,mBAAmB,GAAGH,YAAY,CAAC;EAC9CI,WAAW,EAAEC,OAAO;EAEpB,GAAGb,cAAc,CAAC,CAAC;EACnB,GAAGR,qBAAqB,CAAC,CAAC;EAC1B,GAAGK,mBAAmB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AAA+D,WAAA,CAESH,eAAe;gBAAA,cACPnC,KAAK,CAACR,WAAW,GAAGmB,KAAK,CAACI,KAAK,GAAG+B,UAAU,CAAC/B,KAAK;gBAAA,uBACzCb,GAAG,IAAI;kBAC3B,IAAI,CAACF,KAAK,CAACR,WAAW,EAAE;oBACtBsD,UAAU,CAAC/B,KAAK,GAAGb,GAAG;kBACxB,CAAC,MAAM;oBACLS,KAAK,CAACI,KAAK,GAAGb,GAAG;oBAEjB,IAAI,CAACF,KAAK,CAACY,QAAQ,EAAEC,IAAI,CAACE,KAAK,GAAG,KAAK;kBACzC;gBACF,CAAC;gBAAA,eACcU,CAAa,IAAKA,CAAC,CAACK,cAAc,CAAC;cAAC;gBAGjDe,OAAO,EAAE,CAAC7C,KAAK,CAACR,WAAW,GAAG,MAAMqD,OAAO,GAAGJ;cAAS;YAI/D;UAAC;QAAA,IAKLpC,KAAK,CAACqC,OAAO,GAAG,CAAC;MAAA;IAGzB,CAAC,CAAC;EACJ;AACF,CAAC,CAAC","ignoreList":[]}
|
1
|
+
{"version":3,"file":"VDateInput.mjs","names":["makeVConfirmEditProps","VConfirmEdit","makeVDatePickerProps","VDatePicker","VMenu","makeVTextFieldProps","VTextField","useDate","makeFocusProps","useFocus","useLocale","useProxiedModel","computed","shallowRef","genericComponent","omit","propsFactory","useRender","wrapInArray","makeVDateInputProps","hideActions","Boolean","placeholder","prependIcon","weeksInMonth","hideHeader","VDateInput","name","props","emits","val","setup","_ref","slots","t","adapter","isFocused","focus","blur","model","multiple","menu","display","value","length","start","end","isValid","format","isInteractive","disabled","readonly","onKeydown","e","key","target","date","onClick","preventDefault","stopPropagation","onSave","confirmEditProps","filterProps","datePickerProps","textFieldProps","_createVNode","_mergeProps","class","style","undefined","default","$event","_ref2","actions","proxyModel"],"sources":["../../../src/labs/VDateInput/VDateInput.tsx"],"sourcesContent":["// Components\nimport { makeVConfirmEditProps, VConfirmEdit } from '@/components/VConfirmEdit/VConfirmEdit'\nimport { makeVDatePickerProps, VDatePicker } from '@/components/VDatePicker/VDatePicker'\nimport { VMenu } from '@/components/VMenu/VMenu'\nimport { makeVTextFieldProps, VTextField } from '@/components/VTextField/VTextField'\n\n// Composables\nimport { useDate } from '@/composables/date'\nimport { makeFocusProps, useFocus } from '@/composables/focus'\nimport { useLocale } from '@/composables/locale'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { computed, shallowRef } from 'vue'\nimport { genericComponent, omit, propsFactory, useRender, wrapInArray } from '@/util'\n\n// Types\nexport interface VDateInputSlots {\n default: never\n}\n\nexport const makeVDateInputProps = propsFactory({\n hideActions: Boolean,\n\n ...makeFocusProps(),\n ...makeVConfirmEditProps(),\n ...makeVTextFieldProps({\n placeholder: 'mm/dd/yyyy',\n prependIcon: '$calendar',\n }),\n ...omit(makeVDatePickerProps({\n weeksInMonth: 'dynamic' as const,\n hideHeader: true,\n }), ['active']),\n}, 'VDateInput')\n\nexport const VDateInput = genericComponent()({\n name: 'VDateInput',\n\n props: makeVDateInputProps(),\n\n emits: {\n 'update:modelValue': (val: string) => true,\n },\n\n setup (props, { slots }) {\n const { t } = useLocale()\n const adapter = useDate()\n const { isFocused, focus, blur } = useFocus(props)\n const model = useProxiedModel(props, 'modelValue', props.multiple ? [] : null)\n const menu = shallowRef(false)\n\n const display = computed(() => {\n const value = wrapInArray(model.value)\n\n if (!value.length) return null\n\n if (props.multiple === true) {\n return t('$vuetify.datePicker.itemsSelected', value.length)\n }\n\n if (props.multiple === 'range') {\n const start = value[0]\n const end = value[value.length - 1]\n\n return adapter.isValid(start) && adapter.isValid(end)\n ? `${adapter.format(start, 'keyboardDate')} - ${adapter.format(end, 'keyboardDate')}`\n : ''\n }\n\n return adapter.isValid(model.value) ? adapter.format(model.value, 'keyboardDate') : ''\n })\n\n const isInteractive = computed(() => !props.disabled && !props.readonly)\n\n function onKeydown (e: KeyboardEvent) {\n if (e.key !== 'Enter') return\n\n if (!menu.value || !isFocused.value) {\n menu.value = true\n\n return\n }\n\n const target = e.target as HTMLInputElement\n\n model.value = adapter.date(target.value)\n }\n\n function onClick (e: MouseEvent) {\n e.preventDefault()\n e.stopPropagation()\n\n menu.value = true\n }\n\n function onSave () {\n menu.value = false\n }\n\n useRender(() => {\n const confirmEditProps = VConfirmEdit.filterProps(props)\n const datePickerProps = VDatePicker.filterProps(omit(props, ['active']))\n const textFieldProps = VTextField.filterProps(props)\n\n return (\n <VTextField\n { ...textFieldProps }\n class={ props.class }\n style={ props.style }\n modelValue={ display.value }\n onKeydown={ isInteractive.value ? onKeydown : undefined }\n focused={ menu.value || isFocused.value }\n onFocus={ focus }\n onBlur={ blur }\n onClick:control={ isInteractive.value ? onClick : undefined }\n onClick:prepend={ isInteractive.value ? onClick : undefined }\n >\n <VMenu\n v-model={ menu.value }\n activator=\"parent\"\n min-width=\"0\"\n closeOnContentClick={ false }\n openOnClick={ false }\n >\n <VConfirmEdit\n { ...confirmEditProps }\n v-model={ model.value }\n onSave={ onSave }\n >\n {{\n default: ({ actions, model: proxyModel }) => {\n return (\n <VDatePicker\n { ...datePickerProps }\n modelValue={ props.hideActions ? model.value : proxyModel.value }\n onUpdate:modelValue={ val => {\n if (!props.hideActions) {\n proxyModel.value = val\n } else {\n model.value = val\n\n if (!props.multiple) menu.value = false\n }\n }}\n onMousedown={ (e: MouseEvent) => e.preventDefault() }\n >\n {{\n actions: !props.hideActions ? actions : undefined,\n }}\n </VDatePicker>\n )\n },\n }}\n </VConfirmEdit>\n </VMenu>\n\n { slots.default?.() }\n </VTextField>\n )\n })\n },\n})\n\nexport type VDateInput = InstanceType<typeof VDateInput>\n"],"mappings":";AAAA;AAAA,SACSA,qBAAqB,EAAEC,YAAY;AAAA,SACnCC,oBAAoB,EAAEC,WAAW;AAAA,SACjCC,KAAK;AAAA,SACLC,mBAAmB,EAAEC,UAAU,sDAExC;AAAA,SACSC,OAAO;AAAA,SACPC,cAAc,EAAEC,QAAQ;AAAA,SACxBC,SAAS;AAAA,SACTC,eAAe,8CAExB;A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