vuetify 2.6.16 → 2.7.0

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 (323) hide show
  1. package/dist/json/attributes.json +33 -1
  2. package/dist/json/tags.json +8 -0
  3. package/dist/json/web-types.json +140 -21
  4. package/dist/vuetify.css +53 -10
  5. package/dist/vuetify.css.map +1 -1
  6. package/dist/vuetify.js +685 -258
  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/VCalendar/mixins/calendar-base.js +1 -1
  11. package/es5/components/VCalendar/mixins/calendar-base.js.map +1 -1
  12. package/es5/components/VDataTable/VDataTable.js +96 -61
  13. package/es5/components/VDataTable/VDataTable.js.map +1 -1
  14. package/es5/components/VExpansionPanel/VExpansionPanelContent.js +3 -1
  15. package/es5/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
  16. package/es5/components/VExpansionPanel/VExpansionPanelHeader.js +3 -1
  17. package/es5/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
  18. package/es5/components/VInput/VInput.js +12 -1
  19. package/es5/components/VInput/VInput.js.map +1 -1
  20. package/es5/components/VItemGroup/VItem.js +18 -2
  21. package/es5/components/VItemGroup/VItem.js.map +1 -1
  22. package/es5/components/VMenu/VMenu.js +11 -3
  23. package/es5/components/VMenu/VMenu.js.map +1 -1
  24. package/es5/components/VPagination/VPagination.js +8 -2
  25. package/es5/components/VPagination/VPagination.js.map +1 -1
  26. package/es5/components/VRadioGroup/VRadio.js +14 -4
  27. package/es5/components/VRadioGroup/VRadio.js.map +1 -1
  28. package/es5/components/VSkeletonLoader/VSkeletonLoader.js +10 -5
  29. package/es5/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
  30. package/es5/components/VSlideGroup/VSlideGroup.js +5 -1
  31. package/es5/components/VSlideGroup/VSlideGroup.js.map +1 -1
  32. package/es5/components/VTabs/VTab.js +4 -0
  33. package/es5/components/VTabs/VTab.js.map +1 -1
  34. package/es5/components/VTimePicker/VTimePicker.js +17 -0
  35. package/es5/components/VTimePicker/VTimePicker.js.map +1 -1
  36. package/es5/framework.js +1 -1
  37. package/es5/locale/af.js +7 -1
  38. package/es5/locale/af.js.map +1 -1
  39. package/es5/locale/ar.js +7 -1
  40. package/es5/locale/ar.js.map +1 -1
  41. package/es5/locale/az.js +7 -1
  42. package/es5/locale/az.js.map +1 -1
  43. package/es5/locale/bg.js +7 -1
  44. package/es5/locale/bg.js.map +1 -1
  45. package/es5/locale/ca.js +7 -1
  46. package/es5/locale/ca.js.map +1 -1
  47. package/es5/locale/ckb.js +7 -1
  48. package/es5/locale/ckb.js.map +1 -1
  49. package/es5/locale/cs.js +7 -1
  50. package/es5/locale/cs.js.map +1 -1
  51. package/es5/locale/da.js +7 -1
  52. package/es5/locale/da.js.map +1 -1
  53. package/es5/locale/de.js +7 -1
  54. package/es5/locale/de.js.map +1 -1
  55. package/es5/locale/el.js +7 -1
  56. package/es5/locale/el.js.map +1 -1
  57. package/es5/locale/en.js +7 -1
  58. package/es5/locale/en.js.map +1 -1
  59. package/es5/locale/es.js +7 -1
  60. package/es5/locale/es.js.map +1 -1
  61. package/es5/locale/et.js +7 -1
  62. package/es5/locale/et.js.map +1 -1
  63. package/es5/locale/fa.js +7 -1
  64. package/es5/locale/fa.js.map +1 -1
  65. package/es5/locale/fi.js +7 -1
  66. package/es5/locale/fi.js.map +1 -1
  67. package/es5/locale/fr.js +7 -1
  68. package/es5/locale/fr.js.map +1 -1
  69. package/es5/locale/he.js +7 -1
  70. package/es5/locale/he.js.map +1 -1
  71. package/es5/locale/hr.js +7 -1
  72. package/es5/locale/hr.js.map +1 -1
  73. package/es5/locale/hu.js +7 -1
  74. package/es5/locale/hu.js.map +1 -1
  75. package/es5/locale/id.js +7 -1
  76. package/es5/locale/id.js.map +1 -1
  77. package/es5/locale/it.js +7 -1
  78. package/es5/locale/it.js.map +1 -1
  79. package/es5/locale/ja.js +7 -1
  80. package/es5/locale/ja.js.map +1 -1
  81. package/es5/locale/ko.js +7 -1
  82. package/es5/locale/ko.js.map +1 -1
  83. package/es5/locale/lt.js +7 -1
  84. package/es5/locale/lt.js.map +1 -1
  85. package/es5/locale/lv.js +7 -1
  86. package/es5/locale/lv.js.map +1 -1
  87. package/es5/locale/nl.js +7 -1
  88. package/es5/locale/nl.js.map +1 -1
  89. package/es5/locale/no.js +7 -1
  90. package/es5/locale/no.js.map +1 -1
  91. package/es5/locale/pl.js +7 -1
  92. package/es5/locale/pl.js.map +1 -1
  93. package/es5/locale/pt.js +7 -1
  94. package/es5/locale/pt.js.map +1 -1
  95. package/es5/locale/ro.js +7 -1
  96. package/es5/locale/ro.js.map +1 -1
  97. package/es5/locale/ru.js +7 -1
  98. package/es5/locale/ru.js.map +1 -1
  99. package/es5/locale/sk.js +7 -1
  100. package/es5/locale/sk.js.map +1 -1
  101. package/es5/locale/sl.js +7 -1
  102. package/es5/locale/sl.js.map +1 -1
  103. package/es5/locale/sr-Cyrl.js +7 -1
  104. package/es5/locale/sr-Cyrl.js.map +1 -1
  105. package/es5/locale/sr-Latn.js +7 -1
  106. package/es5/locale/sr-Latn.js.map +1 -1
  107. package/es5/locale/sv.js +7 -1
  108. package/es5/locale/sv.js.map +1 -1
  109. package/es5/locale/th.js +7 -1
  110. package/es5/locale/th.js.map +1 -1
  111. package/es5/locale/tr.js +7 -1
  112. package/es5/locale/tr.js.map +1 -1
  113. package/es5/locale/uk.js +7 -1
  114. package/es5/locale/uk.js.map +1 -1
  115. package/es5/locale/vi.js +7 -1
  116. package/es5/locale/vi.js.map +1 -1
  117. package/es5/locale/zh-Hans.js +7 -1
  118. package/es5/locale/zh-Hans.js.map +1 -1
  119. package/es5/locale/zh-Hant.js +7 -1
  120. package/es5/locale/zh-Hant.js.map +1 -1
  121. package/es5/mixins/groupable/index.js +9 -1
  122. package/es5/mixins/groupable/index.js.map +1 -1
  123. package/es5/{components/VCalendar/mixins/mouse.js → mixins/mouse/index.js} +14 -6
  124. package/es5/mixins/mouse/index.js.map +1 -0
  125. package/es5/mixins/validatable/index.js +14 -4
  126. package/es5/mixins/validatable/index.js.map +1 -1
  127. package/lib/components/VCalendar/mixins/calendar-base.js +1 -1
  128. package/lib/components/VCalendar/mixins/calendar-base.js.map +1 -1
  129. package/lib/components/VDataTable/VDataTable.js +56 -24
  130. package/lib/components/VDataTable/VDataTable.js.map +1 -1
  131. package/lib/components/VExpansionPanel/VExpansionPanelContent.js +3 -1
  132. package/lib/components/VExpansionPanel/VExpansionPanelContent.js.map +1 -1
  133. package/lib/components/VExpansionPanel/VExpansionPanelHeader.js +3 -1
  134. package/lib/components/VExpansionPanel/VExpansionPanelHeader.js.map +1 -1
  135. package/lib/components/VInput/VInput.js +11 -1
  136. package/lib/components/VInput/VInput.js.map +1 -1
  137. package/lib/components/VItemGroup/VItem.js +14 -3
  138. package/lib/components/VItemGroup/VItem.js.map +1 -1
  139. package/lib/components/VMenu/VMenu.js +7 -0
  140. package/lib/components/VMenu/VMenu.js.map +1 -1
  141. package/lib/components/VPagination/VPagination.js +8 -2
  142. package/lib/components/VPagination/VPagination.js.map +1 -1
  143. package/lib/components/VRadioGroup/VRadio.js +14 -4
  144. package/lib/components/VRadioGroup/VRadio.js.map +1 -1
  145. package/lib/components/VSkeletonLoader/VSkeletonLoader.js +10 -5
  146. package/lib/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
  147. package/lib/components/VSlideGroup/VSlideGroup.js +5 -1
  148. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  149. package/lib/components/VTabs/VTab.js +4 -0
  150. package/lib/components/VTabs/VTab.js.map +1 -1
  151. package/lib/components/VTimePicker/VTimePicker.js +19 -0
  152. package/lib/components/VTimePicker/VTimePicker.js.map +1 -1
  153. package/lib/framework.js +1 -1
  154. package/lib/locale/af.js +7 -1
  155. package/lib/locale/af.js.map +1 -1
  156. package/lib/locale/ar.js +7 -1
  157. package/lib/locale/ar.js.map +1 -1
  158. package/lib/locale/az.js +7 -1
  159. package/lib/locale/az.js.map +1 -1
  160. package/lib/locale/bg.js +7 -1
  161. package/lib/locale/bg.js.map +1 -1
  162. package/lib/locale/ca.js +7 -1
  163. package/lib/locale/ca.js.map +1 -1
  164. package/lib/locale/ckb.js +7 -1
  165. package/lib/locale/ckb.js.map +1 -1
  166. package/lib/locale/cs.js +7 -1
  167. package/lib/locale/cs.js.map +1 -1
  168. package/lib/locale/da.js +7 -1
  169. package/lib/locale/da.js.map +1 -1
  170. package/lib/locale/de.js +7 -1
  171. package/lib/locale/de.js.map +1 -1
  172. package/lib/locale/el.js +7 -1
  173. package/lib/locale/el.js.map +1 -1
  174. package/lib/locale/en.js +7 -1
  175. package/lib/locale/en.js.map +1 -1
  176. package/lib/locale/es.js +7 -1
  177. package/lib/locale/es.js.map +1 -1
  178. package/lib/locale/et.js +7 -1
  179. package/lib/locale/et.js.map +1 -1
  180. package/lib/locale/fa.js +7 -1
  181. package/lib/locale/fa.js.map +1 -1
  182. package/lib/locale/fi.js +7 -1
  183. package/lib/locale/fi.js.map +1 -1
  184. package/lib/locale/fr.js +7 -1
  185. package/lib/locale/fr.js.map +1 -1
  186. package/lib/locale/he.js +7 -1
  187. package/lib/locale/he.js.map +1 -1
  188. package/lib/locale/hr.js +7 -1
  189. package/lib/locale/hr.js.map +1 -1
  190. package/lib/locale/hu.js +7 -1
  191. package/lib/locale/hu.js.map +1 -1
  192. package/lib/locale/id.js +7 -1
  193. package/lib/locale/id.js.map +1 -1
  194. package/lib/locale/it.js +7 -1
  195. package/lib/locale/it.js.map +1 -1
  196. package/lib/locale/ja.js +7 -1
  197. package/lib/locale/ja.js.map +1 -1
  198. package/lib/locale/ko.js +7 -1
  199. package/lib/locale/ko.js.map +1 -1
  200. package/lib/locale/lt.js +7 -1
  201. package/lib/locale/lt.js.map +1 -1
  202. package/lib/locale/lv.js +7 -1
  203. package/lib/locale/lv.js.map +1 -1
  204. package/lib/locale/nl.js +7 -1
  205. package/lib/locale/nl.js.map +1 -1
  206. package/lib/locale/no.js +7 -1
  207. package/lib/locale/no.js.map +1 -1
  208. package/lib/locale/pl.js +7 -1
  209. package/lib/locale/pl.js.map +1 -1
  210. package/lib/locale/pt.js +7 -1
  211. package/lib/locale/pt.js.map +1 -1
  212. package/lib/locale/ro.js +7 -1
  213. package/lib/locale/ro.js.map +1 -1
  214. package/lib/locale/ru.js +7 -1
  215. package/lib/locale/ru.js.map +1 -1
  216. package/lib/locale/sk.js +7 -1
  217. package/lib/locale/sk.js.map +1 -1
  218. package/lib/locale/sl.js +7 -1
  219. package/lib/locale/sl.js.map +1 -1
  220. package/lib/locale/sr-Cyrl.js +7 -1
  221. package/lib/locale/sr-Cyrl.js.map +1 -1
  222. package/lib/locale/sr-Latn.js +7 -1
  223. package/lib/locale/sr-Latn.js.map +1 -1
  224. package/lib/locale/sv.js +7 -1
  225. package/lib/locale/sv.js.map +1 -1
  226. package/lib/locale/th.js +7 -1
  227. package/lib/locale/th.js.map +1 -1
  228. package/lib/locale/tr.js +7 -1
  229. package/lib/locale/tr.js.map +1 -1
  230. package/lib/locale/uk.js +7 -1
  231. package/lib/locale/uk.js.map +1 -1
  232. package/lib/locale/vi.js +7 -1
  233. package/lib/locale/vi.js.map +1 -1
  234. package/lib/locale/zh-Hans.js +7 -1
  235. package/lib/locale/zh-Hans.js.map +1 -1
  236. package/lib/locale/zh-Hant.js +7 -1
  237. package/lib/locale/zh-Hant.js.map +1 -1
  238. package/lib/mixins/groupable/index.js +9 -1
  239. package/lib/mixins/groupable/index.js.map +1 -1
  240. package/lib/{components/VCalendar/mixins/mouse.js → mixins/mouse/index.js} +12 -6
  241. package/lib/mixins/mouse/index.js.map +1 -0
  242. package/lib/mixins/validatable/index.js +14 -4
  243. package/lib/mixins/validatable/index.js.map +1 -1
  244. package/package.json +2 -2
  245. package/src/components/VCalendar/mixins/calendar-base.ts +1 -1
  246. package/src/components/VDataTable/VDataTable.ts +69 -21
  247. package/src/components/VDataTable/__tests__/VDataTable.spec.ts +28 -0
  248. package/src/components/VDataTable/__tests__/__snapshots__/VDataTable.spec.ts.snap +15 -15
  249. package/src/components/VExpansionPanel/VExpansionPanelContent.ts +1 -1
  250. package/src/components/VExpansionPanel/VExpansionPanelHeader.ts +1 -1
  251. package/src/components/VFileInput/__tests__/__snapshots__/VFileInput.spec.ts.snap +18 -18
  252. package/src/components/VForm/__tests__/VForm.spec.ts +22 -1
  253. package/src/components/VInput/VInput.ts +12 -1
  254. package/src/components/VInput/__tests__/VInput.spec.ts +7 -0
  255. package/src/components/VItemGroup/VItem.sass +4 -0
  256. package/src/components/VItemGroup/VItem.ts +12 -1
  257. package/src/components/VMenu/VMenu.ts +8 -1
  258. package/src/components/VMenu/__tests__/VMenu.spec.ts +130 -0
  259. package/src/components/VPagination/VPagination.ts +17 -12
  260. package/src/components/VRadioGroup/VRadio.ts +10 -4
  261. package/src/components/VSelect/__tests__/__snapshots__/VSelect2.spec.ts.snap +2 -2
  262. package/src/components/VSkeletonLoader/VSkeletonLoader.ts +10 -5
  263. package/src/components/VSkeletonLoader/__tests__/VSkeletonLoader.spec.ts +7 -0
  264. package/src/components/VSkeletonLoader/__tests__/__snapshots__/VSkeletonLoader.spec.ts.snap +31 -0
  265. package/src/components/VSlideGroup/VSlideGroup.ts +4 -0
  266. package/src/components/VTabs/VTab.ts +5 -0
  267. package/src/components/VTabs/VTabs.sass +1 -1
  268. package/src/components/VTabs/__tests__/VTabs.spec.ts +22 -0
  269. package/src/components/VTabs/_variables.scss +1 -0
  270. package/src/components/VTextField/__tests__/VTextField.spec.ts +15 -8
  271. package/src/components/VTimePicker/VTimePicker.ts +18 -0
  272. package/src/components/VTimePicker/__tests__/VTimePicker.spec.ts +65 -0
  273. package/src/locale/af.ts +6 -0
  274. package/src/locale/ar.ts +6 -0
  275. package/src/locale/az.ts +6 -0
  276. package/src/locale/bg.ts +6 -0
  277. package/src/locale/ca.ts +6 -0
  278. package/src/locale/ckb.ts +6 -0
  279. package/src/locale/cs.ts +6 -0
  280. package/src/locale/da.ts +6 -0
  281. package/src/locale/de.ts +6 -0
  282. package/src/locale/el.ts +6 -0
  283. package/src/locale/en.ts +6 -0
  284. package/src/locale/es.ts +6 -0
  285. package/src/locale/et.ts +6 -0
  286. package/src/locale/fa.ts +6 -0
  287. package/src/locale/fi.ts +6 -0
  288. package/src/locale/fr.ts +6 -0
  289. package/src/locale/he.ts +6 -0
  290. package/src/locale/hr.ts +6 -0
  291. package/src/locale/hu.ts +6 -0
  292. package/src/locale/id.ts +6 -0
  293. package/src/locale/it.ts +6 -0
  294. package/src/locale/ja.ts +6 -0
  295. package/src/locale/ko.ts +6 -0
  296. package/src/locale/lt.ts +6 -0
  297. package/src/locale/lv.ts +6 -0
  298. package/src/locale/nl.ts +6 -0
  299. package/src/locale/no.ts +6 -0
  300. package/src/locale/pl.ts +6 -0
  301. package/src/locale/pt.ts +6 -0
  302. package/src/locale/ro.ts +6 -0
  303. package/src/locale/ru.ts +6 -0
  304. package/src/locale/sk.ts +6 -0
  305. package/src/locale/sl.ts +6 -0
  306. package/src/locale/sr-Cyrl.ts +6 -0
  307. package/src/locale/sr-Latn.ts +6 -0
  308. package/src/locale/sv.ts +6 -0
  309. package/src/locale/th.ts +6 -0
  310. package/src/locale/tr.ts +6 -0
  311. package/src/locale/uk.ts +6 -0
  312. package/src/locale/vi.ts +6 -0
  313. package/src/locale/zh-Hans.ts +6 -0
  314. package/src/locale/zh-Hant.ts +6 -0
  315. package/src/mixins/groupable/index.ts +9 -2
  316. package/src/{components/VCalendar/mixins → mixins/mouse}/__tests__/mouse.spec.ts +2 -2
  317. package/src/{components/VCalendar/mixins/mouse.ts → mixins/mouse/index.ts} +10 -4
  318. package/src/mixins/validatable/index.ts +10 -4
  319. package/src/services/presets/__tests__/__snapshots__/presets.spec.ts.snap +2 -2
  320. package/src/styles/settings/_variables.scss +3 -2
  321. package/types/index.d.ts +6 -0
  322. package/es5/components/VCalendar/mixins/mouse.js.map +0 -1
  323. package/lib/components/VCalendar/mixins/mouse.js.map +0 -1
@@ -83,7 +83,7 @@
83
83
  position: relative
84
84
  text-align: center
85
85
  text-decoration: none
86
- text-transform: uppercase
86
+ text-transform: $tab-text-transform
87
87
  transition: none
88
88
  user-select: none
89
89
 
@@ -180,4 +180,26 @@ describe('VTabs.ts', () => {
180
180
  expect(wrapper.vm.slider.height).toBe(99)
181
181
  expect(wrapper.vm.slider.width).toBe(4)
182
182
  })
183
+
184
+ it('should use tabValue if it exists', () => {
185
+ const wrapper = mountFunction({
186
+ propsData: {
187
+ value: 'first',
188
+ },
189
+ slots: {
190
+ default: {
191
+ render: h => h('div', [
192
+ h(VTab, { props: { tabValue: 'first' } }),
193
+ h(VTab, { props: { tabValue: 'second' } }),
194
+ ]),
195
+ },
196
+ },
197
+ })
198
+
199
+ const tab = wrapper.findAll('.v-tab').at(1).trigger('click')
200
+
201
+ const emitted = wrapper.emitted('change')
202
+
203
+ expect(emitted).toStrictEqual([['second']])
204
+ })
183
205
  })
@@ -3,6 +3,7 @@
3
3
  $tab-disabled-opacity: .5 !default;
4
4
  $tab-font-size: map-deep-get($headings, 'subtitle-2', 'size') !default;
5
5
  $tab-font-weight: map-deep-get($headings, 'subtitle-2', 'weight') !default;
6
+ $tab-text-transform: 'uppercase' !default;
6
7
  $tab-line-height: normal !default;
7
8
  $tabs-bar-background-color: 'cards' !default;
8
9
  $tabs-bar-height: 48px !default;
@@ -11,17 +11,22 @@ import { waitAnimationFrame } from '../../../../test'
11
11
  describe('VTextField.ts', () => { // eslint-disable-line max-statements
12
12
  type Instance = InstanceType<typeof VTextField>
13
13
  let mountFunction: (options?: MountOptions<Instance>) => Wrapper<Instance>
14
+ let mocks: any
14
15
  beforeEach(() => {
16
+ mocks = {
17
+ $vuetify: {
18
+ icons: {},
19
+ rtl: false,
20
+ lang: {
21
+ t: (val: string) => val,
22
+ },
23
+ },
24
+ }
15
25
  mountFunction = (options?: MountOptions<Instance>) => {
16
26
  return mount(VTextField, {
17
27
  // https://github.com/vuejs/vue-test-utils/issues/1130
18
28
  sync: false,
19
- mocks: {
20
- $vuetify: {
21
- icons: {},
22
- rtl: false,
23
- },
24
- },
29
+ mocks,
25
30
  ...options,
26
31
  })
27
32
  }
@@ -51,7 +56,7 @@ describe('VTextField.ts', () => { // eslint-disable-line max-statements
51
56
  return h(VTextField, { on: { keyUp: keyup }, props: { download: '' }, attrs: {} })
52
57
  },
53
58
  }
54
- const wrapper = mount(component)
59
+ const wrapper = mount(component, { mocks })
55
60
 
56
61
  const input = wrapper.findAll('input').at(0)
57
62
  input.trigger('keyUp', { keyCode: 65 })
@@ -296,6 +301,7 @@ describe('VTextField.ts', () => { // eslint-disable-line max-statements
296
301
  }
297
302
  const wrapper = mount(component, {
298
303
  attachToDocument: true,
304
+ mocks,
299
305
  })
300
306
 
301
307
  const input = wrapper.findAll('input').at(0)
@@ -347,7 +353,7 @@ describe('VTextField.ts', () => { // eslint-disable-line max-statements
347
353
  })
348
354
  },
349
355
  }
350
- const wrapper = mount(component, { sync: false })
356
+ const wrapper = mount(component, { sync: false, mocks })
351
357
 
352
358
  const input = wrapper.findAll('input').at(0)
353
359
 
@@ -793,6 +799,7 @@ describe('VTextField.ts', () => { // eslint-disable-line max-statements
793
799
  }
794
800
  const wrapper = mount(component, {
795
801
  attachToDocument: true,
802
+ mocks,
796
803
  })
797
804
 
798
805
  const inputElement = wrapper.findAll('input').at(0)
@@ -24,6 +24,7 @@ export { SelectingTimes }
24
24
 
25
25
  type Period = 'am' | 'pm'
26
26
  type AllowFunction = (val: number) => boolean
27
+ type ActivePicker = 'HOUR' | 'MINUTE' | 'SECOND'
27
28
 
28
29
  export default mixins(
29
30
  Picker,
@@ -33,6 +34,7 @@ export default mixins(
33
34
  name: 'v-time-picker',
34
35
 
35
36
  props: {
37
+ activePicker: String as PropType<ActivePicker>,
36
38
  allowedHours: [Function, Array] as PropType<AllowFunction | number[]>,
37
39
  allowedMinutes: [Function, Array] as PropType<AllowFunction | number[]>,
38
40
  allowedSeconds: [Function, Array] as PropType<AllowFunction | number[]>,
@@ -177,6 +179,8 @@ export default mixins(
177
179
  },
178
180
 
179
181
  watch: {
182
+ activePicker: 'setPicker',
183
+ selecting: 'emitPicker',
180
184
  value: 'setInputData',
181
185
  },
182
186
 
@@ -197,6 +201,20 @@ export default mixins(
197
201
  const value = this.genValue()
198
202
  if (value !== null) this.$emit('input', value)
199
203
  },
204
+ emitPicker (value: SelectingTimes) {
205
+ let activePicker = 'HOUR'
206
+ if (value === SelectingTimes.Minute) {
207
+ activePicker = 'MINUTE'
208
+ } else if (value === SelectingTimes.Second) {
209
+ activePicker = 'SECOND'
210
+ }
211
+ this.$emit('update:active-picker', activePicker)
212
+ },
213
+ setPicker (picker: ActivePicker) {
214
+ if (picker === 'HOUR') this.selecting = SelectingTimes.Hour
215
+ else if (picker === 'MINUTE') this.selecting = SelectingTimes.Minute
216
+ else if (picker === 'SECOND' && this.useSeconds) this.selecting = SelectingTimes.Second
217
+ },
200
218
  setPeriod (period: Period) {
201
219
  this.period = period
202
220
  if (this.inputHour != null) {
@@ -746,5 +746,70 @@ describe('VTimePicker.ts', () => {
746
746
  expect(wrapper.vm.selectingHour).toBe(false)
747
747
  expect(wrapper.vm.selectingMinute).toBe(false)
748
748
  })
749
+
750
+ it('should emit active-picker when selectingSecond/selectingMinute/selectingHour' + useSecondsDesc, () => {
751
+ const wrapper = mountFunction({
752
+ propsData: {
753
+ useSeconds: useSecondsValue,
754
+ },
755
+ })
756
+ wrapper.vm.selectingMinute = true
757
+ expect(wrapper.vm.selecting).toBe(SelectingTimes.Minute)
758
+ expect(wrapper.emitted()['update:active-picker']).toHaveLength(1)
759
+ expect(wrapper.emitted()['update:active-picker'][0]).toEqual(['MINUTE'])
760
+
761
+ wrapper.vm.selectingHour = true
762
+ expect(wrapper.vm.selecting).toBe(SelectingTimes.Hour)
763
+ expect(wrapper.emitted()['update:active-picker']).toHaveLength(2)
764
+ expect(wrapper.emitted()['update:active-picker'][1]).toEqual(['HOUR'])
765
+
766
+ wrapper.vm.selectingSecond = true
767
+ expect(wrapper.vm.selecting).toBe(SelectingTimes.Second)
768
+ expect(wrapper.emitted()['update:active-picker']).toHaveLength(3)
769
+ expect(wrapper.emitted()['update:active-picker'][2]).toEqual(['SECOND'])
770
+ })
771
+
772
+ it('should set selecting to Hour when active-picker changes to "HOUR"' + useSecondsDesc, () => {
773
+ const wrapper = mountFunction({
774
+ propsData: {
775
+ useSeconds: useSecondsValue,
776
+ activePicker: '',
777
+ value: '09:12:34',
778
+ },
779
+ })
780
+ wrapper.vm.selectingMinute = true
781
+ wrapper.setProps({ activePicker: 'HOUR' })
782
+
783
+ expect(wrapper.vm.selecting).toBe(SelectingTimes.Hour)
784
+ })
785
+
786
+ it('should set selecting to Minute when active-picker changes to "MINUTE"' + useSecondsDesc, () => {
787
+ const wrapper = mountFunction({
788
+ propsData: {
789
+ useSeconds: useSecondsValue,
790
+ activePicker: '',
791
+ value: '09:12:34',
792
+ },
793
+ })
794
+ wrapper.vm.selectingSecond = true
795
+ wrapper.setProps({ activePicker: 'MINUTE' })
796
+
797
+ expect(wrapper.vm.selecting).toBe(SelectingTimes.Minute)
798
+ })
799
+
800
+ it('should set selecting to Seconds when active-picker changes to "SECOND"' + useSecondsDesc, () => {
801
+ const wrapper = mountFunction({
802
+ propsData: {
803
+ useSeconds: useSecondsValue,
804
+ activePicker: '',
805
+ value: '09:12:34',
806
+ },
807
+ })
808
+ wrapper.vm.selectingHour = true
809
+ wrapper.setProps({ activePicker: 'SECOND' })
810
+
811
+ const expectedValue = useSecondsValue ? SelectingTimes.Second : SelectingTimes.Hour
812
+ expect(wrapper.vm.selecting).toBe(expectedValue)
813
+ })
749
814
  })
750
815
  })
package/src/locale/af.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} meer',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} files',
49
54
  counterSize: '{0} files ({1} in total)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/ar.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} أكثر',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} ملفات',
49
54
  counterSize: '{0} ملفات ({1} في المجموع)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'القييم {0} من {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/az.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} ədad daha',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} fayl',
49
54
  counterSize: '{0} fayl (cəmi {1})',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/bg.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: 'Още {0}',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} файла',
49
54
  counterSize: '{0} файла ({1} общо)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/ca.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} més',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} fitxers',
49
54
  counterSize: '{0} fitxers ({1} en total)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Puntuació {0} de {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/ckb.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} زیاتر',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} فایل',
49
54
  counterSize: '{0} فایل ({1} لە کۆی گشتی)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/cs.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} dalších',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} souborů',
49
54
  counterSize: '{0} souborů ({1} celkem)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Hodnocení {0} z {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/da.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} mere',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} filer',
49
54
  counterSize: '{0} filer ({1} total)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Bedømmelse {0} af {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/de.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} mehr',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} Dateien',
49
54
  counterSize: '{0} Dateien ({1} gesamt)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/el.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} ακόμη',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} files',
49
54
  counterSize: '{0} files ({1} in total)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/en.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} more',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} files',
49
54
  counterSize: '{0} files ({1} in total)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/es.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} más',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} archivos',
49
54
  counterSize: '{0} archivos ({1} en total)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Puntuación {0} de {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/et.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} veel',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} faili',
49
54
  counterSize: '{0} faili (kokku {1})',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/fa.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{بیشتر {0',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} پرونده',
49
54
  counterSize: '{0} پرونده ({1} در کل)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/fi.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} lisää',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} tiedostoa',
49
54
  counterSize: '{0} tiedostoa ({1} yhteensä)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Luokitus {0}/{1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/fr.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} de plus',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} fichier(s)',
49
54
  counterSize: '{0} fichier(s) ({1} au total)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Note de {0} sur {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/he.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} נוספים',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} קבצים',
49
54
  counterSize: '{0} קבצים ({1} בסך הכל)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/hr.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: 'Još {0}',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: 'Odabranih datoteka: {0}',
49
54
  counterSize: 'Odabranih datoteka: {0} ({1} ukupno)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/hu.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} további',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} fájl',
49
54
  counterSize: '{0} fájl ({1} összesen)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/id.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} lagi',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} berkas',
49
54
  counterSize: '{0} berkas (dari total {1})',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/it.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} di più',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} file',
49
54
  counterSize: '{0} file ({1} in totale)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Valutazione {0} di {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/ja.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: 'さらに{0}',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} ファイル',
49
54
  counterSize: '{0} ファイル (合計 {1})',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: '評価 {1} のうち {0}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/ko.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: '{0} 더보기',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} files',
49
54
  counterSize: '{0} files ({1} in total)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }
package/src/locale/lt.ts CHANGED
@@ -44,6 +44,11 @@ export default {
44
44
  calendar: {
45
45
  moreEvents: 'Daugiau {0}',
46
46
  },
47
+ input: {
48
+ clear: 'Clear {0}',
49
+ prependAction: '{0} prepended action',
50
+ appendAction: '{0} appended action',
51
+ },
47
52
  fileInput: {
48
53
  counter: '{0} failų',
49
54
  counterSize: '{0} failų ({1} iš viso)',
@@ -66,4 +71,5 @@ export default {
66
71
  icon: 'Rating {0} of {1}',
67
72
  },
68
73
  },
74
+ loading: 'Loading...',
69
75
  }