@cocoar/vue-calendar 3.4.0-beta.39 → 3.4.0-beta.40
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CoarCalendar.vue.d.ts +4 -0
- package/dist/components/CoarCalendar.vue.d.ts.map +1 -1
- package/dist/components/CoarCalendarBoard.vue.d.ts.map +1 -1
- package/dist/components/CoarContinuousMonthView.vue.d.ts +4 -0
- package/dist/components/CoarContinuousMonthView.vue.d.ts.map +1 -1
- package/dist/components/CoarMonthView.vue.d.ts +4 -0
- package/dist/components/CoarMonthView.vue.d.ts.map +1 -1
- package/dist/components/CoarPagedMonthView.vue.d.ts +4 -0
- package/dist/components/CoarPagedMonthView.vue.d.ts.map +1 -1
- package/dist/components/internal/month/CoarMonthCell.vue.d.ts +4 -0
- package/dist/components/internal/month/CoarMonthCell.vue.d.ts.map +1 -1
- package/dist/composables/useMonthGeometry.d.ts.map +1 -1
- package/dist/composables/useMonthMetrics.d.ts +2 -0
- package/dist/composables/useMonthMetrics.d.ts.map +1 -1
- package/dist/core/boardLayout.d.ts.map +1 -1
- package/dist/core/eventOrder.d.ts +8 -0
- package/dist/core/eventOrder.d.ts.map +1 -0
- package/dist/core/monthGridLayout.d.ts.map +1 -1
- package/dist/{core-DfQCk0--.js → core-BcJBiqFt.js} +143 -130
- package/dist/core.js +1 -1
- package/dist/index.js +795 -737
- package/dist/vue-calendar.css +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import { A as e, C as t, D as n, E as r, M as i, O as a, S as o, T as s, a as c, b as l, c as u, d, f, g as p, h as m, i as h, j as g, l as _, m as v, n as y, o as b, p as x, r as S, s as C, t as ee, u as w, v as T, w as E, x as D, y as te } from "./move-math-ChynaO4h.js";
|
|
2
|
-
import { $ as ne, A as O, B as re, C as k, D as A, E as ie, F as j, G as ae, H as oe, I as se, J as ce, K as le, L as ue, M as de, N as fe, O as pe, P as me, Q as M, R as he, S as ge, T as _e, U as ve, V as ye, W as be, X as xe, Y as Se, Z as Ce, _ as we, a as Te, at as Ee, b as De, c as Oe, d as ke, et as Ae, f as je, g as Me, h as Ne, i as Pe, it as Fe, j as Ie, k as Le, l as Re, m as ze, n as Be, nt as Ve, o as He, p as Ue, q as We, r as Ge, rt as Ke, s as qe, t as Je, tt as Ye, u as Xe, v as Ze, w as Qe, x as $e, y as et, z as tt } from "./core-
|
|
3
|
-
import { Fragment as N, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createSlots as nt, createTextVNode as rt, createVNode as z, defineComponent as B, effectScope as it, getCurrentInstance as at, guardReactiveProps as V, h as ot, isRef as st, isVNode as ct, mergeProps as lt, nextTick as ut, normalizeClass as H, normalizeProps as U, normalizeStyle as W, onBeforeUnmount as dt, onMounted as ft, onScopeDispose as pt, onUnmounted as mt, openBlock as G, ref as K, renderList as q, renderSlot as J, resolveDynamicComponent as
|
|
4
|
-
import { useI18n as
|
|
5
|
-
import { CoarButton as
|
|
2
|
+
import { $ as ne, A as O, B as re, C as k, D as A, E as ie, F as j, G as ae, H as oe, I as se, J as ce, K as le, L as ue, M as de, N as fe, O as pe, P as me, Q as M, R as he, S as ge, T as _e, U as ve, V as ye, W as be, X as xe, Y as Se, Z as Ce, _ as we, a as Te, at as Ee, b as De, c as Oe, d as ke, et as Ae, f as je, g as Me, h as Ne, i as Pe, it as Fe, j as Ie, k as Le, l as Re, m as ze, n as Be, nt as Ve, o as He, p as Ue, q as We, r as Ge, rt as Ke, s as qe, t as Je, tt as Ye, u as Xe, v as Ze, w as Qe, x as $e, y as et, z as tt } from "./core-BcJBiqFt.js";
|
|
3
|
+
import { Fragment as N, computed as P, createBlock as F, createCommentVNode as I, createElementBlock as L, createElementVNode as R, createSlots as nt, createTextVNode as rt, createVNode as z, defineComponent as B, effectScope as it, getCurrentInstance as at, guardReactiveProps as V, h as ot, isRef as st, isVNode as ct, mergeProps as lt, nextTick as ut, normalizeClass as H, normalizeProps as U, normalizeStyle as W, onBeforeUnmount as dt, onMounted as ft, onScopeDispose as pt, onUnmounted as mt, onUpdated as ht, openBlock as G, ref as K, renderList as q, renderSlot as J, resolveDynamicComponent as gt, shallowReactive as _t, shallowRef as vt, toDisplayString as Y, toHandlers as yt, toValue as X, triggerRef as bt, unref as Z, useSlots as xt, useTemplateRef as St, watch as Ct, watchEffect as wt, withCtx as Q, withDirectives as Tt, withModifiers as Et } from "vue";
|
|
4
|
+
import { useI18n as Dt, useLocalization as Ot } from "@cocoar/vue-localization";
|
|
5
|
+
import { CoarButton as kt, CoarIcon as At, CoarSegmentedControl as jt, CoarSelect as Mt } from "@cocoar/vue-ui";
|
|
6
6
|
//#region src/builders/calendar-builder-internals.ts
|
|
7
|
-
var
|
|
7
|
+
var Nt = Symbol("CalendarBuilder.setVisibleRange"), Pt = Symbol("CalendarBuilder.invalidateLoaderCache"), Ft = Symbol("CalendarBuilder.prefetchWindows"), It = Symbol("CalendarBuilder.setTopmostVisibleMonth");
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/builders/internal/window-utils.ts
|
|
10
|
-
function
|
|
10
|
+
function Lt(e) {
|
|
11
11
|
return `${e.view}|${e.timezone}|${e.start}|${e.end}`;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
13
|
+
function Rt(e, t) {
|
|
14
14
|
return e === t ? !0 : e === null || t === null ? !1 : e.view === t.view && e.start === t.start && e.end === t.end && e.timezone === t.timezone;
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function zt(e, t) {
|
|
17
17
|
let [n, r, i, a] = e.split("|");
|
|
18
18
|
return n === t.view && r === t.timezone && i < t.end && a > t.start;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Bt(e) {
|
|
21
21
|
return {
|
|
22
|
-
start:
|
|
23
|
-
end:
|
|
22
|
+
start: Vt(e.start, e.timezone),
|
|
23
|
+
end: Vt(e.end, e.timezone)
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
function
|
|
26
|
+
function Vt(e, t) {
|
|
27
27
|
return e.includes("T") ? _.PlainDateTime.from(e).toZonedDateTime(t, { disambiguation: "compatible" }) : _.PlainDate.from(e).toZonedDateTime(t);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function Ht(e, t) {
|
|
30
30
|
if (typeof e == "function") throw TypeError(`[CalendarBuilder.${t}] navigation setters require a Ref or a plain value, never a getter function. api.next() / setView() must be able to write back. Pass \`ref(...)\` if you want two-way binding.`);
|
|
31
31
|
return st(e) ? e : K(e);
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/builders/calendar-builder-config.ts
|
|
35
|
-
var
|
|
35
|
+
var Ut = class {
|
|
36
36
|
state;
|
|
37
37
|
constructor(e) {
|
|
38
38
|
this.state = e;
|
|
@@ -148,13 +148,13 @@ var Ht = class {
|
|
|
148
148
|
return this.state.recurrenceEngine = e, this._resetRecurrenceEngine(), this;
|
|
149
149
|
}
|
|
150
150
|
view(e) {
|
|
151
|
-
return this.state.view =
|
|
151
|
+
return this.state.view = Ht(e, "view"), this;
|
|
152
152
|
}
|
|
153
153
|
availableViews(e) {
|
|
154
154
|
return this.state.availableViews = e, this;
|
|
155
155
|
}
|
|
156
156
|
date(e) {
|
|
157
|
-
return this.state.date =
|
|
157
|
+
return this.state.date = Ht(e, "date"), this;
|
|
158
158
|
}
|
|
159
159
|
timeRange(e) {
|
|
160
160
|
return this.state.timeRange = e, this;
|
|
@@ -198,7 +198,7 @@ var Ht = class {
|
|
|
198
198
|
timelineLabelWidth(e) {
|
|
199
199
|
return this.state.timelineLabelWidth = e, this;
|
|
200
200
|
}
|
|
201
|
-
},
|
|
201
|
+
}, Wt = class extends Ut {
|
|
202
202
|
canDrop(e) {
|
|
203
203
|
return this.state.canDrop = e, this;
|
|
204
204
|
}
|
|
@@ -250,8 +250,8 @@ var Ht = class {
|
|
|
250
250
|
};
|
|
251
251
|
//#endregion
|
|
252
252
|
//#region src/builders/calendar-builder-state.ts
|
|
253
|
-
function
|
|
254
|
-
return
|
|
253
|
+
function Gt(e) {
|
|
254
|
+
return _t({
|
|
255
255
|
events: null,
|
|
256
256
|
eventsLoader: null,
|
|
257
257
|
series: null,
|
|
@@ -336,10 +336,10 @@ function Wt(e) {
|
|
|
336
336
|
}
|
|
337
337
|
//#endregion
|
|
338
338
|
//#region src/builders/internal/navigation.ts
|
|
339
|
-
function
|
|
339
|
+
function Kt(e) {
|
|
340
340
|
e.date.value = _.Now.plainDateISO(X(e.timezone));
|
|
341
341
|
}
|
|
342
|
-
function
|
|
342
|
+
function qt(e, t, n) {
|
|
343
343
|
let r = e.view.value, i = n === 1 ? 1 : -1;
|
|
344
344
|
if (r === "day" || r === "week" || r === "workWeek") {
|
|
345
345
|
let n = me(r, {
|
|
@@ -351,20 +351,20 @@ function Kt(e, t, n) {
|
|
|
351
351
|
}
|
|
352
352
|
e.date.value = pe(r, e.date.value, n === 1 ? "next" : "prev", X(e.agendaLengthDays), X(e.timelineRangeDays), X(e.dayColumnCount));
|
|
353
353
|
}
|
|
354
|
-
function
|
|
354
|
+
function Jt(e, t) {
|
|
355
355
|
let n = X(e.availableViews);
|
|
356
356
|
!n.includes(t) && typeof console < "u" && console.warn(`[CalendarBuilder.api.setView] view='${t}' is not in availableViews=[${n.join(", ")}]. Setting anyway, but the active view-switcher won't show it and the body may render an "unsupported" placeholder. Add it to availableViews(...) or pick from the allowed set.`), e.view.value = t;
|
|
357
357
|
}
|
|
358
|
-
function Jt(e, t) {
|
|
359
|
-
Zt(e, "monthDensity", t, "setMonthDensity");
|
|
360
|
-
}
|
|
361
358
|
function Yt(e, t) {
|
|
362
|
-
|
|
359
|
+
Qt(e, "monthDensity", t, "setMonthDensity");
|
|
363
360
|
}
|
|
364
361
|
function Xt(e, t) {
|
|
365
|
-
|
|
362
|
+
Qt(e, "dayMode", t, "setDayMode");
|
|
366
363
|
}
|
|
367
|
-
function Zt(e, t
|
|
364
|
+
function Zt(e, t) {
|
|
365
|
+
Qt(e, "timeGridOrientation", t, "setTimeGridOrientation");
|
|
366
|
+
}
|
|
367
|
+
function Qt(e, t, n, r) {
|
|
368
368
|
let i = e[t];
|
|
369
369
|
if (st(i)) {
|
|
370
370
|
i.value = n;
|
|
@@ -378,7 +378,7 @@ function Zt(e, t, n, r) {
|
|
|
378
378
|
}
|
|
379
379
|
//#endregion
|
|
380
380
|
//#region src/builders/internal/loading-tracker.ts
|
|
381
|
-
var
|
|
381
|
+
var $t = class {
|
|
382
382
|
_loading = K(!1);
|
|
383
383
|
_inFlight = 0;
|
|
384
384
|
get loading() {
|
|
@@ -393,7 +393,7 @@ var Qt = class {
|
|
|
393
393
|
end() {
|
|
394
394
|
--this._inFlight, this._inFlight <= 0 && (this._inFlight = 0, this._loading.value = !1);
|
|
395
395
|
}
|
|
396
|
-
},
|
|
396
|
+
}, en = class {
|
|
397
397
|
_validated = /* @__PURE__ */ new WeakSet();
|
|
398
398
|
validate(e) {
|
|
399
399
|
for (let t of e) {
|
|
@@ -401,8 +401,8 @@ var Qt = class {
|
|
|
401
401
|
this._validated.has(t) || (u(t), this._validated.add(t));
|
|
402
402
|
}
|
|
403
403
|
}
|
|
404
|
-
},
|
|
405
|
-
cache =
|
|
404
|
+
}, tn = 50, nn = class {
|
|
405
|
+
cache = vt(/* @__PURE__ */ new Map());
|
|
406
406
|
_generation = 0;
|
|
407
407
|
_debounceHandle = null;
|
|
408
408
|
_inFlightKeys = /* @__PURE__ */ new Set();
|
|
@@ -410,25 +410,25 @@ var Qt = class {
|
|
|
410
410
|
this.deps = e;
|
|
411
411
|
}
|
|
412
412
|
get(e) {
|
|
413
|
-
return this.cache.value.get(
|
|
413
|
+
return this.cache.value.get(Lt(e));
|
|
414
414
|
}
|
|
415
415
|
has(e) {
|
|
416
|
-
return this.cache.value.has(
|
|
416
|
+
return this.cache.value.has(Lt(e));
|
|
417
417
|
}
|
|
418
418
|
maybeSchedule(e) {
|
|
419
419
|
this.deps.loader() && (this.has(e) || (this._debounceHandle !== null && clearTimeout(this._debounceHandle), this._debounceHandle = setTimeout(() => {
|
|
420
420
|
this._debounceHandle = null, this.run(e);
|
|
421
|
-
},
|
|
421
|
+
}, tn)));
|
|
422
422
|
}
|
|
423
423
|
prefetch(e) {
|
|
424
424
|
if (!this.deps.loader()) return;
|
|
425
|
-
let t =
|
|
425
|
+
let t = Lt(e);
|
|
426
426
|
this.cache.value.has(t) || this._inFlightKeys.has(t) || this.run(e);
|
|
427
427
|
}
|
|
428
428
|
run(e) {
|
|
429
429
|
let t = this.deps.loader();
|
|
430
430
|
if (!t) return;
|
|
431
|
-
let n =
|
|
431
|
+
let n = Lt(e), r = this._generation;
|
|
432
432
|
this._inFlightKeys.add(n), this.deps.loading.begin(), Promise.resolve().then(() => t(e)).then((e) => {
|
|
433
433
|
if (r !== this._generation) return;
|
|
434
434
|
this.deps.validator.validate(e);
|
|
@@ -446,7 +446,7 @@ var Qt = class {
|
|
|
446
446
|
invalidateIntersecting(e) {
|
|
447
447
|
let t = /* @__PURE__ */ new Map(), n = !1;
|
|
448
448
|
for (let [r, i] of this.cache.value.entries()) {
|
|
449
|
-
if (
|
|
449
|
+
if (zt(r, e)) {
|
|
450
450
|
n = !0;
|
|
451
451
|
continue;
|
|
452
452
|
}
|
|
@@ -457,8 +457,8 @@ var Qt = class {
|
|
|
457
457
|
keys() {
|
|
458
458
|
return Array.from(this.cache.value.keys());
|
|
459
459
|
}
|
|
460
|
-
},
|
|
461
|
-
cache =
|
|
460
|
+
}, rn = 8, an = () => typeof performance < "u" ? performance.now() : Date.now(), on = () => new Promise((e) => setTimeout(e, 0)), sn = class {
|
|
461
|
+
cache = vt(/* @__PURE__ */ new Map());
|
|
462
462
|
_generation = 0;
|
|
463
463
|
_inFlightKeys = /* @__PURE__ */ new Set();
|
|
464
464
|
_resolvedEngine = null;
|
|
@@ -470,10 +470,10 @@ var Qt = class {
|
|
|
470
470
|
return this.deps.series() !== null || this.deps.seriesLoader() !== null;
|
|
471
471
|
}
|
|
472
472
|
get(e) {
|
|
473
|
-
return this.cache.value.get(
|
|
473
|
+
return this.cache.value.get(Lt(e));
|
|
474
474
|
}
|
|
475
475
|
has(e) {
|
|
476
|
-
return this.cache.value.has(
|
|
476
|
+
return this.cache.value.has(Lt(e));
|
|
477
477
|
}
|
|
478
478
|
invalidate() {
|
|
479
479
|
this.cache.value = /* @__PURE__ */ new Map(), this._generation += 1, this._inFlightKeys.clear();
|
|
@@ -484,7 +484,7 @@ var Qt = class {
|
|
|
484
484
|
invalidateIntersecting(e) {
|
|
485
485
|
let t = /* @__PURE__ */ new Map(), n = !1;
|
|
486
486
|
for (let [r, i] of this.cache.value.entries()) {
|
|
487
|
-
if (
|
|
487
|
+
if (zt(r, e)) {
|
|
488
488
|
n = !0;
|
|
489
489
|
continue;
|
|
490
490
|
}
|
|
@@ -494,7 +494,7 @@ var Qt = class {
|
|
|
494
494
|
}
|
|
495
495
|
run(e) {
|
|
496
496
|
if (!this.hasSource()) return;
|
|
497
|
-
let t =
|
|
497
|
+
let t = Lt(e);
|
|
498
498
|
if (this.cache.value.has(t) || this._inFlightKeys.has(t)) return;
|
|
499
499
|
this._inFlightKeys.add(t);
|
|
500
500
|
let n = this._generation;
|
|
@@ -504,10 +504,10 @@ var Qt = class {
|
|
|
504
504
|
this.store(t, []);
|
|
505
505
|
return;
|
|
506
506
|
}
|
|
507
|
-
let i =
|
|
508
|
-
for (let e of r) if (c.push(...await s(e, i, a, o)),
|
|
509
|
-
if (await
|
|
510
|
-
l =
|
|
507
|
+
let i = Bt(e), a = this.deps.dstPolicy(), o = this.resolveEngine(), s = await this.loadExpandSeries(), c = [], l = an();
|
|
508
|
+
for (let e of r) if (c.push(...await s(e, i, a, o)), an() - l >= rn) {
|
|
509
|
+
if (await on(), n !== this._generation) return;
|
|
510
|
+
l = an();
|
|
511
511
|
}
|
|
512
512
|
n === this._generation && (this.deps.validator.validate(c), this.store(t, c));
|
|
513
513
|
}).catch((e) => {
|
|
@@ -538,18 +538,18 @@ var Qt = class {
|
|
|
538
538
|
};
|
|
539
539
|
//#endregion
|
|
540
540
|
//#region src/builders/internal/events-for-window.ts
|
|
541
|
-
function
|
|
542
|
-
let i =
|
|
541
|
+
function cn(e, t, n, r) {
|
|
542
|
+
let i = ln(e, t, r), a = r ? n.get(r) ?? [] : [];
|
|
543
543
|
return a.length === 0 ? i : i.length === 0 ? a : i.concat(a);
|
|
544
544
|
}
|
|
545
|
-
function
|
|
545
|
+
function ln(e, t, n) {
|
|
546
546
|
let r = e.events;
|
|
547
547
|
return r === null ? n ? t.get(n) ?? [] : [] : X(r) ?? [];
|
|
548
548
|
}
|
|
549
549
|
//#endregion
|
|
550
550
|
//#region src/builders/internal/range-label.ts
|
|
551
|
-
function
|
|
552
|
-
let r = at() ?
|
|
551
|
+
function un(e, t, n) {
|
|
552
|
+
let r = at() ? Ot() : null;
|
|
553
553
|
return P(() => {
|
|
554
554
|
let i = e.view.value, a = i === "month" ? n.value : null, o = a ? a.toPlainDate({ day: 1 }) : e.date.value, s = X(e.locale) ?? r?.language.value ?? "en-US", c = t.value;
|
|
555
555
|
return k({
|
|
@@ -573,26 +573,26 @@ function ln(e, t, n) {
|
|
|
573
573
|
}
|
|
574
574
|
//#endregion
|
|
575
575
|
//#region src/builders/calendar-builder.ts
|
|
576
|
-
var
|
|
576
|
+
var dn = class e extends Wt {
|
|
577
577
|
api;
|
|
578
|
-
_visibleRange =
|
|
579
|
-
_topmostVisibleMonth =
|
|
578
|
+
_visibleRange = vt(null);
|
|
579
|
+
_topmostVisibleMonth = vt(null);
|
|
580
580
|
_gridReady = K(!1);
|
|
581
581
|
_scrollToTimeImpl;
|
|
582
582
|
_scrollToDateImpl;
|
|
583
583
|
_warnedScrollMethods = /* @__PURE__ */ new Set();
|
|
584
|
-
_loading = new
|
|
585
|
-
_validator = new
|
|
584
|
+
_loading = new $t();
|
|
585
|
+
_validator = new en();
|
|
586
586
|
_loader;
|
|
587
587
|
_series;
|
|
588
588
|
_scope = it(!0);
|
|
589
589
|
constructor() {
|
|
590
590
|
let e = r();
|
|
591
|
-
super(
|
|
591
|
+
super(Gt(e ?? "UTC")), typeof console < "u" && e === void 0 && console.error("[CalendarBuilder] Browser timezone detection failed and fell back to UTC. Call `builder.timezone(...)` with the intended IANA timezone to control event display."), this._loader = new nn({
|
|
592
592
|
loader: () => this.state.eventsLoader,
|
|
593
593
|
validator: this._validator,
|
|
594
594
|
loading: this._loading
|
|
595
|
-
}), this._series = new
|
|
595
|
+
}), this._series = new sn({
|
|
596
596
|
series: () => this.state.series,
|
|
597
597
|
seriesLoader: () => this.state.seriesLoader,
|
|
598
598
|
engineSetting: () => this.state.recurrenceEngine,
|
|
@@ -603,7 +603,7 @@ var un = class e extends Ut {
|
|
|
603
603
|
loading: this._loading.loading,
|
|
604
604
|
visibleRange: this._visibleRange,
|
|
605
605
|
gridReady: this._gridReady,
|
|
606
|
-
rangeLabel: this._scope.run(() =>
|
|
606
|
+
rangeLabel: this._scope.run(() => un(this.state, this._visibleRange, this._topmostVisibleMonth)),
|
|
607
607
|
topmostVisibleMonth: this._topmostVisibleMonth,
|
|
608
608
|
goTo: (e) => this._goTo(e),
|
|
609
609
|
goToToday: () => this._goToToday(),
|
|
@@ -612,7 +612,7 @@ var un = class e extends Ut {
|
|
|
612
612
|
setView: (e) => this._setView(e),
|
|
613
613
|
setMonthDensity: (e) => this._setMonthDensity(e),
|
|
614
614
|
setDayMode: (e) => this._setDayMode(e),
|
|
615
|
-
setTimeGridOrientation: (e) =>
|
|
615
|
+
setTimeGridOrientation: (e) => Zt(this.state, e),
|
|
616
616
|
scrollToTime: (e) => {
|
|
617
617
|
this._scrollToTimeImpl ? this._scrollToTimeImpl(e) : this._warnScrollNotWired("scrollToTime");
|
|
618
618
|
},
|
|
@@ -622,15 +622,15 @@ var un = class e extends Ut {
|
|
|
622
622
|
refresh: () => this._refresh(),
|
|
623
623
|
refreshRange: (e) => this._refreshRange(e),
|
|
624
624
|
getVisibleRange: () => this._visibleRange.value,
|
|
625
|
-
getVisibleEvents: () =>
|
|
626
|
-
getEventsForWindow: (e) =>
|
|
625
|
+
getVisibleEvents: () => cn(this.state, this._loader, this._series, this._visibleRange.value),
|
|
626
|
+
getEventsForWindow: (e) => cn(this.state, this._loader, this._series, e)
|
|
627
627
|
}, this._scope.run(() => this._installWatchers());
|
|
628
628
|
}
|
|
629
629
|
static create() {
|
|
630
630
|
return new e();
|
|
631
631
|
}
|
|
632
632
|
_installWatchers() {
|
|
633
|
-
|
|
633
|
+
Ct(() => this.state.events ? X(this.state.events) : null, (e) => {
|
|
634
634
|
if (e) try {
|
|
635
635
|
this._validateEvents(e);
|
|
636
636
|
} catch (e) {
|
|
@@ -639,12 +639,12 @@ var un = class e extends Ut {
|
|
|
639
639
|
}, {
|
|
640
640
|
immediate: !1,
|
|
641
641
|
flush: "post"
|
|
642
|
-
}),
|
|
642
|
+
}), Ct(() => this.state.series ? X(this.state.series) : null, (e, t) => {
|
|
643
643
|
e !== null && t !== null && this._invalidateSeries(!0);
|
|
644
644
|
}, {
|
|
645
645
|
immediate: !1,
|
|
646
646
|
flush: "post"
|
|
647
|
-
}),
|
|
647
|
+
}), Ct(() => X(this.state.dstPolicy), () => this._invalidateSeries(!0), {
|
|
648
648
|
immediate: !1,
|
|
649
649
|
flush: "post"
|
|
650
650
|
});
|
|
@@ -667,25 +667,25 @@ var un = class e extends Ut {
|
|
|
667
667
|
this.state.date.value = e;
|
|
668
668
|
}
|
|
669
669
|
_goToToday() {
|
|
670
|
-
|
|
670
|
+
Kt(this.state), this._scrollToDateImpl?.(this.state.date.value);
|
|
671
671
|
}
|
|
672
672
|
_navigate(e) {
|
|
673
|
-
|
|
673
|
+
qt(this.state, this._visibleRange.value, e);
|
|
674
674
|
}
|
|
675
675
|
_setView(e) {
|
|
676
|
-
|
|
676
|
+
Jt(this.state, e);
|
|
677
677
|
}
|
|
678
678
|
_setMonthDensity(e) {
|
|
679
|
-
|
|
679
|
+
Yt(this.state, e);
|
|
680
680
|
}
|
|
681
681
|
_setDayMode(e) {
|
|
682
|
-
|
|
682
|
+
Xt(this.state, e);
|
|
683
683
|
}
|
|
684
684
|
_warnScrollNotWired(e) {
|
|
685
685
|
this._warnedScrollMethods.has(e) || (this._warnedScrollMethods.add(e), typeof console < "u" && console.warn(`[CalendarBuilder.api.${e}] not wired yet — components ship in Session 3. This call is a no-op. Once <CoarCalendar> mounts, ${e} will work; remove this call or move it to after-mount.`));
|
|
686
686
|
}
|
|
687
|
-
[
|
|
688
|
-
if (
|
|
687
|
+
[Nt](e) {
|
|
688
|
+
if (Rt(this._visibleRange.value, e) || (this._visibleRange.value = e, !e)) return;
|
|
689
689
|
let t = this.state.onRangeChange;
|
|
690
690
|
if (t) try {
|
|
691
691
|
t(e);
|
|
@@ -694,18 +694,18 @@ var un = class e extends Ut {
|
|
|
694
694
|
}
|
|
695
695
|
this._loader.maybeSchedule(e), this._series.run(e);
|
|
696
696
|
}
|
|
697
|
-
[
|
|
697
|
+
[It](e) {
|
|
698
698
|
let t = this._topmostVisibleMonth.value;
|
|
699
699
|
t === e || t && e && t.equals(e) || (this._topmostVisibleMonth.value = e);
|
|
700
700
|
}
|
|
701
|
-
[
|
|
701
|
+
[Pt]() {
|
|
702
702
|
this._loader.invalidateAll(), this._invalidateSeries(!0);
|
|
703
703
|
}
|
|
704
|
-
[
|
|
704
|
+
[Ft](e) {
|
|
705
705
|
for (let t of e) this._loader.prefetch(t), this._series.run(t);
|
|
706
706
|
}
|
|
707
707
|
_refresh() {
|
|
708
|
-
this[
|
|
708
|
+
this[Pt]();
|
|
709
709
|
let e = this._visibleRange.value;
|
|
710
710
|
e && this._loader.maybeSchedule(e);
|
|
711
711
|
}
|
|
@@ -732,8 +732,8 @@ var un = class e extends Ut {
|
|
|
732
732
|
};
|
|
733
733
|
//#endregion
|
|
734
734
|
//#region src/useCalendar.ts
|
|
735
|
-
function
|
|
736
|
-
let e =
|
|
735
|
+
function fn() {
|
|
736
|
+
let e = dn.create();
|
|
737
737
|
return {
|
|
738
738
|
builder: e,
|
|
739
739
|
api: e.api
|
|
@@ -741,26 +741,26 @@ function dn() {
|
|
|
741
741
|
}
|
|
742
742
|
//#endregion
|
|
743
743
|
//#region src/builders/event-zone-hints.ts
|
|
744
|
-
var
|
|
744
|
+
var pn = {
|
|
745
745
|
isUtcAnchored: !1,
|
|
746
746
|
sourceZone: null
|
|
747
747
|
};
|
|
748
|
-
function
|
|
749
|
-
if (!(e.start instanceof _.ZonedDateTime)) return
|
|
748
|
+
function mn(e, t) {
|
|
749
|
+
if (!(e.start instanceof _.ZonedDateTime)) return pn;
|
|
750
750
|
let n = e.start.timeZoneId;
|
|
751
751
|
return n === "UTC" ? {
|
|
752
752
|
isUtcAnchored: !0,
|
|
753
753
|
sourceZone: null
|
|
754
|
-
} : !t || n === t ?
|
|
754
|
+
} : !t || n === t ? pn : {
|
|
755
755
|
isUtcAnchored: !1,
|
|
756
756
|
sourceZone: n
|
|
757
757
|
};
|
|
758
758
|
}
|
|
759
759
|
//#endregion
|
|
760
760
|
//#region src/composables/useViewWindow.ts
|
|
761
|
-
var
|
|
762
|
-
function
|
|
763
|
-
return t?.view && e.state.view.value !== t.view && (e.state.view.value = t.view),
|
|
761
|
+
var hn = /* @__PURE__ */ new WeakSet();
|
|
762
|
+
function gn(e, t) {
|
|
763
|
+
return t?.view && e.state.view.value !== t.view && (e.state.view.value = t.view), hn.has(e) && typeof console < "u" && console.warn("[useViewWindow] A second useViewWindow() composable mounted against the same CalendarBuilder. The C5 invariant calls for a single writer for _visibleRange — duplicate writers compute identical windows but fire onRangeChange / schedule the eventsLoader twice per change. Mount useViewWindow in exactly ONE place per builder (typically the active sub-view component)."), hn.add(e), Ct(P(() => {
|
|
764
764
|
let n = X(e.state.firstDayOfWeek) ?? x(X(e.state.locale) ?? "en-US");
|
|
765
765
|
return ie({
|
|
766
766
|
view: e.state.view.value,
|
|
@@ -774,18 +774,18 @@ function hn(e, t) {
|
|
|
774
774
|
timezone: X(e.state.timezone)
|
|
775
775
|
});
|
|
776
776
|
}), (t) => {
|
|
777
|
-
e[
|
|
777
|
+
e[Nt](t);
|
|
778
778
|
}, {
|
|
779
779
|
immediate: !0,
|
|
780
780
|
flush: "post"
|
|
781
781
|
}), pt(() => {
|
|
782
|
-
|
|
782
|
+
hn.delete(e);
|
|
783
783
|
}), { visibleRange: e.api.visibleRange };
|
|
784
784
|
}
|
|
785
785
|
//#endregion
|
|
786
786
|
//#region src/composables/useCoarDrag.ts
|
|
787
|
-
function
|
|
788
|
-
let t =
|
|
787
|
+
function _n(e) {
|
|
788
|
+
let t = vt(null), n = vt(!1), r = P(() => t.value !== null && n.value), i = 0, a = -1, o = null, s = 0, c = 0, l = 0, u = 0, d = 0, f = 0, p = !1, m = 0;
|
|
789
789
|
function h() {
|
|
790
790
|
if (e.autoScroll === null) return;
|
|
791
791
|
let t = e.surfaceRef.value;
|
|
@@ -889,7 +889,7 @@ function gn(e) {
|
|
|
889
889
|
startDrag: T
|
|
890
890
|
};
|
|
891
891
|
}
|
|
892
|
-
function
|
|
892
|
+
function vn(e) {
|
|
893
893
|
if (typeof window > "u") {
|
|
894
894
|
e();
|
|
895
895
|
return;
|
|
@@ -899,7 +899,7 @@ function _n(e) {
|
|
|
899
899
|
}, i = setTimeout(r, 350);
|
|
900
900
|
window.addEventListener("click", r, t);
|
|
901
901
|
}
|
|
902
|
-
function
|
|
902
|
+
function yn(e, t) {
|
|
903
903
|
if (e.pointerType !== "touch" && e.pointerType !== "pen" || typeof window > "u") {
|
|
904
904
|
t();
|
|
905
905
|
return;
|
|
@@ -907,7 +907,7 @@ function vn(e, t) {
|
|
|
907
907
|
let n = e.pointerId, r = e.clientX, i = e.clientY, a = (e) => {
|
|
908
908
|
e.pointerId === n && (Math.abs(e.clientX - r) > 10 || Math.abs(e.clientY - i) > 10) && c();
|
|
909
909
|
}, o = (e) => {
|
|
910
|
-
e.pointerId === n && (c(), !(Math.abs(e.clientX - r) > 10 || Math.abs(e.clientY - i) > 10) &&
|
|
910
|
+
e.pointerId === n && (c(), !(Math.abs(e.clientX - r) > 10 || Math.abs(e.clientY - i) > 10) && vn(t));
|
|
911
911
|
}, s = (e) => {
|
|
912
912
|
e.pointerId === n && c();
|
|
913
913
|
};
|
|
@@ -921,21 +921,21 @@ function vn(e, t) {
|
|
|
921
921
|
}
|
|
922
922
|
//#endregion
|
|
923
923
|
//#region src/composables/useCalendarDnd.ts
|
|
924
|
-
var
|
|
925
|
-
function
|
|
924
|
+
var bn = null;
|
|
925
|
+
function xn(e) {
|
|
926
926
|
if (!(typeof document > "u")) {
|
|
927
927
|
if (e === null) {
|
|
928
|
-
|
|
928
|
+
bn?.remove(), bn = null;
|
|
929
929
|
return;
|
|
930
930
|
}
|
|
931
|
-
|
|
931
|
+
bn || (bn = document.createElement("style"), bn.setAttribute("data-coar-drag-cursor", ""), document.head.appendChild(bn)), bn.textContent = `*, *::before, *::after { cursor: ${e} !important; }`;
|
|
932
932
|
}
|
|
933
933
|
}
|
|
934
|
-
function
|
|
934
|
+
function Sn(e, t, n, r) {
|
|
935
935
|
let i = Math.floor((e - n) / r), a = Math.floor((t - n) / r);
|
|
936
936
|
return Math.max(0, i - a);
|
|
937
937
|
}
|
|
938
|
-
function
|
|
938
|
+
function Cn(e, t = "vertical") {
|
|
939
939
|
switch (e) {
|
|
940
940
|
case "timed-resize-start":
|
|
941
941
|
case "timed-resize-end": return t === "horizontal" ? "ew-resize" : "ns-resize";
|
|
@@ -949,7 +949,7 @@ function Sn(e, t = "vertical") {
|
|
|
949
949
|
default: return null;
|
|
950
950
|
}
|
|
951
951
|
}
|
|
952
|
-
function
|
|
952
|
+
function wn(e) {
|
|
953
953
|
let t = () => (e.pixelsPerHour?.value ?? 60) / 60;
|
|
954
954
|
function n(n, r) {
|
|
955
955
|
let i = e.columnsRef?.value;
|
|
@@ -974,14 +974,14 @@ function Cn(e) {
|
|
|
974
974
|
}
|
|
975
975
|
};
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function Tn(e) {
|
|
978
978
|
let t = K(null), n = K(0), r = P(() => n.value > 0), i = null;
|
|
979
979
|
function a() {
|
|
980
980
|
i !== null && clearTimeout(i), n.value = performance.now() + 220, i = setTimeout(() => {
|
|
981
981
|
n.value = 0, t.value = null, o.value = null, i = null;
|
|
982
982
|
}, 220);
|
|
983
983
|
}
|
|
984
|
-
let o = K(null), s = 0, c = 0, l = 0, u =
|
|
984
|
+
let o = K(null), s = 0, c = 0, l = 0, u = wn({
|
|
985
985
|
columnsRef: e.columnsRef,
|
|
986
986
|
days: e.days,
|
|
987
987
|
pixelsPerHour: e.pixelsPerHour,
|
|
@@ -1066,7 +1066,7 @@ function wn(e) {
|
|
|
1066
1066
|
valid: e.canDrop(t, n)
|
|
1067
1067
|
} : n;
|
|
1068
1068
|
}
|
|
1069
|
-
let g = null, v = e.timezone.value, y = null, b, x =
|
|
1069
|
+
let g = null, v = e.timezone.value, y = null, b, x = _n({
|
|
1070
1070
|
surfaceRef: e.surfaceRef,
|
|
1071
1071
|
dragThreshold: e.dragThreshold ?? 5,
|
|
1072
1072
|
onDragStart: ({ event: r, data: a }) => {
|
|
@@ -1096,7 +1096,7 @@ function wn(e) {
|
|
|
1096
1096
|
} else i && i.valid === !1 && (r = !0);
|
|
1097
1097
|
} else {
|
|
1098
1098
|
let t = g, r = () => e.onEventClick?.(n.data, t);
|
|
1099
|
-
t?.pointerType === "touch" || t?.pointerType === "pen" ?
|
|
1099
|
+
t?.pointerType === "touch" || t?.pointerType === "pen" ? vn(r) : r();
|
|
1100
1100
|
}
|
|
1101
1101
|
c = 0, l = 0, s = 0, r ? a() : (t.value = null, o.value = null);
|
|
1102
1102
|
},
|
|
@@ -1135,7 +1135,7 @@ function wn(e) {
|
|
|
1135
1135
|
let r = t.currentTarget, i = e.monthGridRef?.value;
|
|
1136
1136
|
if (r && i) {
|
|
1137
1137
|
let e = r.getBoundingClientRect(), n = i.getBoundingClientRect(), a = n.width / 7;
|
|
1138
|
-
s = a > 0 ?
|
|
1138
|
+
s = a > 0 ? Sn(t.clientX, e.left, n.left, a) : 0;
|
|
1139
1139
|
} else s = 0;
|
|
1140
1140
|
c = 0, l = 0, n(t);
|
|
1141
1141
|
};
|
|
@@ -1182,7 +1182,7 @@ function wn(e) {
|
|
|
1182
1182
|
o.value = "month-resize-end", c = 0, l = 0, s = 0, t(e);
|
|
1183
1183
|
};
|
|
1184
1184
|
}
|
|
1185
|
-
return
|
|
1185
|
+
return Ct(() => x.isDragging.value, (t) => xn(t ? Cn(o.value, e.timedAxis?.orientation) : null)), {
|
|
1186
1186
|
isDragging: x.isDragging,
|
|
1187
1187
|
draggedEvent: P(() => x.draggedData.value),
|
|
1188
1188
|
dragMode: P(() => o.value),
|
|
@@ -1201,11 +1201,11 @@ function wn(e) {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
//#endregion
|
|
1203
1203
|
//#region src/composables/useA11yAnnouncer.ts
|
|
1204
|
-
var
|
|
1205
|
-
function
|
|
1204
|
+
var En = "";
|
|
1205
|
+
function Dn() {
|
|
1206
1206
|
let e = K(""), t = !1;
|
|
1207
1207
|
function n(n) {
|
|
1208
|
-
t = !t, e.value = t ? `${n}${
|
|
1208
|
+
t = !t, e.value = t ? `${n}${En}` : n;
|
|
1209
1209
|
}
|
|
1210
1210
|
return {
|
|
1211
1211
|
message: e,
|
|
@@ -1214,8 +1214,8 @@ function En() {
|
|
|
1214
1214
|
}
|
|
1215
1215
|
//#endregion
|
|
1216
1216
|
//#region src/composables/usePageSwipe.ts
|
|
1217
|
-
var
|
|
1218
|
-
function
|
|
1217
|
+
var On = 12, kn = 8, An = .25, jn = 40, Mn = .5, Nn = 180;
|
|
1218
|
+
function Pn(e) {
|
|
1219
1219
|
let t = K(0), n = K(!1), r = K(!1), i = K(!1), a = P(() => ({ [e.offsetVar]: `${t.value}px` })), o = null, s = null;
|
|
1220
1220
|
function c() {
|
|
1221
1221
|
return e.pageEl.value?.getBoundingClientRect().width ?? 0;
|
|
@@ -1250,7 +1250,7 @@ function Nn(e) {
|
|
|
1250
1250
|
if (!o || e.pointerId !== o.pointerId || o.abandoned) return;
|
|
1251
1251
|
let n = e.clientX - o.startX, i = e.clientY - o.startY;
|
|
1252
1252
|
if (!o.panning) {
|
|
1253
|
-
if (Math.abs(n) <
|
|
1253
|
+
if (Math.abs(n) < On && Math.abs(i) < On) return;
|
|
1254
1254
|
if (Math.abs(i) > Math.abs(n)) {
|
|
1255
1255
|
o.abandoned = !0;
|
|
1256
1256
|
return;
|
|
@@ -1264,10 +1264,10 @@ function Nn(e) {
|
|
|
1264
1264
|
let t = o, n = e.clientX - t.startX, r = e.clientY - t.startY;
|
|
1265
1265
|
if (d(), t.abandoned) return;
|
|
1266
1266
|
if (!t.panning) {
|
|
1267
|
-
Math.abs(n) <=
|
|
1267
|
+
Math.abs(n) <= kn && Math.abs(r) <= kn && t.onTap?.();
|
|
1268
1268
|
return;
|
|
1269
1269
|
}
|
|
1270
|
-
let i = c(), a = i > 0 ? Math.min(i *
|
|
1270
|
+
let i = c(), a = i > 0 ? Math.min(i * An, jn * 4) : 0, s = Math.max(jn, a), l = Math.max(16, e.timeStamp - t.startedAt), u = Math.abs(n) / l, f = Math.abs(n) >= 2 * On && u >= Mn, p = Math.abs(n) >= s || f, m = n < 0 ? 1 : -1;
|
|
1271
1271
|
if (!p) {
|
|
1272
1272
|
g(0, null);
|
|
1273
1273
|
return;
|
|
@@ -1287,7 +1287,7 @@ function Nn(e) {
|
|
|
1287
1287
|
}
|
|
1288
1288
|
n.value = !0, t.value = r, s && clearTimeout(s), s = setTimeout(() => {
|
|
1289
1289
|
s = null, o();
|
|
1290
|
-
},
|
|
1290
|
+
}, Nn);
|
|
1291
1291
|
}
|
|
1292
1292
|
function _(e) {
|
|
1293
1293
|
!o || o.pointerId !== e || o.panning || d();
|
|
@@ -1305,8 +1305,8 @@ function Nn(e) {
|
|
|
1305
1305
|
}
|
|
1306
1306
|
//#endregion
|
|
1307
1307
|
//#region src/composables/useTimeGridSwipe.ts
|
|
1308
|
-
function
|
|
1309
|
-
return
|
|
1308
|
+
function Fn(e) {
|
|
1309
|
+
return Pn({
|
|
1310
1310
|
pageEl: e.columnsEl,
|
|
1311
1311
|
enabled: e.enabled,
|
|
1312
1312
|
onCommit: e.onCommit,
|
|
@@ -1315,8 +1315,8 @@ function Pn(e) {
|
|
|
1315
1315
|
}
|
|
1316
1316
|
//#endregion
|
|
1317
1317
|
//#region src/composables/useTimeGridDnd.ts
|
|
1318
|
-
function
|
|
1319
|
-
let t =
|
|
1318
|
+
function In(e) {
|
|
1319
|
+
let t = Tn({
|
|
1320
1320
|
surfaceRef: e.surfaceRef,
|
|
1321
1321
|
columnsRef: e.columnsRef,
|
|
1322
1322
|
allDayColumnsRef: e.allDayColumnsRef,
|
|
@@ -1370,7 +1370,7 @@ function Fn(e) {
|
|
|
1370
1370
|
return i !== null && e === `${i.event.id}__preview`;
|
|
1371
1371
|
}
|
|
1372
1372
|
let a = K(null), o = K(null);
|
|
1373
|
-
|
|
1373
|
+
Ct(() => t.isDragging.value, (n, r) => {
|
|
1374
1374
|
if (n && !r) {
|
|
1375
1375
|
let n = t.dragMode.value, r = t.draggedEvent.value;
|
|
1376
1376
|
if (!r) return;
|
|
@@ -1405,7 +1405,7 @@ function Fn(e) {
|
|
|
1405
1405
|
});
|
|
1406
1406
|
}
|
|
1407
1407
|
} else !n && r && (a.value = null, o.value = null);
|
|
1408
|
-
}),
|
|
1408
|
+
}), Ct(() => n.value !== null, (t, r) => {
|
|
1409
1409
|
if (t && !r) {
|
|
1410
1410
|
let t = n.value;
|
|
1411
1411
|
if (!t) return;
|
|
@@ -1670,8 +1670,8 @@ function Fn(e) {
|
|
|
1670
1670
|
}
|
|
1671
1671
|
//#endregion
|
|
1672
1672
|
//#region src/composables/useMonthDnd.ts
|
|
1673
|
-
function
|
|
1674
|
-
let t =
|
|
1673
|
+
function Ln(e) {
|
|
1674
|
+
let t = Tn({
|
|
1675
1675
|
surfaceRef: e.gridRef,
|
|
1676
1676
|
monthGridRef: e.gridRef,
|
|
1677
1677
|
monthGridDates: e.gridDates,
|
|
@@ -1719,7 +1719,7 @@ function In(e) {
|
|
|
1719
1719
|
return i !== null && e === `${i.event.id}__preview`;
|
|
1720
1720
|
}
|
|
1721
1721
|
let a = K(null);
|
|
1722
|
-
|
|
1722
|
+
Ct(() => t.isDragging.value, (n, r) => {
|
|
1723
1723
|
let i = t.dragMode.value;
|
|
1724
1724
|
if (n && !r && (i === "month" || i === "month-resize-start" || i === "month-resize-end")) {
|
|
1725
1725
|
let n = t.draggedEvent.value;
|
|
@@ -1746,7 +1746,7 @@ function In(e) {
|
|
|
1746
1746
|
event: n
|
|
1747
1747
|
};
|
|
1748
1748
|
} else !n && r && (a.value = null);
|
|
1749
|
-
}),
|
|
1749
|
+
}), Ct(() => n.value !== null, (t, r) => {
|
|
1750
1750
|
if (t && !r) {
|
|
1751
1751
|
let t = n.value;
|
|
1752
1752
|
if (!t) return;
|
|
@@ -1959,8 +1959,8 @@ function In(e) {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
//#endregion
|
|
1961
1961
|
//#region src/useDayView.ts
|
|
1962
|
-
function
|
|
1963
|
-
let { builder: e, api: t } =
|
|
1962
|
+
function Rn() {
|
|
1963
|
+
let { builder: e, api: t } = fn();
|
|
1964
1964
|
return e.view(K("day")), e.availableViews(["day"]), {
|
|
1965
1965
|
builder: e,
|
|
1966
1966
|
api: t
|
|
@@ -1968,8 +1968,8 @@ function Ln() {
|
|
|
1968
1968
|
}
|
|
1969
1969
|
//#endregion
|
|
1970
1970
|
//#region src/useWeekView.ts
|
|
1971
|
-
function
|
|
1972
|
-
let { builder: e, api: t } =
|
|
1971
|
+
function zn() {
|
|
1972
|
+
let { builder: e, api: t } = fn();
|
|
1973
1973
|
return e.view(K("week")), e.availableViews(["week"]), {
|
|
1974
1974
|
builder: e,
|
|
1975
1975
|
api: t
|
|
@@ -1977,8 +1977,8 @@ function Rn() {
|
|
|
1977
1977
|
}
|
|
1978
1978
|
//#endregion
|
|
1979
1979
|
//#region src/useWorkWeekView.ts
|
|
1980
|
-
function
|
|
1981
|
-
let { builder: e, api: t } =
|
|
1980
|
+
function Bn() {
|
|
1981
|
+
let { builder: e, api: t } = fn();
|
|
1982
1982
|
return e.view(K("workWeek")), e.availableViews(["workWeek"]), {
|
|
1983
1983
|
builder: e,
|
|
1984
1984
|
api: t
|
|
@@ -1986,8 +1986,8 @@ function zn() {
|
|
|
1986
1986
|
}
|
|
1987
1987
|
//#endregion
|
|
1988
1988
|
//#region src/useMonthView.ts
|
|
1989
|
-
function
|
|
1990
|
-
let { builder: e, api: t } =
|
|
1989
|
+
function Vn() {
|
|
1990
|
+
let { builder: e, api: t } = fn();
|
|
1991
1991
|
return e.view(K("month")), e.availableViews(["month"]), {
|
|
1992
1992
|
builder: e,
|
|
1993
1993
|
api: t
|
|
@@ -1995,8 +1995,8 @@ function Bn() {
|
|
|
1995
1995
|
}
|
|
1996
1996
|
//#endregion
|
|
1997
1997
|
//#region src/useAgendaView.ts
|
|
1998
|
-
function
|
|
1999
|
-
let { builder: e, api: t } =
|
|
1998
|
+
function Hn() {
|
|
1999
|
+
let { builder: e, api: t } = fn();
|
|
2000
2000
|
return e.view(K("agenda")), e.availableViews(["agenda"]), {
|
|
2001
2001
|
builder: e,
|
|
2002
2002
|
api: t
|
|
@@ -2004,8 +2004,8 @@ function Vn() {
|
|
|
2004
2004
|
}
|
|
2005
2005
|
//#endregion
|
|
2006
2006
|
//#region src/useTimelineView.ts
|
|
2007
|
-
function
|
|
2008
|
-
let { builder: e, api: t } =
|
|
2007
|
+
function Un() {
|
|
2008
|
+
let { builder: e, api: t } = fn();
|
|
2009
2009
|
return e.view(K("timeline")), e.availableViews(["timeline"]), {
|
|
2010
2010
|
builder: e,
|
|
2011
2011
|
api: t
|
|
@@ -2013,24 +2013,24 @@ function Hn() {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
//#endregion
|
|
2015
2015
|
//#region src/components/internal/agenda/agendaTimeLabel.ts
|
|
2016
|
-
var
|
|
2017
|
-
function
|
|
2016
|
+
var Wn = " – ";
|
|
2017
|
+
function Gn(e, t, n) {
|
|
2018
2018
|
if (b(e)) return n;
|
|
2019
2019
|
if (!C(e)) return "";
|
|
2020
2020
|
let r = t(e.start.epochMilliseconds);
|
|
2021
|
-
return e.end ? `${r}${
|
|
2021
|
+
return e.end ? `${r}${Wn}${t(e.end.epochMilliseconds)}` : r;
|
|
2022
2022
|
}
|
|
2023
2023
|
//#endregion
|
|
2024
2024
|
//#region src/composables/useTimeGridPresentation.ts
|
|
2025
|
-
function
|
|
2026
|
-
let { t: r } =
|
|
2025
|
+
function Kn(n) {
|
|
2026
|
+
let { t: r } = Dt(), { state: i, timeRange: a } = n, o = P(() => i.value.timezone), s = Ot(), c = P(() => i.value.locale ?? s?.language.value ?? "en-US"), l = K(e(o.value)), u = K(t(o.value)), d = 0;
|
|
2027
2027
|
ft(() => {
|
|
2028
2028
|
d = window.setInterval(() => {
|
|
2029
2029
|
l.value = e(o.value), u.value = t(o.value);
|
|
2030
2030
|
}, 3e4);
|
|
2031
2031
|
}), dt(() => {
|
|
2032
2032
|
d && clearInterval(d);
|
|
2033
|
-
}),
|
|
2033
|
+
}), wt(() => {
|
|
2034
2034
|
l.value = e(o.value), u.value = t(o.value);
|
|
2035
2035
|
});
|
|
2036
2036
|
let f = P(() => {
|
|
@@ -2088,7 +2088,7 @@ function Gn(n) {
|
|
|
2088
2088
|
hour12: i.value.hour12
|
|
2089
2089
|
})));
|
|
2090
2090
|
function ee(e) {
|
|
2091
|
-
return
|
|
2091
|
+
return Gn(e, (e) => C.value.format(e), "");
|
|
2092
2092
|
}
|
|
2093
2093
|
function T(e) {
|
|
2094
2094
|
let t = e.meta;
|
|
@@ -2152,7 +2152,7 @@ function Gn(n) {
|
|
|
2152
2152
|
let t = e.meta, n = (typeof t?.title == "string" ? t.title : void 0) ?? r("coar.calendar.a11y.unnamedEvent", void 0, "Event");
|
|
2153
2153
|
return r("coar.calendar.a11y.kbdPreviewLabel", { title: n }, `${n} preview — Arrow keys to move, Enter to commit, Escape to cancel`);
|
|
2154
2154
|
}
|
|
2155
|
-
let ie =
|
|
2155
|
+
let ie = Dn();
|
|
2156
2156
|
function j(e) {
|
|
2157
2157
|
let t = e.next.start instanceof _.PlainDate;
|
|
2158
2158
|
try {
|
|
@@ -2221,7 +2221,7 @@ function Gn(n) {
|
|
|
2221
2221
|
}
|
|
2222
2222
|
//#endregion
|
|
2223
2223
|
//#region src/builders/render-helpers.ts
|
|
2224
|
-
var
|
|
2224
|
+
var qn = (e) => {
|
|
2225
2225
|
let { renderer: t, ctx: n } = e;
|
|
2226
2226
|
if (!t || !n) return null;
|
|
2227
2227
|
if (typeof t == "function") {
|
|
@@ -2230,8 +2230,8 @@ var Kn = (e) => {
|
|
|
2230
2230
|
}
|
|
2231
2231
|
return ot(t, n);
|
|
2232
2232
|
};
|
|
2233
|
-
|
|
2234
|
-
var
|
|
2233
|
+
qn.props = ["renderer", "ctx"], qn.displayName = "CoarRenderEvent";
|
|
2234
|
+
var Jn = (e) => {
|
|
2235
2235
|
let { renderer: t, ctx: n } = e;
|
|
2236
2236
|
if (typeof t == "function") {
|
|
2237
2237
|
let e = t(n);
|
|
@@ -2239,10 +2239,10 @@ var qn = (e) => {
|
|
|
2239
2239
|
}
|
|
2240
2240
|
return ot(t, n);
|
|
2241
2241
|
};
|
|
2242
|
-
|
|
2242
|
+
Jn.props = ["renderer", "ctx"], Jn.displayName = "CoarRenderDayHeader";
|
|
2243
2243
|
//#endregion
|
|
2244
2244
|
//#region src/components/internal/CoarEventDecorations.vue?vue&type=script&setup=true&lang.ts
|
|
2245
|
-
var
|
|
2245
|
+
var Yn = ["title", "aria-label"], Xn = { class: "coar-event-decorations__sr-only" }, Zn = ["title", "aria-label"], Qn = { class: "coar-event-decorations__sr-only" }, $n = /* @__PURE__ */ B({
|
|
2246
2246
|
__name: "CoarEventDecorations",
|
|
2247
2247
|
props: {
|
|
2248
2248
|
event: {},
|
|
@@ -2250,7 +2250,7 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2250
2250
|
size: { default: "xs" }
|
|
2251
2251
|
},
|
|
2252
2252
|
setup(e) {
|
|
2253
|
-
let t = e, n =
|
|
2253
|
+
let t = e, n = Ot(), r = (e, t, r) => n ? n.t(e, t, r) : r ?? "", i = P(() => mn(t.event, t.displayZone)), a = P(() => r("coar.calendar.event.utcLabel", void 0, "Global")), o = P(() => r("coar.calendar.event.utcGlobalHint", void 0, "Global event — same instant worldwide")), s = P(() => {
|
|
2254
2254
|
let e = i.value.sourceZone;
|
|
2255
2255
|
return e ? r("coar.calendar.event.crossZoneHint", { zone: e }, `Source zone: ${e}`) : "";
|
|
2256
2256
|
}), c = P(() => t.size === "s" ? "14px" : "12px");
|
|
@@ -2259,28 +2259,28 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2259
2259
|
class: "coar-event-decorations__utc",
|
|
2260
2260
|
title: o.value,
|
|
2261
2261
|
"aria-label": o.value
|
|
2262
|
-
}, [z(Z(
|
|
2262
|
+
}, [z(Z(At), {
|
|
2263
2263
|
name: "globe",
|
|
2264
2264
|
size: c.value
|
|
2265
|
-
}, null, 8, ["size"]), R("span",
|
|
2265
|
+
}, null, 8, ["size"]), R("span", Xn, Y(a.value), 1)], 8, Yn)) : i.value.sourceZone ? (G(), L("span", {
|
|
2266
2266
|
key: 1,
|
|
2267
2267
|
class: "coar-event-decorations__cross-zone",
|
|
2268
2268
|
title: s.value,
|
|
2269
2269
|
"aria-label": s.value
|
|
2270
|
-
}, [z(Z(
|
|
2270
|
+
}, [z(Z(At), {
|
|
2271
2271
|
name: "globe",
|
|
2272
2272
|
size: c.value
|
|
2273
|
-
}, null, 8, ["size"]), R("span",
|
|
2273
|
+
}, null, 8, ["size"]), R("span", Qn, Y(s.value), 1)], 8, Zn)) : I("", !0);
|
|
2274
2274
|
}
|
|
2275
2275
|
}), $ = (e, t) => {
|
|
2276
2276
|
let n = e.__vccOpts || e;
|
|
2277
2277
|
for (let [e, r] of t) n[e] = r;
|
|
2278
2278
|
return n;
|
|
2279
|
-
},
|
|
2279
|
+
}, er = /* @__PURE__ */ $($n, [["__scopeId", "data-v-e4bc816e"]]), tr = ["aria-label", "title"], nr = { class: "coar-event-assignees__initials" }, rr = {
|
|
2280
2280
|
key: 0,
|
|
2281
2281
|
class: "coar-event-assignees__overflow",
|
|
2282
2282
|
"aria-hidden": "true"
|
|
2283
|
-
},
|
|
2283
|
+
}, ir = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2284
2284
|
__name: "CoarEventAssignees",
|
|
2285
2285
|
props: {
|
|
2286
2286
|
event: {},
|
|
@@ -2327,28 +2327,28 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2327
2327
|
"--assignee-ink": e.autoColor ? "var(--coar-text-on-accent, #fff)" : Z(Me)(e.color, "white")
|
|
2328
2328
|
}),
|
|
2329
2329
|
"aria-hidden": "true"
|
|
2330
|
-
}, [R("span",
|
|
2330
|
+
}, [R("span", nr, Y(o(e.displayName)), 1)], 4))), 128)), i.value ? (G(), L("span", rr, "+" + Y(i.value), 1)) : I("", !0)], 10, tr)) : I("", !0);
|
|
2331
2331
|
}
|
|
2332
|
-
}), [["__scopeId", "data-v-efd1a761"]]),
|
|
2332
|
+
}), [["__scopeId", "data-v-efd1a761"]]), ar = [
|
|
2333
2333
|
"data-event-id",
|
|
2334
2334
|
"tabindex",
|
|
2335
2335
|
"role",
|
|
2336
2336
|
"aria-label",
|
|
2337
2337
|
"aria-hidden"
|
|
2338
|
-
],
|
|
2338
|
+
], or = {
|
|
2339
2339
|
key: 0,
|
|
2340
2340
|
class: "coar-time-grid-event__point-edge",
|
|
2341
2341
|
"aria-hidden": "true"
|
|
2342
|
-
},
|
|
2342
|
+
}, sr = { class: "coar-time-grid-event__default" }, cr = { class: "coar-time-grid-event__title-row" }, lr = {
|
|
2343
2343
|
key: 0,
|
|
2344
2344
|
class: "coar-time-grid-event__location"
|
|
2345
|
-
},
|
|
2345
|
+
}, ur = {
|
|
2346
2346
|
key: 1,
|
|
2347
2347
|
class: "coar-time-grid-event__time"
|
|
2348
|
-
},
|
|
2348
|
+
}, dr = {
|
|
2349
2349
|
key: 3,
|
|
2350
2350
|
class: "coar-time-grid-event__default"
|
|
2351
|
-
},
|
|
2351
|
+
}, fr = { class: "coar-time-grid-event__title-row" }, pr = { class: "coar-time-grid-event__title" }, mr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2352
2352
|
__name: "CoarTimeGridEvent",
|
|
2353
2353
|
props: {
|
|
2354
2354
|
event: {},
|
|
@@ -2446,7 +2446,7 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2446
2446
|
onKeydown: f,
|
|
2447
2447
|
onDblclick: p
|
|
2448
2448
|
}, [
|
|
2449
|
-
a.value && !e.clippedTop ? (G(), L("div",
|
|
2449
|
+
a.value && !e.clippedTop ? (G(), L("div", or)) : I("", !0),
|
|
2450
2450
|
i.value && !a.value ? (G(), L("div", {
|
|
2451
2451
|
key: 1,
|
|
2452
2452
|
class: "coar-time-grid-event__resize coar-time-grid-event__resize--top",
|
|
@@ -2457,30 +2457,30 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2457
2457
|
key: 2,
|
|
2458
2458
|
event: e.event,
|
|
2459
2459
|
positioned: e.positioned
|
|
2460
|
-
}, () => [R("div",
|
|
2461
|
-
R("span",
|
|
2462
|
-
z(
|
|
2460
|
+
}, () => [R("div", sr, [
|
|
2461
|
+
R("span", cr, [
|
|
2462
|
+
z(er, {
|
|
2463
2463
|
event: e.event,
|
|
2464
2464
|
"display-zone": e.displayZone,
|
|
2465
2465
|
size: "s"
|
|
2466
2466
|
}, null, 8, ["event", "display-zone"]),
|
|
2467
2467
|
R("span", { class: H(["coar-time-grid-event__title", { "coar-time-grid-event__title--two-lines": c.value.titleLines === 2 }]) }, Y(e.title), 3),
|
|
2468
|
-
z(
|
|
2468
|
+
z(ir, {
|
|
2469
2469
|
event: e.event,
|
|
2470
2470
|
max: 2,
|
|
2471
2471
|
size: "xs"
|
|
2472
2472
|
}, null, 8, ["event"])
|
|
2473
2473
|
]),
|
|
2474
|
-
l.value ? (G(), L("span",
|
|
2475
|
-
u.value ? (G(), L("span",
|
|
2476
|
-
])], !0) : (G(), L("div",
|
|
2477
|
-
z(
|
|
2474
|
+
l.value ? (G(), L("span", lr, Y(e.location), 1)) : I("", !0),
|
|
2475
|
+
u.value ? (G(), L("span", ur, Y(e.timeLabel), 1)) : I("", !0)
|
|
2476
|
+
])], !0) : (G(), L("div", dr, [R("span", fr, [
|
|
2477
|
+
z(er, {
|
|
2478
2478
|
event: e.event,
|
|
2479
2479
|
"display-zone": e.displayZone,
|
|
2480
2480
|
size: "s"
|
|
2481
2481
|
}, null, 8, ["event", "display-zone"]),
|
|
2482
|
-
R("span",
|
|
2483
|
-
z(
|
|
2482
|
+
R("span", pr, Y(e.title), 1),
|
|
2483
|
+
z(ir, {
|
|
2484
2484
|
event: e.event,
|
|
2485
2485
|
max: 2,
|
|
2486
2486
|
size: "xs"
|
|
@@ -2492,15 +2492,15 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2492
2492
|
"aria-hidden": "true",
|
|
2493
2493
|
onPointerdown: h
|
|
2494
2494
|
}, null, 32)) : I("", !0)
|
|
2495
|
-
], 46,
|
|
2495
|
+
], 46, ar));
|
|
2496
2496
|
}
|
|
2497
|
-
}), [["__scopeId", "data-v-d1080d12"]]),
|
|
2497
|
+
}), [["__scopeId", "data-v-d1080d12"]]), hr = [
|
|
2498
2498
|
"data-event-id",
|
|
2499
2499
|
"tabindex",
|
|
2500
2500
|
"role",
|
|
2501
2501
|
"aria-label",
|
|
2502
2502
|
"aria-hidden"
|
|
2503
|
-
],
|
|
2503
|
+
], gr = { class: "coar-time-grid-all-day-bar__title" }, _r = { class: "coar-time-grid-all-day-bar__title" }, vr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2504
2504
|
__name: "CoarTimeGridAllDayBar",
|
|
2505
2505
|
props: {
|
|
2506
2506
|
event: {},
|
|
@@ -2597,11 +2597,11 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2597
2597
|
key: 1,
|
|
2598
2598
|
event: e.event,
|
|
2599
2599
|
bar: e.bar
|
|
2600
|
-
}, () => [R("span",
|
|
2600
|
+
}, () => [R("span", gr, Y(e.title), 1), z(ir, {
|
|
2601
2601
|
event: e.event,
|
|
2602
2602
|
max: 2,
|
|
2603
2603
|
size: "xs"
|
|
2604
|
-
}, null, 8, ["event"])], !0) : (G(), L(N, { key: 2 }, [R("span",
|
|
2604
|
+
}, null, 8, ["event"])], !0) : (G(), L(N, { key: 2 }, [R("span", _r, Y(e.title), 1), z(ir, {
|
|
2605
2605
|
event: e.event,
|
|
2606
2606
|
max: 2,
|
|
2607
2607
|
size: "xs"
|
|
@@ -2612,9 +2612,9 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2612
2612
|
"aria-hidden": "true",
|
|
2613
2613
|
onPointerdown: m
|
|
2614
2614
|
}, null, 32)) : I("", !0)
|
|
2615
|
-
], 46,
|
|
2615
|
+
], 46, hr));
|
|
2616
2616
|
}
|
|
2617
|
-
}), [["__scopeId", "data-v-824f2541"]]),
|
|
2617
|
+
}), [["__scopeId", "data-v-824f2541"]]), yr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2618
2618
|
__name: "CoarTimeGridNowMarker",
|
|
2619
2619
|
props: {
|
|
2620
2620
|
topPx: { default: 0 },
|
|
@@ -2628,7 +2628,7 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2628
2628
|
"aria-hidden": "true"
|
|
2629
2629
|
}, [...n[0] ||= [R("span", { class: "coar-time-grid-now-marker__dot" }, null, -1), R("span", { class: "coar-time-grid-now-marker__line" }, null, -1)]], 6));
|
|
2630
2630
|
}
|
|
2631
|
-
}), [["__scopeId", "data-v-4d17038c"]]),
|
|
2631
|
+
}), [["__scopeId", "data-v-4d17038c"]]), br = ["aria-colindex", "aria-current"], xr = { class: "coar-time-grid-header__label" }, Sr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2632
2632
|
__name: "CoarTimeGridHeader",
|
|
2633
2633
|
props: {
|
|
2634
2634
|
days: {},
|
|
@@ -2664,9 +2664,9 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2664
2664
|
date: n,
|
|
2665
2665
|
isToday: e.isToday(n),
|
|
2666
2666
|
isWeekend: e.isWeekend(n)
|
|
2667
|
-
}, () => [R("span",
|
|
2667
|
+
}, () => [R("span", xr, Y(e.formatLabel(n)), 1)], !0)], 10, br))), 128))], 34)], 2));
|
|
2668
2668
|
}
|
|
2669
|
-
}), [["__scopeId", "data-v-0eb2642f"]]),
|
|
2669
|
+
}), [["__scopeId", "data-v-0eb2642f"]]), Cr = ["aria-label"], wr = { class: "coar-time-grid-all-day-band__axis" }, Tr = { "aria-hidden": "true" }, Er = ["onPointerdown", "onDblclick"], Dr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2670
2670
|
__name: "CoarTimeGridAllDayBand",
|
|
2671
2671
|
props: {
|
|
2672
2672
|
days: {},
|
|
@@ -2699,12 +2699,12 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2699
2699
|
style: W({ minHeight: e.bandHeightPx + "px" }),
|
|
2700
2700
|
role: "region",
|
|
2701
2701
|
"aria-label": e.axisLabel
|
|
2702
|
-
}, [R("div",
|
|
2702
|
+
}, [R("div", wr, [R("span", Tr, Y(e.axisLabel), 1), e.collapsible ? (G(), L("button", {
|
|
2703
2703
|
key: 0,
|
|
2704
2704
|
type: "button",
|
|
2705
2705
|
class: "coar-time-grid-all-day-band__collapse",
|
|
2706
|
-
onPointerdown: a[0] ||=
|
|
2707
|
-
onClick: a[1] ||=
|
|
2706
|
+
onPointerdown: a[0] ||= Et(() => {}, ["stop"]),
|
|
2707
|
+
onClick: a[1] ||= Et((e) => n("collapse"), ["stop"])
|
|
2708
2708
|
}, Y(e.collapseLabel), 33)) : I("", !0)]), R("div", {
|
|
2709
2709
|
ref: (t) => e.setColumnsEl(t),
|
|
2710
2710
|
class: "coar-time-grid-all-day-band__columns"
|
|
@@ -2717,9 +2717,9 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2717
2717
|
style: W({ gridColumn: n + 1 }),
|
|
2718
2718
|
onPointerdown: (e) => r(e, t),
|
|
2719
2719
|
onDblclick: (e) => i(e, t)
|
|
2720
|
-
}, null, 46,
|
|
2720
|
+
}, null, 46, Er))), 128)), J(t.$slots, "default", {}, void 0, !0)], 512)], 12, Cr));
|
|
2721
2721
|
}
|
|
2722
|
-
}), [["__scopeId", "data-v-89be2910"]]),
|
|
2722
|
+
}), [["__scopeId", "data-v-89be2910"]]), Or = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2723
2723
|
__name: "CoarTimeGridColumn",
|
|
2724
2724
|
props: {
|
|
2725
2725
|
day: {},
|
|
@@ -2758,7 +2758,7 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2758
2758
|
onDblclick: o
|
|
2759
2759
|
}, [J(t.$slots, "default", {}, void 0, !0)], 38));
|
|
2760
2760
|
}
|
|
2761
|
-
}), [["__scopeId", "data-v-a1c5a0db"]]),
|
|
2761
|
+
}), [["__scopeId", "data-v-a1c5a0db"]]), kr = ["aria-label"], Ar = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2762
2762
|
__name: "CoarTimeGridAllDayOverflow",
|
|
2763
2763
|
props: {
|
|
2764
2764
|
hidden: {},
|
|
@@ -2781,15 +2781,15 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2781
2781
|
height: e.height + "px"
|
|
2782
2782
|
}),
|
|
2783
2783
|
"aria-label": e.ariaLabel,
|
|
2784
|
-
onPointerdown: r[0] ||=
|
|
2785
|
-
onDblclick: r[1] ||=
|
|
2786
|
-
onClick: r[2] ||=
|
|
2787
|
-
}, " +" + Y(e.hidden), 45,
|
|
2784
|
+
onPointerdown: r[0] ||= Et(() => {}, ["stop"]),
|
|
2785
|
+
onDblclick: r[1] ||= Et(() => {}, ["stop"]),
|
|
2786
|
+
onClick: r[2] ||= Et((e) => n("expand"), ["stop"])
|
|
2787
|
+
}, " +" + Y(e.hidden), 45, kr));
|
|
2788
2788
|
}
|
|
2789
|
-
}), [["__scopeId", "data-v-63791083"]]),
|
|
2789
|
+
}), [["__scopeId", "data-v-63791083"]]), jr = ["data-band-kind"], Mr = {
|
|
2790
2790
|
key: 0,
|
|
2791
2791
|
class: "coar-calendar-band__label"
|
|
2792
|
-
},
|
|
2792
|
+
}, Nr = 120, Pr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2793
2793
|
__name: "CoarCalendarBands",
|
|
2794
2794
|
props: {
|
|
2795
2795
|
bands: {},
|
|
@@ -2810,7 +2810,7 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2810
2810
|
return t.orientation === "horizontal" ? (n.left = r + "px", n.width = i + "px") : (n.top = r + "px", n.height = i + "px"), n;
|
|
2811
2811
|
}
|
|
2812
2812
|
function i(e) {
|
|
2813
|
-
let n = e.type === "line" && t.orientation === "horizontal" && t.extentPx !== void 0 && t.toPx(e.at) > t.extentPx -
|
|
2813
|
+
let n = e.type === "line" && t.orientation === "horizontal" && t.extentPx !== void 0 && t.toPx(e.at) > t.extentPx - Nr;
|
|
2814
2814
|
return [
|
|
2815
2815
|
"coar-calendar-band",
|
|
2816
2816
|
`coar-calendar-band--${e.kind}`,
|
|
@@ -2828,9 +2828,9 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2828
2828
|
style: W(r(t)),
|
|
2829
2829
|
"data-band-kind": t.kind,
|
|
2830
2830
|
"aria-hidden": "true"
|
|
2831
|
-
}, [t.label ? (G(), L("span",
|
|
2831
|
+
}, [t.label ? (G(), L("span", Mr, Y(t.label), 1)) : I("", !0)], 14, jr))), 128));
|
|
2832
2832
|
}
|
|
2833
|
-
}), [["__scopeId", "data-v-e622333a"]]),
|
|
2833
|
+
}), [["__scopeId", "data-v-e622333a"]]), Fr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2834
2834
|
__name: "CoarTimeSelectionLayer",
|
|
2835
2835
|
props: {
|
|
2836
2836
|
orientation: {},
|
|
@@ -2872,7 +2872,7 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2872
2872
|
segment: e.draft
|
|
2873
2873
|
}, void 0, !0)], 6)) : I("", !0)], 64));
|
|
2874
2874
|
}
|
|
2875
|
-
}), [["__scopeId", "data-v-99a46a3f"]]),
|
|
2875
|
+
}), [["__scopeId", "data-v-99a46a3f"]]), Ir = { class: "coar-time-axis-marker__duration" }, Lr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2876
2876
|
__name: "CoarTimeAxisMarker",
|
|
2877
2877
|
props: {
|
|
2878
2878
|
orientation: {},
|
|
@@ -2907,7 +2907,7 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2907
2907
|
R("span", {
|
|
2908
2908
|
class: "coar-time-axis-marker__span",
|
|
2909
2909
|
style: W(a(e.mark.startPx, e.mark.endPx))
|
|
2910
|
-
}, [R("span",
|
|
2910
|
+
}, [R("span", Ir, Y(e.mark.durationLabel), 1)], 4),
|
|
2911
2911
|
R("span", {
|
|
2912
2912
|
class: "coar-time-axis-marker__pill coar-time-axis-marker__pill--start",
|
|
2913
2913
|
style: W(i(e.mark.startPx))
|
|
@@ -2925,12 +2925,12 @@ var Jn = ["title", "aria-label"], Yn = { class: "coar-event-decorations__sr-only
|
|
|
2925
2925
|
}), [["__scopeId", "data-v-3abf3a89"]]);
|
|
2926
2926
|
//#endregion
|
|
2927
2927
|
//#region src/components/internal/originatesFromEvent.ts
|
|
2928
|
-
function
|
|
2928
|
+
function Rr(e) {
|
|
2929
2929
|
let t = e.target;
|
|
2930
2930
|
return t instanceof Element && t.closest("[data-event-id]") !== null;
|
|
2931
2931
|
}
|
|
2932
|
-
function
|
|
2933
|
-
let t = e.builder.state, n = () => X(t.timeRangeSelect), r = () => X(t.hoverIndicator), i =
|
|
2932
|
+
function zr(e) {
|
|
2933
|
+
let t = e.builder.state, n = () => X(t.timeRangeSelect), r = () => X(t.hoverIndicator), i = vt(null), a = vt(null), o = P(() => ({
|
|
2934
2934
|
start: e.timeRange.value[0] * 60,
|
|
2935
2935
|
end: e.timeRange.value[1] * 60
|
|
2936
2936
|
})), s = P(() => (e.events(), e.timezone.value, /* @__PURE__ */ new Map()));
|
|
@@ -2986,7 +2986,7 @@ function Rr(e) {
|
|
|
2986
2986
|
let t = f(e);
|
|
2987
2987
|
i.value = t ? {
|
|
2988
2988
|
...t,
|
|
2989
|
-
onEvent:
|
|
2989
|
+
onEvent: Rr(e)
|
|
2990
2990
|
} : null;
|
|
2991
2991
|
}
|
|
2992
2992
|
function g() {
|
|
@@ -3013,7 +3013,7 @@ function Rr(e) {
|
|
|
3013
3013
|
if (E(), t.touch) {
|
|
3014
3014
|
if (!t.claimed) return;
|
|
3015
3015
|
let n = u("drag", t.date, t.current, t.anchor), r = n ?? u("click", t.date, t.anchor);
|
|
3016
|
-
r &&
|
|
3016
|
+
r && vn(() => m(n ? "drag" : "click", t.date, r, e));
|
|
3017
3017
|
return;
|
|
3018
3018
|
}
|
|
3019
3019
|
if (t.dragging) {
|
|
@@ -3143,13 +3143,13 @@ function Rr(e) {
|
|
|
3143
3143
|
}
|
|
3144
3144
|
//#endregion
|
|
3145
3145
|
//#region src/composables/useTimeGridOverlays.ts
|
|
3146
|
-
var
|
|
3147
|
-
function
|
|
3146
|
+
var Br = (e) => e.hour * 60 + e.minute;
|
|
3147
|
+
function Vr(e, t, n) {
|
|
3148
3148
|
let r = [];
|
|
3149
3149
|
return e.forEach((e, i) => {
|
|
3150
3150
|
let a = `${i}-${e.kind}`;
|
|
3151
3151
|
if ("at" in e) {
|
|
3152
|
-
let i =
|
|
3152
|
+
let i = Br(e.at);
|
|
3153
3153
|
if (i < t || i > n) return;
|
|
3154
3154
|
r.push({
|
|
3155
3155
|
type: "line",
|
|
@@ -3161,7 +3161,7 @@ function Br(e, t, n) {
|
|
|
3161
3161
|
});
|
|
3162
3162
|
return;
|
|
3163
3163
|
}
|
|
3164
|
-
let o = Math.max(t,
|
|
3164
|
+
let o = Math.max(t, Br(e.start)), s = Br(e.end), c = Math.min(n, s === 0 ? 1440 : s);
|
|
3165
3165
|
c <= o || r.push({
|
|
3166
3166
|
type: "range",
|
|
3167
3167
|
key: a,
|
|
@@ -3175,7 +3175,7 @@ function Br(e, t, n) {
|
|
|
3175
3175
|
});
|
|
3176
3176
|
}), r;
|
|
3177
3177
|
}
|
|
3178
|
-
function
|
|
3178
|
+
function Hr(e) {
|
|
3179
3179
|
let t = P(() => ({
|
|
3180
3180
|
from: e.timeRange.value[0] * 60,
|
|
3181
3181
|
to: e.timeRange.value[1] * 60
|
|
@@ -3185,7 +3185,7 @@ function Vr(e) {
|
|
|
3185
3185
|
let { from: i, to: a } = t.value;
|
|
3186
3186
|
for (let t of e.days.value) {
|
|
3187
3187
|
let e = n(t);
|
|
3188
|
-
e && e.length > 0 && r.set(t.toString(),
|
|
3188
|
+
e && e.length > 0 && r.set(t.toString(), Vr(e, i, a));
|
|
3189
3189
|
}
|
|
3190
3190
|
return r;
|
|
3191
3191
|
});
|
|
@@ -3230,7 +3230,7 @@ function Vr(e) {
|
|
|
3230
3230
|
draftFor: o
|
|
3231
3231
|
};
|
|
3232
3232
|
}
|
|
3233
|
-
function
|
|
3233
|
+
function Ur(e) {
|
|
3234
3234
|
let { toPx: t, formatClock: n, formatDuration: r } = e;
|
|
3235
3235
|
if (e.drag) {
|
|
3236
3236
|
let { start: i, end: a } = e.drag;
|
|
@@ -3264,12 +3264,12 @@ function Hr(e) {
|
|
|
3264
3264
|
}
|
|
3265
3265
|
//#endregion
|
|
3266
3266
|
//#region src/components/CoarTimeGrid.vue?vue&type=script&setup=true&lang.ts
|
|
3267
|
-
var
|
|
3267
|
+
var Wr = ["aria-hidden", "aria-label"], Gr = {
|
|
3268
3268
|
class: "coar-time-grid__a11y-live",
|
|
3269
3269
|
role: "status",
|
|
3270
3270
|
"aria-live": "polite",
|
|
3271
3271
|
"aria-atomic": "true"
|
|
3272
|
-
},
|
|
3272
|
+
}, Kr = ["data-hour"], qr = 15, Jr = 2, Yr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
3273
3273
|
__name: "CoarTimeGrid",
|
|
3274
3274
|
props: {
|
|
3275
3275
|
builder: {},
|
|
@@ -3281,7 +3281,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3281
3281
|
},
|
|
3282
3282
|
emits: ["swipeState"],
|
|
3283
3283
|
setup(e, { expose: t, emit: n }) {
|
|
3284
|
-
let r = e, i = n, { t: a } =
|
|
3284
|
+
let r = e, i = n, { t: a } = Dt(), o = xt(), s = P(() => {
|
|
3285
3285
|
let e = r.builder.state, t = X(e.timeRange);
|
|
3286
3286
|
return {
|
|
3287
3287
|
events: r.window ? r.builder.api.getEventsForWindow(r.window) : r.builder.api.getVisibleEvents(),
|
|
@@ -3305,7 +3305,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3305
3305
|
dayHeaderRenderer: e.dayHeaderRenderer,
|
|
3306
3306
|
dstPolicy: X(e.dstPolicy)
|
|
3307
3307
|
};
|
|
3308
|
-
}), c = P(() => s.value.events), l = P(() => s.value.timeRange), u = P(() => s.value.slotDuration), d = P(() => s.value.pixelsPerHour), f = P(() => s.value.timezone), p = P(() => s.value.density), m = P(() => s.value.canDrop), { nowMinutesFromGridStart: h, isToday: g, isWeekend: v, formatDayHeader: y, hourLabels: b, formatClock: x, formatDuration: S, cardTimeLabel: C, cardLocation: ee, eventTitle: w, eventBgFor: T, eventBorderFor: E, eventInkFor: D, eventAriaLabel: te, kbdPreviewAriaLabel: ne, a11y: O, onA11yAnnounce: re } =
|
|
3308
|
+
}), c = P(() => s.value.events), l = P(() => s.value.timeRange), u = P(() => s.value.slotDuration), d = P(() => s.value.pixelsPerHour), f = P(() => s.value.timezone), p = P(() => s.value.density), m = P(() => s.value.canDrop), { nowMinutesFromGridStart: h, isToday: g, isWeekend: v, formatDayHeader: y, hourLabels: b, formatClock: x, formatDuration: S, cardTimeLabel: C, cardLocation: ee, eventTitle: w, eventBgFor: T, eventBorderFor: E, eventInkFor: D, eventAriaLabel: te, kbdPreviewAriaLabel: ne, a11y: O, onA11yAnnounce: re } = Kn({
|
|
3309
3309
|
state: s,
|
|
3310
3310
|
timeRange: P(() => s.value.timeRange)
|
|
3311
3311
|
}), k = P(() => r.dates ?? []), A = k, ie = {
|
|
@@ -3330,16 +3330,16 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3330
3330
|
endCol: 0,
|
|
3331
3331
|
clippedStart: !1,
|
|
3332
3332
|
clippedEnd: !1
|
|
3333
|
-
}, ae =
|
|
3333
|
+
}, ae = St("columns"), oe = K(null);
|
|
3334
3334
|
function se(e) {
|
|
3335
3335
|
oe.value = e;
|
|
3336
3336
|
}
|
|
3337
|
-
let le = K(!1), ue =
|
|
3337
|
+
let le = K(!1), ue = Fn({
|
|
3338
3338
|
columnsEl: ae,
|
|
3339
3339
|
enabled: () => s.value.swipeNavigation && !r.ghost && !le.value,
|
|
3340
3340
|
onCommit: (e) => e === 1 ? r.builder.api.next() : r.builder.api.prev()
|
|
3341
3341
|
});
|
|
3342
|
-
|
|
3342
|
+
Ct(() => ({
|
|
3343
3343
|
engaged: ue.engaged.value,
|
|
3344
3344
|
swiping: ue.isSwiping.value,
|
|
3345
3345
|
settling: ue.settling.value,
|
|
@@ -3353,12 +3353,12 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3353
3353
|
e = e.parentElement;
|
|
3354
3354
|
}
|
|
3355
3355
|
return null;
|
|
3356
|
-
}), fe = k, pe = P(() =>
|
|
3356
|
+
}), fe = k, pe = P(() => qr), me = wn({
|
|
3357
3357
|
columnsRef: ae,
|
|
3358
3358
|
days: fe,
|
|
3359
3359
|
pixelsPerHour: d,
|
|
3360
3360
|
topBufferMinutes: pe
|
|
3361
|
-
}), { dnd: M, workingEvents: he, dragSourceSnapshot: _e, dragAllDaySourceSnapshot: ve, invalidTimedGhost: ye, invalidAllDayGhost: be, isPreviewEvent: xe, onEventPointerdown: Ce, onEventKeydown: Te, keyboardDrag: Ee } =
|
|
3361
|
+
}), { dnd: M, workingEvents: he, dragSourceSnapshot: _e, dragAllDaySourceSnapshot: ve, invalidTimedGhost: ye, invalidAllDayGhost: be, isPreviewEvent: xe, onEventPointerdown: Ce, onEventKeydown: Te, keyboardDrag: Ee } = In({
|
|
3362
3362
|
events: () => c.value,
|
|
3363
3363
|
days: fe,
|
|
3364
3364
|
timeRange: l,
|
|
@@ -3380,7 +3380,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3380
3380
|
},
|
|
3381
3381
|
onEventDrop: (e) => r.builder.state.onEventDrop?.(e),
|
|
3382
3382
|
onAnnounce: (e, t) => re(e, t)
|
|
3383
|
-
}), Oe =
|
|
3383
|
+
}), Oe = zr({
|
|
3384
3384
|
builder: r.builder,
|
|
3385
3385
|
axis: me,
|
|
3386
3386
|
timeRange: l,
|
|
@@ -3388,7 +3388,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3388
3388
|
timezone: f,
|
|
3389
3389
|
events: () => c.value,
|
|
3390
3390
|
onClaim: (e) => ue.release(e)
|
|
3391
|
-
}), ke = P(() => !r.ghost && X(r.builder.state.timeRangeSelect)), Ae =
|
|
3391
|
+
}), ke = P(() => !r.ghost && X(r.builder.state.timeRangeSelect)), Ae = Hr({
|
|
3392
3392
|
builder: r.builder,
|
|
3393
3393
|
days: k,
|
|
3394
3394
|
timeRange: l,
|
|
@@ -3397,7 +3397,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3397
3397
|
function je(e) {
|
|
3398
3398
|
return tt(e - l.value[0] * 60);
|
|
3399
3399
|
}
|
|
3400
|
-
let Me = P(() => r.ghost ? null :
|
|
3400
|
+
let Me = P(() => r.ghost ? null : Ur({
|
|
3401
3401
|
drag: Oe.dragSelection.value,
|
|
3402
3402
|
hoverMinute: Oe.hoverMinute.value,
|
|
3403
3403
|
draft: Ae.draft.value,
|
|
@@ -3406,7 +3406,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3406
3406
|
toPx: je,
|
|
3407
3407
|
formatClock: x,
|
|
3408
3408
|
formatDuration: S
|
|
3409
|
-
})), Ne = P(() => r.ghost || Oe.hoverMinute.value === null ? null : je(Oe.hoverMinute.value)), Pe = P(() => l.value[1] - l.value[0]), Fe = P(() => Pe.value * d.value + 2 * (d.value *
|
|
3409
|
+
})), Ne = P(() => r.ghost || Oe.hoverMinute.value === null ? null : je(Oe.hoverMinute.value)), Pe = P(() => l.value[1] - l.value[0]), Fe = P(() => Pe.value * d.value + 2 * (d.value * qr) / 60), Ie = P(() => d.value * u.value / 60), Le = P(() => {
|
|
3410
3410
|
let e = M.draggedEvent.value, t = M.dragMode.value, n = e !== null && (t === "timed" || t === "timed-resize-start" || t === "timed-resize-end") ? `${e.id}__preview` : void 0;
|
|
3411
3411
|
return k.value.map((e) => {
|
|
3412
3412
|
let t = Se(he.value, {
|
|
@@ -3444,7 +3444,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3444
3444
|
width: `calc(${100 / t.laneCount}% - 4px)`
|
|
3445
3445
|
};
|
|
3446
3446
|
}
|
|
3447
|
-
let ze = K(0), Be =
|
|
3447
|
+
let ze = K(0), Be = St("allDayLaneMetric"), Ve = K(24), He = null;
|
|
3448
3448
|
ft(() => {
|
|
3449
3449
|
let e = ae.value;
|
|
3450
3450
|
if (!e) return;
|
|
@@ -3477,29 +3477,29 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3477
3477
|
expanded: Ke.value || ve.value !== null,
|
|
3478
3478
|
columnCount: A.value.length
|
|
3479
3479
|
}));
|
|
3480
|
-
|
|
3480
|
+
Ct(() => qe.value.exceedsCap, (e) => {
|
|
3481
3481
|
e || (Ke.value = !1);
|
|
3482
3482
|
});
|
|
3483
|
-
let Je = P(() => qe.value.visibleLanes), Ye = P(() => et(Je.value, s.value.allDayBandMode, s.value.allDayMaxVisibleLanes)), Xe = P(() => 4 + (Je.value - 1) * (Ve.value +
|
|
3483
|
+
let Je = P(() => qe.value.visibleLanes), Ye = P(() => et(Je.value, s.value.allDayBandMode, s.value.allDayMaxVisibleLanes)), Xe = P(() => 4 + (Je.value - 1) * (Ve.value + Jr));
|
|
3484
3484
|
function Ze(e) {
|
|
3485
3485
|
return a("coar.calendar.timegrid.allDayMore", { count: e }, `${e} more all-day events — show all`);
|
|
3486
3486
|
}
|
|
3487
|
-
let Qe = P(() => Ye.value === 0 ? 0 : Ye.value * (Ve.value +
|
|
3487
|
+
let Qe = P(() => Ye.value === 0 ? 0 : Ye.value * (Ve.value + Jr) + 8);
|
|
3488
3488
|
function $e(e) {
|
|
3489
3489
|
return e * d.value / 60;
|
|
3490
3490
|
}
|
|
3491
3491
|
function tt(e) {
|
|
3492
|
-
return $e(e +
|
|
3492
|
+
return $e(e + qr);
|
|
3493
3493
|
}
|
|
3494
3494
|
function rt(e) {
|
|
3495
|
-
let t = e.currentTarget.getBoundingClientRect(), n = e.clientY - t.top - $e(
|
|
3495
|
+
let t = e.currentTarget.getBoundingClientRect(), n = e.clientY - t.top - $e(qr), r = Math.max(0, Math.ceil(Pe.value * 60 / u.value) - 1), i = Math.min(r, Math.max(0, Math.floor(n / Ie.value))) * u.value, a = l.value[0] * 60 + i, o = Math.floor(a / 60), s = a % 60;
|
|
3496
3496
|
return o < 0 || o >= 24 ? null : _.PlainTime.from({
|
|
3497
3497
|
hour: o,
|
|
3498
3498
|
minute: s
|
|
3499
3499
|
});
|
|
3500
3500
|
}
|
|
3501
3501
|
function B(e, t) {
|
|
3502
|
-
if (
|
|
3502
|
+
if (Rr(e)) return;
|
|
3503
3503
|
let n = rt(e);
|
|
3504
3504
|
if (!n) return;
|
|
3505
3505
|
let i = Oe.onSurfacePointerdown(e, () => r.builder.state.onTimeClick?.({
|
|
@@ -3507,7 +3507,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3507
3507
|
time: n,
|
|
3508
3508
|
native: e
|
|
3509
3509
|
}));
|
|
3510
|
-
i && (ue.onPointerdown(e, { onTap: () =>
|
|
3510
|
+
i && (ue.onPointerdown(e, { onTap: () => vn(i) }) || yn(e, i));
|
|
3511
3511
|
}
|
|
3512
3512
|
function it(e) {
|
|
3513
3513
|
ue.onPointerdown(e, { allowMouse: !0 });
|
|
@@ -3521,7 +3521,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3521
3521
|
});
|
|
3522
3522
|
}
|
|
3523
3523
|
function V(e, t) {
|
|
3524
|
-
|
|
3524
|
+
Rr(e) || yn(e, () => r.builder.state.onDateClick?.({
|
|
3525
3525
|
date: t,
|
|
3526
3526
|
native: e
|
|
3527
3527
|
}));
|
|
@@ -3568,11 +3568,11 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3568
3568
|
class: "coar-time-grid__all-day-lane-metric",
|
|
3569
3569
|
"aria-hidden": "true"
|
|
3570
3570
|
}, null, 512),
|
|
3571
|
-
R("div",
|
|
3571
|
+
R("div", Gr, Y(Z(O).message.value), 1),
|
|
3572
3572
|
R("div", {
|
|
3573
3573
|
class: "coar-time-grid__sticky-top",
|
|
3574
3574
|
style: W(r.ghost && r.ghostTopPx ? { height: r.ghostTopPx + "px" } : void 0)
|
|
3575
|
-
}, [z(
|
|
3575
|
+
}, [z(Sr, {
|
|
3576
3576
|
days: Z(A),
|
|
3577
3577
|
"is-today": Z(g),
|
|
3578
3578
|
"is-weekend": Z(v),
|
|
@@ -3582,7 +3582,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3582
3582
|
onCellsPointerdown: it
|
|
3583
3583
|
}, nt({ _: 2 }, [t.$slots.dayHeader || s.value.dayHeaderRenderer ? {
|
|
3584
3584
|
name: "dayHeader",
|
|
3585
|
-
fn: Q((e) => [t.$slots.dayHeader ? J(t.$slots, "dayHeader", U(lt({ key: 0 }, e)), void 0, !0) : s.value.dayHeaderRenderer ? (G(), F(Z(
|
|
3585
|
+
fn: Q((e) => [t.$slots.dayHeader ? J(t.$slots, "dayHeader", U(lt({ key: 0 }, e)), void 0, !0) : s.value.dayHeaderRenderer ? (G(), F(Z(Jn), {
|
|
3586
3586
|
key: 1,
|
|
3587
3587
|
renderer: s.value.dayHeaderRenderer,
|
|
3588
3588
|
ctx: e
|
|
@@ -3595,7 +3595,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3595
3595
|
"format-label",
|
|
3596
3596
|
"density",
|
|
3597
3597
|
"swipeable"
|
|
3598
|
-
]), (r.ghost ? (r.ghostBandPx ?? 0) > 0 : Ye.value > 0) ? (G(), F(
|
|
3598
|
+
]), (r.ghost ? (r.ghostBandPx ?? 0) > 0 : Ye.value > 0) ? (G(), F(Dr, {
|
|
3599
3599
|
key: 0,
|
|
3600
3600
|
days: Z(A),
|
|
3601
3601
|
"axis-label": Z(a)("coar.calendar.timegrid.allDay", void 0, "all-day"),
|
|
@@ -3610,7 +3610,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3610
3610
|
onCollapse: n[3] ||= (e) => Ke.value = !1
|
|
3611
3611
|
}, {
|
|
3612
3612
|
default: Q(() => [
|
|
3613
|
-
(G(!0), L(N, null, q(qe.value.overflow, (e) => (G(), F(
|
|
3613
|
+
(G(!0), L(N, null, q(qe.value.overflow, (e) => (G(), F(Ar, {
|
|
3614
3614
|
key: `overflow-${e.col}`,
|
|
3615
3615
|
hidden: e.hidden,
|
|
3616
3616
|
ariaLabel: Ze(e.hidden),
|
|
@@ -3627,7 +3627,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3627
3627
|
"width",
|
|
3628
3628
|
"height"
|
|
3629
3629
|
]))), 128)),
|
|
3630
|
-
(G(!0), L(N, null, q(qe.value.bars, (e) => (G(), F(
|
|
3630
|
+
(G(!0), L(N, null, q(qe.value.bars, (e) => (G(), F(vr, {
|
|
3631
3631
|
key: e.event.id,
|
|
3632
3632
|
event: e.event,
|
|
3633
3633
|
bar: e,
|
|
@@ -3639,7 +3639,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3639
3639
|
title: Z(w)(e.event),
|
|
3640
3640
|
"aria-label": Z(xe)(e.event.id) && Z(Ee) ? Z(ne)(e.event) : Z(te)(e.event),
|
|
3641
3641
|
density: p.value,
|
|
3642
|
-
top: 4 + e.lane * (Ve.value +
|
|
3642
|
+
top: 4 + e.lane * (Ve.value + Jr),
|
|
3643
3643
|
left: `calc(${e.startCol / Z(A).length * 100}% + ${e.startCol === 0 ? 4 : 2}px)`,
|
|
3644
3644
|
width: `calc(${(e.endCol - e.startCol + 1) / Z(A).length * 100}% - ${(e.startCol === 0 ? 4 : 2) + (e.endCol === Z(A).length - 1 ? 4 : 2)}px)`,
|
|
3645
3645
|
height: Ve.value,
|
|
@@ -3668,7 +3668,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3668
3668
|
key: 0,
|
|
3669
3669
|
event: e,
|
|
3670
3670
|
layout: n
|
|
3671
|
-
}, void 0, !0) : s.value.eventRenderer ? (G(), F(Z(
|
|
3671
|
+
}, void 0, !0) : s.value.eventRenderer ? (G(), F(Z(qn), {
|
|
3672
3672
|
key: 1,
|
|
3673
3673
|
renderer: s.value.eventRenderer,
|
|
3674
3674
|
ctx: {
|
|
@@ -3707,7 +3707,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3707
3707
|
"onStartResize",
|
|
3708
3708
|
"onEndResize"
|
|
3709
3709
|
]))), 128)),
|
|
3710
|
-
Z(ve) ? (G(), F(
|
|
3710
|
+
Z(ve) ? (G(), F(vr, {
|
|
3711
3711
|
key: 0,
|
|
3712
3712
|
variant: "phantom",
|
|
3713
3713
|
event: Z(ve).event,
|
|
@@ -3717,7 +3717,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3717
3717
|
border: Z(E)(Z(ve).event),
|
|
3718
3718
|
title: Z(w)(Z(ve).event),
|
|
3719
3719
|
density: p.value,
|
|
3720
|
-
top: 4 + Z(ve).lane * (Ve.value +
|
|
3720
|
+
top: 4 + Z(ve).lane * (Ve.value + Jr),
|
|
3721
3721
|
left: `calc(${Z(ve).startCol / Z(A).length * 100}% + ${Z(ve).startCol === 0 ? 4 : 2}px)`,
|
|
3722
3722
|
width: `calc(${(Z(ve).endCol - Z(ve).startCol + 1) / Z(A).length * 100}% - ${(Z(ve).startCol === 0 ? 4 : 2) + (Z(ve).endCol === Z(A).length - 1 ? 4 : 2)}px)`,
|
|
3723
3723
|
height: Ve.value,
|
|
@@ -3738,7 +3738,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3738
3738
|
"clipped-start",
|
|
3739
3739
|
"clipped-end"
|
|
3740
3740
|
])) : I("", !0),
|
|
3741
|
-
Z(be) && Z(M).draggedEvent.value ? (G(), F(
|
|
3741
|
+
Z(be) && Z(M).draggedEvent.value ? (G(), F(vr, {
|
|
3742
3742
|
key: 1,
|
|
3743
3743
|
variant: "invalid",
|
|
3744
3744
|
event: Z(M).draggedEvent.value,
|
|
@@ -3749,7 +3749,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3749
3749
|
title: Z(w)(Z(M).draggedEvent.value),
|
|
3750
3750
|
"snapping-back": Z(M).snappingBack.value,
|
|
3751
3751
|
density: p.value,
|
|
3752
|
-
top: 4 + (Z(ve)?.lane ?? 0) * (Ve.value +
|
|
3752
|
+
top: 4 + (Z(ve)?.lane ?? 0) * (Ve.value + Jr),
|
|
3753
3753
|
left: `calc(${Z(be).startCol / Z(A).length * 100}% + ${Z(be).startCol === 0 ? 4 : 2}px)`,
|
|
3754
3754
|
width: `calc(${(Z(be).endCol - Z(be).startCol + 1) / Z(A).length * 100}% - ${(Z(be).startCol === 0 ? 4 : 2) + (Z(be).endCol === Z(A).length - 1 ? 4 : 2)}px)`,
|
|
3755
3755
|
height: Ve.value,
|
|
@@ -3790,7 +3790,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3790
3790
|
class: "coar-time-grid__hour-label",
|
|
3791
3791
|
"data-hour": e.hour,
|
|
3792
3792
|
style: W({ top: tt((e.hour - l.value[0]) * 60) + "px" })
|
|
3793
|
-
}, Y(e.label), 13,
|
|
3793
|
+
}, Y(e.label), 13, Kr))), 128)), Me.value ? (G(), F(Lr, {
|
|
3794
3794
|
key: 0,
|
|
3795
3795
|
orientation: "vertical",
|
|
3796
3796
|
mark: Me.value
|
|
@@ -3799,25 +3799,25 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3799
3799
|
class: "coar-time-grid__columns",
|
|
3800
3800
|
onPointermove: n[6] ||= (...e) => Z(Oe).onPointermove && Z(Oe).onPointermove(...e),
|
|
3801
3801
|
onPointerleave: n[7] ||= (...e) => Z(Oe).onPointerleave && Z(Oe).onPointerleave(...e)
|
|
3802
|
-
}, [(G(!0), L(N, null, q(Le.value, (e) => (G(), F(
|
|
3802
|
+
}, [(G(!0), L(N, null, q(Le.value, (e) => (G(), F(Or, {
|
|
3803
3803
|
key: e.date.toString(),
|
|
3804
3804
|
day: e.date,
|
|
3805
3805
|
"is-today": Z(g)(e.date),
|
|
3806
3806
|
"is-weekend": Z(v)(e.date),
|
|
3807
3807
|
"height-px": Fe.value,
|
|
3808
3808
|
"slot-height-px": Ie.value,
|
|
3809
|
-
"render-buffer-offset-px": $e(
|
|
3809
|
+
"render-buffer-offset-px": $e(qr),
|
|
3810
3810
|
onPointerdown: n[4] ||= (e, t) => B(e, t),
|
|
3811
3811
|
onDblclick: n[5] ||= (e, t) => at(e, t)
|
|
3812
3812
|
}, {
|
|
3813
3813
|
default: Q(() => [
|
|
3814
|
-
z(
|
|
3814
|
+
z(Pr, {
|
|
3815
3815
|
bands: Z(Ae).bandsFor(e.date),
|
|
3816
3816
|
layer: "below",
|
|
3817
3817
|
orientation: "vertical",
|
|
3818
3818
|
"to-px": je
|
|
3819
3819
|
}, null, 8, ["bands"]),
|
|
3820
|
-
(G(!0), L(N, null, q(e.positioned, (n) => (G(), F(
|
|
3820
|
+
(G(!0), L(N, null, q(e.positioned, (n) => (G(), F(mr, {
|
|
3821
3821
|
key: n.event.id,
|
|
3822
3822
|
event: n.event,
|
|
3823
3823
|
positioned: n,
|
|
@@ -3862,7 +3862,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3862
3862
|
key: 0,
|
|
3863
3863
|
event: e,
|
|
3864
3864
|
layout: n
|
|
3865
|
-
}, void 0, !0) : s.value.eventRenderer ? (G(), F(Z(
|
|
3865
|
+
}, void 0, !0) : s.value.eventRenderer ? (G(), F(Z(qn), {
|
|
3866
3866
|
key: 1,
|
|
3867
3867
|
renderer: s.value.eventRenderer,
|
|
3868
3868
|
ctx: {
|
|
@@ -3876,7 +3876,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3876
3876
|
}, null, 8, ["renderer", "ctx"])) : I("", !0)]),
|
|
3877
3877
|
key: "0"
|
|
3878
3878
|
} : void 0]), 1032, /* @__PURE__ */ "event.positioned.variant.kbd-active.bg.ink.border.title.location.time-label.anatomy.display-zone.aria-label.density.top.height.left.width.z-index.clipped-top.clipped-bottom.onPointerdown.onKeydown.onDblclick.onPointerenter.onPointerleave.onStartResize.onEndResize".split(".")))), 128)),
|
|
3879
|
-
Z(_e) && Z(_e).dayKey === e.date.toString() ? (G(), F(
|
|
3879
|
+
Z(_e) && Z(_e).dayKey === e.date.toString() ? (G(), F(mr, {
|
|
3880
3880
|
key: 0,
|
|
3881
3881
|
variant: "phantom",
|
|
3882
3882
|
event: Z(_e).event,
|
|
@@ -3906,7 +3906,7 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3906
3906
|
"width",
|
|
3907
3907
|
"z-index"
|
|
3908
3908
|
])) : I("", !0),
|
|
3909
|
-
Z(ye) && Z(ye).dayKey === e.date.toString() && Z(M).draggedEvent.value ? (G(), F(
|
|
3909
|
+
Z(ye) && Z(ye).dayKey === e.date.toString() && Z(M).draggedEvent.value ? (G(), F(mr, {
|
|
3910
3910
|
key: 1,
|
|
3911
3911
|
variant: "invalid",
|
|
3912
3912
|
event: Z(M).draggedEvent.value,
|
|
@@ -3933,17 +3933,17 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3933
3933
|
"top",
|
|
3934
3934
|
"height"
|
|
3935
3935
|
])) : I("", !0),
|
|
3936
|
-
Z(g)(e.date) && Z(h) !== null ? (G(), F(
|
|
3936
|
+
Z(g)(e.date) && Z(h) !== null ? (G(), F(yr, {
|
|
3937
3937
|
key: 2,
|
|
3938
3938
|
"top-px": tt(Z(h))
|
|
3939
3939
|
}, null, 8, ["top-px"])) : I("", !0),
|
|
3940
|
-
z(
|
|
3940
|
+
z(Pr, {
|
|
3941
3941
|
bands: Z(Ae).bandsFor(e.date),
|
|
3942
3942
|
layer: "above",
|
|
3943
3943
|
orientation: "vertical",
|
|
3944
3944
|
"to-px": je
|
|
3945
3945
|
}, null, 8, ["bands"]),
|
|
3946
|
-
z(
|
|
3946
|
+
z(Fr, {
|
|
3947
3947
|
orientation: "vertical",
|
|
3948
3948
|
"to-px": je,
|
|
3949
3949
|
selection: r.ghost ? null : Z(Oe).selectionFor(e.date),
|
|
@@ -3968,19 +3968,19 @@ var Ur = ["aria-hidden", "aria-label"], Wr = {
|
|
|
3968
3968
|
style: W({ top: Ne.value + "px" }),
|
|
3969
3969
|
"aria-hidden": "true"
|
|
3970
3970
|
}, null, 4))], 544)], 4)
|
|
3971
|
-
], 14,
|
|
3971
|
+
], 14, Wr));
|
|
3972
3972
|
}
|
|
3973
3973
|
}), [["__scopeId", "data-v-52402bad"]]);
|
|
3974
3974
|
//#endregion
|
|
3975
3975
|
//#region src/core/timeRowsLayout.ts
|
|
3976
|
-
function
|
|
3976
|
+
function Xr(e, t) {
|
|
3977
3977
|
let n = Math.max(1, e), r = n * t.laneHeightPx + (n - 1) * t.laneGapPx + 2 * t.rowPaddingPx;
|
|
3978
3978
|
return Math.max(t.minRowHeightPx, r);
|
|
3979
3979
|
}
|
|
3980
|
-
function
|
|
3980
|
+
function Zr(e, t) {
|
|
3981
3981
|
return t.rowPaddingPx + e * (t.laneHeightPx + t.laneGapPx);
|
|
3982
3982
|
}
|
|
3983
|
-
function
|
|
3983
|
+
function Qr(e, t) {
|
|
3984
3984
|
let n = [], r = 0;
|
|
3985
3985
|
for (let i of t.days) {
|
|
3986
3986
|
let a = Se(e, {
|
|
@@ -3988,7 +3988,7 @@ function Zr(e, t) {
|
|
|
3988
3988
|
timeRange: t.timeRange,
|
|
3989
3989
|
timezone: t.timezone,
|
|
3990
3990
|
priorityId: t.priorityId
|
|
3991
|
-
}), o = a.reduce((e, t) => Math.max(e, t.laneCount), 1), s = Math.max(
|
|
3991
|
+
}), o = a.reduce((e, t) => Math.max(e, t.laneCount), 1), s = Math.max(Xr(o, t), t.rowMinHeightPx?.(i) ?? 0);
|
|
3992
3992
|
n.push({
|
|
3993
3993
|
date: i,
|
|
3994
3994
|
positioned: a,
|
|
@@ -4002,11 +4002,11 @@ function Zr(e, t) {
|
|
|
4002
4002
|
totalHeightPx: r
|
|
4003
4003
|
};
|
|
4004
4004
|
}
|
|
4005
|
-
function
|
|
4005
|
+
function $r(e, t, n) {
|
|
4006
4006
|
let r = e / 60;
|
|
4007
4007
|
return n <= 0 || t <= 0 ? r : Math.max(r, n / (t * 60));
|
|
4008
4008
|
}
|
|
4009
|
-
function
|
|
4009
|
+
function ei(e, t) {
|
|
4010
4010
|
for (let n = 0; n < e.length; n++) {
|
|
4011
4011
|
let r = e[n];
|
|
4012
4012
|
if (t >= r.topPx && t < r.topPx + r.heightPx) return n;
|
|
@@ -4015,23 +4015,23 @@ function $r(e, t) {
|
|
|
4015
4015
|
}
|
|
4016
4016
|
//#endregion
|
|
4017
4017
|
//#region src/components/internal/time-rows/CoarTimeRowsEvent.vue?vue&type=script&setup=true&lang.ts
|
|
4018
|
-
var
|
|
4018
|
+
var ti = [
|
|
4019
4019
|
"data-event-id",
|
|
4020
4020
|
"tabindex",
|
|
4021
4021
|
"role",
|
|
4022
4022
|
"aria-label",
|
|
4023
4023
|
"aria-hidden"
|
|
4024
|
-
],
|
|
4024
|
+
], ni = {
|
|
4025
4025
|
key: 0,
|
|
4026
4026
|
class: "coar-time-rows-event__point-edge",
|
|
4027
4027
|
"aria-hidden": "true"
|
|
4028
|
-
},
|
|
4028
|
+
}, ri = { class: "coar-time-rows-event__default" }, ii = { class: "coar-time-rows-event__title" }, ai = {
|
|
4029
4029
|
key: 0,
|
|
4030
4030
|
class: "coar-time-rows-event__time"
|
|
4031
|
-
},
|
|
4031
|
+
}, oi = {
|
|
4032
4032
|
key: 3,
|
|
4033
4033
|
class: "coar-time-rows-event__default"
|
|
4034
|
-
},
|
|
4034
|
+
}, si = { class: "coar-time-rows-event__title" }, ci = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
4035
4035
|
__name: "CoarTimeRowsEvent",
|
|
4036
4036
|
props: {
|
|
4037
4037
|
event: {},
|
|
@@ -4125,7 +4125,7 @@ var ei = [
|
|
|
4125
4125
|
onKeydown: l,
|
|
4126
4126
|
onDblclick: u
|
|
4127
4127
|
}, [
|
|
4128
|
-
a.value && !e.clippedStart ? (G(), L("div",
|
|
4128
|
+
a.value && !e.clippedStart ? (G(), L("div", ni)) : I("", !0),
|
|
4129
4129
|
i.value && !a.value ? (G(), L("div", {
|
|
4130
4130
|
key: 1,
|
|
4131
4131
|
class: "coar-time-rows-event__resize coar-time-rows-event__resize--start",
|
|
@@ -4136,57 +4136,57 @@ var ei = [
|
|
|
4136
4136
|
key: 2,
|
|
4137
4137
|
event: e.event,
|
|
4138
4138
|
positioned: e.positioned
|
|
4139
|
-
}, () => [R("div",
|
|
4140
|
-
z(
|
|
4139
|
+
}, () => [R("div", ri, [
|
|
4140
|
+
z(er, {
|
|
4141
4141
|
event: e.event,
|
|
4142
4142
|
"display-zone": e.displayZone,
|
|
4143
4143
|
size: "s"
|
|
4144
4144
|
}, null, 8, ["event", "display-zone"]),
|
|
4145
|
-
R("span",
|
|
4146
|
-
e.showTime && e.timeLabel ? (G(), L("span",
|
|
4147
|
-
z(
|
|
4145
|
+
R("span", ii, Y(e.title), 1),
|
|
4146
|
+
e.showTime && e.timeLabel ? (G(), L("span", ai, Y(e.timeLabel), 1)) : I("", !0),
|
|
4147
|
+
z(ir, {
|
|
4148
4148
|
event: e.event,
|
|
4149
4149
|
max: 2,
|
|
4150
4150
|
size: "xs"
|
|
4151
4151
|
}, null, 8, ["event"])
|
|
4152
|
-
])], !0) : (G(), L("div",
|
|
4152
|
+
])], !0) : (G(), L("div", oi, [R("span", si, Y(e.title), 1)])),
|
|
4153
4153
|
i.value && !a.value ? (G(), L("div", {
|
|
4154
4154
|
key: 4,
|
|
4155
4155
|
class: "coar-time-rows-event__resize coar-time-rows-event__resize--end",
|
|
4156
4156
|
"aria-hidden": "true",
|
|
4157
4157
|
onPointerdown: f
|
|
4158
4158
|
}, null, 32)) : I("", !0)
|
|
4159
|
-
], 46,
|
|
4159
|
+
], 46, ti));
|
|
4160
4160
|
}
|
|
4161
|
-
}), [["__scopeId", "data-v-61aefbf7"]]),
|
|
4161
|
+
}), [["__scopeId", "data-v-61aefbf7"]]), li = ["aria-label"], ui = {
|
|
4162
4162
|
class: "coar-time-rows__a11y-live",
|
|
4163
4163
|
role: "status",
|
|
4164
4164
|
"aria-live": "polite",
|
|
4165
4165
|
"aria-atomic": "true"
|
|
4166
|
-
},
|
|
4166
|
+
}, di = {
|
|
4167
4167
|
ref: "scroller",
|
|
4168
4168
|
class: "coar-time-rows__scroller"
|
|
4169
|
-
},
|
|
4169
|
+
}, fi = {
|
|
4170
4170
|
class: "coar-time-rows__header",
|
|
4171
4171
|
"aria-hidden": "true"
|
|
4172
|
-
},
|
|
4172
|
+
}, pi = ["data-hour"], mi = ["data-day-key", "aria-label"], hi = ["onPointerdown", "onDblclick"], gi = {
|
|
4173
4173
|
key: 2,
|
|
4174
4174
|
class: "coar-time-rows__day-label"
|
|
4175
|
-
},
|
|
4175
|
+
}, _i = [
|
|
4176
4176
|
"data-event-id",
|
|
4177
4177
|
"aria-label",
|
|
4178
4178
|
"title",
|
|
4179
4179
|
"onPointerdown",
|
|
4180
4180
|
"onKeydown",
|
|
4181
4181
|
"onDblclick"
|
|
4182
|
-
],
|
|
4182
|
+
], vi = ["onPointerdown", "onDblclick"], yi = 28, bi = 18, xi = 2, Si = 20, Ci = 110, wi = 110, Ti = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
4183
4183
|
__name: "CoarTimeRows",
|
|
4184
4184
|
props: {
|
|
4185
4185
|
builder: {},
|
|
4186
4186
|
dates: {}
|
|
4187
4187
|
},
|
|
4188
4188
|
setup(e, { expose: t }) {
|
|
4189
|
-
let n = e, r =
|
|
4189
|
+
let n = e, r = xt(), { t: i } = Dt(), a = P(() => {
|
|
4190
4190
|
let e = n.builder.state, t = X(e.timeRange);
|
|
4191
4191
|
return {
|
|
4192
4192
|
events: n.builder.api.getVisibleEvents(),
|
|
@@ -4207,7 +4207,7 @@ var ei = [
|
|
|
4207
4207
|
dayHeaderRenderer: e.dayHeaderRenderer,
|
|
4208
4208
|
dstPolicy: X(e.dstPolicy)
|
|
4209
4209
|
};
|
|
4210
|
-
}), o = P(() => a.value.timeRange), s = P(() => a.value.slotDuration), c = P(() => a.value.timezone), l = P(() => a.value.density), u = P(() => n.dates), { nowMinutesFromGridStart: d, isToday: f, isWeekend: p, formatDayHeader: m, hourLabels: h, formatClock: g, formatDuration: v, cardTimeLabel: y, eventTitle: x, eventBgFor: S, eventBorderFor: C, eventInkFor: ee, eventAriaLabel: w, kbdPreviewAriaLabel: T, a11y: E, onA11yAnnounce: D } =
|
|
4210
|
+
}), o = P(() => a.value.timeRange), s = P(() => a.value.slotDuration), c = P(() => a.value.timezone), l = P(() => a.value.density), u = P(() => n.dates), { nowMinutesFromGridStart: d, isToday: f, isWeekend: p, formatDayHeader: m, hourLabels: h, formatClock: g, formatDuration: v, cardTimeLabel: y, eventTitle: x, eventBgFor: S, eventBorderFor: C, eventInkFor: ee, eventAriaLabel: w, kbdPreviewAriaLabel: T, a11y: E, onA11yAnnounce: D } = Kn({
|
|
4211
4211
|
state: a,
|
|
4212
4212
|
timeRange: o
|
|
4213
4213
|
}), te = P(() => Math.max(48, Math.round(a.value.dayLabelWidth))), ne = P(() => ({
|
|
@@ -4215,14 +4215,14 @@ var ei = [
|
|
|
4215
4215
|
laneGapPx: 2,
|
|
4216
4216
|
rowPaddingPx: 4,
|
|
4217
4217
|
minRowHeightPx: l.value === "compact" ? 36 : 44
|
|
4218
|
-
})), O =
|
|
4218
|
+
})), O = St("scroller"), re = St("body"), k = K(0), A = null;
|
|
4219
4219
|
ft(() => {
|
|
4220
4220
|
let e = O.value;
|
|
4221
4221
|
e && (k.value = e.clientWidth, !(typeof ResizeObserver > "u") && (A = new ResizeObserver(() => {
|
|
4222
4222
|
k.value = e.clientWidth;
|
|
4223
4223
|
}), A.observe(e)));
|
|
4224
4224
|
}), dt(() => A?.disconnect());
|
|
4225
|
-
let ie = P(() => o.value[1] - o.value[0]), j = P(() =>
|
|
4225
|
+
let ie = P(() => o.value[1] - o.value[0]), j = P(() => $r(a.value.pixelsPerHour, ie.value, k.value - te.value)), ae = P(() => ie.value * 60 * j.value), oe = P(() => s.value * j.value), se = P(() => 60 * j.value), ce = P(() => se.value >= Ci ? h.value : h.value.filter((e) => e.hour !== o.value[1]));
|
|
4226
4226
|
function le(e) {
|
|
4227
4227
|
return e * j.value;
|
|
4228
4228
|
}
|
|
@@ -4251,7 +4251,7 @@ var ei = [
|
|
|
4251
4251
|
locate(e, t) {
|
|
4252
4252
|
let n = re.value;
|
|
4253
4253
|
if (!n) return null;
|
|
4254
|
-
let r = n.getBoundingClientRect(), i = t - r.top, a =
|
|
4254
|
+
let r = n.getBoundingClientRect(), i = t - r.top, a = ei(Ae.value, i >= ke.value.totalHeightPx && i <= r.height ? ke.value.totalHeightPx - .5 : i);
|
|
4255
4255
|
if (a === null) return null;
|
|
4256
4256
|
let o = e - r.left - te.value, s = j.value;
|
|
4257
4257
|
return s <= 0 ? null : {
|
|
@@ -4259,7 +4259,7 @@ var ei = [
|
|
|
4259
4259
|
minutesFromGridStart: Math.max(0, o / s)
|
|
4260
4260
|
};
|
|
4261
4261
|
}
|
|
4262
|
-
}, { dnd: M, workingEvents: he, dragSourceSnapshot: ge, invalidTimedGhost: _e, isPreviewEvent: ve, onEventPointerdown: ye, onEventKeydown: be, keyboardDrag: xe } =
|
|
4262
|
+
}, { dnd: M, workingEvents: he, dragSourceSnapshot: ge, invalidTimedGhost: _e, isPreviewEvent: ve, onEventPointerdown: ye, onEventKeydown: be, keyboardDrag: xe } = In({
|
|
4263
4263
|
events: () => a.value.events,
|
|
4264
4264
|
days: u,
|
|
4265
4265
|
timeRange: o,
|
|
@@ -4282,14 +4282,14 @@ var ei = [
|
|
|
4282
4282
|
},
|
|
4283
4283
|
onEventDrop: (e) => n.builder.state.onEventDrop?.(e),
|
|
4284
4284
|
onAnnounce: (e, t) => D(e, t)
|
|
4285
|
-
}), Se =
|
|
4285
|
+
}), Se = zr({
|
|
4286
4286
|
builder: n.builder,
|
|
4287
4287
|
axis: me,
|
|
4288
4288
|
timeRange: o,
|
|
4289
4289
|
slotDuration: s,
|
|
4290
4290
|
timezone: c,
|
|
4291
4291
|
events: () => a.value.events
|
|
4292
|
-
}), Ce = P(() => X(n.builder.state.timeRangeSelect)), we =
|
|
4292
|
+
}), Ce = P(() => X(n.builder.state.timeRangeSelect)), we = Hr({
|
|
4293
4293
|
builder: n.builder,
|
|
4294
4294
|
days: u,
|
|
4295
4295
|
timeRange: o,
|
|
@@ -4298,7 +4298,7 @@ var ei = [
|
|
|
4298
4298
|
function Te(e) {
|
|
4299
4299
|
return le(e - o.value[0] * 60);
|
|
4300
4300
|
}
|
|
4301
|
-
let Ee = P(() =>
|
|
4301
|
+
let Ee = P(() => Ur({
|
|
4302
4302
|
drag: Se.dragSelection.value,
|
|
4303
4303
|
hoverMinute: Se.hoverMinute.value,
|
|
4304
4304
|
draft: we.draft.value,
|
|
@@ -4318,7 +4318,7 @@ var ei = [
|
|
|
4318
4318
|
}
|
|
4319
4319
|
let ke = P(() => {
|
|
4320
4320
|
let e = M.draggedEvent.value, t = M.dragMode.value, n = t === "timed" || t === "timed-resize-start" || t === "timed-resize-end", r = ne.value;
|
|
4321
|
-
return
|
|
4321
|
+
return Qr(he.value, {
|
|
4322
4322
|
...r,
|
|
4323
4323
|
days: u.value,
|
|
4324
4324
|
timeRange: o.value,
|
|
@@ -4326,12 +4326,12 @@ var ei = [
|
|
|
4326
4326
|
priorityId: e !== null && n ? `${e.id}__preview` : void 0,
|
|
4327
4327
|
rowMinHeightPx: (e) => {
|
|
4328
4328
|
let t = fe(e).length;
|
|
4329
|
-
return t === 0 ? 0 : r.rowPaddingPx * 2 +
|
|
4329
|
+
return t === 0 ? 0 : r.rowPaddingPx * 2 + Si + t * (bi + xi);
|
|
4330
4330
|
}
|
|
4331
4331
|
});
|
|
4332
4332
|
}), Ae = P(() => ke.value.rows);
|
|
4333
4333
|
function je(e) {
|
|
4334
|
-
return
|
|
4334
|
+
return Zr(e, ne.value);
|
|
4335
4335
|
}
|
|
4336
4336
|
function Me(e) {
|
|
4337
4337
|
return le(e) + 1;
|
|
@@ -4361,7 +4361,7 @@ var ei = [
|
|
|
4361
4361
|
});
|
|
4362
4362
|
}
|
|
4363
4363
|
function Ie(e, t) {
|
|
4364
|
-
if (
|
|
4364
|
+
if (Rr(e)) return;
|
|
4365
4365
|
let r = Fe(e);
|
|
4366
4366
|
if (!r) return;
|
|
4367
4367
|
let i = Se.onSurfacePointerdown(e, () => n.builder.state.onTimeClick?.({
|
|
@@ -4369,10 +4369,10 @@ var ei = [
|
|
|
4369
4369
|
time: r,
|
|
4370
4370
|
native: e
|
|
4371
4371
|
}));
|
|
4372
|
-
i &&
|
|
4372
|
+
i && yn(e, i);
|
|
4373
4373
|
}
|
|
4374
4374
|
function Le(e, t) {
|
|
4375
|
-
if (
|
|
4375
|
+
if (Rr(e)) return;
|
|
4376
4376
|
let r = Fe(e);
|
|
4377
4377
|
r && n.builder.state.onTimeDoubleClick?.({
|
|
4378
4378
|
date: t,
|
|
@@ -4381,19 +4381,19 @@ var ei = [
|
|
|
4381
4381
|
});
|
|
4382
4382
|
}
|
|
4383
4383
|
function Re(e, t) {
|
|
4384
|
-
|
|
4384
|
+
Rr(e) || yn(e, () => n.builder.state.onDateClick?.({
|
|
4385
4385
|
date: t,
|
|
4386
4386
|
native: e
|
|
4387
4387
|
}));
|
|
4388
4388
|
}
|
|
4389
4389
|
function ze(e, t) {
|
|
4390
|
-
|
|
4390
|
+
Rr(e) || n.builder.state.onDateDoubleClick?.({
|
|
4391
4391
|
date: t,
|
|
4392
4392
|
native: e
|
|
4393
4393
|
});
|
|
4394
4394
|
}
|
|
4395
4395
|
function Be(e, t) {
|
|
4396
|
-
|
|
4396
|
+
yn(e, () => n.builder.state.onEventClick?.({
|
|
4397
4397
|
event: t,
|
|
4398
4398
|
native: e
|
|
4399
4399
|
}));
|
|
@@ -4426,14 +4426,14 @@ var ei = [
|
|
|
4426
4426
|
}]]),
|
|
4427
4427
|
style: W({
|
|
4428
4428
|
"--coar-time-rows-label-width": te.value + "px",
|
|
4429
|
-
"--coar-time-rows-header-height":
|
|
4429
|
+
"--coar-time-rows-header-height": yi + "px"
|
|
4430
4430
|
}),
|
|
4431
4431
|
role: "region",
|
|
4432
4432
|
"aria-label": u.value.length === 1 ? Z(i)("coar.calendar.timegrid.dayLabel", void 0, "Day view") : Ue.value === "day" ? Z(i)("coar.calendar.timegrid.multiDayLabel", void 0, "Multi-day view") : Z(i)("coar.calendar.timegrid.weekLabel", void 0, "Week view")
|
|
4433
|
-
}, [R("div",
|
|
4433
|
+
}, [R("div", ui, Y(Z(E).message.value), 1), R("div", di, [R("div", {
|
|
4434
4434
|
class: "coar-time-rows__canvas",
|
|
4435
4435
|
style: W({ width: te.value + ae.value + "px" })
|
|
4436
|
-
}, [R("div",
|
|
4436
|
+
}, [R("div", fi, [t[1] ||= R("div", { class: "coar-time-rows__corner" }, null, -1), R("div", {
|
|
4437
4437
|
class: "coar-time-rows__hours",
|
|
4438
4438
|
style: W({ width: ae.value + "px" })
|
|
4439
4439
|
}, [(G(!0), L(N, null, q(ce.value, (e) => (G(), L("div", {
|
|
@@ -4441,7 +4441,7 @@ var ei = [
|
|
|
4441
4441
|
class: H(["coar-time-rows__hour-label", { "coar-time-rows__hour-label--last": e.hour === o.value[1] }]),
|
|
4442
4442
|
"data-hour": e.hour,
|
|
4443
4443
|
style: W({ left: le((e.hour - o.value[0]) * 60) + "px" })
|
|
4444
|
-
}, Y(e.label), 15,
|
|
4444
|
+
}, Y(e.label), 15, pi))), 128)), Ee.value ? (G(), F(Lr, {
|
|
4445
4445
|
key: 0,
|
|
4446
4446
|
orientation: "horizontal",
|
|
4447
4447
|
mark: Ee.value
|
|
@@ -4470,7 +4470,7 @@ var ei = [
|
|
|
4470
4470
|
date: t.date,
|
|
4471
4471
|
isToday: Z(f)(t.date),
|
|
4472
4472
|
isWeekend: Z(p)(t.date)
|
|
4473
|
-
}, void 0, !0) : a.value.dayHeaderRenderer ? (G(), F(Z(
|
|
4473
|
+
}, void 0, !0) : a.value.dayHeaderRenderer ? (G(), F(Z(Jn), {
|
|
4474
4474
|
key: 1,
|
|
4475
4475
|
renderer: a.value.dayHeaderRenderer,
|
|
4476
4476
|
ctx: {
|
|
@@ -4478,7 +4478,7 @@ var ei = [
|
|
|
4478
4478
|
isToday: Z(f)(t.date),
|
|
4479
4479
|
isWeekend: Z(p)(t.date)
|
|
4480
4480
|
}
|
|
4481
|
-
}, null, 8, ["renderer", "ctx"])) : (G(), L("span",
|
|
4481
|
+
}, null, 8, ["renderer", "ctx"])) : (G(), L("span", gi, Y(Z(m)(t.date)), 1))], 2), (G(!0), L(N, null, q(fe(t.date), (e) => (G(), L("div", {
|
|
4482
4482
|
key: e.id,
|
|
4483
4483
|
class: "coar-time-rows__chip",
|
|
4484
4484
|
style: W({
|
|
@@ -4493,11 +4493,11 @@ var ei = [
|
|
|
4493
4493
|
title: Z(x)(e),
|
|
4494
4494
|
onPointerdown: (t) => Be(t, e),
|
|
4495
4495
|
onKeydown: (t) => Ve(t, e),
|
|
4496
|
-
onDblclick:
|
|
4496
|
+
onDblclick: Et((t) => n.builder.state.onEventDoubleClick?.({
|
|
4497
4497
|
event: e,
|
|
4498
4498
|
native: t
|
|
4499
4499
|
}), ["stop"])
|
|
4500
|
-
}, Y(Z(x)(e)), 45,
|
|
4500
|
+
}, Y(Z(x)(e)), 45, _i))), 128))], 40, hi), R("div", {
|
|
4501
4501
|
class: "coar-time-rows__track",
|
|
4502
4502
|
style: W({
|
|
4503
4503
|
width: ae.value + "px",
|
|
@@ -4507,13 +4507,13 @@ var ei = [
|
|
|
4507
4507
|
onPointerdown: (e) => Ie(e, t.date),
|
|
4508
4508
|
onDblclick: (e) => Le(e, t.date)
|
|
4509
4509
|
}, [
|
|
4510
|
-
z(
|
|
4510
|
+
z(Pr, {
|
|
4511
4511
|
bands: Z(we).bandsFor(t.date),
|
|
4512
4512
|
layer: "below",
|
|
4513
4513
|
orientation: "horizontal",
|
|
4514
4514
|
"to-px": Te
|
|
4515
4515
|
}, null, 8, ["bands"]),
|
|
4516
|
-
(G(!0), L(N, null, q(t.positioned, (t) => (G(), F(
|
|
4516
|
+
(G(!0), L(N, null, q(t.positioned, (t) => (G(), F(ci, {
|
|
4517
4517
|
key: t.event.id,
|
|
4518
4518
|
event: t.event,
|
|
4519
4519
|
positioned: t,
|
|
@@ -4524,7 +4524,7 @@ var ei = [
|
|
|
4524
4524
|
border: Z(C)(t.event),
|
|
4525
4525
|
title: Z(x)(t.event),
|
|
4526
4526
|
"time-label": Z(y)(t.event),
|
|
4527
|
-
"show-time": Ne(t.startMinutes, t.endMinutes) >=
|
|
4527
|
+
"show-time": Ne(t.startMinutes, t.endMinutes) >= wi,
|
|
4528
4528
|
"display-zone": c.value,
|
|
4529
4529
|
"aria-label": Z(ve)(t.event.id) && Z(xe) ? Z(T)(t.event) : Z(w)(t.event),
|
|
4530
4530
|
density: l.value,
|
|
@@ -4557,7 +4557,7 @@ var ei = [
|
|
|
4557
4557
|
key: 0,
|
|
4558
4558
|
event: t,
|
|
4559
4559
|
layout: n
|
|
4560
|
-
}, void 0, !0) : a.value.eventRenderer ? (G(), F(Z(
|
|
4560
|
+
}, void 0, !0) : a.value.eventRenderer ? (G(), F(Z(qn), {
|
|
4561
4561
|
key: 1,
|
|
4562
4562
|
renderer: a.value.eventRenderer,
|
|
4563
4563
|
ctx: {
|
|
@@ -4572,7 +4572,7 @@ var ei = [
|
|
|
4572
4572
|
}, null, 8, ["renderer", "ctx"])) : I("", !0)]),
|
|
4573
4573
|
key: "0"
|
|
4574
4574
|
} : void 0]), 1032, /* @__PURE__ */ "event.positioned.variant.kbd-active.bg.ink.border.title.time-label.show-time.display-zone.aria-label.density.left.width.top.height.z-index.clipped-start.clipped-end.onPointerdown.onKeydown.onDblclick.onPointerenter.onPointerleave.onStartResize.onEndResize".split(".")))), 128)),
|
|
4575
|
-
Z(ge) && Z(ge).dayKey === t.date.toString() ? (G(), F(
|
|
4575
|
+
Z(ge) && Z(ge).dayKey === t.date.toString() ? (G(), F(ci, {
|
|
4576
4576
|
key: 0,
|
|
4577
4577
|
variant: "phantom",
|
|
4578
4578
|
event: Z(ge).event,
|
|
@@ -4600,7 +4600,7 @@ var ei = [
|
|
|
4600
4600
|
"height",
|
|
4601
4601
|
"z-index"
|
|
4602
4602
|
])) : I("", !0),
|
|
4603
|
-
Z(_e) && Z(_e).dayKey === t.date.toString() && Z(M).draggedEvent.value ? (G(), F(
|
|
4603
|
+
Z(_e) && Z(_e).dayKey === t.date.toString() && Z(M).draggedEvent.value ? (G(), F(ci, {
|
|
4604
4604
|
key: 1,
|
|
4605
4605
|
variant: "invalid",
|
|
4606
4606
|
event: Z(M).draggedEvent.value,
|
|
@@ -4629,19 +4629,19 @@ var ei = [
|
|
|
4629
4629
|
"top",
|
|
4630
4630
|
"height"
|
|
4631
4631
|
])) : I("", !0),
|
|
4632
|
-
Z(f)(t.date) && Z(d) !== null ? (G(), F(
|
|
4632
|
+
Z(f)(t.date) && Z(d) !== null ? (G(), F(yr, {
|
|
4633
4633
|
key: 2,
|
|
4634
4634
|
orientation: "horizontal",
|
|
4635
4635
|
"left-px": le(Z(d))
|
|
4636
4636
|
}, null, 8, ["left-px"])) : I("", !0),
|
|
4637
|
-
z(
|
|
4637
|
+
z(Pr, {
|
|
4638
4638
|
bands: Z(we).bandsFor(t.date),
|
|
4639
4639
|
layer: "above",
|
|
4640
4640
|
orientation: "horizontal",
|
|
4641
4641
|
"to-px": Te,
|
|
4642
4642
|
"extent-px": ae.value
|
|
4643
4643
|
}, null, 8, ["bands", "extent-px"]),
|
|
4644
|
-
z(
|
|
4644
|
+
z(Fr, {
|
|
4645
4645
|
orientation: "horizontal",
|
|
4646
4646
|
"to-px": Te,
|
|
4647
4647
|
selection: Z(Se).selectionFor(t.date),
|
|
@@ -4651,38 +4651,38 @@ var ei = [
|
|
|
4651
4651
|
fn: Q((t) => [J(e.$slots, "draft", lt({ ref_for: !0 }, t), void 0, !0)]),
|
|
4652
4652
|
key: "0"
|
|
4653
4653
|
} : void 0]), 1032, ["selection", "draft"])
|
|
4654
|
-
], 44,
|
|
4654
|
+
], 44, vi)], 14, mi))), 128)), De.value === null ? I("", !0) : (G(), L("div", {
|
|
4655
4655
|
key: 0,
|
|
4656
4656
|
class: "coar-time-rows__hover-line",
|
|
4657
4657
|
style: W({ left: De.value + "px" }),
|
|
4658
4658
|
"aria-hidden": "true"
|
|
4659
|
-
}, null, 4))], 36)], 4)], 512)], 14,
|
|
4659
|
+
}, null, 4))], 36)], 4)], 512)], 14, li));
|
|
4660
4660
|
}
|
|
4661
|
-
}), [["__scopeId", "data-v-2d6d4f9f"]]),
|
|
4662
|
-
function
|
|
4663
|
-
if (e.target?.closest(
|
|
4661
|
+
}), [["__scopeId", "data-v-2d6d4f9f"]]), Ei = "a[href], button, input, select, textarea, summary, [contenteditable], [role=\"button\"], [tabindex]";
|
|
4662
|
+
function Di(e) {
|
|
4663
|
+
if (e.target?.closest(Ei) !== e.currentTarget) return !1;
|
|
4664
4664
|
if (e.type === "click") return e.detail === 0;
|
|
4665
4665
|
let t = e.key;
|
|
4666
4666
|
return t !== "Enter" && t !== " " ? !1 : (e.preventDefault(), !e.repeat);
|
|
4667
4667
|
}
|
|
4668
4668
|
//#endregion
|
|
4669
4669
|
//#region src/components/internal/time-grid/CoarResourceDayGrid.vue?vue&type=script&setup=true&lang.ts
|
|
4670
|
-
var
|
|
4670
|
+
var Oi = ["aria-label", "data-resource-count"], ki = { class: "coar-resource-day__top" }, Ai = { class: "coar-resource-day__header" }, ji = { class: "coar-resource-day__grid" }, Mi = ["data-resource-id"], Ni = {
|
|
4671
4671
|
key: 0,
|
|
4672
4672
|
class: "coar-resource-day__all-day"
|
|
4673
|
-
},
|
|
4673
|
+
}, Pi = { class: "coar-resource-day__axis coar-resource-day__axis--label" }, Fi = [
|
|
4674
4674
|
"data-event-id",
|
|
4675
4675
|
"aria-label",
|
|
4676
4676
|
"onPointerdown",
|
|
4677
4677
|
"onKeydown",
|
|
4678
4678
|
"onClick"
|
|
4679
|
-
],
|
|
4679
|
+
], Ii = { class: "coar-resource-day__title" }, Li = { class: "coar-resource-day__axis coar-resource-day__hours" }, Ri = ["data-hour"], zi = ["data-overlay-key"], Bi = [
|
|
4680
4680
|
"data-event-id",
|
|
4681
4681
|
"aria-label",
|
|
4682
4682
|
"onPointerdown",
|
|
4683
4683
|
"onKeydown",
|
|
4684
4684
|
"onClick"
|
|
4685
|
-
],
|
|
4685
|
+
], Vi = { class: "coar-resource-day__title" }, Hi = { class: "coar-resource-day__time" }, Ui = 22, Wi = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
4686
4686
|
__name: "CoarResourceDayGrid",
|
|
4687
4687
|
props: {
|
|
4688
4688
|
builder: {},
|
|
@@ -4703,7 +4703,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4703
4703
|
slotDuration: X(e.slotDuration),
|
|
4704
4704
|
resources: X(e.resources)
|
|
4705
4705
|
};
|
|
4706
|
-
}), i = P(() => r.value.timeRange), a = P(() => r.value.timezone), o = P(() => r.value.pixelsPerHour), s = P(() => (i.value[1] - i.value[0]) * o.value), { t: c, isToday: l, hourLabels: u, nowMinutesFromGridStart: d, cardTimeLabel: f, eventTitle: p, eventBgFor: m, eventBorderFor: g, eventInkFor: v, eventAriaLabel: y } =
|
|
4706
|
+
}), i = P(() => r.value.timeRange), a = P(() => r.value.timezone), o = P(() => r.value.pixelsPerHour), s = P(() => (i.value[1] - i.value[0]) * o.value), { t: c, isToday: l, hourLabels: u, nowMinutesFromGridStart: d, cardTimeLabel: f, eventTitle: p, eventBgFor: m, eventBorderFor: g, eventInkFor: v, eventAriaLabel: y } = Kn({
|
|
4707
4707
|
state: r,
|
|
4708
4708
|
timeRange: i
|
|
4709
4709
|
}), x = P(() => We(n.builder.api.getVisibleEvents(), {
|
|
@@ -4746,8 +4746,8 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4746
4746
|
lane: 0,
|
|
4747
4747
|
laneCount: 1
|
|
4748
4748
|
}),
|
|
4749
|
-
top: `${2 + e.lane *
|
|
4750
|
-
height: `${
|
|
4749
|
+
top: `${2 + e.lane * Ui}px`,
|
|
4750
|
+
height: `${Ui - 2}px`
|
|
4751
4751
|
};
|
|
4752
4752
|
}
|
|
4753
4753
|
let O = P(() => {
|
|
@@ -4775,7 +4775,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4775
4775
|
let t = _.Instant.fromEpochMilliseconds(e).toZonedDateTimeISO(a.value);
|
|
4776
4776
|
return t.hour * 60 + t.minute - i.value[0] * 60;
|
|
4777
4777
|
}
|
|
4778
|
-
let ie =
|
|
4778
|
+
let ie = St("rootEl"), j = St("columnsEl");
|
|
4779
4779
|
function ae(e) {
|
|
4780
4780
|
let t = j.value?.getBoundingClientRect();
|
|
4781
4781
|
return !t || t.width <= 0 || e < t.left || e >= t.right ? null : Math.floor((e - t.left) / t.width * S.value);
|
|
@@ -4787,7 +4787,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4787
4787
|
let se = (e) => {
|
|
4788
4788
|
let t = x.value.columns[e];
|
|
4789
4789
|
return t === "__unassigned" ? void 0 : t;
|
|
4790
|
-
}, ce =
|
|
4790
|
+
}, ce = vt(null), le = vt(null);
|
|
4791
4791
|
function ue(e, t, r) {
|
|
4792
4792
|
let i = ae(t);
|
|
4793
4793
|
if (i === null) return null;
|
|
@@ -4803,7 +4803,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4803
4803
|
}) : !0
|
|
4804
4804
|
};
|
|
4805
4805
|
}
|
|
4806
|
-
let de =
|
|
4806
|
+
let de = _n({
|
|
4807
4807
|
surfaceRef: ie,
|
|
4808
4808
|
autoScroll: null,
|
|
4809
4809
|
dragThreshold: 5,
|
|
@@ -4817,7 +4817,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4817
4817
|
event: t.event,
|
|
4818
4818
|
native: t.native
|
|
4819
4819
|
});
|
|
4820
|
-
t.native.pointerType === "touch" || t.native.pointerType === "pen" ?
|
|
4820
|
+
t.native.pointerType === "touch" || t.native.pointerType === "pen" ? vn(e) : e();
|
|
4821
4821
|
return;
|
|
4822
4822
|
}
|
|
4823
4823
|
let r = ue(t, e.pointer.x, e.pointer.y);
|
|
@@ -4847,7 +4847,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4847
4847
|
return b(e.event) ? e.event.start.toString() : n.date.toString();
|
|
4848
4848
|
}
|
|
4849
4849
|
function pe(e, t) {
|
|
4850
|
-
|
|
4850
|
+
Di(e) && n.builder.state.onEventClick?.({
|
|
4851
4851
|
event: t,
|
|
4852
4852
|
native: e
|
|
4853
4853
|
});
|
|
@@ -4881,12 +4881,12 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4881
4881
|
});
|
|
4882
4882
|
}
|
|
4883
4883
|
function ye(e) {
|
|
4884
|
-
if (
|
|
4884
|
+
if (Rr(e)) return;
|
|
4885
4885
|
let t = ae(e.clientX);
|
|
4886
4886
|
if (t === null) return;
|
|
4887
4887
|
let i = oe(e.clientY);
|
|
4888
4888
|
if (!X(n.builder.state.timeRangeSelect) || e.button !== 0) {
|
|
4889
|
-
|
|
4889
|
+
yn(e, () => ve(t, i, e));
|
|
4890
4890
|
return;
|
|
4891
4891
|
}
|
|
4892
4892
|
ge?.();
|
|
@@ -4930,14 +4930,14 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4930
4930
|
}), d || ve(t, i, e);
|
|
4931
4931
|
return;
|
|
4932
4932
|
}
|
|
4933
|
-
d ||
|
|
4933
|
+
d || vn(() => ve(t, i, e));
|
|
4934
4934
|
}, g = (e) => {
|
|
4935
4935
|
e.pointerId === o && m();
|
|
4936
4936
|
};
|
|
4937
4937
|
ge = m, window.addEventListener("pointermove", p, { passive: !0 }), window.addEventListener("pointerup", h), window.addEventListener("pointercancel", g);
|
|
4938
4938
|
}
|
|
4939
4939
|
dt(() => ge?.());
|
|
4940
|
-
let be =
|
|
4940
|
+
let be = Pn({
|
|
4941
4941
|
pageEl: j,
|
|
4942
4942
|
enabled: () => X(n.builder.state.swipeNavigation) && !de.isDragging.value && he.value === null,
|
|
4943
4943
|
offsetVar: "--coar-resource-day-swipe-x",
|
|
@@ -4946,7 +4946,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4946
4946
|
}
|
|
4947
4947
|
});
|
|
4948
4948
|
function xe(e) {
|
|
4949
|
-
|
|
4949
|
+
Rr(e) || be.onPointerdown(e);
|
|
4950
4950
|
}
|
|
4951
4951
|
return t({ getLayout: () => x.value }), (t, n) => (G(), L("div", {
|
|
4952
4952
|
ref_key: "rootEl",
|
|
@@ -4959,16 +4959,16 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4959
4959
|
role: "region",
|
|
4960
4960
|
"aria-label": Z(c)("coar.calendar.timegrid.dayLabel", void 0, "Day view"),
|
|
4961
4961
|
"data-resource-count": S.value
|
|
4962
|
-
}, [R("div",
|
|
4962
|
+
}, [R("div", ki, [R("div", Ai, [n[1] ||= R("div", { class: "coar-resource-day__axis" }, null, -1), R("div", ji, [(G(!0), L(N, null, q(x.value.columns, (e) => (G(), L("div", {
|
|
4963
4963
|
key: e,
|
|
4964
4964
|
class: "coar-resource-day__resource",
|
|
4965
4965
|
"data-resource-id": e
|
|
4966
4966
|
}, [J(t.$slots, "resourceHeader", {
|
|
4967
4967
|
id: e,
|
|
4968
4968
|
resource: C.value.get(e) ?? null
|
|
4969
|
-
}, () => [rt(Y(w(e)), 1)], !0)], 8,
|
|
4969
|
+
}, () => [rt(Y(w(e)), 1)], !0)], 8, Mi))), 128))])]), x.value.allDayLaneCount > 0 ? (G(), L("div", Ni, [R("div", Pi, Y(Z(c)("coar.calendar.timegrid.allDay", void 0, "all-day")), 1), R("div", {
|
|
4970
4970
|
class: "coar-resource-day__band",
|
|
4971
|
-
style: W({ height: `${x.value.allDayLaneCount *
|
|
4971
|
+
style: W({ height: `${x.value.allDayLaneCount * Ui + 4}px` })
|
|
4972
4972
|
}, [(G(!0), L(N, null, q(x.value.allDay, (e) => (G(), L("div", {
|
|
4973
4973
|
key: e.key,
|
|
4974
4974
|
class: H(["coar-resource-day__block coar-resource-day__block--all-day", { "coar-resource-day__block--dragging": ce.value === e.event.id }]),
|
|
@@ -4983,10 +4983,10 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4983
4983
|
}, [J(t.$slots, "allDayEvent", {
|
|
4984
4984
|
event: e.event,
|
|
4985
4985
|
layout: e
|
|
4986
|
-
}, () => [R("span",
|
|
4986
|
+
}, () => [R("span", Ii, Y(Z(p)(e.event)), 1)], !0)], 46, Fi))), 128))], 4)])) : I("", !0)]), R("div", {
|
|
4987
4987
|
class: "coar-resource-day__body",
|
|
4988
4988
|
style: W({ height: `${s.value}px` })
|
|
4989
|
-
}, [R("div",
|
|
4989
|
+
}, [R("div", Li, [(G(!0), L(N, null, q(Z(u), (e) => (G(), L("div", {
|
|
4990
4990
|
key: e.hour,
|
|
4991
4991
|
class: "coar-resource-day__hour",
|
|
4992
4992
|
"data-hour": e.hour,
|
|
@@ -4994,7 +4994,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
4994
4994
|
}, [J(t.$slots, "hourLabel", {
|
|
4995
4995
|
hour: e.hour,
|
|
4996
4996
|
label: e.label
|
|
4997
|
-
}, () => [rt(Y(e.label), 1)], !0)], 12,
|
|
4997
|
+
}, () => [rt(Y(e.label), 1)], !0)], 12, Ri))), 128))]), R("div", {
|
|
4998
4998
|
ref_key: "columnsEl",
|
|
4999
4999
|
ref: j,
|
|
5000
5000
|
class: "coar-resource-day__columns",
|
|
@@ -5022,7 +5022,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5022
5022
|
height: `${E(e.height)}px`
|
|
5023
5023
|
}),
|
|
5024
5024
|
"data-overlay-key": e.overlay.key
|
|
5025
|
-
}, [J(t.$slots, "overlay", { overlay: e.overlay }, () => [rt(Y(e.overlay.label), 1)], !0)], 12,
|
|
5025
|
+
}, [J(t.$slots, "overlay", { overlay: e.overlay }, () => [rt(Y(e.overlay.label), 1)], !0)], 12, zi))), 128)),
|
|
5026
5026
|
he.value ? (G(), L("div", {
|
|
5027
5027
|
key: 0,
|
|
5028
5028
|
class: "coar-resource-day__selection",
|
|
@@ -5047,24 +5047,24 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5047
5047
|
}, [J(t.$slots, "event", {
|
|
5048
5048
|
event: e.event,
|
|
5049
5049
|
layout: e
|
|
5050
|
-
}, () => [R("span",
|
|
5051
|
-
Z(l)(e.date) && Z(d) !== null ? (G(), F(
|
|
5050
|
+
}, () => [R("span", Vi, Y(Z(p)(e.event)), 1), R("span", Hi, Y(Z(f)(e.event)), 1)], !0)], 46, Bi))), 128)),
|
|
5051
|
+
Z(l)(e.date) && Z(d) !== null ? (G(), F(yr, {
|
|
5052
5052
|
key: 1,
|
|
5053
5053
|
"top-px": E(Z(d))
|
|
5054
5054
|
}, null, 8, ["top-px"])) : I("", !0)
|
|
5055
|
-
], 36)], 4)], 14,
|
|
5055
|
+
], 36)], 4)], 14, Oi));
|
|
5056
5056
|
}
|
|
5057
|
-
}), [["__scopeId", "data-v-118920b7"]]),
|
|
5057
|
+
}), [["__scopeId", "data-v-118920b7"]]), Gi = ["data-day-count"], Ki = 200, qi = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5058
5058
|
__name: "CoarTimeGridSurface",
|
|
5059
5059
|
props: {
|
|
5060
5060
|
builder: {},
|
|
5061
5061
|
view: {}
|
|
5062
5062
|
},
|
|
5063
5063
|
setup(e, { expose: t }) {
|
|
5064
|
-
let n = e, r =
|
|
5064
|
+
let n = e, r = Ot(), i = P(() => X(n.builder.state.locale) ?? r?.language.value ?? "en-US"), a = P(() => X(n.builder.state.firstDayOfWeek) ?? x(i.value)), o = P(() => me(n.view, {
|
|
5065
5065
|
dayMode: X(n.builder.state.dayMode),
|
|
5066
5066
|
explicit: X(n.builder.state.timeGridRange)
|
|
5067
|
-
})), s = P(() => X(n.builder.state.timeGridOrientation) === "horizontal"), c =
|
|
5067
|
+
})), s = P(() => X(n.builder.state.timeGridOrientation) === "horizontal"), c = St("root"), l = K(0), u = null, d = P(() => s.value ? Math.min(7, Math.max(3, X(n.builder.state.dayColumnCount))) : Qe(l.value, X(n.builder.state.dayColumnCount), X(n.builder.state.dayColumnMinWidth), 64, 7));
|
|
5068
5068
|
function f(e) {
|
|
5069
5069
|
return fe({
|
|
5070
5070
|
spec: o.value,
|
|
@@ -5075,13 +5075,13 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5075
5075
|
});
|
|
5076
5076
|
}
|
|
5077
5077
|
let p = P(() => f(n.builder.state.date.value)), m = P(() => p.value.days);
|
|
5078
|
-
|
|
5078
|
+
gn(n.builder, {
|
|
5079
5079
|
view: n.view,
|
|
5080
5080
|
timeGridRange: o,
|
|
5081
5081
|
dayColumnCount: () => p.value.spanDays
|
|
5082
5082
|
});
|
|
5083
5083
|
let h = P(() => X(n.builder.state.resources).length > 0), g = P(() => n.view === "day" && h.value && !s.value && m.value.length === 1);
|
|
5084
|
-
|
|
5084
|
+
Ct(() => n.view === "day" && h.value && !g.value, (e) => {
|
|
5085
5085
|
e && typeof console < "u" && console.warn("[CoarDayView] builder.resources() applies to a single day on the vertical grid; showing the regular grid.");
|
|
5086
5086
|
}, { immediate: !0 });
|
|
5087
5087
|
let _ = K({
|
|
@@ -5090,7 +5090,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5090
5090
|
settling: !1,
|
|
5091
5091
|
offsetX: "0px"
|
|
5092
5092
|
}), v = P(() => !s.value && !g.value && (_.value.engaged || _.value.swiping || _.value.settling)), y = K(0), b = K(0);
|
|
5093
|
-
|
|
5093
|
+
Ct(v, (e) => {
|
|
5094
5094
|
if (!e) return;
|
|
5095
5095
|
let t = (e) => c.value?.querySelector(`:scope > .coar-time-grid:not(.coar-time-grid--ghost) ${e}`) ?? null, n = t(".coar-time-grid__sticky-top");
|
|
5096
5096
|
y.value = n ? Math.round(n.getBoundingClientRect().height) : 0, b.value = t(".coar-time-grid-all-day-band")?.clientHeight ?? 0;
|
|
@@ -5105,13 +5105,13 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5105
5105
|
};
|
|
5106
5106
|
}
|
|
5107
5107
|
let w = P(() => ee(S.value)), T = P(() => ee(C.value)), E = null;
|
|
5108
|
-
return
|
|
5108
|
+
return Ct(() => ({
|
|
5109
5109
|
on: X(n.builder.state.prefetchNeighbours) && X(n.builder.state.swipeNavigation),
|
|
5110
5110
|
windows: [w.value, T.value]
|
|
5111
5111
|
}), ({ on: e, windows: t }) => {
|
|
5112
5112
|
E && clearTimeout(E), e && (E = setTimeout(() => {
|
|
5113
|
-
E = null, n.builder[
|
|
5114
|
-
},
|
|
5113
|
+
E = null, n.builder[Ft](t);
|
|
5114
|
+
}, Ki));
|
|
5115
5115
|
}, {
|
|
5116
5116
|
immediate: !0,
|
|
5117
5117
|
flush: "post"
|
|
@@ -5141,7 +5141,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5141
5141
|
}),
|
|
5142
5142
|
"data-day-count": m.value.length
|
|
5143
5143
|
}, [
|
|
5144
|
-
v.value ? (G(), F(
|
|
5144
|
+
v.value ? (G(), F(Yr, {
|
|
5145
5145
|
key: 0,
|
|
5146
5146
|
ghost: "",
|
|
5147
5147
|
class: "coar-time-grid-surface__ghost coar-time-grid-surface__ghost--prev",
|
|
@@ -5178,7 +5178,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5178
5178
|
"ghost-top-px",
|
|
5179
5179
|
"ghost-band-px"
|
|
5180
5180
|
])) : I("", !0),
|
|
5181
|
-
g.value ? (G(), F(
|
|
5181
|
+
g.value ? (G(), F(Wi, {
|
|
5182
5182
|
key: 1,
|
|
5183
5183
|
builder: e.builder,
|
|
5184
5184
|
date: m.value[0]
|
|
@@ -5208,7 +5208,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5208
5208
|
fn: Q((e) => [J(t.$slots, "hourLabel", U(V(e)), void 0, !0)]),
|
|
5209
5209
|
key: "4"
|
|
5210
5210
|
} : void 0
|
|
5211
|
-
]), 1032, ["builder", "date"])) : s.value ? (G(), F(
|
|
5211
|
+
]), 1032, ["builder", "date"])) : s.value ? (G(), F(Ti, {
|
|
5212
5212
|
key: 2,
|
|
5213
5213
|
builder: e.builder,
|
|
5214
5214
|
dates: m.value
|
|
@@ -5228,7 +5228,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5228
5228
|
fn: Q((e) => [J(t.$slots, "draft", U(V(e)), void 0, !0)]),
|
|
5229
5229
|
key: "2"
|
|
5230
5230
|
} : void 0
|
|
5231
|
-
]), 1032, ["builder", "dates"])) : (G(), F(
|
|
5231
|
+
]), 1032, ["builder", "dates"])) : (G(), F(Yr, {
|
|
5232
5232
|
key: 3,
|
|
5233
5233
|
builder: e.builder,
|
|
5234
5234
|
dates: m.value,
|
|
@@ -5255,7 +5255,7 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5255
5255
|
key: "3"
|
|
5256
5256
|
} : void 0
|
|
5257
5257
|
]), 1032, ["builder", "dates"])),
|
|
5258
|
-
v.value ? (G(), F(
|
|
5258
|
+
v.value ? (G(), F(Yr, {
|
|
5259
5259
|
key: 4,
|
|
5260
5260
|
ghost: "",
|
|
5261
5261
|
class: "coar-time-grid-surface__ghost coar-time-grid-surface__ghost--next",
|
|
@@ -5292,16 +5292,16 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5292
5292
|
"ghost-top-px",
|
|
5293
5293
|
"ghost-band-px"
|
|
5294
5294
|
])) : I("", !0)
|
|
5295
|
-
], 14,
|
|
5295
|
+
], 14, Gi));
|
|
5296
5296
|
}
|
|
5297
|
-
}), [["__scopeId", "data-v-117eb67b"]]),
|
|
5297
|
+
}), [["__scopeId", "data-v-117eb67b"]]), Ji = /* @__PURE__ */ B({
|
|
5298
5298
|
__name: "CoarDayView",
|
|
5299
5299
|
props: { builder: {} },
|
|
5300
5300
|
setup(e, { expose: t }) {
|
|
5301
|
-
let n =
|
|
5301
|
+
let n = St("surface");
|
|
5302
5302
|
return t({ getVisibleRange() {
|
|
5303
5303
|
return n.value?.getVisibleRange() ?? null;
|
|
5304
|
-
} }), (t, r) => (G(), F(
|
|
5304
|
+
} }), (t, r) => (G(), F(qi, {
|
|
5305
5305
|
ref_key: "surface",
|
|
5306
5306
|
ref: n,
|
|
5307
5307
|
class: "coar-day-view",
|
|
@@ -5345,14 +5345,14 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5345
5345
|
} : void 0
|
|
5346
5346
|
]), 1032, ["builder"]));
|
|
5347
5347
|
}
|
|
5348
|
-
}),
|
|
5348
|
+
}), Yi = /* @__PURE__ */ B({
|
|
5349
5349
|
__name: "CoarWeekView",
|
|
5350
5350
|
props: { builder: {} },
|
|
5351
5351
|
setup(e, { expose: t }) {
|
|
5352
|
-
let n =
|
|
5352
|
+
let n = St("surface");
|
|
5353
5353
|
return t({ getVisibleRange() {
|
|
5354
5354
|
return n.value.getVisibleRange();
|
|
5355
|
-
} }), (t, r) => (G(), F(
|
|
5355
|
+
} }), (t, r) => (G(), F(qi, {
|
|
5356
5356
|
ref_key: "surface",
|
|
5357
5357
|
ref: n,
|
|
5358
5358
|
class: "coar-week-view",
|
|
@@ -5381,14 +5381,14 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5381
5381
|
} : void 0
|
|
5382
5382
|
]), 1032, ["builder"]));
|
|
5383
5383
|
}
|
|
5384
|
-
}),
|
|
5384
|
+
}), Xi = /* @__PURE__ */ B({
|
|
5385
5385
|
__name: "CoarWorkWeekView",
|
|
5386
5386
|
props: { builder: {} },
|
|
5387
5387
|
setup(e, { expose: t }) {
|
|
5388
|
-
let n =
|
|
5388
|
+
let n = St("surface");
|
|
5389
5389
|
return t({ getVisibleRange() {
|
|
5390
5390
|
return n.value?.getVisibleRange() ?? null;
|
|
5391
|
-
} }), (t, r) => (G(), F(
|
|
5391
|
+
} }), (t, r) => (G(), F(qi, {
|
|
5392
5392
|
ref_key: "surface",
|
|
5393
5393
|
ref: n,
|
|
5394
5394
|
class: "coar-work-week-view",
|
|
@@ -5417,18 +5417,18 @@ var Di = ["aria-label", "data-resource-count"], Oi = { class: "coar-resource-day
|
|
|
5417
5417
|
} : void 0
|
|
5418
5418
|
]), 1032, ["builder"]));
|
|
5419
5419
|
}
|
|
5420
|
-
}),
|
|
5420
|
+
}), Zi = Object.freeze({
|
|
5421
5421
|
dayNumberHeight: 24,
|
|
5422
5422
|
pillHeight: 18,
|
|
5423
5423
|
markerHeight: 18,
|
|
5424
5424
|
pillGap: 2,
|
|
5425
5425
|
pillsPaddingTop: 3,
|
|
5426
5426
|
pillsPaddingBottom: 4
|
|
5427
|
-
}),
|
|
5427
|
+
}), Qi = (e) => {
|
|
5428
5428
|
let t = parseFloat(e);
|
|
5429
5429
|
return Number.isFinite(t) ? t : 0;
|
|
5430
5430
|
};
|
|
5431
|
-
function
|
|
5431
|
+
function $i(e) {
|
|
5432
5432
|
let t = e.querySelector(".coar-month-cell:not(.coar-month-cell--placeholder) .coar-month-cell__day-number-row");
|
|
5433
5433
|
return t ? {
|
|
5434
5434
|
dayRow: t,
|
|
@@ -5436,74 +5436,96 @@ function Qi(e) {
|
|
|
5436
5436
|
marker: e.querySelector(".coar-month-cell__overflow")
|
|
5437
5437
|
} : null;
|
|
5438
5438
|
}
|
|
5439
|
-
|
|
5440
|
-
|
|
5439
|
+
var ea = ".coar-month-cell__day-footer";
|
|
5440
|
+
function ta(e) {
|
|
5441
|
+
let t = /* @__PURE__ */ new Map();
|
|
5442
|
+
for (let n of e.querySelectorAll(ea)) {
|
|
5443
|
+
let e = n.closest("[data-day-key]")?.dataset.dayKey;
|
|
5444
|
+
e && n.offsetHeight > 0 && t.set(e, n.offsetHeight);
|
|
5445
|
+
}
|
|
5446
|
+
return t;
|
|
5447
|
+
}
|
|
5448
|
+
function na(e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map()) {
|
|
5449
|
+
return e.size === t.size && [...e].every(([e, n]) => t.get(e) === n);
|
|
5450
|
+
}
|
|
5451
|
+
function ra(e) {
|
|
5452
|
+
let t = $i(e);
|
|
5441
5453
|
if (!t || t.dayRow.offsetHeight === 0) return null;
|
|
5442
|
-
let { dayRow: n, pill: r, marker: i } = t, a = e.querySelector(".coar-month-cell__pills"), o = a ? getComputedStyle(a) : null, s = r?.offsetHeight ||
|
|
5454
|
+
let { dayRow: n, pill: r, marker: i } = t, a = e.querySelector(".coar-month-cell__pills"), o = a ? getComputedStyle(a) : null, s = r?.offsetHeight || Zi.pillHeight, c = ta(e);
|
|
5443
5455
|
return {
|
|
5444
5456
|
dayNumberHeight: n.offsetHeight,
|
|
5445
5457
|
pillHeight: s,
|
|
5446
|
-
markerHeight: i?.offsetHeight || Math.max(s,
|
|
5447
|
-
pillGap: o ?
|
|
5448
|
-
pillsPaddingTop: o ?
|
|
5449
|
-
pillsPaddingBottom: o ?
|
|
5458
|
+
markerHeight: i?.offsetHeight || Math.max(s, Zi.markerHeight),
|
|
5459
|
+
pillGap: o ? Qi(o.rowGap) || Qi(o.gap) : Zi.pillGap,
|
|
5460
|
+
pillsPaddingTop: o ? Qi(o.paddingTop) : Zi.pillsPaddingTop,
|
|
5461
|
+
pillsPaddingBottom: o ? Qi(o.paddingBottom) : Zi.pillsPaddingBottom,
|
|
5462
|
+
...c.size > 0 ? { footerHeights: c } : {}
|
|
5450
5463
|
};
|
|
5451
5464
|
}
|
|
5452
|
-
function
|
|
5453
|
-
let t = K({ ...
|
|
5454
|
-
function
|
|
5455
|
-
let
|
|
5456
|
-
if (!n) return;
|
|
5457
|
-
let r = $i(n);
|
|
5465
|
+
function ia(e) {
|
|
5466
|
+
let t = K({ ...Zi }), n = 0;
|
|
5467
|
+
function r() {
|
|
5468
|
+
let r = e.rootRef.value;
|
|
5458
5469
|
if (!r) return;
|
|
5459
|
-
|
|
5460
|
-
|
|
5470
|
+
n = r.querySelectorAll(ea).length;
|
|
5471
|
+
let i = ra(r);
|
|
5472
|
+
if (!i) return;
|
|
5473
|
+
let a = t.value;
|
|
5474
|
+
(i.dayNumberHeight !== a.dayNumberHeight || i.pillHeight !== a.pillHeight || i.markerHeight !== a.markerHeight || i.pillGap !== a.pillGap || i.pillsPaddingTop !== a.pillsPaddingTop || i.pillsPaddingBottom !== a.pillsPaddingBottom || !na(i.footerHeights, a.footerHeights)) && (t.value = i);
|
|
5461
5475
|
}
|
|
5462
|
-
let
|
|
5463
|
-
function
|
|
5476
|
+
let i = null, a = /* @__PURE__ */ new WeakSet();
|
|
5477
|
+
function o() {
|
|
5464
5478
|
let t = e.rootRef.value;
|
|
5465
|
-
if (!
|
|
5466
|
-
let n =
|
|
5479
|
+
if (!i || !t) return;
|
|
5480
|
+
let n = $i(t), r = t.querySelectorAll(ea);
|
|
5467
5481
|
for (let e of [
|
|
5468
5482
|
n?.dayRow,
|
|
5469
5483
|
n?.pill,
|
|
5470
|
-
n?.marker
|
|
5471
|
-
|
|
5484
|
+
n?.marker,
|
|
5485
|
+
...r
|
|
5486
|
+
]) e && !a.has(e) && (a.add(e), i.observe(e));
|
|
5472
5487
|
}
|
|
5473
|
-
function
|
|
5474
|
-
|
|
5488
|
+
function s() {
|
|
5489
|
+
r(), o();
|
|
5475
5490
|
}
|
|
5476
5491
|
return ft(() => {
|
|
5477
|
-
typeof ResizeObserver < "u" && e.rootRef.value && (
|
|
5478
|
-
}),
|
|
5479
|
-
|
|
5492
|
+
typeof ResizeObserver < "u" && e.rootRef.value && (i = new ResizeObserver(() => r()), i.observe(e.rootRef.value)), s(), typeof document < "u" && document.fonts?.ready && document.fonts.ready.then(s);
|
|
5493
|
+
}), ht(() => {
|
|
5494
|
+
let t = e.rootRef.value;
|
|
5495
|
+
t && t.querySelectorAll(ea).length !== n && s();
|
|
5496
|
+
}), pt(() => i?.disconnect()), e.trigger !== void 0 && Ct(() => X(e.trigger), () => {
|
|
5497
|
+
ut(s);
|
|
5480
5498
|
}, { flush: "post" }), t;
|
|
5481
5499
|
}
|
|
5482
5500
|
//#endregion
|
|
5483
5501
|
//#region src/composables/useMonthGeometry.ts
|
|
5484
|
-
var
|
|
5502
|
+
var aa = 2, oa = {
|
|
5485
5503
|
compact: 52,
|
|
5486
5504
|
stacked: 68,
|
|
5487
5505
|
details: 94
|
|
5488
|
-
},
|
|
5506
|
+
}, sa = {
|
|
5489
5507
|
compact: 5,
|
|
5490
5508
|
stacked: 8
|
|
5491
5509
|
};
|
|
5492
|
-
function
|
|
5510
|
+
function ca(e, t) {
|
|
5493
5511
|
let n = Math.max(0, Math.floor(Number.isFinite(t) ? t : 0)), r = e.dayNumberHeight + e.pillsPaddingTop + n * e.pillHeight + n * e.pillGap + e.markerHeight + e.pillsPaddingBottom;
|
|
5494
|
-
return Math.max(
|
|
5512
|
+
return Math.max(oa.details, Math.ceil(r));
|
|
5495
5513
|
}
|
|
5496
|
-
function
|
|
5497
|
-
let t = P(() => X(e.monthDensity) ?? "details"), n = P(() => X(e.metrics) ??
|
|
5514
|
+
function la(e) {
|
|
5515
|
+
let t = P(() => X(e.monthDensity) ?? "details"), n = P(() => X(e.metrics) ?? Zi), r = P(() => n.value.dayNumberHeight), i = P(() => t.value === "details" ? n.value.pillHeight : sa[t.value]), a = P(() => t.value === "details" ? ca(n.value, X(e.maxEventsPerCell) ?? 2) : oa[t.value]);
|
|
5498
5516
|
function o(e) {
|
|
5499
|
-
return r.value + e * (i.value +
|
|
5517
|
+
return r.value + e * (i.value + aa);
|
|
5518
|
+
}
|
|
5519
|
+
let s = P(() => X(e.rowSizing) ?? "auto"), c = P(() => X(e.pillLimit) ?? Infinity);
|
|
5520
|
+
function l(e) {
|
|
5521
|
+
return n.value.footerHeights?.get(d(e)) ?? 0;
|
|
5500
5522
|
}
|
|
5501
|
-
let
|
|
5523
|
+
let u = P(() => e.layout.value.weekRows.map((e) => Math.max(0, ...e.days.map(l)))), f = P(() => {
|
|
5502
5524
|
if (s.value === "auto") return null;
|
|
5503
5525
|
let t = e.layout.value.weekRows.length, n = s.value === "fill" ? X(e.rowsAreaHeight) ?? 0 : 0;
|
|
5504
5526
|
return n > 0 && t > 0 ? Math.floor(n / t) : a.value;
|
|
5505
|
-
}),
|
|
5506
|
-
let r =
|
|
5527
|
+
}), p = P(() => {
|
|
5528
|
+
let r = f.value;
|
|
5507
5529
|
if (r === null) return null;
|
|
5508
5530
|
let a = n.value;
|
|
5509
5531
|
return e.layout.value.weekRows.map((n) => ({
|
|
@@ -5513,53 +5535,59 @@ function aa(e) {
|
|
|
5513
5535
|
pillsPaddingBottom: a.pillsPaddingBottom,
|
|
5514
5536
|
markerHeight: t.value === "details" ? a.markerHeight : 0,
|
|
5515
5537
|
barHeight: i.value,
|
|
5516
|
-
barGap:
|
|
5538
|
+
barGap: aa,
|
|
5517
5539
|
pillHeight: a.pillHeight,
|
|
5518
5540
|
pillGap: a.pillGap,
|
|
5519
5541
|
laneCount: n.multiDayBars[0]?.laneCount ?? 0,
|
|
5520
5542
|
maxLanes: X(e.maxLanes) ?? null,
|
|
5521
5543
|
pillLimit: c.value
|
|
5522
5544
|
}));
|
|
5523
|
-
}),
|
|
5524
|
-
|
|
5525
|
-
|
|
5545
|
+
}), m = P(() => p.value?.map((e, t) => Ve({
|
|
5546
|
+
...e,
|
|
5547
|
+
rowHeight: e.rowHeight - u.value[t]
|
|
5548
|
+
})) ?? null), h = P(() => e.layout.value.weekRows.map((t, n) => m.value?.[n].maxLanes ?? X(e.maxLanes) ?? null)), g = P(() => e.layout.value.weekRows.map((e, n) => {
|
|
5549
|
+
let r = Ae(e.multiDayBars, h.value[n]);
|
|
5550
|
+
if (f.value === null || t.value !== "details") return Array.from({ length: 7 }, () => e.multiDayBars.length ? r.laneCount : 0);
|
|
5526
5551
|
let i = Array.from({ length: 7 }, () => 0);
|
|
5527
5552
|
for (let e of r.visible) for (let t = e.startCol; t <= e.endCol; t++) i[t] = Math.max(i[t], e.lane + 1);
|
|
5528
5553
|
return i;
|
|
5529
|
-
})),
|
|
5530
|
-
let
|
|
5531
|
-
return
|
|
5554
|
+
})), _ = P(() => g.value.map((n, r) => n.map((n, i) => {
|
|
5555
|
+
let a = p.value?.[r], o = l(e.layout.value.weekRows[r].days[i]);
|
|
5556
|
+
return a && t.value !== "compact" ? Ye({
|
|
5557
|
+
...a,
|
|
5558
|
+
rowHeight: a.rowHeight - o
|
|
5559
|
+
}, n) : {
|
|
5532
5560
|
pillLimit: c.value,
|
|
5533
5561
|
pillLimitWithoutMarker: c.value
|
|
5534
5562
|
};
|
|
5535
5563
|
})));
|
|
5536
|
-
function
|
|
5537
|
-
return (
|
|
5564
|
+
function v(e, t) {
|
|
5565
|
+
return (g.value[e]?.[t] ?? 0) * (i.value + aa);
|
|
5538
5566
|
}
|
|
5539
|
-
let
|
|
5567
|
+
let y = P(() => e.layout.value.weekRows.map((e, t) => {
|
|
5540
5568
|
if (e.multiDayBars.length === 0) return r.value;
|
|
5541
|
-
let n = Ae(e.multiDayBars,
|
|
5542
|
-
return r.value + n * (i.value +
|
|
5569
|
+
let n = Ae(e.multiDayBars, h.value[t]).laneCount;
|
|
5570
|
+
return r.value + n * (i.value + aa);
|
|
5543
5571
|
}));
|
|
5544
5572
|
return {
|
|
5545
5573
|
BAR_HEIGHT: i,
|
|
5546
|
-
BAR_GAP:
|
|
5574
|
+
BAR_GAP: aa,
|
|
5547
5575
|
DAY_NUMBER_HEIGHT: r,
|
|
5548
5576
|
barTopPx: o,
|
|
5549
|
-
rowHeightPx: P(() =>
|
|
5550
|
-
if (
|
|
5551
|
-
let
|
|
5552
|
-
return a.value + t;
|
|
5577
|
+
rowHeightPx: P(() => y.value.map((e, t) => {
|
|
5578
|
+
if (f.value !== null) return f.value;
|
|
5579
|
+
let n = Math.max(0, e - r.value);
|
|
5580
|
+
return a.value + n + u.value[t];
|
|
5553
5581
|
})),
|
|
5554
|
-
rowLaneLimits:
|
|
5555
|
-
cellPillLimits:
|
|
5556
|
-
pillsTopPx:
|
|
5582
|
+
rowLaneLimits: h,
|
|
5583
|
+
cellPillLimits: _,
|
|
5584
|
+
pillsTopPx: v
|
|
5557
5585
|
};
|
|
5558
5586
|
}
|
|
5559
5587
|
//#endregion
|
|
5560
5588
|
//#region src/composables/useMonthDayOverlay.ts
|
|
5561
|
-
var
|
|
5562
|
-
function
|
|
5589
|
+
var ua = 30, da = ".coar-month-cell__overflow";
|
|
5590
|
+
function fa(e) {
|
|
5563
5591
|
let t = e.parentElement;
|
|
5564
5592
|
for (; t && t !== document.body;) {
|
|
5565
5593
|
let e = getComputedStyle(t).overflowY;
|
|
@@ -5568,12 +5596,12 @@ function ca(e) {
|
|
|
5568
5596
|
}
|
|
5569
5597
|
return null;
|
|
5570
5598
|
}
|
|
5571
|
-
function
|
|
5572
|
-
let t = e.minWidth ?? 200, n = e.maxHeight ?? 360, r =
|
|
5599
|
+
function pa(e) {
|
|
5600
|
+
let t = e.minWidth ?? 200, n = e.maxHeight ?? 360, r = vt(null), i = K({
|
|
5573
5601
|
top: 0,
|
|
5574
5602
|
left: 0,
|
|
5575
5603
|
width: t,
|
|
5576
|
-
maxListHeight: n -
|
|
5604
|
+
maxListHeight: n - ua
|
|
5577
5605
|
});
|
|
5578
5606
|
function a(t) {
|
|
5579
5607
|
return e.gridRef.value?.querySelector(`[data-day-key="${d(t)}"]`) ?? null;
|
|
@@ -5589,19 +5617,19 @@ function la(e) {
|
|
|
5589
5617
|
top: d.top - u.top,
|
|
5590
5618
|
left: p,
|
|
5591
5619
|
width: f,
|
|
5592
|
-
maxListHeight: n -
|
|
5620
|
+
maxListHeight: n - ua
|
|
5593
5621
|
}, await ut(), r.value === null || !o(s)) return;
|
|
5594
5622
|
let m = e.overlayEl();
|
|
5595
5623
|
if (!m) return;
|
|
5596
5624
|
let h = m.querySelector(".coar-month-day-overlay__header")?.offsetHeight ?? 0;
|
|
5597
|
-
if (h >
|
|
5625
|
+
if (h > ua) {
|
|
5598
5626
|
let e = getComputedStyle(m), t = h + (parseFloat(e.paddingTop) || 0) + (parseFloat(e.paddingBottom) || 0) + (parseFloat(e.borderTopWidth) || 0) + (parseFloat(e.borderBottomWidth) || 0);
|
|
5599
5627
|
if (i.value = {
|
|
5600
5628
|
...i.value,
|
|
5601
5629
|
maxListHeight: Math.max(0, n - t)
|
|
5602
5630
|
}, await ut(), r.value === null || !o(s)) return;
|
|
5603
5631
|
}
|
|
5604
|
-
let g =
|
|
5632
|
+
let g = fa(c), _ = g ? g.getBoundingClientRect().top : 0, v = g ? g.getBoundingClientRect().bottom : window.innerHeight, y = m.offsetHeight, b = v - d.top, x = d.bottom - _;
|
|
5605
5633
|
y > b && x > b && (i.value = {
|
|
5606
5634
|
...i.value,
|
|
5607
5635
|
top: Math.max(0, d.bottom - u.top - y)
|
|
@@ -5614,7 +5642,7 @@ function la(e) {
|
|
|
5614
5642
|
let t = r.value;
|
|
5615
5643
|
if (t === null) return;
|
|
5616
5644
|
let n = e.overlayEl(), i = typeof document < "u" && n !== null && document.activeElement !== null && n.contains(document.activeElement);
|
|
5617
|
-
r.value = null, i && a(t)?.querySelector(
|
|
5645
|
+
r.value = null, i && a(t)?.querySelector(da)?.focus();
|
|
5618
5646
|
}
|
|
5619
5647
|
async function u(e) {
|
|
5620
5648
|
o(e) ? l() : await c(e);
|
|
@@ -5624,14 +5652,14 @@ function la(e) {
|
|
|
5624
5652
|
let n = t.target;
|
|
5625
5653
|
if (!n) return;
|
|
5626
5654
|
let i = e.overlayEl();
|
|
5627
|
-
i && i.contains(n) || n instanceof Element && n.closest(
|
|
5655
|
+
i && i.contains(n) || n instanceof Element && n.closest(da) || l();
|
|
5628
5656
|
}
|
|
5629
5657
|
function p() {
|
|
5630
5658
|
l();
|
|
5631
5659
|
}
|
|
5632
5660
|
return typeof document < "u" && (document.addEventListener("pointerdown", f, !0), window.addEventListener("resize", p), pt(() => {
|
|
5633
5661
|
document.removeEventListener("pointerdown", f, !0), window.removeEventListener("resize", p);
|
|
5634
|
-
})),
|
|
5662
|
+
})), Ct(e.resetToken, () => l()), {
|
|
5635
5663
|
day: r,
|
|
5636
5664
|
position: i,
|
|
5637
5665
|
isOpen: o,
|
|
@@ -5642,13 +5670,13 @@ function la(e) {
|
|
|
5642
5670
|
}
|
|
5643
5671
|
//#endregion
|
|
5644
5672
|
//#region src/components/internal/month/CoarMonthPill.vue?vue&type=script&setup=true&lang.ts
|
|
5645
|
-
var
|
|
5673
|
+
var ma = [
|
|
5646
5674
|
"data-event-id",
|
|
5647
5675
|
"tabindex",
|
|
5648
5676
|
"role",
|
|
5649
5677
|
"aria-label",
|
|
5650
5678
|
"aria-hidden"
|
|
5651
|
-
],
|
|
5679
|
+
], ha = { class: "coar-month-pill__title" }, ga = { class: "coar-month-pill__title" }, _a = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5652
5680
|
__name: "CoarMonthPill",
|
|
5653
5681
|
props: {
|
|
5654
5682
|
event: {},
|
|
@@ -5712,38 +5740,38 @@ var ua = [
|
|
|
5712
5740
|
event: e.event,
|
|
5713
5741
|
pill: e.pill
|
|
5714
5742
|
}, () => [
|
|
5715
|
-
z(
|
|
5743
|
+
z(er, {
|
|
5716
5744
|
event: e.event,
|
|
5717
5745
|
"display-zone": e.displayZone,
|
|
5718
5746
|
size: "xs"
|
|
5719
5747
|
}, null, 8, ["event", "display-zone"]),
|
|
5720
|
-
R("span",
|
|
5721
|
-
z(
|
|
5748
|
+
R("span", ha, Y(e.title), 1),
|
|
5749
|
+
z(ir, {
|
|
5722
5750
|
event: e.event,
|
|
5723
5751
|
max: 1,
|
|
5724
5752
|
size: "xs"
|
|
5725
5753
|
}, null, 8, ["event"])
|
|
5726
5754
|
], !0) : (G(), L(N, { key: 1 }, [
|
|
5727
|
-
z(
|
|
5755
|
+
z(er, {
|
|
5728
5756
|
event: e.event,
|
|
5729
5757
|
"display-zone": e.displayZone,
|
|
5730
5758
|
size: "xs"
|
|
5731
5759
|
}, null, 8, ["event", "display-zone"]),
|
|
5732
|
-
R("span",
|
|
5733
|
-
z(
|
|
5760
|
+
R("span", ga, Y(e.title), 1),
|
|
5761
|
+
z(ir, {
|
|
5734
5762
|
event: e.event,
|
|
5735
5763
|
max: 1,
|
|
5736
5764
|
size: "xs"
|
|
5737
5765
|
}, null, 8, ["event"])
|
|
5738
|
-
], 64))], 46,
|
|
5766
|
+
], 64))], 46, ma));
|
|
5739
5767
|
}
|
|
5740
|
-
}), [["__scopeId", "data-v-74853af5"]]),
|
|
5768
|
+
}), [["__scopeId", "data-v-74853af5"]]), va = [
|
|
5741
5769
|
"data-event-id",
|
|
5742
5770
|
"tabindex",
|
|
5743
5771
|
"role",
|
|
5744
5772
|
"aria-label",
|
|
5745
5773
|
"aria-hidden"
|
|
5746
|
-
],
|
|
5774
|
+
], ya = { class: "coar-month-bar__title" }, ba = { class: "coar-month-bar__title" }, xa = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5747
5775
|
__name: "CoarMonthBar",
|
|
5748
5776
|
props: {
|
|
5749
5777
|
event: {},
|
|
@@ -5842,27 +5870,27 @@ var ua = [
|
|
|
5842
5870
|
event: e.event,
|
|
5843
5871
|
bar: e.bar
|
|
5844
5872
|
}, () => [
|
|
5845
|
-
e.clippedStart ? I("", !0) : (G(), F(
|
|
5873
|
+
e.clippedStart ? I("", !0) : (G(), F(er, {
|
|
5846
5874
|
key: 0,
|
|
5847
5875
|
event: e.event,
|
|
5848
5876
|
"display-zone": e.displayZone,
|
|
5849
5877
|
size: "xs"
|
|
5850
5878
|
}, null, 8, ["event", "display-zone"])),
|
|
5851
|
-
R("span",
|
|
5852
|
-
z(
|
|
5879
|
+
R("span", ya, Y(e.title), 1),
|
|
5880
|
+
z(ir, {
|
|
5853
5881
|
event: e.event,
|
|
5854
5882
|
max: 2,
|
|
5855
5883
|
size: "xs"
|
|
5856
5884
|
}, null, 8, ["event"])
|
|
5857
5885
|
], !0) : (G(), L(N, { key: 2 }, [
|
|
5858
|
-
e.clippedStart ? I("", !0) : (G(), F(
|
|
5886
|
+
e.clippedStart ? I("", !0) : (G(), F(er, {
|
|
5859
5887
|
key: 0,
|
|
5860
5888
|
event: e.event,
|
|
5861
5889
|
"display-zone": e.displayZone,
|
|
5862
5890
|
size: "xs"
|
|
5863
5891
|
}, null, 8, ["event", "display-zone"])),
|
|
5864
|
-
R("span",
|
|
5865
|
-
z(
|
|
5892
|
+
R("span", ba, Y(e.title), 1),
|
|
5893
|
+
z(ir, {
|
|
5866
5894
|
event: e.event,
|
|
5867
5895
|
max: 2,
|
|
5868
5896
|
size: "xs"
|
|
@@ -5874,9 +5902,9 @@ var ua = [
|
|
|
5874
5902
|
"aria-hidden": "true",
|
|
5875
5903
|
onPointerdown: m
|
|
5876
5904
|
}, null, 32)) : I("", !0)
|
|
5877
|
-
], 46,
|
|
5905
|
+
], 46, va));
|
|
5878
5906
|
}
|
|
5879
|
-
}), [["__scopeId", "data-v-30ccb021"]]),
|
|
5907
|
+
}), [["__scopeId", "data-v-30ccb021"]]), Sa = [
|
|
5880
5908
|
"data-day-key",
|
|
5881
5909
|
"data-placeholder",
|
|
5882
5910
|
"aria-rowindex",
|
|
@@ -5885,13 +5913,16 @@ var ua = [
|
|
|
5885
5913
|
"aria-current",
|
|
5886
5914
|
"aria-selected",
|
|
5887
5915
|
"aria-hidden"
|
|
5888
|
-
],
|
|
5916
|
+
], Ca = {
|
|
5889
5917
|
key: 0,
|
|
5890
5918
|
class: "coar-month-cell__day-number-row"
|
|
5891
|
-
},
|
|
5919
|
+
}, wa = { class: "coar-month-cell__day-number" }, Ta = {
|
|
5892
5920
|
key: 0,
|
|
5893
5921
|
class: "coar-month-cell__day-content"
|
|
5894
|
-
},
|
|
5922
|
+
}, Ea = ["aria-label", "aria-expanded"], Da = {
|
|
5923
|
+
key: 2,
|
|
5924
|
+
class: "coar-month-cell__day-footer"
|
|
5925
|
+
}, Oa = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5895
5926
|
__name: "CoarMonthCell",
|
|
5896
5927
|
props: {
|
|
5897
5928
|
day: {},
|
|
@@ -5970,23 +6001,27 @@ var ua = [
|
|
|
5970
6001
|
"aria-hidden": e.placeholder ? "true" : void 0,
|
|
5971
6002
|
onPointerdown: a,
|
|
5972
6003
|
onDblclick: o
|
|
5973
|
-
}, [
|
|
5974
|
-
|
|
5975
|
-
|
|
5976
|
-
|
|
5977
|
-
|
|
5978
|
-
|
|
5979
|
-
|
|
5980
|
-
|
|
5981
|
-
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
}
|
|
6004
|
+
}, [
|
|
6005
|
+
e.placeholder ? I("", !0) : (G(), L("div", Ca, [J(t.$slots, "dayNumber", U(V(i.value)), () => [R("span", wa, Y(e.day.day), 1)], !0), t.$slots.dayContent ? (G(), L("div", Ta, [J(t.$slots, "dayContent", U(V(i.value)), void 0, !0)])) : I("", !0)])),
|
|
6006
|
+
e.placeholder ? I("", !0) : (G(), L("div", {
|
|
6007
|
+
key: 1,
|
|
6008
|
+
class: "coar-month-cell__pills",
|
|
6009
|
+
style: W({ marginTop: e.pillsMarginTopPx + "px" })
|
|
6010
|
+
}, [J(t.$slots, "default", {}, void 0, !0), e.overflowCount > 0 ? (G(), L("button", {
|
|
6011
|
+
key: 0,
|
|
6012
|
+
type: "button",
|
|
6013
|
+
class: "coar-month-cell__overflow",
|
|
6014
|
+
"aria-label": e.overflowLabel,
|
|
6015
|
+
"aria-haspopup": "dialog",
|
|
6016
|
+
"aria-expanded": e.overlayOpen ? "true" : "false",
|
|
6017
|
+
onPointerdown: n[0] ||= Et(() => {}, ["stop"]),
|
|
6018
|
+
onDblclick: n[1] ||= Et(() => {}, ["stop"]),
|
|
6019
|
+
onClick: Et(s, ["stop"])
|
|
6020
|
+
}, " +" + Y(e.overflowCount), 41, Ea)) : I("", !0)], 4)),
|
|
6021
|
+
!e.placeholder && t.$slots.dayFooter ? (G(), L("div", Da, [J(t.$slots, "dayFooter", U(V(i.value)), void 0, !0)])) : I("", !0)
|
|
6022
|
+
], 42, Sa));
|
|
6023
|
+
}
|
|
6024
|
+
}), [["__scopeId", "data-v-cfd0e509"]]), ka = ["aria-label"], Aa = { class: "coar-month-day-overlay__header" }, ja = { class: "coar-month-day-overlay__day-number" }, Ma = { class: "coar-month-day-overlay__heading" }, Na = ["aria-label"], Pa = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5990
6025
|
__name: "CoarMonthDayOverlay",
|
|
5991
6026
|
props: {
|
|
5992
6027
|
dayNumber: {},
|
|
@@ -6023,15 +6058,15 @@ var ua = [
|
|
|
6023
6058
|
width: e.width + "px"
|
|
6024
6059
|
}),
|
|
6025
6060
|
onKeydown: a
|
|
6026
|
-
}, [R("div",
|
|
6027
|
-
R("span",
|
|
6028
|
-
R("span",
|
|
6061
|
+
}, [R("div", Aa, [
|
|
6062
|
+
R("span", ja, Y(e.dayNumber), 1),
|
|
6063
|
+
R("span", Ma, Y(e.heading), 1),
|
|
6029
6064
|
R("button", {
|
|
6030
6065
|
type: "button",
|
|
6031
6066
|
class: "coar-month-day-overlay__close",
|
|
6032
6067
|
"aria-label": e.closeLabel,
|
|
6033
|
-
onPointerdown: n[0] ||=
|
|
6034
|
-
onClick: n[1] ||=
|
|
6068
|
+
onPointerdown: n[0] ||= Et(() => {}, ["stop"]),
|
|
6069
|
+
onClick: n[1] ||= Et((e) => r("close"), ["stop"])
|
|
6035
6070
|
}, [...n[2] ||= [R("svg", {
|
|
6036
6071
|
viewBox: "0 0 12 12",
|
|
6037
6072
|
width: "12",
|
|
@@ -6042,13 +6077,13 @@ var ua = [
|
|
|
6042
6077
|
stroke: "currentColor",
|
|
6043
6078
|
"stroke-width": "1.6",
|
|
6044
6079
|
"stroke-linecap": "round"
|
|
6045
|
-
})], -1)]], 40,
|
|
6080
|
+
})], -1)]], 40, Na)
|
|
6046
6081
|
]), R("div", {
|
|
6047
6082
|
class: "coar-month-day-overlay__list",
|
|
6048
6083
|
style: W({ maxHeight: e.maxListHeight + "px" })
|
|
6049
|
-
}, [J(t.$slots, "default", {}, void 0, !0)], 4)], 46,
|
|
6084
|
+
}, [J(t.$slots, "default", {}, void 0, !0)], 4)], 46, ka));
|
|
6050
6085
|
}
|
|
6051
|
-
}), [["__scopeId", "data-v-9efaaff3"]]),
|
|
6086
|
+
}), [["__scopeId", "data-v-9efaaff3"]]), Fa = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6052
6087
|
__name: "CoarMonthRow",
|
|
6053
6088
|
props: {
|
|
6054
6089
|
heightPx: {},
|
|
@@ -6064,11 +6099,11 @@ var ua = [
|
|
|
6064
6099
|
role: "row"
|
|
6065
6100
|
}, [J(t.$slots, "default", {}, void 0, !0)], 6));
|
|
6066
6101
|
}
|
|
6067
|
-
}), [["__scopeId", "data-v-d209d386"]]),
|
|
6102
|
+
}), [["__scopeId", "data-v-d209d386"]]), Ia = { class: "coar-month-grid" }, La = {
|
|
6068
6103
|
class: "coar-month-grid__weekday-row",
|
|
6069
6104
|
role: "row",
|
|
6070
6105
|
"aria-rowindex": "1"
|
|
6071
|
-
},
|
|
6106
|
+
}, Ra = ["aria-colindex"], za = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6072
6107
|
__name: "CoarMonthGrid",
|
|
6073
6108
|
props: {
|
|
6074
6109
|
weekdayHeaders: {},
|
|
@@ -6076,25 +6111,25 @@ var ua = [
|
|
|
6076
6111
|
setRowsEl: { type: Function }
|
|
6077
6112
|
},
|
|
6078
6113
|
setup(e) {
|
|
6079
|
-
return (t, n) => (G(), L("div",
|
|
6114
|
+
return (t, n) => (G(), L("div", Ia, [R("div", La, [(G(!0), L(N, null, q(e.weekdayHeaders, (t, n) => (G(), L("div", {
|
|
6080
6115
|
key: n,
|
|
6081
6116
|
class: H(["coar-month-grid__weekday-cell", { "coar-month-grid__weekday-cell--weekend": e.weekendColumns?.[n] }]),
|
|
6082
6117
|
role: "columnheader",
|
|
6083
6118
|
"aria-colindex": n + 1
|
|
6084
|
-
}, Y(t), 11,
|
|
6119
|
+
}, Y(t), 11, Ra))), 128))]), R("div", {
|
|
6085
6120
|
ref: (t) => e.setRowsEl(t),
|
|
6086
6121
|
class: "coar-month-grid__rows"
|
|
6087
6122
|
}, [J(t.$slots, "default", {}, void 0, !0)], 512)]));
|
|
6088
6123
|
}
|
|
6089
|
-
}), [["__scopeId", "data-v-11bd2bb6"]]),
|
|
6124
|
+
}), [["__scopeId", "data-v-11bd2bb6"]]), Ba = ["aria-label", "aria-rowcount"], Va = {
|
|
6090
6125
|
class: "coar-month-view__a11y-live",
|
|
6091
6126
|
role: "status",
|
|
6092
6127
|
"aria-live": "polite",
|
|
6093
6128
|
"aria-atomic": "true"
|
|
6094
|
-
},
|
|
6129
|
+
}, Ha = {
|
|
6095
6130
|
key: 0,
|
|
6096
6131
|
class: "coar-month-view__segment-capsule"
|
|
6097
|
-
},
|
|
6132
|
+
}, Ua = ["aria-label"], Wa = 1 / 3, Ga = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6098
6133
|
__name: "CoarMonthView",
|
|
6099
6134
|
props: {
|
|
6100
6135
|
builder: {},
|
|
@@ -6110,7 +6145,7 @@ var ua = [
|
|
|
6110
6145
|
rowSizing: { default: void 0 }
|
|
6111
6146
|
},
|
|
6112
6147
|
setup(t, { expose: n }) {
|
|
6113
|
-
let r = t, { t: i } =
|
|
6148
|
+
let r = t, { t: i } = Dt(), s = xt(), c = P(() => {
|
|
6114
6149
|
let e = r.builder.state;
|
|
6115
6150
|
return {
|
|
6116
6151
|
events: r.builder.api.getVisibleEvents(),
|
|
@@ -6134,8 +6169,8 @@ var ua = [
|
|
|
6134
6169
|
maxEventsPerCell: X(e.maxEventsPerCell),
|
|
6135
6170
|
monthMaxVisibleLanes: X(e.monthMaxVisibleLanes)
|
|
6136
6171
|
};
|
|
6137
|
-
}), l = P(() => r.builder.state.date.value), u =
|
|
6138
|
-
r.manageViewWindow &&
|
|
6172
|
+
}), l = P(() => r.builder.state.date.value), u = Ot(), f = P(() => c.value.locale ?? u?.language.value ?? "en-US"), p = P(() => c.value.timezone), m = P(() => c.value.firstDayOfWeek ?? x(f.value));
|
|
6173
|
+
r.manageViewWindow && gn(r.builder, { view: "month" });
|
|
6139
6174
|
let h = P(() => {
|
|
6140
6175
|
if (r.month) return r.month;
|
|
6141
6176
|
let e = _.PlainDate.from(l.value);
|
|
@@ -6151,7 +6186,7 @@ var ua = [
|
|
|
6151
6186
|
function te(e) {
|
|
6152
6187
|
E.value = e;
|
|
6153
6188
|
}
|
|
6154
|
-
let { dnd: O, workingEvents: re, dragSourceSnapshot: k, invalidMonthGhost: A, isPreviewId: ie, isInvalidPillTarget: j, onMonthEventPointerdown: ae, onMonthEventKeydown: oe, keyboardDrag: se } =
|
|
6189
|
+
let { dnd: O, workingEvents: re, dragSourceSnapshot: k, invalidMonthGhost: A, isPreviewId: ie, isInvalidPillTarget: j, onMonthEventPointerdown: ae, onMonthEventKeydown: oe, keyboardDrag: se } = Ln({
|
|
6155
6190
|
events: () => c.value.events,
|
|
6156
6191
|
gridDates: y,
|
|
6157
6192
|
gridRef: E,
|
|
@@ -6166,7 +6201,7 @@ var ua = [
|
|
|
6166
6201
|
},
|
|
6167
6202
|
onEventDrop: (e) => r.builder.state.onEventDrop?.(e),
|
|
6168
6203
|
onAnnounce: (e, t) => fe(e, t)
|
|
6169
|
-
}), ce =
|
|
6204
|
+
}), ce = Dn();
|
|
6170
6205
|
function le(e) {
|
|
6171
6206
|
let t = e.meta, n = (typeof t?.title == "string" ? t.title : void 0) ?? i("coar.calendar.a11y.unnamedEvent", void 0, "Event");
|
|
6172
6207
|
return i("coar.calendar.a11y.kbdPreviewLabel", { title: n }, `${n} preview — Arrow keys to move, Enter to commit, Escape to cancel`);
|
|
@@ -6227,19 +6262,19 @@ var ua = [
|
|
|
6227
6262
|
function ve(e) {
|
|
6228
6263
|
return e.dayOfWeek === 6 || e.dayOfWeek === 7;
|
|
6229
6264
|
}
|
|
6230
|
-
let ye =
|
|
6265
|
+
let ye = ia({
|
|
6231
6266
|
rootRef: T,
|
|
6232
6267
|
trigger: pe
|
|
6233
6268
|
}), be = P(() => {
|
|
6234
6269
|
let e = r.rowSizing ?? c.value.monthRowSizing;
|
|
6235
6270
|
return r.continuousSection && e === "fill" ? "uniform" : e;
|
|
6236
6271
|
}), xe = K(0), Se = null;
|
|
6237
|
-
|
|
6272
|
+
Ct([E, be], ([e, t]) => {
|
|
6238
6273
|
Se?.disconnect(), Se = null, !(!e || t !== "fill") && (xe.value = e.clientHeight, !(typeof ResizeObserver > "u") && (Se = new ResizeObserver(() => {
|
|
6239
6274
|
xe.value = e.clientHeight;
|
|
6240
6275
|
}), Se.observe(e)));
|
|
6241
6276
|
}, { flush: "post" }), pt(() => Se?.disconnect());
|
|
6242
|
-
let { BAR_HEIGHT: Ce, barTopPx: we, rowHeightPx: Te, rowLaneLimits: Ee, cellPillLimits: De, pillsTopPx: Oe } =
|
|
6277
|
+
let { BAR_HEIGHT: Ce, barTopPx: we, rowHeightPx: Te, rowLaneLimits: Ee, cellPillLimits: De, pillsTopPx: Oe } = la({
|
|
6243
6278
|
layout: pe,
|
|
6244
6279
|
monthDensity: () => c.value.monthDensity,
|
|
6245
6280
|
maxLanes: () => c.value.monthMaxVisibleLanes,
|
|
@@ -6250,7 +6285,7 @@ var ua = [
|
|
|
6250
6285
|
pillLimit: () => Fe(c.value.monthDensity, c.value.maxEventsPerCell)
|
|
6251
6286
|
});
|
|
6252
6287
|
function ke(e, t) {
|
|
6253
|
-
let n = 100 / 7, r = C(e), i = r && !t.clippedStart ? n *
|
|
6288
|
+
let n = 100 / 7, r = C(e), i = r && !t.clippedStart ? n * Wa : 0, a = r && !t.clippedEnd ? n * Wa : 0, o = (t.endCol - t.startCol + 1) * n;
|
|
6254
6289
|
return {
|
|
6255
6290
|
left: `calc(${t.startCol * n + i}% + 2px)`,
|
|
6256
6291
|
width: `calc(${o - i - a}% - 4px)`
|
|
@@ -6310,7 +6345,7 @@ var ua = [
|
|
|
6310
6345
|
function We(e) {
|
|
6311
6346
|
return i("coar.calendar.month.moreEvents", { count: e }, `${e} more events`);
|
|
6312
6347
|
}
|
|
6313
|
-
let Ge = K(null), qe =
|
|
6348
|
+
let Ge = K(null), qe = pa({
|
|
6314
6349
|
rootRef: T,
|
|
6315
6350
|
gridRef: E,
|
|
6316
6351
|
overlayEl: () => Ge.value?.el ?? null,
|
|
@@ -6471,7 +6506,7 @@ var ua = [
|
|
|
6471
6506
|
};
|
|
6472
6507
|
}
|
|
6473
6508
|
function ft(e, t) {
|
|
6474
|
-
|
|
6509
|
+
Rr(e) || yn(e, () => r.builder.state.onDateClick?.({
|
|
6475
6510
|
date: t,
|
|
6476
6511
|
native: e
|
|
6477
6512
|
}));
|
|
@@ -6517,19 +6552,19 @@ var ua = [
|
|
|
6517
6552
|
"aria-rowcount": pe.value.weekRows.length + 1,
|
|
6518
6553
|
"aria-colcount": 7
|
|
6519
6554
|
}, [
|
|
6520
|
-
R("div",
|
|
6521
|
-
z(
|
|
6555
|
+
R("div", Va, Y(Z(ce).message.value), 1),
|
|
6556
|
+
z(za, {
|
|
6522
6557
|
"weekday-headers": S.value,
|
|
6523
6558
|
"weekend-columns": ee.value,
|
|
6524
6559
|
"set-rows-el": te
|
|
6525
6560
|
}, {
|
|
6526
|
-
default: Q(() => [(G(!0), L(N, null, q(pe.value.weekRows, (i, a) => (G(), F(
|
|
6561
|
+
default: Q(() => [(G(!0), L(N, null, q(pe.value.weekRows, (i, a) => (G(), F(Fa, {
|
|
6527
6562
|
key: i.weekStart.toString(),
|
|
6528
6563
|
"height-px": be.value === "fill" ? null : Z(Te)[a],
|
|
6529
6564
|
density: c.value.density
|
|
6530
6565
|
}, {
|
|
6531
6566
|
default: Q(() => [
|
|
6532
|
-
(G(!0), L(N, null, q(i.days, (r, i) => (G(), F(
|
|
6567
|
+
(G(!0), L(N, null, q(i.days, (r, i) => (G(), F(Oa, {
|
|
6533
6568
|
key: r.toString(),
|
|
6534
6569
|
day: r,
|
|
6535
6570
|
"day-key": Z(d)(r),
|
|
@@ -6552,20 +6587,20 @@ var ua = [
|
|
|
6552
6587
|
onOverflowClick: n[0] ||= (e, t) => Z(qe).toggle(t)
|
|
6553
6588
|
}, nt({
|
|
6554
6589
|
default: Q(() => [
|
|
6555
|
-
$e.value && Ve(r).length ? (G(), L("div",
|
|
6590
|
+
$e.value && Ve(r).length ? (G(), L("div", Ha, [(G(!0), L(N, null, q(Ve(r), (e) => (G(), L("button", lt({
|
|
6556
6591
|
key: e.event.id,
|
|
6557
6592
|
type: "button",
|
|
6558
6593
|
class: "coar-month-view__segment",
|
|
6559
6594
|
style: { background: rt(e.event) },
|
|
6560
6595
|
"aria-label": ut(e.event)
|
|
6561
|
-
},
|
|
6562
|
-
(G(!0), L(N, null, q($e.value ? [] : Ve(r), (t) => (G(), F(
|
|
6596
|
+
}, yt(dt(e.event), !0)), null, 16, Ua))), 128))])) : I("", !0),
|
|
6597
|
+
(G(!0), L(N, null, q($e.value ? [] : Ve(r), (t) => (G(), F(_a, lt({ key: t.event.id }, { ref_for: !0 }, U(t), yt(dt(t.event))), nt({ _: 2 }, [e.$slots.pill || c.value.eventRenderer ? {
|
|
6563
6598
|
name: "default",
|
|
6564
6599
|
fn: Q(({ event: t, pill: n }) => [e.$slots.pill ? J(e.$slots, "pill", {
|
|
6565
6600
|
key: 0,
|
|
6566
6601
|
event: t,
|
|
6567
6602
|
pill: n
|
|
6568
|
-
}, void 0, !0) : c.value.eventRenderer ? (G(), F(Z(
|
|
6603
|
+
}, void 0, !0) : c.value.eventRenderer ? (G(), F(Z(qn), {
|
|
6569
6604
|
key: 1,
|
|
6570
6605
|
renderer: c.value.eventRenderer,
|
|
6571
6606
|
ctx: {
|
|
@@ -6579,7 +6614,7 @@ var ua = [
|
|
|
6579
6614
|
}, null, 8, ["renderer", "ctx"])) : I("", !0)]),
|
|
6580
6615
|
key: "0"
|
|
6581
6616
|
} : void 0]), 1040))), 128)),
|
|
6582
|
-
Z(k) && Z(k).bars.length === 0 && Z(k).pillCells.includes(Z(d)(r)) ? (G(), F(
|
|
6617
|
+
Z(k) && Z(k).bars.length === 0 && Z(k).pillCells.includes(Z(d)(r)) ? (G(), F(_a, {
|
|
6583
6618
|
key: 1,
|
|
6584
6619
|
variant: "phantom",
|
|
6585
6620
|
event: Z(k).event,
|
|
@@ -6599,7 +6634,7 @@ var ua = [
|
|
|
6599
6634
|
"display-zone",
|
|
6600
6635
|
"density"
|
|
6601
6636
|
])) : I("", !0),
|
|
6602
|
-
Z(j)(r) && Z(O).draggedEvent.value ? (G(), F(
|
|
6637
|
+
Z(j)(r) && Z(O).draggedEvent.value ? (G(), F(_a, {
|
|
6603
6638
|
key: 2,
|
|
6604
6639
|
variant: "invalid",
|
|
6605
6640
|
event: Z(O).draggedEvent.value,
|
|
@@ -6623,15 +6658,23 @@ var ua = [
|
|
|
6623
6658
|
])) : I("", !0)
|
|
6624
6659
|
]),
|
|
6625
6660
|
_: 2
|
|
6626
|
-
}, [
|
|
6627
|
-
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6631
|
-
|
|
6632
|
-
|
|
6633
|
-
|
|
6634
|
-
|
|
6661
|
+
}, [
|
|
6662
|
+
e.$slots.dayNumber ? {
|
|
6663
|
+
name: "dayNumber",
|
|
6664
|
+
fn: Q((t) => [J(e.$slots, "dayNumber", lt({ ref_for: !0 }, t), void 0, !0)]),
|
|
6665
|
+
key: "0"
|
|
6666
|
+
} : void 0,
|
|
6667
|
+
e.$slots.dayContent ? {
|
|
6668
|
+
name: "dayContent",
|
|
6669
|
+
fn: Q((t) => [J(e.$slots, "dayContent", lt({ ref_for: !0 }, t), void 0, !0)]),
|
|
6670
|
+
key: "1"
|
|
6671
|
+
} : void 0,
|
|
6672
|
+
e.$slots.dayFooter ? {
|
|
6673
|
+
name: "dayFooter",
|
|
6674
|
+
fn: Q((t) => [J(e.$slots, "dayFooter", lt({ ref_for: !0 }, t), void 0, !0)]),
|
|
6675
|
+
key: "2"
|
|
6676
|
+
} : void 0
|
|
6677
|
+
]), 1032, [
|
|
6635
6678
|
"day",
|
|
6636
6679
|
"day-key",
|
|
6637
6680
|
"is-today",
|
|
@@ -6651,7 +6694,7 @@ var ua = [
|
|
|
6651
6694
|
"onCellPointerdown",
|
|
6652
6695
|
"onCellDblclick"
|
|
6653
6696
|
]))), 128)),
|
|
6654
|
-
(G(!0), L(N, null, q(je.value[a].visible, (t) => (G(), F(
|
|
6697
|
+
(G(!0), L(N, null, q(je.value[a].visible, (t) => (G(), F(xa, {
|
|
6655
6698
|
key: t.event.id,
|
|
6656
6699
|
event: t.event,
|
|
6657
6700
|
bar: t,
|
|
@@ -6693,7 +6736,7 @@ var ua = [
|
|
|
6693
6736
|
key: 0,
|
|
6694
6737
|
event: t,
|
|
6695
6738
|
bar: n
|
|
6696
|
-
}, void 0, !0) : c.value.eventRenderer ? (G(), F(Z(
|
|
6739
|
+
}, void 0, !0) : c.value.eventRenderer ? (G(), F(Z(qn), {
|
|
6697
6740
|
key: 1,
|
|
6698
6741
|
renderer: c.value.eventRenderer,
|
|
6699
6742
|
ctx: {
|
|
@@ -6733,7 +6776,7 @@ var ua = [
|
|
|
6733
6776
|
"onStartResize",
|
|
6734
6777
|
"onEndResize"
|
|
6735
6778
|
]))), 128)),
|
|
6736
|
-
(G(!0), L(N, null, q(Z(k) && Z(k).bars.length > 0 ? Z(k).bars.filter((e) => e.rowIndex === a) : [], (e) => (G(), F(
|
|
6779
|
+
(G(!0), L(N, null, q(Z(k) && Z(k).bars.length > 0 ? Z(k).bars.filter((e) => e.rowIndex === a) : [], (e) => (G(), F(xa, {
|
|
6737
6780
|
key: `phantom-${e.startCol}-${e.endCol}`,
|
|
6738
6781
|
variant: "phantom",
|
|
6739
6782
|
event: Z(k).event,
|
|
@@ -6767,7 +6810,7 @@ var ua = [
|
|
|
6767
6810
|
"clipped-start",
|
|
6768
6811
|
"clipped-end"
|
|
6769
6812
|
]))), 128)),
|
|
6770
|
-
Z(A) && Z(A).rowIndex === a && Z(A).isBar && Z(O).draggedEvent.value ? (G(), F(
|
|
6813
|
+
Z(A) && Z(A).rowIndex === a && Z(A).isBar && Z(O).draggedEvent.value ? (G(), F(xa, {
|
|
6771
6814
|
key: 0,
|
|
6772
6815
|
variant: "invalid",
|
|
6773
6816
|
event: Z(O).draggedEvent.value,
|
|
@@ -6809,7 +6852,7 @@ var ua = [
|
|
|
6809
6852
|
}, 1032, ["height-px", "density"]))), 128))]),
|
|
6810
6853
|
_: 3
|
|
6811
6854
|
}, 8, ["weekday-headers", "weekend-columns"]),
|
|
6812
|
-
Z(qe).day.value ? (G(), F(
|
|
6855
|
+
Z(qe).day.value ? (G(), F(Pa, {
|
|
6813
6856
|
key: 0,
|
|
6814
6857
|
ref_key: "overlayRef",
|
|
6815
6858
|
ref: Ge,
|
|
@@ -6824,16 +6867,16 @@ var ua = [
|
|
|
6824
6867
|
"max-list-height": Z(qe).position.value.maxListHeight,
|
|
6825
6868
|
onClose: n[1] ||= (e) => Z(qe).close()
|
|
6826
6869
|
}, {
|
|
6827
|
-
default: Q(() => [(G(!0), L(N, null, q(Qe.value, (t) => (G(), L(N, { key: t.kind === "live" ? t.pill.event.id : `phantom-${t.event.id}` }, [t.kind === "live" ? (G(), F(
|
|
6870
|
+
default: Q(() => [(G(!0), L(N, null, q(Qe.value, (t) => (G(), L(N, { key: t.kind === "live" ? t.pill.event.id : `phantom-${t.event.id}` }, [t.kind === "live" ? (G(), F(_a, lt({
|
|
6828
6871
|
key: 0,
|
|
6829
6872
|
ref_for: !0
|
|
6830
|
-
}, U(t.pill),
|
|
6873
|
+
}, U(t.pill), yt(dt(t.pill.event))), nt({ _: 2 }, [e.$slots.pill || c.value.eventRenderer ? {
|
|
6831
6874
|
name: "default",
|
|
6832
6875
|
fn: Q(({ event: t, pill: n }) => [e.$slots.pill ? J(e.$slots, "pill", {
|
|
6833
6876
|
key: 0,
|
|
6834
6877
|
event: t,
|
|
6835
6878
|
pill: n
|
|
6836
|
-
}, void 0, !0) : c.value.eventRenderer ? (G(), F(Z(
|
|
6879
|
+
}, void 0, !0) : c.value.eventRenderer ? (G(), F(Z(qn), {
|
|
6837
6880
|
key: 1,
|
|
6838
6881
|
renderer: c.value.eventRenderer,
|
|
6839
6882
|
ctx: {
|
|
@@ -6846,7 +6889,7 @@ var ua = [
|
|
|
6846
6889
|
}
|
|
6847
6890
|
}, null, 8, ["renderer", "ctx"])) : I("", !0)]),
|
|
6848
6891
|
key: "0"
|
|
6849
|
-
} : void 0]), 1040)) : (G(), F(
|
|
6892
|
+
} : void 0]), 1040)) : (G(), F(_a, {
|
|
6850
6893
|
key: 1,
|
|
6851
6894
|
variant: "phantom",
|
|
6852
6895
|
event: t.event,
|
|
@@ -6878,13 +6921,13 @@ var ua = [
|
|
|
6878
6921
|
"width",
|
|
6879
6922
|
"max-list-height"
|
|
6880
6923
|
])) : I("", !0)
|
|
6881
|
-
], 10,
|
|
6924
|
+
], 10, Ba));
|
|
6882
6925
|
}
|
|
6883
|
-
}), [["__scopeId", "data-v-
|
|
6926
|
+
}), [["__scopeId", "data-v-325d14f7"]]), Ka = ["data-month-key", "aria-label"], qa = { class: "coar-continuous-month-view__title" }, Ja = 25, Ya = 160, Xa = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6884
6927
|
__name: "CoarContinuousMonthView",
|
|
6885
6928
|
props: { builder: {} },
|
|
6886
6929
|
setup(e, { expose: t }) {
|
|
6887
|
-
let n = e, r = K(null), i =
|
|
6930
|
+
let n = e, r = K(null), i = Ot(), a = P(() => X(n.builder.state.locale) ?? i?.language.value ?? "en-US"), o = P(() => X(n.builder.state.shadeWeekends)), s = P(() => new Intl.DateTimeFormat(a.value, {
|
|
6888
6931
|
month: "long",
|
|
6889
6932
|
year: "numeric",
|
|
6890
6933
|
timeZone: "UTC"
|
|
@@ -6906,9 +6949,9 @@ var ua = [
|
|
|
6906
6949
|
}
|
|
6907
6950
|
let f = c(n.builder.state.date.value), p = K(u(f)), m = K(l(f)), h = 0, g = !1, v = !1, y = null, b = !1, x = !1;
|
|
6908
6951
|
function S(e) {
|
|
6909
|
-
n.builder[
|
|
6952
|
+
n.builder[It](_.PlainYearMonth.from(e));
|
|
6910
6953
|
}
|
|
6911
|
-
let C =
|
|
6954
|
+
let C = vt(new Set([l(f), l(f.add({ months: 1 }))])), ee = K(0), w = null, T = !1;
|
|
6912
6955
|
function E(e) {
|
|
6913
6956
|
return C.value.has(e);
|
|
6914
6957
|
}
|
|
@@ -6929,7 +6972,7 @@ var ua = [
|
|
|
6929
6972
|
if (n.length === 0) return;
|
|
6930
6973
|
let i = r.value, a = t ? j(t) : null, o = a?.getBoundingClientRect().top ?? 0;
|
|
6931
6974
|
for (let e of n) C.value.add(e);
|
|
6932
|
-
if (
|
|
6975
|
+
if (bt(C), await ut(), i && a && a.isConnected) {
|
|
6933
6976
|
let e = a.getBoundingClientRect().top - o;
|
|
6934
6977
|
e !== 0 && (i.scrollTop += e);
|
|
6935
6978
|
}
|
|
@@ -6969,7 +7012,7 @@ var ua = [
|
|
|
6969
7012
|
e && O([e], m.value).then(ie);
|
|
6970
7013
|
}, 0));
|
|
6971
7014
|
}
|
|
6972
|
-
|
|
7015
|
+
gn(n.builder, {
|
|
6973
7016
|
view: "month",
|
|
6974
7017
|
monthBuffer: 1
|
|
6975
7018
|
});
|
|
@@ -7030,12 +7073,12 @@ var ua = [
|
|
|
7030
7073
|
if (e.scrollTop < 320) {
|
|
7031
7074
|
g = !0;
|
|
7032
7075
|
let t = p.value[0], n = l(t), r = j(n)?.getBoundingClientRect().top ?? 0, i = [...Array.from({ length: 6 }, (e, n) => t.subtract({ months: 6 - n })), ...p.value];
|
|
7033
|
-
i.length >
|
|
7076
|
+
i.length > Ja && (i = i.slice(0, Ja)), p.value = i, await ut();
|
|
7034
7077
|
let a = j(n)?.getBoundingClientRect().top ?? r;
|
|
7035
7078
|
e.scrollTop += a - r, g = !1, ie();
|
|
7036
7079
|
} else if (e.scrollHeight - e.scrollTop - e.clientHeight < 640) {
|
|
7037
7080
|
g = !0;
|
|
7038
|
-
let t = p.value.at(-1), n = [...p.value, ...Array.from({ length: 6 }, (e, n) => t.add({ months: n + 1 }))], r = Math.max(0, n.length -
|
|
7081
|
+
let t = p.value.at(-1), n = [...p.value, ...Array.from({ length: 6 }, (e, n) => t.add({ months: n + 1 }))], r = Math.max(0, n.length - Ja), i = n[r], a = l(i), o = j(a)?.getBoundingClientRect().top ?? 0;
|
|
7039
7082
|
if (r > 0 && (n = n.slice(r)), p.value = n, await ut(), r > 0) {
|
|
7040
7083
|
let t = j(a)?.getBoundingClientRect().top ?? o;
|
|
7041
7084
|
e.scrollTop += t - o;
|
|
@@ -7047,13 +7090,13 @@ var ua = [
|
|
|
7047
7090
|
function fe() {
|
|
7048
7091
|
x = !0, cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
7049
7092
|
k(), ce(), de();
|
|
7050
|
-
}), y && clearTimeout(y), y = setTimeout(ue,
|
|
7093
|
+
}), y && clearTimeout(y), y = setTimeout(ue, Ya);
|
|
7051
7094
|
}
|
|
7052
|
-
return
|
|
7095
|
+
return Ct(() => n.builder.state.date.value, (e) => {
|
|
7053
7096
|
if (v) return;
|
|
7054
7097
|
let t = c(e);
|
|
7055
7098
|
l(t) !== m.value && se(t, "smooth");
|
|
7056
|
-
}),
|
|
7099
|
+
}), Ct(() => X(n.builder.state.monthDensity), async () => {
|
|
7057
7100
|
let e = r.value, t = j(m.value);
|
|
7058
7101
|
if (!e || !t) return;
|
|
7059
7102
|
g = !0;
|
|
@@ -7066,7 +7109,7 @@ var ua = [
|
|
|
7066
7109
|
}, { flush: "sync" }), ft(async () => {
|
|
7067
7110
|
S(m.value), r.value?.addEventListener("scroll", fe, { passive: !0 }), r.value?.addEventListener("scrollend", ue), await ut(), ne(l(f)), await ut(), oe(m.value), requestAnimationFrame(() => ie());
|
|
7068
7111
|
}), dt(() => {
|
|
7069
|
-
T = !0, cancelAnimationFrame(h), y && clearTimeout(y), w && clearTimeout(w), r.value?.removeEventListener("scroll", fe), r.value?.removeEventListener("scrollend", ue), n.builder[
|
|
7112
|
+
T = !0, cancelAnimationFrame(h), y && clearTimeout(y), w && clearTimeout(w), r.value?.removeEventListener("scroll", fe), r.value?.removeEventListener("scrollend", ue), n.builder[It](null);
|
|
7070
7113
|
}), t({
|
|
7071
7114
|
scrollToMonth: (e) => se(e, "smooth"),
|
|
7072
7115
|
scrollToDate: (e) => se(c(e), "smooth", e),
|
|
@@ -7081,7 +7124,7 @@ var ua = [
|
|
|
7081
7124
|
class: "coar-continuous-month-view__section",
|
|
7082
7125
|
"data-month-key": l(n),
|
|
7083
7126
|
"aria-label": d(n)
|
|
7084
|
-
}, [R("h2",
|
|
7127
|
+
}, [R("h2", qa, Y(d(n)), 1), E(l(n)) ? (G(), F(Ga, {
|
|
7085
7128
|
key: 1,
|
|
7086
7129
|
builder: e.builder,
|
|
7087
7130
|
month: n,
|
|
@@ -7107,30 +7150,35 @@ var ua = [
|
|
|
7107
7150
|
name: "dayContent",
|
|
7108
7151
|
fn: Q((e) => [J(t.$slots, "dayContent", lt({ ref_for: !0 }, e), void 0, !0)]),
|
|
7109
7152
|
key: "3"
|
|
7153
|
+
} : void 0,
|
|
7154
|
+
t.$slots.dayFooter ? {
|
|
7155
|
+
name: "dayFooter",
|
|
7156
|
+
fn: Q((e) => [J(t.$slots, "dayFooter", lt({ ref_for: !0 }, e), void 0, !0)]),
|
|
7157
|
+
key: "4"
|
|
7110
7158
|
} : void 0
|
|
7111
7159
|
]), 1032, ["builder", "month"])) : (G(), L("div", {
|
|
7112
7160
|
key: 0,
|
|
7113
7161
|
class: "coar-continuous-month-view__placeholder",
|
|
7114
7162
|
style: W(te(n)),
|
|
7115
7163
|
"aria-hidden": "true"
|
|
7116
|
-
}, null, 4))], 8,
|
|
7164
|
+
}, null, 4))], 8, Ka))), 128))], 2));
|
|
7117
7165
|
}
|
|
7118
|
-
}), [["__scopeId", "data-v-
|
|
7166
|
+
}), [["__scopeId", "data-v-b4218e11"]]), Za = { class: "coar-paged-month-view__track" }, Qa = [
|
|
7119
7167
|
"inert",
|
|
7120
7168
|
"aria-hidden",
|
|
7121
7169
|
"data-month-key"
|
|
7122
|
-
],
|
|
7170
|
+
], $a = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7123
7171
|
__name: "CoarPagedMonthView",
|
|
7124
7172
|
props: { builder: {} },
|
|
7125
7173
|
setup(e, { expose: t }) {
|
|
7126
7174
|
let n = e;
|
|
7127
|
-
|
|
7175
|
+
gn(n.builder, {
|
|
7128
7176
|
view: "month",
|
|
7129
7177
|
monthBuffer: 1
|
|
7130
7178
|
});
|
|
7131
|
-
let r =
|
|
7132
|
-
|
|
7133
|
-
let o = !1, s =
|
|
7179
|
+
let r = St("root"), i = P(() => _.PlainYearMonth.from(n.builder.state.date.value)), a = P(() => X(n.builder.state.monthRowSizing) === "fill" ? "fill" : "uniform");
|
|
7180
|
+
Ct(i, (e) => n.builder[It](e), { immediate: !0 });
|
|
7181
|
+
let o = !1, s = Pn({
|
|
7134
7182
|
pageEl: r,
|
|
7135
7183
|
enabled: () => X(n.builder.state.swipeNavigation),
|
|
7136
7184
|
offsetVar: "--coar-paged-month-swipe-x",
|
|
@@ -7138,7 +7186,7 @@ var ua = [
|
|
|
7138
7186
|
o = !0, e === 1 ? n.builder.api.next() : n.builder.api.prev();
|
|
7139
7187
|
}
|
|
7140
7188
|
}), c = K(null);
|
|
7141
|
-
|
|
7189
|
+
Ct(i, (e, t) => {
|
|
7142
7190
|
let n = o;
|
|
7143
7191
|
if (o = !1, n) return;
|
|
7144
7192
|
let r = t.until(e, { largestUnit: "months" }).months;
|
|
@@ -7165,7 +7213,7 @@ var ua = [
|
|
|
7165
7213
|
];
|
|
7166
7214
|
});
|
|
7167
7215
|
function u(e) {
|
|
7168
|
-
|
|
7216
|
+
Rr(e) || e.target instanceof Element && e.target.closest(".coar-month-day-overlay") || s.onPointerdown(e);
|
|
7169
7217
|
}
|
|
7170
7218
|
return t({ scrollToDate: (e) => n.builder.api.goTo(e) }), (t, n) => (G(), L("div", {
|
|
7171
7219
|
ref_key: "root",
|
|
@@ -7176,14 +7224,14 @@ var ua = [
|
|
|
7176
7224
|
}]),
|
|
7177
7225
|
style: W(Z(s).swipeStyle.value),
|
|
7178
7226
|
onPointerdown: u
|
|
7179
|
-
}, [R("div",
|
|
7227
|
+
}, [R("div", Za, [(G(!0), L(N, null, q(l.value, (r) => (G(), L("div", {
|
|
7180
7228
|
key: r.key,
|
|
7181
7229
|
class: H(["coar-paged-month-view__page", [`coar-paged-month-view__page--${r.key}`, r.live && c.value ? `coar-paged-month-view__page--enter-${c.value}` : void 0]]),
|
|
7182
7230
|
inert: !r.live,
|
|
7183
7231
|
"aria-hidden": r.live ? void 0 : "true",
|
|
7184
7232
|
"data-month-key": r.month.toString(),
|
|
7185
7233
|
onAnimationend: n[0] ||= (e) => c.value = null
|
|
7186
|
-
}, [z(
|
|
7234
|
+
}, [z(Ga, {
|
|
7187
7235
|
builder: e.builder,
|
|
7188
7236
|
month: r.month,
|
|
7189
7237
|
"manage-view-window": !1,
|
|
@@ -7208,17 +7256,22 @@ var ua = [
|
|
|
7208
7256
|
name: "dayContent",
|
|
7209
7257
|
fn: Q((e) => [J(t.$slots, "dayContent", lt({ ref_for: !0 }, e), void 0, !0)]),
|
|
7210
7258
|
key: "3"
|
|
7259
|
+
} : void 0,
|
|
7260
|
+
t.$slots.dayFooter ? {
|
|
7261
|
+
name: "dayFooter",
|
|
7262
|
+
fn: Q((e) => [J(t.$slots, "dayFooter", lt({ ref_for: !0 }, e), void 0, !0)]),
|
|
7263
|
+
key: "4"
|
|
7211
7264
|
} : void 0
|
|
7212
7265
|
]), 1032, [
|
|
7213
7266
|
"builder",
|
|
7214
7267
|
"month",
|
|
7215
7268
|
"row-sizing"
|
|
7216
|
-
])], 42,
|
|
7269
|
+
])], 42, Qa))), 128))])], 38));
|
|
7217
7270
|
}
|
|
7218
|
-
}), [["__scopeId", "data-v-
|
|
7271
|
+
}), [["__scopeId", "data-v-fa7bbbd4"]]), eo = { class: "coar-agenda-event__default" }, to = { class: "coar-agenda-event__time" }, no = { class: "coar-agenda-event__title" }, ro = {
|
|
7219
7272
|
key: 0,
|
|
7220
7273
|
class: "coar-agenda-event__continuation-tag"
|
|
7221
|
-
},
|
|
7274
|
+
}, io = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7222
7275
|
__name: "CoarAgendaEvent",
|
|
7223
7276
|
props: {
|
|
7224
7277
|
event: {},
|
|
@@ -7246,46 +7299,46 @@ var ua = [
|
|
|
7246
7299
|
}, [J(t.$slots, "default", {
|
|
7247
7300
|
event: e.event,
|
|
7248
7301
|
item: e.item
|
|
7249
|
-
}, () => [R("div",
|
|
7302
|
+
}, () => [R("div", eo, [
|
|
7250
7303
|
R("span", {
|
|
7251
7304
|
class: "coar-agenda-event__color",
|
|
7252
7305
|
style: W({ background: e.color })
|
|
7253
7306
|
}, null, 4),
|
|
7254
|
-
R("span",
|
|
7255
|
-
R("span",
|
|
7256
|
-
z(
|
|
7307
|
+
R("span", to, Y(e.timeLabel), 1),
|
|
7308
|
+
R("span", no, [
|
|
7309
|
+
z(er, {
|
|
7257
7310
|
event: e.event,
|
|
7258
7311
|
"display-zone": e.displayZone,
|
|
7259
7312
|
size: "s"
|
|
7260
7313
|
}, null, 8, ["event", "display-zone"]),
|
|
7261
7314
|
rt(" " + Y(e.title) + " ", 1),
|
|
7262
|
-
e.item.isContinuation ? (G(), L("span",
|
|
7315
|
+
e.item.isContinuation ? (G(), L("span", ro, Y(e.continuationTag), 1)) : I("", !0)
|
|
7263
7316
|
]),
|
|
7264
|
-
z(
|
|
7317
|
+
z(ir, {
|
|
7265
7318
|
event: e.event,
|
|
7266
7319
|
max: 3,
|
|
7267
7320
|
size: "m"
|
|
7268
7321
|
}, null, 8, ["event"])
|
|
7269
7322
|
])], !0)], 34));
|
|
7270
7323
|
}
|
|
7271
|
-
}), [["__scopeId", "data-v-6d6092da"]]),
|
|
7324
|
+
}), [["__scopeId", "data-v-6d6092da"]]), ao = { class: "coar-month-list-view" }, oo = { class: "coar-month-list-view__layout" }, so = ["aria-label"], co = { class: "coar-month-list-view__title" }, lo = {
|
|
7272
7325
|
class: "coar-month-list-view__weekdays",
|
|
7273
7326
|
"aria-hidden": "true"
|
|
7274
|
-
},
|
|
7327
|
+
}, uo = { class: "coar-month-list-view__grid" }, fo = ["aria-pressed", "onClick"], po = {
|
|
7275
7328
|
key: 0,
|
|
7276
7329
|
class: "coar-month-list-view__markers",
|
|
7277
7330
|
"aria-hidden": "true"
|
|
7278
|
-
},
|
|
7331
|
+
}, mo = ["aria-label"], ho = { class: "coar-month-list-view__selected-title" }, go = {
|
|
7279
7332
|
key: 0,
|
|
7280
7333
|
class: "coar-month-list-view__events"
|
|
7281
|
-
},
|
|
7334
|
+
}, _o = {
|
|
7282
7335
|
key: 1,
|
|
7283
7336
|
class: "coar-month-list-view__empty"
|
|
7284
|
-
},
|
|
7337
|
+
}, vo = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7285
7338
|
__name: "CoarMonthListView",
|
|
7286
7339
|
props: { builder: {} },
|
|
7287
7340
|
setup(t) {
|
|
7288
|
-
let n = t, { t: r } =
|
|
7341
|
+
let n = t, { t: r } = Dt(), i = Ot(), a = P(() => {
|
|
7289
7342
|
let e = n.builder.state;
|
|
7290
7343
|
return {
|
|
7291
7344
|
events: n.builder.api.getVisibleEvents(),
|
|
@@ -7297,7 +7350,7 @@ var ua = [
|
|
|
7297
7350
|
hour12: X(e.hour12)
|
|
7298
7351
|
};
|
|
7299
7352
|
}), s = P(() => a.value.locale ?? i?.language.value ?? "en-US"), c = P(() => a.value.firstDayOfWeek ?? x(s.value)), l = P(() => n.builder.state.date.value), u = P(() => _.PlainYearMonth.from(l.value)), d = P(() => o(u.value, c.value)), f = P(() => e(a.value.timezone)), p = P(() => D(s.value, c.value, "short"));
|
|
7300
|
-
|
|
7353
|
+
gn(n.builder, { view: "monthList" });
|
|
7301
7354
|
let m = P(() => Oe(a.value.events, {
|
|
7302
7355
|
rangeStart: d.value[0].toString(),
|
|
7303
7356
|
rangeEnd: d.value.at(-1).add({ days: 1 }).toString(),
|
|
@@ -7328,7 +7381,7 @@ var ua = [
|
|
|
7328
7381
|
return _.PlainDate.compare(e, t) === 0;
|
|
7329
7382
|
}
|
|
7330
7383
|
function C(e, t) {
|
|
7331
|
-
|
|
7384
|
+
yn(e, () => n.builder.state.onEventClick?.({
|
|
7332
7385
|
event: t,
|
|
7333
7386
|
native: e
|
|
7334
7387
|
}));
|
|
@@ -7350,15 +7403,15 @@ var ua = [
|
|
|
7350
7403
|
hour12: a.value.hour12
|
|
7351
7404
|
})));
|
|
7352
7405
|
function te(e) {
|
|
7353
|
-
return
|
|
7406
|
+
return Gn(e, (e) => E.value.format(new Date(e)), r("coar.calendar.agenda.allDay", void 0, "All day"));
|
|
7354
7407
|
}
|
|
7355
|
-
return (e, t) => (G(), L("div",
|
|
7408
|
+
return (e, t) => (G(), L("div", ao, [R("div", oo, [R("section", {
|
|
7356
7409
|
class: "coar-month-list-view__selector",
|
|
7357
7410
|
"aria-label": v.value
|
|
7358
7411
|
}, [
|
|
7359
|
-
R("h2",
|
|
7360
|
-
R("div",
|
|
7361
|
-
R("div",
|
|
7412
|
+
R("h2", co, Y(v.value), 1),
|
|
7413
|
+
R("div", lo, [(G(!0), L(N, null, q(p.value, (e) => (G(), L("span", { key: e }, Y(e.slice(0, 2)), 1))), 128))]),
|
|
7414
|
+
R("div", uo, [(G(!0), L(N, null, q(d.value, (e) => (G(), L("button", {
|
|
7362
7415
|
key: e.toString(),
|
|
7363
7416
|
type: "button",
|
|
7364
7417
|
class: H(["coar-month-list-view__day", {
|
|
@@ -7368,14 +7421,14 @@ var ua = [
|
|
|
7368
7421
|
}]),
|
|
7369
7422
|
"aria-pressed": S(e, l.value),
|
|
7370
7423
|
onClick: (t) => b(e)
|
|
7371
|
-
}, [R("span", null, Y(e.day), 1), h.value.get(e.toString())?.length ? (G(), L("span",
|
|
7424
|
+
}, [R("span", null, Y(e.day), 1), h.value.get(e.toString())?.length ? (G(), L("span", po, [(G(!0), L(N, null, q(h.value.get(e.toString()).slice(0, 5), (e) => (G(), L("i", {
|
|
7372
7425
|
key: e.event.id,
|
|
7373
7426
|
style: W({ background: T(e.event) })
|
|
7374
|
-
}, null, 4))), 128))])) : I("", !0)], 10,
|
|
7375
|
-
], 8,
|
|
7427
|
+
}, null, 4))), 128))])) : I("", !0)], 10, fo))), 128))])
|
|
7428
|
+
], 8, so), R("section", {
|
|
7376
7429
|
class: "coar-month-list-view__agenda",
|
|
7377
7430
|
"aria-label": l.value.toString()
|
|
7378
|
-
}, [R("h3",
|
|
7431
|
+
}, [R("h3", ho, Y(y.value), 1), g.value.length ? (G(), L("div", go, [(G(!0), L(N, null, q(g.value, (t) => (G(), F(io, {
|
|
7379
7432
|
key: `${t.date}:${t.event.id}`,
|
|
7380
7433
|
event: t.event,
|
|
7381
7434
|
item: t,
|
|
@@ -7398,9 +7451,9 @@ var ua = [
|
|
|
7398
7451
|
"continuation-tag",
|
|
7399
7452
|
"display-zone",
|
|
7400
7453
|
"onPointerdown"
|
|
7401
|
-
]))), 128))])) : (G(), L("p",
|
|
7454
|
+
]))), 128))])) : (G(), L("p", _o, Y(Z(r)("coar.calendar.monthList.empty", void 0, "No events")), 1))], 8, mo)])]));
|
|
7402
7455
|
}
|
|
7403
|
-
}), [["__scopeId", "data-v-33aaaea2"]]),
|
|
7456
|
+
}), [["__scopeId", "data-v-33aaaea2"]]), yo = ["data-y"], bo = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7404
7457
|
__name: "VirtualizedSurface1DY",
|
|
7405
7458
|
props: {
|
|
7406
7459
|
itemCount: {},
|
|
@@ -7411,7 +7464,7 @@ var ua = [
|
|
|
7411
7464
|
},
|
|
7412
7465
|
emits: ["rangeChange", "scroll"],
|
|
7413
7466
|
setup(e, { expose: t, emit: n }) {
|
|
7414
|
-
let r = e, i = n, a = P(() => r.fixedItemSize !== void 0), o = K(null), s = K(0), c = K(0), l =
|
|
7467
|
+
let r = e, i = n, a = P(() => r.fixedItemSize !== void 0), o = K(null), s = K(0), c = K(0), l = vt(null);
|
|
7415
7468
|
function u() {
|
|
7416
7469
|
return l.value ||= new He(r.itemCount, r.estimatedItemSize), l.value;
|
|
7417
7470
|
}
|
|
@@ -7441,7 +7494,7 @@ var ua = [
|
|
|
7441
7494
|
function h(e) {
|
|
7442
7495
|
return a.value ? e * r.fixedItemSize : l.value ? l.value.prefixSum(e) : e * r.estimatedItemSize;
|
|
7443
7496
|
}
|
|
7444
|
-
|
|
7497
|
+
Ct(p, (e) => {
|
|
7445
7498
|
i("rangeChange", e);
|
|
7446
7499
|
}, { immediate: !1 });
|
|
7447
7500
|
let g = !1;
|
|
@@ -7506,9 +7559,9 @@ var ua = [
|
|
|
7506
7559
|
for (let n = 0; n < e.itemCount; n++) e.has(n) && t.set(n, e.get(n));
|
|
7507
7560
|
return t;
|
|
7508
7561
|
}
|
|
7509
|
-
|
|
7562
|
+
Ct(() => r.itemCount, (e) => {
|
|
7510
7563
|
l.value && (l.value.resize(e), d.value++);
|
|
7511
|
-
}),
|
|
7564
|
+
}), Ct(() => r.estimatedItemSize, (e) => {
|
|
7512
7565
|
if (!l.value) return;
|
|
7513
7566
|
let t = l.value, n = new He(t.itemCount, e);
|
|
7514
7567
|
for (let e = 0; e < t.itemCount; e++) t.has(e) && n.set(e, t.get(e));
|
|
@@ -7552,17 +7605,17 @@ var ua = [
|
|
|
7552
7605
|
}, [R("div", {
|
|
7553
7606
|
class: "coar-virtualized-surface-1dy__spacer",
|
|
7554
7607
|
style: W({ height: f.value + "px" })
|
|
7555
|
-
}, [(G(!0), L(N, null, q(m.value, (t) =>
|
|
7608
|
+
}, [(G(!0), L(N, null, q(m.value, (t) => Tt((G(), L("div", {
|
|
7556
7609
|
key: t,
|
|
7557
7610
|
class: "coar-virtualized-surface-1dy__item",
|
|
7558
7611
|
style: W({ transform: `translateY(${h(t)}px)` }),
|
|
7559
7612
|
"data-y": t
|
|
7560
|
-
}, [J(e.$slots, "item", { y: t }, void 0, !0)], 12,
|
|
7613
|
+
}, [J(e.$slots, "item", { y: t }, void 0, !0)], 12, yo)), [[C, t]])), 128))], 4)], 544));
|
|
7561
7614
|
}
|
|
7562
|
-
}), [["__scopeId", "data-v-03aa2532"]]),
|
|
7615
|
+
}), [["__scopeId", "data-v-03aa2532"]]), xo = ["role", "aria-level"], So = { class: "coar-agenda-day-header__label" }, Co = {
|
|
7563
7616
|
key: 0,
|
|
7564
7617
|
class: "coar-agenda-day-header__today"
|
|
7565
|
-
},
|
|
7618
|
+
}, wo = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7566
7619
|
__name: "CoarAgendaDayHeader",
|
|
7567
7620
|
props: {
|
|
7568
7621
|
date: {},
|
|
@@ -7599,27 +7652,27 @@ var ua = [
|
|
|
7599
7652
|
date: e.date,
|
|
7600
7653
|
item: e.item,
|
|
7601
7654
|
isToday: e.isToday
|
|
7602
|
-
}, () => [R("span",
|
|
7655
|
+
}, () => [R("span", So, Y(e.label), 1), e.isToday ? (G(), L("span", Co, Y(e.todayLabel), 1)) : I("", !0)], !0)], 46, xo));
|
|
7603
7656
|
}
|
|
7604
|
-
}), [["__scopeId", "data-v-1b2c93a6"]]),
|
|
7657
|
+
}), [["__scopeId", "data-v-1b2c93a6"]]), To = ["aria-label"], Eo = {
|
|
7605
7658
|
key: 0,
|
|
7606
7659
|
class: "coar-agenda-view__week-strip"
|
|
7607
|
-
},
|
|
7660
|
+
}, Do = {
|
|
7608
7661
|
key: 0,
|
|
7609
7662
|
class: "coar-agenda-view__week-strip-start"
|
|
7610
|
-
},
|
|
7663
|
+
}, Oo = ["aria-label"], ko = [
|
|
7611
7664
|
"aria-selected",
|
|
7612
7665
|
"aria-label",
|
|
7613
7666
|
"onClick"
|
|
7614
|
-
],
|
|
7667
|
+
], Ao = { class: "coar-agenda-view__week-day-name" }, jo = { class: "coar-agenda-view__week-day-number" }, Mo = {
|
|
7615
7668
|
key: 1,
|
|
7616
7669
|
class: "coar-agenda-view__week-strip-end"
|
|
7617
|
-
},
|
|
7670
|
+
}, No = {
|
|
7618
7671
|
key: 2,
|
|
7619
7672
|
class: "coar-agenda-view__empty",
|
|
7620
7673
|
role: "status",
|
|
7621
7674
|
"aria-live": "polite"
|
|
7622
|
-
},
|
|
7675
|
+
}, Po = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7623
7676
|
__name: "CoarAgendaView",
|
|
7624
7677
|
props: {
|
|
7625
7678
|
builder: {},
|
|
@@ -7628,7 +7681,7 @@ var ua = [
|
|
|
7628
7681
|
overscan: { default: 5 }
|
|
7629
7682
|
},
|
|
7630
7683
|
setup(t, { expose: n }) {
|
|
7631
|
-
let r = t, { t: i } =
|
|
7684
|
+
let r = t, { t: i } = Dt(), o = P(() => {
|
|
7632
7685
|
let e = r.builder.state;
|
|
7633
7686
|
return {
|
|
7634
7687
|
events: r.builder.api.getVisibleEvents(),
|
|
@@ -7643,7 +7696,7 @@ var ua = [
|
|
|
7643
7696
|
agendaLengthDays: X(e.agendaLengthDays),
|
|
7644
7697
|
eventRenderer: e.eventRenderer
|
|
7645
7698
|
};
|
|
7646
|
-
}), s = P(() => o.value.events), c = P(() => o.value.timezone), l =
|
|
7699
|
+
}), s = P(() => o.value.events), c = P(() => o.value.timezone), l = Ot(), u = P(() => o.value.locale ?? l?.language.value ?? "en-US"), d = P(() => o.value.density), f = P(() => o.value.showEmptyDays), p = P(() => o.value.agendaLengthDays), m = P(() => r.builder.state.date.value), h = P(() => o.value.firstDayOfWeek ?? x(u.value)), g = P(() => {
|
|
7647
7700
|
let e = a(m.value, h.value);
|
|
7648
7701
|
return Array.from({ length: 7 }, (t, n) => e.add({ days: n }));
|
|
7649
7702
|
});
|
|
@@ -7657,14 +7710,14 @@ var ua = [
|
|
|
7657
7710
|
goTo: (e) => r.builder.api.goTo(e),
|
|
7658
7711
|
shiftWeek: v
|
|
7659
7712
|
}));
|
|
7660
|
-
|
|
7713
|
+
gn(r.builder, { view: r.view });
|
|
7661
7714
|
let b = P(() => m.value), S = P(() => r.view === "monthList" ? b.value.with({ day: 1 }) : b.value), C = P(() => r.view === "dayAgenda" ? S.value.add({ days: 1 }) : r.view === "monthList" ? S.value.add({ months: 1 }) : S.value.add({ days: p.value })), ee = P(() => S.value.toString()), T = P(() => C.value.toString()), E = P(() => D.value.length === 0 && !f.value && !r.builder.api.loading.value), D = P(() => Oe(s.value, {
|
|
7662
7715
|
rangeStart: ee.value,
|
|
7663
7716
|
rangeEnd: T.value,
|
|
7664
7717
|
timezone: c.value,
|
|
7665
7718
|
showEmptyDays: f.value
|
|
7666
7719
|
})), te = K(e(c.value));
|
|
7667
|
-
|
|
7720
|
+
wt(() => {
|
|
7668
7721
|
te.value = e(c.value);
|
|
7669
7722
|
});
|
|
7670
7723
|
function ne(e) {
|
|
@@ -7704,7 +7757,7 @@ var ua = [
|
|
|
7704
7757
|
});
|
|
7705
7758
|
}
|
|
7706
7759
|
function j(e) {
|
|
7707
|
-
return
|
|
7760
|
+
return Gn(e, (e) => re.value.format(new Date(e)), i("coar.calendar.agenda.allDay", void 0, "All day"));
|
|
7708
7761
|
}
|
|
7709
7762
|
function ae(e) {
|
|
7710
7763
|
let t = e.meta;
|
|
@@ -7718,18 +7771,18 @@ var ua = [
|
|
|
7718
7771
|
return oe(e) ?? "var(--coar-calendar-event-default-color, var(--coar-color-accent, var(--coar-color-accent-500, #2563eb)))";
|
|
7719
7772
|
}
|
|
7720
7773
|
function ce(e, t) {
|
|
7721
|
-
|
|
7774
|
+
yn(e, () => r.builder.state.onEventClick?.({
|
|
7722
7775
|
event: t,
|
|
7723
7776
|
native: e
|
|
7724
7777
|
}));
|
|
7725
7778
|
}
|
|
7726
7779
|
function le(e, t) {
|
|
7727
|
-
|
|
7780
|
+
yn(e, () => r.builder.state.onDateClick?.({
|
|
7728
7781
|
date: _.PlainDate.from(t),
|
|
7729
7782
|
native: e
|
|
7730
7783
|
}));
|
|
7731
7784
|
}
|
|
7732
|
-
let ue =
|
|
7785
|
+
let ue = St("surface"), de = K(0), fe = null;
|
|
7733
7786
|
function pe() {
|
|
7734
7787
|
fe && (de.value = fe.scrollTop);
|
|
7735
7788
|
}
|
|
@@ -7767,12 +7820,12 @@ var ua = [
|
|
|
7767
7820
|
}), he = P(() => M.value?.current ?? null), ge = P(() => {
|
|
7768
7821
|
let e = M.value?.pushOffset ?? 0;
|
|
7769
7822
|
return e > 0 ? `translateY(-${e}px)` : "none";
|
|
7770
|
-
}), _e =
|
|
7823
|
+
}), _e = St("overlayEl");
|
|
7771
7824
|
function ve() {
|
|
7772
7825
|
let e = _e.value;
|
|
7773
7826
|
e?.$el && (me.value = e.$el.offsetHeight);
|
|
7774
7827
|
}
|
|
7775
|
-
|
|
7828
|
+
wt(ve);
|
|
7776
7829
|
function ye(e) {
|
|
7777
7830
|
let t = D.value.findIndex((t) => t.kind === "header" && t.date === e);
|
|
7778
7831
|
t >= 0 && ue.value?.scrollToIndex(t);
|
|
@@ -7785,8 +7838,8 @@ var ua = [
|
|
|
7785
7838
|
role: "region",
|
|
7786
7839
|
"aria-label": Z(i)("coar.calendar.agenda.viewLabel", void 0, "Agenda view")
|
|
7787
7840
|
}, [
|
|
7788
|
-
t.view === "dayAgenda" ? (G(), L("div",
|
|
7789
|
-
e.$slots.weekStripStart ? (G(), L("div",
|
|
7841
|
+
t.view === "dayAgenda" ? (G(), L("div", Eo, [
|
|
7842
|
+
e.$slots.weekStripStart ? (G(), L("div", Do, [J(e.$slots, "weekStripStart", U(V(y.value)), void 0, !0)])) : I("", !0),
|
|
7790
7843
|
R("div", {
|
|
7791
7844
|
class: "coar-agenda-view__week-days",
|
|
7792
7845
|
role: "tablist",
|
|
@@ -7802,10 +7855,10 @@ var ua = [
|
|
|
7802
7855
|
"aria-selected": Z(_).PlainDate.compare(e, m.value) === 0,
|
|
7803
7856
|
"aria-label": k(e.toString()),
|
|
7804
7857
|
onClick: (t) => ie(t, e)
|
|
7805
|
-
}, [R("span",
|
|
7806
|
-
e.$slots.weekStripEnd ? (G(), L("div",
|
|
7858
|
+
}, [R("span", Ao, Y(A(e)), 1), R("span", jo, Y(e.day), 1)], 10, ko))), 128))], 8, Oo),
|
|
7859
|
+
e.$slots.weekStripEnd ? (G(), L("div", Mo, [J(e.$slots, "weekStripEnd", U(V(y.value)), void 0, !0)])) : I("", !0)
|
|
7807
7860
|
])) : I("", !0),
|
|
7808
|
-
he.value && t.view !== "dayAgenda" ? (G(), F(
|
|
7861
|
+
he.value && t.view !== "dayAgenda" ? (G(), F(wo, {
|
|
7809
7862
|
key: 1,
|
|
7810
7863
|
ref: "overlayEl",
|
|
7811
7864
|
floating: "",
|
|
@@ -7828,7 +7881,7 @@ var ua = [
|
|
|
7828
7881
|
"today-label",
|
|
7829
7882
|
"transform"
|
|
7830
7883
|
])) : I("", !0),
|
|
7831
|
-
z(
|
|
7884
|
+
z(bo, {
|
|
7832
7885
|
ref: "surface",
|
|
7833
7886
|
role: "list",
|
|
7834
7887
|
"aria-label": Z(i)("coar.calendar.agenda.listLabel", void 0, "Agenda"),
|
|
@@ -7837,7 +7890,7 @@ var ua = [
|
|
|
7837
7890
|
overscan: t.overscan,
|
|
7838
7891
|
class: "coar-agenda-view__surface"
|
|
7839
7892
|
}, {
|
|
7840
|
-
item: Q(({ y: t }) => [D.value[t].kind === "header" ? (G(), F(
|
|
7893
|
+
item: Q(({ y: t }) => [D.value[t].kind === "header" ? (G(), F(wo, {
|
|
7841
7894
|
key: 0,
|
|
7842
7895
|
date: Z(_).PlainDate.from(D.value[t].date),
|
|
7843
7896
|
item: D.value[t],
|
|
@@ -7856,7 +7909,7 @@ var ua = [
|
|
|
7856
7909
|
"label",
|
|
7857
7910
|
"today-label",
|
|
7858
7911
|
"onPointerdown"
|
|
7859
|
-
])) : (G(), F(
|
|
7912
|
+
])) : (G(), F(io, {
|
|
7860
7913
|
key: 1,
|
|
7861
7914
|
event: D.value[t].event,
|
|
7862
7915
|
item: D.value[t],
|
|
@@ -7902,25 +7955,25 @@ var ua = [
|
|
|
7902
7955
|
"estimated-item-size",
|
|
7903
7956
|
"overscan"
|
|
7904
7957
|
]),
|
|
7905
|
-
e.$slots.empty && E.value ? (G(), L("div",
|
|
7906
|
-
], 10,
|
|
7958
|
+
e.$slots.empty && E.value ? (G(), L("div", No, [J(e.$slots, "empty", {}, void 0, !0)])) : I("", !0)
|
|
7959
|
+
], 10, To));
|
|
7907
7960
|
}
|
|
7908
|
-
}), [["__scopeId", "data-v-dd959be2"]]),
|
|
7961
|
+
}), [["__scopeId", "data-v-dd959be2"]]), Fo = { class: "coar-timeline-view__date-axis" }, Io = {
|
|
7909
7962
|
key: 1,
|
|
7910
7963
|
class: "coar-timeline-view__date-label"
|
|
7911
|
-
},
|
|
7964
|
+
}, Lo = { class: "coar-timeline-view__label-column" }, Ro = ["title"], zo = ["title"], Bo = { class: "coar-timeline-view__day-grid-bg" }, Vo = [
|
|
7912
7965
|
"aria-label",
|
|
7913
7966
|
"onClick",
|
|
7914
7967
|
"onDblclick",
|
|
7915
7968
|
"onPointerenter",
|
|
7916
7969
|
"onPointerleave"
|
|
7917
|
-
],
|
|
7970
|
+
], Ho = 8, Uo = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7918
7971
|
__name: "CoarTimelineView",
|
|
7919
7972
|
props: { builder: {} },
|
|
7920
7973
|
setup(e, { expose: t }) {
|
|
7921
7974
|
let n = e;
|
|
7922
|
-
|
|
7923
|
-
let r =
|
|
7975
|
+
gn(n.builder, { view: "timeline" });
|
|
7976
|
+
let r = Ot(), i = P(() => X(n.builder.state.locale) ?? r?.language.value ?? "en-US"), a = P(() => {
|
|
7924
7977
|
let e = n.builder.state;
|
|
7925
7978
|
return {
|
|
7926
7979
|
events: n.builder.api.getVisibleEvents(),
|
|
@@ -8032,13 +8085,13 @@ var ua = [
|
|
|
8032
8085
|
}), A.observe(C.value)), re.value = C.value.clientHeight);
|
|
8033
8086
|
}), mt(() => {
|
|
8034
8087
|
C.value?.removeEventListener("scroll", k), A?.disconnect(), A = null;
|
|
8035
|
-
}),
|
|
8088
|
+
}), Ct(() => l.value.totalHeight, () => {
|
|
8036
8089
|
C.value && (O.value = C.value.scrollTop);
|
|
8037
8090
|
});
|
|
8038
8091
|
let ie = P(() => {
|
|
8039
8092
|
let e = l.value.rows, t = a.value.rowHeight;
|
|
8040
8093
|
if (t <= 0 || e.length === 0 || re.value <= 0) return e;
|
|
8041
|
-
let n = t, r = O.value - n, i = O.value + re.value - n, o = Math.max(0, Math.floor(r / t) -
|
|
8094
|
+
let n = t, r = O.value - n, i = O.value + re.value - n, o = Math.max(0, Math.floor(r / t) - Ho), s = Math.min(e.length - 1, Math.ceil(i / t) + Ho);
|
|
8042
8095
|
return o > s ? [] : e.slice(o, s + 1);
|
|
8043
8096
|
}), j = P(() => ({
|
|
8044
8097
|
width: `${a.value.labelWidth + l.value.totalWidth}px`,
|
|
@@ -8059,7 +8112,7 @@ var ua = [
|
|
|
8059
8112
|
style: W(j.value)
|
|
8060
8113
|
}, [
|
|
8061
8114
|
t[0] ||= R("div", { class: "coar-timeline-view__corner" }, [R("span", { class: "coar-timeline-view__corner-title" }, "Event")], -1),
|
|
8062
|
-
R("div",
|
|
8115
|
+
R("div", Fo, [(G(!0), L(N, null, q(u.value, (t) => (G(), L("div", {
|
|
8063
8116
|
key: t.toString(),
|
|
8064
8117
|
class: H(["coar-timeline-view__date-cell", {
|
|
8065
8118
|
"coar-timeline-view__date-cell--today": f(t),
|
|
@@ -8074,8 +8127,8 @@ var ua = [
|
|
|
8074
8127
|
date: t,
|
|
8075
8128
|
isToday: f(t),
|
|
8076
8129
|
isWeekend: p(t)
|
|
8077
|
-
}, void 0, !0) : (G(), L("span",
|
|
8078
|
-
R("div",
|
|
8130
|
+
}, void 0, !0) : (G(), L("span", Io, Y(h(t)), 1))], 6))), 128))]),
|
|
8131
|
+
R("div", Lo, [R("div", {
|
|
8079
8132
|
class: "coar-timeline-view__label-inner",
|
|
8080
8133
|
style: W({ height: `${Math.max(l.value.totalHeight, a.value.rowHeight)}px` })
|
|
8081
8134
|
}, [(G(!0), L(N, null, q(ie.value, (t) => (G(), L("div", {
|
|
@@ -8092,18 +8145,18 @@ var ua = [
|
|
|
8092
8145
|
}, void 0, !0) : (G(), L(N, { key: 1 }, [R("span", {
|
|
8093
8146
|
class: "coar-timeline-view__label-text",
|
|
8094
8147
|
title: g(t.bars[0].event)
|
|
8095
|
-
}, Y(g(t.bars[0].event)), 9,
|
|
8148
|
+
}, Y(g(t.bars[0].event)), 9, Ro), t.isRecurring ? (G(), L("span", {
|
|
8096
8149
|
key: 0,
|
|
8097
8150
|
class: "coar-timeline-view__label-count",
|
|
8098
8151
|
title: `${t.bars.length} occurrences`
|
|
8099
|
-
}, " ×" + Y(t.bars.length), 9,
|
|
8152
|
+
}, " ×" + Y(t.bars.length), 9, zo)) : I("", !0)], 64))], 6))), 128))], 4)]),
|
|
8100
8153
|
R("div", {
|
|
8101
8154
|
class: "coar-timeline-view__bars-area",
|
|
8102
8155
|
style: W({
|
|
8103
8156
|
width: `${l.value.totalWidth}px`,
|
|
8104
8157
|
height: `${Math.max(l.value.totalHeight, a.value.rowHeight)}px`
|
|
8105
8158
|
})
|
|
8106
|
-
}, [R("div",
|
|
8159
|
+
}, [R("div", Bo, [(G(!0), L(N, null, q(u.value, (e) => (G(), L("div", {
|
|
8107
8160
|
key: e.toString(),
|
|
8108
8161
|
class: H(["coar-timeline-view__day-grid-cell", { "coar-timeline-view__day-grid-cell--weekend": p(e) }]),
|
|
8109
8162
|
style: W({
|
|
@@ -8134,19 +8187,19 @@ var ua = [
|
|
|
8134
8187
|
row: t,
|
|
8135
8188
|
bar: n,
|
|
8136
8189
|
event: n.event
|
|
8137
|
-
}, void 0, !0) : I("", !0)], 46,
|
|
8190
|
+
}, void 0, !0) : I("", !0)], 46, Vo))), 128))], 64))), 128))], 4)
|
|
8138
8191
|
], 4)], 34));
|
|
8139
8192
|
}
|
|
8140
|
-
}), [["__scopeId", "data-v-9e085a08"]]),
|
|
8193
|
+
}), [["__scopeId", "data-v-9e085a08"]]), Wo = ["aria-label"], Go = ["onClick"], Ko = {
|
|
8141
8194
|
class: "coar-year-view__weekdays",
|
|
8142
8195
|
"aria-hidden": "true"
|
|
8143
|
-
},
|
|
8196
|
+
}, qo = { class: "coar-year-view__days" }, Jo = ["tabindex", "onClick"], Yo = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
8144
8197
|
__name: "CoarYearView",
|
|
8145
8198
|
props: { builder: {} },
|
|
8146
8199
|
setup(t) {
|
|
8147
8200
|
let n = t;
|
|
8148
|
-
|
|
8149
|
-
let r =
|
|
8201
|
+
gn(n.builder, { view: "year" });
|
|
8202
|
+
let r = Ot(), i = P(() => X(n.builder.state.locale) ?? r?.language.value ?? "en-US"), a = P(() => X(n.builder.state.firstDayOfWeek) ?? x(i.value)), s = P(() => n.builder.state.date.value.year), c = P(() => e(X(n.builder.state.timezone))), l = P(() => new Intl.DateTimeFormat(i.value, {
|
|
8150
8203
|
month: "long",
|
|
8151
8204
|
timeZone: "UTC"
|
|
8152
8205
|
})), u = P(() => new Intl.DateTimeFormat(i.value, {
|
|
@@ -8182,9 +8235,9 @@ var ua = [
|
|
|
8182
8235
|
class: "coar-year-view__month-title",
|
|
8183
8236
|
type: "button",
|
|
8184
8237
|
onClick: (t) => p(e.first)
|
|
8185
|
-
}, Y(e.label), 9,
|
|
8186
|
-
R("div",
|
|
8187
|
-
R("div",
|
|
8238
|
+
}, Y(e.label), 9, Go),
|
|
8239
|
+
R("div", Ko, [(G(!0), L(N, null, q(d.value, (e, t) => (G(), L("span", { key: t }, Y(e), 1))), 128))]),
|
|
8240
|
+
R("div", qo, [(G(!0), L(N, null, q(e.days, (t) => (G(), L("button", {
|
|
8188
8241
|
key: t.toString(),
|
|
8189
8242
|
type: "button",
|
|
8190
8243
|
class: H(["coar-year-view__day", {
|
|
@@ -8193,19 +8246,19 @@ var ua = [
|
|
|
8193
8246
|
}]),
|
|
8194
8247
|
tabindex: t.month === e.first.month ? 0 : -1,
|
|
8195
8248
|
onClick: (e) => p(t)
|
|
8196
|
-
}, Y(t.day), 11,
|
|
8197
|
-
]))), 128))], 8,
|
|
8249
|
+
}, Y(t.day), 11, Jo))), 128))])
|
|
8250
|
+
]))), 128))], 8, Wo));
|
|
8198
8251
|
}
|
|
8199
|
-
}), [["__scopeId", "data-v-021c0527"]]),
|
|
8252
|
+
}), [["__scopeId", "data-v-021c0527"]]), Xo = { class: "coar-calendar__header" }, Zo = { class: "coar-calendar__nav" }, Qo = { class: "coar-calendar__range-label" }, $o = {
|
|
8200
8253
|
key: 0,
|
|
8201
8254
|
class: "coar-calendar__view-switcher"
|
|
8202
|
-
},
|
|
8255
|
+
}, es = {
|
|
8203
8256
|
key: 1,
|
|
8204
8257
|
class: "coar-calendar__mode-switcher"
|
|
8205
|
-
},
|
|
8258
|
+
}, ts = {
|
|
8206
8259
|
key: 2,
|
|
8207
8260
|
class: "coar-calendar__mode-switcher"
|
|
8208
|
-
},
|
|
8261
|
+
}, ns = 100, rs = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
8209
8262
|
__name: "CoarCalendar",
|
|
8210
8263
|
props: {
|
|
8211
8264
|
builder: {},
|
|
@@ -8252,7 +8305,7 @@ var ua = [
|
|
|
8252
8305
|
eventRenderer: e.eventRenderer,
|
|
8253
8306
|
dayHeaderRenderer: e.dayHeaderRenderer
|
|
8254
8307
|
};
|
|
8255
|
-
}), r = t.builder.state.view, i = t.builder.state.date, a =
|
|
8308
|
+
}), r = t.builder.state.view, i = t.builder.state.date, a = Ot(), { t: o } = Dt(), s = P(() => n.value.locale ?? a?.language.value ?? "en-US"), c = P(() => i.value), l = P(() => n.value.firstDayOfWeek ?? x(s.value)), u = P(() => ie({
|
|
8256
8309
|
view: r.value,
|
|
8257
8310
|
cursor: c.value,
|
|
8258
8311
|
firstDayOfWeek: l.value,
|
|
@@ -8318,7 +8371,7 @@ var ua = [
|
|
|
8318
8371
|
rangeLabel: g.value,
|
|
8319
8372
|
view: r.value,
|
|
8320
8373
|
available: n.value.availableViews
|
|
8321
|
-
})), T =
|
|
8374
|
+
})), T = St("bodyEl"), E = St("agendaView"), D = St("continuousMonthView"), te = 0;
|
|
8322
8375
|
function ne(e, t) {
|
|
8323
8376
|
if (globalThis.matchMedia?.("(prefers-reduced-motion: reduce)").matches) {
|
|
8324
8377
|
e.scrollTop = t;
|
|
@@ -8332,7 +8385,7 @@ var ua = [
|
|
|
8332
8385
|
let i = performance.now(), a = ++te;
|
|
8333
8386
|
function o(t) {
|
|
8334
8387
|
if (a !== te) return;
|
|
8335
|
-
let s = Math.min(1, (t - i) /
|
|
8388
|
+
let s = Math.min(1, (t - i) / ns);
|
|
8336
8389
|
e.scrollTop = n + r * (1 - (1 - s) ** 3), s < 1 && requestAnimationFrame(o);
|
|
8337
8390
|
}
|
|
8338
8391
|
requestAnimationFrame(o);
|
|
@@ -8367,17 +8420,17 @@ var ua = [
|
|
|
8367
8420
|
cursor: c.value,
|
|
8368
8421
|
range: d.value,
|
|
8369
8422
|
controls: w.value
|
|
8370
|
-
}, () => [R("header",
|
|
8423
|
+
}, () => [R("header", Xo, [
|
|
8371
8424
|
J(e.$slots, "headerStart", { controls: w.value }, void 0, !0),
|
|
8372
|
-
R("div",
|
|
8373
|
-
z(Z(
|
|
8425
|
+
R("div", Zo, [
|
|
8426
|
+
z(Z(kt), {
|
|
8374
8427
|
variant: "secondary",
|
|
8375
8428
|
size: "s",
|
|
8376
8429
|
"icon-start": "chevron-left",
|
|
8377
8430
|
"aria-label": Z(o)("coar.calendar.nav.previous", void 0, "Previous"),
|
|
8378
8431
|
onClick: m
|
|
8379
8432
|
}, null, 8, ["aria-label"]),
|
|
8380
|
-
z(Z(
|
|
8433
|
+
z(Z(kt), {
|
|
8381
8434
|
variant: "secondary",
|
|
8382
8435
|
size: "s",
|
|
8383
8436
|
onClick: f
|
|
@@ -8385,7 +8438,7 @@ var ua = [
|
|
|
8385
8438
|
default: Q(() => [rt(Y(Z(o)("coar.calendar.nav.today", void 0, "Today")), 1)]),
|
|
8386
8439
|
_: 1
|
|
8387
8440
|
}),
|
|
8388
|
-
z(Z(
|
|
8441
|
+
z(Z(kt), {
|
|
8389
8442
|
variant: "secondary",
|
|
8390
8443
|
size: "s",
|
|
8391
8444
|
"icon-start": "chevron-right",
|
|
@@ -8393,13 +8446,13 @@ var ua = [
|
|
|
8393
8446
|
onClick: p
|
|
8394
8447
|
}, null, 8, ["aria-label"])
|
|
8395
8448
|
]),
|
|
8396
|
-
R("span",
|
|
8449
|
+
R("span", Qo, Y(g.value), 1),
|
|
8397
8450
|
i[3] ||= R("span", { class: "coar-calendar__spacer" }, null, -1),
|
|
8398
|
-
t.hideViewSwitcher ? I("", !0) : (G(), L("div",
|
|
8451
|
+
t.hideViewSwitcher ? I("", !0) : (G(), L("div", $o, [J(e.$slots, "viewSwitcher", {
|
|
8399
8452
|
view: Z(r),
|
|
8400
8453
|
available: n.value.availableViews,
|
|
8401
8454
|
setView: h
|
|
8402
|
-
}, () => [z(Z(
|
|
8455
|
+
}, () => [z(Z(jt), {
|
|
8403
8456
|
modelValue: y.value,
|
|
8404
8457
|
"onUpdate:modelValue": i[0] ||= (e) => y.value = e,
|
|
8405
8458
|
options: v.value,
|
|
@@ -8410,13 +8463,13 @@ var ua = [
|
|
|
8410
8463
|
"options",
|
|
8411
8464
|
"aria-label"
|
|
8412
8465
|
])], !0)])),
|
|
8413
|
-
!t.hideModeSwitcher && y.value === "month" && b.value.length > 1 ? (G(), L("div",
|
|
8466
|
+
!t.hideModeSwitcher && y.value === "month" && b.value.length > 1 ? (G(), L("div", es, [z(Z(jt), {
|
|
8414
8467
|
modelValue: S.value,
|
|
8415
8468
|
"onUpdate:modelValue": i[1] ||= (e) => S.value = e,
|
|
8416
8469
|
options: b.value,
|
|
8417
8470
|
size: "xs",
|
|
8418
8471
|
"aria-label": "Month display"
|
|
8419
|
-
}, null, 8, ["modelValue", "options"])])) : !t.hideModeSwitcher && y.value === "day" && C.value.length > 1 ? (G(), L("div",
|
|
8472
|
+
}, null, 8, ["modelValue", "options"])])) : !t.hideModeSwitcher && y.value === "day" && C.value.length > 1 ? (G(), L("div", ts, [z(Z(jt), {
|
|
8420
8473
|
modelValue: ee.value,
|
|
8421
8474
|
"onUpdate:modelValue": i[2] ||= (e) => ee.value = e,
|
|
8422
8475
|
options: C.value,
|
|
@@ -8428,7 +8481,7 @@ var ua = [
|
|
|
8428
8481
|
ref_key: "bodyEl",
|
|
8429
8482
|
ref: T,
|
|
8430
8483
|
class: H(["coar-calendar__body", [`coar-calendar__body--${Z(r)}`, { "coar-calendar__body--month-paged": Z(r) === "month" && n.value.monthPresentation === "paged" }]])
|
|
8431
|
-
}, [Z(r) === "day" ? (G(), F(
|
|
8484
|
+
}, [Z(r) === "day" ? (G(), F(Ji, {
|
|
8432
8485
|
key: 0,
|
|
8433
8486
|
builder: t.builder
|
|
8434
8487
|
}, nt({ _: 2 }, [
|
|
@@ -8467,7 +8520,7 @@ var ua = [
|
|
|
8467
8520
|
fn: Q((t) => [J(e.$slots, "hourLabel", U(V(t)), void 0, !0)]),
|
|
8468
8521
|
key: "6"
|
|
8469
8522
|
} : void 0
|
|
8470
|
-
]), 1032, ["builder"])) : Z(r) === "dayAgenda" ? (G(), F(
|
|
8523
|
+
]), 1032, ["builder"])) : Z(r) === "dayAgenda" ? (G(), F(Po, {
|
|
8471
8524
|
key: 1,
|
|
8472
8525
|
ref: "agendaView",
|
|
8473
8526
|
builder: t.builder,
|
|
@@ -8488,7 +8541,7 @@ var ua = [
|
|
|
8488
8541
|
fn: Q((t) => [J(e.$slots, "weekStripEnd", U(V(t)), void 0, !0)]),
|
|
8489
8542
|
key: "2"
|
|
8490
8543
|
} : void 0
|
|
8491
|
-
]), 1032, ["builder"])) : Z(r) === "week" ? (G(), F(
|
|
8544
|
+
]), 1032, ["builder"])) : Z(r) === "week" ? (G(), F(Yi, {
|
|
8492
8545
|
key: 2,
|
|
8493
8546
|
builder: t.builder
|
|
8494
8547
|
}, nt({ _: 2 }, [
|
|
@@ -8512,7 +8565,7 @@ var ua = [
|
|
|
8512
8565
|
fn: Q((t) => [J(e.$slots, "draft", U(V(t)), void 0, !0)]),
|
|
8513
8566
|
key: "3"
|
|
8514
8567
|
} : void 0
|
|
8515
|
-
]), 1032, ["builder"])) : Z(r) === "workWeek" ? (G(), F(
|
|
8568
|
+
]), 1032, ["builder"])) : Z(r) === "workWeek" ? (G(), F(Xi, {
|
|
8516
8569
|
key: 3,
|
|
8517
8570
|
builder: t.builder
|
|
8518
8571
|
}, nt({ _: 2 }, [
|
|
@@ -8536,7 +8589,7 @@ var ua = [
|
|
|
8536
8589
|
fn: Q((t) => [J(e.$slots, "draft", U(V(t)), void 0, !0)]),
|
|
8537
8590
|
key: "3"
|
|
8538
8591
|
} : void 0
|
|
8539
|
-
]), 1032, ["builder"])) : Z(r) === "month" ? (G(), F(
|
|
8592
|
+
]), 1032, ["builder"])) : Z(r) === "month" ? (G(), F(gt(n.value.monthPresentation === "paged" ? $a : Xa), {
|
|
8540
8593
|
key: 4,
|
|
8541
8594
|
ref: "continuousMonthView",
|
|
8542
8595
|
builder: t.builder
|
|
@@ -8570,15 +8623,20 @@ var ua = [
|
|
|
8570
8623
|
name: "dayContent",
|
|
8571
8624
|
fn: Q((t) => [J(e.$slots, "dayContent", U(V(t)), void 0, !0)]),
|
|
8572
8625
|
key: "3"
|
|
8626
|
+
} : void 0,
|
|
8627
|
+
e.$slots.dayFooter ? {
|
|
8628
|
+
name: "dayFooter",
|
|
8629
|
+
fn: Q((t) => [J(e.$slots, "dayFooter", U(V(t)), void 0, !0)]),
|
|
8630
|
+
key: "4"
|
|
8573
8631
|
} : void 0
|
|
8574
|
-
]), 1032, ["builder"])) : Z(r) === "monthList" ? (G(), F(
|
|
8632
|
+
]), 1032, ["builder"])) : Z(r) === "monthList" ? (G(), F(vo, {
|
|
8575
8633
|
key: 5,
|
|
8576
8634
|
builder: t.builder
|
|
8577
8635
|
}, nt({ _: 2 }, [e.$slots.event ? {
|
|
8578
8636
|
name: "event",
|
|
8579
8637
|
fn: Q((t) => [J(e.$slots, "event", lt(t, { view: Z(r) }), void 0, !0)]),
|
|
8580
8638
|
key: "0"
|
|
8581
|
-
} : void 0]), 1032, ["builder"])) : Z(r) === "agenda" ? (G(), F(
|
|
8639
|
+
} : void 0]), 1032, ["builder"])) : Z(r) === "agenda" ? (G(), F(Po, {
|
|
8582
8640
|
key: 6,
|
|
8583
8641
|
ref: "agendaView",
|
|
8584
8642
|
builder: t.builder
|
|
@@ -8590,7 +8648,7 @@ var ua = [
|
|
|
8590
8648
|
name: "empty",
|
|
8591
8649
|
fn: Q(() => [J(e.$slots, "agendaEmpty", {}, void 0, !0)]),
|
|
8592
8650
|
key: "1"
|
|
8593
|
-
} : void 0]), 1032, ["builder"])) : Z(r) === "timeline" ? (G(), F(
|
|
8651
|
+
} : void 0]), 1032, ["builder"])) : Z(r) === "timeline" ? (G(), F(Uo, {
|
|
8594
8652
|
key: 7,
|
|
8595
8653
|
builder: t.builder
|
|
8596
8654
|
}, nt({ _: 2 }, [e.$slots.event ? {
|
|
@@ -8600,18 +8658,18 @@ var ua = [
|
|
|
8600
8658
|
view: Z(r)
|
|
8601
8659
|
}, void 0, !0)]),
|
|
8602
8660
|
key: "0"
|
|
8603
|
-
} : void 0]), 1032, ["builder"])) : Z(r) === "year" ? (G(), F(
|
|
8661
|
+
} : void 0]), 1032, ["builder"])) : Z(r) === "year" ? (G(), F(Yo, {
|
|
8604
8662
|
key: 8,
|
|
8605
8663
|
builder: t.builder
|
|
8606
8664
|
}, null, 8, ["builder"])) : I("", !0)], 2)], 2));
|
|
8607
8665
|
}
|
|
8608
|
-
}), [["__scopeId", "data-v-
|
|
8666
|
+
}), [["__scopeId", "data-v-4e69fe99"]]), is = { class: "coar-mini-month__head" }, as = {
|
|
8609
8667
|
class: "coar-mini-month__title",
|
|
8610
8668
|
"aria-live": "polite"
|
|
8611
|
-
},
|
|
8669
|
+
}, os = ["aria-label"], ss = ["aria-label"], cs = ["aria-label"], ls = {
|
|
8612
8670
|
class: "coar-mini-month__row",
|
|
8613
8671
|
role: "row"
|
|
8614
|
-
},
|
|
8672
|
+
}, us = [
|
|
8615
8673
|
"data-day-key",
|
|
8616
8674
|
"tabindex",
|
|
8617
8675
|
"aria-label",
|
|
@@ -8620,7 +8678,7 @@ var ua = [
|
|
|
8620
8678
|
"onClick",
|
|
8621
8679
|
"onFocus",
|
|
8622
8680
|
"onKeydown"
|
|
8623
|
-
],
|
|
8681
|
+
], ds = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
8624
8682
|
__name: "CoarMiniMonth",
|
|
8625
8683
|
props: {
|
|
8626
8684
|
modelValue: { default: null },
|
|
@@ -8634,8 +8692,8 @@ var ua = [
|
|
|
8634
8692
|
},
|
|
8635
8693
|
emits: ["update:modelValue"],
|
|
8636
8694
|
setup(t, { emit: n }) {
|
|
8637
|
-
let r = t, i = n, { t: s } =
|
|
8638
|
-
|
|
8695
|
+
let r = t, i = n, { t: s } = Dt(), c = Ot(), l = P(() => r.locale ?? c?.language.value ?? "en-US"), u = P(() => r.firstDayOfWeek ?? x(l.value)), d = P(() => r.timezone ?? _.Now.timeZoneId()), f = P(() => e(d.value)), p = K(_.PlainYearMonth.from(r.modelValue ?? f.value));
|
|
8696
|
+
Ct(() => r.modelValue, (e) => {
|
|
8639
8697
|
e && (p.value = _.PlainYearMonth.from(e));
|
|
8640
8698
|
});
|
|
8641
8699
|
let m = P(() => new Intl.DateTimeFormat(l.value, {
|
|
@@ -8653,7 +8711,7 @@ var ua = [
|
|
|
8653
8711
|
month: "long",
|
|
8654
8712
|
year: "numeric",
|
|
8655
8713
|
timeZone: "UTC"
|
|
8656
|
-
})), w = (e) => ee.value.format(/* @__PURE__ */ new Date(`${e}T00:00:00Z`)), T =
|
|
8714
|
+
})), w = (e) => ee.value.format(/* @__PURE__ */ new Date(`${e}T00:00:00Z`)), T = St("root"), E = K(null), te = P(() => {
|
|
8657
8715
|
let e = (e) => e && g.value.some((t) => y(e, t)) ? e : null;
|
|
8658
8716
|
return e(E.value) ?? e(r.modelValue) ?? e(f.value) ?? p.value.toPlainDate({ day: 1 });
|
|
8659
8717
|
});
|
|
@@ -8675,8 +8733,8 @@ var ua = [
|
|
|
8675
8733
|
ref_key: "root",
|
|
8676
8734
|
ref: T,
|
|
8677
8735
|
class: "coar-mini-month"
|
|
8678
|
-
}, [R("div",
|
|
8679
|
-
R("span",
|
|
8736
|
+
}, [R("div", is, [
|
|
8737
|
+
R("span", as, [J(e.$slots, "title", {
|
|
8680
8738
|
month: p.value,
|
|
8681
8739
|
label: m.value
|
|
8682
8740
|
}, () => [rt(Y(m.value), 1)], !0)]),
|
|
@@ -8685,18 +8743,18 @@ var ua = [
|
|
|
8685
8743
|
class: "coar-mini-month__nav",
|
|
8686
8744
|
"aria-label": Z(s)("coar.calendar.miniMonth.previous", void 0, "Previous month"),
|
|
8687
8745
|
onClick: t[0] ||= (e) => p.value = p.value.subtract({ months: 1 })
|
|
8688
|
-
}, " ‹ ", 8,
|
|
8746
|
+
}, " ‹ ", 8, os),
|
|
8689
8747
|
R("button", {
|
|
8690
8748
|
type: "button",
|
|
8691
8749
|
class: "coar-mini-month__nav",
|
|
8692
8750
|
"aria-label": Z(s)("coar.calendar.miniMonth.next", void 0, "Next month"),
|
|
8693
8751
|
onClick: t[1] ||= (e) => p.value = p.value.add({ months: 1 })
|
|
8694
|
-
}, " › ", 8,
|
|
8752
|
+
}, " › ", 8, ss)
|
|
8695
8753
|
]), R("div", {
|
|
8696
8754
|
class: "coar-mini-month__grid",
|
|
8697
8755
|
role: "grid",
|
|
8698
8756
|
"aria-label": m.value
|
|
8699
|
-
}, [R("div",
|
|
8757
|
+
}, [R("div", ls, [(G(!0), L(N, null, q(h.value, (e, t) => (G(), L("span", {
|
|
8700
8758
|
key: t,
|
|
8701
8759
|
class: "coar-mini-month__weekday",
|
|
8702
8760
|
role: "columnheader"
|
|
@@ -8723,10 +8781,10 @@ var ua = [
|
|
|
8723
8781
|
onClick: (e) => i("update:modelValue", t),
|
|
8724
8782
|
onFocus: (e) => E.value = t,
|
|
8725
8783
|
onKeydown: (e) => O(e, t)
|
|
8726
|
-
}, [J(e.$slots, "day", lt({ ref_for: !0 }, C(t)), () => [rt(Y(t.day), 1)], !0)], 42,
|
|
8784
|
+
}, [J(e.$slots, "day", lt({ ref_for: !0 }, C(t)), () => [rt(Y(t.day), 1)], !0)], 42, us)]))), 128))]))), 128))], 8, cs)], 512));
|
|
8727
8785
|
}
|
|
8728
|
-
}), [["__scopeId", "data-v-e26f2d3a"]]),
|
|
8729
|
-
function
|
|
8786
|
+
}), [["__scopeId", "data-v-e26f2d3a"]]), fs = 5;
|
|
8787
|
+
function ps(e, t, n) {
|
|
8730
8788
|
for (let r of e.querySelectorAll("[data-row-index]")) {
|
|
8731
8789
|
let e = r.getBoundingClientRect();
|
|
8732
8790
|
if (n < e.top || n >= e.bottom) continue;
|
|
@@ -8740,10 +8798,10 @@ function cs(e, t, n) {
|
|
|
8740
8798
|
}
|
|
8741
8799
|
return null;
|
|
8742
8800
|
}
|
|
8743
|
-
function
|
|
8744
|
-
let t =
|
|
8801
|
+
function ms(e) {
|
|
8802
|
+
let t = vt(null), n = vt(null), r = null;
|
|
8745
8803
|
function i(t, n, r) {
|
|
8746
|
-
let i = e.rootEl.value, a = i ?
|
|
8804
|
+
let i = e.rootEl.value, a = i ? ps(i, n, r) : null;
|
|
8747
8805
|
if (!a) return null;
|
|
8748
8806
|
let o = e.layout()[a.rowIndex], s = o?.cells[a.col]?.date;
|
|
8749
8807
|
if (!o || !s) return null;
|
|
@@ -8794,15 +8852,15 @@ function ls(e) {
|
|
|
8794
8852
|
});
|
|
8795
8853
|
return r?.date === n.target.date && r?.minutes === n.target.minutes;
|
|
8796
8854
|
}
|
|
8797
|
-
let c =
|
|
8855
|
+
let c = _n({
|
|
8798
8856
|
surfaceRef: e.rootEl,
|
|
8799
8857
|
autoScroll: null,
|
|
8800
|
-
dragThreshold:
|
|
8858
|
+
dragThreshold: fs,
|
|
8801
8859
|
onDragMove: (e) => a(e.data, e.pointer.x, e.pointer.y),
|
|
8802
8860
|
onDragEnd: (t) => {
|
|
8803
8861
|
let { data: n } = t;
|
|
8804
8862
|
if (!t.crossedThreshold) {
|
|
8805
|
-
o(), n.native.pointerType === "touch" || n.native.pointerType === "pen" ?
|
|
8863
|
+
o(), n.native.pointerType === "touch" || n.native.pointerType === "pen" ? vn(() => e.onClick(n.event, n.native)) : e.onClick(n.event, n.native);
|
|
8806
8864
|
return;
|
|
8807
8865
|
}
|
|
8808
8866
|
a(n, t.pointer.x, t.pointer.y);
|
|
@@ -8833,7 +8891,7 @@ function ls(e) {
|
|
|
8833
8891
|
})(t);
|
|
8834
8892
|
}
|
|
8835
8893
|
function u(t) {
|
|
8836
|
-
let n = e.rootEl.value, r = n ?
|
|
8894
|
+
let n = e.rootEl.value, r = n ? ps(n, t.clientX, t.clientY) : null;
|
|
8837
8895
|
return r ? e.layout()[r.rowIndex]?.cells[r.col]?.date ?? null : null;
|
|
8838
8896
|
}
|
|
8839
8897
|
return {
|
|
@@ -8844,8 +8902,8 @@ function ls(e) {
|
|
|
8844
8902
|
dayUnderPointer: u
|
|
8845
8903
|
};
|
|
8846
8904
|
}
|
|
8847
|
-
function
|
|
8848
|
-
let t =
|
|
8905
|
+
function hs(e) {
|
|
8906
|
+
let t = vt(null), n = null, r = (e) => e.preventDefault();
|
|
8849
8907
|
function i(t, n, r) {
|
|
8850
8908
|
let i = e.layout()[t]?.cells ?? [], a = r >= n ? 1 : -1, o = n;
|
|
8851
8909
|
for (; o !== r && i[o + a]?.date;) o += a;
|
|
@@ -8870,7 +8928,7 @@ function us(e) {
|
|
|
8870
8928
|
}, document.addEventListener("touchmove", r, { passive: !1 });
|
|
8871
8929
|
}, 500) : null, g = (n) => {
|
|
8872
8930
|
if (n.pointerId !== u || ((Math.abs(n.clientX - d) > 10 || Math.abs(n.clientY - f) > 10) && (m = !0, !p && h !== null && clearTimeout(h)), !p)) return;
|
|
8873
|
-
let r = e.rootEl.value, a = r ?
|
|
8931
|
+
let r = e.rootEl.value, a = r ? ps(r, n.clientX, n.clientY) : null;
|
|
8874
8932
|
a?.rowIndex === o && (t.value = {
|
|
8875
8933
|
rowIndex: o,
|
|
8876
8934
|
fromCol: s,
|
|
@@ -8891,7 +8949,7 @@ function us(e) {
|
|
|
8891
8949
|
});
|
|
8892
8950
|
return;
|
|
8893
8951
|
}
|
|
8894
|
-
m || (l ?
|
|
8952
|
+
m || (l ? vn(() => e.onDateClick(c, a)) : e.onDateClick(c, a));
|
|
8895
8953
|
}, y = (e) => {
|
|
8896
8954
|
e.pointerId === u && _();
|
|
8897
8955
|
}, b = (e) => {
|
|
@@ -8906,26 +8964,26 @@ function us(e) {
|
|
|
8906
8964
|
}
|
|
8907
8965
|
//#endregion
|
|
8908
8966
|
//#region src/components/CoarCalendarBoard.vue?vue&type=script&setup=true&lang.ts
|
|
8909
|
-
var
|
|
8967
|
+
var gs = ["aria-rowcount", "aria-colcount"], _s = {
|
|
8910
8968
|
key: 0,
|
|
8911
8969
|
class: "coar-calendar-board__row coar-calendar-board__row--header",
|
|
8912
8970
|
role: "row",
|
|
8913
8971
|
"aria-rowindex": "1"
|
|
8914
|
-
},
|
|
8972
|
+
}, vs = { class: "coar-calendar-board__columns" }, ys = ["aria-colindex"], bs = [
|
|
8915
8973
|
"data-row-key",
|
|
8916
8974
|
"data-row-index",
|
|
8917
8975
|
"aria-rowindex"
|
|
8918
|
-
],
|
|
8976
|
+
], xs = {
|
|
8919
8977
|
class: "coar-calendar-board__label",
|
|
8920
8978
|
role: "rowheader",
|
|
8921
8979
|
"aria-colindex": "1"
|
|
8922
|
-
},
|
|
8980
|
+
}, Ss = { class: "coar-calendar-board__body" }, Cs = [
|
|
8923
8981
|
"data-event-id",
|
|
8924
8982
|
"aria-label",
|
|
8925
8983
|
"onPointerdown",
|
|
8926
8984
|
"onKeydown",
|
|
8927
8985
|
"onClick"
|
|
8928
|
-
],
|
|
8986
|
+
], ws = { class: "coar-calendar-board__title" }, Ts = { class: "coar-calendar-board__columns" }, Es = [
|
|
8929
8987
|
"aria-colindex",
|
|
8930
8988
|
"aria-label",
|
|
8931
8989
|
"aria-disabled",
|
|
@@ -8935,16 +8993,16 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
8935
8993
|
"onPointerdown",
|
|
8936
8994
|
"onFocus",
|
|
8937
8995
|
"onKeydown"
|
|
8938
|
-
],
|
|
8996
|
+
], Ds = [
|
|
8939
8997
|
"data-event-id",
|
|
8940
8998
|
"aria-label",
|
|
8941
8999
|
"onPointerdown",
|
|
8942
9000
|
"onKeydown",
|
|
8943
9001
|
"onClick"
|
|
8944
|
-
],
|
|
9002
|
+
], Os = {
|
|
8945
9003
|
key: 0,
|
|
8946
9004
|
class: "coar-calendar-board__time"
|
|
8947
|
-
},
|
|
9005
|
+
}, ks = { class: "coar-calendar-board__title" }, As = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
8948
9006
|
__name: "CoarCalendarBoard",
|
|
8949
9007
|
props: {
|
|
8950
9008
|
builder: {},
|
|
@@ -8967,8 +9025,8 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
8967
9025
|
emits: ["rangeSelect"],
|
|
8968
9026
|
setup(t, { expose: n, emit: r }) {
|
|
8969
9027
|
let i = t, o = r;
|
|
8970
|
-
|
|
8971
|
-
let s =
|
|
9028
|
+
gn(i.builder, { view: i.range });
|
|
9029
|
+
let s = Ot(), c = P(() => X(i.builder.state.locale) ?? s?.language.value ?? "en-US"), l = P(() => X(i.builder.state.timezone)), u = P(() => X(i.builder.state.firstDayOfWeek) ?? x(c.value)), d = P(() => e(l.value)), f = P(() => {
|
|
8972
9030
|
let e = i.builder.state.date.value;
|
|
8973
9031
|
if (i.range === "year") {
|
|
8974
9032
|
let t = _.PlainDate.from({
|
|
@@ -9037,7 +9095,7 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9037
9095
|
})
|
|
9038
9096
|
};
|
|
9039
9097
|
}
|
|
9040
|
-
let re =
|
|
9098
|
+
let re = St("rootEl"), k = ms({
|
|
9041
9099
|
rootEl: re,
|
|
9042
9100
|
layout: () => m.value,
|
|
9043
9101
|
timezone: () => l.value,
|
|
@@ -9048,14 +9106,14 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9048
9106
|
event: e,
|
|
9049
9107
|
native: t
|
|
9050
9108
|
})
|
|
9051
|
-
}), A =
|
|
9109
|
+
}), A = Pn({
|
|
9052
9110
|
pageEl: re,
|
|
9053
9111
|
enabled: () => X(i.builder.state.swipeNavigation) && !k.isDragging.value && ie.selection.value === null,
|
|
9054
9112
|
offsetVar: "--coar-board-swipe-x",
|
|
9055
9113
|
onCommit: (e) => {
|
|
9056
9114
|
e === 1 ? i.builder.api.next() : i.builder.api.prev();
|
|
9057
9115
|
}
|
|
9058
|
-
}), ie =
|
|
9116
|
+
}), ie = hs({
|
|
9059
9117
|
rootEl: re,
|
|
9060
9118
|
layout: () => m.value,
|
|
9061
9119
|
enabled: () => i.selectable,
|
|
@@ -9067,18 +9125,18 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9067
9125
|
onSelect: (e) => o("rangeSelect", e)
|
|
9068
9126
|
});
|
|
9069
9127
|
function j(e, t) {
|
|
9070
|
-
|
|
9128
|
+
Di(e) && i.builder.state.onEventClick?.({
|
|
9071
9129
|
event: t,
|
|
9072
9130
|
native: e
|
|
9073
9131
|
});
|
|
9074
9132
|
}
|
|
9075
9133
|
function ae(e) {
|
|
9076
|
-
|
|
9134
|
+
Rr(e) || A.onPointerdown(e);
|
|
9077
9135
|
}
|
|
9078
9136
|
function oe(e, t, n) {
|
|
9079
|
-
if (
|
|
9137
|
+
if (Rr(e) || ie.onCellPointerdown(e, t, n)) return;
|
|
9080
9138
|
let r = m.value[t]?.cells[n]?.date;
|
|
9081
|
-
r &&
|
|
9139
|
+
r && yn(e, () => i.builder.state.onDateClick?.({
|
|
9082
9140
|
date: r,
|
|
9083
9141
|
native: e
|
|
9084
9142
|
}));
|
|
@@ -9119,7 +9177,7 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9119
9177
|
}
|
|
9120
9178
|
if (e.key === "Enter" || e.key === " ") {
|
|
9121
9179
|
let r = m.value[t]?.cells[n]?.date;
|
|
9122
|
-
if (!r ||
|
|
9180
|
+
if (!r || Rr(e)) return;
|
|
9123
9181
|
e.preventDefault(), i.builder.state.onDateClick?.({
|
|
9124
9182
|
date: r,
|
|
9125
9183
|
native: e
|
|
@@ -9151,11 +9209,11 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9151
9209
|
...Z(A).swipeStyle.value
|
|
9152
9210
|
}),
|
|
9153
9211
|
onPointerdown: ae
|
|
9154
|
-
}, [t.hideHeader ? I("", !0) : (G(), L("div",
|
|
9212
|
+
}, [t.hideHeader ? I("", !0) : (G(), L("div", _s, [n[0] ||= R("div", {
|
|
9155
9213
|
class: "coar-calendar-board__label",
|
|
9156
9214
|
role: "columnheader",
|
|
9157
9215
|
"aria-colindex": "1"
|
|
9158
|
-
}, null, -1), R("div",
|
|
9216
|
+
}, null, -1), R("div", vs, [(G(!0), L(N, null, q(y.value, (t) => (G(), L("div", {
|
|
9159
9217
|
key: t.key,
|
|
9160
9218
|
class: H(["coar-calendar-board__column-header", {
|
|
9161
9219
|
"coar-calendar-board__column-header--today": t.isToday,
|
|
@@ -9168,14 +9226,14 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9168
9226
|
column: t.column,
|
|
9169
9227
|
index: t.index,
|
|
9170
9228
|
isToday: t.isToday
|
|
9171
|
-
}, () => [t.column ? (G(), L(N, { key: 0 }, [rt(Y(t.column.label), 1)], 64)) : t.date ? (G(), L(N, { key: 1 }, [R("small", null, Y(t.weekday), 1), R("b", null, Y(t.date.day), 1)], 64)) : I("", !0)], !0)], 10,
|
|
9229
|
+
}, () => [t.column ? (G(), L(N, { key: 0 }, [rt(Y(t.column.label), 1)], 64)) : t.date ? (G(), L(N, { key: 1 }, [R("small", null, Y(t.weekday), 1), R("b", null, Y(t.date.day), 1)], 64)) : I("", !0)], !0)], 10, ys))), 128))])])), (G(!0), L(N, null, q(m.value, (t, n) => (G(), L("div", {
|
|
9172
9230
|
key: t.row.key,
|
|
9173
9231
|
class: H(["coar-calendar-board__row", [`coar-calendar-board__row--${t.row.kind}`, t.row.class]]),
|
|
9174
9232
|
"data-row-key": t.row.key,
|
|
9175
9233
|
"data-row-index": n,
|
|
9176
9234
|
role: "row",
|
|
9177
9235
|
"aria-rowindex": n + 1 + h.value
|
|
9178
|
-
}, [R("div",
|
|
9236
|
+
}, [R("div", xs, [J(e.$slots, "rowLabel", { row: t.row }, () => [rt(Y(t.row.label ?? t.row.key), 1)], !0)]), R("div", Ss, [t.laneCount > 0 ? (G(), L("div", {
|
|
9179
9237
|
key: 0,
|
|
9180
9238
|
class: "coar-calendar-board__bars",
|
|
9181
9239
|
style: W({ gridTemplateRows: `repeat(${t.laneCount}, auto)` })
|
|
@@ -9202,7 +9260,7 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9202
9260
|
event: n.event,
|
|
9203
9261
|
row: t.row,
|
|
9204
9262
|
bar: n
|
|
9205
|
-
}, () => [R("span",
|
|
9263
|
+
}, () => [R("span", ws, Y(E(n.event)), 1)], !0)], 46, Cs))), 128))], 4)) : I("", !0), R("div", Ts, [(G(!0), L(N, null, q(t.cells, (r, i) => (G(), L("div", {
|
|
9206
9264
|
key: i,
|
|
9207
9265
|
class: H(["coar-calendar-board__cell", [r.date ? {
|
|
9208
9266
|
"coar-calendar-board__cell--today": b(r.date),
|
|
@@ -9244,9 +9302,9 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9244
9302
|
event: n,
|
|
9245
9303
|
row: t.row,
|
|
9246
9304
|
date: r.date
|
|
9247
|
-
}, () => [ne(n) ? (G(), L("time",
|
|
9305
|
+
}, () => [ne(n) ? (G(), L("time", Os, Y(ne(n)), 1)) : I("", !0), R("span", ks, Y(E(n)), 1)], !0)], 46, Ds))), 128)) : I("", !0)], 42, Es))), 128))])])], 10, bs))), 128))], 46, gs));
|
|
9248
9306
|
}
|
|
9249
|
-
}), [["__scopeId", "data-v-
|
|
9307
|
+
}), [["__scopeId", "data-v-f7bcb9d9"]]), js = /* @__PURE__ */ B({
|
|
9250
9308
|
__name: "CoarDisplayZoneSwitcher",
|
|
9251
9309
|
props: {
|
|
9252
9310
|
modelValue: {},
|
|
@@ -9263,7 +9321,7 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9263
9321
|
},
|
|
9264
9322
|
emits: ["update:modelValue"],
|
|
9265
9323
|
setup(e, { emit: t }) {
|
|
9266
|
-
let n = e, r = t, i =
|
|
9324
|
+
let n = e, r = t, i = Ot()?.t ?? ((e, t, n) => n ?? ""), a = [
|
|
9267
9325
|
{
|
|
9268
9326
|
id: "Europe/Vienna",
|
|
9269
9327
|
label: "Vienna (Europe/Vienna)"
|
|
@@ -9314,7 +9372,7 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9314
9372
|
function l(e) {
|
|
9315
9373
|
e != null && r("update:modelValue", e);
|
|
9316
9374
|
}
|
|
9317
|
-
return (t, n) => (G(), F(Z(
|
|
9375
|
+
return (t, n) => (G(), F(Z(Mt), {
|
|
9318
9376
|
"model-value": e.modelValue,
|
|
9319
9377
|
options: s.value,
|
|
9320
9378
|
size: e.size,
|
|
@@ -9332,7 +9390,7 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9332
9390
|
"aria-label"
|
|
9333
9391
|
]));
|
|
9334
9392
|
}
|
|
9335
|
-
}),
|
|
9393
|
+
}), Ms = ["data-x", "data-y"], Ns = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
9336
9394
|
__name: "VirtualizedSurface2D",
|
|
9337
9395
|
props: {
|
|
9338
9396
|
itemCountX: {},
|
|
@@ -9368,7 +9426,7 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9368
9426
|
});
|
|
9369
9427
|
}));
|
|
9370
9428
|
}
|
|
9371
|
-
|
|
9429
|
+
Ct(f, (e) => i("rangeChange", e));
|
|
9372
9430
|
let v = null;
|
|
9373
9431
|
return ft(() => {
|
|
9374
9432
|
let e = a.value;
|
|
@@ -9414,9 +9472,9 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9414
9472
|
}, [J(e.$slots, "cell", {
|
|
9415
9473
|
x: t.x,
|
|
9416
9474
|
y: t.y
|
|
9417
|
-
}, void 0, !0)], 12,
|
|
9475
|
+
}, void 0, !0)], 12, Ms))), 128))], 4)], 544));
|
|
9418
9476
|
}
|
|
9419
|
-
}), [["__scopeId", "data-v-fbba32db"]]),
|
|
9477
|
+
}), [["__scopeId", "data-v-fbba32db"]]), Ps = {
|
|
9420
9478
|
en: {
|
|
9421
9479
|
"coar.calendar.nav.today": "Today",
|
|
9422
9480
|
"coar.calendar.nav.previous": "Previous",
|
|
@@ -9518,11 +9576,11 @@ var ds = ["aria-rowcount", "aria-colcount"], fs = {
|
|
|
9518
9576
|
"coar.calendar.a11y.eventMovedTo": "{title} verschoben auf {when}"
|
|
9519
9577
|
}
|
|
9520
9578
|
};
|
|
9521
|
-
function
|
|
9579
|
+
function Fs() {
|
|
9522
9580
|
return { load(e) {
|
|
9523
|
-
let t =
|
|
9581
|
+
let t = Ps[e.split("-")[0].toLowerCase()];
|
|
9524
9582
|
return Promise.resolve(t ? { ...t } : null);
|
|
9525
9583
|
} };
|
|
9526
9584
|
}
|
|
9527
9585
|
//#endregion
|
|
9528
|
-
export { he as BOARD_ALL_DAY_ROW, tt as BOARD_UNASSIGNED_ROW,
|
|
9586
|
+
export { he as BOARD_ALL_DAY_ROW, tt as BOARD_UNASSIGNED_ROW, dn as CalendarBuilder, Po as CoarAgendaView, rs as CoarCalendar, As as CoarCalendarBoard, Xa as CoarContinuousMonthView, Ji as CoarDayView, js as CoarDisplayZoneSwitcher, ds as CoarMiniMonth, vo as CoarMonthListView, Ga as CoarMonthView, $a as CoarPagedMonthView, Yr as CoarTimeGrid, Uo as CoarTimelineView, Yi as CoarWeekView, Xi as CoarWorkWeekView, Yo as CoarYearView, Ze as DEFAULT_ALL_DAY_MAX_VISIBLE_LANES, $e as DEFAULT_TIMED_EVENT_DETAIL_MIN_WIDTH, _e as DEFAULT_WORK_DAYS, ee as DstResolutionError, y as MIN_RESIZE_MINUTES, xe as MONTH_COMPACT_VISIBLE_PILLS, Ce as MONTH_DEFAULT_MAX_VISIBLE_LANES, M as MONTH_STACKED_VISIBLE_PILLS, He as MeasurementCache, Ie as TIME_GRID_PRESETS, _ as Temporal, le as UNASSIGNED_RESOURCE, bo as VirtualizedSurface1DY, Ns as VirtualizedSurface2D, et as allDayBandLanes, S as applyMoveToEvent, re as boardDropTarget, Oe as buildAgendaItems, h as buildDropPayload, w as buildFormatOptions, Re as busyMinutesOn, Ps as calendarMessages, De as capAllDayBand, ne as capMonthCellPills, Ae as capMonthRowLanes, Ge as computeAnchorAdjustment, Je as computeAutoScrollVelocity, se as computeOccupancy, ie as computeViewWindow, we as contentAwareCascadeFrames, Fs as createCalendarTranslationSource, d as dateKey, A as daysInWindow, Xe as defaultSelectionPolicy, f as detectBrowserTimezone, c as detectDstSituation, x as detectFirstDayOfWeekFromLocale, v as detectHour12FromLocale, m as endOfMonth, p as endOfWeek, Ne as eventInkColor, T as eventStartDateInZone, Me as eventTextColor, ue as findDayGaps, Ye as fitMonthCell, Ve as fitMonthRow, k as formatRangeLabel, te as formatScheduledTime, ke as freeRangeAt, je as gapOrDurationPolicy, mn as getEventZoneHints, Pe as getVisibleRange1D, Te as getVisibleRange2D, Be as hitTestVerticalSurface, b as isAllDayEvent, C as isTimedEvent, l as isoWeekNumber, ce as layoutAllDayBand, ye as layoutBoard, Se as layoutDayEvents, Ke as layoutMonthGrid, Ee as layoutOverlappingIntervals, We as layoutResourceDay, qe as layoutTimeline, D as localizedWeekdayNames, Ue as minuteOfDayToZoned, Fe as monthCellPillLimit, o as monthGridDates, pe as navigateCursor, t as nowInZone, E as parsePlainDate, s as parseScheduledTime, de as resolveSpanDays, fe as resolveTimeGridRange, ge as resolveTimedCardAnatomy, oe as resourceWeekRows, Qe as responsiveDayColumnCount, ze as snapToSlot, n as startOfMonth, a as startOfWeek, me as timeGridRangeSpecFor, j as timeGridStepDays, e as todayInZone, Dn as useA11yAnnouncer, Hn as useAgendaView, fn as useCalendar, Tn as useCalendarDnd, _n as useCoarDrag, Rn as useDayView, Ln as useMonthDnd, Vn as useMonthView, In as useTimeGridDnd, Fn as useTimeGridSwipe, Un as useTimelineView, gn as useViewWindow, zn as useWeekView, Bn as useWorkWeekView, u as validateCalendarEvent, ve as weekBoardRows, g as weekDates, Le as windowContainsDate, O as windowDayCount, i as workWeekDates, be as yearWallColumns, ae as yearWallRows };
|