@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
|
@@ -11,15 +11,15 @@ exports[`VEditDialog.ts should render 1`] = `
|
|
|
11
11
|
|
|
12
12
|
exports[`VEditDialog.ts should render actions 1`] = `
|
|
13
13
|
<div class="v-small-dialog__actions">
|
|
14
|
-
<button
|
|
15
|
-
|
|
14
|
+
<button class="v-btn v-btn--text theme--light v-size--default primary--text"
|
|
15
|
+
type="button"
|
|
16
16
|
>
|
|
17
17
|
<span class="v-btn__content">
|
|
18
18
|
Cancel
|
|
19
19
|
</span>
|
|
20
20
|
</button>
|
|
21
|
-
<button
|
|
22
|
-
|
|
21
|
+
<button class="v-btn v-btn--text theme--light v-size--default primary--text"
|
|
22
|
+
type="button"
|
|
23
23
|
>
|
|
24
24
|
<span class="v-btn__content">
|
|
25
25
|
Save
|
|
@@ -29,8 +29,8 @@ exports[`VEditDialog.ts should render actions 1`] = `
|
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
31
|
exports[`VEditDialog.ts should render button 1`] = `
|
|
32
|
-
<button
|
|
33
|
-
|
|
32
|
+
<button class="v-btn v-btn--text theme--light v-size--default primary--text"
|
|
33
|
+
type="button"
|
|
34
34
|
>
|
|
35
35
|
<span class="v-btn__content">
|
|
36
36
|
test
|
|
@@ -54,24 +54,28 @@ exports[`VSimpleTable.ts should render with custom height 1`] = `
|
|
|
54
54
|
|
|
55
55
|
exports[`VSimpleTable.ts should render with custom wrapper 1`] = `
|
|
56
56
|
<div class="v-data-table theme--light">
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
57
|
+
<div class="custom-wrapper"
|
|
58
|
+
data-test="custom-wrapper"
|
|
59
|
+
>
|
|
60
|
+
<table class="custom-table">
|
|
61
|
+
<tr>
|
|
62
|
+
<th>
|
|
63
|
+
Custom Header 1
|
|
64
|
+
</th>
|
|
65
|
+
<th>
|
|
66
|
+
Custom Header 2
|
|
67
|
+
</th>
|
|
68
|
+
</tr>
|
|
69
|
+
<tr>
|
|
70
|
+
<td>
|
|
71
|
+
Custom Data 1
|
|
72
|
+
</td>
|
|
73
|
+
<td>
|
|
74
|
+
Custom Data 2
|
|
75
|
+
</td>
|
|
76
|
+
</tr>
|
|
77
|
+
</table>
|
|
78
|
+
</div>
|
|
75
79
|
</div>
|
|
76
80
|
`;
|
|
77
81
|
|
|
@@ -2,12 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
exports[`VDataTable/header.ts should generate select 1`] = `
|
|
4
4
|
<div>
|
|
5
|
-
<div class="v-data-table__checkbox v-
|
|
5
|
+
<div class="v-simple-checkbox v-data-table__checkbox v-data-table__checkbox">
|
|
6
6
|
<div class="v-input--selection-controls__input">
|
|
7
7
|
<i aria-hidden="true"
|
|
8
|
-
class="v-icon notranslate
|
|
8
|
+
class="v-icon notranslate mdi mdi-checkbox-blank-outline theme--light"
|
|
9
9
|
>
|
|
10
|
-
$checkboxOff
|
|
11
10
|
</i>
|
|
12
11
|
<div class="v-input--selection-controls__ripple">
|
|
13
12
|
</div>
|
|
@@ -18,12 +17,11 @@ exports[`VDataTable/header.ts should generate select 1`] = `
|
|
|
18
17
|
|
|
19
18
|
exports[`VDataTable/header.ts should generate select 2`] = `
|
|
20
19
|
<div>
|
|
21
|
-
<div class="v-data-table__checkbox v-
|
|
20
|
+
<div class="v-simple-checkbox v-data-table__checkbox v-data-table__checkbox">
|
|
22
21
|
<div class="v-input--selection-controls__input">
|
|
23
22
|
<i aria-hidden="true"
|
|
24
|
-
class="v-icon notranslate
|
|
23
|
+
class="v-icon notranslate mdi mdi-checkbox-blank-outline theme--light"
|
|
25
24
|
>
|
|
26
|
-
$checkboxOn
|
|
27
25
|
</i>
|
|
28
26
|
<div class="v-input--selection-controls__ripple">
|
|
29
27
|
</div>
|
|
@@ -34,12 +32,11 @@ exports[`VDataTable/header.ts should generate select 2`] = `
|
|
|
34
32
|
|
|
35
33
|
exports[`VDataTable/header.ts should generate select 3`] = `
|
|
36
34
|
<div>
|
|
37
|
-
<div class="v-data-table__checkbox v-
|
|
35
|
+
<div class="v-simple-checkbox v-data-table__checkbox v-data-table__checkbox">
|
|
38
36
|
<div class="v-input--selection-controls__input">
|
|
39
37
|
<i aria-hidden="true"
|
|
40
|
-
class="v-icon notranslate
|
|
38
|
+
class="v-icon notranslate mdi mdi-checkbox-blank-outline theme--light"
|
|
41
39
|
>
|
|
42
|
-
$checkboxIndeterminate
|
|
43
40
|
</i>
|
|
44
41
|
<div class="v-input--selection-controls__ripple">
|
|
45
42
|
</div>
|
|
@@ -51,7 +48,7 @@ exports[`VDataTable/header.ts should generate select 3`] = `
|
|
|
51
48
|
exports[`VDataTable/header.ts should generate select scoped slot 1`] = `
|
|
52
49
|
<div>
|
|
53
50
|
<div class="test">
|
|
54
|
-
{"
|
|
51
|
+
{"modelValue":false,"indeterminate":false,"color":""}
|
|
55
52
|
</div>
|
|
56
53
|
</div>
|
|
57
54
|
`;
|
|
@@ -59,7 +56,7 @@ exports[`VDataTable/header.ts should generate select scoped slot 1`] = `
|
|
|
59
56
|
exports[`VDataTable/header.ts should generate select scoped slot 2`] = `
|
|
60
57
|
<div>
|
|
61
58
|
<div class="test">
|
|
62
|
-
{"
|
|
59
|
+
{"modelValue":false,"indeterminate":false,"color":""}
|
|
63
60
|
</div>
|
|
64
61
|
</div>
|
|
65
62
|
`;
|
|
@@ -67,14 +64,14 @@ exports[`VDataTable/header.ts should generate select scoped slot 2`] = `
|
|
|
67
64
|
exports[`VDataTable/header.ts should generate select scoped slot 3`] = `
|
|
68
65
|
<div>
|
|
69
66
|
<div class="test">
|
|
70
|
-
{"
|
|
67
|
+
{"modelValue":false,"indeterminate":false,"color":""}
|
|
71
68
|
</div>
|
|
72
69
|
</div>
|
|
73
70
|
`;
|
|
74
71
|
|
|
75
72
|
exports[`VDataTable/header.ts should generate sort icon 1`] = `
|
|
76
73
|
<i aria-hidden="true"
|
|
77
|
-
class="v-icon notranslate
|
|
74
|
+
class="v-icon notranslate mdi mdi-sort theme--light v-data-table-header__icon"
|
|
78
75
|
style="font-size: 18px;"
|
|
79
76
|
>
|
|
80
77
|
</i>
|
|
@@ -2,13 +2,18 @@ import Header from '../header'
|
|
|
2
2
|
import {
|
|
3
3
|
mount,
|
|
4
4
|
MountOptions,
|
|
5
|
-
|
|
5
|
+
VueWrapper,
|
|
6
|
+
enableAutoUnmount,
|
|
6
7
|
} from '@vue/test-utils'
|
|
8
|
+
import { h } from 'vue'
|
|
7
9
|
import { wrapInArray } from '../../../../util/helpers'
|
|
8
10
|
|
|
9
11
|
describe('VDataTable/header.ts', () => {
|
|
10
12
|
type Instance = InstanceType<typeof Header>
|
|
11
|
-
let mountFunction: (options?: MountOptions<Instance>) =>
|
|
13
|
+
let mountFunction: (options?: MountOptions<Instance>) => VueWrapper<Instance>
|
|
14
|
+
|
|
15
|
+
enableAutoUnmount(afterEach)
|
|
16
|
+
|
|
12
17
|
beforeEach(() => {
|
|
13
18
|
mountFunction = (options?: MountOptions<Instance>) => {
|
|
14
19
|
return mount(Header, {
|
|
@@ -26,7 +31,7 @@ describe('VDataTable/header.ts', () => {
|
|
|
26
31
|
|
|
27
32
|
it('should generate sort icon', async () => {
|
|
28
33
|
const wrapper = mountFunction({
|
|
29
|
-
|
|
34
|
+
props: {
|
|
30
35
|
sortIcon: 'mdi-sort',
|
|
31
36
|
},
|
|
32
37
|
render () {
|
|
@@ -39,7 +44,7 @@ describe('VDataTable/header.ts', () => {
|
|
|
39
44
|
|
|
40
45
|
it('should generate select', async () => {
|
|
41
46
|
const wrapper = mountFunction({
|
|
42
|
-
render (
|
|
47
|
+
render () {
|
|
43
48
|
return h('div', wrapInArray(this.genSelectAll()))
|
|
44
49
|
},
|
|
45
50
|
})
|
|
@@ -64,22 +69,18 @@ describe('VDataTable/header.ts', () => {
|
|
|
64
69
|
})
|
|
65
70
|
|
|
66
71
|
it('should generate select scoped slot', async () => {
|
|
67
|
-
const sel = jest.fn()
|
|
68
72
|
const wrapper = mountFunction({
|
|
69
|
-
render (
|
|
73
|
+
render () {
|
|
70
74
|
return h('div', wrapInArray(this.genSelectAll()))
|
|
71
75
|
},
|
|
72
|
-
|
|
76
|
+
slots: {
|
|
73
77
|
'data-table-select' (props) {
|
|
74
78
|
return h('div', {
|
|
75
|
-
|
|
79
|
+
onClick: () => props['onUpdate:modelValue'](true),
|
|
76
80
|
class: 'test',
|
|
77
81
|
}, [JSON.stringify(props)])
|
|
78
82
|
},
|
|
79
83
|
},
|
|
80
|
-
listeners: {
|
|
81
|
-
'toggle-select-all': sel,
|
|
82
|
-
},
|
|
83
84
|
})
|
|
84
85
|
|
|
85
86
|
wrapper.setProps({
|
|
@@ -101,9 +102,8 @@ describe('VDataTable/header.ts', () => {
|
|
|
101
102
|
expect(wrapper.html()).toMatchSnapshot()
|
|
102
103
|
|
|
103
104
|
const select = wrapper.find('.test')
|
|
104
|
-
select.trigger('
|
|
105
|
-
expect(
|
|
106
|
-
|
|
107
|
-
expect(sel.mock.calls[1][0].value).toBeFalsy()
|
|
105
|
+
await select.trigger('click')
|
|
106
|
+
expect(wrapper.emitted('toggle-select-all')).toBeTruthy()
|
|
107
|
+
expect(wrapper.emitted('toggle-select-all')![0]).toEqual([true])
|
|
108
108
|
})
|
|
109
109
|
})
|
|
@@ -52,7 +52,7 @@ export default mixins<HeaderOptions>().extend({
|
|
|
52
52
|
modelValue: this.everyItem,
|
|
53
53
|
indeterminate: !this.everyItem && this.someItems,
|
|
54
54
|
color: this.checkboxColor ?? '',
|
|
55
|
-
|
|
55
|
+
'onUpdate:modelValue': (v: boolean) => this.$emit('toggle-select-all', v)
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
if (this.$slots['data-table-select']) {
|
|
@@ -14,7 +14,7 @@ import isDateAllowed from './util/isDateAllowed'
|
|
|
14
14
|
import mixins from '../../util/mixins'
|
|
15
15
|
import { wrapInArray } from '../../util/helpers'
|
|
16
16
|
import { daysInMonth } from '../VCalendar/util/timestamp'
|
|
17
|
-
import { consoleWarn } from '../../util/console'
|
|
17
|
+
import { consoleWarn, breaking } from '../../util/console'
|
|
18
18
|
import {
|
|
19
19
|
createItemTypeListeners,
|
|
20
20
|
createNativeLocaleFormatter,
|
|
@@ -296,6 +296,16 @@ export default mixins(
|
|
|
296
296
|
},
|
|
297
297
|
|
|
298
298
|
created () {
|
|
299
|
+
const breakingProps = [
|
|
300
|
+
['value', 'modelValue'],
|
|
301
|
+
['onInput', 'onUpdate:modelValue'],
|
|
302
|
+
]
|
|
303
|
+
|
|
304
|
+
/* istanbul ignore next */
|
|
305
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
306
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
307
|
+
})
|
|
308
|
+
|
|
299
309
|
this.checkMultipleProp()
|
|
300
310
|
|
|
301
311
|
if (this.pickerDate !== this.tableDate) {
|
|
@@ -12,6 +12,7 @@ import Themeable from '../../mixins/themeable'
|
|
|
12
12
|
// Utils
|
|
13
13
|
import { createNativeLocaleFormatter, monthChange } from './util'
|
|
14
14
|
import { getSlot } from '../../util/helpers'
|
|
15
|
+
import { breaking } from '../../util/console'
|
|
15
16
|
|
|
16
17
|
// Types
|
|
17
18
|
import { VNode, PropType, Transition, h, defineComponent } from 'vue'
|
|
@@ -64,6 +65,18 @@ export default defineComponent({
|
|
|
64
65
|
},
|
|
65
66
|
},
|
|
66
67
|
|
|
68
|
+
created () {
|
|
69
|
+
const breakingProps = [
|
|
70
|
+
['value', 'modelValue'],
|
|
71
|
+
['onInput', 'onUpdate:modelValue'],
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
/* istanbul ignore next */
|
|
75
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
76
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
77
|
+
})
|
|
78
|
+
},
|
|
79
|
+
|
|
67
80
|
watch: {
|
|
68
81
|
modelValue (newVal, oldVal) {
|
|
69
82
|
this.isReversing = newVal < oldVal
|
|
@@ -9,6 +9,7 @@ import PickerButton from '../../mixins/picker-button'
|
|
|
9
9
|
|
|
10
10
|
// Utils
|
|
11
11
|
import mixins from '../../util/mixins'
|
|
12
|
+
import { breaking } from '../../util/console'
|
|
12
13
|
|
|
13
14
|
// Types
|
|
14
15
|
import { VNode } from 'vue'
|
|
@@ -51,6 +52,17 @@ export default mixins(
|
|
|
51
52
|
},
|
|
52
53
|
},
|
|
53
54
|
|
|
55
|
+
created () {
|
|
56
|
+
const breakingProps = [
|
|
57
|
+
['value', 'modelValue'],
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
/* istanbul ignore next */
|
|
61
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
62
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
63
|
+
})
|
|
64
|
+
},
|
|
65
|
+
|
|
54
66
|
watch: {
|
|
55
67
|
modelValue (val: string, prev: string) {
|
|
56
68
|
this.isReversing = val < prev
|
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
createNativeLocaleFormatter,
|
|
10
10
|
} from './util'
|
|
11
11
|
import mixins, { ExtractVue } from '../../util/mixins'
|
|
12
|
+
import { breaking } from '../../util/console'
|
|
12
13
|
|
|
13
14
|
// Types
|
|
14
15
|
import { VNode, PropType, h } from 'vue'
|
|
@@ -52,6 +53,18 @@ export default mixins<options &
|
|
|
52
53
|
},
|
|
53
54
|
},
|
|
54
55
|
|
|
56
|
+
created () {
|
|
57
|
+
const breakingProps = [
|
|
58
|
+
['value', 'modelValue'],
|
|
59
|
+
['onInput', 'onUpdate:modelValue'],
|
|
60
|
+
]
|
|
61
|
+
|
|
62
|
+
/* istanbul ignore next */
|
|
63
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
64
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
65
|
+
})
|
|
66
|
+
},
|
|
67
|
+
|
|
55
68
|
mounted () {
|
|
56
69
|
setTimeout(() => {
|
|
57
70
|
const activeItem = this.$el.getElementsByClassName('active')[0]
|
|
@@ -14,6 +14,7 @@ import isDateAllowed from '../util/isDateAllowed'
|
|
|
14
14
|
import { mergeListeners } from '../../../util/mergeData'
|
|
15
15
|
import mixins from '../../../util/mixins'
|
|
16
16
|
import { throttle } from '../../../util/helpers'
|
|
17
|
+
import { breaking } from '../../../util/console'
|
|
17
18
|
|
|
18
19
|
// Types
|
|
19
20
|
import {
|
|
@@ -88,6 +89,18 @@ export default mixins(
|
|
|
88
89
|
},
|
|
89
90
|
},
|
|
90
91
|
|
|
92
|
+
created () {
|
|
93
|
+
const breakingProps = [
|
|
94
|
+
['value', 'modelValue'],
|
|
95
|
+
['onInput', 'onUpdate:modelValue'],
|
|
96
|
+
]
|
|
97
|
+
|
|
98
|
+
/* istanbul ignore next */
|
|
99
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
100
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
101
|
+
})
|
|
102
|
+
},
|
|
103
|
+
|
|
91
104
|
watch: {
|
|
92
105
|
tableDate (newVal: string, oldVal: string) {
|
|
93
106
|
this.isReversing = newVal < oldVal
|
|
@@ -1,26 +1,22 @@
|
|
|
1
|
-
// Libraries
|
|
2
|
-
import Vue from 'vue'
|
|
3
|
-
|
|
4
1
|
// Components
|
|
5
2
|
import VDivider from '../VDivider'
|
|
6
3
|
|
|
7
4
|
// Utilities
|
|
8
5
|
import {
|
|
9
|
-
createLocalVue,
|
|
10
6
|
mount,
|
|
11
|
-
|
|
7
|
+
VueWrapper,
|
|
8
|
+
enableAutoUnmount,
|
|
12
9
|
} from '@vue/test-utils'
|
|
13
10
|
|
|
14
11
|
describe('VDivider', () => {
|
|
15
|
-
|
|
16
|
-
let
|
|
12
|
+
type Instance = InstanceType<typeof VDivider>
|
|
13
|
+
let mountFunction: (options?: object) => VueWrapper<Instance>
|
|
17
14
|
|
|
18
|
-
|
|
19
|
-
localVue = createLocalVue()
|
|
15
|
+
enableAutoUnmount(afterEach)
|
|
20
16
|
|
|
17
|
+
beforeEach(() => {
|
|
21
18
|
mountFunction = (options = {}) => {
|
|
22
19
|
return mount(VDivider, {
|
|
23
|
-
localVue,
|
|
24
20
|
...options,
|
|
25
21
|
})
|
|
26
22
|
}
|
|
@@ -34,7 +30,7 @@ describe('VDivider', () => {
|
|
|
34
30
|
|
|
35
31
|
it('should render an inset component', () => {
|
|
36
32
|
const wrapper = mountFunction({
|
|
37
|
-
|
|
33
|
+
props: { inset: true },
|
|
38
34
|
})
|
|
39
35
|
|
|
40
36
|
expect(wrapper.classes('v-divider--inset')).toBe(true)
|
|
@@ -42,7 +38,7 @@ describe('VDivider', () => {
|
|
|
42
38
|
|
|
43
39
|
it('should render a light component', () => {
|
|
44
40
|
const wrapper = mountFunction({
|
|
45
|
-
|
|
41
|
+
props: { light: true },
|
|
46
42
|
})
|
|
47
43
|
|
|
48
44
|
expect(wrapper.classes('theme--light')).toBe(true)
|
|
@@ -50,7 +46,7 @@ describe('VDivider', () => {
|
|
|
50
46
|
|
|
51
47
|
it('should render a dark component', () => {
|
|
52
48
|
const wrapper = mountFunction({
|
|
53
|
-
|
|
49
|
+
props: { dark: true },
|
|
54
50
|
})
|
|
55
51
|
|
|
56
52
|
expect(wrapper.classes('theme--dark')).toBe(true)
|
|
@@ -58,7 +54,7 @@ describe('VDivider', () => {
|
|
|
58
54
|
|
|
59
55
|
it('should render a vertical component', () => {
|
|
60
56
|
const wrapper = mountFunction({
|
|
61
|
-
|
|
57
|
+
props: { vertical: true },
|
|
62
58
|
})
|
|
63
59
|
|
|
64
60
|
expect(wrapper.classes('v-divider--vertical')).toBe(true)
|
|
@@ -78,7 +74,7 @@ describe('VDivider', () => {
|
|
|
78
74
|
|
|
79
75
|
it('should have aria-orientation vertical if vertical prop is set', () => {
|
|
80
76
|
const wrapper = mountFunction({
|
|
81
|
-
|
|
77
|
+
props: { vertical: true },
|
|
82
78
|
})
|
|
83
79
|
|
|
84
80
|
expect(wrapper.attributes('aria-orientation')).toBe('vertical')
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`VDivider should render component and match snapshot 1`] = `
|
|
4
|
-
<hr
|
|
4
|
+
<hr class="v-divider theme--light"
|
|
5
|
+
role="separator"
|
|
5
6
|
aria-orientation="horizontal"
|
|
6
|
-
class="v-divider theme--light"
|
|
7
7
|
>
|
|
8
8
|
`;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
2
1
|
import { mount } from '@vue/test-utils'
|
|
3
2
|
import VCol from '../VCol'
|
|
4
3
|
|
|
@@ -6,7 +5,7 @@ describe('layout > col', () => {
|
|
|
6
5
|
it('should have default expected structure', async () => {
|
|
7
6
|
const wrapper = mount(VCol)
|
|
8
7
|
|
|
9
|
-
expect(wrapper.
|
|
8
|
+
expect(wrapper.element.tagName).toBe('DIV')
|
|
10
9
|
expect(wrapper.classes()).toContain('col')
|
|
11
10
|
expect(wrapper.classes()).toHaveLength(1)
|
|
12
11
|
expect(wrapper.findAll('.col > *')).toHaveLength(0)
|
|
@@ -15,12 +14,12 @@ describe('layout > col', () => {
|
|
|
15
14
|
|
|
16
15
|
it('renders custom root element when tag prop set', async () => {
|
|
17
16
|
const wrapper = mount(VCol, {
|
|
18
|
-
|
|
17
|
+
props: {
|
|
19
18
|
tag: 'span',
|
|
20
19
|
},
|
|
21
20
|
})
|
|
22
21
|
|
|
23
|
-
expect(wrapper.
|
|
22
|
+
expect(wrapper.element.tagName).toBe('SPAN')
|
|
24
23
|
expect(wrapper.classes()).toContain('col')
|
|
25
24
|
expect(wrapper.classes()).toHaveLength(1)
|
|
26
25
|
expect(wrapper.findAll('.col > *')).toHaveLength(0)
|
|
@@ -29,7 +28,7 @@ describe('layout > col', () => {
|
|
|
29
28
|
|
|
30
29
|
it('should apply breakpoint specific col-{bp}-{#} classes', async () => {
|
|
31
30
|
const wrapper = mount(VCol, {
|
|
32
|
-
|
|
31
|
+
props: {
|
|
33
32
|
cols: 6,
|
|
34
33
|
sm: 5,
|
|
35
34
|
md: 4,
|
|
@@ -38,7 +37,7 @@ describe('layout > col', () => {
|
|
|
38
37
|
},
|
|
39
38
|
})
|
|
40
39
|
|
|
41
|
-
expect(wrapper.
|
|
40
|
+
expect(wrapper.element.tagName).toBe('DIV')
|
|
42
41
|
expect(wrapper.classes()).toContain('col-6')
|
|
43
42
|
expect(wrapper.classes()).toContain('col-sm-5')
|
|
44
43
|
expect(wrapper.classes()).toContain('col-md-4')
|
|
@@ -49,7 +48,7 @@ describe('layout > col', () => {
|
|
|
49
48
|
|
|
50
49
|
it('should apply ".offset-*" classes with "offset-{bp}-{#}" props', async () => {
|
|
51
50
|
const wrapper = mount(VCol, {
|
|
52
|
-
|
|
51
|
+
props: {
|
|
53
52
|
offset: 6,
|
|
54
53
|
offsetSm: 5,
|
|
55
54
|
offsetMd: 4,
|
|
@@ -58,7 +57,7 @@ describe('layout > col', () => {
|
|
|
58
57
|
},
|
|
59
58
|
})
|
|
60
59
|
|
|
61
|
-
expect(wrapper.
|
|
60
|
+
expect(wrapper.element.tagName).toBe('DIV')
|
|
62
61
|
expect(wrapper.classes()).toContain('col')
|
|
63
62
|
expect(wrapper.classes()).toContain('offset-6')
|
|
64
63
|
expect(wrapper.classes()).toContain('offset-sm-5')
|
|
@@ -70,7 +69,7 @@ describe('layout > col', () => {
|
|
|
70
69
|
|
|
71
70
|
it('should apply ".order-*" classes with "order-{bp}-{#}" props', async () => {
|
|
72
71
|
const wrapper = mount(VCol, {
|
|
73
|
-
|
|
72
|
+
props: {
|
|
74
73
|
order: 6,
|
|
75
74
|
orderSm: 5,
|
|
76
75
|
orderMd: 4,
|
|
@@ -79,7 +78,7 @@ describe('layout > col', () => {
|
|
|
79
78
|
},
|
|
80
79
|
})
|
|
81
80
|
|
|
82
|
-
expect(wrapper.
|
|
81
|
+
expect(wrapper.element.tagName).toBe('DIV')
|
|
83
82
|
expect(wrapper.classes()).toContain('col')
|
|
84
83
|
expect(wrapper.classes()).toContain('order-6')
|
|
85
84
|
expect(wrapper.classes()).toContain('order-sm-5')
|
|
@@ -91,7 +90,7 @@ describe('layout > col', () => {
|
|
|
91
90
|
|
|
92
91
|
it(`should apply boolean breakpoint classes for 'sm', 'md', 'lg', 'xl' prop`, async () => {
|
|
93
92
|
const wrapper = mount(VCol, {
|
|
94
|
-
|
|
93
|
+
props: {
|
|
95
94
|
sm: true,
|
|
96
95
|
md: true,
|
|
97
96
|
lg: true,
|
|
@@ -99,7 +98,7 @@ describe('layout > col', () => {
|
|
|
99
98
|
},
|
|
100
99
|
})
|
|
101
100
|
|
|
102
|
-
expect(wrapper.
|
|
101
|
+
expect(wrapper.element.tagName).toBe('DIV')
|
|
103
102
|
expect(wrapper.classes()).toContain('col')
|
|
104
103
|
expect(wrapper.classes()).toContain('col-sm')
|
|
105
104
|
expect(wrapper.classes()).toContain('col-md')
|
|
@@ -110,7 +109,7 @@ describe('layout > col', () => {
|
|
|
110
109
|
|
|
111
110
|
it(`should apply boolean breakpoint classes for 'sm', 'md', 'lg', 'xl' prop set to empty string`, async () => {
|
|
112
111
|
const wrapper = mount(VCol, {
|
|
113
|
-
|
|
112
|
+
props: {
|
|
114
113
|
sm: '',
|
|
115
114
|
md: '',
|
|
116
115
|
lg: '',
|
|
@@ -118,7 +117,7 @@ describe('layout > col', () => {
|
|
|
118
117
|
},
|
|
119
118
|
})
|
|
120
119
|
|
|
121
|
-
expect(wrapper.
|
|
120
|
+
expect(wrapper.element.tagName).toBe('DIV')
|
|
122
121
|
expect(wrapper.classes()).toContain('col')
|
|
123
122
|
expect(wrapper.classes()).toContain('col-sm')
|
|
124
123
|
expect(wrapper.classes()).toContain('col-md')
|
|
@@ -129,12 +128,12 @@ describe('layout > col', () => {
|
|
|
129
128
|
|
|
130
129
|
it('should apply ".align-self-*" class with "align-self" prop', async () => {
|
|
131
130
|
const wrapper = mount(VCol, {
|
|
132
|
-
|
|
131
|
+
props: {
|
|
133
132
|
alignSelf: 'center',
|
|
134
133
|
},
|
|
135
134
|
})
|
|
136
135
|
|
|
137
|
-
expect(wrapper.
|
|
136
|
+
expect(wrapper.element.tagName).toBe('DIV')
|
|
138
137
|
expect(wrapper.classes()).toContain('col')
|
|
139
138
|
expect(wrapper.classes()).toContain('align-self-center')
|
|
140
139
|
expect(wrapper.classes()).toHaveLength(2)
|
|
@@ -144,6 +143,7 @@ describe('layout > col', () => {
|
|
|
144
143
|
const wrapper = mount(VCol)
|
|
145
144
|
const wrapper2 = mount(VCol)
|
|
146
145
|
|
|
147
|
-
|
|
146
|
+
// В Vue 3 структура vnode изменилась, поэтому проверяем по-другому
|
|
147
|
+
expect(wrapper.classes()).toEqual(wrapper2.classes())
|
|
148
148
|
})
|
|
149
149
|
})
|