@cocoar/vue-calendar 3.4.0-beta.25 → 3.4.0-beta.33
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.map +1 -1
- package/dist/components/CoarContinuousMonthView.vue.d.ts.map +1 -1
- package/dist/components/CoarMonthListView.vue.d.ts.map +1 -1
- package/dist/components/internal/CoarEventAssignees.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeAxisMarker.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeGridEvent.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeGridSurface.vue.d.ts.map +1 -1
- package/dist/components/internal/time-grid/CoarTimeSelectionLayer.vue.d.ts.map +1 -1
- package/dist/composables/useMonthDayOverlay.d.ts.map +1 -1
- package/dist/index.js +335 -333
- package/dist/vue-calendar.css +1 -1
- package/package.json +6 -6
package/dist/index.js
CHANGED
|
@@ -2238,11 +2238,11 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2238
2238
|
let n = e.__vccOpts || e;
|
|
2239
2239
|
for (let [e, r] of t) n[e] = r;
|
|
2240
2240
|
return n;
|
|
2241
|
-
}, Ln = /* @__PURE__ */ $(In, [["__scopeId", "data-v-e4bc816e"]]), Rn = ["aria-label", "title"], zn = {
|
|
2241
|
+
}, Ln = /* @__PURE__ */ $(In, [["__scopeId", "data-v-e4bc816e"]]), Rn = ["aria-label", "title"], zn = { class: "coar-event-assignees__initials" }, Bn = {
|
|
2242
2242
|
key: 0,
|
|
2243
2243
|
class: "coar-event-assignees__overflow",
|
|
2244
2244
|
"aria-hidden": "true"
|
|
2245
|
-
},
|
|
2245
|
+
}, Vn = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2246
2246
|
__name: "CoarEventAssignees",
|
|
2247
2247
|
props: {
|
|
2248
2248
|
event: {},
|
|
@@ -2285,31 +2285,32 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2285
2285
|
class: "coar-event-assignees__avatar",
|
|
2286
2286
|
style: W({
|
|
2287
2287
|
background: e.autoColor ? `var(--coar-calendar-avatar-auto-bg, ${e.color})` : e.color,
|
|
2288
|
+
"--assignee-color": e.color,
|
|
2288
2289
|
"--assignee-ink": e.autoColor ? "var(--coar-text-on-accent, #fff)" : Z(ie)(e.color, "white")
|
|
2289
2290
|
}),
|
|
2290
2291
|
"aria-hidden": "true"
|
|
2291
|
-
}, Y(o(e.displayName)),
|
|
2292
|
+
}, [L("span", zn, Y(o(e.displayName)), 1)], 4))), 128)), i.value ? (G(), I("span", Bn, "+" + Y(i.value), 1)) : F("", !0)], 10, Rn)) : F("", !0);
|
|
2292
2293
|
}
|
|
2293
|
-
}), [["__scopeId", "data-v-
|
|
2294
|
+
}), [["__scopeId", "data-v-efd1a761"]]), Hn = [
|
|
2294
2295
|
"data-event-id",
|
|
2295
2296
|
"tabindex",
|
|
2296
2297
|
"role",
|
|
2297
2298
|
"aria-label",
|
|
2298
2299
|
"aria-hidden"
|
|
2299
|
-
],
|
|
2300
|
+
], Un = {
|
|
2300
2301
|
key: 0,
|
|
2301
2302
|
class: "coar-time-grid-event__point-edge",
|
|
2302
2303
|
"aria-hidden": "true"
|
|
2303
|
-
},
|
|
2304
|
+
}, Wn = { class: "coar-time-grid-event__default" }, Gn = { class: "coar-time-grid-event__title-row" }, Kn = {
|
|
2304
2305
|
key: 0,
|
|
2305
2306
|
class: "coar-time-grid-event__location"
|
|
2306
|
-
},
|
|
2307
|
+
}, qn = {
|
|
2307
2308
|
key: 1,
|
|
2308
2309
|
class: "coar-time-grid-event__time"
|
|
2309
|
-
},
|
|
2310
|
+
}, Jn = {
|
|
2310
2311
|
key: 3,
|
|
2311
2312
|
class: "coar-time-grid-event__default"
|
|
2312
|
-
},
|
|
2313
|
+
}, Yn = { class: "coar-time-grid-event__title-row" }, Xn = { class: "coar-time-grid-event__title" }, Zn = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2313
2314
|
__name: "CoarTimeGridEvent",
|
|
2314
2315
|
props: {
|
|
2315
2316
|
event: {},
|
|
@@ -2407,7 +2408,7 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2407
2408
|
onKeydown: f,
|
|
2408
2409
|
onDblclick: p
|
|
2409
2410
|
}, [
|
|
2410
|
-
a.value && !e.clippedTop ? (G(), I("div",
|
|
2411
|
+
a.value && !e.clippedTop ? (G(), I("div", Un)) : F("", !0),
|
|
2411
2412
|
i.value && !a.value ? (G(), I("div", {
|
|
2412
2413
|
key: 1,
|
|
2413
2414
|
class: "coar-time-grid-event__resize coar-time-grid-event__resize--top",
|
|
@@ -2418,30 +2419,30 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2418
2419
|
key: 2,
|
|
2419
2420
|
event: e.event,
|
|
2420
2421
|
positioned: e.positioned
|
|
2421
|
-
}, () => [L("div",
|
|
2422
|
-
L("span",
|
|
2422
|
+
}, () => [L("div", Wn, [
|
|
2423
|
+
L("span", Gn, [
|
|
2423
2424
|
z(Ln, {
|
|
2424
2425
|
event: e.event,
|
|
2425
2426
|
"display-zone": e.displayZone,
|
|
2426
2427
|
size: "s"
|
|
2427
2428
|
}, null, 8, ["event", "display-zone"]),
|
|
2428
2429
|
L("span", { class: H(["coar-time-grid-event__title", { "coar-time-grid-event__title--two-lines": c.value.titleLines === 2 }]) }, Y(e.title), 3),
|
|
2429
|
-
z(
|
|
2430
|
+
z(Vn, {
|
|
2430
2431
|
event: e.event,
|
|
2431
2432
|
max: 2,
|
|
2432
2433
|
size: "xs"
|
|
2433
2434
|
}, null, 8, ["event"])
|
|
2434
2435
|
]),
|
|
2435
|
-
l.value ? (G(), I("span",
|
|
2436
|
-
u.value ? (G(), I("span",
|
|
2437
|
-
])], !0) : (G(), I("div",
|
|
2436
|
+
l.value ? (G(), I("span", Kn, Y(e.location), 1)) : F("", !0),
|
|
2437
|
+
u.value ? (G(), I("span", qn, Y(e.timeLabel), 1)) : F("", !0)
|
|
2438
|
+
])], !0) : (G(), I("div", Jn, [L("span", Yn, [
|
|
2438
2439
|
z(Ln, {
|
|
2439
2440
|
event: e.event,
|
|
2440
2441
|
"display-zone": e.displayZone,
|
|
2441
2442
|
size: "s"
|
|
2442
2443
|
}, null, 8, ["event", "display-zone"]),
|
|
2443
|
-
L("span",
|
|
2444
|
-
z(
|
|
2444
|
+
L("span", Xn, Y(e.title), 1),
|
|
2445
|
+
z(Vn, {
|
|
2445
2446
|
event: e.event,
|
|
2446
2447
|
max: 2,
|
|
2447
2448
|
size: "xs"
|
|
@@ -2453,15 +2454,15 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2453
2454
|
"aria-hidden": "true",
|
|
2454
2455
|
onPointerdown: h
|
|
2455
2456
|
}, null, 32)) : F("", !0)
|
|
2456
|
-
], 46,
|
|
2457
|
+
], 46, Hn));
|
|
2457
2458
|
}
|
|
2458
|
-
}), [["__scopeId", "data-v-
|
|
2459
|
+
}), [["__scopeId", "data-v-ac27681c"]]), Qn = [
|
|
2459
2460
|
"data-event-id",
|
|
2460
2461
|
"tabindex",
|
|
2461
2462
|
"role",
|
|
2462
2463
|
"aria-label",
|
|
2463
2464
|
"aria-hidden"
|
|
2464
|
-
],
|
|
2465
|
+
], $n = { class: "coar-time-grid-all-day-bar__title" }, er = { class: "coar-time-grid-all-day-bar__title" }, tr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2465
2466
|
__name: "CoarTimeGridAllDayBar",
|
|
2466
2467
|
props: {
|
|
2467
2468
|
event: {},
|
|
@@ -2558,11 +2559,11 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2558
2559
|
key: 1,
|
|
2559
2560
|
event: e.event,
|
|
2560
2561
|
bar: e.bar
|
|
2561
|
-
}, () => [L("span",
|
|
2562
|
+
}, () => [L("span", $n, Y(e.title), 1), z(Vn, {
|
|
2562
2563
|
event: e.event,
|
|
2563
2564
|
max: 2,
|
|
2564
2565
|
size: "xs"
|
|
2565
|
-
}, null, 8, ["event"])], !0) : (G(), I(M, { key: 2 }, [L("span",
|
|
2566
|
+
}, null, 8, ["event"])], !0) : (G(), I(M, { key: 2 }, [L("span", er, Y(e.title), 1), z(Vn, {
|
|
2566
2567
|
event: e.event,
|
|
2567
2568
|
max: 2,
|
|
2568
2569
|
size: "xs"
|
|
@@ -2573,9 +2574,9 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2573
2574
|
"aria-hidden": "true",
|
|
2574
2575
|
onPointerdown: m
|
|
2575
2576
|
}, null, 32)) : F("", !0)
|
|
2576
|
-
], 46,
|
|
2577
|
+
], 46, Qn));
|
|
2577
2578
|
}
|
|
2578
|
-
}), [["__scopeId", "data-v-6e1f799d"]]),
|
|
2579
|
+
}), [["__scopeId", "data-v-6e1f799d"]]), nr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2579
2580
|
__name: "CoarTimeGridNowMarker",
|
|
2580
2581
|
props: {
|
|
2581
2582
|
topPx: { default: 0 },
|
|
@@ -2589,7 +2590,7 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2589
2590
|
"aria-hidden": "true"
|
|
2590
2591
|
}, [...n[0] ||= [L("span", { class: "coar-time-grid-now-marker__dot" }, null, -1), L("span", { class: "coar-time-grid-now-marker__line" }, null, -1)]], 6));
|
|
2591
2592
|
}
|
|
2592
|
-
}), [["__scopeId", "data-v-4d17038c"]]),
|
|
2593
|
+
}), [["__scopeId", "data-v-4d17038c"]]), rr = ["aria-colindex", "aria-current"], ir = { class: "coar-time-grid-header__label" }, ar = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2593
2594
|
__name: "CoarTimeGridHeader",
|
|
2594
2595
|
props: {
|
|
2595
2596
|
days: {},
|
|
@@ -2625,9 +2626,9 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2625
2626
|
date: n,
|
|
2626
2627
|
isToday: e.isToday(n),
|
|
2627
2628
|
isWeekend: e.isWeekend(n)
|
|
2628
|
-
}, () => [L("span",
|
|
2629
|
+
}, () => [L("span", ir, Y(e.formatLabel(n)), 1)], !0)], 10, rr))), 128))], 34)], 2));
|
|
2629
2630
|
}
|
|
2630
|
-
}), [["__scopeId", "data-v-0eb2642f"]]),
|
|
2631
|
+
}), [["__scopeId", "data-v-0eb2642f"]]), or = ["aria-label"], sr = { class: "coar-time-grid-all-day-band__axis" }, cr = { "aria-hidden": "true" }, lr = ["onPointerdown", "onDblclick"], ur = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2631
2632
|
__name: "CoarTimeGridAllDayBand",
|
|
2632
2633
|
props: {
|
|
2633
2634
|
days: {},
|
|
@@ -2660,7 +2661,7 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2660
2661
|
style: W({ minHeight: e.bandHeightPx + "px" }),
|
|
2661
2662
|
role: "region",
|
|
2662
2663
|
"aria-label": e.axisLabel
|
|
2663
|
-
}, [L("div",
|
|
2664
|
+
}, [L("div", sr, [L("span", cr, Y(e.axisLabel), 1), e.collapsible ? (G(), I("button", {
|
|
2664
2665
|
key: 0,
|
|
2665
2666
|
type: "button",
|
|
2666
2667
|
class: "coar-time-grid-all-day-band__collapse",
|
|
@@ -2678,9 +2679,9 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2678
2679
|
style: W({ gridColumn: n + 1 }),
|
|
2679
2680
|
onPointerdown: (e) => r(e, t),
|
|
2680
2681
|
onDblclick: (e) => i(e, t)
|
|
2681
|
-
}, null, 46,
|
|
2682
|
+
}, null, 46, lr))), 128)), J(t.$slots, "default", {}, void 0, !0)], 512)], 12, or));
|
|
2682
2683
|
}
|
|
2683
|
-
}), [["__scopeId", "data-v-89be2910"]]),
|
|
2684
|
+
}), [["__scopeId", "data-v-89be2910"]]), dr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2684
2685
|
__name: "CoarTimeGridColumn",
|
|
2685
2686
|
props: {
|
|
2686
2687
|
day: {},
|
|
@@ -2719,7 +2720,7 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2719
2720
|
onDblclick: o
|
|
2720
2721
|
}, [J(t.$slots, "default", {}, void 0, !0)], 38));
|
|
2721
2722
|
}
|
|
2722
|
-
}), [["__scopeId", "data-v-a1c5a0db"]]),
|
|
2723
|
+
}), [["__scopeId", "data-v-a1c5a0db"]]), fr = ["aria-label"], pr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2723
2724
|
__name: "CoarTimeGridAllDayOverflow",
|
|
2724
2725
|
props: {
|
|
2725
2726
|
hidden: {},
|
|
@@ -2745,12 +2746,12 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2745
2746
|
onPointerdown: r[0] ||= ut(() => {}, ["stop"]),
|
|
2746
2747
|
onDblclick: r[1] ||= ut(() => {}, ["stop"]),
|
|
2747
2748
|
onClick: r[2] ||= ut((e) => n("expand"), ["stop"])
|
|
2748
|
-
}, " +" + Y(e.hidden), 45,
|
|
2749
|
+
}, " +" + Y(e.hidden), 45, fr));
|
|
2749
2750
|
}
|
|
2750
|
-
}), [["__scopeId", "data-v-63791083"]]),
|
|
2751
|
+
}), [["__scopeId", "data-v-63791083"]]), mr = ["data-band-kind"], hr = {
|
|
2751
2752
|
key: 0,
|
|
2752
2753
|
class: "coar-calendar-band__label"
|
|
2753
|
-
},
|
|
2754
|
+
}, gr = 120, _r = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2754
2755
|
__name: "CoarCalendarBands",
|
|
2755
2756
|
props: {
|
|
2756
2757
|
bands: {},
|
|
@@ -2771,7 +2772,7 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2771
2772
|
return t.orientation === "horizontal" ? (n.left = r + "px", n.width = i + "px") : (n.top = r + "px", n.height = i + "px"), n;
|
|
2772
2773
|
}
|
|
2773
2774
|
function i(e) {
|
|
2774
|
-
let n = e.type === "line" && t.orientation === "horizontal" && t.extentPx !== void 0 && t.toPx(e.at) > t.extentPx -
|
|
2775
|
+
let n = e.type === "line" && t.orientation === "horizontal" && t.extentPx !== void 0 && t.toPx(e.at) > t.extentPx - gr;
|
|
2775
2776
|
return [
|
|
2776
2777
|
"coar-calendar-band",
|
|
2777
2778
|
`coar-calendar-band--${e.kind}`,
|
|
@@ -2789,9 +2790,9 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2789
2790
|
style: W(r(t)),
|
|
2790
2791
|
"data-band-kind": t.kind,
|
|
2791
2792
|
"aria-hidden": "true"
|
|
2792
|
-
}, [t.label ? (G(), I("span",
|
|
2793
|
+
}, [t.label ? (G(), I("span", hr, Y(t.label), 1)) : F("", !0)], 14, mr))), 128));
|
|
2793
2794
|
}
|
|
2794
|
-
}), [["__scopeId", "data-v-e622333a"]]),
|
|
2795
|
+
}), [["__scopeId", "data-v-e622333a"]]), vr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2795
2796
|
__name: "CoarTimeSelectionLayer",
|
|
2796
2797
|
props: {
|
|
2797
2798
|
orientation: {},
|
|
@@ -2833,7 +2834,7 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2833
2834
|
segment: e.draft
|
|
2834
2835
|
}, void 0, !0)], 6)) : F("", !0)], 64));
|
|
2835
2836
|
}
|
|
2836
|
-
}), [["__scopeId", "data-v-
|
|
2837
|
+
}), [["__scopeId", "data-v-99a46a3f"]]), yr = { class: "coar-time-axis-marker__duration" }, br = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
2837
2838
|
__name: "CoarTimeAxisMarker",
|
|
2838
2839
|
props: {
|
|
2839
2840
|
orientation: {},
|
|
@@ -2868,7 +2869,7 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2868
2869
|
L("span", {
|
|
2869
2870
|
class: "coar-time-axis-marker__span",
|
|
2870
2871
|
style: W(a(e.mark.startPx, e.mark.endPx))
|
|
2871
|
-
}, [L("span",
|
|
2872
|
+
}, [L("span", yr, Y(e.mark.durationLabel), 1)], 4),
|
|
2872
2873
|
L("span", {
|
|
2873
2874
|
class: "coar-time-axis-marker__pill coar-time-axis-marker__pill--start",
|
|
2874
2875
|
style: W(i(e.mark.startPx))
|
|
@@ -2883,14 +2884,14 @@ var Mn = ["title", "aria-label"], Nn = { class: "coar-event-decorations__sr-only
|
|
|
2883
2884
|
style: W(i(e.mark.startPx))
|
|
2884
2885
|
}, Y(e.mark.startLabel) + "–" + Y(e.mark.endLabel) + " · " + Y(e.mark.durationLabel), 5))], 2));
|
|
2885
2886
|
}
|
|
2886
|
-
}), [["__scopeId", "data-v-
|
|
2887
|
+
}), [["__scopeId", "data-v-3abf3a89"]]);
|
|
2887
2888
|
//#endregion
|
|
2888
2889
|
//#region src/components/internal/originatesFromEvent.ts
|
|
2889
|
-
function
|
|
2890
|
+
function xr(e) {
|
|
2890
2891
|
let t = e.target;
|
|
2891
2892
|
return t instanceof Element && t.closest("[data-event-id]") !== null;
|
|
2892
2893
|
}
|
|
2893
|
-
function
|
|
2894
|
+
function Sr(e) {
|
|
2894
2895
|
let t = e.builder.state, n = () => X(t.timeRangeSelect), r = () => X(t.hoverIndicator), i = nt(null), a = nt(null), o = N(() => ({
|
|
2895
2896
|
start: e.timeRange.value[0] * 60,
|
|
2896
2897
|
end: e.timeRange.value[1] * 60
|
|
@@ -2947,7 +2948,7 @@ function xr(e) {
|
|
|
2947
2948
|
let t = f(e);
|
|
2948
2949
|
i.value = t ? {
|
|
2949
2950
|
...t,
|
|
2950
|
-
onEvent:
|
|
2951
|
+
onEvent: xr(e)
|
|
2951
2952
|
} : null;
|
|
2952
2953
|
}
|
|
2953
2954
|
function g() {
|
|
@@ -3104,13 +3105,13 @@ function xr(e) {
|
|
|
3104
3105
|
}
|
|
3105
3106
|
//#endregion
|
|
3106
3107
|
//#region src/composables/useTimeGridOverlays.ts
|
|
3107
|
-
var
|
|
3108
|
-
function
|
|
3108
|
+
var Cr = (e) => e.hour * 60 + e.minute;
|
|
3109
|
+
function wr(e, t, n) {
|
|
3109
3110
|
let r = [];
|
|
3110
3111
|
return e.forEach((e, i) => {
|
|
3111
3112
|
let a = `${i}-${e.kind}`;
|
|
3112
3113
|
if ("at" in e) {
|
|
3113
|
-
let i =
|
|
3114
|
+
let i = Cr(e.at);
|
|
3114
3115
|
if (i < t || i > n) return;
|
|
3115
3116
|
r.push({
|
|
3116
3117
|
type: "line",
|
|
@@ -3122,7 +3123,7 @@ function Cr(e, t, n) {
|
|
|
3122
3123
|
});
|
|
3123
3124
|
return;
|
|
3124
3125
|
}
|
|
3125
|
-
let o = Math.max(t,
|
|
3126
|
+
let o = Math.max(t, Cr(e.start)), s = Cr(e.end), c = Math.min(n, s === 0 ? 1440 : s);
|
|
3126
3127
|
c <= o || r.push({
|
|
3127
3128
|
type: "range",
|
|
3128
3129
|
key: a,
|
|
@@ -3136,7 +3137,7 @@ function Cr(e, t, n) {
|
|
|
3136
3137
|
});
|
|
3137
3138
|
}), r;
|
|
3138
3139
|
}
|
|
3139
|
-
function
|
|
3140
|
+
function Tr(e) {
|
|
3140
3141
|
let t = N(() => ({
|
|
3141
3142
|
from: e.timeRange.value[0] * 60,
|
|
3142
3143
|
to: e.timeRange.value[1] * 60
|
|
@@ -3146,7 +3147,7 @@ function wr(e) {
|
|
|
3146
3147
|
let { from: i, to: a } = t.value;
|
|
3147
3148
|
for (let t of e.days.value) {
|
|
3148
3149
|
let e = n(t);
|
|
3149
|
-
e && e.length > 0 && r.set(t.toString(),
|
|
3150
|
+
e && e.length > 0 && r.set(t.toString(), wr(e, i, a));
|
|
3150
3151
|
}
|
|
3151
3152
|
return r;
|
|
3152
3153
|
});
|
|
@@ -3191,7 +3192,7 @@ function wr(e) {
|
|
|
3191
3192
|
draftFor: o
|
|
3192
3193
|
};
|
|
3193
3194
|
}
|
|
3194
|
-
function
|
|
3195
|
+
function Er(e) {
|
|
3195
3196
|
let { toPx: t, formatClock: n, formatDuration: r } = e;
|
|
3196
3197
|
if (e.drag) {
|
|
3197
3198
|
let { start: i, end: a } = e.drag;
|
|
@@ -3225,12 +3226,12 @@ function Tr(e) {
|
|
|
3225
3226
|
}
|
|
3226
3227
|
//#endregion
|
|
3227
3228
|
//#region src/components/CoarTimeGrid.vue?vue&type=script&setup=true&lang.ts
|
|
3228
|
-
var
|
|
3229
|
+
var Dr = ["aria-hidden", "aria-label"], Or = {
|
|
3229
3230
|
class: "coar-time-grid__a11y-live",
|
|
3230
3231
|
role: "status",
|
|
3231
3232
|
"aria-live": "polite",
|
|
3232
3233
|
"aria-atomic": "true"
|
|
3233
|
-
},
|
|
3234
|
+
}, kr = ["data-hour"], Ar = 15, jr = 2, Mr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
3234
3235
|
__name: "CoarTimeGrid",
|
|
3235
3236
|
props: {
|
|
3236
3237
|
builder: {},
|
|
@@ -3314,7 +3315,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3314
3315
|
e = e.parentElement;
|
|
3315
3316
|
}
|
|
3316
3317
|
return null;
|
|
3317
|
-
}), _e = A, ve = N(() =>
|
|
3318
|
+
}), _e = A, ve = N(() => Ar), ye = cn({
|
|
3318
3319
|
columnsRef: ue,
|
|
3319
3320
|
days: _e,
|
|
3320
3321
|
pixelsPerHour: d,
|
|
@@ -3341,7 +3342,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3341
3342
|
},
|
|
3342
3343
|
onEventDrop: (e) => r.builder.state.onEventDrop?.(e),
|
|
3343
3344
|
onAnnounce: (e, t) => ae(e, t)
|
|
3344
|
-
}), Ae =
|
|
3345
|
+
}), Ae = Sr({
|
|
3345
3346
|
builder: r.builder,
|
|
3346
3347
|
axis: ye,
|
|
3347
3348
|
timeRange: l,
|
|
@@ -3349,7 +3350,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3349
3350
|
timezone: f,
|
|
3350
3351
|
events: () => c.value,
|
|
3351
3352
|
onClaim: (e) => he.release(e)
|
|
3352
|
-
}), je = N(() => !r.ghost && X(r.builder.state.timeRangeSelect)), Me =
|
|
3353
|
+
}), je = N(() => !r.ghost && X(r.builder.state.timeRangeSelect)), Me = Tr({
|
|
3353
3354
|
builder: r.builder,
|
|
3354
3355
|
days: A,
|
|
3355
3356
|
timeRange: l,
|
|
@@ -3358,7 +3359,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3358
3359
|
function Ne(e) {
|
|
3359
3360
|
return rt(e - l.value[0] * 60);
|
|
3360
3361
|
}
|
|
3361
|
-
let Pe = N(() => r.ghost ? null :
|
|
3362
|
+
let Pe = N(() => r.ghost ? null : Er({
|
|
3362
3363
|
drag: Ae.dragSelection.value,
|
|
3363
3364
|
hoverMinute: Ae.hoverMinute.value,
|
|
3364
3365
|
draft: Me.draft.value,
|
|
@@ -3367,7 +3368,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3367
3368
|
toPx: Ne,
|
|
3368
3369
|
formatClock: x,
|
|
3369
3370
|
formatDuration: S
|
|
3370
|
-
})), Fe = N(() => r.ghost || Ae.hoverMinute.value === null ? null : Ne(Ae.hoverMinute.value)), Ie = N(() => l.value[1] - l.value[0]), Le = N(() => Ie.value * d.value + 2 * (d.value *
|
|
3371
|
+
})), Fe = N(() => r.ghost || Ae.hoverMinute.value === null ? null : Ne(Ae.hoverMinute.value)), Ie = N(() => l.value[1] - l.value[0]), Le = N(() => Ie.value * d.value + 2 * (d.value * Ar) / 60), Re = N(() => d.value * u.value / 60), ze = N(() => {
|
|
3371
3372
|
let e = j.draggedEvent.value, t = j.dragMode.value, n = e !== null && (t === "timed" || t === "timed-resize-start" || t === "timed-resize-end") ? `${e.id}__preview` : void 0;
|
|
3372
3373
|
return A.value.map((e) => {
|
|
3373
3374
|
let t = k(be.value, {
|
|
@@ -3441,26 +3442,26 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3441
3442
|
st(() => qe.value.exceedsCap, (e) => {
|
|
3442
3443
|
e || (Ke.value = !1);
|
|
3443
3444
|
});
|
|
3444
|
-
let Je = N(() => qe.value.visibleLanes), Xe = N(() => Oe(Je.value, s.value.allDayBandMode, s.value.allDayMaxVisibleLanes)), $e = N(() => 4 + (Je.value - 1) * (Ue.value +
|
|
3445
|
+
let Je = N(() => qe.value.visibleLanes), Xe = N(() => Oe(Je.value, s.value.allDayBandMode, s.value.allDayMaxVisibleLanes)), $e = N(() => 4 + (Je.value - 1) * (Ue.value + jr));
|
|
3445
3446
|
function et(e) {
|
|
3446
3447
|
return a("coar.calendar.timegrid.allDayMore", { count: e }, `${e} more all-day events — show all`);
|
|
3447
3448
|
}
|
|
3448
|
-
let tt = N(() => Xe.value === 0 ? 0 : Xe.value * (Ue.value +
|
|
3449
|
+
let tt = N(() => Xe.value === 0 ? 0 : Xe.value * (Ue.value + jr) + 8);
|
|
3449
3450
|
function nt(e) {
|
|
3450
3451
|
return e * d.value / 60;
|
|
3451
3452
|
}
|
|
3452
3453
|
function rt(e) {
|
|
3453
|
-
return nt(e +
|
|
3454
|
+
return nt(e + Ar);
|
|
3454
3455
|
}
|
|
3455
3456
|
function it(e) {
|
|
3456
|
-
let t = e.currentTarget.getBoundingClientRect(), n = e.clientY - t.top - nt(
|
|
3457
|
+
let t = e.currentTarget.getBoundingClientRect(), n = e.clientY - t.top - nt(Ar), r = Math.max(0, Math.ceil(Ie.value * 60 / u.value) - 1), i = Math.min(r, Math.max(0, Math.floor(n / Re.value))) * u.value, a = l.value[0] * 60 + i, o = Math.floor(a / 60), s = a % 60;
|
|
3457
3458
|
return o < 0 || o >= 24 ? null : _.PlainTime.from({
|
|
3458
3459
|
hour: o,
|
|
3459
3460
|
minute: s
|
|
3460
3461
|
});
|
|
3461
3462
|
}
|
|
3462
3463
|
function ct(e, t) {
|
|
3463
|
-
if (
|
|
3464
|
+
if (xr(e)) return;
|
|
3464
3465
|
let n = it(e);
|
|
3465
3466
|
if (!n) return;
|
|
3466
3467
|
let i = Ae.onSurfacePointerdown(e, () => r.builder.state.onTimeClick?.({
|
|
@@ -3482,7 +3483,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3482
3483
|
});
|
|
3483
3484
|
}
|
|
3484
3485
|
function ft(e, t) {
|
|
3485
|
-
|
|
3486
|
+
xr(e) || nn(e, () => r.builder.state.onDateClick?.({
|
|
3486
3487
|
date: t,
|
|
3487
3488
|
native: e
|
|
3488
3489
|
}));
|
|
@@ -3529,11 +3530,11 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3529
3530
|
class: "coar-time-grid__all-day-lane-metric",
|
|
3530
3531
|
"aria-hidden": "true"
|
|
3531
3532
|
}, null, 512),
|
|
3532
|
-
L("div",
|
|
3533
|
+
L("div", Or, Y(Z(ie).message.value), 1),
|
|
3533
3534
|
L("div", {
|
|
3534
3535
|
class: "coar-time-grid__sticky-top",
|
|
3535
3536
|
style: W(r.ghost && r.ghostTopPx ? { height: r.ghostTopPx + "px" } : void 0)
|
|
3536
|
-
}, [z(
|
|
3537
|
+
}, [z(ar, {
|
|
3537
3538
|
days: Z(oe),
|
|
3538
3539
|
"is-today": Z(g),
|
|
3539
3540
|
"is-weekend": Z(v),
|
|
@@ -3556,7 +3557,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3556
3557
|
"format-label",
|
|
3557
3558
|
"density",
|
|
3558
3559
|
"swipeable"
|
|
3559
|
-
]), (r.ghost ? (r.ghostBandPx ?? 0) > 0 : Xe.value > 0) ? (G(), P(
|
|
3560
|
+
]), (r.ghost ? (r.ghostBandPx ?? 0) > 0 : Xe.value > 0) ? (G(), P(ur, {
|
|
3560
3561
|
key: 0,
|
|
3561
3562
|
days: Z(oe),
|
|
3562
3563
|
"axis-label": Z(a)("coar.calendar.timegrid.allDay", void 0, "all-day"),
|
|
@@ -3571,7 +3572,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3571
3572
|
onCollapse: n[3] ||= (e) => Ke.value = !1
|
|
3572
3573
|
}, {
|
|
3573
3574
|
default: Q(() => [
|
|
3574
|
-
(G(!0), I(M, null, q(qe.value.overflow, (e) => (G(), P(
|
|
3575
|
+
(G(!0), I(M, null, q(qe.value.overflow, (e) => (G(), P(pr, {
|
|
3575
3576
|
key: `overflow-${e.col}`,
|
|
3576
3577
|
hidden: e.hidden,
|
|
3577
3578
|
ariaLabel: et(e.hidden),
|
|
@@ -3588,7 +3589,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3588
3589
|
"width",
|
|
3589
3590
|
"height"
|
|
3590
3591
|
]))), 128)),
|
|
3591
|
-
(G(!0), I(M, null, q(qe.value.bars, (e) => (G(), P(
|
|
3592
|
+
(G(!0), I(M, null, q(qe.value.bars, (e) => (G(), P(tr, {
|
|
3592
3593
|
key: e.event.id,
|
|
3593
3594
|
event: e.event,
|
|
3594
3595
|
bar: e,
|
|
@@ -3600,7 +3601,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3600
3601
|
title: Z(w)(e.event),
|
|
3601
3602
|
"aria-label": Z(Te)(e.event.id) && Z(ke) ? Z(ne)(e.event) : Z(te)(e.event),
|
|
3602
3603
|
density: p.value,
|
|
3603
|
-
top: 4 + e.lane * (Ue.value +
|
|
3604
|
+
top: 4 + e.lane * (Ue.value + jr),
|
|
3604
3605
|
left: `calc(${e.startCol / Z(oe).length * 100}% + ${e.startCol === 0 ? 4 : 2}px)`,
|
|
3605
3606
|
width: `calc(${(e.endCol - e.startCol + 1) / Z(oe).length * 100}% - ${(e.startCol === 0 ? 4 : 2) + (e.endCol === Z(oe).length - 1 ? 4 : 2)}px)`,
|
|
3606
3607
|
height: Ue.value,
|
|
@@ -3668,7 +3669,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3668
3669
|
"onStartResize",
|
|
3669
3670
|
"onEndResize"
|
|
3670
3671
|
]))), 128)),
|
|
3671
|
-
Z(Se) ? (G(), P(
|
|
3672
|
+
Z(Se) ? (G(), P(tr, {
|
|
3672
3673
|
key: 0,
|
|
3673
3674
|
variant: "phantom",
|
|
3674
3675
|
event: Z(Se).event,
|
|
@@ -3678,7 +3679,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3678
3679
|
border: Z(E)(Z(Se).event),
|
|
3679
3680
|
title: Z(w)(Z(Se).event),
|
|
3680
3681
|
density: p.value,
|
|
3681
|
-
top: 4 + Z(Se).lane * (Ue.value +
|
|
3682
|
+
top: 4 + Z(Se).lane * (Ue.value + jr),
|
|
3682
3683
|
left: `calc(${Z(Se).startCol / Z(oe).length * 100}% + ${Z(Se).startCol === 0 ? 4 : 2}px)`,
|
|
3683
3684
|
width: `calc(${(Z(Se).endCol - Z(Se).startCol + 1) / Z(oe).length * 100}% - ${(Z(Se).startCol === 0 ? 4 : 2) + (Z(Se).endCol === Z(oe).length - 1 ? 4 : 2)}px)`,
|
|
3684
3685
|
height: Ue.value,
|
|
@@ -3699,7 +3700,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3699
3700
|
"clipped-start",
|
|
3700
3701
|
"clipped-end"
|
|
3701
3702
|
])) : F("", !0),
|
|
3702
|
-
Z(we) && Z(j).draggedEvent.value ? (G(), P(
|
|
3703
|
+
Z(we) && Z(j).draggedEvent.value ? (G(), P(tr, {
|
|
3703
3704
|
key: 1,
|
|
3704
3705
|
variant: "invalid",
|
|
3705
3706
|
event: Z(j).draggedEvent.value,
|
|
@@ -3710,7 +3711,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3710
3711
|
title: Z(w)(Z(j).draggedEvent.value),
|
|
3711
3712
|
"snapping-back": Z(j).snappingBack.value,
|
|
3712
3713
|
density: p.value,
|
|
3713
|
-
top: 4 + (Z(Se)?.lane ?? 0) * (Ue.value +
|
|
3714
|
+
top: 4 + (Z(Se)?.lane ?? 0) * (Ue.value + jr),
|
|
3714
3715
|
left: `calc(${Z(we).startCol / Z(oe).length * 100}% + ${Z(we).startCol === 0 ? 4 : 2}px)`,
|
|
3715
3716
|
width: `calc(${(Z(we).endCol - Z(we).startCol + 1) / Z(oe).length * 100}% - ${(Z(we).startCol === 0 ? 4 : 2) + (Z(we).endCol === Z(oe).length - 1 ? 4 : 2)}px)`,
|
|
3716
3717
|
height: Ue.value,
|
|
@@ -3751,7 +3752,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3751
3752
|
class: "coar-time-grid__hour-label",
|
|
3752
3753
|
"data-hour": e.hour,
|
|
3753
3754
|
style: W({ top: rt((e.hour - l.value[0]) * 60) + "px" })
|
|
3754
|
-
}, Y(e.label), 13,
|
|
3755
|
+
}, Y(e.label), 13, kr))), 128)), Pe.value ? (G(), P(br, {
|
|
3755
3756
|
key: 0,
|
|
3756
3757
|
orientation: "vertical",
|
|
3757
3758
|
mark: Pe.value
|
|
@@ -3760,25 +3761,25 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3760
3761
|
class: "coar-time-grid__columns",
|
|
3761
3762
|
onPointermove: n[6] ||= (...e) => Z(Ae).onPointermove && Z(Ae).onPointermove(...e),
|
|
3762
3763
|
onPointerleave: n[7] ||= (...e) => Z(Ae).onPointerleave && Z(Ae).onPointerleave(...e)
|
|
3763
|
-
}, [(G(!0), I(M, null, q(ze.value, (e) => (G(), P(
|
|
3764
|
+
}, [(G(!0), I(M, null, q(ze.value, (e) => (G(), P(dr, {
|
|
3764
3765
|
key: e.date.toString(),
|
|
3765
3766
|
day: e.date,
|
|
3766
3767
|
"is-today": Z(g)(e.date),
|
|
3767
3768
|
"is-weekend": Z(v)(e.date),
|
|
3768
3769
|
"height-px": Le.value,
|
|
3769
3770
|
"slot-height-px": Re.value,
|
|
3770
|
-
"render-buffer-offset-px": nt(
|
|
3771
|
+
"render-buffer-offset-px": nt(Ar),
|
|
3771
3772
|
onPointerdown: n[4] ||= (e, t) => ct(e, t),
|
|
3772
3773
|
onDblclick: n[5] ||= (e, t) => ut(e, t)
|
|
3773
3774
|
}, {
|
|
3774
3775
|
default: Q(() => [
|
|
3775
|
-
z(
|
|
3776
|
+
z(_r, {
|
|
3776
3777
|
bands: Z(Me).bandsFor(e.date),
|
|
3777
3778
|
layer: "below",
|
|
3778
3779
|
orientation: "vertical",
|
|
3779
3780
|
"to-px": Ne
|
|
3780
3781
|
}, null, 8, ["bands"]),
|
|
3781
|
-
(G(!0), I(M, null, q(e.positioned, (n) => (G(), P(
|
|
3782
|
+
(G(!0), I(M, null, q(e.positioned, (n) => (G(), P(Zn, {
|
|
3782
3783
|
key: n.event.id,
|
|
3783
3784
|
event: n.event,
|
|
3784
3785
|
positioned: n,
|
|
@@ -3837,7 +3838,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3837
3838
|
}, null, 8, ["renderer", "ctx"])) : F("", !0)]),
|
|
3838
3839
|
key: "0"
|
|
3839
3840
|
} : 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)),
|
|
3840
|
-
Z(xe) && Z(xe).dayKey === e.date.toString() ? (G(), P(
|
|
3841
|
+
Z(xe) && Z(xe).dayKey === e.date.toString() ? (G(), P(Zn, {
|
|
3841
3842
|
key: 0,
|
|
3842
3843
|
variant: "phantom",
|
|
3843
3844
|
event: Z(xe).event,
|
|
@@ -3867,7 +3868,7 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3867
3868
|
"width",
|
|
3868
3869
|
"z-index"
|
|
3869
3870
|
])) : F("", !0),
|
|
3870
|
-
Z(Ce) && Z(Ce).dayKey === e.date.toString() && Z(j).draggedEvent.value ? (G(), P(
|
|
3871
|
+
Z(Ce) && Z(Ce).dayKey === e.date.toString() && Z(j).draggedEvent.value ? (G(), P(Zn, {
|
|
3871
3872
|
key: 1,
|
|
3872
3873
|
variant: "invalid",
|
|
3873
3874
|
event: Z(j).draggedEvent.value,
|
|
@@ -3894,17 +3895,17 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3894
3895
|
"top",
|
|
3895
3896
|
"height"
|
|
3896
3897
|
])) : F("", !0),
|
|
3897
|
-
Z(g)(e.date) && Z(h) !== null ? (G(), P(
|
|
3898
|
+
Z(g)(e.date) && Z(h) !== null ? (G(), P(nr, {
|
|
3898
3899
|
key: 2,
|
|
3899
3900
|
"top-px": rt(Z(h))
|
|
3900
3901
|
}, null, 8, ["top-px"])) : F("", !0),
|
|
3901
|
-
z(
|
|
3902
|
+
z(_r, {
|
|
3902
3903
|
bands: Z(Me).bandsFor(e.date),
|
|
3903
3904
|
layer: "above",
|
|
3904
3905
|
orientation: "vertical",
|
|
3905
3906
|
"to-px": Ne
|
|
3906
3907
|
}, null, 8, ["bands"]),
|
|
3907
|
-
z(
|
|
3908
|
+
z(vr, {
|
|
3908
3909
|
orientation: "vertical",
|
|
3909
3910
|
"to-px": Ne,
|
|
3910
3911
|
selection: r.ghost ? null : Z(Ae).selectionFor(e.date),
|
|
@@ -3929,19 +3930,19 @@ var Er = ["aria-hidden", "aria-label"], Dr = {
|
|
|
3929
3930
|
style: W({ top: Fe.value + "px" }),
|
|
3930
3931
|
"aria-hidden": "true"
|
|
3931
3932
|
}, null, 4))], 544)], 4)
|
|
3932
|
-
], 14,
|
|
3933
|
+
], 14, Dr));
|
|
3933
3934
|
}
|
|
3934
3935
|
}), [["__scopeId", "data-v-52402bad"]]);
|
|
3935
3936
|
//#endregion
|
|
3936
3937
|
//#region src/core/timeRowsLayout.ts
|
|
3937
|
-
function
|
|
3938
|
+
function Nr(e, t) {
|
|
3938
3939
|
let n = Math.max(1, e), r = n * t.laneHeightPx + (n - 1) * t.laneGapPx + 2 * t.rowPaddingPx;
|
|
3939
3940
|
return Math.max(t.minRowHeightPx, r);
|
|
3940
3941
|
}
|
|
3941
|
-
function
|
|
3942
|
+
function Pr(e, t) {
|
|
3942
3943
|
return t.rowPaddingPx + e * (t.laneHeightPx + t.laneGapPx);
|
|
3943
3944
|
}
|
|
3944
|
-
function
|
|
3945
|
+
function Fr(e, t) {
|
|
3945
3946
|
let n = [], r = 0;
|
|
3946
3947
|
for (let i of t.days) {
|
|
3947
3948
|
let a = k(e, {
|
|
@@ -3949,7 +3950,7 @@ function Pr(e, t) {
|
|
|
3949
3950
|
timeRange: t.timeRange,
|
|
3950
3951
|
timezone: t.timezone,
|
|
3951
3952
|
priorityId: t.priorityId
|
|
3952
|
-
}), o = a.reduce((e, t) => Math.max(e, t.laneCount), 1), s = Math.max(
|
|
3953
|
+
}), o = a.reduce((e, t) => Math.max(e, t.laneCount), 1), s = Math.max(Nr(o, t), t.rowMinHeightPx?.(i) ?? 0);
|
|
3953
3954
|
n.push({
|
|
3954
3955
|
date: i,
|
|
3955
3956
|
positioned: a,
|
|
@@ -3963,11 +3964,11 @@ function Pr(e, t) {
|
|
|
3963
3964
|
totalHeightPx: r
|
|
3964
3965
|
};
|
|
3965
3966
|
}
|
|
3966
|
-
function
|
|
3967
|
+
function Ir(e, t, n) {
|
|
3967
3968
|
let r = e / 60;
|
|
3968
3969
|
return n <= 0 || t <= 0 ? r : Math.max(r, n / (t * 60));
|
|
3969
3970
|
}
|
|
3970
|
-
function
|
|
3971
|
+
function Lr(e, t) {
|
|
3971
3972
|
for (let n = 0; n < e.length; n++) {
|
|
3972
3973
|
let r = e[n];
|
|
3973
3974
|
if (t >= r.topPx && t < r.topPx + r.heightPx) return n;
|
|
@@ -3976,23 +3977,23 @@ function Ir(e, t) {
|
|
|
3976
3977
|
}
|
|
3977
3978
|
//#endregion
|
|
3978
3979
|
//#region src/components/internal/time-rows/CoarTimeRowsEvent.vue?vue&type=script&setup=true&lang.ts
|
|
3979
|
-
var
|
|
3980
|
+
var Rr = [
|
|
3980
3981
|
"data-event-id",
|
|
3981
3982
|
"tabindex",
|
|
3982
3983
|
"role",
|
|
3983
3984
|
"aria-label",
|
|
3984
3985
|
"aria-hidden"
|
|
3985
|
-
],
|
|
3986
|
+
], zr = {
|
|
3986
3987
|
key: 0,
|
|
3987
3988
|
class: "coar-time-rows-event__point-edge",
|
|
3988
3989
|
"aria-hidden": "true"
|
|
3989
|
-
},
|
|
3990
|
+
}, Br = { class: "coar-time-rows-event__default" }, Vr = { class: "coar-time-rows-event__title" }, Hr = {
|
|
3990
3991
|
key: 0,
|
|
3991
3992
|
class: "coar-time-rows-event__time"
|
|
3992
|
-
},
|
|
3993
|
+
}, Ur = {
|
|
3993
3994
|
key: 3,
|
|
3994
3995
|
class: "coar-time-rows-event__default"
|
|
3995
|
-
},
|
|
3996
|
+
}, Wr = { class: "coar-time-rows-event__title" }, Gr = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
3996
3997
|
__name: "CoarTimeRowsEvent",
|
|
3997
3998
|
props: {
|
|
3998
3999
|
event: {},
|
|
@@ -4086,7 +4087,7 @@ var Lr = [
|
|
|
4086
4087
|
onKeydown: l,
|
|
4087
4088
|
onDblclick: u
|
|
4088
4089
|
}, [
|
|
4089
|
-
a.value && !e.clippedStart ? (G(), I("div",
|
|
4090
|
+
a.value && !e.clippedStart ? (G(), I("div", zr)) : F("", !0),
|
|
4090
4091
|
i.value && !a.value ? (G(), I("div", {
|
|
4091
4092
|
key: 1,
|
|
4092
4093
|
class: "coar-time-rows-event__resize coar-time-rows-event__resize--start",
|
|
@@ -4097,50 +4098,50 @@ var Lr = [
|
|
|
4097
4098
|
key: 2,
|
|
4098
4099
|
event: e.event,
|
|
4099
4100
|
positioned: e.positioned
|
|
4100
|
-
}, () => [L("div",
|
|
4101
|
+
}, () => [L("div", Br, [
|
|
4101
4102
|
z(Ln, {
|
|
4102
4103
|
event: e.event,
|
|
4103
4104
|
"display-zone": e.displayZone,
|
|
4104
4105
|
size: "s"
|
|
4105
4106
|
}, null, 8, ["event", "display-zone"]),
|
|
4106
|
-
L("span",
|
|
4107
|
-
e.showTime && e.timeLabel ? (G(), I("span",
|
|
4108
|
-
z(
|
|
4107
|
+
L("span", Vr, Y(e.title), 1),
|
|
4108
|
+
e.showTime && e.timeLabel ? (G(), I("span", Hr, Y(e.timeLabel), 1)) : F("", !0),
|
|
4109
|
+
z(Vn, {
|
|
4109
4110
|
event: e.event,
|
|
4110
4111
|
max: 2,
|
|
4111
4112
|
size: "xs"
|
|
4112
4113
|
}, null, 8, ["event"])
|
|
4113
|
-
])], !0) : (G(), I("div",
|
|
4114
|
+
])], !0) : (G(), I("div", Ur, [L("span", Wr, Y(e.title), 1)])),
|
|
4114
4115
|
i.value && !a.value ? (G(), I("div", {
|
|
4115
4116
|
key: 4,
|
|
4116
4117
|
class: "coar-time-rows-event__resize coar-time-rows-event__resize--end",
|
|
4117
4118
|
"aria-hidden": "true",
|
|
4118
4119
|
onPointerdown: f
|
|
4119
4120
|
}, null, 32)) : F("", !0)
|
|
4120
|
-
], 46,
|
|
4121
|
+
], 46, Rr));
|
|
4121
4122
|
}
|
|
4122
|
-
}), [["__scopeId", "data-v-61aefbf7"]]),
|
|
4123
|
+
}), [["__scopeId", "data-v-61aefbf7"]]), Kr = ["aria-label"], qr = {
|
|
4123
4124
|
class: "coar-time-rows__a11y-live",
|
|
4124
4125
|
role: "status",
|
|
4125
4126
|
"aria-live": "polite",
|
|
4126
4127
|
"aria-atomic": "true"
|
|
4127
|
-
},
|
|
4128
|
+
}, Jr = {
|
|
4128
4129
|
ref: "scroller",
|
|
4129
4130
|
class: "coar-time-rows__scroller"
|
|
4130
|
-
},
|
|
4131
|
+
}, Yr = {
|
|
4131
4132
|
class: "coar-time-rows__header",
|
|
4132
4133
|
"aria-hidden": "true"
|
|
4133
|
-
},
|
|
4134
|
+
}, Xr = ["data-hour"], Zr = ["data-day-key", "aria-label"], Qr = ["onPointerdown", "onDblclick"], $r = {
|
|
4134
4135
|
key: 2,
|
|
4135
4136
|
class: "coar-time-rows__day-label"
|
|
4136
|
-
},
|
|
4137
|
+
}, ei = [
|
|
4137
4138
|
"data-event-id",
|
|
4138
4139
|
"aria-label",
|
|
4139
4140
|
"title",
|
|
4140
4141
|
"onPointerdown",
|
|
4141
4142
|
"onKeydown",
|
|
4142
4143
|
"onDblclick"
|
|
4143
|
-
],
|
|
4144
|
+
], ti = ["onPointerdown", "onDblclick"], ni = 28, ri = 18, ii = 2, ai = 20, oi = 110, si = 110, ci = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
4144
4145
|
__name: "CoarTimeRows",
|
|
4145
4146
|
props: {
|
|
4146
4147
|
builder: {},
|
|
@@ -4183,7 +4184,7 @@ var Lr = [
|
|
|
4183
4184
|
re.value = e.clientWidth;
|
|
4184
4185
|
}), ie.observe(e)));
|
|
4185
4186
|
}), Ze(() => ie?.disconnect());
|
|
4186
|
-
let ae = N(() => o.value[1] - o.value[0]), A = N(() =>
|
|
4187
|
+
let ae = N(() => o.value[1] - o.value[0]), A = N(() => Ir(a.value.pixelsPerHour, ae.value, re.value - te.value)), oe = N(() => ae.value * 60 * A.value), se = N(() => s.value * A.value), ce = N(() => 60 * A.value), le = N(() => ce.value >= oi ? h.value : h.value.filter((e) => e.hour !== o.value[1]));
|
|
4187
4188
|
function ue(e) {
|
|
4188
4189
|
return e * A.value;
|
|
4189
4190
|
}
|
|
@@ -4212,7 +4213,7 @@ var Lr = [
|
|
|
4212
4213
|
locate(e, t) {
|
|
4213
4214
|
let n = k.value;
|
|
4214
4215
|
if (!n) return null;
|
|
4215
|
-
let r = n.getBoundingClientRect(), i = t - r.top, a =
|
|
4216
|
+
let r = n.getBoundingClientRect(), i = t - r.top, a = Lr(je.value, i >= Ae.value.totalHeightPx && i <= r.height ? Ae.value.totalHeightPx - .5 : i);
|
|
4216
4217
|
if (a === null) return null;
|
|
4217
4218
|
let o = e - r.left - te.value, s = A.value;
|
|
4218
4219
|
return s <= 0 ? null : {
|
|
@@ -4243,14 +4244,14 @@ var Lr = [
|
|
|
4243
4244
|
},
|
|
4244
4245
|
onEventDrop: (e) => n.builder.state.onEventDrop?.(e),
|
|
4245
4246
|
onAnnounce: (e, t) => D(e, t)
|
|
4246
|
-
}), Ce =
|
|
4247
|
+
}), Ce = Sr({
|
|
4247
4248
|
builder: n.builder,
|
|
4248
4249
|
axis: he,
|
|
4249
4250
|
timeRange: o,
|
|
4250
4251
|
slotDuration: s,
|
|
4251
4252
|
timezone: c,
|
|
4252
4253
|
events: () => a.value.events
|
|
4253
|
-
}), we = N(() => X(n.builder.state.timeRangeSelect)), Te =
|
|
4254
|
+
}), we = N(() => X(n.builder.state.timeRangeSelect)), Te = Tr({
|
|
4254
4255
|
builder: n.builder,
|
|
4255
4256
|
days: u,
|
|
4256
4257
|
timeRange: o,
|
|
@@ -4259,7 +4260,7 @@ var Lr = [
|
|
|
4259
4260
|
function Ee(e) {
|
|
4260
4261
|
return ue(e - o.value[0] * 60);
|
|
4261
4262
|
}
|
|
4262
|
-
let De = N(() =>
|
|
4263
|
+
let De = N(() => Er({
|
|
4263
4264
|
drag: Ce.dragSelection.value,
|
|
4264
4265
|
hoverMinute: Ce.hoverMinute.value,
|
|
4265
4266
|
draft: Te.draft.value,
|
|
@@ -4279,7 +4280,7 @@ var Lr = [
|
|
|
4279
4280
|
}
|
|
4280
4281
|
let Ae = N(() => {
|
|
4281
4282
|
let e = ge.draggedEvent.value, t = ge.dragMode.value, n = t === "timed" || t === "timed-resize-start" || t === "timed-resize-end", r = O.value;
|
|
4282
|
-
return
|
|
4283
|
+
return Fr(_e.value, {
|
|
4283
4284
|
...r,
|
|
4284
4285
|
days: u.value,
|
|
4285
4286
|
timeRange: o.value,
|
|
@@ -4287,12 +4288,12 @@ var Lr = [
|
|
|
4287
4288
|
priorityId: e !== null && n ? `${e.id}__preview` : void 0,
|
|
4288
4289
|
rowMinHeightPx: (e) => {
|
|
4289
4290
|
let t = pe(e).length;
|
|
4290
|
-
return t === 0 ? 0 : r.rowPaddingPx * 2 +
|
|
4291
|
+
return t === 0 ? 0 : r.rowPaddingPx * 2 + ai + t * (ri + ii);
|
|
4291
4292
|
}
|
|
4292
4293
|
});
|
|
4293
4294
|
}), je = N(() => Ae.value.rows);
|
|
4294
4295
|
function Me(e) {
|
|
4295
|
-
return
|
|
4296
|
+
return Pr(e, O.value);
|
|
4296
4297
|
}
|
|
4297
4298
|
function Ne(e) {
|
|
4298
4299
|
return ue(e) + 1;
|
|
@@ -4322,7 +4323,7 @@ var Lr = [
|
|
|
4322
4323
|
});
|
|
4323
4324
|
}
|
|
4324
4325
|
function Le(e, t) {
|
|
4325
|
-
if (
|
|
4326
|
+
if (xr(e)) return;
|
|
4326
4327
|
let r = Ie(e);
|
|
4327
4328
|
if (!r) return;
|
|
4328
4329
|
let i = Ce.onSurfacePointerdown(e, () => n.builder.state.onTimeClick?.({
|
|
@@ -4333,7 +4334,7 @@ var Lr = [
|
|
|
4333
4334
|
i && nn(e, i);
|
|
4334
4335
|
}
|
|
4335
4336
|
function Re(e, t) {
|
|
4336
|
-
if (
|
|
4337
|
+
if (xr(e)) return;
|
|
4337
4338
|
let r = Ie(e);
|
|
4338
4339
|
r && n.builder.state.onTimeDoubleClick?.({
|
|
4339
4340
|
date: t,
|
|
@@ -4342,13 +4343,13 @@ var Lr = [
|
|
|
4342
4343
|
});
|
|
4343
4344
|
}
|
|
4344
4345
|
function ze(e, t) {
|
|
4345
|
-
|
|
4346
|
+
xr(e) || nn(e, () => n.builder.state.onDateClick?.({
|
|
4346
4347
|
date: t,
|
|
4347
4348
|
native: e
|
|
4348
4349
|
}));
|
|
4349
4350
|
}
|
|
4350
4351
|
function Be(e, t) {
|
|
4351
|
-
|
|
4352
|
+
xr(e) || n.builder.state.onDateDoubleClick?.({
|
|
4352
4353
|
date: t,
|
|
4353
4354
|
native: e
|
|
4354
4355
|
});
|
|
@@ -4387,14 +4388,14 @@ var Lr = [
|
|
|
4387
4388
|
}]]),
|
|
4388
4389
|
style: W({
|
|
4389
4390
|
"--coar-time-rows-label-width": te.value + "px",
|
|
4390
|
-
"--coar-time-rows-header-height":
|
|
4391
|
+
"--coar-time-rows-header-height": ni + "px"
|
|
4391
4392
|
}),
|
|
4392
4393
|
role: "region",
|
|
4393
4394
|
"aria-label": u.value.length === 1 ? Z(i)("coar.calendar.timegrid.dayLabel", void 0, "Day view") : B.value === "day" ? Z(i)("coar.calendar.timegrid.multiDayLabel", void 0, "Multi-day view") : Z(i)("coar.calendar.timegrid.weekLabel", void 0, "Week view")
|
|
4394
|
-
}, [L("div",
|
|
4395
|
+
}, [L("div", qr, Y(Z(E).message.value), 1), L("div", Jr, [L("div", {
|
|
4395
4396
|
class: "coar-time-rows__canvas",
|
|
4396
4397
|
style: W({ width: te.value + oe.value + "px" })
|
|
4397
|
-
}, [L("div",
|
|
4398
|
+
}, [L("div", Yr, [t[1] ||= L("div", { class: "coar-time-rows__corner" }, null, -1), L("div", {
|
|
4398
4399
|
class: "coar-time-rows__hours",
|
|
4399
4400
|
style: W({ width: oe.value + "px" })
|
|
4400
4401
|
}, [(G(!0), I(M, null, q(le.value, (e) => (G(), I("div", {
|
|
@@ -4402,7 +4403,7 @@ var Lr = [
|
|
|
4402
4403
|
class: H(["coar-time-rows__hour-label", { "coar-time-rows__hour-label--last": e.hour === o.value[1] }]),
|
|
4403
4404
|
"data-hour": e.hour,
|
|
4404
4405
|
style: W({ left: ue((e.hour - o.value[0]) * 60) + "px" })
|
|
4405
|
-
}, Y(e.label), 15,
|
|
4406
|
+
}, Y(e.label), 15, Xr))), 128)), De.value ? (G(), P(br, {
|
|
4406
4407
|
key: 0,
|
|
4407
4408
|
orientation: "horizontal",
|
|
4408
4409
|
mark: De.value
|
|
@@ -4439,7 +4440,7 @@ var Lr = [
|
|
|
4439
4440
|
isToday: Z(f)(t.date),
|
|
4440
4441
|
isWeekend: Z(p)(t.date)
|
|
4441
4442
|
}
|
|
4442
|
-
}, null, 8, ["renderer", "ctx"])) : (G(), I("span",
|
|
4443
|
+
}, null, 8, ["renderer", "ctx"])) : (G(), I("span", $r, Y(Z(m)(t.date)), 1))], 2), (G(!0), I(M, null, q(pe(t.date), (e) => (G(), I("div", {
|
|
4443
4444
|
key: e.id,
|
|
4444
4445
|
class: "coar-time-rows__chip",
|
|
4445
4446
|
style: W({
|
|
@@ -4458,7 +4459,7 @@ var Lr = [
|
|
|
4458
4459
|
event: e,
|
|
4459
4460
|
native: t
|
|
4460
4461
|
}), ["stop"])
|
|
4461
|
-
}, Y(Z(x)(e)), 45,
|
|
4462
|
+
}, Y(Z(x)(e)), 45, ei))), 128))], 40, Qr), L("div", {
|
|
4462
4463
|
class: "coar-time-rows__track",
|
|
4463
4464
|
style: W({
|
|
4464
4465
|
width: oe.value + "px",
|
|
@@ -4468,13 +4469,13 @@ var Lr = [
|
|
|
4468
4469
|
onPointerdown: (e) => Le(e, t.date),
|
|
4469
4470
|
onDblclick: (e) => Re(e, t.date)
|
|
4470
4471
|
}, [
|
|
4471
|
-
z(
|
|
4472
|
+
z(_r, {
|
|
4472
4473
|
bands: Z(Te).bandsFor(t.date),
|
|
4473
4474
|
layer: "below",
|
|
4474
4475
|
orientation: "horizontal",
|
|
4475
4476
|
"to-px": Ee
|
|
4476
4477
|
}, null, 8, ["bands"]),
|
|
4477
|
-
(G(!0), I(M, null, q(t.positioned, (t) => (G(), P(
|
|
4478
|
+
(G(!0), I(M, null, q(t.positioned, (t) => (G(), P(Gr, {
|
|
4478
4479
|
key: t.event.id,
|
|
4479
4480
|
event: t.event,
|
|
4480
4481
|
positioned: t,
|
|
@@ -4485,7 +4486,7 @@ var Lr = [
|
|
|
4485
4486
|
border: Z(C)(t.event),
|
|
4486
4487
|
title: Z(x)(t.event),
|
|
4487
4488
|
"time-label": Z(y)(t.event),
|
|
4488
|
-
"show-time": Pe(t.startMinutes, t.endMinutes) >=
|
|
4489
|
+
"show-time": Pe(t.startMinutes, t.endMinutes) >= si,
|
|
4489
4490
|
"display-zone": c.value,
|
|
4490
4491
|
"aria-label": Z(j)(t.event.id) && Z(Se) ? Z(T)(t.event) : Z(w)(t.event),
|
|
4491
4492
|
density: l.value,
|
|
@@ -4533,7 +4534,7 @@ var Lr = [
|
|
|
4533
4534
|
}, null, 8, ["renderer", "ctx"])) : F("", !0)]),
|
|
4534
4535
|
key: "0"
|
|
4535
4536
|
} : 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)),
|
|
4536
|
-
Z(ve) && Z(ve).dayKey === t.date.toString() ? (G(), P(
|
|
4537
|
+
Z(ve) && Z(ve).dayKey === t.date.toString() ? (G(), P(Gr, {
|
|
4537
4538
|
key: 0,
|
|
4538
4539
|
variant: "phantom",
|
|
4539
4540
|
event: Z(ve).event,
|
|
@@ -4561,7 +4562,7 @@ var Lr = [
|
|
|
4561
4562
|
"height",
|
|
4562
4563
|
"z-index"
|
|
4563
4564
|
])) : F("", !0),
|
|
4564
|
-
Z(ye) && Z(ye).dayKey === t.date.toString() && Z(ge).draggedEvent.value ? (G(), P(
|
|
4565
|
+
Z(ye) && Z(ye).dayKey === t.date.toString() && Z(ge).draggedEvent.value ? (G(), P(Gr, {
|
|
4565
4566
|
key: 1,
|
|
4566
4567
|
variant: "invalid",
|
|
4567
4568
|
event: Z(ge).draggedEvent.value,
|
|
@@ -4590,19 +4591,19 @@ var Lr = [
|
|
|
4590
4591
|
"top",
|
|
4591
4592
|
"height"
|
|
4592
4593
|
])) : F("", !0),
|
|
4593
|
-
Z(f)(t.date) && Z(d) !== null ? (G(), P(
|
|
4594
|
+
Z(f)(t.date) && Z(d) !== null ? (G(), P(nr, {
|
|
4594
4595
|
key: 2,
|
|
4595
4596
|
orientation: "horizontal",
|
|
4596
4597
|
"left-px": ue(Z(d))
|
|
4597
4598
|
}, null, 8, ["left-px"])) : F("", !0),
|
|
4598
|
-
z(
|
|
4599
|
+
z(_r, {
|
|
4599
4600
|
bands: Z(Te).bandsFor(t.date),
|
|
4600
4601
|
layer: "above",
|
|
4601
4602
|
orientation: "horizontal",
|
|
4602
4603
|
"to-px": Ee,
|
|
4603
4604
|
"extent-px": oe.value
|
|
4604
4605
|
}, null, 8, ["bands", "extent-px"]),
|
|
4605
|
-
z(
|
|
4606
|
+
z(vr, {
|
|
4606
4607
|
orientation: "horizontal",
|
|
4607
4608
|
"to-px": Ee,
|
|
4608
4609
|
selection: Z(Ce).selectionFor(t.date),
|
|
@@ -4612,14 +4613,14 @@ var Lr = [
|
|
|
4612
4613
|
fn: Q((t) => [J(e.$slots, "draft", Ye({ ref_for: !0 }, t), void 0, !0)]),
|
|
4613
4614
|
key: "0"
|
|
4614
4615
|
} : void 0]), 1032, ["selection", "draft"])
|
|
4615
|
-
], 44,
|
|
4616
|
+
], 44, ti)], 14, Zr))), 128)), Oe.value === null ? F("", !0) : (G(), I("div", {
|
|
4616
4617
|
key: 0,
|
|
4617
4618
|
class: "coar-time-rows__hover-line",
|
|
4618
4619
|
style: W({ left: Oe.value + "px" }),
|
|
4619
4620
|
"aria-hidden": "true"
|
|
4620
|
-
}, null, 4))], 36)], 4)], 512)], 14,
|
|
4621
|
+
}, null, 4))], 36)], 4)], 512)], 14, Kr));
|
|
4621
4622
|
}
|
|
4622
|
-
}), [["__scopeId", "data-v-2d6d4f9f"]]),
|
|
4623
|
+
}), [["__scopeId", "data-v-2d6d4f9f"]]), li = ["data-day-count"], ui = 200, di = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
4623
4624
|
__name: "CoarTimeGridSurface",
|
|
4624
4625
|
props: {
|
|
4625
4626
|
builder: {},
|
|
@@ -4672,7 +4673,7 @@ var Lr = [
|
|
|
4672
4673
|
}), ({ on: e, windows: t }) => {
|
|
4673
4674
|
w && clearTimeout(w), e && (w = setTimeout(() => {
|
|
4674
4675
|
w = null, n.builder[yt](t);
|
|
4675
|
-
},
|
|
4676
|
+
}, ui));
|
|
4676
4677
|
}, {
|
|
4677
4678
|
immediate: !0,
|
|
4678
4679
|
flush: "post"
|
|
@@ -4702,7 +4703,7 @@ var Lr = [
|
|
|
4702
4703
|
}),
|
|
4703
4704
|
"data-day-count": m.value.length
|
|
4704
4705
|
}, [
|
|
4705
|
-
g.value ? (G(), P(
|
|
4706
|
+
g.value ? (G(), P(Mr, {
|
|
4706
4707
|
key: 0,
|
|
4707
4708
|
ghost: "",
|
|
4708
4709
|
class: "coar-time-grid-surface__ghost coar-time-grid-surface__ghost--prev",
|
|
@@ -4739,7 +4740,7 @@ var Lr = [
|
|
|
4739
4740
|
"ghost-top-px",
|
|
4740
4741
|
"ghost-band-px"
|
|
4741
4742
|
])) : F("", !0),
|
|
4742
|
-
s.value ? (G(), P(
|
|
4743
|
+
s.value ? (G(), P(ci, {
|
|
4743
4744
|
key: 1,
|
|
4744
4745
|
builder: e.builder,
|
|
4745
4746
|
dates: m.value
|
|
@@ -4759,7 +4760,7 @@ var Lr = [
|
|
|
4759
4760
|
fn: Q((e) => [J(t.$slots, "draft", U(V(e)), void 0, !0)]),
|
|
4760
4761
|
key: "2"
|
|
4761
4762
|
} : void 0
|
|
4762
|
-
]), 1032, ["builder", "dates"])) : (G(), P(
|
|
4763
|
+
]), 1032, ["builder", "dates"])) : (G(), P(Mr, {
|
|
4763
4764
|
key: 2,
|
|
4764
4765
|
builder: e.builder,
|
|
4765
4766
|
dates: m.value,
|
|
@@ -4786,7 +4787,7 @@ var Lr = [
|
|
|
4786
4787
|
key: "3"
|
|
4787
4788
|
} : void 0
|
|
4788
4789
|
]), 1032, ["builder", "dates"])),
|
|
4789
|
-
g.value ? (G(), P(
|
|
4790
|
+
g.value ? (G(), P(Mr, {
|
|
4790
4791
|
key: 3,
|
|
4791
4792
|
ghost: "",
|
|
4792
4793
|
class: "coar-time-grid-surface__ghost coar-time-grid-surface__ghost--next",
|
|
@@ -4823,16 +4824,16 @@ var Lr = [
|
|
|
4823
4824
|
"ghost-top-px",
|
|
4824
4825
|
"ghost-band-px"
|
|
4825
4826
|
])) : F("", !0)
|
|
4826
|
-
], 14,
|
|
4827
|
+
], 14, li));
|
|
4827
4828
|
}
|
|
4828
|
-
}), [["__scopeId", "data-v-
|
|
4829
|
+
}), [["__scopeId", "data-v-1c79c171"]]), fi = /* @__PURE__ */ B({
|
|
4829
4830
|
__name: "CoarDayView",
|
|
4830
4831
|
props: { builder: {} },
|
|
4831
4832
|
setup(e, { expose: t }) {
|
|
4832
4833
|
let n = ot("surface");
|
|
4833
4834
|
return t({ getVisibleRange() {
|
|
4834
4835
|
return n.value?.getVisibleRange() ?? null;
|
|
4835
|
-
} }), (t, r) => (G(), P(
|
|
4836
|
+
} }), (t, r) => (G(), P(di, {
|
|
4836
4837
|
ref_key: "surface",
|
|
4837
4838
|
ref: n,
|
|
4838
4839
|
class: "coar-day-view",
|
|
@@ -4861,14 +4862,14 @@ var Lr = [
|
|
|
4861
4862
|
} : void 0
|
|
4862
4863
|
]), 1032, ["builder"]));
|
|
4863
4864
|
}
|
|
4864
|
-
}),
|
|
4865
|
+
}), pi = /* @__PURE__ */ B({
|
|
4865
4866
|
__name: "CoarWeekView",
|
|
4866
4867
|
props: { builder: {} },
|
|
4867
4868
|
setup(e, { expose: t }) {
|
|
4868
4869
|
let n = ot("surface");
|
|
4869
4870
|
return t({ getVisibleRange() {
|
|
4870
4871
|
return n.value.getVisibleRange();
|
|
4871
|
-
} }), (t, r) => (G(), P(
|
|
4872
|
+
} }), (t, r) => (G(), P(di, {
|
|
4872
4873
|
ref_key: "surface",
|
|
4873
4874
|
ref: n,
|
|
4874
4875
|
class: "coar-week-view",
|
|
@@ -4897,14 +4898,14 @@ var Lr = [
|
|
|
4897
4898
|
} : void 0
|
|
4898
4899
|
]), 1032, ["builder"]));
|
|
4899
4900
|
}
|
|
4900
|
-
}),
|
|
4901
|
+
}), mi = /* @__PURE__ */ B({
|
|
4901
4902
|
__name: "CoarWorkWeekView",
|
|
4902
4903
|
props: { builder: {} },
|
|
4903
4904
|
setup(e, { expose: t }) {
|
|
4904
4905
|
let n = ot("surface");
|
|
4905
4906
|
return t({ getVisibleRange() {
|
|
4906
4907
|
return n.value?.getVisibleRange() ?? null;
|
|
4907
|
-
} }), (t, r) => (G(), P(
|
|
4908
|
+
} }), (t, r) => (G(), P(di, {
|
|
4908
4909
|
ref_key: "surface",
|
|
4909
4910
|
ref: n,
|
|
4910
4911
|
class: "coar-work-week-view",
|
|
@@ -4933,18 +4934,18 @@ var Lr = [
|
|
|
4933
4934
|
} : void 0
|
|
4934
4935
|
]), 1032, ["builder"]));
|
|
4935
4936
|
}
|
|
4936
|
-
}),
|
|
4937
|
+
}), hi = Object.freeze({
|
|
4937
4938
|
dayNumberHeight: 24,
|
|
4938
4939
|
pillHeight: 18,
|
|
4939
4940
|
markerHeight: 18,
|
|
4940
4941
|
pillGap: 2,
|
|
4941
4942
|
pillsPaddingTop: 3,
|
|
4942
4943
|
pillsPaddingBottom: 4
|
|
4943
|
-
}),
|
|
4944
|
+
}), gi = (e) => {
|
|
4944
4945
|
let t = parseFloat(e);
|
|
4945
4946
|
return Number.isFinite(t) ? t : 0;
|
|
4946
4947
|
};
|
|
4947
|
-
function
|
|
4948
|
+
function _i(e) {
|
|
4948
4949
|
let t = e.querySelector(".coar-month-cell:not(.coar-month-cell--placeholder) .coar-month-cell__day-number-row");
|
|
4949
4950
|
return t ? {
|
|
4950
4951
|
dayRow: t,
|
|
@@ -4952,25 +4953,25 @@ function gi(e) {
|
|
|
4952
4953
|
marker: e.querySelector(".coar-month-cell__overflow")
|
|
4953
4954
|
} : null;
|
|
4954
4955
|
}
|
|
4955
|
-
function
|
|
4956
|
-
let t =
|
|
4956
|
+
function vi(e) {
|
|
4957
|
+
let t = _i(e);
|
|
4957
4958
|
if (!t || t.dayRow.offsetHeight === 0) return null;
|
|
4958
|
-
let { dayRow: n, pill: r, marker: i } = t, a = e.querySelector(".coar-month-cell__pills"), o = a ? getComputedStyle(a) : null, s = r?.offsetHeight ||
|
|
4959
|
+
let { dayRow: n, pill: r, marker: i } = t, a = e.querySelector(".coar-month-cell__pills"), o = a ? getComputedStyle(a) : null, s = r?.offsetHeight || hi.pillHeight;
|
|
4959
4960
|
return {
|
|
4960
4961
|
dayNumberHeight: n.offsetHeight,
|
|
4961
4962
|
pillHeight: s,
|
|
4962
|
-
markerHeight: i?.offsetHeight || Math.max(s,
|
|
4963
|
-
pillGap: o ?
|
|
4964
|
-
pillsPaddingTop: o ?
|
|
4965
|
-
pillsPaddingBottom: o ?
|
|
4963
|
+
markerHeight: i?.offsetHeight || Math.max(s, hi.markerHeight),
|
|
4964
|
+
pillGap: o ? gi(o.rowGap) || gi(o.gap) : hi.pillGap,
|
|
4965
|
+
pillsPaddingTop: o ? gi(o.paddingTop) : hi.pillsPaddingTop,
|
|
4966
|
+
pillsPaddingBottom: o ? gi(o.paddingBottom) : hi.pillsPaddingBottom
|
|
4966
4967
|
};
|
|
4967
4968
|
}
|
|
4968
|
-
function
|
|
4969
|
-
let t = K({ ...
|
|
4969
|
+
function yi(e) {
|
|
4970
|
+
let t = K({ ...hi });
|
|
4970
4971
|
function n() {
|
|
4971
4972
|
let n = e.rootRef.value;
|
|
4972
4973
|
if (!n) return;
|
|
4973
|
-
let r =
|
|
4974
|
+
let r = vi(n);
|
|
4974
4975
|
if (!r) return;
|
|
4975
4976
|
let i = t.value;
|
|
4976
4977
|
(r.dayNumberHeight !== i.dayNumberHeight || r.pillHeight !== i.pillHeight || r.markerHeight !== i.markerHeight || r.pillGap !== i.pillGap || r.pillsPaddingTop !== i.pillsPaddingTop || r.pillsPaddingBottom !== i.pillsPaddingBottom) && (t.value = r);
|
|
@@ -4979,7 +4980,7 @@ function vi(e) {
|
|
|
4979
4980
|
function a() {
|
|
4980
4981
|
let t = e.rootRef.value;
|
|
4981
4982
|
if (!r || !t) return;
|
|
4982
|
-
let n =
|
|
4983
|
+
let n = _i(t);
|
|
4983
4984
|
for (let e of [
|
|
4984
4985
|
n?.dayRow,
|
|
4985
4986
|
n?.pill,
|
|
@@ -4997,31 +4998,31 @@ function vi(e) {
|
|
|
4997
4998
|
}
|
|
4998
4999
|
//#endregion
|
|
4999
5000
|
//#region src/composables/useMonthGeometry.ts
|
|
5000
|
-
var
|
|
5001
|
+
var bi = 2, xi = {
|
|
5001
5002
|
compact: 52,
|
|
5002
5003
|
stacked: 68,
|
|
5003
5004
|
details: 94
|
|
5004
|
-
},
|
|
5005
|
+
}, Si = {
|
|
5005
5006
|
compact: 5,
|
|
5006
5007
|
stacked: 8
|
|
5007
5008
|
};
|
|
5008
|
-
function
|
|
5009
|
+
function Ci(e, t) {
|
|
5009
5010
|
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;
|
|
5010
|
-
return Math.max(
|
|
5011
|
+
return Math.max(xi.details, Math.ceil(r));
|
|
5011
5012
|
}
|
|
5012
|
-
function
|
|
5013
|
-
let t = N(() => X(e.monthDensity) ?? "details"), n = N(() => X(e.metrics) ??
|
|
5013
|
+
function wi(e) {
|
|
5014
|
+
let t = N(() => X(e.monthDensity) ?? "details"), n = N(() => X(e.metrics) ?? hi), r = N(() => n.value.dayNumberHeight), i = N(() => t.value === "details" ? n.value.pillHeight : Si[t.value]), a = N(() => t.value === "details" ? Ci(n.value, X(e.maxEventsPerCell) ?? 2) : xi[t.value]);
|
|
5014
5015
|
function o(e) {
|
|
5015
|
-
return r.value + e * (i.value +
|
|
5016
|
+
return r.value + e * (i.value + bi);
|
|
5016
5017
|
}
|
|
5017
5018
|
let s = N(() => e.layout.value.weekRows.map((t) => {
|
|
5018
5019
|
if (t.multiDayBars.length === 0) return r.value;
|
|
5019
5020
|
let n = Ne(t.multiDayBars, X(e.maxLanes) ?? null).laneCount;
|
|
5020
|
-
return r.value + n * (i.value +
|
|
5021
|
+
return r.value + n * (i.value + bi);
|
|
5021
5022
|
}));
|
|
5022
5023
|
return {
|
|
5023
5024
|
BAR_HEIGHT: i,
|
|
5024
|
-
BAR_GAP:
|
|
5025
|
+
BAR_GAP: bi,
|
|
5025
5026
|
DAY_NUMBER_HEIGHT: r,
|
|
5026
5027
|
barTopPx: o,
|
|
5027
5028
|
rowBarHeightsPx: s,
|
|
@@ -5033,8 +5034,8 @@ function Ci(e) {
|
|
|
5033
5034
|
}
|
|
5034
5035
|
//#endregion
|
|
5035
5036
|
//#region src/composables/useMonthDayOverlay.ts
|
|
5036
|
-
var
|
|
5037
|
-
function
|
|
5037
|
+
var Ti = 30, Ei = ".coar-month-cell__overflow";
|
|
5038
|
+
function Di(e) {
|
|
5038
5039
|
let t = e.parentElement;
|
|
5039
5040
|
for (; t && t !== document.body;) {
|
|
5040
5041
|
let e = getComputedStyle(t).overflowY;
|
|
@@ -5043,12 +5044,12 @@ function Ei(e) {
|
|
|
5043
5044
|
}
|
|
5044
5045
|
return null;
|
|
5045
5046
|
}
|
|
5046
|
-
function
|
|
5047
|
+
function Oi(e) {
|
|
5047
5048
|
let t = e.minWidth ?? 200, n = e.maxHeight ?? 360, r = nt(null), i = K({
|
|
5048
5049
|
top: 0,
|
|
5049
5050
|
left: 0,
|
|
5050
5051
|
width: t,
|
|
5051
|
-
maxListHeight: n -
|
|
5052
|
+
maxListHeight: n - Ti
|
|
5052
5053
|
});
|
|
5053
5054
|
function a(t) {
|
|
5054
5055
|
return e.gridRef.value?.querySelector(`[data-day-key="${d(t)}"]`) ?? null;
|
|
@@ -5064,21 +5065,22 @@ function Di(e) {
|
|
|
5064
5065
|
top: d.top - u.top,
|
|
5065
5066
|
left: p,
|
|
5066
5067
|
width: f,
|
|
5067
|
-
maxListHeight: n -
|
|
5068
|
+
maxListHeight: n - Ti
|
|
5068
5069
|
}, await Xe(), r.value === null || !o(s)) return;
|
|
5069
5070
|
let m = e.overlayEl();
|
|
5070
5071
|
if (!m) return;
|
|
5071
|
-
|
|
5072
|
-
|
|
5072
|
+
let h = m.querySelector(".coar-month-day-overlay__header")?.offsetHeight ?? 0;
|
|
5073
|
+
if (h > Ti) {
|
|
5074
|
+
let e = getComputedStyle(m), t = h + (parseFloat(e.paddingTop) || 0) + (parseFloat(e.paddingBottom) || 0) + (parseFloat(e.borderTopWidth) || 0) + (parseFloat(e.borderBottomWidth) || 0);
|
|
5073
5075
|
if (i.value = {
|
|
5074
5076
|
...i.value,
|
|
5075
|
-
maxListHeight: Math.max(0, n -
|
|
5077
|
+
maxListHeight: Math.max(0, n - t)
|
|
5076
5078
|
}, await Xe(), r.value === null || !o(s)) return;
|
|
5077
5079
|
}
|
|
5078
|
-
let
|
|
5079
|
-
|
|
5080
|
+
let g = Di(c), _ = g ? g.getBoundingClientRect().top : 0, v = g ? g.getBoundingClientRect().bottom : window.innerHeight, y = m.offsetHeight, b = v - d.top, x = d.bottom - _;
|
|
5081
|
+
y > b && x > b && (i.value = {
|
|
5080
5082
|
...i.value,
|
|
5081
|
-
top: Math.max(0, d.bottom - u.top -
|
|
5083
|
+
top: Math.max(0, d.bottom - u.top - y)
|
|
5082
5084
|
});
|
|
5083
5085
|
}
|
|
5084
5086
|
async function c(e) {
|
|
@@ -5088,7 +5090,7 @@ function Di(e) {
|
|
|
5088
5090
|
let t = r.value;
|
|
5089
5091
|
if (t === null) return;
|
|
5090
5092
|
let n = e.overlayEl(), i = typeof document < "u" && n !== null && document.activeElement !== null && n.contains(document.activeElement);
|
|
5091
|
-
r.value = null, i && a(t)?.querySelector(
|
|
5093
|
+
r.value = null, i && a(t)?.querySelector(Ei)?.focus();
|
|
5092
5094
|
}
|
|
5093
5095
|
async function u(e) {
|
|
5094
5096
|
o(e) ? l() : await c(e);
|
|
@@ -5098,7 +5100,7 @@ function Di(e) {
|
|
|
5098
5100
|
let n = t.target;
|
|
5099
5101
|
if (!n) return;
|
|
5100
5102
|
let i = e.overlayEl();
|
|
5101
|
-
i && i.contains(n) || n instanceof Element && n.closest(
|
|
5103
|
+
i && i.contains(n) || n instanceof Element && n.closest(Ei) || l();
|
|
5102
5104
|
}
|
|
5103
5105
|
function p() {
|
|
5104
5106
|
l();
|
|
@@ -5116,13 +5118,13 @@ function Di(e) {
|
|
|
5116
5118
|
}
|
|
5117
5119
|
//#endregion
|
|
5118
5120
|
//#region src/components/internal/month/CoarMonthPill.vue?vue&type=script&setup=true&lang.ts
|
|
5119
|
-
var
|
|
5121
|
+
var ki = [
|
|
5120
5122
|
"data-event-id",
|
|
5121
5123
|
"tabindex",
|
|
5122
5124
|
"role",
|
|
5123
5125
|
"aria-label",
|
|
5124
5126
|
"aria-hidden"
|
|
5125
|
-
],
|
|
5127
|
+
], Ai = { class: "coar-month-pill__title" }, ji = { class: "coar-month-pill__title" }, Mi = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5126
5128
|
__name: "CoarMonthPill",
|
|
5127
5129
|
props: {
|
|
5128
5130
|
event: {},
|
|
@@ -5191,8 +5193,8 @@ var Oi = [
|
|
|
5191
5193
|
"display-zone": e.displayZone,
|
|
5192
5194
|
size: "xs"
|
|
5193
5195
|
}, null, 8, ["event", "display-zone"]),
|
|
5194
|
-
L("span",
|
|
5195
|
-
z(
|
|
5196
|
+
L("span", Ai, Y(e.title), 1),
|
|
5197
|
+
z(Vn, {
|
|
5196
5198
|
event: e.event,
|
|
5197
5199
|
max: 1,
|
|
5198
5200
|
size: "xs"
|
|
@@ -5203,21 +5205,21 @@ var Oi = [
|
|
|
5203
5205
|
"display-zone": e.displayZone,
|
|
5204
5206
|
size: "xs"
|
|
5205
5207
|
}, null, 8, ["event", "display-zone"]),
|
|
5206
|
-
L("span",
|
|
5207
|
-
z(
|
|
5208
|
+
L("span", ji, Y(e.title), 1),
|
|
5209
|
+
z(Vn, {
|
|
5208
5210
|
event: e.event,
|
|
5209
5211
|
max: 1,
|
|
5210
5212
|
size: "xs"
|
|
5211
5213
|
}, null, 8, ["event"])
|
|
5212
|
-
], 64))], 46,
|
|
5214
|
+
], 64))], 46, ki));
|
|
5213
5215
|
}
|
|
5214
|
-
}), [["__scopeId", "data-v-9a19ce1f"]]),
|
|
5216
|
+
}), [["__scopeId", "data-v-9a19ce1f"]]), Ni = [
|
|
5215
5217
|
"data-event-id",
|
|
5216
5218
|
"tabindex",
|
|
5217
5219
|
"role",
|
|
5218
5220
|
"aria-label",
|
|
5219
5221
|
"aria-hidden"
|
|
5220
|
-
],
|
|
5222
|
+
], Pi = { class: "coar-month-bar__title" }, Fi = { class: "coar-month-bar__title" }, Ii = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5221
5223
|
__name: "CoarMonthBar",
|
|
5222
5224
|
props: {
|
|
5223
5225
|
event: {},
|
|
@@ -5322,8 +5324,8 @@ var Oi = [
|
|
|
5322
5324
|
"display-zone": e.displayZone,
|
|
5323
5325
|
size: "xs"
|
|
5324
5326
|
}, null, 8, ["event", "display-zone"])),
|
|
5325
|
-
L("span",
|
|
5326
|
-
z(
|
|
5327
|
+
L("span", Pi, Y(e.title), 1),
|
|
5328
|
+
z(Vn, {
|
|
5327
5329
|
event: e.event,
|
|
5328
5330
|
max: 2,
|
|
5329
5331
|
size: "xs"
|
|
@@ -5335,8 +5337,8 @@ var Oi = [
|
|
|
5335
5337
|
"display-zone": e.displayZone,
|
|
5336
5338
|
size: "xs"
|
|
5337
5339
|
}, null, 8, ["event", "display-zone"])),
|
|
5338
|
-
L("span",
|
|
5339
|
-
z(
|
|
5340
|
+
L("span", Fi, Y(e.title), 1),
|
|
5341
|
+
z(Vn, {
|
|
5340
5342
|
event: e.event,
|
|
5341
5343
|
max: 2,
|
|
5342
5344
|
size: "xs"
|
|
@@ -5348,9 +5350,9 @@ var Oi = [
|
|
|
5348
5350
|
"aria-hidden": "true",
|
|
5349
5351
|
onPointerdown: m
|
|
5350
5352
|
}, null, 32)) : F("", !0)
|
|
5351
|
-
], 46,
|
|
5353
|
+
], 46, Ni));
|
|
5352
5354
|
}
|
|
5353
|
-
}), [["__scopeId", "data-v-773e0daa"]]),
|
|
5355
|
+
}), [["__scopeId", "data-v-773e0daa"]]), Li = [
|
|
5354
5356
|
"data-day-key",
|
|
5355
5357
|
"data-placeholder",
|
|
5356
5358
|
"aria-rowindex",
|
|
@@ -5359,10 +5361,10 @@ var Oi = [
|
|
|
5359
5361
|
"aria-current",
|
|
5360
5362
|
"aria-selected",
|
|
5361
5363
|
"aria-hidden"
|
|
5362
|
-
],
|
|
5364
|
+
], Ri = {
|
|
5363
5365
|
key: 0,
|
|
5364
5366
|
class: "coar-month-cell__day-number-row"
|
|
5365
|
-
},
|
|
5367
|
+
}, zi = { class: "coar-month-cell__day-number" }, Bi = ["aria-label", "aria-expanded"], Vi = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5366
5368
|
__name: "CoarMonthCell",
|
|
5367
5369
|
props: {
|
|
5368
5370
|
day: {},
|
|
@@ -5435,7 +5437,7 @@ var Oi = [
|
|
|
5435
5437
|
"aria-hidden": e.placeholder ? "true" : void 0,
|
|
5436
5438
|
onPointerdown: i,
|
|
5437
5439
|
onDblclick: a
|
|
5438
|
-
}, [e.placeholder ? F("", !0) : (G(), I("div",
|
|
5440
|
+
}, [e.placeholder ? F("", !0) : (G(), I("div", Ri, [L("span", zi, Y(e.day.day), 1)])), e.placeholder ? F("", !0) : (G(), I("div", {
|
|
5439
5441
|
key: 1,
|
|
5440
5442
|
class: "coar-month-cell__pills",
|
|
5441
5443
|
style: W({ marginTop: e.pillsMarginTopPx + "px" })
|
|
@@ -5449,9 +5451,9 @@ var Oi = [
|
|
|
5449
5451
|
onPointerdown: n[0] ||= ut(() => {}, ["stop"]),
|
|
5450
5452
|
onDblclick: n[1] ||= ut(() => {}, ["stop"]),
|
|
5451
5453
|
onClick: ut(o, ["stop"])
|
|
5452
|
-
}, " +" + Y(e.overflowCount), 41,
|
|
5454
|
+
}, " +" + Y(e.overflowCount), 41, Bi)) : F("", !0)], 4))], 42, Li));
|
|
5453
5455
|
}
|
|
5454
|
-
}), [["__scopeId", "data-v-
|
|
5456
|
+
}), [["__scopeId", "data-v-cb37cefb"]]), Hi = ["aria-label"], Ui = { class: "coar-month-day-overlay__header" }, Wi = { class: "coar-month-day-overlay__day-number" }, Gi = { class: "coar-month-day-overlay__heading" }, Ki = ["aria-label"], qi = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5455
5457
|
__name: "CoarMonthDayOverlay",
|
|
5456
5458
|
props: {
|
|
5457
5459
|
dayNumber: {},
|
|
@@ -5488,9 +5490,9 @@ var Oi = [
|
|
|
5488
5490
|
width: e.width + "px"
|
|
5489
5491
|
}),
|
|
5490
5492
|
onKeydown: a
|
|
5491
|
-
}, [L("div",
|
|
5492
|
-
L("span",
|
|
5493
|
-
L("span",
|
|
5493
|
+
}, [L("div", Ui, [
|
|
5494
|
+
L("span", Wi, Y(e.dayNumber), 1),
|
|
5495
|
+
L("span", Gi, Y(e.heading), 1),
|
|
5494
5496
|
L("button", {
|
|
5495
5497
|
type: "button",
|
|
5496
5498
|
class: "coar-month-day-overlay__close",
|
|
@@ -5507,13 +5509,13 @@ var Oi = [
|
|
|
5507
5509
|
stroke: "currentColor",
|
|
5508
5510
|
"stroke-width": "1.6",
|
|
5509
5511
|
"stroke-linecap": "round"
|
|
5510
|
-
})], -1)]], 40,
|
|
5512
|
+
})], -1)]], 40, Ki)
|
|
5511
5513
|
]), L("div", {
|
|
5512
5514
|
class: "coar-month-day-overlay__list",
|
|
5513
5515
|
style: W({ maxHeight: e.maxListHeight + "px" })
|
|
5514
|
-
}, [J(t.$slots, "default", {}, void 0, !0)], 4)], 46,
|
|
5516
|
+
}, [J(t.$slots, "default", {}, void 0, !0)], 4)], 46, Hi));
|
|
5515
5517
|
}
|
|
5516
|
-
}), [["__scopeId", "data-v-
|
|
5518
|
+
}), [["__scopeId", "data-v-9efaaff3"]]), Ji = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5517
5519
|
__name: "CoarMonthRow",
|
|
5518
5520
|
props: {
|
|
5519
5521
|
heightPx: {},
|
|
@@ -5526,11 +5528,11 @@ var Oi = [
|
|
|
5526
5528
|
role: "row"
|
|
5527
5529
|
}, [J(t.$slots, "default", {}, void 0, !0)], 6));
|
|
5528
5530
|
}
|
|
5529
|
-
}), [["__scopeId", "data-v-7f6e2bad"]]),
|
|
5531
|
+
}), [["__scopeId", "data-v-7f6e2bad"]]), Yi = { class: "coar-month-grid" }, Xi = {
|
|
5530
5532
|
class: "coar-month-grid__weekday-row",
|
|
5531
5533
|
role: "row",
|
|
5532
5534
|
"aria-rowindex": "1"
|
|
5533
|
-
},
|
|
5535
|
+
}, Zi = ["aria-colindex"], Qi = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5534
5536
|
__name: "CoarMonthGrid",
|
|
5535
5537
|
props: {
|
|
5536
5538
|
weekdayHeaders: {},
|
|
@@ -5538,25 +5540,25 @@ var Oi = [
|
|
|
5538
5540
|
setRowsEl: { type: Function }
|
|
5539
5541
|
},
|
|
5540
5542
|
setup(e) {
|
|
5541
|
-
return (t, n) => (G(), I("div",
|
|
5543
|
+
return (t, n) => (G(), I("div", Yi, [L("div", Xi, [(G(!0), I(M, null, q(e.weekdayHeaders, (t, n) => (G(), I("div", {
|
|
5542
5544
|
key: n,
|
|
5543
5545
|
class: H(["coar-month-grid__weekday-cell", { "coar-month-grid__weekday-cell--weekend": e.weekendColumns?.[n] }]),
|
|
5544
5546
|
role: "columnheader",
|
|
5545
5547
|
"aria-colindex": n + 1
|
|
5546
|
-
}, Y(t), 11,
|
|
5548
|
+
}, Y(t), 11, Zi))), 128))]), L("div", {
|
|
5547
5549
|
ref: (t) => e.setRowsEl(t),
|
|
5548
5550
|
class: "coar-month-grid__rows"
|
|
5549
5551
|
}, [J(t.$slots, "default", {}, void 0, !0)], 512)]));
|
|
5550
5552
|
}
|
|
5551
|
-
}), [["__scopeId", "data-v-0ce3f402"]]),
|
|
5553
|
+
}), [["__scopeId", "data-v-0ce3f402"]]), $i = ["aria-label", "aria-rowcount"], ea = {
|
|
5552
5554
|
class: "coar-month-view__a11y-live",
|
|
5553
5555
|
role: "status",
|
|
5554
5556
|
"aria-live": "polite",
|
|
5555
5557
|
"aria-atomic": "true"
|
|
5556
|
-
},
|
|
5558
|
+
}, ta = {
|
|
5557
5559
|
key: 0,
|
|
5558
5560
|
class: "coar-month-view__segment-capsule"
|
|
5559
|
-
},
|
|
5561
|
+
}, na = ["aria-label"], ra = 1 / 3, ia = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
5560
5562
|
__name: "CoarMonthView",
|
|
5561
5563
|
props: {
|
|
5562
5564
|
builder: {},
|
|
@@ -5682,18 +5684,18 @@ var Oi = [
|
|
|
5682
5684
|
function ye(e) {
|
|
5683
5685
|
return e.dayOfWeek === 6 || e.dayOfWeek === 7;
|
|
5684
5686
|
}
|
|
5685
|
-
let { BAR_HEIGHT: j, DAY_NUMBER_HEIGHT: be, barTopPx: xe, rowBarHeightsPx: Se, rowHeightPx: we } =
|
|
5687
|
+
let { BAR_HEIGHT: j, DAY_NUMBER_HEIGHT: be, barTopPx: xe, rowBarHeightsPx: Se, rowHeightPx: we } = wi({
|
|
5686
5688
|
layout: pe,
|
|
5687
5689
|
monthDensity: () => c.value.monthDensity,
|
|
5688
5690
|
maxLanes: () => c.value.monthMaxVisibleLanes,
|
|
5689
|
-
metrics:
|
|
5691
|
+
metrics: yi({
|
|
5690
5692
|
rootRef: T,
|
|
5691
5693
|
trigger: pe
|
|
5692
5694
|
}),
|
|
5693
5695
|
maxEventsPerCell: () => c.value.maxEventsPerCell
|
|
5694
5696
|
});
|
|
5695
5697
|
function Ee(e, t) {
|
|
5696
|
-
let n = 100 / 7, r = C(e), i = r && !t.clippedStart ? n *
|
|
5698
|
+
let n = 100 / 7, r = C(e), i = r && !t.clippedStart ? n * ra : 0, a = r && !t.clippedEnd ? n * ra : 0, o = (t.endCol - t.startCol + 1) * n;
|
|
5697
5699
|
return {
|
|
5698
5700
|
left: `calc(${t.startCol * n + i}% + 2px)`,
|
|
5699
5701
|
width: `calc(${o - i - a}% - 4px)`
|
|
@@ -5753,7 +5755,7 @@ var Oi = [
|
|
|
5753
5755
|
function Ve(e) {
|
|
5754
5756
|
return i("coar.calendar.month.moreEvents", { count: e }, `${e} more events`);
|
|
5755
5757
|
}
|
|
5756
|
-
let He = K(null), Ue =
|
|
5758
|
+
let He = K(null), Ue = Oi({
|
|
5757
5759
|
rootRef: T,
|
|
5758
5760
|
gridRef: E,
|
|
5759
5761
|
overlayEl: () => He.value?.el ?? null,
|
|
@@ -5914,7 +5916,7 @@ var Oi = [
|
|
|
5914
5916
|
};
|
|
5915
5917
|
}
|
|
5916
5918
|
function ct(e, t) {
|
|
5917
|
-
|
|
5919
|
+
xr(e) || nn(e, () => r.builder.state.onDateClick?.({
|
|
5918
5920
|
date: t,
|
|
5919
5921
|
native: e
|
|
5920
5922
|
}));
|
|
@@ -5959,19 +5961,19 @@ var Oi = [
|
|
|
5959
5961
|
"aria-rowcount": pe.value.weekRows.length + 1,
|
|
5960
5962
|
"aria-colcount": 7
|
|
5961
5963
|
}, [
|
|
5962
|
-
L("div",
|
|
5963
|
-
z(
|
|
5964
|
+
L("div", ea, Y(Z(ce).message.value), 1),
|
|
5965
|
+
z(Qi, {
|
|
5964
5966
|
"weekday-headers": S.value,
|
|
5965
5967
|
"weekend-columns": ee.value,
|
|
5966
5968
|
"set-rows-el": te
|
|
5967
5969
|
}, {
|
|
5968
|
-
default: Q(() => [(G(!0), I(M, null, q(pe.value.weekRows, (i, a) => (G(), P(
|
|
5970
|
+
default: Q(() => [(G(!0), I(M, null, q(pe.value.weekRows, (i, a) => (G(), P(Ji, {
|
|
5969
5971
|
key: i.weekStart.toString(),
|
|
5970
5972
|
"height-px": Z(we)[a],
|
|
5971
5973
|
density: c.value.density
|
|
5972
5974
|
}, {
|
|
5973
5975
|
default: Q(() => [
|
|
5974
|
-
(G(!0), I(M, null, q(i.days, (r, i) => (G(), P(
|
|
5976
|
+
(G(!0), I(M, null, q(i.days, (r, i) => (G(), P(Vi, {
|
|
5975
5977
|
key: r.toString(),
|
|
5976
5978
|
day: r,
|
|
5977
5979
|
"day-key": Z(d)(r),
|
|
@@ -5993,14 +5995,14 @@ var Oi = [
|
|
|
5993
5995
|
onOverflowClick: n[0] ||= (e, t) => Z(Ue).toggle(t)
|
|
5994
5996
|
}, {
|
|
5995
5997
|
default: Q(() => [
|
|
5996
|
-
qe.value && Re(r).length ? (G(), I("div",
|
|
5998
|
+
qe.value && Re(r).length ? (G(), I("div", ta, [(G(!0), I(M, null, q(Re(r), (e) => (G(), I("button", Ye({
|
|
5997
5999
|
key: e.event.id,
|
|
5998
6000
|
type: "button",
|
|
5999
6001
|
class: "coar-month-view__segment",
|
|
6000
6002
|
style: { background: U(e.event) },
|
|
6001
6003
|
"aria-label": it(e.event)
|
|
6002
|
-
}, rt(st(e.event), !0)), null, 16,
|
|
6003
|
-
(G(!0), I(M, null, q(qe.value ? [] : Re(r), (t) => (G(), P(
|
|
6004
|
+
}, rt(st(e.event), !0)), null, 16, na))), 128))])) : F("", !0),
|
|
6005
|
+
(G(!0), I(M, null, q(qe.value ? [] : Re(r), (t) => (G(), P(Mi, Ye({ key: t.event.id }, { ref_for: !0 }, ot(t), rt(st(t.event))), R({ _: 2 }, [e.$slots.pill || c.value.eventRenderer ? {
|
|
6004
6006
|
name: "default",
|
|
6005
6007
|
fn: Q(({ event: t, pill: n }) => [e.$slots.pill ? J(e.$slots, "pill", {
|
|
6006
6008
|
key: 0,
|
|
@@ -6020,7 +6022,7 @@ var Oi = [
|
|
|
6020
6022
|
}, null, 8, ["renderer", "ctx"])) : F("", !0)]),
|
|
6021
6023
|
key: "0"
|
|
6022
6024
|
} : void 0]), 1040))), 128)),
|
|
6023
|
-
Z(k) && Z(k).bars.length === 0 && Z(k).pillCells.includes(Z(d)(r)) ? (G(), P(
|
|
6025
|
+
Z(k) && Z(k).bars.length === 0 && Z(k).pillCells.includes(Z(d)(r)) ? (G(), P(Mi, {
|
|
6024
6026
|
key: 1,
|
|
6025
6027
|
variant: "phantom",
|
|
6026
6028
|
event: Z(k).event,
|
|
@@ -6040,7 +6042,7 @@ var Oi = [
|
|
|
6040
6042
|
"display-zone",
|
|
6041
6043
|
"density"
|
|
6042
6044
|
])) : F("", !0),
|
|
6043
|
-
Z(ae)(r) && Z(O).draggedEvent.value ? (G(), P(
|
|
6045
|
+
Z(ae)(r) && Z(O).draggedEvent.value ? (G(), P(Mi, {
|
|
6044
6046
|
key: 2,
|
|
6045
6047
|
variant: "invalid",
|
|
6046
6048
|
event: Z(O).draggedEvent.value,
|
|
@@ -6083,7 +6085,7 @@ var Oi = [
|
|
|
6083
6085
|
"onCellPointerdown",
|
|
6084
6086
|
"onCellDblclick"
|
|
6085
6087
|
]))), 128)),
|
|
6086
|
-
(G(!0), I(M, null, q(De.value[a].visible, (t) => (G(), P(
|
|
6088
|
+
(G(!0), I(M, null, q(De.value[a].visible, (t) => (G(), P(Ii, {
|
|
6087
6089
|
key: t.event.id,
|
|
6088
6090
|
event: t.event,
|
|
6089
6091
|
bar: t,
|
|
@@ -6165,7 +6167,7 @@ var Oi = [
|
|
|
6165
6167
|
"onStartResize",
|
|
6166
6168
|
"onEndResize"
|
|
6167
6169
|
]))), 128)),
|
|
6168
|
-
(G(!0), I(M, null, q(Z(k) && Z(k).bars.length > 0 ? Z(k).bars.filter((e) => e.rowIndex === a) : [], (e) => (G(), P(
|
|
6170
|
+
(G(!0), I(M, null, q(Z(k) && Z(k).bars.length > 0 ? Z(k).bars.filter((e) => e.rowIndex === a) : [], (e) => (G(), P(Ii, {
|
|
6169
6171
|
key: `phantom-${e.startCol}-${e.endCol}`,
|
|
6170
6172
|
variant: "phantom",
|
|
6171
6173
|
event: Z(k).event,
|
|
@@ -6199,7 +6201,7 @@ var Oi = [
|
|
|
6199
6201
|
"clipped-start",
|
|
6200
6202
|
"clipped-end"
|
|
6201
6203
|
]))), 128)),
|
|
6202
|
-
Z(re) && Z(re).rowIndex === a && Z(re).isBar && Z(O).draggedEvent.value ? (G(), P(
|
|
6204
|
+
Z(re) && Z(re).rowIndex === a && Z(re).isBar && Z(O).draggedEvent.value ? (G(), P(Ii, {
|
|
6203
6205
|
key: 0,
|
|
6204
6206
|
variant: "invalid",
|
|
6205
6207
|
event: Z(O).draggedEvent.value,
|
|
@@ -6235,7 +6237,7 @@ var Oi = [
|
|
|
6235
6237
|
}, 1032, ["height-px", "density"]))), 128))]),
|
|
6236
6238
|
_: 3
|
|
6237
6239
|
}, 8, ["weekday-headers", "weekend-columns"]),
|
|
6238
|
-
Z(Ue).day.value ? (G(), P(
|
|
6240
|
+
Z(Ue).day.value ? (G(), P(qi, {
|
|
6239
6241
|
key: 0,
|
|
6240
6242
|
ref_key: "overlayRef",
|
|
6241
6243
|
ref: He,
|
|
@@ -6250,7 +6252,7 @@ var Oi = [
|
|
|
6250
6252
|
"max-list-height": Z(Ue).position.value.maxListHeight,
|
|
6251
6253
|
onClose: n[1] ||= (e) => Z(Ue).close()
|
|
6252
6254
|
}, {
|
|
6253
|
-
default: Q(() => [(G(!0), I(M, null, q(Ke.value, (t) => (G(), I(M, { key: t.kind === "live" ? t.pill.event.id : `phantom-${t.event.id}` }, [t.kind === "live" ? (G(), P(
|
|
6255
|
+
default: Q(() => [(G(!0), I(M, null, q(Ke.value, (t) => (G(), I(M, { key: t.kind === "live" ? t.pill.event.id : `phantom-${t.event.id}` }, [t.kind === "live" ? (G(), P(Mi, Ye({
|
|
6254
6256
|
key: 0,
|
|
6255
6257
|
ref_for: !0
|
|
6256
6258
|
}, ot(t.pill), rt(st(t.pill.event))), R({ _: 2 }, [e.$slots.pill || c.value.eventRenderer ? {
|
|
@@ -6272,7 +6274,7 @@ var Oi = [
|
|
|
6272
6274
|
}
|
|
6273
6275
|
}, null, 8, ["renderer", "ctx"])) : F("", !0)]),
|
|
6274
6276
|
key: "0"
|
|
6275
|
-
} : void 0]), 1040)) : (G(), P(
|
|
6277
|
+
} : void 0]), 1040)) : (G(), P(Mi, {
|
|
6276
6278
|
key: 1,
|
|
6277
6279
|
variant: "phantom",
|
|
6278
6280
|
event: t.event,
|
|
@@ -6304,9 +6306,9 @@ var Oi = [
|
|
|
6304
6306
|
"width",
|
|
6305
6307
|
"max-list-height"
|
|
6306
6308
|
])) : F("", !0)
|
|
6307
|
-
], 10,
|
|
6309
|
+
], 10, $i));
|
|
6308
6310
|
}
|
|
6309
|
-
}), [["__scopeId", "data-v-2e1ab36b"]]),
|
|
6311
|
+
}), [["__scopeId", "data-v-2e1ab36b"]]), aa = ["data-month-key", "aria-label"], oa = { class: "coar-continuous-month-view__title" }, sa = 25, ca = 160, la = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6310
6312
|
__name: "CoarContinuousMonthView",
|
|
6311
6313
|
props: { builder: {} },
|
|
6312
6314
|
setup(e, { expose: t }) {
|
|
@@ -6456,12 +6458,12 @@ var Oi = [
|
|
|
6456
6458
|
if (e.scrollTop < 320) {
|
|
6457
6459
|
g = !0;
|
|
6458
6460
|
let t = p.value[0], n = l(t), r = A(n)?.getBoundingClientRect().top ?? 0, i = [...Array.from({ length: 6 }, (e, n) => t.subtract({ months: 6 - n })), ...p.value];
|
|
6459
|
-
i.length >
|
|
6461
|
+
i.length > sa && (i = i.slice(0, sa)), p.value = i, await Xe();
|
|
6460
6462
|
let a = A(n)?.getBoundingClientRect().top ?? r;
|
|
6461
6463
|
e.scrollTop += a - r, g = !1, ae();
|
|
6462
6464
|
} else if (e.scrollHeight - e.scrollTop - e.clientHeight < 640) {
|
|
6463
6465
|
g = !0;
|
|
6464
|
-
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 -
|
|
6466
|
+
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 - sa), i = n[r], a = l(i), o = A(a)?.getBoundingClientRect().top ?? 0;
|
|
6465
6467
|
if (r > 0 && (n = n.slice(r)), p.value = n, await Xe(), r > 0) {
|
|
6466
6468
|
let t = A(a)?.getBoundingClientRect().top ?? o;
|
|
6467
6469
|
e.scrollTop += t - o;
|
|
@@ -6473,7 +6475,7 @@ var Oi = [
|
|
|
6473
6475
|
function pe() {
|
|
6474
6476
|
x = !0, cancelAnimationFrame(h), h = requestAnimationFrame(() => {
|
|
6475
6477
|
re(), le(), fe();
|
|
6476
|
-
}), y && clearTimeout(y), y = setTimeout(de,
|
|
6478
|
+
}), y && clearTimeout(y), y = setTimeout(de, ca);
|
|
6477
6479
|
}
|
|
6478
6480
|
return st(() => n.builder.state.date.value, (e) => {
|
|
6479
6481
|
if (v) return;
|
|
@@ -6507,7 +6509,7 @@ var Oi = [
|
|
|
6507
6509
|
class: "coar-continuous-month-view__section",
|
|
6508
6510
|
"data-month-key": l(n),
|
|
6509
6511
|
"aria-label": d(n)
|
|
6510
|
-
}, [L("h2",
|
|
6512
|
+
}, [L("h2", oa, Y(d(n)), 1), E(l(n)) ? (G(), P(ia, {
|
|
6511
6513
|
key: 1,
|
|
6512
6514
|
builder: e.builder,
|
|
6513
6515
|
month: n,
|
|
@@ -6526,12 +6528,12 @@ var Oi = [
|
|
|
6526
6528
|
class: "coar-continuous-month-view__placeholder",
|
|
6527
6529
|
style: W(te(n)),
|
|
6528
6530
|
"aria-hidden": "true"
|
|
6529
|
-
}, null, 4))], 8,
|
|
6531
|
+
}, null, 4))], 8, aa))), 128))], 2));
|
|
6530
6532
|
}
|
|
6531
|
-
}), [["__scopeId", "data-v-
|
|
6533
|
+
}), [["__scopeId", "data-v-108ece4b"]]), ua = { class: "coar-agenda-event__default" }, da = { class: "coar-agenda-event__time" }, fa = { class: "coar-agenda-event__title" }, pa = {
|
|
6532
6534
|
key: 0,
|
|
6533
6535
|
class: "coar-agenda-event__continuation-tag"
|
|
6534
|
-
},
|
|
6536
|
+
}, ma = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6535
6537
|
__name: "CoarAgendaEvent",
|
|
6536
6538
|
props: {
|
|
6537
6539
|
event: {},
|
|
@@ -6559,42 +6561,42 @@ var Oi = [
|
|
|
6559
6561
|
}, [J(t.$slots, "default", {
|
|
6560
6562
|
event: e.event,
|
|
6561
6563
|
item: e.item
|
|
6562
|
-
}, () => [L("div",
|
|
6564
|
+
}, () => [L("div", ua, [
|
|
6563
6565
|
L("span", {
|
|
6564
6566
|
class: "coar-agenda-event__color",
|
|
6565
6567
|
style: W({ background: e.color })
|
|
6566
6568
|
}, null, 4),
|
|
6567
|
-
L("span",
|
|
6568
|
-
L("span",
|
|
6569
|
+
L("span", da, Y(e.timeLabel), 1),
|
|
6570
|
+
L("span", fa, [
|
|
6569
6571
|
z(Ln, {
|
|
6570
6572
|
event: e.event,
|
|
6571
6573
|
"display-zone": e.displayZone,
|
|
6572
6574
|
size: "s"
|
|
6573
6575
|
}, null, 8, ["event", "display-zone"]),
|
|
6574
6576
|
Ue(" " + Y(e.title) + " ", 1),
|
|
6575
|
-
e.item.isContinuation ? (G(), I("span",
|
|
6577
|
+
e.item.isContinuation ? (G(), I("span", pa, Y(e.continuationTag), 1)) : F("", !0)
|
|
6576
6578
|
]),
|
|
6577
|
-
z(
|
|
6579
|
+
z(Vn, {
|
|
6578
6580
|
event: e.event,
|
|
6579
6581
|
max: 3,
|
|
6580
6582
|
size: "m"
|
|
6581
6583
|
}, null, 8, ["event"])
|
|
6582
6584
|
])], !0)], 34));
|
|
6583
6585
|
}
|
|
6584
|
-
}), [["__scopeId", "data-v-
|
|
6586
|
+
}), [["__scopeId", "data-v-6d6092da"]]), ha = { class: "coar-month-list-view" }, ga = { class: "coar-month-list-view__layout" }, _a = ["aria-label"], va = { class: "coar-month-list-view__title" }, ya = {
|
|
6585
6587
|
class: "coar-month-list-view__weekdays",
|
|
6586
6588
|
"aria-hidden": "true"
|
|
6587
|
-
},
|
|
6589
|
+
}, ba = { class: "coar-month-list-view__grid" }, xa = ["aria-pressed", "onClick"], Sa = {
|
|
6588
6590
|
key: 0,
|
|
6589
6591
|
class: "coar-month-list-view__markers",
|
|
6590
6592
|
"aria-hidden": "true"
|
|
6591
|
-
},
|
|
6593
|
+
}, Ca = ["aria-label"], wa = { class: "coar-month-list-view__selected-title" }, Ta = {
|
|
6592
6594
|
key: 0,
|
|
6593
6595
|
class: "coar-month-list-view__events"
|
|
6594
|
-
},
|
|
6596
|
+
}, Ea = {
|
|
6595
6597
|
key: 1,
|
|
6596
6598
|
class: "coar-month-list-view__empty"
|
|
6597
|
-
},
|
|
6599
|
+
}, Da = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6598
6600
|
__name: "CoarMonthListView",
|
|
6599
6601
|
props: { builder: {} },
|
|
6600
6602
|
setup(t) {
|
|
@@ -6665,13 +6667,13 @@ var Oi = [
|
|
|
6665
6667
|
function te(e) {
|
|
6666
6668
|
return On(e, (e) => E.value.format(new Date(e)), r("coar.calendar.agenda.allDay", void 0, "All day"));
|
|
6667
6669
|
}
|
|
6668
|
-
return (e, t) => (G(), I("div",
|
|
6670
|
+
return (e, t) => (G(), I("div", ha, [L("div", ga, [L("section", {
|
|
6669
6671
|
class: "coar-month-list-view__selector",
|
|
6670
6672
|
"aria-label": v.value
|
|
6671
6673
|
}, [
|
|
6672
|
-
L("h2",
|
|
6673
|
-
L("div",
|
|
6674
|
-
L("div",
|
|
6674
|
+
L("h2", va, Y(v.value), 1),
|
|
6675
|
+
L("div", ya, [(G(!0), I(M, null, q(p.value, (e) => (G(), I("span", { key: e }, Y(e.slice(0, 2)), 1))), 128))]),
|
|
6676
|
+
L("div", ba, [(G(!0), I(M, null, q(d.value, (e) => (G(), I("button", {
|
|
6675
6677
|
key: e.toString(),
|
|
6676
6678
|
type: "button",
|
|
6677
6679
|
class: H(["coar-month-list-view__day", {
|
|
@@ -6681,14 +6683,14 @@ var Oi = [
|
|
|
6681
6683
|
}]),
|
|
6682
6684
|
"aria-pressed": S(e, l.value),
|
|
6683
6685
|
onClick: (t) => b(e)
|
|
6684
|
-
}, [L("span", null, Y(e.day), 1), h.value.get(e.toString())?.length ? (G(), I("span",
|
|
6686
|
+
}, [L("span", null, Y(e.day), 1), h.value.get(e.toString())?.length ? (G(), I("span", Sa, [(G(!0), I(M, null, q(h.value.get(e.toString()).slice(0, 5), (e) => (G(), I("i", {
|
|
6685
6687
|
key: e.event.id,
|
|
6686
6688
|
style: W({ background: T(e.event) })
|
|
6687
|
-
}, null, 4))), 128))])) : F("", !0)], 10,
|
|
6688
|
-
], 8,
|
|
6689
|
+
}, null, 4))), 128))])) : F("", !0)], 10, xa))), 128))])
|
|
6690
|
+
], 8, _a), L("section", {
|
|
6689
6691
|
class: "coar-month-list-view__agenda",
|
|
6690
6692
|
"aria-label": l.value.toString()
|
|
6691
|
-
}, [L("h3",
|
|
6693
|
+
}, [L("h3", wa, Y(y.value), 1), g.value.length ? (G(), I("div", Ta, [(G(!0), I(M, null, q(g.value, (t) => (G(), P(ma, {
|
|
6692
6694
|
key: `${t.date}:${t.event.id}`,
|
|
6693
6695
|
event: t.event,
|
|
6694
6696
|
item: t,
|
|
@@ -6711,9 +6713,9 @@ var Oi = [
|
|
|
6711
6713
|
"continuation-tag",
|
|
6712
6714
|
"display-zone",
|
|
6713
6715
|
"onPointerdown"
|
|
6714
|
-
]))), 128))])) : (G(), I("p",
|
|
6716
|
+
]))), 128))])) : (G(), I("p", Ea, Y(Z(r)("coar.calendar.monthList.empty", void 0, "No events")), 1))], 8, Ca)])]));
|
|
6715
6717
|
}
|
|
6716
|
-
}), [["__scopeId", "data-v-
|
|
6718
|
+
}), [["__scopeId", "data-v-33aaaea2"]]), Oa = ["data-y"], ka = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6717
6719
|
__name: "VirtualizedSurface1DY",
|
|
6718
6720
|
props: {
|
|
6719
6721
|
itemCount: {},
|
|
@@ -6870,12 +6872,12 @@ var Oi = [
|
|
|
6870
6872
|
class: "coar-virtualized-surface-1dy__item",
|
|
6871
6873
|
style: W({ transform: `translateY(${h(t)}px)` }),
|
|
6872
6874
|
"data-y": t
|
|
6873
|
-
}, [J(e.$slots, "item", { y: t }, void 0, !0)], 12,
|
|
6875
|
+
}, [J(e.$slots, "item", { y: t }, void 0, !0)], 12, Oa)), [[C, t]])), 128))], 4)], 544));
|
|
6874
6876
|
}
|
|
6875
|
-
}), [["__scopeId", "data-v-03aa2532"]]),
|
|
6877
|
+
}), [["__scopeId", "data-v-03aa2532"]]), Aa = ["role", "aria-level"], ja = { class: "coar-agenda-day-header__label" }, Ma = {
|
|
6876
6878
|
key: 0,
|
|
6877
6879
|
class: "coar-agenda-day-header__today"
|
|
6878
|
-
},
|
|
6880
|
+
}, Na = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6879
6881
|
__name: "CoarAgendaDayHeader",
|
|
6880
6882
|
props: {
|
|
6881
6883
|
date: {},
|
|
@@ -6912,27 +6914,27 @@ var Oi = [
|
|
|
6912
6914
|
date: e.date,
|
|
6913
6915
|
item: e.item,
|
|
6914
6916
|
isToday: e.isToday
|
|
6915
|
-
}, () => [L("span",
|
|
6917
|
+
}, () => [L("span", ja, Y(e.label), 1), e.isToday ? (G(), I("span", Ma, Y(e.todayLabel), 1)) : F("", !0)], !0)], 46, Aa));
|
|
6916
6918
|
}
|
|
6917
|
-
}), [["__scopeId", "data-v-
|
|
6919
|
+
}), [["__scopeId", "data-v-1b2c93a6"]]), Pa = ["aria-label"], Fa = {
|
|
6918
6920
|
key: 0,
|
|
6919
6921
|
class: "coar-agenda-view__week-strip"
|
|
6920
|
-
},
|
|
6922
|
+
}, Ia = {
|
|
6921
6923
|
key: 0,
|
|
6922
6924
|
class: "coar-agenda-view__week-strip-start"
|
|
6923
|
-
},
|
|
6925
|
+
}, La = ["aria-label"], Ra = [
|
|
6924
6926
|
"aria-selected",
|
|
6925
6927
|
"aria-label",
|
|
6926
6928
|
"onClick"
|
|
6927
|
-
],
|
|
6929
|
+
], za = { class: "coar-agenda-view__week-day-name" }, Ba = { class: "coar-agenda-view__week-day-number" }, Va = {
|
|
6928
6930
|
key: 1,
|
|
6929
6931
|
class: "coar-agenda-view__week-strip-end"
|
|
6930
|
-
},
|
|
6932
|
+
}, Ha = {
|
|
6931
6933
|
key: 2,
|
|
6932
6934
|
class: "coar-agenda-view__empty",
|
|
6933
6935
|
role: "status",
|
|
6934
6936
|
"aria-live": "polite"
|
|
6935
|
-
},
|
|
6937
|
+
}, Ua = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
6936
6938
|
__name: "CoarAgendaView",
|
|
6937
6939
|
props: {
|
|
6938
6940
|
builder: {},
|
|
@@ -7098,8 +7100,8 @@ var Oi = [
|
|
|
7098
7100
|
role: "region",
|
|
7099
7101
|
"aria-label": Z(i)("coar.calendar.agenda.viewLabel", void 0, "Agenda view")
|
|
7100
7102
|
}, [
|
|
7101
|
-
t.view === "dayAgenda" ? (G(), I("div",
|
|
7102
|
-
e.$slots.weekStripStart ? (G(), I("div",
|
|
7103
|
+
t.view === "dayAgenda" ? (G(), I("div", Fa, [
|
|
7104
|
+
e.$slots.weekStripStart ? (G(), I("div", Ia, [J(e.$slots, "weekStripStart", U(V(y.value)), void 0, !0)])) : F("", !0),
|
|
7103
7105
|
L("div", {
|
|
7104
7106
|
class: "coar-agenda-view__week-days",
|
|
7105
7107
|
role: "tablist",
|
|
@@ -7115,10 +7117,10 @@ var Oi = [
|
|
|
7115
7117
|
"aria-selected": Z(_).PlainDate.compare(e, m.value) === 0,
|
|
7116
7118
|
"aria-label": re(e.toString()),
|
|
7117
7119
|
onClick: (t) => ae(t, e)
|
|
7118
|
-
}, [L("span",
|
|
7119
|
-
e.$slots.weekStripEnd ? (G(), I("div",
|
|
7120
|
+
}, [L("span", za, Y(ie(e)), 1), L("span", Ba, Y(e.day), 1)], 10, Ra))), 128))], 8, La),
|
|
7121
|
+
e.$slots.weekStripEnd ? (G(), I("div", Va, [J(e.$slots, "weekStripEnd", U(V(y.value)), void 0, !0)])) : F("", !0)
|
|
7120
7122
|
])) : F("", !0),
|
|
7121
|
-
_e.value && t.view !== "dayAgenda" ? (G(), P(
|
|
7123
|
+
_e.value && t.view !== "dayAgenda" ? (G(), P(Na, {
|
|
7122
7124
|
key: 1,
|
|
7123
7125
|
ref: "overlayEl",
|
|
7124
7126
|
floating: "",
|
|
@@ -7141,7 +7143,7 @@ var Oi = [
|
|
|
7141
7143
|
"today-label",
|
|
7142
7144
|
"transform"
|
|
7143
7145
|
])) : F("", !0),
|
|
7144
|
-
z(
|
|
7146
|
+
z(ka, {
|
|
7145
7147
|
ref: "surface",
|
|
7146
7148
|
role: "list",
|
|
7147
7149
|
"aria-label": Z(i)("coar.calendar.agenda.listLabel", void 0, "Agenda"),
|
|
@@ -7150,7 +7152,7 @@ var Oi = [
|
|
|
7150
7152
|
overscan: t.overscan,
|
|
7151
7153
|
class: "coar-agenda-view__surface"
|
|
7152
7154
|
}, {
|
|
7153
|
-
item: Q(({ y: t }) => [D.value[t].kind === "header" ? (G(), P(
|
|
7155
|
+
item: Q(({ y: t }) => [D.value[t].kind === "header" ? (G(), P(Na, {
|
|
7154
7156
|
key: 0,
|
|
7155
7157
|
date: Z(_).PlainDate.from(D.value[t].date),
|
|
7156
7158
|
item: D.value[t],
|
|
@@ -7169,7 +7171,7 @@ var Oi = [
|
|
|
7169
7171
|
"label",
|
|
7170
7172
|
"today-label",
|
|
7171
7173
|
"onPointerdown"
|
|
7172
|
-
])) : (G(), P(
|
|
7174
|
+
])) : (G(), P(ma, {
|
|
7173
7175
|
key: 1,
|
|
7174
7176
|
event: D.value[t].event,
|
|
7175
7177
|
item: D.value[t],
|
|
@@ -7215,19 +7217,19 @@ var Oi = [
|
|
|
7215
7217
|
"estimated-item-size",
|
|
7216
7218
|
"overscan"
|
|
7217
7219
|
]),
|
|
7218
|
-
e.$slots.empty && E.value ? (G(), I("div",
|
|
7219
|
-
], 10,
|
|
7220
|
+
e.$slots.empty && E.value ? (G(), I("div", Ha, [J(e.$slots, "empty", {}, void 0, !0)])) : F("", !0)
|
|
7221
|
+
], 10, Pa));
|
|
7220
7222
|
}
|
|
7221
|
-
}), [["__scopeId", "data-v-
|
|
7223
|
+
}), [["__scopeId", "data-v-789f5267"]]), Wa = { class: "coar-timeline-view__date-axis" }, Ga = {
|
|
7222
7224
|
key: 1,
|
|
7223
7225
|
class: "coar-timeline-view__date-label"
|
|
7224
|
-
},
|
|
7226
|
+
}, Ka = { class: "coar-timeline-view__label-column" }, qa = ["title"], Ja = ["title"], Ya = { class: "coar-timeline-view__day-grid-bg" }, Xa = [
|
|
7225
7227
|
"aria-label",
|
|
7226
7228
|
"onClick",
|
|
7227
7229
|
"onDblclick",
|
|
7228
7230
|
"onPointerenter",
|
|
7229
7231
|
"onPointerleave"
|
|
7230
|
-
],
|
|
7232
|
+
], Za = 8, Qa = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7231
7233
|
__name: "CoarTimelineView",
|
|
7232
7234
|
props: { builder: {} },
|
|
7233
7235
|
setup(e, { expose: t }) {
|
|
@@ -7351,7 +7353,7 @@ var Oi = [
|
|
|
7351
7353
|
let ae = N(() => {
|
|
7352
7354
|
let e = l.value.rows, t = a.value.rowHeight;
|
|
7353
7355
|
if (t <= 0 || e.length === 0 || k.value <= 0) return e;
|
|
7354
|
-
let n = t, r = ne.value - n, i = ne.value + k.value - n, o = Math.max(0, Math.floor(r / t) -
|
|
7356
|
+
let n = t, r = ne.value - n, i = ne.value + k.value - n, o = Math.max(0, Math.floor(r / t) - Za), s = Math.min(e.length - 1, Math.ceil(i / t) + Za);
|
|
7355
7357
|
return o > s ? [] : e.slice(o, s + 1);
|
|
7356
7358
|
}), A = N(() => ({
|
|
7357
7359
|
width: `${a.value.labelWidth + l.value.totalWidth}px`,
|
|
@@ -7372,7 +7374,7 @@ var Oi = [
|
|
|
7372
7374
|
style: W(A.value)
|
|
7373
7375
|
}, [
|
|
7374
7376
|
t[0] ||= L("div", { class: "coar-timeline-view__corner" }, [L("span", { class: "coar-timeline-view__corner-title" }, "Event")], -1),
|
|
7375
|
-
L("div",
|
|
7377
|
+
L("div", Wa, [(G(!0), I(M, null, q(u.value, (t) => (G(), I("div", {
|
|
7376
7378
|
key: t.toString(),
|
|
7377
7379
|
class: H(["coar-timeline-view__date-cell", {
|
|
7378
7380
|
"coar-timeline-view__date-cell--today": f(t),
|
|
@@ -7387,8 +7389,8 @@ var Oi = [
|
|
|
7387
7389
|
date: t,
|
|
7388
7390
|
isToday: f(t),
|
|
7389
7391
|
isWeekend: p(t)
|
|
7390
|
-
}, void 0, !0) : (G(), I("span",
|
|
7391
|
-
L("div",
|
|
7392
|
+
}, void 0, !0) : (G(), I("span", Ga, Y(h(t)), 1))], 6))), 128))]),
|
|
7393
|
+
L("div", Ka, [L("div", {
|
|
7392
7394
|
class: "coar-timeline-view__label-inner",
|
|
7393
7395
|
style: W({ height: `${Math.max(l.value.totalHeight, a.value.rowHeight)}px` })
|
|
7394
7396
|
}, [(G(!0), I(M, null, q(ae.value, (t) => (G(), I("div", {
|
|
@@ -7405,18 +7407,18 @@ var Oi = [
|
|
|
7405
7407
|
}, void 0, !0) : (G(), I(M, { key: 1 }, [L("span", {
|
|
7406
7408
|
class: "coar-timeline-view__label-text",
|
|
7407
7409
|
title: g(t.bars[0].event)
|
|
7408
|
-
}, Y(g(t.bars[0].event)), 9,
|
|
7410
|
+
}, Y(g(t.bars[0].event)), 9, qa), t.isRecurring ? (G(), I("span", {
|
|
7409
7411
|
key: 0,
|
|
7410
7412
|
class: "coar-timeline-view__label-count",
|
|
7411
7413
|
title: `${t.bars.length} occurrences`
|
|
7412
|
-
}, " ×" + Y(t.bars.length), 9,
|
|
7414
|
+
}, " ×" + Y(t.bars.length), 9, Ja)) : F("", !0)], 64))], 6))), 128))], 4)]),
|
|
7413
7415
|
L("div", {
|
|
7414
7416
|
class: "coar-timeline-view__bars-area",
|
|
7415
7417
|
style: W({
|
|
7416
7418
|
width: `${l.value.totalWidth}px`,
|
|
7417
7419
|
height: `${Math.max(l.value.totalHeight, a.value.rowHeight)}px`
|
|
7418
7420
|
})
|
|
7419
|
-
}, [L("div",
|
|
7421
|
+
}, [L("div", Ya, [(G(!0), I(M, null, q(u.value, (e) => (G(), I("div", {
|
|
7420
7422
|
key: e.toString(),
|
|
7421
7423
|
class: H(["coar-timeline-view__day-grid-cell", { "coar-timeline-view__day-grid-cell--weekend": p(e) }]),
|
|
7422
7424
|
style: W({
|
|
@@ -7447,13 +7449,13 @@ var Oi = [
|
|
|
7447
7449
|
row: t,
|
|
7448
7450
|
bar: n,
|
|
7449
7451
|
event: n.event
|
|
7450
|
-
}, void 0, !0) : F("", !0)], 46,
|
|
7452
|
+
}, void 0, !0) : F("", !0)], 46, Xa))), 128))], 64))), 128))], 4)
|
|
7451
7453
|
], 4)], 34));
|
|
7452
7454
|
}
|
|
7453
|
-
}), [["__scopeId", "data-v-
|
|
7455
|
+
}), [["__scopeId", "data-v-9e085a08"]]), $a = ["aria-label"], eo = ["onClick"], to = {
|
|
7454
7456
|
class: "coar-year-view__weekdays",
|
|
7455
7457
|
"aria-hidden": "true"
|
|
7456
|
-
},
|
|
7458
|
+
}, no = { class: "coar-year-view__days" }, ro = ["tabindex", "onClick"], io = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7457
7459
|
__name: "CoarYearView",
|
|
7458
7460
|
props: { builder: {} },
|
|
7459
7461
|
setup(t) {
|
|
@@ -7495,9 +7497,9 @@ var Oi = [
|
|
|
7495
7497
|
class: "coar-year-view__month-title",
|
|
7496
7498
|
type: "button",
|
|
7497
7499
|
onClick: (t) => p(e.first)
|
|
7498
|
-
}, Y(e.label), 9,
|
|
7499
|
-
L("div",
|
|
7500
|
-
L("div",
|
|
7500
|
+
}, Y(e.label), 9, eo),
|
|
7501
|
+
L("div", to, [(G(!0), I(M, null, q(d.value, (e, t) => (G(), I("span", { key: t }, Y(e), 1))), 128))]),
|
|
7502
|
+
L("div", no, [(G(!0), I(M, null, q(e.days, (t) => (G(), I("button", {
|
|
7501
7503
|
key: t.toString(),
|
|
7502
7504
|
type: "button",
|
|
7503
7505
|
class: H(["coar-year-view__day", {
|
|
@@ -7506,19 +7508,19 @@ var Oi = [
|
|
|
7506
7508
|
}]),
|
|
7507
7509
|
tabindex: t.month === e.first.month ? 0 : -1,
|
|
7508
7510
|
onClick: (e) => p(t)
|
|
7509
|
-
}, Y(t.day), 11,
|
|
7510
|
-
]))), 128))], 8,
|
|
7511
|
+
}, Y(t.day), 11, ro))), 128))])
|
|
7512
|
+
]))), 128))], 8, $a));
|
|
7511
7513
|
}
|
|
7512
|
-
}), [["__scopeId", "data-v-
|
|
7514
|
+
}), [["__scopeId", "data-v-c5a170a8"]]), ao = { class: "coar-calendar__header" }, oo = { class: "coar-calendar__nav" }, so = { class: "coar-calendar__range-label" }, co = {
|
|
7513
7515
|
key: 0,
|
|
7514
7516
|
class: "coar-calendar__view-switcher"
|
|
7515
|
-
},
|
|
7517
|
+
}, lo = {
|
|
7516
7518
|
key: 1,
|
|
7517
7519
|
class: "coar-calendar__mode-switcher"
|
|
7518
|
-
},
|
|
7520
|
+
}, uo = {
|
|
7519
7521
|
key: 2,
|
|
7520
7522
|
class: "coar-calendar__mode-switcher"
|
|
7521
|
-
},
|
|
7523
|
+
}, fo = 100, po = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7522
7524
|
__name: "CoarCalendar",
|
|
7523
7525
|
props: {
|
|
7524
7526
|
builder: {},
|
|
@@ -7644,7 +7646,7 @@ var Oi = [
|
|
|
7644
7646
|
let i = performance.now(), a = ++te;
|
|
7645
7647
|
function o(t) {
|
|
7646
7648
|
if (a !== te) return;
|
|
7647
|
-
let s = Math.min(1, (t - i) /
|
|
7649
|
+
let s = Math.min(1, (t - i) / fo);
|
|
7648
7650
|
e.scrollTop = n + r * (1 - (1 - s) ** 3), s < 1 && requestAnimationFrame(o);
|
|
7649
7651
|
}
|
|
7650
7652
|
requestAnimationFrame(o);
|
|
@@ -7679,9 +7681,9 @@ var Oi = [
|
|
|
7679
7681
|
cursor: c.value,
|
|
7680
7682
|
range: d.value,
|
|
7681
7683
|
controls: w.value
|
|
7682
|
-
}, () => [L("header",
|
|
7684
|
+
}, () => [L("header", ao, [
|
|
7683
7685
|
J(e.$slots, "headerStart", { controls: w.value }, void 0, !0),
|
|
7684
|
-
L("div",
|
|
7686
|
+
L("div", oo, [
|
|
7685
7687
|
z(Z(pt), {
|
|
7686
7688
|
variant: "secondary",
|
|
7687
7689
|
size: "s",
|
|
@@ -7705,9 +7707,9 @@ var Oi = [
|
|
|
7705
7707
|
onClick: p
|
|
7706
7708
|
}, null, 8, ["aria-label"])
|
|
7707
7709
|
]),
|
|
7708
|
-
L("span",
|
|
7710
|
+
L("span", so, Y(g.value), 1),
|
|
7709
7711
|
i[3] ||= L("span", { class: "coar-calendar__spacer" }, null, -1),
|
|
7710
|
-
t.hideViewSwitcher ? F("", !0) : (G(), I("div",
|
|
7712
|
+
t.hideViewSwitcher ? F("", !0) : (G(), I("div", co, [J(e.$slots, "viewSwitcher", {
|
|
7711
7713
|
view: Z(r),
|
|
7712
7714
|
available: n.value.availableViews,
|
|
7713
7715
|
setView: h
|
|
@@ -7722,13 +7724,13 @@ var Oi = [
|
|
|
7722
7724
|
"options",
|
|
7723
7725
|
"aria-label"
|
|
7724
7726
|
])], !0)])),
|
|
7725
|
-
!t.hideModeSwitcher && y.value === "month" && b.value.length > 1 ? (G(), I("div",
|
|
7727
|
+
!t.hideModeSwitcher && y.value === "month" && b.value.length > 1 ? (G(), I("div", lo, [z(Z(ht), {
|
|
7726
7728
|
modelValue: S.value,
|
|
7727
7729
|
"onUpdate:modelValue": i[1] ||= (e) => S.value = e,
|
|
7728
7730
|
options: b.value,
|
|
7729
7731
|
size: "xs",
|
|
7730
7732
|
"aria-label": "Month display"
|
|
7731
|
-
}, null, 8, ["modelValue", "options"])])) : !t.hideModeSwitcher && y.value === "day" && C.value.length > 1 ? (G(), I("div",
|
|
7733
|
+
}, null, 8, ["modelValue", "options"])])) : !t.hideModeSwitcher && y.value === "day" && C.value.length > 1 ? (G(), I("div", uo, [z(Z(ht), {
|
|
7732
7734
|
modelValue: ee.value,
|
|
7733
7735
|
"onUpdate:modelValue": i[2] ||= (e) => ee.value = e,
|
|
7734
7736
|
options: C.value,
|
|
@@ -7740,7 +7742,7 @@ var Oi = [
|
|
|
7740
7742
|
ref_key: "bodyEl",
|
|
7741
7743
|
ref: T,
|
|
7742
7744
|
class: H(["coar-calendar__body", `coar-calendar__body--${Z(r)}`])
|
|
7743
|
-
}, [Z(r) === "day" ? (G(), P(
|
|
7745
|
+
}, [Z(r) === "day" ? (G(), P(fi, {
|
|
7744
7746
|
key: 0,
|
|
7745
7747
|
builder: t.builder
|
|
7746
7748
|
}, R({ _: 2 }, [
|
|
@@ -7759,7 +7761,7 @@ var Oi = [
|
|
|
7759
7761
|
fn: Q((t) => [J(e.$slots, "draft", U(V(t)), void 0, !0)]),
|
|
7760
7762
|
key: "2"
|
|
7761
7763
|
} : void 0
|
|
7762
|
-
]), 1032, ["builder"])) : Z(r) === "dayAgenda" ? (G(), P(
|
|
7764
|
+
]), 1032, ["builder"])) : Z(r) === "dayAgenda" ? (G(), P(Ua, {
|
|
7763
7765
|
key: 1,
|
|
7764
7766
|
ref: "agendaView",
|
|
7765
7767
|
builder: t.builder,
|
|
@@ -7780,7 +7782,7 @@ var Oi = [
|
|
|
7780
7782
|
fn: Q((t) => [J(e.$slots, "weekStripEnd", U(V(t)), void 0, !0)]),
|
|
7781
7783
|
key: "2"
|
|
7782
7784
|
} : void 0
|
|
7783
|
-
]), 1032, ["builder"])) : Z(r) === "week" ? (G(), P(
|
|
7785
|
+
]), 1032, ["builder"])) : Z(r) === "week" ? (G(), P(pi, {
|
|
7784
7786
|
key: 2,
|
|
7785
7787
|
builder: t.builder
|
|
7786
7788
|
}, R({ _: 2 }, [
|
|
@@ -7804,7 +7806,7 @@ var Oi = [
|
|
|
7804
7806
|
fn: Q((t) => [J(e.$slots, "draft", U(V(t)), void 0, !0)]),
|
|
7805
7807
|
key: "3"
|
|
7806
7808
|
} : void 0
|
|
7807
|
-
]), 1032, ["builder"])) : Z(r) === "workWeek" ? (G(), P(
|
|
7809
|
+
]), 1032, ["builder"])) : Z(r) === "workWeek" ? (G(), P(mi, {
|
|
7808
7810
|
key: 3,
|
|
7809
7811
|
builder: t.builder
|
|
7810
7812
|
}, R({ _: 2 }, [
|
|
@@ -7828,7 +7830,7 @@ var Oi = [
|
|
|
7828
7830
|
fn: Q((t) => [J(e.$slots, "draft", U(V(t)), void 0, !0)]),
|
|
7829
7831
|
key: "3"
|
|
7830
7832
|
} : void 0
|
|
7831
|
-
]), 1032, ["builder"])) : Z(r) === "month" ? (G(), P(
|
|
7833
|
+
]), 1032, ["builder"])) : Z(r) === "month" ? (G(), P(la, {
|
|
7832
7834
|
key: 4,
|
|
7833
7835
|
ref: "continuousMonthView",
|
|
7834
7836
|
builder: t.builder
|
|
@@ -7850,14 +7852,14 @@ var Oi = [
|
|
|
7850
7852
|
layout: t.bar
|
|
7851
7853
|
}, void 0, !0)]),
|
|
7852
7854
|
key: "1"
|
|
7853
|
-
} : void 0]), 1032, ["builder"])) : Z(r) === "monthList" ? (G(), P(
|
|
7855
|
+
} : void 0]), 1032, ["builder"])) : Z(r) === "monthList" ? (G(), P(Da, {
|
|
7854
7856
|
key: 5,
|
|
7855
7857
|
builder: t.builder
|
|
7856
7858
|
}, R({ _: 2 }, [e.$slots.event ? {
|
|
7857
7859
|
name: "event",
|
|
7858
7860
|
fn: Q((t) => [J(e.$slots, "event", Ye(t, { view: Z(r) }), void 0, !0)]),
|
|
7859
7861
|
key: "0"
|
|
7860
|
-
} : void 0]), 1032, ["builder"])) : Z(r) === "agenda" ? (G(), P(
|
|
7862
|
+
} : void 0]), 1032, ["builder"])) : Z(r) === "agenda" ? (G(), P(Ua, {
|
|
7861
7863
|
key: 6,
|
|
7862
7864
|
ref: "agendaView",
|
|
7863
7865
|
builder: t.builder
|
|
@@ -7869,7 +7871,7 @@ var Oi = [
|
|
|
7869
7871
|
name: "empty",
|
|
7870
7872
|
fn: Q(() => [J(e.$slots, "agendaEmpty", {}, void 0, !0)]),
|
|
7871
7873
|
key: "1"
|
|
7872
|
-
} : void 0]), 1032, ["builder"])) : Z(r) === "timeline" ? (G(), P(
|
|
7874
|
+
} : void 0]), 1032, ["builder"])) : Z(r) === "timeline" ? (G(), P(Qa, {
|
|
7873
7875
|
key: 7,
|
|
7874
7876
|
builder: t.builder
|
|
7875
7877
|
}, R({ _: 2 }, [e.$slots.event ? {
|
|
@@ -7879,12 +7881,12 @@ var Oi = [
|
|
|
7879
7881
|
view: Z(r)
|
|
7880
7882
|
}, void 0, !0)]),
|
|
7881
7883
|
key: "0"
|
|
7882
|
-
} : void 0]), 1032, ["builder"])) : Z(r) === "year" ? (G(), P(
|
|
7884
|
+
} : void 0]), 1032, ["builder"])) : Z(r) === "year" ? (G(), P(io, {
|
|
7883
7885
|
key: 8,
|
|
7884
7886
|
builder: t.builder
|
|
7885
7887
|
}, null, 8, ["builder"])) : F("", !0)], 2)], 2));
|
|
7886
7888
|
}
|
|
7887
|
-
}), [["__scopeId", "data-v-
|
|
7889
|
+
}), [["__scopeId", "data-v-47194eba"]]), mo = /* @__PURE__ */ B({
|
|
7888
7890
|
__name: "CoarDisplayZoneSwitcher",
|
|
7889
7891
|
props: {
|
|
7890
7892
|
modelValue: {},
|
|
@@ -7970,7 +7972,7 @@ var Oi = [
|
|
|
7970
7972
|
"aria-label"
|
|
7971
7973
|
]));
|
|
7972
7974
|
}
|
|
7973
|
-
}),
|
|
7975
|
+
}), ho = ["data-x", "data-y"], go = /* @__PURE__ */ $(/* @__PURE__ */ B({
|
|
7974
7976
|
__name: "VirtualizedSurface2D",
|
|
7975
7977
|
props: {
|
|
7976
7978
|
itemCountX: {},
|
|
@@ -8052,9 +8054,9 @@ var Oi = [
|
|
|
8052
8054
|
}, [J(e.$slots, "cell", {
|
|
8053
8055
|
x: t.x,
|
|
8054
8056
|
y: t.y
|
|
8055
|
-
}, void 0, !0)], 12,
|
|
8057
|
+
}, void 0, !0)], 12, ho))), 128))], 4)], 544));
|
|
8056
8058
|
}
|
|
8057
|
-
}), [["__scopeId", "data-v-fbba32db"]]),
|
|
8059
|
+
}), [["__scopeId", "data-v-fbba32db"]]), _o = {
|
|
8058
8060
|
en: {
|
|
8059
8061
|
"coar.calendar.nav.today": "Today",
|
|
8060
8062
|
"coar.calendar.nav.previous": "Previous",
|
|
@@ -8150,11 +8152,11 @@ var Oi = [
|
|
|
8150
8152
|
"coar.calendar.a11y.eventMovedTo": "{title} verschoben auf {when}"
|
|
8151
8153
|
}
|
|
8152
8154
|
};
|
|
8153
|
-
function
|
|
8155
|
+
function vo() {
|
|
8154
8156
|
return { load(e) {
|
|
8155
|
-
let t =
|
|
8157
|
+
let t = _o[e.split("-")[0].toLowerCase()];
|
|
8156
8158
|
return Promise.resolve(t ? { ...t } : null);
|
|
8157
8159
|
} };
|
|
8158
8160
|
}
|
|
8159
8161
|
//#endregion
|
|
8160
|
-
export { Jt as CalendarBuilder,
|
|
8162
|
+
export { Jt as CalendarBuilder, Ua as CoarAgendaView, po as CoarCalendar, la as CoarContinuousMonthView, fi as CoarDayView, mo as CoarDisplayZoneSwitcher, Da as CoarMonthListView, ia as CoarMonthView, Mr as CoarTimeGrid, Qa as CoarTimelineView, pi as CoarWeekView, mi as CoarWorkWeekView, io as CoarYearView, de as DEFAULT_ALL_DAY_MAX_VISIBLE_LANES, De as DEFAULT_TIMED_EVENT_DETAIL_MIN_WIDTH, ae as DEFAULT_WORK_DAYS, ee as DstResolutionError, y as MIN_RESIZE_MINUTES, ke as MONTH_COMPACT_VISIBLE_PILLS, Le as MONTH_DEFAULT_MAX_VISIBLE_LANES, Se as MONTH_STACKED_VISIBLE_PILLS, Me as MeasurementCache, _e as TIME_GRID_PRESETS, _ as Temporal, ka as VirtualizedSurface1DY, go as VirtualizedSurface2D, Oe as allDayBandLanes, S as applyMoveToEvent, xe as buildAgendaItems, h as buildDropPayload, w as buildFormatOptions, we as busyMinutesOn, _o as calendarMessages, O as capAllDayBand, Ce as capMonthCellPills, Ne as capMonthRowLanes, Pe as computeAnchorAdjustment, Ie as computeAutoScrollVelocity, se as computeViewWindow, re as contentAwareCascadeFrames, vo as createCalendarTranslationSource, d as dateKey, ce as daysInWindow, ye as defaultSelectionPolicy, f as detectBrowserTimezone, c as detectDstSituation, x as detectFirstDayOfWeekFromLocale, v as detectHour12FromLocale, m as endOfMonth, p as endOfWeek, he as eventInkColor, T as eventStartDateInZone, ie as eventTextColor, ue as formatRangeLabel, te as formatScheduledTime, Re as freeRangeAt, Ve as gapOrDurationPolicy, Zt as getEventZoneHints, Ee as getVisibleRange1D, j as getVisibleRange2D, je as hitTestVerticalSurface, b as isAllDayEvent, C as isTimedEvent, l as isoWeekNumber, me as layoutAllDayBand, k as layoutDayEvents, Ae as layoutMonthGrid, ze as layoutOverlappingIntervals, Fe as layoutTimeline, D as localizedWeekdayNames, be as minuteOfDayToZoned, Te as monthCellPillLimit, o as monthGridDates, pe as navigateCursor, t as nowInZone, E as parsePlainDate, s as parseScheduledTime, oe as resolveSpanDays, ge as resolveTimeGridRange, le as resolveTimedCardAnatomy, fe as responsiveDayColumnCount, Be as snapToSlot, n as startOfMonth, a as startOfWeek, ve as timeGridRangeSpecFor, A as timeGridStepDays, e as todayInZone, dn as useA11yAnnouncer, Tn as useAgendaView, Yt as useCalendar, ln as useCalendarDnd, en as useCoarDrag, xn as useDayView, bn as useMonthDnd, wn as useMonthView, yn as useTimeGridDnd, vn as useTimeGridSwipe, En as useTimelineView, $t as useViewWindow, Sn as useWeekView, Cn as useWorkWeekView, u as validateCalendarEvent, g as weekDates, He as windowContainsDate, ne as windowDayCount, i as workWeekDates };
|