vuetify 3.0.0-beta.9 → 3.0.1

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 (959) hide show
  1. package/_settings.scss +2 -0
  2. package/_styles.scss +1 -0
  3. package/_tools.scss +1 -0
  4. package/dist/json/attributes.json +3767 -2527
  5. package/dist/json/importMap.json +14 -18
  6. package/dist/json/tags.json +475 -56
  7. package/dist/json/web-types.json +14481 -10795
  8. package/dist/vuetify.css +1565 -2316
  9. package/dist/vuetify.d.ts +17610 -6982
  10. package/dist/vuetify.esm.js +5675 -6283
  11. package/dist/vuetify.esm.js.map +1 -1
  12. package/dist/vuetify.js +5664 -6273
  13. package/dist/vuetify.js.map +1 -1
  14. package/dist/vuetify.min.css +3 -3
  15. package/dist/vuetify.min.js +1266 -1272
  16. package/dist/vuetify.min.js.map +1 -1
  17. package/lib/blueprints/index.d.ts +163 -0
  18. package/lib/blueprints/index.mjs.map +1 -1
  19. package/lib/blueprints/md1.d.ts +159 -0
  20. package/lib/blueprints/md1.mjs +3 -1
  21. package/lib/blueprints/md1.mjs.map +1 -1
  22. package/lib/blueprints/md2.d.ts +159 -0
  23. package/lib/blueprints/md2.mjs +3 -1
  24. package/lib/blueprints/md2.mjs.map +1 -1
  25. package/lib/blueprints/md3.d.ts +159 -0
  26. package/lib/blueprints/md3.mjs +2 -2
  27. package/lib/blueprints/md3.mjs.map +1 -1
  28. package/lib/components/VAlert/VAlert.css +2 -3
  29. package/lib/components/VAlert/VAlert.mjs +10 -23
  30. package/lib/components/VAlert/VAlert.mjs.map +1 -1
  31. package/lib/components/VAlert/VAlertTitle.mjs.map +1 -1
  32. package/lib/components/VAlert/index.d.ts +187 -0
  33. package/lib/components/VAlert/index.mjs.map +1 -1
  34. package/lib/components/VApp/VApp.css +0 -11
  35. package/lib/components/VApp/VApp.mjs +5 -7
  36. package/lib/components/VApp/VApp.mjs.map +1 -1
  37. package/lib/components/VApp/VApp.sass +0 -9
  38. package/lib/components/VApp/index.d.ts +85 -0
  39. package/lib/components/VApp/index.mjs.map +1 -1
  40. package/lib/components/VAppBar/VAppBar.css +4 -1
  41. package/lib/components/VAppBar/VAppBar.mjs +7 -11
  42. package/lib/components/VAppBar/VAppBar.mjs.map +1 -1
  43. package/lib/components/VAppBar/VAppBar.sass +3 -0
  44. package/lib/components/VAppBar/VAppBarNavIcon.mjs +0 -4
  45. package/lib/components/VAppBar/VAppBarNavIcon.mjs.map +1 -1
  46. package/lib/components/VAppBar/VAppBarTitle.mjs +2 -4
  47. package/lib/components/VAppBar/VAppBarTitle.mjs.map +1 -1
  48. package/lib/components/VAppBar/index.d.ts +160 -0
  49. package/lib/components/VAppBar/index.mjs.map +1 -1
  50. package/lib/components/VAutocomplete/VAutocomplete.css +19 -2
  51. package/lib/components/VAutocomplete/VAutocomplete.mjs +61 -50
  52. package/lib/components/VAutocomplete/VAutocomplete.mjs.map +1 -1
  53. package/lib/components/VAutocomplete/VAutocomplete.sass +11 -1
  54. package/lib/components/VAutocomplete/_variables.scss +1 -0
  55. package/lib/components/VAutocomplete/index.d.ts +1754 -0
  56. package/lib/components/VAutocomplete/index.mjs.map +1 -1
  57. package/lib/components/VAvatar/VAvatar.css +45 -2
  58. package/lib/components/VAvatar/VAvatar.mjs +19 -19
  59. package/lib/components/VAvatar/VAvatar.mjs.map +1 -1
  60. package/lib/components/VAvatar/VAvatar.sass +6 -1
  61. package/lib/components/VAvatar/_variables.scss +9 -4
  62. package/lib/components/VAvatar/index.d.ts +82 -0
  63. package/lib/components/VAvatar/index.mjs.map +1 -1
  64. package/lib/components/VBadge/VBadge.mjs +3 -9
  65. package/lib/components/VBadge/VBadge.mjs.map +1 -1
  66. package/lib/components/VBadge/index.d.ts +123 -0
  67. package/lib/components/VBadge/index.mjs.map +1 -1
  68. package/lib/components/VBanner/VBanner.css +1 -1
  69. package/lib/components/VBanner/VBanner.mjs +5 -7
  70. package/lib/components/VBanner/VBanner.mjs.map +1 -1
  71. package/lib/components/VBanner/VBannerActions.mjs +0 -4
  72. package/lib/components/VBanner/VBannerActions.mjs.map +1 -1
  73. package/lib/components/VBanner/VBannerText.mjs.map +1 -1
  74. package/lib/components/VBanner/index.d.ts +126 -0
  75. package/lib/components/VBanner/index.mjs.map +1 -1
  76. package/lib/components/VBottomNavigation/VBottomNavigation.css +1 -1
  77. package/lib/components/VBottomNavigation/VBottomNavigation.mjs +3 -6
  78. package/lib/components/VBottomNavigation/VBottomNavigation.mjs.map +1 -1
  79. package/lib/components/VBottomNavigation/index.d.ts +145 -0
  80. package/lib/components/VBottomNavigation/index.mjs.map +1 -1
  81. package/lib/components/VBottomSheet/VBottomSheet.mjs +5 -5
  82. package/lib/components/VBottomSheet/VBottomSheet.mjs.map +1 -1
  83. package/lib/components/VBottomSheet/index.mjs.map +1 -1
  84. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs +8 -12
  85. package/lib/components/VBreadcrumbs/VBreadcrumbs.mjs.map +1 -1
  86. package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.mjs.map +1 -1
  87. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs +4 -9
  88. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.mjs.map +1 -1
  89. package/lib/components/VBreadcrumbs/index.d.ts +313 -0
  90. package/lib/components/VBreadcrumbs/index.mjs.map +1 -1
  91. package/lib/components/VBtn/VBtn.css +14 -10
  92. package/lib/components/VBtn/VBtn.mjs +22 -20
  93. package/lib/components/VBtn/VBtn.mjs.map +1 -1
  94. package/lib/components/VBtn/index.d.ts +213 -0
  95. package/lib/components/VBtn/index.mjs.map +1 -1
  96. package/lib/components/VBtnGroup/VBtnGroup.css +1 -1
  97. package/lib/components/VBtnGroup/VBtnGroup.mjs +2 -4
  98. package/lib/components/VBtnGroup/VBtnGroup.mjs.map +1 -1
  99. package/lib/components/VBtnGroup/index.d.ts +68 -0
  100. package/lib/components/VBtnGroup/index.mjs.map +1 -1
  101. package/lib/components/VBtnToggle/VBtnToggle.mjs +3 -10
  102. package/lib/components/VBtnToggle/VBtnToggle.mjs.map +1 -1
  103. package/lib/components/VBtnToggle/index.d.ts +170 -0
  104. package/lib/components/VBtnToggle/index.mjs.map +1 -1
  105. package/lib/components/VCalendar/VCalendar.mjs +6 -67
  106. package/lib/components/VCalendar/VCalendar.mjs.map +1 -1
  107. package/lib/components/VCalendar/VCalendarCategory.mjs +7 -18
  108. package/lib/components/VCalendar/VCalendarCategory.mjs.map +1 -1
  109. package/lib/components/VCalendar/VCalendarDaily.mjs +3 -34
  110. package/lib/components/VCalendar/VCalendarDaily.mjs.map +1 -1
  111. package/lib/components/VCalendar/VCalendarMonthly.mjs +3 -7
  112. package/lib/components/VCalendar/VCalendarMonthly.mjs.map +1 -1
  113. package/lib/components/VCalendar/VCalendarWeekly.mjs +3 -32
  114. package/lib/components/VCalendar/VCalendarWeekly.mjs.map +1 -1
  115. package/lib/components/VCalendar/index.mjs.map +1 -1
  116. package/lib/components/VCalendar/mixins/calendar-base.mjs +1 -19
  117. package/lib/components/VCalendar/mixins/calendar-base.mjs.map +1 -1
  118. package/lib/components/VCalendar/mixins/calendar-with-events.mjs +16 -84
  119. package/lib/components/VCalendar/mixins/calendar-with-events.mjs.map +1 -1
  120. package/lib/components/VCalendar/mixins/calendar-with-intervals.mjs +0 -30
  121. package/lib/components/VCalendar/mixins/calendar-with-intervals.mjs.map +1 -1
  122. package/lib/components/VCalendar/mixins/mouse.mjs +7 -17
  123. package/lib/components/VCalendar/mixins/mouse.mjs.map +1 -1
  124. package/lib/components/VCalendar/mixins/times.mjs +1 -9
  125. package/lib/components/VCalendar/mixins/times.mjs.map +1 -1
  126. package/lib/components/VCalendar/modes/column.mjs +0 -3
  127. package/lib/components/VCalendar/modes/column.mjs.map +1 -1
  128. package/lib/components/VCalendar/modes/common.mjs +0 -14
  129. package/lib/components/VCalendar/modes/common.mjs.map +1 -1
  130. package/lib/components/VCalendar/modes/index.mjs +0 -1
  131. package/lib/components/VCalendar/modes/index.mjs.map +1 -1
  132. package/lib/components/VCalendar/modes/stack.mjs +3 -45
  133. package/lib/components/VCalendar/modes/stack.mjs.map +1 -1
  134. package/lib/components/VCalendar/util/events.mjs +0 -1
  135. package/lib/components/VCalendar/util/events.mjs.map +1 -1
  136. package/lib/components/VCalendar/util/parser.mjs +3 -4
  137. package/lib/components/VCalendar/util/parser.mjs.map +1 -1
  138. package/lib/components/VCalendar/util/props.mjs +0 -13
  139. package/lib/components/VCalendar/util/props.mjs.map +1 -1
  140. package/lib/components/VCalendar/util/timestamp.mjs +2 -64
  141. package/lib/components/VCalendar/util/timestamp.mjs.map +1 -1
  142. package/lib/components/VCard/VCard.css +13 -9
  143. package/lib/components/VCard/VCard.mjs +6 -11
  144. package/lib/components/VCard/VCard.mjs.map +1 -1
  145. package/lib/components/VCard/VCardActions.mjs +0 -4
  146. package/lib/components/VCard/VCardActions.mjs.map +1 -1
  147. package/lib/components/VCard/VCardItem.mjs +5 -10
  148. package/lib/components/VCard/VCardItem.mjs.map +1 -1
  149. package/lib/components/VCard/VCardSubtitle.mjs.map +1 -1
  150. package/lib/components/VCard/VCardText.mjs.map +1 -1
  151. package/lib/components/VCard/VCardTitle.mjs.map +1 -1
  152. package/lib/components/VCard/index.d.ts +238 -0
  153. package/lib/components/VCard/index.mjs.map +1 -1
  154. package/lib/components/VCarousel/VCarousel.mjs +8 -12
  155. package/lib/components/VCarousel/VCarousel.mjs.map +1 -1
  156. package/lib/components/VCarousel/VCarouselItem.mjs +0 -3
  157. package/lib/components/VCarousel/VCarouselItem.mjs.map +1 -1
  158. package/lib/components/VCarousel/index.d.ts +81 -0
  159. package/lib/components/VCarousel/index.mjs.map +1 -1
  160. package/lib/components/VCheckbox/VCheckbox.mjs +22 -9
  161. package/lib/components/VCheckbox/VCheckbox.mjs.map +1 -1
  162. package/lib/components/VCheckbox/VCheckboxBtn.mjs +7 -15
  163. package/lib/components/VCheckbox/VCheckboxBtn.mjs.map +1 -1
  164. package/lib/components/VCheckbox/index.d.ts +302 -0
  165. package/lib/components/VCheckbox/index.mjs.map +1 -1
  166. package/lib/components/VChip/VChip.css +27 -3
  167. package/lib/components/VChip/VChip.mjs +5 -14
  168. package/lib/components/VChip/VChip.mjs.map +1 -1
  169. package/lib/components/VChip/VChip.sass +1 -0
  170. package/lib/components/VChip/index.d.ts +196 -0
  171. package/lib/components/VChip/index.mjs.map +1 -1
  172. package/lib/components/VChipGroup/VChipGroup.mjs +5 -6
  173. package/lib/components/VChipGroup/VChipGroup.mjs.map +1 -1
  174. package/lib/components/VChipGroup/index.d.ts +89 -0
  175. package/lib/components/VChipGroup/index.mjs.map +1 -1
  176. package/lib/components/VCode/VCode.css +5 -3
  177. package/lib/components/VCode/VCode.sass +3 -1
  178. package/lib/components/VCode/_variables.scss +5 -3
  179. package/lib/components/VCode/index.d.ts +20 -0
  180. package/lib/components/VCode/index.mjs.map +1 -1
  181. package/lib/components/VColorPicker/VColorPicker.css +3 -3
  182. package/lib/components/VColorPicker/VColorPicker.mjs +54 -61
  183. package/lib/components/VColorPicker/VColorPicker.mjs.map +1 -1
  184. package/lib/components/VColorPicker/VColorPickerCanvas.mjs +10 -25
  185. package/lib/components/VColorPicker/VColorPickerCanvas.mjs.map +1 -1
  186. package/lib/components/VColorPicker/VColorPickerEdit.mjs +6 -10
  187. package/lib/components/VColorPicker/VColorPickerEdit.mjs.map +1 -1
  188. package/lib/components/VColorPicker/VColorPickerPreview.mjs +14 -24
  189. package/lib/components/VColorPicker/VColorPickerPreview.mjs.map +1 -1
  190. package/lib/components/VColorPicker/VColorPickerSwatches.mjs +2 -6
  191. package/lib/components/VColorPicker/VColorPickerSwatches.mjs.map +1 -1
  192. package/lib/components/VColorPicker/index.d.ts +116 -0
  193. package/lib/components/VColorPicker/index.mjs.map +1 -1
  194. package/lib/components/VColorPicker/util/index.mjs +25 -29
  195. package/lib/components/VColorPicker/util/index.mjs.map +1 -1
  196. package/lib/components/VCombobox/VCombobox.css +14 -1
  197. package/lib/components/VCombobox/VCombobox.mjs +67 -65
  198. package/lib/components/VCombobox/VCombobox.mjs.map +1 -1
  199. package/lib/components/VCombobox/VCombobox.sass +5 -0
  200. package/lib/components/VCombobox/_variables.scss +1 -0
  201. package/lib/components/VCombobox/index.d.ts +1775 -0
  202. package/lib/components/VCombobox/index.mjs.map +1 -1
  203. package/lib/components/VCounter/VCounter.mjs +2 -5
  204. package/lib/components/VCounter/VCounter.mjs.map +1 -1
  205. package/lib/components/VCounter/index.d.ts +224 -0
  206. package/lib/components/VCounter/index.mjs.map +1 -1
  207. package/lib/components/VData/VData.mjs +9 -67
  208. package/lib/components/VData/VData.mjs.map +1 -1
  209. package/lib/components/VData/index.mjs.map +1 -1
  210. package/lib/components/VDataIterator/VDataFooter.mjs +6 -25
  211. package/lib/components/VDataIterator/VDataFooter.mjs.map +1 -1
  212. package/lib/components/VDataIterator/VDataIterator.mjs +12 -51
  213. package/lib/components/VDataIterator/VDataIterator.mjs.map +1 -1
  214. package/lib/components/VDataIterator/index.mjs.map +1 -1
  215. package/lib/components/VDataTable/MobileRow.mjs +3 -8
  216. package/lib/components/VDataTable/MobileRow.mjs.map +1 -1
  217. package/lib/components/VDataTable/Row.mjs +1 -8
  218. package/lib/components/VDataTable/Row.mjs.map +1 -1
  219. package/lib/components/VDataTable/RowGroup.mjs +1 -7
  220. package/lib/components/VDataTable/RowGroup.mjs.map +1 -1
  221. package/lib/components/VDataTable/VDataTable.mjs +53 -105
  222. package/lib/components/VDataTable/VDataTable.mjs.map +1 -1
  223. package/lib/components/VDataTable/VDataTableHeader.mjs +6 -10
  224. package/lib/components/VDataTable/VDataTableHeader.mjs.map +1 -1
  225. package/lib/components/VDataTable/VDataTableHeaderDesktop.mjs +0 -18
  226. package/lib/components/VDataTable/VDataTableHeaderDesktop.mjs.map +1 -1
  227. package/lib/components/VDataTable/VDataTableHeaderMobile.mjs +0 -9
  228. package/lib/components/VDataTable/VDataTableHeaderMobile.mjs.map +1 -1
  229. package/lib/components/VDataTable/VEditDialog.mjs +3 -17
  230. package/lib/components/VDataTable/VEditDialog.mjs.map +1 -1
  231. package/lib/components/VDataTable/VVirtualTable.mjs +3 -28
  232. package/lib/components/VDataTable/VVirtualTable.mjs.map +1 -1
  233. package/lib/components/VDataTable/index.mjs +0 -1
  234. package/lib/components/VDataTable/index.mjs.map +1 -1
  235. package/lib/components/VDataTable/mixins/header.mjs +1 -8
  236. package/lib/components/VDataTable/mixins/header.mjs.map +1 -1
  237. package/lib/components/VDatePicker/VDatePicker.mjs +2 -69
  238. package/lib/components/VDatePicker/VDatePicker.mjs.map +1 -1
  239. package/lib/components/VDatePicker/VDatePickerDateTable.mjs +1 -29
  240. package/lib/components/VDatePicker/VDatePickerDateTable.mjs.map +1 -1
  241. package/lib/components/VDatePicker/VDatePickerHeader.mjs +4 -17
  242. package/lib/components/VDatePicker/VDatePickerHeader.mjs.map +1 -1
  243. package/lib/components/VDatePicker/VDatePickerMonthTable.mjs +1 -12
  244. package/lib/components/VDatePicker/VDatePickerMonthTable.mjs.map +1 -1
  245. package/lib/components/VDatePicker/VDatePickerTitle.mjs +4 -15
  246. package/lib/components/VDatePicker/VDatePickerTitle.mjs.map +1 -1
  247. package/lib/components/VDatePicker/VDatePickerYears.mjs +4 -18
  248. package/lib/components/VDatePicker/VDatePickerYears.mjs.map +1 -1
  249. package/lib/components/VDatePicker/index.mjs.map +1 -1
  250. package/lib/components/VDatePicker/mixins/date-picker-table.mjs +6 -33
  251. package/lib/components/VDatePicker/mixins/date-picker-table.mjs.map +1 -1
  252. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs +0 -5
  253. package/lib/components/VDatePicker/util/createNativeLocaleFormatter.mjs.map +1 -1
  254. package/lib/components/VDatePicker/util/eventHelpers.mjs +2 -3
  255. package/lib/components/VDatePicker/util/eventHelpers.mjs.map +1 -1
  256. package/lib/components/VDatePicker/util/index.mjs +0 -1
  257. package/lib/components/VDatePicker/util/index.mjs.map +1 -1
  258. package/lib/components/VDatePicker/util/isDateAllowed.mjs +1 -1
  259. package/lib/components/VDatePicker/util/isDateAllowed.mjs.map +1 -1
  260. package/lib/components/VDatePicker/util/monthChange.mjs +0 -3
  261. package/lib/components/VDatePicker/util/monthChange.mjs.map +1 -1
  262. package/lib/components/VDatePicker/util/pad.mjs +1 -6
  263. package/lib/components/VDatePicker/util/pad.mjs.map +1 -1
  264. package/lib/components/VDatePicker/util/sanitizeDateString.mjs.map +1 -1
  265. package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs +2 -4
  266. package/lib/components/VDefaultsProvider/VDefaultsProvider.mjs.map +1 -1
  267. package/lib/components/VDefaultsProvider/index.d.ts +27 -0
  268. package/lib/components/VDefaultsProvider/index.mjs.map +1 -1
  269. package/lib/components/VDialog/VDialog.css +4 -1
  270. package/lib/components/VDialog/VDialog.mjs +49 -59
  271. package/lib/components/VDialog/VDialog.mjs.map +1 -1
  272. package/lib/components/VDialog/VDialog.sass +3 -0
  273. package/lib/components/VDialog/index.d.ts +1795 -0
  274. package/lib/components/VDialog/index.mjs.map +1 -1
  275. package/lib/components/VDivider/VDivider.mjs +2 -8
  276. package/lib/components/VDivider/VDivider.mjs.map +1 -1
  277. package/lib/components/VDivider/index.d.ts +23 -0
  278. package/lib/components/VDivider/index.mjs.map +1 -1
  279. package/lib/components/VExpansionPanel/VExpansionPanel.css +11 -6
  280. package/lib/components/VExpansionPanel/VExpansionPanel.mjs +0 -5
  281. package/lib/components/VExpansionPanel/VExpansionPanel.mjs.map +1 -1
  282. package/lib/components/VExpansionPanel/VExpansionPanel.sass +2 -2
  283. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs +2 -6
  284. package/lib/components/VExpansionPanel/VExpansionPanelText.mjs.map +1 -1
  285. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs +3 -8
  286. package/lib/components/VExpansionPanel/VExpansionPanelTitle.mjs.map +1 -1
  287. package/lib/components/VExpansionPanel/VExpansionPanels.mjs +2 -5
  288. package/lib/components/VExpansionPanel/VExpansionPanels.mjs.map +1 -1
  289. package/lib/components/VExpansionPanel/index.d.ts +206 -0
  290. package/lib/components/VExpansionPanel/index.mjs.map +1 -1
  291. package/lib/components/VField/VField.css +29 -26
  292. package/lib/components/VField/VField.mjs +36 -35
  293. package/lib/components/VField/VField.mjs.map +1 -1
  294. package/lib/components/VField/VField.sass +23 -22
  295. package/lib/components/VField/VFieldLabel.mjs +0 -3
  296. package/lib/components/VField/VFieldLabel.mjs.map +1 -1
  297. package/lib/components/VField/index.d.ts +306 -0
  298. package/lib/components/VField/index.mjs.map +1 -1
  299. package/lib/components/VFileInput/VFileInput.css +16 -0
  300. package/lib/components/VFileInput/VFileInput.mjs +41 -60
  301. package/lib/components/VFileInput/VFileInput.mjs.map +1 -1
  302. package/lib/components/VFileInput/VFileInput.sass +10 -0
  303. package/lib/components/VFileInput/_variables.scss +2 -0
  304. package/lib/components/VFileInput/index.d.ts +477 -0
  305. package/lib/components/VFileInput/index.mjs.map +1 -1
  306. package/lib/components/VFooter/VFooter.css +8 -1
  307. package/lib/components/VFooter/VFooter.mjs +2 -4
  308. package/lib/components/VFooter/VFooter.mjs.map +1 -1
  309. package/lib/components/VFooter/VFooter.sass +1 -1
  310. package/lib/components/VFooter/_variables.scss +11 -0
  311. package/lib/components/VFooter/index.d.ts +77 -0
  312. package/lib/components/VFooter/index.mjs.map +1 -1
  313. package/lib/components/VForm/VForm.mjs +2 -13
  314. package/lib/components/VForm/VForm.mjs.map +1 -1
  315. package/lib/components/VForm/index.d.ts +81 -0
  316. package/lib/components/VForm/index.mjs.map +1 -1
  317. package/lib/components/VGrid/VCol.mjs +8 -23
  318. package/lib/components/VGrid/VCol.mjs.map +1 -1
  319. package/lib/components/VGrid/VContainer.mjs +2 -4
  320. package/lib/components/VGrid/VContainer.mjs.map +1 -1
  321. package/lib/components/VGrid/VRow.mjs +6 -24
  322. package/lib/components/VGrid/VRow.mjs.map +1 -1
  323. package/lib/components/VGrid/VSpacer.mjs.map +1 -1
  324. package/lib/components/VGrid/index.d.ts +156 -0
  325. package/lib/components/VGrid/index.mjs.map +1 -1
  326. package/lib/components/VHover/VHover.mjs +0 -4
  327. package/lib/components/VHover/VHover.mjs.map +1 -1
  328. package/lib/components/VHover/index.d.ts +31 -0
  329. package/lib/components/VHover/index.mjs.map +1 -1
  330. package/lib/components/VIcon/VIcon.mjs +4 -9
  331. package/lib/components/VIcon/VIcon.mjs.map +1 -1
  332. package/lib/components/VIcon/index.d.ts +125 -0
  333. package/lib/components/VIcon/index.mjs.map +1 -1
  334. package/lib/components/VImg/VImg.mjs +36 -60
  335. package/lib/components/VImg/VImg.mjs.map +1 -1
  336. package/lib/components/VImg/index.d.ts +93 -0
  337. package/lib/components/VImg/index.mjs.map +1 -1
  338. package/lib/components/VInput/InputIcon.mjs +31 -0
  339. package/lib/components/VInput/InputIcon.mjs.map +1 -0
  340. package/lib/components/VInput/VInput.mjs +20 -20
  341. package/lib/components/VInput/VInput.mjs.map +1 -1
  342. package/lib/components/VInput/index.d.ts +320 -0
  343. package/lib/components/VInput/index.mjs.map +1 -1
  344. package/lib/components/VItemGroup/VItem.mjs +0 -5
  345. package/lib/components/VItemGroup/VItem.mjs.map +1 -1
  346. package/lib/components/VItemGroup/VItemGroup.mjs +4 -6
  347. package/lib/components/VItemGroup/VItemGroup.mjs.map +1 -1
  348. package/lib/components/VItemGroup/index.d.ts +204 -0
  349. package/lib/components/VItemGroup/index.mjs.map +1 -1
  350. package/lib/components/VKbd/VKbd.css +3 -3
  351. package/lib/components/VKbd/VKbd.sass +2 -2
  352. package/lib/components/VKbd/index.d.ts +20 -0
  353. package/lib/components/VKbd/index.mjs.map +1 -1
  354. package/lib/components/VLabel/VLabel.css +4 -1
  355. package/lib/components/VLabel/VLabel.mjs +6 -6
  356. package/lib/components/VLabel/VLabel.mjs.map +1 -1
  357. package/lib/components/VLabel/VLabel.sass +3 -1
  358. package/lib/components/VLabel/index.d.ts +16 -0
  359. package/lib/components/VLabel/index.mjs.map +1 -1
  360. package/lib/components/VLayout/VLayout.mjs +2 -5
  361. package/lib/components/VLayout/VLayout.mjs.map +1 -1
  362. package/lib/components/VLayout/VLayoutItem.mjs +2 -6
  363. package/lib/components/VLayout/VLayoutItem.mjs.map +1 -1
  364. package/lib/components/VLayout/index.d.ts +78 -0
  365. package/lib/components/VLayout/index.mjs.map +1 -1
  366. package/lib/components/VLazy/VLazy.mjs +0 -8
  367. package/lib/components/VLazy/VLazy.mjs.map +1 -1
  368. package/lib/components/VLazy/index.d.ts +86 -0
  369. package/lib/components/VLazy/index.mjs.map +1 -1
  370. package/lib/components/VList/VList.css +1 -1
  371. package/lib/components/VList/VList.mjs +76 -24
  372. package/lib/components/VList/VList.mjs.map +1 -1
  373. package/lib/components/VList/VListChildren.mjs +22 -31
  374. package/lib/components/VList/VListChildren.mjs.map +1 -1
  375. package/lib/components/VList/VListGroup.mjs +11 -17
  376. package/lib/components/VList/VListGroup.mjs.map +1 -1
  377. package/lib/components/VList/VListImg.mjs.map +1 -1
  378. package/lib/components/VList/VListItem.css +12 -8
  379. package/lib/components/VList/VListItem.mjs +45 -43
  380. package/lib/components/VList/VListItem.mjs.map +1 -1
  381. package/lib/components/VList/VListItem.sass +2 -2
  382. package/lib/components/VList/VListItemAction.mjs +0 -3
  383. package/lib/components/VList/VListItemAction.mjs.map +1 -1
  384. package/lib/components/VList/VListItemMedia.mjs +0 -3
  385. package/lib/components/VList/VListItemMedia.mjs.map +1 -1
  386. package/lib/components/VList/VListItemSubtitle.mjs.map +1 -1
  387. package/lib/components/VList/VListItemTitle.mjs.map +1 -1
  388. package/lib/components/VList/VListSubheader.mjs +2 -6
  389. package/lib/components/VList/VListSubheader.mjs.map +1 -1
  390. package/lib/components/VList/index.d.ts +1253 -0
  391. package/lib/components/VList/index.mjs.map +1 -1
  392. package/lib/components/VList/list.mjs +5 -2
  393. package/lib/components/VList/list.mjs.map +1 -1
  394. package/lib/components/VLocaleProvider/VLocaleProvider.mjs +4 -9
  395. package/lib/components/VLocaleProvider/VLocaleProvider.mjs.map +1 -1
  396. package/lib/components/VLocaleProvider/index.d.ts +24 -0
  397. package/lib/components/VLocaleProvider/index.mjs.map +1 -1
  398. package/lib/components/VMain/VMain.css +0 -7
  399. package/lib/components/VMain/VMain.mjs +2 -5
  400. package/lib/components/VMain/VMain.mjs.map +1 -1
  401. package/lib/components/VMain/VMain.sass +0 -8
  402. package/lib/components/VMain/index.d.ts +27 -0
  403. package/lib/components/VMain/index.mjs.map +1 -1
  404. package/lib/components/VMenu/VMenu.css +1 -1
  405. package/lib/components/VMenu/VMenu.mjs +45 -43
  406. package/lib/components/VMenu/VMenu.mjs.map +1 -1
  407. package/lib/components/VMenu/index.d.ts +1823 -0
  408. package/lib/components/VMenu/index.mjs.map +1 -1
  409. package/lib/components/VMenu/shared.mjs.map +1 -1
  410. package/lib/components/VMessages/VMessages.mjs +2 -6
  411. package/lib/components/VMessages/VMessages.mjs.map +1 -1
  412. package/lib/components/VMessages/index.d.ts +235 -0
  413. package/lib/components/VMessages/index.mjs.map +1 -1
  414. package/lib/components/VNavigationDrawer/VNavigationDrawer.css +2 -2
  415. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs +6 -11
  416. package/lib/components/VNavigationDrawer/VNavigationDrawer.mjs.map +1 -1
  417. package/lib/components/VNavigationDrawer/VNavigationDrawer.sass +1 -1
  418. package/lib/components/VNavigationDrawer/_variables.scss +1 -0
  419. package/lib/components/VNavigationDrawer/index.d.ts +148 -0
  420. package/lib/components/VNavigationDrawer/index.mjs.map +1 -1
  421. package/lib/components/VNavigationDrawer/sticky.mjs +1 -7
  422. package/lib/components/VNavigationDrawer/sticky.mjs.map +1 -1
  423. package/lib/components/VNavigationDrawer/touch.mjs +2 -15
  424. package/lib/components/VNavigationDrawer/touch.mjs.map +1 -1
  425. package/lib/components/VNoSsr/VNoSsr.mjs +1 -7
  426. package/lib/components/VNoSsr/VNoSsr.mjs.map +1 -1
  427. package/lib/components/VNoSsr/index.d.ts +8 -0
  428. package/lib/components/VNoSsr/index.mjs.map +1 -1
  429. package/lib/components/VOtpInput/VOtpInput.mjs +7 -58
  430. package/lib/components/VOtpInput/VOtpInput.mjs.map +1 -1
  431. package/lib/components/VOtpInput/index.mjs.map +1 -1
  432. package/lib/components/VOverflowBtn/VOverflowBtn.mjs +7 -19
  433. package/lib/components/VOverflowBtn/VOverflowBtn.mjs.map +1 -1
  434. package/lib/components/VOverflowBtn/index.mjs.map +1 -1
  435. package/lib/components/VOverlay/VOverlay.mjs +50 -54
  436. package/lib/components/VOverlay/VOverlay.mjs.map +1 -1
  437. package/lib/components/VOverlay/index.d.ts +551 -0
  438. package/lib/components/VOverlay/index.mjs.map +1 -1
  439. package/lib/components/VOverlay/locationStrategies.mjs +39 -65
  440. package/lib/components/VOverlay/locationStrategies.mjs.map +1 -1
  441. package/lib/components/VOverlay/requestNewFrame.mjs +1 -2
  442. package/lib/components/VOverlay/requestNewFrame.mjs.map +1 -1
  443. package/lib/components/VOverlay/scrollStrategies.mjs +10 -29
  444. package/lib/components/VOverlay/scrollStrategies.mjs.map +1 -1
  445. package/lib/components/VOverlay/useActivator.mjs +29 -29
  446. package/lib/components/VOverlay/useActivator.mjs.map +1 -1
  447. package/lib/components/VOverlay/util/point.mjs +3 -4
  448. package/lib/components/VOverlay/util/point.mjs.map +1 -1
  449. package/lib/components/VPagination/VPagination.mjs +20 -30
  450. package/lib/components/VPagination/VPagination.mjs.map +1 -1
  451. package/lib/components/VPagination/index.d.ts +249 -0
  452. package/lib/components/VPagination/index.mjs.map +1 -1
  453. package/lib/components/VParallax/VParallax.mjs +32 -24
  454. package/lib/components/VParallax/VParallax.mjs.map +1 -1
  455. package/lib/components/VParallax/index.d.ts +18 -0
  456. package/lib/components/VParallax/index.mjs.map +1 -1
  457. package/lib/components/VPicker/VPicker.mjs +3 -12
  458. package/lib/components/VPicker/VPicker.mjs.map +1 -1
  459. package/lib/components/VPicker/index.mjs.map +1 -1
  460. package/lib/components/VProgressCircular/VProgressCircular.mjs +2 -5
  461. package/lib/components/VProgressCircular/VProgressCircular.mjs.map +1 -1
  462. package/lib/components/VProgressCircular/index.d.ts +69 -0
  463. package/lib/components/VProgressCircular/index.mjs.map +1 -1
  464. package/lib/components/VProgressLinear/VProgressLinear.mjs +5 -8
  465. package/lib/components/VProgressLinear/VProgressLinear.mjs.map +1 -1
  466. package/lib/components/VProgressLinear/index.d.ts +102 -0
  467. package/lib/components/VProgressLinear/index.mjs.map +1 -1
  468. package/lib/components/VRadio/VRadio.mjs +2 -4
  469. package/lib/components/VRadio/VRadio.mjs.map +1 -1
  470. package/lib/components/VRadio/index.d.ts +105 -0
  471. package/lib/components/VRadio/index.mjs.map +1 -1
  472. package/lib/components/VRadioGroup/VRadioGroup.css +2 -3
  473. package/lib/components/VRadioGroup/VRadioGroup.mjs +17 -21
  474. package/lib/components/VRadioGroup/VRadioGroup.mjs.map +1 -1
  475. package/lib/components/VRadioGroup/VRadioGroup.sass +2 -2
  476. package/lib/components/VRadioGroup/_variables.scss +0 -1
  477. package/lib/components/VRadioGroup/index.d.ts +179 -0
  478. package/lib/components/VRadioGroup/index.mjs.map +1 -1
  479. package/lib/components/VRangeSlider/VRangeSlider.mjs +24 -27
  480. package/lib/components/VRangeSlider/VRangeSlider.mjs.map +1 -1
  481. package/lib/components/VRangeSlider/index.d.ts +246 -0
  482. package/lib/components/VRangeSlider/index.mjs.map +1 -1
  483. package/lib/components/VRating/VRating.mjs +6 -30
  484. package/lib/components/VRating/VRating.mjs.map +1 -1
  485. package/lib/components/VRating/index.d.ts +348 -0
  486. package/lib/components/VRating/index.mjs.map +1 -1
  487. package/lib/components/VResponsive/VResponsive.mjs +2 -5
  488. package/lib/components/VResponsive/VResponsive.mjs.map +1 -1
  489. package/lib/components/VResponsive/index.d.ts +24 -0
  490. package/lib/components/VResponsive/index.mjs.map +1 -1
  491. package/lib/components/VSelect/VSelect.css +21 -2
  492. package/lib/components/VSelect/VSelect.mjs +66 -43
  493. package/lib/components/VSelect/VSelect.mjs.map +1 -1
  494. package/lib/components/VSelect/VSelect.sass +16 -1
  495. package/lib/components/VSelect/_variables.scss +1 -0
  496. package/lib/components/VSelect/index.d.ts +1718 -0
  497. package/lib/components/VSelect/index.mjs.map +1 -1
  498. package/lib/components/VSelectionControl/VSelectionControl.mjs +17 -62
  499. package/lib/components/VSelectionControl/VSelectionControl.mjs.map +1 -1
  500. package/lib/components/VSelectionControl/index.d.ts +259 -0
  501. package/lib/components/VSelectionControl/index.mjs.map +1 -1
  502. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.css +6 -0
  503. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs +59 -29
  504. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.mjs.map +1 -1
  505. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.sass +6 -0
  506. package/lib/components/VSelectionControlGroup/index.d.ts +96 -0
  507. package/lib/components/VSelectionControlGroup/index.mjs.map +1 -1
  508. package/lib/components/VSheet/VSheet.css +1 -1
  509. package/lib/components/VSheet/VSheet.mjs +2 -4
  510. package/lib/components/VSheet/VSheet.mjs.map +1 -1
  511. package/lib/components/VSheet/index.d.ts +69 -0
  512. package/lib/components/VSheet/index.mjs.map +1 -1
  513. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs +19 -32
  514. package/lib/components/VSkeletonLoader/VSkeletonLoader.mjs.map +1 -1
  515. package/lib/components/VSkeletonLoader/index.mjs.map +1 -1
  516. package/lib/components/VSlideGroup/VSlideGroup.mjs +56 -78
  517. package/lib/components/VSlideGroup/VSlideGroup.mjs.map +1 -1
  518. package/lib/components/VSlideGroup/VSlideGroupItem.mjs +5 -9
  519. package/lib/components/VSlideGroup/VSlideGroupItem.mjs.map +1 -1
  520. package/lib/components/VSlideGroup/helpers.mjs +4 -17
  521. package/lib/components/VSlideGroup/helpers.mjs.map +1 -1
  522. package/lib/components/VSlideGroup/index.d.ts +434 -0
  523. package/lib/components/VSlideGroup/index.mjs.map +1 -1
  524. package/lib/components/VSlider/VSlider.css +7 -2
  525. package/lib/components/VSlider/VSlider.mjs +19 -12
  526. package/lib/components/VSlider/VSlider.mjs.map +1 -1
  527. package/lib/components/VSlider/VSlider.sass +6 -2
  528. package/lib/components/VSlider/VSliderThumb.css +10 -6
  529. package/lib/components/VSlider/VSliderThumb.mjs +7 -18
  530. package/lib/components/VSlider/VSliderThumb.mjs.map +1 -1
  531. package/lib/components/VSlider/VSliderThumb.sass +11 -8
  532. package/lib/components/VSlider/VSliderTrack.css +20 -20
  533. package/lib/components/VSlider/VSliderTrack.mjs +16 -14
  534. package/lib/components/VSlider/VSliderTrack.mjs.map +1 -1
  535. package/lib/components/VSlider/VSliderTrack.sass +14 -14
  536. package/lib/components/VSlider/_variables.scss +2 -2
  537. package/lib/components/VSlider/index.d.ts +243 -0
  538. package/lib/components/VSlider/index.mjs.map +1 -1
  539. package/lib/components/VSlider/slider.mjs +15 -46
  540. package/lib/components/VSlider/slider.mjs.map +1 -1
  541. package/lib/components/VSnackbar/VSnackbar.css +2 -3
  542. package/lib/components/VSnackbar/VSnackbar.mjs +51 -60
  543. package/lib/components/VSnackbar/VSnackbar.mjs.map +1 -1
  544. package/lib/components/VSnackbar/index.d.ts +1696 -0
  545. package/lib/components/VSnackbar/index.mjs.map +1 -1
  546. package/lib/components/VSparkline/VSparkline.mjs +5 -40
  547. package/lib/components/VSparkline/VSparkline.mjs.map +1 -1
  548. package/lib/components/VSparkline/helpers/core.mjs +1 -1
  549. package/lib/components/VSparkline/helpers/core.mjs.map +1 -1
  550. package/lib/components/VSparkline/helpers/math.mjs +2 -3
  551. package/lib/components/VSparkline/helpers/math.mjs.map +1 -1
  552. package/lib/components/VSparkline/helpers/path.mjs +0 -4
  553. package/lib/components/VSparkline/helpers/path.mjs.map +1 -1
  554. package/lib/components/VSparkline/index.mjs.map +1 -1
  555. package/lib/components/VSpeedDial/VSpeedDial.mjs +3 -12
  556. package/lib/components/VSpeedDial/VSpeedDial.mjs.map +1 -1
  557. package/lib/components/VSpeedDial/index.mjs.map +1 -1
  558. package/lib/components/VStepper/VStepper.mjs +5 -24
  559. package/lib/components/VStepper/VStepper.mjs.map +1 -1
  560. package/lib/components/VStepper/VStepperContent.mjs +4 -25
  561. package/lib/components/VStepper/VStepperContent.mjs.map +1 -1
  562. package/lib/components/VStepper/VStepperStep.mjs +0 -24
  563. package/lib/components/VStepper/VStepperStep.mjs.map +1 -1
  564. package/lib/components/VStepper/index.mjs.map +1 -1
  565. package/lib/components/VSwitch/VSwitch.css +2 -2
  566. package/lib/components/VSwitch/VSwitch.mjs +26 -17
  567. package/lib/components/VSwitch/VSwitch.mjs.map +1 -1
  568. package/lib/components/VSwitch/index.d.ts +186 -0
  569. package/lib/components/VSwitch/index.mjs.map +1 -1
  570. package/lib/components/VSystemBar/VSystemBar.css +1 -1
  571. package/lib/components/VSystemBar/VSystemBar.mjs +3 -9
  572. package/lib/components/VSystemBar/VSystemBar.mjs.map +1 -1
  573. package/lib/components/VSystemBar/index.d.ts +62 -0
  574. package/lib/components/VSystemBar/index.mjs.map +1 -1
  575. package/lib/components/VTable/VTable.css +12 -12
  576. package/lib/components/VTable/VTable.mjs +5 -6
  577. package/lib/components/VTable/VTable.mjs.map +1 -1
  578. package/lib/components/VTable/VTable.sass +29 -18
  579. package/lib/components/VTable/index.d.ts +44 -0
  580. package/lib/components/VTable/index.mjs.map +1 -1
  581. package/lib/components/VTabs/VTab.css +3 -1
  582. package/lib/components/VTabs/VTab.mjs +5 -12
  583. package/lib/components/VTabs/VTab.mjs.map +1 -1
  584. package/lib/components/VTabs/VTab.sass +3 -1
  585. package/lib/components/VTabs/VTabs.css +7 -7
  586. package/lib/components/VTabs/VTabs.mjs +18 -21
  587. package/lib/components/VTabs/VTabs.mjs.map +1 -1
  588. package/lib/components/VTabs/VTabs.sass +5 -5
  589. package/lib/components/VTabs/_variables.scss +1 -1
  590. package/lib/components/VTabs/index.d.ts +187 -0
  591. package/lib/components/VTabs/index.mjs.map +1 -1
  592. package/lib/components/VTabs/shared.mjs.map +1 -1
  593. package/lib/components/VTextField/VTextField.css +2 -3
  594. package/lib/components/VTextField/VTextField.mjs +54 -56
  595. package/lib/components/VTextField/VTextField.mjs.map +1 -1
  596. package/lib/components/VTextField/VTextField.sass +2 -4
  597. package/lib/components/VTextField/index.d.ts +1807 -0
  598. package/lib/components/VTextField/index.mjs.map +1 -1
  599. package/lib/components/VTextarea/VTextarea.css +5 -3
  600. package/lib/components/VTextarea/VTextarea.mjs +26 -33
  601. package/lib/components/VTextarea/VTextarea.mjs.map +1 -1
  602. package/lib/components/VTextarea/VTextarea.sass +5 -4
  603. package/lib/components/VTextarea/index.d.ts +461 -0
  604. package/lib/components/VTextarea/index.mjs.map +1 -1
  605. package/lib/components/VThemeProvider/VThemeProvider.mjs +2 -5
  606. package/lib/components/VThemeProvider/VThemeProvider.mjs.map +1 -1
  607. package/lib/components/VThemeProvider/index.d.ts +25 -0
  608. package/lib/components/VThemeProvider/index.mjs.map +1 -1
  609. package/lib/components/VTimePicker/SelectingTimes.mjs +0 -3
  610. package/lib/components/VTimePicker/SelectingTimes.mjs.map +1 -1
  611. package/lib/components/VTimePicker/VTimePicker.mjs +3 -53
  612. package/lib/components/VTimePicker/VTimePicker.mjs.map +1 -1
  613. package/lib/components/VTimePicker/VTimePickerClock.mjs +6 -42
  614. package/lib/components/VTimePicker/VTimePickerClock.mjs.map +1 -1
  615. package/lib/components/VTimePicker/VTimePickerTitle.mjs +4 -13
  616. package/lib/components/VTimePicker/VTimePickerTitle.mjs.map +1 -1
  617. package/lib/components/VTimePicker/index.mjs.map +1 -1
  618. package/lib/components/VTimeline/VTimeline.css +77 -41
  619. package/lib/components/VTimeline/VTimeline.mjs +8 -10
  620. package/lib/components/VTimeline/VTimeline.mjs.map +1 -1
  621. package/lib/components/VTimeline/VTimeline.sass +95 -64
  622. package/lib/components/VTimeline/VTimelineDivider.mjs +2 -7
  623. package/lib/components/VTimeline/VTimelineDivider.mjs.map +1 -1
  624. package/lib/components/VTimeline/VTimelineItem.mjs +2 -8
  625. package/lib/components/VTimeline/VTimelineItem.mjs.map +1 -1
  626. package/lib/components/VTimeline/_mixins.sass +10 -0
  627. package/lib/components/VTimeline/_variables.scss +4 -3
  628. package/lib/components/VTimeline/index.d.ts +158 -0
  629. package/lib/components/VTimeline/index.mjs.map +1 -1
  630. package/lib/components/VToolbar/VToolbar.css +3 -4
  631. package/lib/components/VToolbar/VToolbar.mjs +3 -11
  632. package/lib/components/VToolbar/VToolbar.mjs.map +1 -1
  633. package/lib/components/VToolbar/VToolbar.sass +0 -1
  634. package/lib/components/VToolbar/VToolbarItems.mjs +0 -4
  635. package/lib/components/VToolbar/VToolbarItems.mjs.map +1 -1
  636. package/lib/components/VToolbar/VToolbarTitle.mjs +0 -5
  637. package/lib/components/VToolbar/VToolbarTitle.mjs.map +1 -1
  638. package/lib/components/VToolbar/_variables.scss +1 -1
  639. package/lib/components/VToolbar/index.d.ts +377 -0
  640. package/lib/components/VToolbar/index.mjs.map +1 -1
  641. package/lib/components/VTooltip/VTooltip.mjs +46 -57
  642. package/lib/components/VTooltip/VTooltip.mjs.map +1 -1
  643. package/lib/components/VTooltip/index.d.ts +1789 -0
  644. package/lib/components/VTooltip/index.mjs.map +1 -1
  645. package/lib/components/VTreeview/VTreeview.mjs +18 -75
  646. package/lib/components/VTreeview/VTreeview.mjs.map +1 -1
  647. package/lib/components/VTreeview/VTreeviewNode.mjs +2 -32
  648. package/lib/components/VTreeview/VTreeviewNode.mjs.map +1 -1
  649. package/lib/components/VTreeview/index.mjs.map +1 -1
  650. package/lib/components/VTreeview/util/filterTreeItems.mjs +0 -6
  651. package/lib/components/VTreeview/util/filterTreeItems.mjs.map +1 -1
  652. package/lib/components/VValidation/VValidation.mjs +2 -5
  653. package/lib/components/VValidation/VValidation.mjs.map +1 -1
  654. package/lib/components/VValidation/index.d.ts +67 -0
  655. package/lib/components/VValidation/index.mjs.map +1 -1
  656. package/lib/components/VVirtualScroll/VVirtualScroll.mjs +3 -18
  657. package/lib/components/VVirtualScroll/VVirtualScroll.mjs.map +1 -1
  658. package/lib/components/VVirtualScroll/index.mjs.map +1 -1
  659. package/lib/components/VWindow/VWindow.mjs +6 -22
  660. package/lib/components/VWindow/VWindow.mjs.map +1 -1
  661. package/lib/components/VWindow/VWindowItem.mjs +8 -21
  662. package/lib/components/VWindow/VWindowItem.mjs.map +1 -1
  663. package/lib/components/VWindow/index.d.ts +378 -0
  664. package/lib/components/VWindow/index.mjs.map +1 -1
  665. package/lib/components/index.d.ts +15918 -5527
  666. package/lib/components/index.mjs +0 -11
  667. package/lib/components/index.mjs.map +1 -1
  668. package/lib/components/transitions/createTransition.mjs +0 -10
  669. package/lib/components/transitions/createTransition.mjs.map +1 -1
  670. package/lib/components/transitions/dialog-transition.mjs +8 -23
  671. package/lib/components/transitions/dialog-transition.mjs.map +1 -1
  672. package/lib/components/transitions/expand-transition.mjs +2 -11
  673. package/lib/components/transitions/expand-transition.mjs.map +1 -1
  674. package/lib/components/transitions/index.d.ts +470 -0
  675. package/lib/components/transitions/index.mjs +5 -4
  676. package/lib/components/transitions/index.mjs.map +1 -1
  677. package/lib/composables/border.mjs +0 -3
  678. package/lib/composables/border.mjs.map +1 -1
  679. package/lib/composables/color.mjs +0 -4
  680. package/lib/composables/color.mjs.map +1 -1
  681. package/lib/composables/defaults.mjs +1 -6
  682. package/lib/composables/defaults.mjs.map +1 -1
  683. package/lib/composables/delay.mjs +1 -6
  684. package/lib/composables/delay.mjs.map +1 -1
  685. package/lib/composables/density.mjs +4 -1
  686. package/lib/composables/density.mjs.map +1 -1
  687. package/lib/composables/dimensions.mjs +0 -1
  688. package/lib/composables/dimensions.mjs.map +1 -1
  689. package/lib/composables/display.mjs +8 -21
  690. package/lib/composables/display.mjs.map +1 -1
  691. package/lib/composables/elevation.mjs +2 -4
  692. package/lib/composables/elevation.mjs.map +1 -1
  693. package/lib/composables/filter.mjs +11 -20
  694. package/lib/composables/filter.mjs.map +1 -1
  695. package/lib/composables/focus.mjs +0 -5
  696. package/lib/composables/focus.mjs.map +1 -1
  697. package/lib/composables/form.mjs +8 -16
  698. package/lib/composables/form.mjs.map +1 -1
  699. package/lib/composables/forwardRefs.mjs +9 -16
  700. package/lib/composables/forwardRefs.mjs.map +1 -1
  701. package/lib/composables/group.mjs +11 -38
  702. package/lib/composables/group.mjs.map +1 -1
  703. package/lib/composables/hydration.mjs +8 -5
  704. package/lib/composables/hydration.mjs.map +1 -1
  705. package/lib/composables/icons.mjs +11 -21
  706. package/lib/composables/icons.mjs.map +1 -1
  707. package/lib/composables/index.mjs +1 -2
  708. package/lib/composables/index.mjs.map +1 -1
  709. package/lib/composables/intersectionObserver.mjs +0 -3
  710. package/lib/composables/intersectionObserver.mjs.map +1 -1
  711. package/lib/composables/items.mjs +5 -17
  712. package/lib/composables/items.mjs.map +1 -1
  713. package/lib/composables/layout.mjs +31 -37
  714. package/lib/composables/layout.mjs.map +1 -1
  715. package/lib/composables/lazy.mjs +2 -3
  716. package/lib/composables/lazy.mjs.map +1 -1
  717. package/lib/composables/loader.mjs +0 -3
  718. package/lib/composables/loader.mjs.map +1 -1
  719. package/lib/composables/locale.mjs +48 -127
  720. package/lib/composables/locale.mjs.map +1 -1
  721. package/lib/composables/location.mjs +1 -8
  722. package/lib/composables/location.mjs.map +1 -1
  723. package/lib/composables/mutationObserver.mjs +7 -7
  724. package/lib/composables/mutationObserver.mjs.map +1 -1
  725. package/lib/composables/nested/nested.mjs +21 -38
  726. package/lib/composables/nested/nested.mjs.map +1 -1
  727. package/lib/composables/nested/openStrategies.mjs +0 -9
  728. package/lib/composables/nested/openStrategies.mjs.map +1 -1
  729. package/lib/composables/nested/selectStrategies.mjs +6 -21
  730. package/lib/composables/nested/selectStrategies.mjs.map +1 -1
  731. package/lib/composables/position.mjs +1 -4
  732. package/lib/composables/position.mjs.map +1 -1
  733. package/lib/composables/proxiedModel.mjs +28 -16
  734. package/lib/composables/proxiedModel.mjs.map +1 -1
  735. package/lib/composables/refs.mjs +0 -2
  736. package/lib/composables/refs.mjs.map +1 -1
  737. package/lib/composables/resizeObserver.mjs +0 -3
  738. package/lib/composables/resizeObserver.mjs.map +1 -1
  739. package/lib/composables/rounded.mjs +0 -3
  740. package/lib/composables/rounded.mjs.map +1 -1
  741. package/lib/composables/router.mjs +14 -14
  742. package/lib/composables/router.mjs.map +1 -1
  743. package/lib/composables/scopeId.mjs.map +1 -1
  744. package/lib/composables/scroll.mjs +4 -12
  745. package/lib/composables/scroll.mjs.map +1 -1
  746. package/lib/composables/selectLink.mjs +7 -6
  747. package/lib/composables/selectLink.mjs.map +1 -1
  748. package/lib/composables/size.mjs +0 -3
  749. package/lib/composables/size.mjs.map +1 -1
  750. package/lib/composables/ssrBoot.mjs +2 -1
  751. package/lib/composables/ssrBoot.mjs.map +1 -1
  752. package/lib/composables/stack.mjs +0 -6
  753. package/lib/composables/stack.mjs.map +1 -1
  754. package/lib/composables/tag.mjs +0 -1
  755. package/lib/composables/tag.mjs.map +1 -1
  756. package/lib/composables/teleport.mjs +0 -4
  757. package/lib/composables/teleport.mjs.map +1 -1
  758. package/lib/composables/theme.mjs +65 -81
  759. package/lib/composables/theme.mjs.map +1 -1
  760. package/lib/composables/toggleScope.mjs +0 -1
  761. package/lib/composables/toggleScope.mjs.map +1 -1
  762. package/lib/composables/touch.mjs +6 -31
  763. package/lib/composables/touch.mjs.map +1 -1
  764. package/lib/composables/transition.mjs +0 -4
  765. package/lib/composables/transition.mjs.map +1 -1
  766. package/lib/composables/validation.mjs +29 -27
  767. package/lib/composables/validation.mjs.map +1 -1
  768. package/lib/composables/variant.mjs +0 -2
  769. package/lib/composables/variant.mjs.map +1 -1
  770. package/lib/directives/click-outside/index.mjs +10 -22
  771. package/lib/directives/click-outside/index.mjs.map +1 -1
  772. package/lib/directives/color/index.mjs +0 -11
  773. package/lib/directives/color/index.mjs.map +1 -1
  774. package/lib/directives/index.d.ts +104 -13
  775. package/lib/directives/index.mjs +0 -1
  776. package/lib/directives/index.mjs.map +1 -1
  777. package/lib/directives/intersect/index.mjs +3 -10
  778. package/lib/directives/intersect/index.mjs.map +1 -1
  779. package/lib/directives/mutate/index.mjs +5 -11
  780. package/lib/directives/mutate/index.mjs.map +1 -1
  781. package/lib/directives/resize/index.mjs +0 -5
  782. package/lib/directives/resize/index.mjs.map +1 -1
  783. package/lib/directives/ripple/index.mjs +12 -66
  784. package/lib/directives/ripple/index.mjs.map +1 -1
  785. package/lib/directives/scroll/index.mjs +1 -7
  786. package/lib/directives/scroll/index.mjs.map +1 -1
  787. package/lib/directives/touch/index.mjs +3 -18
  788. package/lib/directives/touch/index.mjs.map +1 -1
  789. package/lib/entry-bundler.mjs +2 -1
  790. package/lib/entry-bundler.mjs.map +1 -1
  791. package/lib/framework.mjs +66 -61
  792. package/lib/framework.mjs.map +1 -1
  793. package/lib/iconsets/fa-svg.mjs +0 -1
  794. package/lib/iconsets/fa-svg.mjs.map +1 -1
  795. package/lib/iconsets/fa.mjs +0 -1
  796. package/lib/iconsets/fa.mjs.map +1 -1
  797. package/lib/iconsets/fa4.mjs +4 -3
  798. package/lib/iconsets/fa4.mjs.map +1 -1
  799. package/lib/iconsets/md.mjs +4 -3
  800. package/lib/iconsets/md.mjs.map +1 -1
  801. package/lib/iconsets/mdi-svg.mjs +1 -1
  802. package/lib/iconsets/mdi-svg.mjs.map +1 -1
  803. package/lib/iconsets/mdi.mjs +4 -3
  804. package/lib/iconsets/mdi.mjs.map +1 -1
  805. package/lib/index.d.ts +106 -107
  806. package/lib/locale/adapters/vue-i18n.d.ts +29 -0
  807. package/lib/locale/adapters/vue-i18n.mjs +59 -54
  808. package/lib/locale/adapters/vue-i18n.mjs.map +1 -1
  809. package/lib/locale/adapters/vuetify.d.ts +24 -0
  810. package/lib/locale/adapters/vuetify.mjs +97 -0
  811. package/lib/locale/adapters/vuetify.mjs.map +1 -0
  812. package/lib/locale/af.mjs +5 -0
  813. package/lib/locale/af.mjs.map +1 -1
  814. package/lib/locale/ar.mjs +5 -0
  815. package/lib/locale/ar.mjs.map +1 -1
  816. package/lib/locale/az.mjs +5 -0
  817. package/lib/locale/az.mjs.map +1 -1
  818. package/lib/locale/bg.mjs +5 -0
  819. package/lib/locale/bg.mjs.map +1 -1
  820. package/lib/locale/ca.mjs +5 -0
  821. package/lib/locale/ca.mjs.map +1 -1
  822. package/lib/locale/ckb.mjs +5 -0
  823. package/lib/locale/ckb.mjs.map +1 -1
  824. package/lib/locale/cs.mjs +5 -0
  825. package/lib/locale/cs.mjs.map +1 -1
  826. package/lib/locale/da.mjs +5 -0
  827. package/lib/locale/da.mjs.map +1 -1
  828. package/lib/locale/de.mjs +5 -0
  829. package/lib/locale/de.mjs.map +1 -1
  830. package/lib/locale/el.mjs +5 -0
  831. package/lib/locale/el.mjs.map +1 -1
  832. package/lib/locale/en.mjs +5 -0
  833. package/lib/locale/en.mjs.map +1 -1
  834. package/lib/locale/es.mjs +5 -0
  835. package/lib/locale/es.mjs.map +1 -1
  836. package/lib/locale/et.mjs +5 -0
  837. package/lib/locale/et.mjs.map +1 -1
  838. package/lib/locale/fa.mjs +5 -0
  839. package/lib/locale/fa.mjs.map +1 -1
  840. package/lib/locale/fi.mjs +5 -0
  841. package/lib/locale/fi.mjs.map +1 -1
  842. package/lib/locale/fr.mjs +5 -0
  843. package/lib/locale/fr.mjs.map +1 -1
  844. package/lib/locale/he.mjs +5 -0
  845. package/lib/locale/he.mjs.map +1 -1
  846. package/lib/locale/hr.mjs +5 -0
  847. package/lib/locale/hr.mjs.map +1 -1
  848. package/lib/locale/hu.mjs +5 -0
  849. package/lib/locale/hu.mjs.map +1 -1
  850. package/lib/locale/id.mjs +5 -0
  851. package/lib/locale/id.mjs.map +1 -1
  852. package/lib/locale/index.d.ts +212 -2
  853. package/lib/locale/index.mjs +1 -1
  854. package/lib/locale/index.mjs.map +1 -1
  855. package/lib/locale/it.mjs +5 -0
  856. package/lib/locale/it.mjs.map +1 -1
  857. package/lib/locale/ja.mjs +5 -0
  858. package/lib/locale/ja.mjs.map +1 -1
  859. package/lib/locale/ko.mjs +5 -0
  860. package/lib/locale/ko.mjs.map +1 -1
  861. package/lib/locale/lt.mjs +5 -0
  862. package/lib/locale/lt.mjs.map +1 -1
  863. package/lib/locale/lv.mjs +5 -0
  864. package/lib/locale/lv.mjs.map +1 -1
  865. package/lib/locale/nl.mjs +5 -0
  866. package/lib/locale/nl.mjs.map +1 -1
  867. package/lib/locale/no.mjs +5 -0
  868. package/lib/locale/no.mjs.map +1 -1
  869. package/lib/locale/pl.mjs +9 -4
  870. package/lib/locale/pl.mjs.map +1 -1
  871. package/lib/locale/pt.mjs +5 -0
  872. package/lib/locale/pt.mjs.map +1 -1
  873. package/lib/locale/ro.mjs +5 -0
  874. package/lib/locale/ro.mjs.map +1 -1
  875. package/lib/locale/ru.mjs +5 -0
  876. package/lib/locale/ru.mjs.map +1 -1
  877. package/lib/locale/sk.mjs +5 -0
  878. package/lib/locale/sk.mjs.map +1 -1
  879. package/lib/locale/sl.mjs +5 -0
  880. package/lib/locale/sl.mjs.map +1 -1
  881. package/lib/locale/sr-Cyrl.mjs +5 -0
  882. package/lib/locale/sr-Cyrl.mjs.map +1 -1
  883. package/lib/locale/sr-Latn.mjs +5 -0
  884. package/lib/locale/sr-Latn.mjs.map +1 -1
  885. package/lib/locale/sv.mjs +5 -0
  886. package/lib/locale/sv.mjs.map +1 -1
  887. package/lib/locale/th.mjs +5 -0
  888. package/lib/locale/th.mjs.map +1 -1
  889. package/lib/locale/tr.mjs +5 -0
  890. package/lib/locale/tr.mjs.map +1 -1
  891. package/lib/locale/uk.mjs +5 -0
  892. package/lib/locale/uk.mjs.map +1 -1
  893. package/lib/locale/vi.mjs +5 -0
  894. package/lib/locale/vi.mjs.map +1 -1
  895. package/lib/locale/zh-Hans.mjs +5 -0
  896. package/lib/locale/zh-Hans.mjs.map +1 -1
  897. package/lib/locale/zh-Hant.mjs +5 -0
  898. package/lib/locale/zh-Hant.mjs.map +1 -1
  899. package/lib/services/goto/easing-patterns.mjs +24 -24
  900. package/lib/services/goto/easing-patterns.mjs.map +1 -1
  901. package/lib/services/goto/index.mjs +11 -15
  902. package/lib/services/goto/index.mjs.map +1 -1
  903. package/lib/services/goto/util.mjs +1 -8
  904. package/lib/services/goto/util.mjs.map +1 -1
  905. package/lib/styles/main.css +105 -101
  906. package/lib/styles/settings/_colors.scss +84 -84
  907. package/lib/styles/settings/_elevations.scss +3 -3
  908. package/lib/styles/settings/_utilities.scss +11 -4
  909. package/lib/styles/tools/_states.sass +8 -3
  910. package/lib/styles/tools/_variant.sass +0 -1
  911. package/lib/util/anchor.mjs +0 -3
  912. package/lib/util/anchor.mjs.map +1 -1
  913. package/lib/util/animation.mjs +14 -4
  914. package/lib/util/animation.mjs.map +1 -1
  915. package/lib/util/box.mjs +0 -5
  916. package/lib/util/box.mjs.map +1 -1
  917. package/lib/util/color/APCA.mjs +23 -21
  918. package/lib/util/color/APCA.mjs.map +1 -1
  919. package/lib/util/color/transformCIELAB.mjs +0 -2
  920. package/lib/util/color/transformCIELAB.mjs.map +1 -1
  921. package/lib/util/color/transformSRGB.mjs +14 -12
  922. package/lib/util/color/transformSRGB.mjs.map +1 -1
  923. package/lib/util/colorUtils.mjs +8 -25
  924. package/lib/util/colorUtils.mjs.map +1 -1
  925. package/lib/util/colors.mjs.map +1 -1
  926. package/lib/util/console.mjs +5 -14
  927. package/lib/util/console.mjs.map +1 -1
  928. package/lib/util/createSimpleFunctional.mjs +1 -4
  929. package/lib/util/createSimpleFunctional.mjs.map +1 -1
  930. package/lib/util/dateTimeUtils.mjs +0 -10
  931. package/lib/util/dateTimeUtils.mjs.map +1 -1
  932. package/lib/util/defineComponent.mjs +13 -37
  933. package/lib/util/defineComponent.mjs.map +1 -1
  934. package/lib/util/dom.mjs +4 -4
  935. package/lib/util/dom.mjs.map +1 -1
  936. package/lib/util/easing.mjs +0 -1
  937. package/lib/util/easing.mjs.map +1 -1
  938. package/lib/util/getCurrentInstance.mjs +3 -10
  939. package/lib/util/getCurrentInstance.mjs.map +1 -1
  940. package/lib/util/getScrollParent.mjs +3 -4
  941. package/lib/util/getScrollParent.mjs.map +1 -1
  942. package/lib/util/globals.mjs +1 -1
  943. package/lib/util/globals.mjs.map +1 -1
  944. package/lib/util/helpers.mjs +55 -86
  945. package/lib/util/helpers.mjs.map +1 -1
  946. package/lib/util/injectSelf.mjs +0 -1
  947. package/lib/util/injectSelf.mjs.map +1 -1
  948. package/lib/util/isFixedPosition.mjs +0 -2
  949. package/lib/util/isFixedPosition.mjs.map +1 -1
  950. package/lib/util/propsFactory.mjs +4 -5
  951. package/lib/util/propsFactory.mjs.map +1 -1
  952. package/lib/util/useRender.mjs +0 -1
  953. package/lib/util/useRender.mjs.map +1 -1
  954. package/package.json +17 -19
  955. package/lib/composables/rtl.mjs +0 -44
  956. package/lib/composables/rtl.mjs.map +0 -1
  957. package/lib/locale/adapters/vue-intl.mjs +0 -67
  958. package/lib/locale/adapters/vue-intl.mjs.map +0 -1
  959. package/lib/styles.scss +0 -4
@@ -1 +1 @@
1
- {"version":3,"file":"VTimePickerClock.mjs","names":["Colorable","Themeable","mixins","extend","name","props","allowedValues","Function","ampm","Boolean","disabled","double","format","type","default","val","max","Number","required","min","scrollable","readonly","rotate","step","value","data","inputValue","isDragging","valueOnMouseDown","valueOnMouseUp","computed","count","degreesPerUnit","roundCount","degrees","Math","PI","displayedValue","innerRadiusScale","watch","methods","wheel","e","preventDefault","delta","sign","deltaY","isAllowed","update","isInner","handScale","genValues","children","color","push","$createElement","setBackgroundColor","staticClass","class","style","getTransform","domProps","innerHTML","genHand","scale","angle","transform","i","x","y","getPosition","left","top","rotateRadians","sin","cos","onMouseDown","onDragMove","onMouseUp","stopPropagation","$emit","$refs","clock","width","getBoundingClientRect","innerWidth","innerClock","clientX","clientY","touches","center","coords","handAngle","round","insideClick","euclidean","checksCount","ceil","angleToValue","setMouseDownValue","p0","p1","dx","dy","sqrt","atan2","abs","render","h","themeClasses","on","undefined","mousedown","mouseup","mouseleave","touchstart","touchend","mousemove","touchmove","ref"],"sources":["../../../src/components/VTimePicker/VTimePickerClock.ts"],"sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n\nimport './VTimePickerClock.sass'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\n\n// Types\nimport mixins, { ExtractVue } from '../../util/mixins'\nimport Vue, { VNode, PropType, VNodeData } from 'vue'\nimport { PropValidator } from 'vue/types/options'\n\ninterface Point {\n x: number\n y: number\n}\n\ninterface options extends Vue {\n $refs: {\n clock: HTMLElement\n innerClock: HTMLElement\n }\n}\n\nexport default mixins<options &\n/* eslint-disable indent */\n ExtractVue<[\n typeof Colorable,\n typeof Themeable\n ]>\n/* eslint-enable indent */\n>(\n Colorable,\n Themeable\n/* @vue/component */\n).extend({\n name: 'v-time-picker-clock',\n\n props: {\n allowedValues: Function as PropType<(value: number) => boolean>,\n ampm: Boolean,\n disabled: Boolean,\n double: Boolean,\n format: {\n type: Function,\n default: (val: string | number) => val,\n } as PropValidator<(val: string | number) => string | number>,\n max: {\n type: Number,\n required: true,\n },\n min: {\n type: Number,\n required: true,\n },\n scrollable: Boolean,\n readonly: Boolean,\n rotate: {\n type: Number,\n default: 0,\n },\n step: {\n type: Number,\n default: 1,\n },\n value: Number,\n },\n\n data () {\n return {\n inputValue: this.value,\n isDragging: false,\n valueOnMouseDown: null as number | null,\n valueOnMouseUp: null as number | null,\n }\n },\n\n computed: {\n count (): number {\n return this.max - this.min + 1\n },\n degreesPerUnit (): number {\n return 360 / this.roundCount\n },\n degrees (): number {\n return this.degreesPerUnit * Math.PI / 180\n },\n displayedValue (): number {\n return this.value == null ? this.min : this.value\n },\n innerRadiusScale (): number {\n return 0.62\n },\n roundCount (): number {\n return this.double ? (this.count / 2) : this.count\n },\n },\n\n watch: {\n value (value) {\n this.inputValue = value\n },\n },\n\n methods: {\n wheel (e: WheelEvent) {\n e.preventDefault()\n\n const delta = Math.sign(-e.deltaY || 1)\n let value = this.displayedValue\n do {\n value = value + delta\n value = (value - this.min + this.count) % this.count + this.min\n } while (!this.isAllowed(value) && value !== this.displayedValue)\n\n if (value !== this.displayedValue) {\n this.update(value)\n }\n },\n isInner (value: number) {\n return this.double && (value - this.min >= this.roundCount)\n },\n handScale (value: number) {\n return this.isInner(value) ? this.innerRadiusScale : 1\n },\n isAllowed (value: number) {\n return !this.allowedValues || this.allowedValues(value)\n },\n genValues () {\n const children: VNode[] = []\n\n for (let value = this.min; value <= this.max; value = value + this.step) {\n const color = value === this.value && (this.color || 'accent')\n children.push(this.$createElement('span', this.setBackgroundColor(color, {\n staticClass: 'v-time-picker-clock__item',\n class: {\n 'v-time-picker-clock__item--active': value === this.displayedValue,\n 'v-time-picker-clock__item--disabled': this.disabled || !this.isAllowed(value),\n },\n style: this.getTransform(value),\n domProps: { innerHTML: `<span>${this.format(value)}</span>` },\n })))\n }\n\n return children\n },\n genHand () {\n const scale = `scaleY(${this.handScale(this.displayedValue)})`\n const angle = this.rotate + this.degreesPerUnit * (this.displayedValue - this.min)\n const color = (this.value != null) && (this.color || 'accent')\n return this.$createElement('div', this.setBackgroundColor(color, {\n staticClass: 'v-time-picker-clock__hand',\n class: {\n 'v-time-picker-clock__hand--inner': this.isInner(this.value),\n },\n style: {\n transform: `rotate(${angle}deg) ${scale}`,\n },\n }))\n },\n getTransform (i: number) {\n const { x, y } = this.getPosition(i)\n return {\n left: `${50 + x * 50}%`,\n top: `${50 + y * 50}%`,\n }\n },\n getPosition (value: number) {\n const rotateRadians = this.rotate * Math.PI / 180\n return {\n x: Math.sin((value - this.min) * this.degrees + rotateRadians) * this.handScale(value),\n y: -Math.cos((value - this.min) * this.degrees + rotateRadians) * this.handScale(value),\n }\n },\n onMouseDown (e: MouseEvent | TouchEvent) {\n e.preventDefault()\n\n this.valueOnMouseDown = null\n this.valueOnMouseUp = null\n this.isDragging = true\n this.onDragMove(e)\n },\n onMouseUp (e: MouseEvent | TouchEvent) {\n e.stopPropagation()\n\n this.isDragging = false\n if (this.valueOnMouseUp !== null && this.isAllowed(this.valueOnMouseUp)) {\n this.$emit('change', this.valueOnMouseUp)\n }\n },\n onDragMove (e: MouseEvent | TouchEvent) {\n e.preventDefault()\n if ((!this.isDragging && e.type !== 'click') || !this.$refs.clock) return\n\n const { width, top, left } = this.$refs.clock.getBoundingClientRect()\n const { width: innerWidth } = this.$refs.innerClock.getBoundingClientRect()\n const { clientX, clientY } = 'touches' in e ? e.touches[0] : e\n const center = { x: width / 2, y: -width / 2 }\n const coords = { x: clientX - left, y: top - clientY }\n const handAngle = Math.round(this.angle(center, coords) - this.rotate + 360) % 360\n const insideClick = this.double && this.euclidean(center, coords) < (innerWidth + innerWidth * this.innerRadiusScale) / 4\n const checksCount = Math.ceil(15 / this.degreesPerUnit)\n let value\n\n for (let i = 0; i < checksCount; i++) {\n value = this.angleToValue(handAngle + i * this.degreesPerUnit, insideClick)\n if (this.isAllowed(value)) return this.setMouseDownValue(value)\n\n value = this.angleToValue(handAngle - i * this.degreesPerUnit, insideClick)\n if (this.isAllowed(value)) return this.setMouseDownValue(value)\n }\n },\n angleToValue (angle: number, insideClick: boolean): number {\n const value = (\n Math.round(angle / this.degreesPerUnit) +\n (insideClick ? this.roundCount : 0)\n ) % this.count + this.min\n\n // Necessary to fix edge case when selecting left part of the value(s) at 12 o'clock\n if (angle < (360 - this.degreesPerUnit / 2)) return value\n\n return insideClick ? this.max - this.roundCount + 1 : this.min\n },\n setMouseDownValue (value: number) {\n if (this.valueOnMouseDown === null) {\n this.valueOnMouseDown = value\n }\n\n this.valueOnMouseUp = value\n this.update(value)\n },\n update (value: number) {\n if (this.inputValue !== value) {\n this.inputValue = value\n this.$emit('input', value)\n }\n },\n euclidean (p0: Point, p1: Point) {\n const dx = p1.x - p0.x\n const dy = p1.y - p0.y\n\n return Math.sqrt(dx * dx + dy * dy)\n },\n angle (center: Point, p1: Point) {\n const value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x)\n return Math.abs(value * 180 / Math.PI)\n },\n },\n\n render (h): VNode {\n const data: VNodeData = {\n staticClass: 'v-time-picker-clock',\n class: {\n 'v-time-picker-clock--indeterminate': this.value == null,\n ...this.themeClasses,\n },\n on: (this.readonly || this.disabled) ? undefined : {\n mousedown: this.onMouseDown,\n mouseup: this.onMouseUp,\n mouseleave: (e: MouseEvent) => (this.isDragging && this.onMouseUp(e)),\n touchstart: this.onMouseDown,\n touchend: this.onMouseUp,\n mousemove: this.onDragMove,\n touchmove: this.onDragMove,\n },\n ref: 'clock',\n }\n\n if (this.scrollable && data.on) {\n data.on.wheel = this.wheel\n }\n\n return h('div', data, [\n h('div', {\n staticClass: 'v-time-picker-clock__inner',\n ref: 'innerClock',\n }, [\n this.genHand(),\n this.genValues(),\n ]),\n ])\n },\n})\n"],"mappings":"AAAA;;AACA;AAEA,gC,CAEA;;OACOA,S;OACAC,S,oCAEP;;OACOC,M;AAgBP,eAAeA,MAAM,CAQnBF,SARmB,EASnBC;AACF;AAVqB,CAAN,CAWbE,MAXa,CAWN;EACPC,IAAI,EAAE,qBADC;EAGPC,KAAK,EAAE;IACLC,aAAa,EAAEC,QADV;IAELC,IAAI,EAAEC,OAFD;IAGLC,QAAQ,EAAED,OAHL;IAILE,MAAM,EAAEF,OAJH;IAKLG,MAAM,EAAE;MACNC,IAAI,EAAEN,QADA;MAENO,OAAO,EAAGC,GAAD,IAA0BA;IAF7B,CALH;IASLC,GAAG,EAAE;MACHH,IAAI,EAAEI,MADH;MAEHC,QAAQ,EAAE;IAFP,CATA;IAaLC,GAAG,EAAE;MACHN,IAAI,EAAEI,MADH;MAEHC,QAAQ,EAAE;IAFP,CAbA;IAiBLE,UAAU,EAAEX,OAjBP;IAkBLY,QAAQ,EAAEZ,OAlBL;IAmBLa,MAAM,EAAE;MACNT,IAAI,EAAEI,MADA;MAENH,OAAO,EAAE;IAFH,CAnBH;IAuBLS,IAAI,EAAE;MACJV,IAAI,EAAEI,MADF;MAEJH,OAAO,EAAE;IAFL,CAvBD;IA2BLU,KAAK,EAAEP;EA3BF,CAHA;;EAiCPQ,IAAI,G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","Themeable","mixins","extend","name","props","allowedValues","Function","ampm","Boolean","disabled","double","format","type","default","val","max","Number","required","min","scrollable","readonly","rotate","step","value","data","inputValue","isDragging","valueOnMouseDown","valueOnMouseUp","computed","count","degreesPerUnit","roundCount","degrees","Math","PI","displayedValue","innerRadiusScale","watch","methods","wheel","e","preventDefault","delta","sign","deltaY","isAllowed","update","isInner","handScale","genValues","children","color","push","$createElement","setBackgroundColor","staticClass","class","style","getTransform","domProps","innerHTML","genHand","scale","angle","transform","i","x","y","getPosition","left","top","rotateRadians","sin","cos","onMouseDown","onDragMove","onMouseUp","stopPropagation","$emit","$refs","clock","width","getBoundingClientRect","innerWidth","innerClock","clientX","clientY","touches","center","coords","handAngle","round","insideClick","euclidean","checksCount","ceil","angleToValue","setMouseDownValue","p0","p1","dx","dy","sqrt","atan2","abs","render","h","themeClasses","on","undefined","mousedown","mouseup","mouseleave","touchstart","touchend","mousemove","touchmove","ref"],"sources":["../../../src/components/VTimePicker/VTimePickerClock.ts"],"sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n\nimport './VTimePickerClock.sass'\n\n// Mixins\nimport Colorable from '../../mixins/colorable'\nimport Themeable from '../../mixins/themeable'\n\n// Types\nimport mixins, { ExtractVue } from '../../util/mixins'\nimport Vue, { VNode, PropType, VNodeData } from 'vue'\nimport { PropValidator } from 'vue/types/options'\n\ninterface Point {\n x: number\n y: number\n}\n\ninterface options extends Vue {\n $refs: {\n clock: HTMLElement\n innerClock: HTMLElement\n }\n}\n\nexport default mixins<options &\n/* eslint-disable indent */\n ExtractVue<[\n typeof Colorable,\n typeof Themeable\n ]>\n/* eslint-enable indent */\n>(\n Colorable,\n Themeable\n/* @vue/component */\n).extend({\n name: 'v-time-picker-clock',\n\n props: {\n allowedValues: Function as PropType<(value: number) => boolean>,\n ampm: Boolean,\n disabled: Boolean,\n double: Boolean,\n format: {\n type: Function,\n default: (val: string | number) => val,\n } as PropValidator<(val: string | number) => string | number>,\n max: {\n type: Number,\n required: true,\n },\n min: {\n type: Number,\n required: true,\n },\n scrollable: Boolean,\n readonly: Boolean,\n rotate: {\n type: Number,\n default: 0,\n },\n step: {\n type: Number,\n default: 1,\n },\n value: Number,\n },\n\n data () {\n return {\n inputValue: this.value,\n isDragging: false,\n valueOnMouseDown: null as number | null,\n valueOnMouseUp: null as number | null,\n }\n },\n\n computed: {\n count (): number {\n return this.max - this.min + 1\n },\n degreesPerUnit (): number {\n return 360 / this.roundCount\n },\n degrees (): number {\n return this.degreesPerUnit * Math.PI / 180\n },\n displayedValue (): number {\n return this.value == null ? this.min : this.value\n },\n innerRadiusScale (): number {\n return 0.62\n },\n roundCount (): number {\n return this.double ? (this.count / 2) : this.count\n },\n },\n\n watch: {\n value (value) {\n this.inputValue = value\n },\n },\n\n methods: {\n wheel (e: WheelEvent) {\n e.preventDefault()\n\n const delta = Math.sign(-e.deltaY || 1)\n let value = this.displayedValue\n do {\n value = value + delta\n value = (value - this.min + this.count) % this.count + this.min\n } while (!this.isAllowed(value) && value !== this.displayedValue)\n\n if (value !== this.displayedValue) {\n this.update(value)\n }\n },\n isInner (value: number) {\n return this.double && (value - this.min >= this.roundCount)\n },\n handScale (value: number) {\n return this.isInner(value) ? this.innerRadiusScale : 1\n },\n isAllowed (value: number) {\n return !this.allowedValues || this.allowedValues(value)\n },\n genValues () {\n const children: VNode[] = []\n\n for (let value = this.min; value <= this.max; value = value + this.step) {\n const color = value === this.value && (this.color || 'accent')\n children.push(this.$createElement('span', this.setBackgroundColor(color, {\n staticClass: 'v-time-picker-clock__item',\n class: {\n 'v-time-picker-clock__item--active': value === this.displayedValue,\n 'v-time-picker-clock__item--disabled': this.disabled || !this.isAllowed(value),\n },\n style: this.getTransform(value),\n domProps: { innerHTML: `<span>${this.format(value)}</span>` },\n })))\n }\n\n return children\n },\n genHand () {\n const scale = `scaleY(${this.handScale(this.displayedValue)})`\n const angle = this.rotate + this.degreesPerUnit * (this.displayedValue - this.min)\n const color = (this.value != null) && (this.color || 'accent')\n return this.$createElement('div', this.setBackgroundColor(color, {\n staticClass: 'v-time-picker-clock__hand',\n class: {\n 'v-time-picker-clock__hand--inner': this.isInner(this.value),\n },\n style: {\n transform: `rotate(${angle}deg) ${scale}`,\n },\n }))\n },\n getTransform (i: number) {\n const { x, y } = this.getPosition(i)\n return {\n left: `${50 + x * 50}%`,\n top: `${50 + y * 50}%`,\n }\n },\n getPosition (value: number) {\n const rotateRadians = this.rotate * Math.PI / 180\n return {\n x: Math.sin((value - this.min) * this.degrees + rotateRadians) * this.handScale(value),\n y: -Math.cos((value - this.min) * this.degrees + rotateRadians) * this.handScale(value),\n }\n },\n onMouseDown (e: MouseEvent | TouchEvent) {\n e.preventDefault()\n\n this.valueOnMouseDown = null\n this.valueOnMouseUp = null\n this.isDragging = true\n this.onDragMove(e)\n },\n onMouseUp (e: MouseEvent | TouchEvent) {\n e.stopPropagation()\n\n this.isDragging = false\n if (this.valueOnMouseUp !== null && this.isAllowed(this.valueOnMouseUp)) {\n this.$emit('change', this.valueOnMouseUp)\n }\n },\n onDragMove (e: MouseEvent | TouchEvent) {\n e.preventDefault()\n if ((!this.isDragging && e.type !== 'click') || !this.$refs.clock) return\n\n const { width, top, left } = this.$refs.clock.getBoundingClientRect()\n const { width: innerWidth } = this.$refs.innerClock.getBoundingClientRect()\n const { clientX, clientY } = 'touches' in e ? e.touches[0] : e\n const center = { x: width / 2, y: -width / 2 }\n const coords = { x: clientX - left, y: top - clientY }\n const handAngle = Math.round(this.angle(center, coords) - this.rotate + 360) % 360\n const insideClick = this.double && this.euclidean(center, coords) < (innerWidth + innerWidth * this.innerRadiusScale) / 4\n const checksCount = Math.ceil(15 / this.degreesPerUnit)\n let value\n\n for (let i = 0; i < checksCount; i++) {\n value = this.angleToValue(handAngle + i * this.degreesPerUnit, insideClick)\n if (this.isAllowed(value)) return this.setMouseDownValue(value)\n\n value = this.angleToValue(handAngle - i * this.degreesPerUnit, insideClick)\n if (this.isAllowed(value)) return this.setMouseDownValue(value)\n }\n },\n angleToValue (angle: number, insideClick: boolean): number {\n const value = (\n Math.round(angle / this.degreesPerUnit) +\n (insideClick ? this.roundCount : 0)\n ) % this.count + this.min\n\n // Necessary to fix edge case when selecting left part of the value(s) at 12 o'clock\n if (angle < (360 - this.degreesPerUnit / 2)) return value\n\n return insideClick ? this.max - this.roundCount + 1 : this.min\n },\n setMouseDownValue (value: number) {\n if (this.valueOnMouseDown === null) {\n this.valueOnMouseDown = value\n }\n\n this.valueOnMouseUp = value\n this.update(value)\n },\n update (value: number) {\n if (this.inputValue !== value) {\n this.inputValue = value\n this.$emit('input', value)\n }\n },\n euclidean (p0: Point, p1: Point) {\n const dx = p1.x - p0.x\n const dy = p1.y - p0.y\n\n return Math.sqrt(dx * dx + dy * dy)\n },\n angle (center: Point, p1: Point) {\n const value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x)\n return Math.abs(value * 180 / Math.PI)\n },\n },\n\n render (h): VNode {\n const data: VNodeData = {\n staticClass: 'v-time-picker-clock',\n class: {\n 'v-time-picker-clock--indeterminate': this.value == null,\n ...this.themeClasses,\n },\n on: (this.readonly || this.disabled) ? undefined : {\n mousedown: this.onMouseDown,\n mouseup: this.onMouseUp,\n mouseleave: (e: MouseEvent) => (this.isDragging && this.onMouseUp(e)),\n touchstart: this.onMouseDown,\n touchend: this.onMouseUp,\n mousemove: this.onDragMove,\n touchmove: this.onDragMove,\n },\n ref: 'clock',\n }\n\n if (this.scrollable && data.on) {\n data.on.wheel = this.wheel\n }\n\n return h('div', data, [\n h('div', {\n staticClass: 'v-time-picker-clock__inner',\n ref: 'innerClock',\n }, [\n this.genHand(),\n this.genValues(),\n ]),\n ])\n },\n})\n"],"mappings":"AAAA;AACA;;AAEA;;AAEA;AAAA,OACOA,SAAS;AAAA,OACTC,SAAS,oCAEhB;AAAA,OACOC,MAAM;AAgBb,eAAeA,MAAM,CAQnBF,SAAS,EACTC;AACF,qBACC,CAACE,MAAM,CAAC;EACPC,IAAI,EAAE,qBAAqB;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AM,CAAEC,CAAC,EAAS;IAChB,MAAMnF,IAAe,GAAG;MACtBgC,WAAW,EAAE,qBAAqB;MAClCC,KAAK,EAAE;QACL,oCAAoC,EAAE,IAAI,CAAClC,KAAK,IAAI,IAAI;QACxD,GAAG,IAAI,CAACqF;MACV,CAAC;MACDC,EAAE,EAAG,IAAI,CAACzF,QAAQ,IAAI,IAAI,CAACX,QAAQ,GAAIqG,SAAS,GAAG;QACjDC,SAAS,EAAE,IAAI,CAACpC,WAAW;QAC3BqC,OAAO,EAAE,IAAI,CAACnC,SAAS;QACvBoC,UAAU,EAAGxE,CAAa,IAAM,IAAI,CAACf,UAAU,IAAI,IAAI,CAACmD,SAAS,CAACpC,CAAC,CAAE;QACrEyE,UAAU,EAAE,IAAI,CAACvC,WAAW;QAC5BwC,QAAQ,EAAE,IAAI,CAACtC,SAAS;QACxBuC,SAAS,EAAE,IAAI,CAACxC,UAAU;QAC1ByC,SAAS,EAAE,IAAI,CAACzC;MAClB,CAAC;MACD0C,GAAG,EAAE;IACP,CAAC;IAED,IAAI,IAAI,CAACnG,UAAU,IAAIK,IAAI,CAACqF,EAAE,EAAE;MAC9BrF,IAAI,CAACqF,EAAE,CAACrE,KAAK,GAAG,IAAI,CAACA,KAAK;IAC5B;IAEA,OAAOmE,CAAC,CAAC,KAAK,EAAEnF,IAAI,EAAE,CACpBmF,CAAC,CAAC,KAAK,EAAE;MACPnD,WAAW,EAAE,4BAA4B;MACzC8D,GAAG,EAAE;IACP,CAAC,EAAE,CACD,IAAI,CAACxD,OAAO,EAAE,EACd,IAAI,CAACZ,SAAS,EAAE,CACjB,CAAC,CACH,CAAC;EACJ;AACF,CAAC,CAAC"}
@@ -1,16 +1,15 @@
1
1
  // @ts-nocheck
2
-
3
2
  /* eslint-disable */
4
- import "./VTimePickerTitle.css"; // Mixins
5
3
 
6
- import PickerButton from "../../mixins/picker-button.mjs"; // Utils
4
+ import "./VTimePickerTitle.css";
7
5
 
6
+ // Mixins
7
+ import PickerButton from "../../mixins/picker-button.mjs"; // Utils
8
8
  import { pad } from "../VDatePicker/util/index.mjs";
9
9
  import mixins from "../../util/mixins.mjs";
10
10
  import { SelectingTimes } from "./SelectingTimes.mjs";
11
11
  export default mixins(PickerButton
12
- /* @vue/component */
13
- ).extend({
12
+ /* @vue/component */).extend({
14
13
  name: 'v-time-picker-title',
15
14
  props: {
16
15
  ampm: Boolean,
@@ -30,26 +29,21 @@ export default mixins(PickerButton
30
29
  methods: {
31
30
  genTime() {
32
31
  let hour = this.hour;
33
-
34
32
  if (this.ampm) {
35
33
  hour = hour ? (hour - 1) % 12 + 1 : 12;
36
34
  }
37
-
38
35
  const displayedHour = this.hour == null ? '--' : this.ampm ? String(hour) : pad(hour);
39
36
  const displayedMinute = this.minute == null ? '--' : pad(this.minute);
40
37
  const titleContent = [this.genPickerButton('selecting', SelectingTimes.Hour, displayedHour, this.disabled), this.$createElement('span', ':'), this.genPickerButton('selecting', SelectingTimes.Minute, displayedMinute, this.disabled)];
41
-
42
38
  if (this.useSeconds) {
43
39
  const displayedSecond = this.second == null ? '--' : pad(this.second);
44
40
  titleContent.push(this.$createElement('span', ':'));
45
41
  titleContent.push(this.genPickerButton('selecting', SelectingTimes.Second, displayedSecond, this.disabled));
46
42
  }
47
-
48
43
  return this.$createElement('div', {
49
44
  class: 'v-time-picker-title__time'
50
45
  }, titleContent);
51
46
  },
52
-
53
47
  genAmPm() {
54
48
  return this.$createElement('div', {
55
49
  staticClass: 'v-time-picker-title__ampm',
@@ -58,9 +52,7 @@ export default mixins(PickerButton
58
52
  }
59
53
  }, [!this.ampmReadonly || this.period === 'am' ? this.genPickerButton('period', 'am', this.$vuetify.lang.t('$vuetify.timePicker.am'), this.disabled || this.readonly) : null, !this.ampmReadonly || this.period === 'pm' ? this.genPickerButton('period', 'pm', this.$vuetify.lang.t('$vuetify.timePicker.pm'), this.disabled || this.readonly) : null]);
60
54
  }
61
-
62
55
  },
63
-
64
56
  render(h) {
65
57
  const children = [this.genTime()];
66
58
  this.ampm && children.push(this.genAmPm());
@@ -68,6 +60,5 @@ export default mixins(PickerButton
68
60
  staticClass: 'v-time-picker-title'
69
61
  }, children);
70
62
  }
71
-
72
63
  });
73
64
  //# sourceMappingURL=VTimePickerTitle.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"VTimePickerTitle.mjs","names":["PickerButton","pad","mixins","SelectingTimes","extend","name","props","ampm","Boolean","ampmReadonly","disabled","hour","Number","minute","second","period","type","String","validator","readonly","useSeconds","selecting","methods","genTime","displayedHour","displayedMinute","titleContent","genPickerButton","Hour","$createElement","Minute","displayedSecond","push","Second","class","genAmPm","staticClass","$vuetify","lang","t","render","h","children"],"sources":["../../../src/components/VTimePicker/VTimePickerTitle.ts"],"sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n\nimport './VTimePickerTitle.sass'\n\n// Mixins\nimport PickerButton from '../../mixins/picker-button'\n\n// Utils\nimport { pad } from '../VDatePicker/util'\nimport mixins from '../../util/mixins'\n\nimport { SelectingTimes } from './SelectingTimes'\nimport { VNode, PropType } from 'vue'\n\nexport default mixins(\n PickerButton\n/* @vue/component */\n).extend({\n name: 'v-time-picker-title',\n\n props: {\n ampm: Boolean,\n ampmReadonly: Boolean,\n disabled: Boolean,\n hour: Number,\n minute: Number,\n second: Number,\n period: {\n type: String as PropType<'am' | 'pm'>,\n validator: period => period === 'am' || period === 'pm',\n },\n readonly: Boolean,\n useSeconds: Boolean,\n selecting: Number,\n },\n\n methods: {\n genTime () {\n let hour = this.hour\n if (this.ampm) {\n hour = hour ? ((hour - 1) % 12 + 1) : 12\n }\n\n const displayedHour = this.hour == null ? '--' : this.ampm ? String(hour) : pad(hour)\n const displayedMinute = this.minute == null ? '--' : pad(this.minute)\n const titleContent = [\n this.genPickerButton('selecting', SelectingTimes.Hour, displayedHour, this.disabled),\n this.$createElement('span', ':'),\n this.genPickerButton('selecting', SelectingTimes.Minute, displayedMinute, this.disabled),\n ]\n\n if (this.useSeconds) {\n const displayedSecond = this.second == null ? '--' : pad(this.second)\n titleContent.push(this.$createElement('span', ':'))\n titleContent.push(this.genPickerButton('selecting', SelectingTimes.Second, displayedSecond, this.disabled))\n }\n return this.$createElement('div', {\n class: 'v-time-picker-title__time',\n }, titleContent)\n },\n genAmPm () {\n return this.$createElement('div', {\n staticClass: 'v-time-picker-title__ampm',\n class: {\n 'v-time-picker-title__ampm--readonly': this.ampmReadonly,\n },\n }, [\n (!this.ampmReadonly || this.period === 'am') ? this.genPickerButton('period', 'am', this.$vuetify.lang.t('$vuetify.timePicker.am'), this.disabled || this.readonly) : null,\n (!this.ampmReadonly || this.period === 'pm') ? this.genPickerButton('period', 'pm', this.$vuetify.lang.t('$vuetify.timePicker.pm'), this.disabled || this.readonly) : null,\n ])\n },\n },\n\n render (h): VNode {\n const children = [this.genTime()]\n\n this.ampm && children.push(this.genAmPm())\n\n return h('div', {\n staticClass: 'v-time-picker-title',\n }, children)\n },\n})\n"],"mappings":"AAAA;;AACA;AAEA,gC,CAEA;;OACOA,Y,wCAEP;;SACSC,G;OACFC,M;SAEEC,c;AAGT,eAAeD,MAAM,CACnBF;AACF;AAFqB,CAAN,CAGbI,MAHa,CAGN;EACPC,IAAI,EAAE,qBADC;EAGPC,KAAK,EAAE;IACLC,IAAI,EAAEC,OADD;IAELC,YAAY,EAAED,OAFT;IAGLE,QAAQ,EAAEF,OAHL;IAILG,IAAI,EAAEC,MAJD;IAKLC,MAAM,EAAED,MALH;IAMLE,MAAM,EAAEF,MANH;IAOLG,MAAM,EAAE;MACNC,IAAI,EAAEC,MADA;MAENC,SAAS,EAAEH,MAAM,IAAIA,MAAM,KAAK,IAAX,IAAmBA,MAAM,KAAK;IAF7C,CAPH;IAWLI,QAAQ,EAAEX,OAXL;IAYLY,UAAU,EAAEZ,OAZP;IAaLa,SAAS,EAAET;EAbN,CAHA;EAmBPU,OAAO,EAAE;IACPC,OAAO,GAAI;MACT,IAAIZ,IAAI,GAAG,KAAKA,IAAhB;;MACA,IAAI,KAAKJ,IAA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ADmB;QAEhCF,KAAK,EAAE;UACL,uCAAuC,KAAKzB;QADvC;MAFyB,CAA3B,EAKJ,CACA,CAAC,KAAKA,YAAN,IAAsB,KAAKM,MAAL,KAAgB,IAAvC,GAA+C,KAAKY,eAAL,CAAqB,QAArB,EAA+B,IAA/B,EAAqC,KAAKU,QAAL,CAAcC,IAAd,CAAmBC,CAAnB,CAAqB,wBAArB,CAArC,EAAqF,KAAK7B,QAAL,IAAiB,KAAKS,QAA3G,CAA/C,GAAsK,IADrK,EAEA,CAAC,KAAKV,YAAN,IAAsB,KAAKM,MAAL,KAAgB,IAAvC,GAA+C,KAAKY,eAAL,CAAqB,QAArB,EAA+B,IAA/B,EAAqC,KAAKU,QAAL,CAAcC,IAAd,CAAmBC,CAAnB,CAAqB,wBAArB,CAArC,EAAqF,KAAK7B,QAAL,IAAiB,KAAKS,QAA3G,CAA/C,GAAsK,IAFrK,CALI,CAAP;IASD;;EAlCM,CAnBF;;EAwDPqB,MAAM,CAAEC,CAAF,EAAY;IAChB,MAAMC,QAAQ,GAAG,CAAC,KAAKnB,OAAL,EAAD,CAAjB;IAEA,KAAKhB,IAAL,IAAamC,QAAQ,CAACV,IAAT,CAAc,KAAKG,OAAL,EAAd,CAAb;IAEA,OAAOM,CAAC,CAAC,KAAD,EAAQ;MACdL,WAAW,EAAE;IADC,CAAR,EAELM,QAFK,CAAR;EAGD;;AAhEM,CAHM,CAAf"}
1
+ {"version":3,"file":"VTimePickerTitle.mjs","names":["PickerButton","pad","mixins","SelectingTimes","extend","name","props","ampm","Boolean","ampmReadonly","disabled","hour","Number","minute","second","period","type","String","validator","readonly","useSeconds","selecting","methods","genTime","displayedHour","displayedMinute","titleContent","genPickerButton","Hour","$createElement","Minute","displayedSecond","push","Second","class","genAmPm","staticClass","$vuetify","lang","t","render","h","children"],"sources":["../../../src/components/VTimePicker/VTimePickerTitle.ts"],"sourcesContent":["// @ts-nocheck\n/* eslint-disable */\n\nimport './VTimePickerTitle.sass'\n\n// Mixins\nimport PickerButton from '../../mixins/picker-button'\n\n// Utils\nimport { pad } from '../VDatePicker/util'\nimport mixins from '../../util/mixins'\n\nimport { SelectingTimes } from './SelectingTimes'\nimport { VNode, PropType } from 'vue'\n\nexport default mixins(\n PickerButton\n/* @vue/component */\n).extend({\n name: 'v-time-picker-title',\n\n props: {\n ampm: Boolean,\n ampmReadonly: Boolean,\n disabled: Boolean,\n hour: Number,\n minute: Number,\n second: Number,\n period: {\n type: String as PropType<'am' | 'pm'>,\n validator: period => period === 'am' || period === 'pm',\n },\n readonly: Boolean,\n useSeconds: Boolean,\n selecting: Number,\n },\n\n methods: {\n genTime () {\n let hour = this.hour\n if (this.ampm) {\n hour = hour ? ((hour - 1) % 12 + 1) : 12\n }\n\n const displayedHour = this.hour == null ? '--' : this.ampm ? String(hour) : pad(hour)\n const displayedMinute = this.minute == null ? '--' : pad(this.minute)\n const titleContent = [\n this.genPickerButton('selecting', SelectingTimes.Hour, displayedHour, this.disabled),\n this.$createElement('span', ':'),\n this.genPickerButton('selecting', SelectingTimes.Minute, displayedMinute, this.disabled),\n ]\n\n if (this.useSeconds) {\n const displayedSecond = this.second == null ? '--' : pad(this.second)\n titleContent.push(this.$createElement('span', ':'))\n titleContent.push(this.genPickerButton('selecting', SelectingTimes.Second, displayedSecond, this.disabled))\n }\n return this.$createElement('div', {\n class: 'v-time-picker-title__time',\n }, titleContent)\n },\n genAmPm () {\n return this.$createElement('div', {\n staticClass: 'v-time-picker-title__ampm',\n class: {\n 'v-time-picker-title__ampm--readonly': this.ampmReadonly,\n },\n }, [\n (!this.ampmReadonly || this.period === 'am') ? this.genPickerButton('period', 'am', this.$vuetify.lang.t('$vuetify.timePicker.am'), this.disabled || this.readonly) : null,\n (!this.ampmReadonly || this.period === 'pm') ? this.genPickerButton('period', 'pm', this.$vuetify.lang.t('$vuetify.timePicker.pm'), this.disabled || this.readonly) : null,\n ])\n },\n },\n\n render (h): VNode {\n const children = [this.genTime()]\n\n this.ampm && children.push(this.genAmPm())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AACU,QAAQ,CAACC,IAAI,CAACC,CAAC,CAAC,wBAAwB,CAAC,EAAE,IAAI,CAAC7B,QAAQ,IAAI,IAAI,CAACS,QAAQ,CAAC,GAAG,IAAI,CAC3K,CAAC;IACJ;EACF,CAAC;EAEDqB,MAAM,CAAEC,CAAC,EAAS;IAChB,MAAMC,QAAQ,GAAG,CAAC,IAAI,CAACnB,OAAO,EAAE,CAAC;IAEjC,IAAI,CAAChB,IAAI,IAAImC,QAAQ,CAACV,IAAI,CAAC,IAAI,CAACG,OAAO,EAAE,CAAC;IAE1C,OAAOM,CAAC,CAAC,KAAK,EAAE;MACdL,WAAW,EAAE;IACf,CAAC,EAAEM,QAAQ,CAAC;EACd;AACF,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["VTimePicker","VTimePickerClock","VTimePickerTitle","$_vuetify_subcomponents"],"sources":["../../../src/components/VTimePicker/index.ts"],"sourcesContent":["import VTimePicker from './VTimePicker'\nimport VTimePickerClock from './VTimePickerClock'\nimport VTimePickerTitle from './VTimePickerTitle'\n\nexport { VTimePicker, VTimePickerClock, VTimePickerTitle }\n\nexport default {\n $_vuetify_subcomponents: {\n VTimePicker,\n VTimePickerClock,\n VTimePickerTitle,\n },\n}\n"],"mappings":"OAAOA,W;OACAC,gB;OACAC,gB;AAEP,SAASF,WAAT,EAAsBC,gBAAtB,EAAwCC,gBAAxC;AAEA,eAAe;EACbC,uBAAuB,EAAE;IACvBH,WADuB;IAEvBC,gBAFuB;IAGvBC;EAHuB;AADZ,CAAf"}
1
+ {"version":3,"file":"index.mjs","names":["VTimePicker","VTimePickerClock","VTimePickerTitle","$_vuetify_subcomponents"],"sources":["../../../src/components/VTimePicker/index.ts"],"sourcesContent":["import VTimePicker from './VTimePicker'\nimport VTimePickerClock from './VTimePickerClock'\nimport VTimePickerTitle from './VTimePickerTitle'\n\nexport { VTimePicker, VTimePickerClock, VTimePickerTitle }\n\nexport default {\n $_vuetify_subcomponents: {\n VTimePicker,\n VTimePickerClock,\n VTimePickerTitle,\n },\n}\n"],"mappings":"OAAOA,WAAW;AAAA,OACXC,gBAAgB;AAAA,OAChBC,gBAAgB;AAEvB,SAASF,WAAW,EAAEC,gBAAgB,EAAEC,gBAAgB;AAExD,eAAe;EACbC,uBAAuB,EAAE;IACvBH,WAAW;IACXC,gBAAgB;IAChBC;EACF;AACF,CAAC"}
@@ -11,14 +11,13 @@
11
11
  position: relative;
12
12
  }
13
13
  .v-timeline--horizontal.v-timeline {
14
- grid-template-rows: auto min-content auto;
15
14
  grid-column-gap: 24px;
16
15
  width: 100%;
17
16
  }
18
- .v-timeline--horizontal.v-timeline .v-timeline-item:first-child .v-timeline-item__body, .v-timeline--horizontal.v-timeline .v-timeline-item:first-child .v-timeline-item__opposite, .v-timeline--horizontal.v-timeline .v-timeline-item:first-child .v-timeline-divider {
17
+ .v-timeline--horizontal.v-timeline .v-timeline-item:first-child .v-timeline-divider, .v-timeline--horizontal.v-timeline .v-timeline-item:first-child .v-timeline-item__body, .v-timeline--horizontal.v-timeline .v-timeline-item:first-child .v-timeline-item__opposite {
19
18
  padding-inline-start: 24px;
20
19
  }
21
- .v-timeline--horizontal.v-timeline .v-timeline-item:last-child .v-timeline-item__body, .v-timeline--horizontal.v-timeline .v-timeline-item:last-child .v-timeline-item__opposite, .v-timeline--horizontal.v-timeline .v-timeline-item:last-child .v-timeline-divider {
20
+ .v-timeline--horizontal.v-timeline .v-timeline-item:last-child .v-timeline-divider, .v-timeline--horizontal.v-timeline .v-timeline-item:last-child .v-timeline-item__body, .v-timeline--horizontal.v-timeline .v-timeline-item:last-child .v-timeline-item__opposite {
22
21
  padding-inline-end: 24px;
23
22
  }
24
23
  .v-timeline--horizontal.v-timeline .v-timeline-item:nth-child(2n) .v-timeline-item__body {
@@ -33,6 +32,7 @@
33
32
  .v-timeline--horizontal.v-timeline .v-timeline-item:nth-child(2n+1) .v-timeline-item__body {
34
33
  grid-row: 1;
35
34
  padding-block-end: 24px;
35
+ align-self: flex-end;
36
36
  }
37
37
  .v-timeline--horizontal.v-timeline .v-timeline-item:nth-child(2n+1) .v-timeline-item__opposite {
38
38
  grid-row: 3;
@@ -40,14 +40,13 @@
40
40
  }
41
41
 
42
42
  .v-timeline--vertical.v-timeline {
43
- grid-template-columns: auto min-content auto;
44
43
  grid-row-gap: 24px;
45
44
  height: 100%;
46
45
  }
47
46
  .v-timeline--vertical.v-timeline .v-timeline-item:first-child .v-timeline-divider, .v-timeline--vertical.v-timeline .v-timeline-item:first-child .v-timeline-item__body, .v-timeline--vertical.v-timeline .v-timeline-item:first-child .v-timeline-item__opposite {
48
47
  padding-block-start: 24px;
49
48
  }
50
- .v-timeline--vertical.v-timeline .v-timeline-item:last-child .v-timeline-item__body, .v-timeline--vertical.v-timeline .v-timeline-item:last-child .v-timeline-item__opposite, .v-timeline--vertical.v-timeline .v-timeline-item:last-child .v-timeline-divider {
49
+ .v-timeline--vertical.v-timeline .v-timeline-item:last-child .v-timeline-divider, .v-timeline--vertical.v-timeline .v-timeline-item:last-child .v-timeline-item__body, .v-timeline--vertical.v-timeline .v-timeline-item:last-child .v-timeline-item__opposite {
51
50
  padding-block-end: 24px;
52
51
  }
53
52
  .v-timeline--vertical.v-timeline .v-timeline-item:nth-child(2n) .v-timeline-item__body {
@@ -96,7 +95,7 @@
96
95
  }
97
96
  .v-timeline--horizontal .v-timeline-divider__before {
98
97
  height: var(--v-timeline-line-thickness);
99
- width: calc(50% + 12px - var(--v-timeline-line-inset));
98
+ width: calc(var(--v-timeline-line-size-base) + 12px - var(--v-timeline-line-inset));
100
99
  }
101
100
  .v-timeline--horizontal .v-timeline-divider__before.v-locale--is-ltr, .v-locale--is-ltr .v-timeline--horizontal .v-timeline-divider__before {
102
101
  left: -12px;
@@ -108,7 +107,7 @@
108
107
  }
109
108
 
110
109
  .v-timeline--vertical .v-timeline-divider__before {
111
- height: calc(50% + 12px - var(--v-timeline-line-inset));
110
+ height: calc(var(--v-timeline-line-size-base) + 12px - var(--v-timeline-line-inset));
112
111
  width: var(--v-timeline-line-thickness);
113
112
  top: -12px;
114
113
  }
@@ -119,7 +118,7 @@
119
118
  }
120
119
  .v-timeline--horizontal .v-timeline-divider__after {
121
120
  height: var(--v-timeline-line-thickness);
122
- width: calc(50% + 12px - var(--v-timeline-line-inset));
121
+ width: calc(var(--v-timeline-line-size-base) + 12px - var(--v-timeline-line-inset));
123
122
  }
124
123
  .v-timeline--horizontal .v-timeline-divider__after.v-locale--is-ltr, .v-locale--is-ltr .v-timeline--horizontal .v-timeline-divider__after {
125
124
  right: -12px;
@@ -131,18 +130,18 @@
131
130
  }
132
131
 
133
132
  .v-timeline--vertical .v-timeline-divider__after {
134
- height: calc(50% + 12px - var(--v-timeline-line-inset));
133
+ height: calc(var(--v-timeline-line-size-base) + 12px - var(--v-timeline-line-inset));
135
134
  width: var(--v-timeline-line-thickness);
136
135
  bottom: -12px;
137
136
  }
138
137
 
139
138
  .v-timeline--vertical .v-timeline-item:first-child .v-timeline-divider__before {
140
- height: calc(50% + 12px - var(--v-timeline-line-inset));
139
+ height: calc(var(--v-timeline-line-size-base) + 12px - var(--v-timeline-line-inset));
141
140
  top: 0;
142
141
  }
143
142
 
144
143
  .v-timeline--horizontal .v-timeline-item:first-child .v-timeline-divider__before {
145
- width: calc(50% + 12px - var(--v-timeline-line-inset));
144
+ width: calc(var(--v-timeline-line-size-base) + 12px - var(--v-timeline-line-inset));
146
145
  }
147
146
  .v-timeline--horizontal .v-timeline-item:first-child .v-timeline-divider__before.v-locale--is-ltr, .v-locale--is-ltr .v-timeline--horizontal .v-timeline-item:first-child .v-timeline-divider__before {
148
147
  left: 0;
@@ -154,11 +153,11 @@
154
153
  }
155
154
 
156
155
  .v-timeline--vertical .v-timeline-item:first-child .v-timeline-divider__after {
157
- height: calc(50% - var(--v-timeline-line-inset));
156
+ height: calc(var(--v-timeline-line-size-base) - var(--v-timeline-line-inset) + var(--v-timeline-line-size-offset));
158
157
  }
159
158
 
160
159
  .v-timeline--horizontal .v-timeline-item:first-child .v-timeline-divider__after {
161
- width: calc(50% - var(--v-timeline-line-inset));
160
+ width: calc(var(--v-timeline-line-size-base) - var(--v-timeline-line-inset) + var(--v-timeline-line-size-offset));
162
161
  }
163
162
  .v-timeline--horizontal .v-timeline-item:first-child .v-timeline-divider__after.v-locale--is-ltr, .v-locale--is-ltr .v-timeline--horizontal .v-timeline-item:first-child .v-timeline-divider__after {
164
163
  right: -12px;
@@ -170,20 +169,20 @@
170
169
  }
171
170
 
172
171
  .v-timeline--vertical .v-timeline-item:last-child .v-timeline-divider__before {
173
- height: calc(50% - var(--v-timeline-line-inset));
172
+ height: calc(var(--v-timeline-line-size-base) - var(--v-timeline-line-inset) + var(--v-timeline-line-size-offset));
174
173
  }
175
174
 
176
175
  .v-timeline--horizontal .v-timeline-item:last-child .v-timeline-divider__before {
177
- width: calc(50% - var(--v-timeline-line-inset));
176
+ width: calc(var(--v-timeline-line-size-base) - var(--v-timeline-line-inset) + var(--v-timeline-line-size-offset));
178
177
  }
179
178
 
180
179
  .v-timeline--vertical .v-timeline-item:last-child .v-timeline-divider__after {
181
- height: calc(50% + 12px - var(--v-timeline-line-inset));
180
+ height: calc(var(--v-timeline-line-size-base) + 12px - var(--v-timeline-line-inset));
182
181
  bottom: 0;
183
182
  }
184
183
 
185
184
  .v-timeline--horizontal .v-timeline-item:last-child .v-timeline-divider__after {
186
- width: calc(50% + 12px - var(--v-timeline-line-inset));
185
+ width: calc(var(--v-timeline-line-size-base) + 12px - var(--v-timeline-line-inset));
187
186
  }
188
187
  .v-timeline--horizontal .v-timeline-item:last-child .v-timeline-divider__after.v-locale--is-ltr, .v-locale--is-ltr .v-timeline--horizontal .v-timeline-item:last-child .v-timeline-divider__after {
189
188
  right: 0;
@@ -201,7 +200,7 @@
201
200
  display: flex;
202
201
  justify-content: center;
203
202
  align-items: center;
204
- box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12);
203
+ box-shadow: 0px 0px 0px 0px var(--v-shadow-key-umbra-opacity, rgba(0, 0, 0, 0.2)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.14)), 0px 0px 0px 0px var(--v-shadow-key-penumbra-opacity, rgba(0, 0, 0, 0.12));
205
204
  }
206
205
  .v-timeline-divider__dot--size-x-small {
207
206
  height: 22px;
@@ -252,6 +251,22 @@
252
251
  }
253
252
 
254
253
  /** Modifiers **/
254
+ .v-timeline--horizontal.v-timeline--justify-center {
255
+ grid-template-rows: minmax(auto, 50%) min-content minmax(auto, 50%);
256
+ }
257
+
258
+ .v-timeline--vertical.v-timeline--justify-center {
259
+ grid-template-columns: minmax(auto, 50%) min-content minmax(auto, 50%);
260
+ }
261
+
262
+ .v-timeline--horizontal.v-timeline--justify-auto {
263
+ grid-template-rows: auto min-content auto;
264
+ }
265
+
266
+ .v-timeline--vertical.v-timeline--justify-auto {
267
+ grid-template-columns: auto min-content auto;
268
+ }
269
+
255
270
  .v-timeline--horizontal.v-timeline--density-comfortable {
256
271
  height: 100%;
257
272
  }
@@ -273,20 +288,20 @@
273
288
  }
274
289
 
275
290
  .v-timeline--horizontal.v-timeline--density-compact.v-timeline--side-end {
276
- grid-template-rows: min-content auto;
291
+ grid-template-rows: 0 min-content auto;
277
292
  }
278
293
  .v-timeline--horizontal.v-timeline--density-compact.v-timeline--side-start {
279
- grid-template-rows: auto min-content;
294
+ grid-template-rows: auto min-content 0;
280
295
  }
281
296
  .v-timeline--horizontal.v-timeline--density-compact .v-timeline-item__body {
282
297
  grid-row: 1;
283
298
  }
284
299
 
285
300
  .v-timeline--vertical.v-timeline--density-compact.v-timeline--side-end {
286
- grid-template-columns: min-content auto;
301
+ grid-template-columns: 0 min-content auto;
287
302
  }
288
303
  .v-timeline--vertical.v-timeline--density-compact.v-timeline--side-start {
289
- grid-template-columns: auto min-content;
304
+ grid-template-columns: auto min-content 0;
290
305
  }
291
306
  .v-timeline--vertical.v-timeline--density-compact .v-timeline-item__body {
292
307
  grid-column: 3;
@@ -351,6 +366,10 @@
351
366
  display: none;
352
367
  }
353
368
 
369
+ .v-timeline--align-center {
370
+ --v-timeline-line-size-base: 50%;
371
+ --v-timeline-line-size-offset: 0px;
372
+ }
354
373
  .v-timeline--horizontal.v-timeline--align-center {
355
374
  justify-items: center;
356
375
  }
@@ -365,6 +384,19 @@
365
384
  justify-content: center;
366
385
  }
367
386
 
387
+ .v-timeline--align-start {
388
+ --v-timeline-line-size-base: 100%;
389
+ --v-timeline-line-size-offset: 12px;
390
+ }
391
+ .v-timeline--align-start .v-timeline-item:first-child .v-timeline-divider__before {
392
+ --v-timeline-line-size-offset: 24px;
393
+ }
394
+ .v-timeline--align-start .v-timeline-item:first-child .v-timeline-divider__after {
395
+ --v-timeline-line-size-offset: -12px;
396
+ }
397
+ .v-timeline--align-start .v-timeline-item:last-child .v-timeline-divider__after {
398
+ --v-timeline-line-size-offset: 0px;
399
+ }
368
400
  .v-timeline--horizontal.v-timeline--align-start {
369
401
  justify-items: flex-start;
370
402
  }
@@ -372,19 +404,10 @@
372
404
  justify-content: flex-start;
373
405
  }
374
406
  .v-timeline--horizontal.v-timeline--align-start .v-timeline-divider .v-timeline-divider__before {
375
- width: calc(12px + var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
407
+ width: calc(var(--v-timeline-line-size-offset) + var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
376
408
  }
377
409
  .v-timeline--horizontal.v-timeline--align-start .v-timeline-divider .v-timeline-divider__after {
378
- width: calc(100% - var(--v-timeline-dot-size) / 2 + 24px / 2 - var(--v-timeline-line-inset));
379
- }
380
- .v-timeline--horizontal.v-timeline--align-start .v-timeline-item:first-child .v-timeline-divider__before {
381
- width: calc(24px + var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
382
- }
383
- .v-timeline--horizontal.v-timeline--align-start .v-timeline-item:first-child .v-timeline-divider__after {
384
- width: calc(100% - 12px - var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
385
- }
386
- .v-timeline--horizontal.v-timeline--align-start .v-timeline-item:last-child .v-timeline-divider__after {
387
- width: calc(100% - var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
410
+ width: calc(var(--v-timeline-line-size-base) - var(--v-timeline-dot-size) / 2 + var(--v-timeline-line-size-offset) - var(--v-timeline-line-inset));
388
411
  }
389
412
 
390
413
  .v-timeline--vertical.v-timeline--align-start {
@@ -394,17 +417,30 @@
394
417
  justify-content: flex-start;
395
418
  }
396
419
  .v-timeline--vertical.v-timeline--align-start .v-timeline-divider .v-timeline-divider__before {
397
- height: calc(12px + var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
420
+ height: calc(var(--v-timeline-line-size-offset) + var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
398
421
  }
399
422
  .v-timeline--vertical.v-timeline--align-start .v-timeline-divider .v-timeline-divider__after {
400
- height: calc(100% - var(--v-timeline-dot-size) / 2 + 24px / 2 - var(--v-timeline-line-inset));
423
+ height: calc(var(--v-timeline-line-size-base) - var(--v-timeline-dot-size) / 2 + var(--v-timeline-line-size-offset) - var(--v-timeline-line-inset));
401
424
  }
402
- .v-timeline--vertical.v-timeline--align-start .v-timeline-item:first-child .v-timeline-divider__before {
403
- height: calc(24px + var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
425
+
426
+ .v-timeline--truncate-line-start .v-timeline-item:first-child .v-timeline-divider__after {
427
+ --v-timeline-line-size-offset: 12px;
428
+ }
429
+ .v-timeline--vertical.v-timeline--truncate-line-start .v-timeline-item:first-child .v-timeline-divider, .v-timeline--vertical.v-timeline--truncate-line-start .v-timeline-item:first-child .v-timeline-item__body, .v-timeline--vertical.v-timeline--truncate-line-start .v-timeline-item:first-child .v-timeline-item__opposite {
430
+ padding-block-start: 0;
404
431
  }
405
- .v-timeline--vertical.v-timeline--align-start .v-timeline-item:first-child .v-timeline-divider__after {
406
- height: calc(100% - 12px - var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
432
+
433
+ .v-timeline--horizontal.v-timeline--truncate-line-start .v-timeline-item:first-child .v-timeline-divider, .v-timeline--horizontal.v-timeline--truncate-line-start .v-timeline-item:first-child .v-timeline-item__body, .v-timeline--horizontal.v-timeline--truncate-line-start .v-timeline-item:first-child .v-timeline-item__opposite {
434
+ padding-inline-start: 0;
407
435
  }
408
- .v-timeline--vertical.v-timeline--align-start .v-timeline-item:last-child .v-timeline-divider__after {
409
- height: calc(100% - var(--v-timeline-dot-size) / 2 - var(--v-timeline-line-inset));
436
+
437
+ .v-timeline--truncate-line-end .v-timeline-item:last-child .v-timeline-divider__before {
438
+ --v-timeline-line-size-offset: 12px;
439
+ }
440
+ .v-timeline--vertical.v-timeline--truncate-line-end .v-timeline-item:last-child .v-timeline-divider, .v-timeline--vertical.v-timeline--truncate-line-end .v-timeline-item:last-child .v-timeline-item__body, .v-timeline--vertical.v-timeline--truncate-line-end .v-timeline-item:last-child .v-timeline-item__opposite {
441
+ padding-block-end: 0;
442
+ }
443
+
444
+ .v-timeline--horizontal.v-timeline--truncate-line-end .v-timeline-item:last-child .v-timeline-divider, .v-timeline--horizontal.v-timeline--truncate-line-end .v-timeline-item:last-child .v-timeline-item__body, .v-timeline--horizontal.v-timeline--truncate-line-end .v-timeline-item:last-child .v-timeline-item__opposite {
445
+ padding-inline-end: 0;
410
446
  }
@@ -1,15 +1,14 @@
1
1
  import { createVNode as _createVNode, resolveDirective as _resolveDirective } from "vue";
2
2
  // Styles
3
- import "./VTimeline.css"; // Composables
3
+ import "./VTimeline.css";
4
4
 
5
+ // Composables
5
6
  import { makeDensityProps, useDensity } from "../../composables/density.mjs";
6
7
  import { makeTagProps } from "../../composables/tag.mjs";
7
8
  import { makeThemeProps, provideTheme } from "../../composables/theme.mjs";
8
9
  import { provideDefaults } from "../../composables/defaults.mjs"; // Utilities
9
-
10
10
  import { computed, toRef } from 'vue';
11
11
  import { convertToUnit, defineComponent, useRender } from "../../util/index.mjs"; // Types
12
-
13
12
  export const VTimeline = defineComponent({
14
13
  name: 'VTimeline',
15
14
  props: {
@@ -23,6 +22,11 @@ export const VTimeline = defineComponent({
23
22
  default: 'vertical',
24
23
  validator: v => ['vertical', 'horizontal'].includes(v)
25
24
  },
25
+ justify: {
26
+ type: String,
27
+ default: 'auto',
28
+ validator: v => ['auto', 'center'].includes(v)
29
+ },
26
30
  side: {
27
31
  type: String,
28
32
  validator: v => v == null || ['start', 'end'].includes(v)
@@ -44,7 +48,6 @@ export const VTimeline = defineComponent({
44
48
  ...makeTagProps(),
45
49
  ...makeThemeProps()
46
50
  },
47
-
48
51
  setup(props, _ref) {
49
52
  let {
50
53
  slots
@@ -70,23 +73,19 @@ export const VTimeline = defineComponent({
70
73
  });
71
74
  const truncateClasses = computed(() => {
72
75
  const classes = ['v-timeline--truncate-line-start', 'v-timeline--truncate-line-end'];
73
-
74
76
  switch (props.truncateLine) {
75
77
  case 'both':
76
78
  return classes;
77
-
78
79
  case 'start':
79
80
  return classes[0];
80
-
81
81
  case 'end':
82
82
  return classes[1];
83
-
84
83
  default:
85
84
  return null;
86
85
  }
87
86
  });
88
87
  useRender(() => _createVNode(props.tag, {
89
- "class": ['v-timeline', `v-timeline--${props.direction}`, `v-timeline--align-${props.align}`, truncateClasses.value, {
88
+ "class": ['v-timeline', `v-timeline--${props.direction}`, `v-timeline--align-${props.align}`, `v-timeline--justify-${props.justify}`, truncateClasses.value, {
90
89
  'v-timeline--inset-line': !!props.lineInset
91
90
  }, themeClasses.value, densityClasses.value, sideClasses.value],
92
91
  "style": {
@@ -95,6 +94,5 @@ export const VTimeline = defineComponent({
95
94
  }, slots));
96
95
  return {};
97
96
  }
98
-
99
97
  });
100
98
  //# sourceMappingURL=VTimeline.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"VTimeline.mjs","names":["makeDensityProps","useDensity","makeTagProps","makeThemeProps","provideTheme","provideDefaults","computed","toRef","convertToUnit","defineComponent","useRender","VTimeline","name","props","align","type","String","default","validator","v","includes","direction","side","lineInset","Number","lineThickness","lineColor","truncateLine","setup","slots","themeClasses","densityClasses","VTimelineDivider","VTimelineItem","density","sideClasses","truncateClasses","classes","value"],"sources":["../../../src/components/VTimeline/VTimeline.tsx"],"sourcesContent":["// Styles\nimport './VTimeline.sass'\n\n// Composables\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { provideDefaults } from '@/composables/defaults'\n\n// Utilities\nimport { computed, toRef } from 'vue'\nimport { convertToUnit, defineComponent, useRender } from '@/util'\n\n// Types\nimport type { Prop } from 'vue'\n\nexport type TimelineDirection = 'vertical' | 'horizontal'\nexport type TimelineSide = 'start' | 'end' | undefined\nexport type TimelineAlign = 'center' | 'start'\nexport type TimelineTruncateLine = 'start' | 'end' | 'both' | undefined\n\nexport const VTimeline = defineComponent({\n name: 'VTimeline',\n\n props: {\n align: {\n type: String,\n default: 'center',\n validator: (v: any) => ['center', 'start'].includes(v),\n } as Prop<TimelineAlign>,\n direction: {\n type: String,\n default: 'vertical',\n validator: (v: any) => ['vertical', 'horizontal'].includes(v),\n } as Prop<TimelineDirection>,\n side: {\n type: String,\n validator: (v: any) => v == null || ['start', 'end'].includes(v),\n } as Prop<TimelineSide>,\n lineInset: {\n type: [String, Number],\n default: 0,\n },\n lineThickness: {\n type: [String, Number],\n default: 2,\n },\n lineColor: String,\n truncateLine: {\n type: String,\n validator: (v: any) => ['start', 'end', 'both'].includes(v),\n } as Prop<TimelineTruncateLine>,\n\n ...makeDensityProps(),\n ...makeTagProps(),\n ...makeThemeProps(),\n },\n\n setup (props, { slots }) {\n const { themeClasses } = provideTheme(props)\n const { densityClasses } = useDensity(props)\n\n provideDefaults({\n VTimelineDivider: {\n lineColor: toRef(props, 'lineColor'),\n },\n VTimelineItem: {\n density: toRef(props, 'density'),\n lineInset: toRef(props, 'lineInset'),\n },\n })\n\n const sideClasses = computed(() => {\n const side = props.side ? props.side : props.density !== 'default' ? 'end' : null\n\n return side && `v-timeline--side-${side}`\n })\n\n const truncateClasses = computed(() => {\n const classes = [\n 'v-timeline--truncate-line-start',\n 'v-timeline--truncate-line-end',\n ]\n\n switch (props.truncateLine) {\n case 'both': return classes\n case 'start': return classes[0]\n case 'end': return classes[1]\n default: return null\n }\n })\n\n useRender(() => (\n <props.tag\n class={[\n 'v-timeline',\n `v-timeline--${props.direction}`,\n `v-timeline--align-${props.align}`,\n truncateClasses.value,\n {\n 'v-timeline--inset-line': !!props.lineInset,\n },\n themeClasses.value,\n densityClasses.value,\n sideClasses.value,\n ]}\n style={{\n '--v-timeline-line-thickness': convertToUnit(props.lineThickness),\n }}\n v-slots={ slots }\n />\n ))\n\n return {}\n },\n})\n"],"mappings":";AAAA;AACA,yB,CAEA;;SACSA,gB,EAAkBC,U;SAClBC,Y;SACAC,c,EAAgBC,Y;SAChBC,e,0CAET;;AACA,SAASC,QAAT,EAAmBC,KAAnB,QAAgC,KAAhC;SACSC,a,EAAeC,e,EAAiBC,S,gCAEzC;;AAQA,OAAO,MAAMC,SAAS,GAAGF,eAAe,CAAC;EACvCG,IAAI,EAAE,WADiC;EAGvCC,KAAK,EAAE;IACLC,KAAK,EAAE;MACLC,IAAI,EAAEC,MADD;MAELC,OAAO,EAAE,QAFJ;MAGLC,SAAS,EAAGC,CAAD,IAAY,CAAC,QAAD,EAAW,OAAX,EAAoBC,QAApB,CAA6BD,CAA7B;IAHlB,CADF;IAMLE,SAAS,EAAE;MACTN,IAAI,EAAEC,MADG;MAETC,OAAO,EAAE,UAFA;MAGTC,SAAS,EAAGC,CAAD,IAAY,CAAC,UAAD,EAAa,YAAb,EAA2BC,QAA3B,CAAoCD,CAApC;IAHd,CANN;IAWLG,IAAI,EAAE;MACJP,IAAI,EAAEC,MADF;MAEJE,SAAS,EAAGC,CAAD,IAAYA,CAAC,IAAI,IAAL,IAAa,CAAC,OAAD,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ACD,CAJ2B,CAA5B;IAMA,MAAMc,eAAe,GAAG9B,QAAQ,CAAC,MAAM;MACrC,MAAM+B,OAAO,GAAG,CACd,iCADc,EAEd,+BAFc,CAAhB;;MAKA,QAAQxB,KAAK,CAACc,YAAd;QACE,KAAK,MAAL;UAAa,OAAOU,OAAP;;QACb,KAAK,OAAL;UAAc,OAAOA,OAAO,CAAC,CAAD,CAAd;;QACd,KAAK,KAAL;UAAY,OAAOA,OAAO,CAAC,CAAD,CAAd;;QACZ;UAAS,OAAO,IAAP;MAJX;IAMD,CAZ+B,CAAhC;IAcA3B,SAAS,CAAC;MAAA,SAEC,CACL,YADK,EAEJ,eAAcG,KAAK,CAACQ,SAAU,EAF1B,EAGJ,qBAAoBR,KAAK,CAACC,KAAM,EAH5B,EAILsB,eAAe,CAACE,KAJX,EAKL;QACE,0BAA0B,CAAC,CAACzB,KAAK,CAACU;MADpC,CALK,EAQLO,YAAY,CAACQ,KARR,EASLP,cAAc,CAACO,KATV,EAULH,WAAW,CAACG,KAVP,CAFD;MAAA,SAcC;QACL,+BAA+B9B,aAAa,CAACK,KAAK,CAACY,aAAP;MADvC;IAdD,GAiBII,KAjBJ,CAAD,CAAT;IAqBA,OAAO,EAAP;EACD;;AA7FsC,CAAD,CAAjC"}
1
+ {"version":3,"file":"VTimeline.mjs","names":["makeDensityProps","useDensity","makeTagProps","makeThemeProps","provideTheme","provideDefaults","computed","toRef","convertToUnit","defineComponent","useRender","VTimeline","name","props","align","type","String","default","validator","v","includes","direction","justify","side","lineInset","Number","lineThickness","lineColor","truncateLine","setup","slots","themeClasses","densityClasses","VTimelineDivider","VTimelineItem","density","sideClasses","truncateClasses","classes","value"],"sources":["../../../src/components/VTimeline/VTimeline.tsx"],"sourcesContent":["// Styles\nimport './VTimeline.sass'\n\n// Composables\nimport { makeDensityProps, useDensity } from '@/composables/density'\nimport { makeTagProps } from '@/composables/tag'\nimport { makeThemeProps, provideTheme } from '@/composables/theme'\nimport { provideDefaults } from '@/composables/defaults'\n\n// Utilities\nimport { computed, toRef } from 'vue'\nimport { convertToUnit, defineComponent, useRender } from '@/util'\n\n// Types\nimport type { Prop } from 'vue'\n\nexport type TimelineDirection = 'vertical' | 'horizontal'\nexport type TimelineSide = 'start' | 'end' | undefined\nexport type TimelineAlign = 'center' | 'start'\nexport type TimelineTruncateLine = 'start' | 'end' | 'both' | undefined\n\nexport const VTimeline = defineComponent({\n name: 'VTimeline',\n\n props: {\n align: {\n type: String,\n default: 'center',\n validator: (v: any) => ['center', 'start'].includes(v),\n } as Prop<TimelineAlign>,\n direction: {\n type: String,\n default: 'vertical',\n validator: (v: any) => ['vertical', 'horizontal'].includes(v),\n } as Prop<TimelineDirection>,\n justify: {\n type: String,\n default: 'auto',\n validator: (v: any) => ['auto', 'center'].includes(v),\n },\n side: {\n type: String,\n validator: (v: any) => v == null || ['start', 'end'].includes(v),\n } as Prop<TimelineSide>,\n lineInset: {\n type: [String, Number],\n default: 0,\n },\n lineThickness: {\n type: [String, Number],\n default: 2,\n },\n lineColor: String,\n truncateLine: {\n type: String,\n validator: (v: any) => ['start', 'end', 'both'].includes(v),\n } as Prop<TimelineTruncateLine>,\n\n ...makeDensityProps(),\n ...makeTagProps(),\n ...makeThemeProps(),\n },\n\n setup (props, { slots }) {\n const { themeClasses } = provideTheme(props)\n const { densityClasses } = useDensity(props)\n\n provideDefaults({\n VTimelineDivider: {\n lineColor: toRef(props, 'lineColor'),\n },\n VTimelineItem: {\n density: toRef(props, 'density'),\n lineInset: toRef(props, 'lineInset'),\n },\n })\n\n const sideClasses = computed(() => {\n const side = props.side ? props.side : props.density !== 'default' ? 'end' : null\n\n return side && `v-timeline--side-${side}`\n })\n\n const truncateClasses = computed(() => {\n const classes = [\n 'v-timeline--truncate-line-start',\n 'v-timeline--truncate-line-end',\n ]\n\n switch (props.truncateLine) {\n case 'both': return classes\n case 'start': return classes[0]\n case 'end': return classes[1]\n default: return null\n }\n })\n\n useRender(() => (\n <props.tag\n class={[\n 'v-timeline',\n `v-timeline--${props.direction}`,\n `v-timeline--align-${props.align}`,\n `v-timeline--justify-${props.justify}`,\n truncateClasses.value,\n {\n 'v-timeline--inset-line': !!props.lineInset,\n },\n themeClasses.value,\n densityClasses.value,\n sideClasses.value,\n ]}\n style={{\n '--v-timeline-line-thickness': convertToUnit(props.lineThickness),\n }}\n v-slots={ slots }\n />\n ))\n\n return {}\n },\n})\n\nexport type VTimeline = InstanceType<typeof VTimeline>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,gBAAgB,EAAEC,UAAU;AAAA,SAC5BC,YAAY;AAAA,SACZC,cAAc,EAAEC,YAAY;AAAA,SAC5BC,eAAe,0CAExB;AACA,SAASC,QAAQ,EAAEC,KAAK,QAAQ,KAAK;AAAA,SAC5BC,aAAa,EAAEC,eAAe,EAAEC,SAAS,gCAElD;AAQA,OAAO,MAAMC,SAAS,GAAGF,eAAe,CAAC;EACvCG,IAAI,EAAE,WAAW;EAEjBC,KAAK,EAAE;IACLC,KAAK,EAAE;MACLC,IAAI,EAAEC,MAAM;MACZC,OAAO,EAAE,QAAQ;MACjBC,SAAS,EAAGC,CAAM,IAAK,CAAC,QAAQ,EAAE,OAAO,CAAC,CAACC,QAAQ,CAACD,CAAC;IACvD,CAAwB;IACxBE,SAAS,EAAE;MACTN,IAAI,EAAEC,MAAM;MACZC,OAAO,EAAE,UAAU;MACnBC,SAAS,EAAGC,CAAM,IAAK,CAAC,UAAU,EAAE,YAAY,CAAC,CAACC,QAAQ,CAACD,CAAC;IAC9D,CAA4B;IAC5BG,OAAO,EAAE;MACPP,IAAI,EAAEC,MAAM;MACZC,OAAO,EAAE,MAAM;MACfC,SAAS,EAAGC,CAAM,IAAK,CAAC,MAAM,EAAE,QAAQ,CAAC,CAACC,QAAQ,CAACD,CAAC;IACtD,CAAC;IACDI,IAAI,EAAE;MACJR,IAAI,EAAEC,MAAM;MACZE,SAAS,EAAGC,CAAM,IAAKA,CAAC,IAAI,IAAI,IAAI,CAAC,OAAO,E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