@alfadocs/ui-kit-debug 1.49.1 → 1.50.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/appointment-peek-Dk11UOVW.js +123 -0
- package/dist/_chunks/appointment-peek-Dk11UOVW.js.map +1 -0
- package/dist/_chunks/{booking-BF9pVa2n.js → booking-Cdzd8kyY.js} +1515 -1400
- package/dist/_chunks/booking-Cdzd8kyY.js.map +1 -0
- package/dist/_chunks/calendar-event-card-DplPh1wv.js +600 -0
- package/dist/_chunks/calendar-event-card-DplPh1wv.js.map +1 -0
- package/dist/_chunks/{calendar-workspace-iwyXajja.js → calendar-workspace-CWRH4x15.js} +3937 -3829
- package/dist/_chunks/calendar-workspace-CWRH4x15.js.map +1 -0
- package/dist/_chunks/{calendar-Bt44KMNO.js → calendar-zpE9qTM4.js} +437 -399
- package/dist/_chunks/calendar-zpE9qTM4.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/booking/booking-types.d.ts +36 -0
- package/dist/components/booking/booking-types.d.ts.map +1 -1
- package/dist/components/booking/booking.d.ts +1 -1
- package/dist/components/booking/booking.d.ts.map +1 -1
- package/dist/components/booking/details-form.d.ts +8 -2
- package/dist/components/booking/details-form.d.ts.map +1 -1
- package/dist/components/booking/index.d.ts +1 -1
- package/dist/components/booking/index.d.ts.map +1 -1
- package/dist/components/booking/index.js +1 -1
- package/dist/components/booking/linkify.d.ts +11 -0
- package/dist/components/booking/linkify.d.ts.map +1 -0
- package/dist/components/calendar/calendar.d.ts +15 -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 +46 -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 +5 -5
- 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/booking-BF9pVa2n.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.map +0 -1
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
import { useTranslation as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import { u as
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
1
|
+
import { jsxs as E, 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-DplPh1wv.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
|
+
}, Rr = [
|
|
216
224
|
{ weekday: "short", day: "numeric", month: "short" },
|
|
217
225
|
{ hour: "numeric", minute: "2-digit" }
|
|
218
|
-
],
|
|
226
|
+
], Er = {
|
|
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: Rr },
|
|
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, Nr = {
|
|
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__ */
|
|
345
|
-
/* @__PURE__ */
|
|
346
|
-
/* @__PURE__ */
|
|
370
|
+
].filter(Boolean).join(" "), w = ["ds:flex-1 ds:text-center", y].filter(Boolean).join(" ");
|
|
371
|
+
return /* @__PURE__ */ E("div", { ref: I, className: _, children: [
|
|
372
|
+
/* @__PURE__ */ E("div", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
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
453
|
loadingDates: Re,
|
|
426
|
-
slotMinTime:
|
|
427
|
-
slotMaxTime:
|
|
428
|
-
slotDuration:
|
|
454
|
+
slotMinTime: at,
|
|
455
|
+
slotMaxTime: st,
|
|
456
|
+
slotDuration: ot,
|
|
429
457
|
snapDuration: Ee,
|
|
430
|
-
showTime:
|
|
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
469
|
resourceLabelVariant: Ne = "text",
|
|
442
|
-
verticalResourceLabels:
|
|
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), R = 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 (R.current && (clearTimeout(R.current), R.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
|
+
R.current = setTimeout(() => {
|
|
622
|
+
a.classList.remove("calendar-event-focused"), O.current === a && (O.current = null), R.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
|
+
R.current && (clearTimeout(R.current), R.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,8 @@ 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,
|
|
657
687
|
privacyModeTitle: e.privacyModeTitle,
|
|
658
688
|
isBookedOnline: e.isBookedOnline ?? !1,
|
|
659
689
|
hasUnassignedPatient: e.hasUnassignedPatient ?? !1,
|
|
@@ -672,24 +702,24 @@ const Ue = $e(
|
|
|
672
702
|
}
|
|
673
703
|
})),
|
|
674
704
|
[s]
|
|
675
|
-
),
|
|
705
|
+
), kt = u(
|
|
676
706
|
() => ({
|
|
677
707
|
year: "numeric",
|
|
678
708
|
month: "long"
|
|
679
709
|
}),
|
|
680
710
|
[]
|
|
681
|
-
),
|
|
711
|
+
), It = u(
|
|
682
712
|
() => ({
|
|
683
713
|
weekday: "short"
|
|
684
714
|
}),
|
|
685
715
|
[]
|
|
686
|
-
),
|
|
716
|
+
), St = u(
|
|
687
717
|
() => ({
|
|
688
718
|
hour: "numeric",
|
|
689
719
|
minute: "2-digit"
|
|
690
720
|
}),
|
|
691
721
|
[]
|
|
692
|
-
),
|
|
722
|
+
), Rt = u(
|
|
693
723
|
() => ({
|
|
694
724
|
hour: "2-digit",
|
|
695
725
|
minute: "2-digit",
|
|
@@ -698,78 +728,78 @@ const Ue = $e(
|
|
|
698
728
|
hour12: !1
|
|
699
729
|
}),
|
|
700
730
|
[]
|
|
701
|
-
),
|
|
731
|
+
), N = u(
|
|
702
732
|
() => new Set(Re ?? []),
|
|
703
733
|
[Re]
|
|
704
|
-
), pe =
|
|
705
|
-
pe.current =
|
|
706
|
-
const ve =
|
|
734
|
+
), pe = v(N);
|
|
735
|
+
pe.current = N;
|
|
736
|
+
const ve = v(!1), Et = g(
|
|
707
737
|
(e) => {
|
|
708
|
-
const t = new Intl.DateTimeFormat(
|
|
738
|
+
const t = new Intl.DateTimeFormat(k, {
|
|
709
739
|
weekday: "short"
|
|
710
740
|
}).format(e.date);
|
|
711
741
|
if (e.view.type === "dayGridMonth" || e.view.type.startsWith("list"))
|
|
712
742
|
return t;
|
|
713
|
-
const r = new Intl.DateTimeFormat(
|
|
743
|
+
const r = new Intl.DateTimeFormat(k, {
|
|
714
744
|
day: "numeric"
|
|
715
745
|
}).format(e.date);
|
|
716
|
-
return /* @__PURE__ */
|
|
717
|
-
/* @__PURE__ */
|
|
718
|
-
/* @__PURE__ */
|
|
746
|
+
return /* @__PURE__ */ E("span", { className: "ds:flex ds:flex-col ds:items-center ds:gap-[var(--spacing-2xs)] ds:py-[var(--spacing-2xs)]", children: [
|
|
747
|
+
/* @__PURE__ */ d("span", { className: "type-eyebrow ds:text-[color:var(--muted-foreground)]", children: t }),
|
|
748
|
+
/* @__PURE__ */ d(
|
|
719
749
|
"span",
|
|
720
750
|
{
|
|
721
751
|
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
752
|
children: r
|
|
723
753
|
}
|
|
724
754
|
),
|
|
725
|
-
|
|
755
|
+
N.has(z(e.date)) ? /* @__PURE__ */ d(wr, { children: m("calendar.loadingDay") }) : null
|
|
726
756
|
] });
|
|
727
757
|
},
|
|
728
|
-
[
|
|
729
|
-
),
|
|
730
|
-
() => typeof
|
|
731
|
-
[
|
|
758
|
+
[k, N, m]
|
|
759
|
+
), Fe = u(
|
|
760
|
+
() => typeof $ == "number" ? { minutes: $ } : $,
|
|
761
|
+
[$]
|
|
732
762
|
), he = u(
|
|
733
763
|
() => B ? B.split(/\s+/).filter(Boolean) : void 0,
|
|
734
764
|
[B]
|
|
735
|
-
),
|
|
736
|
-
if (
|
|
737
|
-
return
|
|
738
|
-
}, [
|
|
739
|
-
() =>
|
|
740
|
-
[
|
|
741
|
-
),
|
|
742
|
-
|
|
743
|
-
const ge =
|
|
765
|
+
), Nt = u(() => {
|
|
766
|
+
if (q !== void 0)
|
|
767
|
+
return q === "chairs" ? m("calendar.resourceLabel.chairs") : q === "operators" ? m("calendar.resourceLabel.operators") : q;
|
|
768
|
+
}, [q, m]), se = u(
|
|
769
|
+
() => Gr(o, ce),
|
|
770
|
+
[o, ce]
|
|
771
|
+
), W = v(se);
|
|
772
|
+
W.current = se;
|
|
773
|
+
const ge = v(!1), Pt = g(
|
|
744
774
|
(e) => {
|
|
745
|
-
const t =
|
|
775
|
+
const t = N.has(z(e.date)) ? [Lr] : [], r = W.current;
|
|
746
776
|
if (!r.active || !e.view.type.startsWith("resourceTimeGrid"))
|
|
747
777
|
return t;
|
|
748
778
|
const i = e.resource;
|
|
749
779
|
return i != null && i.id && r.hiddenCells.has(
|
|
750
|
-
`${i.id}:${
|
|
751
|
-
) ? [...t,
|
|
780
|
+
`${i.id}:${z(e.date)}`
|
|
781
|
+
) ? [...t, xe] : t;
|
|
752
782
|
},
|
|
753
|
-
[
|
|
754
|
-
),
|
|
783
|
+
[N]
|
|
784
|
+
), Lt = g(
|
|
755
785
|
(e) => {
|
|
756
|
-
const t =
|
|
786
|
+
const t = W.current;
|
|
757
787
|
if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
|
|
758
788
|
return [];
|
|
759
789
|
const r = e.date ?? e.view.currentStart;
|
|
760
790
|
return t.hiddenCells.has(
|
|
761
|
-
`${e.resource.id}:${
|
|
762
|
-
) ? [
|
|
791
|
+
`${e.resource.id}:${z(r)}`
|
|
792
|
+
) ? [xe] : [];
|
|
763
793
|
},
|
|
764
794
|
[]
|
|
765
|
-
),
|
|
795
|
+
), Gt = g(
|
|
766
796
|
(e) => {
|
|
767
|
-
const t =
|
|
768
|
-
return !t.active || !e.view.type.startsWith("resourceTimeGrid") ? [] : (t.hiddenCountByDate.get(
|
|
797
|
+
const t = W.current;
|
|
798
|
+
return !t.active || !e.view.type.startsWith("resourceTimeGrid") ? [] : (t.hiddenCountByDate.get(z(e.date)) ?? 0) >= t.resourceCount ? [xe] : [];
|
|
769
799
|
},
|
|
770
800
|
[]
|
|
771
|
-
),
|
|
772
|
-
const t =
|
|
801
|
+
), Bt = g((e) => {
|
|
802
|
+
const t = W.current;
|
|
773
803
|
if (!t.active || !e.view.type.startsWith("resourceTimeGrid"))
|
|
774
804
|
return;
|
|
775
805
|
const r = e.el;
|
|
@@ -778,10 +808,10 @@ const Ue = $e(
|
|
|
778
808
|
if (!i) return;
|
|
779
809
|
const a = t.hiddenCountByDate.get(i) ?? 0, l = Math.max(1, t.resourceCount - a);
|
|
780
810
|
r.colSpan !== l && (r.colSpan = l, ge.current = !0);
|
|
781
|
-
}, []),
|
|
782
|
-
const e =
|
|
783
|
-
if (!e || !
|
|
784
|
-
const t =
|
|
811
|
+
}, []), K = g(() => {
|
|
812
|
+
const e = S.current;
|
|
813
|
+
if (!e || !Me.current.startsWith("resourceTimeGrid")) return;
|
|
814
|
+
const t = W.current;
|
|
785
815
|
!t.active && !ge.current || (e.querySelectorAll(
|
|
786
816
|
"th.fc-col-header-cell.fc-day[data-date]"
|
|
787
817
|
).forEach((r) => {
|
|
@@ -790,20 +820,20 @@ const Ue = $e(
|
|
|
790
820
|
const a = t.active ? t.hiddenCountByDate.get(i) ?? 0 : 0, l = Math.max(1, t.resourceCount - a);
|
|
791
821
|
r.colSpan !== l && (r.colSpan = l);
|
|
792
822
|
}), ge.current = t.active);
|
|
793
|
-
}, []),
|
|
794
|
-
const e =
|
|
823
|
+
}, []), U = g(() => {
|
|
824
|
+
const e = S.current;
|
|
795
825
|
if (!e) return;
|
|
796
826
|
const t = pe.current;
|
|
797
827
|
t.size === 0 && !ve.current || (e.querySelectorAll("td.fc-day[data-date]").forEach((r) => {
|
|
798
828
|
const i = r.getAttribute("data-date");
|
|
799
829
|
i && t.has(i) ? r.setAttribute("aria-busy", "true") : r.removeAttribute("aria-busy");
|
|
800
830
|
}), ve.current = t.size > 0);
|
|
801
|
-
}, []),
|
|
802
|
-
pe.current.has(
|
|
831
|
+
}, []), Mt = g((e) => {
|
|
832
|
+
pe.current.has(z(e.date)) && (e.el.setAttribute("aria-busy", "true"), ve.current = !0);
|
|
803
833
|
}, []);
|
|
804
834
|
h(() => {
|
|
805
835
|
}, [s, se]);
|
|
806
|
-
const
|
|
836
|
+
const P = (e) => {
|
|
807
837
|
const t = e.extendedProps ?? {};
|
|
808
838
|
return {
|
|
809
839
|
id: e.id,
|
|
@@ -817,6 +847,8 @@ const Ue = $e(
|
|
|
817
847
|
textColor: t.textColor,
|
|
818
848
|
borderColor: t.borderColor,
|
|
819
849
|
suffix: t.suffix,
|
|
850
|
+
shortTitle: t.shortTitle,
|
|
851
|
+
contextLabel: t.contextLabel,
|
|
820
852
|
privacyModeTitle: t.privacyModeTitle,
|
|
821
853
|
isBookedOnline: t.isBookedOnline,
|
|
822
854
|
hasUnassignedPatient: t.hasUnassignedPatient,
|
|
@@ -834,97 +866,98 @@ const Ue = $e(
|
|
|
834
866
|
operatorId: t.operatorId,
|
|
835
867
|
optionCount: t.optionCount
|
|
836
868
|
};
|
|
837
|
-
},
|
|
869
|
+
}, Ot = u(() => {
|
|
838
870
|
if (y)
|
|
839
871
|
return (e) => {
|
|
840
|
-
var r, i;
|
|
872
|
+
var r, i, a;
|
|
841
873
|
if (!e.event.start) return;
|
|
842
874
|
const t = e.oldEvent.start;
|
|
843
875
|
if (t && (y({
|
|
844
|
-
event:
|
|
876
|
+
event: P(e.event),
|
|
845
877
|
oldStart: t,
|
|
846
878
|
newStart: e.event.start,
|
|
847
879
|
oldResourceId: (r = e.oldResource) == null ? void 0 : r.id,
|
|
848
880
|
newResourceId: (i = e.newResource) == null ? void 0 : i.id,
|
|
849
881
|
revert: e.revert
|
|
850
|
-
}),
|
|
851
|
-
const
|
|
852
|
-
|
|
853
|
-
title:
|
|
882
|
+
}), A.current)) {
|
|
883
|
+
const l = e.event.extendedProps ?? {}, p = b ? ((a = l.privacyModeTitle) == null ? void 0 : a.trim()) || "•••" : e.event.title;
|
|
884
|
+
A.current.textContent = m("calendar.eventMoved", {
|
|
885
|
+
title: p
|
|
854
886
|
});
|
|
855
887
|
}
|
|
856
888
|
};
|
|
857
|
-
}, [y, b,
|
|
858
|
-
if (
|
|
889
|
+
}, [y, b, m]), Ft = u(() => {
|
|
890
|
+
if (I)
|
|
859
891
|
return (e) => {
|
|
892
|
+
var a;
|
|
860
893
|
if (!e.event.end) return;
|
|
861
894
|
const t = e.oldEvent.end;
|
|
862
895
|
if (!t)
|
|
863
896
|
return;
|
|
864
897
|
const r = e.event.end, i = e.event.start ?? e.oldEvent.start ?? t;
|
|
865
|
-
if (
|
|
866
|
-
event:
|
|
898
|
+
if (I({
|
|
899
|
+
event: P(e.event),
|
|
867
900
|
oldEnd: t,
|
|
868
901
|
newEnd: r,
|
|
869
902
|
revert: e.revert
|
|
870
|
-
}),
|
|
871
|
-
const
|
|
903
|
+
}), A.current) {
|
|
904
|
+
const l = Math.round(
|
|
872
905
|
(r.getTime() - i.getTime()) / 6e4
|
|
873
|
-
),
|
|
874
|
-
|
|
875
|
-
title:
|
|
876
|
-
duration:
|
|
906
|
+
), p = e.event.extendedProps ?? {}, T = b ? ((a = p.privacyModeTitle) == null ? void 0 : a.trim()) || "•••" : e.event.title;
|
|
907
|
+
A.current.textContent = m("calendar.eventResized", {
|
|
908
|
+
title: T,
|
|
909
|
+
duration: l
|
|
877
910
|
});
|
|
878
911
|
}
|
|
879
912
|
};
|
|
880
|
-
}, [
|
|
913
|
+
}, [I, b, m]), Wt = u(() => {
|
|
881
914
|
if (D)
|
|
882
915
|
return (e) => {
|
|
883
|
-
e.event.start && (
|
|
916
|
+
e.event.start && (Le.current = e.jsEvent, D(P(e.event), {
|
|
884
917
|
el: e.el,
|
|
885
918
|
jsEvent: e.jsEvent
|
|
886
919
|
}));
|
|
887
920
|
};
|
|
888
|
-
}, [D]),
|
|
889
|
-
if (
|
|
921
|
+
}, [D]), zt = u(() => {
|
|
922
|
+
if (_)
|
|
890
923
|
return (e) => {
|
|
891
924
|
if (!e.event.start || e.event.display === "background") return;
|
|
892
925
|
const t = e.event.extendedProps ?? {};
|
|
893
|
-
t.isDraft || t.detailsPending ||
|
|
926
|
+
t.isDraft || t.detailsPending || _(P(e.event), {
|
|
894
927
|
el: e.el,
|
|
895
928
|
jsEvent: e.jsEvent
|
|
896
929
|
});
|
|
897
930
|
};
|
|
898
|
-
}, [
|
|
899
|
-
if (
|
|
931
|
+
}, [_]), jt = u(() => {
|
|
932
|
+
if (V)
|
|
900
933
|
return (e) => {
|
|
901
|
-
e.event.start && e.event.display !== "background" &&
|
|
934
|
+
e.event.start && e.event.display !== "background" && V(P(e.event));
|
|
902
935
|
};
|
|
903
|
-
}, [
|
|
904
|
-
if (
|
|
936
|
+
}, [V]), _t = u(() => {
|
|
937
|
+
if (L)
|
|
905
938
|
return (e) => {
|
|
906
939
|
var t;
|
|
907
|
-
|
|
940
|
+
L({
|
|
908
941
|
start: e.start,
|
|
909
942
|
end: e.end,
|
|
910
943
|
allDay: e.allDay,
|
|
911
944
|
resourceId: (t = e.resource) == null ? void 0 : t.id
|
|
912
945
|
});
|
|
913
946
|
};
|
|
914
|
-
}, [
|
|
915
|
-
if (
|
|
947
|
+
}, [L]), Vt = u(() => {
|
|
948
|
+
if (w)
|
|
916
949
|
return (e) => {
|
|
917
950
|
var r;
|
|
918
951
|
const t = ie.current.id;
|
|
919
|
-
t !== 0 &&
|
|
952
|
+
t !== 0 && Be.current === t || (t !== 0 && (Ge.current = t), w({
|
|
920
953
|
date: e.date,
|
|
921
954
|
allDay: e.allDay,
|
|
922
955
|
resourceId: (r = e.resource) == null ? void 0 : r.id
|
|
923
956
|
}));
|
|
924
957
|
};
|
|
925
|
-
}, [
|
|
958
|
+
}, [w]), Ht = g(
|
|
926
959
|
(e) => {
|
|
927
|
-
|
|
960
|
+
wt(e.view.title), Ct(e.view.type), G == null || G({
|
|
928
961
|
view: c,
|
|
929
962
|
internalView: e.view.type,
|
|
930
963
|
start: e.start,
|
|
@@ -933,27 +966,27 @@ const Ue = $e(
|
|
|
933
966
|
tick, which fires before fcRef is guaranteed to be assigned. */
|
|
934
967
|
currentDate: e.view.calendar.getDate(),
|
|
935
968
|
title: e.view.title
|
|
936
|
-
}),
|
|
969
|
+
}), K(), U();
|
|
937
970
|
},
|
|
938
|
-
[G, c,
|
|
939
|
-
),
|
|
971
|
+
[G, c, K, U]
|
|
972
|
+
), qt = u(() => Pr(k), [k]), $t = u(
|
|
940
973
|
() => [
|
|
941
|
-
ir,
|
|
942
|
-
ar,
|
|
943
|
-
sr,
|
|
944
|
-
ur,
|
|
945
|
-
or,
|
|
946
974
|
dr,
|
|
947
975
|
lr,
|
|
948
|
-
cr
|
|
976
|
+
cr,
|
|
977
|
+
vr,
|
|
978
|
+
ur,
|
|
979
|
+
mr,
|
|
980
|
+
fr,
|
|
981
|
+
pr
|
|
949
982
|
],
|
|
950
983
|
[]
|
|
951
|
-
),
|
|
952
|
-
() => be(c,
|
|
953
|
-
[c,
|
|
984
|
+
), Kt = u(
|
|
985
|
+
() => be(c, H),
|
|
986
|
+
[c, H]
|
|
954
987
|
);
|
|
955
988
|
h(() => {
|
|
956
|
-
const e =
|
|
989
|
+
const e = S.current;
|
|
957
990
|
if (!e) return;
|
|
958
991
|
const t = (r) => {
|
|
959
992
|
ie.current = {
|
|
@@ -964,11 +997,11 @@ const Ue = $e(
|
|
|
964
997
|
};
|
|
965
998
|
return e.addEventListener("pointerdown", t, !0), () => e.removeEventListener("pointerdown", t, !0);
|
|
966
999
|
}, []), h(() => {
|
|
967
|
-
const e =
|
|
968
|
-
if (!e || !
|
|
1000
|
+
const e = S.current;
|
|
1001
|
+
if (!e || !F.startsWith("resourceTimeGrid") || !w && !D) return;
|
|
969
1002
|
const t = (r) => {
|
|
970
1003
|
var X;
|
|
971
|
-
if (r ===
|
|
1004
|
+
if (r === Le.current) return;
|
|
972
1005
|
const i = r.target;
|
|
973
1006
|
if (!(i instanceof Element) || i.closest(
|
|
974
1007
|
".fc-more-link, a[data-navlink], .fc-popover, .fc-event-mirror"
|
|
@@ -979,31 +1012,31 @@ const Ue = $e(
|
|
|
979
1012
|
return;
|
|
980
1013
|
const l = i.closest("td.fc-daygrid-day[data-date]");
|
|
981
1014
|
if (!l) return;
|
|
982
|
-
const
|
|
983
|
-
if (
|
|
1015
|
+
const p = i.closest("[data-event-id]");
|
|
1016
|
+
if (p) {
|
|
984
1017
|
if (!D) return;
|
|
985
|
-
const J =
|
|
1018
|
+
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
1019
|
if (!oe || !oe.start) return;
|
|
987
|
-
const
|
|
988
|
-
if (
|
|
989
|
-
const
|
|
990
|
-
D(
|
|
1020
|
+
const ze = oe.extendedProps ?? {};
|
|
1021
|
+
if (ze.isInternal || ze.isDraft) return;
|
|
1022
|
+
const ir = i.closest(".fc-event") ?? p;
|
|
1023
|
+
D(P(oe), { el: ir, jsEvent: r });
|
|
991
1024
|
return;
|
|
992
1025
|
}
|
|
993
|
-
if (!
|
|
1026
|
+
if (!w || a.id !== 0 && Ge.current === a.id)
|
|
994
1027
|
return;
|
|
995
|
-
const
|
|
996
|
-
if (!
|
|
997
|
-
const Y = /* @__PURE__ */ new Date(`${
|
|
998
|
-
Number.isNaN(Y.getTime()) || (a.id !== 0 && (
|
|
1028
|
+
const T = l.getAttribute("data-date");
|
|
1029
|
+
if (!T) return;
|
|
1030
|
+
const Y = /* @__PURE__ */ new Date(`${T}T00:00:00`);
|
|
1031
|
+
Number.isNaN(Y.getTime()) || (a.id !== 0 && (Be.current = a.id), w({
|
|
999
1032
|
date: Y,
|
|
1000
1033
|
allDay: !0,
|
|
1001
1034
|
resourceId: l.getAttribute("data-resource-id") ?? void 0
|
|
1002
1035
|
}));
|
|
1003
1036
|
};
|
|
1004
1037
|
return e.addEventListener("click", t), () => e.removeEventListener("click", t);
|
|
1005
|
-
}, [
|
|
1006
|
-
const
|
|
1038
|
+
}, [F, w, D]);
|
|
1039
|
+
const Ut = g(
|
|
1007
1040
|
(e) => {
|
|
1008
1041
|
const t = e.resource.extendedProps, r = e.resource.title, i = t.color, a = t.shortTitleTextColor, l = i || a ? {
|
|
1009
1042
|
...i ? { "--resource-color": i } : {},
|
|
@@ -1011,15 +1044,15 @@ const Ue = $e(
|
|
|
1011
1044
|
"--resource-initials-text-color": a
|
|
1012
1045
|
} : {}
|
|
1013
1046
|
} : void 0;
|
|
1014
|
-
return Ne === "chip" && !ue ? /* @__PURE__ */
|
|
1015
|
-
|
|
1047
|
+
return Ne === "chip" && !ue ? /* @__PURE__ */ d(
|
|
1048
|
+
Dr,
|
|
1016
1049
|
{
|
|
1017
1050
|
label: r,
|
|
1018
1051
|
color: i,
|
|
1019
|
-
orientation:
|
|
1052
|
+
orientation: me ? "vertical" : "horizontal"
|
|
1020
1053
|
}
|
|
1021
|
-
) : ue ? /* @__PURE__ */
|
|
1022
|
-
/* @__PURE__ */
|
|
1054
|
+
) : 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__ */ E("span", { className: "ds:flex ds:items-center ds:gap-[var(--spacing-xs)]", children: [
|
|
1055
|
+
/* @__PURE__ */ d(
|
|
1023
1056
|
"span",
|
|
1024
1057
|
{
|
|
1025
1058
|
className: "resource-dot ds:[background-color:var(--resource-color)]",
|
|
@@ -1027,12 +1060,12 @@ const Ue = $e(
|
|
|
1027
1060
|
"aria-hidden": "true"
|
|
1028
1061
|
}
|
|
1029
1062
|
),
|
|
1030
|
-
/* @__PURE__ */
|
|
1031
|
-
] })) : /* @__PURE__ */
|
|
1063
|
+
/* @__PURE__ */ d("span", { className: "ds:truncate ds:text-start", children: r })
|
|
1064
|
+
] })) : /* @__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
1065
|
},
|
|
1033
|
-
[ue, Ne,
|
|
1034
|
-
),
|
|
1035
|
-
() =>
|
|
1066
|
+
[ue, Ne, me]
|
|
1067
|
+
), We = u(
|
|
1068
|
+
() => o == null ? void 0 : o.map((e) => ({
|
|
1036
1069
|
id: e.id,
|
|
1037
1070
|
title: e.title,
|
|
1038
1071
|
sequenceNumber: e.sequenceNumber,
|
|
@@ -1044,37 +1077,38 @@ const Ue = $e(
|
|
|
1044
1077
|
sequenceNumber: e.sequenceNumber
|
|
1045
1078
|
}
|
|
1046
1079
|
})),
|
|
1047
|
-
[
|
|
1080
|
+
[o]
|
|
1048
1081
|
);
|
|
1049
1082
|
h(() => {
|
|
1050
|
-
$();
|
|
1051
|
-
const e = requestAnimationFrame($);
|
|
1052
|
-
return () => cancelAnimationFrame(e);
|
|
1053
|
-
}, [se, Fe, O, $]), h(() => {
|
|
1054
1083
|
K();
|
|
1055
1084
|
const e = requestAnimationFrame(K);
|
|
1056
1085
|
return () => cancelAnimationFrame(e);
|
|
1057
|
-
}, [
|
|
1058
|
-
|
|
1086
|
+
}, [se, We, F, K]), h(() => {
|
|
1087
|
+
U();
|
|
1088
|
+
const e = requestAnimationFrame(U);
|
|
1089
|
+
return () => cancelAnimationFrame(e);
|
|
1090
|
+
}, [N, F, U]);
|
|
1091
|
+
const Yt = g(() => {
|
|
1059
1092
|
var e, t;
|
|
1060
1093
|
(t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.today();
|
|
1061
|
-
}, []),
|
|
1094
|
+
}, []), Xt = g(() => {
|
|
1062
1095
|
var e, t;
|
|
1063
1096
|
(t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.prev();
|
|
1064
|
-
}, []),
|
|
1097
|
+
}, []), Jt = g(() => {
|
|
1065
1098
|
var e, t;
|
|
1066
1099
|
(t = (e = C.current) == null ? void 0 : e.getApi()) == null || t.next();
|
|
1067
|
-
}, []),
|
|
1100
|
+
}, []), Zt = u(
|
|
1068
1101
|
() => s.some((e) => e.isDraft),
|
|
1069
1102
|
[s]
|
|
1070
|
-
),
|
|
1103
|
+
), Qt = [
|
|
1071
1104
|
"fc-theme-alfadocs",
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1105
|
+
Ar({ density: rt }),
|
|
1106
|
+
yt ? "calendar-zebra-rows" : null,
|
|
1107
|
+
me ? "calendar-vertical-resource-labels" : null,
|
|
1108
|
+
ht ? "calendar-availability-mode" : null,
|
|
1075
1109
|
/* Composing: derived from the events themselves rather than a prop,
|
|
1076
1110
|
so the dim can never disagree with what is on the grid. */
|
|
1077
|
-
|
|
1111
|
+
Zt ? "calendar-composing-mode" : null,
|
|
1078
1112
|
"ds:bg-background ds:text-foreground",
|
|
1079
1113
|
/* The radius clips the table's square corners; the frame is this
|
|
1080
1114
|
border, not FullCalendar's. `clip`, not `hidden`: a scroll container
|
|
@@ -1084,11 +1118,11 @@ const Ue = $e(
|
|
|
1084
1118
|
which scrolls the date header away; FullCalendar's own value is
|
|
1085
1119
|
visible. Important, as the host rule is unlayered. */
|
|
1086
1120
|
"ds:[&_.fc-view]:!overflow-visible ds:[&_.fc-view>table]:!overflow-visible",
|
|
1087
|
-
|
|
1088
|
-
].filter(Boolean).join(" "),
|
|
1121
|
+
et
|
|
1122
|
+
].filter(Boolean).join(" "), er = re || ne ? {
|
|
1089
1123
|
...re ? { "--calendar-mode-bg": re } : {},
|
|
1090
1124
|
...ne ? { "--calendar-mode-fg": ne } : {}
|
|
1091
|
-
} : void 0,
|
|
1125
|
+
} : void 0, tr = te !== "default" ? nt ?? m(Nr[te]) : "", rr = [
|
|
1092
1126
|
"ds:sticky ds:top-0 ds:z-10",
|
|
1093
1127
|
"ds:flex ds:items-center ds:gap-[var(--spacing-sm)]",
|
|
1094
1128
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
@@ -1098,7 +1132,7 @@ const Ue = $e(
|
|
|
1098
1132
|
doesn't supply a hex. */
|
|
1099
1133
|
re ? "ds:[background-color:var(--calendar-mode-bg)]" : "ds:bg-[var(--muted)]",
|
|
1100
1134
|
ne ? "ds:[color:var(--calendar-mode-fg)]" : "ds:text-[var(--muted-foreground)]"
|
|
1101
|
-
].filter(Boolean).join(" "),
|
|
1135
|
+
].filter(Boolean).join(" "), nr = [
|
|
1102
1136
|
"ds:inline-flex ds:items-center ds:justify-center",
|
|
1103
1137
|
"ds:min-h-[var(--min-target-size)]",
|
|
1104
1138
|
"ds:ps-[var(--spacing-md)] ds:pe-[var(--spacing-md)]",
|
|
@@ -1113,97 +1147,97 @@ const Ue = $e(
|
|
|
1113
1147
|
"ds:focus-visible:outline-offset-[length:var(--focus-ring-offset)]",
|
|
1114
1148
|
"ds:motion-reduce:transition-none"
|
|
1115
1149
|
].join(" ");
|
|
1116
|
-
return /* @__PURE__ */
|
|
1150
|
+
return /* @__PURE__ */ E(
|
|
1117
1151
|
"div",
|
|
1118
1152
|
{
|
|
1119
|
-
ref:
|
|
1120
|
-
className:
|
|
1153
|
+
ref: S,
|
|
1154
|
+
className: Qt,
|
|
1121
1155
|
role: "region",
|
|
1122
|
-
"aria-label":
|
|
1156
|
+
"aria-label": m("calendar.ariaLabel"),
|
|
1123
1157
|
"data-component": "calendar",
|
|
1124
1158
|
"data-component-id": n,
|
|
1125
1159
|
"data-mode": te,
|
|
1126
1160
|
children: [
|
|
1127
|
-
/* @__PURE__ */
|
|
1161
|
+
/* @__PURE__ */ d(
|
|
1128
1162
|
"div",
|
|
1129
1163
|
{
|
|
1130
|
-
ref:
|
|
1164
|
+
ref: A,
|
|
1131
1165
|
"aria-live": "polite",
|
|
1132
1166
|
"aria-atomic": "true",
|
|
1133
1167
|
className: ["ds:sr-only", B].filter(Boolean).join(" ")
|
|
1134
1168
|
}
|
|
1135
1169
|
),
|
|
1136
|
-
|
|
1137
|
-
te !== "default" ? /* @__PURE__ */
|
|
1170
|
+
it,
|
|
1171
|
+
te !== "default" ? /* @__PURE__ */ E(
|
|
1138
1172
|
"div",
|
|
1139
1173
|
{
|
|
1140
|
-
className:
|
|
1141
|
-
style:
|
|
1174
|
+
className: rr,
|
|
1175
|
+
style: er,
|
|
1142
1176
|
role: "status",
|
|
1143
1177
|
"data-calendar-mode-banner": "",
|
|
1144
1178
|
children: [
|
|
1145
|
-
/* @__PURE__ */
|
|
1179
|
+
/* @__PURE__ */ d(
|
|
1146
1180
|
"span",
|
|
1147
1181
|
{
|
|
1148
1182
|
className: ["ds:flex-1 ds:text-start", B].filter(Boolean).join(" "),
|
|
1149
|
-
children:
|
|
1183
|
+
children: tr
|
|
1150
1184
|
}
|
|
1151
1185
|
),
|
|
1152
|
-
Ie ? /* @__PURE__ */
|
|
1186
|
+
Ie ? /* @__PURE__ */ d(
|
|
1153
1187
|
"button",
|
|
1154
1188
|
{
|
|
1155
1189
|
type: "button",
|
|
1156
1190
|
onClick: Ie,
|
|
1157
|
-
className:
|
|
1158
|
-
children:
|
|
1191
|
+
className: nr,
|
|
1192
|
+
children: m("calendar.modeBanner.cancel")
|
|
1159
1193
|
}
|
|
1160
1194
|
) : null
|
|
1161
1195
|
]
|
|
1162
1196
|
}
|
|
1163
1197
|
) : null,
|
|
1164
|
-
|
|
1165
|
-
|
|
1198
|
+
pt !== !1 ? /* @__PURE__ */ d(
|
|
1199
|
+
we,
|
|
1166
1200
|
{
|
|
1167
|
-
title:
|
|
1168
|
-
onToday:
|
|
1169
|
-
onPrev:
|
|
1170
|
-
onNext:
|
|
1171
|
-
end:
|
|
1201
|
+
title: Dt,
|
|
1202
|
+
onToday: Yt,
|
|
1203
|
+
onPrev: Xt,
|
|
1204
|
+
onNext: Jt,
|
|
1205
|
+
end: vt,
|
|
1172
1206
|
maskClassName: B
|
|
1173
1207
|
}
|
|
1174
1208
|
) : null,
|
|
1175
|
-
/* @__PURE__ */
|
|
1176
|
-
|
|
1209
|
+
/* @__PURE__ */ d(
|
|
1210
|
+
or,
|
|
1177
1211
|
{
|
|
1178
1212
|
ref: C,
|
|
1179
|
-
plugins:
|
|
1180
|
-
schedulerLicenseKey:
|
|
1181
|
-
initialView:
|
|
1182
|
-
views:
|
|
1183
|
-
initialDate:
|
|
1184
|
-
locale:
|
|
1185
|
-
direction:
|
|
1186
|
-
firstDay:
|
|
1213
|
+
plugins: $t,
|
|
1214
|
+
schedulerLicenseKey: ft,
|
|
1215
|
+
initialView: Kt,
|
|
1216
|
+
views: Er,
|
|
1217
|
+
initialDate: f,
|
|
1218
|
+
locale: k,
|
|
1219
|
+
direction: Tt,
|
|
1220
|
+
firstDay: qt,
|
|
1187
1221
|
editable: ee,
|
|
1188
|
-
eventDurationEditable: ee === !1 ? !1 :
|
|
1222
|
+
eventDurationEditable: ee === !1 ? !1 : Je ?? ee,
|
|
1189
1223
|
selectable: Ae,
|
|
1190
|
-
selectMirror:
|
|
1224
|
+
selectMirror: Ze ?? Ae,
|
|
1191
1225
|
...ke === void 0 ? {} : { unselectAuto: ke },
|
|
1192
1226
|
droppable: ee,
|
|
1193
|
-
dayMaxEvents:
|
|
1194
|
-
height:
|
|
1227
|
+
dayMaxEvents: mt,
|
|
1228
|
+
height: Qe,
|
|
1195
1229
|
expandRows: !0,
|
|
1196
|
-
events:
|
|
1197
|
-
resources:
|
|
1230
|
+
events: At,
|
|
1231
|
+
resources: We,
|
|
1198
1232
|
resourceOrder: "sequenceNumber",
|
|
1199
|
-
resourceLabelContent:
|
|
1200
|
-
resourceAreaWidth:
|
|
1201
|
-
resourceAreaHeaderContent:
|
|
1202
|
-
dayCellClassNames:
|
|
1203
|
-
dayCellDidMount:
|
|
1204
|
-
dayHeaderClassNames:
|
|
1205
|
-
resourceLabelClassNames:
|
|
1206
|
-
dayHeaderDidMount:
|
|
1233
|
+
resourceLabelContent: Ut,
|
|
1234
|
+
resourceAreaWidth: gt,
|
|
1235
|
+
resourceAreaHeaderContent: Nt,
|
|
1236
|
+
dayCellClassNames: Pt,
|
|
1237
|
+
dayCellDidMount: Mt,
|
|
1238
|
+
dayHeaderClassNames: Gt,
|
|
1239
|
+
resourceLabelClassNames: Lt,
|
|
1240
|
+
dayHeaderDidMount: Bt,
|
|
1207
1241
|
...he ? { slotLaneClassNames: he } : {},
|
|
1208
1242
|
eventClassNames: (e) => {
|
|
1209
1243
|
var t;
|
|
@@ -1214,84 +1248,88 @@ const Ue = $e(
|
|
|
1214
1248
|
];
|
|
1215
1249
|
},
|
|
1216
1250
|
headerToolbar: !1,
|
|
1217
|
-
allDayText:
|
|
1218
|
-
noEventsText:
|
|
1219
|
-
titleFormat:
|
|
1220
|
-
dayHeaderFormat:
|
|
1221
|
-
dayHeaderContent:
|
|
1222
|
-
eventTimeFormat:
|
|
1223
|
-
slotLabelFormat:
|
|
1224
|
-
slotMinTime:
|
|
1225
|
-
slotMaxTime:
|
|
1226
|
-
slotDuration:
|
|
1251
|
+
allDayText: m("calendar.allDay"),
|
|
1252
|
+
noEventsText: m("calendar.noEvents"),
|
|
1253
|
+
titleFormat: kt,
|
|
1254
|
+
dayHeaderFormat: It,
|
|
1255
|
+
dayHeaderContent: Et,
|
|
1256
|
+
eventTimeFormat: St,
|
|
1257
|
+
slotLabelFormat: Rt,
|
|
1258
|
+
slotMinTime: at ?? "00:00:00",
|
|
1259
|
+
slotMaxTime: st ?? "24:00:00",
|
|
1260
|
+
slotDuration: ot ?? "00:30:00",
|
|
1227
1261
|
...Ee ? { snapDuration: Ee } : {},
|
|
1228
1262
|
slotLabelInterval: "01:00:00",
|
|
1229
|
-
...
|
|
1263
|
+
...Fe !== void 0 ? { defaultTimedEventDuration: Fe } : {},
|
|
1230
1264
|
hiddenDays: Se,
|
|
1231
1265
|
datesAboveResources: ce,
|
|
1232
|
-
slotEventOverlap:
|
|
1233
|
-
stickyHeaderDates:
|
|
1234
|
-
nowIndicator:
|
|
1266
|
+
slotEventOverlap: lt,
|
|
1267
|
+
stickyHeaderDates: ct,
|
|
1268
|
+
nowIndicator: ut,
|
|
1235
1269
|
eventLongPressDelay: ae ? 0 : 1e3,
|
|
1236
1270
|
eventDragMinDistance: ae ? 0 : Te,
|
|
1237
1271
|
eventContent: (e) => {
|
|
1238
|
-
var r;
|
|
1272
|
+
var r, i;
|
|
1239
1273
|
const t = e.event.extendedProps ?? {};
|
|
1240
1274
|
if (t.isInternal) {
|
|
1241
1275
|
if (e.event.title && Q) {
|
|
1242
|
-
const
|
|
1276
|
+
const a = typeof t.optionCount == "number" ? m("calendarWorkspace.findSlots.freeOptions", {
|
|
1243
1277
|
count: t.optionCount
|
|
1244
|
-
}) : void 0,
|
|
1278
|
+
}) : void 0, l = a ? [
|
|
1245
1279
|
e.event.title,
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
].filter(Boolean).join(", ") : e.event.title,
|
|
1249
|
-
|
|
1280
|
+
$e(e, k),
|
|
1281
|
+
a
|
|
1282
|
+
].filter(Boolean).join(", ") : e.event.title, p = /* @__PURE__ */ d(
|
|
1283
|
+
xr,
|
|
1250
1284
|
{
|
|
1251
1285
|
type: "button",
|
|
1252
1286
|
intent: "ghost",
|
|
1253
1287
|
size: "sm",
|
|
1254
1288
|
"data-event-id": e.event.id,
|
|
1255
|
-
"aria-label":
|
|
1289
|
+
"aria-label": l,
|
|
1256
1290
|
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:
|
|
1291
|
+
onClick: (T) => {
|
|
1292
|
+
T.stopPropagation(), Q(P(e.event), {
|
|
1293
|
+
el: T.currentTarget,
|
|
1294
|
+
jsEvent: T.nativeEvent
|
|
1261
1295
|
});
|
|
1262
1296
|
},
|
|
1263
|
-
children: /* @__PURE__ */
|
|
1297
|
+
children: /* @__PURE__ */ E(
|
|
1264
1298
|
"span",
|
|
1265
1299
|
{
|
|
1266
1300
|
className: "calendar-bg-event-label",
|
|
1267
1301
|
"aria-hidden": "true",
|
|
1268
1302
|
children: [
|
|
1269
|
-
/* @__PURE__ */
|
|
1303
|
+
/* @__PURE__ */ d(_e, { size: 12, "aria-hidden": "true" }),
|
|
1270
1304
|
e.event.title
|
|
1271
1305
|
]
|
|
1272
1306
|
}
|
|
1273
1307
|
)
|
|
1274
1308
|
}
|
|
1275
1309
|
);
|
|
1276
|
-
return
|
|
1310
|
+
return a ? /* @__PURE__ */ d(je, { label: a, children: p }) : p;
|
|
1277
1311
|
}
|
|
1278
|
-
return e.event.title ? /* @__PURE__ */
|
|
1279
|
-
/* @__PURE__ */
|
|
1312
|
+
return e.event.title ? /* @__PURE__ */ E("span", { className: "calendar-bg-event-label", children: [
|
|
1313
|
+
/* @__PURE__ */ d(_e, { size: 12, "aria-hidden": "true" }),
|
|
1280
1314
|
e.event.title
|
|
1281
1315
|
] }) : !0;
|
|
1282
1316
|
}
|
|
1283
|
-
return /* @__PURE__ */
|
|
1284
|
-
|
|
1317
|
+
return /* @__PURE__ */ d(
|
|
1318
|
+
br,
|
|
1285
1319
|
{
|
|
1286
1320
|
eventId: e.event.id,
|
|
1287
|
-
title: b ? t.privacyModeTitle
|
|
1321
|
+
title: b ? ((r = t.privacyModeTitle) == null ? void 0 : r.trim()) || "•••" : e.event.title,
|
|
1322
|
+
shortTitle: b ? void 0 : t.shortTitle,
|
|
1323
|
+
contextLabel: t.contextLabel,
|
|
1324
|
+
startText: Mr(e.event.start, k),
|
|
1325
|
+
layout: e.event.allDay || e.view.type.startsWith("dayGrid") ? "month" : e.view.type.startsWith("list") || e.view.type.toLowerCase().includes("timeline") ? "flow" : "grid",
|
|
1288
1326
|
privacyMasked: b,
|
|
1289
1327
|
suffix: t.suffix,
|
|
1290
|
-
rangeText:
|
|
1291
|
-
showTime:
|
|
1328
|
+
rangeText: $e(e, k),
|
|
1329
|
+
showTime: dt,
|
|
1292
1330
|
allDay: e.event.allDay,
|
|
1293
1331
|
status: t.status,
|
|
1294
|
-
colorStyle:
|
|
1332
|
+
colorStyle: tt,
|
|
1295
1333
|
backgroundColor: t.backgroundColor,
|
|
1296
1334
|
textColor: t.textColor,
|
|
1297
1335
|
borderColor: t.borderColor,
|
|
@@ -1304,23 +1342,23 @@ const Ue = $e(
|
|
|
1304
1342
|
isTask: t.isTask,
|
|
1305
1343
|
isDraft: t.isDraft,
|
|
1306
1344
|
detailsPending: t.detailsPending,
|
|
1307
|
-
resourceLabel: t.resourceId ? (
|
|
1345
|
+
resourceLabel: t.resourceId ? (i = (o ?? []).find((a) => a.id === t.resourceId)) == null ? void 0 : i.title : void 0
|
|
1308
1346
|
}
|
|
1309
1347
|
);
|
|
1310
1348
|
},
|
|
1311
|
-
eventClick:
|
|
1312
|
-
eventMouseEnter:
|
|
1313
|
-
eventMouseLeave:
|
|
1314
|
-
eventDrop:
|
|
1315
|
-
eventResize:
|
|
1316
|
-
eventDragStart:
|
|
1349
|
+
eventClick: Wt,
|
|
1350
|
+
eventMouseEnter: zt,
|
|
1351
|
+
eventMouseLeave: jt,
|
|
1352
|
+
eventDrop: Ot,
|
|
1353
|
+
eventResize: Ft,
|
|
1354
|
+
eventDragStart: j,
|
|
1317
1355
|
eventResizeStart: Z,
|
|
1318
|
-
select:
|
|
1319
|
-
dateClick:
|
|
1320
|
-
datesSet:
|
|
1321
|
-
...
|
|
1356
|
+
select: _t,
|
|
1357
|
+
dateClick: Vt,
|
|
1358
|
+
datesSet: Ht,
|
|
1359
|
+
...Ce ? {
|
|
1322
1360
|
navLinks: !0,
|
|
1323
|
-
navLinkDayClick: (e, t) =>
|
|
1361
|
+
navLinkDayClick: (e, t) => Ce(e, t)
|
|
1324
1362
|
} : {}
|
|
1325
1363
|
}
|
|
1326
1364
|
)
|
|
@@ -1329,12 +1367,12 @@ const Ue = $e(
|
|
|
1329
1367
|
);
|
|
1330
1368
|
}
|
|
1331
1369
|
);
|
|
1332
|
-
|
|
1333
|
-
const
|
|
1334
|
-
|
|
1370
|
+
Xe.displayName = "Calendar";
|
|
1371
|
+
const Wr = Xe;
|
|
1372
|
+
Wr.Toolbar = we;
|
|
1335
1373
|
export {
|
|
1336
|
-
|
|
1337
|
-
|
|
1374
|
+
Wr as C,
|
|
1375
|
+
Cr as c,
|
|
1338
1376
|
be as r
|
|
1339
1377
|
};
|
|
1340
|
-
//# sourceMappingURL=calendar-
|
|
1378
|
+
//# sourceMappingURL=calendar-zpE9qTM4.js.map
|