vuetify 2.3.11 → 2.3.15

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/json/attributes.json +29 -17
  2. package/dist/json/tags.json +8 -0
  3. package/dist/json/web-types.json +217 -78
  4. package/dist/vuetify.css +17 -11
  5. package/dist/vuetify.css.map +1 -1
  6. package/dist/vuetify.js +215 -177
  7. package/dist/vuetify.js.map +1 -1
  8. package/dist/vuetify.min.css +2 -2
  9. package/dist/vuetify.min.js +2 -2
  10. package/es5/components/VAutocomplete/VAutocomplete.js +4 -2
  11. package/es5/components/VAutocomplete/VAutocomplete.js.map +1 -1
  12. package/es5/components/VCalendar/VCalendar.js +1 -1
  13. package/es5/components/VCalendar/VCalendar.js.map +1 -1
  14. package/es5/components/VCalendar/util/events.js.map +1 -1
  15. package/es5/components/VCalendar/util/timestamp.js.map +1 -1
  16. package/es5/components/VColorPicker/VColorPickerEdit.js +36 -42
  17. package/es5/components/VColorPicker/VColorPickerEdit.js.map +1 -1
  18. package/es5/components/VCombobox/VCombobox.js +3 -1
  19. package/es5/components/VCombobox/VCombobox.js.map +1 -1
  20. package/es5/components/VData/VData.js +1 -2
  21. package/es5/components/VData/VData.js.map +1 -1
  22. package/es5/components/VDataIterator/VDataIterator.js +1 -1
  23. package/es5/components/VDataIterator/VDataIterator.js.map +1 -1
  24. package/es5/components/VDataTable/VDataTableHeaderDesktop.js +1 -1
  25. package/es5/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
  26. package/es5/components/VDatePicker/VDatePicker.js +1 -3
  27. package/es5/components/VDatePicker/VDatePicker.js.map +1 -1
  28. package/es5/components/VIcon/VIcon.js +11 -4
  29. package/es5/components/VIcon/VIcon.js.map +1 -1
  30. package/es5/components/VList/VListItem.js +1 -1
  31. package/es5/components/VList/VListItem.js.map +1 -1
  32. package/es5/components/VMenu/VMenu.js +4 -4
  33. package/es5/components/VMenu/VMenu.js.map +1 -1
  34. package/es5/components/VNavigationDrawer/VNavigationDrawer.js +6 -7
  35. package/es5/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  36. package/es5/components/VOverflowBtn/VOverflowBtn.js +1 -1
  37. package/es5/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
  38. package/es5/components/VSelect/VSelect.js +50 -45
  39. package/es5/components/VSelect/VSelect.js.map +1 -1
  40. package/es5/components/VSelect/VSelectList.js +2 -2
  41. package/es5/components/VSelect/VSelectList.js.map +1 -1
  42. package/es5/components/VSlider/VSlider.js +1 -2
  43. package/es5/components/VSlider/VSlider.js.map +1 -1
  44. package/es5/components/VTextField/VTextField.js +18 -6
  45. package/es5/components/VTextField/VTextField.js.map +1 -1
  46. package/es5/components/VWindow/VWindow.js +3 -3
  47. package/es5/components/VWindow/VWindow.js.map +1 -1
  48. package/es5/components/transitions/expand-transition.js.map +1 -1
  49. package/es5/directives/click-outside/index.js +1 -7
  50. package/es5/directives/click-outside/index.js.map +1 -1
  51. package/es5/directives/ripple/index.js +3 -3
  52. package/es5/directives/ripple/index.js.map +1 -1
  53. package/es5/framework.js +1 -1
  54. package/es5/install.js +1 -1
  55. package/es5/install.js.map +1 -1
  56. package/es5/locale/ca.js +1 -1
  57. package/es5/locale/ca.js.map +1 -1
  58. package/es5/locale/fr.js +2 -2
  59. package/es5/locale/fr.js.map +1 -1
  60. package/es5/locale/it.js +3 -3
  61. package/es5/locale/it.js.map +1 -1
  62. package/es5/locale/th.js +17 -17
  63. package/es5/locale/th.js.map +1 -1
  64. package/es5/mixins/groupable/index.js +1 -1
  65. package/es5/mixins/groupable/index.js.map +1 -1
  66. package/es5/mixins/proxyable/index.js +1 -1
  67. package/es5/mixins/proxyable/index.js.map +1 -1
  68. package/es5/mixins/themeable/index.js +9 -10
  69. package/es5/mixins/themeable/index.js.map +1 -1
  70. package/es5/mixins/toggleable/index.js +1 -1
  71. package/es5/mixins/toggleable/index.js.map +1 -1
  72. package/es5/services/goto/index.js +0 -1
  73. package/es5/services/goto/index.js.map +1 -1
  74. package/es5/services/icons/presets/mdi.js +1 -1
  75. package/es5/services/icons/presets/mdi.js.map +1 -1
  76. package/es5/services/theme/index.js +3 -2
  77. package/es5/services/theme/index.js.map +1 -1
  78. package/es5/util/helpers.js +3 -3
  79. package/es5/util/helpers.js.map +1 -1
  80. package/lib/components/VAutocomplete/VAutocomplete.js +4 -2
  81. package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
  82. package/lib/components/VCalendar/VCalendar.js +1 -1
  83. package/lib/components/VCalendar/VCalendar.js.map +1 -1
  84. package/lib/components/VCalendar/util/events.js.map +1 -1
  85. package/lib/components/VCalendar/util/timestamp.js.map +1 -1
  86. package/lib/components/VColorPicker/VColorPickerEdit.js +31 -37
  87. package/lib/components/VColorPicker/VColorPickerEdit.js.map +1 -1
  88. package/lib/components/VCombobox/VCombobox.js +3 -1
  89. package/lib/components/VCombobox/VCombobox.js.map +1 -1
  90. package/lib/components/VData/VData.js +1 -2
  91. package/lib/components/VData/VData.js.map +1 -1
  92. package/lib/components/VDataIterator/VDataIterator.js +1 -1
  93. package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
  94. package/lib/components/VDataTable/VDataTableHeaderDesktop.js +1 -1
  95. package/lib/components/VDataTable/VDataTableHeaderDesktop.js.map +1 -1
  96. package/lib/components/VDatePicker/VDatePicker.js +1 -3
  97. package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
  98. package/lib/components/VIcon/VIcon.js +11 -4
  99. package/lib/components/VIcon/VIcon.js.map +1 -1
  100. package/lib/components/VList/VListItem.js +1 -1
  101. package/lib/components/VList/VListItem.js.map +1 -1
  102. package/lib/components/VMenu/VMenu.js +4 -4
  103. package/lib/components/VMenu/VMenu.js.map +1 -1
  104. package/lib/components/VNavigationDrawer/VNavigationDrawer.js +6 -7
  105. package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  106. package/lib/components/VOverflowBtn/VOverflowBtn.js +1 -1
  107. package/lib/components/VOverflowBtn/VOverflowBtn.js.map +1 -1
  108. package/lib/components/VSelect/VSelect.js +6 -6
  109. package/lib/components/VSelect/VSelect.js.map +1 -1
  110. package/lib/components/VSelect/VSelectList.js +2 -2
  111. package/lib/components/VSelect/VSelectList.js.map +1 -1
  112. package/lib/components/VSlider/VSlider.js +1 -2
  113. package/lib/components/VSlider/VSlider.js.map +1 -1
  114. package/lib/components/VTextField/VTextField.js +8 -6
  115. package/lib/components/VTextField/VTextField.js.map +1 -1
  116. package/lib/components/VWindow/VWindow.js +3 -3
  117. package/lib/components/VWindow/VWindow.js.map +1 -1
  118. package/lib/components/transitions/expand-transition.js.map +1 -1
  119. package/lib/directives/click-outside/index.js +1 -7
  120. package/lib/directives/click-outside/index.js.map +1 -1
  121. package/lib/directives/ripple/index.js +3 -3
  122. package/lib/directives/ripple/index.js.map +1 -1
  123. package/lib/framework.js +1 -1
  124. package/lib/install.js +4 -1
  125. package/lib/install.js.map +1 -1
  126. package/lib/locale/ca.js +1 -1
  127. package/lib/locale/ca.js.map +1 -1
  128. package/lib/locale/fr.js +2 -2
  129. package/lib/locale/fr.js.map +1 -1
  130. package/lib/locale/it.js +3 -3
  131. package/lib/locale/it.js.map +1 -1
  132. package/lib/locale/th.js +17 -17
  133. package/lib/locale/th.js.map +1 -1
  134. package/lib/mixins/groupable/index.js +1 -1
  135. package/lib/mixins/groupable/index.js.map +1 -1
  136. package/lib/mixins/proxyable/index.js +1 -1
  137. package/lib/mixins/proxyable/index.js.map +1 -1
  138. package/lib/mixins/themeable/index.js +9 -9
  139. package/lib/mixins/themeable/index.js.map +1 -1
  140. package/lib/mixins/toggleable/index.js +1 -1
  141. package/lib/mixins/toggleable/index.js.map +1 -1
  142. package/lib/services/goto/index.js +0 -1
  143. package/lib/services/goto/index.js.map +1 -1
  144. package/lib/services/icons/presets/mdi.js +1 -1
  145. package/lib/services/icons/presets/mdi.js.map +1 -1
  146. package/lib/services/theme/index.js +3 -2
  147. package/lib/services/theme/index.js.map +1 -1
  148. package/lib/util/helpers.js +3 -3
  149. package/lib/util/helpers.js.map +1 -1
  150. package/package.json +10 -11
  151. package/src/components/VAppBar/__tests__/VAppBar.spec.ts +1 -1
  152. package/src/components/VAutocomplete/VAutocomplete.ts +2 -2
  153. package/src/components/VAutocomplete/__tests__/VAutocomplete2.spec.ts +1 -1
  154. package/src/components/VBanner/__tests__/VBanner.spec.ts +4 -4
  155. package/src/components/VCalendar/VCalendar.ts +1 -1
  156. package/src/components/VCalendar/mixins/__tests__/calendar-with-events.spec.ts +4 -5
  157. package/src/components/VCalendar/util/__tests__/events.spec.ts +1 -1
  158. package/src/components/VCalendar/util/__tests__/timestamp.spec.ts +6 -6
  159. package/src/components/VCalendar/util/events.ts +1 -1
  160. package/src/components/VCalendar/util/timestamp.ts +2 -2
  161. package/src/components/VColorPicker/VColorPickerEdit.ts +35 -38
  162. package/src/components/VColorPicker/__tests__/VColorPicker.spec.ts +2 -11
  163. package/src/components/VColorPicker/__tests__/__snapshots__/VColorPicker.spec.ts.snap +0 -154
  164. package/src/components/VCombobox/VCombobox.ts +1 -1
  165. package/src/components/VData/VData.ts +1 -3
  166. package/src/components/VDataIterator/VDataIterator.ts +1 -1
  167. package/src/components/VDataTable/VDataTable.sass +18 -11
  168. package/src/components/VDataTable/VDataTableHeaderDesktop.ts +1 -1
  169. package/src/components/VDataTable/__tests__/VDataTable.spec.ts +2 -0
  170. package/src/components/VDataTable/__tests__/VDataTableHeader.spec.ts +1 -1
  171. package/src/components/VDataTable/__tests__/VEditDialog.spec.ts +1 -1
  172. package/src/components/VDataTable/__tests__/__snapshots__/VDataTable.spec.ts.snap +238 -0
  173. package/src/components/VDatePicker/VDatePicker.ts +4 -3
  174. package/src/components/VDatePicker/__tests__/VDatePicker.date.spec.ts +7 -5
  175. package/src/components/VDialog/__tests__/VDialog.spec.ts +4 -0
  176. package/src/components/VExpansionPanel/__tests__/VExpansionPanel.spec.ts +4 -4
  177. package/src/components/VForm/__tests__/VForm.spec.ts +12 -62
  178. package/src/components/VGrid/__tests__/VCol.spec.ts +2 -2
  179. package/src/components/VHover/__tests__/VHover.spec.ts +7 -13
  180. package/src/components/VIcon/VIcon.sass +6 -1
  181. package/src/components/VIcon/VIcon.ts +10 -4
  182. package/src/components/VIcon/__tests__/__snapshots__/VIcon.spec.ts.snap +6 -9
  183. package/src/components/VList/VListItem.ts +2 -2
  184. package/src/components/VMenu/VMenu.ts +5 -5
  185. package/src/components/VNavigationDrawer/VNavigationDrawer.ts +7 -9
  186. package/src/components/VNavigationDrawer/__tests__/VNavigationDrawer.spec.ts +34 -22
  187. package/src/components/VOverflowBtn/VOverflowBtn.ts +1 -1
  188. package/src/components/VProgressCircular/_variables.scss +1 -1
  189. package/src/components/VProgressLinear/VProgressLinear.sass +0 -2
  190. package/src/components/VProgressLinear/__tests__/VProgressLinear.spec.ts +1 -0
  191. package/src/components/VProgressLinear/__tests__/__snapshots__/VProgressLinear.spec.ts.snap +1 -1
  192. package/src/components/VRadioGroup/__tests__/VRadio.spec.ts +0 -15
  193. package/src/components/VRadioGroup/__tests__/__snapshots__/VRadio.spec.ts.snap +3 -3
  194. package/src/components/VRating/__tests__/VRating.spec.ts +1 -1
  195. package/src/components/VSelect/VSelect.ts +5 -4
  196. package/src/components/VSelect/VSelectList.ts +1 -1
  197. package/src/components/VSelect/__tests__/VSelect.spec.ts +5 -0
  198. package/src/components/VSelect/__tests__/VSelect2.spec.ts +4 -0
  199. package/src/components/VSelect/__tests__/VSelect3.spec.ts +47 -24
  200. package/src/components/VSelect/__tests__/VSelect4.spec.ts +4 -0
  201. package/src/components/VSelect/__tests__/__snapshots__/VSelect3.spec.ts.snap +280 -0
  202. package/src/components/VSlideGroup/__tests__/VSlideGroup.spec.ts +1 -1
  203. package/src/components/VSlider/VSlider.ts +1 -3
  204. package/src/components/VSnackbar/__tests__/VSnackbar.spec.ts +0 -15
  205. package/src/components/VTabs/VTabs.sass +1 -2
  206. package/src/components/VTextField/VTextField.ts +9 -6
  207. package/src/components/VTextField/__tests__/VTextField.spec.ts +1 -0
  208. package/src/components/VTextarea/__tests__/VTextarea.spec.ts +1 -1
  209. package/src/components/VTreeview/__tests__/VTreeview.spec.ts +23 -19
  210. package/src/components/VVirtualScroll/__tests__/VVirtualScroll.spec.ts +1 -1
  211. package/src/components/VWindow/VWindow.ts +2 -2
  212. package/src/components/VWindow/__tests__/VWindow.spec.ts +1 -1
  213. package/src/components/transitions/expand-transition.ts +4 -4
  214. package/src/directives/click-outside/index.ts +0 -9
  215. package/src/directives/intersect/__tests__/intersect.spec.ts +2 -2
  216. package/src/directives/ripple/__tests__/ripple.spec.ts +4 -4
  217. package/src/directives/ripple/index.ts +3 -3
  218. package/src/directives/touch/__tests__/touch.spec.ts +1 -1
  219. package/src/install.ts +4 -1
  220. package/src/locale/ca.ts +1 -1
  221. package/src/locale/fr.ts +2 -2
  222. package/src/locale/it.ts +3 -3
  223. package/src/locale/th.ts +17 -17
  224. package/src/mixins/activatable/__tests__/activatable.spec.ts +1 -1
  225. package/src/mixins/detachable/__tests__/detachable.spec.ts +0 -26
  226. package/src/mixins/groupable/index.ts +1 -2
  227. package/src/mixins/proxyable/index.ts +1 -2
  228. package/src/mixins/scrollable/__tests__/scrollable.spec.ts +1 -1
  229. package/src/mixins/themeable/index.ts +11 -12
  230. package/src/mixins/toggleable/index.ts +1 -2
  231. package/src/mixins/validatable/__tests__/validatable.spec.ts +1 -1
  232. package/src/services/application/__tests__/application.spec.ts +1 -1
  233. package/src/services/goto/__tests__/goto.spec.ts +1 -1
  234. package/src/services/goto/index.ts +0 -1
  235. package/src/services/icons/__tests__/__snapshots__/icons.spec.ts.snap +1 -1
  236. package/src/services/icons/presets/mdi.ts +1 -1
  237. package/src/services/theme/__tests__/theme.spec.ts +2 -2
  238. package/src/services/theme/index.ts +2 -2
  239. package/src/styles/settings/_dark.scss +14 -11
  240. package/src/util/__tests__/helpers.spec.ts +1 -1
  241. package/src/util/helpers.ts +7 -3
  242. package/types/index.d.ts +1 -0
  243. package/types/services/icons.d.ts +3 -0
  244. package/src/mixins/groupable/__tests__/groupable.spec.ts +0 -5
@@ -9,8 +9,8 @@ describe('resize.ts', () => {
9
9
 
10
10
  Intersect.inserted(el, {
11
11
  value: callback,
12
- modifiers: { quiet: true } } as any
13
- )
12
+ modifiers: { quiet: true },
13
+ } as any)
14
14
 
15
15
  expect((el as any)._observe).toBeTruthy()
16
16
  expect(callback).not.toHaveBeenCalled()
@@ -42,7 +42,7 @@ describe('ripple.ts', () => {
42
42
  const wrapper = mountFunction()
43
43
 
44
44
  const div = wrapper.find('div')
45
- expect(div.element['_ripple'].enabled).toBe(true)
45
+ expect(div.element._ripple.enabled).toBe(true)
46
46
  })
47
47
 
48
48
  it('should update element property reactively', () => {
@@ -72,13 +72,13 @@ describe('ripple.ts', () => {
72
72
  })
73
73
 
74
74
  const div = wrapper.find('div')
75
- expect(div.element['_ripple'].enabled).toBe(true)
75
+ expect(div.element._ripple.enabled).toBe(true)
76
76
 
77
77
  wrapper.setProps({ ripple: false })
78
- expect(div.element['_ripple'].enabled).toBe(false)
78
+ expect(div.element._ripple.enabled).toBe(false)
79
79
 
80
80
  wrapper.setProps({ ripple: true })
81
- expect(div.element['_ripple'].enabled).toBe(true)
81
+ expect(div.element._ripple.enabled).toBe(true)
82
82
  })
83
83
 
84
84
  it('should trigger ripple on mousedown', () => {
@@ -13,12 +13,12 @@ type VuetifyRippleEvent = MouseEvent | TouchEvent | KeyboardEvent
13
13
  const DELAY_RIPPLE = 80
14
14
 
15
15
  function transform (el: HTMLElement, value: string) {
16
- el.style['transform'] = value
17
- el.style['webkitTransform'] = value
16
+ el.style.transform = value
17
+ el.style.webkitTransform = value
18
18
  }
19
19
 
20
20
  function opacity (el: HTMLElement, value: number) {
21
- el.style['opacity'] = value.toString()
21
+ el.style.opacity = value.toString()
22
22
  }
23
23
 
24
24
  export interface RippleOptions {
@@ -66,7 +66,7 @@ describe('touch.ts', () => {
66
66
  expect(down).toHaveBeenCalled()
67
67
  })
68
68
 
69
- it('should not call directive handlers if distance is too small ', async () => {
69
+ it('should not call directive handlers if distance is too small', async () => {
70
70
  const down = jest.fn()
71
71
  touch(mountFunction({ down })).start(0, 0).end(0, 10)
72
72
  expect(down).not.toHaveBeenCalled()
package/src/install.ts CHANGED
@@ -7,7 +7,10 @@ export function install (Vue: VueConstructor, args: VuetifyUseOptions = {}) {
7
7
  (install as any).installed = true
8
8
 
9
9
  if (OurVue !== Vue) {
10
- consoleError('Multiple instances of Vue detected\nSee https://github.com/vuetifyjs/vuetify/issues/4068\n\nIf you\'re seeing "$attrs is readonly", it\'s caused by this')
10
+ consoleError(`Multiple instances of Vue detected
11
+ See https://github.com/vuetifyjs/vuetify/issues/4068
12
+
13
+ If you're seeing "$attrs is readonly", it's caused by this`)
11
14
  }
12
15
 
13
16
  const components = args.components || {}
package/src/locale/ca.ts CHANGED
@@ -29,7 +29,7 @@ export default {
29
29
  datePicker: {
30
30
  itemsSelected: '{0} seleccionats',
31
31
  nextMonthAriaLabel: 'El mes que ve',
32
- nextYearAriaLabel: 'L\'any que ve',
32
+ nextYearAriaLabel: `L'any que ve`,
33
33
  prevMonthAriaLabel: 'Mes anterior',
34
34
  prevYearAriaLabel: 'Any anterior',
35
35
  },
package/src/locale/fr.ts CHANGED
@@ -3,7 +3,7 @@ export default {
3
3
  close: 'Fermer',
4
4
  dataIterator: {
5
5
  noResultsText: 'Aucun enregistrement correspondant trouvé',
6
- loadingText: "Chargement de l'élément...",
6
+ loadingText: `Chargement de l'élément...`,
7
7
  },
8
8
  dataTable: {
9
9
  itemsPerPageText: 'Lignes par page:',
@@ -29,7 +29,7 @@ export default {
29
29
  datePicker: {
30
30
  itemsSelected: '{0} sélectionnés',
31
31
  nextMonthAriaLabel: 'Le mois prochain',
32
- nextYearAriaLabel: 'L\'année prochaine',
32
+ nextYearAriaLabel: `L'année prochaine`,
33
33
  prevMonthAriaLabel: 'Le mois précédent',
34
34
  prevYearAriaLabel: 'Année précédente',
35
35
  },
package/src/locale/it.ts CHANGED
@@ -11,7 +11,7 @@ export default {
11
11
  sortDescending: 'Ordinati in ordine decrescente.',
12
12
  sortAscending: 'Ordinati in ordine crescente.',
13
13
  sortNone: 'Non ordinato.',
14
- activateNone: 'Attiva per rimuovere l\'ordinamento.',
14
+ activateNone: `Attiva per rimuovere l'ordinamento.`,
15
15
  activateDescending: 'Attiva per ordinare in ordine decrescente.',
16
16
  activateAscending: 'Attiva per ordinare in ordine crescente.',
17
17
  },
@@ -29,9 +29,9 @@ export default {
29
29
  datePicker: {
30
30
  itemsSelected: '{0} selezionati',
31
31
  nextMonthAriaLabel: 'Il prossimo mese',
32
- nextYearAriaLabel: 'L\'anno prossimo',
32
+ nextYearAriaLabel: `L'anno prossimo`,
33
33
  prevMonthAriaLabel: 'Il mese scorso',
34
- prevYearAriaLabel: 'L\'anno scorso',
34
+ prevYearAriaLabel: `L'anno scorso`,
35
35
  },
36
36
  noDataText: 'Nessun elemento disponibile',
37
37
  carousel: {
package/src/locale/th.ts CHANGED
@@ -3,19 +3,19 @@ export default {
3
3
  close: 'ปิด',
4
4
  dataIterator: {
5
5
  noResultsText: 'ไม่พบข้อมูลที่ค้นหา',
6
- loadingText: 'กำลังโหลดข้อมูล... กรุณารอสักครู่',
6
+ loadingText: 'กำลังโหลดข้อมูล...',
7
7
  },
8
8
  dataTable: {
9
9
  itemsPerPageText: 'แถวต่อหน้า:',
10
10
  ariaLabel: {
11
- sortDescending: 'เรียงลำดับจากมากไปน้อย กดเพื่อปิดการเรียงลำดับ',
12
- sortAscending: 'เรียงจากน้อยไปมาก กดเพื่อเรียงลำดับจากมากไปน้อย',
13
- sortNone: 'ไม่ได้จัดเรียง กดเพื่อเรียงลำดับจากน้อยไปมาก',
14
- activateNone: 'Activate to remove sorting.',
15
- activateDescending: 'Activate to sort descending.',
16
- activateAscending: 'Activate to sort ascending.',
11
+ sortDescending: 'เรียงจากมากไปน้อยอยู่',
12
+ sortAscending: 'เรียงจากน้อยไปมากอยู่',
13
+ sortNone: 'ไม่ได้เรียงลำดับ',
14
+ activateNone: 'กดเพื่อปิดการเรียงลำดับ',
15
+ activateDescending: 'กดเพื่อเรียงจากมากไปน้อย',
16
+ activateAscending: 'กดเพื่อเรียงจากน้อยไปมาก',
17
17
  },
18
- sortBy: 'จัดเรียงตาม',
18
+ sortBy: 'เรียงตาม',
19
19
  },
20
20
  dataFooter: {
21
21
  itemsPerPageText: 'รายการต่อหน้า:',
@@ -28,21 +28,21 @@ export default {
28
28
  },
29
29
  datePicker: {
30
30
  itemsSelected: 'เลือก {0} วัน',
31
- nextMonthAriaLabel: 'เดือนหน้า',
32
- nextYearAriaLabel: 'ปีหน้า',
33
- prevMonthAriaLabel: 'เดือนที่แล้ว',
34
- prevYearAriaLabel: 'ปีก่อน',
31
+ nextMonthAriaLabel: 'เดือนถัดไป',
32
+ nextYearAriaLabel: 'ปีถัดไป',
33
+ prevMonthAriaLabel: 'เดือนก่อนหน้า',
34
+ prevYearAriaLabel: 'ปีก่อนหน้า',
35
35
  },
36
36
  noDataText: 'ไม่มีข้อมูล',
37
37
  carousel: {
38
38
  prev: 'ภาพก่อนหน้า',
39
- next: 'ภาพต่อไป',
39
+ next: 'ภาพถัดไป',
40
40
  ariaLabel: {
41
- delimiter: 'Carousel slide {0} of {1}',
41
+ delimiter: 'ภาพสไลด์ที่ {0} จาก {1}',
42
42
  },
43
43
  },
44
44
  calendar: {
45
- moreEvents: 'อีก {0}',
45
+ moreEvents: 'มีอีก {0}',
46
46
  },
47
47
  fileInput: {
48
48
  counter: '{0} ไฟล์',
@@ -54,11 +54,11 @@ export default {
54
54
  },
55
55
  pagination: {
56
56
  ariaLabel: {
57
- wrapper: 'การแบ่งหน้าการนำทาง',
57
+ wrapper: 'การนำทางไปยังหน้า',
58
58
  next: 'หน้าต่อไป',
59
59
  previous: 'หน้าที่แล้ว',
60
60
  page: 'ไปที่หน้า {0}',
61
- currentPage: 'หน้าปัจจุบันหน้า {0}',
61
+ currentPage: 'หน้าปัจจุบัน (หน้า {0})',
62
62
  },
63
63
  },
64
64
  }
@@ -104,7 +104,7 @@ describe('activatable.ts', () => {
104
104
  expect(runDelay).toHaveBeenLastCalledWith('close')
105
105
  })
106
106
 
107
- it('should warn when activator hasn\'t got a scope', () => {
107
+ it(`should warn when activator hasn't got a scope`, () => {
108
108
  mountFunction({
109
109
  slots: {
110
110
  activator: '<div></div>',
@@ -44,32 +44,6 @@ describe('detachable.ts', () => {
44
44
  wrapper.destroy()
45
45
  })
46
46
 
47
- it('should not detach when lazy', async () => {
48
- const localMock = Mock
49
- const wrapper = mount(VApp, {
50
- attachToDocument: true,
51
- slots: {
52
- default: [{
53
- render: h => h(localMock),
54
- }],
55
- },
56
- mocks: {
57
- $vuetify: {
58
- rtl: false,
59
- theme: {
60
- dark: false,
61
- },
62
- },
63
- },
64
- })
65
-
66
- const detach = wrapper.find(localMock)
67
-
68
- expect(detach.vm.hasDetached).toBe(false)
69
-
70
- wrapper.destroy()
71
- })
72
-
73
47
  it('should attach and detach', () => {
74
48
  const localMock = Mock
75
49
  const elementMock = mount(Mock)
@@ -6,7 +6,6 @@ import { ExtractVue } from '../../util/mixins'
6
6
  import { VueConstructor } from 'vue'
7
7
  import { PropValidator } from 'vue/types/options'
8
8
 
9
- /* eslint-disable-next-line no-use-before-define */
10
9
  export type Groupable<T extends string, C extends VueConstructor | null = null> = VueConstructor<ExtractVue<Registrable<T, C>> & {
11
10
  activeClass: string
12
11
  isActive: boolean
@@ -67,7 +66,7 @@ export function factory<T extends string, C extends VueConstructor | null = null
67
66
  })
68
67
  }
69
68
 
70
- /* eslint-disable-next-line no-redeclare */
69
+ /* eslint-disable-next-line @typescript-eslint/no-redeclare */
71
70
  const Groupable = factory('itemGroup')
72
71
 
73
72
  export default Groupable
@@ -1,6 +1,5 @@
1
1
  import Vue, { VueConstructor } from 'vue'
2
2
 
3
- /* eslint-disable-next-line no-use-before-define */
4
3
  export type Proxyable<T extends string = 'value'> = VueConstructor<Vue & {
5
4
  internalLazyValue: unknown
6
5
  internalValue: unknown
@@ -54,7 +53,7 @@ export function factory (
54
53
  })
55
54
  }
56
55
 
57
- /* eslint-disable-next-line no-redeclare */
56
+ /* eslint-disable-next-line @typescript-eslint/no-redeclare */
58
57
  const Proxyable = factory()
59
58
 
60
59
  export default Proxyable
@@ -103,7 +103,7 @@ describe('Scrollable.ts', () => {
103
103
  expect(wrapper.vm.savedScroll).toBe(0)
104
104
  })
105
105
 
106
- it('should warn if target isn\'t present', async () => {
106
+ it(`should warn if target isn't present`, async () => {
107
107
  mountFunction({
108
108
  propsData: {
109
109
  scrollTarget: '#test',
@@ -1,24 +1,14 @@
1
1
  import Vue from 'vue'
2
2
  import { PropType, RenderContext } from 'vue/types/options'
3
3
 
4
- /* eslint-disable-next-line no-use-before-define */
5
- interface Themeable extends Vue {
4
+ interface options extends Vue {
6
5
  theme: {
7
6
  isDark: boolean
8
7
  }
9
8
  }
10
9
 
11
- export function functionalThemeClasses (context: RenderContext): object {
12
- const vm = {
13
- ...context.props,
14
- ...context.injections,
15
- }
16
- const isDark = Themeable.options.computed.isDark.call(vm)
17
- return Themeable.options.computed.themeClasses.call({ isDark })
18
- }
19
-
20
10
  /* @vue/component */
21
- const Themeable = Vue.extend<Themeable>().extend({
11
+ const Themeable = Vue.extend<options>().extend({
22
12
  name: 'themeable',
23
13
 
24
14
  provide (): object {
@@ -110,3 +100,12 @@ const Themeable = Vue.extend<Themeable>().extend({
110
100
  })
111
101
 
112
102
  export default Themeable
103
+
104
+ export function functionalThemeClasses (context: RenderContext): object {
105
+ const vm = {
106
+ ...context.props,
107
+ ...context.injections,
108
+ }
109
+ const isDark = Themeable.options.computed.isDark.call(vm)
110
+ return Themeable.options.computed.themeClasses.call({ isDark })
111
+ }
@@ -1,6 +1,5 @@
1
1
  import Vue, { VueConstructor } from 'vue'
2
2
 
3
- /* eslint-disable-next-line no-use-before-define */
4
3
  export type Toggleable<T extends string = 'value'> = VueConstructor<Vue & { isActive: boolean } & Record<T, any>>
5
4
 
6
5
  export function factory<T extends string = 'value'> (prop?: T, event?: string): Toggleable<T>
@@ -31,7 +30,7 @@ export function factory (prop = 'value', event = 'input') {
31
30
  })
32
31
  }
33
32
 
34
- /* eslint-disable-next-line no-redeclare */
33
+ /* eslint-disable-next-line @typescript-eslint/no-redeclare */
35
34
  const Toggleable = factory()
36
35
 
37
36
  export default Toggleable
@@ -81,7 +81,7 @@ describe('validatable.ts', () => {
81
81
  expect(wrapper.vm.errorBucket).toEqual([])
82
82
 
83
83
  // Function failing
84
- wrapper.setProps({ rules: [() => false || 'fizzbuzz'] })
84
+ wrapper.setProps({ rules: [() => 'fizzbuzz'] })
85
85
 
86
86
  wrapper.vm.validate()
87
87
 
@@ -18,7 +18,7 @@ describe('Application.ts', () => {
18
18
  expect(app.bar).toBe(0)
19
19
  })
20
20
 
21
- it('should not update if value doesn\'t exist in application', () => {
21
+ it(`should not update if value doesn't exist in application`, () => {
22
22
  const spy = jest.spyOn(app, 'update')
23
23
 
24
24
  app.register(0, 'top', 24)
@@ -60,7 +60,7 @@ describe('$vuetify.goTo', () => {
60
60
  it('should not throw error when using VueComponent as target', async () => {
61
61
  const btn = mount(VBtn)
62
62
 
63
- await expect(goTo(btn.vm, { duration: 0 })).resolves.not.toBe(undefined)
63
+ await expect(goTo(btn.vm, { duration: 0 })).resolves.not.toBeUndefined()
64
64
  })
65
65
 
66
66
  it('should instantiate and return goto', () => {
@@ -57,7 +57,6 @@ export default function goTo (
57
57
  if (!ease) throw new TypeError(`Easing function "${settings.easing}" not found.`)
58
58
 
59
59
  // Cannot be tested properly in jsdom
60
- // tslint:disable-next-line:promise-must-complete
61
60
  /* istanbul ignore next */
62
61
  return new Promise(resolve => requestAnimationFrame(function step (currentTime: number) {
63
62
  const timeElapsed = currentTime - startTime
@@ -29,7 +29,7 @@ Object {
29
29
  "radioOn": "mdi-radiobox-marked",
30
30
  "ratingEmpty": "mdi-star-outline",
31
31
  "ratingFull": "mdi-star",
32
- "ratingHalf": "mdi-star-half",
32
+ "ratingHalf": "mdi-star-half-full",
33
33
  "sort": "mdi-arrow-up",
34
34
  "subgroup": "mdi-menu-down",
35
35
  "success": "mdi-check-circle",
@@ -26,7 +26,7 @@ const icons: VuetifyIcons = {
26
26
  edit: 'mdi-pencil',
27
27
  ratingEmpty: 'mdi-star-outline',
28
28
  ratingFull: 'mdi-star',
29
- ratingHalf: 'mdi-star-half',
29
+ ratingHalf: 'mdi-star-half-full',
30
30
  loading: 'mdi-cached',
31
31
  first: 'mdi-page-first',
32
32
  last: 'mdi-page-last',
@@ -192,9 +192,9 @@ describe('Theme.ts', () => {
192
192
 
193
193
  theme.init(anyInstance)
194
194
 
195
- expect(typeof anyInstance.$options['metaInfo']).toBe('function')
195
+ expect(typeof anyInstance.$options.metaInfo).toBe('function')
196
196
 
197
- const metaInfo = anyInstance.$options['metaInfo']()
197
+ const metaInfo = anyInstance.$options.metaInfo()
198
198
 
199
199
  expect(metaInfo).toBeTruthy()
200
200
  expect(metaInfo.style).toHaveLength(1)
@@ -61,8 +61,8 @@ export class Theme extends Service {
61
61
  }
62
62
  }
63
63
 
64
- // When setting css, check for element
65
- // and apply new values
64
+ // When setting css, check for element and apply new values
65
+ /* eslint-disable-next-line accessor-pairs */
66
66
  set css (val: string) {
67
67
  if (this.vueMeta) {
68
68
  if (this.isVueMeta23) {
@@ -3,17 +3,20 @@
3
3
  $material-dark-elevation-colors: () !default;
4
4
  // https://material.io/design/color/dark-theme.html#properties
5
5
  // https://material.io/design/environment/elevation.html#default-elevations
6
- $material-dark-elevation-colors: (
7
- '0': #000000,
8
- '1': #1E1E1E,
9
- '2': #222222,
10
- '3': #252525,
11
- '4': #272727,
12
- '6': #2C2C2C,
13
- '8': #2E2E2E,
14
- '12': #333333,
15
- '16': #363636,
16
- '24': #373737
6
+ $material-dark-elevation-colors: map-deep-merge(
7
+ (
8
+ '0': #000000,
9
+ '1': #1E1E1E,
10
+ '2': #222222,
11
+ '3': #252525,
12
+ '4': #272727,
13
+ '6': #2C2C2C,
14
+ '8': #2E2E2E,
15
+ '12': #333333,
16
+ '16': #363636,
17
+ '24': #373737
18
+ ),
19
+ $material-dark-elevation-colors
17
20
  );
18
21
 
19
22
  $material-dark: () !default;
@@ -106,7 +106,7 @@ describe('helpers', () => {
106
106
  expect(deepEqual(currentDate, futureDate)).toEqual(false)
107
107
  expect(deepEqual({ date: currentDate }, { date: futureDate })).toEqual(false)
108
108
 
109
- const circular = {}
109
+ const circular = {} // eslint-disable-line sonarjs/prefer-object-literal
110
110
  circular.me = circular
111
111
 
112
112
  expect(deepEqual({ r: circular }, { r: circular })).toEqual(true)
@@ -89,9 +89,13 @@ export function getNestedValue (obj: any, path: (string | number)[], fallback?:
89
89
  export function deepEqual (a: any, b: any): boolean {
90
90
  if (a === b) return true
91
91
 
92
- if (a instanceof Date && b instanceof Date) {
93
- // If the values are Date, they were convert to timestamp with getTime and compare it
94
- if (a.getTime() !== b.getTime()) return false
92
+ if (
93
+ a instanceof Date &&
94
+ b instanceof Date &&
95
+ a.getTime() !== b.getTime()
96
+ ) {
97
+ // If the values are Date, compare them as timestamps
98
+ return false
95
99
  }
96
100
 
97
101
  if (a !== Object(a) || b !== Object(b)) {
package/types/index.d.ts CHANGED
@@ -125,6 +125,7 @@ export interface DataScopeProps {
125
125
  options: DataOptions
126
126
  updateOptions: (obj: any) => void
127
127
  sort: (value: string) => void
128
+ sortArray: (sortBy: string[]) => void
128
129
  group: (value: string) => void
129
130
  groupedItems: ItemGroup<any>[] | null
130
131
  }
@@ -60,5 +60,8 @@ export interface VuetifyIcons {
60
60
  first: VuetifyIcon
61
61
  last: VuetifyIcon
62
62
  unfold: VuetifyIcon
63
+ file: VuetifyIcon
64
+ plus: VuetifyIcon
65
+ minus: VuetifyIcon
63
66
  [name: string]: VuetifyIcon
64
67
  }
@@ -1,5 +0,0 @@
1
- describe('groupable.ts', () => {
2
- it('should register and unregister', async () => {
3
- //
4
- })
5
- })