@dimailn/vuetify 2.7.2-alpha28 → 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 +1416 -304
- 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 -8
- 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/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 +29 -4
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +55 -30
- 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/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 +58 -17
- 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/framework.js +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 -6
- 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/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 +8 -1
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +14 -3
- 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/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 +21 -3
- 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/framework.js +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 -7
- 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/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/VBottomNavigation/VBottomNavigation.ts +10 -0
- package/src/components/VCarousel/VCarousel.ts +11 -0
- package/src/components/VCheckbox/VSimpleCheckbox.ts +13 -0
- package/src/components/VColorPicker/VColorPicker.ts +13 -0
- 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/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__/VDataTable.spec.ts +18 -22
- package/src/components/VDataTable/__tests__/VDataTableHeader.spec.ts +39 -29
- package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +7 -2
- package/src/components/VDataTable/__tests__/VSimpleTable.spec.ts +11 -16
- 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 +4 -12
- package/src/components/VDataTable/__tests__/__snapshots__/VSimpleTable.spec.ts.snap +22 -18
- package/src/components/VDataTable/mixins/__tests__/__snapshots__/header.spec.ts.snap +9 -12
- 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/VInput/VInput.ts +18 -5
- package/src/components/VList/VListGroup.ts +22 -10
- package/src/components/VList/VListItem.ts +10 -1
- package/src/components/VMenu/VMenu.ts +21 -3
- 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 +43 -5
- package/src/components/VMessages/__tests__/__snapshots__/VMessages.spec.ts.snap +16 -25
- package/src/components/VNavigationDrawer/VNavigationDrawer.ts +21 -11
- package/src/components/VOverlay/VOverlay.ts +12 -0
- package/src/components/VPagination/VPagination.ts +23 -9
- 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/VSelect/VSelect.ts +60 -43
- package/src/components/VSelect/VSelectList.ts +29 -8
- package/src/components/VSlider/VSlider.ts +14 -1
- 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/VTabs/VTabs.ts +14 -0
- 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
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
2
|
|
|
3
3
|
exports[`VEditDialog.ts should render 1`] = `
|
|
4
|
-
<div class="v-menu v-small-dialog theme--light"
|
|
5
|
-
|
|
6
|
-
>
|
|
7
|
-
<div class="v-small-dialog__activator"
|
|
8
|
-
keydown="function () { [native code] }"
|
|
9
|
-
>
|
|
4
|
+
<div class="v-menu v-small-dialog theme--light">
|
|
5
|
+
<div class="v-small-dialog__activator">
|
|
10
6
|
<span class="v-small-dialog__activator__content">
|
|
11
7
|
</span>
|
|
12
8
|
</div>
|
|
@@ -43,12 +39,8 @@ exports[`VEditDialog.ts should render button 1`] = `
|
|
|
43
39
|
`;
|
|
44
40
|
|
|
45
41
|
exports[`VEditDialog.ts should render custom button texts 1`] = `
|
|
46
|
-
<div class="v-menu v-small-dialog theme--light"
|
|
47
|
-
|
|
48
|
-
>
|
|
49
|
-
<div class="v-small-dialog__activator"
|
|
50
|
-
keydown="function () { [native code] }"
|
|
51
|
-
>
|
|
42
|
+
<div class="v-menu v-small-dialog theme--light">
|
|
43
|
+
<div class="v-small-dialog__activator">
|
|
52
44
|
<span class="v-small-dialog__activator__content">
|
|
53
45
|
</span>
|
|
54
46
|
</div>
|
|
@@ -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,7 +64,7 @@ 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
|
`;
|
|
@@ -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
|
|
@@ -18,6 +18,7 @@ import {
|
|
|
18
18
|
normalizeClasses,
|
|
19
19
|
} from '../../util/helpers'
|
|
20
20
|
import mergeData from '../../util/mergeData'
|
|
21
|
+
import { breaking } from '../../util/console'
|
|
21
22
|
|
|
22
23
|
// Types
|
|
23
24
|
import { VNode, VNodeData, PropType, h, getCurrentInstance } from 'vue'
|
|
@@ -59,7 +60,7 @@ export default baseMixins.extend({
|
|
|
59
60
|
modelValue: null as any as PropType<any>,
|
|
60
61
|
},
|
|
61
62
|
|
|
62
|
-
emits: ['click', 'mousedown', 'mouseup', 'touchstart', 'touchend'],
|
|
63
|
+
emits: ['click', 'mousedown', 'mouseup', 'touchstart', 'touchend', 'update:error'],
|
|
63
64
|
|
|
64
65
|
data () {
|
|
65
66
|
return {
|
|
@@ -111,7 +112,7 @@ export default baseMixins.extend({
|
|
|
111
112
|
this.lazyValue = val
|
|
112
113
|
this.$emit(this.$_modelEvent, val)
|
|
113
114
|
|
|
114
|
-
if('$_emitChangeEvent' in this) {
|
|
115
|
+
if ('$_emitChangeEvent' in this) {
|
|
115
116
|
this.$emit('change', val)
|
|
116
117
|
}
|
|
117
118
|
},
|
|
@@ -146,6 +147,18 @@ export default baseMixins.extend({
|
|
|
146
147
|
},
|
|
147
148
|
},
|
|
148
149
|
|
|
150
|
+
created () {
|
|
151
|
+
const breakingProps = [
|
|
152
|
+
['value', 'modelValue'],
|
|
153
|
+
['onInput', 'onUpdate:modelValue'],
|
|
154
|
+
]
|
|
155
|
+
|
|
156
|
+
/* istanbul ignore next */
|
|
157
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
158
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
159
|
+
})
|
|
160
|
+
},
|
|
161
|
+
|
|
149
162
|
beforeCreate () {
|
|
150
163
|
// v-radio-group needs to emit a different event
|
|
151
164
|
// https://github.com/vuetifyjs/vuetify/issues/4752
|
|
@@ -236,7 +249,7 @@ export default baseMixins.extend({
|
|
|
236
249
|
},
|
|
237
250
|
genInputSlot () {
|
|
238
251
|
return h('div', this.setBackgroundColor(this.backgroundColor, {
|
|
239
|
-
class: {'v-input__slot': true},
|
|
252
|
+
class: { 'v-input__slot': true },
|
|
240
253
|
style: { height: convertToUnit(this.height) },
|
|
241
254
|
onClick: this.onClick,
|
|
242
255
|
onMousedown: this.onMouseDown,
|
|
@@ -263,9 +276,9 @@ export default baseMixins.extend({
|
|
|
263
276
|
color: this.hasHint ? '' : this.validationState,
|
|
264
277
|
dark: this.dark,
|
|
265
278
|
light: this.light,
|
|
266
|
-
|
|
279
|
+
modelValue: this.messagesToDisplay,
|
|
267
280
|
role: this.hasMessages ? 'alert' : null,
|
|
268
|
-
}, {default: getSlot(this, 'message') })
|
|
281
|
+
}, { default: getSlot(this, 'message') })
|
|
269
282
|
},
|
|
270
283
|
genSlot (
|
|
271
284
|
type: string,
|
|
@@ -24,6 +24,7 @@ import { VExpandTransition } from '../transitions'
|
|
|
24
24
|
// Utils
|
|
25
25
|
import mixins, { ExtractVue } from '../../util/mixins'
|
|
26
26
|
import { getSlot } from '../../util/helpers'
|
|
27
|
+
import { breaking } from '../../util/console'
|
|
27
28
|
|
|
28
29
|
// Types
|
|
29
30
|
import { Route } from 'vue-router'
|
|
@@ -85,17 +86,18 @@ export default baseMixins.extend({
|
|
|
85
86
|
},
|
|
86
87
|
},
|
|
87
88
|
|
|
88
|
-
watch: {
|
|
89
|
-
isActive (val: boolean) {
|
|
90
|
-
/* istanbul ignore else */
|
|
91
|
-
if (!this.subGroup && val) {
|
|
92
|
-
this.list && this.list.listClick(this.$.uid)
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
$route: 'onRouteChange',
|
|
96
|
-
},
|
|
97
|
-
|
|
98
89
|
created () {
|
|
90
|
+
const breakingProps = [
|
|
91
|
+
['value', 'modelValue'],
|
|
92
|
+
['inputValue', 'modelValue'],
|
|
93
|
+
['onInput', 'onUpdate:modelValue'],
|
|
94
|
+
]
|
|
95
|
+
|
|
96
|
+
/* istanbul ignore next */
|
|
97
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
98
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
99
|
+
})
|
|
100
|
+
|
|
99
101
|
this.list && this.list.register(this)
|
|
100
102
|
|
|
101
103
|
if (this.group &&
|
|
@@ -106,6 +108,16 @@ export default baseMixins.extend({
|
|
|
106
108
|
}
|
|
107
109
|
},
|
|
108
110
|
|
|
111
|
+
watch: {
|
|
112
|
+
isActive (val: boolean) {
|
|
113
|
+
/* istanbul ignore else */
|
|
114
|
+
if (!this.subGroup && val) {
|
|
115
|
+
this.list && this.list.listClick(this.$.uid)
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
$route: 'onRouteChange',
|
|
119
|
+
},
|
|
120
|
+
|
|
109
121
|
beforeUnmount () {
|
|
110
122
|
this.list && this.list.unregister(this)
|
|
111
123
|
},
|
|
@@ -16,7 +16,7 @@ import Ripple from '../../directives/ripple'
|
|
|
16
16
|
import { getSlot, keyCodes } from './../../util/helpers'
|
|
17
17
|
import mergeData, { mergeClasses } from './../../util/mergeData'
|
|
18
18
|
import { ExtractVue } from './../../util/mixins'
|
|
19
|
-
import { removed } from '../../util/console'
|
|
19
|
+
import { removed, breaking } from '../../util/console'
|
|
20
20
|
|
|
21
21
|
// Types
|
|
22
22
|
import mixins from '../../util/mixins'
|
|
@@ -118,6 +118,15 @@ export default baseMixins.extend({
|
|
|
118
118
|
},
|
|
119
119
|
|
|
120
120
|
created () {
|
|
121
|
+
const breakingProps = [
|
|
122
|
+
['value', 'modelValue'],
|
|
123
|
+
]
|
|
124
|
+
|
|
125
|
+
/* istanbul ignore next */
|
|
126
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
127
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
128
|
+
})
|
|
129
|
+
|
|
121
130
|
/* istanbul ignore next */
|
|
122
131
|
if (this.$attrs.hasOwnProperty('avatar')) {
|
|
123
132
|
removed('avatar', this)
|
|
@@ -20,7 +20,7 @@ import Resize from '../../directives/resize'
|
|
|
20
20
|
|
|
21
21
|
// Utilities
|
|
22
22
|
import mixins from '../../util/mixins'
|
|
23
|
-
import { removed } from '../../util/console'
|
|
23
|
+
import { removed, breaking } from '../../util/console'
|
|
24
24
|
import {
|
|
25
25
|
convertToUnit,
|
|
26
26
|
keyCodes,
|
|
@@ -82,9 +82,17 @@ export default baseMixins.extend({
|
|
|
82
82
|
type: Object as PropType<Record<string, any>>,
|
|
83
83
|
default: () => ({}),
|
|
84
84
|
},
|
|
85
|
+
onScroll: {
|
|
86
|
+
type: Function as PropType<(event: Event) => void>,
|
|
87
|
+
default: undefined,
|
|
88
|
+
},
|
|
85
89
|
},
|
|
86
90
|
|
|
87
|
-
emits: [
|
|
91
|
+
emits: [
|
|
92
|
+
'keydown',
|
|
93
|
+
'update:modelValue',
|
|
94
|
+
'update:return-value',
|
|
95
|
+
],
|
|
88
96
|
|
|
89
97
|
data () {
|
|
90
98
|
return {
|
|
@@ -111,7 +119,7 @@ export default baseMixins.extend({
|
|
|
111
119
|
},
|
|
112
120
|
calculatedMaxHeight (): string {
|
|
113
121
|
const height = this.auto
|
|
114
|
-
? '
|
|
122
|
+
? '220px'
|
|
115
123
|
: convertToUnit(this.maxHeight)
|
|
116
124
|
|
|
117
125
|
return height || '0'
|
|
@@ -198,6 +206,16 @@ export default baseMixins.extend({
|
|
|
198
206
|
},
|
|
199
207
|
|
|
200
208
|
created () {
|
|
209
|
+
const breakingProps = [
|
|
210
|
+
['value', 'modelValue'],
|
|
211
|
+
['onInput', 'onUpdate:modelValue'],
|
|
212
|
+
]
|
|
213
|
+
|
|
214
|
+
/* istanbul ignore next */
|
|
215
|
+
breakingProps.forEach(([original, replacement]) => {
|
|
216
|
+
if (this.$attrs.hasOwnProperty(original)) breaking(original, replacement, this)
|
|
217
|
+
})
|
|
218
|
+
|
|
201
219
|
/* istanbul ignore next */
|
|
202
220
|
if (this.$attrs.hasOwnProperty('full-width')) {
|
|
203
221
|
removed('full-width', this)
|