@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
|
@@ -16,7 +16,9 @@ exports[`VDataIterator.ts should render and match snapshot 1`] = `
|
|
|
16
16
|
<div class="v-data-footer">
|
|
17
17
|
<div class="v-data-footer__select">
|
|
18
18
|
Items per page:
|
|
19
|
-
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
19
|
+
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
20
|
+
aria-label="Items per page:"
|
|
21
|
+
>
|
|
20
22
|
<div class="v-input__control">
|
|
21
23
|
<div role="button"
|
|
22
24
|
aria-haspopup="listbox"
|
|
@@ -30,17 +32,17 @@ exports[`VDataIterator.ts should render and match snapshot 1`] = `
|
|
|
30
32
|
10
|
|
31
33
|
</div>
|
|
32
34
|
<input aria-label="Items per page:"
|
|
33
|
-
id="input-4"
|
|
34
|
-
readonly="readonly"
|
|
35
|
-
type="text"
|
|
36
35
|
aria-readonly="false"
|
|
37
36
|
autocomplete="off"
|
|
37
|
+
id="input-4"
|
|
38
|
+
readonly
|
|
39
|
+
type="text"
|
|
38
40
|
>
|
|
39
41
|
</div>
|
|
40
42
|
<div class="v-input__append-inner">
|
|
41
43
|
<div class="v-input__icon v-input__icon--append">
|
|
42
44
|
<i aria-hidden="true"
|
|
43
|
-
class="v-icon notranslate
|
|
45
|
+
class="v-icon notranslate material-icons theme--light"
|
|
44
46
|
>
|
|
45
47
|
</i>
|
|
46
48
|
</div>
|
|
@@ -59,28 +61,28 @@ exports[`VDataIterator.ts should render and match snapshot 1`] = `
|
|
|
59
61
|
–
|
|
60
62
|
</div>
|
|
61
63
|
<div class="v-data-footer__icons-before">
|
|
62
|
-
<button
|
|
63
|
-
|
|
64
|
-
|
|
64
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
65
|
+
type="button"
|
|
66
|
+
disabled
|
|
65
67
|
aria-label="Previous page"
|
|
66
68
|
>
|
|
67
69
|
<span class="v-btn__content">
|
|
68
70
|
<i aria-hidden="true"
|
|
69
|
-
class="v-icon notranslate
|
|
71
|
+
class="v-icon notranslate material-icons theme--light"
|
|
70
72
|
>
|
|
71
73
|
</i>
|
|
72
74
|
</span>
|
|
73
75
|
</button>
|
|
74
76
|
</div>
|
|
75
77
|
<div class="v-data-footer__icons-after">
|
|
76
|
-
<button
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
79
|
+
type="button"
|
|
80
|
+
disabled
|
|
79
81
|
aria-label="Next page"
|
|
80
82
|
>
|
|
81
83
|
<span class="v-btn__content">
|
|
82
84
|
<i aria-hidden="true"
|
|
83
|
-
class="v-icon notranslate
|
|
85
|
+
class="v-icon notranslate material-icons theme--light"
|
|
84
86
|
>
|
|
85
87
|
</i>
|
|
86
88
|
</span>
|
|
@@ -107,12 +109,14 @@ exports[`VDataIterator.ts should render and match snapshot with data 1`] = `
|
|
|
107
109
|
<div class="v-data-footer">
|
|
108
110
|
<div class="v-data-footer__select">
|
|
109
111
|
Items per page:
|
|
110
|
-
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
112
|
+
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
113
|
+
aria-label="Items per page:"
|
|
114
|
+
>
|
|
111
115
|
<div class="v-input__control">
|
|
112
116
|
<div role="button"
|
|
113
117
|
aria-haspopup="listbox"
|
|
114
118
|
aria-expanded="false"
|
|
115
|
-
aria-owns="list-
|
|
119
|
+
aria-owns="list-18"
|
|
116
120
|
class="v-input__slot"
|
|
117
121
|
>
|
|
118
122
|
<div class="v-select__slot">
|
|
@@ -121,17 +125,17 @@ exports[`VDataIterator.ts should render and match snapshot with data 1`] = `
|
|
|
121
125
|
10
|
|
122
126
|
</div>
|
|
123
127
|
<input aria-label="Items per page:"
|
|
124
|
-
id="input-16"
|
|
125
|
-
readonly="readonly"
|
|
126
|
-
type="text"
|
|
127
128
|
aria-readonly="false"
|
|
128
129
|
autocomplete="off"
|
|
130
|
+
id="input-18"
|
|
131
|
+
readonly
|
|
132
|
+
type="text"
|
|
129
133
|
>
|
|
130
134
|
</div>
|
|
131
135
|
<div class="v-input__append-inner">
|
|
132
136
|
<div class="v-input__icon v-input__icon--append">
|
|
133
137
|
<i aria-hidden="true"
|
|
134
|
-
class="v-icon notranslate
|
|
138
|
+
class="v-icon notranslate material-icons theme--light"
|
|
135
139
|
>
|
|
136
140
|
</i>
|
|
137
141
|
</div>
|
|
@@ -150,28 +154,28 @@ exports[`VDataIterator.ts should render and match snapshot with data 1`] = `
|
|
|
150
154
|
1-4 of 4
|
|
151
155
|
</div>
|
|
152
156
|
<div class="v-data-footer__icons-before">
|
|
153
|
-
<button
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
158
|
+
type="button"
|
|
159
|
+
disabled
|
|
156
160
|
aria-label="Previous page"
|
|
157
161
|
>
|
|
158
162
|
<span class="v-btn__content">
|
|
159
163
|
<i aria-hidden="true"
|
|
160
|
-
class="v-icon notranslate
|
|
164
|
+
class="v-icon notranslate material-icons theme--light"
|
|
161
165
|
>
|
|
162
166
|
</i>
|
|
163
167
|
</span>
|
|
164
168
|
</button>
|
|
165
169
|
</div>
|
|
166
170
|
<div class="v-data-footer__icons-after">
|
|
167
|
-
<button
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
172
|
+
type="button"
|
|
173
|
+
disabled
|
|
170
174
|
aria-label="Next page"
|
|
171
175
|
>
|
|
172
176
|
<span class="v-btn__content">
|
|
173
177
|
<i aria-hidden="true"
|
|
174
|
-
class="v-icon notranslate
|
|
178
|
+
class="v-icon notranslate material-icons theme--light"
|
|
175
179
|
>
|
|
176
180
|
</i>
|
|
177
181
|
</span>
|
|
@@ -189,12 +193,14 @@ exports[`VDataIterator.ts should render valid no-data, loading and no-results st
|
|
|
189
193
|
<div class="v-data-footer">
|
|
190
194
|
<div class="v-data-footer__select">
|
|
191
195
|
Items per page:
|
|
192
|
-
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
196
|
+
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
197
|
+
aria-label="Items per page:"
|
|
198
|
+
>
|
|
193
199
|
<div class="v-input__control">
|
|
194
200
|
<div role="button"
|
|
195
201
|
aria-haspopup="listbox"
|
|
196
202
|
aria-expanded="false"
|
|
197
|
-
aria-owns="list-
|
|
203
|
+
aria-owns="list-32"
|
|
198
204
|
class="v-input__slot"
|
|
199
205
|
>
|
|
200
206
|
<div class="v-select__slot">
|
|
@@ -203,17 +209,17 @@ exports[`VDataIterator.ts should render valid no-data, loading and no-results st
|
|
|
203
209
|
10
|
|
204
210
|
</div>
|
|
205
211
|
<input aria-label="Items per page:"
|
|
206
|
-
id="input-27"
|
|
207
|
-
readonly="readonly"
|
|
208
|
-
type="text"
|
|
209
212
|
aria-readonly="false"
|
|
210
213
|
autocomplete="off"
|
|
214
|
+
id="input-32"
|
|
215
|
+
readonly
|
|
216
|
+
type="text"
|
|
211
217
|
>
|
|
212
218
|
</div>
|
|
213
219
|
<div class="v-input__append-inner">
|
|
214
220
|
<div class="v-input__icon v-input__icon--append">
|
|
215
221
|
<i aria-hidden="true"
|
|
216
|
-
class="v-icon notranslate
|
|
222
|
+
class="v-icon notranslate material-icons theme--light"
|
|
217
223
|
>
|
|
218
224
|
</i>
|
|
219
225
|
</div>
|
|
@@ -232,28 +238,28 @@ exports[`VDataIterator.ts should render valid no-data, loading and no-results st
|
|
|
232
238
|
–
|
|
233
239
|
</div>
|
|
234
240
|
<div class="v-data-footer__icons-before">
|
|
235
|
-
<button
|
|
236
|
-
|
|
237
|
-
|
|
241
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
242
|
+
type="button"
|
|
243
|
+
disabled
|
|
238
244
|
aria-label="Previous page"
|
|
239
245
|
>
|
|
240
246
|
<span class="v-btn__content">
|
|
241
247
|
<i aria-hidden="true"
|
|
242
|
-
class="v-icon notranslate
|
|
248
|
+
class="v-icon notranslate material-icons theme--light"
|
|
243
249
|
>
|
|
244
250
|
</i>
|
|
245
251
|
</span>
|
|
246
252
|
</button>
|
|
247
253
|
</div>
|
|
248
254
|
<div class="v-data-footer__icons-after">
|
|
249
|
-
<button
|
|
250
|
-
|
|
251
|
-
|
|
255
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
256
|
+
type="button"
|
|
257
|
+
disabled
|
|
252
258
|
aria-label="Next page"
|
|
253
259
|
>
|
|
254
260
|
<span class="v-btn__content">
|
|
255
261
|
<i aria-hidden="true"
|
|
256
|
-
class="v-icon notranslate
|
|
262
|
+
class="v-icon notranslate material-icons theme--light"
|
|
257
263
|
>
|
|
258
264
|
</i>
|
|
259
265
|
</span>
|
|
@@ -271,12 +277,14 @@ exports[`VDataIterator.ts should render valid no-data, loading and no-results st
|
|
|
271
277
|
<div class="v-data-footer">
|
|
272
278
|
<div class="v-data-footer__select">
|
|
273
279
|
Items per page:
|
|
274
|
-
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
280
|
+
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
281
|
+
aria-label="Items per page:"
|
|
282
|
+
>
|
|
275
283
|
<div class="v-input__control">
|
|
276
284
|
<div role="button"
|
|
277
285
|
aria-haspopup="listbox"
|
|
278
286
|
aria-expanded="false"
|
|
279
|
-
aria-owns="list-
|
|
287
|
+
aria-owns="list-32"
|
|
280
288
|
class="v-input__slot"
|
|
281
289
|
>
|
|
282
290
|
<div class="v-select__slot">
|
|
@@ -285,17 +293,17 @@ exports[`VDataIterator.ts should render valid no-data, loading and no-results st
|
|
|
285
293
|
10
|
|
286
294
|
</div>
|
|
287
295
|
<input aria-label="Items per page:"
|
|
288
|
-
id="input-27"
|
|
289
|
-
readonly="readonly"
|
|
290
|
-
type="text"
|
|
291
296
|
aria-readonly="false"
|
|
292
297
|
autocomplete="off"
|
|
298
|
+
id="input-32"
|
|
299
|
+
readonly
|
|
300
|
+
type="text"
|
|
293
301
|
>
|
|
294
302
|
</div>
|
|
295
303
|
<div class="v-input__append-inner">
|
|
296
304
|
<div class="v-input__icon v-input__icon--append">
|
|
297
305
|
<i aria-hidden="true"
|
|
298
|
-
class="v-icon notranslate
|
|
306
|
+
class="v-icon notranslate material-icons theme--light"
|
|
299
307
|
>
|
|
300
308
|
</i>
|
|
301
309
|
</div>
|
|
@@ -314,28 +322,28 @@ exports[`VDataIterator.ts should render valid no-data, loading and no-results st
|
|
|
314
322
|
–
|
|
315
323
|
</div>
|
|
316
324
|
<div class="v-data-footer__icons-before">
|
|
317
|
-
<button
|
|
318
|
-
|
|
319
|
-
|
|
325
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
326
|
+
type="button"
|
|
327
|
+
disabled
|
|
320
328
|
aria-label="Previous page"
|
|
321
329
|
>
|
|
322
330
|
<span class="v-btn__content">
|
|
323
331
|
<i aria-hidden="true"
|
|
324
|
-
class="v-icon notranslate
|
|
332
|
+
class="v-icon notranslate material-icons theme--light"
|
|
325
333
|
>
|
|
326
334
|
</i>
|
|
327
335
|
</span>
|
|
328
336
|
</button>
|
|
329
337
|
</div>
|
|
330
338
|
<div class="v-data-footer__icons-after">
|
|
331
|
-
<button
|
|
332
|
-
|
|
333
|
-
|
|
339
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
340
|
+
type="button"
|
|
341
|
+
disabled
|
|
334
342
|
aria-label="Next page"
|
|
335
343
|
>
|
|
336
344
|
<span class="v-btn__content">
|
|
337
345
|
<i aria-hidden="true"
|
|
338
|
-
class="v-icon notranslate
|
|
346
|
+
class="v-icon notranslate material-icons theme--light"
|
|
339
347
|
>
|
|
340
348
|
</i>
|
|
341
349
|
</span>
|
|
@@ -353,12 +361,14 @@ exports[`VDataIterator.ts should render valid no-data, loading and no-results st
|
|
|
353
361
|
<div class="v-data-footer">
|
|
354
362
|
<div class="v-data-footer__select">
|
|
355
363
|
Items per page:
|
|
356
|
-
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
364
|
+
<div class="v-input v-input--hide-details v-input--is-label-active v-input--is-dirty theme--light v-text-field v-select"
|
|
365
|
+
aria-label="Items per page:"
|
|
366
|
+
>
|
|
357
367
|
<div class="v-input__control">
|
|
358
368
|
<div role="button"
|
|
359
369
|
aria-haspopup="listbox"
|
|
360
370
|
aria-expanded="false"
|
|
361
|
-
aria-owns="list-
|
|
371
|
+
aria-owns="list-32"
|
|
362
372
|
class="v-input__slot"
|
|
363
373
|
>
|
|
364
374
|
<div class="v-select__slot">
|
|
@@ -367,17 +377,17 @@ exports[`VDataIterator.ts should render valid no-data, loading and no-results st
|
|
|
367
377
|
10
|
|
368
378
|
</div>
|
|
369
379
|
<input aria-label="Items per page:"
|
|
370
|
-
id="input-27"
|
|
371
|
-
readonly="readonly"
|
|
372
|
-
type="text"
|
|
373
380
|
aria-readonly="false"
|
|
374
381
|
autocomplete="off"
|
|
382
|
+
id="input-32"
|
|
383
|
+
readonly
|
|
384
|
+
type="text"
|
|
375
385
|
>
|
|
376
386
|
</div>
|
|
377
387
|
<div class="v-input__append-inner">
|
|
378
388
|
<div class="v-input__icon v-input__icon--append">
|
|
379
389
|
<i aria-hidden="true"
|
|
380
|
-
class="v-icon notranslate
|
|
390
|
+
class="v-icon notranslate material-icons theme--light"
|
|
381
391
|
>
|
|
382
392
|
</i>
|
|
383
393
|
</div>
|
|
@@ -396,28 +406,28 @@ exports[`VDataIterator.ts should render valid no-data, loading and no-results st
|
|
|
396
406
|
–
|
|
397
407
|
</div>
|
|
398
408
|
<div class="v-data-footer__icons-before">
|
|
399
|
-
<button
|
|
400
|
-
|
|
401
|
-
|
|
409
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
410
|
+
type="button"
|
|
411
|
+
disabled
|
|
402
412
|
aria-label="Previous page"
|
|
403
413
|
>
|
|
404
414
|
<span class="v-btn__content">
|
|
405
415
|
<i aria-hidden="true"
|
|
406
|
-
class="v-icon notranslate
|
|
416
|
+
class="v-icon notranslate material-icons theme--light"
|
|
407
417
|
>
|
|
408
418
|
</i>
|
|
409
419
|
</span>
|
|
410
420
|
</button>
|
|
411
421
|
</div>
|
|
412
422
|
<div class="v-data-footer__icons-after">
|
|
413
|
-
<button
|
|
414
|
-
|
|
415
|
-
|
|
423
|
+
<button class="v-btn v-btn--disabled v-btn--icon v-btn--round v-btn--text theme--light v-size--default"
|
|
424
|
+
type="button"
|
|
425
|
+
disabled
|
|
416
426
|
aria-label="Next page"
|
|
417
427
|
>
|
|
418
428
|
<span class="v-btn__content">
|
|
419
429
|
<i aria-hidden="true"
|
|
420
|
-
class="v-icon notranslate
|
|
430
|
+
class="v-icon notranslate material-icons theme--light"
|
|
421
431
|
>
|
|
422
432
|
</i>
|
|
423
433
|
</span>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent, VNode, h } from 'vue'
|
|
1
|
+
import { defineComponent, VNode, h, Fragment } from 'vue'
|
|
2
|
+
import { getSlot } from '../../util/helpers'
|
|
3
|
+
import { breaking } from '../../util/console'
|
|
2
4
|
|
|
3
5
|
export default defineComponent({
|
|
4
6
|
name: 'row-group',
|
|
5
7
|
|
|
6
|
-
functional: true,
|
|
7
|
-
|
|
8
8
|
props: {
|
|
9
|
-
|
|
9
|
+
modelValue: {
|
|
10
10
|
type: Boolean,
|
|
11
11
|
default: true,
|
|
12
12
|
},
|
|
@@ -21,30 +21,47 @@ export default defineComponent({
|
|
|
21
21
|
},
|
|
22
22
|
},
|
|
23
23
|
|
|
24
|
+
created () {
|
|
25
|
+
const breakingProps = [
|
|
26
|
+
['value', 'modelValue'],
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
/* istanbul ignore next */
|
|
30
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
31
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
32
|
+
})
|
|
33
|
+
},
|
|
34
|
+
|
|
24
35
|
render (): VNode {
|
|
25
36
|
const props = this.$props
|
|
26
|
-
|
|
27
|
-
const computedSlots = this.$slots
|
|
28
37
|
const children = []
|
|
29
38
|
|
|
30
|
-
|
|
39
|
+
const columnHeaderSlot = getSlot(this, 'column.header')
|
|
40
|
+
const rowHeaderSlot = getSlot(this, 'row.header')
|
|
41
|
+
const rowContentSlot = getSlot(this, 'row.content')
|
|
42
|
+
const columnSummarySlot = getSlot(this, 'column.summary')
|
|
43
|
+
const rowSummarySlot = getSlot(this, 'row.summary')
|
|
44
|
+
|
|
45
|
+
if (columnHeaderSlot) {
|
|
31
46
|
children.push(h('tr', {
|
|
32
47
|
class: props.headerClass,
|
|
33
|
-
},
|
|
34
|
-
} else if (
|
|
35
|
-
children.push(...
|
|
48
|
+
}, columnHeaderSlot))
|
|
49
|
+
} else if (rowHeaderSlot) {
|
|
50
|
+
children.push(...(Array.isArray(rowHeaderSlot) ? rowHeaderSlot : [rowHeaderSlot]))
|
|
36
51
|
}
|
|
37
52
|
|
|
38
|
-
if (
|
|
53
|
+
if (rowContentSlot && props.modelValue) {
|
|
54
|
+
children.push(...(Array.isArray(rowContentSlot) ? rowContentSlot : [rowContentSlot]))
|
|
55
|
+
}
|
|
39
56
|
|
|
40
|
-
if (
|
|
57
|
+
if (columnSummarySlot) {
|
|
41
58
|
children.push(h('tr', {
|
|
42
59
|
class: props.summaryClass,
|
|
43
|
-
},
|
|
44
|
-
} else if (
|
|
45
|
-
children.push(...
|
|
60
|
+
}, columnSummarySlot))
|
|
61
|
+
} else if (rowSummarySlot) {
|
|
62
|
+
children.push(...(Array.isArray(rowSummarySlot) ? rowSummarySlot : [rowSummarySlot]))
|
|
46
63
|
}
|
|
47
64
|
|
|
48
|
-
return children
|
|
65
|
+
return h(Fragment, children)
|
|
49
66
|
},
|
|
50
67
|
})
|
|
@@ -109,6 +109,7 @@ export default mixins(
|
|
|
109
109
|
} as PropValidator<DataTableHeader[]>,
|
|
110
110
|
showSelect: Boolean,
|
|
111
111
|
checkboxColor: String,
|
|
112
|
+
color: String,
|
|
112
113
|
showExpand: Boolean,
|
|
113
114
|
showGroupBy: Boolean,
|
|
114
115
|
// TODO: Fix
|
|
@@ -406,13 +407,9 @@ export default mixins(
|
|
|
406
407
|
|
|
407
408
|
const remove = h(VBtn, {
|
|
408
409
|
class: 'ma-0',
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
},
|
|
413
|
-
on: {
|
|
414
|
-
click: removeFn,
|
|
415
|
-
},
|
|
410
|
+
icon: true,
|
|
411
|
+
small: true,
|
|
412
|
+
onClick: removeFn,
|
|
416
413
|
}, () => [h(VIcon, {}, () => ['$close'])])
|
|
417
414
|
|
|
418
415
|
const column = h('td', {
|
|
@@ -439,9 +436,7 @@ export default mixins(
|
|
|
439
436
|
|
|
440
437
|
return h(RowGroup, {
|
|
441
438
|
key: group,
|
|
442
|
-
|
|
443
|
-
value: isOpen,
|
|
444
|
-
},
|
|
439
|
+
modelValue: isOpen,
|
|
445
440
|
}, children)
|
|
446
441
|
},
|
|
447
442
|
genRows (items: any[], props: DataScopeProps) {
|
|
@@ -489,9 +484,7 @@ export default mixins(
|
|
|
489
484
|
})])
|
|
490
485
|
|
|
491
486
|
return h(RowGroup, {
|
|
492
|
-
|
|
493
|
-
value: isExpanded,
|
|
494
|
-
},
|
|
487
|
+
modelValue: isExpanded,
|
|
495
488
|
}, [
|
|
496
489
|
h('template', { slot: 'row.header' }, [headerRow]),
|
|
497
490
|
h('template', { slot: 'row.content' }, [expandedRow]),
|
|
@@ -512,7 +505,7 @@ export default mixins(
|
|
|
512
505
|
modelValue: data.isSelected,
|
|
513
506
|
disabled: !this.isSelectable(item),
|
|
514
507
|
color: this.checkboxColor ?? '',
|
|
515
|
-
|
|
508
|
+
'onUpdate:modelValue': (val: boolean) => data.select(val),
|
|
516
509
|
})
|
|
517
510
|
}
|
|
518
511
|
|
|
@@ -541,7 +534,7 @@ export default mixins(
|
|
|
541
534
|
index,
|
|
542
535
|
item,
|
|
543
536
|
rtl: this.$vuetify.rtl,
|
|
544
|
-
|
|
537
|
+
...data.on,
|
|
545
538
|
}, scopedSlots)
|
|
546
539
|
},
|
|
547
540
|
genBody (props: DataScopeProps): VNode | string | VNodeChildren {
|
|
@@ -14,7 +14,7 @@ import mergeData from '../../util/mergeData'
|
|
|
14
14
|
import rebuildSlots from '../../util/rebuildFunctionalSlots'
|
|
15
15
|
|
|
16
16
|
// Types
|
|
17
|
-
import {defineComponent, h} from 'vue'
|
|
17
|
+
import { defineComponent, h } from 'vue'
|
|
18
18
|
|
|
19
19
|
/* @vue/component */
|
|
20
20
|
export default defineComponent({
|
|
@@ -27,7 +27,7 @@ export default defineComponent({
|
|
|
27
27
|
|
|
28
28
|
render () {
|
|
29
29
|
const props = this.$props
|
|
30
|
-
|
|
30
|
+
const data = {
|
|
31
31
|
...this.$attrs,
|
|
32
32
|
...props,
|
|
33
33
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {h} from 'vue'
|
|
2
|
-
import { VNode, VNodeChildrenArrayContents } from 'vue'
|
|
1
|
+
import { h, VNode, VNodeChildrenArrayContents } from 'vue'
|
|
3
2
|
import mixins from '../../util/mixins'
|
|
4
3
|
import VSelect from '../VSelect/VSelect'
|
|
5
4
|
import VChip from '../VChip'
|
|
@@ -14,6 +13,7 @@ export default mixins(header).extend({
|
|
|
14
13
|
type: String,
|
|
15
14
|
default: '$vuetify.dataTable.sortBy',
|
|
16
15
|
},
|
|
16
|
+
mobile: Boolean,
|
|
17
17
|
},
|
|
18
18
|
|
|
19
19
|
emits: ['sort'],
|
|
@@ -27,8 +27,8 @@ export default mixins(header).extend({
|
|
|
27
27
|
const isDesc = this.options.sortDesc[sortIndex]
|
|
28
28
|
|
|
29
29
|
children.push(h('div', {
|
|
30
|
-
class: 'v-chip__close',
|
|
31
30
|
class: {
|
|
31
|
+
'v-chip__close': true,
|
|
32
32
|
sortable: true,
|
|
33
33
|
active: beingSorted,
|
|
34
34
|
asc: beingSorted && !isDesc,
|
|
@@ -38,30 +38,23 @@ export default mixins(header).extend({
|
|
|
38
38
|
|
|
39
39
|
return h(VChip, {
|
|
40
40
|
class: 'sortable',
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
this.$emit('sort', props.item.value)
|
|
45
|
-
},
|
|
41
|
+
onClick: (e: MouseEvent) => {
|
|
42
|
+
e.stopPropagation()
|
|
43
|
+
this.$emit('sort', props.item.value)
|
|
46
44
|
},
|
|
47
45
|
}, children)
|
|
48
46
|
},
|
|
49
47
|
genSortSelect (items: any[]) {
|
|
50
48
|
return h(VSelect, {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
change: (v: string | string[]) => this.$emit('sort', v),
|
|
61
|
-
},
|
|
62
|
-
scopedSlots: {
|
|
63
|
-
selection: props => this.genSortChip(props),
|
|
64
|
-
},
|
|
49
|
+
label: this.$vuetify.lang.t(this.sortByText),
|
|
50
|
+
items,
|
|
51
|
+
hideDetails: true,
|
|
52
|
+
multiple: this.options.multiSort,
|
|
53
|
+
modelValue: this.options.multiSort ? this.options.sortBy : this.options.sortBy[0],
|
|
54
|
+
menuProps: { closeOnContentClick: true },
|
|
55
|
+
'onUpdate:modelValue': (v: string | string[]) => this.$emit('sort', v),
|
|
56
|
+
}, {
|
|
57
|
+
selection: (props: any) => this.genSortChip(props),
|
|
65
58
|
})
|
|
66
59
|
},
|
|
67
60
|
},
|
|
@@ -76,9 +69,7 @@ export default mixins(header).extend({
|
|
|
76
69
|
'v-data-table-header-mobile__select',
|
|
77
70
|
...wrapInArray(header.class),
|
|
78
71
|
],
|
|
79
|
-
|
|
80
|
-
width: header.width,
|
|
81
|
-
},
|
|
72
|
+
width: header.width,
|
|
82
73
|
}, [this.genSelectAll()]))
|
|
83
74
|
}
|
|
84
75
|
|
|
@@ -41,7 +41,7 @@ export default mixins(Returnable, Themeable).extend({
|
|
|
41
41
|
|
|
42
42
|
data () {
|
|
43
43
|
return {
|
|
44
|
-
isActive
|
|
44
|
+
// isActive is provided by Returnable mixin
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
|
|
@@ -106,13 +106,13 @@ export default mixins(Returnable, Themeable).extend({
|
|
|
106
106
|
transition: this.transition,
|
|
107
107
|
origin: 'top right',
|
|
108
108
|
right: true,
|
|
109
|
-
|
|
109
|
+
modelValue: this.isActive,
|
|
110
110
|
closeOnClick: !this.persistent,
|
|
111
111
|
closeOnContentClick: false,
|
|
112
112
|
eager: this.eager,
|
|
113
113
|
light: this.light,
|
|
114
114
|
dark: this.dark,
|
|
115
|
-
|
|
115
|
+
'onUpdate:modelValue': (val: boolean) => (this.isActive = val),
|
|
116
116
|
}, {
|
|
117
117
|
activator: ({ on }: { on: any }) => {
|
|
118
118
|
return h('div', {
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {h} from 'vue'
|
|
1
|
+
import { h, VNode } from 'vue'
|
|
2
2
|
import './VSimpleTable.sass'
|
|
3
3
|
|
|
4
4
|
import { convertToUnit, getSlot } from '../../util/helpers'
|
|
5
5
|
import Themeable from '../../mixins/themeable'
|
|
6
6
|
import mixins from '../../util/mixins'
|
|
7
|
-
import { VNode } from 'vue'
|
|
8
7
|
|
|
9
8
|
export default mixins(Themeable).extend({
|
|
10
9
|
name: 'v-simple-table',
|
|
@@ -30,7 +29,7 @@ export default mixins(Themeable).extend({
|
|
|
30
29
|
|
|
31
30
|
methods: {
|
|
32
31
|
genWrapper () {
|
|
33
|
-
return this
|
|
32
|
+
return getSlot(this, 'wrapper') || h('div', {
|
|
34
33
|
class: 'v-data-table__wrapper',
|
|
35
34
|
style: {
|
|
36
35
|
height: convertToUnit(this.height),
|