vectis-ui 0.1.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (475) hide show
  1. package/README.md +40 -6
  2. package/dist/components/VAccordion/VAccordion.css +1 -1
  3. package/dist/components/VAccordion/VAccordion.d.ts +9 -16
  4. package/dist/components/VAccordion/VAccordion.js.map +1 -1
  5. package/dist/components/VAccordion/VAccordion.vue_vue_type_script_setup_true_lang.js +3 -3
  6. package/dist/components/VAccordion/VAccordion.vue_vue_type_script_setup_true_lang.js.map +1 -1
  7. package/dist/components/VAccordion/VAccordionItem.css +1 -1
  8. package/dist/components/VAccordion/VAccordionItem.d.ts +33 -19
  9. package/dist/components/VAccordion/VAccordionItem.js.map +1 -1
  10. package/dist/components/VAccordion/VAccordionItem.vue_vue_type_script_setup_true_lang.js +50 -38
  11. package/dist/components/VAccordion/VAccordionItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  12. package/dist/components/VAccordion/context.d.ts +1 -8
  13. package/dist/components/VAccordion/context.js.map +1 -1
  14. package/dist/components/VAvatar/VAvatar.css +1 -1
  15. package/dist/components/VAvatar/VAvatar.d.ts +44 -29
  16. package/dist/components/VAvatar/VAvatar.js.map +1 -1
  17. package/dist/components/VAvatar/VAvatar.vue_vue_type_script_setup_true_lang.js +38 -35
  18. package/dist/components/VAvatar/VAvatar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  19. package/dist/components/VAvatar/VAvatarGroup.d.ts +5 -16
  20. package/dist/components/VAvatar/VAvatarGroup.js.map +1 -1
  21. package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js +7 -7
  22. package/dist/components/VAvatar/VAvatarGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  23. package/dist/components/VAvatar/context.d.ts +6 -10
  24. package/dist/components/VAvatar/context.js.map +1 -1
  25. package/dist/components/VBadge/VBadge.css +1 -1
  26. package/dist/components/VBadge/VBadge.d.ts +31 -10
  27. package/dist/components/VBadge/VBadge.js.map +1 -1
  28. package/dist/components/VBadge/VBadge.vue_vue_type_script_setup_true_lang.js +39 -24
  29. package/dist/components/VBadge/VBadge.vue_vue_type_script_setup_true_lang.js.map +1 -1
  30. package/dist/components/VBreadcrumb/VBreadcrumb.css +1 -1
  31. package/dist/components/VBreadcrumb/VBreadcrumb.d.ts +4 -17
  32. package/dist/components/VBreadcrumb/VBreadcrumb.js.map +1 -1
  33. package/dist/components/VBreadcrumb/VBreadcrumb.vue_vue_type_script_setup_true_lang.js +23 -25
  34. package/dist/components/VBreadcrumb/VBreadcrumb.vue_vue_type_script_setup_true_lang.js.map +1 -1
  35. package/dist/components/VButton/VButton.css +1 -1
  36. package/dist/components/VButton/VButton.d.ts +30 -10
  37. package/dist/components/VButton/VButton.js.map +1 -1
  38. package/dist/components/VButton/VButton.vue_vue_type_script_setup_true_lang.js +39 -30
  39. package/dist/components/VButton/VButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  40. package/dist/components/VButton/VButtonGroup.css +1 -1
  41. package/dist/components/VButton/VButtonGroup.d.ts +76 -13
  42. package/dist/components/VButton/VButtonGroup.js.map +1 -1
  43. package/dist/components/VButton/VButtonGroup.vue_vue_type_script_setup_true_lang.js +74 -8
  44. package/dist/components/VButton/VButtonGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  45. package/dist/components/VButton/context.d.ts +30 -0
  46. package/dist/components/VButton/context.js +6 -0
  47. package/dist/components/VButton/context.js.map +1 -0
  48. package/dist/components/VCalendar/VCalendar.css +1 -1
  49. package/dist/components/VCalendar/VCalendar.d.ts +50 -36
  50. package/dist/components/VCalendar/VCalendar.js.map +1 -1
  51. package/dist/components/VCalendar/VCalendar.vue_vue_type_script_setup_true_lang.js +99 -85
  52. package/dist/components/VCalendar/VCalendar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  53. package/dist/components/VCalendar/VCalendarEvent.css +1 -1
  54. package/dist/components/VCalendar/VCalendarEvent.d.ts +5 -11
  55. package/dist/components/VCalendar/VCalendarEvent.js.map +1 -1
  56. package/dist/components/VCalendar/VCalendarEvent.vue_vue_type_script_setup_true_lang.js +7 -1
  57. package/dist/components/VCalendar/VCalendarEvent.vue_vue_type_script_setup_true_lang.js.map +1 -1
  58. package/dist/components/VCalendar/VCalendarMonth.css +1 -1
  59. package/dist/components/VCalendar/VCalendarMonth.d.ts +10 -13
  60. package/dist/components/VCalendar/VCalendarMonth.js.map +1 -1
  61. package/dist/components/VCalendar/VCalendarMonth.vue_vue_type_script_setup_true_lang.js +183 -244
  62. package/dist/components/VCalendar/VCalendarMonth.vue_vue_type_script_setup_true_lang.js.map +1 -1
  63. package/dist/components/VCalendar/VCalendarTimeGrid.css +1 -1
  64. package/dist/components/VCalendar/VCalendarTimeGrid.d.ts +15 -20
  65. package/dist/components/VCalendar/VCalendarTimeGrid.js.map +1 -1
  66. package/dist/components/VCalendar/VCalendarTimeGrid.vue_vue_type_script_setup_true_lang.js +385 -448
  67. package/dist/components/VCalendar/VCalendarTimeGrid.vue_vue_type_script_setup_true_lang.js.map +1 -1
  68. package/dist/components/VCalendar/VCalendarYear.css +1 -1
  69. package/dist/components/VCalendar/VCalendarYear.js.map +1 -1
  70. package/dist/components/VCalendar/VCalendarYear.vue_vue_type_script_setup_true_lang.js +53 -49
  71. package/dist/components/VCalendar/VCalendarYear.vue_vue_type_script_setup_true_lang.js.map +1 -1
  72. package/dist/components/VCalendar/gesture.d.ts +158 -0
  73. package/dist/components/VCalendar/gesture.js +170 -0
  74. package/dist/components/VCalendar/gesture.js.map +1 -0
  75. package/dist/components/VCalendar/keyboard.d.ts +9 -3
  76. package/dist/components/VCalendar/keyboard.js +2 -6
  77. package/dist/components/VCalendar/keyboard.js.map +1 -1
  78. package/dist/components/VCalendar/layout.d.ts +67 -54
  79. package/dist/components/VCalendar/layout.js +77 -69
  80. package/dist/components/VCalendar/layout.js.map +1 -1
  81. package/dist/components/VCalendar/timeGrid.d.ts +55 -0
  82. package/dist/components/VCalendar/timeGrid.js +71 -0
  83. package/dist/components/VCalendar/timeGrid.js.map +1 -0
  84. package/dist/components/VCalendar/types.d.ts +41 -16
  85. package/dist/components/VCarousel/VCarousel.css +1 -1
  86. package/dist/components/VCarousel/VCarousel.d.ts +21 -41
  87. package/dist/components/VCarousel/VCarousel.js.map +1 -1
  88. package/dist/components/VCarousel/VCarousel.vue_vue_type_script_setup_true_lang.js +157 -129
  89. package/dist/components/VCarousel/VCarousel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  90. package/dist/components/VCarousel/VCarouselItem.d.ts +0 -17
  91. package/dist/components/VCarousel/VCarouselItem.js.map +1 -1
  92. package/dist/components/VCarousel/VCarouselItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  93. package/dist/components/VCarousel/context.d.ts +0 -12
  94. package/dist/components/VCarousel/context.js.map +1 -1
  95. package/dist/components/VCheckbox/VCheckbox.css +1 -1
  96. package/dist/components/VCheckbox/VCheckbox.d.ts +31 -16
  97. package/dist/components/VCheckbox/VCheckbox.js.map +1 -1
  98. package/dist/components/VCheckbox/VCheckbox.vue_vue_type_script_setup_true_lang.js +62 -29
  99. package/dist/components/VCheckbox/VCheckbox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  100. package/dist/components/VChip/VChip.css +1 -1
  101. package/dist/components/VChip/VChip.d.ts +36 -26
  102. package/dist/components/VChip/VChip.js.map +1 -1
  103. package/dist/components/VChip/VChip.vue_vue_type_script_setup_true_lang.js +57 -48
  104. package/dist/components/VChip/VChip.vue_vue_type_script_setup_true_lang.js.map +1 -1
  105. package/dist/components/VCombobox/VCombobox.css +1 -1
  106. package/dist/components/VCombobox/VCombobox.d.ts +127 -31
  107. package/dist/components/VCombobox/VCombobox.js.map +1 -1
  108. package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js +336 -247
  109. package/dist/components/VCombobox/VCombobox.vue_vue_type_script_setup_true_lang.js.map +1 -1
  110. package/dist/components/VCombobox/VComboboxGroup.css +1 -1
  111. package/dist/components/VCombobox/VComboboxGroup.d.ts +0 -9
  112. package/dist/components/VCombobox/VComboboxGroup.js.map +1 -1
  113. package/dist/components/VCombobox/VComboboxGroup.vue_vue_type_script_setup_true_lang.js +1 -1
  114. package/dist/components/VCombobox/VComboboxGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  115. package/dist/components/VCombobox/VComboboxOption.css +1 -1
  116. package/dist/components/VCombobox/VComboboxOption.d.ts +0 -15
  117. package/dist/components/VCombobox/VComboboxOption.js.map +1 -1
  118. package/dist/components/VCombobox/VComboboxOption.vue_vue_type_script_setup_true_lang.js +4 -4
  119. package/dist/components/VCombobox/VComboboxOption.vue_vue_type_script_setup_true_lang.js.map +1 -1
  120. package/dist/components/VCombobox/VComboboxSeparator.js.map +1 -1
  121. package/dist/components/VCombobox/VComboboxSeparator.vue_vue_type_script_setup_true_lang.js.map +1 -1
  122. package/dist/components/VCombobox/infiniteScroll.js.map +1 -1
  123. package/dist/components/VDataTable/VDataTable.css +1 -1
  124. package/dist/components/VDataTable/VDataTable.d.ts +50 -28
  125. package/dist/components/VDataTable/VDataTable.js.map +1 -1
  126. package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js +183 -194
  127. package/dist/components/VDataTable/VDataTable.vue_vue_type_script_setup_true_lang.js.map +1 -1
  128. package/dist/components/VDateInput/VDateInput.css +1 -1
  129. package/dist/components/VDateInput/VDateInput.d.ts +90 -42
  130. package/dist/components/VDateInput/VDateInput.js.map +1 -1
  131. package/dist/components/VDateInput/VDateInput.vue_vue_type_script_setup_true_lang.js +159 -191
  132. package/dist/components/VDateInput/VDateInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  133. package/dist/components/VDatePicker/VDatePicker.css +1 -1
  134. package/dist/components/VDatePicker/VDatePicker.d.ts +61 -30
  135. package/dist/components/VDatePicker/VDatePicker.js.map +1 -1
  136. package/dist/components/VDatePicker/VDatePicker.vue_vue_type_script_setup_true_lang.js +243 -221
  137. package/dist/components/VDatePicker/VDatePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  138. package/dist/components/VDialog/VDialog.css +1 -1
  139. package/dist/components/VDialog/VDialog.d.ts +45 -33
  140. package/dist/components/VDialog/VDialog.js.map +1 -1
  141. package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js +65 -64
  142. package/dist/components/VDialog/VDialog.vue_vue_type_script_setup_true_lang.js.map +1 -1
  143. package/dist/components/VDialog/VDialogAlert.d.ts +24 -20
  144. package/dist/components/VDialog/VDialogAlert.js.map +1 -1
  145. package/dist/components/VDialog/VDialogAlert.vue_vue_type_script_setup_true_lang.js +36 -25
  146. package/dist/components/VDialog/VDialogAlert.vue_vue_type_script_setup_true_lang.js.map +1 -1
  147. package/dist/components/VFileInput/VFileInput.css +1 -1
  148. package/dist/components/VFileInput/VFileInput.d.ts +78 -26
  149. package/dist/components/VFileInput/VFileInput.js.map +1 -1
  150. package/dist/components/VFileInput/VFileInput.vue_vue_type_script_setup_true_lang.js +144 -132
  151. package/dist/components/VFileInput/VFileInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  152. package/dist/components/VFilePicker/VFilePicker.css +1 -1
  153. package/dist/components/VFilePicker/VFilePicker.d.ts +47 -30
  154. package/dist/components/VFilePicker/VFilePicker.js.map +1 -1
  155. package/dist/components/VFilePicker/VFilePicker.vue_vue_type_script_setup_true_lang.js +166 -163
  156. package/dist/components/VFilePicker/VFilePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  157. package/dist/components/VFilePicker/fileKind.d.ts +2 -27
  158. package/dist/components/VFilePicker/fileKind.js +9 -8
  159. package/dist/components/VFilePicker/fileKind.js.map +1 -1
  160. package/dist/components/VHotkeys/VHotkeys.css +1 -1
  161. package/dist/components/VHotkeys/VHotkeys.d.ts +8 -30
  162. package/dist/components/VHotkeys/VHotkeys.js.map +1 -1
  163. package/dist/components/VHotkeys/VHotkeys.vue_vue_type_script_setup_true_lang.js +4 -4
  164. package/dist/components/VHotkeys/VHotkeys.vue_vue_type_script_setup_true_lang.js.map +1 -1
  165. package/dist/components/VHotkeys/platform.js.map +1 -1
  166. package/dist/components/VIcon/VIcon.css +1 -1
  167. package/dist/components/VIcon/VIcon.d.ts +15 -6
  168. package/dist/components/VIcon/VIcon.js.map +1 -1
  169. package/dist/components/VIcon/VIcon.vue_vue_type_script_setup_true_lang.js +45 -37
  170. package/dist/components/VIcon/VIcon.vue_vue_type_script_setup_true_lang.js.map +1 -1
  171. package/dist/components/VIcon/iconProps.js.map +1 -1
  172. package/dist/components/VIcon/icons/index.d.ts +1 -1
  173. package/dist/components/VIcon/icons/index.js.map +1 -1
  174. package/dist/components/VIcon/icons/names.d.ts +1 -1
  175. package/dist/components/VIcon/icons/names.js.map +1 -1
  176. package/dist/components/VIcon/resolver.d.ts +3 -3
  177. package/dist/components/VIcon/resolver.js.map +1 -1
  178. package/dist/components/VIcon/types.d.ts +12 -12
  179. package/dist/components/VIconButton/VIconButton.css +1 -1
  180. package/dist/components/VIconButton/VIconButton.d.ts +28 -11
  181. package/dist/components/VIconButton/VIconButton.js.map +1 -1
  182. package/dist/components/VIconButton/VIconButton.vue_vue_type_script_setup_true_lang.js +26 -20
  183. package/dist/components/VIconButton/VIconButton.vue_vue_type_script_setup_true_lang.js.map +1 -1
  184. package/dist/components/VInput/VInput.css +1 -1
  185. package/dist/components/VInput/VInput.d.ts +26 -7
  186. package/dist/components/VInput/VInput.js.map +1 -1
  187. package/dist/components/VInput/VInput.vue_vue_type_script_setup_true_lang.js +86 -75
  188. package/dist/components/VInput/VInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  189. package/dist/components/VInput/VInputGroup.css +2 -0
  190. package/dist/components/VInput/VInputGroup.d.ts +47 -0
  191. package/dist/components/VInput/VInputGroup.js +9 -0
  192. package/dist/components/VInput/VInputGroup.js.map +1 -0
  193. package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js +80 -0
  194. package/dist/components/VInput/VInputGroup.vue_vue_type_script_setup_true_lang.js.map +1 -0
  195. package/dist/components/VInput/context.d.ts +11 -0
  196. package/dist/components/VInput/context.js +6 -0
  197. package/dist/components/VInput/context.js.map +1 -0
  198. package/dist/components/VInputOTP/VInputOTP.css +1 -1
  199. package/dist/components/VInputOTP/VInputOTP.d.ts +37 -22
  200. package/dist/components/VInputOTP/VInputOTP.js.map +1 -1
  201. package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js +98 -61
  202. package/dist/components/VInputOTP/VInputOTP.vue_vue_type_script_setup_true_lang.js.map +1 -1
  203. package/dist/components/VMenu/VMenu.d.ts +23 -30
  204. package/dist/components/VMenu/VMenu.js.map +1 -1
  205. package/dist/components/VMenu/VMenu.vue_vue_type_script_setup_true_lang.js +31 -27
  206. package/dist/components/VMenu/VMenu.vue_vue_type_script_setup_true_lang.js.map +1 -1
  207. package/dist/components/VMenu/VMenuGroup.css +1 -1
  208. package/dist/components/VMenu/VMenuGroup.d.ts +12 -8
  209. package/dist/components/VMenu/VMenuGroup.js.map +1 -1
  210. package/dist/components/VMenu/VMenuGroup.vue_vue_type_script_setup_true_lang.js +11 -11
  211. package/dist/components/VMenu/VMenuGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  212. package/dist/components/VMenu/VMenuItem.css +1 -1
  213. package/dist/components/VMenu/VMenuItem.d.ts +11 -19
  214. package/dist/components/VMenu/VMenuItem.js.map +1 -1
  215. package/dist/components/VMenu/VMenuItem.vue_vue_type_script_setup_true_lang.js +65 -57
  216. package/dist/components/VMenu/VMenuItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  217. package/dist/components/VMenu/VMenuPanel.d.ts +14 -30
  218. package/dist/components/VMenu/VMenuPanel.js.map +1 -1
  219. package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js +43 -44
  220. package/dist/components/VMenu/VMenuPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  221. package/dist/components/VMenu/context.d.ts +2 -6
  222. package/dist/components/VMenu/context.js.map +1 -1
  223. package/dist/components/VPagination/VPagination.css +1 -1
  224. package/dist/components/VPagination/VPagination.d.ts +60 -22
  225. package/dist/components/VPagination/VPagination.js.map +1 -1
  226. package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js +113 -161
  227. package/dist/components/VPagination/VPagination.vue_vue_type_script_setup_true_lang.js.map +1 -1
  228. package/dist/components/VPopover/VPopover.css +1 -1
  229. package/dist/components/VPopover/VPopover.d.ts +26 -7
  230. package/dist/components/VPopover/VPopover.js.map +1 -1
  231. package/dist/components/VPopover/VPopover.vue_vue_type_script_setup_true_lang.js +43 -37
  232. package/dist/components/VPopover/VPopover.vue_vue_type_script_setup_true_lang.js.map +1 -1
  233. package/dist/components/VProgressCircular/VProgressCircular.css +1 -1
  234. package/dist/components/VProgressCircular/VProgressCircular.d.ts +15 -4
  235. package/dist/components/VProgressCircular/VProgressCircular.js.map +1 -1
  236. package/dist/components/VProgressCircular/VProgressCircular.vue_vue_type_script_setup_true_lang.js +32 -30
  237. package/dist/components/VProgressCircular/VProgressCircular.vue_vue_type_script_setup_true_lang.js.map +1 -1
  238. package/dist/components/VProgressLinear/VProgressLinear.css +1 -1
  239. package/dist/components/VProgressLinear/VProgressLinear.d.ts +23 -8
  240. package/dist/components/VProgressLinear/VProgressLinear.js.map +1 -1
  241. package/dist/components/VProgressLinear/VProgressLinear.vue_vue_type_script_setup_true_lang.js +34 -32
  242. package/dist/components/VProgressLinear/VProgressLinear.vue_vue_type_script_setup_true_lang.js.map +1 -1
  243. package/dist/components/VRadio/VRadio.css +1 -1
  244. package/dist/components/VRadio/VRadio.d.ts +36 -18
  245. package/dist/components/VRadio/VRadio.js.map +1 -1
  246. package/dist/components/VRadio/VRadio.vue_vue_type_script_setup_true_lang.js +55 -26
  247. package/dist/components/VRadio/VRadio.vue_vue_type_script_setup_true_lang.js.map +1 -1
  248. package/dist/components/VSeparator/VSeparator.d.ts +4 -2
  249. package/dist/components/VSeparator/VSeparator.js.map +1 -1
  250. package/dist/components/VSeparator/VSeparator.vue_vue_type_script_setup_true_lang.js.map +1 -1
  251. package/dist/components/VSideNavigation/VSideNavigation.css +1 -1
  252. package/dist/components/VSideNavigation/VSideNavigation.d.ts +5 -19
  253. package/dist/components/VSideNavigation/VSideNavigation.js.map +1 -1
  254. package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js +5 -5
  255. package/dist/components/VSideNavigation/VSideNavigation.vue_vue_type_script_setup_true_lang.js.map +1 -1
  256. package/dist/components/VSideNavigation/VSideNavigationGroup.css +1 -1
  257. package/dist/components/VSideNavigation/VSideNavigationGroup.d.ts +9 -17
  258. package/dist/components/VSideNavigation/VSideNavigationGroup.js.map +1 -1
  259. package/dist/components/VSideNavigation/VSideNavigationGroup.vue_vue_type_script_setup_true_lang.js +2 -2
  260. package/dist/components/VSideNavigation/VSideNavigationGroup.vue_vue_type_script_setup_true_lang.js.map +1 -1
  261. package/dist/components/VSideNavigation/VSideNavigationItem.css +1 -1
  262. package/dist/components/VSideNavigation/VSideNavigationItem.d.ts +22 -30
  263. package/dist/components/VSideNavigation/VSideNavigationItem.js.map +1 -1
  264. package/dist/components/VSideNavigation/VSideNavigationItem.vue_vue_type_script_setup_true_lang.js +77 -87
  265. package/dist/components/VSideNavigation/VSideNavigationItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  266. package/dist/components/VSideNavigation/context.d.ts +0 -14
  267. package/dist/components/VSideNavigation/context.js.map +1 -1
  268. package/dist/components/VSkeletonLoader/VSkeletonLoader.css +1 -1
  269. package/dist/components/VSkeletonLoader/VSkeletonLoader.d.ts +9 -9
  270. package/dist/components/VSkeletonLoader/VSkeletonLoader.js.map +1 -1
  271. package/dist/components/VSkeletonLoader/VSkeletonLoader.vue_vue_type_script_setup_true_lang.js.map +1 -1
  272. package/dist/components/VSlider/VSlider.css +1 -1
  273. package/dist/components/VSlider/VSlider.d.ts +52 -27
  274. package/dist/components/VSlider/VSlider.js.map +1 -1
  275. package/dist/components/VSlider/VSlider.vue_vue_type_script_setup_true_lang.js +202 -118
  276. package/dist/components/VSlider/VSlider.vue_vue_type_script_setup_true_lang.js.map +1 -1
  277. package/dist/components/VSnackbar/VSnackbar.css +1 -1
  278. package/dist/components/VSnackbar/VSnackbar.d.ts +0 -23
  279. package/dist/components/VSnackbar/VSnackbar.js.map +1 -1
  280. package/dist/components/VSnackbar/VSnackbar.vue_vue_type_script_setup_true_lang.js +38 -38
  281. package/dist/components/VSnackbar/VSnackbar.vue_vue_type_script_setup_true_lang.js.map +1 -1
  282. package/dist/components/VSnackbar/state.d.ts +0 -27
  283. package/dist/components/VSnackbar/state.js.map +1 -1
  284. package/dist/components/VSpinner/VSpinner.css +1 -1
  285. package/dist/components/VSpinner/VSpinner.d.ts +6 -6
  286. package/dist/components/VSpinner/VSpinner.js.map +1 -1
  287. package/dist/components/VSpinner/VSpinner.vue_vue_type_script_setup_true_lang.js +10 -9
  288. package/dist/components/VSpinner/VSpinner.vue_vue_type_script_setup_true_lang.js.map +1 -1
  289. package/dist/components/VSwitch/VSwitch.css +1 -1
  290. package/dist/components/VSwitch/VSwitch.d.ts +35 -13
  291. package/dist/components/VSwitch/VSwitch.js.map +1 -1
  292. package/dist/components/VSwitch/VSwitch.vue_vue_type_script_setup_true_lang.js +62 -21
  293. package/dist/components/VSwitch/VSwitch.vue_vue_type_script_setup_true_lang.js.map +1 -1
  294. package/dist/components/VTabs/VTab.css +1 -1
  295. package/dist/components/VTabs/VTab.d.ts +12 -12
  296. package/dist/components/VTabs/VTab.js.map +1 -1
  297. package/dist/components/VTabs/VTab.vue_vue_type_script_setup_true_lang.js +36 -24
  298. package/dist/components/VTabs/VTab.vue_vue_type_script_setup_true_lang.js.map +1 -1
  299. package/dist/components/VTabs/VTabPanel.d.ts +2 -10
  300. package/dist/components/VTabs/VTabPanel.js.map +1 -1
  301. package/dist/components/VTabs/VTabPanel.vue_vue_type_script_setup_true_lang.js +4 -4
  302. package/dist/components/VTabs/VTabPanel.vue_vue_type_script_setup_true_lang.js.map +1 -1
  303. package/dist/components/VTabs/VTabs.css +1 -1
  304. package/dist/components/VTabs/VTabs.d.ts +27 -18
  305. package/dist/components/VTabs/VTabs.js.map +1 -1
  306. package/dist/components/VTabs/VTabs.vue_vue_type_script_setup_true_lang.js +92 -81
  307. package/dist/components/VTabs/VTabs.vue_vue_type_script_setup_true_lang.js.map +1 -1
  308. package/dist/components/VTabs/context.d.ts +9 -19
  309. package/dist/components/VTabs/context.js +1 -1
  310. package/dist/components/VTabs/context.js.map +1 -1
  311. package/dist/components/VTextarea/VTextarea.css +1 -1
  312. package/dist/components/VTextarea/VTextarea.d.ts +34 -6
  313. package/dist/components/VTextarea/VTextarea.js.map +1 -1
  314. package/dist/components/VTextarea/VTextarea.vue_vue_type_script_setup_true_lang.js +91 -74
  315. package/dist/components/VTextarea/VTextarea.vue_vue_type_script_setup_true_lang.js.map +1 -1
  316. package/dist/components/VTimeInput/VTimeInput.css +1 -1
  317. package/dist/components/VTimeInput/VTimeInput.d.ts +123 -33
  318. package/dist/components/VTimeInput/VTimeInput.js.map +1 -1
  319. package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js +294 -291
  320. package/dist/components/VTimeInput/VTimeInput.vue_vue_type_script_setup_true_lang.js.map +1 -1
  321. package/dist/components/VTimeInput/search.d.ts +24 -0
  322. package/dist/components/VTimeInput/search.js +22 -0
  323. package/dist/components/VTimeInput/search.js.map +1 -0
  324. package/dist/components/VTimePicker/VTimePicker.css +1 -1
  325. package/dist/components/VTimePicker/VTimePicker.d.ts +51 -30
  326. package/dist/components/VTimePicker/VTimePicker.js.map +1 -1
  327. package/dist/components/VTimePicker/VTimePicker.vue_vue_type_script_setup_true_lang.js +216 -151
  328. package/dist/components/VTimePicker/VTimePicker.vue_vue_type_script_setup_true_lang.js.map +1 -1
  329. package/dist/components/VTimePicker/limits.d.ts +88 -0
  330. package/dist/components/VTimePicker/limits.js +70 -0
  331. package/dist/components/VTimePicker/limits.js.map +1 -0
  332. package/dist/components/VToast/VToast.css +1 -1
  333. package/dist/components/VToast/VToast.d.ts +0 -10
  334. package/dist/components/VToast/VToast.js.map +1 -1
  335. package/dist/components/VToast/VToast.vue_vue_type_script_setup_true_lang.js +10 -10
  336. package/dist/components/VToast/VToast.vue_vue_type_script_setup_true_lang.js.map +1 -1
  337. package/dist/components/VToast/VToaster.css +1 -1
  338. package/dist/components/VToast/VToaster.d.ts +0 -17
  339. package/dist/components/VToast/VToaster.js.map +1 -1
  340. package/dist/components/VToast/VToaster.vue_vue_type_script_setup_true_lang.js +29 -28
  341. package/dist/components/VToast/VToaster.vue_vue_type_script_setup_true_lang.js.map +1 -1
  342. package/dist/components/VToast/state.d.ts +10 -19
  343. package/dist/components/VToast/state.js +1 -1
  344. package/dist/components/VToast/state.js.map +1 -1
  345. package/dist/components/VToggle/VToggle.css +1 -1
  346. package/dist/components/VToggle/VToggle.d.ts +56 -11
  347. package/dist/components/VToggle/VToggle.js.map +1 -1
  348. package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js +80 -46
  349. package/dist/components/VToggle/VToggle.vue_vue_type_script_setup_true_lang.js.map +1 -1
  350. package/dist/components/VToggle/VToggleItem.d.ts +16 -2
  351. package/dist/components/VToggle/VToggleItem.js +0 -2
  352. package/dist/components/VToggle/VToggleItem.js.map +1 -1
  353. package/dist/components/VToggle/VToggleItem.vue_vue_type_script_setup_true_lang.js +23 -15
  354. package/dist/components/VToggle/VToggleItem.vue_vue_type_script_setup_true_lang.js.map +1 -1
  355. package/dist/components/VToggle/context.d.ts +4 -24
  356. package/dist/components/VToggle/context.js.map +1 -1
  357. package/dist/components/VTooltip/VTooltip.css +1 -1
  358. package/dist/components/VTooltip/VTooltip.d.ts +9 -33
  359. package/dist/components/VTooltip/VTooltip.js.map +1 -1
  360. package/dist/components/VTooltip/VTooltip.vue_vue_type_script_setup_true_lang.js +28 -24
  361. package/dist/components/VTooltip/VTooltip.vue_vue_type_script_setup_true_lang.js.map +1 -1
  362. package/dist/components/VTypography/VTypography.js.map +1 -1
  363. package/dist/components/VTypography/VTypography.vue_vue_type_script_setup_true_lang.js.map +1 -1
  364. package/dist/composables/useAriaLabel.d.ts +0 -17
  365. package/dist/composables/useAriaLabel.js.map +1 -1
  366. package/dist/composables/useClearable.d.ts +42 -0
  367. package/dist/composables/useClearable.js +19 -0
  368. package/dist/composables/useClearable.js.map +1 -0
  369. package/dist/composables/useControlShape.d.ts +22 -0
  370. package/dist/composables/useControlShape.js +13 -0
  371. package/dist/composables/useControlShape.js.map +1 -0
  372. package/dist/composables/useDetailsOpen.d.ts +22 -0
  373. package/dist/composables/useDetailsOpen.js +21 -0
  374. package/dist/composables/useDetailsOpen.js.map +1 -0
  375. package/dist/composables/useFieldIds.d.ts +0 -15
  376. package/dist/composables/useFieldIds.js +8 -7
  377. package/dist/composables/useFieldIds.js.map +1 -1
  378. package/dist/composables/useFieldPanel.d.ts +21 -18
  379. package/dist/composables/useFieldPanel.js +43 -23
  380. package/dist/composables/useFieldPanel.js.map +1 -1
  381. package/dist/composables/useFileDrop.d.ts +0 -22
  382. package/dist/composables/useFileDrop.js.map +1 -1
  383. package/dist/composables/useFileField.d.ts +45 -17
  384. package/dist/composables/useFileField.js +40 -20
  385. package/dist/composables/useFileField.js.map +1 -1
  386. package/dist/composables/useFocusoutDismiss.d.ts +0 -15
  387. package/dist/composables/useFocusoutDismiss.js.map +1 -1
  388. package/dist/composables/useIconClickHandlers.d.ts +29 -14
  389. package/dist/composables/useIconClickHandlers.js +15 -5
  390. package/dist/composables/useIconClickHandlers.js.map +1 -1
  391. package/dist/composables/useInertLink.d.ts +20 -0
  392. package/dist/composables/useInertLink.js +23 -0
  393. package/dist/composables/useInertLink.js.map +1 -0
  394. package/dist/composables/useMaskedField.d.ts +33 -10
  395. package/dist/composables/useMaskedField.js +45 -1
  396. package/dist/composables/useMaskedField.js.map +1 -1
  397. package/dist/composables/usePopover.d.ts +15 -1
  398. package/dist/composables/usePopover.js +23 -8
  399. package/dist/composables/usePopover.js.map +1 -1
  400. package/dist/composables/useProgressValue.d.ts +5 -8
  401. package/dist/composables/useProgressValue.js +6 -3
  402. package/dist/composables/useProgressValue.js.map +1 -1
  403. package/dist/composables/useRootAttrs.d.ts +12 -19
  404. package/dist/composables/useRootAttrs.js.map +1 -1
  405. package/dist/composables/useTimer.d.ts +8 -10
  406. package/dist/composables/useTimer.js.map +1 -1
  407. package/dist/i18n/en.d.ts +2 -10
  408. package/dist/i18n/en.js +18 -19
  409. package/dist/i18n/en.js.map +1 -1
  410. package/dist/i18n/fr.d.ts +2 -18
  411. package/dist/i18n/fr.js +18 -19
  412. package/dist/i18n/fr.js.map +1 -1
  413. package/dist/i18n/state.d.ts +44 -47
  414. package/dist/i18n/state.js +20 -17
  415. package/dist/i18n/state.js.map +1 -1
  416. package/dist/i18n/types.d.ts +53 -44
  417. package/dist/icons.d.ts +3 -3
  418. package/dist/index.d.ts +43 -17
  419. package/dist/index.js +45 -44
  420. package/dist/styles.css +1 -1
  421. package/dist/tokens/css.js.map +1 -1
  422. package/dist/tokens/index.d.ts +5 -1
  423. package/dist/tokens/primitives.js.map +1 -1
  424. package/dist/tokens/semantic.d.ts +5 -1
  425. package/dist/tokens/semantic.js +6 -2
  426. package/dist/tokens/semantic.js.map +1 -1
  427. package/dist/tokens/themes/dark.js.map +1 -1
  428. package/dist/tokens/types.d.ts +7 -15
  429. package/dist/tokens/types.js.map +1 -1
  430. package/dist/tokens.json +25 -5
  431. package/dist/types.d.ts +24 -0
  432. package/dist/utils/array.d.ts +3 -6
  433. package/dist/utils/array.js.map +1 -1
  434. package/dist/utils/arrowNav.d.ts +17 -17
  435. package/dist/utils/arrowNav.js +5 -3
  436. package/dist/utils/arrowNav.js.map +1 -1
  437. package/dist/utils/chip.d.ts +11 -15
  438. package/dist/utils/chip.js.map +1 -1
  439. package/dist/utils/css.d.ts +22 -11
  440. package/dist/utils/css.js +5 -2
  441. package/dist/utils/css.js.map +1 -1
  442. package/dist/utils/date.d.ts +42 -19
  443. package/dist/utils/date.js +97 -98
  444. package/dist/utils/date.js.map +1 -1
  445. package/dist/utils/direction.d.ts +6 -12
  446. package/dist/utils/direction.js.map +1 -1
  447. package/dist/utils/env.d.ts +5 -6
  448. package/dist/utils/file.d.ts +46 -58
  449. package/dist/utils/file.js +43 -36
  450. package/dist/utils/file.js.map +1 -1
  451. package/dist/utils/focus.d.ts +8 -17
  452. package/dist/utils/focus.js.map +1 -1
  453. package/dist/utils/hostWarns.d.ts +12 -0
  454. package/dist/utils/hostWarns.js +6 -0
  455. package/dist/utils/hostWarns.js.map +1 -0
  456. package/dist/utils/ids.d.ts +10 -0
  457. package/dist/utils/ids.js +8 -0
  458. package/dist/utils/ids.js.map +1 -0
  459. package/dist/utils/matcher.d.ts +5 -9
  460. package/dist/utils/matcher.js.map +1 -1
  461. package/dist/utils/memo.d.ts +12 -0
  462. package/dist/utils/memo.js +9 -0
  463. package/dist/utils/memo.js.map +1 -0
  464. package/dist/utils/number.d.ts +3 -4
  465. package/dist/utils/number.js.map +1 -1
  466. package/dist/utils/text.d.ts +20 -9
  467. package/dist/utils/text.js +17 -3
  468. package/dist/utils/text.js.map +1 -1
  469. package/dist/utils/time.d.ts +53 -61
  470. package/dist/utils/time.js +49 -45
  471. package/dist/utils/time.js.map +1 -1
  472. package/dist/utils/vnode.d.ts +8 -15
  473. package/dist/utils/vnode.js.map +1 -1
  474. package/package.json +6 -6
  475. package/dist/components/VToggle/VToggleItem.css +0 -2
@@ -1,22 +1,18 @@
1
1
  import { useMessages as e } from "../../i18n/state.js";
2
- import { isRtl as t } from "../../utils/direction.js";
3
- import { clamp as n } from "../../utils/number.js";
4
- import { formatDisplay as r } from "../../utils/date.js";
5
- import { formatDisplay as i } from "../../utils/time.js";
6
- import a from "./VCalendarEvent.js";
7
- import { calendarIntent as o } from "./keyboard.js";
8
- import { useEdgeStep as s } from "./edgeStep.js";
9
- import { blockEdgeAt as c, floorToSlot as ee, fractionOf as te, inlineEdgeAt as ne, isAllDayEvent as re, minutesAt as l, moveEvent as ie, moveEventToDay as ae, packAllDay as oe, packDayColumn as se, pointToCell as u, pointWithin as ce, resizeEvent as le, snapToSlot as ue, timeOf as d, timedSegments as de, timesOf as fe } from "./layout.js";
10
- import { Fragment as f, computed as p, createBlock as pe, createCommentVNode as me, createElementBlock as m, createElementVNode as h, createSlots as he, createTextVNode as ge, defineComponent as g, mergeModels as _, mergeProps as _e, nextTick as ve, normalizeStyle as v, onBeforeUnmount as ye, openBlock as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, unref as be, useId as xe, useModel as Se, watch as Ce, withCtx as we } from "vue";
2
+ import { clamp as t } from "../../utils/number.js";
3
+ import { formatDateDisplay as n } from "../../utils/date.js";
4
+ import { formatTimeDisplay as r } from "../../utils/time.js";
5
+ import i from "./VCalendarEvent.js";
6
+ import { MINUTES_PER_DAY as a, blockEdgeAt as o, floorToSlot as s, fractionOf as c, isAllDayEvent as l, minutesAt as u, moveEventToDay as d, packAllDay as ee, packDayColumn as te, pointToCell as ne, sameTimes as re, snapToSlot as ie, spansMidnight as f, timeOf as p, timedSegments as ae, timesOf as m } from "./layout.js";
7
+ import { calendarIntent as oe } from "./keyboard.js";
8
+ import { gridGeometryOf as se, useCalendarGesture as ce } from "./gesture.js";
9
+ import { drawnSlot as le, moveTimedEvent as ue, resizeTimedEvent as de, roundToSlot as fe } from "./timeGrid.js";
10
+ import { Fragment as h, computed as g, createBlock as pe, createCommentVNode as me, createElementBlock as _, createElementVNode as v, createSlots as he, createTextVNode as ge, defineComponent as y, mergeModels as b, mergeProps as x, normalizeClass as _e, normalizeStyle as S, onBeforeUnmount as ve, openBlock as C, ref as w, renderList as T, renderSlot as E, toDisplayString as D, unref as O, useId as ye, useModel as be, withCtx as xe } from "vue";
11
11
  //#region src/components/VCalendar/VCalendarTimeGrid.vue?vue&type=script&setup=true&lang.ts
12
- var Te = ["data-outside"], Ee = { class: "v-calendar-head" }, De = ["data-today"], Oe = { class: "v-calendar-head-weekday" }, ke = { class: "v-calendar-head-number" }, Ae = { class: "v-calendar-allday-label" }, je = ["aria-label"], Me = {
12
+ var Se = ["data-outside", "data-gesture"], Ce = { class: "v-calendar-head" }, we = { class: "v-calendar-weekday" }, Te = { class: "v-calendar-allday-label" }, Ee = ["aria-label"], De = {
13
13
  class: "v-calendar-hours",
14
14
  "aria-hidden": "true"
15
- }, Ne = [
16
- "aria-label",
17
- "data-gesture",
18
- "data-edge"
19
- ], Pe = [
15
+ }, Oe = ["aria-label", "data-edge"], ke = [
20
16
  "id",
21
17
  "data-iso",
22
18
  "data-minutes",
@@ -24,18 +20,19 @@ var Te = ["data-outside"], Ee = { class: "v-calendar-head" }, De = ["data-today"
24
20
  "tabindex",
25
21
  "aria-label",
26
22
  "aria-selected"
27
- ], w = 60, T = "__vectis-calendar-draft__", Fe = "__vectis-calendar-ghost__", Ie = 14, Le = /*@__PURE__*/ g({
23
+ ], k = "__vectis-calendar-draft__", Ae = 14, je = /*@__PURE__*/ y({
28
24
  __name: "VCalendarTimeGrid",
29
- props: /*@__PURE__*/ _({
25
+ props: /*@__PURE__*/ b({
30
26
  days: {},
31
27
  events: {},
32
- window: {},
28
+ timeWindow: {},
33
29
  slotDuration: {},
34
30
  locale: {},
35
- hourFormat: {},
31
+ format: {},
36
32
  today: {},
37
33
  now: {},
38
34
  editable: { type: Boolean },
35
+ disabled: { type: Boolean },
39
36
  creatable: { type: Boolean },
40
37
  hintId: {},
41
38
  edgeStepDelay: {},
@@ -45,7 +42,7 @@ var Te = ["data-outside"], Ee = { class: "v-calendar-head" }, De = ["data-today"
45
42
  focused: { required: !0 },
46
43
  focusedModifiers: {}
47
44
  }),
48
- emits: /*@__PURE__*/ _([
45
+ emits: /*@__PURE__*/ b([
49
46
  "cell-activate",
50
47
  "event-activate",
51
48
  "event-drop",
@@ -53,569 +50,509 @@ var Te = ["data-outside"], Ee = { class: "v-calendar-head" }, De = ["data-today"
53
50
  "announce",
54
51
  "step"
55
52
  ], ["update:focused"]),
56
- setup(g, { expose: _, emit: Le }) {
57
- let E = g, D = Le, O = Se(g, "focused"), k = e(), Re = xe(), A = p(() => {
58
- let e = [];
59
- for (let t = E.window.start; t < E.window.end; t += w) e.push(t);
53
+ setup(y, { expose: b, emit: je }) {
54
+ let A = y, j = je, M = be(y, "focused"), N = e(), Me = ye(), P = g(() => {
55
+ let e = [], { start: t, end: n } = A.timeWindow;
56
+ for (let r = t; r < n; r += 60) e.push(r);
60
57
  return e;
61
- }), ze = (e) => `${Fe}${e}`, Be = (e) => String(e).slice(25), j = (e) => String(e).startsWith(Fe), M = b(null), N = p(() => M.value !== null && M.value.pointerId === null), P = p(() => {
62
- let e = M.value;
63
- if (!e?.moved) return null;
64
- let t = E.events.find((t) => t.id === e.id);
65
- return t ? {
66
- ...t,
67
- ...e.origin,
68
- id: ze(e.id)
69
- } : null;
70
- }), Ve = p(() => {
71
- let e = M.value, t = P.value;
72
- if (!t || !e?.ghostColumn) return null;
73
- let [n] = de([t], E.days, E.window, E.slotDuration);
74
- return n ? {
75
- ...n,
76
- ...e.ghostColumn
77
- } : null;
78
- }), He = p(() => {
79
- let e = M.value, t = P.value;
58
+ }), F = w(null), Ne = w(null), I = w(null), { gesture: L, ghostEvent: Pe, withPreview: Fe, edgeCue: Ie, isRtl: R, start: z, reapply: Le, endLastGesture: Re, consumeDrag: ze, onPointermove: Be, onPointerup: Ve, onPointercancel: He, onPointerleave: Ue, onCardKeydown: We, focusCell: Ge, idOfCard: Ke, cardState: qe } = ce({
59
+ events: () => A.events,
60
+ eventOf: (e) => H(e),
61
+ rootEl: F,
62
+ captureEl: F,
63
+ measureEl: I,
64
+ columns: () => A.days.length,
65
+ editable: () => A.editable,
66
+ hintId: () => A.hintId,
67
+ slotMinutes: () => A.slotDuration,
68
+ edgeStepDelay: () => A.edgeStepDelay,
69
+ layout: () => A.days,
70
+ applyPoint: bt,
71
+ onEdges: (e, t) => Tt(A.autoScroll && t ? o(e.lastY, t, 48) : 0),
72
+ onRelease: $,
73
+ onLetGo: (e) => e.kind === "create" ? (e.moved && j("slot-create", e.preview), !0) : !1,
74
+ onDrop: (e) => j("event-drop", e.id, e.preview, e.kind === "resize" ? "resize" : "move"),
75
+ grab: (e) => A.editable && !l(e) ? J({
76
+ kind: "move",
77
+ id: e.id,
78
+ origin: m(e),
79
+ pointerId: null,
80
+ originX: 0,
81
+ originY: 0,
82
+ grabOffset: 0,
83
+ grabColumn: 0
84
+ }) : null,
85
+ onGrabStep: wt,
86
+ step: (e) => j("step", e),
87
+ announce: (e) => j("announce", e)
88
+ }), Je = Object.freeze([]), Ye = g(() => {
89
+ let e = L.value, t = Pe.value, n = e?.ghostColumns;
90
+ return !t || !n ? Je : ae([t], A.days, A.timeWindow, A.slotDuration).flatMap((e) => {
91
+ let t = n[e.part];
92
+ return t ? [{
93
+ ...e,
94
+ ...t
95
+ }] : [];
96
+ });
97
+ }), Xe = g(() => {
98
+ let e = L.value, t = Pe.value;
80
99
  if (!t || e?.ghostLane == null) return null;
81
- let [n] = oe([t], E.days);
100
+ let [n] = ee([t], A.days);
82
101
  return n ? {
83
102
  ...n,
84
103
  lane: e.ghostLane
85
104
  } : null;
86
- }), F = p(() => {
87
- let e = M.value;
88
- if (!e) return E.events;
105
+ }), B = g(() => A.events.filter((e) => !l(e))), Ze = g(() => A.events.filter((e) => l(e))), Qe = g(() => {
106
+ let e = L.value;
107
+ if (!e || e.kind === "move-days") return B.value;
89
108
  if (e.kind === "create") {
109
+ if (!e.moved) return B.value;
90
110
  let t = {
91
- id: T,
92
- title: k.value.calendar.newEvent(E.events.length + 1),
111
+ id: k,
112
+ title: N.value.calendar.untitled,
93
113
  ...e.preview
94
114
  };
95
- return [...E.events, t];
115
+ return [...B.value, t];
96
116
  }
97
- let t = E.events.map((t) => t.id === e.id ? {
98
- ...t,
99
- ...e.preview
100
- } : t);
101
- return P.value ? [...t, P.value] : t;
102
- }), I = p(() => new Map(F.value.map((e) => [e.id, e]))), L = p(() => {
103
- let e = He.value, t = oe(e ? F.value.filter((t) => t.id !== e.id) : F.value, E.days);
117
+ return Fe(B.value);
118
+ }), V = g(() => L.value?.kind === "move-days" ? Fe(Ze.value) : Ze.value), $e = g(() => new Map(Qe.value.map((e) => [e.id, e]))), et = g(() => new Map(V.value.map((e) => [e.id, e]))), H = (e) => $e.value.get(e) ?? et.value.get(e), U = g(() => {
119
+ let e = Xe.value, t = ee(e ? V.value.filter((t) => t.id !== e.id) : V.value, A.days);
104
120
  return e ? [...t, e] : t;
105
- }), Ue = p(() => L.value.reduce((e, t) => Math.max(e, t.lane + 1), 0)), R = p(() => {
106
- if (E.now === null || E.today === null) return null;
107
- let e = E.days.indexOf(E.today);
108
- return e === -1 || E.now < E.window.start || E.now > E.window.end ? null : {
109
- dayIndex: e,
110
- cell: `${e}:${n(Math.floor((E.now - E.window.start) / w), 0, A.value.length - 1)}`,
111
- fraction: te(E.now, E.window)
121
+ }), tt = g(() => U.value.reduce((e, t) => Math.max(e, t.lane + 1), 0)), nt = (e) => t(Math.floor((e - A.timeWindow.start) / 60), 0, P.value.length - 1), W = g(() => {
122
+ if (A.now === null || A.today === null) return null;
123
+ let e = A.days.indexOf(A.today);
124
+ return e === -1 || A.now < A.timeWindow.start || A.now > A.timeWindow.end ? null : {
125
+ day: e,
126
+ row: nt(A.now),
127
+ fraction: c(A.now, A.timeWindow)
112
128
  };
113
- }), We = p(() => {
114
- let e = de(F.value, E.days, E.window, E.slotDuration), t = Ve.value, n = /* @__PURE__ */ new Map();
115
- for (let r of e) {
116
- if (t && r.id === t.id) continue;
117
- let e = n.get(r.dayIndex);
118
- e ? e.push(r) : n.set(r.dayIndex, [r]);
119
- }
120
- let r = [...n.values()].flatMap((e) => se(e));
121
- return t ? [...r, t] : r;
122
- }), Ge = p(() => {
123
- let e = /* @__PURE__ */ new Map();
124
- for (let t of We.value) {
125
- let r = Math.floor((t.start - E.window.start) / w), i = `${t.dayIndex}:${n(r, 0, A.value.length - 1)}`, a = e.get(i);
126
- a ? a.push(t) : e.set(i, [t]);
129
+ }), rt = g(() => {
130
+ let e = ae(Qe.value, A.days, A.timeWindow, A.slotDuration), t = Ye.value, n = t[0]?.id, r = /* @__PURE__ */ new Map();
131
+ for (let t of e) {
132
+ if (n !== void 0 && t.id === n) continue;
133
+ let e = r.get(t.dayIndex);
134
+ e ? e.push(t) : r.set(t.dayIndex, [t]);
127
135
  }
128
- return e;
129
- }), z = (e, t) => `${Re}-c-${e}-${t}`, B = p(() => {
136
+ let i = [...r.values()].flatMap((e) => te(e));
137
+ return t.length > 0 ? [...i, ...t] : i;
138
+ }), G = (e, t) => `${Me}-c-${e}-${t}`, K = g(() => {
130
139
  let e = /* @__PURE__ */ new Map();
131
- for (let t of E.days) e.set(t, {
132
- short: r(t, E.locale, { weekday: "short" }),
133
- number: r(t, E.locale, { day: "numeric" }),
134
- full: r(t, E.locale, {
140
+ for (let t of A.days) e.set(t, {
141
+ short: n(t, A.locale, { weekday: "short" }),
142
+ number: n(t, A.locale, { day: "numeric" }),
143
+ full: n(t, A.locale, {
135
144
  weekday: "long",
136
145
  day: "numeric",
137
146
  month: "long"
138
147
  })
139
148
  });
140
149
  return e;
141
- }), Ke = p(() => {
150
+ }), it = g(() => {
142
151
  let e = /* @__PURE__ */ new Map();
143
- for (let t of A.value) e.set(t, i(d(t), E.locale, E.hourFormat));
152
+ for (let t of P.value) e.set(t, r(p(t), A.locale, A.format));
144
153
  return e;
145
- }), qe = (e) => Ke.value.get(e) ?? i(d(e), E.locale, E.hourFormat), Je = (e, t) => t === "short" ? B.value.get(e)?.short ?? r(e, E.locale, { weekday: t }) : r(e, E.locale, { weekday: t }), Ye = (e) => B.value.get(e)?.number ?? r(e, E.locale, { day: "numeric" }), Xe = (e, t) => `${B.value.get(e)?.full ?? e}, ${qe(t)}`;
146
- function Ze(e) {
147
- let t = `${i(e.startTime, E.locale, E.hourFormat)} – ${i(e.endTime, E.locale, E.hourFormat)}`;
148
- return e.timezone ? `${t} (${e.timezone})` : t;
149
- }
150
- function Qe(e) {
151
- return {
152
- "--event-start": String(te(e.start, E.window)),
153
- "--event-end": String(te(e.end, E.window)),
154
- "--event-day": String(e.dayIndex),
155
- "--event-column": String(e.column),
156
- "--event-span": String(e.span),
157
- "--event-columns": String(e.columns)
154
+ }), at = (e) => it.value.get(e) ?? "", ot = (e) => K.value.get(e)?.short ?? "", st = (e) => K.value.get(e)?.number ?? "", ct = g(() => {
155
+ let e = A.days.length;
156
+ return P.value.map((t, n) => ({
157
+ minutes: t,
158
+ cells: A.days.map((r, i) => ({
159
+ iso: r,
160
+ day: i,
161
+ row: n,
162
+ key: n * e + i,
163
+ id: G(r, t),
164
+ label: `${K.value.get(r)?.full ?? r}, ${at(t)}`
165
+ }))
166
+ }));
167
+ }), lt = g(() => {
168
+ let { locale: e, format: t } = A, n = /* @__PURE__ */ new Map();
169
+ return (i) => {
170
+ let a = `${i.startTime}|${i.endTime}|${i.timezone ?? ""}`, o = n.get(a);
171
+ if (o === void 0) {
172
+ let s = `${r(i.startTime, e, t)} – ${r(i.endTime, e, t)}`;
173
+ o = i.timezone ? `${s} (${i.timezone})` : s, n.set(a, o);
174
+ }
175
+ return o;
158
176
  };
159
- }
160
- let $e = (e, t) => O.value.iso === e && O.value.minutes === t, et = p(() => {
161
- let e = E.days[0];
162
- return e ? {
163
- iso: e,
164
- minutes: E.window.start
165
- } : null;
166
- }), V = p(() => {
167
- let e = O.value;
168
- if (E.days.includes(e.iso)) {
169
- let t = Math.floor((e.minutes - E.window.start) / w) * w + E.window.start;
170
- if (t >= E.window.start && t < E.window.end) return {
177
+ }), ut = g(() => {
178
+ let e = /* @__PURE__ */ new Map(), t = A.days.length, n = $e.value, r = lt.value;
179
+ for (let i of rt.value) {
180
+ let a = n.get(i.id);
181
+ if (!a) continue;
182
+ let o = nt(i.start) * t + i.dayIndex, s = {
183
+ segment: i,
184
+ event: a,
185
+ timeText: r(a),
186
+ style: {
187
+ "--calendar-day-index": String(i.dayIndex),
188
+ "--calendar-block-start-fraction": String(c(i.start, A.timeWindow)),
189
+ "--calendar-block-end-fraction": String(c(i.end, A.timeWindow)),
190
+ "--calendar-block-column": String(i.column),
191
+ "--calendar-block-span": String(i.span),
192
+ "--calendar-block-columns": String(i.columns)
193
+ }
194
+ }, l = e.get(o);
195
+ l ? l.push(s) : e.set(o, [s]);
196
+ }
197
+ return e;
198
+ }), dt = Object.freeze([]), ft = (e) => ut.value.get(e) ?? dt, pt = (e, t) => M.value.iso === e && M.value.minutes === t, q = g(() => {
199
+ let e = M.value, { start: t, end: n } = A.timeWindow;
200
+ if (A.days.includes(e.iso)) {
201
+ let r = Math.floor((e.minutes - t) / 60) * 60 + t;
202
+ if (r >= t && r < n) return {
171
203
  iso: e.iso,
172
- minutes: t
204
+ minutes: r
173
205
  };
174
206
  }
175
- return et.value;
176
- }), tt = (e, t) => V.value?.iso === e && V.value.minutes === t;
177
- function nt(e, t) {
178
- O.value = {
207
+ let r = A.days[0];
208
+ return r ? {
209
+ iso: r,
210
+ minutes: t
211
+ } : null;
212
+ }), mt = (e, t) => q.value?.iso === e && q.value.minutes === t;
213
+ function ht(e, t) {
214
+ M.value = {
179
215
  iso: e,
180
216
  minutes: t
181
- }, ve(() => document.getElementById(z(e, t))?.focus());
217
+ }, Ge(G(e, t), !0);
182
218
  }
183
- function rt(e) {
184
- let t = e.target, r = t?.closest(".v-calendar-event");
219
+ function gt(e) {
220
+ let t = r(e.startTime, A.locale, A.format), i = r(e.endTime, A.locale, A.format);
221
+ return `${n(e.start, A.locale, {
222
+ weekday: "long",
223
+ day: "numeric",
224
+ month: "long"
225
+ })}, ${t} – ${i}`;
226
+ }
227
+ function _t(e) {
228
+ let n = e.target, r = n?.closest(".v-calendar-event");
185
229
  if (r) {
186
- xt(e, r);
230
+ We(e, r);
187
231
  return;
188
232
  }
189
- let i = t?.closest(".v-calendar-cell");
233
+ let i = n?.closest(".v-calendar-cell");
190
234
  if (!i) return;
191
- let a = o(e.key, e.shiftKey, "cell", E.slotDuration, $());
235
+ let a = oe(e.key, e.shiftKey, "cell", A.slotDuration, R());
192
236
  if (!a) return;
193
- let s = i.dataset.iso, c = Number(i.dataset.minutes), ee = E.days.indexOf(s);
237
+ let o = i.dataset.iso, s = Number(i.dataset.minutes), c = A.days.indexOf(o);
194
238
  if (a.kind === "moveFocus") {
195
- let t = E.days[n(ee + a.days, 0, E.days.length - 1)], r = n(c + a.minutes, E.window.start, E.window.end - w);
196
- e.preventDefault(), nt(t, r);
239
+ let n = A.days[t(c + a.days, 0, A.days.length - 1)], r = t(s + a.minutes, A.timeWindow.start, A.timeWindow.end - 60);
240
+ e.preventDefault(), ht(n, r);
197
241
  return;
198
242
  }
199
243
  if (a.kind === "rowEdge") {
200
- let t = a.edge === "start" ? E.days[0] : E.days.at(-1);
244
+ let t = a.edge === "start" ? A.days[0] : A.days.at(-1);
201
245
  if (!t) return;
202
- e.preventDefault(), nt(t, c);
246
+ e.preventDefault(), ht(t, s);
203
247
  return;
204
248
  }
205
249
  if (a.kind === "period") {
206
- e.preventDefault(), D("step", a.delta);
250
+ e.preventDefault(), j("step", a.delta);
207
251
  return;
208
252
  }
209
- a.kind === "activate" && (e.preventDefault(), D("cell-activate", s, c));
253
+ a.kind === "activate" && (e.preventDefault(), j("cell-activate", {
254
+ date: o,
255
+ minutes: s
256
+ }));
210
257
  }
211
- function H(e, t) {
212
- let n = We.value.find((t) => t.id === e.id), r = L.value.find((t) => t.id === e.id);
213
- if (M.value = {
258
+ function J(e) {
259
+ let t = rt.value.filter((t) => t.id === e.id), n = U.value.find((t) => t.id === e.id);
260
+ return {
214
261
  ...e,
215
- preview: { ...e.origin },
216
- lastX: e.originX,
217
- lastY: e.originY,
218
- ghostColumn: n ? {
219
- column: n.column,
220
- span: n.span,
221
- columns: n.columns
222
- } : null,
223
- ghostLane: r ? r.lane : null,
224
- moved: !1,
225
- outside: !1
226
- }, t) try {
227
- X.value?.setPointerCapture(t.pointerId);
228
- } catch {}
262
+ ghostColumns: t.length > 0 ? Object.fromEntries(t.map((e) => [e.part, {
263
+ column: e.column,
264
+ span: e.span,
265
+ columns: e.columns
266
+ }])) : null,
267
+ ghostLane: n ? n.lane : null
268
+ };
229
269
  }
230
- function it(e) {
231
- if (ht(), M.value || e.button !== 0) return;
232
- let t = e.target;
233
- if (!t) return;
234
- let n = Z.value?.getBoundingClientRect();
235
- if (!n) return;
236
- let r = u({
237
- x: e.clientX,
238
- y: e.clientY
239
- }, Q(n), E.window, $()), i = t.closest(".v-calendar-event");
240
- if (i) {
241
- if (!E.editable) return;
242
- let n = I.value.get(U(i));
243
- if (!n || re(n)) return;
244
- let a = t.closest("[data-calendar-handle]") !== null;
245
- H({
246
- kind: a ? "resize" : "move",
270
+ let Y = (e, t, n, r) => ne({
271
+ x: e,
272
+ y: t
273
+ }, se(n, A.days.length, r), A.timeWindow, r);
274
+ function vt(e) {
275
+ if (Re(), L.value || e.button !== 0) return;
276
+ let t = e.target, n = I.value?.getBoundingClientRect();
277
+ if (!t || !n) return;
278
+ let r = R(), i = Y(e.clientX, e.clientY, n, r), o = t.closest(".v-calendar-event");
279
+ if (o) {
280
+ if (!A.editable) return;
281
+ let n = H(Ke(o));
282
+ if (!n || l(n)) return;
283
+ let s = t.closest("[data-calendar-handle]") !== null, c = f(n) && A.days[i.columnIndex] === n.end;
284
+ z(J({
285
+ kind: s ? "resize" : "move",
247
286
  id: n.id,
248
- origin: fe(n),
287
+ origin: m(n),
249
288
  pointerId: e.pointerId,
250
289
  originX: e.clientX,
251
290
  originY: e.clientY,
252
- grabOffset: a ? 0 : r.minutes - l(n.startTime, E.window.start),
253
- grabColumn: r.columnIndex
254
- }, e);
291
+ grabOffset: s ? 0 : (c ? a : 0) + i.minutes - u(n.startTime, A.timeWindow.start),
292
+ grabColumn: i.columnIndex
293
+ }), r);
255
294
  return;
256
295
  }
257
- if (!E.creatable || !t.closest(".v-calendar-cell")) return;
258
- let a = E.days[r.columnIndex];
259
- if (!a) return;
260
- let o = ee(r.minutes, E.slotDuration);
261
- H({
296
+ if (!A.creatable || !t.closest(".v-calendar-cell")) return;
297
+ let c = A.days[i.columnIndex];
298
+ if (!c) return;
299
+ let d = s(i.minutes, A.slotDuration);
300
+ z(J({
262
301
  kind: "create",
263
- id: T,
302
+ id: k,
264
303
  origin: {
265
- start: a,
266
- end: a,
267
- startTime: d(o),
268
- endTime: d(Math.min(o + E.slotDuration, E.window.end))
304
+ start: c,
305
+ end: c,
306
+ startTime: p(d),
307
+ endTime: p(Math.min(d + A.slotDuration, A.timeWindow.end))
269
308
  },
270
309
  pointerId: e.pointerId,
271
310
  originX: e.clientX,
272
311
  originY: e.clientY,
273
312
  grabOffset: 0,
274
- grabColumn: r.columnIndex
275
- }, e);
313
+ grabColumn: i.columnIndex
314
+ }), r);
276
315
  }
277
- function at(e) {
278
- if (ht(), M.value || !E.editable || e.button !== 0) return;
279
- let t = e.target?.closest(".v-calendar-event");
280
- if (!t) return;
281
- let n = I.value.get(U(t));
282
- if (!n) return;
283
- let r = Z.value?.getBoundingClientRect();
284
- if (!r) return;
285
- let i = u({
286
- x: e.clientX,
287
- y: e.clientY
288
- }, Q(r), E.window, $());
289
- H({
316
+ function yt(e) {
317
+ if (Re(), L.value || !A.editable || e.button !== 0) return;
318
+ let t = e.target?.closest(".v-calendar-event"), n = t ? H(Ke(t)) : void 0, r = I.value?.getBoundingClientRect();
319
+ if (!n || !r) return;
320
+ let i = R();
321
+ z(J({
290
322
  kind: "move-days",
291
323
  id: n.id,
292
- origin: fe(n),
324
+ origin: m(n),
293
325
  pointerId: e.pointerId,
294
326
  originX: e.clientX,
295
327
  originY: e.clientY,
296
328
  grabOffset: 0,
297
- grabColumn: i.columnIndex
298
- }, e);
299
- }
300
- function U(e) {
301
- let t = e.dataset.eventId ?? "";
302
- return I.value.has(t) ? t : Number(t);
303
- }
304
- function ot(e) {
305
- let t = M.value;
306
- !t || t.pointerId !== e.pointerId || (t.lastX = e.clientX, t.lastY = e.clientY, !(!t.moved && Math.abs(e.clientX - t.originX) < 3 && Math.abs(e.clientY - t.originY) < 3) && (t.moved = !0, t.outside = st(t), W(t), lt(t)));
307
- }
308
- function st(e) {
309
- let t = X.value?.getBoundingClientRect();
310
- return t ? !ce({
311
- x: e.lastX,
312
- y: e.lastY
313
- }, t) : !1;
329
+ grabColumn: Y(e.clientX, e.clientY, r, i).columnIndex
330
+ }), i);
314
331
  }
315
- function W(e) {
316
- let t = Z.value?.getBoundingClientRect();
317
- if (!t) return;
318
- let r = u({
319
- x: e.lastX,
320
- y: e.lastY
321
- }, Q(t), E.window, $());
322
- if (e.kind === "move-days") {
323
- let t = n(mt(e) + (r.columnIndex - e.grabColumn), 0, E.days.length - 1), i = E.days[t];
324
- i && (e.preview = ae(e.origin, i));
332
+ function bt(e, n) {
333
+ let r = Y(e.lastX, e.lastY, n, e.rtl), i = f(e.origin), a = e.kind === "create" || e.kind === "resize" && !i ? 0 : r.columnIndex, o = e.kind === "move-days" ? 0 : e.kind === "move" ? fe(r.minutes - e.grabOffset, A.slotDuration) : e.kind === "create" ? s(r.minutes, A.slotDuration) : ie(r.minutes, A.slotDuration);
334
+ if (St(e, a, o)) return;
335
+ if (e.kind === "create") {
336
+ let t = u(e.origin.startTime, A.timeWindow.start);
337
+ X(e, le(e.origin.start, t, o, A.slotDuration, A.timeWindow));
325
338
  return;
326
339
  }
327
- if (e.kind === "move") {
328
- let t = n(mt(e) + (r.columnIndex - e.grabColumn), 0, E.days.length - 1), i = E.days[t], a = ue(r.minutes - e.grabOffset, E.slotDuration) - l(e.origin.startTime, E.window.start);
329
- e.preview = {
330
- ...ie(e.origin, 0, a, E.window),
331
- start: i,
332
- end: i
333
- };
340
+ if (e.kind === "resize") {
341
+ let t = A.days[a] ?? e.origin.end;
342
+ X(e, de(e.origin, t, o, A.slotDuration, A.timeWindow, i));
334
343
  return;
335
344
  }
336
- e.preview = le(e.origin, ue(r.minutes, E.slotDuration), E.slotDuration, E.window);
337
- }
338
- let G = s((e) => D("step", e), () => E.edgeStepDelay), ct = p(() => G.pending.value === -1 ? "start" : G.pending.value === 1 ? "end" : void 0);
339
- function lt(e) {
340
- let t = Z.value?.getBoundingClientRect(), n = X.value?.getBoundingClientRect();
341
- !t || !n || (G.watchEdge(ne(e.lastX, Q(t), 48, $())), ut(E.autoScroll ? c(e.lastY, n, 48) : 0));
342
- }
343
- let K = null, q = 0;
344
- function ut(e) {
345
- if (q = e, e === 0) {
346
- ft();
345
+ if (e.kind === "move-days") {
346
+ let n = t(Ct(e) + (a - e.grabColumn), 0, A.days.length - 1), r = A.days[n];
347
+ r && X(e, d(e.origin, r));
347
348
  return;
348
349
  }
349
- K ??= requestAnimationFrame(dt);
350
- }
351
- function dt() {
352
- K = null;
353
- let e = X.value, t = M.value;
354
- !e || !t || q === 0 || (e.scrollTop += q * Ie, W(t), K = requestAnimationFrame(dt));
350
+ let c = A.days[a];
351
+ c && X(e, ue(e.origin, c, o, A.timeWindow, i));
355
352
  }
356
- function ft() {
357
- K !== null && cancelAnimationFrame(K), K = null, q = 0;
353
+ let xt = null;
354
+ function St(e, t, n) {
355
+ let r = xt;
356
+ return r?.state === e && r.days === A.days && r.timeWindow === A.timeWindow && r.step === A.slotDuration && r.column === t && r.minutes === n ? !0 : (xt = {
357
+ state: e,
358
+ days: A.days,
359
+ timeWindow: A.timeWindow,
360
+ step: A.slotDuration,
361
+ column: t,
362
+ minutes: n
363
+ }, !1);
358
364
  }
359
- function pt() {
360
- G.cancel(), ft();
365
+ function X(e, t) {
366
+ re(e.preview, t) || (e.preview = t);
361
367
  }
362
- ye(ft), Ce(() => E.days, () => {
363
- let e = M.value;
364
- e?.moved && W(e);
365
- }, { flush: "post" });
366
- function mt(e) {
367
- let t = E.days.indexOf(e.origin.start);
368
+ function Ct(e) {
369
+ let t = A.days.indexOf(e.origin.start);
368
370
  return t === -1 ? e.grabColumn : t;
369
371
  }
370
- let J = !1;
371
- function ht() {
372
- J = !1;
373
- }
374
- function gt(e) {
375
- let t = M.value;
376
- if (!(!t || t.pointerId !== e.pointerId) && (M.value = null, J = t.moved, pt(), !t.outside)) {
377
- if (t.kind === "create") {
378
- D("slot-create", t.preview);
379
- return;
380
- }
381
- t.moved && D("event-drop", t.id, t.preview, t.kind === "resize" ? "resize" : "move");
372
+ function wt(e, n, r) {
373
+ let i = f(e.origin);
374
+ if (n.kind === "grabResize") e.preview = de(e.preview, e.preview.end, u(e.preview.endTime, A.timeWindow.end) + n.minutes, A.slotDuration, A.timeWindow, i);
375
+ else {
376
+ let r = n.days === 0 ? e.preview.start : A.days[t(A.days.indexOf(e.preview.start) + n.days, 0, A.days.length - 1)] ?? e.preview.start;
377
+ e.preview = ue(e.preview, r, u(e.preview.startTime, A.timeWindow.start) + n.minutes, A.timeWindow, i);
382
378
  }
379
+ return j("announce", N.value.calendar.movedTo(r.title, gt(e.preview))), !0;
383
380
  }
384
- function _t(e) {
385
- if (J) {
386
- J = !1;
381
+ let Z = null, Q = 0;
382
+ function Tt(e) {
383
+ if (Q = e, e === 0) {
384
+ $();
387
385
  return;
388
386
  }
389
- let t = I.value.get(e);
390
- t && e !== T && D("event-activate", t);
387
+ Z ??= requestAnimationFrame(Et);
391
388
  }
392
- function vt(e) {
393
- if (E.creatable) return;
394
- let t = e.target;
395
- if (t?.closest(".v-calendar-event")) return;
396
- let n = t?.closest(".v-calendar-cell");
397
- n && D("cell-activate", n.dataset.iso, Number(n.dataset.minutes));
389
+ function Et() {
390
+ Z = null;
391
+ let e = F.value, t = L.value;
392
+ !e || !t || Q === 0 || (e.scrollTop += Q * Ae, Le(t), Z = requestAnimationFrame(Et));
398
393
  }
399
- function yt() {
400
- M.value = null, pt();
394
+ function $() {
395
+ Z !== null && cancelAnimationFrame(Z), Z = null, Q = 0;
401
396
  }
402
- function bt(e, t) {
403
- let n = i(t.startTime, E.locale, E.hourFormat), a = i(t.endTime, E.locale, E.hourFormat), o = r(t.start, E.locale, {
404
- weekday: "long",
405
- day: "numeric",
406
- month: "long"
407
- });
408
- D("announce", k.value.calendar.movedTo(e, `${o}, ${n} – ${a}`));
397
+ ve($);
398
+ function Dt(e) {
399
+ if (ze()) return;
400
+ let t = H(e);
401
+ t && e !== k && j("event-activate", t);
409
402
  }
410
- function Y(e) {
411
- ve(() => {
412
- let t = Z.value?.querySelectorAll(".v-calendar-event");
413
- Array.from(t ?? []).find((t) => t.dataset.eventId === String(e))?.focus();
403
+ function Ot(e) {
404
+ let t = e.target;
405
+ if (t?.closest(".v-calendar-event") || ze()) return;
406
+ let n = t?.closest(".v-calendar-cell");
407
+ n && j("cell-activate", {
408
+ date: n.dataset.iso,
409
+ minutes: Number(n.dataset.minutes)
414
410
  });
415
411
  }
416
- function xt(e, t) {
417
- let r = I.value.get(U(t));
418
- if (!r) return;
419
- let i = N.value && M.value?.id === r.id, a = o(e.key, e.shiftKey, i ? "grabbed" : "event", E.slotDuration, $());
420
- if (!a) return;
421
- if (!i) {
422
- if (a.kind !== "activate" || !E.editable || re(r)) return;
423
- e.preventDefault(), H({
424
- kind: "move",
425
- id: r.id,
426
- origin: fe(r),
427
- pointerId: null,
428
- originX: 0,
429
- originY: 0,
430
- grabOffset: 0,
431
- grabColumn: 0
432
- }), D("announce", k.value.calendar.grabbed);
433
- return;
434
- }
435
- let s = M.value;
436
- if (e.preventDefault(), a.kind === "grabResize") {
437
- s.preview = le(s.preview, l(s.preview.endTime, E.window.end) + a.minutes, E.slotDuration, E.window), s.moved = !0, bt(r.title, s.preview), Y(s.id);
438
- return;
439
- }
440
- if (a.kind === "grabMove") {
441
- let e = n(E.days.indexOf(s.preview.start) + a.days, 0, E.days.length - 1), t = E.days[e] ?? s.preview.start;
442
- s.preview = {
443
- ...ie(s.preview, 0, a.minutes, E.window),
444
- start: t,
445
- end: t
446
- }, s.moved = !0, bt(r.title, s.preview), Y(s.id);
447
- return;
412
+ let kt = g(() => {
413
+ let e = L.value;
414
+ if (!(!e || e.pointerId === null)) {
415
+ if (e.kind === "resize") return "resize";
416
+ if (e.kind === "create" && e.moved) return "create";
448
417
  }
449
- if (a.kind === "activate") {
450
- M.value = null, s.moved && D("event-drop", s.id, s.preview, s.kind === "resize" ? "resize" : "move"), D("announce", k.value.calendar.dropped), Y(s.id);
451
- return;
452
- }
453
- a.kind === "cancel" && (M.value = null, D("announce", k.value.calendar.reverted), Y(s.id));
454
- }
455
- let X = b(null), St = b(null), Z = b(null);
456
- function Q(e) {
457
- let t = $();
458
- return {
459
- top: e.top,
460
- height: e.height,
461
- inlineStart: t ? e.right : e.left,
462
- inlineSize: e.width,
463
- columns: E.days.length
464
- };
418
+ });
419
+ function At(e) {
420
+ let t = F.value, n = Ne.value;
421
+ if (!t || !n || P.value.length === 0) return;
422
+ let r = n.offsetHeight / P.value.length;
423
+ r <= 0 || (t.scrollTop = (e - A.timeWindow.start) / 60 * r);
465
424
  }
466
- let $ = () => t(Z.value);
467
- function Ct(e) {
468
- let t = X.value, n = St.value;
469
- if (!t || !n || A.value.length === 0) return;
470
- let r = n.offsetHeight / A.value.length;
471
- r <= 0 || (t.scrollTop = (e - E.window.start) / w * r);
472
- }
473
- function wt() {
474
- let e = V.value;
475
- e && document.getElementById(z(e.iso, e.minutes))?.focus();
476
- }
477
- return _({
478
- focus: wt,
479
- scrollToMinutes: Ct
480
- }), (e, t) => (y(), m("div", {
425
+ return b({
426
+ focus: () => {
427
+ let e = q.value;
428
+ e && Ge(G(e.iso, e.minutes));
429
+ },
430
+ scrollToMinutes: At
431
+ }), (e, t) => (C(), _("div", {
481
432
  ref_key: "rootEl",
482
- ref: X,
483
- class: "v-calendar-grid",
484
- "data-outside": M.value?.outside ? "" : void 0,
485
- style: v({ "--calendar-columns": String(g.days.length) }),
486
- onPointermove: ot,
487
- onPointerup: gt,
488
- onPointercancel: yt
489
- }, [h("div", Ee, [
490
- t[0] ||= h("div", { class: "v-calendar-head-gutter" }, null, -1),
491
- (y(!0), m(f, null, x(g.days, (t) => (y(), m("div", {
433
+ ref: F,
434
+ class: "v-calendar-time-grid",
435
+ "data-outside": O(L)?.outside ? "" : void 0,
436
+ "data-gesture": kt.value,
437
+ style: S({ "--calendar-columns": String(y.days.length) }),
438
+ onPointermove: t[0] ||= (...e) => O(Be) && O(Be)(...e),
439
+ onPointerup: t[1] ||= (...e) => O(Ve) && O(Ve)(...e),
440
+ onPointercancel: t[2] ||= (...e) => O(He) && O(He)(...e),
441
+ onPointerleave: t[3] ||= (...e) => O(Ue) && O(Ue)(...e)
442
+ }, [v("div", Ce, [
443
+ t[4] ||= v("div", { class: "v-calendar-head-gutter" }, null, -1),
444
+ (C(!0), _(h, null, T(y.days, (t) => (C(), _("div", {
492
445
  key: t,
493
- class: "v-calendar-head-day",
494
- "data-today": t === g.today ? "" : void 0
495
- }, [S(e.$slots, "day-header", {
446
+ class: "v-calendar-head-day"
447
+ }, [E(e.$slots, "day-header", {
496
448
  iso: t,
497
- weekday: Je(t, "short"),
498
- day: Ye(t),
499
- today: t === g.today
500
- }, () => [h("span", Oe, C(Je(t, "short")), 1), h("span", ke, C(Ye(t)), 1)])], 8, De))), 128)),
501
- L.value.length > 0 ? (y(), m(f, { key: 0 }, [h("div", Ae, [S(e.$slots, "all-day-label", {}, () => [ge(C(be(k).calendar.allDay), 1)])]), h("div", {
449
+ weekday: ot(t),
450
+ dayText: st(t),
451
+ today: t === y.today
452
+ }, () => [v("span", we, D(ot(t)), 1), v("span", { class: _e(["v-calendar-head-number", { "v-calendar-today": t === y.today }]) }, D(st(t)), 3)])]))), 128)),
453
+ U.value.length > 0 ? (C(), _(h, { key: 0 }, [v("div", Te, [E(e.$slots, "all-day-label", {}, () => [ge(D(O(N).calendar.allDay), 1)])]), v("div", {
502
454
  class: "v-calendar-allday",
503
455
  role: "group",
504
- "aria-label": be(k).calendar.allDay,
505
- style: v({ "--calendar-lanes": String(Ue.value) }),
506
- onPointerdown: at
507
- }, [(y(!0), m(f, null, x(L.value, (t) => (y(), pe(a, {
456
+ "aria-label": O(N).calendar.allDay,
457
+ style: S({ "--calendar-lanes": String(tt.value) }),
458
+ onPointerdown: yt
459
+ }, [(C(!0), _(h, null, T(U.value, (t) => (C(), pe(i, x({
508
460
  key: t.id,
509
461
  class: "v-calendar-bar",
510
- event: I.value.get(t.id),
462
+ event: et.value.get(t.id),
511
463
  layout: "chip",
464
+ disabled: y.disabled,
512
465
  "continues-before": t.continuesBefore,
513
- "continues-after": t.continuesAfter,
514
- dragging: M.value?.id === t.id && M.value.pointerId !== null,
515
- rejected: M.value?.id === t.id && M.value.outside,
516
- grabbed: N.value && M.value?.id === t.id,
517
- "hint-id": g.editable && !j(t.id) ? g.hintId : void 0,
518
- "ghost-of": j(t.id) ? Be(t.id) : void 0,
519
- style: v({
520
- "--event-day": String(t.startIndex),
521
- "--event-span": String(t.span),
522
- "--event-lane": String(t.lane)
523
- }),
524
- onClick: (e) => _t(t.id)
525
- }, he({ _: 2 }, [e.$slots.event ? {
466
+ "continues-after": t.continuesAfter
467
+ }, { ref_for: !0 }, O(qe)(t.id), {
468
+ style: {
469
+ "--calendar-day-index": String(t.startIndex),
470
+ "--calendar-bar-span": String(t.span),
471
+ "--calendar-bar-lane": String(t.lane)
472
+ },
473
+ onClick: (e) => Dt(t.id)
474
+ }), he({ _: 2 }, [e.$slots.event ? {
526
475
  name: "default",
527
- fn: we((t) => [S(e.$slots, "event", _e({ ref_for: !0 }, t))]),
476
+ fn: xe((t) => [E(e.$slots, "event", x({ ref_for: !0 }, t))]),
528
477
  key: "0"
529
- } : void 0]), 1032, [
478
+ } : void 0]), 1040, [
530
479
  "event",
480
+ "disabled",
531
481
  "continues-before",
532
482
  "continues-after",
533
- "dragging",
534
- "rejected",
535
- "grabbed",
536
- "hint-id",
537
- "ghost-of",
538
483
  "style",
539
484
  "onClick"
540
- ]))), 128))], 44, je)], 64)) : me("", !0)
541
- ]), h("div", {
485
+ ]))), 128))], 44, Ee)], 64)) : me("", !0)
486
+ ]), v("div", {
542
487
  ref_key: "canvasEl",
543
- ref: St,
488
+ ref: Ne,
544
489
  class: "v-calendar-canvas"
545
- }, [h("div", Me, [(y(!0), m(f, null, x(A.value, (e) => (y(), m("span", {
490
+ }, [v("div", De, [(C(!0), _(h, null, T(P.value, (e) => (C(), _("span", {
546
491
  key: e,
547
492
  class: "v-calendar-hour"
548
- }, C(qe(e)), 1))), 128))]), h("div", {
493
+ }, D(at(e)), 1))), 128))]), v("div", {
549
494
  ref_key: "columnsEl",
550
- ref: Z,
551
- class: "v-calendar-columns",
495
+ ref: I,
496
+ class: "v-calendar-columns v-calendar-edge-cue",
552
497
  role: "grid",
553
- "aria-label": g.label,
554
- "data-gesture": M.value?.kind,
555
- "data-edge": ct.value,
556
- onKeydown: rt,
557
- onClick: vt,
558
- onPointerdown: it
559
- }, [(y(!0), m(f, null, x(A.value, (t, n) => (y(), m("div", {
560
- key: t,
498
+ "aria-label": y.label,
499
+ "data-edge": O(Ie),
500
+ onKeydown: _t,
501
+ onClick: Ot,
502
+ onPointerdown: vt
503
+ }, [(C(!0), _(h, null, T(ct.value, (t) => (C(), _("div", {
504
+ key: t.minutes,
561
505
  role: "row",
562
506
  class: "v-calendar-row"
563
- }, [(y(!0), m(f, null, x(g.days, (r, i) => (y(), m("div", {
564
- id: z(r, t),
565
- key: r,
507
+ }, [(C(!0), _(h, null, T(t.cells, (n) => (C(), _("div", {
508
+ id: n.id,
509
+ key: n.iso,
566
510
  role: "gridcell",
567
511
  class: "v-calendar-cell",
568
- "data-iso": r,
569
- "data-minutes": t,
570
- "data-today": r === g.today ? "" : void 0,
571
- tabindex: tt(r, t) ? 0 : -1,
572
- "aria-label": Xe(r, t),
573
- "aria-selected": $e(r, t) ? !0 : void 0
574
- }, [(y(!0), m(f, null, x(Ge.value.get(`${i}:${n}`) ?? [], (t) => (y(), pe(a, {
575
- key: t.id,
512
+ "data-iso": n.iso,
513
+ "data-minutes": t.minutes,
514
+ "data-today": n.iso === y.today ? "" : void 0,
515
+ tabindex: mt(n.iso, t.minutes) ? 0 : -1,
516
+ "aria-label": n.label,
517
+ "aria-selected": pt(n.iso, t.minutes) ? !0 : void 0
518
+ }, [(C(!0), _(h, null, T(ft(n.key), (t) => (C(), pe(i, x({
519
+ key: t.segment.id,
576
520
  class: "v-calendar-block",
577
- event: I.value.get(t.id),
521
+ event: t.event,
578
522
  layout: "block",
579
- "time-text": Ze(I.value.get(t.id)),
580
- "continues-before": t.clippedStart,
581
- "continues-after": t.clippedEnd,
582
- resizable: g.editable && t.id !== T,
583
- dragging: M.value?.id === t.id && M.value.pointerId !== null,
584
- rejected: M.value?.id === t.id && M.value.outside,
585
- grabbed: N.value && M.value?.id === t.id,
586
- "hint-id": g.editable && !j(t.id) ? g.hintId : void 0,
587
- "ghost-of": j(t.id) ? Be(t.id) : void 0,
588
- style: v(Qe(t)),
589
- onClick: (e) => _t(t.id)
590
- }, he({ _: 2 }, [e.$slots.event ? {
523
+ disabled: y.disabled,
524
+ "time-text": t.timeText,
525
+ "continues-before": t.segment.clippedStart,
526
+ "continues-after": t.segment.clippedEnd,
527
+ resizable: y.editable && t.segment.id !== k && t.segment.part !== "head"
528
+ }, { ref_for: !0 }, O(qe)(t.segment.id), {
529
+ style: t.style,
530
+ onClick: (e) => Dt(t.segment.id)
531
+ }), he({ _: 2 }, [e.$slots.event ? {
591
532
  name: "default",
592
- fn: we((t) => [S(e.$slots, "event", _e({ ref_for: !0 }, t))]),
533
+ fn: xe((t) => [E(e.$slots, "event", x({ ref_for: !0 }, t))]),
593
534
  key: "0"
594
- } : void 0]), 1032, [
535
+ } : void 0]), 1040, [
595
536
  "event",
537
+ "disabled",
596
538
  "time-text",
597
539
  "continues-before",
598
540
  "continues-after",
599
541
  "resizable",
600
- "dragging",
601
- "rejected",
602
- "grabbed",
603
- "hint-id",
604
- "ghost-of",
605
542
  "style",
606
543
  "onClick"
607
- ]))), 128)), R.value && R.value.cell === `${i}:${n}` ? (y(), m("div", {
544
+ ]))), 128)), W.value && W.value.day === n.day && W.value.row === n.row ? (C(), _("div", {
608
545
  key: 0,
609
546
  class: "v-calendar-now",
610
547
  "aria-hidden": "true",
611
- style: v({
612
- "--event-day": String(R.value.dayIndex),
613
- "--calendar-now": String(R.value.fraction)
548
+ style: S({
549
+ "--calendar-day-index": String(W.value.day),
550
+ "--calendar-now-fraction": String(W.value.fraction)
614
551
  })
615
- }, null, 4)) : me("", !0)], 8, Pe))), 128))]))), 128))], 40, Ne)], 512)], 44, Te));
552
+ }, null, 4)) : me("", !0)], 8, ke))), 128))]))), 128))], 40, Oe)], 512)], 44, Se));
616
553
  }
617
554
  });
618
555
  //#endregion
619
- export { Le as default };
556
+ export { je as default };
620
557
 
621
558
  //# sourceMappingURL=VCalendarTimeGrid.vue_vue_type_script_setup_true_lang.js.map