@vuetify/nightly 3.0.0-alpha.8 → 3.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2 -19
- package/dist/json/attributes.json +5230 -0
- package/dist/json/importMap.json +565 -0
- package/dist/json/tags.json +1871 -0
- package/dist/json/web-types.json +17917 -0
- package/dist/vuetify.css +8044 -6830
- package/dist/vuetify.d.ts +14879 -24
- package/dist/vuetify.esm.js +17091 -0
- package/dist/vuetify.esm.js.map +1 -0
- package/dist/vuetify.js +15613 -14297
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +6 -4
- package/dist/vuetify.min.js +1395 -9104
- package/dist/vuetify.min.js.map +1 -1
- package/lib/components/VAlert/VAlert.css +193 -0
- package/lib/components/VAlert/VAlert.mjs +61 -72
- package/lib/components/VAlert/VAlert.mjs.map +1 -1
- package/lib/components/VAlert/VAlert.sass +64 -88
- package/lib/components/VAlert/VAlertTitle.mjs +3 -0
- package/lib/components/VAlert/VAlertTitle.mjs.map +1 -0
- package/lib/components/VAlert/_variables.scss +23 -34
- package/lib/components/VAlert/index.mjs +2 -1
- package/lib/components/VAlert/index.mjs.map +1 -1
- package/lib/components/VApp/VApp.css +28 -0
- package/lib/components/VApp/VApp.mjs +26 -17
- package/lib/components/VApp/VApp.mjs.map +1 -1
- package/lib/components/VApp/VApp.sass +1 -4
- package/lib/components/VApp/index.mjs +1 -1
- package/lib/components/VApp/index.mjs.map +1 -1
- package/lib/components/VAppBar/VAppBar.css +10 -0
- package/lib/components/VAppBar/VAppBar.mjs +42 -101
- package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
- package/lib/components/VAppBar/VAppBar.sass +7 -93
- package/lib/components/VAppBar/VAppBarNavIcon.mjs +9 -9
- package/lib/components/VAppBar/VAppBarNavIcon.mjs.map +1 -1
- package/lib/components/VAppBar/VAppBarTitle.mjs +11 -21
- package/lib/components/VAppBar/VAppBarTitle.mjs.map +1 -1
- package/lib/components/VAppBar/_variables.scss +12 -8
- package/lib/components/VAppBar/index.mjs +3 -3
- package/lib/components/VAppBar/index.mjs.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.css +57 -0
- package/lib/components/VAutocomplete/VAutocomplete.mjs +229 -359
- package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.sass +69 -33
- package/lib/components/VAutocomplete/_variables.scss +7 -4
- package/lib/components/VAutocomplete/index.mjs +1 -3
- package/lib/components/VAutocomplete/index.mjs.map +1 -1
- package/lib/components/VAvatar/VAvatar.css +43 -0
- package/lib/components/VAvatar/VAvatar.mjs +20 -19
- package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
- package/lib/components/VAvatar/VAvatar.sass +7 -22
- package/lib/components/VAvatar/_mixins.scss +10 -4
- package/lib/components/VAvatar/_variables.scss +16 -5
- package/lib/components/VAvatar/index.mjs +1 -1
- package/lib/components/VAvatar/index.mjs.map +1 -1
- package/lib/components/VBadge/VBadge.css +74 -0
- package/lib/components/VBadge/VBadge.mjs +35 -25
- package/lib/components/VBadge/VBadge.mjs.map +1 -1
- package/lib/components/VBadge/VBadge.sass +5 -7
- package/lib/components/VBadge/_variables.scss +6 -5
- package/lib/components/VBadge/index.mjs +1 -1
- package/lib/components/VBadge/index.mjs.map +1 -1
- package/lib/components/VBanner/VBanner.css +133 -0
- package/lib/components/VBanner/VBanner.mjs +56 -49
- package/lib/components/VBanner/VBanner.mjs.map +1 -1
- package/lib/components/VBanner/VBanner.sass +18 -29
- package/lib/components/VBanner/VBannerActions.mjs +1 -1
- package/lib/components/VBanner/VBannerActions.mjs.map +1 -1
- package/lib/components/VBanner/VBannerText.mjs +1 -1
- package/lib/components/VBanner/VBannerText.mjs.map +1 -1
- package/lib/components/VBanner/_variables.scss +13 -13
- package/lib/components/VBanner/index.mjs +3 -5
- package/lib/components/VBanner/index.mjs.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.css +61 -0
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs +53 -34
- package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.sass +50 -12
- package/lib/components/VBottomNavigation/_variables.scss +25 -5
- package/lib/components/VBottomNavigation/index.mjs +1 -1
- package/lib/components/VBottomNavigation/index.mjs.map +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.mjs +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.css +48 -0
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +55 -50
- package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.sass +5 -3
- package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.mjs +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +32 -37
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/_variables.scss +7 -4
- package/lib/components/VBreadcrumbs/index.mjs +3 -3
- package/lib/components/VBreadcrumbs/index.mjs.map +1 -1
- package/lib/components/VBreadcrumbs/shared.mjs +2 -0
- package/lib/components/VBreadcrumbs/shared.mjs.map +1 -0
- package/lib/components/VBtn/VBtn.css +300 -0
- package/lib/components/VBtn/VBtn.mjs +36 -30
- package/lib/components/VBtn/VBtn.mjs.map +1 -1
- package/lib/components/VBtn/VBtn.sass +50 -89
- package/lib/components/VBtn/_mixins.scss +14 -7
- package/lib/components/VBtn/_variables.scss +25 -45
- package/lib/components/VBtn/index.mjs +1 -1
- package/lib/components/VBtn/index.mjs.map +1 -1
- package/lib/components/VBtnGroup/VBtnGroup.css +49 -0
- package/lib/components/VBtnGroup/VBtnGroup.mjs +67 -0
- package/lib/components/VBtnGroup/VBtnGroup.mjs.map +1 -0
- package/lib/components/VBtnGroup/VBtnGroup.sass +44 -0
- package/lib/components/VBtnGroup/_variables.scss +25 -0
- package/lib/components/VBtnGroup/index.mjs +2 -0
- package/lib/components/VBtnGroup/index.mjs.map +1 -0
- package/lib/components/VBtnToggle/VBtnToggle.css +3 -0
- package/lib/components/VBtnToggle/VBtnToggle.mjs +45 -39
- package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
- package/lib/components/VBtnToggle/VBtnToggle.sass +5 -95
- package/lib/components/VBtnToggle/_variables.scss +3 -10
- package/lib/components/VBtnToggle/index.mjs +1 -3
- package/lib/components/VBtnToggle/index.mjs.map +1 -1
- package/lib/components/VCalendar/VCalendar.mjs +8 -4
- package/lib/components/VCalendar/VCalendar.mjs.map +1 -1
- package/lib/components/VCalendar/VCalendarCategory.mjs +1 -1
- package/lib/components/VCalendar/VCalendarCategory.mjs.map +1 -1
- package/lib/components/VCalendar/VCalendarCategory.sass +67 -0
- package/lib/components/VCalendar/VCalendarDaily.mjs +1 -1
- package/lib/components/VCalendar/VCalendarDaily.mjs.map +1 -1
- package/lib/components/VCalendar/VCalendarMonthly.mjs +1 -1
- package/lib/components/VCalendar/VCalendarMonthly.mjs.map +1 -1
- package/lib/components/VCalendar/VCalendarWeekly.mjs +1 -1
- package/lib/components/VCalendar/VCalendarWeekly.mjs.map +1 -1
- package/lib/components/VCalendar/_variables.scss +4 -0
- package/lib/components/VCalendar/mixins/calendar-base.mjs +5 -4
- package/lib/components/VCalendar/mixins/calendar-base.mjs.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-events.mjs +18 -12
- package/lib/components/VCalendar/mixins/calendar-with-events.mjs.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-events.sass +7 -1
- package/lib/components/VCalendar/mixins/calendar-with-intervals.mjs +2 -1
- package/lib/components/VCalendar/mixins/calendar-with-intervals.mjs.map +1 -1
- package/lib/components/VCalendar/mixins/mouse.mjs +19 -0
- package/lib/components/VCalendar/mixins/mouse.mjs.map +1 -1
- package/lib/components/VCalendar/modes/common.mjs +7 -3
- package/lib/components/VCalendar/modes/common.mjs.map +1 -1
- package/lib/components/VCalendar/modes/stack.mjs +2 -1
- package/lib/components/VCalendar/modes/stack.mjs.map +1 -1
- package/lib/components/VCalendar/util/events.mjs +3 -1
- package/lib/components/VCalendar/util/events.mjs.map +1 -1
- package/lib/components/VCalendar/util/timestamp.mjs +19 -7
- package/lib/components/VCalendar/util/timestamp.mjs.map +1 -1
- package/lib/components/VCard/VCard.css +268 -0
- package/lib/components/VCard/VCard.mjs +73 -58
- package/lib/components/VCard/VCard.mjs.map +1 -1
- package/lib/components/VCard/VCard.sass +25 -42
- package/lib/components/VCard/VCardActions.mjs +29 -2
- package/lib/components/VCard/VCardActions.mjs.map +1 -1
- package/lib/components/VCard/VCardAvatar.mjs +1 -1
- package/lib/components/VCard/VCardAvatar.mjs.map +1 -1
- package/lib/components/VCard/VCardHeader.mjs +1 -1
- package/lib/components/VCard/VCardHeader.mjs.map +1 -1
- package/lib/components/VCard/VCardHeaderText.mjs +1 -1
- package/lib/components/VCard/VCardHeaderText.mjs.map +1 -1
- package/lib/components/VCard/VCardImg.mjs +1 -1
- package/lib/components/VCard/VCardImg.mjs.map +1 -1
- package/lib/components/VCard/VCardSubtitle.mjs +1 -1
- package/lib/components/VCard/VCardSubtitle.mjs.map +1 -1
- package/lib/components/VCard/VCardText.mjs +1 -1
- package/lib/components/VCard/VCardText.mjs.map +1 -1
- package/lib/components/VCard/VCardTitle.mjs +1 -1
- package/lib/components/VCard/VCardTitle.mjs.map +1 -1
- package/lib/components/VCard/_variables.scss +25 -25
- package/lib/components/VCard/index.mjs +9 -11
- package/lib/components/VCard/index.mjs.map +1 -1
- package/lib/components/VCarousel/VCarousel.css +63 -0
- package/lib/components/VCarousel/VCarousel.mjs +100 -179
- package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
- package/lib/components/VCarousel/VCarousel.sass +7 -2
- package/lib/components/VCarousel/VCarouselItem.mjs +23 -58
- package/lib/components/VCarousel/VCarouselItem.mjs.map +1 -1
- package/lib/components/VCarousel/_variables.scss +1 -3
- package/lib/components/VCarousel/index.mjs +2 -9
- package/lib/components/VCarousel/index.mjs.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.css +3 -0
- package/lib/components/VCheckbox/VCheckbox.mjs +56 -83
- package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.sass +8 -8
- package/lib/components/VCheckbox/_variables.scss +2 -4
- package/lib/components/VCheckbox/index.mjs +1 -9
- package/lib/components/VCheckbox/index.mjs.map +1 -1
- package/lib/components/VChip/VChip.css +273 -0
- package/lib/components/VChip/VChip.mjs +55 -34
- package/lib/components/VChip/VChip.mjs.map +1 -1
- package/lib/components/VChip/VChip.sass +24 -21
- package/lib/components/VChip/_mixins.scss +24 -15
- package/lib/components/VChip/_variables.scss +17 -21
- package/lib/components/VChip/index.mjs +1 -1
- package/lib/components/VChip/index.mjs.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.css +18 -0
- package/lib/components/VChipGroup/VChipGroup.mjs +66 -38
- package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.sass +11 -17
- package/lib/components/VChipGroup/_variables.scss +3 -5
- package/lib/components/VChipGroup/index.mjs +1 -3
- package/lib/components/VChipGroup/index.mjs.map +1 -1
- package/lib/components/VCode/VCode.css +7 -0
- package/lib/components/VCode/VCode.sass +2 -2
- package/lib/components/VCode/index.mjs +1 -1
- package/lib/components/VColorPicker/VColorPicker.css +21 -0
- package/lib/components/VColorPicker/VColorPicker.mjs +103 -133
- package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPicker.sass +10 -17
- package/lib/components/VColorPicker/VColorPickerCanvas.css +21 -0
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs +139 -121
- package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.sass +5 -3
- package/lib/components/VColorPicker/VColorPickerEdit.css +31 -0
- package/lib/components/VColorPicker/VColorPickerEdit.mjs +74 -134
- package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.sass +9 -6
- package/lib/components/VColorPicker/VColorPickerPreview.css +67 -0
- package/lib/components/VColorPicker/VColorPickerPreview.mjs +65 -83
- package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.sass +42 -39
- package/lib/components/VColorPicker/VColorPickerSwatches.css +35 -0
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs +34 -54
- package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.sass +6 -4
- package/lib/components/VColorPicker/_variables.scss +5 -9
- package/lib/components/VColorPicker/index.mjs +1 -5
- package/lib/components/VColorPicker/index.mjs.map +1 -1
- package/lib/components/VColorPicker/util/index.mjs +141 -97
- package/lib/components/VColorPicker/util/index.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.css +66 -0
- package/lib/components/VCombobox/VCombobox.mjs +319 -204
- package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
- package/lib/components/VCombobox/VCombobox.sass +91 -0
- package/lib/components/VCombobox/_variables.scss +8 -0
- package/lib/components/VCombobox/index.mjs +1 -3
- package/lib/components/VCombobox/index.mjs.map +1 -1
- package/lib/components/VCounter/VCounter.css +6 -0
- package/lib/components/VCounter/VCounter.mjs +36 -27
- package/lib/components/VCounter/VCounter.mjs.map +1 -1
- package/lib/components/VCounter/VCounter.sass +5 -7
- package/lib/components/VCounter/_variables.scss +3 -2
- package/lib/components/VCounter/index.mjs +1 -3
- package/lib/components/VCounter/index.mjs.map +1 -1
- package/lib/components/VDataIterator/VDataFooter.mjs +1 -1
- package/lib/components/VDataIterator/VDataFooter.mjs.map +1 -1
- package/lib/components/VDataIterator/VDataIterator.mjs +19 -7
- package/lib/components/VDataIterator/VDataIterator.mjs.map +1 -1
- package/lib/components/VDataTable/MobileRow.mjs +6 -5
- package/lib/components/VDataTable/MobileRow.mjs.map +1 -1
- package/lib/components/VDataTable/Row.mjs +19 -11
- package/lib/components/VDataTable/Row.mjs.map +1 -1
- package/lib/components/VDataTable/RowGroup.mjs +5 -4
- package/lib/components/VDataTable/RowGroup.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTable.mjs +10 -5
- package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTable.sass +5 -0
- package/lib/components/VDataTable/VDataTableHeader.mjs +7 -6
- package/lib/components/VDataTable/VDataTableHeader.mjs.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderMobile.mjs +2 -2
- package/lib/components/VDataTable/VDataTableHeaderMobile.mjs.map +1 -1
- package/lib/components/VDataTable/VEditDialog.mjs +7 -6
- package/lib/components/VDataTable/VEditDialog.mjs.map +1 -1
- package/lib/components/VDataTable/VVirtualTable.mjs +1 -1
- package/lib/components/VDataTable/VVirtualTable.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.mjs +2 -2
- package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.mjs +4 -4
- package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerTitle.mjs +2 -2
- package/lib/components/VDatePicker/VDatePickerTitle.mjs.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.mjs +3 -3
- package/lib/components/VDatePicker/VDatePickerYears.mjs.map +1 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.mjs +6 -5
- package/lib/components/VDatePicker/mixins/date-picker-table.mjs.map +1 -1
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs +6 -4
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs.map +1 -1
- package/lib/components/VDatePicker/util/pad.mjs +4 -1
- package/lib/components/VDatePicker/util/pad.mjs.map +1 -1
- package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs +26 -8
- package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs.map +1 -1
- package/lib/components/VDefaultsProvider/index.mjs +1 -1
- package/lib/components/VDefaultsProvider/index.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.css +57 -0
- package/lib/components/VDialog/VDialog.mjs +46 -47
- package/lib/components/VDialog/VDialog.mjs.map +1 -1
- package/lib/components/VDialog/VDialog.sass +20 -2
- package/lib/components/VDialog/_variables.scss +9 -4
- package/lib/components/VDialog/index.mjs +1 -2
- package/lib/components/VDialog/index.mjs.map +1 -1
- package/lib/components/VDivider/VDivider.css +30 -0
- package/lib/components/VDivider/VDivider.mjs +21 -14
- package/lib/components/VDivider/VDivider.mjs.map +1 -1
- package/lib/components/VDivider/VDivider.sass +5 -9
- package/lib/components/VDivider/_variables.scss +4 -2
- package/lib/components/VDivider/index.mjs +1 -1
- package/lib/components/VDivider/index.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.css +189 -0
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs +83 -81
- package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.sass +91 -129
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +42 -0
- package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -0
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +77 -0
- package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -0
- package/lib/components/VExpansionPanel/VExpansionPanels.mjs +42 -60
- package/lib/components/VExpansionPanel/VExpansionPanels.mjs.map +1 -1
- package/lib/components/VExpansionPanel/_variables.scss +13 -7
- package/lib/components/VExpansionPanel/index.mjs +4 -13
- package/lib/components/VExpansionPanel/index.mjs.map +1 -1
- package/lib/components/VField/VField.css +410 -0
- package/lib/components/VField/VField.mjs +249 -0
- package/lib/components/VField/VField.mjs.map +1 -0
- package/lib/components/VField/VField.sass +392 -0
- package/lib/components/VField/VFieldLabel.mjs +27 -0
- package/lib/components/VField/VFieldLabel.mjs.map +1 -0
- package/lib/components/VField/_variables.scss +44 -0
- package/lib/components/VField/index.mjs +3 -0
- package/lib/components/VField/index.mjs.map +1 -0
- package/lib/components/VFileInput/VFileInput.css +8 -0
- package/lib/components/VFileInput/VFileInput.mjs +180 -224
- package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
- package/lib/components/VFileInput/VFileInput.sass +3 -51
- package/lib/components/VFileInput/_variables.scss +2 -6
- package/lib/components/VFileInput/index.mjs +1 -3
- package/lib/components/VFileInput/index.mjs.map +1 -1
- package/lib/components/VFooter/VFooter.css +20 -0
- package/lib/components/VFooter/VFooter.mjs +25 -18
- package/lib/components/VFooter/VFooter.mjs.map +1 -1
- package/lib/components/VFooter/VFooter.sass +10 -8
- package/lib/components/VFooter/_variables.scss +7 -4
- package/lib/components/VFooter/index.mjs +1 -1
- package/lib/components/VFooter/index.mjs.map +1 -1
- package/lib/components/VForm/VForm.mjs +46 -127
- package/lib/components/VForm/VForm.mjs.map +1 -1
- package/lib/components/VForm/index.mjs +1 -3
- package/lib/components/VForm/index.mjs.map +1 -1
- package/lib/components/VGrid/VCol.mjs +10 -9
- package/lib/components/VGrid/VCol.mjs.map +1 -1
- package/lib/components/VGrid/VContainer.mjs +10 -10
- package/lib/components/VGrid/VContainer.mjs.map +1 -1
- package/lib/components/VGrid/VGrid.css +1002 -0
- package/lib/components/VGrid/VGrid.sass +9 -8
- package/lib/components/VGrid/VRow.mjs +10 -9
- package/lib/components/VGrid/VRow.mjs.map +1 -1
- package/lib/components/VGrid/VSpacer.mjs +1 -1
- package/lib/components/VGrid/VSpacer.mjs.map +1 -1
- package/lib/components/VGrid/_mixins.sass +26 -21
- package/lib/components/VGrid/index.mjs +4 -4
- package/lib/components/VGrid/index.mjs.map +1 -1
- package/lib/components/VHover/VHover.mjs +31 -61
- package/lib/components/VHover/VHover.mjs.map +1 -1
- package/lib/components/VHover/index.mjs +1 -3
- package/lib/components/VHover/index.mjs.map +1 -1
- package/lib/components/VIcon/VIcon.css +50 -0
- package/lib/components/VIcon/VIcon.mjs +20 -14
- package/lib/components/VIcon/VIcon.mjs.map +1 -1
- package/lib/components/VIcon/VIcon.sass +16 -42
- package/lib/components/VIcon/_variables.scss +14 -14
- package/lib/components/VIcon/index.mjs +1 -1
- package/lib/components/VIcon/index.mjs.map +1 -1
- package/lib/components/VImg/VImg.css +34 -0
- package/lib/components/VImg/VImg.mjs +62 -31
- package/lib/components/VImg/VImg.mjs.map +1 -1
- package/lib/components/VImg/VImg.sass +11 -16
- package/lib/components/VImg/index.mjs +1 -1
- package/lib/components/VImg/index.mjs.map +1 -1
- package/lib/components/VInput/VInput.css +110 -0
- package/lib/components/VInput/VInput.mjs +103 -280
- package/lib/components/VInput/VInput.mjs.map +1 -1
- package/lib/components/VInput/VInput.sass +77 -127
- package/lib/components/VInput/_variables.scss +17 -13
- package/lib/components/VInput/index.mjs +1 -3
- package/lib/components/VInput/index.mjs.map +1 -1
- package/lib/components/VItemGroup/VItem.mjs +8 -7
- package/lib/components/VItemGroup/VItem.mjs.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.css +6 -0
- package/lib/components/VItemGroup/VItemGroup.mjs +12 -12
- package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.sass +2 -2
- package/lib/components/VItemGroup/_variables.scss +3 -1
- package/lib/components/VItemGroup/index.mjs +2 -2
- package/lib/components/VItemGroup/index.mjs.map +1 -1
- package/lib/components/VKbd/VKbd.css +9 -0
- package/lib/components/VKbd/VKbd.sass +4 -3
- package/lib/components/VKbd/index.mjs +1 -1
- package/lib/components/VLabel/VLabel.css +12 -0
- package/lib/components/VLabel/VLabel.mjs +18 -56
- package/lib/components/VLabel/VLabel.mjs.map +1 -1
- package/lib/components/VLabel/VLabel.sass +13 -11
- package/lib/components/VLabel/_variables.scss +7 -4
- package/lib/components/VLabel/index.mjs +1 -3
- package/lib/components/VLabel/index.mjs.map +1 -1
- package/lib/components/VLayout/VLayout.css +11 -0
- package/lib/components/VLayout/VLayout.mjs +15 -11
- package/lib/components/VLayout/VLayout.mjs.map +1 -1
- package/lib/components/VLayout/VLayout.sass +1 -4
- package/lib/components/VLayout/VLayoutItem.css +8 -0
- package/lib/components/VLayout/VLayoutItem.mjs +24 -15
- package/lib/components/VLayout/VLayoutItem.mjs.map +1 -1
- package/lib/components/VLayout/VLayoutItem.sass +3 -3
- package/lib/components/VLayout/index.mjs +2 -2
- package/lib/components/VLayout/index.mjs.map +1 -1
- package/lib/components/VLazy/VLazy.mjs +10 -10
- package/lib/components/VLazy/VLazy.mjs.map +1 -1
- package/lib/components/VLazy/index.mjs +1 -1
- package/lib/components/VLazy/index.mjs.map +1 -1
- package/lib/components/VList/VList.css +106 -0
- package/lib/components/VList/VList.mjs +80 -31
- package/lib/components/VList/VList.mjs.map +1 -1
- package/lib/components/VList/VList.sass +17 -16
- package/lib/components/VList/VListChildren.mjs +53 -0
- package/lib/components/VList/VListChildren.mjs.map +1 -0
- package/lib/components/VList/VListGroup.mjs +84 -0
- package/lib/components/VList/VListGroup.mjs.map +1 -0
- package/lib/components/VList/VListImg.mjs +1 -1
- package/lib/components/VList/VListImg.mjs.map +1 -1
- package/lib/components/VList/VListItem.css +273 -0
- package/lib/components/VList/VListItem.mjs +98 -41
- package/lib/components/VList/VListItem.mjs.map +1 -1
- package/lib/components/VList/VListItem.sass +46 -17
- package/lib/components/VList/VListItemAvatar.mjs +9 -9
- package/lib/components/VList/VListItemAvatar.mjs.map +1 -1
- package/lib/components/VList/VListItemHeader.mjs +1 -1
- package/lib/components/VList/VListItemHeader.mjs.map +1 -1
- package/lib/components/VList/VListItemMedia.mjs +9 -9
- package/lib/components/VList/VListItemMedia.mjs.map +1 -1
- package/lib/components/VList/VListItemSubtitle.mjs +1 -1
- package/lib/components/VList/VListItemSubtitle.mjs.map +1 -1
- package/lib/components/VList/VListItemTitle.mjs +1 -1
- package/lib/components/VList/VListItemTitle.mjs.map +1 -1
- package/lib/components/VList/VListSubheader.mjs +29 -20
- package/lib/components/VList/VListSubheader.mjs.map +1 -1
- package/lib/components/VList/_variables.scss +25 -19
- package/lib/components/VList/index.mjs +10 -9
- package/lib/components/VList/index.mjs.map +1 -1
- package/lib/components/VList/list.mjs +31 -0
- package/lib/components/VList/list.mjs.map +1 -0
- package/lib/components/VLocaleProvider/VLocaleProvider.css +3 -0
- package/lib/components/VLocaleProvider/VLocaleProvider.mjs +10 -10
- package/lib/components/VLocaleProvider/VLocaleProvider.mjs.map +1 -1
- package/lib/components/VLocaleProvider/index.mjs +1 -1
- package/lib/components/VLocaleProvider/index.mjs.map +1 -1
- package/lib/components/VMain/VMain.css +18 -0
- package/lib/components/VMain/VMain.mjs +12 -12
- package/lib/components/VMain/VMain.mjs.map +1 -1
- package/lib/components/VMain/VMain.sass +2 -1
- package/lib/components/VMain/_variables.scss +3 -1
- package/lib/components/VMain/index.mjs +1 -1
- package/lib/components/VMain/index.mjs.map +1 -1
- package/lib/components/VMenu/VMenu.css +24 -0
- package/lib/components/VMenu/VMenu.mjs +53 -451
- package/lib/components/VMenu/VMenu.mjs.map +1 -1
- package/lib/components/VMenu/VMenu.sass +20 -71
- package/lib/components/VMenu/_variables.scss +3 -2
- package/lib/components/VMenu/index.mjs +1 -3
- package/lib/components/VMenu/index.mjs.map +1 -1
- package/lib/components/VMessages/VMessages.css +16 -0
- package/lib/components/VMessages/VMessages.mjs +42 -41
- package/lib/components/VMessages/VMessages.mjs.map +1 -1
- package/lib/components/VMessages/VMessages.sass +5 -10
- package/lib/components/VMessages/_variables.scss +3 -2
- package/lib/components/VMessages/index.mjs +1 -3
- package/lib/components/VMessages/index.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.css +93 -0
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +95 -30
- package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +36 -21
- package/lib/components/VNavigationDrawer/_variables.scss +9 -6
- package/lib/components/VNavigationDrawer/index.mjs +1 -1
- package/lib/components/VNavigationDrawer/index.mjs.map +1 -1
- package/lib/components/VNavigationDrawer/touch.mjs +139 -0
- package/lib/components/VNavigationDrawer/touch.mjs.map +1 -0
- package/lib/components/VNoSsr/VNoSsr.mjs +23 -0
- package/lib/components/VNoSsr/VNoSsr.mjs.map +1 -0
- package/lib/components/VNoSsr/index.mjs +2 -0
- package/lib/components/VNoSsr/index.mjs.map +1 -0
- package/lib/components/VOtpInput/VOtpInput.mjs +345 -0
- package/lib/components/VOtpInput/VOtpInput.mjs.map +1 -0
- package/lib/components/VOtpInput/VOtpInput.sass +37 -0
- package/lib/components/VOtpInput/_variables.scss +4 -0
- package/lib/components/VOtpInput/index.mjs +4 -0
- package/lib/components/VOtpInput/index.mjs.map +1 -0
- package/lib/components/VOverflowBtn/VOverflowBtn.mjs +1 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.css +55 -0
- package/lib/components/VOverlay/VOverlay.mjs +120 -193
- package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
- package/lib/components/VOverlay/VOverlay.sass +21 -22
- package/lib/components/VOverlay/_variables.scss +0 -2
- package/lib/components/VOverlay/index.mjs +1 -2
- package/lib/components/VOverlay/index.mjs.map +1 -1
- package/lib/components/VOverlay/positionStrategies.mjs +203 -0
- package/lib/components/VOverlay/positionStrategies.mjs.map +1 -0
- package/lib/components/VOverlay/requestNewFrame.mjs +28 -0
- package/lib/components/VOverlay/requestNewFrame.mjs.map +1 -0
- package/lib/components/VOverlay/scrollStrategies.mjs +128 -0
- package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -0
- package/lib/components/VOverlay/useActivator.mjs +205 -0
- package/lib/components/VOverlay/useActivator.mjs.map +1 -0
- package/lib/components/VOverlay/util/anchor.mjs +52 -0
- package/lib/components/VOverlay/util/anchor.mjs.map +1 -0
- package/lib/components/VOverlay/util/point.mjs +56 -0
- package/lib/components/VOverlay/util/point.mjs.map +1 -0
- package/lib/components/VPagination/VPagination.css +9 -0
- package/lib/components/VPagination/VPagination.mjs +48 -51
- package/lib/components/VPagination/VPagination.mjs.map +1 -1
- package/lib/components/VPagination/VPagination.sass +14 -8
- package/lib/components/VPagination/index.mjs +1 -1
- package/lib/components/VPagination/index.mjs.map +1 -1
- package/lib/components/VParallax/VParallax.css +7 -0
- package/lib/components/VParallax/VParallax.mjs +71 -77
- package/lib/components/VParallax/VParallax.mjs.map +1 -1
- package/lib/components/VParallax/VParallax.sass +1 -32
- package/lib/components/VParallax/index.mjs +1 -3
- package/lib/components/VParallax/index.mjs.map +1 -1
- package/lib/components/VPicker/VPicker.mjs +5 -5
- package/lib/components/VPicker/VPicker.mjs.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.css +101 -0
- package/lib/components/VProgressCircular/VProgressCircular.mjs +30 -20
- package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.sass +6 -4
- package/lib/components/VProgressCircular/_variables.scss +1 -1
- package/lib/components/VProgressCircular/index.mjs +1 -1
- package/lib/components/VProgressCircular/index.mjs.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.css +212 -0
- package/lib/components/VProgressLinear/VProgressLinear.mjs +138 -226
- package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.sass +83 -157
- package/lib/components/VProgressLinear/_variables.scss +11 -3
- package/lib/components/VProgressLinear/index.mjs +1 -3
- package/lib/components/VProgressLinear/index.mjs.map +1 -1
- package/lib/components/VRadio/VRadio.mjs +34 -0
- package/lib/components/VRadio/VRadio.mjs.map +1 -0
- package/lib/components/VRadio/index.mjs +2 -0
- package/lib/components/VRadio/index.mjs.map +1 -0
- package/lib/components/VRadioGroup/VRadioGroup.css +10 -0
- package/lib/components/VRadioGroup/VRadioGroup.mjs +66 -69
- package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.sass +7 -37
- package/lib/components/VRadioGroup/_variables.scss +3 -3
- package/lib/components/VRadioGroup/index.mjs +1 -9
- package/lib/components/VRadioGroup/index.mjs.map +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.mjs +192 -207
- package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
- package/lib/components/VRangeSlider/index.mjs +1 -3
- package/lib/components/VRangeSlider/index.mjs.map +1 -1
- package/lib/components/VRating/VRating.css +58 -0
- package/lib/components/VRating/VRating.mjs +34 -28
- package/lib/components/VRating/VRating.mjs.map +1 -1
- package/lib/components/VRating/VRating.sass +5 -3
- package/lib/components/VRating/_variables.scss +3 -1
- package/lib/components/VRating/index.mjs +1 -1
- package/lib/components/VRating/index.mjs.map +1 -1
- package/lib/components/VResponsive/VResponsive.css +23 -0
- package/lib/components/VResponsive/VResponsive.mjs +12 -11
- package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
- package/lib/components/VResponsive/VResponsive.sass +4 -7
- package/lib/components/VResponsive/index.mjs +1 -1
- package/lib/components/VResponsive/index.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.css +34 -0
- package/lib/components/VSelect/VSelect.mjs +186 -777
- package/lib/components/VSelect/VSelect.mjs.map +1 -1
- package/lib/components/VSelect/VSelect.sass +44 -153
- package/lib/components/VSelect/_variables.scss +7 -21
- package/lib/components/VSelect/index.mjs +1 -3
- package/lib/components/VSelect/index.mjs.map +1 -1
- package/lib/components/VSelectionControl/VSelectionControl.css +97 -0
- package/lib/components/VSelectionControl/VSelectionControl.mjs +209 -0
- package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -0
- package/lib/components/VSelectionControl/VSelectionControl.sass +96 -0
- package/lib/components/VSelectionControl/_variables.scss +9 -0
- package/lib/components/VSelectionControl/index.mjs +2 -0
- package/lib/components/VSelectionControl/index.mjs.map +1 -0
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.css +3 -0
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +64 -0
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -0
- package/lib/components/VSelectionControlGroup/VSelectionControlGroup.sass +9 -0
- package/lib/components/VSelectionControlGroup/_variables.scss +4 -0
- package/lib/components/VSelectionControlGroup/index.mjs +2 -0
- package/lib/components/VSelectionControlGroup/index.mjs.map +1 -0
- package/lib/components/VSheet/VSheet.css +23 -0
- package/lib/components/VSheet/VSheet.mjs +17 -19
- package/lib/components/VSheet/VSheet.mjs.map +1 -1
- package/lib/components/VSheet/VSheet.sass +11 -16
- package/lib/components/VSheet/_variables.scss +6 -7
- package/lib/components/VSheet/index.mjs +1 -1
- package/lib/components/VSheet/index.mjs.map +1 -1
- package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +7 -7
- package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.css +47 -0
- package/lib/components/VSlideGroup/VSlideGroup.mjs +276 -358
- package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.sass +21 -21
- package/lib/components/VSlideGroup/VSlideGroupItem.mjs +27 -0
- package/lib/components/VSlideGroup/VSlideGroupItem.mjs.map +1 -0
- package/lib/components/VSlideGroup/_variables.scss +4 -1
- package/lib/components/VSlideGroup/helpers.mjs +54 -0
- package/lib/components/VSlideGroup/helpers.mjs.map +1 -0
- package/lib/components/VSlideGroup/index.mjs +2 -9
- package/lib/components/VSlideGroup/index.mjs.map +1 -1
- package/lib/components/VSlider/VSlider.css +48 -0
- package/lib/components/VSlider/VSlider.mjs +113 -538
- package/lib/components/VSlider/VSlider.mjs.map +1 -1
- package/lib/components/VSlider/VSlider.sass +29 -271
- package/lib/components/VSlider/VSliderThumb.css +142 -0
- package/lib/components/VSlider/VSliderThumb.mjs +165 -0
- package/lib/components/VSlider/VSliderThumb.mjs.map +1 -0
- package/lib/components/VSlider/VSliderThumb.sass +147 -0
- package/lib/components/VSlider/VSliderTrack.css +150 -0
- package/lib/components/VSlider/VSliderTrack.mjs +121 -0
- package/lib/components/VSlider/VSliderTrack.mjs.map +1 -0
- package/lib/components/VSlider/VSliderTrack.sass +159 -0
- package/lib/components/VSlider/_variables.scss +19 -13
- package/lib/components/VSlider/index.mjs +1 -3
- package/lib/components/VSlider/index.mjs.map +1 -1
- package/lib/components/VSlider/slider.mjs +300 -0
- package/lib/components/VSlider/slider.mjs.map +1 -0
- package/lib/components/VSnackbar/VSnackbar.css +136 -0
- package/lib/components/VSnackbar/VSnackbar.mjs +89 -168
- package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.sass +34 -69
- package/lib/components/VSnackbar/_variables.scss +20 -21
- package/lib/components/VSnackbar/index.mjs +1 -3
- package/lib/components/VSnackbar/index.mjs.map +1 -1
- package/lib/components/VSparkline/VSparkline.mjs +1 -1
- package/lib/components/VSparkline/VSparkline.mjs.map +1 -1
- package/lib/components/VSparkline/helpers/path.mjs +3 -1
- package/lib/components/VSparkline/helpers/path.mjs.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.mjs +2 -2
- package/lib/components/VSpeedDial/VSpeedDial.mjs.map +1 -1
- package/lib/components/VStepper/VStepper.mjs +2 -2
- package/lib/components/VStepper/VStepper.mjs.map +1 -1
- package/lib/components/VStepper/VStepper.sass +5 -1
- package/lib/components/VStepper/VStepperStep.mjs +1 -1
- package/lib/components/VStepper/_variables.scss +2 -1
- package/lib/components/VSwitch/VSwitch.css +69 -0
- package/lib/components/VSwitch/VSwitch.mjs +100 -111
- package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
- package/lib/components/VSwitch/VSwitch.sass +71 -129
- package/lib/components/VSwitch/_variables.scss +10 -23
- package/lib/components/VSwitch/index.mjs +1 -3
- package/lib/components/VSwitch/index.mjs.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.css +40 -0
- package/lib/components/VSystemBar/VSystemBar.mjs +23 -24
- package/lib/components/VSystemBar/VSystemBar.mjs.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.sass +16 -23
- package/lib/components/VSystemBar/_variables.scss +30 -17
- package/lib/components/VSystemBar/index.mjs +1 -1
- package/lib/components/VSystemBar/index.mjs.map +1 -1
- package/lib/components/VTable/VTable.css +143 -0
- package/lib/components/VTable/VTable.mjs +54 -0
- package/lib/components/VTable/VTable.mjs.map +1 -0
- package/lib/components/VTable/VTable.sass +156 -0
- package/lib/components/VTable/_mixins.scss +25 -0
- package/lib/components/VTable/_variables.scss +21 -0
- package/lib/components/VTable/index.mjs +2 -0
- package/lib/components/VTable/index.mjs.map +1 -0
- package/lib/components/VTabs/VTab.css +29 -0
- package/lib/components/VTabs/VTab.mjs +114 -70
- package/lib/components/VTabs/VTab.mjs.map +1 -1
- package/lib/components/VTabs/VTab.sass +30 -0
- package/lib/components/VTabs/VTabs.css +67 -0
- package/lib/components/VTabs/VTabs.mjs +82 -278
- package/lib/components/VTabs/VTabs.mjs.map +1 -1
- package/lib/components/VTabs/VTabs.sass +37 -207
- package/lib/components/VTabs/_variables.scss +10 -18
- package/lib/components/VTabs/index.mjs +2 -15
- package/lib/components/VTabs/index.mjs.map +1 -1
- package/lib/components/VTextField/VTextField.css +70 -0
- package/lib/components/VTextField/VTextField.mjs +166 -484
- package/lib/components/VTextField/VTextField.mjs.map +1 -1
- package/lib/components/VTextField/VTextField.sass +56 -493
- package/lib/components/VTextField/_variables.scss +10 -50
- package/lib/components/VTextField/index.mjs +1 -3
- package/lib/components/VTextField/index.mjs.map +1 -1
- package/lib/components/VTextarea/VTextarea.css +34 -0
- package/lib/components/VTextarea/VTextarea.mjs +210 -74
- package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
- package/lib/components/VTextarea/VTextarea.sass +32 -76
- package/lib/components/VTextarea/_variables.scss +2 -4
- package/lib/components/VTextarea/index.mjs +1 -3
- package/lib/components/VTextarea/index.mjs.map +1 -1
- package/lib/components/VThemeProvider/VThemeProvider.css +4 -0
- package/lib/components/VThemeProvider/VThemeProvider.mjs +12 -12
- package/lib/components/VThemeProvider/VThemeProvider.mjs.map +1 -1
- package/lib/components/VThemeProvider/index.mjs +1 -1
- package/lib/components/VThemeProvider/index.mjs.map +1 -1
- package/lib/components/VTimePicker/VTimePicker.mjs +2 -2
- package/lib/components/VTimePicker/VTimePicker.mjs.map +1 -1
- package/lib/components/VTimePicker/VTimePickerClock.mjs +3 -3
- package/lib/components/VTimePicker/VTimePickerClock.mjs.map +1 -1
- package/lib/components/VTimePicker/VTimePickerTitle.mjs +2 -2
- package/lib/components/VTimePicker/VTimePickerTitle.mjs.map +1 -1
- package/lib/components/VTimeline/VTimeline.css +260 -0
- package/lib/components/VTimeline/VTimeline.mjs +18 -18
- package/lib/components/VTimeline/VTimeline.mjs.map +1 -1
- package/lib/components/VTimeline/VTimeline.sass +11 -7
- package/lib/components/VTimeline/VTimelineDivider.mjs +9 -8
- package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
- package/lib/components/VTimeline/VTimelineItem.mjs +14 -15
- package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
- package/lib/components/VTimeline/_mixins.sass +8 -5
- package/lib/components/VTimeline/_variables.scss +3 -1
- package/lib/components/VTimeline/index.mjs +2 -2
- package/lib/components/VTimeline/index.mjs.map +1 -1
- package/lib/components/VTimeline/shared.mjs +2 -0
- package/lib/components/VTimeline/shared.mjs.map +1 -0
- package/lib/components/VToolbar/VToolbar.css +138 -0
- package/lib/components/VToolbar/VToolbar.mjs +138 -141
- package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
- package/lib/components/VToolbar/VToolbar.sass +74 -123
- package/lib/components/VToolbar/VToolbarItems.mjs +33 -0
- package/lib/components/VToolbar/VToolbarItems.mjs.map +1 -0
- package/lib/components/VToolbar/VToolbarTitle.mjs +34 -0
- package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -0
- package/lib/components/VToolbar/_variables.scss +53 -15
- package/lib/components/VToolbar/index.mjs +3 -14
- package/lib/components/VToolbar/index.mjs.map +1 -1
- package/lib/components/VTooltip/VTooltip.css +22 -0
- package/lib/components/VTooltip/VTooltip.mjs +73 -198
- package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
- package/lib/components/VTooltip/VTooltip.sass +8 -15
- package/lib/components/VTooltip/_variables.scss +6 -6
- package/lib/components/VTooltip/index.mjs +1 -3
- package/lib/components/VTooltip/index.mjs.map +1 -1
- package/lib/components/VTreeview/VTreeview.mjs +18 -9
- package/lib/components/VTreeview/VTreeview.mjs.map +1 -1
- package/lib/components/VTreeview/VTreeviewNode.mjs +4 -2
- package/lib/components/VTreeview/VTreeviewNode.mjs.map +1 -1
- package/lib/components/VTreeview/_mixins.sass +3 -3
- package/lib/components/VValidation/VValidation.mjs +26 -0
- package/lib/components/VValidation/VValidation.mjs.map +1 -0
- package/lib/components/VValidation/index.mjs +2 -0
- package/lib/components/VValidation/index.mjs.map +1 -0
- package/lib/components/VVirtualScroll/VVirtualScroll.mjs +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
- package/lib/components/VWindow/VWindow.css +70 -0
- package/lib/components/VWindow/VWindow.mjs +166 -233
- package/lib/components/VWindow/VWindow.mjs.map +1 -1
- package/lib/components/VWindow/VWindow.sass +26 -50
- package/lib/components/VWindow/VWindowItem.mjs +72 -98
- package/lib/components/VWindow/VWindowItem.mjs.map +1 -1
- package/lib/components/VWindow/_variables.scss +2 -3
- package/lib/components/VWindow/index.mjs +2 -9
- package/lib/components/VWindow/index.mjs.map +1 -1
- package/lib/components/index.d.ts +12766 -1769
- package/lib/components/index.mjs +64 -57
- package/lib/components/index.mjs.map +1 -1
- package/lib/components/transitions/createTransition.mjs +20 -20
- package/lib/components/transitions/createTransition.mjs.map +1 -1
- package/lib/components/transitions/dialog-transition.mjs +51 -23
- package/lib/components/transitions/dialog-transition.mjs.map +1 -1
- package/lib/components/transitions/expand-transition.mjs +3 -1
- package/lib/components/transitions/expand-transition.mjs.map +1 -1
- package/lib/components/transitions/index.mjs +1 -1
- package/lib/components/transitions/index.mjs.map +1 -1
- package/lib/composables/border.mjs +3 -2
- package/lib/composables/border.mjs.map +1 -1
- package/lib/composables/defaults.mjs +29 -5
- package/lib/composables/defaults.mjs.map +1 -1
- package/lib/composables/density.mjs +3 -2
- package/lib/composables/density.mjs.map +1 -1
- package/lib/composables/display.mjs +2 -1
- package/lib/composables/display.mjs.map +1 -1
- package/lib/composables/elevation.mjs +4 -3
- package/lib/composables/elevation.mjs.map +1 -1
- package/lib/composables/filter.mjs +87 -0
- package/lib/composables/filter.mjs.map +1 -0
- package/lib/composables/focus.mjs +35 -0
- package/lib/composables/focus.mjs.map +1 -0
- package/lib/composables/form.mjs +103 -0
- package/lib/composables/form.mjs.map +1 -0
- package/lib/composables/forwardRef.mjs +42 -0
- package/lib/composables/forwardRef.mjs.map +1 -0
- package/lib/composables/group.mjs +66 -34
- package/lib/composables/group.mjs.map +1 -1
- package/lib/composables/hydration.mjs +12 -0
- package/lib/composables/hydration.mjs.map +1 -0
- package/lib/composables/icons.mjs +17 -23
- package/lib/composables/icons.mjs.map +1 -1
- package/lib/composables/index.mjs +9 -0
- package/lib/composables/index.mjs.map +1 -0
- package/lib/composables/intersectionObserver.mjs +21 -16
- package/lib/composables/intersectionObserver.mjs.map +1 -1
- package/lib/composables/layout.mjs +126 -41
- package/lib/composables/layout.mjs.map +1 -1
- package/lib/composables/lazy.mjs +23 -0
- package/lib/composables/lazy.mjs.map +1 -0
- package/lib/composables/loader.mjs +39 -0
- package/lib/composables/loader.mjs.map +1 -0
- package/lib/composables/locale.mjs +10 -6
- package/lib/composables/locale.mjs.map +1 -1
- package/lib/composables/mutationObserver.mjs +43 -0
- package/lib/composables/mutationObserver.mjs.map +1 -0
- package/lib/composables/nested/nested.mjs +194 -0
- package/lib/composables/nested/nested.mjs.map +1 -0
- package/lib/composables/nested/openStrategies.mjs +49 -0
- package/lib/composables/nested/openStrategies.mjs.map +1 -0
- package/lib/composables/nested/selectStrategies.mjs +157 -0
- package/lib/composables/nested/selectStrategies.mjs.map +1 -0
- package/lib/composables/overlay.mjs +30 -0
- package/lib/composables/overlay.mjs.map +1 -0
- package/lib/composables/position.mjs +3 -2
- package/lib/composables/position.mjs.map +1 -1
- package/lib/composables/proxiedModel.mjs +10 -5
- package/lib/composables/proxiedModel.mjs.map +1 -1
- package/lib/composables/refs.mjs.map +1 -1
- package/lib/composables/resizeObserver.mjs +27 -21
- package/lib/composables/resizeObserver.mjs.map +1 -1
- package/lib/composables/rounded.mjs +9 -10
- package/lib/composables/rounded.mjs.map +1 -1
- package/lib/composables/router.mjs +7 -5
- package/lib/composables/router.mjs.map +1 -1
- package/lib/composables/scroll.mjs +2 -1
- package/lib/composables/scroll.mjs.map +1 -1
- package/lib/composables/size.mjs +3 -2
- package/lib/composables/size.mjs.map +1 -1
- package/lib/composables/stack.mjs +33 -0
- package/lib/composables/stack.mjs.map +1 -0
- package/lib/composables/teleport.mjs +4 -1
- package/lib/composables/teleport.mjs.map +1 -1
- package/lib/composables/theme.mjs +114 -63
- package/lib/composables/theme.mjs.map +1 -1
- package/lib/composables/touch.mjs +129 -0
- package/lib/composables/touch.mjs.map +1 -0
- package/lib/composables/transition.mjs +4 -3
- package/lib/composables/transition.mjs.map +1 -1
- package/lib/composables/validation.mjs +116 -0
- package/lib/composables/validation.mjs.map +1 -0
- package/lib/composables/variant.mjs +20 -9
- package/lib/composables/variant.mjs.map +1 -1
- package/lib/directives/click-outside/index.mjs +23 -11
- package/lib/directives/click-outside/index.mjs.map +1 -1
- package/lib/directives/index.d.ts +6 -4
- package/lib/directives/index.mjs +2 -2
- package/lib/directives/index.mjs.map +1 -1
- package/lib/directives/intersect/index.mjs +19 -12
- package/lib/directives/intersect/index.mjs.map +1 -1
- package/lib/directives/mutate/index.mjs +33 -34
- package/lib/directives/mutate/index.mjs.map +1 -1
- package/lib/directives/resize/index.mjs +8 -5
- package/lib/directives/resize/index.mjs.map +1 -1
- package/lib/directives/ripple/VRipple.css +34 -0
- package/lib/directives/ripple/VRipple.sass +2 -1
- package/lib/directives/ripple/_variables.scss +4 -4
- package/lib/directives/ripple/index.mjs +7 -4
- package/lib/directives/ripple/index.mjs.map +1 -1
- package/lib/directives/scroll/index.mjs +9 -6
- package/lib/directives/scroll/index.mjs.map +1 -1
- package/lib/directives/touch/index.mjs +8 -4
- package/lib/directives/touch/index.mjs.map +1 -1
- package/lib/entry-bundler.mjs +8 -4
- package/lib/entry-bundler.mjs.map +1 -1
- package/lib/framework.mjs +5 -2
- package/lib/framework.mjs.map +1 -1
- package/lib/iconsets/fa-svg.d.ts +54 -0
- package/lib/iconsets/fa.d.ts +54 -0
- package/lib/iconsets/fa.mjs +1 -0
- package/lib/iconsets/fa.mjs.map +1 -1
- package/lib/iconsets/fa4.d.ts +54 -0
- package/lib/iconsets/fa4.mjs +2 -1
- package/lib/iconsets/fa4.mjs.map +1 -1
- package/lib/iconsets/md.d.ts +54 -0
- package/lib/iconsets/md.mjs +2 -1
- package/lib/iconsets/md.mjs.map +1 -1
- package/lib/iconsets/mdi-svg.d.ts +54 -0
- package/lib/iconsets/mdi-svg.mjs +1 -1
- package/lib/iconsets/mdi-svg.mjs.map +1 -1
- package/lib/iconsets/mdi.d.ts +54 -0
- package/lib/iconsets/mdi.mjs +2 -1
- package/lib/iconsets/mdi.mjs.map +1 -1
- package/lib/index.d.ts +434 -0
- package/lib/locale/adapters/vue-i18n.mjs +64 -0
- package/lib/locale/adapters/vue-i18n.mjs.map +1 -0
- package/lib/locale/adapters/vue-intl.mjs +67 -0
- package/lib/locale/adapters/vue-intl.mjs.map +1 -0
- package/lib/locale/cs.mjs +3 -3
- package/lib/locale/cs.mjs.map +1 -1
- package/lib/locale/es.mjs +2 -2
- package/lib/locale/es.mjs.map +1 -1
- package/lib/locale/fr.mjs +1 -1
- package/lib/locale/fr.mjs.map +1 -1
- package/lib/locale/index.d.ts +3111 -0
- package/lib/presets/default/index.mjs +1 -1
- package/lib/presets/default/index.mjs.map +1 -1
- package/lib/services/goto/easing-patterns.mjs +0 -3
- package/lib/services/goto/easing-patterns.mjs.map +1 -1
- package/lib/services/goto/index.mjs +16 -18
- package/lib/services/goto/index.mjs.map +1 -1
- package/lib/styles/elements/_blockquote.sass +5 -3
- package/lib/styles/elements/_global.sass +5 -4
- package/lib/styles/elements/_index.sass +2 -2
- package/lib/styles/generic/_colors.scss +31 -10
- package/lib/styles/generic/_elevation.scss +2 -2
- package/lib/styles/generic/_index.scss +6 -6
- package/lib/styles/generic/_reset.scss +236 -232
- package/lib/styles/generic/_transitions.scss +8 -5
- package/lib/styles/main.css +18612 -0
- package/lib/styles/main.sass +4 -5
- package/lib/styles/settings/_colors.scss +431 -7
- package/lib/styles/settings/_elevations.scss +1 -1
- package/lib/styles/settings/_index.sass +4 -10
- package/lib/styles/settings/_utilities.scss +486 -472
- package/lib/styles/settings/_variables.scss +51 -52
- package/lib/styles/tools/_absolute.sass +8 -0
- package/lib/styles/tools/_density.sass +3 -1
- package/lib/styles/tools/_display.sass +11 -0
- package/lib/styles/tools/_elevation.sass +4 -2
- package/lib/styles/tools/_functions.sass +30 -25
- package/lib/styles/tools/_index.sass +17 -24
- package/lib/styles/tools/_radius.sass +5 -2
- package/lib/styles/tools/_sheet.sass +7 -4
- package/lib/styles/tools/_states.sass +13 -5
- package/lib/styles/tools/_utilities.sass +24 -20
- package/lib/styles/tools/_variant.sass +10 -2
- package/lib/styles/utilities/_display.sass +3 -1
- package/lib/styles/utilities/_index.sass +25 -22
- package/lib/styles/utilities/_text.sass +3 -1
- package/lib/styles.scss +4 -0
- package/lib/util/animation.mjs +43 -0
- package/lib/util/animation.mjs.map +1 -0
- package/lib/util/box.mjs +32 -0
- package/lib/util/box.mjs.map +1 -0
- package/lib/util/color/APCA.mjs +85 -0
- package/lib/util/color/APCA.mjs.map +1 -0
- package/lib/util/colorUtils.mjs +3 -0
- package/lib/util/colorUtils.mjs.map +1 -1
- package/lib/util/console.mjs +2 -1
- package/lib/util/console.mjs.map +1 -1
- package/lib/util/createSimpleFunctional.mjs +11 -8
- package/lib/util/createSimpleFunctional.mjs.map +1 -1
- package/lib/util/dateTimeUtils.mjs +3 -1
- package/lib/util/dateTimeUtils.mjs.map +1 -1
- package/lib/util/defineComponent.mjs +61 -0
- package/lib/util/defineComponent.mjs.map +1 -0
- package/lib/util/getCurrentInstance.mjs +19 -0
- package/lib/util/getCurrentInstance.mjs.map +1 -0
- package/lib/util/getScrollParent.mjs +1 -2
- package/lib/util/getScrollParent.mjs.map +1 -1
- package/lib/util/globals.mjs +1 -0
- package/lib/util/globals.mjs.map +1 -1
- package/lib/util/helpers.mjs +171 -31
- package/lib/util/helpers.mjs.map +1 -1
- package/lib/util/index.mjs +4 -1
- package/lib/util/isFixedPosition.mjs +12 -0
- package/lib/util/isFixedPosition.mjs.map +1 -0
- package/lib/util/propsFactory.mjs.map +1 -1
- package/lib/util/useRender.mjs +4 -2
- package/lib/util/useRender.mjs.map +1 -1
- package/package.json +102 -52
- package/dist/vuetify.css.map +0 -1
- package/dist/vuetify.min.css.map +0 -1
- package/lib/components/VAlert/_index.scss +0 -2
- package/lib/components/VApp/_index.scss +0 -1
- package/lib/components/VAppBar/VAppBarTitle.sass +0 -10
- package/lib/components/VAppBar/_index.scss +0 -2
- package/lib/components/VAvatar/_index.scss +0 -3
- package/lib/components/VBadge/_index.scss +0 -2
- package/lib/components/VBanner/VBannerAvatar.mjs +0 -29
- package/lib/components/VBanner/VBannerAvatar.mjs.map +0 -1
- package/lib/components/VBanner/VBannerContent.mjs +0 -3
- package/lib/components/VBanner/VBannerContent.mjs.map +0 -1
- package/lib/components/VBanner/_index.scss +0 -2
- package/lib/components/VBottomNavigation/_index.scss +0 -2
- package/lib/components/VBreadcrumbs/_index.scss +0 -2
- package/lib/components/VBtn/_index.scss +0 -3
- package/lib/components/VCard/VCardMedia.mjs +0 -3
- package/lib/components/VCard/VCardMedia.mjs.map +0 -1
- package/lib/components/VCard/_index.scss +0 -3
- package/lib/components/VCheckbox/VSimpleCheckbox.mjs +0 -92
- package/lib/components/VCheckbox/VSimpleCheckbox.mjs.map +0 -1
- package/lib/components/VCheckbox/VSimpleCheckbox.sass +0 -16
- package/lib/components/VChip/_index.scss +0 -3
- package/lib/components/VCode/_index.scss +0 -2
- package/lib/components/VDataTable/VSimpleTable.mjs +0 -48
- package/lib/components/VDataTable/VSimpleTable.mjs.map +0 -1
- package/lib/components/VDataTable/VSimpleTable.sass +0 -179
- package/lib/components/VDialog/_index.scss +0 -2
- package/lib/components/VDivider/_index.scss +0 -2
- package/lib/components/VExpansionPanel/VExpansionPanelContent.mjs +0 -61
- package/lib/components/VExpansionPanel/VExpansionPanelContent.mjs.map +0 -1
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.mjs +0 -112
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.mjs.map +0 -1
- package/lib/components/VFooter/_index.scss +0 -2
- package/lib/components/VGrid/_index.scss +0 -2
- package/lib/components/VIcon/_index.scss +0 -2
- package/lib/components/VImg/_index.scss +0 -2
- package/lib/components/VItemGroup/_index.scss +0 -2
- package/lib/components/VKbd/_index.scss +0 -2
- package/lib/components/VLayout/_index.scss +0 -1
- package/lib/components/VList/_index.scss +0 -3
- package/lib/components/VList/_mixins.scss +0 -0
- package/lib/components/VMain/_index.scss +0 -2
- package/lib/components/VNavigationDrawer/_index.scss +0 -2
- package/lib/components/VOverlay/_index.scss +0 -2
- package/lib/components/VPagination/_index.scss +0 -2
- package/lib/components/VParallax/_variables.scss +0 -4
- package/lib/components/VProgressCircular/_index.scss +0 -2
- package/lib/components/VRadioGroup/VRadio.mjs +0 -179
- package/lib/components/VRadioGroup/VRadio.mjs.map +0 -1
- package/lib/components/VRadioGroup/VRadio.sass +0 -25
- package/lib/components/VRangeSlider/VRangeSlider.sass +0 -19
- package/lib/components/VRating/_index.scss +0 -2
- package/lib/components/VResponsive/_index.scss +0 -1
- package/lib/components/VSelect/VSelectList.mjs +0 -251
- package/lib/components/VSelect/VSelectList.mjs.map +0 -1
- package/lib/components/VSheet/_index.scss +0 -2
- package/lib/components/VSlideGroup/VSlideItem.mjs +0 -14
- package/lib/components/VSlideGroup/VSlideItem.mjs.map +0 -1
- package/lib/components/VSystemBar/_index.scss +0 -2
- package/lib/components/VTabs/VTabItem.mjs +0 -23
- package/lib/components/VTabs/VTabItem.mjs.map +0 -1
- package/lib/components/VTabs/VTabsBar.mjs +0 -86
- package/lib/components/VTabs/VTabsBar.mjs.map +0 -1
- package/lib/components/VTabs/VTabsItems.mjs +0 -37
- package/lib/components/VTabs/VTabsItems.mjs.map +0 -1
- package/lib/components/VTabs/VTabsSlider.mjs +0 -20
- package/lib/components/VTabs/VTabsSlider.mjs.map +0 -1
- package/lib/components/VTextField/_mixins.sass +0 -18
- package/lib/components/VTimeline/_index.scss +0 -3
- package/lib/components/VToolbar/_index.scss +0 -2
- package/lib/entry.d.ts +0 -3647
- package/lib/entry.mjs +0 -4
- package/lib/entry.mjs.map +0 -1
- package/lib/framework.d.ts +0 -158
- package/lib/globals.d.mjs +0 -2
- package/lib/globals.d.mjs.map +0 -1
- package/lib/mixins/activatable/index.mjs +0 -199
- package/lib/mixins/activatable/index.mjs.map +0 -1
- package/lib/mixins/applicationable/index.mjs +0 -72
- package/lib/mixins/applicationable/index.mjs.map +0 -1
- package/lib/mixins/binds-attrs/index.mjs +0 -42
- package/lib/mixins/binds-attrs/index.mjs.map +0 -1
- package/lib/mixins/bootable/index.mjs +0 -54
- package/lib/mixins/bootable/index.mjs.map +0 -1
- package/lib/mixins/button-group/index.mjs +0 -28
- package/lib/mixins/button-group/index.mjs.map +0 -1
- package/lib/mixins/colorable/index.mjs +0 -78
- package/lib/mixins/colorable/index.mjs.map +0 -1
- package/lib/mixins/comparable/index.mjs +0 -15
- package/lib/mixins/comparable/index.mjs.map +0 -1
- package/lib/mixins/dependent/index.mjs +0 -73
- package/lib/mixins/dependent/index.mjs.map +0 -1
- package/lib/mixins/elevatable/index.mjs +0 -26
- package/lib/mixins/elevatable/index.mjs.map +0 -1
- package/lib/mixins/filterable/index.mjs +0 -16
- package/lib/mixins/filterable/index.mjs.map +0 -1
- package/lib/mixins/loadable/index.mjs +0 -45
- package/lib/mixins/loadable/index.mjs.map +0 -1
- package/lib/mixins/localable/index.mjs +0 -17
- package/lib/mixins/localable/index.mjs.map +0 -1
- package/lib/mixins/menuable/index.mjs +0 -388
- package/lib/mixins/menuable/index.mjs.map +0 -1
- package/lib/mixins/mobile/index.mjs +0 -50
- package/lib/mixins/mobile/index.mjs.map +0 -1
- package/lib/mixins/overlayable/index.mjs +0 -201
- package/lib/mixins/overlayable/index.mjs.map +0 -1
- package/lib/mixins/picker/index.mjs +0 -75
- package/lib/mixins/picker/index.mjs.map +0 -1
- package/lib/mixins/picker-button/index.mjs +0 -35
- package/lib/mixins/picker-button/index.mjs.map +0 -1
- package/lib/mixins/proxyable/index.mjs +0 -50
- package/lib/mixins/proxyable/index.mjs.map +0 -1
- package/lib/mixins/returnable/index.mjs +0 -36
- package/lib/mixins/returnable/index.mjs.map +0 -1
- package/lib/mixins/rippleable/index.mjs +0 -35
- package/lib/mixins/rippleable/index.mjs.map +0 -1
- package/lib/mixins/roundable/index.mjs +0 -37
- package/lib/mixins/roundable/index.mjs.map +0 -1
- package/lib/mixins/routable/index.mjs +0 -146
- package/lib/mixins/routable/index.mjs.map +0 -1
- package/lib/mixins/selectable/index.mjs +0 -167
- package/lib/mixins/selectable/index.mjs.map +0 -1
- package/lib/mixins/stackable/index.mjs +0 -55
- package/lib/mixins/stackable/index.mjs.map +0 -1
- package/lib/mixins/themeable/index.mjs +0 -111
- package/lib/mixins/themeable/index.mjs.map +0 -1
- package/lib/mixins/toggleable/index.mjs +0 -40
- package/lib/mixins/toggleable/index.mjs.map +0 -1
- package/lib/mixins/translatable/index.mjs +0 -59
- package/lib/mixins/translatable/index.mjs.map +0 -1
- package/lib/mixins/validatable/index.mjs +0 -263
- package/lib/mixins/validatable/index.mjs.map +0 -1
- package/lib/services/application/index.mjs +0 -58
- package/lib/services/application/index.mjs.map +0 -1
- package/lib/services/breakpoint/index.mjs +0 -175
- package/lib/services/breakpoint/index.mjs.map +0 -1
- package/lib/services/index.mjs +0 -10
- package/lib/services/index.mjs.map +0 -1
- package/lib/services/lang/index.mjs +0 -73
- package/lib/services/lang/index.mjs.map +0 -1
- package/lib/services/service/index.mjs +0 -13
- package/lib/services/service/index.mjs.map +0 -1
- package/lib/styles/components/_index.sass +0 -1
- package/lib/styles/components/_selection-controls.sass +0 -119
- package/lib/styles/settings/_dark.scss +0 -137
- package/lib/styles/settings/_light.scss +0 -118
- package/lib/styles/settings/_theme.scss +0 -1
- package/lib/styles/styles.sass +0 -2
- package/lib/util/makeProps.mjs +0 -53
- package/lib/util/makeProps.mjs.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VDatePicker/VDatePickerYears.ts"],"names":["Colorable","Localable","createItemTypeNativeListeners","createNativeLocaleFormatter","mergeListeners","mixins","extend","name","props","format","Function","min","Number","String","max","readonly","Boolean","value","data","defaultColor","computed","formatter","currentLocale","year","timeZone","length","mounted","setTimeout","activeItem","$el","getElementsByClassName","scrollTop","offsetTop","offsetHeight","scrollHeight","methods","genYearItem","formatted","active","parseInt","color","$createElement","setTextColor","key","class","on","click","$emit","genYearItems","children","selectedYear","Date","getFullYear","maxYear","minYear","Math","push","render","staticClass","ref"],"mappings":"AAAA;;AACA;AAEA,
|
|
1
|
+
{"version":3,"sources":["../../../src/components/VDatePicker/VDatePickerYears.ts"],"names":["Colorable","Localable","createItemTypeNativeListeners","createNativeLocaleFormatter","mergeListeners","mixins","extend","name","props","format","Function","min","Number","String","max","readonly","Boolean","value","data","defaultColor","computed","formatter","currentLocale","year","timeZone","length","mounted","setTimeout","activeItem","$el","getElementsByClassName","scrollTop","offsetTop","offsetHeight","scrollHeight","methods","genYearItem","formatted","active","parseInt","color","$createElement","setTextColor","key","class","on","click","$emit","genYearItems","children","selectedYear","Date","getFullYear","maxYear","minYear","Math","push","render","staticClass","ref"],"mappings":"AAAA;;AACA;AAEA,gC,CAEA;;OACOA,S;OACAC,S,oCAEP;;SAEEC,6B,EACAC,2B;SAEOC,c;OACFC,M,+BAEP;;AAQA,eAAeA,MAAM,CAQnBL,SARmB,EASnBC;AACF;AAVqB,CAAN,CAWbK,MAXa,CAWN;AACPC,EAAAA,IAAI,EAAE,qBADC;AAGPC,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAEC,QADH;AAELC,IAAAA,GAAG,EAAE,CAACC,MAAD,EAASC,MAAT,CAFA;AAGLC,IAAAA,GAAG,EAAE,CAACF,MAAD,EAASC,MAAT,CAHA;AAILE,IAAAA,QAAQ,EAAEC,OAJL;AAKLC,IAAAA,KAAK,EAAE,CAACL,MAAD,EAASC,MAAT;AALF,GAHA;;AAWPK,EAAAA,IAAI,GAAI;AACN,WAAO;AACLC,MAAAA,YAAY,EAAE;AADT,KAAP;AAGD,GAfM;;AAiBPC,EAAAA,QAAQ,EAAE;AACRC,IAAAA,SAAS,GAAyB;AAChC,aAAO,KAAKZ,MAAL,IAAeN,2BAA2B,CAAC,KAAKmB,aAAN,EAAqB;AAAEC,QAAAA,IAAI,EAAE,SAAR;AAAmBC,QAAAA,QAAQ,EAAE;AAA7B,OAArB,EAA2D;AAAEC,QAAAA,MAAM,EAAE;AAAV,OAA3D,CAAjD;AACD;;AAHO,GAjBH;;AAuBPC,EAAAA,OAAO,GAAI;AACTC,IAAAA,UAAU,CAAC,MAAM;AACf,YAAMC,UAAU,GAAG,KAAKC,GAAL,CAASC,sBAAT,CAAgC,QAAhC,EAA0C,CAA1C,CAAnB;;AACA,UAAIF,UAAJ,EAAgB;AACd,aAAKC,GAAL,CAASE,S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AMHc,SANG,CAAP;AAOD,KAbM;;AAePW,IAAAA,YAAY,GAAa;AACvB,YAAMC,QAAQ,GAAG,EAAjB;AACA,YAAMC,YAAY,GAAG,KAAKjC,KAAL,GAAasB,QAAQ,CAAC,KAAKtB,KAAN,EAAa,EAAb,CAArB,GAAwC,IAAIkC,IAAJ,GAAWC,WAAX,EAA7D;AACA,YAAMC,OAAO,GAAG,KAAKvC,GAAL,GAAWyB,QAAQ,CAAC,KAAKzB,GAAN,EAAW,EAAX,CAAnB,GAAqCoC,YAAY,GAAG,GAApE;AACA,YAAMI,OAAO,GAAGC,IAAI,CAAC5C,GAAL,CAAS0C,OAAT,EAAkB,KAAK1C,GAAL,GAAW4B,QAAQ,CAAC,KAAK5B,GAAN,EAAW,EAAX,CAAnB,GAAqCuC,YAAY,GAAG,GAAtE,CAAhB;;AAEA,WAAK,IAAI3B,IAAI,GAAG8B,OAAhB,EAAyB9B,IAAI,IAAI+B,OAAjC,EAA0C/B,IAAI,EAA9C,EAAkD;AAChD0B,QAAAA,QAAQ,CAACO,IAAT,CAAc,KAAKpB,WAAL,CAAiBb,IAAjB,CAAd;AACD;;AAED,aAAO0B,QAAP;AACD;;AA1BM,GAtCF;;AAmEPQ,EAAAA,MAAM,GAAW;AACf,WAAO,KAAKhB,cAAL,CAAoB,IAApB,EAA0B;AAC/BiB,MAAAA,WAAW,EAAE,qBADkB;AAE/BC,MAAAA,GAAG,EAAE;AAF0B,KAA1B,EAGJ,KAAKX,YAAL,EAHI,CAAP;AAID;;AAxEM,CAXM,CAAf","sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n\nimport './VDatePickerYears.sass'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Localable from '../../mixins/localable'\n\n// Utils\nimport {\n createItemTypeNativeListeners,\n createNativeLocaleFormatter,\n} from './util'\nimport { mergeListeners } from '../../util/mergeData'\nimport mixins, { ExtractVue } from '../../util/mixins'\n\n// Types\nimport Vue, { VNode, PropType } from 'vue'\nimport { DatePickerFormatter } from 'vuetify/types'\n\ninterface options extends Vue {\n $el: HTMLElement\n}\n\nexport default mixins<options &\n/* eslint-disable indent */\n ExtractVue<[\n typeof Colorable,\n typeof Localable\n ]>\n/* eslint-enable indent */\n>(\n Colorable,\n Localable\n/* @vue/component */\n).extend({\n name: 'v-date-picker-years',\n\n props: {\n format: Function as PropType<DatePickerFormatter | undefined>,\n min: [Number, String],\n max: [Number, String],\n readonly: Boolean,\n value: [Number, String],\n },\n\n data () {\n return {\n defaultColor: 'primary',\n }\n },\n\n computed: {\n formatter (): DatePickerFormatter {\n return this.format || createNativeLocaleFormatter(this.currentLocale, { year: 'numeric', timeZone: 'UTC' }, { length: 4 })\n },\n },\n\n mounted () {\n setTimeout(() => {\n const activeItem = this.$el.getElementsByClassName('active')[0]\n if (activeItem) {\n this.$el.scrollTop = activeItem.offsetTop - this.$el.offsetHeight / 2 + activeItem.offsetHeight / 2\n } else if (this.min && !this.max) {\n this.$el.scrollTop = this.$el.scrollHeight\n } else if (!this.min && this.max) {\n this.$el.scrollTop = 0\n } else {\n this.$el.scrollTop = this.$el.scrollHeight / 2 - this.$el.offsetHeight / 2\n }\n })\n },\n\n methods: {\n genYearItem (year: number): VNode {\n const formatted = this.formatter(`${year}`)\n const active = parseInt(this.value, 10) === year\n const color = active && (this.color || 'primary')\n\n return this.$createElement('li', this.setTextColor(color, {\n key: year,\n class: { active },\n on: mergeListeners({\n click: () => this.$emit('input', year),\n }, createItemTypeNativeListeners(this, ':year', year)),\n }), formatted)\n },\n\n genYearItems (): VNode[] {\n const children = []\n const selectedYear = this.value ? parseInt(this.value, 10) : new Date().getFullYear()\n const maxYear = this.max ? parseInt(this.max, 10) : (selectedYear + 100)\n const minYear = Math.min(maxYear, this.min ? parseInt(this.min, 10) : (selectedYear - 100))\n\n for (let year = maxYear; year >= minYear; year--) {\n children.push(this.genYearItem(year))\n }\n\n return children\n },\n },\n\n render (): VNode {\n return this.$createElement('ul', {\n staticClass: 'v-date-picker-years',\n ref: 'years',\n }, this.genYearItems())\n },\n})\n"],"file":"VDatePickerYears.mjs"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
|
|
3
3
|
/* eslint-disable */
|
|
4
|
-
import "../VDatePickerTable.
|
|
4
|
+
import "../VDatePickerTable.css"; // Directives
|
|
5
5
|
|
|
6
6
|
import Touch from "../../../directives/touch/index.mjs"; // Mixins
|
|
7
7
|
|
|
8
|
-
import Colorable from "../../../mixins/colorable
|
|
9
|
-
import Localable from "../../../mixins/localable
|
|
10
|
-
import Themeable from "../../../mixins/themeable
|
|
8
|
+
import Colorable from "../../../mixins/colorable.mjs";
|
|
9
|
+
import Localable from "../../../mixins/localable.mjs";
|
|
10
|
+
import Themeable from "../../../mixins/themeable.mjs"; // Utils
|
|
11
11
|
|
|
12
12
|
import { createItemTypeNativeListeners, sanitizeDateString } from "../util/index.mjs";
|
|
13
13
|
import isDateAllowed from "../util/isDateAllowed.mjs";
|
|
@@ -100,7 +100,8 @@ export default mixins(Colorable, Localable, Themeable
|
|
|
100
100
|
}, createItemTypeNativeListeners(this, `:${mouseEventType}`, value));
|
|
101
101
|
},
|
|
102
102
|
|
|
103
|
-
genButton(value, isFloating, mouseEventType, formatter
|
|
103
|
+
genButton(value, isFloating, mouseEventType, formatter) {
|
|
104
|
+
let isOtherMonth = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
|
|
104
105
|
const isAllowed = isDateAllowed(value, this.min, this.max, this.allowedDates);
|
|
105
106
|
const isSelected = this.isSelected(value) && isAllowed;
|
|
106
107
|
const isCurrent = value === this.current;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/VDatePicker/mixins/date-picker-table.ts"],"names":["Touch","Colorable","Localable","Themeable","createItemTypeNativeListeners","sanitizeDateString","isDateAllowed","mergeListeners","mixins","throttle","extend","directives","props","allowedDates","Function","current","String","disabled","Boolean","format","events","type","Array","Object","default","eventColor","min","max","range","readonly","scrollable","tableDate","required","value","data","isReversing","wheelThrottle","computed","computedTransition","$vuetify","rtl","displayedMonth","Number","split","displayedYear","watch","newVal","oldVal","mounted","wheel","methods","genButtonClasses","isAllowed","isFloating","isSelected","isCurrent","isFirst","isLast","themeClasses","genButtonEvents","mouseEventType","undefined","click","$emit","genButton","formatter","isOtherMonth","setColor","setBackgroundColor","setTextColor","color","isArray","length","$createElement","staticClass","class","attrs","domProps","on","genEvents","getEventColors","date","arrayize","v","eventData","eventColors","includes","filter","map","isValidScroll","calculateTableDate","sanitizeType","e","deltaY","touch","genTable","children","transition","name","key","touchDirective","left","offsetX","right","preventDefault","from","to","sort","indexOf"],"mappings":"AAAA;;AACA;AAEA,kC,CAEA;;OACOA,K,6CAEP;;OACOC,S;OACAC,S;OACAC,S,6CAEP;;SACSC,6B,EAA+BC,kB;OACjCC,a;SACEC,c;OACFC,M;SACEC,Q,qCAET;;AAiBA,eAAeD,MAAM,CACnBP,SADmB,EAEnBC,SAFmB,EAGnBC;AACF;AAJqB,CAAN,CAKbO,MALa,CAKN;AACPC,EAAAA,UAAU,EAAE;AAAEX,IAAAA;AAAF,GADL;AAGPY,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAEC,QADT;AAELC,IAAAA,OAAO,EAAEC,MAFJ;AAGLC,IAAAA,QAAQ,EAAEC,OAHL;AAILC,IAAAA,MAAM,EAAEL,QAJH;AAKLM,IAAAA,MAAM,EAAE;AACNC,MAAAA,IAAI,EAAE,CAACC,KAAD,EAAQR,QAAR,EAAkBS,MAAlB,CADA;AAENC,MAAAA,OAAO,EAAE,MAAM;AAFT,KALH;AASLC,IAAAA,UAAU,EAAE;AACVJ,MAAAA,IAAI,EAAE,CAACC,KAAD,EAAQR,QAAR,EAAkBS,MAAlB,EAA0BP,MAA1B,CADI;AAEVQ,MAAAA,OAAO,EAAE,MAAM;AAFL,KATP;AAaLE,IAAAA,GAAG,EAAEV,MAbA;AAcLW,IAAAA,GAAG,EAAEX,MAdA;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B;AACxBA,YAAAA,CAAC,CAACY,cAAF;;AACA,gBAAI,KAAKf,aAAL,CAAmBG,CAAC,CAACC,MAArB,EAA6BH,kBAA7B,CAAJ,EAAsD;AAAE,mBAAKtD,aAAL,CAAmBwD,CAAnB,EAAsBF,kBAAtB;AAA2C;AACpG;AAJuC,SAAtC,GAKA7B,SAX4B;AAYhClD,QAAAA,UAAU,EAAE,CAACyF,cAAD;AAZoB,OAA3B,EAaJ,CAACH,UAAD,CAbI,CAAP;AAcD,KArJM;;AAsJP3C,IAAAA,UAAU,CAAErB,KAAF,EAA0B;AAClC,UAAIX,KAAK,CAACiD,OAAN,CAAc,KAAKtC,KAAnB,CAAJ,EAA+B;AAC7B,YAAI,KAAKL,KAAL,IAAc,KAAKK,KAAL,CAAWuC,MAAX,KAAsB,CAAxC,EAA2C;AACzC,gBAAM,CAACiC,IAAD,EAAOC,EAAP,IAAa,CAAC,GAAG,KAAKzE,KAAT,EAAgB0E,IAAhB,EAAnB;AACA,iBAAOF,IAAI,IAAIxE,KAAR,IAAiBA,KAAK,IAAIyE,EAAjC;AACD,SAHD,MAGO;AACL,iBAAO,KAAKzE,KAAL,CAAW2E,OAAX,CAAmB3E,KAAnB,MAA8B,CAAC,CAAtC;AACD;AACF;;AAED,aAAOA,KAAK,KAAK,KAAKA,KAAtB;AACD;;AAjKM;AAvDF,CALM,CAAf","sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n\nimport '../VDatePickerTable.sass'\n\n// Directives\nimport Touch from '../../../directives/touch'\n\n// Mixins\nimport Colorable from '../../../mixins/colorable'\nimport Localable from '../../../mixins/localable'\nimport Themeable from '../../../mixins/themeable'\n\n// Utils\nimport { createItemTypeNativeListeners, sanitizeDateString } from '../util'\nimport isDateAllowed from '../util/isDateAllowed'\nimport { mergeListeners } from '../../../util/mergeData'\nimport mixins from '../../../util/mixins'\nimport { throttle } from '../../../util/helpers'\n\n// Types\nimport {\n PropType,\n VNodeChildren,\n} from 'vue'\nimport { PropValidator } from 'vue/types/options'\nimport {\n DatePickerAllowedDatesFunction,\n DatePickerEventColors,\n DatePickerEventColorValue,\n DatePickerEvents,\n DatePickerFormatter,\n TouchWrapper,\n} from 'vuetify/types'\n\ntype CalculateTableDateFunction = (v: number) => string\n\nexport default mixins(\n Colorable,\n Localable,\n Themeable\n/* @vue/component */\n).extend({\n directives: { Touch },\n\n props: {\n allowedDates: Function as PropType<DatePickerAllowedDatesFunction | undefined>,\n current: String,\n disabled: Boolean,\n format: Function as PropType<DatePickerFormatter | undefined>,\n events: {\n type: [Array, Function, Object],\n default: () => null,\n } as PropValidator<DatePickerEvents | null>,\n eventColor: {\n type: [Array, Function, Object, String],\n default: () => 'warning',\n } as PropValidator<DatePickerEventColors>,\n min: String,\n max: String,\n range: Boolean,\n readonly: Boolean,\n scrollable: Boolean,\n tableDate: {\n type: String,\n required: true,\n },\n value: [String, Array] as PropType<string | string[]>,\n },\n\n data: () => ({\n isReversing: false,\n wheelThrottle: null as any,\n }),\n\n computed: {\n computedTransition (): string {\n return (this.isReversing === !this.$vuetify.rtl) ? 'tab-reverse-transition' : 'tab-transition'\n },\n displayedMonth (): number {\n return Number(this.tableDate.split('-')[1]) - 1\n },\n displayedYear (): number {\n return Number(this.tableDate.split('-')[0])\n },\n },\n\n watch: {\n tableDate (newVal: string, oldVal: string) {\n this.isReversing = newVal < oldVal\n },\n },\n\n mounted () {\n this.wheelThrottle = throttle(this.wheel, 250)\n },\n\n methods: {\n genButtonClasses (\n isAllowed: boolean,\n isFloating: boolean,\n isSelected: boolean,\n isCurrent: boolean,\n isFirst: boolean,\n isLast: boolean,\n ) {\n return {\n 'v-size--default': !isFloating,\n 'v-date-picker-table__current': isCurrent,\n 'v-btn--active': isSelected,\n 'v-btn--flat': !isAllowed || this.disabled,\n 'v-btn--text': isSelected === isCurrent,\n 'v-btn--rounded': isFloating,\n 'v-btn--disabled': !isAllowed || this.disabled,\n 'v-btn--outlined': isCurrent && !isSelected,\n 'v-date-picker--first-in-range': isFirst,\n 'v-date-picker--last-in-range': isLast,\n ...this.themeClasses,\n }\n },\n genButtonEvents (value: string, isAllowed: boolean, mouseEventType: string) {\n if (this.disabled) return undefined\n\n return mergeListeners({\n click: () => {\n if (isAllowed && !this.readonly) this.$emit('input', value)\n },\n }, createItemTypeNativeListeners(this, `:${mouseEventType}`, value))\n },\n genButton (value: string, isFloating: boolean, mouseEventType: string, formatter: DatePickerFormatter, isOtherMonth = false) {\n const isAllowed = isDateAllowed(value, this.min, this.max, this.allowedDates)\n const isSelected = this.isSelected(value) && isAllowed\n const isCurrent = value === this.current\n const setColor = isSelected ? this.setBackgroundColor : this.setTextColor\n const color = (isSelected || isCurrent) && (this.color || 'accent')\n let isFirst = false\n let isLast = false\n if (this.range && !!this.value && Array.isArray(this.value)) {\n isFirst = value === this.value[0]\n isLast = value === this.value[this.value.length - 1]\n }\n\n return this.$createElement('button', setColor(color, {\n staticClass: 'v-btn',\n class: this.genButtonClasses(\n isAllowed && !isOtherMonth,\n isFloating,\n isSelected,\n isCurrent,\n isFirst,\n isLast,\n ),\n attrs: {\n type: 'button',\n },\n domProps: {\n disabled: this.disabled || !isAllowed || isOtherMonth,\n },\n on: this.genButtonEvents(value, isAllowed, mouseEventType),\n }), [\n this.$createElement('div', {\n staticClass: 'v-btn__content',\n }, [formatter(value)]),\n this.genEvents(value),\n ])\n },\n getEventColors (date: string) {\n const arrayize = (v: string | string[]) => Array.isArray(v) ? v : [v]\n let eventData: boolean | DatePickerEventColorValue\n let eventColors: string[] = []\n\n if (Array.isArray(this.events)) {\n eventData = this.events.includes(date)\n } else if (this.events instanceof Function) {\n eventData = this.events(date) || false\n } else if (this.events) {\n eventData = this.events[date] || false\n } else {\n eventData = false\n }\n\n if (!eventData) {\n return []\n } else if (eventData !== true) {\n eventColors = arrayize(eventData)\n } else if (typeof this.eventColor === 'string') {\n eventColors = [this.eventColor]\n } else if (typeof this.eventColor === 'function') {\n eventColors = arrayize(this.eventColor(date))\n } else if (Array.isArray(this.eventColor)) {\n eventColors = this.eventColor\n } else {\n eventColors = arrayize(this.eventColor[date])\n }\n\n return eventColors.filter(v => v)\n },\n genEvents (date: string) {\n const eventColors = this.getEventColors(date)\n\n return eventColors.length ? this.$createElement('div', {\n staticClass: 'v-date-picker-table__events',\n }, eventColors.map(color => this.$createElement('div', this.setBackgroundColor(color)))) : null\n },\n isValidScroll (value: number, calculateTableDate: CalculateTableDateFunction) {\n const tableDate = calculateTableDate(value)\n // tableDate is 'YYYY-MM' for DateTable and 'YYYY' for MonthTable\n const sanitizeType = tableDate.split('-').length === 1 ? 'year' : 'month'\n return (value < 0 && (this.min ? tableDate >= sanitizeDateString(this.min, sanitizeType) : true)) ||\n (value > 0 && (this.max ? tableDate <= sanitizeDateString(this.max, sanitizeType) : true))\n },\n wheel (e: WheelEvent, calculateTableDate: CalculateTableDateFunction) {\n this.$emit('update:table-date', calculateTableDate(e.deltaY))\n },\n touch (value: number, calculateTableDate: CalculateTableDateFunction) {\n this.$emit('update:table-date', calculateTableDate(value))\n },\n genTable (staticClass: string, children: VNodeChildren, calculateTableDate: CalculateTableDateFunction) {\n const transition = this.$createElement('transition', {\n props: { name: this.computedTransition },\n }, [this.$createElement('table', { key: this.tableDate }, children)])\n\n const touchDirective = {\n name: 'touch',\n value: {\n left: (e: TouchWrapper) => (e.offsetX < -15) &&\n (this.isValidScroll(1, calculateTableDate) && this.touch(1, calculateTableDate)),\n right: (e: TouchWrapper) => (e.offsetX > 15) &&\n (this.isValidScroll(-1, calculateTableDate) && this.touch(-1, calculateTableDate)),\n },\n }\n\n return this.$createElement('div', {\n staticClass,\n class: {\n 'v-date-picker-table--disabled': this.disabled,\n ...this.themeClasses,\n },\n on: (!this.disabled && this.scrollable) ? {\n wheel: (e: WheelEvent) => {\n e.preventDefault()\n if (this.isValidScroll(e.deltaY, calculateTableDate)) { this.wheelThrottle(e, calculateTableDate) }\n },\n } : undefined,\n directives: [touchDirective],\n }, [transition])\n },\n isSelected (value: string): boolean {\n if (Array.isArray(this.value)) {\n if (this.range && this.value.length === 2) {\n const [from, to] = [...this.value].sort()\n return from <= value && value <= to\n } else {\n return this.value.indexOf(value) !== -1\n }\n }\n\n return value === this.value\n },\n },\n})\n"],"file":"date-picker-table.mjs"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/VDatePicker/mixins/date-picker-table.ts"],"names":["Touch","Colorable","Localable","Themeable","createItemTypeNativeListeners","sanitizeDateString","isDateAllowed","mergeListeners","mixins","throttle","extend","directives","props","allowedDates","Function","current","String","disabled","Boolean","format","events","type","Array","Object","default","eventColor","min","max","range","readonly","scrollable","tableDate","required","value","data","isReversing","wheelThrottle","computed","computedTransition","$vuetify","rtl","displayedMonth","Number","split","displayedYear","watch","newVal","oldVal","mounted","wheel","methods","genButtonClasses","isAllowed","isFloating","isSelected","isCurrent","isFirst","isLast","themeClasses","genButtonEvents","mouseEventType","undefined","click","$emit","genButton","formatter","isOtherMonth","setColor","setBackgroundColor","setTextColor","color","isArray","length","$createElement","staticClass","class","attrs","domProps","on","genEvents","getEventColors","date","arrayize","v","eventData","eventColors","includes","filter","map","isValidScroll","calculateTableDate","sanitizeType","e","deltaY","touch","genTable","children","transition","name","key","touchDirective","left","offsetX","right","preventDefault","from","to","sort","indexOf"],"mappings":"AAAA;;AACA;AAEA,iC,CAEA;;OACOA,K,6CAEP;;OACOC,S;OACAC,S;OACAC,S,uCAEP;;SACSC,6B,EAA+BC,kB;OACjCC,a;SACEC,c;OACFC,M;SACEC,Q,qCAET;;AAiBA,eAAeD,MAAM,CACnBP,SADmB,EAEnBC,SAFmB,EAGnBC;AACF;AAJqB,CAAN,CAKbO,MALa,CAKN;AACPC,EAAAA,UAAU,EAAE;AAAEX,IAAAA;AAAF,GADL;AAGPY,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAEC,QADT;AAELC,IAAAA,OAAO,EAAEC,MAFJ;AAGLC,IAAAA,QAAQ,EAAEC,OAHL;AAILC,IAAAA,MAAM,EAAEL,QAJH;AAKLM,IAA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* eslint-disable */\n\nimport '../VDatePickerTable.sass'\n\n// Directives\nimport Touch from '../../../directives/touch'\n\n// Mixins\nimport Colorable from '../../../mixins/colorable'\nimport Localable from '../../../mixins/localable'\nimport Themeable from '../../../mixins/themeable'\n\n// Utils\nimport { createItemTypeNativeListeners, sanitizeDateString } from '../util'\nimport isDateAllowed from '../util/isDateAllowed'\nimport { mergeListeners } from '../../../util/mergeData'\nimport mixins from '../../../util/mixins'\nimport { throttle } from '../../../util/helpers'\n\n// Types\nimport {\n PropType,\n VNodeChildren,\n} from 'vue'\nimport { PropValidator } from 'vue/types/options'\nimport {\n DatePickerAllowedDatesFunction,\n DatePickerEventColors,\n DatePickerEventColorValue,\n DatePickerEvents,\n DatePickerFormatter,\n TouchWrapper,\n} from 'vuetify/types'\n\ntype CalculateTableDateFunction = (v: number) => string\n\nexport default mixins(\n Colorable,\n Localable,\n Themeable\n/* @vue/component */\n).extend({\n directives: { Touch },\n\n props: {\n allowedDates: Function as PropType<DatePickerAllowedDatesFunction | undefined>,\n current: String,\n disabled: Boolean,\n format: Function as PropType<DatePickerFormatter | undefined>,\n events: {\n type: [Array, Function, Object],\n default: () => null,\n } as PropValidator<DatePickerEvents | null>,\n eventColor: {\n type: [Array, Function, Object, String],\n default: () => 'warning',\n } as PropValidator<DatePickerEventColors>,\n min: String,\n max: String,\n range: Boolean,\n readonly: Boolean,\n scrollable: Boolean,\n tableDate: {\n type: String,\n required: true,\n },\n value: [String, Array] as PropType<string | string[]>,\n },\n\n data: () => ({\n isReversing: false,\n wheelThrottle: null as any,\n }),\n\n computed: {\n computedTransition (): string {\n return (this.isReversing === !this.$vuetify.rtl) ? 'tab-reverse-transition' : 'tab-transition'\n },\n displayedMonth (): number {\n return Number(this.tableDate.split('-')[1]) - 1\n },\n displayedYear (): number {\n return Number(this.tableDate.split('-')[0])\n },\n },\n\n watch: {\n tableDate (newVal: string, oldVal: string) {\n this.isReversing = newVal < oldVal\n },\n },\n\n mounted () {\n this.wheelThrottle = throttle(this.wheel, 250)\n },\n\n methods: {\n genButtonClasses (\n isAllowed: boolean,\n isFloating: boolean,\n isSelected: boolean,\n isCurrent: boolean,\n isFirst: boolean,\n isLast: boolean,\n ) {\n return {\n 'v-size--default': !isFloating,\n 'v-date-picker-table__current': isCurrent,\n 'v-btn--active': isSelected,\n 'v-btn--flat': !isAllowed || this.disabled,\n 'v-btn--text': isSelected === isCurrent,\n 'v-btn--rounded': isFloating,\n 'v-btn--disabled': !isAllowed || this.disabled,\n 'v-btn--outlined': isCurrent && !isSelected,\n 'v-date-picker--first-in-range': isFirst,\n 'v-date-picker--last-in-range': isLast,\n ...this.themeClasses,\n }\n },\n genButtonEvents (value: string, isAllowed: boolean, mouseEventType: string) {\n if (this.disabled) return undefined\n\n return mergeListeners({\n click: () => {\n if (isAllowed && !this.readonly) this.$emit('input', value)\n },\n }, createItemTypeNativeListeners(this, `:${mouseEventType}`, value))\n },\n genButton (value: string, isFloating: boolean, mouseEventType: string, formatter: DatePickerFormatter, isOtherMonth = false) {\n const isAllowed = isDateAllowed(value, this.min, this.max, this.allowedDates)\n const isSelected = this.isSelected(value) && isAllowed\n const isCurrent = value === this.current\n const setColor = isSelected ? this.setBackgroundColor : this.setTextColor\n const color = (isSelected || isCurrent) && (this.color || 'accent')\n let isFirst = false\n let isLast = false\n if (this.range && !!this.value && Array.isArray(this.value)) {\n isFirst = value === this.value[0]\n isLast = value === this.value[this.value.length - 1]\n }\n\n return this.$createElement('button', setColor(color, {\n staticClass: 'v-btn',\n class: this.genButtonClasses(\n isAllowed && !isOtherMonth,\n isFloating,\n isSelected,\n isCurrent,\n isFirst,\n isLast,\n ),\n attrs: {\n type: 'button',\n },\n domProps: {\n disabled: this.disabled || !isAllowed || isOtherMonth,\n },\n on: this.genButtonEvents(value, isAllowed, mouseEventType),\n }), [\n this.$createElement('div', {\n staticClass: 'v-btn__content',\n }, [formatter(value)]),\n this.genEvents(value),\n ])\n },\n getEventColors (date: string) {\n const arrayize = (v: string | string[]) => Array.isArray(v) ? v : [v]\n let eventData: boolean | DatePickerEventColorValue\n let eventColors: string[] = []\n\n if (Array.isArray(this.events)) {\n eventData = this.events.includes(date)\n } else if (this.events instanceof Function) {\n eventData = this.events(date) || false\n } else if (this.events) {\n eventData = this.events[date] || false\n } else {\n eventData = false\n }\n\n if (!eventData) {\n return []\n } else if (eventData !== true) {\n eventColors = arrayize(eventData)\n } else if (typeof this.eventColor === 'string') {\n eventColors = [this.eventColor]\n } else if (typeof this.eventColor === 'function') {\n eventColors = arrayize(this.eventColor(date))\n } else if (Array.isArray(this.eventColor)) {\n eventColors = this.eventColor\n } else {\n eventColors = arrayize(this.eventColor[date])\n }\n\n return eventColors.filter(v => v)\n },\n genEvents (date: string) {\n const eventColors = this.getEventColors(date)\n\n return eventColors.length ? this.$createElement('div', {\n staticClass: 'v-date-picker-table__events',\n }, eventColors.map(color => this.$createElement('div', this.setBackgroundColor(color)))) : null\n },\n isValidScroll (value: number, calculateTableDate: CalculateTableDateFunction) {\n const tableDate = calculateTableDate(value)\n // tableDate is 'YYYY-MM' for DateTable and 'YYYY' for MonthTable\n const sanitizeType = tableDate.split('-').length === 1 ? 'year' : 'month'\n return (value < 0 && (this.min ? tableDate >= sanitizeDateString(this.min, sanitizeType) : true)) ||\n (value > 0 && (this.max ? tableDate <= sanitizeDateString(this.max, sanitizeType) : true))\n },\n wheel (e: WheelEvent, calculateTableDate: CalculateTableDateFunction) {\n this.$emit('update:table-date', calculateTableDate(e.deltaY))\n },\n touch (value: number, calculateTableDate: CalculateTableDateFunction) {\n this.$emit('update:table-date', calculateTableDate(value))\n },\n genTable (staticClass: string, children: VNodeChildren, calculateTableDate: CalculateTableDateFunction) {\n const transition = this.$createElement('transition', {\n props: { name: this.computedTransition },\n }, [this.$createElement('table', { key: this.tableDate }, children)])\n\n const touchDirective = {\n name: 'touch',\n value: {\n left: (e: TouchWrapper) => (e.offsetX < -15) &&\n (this.isValidScroll(1, calculateTableDate) && this.touch(1, calculateTableDate)),\n right: (e: TouchWrapper) => (e.offsetX > 15) &&\n (this.isValidScroll(-1, calculateTableDate) && this.touch(-1, calculateTableDate)),\n },\n }\n\n return this.$createElement('div', {\n staticClass,\n class: {\n 'v-date-picker-table--disabled': this.disabled,\n ...this.themeClasses,\n },\n on: (!this.disabled && this.scrollable) ? {\n wheel: (e: WheelEvent) => {\n e.preventDefault()\n if (this.isValidScroll(e.deltaY, calculateTableDate)) { this.wheelThrottle(e, calculateTableDate) }\n },\n } : undefined,\n directives: [touchDirective],\n }, [transition])\n },\n isSelected (value: string): boolean {\n if (Array.isArray(this.value)) {\n if (this.range && this.value.length === 2) {\n const [from, to] = [...this.value].sort()\n return from <= value && value <= to\n } else {\n return this.value.indexOf(value) !== -1\n }\n }\n\n return value === this.value\n },\n },\n})\n"],"file":"date-picker-table.mjs"}
|
|
@@ -3,10 +3,12 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
import pad from "./pad.mjs";
|
|
5
5
|
|
|
6
|
-
function createNativeLocaleFormatter(locale, options
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
function createNativeLocaleFormatter(locale, options) {
|
|
7
|
+
let substrOptions = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {
|
|
8
|
+
start: 0,
|
|
9
|
+
length: 0
|
|
10
|
+
};
|
|
11
|
+
|
|
10
12
|
const makeIsoString = dateString => {
|
|
11
13
|
const [year, month, date] = dateString.trim().split(' ')[0].split('-');
|
|
12
14
|
return [pad(year, 4), pad(month || 1), pad(date || 1)].join('-');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/VDatePicker/util/createNativeLocaleFormatter.ts"],"names":["pad","createNativeLocaleFormatter","locale","options","substrOptions","start","length","makeIsoString","dateString","year","month","date","trim","split","join","intlFormatter","Intl","DateTimeFormat","undefined","format","Date","e","substr"],"mappings":"AAAA;;AACA;OAEOA,G;;AAmBP,SAASC,2BAAT,CACEC,MADF,EAEEC,OAFF,
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/VDatePicker/util/createNativeLocaleFormatter.ts"],"names":["pad","createNativeLocaleFormatter","locale","options","substrOptions","start","length","makeIsoString","dateString","year","month","date","trim","split","join","intlFormatter","Intl","DateTimeFormat","undefined","format","Date","e","substr"],"mappings":"AAAA;;AACA;OAEOA,G;;AAmBP,SAASC,2BAAT,CACEC,MADF,EAEEC,OAFF,EAImC;AAAA,MADjCC,aACiC,uEADF;AAAEC,IAAAA,KAAK,EAAE,CAAT;AAAYC,IAAAA,MAAM,EAAE;AAApB,GACE;;AACjC,QAAMC,aAAa,GAAIC,UAAD,IAAwB;AAC5C,UAAM,CAACC,IAAD,EAAOC,KAAP,EAAcC,IAAd,IAAsBH,UAAU,CAACI,IAAX,GAAkBC,KAAlB,CAAwB,GAAxB,EAA6B,CAA7B,EAAgCA,KAAhC,CAAsC,GAAtC,CAA5B;AACA,WAAO,CAACb,GAAG,CAACS,IAAD,EAAO,CAAP,CAAJ,EAAeT,GAAG,CAACU,KAAK,IAAI,CAAV,CAAlB,EAAgCV,GAAG,CAACW,IAAI,IAAI,CAAT,CAAnC,EAAgDG,IAAhD,CAAqD,GAArD,CAAP;AACD,GAHD;;AAKA,MAAI;AACF,UAAMC,aAAa,GAAG,IAAIC,IAAI,CAACC,cAAT,CAAwBf,MAAM,IAAIgB,SAAlC,EAA6Cf,OAA7C,CAAtB;AACA,WAAQK,UAAD,IAAwBO,aAAa,CAACI,MAAd,CAAqB,IAAIC,IAAJ,CAAU,GAAEb,aAAa,CAACC,UAAD,CAAa,iBAAtC,CAArB,CAA/B;AACD,GAHD,CAGE,OAAOa,CAAP,EAAU;AACV,WAAQjB,aAAa,CAACC,KAAd,IAAuBD,aAAa,CAACE,MAAtC,GACFE,UAAD,IAAwBD,aAAa,CAACC,UAAD,CAAb,CAA0Bc,MAA1B,CAAiClB,aAAa,CAACC,KAAd,IAAuB,CAAxD,EAA2DD,aAAa,CAACE,MAAzE,CADrB,GAEHY,SAFJ;AAGD;AACF;;AAED,eAAejB,2BAAf","sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n\nimport pad from './pad'\nimport { DatePickerFormatter } from 'vuetify/types'\n\ninterface SubstrOptions {\n start?: number\n length: number\n}\n\nfunction createNativeLocaleFormatter (\n local: string | undefined,\n options: Intl.DateTimeFormatOptions\n): DatePickerFormatter | undefined\n\nfunction createNativeLocaleFormatter (\n local: string | undefined,\n options: Intl.DateTimeFormatOptions,\n substrOptions: SubstrOptions\n): DatePickerFormatter\n\nfunction createNativeLocaleFormatter (\n locale: string | undefined,\n options: Intl.DateTimeFormatOptions,\n substrOptions: SubstrOptions = { start: 0, length: 0 }\n): DatePickerFormatter | undefined {\n const makeIsoString = (dateString: string) => {\n const [year, month, date] = dateString.trim().split(' ')[0].split('-')\n return [pad(year, 4), pad(month || 1), pad(date || 1)].join('-')\n }\n\n try {\n const intlFormatter = new Intl.DateTimeFormat(locale || undefined, options)\n return (dateString: string) => intlFormatter.format(new Date(`${makeIsoString(dateString)}T00:00:00+00:00`))\n } catch (e) {\n return (substrOptions.start || substrOptions.length)\n ? (dateString: string) => makeIsoString(dateString).substr(substrOptions.start || 0, substrOptions.length)\n : undefined\n }\n}\n\nexport default createNativeLocaleFormatter\n"],"file":"createNativeLocaleFormatter.mjs"}
|
|
@@ -19,5 +19,8 @@ const padStart = (string, targetLength, padString) => {
|
|
|
19
19
|
return padString.slice(0, targetLength) + String(string);
|
|
20
20
|
};
|
|
21
21
|
|
|
22
|
-
export default ((n
|
|
22
|
+
export default (function (n) {
|
|
23
|
+
let length = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 2;
|
|
24
|
+
return padStart(n, length, '0');
|
|
25
|
+
});
|
|
23
26
|
//# sourceMappingURL=pad.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/VDatePicker/util/pad.ts"],"names":["padStart","string","targetLength","padString","String","length","repeat","slice","n"],"mappings":"AAAA;;AACA;AAEA,MAAMA,QAAQ,GAAG,CAACC,MAAD,EAA0BC,YAA1B,EAAgDC,SAAhD,KAAsE;AACrFD,EAAAA,YAAY,GAAGA,YAAY,IAAI,CAA/B;AACAD,EAAAA,MAAM,GAAGG,MAAM,CAACH,MAAD,CAAf;AACAE,EAAAA,SAAS,GAAGC,MAAM,CAACD,SAAD,CAAlB;;AACA,MAAIF,MAAM,CAACI,MAAP,GAAgBH,YAApB,EAAkC;AAChC,WAAOE,MAAM,CAACH,MAAD,CAAb;AACD;;AAEDC,EAAAA,YAAY,GAAGA,YAAY,GAAGD,MAAM,CAACI,MAArC;;AACA,MAAIH,YAAY,GAAGC,SAAS,CAACE,MAA7B,EAAqC;AACnCF,IAAAA,SAAS,IAAIA,SAAS,CAACG,MAAV,CAAiBJ,YAAY,GAAGC,SAAS,CAACE,MAA1C,CAAb;AACD;;AACD,SAAOF,SAAS,CAACI,KAAV,CAAgB,CAAhB,EAAmBL,YAAnB,IAAmCE,MAAM,CAACH,MAAD,CAAhD;AACD,CAbD;;AAeA,gBAAe,
|
|
1
|
+
{"version":3,"sources":["../../../../src/components/VDatePicker/util/pad.ts"],"names":["padStart","string","targetLength","padString","String","length","repeat","slice","n"],"mappings":"AAAA;;AACA;AAEA,MAAMA,QAAQ,GAAG,CAACC,MAAD,EAA0BC,YAA1B,EAAgDC,SAAhD,KAAsE;AACrFD,EAAAA,YAAY,GAAGA,YAAY,IAAI,CAA/B;AACAD,EAAAA,MAAM,GAAGG,MAAM,CAACH,MAAD,CAAf;AACAE,EAAAA,SAAS,GAAGC,MAAM,CAACD,SAAD,CAAlB;;AACA,MAAIF,MAAM,CAACI,MAAP,GAAgBH,YAApB,EAAkC;AAChC,WAAOE,MAAM,CAACH,MAAD,CAAb;AACD;;AAEDC,EAAAA,YAAY,GAAGA,YAAY,GAAGD,MAAM,CAACI,MAArC;;AACA,MAAIH,YAAY,GAAGC,SAAS,CAACE,MAA7B,EAAqC;AACnCF,IAAAA,SAAS,IAAIA,SAAS,CAACG,MAAV,CAAiBJ,YAAY,GAAGC,SAAS,CAACE,MAA1C,CAAb;AACD;;AACD,SAAOF,SAAS,CAACI,KAAV,CAAgB,CAAhB,EAAmBL,YAAnB,IAAmCE,MAAM,CAACH,MAAD,CAAhD;AACD,CAbD;;AAeA,gBAAe,UAACO,CAAD;AAAA,MAAqBH,MAArB,uEAA8B,CAA9B;AAAA,SAAoCL,QAAQ,CAACQ,CAAD,EAAIH,MAAJ,EAAY,GAAZ,CAA5C;AAAA,CAAf","sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n\nconst padStart = (string: number | string, targetLength: number, padString: string) => {\n targetLength = targetLength >> 0\n string = String(string)\n padString = String(padString)\n if (string.length > targetLength) {\n return String(string)\n }\n\n targetLength = targetLength - string.length\n if (targetLength > padString.length) {\n padString += padString.repeat(targetLength / padString.length)\n }\n return padString.slice(0, targetLength) + String(string)\n}\n\nexport default (n: string | number, length = 2) => padStart(n, length, '0')\n"],"file":"pad.mjs"}
|
|
@@ -1,14 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
// Composables
|
|
2
|
+
import { provideDefaults } from "../../composables/defaults.mjs"; // Utilities
|
|
3
|
+
|
|
4
|
+
import { defineComponent, toRefs } from 'vue'; // Types
|
|
5
|
+
|
|
6
|
+
export const VDefaultsProvider = defineComponent({
|
|
7
|
+
name: 'VDefaultsProvider',
|
|
4
8
|
props: {
|
|
5
|
-
defaults: Object
|
|
9
|
+
defaults: Object,
|
|
10
|
+
reset: [Number, String],
|
|
11
|
+
root: Boolean,
|
|
12
|
+
scoped: Boolean
|
|
6
13
|
},
|
|
7
14
|
|
|
8
|
-
setup(props, {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
setup(props, _ref) {
|
|
16
|
+
let {
|
|
17
|
+
slots
|
|
18
|
+
} = _ref;
|
|
19
|
+
const {
|
|
20
|
+
defaults,
|
|
21
|
+
reset,
|
|
22
|
+
root,
|
|
23
|
+
scoped
|
|
24
|
+
} = toRefs(props);
|
|
25
|
+
provideDefaults(defaults, {
|
|
26
|
+
reset,
|
|
27
|
+
root,
|
|
28
|
+
scoped
|
|
29
|
+
});
|
|
12
30
|
return () => {
|
|
13
31
|
var _slots$default;
|
|
14
32
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VDefaultsProvider/VDefaultsProvider.tsx"],"names":["provideDefaults","defineComponent","props","defaults","Object","setup","slots","default"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/components/VDefaultsProvider/VDefaultsProvider.tsx"],"names":["provideDefaults","defineComponent","toRefs","VDefaultsProvider","name","props","defaults","Object","reset","Number","String","root","Boolean","scoped","setup","slots","default"],"mappings":"AAAA;SACSA,e,0CAET;;AACA,SAASC,eAAT,EAA0BC,MAA1B,QAAwC,KAAxC,C,CAEA;;AAIA,OAAO,MAAMC,iBAAiB,GAAGF,eAAe,CAAC;AAC/CG,EAAAA,IAAI,EAAE,mBADyC;AAG/CC,EAAAA,KAAK,EAAE;AACLC,IAAAA,QAAQ,EAAEC,MADL;AAELC,IAAAA,KAAK,EAAE,CAACC,MAAD,EAASC,MAAT,CAFF;AAGLC,IAAAA,IAAI,EAAEC,OAHD;AAILC,IAAAA,MAAM,EAAED;AAJH,GAHwC;;AAU/CE,EAAAA,KAAK,CAAET,KAAF,QAAoB;AAAA,QAAX;AAAEU,MAAAA;AAAF,KAAW;AACvB,UAAM;AAAET,MAAAA,QAAF;AAAYE,MAAAA,KAAZ;AAAmBG,MAAAA,IAAnB;AAAyBE,MAAAA;AAAzB,QAAoCX,MAAM,CAACG,KAAD,CAAhD;AAEAL,IAAAA,eAAe,CAACM,QAAD,EAAW;AACxBE,MAAAA,KADwB;AAExBG,MAAAA,IAFwB;AAGxBE,MAAAA;AAHwB,KAAX,CAAf;AAMA,WAAO;AAAA;;AAAA,+BAAME,KAAK,CAACC,OAAZ,qBAAM,oBAAAD,KAAK,CAAX;AAAA,KAAP;AACD;;AApB8C,CAAD,CAAzC","sourcesContent":["// Composables\nimport { provideDefaults } from '@/composables/defaults'\n\n// Utilities\nimport { defineComponent, toRefs } from 'vue'\n\n// Types\nimport type { DefaultsOptions } from '@/composables/defaults'\nimport type { PropType } from 'vue'\n\nexport const VDefaultsProvider = defineComponent({\n name: 'VDefaultsProvider',\n\n props: {\n defaults: Object as PropType<DefaultsOptions>,\n reset: [Number, String],\n root: Boolean,\n scoped: Boolean,\n },\n\n setup (props, { slots }) {\n const { defaults, reset, root, scoped } = toRefs(props)\n\n provideDefaults(defaults, {\n reset,\n root,\n scoped,\n })\n\n return () => slots.default?.()\n },\n})\n"],"file":"VDefaultsProvider.mjs"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { VDefaultsProvider } from "./VDefaultsProvider.mjs";
|
|
2
2
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VDefaultsProvider/index.ts"],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../src/components/VDefaultsProvider/index.ts"],"names":["VDefaultsProvider"],"mappings":"SAASA,iB","sourcesContent":["export { VDefaultsProvider } from './VDefaultsProvider'\n"],"file":"index.mjs"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
.v-dialog {
|
|
2
|
+
z-index: 2400;
|
|
3
|
+
align-items: center;
|
|
4
|
+
justify-content: center;
|
|
5
|
+
}
|
|
6
|
+
.v-dialog .v-overlay__content {
|
|
7
|
+
max-height: 360px;
|
|
8
|
+
min-width: 240px;
|
|
9
|
+
max-width: 560px;
|
|
10
|
+
border-radius: 4px;
|
|
11
|
+
}
|
|
12
|
+
@media (max-width: 959.98px) {
|
|
13
|
+
.v-dialog .v-overlay__content {
|
|
14
|
+
max-width: 280px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
.v-dialog .v-overlay__content > .v-card,
|
|
18
|
+
.v-dialog .v-overlay__content > .v-sheet {
|
|
19
|
+
border-radius: inherit;
|
|
20
|
+
overflow: hidden;
|
|
21
|
+
box-shadow: 0px 11px 15px -7px rgba(0, 0, 0, 0.2), 0px 24px 38px 3px rgba(0, 0, 0, 0.14), 0px 9px 46px 8px rgba(0, 0, 0, 0.12);
|
|
22
|
+
}
|
|
23
|
+
.v-dialog .v-overlay__content > .v-card > .v-card-avatar {
|
|
24
|
+
padding: 0;
|
|
25
|
+
}
|
|
26
|
+
.v-dialog .v-overlay__content > .v-card > .v-card-header {
|
|
27
|
+
padding: 14px 24px 0;
|
|
28
|
+
}
|
|
29
|
+
.v-dialog .v-overlay__content > .v-card > .v-card-header + .v-card-text {
|
|
30
|
+
padding-top: 10px;
|
|
31
|
+
}
|
|
32
|
+
.v-dialog .v-overlay__content > .v-card > .v-card-text {
|
|
33
|
+
font-size: inherit;
|
|
34
|
+
letter-spacing: 0.03125em;
|
|
35
|
+
line-height: inherit;
|
|
36
|
+
padding: 16px 24px 10px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.v-dialog--fullscreen {
|
|
40
|
+
--v-scrollbar-offset: 0px;
|
|
41
|
+
}
|
|
42
|
+
.v-dialog--fullscreen .v-overlay__content {
|
|
43
|
+
border-radius: 0;
|
|
44
|
+
margin: 0;
|
|
45
|
+
width: 100%;
|
|
46
|
+
height: 100%;
|
|
47
|
+
max-width: 100%;
|
|
48
|
+
max-height: 100%;
|
|
49
|
+
overflow-y: auto;
|
|
50
|
+
top: 0;
|
|
51
|
+
left: 0;
|
|
52
|
+
}
|
|
53
|
+
.v-dialog--fullscreen .v-overlay__content > .v-card,
|
|
54
|
+
.v-dialog--fullscreen .v-overlay__content > .v-sheet {
|
|
55
|
+
min-height: 100%;
|
|
56
|
+
min-width: 100%;
|
|
57
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createVNode as _createVNode, mergeProps as _mergeProps, resolveDirective as _resolveDirective } from "vue";
|
|
2
2
|
// Styles
|
|
3
|
-
import "./VDialog.
|
|
3
|
+
import "./VDialog.css"; // Components
|
|
4
4
|
|
|
5
5
|
import { VDialogTransition } from "../transitions/index.mjs";
|
|
6
6
|
import { VOverlay } from "../VOverlay/index.mjs"; // Composables
|
|
@@ -9,13 +9,13 @@ import { makeDimensionProps, useDimension } from "../../composables/dimensions.m
|
|
|
9
9
|
import { makeTransitionProps } from "../../composables/transition.mjs";
|
|
10
10
|
import { useProxiedModel } from "../../composables/proxiedModel.mjs"; // Utilities
|
|
11
11
|
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
12
|
+
import { nextTick, ref, watch } from 'vue';
|
|
13
|
+
import { genericComponent, IN_BROWSER } from "../../util/index.mjs"; // Types
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
export default defineComponent({
|
|
15
|
+
export const VDialog = genericComponent()({
|
|
17
16
|
name: 'VDialog',
|
|
18
|
-
|
|
17
|
+
inheritAttrs: false,
|
|
18
|
+
props: {
|
|
19
19
|
fullscreen: Boolean,
|
|
20
20
|
origin: {
|
|
21
21
|
type: String,
|
|
@@ -35,15 +35,16 @@ export default defineComponent({
|
|
|
35
35
|
component: VDialogTransition
|
|
36
36
|
}
|
|
37
37
|
})
|
|
38
|
-
}
|
|
38
|
+
},
|
|
39
39
|
emits: {
|
|
40
40
|
'update:modelValue': value => true
|
|
41
41
|
},
|
|
42
42
|
|
|
43
|
-
setup(props, {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
setup(props, _ref) {
|
|
44
|
+
let {
|
|
45
|
+
attrs,
|
|
46
|
+
slots
|
|
47
|
+
} = _ref;
|
|
47
48
|
const isActive = useProxiedModel(props, 'modelValue');
|
|
48
49
|
const {
|
|
49
50
|
dimensionStyles
|
|
@@ -56,25 +57,25 @@ export default defineComponent({
|
|
|
56
57
|
const before = e.relatedTarget;
|
|
57
58
|
const after = e.target;
|
|
58
59
|
|
|
59
|
-
if (before !== after && (_overlay$value = overlay.value) != null && _overlay$value.
|
|
60
|
-
![document, overlay.value.
|
|
61
|
-
!overlay.value.
|
|
60
|
+
if (before !== after && (_overlay$value = overlay.value) != null && _overlay$value.contentEl && // It isn't the document or the dialog body
|
|
61
|
+
![document, overlay.value.contentEl].includes(after) && // It isn't inside the dialog body
|
|
62
|
+
!overlay.value.contentEl.contains(after) // We're the topmost dialog
|
|
62
63
|
// TODO: this.activeZIndex >= this.getMaxZIndex() &&
|
|
63
64
|
// It isn't inside a dependent element (like a menu)
|
|
64
65
|
// TODO: !this.getOpenDependentElements().some(el => el.contains(target))
|
|
65
66
|
// So we must have focused something outside the dialog and its children
|
|
66
67
|
) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
const focusable = [...overlay.value.contentEl.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')].filter(el => !el.hasAttribute('disabled'));
|
|
69
|
+
if (!focusable.length) return;
|
|
70
|
+
const firstElement = focusable[0];
|
|
71
|
+
const lastElement = focusable[focusable.length - 1];
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
73
|
+
if (before === firstElement) {
|
|
74
|
+
lastElement.focus();
|
|
75
|
+
} else {
|
|
76
|
+
firstElement.focus();
|
|
77
77
|
}
|
|
78
|
+
}
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
if (IN_BROWSER) {
|
|
@@ -85,30 +86,24 @@ export default defineComponent({
|
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
88
|
|
|
88
|
-
|
|
89
|
+
watch(isActive, async val => {
|
|
90
|
+
await nextTick();
|
|
89
91
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
...data
|
|
93
|
-
}) => {
|
|
94
|
-
var _slots$activator;
|
|
92
|
+
if (val) {
|
|
93
|
+
var _contentEl;
|
|
95
94
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}
|
|
102
|
-
})
|
|
103
|
-
});
|
|
104
|
-
};
|
|
95
|
+
(_contentEl = overlay.value.contentEl) == null ? void 0 : _contentEl.focus({
|
|
96
|
+
preventScroll: true
|
|
97
|
+
});
|
|
98
|
+
} else {
|
|
99
|
+
var _activatorEl;
|
|
105
100
|
|
|
101
|
+
(_activatorEl = overlay.value.activatorEl) == null ? void 0 : _activatorEl.focus({
|
|
102
|
+
preventScroll: true
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
106
|
return () => {
|
|
107
|
-
const transition = mergeProps({
|
|
108
|
-
target: activatorElement.value
|
|
109
|
-
}, typeof props.transition === 'string' ? {
|
|
110
|
-
name: props.transition
|
|
111
|
-
} : props.transition);
|
|
112
107
|
return _createVNode(VOverlay, _mergeProps({
|
|
113
108
|
"modelValue": isActive.value,
|
|
114
109
|
"onUpdate:modelValue": $event => isActive.value = $event,
|
|
@@ -116,14 +111,18 @@ export default defineComponent({
|
|
|
116
111
|
'v-dialog--fullscreen': props.fullscreen
|
|
117
112
|
}],
|
|
118
113
|
"style": dimensionStyles.value,
|
|
119
|
-
"transition": transition,
|
|
114
|
+
"transition": props.transition,
|
|
120
115
|
"ref": overlay,
|
|
121
116
|
"aria-role": "dialog",
|
|
122
|
-
"aria-modal": "true"
|
|
117
|
+
"aria-modal": "true",
|
|
118
|
+
"activatorProps": {
|
|
119
|
+
'aria-haspopup': 'dialog',
|
|
120
|
+
'aria-expanded': String(isActive.value)
|
|
121
|
+
}
|
|
123
122
|
}, attrs), {
|
|
124
123
|
default: slots.default,
|
|
125
|
-
activator
|
|
126
|
-
}
|
|
124
|
+
activator: slots.activator
|
|
125
|
+
});
|
|
127
126
|
};
|
|
128
127
|
}
|
|
129
128
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/VDialog/VDialog.tsx"],"names":["VDialogTransition","VOverlay","makeDimensionProps","useDimension","makeTransitionProps","useProxiedModel","
|
|
1
|
+
{"version":3,"sources":["../../../src/components/VDialog/VDialog.tsx"],"names":["VDialogTransition","VOverlay","makeDimensionProps","useDimension","makeTransitionProps","useProxiedModel","nextTick","ref","watch","genericComponent","IN_BROWSER","VDialog","name","inheritAttrs","props","fullscreen","Boolean","origin","type","String","default","retainFocus","scrollable","modelValue","width","transition","component","emits","value","setup","attrs","slots","isActive","dimensionStyles","overlay","onFocusin","e","before","relatedTarget","after","target","contentEl","document","includes","contains","focusable","querySelectorAll","filter","el","hasAttribute","length","firstElement","lastElement","focus","val","addEventListener","removeEventListener","immediate","preventScroll","activatorEl","activator"],"mappings":";AAAA;AACA,uB,CAEA;;SACSA,iB;SACAC,Q,iCAET;;SACSC,kB,EAAoBC,Y;SACpBC,mB;SACAC,e,8CAET;;AACA,SAASC,QAAT,EAAmBC,GAAnB,EAAwBC,KAAxB,QAAqC,KAArC;SACSC,gB,EAAkBC,U,gCAE3B;;AAGA,OAAO,MAAMC,OAAO,GAAGF,gBAAgB,GAElC;AACHG,EAAAA,IAAI,EAAE,SADH;AAGHC,EAAAA,YAAY,EAAE,KAHX;AAKHC,EAAAA,KAAK,EAAE;AACLC,IAAAA,UAAU,EAAEC,OADP;AAELC,IAAAA,MAAM,EAAE;AACNC,MAAAA,IAAI,EAAEC,MADA;AAENC,MAAAA,OAAO,EAAE;AAFH,KAFH;AAMLC,IAAAA,WAAW,EAAE;AACXH,MAAAA,IAAI,EAAEF,OADK;AAEXI,MAAAA,OAAO,EAAE;AAFE,KANR;AAULE,IAAAA,UAAU,EAAEN,OAVP;AAWLO,IAAAA,UAAU,EAAEP,OAXP;AAaL,OAAGd,kBAAkB,CAAC;AAAEsB,MAAAA,KAAK,EAAE;AAAT,KAAD,CAbhB;AAcL,OAAGpB,mBAAmB,CAAC;AACrBqB,MAAAA,UAAU,EAAE;AAAEC,QAAAA,SAAS,EAAE1B;AAAb;AADS,KAAD;AAdjB,GALJ;AAwBH2B,EAAAA,KAAK,EAAE;AACL,yBAAsBC,KAAD,IAAoB;AADpC,G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B;AAFV,OAnBb;AAyBD,KA1BD;AA2BD;;AA/GE,CAFkC,CAAhC","sourcesContent":["// Styles\nimport './VDialog.sass'\n\n// Components\nimport { VDialogTransition } from '@/components/transitions'\nimport { VOverlay } from '@/components/VOverlay'\n\n// Composables\nimport { makeDimensionProps, useDimension } from '@/composables/dimensions'\nimport { makeTransitionProps } from '@/composables/transition'\nimport { useProxiedModel } from '@/composables/proxiedModel'\n\n// Utilities\nimport { nextTick, ref, watch } from 'vue'\nimport { genericComponent, IN_BROWSER } from '@/util'\n\n// Types\nimport type { OverlaySlots } from '@/components/VOverlay/VOverlay'\n\nexport const VDialog = genericComponent<new () => {\n $slots: OverlaySlots\n}>()({\n name: 'VDialog',\n\n inheritAttrs: false,\n\n props: {\n fullscreen: Boolean,\n origin: {\n type: String,\n default: 'center center',\n },\n retainFocus: {\n type: Boolean,\n default: true,\n },\n scrollable: Boolean,\n modelValue: Boolean,\n\n ...makeDimensionProps({ width: 'auto' }),\n ...makeTransitionProps({\n transition: { component: VDialogTransition },\n }),\n },\n\n emits: {\n 'update:modelValue': (value: boolean) => true,\n },\n\n setup (props, { attrs, slots }) {\n const isActive = useProxiedModel(props, 'modelValue')\n const { dimensionStyles } = useDimension(props)\n\n const overlay = ref<VOverlay>()\n function onFocusin (e: FocusEvent) {\n const before = e.relatedTarget as HTMLElement | null\n const after = e.target as HTMLElement | null\n\n if (\n before !== after &&\n overlay.value?.contentEl &&\n // It isn't the document or the dialog body\n ![document, overlay.value.contentEl].includes(after!) &&\n // It isn't inside the dialog body\n !overlay.value.contentEl.contains(after)\n // We're the topmost dialog\n // TODO: this.activeZIndex >= this.getMaxZIndex() &&\n // It isn't inside a dependent element (like a menu)\n // TODO: !this.getOpenDependentElements().some(el => el.contains(target))\n // So we must have focused something outside the dialog and its children\n ) {\n const focusable = [...overlay.value.contentEl.querySelectorAll(\n 'button, [href], input, select, textarea, [tabindex]:not([tabindex=\"-1\"])'\n )].filter(el => !el.hasAttribute('disabled')) as HTMLElement[]\n\n if (!focusable.length) return\n\n const firstElement = focusable[0]\n const lastElement = focusable[focusable.length - 1]\n\n if (before === firstElement) {\n lastElement.focus()\n } else {\n firstElement.focus()\n }\n }\n }\n\n if (IN_BROWSER) {\n watch(() => isActive.value && props.retainFocus, val => {\n val\n ? document.addEventListener('focusin', onFocusin)\n : document.removeEventListener('focusin', onFocusin)\n }, { immediate: true })\n }\n\n watch(isActive, async val => {\n await nextTick()\n if (val) {\n overlay.value!.contentEl?.focus({ preventScroll: true })\n } else {\n overlay.value!.activatorEl?.focus({ preventScroll: true })\n }\n })\n\n return () => {\n return (\n <VOverlay\n v-model={ isActive.value }\n class={[\n 'v-dialog',\n {\n 'v-dialog--fullscreen': props.fullscreen,\n },\n ]}\n style={ dimensionStyles.value }\n transition={ props.transition }\n ref={ overlay }\n aria-role=\"dialog\"\n aria-modal=\"true\"\n activatorProps={{\n 'aria-haspopup': 'dialog',\n 'aria-expanded': String(isActive.value),\n }}\n { ...attrs }\n v-slots={{\n default: slots.default,\n activator: slots.activator,\n }}\n />\n )\n }\n },\n})\n\nexport type VDialog = InstanceType<typeof VDialog>\n"],"file":"VDialog.mjs"}
|
|
@@ -1,19 +1,30 @@
|
|
|
1
|
-
@
|
|
1
|
+
@forward './variables'
|
|
2
|
+
@use '../../styles/tools'
|
|
3
|
+
@use './variables' as *
|
|
2
4
|
|
|
3
5
|
// Block
|
|
4
6
|
.v-dialog
|
|
5
7
|
z-index: $dialog-z-index
|
|
8
|
+
align-items: center
|
|
9
|
+
justify-content: center
|
|
6
10
|
|
|
7
11
|
.v-overlay__content
|
|
8
12
|
max-height: $dialog-overlay-content-max-height
|
|
9
13
|
min-width: $dialog-overlay-content-min-width
|
|
10
14
|
max-width: $dialog-overlay-content-max-width
|
|
11
15
|
|
|
12
|
-
@include rounded($dialog-overlay-content-border-radius)
|
|
16
|
+
@include tools.rounded($dialog-overlay-content-border-radius)
|
|
13
17
|
|
|
14
18
|
@media #{$dialog-overlay-content-mobile-breakpoint}
|
|
15
19
|
max-width: $dialog-overlay-content-mobile-max-width
|
|
16
20
|
|
|
21
|
+
> .v-card,
|
|
22
|
+
> .v-sheet
|
|
23
|
+
border-radius: inherit
|
|
24
|
+
overflow: hidden
|
|
25
|
+
|
|
26
|
+
@include tools.elevation($dialog-elevation)
|
|
27
|
+
|
|
17
28
|
> .v-card
|
|
18
29
|
> .v-card-avatar
|
|
19
30
|
padding: $dialog-card-avatar-padding
|
|
@@ -38,6 +49,13 @@
|
|
|
38
49
|
margin: 0
|
|
39
50
|
width: 100%
|
|
40
51
|
height: 100%
|
|
52
|
+
max-width: 100%
|
|
53
|
+
max-height: 100%
|
|
41
54
|
overflow-y: auto
|
|
42
55
|
top: 0
|
|
43
56
|
left: 0
|
|
57
|
+
|
|
58
|
+
> .v-card,
|
|
59
|
+
> .v-sheet
|
|
60
|
+
min-height: 100%
|
|
61
|
+
min-width: 100%
|
|
@@ -1,13 +1,18 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../../styles/settings';
|
|
3
|
+
@use '../../styles/tools';
|
|
4
|
+
|
|
1
5
|
// Defaults
|
|
2
|
-
$dialog-
|
|
6
|
+
$dialog-elevation: 24 !default;
|
|
7
|
+
$dialog-z-index: $dialog-elevation * 100 !default;
|
|
3
8
|
$dialog-card-avatar-padding: 0 !default;
|
|
4
9
|
$dialog-card-header-padding: 14px 24px 0 !default;
|
|
5
10
|
$dialog-card-header-text-padding-top: 10px !default;
|
|
6
11
|
$dialog-card-text-padding: 16px 24px 10px !default;
|
|
7
|
-
$dialog-card-text-letter-spacing: map-deep-get(
|
|
8
|
-
$dialog-overlay-content-border-radius:
|
|
12
|
+
$dialog-card-text-letter-spacing: tools.map-deep-get(settings.$typography, 'body-1', 'letter-spacing') !default;
|
|
13
|
+
$dialog-overlay-content-border-radius: settings.$border-radius-root !default;
|
|
9
14
|
$dialog-overlay-content-max-width: 560px !default;
|
|
10
15
|
$dialog-overlay-content-max-height: 360px !default;
|
|
11
16
|
$dialog-overlay-content-min-width: 240px !default;
|
|
12
|
-
$dialog-overlay-content-mobile-breakpoint: map
|
|
17
|
+
$dialog-overlay-content-mobile-breakpoint: map.get(settings.$display-breakpoints, 'sm-and-down') !default;
|
|
13
18
|
$dialog-overlay-content-mobile-max-width: 280px !default;
|