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 +1 @@
1
- {"version":3,"file":"keyboard.js","names":[],"sources":["../../../src/components/VCalendar/keyboard.ts"],"sourcesContent":["// @keyboard @a11y\n/**\n * The pure half of VCalendar's keyboard: it answers the single question \"what does this\n * key mean here?\", and does nothing else. Moving the focus, writing to the model, calling\n * `preventDefault` and announcing the result all stay in the component, where the reactive\n * state lives.\n *\n * It sits in VCalendar's own folder rather than in `utils/` because it has exactly one\n * consumer, which fails the admission rule for shared code (the same reasoning as\n * `VDatePicker/keyboard.ts` and `VHotkeys/platform.ts`). Being pure is also what makes the\n * whole keyboard testable without mounting anything, since the environment the tests run\n * in lays nothing out and the handlers in the component only ever move DOM focus.\n *\n * `utils/arrowNav` is deliberately not used. It navigates a flat DOM list of controls; this\n * navigates a two-dimensional space of DATES AND TIMES whose edges are a domain clamp, not\n * a list end — the same reason VDatePicker, VCombobox and VTimePicker stay out of it.\n *\n * WHY A GRAB MODE, and not arrows that move an event outright. Every gesture the pointer\n * offers has to have a keyboard equivalent (WCAG 2.1.1), and a card is reached by the\n * arrows in the first place — so if the arrows also moved it, arriving at an event and\n * nudging it would be the same keystroke, and there would be no way to pass over one\n * without dragging it. Entering a mode separates the two, and Escape gives back the one\n * thing a pointer drag has that a keypress does not: the chance to change your mind.\n */\n\n/** What one key means, given where the focus is. */\nexport type CalendarIntent =\n /** Move the focused cell by whole days and whole hours. */\n | { kind: 'moveFocus'; days: number; minutes: number }\n /** Jump to the first or last day of the row. */\n | { kind: 'rowEdge'; edge: 'start' | 'end' }\n /** Show the previous or next period, as the toolbar's buttons do. */\n | { kind: 'period'; delta: -1 | 1 }\n /** Take up what is focused: create here, open a card, or commit a move under way. */\n | { kind: 'activate' }\n /** Back out: leave a card for its cell, or abandon a move and put the event back. */\n | { kind: 'cancel' }\n /** Move the grabbed event. */\n | { kind: 'grabMove'; days: number; minutes: number }\n /** Change how long the grabbed event lasts. */\n | { kind: 'grabResize'; minutes: number }\n\n/**\n * Where the focus is when the key arrives, which is what decides the answer:\n *\n * - `cell` — an empty part of the grid. The arrows travel, Enter creates.\n * - `event` — a card, at rest. Enter takes hold of it, Escape goes back to the grid.\n * - `grabbed` — a card being moved. The arrows now move the EVENT, Enter commits, Escape\n * puts it back where it was.\n */\nexport type CalendarFocus = 'cell' | 'event' | 'grabbed'\n\n/** How far one press of an arrow travels vertically in the grid: one hour. */\nconst MINUTES_PER_ROW = 60\n\n/**\n * What a key means. Returning nothing says the key is none of this table's business and\n * the event must be left entirely alone — which is what keeps Tab, the browser's own\n * shortcuts and anything a consumer has bound working.\n *\n * `rtl` is passed in rather than read here: which way is \"forward\" is a property of the\n * document, and a pure table has no business consulting one.\n */\nexport function calendarIntent(\n key: string,\n shiftKey: boolean,\n focus: CalendarFocus,\n slotMinutes: number,\n rtl: boolean,\n): CalendarIntent | undefined {\n const step = slotMinutes > 0 ? slotMinutes : 1\n // The inline arrows follow the reading direction; the block ones never do, because down\n // is later in the day in every script.\n const inline = rtl ? -1 : 1\n\n if (focus === 'grabbed') {\n switch (key) {\n case 'ArrowLeft':\n return { kind: 'grabMove', days: -inline, minutes: 0 }\n case 'ArrowRight':\n return { kind: 'grabMove', days: inline, minutes: 0 }\n case 'ArrowUp':\n return shiftKey\n ? { kind: 'grabResize', minutes: -step }\n : { kind: 'grabMove', days: 0, minutes: -step }\n case 'ArrowDown':\n return shiftKey\n ? { kind: 'grabResize', minutes: step }\n : { kind: 'grabMove', days: 0, minutes: step }\n case 'Enter':\n case ' ':\n return { kind: 'activate' }\n case 'Escape':\n return { kind: 'cancel' }\n default:\n return undefined\n }\n }\n\n if (focus === 'event') {\n switch (key) {\n case 'Enter':\n case ' ':\n return { kind: 'activate' }\n case 'Escape':\n return { kind: 'cancel' }\n default:\n return undefined\n }\n }\n\n switch (key) {\n case 'ArrowLeft':\n return { kind: 'moveFocus', days: -inline, minutes: 0 }\n case 'ArrowRight':\n return { kind: 'moveFocus', days: inline, minutes: 0 }\n case 'ArrowUp':\n return { kind: 'moveFocus', days: 0, minutes: -MINUTES_PER_ROW }\n case 'ArrowDown':\n return { kind: 'moveFocus', days: 0, minutes: MINUTES_PER_ROW }\n case 'Home':\n return { kind: 'rowEdge', edge: 'start' }\n case 'End':\n return { kind: 'rowEdge', edge: 'end' }\n case 'PageUp':\n return { kind: 'period', delta: -1 }\n case 'PageDown':\n return { kind: 'period', delta: 1 }\n case 'Enter':\n case ' ':\n return { kind: 'activate' }\n default:\n return undefined\n }\n}\n"],"mappings":"AA+DA,SAAgB,EACd,GACA,GACA,GACA,GACA,GAC4B;CAC5B,IAAM,IAAO,IAAc,IAAI,IAAc,GAGvC,IAAS,IAAM,KAAK;CAE1B,IAAI,MAAU,WACZ,QAAQ,GAAR;EACE,KAAK,aACH,OAAO;GAAE,MAAM;GAAY,MAAM,CAAC;GAAQ,SAAS;EAAE;EACvD,KAAK,cACH,OAAO;GAAE,MAAM;GAAY,MAAM;GAAQ,SAAS;EAAE;EACtD,KAAK,WACH,OAAO,IACH;GAAE,MAAM;GAAc,SAAS,CAAC;EAAK,IACrC;GAAE,MAAM;GAAY,MAAM;GAAG,SAAS,CAAC;EAAK;EAClD,KAAK,aACH,OAAO,IACH;GAAE,MAAM;GAAc,SAAS;EAAK,IACpC;GAAE,MAAM;GAAY,MAAM;GAAG,SAAS;EAAK;EACjD,KAAK;EACL,KAAK,KACH,OAAO,EAAE,MAAM,WAAW;EAC5B,KAAK,UACH,OAAO,EAAE,MAAM,SAAS;EAC1B,SACE;CACJ;CAGF,IAAI,MAAU,SACZ,QAAQ,GAAR;EACE,KAAK;EACL,KAAK,KACH,OAAO,EAAE,MAAM,WAAW;EAC5B,KAAK,UACH,OAAO,EAAE,MAAM,SAAS;EAC1B,SACE;CACJ;CAGF,QAAQ,GAAR;EACE,KAAK,aACH,OAAO;GAAE,MAAM;GAAa,MAAM,CAAC;GAAQ,SAAS;EAAE;EACxD,KAAK,cACH,OAAO;GAAE,MAAM;GAAa,MAAM;GAAQ,SAAS;EAAE;EACvD,KAAK,WACH,OAAO;GAAE,MAAM;GAAa,MAAM;GAAG,SAAS;EAAiB;EACjE,KAAK,aACH,OAAO;GAAE,MAAM;GAAa,MAAM;GAAG,SAAS;EAAgB;EAChE,KAAK,QACH,OAAO;GAAE,MAAM;GAAW,MAAM;EAAQ;EAC1C,KAAK,OACH,OAAO;GAAE,MAAM;GAAW,MAAM;EAAM;EACxC,KAAK,UACH,OAAO;GAAE,MAAM;GAAU,OAAO;EAAG;EACrC,KAAK,YACH,OAAO;GAAE,MAAM;GAAU,OAAO;EAAE;EACpC,KAAK;EACL,KAAK,KACH,OAAO,EAAE,MAAM,WAAW;EAC5B,SACE;CACJ;AACF"}
1
+ {"version":3,"file":"keyboard.js","names":[],"sources":["../../../src/components/VCalendar/keyboard.ts"],"sourcesContent":["// @keyboard @a11y\n/**\n * The pure half of VCalendar's keyboard: it answers the single question \"what does this\n * key mean here?\", and does nothing else. Moving the focus, writing to the model, calling\n * `preventDefault` and announcing the result all stay in the component, where the reactive\n * state lives.\n *\n * It sits in VCalendar's own folder rather than in `utils/` because it has exactly one\n * consumer, which fails the admission rule for shared code (the same reasoning as\n * `VDatePicker/keyboard.ts` and `VHotkeys/platform.ts`). Being pure is also what makes the\n * whole keyboard testable without mounting anything, since the environment the tests run\n * in lays nothing out and the handlers in the component only ever move DOM focus.\n *\n * `utils/arrowNav` is deliberately not used. It navigates a flat DOM list of controls; this\n * navigates a two-dimensional space of DATES AND TIMES whose edges are a domain clamp, not\n * a list end — the same reason VDatePicker, VCombobox and VTimePicker stay out of it.\n *\n * WHY A GRAB MODE, and not arrows that move an event outright. Every gesture the pointer\n * offers has to have a keyboard equivalent (WCAG 2.1.1), and a card is reached by the\n * arrows in the first place — so if the arrows also moved it, arriving at an event and\n * nudging it would be the same keystroke, and there would be no way to pass over one\n * without dragging it. Entering a mode separates the two, and Escape gives back the one\n * thing a pointer drag has that a keypress does not: the chance to change your mind.\n */\n\nimport { MINUTES_PER_HOUR } from './layout'\n\n/** What one key means, given where the focus is. */\nexport type CalendarIntent =\n /** Move the focused cell by whole days and whole hours. */\n | { kind: 'moveFocus'; days: number; minutes: number }\n /** Jump to the first or last day of the row. */\n | { kind: 'rowEdge'; edge: 'start' | 'end' }\n /** Show the previous or next period, as the toolbar's buttons do. */\n | { kind: 'period'; delta: -1 | 1 }\n /** Take up what is focused: report an empty cell, or commit a move under way. */\n | { kind: 'activate' }\n /** Take hold of a card, so the arrows move it. */\n | { kind: 'grab' }\n /** Abandon a move under way and put the event back. */\n | { kind: 'cancel' }\n /** Move the grabbed event. */\n | { kind: 'grabMove'; days: number; minutes: number }\n /** Change how long the grabbed event lasts. */\n | { kind: 'grabResize'; minutes: number }\n\n/**\n * Where the focus is when the key arrives, which is what decides the answer:\n *\n * - `cell` — an empty part of the grid. The arrows travel, Enter creates.\n * - `event` — a card, at rest. Space takes hold of it; every other key is the browser's,\n * Enter included, which presses the card as a button and so opens the event. Enter is the\n * one a reader tries first on a button, and `event-activate` has no other keyboard route.\n * - `grabbed` — a card being moved. The arrows now move the EVENT, Enter commits, Escape\n * puts it back where it was.\n */\nexport type CalendarFocus = 'cell' | 'event' | 'grabbed'\n\n/**\n * What a key means. Returning nothing says the key is none of this table's business and\n * the event must be left entirely alone — which is what keeps Tab, the browser's own\n * shortcuts and anything a consumer has bound working.\n *\n * `rtl` is passed in rather than read here: which way is \"forward\" is a property of the\n * document, and a pure table has no business consulting one.\n */\nexport function calendarIntent(\n key: string,\n shiftKey: boolean,\n focus: CalendarFocus,\n slotMinutes: number,\n rtl: boolean,\n): CalendarIntent | undefined {\n const step = slotMinutes > 0 ? slotMinutes : 1\n // The inline arrows follow the reading direction; the block ones never do, because down\n // is later in the day in every script.\n const inline = rtl ? -1 : 1\n\n if (focus === 'grabbed') {\n switch (key) {\n case 'ArrowLeft':\n return { kind: 'grabMove', days: -inline, minutes: 0 }\n case 'ArrowRight':\n return { kind: 'grabMove', days: inline, minutes: 0 }\n case 'ArrowUp':\n return shiftKey\n ? { kind: 'grabResize', minutes: -step }\n : { kind: 'grabMove', days: 0, minutes: -step }\n case 'ArrowDown':\n return shiftKey\n ? { kind: 'grabResize', minutes: step }\n : { kind: 'grabMove', days: 0, minutes: step }\n case 'Enter':\n case ' ':\n return { kind: 'activate' }\n case 'Escape':\n return { kind: 'cancel' }\n default:\n return undefined\n }\n }\n\n if (focus === 'event') return key === ' ' ? { kind: 'grab' } : undefined\n\n switch (key) {\n case 'ArrowLeft':\n return { kind: 'moveFocus', days: -inline, minutes: 0 }\n case 'ArrowRight':\n return { kind: 'moveFocus', days: inline, minutes: 0 }\n case 'ArrowUp':\n return { kind: 'moveFocus', days: 0, minutes: -MINUTES_PER_HOUR }\n case 'ArrowDown':\n return { kind: 'moveFocus', days: 0, minutes: MINUTES_PER_HOUR }\n case 'Home':\n return { kind: 'rowEdge', edge: 'start' }\n case 'End':\n return { kind: 'rowEdge', edge: 'end' }\n case 'PageUp':\n return { kind: 'period', delta: -1 }\n case 'PageDown':\n return { kind: 'period', delta: 1 }\n case 'Enter':\n case ' ':\n return { kind: 'activate' }\n default:\n return undefined\n }\n}\n"],"mappings":";AAkEA,SAAgB,EACd,GACA,GACA,GACA,GACA,GAC4B;CAC5B,IAAM,IAAO,IAAc,IAAI,IAAc,GAGvC,IAAS,IAAM,KAAK;CAE1B,IAAI,MAAU,WACZ,QAAQ,GAAR;EACE,KAAK,aACH,OAAO;GAAE,MAAM;GAAY,MAAM,CAAC;GAAQ,SAAS;EAAE;EACvD,KAAK,cACH,OAAO;GAAE,MAAM;GAAY,MAAM;GAAQ,SAAS;EAAE;EACtD,KAAK,WACH,OAAO,IACH;GAAE,MAAM;GAAc,SAAS,CAAC;EAAK,IACrC;GAAE,MAAM;GAAY,MAAM;GAAG,SAAS,CAAC;EAAK;EAClD,KAAK,aACH,OAAO,IACH;GAAE,MAAM;GAAc,SAAS;EAAK,IACpC;GAAE,MAAM;GAAY,MAAM;GAAG,SAAS;EAAK;EACjD,KAAK;EACL,KAAK,KACH,OAAO,EAAE,MAAM,WAAW;EAC5B,KAAK,UACH,OAAO,EAAE,MAAM,SAAS;EAC1B,SACE;CACJ;CAGF,IAAI,MAAU,SAAS,OAAO,MAAQ,MAAM,EAAE,MAAM,OAAO,IAAI,KAAA;CAE/D,QAAQ,GAAR;EACE,KAAK,aACH,OAAO;GAAE,MAAM;GAAa,MAAM,CAAC;GAAQ,SAAS;EAAE;EACxD,KAAK,cACH,OAAO;GAAE,MAAM;GAAa,MAAM;GAAQ,SAAS;EAAE;EACvD,KAAK,WACH,OAAO;GAAE,MAAM;GAAa,MAAM;GAAG,SAAS;EAAkB;EAClE,KAAK,aACH,OAAO;GAAE,MAAM;GAAa,MAAM;GAAG,SAAA;EAA0B;EACjE,KAAK,QACH,OAAO;GAAE,MAAM;GAAW,MAAM;EAAQ;EAC1C,KAAK,OACH,OAAO;GAAE,MAAM;GAAW,MAAM;EAAM;EACxC,KAAK,UACH,OAAO;GAAE,MAAM;GAAU,OAAO;EAAG;EACrC,KAAK,YACH,OAAO;GAAE,MAAM;GAAU,OAAO;EAAE;EACpC,KAAK;EACL,KAAK,KACH,OAAO,EAAE,MAAM,WAAW;EAC5B,SACE;CACJ;AACF"}
@@ -1,10 +1,14 @@
1
1
  import { MonthCell } from '../../utils/date.js';
2
2
  import { CalendarEvent, CalendarEventId, CalendarEventTimes, CalendarView } from './types.js';
3
+ /** An hour, in the minutes every time here is counted in: one row of a time grid. */
4
+ export declare const MINUTES_PER_HOUR = 60;
5
+ /** How many minutes a day holds. The upper bound of every time computed here. */
6
+ export declare const MINUTES_PER_DAY: number;
3
7
  /**
4
8
  * How far the pointer must travel before a press becomes a drag rather than a click.
5
9
  *
6
- * It is what keeps click-to-create and click-to-open alive: a press that never moves this
7
- * far writes nothing on release and is handled as a plain activation. Without it, the
10
+ * It is what keeps a click a click, on a card as on an empty cell: a press that never moves
11
+ * this far writes nothing on release and is handled as a plain activation. Without it, the
8
12
  * hand's natural tremor during a click would register as a one-pixel drag and every click
9
13
  * would silently move its event.
10
14
  */
@@ -22,9 +26,9 @@ export declare function windowOf(startHour: number, endHour: number): TimeWindow
22
26
  * TRAP — the value is held one minute short of midnight rather than allowed to reach it.
23
27
  * A day's last moment is 1440 in this arithmetic, but `24:00` is not a time any of the
24
28
  * design system's helpers accept (`isValidTime` rejects it), and the alternative — writing
25
- * `00:00` on the following day — would turn an ordinary evening appointment into a
26
- * two-day event and send it to the all-day band. One minute is invisible at every zoom
27
- * this component offers; a card in the wrong place is not.
29
+ * `00:00` on the following day — would turn an ordinary evening appointment into one that
30
+ * runs past midnight, which every gesture then treats differently. One minute is invisible at
31
+ * every zoom this component offers; an event that changed kind under the pointer is not.
28
32
  */
29
33
  export declare function timeOf(minutes: number): string;
30
34
  /** An `HH:mm` string into minutes since midnight; `fallback` when it is not one. */
@@ -32,10 +36,10 @@ export declare function minutesAt(time: string | undefined, fallback: number): n
32
36
  /**
33
37
  * The weekdays a calendar shows, in reading order.
34
38
  *
35
- * The array does double duty, which is why there is no separate "first day of week" prop:
36
- * it says which days are VISIBLE — `[1,2,3,4,5]` hides the weekend everywhere — and its
37
- * first entry is the day a week starts on. Given nothing, the seven days rotated to the
38
- * locale's own first day.
39
+ * The array does double duty: it says which days are VISIBLE — `[1,2,3,4,5]` hides the
40
+ * weekend everywhere — and its first entry is the day a week starts on. Given nothing, the
41
+ * seven days rotated to `firstDayOfWeek`, which the calendar takes from its prop of that
42
+ * name or from the locale.
39
43
  */
40
44
  export declare function normalizeWeekdays(weekdays: readonly number[] | undefined, firstDayOfWeek: number): number[];
41
45
  /** Whether a date falls on one of the visible weekdays. */
@@ -78,14 +82,32 @@ export declare function visibleRange(anchor: string, view: CalendarView, weekday
78
82
  start: string;
79
83
  end: string;
80
84
  };
85
+ /**
86
+ * How long an event lasts, in minutes, counting the days between its dates.
87
+ *
88
+ * A time that is not one reads as the far end of its day — midnight for a start, the next
89
+ * midnight for an end — so a malformed event errs towards being long, and towards the band.
90
+ */
91
+ export declare function durationOf(times: CalendarEventTimes): number;
92
+ /** Whether an event runs from one day into the next without lasting a whole day. */
93
+ export declare function spansMidnight(times: CalendarEventTimes): boolean;
81
94
  /**
82
95
  * Whether an event belongs in the band above the grid rather than in a day's column.
83
96
  *
84
- * The second clause is not a convenience: an event running from one day to the next cannot
85
- * be drawn inside a single column, so the band — where it becomes a bar with its times in
86
- * its label — is the only place it can honestly go.
97
+ * A day's column holds up to twenty-four hours, so an event running past midnight for less
98
+ * than that is drawn as two cards — the evening in one column, the early morning in the next —
99
+ * and only one lasting a whole day or more becomes a bar. Exactly twenty-four hours is a bar:
100
+ * two cards covering the same hours of two columns would read as two events.
101
+ *
102
+ * An event whose end comes before its start has no column to go in either, so it goes to the
103
+ * band, where `packAllDay` finds no day it covers and draws nothing.
87
104
  */
88
105
  export declare function isAllDayEvent(event: CalendarEvent): boolean;
106
+ /**
107
+ * Which piece of its event a box is: the whole of it, or one side of midnight for an event
108
+ * that runs from one day into the next.
109
+ */
110
+ export type SegmentPart = 'whole' | 'head' | 'tail';
89
111
  /** One event's box in one day column, in minutes since midnight. */
90
112
  export interface EventSegment {
91
113
  id: CalendarEventId;
@@ -93,9 +115,17 @@ export interface EventSegment {
93
115
  dayIndex: number;
94
116
  start: number;
95
117
  end: number;
96
- /** Whether the window cut it off, so the card can show that it carries on past the edge. */
118
+ /**
119
+ * Whether the card carries on past its top or bottom edge: the window cut it off, or
120
+ * midnight did. Both are drawn the same way.
121
+ */
97
122
  clippedStart: boolean;
98
123
  clippedEnd: boolean;
124
+ /**
125
+ * `head` is the evening of an event running past midnight and `tail` its morning. Only a
126
+ * `whole` or a `tail` holds the event's real end, which is what its resize strip drags.
127
+ */
128
+ part: SegmentPart;
99
129
  }
100
130
  /**
101
131
  * Cuts the timed events into the boxes the day columns draw. All-day events produce none —
@@ -107,7 +137,7 @@ export interface EventSegment {
107
137
  * during packing instead, two events fifteen minutes apart would be laid out as though
108
138
  * they did not overlap and then drawn as though they did.
109
139
  */
110
- export declare function timedSegments(events: readonly CalendarEvent[], days: readonly string[], window: TimeWindow, minDuration: number): EventSegment[];
140
+ export declare function timedSegments(events: readonly CalendarEvent[], days: readonly string[], timeWindow: TimeWindow, minDuration: number): EventSegment[];
111
141
  /** A segment once it knows how much of its column's width it gets. */
112
142
  export interface PlacedSegment extends EventSegment {
113
143
  /** Which column of its cluster it sits in, counted from zero. */
@@ -162,26 +192,19 @@ export declare function monthsOfYear(anchor: string): string[];
162
192
  /** Whether an event covers a given day at all, all-day or timed. */
163
193
  export declare function coversDay(event: CalendarEvent, iso: string): boolean;
164
194
  /**
165
- * The events falling on one day, in the order a summary should list them: the all-day ones
166
- * first, since they frame the day rather than sit inside it, then the rest by when they
167
- * start. The last tie is broken by id so the list cannot reshuffle for no reason.
168
- */
169
- export declare function eventsOnDay<T extends CalendarEvent>(events: readonly T[], iso: string): T[];
170
- /**
171
- * Every visible day's events at once, in one pass over the list.
195
+ * Every visible day's events, in the order a summary lists them: the all-day ones first, since
196
+ * they frame the day rather than sit inside it, then the rest by when they start, the last tie
197
+ * broken by id so the list cannot reshuffle for no reason.
172
198
  *
173
- * WHY THIS EXISTS RATHER THAN A LOOP OVER `eventsOnDay`. The month view needs all 42 squares
174
- * filled, and asking `eventsOnDay` once per square walks the whole event list 42 times and
175
- * sorts it 42 times — `cells × events`, with a sort each. Measured on the bench: 7.8 ms per
176
- * render at 2000 events, and the month view re-renders on every `pointermove` of a drag, so
177
- * that is roughly half a frame spent rebuilding lists no gesture changed.
199
+ * WHY ONE PASS RATHER THAN A FILTER PER DAY. The month view needs all 42 squares filled, and
200
+ * filtering and sorting the list once per square walks the whole event list 42 times and sorts
201
+ * it 42 times — `cells × events`, with a sort each. Measured on the bench: 7.8 ms per render at
202
+ * 2000 events, and the month view rebuilds it every time a drag carries a chip onto another
203
+ * day, so that is roughly half a frame spent rebuilding lists the gesture left alone.
178
204
  *
179
205
  * Here each event is placed once, into the days it actually covers, and each day is sorted
180
206
  * once — `events × span + cells × k log k`. The walk is bounded to the grid on both ends, so
181
207
  * an event running from last year costs its visible part and nothing more.
182
- *
183
- * The ORDER is identical to `eventsOnDay`'s, because both sort with `compareForDay`. That
184
- * matters: it is the order chips are listed in, so a difference would be visible.
185
208
  */
186
209
  export declare function eventsByDay<T extends CalendarEvent>(events: readonly T[], days: readonly string[]): Map<string, T[]>;
187
210
  /** One bar in the all-day band: the columns it covers, and the row it sits on. */
@@ -212,7 +235,7 @@ export interface AllDaySpan {
212
235
  */
213
236
  export declare function packAllDay(events: readonly CalendarEvent[], days: readonly string[]): AllDaySpan[];
214
237
  /** Where a moment sits in the visible window, as a unitless fraction the stylesheet scales. */
215
- export declare function fractionOf(minutes: number, window: TimeWindow): number;
238
+ export declare function fractionOf(minutes: number, timeWindow: TimeWindow): number;
216
239
  /** The measurements of the grid a pointer is being read against, in viewport coordinates. */
217
240
  export interface GridGeometry {
218
241
  top: number;
@@ -233,29 +256,14 @@ export interface GridGeometry {
233
256
  export declare function pointToCell(point: {
234
257
  x: number;
235
258
  y: number;
236
- }, geometry: GridGeometry, window: TimeWindow, rtl: boolean): {
259
+ }, geometry: GridGeometry, timeWindow: TimeWindow, rtl: boolean): {
237
260
  columnIndex: number;
238
261
  minutes: number;
239
262
  };
240
263
  /** Rounds a moment to the nearest step the calendar allows. */
241
264
  export declare function snapToSlot(minutes: number, step: number): number;
242
- /** Rounds a moment DOWN to the step containing it — where a new event begins. */
265
+ /** Rounds a moment DOWN to the step containing it — where a drawn slot begins. */
243
266
  export declare function floorToSlot(minutes: number, step: number): number;
244
- /**
245
- * Where an event lands when it is dragged or nudged: it keeps its length and moves by whole
246
- * days and whole steps.
247
- *
248
- * An event pushed past the end of the window is held against it rather than having its tail
249
- * cut off — moving something must never change how long it is, which is the other gesture's
250
- * job.
251
- */
252
- export declare function moveEvent(origin: CalendarEventTimes, dayDelta: number, minuteDelta: number, window: TimeWindow, weekdays?: readonly number[]): CalendarEventTimes;
253
- /**
254
- * Where the end of an event lands when its bottom edge is dragged. It can never cross the
255
- * start: the shortest an event may become is one step, which is also the length a new one
256
- * is created at.
257
- */
258
- export declare function resizeEvent(origin: CalendarEventTimes, endMinutes: number, minDuration: number, window: TimeWindow): CalendarEventTimes;
259
267
  /**
260
268
  * How many whole days an event covers beyond its first — zero for one that starts and ends
261
269
  * on the same day, two for a trip from Monday to Wednesday.
@@ -264,7 +272,7 @@ export declare function daySpan(times: CalendarEventTimes): number;
264
272
  /**
265
273
  * Moves an event to another day, KEEPING its length in days as well as its times.
266
274
  *
267
- * This is the counterpart of `moveEvent`, and the two must not be confused: that one is for
275
+ * This is the counterpart of `timeGrid.ts`'s `moveEvent`, and the two must not be confused: that one is for
268
276
  * a timed move INSIDE a single day and deliberately collapses `end` onto `start`, so putting
269
277
  * a three-day trip through it would silently squash it into one Tuesday. This one is for the
270
278
  * whole-day gestures — an all-day bar dragged along the band, a chip dragged across a month —
@@ -272,12 +280,7 @@ export declare function daySpan(times: CalendarEventTimes): number;
272
280
  */
273
281
  export declare function moveEventToDay(origin: CalendarEventTimes, target: string): CalendarEventTimes;
274
282
  /** The measurements of a month grid — the same struct, with rows where a time window was. */
275
- export interface MonthGeometry {
276
- top: number;
277
- height: number;
278
- inlineStart: number;
279
- inlineSize: number;
280
- columns: number;
283
+ export interface MonthGeometry extends GridGeometry {
281
284
  rows: number;
282
285
  }
283
286
  /**
@@ -351,5 +354,15 @@ export declare function pointWithin(point: {
351
354
  }): boolean;
352
355
  /** The times of an event, as the shape the move and resize events carry. */
353
356
  export declare function timesOf(event: CalendarEvent): CalendarEventTimes;
357
+ /**
358
+ * Whether two placements are the same, field for field.
359
+ *
360
+ * It is what a drag asks before it writes its preview. A slot is a quarter of an hour, some
361
+ * sixteen pixels at the default hour height, so most pointer moves land on the times already
362
+ * shown — and the gesture state is deeply reactive, so an EQUAL but new object would still
363
+ * re-run the whole layout and re-render every cell of the grid for a picture that did not
364
+ * change.
365
+ */
366
+ export declare function sameTimes(a: CalendarEventTimes, b: CalendarEventTimes): boolean;
354
367
  /** Today, as the calendar reads it. Kept here so the component has one place to call. */
355
368
  export declare function todayISO(): string;
@@ -2,7 +2,6 @@ import { clamp as e } from "../../utils/number.js";
2
2
  import { pad2 as t } from "../../utils/text.js";
3
3
  import { addDays as n, addMonths as r, buildMonthGrid as i, compareISO as a, daysInMonth as o, formatISO as s, isoOf as c, parseISO as l } from "../../utils/date.js";
4
4
  import { minutesOf as u } from "../../utils/time.js";
5
- //#region src/components/VCalendar/layout.ts
6
5
  var d = 1440, f = 7, p = 1440 * 60 * 1e3;
7
6
  function m(e, t) {
8
7
  let n = String(e), r = String(t);
@@ -97,35 +96,55 @@ function T(e, t, n, r) {
97
96
  };
98
97
  }
99
98
  function E(e) {
100
- return e.allDay === !0 || a(e.start, e.end) !== 0;
101
- }
102
- function D(t, n, r, i) {
103
- let a = new Map(n.map((e, t) => [e, t])), o = [];
104
- for (let n of t) {
105
- if (E(n)) continue;
106
- let t = a.get(n.start);
107
- if (t === void 0) continue;
108
- let s = _(n.startTime, r.start), c = Math.max(_(n.endTime, s + i), s + 1);
109
- if (c <= r.start || s >= r.end) continue;
110
- let l = e(s, r.start, r.end - 1), u = e(Math.max(c, l + i), l + 1, r.end);
111
- o.push({
112
- id: n.id,
113
- dayIndex: t,
99
+ return V(e) * d + _(e.endTime, d) - _(e.startTime, 0);
100
+ }
101
+ function D(e) {
102
+ return a(e.start, e.end) < 0 && E(e) < 1440;
103
+ }
104
+ function O(e) {
105
+ if (e.allDay === !0) return !0;
106
+ let t = a(e.start, e.end);
107
+ return t === 0 ? !1 : t > 0 || !D(e);
108
+ }
109
+ function k(t, n, r, i) {
110
+ let o = new Map(n.map((e, t) => [e, t])), s = [], c = (t, n, a, o, c) => {
111
+ if (n === void 0 || o <= r.start || a >= r.end) return;
112
+ let l = e(a, r.start, r.end - 1), u = e(Math.max(o, l + i), l + 1, r.end);
113
+ s.push({
114
+ id: t,
115
+ dayIndex: n,
114
116
  start: l,
115
117
  end: u,
116
- clippedStart: s < r.start,
117
- clippedEnd: c > r.end
118
+ clippedStart: c === "tail" || a < r.start,
119
+ clippedEnd: c === "head" || o > r.end,
120
+ part: c
118
121
  });
122
+ };
123
+ for (let e of t) {
124
+ if (O(e)) continue;
125
+ let t = _(e.startTime, r.start);
126
+ if (a(e.start, e.end) === 0) {
127
+ let n = Math.max(_(e.endTime, t + i), t + 1);
128
+ c(e.id, o.get(e.start), t, n, "whole");
129
+ continue;
130
+ }
131
+ let n = _(e.endTime, 0);
132
+ if (n === 0) {
133
+ c(e.id, o.get(e.start), t, d, "whole");
134
+ continue;
135
+ }
136
+ c(e.id, o.get(e.start), t, d, "head"), c(e.id, o.get(e.end), 0, n, "tail");
119
137
  }
120
- return o;
138
+ return s;
121
139
  }
122
- function O(e) {
140
+ function A(e) {
123
141
  let t = [...e].sort((e, t) => e.start - t.start || t.end - t.start - (e.end - e.start) || m(e.id, t.id)), n = [], r = [], i = [], a = -Infinity, o = () => {
124
- let e = i.length;
125
- for (let t of r) {
126
- let n = 1;
127
- for (; t.column + n < e && !r.some((e) => e.column === t.column + n && e.start < t.end && t.start < e.end);) n++;
128
- t.span = n, t.columns = e;
142
+ let e = i.length, t = Array.from({ length: e }, () => []);
143
+ for (let e of r) t[e.column].push(e);
144
+ for (let n of r) {
145
+ let r = 1;
146
+ for (; n.column + r < e && !t[n.column + r].some((e) => e.start < n.end && n.start < e.end);) r++;
147
+ n.span = r, n.columns = e;
129
148
  }
130
149
  n.push(...r), r = [], i = [], a = -Infinity;
131
150
  };
@@ -141,7 +160,7 @@ function O(e) {
141
160
  }
142
161
  return r.length > 0 && o(), n;
143
162
  }
144
- function k(e, t) {
163
+ function j(e, t) {
145
164
  let n = l(e);
146
165
  if (!n || t.length === 0) return [];
147
166
  let r = i(n.getFullYear(), n.getMonth(), t[0]), a = [];
@@ -151,16 +170,16 @@ function k(e, t) {
151
170
  }
152
171
  return a;
153
172
  }
154
- function A(e) {
173
+ function M(e) {
155
174
  let t = l(e);
156
175
  if (!t) return [];
157
176
  let n = t.getFullYear();
158
177
  return Array.from({ length: 12 }, (e, t) => c(n, t, 1));
159
178
  }
160
- function j(e, t) {
179
+ function N(e, t) {
161
180
  return a(t, e.start) >= 0 && a(t, e.end) <= 0;
162
181
  }
163
- function M(e, t) {
182
+ function P(e, t) {
164
183
  let r = /* @__PURE__ */ new Map();
165
184
  for (let e of t) r.set(e, []);
166
185
  if (t.length === 0) return /* @__PURE__ */ new Map();
@@ -170,25 +189,25 @@ function M(e, t) {
170
189
  if (a(e, s) > 0) continue;
171
190
  let c = {
172
191
  event: t,
173
- allDay: +!E(t),
192
+ allDay: +!O(t),
174
193
  minutes: _(t.startTime, 0),
175
194
  id: String(t.id)
176
195
  };
177
196
  for (let t = e; a(t, s) <= 0; t = n(t, 1)) r.get(t)?.push(c);
178
197
  }
179
198
  let s = /* @__PURE__ */ new Map();
180
- for (let [e, t] of r) t.sort(N), s.set(e, t.map((e) => e.event));
199
+ for (let [e, t] of r) t.sort(F), s.set(e, t.map((e) => e.event));
181
200
  return s;
182
201
  }
183
- function N(e, t) {
184
- return e.allDay - t.allDay || e.minutes - t.minutes || (e.id < t.id ? -1 : +(e.id > t.id));
202
+ function F(e, t) {
203
+ return e.allDay - t.allDay || e.minutes - t.minutes || m(e.id, t.id);
185
204
  }
186
- function P(e, t) {
205
+ function I(e, t) {
187
206
  let n = [];
188
207
  for (let r of e) {
189
- if (!E(r)) continue;
208
+ if (!O(r)) continue;
190
209
  let e = -1, i = -1;
191
- for (let n = 0; n < t.length; n++) j(r, t[n]) && (e === -1 && (e = n), i = n);
210
+ for (let n = 0; n < t.length; n++) N(r, t[n]) && (e === -1 && (e = n), i = n);
192
211
  e !== -1 && n.push({
193
212
  id: r.id,
194
213
  startIndex: e,
@@ -206,43 +225,25 @@ function P(e, t) {
206
225
  }
207
226
  return n;
208
227
  }
209
- function F(t, n) {
228
+ function L(t, n) {
210
229
  let r = n.end - n.start;
211
230
  return r > 0 ? e((t - n.start) / r, 0, 1) : 0;
212
231
  }
213
- function I(t, n, r, i) {
214
- let a = Math.max(1, n.columns), o = n.inlineSize / a, s = i ? n.inlineStart - t.x : t.x - n.inlineStart, c = e(o > 0 ? Math.floor(s / o) : 0, 0, a - 1), l = n.height > 0 ? (t.y - n.top) / n.height : 0;
232
+ function R(t, n, r, i) {
233
+ let a = U(t.x, n, i), o = n.height > 0 ? (t.y - n.top) / n.height : 0;
215
234
  return {
216
- columnIndex: c,
217
- minutes: e(r.start + l * (r.end - r.start), r.start, r.end)
235
+ columnIndex: a,
236
+ minutes: e(r.start + o * (r.end - r.start), r.start, r.end)
218
237
  };
219
238
  }
220
- function L(t, n) {
239
+ function z(t, n) {
221
240
  let r = n > 0 ? n : 1;
222
241
  return e(Math.round(t / r) * r, 0, d);
223
242
  }
224
- function R(t, n) {
243
+ function B(t, n) {
225
244
  let r = n > 0 ? n : 1;
226
245
  return e(Math.floor(t / r) * r, 0, d);
227
246
  }
228
- function z(t, r, i, a, o) {
229
- let s = _(t.startTime, a.start), c = Math.max(_(t.endTime, s), s + 1) - s, l = o && o.length > 0 ? x(t.start, r, o) : n(t.start, r), u = e(s + i, a.start, Math.max(a.start, a.end - c));
230
- return {
231
- start: l,
232
- end: l,
233
- startTime: g(u),
234
- endTime: g(u + c)
235
- };
236
- }
237
- function B(t, n, r, i) {
238
- let a = _(t.startTime, i.start), o = e(n, a + Math.max(r, 1), i.end);
239
- return {
240
- start: t.start,
241
- end: t.start,
242
- startTime: g(a),
243
- endTime: g(o)
244
- };
245
- }
246
247
  function V(e) {
247
248
  let t = l(e.start), n = l(e.end);
248
249
  return !t || !n ? 0 : Math.max(0, Math.round((n.getTime() - t.getTime()) / p));
@@ -256,26 +257,30 @@ function H(e, t) {
256
257
  };
257
258
  }
258
259
  function U(t, n, r) {
259
- let i = Math.max(1, n.columns), a = Math.max(1, n.rows), o = n.inlineSize / i, s = r ? n.inlineStart - t.x : t.x - n.inlineStart, c = e(o > 0 ? Math.floor(s / o) : 0, 0, i - 1), l = n.height / a;
260
+ let i = Math.max(1, n.columns), a = n.inlineSize / i, o = r ? n.inlineStart - t : t - n.inlineStart;
261
+ return e(a > 0 ? Math.floor(o / a) : 0, 0, i - 1);
262
+ }
263
+ function W(t, n, r) {
264
+ let i = Math.max(1, n.rows), a = U(t.x, n, r), o = n.height / i;
260
265
  return {
261
- columnIndex: c,
262
- rowIndex: e(l > 0 ? Math.floor((t.y - n.top) / l) : 0, 0, a - 1)
266
+ columnIndex: a,
267
+ rowIndex: e(o > 0 ? Math.floor((t.y - n.top) / o) : 0, 0, i - 1)
263
268
  };
264
269
  }
265
- function W(e, t, n, r) {
270
+ function G(e, t, n, r) {
266
271
  if (n <= 0 || t.inlineSize <= 0) return null;
267
272
  let i = r ? t.inlineStart - e : e - t.inlineStart;
268
273
  return i < n ? -1 : i > t.inlineSize - n ? 1 : null;
269
274
  }
270
- function G(t, n, r) {
275
+ function K(t, n, r) {
271
276
  if (r <= 0 || n.height <= 0) return 0;
272
277
  let i = t - n.top, a = n.top + n.height - t;
273
278
  return i < r ? -e((r - i) / r, 0, 1) : a < r ? e((r - a) / r, 0, 1) : 0;
274
279
  }
275
- function K(e, t) {
280
+ function q(e, t) {
276
281
  return t.width <= 0 || t.height <= 0 || e.x >= t.left && e.x <= t.left + t.width && e.y >= t.top && e.y <= t.top + t.height;
277
282
  }
278
- function q(e) {
283
+ function J(e) {
279
284
  return {
280
285
  start: e.start,
281
286
  end: e.end,
@@ -283,10 +288,13 @@ function q(e) {
283
288
  endTime: e.endTime
284
289
  };
285
290
  }
286
- function J() {
291
+ function Y(e, t) {
292
+ return e.start === t.start && e.end === t.end && e.startTime === t.startTime && e.endTime === t.endTime;
293
+ }
294
+ function X() {
287
295
  return s(/* @__PURE__ */ new Date());
288
296
  }
289
297
  //#endregion
290
- export { x as advanceVisibleDays, G as blockEdgeAt, S as columnCount, j as coversDay, V as daySpan, M as eventsByDay, R as floorToSlot, F as fractionOf, W as inlineEdgeAt, E as isAllDayEvent, y as isVisibleDay, _ as minutesAt, k as monthWeeks, A as monthsOfYear, z as moveEvent, H as moveEventToDay, v as normalizeWeekdays, P as packAllDay, O as packDayColumn, I as pointToCell, U as pointToMonthCell, K as pointWithin, B as resizeEvent, L as snapToSlot, b as snapToVisibleDay, w as stepAnchor, g as timeOf, D as timedSegments, q as timesOf, J as todayISO, C as visibleDays, T as visibleRange, h as windowOf };
298
+ export { d as MINUTES_PER_DAY, x as advanceVisibleDays, K as blockEdgeAt, S as columnCount, N as coversDay, V as daySpan, E as durationOf, P as eventsByDay, B as floorToSlot, L as fractionOf, G as inlineEdgeAt, O as isAllDayEvent, y as isVisibleDay, _ as minutesAt, j as monthWeeks, M as monthsOfYear, H as moveEventToDay, v as normalizeWeekdays, I as packAllDay, A as packDayColumn, R as pointToCell, W as pointToMonthCell, q as pointWithin, Y as sameTimes, z as snapToSlot, b as snapToVisibleDay, D as spansMidnight, w as stepAnchor, g as timeOf, k as timedSegments, J as timesOf, X as todayISO, C as visibleDays, T as visibleRange, h as windowOf };
291
299
 
292
300
  //# sourceMappingURL=layout.js.map