@dimailn/vuetify 2.7.2-alpha26 → 2.7.2-alpha27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vuetify.js +1109 -1021
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +1 -1
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VAlert/VAlert.js +1 -0
- package/es5/components/VAlert/VAlert.js.map +1 -1
- package/es5/components/VAppBar/VAppBar.js +17 -6
- package/es5/components/VAppBar/VAppBar.js.map +1 -1
- package/es5/components/VBadge/VBadge.js +1 -0
- package/es5/components/VBadge/VBadge.js.map +1 -1
- package/es5/components/VBanner/VBanner.js +11 -12
- package/es5/components/VBanner/VBanner.js.map +1 -1
- package/es5/components/VBottomNavigation/VBottomNavigation.js +8 -7
- package/es5/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/es5/components/VBtn/VBtn.js +2 -2
- package/es5/components/VBtn/VBtn.js.map +1 -1
- package/es5/components/VCalendar/VCalendar.js +27 -29
- package/es5/components/VCalendar/VCalendar.js.map +1 -1
- package/es5/components/VCalendar/VCalendarCategory.js +26 -34
- package/es5/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/es5/components/VCalendar/VCalendarDaily.js +43 -60
- package/es5/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/es5/components/VCalendar/VCalendarMonthly.js +2 -2
- package/es5/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/es5/components/VCalendar/VCalendarWeekly.js +26 -35
- package/es5/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-base.js +5 -10
- package/es5/components/VCalendar/mixins/calendar-base.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-events.js +43 -58
- package/es5/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js +2 -2
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/es5/components/VCalendar/mixins/times.js.map +1 -1
- package/es5/components/VCarousel/VCarousel.js +10 -9
- package/es5/components/VCarousel/VCarousel.js.map +1 -1
- package/es5/components/VCheckbox/VCheckbox.js +31 -2
- package/es5/components/VCheckbox/VCheckbox.js.map +1 -1
- package/es5/components/VCheckbox/VSimpleCheckbox.js +0 -3
- package/es5/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/es5/components/VChip/VChip.js +14 -6
- package/es5/components/VChip/VChip.js.map +1 -1
- package/es5/components/VData/VData.js +1 -0
- package/es5/components/VData/VData.js.map +1 -1
- package/es5/components/VDataIterator/VDataFooter.js +1 -0
- package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
- package/es5/components/VDataIterator/VDataIterator.js +1 -0
- package/es5/components/VDataIterator/VDataIterator.js.map +1 -1
- package/es5/components/VDataTable/VDataTable.js +1 -6
- package/es5/components/VDataTable/VDataTable.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js +1 -0
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderMobile.js +1 -0
- package/es5/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/es5/components/VDataTable/VEditDialog.js +19 -18
- package/es5/components/VDataTable/VEditDialog.js.map +1 -1
- package/es5/components/VDataTable/mixins/header.js +0 -6
- package/es5/components/VDataTable/mixins/header.js.map +1 -1
- package/es5/components/VDatePicker/VDatePicker.js +13 -18
- package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerHeader.js +48 -26
- package/es5/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerMonthTable.js +6 -3
- package/es5/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerTitle.js +4 -3
- package/es5/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerYears.js +11 -12
- package/es5/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/es5/components/VDatePicker/mixins/date-picker-table.js +16 -13
- package/es5/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/VDatePicker/util/createNativeLocaleFormatter.js +4 -0
- package/es5/components/VDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/es5/components/VDialog/VDialog.js +1 -0
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanel.js +1 -0
- package/es5/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js +1 -10
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/es5/components/VFileInput/VFileInput.js +1 -0
- package/es5/components/VFileInput/VFileInput.js.map +1 -1
- package/es5/components/VForm/VForm.js +1 -0
- package/es5/components/VForm/VForm.js.map +1 -1
- package/es5/components/VHover/VHover.js +1 -0
- package/es5/components/VHover/VHover.js.map +1 -1
- package/es5/components/VImg/VImg.js +3 -5
- package/es5/components/VImg/VImg.js.map +1 -1
- package/es5/components/VInput/VInput.js +1 -0
- package/es5/components/VInput/VInput.js.map +1 -1
- package/es5/components/VItemGroup/VItem.js +2 -1
- package/es5/components/VItemGroup/VItem.js.map +1 -1
- package/es5/components/VItemGroup/VItemGroup.js +5 -1
- package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
- package/es5/components/VLazy/VLazy.js +8 -15
- package/es5/components/VLazy/VLazy.js.map +1 -1
- package/es5/components/VList/VListGroup.js +3 -11
- package/es5/components/VList/VListGroup.js.map +1 -1
- package/es5/components/VList/VListItem.js +26 -12
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VList/VListItemAction.js +23 -9
- package/es5/components/VList/VListItemAction.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +1 -0
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js +1 -7
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +1 -5
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverflowBtn/VOverflowBtn.js +1 -0
- package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/es5/components/VOverlay/VOverlay.js +1 -0
- package/es5/components/VOverlay/VOverlay.js.map +1 -1
- package/es5/components/VPagination/VPagination.js +1 -3
- package/es5/components/VPagination/VPagination.js.map +1 -1
- package/es5/components/VPicker/VPicker.js +2 -3
- package/es5/components/VPicker/VPicker.js.map +1 -1
- package/es5/components/VProgressCircular/VProgressCircular.js +1 -10
- package/es5/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/es5/components/VProgressLinear/VProgressLinear.js +4 -12
- package/es5/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/es5/components/VRadioGroup/VRadio.js +1 -0
- package/es5/components/VRadioGroup/VRadio.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +111 -64
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSelect/VSelectList.js +13 -17
- package/es5/components/VSelect/VSelectList.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +1 -4
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideItem.js +2 -1
- package/es5/components/VSlideGroup/VSlideItem.js.map +1 -1
- package/es5/components/VSlider/VSlider.js +0 -3
- package/es5/components/VSlider/VSlider.js.map +1 -1
- package/es5/components/VSnackbar/VSnackbar.js +1 -0
- package/es5/components/VSnackbar/VSnackbar.js.map +1 -1
- package/es5/components/VSparkline/VSparkline.js +48 -68
- package/es5/components/VSparkline/VSparkline.js.map +1 -1
- package/es5/components/VSpeedDial/VSpeedDial.js +4 -10
- package/es5/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/es5/components/VStepper/VStepper.js +1 -0
- package/es5/components/VStepper/VStepper.js.map +1 -1
- package/es5/components/VStepper/VStepperStep.js +11 -19
- package/es5/components/VStepper/VStepperStep.js.map +1 -1
- package/es5/components/VSwitch/VSwitch.js +1 -3
- package/es5/components/VSwitch/VSwitch.js.map +1 -1
- package/es5/components/VTabs/VTab.js +1 -0
- package/es5/components/VTabs/VTab.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +11 -4
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/VTabs/VTabsItems.js +1 -0
- package/es5/components/VTabs/VTabsItems.js.map +1 -1
- package/es5/components/VTextField/VTextField.js +31 -27
- package/es5/components/VTextField/VTextField.js.map +1 -1
- package/es5/components/VTimePicker/VTimePicker.js +72 -44
- package/es5/components/VTimePicker/VTimePicker.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerClock.js +37 -48
- package/es5/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerTitle.js +13 -11
- package/es5/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/es5/components/VToolbar/VToolbar.js +1 -3
- package/es5/components/VToolbar/VToolbar.js.map +1 -1
- package/es5/components/VTooltip/VTooltip.js +6 -3
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/components/VVirtualScroll/VVirtualScroll.js +0 -3
- package/es5/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/es5/components/VWindow/VWindow.js +0 -3
- package/es5/components/VWindow/VWindow.js.map +1 -1
- package/es5/components/VWindow/VWindowItem.js +1 -5
- package/es5/components/VWindow/VWindowItem.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/mixins/detachable/index.js +9 -5
- package/es5/mixins/detachable/index.js.map +1 -1
- package/lib/components/VAlert/VAlert.js +1 -0
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VAppBar/VAppBar.js +17 -6
- package/lib/components/VAppBar/VAppBar.js.map +1 -1
- package/lib/components/VBadge/VBadge.js +1 -0
- package/lib/components/VBadge/VBadge.js.map +1 -1
- package/lib/components/VBanner/VBanner.js +7 -11
- package/lib/components/VBanner/VBanner.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.js +8 -7
- package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/lib/components/VBtn/VBtn.js +2 -2
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VCalendar/VCalendar.js +26 -31
- package/lib/components/VCalendar/VCalendar.js.map +1 -1
- package/lib/components/VCalendar/VCalendarCategory.js +8 -10
- package/lib/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/lib/components/VCalendar/VCalendarDaily.js +21 -33
- package/lib/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/lib/components/VCalendar/VCalendarMonthly.js +2 -2
- package/lib/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/lib/components/VCalendar/VCalendarWeekly.js +17 -30
- package/lib/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-base.js +7 -11
- package/lib/components/VCalendar/mixins/calendar-base.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-events.js +16 -39
- package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js +2 -2
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/lib/components/VCalendar/mixins/times.js.map +1 -1
- package/lib/components/VCarousel/VCarousel.js +12 -11
- package/lib/components/VCarousel/VCarousel.js.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.js +14 -1
- package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
- package/lib/components/VCheckbox/VSimpleCheckbox.js +0 -3
- package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/lib/components/VChip/VChip.js +14 -6
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VData/VData.js +1 -0
- package/lib/components/VData/VData.js.map +1 -1
- package/lib/components/VDataIterator/VDataFooter.js +1 -0
- package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
- package/lib/components/VDataIterator/VDataIterator.js +1 -0
- package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.js +2 -7
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js +1 -0
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderMobile.js +1 -0
- package/lib/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/lib/components/VDataTable/VEditDialog.js +15 -14
- package/lib/components/VDataTable/VEditDialog.js.map +1 -1
- package/lib/components/VDataTable/mixins/header.js +0 -5
- package/lib/components/VDataTable/mixins/header.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +11 -16
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js +33 -20
- package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonthTable.js +3 -1
- package/lib/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerTitle.js +4 -3
- package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.js +8 -9
- package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.js +17 -13
- package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js +4 -0
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +1 -0
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.js +1 -0
- package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +1 -4
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.js +1 -0
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VForm/VForm.js +1 -0
- package/lib/components/VForm/VForm.js.map +1 -1
- package/lib/components/VHover/VHover.js +1 -0
- package/lib/components/VHover/VHover.js.map +1 -1
- package/lib/components/VImg/VImg.js +2 -6
- package/lib/components/VImg/VImg.js.map +1 -1
- package/lib/components/VInput/VInput.js +1 -0
- package/lib/components/VInput/VInput.js.map +1 -1
- package/lib/components/VItemGroup/VItem.js +2 -1
- package/lib/components/VItemGroup/VItem.js.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.js +6 -1
- package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
- package/lib/components/VLazy/VLazy.js +8 -15
- package/lib/components/VLazy/VLazy.js.map +1 -1
- package/lib/components/VList/VListGroup.js +3 -5
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.js +25 -14
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/VListItemAction.js +15 -9
- package/lib/components/VList/VListItemAction.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +1 -0
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js +1 -6
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +2 -6
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.js +1 -0
- package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.js +1 -0
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VPagination/VPagination.js +1 -3
- package/lib/components/VPagination/VPagination.js.map +1 -1
- package/lib/components/VPicker/VPicker.js +3 -3
- package/lib/components/VPicker/VPicker.js.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.js +1 -4
- package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.js +4 -6
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VRadioGroup/VRadio.js +1 -0
- package/lib/components/VRadioGroup/VRadio.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +64 -19
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelect/VSelectList.js +13 -15
- package/lib/components/VSelect/VSelectList.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +1 -4
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideItem.js +2 -1
- package/lib/components/VSlideGroup/VSlideItem.js.map +1 -1
- package/lib/components/VSlider/VSlider.js +0 -3
- package/lib/components/VSlider/VSlider.js.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.js +1 -0
- package/lib/components/VSnackbar/VSnackbar.js.map +1 -1
- package/lib/components/VSparkline/VSparkline.js +48 -67
- package/lib/components/VSparkline/VSparkline.js.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.js +3 -9
- package/lib/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/lib/components/VStepper/VStepper.js +1 -0
- package/lib/components/VStepper/VStepper.js.map +1 -1
- package/lib/components/VStepper/VStepperStep.js +7 -18
- package/lib/components/VStepper/VStepperStep.js.map +1 -1
- package/lib/components/VSwitch/VSwitch.js +1 -3
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VTabs/VTab.js +1 -0
- package/lib/components/VTabs/VTab.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +14 -4
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTabs/VTabsItems.js +1 -0
- package/lib/components/VTabs/VTabsItems.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +6 -15
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTimePicker/VTimePicker.js +65 -31
- package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerClock.js +24 -39
- package/lib/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerTitle.js +3 -2
- package/lib/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/lib/components/VToolbar/VToolbar.js +1 -3
- package/lib/components/VToolbar/VToolbar.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.js +1 -2
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.js +0 -3
- package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/lib/components/VWindow/VWindow.js +0 -3
- package/lib/components/VWindow/VWindow.js.map +1 -1
- package/lib/components/VWindow/VWindowItem.js +2 -6
- package/lib/components/VWindow/VWindowItem.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/mixins/detachable/index.js +9 -5
- package/lib/mixins/detachable/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VAlert/VAlert.ts +2 -0
- package/src/components/VAppBar/VAppBar.ts +12 -3
- package/src/components/VBadge/VBadge.ts +1 -1
- package/src/components/VBanner/VBanner.ts +14 -14
- package/src/components/VBottomNavigation/VBottomNavigation.ts +10 -8
- package/src/components/VBtn/VBtn.ts +2 -2
- package/src/components/VCalendar/VCalendar.ts +29 -27
- package/src/components/VCalendar/VCalendarCategory.ts +9 -8
- package/src/components/VCalendar/VCalendarDaily.ts +18 -28
- package/src/components/VCalendar/VCalendarMonthly.ts +2 -1
- package/src/components/VCalendar/VCalendarWeekly.ts +18 -30
- package/src/components/VCalendar/__tests__/VCalendar.spec.ts +18 -34
- package/src/components/VCalendar/__tests__/VCalendarCategory.spec.ts +16 -14
- package/src/components/VCalendar/__tests__/VCalendarDaily.spec.ts +30 -28
- package/src/components/VCalendar/__tests__/__snapshots__/VCalendar.spec.ts.snap +206 -205
- package/src/components/VCalendar/__tests__/__snapshots__/VCalendarDaily.spec.ts.snap +122 -122
- package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-with-events.spec.ts.snap +1 -56
- package/src/components/VCalendar/mixins/__tests__/calendar-base.spec.ts +24 -21
- package/src/components/VCalendar/mixins/__tests__/calendar-with-events.spec.ts +27 -34
- package/src/components/VCalendar/mixins/__tests__/calendar-with-intervals.spec.ts +31 -28
- package/src/components/VCalendar/mixins/__tests__/times.spec.ts +10 -9
- package/src/components/VCalendar/mixins/calendar-base.ts +8 -12
- package/src/components/VCalendar/mixins/calendar-with-events.ts +19 -38
- package/src/components/VCalendar/mixins/calendar-with-intervals.ts +1 -1
- package/src/components/VCalendar/mixins/times.ts +1 -1
- package/src/components/VCarousel/VCarousel.ts +13 -9
- package/src/components/VCheckbox/VCheckbox.ts +19 -1
- package/src/components/VCheckbox/VSimpleCheckbox.ts +0 -3
- package/src/components/VChip/VChip.ts +16 -13
- package/src/components/VData/VData.ts +2 -0
- package/src/components/VDataIterator/VDataFooter.ts +2 -0
- package/src/components/VDataIterator/VDataIterator.ts +2 -0
- package/src/components/VDataTable/VDataTable.ts +2 -4
- package/src/components/VDataTable/VDataTableHeaderDesktop.ts +5 -0
- package/src/components/VDataTable/VDataTableHeaderMobile.ts +2 -0
- package/src/components/VDataTable/VEditDialog.ts +19 -17
- package/src/components/VDataTable/mixins/header.ts +0 -4
- package/src/components/VDatePicker/VDatePicker.ts +13 -18
- package/src/components/VDatePicker/VDatePickerHeader.ts +44 -32
- package/src/components/VDatePicker/VDatePickerMonthTable.ts +1 -1
- package/src/components/VDatePicker/VDatePickerTitle.ts +7 -5
- package/src/components/VDatePicker/VDatePickerYears.ts +6 -10
- package/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +302 -246
- package/src/components/VDatePicker/__tests__/VDatePicker.month.spec.ts +90 -86
- package/src/components/VDatePicker/__tests__/VDatePickerDateTable.spec.ts +76 -90
- package/src/components/VDatePicker/__tests__/VDatePickerHeader.spec.ts +96 -71
- package/src/components/VDatePicker/__tests__/VDatePickerMonthTable.spec.ts +63 -77
- package/src/components/VDatePicker/__tests__/VDatePickerTitle.spec.ts +48 -28
- package/src/components/VDatePicker/__tests__/VDatePickerYears.spec.ts +25 -22
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.date.spec.ts.snap +601 -586
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.month.spec.ts.snap +203 -193
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerDateTable.spec.ts.snap +615 -615
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerHeader.spec.ts.snap +52 -52
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerMonthTable.spec.ts.snap +144 -144
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerTitle.spec.ts.snap +3 -4
- package/src/components/VDatePicker/mixins/date-picker-table.ts +18 -13
- package/src/components/VDatePicker/util/__tests__/createNativeLocaleFormatter.spec.ts +7 -0
- package/src/components/VDatePicker/util/createNativeLocaleFormatter.ts +3 -0
- package/src/components/VDialog/VDialog.ts +7 -5
- package/src/components/VExpansionPanel/VExpansionPanel.ts +5 -0
- package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +0 -1
- package/src/components/VFileInput/VFileInput.ts +2 -0
- package/src/components/VForm/VForm.ts +2 -0
- package/src/components/VHover/VHover.ts +2 -0
- package/src/components/VImg/VImg.ts +2 -1
- package/src/components/VInput/VInput.ts +2 -0
- package/src/components/VItemGroup/VItem.ts +4 -0
- package/src/components/VItemGroup/VItemGroup.ts +7 -1
- package/src/components/VLazy/VLazy.ts +11 -13
- package/src/components/VList/VListGroup.ts +7 -8
- package/src/components/VList/VListItem.ts +29 -15
- package/src/components/VList/VListItemAction.ts +11 -10
- package/src/components/VMenu/VMenu.ts +3 -1
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +2 -5
- package/src/components/VOtpInput/VOtpInput.ts +2 -3
- package/src/components/VOverflowBtn/VOverflowBtn.ts +2 -0
- package/src/components/VOverlay/VOverlay.ts +2 -0
- package/src/components/VPagination/VPagination.ts +2 -1
- package/src/components/VPicker/VPicker.ts +8 -10
- package/src/components/VPicker/__tests__/VPicker.spec.ts +14 -15
- package/src/components/VProgressCircular/VProgressCircular.ts +0 -1
- package/src/components/VProgressLinear/VProgressLinear.ts +14 -13
- package/src/components/VRadioGroup/VRadio.ts +2 -0
- package/src/components/VSelect/VSelect.ts +59 -19
- package/src/components/VSelect/VSelectList.ts +13 -9
- package/src/components/VSlideGroup/VSlideGroup.ts +2 -4
- package/src/components/VSlideGroup/VSlideItem.ts +2 -0
- package/src/components/VSlider/VSlider.ts +0 -3
- package/src/components/VSnackbar/VSnackbar.ts +1 -1
- package/src/components/VSparkline/VSparkline.ts +54 -92
- package/src/components/VSpeedDial/VSpeedDial.ts +6 -8
- package/src/components/VStepper/VStepper.ts +3 -1
- package/src/components/VStepper/VStepperStep.ts +8 -15
- package/src/components/VSwitch/VSwitch.ts +4 -5
- package/src/components/VTabs/VTab.ts +2 -0
- package/src/components/VTabs/VTabs.ts +16 -10
- package/src/components/VTabs/VTabsItems.ts +2 -0
- package/src/components/VTextField/VTextField.ts +9 -12
- package/src/components/VTimePicker/VTimePicker.ts +199 -89
- package/src/components/VTimePicker/VTimePickerClock.ts +40 -45
- package/src/components/VTimePicker/VTimePickerTitle.ts +5 -4
- package/src/components/VTimePicker/__tests__/VTimePicker.spec.ts +153 -140
- package/src/components/VTimePicker/__tests__/VTimePickerClock.spec.ts +78 -81
- package/src/components/VTimePicker/__tests__/VTimePickerTitle.spec.ts +47 -41
- package/src/components/VTimePicker/__tests__/__snapshots__/VTimePicker.spec.ts.snap +160 -40
- package/src/components/VToolbar/VToolbar.ts +1 -1
- package/src/components/VTooltip/VTooltip.ts +1 -1
- package/src/components/VVirtualScroll/VVirtualScroll.ts +0 -1
- package/src/components/VWindow/VWindow.ts +0 -1
- package/src/components/VWindow/VWindowItem.ts +2 -3
- package/src/mixins/detachable/index.ts +11 -5
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import './calendar-with-events.sass'
|
|
3
3
|
|
|
4
4
|
// Types
|
|
5
|
-
import { VNode, VNodeData, defineComponent } from 'vue'
|
|
5
|
+
import { VNode, VNodeData, defineComponent, h, withDirectives } from 'vue'
|
|
6
6
|
|
|
7
7
|
// Directives
|
|
8
8
|
import ripple from '../../../directives/ripple'
|
|
@@ -75,11 +75,8 @@ const MINUTES_IN_DAY = 1440
|
|
|
75
75
|
export default defineComponent({
|
|
76
76
|
name: 'calendar-with-events',
|
|
77
77
|
|
|
78
|
-
extends: CalendarBase,
|
|
79
78
|
|
|
80
|
-
|
|
81
|
-
ripple,
|
|
82
|
-
},
|
|
79
|
+
extends: CalendarBase,
|
|
83
80
|
|
|
84
81
|
props: {
|
|
85
82
|
...props.events,
|
|
@@ -250,22 +247,18 @@ export default defineComponent({
|
|
|
250
247
|
const scope = { eventParsed: event, day, start, end, timed: false }
|
|
251
248
|
|
|
252
249
|
return this.genEvent(event, scope, false, {
|
|
253
|
-
class: 'v-event',
|
|
254
|
-
class: {
|
|
250
|
+
class: ['v-event', {
|
|
255
251
|
'v-event-start': start,
|
|
256
252
|
'v-event-end': end,
|
|
257
|
-
},
|
|
253
|
+
}],
|
|
258
254
|
style: {
|
|
259
255
|
height: `${eventHeight}px`,
|
|
260
256
|
width: `${width}%`,
|
|
261
257
|
'margin-bottom': `${eventMarginBottom}px`,
|
|
262
258
|
},
|
|
263
|
-
|
|
264
|
-
'data-date': day.date,
|
|
265
|
-
},
|
|
259
|
+
'data-date': day.date,
|
|
266
260
|
key: event.index,
|
|
267
261
|
ref: 'events',
|
|
268
|
-
refInFor: true,
|
|
269
262
|
})
|
|
270
263
|
},
|
|
271
264
|
genTimedEvent ({ event, left, width }: CalendarEventVisual, day: CalendarDayBodySlotScope): VNode | false {
|
|
@@ -336,20 +329,18 @@ export default defineComponent({
|
|
|
336
329
|
eventSummary,
|
|
337
330
|
}
|
|
338
331
|
|
|
339
|
-
return h('div',
|
|
332
|
+
return withDirectives(h('div',
|
|
340
333
|
this.setTextColor(text,
|
|
341
334
|
this.setBackgroundColor(background, {
|
|
342
|
-
|
|
343
|
-
directives: [{
|
|
344
|
-
name: 'ripple',
|
|
345
|
-
value: this.eventRipple ?? true,
|
|
346
|
-
}],
|
|
335
|
+
...this.getDefaultMouseEventHandlers(':event', nativeEvent => ({ ...scope, nativeEvent })),
|
|
347
336
|
...data,
|
|
348
337
|
})
|
|
349
338
|
), slot
|
|
350
339
|
? slot(scope)
|
|
351
340
|
: [this.genName(eventSummary)]
|
|
352
|
-
)
|
|
341
|
+
), [
|
|
342
|
+
[ripple, this.eventRipple ?? true],
|
|
343
|
+
])
|
|
353
344
|
},
|
|
354
345
|
genName (eventSummary: () => string | VNode): VNode {
|
|
355
346
|
return h('div', {
|
|
@@ -363,42 +354,32 @@ export default defineComponent({
|
|
|
363
354
|
style: {
|
|
364
355
|
height: `${height}px`,
|
|
365
356
|
},
|
|
366
|
-
|
|
367
|
-
'data-date': day.date,
|
|
368
|
-
},
|
|
357
|
+
'data-date': day.date,
|
|
369
358
|
ref: 'events',
|
|
370
|
-
refInFor: true,
|
|
371
359
|
})
|
|
372
360
|
},
|
|
373
361
|
genMore (day: CalendarDaySlotScope): VNode {
|
|
374
362
|
const eventHeight = this.eventHeight
|
|
375
363
|
const eventMarginBottom = this.eventMarginBottom
|
|
376
364
|
|
|
377
|
-
return h('div', {
|
|
378
|
-
class: 'v-event-more pl-1',
|
|
379
|
-
class: {
|
|
365
|
+
return withDirectives(h('div', {
|
|
366
|
+
class: ['v-event-more pl-1', {
|
|
380
367
|
'v-outside': day.outside,
|
|
381
|
-
},
|
|
382
|
-
attrs: {
|
|
383
|
-
'data-date': day.date,
|
|
384
|
-
'data-more': 1,
|
|
385
|
-
},
|
|
386
|
-
directives: [{
|
|
387
|
-
name: 'ripple',
|
|
388
|
-
value: this.eventRipple ?? true,
|
|
389
368
|
}],
|
|
390
|
-
|
|
369
|
+
'data-date': day.date,
|
|
370
|
+
'data-more': 1,
|
|
371
|
+
...this.getDefaultMouseEventHandlers(':more', nativeEvent => {
|
|
391
372
|
return { nativeEvent, ...day }
|
|
392
373
|
}),
|
|
393
|
-
|
|
394
374
|
style: {
|
|
395
375
|
display: 'none',
|
|
396
376
|
height: `${eventHeight}px`,
|
|
397
377
|
'margin-bottom': `${eventMarginBottom}px`,
|
|
398
378
|
},
|
|
399
379
|
ref: 'events',
|
|
400
|
-
|
|
401
|
-
|
|
380
|
+
}), [
|
|
381
|
+
[ripple, this.eventRipple ?? true],
|
|
382
|
+
])
|
|
402
383
|
},
|
|
403
384
|
getVisibleEvents (): CalendarEventParsed[] {
|
|
404
385
|
const start = getDayIdentifier(this.days[0])
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { defineComponent } from 'vue'
|
|
1
2
|
|
|
2
3
|
// Mixins
|
|
3
4
|
import CalendarBase from './calendar-base'
|
|
@@ -15,7 +16,6 @@ import {
|
|
|
15
16
|
MINUTES_IN_DAY,
|
|
16
17
|
} from '../util/timestamp'
|
|
17
18
|
import { CalendarTimestamp, CalendarFormatter, CalendarDayBodySlotScope } from 'vuetify/types'
|
|
18
|
-
import { defineComponent } from 'vue'
|
|
19
19
|
|
|
20
20
|
/* @vue/component */
|
|
21
21
|
export default defineComponent({
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {h} from 'vue'
|
|
2
1
|
// Styles
|
|
3
2
|
import './VCarousel.sass'
|
|
4
3
|
|
|
@@ -19,12 +18,19 @@ import { convertToUnit } from '../../util/helpers'
|
|
|
19
18
|
import { breaking } from '../../util/console'
|
|
20
19
|
|
|
21
20
|
// Types
|
|
22
|
-
import { VNode, PropType, defineComponent } from 'vue'
|
|
21
|
+
import { h, VNode, PropType, defineComponent } from 'vue'
|
|
23
22
|
|
|
24
23
|
export default defineComponent({
|
|
25
24
|
name: 'v-carousel',
|
|
26
25
|
extends: VWindow,
|
|
27
26
|
|
|
27
|
+
// pass down the parent's theme
|
|
28
|
+
provide (): object {
|
|
29
|
+
return {
|
|
30
|
+
parentTheme: this.theme,
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
|
|
28
34
|
props: {
|
|
29
35
|
continuous: {
|
|
30
36
|
type: Boolean,
|
|
@@ -62,12 +68,10 @@ export default defineComponent({
|
|
|
62
68
|
},
|
|
63
69
|
},
|
|
64
70
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
},
|
|
71
|
+
emits: [
|
|
72
|
+
'update:modelValue',
|
|
73
|
+
'change',
|
|
74
|
+
],
|
|
71
75
|
|
|
72
76
|
data () {
|
|
73
77
|
return {
|
|
@@ -158,7 +162,7 @@ export default defineComponent({
|
|
|
158
162
|
}
|
|
159
163
|
|
|
160
164
|
return h(ButtonGroup, {
|
|
161
|
-
|
|
165
|
+
modelValue: this.internalValue,
|
|
162
166
|
mandatory: this.mandatory,
|
|
163
167
|
onChange: (val: unknown) => {
|
|
164
168
|
this.internalValue = val
|
|
@@ -8,6 +8,10 @@ import VInput from '../VInput'
|
|
|
8
8
|
|
|
9
9
|
// Mixins
|
|
10
10
|
import Selectable from '../../mixins/selectable'
|
|
11
|
+
|
|
12
|
+
// Utilities
|
|
13
|
+
import { breaking } from '../../util/console'
|
|
14
|
+
|
|
11
15
|
import { defineComponent, h } from 'vue'
|
|
12
16
|
|
|
13
17
|
/* @vue/component */
|
|
@@ -31,6 +35,8 @@ export default defineComponent({
|
|
|
31
35
|
},
|
|
32
36
|
},
|
|
33
37
|
|
|
38
|
+
emits: ['click', 'focus', 'blur', 'update:indeterminate'],
|
|
39
|
+
|
|
34
40
|
data () {
|
|
35
41
|
return {
|
|
36
42
|
inputIndeterminate: this.indeterminate,
|
|
@@ -81,6 +87,18 @@ export default defineComponent({
|
|
|
81
87
|
},
|
|
82
88
|
},
|
|
83
89
|
|
|
90
|
+
created () {
|
|
91
|
+
const breakingProps = [
|
|
92
|
+
['inputValue', 'model-value'],
|
|
93
|
+
['input-value', 'model-value'],
|
|
94
|
+
]
|
|
95
|
+
|
|
96
|
+
/* istanbul ignore next */
|
|
97
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
98
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
99
|
+
})
|
|
100
|
+
},
|
|
101
|
+
|
|
84
102
|
methods: {
|
|
85
103
|
genCheckbox () {
|
|
86
104
|
const { title, ...checkboxAttrs } = this.attrs$
|
|
@@ -90,7 +108,7 @@ export default defineComponent({
|
|
|
90
108
|
h(VIcon, this.setTextColor(this.validationState, {
|
|
91
109
|
dense: this.dense,
|
|
92
110
|
dark: this.dark,
|
|
93
|
-
light: this.light
|
|
111
|
+
light: this.light,
|
|
94
112
|
}), () => this.computedIcon),
|
|
95
113
|
this.genInput('checkbox', {
|
|
96
114
|
...checkboxAttrs,
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import {h, vShow, withDirectives} from 'vue'
|
|
1
|
+
import { h, vShow, withDirectives, VNode } from 'vue'
|
|
2
2
|
// Styles
|
|
3
3
|
import './VChip.sass'
|
|
4
|
-
|
|
5
|
-
// Types
|
|
6
|
-
import { VNode } from 'vue'
|
|
7
4
|
import mixins from '../../util/mixins'
|
|
8
5
|
|
|
9
6
|
// Components
|
|
@@ -32,10 +29,12 @@ export default mixins(
|
|
|
32
29
|
Routable,
|
|
33
30
|
Themeable,
|
|
34
31
|
GroupableFactory('chipGroup'),
|
|
35
|
-
ToggleableFactory(
|
|
32
|
+
ToggleableFactory()
|
|
36
33
|
).extend({
|
|
37
34
|
name: 'v-chip',
|
|
38
35
|
|
|
36
|
+
emits: ['update:modelValue', 'click:close', 'click', 'change'],
|
|
37
|
+
|
|
39
38
|
props: {
|
|
40
39
|
active: {
|
|
41
40
|
type: Boolean,
|
|
@@ -69,7 +68,7 @@ export default mixins(
|
|
|
69
68
|
default: 'span',
|
|
70
69
|
},
|
|
71
70
|
textColor: String,
|
|
72
|
-
|
|
71
|
+
modelValue: null as any as PropType<any>,
|
|
73
72
|
},
|
|
74
73
|
|
|
75
74
|
data: () => ({
|
|
@@ -77,9 +76,10 @@ export default mixins(
|
|
|
77
76
|
}),
|
|
78
77
|
|
|
79
78
|
computed: {
|
|
80
|
-
$activeClass() {
|
|
81
|
-
if(this.activeClass)
|
|
79
|
+
$activeClass () {
|
|
80
|
+
if (this.activeClass) {
|
|
82
81
|
return this.activeClass
|
|
82
|
+
}
|
|
83
83
|
if (!this.chipGroup) return ''
|
|
84
84
|
|
|
85
85
|
return this.chipGroup.activeClass
|
|
@@ -117,8 +117,8 @@ export default mixins(
|
|
|
117
117
|
const breakingProps = [
|
|
118
118
|
['outline', 'outlined'],
|
|
119
119
|
['selected', 'input-value'],
|
|
120
|
-
['value', '
|
|
121
|
-
['
|
|
120
|
+
['value', 'modelValue'],
|
|
121
|
+
['onInput', 'onUpdate:modelValue'],
|
|
122
122
|
]
|
|
123
123
|
|
|
124
124
|
/* istanbul ignore next */
|
|
@@ -131,7 +131,10 @@ export default mixins(
|
|
|
131
131
|
click (e: MouseEvent): void {
|
|
132
132
|
this.$emit('click', e)
|
|
133
133
|
|
|
134
|
-
this.chipGroup
|
|
134
|
+
if (this.chipGroup) {
|
|
135
|
+
this.toggle()
|
|
136
|
+
this.$emit('update:modelValue', this.isActive)
|
|
137
|
+
}
|
|
135
138
|
},
|
|
136
139
|
genFilter (): VNode {
|
|
137
140
|
const children = []
|
|
@@ -158,8 +161,8 @@ export default mixins(
|
|
|
158
161
|
e.preventDefault()
|
|
159
162
|
|
|
160
163
|
this.$emit('click:close')
|
|
161
|
-
this.$emit('update:
|
|
162
|
-
}
|
|
164
|
+
this.$emit('update:modelValue', false)
|
|
165
|
+
},
|
|
163
166
|
}, this.closeIcon)
|
|
164
167
|
},
|
|
165
168
|
genContent (): VNode {
|
|
@@ -78,6 +78,8 @@ export default defineComponent({
|
|
|
78
78
|
},
|
|
79
79
|
},
|
|
80
80
|
|
|
81
|
+
emits: ['update:options', 'update:page', 'update:items-per-page', 'update:sort-by', 'update:sort-desc', 'update:group-by', 'update:group-desc', 'update:multi-sort', 'update:must-sort', 'page-count', 'current-items', 'pagination'],
|
|
82
|
+
|
|
81
83
|
data () {
|
|
82
84
|
let internalOptions: DataOptions = {
|
|
83
85
|
page: this.page,
|
|
@@ -64,6 +64,8 @@ export default mixins(
|
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
66
|
|
|
67
|
+
emits: ['update:modelValue', 'update:expanded', 'toggle-select-all', 'item-selected', 'item-expanded', 'update:options', 'update:page', 'update:items-per-page', 'update:sort-by', 'update:sort-desc', 'update:group-by', 'update:group-desc', 'pagination', 'current-items', 'page-count'],
|
|
68
|
+
|
|
67
69
|
data: () => ({
|
|
68
70
|
selection: {} as Record<string, any>,
|
|
69
71
|
expansion: {} as Record<string, boolean>,
|
|
@@ -99,10 +99,8 @@ export default mixins(
|
|
|
99
99
|
).extend({
|
|
100
100
|
name: 'v-data-table',
|
|
101
101
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
ripple,
|
|
105
|
-
},
|
|
102
|
+
emits: ['click:row', 'update:options', 'update:page', 'update:items-per-page', 'update:sort-by', 'update:sort-desc', 'update:group-by', 'update:group-desc', 'pagination', 'current-items', 'page-count', 'click', 'mousedown', 'mouseup', 'touchstart', 'touchend'],
|
|
103
|
+
|
|
106
104
|
|
|
107
105
|
props: {
|
|
108
106
|
headers: {
|
|
@@ -8,6 +8,11 @@ import { DataTableHeader } from 'vuetify/types'
|
|
|
8
8
|
export default mixins(header).extend({
|
|
9
9
|
name: 'v-data-table-header-desktop',
|
|
10
10
|
|
|
11
|
+
emits: [
|
|
12
|
+
'group',
|
|
13
|
+
'sort',
|
|
14
|
+
],
|
|
15
|
+
|
|
11
16
|
methods: {
|
|
12
17
|
genGroupByToggle (header: DataTableHeader) {
|
|
13
18
|
return h('span', {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {h} from 'vue'
|
|
1
|
+
import { h } from 'vue'
|
|
2
2
|
// Styles
|
|
3
3
|
import './VEditDialog.sass'
|
|
4
4
|
|
|
@@ -37,6 +37,8 @@ export default mixins(Returnable, Themeable).extend({
|
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
39
|
|
|
40
|
+
emits: ['update:return-value', 'open', 'close', 'cancel', 'save'],
|
|
41
|
+
|
|
40
42
|
data () {
|
|
41
43
|
return {
|
|
42
44
|
isActive: false,
|
|
@@ -92,7 +94,7 @@ export default mixins(Returnable, Themeable).extend({
|
|
|
92
94
|
this.$emit('save')
|
|
93
95
|
}
|
|
94
96
|
},
|
|
95
|
-
ref: 'content'
|
|
97
|
+
ref: 'content',
|
|
96
98
|
}, getSlot(this, 'input'))
|
|
97
99
|
},
|
|
98
100
|
},
|
|
@@ -111,21 +113,21 @@ export default mixins(Returnable, Themeable).extend({
|
|
|
111
113
|
light: this.light,
|
|
112
114
|
dark: this.dark,
|
|
113
115
|
onInput: (val: boolean) => (this.isActive = val),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
},
|
|
116
|
+
}, {
|
|
117
|
+
activator: ({ on }: { on: any }) => {
|
|
118
|
+
return h('div', {
|
|
119
|
+
class: 'v-small-dialog__activator',
|
|
120
|
+
...on,
|
|
121
|
+
}, [
|
|
122
|
+
h('span', {
|
|
123
|
+
class: 'v-small-dialog__activator__content',
|
|
124
|
+
}, getSlot(this)),
|
|
125
|
+
])
|
|
125
126
|
},
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
127
|
+
default: () => [
|
|
128
|
+
this.genContent(),
|
|
129
|
+
this.large ? this.genActions() : null,
|
|
130
|
+
],
|
|
131
|
+
})
|
|
130
132
|
},
|
|
131
133
|
})
|
|
@@ -388,11 +388,8 @@ export default mixins(
|
|
|
388
388
|
selectingYear: this.internalActivePicker === 'YEAR',
|
|
389
389
|
year: this.formatters.year(this.multipleValue.length ? `${this.inputYear}` : this.tableDate),
|
|
390
390
|
yearIcon: this.yearIcon,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
on: {
|
|
394
|
-
'update:selecting-year': (value: boolean) => this.internalActivePicker = value ? 'YEAR' : this.type.toUpperCase(),
|
|
395
|
-
},
|
|
391
|
+
modelValue: this.multipleValue[0],
|
|
392
|
+
onUpdateSelectingYear: (value: boolean) => this.internalActivePicker = value ? 'YEAR' : this.type.toUpperCase(),
|
|
396
393
|
})
|
|
397
394
|
},
|
|
398
395
|
genTableHeader (): VNode {
|
|
@@ -410,9 +407,9 @@ export default mixins(
|
|
|
410
407
|
prevAriaLabel: this.internalActivePicker === 'DATE' ? this.prevMonthAriaLabel : this.prevYearAriaLabel,
|
|
411
408
|
prevIcon: this.prevIcon,
|
|
412
409
|
readonly: this.readonly,
|
|
413
|
-
|
|
410
|
+
modelValue: this.internalActivePicker === 'DATE' ? `${pad(this.tableYear, 4)}-${pad(this.tableMonth + 1)}` : `${pad(this.tableYear, 4)}`,
|
|
414
411
|
onToggle: () => this.internalActivePicker = (this.internalActivePicker === 'DATE' ? 'MONTH' : 'YEAR'),
|
|
415
|
-
|
|
412
|
+
'onUpdate:modelValue': (value: string) => this.tableDate = value,
|
|
416
413
|
})
|
|
417
414
|
},
|
|
418
415
|
genDateTable (): VNode {
|
|
@@ -437,12 +434,12 @@ export default mixins(
|
|
|
437
434
|
showAdjacentMonths: this.showAdjacentMonths,
|
|
438
435
|
showWeek: this.showWeek,
|
|
439
436
|
tableDate: `${pad(this.tableYear, 4)}-${pad(this.tableMonth + 1)}`,
|
|
440
|
-
|
|
437
|
+
modelValue: this.modelValue,
|
|
441
438
|
weekdayFormat: this.weekdayFormat,
|
|
442
439
|
ref: 'table',
|
|
443
|
-
|
|
440
|
+
'onUpdate:modelValue': this.dateClick,
|
|
444
441
|
'onUpdate:table-date': (value: string) => this.tableDate = value,
|
|
445
|
-
...createItemTypeListeners(this, ':date')
|
|
442
|
+
...createItemTypeListeners(this, ':date'),
|
|
446
443
|
})
|
|
447
444
|
},
|
|
448
445
|
genMonthTable (): VNode {
|
|
@@ -462,12 +459,12 @@ export default mixins(
|
|
|
462
459
|
range: this.range,
|
|
463
460
|
readonly: this.readonly && this.type === 'month',
|
|
464
461
|
scrollable: this.scrollable,
|
|
465
|
-
|
|
462
|
+
modelValue: this.selectedMonths,
|
|
466
463
|
tableDate: `${pad(this.tableYear, 4)}`,
|
|
467
464
|
ref: 'table',
|
|
468
|
-
|
|
465
|
+
'onUpdate:modelValue': this.monthClick,
|
|
469
466
|
'onUpdate:table-date': (value: string) => this.tableDate = value,
|
|
470
|
-
...createItemTypeListeners(this, ':month')
|
|
467
|
+
...createItemTypeListeners(this, ':month'),
|
|
471
468
|
})
|
|
472
469
|
},
|
|
473
470
|
genYears (): VNode {
|
|
@@ -477,11 +474,9 @@ export default mixins(
|
|
|
477
474
|
locale: this.locale,
|
|
478
475
|
min: this.minYear,
|
|
479
476
|
max: this.maxYear,
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
...createItemTypeListeners(this, ':year'),
|
|
484
|
-
},
|
|
477
|
+
modelValue: this.tableYear,
|
|
478
|
+
'onUpdate:modelValue': this.yearClick,
|
|
479
|
+
...createItemTypeListeners(this, ':year'),
|
|
485
480
|
})
|
|
486
481
|
},
|
|
487
482
|
genPickerBody (): VNode {
|