@dimailn/vuetify 2.7.2-alpha27 → 2.7.2-alpha28
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 +78 -22
- 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 +0 -1
- package/es5/components/VAlert/VAlert.js.map +1 -1
- package/es5/components/VChip/VChip.js +1 -0
- package/es5/components/VChip/VChip.js.map +1 -1
- package/es5/components/VList/VListItem.js +4 -2
- package/es5/components/VList/VListItem.js.map +1 -1
- package/es5/components/VMenu/VMenu.js +1 -1
- package/es5/components/VMenu/VMenu.js.map +1 -1
- package/es5/components/VOtpInput/VOtpInput.js +36 -0
- package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
- package/es5/components/VSelect/VSelectList.js +15 -2
- package/es5/components/VSelect/VSelectList.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/lib/components/VAlert/VAlert.js +0 -1
- package/lib/components/VAlert/VAlert.js.map +1 -1
- package/lib/components/VChip/VChip.js +1 -0
- package/lib/components/VChip/VChip.js.map +1 -1
- package/lib/components/VList/VListItem.js +4 -2
- package/lib/components/VList/VListItem.js.map +1 -1
- package/lib/components/VMenu/VMenu.js +1 -1
- package/lib/components/VMenu/VMenu.js.map +1 -1
- package/lib/components/VOtpInput/VOtpInput.js +48 -0
- package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
- package/lib/components/VSelect/VSelectList.js +11 -5
- package/lib/components/VSelect/VSelectList.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/package.json +1 -1
- package/src/components/VAlert/VAlert.ts +0 -1
- 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/VBanner/__tests__/VBanner.spec.ts +35 -36
- package/src/components/VBanner/__tests__/__snapshots__/VBanner.spec.ts.snap +1 -1
- 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/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/__tests__/__snapshots__/VColorPicker.spec.ts.snap +35 -35
- package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +10 -10
- package/src/components/VData/__tests__/VData.spec.ts +69 -90
- 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 +910 -988
- package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +26 -22
- package/src/components/VDataTable/__tests__/VSimpleTable.spec.ts +60 -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__/VEditDialog.spec.ts.snap +18 -10
- package/src/components/VDataTable/mixins/__tests__/__snapshots__/header.spec.ts.snap +1 -1
- 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/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/VListItem.ts +9 -3
- 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 +1 -1
- package/src/components/VMessages/__tests__/VMessages.spec.ts +14 -13
- package/src/components/VOtpInput/VOtpInput.ts +37 -1
- 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/VResponsive/__tests__/__snapshots__/VResponsive.spec.ts.snap +2 -2
- package/src/components/VSelect/VSelectList.ts +9 -9
- 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/VSparkline/__tests__/VSparkline.spec.ts +33 -35
- 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/__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
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import Row from '../Row'
|
|
2
2
|
import {
|
|
3
3
|
mount,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
VueWrapper,
|
|
5
|
+
enableAutoUnmount,
|
|
6
6
|
} from '@vue/test-utils'
|
|
7
|
-
import
|
|
7
|
+
import { h } from 'vue'
|
|
8
8
|
|
|
9
9
|
describe('Table Row', () => {
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
let mountFunction: (options?: any) => VueWrapper<any>
|
|
11
|
+
|
|
12
12
|
beforeEach(() => {
|
|
13
|
-
mountFunction = (options?:
|
|
13
|
+
mountFunction = (options?: any) => {
|
|
14
14
|
return mount(Row, options)
|
|
15
15
|
}
|
|
16
16
|
})
|
|
17
17
|
|
|
18
|
+
enableAutoUnmount(afterEach)
|
|
19
|
+
|
|
18
20
|
it('should render without slots', () => {
|
|
19
21
|
const wrapper = mountFunction({
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
diesel: 0.65,
|
|
29
|
-
},
|
|
22
|
+
props: {
|
|
23
|
+
headers: [
|
|
24
|
+
{ text: 'Petrol', value: 'petrol' },
|
|
25
|
+
{ text: 'Diesel', value: 'diesel' },
|
|
26
|
+
],
|
|
27
|
+
item: {
|
|
28
|
+
petrol: 0.68,
|
|
29
|
+
diesel: 0.65,
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
32
|
})
|
|
@@ -38,25 +38,23 @@ describe('Table Row', () => {
|
|
|
38
38
|
|
|
39
39
|
it('should render non-string values', () => {
|
|
40
40
|
const wrapper = mountFunction({
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
null: null,
|
|
59
|
-
},
|
|
41
|
+
props: {
|
|
42
|
+
headers: [
|
|
43
|
+
{ text: 'String', value: 'string' },
|
|
44
|
+
{ text: 'Number', value: 'number' },
|
|
45
|
+
{ text: 'Array', value: 'array' },
|
|
46
|
+
{ text: 'Boolean', value: 'boolean' },
|
|
47
|
+
{ text: 'Object', value: 'object' },
|
|
48
|
+
{ text: 'Undefined', value: 'undefined' },
|
|
49
|
+
{ text: 'Null', value: 'null' },
|
|
50
|
+
],
|
|
51
|
+
item: {
|
|
52
|
+
string: 'string',
|
|
53
|
+
number: 12.34,
|
|
54
|
+
array: [1, 2],
|
|
55
|
+
boolean: false,
|
|
56
|
+
object: { foo: 'bar' },
|
|
57
|
+
null: null,
|
|
60
58
|
},
|
|
61
59
|
},
|
|
62
60
|
})
|
|
@@ -66,40 +64,36 @@ describe('Table Row', () => {
|
|
|
66
64
|
|
|
67
65
|
it('should render with cellClass', () => {
|
|
68
66
|
const wrapper = mountFunction({
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
diesel: 0.65,
|
|
78
|
-
},
|
|
67
|
+
props: {
|
|
68
|
+
headers: [
|
|
69
|
+
{ text: 'Petrol', value: 'petrol', cellClass: 'a' },
|
|
70
|
+
{ text: 'Diesel', value: 'diesel', cellClass: ['b', 'c'] },
|
|
71
|
+
],
|
|
72
|
+
item: {
|
|
73
|
+
petrol: 0.68,
|
|
74
|
+
diesel: 0.65,
|
|
79
75
|
},
|
|
80
76
|
},
|
|
81
77
|
})
|
|
82
78
|
|
|
83
79
|
const tds = wrapper.findAll('td')
|
|
84
|
-
expect(tds
|
|
85
|
-
expect(tds
|
|
86
|
-
expect(tds
|
|
80
|
+
expect(tds[0].classes()).toContain('a')
|
|
81
|
+
expect(tds[1].classes()).toContain('b')
|
|
82
|
+
expect(tds[1].classes()).toContain('c')
|
|
87
83
|
expect(wrapper.html()).toMatchSnapshot()
|
|
88
84
|
})
|
|
89
85
|
|
|
90
|
-
it
|
|
86
|
+
it('should render with regular slots', () => {
|
|
91
87
|
const wrapper = mountFunction({
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
],
|
|
98
|
-
},
|
|
88
|
+
props: {
|
|
89
|
+
headers: [
|
|
90
|
+
{ text: 'Petrol', value: 'petrol' },
|
|
91
|
+
{ text: 'Diesel', value: 'diesel' },
|
|
92
|
+
],
|
|
99
93
|
},
|
|
100
94
|
slots: {
|
|
101
|
-
|
|
102
|
-
|
|
95
|
+
petrol: '<p class="test">$0.68</p>',
|
|
96
|
+
diesel: '<p class="test">$0.65</p>',
|
|
103
97
|
},
|
|
104
98
|
})
|
|
105
99
|
|
|
@@ -109,24 +103,21 @@ describe('Table Row', () => {
|
|
|
109
103
|
expect(wrapper.html()).toMatchSnapshot()
|
|
110
104
|
})
|
|
111
105
|
|
|
112
|
-
it
|
|
113
|
-
const vm = new Vue()
|
|
106
|
+
it('should render with scoped slots', () => {
|
|
114
107
|
const wrapper = mountFunction({
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
diesel: 0.65,
|
|
124
|
-
},
|
|
108
|
+
props: {
|
|
109
|
+
headers: [
|
|
110
|
+
{ text: 'Petrol', value: 'petrol' },
|
|
111
|
+
{ text: 'Diesel', value: 'diesel' },
|
|
112
|
+
],
|
|
113
|
+
item: {
|
|
114
|
+
petrol: 0.68,
|
|
115
|
+
diesel: 0.65,
|
|
125
116
|
},
|
|
126
117
|
},
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
118
|
+
slots: {
|
|
119
|
+
petrol: ({ header, value }: any) => h('p', { class: `test ${header.value}` }, [value]),
|
|
120
|
+
diesel: ({ header, value }: any) => h('p', { class: `test ${header.value}` }, [value]),
|
|
130
121
|
},
|
|
131
122
|
})
|
|
132
123
|
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import RowGroup from '../RowGroup'
|
|
2
2
|
import {
|
|
3
3
|
mount,
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
VueWrapper,
|
|
5
|
+
enableAutoUnmount,
|
|
6
6
|
} from '@vue/test-utils'
|
|
7
7
|
|
|
8
8
|
describe('Table RowGroup', () => {
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
let mountFunction: (options?: any) => VueWrapper<any>
|
|
10
|
+
|
|
11
|
+
enableAutoUnmount(afterEach)
|
|
12
|
+
|
|
11
13
|
beforeEach(() => {
|
|
12
|
-
mountFunction = (options?:
|
|
14
|
+
mountFunction = (options?: any) => {
|
|
13
15
|
return mount(RowGroup, options)
|
|
14
16
|
}
|
|
15
17
|
})
|