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