@dimailn/vuetify 2.7.2-alpha2 → 2.7.2-superbundle
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.css +4806 -4806
- package/dist/vuetify.css.map +1 -1
- package/dist/vuetify.js +5565 -5345
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +3 -3
- package/dist/vuetify.min.js +2 -2
- package/dist/vuetify.sass +109 -0
- package/es5/components/VAlert/VAlert.js +54 -38
- package/es5/components/VAlert/VAlert.js.map +1 -1
- package/es5/components/VApp/VApp.js +16 -12
- package/es5/components/VApp/VApp.js.map +1 -1
- package/es5/components/VAppBar/VAppBar.js +10 -12
- package/es5/components/VAppBar/VAppBar.js.map +1 -1
- package/es5/components/VAppBar/VAppBarNavIcon.js +20 -13
- package/es5/components/VAppBar/VAppBarNavIcon.js.map +1 -1
- package/es5/components/VAppBar/VAppBarTitle.js +8 -9
- package/es5/components/VAppBar/VAppBarTitle.js.map +1 -1
- package/es5/components/VAutocomplete/VAutocomplete.js +23 -22
- package/es5/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/es5/components/VAvatar/VAvatar.js +8 -9
- package/es5/components/VAvatar/VAvatar.js.map +1 -1
- package/es5/components/VBadge/VBadge.js +24 -22
- package/es5/components/VBadge/VBadge.js.map +1 -1
- package/es5/components/VBanner/VBanner.js +37 -32
- package/es5/components/VBanner/VBanner.js.map +1 -1
- package/es5/components/VBottomNavigation/VBottomNavigation.js +14 -11
- package/es5/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/es5/components/VBottomSheet/VBottomSheet.js +2 -5
- package/es5/components/VBottomSheet/VBottomSheet.js.map +1 -1
- package/es5/components/VBreadcrumbs/VBreadcrumbs.js +11 -11
- package/es5/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/es5/components/VBreadcrumbs/VBreadcrumbsItem.js +7 -8
- package/es5/components/VBreadcrumbs/VBreadcrumbsItem.js.map +1 -1
- package/es5/components/VBtn/VBtn.js +24 -30
- package/es5/components/VBtn/VBtn.js.map +1 -1
- package/es5/components/VBtnToggle/VBtnToggle.js +2 -2
- package/es5/components/VBtnToggle/VBtnToggle.js.map +1 -1
- package/es5/components/VCalendar/VCalendar.js +27 -25
- package/es5/components/VCalendar/VCalendar.js.map +1 -1
- package/es5/components/VCalendar/VCalendarCategory.js +21 -23
- package/es5/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/es5/components/VCalendar/VCalendarDaily.js +69 -67
- package/es5/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/es5/components/VCalendar/VCalendarMonthly.js +1 -4
- package/es5/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/es5/components/VCalendar/VCalendarWeekly.js +65 -64
- package/es5/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-events.js +64 -58
- package/es5/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js +1 -4
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/es5/components/VCalendar/mixins/times.js +4 -2
- package/es5/components/VCalendar/mixins/times.js.map +1 -1
- package/es5/components/VCard/VCard.js +11 -13
- package/es5/components/VCard/VCard.js.map +1 -1
- package/es5/components/VCarousel/VCarousel.js +37 -28
- package/es5/components/VCarousel/VCarousel.js.map +1 -1
- package/es5/components/VCarousel/VCarouselItem.js +18 -16
- package/es5/components/VCarousel/VCarouselItem.js.map +1 -1
- package/es5/components/VCheckbox/VCheckbox.js +10 -11
- package/es5/components/VCheckbox/VCheckbox.js.map +1 -1
- package/es5/components/VCheckbox/VSimpleCheckbox.js +29 -20
- package/es5/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/es5/components/VChip/VChip.js +44 -37
- package/es5/components/VChip/VChip.js.map +1 -1
- package/es5/components/VChipGroup/VChipGroup.js +2 -2
- package/es5/components/VChipGroup/VChipGroup.js.map +1 -1
- package/es5/components/VColorPicker/VColorPicker.js +38 -32
- package/es5/components/VColorPicker/VColorPicker.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerCanvas.js +22 -19
- package/es5/components/VColorPicker/VColorPickerCanvas.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerEdit.js +28 -25
- package/es5/components/VColorPicker/VColorPickerEdit.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerPreview.js +48 -37
- package/es5/components/VColorPicker/VColorPickerPreview.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerSwatches.js +15 -15
- package/es5/components/VColorPicker/VColorPickerSwatches.js.map +1 -1
- package/es5/components/VCombobox/VCombobox.js +27 -22
- package/es5/components/VCombobox/VCombobox.js.map +1 -1
- package/es5/components/VContent/VContent.js +4 -8
- package/es5/components/VContent/VContent.js.map +1 -1
- package/es5/components/VCounter/VCounter.js +5 -7
- package/es5/components/VCounter/VCounter.js.map +1 -1
- package/es5/components/VData/VData.js +5 -3
- package/es5/components/VData/VData.js.map +1 -1
- package/es5/components/VDataIterator/VDataFooter.js +46 -34
- package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
- package/es5/components/VDataIterator/VDataIterator.js +22 -20
- package/es5/components/VDataIterator/VDataIterator.js.map +1 -1
- package/es5/components/VDataTable/MobileRow.js +21 -15
- package/es5/components/VDataTable/MobileRow.js.map +1 -1
- package/es5/components/VDataTable/Row.js +15 -11
- package/es5/components/VDataTable/Row.js.map +1 -1
- package/es5/components/VDataTable/RowGroup.js +12 -9
- package/es5/components/VDataTable/RowGroup.js.map +1 -1
- package/es5/components/VDataTable/VDataTable.js +206 -176
- package/es5/components/VDataTable/VDataTable.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeader.js +20 -12
- package/es5/components/VDataTable/VDataTableHeader.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js +24 -21
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderMobile.js +19 -22
- package/es5/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/es5/components/VDataTable/VEditDialog.js +43 -34
- package/es5/components/VDataTable/VEditDialog.js.map +1 -1
- package/es5/components/VDataTable/VSimpleTable.js +7 -8
- package/es5/components/VDataTable/VSimpleTable.js.map +1 -1
- package/es5/components/VDataTable/VVirtualTable.js +16 -17
- package/es5/components/VDataTable/VVirtualTable.js.map +1 -1
- package/es5/components/VDataTable/mixins/header.js +18 -14
- package/es5/components/VDataTable/mixins/header.js.map +1 -1
- package/es5/components/VDatePicker/VDatePicker.js +113 -99
- package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerDateTable.js +12 -13
- package/es5/components/VDatePicker/VDatePickerDateTable.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerHeader.js +38 -26
- package/es5/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerMonthTable.js +3 -3
- package/es5/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerTitle.js +17 -12
- package/es5/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerYears.js +3 -3
- package/es5/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/es5/components/VDatePicker/mixins/date-picker-table.js +47 -34
- package/es5/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/VDatePicker/util/eventHelpers.js.map +1 -1
- package/es5/components/VDialog/VDialog.js +46 -29
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VDivider/VDivider.js +9 -11
- package/es5/components/VDivider/VDivider.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanel.js +8 -9
- package/es5/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanelContent.js +11 -9
- package/es5/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js +34 -31
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanels.js +2 -5
- package/es5/components/VExpansionPanel/VExpansionPanels.js.map +1 -1
- package/es5/components/VFileInput/VFileInput.js +35 -32
- package/es5/components/VFileInput/VFileInput.js.map +1 -1
- package/es5/components/VFooter/VFooter.js +9 -11
- package/es5/components/VFooter/VFooter.js.map +1 -1
- package/es5/components/VForm/VForm.js +12 -11
- package/es5/components/VForm/VForm.js.map +1 -1
- package/es5/components/VGrid/VCol.js +8 -8
- package/es5/components/VGrid/VCol.js.map +1 -1
- package/es5/components/VGrid/VContainer.js +19 -17
- package/es5/components/VGrid/VContainer.js.map +1 -1
- package/es5/components/VGrid/VRow.js +10 -7
- package/es5/components/VGrid/VRow.js.map +1 -1
- package/es5/components/VGrid/grid.js +9 -7
- package/es5/components/VGrid/grid.js.map +1 -1
- package/es5/components/VHover/VHover.js +3 -3
- package/es5/components/VHover/VHover.js.map +1 -1
- package/es5/components/VIcon/VIcon.js +36 -69
- package/es5/components/VIcon/VIcon.js.map +1 -1
- package/es5/components/VImg/VImg.js +41 -38
- package/es5/components/VImg/VImg.js.map +1 -1
- package/es5/components/VInput/VInput.js +77 -70
- package/es5/components/VInput/VInput.js.map +1 -1
- package/es5/components/VItemGroup/VItem.js +6 -5
- package/es5/components/VItemGroup/VItem.js.map +1 -1
- package/es5/components/VItemGroup/VItemGroup.js +4 -8
- package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
- package/es5/components/VLabel/VLabel.js +15 -12
- package/es5/components/VLabel/VLabel.js.map +1 -1
- package/es5/components/VLazy/VLazy.js +7 -7
- package/es5/components/VLazy/VLazy.js.map +1 -1
- package/es5/components/VList/VList.js +12 -12
- package/es5/components/VList/VList.js.map +1 -1
- package/es5/components/VList/VListGroup.js +32 -31
- package/es5/components/VList/VListGroup.js.map +1 -1
- package/es5/components/VList/VListItem.js +22 -26
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VList/VListItemAction.js +11 -8
- package/es5/components/VList/VListItemAction.js.map +1 -1
- package/es5/components/VList/VListItemAvatar.js +9 -9
- package/es5/components/VList/VListItemAvatar.js.map +1 -1
- package/es5/components/VList/VListItemGroup.js +2 -2
- package/es5/components/VList/VListItemGroup.js.map +1 -1
- package/es5/components/VList/VListItemIcon.js +9 -11
- package/es5/components/VList/VListItemIcon.js.map +1 -1
- package/es5/components/VMain/VMain.js +5 -9
- package/es5/components/VMain/VMain.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +66 -42
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VMessages/VMessages.js +12 -12
- package/es5/components/VMessages/VMessages.js.map +1 -1
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js +59 -51
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +57 -52
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverflowBtn/VOverflowBtn.js +8 -11
- package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/es5/components/VOverlay/VOverlay.js +8 -11
- package/es5/components/VOverlay/VOverlay.js.map +1 -1
- package/es5/components/VPagination/VPagination.js +48 -35
- package/es5/components/VPagination/VPagination.js.map +1 -1
- package/es5/components/VParallax/VParallax.js +20 -23
- package/es5/components/VParallax/VParallax.js.map +1 -1
- package/es5/components/VPicker/VPicker.js +21 -17
- package/es5/components/VPicker/VPicker.js.map +1 -1
- package/es5/components/VProgressCircular/VProgressCircular.js +40 -38
- package/es5/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/es5/components/VProgressLinear/VProgressLinear.js +32 -33
- package/es5/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/es5/components/VRadioGroup/VRadio.js +37 -29
- package/es5/components/VRadioGroup/VRadio.js.map +1 -1
- package/es5/components/VRadioGroup/VRadioGroup.js +17 -16
- package/es5/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/es5/components/VRangeSlider/VRangeSlider.js +7 -10
- package/es5/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/es5/components/VRating/VRating.js +48 -52
- package/es5/components/VRating/VRating.js.map +1 -1
- package/es5/components/VResponsive/VResponsive.js +11 -11
- package/es5/components/VResponsive/VResponsive.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +126 -102
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSelect/VSelectList.js +63 -44
- package/es5/components/VSelect/VSelectList.js.map +1 -1
- package/es5/components/VSheet/VSheet.js +9 -12
- package/es5/components/VSheet/VSheet.js.map +1 -1
- package/es5/components/VSkeletonLoader/VSkeletonLoader.js +22 -18
- package/es5/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +56 -39
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VSlider/VSlider.js +75 -62
- package/es5/components/VSlider/VSlider.js.map +1 -1
- package/es5/components/VSnackbar/VSnackbar.js +32 -22
- package/es5/components/VSnackbar/VSnackbar.js.map +1 -1
- package/es5/components/VSparkline/VSparkline.js +24 -24
- package/es5/components/VSparkline/VSparkline.js.map +1 -1
- package/es5/components/VSpeedDial/VSpeedDial.js +11 -11
- package/es5/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/es5/components/VStepper/VStepper.js +6 -7
- package/es5/components/VStepper/VStepper.js.map +1 -1
- package/es5/components/VStepper/VStepperContent.js +13 -15
- package/es5/components/VStepper/VStepperContent.js.map +1 -1
- package/es5/components/VStepper/VStepperStep.js +23 -22
- package/es5/components/VStepper/VStepperStep.js.map +1 -1
- package/es5/components/VSubheader/VSubheader.js +8 -7
- package/es5/components/VSubheader/VSubheader.js.map +1 -1
- package/es5/components/VSwitch/VSwitch.js +22 -22
- package/es5/components/VSwitch/VSwitch.js.map +1 -1
- package/es5/components/VSystemBar/VSystemBar.js +8 -9
- package/es5/components/VSystemBar/VSystemBar.js.map +1 -1
- package/es5/components/VTabs/VTab.js +10 -12
- package/es5/components/VTabs/VTab.js.map +1 -1
- package/es5/components/VTabs/VTabItem.js +4 -6
- package/es5/components/VTabs/VTabItem.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +47 -34
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/VTabs/VTabsBar.js +9 -8
- package/es5/components/VTabs/VTabsBar.js.map +1 -1
- package/es5/components/VTabs/VTabsItems.js +3 -6
- package/es5/components/VTabs/VTabsItems.js.map +1 -1
- package/es5/components/VTabs/VTabsSlider.js +3 -5
- package/es5/components/VTabs/VTabsSlider.js.map +1 -1
- package/es5/components/VTextField/VTextField.js +74 -59
- package/es5/components/VTextField/VTextField.js.map +1 -1
- package/es5/components/VTextarea/VTextarea.js +5 -6
- package/es5/components/VTextarea/VTextarea.js.map +1 -1
- package/es5/components/VThemeProvider/VThemeProvider.js +5 -5
- package/es5/components/VThemeProvider/VThemeProvider.js.map +1 -1
- package/es5/components/VTimePicker/VTimePicker.js +29 -25
- package/es5/components/VTimePicker/VTimePicker.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerClock.js +41 -40
- package/es5/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerTitle.js +14 -15
- package/es5/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/es5/components/VTimeline/VTimeline.js +4 -5
- package/es5/components/VTimeline/VTimeline.js.map +1 -1
- package/es5/components/VTimeline/VTimelineItem.js +24 -24
- package/es5/components/VTimeline/VTimelineItem.js.map +1 -1
- package/es5/components/VToolbar/VToolbar.js +14 -17
- package/es5/components/VToolbar/VToolbar.js.map +1 -1
- package/es5/components/VTooltip/VTooltip.js +13 -11
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/components/VTreeview/VTreeview.js +6 -7
- package/es5/components/VTreeview/VTreeview.js.map +1 -1
- package/es5/components/VTreeview/VTreeviewNode.js +109 -93
- package/es5/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/es5/components/VVirtualScroll/VVirtualScroll.js +8 -12
- package/es5/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/es5/components/VWindow/VWindow.js +38 -26
- package/es5/components/VWindow/VWindow.js.map +1 -1
- package/es5/components/VWindow/VWindowItem.js +30 -25
- package/es5/components/VWindow/VWindowItem.js.map +1 -1
- package/es5/components/index.js +112 -0
- package/es5/components/index.js.map +1 -1
- package/es5/components/transitions/createTransition.js +24 -22
- package/es5/components/transitions/createTransition.js.map +1 -1
- package/es5/directives/click-outside/index.js +6 -6
- package/es5/directives/click-outside/index.js.map +1 -1
- package/es5/directives/intersect/index.js +6 -6
- package/es5/directives/intersect/index.js.map +1 -1
- package/es5/directives/ripple/index.js +5 -11
- package/es5/directives/ripple/index.js.map +1 -1
- package/es5/directives/touch/index.js +6 -12
- package/es5/directives/touch/index.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/framework.js.map +1 -1
- package/es5/helpers.js +64 -0
- package/es5/helpers.js.map +1 -0
- package/es5/index.js +36 -31
- package/es5/index.js.map +1 -1
- package/es5/install.js +15 -42
- package/es5/install.js.map +1 -1
- package/es5/mixins/activatable/index.js +12 -19
- package/es5/mixins/activatable/index.js.map +1 -1
- package/es5/mixins/binds-attrs/index.js +5 -3
- package/es5/mixins/binds-attrs/index.js.map +1 -1
- package/es5/mixins/bootable/index.js +5 -3
- package/es5/mixins/bootable/index.js.map +1 -1
- package/es5/mixins/button-group/index.js +3 -6
- package/es5/mixins/button-group/index.js.map +1 -1
- package/es5/mixins/colorable/index.js +8 -36
- package/es5/mixins/colorable/index.js.map +1 -1
- package/es5/mixins/comparable/index.js +4 -2
- package/es5/mixins/comparable/index.js.map +1 -1
- package/es5/mixins/delayable/index.js +4 -2
- package/es5/mixins/delayable/index.js.map +1 -1
- package/es5/mixins/dependent/index.js +2 -8
- package/es5/mixins/dependent/index.js.map +1 -1
- package/es5/mixins/detachable/index.js +2 -2
- package/es5/mixins/detachable/index.js.map +1 -1
- package/es5/mixins/elevatable/index.js +4 -2
- package/es5/mixins/elevatable/index.js.map +1 -1
- package/es5/mixins/filterable/index.js +4 -2
- package/es5/mixins/filterable/index.js.map +1 -1
- package/es5/mixins/groupable/index.js +11 -14
- package/es5/mixins/groupable/index.js.map +1 -1
- package/es5/mixins/intersectable/index.js +5 -11
- package/es5/mixins/intersectable/index.js.map +1 -1
- package/es5/mixins/loadable/index.js +9 -7
- package/es5/mixins/loadable/index.js.map +1 -1
- package/es5/mixins/localable/index.js +4 -2
- package/es5/mixins/localable/index.js.map +1 -1
- package/es5/mixins/measurable/index.js +4 -2
- package/es5/mixins/measurable/index.js.map +1 -1
- package/es5/mixins/menuable/index.js +5 -8
- package/es5/mixins/menuable/index.js.map +1 -1
- package/es5/mixins/mobile/index.js +13 -9
- package/es5/mixins/mobile/index.js.map +1 -1
- package/es5/mixins/mouse/index.js +6 -9
- package/es5/mixins/mouse/index.js.map +1 -1
- package/es5/mixins/overlayable/index.js +16 -46
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/es5/mixins/picker/index.js +20 -19
- package/es5/mixins/picker/index.js.map +1 -1
- package/es5/mixins/picker-button/index.js +11 -14
- package/es5/mixins/picker-button/index.js.map +1 -1
- package/es5/mixins/positionable/index.js +4 -2
- package/es5/mixins/positionable/index.js.map +1 -1
- package/es5/mixins/proxyable/index.js +6 -4
- package/es5/mixins/proxyable/index.js.map +1 -1
- package/es5/mixins/registrable/index.js +5 -3
- package/es5/mixins/registrable/index.js.map +1 -1
- package/es5/mixins/returnable/index.js +4 -2
- package/es5/mixins/returnable/index.js.map +1 -1
- package/es5/mixins/rippleable/index.js +13 -21
- package/es5/mixins/rippleable/index.js.map +1 -1
- package/es5/mixins/roundable/index.js +4 -2
- package/es5/mixins/roundable/index.js.map +1 -1
- package/es5/mixins/routable/index.js +25 -24
- package/es5/mixins/routable/index.js.map +1 -1
- package/es5/mixins/scrollable/index.js +4 -2
- package/es5/mixins/scrollable/index.js.map +1 -1
- package/es5/mixins/selectable/index.js +33 -31
- package/es5/mixins/selectable/index.js.map +1 -1
- package/es5/mixins/sizeable/index.js +4 -2
- package/es5/mixins/sizeable/index.js.map +1 -1
- package/es5/mixins/ssr-bootable/index.js +4 -2
- package/es5/mixins/ssr-bootable/index.js.map +1 -1
- package/es5/mixins/stackable/index.js +4 -2
- package/es5/mixins/stackable/index.js.map +1 -1
- package/es5/mixins/themeable/index.js +16 -5
- package/es5/mixins/themeable/index.js.map +1 -1
- package/es5/mixins/toggleable/index.js +10 -4
- package/es5/mixins/toggleable/index.js.map +1 -1
- package/es5/mixins/transitionable/index.js +4 -2
- package/es5/mixins/transitionable/index.js.map +1 -1
- package/es5/mixins/translatable/index.js +4 -2
- package/es5/mixins/translatable/index.js.map +1 -1
- package/es5/mixins/validatable/index.js +1 -1
- package/es5/mixins/validatable/index.js.map +1 -1
- package/es5/services/goto/util.js.map +1 -1
- package/es5/services/theme/index.js +19 -6
- package/es5/services/theme/index.js.map +1 -1
- package/es5/util/helpers.js +20 -33
- package/es5/util/helpers.js.map +1 -1
- package/es5/util/mergeData.js +1 -1
- package/es5/util/mergeData.js.map +1 -1
- package/es5/util/mixins.js +5 -11
- package/es5/util/mixins.js.map +1 -1
- package/es5/vuetify.js +45 -0
- package/es5/vuetify.js.map +1 -0
- package/lib/components/VAlert/VAlert.js +54 -38
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VApp/VApp.js +14 -10
- package/lib/components/VApp/VApp.js.map +1 -1
- package/lib/components/VAppBar/VAppBar.js +11 -12
- package/lib/components/VAppBar/VAppBar.js.map +1 -1
- package/lib/components/VAppBar/VAppBarNavIcon.js +15 -10
- package/lib/components/VAppBar/VAppBarNavIcon.js.map +1 -1
- package/lib/components/VAppBar/VAppBarTitle.js +4 -6
- package/lib/components/VAppBar/VAppBarTitle.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js +23 -22
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VAvatar/VAvatar.js +4 -4
- package/lib/components/VAvatar/VAvatar.js.map +1 -1
- package/lib/components/VBadge/VBadge.js +26 -22
- package/lib/components/VBadge/VBadge.js.map +1 -1
- package/lib/components/VBanner/VBanner.js +28 -23
- package/lib/components/VBanner/VBanner.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.js +14 -10
- package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/lib/components/VBottomSheet/VBottomSheet.js +2 -4
- package/lib/components/VBottomSheet/VBottomSheet.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js +9 -9
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js +7 -7
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js.map +1 -1
- package/lib/components/VBtn/VBtn.js +25 -31
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VBtnToggle/VBtnToggle.js +2 -2
- package/lib/components/VBtnToggle/VBtnToggle.js.map +1 -1
- package/lib/components/VCalendar/VCalendar.js +25 -24
- package/lib/components/VCalendar/VCalendar.js.map +1 -1
- package/lib/components/VCalendar/VCalendarCategory.js +16 -19
- package/lib/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/lib/components/VCalendar/VCalendarDaily.js +39 -41
- package/lib/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/lib/components/VCalendar/VCalendarMonthly.js +1 -3
- package/lib/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/lib/components/VCalendar/VCalendarWeekly.js +30 -32
- package/lib/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-events.js +24 -27
- package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js +1 -3
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/lib/components/VCalendar/mixins/times.js +2 -2
- package/lib/components/VCalendar/mixins/times.js.map +1 -1
- package/lib/components/VCard/VCard.js +12 -14
- package/lib/components/VCard/VCard.js.map +1 -1
- package/lib/components/VCarousel/VCarousel.js +39 -31
- package/lib/components/VCarousel/VCarousel.js.map +1 -1
- package/lib/components/VCarousel/VCarouselItem.js +19 -17
- package/lib/components/VCarousel/VCarouselItem.js.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.js +10 -10
- package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
- package/lib/components/VCheckbox/VSimpleCheckbox.js +25 -19
- package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/lib/components/VChip/VChip.js +43 -34
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VChipGroup/VChipGroup.js +2 -2
- package/lib/components/VChipGroup/VChipGroup.js.map +1 -1
- package/lib/components/VColorPicker/VColorPicker.js +30 -23
- package/lib/components/VColorPicker/VColorPicker.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.js +8 -9
- package/lib/components/VColorPicker/VColorPickerCanvas.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.js +24 -19
- package/lib/components/VColorPicker/VColorPickerEdit.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.js +45 -35
- package/lib/components/VColorPicker/VColorPickerPreview.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.js +15 -14
- package/lib/components/VColorPicker/VColorPickerSwatches.js.map +1 -1
- package/lib/components/VCombobox/VCombobox.js +20 -20
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VContent/VContent.js +4 -8
- package/lib/components/VContent/VContent.js.map +1 -1
- package/lib/components/VCounter/VCounter.js +7 -7
- package/lib/components/VCounter/VCounter.js.map +1 -1
- package/lib/components/VData/VData.js +3 -3
- package/lib/components/VData/VData.js.map +1 -1
- package/lib/components/VDataIterator/VDataFooter.js +46 -34
- package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
- package/lib/components/VDataIterator/VDataIterator.js +20 -16
- package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
- package/lib/components/VDataTable/MobileRow.js +16 -11
- package/lib/components/VDataTable/MobileRow.js.map +1 -1
- package/lib/components/VDataTable/Row.js +12 -6
- package/lib/components/VDataTable/Row.js.map +1 -1
- package/lib/components/VDataTable/RowGroup.js +9 -7
- package/lib/components/VDataTable/RowGroup.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.js +169 -135
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeader.js +19 -11
- package/lib/components/VDataTable/VDataTableHeader.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js +24 -21
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderMobile.js +9 -10
- package/lib/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/lib/components/VDataTable/VEditDialog.js +41 -31
- package/lib/components/VDataTable/VEditDialog.js.map +1 -1
- package/lib/components/VDataTable/VSimpleTable.js +6 -6
- package/lib/components/VDataTable/VSimpleTable.js.map +1 -1
- package/lib/components/VDataTable/VVirtualTable.js +11 -12
- package/lib/components/VDataTable/VVirtualTable.js.map +1 -1
- package/lib/components/VDataTable/mixins/header.js +17 -12
- package/lib/components/VDataTable/mixins/header.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +107 -92
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerDateTable.js +11 -13
- package/lib/components/VDatePicker/VDatePickerDateTable.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js +37 -25
- package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonthTable.js +3 -3
- package/lib/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerTitle.js +16 -10
- package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.js +3 -3
- package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.js +36 -27
- package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/VDatePicker/util/eventHelpers.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +46 -27
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VDivider/VDivider.js +12 -14
- package/lib/components/VDivider/VDivider.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.js +8 -9
- package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelContent.js +9 -6
- package/lib/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +31 -21
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanels.js +2 -4
- package/lib/components/VExpansionPanel/VExpansionPanels.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.js +34 -31
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VFooter/VFooter.js +5 -6
- package/lib/components/VFooter/VFooter.js.map +1 -1
- package/lib/components/VForm/VForm.js +11 -8
- package/lib/components/VForm/VForm.js.map +1 -1
- package/lib/components/VGrid/VCol.js +9 -9
- package/lib/components/VGrid/VCol.js.map +1 -1
- package/lib/components/VGrid/VContainer.js +22 -16
- package/lib/components/VGrid/VContainer.js.map +1 -1
- package/lib/components/VGrid/VRow.js +12 -9
- package/lib/components/VGrid/VRow.js.map +1 -1
- package/lib/components/VGrid/grid.js +7 -6
- package/lib/components/VGrid/grid.js.map +1 -1
- package/lib/components/VHover/VHover.js +3 -3
- package/lib/components/VHover/VHover.js.map +1 -1
- package/lib/components/VIcon/VIcon.js +36 -65
- package/lib/components/VIcon/VIcon.js.map +1 -1
- package/lib/components/VImg/VImg.js +41 -32
- package/lib/components/VImg/VImg.js.map +1 -1
- package/lib/components/VInput/VInput.js +61 -59
- package/lib/components/VInput/VInput.js.map +1 -1
- package/lib/components/VItemGroup/VItem.js +5 -5
- package/lib/components/VItemGroup/VItem.js.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.js +4 -8
- package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
- package/lib/components/VLabel/VLabel.js +18 -13
- package/lib/components/VLabel/VLabel.js.map +1 -1
- package/lib/components/VLazy/VLazy.js +7 -6
- package/lib/components/VLazy/VLazy.js.map +1 -1
- package/lib/components/VList/VList.js +12 -13
- package/lib/components/VList/VList.js.map +1 -1
- package/lib/components/VList/VListGroup.js +29 -21
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.js +26 -25
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/VListItemAction.js +8 -7
- package/lib/components/VList/VListItemAction.js.map +1 -1
- package/lib/components/VList/VListItemAvatar.js +9 -10
- package/lib/components/VList/VListItemAvatar.js.map +1 -1
- package/lib/components/VList/VListItemGroup.js +2 -2
- package/lib/components/VList/VListItemGroup.js.map +1 -1
- package/lib/components/VList/VListItemIcon.js +8 -7
- package/lib/components/VList/VListItemIcon.js.map +1 -1
- package/lib/components/VMain/VMain.js +5 -8
- package/lib/components/VMain/VMain.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +65 -40
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VMessages/VMessages.js +12 -11
- package/lib/components/VMessages/VMessages.js.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js +60 -49
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +46 -40
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.js +8 -10
- package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.js +8 -10
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VPagination/VPagination.js +42 -30
- package/lib/components/VPagination/VPagination.js.map +1 -1
- package/lib/components/VParallax/VParallax.js +13 -12
- package/lib/components/VParallax/VParallax.js.map +1 -1
- package/lib/components/VPicker/VPicker.js +20 -15
- package/lib/components/VPicker/VPicker.js.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.js +37 -30
- package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.js +30 -24
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VRadioGroup/VRadio.js +34 -24
- package/lib/components/VRadioGroup/VRadio.js.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.js +18 -17
- package/lib/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.js +7 -9
- package/lib/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/lib/components/VRating/VRating.js +34 -34
- package/lib/components/VRating/VRating.js.map +1 -1
- package/lib/components/VResponsive/VResponsive.js +11 -10
- package/lib/components/VResponsive/VResponsive.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +123 -95
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelect/VSelectList.js +59 -39
- package/lib/components/VSelect/VSelectList.js.map +1 -1
- package/lib/components/VSheet/VSheet.js +7 -11
- package/lib/components/VSheet/VSheet.js.map +1 -1
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js +21 -16
- package/lib/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +51 -35
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VSlider/VSlider.js +75 -63
- package/lib/components/VSlider/VSlider.js.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.js +31 -20
- package/lib/components/VSnackbar/VSnackbar.js.map +1 -1
- package/lib/components/VSparkline/VSparkline.js +16 -17
- package/lib/components/VSparkline/VSparkline.js.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.js +10 -9
- package/lib/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/lib/components/VStepper/VStepper.js +6 -6
- package/lib/components/VStepper/VStepper.js.map +1 -1
- package/lib/components/VStepper/VStepperContent.js +8 -8
- package/lib/components/VStepper/VStepperContent.js.map +1 -1
- package/lib/components/VStepper/VStepperStep.js +9 -10
- package/lib/components/VStepper/VStepperStep.js.map +1 -1
- package/lib/components/VSubheader/VSubheader.js +7 -7
- package/lib/components/VSubheader/VSubheader.js.map +1 -1
- package/lib/components/VSwitch/VSwitch.js +26 -23
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VSystemBar/VSystemBar.js +3 -4
- package/lib/components/VSystemBar/VSystemBar.js.map +1 -1
- package/lib/components/VTabs/VTab.js +12 -13
- package/lib/components/VTabs/VTab.js.map +1 -1
- package/lib/components/VTabs/VTabItem.js +4 -5
- package/lib/components/VTabs/VTabItem.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +48 -34
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTabs/VTabsBar.js +10 -8
- package/lib/components/VTabs/VTabsBar.js.map +1 -1
- package/lib/components/VTabs/VTabsItems.js +3 -5
- package/lib/components/VTabs/VTabsItems.js.map +1 -1
- package/lib/components/VTabs/VTabsSlider.js +3 -4
- package/lib/components/VTabs/VTabsSlider.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +73 -57
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTextarea/VTextarea.js +5 -6
- package/lib/components/VTextarea/VTextarea.js.map +1 -1
- package/lib/components/VThemeProvider/VThemeProvider.js +4 -5
- package/lib/components/VThemeProvider/VThemeProvider.js.map +1 -1
- package/lib/components/VTimePicker/VTimePicker.js +26 -22
- package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerClock.js +7 -8
- package/lib/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerTitle.js +7 -8
- package/lib/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/lib/components/VTimeline/VTimeline.js +4 -4
- package/lib/components/VTimeline/VTimeline.js.map +1 -1
- package/lib/components/VTimeline/VTimelineItem.js +26 -23
- package/lib/components/VTimeline/VTimelineItem.js.map +1 -1
- package/lib/components/VToolbar/VToolbar.js +15 -19
- package/lib/components/VToolbar/VToolbar.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.js +12 -9
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VTreeview/VTreeview.js +6 -6
- package/lib/components/VTreeview/VTreeview.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewNode.js +98 -83
- package/lib/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.js +8 -12
- package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/lib/components/VWindow/VWindow.js +37 -27
- package/lib/components/VWindow/VWindow.js.map +1 -1
- package/lib/components/VWindow/VWindowItem.js +29 -23
- package/lib/components/VWindow/VWindowItem.js.map +1 -1
- package/lib/components/index.js +4 -0
- package/lib/components/index.js.map +1 -1
- package/lib/components/transitions/createTransition.js +25 -20
- package/lib/components/transitions/createTransition.js.map +1 -1
- package/lib/directives/click-outside/index.js +6 -6
- package/lib/directives/click-outside/index.js.map +1 -1
- package/lib/directives/intersect/index.js +6 -6
- package/lib/directives/intersect/index.js.map +1 -1
- package/lib/directives/ripple/index.js +5 -6
- package/lib/directives/ripple/index.js.map +1 -1
- package/lib/directives/touch/index.js +6 -7
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/framework.js.map +1 -1
- package/lib/helpers.js +9 -0
- package/lib/helpers.js.map +1 -0
- package/lib/install.js +16 -39
- package/lib/install.js.map +1 -1
- package/lib/mixins/activatable/index.js +10 -16
- package/lib/mixins/activatable/index.js.map +1 -1
- package/lib/mixins/binds-attrs/index.js +3 -3
- package/lib/mixins/binds-attrs/index.js.map +1 -1
- package/lib/mixins/bootable/index.js +4 -5
- package/lib/mixins/bootable/index.js.map +1 -1
- package/lib/mixins/button-group/index.js +3 -5
- package/lib/mixins/button-group/index.js.map +1 -1
- package/lib/mixins/colorable/index.js +6 -42
- package/lib/mixins/colorable/index.js.map +1 -1
- package/lib/mixins/comparable/index.js +2 -2
- package/lib/mixins/comparable/index.js.map +1 -1
- package/lib/mixins/delayable/index.js +2 -2
- package/lib/mixins/delayable/index.js.map +1 -1
- package/lib/mixins/dependent/index.js +2 -8
- package/lib/mixins/dependent/index.js.map +1 -1
- package/lib/mixins/detachable/index.js +2 -2
- package/lib/mixins/detachable/index.js.map +1 -1
- package/lib/mixins/elevatable/index.js +2 -2
- package/lib/mixins/elevatable/index.js.map +1 -1
- package/lib/mixins/filterable/index.js +2 -2
- package/lib/mixins/filterable/index.js.map +1 -1
- package/lib/mixins/groupable/index.js +11 -13
- package/lib/mixins/groupable/index.js.map +1 -1
- package/lib/mixins/intersectable/index.js +5 -11
- package/lib/mixins/intersectable/index.js.map +1 -1
- package/lib/mixins/loadable/index.js +9 -7
- package/lib/mixins/loadable/index.js.map +1 -1
- package/lib/mixins/localable/index.js +2 -2
- package/lib/mixins/localable/index.js.map +1 -1
- package/lib/mixins/measurable/index.js +2 -2
- package/lib/mixins/measurable/index.js.map +1 -1
- package/lib/mixins/menuable/index.js +5 -9
- package/lib/mixins/menuable/index.js.map +1 -1
- package/lib/mixins/mobile/index.js +12 -9
- package/lib/mixins/mobile/index.js.map +1 -1
- package/lib/mixins/mouse/index.js +4 -10
- package/lib/mixins/mouse/index.js.map +1 -1
- package/lib/mixins/overlayable/index.js +13 -44
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/lib/mixins/picker/index.js +21 -19
- package/lib/mixins/picker/index.js.map +1 -1
- package/lib/mixins/picker-button/index.js +9 -10
- package/lib/mixins/picker-button/index.js.map +1 -1
- package/lib/mixins/positionable/index.js +2 -2
- package/lib/mixins/positionable/index.js.map +1 -1
- package/lib/mixins/proxyable/index.js +3 -3
- package/lib/mixins/proxyable/index.js.map +1 -1
- package/lib/mixins/registrable/index.js +3 -3
- package/lib/mixins/registrable/index.js.map +1 -1
- package/lib/mixins/returnable/index.js +2 -2
- package/lib/mixins/returnable/index.js.map +1 -1
- package/lib/mixins/rippleable/index.js +11 -9
- package/lib/mixins/rippleable/index.js.map +1 -1
- package/lib/mixins/roundable/index.js +2 -2
- package/lib/mixins/roundable/index.js.map +1 -1
- package/lib/mixins/routable/index.js +24 -20
- package/lib/mixins/routable/index.js.map +1 -1
- package/lib/mixins/scrollable/index.js +2 -2
- package/lib/mixins/scrollable/index.js.map +1 -1
- package/lib/mixins/selectable/index.js +23 -17
- package/lib/mixins/selectable/index.js.map +1 -1
- package/lib/mixins/sizeable/index.js +2 -2
- package/lib/mixins/sizeable/index.js.map +1 -1
- package/lib/mixins/ssr-bootable/index.js +2 -2
- package/lib/mixins/ssr-bootable/index.js.map +1 -1
- package/lib/mixins/stackable/index.js +2 -2
- package/lib/mixins/stackable/index.js.map +1 -1
- package/lib/mixins/themeable/index.js +8 -5
- package/lib/mixins/themeable/index.js.map +1 -1
- package/lib/mixins/toggleable/index.js +7 -3
- package/lib/mixins/toggleable/index.js.map +1 -1
- package/lib/mixins/transitionable/index.js +2 -2
- package/lib/mixins/transitionable/index.js.map +1 -1
- package/lib/mixins/translatable/index.js +2 -2
- package/lib/mixins/translatable/index.js.map +1 -1
- package/lib/mixins/validatable/index.js +1 -1
- package/lib/mixins/validatable/index.js.map +1 -1
- package/lib/services/goto/util.js.map +1 -1
- package/lib/services/theme/index.js +11 -7
- package/lib/services/theme/index.js.map +1 -1
- package/lib/util/helpers.js +16 -28
- package/lib/util/helpers.js.map +1 -1
- package/lib/util/mergeData.js +1 -1
- package/lib/util/mergeData.js.map +1 -1
- package/lib/util/mixins.js +4 -9
- package/lib/util/mixins.js.map +1 -1
- package/lib/vuetify.js +19 -0
- package/lib/vuetify.js.map +1 -0
- package/package.json +9 -8
- package/src/components/VAlert/VAlert.ts +50 -42
- package/src/components/VApp/VApp.ts +9 -11
- package/src/components/VAppBar/VAppBar.ts +10 -11
- package/src/components/VAppBar/VAppBarNavIcon.ts +11 -9
- package/src/components/VAppBar/VAppBarTitle.ts +3 -5
- package/src/components/VAutocomplete/VAutocomplete.ts +22 -21
- package/src/components/VAvatar/VAvatar.ts +4 -4
- package/src/components/VBadge/VBadge.ts +25 -21
- package/src/components/VBanner/VBanner.ts +27 -22
- package/src/components/VBanner/__tests__/VBanner.spec.ts +2 -2
- package/src/components/VBottomNavigation/VBottomNavigation.ts +14 -12
- package/src/components/VBottomSheet/VBottomSheet.ts +2 -4
- package/src/components/VBreadcrumbs/VBreadcrumbs.ts +7 -7
- package/src/components/VBreadcrumbs/VBreadcrumbsItem.ts +8 -6
- package/src/components/VBreadcrumbs/__tests__/VBreadcrumbs.spec.ts +1 -1
- package/src/components/VBtn/VBtn.ts +25 -34
- package/src/components/VBtn/__tests__/VBtn.spec.ts +219 -219
- package/src/components/VBtnToggle/VBtnToggle.ts +2 -2
- package/src/components/VCalendar/VCalendar.ts +28 -22
- package/src/components/VCalendar/VCalendarCategory.ts +16 -17
- package/src/components/VCalendar/VCalendarDaily.ts +38 -38
- package/src/components/VCalendar/VCalendarMonthly.ts +1 -3
- package/src/components/VCalendar/VCalendarWeekly.ts +29 -29
- package/src/components/VCalendar/mixins/calendar-with-events.ts +21 -23
- package/src/components/VCalendar/mixins/calendar-with-intervals.ts +1 -3
- package/src/components/VCalendar/mixins/times.ts +2 -2
- package/src/components/VCard/VCard.ts +13 -12
- package/src/components/VCarousel/VCarousel.ts +37 -29
- package/src/components/VCarousel/VCarouselItem.ts +19 -19
- package/src/components/VCheckbox/VCheckbox.ts +10 -10
- package/src/components/VCheckbox/VSimpleCheckbox.ts +22 -23
- package/src/components/VChip/VChip.ts +41 -43
- package/src/components/VChipGroup/VChipGroup.ts +2 -2
- package/src/components/VColorPicker/VColorPicker.ts +29 -22
- package/src/components/VColorPicker/VColorPickerCanvas.ts +7 -8
- package/src/components/VColorPicker/VColorPickerEdit.ts +23 -18
- package/src/components/VColorPicker/VColorPickerPreview.ts +40 -30
- package/src/components/VColorPicker/VColorPickerSwatches.ts +14 -13
- package/src/components/VCombobox/VCombobox.ts +21 -21
- package/src/components/VContent/VContent.ts +4 -7
- package/src/components/VCounter/VCounter.ts +5 -5
- package/src/components/VData/VData.ts +3 -3
- package/src/components/VData/__tests__/VData.spec.ts +9 -9
- package/src/components/VDataIterator/VDataFooter.ts +48 -36
- package/src/components/VDataIterator/VDataIterator.ts +20 -16
- package/src/components/VDataIterator/__tests__/VDataIterator.spec.ts +4 -4
- package/src/components/VDataTable/MobileRow.ts +12 -12
- package/src/components/VDataTable/Row.ts +9 -8
- package/src/components/VDataTable/RowGroup.ts +6 -8
- package/src/components/VDataTable/VDataTable.ts +180 -148
- package/src/components/VDataTable/VDataTableHeader.ts +8 -9
- package/src/components/VDataTable/VDataTableHeaderDesktop.ts +25 -20
- package/src/components/VDataTable/VDataTableHeaderMobile.ts +9 -10
- package/src/components/VDataTable/VEditDialog.ts +39 -31
- package/src/components/VDataTable/VSimpleTable.ts +6 -6
- package/src/components/VDataTable/VVirtualTable.ts +12 -13
- package/src/components/VDataTable/__tests__/MobileRow.spec.ts +2 -2
- package/src/components/VDataTable/__tests__/Row.spec.ts +2 -2
- package/src/components/VDataTable/__tests__/VDataTable.spec.ts +992 -997
- package/src/components/VDataTable/__tests__/VVirtualTable.spec.ts +2 -2
- package/src/components/VDataTable/mixins/__tests__/header.spec.ts +2 -2
- package/src/components/VDataTable/mixins/header.ts +18 -12
- package/src/components/VDatePicker/VDatePicker.ts +108 -92
- package/src/components/VDatePicker/VDatePickerDateTable.ts +12 -12
- package/src/components/VDatePicker/VDatePickerHeader.ts +36 -24
- package/src/components/VDatePicker/VDatePickerMonthTable.ts +3 -3
- package/src/components/VDatePicker/VDatePickerTitle.ts +15 -11
- package/src/components/VDatePicker/VDatePickerYears.ts +3 -3
- package/src/components/VDatePicker/mixins/date-picker-table.ts +32 -29
- package/src/components/VDatePicker/util/eventHelpers.ts +3 -3
- package/src/components/VDialog/VDialog.ts +42 -38
- package/src/components/VDialog/__tests__/VDialog.spec.ts +10 -10
- package/src/components/VDivider/VDivider.ts +11 -12
- package/src/components/VExpansionPanel/VExpansionPanel.ts +7 -8
- package/src/components/VExpansionPanel/VExpansionPanelContent.ts +8 -10
- package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +33 -33
- package/src/components/VExpansionPanel/VExpansionPanels.ts +2 -4
- package/src/components/VFileInput/VFileInput.ts +35 -31
- package/src/components/VFooter/VFooter.ts +4 -5
- package/src/components/VForm/VForm.ts +10 -7
- package/src/components/VGrid/VCol.ts +4 -9
- package/src/components/VGrid/VContainer.ts +15 -18
- package/src/components/VGrid/VRow.ts +8 -8
- package/src/components/VGrid/grid.ts +3 -7
- package/src/components/VHover/VHover.ts +3 -3
- package/src/components/VHover/__tests__/VHover.spec.ts +1 -1
- package/src/components/VIcon/VIcon.ts +39 -64
- package/src/components/VImg/VImg.ts +40 -44
- package/src/components/VInput/VInput.ts +61 -51
- package/src/components/VItemGroup/VItem.ts +5 -5
- package/src/components/VItemGroup/VItemGroup.ts +2 -6
- package/src/components/VLabel/VLabel.ts +13 -12
- package/src/components/VLazy/VLazy.ts +4 -5
- package/src/components/VList/VList.ts +11 -10
- package/src/components/VList/VListGroup.ts +28 -22
- package/src/components/VList/VListItem.ts +24 -31
- package/src/components/VList/VListItemAction.ts +5 -8
- package/src/components/VList/VListItemAvatar.ts +10 -8
- package/src/components/VList/VListItemGroup.ts +2 -2
- package/src/components/VList/VListItemIcon.ts +5 -7
- package/src/components/VList/__tests__/VListItemAction.spec.ts +1 -1
- package/src/components/VMain/VMain.ts +5 -7
- package/src/components/VMenu/VMenu.ts +60 -47
- package/src/components/VMenu/__tests__/VMenu.spec.ts +20 -20
- package/src/components/VMessages/VMessages.ts +12 -9
- package/src/components/VMessages/__tests__/VMessages.spec.ts +1 -1
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +49 -51
- package/src/components/VOtpInput/VOtpInput.ts +46 -39
- package/src/components/VOverflowBtn/VOverflowBtn.ts +9 -12
- package/src/components/VOverlay/VOverlay.ts +8 -8
- package/src/components/VPagination/VPagination.ts +37 -33
- package/src/components/VParallax/VParallax.ts +12 -11
- package/src/components/VPicker/VPicker.ts +20 -15
- package/src/components/VProgressCircular/VProgressCircular.ts +35 -32
- package/src/components/VProgressLinear/VProgressLinear.ts +32 -35
- package/src/components/VRadioGroup/VRadio.ts +31 -23
- package/src/components/VRadioGroup/VRadioGroup.ts +16 -18
- package/src/components/VRangeSlider/VRangeSlider.ts +7 -9
- package/src/components/VRating/VRating.ts +33 -35
- package/src/components/VRating/__tests__/VRating.spec.ts +64 -70
- package/src/components/VResponsive/VResponsive.ts +10 -10
- package/src/components/VSelect/VSelect.ts +117 -101
- package/src/components/VSelect/VSelectList.ts +59 -40
- package/src/components/VSheet/VSheet.ts +12 -14
- package/src/components/VSkeletonLoader/VSkeletonLoader.ts +20 -15
- package/src/components/VSlideGroup/VSlideGroup.ts +50 -44
- package/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts +4 -4
- package/src/components/VSlider/VSlider.ts +75 -62
- package/src/components/VSnackbar/VSnackbar.ts +29 -26
- package/src/components/VSparkline/VSparkline.ts +17 -18
- package/src/components/VSpeedDial/VSpeedDial.ts +9 -8
- package/src/components/VStepper/VStepper.ts +5 -5
- package/src/components/VStepper/VStepperContent.ts +6 -14
- package/src/components/VStepper/VStepperStep.ts +8 -9
- package/src/components/VSubheader/VSubheader.ts +6 -6
- package/src/components/VSubheader/__tests__/VSubheader.spec.ts +1 -1
- package/src/components/VSwitch/VSwitch.ts +27 -29
- package/src/components/VSystemBar/VSystemBar.ts +2 -3
- package/src/components/VTabs/VTab.ts +14 -14
- package/src/components/VTabs/VTabItem.ts +4 -6
- package/src/components/VTabs/VTabs.ts +43 -38
- package/src/components/VTabs/VTabsBar.ts +9 -7
- package/src/components/VTabs/VTabsItems.ts +3 -5
- package/src/components/VTabs/VTabsSlider.ts +2 -3
- package/src/components/VTabs/__tests__/VTabs.spec.ts +1 -1
- package/src/components/VTextField/VTextField.ts +68 -62
- package/src/components/VTextarea/VTextarea.ts +5 -6
- package/src/components/VThemeProvider/VThemeProvider.ts +4 -5
- package/src/components/VTimePicker/VTimePicker.ts +36 -32
- package/src/components/VTimePicker/VTimePickerClock.ts +7 -8
- package/src/components/VTimePicker/VTimePickerTitle.ts +7 -8
- package/src/components/VTimeline/VTimeline.ts +3 -3
- package/src/components/VTimeline/VTimelineItem.ts +25 -22
- package/src/components/VToolbar/VToolbar.ts +15 -17
- package/src/components/VTooltip/VTooltip.ts +12 -9
- package/src/components/VTreeview/VTreeview.ts +5 -6
- package/src/components/VTreeview/VTreeviewNode.ts +103 -88
- package/src/components/VVirtualScroll/VVirtualScroll.ts +7 -10
- package/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts +1 -1
- package/src/components/VWindow/VWindow.sass +5 -5
- package/src/components/VWindow/VWindow.ts +33 -31
- package/src/components/VWindow/VWindowItem.ts +32 -27
- package/src/components/index.ts +10 -0
- package/src/components/transitions/createTransition.ts +25 -23
- package/src/directives/click-outside/index.ts +6 -6
- package/src/directives/intersect/index.ts +6 -6
- package/src/directives/ripple/index.ts +6 -9
- package/src/directives/touch/index.ts +6 -9
- package/src/framework.ts +0 -2
- package/src/helpers.ts +18 -0
- package/src/index.ts +3 -19
- package/src/install.ts +12 -39
- package/src/mixins/activatable/__tests__/activatable.spec.ts +1 -1
- package/src/mixins/activatable/index.ts +11 -19
- package/src/mixins/binds-attrs/index.ts +3 -3
- package/src/mixins/bootable/index.ts +4 -5
- package/src/mixins/button-group/index.ts +3 -5
- package/src/mixins/colorable/index.ts +6 -49
- package/src/mixins/comparable/index.ts +2 -2
- package/src/mixins/delayable/index.ts +2 -2
- package/src/mixins/dependent/index.ts +3 -11
- package/src/mixins/detachable/__tests__/detachable.spec.ts +3 -3
- package/src/mixins/detachable/index.ts +2 -2
- package/src/mixins/elevatable/index.ts +2 -2
- package/src/mixins/filterable/index.ts +2 -2
- package/src/mixins/groupable/index.ts +9 -13
- package/src/mixins/intersectable/index.ts +5 -8
- package/src/mixins/loadable/index.ts +12 -10
- package/src/mixins/localable/index.ts +2 -2
- package/src/mixins/measurable/index.ts +2 -2
- package/src/mixins/menuable/index.ts +5 -8
- package/src/mixins/mobile/index.ts +12 -10
- package/src/mixins/mouse/index.ts +4 -9
- package/src/mixins/overlayable/index.ts +16 -44
- package/src/mixins/picker/index.ts +19 -17
- package/src/mixins/picker-button/index.ts +7 -6
- package/src/mixins/positionable/index.ts +2 -2
- package/src/mixins/proxyable/index.ts +5 -5
- package/src/mixins/registrable/index.ts +3 -3
- package/src/mixins/returnable/index.ts +2 -2
- package/src/mixins/rippleable/index.ts +9 -16
- package/src/mixins/roundable/index.ts +2 -2
- package/src/mixins/routable/__tests__/routable.spec.ts +3 -6
- package/src/mixins/routable/index.ts +23 -24
- package/src/mixins/scrollable/index.ts +2 -2
- package/src/mixins/selectable/index.ts +23 -18
- package/src/mixins/sizeable/index.ts +2 -2
- package/src/mixins/ssr-bootable/index.ts +2 -2
- package/src/mixins/stackable/index.ts +2 -2
- package/src/mixins/themeable/index.ts +10 -6
- package/src/mixins/toggleable/index.ts +6 -3
- package/src/mixins/transitionable/index.ts +2 -2
- package/src/mixins/translatable/index.ts +2 -2
- package/src/mixins/validatable/index.ts +1 -1
- package/src/services/goto/util.ts +0 -1
- package/src/services/theme/index.ts +7 -12
- package/src/util/helpers.ts +12 -30
- package/src/util/mergeData.ts +1 -1
- package/src/util/mixins.ts +20 -10
- package/src/vuetify.ts +19 -0
- package/es5/util/make-directive-activatable.js +0 -74
- package/es5/util/make-directive-activatable.js.map +0 -1
- package/lib/util/make-directive-activatable.js +0 -49
- package/lib/util/make-directive-activatable.js.map +0 -1
- package/src/util/make-directive-activatable.ts +0 -55
|
@@ -11,12 +11,12 @@ import { Lang } from '../../../services/lang'
|
|
|
11
11
|
import { preset } from '../../../presets/default'
|
|
12
12
|
import { resizeWindow } from '../../../../test'
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
Vue.prototype.$vuetify = {
|
|
15
15
|
icons: {},
|
|
16
16
|
rtl: false,
|
|
17
17
|
lang: new Lang(preset),
|
|
18
18
|
}
|
|
19
|
-
|
|
19
|
+
Vue.directive('ripple', ripple)
|
|
20
20
|
|
|
21
21
|
const testHeaders = [
|
|
22
22
|
{
|
|
@@ -127,19 +127,14 @@ describe('VDataTable.ts', () => {
|
|
|
127
127
|
|
|
128
128
|
mountFunction = (options?: MountOptions<Instance>) => {
|
|
129
129
|
return mount(VDataTable, {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
},
|
|
139
|
-
icons: {}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
130
|
+
mocks: {
|
|
131
|
+
$vuetify: {
|
|
132
|
+
breakpoint: new Breakpoint(preset),
|
|
133
|
+
lang: new Lang(preset),
|
|
134
|
+
theme: {
|
|
135
|
+
dark: false,
|
|
136
|
+
},
|
|
137
|
+
},
|
|
143
138
|
},
|
|
144
139
|
sync: false,
|
|
145
140
|
...options,
|
|
@@ -155,986 +150,986 @@ describe('VDataTable.ts', () => {
|
|
|
155
150
|
expect(wrapper.html()).toMatchSnapshot()
|
|
156
151
|
})
|
|
157
152
|
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
//
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
//
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
//
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
//
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
//
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
//
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
//
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
//
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
//
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
//
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
//
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
//
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
//
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
//
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
//
|
|
848
|
-
//
|
|
849
|
-
//
|
|
850
|
-
//
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
//
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
//
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
//
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
//
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
//
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
153
|
+
it('should render with data', () => {
|
|
154
|
+
const wrapper = mountFunction({
|
|
155
|
+
propsData: {
|
|
156
|
+
headers: testHeaders,
|
|
157
|
+
items: testItems,
|
|
158
|
+
itemsPerPage: 5,
|
|
159
|
+
},
|
|
160
|
+
})
|
|
161
|
+
|
|
162
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
163
|
+
})
|
|
164
|
+
|
|
165
|
+
it('should render with body slot', () => {
|
|
166
|
+
const wrapper = mountFunction({
|
|
167
|
+
propsData: {
|
|
168
|
+
headers: testHeaders,
|
|
169
|
+
items: testItems,
|
|
170
|
+
itemsPerPage: 5,
|
|
171
|
+
},
|
|
172
|
+
scopedSlots: {
|
|
173
|
+
body (props) {
|
|
174
|
+
return this.$createElement('div', [props.items.length])
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
})
|
|
178
|
+
|
|
179
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
180
|
+
})
|
|
181
|
+
|
|
182
|
+
it('should render with foot slot', () => {
|
|
183
|
+
const wrapper = mountFunction({
|
|
184
|
+
propsData: {
|
|
185
|
+
headers: testHeaders,
|
|
186
|
+
items: testItems,
|
|
187
|
+
itemsPerPage: 5,
|
|
188
|
+
},
|
|
189
|
+
scopedSlots: {
|
|
190
|
+
foot (props) {
|
|
191
|
+
return this.$createElement('tfoot', [props.items.length])
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
})
|
|
195
|
+
|
|
196
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
197
|
+
})
|
|
198
|
+
|
|
199
|
+
it.skip('should render virtual table', () => {
|
|
200
|
+
const wrapper = mountFunction({
|
|
201
|
+
propsData: {
|
|
202
|
+
headers: testHeaders,
|
|
203
|
+
items: testItems,
|
|
204
|
+
itemsPerPage: 5,
|
|
205
|
+
virtualRows: true,
|
|
206
|
+
},
|
|
207
|
+
})
|
|
208
|
+
|
|
209
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
210
|
+
})
|
|
211
|
+
|
|
212
|
+
it('should render with showExpand', async () => {
|
|
213
|
+
const expand = jest.fn()
|
|
214
|
+
const wrapper = mountFunction({
|
|
215
|
+
propsData: {
|
|
216
|
+
headers: testHeaders,
|
|
217
|
+
itemKey: 'name',
|
|
218
|
+
items: testItems,
|
|
219
|
+
itemsPerPage: 5,
|
|
220
|
+
showExpand: true,
|
|
221
|
+
},
|
|
222
|
+
listeners: {
|
|
223
|
+
'update:expanded': expand,
|
|
224
|
+
},
|
|
225
|
+
})
|
|
226
|
+
|
|
227
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
228
|
+
const expandIcon = wrapper.findAll('.v-data-table__expand-icon').at(0)
|
|
229
|
+
expandIcon.trigger('click')
|
|
230
|
+
|
|
231
|
+
await wrapper.vm.$nextTick()
|
|
232
|
+
expect(expand).toHaveBeenCalledWith(testItems.slice(0, 1))
|
|
233
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
234
|
+
})
|
|
235
|
+
|
|
236
|
+
it('should render with showSelect', () => {
|
|
237
|
+
const wrapper = mountFunction({
|
|
238
|
+
propsData: {
|
|
239
|
+
headers: testHeaders,
|
|
240
|
+
items: testItems,
|
|
241
|
+
itemsPerPage: 5,
|
|
242
|
+
showSelect: true,
|
|
243
|
+
},
|
|
244
|
+
})
|
|
245
|
+
|
|
246
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
247
|
+
})
|
|
248
|
+
|
|
249
|
+
it('should render with item.expanded scoped slot', async () => {
|
|
250
|
+
const vm = new Vue()
|
|
251
|
+
|
|
252
|
+
const wrapper = mountFunction({
|
|
253
|
+
propsData: {
|
|
254
|
+
headers: testHeaders,
|
|
255
|
+
items: testItems,
|
|
256
|
+
itemsPerPage: 5,
|
|
257
|
+
expanded: testItems,
|
|
258
|
+
},
|
|
259
|
+
scopedSlots: {
|
|
260
|
+
'expanded-item': props => vm.$createElement('div', ['expanded']),
|
|
261
|
+
},
|
|
262
|
+
})
|
|
263
|
+
|
|
264
|
+
await wrapper.vm.$nextTick()
|
|
265
|
+
|
|
266
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
267
|
+
})
|
|
268
|
+
|
|
269
|
+
it('should render with group.summary scoped slot', () => {
|
|
270
|
+
const vm = new Vue()
|
|
271
|
+
|
|
272
|
+
const wrapper = mountFunction({
|
|
273
|
+
propsData: {
|
|
274
|
+
headers: testHeaders,
|
|
275
|
+
items: testItems,
|
|
276
|
+
itemsPerPage: 5,
|
|
277
|
+
groupBy: 'calories',
|
|
278
|
+
},
|
|
279
|
+
scopedSlots: {
|
|
280
|
+
'group.summary': props => vm.$createElement('div', ['summary']),
|
|
281
|
+
},
|
|
282
|
+
})
|
|
283
|
+
|
|
284
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
285
|
+
})
|
|
286
|
+
|
|
287
|
+
it('should render with item scoped slot', () => {
|
|
288
|
+
const vm = new Vue()
|
|
289
|
+
|
|
290
|
+
const wrapper = mountFunction({
|
|
291
|
+
propsData: {
|
|
292
|
+
headers: testHeaders,
|
|
293
|
+
items: testItems,
|
|
294
|
+
itemsPerPage: 5,
|
|
295
|
+
},
|
|
296
|
+
scopedSlots: {
|
|
297
|
+
item: props => vm.$createElement('div', [JSON.stringify(props)]),
|
|
298
|
+
},
|
|
299
|
+
})
|
|
300
|
+
|
|
301
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
302
|
+
})
|
|
303
|
+
|
|
304
|
+
it('should render with grouped rows', () => {
|
|
305
|
+
const wrapper = mountFunction({
|
|
306
|
+
propsData: {
|
|
307
|
+
headers: testHeaders,
|
|
308
|
+
items: testItems,
|
|
309
|
+
itemsPerPage: 5,
|
|
310
|
+
groupBy: ['protein'],
|
|
311
|
+
},
|
|
312
|
+
})
|
|
313
|
+
|
|
314
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
315
|
+
})
|
|
316
|
+
|
|
317
|
+
it('should render with group scoped slot', () => {
|
|
318
|
+
const vm = new Vue()
|
|
319
|
+
|
|
320
|
+
const wrapper = mountFunction({
|
|
321
|
+
propsData: {
|
|
322
|
+
headers: testHeaders,
|
|
323
|
+
items: testItems,
|
|
324
|
+
itemsPerPage: 5,
|
|
325
|
+
groupBy: ['protein'],
|
|
326
|
+
},
|
|
327
|
+
scopedSlots: {
|
|
328
|
+
group: props => vm.$createElement('div', [JSON.stringify(props)]),
|
|
329
|
+
},
|
|
330
|
+
})
|
|
331
|
+
|
|
332
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
333
|
+
})
|
|
334
|
+
|
|
335
|
+
it('should render loading state', () => {
|
|
336
|
+
const wrapper = mountFunction({
|
|
337
|
+
propsData: {
|
|
338
|
+
loading: true,
|
|
339
|
+
},
|
|
340
|
+
})
|
|
341
|
+
|
|
342
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
343
|
+
|
|
344
|
+
const wrapper2 = mountFunction({
|
|
345
|
+
propsData: {
|
|
346
|
+
headers: testHeaders,
|
|
347
|
+
loading: true,
|
|
348
|
+
},
|
|
349
|
+
slots: {
|
|
350
|
+
progress: '<div class="progress">50%</div>',
|
|
351
|
+
},
|
|
352
|
+
})
|
|
353
|
+
|
|
354
|
+
expect(wrapper2.html()).toMatchSnapshot()
|
|
355
|
+
})
|
|
356
|
+
|
|
357
|
+
it.each([
|
|
358
|
+
'click',
|
|
359
|
+
'contextmenu',
|
|
360
|
+
'dblclick',
|
|
361
|
+
])('should emit event when %sing on internally created row', async event => {
|
|
362
|
+
const eventToEmit = event + ':row'
|
|
363
|
+
const fn = jest.fn()
|
|
364
|
+
const wrapper = mountFunction({
|
|
365
|
+
propsData: {
|
|
366
|
+
headers: testHeaders,
|
|
367
|
+
items: testItems,
|
|
368
|
+
},
|
|
369
|
+
listeners: {
|
|
370
|
+
[eventToEmit]: fn,
|
|
371
|
+
},
|
|
372
|
+
})
|
|
373
|
+
|
|
374
|
+
wrapper.find('tbody tr').trigger(event)
|
|
375
|
+
await wrapper.vm.$nextTick()
|
|
376
|
+
|
|
377
|
+
expect(fn).toHaveBeenCalled()
|
|
378
|
+
})
|
|
379
|
+
|
|
380
|
+
// https://github.com/vuetifyjs/vuetify/issues/8254
|
|
381
|
+
it('should pass kebab-case footer props correctly', () => {
|
|
382
|
+
const wrapper = mountFunction({
|
|
383
|
+
propsData: {
|
|
384
|
+
headers: [],
|
|
385
|
+
items: [],
|
|
386
|
+
footerProps: {
|
|
387
|
+
'items-per-page-text': 'Foo:',
|
|
388
|
+
},
|
|
389
|
+
},
|
|
390
|
+
})
|
|
391
|
+
|
|
392
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
393
|
+
})
|
|
394
|
+
|
|
395
|
+
// https://github.com/vuetifyjs/vuetify/issues/8266
|
|
396
|
+
it('should use options prop for initial values', () => {
|
|
397
|
+
const fn = jest.fn()
|
|
398
|
+
const wrapper = mountFunction({
|
|
399
|
+
propsData: {
|
|
400
|
+
headers: testHeaders,
|
|
401
|
+
items: testItems,
|
|
402
|
+
options: {
|
|
403
|
+
page: 2,
|
|
404
|
+
itemsPerPage: 5,
|
|
405
|
+
},
|
|
406
|
+
},
|
|
407
|
+
listeners: {
|
|
408
|
+
'update:options': fn,
|
|
409
|
+
},
|
|
410
|
+
})
|
|
411
|
+
|
|
412
|
+
expect(fn).toHaveBeenCalledWith(expect.objectContaining({
|
|
413
|
+
page: 2,
|
|
414
|
+
}))
|
|
415
|
+
})
|
|
416
|
+
|
|
417
|
+
it('should render footer.prepend slot content', () => {
|
|
418
|
+
const wrapper = mountFunction({
|
|
419
|
+
propsData: {
|
|
420
|
+
headers: [],
|
|
421
|
+
items: [{}],
|
|
422
|
+
},
|
|
423
|
+
scopedSlots: {
|
|
424
|
+
'footer.prepend' () {
|
|
425
|
+
return this.$createElement('div', ['footer.prepend slot content'])
|
|
426
|
+
},
|
|
427
|
+
},
|
|
428
|
+
})
|
|
429
|
+
|
|
430
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
431
|
+
})
|
|
432
|
+
|
|
433
|
+
it('should render footer.page-text slot content', () => {
|
|
434
|
+
const wrapper = mountFunction({
|
|
435
|
+
propsData: {
|
|
436
|
+
headers: [],
|
|
437
|
+
items: [{}],
|
|
438
|
+
},
|
|
439
|
+
scopedSlots: {
|
|
440
|
+
'footer.page-text' ({ pageStart, pageStop }) {
|
|
441
|
+
return this.$createElement('div', [`foo ${pageStart} bar ${pageStop}`])
|
|
442
|
+
},
|
|
443
|
+
},
|
|
444
|
+
})
|
|
445
|
+
|
|
446
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
447
|
+
})
|
|
448
|
+
|
|
449
|
+
// https://github.com/vuetifyjs/vuetify/issues/8359
|
|
450
|
+
it('should not limit page to current item count when using server-items-length', async () => {
|
|
451
|
+
const wrapper = mountFunction({
|
|
452
|
+
propsData: {
|
|
453
|
+
headers: testHeaders,
|
|
454
|
+
items: [],
|
|
455
|
+
page: 2,
|
|
456
|
+
itemsPerPage: 5,
|
|
457
|
+
serverItemsLength: 0,
|
|
458
|
+
},
|
|
459
|
+
})
|
|
460
|
+
|
|
461
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
462
|
+
|
|
463
|
+
wrapper.setProps({
|
|
464
|
+
items: testItems.slice(5),
|
|
465
|
+
serverItemsLength: 20,
|
|
466
|
+
})
|
|
467
|
+
await wrapper.vm.$nextTick()
|
|
468
|
+
|
|
469
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
470
|
+
})
|
|
471
|
+
|
|
472
|
+
it('should not search column with filterable set to false', async () => {
|
|
473
|
+
const wrapper = mountFunction({
|
|
474
|
+
propsData: {
|
|
475
|
+
items: testItems,
|
|
476
|
+
headers: [
|
|
477
|
+
{
|
|
478
|
+
text: 'Dessert (100g serving)',
|
|
479
|
+
align: 'left',
|
|
480
|
+
filterable: false,
|
|
481
|
+
value: 'name',
|
|
482
|
+
},
|
|
483
|
+
{ text: 'Calories', value: 'calories' },
|
|
484
|
+
{ text: 'Fat (g)', value: 'fat' },
|
|
485
|
+
{ text: 'Carbs (g)', value: 'carbs' },
|
|
486
|
+
{ text: 'Protein (g)', value: 'protein' },
|
|
487
|
+
{ text: 'Iron (%)', value: 'iron' },
|
|
488
|
+
],
|
|
489
|
+
},
|
|
490
|
+
})
|
|
491
|
+
|
|
492
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
493
|
+
|
|
494
|
+
wrapper.setProps({
|
|
495
|
+
search: 'cup',
|
|
496
|
+
})
|
|
497
|
+
await wrapper.vm.$nextTick()
|
|
498
|
+
|
|
499
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
500
|
+
})
|
|
501
|
+
|
|
502
|
+
it('should not search column with filterable set to false and has filter function', async () => {
|
|
503
|
+
const wrapper = mountFunction({
|
|
504
|
+
propsData: {
|
|
505
|
+
items: testItems,
|
|
506
|
+
headers: [
|
|
507
|
+
{
|
|
508
|
+
text: 'Dessert (100g serving)',
|
|
509
|
+
align: 'left',
|
|
510
|
+
value: 'name',
|
|
511
|
+
},
|
|
512
|
+
{ text: 'Calories', value: 'calories', filter: v => v > 400 },
|
|
513
|
+
{ text: 'Fat (g)', value: 'fat' },
|
|
514
|
+
{ text: 'Carbs (g)', value: 'carbs' },
|
|
515
|
+
{ text: 'Protein (g)', value: 'protein' },
|
|
516
|
+
{ text: 'Iron (%)', value: 'iron' },
|
|
517
|
+
],
|
|
518
|
+
},
|
|
519
|
+
})
|
|
520
|
+
|
|
521
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
522
|
+
|
|
523
|
+
wrapper.setProps({
|
|
524
|
+
headers: [
|
|
525
|
+
{
|
|
526
|
+
text: 'Dessert (100g serving)',
|
|
527
|
+
align: 'left',
|
|
528
|
+
value: 'name',
|
|
529
|
+
},
|
|
530
|
+
{ text: 'Calories', value: 'calories', filter: v => v > 400, filterable: false },
|
|
531
|
+
{ text: 'Fat (g)', value: 'fat' },
|
|
532
|
+
{ text: 'Carbs (g)', value: 'carbs' },
|
|
533
|
+
{ text: 'Protein (g)', value: 'protein' },
|
|
534
|
+
{ text: 'Iron (%)', value: 'iron' },
|
|
535
|
+
],
|
|
536
|
+
})
|
|
537
|
+
await wrapper.vm.$nextTick()
|
|
538
|
+
|
|
539
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
540
|
+
})
|
|
541
|
+
|
|
542
|
+
// https://github.com/vuetifyjs/vuetify/issues/8359
|
|
543
|
+
it('should limit page to current page count if not using server-items-length', async () => {
|
|
544
|
+
const wrapper = mountFunction({
|
|
545
|
+
propsData: {
|
|
546
|
+
headers: testHeaders,
|
|
547
|
+
items: testItems,
|
|
548
|
+
page: 3,
|
|
549
|
+
itemsPerPage: 5,
|
|
550
|
+
},
|
|
551
|
+
})
|
|
552
|
+
|
|
553
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
554
|
+
})
|
|
555
|
+
|
|
556
|
+
// https://github.com/vuetifyjs/vuetify/issues/8184
|
|
557
|
+
it('should default to first option in itemsPerPageOptions if it does not include itemsPerPage', async () => {
|
|
558
|
+
const wrapper = mountFunction({
|
|
559
|
+
propsData: {
|
|
560
|
+
headers: testHeaders,
|
|
561
|
+
items: testItems,
|
|
562
|
+
footerProps: {
|
|
563
|
+
itemsPerPageOptions: [6, 7],
|
|
564
|
+
},
|
|
565
|
+
},
|
|
566
|
+
})
|
|
567
|
+
|
|
568
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
569
|
+
})
|
|
570
|
+
|
|
571
|
+
// https://github.com/vuetifyjs/vuetify/issues/8817
|
|
572
|
+
it('should handle object when checking if it should default to first option in itemsPerPageOptions', async () => {
|
|
573
|
+
const wrapper = mountFunction({
|
|
574
|
+
propsData: {
|
|
575
|
+
headers: testHeaders,
|
|
576
|
+
items: testItems,
|
|
577
|
+
itemsPerPage: -1,
|
|
578
|
+
footerProps: {
|
|
579
|
+
itemsPerPageOptions: [6, { text: 'All', value: -1 }],
|
|
580
|
+
},
|
|
581
|
+
},
|
|
582
|
+
})
|
|
583
|
+
|
|
584
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
585
|
+
})
|
|
586
|
+
|
|
587
|
+
// https://github.com/vuetifyjs/vuetify/issues/9599
|
|
588
|
+
it('should not immediately emit items-per-page', async () => {
|
|
589
|
+
const itemsPerPage = jest.fn()
|
|
590
|
+
const wrapper = mountFunction({
|
|
591
|
+
propsData: {
|
|
592
|
+
headers: testHeaders,
|
|
593
|
+
items: testItems,
|
|
594
|
+
footerProps: {
|
|
595
|
+
itemsPerPageOptions: [6, 7],
|
|
596
|
+
},
|
|
597
|
+
},
|
|
598
|
+
listeners: {
|
|
599
|
+
'update:itemsPerPage': itemsPerPage,
|
|
600
|
+
},
|
|
601
|
+
})
|
|
602
|
+
|
|
603
|
+
expect(itemsPerPage).not.toHaveBeenCalled()
|
|
604
|
+
})
|
|
605
|
+
|
|
606
|
+
// https://github.com/vuetifyjs/vuetify/issues/9010
|
|
607
|
+
it('should change page if item count decreases below page start', async () => {
|
|
608
|
+
const page = jest.fn()
|
|
609
|
+
const wrapper = mountFunction({
|
|
610
|
+
propsData: {
|
|
611
|
+
headers: testHeaders,
|
|
612
|
+
items: testItems.slice(0, 4),
|
|
613
|
+
itemsPerPage: 2,
|
|
614
|
+
footerProps: {
|
|
615
|
+
itemsPerPageOptions: [2],
|
|
616
|
+
},
|
|
617
|
+
page: 2,
|
|
618
|
+
},
|
|
619
|
+
listeners: {
|
|
620
|
+
'update:page': page,
|
|
621
|
+
},
|
|
622
|
+
})
|
|
623
|
+
|
|
624
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
625
|
+
|
|
626
|
+
wrapper.setProps({ items: testItems.slice(0, 2) })
|
|
627
|
+
await wrapper.vm.$nextTick()
|
|
628
|
+
|
|
629
|
+
expect(page).toHaveBeenCalledWith(1)
|
|
630
|
+
})
|
|
631
|
+
|
|
632
|
+
// https://github.com/vuetifyjs/vuetify/issues/8477
|
|
633
|
+
it('should emit two item-selected events when using single-select prop and selecting new item', async () => {
|
|
634
|
+
const itemSelected = jest.fn()
|
|
635
|
+
const wrapper = mountFunction({
|
|
636
|
+
propsData: {
|
|
637
|
+
headers: testHeaders,
|
|
638
|
+
itemKey: 'name',
|
|
639
|
+
items: testItems.slice(0, 2),
|
|
640
|
+
value: [testItems[0]],
|
|
641
|
+
showSelect: true,
|
|
642
|
+
singleSelect: true,
|
|
643
|
+
},
|
|
644
|
+
listeners: {
|
|
645
|
+
'item-selected': itemSelected,
|
|
646
|
+
},
|
|
647
|
+
})
|
|
648
|
+
|
|
649
|
+
const checkbox = wrapper.findAll('.v-data-table__checkbox').at(1)
|
|
650
|
+
checkbox.trigger('click')
|
|
651
|
+
await wrapper.vm.$nextTick()
|
|
652
|
+
|
|
653
|
+
expect(itemSelected).toHaveBeenCalledTimes(2)
|
|
654
|
+
expect(itemSelected).toHaveBeenCalledWith({ item: testItems[0], value: false })
|
|
655
|
+
expect(itemSelected).toHaveBeenCalledWith({ item: testItems[1], value: true })
|
|
656
|
+
})
|
|
657
|
+
|
|
658
|
+
// https://github.com/vuetifyjs/vuetify/issues/8915
|
|
659
|
+
it('should not select item that is not selectable', async () => {
|
|
660
|
+
const items = [
|
|
661
|
+
{ ...testItems[0], isSelectable: false },
|
|
662
|
+
{ ...testItems[1] },
|
|
663
|
+
]
|
|
664
|
+
const input = jest.fn()
|
|
665
|
+
const wrapper = mountFunction({
|
|
666
|
+
propsData: {
|
|
667
|
+
headers: testHeaders,
|
|
668
|
+
items,
|
|
669
|
+
showSelect: true,
|
|
670
|
+
},
|
|
671
|
+
listeners: {
|
|
672
|
+
input,
|
|
673
|
+
},
|
|
674
|
+
})
|
|
675
|
+
|
|
676
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
677
|
+
|
|
678
|
+
const selectAll = wrapper.findAll('.v-simple-checkbox').at(0)
|
|
679
|
+
selectAll.trigger('click')
|
|
680
|
+
await wrapper.vm.$nextTick()
|
|
681
|
+
|
|
682
|
+
expect(input).toHaveBeenNthCalledWith(1, [testItems[1]])
|
|
683
|
+
|
|
684
|
+
const single = wrapper.findAll('.v-simple-checkbox').at(1)
|
|
685
|
+
single.trigger('click')
|
|
686
|
+
await wrapper.vm.$nextTick()
|
|
687
|
+
|
|
688
|
+
expect(input.mock.calls).toHaveLength(1)
|
|
689
|
+
})
|
|
690
|
+
|
|
691
|
+
// https://github.com/vuetifyjs/vuetify/issues/8915
|
|
692
|
+
it('should toggle all selectable items', async () => {
|
|
693
|
+
const items = [
|
|
694
|
+
{ ...testItems[0], isSelectable: false },
|
|
695
|
+
{ ...testItems[1] },
|
|
696
|
+
]
|
|
697
|
+
const input = jest.fn()
|
|
698
|
+
const wrapper = mountFunction({
|
|
699
|
+
propsData: {
|
|
700
|
+
headers: testHeaders,
|
|
701
|
+
items,
|
|
702
|
+
showSelect: true,
|
|
703
|
+
},
|
|
704
|
+
listeners: {
|
|
705
|
+
input,
|
|
706
|
+
},
|
|
707
|
+
})
|
|
708
|
+
|
|
709
|
+
const selectAll = wrapper.findAll('.v-simple-checkbox').at(0)
|
|
710
|
+
selectAll.trigger('click')
|
|
711
|
+
await wrapper.vm.$nextTick()
|
|
712
|
+
|
|
713
|
+
expect(input).toHaveBeenNthCalledWith(1, [testItems[1]])
|
|
714
|
+
|
|
715
|
+
selectAll.trigger('click')
|
|
716
|
+
await wrapper.vm.$nextTick()
|
|
717
|
+
|
|
718
|
+
expect(input).toHaveBeenNthCalledWith(2, [])
|
|
719
|
+
})
|
|
720
|
+
|
|
721
|
+
// https://github.com/vuetifyjs/vuetify/issues/10392
|
|
722
|
+
it('should search group-by column', async () => {
|
|
723
|
+
const headers = [
|
|
724
|
+
{
|
|
725
|
+
text: 'Name',
|
|
726
|
+
value: 'name',
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
text: 'ID',
|
|
730
|
+
value: 'id',
|
|
731
|
+
},
|
|
732
|
+
]
|
|
733
|
+
|
|
734
|
+
const items = [
|
|
735
|
+
{
|
|
736
|
+
name: 'Assistance',
|
|
737
|
+
id: 1,
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
name: 'Candidat',
|
|
741
|
+
id: 2,
|
|
742
|
+
},
|
|
743
|
+
]
|
|
744
|
+
|
|
745
|
+
const wrapper = mountFunction({
|
|
746
|
+
propsData: {
|
|
747
|
+
headers,
|
|
748
|
+
items,
|
|
749
|
+
itemKey: 'id',
|
|
750
|
+
groupBy: 'name',
|
|
751
|
+
},
|
|
752
|
+
})
|
|
753
|
+
|
|
754
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
755
|
+
|
|
756
|
+
wrapper.setProps({ search: 'candidat' })
|
|
757
|
+
await wrapper.vm.$nextTick()
|
|
758
|
+
|
|
759
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
760
|
+
})
|
|
761
|
+
|
|
762
|
+
// https://github.com/vuetifyjs/vuetify/issues/10289
|
|
763
|
+
it('should render item slot when using group-by function', async () => {
|
|
764
|
+
const wrapper = mountFunction({
|
|
765
|
+
propsData: {
|
|
766
|
+
headers: testHeaders,
|
|
767
|
+
itemKey: 'name',
|
|
768
|
+
items: testItems.slice(0, 2),
|
|
769
|
+
groupBy: 'name',
|
|
770
|
+
},
|
|
771
|
+
scopedSlots: {
|
|
772
|
+
item () {
|
|
773
|
+
return this.$createElement('div', ['scoped'])
|
|
774
|
+
},
|
|
775
|
+
},
|
|
776
|
+
})
|
|
777
|
+
|
|
778
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
779
|
+
})
|
|
780
|
+
|
|
781
|
+
// https://github.com/vuetifyjs/vuetify/issues/10392
|
|
782
|
+
it('should emit pagination event when filtering', async () => {
|
|
783
|
+
const headers = [
|
|
784
|
+
{
|
|
785
|
+
text: 'Name',
|
|
786
|
+
value: 'name',
|
|
787
|
+
},
|
|
788
|
+
{
|
|
789
|
+
text: 'ID',
|
|
790
|
+
value: 'id',
|
|
791
|
+
},
|
|
792
|
+
]
|
|
793
|
+
|
|
794
|
+
const items = [
|
|
795
|
+
{
|
|
796
|
+
name: 'Assistance',
|
|
797
|
+
id: 1,
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
name: 'Candidat',
|
|
801
|
+
id: 2,
|
|
802
|
+
},
|
|
803
|
+
]
|
|
804
|
+
|
|
805
|
+
const pagination = jest.fn()
|
|
806
|
+
|
|
807
|
+
const wrapper = mountFunction({
|
|
808
|
+
propsData: {
|
|
809
|
+
headers,
|
|
810
|
+
items,
|
|
811
|
+
itemKey: 'id',
|
|
812
|
+
},
|
|
813
|
+
listeners: {
|
|
814
|
+
pagination,
|
|
815
|
+
},
|
|
816
|
+
})
|
|
817
|
+
|
|
818
|
+
expect(pagination).toHaveBeenLastCalledWith({
|
|
819
|
+
itemsLength: 2,
|
|
820
|
+
itemsPerPage: 10,
|
|
821
|
+
page: 1,
|
|
822
|
+
pageCount: 1,
|
|
823
|
+
pageStart: 0,
|
|
824
|
+
pageStop: 2,
|
|
825
|
+
})
|
|
826
|
+
|
|
827
|
+
wrapper.setProps({ search: 'candidat' })
|
|
828
|
+
await wrapper.vm.$nextTick()
|
|
829
|
+
|
|
830
|
+
expect(pagination).toHaveBeenLastCalledWith({
|
|
831
|
+
itemsLength: 1,
|
|
832
|
+
itemsPerPage: 10,
|
|
833
|
+
page: 1,
|
|
834
|
+
pageCount: 1,
|
|
835
|
+
pageStart: 0,
|
|
836
|
+
pageStop: 1,
|
|
837
|
+
})
|
|
838
|
+
|
|
839
|
+
expect(pagination).toHaveBeenCalledTimes(2)
|
|
840
|
+
})
|
|
841
|
+
|
|
842
|
+
// https://github.com/vuetifyjs/vuetify/issues/10715
|
|
843
|
+
// NOTE: This test currently succeeds regardless of fix
|
|
844
|
+
// It seems like the test environment does not double
|
|
845
|
+
// fire the events in the same way the browser does
|
|
846
|
+
it('should not emit too many pagination events', async () => {
|
|
847
|
+
const headers = [
|
|
848
|
+
{
|
|
849
|
+
text: 'Name',
|
|
850
|
+
value: 'name',
|
|
851
|
+
},
|
|
852
|
+
{
|
|
853
|
+
text: 'ID',
|
|
854
|
+
value: 'id',
|
|
855
|
+
},
|
|
856
|
+
]
|
|
857
|
+
|
|
858
|
+
const items = [
|
|
859
|
+
{
|
|
860
|
+
name: 'Assistance',
|
|
861
|
+
id: 1,
|
|
862
|
+
},
|
|
863
|
+
{
|
|
864
|
+
name: 'Candidat',
|
|
865
|
+
id: 2,
|
|
866
|
+
},
|
|
867
|
+
]
|
|
868
|
+
|
|
869
|
+
const wrapper = mountFunction({
|
|
870
|
+
propsData: {
|
|
871
|
+
headers,
|
|
872
|
+
itemKey: 'id',
|
|
873
|
+
serverItemsLength: 0,
|
|
874
|
+
},
|
|
875
|
+
})
|
|
876
|
+
|
|
877
|
+
wrapper.setProps({ items, serverItemsLength: items.length })
|
|
878
|
+
await wrapper.vm.$nextTick()
|
|
879
|
+
|
|
880
|
+
expect(wrapper.emitted().pagination).toHaveLength(2)
|
|
881
|
+
})
|
|
882
|
+
|
|
883
|
+
// https://github.com/vuetifyjs/vuetify/issues/4975
|
|
884
|
+
it('should show correct aria-labels when sorting', async () => {
|
|
885
|
+
const wrapper = mountFunction({
|
|
886
|
+
propsData: {
|
|
887
|
+
headers: testHeaders,
|
|
888
|
+
itemKey: 'name',
|
|
889
|
+
items: testItems.slice(0, 5),
|
|
890
|
+
sortBy: 'calories',
|
|
891
|
+
},
|
|
892
|
+
})
|
|
893
|
+
|
|
894
|
+
wrapper.setProps({ sortDesc: true })
|
|
895
|
+
await wrapper.vm.$nextTick()
|
|
896
|
+
|
|
897
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
898
|
+
|
|
899
|
+
wrapper.setProps({ mustSort: true })
|
|
900
|
+
await wrapper.vm.$nextTick()
|
|
901
|
+
|
|
902
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
903
|
+
})
|
|
904
|
+
|
|
905
|
+
it('should apply class list to rows', () => {
|
|
906
|
+
const wrapper = mountFunction({
|
|
907
|
+
propsData: {
|
|
908
|
+
headers: testHeaders,
|
|
909
|
+
items: testItems,
|
|
910
|
+
itemsPerPage: 5,
|
|
911
|
+
itemClass: () => ['my-class', 'my-other-class'],
|
|
912
|
+
},
|
|
913
|
+
})
|
|
914
|
+
|
|
915
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
916
|
+
})
|
|
917
|
+
|
|
918
|
+
it('should apply class unique to rows', () => {
|
|
919
|
+
const wrapper = mountFunction({
|
|
920
|
+
propsData: {
|
|
921
|
+
headers: testHeaders,
|
|
922
|
+
items: testItems,
|
|
923
|
+
itemsPerPage: 5,
|
|
924
|
+
itemClass: () => 'my-unique-class',
|
|
925
|
+
},
|
|
926
|
+
})
|
|
927
|
+
|
|
928
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
929
|
+
})
|
|
930
|
+
|
|
931
|
+
it('should apply class function to rows', () => {
|
|
932
|
+
const wrapper = mountFunction({
|
|
933
|
+
propsData: {
|
|
934
|
+
headers: testHeaders,
|
|
935
|
+
items: testItems,
|
|
936
|
+
itemsPerPage: 5,
|
|
937
|
+
itemClass: (item: Object) => ({
|
|
938
|
+
'first-class': item.fat < 10,
|
|
939
|
+
'second-class': item.protein > 4.0,
|
|
940
|
+
}),
|
|
941
|
+
},
|
|
942
|
+
})
|
|
943
|
+
|
|
944
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
945
|
+
})
|
|
946
|
+
|
|
947
|
+
it('should apply class from item to rows', () => {
|
|
948
|
+
const wrapper = mountFunction({
|
|
949
|
+
propsData: {
|
|
950
|
+
headers: testHeaders,
|
|
951
|
+
items: testItems,
|
|
952
|
+
itemsPerPage: 5,
|
|
953
|
+
itemClass: 'class',
|
|
954
|
+
},
|
|
955
|
+
})
|
|
956
|
+
|
|
957
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
958
|
+
})
|
|
959
|
+
|
|
960
|
+
// https://github.com/vuetifyjs/vuetify/issues/11600
|
|
961
|
+
it('should return rows from columns that match custom filters', async () => {
|
|
962
|
+
const wrapper = mountFunction({
|
|
963
|
+
propsData: {
|
|
964
|
+
items: testItems,
|
|
965
|
+
filterMode: 'union',
|
|
966
|
+
headers: [
|
|
967
|
+
{ text: 'Dessert (100g serving)', align: 'left', value: 'name' },
|
|
968
|
+
{ text: 'Calories', value: 'calories', filter: value => value === 159 },
|
|
969
|
+
{ text: 'Fat (g)', value: 'fat' },
|
|
970
|
+
{ text: 'Carbs (g)', value: 'carbs' },
|
|
971
|
+
{ text: 'Protein (g)', value: 'protein' },
|
|
972
|
+
{ text: 'Iron (%)', value: 'iron' },
|
|
973
|
+
],
|
|
974
|
+
},
|
|
975
|
+
})
|
|
976
|
+
|
|
977
|
+
wrapper.setProps({ search: 'eclair' })
|
|
978
|
+
await wrapper.vm.$nextTick()
|
|
979
|
+
expect(wrapper.vm.internalCurrentItems).toHaveLength(2)
|
|
980
|
+
})
|
|
981
|
+
|
|
982
|
+
// https://github.com/vuetifyjs/vuetify/issues/11179
|
|
983
|
+
it('should return rows from columns that exclusively match custom filters', async () => {
|
|
984
|
+
const wrapper = mountFunction({
|
|
985
|
+
propsData: {
|
|
986
|
+
items: testItems,
|
|
987
|
+
filterMode: 'intersection',
|
|
988
|
+
headers: [
|
|
989
|
+
{ text: 'Dessert (100g serving)', align: 'left', value: 'name' },
|
|
990
|
+
{ text: 'Calories', value: 'calories', filter: value => value === 159 },
|
|
991
|
+
{ text: 'Fat (g)', value: 'fat' },
|
|
992
|
+
{ text: 'Carbs (g)', value: 'carbs' },
|
|
993
|
+
{ text: 'Protein (g)', value: 'protein' },
|
|
994
|
+
{ text: 'Iron (%)', value: 'iron' },
|
|
995
|
+
],
|
|
996
|
+
},
|
|
997
|
+
})
|
|
998
|
+
|
|
999
|
+
wrapper.setProps({ search: 'eclair' })
|
|
1000
|
+
await wrapper.vm.$nextTick()
|
|
1001
|
+
expect(wrapper.vm.internalCurrentItems).toHaveLength(0)
|
|
1002
|
+
|
|
1003
|
+
wrapper.setProps({ search: 'frozen' })
|
|
1004
|
+
await wrapper.vm.$nextTick()
|
|
1005
|
+
expect(wrapper.vm.internalCurrentItems).toHaveLength(1)
|
|
1006
|
+
})
|
|
1007
|
+
|
|
1008
|
+
// https://github.com/vuetifyjs/vuetify/issues/10244
|
|
1009
|
+
it('should respect mustSort property on options', async () => {
|
|
1010
|
+
const wrapper = mountFunction({
|
|
1011
|
+
propsData: {
|
|
1012
|
+
items: testItems,
|
|
1013
|
+
headers: [
|
|
1014
|
+
{ text: 'Dessert (100g serving)', value: 'name' },
|
|
1015
|
+
],
|
|
1016
|
+
options: {
|
|
1017
|
+
mustSort: true,
|
|
1018
|
+
},
|
|
1019
|
+
},
|
|
1020
|
+
})
|
|
1021
|
+
|
|
1022
|
+
wrapper.find('th').trigger('click')
|
|
1023
|
+
await wrapper.vm.$nextTick()
|
|
1024
|
+
|
|
1025
|
+
wrapper.find('th').trigger('click')
|
|
1026
|
+
await wrapper.vm.$nextTick()
|
|
1027
|
+
|
|
1028
|
+
wrapper.find('th').trigger('click')
|
|
1029
|
+
await wrapper.vm.$nextTick()
|
|
1030
|
+
|
|
1031
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
1032
|
+
})
|
|
1033
|
+
|
|
1034
|
+
it('should hide group button when column is not groupable', async () => {
|
|
1035
|
+
const wrapper = mountFunction({
|
|
1036
|
+
propsData: {
|
|
1037
|
+
showGroupBy: true,
|
|
1038
|
+
items: testItems,
|
|
1039
|
+
headers: [
|
|
1040
|
+
{
|
|
1041
|
+
text: 'Dessert (100g serving)',
|
|
1042
|
+
align: 'left',
|
|
1043
|
+
value: 'name',
|
|
1044
|
+
groupable: false,
|
|
1045
|
+
},
|
|
1046
|
+
{ text: 'Calories', value: 'calories' },
|
|
1047
|
+
{ text: 'Fat (g)', value: 'fat' },
|
|
1048
|
+
{ text: 'Carbs (g)', value: 'carbs' },
|
|
1049
|
+
{ text: 'Protein (g)', value: 'protein' },
|
|
1050
|
+
{ text: 'Iron (%)', value: 'iron' },
|
|
1051
|
+
],
|
|
1052
|
+
},
|
|
1053
|
+
})
|
|
1054
|
+
|
|
1055
|
+
expect(wrapper.html()).toMatchSnapshot()
|
|
1056
|
+
})
|
|
1057
|
+
|
|
1058
|
+
it('should return rows matching search term if specified', async () => {
|
|
1059
|
+
const wrapper = mountFunction({
|
|
1060
|
+
propsData: {
|
|
1061
|
+
items: testItems,
|
|
1062
|
+
headers: [
|
|
1063
|
+
{ text: 'Dessert (100g serving)', align: 'left', value: 'name' },
|
|
1064
|
+
{ text: 'Calories', value: 'calories' },
|
|
1065
|
+
{ text: 'Fat (g)', value: 'fat' },
|
|
1066
|
+
{ text: 'Carbs (g)', value: 'carbs' },
|
|
1067
|
+
{ text: 'Protein (g)', value: 'protein' },
|
|
1068
|
+
{ text: 'Iron (%)', value: 'iron' },
|
|
1069
|
+
],
|
|
1070
|
+
},
|
|
1071
|
+
})
|
|
1072
|
+
|
|
1073
|
+
wrapper.setProps({ search: 'unknown-term' })
|
|
1074
|
+
await wrapper.vm.$nextTick()
|
|
1075
|
+
expect(wrapper.vm.internalCurrentItems).toHaveLength(0)
|
|
1076
|
+
|
|
1077
|
+
wrapper.setProps({ search: 'Eclair' })
|
|
1078
|
+
await wrapper.vm.$nextTick()
|
|
1079
|
+
expect(wrapper.vm.internalCurrentItems).toHaveLength(1)
|
|
1080
|
+
})
|
|
1081
|
+
|
|
1082
|
+
it('should return results which match both search term and column filters if both specified', async () => {
|
|
1083
|
+
const wrapper = mountFunction({
|
|
1084
|
+
propsData: {
|
|
1085
|
+
items: testItems,
|
|
1086
|
+
headers: [
|
|
1087
|
+
{ text: 'Dessert (100g serving)', align: 'left', value: 'name' },
|
|
1088
|
+
{ text: 'Calories', value: 'calories', filter: value => value < 300 },
|
|
1089
|
+
{ text: 'Fat (g)', value: 'fat' },
|
|
1090
|
+
{ text: 'Carbs (g)', value: 'carbs' },
|
|
1091
|
+
{ text: 'Protein (g)', value: 'protein' },
|
|
1092
|
+
{ text: 'Iron (%)', value: 'iron' },
|
|
1093
|
+
],
|
|
1094
|
+
},
|
|
1095
|
+
})
|
|
1096
|
+
|
|
1097
|
+
wrapper.setProps({ search: 'EA' })
|
|
1098
|
+
await wrapper.vm.$nextTick()
|
|
1099
|
+
expect(wrapper.vm.internalCurrentItems).toHaveLength(1)
|
|
1100
|
+
})
|
|
1101
|
+
|
|
1102
|
+
// https://github.com/vuetifyjs/vuetify/issues/14006
|
|
1103
|
+
it('should allow selection on second page when using numbers as item key', async () => {
|
|
1104
|
+
const input = jest.fn()
|
|
1105
|
+
const items = testItems.map((item, index) => ({ ...item, name: index + 1 })).slice(0, 8)
|
|
1106
|
+
const wrapper = mountFunction({
|
|
1107
|
+
propsData: {
|
|
1108
|
+
items,
|
|
1109
|
+
itemKey: 'name',
|
|
1110
|
+
itemsPerPage: 5,
|
|
1111
|
+
showSelect: true,
|
|
1112
|
+
headers: testHeaders,
|
|
1113
|
+
mobileBreakpoint: 0,
|
|
1114
|
+
},
|
|
1115
|
+
listeners: {
|
|
1116
|
+
input,
|
|
1117
|
+
},
|
|
1118
|
+
})
|
|
1119
|
+
|
|
1120
|
+
let checkbox = wrapper.findAll('td > .v-data-table__checkbox').at(4)
|
|
1121
|
+
|
|
1122
|
+
checkbox.trigger('click')
|
|
1123
|
+
await wrapper.vm.$nextTick()
|
|
1124
|
+
|
|
1125
|
+
wrapper.setProps({ page: 2 })
|
|
1126
|
+
await wrapper.vm.$nextTick()
|
|
1127
|
+
|
|
1128
|
+
checkbox = wrapper.findAll('td > .v-data-table__checkbox').at(0)
|
|
1129
|
+
|
|
1130
|
+
checkbox.trigger('click')
|
|
1131
|
+
await wrapper.vm.$nextTick()
|
|
1132
|
+
|
|
1133
|
+
expect(input).toHaveBeenCalledWith([items[4], items[5]])
|
|
1134
|
+
})
|
|
1140
1135
|
})
|