@savvycal/calendar 0.1.0 → 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/dist/components/resource-grid-view/ResourceGridView.d.ts +1 -1
- package/dist/components/resource-grid-view/ResourceGridView.d.ts.map +1 -1
- package/dist/components/resource-grid-view/ResourceGridView.js +228 -211
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -6
- package/dist/lib/events.d.ts +6 -0
- package/dist/lib/events.d.ts.map +1 -0
- package/dist/lib/events.js +10 -0
- package/dist/lib/ranges.d.ts +34 -0
- package/dist/lib/ranges.d.ts.map +1 -0
- package/dist/lib/ranges.js +45 -0
- package/dist/types/calendar.d.ts +6 -2
- package/dist/types/calendar.d.ts.map +1 -1
- package/package.json +2 -1
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ResourceGridViewProps } from '../../types/calendar';
|
|
2
|
-
export declare function ResourceGridView({ date, timeZone, resources, events, availability, unavailability, timeAxis, onEventClick, snapDuration, placeholderDuration, selectedRange, onSelect, onSlotClick, className, classNames, hourHeight, columnMinWidth, renderHeader, renderEvent, selectionAppearance, dragPreviewAppearance, selectionRef, selectedEventId, selectedEventRef, renderCorner, eventGap, eventLayout, stackOffset, }: ResourceGridViewProps): import("react/jsx-runtime").JSX.Element;
|
|
2
|
+
export declare function ResourceGridView({ date, timeZone, resources, events, availability, unavailability, timeAxis, onEventClick, snapDuration, placeholderDuration, selectedRange, onSelect, onSlotClick, className, classNames, hourHeight, columnMinWidth, renderHeader, renderEvent, selectionAppearance, dragPreviewAppearance, selectionRef, selectionLingerMs, selectedEventId, selectedEventRef, renderCorner, eventGap, eventLayout, stackOffset, }: ResourceGridViewProps): import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
//# sourceMappingURL=ResourceGridView.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ResourceGridView.d.ts","sourceRoot":"","sources":["../../../src/components/resource-grid-view/ResourceGridView.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAIV,qBAAqB,EAGtB,MAAM,kBAAkB,CAAC;AAa1B,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,MAAM,EACN,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,UAAe,EACf,cAAoB,EACpB,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,WAAuB,EACvB,WAAe,GAChB,EAAE,qBAAqB,
|
|
1
|
+
{"version":3,"file":"ResourceGridView.d.ts","sourceRoot":"","sources":["../../../src/components/resource-grid-view/ResourceGridView.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAIV,qBAAqB,EAGtB,MAAM,kBAAkB,CAAC;AAa1B,wBAAgB,gBAAgB,CAAC,EAC/B,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,MAAM,EACN,YAAY,EACZ,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,YAAY,EACZ,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,WAAW,EACX,SAAS,EACT,UAAU,EACV,UAAe,EACf,cAAoB,EACpB,YAAY,EACZ,WAAW,EACX,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,iBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,WAAuB,EACvB,WAAe,GAChB,EAAE,qBAAqB,2CA0XvB"}
|
|
@@ -1,315 +1,332 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useCallback as
|
|
3
|
-
import { cn as
|
|
4
|
-
import { generateTimeSlots as
|
|
5
|
-
import { groupByResource as
|
|
6
|
-
import { computeUnavailableBlocks as
|
|
7
|
-
import { resourceGridViewDefaults as
|
|
8
|
-
import { GridHeader as
|
|
9
|
-
import { TimeGutter as
|
|
10
|
-
import { ResourceColumn as
|
|
11
|
-
import { SlotInteractionLayer as
|
|
12
|
-
import { SelectionOverlay as
|
|
13
|
-
import { UnavailabilityOverlay as
|
|
14
|
-
import { NowIndicator as
|
|
15
|
-
import { AllDayRow as
|
|
16
|
-
import { useEffectiveHourHeight as
|
|
17
|
-
import { useAnnouncer as
|
|
18
|
-
function
|
|
19
|
-
date:
|
|
1
|
+
import { jsxs as W, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback as v, useRef as mt, useState as ut, useEffect as L, useMemo as f } from "react";
|
|
3
|
+
import { cn as T } from "../../lib/utils.js";
|
|
4
|
+
import { generateTimeSlots as pt, formatDateLabel as ft, formatTimeRange as U } from "../../lib/time.js";
|
|
5
|
+
import { groupByResource as ht, computePositionedEvents as gt } from "../../lib/overlap.js";
|
|
6
|
+
import { computeUnavailableBlocks as yt } from "../../lib/availability.js";
|
|
7
|
+
import { resourceGridViewDefaults as wt } from "./defaults.js";
|
|
8
|
+
import { GridHeader as Ht } from "./GridHeader.js";
|
|
9
|
+
import { TimeGutter as St } from "./TimeGutter.js";
|
|
10
|
+
import { ResourceColumn as Rt } from "./ResourceColumn.js";
|
|
11
|
+
import { SlotInteractionLayer as bt } from "./SlotInteractionLayer.js";
|
|
12
|
+
import { SelectionOverlay as Ct } from "./SelectionOverlay.js";
|
|
13
|
+
import { UnavailabilityOverlay as Dt } from "./UnavailabilityOverlay.js";
|
|
14
|
+
import { NowIndicator as vt } from "./NowIndicator.js";
|
|
15
|
+
import { AllDayRow as Tt } from "./AllDayRow.js";
|
|
16
|
+
import { useEffectiveHourHeight as $t } from "./useEffectiveHourHeight.js";
|
|
17
|
+
import { useAnnouncer as xt } from "./useAnnouncer.js";
|
|
18
|
+
function Pt({
|
|
19
|
+
date: a,
|
|
20
20
|
timeZone: l,
|
|
21
|
-
resources:
|
|
21
|
+
resources: r,
|
|
22
22
|
events: $,
|
|
23
23
|
availability: g,
|
|
24
24
|
unavailability: y,
|
|
25
|
-
timeAxis:
|
|
26
|
-
onEventClick:
|
|
27
|
-
snapDuration:
|
|
28
|
-
placeholderDuration:
|
|
29
|
-
selectedRange:
|
|
30
|
-
onSelect:
|
|
31
|
-
onSlotClick:
|
|
32
|
-
className:
|
|
33
|
-
classNames:
|
|
34
|
-
hourHeight:
|
|
35
|
-
columnMinWidth:
|
|
36
|
-
renderHeader:
|
|
37
|
-
renderEvent:
|
|
38
|
-
selectionAppearance:
|
|
39
|
-
dragPreviewAppearance:
|
|
40
|
-
selectionRef:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
25
|
+
timeAxis: H,
|
|
26
|
+
onEventClick: x,
|
|
27
|
+
snapDuration: k,
|
|
28
|
+
placeholderDuration: V,
|
|
29
|
+
selectedRange: u,
|
|
30
|
+
onSelect: m,
|
|
31
|
+
onSlotClick: z,
|
|
32
|
+
className: A,
|
|
33
|
+
classNames: N,
|
|
34
|
+
hourHeight: F = 60,
|
|
35
|
+
columnMinWidth: K = 120,
|
|
36
|
+
renderHeader: P,
|
|
37
|
+
renderEvent: S,
|
|
38
|
+
selectionAppearance: q,
|
|
39
|
+
dragPreviewAppearance: J,
|
|
40
|
+
selectionRef: Q,
|
|
41
|
+
selectionLingerMs: R = 0,
|
|
42
|
+
selectedEventId: E,
|
|
43
|
+
selectedEventRef: j,
|
|
44
|
+
renderCorner: X,
|
|
45
|
+
eventGap: Y,
|
|
46
|
+
eventLayout: _ = "columns",
|
|
47
|
+
stackOffset: Z = 8
|
|
47
48
|
}) {
|
|
48
|
-
const
|
|
49
|
-
(
|
|
50
|
-
[
|
|
51
|
-
),
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
49
|
+
const d = H?.startHour ?? 0, c = H?.endHour ?? 24, b = H?.intervalMinutes ?? 60, { effectiveHourHeight: s, rootRef: tt, headerRef: et, allDayRef: ot, headerHeight: I } = $t(F, c - d), i = v(
|
|
50
|
+
(t) => T(wt[t], N?.[t]),
|
|
51
|
+
[N]
|
|
52
|
+
), w = mt(null), [rt, B] = ut(
|
|
53
|
+
null
|
|
54
|
+
);
|
|
55
|
+
L(() => {
|
|
56
|
+
if (u)
|
|
57
|
+
w.current = u;
|
|
58
|
+
else if (w.current && R > 0) {
|
|
59
|
+
const t = w.current;
|
|
60
|
+
w.current = null, B(t);
|
|
61
|
+
const e = setTimeout(
|
|
62
|
+
() => B(null),
|
|
63
|
+
R
|
|
64
|
+
);
|
|
65
|
+
return () => clearTimeout(e);
|
|
66
|
+
}
|
|
67
|
+
}, [u, R]);
|
|
68
|
+
const C = u ?? rt, D = f(
|
|
69
|
+
() => pt({ startHour: d, endHour: c, intervalMinutes: b }),
|
|
70
|
+
[d, c, b]
|
|
71
|
+
), { allDayEvents: M, timedEvents: G } = f(() => {
|
|
72
|
+
const t = [], e = [];
|
|
73
|
+
for (const o of $)
|
|
74
|
+
o.allDay ? t.push(o) : e.push(o);
|
|
75
|
+
return { allDayEvents: t, timedEvents: e };
|
|
76
|
+
}, [$]), it = f(
|
|
77
|
+
() => ht(M),
|
|
78
|
+
[M]
|
|
79
|
+
), lt = f(
|
|
80
|
+
() => gt(
|
|
81
|
+
G,
|
|
65
82
|
l,
|
|
66
|
-
d,
|
|
67
83
|
a,
|
|
68
|
-
|
|
84
|
+
d,
|
|
85
|
+
c,
|
|
69
86
|
s
|
|
70
87
|
),
|
|
71
|
-
[
|
|
72
|
-
),
|
|
88
|
+
[G, l, a, d, c, s]
|
|
89
|
+
), nt = f(() => {
|
|
73
90
|
if (!g && !y)
|
|
74
91
|
return /* @__PURE__ */ new Map();
|
|
75
|
-
const
|
|
92
|
+
const t = /* @__PURE__ */ new Set([
|
|
76
93
|
...Object.keys(g ?? {}),
|
|
77
94
|
...Object.keys(y ?? {})
|
|
78
|
-
]),
|
|
79
|
-
for (const
|
|
80
|
-
const
|
|
81
|
-
g?.[
|
|
82
|
-
y?.[
|
|
95
|
+
]), e = /* @__PURE__ */ new Map();
|
|
96
|
+
for (const o of t) {
|
|
97
|
+
const p = yt(
|
|
98
|
+
g?.[o],
|
|
99
|
+
y?.[o],
|
|
83
100
|
l,
|
|
84
|
-
d,
|
|
85
101
|
a,
|
|
86
|
-
|
|
102
|
+
d,
|
|
103
|
+
c,
|
|
87
104
|
s
|
|
88
105
|
);
|
|
89
|
-
|
|
106
|
+
p.length > 0 && e.set(o, p);
|
|
90
107
|
}
|
|
91
|
-
return
|
|
108
|
+
return e;
|
|
92
109
|
}, [
|
|
93
110
|
g,
|
|
94
111
|
y,
|
|
95
112
|
l,
|
|
96
|
-
d,
|
|
97
113
|
a,
|
|
98
|
-
|
|
114
|
+
d,
|
|
115
|
+
c,
|
|
99
116
|
s
|
|
100
|
-
]), { message:
|
|
101
|
-
() => `Schedule for ${
|
|
102
|
-
[
|
|
103
|
-
),
|
|
104
|
-
(
|
|
105
|
-
if (
|
|
106
|
-
const
|
|
107
|
-
|
|
117
|
+
]), { message: at, announce: h } = xt(), dt = f(
|
|
118
|
+
() => `Schedule for ${ft(a)}`,
|
|
119
|
+
[a]
|
|
120
|
+
), O = v(
|
|
121
|
+
(t) => {
|
|
122
|
+
if (m?.(null), x?.(t), t.allDay) {
|
|
123
|
+
const e = [t.title, "all day"];
|
|
124
|
+
t.clientName && e.push(t.clientName), h(`Selected: ${e.join(", ")}`);
|
|
108
125
|
} else {
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
126
|
+
const e = [
|
|
127
|
+
t.title,
|
|
128
|
+
U(t.startTime, t.endTime, l)
|
|
112
129
|
];
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
130
|
+
t.clientName && e.push(t.clientName);
|
|
131
|
+
const o = r.find((p) => p.id === t.resourceId);
|
|
132
|
+
o && e.push(o.name), h(`Selected: ${e.join(", ")}`);
|
|
116
133
|
}
|
|
117
134
|
},
|
|
118
|
-
[
|
|
119
|
-
),
|
|
120
|
-
(
|
|
121
|
-
if (
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
],
|
|
125
|
-
|
|
135
|
+
[m, x, l, r, h]
|
|
136
|
+
), ct = v(
|
|
137
|
+
(t) => {
|
|
138
|
+
if (m?.(t), t) {
|
|
139
|
+
const e = [
|
|
140
|
+
U(t.startTime, t.endTime, l)
|
|
141
|
+
], o = r.find((p) => p.id === t.resourceId);
|
|
142
|
+
o && e.push(o.name), h(`Selected time: ${e.join(", ")}`);
|
|
126
143
|
}
|
|
127
144
|
},
|
|
128
|
-
[
|
|
145
|
+
[m, l, r, h]
|
|
129
146
|
);
|
|
130
|
-
|
|
131
|
-
if (!
|
|
132
|
-
const
|
|
133
|
-
|
|
147
|
+
L(() => {
|
|
148
|
+
if (!u || !m) return;
|
|
149
|
+
const t = (e) => {
|
|
150
|
+
e.key === "Escape" && m(null);
|
|
134
151
|
};
|
|
135
|
-
return document.addEventListener("keydown",
|
|
136
|
-
}, [
|
|
137
|
-
const
|
|
138
|
-
return /* @__PURE__ */
|
|
139
|
-
/* @__PURE__ */
|
|
152
|
+
return document.addEventListener("keydown", t), () => document.removeEventListener("keydown", t);
|
|
153
|
+
}, [u, m]);
|
|
154
|
+
const st = s * b / 60;
|
|
155
|
+
return /* @__PURE__ */ W("div", { ref: tt, className: T(i("root"), A), children: [
|
|
156
|
+
/* @__PURE__ */ W(
|
|
140
157
|
"div",
|
|
141
158
|
{
|
|
142
|
-
className:
|
|
159
|
+
className: i("grid"),
|
|
143
160
|
role: "region",
|
|
144
161
|
"aria-roledescription": "calendar",
|
|
145
|
-
"aria-label":
|
|
162
|
+
"aria-label": dt,
|
|
146
163
|
style: {
|
|
147
164
|
display: "grid",
|
|
148
|
-
gridTemplateColumns: `max-content repeat(${
|
|
149
|
-
gridTemplateRows: `auto auto repeat(${
|
|
165
|
+
gridTemplateColumns: `max-content repeat(${r.length}, minmax(${K}px, 1fr))`,
|
|
166
|
+
gridTemplateRows: `auto auto repeat(${D.length}, ${st}px)`
|
|
150
167
|
},
|
|
151
168
|
children: [
|
|
152
169
|
/* @__PURE__ */ n(
|
|
153
170
|
"div",
|
|
154
171
|
{
|
|
155
|
-
ref:
|
|
156
|
-
className:
|
|
172
|
+
ref: et,
|
|
173
|
+
className: i("cornerCell"),
|
|
157
174
|
style: { gridRow: 1, gridColumn: 1 },
|
|
158
|
-
children:
|
|
175
|
+
children: X?.({ timeZone: l, date: a })
|
|
159
176
|
}
|
|
160
177
|
),
|
|
161
|
-
|
|
162
|
-
|
|
178
|
+
r.map((t, e) => /* @__PURE__ */ n(
|
|
179
|
+
Ht,
|
|
163
180
|
{
|
|
164
|
-
resource:
|
|
165
|
-
column:
|
|
166
|
-
cls:
|
|
167
|
-
renderHeader:
|
|
181
|
+
resource: t,
|
|
182
|
+
column: e + 2,
|
|
183
|
+
cls: i,
|
|
184
|
+
renderHeader: P
|
|
168
185
|
},
|
|
169
|
-
|
|
186
|
+
t.id
|
|
170
187
|
)),
|
|
171
188
|
/* @__PURE__ */ n(
|
|
172
189
|
"div",
|
|
173
190
|
{
|
|
174
|
-
ref:
|
|
175
|
-
className:
|
|
191
|
+
ref: ot,
|
|
192
|
+
className: T(i("allDayCell"), "left-0 z-30"),
|
|
176
193
|
style: {
|
|
177
194
|
gridRow: 2,
|
|
178
195
|
gridColumn: 1,
|
|
179
|
-
top:
|
|
196
|
+
top: I
|
|
180
197
|
}
|
|
181
198
|
}
|
|
182
199
|
),
|
|
183
|
-
|
|
200
|
+
r.map((t, e) => /* @__PURE__ */ n(
|
|
184
201
|
"div",
|
|
185
202
|
{
|
|
186
|
-
className:
|
|
203
|
+
className: i("allDayCell"),
|
|
187
204
|
style: {
|
|
188
205
|
gridRow: 2,
|
|
189
|
-
gridColumn:
|
|
190
|
-
top:
|
|
191
|
-
...
|
|
206
|
+
gridColumn: e + 2,
|
|
207
|
+
top: I,
|
|
208
|
+
...e === r.length - 1 ? { borderRightWidth: 0 } : {}
|
|
192
209
|
},
|
|
193
210
|
children: /* @__PURE__ */ n(
|
|
194
|
-
|
|
211
|
+
Tt,
|
|
195
212
|
{
|
|
196
|
-
events:
|
|
197
|
-
cls:
|
|
198
|
-
onEventClick:
|
|
199
|
-
selectedEventId:
|
|
200
|
-
selectedEventRef:
|
|
213
|
+
events: it.get(t.id) ?? [],
|
|
214
|
+
cls: i,
|
|
215
|
+
onEventClick: O,
|
|
216
|
+
selectedEventId: E,
|
|
217
|
+
selectedEventRef: j
|
|
201
218
|
}
|
|
202
219
|
)
|
|
203
220
|
},
|
|
204
|
-
`allday-${
|
|
221
|
+
`allday-${t.id}`
|
|
205
222
|
)),
|
|
206
|
-
|
|
207
|
-
|
|
223
|
+
D.map((t) => /* @__PURE__ */ n(
|
|
224
|
+
St,
|
|
208
225
|
{
|
|
209
|
-
label:
|
|
210
|
-
row:
|
|
211
|
-
isHourStart:
|
|
212
|
-
isFirst:
|
|
213
|
-
cls:
|
|
226
|
+
label: t.label,
|
|
227
|
+
row: t.index + 3,
|
|
228
|
+
isHourStart: t.isHourStart,
|
|
229
|
+
isFirst: t.index === 0,
|
|
230
|
+
cls: i
|
|
214
231
|
},
|
|
215
|
-
|
|
232
|
+
t.index
|
|
216
233
|
)),
|
|
217
|
-
|
|
218
|
-
(
|
|
234
|
+
D.map(
|
|
235
|
+
(t) => r.map((e, o) => /* @__PURE__ */ n(
|
|
219
236
|
"div",
|
|
220
237
|
{
|
|
221
|
-
className:
|
|
238
|
+
className: i(t.isHourStart ? "bodyCell" : "bodyCellMinor"),
|
|
222
239
|
style: {
|
|
223
|
-
gridRow:
|
|
224
|
-
gridColumn:
|
|
225
|
-
...
|
|
226
|
-
...
|
|
227
|
-
...
|
|
240
|
+
gridRow: t.index + 3,
|
|
241
|
+
gridColumn: o + 2,
|
|
242
|
+
...t.isHourStart ? {} : { borderTopStyle: "dotted" },
|
|
243
|
+
...t.index === 0 ? { borderTopWidth: 0 } : {},
|
|
244
|
+
...o === r.length - 1 ? { borderRightWidth: 0 } : {}
|
|
228
245
|
}
|
|
229
246
|
},
|
|
230
|
-
`${
|
|
247
|
+
`${t.index}-${e.id}`
|
|
231
248
|
))
|
|
232
249
|
),
|
|
233
|
-
|
|
234
|
-
const
|
|
235
|
-
return
|
|
236
|
-
|
|
250
|
+
r.map((t, e) => {
|
|
251
|
+
const o = nt.get(t.id);
|
|
252
|
+
return o ? /* @__PURE__ */ n(
|
|
253
|
+
Dt,
|
|
237
254
|
{
|
|
238
|
-
blocks:
|
|
239
|
-
column:
|
|
240
|
-
cls:
|
|
255
|
+
blocks: o,
|
|
256
|
+
column: e + 2,
|
|
257
|
+
cls: i
|
|
241
258
|
},
|
|
242
|
-
`unavail-${
|
|
259
|
+
`unavail-${t.id}`
|
|
243
260
|
) : null;
|
|
244
261
|
}),
|
|
245
|
-
|
|
246
|
-
|
|
262
|
+
k != null && r.map((t, e) => /* @__PURE__ */ n(
|
|
263
|
+
bt,
|
|
247
264
|
{
|
|
248
|
-
resource:
|
|
249
|
-
column:
|
|
250
|
-
date:
|
|
265
|
+
resource: t,
|
|
266
|
+
column: e + 2,
|
|
267
|
+
date: a,
|
|
251
268
|
timeZone: l,
|
|
252
|
-
startHour:
|
|
253
|
-
endHour:
|
|
269
|
+
startHour: d,
|
|
270
|
+
endHour: c,
|
|
254
271
|
hourHeight: s,
|
|
255
|
-
snapDuration:
|
|
256
|
-
placeholderDuration:
|
|
257
|
-
cls:
|
|
258
|
-
onSlotClick:
|
|
259
|
-
onSelect:
|
|
260
|
-
dragPreviewAppearance:
|
|
261
|
-
renderEvent:
|
|
272
|
+
snapDuration: k,
|
|
273
|
+
placeholderDuration: V ?? 15,
|
|
274
|
+
cls: i,
|
|
275
|
+
onSlotClick: z,
|
|
276
|
+
onSelect: ct,
|
|
277
|
+
dragPreviewAppearance: J,
|
|
278
|
+
renderEvent: S
|
|
262
279
|
},
|
|
263
|
-
`slot-${
|
|
280
|
+
`slot-${t.id}`
|
|
264
281
|
)),
|
|
265
|
-
|
|
266
|
-
|
|
282
|
+
r.map((t, e) => /* @__PURE__ */ n(
|
|
283
|
+
Rt,
|
|
267
284
|
{
|
|
268
|
-
resource:
|
|
269
|
-
positionedEvents:
|
|
270
|
-
column:
|
|
285
|
+
resource: t,
|
|
286
|
+
positionedEvents: lt.get(t.id) ?? [],
|
|
287
|
+
column: e + 2,
|
|
271
288
|
timeZone: l,
|
|
272
|
-
cls:
|
|
273
|
-
onEventClick:
|
|
274
|
-
renderEvent:
|
|
275
|
-
eventGap:
|
|
276
|
-
eventLayout:
|
|
277
|
-
stackOffset:
|
|
278
|
-
selectedEventId:
|
|
279
|
-
selectedEventRef:
|
|
289
|
+
cls: i,
|
|
290
|
+
onEventClick: O,
|
|
291
|
+
renderEvent: S,
|
|
292
|
+
eventGap: Y,
|
|
293
|
+
eventLayout: _,
|
|
294
|
+
stackOffset: Z,
|
|
295
|
+
selectedEventId: E,
|
|
296
|
+
selectedEventRef: j
|
|
280
297
|
},
|
|
281
|
-
|
|
298
|
+
t.id
|
|
282
299
|
)),
|
|
283
|
-
|
|
284
|
-
const
|
|
285
|
-
(
|
|
300
|
+
C != null && (() => {
|
|
301
|
+
const t = r.findIndex(
|
|
302
|
+
(e) => e.id === C.resourceId
|
|
286
303
|
);
|
|
287
|
-
return
|
|
288
|
-
|
|
304
|
+
return t === -1 ? null : /* @__PURE__ */ n(
|
|
305
|
+
Ct,
|
|
289
306
|
{
|
|
290
|
-
selectedRange:
|
|
291
|
-
column:
|
|
292
|
-
resource:
|
|
293
|
-
viewDate:
|
|
307
|
+
selectedRange: C,
|
|
308
|
+
column: t + 2,
|
|
309
|
+
resource: r[t],
|
|
310
|
+
viewDate: a,
|
|
294
311
|
timeZone: l,
|
|
295
|
-
startHour:
|
|
312
|
+
startHour: d,
|
|
296
313
|
hourHeight: s,
|
|
297
|
-
cls:
|
|
298
|
-
appearance:
|
|
299
|
-
selectionRef:
|
|
300
|
-
renderEvent:
|
|
314
|
+
cls: i,
|
|
315
|
+
appearance: q,
|
|
316
|
+
selectionRef: Q,
|
|
317
|
+
renderEvent: S
|
|
301
318
|
}
|
|
302
319
|
);
|
|
303
320
|
})(),
|
|
304
321
|
/* @__PURE__ */ n(
|
|
305
|
-
|
|
322
|
+
vt,
|
|
306
323
|
{
|
|
307
|
-
date:
|
|
324
|
+
date: a,
|
|
308
325
|
timeZone: l,
|
|
309
|
-
startHour:
|
|
310
|
-
endHour:
|
|
326
|
+
startHour: d,
|
|
327
|
+
endHour: c,
|
|
311
328
|
hourHeight: s,
|
|
312
|
-
cls:
|
|
329
|
+
cls: i
|
|
313
330
|
}
|
|
314
331
|
)
|
|
315
332
|
]
|
|
@@ -332,11 +349,11 @@ function Uo({
|
|
|
332
349
|
whiteSpace: "nowrap",
|
|
333
350
|
borderWidth: 0
|
|
334
351
|
},
|
|
335
|
-
children:
|
|
352
|
+
children: at
|
|
336
353
|
}
|
|
337
354
|
)
|
|
338
355
|
] });
|
|
339
356
|
}
|
|
340
357
|
export {
|
|
341
|
-
|
|
358
|
+
Pt as ResourceGridView
|
|
342
359
|
};
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,6 @@ export { ResourceGridView } from './components/resource-grid-view';
|
|
|
3
3
|
export { resourceGridViewDefaults } from './components/resource-grid-view';
|
|
4
4
|
export type { CalendarResource, CalendarEvent, TimedCalendarEvent, AllDayCalendarEvent, TimeSlot, AvailabilityRange, TimeAxisConfig, ResourceGridViewProps, ResourceGridViewClassNames, PositionedEvent, SelectedRange, SelectionAppearance, SelectionEventData, EventLayout, } from './types/calendar';
|
|
5
5
|
export { cn } from './lib/utils';
|
|
6
|
+
export { timedEvent, allDayEvent } from './lib/events';
|
|
7
|
+
export { selectedRangeToComponents, selectedRangeToISO, groupAvailabilityByResource, } from './lib/ranges';
|
|
6
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,0BAA0B,EAC1B,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,OAAO,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AAG3E,YAAY,EACV,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,mBAAmB,EACnB,QAAQ,EACR,iBAAiB,EACjB,cAAc,EACd,qBAAqB,EACrB,0BAA0B,EAC1B,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,kBAAkB,EAClB,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAG1B,OAAO,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,2BAA2B,GAC5B,MAAM,cAAc,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,10 +1,17 @@
|
|
|
1
|
-
import { Temporal as
|
|
1
|
+
import { Temporal as r } from "temporal-polyfill";
|
|
2
2
|
import { cn as m } from "./lib/utils.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { allDayEvent as a, timedEvent as i } from "./lib/events.js";
|
|
4
|
+
import { groupAvailabilityByResource as f, selectedRangeToComponents as n, selectedRangeToISO as s } from "./lib/ranges.js";
|
|
5
|
+
import { ResourceGridView as x } from "./components/resource-grid-view/ResourceGridView.js";
|
|
6
|
+
import { resourceGridViewDefaults as u } from "./components/resource-grid-view/defaults.js";
|
|
5
7
|
export {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
+
x as ResourceGridView,
|
|
9
|
+
r as Temporal,
|
|
10
|
+
a as allDayEvent,
|
|
8
11
|
m as cn,
|
|
9
|
-
|
|
12
|
+
f as groupAvailabilityByResource,
|
|
13
|
+
u as resourceGridViewDefaults,
|
|
14
|
+
n as selectedRangeToComponents,
|
|
15
|
+
s as selectedRangeToISO,
|
|
16
|
+
i as timedEvent
|
|
10
17
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { AllDayCalendarEvent, TimedCalendarEvent } from '../types/calendar';
|
|
2
|
+
/** Create a timed calendar event (sets allDay to false automatically) */
|
|
3
|
+
export declare function timedEvent(data: Omit<TimedCalendarEvent, 'allDay'>): TimedCalendarEvent;
|
|
4
|
+
/** Create an all-day calendar event (sets allDay to true automatically) */
|
|
5
|
+
export declare function allDayEvent(data: Omit<AllDayCalendarEvent, 'allDay'>): AllDayCalendarEvent;
|
|
6
|
+
//# sourceMappingURL=events.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/lib/events.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAEhF,yEAAyE;AACzE,wBAAgB,UAAU,CACxB,IAAI,EAAE,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC,GACvC,kBAAkB,CAEpB;AAED,2EAA2E;AAC3E,wBAAgB,WAAW,CACzB,IAAI,EAAE,IAAI,CAAC,mBAAmB,EAAE,QAAQ,CAAC,GACxC,mBAAmB,CAErB"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { AvailabilityRange, SelectedRange } from '../types/calendar';
|
|
2
|
+
/** Decompose a SelectedRange into plain date/time component objects */
|
|
3
|
+
export declare function selectedRangeToComponents(range: SelectedRange): {
|
|
4
|
+
startDate: {
|
|
5
|
+
year: number;
|
|
6
|
+
month: number;
|
|
7
|
+
day: number;
|
|
8
|
+
};
|
|
9
|
+
startTime: {
|
|
10
|
+
hour: number;
|
|
11
|
+
minute: number;
|
|
12
|
+
};
|
|
13
|
+
endDate: {
|
|
14
|
+
year: number;
|
|
15
|
+
month: number;
|
|
16
|
+
day: number;
|
|
17
|
+
};
|
|
18
|
+
endTime: {
|
|
19
|
+
hour: number;
|
|
20
|
+
minute: number;
|
|
21
|
+
};
|
|
22
|
+
resourceId: string;
|
|
23
|
+
};
|
|
24
|
+
/** Convert a SelectedRange to ISO string representations */
|
|
25
|
+
export declare function selectedRangeToISO(range: SelectedRange): {
|
|
26
|
+
startDate: string;
|
|
27
|
+
startTime: string;
|
|
28
|
+
endDate: string;
|
|
29
|
+
endTime: string;
|
|
30
|
+
resourceId: string;
|
|
31
|
+
};
|
|
32
|
+
/** Group items by resource ID into a Record of AvailabilityRange arrays */
|
|
33
|
+
export declare function groupAvailabilityByResource<T>(items: T[], getResourceId: (item: T) => string, getRange: (item: T) => AvailabilityRange): Record<string, AvailabilityRange[]>;
|
|
34
|
+
//# sourceMappingURL=ranges.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ranges.d.ts","sourceRoot":"","sources":["../../src/lib/ranges.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEzE,uEAAuE;AACvE,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,aAAa;;;;;;;;;;;;;;;;;;;;EAsB7D;AAED,4DAA4D;AAC5D,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,aAAa;;;;;;EAUtD;AAED,2EAA2E;AAC3E,wBAAgB,2BAA2B,CAAC,CAAC,EAC3C,KAAK,EAAE,CAAC,EAAE,EACV,aAAa,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,EAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,iBAAiB,GACvC,MAAM,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,CAUrC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
function r(t) {
|
|
2
|
+
return {
|
|
3
|
+
startDate: {
|
|
4
|
+
year: t.startTime.year,
|
|
5
|
+
month: t.startTime.month,
|
|
6
|
+
day: t.startTime.day
|
|
7
|
+
},
|
|
8
|
+
startTime: {
|
|
9
|
+
hour: t.startTime.hour,
|
|
10
|
+
minute: t.startTime.minute
|
|
11
|
+
},
|
|
12
|
+
endDate: {
|
|
13
|
+
year: t.endTime.year,
|
|
14
|
+
month: t.endTime.month,
|
|
15
|
+
day: t.endTime.day
|
|
16
|
+
},
|
|
17
|
+
endTime: {
|
|
18
|
+
hour: t.endTime.hour,
|
|
19
|
+
minute: t.endTime.minute
|
|
20
|
+
},
|
|
21
|
+
resourceId: t.resourceId
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
function s(t) {
|
|
25
|
+
return {
|
|
26
|
+
startDate: t.startTime.toPlainDate().toString(),
|
|
27
|
+
startTime: t.startTime.toPlainTime().toString({ smallestUnit: "minute" }),
|
|
28
|
+
endDate: t.endTime.toPlainDate().toString(),
|
|
29
|
+
endTime: t.endTime.toPlainTime().toString({ smallestUnit: "minute" }),
|
|
30
|
+
resourceId: t.resourceId
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
function u(t, m, n) {
|
|
34
|
+
const e = {};
|
|
35
|
+
for (const o of t) {
|
|
36
|
+
const i = m(o);
|
|
37
|
+
e[i] || (e[i] = []), e[i].push(n(o));
|
|
38
|
+
}
|
|
39
|
+
return e;
|
|
40
|
+
}
|
|
41
|
+
export {
|
|
42
|
+
u as groupAvailabilityByResource,
|
|
43
|
+
r as selectedRangeToComponents,
|
|
44
|
+
s as selectedRangeToISO
|
|
45
|
+
};
|
package/dist/types/calendar.d.ts
CHANGED
|
@@ -13,7 +13,6 @@ interface BaseCalendarEvent {
|
|
|
13
13
|
color?: string;
|
|
14
14
|
clientName?: ReactNode;
|
|
15
15
|
status?: 'confirmed' | 'canceled' | 'tentative';
|
|
16
|
-
metadata?: Record<string, unknown>;
|
|
17
16
|
}
|
|
18
17
|
export interface TimedCalendarEvent extends BaseCalendarEvent {
|
|
19
18
|
allDay?: false;
|
|
@@ -117,9 +116,14 @@ export interface ResourceGridViewProps {
|
|
|
117
116
|
selectionAppearance?: SelectionAppearance;
|
|
118
117
|
dragPreviewAppearance?: SelectionAppearance;
|
|
119
118
|
selectionRef?: Ref<HTMLDivElement>;
|
|
119
|
+
/** How long (ms) the selection overlay remains in DOM after clearing, to allow popover close transitions. Default: 0 */
|
|
120
|
+
selectionLingerMs?: number;
|
|
120
121
|
selectedEventId?: string | null;
|
|
121
122
|
selectedEventRef?: Ref<HTMLDivElement>;
|
|
122
|
-
renderCorner?: (
|
|
123
|
+
renderCorner?: (props: {
|
|
124
|
+
timeZone: string;
|
|
125
|
+
date: Temporal.PlainDate;
|
|
126
|
+
}) => ReactNode;
|
|
123
127
|
eventGap?: number;
|
|
124
128
|
eventLayout?: EventLayout;
|
|
125
129
|
stackOffset?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/types/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,KA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AgB,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IACvC,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE;QACrB,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC;KAC1B,KAAK,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@savvycal/calendar",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
},
|
|
11
11
|
"publishConfig": {
|
|
12
12
|
"access": "public",
|
|
13
|
+
"provenance": true,
|
|
13
14
|
"registry": "https://registry.npmjs.org/"
|
|
14
15
|
},
|
|
15
16
|
"main": "./dist/index.js",
|