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