@dimailn/vuetify 2.7.2-alpha26 → 2.7.2-alpha28
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 +1185 -1041
- 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 -1
- 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 +15 -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 +30 -14
- 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 +2 -1
- 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 +37 -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 +28 -19
- 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 +9 -6
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/components/VTreeview/VTreeview.js +0 -7
- package/es5/components/VTreeview/VTreeview.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/es5/mixins/routable/index.js +5 -2
- package/es5/mixins/routable/index.js.map +1 -1
- package/lib/components/VAlert/VAlert.js +1 -1
- 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 +15 -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 +29 -16
- 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 +2 -1
- 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 +50 -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 +24 -20
- 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 +4 -5
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VTreeview/VTreeview.js +0 -6
- package/lib/components/VTreeview/VTreeview.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/lib/mixins/routable/index.js +5 -2
- package/lib/mixins/routable/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VAlert/VAlert.ts +2 -1
- package/src/components/VApp/__tests__/VApp.spec.ts +24 -18
- package/src/components/VApp/__tests__/__snapshots__/VApp.spec.ts.snap +4 -4
- package/src/components/VAppBar/VAppBar.ts +12 -3
- package/src/components/VAppBar/__tests__/VAppBar.spec.ts +256 -74
- package/src/components/VAppBar/__tests__/VAppBarNavIcon.spec.ts +2 -6
- package/src/components/VAppBar/__tests__/__snapshots__/VAppBar.spec.ts.snap +13 -4
- package/src/components/VAppBar/__tests__/__snapshots__/VAppBarNavIcon.spec.ts.snap +3 -4
- package/src/components/VBadge/VBadge.ts +1 -1
- package/src/components/VBanner/VBanner.ts +14 -14
- package/src/components/VBanner/__tests__/VBanner.spec.ts +35 -36
- package/src/components/VBanner/__tests__/__snapshots__/VBanner.spec.ts.snap +1 -1
- package/src/components/VBottomNavigation/VBottomNavigation.ts +10 -8
- package/src/components/VBtn/VBtn.ts +2 -2
- package/src/components/VBtn/__tests__/VBtn.spec.ts +1 -1
- 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/VCard/__tests__/VCard.spec.ts +46 -28
- package/src/components/VCard/__tests__/__snapshots__/VCard.spec.ts.snap +2 -2
- 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/VCheckbox/__tests__/VCheckbox.spec.ts +157 -152
- package/src/components/VChip/VChip.ts +17 -13
- package/src/components/VChip/__tests__/VChip.spec.ts +50 -50
- package/src/components/VChip/__tests__/__snapshots__/VChip.spec.ts.snap +4 -4
- package/src/components/VChipGroup/__tests__/VChipGroup.spec.ts +14 -21
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +35 -35
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +10 -10
- package/src/components/VData/VData.ts +2 -0
- package/src/components/VData/__tests__/VData.spec.ts +69 -90
- 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/__tests__/MobileRow.spec.ts +55 -66
- package/src/components/VDataTable/__tests__/Row.spec.ts +64 -73
- package/src/components/VDataTable/__tests__/RowGroup.spec.ts +7 -5
- package/src/components/VDataTable/__tests__/VDataTable.spec.ts +910 -988
- package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +26 -22
- package/src/components/VDataTable/__tests__/VSimpleTable.spec.ts +60 -29
- package/src/components/VDataTable/__tests__/VVirtualTable.spec.ts +13 -15
- package/src/components/VDataTable/__tests__/__snapshots__/Row.spec.ts.snap +30 -0
- package/src/components/VDataTable/__tests__/__snapshots__/VEditDialog.spec.ts.snap +18 -10
- package/src/components/VDataTable/mixins/__tests__/__snapshots__/header.spec.ts.snap +1 -1
- 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/VDivider/__tests__/VDivider.spec.ts +11 -15
- package/src/components/VDivider/__tests__/__snapshots__/VDivider.spec.ts.snap +2 -2
- 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/VGrid/__tests__/VCol.spec.ts +17 -17
- package/src/components/VGrid/__tests__/VContainer.spec.ts +58 -3
- package/src/components/VGrid/__tests__/VFlex.spec.ts +3 -3
- package/src/components/VGrid/__tests__/VGrid.spec.ts +12 -10
- package/src/components/VGrid/__tests__/VLayout.spec.ts +3 -3
- package/src/components/VHover/VHover.ts +2 -0
- package/src/components/VIcon/__tests__/VIcon.spec.ts +176 -70
- package/src/components/VImg/VImg.ts +2 -1
- package/src/components/VImg/__tests__/__snapshots__/VImg.spec.ts.snap +55 -55
- 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/VItemGroup/__tests__/VItem.spec.ts +22 -37
- package/src/components/VItemGroup/__tests__/VItemGroup.spec.ts +96 -124
- package/src/components/VItemGroup/__tests__/__snapshots__/VItem.spec.ts.snap +2 -0
- package/src/components/VLabel/__tests__/VLabel.spec.ts +240 -14
- package/src/components/VLazy/VLazy.ts +11 -13
- package/src/components/VLazy/__tests__/VLazy.spec.ts +5 -4
- package/src/components/VLazy/__tests__/__snapshots__/VLazy.spec.ts.snap +2 -1
- package/src/components/VList/VListGroup.ts +7 -8
- package/src/components/VList/VListItem.ts +38 -18
- package/src/components/VList/VListItemAction.ts +11 -10
- package/src/components/VList/__tests__/VList.spec.ts +13 -12
- package/src/components/VList/__tests__/VListGroup.spec.ts +59 -51
- package/src/components/VList/__tests__/VListItem.spec.ts +142 -63
- package/src/components/VList/__tests__/VListItemAvatar.spec.ts +5 -2
- package/src/components/VList/__tests__/VListItemGroup.spec.ts +5 -2
- package/src/components/VList/__tests__/__snapshots__/VList.spec.ts.snap +10 -10
- package/src/components/VList/__tests__/__snapshots__/VListGroup.spec.ts.snap +5 -6
- package/src/components/VList/__tests__/__snapshots__/VListItem.spec.ts.snap +1 -1
- package/src/components/VMain/__tests__/VMain.spec.ts +71 -17
- package/src/components/VMenu/VMenu.ts +4 -2
- package/src/components/VMessages/__tests__/VMessages.spec.ts +14 -13
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +2 -5
- package/src/components/VOtpInput/VOtpInput.ts +39 -4
- 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/VParallax/__tests__/__snapshots__/VParallax.spec.ts.snap +8 -8
- package/src/components/VPicker/VPicker.ts +8 -10
- package/src/components/VPicker/__tests__/VPicker.spec.ts +14 -15
- package/src/components/VPicker/__tests__/__snapshots__/VPicker.spec.ts.snap +2 -2
- 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/VResponsive/__tests__/__snapshots__/VResponsive.spec.ts.snap +2 -2
- package/src/components/VSelect/VSelect.ts +59 -19
- package/src/components/VSelect/VSelectList.ts +20 -16
- package/src/components/VSelect/__tests__/VSelect.spec.ts +166 -125
- package/src/components/VSelect/__tests__/VSelect2.spec.ts +127 -111
- package/src/components/VSelect/__tests__/VSelect3.spec.ts +109 -91
- package/src/components/VSelect/__tests__/VSelect4.spec.ts +79 -68
- package/src/components/VSelect/__tests__/VSelectList.spec.ts +23 -31
- package/src/components/VSelect/__tests__/__snapshots__/VSelect.spec.ts.snap +58 -62
- package/src/components/VSelect/__tests__/__snapshots__/VSelect2.spec.ts.snap +50 -62
- package/src/components/VSelect/__tests__/__snapshots__/VSelect3.spec.ts.snap +10 -14
- 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/VSparkline/__tests__/VSparkline.spec.ts +33 -35
- 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/VStepper/__tests__/VStepper.spec.ts +4 -1
- package/src/components/VStepper/__tests__/VStepperContent.spec.ts +104 -110
- package/src/components/VStepper/__tests__/VStepperStep.spec.ts +51 -44
- package/src/components/VSwitch/VSwitch.ts +4 -5
- package/src/components/VSwitch/__tests__/VSwitch.spec.ts +30 -37
- 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/VTabs/__tests__/VTabs.spec.ts +0 -7
- package/src/components/VTextField/VTextField.ts +9 -12
- package/src/components/VTextField/__tests__/VTextField.spec.ts +342 -246
- package/src/components/VTextarea/__tests__/VTextarea.spec.ts +112 -35
- 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 +120 -40
- package/src/components/VToolbar/VToolbar.ts +1 -1
- package/src/components/VToolbar/__tests__/VToolbar.spec.ts +49 -25
- package/src/components/VTooltip/VTooltip.ts +4 -4
- package/src/components/VTooltip/__tests__/__snapshots__/VTooltip.spec.ts.snap +34 -18
- package/src/components/VTreeview/VTreeview.ts +0 -5
- 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
- package/src/mixins/routable/index.ts +6 -4
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
mount,
|
|
11
11
|
Wrapper,
|
|
12
12
|
} from '@vue/test-utils'
|
|
13
|
+
import { h } from 'vue'
|
|
13
14
|
|
|
14
15
|
// Types
|
|
15
16
|
import { ExtractVue } from '../../../util/mixins'
|
|
@@ -22,16 +23,21 @@ describe('VBanner.ts', () => {
|
|
|
22
23
|
mountFunction = (options = {}) => {
|
|
23
24
|
return mount(VBanner, {
|
|
24
25
|
...options,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
26
|
+
global: {
|
|
27
|
+
mocks: {
|
|
28
|
+
$vuetify: {
|
|
29
|
+
application: {
|
|
30
|
+
top: 0,
|
|
31
|
+
bar: 0,
|
|
32
|
+
},
|
|
33
|
+
breakpoint: {
|
|
34
|
+
mobile: true,
|
|
35
|
+
mobileBreakpoint: 1264,
|
|
36
|
+
width: 1000,
|
|
37
|
+
},
|
|
38
|
+
icons: {
|
|
39
|
+
component: null,
|
|
40
|
+
},
|
|
35
41
|
},
|
|
36
42
|
},
|
|
37
43
|
},
|
|
@@ -67,7 +73,7 @@ describe('VBanner.ts', () => {
|
|
|
67
73
|
slots: {
|
|
68
74
|
default: 'Hello, World!',
|
|
69
75
|
},
|
|
70
|
-
|
|
76
|
+
props: {
|
|
71
77
|
icon: 'mdi-plus',
|
|
72
78
|
},
|
|
73
79
|
})
|
|
@@ -79,7 +85,7 @@ describe('VBanner.ts', () => {
|
|
|
79
85
|
const wrapper = mountFunction({
|
|
80
86
|
slots: {
|
|
81
87
|
default: 'Hello, World!',
|
|
82
|
-
icon:
|
|
88
|
+
icon: () => h('span', ['icon']),
|
|
83
89
|
},
|
|
84
90
|
})
|
|
85
91
|
|
|
@@ -90,7 +96,7 @@ describe('VBanner.ts', () => {
|
|
|
90
96
|
const wrapper = mountFunction({
|
|
91
97
|
slots: {
|
|
92
98
|
default: 'Hello, World!',
|
|
93
|
-
actions:
|
|
99
|
+
actions: () => h('div', [h('button', ['OK']), h('button', ['Cancel'])]),
|
|
94
100
|
},
|
|
95
101
|
})
|
|
96
102
|
|
|
@@ -102,19 +108,16 @@ describe('VBanner.ts', () => {
|
|
|
102
108
|
slots: {
|
|
103
109
|
default: 'Hello, World!',
|
|
104
110
|
},
|
|
105
|
-
|
|
111
|
+
props: {
|
|
106
112
|
icon: 'mdi-plus',
|
|
107
113
|
},
|
|
108
114
|
})
|
|
109
115
|
|
|
110
|
-
const fn = jest.fn()
|
|
111
|
-
wrapper.vm.$on('click:icon', fn)
|
|
112
|
-
|
|
113
116
|
const icon = wrapper.find('.v-banner__icon')
|
|
114
117
|
|
|
115
|
-
expect(
|
|
118
|
+
expect(wrapper.emitted('click:icon')).toBeFalsy()
|
|
116
119
|
icon.trigger('click')
|
|
117
|
-
expect(
|
|
120
|
+
expect(wrapper.emitted('click:icon')).toBeTruthy()
|
|
118
121
|
})
|
|
119
122
|
|
|
120
123
|
it(`should not render icon container if icon property and slot aren't passed`, () => {
|
|
@@ -167,16 +170,10 @@ describe('VBanner.ts', () => {
|
|
|
167
170
|
const wrapper = mountFunction({
|
|
168
171
|
slots: {
|
|
169
172
|
default: 'Hello, World!',
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
on: {
|
|
175
|
-
click: props.dismiss,
|
|
176
|
-
},
|
|
177
|
-
class: 'test',
|
|
178
|
-
})
|
|
179
|
-
},
|
|
173
|
+
actions: ({ dismiss }) => h('div', {
|
|
174
|
+
onClick: dismiss,
|
|
175
|
+
class: 'test',
|
|
176
|
+
}),
|
|
180
177
|
},
|
|
181
178
|
})
|
|
182
179
|
|
|
@@ -191,9 +188,11 @@ describe('VBanner.ts', () => {
|
|
|
191
188
|
slots: {
|
|
192
189
|
default: 'Hello, World!',
|
|
193
190
|
},
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
191
|
+
global: {
|
|
192
|
+
mocks: {
|
|
193
|
+
$vuetify: {
|
|
194
|
+
breakpoint: new Breakpoint(preset),
|
|
195
|
+
},
|
|
197
196
|
},
|
|
198
197
|
},
|
|
199
198
|
})
|
|
@@ -201,16 +200,16 @@ describe('VBanner.ts', () => {
|
|
|
201
200
|
expect(wrapper.classes('v-banner--is-mobile')).toBeTruthy()
|
|
202
201
|
})
|
|
203
202
|
|
|
204
|
-
it('should apply sticky when using the app prop', () => {
|
|
203
|
+
it('should apply sticky when using the app prop', async () => {
|
|
205
204
|
const wrapper = mountFunction({
|
|
206
|
-
|
|
205
|
+
props: { app: true },
|
|
207
206
|
})
|
|
208
207
|
|
|
209
208
|
expect(wrapper.vm.isSticky).toBe(true)
|
|
210
209
|
|
|
211
210
|
expect(wrapper.html()).toMatchSnapshot()
|
|
212
211
|
|
|
213
|
-
wrapper.setProps({
|
|
212
|
+
await wrapper.setProps({
|
|
214
213
|
app: false,
|
|
215
214
|
sticky: true,
|
|
216
215
|
})
|
|
@@ -219,7 +218,7 @@ describe('VBanner.ts', () => {
|
|
|
219
218
|
|
|
220
219
|
expect(wrapper.html()).toMatchSnapshot()
|
|
221
220
|
|
|
222
|
-
wrapper.setProps({ sticky: false })
|
|
221
|
+
await wrapper.setProps({ app: false, sticky: false })
|
|
223
222
|
|
|
224
223
|
expect(wrapper.vm.isSticky).toBe(false)
|
|
225
224
|
|
|
@@ -114,7 +114,7 @@ exports[`VBanner.ts should render component with icon slot 1`] = `
|
|
|
114
114
|
`;
|
|
115
115
|
|
|
116
116
|
exports[`VBanner.ts should render sinle-line component with content 1`] = `
|
|
117
|
-
<div class="v-banner v-sheet theme--light v-banner--is-mobile">
|
|
117
|
+
<div class="v-banner v-sheet theme--light v-banner--is-mobile v-banner--single-line">
|
|
118
118
|
<div class="v-banner__wrapper">
|
|
119
119
|
<div class="v-banner__content">
|
|
120
120
|
<div class="v-banner__text">
|
|
@@ -23,11 +23,11 @@ import { VNode } from 'vue'
|
|
|
23
23
|
export default mixins(
|
|
24
24
|
Applicationable('bottom', [
|
|
25
25
|
'height',
|
|
26
|
-
'
|
|
26
|
+
'modelValue',
|
|
27
27
|
]),
|
|
28
28
|
Colorable,
|
|
29
29
|
Measurable,
|
|
30
|
-
ToggleableFactory(
|
|
30
|
+
ToggleableFactory(),
|
|
31
31
|
Proxyable,
|
|
32
32
|
Scrollable,
|
|
33
33
|
Themeable
|
|
@@ -48,7 +48,7 @@ export default mixins(
|
|
|
48
48
|
},
|
|
49
49
|
hideOnScroll: Boolean,
|
|
50
50
|
horizontal: Boolean,
|
|
51
|
-
|
|
51
|
+
modelValue: {
|
|
52
52
|
type: Boolean,
|
|
53
53
|
default: true,
|
|
54
54
|
},
|
|
@@ -60,9 +60,11 @@ export default mixins(
|
|
|
60
60
|
},
|
|
61
61
|
},
|
|
62
62
|
|
|
63
|
+
emits: ['update:modelValue', 'change'],
|
|
64
|
+
|
|
63
65
|
data () {
|
|
64
66
|
return {
|
|
65
|
-
isActive: this.
|
|
67
|
+
isActive: this.modelValue,
|
|
66
68
|
}
|
|
67
69
|
},
|
|
68
70
|
|
|
@@ -72,7 +74,7 @@ export default mixins(
|
|
|
72
74
|
Scrollable.computed.canScroll.call(this) &&
|
|
73
75
|
(
|
|
74
76
|
this.hideOnScroll ||
|
|
75
|
-
!this.
|
|
77
|
+
!this.modelValue
|
|
76
78
|
)
|
|
77
79
|
)
|
|
78
80
|
},
|
|
@@ -110,7 +112,7 @@ export default mixins(
|
|
|
110
112
|
this.isActive = !this.isScrollingUp ||
|
|
111
113
|
this.currentScroll > this.computedScrollThreshold
|
|
112
114
|
|
|
113
|
-
this.$emit('update:
|
|
115
|
+
this.$emit('update:modelValue', this.isActive)
|
|
114
116
|
}
|
|
115
117
|
|
|
116
118
|
if (this.currentThreshold < this.computedScrollThreshold) return
|
|
@@ -134,10 +136,10 @@ export default mixins(
|
|
|
134
136
|
activeClass: this.activeClass,
|
|
135
137
|
mandatory: Boolean(
|
|
136
138
|
this.mandatory ||
|
|
137
|
-
this.
|
|
139
|
+
this.modelValue !== undefined
|
|
138
140
|
),
|
|
139
141
|
tag: this.tag,
|
|
140
|
-
|
|
142
|
+
modelValue: this.internalValue,
|
|
141
143
|
onChange: this.updateValue
|
|
142
144
|
})
|
|
143
145
|
|
|
@@ -31,7 +31,7 @@ const baseMixins = mixins(
|
|
|
31
31
|
Positionable,
|
|
32
32
|
Sizeable,
|
|
33
33
|
GroupableFactory('btnToggle'),
|
|
34
|
-
ToggleableFactory(
|
|
34
|
+
ToggleableFactory()
|
|
35
35
|
/* @vue/component */
|
|
36
36
|
)
|
|
37
37
|
interface options extends ExtractVue<typeof baseMixins> {
|
|
@@ -66,7 +66,7 @@ export default baseMixins.extend({
|
|
|
66
66
|
value: null as any as PropType<any>,
|
|
67
67
|
},
|
|
68
68
|
|
|
69
|
-
emits: ['click'],
|
|
69
|
+
emits: ['click', 'change', 'update:modelValue'],
|
|
70
70
|
|
|
71
71
|
data: () => ({
|
|
72
72
|
proxyClass: 'v-btn--active',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {h} from 'vue'
|
|
1
|
+
import { h, defineComponent, VNode, Component, withDirectives } from 'vue'
|
|
2
2
|
// Styles
|
|
3
3
|
// import '../../stylus/components/_calendar-daily.styl'
|
|
4
4
|
|
|
5
|
-
//
|
|
6
|
-
import
|
|
5
|
+
// Directives
|
|
6
|
+
import Resize from '../../directives/resize'
|
|
7
7
|
|
|
8
8
|
// Mixins
|
|
9
9
|
import CalendarWithEvents from './mixins/calendar-with-events'
|
|
@@ -51,6 +51,8 @@ interface VCalendarRenderProps {
|
|
|
51
51
|
/* @vue/component */
|
|
52
52
|
export default defineComponent({
|
|
53
53
|
name: 'v-calendar',
|
|
54
|
+
|
|
55
|
+
|
|
54
56
|
extends: CalendarWithEvents,
|
|
55
57
|
|
|
56
58
|
props: {
|
|
@@ -60,6 +62,8 @@ export default defineComponent({
|
|
|
60
62
|
...props.category,
|
|
61
63
|
},
|
|
62
64
|
|
|
65
|
+
emits: ['change', 'update:modelValue', 'moved', 'click:date'],
|
|
66
|
+
|
|
63
67
|
data: () => ({
|
|
64
68
|
lastStart: null as CalendarTimestamp | null,
|
|
65
69
|
lastEnd: null as CalendarTimestamp | null,
|
|
@@ -236,11 +240,11 @@ export default defineComponent({
|
|
|
236
240
|
updateRelative(moved, this.times.now)
|
|
237
241
|
|
|
238
242
|
if (this.value instanceof Date) {
|
|
239
|
-
this.$emit('
|
|
243
|
+
this.$emit('update:modelValue', timestampToDate(moved))
|
|
240
244
|
} else if (typeof this.value === 'number') {
|
|
241
|
-
this.$emit('
|
|
245
|
+
this.$emit('update:modelValue', timestampToDate(moved).getTime())
|
|
242
246
|
} else {
|
|
243
|
-
this.$emit('
|
|
247
|
+
this.$emit('update:modelValue', moved.date)
|
|
244
248
|
}
|
|
245
249
|
|
|
246
250
|
this.$emit('moved', moved)
|
|
@@ -252,7 +256,7 @@ export default defineComponent({
|
|
|
252
256
|
this.move(-amount)
|
|
253
257
|
},
|
|
254
258
|
timeToY (time: VTime, clamp = true): number | false {
|
|
255
|
-
const c = this.$
|
|
259
|
+
const c = this.$refs.calendarChild as any
|
|
256
260
|
|
|
257
261
|
if (c && c.timeToY) {
|
|
258
262
|
return c.timeToY(time, clamp)
|
|
@@ -261,7 +265,7 @@ export default defineComponent({
|
|
|
261
265
|
}
|
|
262
266
|
},
|
|
263
267
|
timeDelta (time: VTime): number | false {
|
|
264
|
-
const c = this.$
|
|
268
|
+
const c = this.$refs.calendarChild as any
|
|
265
269
|
|
|
266
270
|
if (c && c.timeDelta) {
|
|
267
271
|
return c.timeDelta(time)
|
|
@@ -270,7 +274,7 @@ export default defineComponent({
|
|
|
270
274
|
}
|
|
271
275
|
},
|
|
272
276
|
minutesToPixels (minutes: number): number {
|
|
273
|
-
const c = this.$
|
|
277
|
+
const c = this.$refs.calendarChild as any
|
|
274
278
|
|
|
275
279
|
if (c && c.minutesToPixels) {
|
|
276
280
|
return c.minutesToPixels(minutes)
|
|
@@ -279,7 +283,7 @@ export default defineComponent({
|
|
|
279
283
|
}
|
|
280
284
|
},
|
|
281
285
|
scrollToTime (time: VTime): boolean {
|
|
282
|
-
const c = this.$
|
|
286
|
+
const c = this.$refs.calendarChild as any
|
|
283
287
|
|
|
284
288
|
if (c && c.scrollToTime) {
|
|
285
289
|
return c.scrollToTime(time)
|
|
@@ -350,32 +354,30 @@ export default defineComponent({
|
|
|
350
354
|
render (): VNode {
|
|
351
355
|
const { start, end, maxDays, component, weekdays, categories } = this.renderProps
|
|
352
356
|
|
|
353
|
-
|
|
357
|
+
// Only pass categories prop to VCalendarCategory component
|
|
358
|
+
const props: any = {
|
|
359
|
+
ref: 'calendarChild',
|
|
354
360
|
class: ['v-calendar', {
|
|
355
361
|
'v-calendar-events': !this.noEvents,
|
|
356
362
|
}],
|
|
357
|
-
...this.$props,
|
|
358
363
|
start: start.date,
|
|
359
364
|
end: end.date,
|
|
360
365
|
maxDays,
|
|
361
366
|
weekdays,
|
|
362
|
-
categories,
|
|
363
367
|
role: 'grid',
|
|
364
|
-
directives: [{
|
|
365
|
-
modifiers: { quiet: true },
|
|
366
|
-
name: 'resize',
|
|
367
|
-
value: this.updateEventVisibility,
|
|
368
|
-
}],
|
|
369
|
-
...this.$listeners,
|
|
370
368
|
'onClick:date': (day: CalendarTimestamp, e?: MouseEvent) => {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
if (this.$listeners['click:date']) {
|
|
375
|
-
this.$emit('click:date', day, e)
|
|
376
|
-
}
|
|
369
|
+
this.$emit('update:modelValue', day.date)
|
|
370
|
+
this.$emit('click:date', day, e)
|
|
377
371
|
},
|
|
378
|
-
|
|
379
|
-
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
// Only add categories prop for VCalendarCategory component
|
|
375
|
+
if (component.name === 'v-calendar-category') {
|
|
376
|
+
props.categories = categories
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
return withDirectives(h(component, props, this.getScopedSlots()), [
|
|
380
|
+
[Resize, this.updateEventVisibility, '', { quiet: true }],
|
|
381
|
+
])
|
|
380
382
|
},
|
|
381
383
|
})
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { h, defineComponent } from 'vue'
|
|
2
|
+
|
|
1
3
|
// Styles
|
|
2
4
|
import './VCalendarCategory.sass'
|
|
3
5
|
|
|
4
6
|
// Types
|
|
5
|
-
import { VNode
|
|
7
|
+
import { VNode } from 'vue'
|
|
6
8
|
|
|
7
9
|
// Mixins
|
|
8
10
|
import VCalendarDaily from './VCalendarDaily'
|
|
@@ -59,7 +61,7 @@ export default defineComponent({
|
|
|
59
61
|
const headerTitle = typeof scope.category === 'object' ? scope.category.categoryName : scope.category
|
|
60
62
|
return h('div', {
|
|
61
63
|
class: 'v-calendar-category__column-header',
|
|
62
|
-
|
|
64
|
+
...this.getDefaultMouseEventHandlers(':day-category', e => {
|
|
63
65
|
return this.getCategoryScope(this.getSlotScope(day), scope.category)
|
|
64
66
|
}),
|
|
65
67
|
}, [
|
|
@@ -85,9 +87,8 @@ export default defineComponent({
|
|
|
85
87
|
const category = this.parsedCategories[categoryIndex]
|
|
86
88
|
return h('div', {
|
|
87
89
|
key: day.date + '-' + categoryIndex,
|
|
88
|
-
class: 'v-calendar-daily__day',
|
|
89
|
-
|
|
90
|
-
on: this.getDefaultMouseEventHandlers(':time', e => {
|
|
90
|
+
class: ['v-calendar-daily__day', this.getRelativeClasses(day)],
|
|
91
|
+
...this.getDefaultMouseEventHandlers(':time', e => {
|
|
91
92
|
return this.getSlotScope(this.getTimestampAtEvent(e, day))
|
|
92
93
|
}),
|
|
93
94
|
}, [
|
|
@@ -111,7 +112,7 @@ export default defineComponent({
|
|
|
111
112
|
},
|
|
112
113
|
}
|
|
113
114
|
|
|
114
|
-
const children = getSlot(this, 'interval',
|
|
115
|
+
const children = getSlot(this, 'interval',
|
|
115
116
|
this.getCategoryScope(this.getSlotScope(interval), category)
|
|
116
117
|
)
|
|
117
118
|
|
|
@@ -129,12 +130,12 @@ export default defineComponent({
|
|
|
129
130
|
genDayBodyCategory (day: CalendarTimestamp, category: CalendarCategory): VNode {
|
|
130
131
|
const data = {
|
|
131
132
|
class: 'v-calendar-category__column',
|
|
132
|
-
|
|
133
|
+
...this.getDefaultMouseEventHandlers(':time-category', e => {
|
|
133
134
|
return this.getCategoryScope(this.getSlotScope(this.getTimestampAtEvent(e, day)), category)
|
|
134
135
|
}),
|
|
135
136
|
}
|
|
136
137
|
|
|
137
|
-
const children = getSlot(this, 'day-body',
|
|
138
|
+
const children = getSlot(this, 'day-body', this.getCategoryScope(this.getSlotScope(day), category))
|
|
138
139
|
|
|
139
140
|
return h('div', data, children)
|
|
140
141
|
},
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import {h} from 'vue'
|
|
1
|
+
import { h, defineComponent, withDirectives, VNode } from 'vue'
|
|
2
2
|
// Styles
|
|
3
3
|
import './VCalendarDaily.sass'
|
|
4
4
|
|
|
5
|
-
// Types
|
|
6
|
-
import { VNode, defineComponent } from 'vue'
|
|
7
|
-
|
|
8
5
|
// Directives
|
|
9
6
|
import Resize from '../../directives/resize'
|
|
10
7
|
|
|
@@ -21,9 +18,9 @@ import { CalendarTimestamp } from 'vuetify/types'
|
|
|
21
18
|
/* @vue/component */
|
|
22
19
|
export default defineComponent({
|
|
23
20
|
name: 'v-calendar-daily',
|
|
24
|
-
extends: CalendarWithIntervals,
|
|
25
21
|
|
|
26
|
-
|
|
22
|
+
|
|
23
|
+
extends: CalendarWithIntervals,
|
|
27
24
|
|
|
28
25
|
data: () => ({
|
|
29
26
|
scrollPush: 0,
|
|
@@ -82,9 +79,8 @@ export default defineComponent({
|
|
|
82
79
|
genHeadDay (day: CalendarTimestamp, index: number): VNode {
|
|
83
80
|
return h('div', {
|
|
84
81
|
key: day.date,
|
|
85
|
-
class: 'v-calendar-daily_head-day',
|
|
86
|
-
|
|
87
|
-
on: this.getDefaultMouseEventHandlers(':day', nativeEvent => {
|
|
82
|
+
class: ['v-calendar-daily_head-day', this.getRelativeClasses(day)],
|
|
83
|
+
...this.getDefaultMouseEventHandlers(':day', nativeEvent => {
|
|
88
84
|
return { nativeEvent, ...this.getSlotScope(day) }
|
|
89
85
|
}),
|
|
90
86
|
}, [
|
|
@@ -94,9 +90,9 @@ export default defineComponent({
|
|
|
94
90
|
])
|
|
95
91
|
},
|
|
96
92
|
genDayHeader (day: CalendarTimestamp, index: number): VNode[] {
|
|
97
|
-
return getSlot(this, 'day-header',
|
|
93
|
+
return getSlot(this, 'day-header', {
|
|
98
94
|
week: this.days, ...day, index,
|
|
99
|
-
})
|
|
95
|
+
}) || []
|
|
100
96
|
},
|
|
101
97
|
genHeadWeekday (day: CalendarTimestamp): VNode {
|
|
102
98
|
const color = day.present ? this.color : undefined
|
|
@@ -123,7 +119,7 @@ export default defineComponent({
|
|
|
123
119
|
}, nativeEvent => {
|
|
124
120
|
return { nativeEvent, ...day }
|
|
125
121
|
}),
|
|
126
|
-
}, this.dayFormatter(day, false))
|
|
122
|
+
}, { default: () => this.dayFormatter(day, false) })
|
|
127
123
|
},
|
|
128
124
|
genBody (): VNode {
|
|
129
125
|
return h('div', {
|
|
@@ -165,9 +161,8 @@ export default defineComponent({
|
|
|
165
161
|
genDay (day: CalendarTimestamp, index: number): VNode {
|
|
166
162
|
return h('div', {
|
|
167
163
|
key: day.date,
|
|
168
|
-
class: 'v-calendar-daily__day',
|
|
169
|
-
|
|
170
|
-
on: this.getDefaultMouseEventHandlers(':time', nativeEvent => {
|
|
164
|
+
class: ['v-calendar-daily__day', this.getRelativeClasses(day)],
|
|
165
|
+
...this.getDefaultMouseEventHandlers(':time', nativeEvent => {
|
|
171
166
|
return { nativeEvent, ...this.getSlotScope(this.getTimestampAtEvent(nativeEvent, day)) }
|
|
172
167
|
}),
|
|
173
168
|
}, [
|
|
@@ -176,7 +171,7 @@ export default defineComponent({
|
|
|
176
171
|
])
|
|
177
172
|
},
|
|
178
173
|
genDayBody (day: CalendarTimestamp): VNode[] {
|
|
179
|
-
return getSlot(this, 'day-body',
|
|
174
|
+
return getSlot(this, 'day-body', this.getSlotScope(day)) || []
|
|
180
175
|
},
|
|
181
176
|
genDayIntervals (index: number): VNode[] {
|
|
182
177
|
return this.intervals[index].map(this.genDayInterval)
|
|
@@ -195,7 +190,7 @@ export default defineComponent({
|
|
|
195
190
|
|
|
196
191
|
}
|
|
197
192
|
|
|
198
|
-
const children = getSlot(this, 'interval',
|
|
193
|
+
const children = getSlot(this, 'interval', this.getSlotScope(interval))
|
|
199
194
|
|
|
200
195
|
return h('div', data, children)
|
|
201
196
|
},
|
|
@@ -206,7 +201,7 @@ export default defineComponent({
|
|
|
206
201
|
style: {
|
|
207
202
|
width,
|
|
208
203
|
},
|
|
209
|
-
|
|
204
|
+
...this.getDefaultMouseEventHandlers(':interval', nativeEvent => {
|
|
210
205
|
return { nativeEvent, ...this.getTimestampAtEvent(nativeEvent, this.parsedStart) }
|
|
211
206
|
}),
|
|
212
207
|
}
|
|
@@ -240,21 +235,16 @@ export default defineComponent({
|
|
|
240
235
|
},
|
|
241
236
|
|
|
242
237
|
render (): VNode {
|
|
243
|
-
return h('div', {
|
|
238
|
+
return withDirectives(h('div', {
|
|
244
239
|
class: this.classes,
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
e.preventDefault()
|
|
248
|
-
},
|
|
240
|
+
onDragstart: (e: MouseEvent) => {
|
|
241
|
+
e.preventDefault()
|
|
249
242
|
},
|
|
250
|
-
directives: [{
|
|
251
|
-
modifiers: { quiet: true },
|
|
252
|
-
name: 'resize',
|
|
253
|
-
value: this.onResize,
|
|
254
|
-
}],
|
|
255
243
|
}, [
|
|
256
244
|
!this.hideHeader ? this.genHead() : '',
|
|
257
245
|
this.genBody(),
|
|
246
|
+
]), [
|
|
247
|
+
[Resize, this.onResize, '', { quiet: true }],
|
|
258
248
|
])
|
|
259
249
|
},
|
|
260
250
|
})
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { defineComponent } from 'vue'
|
|
2
|
+
|
|
1
3
|
// Styles
|
|
2
4
|
import './VCalendarWeekly.sass'
|
|
3
5
|
|
|
@@ -7,7 +9,6 @@ import VCalendarWeekly from './VCalendarWeekly'
|
|
|
7
9
|
// Util
|
|
8
10
|
import { parseTimestamp, getStartOfMonth, getEndOfMonth } from './util/timestamp'
|
|
9
11
|
import { CalendarTimestamp } from 'vuetify/types'
|
|
10
|
-
import { defineComponent } from 'vue'
|
|
11
12
|
|
|
12
13
|
/* @vue/component */
|
|
13
14
|
export default defineComponent({
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {h} from 'vue'
|
|
1
|
+
import { h, defineComponent } from 'vue'
|
|
2
2
|
// Styles
|
|
3
3
|
import './VCalendarWeekly.sass'
|
|
4
4
|
|
|
5
5
|
// Types
|
|
6
|
-
import { VNode
|
|
6
|
+
import { VNode } from 'vue'
|
|
7
7
|
|
|
8
8
|
// Components
|
|
9
9
|
import VBtn from '../VBtn'
|
|
@@ -92,9 +92,7 @@ export default defineComponent({
|
|
|
92
92
|
genHead (): VNode {
|
|
93
93
|
return h('div', {
|
|
94
94
|
class: 'v-calendar-weekly__head',
|
|
95
|
-
|
|
96
|
-
role: 'row',
|
|
97
|
-
},
|
|
95
|
+
role: 'row',
|
|
98
96
|
}, this.genHeadDays())
|
|
99
97
|
},
|
|
100
98
|
genHeadDays (): VNode[] {
|
|
@@ -114,11 +112,8 @@ export default defineComponent({
|
|
|
114
112
|
|
|
115
113
|
return h('div', this.setTextColor(color, {
|
|
116
114
|
key: day.date,
|
|
117
|
-
class: 'v-calendar-weekly__head-weekday',
|
|
118
|
-
|
|
119
|
-
attrs: {
|
|
120
|
-
role: 'columnheader',
|
|
121
|
-
},
|
|
115
|
+
class: ['v-calendar-weekly__head-weekday', this.getRelativeClasses(day, outside)],
|
|
116
|
+
role: 'columnheader',
|
|
122
117
|
}), this.weekdayFormatter(day, this.shortWeekdays))
|
|
123
118
|
},
|
|
124
119
|
genWeeks (): VNode[] {
|
|
@@ -142,9 +137,7 @@ export default defineComponent({
|
|
|
142
137
|
return h('div', {
|
|
143
138
|
key: week[0].date,
|
|
144
139
|
class: 'v-calendar-weekly__week',
|
|
145
|
-
|
|
146
|
-
role: 'row',
|
|
147
|
-
},
|
|
140
|
+
role: 'row',
|
|
148
141
|
}, weekNodes)
|
|
149
142
|
},
|
|
150
143
|
getWeekNumber (determineDay: CalendarTimestamp) {
|
|
@@ -168,17 +161,14 @@ export default defineComponent({
|
|
|
168
161
|
|
|
169
162
|
return h('div', {
|
|
170
163
|
key: day.date,
|
|
171
|
-
class: 'v-calendar-weekly__day',
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
role: 'cell',
|
|
175
|
-
},
|
|
176
|
-
on: this.getDefaultMouseEventHandlers(':day', nativeEvent => {
|
|
164
|
+
class: ['v-calendar-weekly__day', this.getRelativeClasses(day, outside)],
|
|
165
|
+
role: 'cell',
|
|
166
|
+
...this.getDefaultMouseEventHandlers(':day', nativeEvent => {
|
|
177
167
|
return { nativeEvent, ...day }
|
|
178
168
|
}),
|
|
179
169
|
}, [
|
|
180
170
|
this.genDayLabel(day),
|
|
181
|
-
...(getSlot(this, 'day',
|
|
171
|
+
...(getSlot(this, 'day', { outside, index, week, ...day }) || []),
|
|
182
172
|
])
|
|
183
173
|
},
|
|
184
174
|
genDayLabel (day: CalendarTimestamp): VNode {
|
|
@@ -199,10 +189,11 @@ export default defineComponent({
|
|
|
199
189
|
'click:date': { event: 'click', stop: true },
|
|
200
190
|
'contextmenu:date': { event: 'contextmenu', stop: true, prevent: true, result: false },
|
|
201
191
|
}, nativeEvent => ({ nativeEvent, ...day })),
|
|
202
|
-
},
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
192
|
+
}, {
|
|
193
|
+
default: () => hasMonth
|
|
194
|
+
? this.monthFormatter(day, this.shortMonths) + ' ' + this.dayFormatter(day, false)
|
|
195
|
+
: this.dayFormatter(day, false)
|
|
196
|
+
})
|
|
206
197
|
},
|
|
207
198
|
genDayMonth (day: CalendarTimestamp): VNode | string {
|
|
208
199
|
const color = day.present ? this.color : undefined
|
|
@@ -215,12 +206,9 @@ export default defineComponent({
|
|
|
215
206
|
|
|
216
207
|
render (): VNode {
|
|
217
208
|
return h('div', {
|
|
218
|
-
class: this.staticClass,
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
dragstart: (e: MouseEvent) => {
|
|
222
|
-
e.preventDefault()
|
|
223
|
-
},
|
|
209
|
+
class: [this.staticClass, this.classes],
|
|
210
|
+
onDragstart: (e: MouseEvent) => {
|
|
211
|
+
e.preventDefault()
|
|
224
212
|
},
|
|
225
213
|
}, [
|
|
226
214
|
!this.hideHeader ? this.genHead() : '',
|