@vuetify/nightly 3.8.6-master.2025-05-24 → 3.8.6-master.2025-05-26

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 (325) hide show
  1. package/CHANGELOG.md +6 -3
  2. package/dist/json/attributes.json +3745 -3745
  3. package/dist/json/importMap-labs.json +24 -24
  4. package/dist/json/importMap.json +174 -174
  5. package/dist/json/web-types.json +6589 -6589
  6. package/dist/vuetify-labs.cjs +868 -868
  7. package/dist/vuetify-labs.css +2585 -2585
  8. package/dist/vuetify-labs.d.ts +58 -58
  9. package/dist/vuetify-labs.esm.js +869 -869
  10. package/dist/vuetify-labs.esm.js.map +1 -1
  11. package/dist/vuetify-labs.js +868 -868
  12. package/dist/vuetify-labs.min.css +2 -2
  13. package/dist/vuetify.cjs +755 -755
  14. package/dist/vuetify.cjs.map +1 -1
  15. package/dist/vuetify.css +3542 -3542
  16. package/dist/vuetify.d.ts +58 -58
  17. package/dist/vuetify.esm.js +756 -756
  18. package/dist/vuetify.esm.js.map +1 -1
  19. package/dist/vuetify.js +755 -755
  20. package/dist/vuetify.js.map +1 -1
  21. package/dist/vuetify.min.css +2 -2
  22. package/dist/vuetify.min.js +958 -958
  23. package/dist/vuetify.min.js.map +1 -1
  24. package/lib/components/VAlert/VAlert.js +11 -11
  25. package/lib/components/VAlert/VAlert.js.map +1 -1
  26. package/lib/components/VApp/VApp.js +5 -5
  27. package/lib/components/VApp/VApp.js.map +1 -1
  28. package/lib/components/VAutocomplete/VAutocomplete.js +9 -9
  29. package/lib/components/VAutocomplete/VAutocomplete.js.map +1 -1
  30. package/lib/components/VAvatar/VAvatar.js +4 -4
  31. package/lib/components/VAvatar/VAvatar.js.map +1 -1
  32. package/lib/components/VBadge/VBadge.js +3 -3
  33. package/lib/components/VBadge/VBadge.js.map +1 -1
  34. package/lib/components/VBanner/VBanner.js +6 -6
  35. package/lib/components/VBanner/VBanner.js.map +1 -1
  36. package/lib/components/VBanner/VBannerActions.js +4 -4
  37. package/lib/components/VBanner/VBannerActions.js.map +1 -1
  38. package/lib/components/VBottomNavigation/VBottomNavigation.js +6 -6
  39. package/lib/components/VBottomNavigation/VBottomNavigation.js.map +1 -1
  40. package/lib/components/VBreadcrumbs/VBreadcrumbs.js +5 -5
  41. package/lib/components/VBreadcrumbs/VBreadcrumbs.js.map +1 -1
  42. package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.js +4 -4
  43. package/lib/components/VBreadcrumbs/VBreadcrumbsDivider.js.map +1 -1
  44. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js +5 -5
  45. package/lib/components/VBreadcrumbs/VBreadcrumbsItem.js.map +1 -1
  46. package/lib/components/VBtn/VBtn.js +7 -7
  47. package/lib/components/VBtn/VBtn.js.map +1 -1
  48. package/lib/components/VBtnGroup/VBtnGroup.js +4 -4
  49. package/lib/components/VBtnGroup/VBtnGroup.js.map +1 -1
  50. package/lib/components/VCard/VCard.js +5 -5
  51. package/lib/components/VCard/VCard.js.map +1 -1
  52. package/lib/components/VCard/VCardActions.js +4 -4
  53. package/lib/components/VCard/VCardActions.js.map +1 -1
  54. package/lib/components/VCard/VCardItem.js +9 -9
  55. package/lib/components/VCard/VCardItem.js.map +1 -1
  56. package/lib/components/VCard/VCardSubtitle.js +4 -4
  57. package/lib/components/VCard/VCardSubtitle.js.map +1 -1
  58. package/lib/components/VCard/VCardText.js +4 -4
  59. package/lib/components/VCard/VCardText.js.map +1 -1
  60. package/lib/components/VCarousel/VCarousel.js +4 -4
  61. package/lib/components/VCarousel/VCarousel.js.map +1 -1
  62. package/lib/components/VChip/VChip.js +11 -11
  63. package/lib/components/VChip/VChip.js.map +1 -1
  64. package/lib/components/VColorPicker/VColorPicker.js +3 -3
  65. package/lib/components/VColorPicker/VColorPicker.js.map +1 -1
  66. package/lib/components/VColorPicker/VColorPickerCanvas.js +9 -9
  67. package/lib/components/VColorPicker/VColorPickerCanvas.js.map +1 -1
  68. package/lib/components/VColorPicker/VColorPickerEdit.js +6 -6
  69. package/lib/components/VColorPicker/VColorPickerEdit.js.map +1 -1
  70. package/lib/components/VColorPicker/VColorPickerPreview.js +11 -11
  71. package/lib/components/VColorPicker/VColorPickerPreview.js.map +1 -1
  72. package/lib/components/VColorPicker/VColorPickerSwatches.js +10 -10
  73. package/lib/components/VColorPicker/VColorPickerSwatches.js.map +1 -1
  74. package/lib/components/VCombobox/VCombobox.js +9 -9
  75. package/lib/components/VCombobox/VCombobox.js.map +1 -1
  76. package/lib/components/VConfirmEdit/VConfirmEdit.js +3 -3
  77. package/lib/components/VConfirmEdit/VConfirmEdit.js.map +1 -1
  78. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.js +3 -3
  79. package/lib/components/VConfirmEdit/__test__/VConfirmEdit.spec.browser.js.map +1 -1
  80. package/lib/components/VCounter/VCounter.js +5 -5
  81. package/lib/components/VCounter/VCounter.js.map +1 -1
  82. package/lib/components/VDataIterator/VDataIterator.js +5 -5
  83. package/lib/components/VDataIterator/VDataIterator.js.map +1 -1
  84. package/lib/components/VDataTable/VDataTable.js +4 -4
  85. package/lib/components/VDataTable/VDataTable.js.map +1 -1
  86. package/lib/components/VDataTable/VDataTableColumn.js +5 -5
  87. package/lib/components/VDataTable/VDataTableColumn.js.map +1 -1
  88. package/lib/components/VDataTable/VDataTableFooter.js +6 -6
  89. package/lib/components/VDataTable/VDataTableFooter.js.map +1 -1
  90. package/lib/components/VDataTable/VDataTableGroupHeaderRow.js +7 -7
  91. package/lib/components/VDataTable/VDataTableGroupHeaderRow.js.map +1 -1
  92. package/lib/components/VDataTable/VDataTableHeaders.js +11 -11
  93. package/lib/components/VDataTable/VDataTableHeaders.js.map +1 -1
  94. package/lib/components/VDataTable/VDataTableRow.js +6 -6
  95. package/lib/components/VDataTable/VDataTableRow.js.map +1 -1
  96. package/lib/components/VDataTable/VDataTableRows.js +7 -7
  97. package/lib/components/VDataTable/VDataTableRows.js.map +1 -1
  98. package/lib/components/VDataTable/VDataTableServer.js +4 -4
  99. package/lib/components/VDataTable/VDataTableServer.js.map +1 -1
  100. package/lib/components/VDataTable/VDataTableVirtual.js +14 -14
  101. package/lib/components/VDataTable/VDataTableVirtual.js.map +1 -1
  102. package/lib/components/VDatePicker/VDatePicker.js +3 -3
  103. package/lib/components/VDatePicker/VDatePicker.js.map +1 -1
  104. package/lib/components/VDatePicker/VDatePickerControls.js +5 -5
  105. package/lib/components/VDatePicker/VDatePickerControls.js.map +1 -1
  106. package/lib/components/VDatePicker/VDatePickerHeader.js +8 -8
  107. package/lib/components/VDatePicker/VDatePickerHeader.js.map +1 -1
  108. package/lib/components/VDatePicker/VDatePickerMonth.js +10 -10
  109. package/lib/components/VDatePicker/VDatePickerMonth.js.map +1 -1
  110. package/lib/components/VDatePicker/VDatePickerMonths.js +5 -5
  111. package/lib/components/VDatePicker/VDatePickerMonths.js.map +1 -1
  112. package/lib/components/VDatePicker/VDatePickerYears.js +5 -5
  113. package/lib/components/VDatePicker/VDatePickerYears.js.map +1 -1
  114. package/lib/components/VDialog/__test__/VDialog.spec.browser.js +5 -5
  115. package/lib/components/VDialog/__test__/VDialog.spec.browser.js.map +1 -1
  116. package/lib/components/VDivider/VDivider.js +10 -10
  117. package/lib/components/VDivider/VDivider.js.map +1 -1
  118. package/lib/components/VEmptyState/VEmptyState.js +14 -14
  119. package/lib/components/VEmptyState/VEmptyState.js.map +1 -1
  120. package/lib/components/VExpansionPanel/VExpansionPanel.js +6 -6
  121. package/lib/components/VExpansionPanel/VExpansionPanel.js.map +1 -1
  122. package/lib/components/VExpansionPanel/VExpansionPanelText.js +5 -5
  123. package/lib/components/VExpansionPanel/VExpansionPanelText.js.map +1 -1
  124. package/lib/components/VExpansionPanel/VExpansionPanelTitle.js +10 -10
  125. package/lib/components/VExpansionPanel/VExpansionPanelTitle.js.map +1 -1
  126. package/lib/components/VExpansionPanel/VExpansionPanels.js +4 -4
  127. package/lib/components/VExpansionPanel/VExpansionPanels.js.map +1 -1
  128. package/lib/components/VFab/VFab.js +7 -7
  129. package/lib/components/VFab/VFab.js.map +1 -1
  130. package/lib/components/VField/VField.js +16 -16
  131. package/lib/components/VField/VField.js.map +1 -1
  132. package/lib/components/VField/VFieldLabel.js +4 -4
  133. package/lib/components/VField/VFieldLabel.js.map +1 -1
  134. package/lib/components/VFileInput/VFileInput.js +5 -5
  135. package/lib/components/VFileInput/VFileInput.js.map +1 -1
  136. package/lib/components/VFooter/VFooter.js +4 -4
  137. package/lib/components/VFooter/VFooter.js.map +1 -1
  138. package/lib/components/VForm/VForm.js +4 -4
  139. package/lib/components/VForm/VForm.js.map +1 -1
  140. package/lib/components/VGrid/VContainer.js +4 -4
  141. package/lib/components/VGrid/VContainer.js.map +1 -1
  142. package/lib/components/VIcon/VIcon.js +5 -5
  143. package/lib/components/VIcon/VIcon.js.map +1 -1
  144. package/lib/components/VImg/VImg.js +19 -19
  145. package/lib/components/VImg/VImg.js.map +1 -1
  146. package/lib/components/VInfiniteScroll/VInfiniteScroll.js +10 -10
  147. package/lib/components/VInfiniteScroll/VInfiniteScroll.js.map +1 -1
  148. package/lib/components/VInput/VInput.js +9 -9
  149. package/lib/components/VInput/VInput.js.map +1 -1
  150. package/lib/components/VItemGroup/VItemGroup.js +3 -3
  151. package/lib/components/VItemGroup/VItemGroup.js.map +1 -1
  152. package/lib/components/VLabel/VLabel.js +5 -5
  153. package/lib/components/VLabel/VLabel.js.map +1 -1
  154. package/lib/components/VLayout/VLayout.js +4 -4
  155. package/lib/components/VLayout/VLayout.js.map +1 -1
  156. package/lib/components/VLayout/VLayoutItem.js +4 -4
  157. package/lib/components/VLayout/VLayoutItem.js.map +1 -1
  158. package/lib/components/VLazy/VLazy.js +6 -6
  159. package/lib/components/VLazy/VLazy.js.map +1 -1
  160. package/lib/components/VList/VList.js +4 -4
  161. package/lib/components/VList/VList.js.map +1 -1
  162. package/lib/components/VList/VListGroup.js +5 -5
  163. package/lib/components/VList/VListGroup.js.map +1 -1
  164. package/lib/components/VList/VListItem.js +11 -11
  165. package/lib/components/VList/VListItem.js.map +1 -1
  166. package/lib/components/VList/VListItemAction.js +4 -4
  167. package/lib/components/VList/VListItemAction.js.map +1 -1
  168. package/lib/components/VList/VListItemMedia.js +4 -4
  169. package/lib/components/VList/VListItemMedia.js.map +1 -1
  170. package/lib/components/VList/VListItemSubtitle.js +4 -4
  171. package/lib/components/VList/VListItemSubtitle.js.map +1 -1
  172. package/lib/components/VList/VListSubheader.js +6 -6
  173. package/lib/components/VList/VListSubheader.js.map +1 -1
  174. package/lib/components/VLocaleProvider/VLocaleProvider.js +4 -4
  175. package/lib/components/VLocaleProvider/VLocaleProvider.js.map +1 -1
  176. package/lib/components/VMain/VMain.js +5 -5
  177. package/lib/components/VMain/VMain.js.map +1 -1
  178. package/lib/components/VMessages/VMessages.js +4 -4
  179. package/lib/components/VMessages/VMessages.js.map +1 -1
  180. package/lib/components/VNavigationDrawer/VNavigationDrawer.js +7 -7
  181. package/lib/components/VNavigationDrawer/VNavigationDrawer.js.map +1 -1
  182. package/lib/components/VNumberInput/VNumberInput.js +8 -8
  183. package/lib/components/VNumberInput/VNumberInput.js.map +1 -1
  184. package/lib/components/VOtpInput/VOtpInput.js +7 -7
  185. package/lib/components/VOtpInput/VOtpInput.js.map +1 -1
  186. package/lib/components/VOverlay/VOverlay.js +8 -8
  187. package/lib/components/VOverlay/VOverlay.js.map +1 -1
  188. package/lib/components/VPagination/VPagination.js +11 -11
  189. package/lib/components/VPagination/VPagination.js.map +1 -1
  190. package/lib/components/VParallax/VParallax.js +4 -4
  191. package/lib/components/VParallax/VParallax.js.map +1 -1
  192. package/lib/components/VProgressCircular/VProgressCircular.js +12 -12
  193. package/lib/components/VProgressCircular/VProgressCircular.js.map +1 -1
  194. package/lib/components/VProgressLinear/VProgressLinear.js +26 -26
  195. package/lib/components/VProgressLinear/VProgressLinear.js.map +1 -1
  196. package/lib/components/VRadioGroup/VRadioGroup.js +2 -2
  197. package/lib/components/VRadioGroup/VRadioGroup.js.map +1 -1
  198. package/lib/components/VRangeSlider/VRangeSlider.js +5 -5
  199. package/lib/components/VRangeSlider/VRangeSlider.js.map +1 -1
  200. package/lib/components/VRating/VRating.js +14 -14
  201. package/lib/components/VRating/VRating.js.map +1 -1
  202. package/lib/components/VResponsive/VResponsive.js +9 -9
  203. package/lib/components/VResponsive/VResponsive.js.map +1 -1
  204. package/lib/components/VSelect/VSelect.js +7 -7
  205. package/lib/components/VSelect/VSelect.js.map +1 -1
  206. package/lib/components/VSelectionControl/VSelectionControl.js +11 -11
  207. package/lib/components/VSelectionControl/VSelectionControl.js.map +1 -1
  208. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.js +5 -5
  209. package/lib/components/VSelectionControlGroup/VSelectionControlGroup.js.map +1 -1
  210. package/lib/components/VSheet/VSheet.js +3 -3
  211. package/lib/components/VSheet/VSheet.js.map +1 -1
  212. package/lib/components/VSkeletonLoader/VSkeletonLoader.js +4 -4
  213. package/lib/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
  214. package/lib/components/VSlideGroup/VSlideGroup.js +12 -12
  215. package/lib/components/VSlideGroup/VSlideGroup.js.map +1 -1
  216. package/lib/components/VSlider/VSlider.js +4 -4
  217. package/lib/components/VSlider/VSlider.js.map +1 -1
  218. package/lib/components/VSlider/VSliderThumb.js +19 -19
  219. package/lib/components/VSlider/VSliderThumb.js.map +1 -1
  220. package/lib/components/VSlider/VSliderTrack.js +23 -23
  221. package/lib/components/VSlider/VSliderTrack.js.map +1 -1
  222. package/lib/components/VSnackbar/VSnackbar.js +4 -4
  223. package/lib/components/VSnackbar/VSnackbar.js.map +1 -1
  224. package/lib/components/VSnackbarQueue/VSnackbarQueue.js +3 -3
  225. package/lib/components/VSnackbarQueue/VSnackbarQueue.js.map +1 -1
  226. package/lib/components/VSparkline/VBarline.js +12 -12
  227. package/lib/components/VSparkline/VBarline.js.map +1 -1
  228. package/lib/components/VSparkline/VTrendline.js +8 -8
  229. package/lib/components/VSparkline/VTrendline.js.map +1 -1
  230. package/lib/components/VStepper/VStepper.js +2 -2
  231. package/lib/components/VStepper/VStepper.js.map +1 -1
  232. package/lib/components/VStepper/VStepperActions.js +2 -2
  233. package/lib/components/VStepper/VStepperActions.js.map +1 -1
  234. package/lib/components/VStepper/VStepperItem.js +10 -10
  235. package/lib/components/VStepper/VStepperItem.js.map +1 -1
  236. package/lib/components/VSwitch/VSwitch.js +10 -10
  237. package/lib/components/VSwitch/VSwitch.js.map +1 -1
  238. package/lib/components/VSystemBar/VSystemBar.js +4 -4
  239. package/lib/components/VSystemBar/VSystemBar.js.map +1 -1
  240. package/lib/components/VTable/VTable.js +8 -8
  241. package/lib/components/VTable/VTable.js.map +1 -1
  242. package/lib/components/VTabs/VTab.js +4 -4
  243. package/lib/components/VTabs/VTab.js.map +1 -1
  244. package/lib/components/VTabs/VTabs.js +2 -2
  245. package/lib/components/VTabs/VTabs.js.map +1 -1
  246. package/lib/components/VTextField/VTextField.js +12 -12
  247. package/lib/components/VTextField/VTextField.js.map +1 -1
  248. package/lib/components/VTextarea/VTextarea.js +10 -10
  249. package/lib/components/VTextarea/VTextarea.js.map +1 -1
  250. package/lib/components/VThemeProvider/VThemeProvider.js +3 -3
  251. package/lib/components/VThemeProvider/VThemeProvider.js.map +1 -1
  252. package/lib/components/VTimeline/VTimeline.js +5 -5
  253. package/lib/components/VTimeline/VTimeline.js.map +1 -1
  254. package/lib/components/VTimeline/VTimelineDivider.js +17 -17
  255. package/lib/components/VTimeline/VTimelineDivider.js.map +1 -1
  256. package/lib/components/VTimeline/VTimelineItem.js +9 -9
  257. package/lib/components/VTimeline/VTimelineItem.js.map +1 -1
  258. package/lib/components/VToolbar/VToolbar.js +13 -13
  259. package/lib/components/VToolbar/VToolbar.js.map +1 -1
  260. package/lib/components/VToolbar/VToolbarItems.js +4 -4
  261. package/lib/components/VToolbar/VToolbarItems.js.map +1 -1
  262. package/lib/components/VToolbar/VToolbarTitle.js +4 -4
  263. package/lib/components/VToolbar/VToolbarTitle.js.map +1 -1
  264. package/lib/components/VVirtualScroll/VVirtualScroll.js +13 -13
  265. package/lib/components/VVirtualScroll/VVirtualScroll.js.map +1 -1
  266. package/lib/components/VVirtualScroll/VVirtualScrollItem.js +3 -3
  267. package/lib/components/VVirtualScroll/VVirtualScrollItem.js.map +1 -1
  268. package/lib/components/VWindow/VWindow.js +13 -13
  269. package/lib/components/VWindow/VWindow.js.map +1 -1
  270. package/lib/components/VWindow/VWindowItem.js +6 -6
  271. package/lib/components/VWindow/VWindowItem.js.map +1 -1
  272. package/lib/composables/filter.js +8 -8
  273. package/lib/composables/filter.js.map +1 -1
  274. package/lib/composables/icons.js +6 -6
  275. package/lib/composables/icons.js.map +1 -1
  276. package/lib/composables/loader.js +3 -3
  277. package/lib/composables/loader.js.map +1 -1
  278. package/lib/composables/variant.js +5 -5
  279. package/lib/composables/variant.js.map +1 -1
  280. package/lib/entry-bundler.js +1 -1
  281. package/lib/framework.d.ts +58 -58
  282. package/lib/framework.js +1 -1
  283. package/lib/labs/VCalendar/VCalendar.js +15 -15
  284. package/lib/labs/VCalendar/VCalendar.js.map +1 -1
  285. package/lib/labs/VCalendar/VCalendarDay.js +4 -4
  286. package/lib/labs/VCalendar/VCalendarDay.js.map +1 -1
  287. package/lib/labs/VCalendar/VCalendarHeader.js +4 -4
  288. package/lib/labs/VCalendar/VCalendarHeader.js.map +1 -1
  289. package/lib/labs/VCalendar/VCalendarInterval.js +10 -10
  290. package/lib/labs/VCalendar/VCalendarInterval.js.map +1 -1
  291. package/lib/labs/VCalendar/VCalendarIntervalEvent.js +2 -2
  292. package/lib/labs/VCalendar/VCalendarIntervalEvent.js.map +1 -1
  293. package/lib/labs/VCalendar/VCalendarMonthDay.js +6 -6
  294. package/lib/labs/VCalendar/VCalendarMonthDay.js.map +1 -1
  295. package/lib/labs/VColorInput/VColorInput.js +3 -3
  296. package/lib/labs/VColorInput/VColorInput.js.map +1 -1
  297. package/lib/labs/VDateInput/VDateInput.js +2 -2
  298. package/lib/labs/VDateInput/VDateInput.js.map +1 -1
  299. package/lib/labs/VFileUpload/VFileUpload.js +9 -9
  300. package/lib/labs/VFileUpload/VFileUpload.js.map +1 -1
  301. package/lib/labs/VFileUpload/VFileUploadItem.js +3 -3
  302. package/lib/labs/VFileUpload/VFileUploadItem.js.map +1 -1
  303. package/lib/labs/VIconBtn/VIconBtn.js +7 -7
  304. package/lib/labs/VIconBtn/VIconBtn.js.map +1 -1
  305. package/lib/labs/VPicker/VPicker.js +7 -7
  306. package/lib/labs/VPicker/VPicker.js.map +1 -1
  307. package/lib/labs/VPullToRefresh/VPullToRefresh.js +13 -13
  308. package/lib/labs/VPullToRefresh/VPullToRefresh.js.map +1 -1
  309. package/lib/labs/VStepperVertical/VStepperVertical.js +2 -2
  310. package/lib/labs/VStepperVertical/VStepperVertical.js.map +1 -1
  311. package/lib/labs/VStepperVertical/VStepperVerticalItem.js +5 -5
  312. package/lib/labs/VStepperVertical/VStepperVerticalItem.js.map +1 -1
  313. package/lib/labs/VTimePicker/VTimePicker.js +2 -2
  314. package/lib/labs/VTimePicker/VTimePicker.js.map +1 -1
  315. package/lib/labs/VTimePicker/VTimePickerClock.js +15 -15
  316. package/lib/labs/VTimePicker/VTimePickerClock.js.map +1 -1
  317. package/lib/labs/VTimePicker/VTimePickerControls.js +24 -24
  318. package/lib/labs/VTimePicker/VTimePickerControls.js.map +1 -1
  319. package/lib/labs/VTreeview/VTreeviewChildren.js +2 -2
  320. package/lib/labs/VTreeview/VTreeviewChildren.js.map +1 -1
  321. package/lib/labs/VTreeview/VTreeviewGroup.js +2 -2
  322. package/lib/labs/VTreeview/VTreeviewGroup.js.map +1 -1
  323. package/lib/labs/VTreeview/VTreeviewItem.js +3 -3
  324. package/lib/labs/VTreeview/VTreeviewItem.js.map +1 -1
  325. package/package.json +2 -2
@@ -2539,50 +2539,45 @@ declare module 'vue' {
2539
2539
  $children?: VNodeChild
2540
2540
  }
2541
2541
  export interface GlobalComponents {
2542
+ VApp: typeof import('vuetify/components')['VApp']
2542
2543
  VAlert: typeof import('vuetify/components')['VAlert']
2543
2544
  VAlertTitle: typeof import('vuetify/components')['VAlertTitle']
2544
- VApp: typeof import('vuetify/components')['VApp']
2545
- VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
2546
2545
  VAvatar: typeof import('vuetify/components')['VAvatar']
2547
- VBadge: typeof import('vuetify/components')['VBadge']
2548
- VAppBar: typeof import('vuetify/components')['VAppBar']
2549
- VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
2550
- VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
2551
- VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
2552
- VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
2553
- VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
2554
- VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
2555
- VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
2556
- VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
2546
+ VAutocomplete: typeof import('vuetify/components')['VAutocomplete']
2557
2547
  VBanner: typeof import('vuetify/components')['VBanner']
2558
2548
  VBannerActions: typeof import('vuetify/components')['VBannerActions']
2559
2549
  VBannerText: typeof import('vuetify/components')['VBannerText']
2560
- VBtn: typeof import('vuetify/components')['VBtn']
2561
- VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
2562
- VChipGroup: typeof import('vuetify/components')['VChipGroup']
2550
+ VBadge: typeof import('vuetify/components')['VBadge']
2551
+ VBottomNavigation: typeof import('vuetify/components')['VBottomNavigation']
2552
+ VBottomSheet: typeof import('vuetify/components')['VBottomSheet']
2563
2553
  VCarousel: typeof import('vuetify/components')['VCarousel']
2564
2554
  VCarouselItem: typeof import('vuetify/components')['VCarouselItem']
2565
- VChip: typeof import('vuetify/components')['VChip']
2555
+ VBtn: typeof import('vuetify/components')['VBtn']
2566
2556
  VCard: typeof import('vuetify/components')['VCard']
2567
2557
  VCardActions: typeof import('vuetify/components')['VCardActions']
2568
2558
  VCardItem: typeof import('vuetify/components')['VCardItem']
2569
2559
  VCardSubtitle: typeof import('vuetify/components')['VCardSubtitle']
2570
2560
  VCardText: typeof import('vuetify/components')['VCardText']
2571
2561
  VCardTitle: typeof import('vuetify/components')['VCardTitle']
2562
+ VBtnGroup: typeof import('vuetify/components')['VBtnGroup']
2563
+ VBreadcrumbs: typeof import('vuetify/components')['VBreadcrumbs']
2564
+ VBreadcrumbsItem: typeof import('vuetify/components')['VBreadcrumbsItem']
2565
+ VBreadcrumbsDivider: typeof import('vuetify/components')['VBreadcrumbsDivider']
2572
2566
  VCheckbox: typeof import('vuetify/components')['VCheckbox']
2573
2567
  VCheckboxBtn: typeof import('vuetify/components')['VCheckboxBtn']
2574
2568
  VColorPicker: typeof import('vuetify/components')['VColorPicker']
2575
- VCode: typeof import('vuetify/components')['VCode']
2569
+ VChip: typeof import('vuetify/components')['VChip']
2570
+ VChipGroup: typeof import('vuetify/components')['VChipGroup']
2576
2571
  VCombobox: typeof import('vuetify/components')['VCombobox']
2572
+ VBtnToggle: typeof import('vuetify/components')['VBtnToggle']
2573
+ VCode: typeof import('vuetify/components')['VCode']
2574
+ VCounter: typeof import('vuetify/components')['VCounter']
2577
2575
  VDatePicker: typeof import('vuetify/components')['VDatePicker']
2578
2576
  VDatePickerControls: typeof import('vuetify/components')['VDatePickerControls']
2579
2577
  VDatePickerHeader: typeof import('vuetify/components')['VDatePickerHeader']
2580
2578
  VDatePickerMonth: typeof import('vuetify/components')['VDatePickerMonth']
2581
2579
  VDatePickerMonths: typeof import('vuetify/components')['VDatePickerMonths']
2582
2580
  VDatePickerYears: typeof import('vuetify/components')['VDatePickerYears']
2583
- VDialog: typeof import('vuetify/components')['VDialog']
2584
- VDivider: typeof import('vuetify/components')['VDivider']
2585
- VCounter: typeof import('vuetify/components')['VCounter']
2586
2581
  VDataTable: typeof import('vuetify/components')['VDataTable']
2587
2582
  VDataTableHeaders: typeof import('vuetify/components')['VDataTableHeaders']
2588
2583
  VDataTableFooter: typeof import('vuetify/components')['VDataTableFooter']
@@ -2590,27 +2585,28 @@ declare module 'vue' {
2590
2585
  VDataTableRow: typeof import('vuetify/components')['VDataTableRow']
2591
2586
  VDataTableVirtual: typeof import('vuetify/components')['VDataTableVirtual']
2592
2587
  VDataTableServer: typeof import('vuetify/components')['VDataTableServer']
2588
+ VDivider: typeof import('vuetify/components')['VDivider']
2589
+ VDialog: typeof import('vuetify/components')['VDialog']
2593
2590
  VEmptyState: typeof import('vuetify/components')['VEmptyState']
2591
+ VFab: typeof import('vuetify/components')['VFab']
2592
+ VField: typeof import('vuetify/components')['VField']
2593
+ VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
2594
2594
  VExpansionPanels: typeof import('vuetify/components')['VExpansionPanels']
2595
2595
  VExpansionPanel: typeof import('vuetify/components')['VExpansionPanel']
2596
2596
  VExpansionPanelText: typeof import('vuetify/components')['VExpansionPanelText']
2597
2597
  VExpansionPanelTitle: typeof import('vuetify/components')['VExpansionPanelTitle']
2598
- VFab: typeof import('vuetify/components')['VFab']
2599
- VField: typeof import('vuetify/components')['VField']
2600
- VFieldLabel: typeof import('vuetify/components')['VFieldLabel']
2601
- VFooter: typeof import('vuetify/components')['VFooter']
2598
+ VFileInput: typeof import('vuetify/components')['VFileInput']
2602
2599
  VIcon: typeof import('vuetify/components')['VIcon']
2603
2600
  VComponentIcon: typeof import('vuetify/components')['VComponentIcon']
2604
2601
  VSvgIcon: typeof import('vuetify/components')['VSvgIcon']
2605
2602
  VLigatureIcon: typeof import('vuetify/components')['VLigatureIcon']
2606
2603
  VClassIcon: typeof import('vuetify/components')['VClassIcon']
2604
+ VImg: typeof import('vuetify/components')['VImg']
2605
+ VKbd: typeof import('vuetify/components')['VKbd']
2607
2606
  VInfiniteScroll: typeof import('vuetify/components')['VInfiniteScroll']
2608
- VFileInput: typeof import('vuetify/components')['VFileInput']
2609
2607
  VInput: typeof import('vuetify/components')['VInput']
2610
2608
  VItemGroup: typeof import('vuetify/components')['VItemGroup']
2611
2609
  VItem: typeof import('vuetify/components')['VItem']
2612
- VLabel: typeof import('vuetify/components')['VLabel']
2613
- VKbd: typeof import('vuetify/components')['VKbd']
2614
2610
  VList: typeof import('vuetify/components')['VList']
2615
2611
  VListGroup: typeof import('vuetify/components')['VListGroup']
2616
2612
  VListImg: typeof import('vuetify/components')['VListImg']
@@ -2620,74 +2616,72 @@ declare module 'vue' {
2620
2616
  VListItemSubtitle: typeof import('vuetify/components')['VListItemSubtitle']
2621
2617
  VListItemTitle: typeof import('vuetify/components')['VListItemTitle']
2622
2618
  VListSubheader: typeof import('vuetify/components')['VListSubheader']
2619
+ VLabel: typeof import('vuetify/components')['VLabel']
2623
2620
  VMenu: typeof import('vuetify/components')['VMenu']
2624
- VImg: typeof import('vuetify/components')['VImg']
2625
2621
  VMessages: typeof import('vuetify/components')['VMessages']
2626
2622
  VNavigationDrawer: typeof import('vuetify/components')['VNavigationDrawer']
2627
2623
  VMain: typeof import('vuetify/components')['VMain']
2624
+ VNumberInput: typeof import('vuetify/components')['VNumberInput']
2628
2625
  VOtpInput: typeof import('vuetify/components')['VOtpInput']
2626
+ VPagination: typeof import('vuetify/components')['VPagination']
2629
2627
  VOverlay: typeof import('vuetify/components')['VOverlay']
2630
2628
  VProgressLinear: typeof import('vuetify/components')['VProgressLinear']
2631
- VNumberInput: typeof import('vuetify/components')['VNumberInput']
2632
- VPagination: typeof import('vuetify/components')['VPagination']
2633
2629
  VProgressCircular: typeof import('vuetify/components')['VProgressCircular']
2634
- VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
2635
2630
  VRating: typeof import('vuetify/components')['VRating']
2636
- VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
2631
+ VSelect: typeof import('vuetify/components')['VSelect']
2632
+ VRadioGroup: typeof import('vuetify/components')['VRadioGroup']
2637
2633
  VSelectionControlGroup: typeof import('vuetify/components')['VSelectionControlGroup']
2634
+ VFooter: typeof import('vuetify/components')['VFooter']
2635
+ VSelectionControl: typeof import('vuetify/components')['VSelectionControl']
2636
+ VSnackbar: typeof import('vuetify/components')['VSnackbar']
2638
2637
  VSkeletonLoader: typeof import('vuetify/components')['VSkeletonLoader']
2639
2638
  VSlideGroup: typeof import('vuetify/components')['VSlideGroup']
2640
2639
  VSlideGroupItem: typeof import('vuetify/components')['VSlideGroupItem']
2641
- VSheet: typeof import('vuetify/components')['VSheet']
2642
2640
  VSlider: typeof import('vuetify/components')['VSlider']
2643
- VSelect: typeof import('vuetify/components')['VSelect']
2644
- VSnackbar: typeof import('vuetify/components')['VSnackbar']
2645
- VSystemBar: typeof import('vuetify/components')['VSystemBar']
2641
+ VSwitch: typeof import('vuetify/components')['VSwitch']
2646
2642
  VStepper: typeof import('vuetify/components')['VStepper']
2647
2643
  VStepperActions: typeof import('vuetify/components')['VStepperActions']
2648
2644
  VStepperHeader: typeof import('vuetify/components')['VStepperHeader']
2649
2645
  VStepperItem: typeof import('vuetify/components')['VStepperItem']
2650
2646
  VStepperWindow: typeof import('vuetify/components')['VStepperWindow']
2651
2647
  VStepperWindowItem: typeof import('vuetify/components')['VStepperWindowItem']
2652
- VSwitch: typeof import('vuetify/components')['VSwitch']
2653
- VTab: typeof import('vuetify/components')['VTab']
2654
- VTabs: typeof import('vuetify/components')['VTabs']
2655
- VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
2656
- VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
2648
+ VSystemBar: typeof import('vuetify/components')['VSystemBar']
2657
2649
  VTextField: typeof import('vuetify/components')['VTextField']
2658
- VTextarea: typeof import('vuetify/components')['VTextarea']
2650
+ VTable: typeof import('vuetify/components')['VTable']
2659
2651
  VTimeline: typeof import('vuetify/components')['VTimeline']
2660
2652
  VTimelineItem: typeof import('vuetify/components')['VTimelineItem']
2661
2653
  VToolbar: typeof import('vuetify/components')['VToolbar']
2662
2654
  VToolbarTitle: typeof import('vuetify/components')['VToolbarTitle']
2663
2655
  VToolbarItems: typeof import('vuetify/components')['VToolbarItems']
2656
+ VAppBar: typeof import('vuetify/components')['VAppBar']
2657
+ VAppBarNavIcon: typeof import('vuetify/components')['VAppBarNavIcon']
2658
+ VAppBarTitle: typeof import('vuetify/components')['VAppBarTitle']
2659
+ VSheet: typeof import('vuetify/components')['VSheet']
2664
2660
  VWindow: typeof import('vuetify/components')['VWindow']
2665
2661
  VWindowItem: typeof import('vuetify/components')['VWindowItem']
2666
- VDataIterator: typeof import('vuetify/components')['VDataIterator']
2667
2662
  VConfirmEdit: typeof import('vuetify/components')['VConfirmEdit']
2663
+ VDataIterator: typeof import('vuetify/components')['VDataIterator']
2668
2664
  VDefaultsProvider: typeof import('vuetify/components')['VDefaultsProvider']
2665
+ VForm: typeof import('vuetify/components')['VForm']
2666
+ VHover: typeof import('vuetify/components')['VHover']
2669
2667
  VContainer: typeof import('vuetify/components')['VContainer']
2670
2668
  VCol: typeof import('vuetify/components')['VCol']
2671
2669
  VRow: typeof import('vuetify/components')['VRow']
2672
2670
  VSpacer: typeof import('vuetify/components')['VSpacer']
2673
- VForm: typeof import('vuetify/components')['VForm']
2674
- VHover: typeof import('vuetify/components')['VHover']
2675
2671
  VLayout: typeof import('vuetify/components')['VLayout']
2676
2672
  VLayoutItem: typeof import('vuetify/components')['VLayoutItem']
2677
2673
  VLazy: typeof import('vuetify/components')['VLazy']
2678
- VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
2679
2674
  VNoSsr: typeof import('vuetify/components')['VNoSsr']
2675
+ VLocaleProvider: typeof import('vuetify/components')['VLocaleProvider']
2680
2676
  VParallax: typeof import('vuetify/components')['VParallax']
2681
2677
  VRadio: typeof import('vuetify/components')['VRadio']
2682
- VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
2683
- VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
2684
2678
  VResponsive: typeof import('vuetify/components')['VResponsive']
2679
+ VRangeSlider: typeof import('vuetify/components')['VRangeSlider']
2685
2680
  VSnackbarQueue: typeof import('vuetify/components')['VSnackbarQueue']
2686
2681
  VSparkline: typeof import('vuetify/components')['VSparkline']
2687
2682
  VThemeProvider: typeof import('vuetify/components')['VThemeProvider']
2683
+ VSpeedDial: typeof import('vuetify/components')['VSpeedDial']
2688
2684
  VValidation: typeof import('vuetify/components')['VValidation']
2689
- VTooltip: typeof import('vuetify/components')['VTooltip']
2690
- VTable: typeof import('vuetify/components')['VTable']
2691
2685
  VFabTransition: typeof import('vuetify/components')['VFabTransition']
2692
2686
  VDialogBottomTransition: typeof import('vuetify/components')['VDialogBottomTransition']
2693
2687
  VDialogTopTransition: typeof import('vuetify/components')['VDialogTopTransition']
@@ -2704,29 +2698,35 @@ declare module 'vue' {
2704
2698
  VExpandTransition: typeof import('vuetify/components')['VExpandTransition']
2705
2699
  VExpandXTransition: typeof import('vuetify/components')['VExpandXTransition']
2706
2700
  VDialogTransition: typeof import('vuetify/components')['VDialogTransition']
2701
+ VTooltip: typeof import('vuetify/components')['VTooltip']
2707
2702
  VVirtualScroll: typeof import('vuetify/components')['VVirtualScroll']
2703
+ VTextarea: typeof import('vuetify/components')['VTextarea']
2704
+ VTab: typeof import('vuetify/components')['VTab']
2705
+ VTabs: typeof import('vuetify/components')['VTabs']
2706
+ VTabsWindow: typeof import('vuetify/components')['VTabsWindow']
2707
+ VTabsWindowItem: typeof import('vuetify/components')['VTabsWindowItem']
2708
2708
  VIconBtn: typeof import('vuetify/labs/components')['VIconBtn']
2709
- VColorInput: typeof import('vuetify/labs/components')['VColorInput']
2709
+ VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
2710
+ VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
2710
2711
  VCalendar: typeof import('vuetify/labs/components')['VCalendar']
2711
2712
  VCalendarDay: typeof import('vuetify/labs/components')['VCalendarDay']
2712
2713
  VCalendarHeader: typeof import('vuetify/labs/components')['VCalendarHeader']
2713
2714
  VCalendarInterval: typeof import('vuetify/labs/components')['VCalendarInterval']
2714
2715
  VCalendarIntervalEvent: typeof import('vuetify/labs/components')['VCalendarIntervalEvent']
2715
2716
  VCalendarMonthDay: typeof import('vuetify/labs/components')['VCalendarMonthDay']
2716
- VFileUpload: typeof import('vuetify/labs/components')['VFileUpload']
2717
- VFileUploadItem: typeof import('vuetify/labs/components')['VFileUploadItem']
2718
- VTreeview: typeof import('vuetify/labs/components')['VTreeview']
2719
- VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
2720
- VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
2717
+ VColorInput: typeof import('vuetify/labs/components')['VColorInput']
2718
+ VPicker: typeof import('vuetify/labs/components')['VPicker']
2719
+ VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
2721
2720
  VTimePicker: typeof import('vuetify/labs/components')['VTimePicker']
2722
2721
  VTimePickerClock: typeof import('vuetify/labs/components')['VTimePickerClock']
2723
2722
  VTimePickerControls: typeof import('vuetify/labs/components')['VTimePickerControls']
2724
2723
  VStepperVertical: typeof import('vuetify/labs/components')['VStepperVertical']
2725
2724
  VStepperVerticalItem: typeof import('vuetify/labs/components')['VStepperVerticalItem']
2726
2725
  VStepperVerticalActions: typeof import('vuetify/labs/components')['VStepperVerticalActions']
2726
+ VTreeview: typeof import('vuetify/labs/components')['VTreeview']
2727
+ VTreeviewItem: typeof import('vuetify/labs/components')['VTreeviewItem']
2728
+ VTreeviewGroup: typeof import('vuetify/labs/components')['VTreeviewGroup']
2727
2729
  VDateInput: typeof import('vuetify/labs/components')['VDateInput']
2728
2730
  VPullToRefresh: typeof import('vuetify/labs/components')['VPullToRefresh']
2729
- VPicker: typeof import('vuetify/labs/components')['VPicker']
2730
- VPickerTitle: typeof import('vuetify/labs/components')['VPickerTitle']
2731
2731
  }
2732
2732
  }
package/lib/framework.js CHANGED
@@ -109,7 +109,7 @@ export function createVuetify() {
109
109
  };
110
110
  });
111
111
  }
112
- export const version = "3.8.6-master.2025-05-24";
112
+ export const version = "3.8.6-master.2025-05-26";
113
113
  createVuetify.version = version;
114
114
 
115
115
  // Vue's inject() can only be used in setup
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
1
+ import { mergeProps as _mergeProps, createVNode as _createVNode, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass } from "vue";
2
2
  // Styles
3
3
  import "./VCalendar.css";
4
4
 
@@ -80,13 +80,13 @@ export const VCalendar = genericComponent()({
80
80
  useRender(() => {
81
81
  const calendarDayProps = VCalendarDay.filterProps(props);
82
82
  const calendarHeaderProps = VCalendarHeader.filterProps(props);
83
- return _createVNode("div", {
84
- "class": ['v-calendar', {
83
+ return _createElementVNode("div", {
84
+ "class": _normalizeClass(['v-calendar', {
85
85
  'v-calendar-monthly': props.viewMode === 'month',
86
86
  'v-calendar-weekly': props.viewMode === 'week',
87
87
  'v-calendar-day': props.viewMode === 'day'
88
- }]
89
- }, [_createVNode("div", null, [!props.hideHeader && (slots.header?.({
88
+ }])
89
+ }, [_createElementVNode("div", null, [!props.hideHeader && (slots.header?.({
90
90
  title: title.value,
91
91
  clickNext: onClickNext,
92
92
  clickPrev: onClickPrev,
@@ -100,20 +100,20 @@ export const VCalendar = genericComponent()({
100
100
  "onClick:toToday": onClickToday
101
101
  }), {
102
102
  title: slots.title
103
- }))]), _createVNode("div", {
104
- "class": ['v-calendar__container', `days__${weekDays.value.length}`]
105
- }, [props.viewMode === 'month' && !props.hideDayHeader && _createVNode("div", {
106
- "class": ['v-calendar-weekly__head', `days__${weekDays.value.length}`, ...(!props.hideWeekNumber ? ['v-calendar-weekly__head-weeknumbers'] : [])],
103
+ }))]), _createElementVNode("div", {
104
+ "class": _normalizeClass(['v-calendar__container', `days__${weekDays.value.length}`])
105
+ }, [props.viewMode === 'month' && !props.hideDayHeader && _createElementVNode("div", {
106
+ "class": _normalizeClass(['v-calendar-weekly__head', `days__${weekDays.value.length}`, ...(!props.hideWeekNumber ? ['v-calendar-weekly__head-weeknumbers'] : [])]),
107
107
  "key": "calendarWeeklyHead"
108
- }, [!props.hideWeekNumber ? _createVNode("div", {
108
+ }, [!props.hideWeekNumber ? _createElementVNode("div", {
109
109
  "key": "weekNumber0",
110
110
  "class": "v-calendar-weekly__head-weeknumber"
111
- }, null) : '', weekDays.value.map(weekday => _createVNode("div", {
112
- "class": `v-calendar-weekly__head-weekday${!props.hideWeekNumber ? '-with-weeknumber' : ''}`
113
- }, [dayNames[weekday]]))]), props.viewMode === 'month' && _createVNode("div", {
111
+ }, null) : '', weekDays.value.map(weekday => _createElementVNode("div", {
112
+ "class": _normalizeClass(`v-calendar-weekly__head-weekday${!props.hideWeekNumber ? '-with-weeknumber' : ''}`)
113
+ }, [dayNames[weekday]]))]), props.viewMode === 'month' && _createElementVNode("div", {
114
114
  "key": "VCalendarMonth",
115
- "class": ['v-calendar-month__days', `days${!props.hideWeekNumber ? '-with-weeknumbers' : ''}__${weekDays.value.length}`, ...(!props.hideWeekNumber ? ['v-calendar-month__weeknumbers'] : [])]
116
- }, [chunkArray(daysInMonth.value, weekDays.value.length).map((week, wi) => [!props.hideWeekNumber ? _createVNode("div", _mergeProps({
115
+ "class": _normalizeClass(['v-calendar-month__days', `days${!props.hideWeekNumber ? '-with-weeknumbers' : ''}__${weekDays.value.length}`, ...(!props.hideWeekNumber ? ['v-calendar-month__weeknumbers'] : [])])
116
+ }, [chunkArray(daysInMonth.value, weekDays.value.length).map((week, wi) => [!props.hideWeekNumber ? _createElementVNode("div", _mergeProps({
117
117
  "class": "v-calendar-month__weeknumber"
118
118
  }, getPrefixedEventHandlers(attrs, ':weekNumber', () => ({
119
119
  weekNumber: weekNumbers.value[wi],
@@ -1 +1 @@
1
- {"version":3,"file":"VCalendar.js","names":["makeVCalendarDayProps","VCalendarDay","makeVCalendarHeaderProps","VCalendarHeader","VCalendarMonthDay","makeCalendarProps","useCalendar","useDate","computed","nextTick","chunkArray","genericComponent","getPrefixedEventHandlers","pick","propsFactory","useRender","makeVCalendarProps","hideHeader","Boolean","hideWeekNumber","VCalendar","name","props","emits","next","prev","today","setup","_ref","attrs","emit","slots","adapter","daysInMonth","daysInWeek","genDays","model","displayValue","weekNumbers","weekDays","dayNames","getWeekdays","onClickNext","viewMode","value","addMonths","addDays","onClickPrev","onClickToday","date","title","format","calendarDayProps","filterProps","calendarHeaderProps","_createVNode","header","clickNext","clickPrev","clickToday","_mergeProps","length","hideDayHeader","map","weekday","week","wi","weekNumber","day","getTime","events","filter","e","isSameDay","start","end","i","dayIndex"],"sources":["../../../src/labs/VCalendar/VCalendar.tsx"],"sourcesContent":["// Styles\nimport './VCalendar.sass'\n\n// Components\nimport { makeVCalendarDayProps, VCalendarDay } from './VCalendarDay'\nimport { makeVCalendarHeaderProps, VCalendarHeader } from './VCalendarHeader'\nimport { VCalendarMonthDay } from './VCalendarMonthDay'\n\n// Composables\nimport { makeCalendarProps, useCalendar } from '@/composables/calendar'\nimport { useDate } from '@/composables/date/date'\n\n// Utilities\nimport { computed, nextTick } from 'vue'\nimport { chunkArray, genericComponent, getPrefixedEventHandlers, pick, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VCalendarDaySlots } from './VCalendarDay'\nimport type { CalendarDay } from '@/composables/calendar'\n\nexport const makeVCalendarProps = propsFactory({\n hideHeader: Boolean,\n hideWeekNumber: Boolean,\n\n ...makeCalendarProps(),\n ...makeVCalendarDayProps(),\n ...makeVCalendarHeaderProps(),\n}, 'VCalendar')\n\nexport type VCalendarSlots = VCalendarDaySlots & {\n 'day-body': { day?: CalendarDay, events?: Array<any> }\n 'day-title': { title?: number | string }\n 'day-event': { day?: CalendarDay, allDay: Boolean, event?: Record<string, unknown> }\n header: { title: string, clickNext: Function, clickPrev: Function, clickToday: Function }\n 'day-interval': { day?: CalendarDay, dayIndex: Number, events?: Array<any> }\n title: { title?: string }\n}\n\nexport const VCalendar = genericComponent<VCalendarSlots>()({\n name: 'VCalendar',\n\n props: makeVCalendarProps(),\n\n emits: {\n next: null,\n prev: null,\n today: null,\n 'update:modelValue': null,\n },\n\n setup (props, { attrs, emit, slots }) {\n const adapter = useDate()\n\n const { daysInMonth, daysInWeek, genDays, model, displayValue, weekNumbers, weekDays } = useCalendar(props as any)\n\n const dayNames = adapter.getWeekdays()\n\n function onClickNext () {\n if (props.viewMode === 'month') {\n model.value = [adapter.addMonths(displayValue.value, 1)]\n } else if (props.viewMode === 'week') {\n model.value = [adapter.addDays(displayValue.value, 7)]\n } else if (props.viewMode === 'day') {\n model.value = [adapter.addDays(displayValue.value, 1)]\n }\n nextTick(() => {\n emit('next', model.value[0])\n })\n }\n\n function onClickPrev () {\n if (props.viewMode === 'month') {\n model.value = [adapter.addMonths(displayValue.value, -1)]\n } else if (props.viewMode === 'week') {\n model.value = [adapter.addDays(displayValue.value, -7)]\n } else if (props.viewMode === 'day') {\n model.value = [adapter.addDays(displayValue.value, -1)]\n }\n nextTick(() => {\n emit('prev', model.value[0])\n })\n }\n\n function onClickToday () {\n const date = adapter.date()\n model.value = [date]\n nextTick(() => {\n emit('today', model.value[0])\n })\n }\n\n const title = computed(() => {\n return adapter.format(displayValue.value, 'monthAndYear')\n })\n\n useRender(() => {\n const calendarDayProps = VCalendarDay.filterProps(props)\n const calendarHeaderProps = VCalendarHeader.filterProps(props)\n\n return (\n <div class={[\n 'v-calendar',\n {\n 'v-calendar-monthly': props.viewMode === 'month',\n 'v-calendar-weekly': props.viewMode === 'week',\n 'v-calendar-day': props.viewMode === 'day',\n },\n ]}\n >\n <div>\n { !props.hideHeader && (\n slots.header?.({\n title: title.value,\n clickNext: onClickNext,\n clickPrev: onClickPrev,\n clickToday: onClickToday,\n }) ?? (\n <VCalendarHeader\n key=\"calendar-header\"\n { ...calendarHeaderProps }\n title={ title.value }\n onClick:next={ onClickNext }\n onClick:prev={ onClickPrev }\n onClick:toToday={ onClickToday }\n >\n {{ title: slots.title }}\n </VCalendarHeader>\n )\n )}\n </div>\n\n <div class={['v-calendar__container', `days__${weekDays.value.length}`]}>\n { props.viewMode === 'month' && !props.hideDayHeader && (\n <div\n class={\n [\n 'v-calendar-weekly__head',\n `days__${weekDays.value.length}`,\n ...(!props.hideWeekNumber ? ['v-calendar-weekly__head-weeknumbers'] : []),\n ]\n }\n key=\"calendarWeeklyHead\"\n >\n { !props.hideWeekNumber ? <div key=\"weekNumber0\" class=\"v-calendar-weekly__head-weeknumber\"></div> : '' }\n {\n weekDays.value.map(weekday => (\n <div class={ `v-calendar-weekly__head-weekday${!props.hideWeekNumber ? '-with-weeknumber' : ''}` }>\n { dayNames[weekday] }\n </div>\n ))\n }\n </div>\n )}\n\n { props.viewMode === 'month' && (\n <div\n key=\"VCalendarMonth\"\n class={\n [\n 'v-calendar-month__days',\n `days${!props.hideWeekNumber ? '-with-weeknumbers' : ''}__${weekDays.value.length}`,\n ...(!props.hideWeekNumber ? ['v-calendar-month__weeknumbers'] : []),\n ]\n }\n >\n { chunkArray(daysInMonth.value, weekDays.value.length)\n .map((week, wi) => (\n [\n !props.hideWeekNumber ? (\n <div\n class=\"v-calendar-month__weeknumber\"\n { ...getPrefixedEventHandlers(attrs, ':weekNumber', () => ({ weekNumber: weekNumbers.value[wi], week })) }\n >{ weekNumbers.value[wi] }</div>\n ) : '',\n week.map(day => (\n <VCalendarMonthDay\n key={ day.date.getTime() }\n { ...calendarDayProps }\n day={ day }\n title={ adapter.format(day.date, 'dayOfMonth') }\n events={ props.events?.filter(e => adapter.isSameDay(day.date, e.start) || adapter.isSameDay(day.date, e.end)) }\n { ...attrs }\n >\n {{\n ...pick(slots, ['day-body', 'day-event', 'day-title']),\n }}\n </VCalendarMonthDay>\n )),\n ]\n ))\n }\n </div>\n )}\n { props.viewMode === 'week' && (\n daysInWeek.value.map((day, i) =>\n slots['day-interval'] ? slots['day-interval']?.({\n ...calendarDayProps,\n day,\n dayIndex: i,\n events: props.events?.filter(e => adapter.isSameDay(e.start, day.date) || adapter.isSameDay(e.end, day.date)),\n }) : (\n <VCalendarDay\n { ...calendarDayProps }\n day={ day }\n dayIndex={ i }\n events={ props.events?.filter(e => adapter.isSameDay(e.start, day.date) || adapter.isSameDay(e.end, day.date)) }\n { ...attrs }\n >\n {{ ...pick(slots, ['interval', 'intervalBody', 'intervalEvent', 'intervalTitle']) }}\n </VCalendarDay>\n )\n ))\n }\n\n { props.viewMode === 'day' && (\n slots['day-interval'] ? slots['day-interval']({\n day: genDays([displayValue.value as Date], adapter.date() as Date)[0],\n dayIndex: 0,\n events: props.events?.filter(e =>\n adapter.isSameDay(e.start, genDays([displayValue.value as Date], adapter.date() as Date)[0].date) ||\n adapter.isSameDay(e.end, genDays([displayValue.value as Date], adapter.date() as Date)[0].date)\n ),\n }) : (\n <VCalendarDay\n { ...calendarDayProps }\n day={ genDays([model.value[0] as Date], adapter.date() as Date)[0] }\n dayIndex={ 0 }\n events={\n props.events?.filter(e =>\n adapter.isSameDay(e.start, genDays([model.value[0] as Date], adapter.date() as Date)[0].date) ||\n adapter.isSameDay(e.end, genDays([model.value[0] as Date], adapter.date() as Date)[0].date)\n )\n }\n { ...attrs }\n ></VCalendarDay>\n )\n )}\n </div>\n </div>\n )\n })\n\n return { daysInMonth, daysInWeek, genDays }\n },\n})\n\nexport type VCalendar = InstanceType<typeof VCalendar>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,qBAAqB,EAAEC,YAAY;AAAA,SACnCC,wBAAwB,EAAEC,eAAe;AAAA,SACzCC,iBAAiB,kCAE1B;AAAA,SACSC,iBAAiB,EAAEC,WAAW;AAAA,SAC9BC,OAAO,0CAEhB;AACA,SAASC,QAAQ,EAAEC,QAAQ,QAAQ,KAAK;AAAA,SAC/BC,UAAU,EAAEC,gBAAgB,EAAEC,wBAAwB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,+BAE9F;AAIA,OAAO,MAAMC,kBAAkB,GAAGF,YAAY,CAAC;EAC7CG,UAAU,EAAEC,OAAO;EACnBC,cAAc,EAAED,OAAO;EAEvB,GAAGb,iBAAiB,CAAC,CAAC;EACtB,GAAGL,qBAAqB,CAAC,CAAC;EAC1B,GAAGE,wBAAwB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AAO,CAAC,CAACC,KAAK,CAACQ,KAAK,CAAC,CAAC,CAAC,CAAS,EAAEZ,OAAO,CAACiB,IAAI,CAAC,CAAS,CAAC,CAAC,CAAC,CAAC,CAACA,IAAI,CAC5F;MAAC,GAEEpB,KAAK,QAEb,CACF;IAIT,CAAC,CAAC;IAEF,OAAO;MAAEI,WAAW;MAAEC,UAAU;MAAEC;IAAQ,CAAC;EAC7C;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VCalendar.js","names":["makeVCalendarDayProps","VCalendarDay","makeVCalendarHeaderProps","VCalendarHeader","VCalendarMonthDay","makeCalendarProps","useCalendar","useDate","computed","nextTick","chunkArray","genericComponent","getPrefixedEventHandlers","pick","propsFactory","useRender","makeVCalendarProps","hideHeader","Boolean","hideWeekNumber","VCalendar","name","props","emits","next","prev","today","setup","_ref","attrs","emit","slots","adapter","daysInMonth","daysInWeek","genDays","model","displayValue","weekNumbers","weekDays","dayNames","getWeekdays","onClickNext","viewMode","value","addMonths","addDays","onClickPrev","onClickToday","date","title","format","calendarDayProps","filterProps","calendarHeaderProps","_createElementVNode","_normalizeClass","header","clickNext","clickPrev","clickToday","_createVNode","_mergeProps","length","hideDayHeader","map","weekday","week","wi","weekNumber","day","getTime","events","filter","e","isSameDay","start","end","i","dayIndex"],"sources":["../../../src/labs/VCalendar/VCalendar.tsx"],"sourcesContent":["// Styles\nimport './VCalendar.sass'\n\n// Components\nimport { makeVCalendarDayProps, VCalendarDay } from './VCalendarDay'\nimport { makeVCalendarHeaderProps, VCalendarHeader } from './VCalendarHeader'\nimport { VCalendarMonthDay } from './VCalendarMonthDay'\n\n// Composables\nimport { makeCalendarProps, useCalendar } from '@/composables/calendar'\nimport { useDate } from '@/composables/date/date'\n\n// Utilities\nimport { computed, nextTick } from 'vue'\nimport { chunkArray, genericComponent, getPrefixedEventHandlers, pick, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VCalendarDaySlots } from './VCalendarDay'\nimport type { CalendarDay } from '@/composables/calendar'\n\nexport const makeVCalendarProps = propsFactory({\n hideHeader: Boolean,\n hideWeekNumber: Boolean,\n\n ...makeCalendarProps(),\n ...makeVCalendarDayProps(),\n ...makeVCalendarHeaderProps(),\n}, 'VCalendar')\n\nexport type VCalendarSlots = VCalendarDaySlots & {\n 'day-body': { day?: CalendarDay, events?: Array<any> }\n 'day-title': { title?: number | string }\n 'day-event': { day?: CalendarDay, allDay: Boolean, event?: Record<string, unknown> }\n header: { title: string, clickNext: Function, clickPrev: Function, clickToday: Function }\n 'day-interval': { day?: CalendarDay, dayIndex: Number, events?: Array<any> }\n title: { title?: string }\n}\n\nexport const VCalendar = genericComponent<VCalendarSlots>()({\n name: 'VCalendar',\n\n props: makeVCalendarProps(),\n\n emits: {\n next: null,\n prev: null,\n today: null,\n 'update:modelValue': null,\n },\n\n setup (props, { attrs, emit, slots }) {\n const adapter = useDate()\n\n const { daysInMonth, daysInWeek, genDays, model, displayValue, weekNumbers, weekDays } = useCalendar(props as any)\n\n const dayNames = adapter.getWeekdays()\n\n function onClickNext () {\n if (props.viewMode === 'month') {\n model.value = [adapter.addMonths(displayValue.value, 1)]\n } else if (props.viewMode === 'week') {\n model.value = [adapter.addDays(displayValue.value, 7)]\n } else if (props.viewMode === 'day') {\n model.value = [adapter.addDays(displayValue.value, 1)]\n }\n nextTick(() => {\n emit('next', model.value[0])\n })\n }\n\n function onClickPrev () {\n if (props.viewMode === 'month') {\n model.value = [adapter.addMonths(displayValue.value, -1)]\n } else if (props.viewMode === 'week') {\n model.value = [adapter.addDays(displayValue.value, -7)]\n } else if (props.viewMode === 'day') {\n model.value = [adapter.addDays(displayValue.value, -1)]\n }\n nextTick(() => {\n emit('prev', model.value[0])\n })\n }\n\n function onClickToday () {\n const date = adapter.date()\n model.value = [date]\n nextTick(() => {\n emit('today', model.value[0])\n })\n }\n\n const title = computed(() => {\n return adapter.format(displayValue.value, 'monthAndYear')\n })\n\n useRender(() => {\n const calendarDayProps = VCalendarDay.filterProps(props)\n const calendarHeaderProps = VCalendarHeader.filterProps(props)\n\n return (\n <div class={[\n 'v-calendar',\n {\n 'v-calendar-monthly': props.viewMode === 'month',\n 'v-calendar-weekly': props.viewMode === 'week',\n 'v-calendar-day': props.viewMode === 'day',\n },\n ]}\n >\n <div>\n { !props.hideHeader && (\n slots.header?.({\n title: title.value,\n clickNext: onClickNext,\n clickPrev: onClickPrev,\n clickToday: onClickToday,\n }) ?? (\n <VCalendarHeader\n key=\"calendar-header\"\n { ...calendarHeaderProps }\n title={ title.value }\n onClick:next={ onClickNext }\n onClick:prev={ onClickPrev }\n onClick:toToday={ onClickToday }\n >\n {{ title: slots.title }}\n </VCalendarHeader>\n )\n )}\n </div>\n\n <div class={['v-calendar__container', `days__${weekDays.value.length}`]}>\n { props.viewMode === 'month' && !props.hideDayHeader && (\n <div\n class={\n [\n 'v-calendar-weekly__head',\n `days__${weekDays.value.length}`,\n ...(!props.hideWeekNumber ? ['v-calendar-weekly__head-weeknumbers'] : []),\n ]\n }\n key=\"calendarWeeklyHead\"\n >\n { !props.hideWeekNumber ? <div key=\"weekNumber0\" class=\"v-calendar-weekly__head-weeknumber\"></div> : '' }\n {\n weekDays.value.map(weekday => (\n <div class={ `v-calendar-weekly__head-weekday${!props.hideWeekNumber ? '-with-weeknumber' : ''}` }>\n { dayNames[weekday] }\n </div>\n ))\n }\n </div>\n )}\n\n { props.viewMode === 'month' && (\n <div\n key=\"VCalendarMonth\"\n class={\n [\n 'v-calendar-month__days',\n `days${!props.hideWeekNumber ? '-with-weeknumbers' : ''}__${weekDays.value.length}`,\n ...(!props.hideWeekNumber ? ['v-calendar-month__weeknumbers'] : []),\n ]\n }\n >\n { chunkArray(daysInMonth.value, weekDays.value.length)\n .map((week, wi) => (\n [\n !props.hideWeekNumber ? (\n <div\n class=\"v-calendar-month__weeknumber\"\n { ...getPrefixedEventHandlers(attrs, ':weekNumber', () => ({ weekNumber: weekNumbers.value[wi], week })) }\n >{ weekNumbers.value[wi] }</div>\n ) : '',\n week.map(day => (\n <VCalendarMonthDay\n key={ day.date.getTime() }\n { ...calendarDayProps }\n day={ day }\n title={ adapter.format(day.date, 'dayOfMonth') }\n events={ props.events?.filter(e => adapter.isSameDay(day.date, e.start) || adapter.isSameDay(day.date, e.end)) }\n { ...attrs }\n >\n {{\n ...pick(slots, ['day-body', 'day-event', 'day-title']),\n }}\n </VCalendarMonthDay>\n )),\n ]\n ))\n }\n </div>\n )}\n { props.viewMode === 'week' && (\n daysInWeek.value.map((day, i) =>\n slots['day-interval'] ? slots['day-interval']?.({\n ...calendarDayProps,\n day,\n dayIndex: i,\n events: props.events?.filter(e => adapter.isSameDay(e.start, day.date) || adapter.isSameDay(e.end, day.date)),\n }) : (\n <VCalendarDay\n { ...calendarDayProps }\n day={ day }\n dayIndex={ i }\n events={ props.events?.filter(e => adapter.isSameDay(e.start, day.date) || adapter.isSameDay(e.end, day.date)) }\n { ...attrs }\n >\n {{ ...pick(slots, ['interval', 'intervalBody', 'intervalEvent', 'intervalTitle']) }}\n </VCalendarDay>\n )\n ))\n }\n\n { props.viewMode === 'day' && (\n slots['day-interval'] ? slots['day-interval']({\n day: genDays([displayValue.value as Date], adapter.date() as Date)[0],\n dayIndex: 0,\n events: props.events?.filter(e =>\n adapter.isSameDay(e.start, genDays([displayValue.value as Date], adapter.date() as Date)[0].date) ||\n adapter.isSameDay(e.end, genDays([displayValue.value as Date], adapter.date() as Date)[0].date)\n ),\n }) : (\n <VCalendarDay\n { ...calendarDayProps }\n day={ genDays([model.value[0] as Date], adapter.date() as Date)[0] }\n dayIndex={ 0 }\n events={\n props.events?.filter(e =>\n adapter.isSameDay(e.start, genDays([model.value[0] as Date], adapter.date() as Date)[0].date) ||\n adapter.isSameDay(e.end, genDays([model.value[0] as Date], adapter.date() as Date)[0].date)\n )\n }\n { ...attrs }\n ></VCalendarDay>\n )\n )}\n </div>\n </div>\n )\n })\n\n return { daysInMonth, daysInWeek, genDays }\n },\n})\n\nexport type VCalendar = InstanceType<typeof VC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KAAK,CAAS,EAAEZ,OAAO,CAACiB,IAAI,CAAC,CAAS,CAAC,CAAC,CAAC,CAAC,CAACA,IAAI,CAChG;MACF,CAAC,CAAC,GAAAY,YAAA,CAAA5D,YAAA,EAAA6D,WAAA,CAEOV,gBAAgB;QAAA,OACfjB,OAAO,CAAC,CAACC,KAAK,CAACQ,KAAK,CAAC,CAAC,CAAC,CAAS,EAAEZ,OAAO,CAACiB,IAAI,CAAC,CAAS,CAAC,CAAC,CAAC,CAAC;QAAA,YACvD,CAAC;QAAA,UAEV3B,KAAK,CAACkD,MAAM,EAAEC,MAAM,CAACC,CAAC,IACpB1C,OAAO,CAAC2C,SAAS,CAACD,CAAC,CAACE,KAAK,EAAEzC,OAAO,CAAC,CAACC,KAAK,CAACQ,KAAK,CAAC,CAAC,CAAC,CAAS,EAAEZ,OAAO,CAACiB,IAAI,CAAC,CAAS,CAAC,CAAC,CAAC,CAAC,CAACA,IAAI,CAAC,IAC7FjB,OAAO,CAAC2C,SAAS,CAACD,CAAC,CAACG,GAAG,EAAE1C,OAAO,CAAC,CAACC,KAAK,CAACQ,KAAK,CAAC,CAAC,CAAC,CAAS,EAAEZ,OAAO,CAACiB,IAAI,CAAC,CAAS,CAAC,CAAC,CAAC,CAAC,CAACA,IAAI,CAC5F;MAAC,GAEEpB,KAAK,QAEb,CACF;IAIT,CAAC,CAAC;IAEF,OAAO;MAAEI,WAAW;MAAEC,UAAU;MAAEC;IAAQ,CAAC;EAC7C;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
1
+ import { mergeProps as _mergeProps, createVNode as _createVNode, createElementVNode as _createElementVNode } from "vue";
2
2
  // Styles
3
3
  import "./VCalendarDay.css";
4
4
 
@@ -31,12 +31,12 @@ export const VCalendarDay = genericComponent()({
31
31
  }, (v, i) => i).filter((_, index) => props.intervalDuration * (index + props.intervalStart) < 1440)]);
32
32
  useRender(() => {
33
33
  const calendarIntervalProps = VCalendarInterval.filterProps(props);
34
- return _createVNode("div", {
34
+ return _createElementVNode("div", {
35
35
  "class": "v-calendar-day__container"
36
- }, [!props.hideDayHeader && _createVNode("div", _mergeProps({
36
+ }, [!props.hideDayHeader && _createElementVNode("div", _mergeProps({
37
37
  "key": "calendar-week-name",
38
38
  "class": "v-calendar-weekly__head-weekday"
39
- }, getPrefixedEventHandlers(attrs, ':day', () => props.day)), [adapter.format(props.day.date, 'weekdayShort'), _createVNode("div", null, [_createVNode(VBtn, _mergeProps(getPrefixedEventHandlers(attrs, ':date', () => props.day), {
39
+ }, getPrefixedEventHandlers(attrs, ':day', () => props.day)), [adapter.format(props.day.date, 'weekdayShort'), _createElementVNode("div", null, [_createVNode(VBtn, _mergeProps(getPrefixedEventHandlers(attrs, ':date', () => props.day), {
40
40
  "class": props.day?.isToday ? 'v-calendar-day-label__today' : undefined,
41
41
  "icon": true,
42
42
  "text": adapter.format(props.day.date, 'dayOfMonth'),
@@ -1 +1 @@
1
- {"version":3,"file":"VCalendarDay.js","names":["makeVCalendarIntervalProps","VCalendarInterval","VBtn","useDate","computed","genericComponent","getPrefixedEventHandlers","pick","propsFactory","useRender","makeVCalendarDayProps","hideDayHeader","Boolean","intervals","type","Number","default","VCalendarDay","name","inheritAttrs","props","setup","_ref","attrs","slots","adapter","Array","from","length","v","i","filter","_","index","intervalDuration","intervalStart","calendarIntervalProps","filterProps","_createVNode","_mergeProps","day","format","date","isToday","undefined","value","map","interval"],"sources":["../../../src/labs/VCalendar/VCalendarDay.tsx"],"sourcesContent":["// Styles\nimport './VCalendarDay.sass'\n\n// Components\nimport { makeVCalendarIntervalProps, VCalendarInterval } from './VCalendarInterval'\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { useDate } from '@/composables/date'\n\n// Utilities\nimport { computed } from 'vue'\nimport { genericComponent, getPrefixedEventHandlers, pick, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VCalendarIntervalSlots } from './VCalendarInterval'\n\nexport type VCalendarDaySlots = VCalendarIntervalSlots & {\n interval: Record<string, unknown>\n}\n\nexport const makeVCalendarDayProps = propsFactory({\n hideDayHeader: Boolean,\n intervals: {\n type: Number,\n default: 24,\n },\n\n ...makeVCalendarIntervalProps(),\n}, 'VCalendarDay')\n\nexport const VCalendarDay = genericComponent<VCalendarDaySlots>()({\n name: 'VCalendarDay',\n\n inheritAttrs: false,\n\n props: makeVCalendarDayProps(),\n\n setup (props, { attrs, slots }) {\n const adapter = useDate()\n const intervals = computed(() => [\n ...Array.from({ length: props.intervals }, (v, i) => i)\n .filter((_, index) => (props.intervalDuration * (index + props.intervalStart)) < 1440),\n ])\n\n useRender(() => {\n const calendarIntervalProps = VCalendarInterval.filterProps(props)\n\n return (\n <div class=\"v-calendar-day__container\">\n { !props.hideDayHeader && (\n <div\n key=\"calendar-week-name\"\n class=\"v-calendar-weekly__head-weekday\"\n { ...getPrefixedEventHandlers(attrs, ':day', () => props.day) }\n >\n { adapter.format(props.day.date, 'weekdayShort') }\n\n <div>\n <VBtn\n { ...getPrefixedEventHandlers(attrs, ':date', () => props.day) }\n class={ props.day?.isToday ? 'v-calendar-day-label__today' : undefined }\n icon\n text={ adapter.format(props.day.date, 'dayOfMonth') }\n variant={ props.day?.isToday ? undefined : 'text' }\n />\n </div>\n </div>\n )}\n { intervals.value.map((_, index) =>\n slots.interval?.(calendarIntervalProps) ?? (\n <VCalendarInterval\n index={ index }\n { ...calendarIntervalProps }\n { ...attrs }\n { ...getPrefixedEventHandlers(attrs, ':interval', () => calendarIntervalProps) }\n >\n {{\n ...pick(slots, ['intervalBody', 'intervalEvent', 'intervalTitle']),\n }}\n </VCalendarInterval>\n )\n )}\n </div>\n )\n })\n\n return { intervals }\n },\n})\n\nexport type VCalendarDay = InstanceType<typeof VCalendarDay>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,IAAI,0CAEb;AAAA,SACSC,OAAO,2CAEhB;A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AAG,CAAC,IAE3Df,OAAO,CAACgB,MAAM,CAACrB,KAAK,CAACoB,GAAG,CAACE,IAAI,EAAE,cAAc,CAAC,EAAAJ,YAAA,eAAAA,YAAA,CAAApC,IAAA,EAAAqC,WAAA,CAIvCjC,wBAAwB,CAACiB,KAAK,EAAE,OAAO,EAAE,MAAMH,KAAK,CAACoB,GAAG,CAAC;QAAA,SACtDpB,KAAK,CAACoB,GAAG,EAAEG,OAAO,GAAG,6BAA6B,GAAGC,SAAS;QAAA;QAAA,QAE/DnB,OAAO,CAACgB,MAAM,CAACrB,KAAK,CAACoB,GAAG,CAACE,IAAI,EAAE,YAAY,CAAC;QAAA,WACzCtB,KAAK,CAACoB,GAAG,EAAEG,OAAO,GAAGC,SAAS,GAAG;MAAM,aAIxD,EACC/B,SAAS,CAACgC,KAAK,CAACC,GAAG,CAAC,CAACd,CAAC,EAAEC,KAAK,KAC7BT,KAAK,CAACuB,QAAQ,GAAGX,qBAAqB,CAAC,IAAAE,YAAA,CAAArC,iBAAA,EAAAsC,WAAA;QAAA,SAE3BN;MAAK,GACRG,qBAAqB,EACrBb,KAAK,EACLjB,wBAAwB,CAACiB,KAAK,EAAE,WAAW,EAAE,MAAMa,qBAAqB,CAAC;QAG5E,GAAG7B,IAAI,CAACiB,KAAK,EAAE,CAAC,cAAc,EAAE,eAAe,EAAE,eAAe,CAAC;MAAC,EAI1E,CAAC;IAGP,CAAC,CAAC;IAEF,OAAO;MAAEX;IAAU,CAAC;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VCalendarDay.js","names":["makeVCalendarIntervalProps","VCalendarInterval","VBtn","useDate","computed","genericComponent","getPrefixedEventHandlers","pick","propsFactory","useRender","makeVCalendarDayProps","hideDayHeader","Boolean","intervals","type","Number","default","VCalendarDay","name","inheritAttrs","props","setup","_ref","attrs","slots","adapter","Array","from","length","v","i","filter","_","index","intervalDuration","intervalStart","calendarIntervalProps","filterProps","_createElementVNode","_mergeProps","day","format","date","_createVNode","isToday","undefined","value","map","interval"],"sources":["../../../src/labs/VCalendar/VCalendarDay.tsx"],"sourcesContent":["// Styles\nimport './VCalendarDay.sass'\n\n// Components\nimport { makeVCalendarIntervalProps, VCalendarInterval } from './VCalendarInterval'\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { useDate } from '@/composables/date'\n\n// Utilities\nimport { computed } from 'vue'\nimport { genericComponent, getPrefixedEventHandlers, pick, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { VCalendarIntervalSlots } from './VCalendarInterval'\n\nexport type VCalendarDaySlots = VCalendarIntervalSlots & {\n interval: Record<string, unknown>\n}\n\nexport const makeVCalendarDayProps = propsFactory({\n hideDayHeader: Boolean,\n intervals: {\n type: Number,\n default: 24,\n },\n\n ...makeVCalendarIntervalProps(),\n}, 'VCalendarDay')\n\nexport const VCalendarDay = genericComponent<VCalendarDaySlots>()({\n name: 'VCalendarDay',\n\n inheritAttrs: false,\n\n props: makeVCalendarDayProps(),\n\n setup (props, { attrs, slots }) {\n const adapter = useDate()\n const intervals = computed(() => [\n ...Array.from({ length: props.intervals }, (v, i) => i)\n .filter((_, index) => (props.intervalDuration * (index + props.intervalStart)) < 1440),\n ])\n\n useRender(() => {\n const calendarIntervalProps = VCalendarInterval.filterProps(props)\n\n return (\n <div class=\"v-calendar-day__container\">\n { !props.hideDayHeader && (\n <div\n key=\"calendar-week-name\"\n class=\"v-calendar-weekly__head-weekday\"\n { ...getPrefixedEventHandlers(attrs, ':day', () => props.day) }\n >\n { adapter.format(props.day.date, 'weekdayShort') }\n\n <div>\n <VBtn\n { ...getPrefixedEventHandlers(attrs, ':date', () => props.day) }\n class={ props.day?.isToday ? 'v-calendar-day-label__today' : undefined }\n icon\n text={ adapter.format(props.day.date, 'dayOfMonth') }\n variant={ props.day?.isToday ? undefined : 'text' }\n />\n </div>\n </div>\n )}\n { intervals.value.map((_, index) =>\n slots.interval?.(calendarIntervalProps) ?? (\n <VCalendarInterval\n index={ index }\n { ...calendarIntervalProps }\n { ...attrs }\n { ...getPrefixedEventHandlers(attrs, ':interval', () => calendarIntervalProps) }\n >\n {{\n ...pick(slots, ['intervalBody', 'intervalEvent', 'intervalTitle']),\n }}\n </VCalendarInterval>\n )\n )}\n </div>\n )\n })\n\n return { intervals }\n },\n})\n\nexport type VCalendarDay = InstanceType<typeof VCalendarDay>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,0BAA0B,EAAEC,iBAAiB;AAAA,SAC7CC,IAAI,0CAEb;AAAA,SACSC,OAAO,2CAEhB;AACA,SAASC,QAAQ,QAAQ,KAAK;AAAA,SACrBC,gBAAgB,EAAEC,wBAAwB,EAAEC,IAAI,EAAEC,YAAY,EAAEC,SAAS,+BAElF;AAOA,OAAO,MAAMC,qBAAqB,GAAGF,YAAY,CAAC;EAChDG,aAAa,EAAEC,OAAO;EACtBC,SAAS,EAAE;IACTC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EAED,GAAGhB,0BAA0B,CAAC;AAChC,CAAC,EAAE,cAAc,CAAC;AAElB,OAAO,MAAMiB,YAAY,GAAGZ,gBAAgB,CAAoB,CAAC,CAAC;EAChEa,IAAI,EAAE,cAAc;EAEpBC,YAAY,EAAE,KAAK;EAEnBC,KAAK,EAAEV,qBAAqB,CAAC,CAAC;EAE9BW,KAAKA,CAAED,KAAK,EAAAE,IAAA,EAAoB;IAAA,IAAlB;MAAEC,KAAK;MAAEC;IAAM,CAAC,GAAAF,IAAA;IAC5B,MAAMG,OAAO,GAAGtB,OAAO,CAAC,CAAC;IACzB,MAAMU,SAAS,GAAGT,QAAQ,CAAC,MAAM,CAC/B,GAAGsB,KAAK,CAACC,IAAI,CAAC;MAAEC,MAAM,EAAER,KAAK,CAACP;IAAU,CAAC,EAAE,CAACgB,CAAC,EAAEC,CAAC,KAAKA,CAAC,CAAC,CACpDC,MAAM,CAAC,CAACC,CAAC,EAAEC,KAAK,KAAMb,KAAK,CAACc,gBAAgB,IAAID,KA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AEF,OAAO;MAAEX;IAAU,CAAC;EACtB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { createVNode as _createVNode } from "vue";
1
+ import { createVNode as _createVNode, createElementVNode as _createElementVNode } from "vue";
2
2
  // Styles
3
3
  import "./VCalendarHeader.css";
4
4
 
@@ -50,7 +50,7 @@ export const VCalendarHeader = genericComponent()({
50
50
  function toToday() {
51
51
  emit('click:toToday');
52
52
  }
53
- useRender(() => _createVNode("div", {
53
+ useRender(() => _createElementVNode("div", {
54
54
  "class": "v-calendar-header"
55
55
  }, [props.text && _createVNode(VBtn, {
56
56
  "key": "today",
@@ -68,11 +68,11 @@ export const VCalendarHeader = genericComponent()({
68
68
  "icon": props.nextIcon,
69
69
  "variant": "text",
70
70
  "onClick": next
71
- }, null), _createVNode("div", {
71
+ }, null), _createElementVNode("div", {
72
72
  "class": "v-calendar-header__title"
73
73
  }, [slots.title?.({
74
74
  title: props.title
75
- }) ?? _createVNode("span", null, [props.title])])]));
75
+ }) ?? _createElementVNode("span", null, [props.title])])]));
76
76
  return {};
77
77
  }
78
78
  });
@@ -1 +1 @@
1
- {"version":3,"file":"VCalendarHeader.js","names":["VBtn","useLocale","genericComponent","propsFactory","useRender","makeVCalendarHeaderProps","nextIcon","type","String","default","prevIcon","title","text","viewMode","VCalendarHeader","name","props","emits","click:next","click:prev","click:toToday","setup","_ref","emit","slots","t","prev","next","toToday","_createVNode"],"sources":["../../../src/labs/VCalendar/VCalendarHeader.tsx"],"sourcesContent":["// Styles\nimport './VCalendarHeader.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { useLocale } from '@/composables/locale'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport type VCalendarHeaderSlots = {\n title: { title?: string }\n}\n\nexport const makeVCalendarHeaderProps = propsFactory({\n nextIcon: {\n type: String,\n default: '$next',\n },\n prevIcon: {\n type: String,\n default: '$prev',\n },\n title: String,\n text: {\n type: String,\n default: '$vuetify.calendar.today',\n },\n viewMode: {\n type: String as PropType<'month' | 'week' | 'day'>,\n default: 'month',\n },\n}, 'VCalendarHeader')\n\nexport const VCalendarHeader = genericComponent<VCalendarHeaderSlots>()({\n name: 'VCalendarHeader',\n\n props: makeVCalendarHeaderProps(),\n\n emits: {\n 'click:next': () => true,\n 'click:prev': () => true,\n 'click:toToday': () => true,\n },\n\n setup (props, { emit, slots }) {\n const { t } = useLocale()\n\n function prev () {\n emit('click:prev')\n }\n\n function next () {\n emit('click:next')\n }\n\n function toToday () {\n emit('click:toToday')\n }\n\n useRender(() => (\n <div class=\"v-calendar-header\">\n { props.text && (\n <VBtn\n key=\"today\"\n class=\"v-calendar-header__today\"\n text={ t(props.text) }\n variant=\"outlined\"\n onClick={ toToday }\n />\n )}\n\n <VBtn\n density=\"comfortable\"\n icon={ props.prevIcon }\n variant=\"text\"\n onClick={ prev }\n />\n\n <VBtn\n density=\"comfortable\"\n icon={ props.nextIcon }\n variant=\"text\"\n onClick={ next }\n />\n\n <div class=\"v-calendar-header__title\">\n { slots.title?.({ title: props.title }) ?? (\n <span>{ props.title }</span>\n )}\n </div>\n </div>\n ))\n\n return {}\n },\n})\n\nexport type VCalendarHeader = InstanceType<typeof VCalendarHeader>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,0CAEb;AAAA,SACSC,SAAS,uCAElB;AAAA,SACSC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,+BAElD;AAOA,OAAO,MAAMC,wBAAwB,GAAGF,YAAY,CAAC;EACnDG,QAAQ,EAAE;IACRC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDC,QAAQ,EAAE;IACRH,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDE,KAAK,EAAEH,MAAM;EACbI,IAAI,EAAE;IACJL,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CA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C,CAAC,IAAAkB,YAAA,gBAC7Bb,KAAK,CAACL,KAAK,EACpB,IAGN,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"file":"VCalendarHeader.js","names":["VBtn","useLocale","genericComponent","propsFactory","useRender","makeVCalendarHeaderProps","nextIcon","type","String","default","prevIcon","title","text","viewMode","VCalendarHeader","name","props","emits","click:next","click:prev","click:toToday","setup","_ref","emit","slots","t","prev","next","toToday","_createElementVNode","_createVNode"],"sources":["../../../src/labs/VCalendar/VCalendarHeader.tsx"],"sourcesContent":["// Styles\nimport './VCalendarHeader.sass'\n\n// Components\nimport { VBtn } from '@/components/VBtn'\n\n// Composables\nimport { useLocale } from '@/composables/locale'\n\n// Utilities\nimport { genericComponent, propsFactory, useRender } from '@/util'\n\n// Types\nimport type { PropType } from 'vue'\n\nexport type VCalendarHeaderSlots = {\n title: { title?: string }\n}\n\nexport const makeVCalendarHeaderProps = propsFactory({\n nextIcon: {\n type: String,\n default: '$next',\n },\n prevIcon: {\n type: String,\n default: '$prev',\n },\n title: String,\n text: {\n type: String,\n default: '$vuetify.calendar.today',\n },\n viewMode: {\n type: String as PropType<'month' | 'week' | 'day'>,\n default: 'month',\n },\n}, 'VCalendarHeader')\n\nexport const VCalendarHeader = genericComponent<VCalendarHeaderSlots>()({\n name: 'VCalendarHeader',\n\n props: makeVCalendarHeaderProps(),\n\n emits: {\n 'click:next': () => true,\n 'click:prev': () => true,\n 'click:toToday': () => true,\n },\n\n setup (props, { emit, slots }) {\n const { t } = useLocale()\n\n function prev () {\n emit('click:prev')\n }\n\n function next () {\n emit('click:next')\n }\n\n function toToday () {\n emit('click:toToday')\n }\n\n useRender(() => (\n <div class=\"v-calendar-header\">\n { props.text && (\n <VBtn\n key=\"today\"\n class=\"v-calendar-header__today\"\n text={ t(props.text) }\n variant=\"outlined\"\n onClick={ toToday }\n />\n )}\n\n <VBtn\n density=\"comfortable\"\n icon={ props.prevIcon }\n variant=\"text\"\n onClick={ prev }\n />\n\n <VBtn\n density=\"comfortable\"\n icon={ props.nextIcon }\n variant=\"text\"\n onClick={ next }\n />\n\n <div class=\"v-calendar-header__title\">\n { slots.title?.({ title: props.title }) ?? (\n <span>{ props.title }</span>\n )}\n </div>\n </div>\n ))\n\n return {}\n },\n})\n\nexport type VCalendarHeader = InstanceType<typeof VCalendarHeader>\n"],"mappings":";AAAA;AACA;;AAEA;AAAA,SACSA,IAAI,0CAEb;AAAA,SACSC,SAAS,uCAElB;AAAA,SACSC,gBAAgB,EAAEC,YAAY,EAAEC,SAAS,+BAElD;AAOA,OAAO,MAAMC,wBAAwB,GAAGF,YAAY,CAAC;EACnDG,QAAQ,EAAE;IACRC,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDC,QAAQ,EAAE;IACRH,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDE,KAAK,EAAEH,MAAM;EACbI,IAAI,EAAE;IACJL,IAAI,EAAEC,MAAM;IACZC,OAAO,EAAE;EACX,CAAC;EACDI,QAAQ,EAAE;IACRN,IAAI,EAAEC,MAA4C;IAClDC,OAAO,EAAE;EACX;AACF,CAAC,EAAE,iBAAiB,CAAC;AAErB,OAAO,MAAMK,eAAe,GAAGZ,gBAAgB,CAAuB,CAAC,CAAC;EACtEa,IAAI,EAAE,iBAAiB;EAEvBC,KAAK,EAAEX,wBAAwB,CAAC,CAAC;EAEjCY,KAAK,EAAE;IACL,YAAY,EAAEC,CAAA,KAAM,IAAI;IACxB,YAAY,EAAEC,CAAA,KAAM,IAAI;IACxB,eAAe,EAAEC,CAAA,KAAM;EACzB,CAAC;EAEDC,KAAKA,CAAEL,KAAK,EAAAM,IAAA,EAAmB;IAAA,IAAjB;MAAEC,IAAI;MAAEC;IAAM,CAAC,GAAAF,IAAA;IAC3B,MAAM;MAAEG;IAAE,CAAC,GAAGxB,SAAS,CAAC,CAAC;IAEzB,SAASyB,IAAIA,CAAA,EAAI;MACfH,IAAI,CAAC,YAAY,CAAC;IACpB;IAEA,SAASI,IAAIA,CAAA,EAAI;MACfJ,IAAI,CAAC,YAAY,CAAC;IACpB;IAEA,SAASK,OAAOA,CAAA,EAAI;MAClBL,IAAI,CAAC,eAAe,CAAC;IACvB;IAEAnB,SAAS,CAAC,MAAAyB,mBAAA;MAAA;IAAA,IAEJb,KAAK,CAACJ,IAAI,IAAAkB,YAAA,CAAA9B,IAAA;MAAA;MAAA;MAAA,QAIDyB,CAAC,CAACT,KAAK,CAACJ,IAAI,CAAC;MAAA;MAAA,WAEVgB;IAAO,QAEpB,EAAAE,YAAA,CAAA9B,IAAA;MAAA;MAAA,QAIQgB,KAAK,CAACN,QAAQ;MAAA;MAAA,WAEXgB;IAAI,UAAAI,YAAA,CAAA9B,IAAA;MAAA;MAAA,QAKPgB,KAAK,CAACV,QAAQ;MAAA;MAAA,WAEXqB;IAAI,UAAAE,mBAAA;MAAA;IAAA,IAIZL,KAAK,CAACb,KAAK,GAAG;MAAEA,KAAK,EAAEK,KAAK,CAACL;IAAM,CAAC,CAAC,IAAAkB,mBAAA,gBAC7Bb,KAAK,CAACL,KAAK,EACpB,IAGN,CAAC;IAEF,OAAO,CAAC,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
1
+ import { mergeProps as _mergeProps, createElementVNode as _createElementVNode, createVNode as _createVNode, normalizeStyle as _normalizeStyle } from "vue";
2
2
  // Styles
3
3
  import "./VCalendarInterval.css";
4
4
 
@@ -70,20 +70,20 @@ export const VCalendarInterval = genericComponent()({
70
70
  };
71
71
  });
72
72
  useRender(() => {
73
- return props.dayIndex === 0 ? _createVNode("div", {
73
+ return props.dayIndex === 0 ? _createElementVNode("div", {
74
74
  "class": "v-calendar-day__row-with-label",
75
- "style": `height: ${convertToUnit(props.intervalHeight)}`
76
- }, [_createVNode("div", _mergeProps({
75
+ "style": _normalizeStyle(`height: ${convertToUnit(props.intervalHeight)}`)
76
+ }, [_createElementVNode("div", _mergeProps({
77
77
  "class": "v-calendar-day__row-label"
78
78
  }, getPrefixedEventHandlers(attrs, ':time', () => props)), [slots.intervalTitle?.({
79
79
  interval: interval.value
80
- }) ?? (props.index ? props.intervalFormat ? typeof props.intervalFormat === 'string' ? adapter.format(interval.value.start, 'hours12h') : props.intervalFormat(interval.value) : interval.value.label : '12 AM')]), _createVNode("div", {
80
+ }) ?? (props.index ? props.intervalFormat ? typeof props.intervalFormat === 'string' ? adapter.format(interval.value.start, 'hours12h') : props.intervalFormat(interval.value) : interval.value.label : '12 AM')]), _createElementVNode("div", {
81
81
  "class": "v-calendar-day__row-hairline"
82
- }, null), _createVNode("div", _mergeProps({
82
+ }, null), _createElementVNode("div", _mergeProps({
83
83
  "class": ['v-calendar-day__row-content', interval.value.events.some(e => !e.last) ? 'v-calendar-day__row-content-through' : '']
84
84
  }, getPrefixedEventHandlers(attrs, ':interval', () => interval.value)), [slots.intervalBody?.({
85
85
  interval: interval.value
86
- }) ?? _createVNode("div", null, [interval.value.events?.map(event => _createVNode(VCalendarIntervalEvent, _mergeProps({
86
+ }) ?? _createElementVNode("div", null, [interval.value.events?.map(event => _createVNode(VCalendarIntervalEvent, _mergeProps({
87
87
  "event": event,
88
88
  "interval": interval.value,
89
89
  "intervalDivisions": props.intervalDivisions,
@@ -108,10 +108,10 @@ export const VCalendarInterval = genericComponent()({
108
108
  });
109
109
  }
110
110
  } : {})
111
- }))])])]) : _createVNode("div", {
111
+ }))])])]) : _createElementVNode("div", {
112
112
  "class": "v-calendar-day__row-without-label",
113
- "style": `height: ${convertToUnit(props.intervalHeight)}`
114
- }, [_createVNode("div", _mergeProps({
113
+ "style": _normalizeStyle(`height: ${convertToUnit(props.intervalHeight)}`)
114
+ }, [_createElementVNode("div", _mergeProps({
115
115
  "class": ['v-calendar-day__row-content', interval.value.events.some(e => !e.last) ? 'v-calendar-day__row-content-through' : '']
116
116
  }, getPrefixedEventHandlers(attrs, ':interval', () => interval.value)), [slots.intervalBody?.({
117
117
  interval: interval.value