@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
|
@@ -39,7 +39,7 @@ describe('VEditDialog.ts', () => {
|
|
|
39
39
|
|
|
40
40
|
it('should render custom button texts', () => {
|
|
41
41
|
const wrapper = mountFunction({
|
|
42
|
-
|
|
42
|
+
props: {
|
|
43
43
|
cancelText: `I don't want to modify that!`,
|
|
44
44
|
saveText: 'Save it!',
|
|
45
45
|
},
|
|
@@ -55,9 +55,9 @@ describe('VEditDialog.ts', () => {
|
|
|
55
55
|
const close = jest.fn()
|
|
56
56
|
|
|
57
57
|
const wrapper = mountFunction({
|
|
58
|
-
|
|
59
|
-
open,
|
|
60
|
-
close,
|
|
58
|
+
props: {
|
|
59
|
+
onOpen: open,
|
|
60
|
+
onClose: close,
|
|
61
61
|
},
|
|
62
62
|
})
|
|
63
63
|
|
|
@@ -78,13 +78,13 @@ describe('VEditDialog.ts', () => {
|
|
|
78
78
|
const close = jest.fn()
|
|
79
79
|
|
|
80
80
|
const wrapper = mountFunction({
|
|
81
|
-
|
|
82
|
-
open,
|
|
83
|
-
close,
|
|
81
|
+
props: {
|
|
82
|
+
onOpen: open,
|
|
83
|
+
onClose: close,
|
|
84
84
|
},
|
|
85
85
|
})
|
|
86
86
|
|
|
87
|
-
const menu = wrapper.
|
|
87
|
+
const menu = wrapper.findComponent(VMenu)
|
|
88
88
|
|
|
89
89
|
menu.vm.$emit('input', true)
|
|
90
90
|
await wrapper.vm.$nextTick()
|
|
@@ -100,8 +100,8 @@ describe('VEditDialog.ts', () => {
|
|
|
100
100
|
|
|
101
101
|
const parentWrapper = mount({
|
|
102
102
|
template: `
|
|
103
|
-
<v-edit-dialog :return-value
|
|
104
|
-
<template
|
|
103
|
+
<v-edit-dialog v-model:return-value="val">
|
|
104
|
+
<template #input>
|
|
105
105
|
<input v-model="val" class="test"/>
|
|
106
106
|
</template>
|
|
107
107
|
</v-edit-dialog>
|
|
@@ -115,30 +115,34 @@ describe('VEditDialog.ts', () => {
|
|
|
115
115
|
},
|
|
116
116
|
data () {
|
|
117
117
|
return {
|
|
118
|
-
val: '',
|
|
118
|
+
val: 'test',
|
|
119
119
|
}
|
|
120
120
|
},
|
|
121
121
|
})
|
|
122
122
|
|
|
123
|
-
const wrapper = parentWrapper.
|
|
123
|
+
const wrapper = parentWrapper.findComponent(VEditDialog)
|
|
124
124
|
const field = parentWrapper.find('input.test')
|
|
125
125
|
const input = wrapper.vm.$refs.content as HTMLElement
|
|
126
126
|
|
|
127
127
|
// Make sure originalValue gets set
|
|
128
128
|
wrapper.vm.isActive = true
|
|
129
129
|
field.setValue('test')
|
|
130
|
+
// Update the parent component's val to match the input value
|
|
131
|
+
parentWrapper.vm.val = 'test'
|
|
130
132
|
input.dispatchEvent(new KeyboardEvent('keydown', { keyCode: keyCodes.esc } as KeyboardEventInit))
|
|
131
133
|
expect(wrapper.emitted('cancel')).toBeTruthy()
|
|
132
|
-
expect(wrapper.emitted('update:return-value')[0]).toEqual([''])
|
|
133
|
-
expect(wrapper.props('returnValue')).toBe('')
|
|
134
|
+
expect(wrapper.emitted('update:return-value')?.[0]).toEqual(['test'])
|
|
135
|
+
expect(wrapper.props('returnValue')).toBe('test')
|
|
134
136
|
|
|
135
137
|
wrapper.vm.isActive = true
|
|
136
138
|
field.setValue('test')
|
|
139
|
+
// Update the parent component's val to match the input value
|
|
140
|
+
parentWrapper.vm.val = 'test'
|
|
137
141
|
input.dispatchEvent(new KeyboardEvent('keydown', { keyCode: keyCodes.enter } as KeyboardEventInit))
|
|
138
142
|
expect(wrapper.emitted('save')).toBeTruthy()
|
|
139
143
|
expect(setTimeout).toHaveBeenLastCalledWith(expect.any(Function))
|
|
140
144
|
jest.advanceTimersByTime(0)
|
|
141
|
-
expect(wrapper.emitted('update:return-value')[1]).toEqual(['test'])
|
|
145
|
+
expect(wrapper.emitted('update:return-value')?.[1]).toEqual(['test'])
|
|
142
146
|
expect(wrapper.props('returnValue')).toBe('test')
|
|
143
147
|
|
|
144
148
|
jest.useRealTimers()
|
|
@@ -182,17 +186,17 @@ describe('VEditDialog.ts', () => {
|
|
|
182
186
|
const saveEvent = jest.fn()
|
|
183
187
|
|
|
184
188
|
const wrapper = mountFunction({
|
|
185
|
-
methods: {
|
|
186
|
-
save,
|
|
187
|
-
},
|
|
188
189
|
render () {
|
|
189
190
|
return this.genActions()
|
|
190
191
|
},
|
|
191
|
-
|
|
192
|
-
|
|
192
|
+
props: {
|
|
193
|
+
onSave: saveEvent,
|
|
193
194
|
},
|
|
194
195
|
})
|
|
195
196
|
|
|
197
|
+
// Mock the save method
|
|
198
|
+
wrapper.vm.save = save
|
|
199
|
+
|
|
196
200
|
expect(wrapper.html()).toMatchSnapshot()
|
|
197
201
|
|
|
198
202
|
const btn = wrapper.find('.v-btn:last-child')
|
|
@@ -204,8 +208,8 @@ describe('VEditDialog.ts', () => {
|
|
|
204
208
|
it('should cancel', () => {
|
|
205
209
|
const cancel = jest.fn()
|
|
206
210
|
const wrapper = mountFunction({
|
|
207
|
-
|
|
208
|
-
cancel,
|
|
211
|
+
props: {
|
|
212
|
+
onCancel: cancel,
|
|
209
213
|
},
|
|
210
214
|
data: () => ({
|
|
211
215
|
isActive: true,
|
|
@@ -1,26 +1,37 @@
|
|
|
1
1
|
import VSimpleTable from '../VSimpleTable'
|
|
2
2
|
import {
|
|
3
3
|
mount,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
VueWrapper,
|
|
5
|
+
enableAutoUnmount,
|
|
6
6
|
} from '@vue/test-utils'
|
|
7
|
+
import { h } from 'vue'
|
|
7
8
|
|
|
8
9
|
describe('VSimpleTable.ts', () => {
|
|
9
10
|
type Instance = InstanceType<typeof VSimpleTable>
|
|
10
|
-
let mountFunction: (options?:
|
|
11
|
+
let mountFunction: (options?: any) => VueWrapper<Instance>
|
|
12
|
+
|
|
13
|
+
enableAutoUnmount(afterEach)
|
|
14
|
+
|
|
11
15
|
beforeEach(() => {
|
|
12
|
-
mountFunction = (options
|
|
13
|
-
return mount(VSimpleTable,
|
|
16
|
+
mountFunction = (options = {}) => {
|
|
17
|
+
return mount(VSimpleTable, {
|
|
18
|
+
global: {
|
|
19
|
+
config: {
|
|
20
|
+
warnHandler: () => {}, // Подавляем предупреждения Vue
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
...options,
|
|
24
|
+
})
|
|
14
25
|
}
|
|
15
26
|
})
|
|
16
27
|
|
|
17
28
|
it('should render', () => {
|
|
18
29
|
const wrapper = mountFunction({
|
|
19
30
|
slots: {
|
|
20
|
-
default:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
31
|
+
default: () => [
|
|
32
|
+
h('tr', [h('th', 'Foo'), h('th', 'Bar')]),
|
|
33
|
+
h('tr', [h('td', 'baz'), h('td', 'qux')]),
|
|
34
|
+
],
|
|
24
35
|
},
|
|
25
36
|
})
|
|
26
37
|
|
|
@@ -32,23 +43,43 @@ describe('VSimpleTable.ts', () => {
|
|
|
32
43
|
it('should render with custom wrapper', () => {
|
|
33
44
|
const wrapper = mountFunction({
|
|
34
45
|
slots: {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
default: () => [
|
|
47
|
+
h('tr', [h('th', 'Foo'), h('th', 'Bar')]),
|
|
48
|
+
h('tr', [h('td', 'baz'), h('td', 'qux')]),
|
|
49
|
+
],
|
|
50
|
+
wrapper: () => h('div', {
|
|
51
|
+
class: 'custom-wrapper',
|
|
52
|
+
'data-test': 'custom-wrapper'
|
|
53
|
+
}, [
|
|
54
|
+
h('table', { class: 'custom-table' }, [
|
|
55
|
+
h('tr', [h('th', 'Custom Header 1'), h('th', 'Custom Header 2')]),
|
|
56
|
+
h('tr', [h('td', 'Custom Data 1'), h('td', 'Custom Data 2')]),
|
|
57
|
+
])
|
|
58
|
+
])
|
|
41
59
|
},
|
|
42
60
|
})
|
|
43
61
|
|
|
62
|
+
|
|
63
|
+
// Проверяем, что дефолтный wrapper не используется
|
|
64
|
+
expect(wrapper.findAll('.v-data-table__wrapper')).toHaveLength(0)
|
|
65
|
+
|
|
66
|
+
// Проверяем, что кастомный wrapper присутствует
|
|
67
|
+
expect(wrapper.findAll('[data-test="custom-wrapper"]')).toHaveLength(1)
|
|
68
|
+
expect(wrapper.findAll('.custom-wrapper')).toHaveLength(1)
|
|
69
|
+
expect(wrapper.findAll('.custom-table')).toHaveLength(1)
|
|
70
|
+
|
|
71
|
+
// Проверяем содержимое кастомного wrapper
|
|
72
|
+
expect(wrapper.find('.custom-wrapper').text()).toContain('Custom Header 1')
|
|
73
|
+
expect(wrapper.find('.custom-wrapper').text()).toContain('Custom Data 1')
|
|
74
|
+
|
|
44
75
|
expect(wrapper.html()).toMatchSnapshot()
|
|
45
76
|
})
|
|
46
77
|
|
|
47
78
|
it('should render with top & bottom slots', () => {
|
|
48
79
|
const wrapper = mountFunction({
|
|
49
80
|
slots: {
|
|
50
|
-
top: '
|
|
51
|
-
bottom: '
|
|
81
|
+
top: () => h('div', { class: 'top' }, 'Header'),
|
|
82
|
+
bottom: () => h('div', { class: 'bottom' }, 'Footer'),
|
|
52
83
|
},
|
|
53
84
|
})
|
|
54
85
|
|
|
@@ -60,12 +91,12 @@ describe('VSimpleTable.ts', () => {
|
|
|
60
91
|
it('should render with custom height', () => {
|
|
61
92
|
const wrapper = mountFunction({
|
|
62
93
|
slots: {
|
|
63
|
-
default:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
94
|
+
default: () => [
|
|
95
|
+
h('tr', [h('th', 'Foo'), h('th', 'Bar')]),
|
|
96
|
+
h('tr', [h('td', 'baz'), h('td', 'qux')]),
|
|
97
|
+
],
|
|
67
98
|
},
|
|
68
|
-
|
|
99
|
+
props: {
|
|
69
100
|
height: 1000,
|
|
70
101
|
},
|
|
71
102
|
})
|
|
@@ -73,29 +104,29 @@ describe('VSimpleTable.ts', () => {
|
|
|
73
104
|
expect(wrapper.html()).toMatchSnapshot()
|
|
74
105
|
})
|
|
75
106
|
|
|
76
|
-
it('should compute classes', () => {
|
|
107
|
+
it('should compute classes', async () => {
|
|
77
108
|
const wrapper = mountFunction()
|
|
78
109
|
|
|
79
|
-
wrapper.setProps({
|
|
110
|
+
await wrapper.setProps({
|
|
80
111
|
dense: true,
|
|
81
112
|
})
|
|
82
113
|
expect(wrapper.vm.classes).toMatchObject({
|
|
83
114
|
'v-data-table--dense': true,
|
|
84
115
|
})
|
|
85
|
-
wrapper.setProps({
|
|
116
|
+
await wrapper.setProps({
|
|
86
117
|
dark: true,
|
|
87
118
|
})
|
|
88
119
|
expect(wrapper.vm.classes).toMatchObject({
|
|
89
120
|
'theme--dark': true,
|
|
90
121
|
'theme--light': false,
|
|
91
122
|
})
|
|
92
|
-
wrapper.setProps({
|
|
123
|
+
await wrapper.setProps({
|
|
93
124
|
fixedHeader: true,
|
|
94
125
|
})
|
|
95
126
|
expect(wrapper.vm.classes).toMatchObject({
|
|
96
127
|
'v-data-table--fixed-header': true,
|
|
97
128
|
})
|
|
98
|
-
wrapper.setProps({
|
|
129
|
+
await wrapper.setProps({
|
|
99
130
|
fixedHeader: false,
|
|
100
131
|
height: 1000,
|
|
101
132
|
})
|
|
@@ -107,8 +138,8 @@ describe('VSimpleTable.ts', () => {
|
|
|
107
138
|
it('should compute classes with top & bottom slots', () => {
|
|
108
139
|
const wrapper = mountFunction({
|
|
109
140
|
slots: {
|
|
110
|
-
top: '
|
|
111
|
-
bottom: '
|
|
141
|
+
top: () => h('div', { class: 'top' }, 'Header'),
|
|
142
|
+
bottom: () => h('div', { class: 'bottom' }, 'Footer'),
|
|
112
143
|
},
|
|
113
144
|
})
|
|
114
145
|
|
|
@@ -1,29 +1,27 @@
|
|
|
1
1
|
import VVirtualTable from '../VVirtualTable'
|
|
2
2
|
import {
|
|
3
3
|
mount,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
VueWrapper,
|
|
5
|
+
MountingOptions,
|
|
6
6
|
} from '@vue/test-utils'
|
|
7
|
-
import
|
|
7
|
+
import { h } from 'vue'
|
|
8
8
|
|
|
9
9
|
describe('VVirtualTable.ts', () => {
|
|
10
10
|
type Instance = InstanceType<typeof VVirtualTable>
|
|
11
|
-
let mountFunction: (options?:
|
|
11
|
+
let mountFunction: (options?: MountingOptions<Instance>) => VueWrapper<Instance>
|
|
12
12
|
beforeEach(() => {
|
|
13
|
-
mountFunction = (options?:
|
|
13
|
+
mountFunction = (options?: MountingOptions<Instance>) => {
|
|
14
14
|
return mount(VVirtualTable, options)
|
|
15
15
|
}
|
|
16
16
|
})
|
|
17
17
|
|
|
18
18
|
it('should render', () => {
|
|
19
|
-
const vm = new Vue()
|
|
20
|
-
|
|
21
19
|
const wrapper = mountFunction({
|
|
22
|
-
|
|
20
|
+
props: {
|
|
23
21
|
items: ['a', 'b', 'c'],
|
|
24
22
|
},
|
|
25
|
-
|
|
26
|
-
items: props =>
|
|
23
|
+
slots: {
|
|
24
|
+
items: (props: any) => h('div', { class: 'test' }, [JSON.stringify(props)]),
|
|
27
25
|
},
|
|
28
26
|
})
|
|
29
27
|
|
|
@@ -32,19 +30,19 @@ describe('VVirtualTable.ts', () => {
|
|
|
32
30
|
|
|
33
31
|
it('should re-render when items change', async () => {
|
|
34
32
|
const wrapper = mountFunction({
|
|
35
|
-
|
|
33
|
+
props: {
|
|
36
34
|
items: ['a', 'b', 'c'],
|
|
37
35
|
},
|
|
38
|
-
|
|
39
|
-
items (props) {
|
|
40
|
-
return h('div', props.items.map(i => h('div', [i])))
|
|
36
|
+
slots: {
|
|
37
|
+
items (props: any) {
|
|
38
|
+
return h('div', props.items.map((i: any) => h('div', [i])))
|
|
41
39
|
},
|
|
42
40
|
},
|
|
43
41
|
})
|
|
44
42
|
|
|
45
43
|
expect(wrapper.html()).toMatchSnapshot()
|
|
46
44
|
|
|
47
|
-
wrapper.setProps({
|
|
45
|
+
await wrapper.setProps({
|
|
48
46
|
items: ['d', 'e', 'f'],
|
|
49
47
|
})
|
|
50
48
|
|
|
@@ -35,6 +35,36 @@ exports[`Table Row should render with cellClass 1`] = `
|
|
|
35
35
|
</tr>
|
|
36
36
|
`;
|
|
37
37
|
|
|
38
|
+
exports[`Table Row should render with regular slots 1`] = `
|
|
39
|
+
<tr>
|
|
40
|
+
<td class="text-start">
|
|
41
|
+
<p class="test">
|
|
42
|
+
$0.68
|
|
43
|
+
</p>
|
|
44
|
+
</td>
|
|
45
|
+
<td class="text-start">
|
|
46
|
+
<p class="test">
|
|
47
|
+
$0.65
|
|
48
|
+
</p>
|
|
49
|
+
</td>
|
|
50
|
+
</tr>
|
|
51
|
+
`;
|
|
52
|
+
|
|
53
|
+
exports[`Table Row should render with scoped slots 1`] = `
|
|
54
|
+
<tr>
|
|
55
|
+
<td class="text-start">
|
|
56
|
+
<p class="test petrol">
|
|
57
|
+
0.68
|
|
58
|
+
</p>
|
|
59
|
+
</td>
|
|
60
|
+
<td class="text-start">
|
|
61
|
+
<p class="test diesel">
|
|
62
|
+
0.65
|
|
63
|
+
</p>
|
|
64
|
+
</td>
|
|
65
|
+
</tr>
|
|
66
|
+
`;
|
|
67
|
+
|
|
38
68
|
exports[`Table Row should render without slots 1`] = `
|
|
39
69
|
<tr>
|
|
40
70
|
<td class="text-start">
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`VEditDialog.ts should render 1`] = `
|
|
4
|
-
<div class="v-menu v-small-dialog theme--light"
|
|
5
|
-
|
|
4
|
+
<div class="v-menu v-small-dialog theme--light"
|
|
5
|
+
value="false"
|
|
6
|
+
>
|
|
7
|
+
<div class="v-small-dialog__activator"
|
|
8
|
+
keydown="function () { [native code] }"
|
|
9
|
+
>
|
|
6
10
|
<span class="v-small-dialog__activator__content">
|
|
7
11
|
</span>
|
|
8
12
|
</div>
|
|
@@ -11,15 +15,15 @@ exports[`VEditDialog.ts should render 1`] = `
|
|
|
11
15
|
|
|
12
16
|
exports[`VEditDialog.ts should render actions 1`] = `
|
|
13
17
|
<div class="v-small-dialog__actions">
|
|
14
|
-
<button
|
|
15
|
-
|
|
18
|
+
<button class="v-btn v-btn--text theme--light v-size--default primary--text"
|
|
19
|
+
type="button"
|
|
16
20
|
>
|
|
17
21
|
<span class="v-btn__content">
|
|
18
22
|
Cancel
|
|
19
23
|
</span>
|
|
20
24
|
</button>
|
|
21
|
-
<button
|
|
22
|
-
|
|
25
|
+
<button class="v-btn v-btn--text theme--light v-size--default primary--text"
|
|
26
|
+
type="button"
|
|
23
27
|
>
|
|
24
28
|
<span class="v-btn__content">
|
|
25
29
|
Save
|
|
@@ -29,8 +33,8 @@ exports[`VEditDialog.ts should render actions 1`] = `
|
|
|
29
33
|
`;
|
|
30
34
|
|
|
31
35
|
exports[`VEditDialog.ts should render button 1`] = `
|
|
32
|
-
<button
|
|
33
|
-
|
|
36
|
+
<button class="v-btn v-btn--text theme--light v-size--default primary--text"
|
|
37
|
+
type="button"
|
|
34
38
|
>
|
|
35
39
|
<span class="v-btn__content">
|
|
36
40
|
test
|
|
@@ -39,8 +43,12 @@ exports[`VEditDialog.ts should render button 1`] = `
|
|
|
39
43
|
`;
|
|
40
44
|
|
|
41
45
|
exports[`VEditDialog.ts should render custom button texts 1`] = `
|
|
42
|
-
<div class="v-menu v-small-dialog theme--light"
|
|
43
|
-
|
|
46
|
+
<div class="v-menu v-small-dialog theme--light"
|
|
47
|
+
value="false"
|
|
48
|
+
>
|
|
49
|
+
<div class="v-small-dialog__activator"
|
|
50
|
+
keydown="function () { [native code] }"
|
|
51
|
+
>
|
|
44
52
|
<span class="v-small-dialog__activator__content">
|
|
45
53
|
</span>
|
|
46
54
|
</div>
|
|
@@ -74,7 +74,7 @@ exports[`VDataTable/header.ts should generate select scoped slot 3`] = `
|
|
|
74
74
|
|
|
75
75
|
exports[`VDataTable/header.ts should generate sort icon 1`] = `
|
|
76
76
|
<i aria-hidden="true"
|
|
77
|
-
class="v-icon notranslate
|
|
77
|
+
class="v-icon notranslate mdi mdi-sort theme--light v-data-table-header__icon"
|
|
78
78
|
style="font-size: 18px;"
|
|
79
79
|
>
|
|
80
80
|
</i>
|
|
@@ -388,11 +388,8 @@ export default mixins(
|
|
|
388
388
|
selectingYear: this.internalActivePicker === 'YEAR',
|
|
389
389
|
year: this.formatters.year(this.multipleValue.length ? `${this.inputYear}` : this.tableDate),
|
|
390
390
|
yearIcon: this.yearIcon,
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
on: {
|
|
394
|
-
'update:selecting-year': (value: boolean) => this.internalActivePicker = value ? 'YEAR' : this.type.toUpperCase(),
|
|
395
|
-
},
|
|
391
|
+
modelValue: this.multipleValue[0],
|
|
392
|
+
onUpdateSelectingYear: (value: boolean) => this.internalActivePicker = value ? 'YEAR' : this.type.toUpperCase(),
|
|
396
393
|
})
|
|
397
394
|
},
|
|
398
395
|
genTableHeader (): VNode {
|
|
@@ -410,9 +407,9 @@ export default mixins(
|
|
|
410
407
|
prevAriaLabel: this.internalActivePicker === 'DATE' ? this.prevMonthAriaLabel : this.prevYearAriaLabel,
|
|
411
408
|
prevIcon: this.prevIcon,
|
|
412
409
|
readonly: this.readonly,
|
|
413
|
-
|
|
410
|
+
modelValue: this.internalActivePicker === 'DATE' ? `${pad(this.tableYear, 4)}-${pad(this.tableMonth + 1)}` : `${pad(this.tableYear, 4)}`,
|
|
414
411
|
onToggle: () => this.internalActivePicker = (this.internalActivePicker === 'DATE' ? 'MONTH' : 'YEAR'),
|
|
415
|
-
|
|
412
|
+
'onUpdate:modelValue': (value: string) => this.tableDate = value,
|
|
416
413
|
})
|
|
417
414
|
},
|
|
418
415
|
genDateTable (): VNode {
|
|
@@ -437,12 +434,12 @@ export default mixins(
|
|
|
437
434
|
showAdjacentMonths: this.showAdjacentMonths,
|
|
438
435
|
showWeek: this.showWeek,
|
|
439
436
|
tableDate: `${pad(this.tableYear, 4)}-${pad(this.tableMonth + 1)}`,
|
|
440
|
-
|
|
437
|
+
modelValue: this.modelValue,
|
|
441
438
|
weekdayFormat: this.weekdayFormat,
|
|
442
439
|
ref: 'table',
|
|
443
|
-
|
|
440
|
+
'onUpdate:modelValue': this.dateClick,
|
|
444
441
|
'onUpdate:table-date': (value: string) => this.tableDate = value,
|
|
445
|
-
...createItemTypeListeners(this, ':date')
|
|
442
|
+
...createItemTypeListeners(this, ':date'),
|
|
446
443
|
})
|
|
447
444
|
},
|
|
448
445
|
genMonthTable (): VNode {
|
|
@@ -462,12 +459,12 @@ export default mixins(
|
|
|
462
459
|
range: this.range,
|
|
463
460
|
readonly: this.readonly && this.type === 'month',
|
|
464
461
|
scrollable: this.scrollable,
|
|
465
|
-
|
|
462
|
+
modelValue: this.selectedMonths,
|
|
466
463
|
tableDate: `${pad(this.tableYear, 4)}`,
|
|
467
464
|
ref: 'table',
|
|
468
|
-
|
|
465
|
+
'onUpdate:modelValue': this.monthClick,
|
|
469
466
|
'onUpdate:table-date': (value: string) => this.tableDate = value,
|
|
470
|
-
...createItemTypeListeners(this, ':month')
|
|
467
|
+
...createItemTypeListeners(this, ':month'),
|
|
471
468
|
})
|
|
472
469
|
},
|
|
473
470
|
genYears (): VNode {
|
|
@@ -477,11 +474,9 @@ export default mixins(
|
|
|
477
474
|
locale: this.locale,
|
|
478
475
|
min: this.minYear,
|
|
479
476
|
max: this.maxYear,
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
...createItemTypeListeners(this, ':year'),
|
|
484
|
-
},
|
|
477
|
+
modelValue: this.tableYear,
|
|
478
|
+
'onUpdate:modelValue': this.yearClick,
|
|
479
|
+
...createItemTypeListeners(this, ':year'),
|
|
485
480
|
})
|
|
486
481
|
},
|
|
487
482
|
genPickerBody (): VNode {
|