@dimailn/vuetify 2.7.2-alpha3 → 2.7.2-alpha32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/vuetify.js +3833 -2062
- package/dist/vuetify.js.map +1 -1
- package/dist/vuetify.min.css +1 -1
- package/dist/vuetify.min.js +2 -2
- package/es5/components/VAlert/VAlert.js +39 -9
- package/es5/components/VAlert/VAlert.js.map +1 -1
- package/es5/components/VAppBar/VAppBar.js +23 -17
- package/es5/components/VAppBar/VAppBar.js.map +1 -1
- package/es5/components/VAppBar/VAppBarNavIcon.js +5 -1
- package/es5/components/VAppBar/VAppBarNavIcon.js.map +1 -1
- package/es5/components/VAutocomplete/VAutocomplete.js +11 -7
- package/es5/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/es5/components/VBadge/VBadge.js +46 -14
- package/es5/components/VBadge/VBadge.js.map +1 -1
- package/es5/components/VBanner/VBanner.js +51 -15
- package/es5/components/VBanner/VBanner.js.map +1 -1
- package/es5/components/VBottomNavigation/VBottomNavigation.js +33 -7
- package/es5/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/es5/components/VBreadcrumbs/VBreadcrumbs.js +22 -8
- package/es5/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/es5/components/VBreadcrumbs/VBreadcrumbsItem.js +4 -0
- package/es5/components/VBreadcrumbs/VBreadcrumbsItem.js.map +1 -1
- package/es5/components/VBtn/VBtn.js +20 -16
- package/es5/components/VBtn/VBtn.js.map +1 -1
- package/es5/components/VCalendar/VCalendar.js +27 -29
- package/es5/components/VCalendar/VCalendar.js.map +1 -1
- package/es5/components/VCalendar/VCalendarCategory.js +26 -34
- package/es5/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/es5/components/VCalendar/VCalendarDaily.js +43 -60
- package/es5/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/es5/components/VCalendar/VCalendarMonthly.js +2 -2
- package/es5/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/es5/components/VCalendar/VCalendarWeekly.js +26 -35
- package/es5/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-base.js +5 -10
- package/es5/components/VCalendar/mixins/calendar-base.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-events.js +43 -58
- package/es5/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js +2 -2
- package/es5/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/es5/components/VCalendar/mixins/times.js.map +1 -1
- package/es5/components/VCarousel/VCarousel.js +61 -17
- package/es5/components/VCarousel/VCarousel.js.map +1 -1
- package/es5/components/VCarousel/VCarouselItem.js +7 -3
- package/es5/components/VCarousel/VCarouselItem.js.map +1 -1
- package/es5/components/VCheckbox/VCheckbox.js +34 -1
- package/es5/components/VCheckbox/VCheckbox.js.map +1 -1
- package/es5/components/VCheckbox/VSimpleCheckbox.js +94 -38
- package/es5/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/es5/components/VChip/VChip.js +15 -6
- package/es5/components/VChip/VChip.js.map +1 -1
- package/es5/components/VColorPicker/VColorPicker.js +54 -39
- package/es5/components/VColorPicker/VColorPicker.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerCanvas.js +45 -46
- package/es5/components/VColorPicker/VColorPickerCanvas.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerEdit.js +27 -26
- package/es5/components/VColorPicker/VColorPickerEdit.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerPreview.js +41 -30
- package/es5/components/VColorPicker/VColorPickerPreview.js.map +1 -1
- package/es5/components/VColorPicker/VColorPickerSwatches.js +13 -10
- package/es5/components/VColorPicker/VColorPickerSwatches.js.map +1 -1
- package/es5/components/VCombobox/VCombobox.js +1 -0
- package/es5/components/VCombobox/VCombobox.js.map +1 -1
- package/es5/components/VData/VData.js +15 -2
- package/es5/components/VData/VData.js.map +1 -1
- package/es5/components/VDataIterator/VDataFooter.js +21 -7
- package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
- package/es5/components/VDataIterator/VDataIterator.js +47 -50
- package/es5/components/VDataIterator/VDataIterator.js.map +1 -1
- package/es5/components/VDataTable/RowGroup.js +46 -15
- package/es5/components/VDataTable/RowGroup.js.map +1 -1
- package/es5/components/VDataTable/VDataTable.js +41 -44
- package/es5/components/VDataTable/VDataTable.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeader.js +5 -8
- package/es5/components/VDataTable/VDataTableHeader.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js +8 -2
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderMobile.js +29 -37
- package/es5/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/es5/components/VDataTable/VEditDialog.js +26 -22
- package/es5/components/VDataTable/VEditDialog.js.map +1 -1
- package/es5/components/VDataTable/VSimpleTable.js +1 -1
- package/es5/components/VDataTable/VSimpleTable.js.map +1 -1
- package/es5/components/VDataTable/VVirtualTable.js +6 -6
- package/es5/components/VDataTable/VVirtualTable.js.map +1 -1
- package/es5/components/VDataTable/mixins/header.js +7 -9
- package/es5/components/VDataTable/mixins/header.js.map +1 -1
- package/es5/components/VDatePicker/VDatePicker.js +39 -32
- package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerHeader.js +68 -24
- package/es5/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerMonthTable.js +6 -3
- package/es5/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerTitle.js +44 -10
- package/es5/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerYears.js +47 -23
- package/es5/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/es5/components/VDatePicker/mixins/date-picker-table.js +51 -30
- package/es5/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/VDatePicker/util/createNativeLocaleFormatter.js +4 -0
- package/es5/components/VDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/es5/components/VDialog/VDialog.js +58 -32
- package/es5/components/VDialog/VDialog.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanel.js +1 -0
- package/es5/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanelContent.js +12 -10
- package/es5/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js +17 -20
- package/es5/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/es5/components/VFileInput/VFileInput.js +50 -27
- package/es5/components/VFileInput/VFileInput.js.map +1 -1
- package/es5/components/VForm/VForm.js +45 -30
- package/es5/components/VForm/VForm.js.map +1 -1
- package/es5/components/VGrid/VCol.js +3 -3
- package/es5/components/VGrid/VCol.js.map +1 -1
- package/es5/components/VGrid/VContainer.js +3 -1
- package/es5/components/VGrid/VContainer.js.map +1 -1
- package/es5/components/VHover/VHover.js +1 -0
- package/es5/components/VHover/VHover.js.map +1 -1
- package/es5/components/VImg/VImg.js +10 -8
- package/es5/components/VImg/VImg.js.map +1 -1
- package/es5/components/VInput/VInput.js +65 -12
- package/es5/components/VInput/VInput.js.map +1 -1
- package/es5/components/VItemGroup/VItem.js +21 -17
- package/es5/components/VItemGroup/VItem.js.map +1 -1
- package/es5/components/VItemGroup/VItemGroup.js +5 -1
- package/es5/components/VItemGroup/VItemGroup.js.map +1 -1
- package/es5/components/VLazy/VLazy.js +8 -15
- package/es5/components/VLazy/VLazy.js.map +1 -1
- package/es5/components/VList/VList.js +1 -1
- package/es5/components/VList/VList.js.map +1 -1
- package/es5/components/VList/VListGroup.js +73 -40
- package/es5/components/VList/VListGroup.js.map +1 -1
- package/es5/components/VList/VListItem.js +63 -18
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VList/VListItemAction.js +23 -9
- package/es5/components/VList/VListItemAction.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +57 -31
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VMessages/VMessages.js +33 -6
- package/es5/components/VMessages/VMessages.js.map +1 -1
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js +37 -16
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +37 -5
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverflowBtn/VOverflowBtn.js +4 -1
- package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/es5/components/VOverlay/VOverlay.js +32 -4
- package/es5/components/VOverlay/VOverlay.js.map +1 -1
- package/es5/components/VPagination/VPagination.js +48 -27
- package/es5/components/VPagination/VPagination.js.map +1 -1
- package/es5/components/VPicker/VPicker.js +7 -4
- package/es5/components/VPicker/VPicker.js.map +1 -1
- package/es5/components/VProgressCircular/VProgressCircular.js +6 -13
- package/es5/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/es5/components/VProgressLinear/VProgressLinear.js +67 -25
- package/es5/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/es5/components/VRadioGroup/VRadio.js +11 -2
- package/es5/components/VRadioGroup/VRadio.js.map +1 -1
- package/es5/components/VRadioGroup/VRadioGroup.js +30 -2
- package/es5/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/es5/components/VRangeSlider/VRangeSlider.js +57 -32
- package/es5/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/es5/components/VRating/VRating.js +45 -17
- package/es5/components/VRating/VRating.js.map +1 -1
- package/es5/components/VSelect/VSelect.js +156 -79
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSelect/VSelectList.js +104 -44
- package/es5/components/VSelect/VSelectList.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideGroup.js +27 -22
- package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/es5/components/VSlideGroup/VSlideItem.js +2 -1
- package/es5/components/VSlideGroup/VSlideItem.js.map +1 -1
- package/es5/components/VSlider/VSlider.js +73 -41
- package/es5/components/VSlider/VSlider.js.map +1 -1
- package/es5/components/VSnackbar/VSnackbar.js +1 -0
- package/es5/components/VSnackbar/VSnackbar.js.map +1 -1
- package/es5/components/VSparkline/VSparkline.js +48 -68
- package/es5/components/VSparkline/VSparkline.js.map +1 -1
- package/es5/components/VSpeedDial/VSpeedDial.js +13 -17
- package/es5/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/es5/components/VStepper/VStepper.js +1 -0
- package/es5/components/VStepper/VStepper.js.map +1 -1
- package/es5/components/VStepper/VStepperContent.js +4 -2
- package/es5/components/VStepper/VStepperContent.js.map +1 -1
- package/es5/components/VStepper/VStepperStep.js +12 -20
- package/es5/components/VStepper/VStepperStep.js.map +1 -1
- package/es5/components/VSubheader/VSubheader.js +2 -2
- package/es5/components/VSubheader/VSubheader.js.map +1 -1
- package/es5/components/VSwitch/VSwitch.js +11 -9
- package/es5/components/VSwitch/VSwitch.js.map +1 -1
- package/es5/components/VTabs/VTab.js +1 -0
- package/es5/components/VTabs/VTab.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +62 -23
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/VTabs/VTabsBar.js.map +1 -1
- package/es5/components/VTabs/VTabsItems.js +1 -0
- package/es5/components/VTabs/VTabsItems.js.map +1 -1
- package/es5/components/VTextField/VTextField.js +39 -28
- package/es5/components/VTextField/VTextField.js.map +1 -1
- package/es5/components/VTimePicker/VTimePicker.js +72 -44
- package/es5/components/VTimePicker/VTimePicker.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerClock.js +37 -48
- package/es5/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/es5/components/VTimePicker/VTimePickerTitle.js +13 -11
- package/es5/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/es5/components/VToolbar/VToolbar.js +3 -6
- package/es5/components/VToolbar/VToolbar.js.map +1 -1
- package/es5/components/VTooltip/VTooltip.js +13 -12
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/components/VTreeview/VTreeview.js +24 -18
- package/es5/components/VTreeview/VTreeview.js.map +1 -1
- package/es5/components/VTreeview/VTreeviewNode.js +12 -6
- package/es5/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/es5/components/VVirtualScroll/VVirtualScroll.js +15 -19
- package/es5/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/es5/components/VWindow/VWindow.js +13 -8
- package/es5/components/VWindow/VWindow.js.map +1 -1
- package/es5/components/VWindow/VWindowItem.js +10 -10
- package/es5/components/VWindow/VWindowItem.js.map +1 -1
- package/es5/components/transitions/createTransition.js +8 -2
- package/es5/components/transitions/createTransition.js.map +1 -1
- package/es5/components/transitions/expand-transition.js +1 -0
- package/es5/components/transitions/expand-transition.js.map +1 -1
- package/es5/directives/intersect/index.js +20 -7
- package/es5/directives/intersect/index.js.map +1 -1
- package/es5/directives/mutate/index.js +13 -13
- package/es5/directives/mutate/index.js.map +1 -1
- package/es5/directives/resize/index.js +8 -8
- package/es5/directives/resize/index.js.map +1 -1
- package/es5/directives/scroll/index.js +10 -9
- package/es5/directives/scroll/index.js.map +1 -1
- package/es5/directives/touch/index.js +4 -4
- package/es5/directives/touch/index.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/install.js +10 -33
- package/es5/install.js.map +1 -1
- package/es5/mixins/activatable/index.js +11 -5
- package/es5/mixins/activatable/index.js.map +1 -1
- package/es5/mixins/applicationable/index.js +4 -4
- package/es5/mixins/applicationable/index.js.map +1 -1
- package/es5/mixins/binds-attrs/index.js +1 -1
- package/es5/mixins/binds-attrs/index.js.map +1 -1
- package/es5/mixins/bootable/index.js +1 -2
- package/es5/mixins/bootable/index.js.map +1 -1
- package/es5/mixins/detachable/index.js +12 -9
- package/es5/mixins/detachable/index.js.map +1 -1
- package/es5/mixins/groupable/index.js +1 -1
- package/es5/mixins/groupable/index.js.map +1 -1
- package/es5/mixins/intersectable/index.js +2 -2
- package/es5/mixins/intersectable/index.js.map +1 -1
- package/es5/mixins/menuable/index.js +1 -1
- package/es5/mixins/menuable/index.js.map +1 -1
- package/es5/mixins/mouse/index.js +10 -5
- package/es5/mixins/mouse/index.js.map +1 -1
- package/es5/mixins/overlayable/index.js +5 -3
- package/es5/mixins/overlayable/index.js.map +1 -1
- package/es5/mixins/picker/index.js +13 -3
- package/es5/mixins/picker/index.js.map +1 -1
- package/es5/mixins/routable/index.js +5 -2
- package/es5/mixins/routable/index.js.map +1 -1
- package/es5/mixins/selectable/index.js +5 -5
- package/es5/mixins/selectable/index.js.map +1 -1
- package/es5/mixins/translatable/index.js +1 -1
- package/es5/mixins/translatable/index.js.map +1 -1
- package/es5/mixins/validatable/index.js +34 -7
- package/es5/mixins/validatable/index.js.map +1 -1
- package/es5/services/breakpoint/index.js +3 -1
- package/es5/services/breakpoint/index.js.map +1 -1
- package/es5/util/console.js +49 -18
- package/es5/util/console.js.map +1 -1
- package/es5/util/helpers.js +49 -1
- package/es5/util/helpers.js.map +1 -1
- package/es5/util/legacyEventsMixin.js +48 -0
- package/es5/util/legacyEventsMixin.js.map +1 -0
- package/lib/components/VAlert/VAlert.js +13 -7
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VAppBar/VAppBar.js +23 -16
- package/lib/components/VAppBar/VAppBar.js.map +1 -1
- package/lib/components/VAppBar/VAppBarNavIcon.js +1 -1
- package/lib/components/VAppBar/VAppBarNavIcon.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js +12 -8
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VBadge/VBadge.js +26 -13
- package/lib/components/VBadge/VBadge.js.map +1 -1
- package/lib/components/VBanner/VBanner.js +20 -13
- package/lib/components/VBanner/VBanner.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.js +15 -7
- package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js +7 -5
- package/lib/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js +4 -0
- package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js.map +1 -1
- package/lib/components/VBtn/VBtn.js +21 -20
- package/lib/components/VBtn/VBtn.js.map +1 -1
- package/lib/components/VCalendar/VCalendar.js +26 -31
- package/lib/components/VCalendar/VCalendar.js.map +1 -1
- package/lib/components/VCalendar/VCalendarCategory.js +8 -10
- package/lib/components/VCalendar/VCalendarCategory.js.map +1 -1
- package/lib/components/VCalendar/VCalendarDaily.js +21 -33
- package/lib/components/VCalendar/VCalendarDaily.js.map +1 -1
- package/lib/components/VCalendar/VCalendarMonthly.js +2 -2
- package/lib/components/VCalendar/VCalendarMonthly.js.map +1 -1
- package/lib/components/VCalendar/VCalendarWeekly.js +17 -30
- package/lib/components/VCalendar/VCalendarWeekly.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-base.js +7 -11
- package/lib/components/VCalendar/mixins/calendar-base.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-events.js +16 -39
- package/lib/components/VCalendar/mixins/calendar-with-events.js.map +1 -1
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js +2 -2
- package/lib/components/VCalendar/mixins/calendar-with-intervals.js.map +1 -1
- package/lib/components/VCalendar/mixins/times.js.map +1 -1
- package/lib/components/VCarousel/VCarousel.js +36 -16
- package/lib/components/VCarousel/VCarousel.js.map +1 -1
- package/lib/components/VCarousel/VCarouselItem.js +1 -1
- package/lib/components/VCarousel/VCarouselItem.js.map +1 -1
- package/lib/components/VCheckbox/VCheckbox.js +15 -2
- package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
- package/lib/components/VCheckbox/VSimpleCheckbox.js +83 -39
- package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/lib/components/VChip/VChip.js +15 -6
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VColorPicker/VColorPicker.js +47 -44
- package/lib/components/VColorPicker/VColorPicker.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerCanvas.js +41 -43
- package/lib/components/VColorPicker/VColorPickerCanvas.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerEdit.js +25 -31
- package/lib/components/VColorPicker/VColorPickerEdit.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerPreview.js +45 -32
- package/lib/components/VColorPicker/VColorPickerPreview.js.map +1 -1
- package/lib/components/VColorPicker/VColorPickerSwatches.js +15 -9
- package/lib/components/VColorPicker/VColorPickerSwatches.js.map +1 -1
- package/lib/components/VCombobox/VCombobox.js +1 -0
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VData/VData.js +16 -2
- package/lib/components/VData/VData.js.map +1 -1
- package/lib/components/VDataIterator/VDataFooter.js +15 -7
- package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
- package/lib/components/VDataIterator/VDataIterator.js +31 -34
- package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
- package/lib/components/VDataTable/RowGroup.js +30 -14
- package/lib/components/VDataTable/RowGroup.js.map +1 -1
- package/lib/components/VDataTable/VDataTable.js +20 -33
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeader.js +7 -9
- package/lib/components/VDataTable/VDataTableHeader.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js +7 -1
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderMobile.js +18 -25
- package/lib/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/lib/components/VDataTable/VEditDialog.js +18 -18
- package/lib/components/VDataTable/VEditDialog.js.map +1 -1
- package/lib/components/VDataTable/VSimpleTable.js +1 -1
- package/lib/components/VDataTable/VSimpleTable.js.map +1 -1
- package/lib/components/VDataTable/VVirtualTable.js +2 -3
- package/lib/components/VDataTable/VVirtualTable.js.map +1 -1
- package/lib/components/VDataTable/mixins/header.js +3 -8
- package/lib/components/VDataTable/mixins/header.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +24 -23
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js +45 -21
- package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerMonthTable.js +3 -1
- package/lib/components/VDatePicker/VDatePickerMonthTable.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerTitle.js +17 -5
- package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.js +17 -8
- package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.js +30 -15
- package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js +4 -0
- package/lib/components/VDatePicker/util/createNativeLocaleFormatter.js.map +1 -1
- package/lib/components/VDialog/VDialog.js +12 -4
- package/lib/components/VDialog/VDialog.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanel.js +1 -0
- package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelContent.js +2 -2
- package/lib/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +4 -7
- package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
- package/lib/components/VFileInput/VFileInput.js +43 -25
- package/lib/components/VFileInput/VFileInput.js.map +1 -1
- package/lib/components/VForm/VForm.js +41 -26
- package/lib/components/VForm/VForm.js.map +1 -1
- package/lib/components/VGrid/VCol.js +3 -3
- package/lib/components/VGrid/VCol.js.map +1 -1
- package/lib/components/VGrid/VContainer.js +3 -1
- package/lib/components/VGrid/VContainer.js.map +1 -1
- package/lib/components/VHover/VHover.js +1 -0
- package/lib/components/VHover/VHover.js.map +1 -1
- package/lib/components/VImg/VImg.js +5 -9
- package/lib/components/VImg/VImg.js.map +1 -1
- package/lib/components/VInput/VInput.js +32 -9
- package/lib/components/VInput/VInput.js.map +1 -1
- package/lib/components/VItemGroup/VItem.js +25 -21
- package/lib/components/VItemGroup/VItem.js.map +1 -1
- package/lib/components/VItemGroup/VItemGroup.js +6 -1
- package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
- package/lib/components/VLazy/VLazy.js +8 -15
- package/lib/components/VLazy/VLazy.js.map +1 -1
- package/lib/components/VList/VList.js +1 -1
- package/lib/components/VList/VList.js.map +1 -1
- package/lib/components/VList/VListGroup.js +34 -32
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.js +40 -18
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VList/VListItemAction.js +15 -9
- package/lib/components/VList/VListItemAction.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +16 -4
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VMessages/VMessages.js +13 -2
- package/lib/components/VMessages/VMessages.js.map +1 -1
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js +12 -8
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +50 -6
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.js +2 -1
- package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.js +14 -3
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VPagination/VPagination.js +28 -23
- package/lib/components/VPagination/VPagination.js.map +1 -1
- package/lib/components/VPicker/VPicker.js +4 -4
- package/lib/components/VPicker/VPicker.js.map +1 -1
- package/lib/components/VProgressCircular/VProgressCircular.js +6 -7
- package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.js +46 -19
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VRadioGroup/VRadio.js +3 -2
- package/lib/components/VRadioGroup/VRadio.js.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.js +14 -5
- package/lib/components/VRadioGroup/VRadioGroup.js.map +1 -1
- package/lib/components/VRangeSlider/VRangeSlider.js +17 -5
- package/lib/components/VRangeSlider/VRangeSlider.js.map +1 -1
- package/lib/components/VRating/VRating.js +11 -0
- package/lib/components/VRating/VRating.js.map +1 -1
- package/lib/components/VSelect/VSelect.js +99 -40
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelect/VSelectList.js +54 -29
- package/lib/components/VSelect/VSelectList.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideGroup.js +4 -7
- package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
- package/lib/components/VSlideGroup/VSlideItem.js +2 -1
- package/lib/components/VSlideGroup/VSlideItem.js.map +1 -1
- package/lib/components/VSlider/VSlider.js +37 -25
- package/lib/components/VSlider/VSlider.js.map +1 -1
- package/lib/components/VSnackbar/VSnackbar.js +1 -0
- package/lib/components/VSnackbar/VSnackbar.js.map +1 -1
- package/lib/components/VSparkline/VSparkline.js +48 -67
- package/lib/components/VSparkline/VSparkline.js.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.js +9 -15
- package/lib/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/lib/components/VStepper/VStepper.js +1 -0
- package/lib/components/VStepper/VStepper.js.map +1 -1
- package/lib/components/VStepper/VStepperContent.js +2 -2
- package/lib/components/VStepper/VStepperContent.js.map +1 -1
- package/lib/components/VStepper/VStepperStep.js +8 -19
- package/lib/components/VStepper/VStepperStep.js.map +1 -1
- package/lib/components/VSubheader/VSubheader.js +1 -2
- package/lib/components/VSubheader/VSubheader.js.map +1 -1
- package/lib/components/VSwitch/VSwitch.js +2 -4
- package/lib/components/VSwitch/VSwitch.js.map +1 -1
- package/lib/components/VTabs/VTab.js +1 -0
- package/lib/components/VTabs/VTab.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +28 -7
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTabs/VTabsBar.js.map +1 -1
- package/lib/components/VTabs/VTabsItems.js +1 -0
- package/lib/components/VTabs/VTabsItems.js.map +1 -1
- package/lib/components/VTextField/VTextField.js +12 -18
- package/lib/components/VTextField/VTextField.js.map +1 -1
- package/lib/components/VTimePicker/VTimePicker.js +65 -31
- package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerClock.js +24 -39
- package/lib/components/VTimePicker/VTimePickerClock.js.map +1 -1
- package/lib/components/VTimePicker/VTimePickerTitle.js +3 -2
- package/lib/components/VTimePicker/VTimePickerTitle.js.map +1 -1
- package/lib/components/VToolbar/VToolbar.js +5 -6
- package/lib/components/VToolbar/VToolbar.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.js +10 -14
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VTreeview/VTreeview.js +15 -13
- package/lib/components/VTreeview/VTreeview.js.map +1 -1
- package/lib/components/VTreeview/VTreeviewNode.js +4 -6
- package/lib/components/VTreeview/VTreeviewNode.js.map +1 -1
- package/lib/components/VVirtualScroll/VVirtualScroll.js +8 -14
- package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
- package/lib/components/VWindow/VWindow.js +7 -6
- package/lib/components/VWindow/VWindow.js.map +1 -1
- package/lib/components/VWindow/VWindowItem.js +5 -7
- package/lib/components/VWindow/VWindowItem.js.map +1 -1
- package/lib/components/transitions/createTransition.js +2 -2
- package/lib/components/transitions/createTransition.js.map +1 -1
- package/lib/components/transitions/expand-transition.js +1 -0
- package/lib/components/transitions/expand-transition.js.map +1 -1
- package/lib/directives/intersect/index.js +20 -7
- package/lib/directives/intersect/index.js.map +1 -1
- package/lib/directives/mutate/index.js +13 -13
- package/lib/directives/mutate/index.js.map +1 -1
- package/lib/directives/resize/index.js +8 -8
- package/lib/directives/resize/index.js.map +1 -1
- package/lib/directives/scroll/index.js +10 -9
- package/lib/directives/scroll/index.js.map +1 -1
- package/lib/directives/touch/index.js +4 -4
- package/lib/directives/touch/index.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/install.js +5 -28
- package/lib/install.js.map +1 -1
- package/lib/mixins/activatable/index.js +12 -6
- package/lib/mixins/activatable/index.js.map +1 -1
- package/lib/mixins/applicationable/index.js +4 -4
- package/lib/mixins/applicationable/index.js.map +1 -1
- package/lib/mixins/binds-attrs/index.js +1 -1
- package/lib/mixins/binds-attrs/index.js.map +1 -1
- package/lib/mixins/bootable/index.js +2 -4
- package/lib/mixins/bootable/index.js.map +1 -1
- package/lib/mixins/detachable/index.js +13 -10
- package/lib/mixins/detachable/index.js.map +1 -1
- package/lib/mixins/groupable/index.js +1 -1
- package/lib/mixins/groupable/index.js.map +1 -1
- package/lib/mixins/intersectable/index.js +2 -2
- package/lib/mixins/intersectable/index.js.map +1 -1
- package/lib/mixins/menuable/index.js +1 -1
- package/lib/mixins/menuable/index.js.map +1 -1
- package/lib/mixins/mouse/index.js +9 -5
- package/lib/mixins/mouse/index.js.map +1 -1
- package/lib/mixins/overlayable/index.js +5 -3
- package/lib/mixins/overlayable/index.js.map +1 -1
- package/lib/mixins/picker/index.js +5 -3
- package/lib/mixins/picker/index.js.map +1 -1
- package/lib/mixins/routable/index.js +5 -2
- package/lib/mixins/routable/index.js.map +1 -1
- package/lib/mixins/selectable/index.js +6 -5
- package/lib/mixins/selectable/index.js.map +1 -1
- package/lib/mixins/translatable/index.js +1 -1
- package/lib/mixins/translatable/index.js.map +1 -1
- package/lib/mixins/validatable/index.js +17 -7
- package/lib/mixins/validatable/index.js.map +1 -1
- package/lib/services/breakpoint/index.js +3 -1
- package/lib/services/breakpoint/index.js.map +1 -1
- package/lib/util/console.js +47 -17
- package/lib/util/console.js.map +1 -1
- package/lib/util/helpers.js +47 -1
- package/lib/util/helpers.js.map +1 -1
- package/lib/util/legacyEventsMixin.js +37 -0
- package/lib/util/legacyEventsMixin.js.map +1 -0
- package/package.json +1 -1
- package/src/components/VAlert/VAlert.ts +19 -8
- package/src/components/VAlert/__tests__/VAlert.spec.ts +78 -50
- package/src/components/VAlert/__tests__/__snapshots__/VAlert.spec.ts.snap +16 -18
- package/src/components/VApp/__tests__/VApp.spec.ts +24 -18
- package/src/components/VApp/__tests__/__snapshots__/VApp.spec.ts.snap +4 -4
- package/src/components/VAppBar/VAppBar.ts +21 -14
- package/src/components/VAppBar/VAppBarNavIcon.ts +1 -1
- package/src/components/VAppBar/__tests__/VAppBar.spec.ts +256 -74
- package/src/components/VAppBar/__tests__/VAppBarNavIcon.spec.ts +2 -6
- package/src/components/VAppBar/__tests__/__snapshots__/VAppBar.spec.ts.snap +13 -4
- package/src/components/VAppBar/__tests__/__snapshots__/VAppBarNavIcon.spec.ts.snap +3 -4
- package/src/components/VAutocomplete/VAutocomplete.ts +35 -6
- package/src/components/VAutocomplete/__tests__/VAutocomplete.spec.ts +51 -53
- package/src/components/VAutocomplete/__tests__/VAutocomplete2.spec.ts +77 -48
- package/src/components/VAutocomplete/__tests__/VAutocomplete3.spec.ts +101 -39
- package/src/components/VAvatar/__tests__/VAvatar.spec.ts +72 -10
- package/src/components/VBadge/VBadge.ts +38 -26
- package/src/components/VBadge/__tests__/VBadge.spec.ts +47 -30
- package/src/components/VBadge/__tests__/__snapshots__/VBadge.spec.ts.snap +5 -5
- package/src/components/VBanner/VBanner.ts +30 -17
- package/src/components/VBanner/__tests__/VBanner.spec.ts +35 -36
- package/src/components/VBanner/__tests__/__snapshots__/VBanner.spec.ts.snap +1 -1
- package/src/components/VBottomNavigation/VBottomNavigation.ts +20 -8
- package/src/components/VBottomNavigation/__tests__/VBottomNavigation.spec.ts +43 -37
- package/src/components/VBottomNavigation/__tests__/__snapshots__/VBottomNavigation.spec.ts.snap +11 -10
- package/src/components/VBreadcrumbs/VBreadcrumbs.ts +8 -4
- package/src/components/VBreadcrumbs/VBreadcrumbsItem.ts +4 -0
- package/src/components/VBreadcrumbs/__tests__/VBreadcrumbs.spec.ts +125 -10
- package/src/components/VBreadcrumbs/__tests__/VBreadcrumbsItem.spec.ts +10 -6
- package/src/components/VBtn/VBtn.ts +25 -17
- package/src/components/VBtn/__tests__/VBtn.spec.ts +257 -242
- package/src/components/VBtn/__tests__/__snapshots__/VBtn.spec.ts.snap +13 -73
- package/src/components/VBtnToggle/__tests__/VBtnToggle.spec.ts +10 -6
- package/src/components/VCalendar/VCalendar.ts +29 -27
- package/src/components/VCalendar/VCalendarCategory.ts +9 -8
- package/src/components/VCalendar/VCalendarDaily.ts +18 -28
- package/src/components/VCalendar/VCalendarMonthly.ts +2 -1
- package/src/components/VCalendar/VCalendarWeekly.ts +18 -30
- package/src/components/VCalendar/__tests__/VCalendar.spec.ts +18 -34
- package/src/components/VCalendar/__tests__/VCalendarCategory.spec.ts +16 -14
- package/src/components/VCalendar/__tests__/VCalendarDaily.spec.ts +30 -28
- package/src/components/VCalendar/__tests__/__snapshots__/VCalendar.spec.ts.snap +206 -205
- package/src/components/VCalendar/__tests__/__snapshots__/VCalendarDaily.spec.ts.snap +122 -122
- package/src/components/VCalendar/mixins/__tests__/__snapshots__/calendar-with-events.spec.ts.snap +1 -56
- package/src/components/VCalendar/mixins/__tests__/calendar-base.spec.ts +24 -21
- package/src/components/VCalendar/mixins/__tests__/calendar-with-events.spec.ts +27 -34
- package/src/components/VCalendar/mixins/__tests__/calendar-with-intervals.spec.ts +31 -28
- package/src/components/VCalendar/mixins/__tests__/times.spec.ts +10 -9
- package/src/components/VCalendar/mixins/calendar-base.ts +8 -12
- package/src/components/VCalendar/mixins/calendar-with-events.ts +19 -38
- package/src/components/VCalendar/mixins/calendar-with-intervals.ts +1 -1
- package/src/components/VCalendar/mixins/times.ts +1 -1
- package/src/components/VCard/__tests__/VCard.spec.ts +46 -28
- package/src/components/VCard/__tests__/__snapshots__/VCard.spec.ts.snap +2 -2
- package/src/components/VCarousel/VCarousel.ts +42 -15
- package/src/components/VCarousel/VCarouselItem.ts +1 -1
- package/src/components/VCarousel/__tests__/VCarousel.spec.ts +74 -54
- package/src/components/VCarousel/__tests__/VCarouselItem.spec.ts +9 -5
- package/src/components/VCarousel/__tests__/__snapshots__/VCarousel.spec.ts.snap +1 -1
- package/src/components/VCheckbox/VCheckbox.ts +20 -2
- package/src/components/VCheckbox/VSimpleCheckbox.ts +97 -45
- package/src/components/VCheckbox/__tests__/VCheckbox.spec.ts +157 -152
- package/src/components/VCheckbox/__tests__/VSimpleCheckbox.spec.ts +46 -13
- package/src/components/VChip/VChip.ts +17 -13
- package/src/components/VChip/__tests__/VChip.spec.ts +50 -50
- package/src/components/VChip/__tests__/__snapshots__/VChip.spec.ts.snap +4 -4
- package/src/components/VChipGroup/__tests__/VChipGroup.spec.ts +14 -21
- package/src/components/VColorPicker/VColorPicker.ts +51 -41
- package/src/components/VColorPicker/VColorPickerCanvas.ts +44 -37
- package/src/components/VColorPicker/VColorPickerEdit.ts +37 -35
- package/src/components/VColorPicker/VColorPickerPreview.ts +48 -28
- package/src/components/VColorPicker/VColorPickerSwatches.ts +23 -12
- package/src/components/VColorPicker/__tests__/VColorPicker.spec.ts +47 -47
- package/src/components/VColorPicker/__tests__/VColorPickerCanvas.spec.ts +15 -13
- package/src/components/VColorPicker/__tests__/VColorPickerEdit.spec.ts +52 -50
- package/src/components/VColorPicker/__tests__/VColorPickerPreview.spec.ts +101 -30
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +218 -175
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +38 -21
- package/src/components/VCombobox/VCombobox.ts +23 -0
- package/src/components/VCombobox/__tests__/VCombobox-multiple.spec.ts +118 -110
- package/src/components/VCombobox/__tests__/VCombobox.spec.ts +119 -93
- package/src/components/VData/VData.ts +14 -1
- package/src/components/VData/__tests__/VData.spec.ts +69 -90
- package/src/components/VDataIterator/VDataFooter.ts +16 -9
- package/src/components/VDataIterator/VDataIterator.ts +51 -35
- package/src/components/VDataIterator/__tests__/VDataFooter.spec.ts +38 -39
- package/src/components/VDataIterator/__tests__/VDataIterator.spec.ts +90 -122
- package/src/components/VDataIterator/__tests__/__snapshots__/VDataFooter.spec.ts.snap +92 -82
- package/src/components/VDataIterator/__tests__/__snapshots__/VDataIterator.spec.ts.snap +79 -69
- package/src/components/VDataTable/RowGroup.ts +33 -16
- package/src/components/VDataTable/VDataTable.ts +20 -29
- package/src/components/VDataTable/VDataTableHeader.ts +8 -9
- package/src/components/VDataTable/VDataTableHeaderDesktop.ts +10 -1
- package/src/components/VDataTable/VDataTableHeaderMobile.ts +18 -25
- package/src/components/VDataTable/VEditDialog.ts +23 -21
- package/src/components/VDataTable/VSimpleTable.ts +2 -3
- package/src/components/VDataTable/VVirtualTable.ts +2 -3
- package/src/components/VDataTable/__tests__/MobileRow.spec.ts +55 -66
- package/src/components/VDataTable/__tests__/Row.spec.ts +64 -73
- package/src/components/VDataTable/__tests__/RowGroup.spec.ts +7 -5
- package/src/components/VDataTable/__tests__/VDataTable.spec.ts +916 -998
- package/src/components/VDataTable/__tests__/VDataTableHeader.spec.ts +39 -29
- package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +33 -24
- package/src/components/VDataTable/__tests__/VSimpleTable.spec.ts +55 -29
- package/src/components/VDataTable/__tests__/VVirtualTable.spec.ts +13 -15
- package/src/components/VDataTable/__tests__/__snapshots__/Row.spec.ts.snap +30 -0
- package/src/components/VDataTable/__tests__/__snapshots__/VDataTable.spec.ts.snap +2543 -2086
- package/src/components/VDataTable/__tests__/__snapshots__/VDataTableHeader.spec.ts.snap +115 -144
- package/src/components/VDataTable/__tests__/__snapshots__/VEditDialog.spec.ts.snap +6 -6
- package/src/components/VDataTable/__tests__/__snapshots__/VSimpleTable.spec.ts.snap +22 -18
- package/src/components/VDataTable/mixins/__tests__/__snapshots__/header.spec.ts.snap +10 -13
- package/src/components/VDataTable/mixins/__tests__/header.spec.ts +15 -15
- package/src/components/VDataTable/mixins/header.ts +6 -10
- package/src/components/VDatePicker/VDatePicker.ts +30 -25
- package/src/components/VDatePicker/VDatePickerHeader.ts +57 -32
- package/src/components/VDatePicker/VDatePickerMonthTable.ts +1 -1
- package/src/components/VDatePicker/VDatePickerTitle.ts +21 -7
- package/src/components/VDatePicker/VDatePickerYears.ts +19 -10
- package/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +302 -246
- package/src/components/VDatePicker/__tests__/VDatePicker.month.spec.ts +90 -86
- package/src/components/VDatePicker/__tests__/VDatePickerDateTable.spec.ts +76 -90
- package/src/components/VDatePicker/__tests__/VDatePickerHeader.spec.ts +96 -71
- package/src/components/VDatePicker/__tests__/VDatePickerMonthTable.spec.ts +63 -77
- package/src/components/VDatePicker/__tests__/VDatePickerTitle.spec.ts +48 -28
- package/src/components/VDatePicker/__tests__/VDatePickerYears.spec.ts +25 -22
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.date.spec.ts.snap +601 -586
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePicker.month.spec.ts.snap +203 -193
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerDateTable.spec.ts.snap +615 -615
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerHeader.spec.ts.snap +52 -52
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerMonthTable.spec.ts.snap +144 -144
- package/src/components/VDatePicker/__tests__/__snapshots__/VDatePickerTitle.spec.ts.snap +3 -4
- package/src/components/VDatePicker/mixins/date-picker-table.ts +32 -14
- package/src/components/VDatePicker/util/__tests__/createNativeLocaleFormatter.spec.ts +7 -0
- package/src/components/VDatePicker/util/createNativeLocaleFormatter.ts +3 -0
- package/src/components/VDialog/VDialog.ts +23 -11
- package/src/components/VDialog/__tests__/VDialog.spec.ts +105 -101
- package/src/components/VDialog/__tests__/__snapshots__/VDialog.spec.ts.snap +0 -15
- package/src/components/VDivider/__tests__/VDivider.spec.ts +11 -15
- package/src/components/VDivider/__tests__/__snapshots__/VDivider.spec.ts.snap +2 -2
- package/src/components/VExpansionPanel/VExpansionPanel.ts +5 -0
- package/src/components/VExpansionPanel/VExpansionPanelContent.ts +2 -2
- package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +3 -4
- package/src/components/VExpansionPanel/__tests__/VExpansionPanel.spec.ts +43 -27
- package/src/components/VExpansionPanel/__tests__/__snapshots__/VExpansionPanel.spec.ts.snap +18 -16
- package/src/components/VFileInput/VFileInput.ts +47 -32
- package/src/components/VFileInput/__tests__/VFileInput.spec.ts +84 -54
- package/src/components/VFileInput/__tests__/__snapshots__/VFileInput.spec.ts.snap +242 -146
- package/src/components/VForm/VForm.ts +63 -35
- package/src/components/VForm/__tests__/VForm.spec.ts +100 -80
- package/src/components/VGrid/VCol.ts +2 -2
- package/src/components/VGrid/VContainer.ts +1 -1
- package/src/components/VGrid/__tests__/VCol.spec.ts +17 -17
- package/src/components/VGrid/__tests__/VContainer.spec.ts +58 -3
- package/src/components/VGrid/__tests__/VFlex.spec.ts +3 -3
- package/src/components/VGrid/__tests__/VGrid.spec.ts +12 -10
- package/src/components/VGrid/__tests__/VLayout.spec.ts +3 -3
- package/src/components/VHover/VHover.ts +2 -0
- package/src/components/VIcon/__tests__/VIcon.spec.ts +176 -70
- package/src/components/VImg/VImg.ts +5 -4
- package/src/components/VImg/__tests__/VImg.spec.ts +21 -20
- package/src/components/VImg/__tests__/__snapshots__/VImg.spec.ts.snap +71 -66
- package/src/components/VInput/VInput.ts +33 -8
- package/src/components/VInput/__tests__/VInput.spec.ts +170 -234
- package/src/components/VInput/__tests__/__snapshots__/VInput.spec.ts.snap +50 -101
- package/src/components/VItemGroup/VItem.ts +30 -24
- package/src/components/VItemGroup/VItemGroup.ts +7 -1
- package/src/components/VItemGroup/__tests__/VItem.spec.ts +22 -37
- package/src/components/VItemGroup/__tests__/VItemGroup.spec.ts +96 -124
- package/src/components/VItemGroup/__tests__/__snapshots__/VItem.spec.ts.snap +2 -0
- package/src/components/VLabel/__tests__/VLabel.spec.ts +240 -14
- package/src/components/VLazy/VLazy.ts +11 -13
- package/src/components/VLazy/__tests__/VLazy.spec.ts +5 -4
- package/src/components/VLazy/__tests__/__snapshots__/VLazy.spec.ts.snap +2 -1
- package/src/components/VList/VList.ts +1 -1
- package/src/components/VList/VListGroup.ts +43 -32
- package/src/components/VList/VListItem.ts +55 -23
- package/src/components/VList/VListItemAction.ts +11 -10
- package/src/components/VList/__tests__/VList.spec.ts +13 -12
- package/src/components/VList/__tests__/VListGroup.spec.ts +59 -51
- package/src/components/VList/__tests__/VListItem.spec.ts +142 -63
- package/src/components/VList/__tests__/VListItemAvatar.spec.ts +5 -2
- package/src/components/VList/__tests__/VListItemGroup.spec.ts +5 -2
- package/src/components/VList/__tests__/__snapshots__/VList.spec.ts.snap +10 -10
- package/src/components/VList/__tests__/__snapshots__/VListGroup.spec.ts.snap +5 -6
- package/src/components/VList/__tests__/__snapshots__/VListItem.spec.ts.snap +1 -1
- package/src/components/VMain/__tests__/VMain.spec.ts +71 -17
- package/src/components/VMenu/VMenu.ts +25 -4
- package/src/components/VMenu/__tests__/VMenu.spec.ts +90 -69
- package/src/components/VMenu/__tests__/__snapshots__/VMenu.spec.ts.snap +3 -5
- package/src/components/VMessages/VMessages.ts +15 -4
- package/src/components/VMessages/__tests__/VMessages.spec.ts +55 -16
- package/src/components/VMessages/__tests__/__snapshots__/VMessages.spec.ts.snap +16 -25
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +23 -16
- package/src/components/VNavigationDrawer/__tests__/VNavigationDrawer.spec.ts +84 -71
- package/src/components/VOtpInput/VOtpInput.ts +39 -4
- package/src/components/VOverflowBtn/VOverflowBtn.ts +3 -1
- package/src/components/VOverlay/VOverlay.ts +16 -2
- package/src/components/VOverlay/__tests__/VOverlay.spec.ts +6 -6
- package/src/components/VPagination/VPagination.ts +41 -29
- package/src/components/VPagination/__tests__/VPagination.spec.ts +85 -71
- package/src/components/VPagination/__tests__/__snapshots__/VPagination.spec.ts.snap +184 -429
- package/src/components/VParallax/__tests__/__snapshots__/VParallax.spec.ts.snap +8 -8
- package/src/components/VPicker/VPicker.ts +9 -11
- package/src/components/VPicker/__tests__/VPicker.spec.ts +14 -15
- package/src/components/VPicker/__tests__/__snapshots__/VPicker.spec.ts.snap +2 -2
- package/src/components/VProgressCircular/VProgressCircular.ts +6 -6
- package/src/components/VProgressCircular/__tests__/VProgressCircular.spec.ts +28 -21
- package/src/components/VProgressCircular/__tests__/__snapshots__/VProgressCircular.spec.ts.snap +62 -62
- package/src/components/VProgressLinear/VProgressLinear.ts +64 -30
- package/src/components/VProgressLinear/__tests__/VProgressLinear.spec.ts +378 -71
- package/src/components/VProgressLinear/__tests__/__snapshots__/VProgressLinear.spec.ts.snap +53 -79
- package/src/components/VRadioGroup/VRadio.ts +4 -2
- package/src/components/VRadioGroup/VRadioGroup.ts +20 -7
- package/src/components/VRangeSlider/VRangeSlider.ts +20 -5
- package/src/components/VRangeSlider/__tests__/VRangeSlider.spec.ts +40 -40
- package/src/components/VRangeSlider/__tests__/__snapshots__/VRangeSlider.spec.ts.snap +32 -38
- package/src/components/VRating/VRating.ts +13 -0
- package/src/components/VResponsive/__tests__/__snapshots__/VResponsive.spec.ts.snap +2 -2
- package/src/components/VSelect/VSelect.ts +105 -47
- package/src/components/VSelect/VSelectList.ts +51 -25
- package/src/components/VSelect/__tests__/VSelect.spec.ts +166 -125
- package/src/components/VSelect/__tests__/VSelect2.spec.ts +127 -111
- package/src/components/VSelect/__tests__/VSelect3.spec.ts +109 -91
- package/src/components/VSelect/__tests__/VSelect4.spec.ts +79 -68
- package/src/components/VSelect/__tests__/VSelectList.spec.ts +23 -31
- package/src/components/VSelect/__tests__/__snapshots__/VSelect.spec.ts.snap +58 -62
- package/src/components/VSelect/__tests__/__snapshots__/VSelect2.spec.ts.snap +50 -62
- package/src/components/VSelect/__tests__/__snapshots__/VSelect3.spec.ts.snap +10 -14
- package/src/components/VSheet/__tests__/VSheet.spec.ts +5 -5
- package/src/components/VSkeletonLoader/__tests__/VSkeletonLoader.spec.ts +22 -15
- package/src/components/VSkeletonLoader/__tests__/__snapshots__/VSkeletonLoader.spec.ts.snap +60 -60
- package/src/components/VSlideGroup/VSlideGroup.ts +5 -7
- package/src/components/VSlideGroup/VSlideItem.ts +2 -0
- package/src/components/VSlider/VSlider.ts +58 -32
- package/src/components/VSlider/__tests__/VSlider.spec.ts +188 -286
- package/src/components/VSlider/__tests__/__snapshots__/VSlider.spec.ts.snap +157 -246
- package/src/components/VSnackbar/VSnackbar.ts +1 -1
- package/src/components/VSparkline/VSparkline.ts +54 -92
- package/src/components/VSparkline/__tests__/VSparkline.spec.ts +33 -35
- package/src/components/VSpeedDial/VSpeedDial.ts +12 -15
- package/src/components/VSpeedDial/__tests__/VSpeedDial.spec.ts +21 -13
- package/src/components/VSpeedDial/__tests__/__snapshots__/VSpeedDial.spec.ts.snap +6 -6
- package/src/components/VStepper/VStepper.ts +3 -1
- package/src/components/VStepper/VStepperContent.ts +2 -2
- package/src/components/VStepper/VStepperStep.ts +9 -16
- package/src/components/VStepper/__tests__/VStepper.spec.ts +4 -1
- package/src/components/VStepper/__tests__/VStepperContent.spec.ts +104 -110
- package/src/components/VStepper/__tests__/VStepperStep.spec.ts +51 -44
- package/src/components/VSubheader/VSubheader.ts +1 -1
- package/src/components/VSubheader/__tests__/VSubheader.spec.ts +12 -7
- package/src/components/VSubheader/__tests__/__snapshots__/VSubheader.spec.ts.snap +1 -1
- package/src/components/VSwitch/VSwitch.ts +5 -6
- package/src/components/VSwitch/__tests__/VSwitch.spec.ts +30 -37
- package/src/components/VSystemBar/__tests__/VSystemBar.spec.ts +89 -17
- package/src/components/VTabs/VTab.ts +2 -0
- package/src/components/VTabs/VTabs.ts +33 -13
- package/src/components/VTabs/VTabsBar.ts +7 -5
- package/src/components/VTabs/VTabsItems.ts +2 -0
- package/src/components/VTabs/__tests__/VTab.spec.ts +49 -38
- package/src/components/VTabs/__tests__/VTabs.spec.ts +127 -79
- package/src/components/VTabs/__tests__/VTabsBar.spec.ts +68 -27
- package/src/components/VTabs/__tests__/VTabsSlider.spec.ts +7 -6
- package/src/components/VTabs/__tests__/__snapshots__/VTabs.spec.ts.snap +1 -3
- package/src/components/VTextField/VTextField.ts +14 -16
- package/src/components/VTextField/__tests__/VTextField.spec.ts +342 -246
- package/src/components/VTextarea/__tests__/VTextarea.spec.ts +112 -35
- package/src/components/VTimePicker/VTimePicker.ts +199 -89
- package/src/components/VTimePicker/VTimePickerClock.ts +40 -45
- package/src/components/VTimePicker/VTimePickerTitle.ts +5 -4
- package/src/components/VTimePicker/__tests__/VTimePicker.spec.ts +153 -140
- package/src/components/VTimePicker/__tests__/VTimePickerClock.spec.ts +78 -81
- package/src/components/VTimePicker/__tests__/VTimePickerTitle.spec.ts +47 -41
- package/src/components/VTimePicker/__tests__/__snapshots__/VTimePicker.spec.ts.snap +120 -40
- package/src/components/VTimeline/__tests__/VTimelineItem.spec.ts +25 -35
- package/src/components/VTimeline/__tests__/__snapshots__/VTimelineItem.spec.ts.snap +4 -5
- package/src/components/VToolbar/VToolbar.ts +5 -6
- package/src/components/VToolbar/__tests__/VToolbar.spec.ts +49 -25
- package/src/components/VTooltip/VTooltip.ts +24 -24
- package/src/components/VTooltip/__tests__/VTooltip.spec.ts +60 -75
- package/src/components/VTooltip/__tests__/__snapshots__/VTooltip.spec.ts.snap +34 -18
- package/src/components/VTreeview/VTreeview.ts +20 -17
- package/src/components/VTreeview/VTreeviewNode.ts +4 -6
- package/src/components/VTreeview/__tests__/VTreeview.spec.ts +168 -174
- package/src/components/VTreeview/__tests__/VTreeviewNode.spec.ts +77 -66
- package/src/components/VTreeview/__tests__/__snapshots__/VTreeview.spec.ts.snap +141 -141
- package/src/components/VTreeview/__tests__/__snapshots__/VTreeviewNode.spec.ts.snap +26 -51
- package/src/components/VVirtualScroll/VVirtualScroll.ts +14 -15
- package/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts +24 -20
- package/src/components/VWindow/VWindow.ts +9 -6
- package/src/components/VWindow/VWindowItem.ts +5 -4
- package/src/components/VWindow/__tests__/VWindow.spec.ts +304 -185
- package/src/components/VWindow/__tests__/VWindowItem.spec.ts +283 -126
- package/src/components/VWindow/__tests__/__snapshots__/VWindow.spec.ts.snap +59 -0
- package/src/components/VWindow/__tests__/__snapshots__/VWindowItem.spec.ts.snap +36 -0
- package/src/components/transitions/createTransition.ts +2 -2
- package/src/components/transitions/expand-transition.ts +2 -0
- package/src/directives/intersect/index.ts +81 -42
- package/src/directives/mutate/index.ts +58 -49
- package/src/directives/resize/index.ts +33 -14
- package/src/directives/scroll/index.ts +36 -20
- package/src/directives/touch/index.ts +37 -27
- package/src/install.ts +10 -32
- package/src/mixins/activatable/index.ts +10 -5
- package/src/mixins/applicationable/__tests__/applicationable.spec.ts +31 -27
- package/src/mixins/applicationable/index.ts +4 -4
- package/src/mixins/binds-attrs/index.ts +1 -1
- package/src/mixins/bootable/__tests__/bootable.spec.ts +17 -11
- package/src/mixins/bootable/index.ts +4 -3
- package/src/mixins/colorable/__tests__/colorable.spec.ts +9 -6
- package/src/mixins/detachable/index.ts +16 -9
- package/src/mixins/elevatable/__tests__/elevatable.spec.ts +14 -13
- package/src/mixins/groupable/index.ts +1 -1
- package/src/mixins/intersectable/__tests__/intersectable.spec.ts +35 -29
- package/src/mixins/intersectable/index.ts +2 -2
- package/src/mixins/menuable/__tests__/menuable.spec.ts +76 -33
- package/src/mixins/menuable/index.ts +1 -1
- package/src/mixins/mobile/__tests__/mobile.spec.ts +9 -6
- package/src/mixins/mouse/__tests__/mouse.spec.ts +54 -40
- package/src/mixins/mouse/index.ts +10 -6
- package/src/mixins/overlayable/__tests__/overlayable.spec.ts +32 -24
- package/src/mixins/overlayable/index.ts +5 -4
- package/src/mixins/picker/index.ts +4 -4
- package/src/mixins/proxyable/__tests__/proxyable.spec.ts +18 -17
- package/src/mixins/registrable/__tests__/registrable.spec.ts +31 -0
- package/src/mixins/rippleable/__tests__/rippleable.spec.ts +10 -9
- package/src/mixins/roundable/__tests__/roundable.spec.ts +7 -5
- package/src/mixins/routable/__tests__/routable.spec.ts +60 -52
- package/src/mixins/routable/index.ts +6 -4
- package/src/mixins/scrollable/__tests__/scrollable.spec.ts +56 -27
- package/src/mixins/selectable/__tests__/selectable.spec.ts +22 -9
- package/src/mixins/selectable/index.ts +7 -7
- package/src/mixins/translatable/index.ts +1 -1
- package/src/mixins/validatable/__tests__/validatable.spec.ts +194 -158
- package/src/mixins/validatable/index.ts +29 -21
- package/src/services/breakpoint/index.ts +5 -0
- package/src/util/__tests__/console.spec.ts +124 -11
- package/src/util/__tests__/helpers.spec.ts +121 -32
- package/src/util/console.ts +43 -24
- package/src/util/helpers.ts +49 -4
- package/src/util/legacyEventsMixin.ts +34 -0
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
import {h} from 'vue'
|
|
1
|
+
import { h, defineComponent, PropType, VNode, getCurrentInstance } from 'vue'
|
|
2
2
|
// Mixins
|
|
3
3
|
import Colorable from '../../mixins/colorable'
|
|
4
4
|
|
|
5
5
|
// Utilities
|
|
6
|
-
import mixins, { ExtractVue } from '../../util/mixins'
|
|
7
6
|
import { genPoints, genBars } from './helpers/core'
|
|
8
7
|
import { genPath } from './helpers/path'
|
|
9
8
|
|
|
10
|
-
// Types
|
|
11
|
-
import Vue, { VNode } from 'vue'
|
|
12
|
-
import { Prop, PropValidator } from 'vue/types/options'
|
|
13
|
-
|
|
14
9
|
export type SparklineItem = number | { value: number }
|
|
15
10
|
|
|
16
11
|
export type SparklineText = {
|
|
@@ -38,22 +33,9 @@ export interface Bar {
|
|
|
38
33
|
value: number
|
|
39
34
|
}
|
|
40
35
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export default mixins<options &
|
|
48
|
-
/* eslint-disable indent */
|
|
49
|
-
ExtractVue<[
|
|
50
|
-
typeof Colorable
|
|
51
|
-
]>
|
|
52
|
-
/* eslint-enable indent */
|
|
53
|
-
>(
|
|
54
|
-
Colorable
|
|
55
|
-
).extend({
|
|
56
|
-
name: 'VSparkline',
|
|
36
|
+
export default defineComponent({
|
|
37
|
+
name: 'v-sparkline',
|
|
38
|
+
mixins: [Colorable],
|
|
57
39
|
|
|
58
40
|
inheritAttrs: false,
|
|
59
41
|
|
|
@@ -80,11 +62,11 @@ export default mixins<options &
|
|
|
80
62
|
default: false,
|
|
81
63
|
},
|
|
82
64
|
gradient: {
|
|
83
|
-
type: Array
|
|
65
|
+
type: Array as PropType<string[]>,
|
|
84
66
|
default: () => ([]),
|
|
85
|
-
}
|
|
67
|
+
},
|
|
86
68
|
gradientDirection: {
|
|
87
|
-
type: String as
|
|
69
|
+
type: String as PropType<'top' | 'bottom' | 'left' | 'right'>,
|
|
88
70
|
validator: (val: string) => ['top', 'bottom', 'left', 'right'].includes(val),
|
|
89
71
|
default: 'top',
|
|
90
72
|
},
|
|
@@ -93,9 +75,9 @@ export default mixins<options &
|
|
|
93
75
|
default: 75,
|
|
94
76
|
},
|
|
95
77
|
labels: {
|
|
96
|
-
type: Array
|
|
78
|
+
type: Array as PropType<SparklineItem[]>,
|
|
97
79
|
default: () => ([]),
|
|
98
|
-
}
|
|
80
|
+
},
|
|
99
81
|
labelSize: {
|
|
100
82
|
type: [Number, String],
|
|
101
83
|
default: 7,
|
|
@@ -114,14 +96,14 @@ export default mixins<options &
|
|
|
114
96
|
default: false,
|
|
115
97
|
},
|
|
116
98
|
type: {
|
|
117
|
-
type: String as
|
|
99
|
+
type: String as PropType<'trend' | 'bar'>,
|
|
118
100
|
default: 'trend',
|
|
119
101
|
validator: (val: string) => ['trend', 'bar'].includes(val),
|
|
120
102
|
},
|
|
121
103
|
value: {
|
|
122
|
-
type: Array
|
|
104
|
+
type: Array as PropType<SparklineItem[]>,
|
|
123
105
|
default: () => ([]),
|
|
124
|
-
}
|
|
106
|
+
},
|
|
125
107
|
width: {
|
|
126
108
|
type: [Number, String],
|
|
127
109
|
default: 300,
|
|
@@ -274,23 +256,20 @@ export default mixins<options &
|
|
|
274
256
|
const len = Math.max(gradient.length - 1, 1)
|
|
275
257
|
const stops = gradient.reverse().map((color, index) =>
|
|
276
258
|
h('stop', {
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
'stop-color': color || 'currentColor',
|
|
280
|
-
},
|
|
259
|
+
offset: index / len,
|
|
260
|
+
'stop-color': color || 'currentColor',
|
|
281
261
|
})
|
|
282
262
|
)
|
|
283
263
|
|
|
264
|
+
const instance = getCurrentInstance()
|
|
284
265
|
return h('defs', [
|
|
285
266
|
h('linearGradient', {
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
y2: gradientDirection === 'bottom' ? '100%' : '0',
|
|
293
|
-
},
|
|
267
|
+
id: instance?.uid,
|
|
268
|
+
gradientUnits: 'userSpaceOnUse',
|
|
269
|
+
x1: gradientDirection === 'left' ? '100%' : '0',
|
|
270
|
+
y1: gradientDirection === 'top' ? '100%' : '0',
|
|
271
|
+
x2: gradientDirection === 'right' ? '100%' : '0',
|
|
272
|
+
y2: gradientDirection === 'bottom' ? '100%' : '0',
|
|
294
273
|
}, stops),
|
|
295
274
|
])
|
|
296
275
|
},
|
|
@@ -301,29 +280,26 @@ export default mixins<options &
|
|
|
301
280
|
textAnchor: 'middle',
|
|
302
281
|
dominantBaseline: 'mathematical',
|
|
303
282
|
fill: 'currentColor',
|
|
304
|
-
}
|
|
283
|
+
},
|
|
305
284
|
}, children)
|
|
306
285
|
},
|
|
307
286
|
genPath () {
|
|
308
287
|
const points = genPoints(this.normalizedValues, this.boundary)
|
|
288
|
+
const instance = getCurrentInstance()
|
|
309
289
|
|
|
310
290
|
return h('path', {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
stroke: this.fill ? 'none' : `url(#${this._uid})`,
|
|
315
|
-
},
|
|
291
|
+
d: genPath(points, this._radius, this.fill, this.parsedHeight),
|
|
292
|
+
fill: this.fill ? `url(#${instance?.uid})` : 'none',
|
|
293
|
+
stroke: this.fill ? 'none' : `url(#${instance?.uid})`,
|
|
316
294
|
ref: 'path',
|
|
317
295
|
})
|
|
318
296
|
},
|
|
319
297
|
genLabels (offsetX: number) {
|
|
320
298
|
const children = this.parsedLabels.map((item, i) => (
|
|
321
299
|
h('text', {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
'font-size': Number(this.labelSize) || 7,
|
|
326
|
-
},
|
|
300
|
+
x: item.x + offsetX + this._lineWidth / 2,
|
|
301
|
+
y: this.textY + (this.parsedLabelSize * 0.75),
|
|
302
|
+
'font-size': Number(this.labelSize) || 7,
|
|
327
303
|
}, [this.genLabel(item, i)])
|
|
328
304
|
))
|
|
329
305
|
|
|
@@ -341,27 +317,21 @@ export default mixins<options &
|
|
|
341
317
|
const offsetX = (Math.abs(bars[0].x - bars[1].x) - this._lineWidth) / 2
|
|
342
318
|
|
|
343
319
|
return h('svg', {
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
viewBox: `0 0 ${this.totalWidth} ${this.totalHeight}`,
|
|
347
|
-
},
|
|
320
|
+
display: 'block',
|
|
321
|
+
viewBox: `0 0 ${this.totalWidth} ${this.totalHeight}`,
|
|
348
322
|
}, [
|
|
349
323
|
this.genGradient(),
|
|
350
|
-
this.genClipPath(bars, offsetX, this._lineWidth, 'sparkline-bar-' +
|
|
324
|
+
this.genClipPath(bars, offsetX, this._lineWidth, 'sparkline-bar-' + getCurrentInstance()?.uid),
|
|
351
325
|
this.hasLabels ? this.genLabels(offsetX) : undefined as never,
|
|
352
326
|
h('g', {
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
fill: `url(#${this._uid})`,
|
|
356
|
-
},
|
|
327
|
+
'clip-path': `url(#sparkline-bar-${getCurrentInstance()?.uid}-clip)`,
|
|
328
|
+
fill: `url(#${getCurrentInstance()?.uid})`,
|
|
357
329
|
}, [
|
|
358
330
|
h('rect', {
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
height: this.height,
|
|
364
|
-
},
|
|
331
|
+
x: 0,
|
|
332
|
+
y: 0,
|
|
333
|
+
width: this.totalWidth,
|
|
334
|
+
height: this.height,
|
|
365
335
|
}),
|
|
366
336
|
]),
|
|
367
337
|
])
|
|
@@ -372,40 +342,32 @@ export default mixins<options &
|
|
|
372
342
|
: this.smooth ? 2 : 0
|
|
373
343
|
|
|
374
344
|
return h('clipPath', {
|
|
375
|
-
|
|
376
|
-
id: `${id}-clip`,
|
|
377
|
-
},
|
|
345
|
+
id: `${id}-clip`,
|
|
378
346
|
}, bars.map(item => {
|
|
379
347
|
return h('rect', {
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
ry: rounding,
|
|
387
|
-
},
|
|
348
|
+
x: item.x + offsetX,
|
|
349
|
+
y: item.y,
|
|
350
|
+
width: lineWidth,
|
|
351
|
+
height: item.height,
|
|
352
|
+
rx: rounding,
|
|
353
|
+
ry: rounding,
|
|
388
354
|
}, [
|
|
389
355
|
this.autoDraw ? h('animate', {
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
fill: 'freeze',
|
|
396
|
-
},
|
|
356
|
+
attributeName: 'height',
|
|
357
|
+
from: 0,
|
|
358
|
+
to: item.height,
|
|
359
|
+
dur: `${this.autoDrawDuration}ms`,
|
|
360
|
+
fill: 'freeze',
|
|
397
361
|
}) : undefined as never,
|
|
398
362
|
])
|
|
399
363
|
}))
|
|
400
364
|
},
|
|
401
365
|
genTrend () {
|
|
402
366
|
return h('svg', this.setTextColor(this.color, {
|
|
403
|
-
attrs
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
viewBox: `0 0 ${this.width} ${this.totalHeight}`,
|
|
408
|
-
},
|
|
367
|
+
...this.$attrs,
|
|
368
|
+
display: 'block',
|
|
369
|
+
'stroke-width': this._lineWidth || 1,
|
|
370
|
+
viewBox: `0 0 ${this.width} ${this.totalHeight}`,
|
|
409
371
|
}), [
|
|
410
372
|
this.genGradient(),
|
|
411
373
|
this.hasLabels && this.genLabels(-(this._lineWidth / 2)),
|
|
@@ -4,24 +4,22 @@ import VSparkline from '../VSparkline'
|
|
|
4
4
|
// Utilities
|
|
5
5
|
import {
|
|
6
6
|
mount,
|
|
7
|
-
|
|
7
|
+
enableAutoUnmount,
|
|
8
8
|
} from '@vue/test-utils'
|
|
9
|
+
import { nextTick } from 'vue'
|
|
9
10
|
|
|
10
11
|
describe('VSparkline.ts', () => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
}
|
|
20
|
-
})
|
|
12
|
+
enableAutoUnmount(afterEach)
|
|
13
|
+
|
|
14
|
+
const mountFunction = (options = {}) => {
|
|
15
|
+
return mount(VSparkline, {
|
|
16
|
+
...options,
|
|
17
|
+
})
|
|
18
|
+
}
|
|
21
19
|
|
|
22
20
|
it('should render component and match a snapshot', async () => {
|
|
23
21
|
const wrapper = mountFunction({
|
|
24
|
-
|
|
22
|
+
props: {
|
|
25
23
|
value: [1, 7, 42],
|
|
26
24
|
},
|
|
27
25
|
})
|
|
@@ -31,7 +29,7 @@ describe('VSparkline.ts', () => {
|
|
|
31
29
|
|
|
32
30
|
it('should render component with padding and match a snapshot', async () => {
|
|
33
31
|
const wrapper = mountFunction({
|
|
34
|
-
|
|
32
|
+
props: {
|
|
35
33
|
value: [1, 7, 42],
|
|
36
34
|
padding: 20,
|
|
37
35
|
},
|
|
@@ -42,7 +40,7 @@ describe('VSparkline.ts', () => {
|
|
|
42
40
|
|
|
43
41
|
it('should render smooth component and match a snapshot', async () => {
|
|
44
42
|
const wrapper = mountFunction({
|
|
45
|
-
|
|
43
|
+
props: {
|
|
46
44
|
value: [1, 7, 42],
|
|
47
45
|
smooth: 20,
|
|
48
46
|
},
|
|
@@ -53,7 +51,7 @@ describe('VSparkline.ts', () => {
|
|
|
53
51
|
|
|
54
52
|
it('should render component with line width and match a snapshot', async () => {
|
|
55
53
|
const wrapper = mountFunction({
|
|
56
|
-
|
|
54
|
+
props: {
|
|
57
55
|
value: [1, 7, 42],
|
|
58
56
|
lineWidth: 42,
|
|
59
57
|
},
|
|
@@ -64,7 +62,7 @@ describe('VSparkline.ts', () => {
|
|
|
64
62
|
|
|
65
63
|
it('should render component with gradient and match a snapshot', async () => {
|
|
66
64
|
const wrapper = mountFunction({
|
|
67
|
-
|
|
65
|
+
props: {
|
|
68
66
|
value: [1, 7, 42],
|
|
69
67
|
gradient: ['#000', 'red', 'rgba(80, 160, 240, 0.5)'],
|
|
70
68
|
},
|
|
@@ -75,7 +73,7 @@ describe('VSparkline.ts', () => {
|
|
|
75
73
|
|
|
76
74
|
it('should render component with string labels and match a snapshot', async () => {
|
|
77
75
|
const wrapper = mountFunction({
|
|
78
|
-
|
|
76
|
+
props: {
|
|
79
77
|
showLabels: true,
|
|
80
78
|
value: [1, 7, 42],
|
|
81
79
|
},
|
|
@@ -83,7 +81,7 @@ describe('VSparkline.ts', () => {
|
|
|
83
81
|
|
|
84
82
|
expect(wrapper.html()).toMatchSnapshot()
|
|
85
83
|
|
|
86
|
-
wrapper.setProps({
|
|
84
|
+
await wrapper.setProps({
|
|
87
85
|
value: [
|
|
88
86
|
{
|
|
89
87
|
value: 2,
|
|
@@ -99,7 +97,7 @@ describe('VSparkline.ts', () => {
|
|
|
99
97
|
|
|
100
98
|
expect(wrapper.html()).toMatchSnapshot()
|
|
101
99
|
|
|
102
|
-
wrapper.setProps({
|
|
100
|
+
await wrapper.setProps({
|
|
103
101
|
labels: ['foo', 'bar', 'baz'],
|
|
104
102
|
})
|
|
105
103
|
|
|
@@ -108,7 +106,7 @@ describe('VSparkline.ts', () => {
|
|
|
108
106
|
|
|
109
107
|
it('should render component with bars and match a snapshot', async () => {
|
|
110
108
|
const wrapper = mountFunction({
|
|
111
|
-
|
|
109
|
+
props: {
|
|
112
110
|
value: [1, 7, 42],
|
|
113
111
|
type: 'bar',
|
|
114
112
|
},
|
|
@@ -119,7 +117,7 @@ describe('VSparkline.ts', () => {
|
|
|
119
117
|
|
|
120
118
|
it('should render component with bars and negative and match a snapshot', async () => {
|
|
121
119
|
const wrapper = mountFunction({
|
|
122
|
-
|
|
120
|
+
props: {
|
|
123
121
|
value: [-1, 1, 7, 42],
|
|
124
122
|
type: 'bar',
|
|
125
123
|
},
|
|
@@ -130,7 +128,7 @@ describe('VSparkline.ts', () => {
|
|
|
130
128
|
|
|
131
129
|
it('should render component with bars and gradient and match a snapshot', async () => {
|
|
132
130
|
const wrapper = mountFunction({
|
|
133
|
-
|
|
131
|
+
props: {
|
|
134
132
|
value: [1, 7, 42],
|
|
135
133
|
gradient: ['#000', 'red', 'rgba(80, 160, 240, 0.5)'],
|
|
136
134
|
type: 'bar',
|
|
@@ -142,7 +140,7 @@ describe('VSparkline.ts', () => {
|
|
|
142
140
|
|
|
143
141
|
it('should render component with bars and labels and match a snapshot', async () => {
|
|
144
142
|
const wrapper = mountFunction({
|
|
145
|
-
|
|
143
|
+
props: {
|
|
146
144
|
value: [1, 7, 42],
|
|
147
145
|
labels: ['Value 1', 'Value 2', 'Value 3'],
|
|
148
146
|
type: 'bar',
|
|
@@ -154,7 +152,7 @@ describe('VSparkline.ts', () => {
|
|
|
154
152
|
|
|
155
153
|
it('should render component with bars and auto-line-width and match a snapshot', async () => {
|
|
156
154
|
const wrapper = mountFunction({
|
|
157
|
-
|
|
155
|
+
props: {
|
|
158
156
|
value: [1, 7, 42],
|
|
159
157
|
type: 'bar',
|
|
160
158
|
autoLineWidth: true,
|
|
@@ -166,7 +164,7 @@ describe('VSparkline.ts', () => {
|
|
|
166
164
|
|
|
167
165
|
it('should render component with bars and line width and match a snapshot', async () => {
|
|
168
166
|
const wrapper = mountFunction({
|
|
169
|
-
|
|
167
|
+
props: {
|
|
170
168
|
value: [1, 7, 42],
|
|
171
169
|
type: 'bar',
|
|
172
170
|
lineWidth: 8,
|
|
@@ -178,7 +176,7 @@ describe('VSparkline.ts', () => {
|
|
|
178
176
|
|
|
179
177
|
it('should render component with bars and custom padding and match a snapshot', async () => {
|
|
180
178
|
const wrapper = mountFunction({
|
|
181
|
-
|
|
179
|
+
props: {
|
|
182
180
|
value: [1, 7, 42],
|
|
183
181
|
type: 'bar',
|
|
184
182
|
padding: 12,
|
|
@@ -190,7 +188,7 @@ describe('VSparkline.ts', () => {
|
|
|
190
188
|
|
|
191
189
|
it('should render component with bars and auto-line-width with custom padding and match a snapshot', async () => {
|
|
192
190
|
const wrapper = mountFunction({
|
|
193
|
-
|
|
191
|
+
props: {
|
|
194
192
|
value: [1, 7, 42],
|
|
195
193
|
type: 'bar',
|
|
196
194
|
autoLineWidth: true,
|
|
@@ -203,7 +201,7 @@ describe('VSparkline.ts', () => {
|
|
|
203
201
|
|
|
204
202
|
it('should render component with bars and custom label size and match a snapshot', async () => {
|
|
205
203
|
const wrapper = mountFunction({
|
|
206
|
-
|
|
204
|
+
props: {
|
|
207
205
|
value: [1, 7, 42],
|
|
208
206
|
labels: ['Value 1', 'Value 2', 'Value 3'],
|
|
209
207
|
labelSize: 15,
|
|
@@ -216,7 +214,7 @@ describe('VSparkline.ts', () => {
|
|
|
216
214
|
|
|
217
215
|
it('should render component with trend and equal values and match a snapshot', async () => {
|
|
218
216
|
const wrapper = mountFunction({
|
|
219
|
-
|
|
217
|
+
props: {
|
|
220
218
|
value: [1, 1, 1],
|
|
221
219
|
type: 'trend',
|
|
222
220
|
},
|
|
@@ -227,7 +225,7 @@ describe('VSparkline.ts', () => {
|
|
|
227
225
|
|
|
228
226
|
it('should render component with label size and match a snapshot', async () => {
|
|
229
227
|
const wrapper = mountFunction({
|
|
230
|
-
|
|
228
|
+
props: {
|
|
231
229
|
value: [1, 7, 42],
|
|
232
230
|
showLabels: true,
|
|
233
231
|
labelSize: 14,
|
|
@@ -239,7 +237,7 @@ describe('VSparkline.ts', () => {
|
|
|
239
237
|
|
|
240
238
|
it('should position labels correctly', async () => {
|
|
241
239
|
const wrapper = mountFunction({
|
|
242
|
-
|
|
240
|
+
props: {
|
|
243
241
|
value: [1, 7, 42],
|
|
244
242
|
showLabels: true,
|
|
245
243
|
lineWidth: 20,
|
|
@@ -251,7 +249,7 @@ describe('VSparkline.ts', () => {
|
|
|
251
249
|
|
|
252
250
|
it('should render component with bars and correct bar lengths', async () => {
|
|
253
251
|
const wrapper = mountFunction({
|
|
254
|
-
|
|
252
|
+
props: {
|
|
255
253
|
value: [1, 2],
|
|
256
254
|
type: 'bar',
|
|
257
255
|
},
|
|
@@ -259,17 +257,17 @@ describe('VSparkline.ts', () => {
|
|
|
259
257
|
|
|
260
258
|
expect(wrapper.html()).toMatchSnapshot()
|
|
261
259
|
|
|
262
|
-
wrapper.setProps({
|
|
260
|
+
await wrapper.setProps({
|
|
263
261
|
value: [-1, -2],
|
|
264
262
|
})
|
|
265
|
-
await
|
|
263
|
+
await nextTick()
|
|
266
264
|
|
|
267
265
|
expect(wrapper.html()).toMatchSnapshot()
|
|
268
266
|
})
|
|
269
267
|
|
|
270
268
|
it('should render bar component with all values 0', () => {
|
|
271
269
|
const wrapper = mountFunction({
|
|
272
|
-
|
|
270
|
+
props: {
|
|
273
271
|
value: [0, 0, 0],
|
|
274
272
|
type: 'bar',
|
|
275
273
|
},
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {TransitionGroup, h} from 'vue'
|
|
1
|
+
import { TransitionGroup, h, VNode, VNodeData, withDirectives } from 'vue'
|
|
2
2
|
// Styles
|
|
3
3
|
import './VSpeedDial.sass'
|
|
4
4
|
|
|
@@ -12,7 +12,7 @@ import ClickOutside from '../../directives/click-outside'
|
|
|
12
12
|
|
|
13
13
|
// Types
|
|
14
14
|
import mixins from '../../util/mixins'
|
|
15
|
-
|
|
15
|
+
|
|
16
16
|
import { Prop } from 'vue/types/options'
|
|
17
17
|
import { getSlot } from '../../util/helpers'
|
|
18
18
|
|
|
@@ -20,8 +20,6 @@ import { getSlot } from '../../util/helpers'
|
|
|
20
20
|
export default mixins(Positionable, Toggleable, Transitionable).extend({
|
|
21
21
|
name: 'v-speed-dial',
|
|
22
22
|
|
|
23
|
-
directives: { ClickOutside },
|
|
24
|
-
|
|
25
23
|
props: {
|
|
26
24
|
direction: {
|
|
27
25
|
type: String as Prop<'top' | 'right' | 'bottom' | 'left'>,
|
|
@@ -37,6 +35,8 @@ export default mixins(Positionable, Toggleable, Transitionable).extend({
|
|
|
37
35
|
},
|
|
38
36
|
},
|
|
39
37
|
|
|
38
|
+
emits: ['update:modelValue'],
|
|
39
|
+
|
|
40
40
|
computed: {
|
|
41
41
|
classes (): object {
|
|
42
42
|
return {
|
|
@@ -57,24 +57,19 @@ export default mixins(Positionable, Toggleable, Transitionable).extend({
|
|
|
57
57
|
let children: VNode[] = []
|
|
58
58
|
const data: VNodeData = {
|
|
59
59
|
class: this.classes,
|
|
60
|
-
|
|
61
|
-
name: 'click-outside',
|
|
62
|
-
value: () => (this.isActive = false),
|
|
63
|
-
}],
|
|
64
|
-
on: {
|
|
65
|
-
click: () => (this.isActive = !this.isActive),
|
|
66
|
-
},
|
|
60
|
+
onClick: () => (this.isActive = !this.isActive),
|
|
67
61
|
}
|
|
68
62
|
|
|
69
63
|
if (this.openOnHover) {
|
|
70
|
-
data.
|
|
71
|
-
data.
|
|
64
|
+
data.onMouseenter = () => (this.isActive = true)
|
|
65
|
+
data.onMouseleave = () => (this.isActive = false)
|
|
72
66
|
}
|
|
73
67
|
|
|
74
68
|
if (this.isActive) {
|
|
75
69
|
let btnCount = 0
|
|
76
70
|
children = (getSlot(this) || []).map((b, i) => {
|
|
77
|
-
|
|
71
|
+
const componentName = b.type && typeof b.type === 'object' && 'name' in b.type ? b.type.name : null
|
|
72
|
+
if (b.tag && (componentName === 'v-btn' || componentName === 'v-tooltip')) {
|
|
78
73
|
btnCount++
|
|
79
74
|
return h('div', {
|
|
80
75
|
style: {
|
|
@@ -97,6 +92,8 @@ export default mixins(Positionable, Toggleable, Transitionable).extend({
|
|
|
97
92
|
tag: 'div',
|
|
98
93
|
}, children)
|
|
99
94
|
|
|
100
|
-
return h('div', data, [getSlot(this, 'activator'), list])
|
|
95
|
+
return withDirectives(h('div', data, [getSlot(this, 'activator'), list]), [
|
|
96
|
+
[ClickOutside, () => (this.isActive = false)],
|
|
97
|
+
])
|
|
101
98
|
},
|
|
102
99
|
})
|
|
@@ -7,13 +7,16 @@ import VTooltip from '../../VTooltip/VTooltip'
|
|
|
7
7
|
import {
|
|
8
8
|
mount,
|
|
9
9
|
Wrapper,
|
|
10
|
+
enableAutoUnmount,
|
|
10
11
|
} from '@vue/test-utils'
|
|
11
|
-
import {
|
|
12
|
+
import { h } from 'vue'
|
|
12
13
|
|
|
13
14
|
describe('VSpeedDial.ts', () => {
|
|
14
15
|
type Instance = InstanceType<typeof VSpeedDial>
|
|
15
16
|
let mountFunction: (options?: object) => Wrapper<Instance>
|
|
16
17
|
|
|
18
|
+
enableAutoUnmount(afterEach)
|
|
19
|
+
|
|
17
20
|
beforeEach(() => {
|
|
18
21
|
mountFunction = (options = {}) => {
|
|
19
22
|
return mount(VSpeedDial, {
|
|
@@ -31,7 +34,7 @@ describe('VSpeedDial.ts', () => {
|
|
|
31
34
|
it('should render active component and match snapshot', () => {
|
|
32
35
|
const wrapper = mountFunction({
|
|
33
36
|
slots: {
|
|
34
|
-
default:
|
|
37
|
+
default: () => h('span', 'test'),
|
|
35
38
|
},
|
|
36
39
|
data: () => ({ isActive: true }),
|
|
37
40
|
})
|
|
@@ -41,7 +44,7 @@ describe('VSpeedDial.ts', () => {
|
|
|
41
44
|
|
|
42
45
|
it('should render component with custom direction and match snapshot', () => {
|
|
43
46
|
const wrapper = mountFunction({
|
|
44
|
-
|
|
47
|
+
props: {
|
|
45
48
|
direction: 'right',
|
|
46
49
|
},
|
|
47
50
|
})
|
|
@@ -49,37 +52,42 @@ describe('VSpeedDial.ts', () => {
|
|
|
49
52
|
expect(wrapper.html()).toMatchSnapshot()
|
|
50
53
|
})
|
|
51
54
|
|
|
52
|
-
it('should activate on click', () => {
|
|
55
|
+
it('should activate on click', async () => {
|
|
53
56
|
const wrapper = mountFunction()
|
|
54
57
|
|
|
55
58
|
expect(wrapper.vm.isActive).toBe(false)
|
|
56
|
-
wrapper.trigger('click')
|
|
59
|
+
await wrapper.trigger('click')
|
|
57
60
|
expect(wrapper.vm.isActive).toBe(true)
|
|
58
61
|
})
|
|
59
62
|
|
|
60
|
-
it('should activate on hover', () => {
|
|
63
|
+
it('should activate on hover', async () => {
|
|
61
64
|
const wrapper = mountFunction({
|
|
62
|
-
|
|
65
|
+
props: {
|
|
63
66
|
openOnHover: true,
|
|
64
67
|
},
|
|
65
68
|
})
|
|
66
69
|
|
|
67
70
|
expect(wrapper.vm.isActive).toBe(false)
|
|
68
|
-
wrapper.trigger('mouseenter')
|
|
71
|
+
await wrapper.trigger('mouseenter')
|
|
69
72
|
expect(wrapper.vm.isActive).toBe(true)
|
|
70
|
-
wrapper.trigger('mouseleave')
|
|
73
|
+
await wrapper.trigger('mouseleave')
|
|
71
74
|
expect(wrapper.vm.isActive).toBe(false)
|
|
72
75
|
})
|
|
73
76
|
|
|
74
|
-
it('should
|
|
77
|
+
it('should render v-btn and v-tooltip components when active', () => {
|
|
75
78
|
const wrapper = mount(VSpeedDial, {
|
|
76
79
|
slots: {
|
|
77
|
-
default: [VBtn, VTooltip],
|
|
80
|
+
default: () => [h(VBtn, { key: 'btn' }), h(VTooltip, { key: 'tooltip' })],
|
|
78
81
|
},
|
|
79
82
|
data: () => ({ isActive: true }),
|
|
80
83
|
})
|
|
81
84
|
|
|
82
|
-
expect(wrapper.
|
|
83
|
-
expect(wrapper.
|
|
85
|
+
expect(wrapper.findComponent(VBtn).exists()).toBe(true)
|
|
86
|
+
expect(wrapper.findComponent(VTooltip).exists()).toBe(true)
|
|
87
|
+
|
|
88
|
+
const speedDialList = wrapper.find('.v-speed-dial__list')
|
|
89
|
+
expect(speedDialList.exists()).toBe(true)
|
|
90
|
+
expect(speedDialList.findComponent(VBtn).exists()).toBe(true)
|
|
91
|
+
expect(speedDialList.findComponent(VTooltip).exists()).toBe(true)
|
|
84
92
|
})
|
|
85
93
|
})
|
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`VSpeedDial.ts should render active component and match snapshot 1`] = `
|
|
4
4
|
<div class="v-speed-dial v-speed-dial--direction-top v-speed-dial--is-active">
|
|
5
|
-
<
|
|
5
|
+
<div class="v-speed-dial__list">
|
|
6
6
|
<span>
|
|
7
7
|
test
|
|
8
8
|
</span>
|
|
9
|
-
</
|
|
9
|
+
</div>
|
|
10
10
|
</div>
|
|
11
11
|
`;
|
|
12
12
|
|
|
13
13
|
exports[`VSpeedDial.ts should render component and match snapshot 1`] = `
|
|
14
14
|
<div class="v-speed-dial v-speed-dial--direction-top">
|
|
15
|
-
<
|
|
16
|
-
</
|
|
15
|
+
<div class="v-speed-dial__list">
|
|
16
|
+
</div>
|
|
17
17
|
</div>
|
|
18
18
|
`;
|
|
19
19
|
|
|
20
20
|
exports[`VSpeedDial.ts should render component with custom direction and match snapshot 1`] = `
|
|
21
21
|
<div class="v-speed-dial v-speed-dial--direction-right">
|
|
22
|
-
<
|
|
23
|
-
</
|
|
22
|
+
<div class="v-speed-dial__list">
|
|
23
|
+
</div>
|
|
24
24
|
</div>
|
|
25
25
|
`;
|