@dayflow/core 0.1.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 (304) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +392 -0
  3. package/dist/Old/MonthView.d.ts +8 -0
  4. package/dist/Old/MonthView.d.ts.map +1 -0
  5. package/dist/Old/monthView/MonthDragIndicator.d.ts +13 -0
  6. package/dist/Old/monthView/MonthDragIndicator.d.ts.map +1 -0
  7. package/dist/Old/monthView/MultiDayEvent.d.ts +26 -0
  8. package/dist/Old/monthView/MultiDayEvent.d.ts.map +1 -0
  9. package/dist/Old/monthView/WeekComponent.d.ts +43 -0
  10. package/dist/Old/monthView/WeekComponent.d.ts.map +1 -0
  11. package/dist/Old/monthView/util.d.ts +6 -0
  12. package/dist/Old/monthView/util.d.ts.map +1 -0
  13. package/dist/Old/src/app/layout.d.ts +7 -0
  14. package/dist/Old/src/app/layout.d.ts.map +1 -0
  15. package/dist/Old/src/app/page.d.ts +2 -0
  16. package/dist/Old/src/app/page.d.ts.map +1 -0
  17. package/dist/Old/src/app/test/page.d.ts +2 -0
  18. package/dist/Old/src/app/test/page.d.ts.map +1 -0
  19. package/dist/Old/src/components/EventLayout.d.ts +134 -0
  20. package/dist/Old/src/components/EventLayout.d.ts.map +1 -0
  21. package/dist/Old/src/components/common/TodayBox.d.ts +8 -0
  22. package/dist/Old/src/components/common/TodayBox.d.ts.map +1 -0
  23. package/dist/Old/src/components/monthView/MonthDragIndicator.d.ts +13 -0
  24. package/dist/Old/src/components/monthView/MonthDragIndicator.d.ts.map +1 -0
  25. package/dist/Old/src/components/monthView/MultiDayEvent.d.ts +26 -0
  26. package/dist/Old/src/components/monthView/MultiDayEvent.d.ts.map +1 -0
  27. package/dist/Old/src/components/monthView/WeekComponent.d.ts +43 -0
  28. package/dist/Old/src/components/monthView/WeekComponent.d.ts.map +1 -0
  29. package/dist/Old/src/components/monthView/util.d.ts +6 -0
  30. package/dist/Old/src/components/monthView/util.d.ts.map +1 -0
  31. package/dist/Old/src/components/weekView/CalendarEvent.d.ts +29 -0
  32. package/dist/Old/src/components/weekView/CalendarEvent.d.ts.map +1 -0
  33. package/dist/Old/src/components/weekView/DragIndicator/DefaultDragIndicator.d.ts +3 -0
  34. package/dist/Old/src/components/weekView/DragIndicator/DefaultDragIndicator.d.ts.map +1 -0
  35. package/dist/Old/src/components/weekView/DragIndicator/DragIndicatorComponent.d.ts +8 -0
  36. package/dist/Old/src/components/weekView/DragIndicator/DragIndicatorComponent.d.ts.map +1 -0
  37. package/dist/Old/src/core/CalendarApp.d.ts +29 -0
  38. package/dist/Old/src/core/CalendarApp.d.ts.map +1 -0
  39. package/dist/Old/src/core/CalendarRenderer.d.ts +9 -0
  40. package/dist/Old/src/core/CalendarRenderer.d.ts.map +1 -0
  41. package/dist/Old/src/core/config.d.ts +61 -0
  42. package/dist/Old/src/core/config.d.ts.map +1 -0
  43. package/dist/Old/src/core/index.d.ts +8 -0
  44. package/dist/Old/src/core/index.d.ts.map +1 -0
  45. package/dist/Old/src/core/useCalendarAdapter.d.ts +4 -0
  46. package/dist/Old/src/core/useCalendarAdapter.d.ts.map +1 -0
  47. package/dist/Old/src/core/useCalendarApp.d.ts +3 -0
  48. package/dist/Old/src/core/useCalendarApp.d.ts.map +1 -0
  49. package/dist/Old/src/factories/ViewAdapter.d.ts +5 -0
  50. package/dist/Old/src/factories/ViewAdapter.d.ts.map +1 -0
  51. package/dist/Old/src/factories/createDayView.d.ts +12 -0
  52. package/dist/Old/src/factories/createDayView.d.ts.map +1 -0
  53. package/dist/Old/src/factories/createMonthView.d.ts +16 -0
  54. package/dist/Old/src/factories/createMonthView.d.ts.map +1 -0
  55. package/dist/Old/src/factories/createWeekView.d.ts +15 -0
  56. package/dist/Old/src/factories/createWeekView.d.ts.map +1 -0
  57. package/dist/Old/src/factories/createYearView.d.ts +10 -0
  58. package/dist/Old/src/factories/createYearView.d.ts.map +1 -0
  59. package/dist/Old/src/factories/index.d.ts +18 -0
  60. package/dist/Old/src/factories/index.d.ts.map +1 -0
  61. package/dist/Old/src/hooks/drag/index.d.ts +8 -0
  62. package/dist/Old/src/hooks/drag/index.d.ts.map +1 -0
  63. package/dist/Old/src/hooks/drag/useDrag.d.ts +3 -0
  64. package/dist/Old/src/hooks/drag/useDrag.d.ts.map +1 -0
  65. package/dist/Old/src/hooks/drag/useDragCommon.d.ts +3 -0
  66. package/dist/Old/src/hooks/drag/useDragCommon.d.ts.map +1 -0
  67. package/dist/Old/src/hooks/drag/useDragHandlers.d.ts +3 -0
  68. package/dist/Old/src/hooks/drag/useDragHandlers.d.ts.map +1 -0
  69. package/dist/Old/src/hooks/drag/useDragManager.d.ts +3 -0
  70. package/dist/Old/src/hooks/drag/useDragManager.d.ts.map +1 -0
  71. package/dist/Old/src/hooks/drag/useDragState.d.ts +3 -0
  72. package/dist/Old/src/hooks/drag/useDragState.d.ts.map +1 -0
  73. package/dist/Old/src/hooks/drag/useMonthDrag.d.ts +3 -0
  74. package/dist/Old/src/hooks/drag/useMonthDrag.d.ts.map +1 -0
  75. package/dist/Old/src/hooks/drag/useWeekDayDrag.d.ts +3 -0
  76. package/dist/Old/src/hooks/drag/useWeekDayDrag.d.ts.map +1 -0
  77. package/dist/Old/src/hooks/virtualScroll/index.d.ts +3 -0
  78. package/dist/Old/src/hooks/virtualScroll/index.d.ts.map +1 -0
  79. package/dist/Old/src/hooks/virtualScroll/useVirtualMonthScroll.d.ts +8 -0
  80. package/dist/Old/src/hooks/virtualScroll/useVirtualMonthScroll.d.ts.map +1 -0
  81. package/dist/Old/src/hooks/virtualScroll/useVirtualScroll.d.ts +49 -0
  82. package/dist/Old/src/hooks/virtualScroll/useVirtualScroll.d.ts.map +1 -0
  83. package/dist/Old/src/plugins/dragPlugin.d.ts +6 -0
  84. package/dist/Old/src/plugins/dragPlugin.d.ts.map +1 -0
  85. package/dist/Old/src/plugins/eventsPlugin.d.ts +4 -0
  86. package/dist/Old/src/plugins/eventsPlugin.d.ts.map +1 -0
  87. package/dist/Old/src/plugins/index.d.ts +7 -0
  88. package/dist/Old/src/plugins/index.d.ts.map +1 -0
  89. package/dist/Old/src/types/calendar.d.ts +27 -0
  90. package/dist/Old/src/types/calendar.d.ts.map +1 -0
  91. package/dist/Old/src/types/config.d.ts +20 -0
  92. package/dist/Old/src/types/config.d.ts.map +1 -0
  93. package/dist/Old/src/types/core.d.ts +148 -0
  94. package/dist/Old/src/types/core.d.ts.map +1 -0
  95. package/dist/Old/src/types/dragIndicator.d.ts +141 -0
  96. package/dist/Old/src/types/dragIndicator.d.ts.map +1 -0
  97. package/dist/Old/src/types/event.d.ts +27 -0
  98. package/dist/Old/src/types/event.d.ts.map +1 -0
  99. package/dist/Old/src/types/factory.d.ts +148 -0
  100. package/dist/Old/src/types/factory.d.ts.map +1 -0
  101. package/dist/Old/src/types/hook.d.ts +104 -0
  102. package/dist/Old/src/types/hook.d.ts.map +1 -0
  103. package/dist/Old/src/types/index.d.ts +11 -0
  104. package/dist/Old/src/types/index.d.ts.map +1 -0
  105. package/dist/Old/src/types/layout.d.ts +114 -0
  106. package/dist/Old/src/types/layout.d.ts.map +1 -0
  107. package/dist/Old/src/types/monthView.d.ts +62 -0
  108. package/dist/Old/src/types/monthView.d.ts.map +1 -0
  109. package/dist/Old/src/types/plugin.d.ts +78 -0
  110. package/dist/Old/src/types/plugin.d.ts.map +1 -0
  111. package/dist/Old/src/utils/dateFormat.d.ts +15 -0
  112. package/dist/Old/src/utils/dateFormat.d.ts.map +1 -0
  113. package/dist/Old/src/utils/helpers.d.ts +89 -0
  114. package/dist/Old/src/utils/helpers.d.ts.map +1 -0
  115. package/dist/Old/src/utils/index.d.ts +3 -0
  116. package/dist/Old/src/utils/index.d.ts.map +1 -0
  117. package/dist/Old/src/views/DayView.d.ts +8 -0
  118. package/dist/Old/src/views/DayView.d.ts.map +1 -0
  119. package/dist/Old/src/views/MonthView.d.ts +8 -0
  120. package/dist/Old/src/views/MonthView.d.ts.map +1 -0
  121. package/dist/Old/src/views/WeekView.d.ts +8 -0
  122. package/dist/Old/src/views/WeekView.d.ts.map +1 -0
  123. package/dist/Old/src/views/YearView.d.ts +8 -0
  124. package/dist/Old/src/views/YearView.d.ts.map +1 -0
  125. package/dist/Old/useVirtualMonthScroll.d.ts +8 -0
  126. package/dist/Old/useVirtualMonthScroll.d.ts.map +1 -0
  127. package/dist/components/EventLayout.d.ts +134 -0
  128. package/dist/components/EventLayout.d.ts.map +1 -0
  129. package/dist/components/common/ColorPicker.d.ts +17 -0
  130. package/dist/components/common/ColorPicker.d.ts.map +1 -0
  131. package/dist/components/common/DefaultEventDetailDialog.d.ts +9 -0
  132. package/dist/components/common/DefaultEventDetailDialog.d.ts.map +1 -0
  133. package/dist/components/common/DefaultEventDetailPanel.d.ts +8 -0
  134. package/dist/components/common/DefaultEventDetailPanel.d.ts.map +1 -0
  135. package/dist/components/common/EventDetailPanelWithContent.d.ts +12 -0
  136. package/dist/components/common/EventDetailPanelWithContent.d.ts.map +1 -0
  137. package/dist/components/common/RangePicker.d.ts +24 -0
  138. package/dist/components/common/RangePicker.d.ts.map +1 -0
  139. package/dist/components/common/TodayBox.d.ts +8 -0
  140. package/dist/components/common/TodayBox.d.ts.map +1 -0
  141. package/dist/components/common/ViewHeader.d.ts +28 -0
  142. package/dist/components/common/ViewHeader.d.ts.map +1 -0
  143. package/dist/components/common/ViewSwitcher.d.ts +9 -0
  144. package/dist/components/common/ViewSwitcher.d.ts.map +1 -0
  145. package/dist/components/monthView/MonthDragIndicator.d.ts +13 -0
  146. package/dist/components/monthView/MonthDragIndicator.d.ts.map +1 -0
  147. package/dist/components/monthView/MultiDayEvent.d.ts +26 -0
  148. package/dist/components/monthView/MultiDayEvent.d.ts.map +1 -0
  149. package/dist/components/monthView/WeekComponent.d.ts +46 -0
  150. package/dist/components/monthView/WeekComponent.d.ts.map +1 -0
  151. package/dist/components/monthView/util.d.ts +12 -0
  152. package/dist/components/monthView/util.d.ts.map +1 -0
  153. package/dist/components/sidebar/DefaultCalendarSidebar.d.ts +5 -0
  154. package/dist/components/sidebar/DefaultCalendarSidebar.d.ts.map +1 -0
  155. package/dist/components/weekView/CalendarEvent.d.ts +43 -0
  156. package/dist/components/weekView/CalendarEvent.d.ts.map +1 -0
  157. package/dist/components/weekView/DragIndicator/DefaultDragIndicator.d.ts +3 -0
  158. package/dist/components/weekView/DragIndicator/DefaultDragIndicator.d.ts.map +1 -0
  159. package/dist/components/weekView/DragIndicator/DragIndicatorComponent.d.ts +8 -0
  160. package/dist/components/weekView/DragIndicator/DragIndicatorComponent.d.ts.map +1 -0
  161. package/dist/core/CalendarApp.d.ts +43 -0
  162. package/dist/core/CalendarApp.d.ts.map +1 -0
  163. package/dist/core/CalendarRenderer.d.ts +15 -0
  164. package/dist/core/CalendarRenderer.d.ts.map +1 -0
  165. package/dist/core/DayFlowCalendar.d.ts +15 -0
  166. package/dist/core/DayFlowCalendar.d.ts.map +1 -0
  167. package/dist/core/calendarRegistry.d.ts +104 -0
  168. package/dist/core/calendarRegistry.d.ts.map +1 -0
  169. package/dist/core/config.d.ts +61 -0
  170. package/dist/core/config.d.ts.map +1 -0
  171. package/dist/core/index.d.ts +7 -0
  172. package/dist/core/index.d.ts.map +1 -0
  173. package/dist/core/useCalendarAdapter.d.ts +4 -0
  174. package/dist/core/useCalendarAdapter.d.ts.map +1 -0
  175. package/dist/core/useCalendarApp.d.ts +3 -0
  176. package/dist/core/useCalendarApp.d.ts.map +1 -0
  177. package/dist/factories/ViewAdapter.d.ts +5 -0
  178. package/dist/factories/ViewAdapter.d.ts.map +1 -0
  179. package/dist/factories/createDayView.d.ts +12 -0
  180. package/dist/factories/createDayView.d.ts.map +1 -0
  181. package/dist/factories/createMonthView.d.ts +16 -0
  182. package/dist/factories/createMonthView.d.ts.map +1 -0
  183. package/dist/factories/createWeekView.d.ts +15 -0
  184. package/dist/factories/createWeekView.d.ts.map +1 -0
  185. package/dist/factories/createYearView.d.ts +10 -0
  186. package/dist/factories/createYearView.d.ts.map +1 -0
  187. package/dist/factories/index.d.ts +18 -0
  188. package/dist/factories/index.d.ts.map +1 -0
  189. package/dist/hooks/drag/index.d.ts +8 -0
  190. package/dist/hooks/drag/index.d.ts.map +1 -0
  191. package/dist/hooks/drag/useDrag.d.ts +3 -0
  192. package/dist/hooks/drag/useDrag.d.ts.map +1 -0
  193. package/dist/hooks/drag/useDragCommon.d.ts +3 -0
  194. package/dist/hooks/drag/useDragCommon.d.ts.map +1 -0
  195. package/dist/hooks/drag/useDragHandlers.d.ts +3 -0
  196. package/dist/hooks/drag/useDragHandlers.d.ts.map +1 -0
  197. package/dist/hooks/drag/useDragManager.d.ts +3 -0
  198. package/dist/hooks/drag/useDragManager.d.ts.map +1 -0
  199. package/dist/hooks/drag/useDragState.d.ts +3 -0
  200. package/dist/hooks/drag/useDragState.d.ts.map +1 -0
  201. package/dist/hooks/drag/useMonthDrag.d.ts +3 -0
  202. package/dist/hooks/drag/useMonthDrag.d.ts.map +1 -0
  203. package/dist/hooks/drag/useWeekDayDrag.d.ts +3 -0
  204. package/dist/hooks/drag/useWeekDayDrag.d.ts.map +1 -0
  205. package/dist/hooks/useEventCreator.d.ts +63 -0
  206. package/dist/hooks/useEventCreator.d.ts.map +1 -0
  207. package/dist/hooks/virtualScroll/index.d.ts +3 -0
  208. package/dist/hooks/virtualScroll/index.d.ts.map +1 -0
  209. package/dist/hooks/virtualScroll/useVirtualMonthScroll.d.ts +8 -0
  210. package/dist/hooks/virtualScroll/useVirtualMonthScroll.d.ts.map +1 -0
  211. package/dist/hooks/virtualScroll/useVirtualScroll.d.ts +49 -0
  212. package/dist/hooks/virtualScroll/useVirtualScroll.d.ts.map +1 -0
  213. package/dist/index.d.ts +35 -0
  214. package/dist/index.d.ts.map +1 -0
  215. package/dist/index.esm.js +125 -0
  216. package/dist/index.esm.js.map +1 -0
  217. package/dist/index.js +126 -0
  218. package/dist/index.js.map +1 -0
  219. package/dist/plugins/dragPlugin.d.ts +6 -0
  220. package/dist/plugins/dragPlugin.d.ts.map +1 -0
  221. package/dist/plugins/eventsPlugin.d.ts +4 -0
  222. package/dist/plugins/eventsPlugin.d.ts.map +1 -0
  223. package/dist/plugins/index.d.ts +7 -0
  224. package/dist/plugins/index.d.ts.map +1 -0
  225. package/dist/setupTests.d.ts +2 -0
  226. package/dist/setupTests.d.ts.map +1 -0
  227. package/dist/styles/calendarClassNames.d.ts +155 -0
  228. package/dist/styles/calendarClassNames.d.ts.map +1 -0
  229. package/dist/styles/classNames.d.ts +297 -0
  230. package/dist/styles/classNames.d.ts.map +1 -0
  231. package/dist/styles.css +1 -0
  232. package/dist/types/calendar.d.ts +27 -0
  233. package/dist/types/calendar.d.ts.map +1 -0
  234. package/dist/types/calendarTypes.d.ts +69 -0
  235. package/dist/types/calendarTypes.d.ts.map +1 -0
  236. package/dist/types/config.d.ts +20 -0
  237. package/dist/types/config.d.ts.map +1 -0
  238. package/dist/types/core.d.ts +192 -0
  239. package/dist/types/core.d.ts.map +1 -0
  240. package/dist/types/dragIndicator.d.ts +155 -0
  241. package/dist/types/dragIndicator.d.ts.map +1 -0
  242. package/dist/types/event.d.ts +17 -0
  243. package/dist/types/event.d.ts.map +1 -0
  244. package/dist/types/eventDetail.d.ts +73 -0
  245. package/dist/types/eventDetail.d.ts.map +1 -0
  246. package/dist/types/factory.d.ts +154 -0
  247. package/dist/types/factory.d.ts.map +1 -0
  248. package/dist/types/hook.d.ts +104 -0
  249. package/dist/types/hook.d.ts.map +1 -0
  250. package/dist/types/index.d.ts +13 -0
  251. package/dist/types/index.d.ts.map +1 -0
  252. package/dist/types/layout.d.ts +114 -0
  253. package/dist/types/layout.d.ts.map +1 -0
  254. package/dist/types/monthView.d.ts +64 -0
  255. package/dist/types/monthView.d.ts.map +1 -0
  256. package/dist/types/plugin.d.ts +78 -0
  257. package/dist/types/plugin.d.ts.map +1 -0
  258. package/dist/utils/calendarDataUtils.d.ts +84 -0
  259. package/dist/utils/calendarDataUtils.d.ts.map +1 -0
  260. package/dist/utils/colorResolver.d.ts +33 -0
  261. package/dist/utils/colorResolver.d.ts.map +1 -0
  262. package/dist/utils/colorUtils.d.ts +27 -0
  263. package/dist/utils/colorUtils.d.ts.map +1 -0
  264. package/dist/utils/compat.d.ts +60 -0
  265. package/dist/utils/compat.d.ts.map +1 -0
  266. package/dist/utils/dateConstants.d.ts +23 -0
  267. package/dist/utils/dateConstants.d.ts.map +1 -0
  268. package/dist/utils/dateFormat.d.ts +16 -0
  269. package/dist/utils/dateFormat.d.ts.map +1 -0
  270. package/dist/utils/dateRangeUtils.d.ts +25 -0
  271. package/dist/utils/dateRangeUtils.d.ts.map +1 -0
  272. package/dist/utils/dateTimeUtils.d.ts +50 -0
  273. package/dist/utils/dateTimeUtils.d.ts.map +1 -0
  274. package/dist/utils/eventHelpers.d.ts +144 -0
  275. package/dist/utils/eventHelpers.d.ts.map +1 -0
  276. package/dist/utils/eventUtils.d.ts +109 -0
  277. package/dist/utils/eventUtils.d.ts.map +1 -0
  278. package/dist/utils/helpers.d.ts +27 -0
  279. package/dist/utils/helpers.d.ts.map +1 -0
  280. package/dist/utils/index.d.ts +7 -0
  281. package/dist/utils/index.d.ts.map +1 -0
  282. package/dist/utils/logger.d.ts +16 -0
  283. package/dist/utils/logger.d.ts.map +1 -0
  284. package/dist/utils/rangePicker.d.ts +9 -0
  285. package/dist/utils/rangePicker.d.ts.map +1 -0
  286. package/dist/utils/temporal.d.ts +101 -0
  287. package/dist/utils/temporal.d.ts.map +1 -0
  288. package/dist/utils/temporalTypeGuards.d.ts +64 -0
  289. package/dist/utils/temporalTypeGuards.d.ts.map +1 -0
  290. package/dist/utils/testDataUtils.d.ts +15 -0
  291. package/dist/utils/testDataUtils.d.ts.map +1 -0
  292. package/dist/utils/timeUtils.d.ts +39 -0
  293. package/dist/utils/timeUtils.d.ts.map +1 -0
  294. package/dist/utils/utilityFunctions.d.ts +12 -0
  295. package/dist/utils/utilityFunctions.d.ts.map +1 -0
  296. package/dist/views/DayView.d.ts +14 -0
  297. package/dist/views/DayView.d.ts.map +1 -0
  298. package/dist/views/MonthView.d.ts +14 -0
  299. package/dist/views/MonthView.d.ts.map +1 -0
  300. package/dist/views/WeekView.d.ts +14 -0
  301. package/dist/views/WeekView.d.ts.map +1 -0
  302. package/dist/views/YearView.d.ts +8 -0
  303. package/dist/views/YearView.d.ts.map +1 -0
  304. package/package.json +94 -0
@@ -0,0 +1,33 @@
1
+ import { CalendarRegistry } from '@/core/calendarRegistry';
2
+ import { ThemeMode } from '@/types/calendarTypes';
3
+ import { Event } from '@/types/event';
4
+ /**
5
+ * Resolve event colors from calendarId or fallback to color prop
6
+ * This function provides backward compatibility while supporting the new system
7
+ */
8
+ export declare function resolveEventColors(event: Event, theme?: ThemeMode, registry?: CalendarRegistry): {
9
+ eventColor: string;
10
+ eventSelectedColor: string;
11
+ lineColor: string;
12
+ textColor: string;
13
+ };
14
+ /**
15
+ * Get event color class (for backward compatibility)
16
+ * @deprecated Use resolveEventColors instead
17
+ */
18
+ export declare function getEventColorFromRegistry(calendarIdOrColor?: string, theme?: ThemeMode, registry?: CalendarRegistry): string;
19
+ /**
20
+ * Get selected background color from registry
21
+ * @deprecated Use resolveEventColors instead
22
+ */
23
+ export declare function getSelectedBgColorFromRegistry(calendarIdOrColor?: string, theme?: ThemeMode, registry?: CalendarRegistry): string;
24
+ /**
25
+ * Get line color from registry
26
+ * @deprecated Use resolveEventColors instead
27
+ */
28
+ export declare function getLineColorFromRegistry(calendarIdOrColor?: string, theme?: ThemeMode, registry?: CalendarRegistry): string;
29
+ /**
30
+ * Get text color from registry
31
+ */
32
+ export declare function getTextColorFromRegistry(calendarIdOrColor?: string, theme?: ThemeMode, registry?: CalendarRegistry): string;
33
+ //# sourceMappingURL=colorResolver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorResolver.d.ts","sourceRoot":"","sources":["../../src/utils/colorResolver.ts"],"names":[],"mappings":"AAEA,OAAO,EAA8B,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACvF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC;;;GAGG;AACH,wBAAgB,kBAAkB,CAChC,KAAK,EAAE,KAAK,EACZ,KAAK,CAAC,EAAE,SAAS,EACjB,QAAQ,CAAC,EAAE,gBAAgB,GAC1B;IACD,UAAU,EAAE,MAAM,CAAC;IACnB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAeA;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CACvC,iBAAiB,CAAC,EAAE,MAAM,EAC1B,KAAK,CAAC,EAAE,SAAS,EACjB,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,MAAM,CAGR;AAED;;;GAGG;AACH,wBAAgB,8BAA8B,CAC5C,iBAAiB,CAAC,EAAE,MAAM,EAC1B,KAAK,CAAC,EAAE,SAAS,EACjB,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,MAAM,CAGR;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CACtC,iBAAiB,CAAC,EAAE,MAAM,EAC1B,KAAK,CAAC,EAAE,SAAS,EACjB,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,MAAM,CAGR;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,iBAAiB,CAAC,EAAE,MAAM,EAC1B,KAAK,CAAC,EAAE,SAAS,EACjB,QAAQ,CAAC,EAAE,gBAAgB,GAC1B,MAAM,CAGR"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Color Utilities
3
+ *
4
+ * This module provides utilities for resolving event colors using the calendar registry.
5
+ * All color functions return actual color values (not CSS classes) for inline styles.
6
+ */
7
+ /**
8
+ * Get event background color (actual color value, not CSS class)
9
+ * Use this for inline styles
10
+ */
11
+ export declare const getEventBgColor: (calendarIdOrColor: string) => string;
12
+ /**
13
+ * Get event text color (actual color value, not CSS class)
14
+ * Use this for inline styles
15
+ */
16
+ export declare const getEventTextColor: (calendarIdOrColor: string) => string;
17
+ /**
18
+ * Get selected background color
19
+ * Now uses the calendar registry for color resolution
20
+ */
21
+ export declare const getSelectedBgColor: (calendarIdOrColor: string) => string;
22
+ /**
23
+ * Get line color
24
+ * Now uses the calendar registry for color resolution
25
+ */
26
+ export declare const getLineColor: (calendarIdOrColor: string) => string;
27
+ //# sourceMappingURL=colorUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colorUtils.d.ts","sourceRoot":"","sources":["../../src/utils/colorUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;;GAGG;AACH,eAAO,MAAM,eAAe,GAAI,mBAAmB,MAAM,KAAG,MAI3D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,GAAI,mBAAmB,MAAM,KAAG,MAI7D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,GAAI,mBAAmB,MAAM,KAAG,MAI9D,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,GAAI,mBAAmB,MAAM,KAAG,MAIxD,CAAC"}
@@ -0,0 +1,60 @@
1
+ /**
2
+ * 兼容层 - 为现有代码提供向后兼容支持
3
+ * 允许代码同时处理 Date 和 Temporal 对象
4
+ */
5
+ import { Temporal } from 'temporal-polyfill';
6
+ import { Event, LegacyEvent } from '@/types/event';
7
+ /**
8
+ * 从 Date 或 Temporal 对象中提取小时数(含小数)
9
+ * @param dateTime Date 或 Temporal 对象
10
+ * @returns 小时数(0-24,支持小数)
11
+ */
12
+ export declare function extractHourCompat(dateTime: Date | Temporal.PlainDate | Temporal.ZonedDateTime): number;
13
+ /**
14
+ * 创建新的日期时间对象,设置为指定小时(兼容版本)
15
+ * @param baseDateTime 基准日期时间
16
+ * @param hour 小时数(支持小数)
17
+ * @returns Date 或 Temporal.ZonedDateTime
18
+ */
19
+ export declare function createDateTimeWithHourCompat(baseDateTime: Date | Temporal.PlainDate | Temporal.ZonedDateTime, hour: number): Date | Temporal.ZonedDateTime;
20
+ /**
21
+ * 判断两个日期时间是否为同一天(兼容版本)
22
+ */
23
+ export declare function isSameDayCompat(date1: Date | Temporal.PlainDate | Temporal.ZonedDateTime, date2: Date | Temporal.PlainDate | Temporal.ZonedDateTime): boolean;
24
+ /**
25
+ * 判断事件是否为跨日事件(兼容版本)
26
+ */
27
+ export declare function isMultiDayEventCompat(start: Date | Temporal.PlainDate | Temporal.ZonedDateTime, end: Date | Temporal.PlainDate | Temporal.ZonedDateTime): boolean;
28
+ /**
29
+ * 获取日期的开始时间(兼容版本)
30
+ */
31
+ export declare function getStartOfDayCompat(dateTime: Date | Temporal.PlainDate | Temporal.ZonedDateTime): Date | Temporal.ZonedDateTime;
32
+ /**
33
+ * 获取日期的结束时间(兼容版本)
34
+ */
35
+ export declare function getEndOfDayCompat(dateTime: Date | Temporal.PlainDate | Temporal.ZonedDateTime): Date | Temporal.ZonedDateTime;
36
+ /**
37
+ * 将事件转换为统一的 Date 格式(用于旧代码)
38
+ */
39
+ export declare function eventToLegacyDates(event: Event): {
40
+ start: Date;
41
+ end: Date;
42
+ };
43
+ /**
44
+ * 将 Legacy Event 转换为使用 Temporal 的 Event
45
+ */
46
+ export declare function legacyEventToEvent(legacyEvent: LegacyEvent, timeZone?: string): Event;
47
+ /**
48
+ * 批量转换 Legacy Events
49
+ */
50
+ export declare function convertLegacyEvents(legacyEvents: LegacyEvent[], timeZone?: string): Event[];
51
+ /**
52
+ * 比较两个时间(兼容版本)
53
+ * @returns -1 (before), 0 (equal), 1 (after)
54
+ */
55
+ export declare function compareDateTime(dt1: Date | Temporal.PlainDate | Temporal.ZonedDateTime, dt2: Date | Temporal.PlainDate | Temporal.ZonedDateTime): number;
56
+ /**
57
+ * 检查时间是否在范围内(兼容版本)
58
+ */
59
+ export declare function isDateTimeInRange(dateTime: Date | Temporal.PlainDate | Temporal.ZonedDateTime, start: Date | Temporal.PlainDate | Temporal.ZonedDateTime, end: Date | Temporal.PlainDate | Temporal.ZonedDateTime): boolean;
60
+ //# sourceMappingURL=compat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/utils/compat.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAmBnD;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAC3D,MAAM,CAOR;AAED;;;;;GAKG;AACH,wBAAgB,4BAA4B,CAC1C,YAAY,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,EAChE,IAAI,EAAE,MAAM,GACX,IAAI,GAAG,QAAQ,CAAC,aAAa,CAS/B;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,KAAK,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,EACzD,KAAK,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GACxD,OAAO,CAgBT;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,EACzD,GAAG,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GACtD,OAAO,CAST;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAC3D,IAAI,GAAG,QAAQ,CAAC,aAAa,CAO/B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAC3D,IAAI,GAAG,QAAQ,CAAC,aAAa,CAO/B;AAMD;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,KAAK,GAAG;IAChD,KAAK,EAAE,IAAI,CAAC;IACZ,GAAG,EAAE,IAAI,CAAC;CACX,CAKA;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,WAAW,EAAE,WAAW,EACxB,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK,CAgBP;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CACjC,YAAY,EAAE,WAAW,EAAE,EAC3B,QAAQ,CAAC,EAAE,MAAM,GAChB,KAAK,EAAE,CAET;AAMD;;;GAGG;AACH,wBAAgB,eAAe,CAC7B,GAAG,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,EACvD,GAAG,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GACtD,MAAM,CAmBR;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,EAC5D,KAAK,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,EACzD,GAAG,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GACtD,OAAO,CAET"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Date Constants
3
+ *
4
+ * This module provides constant arrays for day and month names in various formats.
5
+ * Used throughout the application for displaying date information.
6
+ */
7
+ /**
8
+ * Week day abbreviations (Mon-Sun)
9
+ */
10
+ export declare const weekDays: string[];
11
+ /**
12
+ * Full week day names (Monday-Sunday)
13
+ */
14
+ export declare const weekDaysFullName: string[];
15
+ /**
16
+ * Full month names (January-December)
17
+ */
18
+ export declare const monthNames: string[];
19
+ /**
20
+ * Month abbreviations (Jan-Dec)
21
+ */
22
+ export declare const shortMonthNames: string[];
23
+ //# sourceMappingURL=dateConstants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateConstants.d.ts","sourceRoot":"","sources":["../../src/utils/dateConstants.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH;;GAEG;AACH,eAAO,MAAM,QAAQ,UAAoD,CAAC;AAE1E;;GAEG;AACH,eAAO,MAAM,gBAAgB,UAQ5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU,UAatB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,UAa3B,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { Temporal } from 'temporal-polyfill';
2
+ /**
3
+ * Format date to DD/MM/YYYY format
4
+ * Ensures consistent server and client rendering
5
+ */
6
+ export declare const formatDateConsistent: (date?: Date | Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime) => string;
7
+ /**
8
+ * Format month and year to consistent format
9
+ */
10
+ export declare const formatMonthYear: (date: Date) => string;
11
+ /**
12
+ * Format date to "DD MMM YYYY" format (e.g., "15 Jan 2025")
13
+ * Used for event detail display
14
+ */
15
+ export declare const formatDate: (temporal: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime) => string;
16
+ //# sourceMappingURL=dateFormat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateFormat.d.ts","sourceRoot":"","sources":["../../src/utils/dateFormat.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C;;;GAGG;AACH,eAAO,MAAM,oBAAoB,GAC/B,OAAO,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,KACjF,MA2BF,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,eAAe,GAAI,MAAM,IAAI,KAAG,MAgB5C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,UAAU,GACrB,UAAU,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,KAC7E,MAoBF,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * Date Range Utilities
3
+ *
4
+ * This module provides utilities for calculating date ranges, particularly
5
+ * for week-based operations (Monday-Sunday).
6
+ */
7
+ /**
8
+ * Get the Monday-Sunday range for a given date
9
+ * @param date Input date
10
+ * @returns Object with monday and sunday dates
11
+ */
12
+ export declare const getWeekRange: (date: Date) => {
13
+ monday: Date;
14
+ sunday: Date;
15
+ };
16
+ /**
17
+ * Get current week dates (Monday-Sunday) with today indicator
18
+ * @returns Array of 7 date objects with date, month, and isToday flag
19
+ */
20
+ export declare const getCurrentWeekDates: () => {
21
+ date: number;
22
+ month: string;
23
+ isToday: boolean;
24
+ }[];
25
+ //# sourceMappingURL=dateRangeUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateRangeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/dateRangeUtils.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAQH;;;;GAIG;AACH,eAAO,MAAM,YAAY,GAAI,MAAM,IAAI;;;CAYtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB;;;;GAkB/B,CAAC"}
@@ -0,0 +1,50 @@
1
+ /**
2
+ * Date and Time Conversion Utilities
3
+ *
4
+ * This module provides utilities for converting between Date and Temporal API objects,
5
+ * extracting time components, and performing date comparisons.
6
+ *
7
+ * All functions support both legacy Date objects and modern Temporal API types
8
+ * for backward compatibility and future-proofing.
9
+ */
10
+ import { Temporal } from 'temporal-polyfill';
11
+ /**
12
+ * Extract hour number from Date or Temporal object (with decimal for minutes, e.g., 14.5 = 14:30)
13
+ * @param dateTime Date or Temporal object
14
+ * @returns Hour number (0-24, supports decimals)
15
+ */
16
+ export declare const extractHourFromDate: (dateTime: Date | Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime) => number;
17
+ /**
18
+ * Create a new date-time object based on given date but set to specified hour
19
+ * @param baseDateTime Base date-time
20
+ * @param hour Hour number (supports decimals, e.g., 14.5 = 14:30)
21
+ * @returns Date or Temporal (PlainDateTime or ZonedDateTime)
22
+ */
23
+ export declare const createDateWithHour: (baseDateTime: Date | Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, hour: number) => Date | Temporal.PlainDateTime | Temporal.ZonedDateTime;
24
+ /**
25
+ * Get start of day (00:00:00.000)
26
+ * @param dateTime Date-time
27
+ * @returns Start of day
28
+ */
29
+ export declare const getStartOfDay: (dateTime: Date | Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime) => Date | Temporal.ZonedDateTime;
30
+ /**
31
+ * Get end of day (23:59:59.999)
32
+ * @param dateTime Date-time
33
+ * @returns End of day
34
+ */
35
+ export declare const getEndOfDay: (dateTime: Date | Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime) => Date | Temporal.ZonedDateTime;
36
+ /**
37
+ * Check if two dates are on the same day
38
+ * @param date1 Date 1
39
+ * @param date2 Date 2
40
+ * @returns Whether they are the same day
41
+ */
42
+ export declare const isSameDay: (date1: Date | Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, date2: Date | Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime) => boolean;
43
+ /**
44
+ * Check if event spans multiple days
45
+ * @param start Start time
46
+ * @param end End time
47
+ * @returns Whether it's a multi-day event
48
+ */
49
+ export declare const isMultiDayEvent: (start: Date | Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, end: Date | Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime) => boolean;
50
+ //# sourceMappingURL=dateTimeUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dateTimeUtils.d.ts","sourceRoot":"","sources":["../../src/utils/dateTimeUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAc7C;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,GAC9B,UAAU,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,KACpF,MAOF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,GAC7B,cAAc,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,EACzF,MAAM,MAAM,KACX,IAAI,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAS3C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,aAAa,GACxB,UAAU,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,KACpF,IAAI,GAAG,QAAQ,CAAC,aAOlB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,WAAW,GACtB,UAAU,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,KACpF,IAAI,GAAG,QAAQ,CAAC,aAOlB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,SAAS,GACpB,OAAO,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,EAClF,OAAO,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,KACjF,OAgCF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAC1B,OAAO,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,EAClF,KAAK,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,KAC/E,OAEF,CAAC"}
@@ -0,0 +1,144 @@
1
+ /**
2
+ * Event Helper Functions
3
+ *
4
+ * This module provides simplified APIs for creating events.
5
+ * Provides multiple layers of abstraction:
6
+ * - Simple API: createSimpleEvent() - for local events without timezone complexity
7
+ * - Advanced API: createEventWithTimeZone() - for timezone-aware events
8
+ * - Direct API: Users can still use Temporal API directly for full control
9
+ */
10
+ import { Temporal } from 'temporal-polyfill';
11
+ import { Event } from '@/types';
12
+ /**
13
+ * Event creation parameters - supports both Date and Temporal types
14
+ * For local events (no timezone)
15
+ */
16
+ export interface CreateEventParams {
17
+ id: string;
18
+ title: string;
19
+ description?: string;
20
+ start: Date | Temporal.PlainDate | Temporal.PlainDateTime;
21
+ end: Date | Temporal.PlainDate | Temporal.PlainDateTime;
22
+ allDay?: boolean;
23
+ calendarId?: string;
24
+ meta?: Record<string, any>;
25
+ }
26
+ /**
27
+ * Timezone event creation parameters
28
+ * For events that need explicit timezone handling
29
+ */
30
+ export interface CreateTimezoneEventParams {
31
+ id: string;
32
+ title: string;
33
+ description?: string;
34
+ start: Date | Temporal.ZonedDateTime;
35
+ end: Date | Temporal.ZonedDateTime;
36
+ timeZone: string;
37
+ calendarId?: string;
38
+ meta?: Record<string, any>;
39
+ }
40
+ /**
41
+ * Create local event (recommended for most use cases)
42
+ *
43
+ * Supports flexible input types:
44
+ * - Date objects (automatically converted)
45
+ * - Temporal.PlainDate (for all-day events)
46
+ * - Temporal.PlainDateTime (for timed events)
47
+ *
48
+ * @example
49
+ * // Using Date objects
50
+ * createEvent({
51
+ * id: '1',
52
+ * title: 'Team Meeting',
53
+ * start: new Date(2025, 0, 15, 14, 30),
54
+ * end: new Date(2025, 0, 15, 16, 0),
55
+ * });
56
+ *
57
+ * @example
58
+ * // Using Temporal.PlainDateTime
59
+ * createEvent({
60
+ * id: '2',
61
+ * title: 'Workshop',
62
+ * start: Temporal.PlainDateTime.from('2025-01-15T09:00'),
63
+ * end: Temporal.PlainDateTime.from('2025-01-15T17:00'),
64
+ * });
65
+ *
66
+ * @example
67
+ * // All-day event
68
+ * createEvent({
69
+ * id: '3',
70
+ * title: 'Birthday',
71
+ * start: new Date(2025, 0, 15),
72
+ * end: new Date(2025, 0, 15),
73
+ * allDay: true,
74
+ * });
75
+ */
76
+ export declare function createEvent(params: CreateEventParams): Event;
77
+ /**
78
+ * Create timezone-aware event
79
+ *
80
+ * Use this when you need explicit timezone control, such as:
81
+ * - International meetings across timezones
82
+ * - Flight schedules
83
+ * - Events that need to show in different timezones
84
+ *
85
+ * Supports flexible input types:
86
+ * - Date objects (converted using specified timezone)
87
+ * - Temporal.ZonedDateTime (used directly)
88
+ *
89
+ * @example
90
+ * // Using Date objects
91
+ * createTimezoneEvent({
92
+ * id: '1',
93
+ * title: 'International Conference',
94
+ * start: new Date(2025, 0, 15, 14, 0),
95
+ * end: new Date(2025, 0, 15, 16, 0),
96
+ * timeZone: 'America/New_York'
97
+ * });
98
+ *
99
+ * @example
100
+ * // Using ZonedDateTime
101
+ * createTimezoneEvent({
102
+ * id: '2',
103
+ * title: 'Asia-US Sync',
104
+ * start: Temporal.ZonedDateTime.from('2025-01-15T09:00[Asia/Shanghai]'),
105
+ * end: Temporal.ZonedDateTime.from('2025-01-15T10:00[Asia/Shanghai]'),
106
+ * timeZone: 'Asia/Shanghai', // Only used if start/end are Date objects
107
+ * });
108
+ */
109
+ export declare function createTimezoneEvent(params: CreateTimezoneEventParams): Event;
110
+ /**
111
+ * Create multiple local events at once
112
+ */
113
+ export declare function createEvents(paramsArray: CreateEventParams[]): Event[];
114
+ /**
115
+ * Create multiple timezone-aware events at once
116
+ */
117
+ export declare function createTimezoneEvents(paramsArray: CreateTimezoneEventParams[]): Event[];
118
+ /**
119
+ * Quick create all-day event
120
+ */
121
+ export declare function createAllDayEvent(id: string, title: string, date: Date, options?: Omit<CreateEventParams, 'id' | 'title' | 'start' | 'end' | 'allDay'>): Event;
122
+ /**
123
+ * Quick create timed event
124
+ */
125
+ export declare function createTimedEvent(id: string, title: string, start: Date, end: Date, options?: Omit<CreateEventParams, 'id' | 'title' | 'start' | 'end'>): Event;
126
+ /**
127
+ * Convert legacy Date-based event to Temporal-based event
128
+ * @deprecated Use createEvent() directly with Date objects instead
129
+ */
130
+ export declare function convertDateEvent(id: string, title: string, startDate: Date, endDate: Date, allDay?: boolean, options?: {
131
+ description?: string;
132
+ calendarId?: string;
133
+ meta?: Record<string, any>;
134
+ }): Event;
135
+ /**
136
+ * Convert legacy Date-based event to timezone-aware event
137
+ * @deprecated Use createTimezoneEvent() directly with Date objects instead
138
+ */
139
+ export declare function convertDateEventWithTimeZone(id: string, title: string, startDate: Date, endDate: Date, timeZone: string, options?: {
140
+ description?: string;
141
+ calendarId?: string;
142
+ meta?: Record<string, any>;
143
+ }): Event;
144
+ //# sourceMappingURL=eventHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventHelpers.d.ts","sourceRoot":"","sources":["../../src/utils/eventHelpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAWhC;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,KAAK,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC;IAC1D,GAAG,EAAE,IAAI,GAAG,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,CAAC;IAGxD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B;AAED;;;GAGG;AACH,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IAKrB,KAAK,EAAE,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC;IACrC,GAAG,EAAE,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC;IAInC,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B;AAmDD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,iBAAiB,GAAG,KAAK,CAc5D;AAMD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,yBAAyB,GAAG,KAAK,CAc5E;AAMD;;GAEG;AACH,wBAAgB,YAAY,CAAC,WAAW,EAAE,iBAAiB,EAAE,GAAG,KAAK,EAAE,CAEtE;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,WAAW,EAAE,yBAAyB,EAAE,GACvC,KAAK,EAAE,CAET;AAMD;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,IAAI,EACV,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC,GAC7E,KAAK,CASP;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,KAAK,EAAE,IAAI,EACX,GAAG,EAAE,IAAI,EACT,OAAO,CAAC,EAAE,IAAI,CAAC,iBAAiB,EAAE,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,KAAK,CAAC,GAClE,KAAK,CAQP;AAMD;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,MAAM,GAAE,OAAe,EACvB,OAAO,CAAC,EAAE;IACR,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,GACA,KAAK,CASP;AAED;;;GAGG;AACH,wBAAgB,4BAA4B,CAC1C,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,IAAI,EACf,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,MAAM,EAChB,OAAO,CAAC,EAAE;IACR,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CAC5B,GACA,KAAK,CASP"}
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Event Utilities
3
+ *
4
+ * This module provides utilities for event operations including:
5
+ * - Filtering events by day and type
6
+ * - Calculating day indices based on week start dates
7
+ * - Creating and updating events with proper date/time handling
8
+ * - Converting between Date and Temporal API objects
9
+ */
10
+ import { Event } from '@/types';
11
+ /**
12
+ * Get regular (non-all-day) events for a specific day index
13
+ * @param dayIndex Day index (0-6, Monday-Sunday)
14
+ * @param events Array of events
15
+ * @returns Filtered events
16
+ */
17
+ export declare const getEventsForDay: (dayIndex: number, events: Event[]) => Event[];
18
+ /**
19
+ * Get all-day events for a specific day index
20
+ * Supports date range checking when weekStart is provided
21
+ * @param dayIndex Day index (0-6, Monday-Sunday)
22
+ * @param events Array of events
23
+ * @param weekStart Optional week start date for accurate date range checking
24
+ * @returns Filtered all-day events
25
+ */
26
+ export declare const getAllDayEventsForDay: (dayIndex: number, events: Event[], weekStart?: Date) => Event[];
27
+ /**
28
+ * Get Date object for a specific day index relative to week start
29
+ * @param weekStart Week start date
30
+ * @param dayIndex Day index (0-6)
31
+ * @returns Date object
32
+ */
33
+ export declare const getDateByDayIndex: (weekStart: Date, dayIndex: number) => Date;
34
+ /**
35
+ * Update event's date and dayIndex
36
+ * @param event Event to update
37
+ * @param newDayIndex New day index
38
+ * @param weekStart Week start date
39
+ * @returns Updated event
40
+ */
41
+ export declare const updateEventDateAndDay: (event: Event, newDayIndex: number, weekStart: Date) => Event;
42
+ /**
43
+ * Create new event with Date fields set
44
+ * @param eventData Event data without start/end
45
+ * @param weekStart Week start date
46
+ * @returns Complete event with Temporal start/end
47
+ */
48
+ export declare const createEventWithDate: (eventData: Omit<Event, "start" | "end">, weekStart: Date) => Event;
49
+ /**
50
+ * Calculate day index based on real date and current week start
51
+ * @param eventDate Event date
52
+ * @param weekStart Week start date
53
+ * @returns Day index (can be outside 0-6 range for events outside current week)
54
+ */
55
+ export declare const calculateDayIndex: (eventDate: Date, weekStart: Date) => number;
56
+ /**
57
+ * Check if event is within current week range
58
+ * @param eventDate Event date
59
+ * @param weekStart Week start date
60
+ * @returns Whether event is in the week
61
+ */
62
+ export declare const isEventInWeek: (eventDate: Date, weekStart: Date) => boolean;
63
+ /**
64
+ * Recalculate day field for all events (based on current week)
65
+ * @param events Array of events
66
+ * @param weekStart Week start date
67
+ * @returns Events with updated day indices
68
+ */
69
+ export declare const recalculateEventDays: (events: Event[], weekStart: Date) => Event[];
70
+ /**
71
+ * Get day index by Date (relative to week start)
72
+ * @param weekStart Week start date
73
+ * @param targetDate Target date
74
+ * @returns Day index
75
+ */
76
+ export declare const getDayIndexByDate: (weekStart: Date, targetDate: Date) => number;
77
+ /**
78
+ * Get events within specified week range
79
+ * @param events Array of events
80
+ * @param weekStart Week start date
81
+ * @returns Filtered and recalculated events
82
+ */
83
+ export declare const getEventsForWeek: (events: Event[], weekStart: Date) => Event[];
84
+ /**
85
+ * Create event with real date
86
+ * @param eventData Event data without start/end
87
+ * @param weekStart Week start date
88
+ * @returns Complete event
89
+ */
90
+ export declare const createEventWithRealDate: (eventData: Omit<Event, "start" | "end">, weekStart: Date) => Event;
91
+ /**
92
+ * Update event with real date
93
+ * @param event Event to update
94
+ * @param newDayIndex New day index
95
+ * @param weekStart Week start date
96
+ * @returns Updated event
97
+ */
98
+ export declare const updateEventWithRealDate: (event: Event, newDayIndex: number, weekStart: Date) => Event;
99
+ /**
100
+ * Create event with PlainDateTime (default for local events)
101
+ * This is the recommended function for creating events without timezone complexity
102
+ */
103
+ export declare const createEventWithPlainDateTime: (eventData: Omit<Event, "start" | "end">, weekStart: Date) => Event;
104
+ /**
105
+ * Create event with ZonedDateTime (for timezone-aware events)
106
+ * Use when explicit timezone control is needed
107
+ */
108
+ export declare const createEventWithZonedDateTime: (eventData: Omit<Event, "start" | "end">, weekStart: Date, timeZone: string) => Event;
109
+ //# sourceMappingURL=eventUtils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventUtils.d.ts","sourceRoot":"","sources":["../../src/utils/eventUtils.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAOhC;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,EAAE,QAAQ,KAAK,EAAE,YAEhE,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,GAChC,UAAU,MAAM,EAChB,QAAQ,KAAK,EAAE,EACf,YAAY,IAAI,YAyBjB,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,WAAW,IAAI,EAAE,UAAU,MAAM,KAAG,IAIrE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,qBAAqB,GAChC,OAAO,KAAK,EACZ,aAAa,MAAM,EACnB,WAAW,IAAI,KACd,KAkCF,CAAC;AAgCF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAC9B,WAAW,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC,EACvC,WAAW,IAAI,KACd,KAQF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAAI,WAAW,IAAI,EAAE,WAAW,IAAI,KAAG,MAapE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,GAAI,WAAW,IAAI,EAAE,WAAW,IAAI,KAAG,OAKhE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,oBAAoB,GAC/B,QAAQ,KAAK,EAAE,EACf,WAAW,IAAI,KACd,KAAK,EAUP,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,GAC5B,WAAW,IAAI,EACf,YAAY,IAAI,KACf,MAaF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,KAAK,EAAE,EAAE,WAAW,IAAI,KAAG,KAAK,EAqBxE,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,GAClC,WAAW,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC,EACvC,WAAW,IAAI,KACd,KASF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,GAClC,OAAO,KAAK,EACZ,aAAa,MAAM,EACnB,WAAW,IAAI,KACd,KAUF,CAAC;AAMF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACvC,WAAW,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC,EACvC,WAAW,IAAI,KACd,KAiCF,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,4BAA4B,GACvC,WAAW,IAAI,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,CAAC,EACvC,WAAW,IAAI,EACf,UAAU,MAAM,KACf,KAkCF,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Helpers Module - Backward Compatibility Exports
3
+ *
4
+ * This file has been refactored into multiple specialized modules for better organization.
5
+ * All functions are re-exported here for backward compatibility with existing code.
6
+ *
7
+ * New code should import directly from the specific utility modules:
8
+ * - dateTimeUtils.ts - Date/time conversion and comparison functions
9
+ * - colorUtils.ts - Color resolution functions
10
+ * - timeUtils.ts - Time formatting and calculations
11
+ * - dateConstants.ts - Day and month name constants
12
+ * - dateRangeUtils.ts - Week range calculations
13
+ * - calendarDataUtils.ts - Calendar data generation
14
+ * - eventUtils.ts - Event filtering and manipulation
15
+ * - testDataUtils.ts - Test/demo data generation
16
+ * - utilityFunctions.ts - General utility functions
17
+ */
18
+ export { extractHourFromDate, createDateWithHour, getStartOfDay, getEndOfDay, isSameDay, isMultiDayEvent, } from './dateTimeUtils';
19
+ export { getEventBgColor, getEventTextColor, getSelectedBgColor, getLineColor, } from './colorUtils';
20
+ export { TIME_STEP, formatTime, formatEventTimeRange, roundToTimeStep, getEventEndHour, } from './timeUtils';
21
+ export { weekDays, weekDaysFullName, monthNames, shortMonthNames, } from './dateConstants';
22
+ export { getWeekRange, getCurrentWeekDates } from './dateRangeUtils';
23
+ export { generateDayData, generateWeekData, getMonthYearOfWeek, generateWeeksData, generateWeekRange, } from './calendarDataUtils';
24
+ export { getEventsForDay, getAllDayEventsForDay, getDateByDayIndex, updateEventDateAndDay, createEventWithDate, calculateDayIndex, isEventInWeek, recalculateEventDays, getDayIndexByDate, getEventsForWeek, createEventWithRealDate, updateEventWithRealDate, } from './eventUtils';
25
+ export { getTestEvents } from './testDataUtils';
26
+ export { generateUniKey } from './utilityFunctions';
27
+ //# sourceMappingURL=helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../src/utils/helpers.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EACL,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,WAAW,EACX,SAAS,EACT,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,kBAAkB,EAClB,YAAY,GACb,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,SAAS,EACT,UAAU,EACV,oBAAoB,EACpB,eAAe,EACf,eAAe,GAChB,MAAM,aAAa,CAAC;AAGrB,OAAO,EACL,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,eAAe,GAChB,MAAM,iBAAiB,CAAC;AAGzB,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAGrE,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,GAClB,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EACL,eAAe,EACf,qBAAqB,EACrB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,iBAAiB,EACjB,aAAa,EACb,oBAAoB,EACpB,iBAAiB,EACjB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,GACxB,MAAM,cAAc,CAAC;AAGtB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,7 @@
1
+ export * from './helpers';
2
+ export * from './dateFormat';
3
+ export { isPlainDate, isPlainDateTime, isZonedDateTime, temporalToDate, plainDateToDate, plainDateTimeToDate, dateToPlainDate, dateToPlainDateTime, dateToZonedDateTime, extractHourFromTemporal, setHourInTemporal, isSameTemporal, getPlainDate, } from './temporalTypeGuards';
4
+ export { isDate, zonedDateTimeToDate, createTemporalWithHour, isSamePlainDate, isMultiDayTemporalEvent, getStartOfTemporal, getEndOfTemporal, daysBetween, daysDifference, addDays, now, today, } from './temporal';
5
+ export * from './rangePicker';
6
+ export * from './eventHelpers';
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAGA,cAAc,WAAW,CAAC;AAG1B,cAAc,cAAc,CAAC;AAG7B,OAAO,EAEL,WAAW,EACX,eAAe,EACf,eAAe,EAEf,cAAc,EACd,eAAe,EACf,mBAAmB,EAEnB,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EAEnB,uBAAuB,EACvB,iBAAiB,EACjB,cAAc,EACd,YAAY,GACb,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,MAAM,EACN,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EACf,uBAAuB,EACvB,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,cAAc,EACd,OAAO,EACP,GAAG,EACH,KAAK,GACN,MAAM,YAAY,CAAC;AAEpB,cAAc,eAAe,CAAC;AAG9B,cAAc,gBAAgB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * Logger utility for DayFlow calendar
3
+ * Only logs in development mode
4
+ */
5
+ declare class Logger {
6
+ private isDevelopment;
7
+ constructor();
8
+ private formatMessage;
9
+ log(message: string, ...args: any[]): void;
10
+ warn(message: string, ...args: any[]): void;
11
+ error(message: string, ...args: any[]): void;
12
+ debug(message: string, ...args: any[]): void;
13
+ }
14
+ export declare const logger: Logger;
15
+ export {};
16
+ //# sourceMappingURL=logger.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../src/utils/logger.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,cAAM,MAAM;IACV,OAAO,CAAC,aAAa,CAAU;;IAM/B,OAAO,CAAC,aAAa;IAsBrB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAI1C,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAI3C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;IAI5C,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,EAAE,GAAG,IAAI;CAG7C;AAED,eAAO,MAAM,MAAM,QAAe,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { Temporal } from 'temporal-polyfill';
2
+ export declare const pad: (input: number) => string;
3
+ export declare const mergeFormatTemplate: (dateFormat: string, timeFormat: string) => string;
4
+ export declare const buildParseRegExp: (template: string) => RegExp;
5
+ export declare const parseTemporalString: (input: string, regExp: RegExp, reference: Temporal.ZonedDateTime, zoneId: string) => Temporal.ZonedDateTime | null;
6
+ export declare const getZoneId: (value: Temporal.ZonedDateTime) => string;
7
+ export declare const normalizeToZoned: (input: Temporal.PlainDate | Temporal.PlainDateTime | Temporal.ZonedDateTime, fallbackZone?: string, fallbackTemporal?: Temporal.ZonedDateTime) => Temporal.ZonedDateTime;
8
+ export declare const formatTemporal: (value: Temporal.ZonedDateTime, format: string, timeFormat: string) => string;
9
+ //# sourceMappingURL=rangePicker.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rangePicker.d.ts","sourceRoot":"","sources":["../../src/utils/rangePicker.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAK7C,eAAO,MAAM,GAAG,GAAI,OAAO,MAAM,WAAsC,CAAC;AAMxE,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,EAClB,YAAY,MAAM,KACjB,MAQF,CAAC;AAKF,eAAO,MAAM,gBAAgB,GAAI,UAAU,MAAM,KAAG,MAenD,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,EACb,QAAQ,MAAM,EACd,WAAW,QAAQ,CAAC,aAAa,EACjC,QAAQ,MAAM,KACb,QAAQ,CAAC,aAAa,GAAG,IAwC3B,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,OAAO,QAAQ,CAAC,aAAa,KAAG,MAgBzD,CAAC;AAEF,eAAO,MAAM,gBAAgB,GAC3B,OAAO,QAAQ,CAAC,SAAS,GAAG,QAAQ,CAAC,aAAa,GAAG,QAAQ,CAAC,aAAa,EAC3E,eAAe,MAAM,EACrB,mBAAmB,QAAQ,CAAC,aAAa,KACxC,QAAQ,CAAC,aAkFX,CAAC;AAEF,eAAO,MAAM,cAAc,GACzB,OAAO,QAAQ,CAAC,aAAa,EAC7B,QAAQ,MAAM,EACd,YAAY,MAAM,KACjB,MAaF,CAAC"}