@dimailn/vuetify 2.7.2-alpha27 → 2.7.2-alpha29
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 +1493 -325
- 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 +38 -9
- package/es5/components/VAlert/VAlert.js.map +1 -1
- package/es5/components/VAutocomplete/VAutocomplete.js +1 -0
- package/es5/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/es5/components/VBadge/VBadge.js +28 -0
- package/es5/components/VBadge/VBadge.js.map +1 -1
- package/es5/components/VBanner/VBanner.js +34 -6
- package/es5/components/VBanner/VBanner.js.map +1 -1
- package/es5/components/VBottomNavigation/VBottomNavigation.js +25 -0
- package/es5/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/es5/components/VCarousel/VCarousel.js +28 -3
- package/es5/components/VCarousel/VCarousel.js.map +1 -1
- package/es5/components/VCheckbox/VSimpleCheckbox.js +30 -2
- package/es5/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/es5/components/VChip/VChip.js +1 -0
- package/es5/components/VChip/VChip.js.map +1 -1
- package/es5/components/VColorPicker/VColorPicker.js +30 -2
- package/es5/components/VColorPicker/VColorPicker.js.map +1 -1
- package/es5/components/VCombobox/VCombobox.js +1 -0
- package/es5/components/VCombobox/VCombobox.js.map +1 -1
- package/es5/components/VDataIterator/VDataFooter.js +16 -7
- package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
- package/es5/components/VDataIterator/VDataIterator.js +42 -47
- 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 +10 -18
- package/es5/components/VDataTable/VDataTable.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeader.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js +3 -0
- package/es5/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/es5/components/VDataTable/VDataTableHeaderMobile.js +28 -37
- package/es5/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/es5/components/VDataTable/VEditDialog.js +3 -4
- 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 +5 -5
- package/es5/components/VDataTable/VVirtualTable.js.map +1 -1
- package/es5/components/VDataTable/mixins/header.js +1 -1
- package/es5/components/VDataTable/mixins/header.js.map +1 -1
- package/es5/components/VDatePicker/VDatePicker.js +21 -9
- package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerHeader.js +24 -8
- package/es5/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerTitle.js +33 -8
- package/es5/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/es5/components/VDatePicker/VDatePickerYears.js +38 -13
- package/es5/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/es5/components/VDatePicker/mixins/date-picker-table.js +33 -17
- package/es5/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/es5/components/VInput/VInput.js +36 -8
- package/es5/components/VInput/VInput.js.map +1 -1
- package/es5/components/VList/VListGroup.js +47 -21
- package/es5/components/VList/VListGroup.js.map +1 -1
- package/es5/components/VList/VListItem.js +33 -6
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +56 -31
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VMessages/VMessages.js +30 -7
- package/es5/components/VMessages/VMessages.js.map +1 -1
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js +36 -9
- package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +36 -0
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VOverlay/VOverlay.js +28 -0
- package/es5/components/VOverlay/VOverlay.js.map +1 -1
- package/es5/components/VPagination/VPagination.js +30 -6
- package/es5/components/VPagination/VPagination.js.map +1 -1
- package/es5/components/VProgressLinear/VProgressLinear.js +28 -0
- package/es5/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/es5/components/VRadioGroup/VRadioGroup.js +28 -0
- package/es5/components/VRadioGroup/VRadioGroup.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 +112 -84
- package/es5/components/VSelect/VSelect.js.map +1 -1
- package/es5/components/VSelect/VSelectList.js +73 -19
- package/es5/components/VSelect/VSelectList.js.map +1 -1
- package/es5/components/VSlider/VSlider.js +42 -16
- package/es5/components/VSlider/VSlider.js.map +1 -1
- package/es5/components/VSpeedDial/VSpeedDial.js +10 -8
- package/es5/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/es5/components/VTabs/VTabs.js +45 -17
- package/es5/components/VTabs/VTabs.js.map +1 -1
- package/es5/components/VTooltip/VTooltip.js +3 -3
- package/es5/components/VTooltip/VTooltip.js.map +1 -1
- package/es5/components/VTreeview/VTreeview.js +0 -7
- package/es5/components/VTreeview/VTreeview.js.map +1 -1
- package/es5/framework.js +1 -1
- package/es5/mixins/routable/index.js +5 -2
- package/es5/mixins/routable/index.js.map +1 -1
- package/es5/mixins/validatable/index.js +24 -0
- package/es5/mixins/validatable/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 +5 -1
- package/es5/util/helpers.js.map +1 -1
- package/lib/components/VAlert/VAlert.js +12 -7
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VAutocomplete/VAutocomplete.js +1 -0
- package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
- package/lib/components/VBadge/VBadge.js +11 -0
- package/lib/components/VBadge/VBadge.js.map +1 -1
- package/lib/components/VBanner/VBanner.js +11 -0
- package/lib/components/VBanner/VBanner.js.map +1 -1
- package/lib/components/VBottomNavigation/VBottomNavigation.js +7 -0
- package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
- package/lib/components/VCarousel/VCarousel.js +7 -0
- package/lib/components/VCarousel/VCarousel.js.map +1 -1
- package/lib/components/VCheckbox/VSimpleCheckbox.js +11 -0
- package/lib/components/VCheckbox/VSimpleCheckbox.js.map +1 -1
- package/lib/components/VChip/VChip.js +1 -0
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VColorPicker/VColorPicker.js +12 -1
- package/lib/components/VColorPicker/VColorPicker.js.map +1 -1
- package/lib/components/VCombobox/VCombobox.js +1 -0
- package/lib/components/VCombobox/VCombobox.js.map +1 -1
- package/lib/components/VDataIterator/VDataFooter.js +14 -7
- package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
- package/lib/components/VDataIterator/VDataIterator.js +26 -31
- 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 +8 -15
- package/lib/components/VDataTable/VDataTable.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeader.js +1 -1
- package/lib/components/VDataTable/VDataTableHeader.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js +3 -0
- package/lib/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
- package/lib/components/VDataTable/VDataTableHeaderMobile.js +17 -25
- package/lib/components/VDataTable/VDataTableHeaderMobile.js.map +1 -1
- package/lib/components/VDataTable/VEditDialog.js +3 -4
- 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 +1 -2
- package/lib/components/VDataTable/VVirtualTable.js.map +1 -1
- package/lib/components/VDataTable/mixins/header.js +1 -1
- package/lib/components/VDataTable/mixins/header.js.map +1 -1
- package/lib/components/VDatePicker/VDatePicker.js +7 -1
- package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js +12 -1
- package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerTitle.js +11 -0
- package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
- package/lib/components/VDatePicker/VDatePickerYears.js +11 -1
- package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.js +12 -1
- package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
- package/lib/components/VInput/VInput.js +13 -3
- package/lib/components/VInput/VInput.js.map +1 -1
- package/lib/components/VList/VListGroup.js +16 -8
- package/lib/components/VList/VListGroup.js.map +1 -1
- package/lib/components/VList/VListItem.js +12 -3
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +15 -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 +11 -2
- package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +48 -0
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VOverlay/VOverlay.js +11 -0
- package/lib/components/VOverlay/VOverlay.js.map +1 -1
- package/lib/components/VPagination/VPagination.js +11 -0
- package/lib/components/VPagination/VPagination.js.map +1 -1
- package/lib/components/VProgressLinear/VProgressLinear.js +11 -0
- package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
- package/lib/components/VRadioGroup/VRadioGroup.js +11 -0
- package/lib/components/VRadioGroup/VRadioGroup.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 +52 -36
- package/lib/components/VSelect/VSelect.js.map +1 -1
- package/lib/components/VSelect/VSelectList.js +32 -8
- package/lib/components/VSelect/VSelectList.js.map +1 -1
- package/lib/components/VSlider/VSlider.js +11 -1
- package/lib/components/VSlider/VSlider.js.map +1 -1
- package/lib/components/VSpeedDial/VSpeedDial.js +7 -7
- package/lib/components/VSpeedDial/VSpeedDial.js.map +1 -1
- package/lib/components/VTabs/VTabs.js +11 -0
- package/lib/components/VTabs/VTabs.js.map +1 -1
- package/lib/components/VTooltip/VTooltip.js +3 -3
- package/lib/components/VTooltip/VTooltip.js.map +1 -1
- package/lib/components/VTreeview/VTreeview.js +0 -6
- package/lib/components/VTreeview/VTreeview.js.map +1 -1
- package/lib/framework.js +1 -1
- package/lib/mixins/routable/index.js +5 -2
- package/lib/mixins/routable/index.js.map +1 -1
- package/lib/mixins/validatable/index.js +7 -1
- package/lib/mixins/validatable/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 +5 -1
- package/lib/util/helpers.js.map +1 -1
- package/package.json +1 -1
- package/src/components/VAlert/VAlert.ts +17 -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/__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 +22 -0
- 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/VBadge/VBadge.ts +13 -0
- package/src/components/VBanner/VBanner.ts +13 -0
- package/src/components/VBanner/__tests__/VBanner.spec.ts +35 -36
- package/src/components/VBanner/__tests__/__snapshots__/VBanner.spec.ts.snap +1 -1
- package/src/components/VBottomNavigation/VBottomNavigation.ts +10 -0
- package/src/components/VBtn/__tests__/VBtn.spec.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 +11 -0
- package/src/components/VCheckbox/VSimpleCheckbox.ts +13 -0
- package/src/components/VCheckbox/__tests__/VCheckbox.spec.ts +157 -152
- package/src/components/VChip/VChip.ts +1 -0
- 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 +13 -0
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +35 -35
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +10 -10
- package/src/components/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/__tests__/VData.spec.ts +69 -90
- package/src/components/VDataIterator/VDataFooter.ts +14 -9
- package/src/components/VDataIterator/VDataIterator.ts +46 -34
- 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 +8 -15
- package/src/components/VDataTable/VDataTableHeader.ts +2 -2
- package/src/components/VDataTable/VDataTableHeaderDesktop.ts +4 -0
- package/src/components/VDataTable/VDataTableHeaderMobile.ts +16 -25
- package/src/components/VDataTable/VEditDialog.ts +3 -3
- package/src/components/VDataTable/VSimpleTable.ts +2 -3
- package/src/components/VDataTable/VVirtualTable.ts +1 -2
- 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 +1 -1
- package/src/components/VDatePicker/VDatePicker.ts +11 -1
- package/src/components/VDatePicker/VDatePickerHeader.ts +13 -0
- package/src/components/VDatePicker/VDatePickerTitle.ts +12 -0
- package/src/components/VDatePicker/VDatePickerYears.ts +13 -0
- package/src/components/VDatePicker/mixins/date-picker-table.ts +13 -0
- 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/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/VIcon/__tests__/VIcon.spec.ts +176 -70
- package/src/components/VImg/__tests__/__snapshots__/VImg.spec.ts.snap +55 -55
- package/src/components/VInput/VInput.ts +18 -5
- 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/__tests__/VLazy.spec.ts +5 -4
- package/src/components/VLazy/__tests__/__snapshots__/VLazy.spec.ts.snap +2 -1
- package/src/components/VList/VListGroup.ts +22 -10
- package/src/components/VList/VListItem.ts +19 -4
- 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 +22 -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 +21 -11
- package/src/components/VOtpInput/VOtpInput.ts +37 -1
- package/src/components/VOverlay/VOverlay.ts +12 -0
- package/src/components/VPagination/VPagination.ts +23 -9
- package/src/components/VParallax/__tests__/__snapshots__/VParallax.spec.ts.snap +8 -8
- package/src/components/VPicker/__tests__/__snapshots__/VPicker.spec.ts.snap +2 -2
- package/src/components/VProgressLinear/VProgressLinear.ts +13 -0
- package/src/components/VRadioGroup/VRadioGroup.ts +14 -0
- 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 +60 -43
- package/src/components/VSelect/VSelectList.ts +33 -12
- 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/VSlider/VSlider.ts +14 -1
- package/src/components/VSparkline/__tests__/VSparkline.spec.ts +33 -35
- package/src/components/VSpeedDial/VSpeedDial.ts +7 -8
- 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/__tests__/VStepper.spec.ts +4 -1
- package/src/components/VStepper/__tests__/VStepperContent.spec.ts +104 -110
- package/src/components/VStepper/__tests__/VStepperStep.spec.ts +51 -44
- package/src/components/VSwitch/__tests__/VSwitch.spec.ts +30 -37
- package/src/components/VTabs/VTabs.ts +14 -0
- package/src/components/VTabs/__tests__/VTabs.spec.ts +0 -7
- package/src/components/VTextField/__tests__/VTextField.spec.ts +342 -246
- package/src/components/VTextarea/__tests__/VTextarea.spec.ts +112 -35
- package/src/components/VTimePicker/__tests__/__snapshots__/VTimePicker.spec.ts.snap +0 -40
- package/src/components/VToolbar/__tests__/VToolbar.spec.ts +49 -25
- package/src/components/VTooltip/VTooltip.ts +3 -3
- package/src/components/VTooltip/__tests__/__snapshots__/VTooltip.spec.ts.snap +34 -18
- package/src/components/VTreeview/VTreeview.ts +0 -5
- package/src/mixins/routable/index.ts +6 -4
- package/src/mixins/validatable/index.ts +11 -1
- package/src/util/__tests__/console.spec.ts +124 -11
- package/src/util/__tests__/helpers.spec.ts +59 -31
- package/src/util/console.ts +43 -24
- package/src/util/helpers.ts +8 -4
|
@@ -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
|
},
|
|
@@ -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
|
-
emits: ['update:modelValue'],
|
|
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,20 +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
|
-
click: () => (this.isActive = !this.isActive),
|
|
62
|
-
},
|
|
60
|
+
onClick: () => (this.isActive = !this.isActive),
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
if (this.openOnHover) {
|
|
66
|
-
data.
|
|
67
|
-
data.
|
|
64
|
+
data.onMouseenter = () => (this.isActive = true)
|
|
65
|
+
data.onMouseleave = () => (this.isActive = false)
|
|
68
66
|
}
|
|
69
67
|
|
|
70
68
|
if (this.isActive) {
|
|
71
69
|
let btnCount = 0
|
|
72
70
|
children = (getSlot(this) || []).map((b, i) => {
|
|
73
|
-
|
|
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')) {
|
|
74
73
|
btnCount++
|
|
75
74
|
return h('div', {
|
|
76
75
|
style: {
|
|
@@ -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
|
`;
|
|
@@ -6,12 +6,15 @@ import {
|
|
|
6
6
|
mount,
|
|
7
7
|
MountOptions,
|
|
8
8
|
Wrapper,
|
|
9
|
+
enableAutoUnmount,
|
|
9
10
|
} from '@vue/test-utils'
|
|
10
11
|
|
|
11
12
|
describe('VStepper.ts', () => {
|
|
12
13
|
type Instance = InstanceType<typeof VStepper>
|
|
13
14
|
let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance>
|
|
14
15
|
|
|
16
|
+
enableAutoUnmount(afterEach)
|
|
17
|
+
|
|
15
18
|
beforeEach(() => {
|
|
16
19
|
mountFunction = (options = {}) => {
|
|
17
20
|
return mount(VStepper, {
|
|
@@ -23,7 +26,7 @@ describe('VStepper.ts', () => {
|
|
|
23
26
|
// https://github.com/vuetifyjs/vuetify/issues/10096
|
|
24
27
|
it('should accept 0 as a step value', () => {
|
|
25
28
|
const wrapper = mountFunction({
|
|
26
|
-
|
|
29
|
+
props: { modelValue: 0 },
|
|
27
30
|
})
|
|
28
31
|
|
|
29
32
|
expect(wrapper.vm.internalValue).toBe(0)
|