@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.
- package/LICENSE +20 -0
- package/README.md +105 -0
- package/lib/commonjs/components/all-day-events.js +117 -0
- package/lib/commonjs/components/all-day-events.js.map +1 -0
- package/lib/commonjs/components/background-hours-content.js +43 -0
- package/lib/commonjs/components/background-hours-content.js.map +1 -0
- package/lib/commonjs/components/background-hours-layout.js +57 -0
- package/lib/commonjs/components/background-hours-layout.js.map +1 -0
- package/lib/commonjs/components/drag-bar.js +84 -0
- package/lib/commonjs/components/drag-bar.js.map +1 -0
- package/lib/commonjs/components/edit-event-container.js +114 -0
- package/lib/commonjs/components/edit-event-container.js.map +1 -0
- package/lib/commonjs/components/event-container.js +37 -0
- package/lib/commonjs/components/event-container.js.map +1 -0
- package/lib/commonjs/components/new-event-container.js +73 -0
- package/lib/commonjs/components/new-event-container.js.map +1 -0
- package/lib/commonjs/components/time-indicator.js +64 -0
- package/lib/commonjs/components/time-indicator.js.map +1 -0
- package/lib/commonjs/components/timed-event-container.js +91 -0
- package/lib/commonjs/components/timed-event-container.js.map +1 -0
- package/lib/commonjs/components/timed-events.js +68 -0
- package/lib/commonjs/components/timed-events.js.map +1 -0
- package/lib/commonjs/components/zoom-provider.js +109 -0
- package/lib/commonjs/components/zoom-provider.js.map +1 -0
- package/lib/commonjs/enums.js +2 -0
- package/lib/commonjs/enums.js.map +1 -0
- package/lib/commonjs/hooks/use-cloned-events.js +25 -0
- package/lib/commonjs/hooks/use-cloned-events.js.map +1 -0
- package/lib/commonjs/hooks/use-events-layout.js +34 -0
- package/lib/commonjs/hooks/use-events-layout.js.map +1 -0
- package/lib/commonjs/hooks/use-is-editing.js +83 -0
- package/lib/commonjs/hooks/use-is-editing.js.map +1 -0
- package/lib/commonjs/index.js +129 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/types.js +24 -0
- package/lib/commonjs/types.js.map +1 -0
- package/lib/commonjs/utils/calendar-layout.js +113 -0
- package/lib/commonjs/utils/calendar-layout.js.map +1 -0
- package/lib/commonjs/utils/compute-positioning.js +33 -0
- package/lib/commonjs/utils/compute-positioning.js.map +1 -0
- package/lib/commonjs/utils/date-utils.js +152 -0
- package/lib/commonjs/utils/date-utils.js.map +1 -0
- package/lib/commonjs/utils/double-tap-reset-zoom-gesture.js +19 -0
- package/lib/commonjs/utils/double-tap-reset-zoom-gesture.js.map +1 -0
- package/lib/commonjs/utils/generate-event-layouts.js +198 -0
- package/lib/commonjs/utils/generate-event-layouts.js.map +1 -0
- package/lib/commonjs/utils/globals.js +11 -0
- package/lib/commonjs/utils/globals.js.map +1 -0
- package/lib/commonjs/utils/pan-edit-event-gesture.js +41 -0
- package/lib/commonjs/utils/pan-edit-event-gesture.js.map +1 -0
- package/lib/module/components/all-day-events.js +110 -0
- package/lib/module/components/all-day-events.js.map +1 -0
- package/lib/module/components/background-hours-content.js +37 -0
- package/lib/module/components/background-hours-content.js.map +1 -0
- package/lib/module/components/background-hours-layout.js +51 -0
- package/lib/module/components/background-hours-layout.js.map +1 -0
- package/lib/module/components/drag-bar.js +78 -0
- package/lib/module/components/drag-bar.js.map +1 -0
- package/lib/module/components/edit-event-container.js +107 -0
- package/lib/module/components/edit-event-container.js.map +1 -0
- package/lib/module/components/event-container.js +33 -0
- package/lib/module/components/event-container.js.map +1 -0
- package/lib/module/components/new-event-container.js +67 -0
- package/lib/module/components/new-event-container.js.map +1 -0
- package/lib/module/components/time-indicator.js +57 -0
- package/lib/module/components/time-indicator.js.map +1 -0
- package/lib/module/components/timed-event-container.js +84 -0
- package/lib/module/components/timed-event-container.js.map +1 -0
- package/lib/module/components/timed-events.js +63 -0
- package/lib/module/components/timed-events.js.map +1 -0
- package/lib/module/components/zoom-provider.js +102 -0
- package/lib/module/components/zoom-provider.js.map +1 -0
- package/lib/module/enums.js +2 -0
- package/lib/module/enums.js.map +1 -0
- package/lib/module/hooks/use-cloned-events.js +21 -0
- package/lib/module/hooks/use-cloned-events.js.map +1 -0
- package/lib/module/hooks/use-events-layout.js +29 -0
- package/lib/module/hooks/use-events-layout.js.map +1 -0
- package/lib/module/hooks/use-is-editing.js +75 -0
- package/lib/module/hooks/use-is-editing.js.map +1 -0
- package/lib/module/index.js +124 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/types.js +20 -0
- package/lib/module/types.js.map +1 -0
- package/lib/module/utils/calendar-layout.js +108 -0
- package/lib/module/utils/calendar-layout.js.map +1 -0
- package/lib/module/utils/compute-positioning.js +28 -0
- package/lib/module/utils/compute-positioning.js.map +1 -0
- package/lib/module/utils/date-utils.js +139 -0
- package/lib/module/utils/date-utils.js.map +1 -0
- package/lib/module/utils/double-tap-reset-zoom-gesture.js +15 -0
- package/lib/module/utils/double-tap-reset-zoom-gesture.js.map +1 -0
- package/lib/module/utils/generate-event-layouts.js +192 -0
- package/lib/module/utils/generate-event-layouts.js.map +1 -0
- package/lib/module/utils/globals.js +7 -0
- package/lib/module/utils/globals.js.map +1 -0
- package/lib/module/utils/pan-edit-event-gesture.js +37 -0
- package/lib/module/utils/pan-edit-event-gesture.js.map +1 -0
- package/lib/typescript/commonjs/components/all-day-events.d.ts +3 -0
- package/lib/typescript/commonjs/components/all-day-events.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/background-hours-content.d.ts +7 -0
- package/lib/typescript/commonjs/components/background-hours-content.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/background-hours-layout.d.ts +7 -0
- package/lib/typescript/commonjs/components/background-hours-layout.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/drag-bar.d.ts +14 -0
- package/lib/typescript/commonjs/components/drag-bar.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/edit-event-container.d.ts +7 -0
- package/lib/typescript/commonjs/components/edit-event-container.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/event-container.d.ts +7 -0
- package/lib/typescript/commonjs/components/event-container.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/new-event-container.d.ts +3 -0
- package/lib/typescript/commonjs/components/new-event-container.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/time-indicator.d.ts +3 -0
- package/lib/typescript/commonjs/components/time-indicator.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/timed-event-container.d.ts +9 -0
- package/lib/typescript/commonjs/components/timed-event-container.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/timed-events.d.ts +7 -0
- package/lib/typescript/commonjs/components/timed-events.d.ts.map +1 -0
- package/lib/typescript/commonjs/components/zoom-provider.d.ts +7 -0
- package/lib/typescript/commonjs/components/zoom-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/enums.d.ts +2 -0
- package/lib/typescript/commonjs/enums.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/use-cloned-events.d.ts +11 -0
- package/lib/typescript/commonjs/hooks/use-cloned-events.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/use-events-layout.d.ts +13 -0
- package/lib/typescript/commonjs/hooks/use-events-layout.d.ts.map +1 -0
- package/lib/typescript/commonjs/hooks/use-is-editing.d.ts +17 -0
- package/lib/typescript/commonjs/hooks/use-is-editing.d.ts.map +1 -0
- package/lib/typescript/commonjs/index.d.ts +27 -0
- package/lib/typescript/commonjs/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/types.d.ts +128 -0
- package/lib/typescript/commonjs/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/__tests___/compute-positioning.test.d.ts +2 -0
- package/lib/typescript/commonjs/utils/__tests___/compute-positioning.test.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/__tests___/date-utils.test.d.ts +2 -0
- package/lib/typescript/commonjs/utils/__tests___/date-utils.test.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/__tests___/generate-event-layout.test.d.ts +2 -0
- package/lib/typescript/commonjs/utils/__tests___/generate-event-layout.test.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/calendar-layout.d.ts +36 -0
- package/lib/typescript/commonjs/utils/calendar-layout.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/compute-positioning.d.ts +10 -0
- package/lib/typescript/commonjs/utils/compute-positioning.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/date-utils.d.ts +30 -0
- package/lib/typescript/commonjs/utils/date-utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/double-tap-reset-zoom-gesture.d.ts +5 -0
- package/lib/typescript/commonjs/utils/double-tap-reset-zoom-gesture.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/generate-event-layouts.d.ts +15 -0
- package/lib/typescript/commonjs/utils/generate-event-layouts.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/globals.d.ts +5 -0
- package/lib/typescript/commonjs/utils/globals.d.ts.map +1 -0
- package/lib/typescript/commonjs/utils/pan-edit-event-gesture.d.ts +6 -0
- package/lib/typescript/commonjs/utils/pan-edit-event-gesture.d.ts.map +1 -0
- package/lib/typescript/module/components/all-day-events.d.ts +3 -0
- package/lib/typescript/module/components/all-day-events.d.ts.map +1 -0
- package/lib/typescript/module/components/background-hours-content.d.ts +7 -0
- package/lib/typescript/module/components/background-hours-content.d.ts.map +1 -0
- package/lib/typescript/module/components/background-hours-layout.d.ts +7 -0
- package/lib/typescript/module/components/background-hours-layout.d.ts.map +1 -0
- package/lib/typescript/module/components/drag-bar.d.ts +14 -0
- package/lib/typescript/module/components/drag-bar.d.ts.map +1 -0
- package/lib/typescript/module/components/edit-event-container.d.ts +7 -0
- package/lib/typescript/module/components/edit-event-container.d.ts.map +1 -0
- package/lib/typescript/module/components/event-container.d.ts +7 -0
- package/lib/typescript/module/components/event-container.d.ts.map +1 -0
- package/lib/typescript/module/components/new-event-container.d.ts +3 -0
- package/lib/typescript/module/components/new-event-container.d.ts.map +1 -0
- package/lib/typescript/module/components/time-indicator.d.ts +3 -0
- package/lib/typescript/module/components/time-indicator.d.ts.map +1 -0
- package/lib/typescript/module/components/timed-event-container.d.ts +9 -0
- package/lib/typescript/module/components/timed-event-container.d.ts.map +1 -0
- package/lib/typescript/module/components/timed-events.d.ts +7 -0
- package/lib/typescript/module/components/timed-events.d.ts.map +1 -0
- package/lib/typescript/module/components/zoom-provider.d.ts +7 -0
- package/lib/typescript/module/components/zoom-provider.d.ts.map +1 -0
- package/lib/typescript/module/enums.d.ts +2 -0
- package/lib/typescript/module/enums.d.ts.map +1 -0
- package/lib/typescript/module/hooks/use-cloned-events.d.ts +11 -0
- package/lib/typescript/module/hooks/use-cloned-events.d.ts.map +1 -0
- package/lib/typescript/module/hooks/use-events-layout.d.ts +13 -0
- package/lib/typescript/module/hooks/use-events-layout.d.ts.map +1 -0
- package/lib/typescript/module/hooks/use-is-editing.d.ts +17 -0
- package/lib/typescript/module/hooks/use-is-editing.d.ts.map +1 -0
- package/lib/typescript/module/index.d.ts +27 -0
- package/lib/typescript/module/index.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/types.d.ts +128 -0
- package/lib/typescript/module/types.d.ts.map +1 -0
- package/lib/typescript/module/utils/__tests___/compute-positioning.test.d.ts +2 -0
- package/lib/typescript/module/utils/__tests___/compute-positioning.test.d.ts.map +1 -0
- package/lib/typescript/module/utils/__tests___/date-utils.test.d.ts +2 -0
- package/lib/typescript/module/utils/__tests___/date-utils.test.d.ts.map +1 -0
- package/lib/typescript/module/utils/__tests___/generate-event-layout.test.d.ts +2 -0
- package/lib/typescript/module/utils/__tests___/generate-event-layout.test.d.ts.map +1 -0
- package/lib/typescript/module/utils/calendar-layout.d.ts +36 -0
- package/lib/typescript/module/utils/calendar-layout.d.ts.map +1 -0
- package/lib/typescript/module/utils/compute-positioning.d.ts +10 -0
- package/lib/typescript/module/utils/compute-positioning.d.ts.map +1 -0
- package/lib/typescript/module/utils/date-utils.d.ts +30 -0
- package/lib/typescript/module/utils/date-utils.d.ts.map +1 -0
- package/lib/typescript/module/utils/double-tap-reset-zoom-gesture.d.ts +5 -0
- package/lib/typescript/module/utils/double-tap-reset-zoom-gesture.d.ts.map +1 -0
- package/lib/typescript/module/utils/generate-event-layouts.d.ts +15 -0
- package/lib/typescript/module/utils/generate-event-layouts.d.ts.map +1 -0
- package/lib/typescript/module/utils/globals.d.ts +5 -0
- package/lib/typescript/module/utils/globals.d.ts.map +1 -0
- package/lib/typescript/module/utils/pan-edit-event-gesture.d.ts +6 -0
- package/lib/typescript/module/utils/pan-edit-event-gesture.d.ts.map +1 -0
- package/package.json +195 -0
- package/src/components/all-day-events.tsx +134 -0
- package/src/components/background-hours-content.tsx +51 -0
- package/src/components/background-hours-layout.tsx +61 -0
- package/src/components/drag-bar.tsx +120 -0
- package/src/components/edit-event-container.tsx +158 -0
- package/src/components/event-container.tsx +44 -0
- package/src/components/new-event-container.tsx +90 -0
- package/src/components/time-indicator.tsx +72 -0
- package/src/components/timed-event-container.tsx +124 -0
- package/src/components/timed-events.tsx +72 -0
- package/src/components/zoom-provider.tsx +146 -0
- package/src/enums.ts +0 -0
- package/src/hooks/use-cloned-events.ts +26 -0
- package/src/hooks/use-events-layout.ts +55 -0
- package/src/hooks/use-is-editing.tsx +109 -0
- package/src/index.tsx +165 -0
- package/src/types.ts +163 -0
- package/src/utils/__tests___/compute-positioning.test.ts +255 -0
- package/src/utils/__tests___/date-utils.test.ts +41 -0
- package/src/utils/__tests___/generate-event-layout.test.ts +277 -0
- package/src/utils/calendar-layout.ts +139 -0
- package/src/utils/compute-positioning.ts +44 -0
- package/src/utils/date-utils.ts +238 -0
- package/src/utils/double-tap-reset-zoom-gesture.ts +23 -0
- package/src/utils/generate-event-layouts.ts +314 -0
- package/src/utils/globals.ts +8 -0
- 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":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IAC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CAAC;AAEX;;;GAGG;AACH,oBAAY,WAAW;IAErB,IAAI,IAAA;IACJ,IAAI,IAAA;IACJ,MAAM,IAAA;IACN,IAAI,IAAA;CACL;AAED,oBAAY,UAAU;IACpB,KAAK,IAAA;IACL,MAAM,IAAA;CACP"}
|
|
@@ -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 @@
|
|
|
1
|
+
{"version":3,"file":"date-utils.test.d.ts","sourceRoot":"","sources":["../../../../../src/utils/__tests___/date-utils.test.ts"],"names":[],"mappings":""}
|
|
@@ -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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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 @@
|
|
|
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,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