@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
|
@@ -4,19 +4,13 @@ import {
|
|
|
4
4
|
mount,
|
|
5
5
|
MountOptions,
|
|
6
6
|
Wrapper,
|
|
7
|
+
enableAutoUnmount,
|
|
7
8
|
} from '@vue/test-utils'
|
|
8
|
-
import
|
|
9
|
+
import { createApp } from 'vue'
|
|
9
10
|
import { preset } from '../../../presets/default'
|
|
10
11
|
import en from '../../../locale/en'
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
icons: {
|
|
14
|
-
values: {
|
|
15
|
-
next: 'mdi-chevron-right',
|
|
16
|
-
prev: 'mdi-chevron-left',
|
|
17
|
-
},
|
|
18
|
-
},
|
|
19
|
-
}
|
|
13
|
+
enableAutoUnmount(afterEach)
|
|
20
14
|
|
|
21
15
|
describe('VDatePicker.ts', () => {
|
|
22
16
|
type Instance = InstanceType<typeof VDatePicker>
|
|
@@ -25,12 +19,20 @@ describe('VDatePicker.ts', () => {
|
|
|
25
19
|
mountFunction = (options?: MountOptions<Instance>) => {
|
|
26
20
|
return mount(VDatePicker, {
|
|
27
21
|
...options,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
22
|
+
global: {
|
|
23
|
+
mocks: {
|
|
24
|
+
$vuetify: {
|
|
25
|
+
rtl: false,
|
|
26
|
+
lang: new Lang({
|
|
27
|
+
...preset,
|
|
28
|
+
}),
|
|
29
|
+
icons: {
|
|
30
|
+
values: {
|
|
31
|
+
next: 'mdi-chevron-right',
|
|
32
|
+
prev: 'mdi-chevron-left',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
},
|
|
34
36
|
},
|
|
35
37
|
},
|
|
36
38
|
})
|
|
@@ -39,14 +41,14 @@ describe('VDatePicker.ts', () => {
|
|
|
39
41
|
|
|
40
42
|
it('should emit input event on year click (reactive picker)', async () => {
|
|
41
43
|
const wrapper = mountFunction({
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
props: {
|
|
45
|
+
modelValue: '2013-05',
|
|
44
46
|
type: 'month',
|
|
45
47
|
reactive: true,
|
|
46
48
|
},
|
|
47
49
|
})
|
|
48
50
|
|
|
49
|
-
wrapper.setData({
|
|
51
|
+
await wrapper.setData({
|
|
50
52
|
internalActivePicker: 'YEAR',
|
|
51
53
|
})
|
|
52
54
|
|
|
@@ -54,17 +56,17 @@ describe('VDatePicker.ts', () => {
|
|
|
54
56
|
wrapper.vm.$on('input', input)
|
|
55
57
|
|
|
56
58
|
const change = jest.fn()
|
|
57
|
-
wrapper.vm.$on('change',
|
|
59
|
+
wrapper.vm.$on('change', change)
|
|
58
60
|
|
|
59
|
-
wrapper.findAll('.v-date-picker-years li.active + li')
|
|
61
|
+
await wrapper.findAll('.v-date-picker-years li.active + li')[0].trigger('click')
|
|
60
62
|
expect(input).toHaveBeenCalledWith('2012-05')
|
|
61
63
|
expect(change).not.toHaveBeenCalled()
|
|
62
64
|
})
|
|
63
65
|
|
|
64
66
|
it('should render flat picker', () => {
|
|
65
67
|
const wrapper = mountFunction({
|
|
66
|
-
|
|
67
|
-
|
|
68
|
+
props: {
|
|
69
|
+
modelValue: '2013-05',
|
|
68
70
|
flat: true,
|
|
69
71
|
type: 'month',
|
|
70
72
|
},
|
|
@@ -75,8 +77,8 @@ describe('VDatePicker.ts', () => {
|
|
|
75
77
|
|
|
76
78
|
it('should render picker with elevation', () => {
|
|
77
79
|
const wrapper = mountFunction({
|
|
78
|
-
|
|
79
|
-
|
|
80
|
+
props: {
|
|
81
|
+
modelValue: '2013-05',
|
|
80
82
|
elevation: 15,
|
|
81
83
|
type: 'month',
|
|
82
84
|
},
|
|
@@ -88,54 +90,54 @@ describe('VDatePicker.ts', () => {
|
|
|
88
90
|
it('should not emit input event on year click if month is not allowed', async () => {
|
|
89
91
|
const cb = jest.fn()
|
|
90
92
|
const wrapper = mountFunction({
|
|
91
|
-
|
|
92
|
-
|
|
93
|
+
props: {
|
|
94
|
+
modelValue: '2013-05',
|
|
93
95
|
type: 'month',
|
|
94
96
|
allowedDates: () => false,
|
|
95
97
|
},
|
|
96
98
|
})
|
|
97
99
|
|
|
98
|
-
wrapper.setData({
|
|
100
|
+
await wrapper.setData({
|
|
99
101
|
internalActivePicker: 'YEAR',
|
|
100
102
|
})
|
|
101
103
|
|
|
102
104
|
wrapper.vm.$on('input', cb)
|
|
103
|
-
wrapper.findAll('.v-date-picker-years li.active + li')
|
|
105
|
+
await wrapper.findAll('.v-date-picker-years li.active + li')[0].trigger('click')
|
|
104
106
|
expect(cb).not.toHaveBeenCalled()
|
|
105
107
|
})
|
|
106
108
|
|
|
107
109
|
it('should emit input event on month click', async () => {
|
|
108
110
|
const cb = jest.fn()
|
|
109
111
|
const wrapper = mountFunction({
|
|
110
|
-
|
|
111
|
-
|
|
112
|
+
props: {
|
|
113
|
+
modelValue: '2013-05',
|
|
112
114
|
type: 'month',
|
|
113
115
|
},
|
|
114
116
|
})
|
|
115
117
|
|
|
116
118
|
wrapper.vm.$on('input', cb)
|
|
117
|
-
wrapper.findAll('.v-date-picker-table--month button')
|
|
119
|
+
await wrapper.findAll('.v-date-picker-table--month button')[0].trigger('click')
|
|
118
120
|
expect(cb).toHaveBeenCalledWith('2013-01')
|
|
119
121
|
})
|
|
120
122
|
|
|
121
123
|
it('should be scrollable', async () => {
|
|
122
124
|
const wrapper = mountFunction({
|
|
123
|
-
|
|
124
|
-
|
|
125
|
+
props: {
|
|
126
|
+
modelValue: '2013-05',
|
|
125
127
|
type: 'month',
|
|
126
128
|
scrollable: true,
|
|
127
129
|
},
|
|
128
130
|
})
|
|
129
131
|
|
|
130
|
-
wrapper.findAll('.v-date-picker-table--month')
|
|
132
|
+
await wrapper.findAll('.v-date-picker-table--month')[0].trigger('wheel', { deltaY: 1 })
|
|
131
133
|
await wrapper.vm.$nextTick()
|
|
132
134
|
expect(wrapper.vm.tableDate).toBe('2014')
|
|
133
135
|
})
|
|
134
136
|
|
|
135
137
|
it('should match snapshot with pick-month prop', () => {
|
|
136
138
|
const wrapper = mountFunction({
|
|
137
|
-
|
|
138
|
-
|
|
139
|
+
props: {
|
|
140
|
+
modelValue: '2013-05-07',
|
|
139
141
|
type: 'month',
|
|
140
142
|
},
|
|
141
143
|
})
|
|
@@ -145,33 +147,33 @@ describe('VDatePicker.ts', () => {
|
|
|
145
147
|
|
|
146
148
|
it('should match snapshot with allowed dates as array', () => {
|
|
147
149
|
const wrapper = mountFunction({
|
|
148
|
-
|
|
149
|
-
|
|
150
|
+
props: {
|
|
151
|
+
modelValue: '2013-05',
|
|
150
152
|
type: 'month',
|
|
151
153
|
allowedDates: value => ['2013-01', '2013-03', '2013-05', '2013-07'].includes(value),
|
|
152
154
|
},
|
|
153
155
|
})
|
|
154
156
|
|
|
155
|
-
expect(wrapper.findAll('.v-date-picker-table--month tbody')
|
|
157
|
+
expect(wrapper.findAll('.v-date-picker-table--month tbody')[0].html()).toMatchSnapshot()
|
|
156
158
|
})
|
|
157
159
|
|
|
158
160
|
it('should match snapshot with month formatting functions', () => {
|
|
159
161
|
const wrapper = mountFunction({
|
|
160
|
-
|
|
161
|
-
|
|
162
|
+
props: {
|
|
163
|
+
modelValue: '2005-11-01',
|
|
162
164
|
type: 'month',
|
|
163
165
|
monthFormat: date => `(${date.split('-')[1]})`,
|
|
164
166
|
},
|
|
165
167
|
})
|
|
166
168
|
|
|
167
|
-
expect(wrapper.findAll('.v-date-picker-table--month tbody')
|
|
169
|
+
expect(wrapper.findAll('.v-date-picker-table--month tbody')[0].html()).toMatchSnapshot()
|
|
168
170
|
})
|
|
169
171
|
|
|
170
172
|
it('should match snapshot with colored picker & header', () => {
|
|
171
173
|
const wrapper = mountFunction({
|
|
172
|
-
|
|
174
|
+
props: {
|
|
173
175
|
type: 'month',
|
|
174
|
-
|
|
176
|
+
modelValue: '2005-11-01',
|
|
175
177
|
color: 'primary',
|
|
176
178
|
headerColor: 'orange darken-1',
|
|
177
179
|
},
|
|
@@ -182,9 +184,9 @@ describe('VDatePicker.ts', () => {
|
|
|
182
184
|
|
|
183
185
|
it('should match snapshot with colored picker', () => {
|
|
184
186
|
const wrapper = mountFunction({
|
|
185
|
-
|
|
187
|
+
props: {
|
|
186
188
|
type: 'month',
|
|
187
|
-
|
|
189
|
+
modelValue: '2005-11-01',
|
|
188
190
|
color: 'orange darken-1',
|
|
189
191
|
},
|
|
190
192
|
})
|
|
@@ -192,98 +194,98 @@ describe('VDatePicker.ts', () => {
|
|
|
192
194
|
expect(wrapper.html()).toMatchSnapshot()
|
|
193
195
|
})
|
|
194
196
|
|
|
195
|
-
it('should match change month when clicked on header arrow buttons', () => {
|
|
197
|
+
it('should match change month when clicked on header arrow buttons', async () => {
|
|
196
198
|
const wrapper = mountFunction({
|
|
197
|
-
|
|
198
|
-
|
|
199
|
+
props: {
|
|
200
|
+
modelValue: '2005-11',
|
|
199
201
|
type: 'month',
|
|
200
202
|
},
|
|
201
203
|
})
|
|
202
204
|
|
|
203
|
-
const [leftButton, rightButton] = wrapper.findAll('.v-date-picker-header button.v-btn')
|
|
205
|
+
const [leftButton, rightButton] = wrapper.findAll('.v-date-picker-header button.v-btn')
|
|
204
206
|
|
|
205
|
-
leftButton.trigger('click')
|
|
207
|
+
await leftButton.trigger('click')
|
|
206
208
|
expect(wrapper.vm.tableDate).toBe('2004')
|
|
207
209
|
|
|
208
|
-
rightButton.trigger('click')
|
|
210
|
+
await rightButton.trigger('click')
|
|
209
211
|
expect(wrapper.vm.tableDate).toBe('2005')
|
|
210
212
|
})
|
|
211
213
|
|
|
212
|
-
it('should match change active picker when clicked on month button', () => {
|
|
214
|
+
it('should match change active picker when clicked on month button', async () => {
|
|
213
215
|
const wrapper = mountFunction({
|
|
214
|
-
|
|
215
|
-
|
|
216
|
+
props: {
|
|
217
|
+
modelValue: '2005-11-01',
|
|
216
218
|
type: 'month',
|
|
217
219
|
},
|
|
218
220
|
})
|
|
219
221
|
|
|
220
|
-
const button = wrapper.findAll('.v-date-picker-header__value button')
|
|
222
|
+
const button = wrapper.findAll('.v-date-picker-header__value button')[0]
|
|
221
223
|
|
|
222
|
-
button.trigger('click')
|
|
224
|
+
await button.trigger('click')
|
|
223
225
|
expect(wrapper.vm.internalActivePicker).toBe('YEAR')
|
|
224
226
|
})
|
|
225
227
|
|
|
226
228
|
it('should select year', async () => {
|
|
227
229
|
const wrapper = mountFunction({
|
|
228
|
-
|
|
230
|
+
props: {
|
|
229
231
|
type: 'month',
|
|
230
|
-
|
|
232
|
+
modelValue: '2005-11',
|
|
231
233
|
},
|
|
232
234
|
})
|
|
233
235
|
|
|
234
|
-
wrapper.setData({
|
|
236
|
+
await wrapper.setData({
|
|
235
237
|
internalActivePicker: 'YEAR',
|
|
236
238
|
})
|
|
237
239
|
|
|
238
|
-
wrapper.findAll('.v-date-picker-years li.active + li')
|
|
240
|
+
await wrapper.findAll('.v-date-picker-years li.active + li')[0].trigger('click')
|
|
239
241
|
expect(wrapper.vm.internalActivePicker).toBe('MONTH')
|
|
240
242
|
expect(wrapper.vm.tableDate).toBe('2004')
|
|
241
243
|
})
|
|
242
244
|
|
|
243
|
-
it('should set the table date when value has changed', () => {
|
|
245
|
+
it('should set the table date when value has changed', async () => {
|
|
244
246
|
const wrapper = mountFunction({
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
props: {
|
|
248
|
+
modelValue: null,
|
|
247
249
|
type: 'month',
|
|
248
250
|
},
|
|
249
251
|
})
|
|
250
252
|
|
|
251
|
-
wrapper.setProps({
|
|
253
|
+
await wrapper.setProps({ modelValue: '2005-11' })
|
|
252
254
|
expect(wrapper.vm.tableDate).toBe('2005')
|
|
253
255
|
})
|
|
254
256
|
|
|
255
257
|
it('should use prev and next icons', () => {
|
|
256
258
|
const wrapper = mountFunction({
|
|
257
|
-
|
|
259
|
+
props: {
|
|
258
260
|
type: 'month',
|
|
259
261
|
prevIcon: 'block',
|
|
260
262
|
nextIcon: 'check',
|
|
261
263
|
},
|
|
262
264
|
})
|
|
263
265
|
|
|
264
|
-
const icons = wrapper.findAll('.v-date-picker-header .v-icon')
|
|
266
|
+
const icons = wrapper.findAll('.v-date-picker-header .v-icon')
|
|
265
267
|
expect(icons[0].element.textContent).toBe('block')
|
|
266
268
|
expect(icons[1].element.textContent).toBe('check')
|
|
267
269
|
})
|
|
268
270
|
|
|
269
271
|
it('should display translated title', async () => {
|
|
270
272
|
const wrapper = mountFunction({
|
|
271
|
-
|
|
273
|
+
props: {
|
|
272
274
|
multiple: true,
|
|
273
275
|
type: 'month',
|
|
274
|
-
|
|
276
|
+
modelValue: ['2013-05'],
|
|
275
277
|
},
|
|
276
278
|
})
|
|
277
279
|
|
|
278
280
|
expect(wrapper.find('.v-date-picker-title__date').text()).toBe('May')
|
|
279
281
|
|
|
280
|
-
wrapper.setProps({
|
|
281
|
-
|
|
282
|
+
await wrapper.setProps({
|
|
283
|
+
modelValue: [],
|
|
282
284
|
})
|
|
283
285
|
expect(wrapper.find('.v-date-picker-title__date').text()).toBe('-')
|
|
284
286
|
|
|
285
|
-
wrapper.setProps({
|
|
286
|
-
|
|
287
|
+
await wrapper.setProps({
|
|
288
|
+
modelValue: ['2013-05', '2013-06', '2013-07'],
|
|
287
289
|
})
|
|
288
290
|
expect(wrapper.find('.v-date-picker-title__date').text()).toBe('3 selected')
|
|
289
291
|
})
|
|
@@ -292,30 +294,32 @@ describe('VDatePicker.ts', () => {
|
|
|
292
294
|
const click = jest.fn()
|
|
293
295
|
const dblclick = jest.fn()
|
|
294
296
|
const wrapper = mountFunction({
|
|
295
|
-
|
|
296
|
-
|
|
297
|
+
props: {
|
|
298
|
+
modelValue: '2013-05',
|
|
297
299
|
type: 'month',
|
|
298
300
|
},
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
301
|
+
global: {
|
|
302
|
+
listeners: {
|
|
303
|
+
'click:month': (value: any, event: any) => click(value, event instanceof Event),
|
|
304
|
+
'dblclick:month': (value: any, event: any) => dblclick(value, event instanceof Event),
|
|
305
|
+
},
|
|
302
306
|
},
|
|
303
307
|
})
|
|
304
308
|
|
|
305
|
-
wrapper.findAll('.v-date-picker-table--month tbody tr+tr td:first-child button')
|
|
309
|
+
await wrapper.findAll('.v-date-picker-table--month tbody tr+tr td:first-child button')[0].trigger('click')
|
|
306
310
|
expect(click).toHaveBeenCalledWith('2013-04', true)
|
|
307
311
|
|
|
308
|
-
wrapper.findAll('.v-date-picker-table--month tbody tr+tr td:first-child button')
|
|
312
|
+
await wrapper.findAll('.v-date-picker-table--month tbody tr+tr td:first-child button')[0].trigger('dblclick')
|
|
309
313
|
expect(dblclick).toHaveBeenCalledWith('2013-04', true)
|
|
310
314
|
})
|
|
311
315
|
|
|
312
316
|
it('should handle date range select', async () => {
|
|
313
317
|
const cb = jest.fn()
|
|
314
318
|
const wrapper = mountFunction({
|
|
315
|
-
|
|
319
|
+
props: {
|
|
316
320
|
range: true,
|
|
317
321
|
type: 'month',
|
|
318
|
-
|
|
322
|
+
modelValue: [],
|
|
319
323
|
},
|
|
320
324
|
})
|
|
321
325
|
const year = new Date().getFullYear()
|
|
@@ -323,23 +327,23 @@ describe('VDatePicker.ts', () => {
|
|
|
323
327
|
const fromDate = `${year}-03`
|
|
324
328
|
|
|
325
329
|
wrapper.vm.$on('input', cb)
|
|
326
|
-
wrapper.find('.v-date-picker-table--month tbody tr:first-child td:nth-child(3) button').trigger('click')
|
|
330
|
+
await wrapper.find('.v-date-picker-table--month tbody tr:first-child td:nth-child(3) button').trigger('click')
|
|
327
331
|
expect(cb.mock.calls[0][0]).toEqual(
|
|
328
332
|
expect.arrayContaining([fromDate])
|
|
329
333
|
)
|
|
330
334
|
|
|
331
|
-
wrapper.find('.v-date-picker-table--month tbody tr:first-child+tr+tr td:nth-child(2) button').trigger('click')
|
|
335
|
+
await wrapper.find('.v-date-picker-table--month tbody tr:first-child+tr+tr td:nth-child(2) button').trigger('click')
|
|
332
336
|
expect(cb.mock.calls[0][0][0]).toBe(fromDate)
|
|
333
337
|
expect(cb.mock.calls[1][0][0]).toBe(toDate)
|
|
334
338
|
})
|
|
335
339
|
|
|
336
340
|
it('should add class for the first and last days in range', async () => {
|
|
337
341
|
const wrapper = mountFunction({
|
|
338
|
-
|
|
342
|
+
props: {
|
|
339
343
|
range: true,
|
|
340
344
|
showCurrent: '2019',
|
|
341
345
|
type: 'month',
|
|
342
|
-
|
|
346
|
+
modelValue: ['2019-01', '2019-02'],
|
|
343
347
|
},
|
|
344
348
|
})
|
|
345
349
|
|