@alfadocs/ui-kit-debug 1.25.1-calendar.13 → 1.25.1-calendar.15
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/_chunks/{calendar-0d05p1It.js → calendar-K2lLzn4x.js} +469 -440
- package/dist/_chunks/calendar-K2lLzn4x.js.map +1 -0
- package/dist/_chunks/{calendar-event-card-66CEEWU6.js → calendar-event-card-DSh-69HT.js} +130 -122
- package/dist/_chunks/calendar-event-card-DSh-69HT.js.map +1 -0
- package/dist/_chunks/{calendar-workspace-irqUg_dW.js → calendar-workspace-W3qldtxu.js} +3483 -3372
- package/dist/_chunks/calendar-workspace-W3qldtxu.js.map +1 -0
- package/dist/agent-catalog.json +2 -2
- package/dist/components/calendar/calendar.d.ts +21 -0
- package/dist/components/calendar/calendar.d.ts.map +1 -1
- package/dist/components/calendar/index.js +1 -1
- package/dist/components/calendar-event-card/calendar-event-card.d.ts +9 -0
- package/dist/components/calendar-event-card/calendar-event-card.d.ts.map +1 -1
- package/dist/components/calendar-event-card/index.js +1 -1
- package/dist/i18n/locales/ar.d.ts +4 -0
- package/dist/i18n/locales/ar.d.ts.map +1 -1
- package/dist/i18n/locales/ar.js +6 -2
- package/dist/i18n/locales/ar.js.map +1 -1
- package/dist/i18n/locales/de.d.ts +4 -0
- package/dist/i18n/locales/de.d.ts.map +1 -1
- package/dist/i18n/locales/de.js +6 -2
- package/dist/i18n/locales/de.js.map +1 -1
- package/dist/i18n/locales/el.d.ts +4 -0
- package/dist/i18n/locales/el.d.ts.map +1 -1
- package/dist/i18n/locales/el.js +6 -2
- package/dist/i18n/locales/el.js.map +1 -1
- package/dist/i18n/locales/en.d.ts +4 -0
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/en.js +6 -2
- package/dist/i18n/locales/en.js.map +1 -1
- package/dist/i18n/locales/es.d.ts +4 -0
- package/dist/i18n/locales/es.d.ts.map +1 -1
- package/dist/i18n/locales/es.js +6 -2
- package/dist/i18n/locales/es.js.map +1 -1
- package/dist/i18n/locales/fr.d.ts +4 -0
- package/dist/i18n/locales/fr.d.ts.map +1 -1
- package/dist/i18n/locales/fr.js +6 -2
- package/dist/i18n/locales/fr.js.map +1 -1
- package/dist/i18n/locales/hi.d.ts +4 -0
- package/dist/i18n/locales/hi.d.ts.map +1 -1
- package/dist/i18n/locales/hi.js +6 -2
- package/dist/i18n/locales/hi.js.map +1 -1
- package/dist/i18n/locales/it.d.ts +4 -0
- package/dist/i18n/locales/it.d.ts.map +1 -1
- package/dist/i18n/locales/it.js +6 -2
- package/dist/i18n/locales/it.js.map +1 -1
- package/dist/i18n/locales/ja.d.ts +4 -0
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/i18n/locales/ja.js +6 -2
- package/dist/i18n/locales/ja.js.map +1 -1
- package/dist/i18n/locales/nl.d.ts +4 -0
- package/dist/i18n/locales/nl.d.ts.map +1 -1
- package/dist/i18n/locales/nl.js +6 -2
- package/dist/i18n/locales/nl.js.map +1 -1
- package/dist/i18n/locales/pl.d.ts +4 -0
- package/dist/i18n/locales/pl.d.ts.map +1 -1
- package/dist/i18n/locales/pl.js +6 -2
- package/dist/i18n/locales/pl.js.map +1 -1
- package/dist/i18n/locales/pt.d.ts +4 -0
- package/dist/i18n/locales/pt.d.ts.map +1 -1
- package/dist/i18n/locales/pt.js +6 -2
- package/dist/i18n/locales/pt.js.map +1 -1
- package/dist/i18n/locales/ro.d.ts +4 -0
- package/dist/i18n/locales/ro.d.ts.map +1 -1
- package/dist/i18n/locales/ro.js +6 -2
- package/dist/i18n/locales/ro.js.map +1 -1
- package/dist/i18n/locales/ru.d.ts +4 -0
- package/dist/i18n/locales/ru.d.ts.map +1 -1
- package/dist/i18n/locales/ru.js +6 -2
- package/dist/i18n/locales/ru.js.map +1 -1
- package/dist/i18n/locales/sq.d.ts +4 -0
- package/dist/i18n/locales/sq.d.ts.map +1 -1
- package/dist/i18n/locales/sq.js +6 -2
- package/dist/i18n/locales/sq.js.map +1 -1
- package/dist/i18n/locales/sv.d.ts +4 -0
- package/dist/i18n/locales/sv.d.ts.map +1 -1
- package/dist/i18n/locales/sv.js +6 -2
- package/dist/i18n/locales/sv.js.map +1 -1
- package/dist/i18n/locales/tr.d.ts +4 -0
- package/dist/i18n/locales/tr.d.ts.map +1 -1
- package/dist/i18n/locales/tr.js +6 -2
- package/dist/i18n/locales/tr.js.map +1 -1
- package/dist/i18n/locales/zh.d.ts +4 -0
- package/dist/i18n/locales/zh.d.ts.map +1 -1
- package/dist/i18n/locales/zh.js +6 -2
- package/dist/i18n/locales/zh.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/locales/ar.json +6 -2
- package/dist/locales/de.json +6 -2
- package/dist/locales/el.json +6 -2
- package/dist/locales/en.json +6 -2
- package/dist/locales/es.json +6 -2
- package/dist/locales/fr.json +6 -2
- package/dist/locales/hi.json +6 -2
- package/dist/locales/it.json +6 -2
- package/dist/locales/ja.json +6 -2
- package/dist/locales/nl.json +6 -2
- package/dist/locales/pl.json +6 -2
- package/dist/locales/pt.json +6 -2
- package/dist/locales/ro.json +6 -2
- package/dist/locales/ru.json +6 -2
- package/dist/locales/sq.json +6 -2
- package/dist/locales/sv.json +6 -2
- package/dist/locales/tr.json +6 -2
- package/dist/locales/zh.json +6 -2
- package/dist/patterns/calendar/calendar-workspace.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts +5 -1
- package/dist/patterns/calendar/calendar-workspace.model.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.data.d.ts +37 -1
- package/dist/patterns/calendar/calendar.data.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.model.d.ts +9 -3
- package/dist/patterns/calendar/calendar.model.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.sheets.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.surface.d.ts.map +1 -1
- package/dist/patterns/calendar/calendar.types.d.ts +24 -0
- package/dist/patterns/calendar/calendar.types.d.ts.map +1 -1
- package/dist/patterns/calendar/index.d.ts +2 -2
- package/dist/patterns/calendar/index.d.ts.map +1 -1
- package/dist/patterns/calendar/index.js +1 -1
- package/dist/tokens.css +5 -1
- package/package.json +1 -1
- package/dist/_chunks/calendar-0d05p1It.js.map +0 -1
- package/dist/_chunks/calendar-event-card-66CEEWU6.js.map +0 -1
- package/dist/_chunks/calendar-workspace-irqUg_dW.js.map +0 -1
|
@@ -1,25 +1,26 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { u as
|
|
14
|
-
import { u as
|
|
15
|
-
import { w as
|
|
16
|
-
import { A as
|
|
17
|
-
import { R as
|
|
18
|
-
import { T as
|
|
19
|
-
import {
|
|
20
|
-
import { C as
|
|
21
|
-
import { C as
|
|
22
|
-
|
|
1
|
+
import { jsxs as P, jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef as _e, useRef as p, useEffect as v, useState as ce, useMemo as u, useImperativeHandle as Zt, useCallback as h } from "react";
|
|
3
|
+
import { useTranslation as Ce } from "react-i18next";
|
|
4
|
+
import Qt from "@fullcalendar/react";
|
|
5
|
+
import er from "@fullcalendar/daygrid";
|
|
6
|
+
import tr from "@fullcalendar/timegrid";
|
|
7
|
+
import rr from "@fullcalendar/list";
|
|
8
|
+
import nr from "@fullcalendar/resource";
|
|
9
|
+
import ir from "@fullcalendar/resource-timegrid";
|
|
10
|
+
import ar from "@fullcalendar/resource-timeline";
|
|
11
|
+
import sr from "@fullcalendar/timeline";
|
|
12
|
+
import or from "@fullcalendar/interaction";
|
|
13
|
+
import { u as dr } from "./use-prefers-reduced-motion-BMwIQRjB.js";
|
|
14
|
+
import { u as cr } from "./registry-DvAUVLHh.js";
|
|
15
|
+
import { w as lr, C as ur } from "./calendar-event-card-DSh-69HT.js";
|
|
16
|
+
import { A as mr } from "./avatar-BNQNhoyL.js";
|
|
17
|
+
import { R as fr } from "./resource-chip-DYTG0IQQ.js";
|
|
18
|
+
import { T as pr } from "./tooltip-DvmfrNvB.js";
|
|
19
|
+
import { V as vr } from "./visually-hidden-BHxEUGyT.js";
|
|
20
|
+
import { C as hr } from "./check-DrFSN__t.js";
|
|
21
|
+
import { C as We } from "./chevron-right-I9AeSxH2.js";
|
|
22
|
+
import { C as je } from "./chevron-left-B8cOyH-V.js";
|
|
23
|
+
const gr = {
|
|
23
24
|
id: "calendar",
|
|
24
25
|
capabilities: ["view_change", "range_navigate", "pick"],
|
|
25
26
|
state: {
|
|
@@ -171,10 +172,10 @@ const lr = {
|
|
|
171
172
|
},
|
|
172
173
|
item: {
|
|
173
174
|
attr: "data-event-id",
|
|
174
|
-
description: 'Emitted on every rendered FullCalendar event by the kit event renderer. Used by focusEvent. Cards also carry data-kind="task"|"draft"|"appointment" and data-status for classification.'
|
|
175
|
+
description: 'Emitted on every rendered FullCalendar event by the kit event renderer. Used by focusEvent. Cards also carry data-kind="task"|"draft"|"pending-details"|"appointment" and data-status for classification.'
|
|
175
176
|
}
|
|
176
177
|
}
|
|
177
|
-
},
|
|
178
|
+
}, yr = {
|
|
178
179
|
vertical: {
|
|
179
180
|
Day: "resourceTimeGridDay",
|
|
180
181
|
ThreeDays: "resourceTimeGridThreeDays",
|
|
@@ -185,35 +186,35 @@ const lr = {
|
|
|
185
186
|
ThreeDays: "resourceTimelineThreeDays",
|
|
186
187
|
Week: "resourceTimelineWeek"
|
|
187
188
|
}
|
|
188
|
-
},
|
|
189
|
+
}, br = /* @__PURE__ */ new Set([
|
|
189
190
|
"dayGridMonth",
|
|
190
191
|
"timeGridWeek",
|
|
191
192
|
"timeGridThreeDays",
|
|
192
193
|
"timeGridDay",
|
|
193
194
|
"listWeek"
|
|
194
|
-
]),
|
|
195
|
+
]), Tr = {
|
|
195
196
|
timeGridDay: "timelineDay",
|
|
196
197
|
timeGridThreeDays: "timelineThreeDays",
|
|
197
198
|
timeGridWeek: "timelineWeek"
|
|
198
199
|
};
|
|
199
|
-
function
|
|
200
|
-
if (
|
|
201
|
-
return s === "horizontal" ?
|
|
202
|
-
const
|
|
200
|
+
function Te(n, s = "vertical") {
|
|
201
|
+
if (br.has(n))
|
|
202
|
+
return s === "horizontal" ? Tr[n] ?? n : n;
|
|
203
|
+
const c = n.replace(/^resourceTimeGrid/, "").replace(
|
|
203
204
|
/(Chair|Operator)$/,
|
|
204
205
|
""
|
|
205
206
|
);
|
|
206
|
-
return
|
|
207
|
+
return yr[s][c];
|
|
207
208
|
}
|
|
208
|
-
const
|
|
209
|
+
const de = {
|
|
209
210
|
weekday: "long",
|
|
210
211
|
day: "numeric",
|
|
211
212
|
month: "long",
|
|
212
213
|
year: "numeric"
|
|
213
|
-
},
|
|
214
|
+
}, Dr = [
|
|
214
215
|
{ weekday: "short", day: "numeric", month: "short" },
|
|
215
216
|
{ hour: "numeric", minute: "2-digit" }
|
|
216
|
-
],
|
|
217
|
+
], xr = {
|
|
217
218
|
resourceTimeGridThreeDays: {
|
|
218
219
|
type: "resourceTimeGrid",
|
|
219
220
|
duration: { days: 3 }
|
|
@@ -232,17 +233,17 @@ const ae = {
|
|
|
232
233
|
type: "timeline",
|
|
233
234
|
duration: { days: 3 }
|
|
234
235
|
},
|
|
235
|
-
timeline: { slotLabelFormat:
|
|
236
|
-
timeGridDay: { titleFormat:
|
|
237
|
-
resourceTimeGridDay: { titleFormat:
|
|
238
|
-
timelineDay: { titleFormat:
|
|
239
|
-
resourceTimelineDay: { titleFormat:
|
|
240
|
-
},
|
|
236
|
+
timeline: { slotLabelFormat: Dr },
|
|
237
|
+
timeGridDay: { titleFormat: de },
|
|
238
|
+
resourceTimeGridDay: { titleFormat: de },
|
|
239
|
+
timelineDay: { titleFormat: de },
|
|
240
|
+
resourceTimelineDay: { titleFormat: de }
|
|
241
|
+
}, De = 5, Cr = {
|
|
241
242
|
create: "calendar.modeBanner.create",
|
|
242
243
|
move: "calendar.modeBanner.move",
|
|
243
244
|
copy: "calendar.modeBanner.copy"
|
|
244
245
|
};
|
|
245
|
-
function
|
|
246
|
+
function wr(n) {
|
|
246
247
|
try {
|
|
247
248
|
const s = new Intl.Locale(n), o = typeof s.getWeekInfo == "function" ? s.getWeekInfo() : s.weekInfo;
|
|
248
249
|
if (o && typeof o.firstDay == "number")
|
|
@@ -251,61 +252,61 @@ function gr(n) {
|
|
|
251
252
|
}
|
|
252
253
|
return n.startsWith("en-US") || n.startsWith("he") || n.startsWith("ar-SA") ? 0 : 1;
|
|
253
254
|
}
|
|
254
|
-
const
|
|
255
|
-
function
|
|
256
|
-
const s = n.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"),
|
|
257
|
-
return `${s}-${o}-${
|
|
255
|
+
const xe = "calendar-col-hidden", Ar = "calendar-col-loading";
|
|
256
|
+
function F(n) {
|
|
257
|
+
const s = n.getFullYear(), o = String(n.getMonth() + 1).padStart(2, "0"), c = String(n.getDate()).padStart(2, "0");
|
|
258
|
+
return `${s}-${o}-${c}`;
|
|
258
259
|
}
|
|
259
|
-
function
|
|
260
|
-
const o = /* @__PURE__ */ new Set(),
|
|
260
|
+
function kr(n, s) {
|
|
261
|
+
const o = /* @__PURE__ */ new Set(), c = /* @__PURE__ */ new Map(), f = (n == null ? void 0 : n.length) ?? 0;
|
|
261
262
|
if (n && s) {
|
|
262
263
|
for (const T of n)
|
|
263
264
|
if (T.hiddenDates)
|
|
264
|
-
for (const
|
|
265
|
-
const
|
|
266
|
-
o.has(
|
|
265
|
+
for (const g of T.hiddenDates) {
|
|
266
|
+
const A = `${T.id}:${g}`;
|
|
267
|
+
o.has(A) || (o.add(A), c.set(g, (c.get(g) ?? 0) + 1));
|
|
267
268
|
}
|
|
268
269
|
}
|
|
269
270
|
return {
|
|
270
271
|
hiddenCells: o,
|
|
271
|
-
hiddenCountByDate:
|
|
272
|
+
hiddenCountByDate: c,
|
|
272
273
|
resourceCount: f,
|
|
273
274
|
active: o.size > 0
|
|
274
275
|
};
|
|
275
276
|
}
|
|
276
|
-
function
|
|
277
|
-
const { i18n: n } =
|
|
277
|
+
function Ir() {
|
|
278
|
+
const { i18n: n } = Ce(), [s, o] = ce(() => {
|
|
278
279
|
if (typeof document > "u") return !1;
|
|
279
|
-
const
|
|
280
|
-
return
|
|
280
|
+
const c = document.documentElement.getAttribute("dir"), f = typeof n.dir == "function" ? n.dir() : "ltr";
|
|
281
|
+
return c === "rtl" || f === "rtl";
|
|
281
282
|
});
|
|
282
283
|
return v(() => {
|
|
283
284
|
if (typeof document > "u") return;
|
|
284
|
-
const
|
|
285
|
+
const c = new MutationObserver(() => {
|
|
285
286
|
const f = document.documentElement.getAttribute("dir"), T = typeof n.dir == "function" ? n.dir() : "ltr";
|
|
286
287
|
o(f === "rtl" || T === "rtl");
|
|
287
288
|
});
|
|
288
|
-
return
|
|
289
|
+
return c.observe(document.documentElement, {
|
|
289
290
|
attributes: !0,
|
|
290
291
|
attributeFilter: ["dir", "lang"]
|
|
291
|
-
}), () =>
|
|
292
|
+
}), () => c.disconnect();
|
|
292
293
|
}, [n]), s;
|
|
293
294
|
}
|
|
294
|
-
function
|
|
295
|
-
const o = n.event.start,
|
|
296
|
-
if (!(!o || !
|
|
295
|
+
function Sr(n, s) {
|
|
296
|
+
const o = n.event.start, c = n.event.end ?? n.event.start;
|
|
297
|
+
if (!(!o || !c))
|
|
297
298
|
try {
|
|
298
299
|
const f = new Intl.DateTimeFormat(s, {
|
|
299
300
|
hour: "2-digit",
|
|
300
301
|
minute: "2-digit",
|
|
301
302
|
hour12: !1
|
|
302
303
|
});
|
|
303
|
-
return typeof f.formatRange == "function" ? f.formatRange(o,
|
|
304
|
+
return typeof f.formatRange == "function" ? f.formatRange(o, c) : `${f.format(o)} – ${f.format(c)}`;
|
|
304
305
|
} catch {
|
|
305
306
|
return;
|
|
306
307
|
}
|
|
307
308
|
}
|
|
308
|
-
const
|
|
309
|
+
const Ve = [
|
|
309
310
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
310
311
|
"ds:min-h-[var(--min-target-size)]",
|
|
311
312
|
"ds:bg-[var(--background)] ds:text-[var(--foreground)]",
|
|
@@ -318,15 +319,15 @@ const We = [
|
|
|
318
319
|
"ds:focus-visible:outline-[var(--ring)]",
|
|
319
320
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
320
321
|
"ds:motion-reduce:transition-none"
|
|
321
|
-
].join(" "),
|
|
322
|
-
|
|
322
|
+
].join(" "), Rr = [
|
|
323
|
+
Ve,
|
|
323
324
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]"
|
|
324
|
-
].join(" "),
|
|
325
|
-
|
|
325
|
+
].join(" "), Er = [
|
|
326
|
+
Ve,
|
|
326
327
|
"ds:min-w-[var(--min-target-size)]"
|
|
327
|
-
].join(" "),
|
|
328
|
-
({ title: n, onToday: s, onPrev: o, onNext:
|
|
329
|
-
const { t:
|
|
328
|
+
].join(" "), we = _e(
|
|
329
|
+
({ title: n, onToday: s, onPrev: o, onNext: c, end: f, className: T, maskClassName: g }, A) => {
|
|
330
|
+
const { t: z } = Ce(), Z = Ir(), D = Z ? We : je, W = Z ? je : We, j = [
|
|
330
331
|
"ds:calendar-toolbar",
|
|
331
332
|
"ds:sticky ds:top-0 ds:z-20",
|
|
332
333
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
@@ -335,145 +336,146 @@ const We = [
|
|
|
335
336
|
"ds:bg-[var(--background)]",
|
|
336
337
|
"ds:border-b ds:border-[var(--border)]",
|
|
337
338
|
T
|
|
338
|
-
].filter(Boolean).join(" "),
|
|
339
|
+
].filter(Boolean).join(" "), _ = [Rr, g].filter(Boolean).join(" "), S = [Er, g].filter(Boolean).join(" "), x = [
|
|
339
340
|
"ds:flex-1 ds:text-center ds:truncate type-title-card",
|
|
340
|
-
|
|
341
|
-
].filter(Boolean).join(" "),
|
|
342
|
-
return /* @__PURE__ */
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */
|
|
341
|
+
g
|
|
342
|
+
].filter(Boolean).join(" "), Q = ["ds:flex-1 ds:text-center", g].filter(Boolean).join(" ");
|
|
343
|
+
return /* @__PURE__ */ P("div", { ref: A, className: j, children: [
|
|
344
|
+
/* @__PURE__ */ P("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
345
|
+
/* @__PURE__ */ d(
|
|
345
346
|
"button",
|
|
346
347
|
{
|
|
347
348
|
type: "button",
|
|
348
349
|
onClick: s,
|
|
349
|
-
className:
|
|
350
|
-
children:
|
|
350
|
+
className: _,
|
|
351
|
+
children: z("calendar.today")
|
|
351
352
|
}
|
|
352
353
|
),
|
|
353
|
-
/* @__PURE__ */
|
|
354
|
+
/* @__PURE__ */ d(
|
|
354
355
|
"button",
|
|
355
356
|
{
|
|
356
357
|
type: "button",
|
|
357
358
|
onClick: o,
|
|
358
|
-
"aria-label":
|
|
359
|
-
className:
|
|
360
|
-
children: /* @__PURE__ */
|
|
359
|
+
"aria-label": z("calendar.previousPeriod"),
|
|
360
|
+
className: S,
|
|
361
|
+
children: /* @__PURE__ */ d(D, { size: 16, "aria-hidden": "true" })
|
|
361
362
|
}
|
|
362
363
|
),
|
|
363
|
-
/* @__PURE__ */
|
|
364
|
+
/* @__PURE__ */ d(
|
|
364
365
|
"button",
|
|
365
366
|
{
|
|
366
367
|
type: "button",
|
|
367
|
-
onClick:
|
|
368
|
-
"aria-label":
|
|
369
|
-
className:
|
|
370
|
-
children: /* @__PURE__ */
|
|
368
|
+
onClick: c,
|
|
369
|
+
"aria-label": z("calendar.nextPeriod"),
|
|
370
|
+
className: S,
|
|
371
|
+
children: /* @__PURE__ */ d(W, { size: 16, "aria-hidden": "true" })
|
|
371
372
|
}
|
|
372
373
|
)
|
|
373
374
|
] }),
|
|
374
|
-
n ? /* @__PURE__ */
|
|
375
|
+
n ? /* @__PURE__ */ d("h2", { "aria-live": "polite", className: x, children: n }) : (
|
|
375
376
|
/* Keep the centering slot stable even before the first
|
|
376
377
|
`datesSet` populates the title — an empty <h2> would trip
|
|
377
378
|
axe's `empty-heading` rule, so we substitute a decorative
|
|
378
379
|
spacer that matches the h2's flex sizing. Once `title` is
|
|
379
380
|
non-empty the h2 renders in the same slot. */
|
|
380
|
-
/* @__PURE__ */
|
|
381
|
+
/* @__PURE__ */ d("div", { "aria-hidden": "true", className: Q })
|
|
381
382
|
),
|
|
382
|
-
f ? /* @__PURE__ */
|
|
383
|
+
f ? /* @__PURE__ */ d("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: f }) : null
|
|
383
384
|
] });
|
|
384
385
|
}
|
|
385
386
|
);
|
|
386
|
-
|
|
387
|
-
const
|
|
387
|
+
we.displayName = "Calendar.Toolbar";
|
|
388
|
+
const He = _e(
|
|
388
389
|
({
|
|
389
390
|
id: n,
|
|
390
391
|
events: s,
|
|
391
392
|
resources: o,
|
|
392
|
-
view:
|
|
393
|
+
view: c = "dayGridMonth",
|
|
393
394
|
initialDate: f,
|
|
394
395
|
locale: T,
|
|
395
|
-
onEventDrop:
|
|
396
|
-
onEventResize:
|
|
397
|
-
onEventDragStart:
|
|
398
|
-
onEventResizeStart:
|
|
399
|
-
onEventClick:
|
|
400
|
-
onEventMouseEnter:
|
|
401
|
-
onEventMouseLeave:
|
|
402
|
-
onDateSelect:
|
|
403
|
-
onDatesSet:
|
|
404
|
-
onDateClick:
|
|
405
|
-
onNavLinkDayClick:
|
|
406
|
-
editable:
|
|
407
|
-
eventDurationEditable:
|
|
408
|
-
selectable:
|
|
409
|
-
selectMirror:
|
|
410
|
-
unselectAuto:
|
|
411
|
-
height:
|
|
412
|
-
className:
|
|
396
|
+
onEventDrop: g,
|
|
397
|
+
onEventResize: A,
|
|
398
|
+
onEventDragStart: z,
|
|
399
|
+
onEventResizeStart: Z,
|
|
400
|
+
onEventClick: D,
|
|
401
|
+
onEventMouseEnter: W,
|
|
402
|
+
onEventMouseLeave: j,
|
|
403
|
+
onDateSelect: _,
|
|
404
|
+
onDatesSet: S,
|
|
405
|
+
onDateClick: x,
|
|
406
|
+
onNavLinkDayClick: Q,
|
|
407
|
+
editable: ee = !1,
|
|
408
|
+
eventDurationEditable: qe,
|
|
409
|
+
selectable: Ae = !1,
|
|
410
|
+
selectMirror: $e,
|
|
411
|
+
unselectAuto: ke,
|
|
412
|
+
height: Ke,
|
|
413
|
+
className: Ue,
|
|
413
414
|
privacyMode: y = !1,
|
|
414
|
-
eventColorStyle:
|
|
415
|
-
mode:
|
|
416
|
-
modeLabel:
|
|
417
|
-
modeBannerColor:
|
|
418
|
-
modeBannerTextColor:
|
|
419
|
-
onModeCancel:
|
|
420
|
-
alertBanner:
|
|
421
|
-
hiddenDays:
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
415
|
+
eventColorStyle: Ye = "solid",
|
|
416
|
+
mode: te = "default",
|
|
417
|
+
modeLabel: Xe,
|
|
418
|
+
modeBannerColor: re,
|
|
419
|
+
modeBannerTextColor: ne,
|
|
420
|
+
onModeCancel: Ie,
|
|
421
|
+
alertBanner: Je,
|
|
422
|
+
hiddenDays: Se,
|
|
423
|
+
loadingDates: Re,
|
|
424
|
+
slotMinTime: Ze,
|
|
425
|
+
slotMaxTime: Qe,
|
|
426
|
+
slotDuration: et,
|
|
427
|
+
snapDuration: Ee,
|
|
428
|
+
showTime: tt = !0,
|
|
429
|
+
datesAboveResources: le = !0,
|
|
430
|
+
slotEventOverlap: rt = !1,
|
|
431
|
+
stickyHeaderDates: nt = !0,
|
|
432
|
+
nowIndicator: it = !0,
|
|
433
|
+
dayMaxEvents: at = !0,
|
|
434
|
+
schedulerLicenseKey: st = void 0,
|
|
435
|
+
toolbar: ot = !0,
|
|
436
|
+
toolbarEnd: dt,
|
|
437
|
+
resourceLayout: V = "vertical",
|
|
438
|
+
showResourceInitials: ue = !1,
|
|
439
|
+
resourceLabelVariant: Pe = "text",
|
|
440
|
+
verticalResourceLabels: me = !1,
|
|
441
|
+
selectedEventId: Ne,
|
|
442
|
+
availabilityMode: ct = !1,
|
|
443
|
+
resourceAreaWidth: lt,
|
|
444
|
+
resourceAreaHeader: H,
|
|
445
|
+
defaultTimedEventDuration: q,
|
|
446
|
+
zebraRows: ut = !1,
|
|
445
447
|
maskClassName: N
|
|
446
|
-
},
|
|
447
|
-
const { t: m, i18n:
|
|
448
|
+
}, mt) => {
|
|
449
|
+
const { t: m, i18n: G } = Ce(), C = p(null), k = p(null), w = p(null), I = p(null), M = p(null), Ge = p(null), ie = p({
|
|
448
450
|
id: 0,
|
|
449
451
|
x: 0,
|
|
450
452
|
y: 0
|
|
451
|
-
}),
|
|
453
|
+
}), Me = p(0), Be = p(0), R = T ?? G.language ?? "en";
|
|
452
454
|
v(() => {
|
|
453
|
-
}, [
|
|
454
|
-
}, [
|
|
455
|
-
const [
|
|
455
|
+
}, [Se]), v(() => {
|
|
456
|
+
}, [q]);
|
|
457
|
+
const [ft, pt] = ce(() => {
|
|
456
458
|
if (typeof document > "u") return "ltr";
|
|
457
|
-
const e = document.documentElement.getAttribute("dir"), t = typeof
|
|
459
|
+
const e = document.documentElement.getAttribute("dir"), t = typeof G.dir == "function" ? G.dir() : "ltr";
|
|
458
460
|
return e === "rtl" || t === "rtl" ? "rtl" : "ltr";
|
|
459
461
|
});
|
|
460
462
|
v(() => {
|
|
461
463
|
if (typeof document > "u") return;
|
|
462
464
|
const e = new MutationObserver(() => {
|
|
463
|
-
const t = document.documentElement.getAttribute("dir"), r = typeof
|
|
464
|
-
|
|
465
|
+
const t = document.documentElement.getAttribute("dir"), r = typeof G.dir == "function" ? G.dir() : "ltr";
|
|
466
|
+
pt(t === "rtl" || r === "rtl" ? "rtl" : "ltr");
|
|
465
467
|
});
|
|
466
468
|
return e.observe(document.documentElement, {
|
|
467
469
|
attributes: !0,
|
|
468
470
|
attributeFilter: ["dir", "lang"]
|
|
469
471
|
}), () => e.disconnect();
|
|
470
|
-
}, [
|
|
472
|
+
}, [G]), v(() => {
|
|
471
473
|
if (typeof document > "u") return;
|
|
472
474
|
let e;
|
|
473
475
|
const t = new MutationObserver(() => {
|
|
474
476
|
clearTimeout(e), e = setTimeout(() => {
|
|
475
477
|
var i;
|
|
476
|
-
const r = (i =
|
|
478
|
+
const r = (i = C.current) == null ? void 0 : i.getApi();
|
|
477
479
|
r && typeof r.render == "function" && r.render();
|
|
478
480
|
}, 50);
|
|
479
481
|
});
|
|
@@ -484,15 +486,15 @@ const Fe = Le(
|
|
|
484
486
|
clearTimeout(e), t.disconnect();
|
|
485
487
|
};
|
|
486
488
|
}, []), v(() => {
|
|
487
|
-
const e =
|
|
489
|
+
const e = k.current;
|
|
488
490
|
if (!e || typeof ResizeObserver > "u") return;
|
|
489
491
|
let t = 0, r = e.getBoundingClientRect().width;
|
|
490
492
|
const i = new ResizeObserver((a) => {
|
|
491
|
-
var
|
|
492
|
-
const
|
|
493
|
+
var U, Y;
|
|
494
|
+
const l = a[0], b = ((Y = (U = l == null ? void 0 : l.borderBoxSize) == null ? void 0 : U[0]) == null ? void 0 : Y.inlineSize) ?? (l == null ? void 0 : l.contentRect.width) ?? e.getBoundingClientRect().width;
|
|
493
495
|
b !== r && (r = b, cancelAnimationFrame(t), t = requestAnimationFrame(() => {
|
|
494
|
-
var
|
|
495
|
-
(
|
|
496
|
+
var X, J;
|
|
497
|
+
(J = (X = C.current) == null ? void 0 : X.getApi()) == null || J.updateSize();
|
|
496
498
|
}));
|
|
497
499
|
});
|
|
498
500
|
return i.observe(e), () => {
|
|
@@ -500,7 +502,7 @@ const Fe = Le(
|
|
|
500
502
|
};
|
|
501
503
|
}, []), v(() => {
|
|
502
504
|
if (typeof document > "u") return;
|
|
503
|
-
const e =
|
|
505
|
+
const e = k.current;
|
|
504
506
|
if (!e) return;
|
|
505
507
|
const t = () => {
|
|
506
508
|
e.querySelectorAll(
|
|
@@ -524,19 +526,19 @@ const Fe = Le(
|
|
|
524
526
|
attributeFilter: ["aria-hidden"]
|
|
525
527
|
}), () => r.disconnect();
|
|
526
528
|
}, [m]);
|
|
527
|
-
const
|
|
528
|
-
() =>
|
|
529
|
-
),
|
|
530
|
-
|
|
531
|
-
const
|
|
529
|
+
const ae = dr(), [vt, ht] = ce(""), [B, gt] = ce(
|
|
530
|
+
() => Te(c, V)
|
|
531
|
+
), Le = p(B);
|
|
532
|
+
Le.current = B;
|
|
533
|
+
const fe = u(() => {
|
|
532
534
|
const e = () => {
|
|
533
535
|
var t;
|
|
534
|
-
return (t =
|
|
536
|
+
return (t = C.current) == null ? void 0 : t.getApi();
|
|
535
537
|
};
|
|
536
538
|
return {
|
|
537
539
|
getApi: () => {
|
|
538
540
|
var t;
|
|
539
|
-
return (t =
|
|
541
|
+
return (t = C.current) == null ? void 0 : t.getApi();
|
|
540
542
|
},
|
|
541
543
|
today: () => {
|
|
542
544
|
var t;
|
|
@@ -557,7 +559,7 @@ const Fe = Le(
|
|
|
557
559
|
changeView: (t) => {
|
|
558
560
|
var r;
|
|
559
561
|
(r = e()) == null || r.changeView(
|
|
560
|
-
|
|
562
|
+
Te(t, V)
|
|
561
563
|
);
|
|
562
564
|
},
|
|
563
565
|
getTitle: () => {
|
|
@@ -573,41 +575,41 @@ const Fe = Le(
|
|
|
573
575
|
return (t = e()) == null ? void 0 : t.getDate();
|
|
574
576
|
},
|
|
575
577
|
focusEvent: (t) => {
|
|
576
|
-
const r =
|
|
578
|
+
const r = k.current;
|
|
577
579
|
if (!r) return;
|
|
578
580
|
const i = `[data-event-id="${CSS.escape(t)}"]`, a = r.querySelector(i);
|
|
579
581
|
if (a) {
|
|
580
|
-
if (I.current && (clearTimeout(I.current), I.current = null),
|
|
581
|
-
behavior:
|
|
582
|
+
if (I.current && (clearTimeout(I.current), I.current = null), M.current && M.current !== a && M.current.classList.remove("calendar-event-focused"), a.scrollIntoView({
|
|
583
|
+
behavior: ae ? "auto" : "smooth",
|
|
582
584
|
block: "center"
|
|
583
|
-
}), a.classList.add("calendar-event-focused"),
|
|
584
|
-
const
|
|
585
|
-
|
|
585
|
+
}), a.classList.add("calendar-event-focused"), M.current = a, w.current) {
|
|
586
|
+
const l = a.getAttribute("aria-label") ?? t, b = y ? "•••" : l;
|
|
587
|
+
w.current.textContent = m("calendar.focusedEvent", {
|
|
586
588
|
title: b
|
|
587
589
|
});
|
|
588
590
|
}
|
|
589
591
|
I.current = setTimeout(() => {
|
|
590
|
-
a.classList.remove("calendar-event-focused"),
|
|
592
|
+
a.classList.remove("calendar-event-focused"), M.current === a && (M.current = null), I.current = null;
|
|
591
593
|
}, 3e3);
|
|
592
594
|
}
|
|
593
595
|
}
|
|
594
596
|
};
|
|
595
|
-
}, [
|
|
596
|
-
|
|
597
|
+
}, [ae, y, m, V]);
|
|
598
|
+
Zt(mt, () => fe, [fe]), cr(gr, fe, n), v(
|
|
597
599
|
() => () => {
|
|
598
600
|
I.current && (clearTimeout(I.current), I.current = null);
|
|
599
601
|
},
|
|
600
602
|
[]
|
|
601
603
|
);
|
|
602
|
-
const
|
|
604
|
+
const Oe = p(!0);
|
|
603
605
|
v(() => {
|
|
604
|
-
if (
|
|
605
|
-
|
|
606
|
+
if (Oe.current) {
|
|
607
|
+
Oe.current = !1;
|
|
606
608
|
return;
|
|
607
609
|
}
|
|
608
|
-
|
|
610
|
+
w.current && (w.current.textContent = m(y ? "calendar.privacyModeOn" : "calendar.privacyModeOff"));
|
|
609
611
|
}, [y, m]);
|
|
610
|
-
const
|
|
612
|
+
const yt = u(
|
|
611
613
|
() => s.map((e) => ({
|
|
612
614
|
id: e.id,
|
|
613
615
|
title: e.title,
|
|
@@ -630,6 +632,9 @@ const Fe = Le(
|
|
|
630
632
|
IS how they pick the slot, so it stays editable even on a
|
|
631
633
|
read-only calendar. The consumer's own `editable` still wins. */
|
|
632
634
|
...e.isDraft ? { editable: !0 } : {},
|
|
635
|
+
/* A block whose owner is still loading cannot be moved, by drag
|
|
636
|
+
or by resource (Scheduler reads that option separately). */
|
|
637
|
+
...e.detailsPending ? { editable: !1, resourceEditable: !1 } : {},
|
|
633
638
|
/* Scheduler separately falls back to the global editable option
|
|
634
639
|
for resource moves. A pinned event must refuse those too. */
|
|
635
640
|
...e.editable !== void 0 ? { editable: e.editable, resourceEditable: e.editable } : {},
|
|
@@ -658,29 +663,30 @@ const Fe = Le(
|
|
|
658
663
|
isInternal: e.isInternal ?? !1,
|
|
659
664
|
isTask: e.isTask ?? !1,
|
|
660
665
|
isDraft: e.isDraft ?? !1,
|
|
666
|
+
detailsPending: e.detailsPending ?? !1,
|
|
661
667
|
patientId: e.patientId,
|
|
662
668
|
operatorId: e.operatorId
|
|
663
669
|
}
|
|
664
670
|
})),
|
|
665
671
|
[s]
|
|
666
|
-
),
|
|
672
|
+
), bt = u(
|
|
667
673
|
() => ({
|
|
668
674
|
year: "numeric",
|
|
669
675
|
month: "long"
|
|
670
676
|
}),
|
|
671
677
|
[]
|
|
672
|
-
),
|
|
678
|
+
), Tt = u(
|
|
673
679
|
() => ({
|
|
674
680
|
weekday: "short"
|
|
675
681
|
}),
|
|
676
682
|
[]
|
|
677
|
-
),
|
|
683
|
+
), Dt = u(
|
|
678
684
|
() => ({
|
|
679
685
|
hour: "numeric",
|
|
680
686
|
minute: "2-digit"
|
|
681
687
|
}),
|
|
682
688
|
[]
|
|
683
|
-
),
|
|
689
|
+
), xt = u(
|
|
684
690
|
() => ({
|
|
685
691
|
hour: "2-digit",
|
|
686
692
|
minute: "2-digit",
|
|
@@ -689,96 +695,112 @@ const Fe = Le(
|
|
|
689
695
|
hour12: !1
|
|
690
696
|
}),
|
|
691
697
|
[]
|
|
692
|
-
),
|
|
698
|
+
), E = u(
|
|
699
|
+
() => new Set(Re ?? []),
|
|
700
|
+
[Re]
|
|
701
|
+
), pe = p(E);
|
|
702
|
+
pe.current = E;
|
|
703
|
+
const ve = p(!1), Ct = h(
|
|
693
704
|
(e) => {
|
|
694
|
-
const t = new Intl.DateTimeFormat(
|
|
705
|
+
const t = new Intl.DateTimeFormat(R, {
|
|
695
706
|
weekday: "short"
|
|
696
707
|
}).format(e.date);
|
|
697
708
|
if (e.view.type === "dayGridMonth" || e.view.type.startsWith("list"))
|
|
698
709
|
return t;
|
|
699
|
-
const r = new Intl.DateTimeFormat(
|
|
710
|
+
const r = new Intl.DateTimeFormat(R, {
|
|
700
711
|
day: "numeric"
|
|
701
712
|
}).format(e.date);
|
|
702
|
-
return /* @__PURE__ */
|
|
703
|
-
/* @__PURE__ */
|
|
704
|
-
/* @__PURE__ */
|
|
713
|
+
return /* @__PURE__ */ P("span", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)]", children: [
|
|
714
|
+
/* @__PURE__ */ d("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: t }),
|
|
715
|
+
/* @__PURE__ */ d(
|
|
705
716
|
"span",
|
|
706
717
|
{
|
|
707
718
|
className: e.isToday ? "ds:flex ds:size-7 ds:items-center ds:justify-center ds:rounded-full ds:bg-[var(--primary)] ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:leading-none ds:text-[color:var(--primary-foreground)]" : "ds:text-[length:var(--font-size-sm)] ds:font-[var(--font-weight-semibold)] ds:leading-none",
|
|
708
719
|
children: r
|
|
709
720
|
}
|
|
710
|
-
)
|
|
721
|
+
),
|
|
722
|
+
E.has(F(e.date)) ? /* @__PURE__ */ d(vr, { children: m("calendar.loadingDay") }) : null
|
|
711
723
|
] });
|
|
712
724
|
},
|
|
713
|
-
[
|
|
714
|
-
),
|
|
715
|
-
() => typeof
|
|
716
|
-
[
|
|
717
|
-
),
|
|
725
|
+
[R, E, m]
|
|
726
|
+
), Fe = u(
|
|
727
|
+
() => typeof q == "number" ? { minutes: q } : q,
|
|
728
|
+
[q]
|
|
729
|
+
), he = u(
|
|
718
730
|
() => N ? N.split(/\s+/).filter(Boolean) : void 0,
|
|
719
731
|
[N]
|
|
720
|
-
),
|
|
721
|
-
if (
|
|
722
|
-
return
|
|
723
|
-
}, [
|
|
724
|
-
() =>
|
|
725
|
-
[o,
|
|
726
|
-
),
|
|
727
|
-
|
|
728
|
-
const
|
|
732
|
+
), wt = u(() => {
|
|
733
|
+
if (H !== void 0)
|
|
734
|
+
return H === "chairs" ? m("calendar.resourceLabel.chairs") : H === "operators" ? m("calendar.resourceLabel.operators") : H;
|
|
735
|
+
}, [H, m]), se = u(
|
|
736
|
+
() => kr(o, le),
|
|
737
|
+
[o, le]
|
|
738
|
+
), L = p(se);
|
|
739
|
+
L.current = se;
|
|
740
|
+
const ge = p(!1), At = h(
|
|
729
741
|
(e) => {
|
|
730
|
-
const t =
|
|
731
|
-
if (!
|
|
732
|
-
return
|
|
733
|
-
const
|
|
734
|
-
return
|
|
735
|
-
`${
|
|
736
|
-
) ? [
|
|
742
|
+
const t = E.has(F(e.date)) ? [Ar] : [], r = L.current;
|
|
743
|
+
if (!r.active || !e.view.type.startsWith("resourceTimeGrid"))
|
|
744
|
+
return t;
|
|
745
|
+
const i = e.resource;
|
|
746
|
+
return i != null && i.id && r.hiddenCells.has(
|
|
747
|
+
`${i.id}:${F(e.date)}`
|
|
748
|
+
) ? [...t, xe] : t;
|
|
737
749
|
},
|
|
738
|
-
[]
|
|
739
|
-
),
|
|
750
|
+
[E]
|
|
751
|
+
), kt = h(
|
|
740
752
|
(e) => {
|
|
741
|
-
const t =
|
|
753
|
+
const t = L.current;
|
|
742
754
|
if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
|
|
743
755
|
return [];
|
|
744
756
|
const r = e.date ?? e.view.currentStart;
|
|
745
757
|
return t.hiddenCells.has(
|
|
746
|
-
`${e.resource.id}:${
|
|
747
|
-
) ? [
|
|
758
|
+
`${e.resource.id}:${F(r)}`
|
|
759
|
+
) ? [xe] : [];
|
|
748
760
|
},
|
|
749
761
|
[]
|
|
750
|
-
),
|
|
762
|
+
), It = h(
|
|
751
763
|
(e) => {
|
|
752
|
-
const t =
|
|
753
|
-
return !t.active || !e.view.type.startsWith("resourceTimeGrid") ? [] : (t.hiddenCountByDate.get(
|
|
764
|
+
const t = L.current;
|
|
765
|
+
return !t.active || !e.view.type.startsWith("resourceTimeGrid") ? [] : (t.hiddenCountByDate.get(F(e.date)) ?? 0) >= t.resourceCount ? [xe] : [];
|
|
754
766
|
},
|
|
755
767
|
[]
|
|
756
|
-
),
|
|
757
|
-
const t =
|
|
768
|
+
), St = h((e) => {
|
|
769
|
+
const t = L.current;
|
|
758
770
|
if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
|
|
759
771
|
return;
|
|
760
772
|
const r = e.el;
|
|
761
773
|
if (!(r instanceof HTMLTableCellElement) || !r.classList.contains("fc-day")) return;
|
|
762
774
|
const i = r.getAttribute("data-date");
|
|
763
775
|
if (!i) return;
|
|
764
|
-
const a = t.hiddenCountByDate.get(i) ?? 0,
|
|
765
|
-
r.colSpan !==
|
|
766
|
-
}, []),
|
|
767
|
-
const e =
|
|
768
|
-
if (!e || !
|
|
769
|
-
const t =
|
|
770
|
-
!t.active && !
|
|
776
|
+
const a = t.hiddenCountByDate.get(i) ?? 0, l = Math.max(1, t.resourceCount - a);
|
|
777
|
+
r.colSpan !== l && (r.colSpan = l, ge.current = !0);
|
|
778
|
+
}, []), $ = h(() => {
|
|
779
|
+
const e = k.current;
|
|
780
|
+
if (!e || !Le.current.startsWith("resourceTimeGrid")) return;
|
|
781
|
+
const t = L.current;
|
|
782
|
+
!t.active && !ge.current || (e.querySelectorAll(
|
|
771
783
|
"th.fc-col-header-cell.fc-day[data-date]"
|
|
772
784
|
).forEach((r) => {
|
|
773
785
|
const i = r.getAttribute("data-date");
|
|
774
786
|
if (!i) return;
|
|
775
|
-
const a = t.active ? t.hiddenCountByDate.get(i) ?? 0 : 0,
|
|
776
|
-
r.colSpan !==
|
|
777
|
-
}),
|
|
787
|
+
const a = t.active ? t.hiddenCountByDate.get(i) ?? 0 : 0, l = Math.max(1, t.resourceCount - a);
|
|
788
|
+
r.colSpan !== l && (r.colSpan = l);
|
|
789
|
+
}), ge.current = t.active);
|
|
790
|
+
}, []), K = h(() => {
|
|
791
|
+
const e = k.current;
|
|
792
|
+
if (!e) return;
|
|
793
|
+
const t = pe.current;
|
|
794
|
+
t.size === 0 && !ve.current || (e.querySelectorAll("td.fc-day[data-date]").forEach((r) => {
|
|
795
|
+
const i = r.getAttribute("data-date");
|
|
796
|
+
i && t.has(i) ? r.setAttribute("aria-busy", "true") : r.removeAttribute("aria-busy");
|
|
797
|
+
}), ve.current = t.size > 0);
|
|
798
|
+
}, []), Rt = h((e) => {
|
|
799
|
+
pe.current.has(F(e.date)) && (e.el.setAttribute("aria-busy", "true"), ve.current = !0);
|
|
778
800
|
}, []);
|
|
779
801
|
v(() => {
|
|
780
|
-
}, [s,
|
|
781
|
-
const
|
|
802
|
+
}, [s, se]);
|
|
803
|
+
const O = (e) => {
|
|
782
804
|
const t = e.extendedProps ?? {};
|
|
783
805
|
return {
|
|
784
806
|
id: e.id,
|
|
@@ -807,97 +829,98 @@ const Fe = Le(
|
|
|
807
829
|
patientId: t.patientId,
|
|
808
830
|
operatorId: t.operatorId
|
|
809
831
|
};
|
|
810
|
-
},
|
|
811
|
-
if (
|
|
832
|
+
}, Et = u(() => {
|
|
833
|
+
if (g)
|
|
812
834
|
return (e) => {
|
|
813
835
|
var r, i;
|
|
814
836
|
if (!e.event.start) return;
|
|
815
837
|
const t = e.oldEvent.start;
|
|
816
|
-
if (t && (
|
|
817
|
-
event:
|
|
838
|
+
if (t && (g({
|
|
839
|
+
event: O(e.event),
|
|
818
840
|
oldStart: t,
|
|
819
841
|
newStart: e.event.start,
|
|
820
842
|
oldResourceId: (r = e.oldResource) == null ? void 0 : r.id,
|
|
821
843
|
newResourceId: (i = e.newResource) == null ? void 0 : i.id,
|
|
822
844
|
revert: e.revert
|
|
823
|
-
}),
|
|
824
|
-
const a = e.event.extendedProps ?? {},
|
|
825
|
-
|
|
826
|
-
title:
|
|
845
|
+
}), w.current)) {
|
|
846
|
+
const a = e.event.extendedProps ?? {}, l = y ? a.privacyModeTitle ?? "•••" : e.event.title;
|
|
847
|
+
w.current.textContent = m("calendar.eventMoved", {
|
|
848
|
+
title: l
|
|
827
849
|
});
|
|
828
850
|
}
|
|
829
851
|
};
|
|
830
|
-
}, [
|
|
831
|
-
if (
|
|
852
|
+
}, [g, y, m]), Pt = u(() => {
|
|
853
|
+
if (A)
|
|
832
854
|
return (e) => {
|
|
833
855
|
if (!e.event.end) return;
|
|
834
856
|
const t = e.oldEvent.end;
|
|
835
857
|
if (!t)
|
|
836
858
|
return;
|
|
837
859
|
const r = e.event.end, i = e.event.start ?? e.oldEvent.start ?? t;
|
|
838
|
-
if (
|
|
839
|
-
event:
|
|
860
|
+
if (A({
|
|
861
|
+
event: O(e.event),
|
|
840
862
|
oldEnd: t,
|
|
841
863
|
newEnd: r,
|
|
842
864
|
revert: e.revert
|
|
843
|
-
}),
|
|
865
|
+
}), w.current) {
|
|
844
866
|
const a = Math.round(
|
|
845
867
|
(r.getTime() - i.getTime()) / 6e4
|
|
846
|
-
),
|
|
847
|
-
|
|
868
|
+
), l = e.event.extendedProps ?? {}, b = y ? l.privacyModeTitle ?? "•••" : e.event.title;
|
|
869
|
+
w.current.textContent = m("calendar.eventResized", {
|
|
848
870
|
title: b,
|
|
849
871
|
duration: a
|
|
850
872
|
});
|
|
851
873
|
}
|
|
852
874
|
};
|
|
853
|
-
}, [
|
|
854
|
-
if (
|
|
875
|
+
}, [A, y, m]), Nt = u(() => {
|
|
876
|
+
if (D)
|
|
855
877
|
return (e) => {
|
|
856
|
-
e.event.start
|
|
878
|
+
!e.event.start || (e.event.extendedProps ?? {}).detailsPending || (Ge.current = e.jsEvent, D(O(e.event), {
|
|
857
879
|
el: e.el,
|
|
858
880
|
jsEvent: e.jsEvent
|
|
859
881
|
}));
|
|
860
882
|
};
|
|
861
|
-
}, [
|
|
862
|
-
if (
|
|
883
|
+
}, [D]), Gt = u(() => {
|
|
884
|
+
if (W)
|
|
863
885
|
return (e) => {
|
|
864
|
-
|
|
865
|
-
|
|
886
|
+
if (!e.event.start || e.event.display === "background") return;
|
|
887
|
+
const t = e.event.extendedProps ?? {};
|
|
888
|
+
t.isDraft || t.detailsPending || W(O(e.event), {
|
|
866
889
|
el: e.el,
|
|
867
890
|
jsEvent: e.jsEvent
|
|
868
|
-
})
|
|
891
|
+
});
|
|
869
892
|
};
|
|
870
|
-
}, [
|
|
871
|
-
if (
|
|
893
|
+
}, [W]), Mt = u(() => {
|
|
894
|
+
if (j)
|
|
872
895
|
return (e) => {
|
|
873
|
-
e.event.start && e.event.display !== "background" &&
|
|
896
|
+
e.event.start && e.event.display !== "background" && j(O(e.event));
|
|
874
897
|
};
|
|
875
|
-
}, [
|
|
876
|
-
if (
|
|
898
|
+
}, [j]), Bt = u(() => {
|
|
899
|
+
if (_)
|
|
877
900
|
return (e) => {
|
|
878
901
|
var t;
|
|
879
|
-
|
|
902
|
+
_({
|
|
880
903
|
start: e.start,
|
|
881
904
|
end: e.end,
|
|
882
905
|
allDay: e.allDay,
|
|
883
906
|
resourceId: (t = e.resource) == null ? void 0 : t.id
|
|
884
907
|
});
|
|
885
908
|
};
|
|
886
|
-
}, [
|
|
887
|
-
if (
|
|
909
|
+
}, [_]), Lt = u(() => {
|
|
910
|
+
if (x)
|
|
888
911
|
return (e) => {
|
|
889
912
|
var r;
|
|
890
|
-
const t =
|
|
891
|
-
t !== 0 &&
|
|
913
|
+
const t = ie.current.id;
|
|
914
|
+
t !== 0 && Be.current === t || (t !== 0 && (Me.current = t), x({
|
|
892
915
|
date: e.date,
|
|
893
916
|
allDay: e.allDay,
|
|
894
917
|
resourceId: (r = e.resource) == null ? void 0 : r.id
|
|
895
918
|
}));
|
|
896
919
|
};
|
|
897
|
-
}, [
|
|
920
|
+
}, [x]), Ot = h(
|
|
898
921
|
(e) => {
|
|
899
|
-
|
|
900
|
-
view:
|
|
922
|
+
ht(e.view.title), gt(e.view.type), S == null || S({
|
|
923
|
+
view: c,
|
|
901
924
|
internalView: e.view.type,
|
|
902
925
|
start: e.start,
|
|
903
926
|
end: e.end,
|
|
@@ -905,105 +928,105 @@ const Fe = Le(
|
|
|
905
928
|
tick, which fires before fcRef is guaranteed to be assigned. */
|
|
906
929
|
currentDate: e.view.calendar.getDate(),
|
|
907
930
|
title: e.view.title
|
|
908
|
-
}),
|
|
931
|
+
}), $(), K();
|
|
909
932
|
},
|
|
910
|
-
[
|
|
911
|
-
),
|
|
933
|
+
[S, c, $, K]
|
|
934
|
+
), Ft = u(() => wr(R), [R]), zt = u(
|
|
912
935
|
() => [
|
|
913
|
-
|
|
914
|
-
Yt,
|
|
915
|
-
Xt,
|
|
936
|
+
er,
|
|
916
937
|
tr,
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
938
|
+
rr,
|
|
939
|
+
or,
|
|
940
|
+
nr,
|
|
941
|
+
ir,
|
|
942
|
+
ar,
|
|
943
|
+
sr
|
|
921
944
|
],
|
|
922
945
|
[]
|
|
923
|
-
),
|
|
924
|
-
() =>
|
|
925
|
-
[
|
|
946
|
+
), Wt = u(
|
|
947
|
+
() => Te(c, V),
|
|
948
|
+
[c, V]
|
|
926
949
|
);
|
|
927
950
|
v(() => {
|
|
928
|
-
const e =
|
|
951
|
+
const e = k.current;
|
|
929
952
|
if (!e) return;
|
|
930
953
|
const t = (r) => {
|
|
931
|
-
|
|
932
|
-
id:
|
|
954
|
+
ie.current = {
|
|
955
|
+
id: ie.current.id + 1,
|
|
933
956
|
x: r.clientX,
|
|
934
957
|
y: r.clientY
|
|
935
958
|
};
|
|
936
959
|
};
|
|
937
960
|
return e.addEventListener("pointerdown", t, !0), () => e.removeEventListener("pointerdown", t, !0);
|
|
938
961
|
}, []), v(() => {
|
|
939
|
-
const e =
|
|
940
|
-
if (!e || !
|
|
962
|
+
const e = k.current;
|
|
963
|
+
if (!e || !B.startsWith("resourceTimeGrid") || !x && !D) return;
|
|
941
964
|
const t = (r) => {
|
|
942
|
-
var
|
|
943
|
-
if (r ===
|
|
965
|
+
var X;
|
|
966
|
+
if (r === Ge.current) return;
|
|
944
967
|
const i = r.target;
|
|
945
968
|
if (!(i instanceof Element) || i.closest(
|
|
946
969
|
".fc-more-link, a[data-navlink], .fc-popover, .fc-event-mirror"
|
|
947
970
|
))
|
|
948
971
|
return;
|
|
949
|
-
const a =
|
|
950
|
-
if (a.id !== 0 && (Math.abs(r.clientX - a.x) >
|
|
972
|
+
const a = ie.current;
|
|
973
|
+
if (a.id !== 0 && (Math.abs(r.clientX - a.x) > De || Math.abs(r.clientY - a.y) > De))
|
|
951
974
|
return;
|
|
952
|
-
const
|
|
953
|
-
if (!
|
|
975
|
+
const l = i.closest("td.fc-daygrid-day[data-date]");
|
|
976
|
+
if (!l) return;
|
|
954
977
|
const b = i.closest("[data-event-id]");
|
|
955
978
|
if (b) {
|
|
956
|
-
if (!
|
|
957
|
-
const
|
|
958
|
-
if (!
|
|
959
|
-
const
|
|
960
|
-
if (
|
|
961
|
-
const
|
|
962
|
-
|
|
979
|
+
if (!D) return;
|
|
980
|
+
const J = b.getAttribute("data-event-id"), ye = (X = C.current) == null ? void 0 : X.getApi(), oe = J ? ye == null ? void 0 : ye.getEventById(J) : null;
|
|
981
|
+
if (!oe || !oe.start) return;
|
|
982
|
+
const be = oe.extendedProps ?? {};
|
|
983
|
+
if (be.isInternal || be.isDraft || be.detailsPending) return;
|
|
984
|
+
const Jt = i.closest(".fc-event") ?? b;
|
|
985
|
+
D(O(oe), { el: Jt, jsEvent: r });
|
|
963
986
|
return;
|
|
964
987
|
}
|
|
965
|
-
if (!
|
|
988
|
+
if (!x || a.id !== 0 && Me.current === a.id)
|
|
966
989
|
return;
|
|
967
|
-
const
|
|
968
|
-
if (!
|
|
969
|
-
const
|
|
970
|
-
Number.isNaN(
|
|
971
|
-
date:
|
|
990
|
+
const U = l.getAttribute("data-date");
|
|
991
|
+
if (!U) return;
|
|
992
|
+
const Y = /* @__PURE__ */ new Date(`${U}T00:00:00`);
|
|
993
|
+
Number.isNaN(Y.getTime()) || (a.id !== 0 && (Be.current = a.id), x({
|
|
994
|
+
date: Y,
|
|
972
995
|
allDay: !0,
|
|
973
|
-
resourceId:
|
|
996
|
+
resourceId: l.getAttribute("data-resource-id") ?? void 0
|
|
974
997
|
}));
|
|
975
998
|
};
|
|
976
999
|
return e.addEventListener("click", t), () => e.removeEventListener("click", t);
|
|
977
|
-
}, [
|
|
978
|
-
const
|
|
1000
|
+
}, [B, x, D]);
|
|
1001
|
+
const jt = h(
|
|
979
1002
|
(e) => {
|
|
980
|
-
const t = e.resource.extendedProps, r = e.resource.title, i = t.color, a = t.shortTitleTextColor,
|
|
1003
|
+
const t = e.resource.extendedProps, r = e.resource.title, i = t.color, a = t.shortTitleTextColor, l = i || a ? {
|
|
981
1004
|
...i ? { "--resource-color": i } : {},
|
|
982
1005
|
...a ? {
|
|
983
1006
|
"--resource-initials-text-color": a
|
|
984
1007
|
} : {}
|
|
985
1008
|
} : void 0;
|
|
986
|
-
return
|
|
987
|
-
|
|
1009
|
+
return Pe === "chip" && !ue ? /* @__PURE__ */ d(
|
|
1010
|
+
fr,
|
|
988
1011
|
{
|
|
989
1012
|
label: r,
|
|
990
1013
|
color: i,
|
|
991
|
-
orientation:
|
|
1014
|
+
orientation: me ? "vertical" : "horizontal"
|
|
992
1015
|
}
|
|
993
|
-
) :
|
|
994
|
-
/* @__PURE__ */
|
|
1016
|
+
) : ue ? /* @__PURE__ */ d(pr, { label: r, children: /* @__PURE__ */ d(mr, { size: "sm", name: r, src: t.avatarSrc }) }) : i ? (i && a && lr(i, a, `resource ${e.resource.id}`), /* @__PURE__ */ P("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1017
|
+
/* @__PURE__ */ d(
|
|
995
1018
|
"span",
|
|
996
1019
|
{
|
|
997
1020
|
className: "resource-dot ds:[background-color:var(--resource-color)]",
|
|
998
|
-
style:
|
|
1021
|
+
style: l,
|
|
999
1022
|
"aria-hidden": "true"
|
|
1000
1023
|
}
|
|
1001
1024
|
),
|
|
1002
|
-
/* @__PURE__ */
|
|
1003
|
-
] })) : /* @__PURE__ */
|
|
1025
|
+
/* @__PURE__ */ d("span", { className: "ds:truncate ds:text-start", children: r })
|
|
1026
|
+
] })) : /* @__PURE__ */ d("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: /* @__PURE__ */ d("span", { className: "ds:truncate ds:text-start", children: r }) });
|
|
1004
1027
|
},
|
|
1005
|
-
[
|
|
1006
|
-
),
|
|
1028
|
+
[ue, Pe, me]
|
|
1029
|
+
), ze = u(
|
|
1007
1030
|
() => o == null ? void 0 : o.map((e) => ({
|
|
1008
1031
|
id: e.id,
|
|
1009
1032
|
title: e.title,
|
|
@@ -1019,30 +1042,34 @@ const Fe = Le(
|
|
|
1019
1042
|
[o]
|
|
1020
1043
|
);
|
|
1021
1044
|
v(() => {
|
|
1022
|
-
|
|
1023
|
-
const e = requestAnimationFrame(
|
|
1045
|
+
$();
|
|
1046
|
+
const e = requestAnimationFrame($);
|
|
1024
1047
|
return () => cancelAnimationFrame(e);
|
|
1025
|
-
}, [
|
|
1026
|
-
|
|
1048
|
+
}, [se, ze, B, $]), v(() => {
|
|
1049
|
+
K();
|
|
1050
|
+
const e = requestAnimationFrame(K);
|
|
1051
|
+
return () => cancelAnimationFrame(e);
|
|
1052
|
+
}, [E, B, K]);
|
|
1053
|
+
const _t = h(() => {
|
|
1027
1054
|
var e, t;
|
|
1028
|
-
(t = (e =
|
|
1029
|
-
}, []),
|
|
1055
|
+
(t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.today();
|
|
1056
|
+
}, []), Vt = h(() => {
|
|
1030
1057
|
var e, t;
|
|
1031
|
-
(t = (e =
|
|
1032
|
-
}, []),
|
|
1058
|
+
(t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.prev();
|
|
1059
|
+
}, []), Ht = h(() => {
|
|
1033
1060
|
var e, t;
|
|
1034
|
-
(t = (e =
|
|
1035
|
-
}, []),
|
|
1061
|
+
(t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.next();
|
|
1062
|
+
}, []), qt = u(
|
|
1036
1063
|
() => s.some((e) => e.isDraft),
|
|
1037
1064
|
[s]
|
|
1038
|
-
),
|
|
1065
|
+
), $t = [
|
|
1039
1066
|
"fc-theme-alfadocs",
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1067
|
+
ut ? "calendar-zebra-rows" : null,
|
|
1068
|
+
me ? "calendar-vertical-resource-labels" : null,
|
|
1069
|
+
ct ? "calendar-availability-mode" : null,
|
|
1043
1070
|
/* Composing: derived from the events themselves rather than a prop,
|
|
1044
1071
|
so the dim can never disagree with what is on the grid. */
|
|
1045
|
-
|
|
1072
|
+
qt ? "calendar-composing-mode" : null,
|
|
1046
1073
|
"ds:bg-background ds:text-foreground",
|
|
1047
1074
|
/* The radius has to CLIP, not just round the box. FullCalendar draws the
|
|
1048
1075
|
grid as a table with its own border, and that border squares off the
|
|
@@ -1059,11 +1086,11 @@ const Fe = Le(
|
|
|
1059
1086
|
box, so the bridge zeroes FullCalendar's outer borders and this
|
|
1060
1087
|
border follows the radius instead. */
|
|
1061
1088
|
"ds:rounded-[var(--radius-md)] ds:border ds:border-[var(--border)] ds:overflow-clip",
|
|
1062
|
-
|
|
1063
|
-
].filter(Boolean).join(" "),
|
|
1064
|
-
...
|
|
1065
|
-
...
|
|
1066
|
-
} : void 0,
|
|
1089
|
+
Ue
|
|
1090
|
+
].filter(Boolean).join(" "), Kt = re || ne ? {
|
|
1091
|
+
...re ? { "--calendar-mode-bg": re } : {},
|
|
1092
|
+
...ne ? { "--calendar-mode-fg": ne } : {}
|
|
1093
|
+
} : void 0, Ut = te !== "default" ? Xe ?? m(Cr[te]) : "", Yt = [
|
|
1067
1094
|
"ds:sticky ds:top-0 ds:z-10",
|
|
1068
1095
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1069
1096
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
@@ -1071,9 +1098,9 @@ const Fe = Le(
|
|
|
1071
1098
|
/* Caller-supplied colours flow through CSS custom properties set
|
|
1072
1099
|
in `modeBannerStyle`; fallback tokens apply when the caller
|
|
1073
1100
|
doesn't supply a hex. */
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
].filter(Boolean).join(" "),
|
|
1101
|
+
re ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
|
|
1102
|
+
ne ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
|
|
1103
|
+
].filter(Boolean).join(" "), Xt = [
|
|
1077
1104
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
1078
1105
|
"ds:min-h-[var(--min-target-size)]",
|
|
1079
1106
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
@@ -1088,143 +1115,144 @@ const Fe = Le(
|
|
|
1088
1115
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1089
1116
|
"ds:motion-reduce:transition-none"
|
|
1090
1117
|
].join(" ");
|
|
1091
|
-
return /* @__PURE__ */
|
|
1118
|
+
return /* @__PURE__ */ P(
|
|
1092
1119
|
"div",
|
|
1093
1120
|
{
|
|
1094
|
-
ref:
|
|
1095
|
-
className:
|
|
1121
|
+
ref: k,
|
|
1122
|
+
className: $t,
|
|
1096
1123
|
role: "region",
|
|
1097
1124
|
"aria-label": m("calendar.ariaLabel"),
|
|
1098
1125
|
"data-component": "calendar",
|
|
1099
1126
|
"data-component-id": n,
|
|
1100
|
-
"data-mode":
|
|
1127
|
+
"data-mode": te,
|
|
1101
1128
|
children: [
|
|
1102
|
-
/* @__PURE__ */
|
|
1129
|
+
/* @__PURE__ */ d(
|
|
1103
1130
|
"div",
|
|
1104
1131
|
{
|
|
1105
|
-
ref:
|
|
1132
|
+
ref: w,
|
|
1106
1133
|
"aria-live": "polite",
|
|
1107
1134
|
"aria-atomic": "true",
|
|
1108
1135
|
className: ["ds:sr-only", N].filter(Boolean).join(" ")
|
|
1109
1136
|
}
|
|
1110
1137
|
),
|
|
1111
|
-
|
|
1112
|
-
|
|
1138
|
+
Je,
|
|
1139
|
+
te !== "default" ? /* @__PURE__ */ P(
|
|
1113
1140
|
"div",
|
|
1114
1141
|
{
|
|
1115
|
-
className:
|
|
1116
|
-
style:
|
|
1142
|
+
className: Yt,
|
|
1143
|
+
style: Kt,
|
|
1117
1144
|
role: "status",
|
|
1118
1145
|
children: [
|
|
1119
|
-
/* @__PURE__ */
|
|
1146
|
+
/* @__PURE__ */ d(
|
|
1120
1147
|
"span",
|
|
1121
1148
|
{
|
|
1122
1149
|
className: ["ds:flex-1 ds:text-start", N].filter(Boolean).join(" "),
|
|
1123
|
-
children:
|
|
1150
|
+
children: Ut
|
|
1124
1151
|
}
|
|
1125
1152
|
),
|
|
1126
|
-
|
|
1153
|
+
Ie ? /* @__PURE__ */ d(
|
|
1127
1154
|
"button",
|
|
1128
1155
|
{
|
|
1129
1156
|
type: "button",
|
|
1130
|
-
onClick:
|
|
1131
|
-
className:
|
|
1157
|
+
onClick: Ie,
|
|
1158
|
+
className: Xt,
|
|
1132
1159
|
children: m("calendar.modeBanner.cancel")
|
|
1133
1160
|
}
|
|
1134
1161
|
) : null
|
|
1135
1162
|
]
|
|
1136
1163
|
}
|
|
1137
1164
|
) : null,
|
|
1138
|
-
|
|
1139
|
-
|
|
1165
|
+
ot !== !1 ? /* @__PURE__ */ d(
|
|
1166
|
+
we,
|
|
1140
1167
|
{
|
|
1141
|
-
title:
|
|
1142
|
-
onToday:
|
|
1143
|
-
onPrev:
|
|
1144
|
-
onNext:
|
|
1145
|
-
end:
|
|
1168
|
+
title: vt,
|
|
1169
|
+
onToday: _t,
|
|
1170
|
+
onPrev: Vt,
|
|
1171
|
+
onNext: Ht,
|
|
1172
|
+
end: dt,
|
|
1146
1173
|
maskClassName: N
|
|
1147
1174
|
}
|
|
1148
1175
|
) : null,
|
|
1149
|
-
/* @__PURE__ */
|
|
1150
|
-
|
|
1176
|
+
/* @__PURE__ */ d(
|
|
1177
|
+
Qt,
|
|
1151
1178
|
{
|
|
1152
|
-
ref:
|
|
1153
|
-
plugins:
|
|
1154
|
-
schedulerLicenseKey:
|
|
1155
|
-
initialView:
|
|
1156
|
-
views:
|
|
1179
|
+
ref: C,
|
|
1180
|
+
plugins: zt,
|
|
1181
|
+
schedulerLicenseKey: st,
|
|
1182
|
+
initialView: Wt,
|
|
1183
|
+
views: xr,
|
|
1157
1184
|
initialDate: f,
|
|
1158
|
-
locale:
|
|
1159
|
-
direction:
|
|
1160
|
-
firstDay:
|
|
1161
|
-
editable:
|
|
1162
|
-
eventDurationEditable:
|
|
1163
|
-
selectable:
|
|
1164
|
-
selectMirror:
|
|
1165
|
-
...
|
|
1166
|
-
droppable:
|
|
1167
|
-
dayMaxEvents:
|
|
1168
|
-
height:
|
|
1185
|
+
locale: R,
|
|
1186
|
+
direction: ft,
|
|
1187
|
+
firstDay: Ft,
|
|
1188
|
+
editable: ee,
|
|
1189
|
+
eventDurationEditable: ee === !1 ? !1 : qe ?? ee,
|
|
1190
|
+
selectable: Ae,
|
|
1191
|
+
selectMirror: $e ?? Ae,
|
|
1192
|
+
...ke === void 0 ? {} : { unselectAuto: ke },
|
|
1193
|
+
droppable: ee,
|
|
1194
|
+
dayMaxEvents: at,
|
|
1195
|
+
height: Ke,
|
|
1169
1196
|
expandRows: !0,
|
|
1170
|
-
events:
|
|
1171
|
-
resources:
|
|
1197
|
+
events: yt,
|
|
1198
|
+
resources: ze,
|
|
1172
1199
|
resourceOrder: "sequenceNumber",
|
|
1173
|
-
resourceLabelContent:
|
|
1174
|
-
resourceAreaWidth:
|
|
1175
|
-
resourceAreaHeaderContent:
|
|
1176
|
-
dayCellClassNames:
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1200
|
+
resourceLabelContent: jt,
|
|
1201
|
+
resourceAreaWidth: lt,
|
|
1202
|
+
resourceAreaHeaderContent: wt,
|
|
1203
|
+
dayCellClassNames: At,
|
|
1204
|
+
dayCellDidMount: Rt,
|
|
1205
|
+
dayHeaderClassNames: It,
|
|
1206
|
+
resourceLabelClassNames: kt,
|
|
1207
|
+
dayHeaderDidMount: St,
|
|
1208
|
+
...he ? { slotLaneClassNames: he } : {},
|
|
1181
1209
|
eventClassNames: (e) => {
|
|
1182
1210
|
var t;
|
|
1183
1211
|
return [
|
|
1184
|
-
...
|
|
1185
|
-
...
|
|
1212
|
+
...he ?? [],
|
|
1213
|
+
...Ne && e.event.id === Ne ? ["calendar-event-selected"] : [],
|
|
1186
1214
|
...(t = e.event.extendedProps) != null && t.isDraft ? ["calendar-event-draft"] : []
|
|
1187
1215
|
];
|
|
1188
1216
|
},
|
|
1189
1217
|
headerToolbar: !1,
|
|
1190
1218
|
allDayText: m("calendar.allDay"),
|
|
1191
1219
|
noEventsText: m("calendar.noEvents"),
|
|
1192
|
-
titleFormat:
|
|
1193
|
-
dayHeaderFormat:
|
|
1194
|
-
dayHeaderContent:
|
|
1195
|
-
eventTimeFormat:
|
|
1196
|
-
slotLabelFormat:
|
|
1197
|
-
slotMinTime:
|
|
1198
|
-
slotMaxTime:
|
|
1199
|
-
slotDuration:
|
|
1200
|
-
...
|
|
1220
|
+
titleFormat: bt,
|
|
1221
|
+
dayHeaderFormat: Tt,
|
|
1222
|
+
dayHeaderContent: Ct,
|
|
1223
|
+
eventTimeFormat: Dt,
|
|
1224
|
+
slotLabelFormat: xt,
|
|
1225
|
+
slotMinTime: Ze ?? "00:00:00",
|
|
1226
|
+
slotMaxTime: Qe ?? "24:00:00",
|
|
1227
|
+
slotDuration: et ?? "00:30:00",
|
|
1228
|
+
...Ee ? { snapDuration: Ee } : {},
|
|
1201
1229
|
slotLabelInterval: "01:00:00",
|
|
1202
|
-
...
|
|
1203
|
-
hiddenDays:
|
|
1204
|
-
datesAboveResources:
|
|
1205
|
-
slotEventOverlap:
|
|
1206
|
-
stickyHeaderDates:
|
|
1207
|
-
nowIndicator:
|
|
1208
|
-
eventLongPressDelay:
|
|
1209
|
-
eventDragMinDistance:
|
|
1230
|
+
...Fe !== void 0 ? { defaultTimedEventDuration: Fe } : {},
|
|
1231
|
+
hiddenDays: Se,
|
|
1232
|
+
datesAboveResources: le,
|
|
1233
|
+
slotEventOverlap: rt,
|
|
1234
|
+
stickyHeaderDates: nt,
|
|
1235
|
+
nowIndicator: it,
|
|
1236
|
+
eventLongPressDelay: ae ? 0 : 1e3,
|
|
1237
|
+
eventDragMinDistance: ae ? 0 : De,
|
|
1210
1238
|
eventContent: (e) => {
|
|
1211
1239
|
var r;
|
|
1212
1240
|
const t = e.event.extendedProps ?? {};
|
|
1213
|
-
return t.isInternal ? e.event.title ? /* @__PURE__ */
|
|
1214
|
-
/* @__PURE__ */
|
|
1241
|
+
return t.isInternal ? e.event.title ? /* @__PURE__ */ P("span", { className: "calendar-bg-event-label", children: [
|
|
1242
|
+
/* @__PURE__ */ d(hr, { size: 12, "aria-hidden": "true" }),
|
|
1215
1243
|
e.event.title
|
|
1216
|
-
] }) : !0 : /* @__PURE__ */
|
|
1217
|
-
|
|
1244
|
+
] }) : !0 : /* @__PURE__ */ d(
|
|
1245
|
+
ur,
|
|
1218
1246
|
{
|
|
1219
1247
|
eventId: e.event.id,
|
|
1220
1248
|
title: y ? t.privacyModeTitle ?? "•••" : e.event.title,
|
|
1221
1249
|
privacyMasked: y,
|
|
1222
1250
|
suffix: t.suffix,
|
|
1223
|
-
rangeText:
|
|
1224
|
-
showTime:
|
|
1251
|
+
rangeText: Sr(e, R),
|
|
1252
|
+
showTime: tt,
|
|
1225
1253
|
allDay: e.event.allDay,
|
|
1226
1254
|
status: t.status,
|
|
1227
|
-
colorStyle:
|
|
1255
|
+
colorStyle: Ye,
|
|
1228
1256
|
backgroundColor: t.backgroundColor,
|
|
1229
1257
|
textColor: t.textColor,
|
|
1230
1258
|
borderColor: t.borderColor,
|
|
@@ -1236,23 +1264,24 @@ const Fe = Le(
|
|
|
1236
1264
|
isRecurring: t.isRecurring,
|
|
1237
1265
|
isTask: t.isTask,
|
|
1238
1266
|
isDraft: t.isDraft,
|
|
1267
|
+
detailsPending: t.detailsPending,
|
|
1239
1268
|
resourceLabel: t.resourceId ? (r = (o ?? []).find((i) => i.id === t.resourceId)) == null ? void 0 : r.title : void 0
|
|
1240
1269
|
}
|
|
1241
1270
|
);
|
|
1242
1271
|
},
|
|
1243
|
-
eventClick:
|
|
1244
|
-
eventMouseEnter:
|
|
1245
|
-
eventMouseLeave:
|
|
1246
|
-
eventDrop:
|
|
1247
|
-
eventResize:
|
|
1248
|
-
eventDragStart:
|
|
1249
|
-
eventResizeStart:
|
|
1250
|
-
select:
|
|
1251
|
-
dateClick:
|
|
1252
|
-
datesSet:
|
|
1253
|
-
...
|
|
1272
|
+
eventClick: Nt,
|
|
1273
|
+
eventMouseEnter: Gt,
|
|
1274
|
+
eventMouseLeave: Mt,
|
|
1275
|
+
eventDrop: Et,
|
|
1276
|
+
eventResize: Pt,
|
|
1277
|
+
eventDragStart: z,
|
|
1278
|
+
eventResizeStart: Z,
|
|
1279
|
+
select: Bt,
|
|
1280
|
+
dateClick: Lt,
|
|
1281
|
+
datesSet: Ot,
|
|
1282
|
+
...Q ? {
|
|
1254
1283
|
navLinks: !0,
|
|
1255
|
-
navLinkDayClick: (e, t) =>
|
|
1284
|
+
navLinkDayClick: (e, t) => Q(e, t)
|
|
1256
1285
|
} : {}
|
|
1257
1286
|
}
|
|
1258
1287
|
)
|
|
@@ -1261,12 +1290,12 @@ const Fe = Le(
|
|
|
1261
1290
|
);
|
|
1262
1291
|
}
|
|
1263
1292
|
);
|
|
1264
|
-
|
|
1265
|
-
const
|
|
1266
|
-
|
|
1293
|
+
He.displayName = "Calendar";
|
|
1294
|
+
const Pr = He;
|
|
1295
|
+
Pr.Toolbar = we;
|
|
1267
1296
|
export {
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1297
|
+
Pr as C,
|
|
1298
|
+
gr as c,
|
|
1299
|
+
Te as r
|
|
1271
1300
|
};
|
|
1272
|
-
//# sourceMappingURL=calendar-
|
|
1301
|
+
//# sourceMappingURL=calendar-K2lLzn4x.js.map
|