@dimailn/vuetify 2.7.2-alpha24 → 2.7.2-alpha26

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 (244) hide show
  1. package/dist/vuetify.js +583 -388
  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/VAppBar/VAppBarNavIcon.js +5 -1
  6. package/es5/components/VAppBar/VAppBarNavIcon.js.map +1 -1
  7. package/es5/components/VBanner/VBanner.js +15 -6
  8. package/es5/components/VBanner/VBanner.js.map +1 -1
  9. package/es5/components/VBreadcrumbs/VBreadcrumbs.js +18 -6
  10. package/es5/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
  11. package/es5/components/VBtn/VBtn.js +19 -15
  12. package/es5/components/VBtn/VBtn.js.map +1 -1
  13. package/es5/components/VCarousel/VCarousel.js +10 -4
  14. package/es5/components/VCarousel/VCarousel.js.map +1 -1
  15. package/es5/components/VCarousel/VCarouselItem.js +7 -3
  16. package/es5/components/VCarousel/VCarouselItem.js.map +1 -1
  17. package/es5/components/VCheckbox/VCheckbox.js +5 -1
  18. package/es5/components/VCheckbox/VCheckbox.js.map +1 -1
  19. package/es5/components/VColorPicker/VColorPicker.js +18 -31
  20. package/es5/components/VColorPicker/VColorPicker.js.map +1 -1
  21. package/es5/components/VColorPicker/VColorPickerCanvas.js +45 -46
  22. package/es5/components/VColorPicker/VColorPickerCanvas.js.map +1 -1
  23. package/es5/components/VColorPicker/VColorPickerEdit.js +27 -26
  24. package/es5/components/VColorPicker/VColorPickerEdit.js.map +1 -1
  25. package/es5/components/VColorPicker/VColorPickerPreview.js +41 -30
  26. package/es5/components/VColorPicker/VColorPickerPreview.js.map +1 -1
  27. package/es5/components/VColorPicker/VColorPickerSwatches.js +13 -10
  28. package/es5/components/VColorPicker/VColorPickerSwatches.js.map +1 -1
  29. package/es5/components/VDataIterator/VDataFooter.js +5 -1
  30. package/es5/components/VDataIterator/VDataFooter.js.map +1 -1
  31. package/es5/components/VDataTable/VDataTable.js +28 -18
  32. package/es5/components/VDataTable/VDataTable.js.map +1 -1
  33. package/es5/components/VDataTable/VDataTableHeader.js +2 -6
  34. package/es5/components/VDataTable/VDataTableHeader.js.map +1 -1
  35. package/es5/components/VDataTable/VEditDialog.js +6 -2
  36. package/es5/components/VDataTable/VEditDialog.js.map +1 -1
  37. package/es5/components/VDataTable/mixins/header.js +5 -1
  38. package/es5/components/VDataTable/mixins/header.js.map +1 -1
  39. package/es5/components/VDatePicker/VDatePickerHeader.js +8 -2
  40. package/es5/components/VDatePicker/VDatePickerHeader.js.map +1 -1
  41. package/es5/components/VDatePicker/VDatePickerTitle.js +13 -5
  42. package/es5/components/VDatePicker/VDatePickerTitle.js.map +1 -1
  43. package/es5/components/VDatePicker/mixins/date-picker-table.js +5 -3
  44. package/es5/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
  45. package/es5/components/VDialog/VDialog.js +16 -12
  46. package/es5/components/VDialog/VDialog.js.map +1 -1
  47. package/es5/components/VExpansionPanel/VExpansionPanelContent.js +11 -9
  48. package/es5/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
  49. package/es5/components/VExpansionPanel/VExpansionPanelHeader.js +15 -9
  50. package/es5/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
  51. package/es5/components/VImg/VImg.js +6 -2
  52. package/es5/components/VImg/VImg.js.map +1 -1
  53. package/es5/components/VInput/VInput.js +28 -8
  54. package/es5/components/VInput/VInput.js.map +1 -1
  55. package/es5/components/VList/VListGroup.js +27 -9
  56. package/es5/components/VList/VListGroup.js.map +1 -1
  57. package/es5/components/VList/VListItem.js +5 -1
  58. package/es5/components/VList/VListItem.js.map +1 -1
  59. package/es5/components/VMessages/VMessages.js +5 -1
  60. package/es5/components/VMessages/VMessages.js.map +1 -1
  61. package/es5/components/VOverflowBtn/VOverflowBtn.js +3 -1
  62. package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
  63. package/es5/components/VPagination/VPagination.js +3 -1
  64. package/es5/components/VPagination/VPagination.js.map +1 -1
  65. package/es5/components/VPicker/VPicker.js +5 -1
  66. package/es5/components/VPicker/VPicker.js.map +1 -1
  67. package/es5/components/VRadioGroup/VRadio.js +10 -2
  68. package/es5/components/VRadioGroup/VRadio.js.map +1 -1
  69. package/es5/components/VSelect/VSelect.js +6 -2
  70. package/es5/components/VSelect/VSelect.js.map +1 -1
  71. package/es5/components/VSelect/VSelectList.js +17 -9
  72. package/es5/components/VSelect/VSelectList.js.map +1 -1
  73. package/es5/components/VSlideGroup/VSlideGroup.js +26 -18
  74. package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
  75. package/es5/components/VSlider/VSlider.js +36 -27
  76. package/es5/components/VSlider/VSlider.js.map +1 -1
  77. package/es5/components/VStepper/VStepperContent.js +3 -1
  78. package/es5/components/VStepper/VStepperContent.js.map +1 -1
  79. package/es5/components/VSwitch/VSwitch.js +10 -6
  80. package/es5/components/VSwitch/VSwitch.js.map +1 -1
  81. package/es5/components/VTabs/VTabs.js +6 -2
  82. package/es5/components/VTabs/VTabs.js.map +1 -1
  83. package/es5/components/VTextField/VTextField.js +7 -3
  84. package/es5/components/VTextField/VTextField.js.map +1 -1
  85. package/es5/components/VTooltip/VTooltip.js +6 -8
  86. package/es5/components/VTooltip/VTooltip.js.map +1 -1
  87. package/es5/components/VTreeview/VTreeviewNode.js +11 -3
  88. package/es5/components/VTreeview/VTreeviewNode.js.map +1 -1
  89. package/es5/components/transitions/createTransition.js +8 -2
  90. package/es5/components/transitions/createTransition.js.map +1 -1
  91. package/es5/framework.js +1 -1
  92. package/es5/mixins/picker/index.js +13 -3
  93. package/es5/mixins/picker/index.js.map +1 -1
  94. package/lib/components/VAppBar/VAppBarNavIcon.js +1 -1
  95. package/lib/components/VAppBar/VAppBarNavIcon.js.map +1 -1
  96. package/lib/components/VBanner/VBanner.js +3 -3
  97. package/lib/components/VBanner/VBanner.js.map +1 -1
  98. package/lib/components/VBreadcrumbs/VBreadcrumbs.js +2 -2
  99. package/lib/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
  100. package/lib/components/VBtn/VBtn.js +20 -19
  101. package/lib/components/VBtn/VBtn.js.map +1 -1
  102. package/lib/components/VCarousel/VCarousel.js +3 -3
  103. package/lib/components/VCarousel/VCarousel.js.map +1 -1
  104. package/lib/components/VCarousel/VCarouselItem.js +1 -1
  105. package/lib/components/VCarousel/VCarouselItem.js.map +1 -1
  106. package/lib/components/VCheckbox/VCheckbox.js +1 -1
  107. package/lib/components/VCheckbox/VCheckbox.js.map +1 -1
  108. package/lib/components/VColorPicker/VColorPicker.js +29 -37
  109. package/lib/components/VColorPicker/VColorPicker.js.map +1 -1
  110. package/lib/components/VColorPicker/VColorPickerCanvas.js +41 -43
  111. package/lib/components/VColorPicker/VColorPickerCanvas.js.map +1 -1
  112. package/lib/components/VColorPicker/VColorPickerEdit.js +25 -31
  113. package/lib/components/VColorPicker/VColorPickerEdit.js.map +1 -1
  114. package/lib/components/VColorPicker/VColorPickerPreview.js +45 -32
  115. package/lib/components/VColorPicker/VColorPickerPreview.js.map +1 -1
  116. package/lib/components/VColorPicker/VColorPickerSwatches.js +15 -9
  117. package/lib/components/VColorPicker/VColorPickerSwatches.js.map +1 -1
  118. package/lib/components/VDataIterator/VDataFooter.js +1 -1
  119. package/lib/components/VDataIterator/VDataFooter.js.map +1 -1
  120. package/lib/components/VDataTable/VDataTable.js +8 -9
  121. package/lib/components/VDataTable/VDataTable.js.map +1 -1
  122. package/lib/components/VDataTable/VDataTableHeader.js +3 -6
  123. package/lib/components/VDataTable/VDataTableHeader.js.map +1 -1
  124. package/lib/components/VDataTable/VEditDialog.js +2 -2
  125. package/lib/components/VDataTable/VEditDialog.js.map +1 -1
  126. package/lib/components/VDataTable/mixins/header.js +1 -1
  127. package/lib/components/VDataTable/mixins/header.js.map +1 -1
  128. package/lib/components/VDatePicker/VDatePickerHeader.js +2 -2
  129. package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
  130. package/lib/components/VDatePicker/VDatePickerTitle.js +2 -2
  131. package/lib/components/VDatePicker/VDatePickerTitle.js.map +1 -1
  132. package/lib/components/VDatePicker/mixins/date-picker-table.js +1 -1
  133. package/lib/components/VDatePicker/mixins/date-picker-table.js.map +1 -1
  134. package/lib/components/VDialog/VDialog.js +2 -2
  135. package/lib/components/VDialog/VDialog.js.map +1 -1
  136. package/lib/components/VExpansionPanel/VExpansionPanelContent.js +1 -1
  137. package/lib/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
  138. package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +2 -2
  139. package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
  140. package/lib/components/VImg/VImg.js +2 -2
  141. package/lib/components/VImg/VImg.js.map +1 -1
  142. package/lib/components/VInput/VInput.js +14 -6
  143. package/lib/components/VInput/VInput.js.map +1 -1
  144. package/lib/components/VList/VListGroup.js +5 -5
  145. package/lib/components/VList/VListGroup.js.map +1 -1
  146. package/lib/components/VList/VListItem.js +3 -1
  147. package/lib/components/VList/VListItem.js.map +1 -1
  148. package/lib/components/VMessages/VMessages.js +1 -1
  149. package/lib/components/VMessages/VMessages.js.map +1 -1
  150. package/lib/components/VOverflowBtn/VOverflowBtn.js +1 -1
  151. package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
  152. package/lib/components/VPagination/VPagination.js +1 -1
  153. package/lib/components/VPagination/VPagination.js.map +1 -1
  154. package/lib/components/VPicker/VPicker.js +1 -1
  155. package/lib/components/VPicker/VPicker.js.map +1 -1
  156. package/lib/components/VRadioGroup/VRadio.js +2 -2
  157. package/lib/components/VRadioGroup/VRadio.js.map +1 -1
  158. package/lib/components/VSelect/VSelect.js +2 -2
  159. package/lib/components/VSelect/VSelect.js.map +1 -1
  160. package/lib/components/VSelect/VSelectList.js +2 -2
  161. package/lib/components/VSelect/VSelectList.js.map +1 -1
  162. package/lib/components/VSlideGroup/VSlideGroup.js +3 -3
  163. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  164. package/lib/components/VSlider/VSlider.js +26 -21
  165. package/lib/components/VSlider/VSlider.js.map +1 -1
  166. package/lib/components/VStepper/VStepperContent.js +1 -1
  167. package/lib/components/VStepper/VStepperContent.js.map +1 -1
  168. package/lib/components/VSwitch/VSwitch.js +1 -1
  169. package/lib/components/VSwitch/VSwitch.js.map +1 -1
  170. package/lib/components/VTabs/VTabs.js +2 -2
  171. package/lib/components/VTabs/VTabs.js.map +1 -1
  172. package/lib/components/VTextField/VTextField.js +1 -1
  173. package/lib/components/VTextField/VTextField.js.map +1 -1
  174. package/lib/components/VTooltip/VTooltip.js +7 -10
  175. package/lib/components/VTooltip/VTooltip.js.map +1 -1
  176. package/lib/components/VTreeview/VTreeviewNode.js +3 -3
  177. package/lib/components/VTreeview/VTreeviewNode.js.map +1 -1
  178. package/lib/components/transitions/createTransition.js +2 -2
  179. package/lib/components/transitions/createTransition.js.map +1 -1
  180. package/lib/framework.js +1 -1
  181. package/lib/mixins/picker/index.js +5 -3
  182. package/lib/mixins/picker/index.js.map +1 -1
  183. package/package.json +1 -1
  184. package/src/components/VAppBar/VAppBarNavIcon.ts +1 -1
  185. package/src/components/VBanner/VBanner.ts +3 -3
  186. package/src/components/VBreadcrumbs/VBreadcrumbs.ts +2 -2
  187. package/src/components/VBtn/VBtn.ts +24 -16
  188. package/src/components/VBtn/__tests__/VBtn.spec.ts +257 -242
  189. package/src/components/VBtn/__tests__/__snapshots__/VBtn.spec.ts.snap +13 -73
  190. package/src/components/VCarousel/VCarousel.ts +3 -3
  191. package/src/components/VCarousel/VCarouselItem.ts +1 -1
  192. package/src/components/VCheckbox/VCheckbox.ts +1 -1
  193. package/src/components/VColorPicker/VColorPicker.ts +32 -35
  194. package/src/components/VColorPicker/VColorPickerCanvas.ts +44 -37
  195. package/src/components/VColorPicker/VColorPickerEdit.ts +37 -35
  196. package/src/components/VColorPicker/VColorPickerPreview.ts +48 -28
  197. package/src/components/VColorPicker/VColorPickerSwatches.ts +23 -12
  198. package/src/components/VColorPicker/__tests__/VColorPicker.spec.ts +47 -47
  199. package/src/components/VColorPicker/__tests__/VColorPickerCanvas.spec.ts +15 -13
  200. package/src/components/VColorPicker/__tests__/VColorPickerEdit.spec.ts +52 -50
  201. package/src/components/VColorPicker/__tests__/VColorPickerPreview.spec.ts +101 -30
  202. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +200 -157
  203. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPickerEdit.spec.ts.snap +28 -11
  204. package/src/components/VDataIterator/VDataFooter.ts +1 -1
  205. package/src/components/VDataTable/VDataTable.ts +8 -8
  206. package/src/components/VDataTable/VDataTableHeader.ts +2 -4
  207. package/src/components/VDataTable/VEditDialog.ts +2 -2
  208. package/src/components/VDataTable/mixins/header.ts +1 -1
  209. package/src/components/VDatePicker/VDatePickerHeader.ts +3 -3
  210. package/src/components/VDatePicker/VDatePickerTitle.ts +2 -2
  211. package/src/components/VDatePicker/mixins/date-picker-table.ts +1 -1
  212. package/src/components/VDialog/VDialog.ts +2 -2
  213. package/src/components/VExpansionPanel/VExpansionPanelContent.ts +1 -1
  214. package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +2 -2
  215. package/src/components/VImg/VImg.ts +2 -2
  216. package/src/components/VInput/VInput.ts +10 -4
  217. package/src/components/VInput/__tests__/VInput.spec.ts +170 -234
  218. package/src/components/VInput/__tests__/__snapshots__/VInput.spec.ts.snap +50 -101
  219. package/src/components/VList/VListGroup.ts +5 -5
  220. package/src/components/VList/VListItem.ts +7 -4
  221. package/src/components/VMessages/VMessages.ts +1 -1
  222. package/src/components/VOverflowBtn/VOverflowBtn.ts +1 -1
  223. package/src/components/VPagination/VPagination.ts +1 -1
  224. package/src/components/VPicker/VPicker.ts +1 -1
  225. package/src/components/VRadioGroup/VRadio.ts +2 -2
  226. package/src/components/VSelect/VSelect.ts +2 -2
  227. package/src/components/VSelect/VSelectList.ts +3 -3
  228. package/src/components/VSkeletonLoader/__tests__/VSkeletonLoader.spec.ts +22 -15
  229. package/src/components/VSkeletonLoader/__tests__/__snapshots__/VSkeletonLoader.spec.ts.snap +60 -60
  230. package/src/components/VSlideGroup/VSlideGroup.ts +3 -3
  231. package/src/components/VSlider/VSlider.ts +44 -28
  232. package/src/components/VSlider/__tests__/VSlider.spec.ts +188 -286
  233. package/src/components/VSlider/__tests__/__snapshots__/VSlider.spec.ts.snap +157 -246
  234. package/src/components/VStepper/VStepperContent.ts +1 -1
  235. package/src/components/VSwitch/VSwitch.ts +1 -1
  236. package/src/components/VTabs/VTabs.ts +2 -2
  237. package/src/components/VTabs/__tests__/VTab.spec.ts +3 -3
  238. package/src/components/VTabs/__tests__/VTabsBar.spec.ts +2 -2
  239. package/src/components/VTextField/VTextField.ts +1 -1
  240. package/src/components/VTooltip/VTooltip.ts +21 -21
  241. package/src/components/VTooltip/__tests__/VTooltip.spec.ts +60 -75
  242. package/src/components/VTreeview/VTreeviewNode.ts +3 -3
  243. package/src/components/transitions/createTransition.ts +2 -2
  244. package/src/mixins/picker/index.ts +4 -4
@@ -1,43 +1,54 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
+ exports[`VInput.ts should apply attrs to root element 1`] = `
4
+ <div class="v-input theme--light"
5
+ foo="bar"
6
+ >
7
+ <div class="v-input__control">
8
+ <div class="v-input__slot">
9
+ </div>
10
+ <div class="v-messages theme--light">
11
+ <div class="v-messages__wrapper">
12
+ </div>
13
+ </div>
14
+ </div>
15
+ </div>
16
+ `;
17
+
3
18
  exports[`VInput.ts should apply theme to label, counter, messages and icons 1`] = `
4
19
  <div class="v-input theme--light">
5
20
  <div class="v-input__prepend-outer">
6
21
  <div class="v-input__icon v-input__icon--prepend">
7
- <i aria-hidden="true"
8
- class="v-icon notranslate material-icons theme--light"
22
+ <span class="v-icon notranslate theme--light"
23
+ aria-hidden="true"
9
24
  >
10
- prepend
11
- </i>
25
+ </span>
12
26
  </div>
13
27
  </div>
14
28
  <div class="v-input__control">
15
29
  <div class="v-input__slot">
16
- <label for="input-68"
17
- class="v-label theme--light"
30
+ <label class="v-label theme--light"
31
+ for="input-50"
32
+ aria-hidden="false"
18
33
  style="left: 0px; position: relative;"
19
34
  >
20
35
  foo
21
36
  </label>
22
37
  </div>
23
38
  <div class="v-messages theme--light">
24
- <span name="message-transition"
25
- tag="div"
26
- class="v-messages__wrapper"
27
- >
39
+ <div class="v-messages__wrapper">
28
40
  <div class="v-messages__message">
29
41
  bar
30
42
  </div>
31
- </span>
43
+ </div>
32
44
  </div>
33
45
  </div>
34
46
  <div class="v-input__append-outer">
35
47
  <div class="v-input__icon v-input__icon--append">
36
- <i aria-hidden="true"
37
- class="v-icon notranslate material-icons theme--light"
48
+ <span class="v-icon notranslate theme--light"
49
+ aria-hidden="true"
38
50
  >
39
- append
40
- </i>
51
+ </span>
41
52
  </div>
42
53
  </div>
43
54
  </div>
@@ -49,11 +60,8 @@ exports[`VInput.ts should be in an error state 1`] = `
49
60
  <div class="v-input__slot">
50
61
  </div>
51
62
  <div class="v-messages theme--light error--text">
52
- <span name="message-transition"
53
- tag="div"
54
- class="v-messages__wrapper"
55
- >
56
- </span>
63
+ <div class="v-messages__wrapper">
64
+ </div>
57
65
  </div>
58
66
  </div>
59
67
  </div>
@@ -67,14 +75,11 @@ exports[`VInput.ts should be in an error state 2`] = `
67
75
  <div class="v-messages theme--light error--text"
68
76
  role="alert"
69
77
  >
70
- <span name="message-transition"
71
- tag="div"
72
- class="v-messages__wrapper"
73
- >
74
- <div class="v-messages__message">
78
+ <div class="v-messages__wrapper">
79
+ <div class="v-messages__message message-transition-enter-from message-transition-enter-active">
75
80
  required
76
81
  </div>
77
- </span>
82
+ </div>
78
83
  </div>
79
84
  </div>
80
85
  </div>
@@ -84,22 +89,18 @@ exports[`VInput.ts should generate an icon and match snapshot 1`] = `
84
89
  <div class="v-input theme--light">
85
90
  <div class="v-input__prepend-outer">
86
91
  <div class="v-input__icon v-input__icon--prepend">
87
- <i aria-hidden="true"
88
- class="v-icon notranslate material-icons theme--light"
92
+ <span class="v-icon notranslate theme--light"
93
+ aria-hidden="true"
89
94
  >
90
- list
91
- </i>
95
+ </span>
92
96
  </div>
93
97
  </div>
94
98
  <div class="v-input__control">
95
99
  <div class="v-input__slot">
96
100
  </div>
97
101
  <div class="v-messages theme--light">
98
- <span name="message-transition"
99
- tag="div"
100
- class="v-messages__wrapper"
101
- >
102
- </span>
102
+ <div class="v-messages__wrapper">
103
+ </div>
103
104
  </div>
104
105
  </div>
105
106
  </div>
@@ -111,20 +112,16 @@ exports[`VInput.ts should generate an icon and match snapshot 2`] = `
111
112
  <div class="v-input__slot">
112
113
  </div>
113
114
  <div class="v-messages theme--light">
114
- <span name="message-transition"
115
- tag="div"
116
- class="v-messages__wrapper"
117
- >
118
- </span>
115
+ <div class="v-messages__wrapper">
116
+ </div>
119
117
  </div>
120
118
  </div>
121
119
  <div class="v-input__append-outer">
122
120
  <div class="v-input__icon v-input__icon--append">
123
- <i aria-hidden="true"
124
- class="v-icon notranslate material-icons theme--light"
121
+ <span class="v-icon notranslate theme--light"
122
+ aria-hidden="true"
125
123
  >
126
- list
127
- </i>
124
+ </span>
128
125
  </div>
129
126
  </div>
130
127
  </div>
@@ -136,11 +133,8 @@ exports[`VInput.ts should generate append and prepend slots 1`] = `
136
133
  <div class="v-input__slot">
137
134
  </div>
138
135
  <div class="v-messages theme--light">
139
- <span name="message-transition"
140
- tag="div"
141
- class="v-messages__wrapper"
142
- >
143
- </span>
136
+ <div class="v-messages__wrapper">
137
+ </div>
144
138
  </div>
145
139
  </div>
146
140
  <div class="v-input__append-outer">
@@ -162,27 +156,8 @@ exports[`VInput.ts should generate append and prepend slots 2`] = `
162
156
  <div class="v-input__slot">
163
157
  </div>
164
158
  <div class="v-messages theme--light">
165
- <span name="message-transition"
166
- tag="div"
167
- class="v-messages__wrapper"
168
- >
169
- </span>
170
- </div>
171
- </div>
172
- </div>
173
- `;
174
-
175
- exports[`VInput.ts should not apply attrs to element 1`] = `
176
- <div class="v-input theme--light">
177
- <div class="v-input__control">
178
- <div class="v-input__slot">
179
- </div>
180
- <div class="v-messages theme--light">
181
- <span name="message-transition"
182
- tag="div"
183
- class="v-messages__wrapper"
184
- >
185
- </span>
159
+ <div class="v-messages__wrapper">
160
+ </div>
186
161
  </div>
187
162
  </div>
188
163
  </div>
@@ -201,43 +176,17 @@ exports[`VInput.ts should render a label 1`] = `
201
176
  <div class="v-input theme--light">
202
177
  <div class="v-input__control">
203
178
  <div class="v-input__slot">
204
- <label for="input-59"
205
- class="v-label theme--light"
179
+ <label class="v-label theme--light"
180
+ for="input-45"
181
+ aria-hidden="false"
206
182
  style="left: 0px; position: relative;"
207
183
  >
208
184
  foo
209
185
  </label>
210
186
  </div>
211
187
  <div class="v-messages theme--light">
212
- <span name="message-transition"
213
- tag="div"
214
- class="v-messages__wrapper"
215
- >
216
- </span>
217
- </div>
218
- </div>
219
- </div>
220
- `;
221
-
222
- exports[`VInput.ts should render a label 2`] = `
223
- <div class="v-input theme--light">
224
- <div class="v-input__control">
225
- <div class="v-input__slot">
226
- <label for="input-63"
227
- class="v-label theme--light"
228
- style="left: 0px; position: relative;"
229
- >
230
- <div>
231
- foo
232
- </div>
233
- </label>
234
- </div>
235
- <div class="v-messages theme--light">
236
- <span name="message-transition"
237
- tag="div"
238
- class="v-messages__wrapper"
239
- >
240
- </span>
188
+ <div class="v-messages__wrapper">
189
+ </div>
241
190
  </div>
242
191
  </div>
243
192
  </div>
@@ -122,7 +122,7 @@ export default baseMixins.extend({
122
122
  this.$nextTick(() => (this.isActive = !this.isActive))
123
123
  },
124
124
  genIcon (icon: string | false): VNode {
125
- return h(VIcon, icon)
125
+ return h(VIcon, {}, () => icon)
126
126
  },
127
127
  genAppendIcon (): VNode | null {
128
128
  const icon = !this.subGroup ? this.appendIcon : false
@@ -132,7 +132,7 @@ export default baseMixins.extend({
132
132
 
133
133
  return h(VListItemIcon, {
134
134
  class: 'v-list-group__header__append-icon',
135
- }, [
135
+ }, () => [
136
136
  slot || this.genIcon(icon),
137
137
  ])
138
138
  },
@@ -147,7 +147,7 @@ export default baseMixins.extend({
147
147
  inputValue: this.isActive,
148
148
  ...this.listeners$,
149
149
  onClick: this.click
150
- }, [
150
+ }, () => [
151
151
  this.genPrependIcon(),
152
152
  getSlot(this, 'activator'),
153
153
  this.genAppendIcon(),
@@ -178,7 +178,7 @@ export default baseMixins.extend({
178
178
 
179
179
  return h(VListItemIcon, {
180
180
  class: 'v-list-group__header__prepend-icon',
181
- }, [
181
+ }, () => [
182
182
  slot || this.genIcon(icon),
183
183
  ])
184
184
  },
@@ -211,7 +211,7 @@ export default baseMixins.extend({
211
211
  class: ['v-list-group', this.classes]
212
212
  }), [
213
213
  this.genHeader(),
214
- h(VExpandTransition, this.genItems()),
214
+ h(VExpandTransition, {}, () => this.genItems()),
215
215
  ])
216
216
  },
217
217
  })
@@ -192,9 +192,12 @@ export default baseMixins.extend({
192
192
  toggle: this.toggle,
193
193
  })
194
194
 
195
- return withDirectives(
196
- h(tag, this.isActive ? this.setTextColor(this.color, data) : data, children),
197
- directives
198
- )
195
+ const nodeData = this.isActive ? this.setTextColor(this.color, data) : data
196
+
197
+ const node = typeof tag === 'string'
198
+ ? h(tag, nodeData, children)
199
+ : h(tag, nodeData, () => children)
200
+
201
+ return withDirectives(node, directives)
199
202
  },
200
203
  })
@@ -30,7 +30,7 @@ export default mixins(Colorable, Themeable).extend({
30
30
  class: 'v-messages__wrapper',
31
31
  name: 'message-transition',
32
32
  tag: 'div',
33
- }, this.value.map(this.genMessage))
33
+ }, () => this.value.map(this.genMessage))
34
34
  },
35
35
  genMessage (message: string, key: number) {
36
36
  return h('div', {
@@ -99,7 +99,7 @@ export default defineComponent({
99
99
  itemObj.callback(e)
100
100
  },
101
101
  },
102
- }, [itemObj.text])
102
+ }, () => [itemObj.text])
103
103
  },
104
104
  updateValue (val: boolean) {
105
105
  if (val) {
@@ -197,7 +197,7 @@ export default mixins(
197
197
  'aria-label': label,
198
198
  ...(disabled ? {} : { onClick: fn }),
199
199
  }),
200
- [h(VIcon, { color: this.navigationTextColor }, [icon])]
200
+ [h(VIcon, { color: this.navigationTextColor }, () => [icon])]
201
201
  ),
202
202
  ])
203
203
  },
@@ -55,7 +55,7 @@ export default mixins(
55
55
  genBodyTransition () {
56
56
  return h(Transition, {
57
57
  name: this.transition,
58
- }, getSlot(this))
58
+ }, () => getSlot(this))
59
59
  },
60
60
  genBody () {
61
61
  return h('div', {
@@ -139,7 +139,7 @@ export default baseMixins.extend({
139
139
  for: this.computedId,
140
140
  color: this.validationState,
141
141
  focused: this.hasState,
142
- }, getSlot(this, 'label') || this.label)
142
+ }, () => getSlot(this, 'label') || this.label)
143
143
  },
144
144
  genRadio () {
145
145
  const { title, ...radioAttrs } = this.attrs$
@@ -149,7 +149,7 @@ export default baseMixins.extend({
149
149
  }, [
150
150
  h(VIcon, this.setTextColor(this.validationState, {
151
151
  dense: this.radioGroup && this.radioGroup.dense,
152
- }), this.computedIcon),
152
+ }), () => this.computedIcon),
153
153
  this.genInput({
154
154
  name: this.computedName,
155
155
  value: this.value,
@@ -379,7 +379,7 @@ export default baseMixins.extend({
379
379
  },
380
380
  'onClick:close': () => this.onChipInput(item),
381
381
  key: JSON.stringify(this.getValue(item)),
382
- }, this.getText(item))
382
+ }, () => this.getText(item))
383
383
  },
384
384
  genCommaSelection (item: object, index: number, last: boolean) {
385
385
  const color = index === this.selectedIndex && this.computedColor
@@ -535,7 +535,7 @@ export default baseMixins.extend({
535
535
  },
536
536
  onScroll: this.onScroll,
537
537
  ref: 'menu',
538
- }, [this.genList()])
538
+ }, () => [this.genList()])
539
539
  },
540
540
  genSelections (): VNode {
541
541
  let length = this.selectedItems.length
@@ -87,7 +87,7 @@ export default mixins(Colorable, Themeable).extend({
87
87
 
88
88
  methods: {
89
89
  genAction (item: object, inputValue: any): VNode {
90
- return h(VListItemAction, [
90
+ return h(VListItemAction, {}, () => [
91
91
  h(VSimpleCheckbox, {
92
92
  color: this.color,
93
93
  modelValue: inputValue,
@@ -186,8 +186,8 @@ export default mixins(Colorable, Themeable).extend({
186
186
  : scopedSlot
187
187
  },
188
188
  genTileContent (item: any, index = 0): VNode {
189
- return h(VListItemContent, [
190
- h(VListItemTitle, [
189
+ return h(VListItemContent, {}, () => [
190
+ h(VListItemTitle, {}, () => [
191
191
  this.genFilteredText(this.getText(item)),
192
192
  ]),
193
193
  ])
@@ -4,21 +4,26 @@ import VSkeletonLoader, { HTMLSkeletonLoaderElement } from '../VSkeletonLoader'
4
4
  // Utilities
5
5
  import {
6
6
  mount,
7
- MountOptions,
8
- Wrapper,
7
+ enableAutoUnmount,
8
+ VueWrapper,
9
9
  } from '@vue/test-utils'
10
+ import { nextTick } from 'vue'
10
11
 
11
12
  describe('VSkeletonLoader.ts', () => {
12
13
  type Instance = InstanceType<typeof VSkeletonLoader>
13
- let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance>
14
+ let mountFunction: (options?: any) => VueWrapper
15
+
16
+ enableAutoUnmount(afterEach)
14
17
 
15
18
  beforeEach(() => {
16
19
  mountFunction = (options = {}) => {
17
20
  return mount(VSkeletonLoader, {
18
- mocks: {
19
- $vuetify: {
20
- lang: {
21
- t: (v: string) => v,
21
+ global: {
22
+ mocks: {
23
+ $vuetify: {
24
+ lang: {
25
+ t: (v: string) => v,
26
+ },
22
27
  },
23
28
  },
24
29
  },
@@ -40,13 +45,13 @@ describe('VSkeletonLoader.ts', () => {
40
45
  for (const key in wrapper.vm.rootTypes) {
41
46
  const type = wrapper.vm.rootTypes[key]
42
47
 
43
- const iteration = mountFunction({ propsData: { type } })
48
+ const iteration = mountFunction({ props: { type } })
44
49
 
45
50
  expect(iteration.html()).toMatchSnapshot()
46
51
  }
47
52
  })
48
53
 
49
- it('should dynamically render content', () => {
54
+ it('should dynamically render content', async () => {
50
55
  const wrapper = mountFunction({
51
56
  slots: {
52
57
  default: '<div>foobar</div>',
@@ -55,14 +60,15 @@ describe('VSkeletonLoader.ts', () => {
55
60
 
56
61
  expect(wrapper.html()).toMatchSnapshot()
57
62
 
58
- wrapper.setProps({ loading: true })
63
+ await wrapper.setProps({ loading: true })
64
+ await nextTick()
59
65
 
60
66
  expect(wrapper.html()).toMatchSnapshot()
61
67
  })
62
68
 
63
- it('should have the correct a11y attributes when loading', () => {
69
+ it('should have the correct a11y attributes when loading', async () => {
64
70
  const wrapper = mountFunction({
65
- propsData: { loading: true },
71
+ props: { loading: true },
66
72
  slots: {
67
73
  // Add a default slot to allow
68
74
  // toggling the loading prop
@@ -74,7 +80,8 @@ describe('VSkeletonLoader.ts', () => {
74
80
  expect(wrapper.element.getAttribute('aria-live')).toBe('polite')
75
81
  expect(wrapper.element.getAttribute('role')).toBe('alert')
76
82
 
77
- wrapper.setProps({ loading: false })
83
+ await wrapper.setProps({ loading: false })
84
+ await nextTick()
78
85
 
79
86
  expect(wrapper.element.getAttribute('aria-busy')).toBeNull()
80
87
  expect(wrapper.element.getAttribute('aria-live')).toBeNull()
@@ -83,7 +90,7 @@ describe('VSkeletonLoader.ts', () => {
83
90
 
84
91
  it('should not render aria attributes when using boilerplate', () => {
85
92
  const wrapper = mountFunction({
86
- propsData: { boilerplate: true },
93
+ props: { boilerplate: true },
87
94
  })
88
95
 
89
96
  expect(wrapper.vm.attrs).toEqual({})
@@ -94,7 +101,7 @@ describe('VSkeletonLoader.ts', () => {
94
101
  it('should remove transition when loading content', () => {
95
102
  const el = document.createElement('div') as HTMLSkeletonLoaderElement
96
103
  const wrapper = mountFunction({
97
- propsData: { loading: true },
104
+ props: { loading: true },
98
105
  })
99
106
 
100
107
  wrapper.vm.onBeforeEnter(el)