@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.
Files changed (127) hide show
  1. package/dist/vuetify.js +78 -22
  2. package/dist/vuetify.js.map +1 -1
  3. package/dist/vuetify.min.css +1 -1
  4. package/dist/vuetify.min.js +2 -2
  5. package/es5/components/VAlert/VAlert.js +0 -1
  6. package/es5/components/VAlert/VAlert.js.map +1 -1
  7. package/es5/components/VChip/VChip.js +1 -0
  8. package/es5/components/VChip/VChip.js.map +1 -1
  9. package/es5/components/VList/VListItem.js +4 -2
  10. package/es5/components/VList/VListItem.js.map +1 -1
  11. package/es5/components/VMenu/VMenu.js +1 -1
  12. package/es5/components/VMenu/VMenu.js.map +1 -1
  13. package/es5/components/VOtpInput/VOtpInput.js +36 -0
  14. package/es5/components/VOtpInput/VOtpInput.js.map +1 -1
  15. package/es5/components/VSelect/VSelectList.js +15 -2
  16. package/es5/components/VSelect/VSelectList.js.map +1 -1
  17. package/es5/components/VTooltip/VTooltip.js +3 -3
  18. package/es5/components/VTooltip/VTooltip.js.map +1 -1
  19. package/es5/components/VTreeview/VTreeview.js +0 -7
  20. package/es5/components/VTreeview/VTreeview.js.map +1 -1
  21. package/es5/framework.js +1 -1
  22. package/es5/mixins/routable/index.js +5 -2
  23. package/es5/mixins/routable/index.js.map +1 -1
  24. package/lib/components/VAlert/VAlert.js +0 -1
  25. package/lib/components/VAlert/VAlert.js.map +1 -1
  26. package/lib/components/VChip/VChip.js +1 -0
  27. package/lib/components/VChip/VChip.js.map +1 -1
  28. package/lib/components/VList/VListItem.js +4 -2
  29. package/lib/components/VList/VListItem.js.map +1 -1
  30. package/lib/components/VMenu/VMenu.js +1 -1
  31. package/lib/components/VMenu/VMenu.js.map +1 -1
  32. package/lib/components/VOtpInput/VOtpInput.js +48 -0
  33. package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
  34. package/lib/components/VSelect/VSelectList.js +11 -5
  35. package/lib/components/VSelect/VSelectList.js.map +1 -1
  36. package/lib/components/VTooltip/VTooltip.js +3 -3
  37. package/lib/components/VTooltip/VTooltip.js.map +1 -1
  38. package/lib/components/VTreeview/VTreeview.js +0 -6
  39. package/lib/components/VTreeview/VTreeview.js.map +1 -1
  40. package/lib/framework.js +1 -1
  41. package/lib/mixins/routable/index.js +5 -2
  42. package/lib/mixins/routable/index.js.map +1 -1
  43. package/package.json +1 -1
  44. package/src/components/VAlert/VAlert.ts +0 -1
  45. package/src/components/VApp/__tests__/VApp.spec.ts +24 -18
  46. package/src/components/VApp/__tests__/__snapshots__/VApp.spec.ts.snap +4 -4
  47. package/src/components/VAppBar/__tests__/VAppBar.spec.ts +256 -74
  48. package/src/components/VAppBar/__tests__/VAppBarNavIcon.spec.ts +2 -6
  49. package/src/components/VAppBar/__tests__/__snapshots__/VAppBar.spec.ts.snap +13 -4
  50. package/src/components/VAppBar/__tests__/__snapshots__/VAppBarNavIcon.spec.ts.snap +3 -4
  51. package/src/components/VBanner/__tests__/VBanner.spec.ts +35 -36
  52. package/src/components/VBanner/__tests__/__snapshots__/VBanner.spec.ts.snap +1 -1
  53. package/src/components/VBtn/__tests__/VBtn.spec.ts +1 -1
  54. package/src/components/VCard/__tests__/VCard.spec.ts +46 -28
  55. package/src/components/VCard/__tests__/__snapshots__/VCard.spec.ts.snap +2 -2
  56. package/src/components/VCheckbox/__tests__/VCheckbox.spec.ts +157 -152
  57. package/src/components/VChip/VChip.ts +1 -0
  58. package/src/components/VChip/__tests__/VChip.spec.ts +50 -50
  59. package/src/components/VChip/__tests__/__snapshots__/VChip.spec.ts.snap +4 -4
  60. package/src/components/VChipGroup/__tests__/VChipGroup.spec.ts +14 -21
  61. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +35 -35
  62. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +10 -10
  63. package/src/components/VData/__tests__/VData.spec.ts +69 -90
  64. package/src/components/VDataTable/__tests__/MobileRow.spec.ts +55 -66
  65. package/src/components/VDataTable/__tests__/Row.spec.ts +64 -73
  66. package/src/components/VDataTable/__tests__/RowGroup.spec.ts +7 -5
  67. package/src/components/VDataTable/__tests__/VDataTable.spec.ts +910 -988
  68. package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +26 -22
  69. package/src/components/VDataTable/__tests__/VSimpleTable.spec.ts +60 -29
  70. package/src/components/VDataTable/__tests__/VVirtualTable.spec.ts +13 -15
  71. package/src/components/VDataTable/__tests__/__snapshots__/Row.spec.ts.snap +30 -0
  72. package/src/components/VDataTable/__tests__/__snapshots__/VEditDialog.spec.ts.snap +18 -10
  73. package/src/components/VDataTable/mixins/__tests__/__snapshots__/header.spec.ts.snap +1 -1
  74. package/src/components/VDivider/__tests__/VDivider.spec.ts +11 -15
  75. package/src/components/VDivider/__tests__/__snapshots__/VDivider.spec.ts.snap +2 -2
  76. package/src/components/VGrid/__tests__/VCol.spec.ts +17 -17
  77. package/src/components/VGrid/__tests__/VContainer.spec.ts +58 -3
  78. package/src/components/VGrid/__tests__/VFlex.spec.ts +3 -3
  79. package/src/components/VGrid/__tests__/VGrid.spec.ts +12 -10
  80. package/src/components/VGrid/__tests__/VLayout.spec.ts +3 -3
  81. package/src/components/VIcon/__tests__/VIcon.spec.ts +176 -70
  82. package/src/components/VImg/__tests__/__snapshots__/VImg.spec.ts.snap +55 -55
  83. package/src/components/VItemGroup/__tests__/VItem.spec.ts +22 -37
  84. package/src/components/VItemGroup/__tests__/VItemGroup.spec.ts +96 -124
  85. package/src/components/VItemGroup/__tests__/__snapshots__/VItem.spec.ts.snap +2 -0
  86. package/src/components/VLabel/__tests__/VLabel.spec.ts +240 -14
  87. package/src/components/VLazy/__tests__/VLazy.spec.ts +5 -4
  88. package/src/components/VLazy/__tests__/__snapshots__/VLazy.spec.ts.snap +2 -1
  89. package/src/components/VList/VListItem.ts +9 -3
  90. package/src/components/VList/__tests__/VList.spec.ts +13 -12
  91. package/src/components/VList/__tests__/VListGroup.spec.ts +59 -51
  92. package/src/components/VList/__tests__/VListItem.spec.ts +142 -63
  93. package/src/components/VList/__tests__/VListItemAvatar.spec.ts +5 -2
  94. package/src/components/VList/__tests__/VListItemGroup.spec.ts +5 -2
  95. package/src/components/VList/__tests__/__snapshots__/VList.spec.ts.snap +10 -10
  96. package/src/components/VList/__tests__/__snapshots__/VListGroup.spec.ts.snap +5 -6
  97. package/src/components/VList/__tests__/__snapshots__/VListItem.spec.ts.snap +1 -1
  98. package/src/components/VMain/__tests__/VMain.spec.ts +71 -17
  99. package/src/components/VMenu/VMenu.ts +1 -1
  100. package/src/components/VMessages/__tests__/VMessages.spec.ts +14 -13
  101. package/src/components/VOtpInput/VOtpInput.ts +37 -1
  102. package/src/components/VParallax/__tests__/__snapshots__/VParallax.spec.ts.snap +8 -8
  103. package/src/components/VPicker/__tests__/__snapshots__/VPicker.spec.ts.snap +2 -2
  104. package/src/components/VResponsive/__tests__/__snapshots__/VResponsive.spec.ts.snap +2 -2
  105. package/src/components/VSelect/VSelectList.ts +9 -9
  106. package/src/components/VSelect/__tests__/VSelect.spec.ts +166 -125
  107. package/src/components/VSelect/__tests__/VSelect2.spec.ts +127 -111
  108. package/src/components/VSelect/__tests__/VSelect3.spec.ts +109 -91
  109. package/src/components/VSelect/__tests__/VSelect4.spec.ts +79 -68
  110. package/src/components/VSelect/__tests__/VSelectList.spec.ts +23 -31
  111. package/src/components/VSelect/__tests__/__snapshots__/VSelect.spec.ts.snap +58 -62
  112. package/src/components/VSelect/__tests__/__snapshots__/VSelect2.spec.ts.snap +50 -62
  113. package/src/components/VSelect/__tests__/__snapshots__/VSelect3.spec.ts.snap +10 -14
  114. package/src/components/VSparkline/__tests__/VSparkline.spec.ts +33 -35
  115. package/src/components/VStepper/__tests__/VStepper.spec.ts +4 -1
  116. package/src/components/VStepper/__tests__/VStepperContent.spec.ts +104 -110
  117. package/src/components/VStepper/__tests__/VStepperStep.spec.ts +51 -44
  118. package/src/components/VSwitch/__tests__/VSwitch.spec.ts +30 -37
  119. package/src/components/VTabs/__tests__/VTabs.spec.ts +0 -7
  120. package/src/components/VTextField/__tests__/VTextField.spec.ts +342 -246
  121. package/src/components/VTextarea/__tests__/VTextarea.spec.ts +112 -35
  122. package/src/components/VTimePicker/__tests__/__snapshots__/VTimePicker.spec.ts.snap +0 -40
  123. package/src/components/VToolbar/__tests__/VToolbar.spec.ts +49 -25
  124. package/src/components/VTooltip/VTooltip.ts +3 -3
  125. package/src/components/VTooltip/__tests__/__snapshots__/VTooltip.spec.ts.snap +34 -18
  126. package/src/components/VTreeview/VTreeview.ts +0 -5
  127. package/src/mixins/routable/index.ts +6 -4
@@ -4,15 +4,16 @@ import VMessages from '../VMessages'
4
4
  // Utilities
5
5
  import {
6
6
  mount,
7
- Wrapper,
7
+ VueWrapper,
8
8
  } from '@vue/test-utils'
9
+ import { h } from 'vue'
9
10
 
10
11
  // Types
11
- import { ExtractVue } from '../../../util/mixins'
12
+ import type { ComponentPublicInstance } from 'vue'
12
13
 
13
14
  describe('VMessages.ts', () => {
14
- type Instance = ExtractVue<typeof VMessages>
15
- let mountFunction: (options?: object) => Wrapper<Instance>
15
+ type Instance = ComponentPublicInstance
16
+ let mountFunction: (options?: object) => VueWrapper<Instance>
16
17
 
17
18
  beforeEach(() => {
18
19
  mountFunction = (options = {}) => {
@@ -25,27 +26,27 @@ describe('VMessages.ts', () => {
25
26
  it('should have a default array', () => {
26
27
  const wrapper = mountFunction()
27
28
 
28
- expect(Array.isArray(wrapper.vm.value)).toBe(true)
29
+ expect(wrapper.exists()).toBe(true)
30
+ expect(wrapper.find('.v-messages').exists()).toBe(true)
29
31
  })
30
32
 
31
33
  it('should show messages', async () => {
32
34
  const wrapper = mountFunction({
33
- propsData: {
35
+ props: {
34
36
  value: ['foo', 'bar'],
35
37
  },
36
38
  })
37
39
 
38
40
  expect(wrapper.html()).toMatchSnapshot()
39
41
 
40
- wrapper.setProps({ value: [] })
41
- await wrapper.vm.$nextTick()
42
+ await wrapper.setProps({ value: [] })
42
43
 
43
44
  expect(wrapper.html()).toMatchSnapshot()
44
45
  })
45
46
 
46
47
  it('should allow HTML', () => {
47
48
  const wrapper = mountFunction({
48
- propsData: {
49
+ props: {
49
50
  value: ['<a href="#">a link</a>'],
50
51
  },
51
52
  })
@@ -55,7 +56,7 @@ describe('VMessages.ts', () => {
55
56
  // https://github.com/vuetifyjs/vuetify/issues/9491
56
57
  it('should not allow HTML', () => {
57
58
  const wrapper = mount(VMessages, {
58
- propsData: {
59
+ props: {
59
60
  value: ['<a href="#">a link</a>'],
60
61
  },
61
62
  })
@@ -65,9 +66,9 @@ describe('VMessages.ts', () => {
65
66
 
66
67
  it('should accept a scoped slot', () => {
67
68
  const wrapper = mount(VMessages, {
68
- propsData: { value: ['Foo'] },
69
- scopedSlots: {
70
- default (props) {
69
+ props: { value: ['Foo'] },
70
+ slots: {
71
+ default (props: any) {
71
72
  return h('div', props.message)
72
73
  },
73
74
  },
@@ -55,9 +55,45 @@ export default baseMixins.extend({
55
55
  }),
56
56
 
57
57
  computed: {
58
- outlined (): Boolean {
58
+ outlined (): boolean {
59
59
  return !this.plain
60
60
  },
61
+ fullWidth (): boolean {
62
+ return false
63
+ },
64
+ prefix (): boolean {
65
+ return false
66
+ },
67
+ isSingle (): boolean {
68
+ return true
69
+ },
70
+ isSolo (): boolean {
71
+ return false
72
+ },
73
+ soloInverted (): boolean {
74
+ return false
75
+ },
76
+ flat (): boolean {
77
+ return false
78
+ },
79
+ filled (): boolean {
80
+ return false
81
+ },
82
+ isEnclosed (): boolean {
83
+ return this.outlined
84
+ },
85
+ reverse (): boolean {
86
+ return false
87
+ },
88
+ placeholder (): string {
89
+ return ''
90
+ },
91
+ rounded (): boolean {
92
+ return false
93
+ },
94
+ shaped (): boolean {
95
+ return false
96
+ },
61
97
  classes (): object {
62
98
  return {
63
99
  ...VInput.computed.classes.call(this),
@@ -5,9 +5,9 @@ exports[`VParallax.ts should render 1`] = `
5
5
  style="height: 500px;"
6
6
  >
7
7
  <div class="v-parallax__image-container">
8
- <img alt
9
- class="v-parallax__image"
8
+ <img class="v-parallax__image"
10
9
  style="display: block; opacity: 0; transform: translate(-50%, 0px);"
10
+ alt
11
11
  >
12
12
  </div>
13
13
  <div class="v-parallax__content">
@@ -20,9 +20,9 @@ exports[`VParallax.ts should use alt tag when supplied 1`] = `
20
20
  style="height: 500px;"
21
21
  >
22
22
  <div class="v-parallax__image-container">
23
- <img alt="name"
24
- class="v-parallax__image"
25
- style="display: block; opacity: 1; transform: translate(-50%, 0px);"
23
+ <img class="v-parallax__image"
24
+ style="display: block; opacity: 0; transform: translate(-50%, 0px);"
25
+ alt="name"
26
26
  >
27
27
  </div>
28
28
  <div class="v-parallax__content">
@@ -35,9 +35,9 @@ exports[`VParallax.ts should use empty alt tag when not supplied 1`] = `
35
35
  style="height: 500px;"
36
36
  >
37
37
  <div class="v-parallax__image-container">
38
- <img alt
39
- class="v-parallax__image"
40
- style="display: block; opacity: 1; transform: translate(-50%, 0px);"
38
+ <img class="v-parallax__image"
39
+ style="display: block; opacity: 0; transform: translate(-50%, 0px);"
40
+ alt
41
41
  >
42
42
  </div>
43
43
  <div class="v-parallax__content">
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`VPicker.ts should render component with elevation and match snapshot 1`] = `
4
- <div class="v-picker v-card theme--light">
4
+ <div class="v-picker v-card theme--light elevation-15">
5
5
  <div class="v-picker__title primary">
6
6
  <span>
7
7
  title
@@ -64,7 +64,7 @@ exports[`VPicker.ts should render dark component and match snapshot 1`] = `
64
64
  `;
65
65
 
66
66
  exports[`VPicker.ts should render flat component and match snapshot 1`] = `
67
- <div class="v-picker v-card theme--light">
67
+ <div class="v-picker v-card v-picker--flat theme--light">
68
68
  <div class="v-picker__title primary">
69
69
  <span>
70
70
  title
@@ -2,8 +2,8 @@
2
2
 
3
3
  exports[`VResponsive.ts should force aspect ratio 1`] = `
4
4
  <div class="v-responsive">
5
- <div class="v-responsive__sizer"
6
- style="padding-bottom: 56.25%;"
5
+ <div style="padding-bottom: 56.25%;"
6
+ class="v-responsive__sizer"
7
7
  >
8
8
  </div>
9
9
  <div class="v-responsive__content">
@@ -32,7 +32,6 @@ type ListTile = { item: any, disabled?: null | boolean, value?: boolean, index:
32
32
  export default mixins(Colorable, Themeable).extend({
33
33
  name: 'v-select-list',
34
34
 
35
-
36
35
  props: {
37
36
  action: Boolean,
38
37
  dense: Boolean,
@@ -160,7 +159,7 @@ export default mixins(Colorable, Themeable).extend({
160
159
  acc[key] = this.$attrs[key]
161
160
  }
162
161
  return acc
163
- }, {} as Record<string, any>)
162
+ }, {} as Record<string, any>),
164
163
  }
165
164
 
166
165
  if (!this.$slots.item) {
@@ -173,16 +172,17 @@ export default mixins(Colorable, Themeable).extend({
173
172
  }
174
173
 
175
174
  const parent = this
175
+ const { onClick, onMousedown, ...attrsWithoutEvents } = tile
176
176
  const scopedSlot = this.$slots.item({
177
177
  parent,
178
178
  item,
179
- attrs: {
180
- ...tile.attrs,
181
- ...tile.props,
182
- ...tile.on,
183
- },
184
- on: tile.on,
185
- })
179
+ active: value,
180
+ attrs: tile,
181
+ on: {
182
+ onMousedown,
183
+ onClick
184
+ }
185
+ });
186
186
 
187
187
  return this.needsTile(scopedSlot)
188
188
  ? h(VListItem, tile, scopedSlot)