@sunsama/event-calendar 0.2.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 (236) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +105 -0
  3. package/lib/commonjs/components/all-day-events.js +117 -0
  4. package/lib/commonjs/components/all-day-events.js.map +1 -0
  5. package/lib/commonjs/components/background-hours-content.js +43 -0
  6. package/lib/commonjs/components/background-hours-content.js.map +1 -0
  7. package/lib/commonjs/components/background-hours-layout.js +57 -0
  8. package/lib/commonjs/components/background-hours-layout.js.map +1 -0
  9. package/lib/commonjs/components/drag-bar.js +84 -0
  10. package/lib/commonjs/components/drag-bar.js.map +1 -0
  11. package/lib/commonjs/components/edit-event-container.js +114 -0
  12. package/lib/commonjs/components/edit-event-container.js.map +1 -0
  13. package/lib/commonjs/components/event-container.js +37 -0
  14. package/lib/commonjs/components/event-container.js.map +1 -0
  15. package/lib/commonjs/components/new-event-container.js +73 -0
  16. package/lib/commonjs/components/new-event-container.js.map +1 -0
  17. package/lib/commonjs/components/time-indicator.js +64 -0
  18. package/lib/commonjs/components/time-indicator.js.map +1 -0
  19. package/lib/commonjs/components/timed-event-container.js +91 -0
  20. package/lib/commonjs/components/timed-event-container.js.map +1 -0
  21. package/lib/commonjs/components/timed-events.js +68 -0
  22. package/lib/commonjs/components/timed-events.js.map +1 -0
  23. package/lib/commonjs/components/zoom-provider.js +109 -0
  24. package/lib/commonjs/components/zoom-provider.js.map +1 -0
  25. package/lib/commonjs/enums.js +2 -0
  26. package/lib/commonjs/enums.js.map +1 -0
  27. package/lib/commonjs/hooks/use-cloned-events.js +25 -0
  28. package/lib/commonjs/hooks/use-cloned-events.js.map +1 -0
  29. package/lib/commonjs/hooks/use-events-layout.js +34 -0
  30. package/lib/commonjs/hooks/use-events-layout.js.map +1 -0
  31. package/lib/commonjs/hooks/use-is-editing.js +83 -0
  32. package/lib/commonjs/hooks/use-is-editing.js.map +1 -0
  33. package/lib/commonjs/index.js +129 -0
  34. package/lib/commonjs/index.js.map +1 -0
  35. package/lib/commonjs/types.js +24 -0
  36. package/lib/commonjs/types.js.map +1 -0
  37. package/lib/commonjs/utils/calendar-layout.js +113 -0
  38. package/lib/commonjs/utils/calendar-layout.js.map +1 -0
  39. package/lib/commonjs/utils/compute-positioning.js +33 -0
  40. package/lib/commonjs/utils/compute-positioning.js.map +1 -0
  41. package/lib/commonjs/utils/date-utils.js +152 -0
  42. package/lib/commonjs/utils/date-utils.js.map +1 -0
  43. package/lib/commonjs/utils/double-tap-reset-zoom-gesture.js +19 -0
  44. package/lib/commonjs/utils/double-tap-reset-zoom-gesture.js.map +1 -0
  45. package/lib/commonjs/utils/generate-event-layouts.js +198 -0
  46. package/lib/commonjs/utils/generate-event-layouts.js.map +1 -0
  47. package/lib/commonjs/utils/globals.js +11 -0
  48. package/lib/commonjs/utils/globals.js.map +1 -0
  49. package/lib/commonjs/utils/pan-edit-event-gesture.js +41 -0
  50. package/lib/commonjs/utils/pan-edit-event-gesture.js.map +1 -0
  51. package/lib/module/components/all-day-events.js +110 -0
  52. package/lib/module/components/all-day-events.js.map +1 -0
  53. package/lib/module/components/background-hours-content.js +37 -0
  54. package/lib/module/components/background-hours-content.js.map +1 -0
  55. package/lib/module/components/background-hours-layout.js +51 -0
  56. package/lib/module/components/background-hours-layout.js.map +1 -0
  57. package/lib/module/components/drag-bar.js +78 -0
  58. package/lib/module/components/drag-bar.js.map +1 -0
  59. package/lib/module/components/edit-event-container.js +107 -0
  60. package/lib/module/components/edit-event-container.js.map +1 -0
  61. package/lib/module/components/event-container.js +33 -0
  62. package/lib/module/components/event-container.js.map +1 -0
  63. package/lib/module/components/new-event-container.js +67 -0
  64. package/lib/module/components/new-event-container.js.map +1 -0
  65. package/lib/module/components/time-indicator.js +57 -0
  66. package/lib/module/components/time-indicator.js.map +1 -0
  67. package/lib/module/components/timed-event-container.js +84 -0
  68. package/lib/module/components/timed-event-container.js.map +1 -0
  69. package/lib/module/components/timed-events.js +63 -0
  70. package/lib/module/components/timed-events.js.map +1 -0
  71. package/lib/module/components/zoom-provider.js +102 -0
  72. package/lib/module/components/zoom-provider.js.map +1 -0
  73. package/lib/module/enums.js +2 -0
  74. package/lib/module/enums.js.map +1 -0
  75. package/lib/module/hooks/use-cloned-events.js +21 -0
  76. package/lib/module/hooks/use-cloned-events.js.map +1 -0
  77. package/lib/module/hooks/use-events-layout.js +29 -0
  78. package/lib/module/hooks/use-events-layout.js.map +1 -0
  79. package/lib/module/hooks/use-is-editing.js +75 -0
  80. package/lib/module/hooks/use-is-editing.js.map +1 -0
  81. package/lib/module/index.js +124 -0
  82. package/lib/module/index.js.map +1 -0
  83. package/lib/module/types.js +20 -0
  84. package/lib/module/types.js.map +1 -0
  85. package/lib/module/utils/calendar-layout.js +108 -0
  86. package/lib/module/utils/calendar-layout.js.map +1 -0
  87. package/lib/module/utils/compute-positioning.js +28 -0
  88. package/lib/module/utils/compute-positioning.js.map +1 -0
  89. package/lib/module/utils/date-utils.js +139 -0
  90. package/lib/module/utils/date-utils.js.map +1 -0
  91. package/lib/module/utils/double-tap-reset-zoom-gesture.js +15 -0
  92. package/lib/module/utils/double-tap-reset-zoom-gesture.js.map +1 -0
  93. package/lib/module/utils/generate-event-layouts.js +192 -0
  94. package/lib/module/utils/generate-event-layouts.js.map +1 -0
  95. package/lib/module/utils/globals.js +7 -0
  96. package/lib/module/utils/globals.js.map +1 -0
  97. package/lib/module/utils/pan-edit-event-gesture.js +37 -0
  98. package/lib/module/utils/pan-edit-event-gesture.js.map +1 -0
  99. package/lib/typescript/commonjs/components/all-day-events.d.ts +3 -0
  100. package/lib/typescript/commonjs/components/all-day-events.d.ts.map +1 -0
  101. package/lib/typescript/commonjs/components/background-hours-content.d.ts +7 -0
  102. package/lib/typescript/commonjs/components/background-hours-content.d.ts.map +1 -0
  103. package/lib/typescript/commonjs/components/background-hours-layout.d.ts +7 -0
  104. package/lib/typescript/commonjs/components/background-hours-layout.d.ts.map +1 -0
  105. package/lib/typescript/commonjs/components/drag-bar.d.ts +14 -0
  106. package/lib/typescript/commonjs/components/drag-bar.d.ts.map +1 -0
  107. package/lib/typescript/commonjs/components/edit-event-container.d.ts +7 -0
  108. package/lib/typescript/commonjs/components/edit-event-container.d.ts.map +1 -0
  109. package/lib/typescript/commonjs/components/event-container.d.ts +7 -0
  110. package/lib/typescript/commonjs/components/event-container.d.ts.map +1 -0
  111. package/lib/typescript/commonjs/components/new-event-container.d.ts +3 -0
  112. package/lib/typescript/commonjs/components/new-event-container.d.ts.map +1 -0
  113. package/lib/typescript/commonjs/components/time-indicator.d.ts +3 -0
  114. package/lib/typescript/commonjs/components/time-indicator.d.ts.map +1 -0
  115. package/lib/typescript/commonjs/components/timed-event-container.d.ts +9 -0
  116. package/lib/typescript/commonjs/components/timed-event-container.d.ts.map +1 -0
  117. package/lib/typescript/commonjs/components/timed-events.d.ts +7 -0
  118. package/lib/typescript/commonjs/components/timed-events.d.ts.map +1 -0
  119. package/lib/typescript/commonjs/components/zoom-provider.d.ts +7 -0
  120. package/lib/typescript/commonjs/components/zoom-provider.d.ts.map +1 -0
  121. package/lib/typescript/commonjs/enums.d.ts +2 -0
  122. package/lib/typescript/commonjs/enums.d.ts.map +1 -0
  123. package/lib/typescript/commonjs/hooks/use-cloned-events.d.ts +11 -0
  124. package/lib/typescript/commonjs/hooks/use-cloned-events.d.ts.map +1 -0
  125. package/lib/typescript/commonjs/hooks/use-events-layout.d.ts +13 -0
  126. package/lib/typescript/commonjs/hooks/use-events-layout.d.ts.map +1 -0
  127. package/lib/typescript/commonjs/hooks/use-is-editing.d.ts +17 -0
  128. package/lib/typescript/commonjs/hooks/use-is-editing.d.ts.map +1 -0
  129. package/lib/typescript/commonjs/index.d.ts +27 -0
  130. package/lib/typescript/commonjs/index.d.ts.map +1 -0
  131. package/lib/typescript/commonjs/package.json +1 -0
  132. package/lib/typescript/commonjs/types.d.ts +128 -0
  133. package/lib/typescript/commonjs/types.d.ts.map +1 -0
  134. package/lib/typescript/commonjs/utils/__tests___/compute-positioning.test.d.ts +2 -0
  135. package/lib/typescript/commonjs/utils/__tests___/compute-positioning.test.d.ts.map +1 -0
  136. package/lib/typescript/commonjs/utils/__tests___/date-utils.test.d.ts +2 -0
  137. package/lib/typescript/commonjs/utils/__tests___/date-utils.test.d.ts.map +1 -0
  138. package/lib/typescript/commonjs/utils/__tests___/generate-event-layout.test.d.ts +2 -0
  139. package/lib/typescript/commonjs/utils/__tests___/generate-event-layout.test.d.ts.map +1 -0
  140. package/lib/typescript/commonjs/utils/calendar-layout.d.ts +36 -0
  141. package/lib/typescript/commonjs/utils/calendar-layout.d.ts.map +1 -0
  142. package/lib/typescript/commonjs/utils/compute-positioning.d.ts +10 -0
  143. package/lib/typescript/commonjs/utils/compute-positioning.d.ts.map +1 -0
  144. package/lib/typescript/commonjs/utils/date-utils.d.ts +30 -0
  145. package/lib/typescript/commonjs/utils/date-utils.d.ts.map +1 -0
  146. package/lib/typescript/commonjs/utils/double-tap-reset-zoom-gesture.d.ts +5 -0
  147. package/lib/typescript/commonjs/utils/double-tap-reset-zoom-gesture.d.ts.map +1 -0
  148. package/lib/typescript/commonjs/utils/generate-event-layouts.d.ts +15 -0
  149. package/lib/typescript/commonjs/utils/generate-event-layouts.d.ts.map +1 -0
  150. package/lib/typescript/commonjs/utils/globals.d.ts +5 -0
  151. package/lib/typescript/commonjs/utils/globals.d.ts.map +1 -0
  152. package/lib/typescript/commonjs/utils/pan-edit-event-gesture.d.ts +6 -0
  153. package/lib/typescript/commonjs/utils/pan-edit-event-gesture.d.ts.map +1 -0
  154. package/lib/typescript/module/components/all-day-events.d.ts +3 -0
  155. package/lib/typescript/module/components/all-day-events.d.ts.map +1 -0
  156. package/lib/typescript/module/components/background-hours-content.d.ts +7 -0
  157. package/lib/typescript/module/components/background-hours-content.d.ts.map +1 -0
  158. package/lib/typescript/module/components/background-hours-layout.d.ts +7 -0
  159. package/lib/typescript/module/components/background-hours-layout.d.ts.map +1 -0
  160. package/lib/typescript/module/components/drag-bar.d.ts +14 -0
  161. package/lib/typescript/module/components/drag-bar.d.ts.map +1 -0
  162. package/lib/typescript/module/components/edit-event-container.d.ts +7 -0
  163. package/lib/typescript/module/components/edit-event-container.d.ts.map +1 -0
  164. package/lib/typescript/module/components/event-container.d.ts +7 -0
  165. package/lib/typescript/module/components/event-container.d.ts.map +1 -0
  166. package/lib/typescript/module/components/new-event-container.d.ts +3 -0
  167. package/lib/typescript/module/components/new-event-container.d.ts.map +1 -0
  168. package/lib/typescript/module/components/time-indicator.d.ts +3 -0
  169. package/lib/typescript/module/components/time-indicator.d.ts.map +1 -0
  170. package/lib/typescript/module/components/timed-event-container.d.ts +9 -0
  171. package/lib/typescript/module/components/timed-event-container.d.ts.map +1 -0
  172. package/lib/typescript/module/components/timed-events.d.ts +7 -0
  173. package/lib/typescript/module/components/timed-events.d.ts.map +1 -0
  174. package/lib/typescript/module/components/zoom-provider.d.ts +7 -0
  175. package/lib/typescript/module/components/zoom-provider.d.ts.map +1 -0
  176. package/lib/typescript/module/enums.d.ts +2 -0
  177. package/lib/typescript/module/enums.d.ts.map +1 -0
  178. package/lib/typescript/module/hooks/use-cloned-events.d.ts +11 -0
  179. package/lib/typescript/module/hooks/use-cloned-events.d.ts.map +1 -0
  180. package/lib/typescript/module/hooks/use-events-layout.d.ts +13 -0
  181. package/lib/typescript/module/hooks/use-events-layout.d.ts.map +1 -0
  182. package/lib/typescript/module/hooks/use-is-editing.d.ts +17 -0
  183. package/lib/typescript/module/hooks/use-is-editing.d.ts.map +1 -0
  184. package/lib/typescript/module/index.d.ts +27 -0
  185. package/lib/typescript/module/index.d.ts.map +1 -0
  186. package/lib/typescript/module/package.json +1 -0
  187. package/lib/typescript/module/types.d.ts +128 -0
  188. package/lib/typescript/module/types.d.ts.map +1 -0
  189. package/lib/typescript/module/utils/__tests___/compute-positioning.test.d.ts +2 -0
  190. package/lib/typescript/module/utils/__tests___/compute-positioning.test.d.ts.map +1 -0
  191. package/lib/typescript/module/utils/__tests___/date-utils.test.d.ts +2 -0
  192. package/lib/typescript/module/utils/__tests___/date-utils.test.d.ts.map +1 -0
  193. package/lib/typescript/module/utils/__tests___/generate-event-layout.test.d.ts +2 -0
  194. package/lib/typescript/module/utils/__tests___/generate-event-layout.test.d.ts.map +1 -0
  195. package/lib/typescript/module/utils/calendar-layout.d.ts +36 -0
  196. package/lib/typescript/module/utils/calendar-layout.d.ts.map +1 -0
  197. package/lib/typescript/module/utils/compute-positioning.d.ts +10 -0
  198. package/lib/typescript/module/utils/compute-positioning.d.ts.map +1 -0
  199. package/lib/typescript/module/utils/date-utils.d.ts +30 -0
  200. package/lib/typescript/module/utils/date-utils.d.ts.map +1 -0
  201. package/lib/typescript/module/utils/double-tap-reset-zoom-gesture.d.ts +5 -0
  202. package/lib/typescript/module/utils/double-tap-reset-zoom-gesture.d.ts.map +1 -0
  203. package/lib/typescript/module/utils/generate-event-layouts.d.ts +15 -0
  204. package/lib/typescript/module/utils/generate-event-layouts.d.ts.map +1 -0
  205. package/lib/typescript/module/utils/globals.d.ts +5 -0
  206. package/lib/typescript/module/utils/globals.d.ts.map +1 -0
  207. package/lib/typescript/module/utils/pan-edit-event-gesture.d.ts +6 -0
  208. package/lib/typescript/module/utils/pan-edit-event-gesture.d.ts.map +1 -0
  209. package/package.json +195 -0
  210. package/src/components/all-day-events.tsx +134 -0
  211. package/src/components/background-hours-content.tsx +51 -0
  212. package/src/components/background-hours-layout.tsx +61 -0
  213. package/src/components/drag-bar.tsx +120 -0
  214. package/src/components/edit-event-container.tsx +158 -0
  215. package/src/components/event-container.tsx +44 -0
  216. package/src/components/new-event-container.tsx +90 -0
  217. package/src/components/time-indicator.tsx +72 -0
  218. package/src/components/timed-event-container.tsx +124 -0
  219. package/src/components/timed-events.tsx +72 -0
  220. package/src/components/zoom-provider.tsx +146 -0
  221. package/src/enums.ts +0 -0
  222. package/src/hooks/use-cloned-events.ts +26 -0
  223. package/src/hooks/use-events-layout.ts +55 -0
  224. package/src/hooks/use-is-editing.tsx +109 -0
  225. package/src/index.tsx +165 -0
  226. package/src/types.ts +163 -0
  227. package/src/utils/__tests___/compute-positioning.test.ts +255 -0
  228. package/src/utils/__tests___/date-utils.test.ts +41 -0
  229. package/src/utils/__tests___/generate-event-layout.test.ts +277 -0
  230. package/src/utils/calendar-layout.ts +139 -0
  231. package/src/utils/compute-positioning.ts +44 -0
  232. package/src/utils/date-utils.ts +238 -0
  233. package/src/utils/double-tap-reset-zoom-gesture.ts +23 -0
  234. package/src/utils/generate-event-layouts.ts +314 -0
  235. package/src/utils/globals.ts +8 -0
  236. package/src/utils/pan-edit-event-gesture.ts +64 -0
@@ -0,0 +1,128 @@
1
+ import { Moment } from "moment-timezone";
2
+ import { TextStyle, ViewStyle } from "react-native";
3
+ import { DerivedValue, SharedValue } from "react-native-reanimated";
4
+ import { ReactNode } from "react";
5
+ export type CalendarEvent = {
6
+ id: string;
7
+ calendarId: string;
8
+ title: string;
9
+ start: string;
10
+ end: string;
11
+ isAllDay?: boolean;
12
+ };
13
+ export type AllDayEventLayoutType = {
14
+ event: CalendarEvent;
15
+ rowIndex?: number;
16
+ visibleWidthDays?: number;
17
+ extend: EventExtend;
18
+ isPrimaryRendered?: boolean;
19
+ };
20
+ export type PartDayEventLayoutType = {
21
+ event: CalendarEvent;
22
+ collisions?: {
23
+ total: number;
24
+ order: number;
25
+ };
26
+ position: EventPosition;
27
+ };
28
+ export interface CollisionObject {
29
+ event: CalendarEvent;
30
+ collisions?: {
31
+ total: number;
32
+ order: number;
33
+ };
34
+ }
35
+ export type EventPosition = {
36
+ top: number;
37
+ height: number;
38
+ width: string;
39
+ marginLeft: string;
40
+ };
41
+ export type FullCalendarEventLayout = {
42
+ allDayEventsLayout: AllDayEventLayoutType[];
43
+ partDayEventsLayout: PartDayEventLayoutType[];
44
+ };
45
+ export type ThemeStyle = {
46
+ container?: ViewStyle;
47
+ scrollView?: ViewStyle;
48
+ timedEventsContainer?: ViewStyle;
49
+ borderContainer?: ViewStyle;
50
+ backgroundHoursContainer?: ViewStyle;
51
+ backgroundHoursInnerContainer?: ViewStyle;
52
+ backgroundHoursText?: TextStyle;
53
+ backgroundHoursLayoutContainer?: ViewStyle;
54
+ newEventContainer?: ViewStyle;
55
+ eventTitle?: TextStyle;
56
+ eventSubtitle?: TextStyle;
57
+ eventContainer?: ViewStyle;
58
+ timeIndicator?: ViewStyle;
59
+ allDayContainer?: ViewStyle;
60
+ allDayEventContainer?: ViewStyle;
61
+ allDayShowMoreContainer?: ViewStyle;
62
+ allDayShowMoreText?: TextStyle;
63
+ };
64
+ export type OnCreateEventProps = {
65
+ hour?: number;
66
+ minute?: number;
67
+ isAllDay?: boolean;
68
+ };
69
+ export type onCreateEvent = (arg: OnCreateEventProps) => void;
70
+ export type Config = {
71
+ timezone: string;
72
+ timeFormat: string;
73
+ dayDate: Moment;
74
+ theme?: ThemeStyle;
75
+ zoomLevel: SharedValue<number>;
76
+ layout: FullCalendarEventLayout;
77
+ createY: SharedValue<number>;
78
+ maximumHour: SharedValue<number>;
79
+ onCreateEvent?: onCreateEvent;
80
+ initialZoomLevel: number;
81
+ renderEvent: (event: CalendarEvent, extended: EventExtend, eventHeight?: SharedValue<number>, updatedTimes?: {
82
+ updatedStart: DerivedValue<number>;
83
+ updatedEnd: DerivedValue<number>;
84
+ }) => ReactNode;
85
+ onEventEdit?: (params: {
86
+ event: CalendarEvent;
87
+ status: EditStatus;
88
+ updatedTimes?: {
89
+ updatedStart: string;
90
+ updatedEnd: string;
91
+ };
92
+ }) => void;
93
+ onPressEvent?: (event: CalendarEvent) => void;
94
+ showTimeIndicator?: boolean;
95
+ maxAllDayEvents: number;
96
+ canCreateEvents: boolean;
97
+ canEditEvent: boolean | ((event: CalendarEvent) => boolean);
98
+ renderNewEventContainer?: (hour: number, minute: number) => ReactNode;
99
+ fiveMinuteInterval?: boolean;
100
+ renderDragBars?: {
101
+ top?: () => ReactNode;
102
+ bottom?: () => ReactNode;
103
+ };
104
+ updateLocalStateAfterEdit: boolean;
105
+ extraTimedComponents?: (zoomLevel: SharedValue<number>) => ReactNode;
106
+ onZoomChange?: (zoomLevel: number) => void;
107
+ };
108
+ export type PrefabHour = {
109
+ increment: number;
110
+ hourFormatted: string;
111
+ hourMoment: Moment;
112
+ };
113
+ export type CalendarViewIntervalType = "month" | "workweek" | "3day" | "1day" | "week";
114
+ /**
115
+ * Tells us if an event extends into the next day, the previous day, or both.
116
+ * Used for all day events.
117
+ */
118
+ export declare enum EventExtend {
119
+ None = 0,
120
+ Past = 1,
121
+ Future = 2,
122
+ Both = 3
123
+ }
124
+ export declare enum EditStatus {
125
+ Start = 0,
126
+ Finish = 1
127
+ }
128
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=compute-positioning.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute-positioning.test.d.ts","sourceRoot":"","sources":["../../../../../src/utils/__tests___/compute-positioning.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=date-utils.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-utils.test.d.ts","sourceRoot":"","sources":["../../../../../src/utils/__tests___/date-utils.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=generate-event-layout.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-event-layout.test.d.ts","sourceRoot":"","sources":["../../../../../src/utils/__tests___/generate-event-layout.test.ts"],"names":[],"mappings":""}
@@ -0,0 +1,36 @@
1
+ import { EventExtend } from "src/types";
2
+ export declare class CalendarLayout {
3
+ array2d: any[];
4
+ visibleX: Set<number>;
5
+ enableWeekBreaks: boolean;
6
+ startOfWeekXOffset: number;
7
+ constructor({ visibleX, enableWeekBreaks, startOfWeekXOffset, }: {
8
+ visibleX: number[];
9
+ enableWeekBreaks: boolean;
10
+ startOfWeekXOffset: number;
11
+ });
12
+ getAt(x: number, y: number): any;
13
+ setAt(x: number, y: number, value: {
14
+ value: any;
15
+ meta: {
16
+ x: any;
17
+ };
18
+ }): void;
19
+ setRange(x: number, y: number, duration: number, value: any): void;
20
+ fit(x: number, y: number, duration: number): boolean;
21
+ findFit(x: number, duration: number): number;
22
+ findFitAndInsert(eventStartIndex: number, eventDurationDays: number, event: any): void;
23
+ height(): any;
24
+ getViewAt(x: number, y: number): {
25
+ event?: undefined;
26
+ visibleWidthDays?: undefined;
27
+ isPrimaryRendered?: undefined;
28
+ extend?: undefined;
29
+ } | {
30
+ event: any;
31
+ visibleWidthDays: number;
32
+ isPrimaryRendered: boolean;
33
+ extend: EventExtend;
34
+ };
35
+ }
36
+ //# sourceMappingURL=calendar-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar-layout.d.ts","sourceRoot":"","sources":["../../../../src/utils/calendar-layout.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,qBAAa,cAAc;IAIzB,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;gBAEf,EACV,QAAQ,EACR,gBAAgB,EAChB,kBAAkB,GACnB,EAAE;QACD,QAAQ,EAAE,MAAM,EAAE,CAAC;QACnB,gBAAgB,EAAE,OAAO,CAAC;QAC1B,kBAAkB,EAAE,MAAM,CAAC;KAC5B;IAOD,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;IAI1B,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE;QAAE,KAAK,EAAE,GAAG,CAAC;QAAC,IAAI,EAAE;YAAE,CAAC,EAAE,GAAG,CAAA;SAAE,CAAA;KAAE;IASnE,QAAQ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG;IAM3D,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAS1C,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;IAQnC,gBAAgB,CACd,eAAe,EAAE,MAAM,EACvB,iBAAiB,EAAE,MAAM,EACzB,KAAK,EAAE,GAAG;IAMZ,MAAM;IAMN,SAAS,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM;;;;;;;;;;;CA4D/B"}
@@ -0,0 +1,10 @@
1
+ import { Moment } from "moment-timezone";
2
+ import { CollisionObject, EventPosition } from "src/types";
3
+ type ComputePositioning = {
4
+ collisionObject: CollisionObject;
5
+ startOfDayMoment: Moment;
6
+ timezone: string;
7
+ };
8
+ declare const computePositioning: ({ collisionObject, startOfDayMoment, timezone, }: ComputePositioning) => EventPosition;
9
+ export default computePositioning;
10
+ //# sourceMappingURL=compute-positioning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compute-positioning.d.ts","sourceRoot":"","sources":["../../../../src/utils/compute-positioning.ts"],"names":[],"mappings":"AAAA,OAAe,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE3D,KAAK,kBAAkB,GAAG;IAExB,eAAe,EAAE,eAAe,CAAC;IACjC,gBAAgB,EAAE,MAAM,CAAC;IACzB,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,QAAA,MAAM,kBAAkB,qDAIrB,kBAAkB,KAAG,aA2BvB,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,30 @@
1
+ import moment, { type Moment } from "moment-timezone";
2
+ import { CalendarEvent, PrefabHour } from "src/types";
3
+ export declare const generatePrefabHours: (timeFormat?: string) => PrefabHour[];
4
+ export declare const startOfUserWeek: (startDayOfWeekOffset: number, dateOrMoment: Date | Moment | string, timezone: string) => moment.Moment;
5
+ export declare const isAllDayOrSpansMidnight: (calendarEvent: CalendarEvent, timezone: string) => boolean;
6
+ export declare const getDurationInDays: (calendarEvent: CalendarEvent, timezone: string) => number;
7
+ export declare const daysInRange: ({ startDate, endDate, timezone, }: {
8
+ startDate: Date | string;
9
+ endDate: Date | string;
10
+ timezone: string;
11
+ }) => string[];
12
+ export declare const getDuration: (calendarEvent: CalendarEvent, trueDuration?: boolean) => number;
13
+ export declare const computeCalendarDateRange: (date: string | Date | Moment, tz: string, viewType: "month" | "workweek" | "3day" | "1day" | "week", startDayOfWeekOffset: number) => {
14
+ basisDate: Date;
15
+ dayIndexes: number[];
16
+ days: Date[];
17
+ startDate: Date;
18
+ endDate: Date;
19
+ calendarDates: string[];
20
+ startCalendarDate: string;
21
+ endCalendarDate: string;
22
+ };
23
+ export declare const dateRangeIntersect: ({ startDate: start0, endDate: end0 }: {
24
+ startDate: Date;
25
+ endDate: Date;
26
+ }, { startDate: start1, endDate: end1 }: {
27
+ startDate: Date;
28
+ endDate: Date;
29
+ }) => boolean;
30
+ //# sourceMappingURL=date-utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"date-utils.d.ts","sourceRoot":"","sources":["../../../../src/utils/date-utils.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEtD,eAAO,MAAM,mBAAmB,gBAClB,MAAM,KACjB,UAAU,EAwBZ,CAAC;AAIF,eAAO,MAAM,eAAe,yBACJ,MAAM,gBACd,IAAI,GAAG,MAAM,GAAG,MAAM,YAC1B,MAAM,kBAejB,CAAC;AAEF,eAAO,MAAM,uBAAuB,kBACnB,aAAa,YAClB,MAAM,YAiBjB,CAAC;AAGF,eAAO,MAAM,iBAAiB,kBACb,aAAa,YAClB,MAAM,WAcjB,CAAC;AAGF,eAAO,MAAM,WAAW,sCAIrB;IACD,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,OAAO,EAAE,IAAI,GAAG,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CAClB,aAqBA,CAAC;AAEF,eAAO,MAAM,WAAW,kBACP,aAAa,iBACb,OAAO,WAWvB,CAAC;AAEF,eAAO,MAAM,wBAAwB,SAC7B,MAAM,GAAG,IAAI,GAAG,MAAM,MACxB,MAAM,YACA,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,wBACnC,MAAM;;;;;;;;;CAiE7B,CAAC;AAGF,eAAO,MAAM,kBAAkB,yCACS;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,wCAClC;IAAE,SAAS,EAAE,IAAI,CAAC;IAAC,OAAO,EAAE,IAAI,CAAA;CAAE,YAgBzE,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { SharedValue } from "react-native-reanimated";
2
+ import { Config } from "src/types";
3
+ declare const doubleTapGesture: (zoomLevel: SharedValue<number>, initialZoomLevel: number, onZoomChange?: Config["onZoomChange"]) => import("react-native-gesture-handler/lib/typescript/handlers/gestures/tapGesture").TapGesture;
4
+ export default doubleTapGesture;
5
+ //# sourceMappingURL=double-tap-reset-zoom-gesture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"double-tap-reset-zoom-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/double-tap-reset-zoom-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,QAAA,MAAM,gBAAgB,cACT,WAAW,CAAC,MAAM,CAAC,oBACZ,MAAM,iBACT,MAAM,CAAC,cAAc,CAAC,kGAajC,CAAC;AAEP,eAAe,gBAAgB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { CalendarEvent, CalendarViewIntervalType, FullCalendarEventLayout } from "src/types";
2
+ interface GenerateEventLayouts {
3
+ events: CalendarEvent[];
4
+ userCalendarId: string;
5
+ timezone: string;
6
+ startCalendarDate: string;
7
+ endCalendarDate: string;
8
+ startDayOfWeekOffset?: number;
9
+ calendarViewInterval?: CalendarViewIntervalType;
10
+ }
11
+ export declare const generateEventLayouts: ({ events, startCalendarDate, endCalendarDate, userCalendarId, calendarViewInterval, startDayOfWeekOffset, timezone, }: GenerateEventLayouts) => {
12
+ [day: string]: FullCalendarEventLayout;
13
+ };
14
+ export default generateEventLayouts;
15
+ //# sourceMappingURL=generate-event-layouts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"generate-event-layouts.d.ts","sourceRoot":"","sources":["../../../../src/utils/generate-event-layouts.ts"],"names":[],"mappings":"AAeA,OAAO,EAEL,aAAa,EACb,wBAAwB,EAGxB,uBAAuB,EAExB,MAAM,WAAW,CAAC;AAEnB,UAAU,oBAAoB;IAC5B,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;CACjD;AAED,eAAO,MAAM,oBAAoB,0HAQ9B,oBAAoB;;CA8JtB,CAAC;AAgHF,eAAe,oBAAoB,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { Config } from "src/types";
2
+ export declare const ConfigProvider: import("react").Context<Config>;
3
+ export declare const DEFAULT_MINUTE_HEIGHT = 0.8;
4
+ export declare const TOP_MARGIN_PIXEL_OFFSET = 5;
5
+ //# sourceMappingURL=globals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"globals.d.ts","sourceRoot":"","sources":["../../../../src/utils/globals.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,eAAO,MAAM,cAAc,iCAA4C,CAAC;AAExE,eAAO,MAAM,qBAAqB,MAAM,CAAC;AAEzC,eAAO,MAAM,uBAAuB,IAAI,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { SharedValue } from "react-native-reanimated";
2
+ import { RefObject } from "react";
3
+ import { PartDayEventLayoutType } from "src/types";
4
+ declare const gesturePan: (startY: SharedValue<number>, top: SharedValue<number>, currentY: SharedValue<number>, zoomLevel: SharedValue<number>, maximumHour: SharedValue<number>, height: SharedValue<number>, refNewEvent: RefObject<any>, fiveMinuteInterval?: boolean, isEditing?: null | PartDayEventLayoutType, startEditing?: () => void) => import("react-native-gesture-handler/lib/typescript/handlers/gestures/panGesture").PanGesture;
5
+ export default gesturePan;
6
+ //# sourceMappingURL=pan-edit-event-gesture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pan-edit-event-gesture.d.ts","sourceRoot":"","sources":["../../../../src/utils/pan-edit-event-gesture.ts"],"names":[],"mappings":"AACA,OAAO,EAAW,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEnD,QAAA,MAAM,UAAU,WACN,WAAW,CAAC,MAAM,CAAC,OACtB,WAAW,CAAC,MAAM,CAAC,YACd,WAAW,CAAC,MAAM,CAAC,aAClB,WAAW,CAAC,MAAM,CAAC,eACjB,WAAW,CAAC,MAAM,CAAC,UACxB,WAAW,CAAC,MAAM,CAAC,eACd,SAAS,CAAC,GAAG,CAAC,uBACN,OAAO,cAChB,IAAI,GAAG,sBAAsB,iBAC1B,MAAM,IAAI,kGA8CrB,CAAC;AAEP,eAAe,UAAU,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const AllDayEvents: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
2
+ export default AllDayEvents;
3
+ //# sourceMappingURL=all-day-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"all-day-events.d.ts","sourceRoot":"","sources":["../../../../src/components/all-day-events.tsx"],"names":[],"mappings":"AAYA,QAAA,MAAM,YAAY,wEAiGjB,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { PrefabHour } from "src/types";
2
+ type BackgroundHoursContentProps = {
3
+ hours: PrefabHour[];
4
+ };
5
+ declare const BackgroundHoursContent: import("react").MemoExoticComponent<({ hours }: BackgroundHoursContentProps) => import("react").JSX.Element>;
6
+ export default BackgroundHoursContent;
7
+ //# sourceMappingURL=background-hours-content.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"background-hours-content.d.ts","sourceRoot":"","sources":["../../../../src/components/background-hours-content.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,KAAK,2BAA2B,GAAG;IACjC,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,sBAAsB,kDACd,2BAA2B,iCA0BxC,CAAC;AAaF,eAAe,sBAAsB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { PrefabHour } from "src/types";
2
+ type BackgroundHoursLayoutProps = {
3
+ hours: PrefabHour[];
4
+ };
5
+ declare const BackgroundHoursLayout: import("react").MemoExoticComponent<({ hours }: BackgroundHoursLayoutProps) => import("react").JSX.Element>;
6
+ export default BackgroundHoursLayout;
7
+ //# sourceMappingURL=background-hours-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"background-hours-layout.d.ts","sourceRoot":"","sources":["../../../../src/components/background-hours-layout.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAEvC,KAAK,0BAA0B,GAAG;IAChC,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,qBAAqB,kDACb,0BAA0B,iCA2BvC,CAAC;AAsBF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { SharedValue } from "react-native-reanimated";
2
+ import { ReactNode } from "react";
3
+ type DragBarProps = {
4
+ top?: SharedValue<number>;
5
+ height: SharedValue<number>;
6
+ render: () => ReactNode;
7
+ refMainContainer: React.RefObject<any>;
8
+ fiveMinuteInterval?: boolean;
9
+ zoomLevel: SharedValue<number>;
10
+ maximumHour: SharedValue<number>;
11
+ };
12
+ declare const DragBar: ({ top, height, render, refMainContainer, fiveMinuteInterval, zoomLevel, maximumHour, }: DragBarProps) => import("react").JSX.Element;
13
+ export default DragBar;
14
+ //# sourceMappingURL=drag-bar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-bar.d.ts","sourceRoot":"","sources":["../../../../src/components/drag-bar.tsx"],"names":[],"mappings":"AAAA,OAAiB,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AAChF,OAAO,EAAE,SAAS,EAAW,MAAM,OAAO,CAAC;AAI3C,KAAK,YAAY,GAAG;IAClB,GAAG,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC1B,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC5B,MAAM,EAAE,MAAM,SAAS,CAAC;IACxB,gBAAgB,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;IACvC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,SAAS,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,WAAW,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAClC,CAAC;AAEF,QAAA,MAAM,OAAO,2FAQV,YAAY,gCAsFd,CAAC;AAEF,eAAe,OAAO,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { RefObject } from "react";
2
+ type EditEventContainerProps = {
3
+ refNewEvent: RefObject<any>;
4
+ };
5
+ declare const EditEventContainer: import("react").MemoExoticComponent<({ refNewEvent }: EditEventContainerProps) => import("react").JSX.Element | null>;
6
+ export default EditEventContainer;
7
+ //# sourceMappingURL=edit-event-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edit-event-container.d.ts","sourceRoot":"","sources":["../../../../src/components/edit-event-container.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAKV,MAAM,OAAO,CAAC;AAiBf,KAAK,uBAAuB,GAAG;IAC7B,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,kBAAkB,wDACJ,uBAAuB,wCA8H1C,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { AllDayEventLayoutType } from "src/types";
2
+ type EventContainerProps = {
3
+ layout: AllDayEventLayoutType;
4
+ };
5
+ declare const EventContainer: ({ layout }: EventContainerProps) => import("react").JSX.Element;
6
+ export default EventContainer;
7
+ //# sourceMappingURL=event-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-container.d.ts","sourceRoot":"","sources":["../../../../src/components/event-container.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,qBAAqB,EAAe,MAAM,WAAW,CAAC;AAE/D,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,qBAAqB,CAAC;CAC/B,CAAC;AAEF,QAAA,MAAM,cAAc,eAAgB,mBAAmB,gCA+BtD,CAAC;AAEF,eAAe,cAAc,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const NewEventContainer: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
2
+ export default NewEventContainer;
3
+ //# sourceMappingURL=new-event-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"new-event-container.d.ts","sourceRoot":"","sources":["../../../../src/components/new-event-container.tsx"],"names":[],"mappings":"AAUA,QAAA,MAAM,iBAAiB,wEA4DtB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const TimeIndicator: import("react").MemoExoticComponent<() => import("react").JSX.Element>;
2
+ export default TimeIndicator;
3
+ //# sourceMappingURL=time-indicator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"time-indicator.d.ts","sourceRoot":"","sources":["../../../../src/components/time-indicator.tsx"],"names":[],"mappings":"AASA,QAAA,MAAM,aAAa,wEA+ClB,CAAC;AAEF,eAAe,aAAa,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { RefObject } from "react";
2
+ import { PartDayEventLayoutType } from "src/types";
3
+ type TimedEventContainerProps = {
4
+ layout: PartDayEventLayoutType;
5
+ refNewEvent: RefObject<any>;
6
+ };
7
+ declare const TimedEventContainer: ({ layout, refNewEvent, }: TimedEventContainerProps) => import("react").JSX.Element;
8
+ export default TimedEventContainer;
9
+ //# sourceMappingURL=timed-event-container.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timed-event-container.d.ts","sourceRoot":"","sources":["../../../../src/components/timed-event-container.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,SAAS,EAAoC,MAAM,OAAO,CAAC;AAMpE,OAAO,EAAe,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAEhE,KAAK,wBAAwB,GAAG;IAC9B,MAAM,EAAE,sBAAsB,CAAC;IAC/B,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,mBAAmB,6BAGtB,wBAAwB,gCA8F1B,CAAC;AAMF,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { RefObject } from "react";
2
+ type TimedEventsProps = {
3
+ refNewEvent: RefObject<any>;
4
+ };
5
+ declare const TimedEvents: ({ refNewEvent }: TimedEventsProps) => import("react").JSX.Element;
6
+ export default TimedEvents;
7
+ //# sourceMappingURL=timed-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timed-events.d.ts","sourceRoot":"","sources":["../../../../src/components/timed-events.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAuB,MAAM,OAAO,CAAC;AAUvD,KAAK,gBAAgB,GAAG;IACtB,WAAW,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;CAC7B,CAAC;AAEF,QAAA,MAAM,WAAW,oBAAqB,gBAAgB,gCAqCrD,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { GestureRef } from "react-native-gesture-handler/lib/typescript/handlers/gestures/gesture";
2
+ type ZoomProviderProps = {
3
+ children: any;
4
+ };
5
+ declare const ZoomProvider: import("react").ForwardRefExoticComponent<ZoomProviderProps & import("react").RefAttributes<GestureRef>>;
6
+ export default ZoomProvider;
7
+ //# sourceMappingURL=zoom-provider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zoom-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/zoom-provider.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,UAAU,EAAE,MAAM,uEAAuE,CAAC;AAInG,KAAK,iBAAiB,GAAG;IACvB,QAAQ,EAAE,GAAG,CAAC;CACf,CAAC;AAKF,QAAA,MAAM,YAAY,0GAqHjB,CAAC;AAQF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=enums.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../../src/enums.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import { Dispatch, SetStateAction } from "react";
2
+ import { CalendarEvent } from "src/types";
3
+ export declare let updateClonedEvents: Dispatch<SetStateAction<CalendarEvent[]>>;
4
+ /**
5
+ * Returns a cloned version of the events array if the updateLocalStateAfterEdit is set to true.
6
+ * We do this to make local state updates faster and more responsive. If the updateLocalStateAfterEdit is set to false,
7
+ * we return the original events array and don't clone it.
8
+ */
9
+ declare const useClonedEvents: (events: CalendarEvent[], updateLocalStateAfterEdit: boolean) => CalendarEvent[];
10
+ export default useClonedEvents;
11
+ //# sourceMappingURL=use-cloned-events.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-cloned-events.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-cloned-events.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAC;AAEtE,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,eAAO,IAAI,kBAAkB,EAAE,QAAQ,CAAC,cAAc,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;AAEzE;;;;GAIG;AACH,QAAA,MAAM,eAAe,WACX,aAAa,EAAE,6BACI,OAAO,oBAUnC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { CalendarEvent, CalendarViewIntervalType, FullCalendarEventLayout } from "src/types";
2
+ export type UpdateEvent = {
3
+ events: CalendarEvent[];
4
+ userCalendarId: string;
5
+ timezone: string;
6
+ startCalendarDate: string;
7
+ endCalendarDate: string;
8
+ startDayOfWeekOffset?: number;
9
+ calendarViewInterval?: CalendarViewIntervalType;
10
+ };
11
+ declare const useEventsLayout: (props: UpdateEvent) => FullCalendarEventLayout;
12
+ export default useEventsLayout;
13
+ //# sourceMappingURL=use-events-layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-events-layout.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-events-layout.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,aAAa,EACb,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,WAAW,CAAC;AAUnB,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,wBAAwB,CAAC;CACjD,CAAC;AAkBF,QAAA,MAAM,eAAe,UAAW,WAAW,4BAQ1C,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -0,0 +1,17 @@
1
+ import React, { ReactNode } from "react";
2
+ import { SharedValue } from "react-native-reanimated";
3
+ import { PartDayEventLayoutType } from "src/types";
4
+ interface IsEditingType {
5
+ isEditing: null | PartDayEventLayoutType;
6
+ currentY: SharedValue<number>;
7
+ setIsEditing: (newValue: PartDayEventLayoutType | null, updatedTimes?: {
8
+ updatedStart: string;
9
+ updatedEnd: string;
10
+ }) => void;
11
+ }
12
+ export declare const useIsEditing: () => IsEditingType;
13
+ export declare const IsEditingProvider: ({ children }: {
14
+ children: ReactNode;
15
+ }) => React.JSX.Element;
16
+ export {};
17
+ //# sourceMappingURL=use-is-editing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"use-is-editing.d.ts","sourceRoot":"","sources":["../../../../src/hooks/use-is-editing.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAEZ,SAAS,EAIV,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,WAAW,EAAkB,MAAM,yBAAyB,CAAC;AAItE,OAAO,EAAc,sBAAsB,EAAE,MAAM,WAAW,CAAC;AAE/D,UAAU,aAAa;IACrB,SAAS,EAAE,IAAI,GAAG,sBAAsB,CAAC;IACzC,QAAQ,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC9B,YAAY,EAAE,CACZ,QAAQ,EAAE,sBAAsB,GAAG,IAAI,EACvC,YAAY,CAAC,EAAE;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;KACpB,KACE,IAAI,CAAC;CACX;AAID,eAAO,MAAM,YAAY,qBAOxB,CAAC;AAGF,eAAO,MAAM,iBAAiB,iBAAkB;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,sBAuEtE,CAAC"}
@@ -0,0 +1,27 @@
1
+ import type { CalendarEvent, Config, onCreateEvent, ThemeStyle } from "src/types";
2
+ type EventCalenderProps = {
3
+ canCreateEvents?: boolean;
4
+ canEditEvent?: Config["canEditEvent"];
5
+ dayDate: string;
6
+ events: CalendarEvent[];
7
+ fiveMinuteInterval?: boolean;
8
+ initialZoomLevel?: number;
9
+ maxAllDayEvents?: number;
10
+ onCreateEvent?: onCreateEvent;
11
+ onEventEdit?: Config["onEventEdit"];
12
+ onPressEvent?: Config["onPressEvent"];
13
+ renderDragBars?: Config["renderDragBars"];
14
+ renderEvent: Config["renderEvent"];
15
+ renderNewEventContainer?: Config["renderNewEventContainer"];
16
+ showTimeIndicator?: boolean;
17
+ theme?: ThemeStyle;
18
+ timeFormat?: string;
19
+ timezone?: string;
20
+ updateLocalStateAfterEdit?: boolean;
21
+ userCalendarId?: string;
22
+ extraTimedComponents?: Config["extraTimedComponents"];
23
+ onZoomChange?: Config["onZoomChange"];
24
+ };
25
+ declare const EventCalendar: ({ events, timeFormat, dayDate, theme, initialZoomLevel, onCreateEvent, timezone, renderEvent, onPressEvent, userCalendarId, showTimeIndicator, maxAllDayEvents, canCreateEvents, renderNewEventContainer, fiveMinuteInterval, canEditEvent, onEventEdit, renderDragBars, updateLocalStateAfterEdit, extraTimedComponents, onZoomChange, }: EventCalenderProps) => import("react").JSX.Element;
26
+ export default EventCalendar;
27
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EACV,aAAa,EACb,MAAM,EACN,aAAa,EACb,UAAU,EACX,MAAM,WAAW,CAAC;AAEnB,KAAK,kBAAkB,GAAG;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,aAAa,EAAE,CAAC;IACxB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IACtC,cAAc,CAAC,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAC1C,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC,CAAC;IACnC,uBAAuB,CAAC,EAAE,MAAM,CAAC,yBAAyB,CAAC,CAAC;IAC5D,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC,sBAAsB,CAAC,CAAC;IACtD,YAAY,CAAC,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;CACvC,CAAC;AAEF,QAAA,MAAM,aAAa,8UAsBhB,kBAAkB,gCAwEpB,CAAC;AA0BF,eAAe,aAAa,CAAC"}
@@ -0,0 +1 @@
1
+ {"type":"module"}