@cocoar/vue-ui 2.6.0 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -10,57 +10,81 @@ function le(e) {
10
10
  }
11
11
  function ue(e) {
12
12
  let t = le(e.count), n = le(e.itemSize), i = le(e.overscan ?? 5), a = A(0), o = A(0), s = r(() => {
13
- let e = t(), r = n(), i = typeof r == "function" ? r : () => r, a = Array(e + 1);
14
- a[0] = 0;
15
- for (let t = 0; t < e; t++) a[t + 1] = a[t] + i(t);
16
- return a;
17
- }), c = r(() => {
18
- let e = s.value;
19
- return e.length > 0 ? e[e.length - 1] : 0;
13
+ let e = n();
14
+ if (typeof e != "function") return null;
15
+ let r = t(), i = Array(r + 1);
16
+ i[0] = 0;
17
+ for (let t = 0; t < r; t++) i[t + 1] = i[t] + e(t);
18
+ return i;
20
19
  });
21
- function l(e) {
22
- let t = s.value;
23
- if (t.length <= 1) return 0;
24
- let n = 0, r = t.length - 1;
25
- for (; n < r;) {
26
- let i = n + r >>> 1;
27
- t[i] <= e ? n = i + 1 : r = i;
28
- }
29
- return Math.max(0, n - 1);
20
+ function c(e) {
21
+ let r = s.value;
22
+ if (r) return r[Math.max(0, Math.min(e, r.length - 1))] ?? 0;
23
+ let i = n();
24
+ return Math.max(0, Math.min(e, t())) * i;
30
25
  }
26
+ let l = r(() => {
27
+ let e = s.value;
28
+ return e ? e.length > 0 ? e[e.length - 1] : 0 : t() * n();
29
+ });
31
30
  function u(e) {
32
- let t = s.value;
33
- if (t.length <= 1) return 0;
34
- let n = 0, r = t.length - 1;
35
- for (; n < r;) {
36
- let i = n + r >>> 1;
37
- t[i] < e ? n = i + 1 : r = i;
38
- }
39
- return Math.max(0, n - 1);
31
+ let r = t();
32
+ if (r === 0) return 0;
33
+ let i = s.value;
34
+ if (!i) {
35
+ let t = n();
36
+ return t > 0 ? Math.max(0, Math.min(r - 1, Math.floor(e / t))) : 0;
37
+ }
38
+ if (i.length <= 1) return 0;
39
+ let a = 0, o = i.length - 1;
40
+ for (; a < o;) {
41
+ let t = a + o >>> 1;
42
+ i[t] <= e ? a = t + 1 : o = t;
43
+ }
44
+ return Math.max(0, a - 1);
45
+ }
46
+ function d(e) {
47
+ let r = t();
48
+ if (r === 0) return 0;
49
+ let i = s.value;
50
+ if (!i) {
51
+ let t = n();
52
+ return t > 0 ? Math.max(0, Math.min(r - 1, Math.ceil(e / t) - 1)) : 0;
53
+ }
54
+ if (i.length <= 1) return 0;
55
+ let a = 0, o = i.length - 1;
56
+ for (; a < o;) {
57
+ let t = a + o >>> 1;
58
+ i[t] < e ? a = t + 1 : o = t;
59
+ }
60
+ return Math.max(0, a - 1);
40
61
  }
41
- let d = r(() => {
62
+ let f = r(() => {
42
63
  let e = t();
43
64
  if (e === 0) return [];
44
- let n = Math.max(0, i() | 0), r = s.value, c = a.value, d = c + o.value, f = l(c), p = u(d), m = Math.max(0, f - n), h = Math.min(e - 1, p + n), g = [];
45
- for (let e = m; e <= h; e++) g.push({
46
- index: e,
47
- start: r[e],
48
- size: r[e + 1] - r[e]
49
- });
50
- return g;
65
+ let n = Math.max(0, i() | 0), r = a.value, s = r + o.value, l = u(r), f = d(s), p = Math.max(0, l - n), m = Math.min(e - 1, f + n), h = [];
66
+ for (let e = p; e <= m; e++) {
67
+ let t = c(e);
68
+ h.push({
69
+ index: e,
70
+ start: t,
71
+ size: c(e + 1) - t
72
+ });
73
+ }
74
+ return h;
51
75
  });
52
- function f(n, r = "auto") {
76
+ function p(n, r = "auto") {
53
77
  let i = e.scrollElement.value;
54
78
  if (!i) return;
55
79
  let a = t();
56
80
  if (a === 0) return;
57
- let o = Math.max(0, Math.min(a - 1, n | 0)), l = s.value, u = l[o], d = l[o + 1], f = i.clientHeight, p = i.scrollTop, m = p + f, h = p;
58
- r === "start" ? h = u : r === "end" ? h = d - f : r === "center" ? h = u - (f - (d - u)) / 2 : u < p ? h = u : d > m && (h = d - f);
59
- let g = Math.max(0, c.value - f);
60
- i.scrollTop = Math.max(0, Math.min(h, g));
81
+ let o = Math.max(0, Math.min(a - 1, n | 0)), s = c(o), u = c(o + 1), d = i.clientHeight, f = i.scrollTop, p = f + d, m = f;
82
+ r === "start" ? m = s : r === "end" ? m = u - d : r === "center" ? m = s - (d - (u - s)) / 2 : s < f ? m = s : u > p && (m = u - d);
83
+ let h = Math.max(0, l.value - d);
84
+ i.scrollTop = Math.max(0, Math.min(m, h));
61
85
  }
62
- let p = null;
63
- function m(e) {
86
+ let m = null;
87
+ function h(e) {
64
88
  o.value = e.clientHeight, a.value = e.scrollTop;
65
89
  let t = () => {
66
90
  a.value = e.scrollTop, o.value = e.clientHeight;
@@ -74,24 +98,24 @@ function ue(e) {
74
98
  let n = () => {
75
99
  o.value = e.clientHeight;
76
100
  };
77
- window.addEventListener("resize", n), p = () => {
101
+ window.addEventListener("resize", n), m = () => {
78
102
  e.removeEventListener("scroll", t), window.removeEventListener("resize", n);
79
103
  };
80
104
  return;
81
105
  }
82
- p = () => {
106
+ m = () => {
83
107
  e.removeEventListener("scroll", t), n?.disconnect();
84
108
  };
85
109
  }
86
110
  return G(e.scrollElement, (e) => {
87
- p?.(), p = null, e && m(e);
111
+ m?.(), m = null, e && h(e);
88
112
  }, { immediate: !0 }), C(() => {
89
- p?.(), p = null;
113
+ m?.(), m = null;
90
114
  }), {
91
- virtualRows: d,
92
- totalSize: c,
93
- scrollToIndex: f,
94
- offsetFor: (e) => s.value[Math.max(0, Math.min(e, s.value.length - 1))] ?? 0
115
+ virtualRows: f,
116
+ totalSize: l,
117
+ scrollToIndex: p,
118
+ offsetFor: (e) => c(e)
95
119
  };
96
120
  }
97
121
  //#endregion
@@ -7151,7 +7175,7 @@ var zc = /* @__PURE__ */ new WeakMap(), Bc = {
7151
7175
  setup(t, { expose: n, emit: c }) {
7152
7176
  let d = t, f = V(t, "modelValue"), p = c, m = U("hostRef"), h = U("listRef"), g = ue({
7153
7177
  count: () => d.virtual ? R.value.length : 0,
7154
- itemSize: (e) => {
7178
+ itemSize: () => (e) => {
7155
7179
  let t = R.value[e];
7156
7180
  return t && t.kind === "heading" ? d.groupHeadingHeight : d.itemHeight;
7157
7181
  },
@@ -9451,46 +9475,56 @@ var xd = /* @__PURE__ */ d({
9451
9475
  hidden: h.value !== e.id
9452
9476
  }, [_(e) ? (E(), i(N(() => e.contentSlot), { key: 0 })) : a("", !0)], 10, Dd))), 128))])], 2));
9453
9477
  }
9454
- }), [["__scopeId", "data-v-1c87f0d3"]]), kd = "application/x-coar-tree-node", Ad = Symbol("coar-tree-node-slot"), jd = Symbol("coar-tree-row-id"), Md = Symbol("coar-tree-rename"), Nd = [
9478
+ }), [["__scopeId", "data-v-1c87f0d3"]]), kd = {
9479
+ expand: "Expand",
9480
+ collapse: "Collapse",
9481
+ loading: "Loading children",
9482
+ retry: "Retry",
9483
+ loadingNode: (e) => `Loading ${e}…`,
9484
+ loadError: (e) => `Failed to load ${e}.`,
9485
+ pickedUp: (e) => `Picked up ${e}. Move to a row, then Ctrl+V to drop or Escape to cancel.`,
9486
+ moved: (e, t, n) => `Moved ${e} ${n === "inside" ? "into" : n} ${t}.`,
9487
+ moveBlocked: (e) => `Can't drop ${e} there.`,
9488
+ moveCancelled: "Move cancelled."
9489
+ }, Ad = "application/x-coar-tree-node", jd = Symbol("coar-tree-node-slot"), Md = Symbol("coar-tree-row-id"), Nd = Symbol("coar-tree-row-state"), Pd = Symbol("coar-tree-rename"), Fd = [
9455
9490
  "aria-expanded",
9456
9491
  "aria-selected",
9492
+ "aria-disabled",
9493
+ "aria-checked",
9457
9494
  "aria-level",
9458
9495
  "aria-posinset",
9459
9496
  "aria-setsize",
9497
+ "aria-busy",
9460
9498
  "tabindex",
9461
9499
  "draggable",
9462
9500
  "data-node-id"
9463
- ], Pd = {
9501
+ ], Id = {
9464
9502
  key: 0,
9465
9503
  class: "coar-tree-node__drop-line coar-tree-node__drop-line--top"
9466
- }, Fd = {
9504
+ }, Ld = {
9467
9505
  key: 1,
9468
9506
  class: "coar-tree-node__drop-line coar-tree-node__drop-line--bottom"
9469
- }, Id = ["aria-label"], Ld = {
9507
+ }, Rd = ["aria-label"], zd = {
9470
9508
  key: 3,
9471
9509
  class: "coar-tree-node__chevron-spacer",
9472
9510
  "aria-hidden": "true"
9473
- }, Rd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
9511
+ }, Bd = "var(--coar-tree-icon-size, 12px)", Vd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
9474
9512
  __name: "CoarTreeNode",
9475
9513
  props: {
9476
9514
  node: {},
9477
9515
  nodeId: {},
9478
9516
  depth: {},
9479
9517
  isExpandable: { type: Boolean },
9480
- isExpanded: { type: Boolean },
9481
- isSelected: { type: Boolean },
9482
- isFocused: { type: Boolean },
9483
- isRenaming: { type: Boolean },
9484
9518
  draggable: { type: Boolean },
9485
9519
  posInSet: {},
9486
- setSize: {},
9487
- dropIndicator: {},
9488
- fileDropActive: { type: Boolean }
9520
+ setSize: {}
9489
9521
  },
9490
9522
  emits: [
9491
9523
  "row-click",
9492
9524
  "row-dblclick",
9493
9525
  "row-context-menu",
9526
+ "row-check-toggle",
9527
+ "row-retry",
9494
9528
  "chevron-click",
9495
9529
  "row-dragstart",
9496
9530
  "row-dragend",
@@ -9500,84 +9534,192 @@ var xd = /* @__PURE__ */ d({
9500
9534
  ],
9501
9535
  setup(e, { emit: t }) {
9502
9536
  let n = e;
9503
- D(jd, n.nodeId);
9504
- let s = t, c = A(null), l = m(Ad);
9505
- if (!l) throw Error("CoarTreeNode must be rendered inside a CoarTree.");
9506
- let d = r(() => ({
9537
+ D(Md, n.nodeId);
9538
+ let c = m(Nd);
9539
+ if (!c) throw Error("CoarTreeNode must be rendered inside a CoarTree.");
9540
+ let l = r(() => c.expandedIds.value.has(n.nodeId)), u = r(() => c.selectedIds.value.has(n.nodeId)), d = r(() => c.checkedIds.value.has(n.nodeId)), f = r(() => c.indeterminateIds.value.has(n.nodeId)), p = r(() => c.checkboxMode.value), h = r(() => c.matchedIds.value.has(n.nodeId)), g = r(() => c.matchAncestorIds.value.has(n.nodeId)), _ = r(() => c.disabledIds.value.has(n.nodeId)), v = r(() => c.focusedId.value === n.nodeId), y = r(() => c.renamingId.value === n.nodeId), x = r(() => c.dropTargetId.value === n.nodeId ? c.dropPosition.value : null), C = r(() => c.fileDropTargetId.value === n.nodeId), w = r(() => c.loadingIds.value.has(n.nodeId)), T = r(() => c.erroredIds.value.has(n.nodeId)), O = r(() => w.value && !c.hideLoadingSpinner.value), k = r(() => T.value && !w.value && !c.hideLoadingSpinner.value), j = t, M = A(null), P = m(jd);
9541
+ if (!P) throw Error("CoarTreeNode must be rendered inside a CoarTree.");
9542
+ let F = r(() => ({
9507
9543
  node: n.node,
9508
9544
  depth: n.depth,
9509
- isExpanded: n.isExpanded,
9510
- isSelected: n.isSelected,
9511
- isFocused: n.isFocused,
9545
+ isExpanded: l.value,
9546
+ isSelected: u.value,
9547
+ isChecked: d.value,
9548
+ isIndeterminate: f.value,
9549
+ isFocused: v.value,
9512
9550
  isExpandable: n.isExpandable,
9513
- isRenaming: n.isRenaming
9551
+ isMatch: h.value,
9552
+ isMatchAncestor: g.value,
9553
+ isDisabled: _.value,
9554
+ isRenaming: y.value,
9555
+ isLoading: w.value,
9556
+ hasError: T.value
9514
9557
  }));
9515
- function f() {
9516
- return l(d.value);
9558
+ function I() {
9559
+ return P(F.value);
9517
9560
  }
9518
- function p(e) {
9519
- e.stopPropagation(), s("chevron-click", n.node);
9561
+ function L(e) {
9562
+ e.stopPropagation(), k.value ? j("row-retry", n.node) : j("chevron-click", n.node);
9520
9563
  }
9521
9564
  return (t, n) => (E(), o("div", {
9522
9565
  ref_key: "rowEl",
9523
- ref: c,
9566
+ ref: M,
9524
9567
  class: b(["coar-tree-node__row", {
9525
- "coar-tree-node__row--selected": e.isSelected,
9526
- "coar-tree-node__row--focused": e.isFocused,
9527
- "coar-tree-node__row--drop-inside": e.dropIndicator === "inside",
9528
- "coar-tree-node__row--file-drop": e.fileDropActive
9568
+ "coar-tree-node__row--selected": u.value,
9569
+ "coar-tree-node__row--focused": v.value,
9570
+ "coar-tree-node__row--disabled": _.value,
9571
+ "coar-tree-node__row--drop-inside": x.value === "inside",
9572
+ "coar-tree-node__row--file-drop": C.value
9529
9573
  }]),
9530
- style: S({ paddingLeft: `${e.depth * 14 + 8}px` }),
9574
+ style: S({ paddingLeft: `calc(var(--coar-tree-indent-base, 8px) + ${e.depth} * var(--coar-tree-indent, 14px))` }),
9531
9575
  role: "treeitem",
9532
- "aria-expanded": e.isExpandable ? e.isExpanded : void 0,
9533
- "aria-selected": e.isSelected,
9576
+ "aria-expanded": e.isExpandable ? l.value : void 0,
9577
+ "aria-selected": u.value,
9578
+ "aria-disabled": _.value ? "true" : void 0,
9579
+ "aria-checked": p.value ? f.value ? "mixed" : d.value : void 0,
9534
9580
  "aria-level": e.depth + 1,
9535
9581
  "aria-posinset": e.posInSet,
9536
9582
  "aria-setsize": e.setSize,
9537
- tabindex: e.isFocused ? 0 : -1,
9583
+ "aria-busy": w.value ? "true" : void 0,
9584
+ tabindex: v.value ? 0 : -1,
9538
9585
  draggable: e.draggable,
9539
9586
  "data-node-id": e.nodeId,
9540
- onClick: n[0] ||= (t) => s("row-click", e.node, t),
9541
- onDblclick: n[1] ||= (t) => s("row-dblclick", e.node, t),
9542
- onContextmenu: n[2] ||= (t) => s("row-context-menu", e.node, t),
9543
- onDragstart: n[3] ||= (t) => s("row-dragstart", e.node, t),
9544
- onDragend: n[4] ||= (t) => s("row-dragend", e.node),
9545
- onDragover: n[5] ||= (t) => c.value && s("row-dragover", e.node, c.value, t),
9546
- onDragleave: n[6] ||= (t) => s("row-dragleave", e.node, t),
9547
- onDrop: n[7] ||= (t) => c.value && s("row-drop", e.node, c.value, t)
9587
+ onClick: n[2] ||= (t) => j("row-click", e.node, t),
9588
+ onDblclick: n[3] ||= (t) => j("row-dblclick", e.node, t),
9589
+ onContextmenu: n[4] ||= (t) => j("row-context-menu", e.node, t),
9590
+ onDragstart: n[5] ||= (t) => j("row-dragstart", e.node, t),
9591
+ onDragend: n[6] ||= (t) => j("row-dragend", e.node),
9592
+ onDragover: n[7] ||= (t) => M.value && j("row-dragover", e.node, M.value, t),
9593
+ onDragleave: n[8] ||= (t) => j("row-dragleave", e.node, t),
9594
+ onDrop: n[9] ||= (t) => M.value && j("row-drop", e.node, M.value, t)
9548
9595
  }, [
9549
- e.dropIndicator === "before" ? (E(), o("span", Pd)) : a("", !0),
9550
- e.dropIndicator === "after" ? (E(), o("span", Fd)) : a("", !0),
9596
+ x.value === "before" ? (E(), o("span", Id)) : a("", !0),
9597
+ x.value === "after" ? (E(), o("span", Ld)) : a("", !0),
9551
9598
  e.isExpandable ? (E(), o("button", {
9552
9599
  key: 2,
9553
9600
  type: "button",
9554
- class: "coar-tree-node__chevron",
9601
+ class: b(["coar-tree-node__chevron", { "coar-tree-node__chevron--error": k.value }]),
9555
9602
  tabindex: "-1",
9556
- "aria-label": e.isExpanded ? "Collapse" : "Expand",
9557
- onClick: p
9558
- }, [u(Q, {
9559
- name: e.isExpanded ? "chevron-down" : "chevron-right",
9560
- size: "xs"
9561
- }, null, 8, ["name"])], 8, Id)) : (E(), o("span", Ld)),
9562
- (E(), i(N(f)))
9563
- ], 46, Nd));
9603
+ "aria-label": k.value ? z(c).labels.value.retry : l.value ? z(c).labels.value.collapse : z(c).labels.value.expand,
9604
+ onClick: L
9605
+ }, [O.value ? (E(), i(zo, {
9606
+ key: 0,
9607
+ size: "xs",
9608
+ label: z(c).labels.value.loading
9609
+ }, null, 8, ["label"])) : k.value ? (E(), i(Q, {
9610
+ key: 1,
9611
+ name: "rotate-ccw",
9612
+ size: Bd
9613
+ })) : (E(), i(Q, {
9614
+ key: 2,
9615
+ name: l.value ? "chevron-down" : "chevron-right",
9616
+ size: Bd
9617
+ }, null, 8, ["name"]))], 10, Rd)) : (E(), o("span", zd)),
9618
+ p.value ? (E(), o("span", {
9619
+ key: 4,
9620
+ class: b(["coar-tree-node__checkbox", {
9621
+ "coar-tree-node__checkbox--checked": d.value,
9622
+ "coar-tree-node__checkbox--indeterminate": f.value
9623
+ }]),
9624
+ "aria-hidden": "true",
9625
+ onClick: n[0] ||= te((t) => j("row-check-toggle", e.node), ["stop"]),
9626
+ onDblclick: n[1] ||= te(() => {}, ["stop"])
9627
+ }, [...n[10] ||= [s("svg", {
9628
+ class: "coar-tree-node__check",
9629
+ viewBox: "0 0 16 16",
9630
+ fill: "none",
9631
+ xmlns: "http://www.w3.org/2000/svg"
9632
+ }, [s("path", {
9633
+ d: "M13.5 4.5L6.5 11.5L3 8",
9634
+ stroke: "currentColor",
9635
+ "stroke-width": "2",
9636
+ "stroke-linecap": "round",
9637
+ "stroke-linejoin": "round"
9638
+ })], -1), s("svg", {
9639
+ class: "coar-tree-node__minus",
9640
+ viewBox: "0 0 16 16",
9641
+ fill: "none",
9642
+ xmlns: "http://www.w3.org/2000/svg"
9643
+ }, [s("path", {
9644
+ d: "M4 8H12",
9645
+ stroke: "currentColor",
9646
+ "stroke-width": "2",
9647
+ "stroke-linecap": "round"
9648
+ })], -1)]], 34)) : a("", !0),
9649
+ (E(), i(N(I)))
9650
+ ], 46, Fd));
9564
9651
  }
9565
- }), [["__scopeId", "data-v-bbca76fd"]]);
9652
+ }), [["__scopeId", "data-v-afb98c82"]]);
9566
9653
  //#endregion
9567
9654
  //#region src/components/tree/tree-dnd.ts
9568
- function zd(e, t, n) {
9655
+ function Hd(e, t, n) {
9569
9656
  let r = e.clientY - t.top, i = t.height > 0 ? r / t.height : 0;
9570
9657
  return n.expandable ? i < .25 ? "before" : i > .75 ? "after" : "inside" : i < .5 ? "before" : "after";
9571
9658
  }
9572
- function Bd(e) {
9659
+ function Ud(e) {
9573
9660
  return !!e && Array.from(e.types).includes("Files");
9574
9661
  }
9575
9662
  //#endregion
9663
+ //#region src/components/tree/internal/selection.ts
9664
+ function Wd(e, t, n) {
9665
+ let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map(), a = [], o = (e, s) => {
9666
+ for (let c of e) {
9667
+ let e = t(c);
9668
+ a.push(e), i.set(e, s);
9669
+ let l = n(c);
9670
+ Array.isArray(l) && l.length ? (r.set(e, l.map((e) => t(e))), o(l, e)) : r.set(e, []);
9671
+ }
9672
+ };
9673
+ return o(e, null), {
9674
+ children: r,
9675
+ parent: i,
9676
+ order: a
9677
+ };
9678
+ }
9679
+ function Gd(e, t, n, r) {
9680
+ let i = new Set(e), a = [t];
9681
+ for (; a.length;) {
9682
+ let e = a.pop();
9683
+ n ? i.add(e) : i.delete(e);
9684
+ let t = r.children.get(e);
9685
+ if (t) for (let e of t) a.push(e);
9686
+ }
9687
+ let o = r.parent.get(t) ?? null;
9688
+ for (; o !== null;) {
9689
+ let e = r.children.get(o) ?? [];
9690
+ e.length > 0 && e.every((e) => i.has(e)) ? i.add(o) : i.delete(o), o = r.parent.get(o) ?? null;
9691
+ }
9692
+ return i;
9693
+ }
9694
+ function Kd(e, t) {
9695
+ let n = new Set(e), r = /* @__PURE__ */ new Map(), i = !1;
9696
+ for (let e of t.order) {
9697
+ let a = t.parent.get(e) ?? null, o = a !== null && r.get(a) === !0 || n.has(e);
9698
+ r.set(e, o), o && !n.has(e) && (n.add(e), i = !0);
9699
+ }
9700
+ return i ? n : e;
9701
+ }
9702
+ function qd(e, t) {
9703
+ let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Map();
9704
+ for (let i = t.order.length - 1; i >= 0; i--) {
9705
+ let a = t.order[i], o = t.children.get(a) ?? [], s = !1;
9706
+ for (let e of o) r.get(e) && (s = !0);
9707
+ let c = e.has(a);
9708
+ !c && s && n.add(a), r.set(a, c || s);
9709
+ }
9710
+ return n;
9711
+ }
9712
+ //#endregion
9576
9713
  //#region src/components/tree/CoarTree.vue?vue&type=script&setup=true&lang.ts
9577
- var Vd = {
9578
- key: 1,
9579
- class: "coar-tree__empty"
9580
- }, Hd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
9714
+ var Jd = {
9715
+ class: "coar-tree__sr-live",
9716
+ role: "status",
9717
+ "aria-live": "polite"
9718
+ }, Yd = [
9719
+ "aria-label",
9720
+ "aria-labelledby",
9721
+ "aria-multiselectable"
9722
+ ], Xd = ["aria-label"], Zd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
9581
9723
  __name: "CoarTree",
9582
9724
  props: /* @__PURE__ */ _({
9583
9725
  builder: { default: void 0 },
@@ -9598,6 +9740,15 @@ var Vd = {
9598
9740
  type: Function,
9599
9741
  default: void 0
9600
9742
  },
9743
+ isDisabled: {
9744
+ type: Function,
9745
+ default: void 0
9746
+ },
9747
+ loadChildren: {
9748
+ type: Function,
9749
+ default: void 0
9750
+ },
9751
+ maxConcurrentLoads: { default: 0 },
9601
9752
  draggable: {
9602
9753
  type: [Boolean, Function],
9603
9754
  default: !1
@@ -9606,6 +9757,14 @@ var Vd = {
9606
9757
  type: Function,
9607
9758
  default: void 0
9608
9759
  },
9760
+ getDragImage: {
9761
+ type: Function,
9762
+ default: void 0
9763
+ },
9764
+ activateOnClick: {
9765
+ type: Boolean,
9766
+ default: !1
9767
+ },
9609
9768
  acceptsFiles: {
9610
9769
  type: Boolean,
9611
9770
  default: !1
@@ -9615,70 +9774,105 @@ var Vd = {
9615
9774
  type: [Boolean, Object],
9616
9775
  default: !1
9617
9776
  },
9777
+ selectionMode: { default: "single" },
9778
+ checkStrictly: {
9779
+ type: Boolean,
9780
+ default: !1
9781
+ },
9782
+ density: { default: "m" },
9783
+ ariaLabel: { default: void 0 },
9784
+ ariaLabelledby: { default: void 0 },
9785
+ labels: { default: void 0 },
9786
+ matchedIds: { default: void 0 },
9787
+ filter: {
9788
+ type: Boolean,
9789
+ default: !1
9790
+ },
9791
+ filterMode: { default: "strict" },
9618
9792
  renamable: {
9619
9793
  type: Boolean,
9620
9794
  default: !1
9795
+ },
9796
+ hideLoadingSpinner: {
9797
+ type: Boolean,
9798
+ default: !1
9621
9799
  }
9622
9800
  }, {
9623
9801
  expanded: { default: () => /* @__PURE__ */ new Set() },
9624
9802
  expandedModifiers: {},
9625
9803
  selected: { default: null },
9626
- selectedModifiers: {}
9804
+ selectedModifiers: {},
9805
+ selectedIds: { default: () => /* @__PURE__ */ new Set() },
9806
+ selectedIdsModifiers: {},
9807
+ checkedIds: { default: () => /* @__PURE__ */ new Set() },
9808
+ checkedIdsModifiers: {}
9627
9809
  }),
9628
9810
  emits: /* @__PURE__ */ _([
9629
9811
  "activate",
9812
+ "select",
9630
9813
  "context-menu",
9631
9814
  "files-drop",
9632
9815
  "node-move",
9633
9816
  "rename",
9634
- "rename-cancel"
9635
- ], ["update:expanded", "update:selected"]),
9817
+ "rename-cancel",
9818
+ "load-error"
9819
+ ], [
9820
+ "update:expanded",
9821
+ "update:selected",
9822
+ "update:selectedIds",
9823
+ "update:checkedIds"
9824
+ ]),
9636
9825
  setup(t, { expose: n, emit: c }) {
9637
- let l = t, d = V(t, "expanded"), f = V(t, "selected"), p = c, m = H();
9638
- D(Ad, (e) => m.default?.(e) ?? []);
9639
- let h = A(null), g = A(""), _ = 0;
9640
- function v() {
9641
- return h.value ? B.value.find((e) => O.value.getId(e.node) === h.value)?.node ?? null : null;
9826
+ let l = t, d = V(t, "expanded"), f = V(t, "selected"), p = V(t, "selectedIds"), m = V(t, "checkedIds"), h = c, g = H();
9827
+ D(jd, (e) => g.default?.(e) ?? []);
9828
+ let _ = A(null), v = A(""), x = 0;
9829
+ function T() {
9830
+ if (!_.value) return null;
9831
+ let e = be.value.get(_.value);
9832
+ return e === void 0 ? null : ye.value[e]?.node ?? null;
9642
9833
  }
9643
- function x() {
9644
- let e = v(), t = g.value.trim();
9645
- if (h.value = null, g.value = "", e) {
9834
+ function O() {
9835
+ let e = T(), t = v.value.trim();
9836
+ if (_.value = null, v.value = "", e) {
9646
9837
  if (!t) {
9647
- p("rename-cancel", e);
9838
+ h("rename-cancel", e), l.builder?.state.onRenameCancel?.(e);
9648
9839
  return;
9649
9840
  }
9650
- p("rename", {
9841
+ h("rename", {
9842
+ node: e,
9843
+ newName: t
9844
+ }), l.builder?.state.onRename?.({
9651
9845
  node: e,
9652
9846
  newName: t
9653
9847
  });
9654
9848
  }
9655
9849
  }
9656
- function T() {
9657
- let e = v();
9658
- h.value = null, g.value = "", e && p("rename-cancel", e);
9659
- }
9660
- D(Md, {
9661
- renamingId: h,
9662
- buffer: g,
9663
- commit: x,
9664
- cancel: T,
9850
+ function k() {
9851
+ let e = T();
9852
+ _.value = null, v.value = "", e && (h("rename-cancel", e), l.builder?.state.onRenameCancel?.(e));
9853
+ }
9854
+ D(Pd, {
9855
+ renamingId: _,
9856
+ buffer: v,
9857
+ commit: O,
9858
+ cancel: k,
9665
9859
  onFocus: () => {
9666
- _ = Date.now();
9860
+ x = Date.now();
9667
9861
  },
9668
9862
  onBlur: () => {
9669
- if (Date.now() - _ < 200) {
9670
- let e = h.value;
9863
+ if (Date.now() - x < 200) {
9864
+ let e = _.value;
9671
9865
  if (!e) return;
9672
9866
  y(() => {
9673
- let t = (ee.value ?? te.value)?.querySelector(`[data-rename-id="${CSS.escape(e)}"]`);
9867
+ let t = (Ee.value ?? De.value)?.querySelector(`[data-rename-id="${CSS.escape(e)}"]`);
9674
9868
  t?.focus(), t?.select();
9675
9869
  });
9676
9870
  return;
9677
9871
  }
9678
- x();
9872
+ O();
9679
9873
  }
9680
9874
  });
9681
- let O = r(() => {
9875
+ let N = r(() => {
9682
9876
  if (l.builder) {
9683
9877
  let e = l.builder.state;
9684
9878
  return {
@@ -9687,11 +9881,27 @@ var Vd = {
9687
9881
  getChildren: e.getChildren,
9688
9882
  getLabel: e.getLabel,
9689
9883
  isExpandable: e.isExpandable,
9884
+ isDisabled: e.isDisabled,
9885
+ loadChildren: e.loadChildren,
9886
+ maxConcurrentLoads: R(e.maxConcurrentLoads),
9690
9887
  draggable: R(e.draggable),
9691
9888
  canDrop: e.canDrop,
9889
+ getDragImage: e.getDragImage,
9890
+ activateOnClick: R(e.activateOnClick),
9692
9891
  acceptsFiles: R(e.acceptsFiles),
9693
9892
  autoExpandDelay: R(e.autoExpandDelay),
9694
- virtualize: R(e.virtualize)
9893
+ virtualize: R(e.virtualize),
9894
+ hideLoadingSpinner: R(e.hideLoadingSpinner),
9895
+ renamable: R(e.renamable),
9896
+ selectionMode: R(e.selectionMode),
9897
+ checkStrictly: R(e.checkStrictly),
9898
+ density: R(e.density),
9899
+ ariaLabel: R(e.ariaLabel),
9900
+ ariaLabelledby: R(e.ariaLabelledby),
9901
+ labels: R(e.labels),
9902
+ matchedIds: R(e.matchedIds),
9903
+ filter: R(e.filter),
9904
+ filterMode: R(e.filterMode)
9695
9905
  };
9696
9906
  }
9697
9907
  return {
@@ -9702,96 +9912,194 @@ var Vd = {
9702
9912
  getChildren: l.getChildren,
9703
9913
  getLabel: l.getLabel,
9704
9914
  isExpandable: l.isExpandable,
9915
+ isDisabled: l.isDisabled,
9916
+ loadChildren: l.loadChildren,
9917
+ maxConcurrentLoads: l.maxConcurrentLoads,
9705
9918
  draggable: l.draggable,
9706
9919
  canDrop: l.canDrop,
9920
+ getDragImage: l.getDragImage,
9921
+ activateOnClick: l.activateOnClick,
9707
9922
  acceptsFiles: l.acceptsFiles,
9708
9923
  autoExpandDelay: l.autoExpandDelay,
9709
- virtualize: l.virtualize
9924
+ virtualize: l.virtualize,
9925
+ hideLoadingSpinner: l.hideLoadingSpinner,
9926
+ renamable: l.renamable,
9927
+ selectionMode: l.selectionMode,
9928
+ checkStrictly: l.checkStrictly,
9929
+ density: l.density,
9930
+ ariaLabel: l.ariaLabel,
9931
+ ariaLabelledby: l.ariaLabelledby,
9932
+ labels: l.labels,
9933
+ matchedIds: l.matchedIds,
9934
+ filter: l.filter,
9935
+ filterMode: l.filterMode
9710
9936
  };
9711
- }), k = r({
9937
+ }), P = r(() => !!N.value.renamable), L = r(() => ({
9938
+ ...kd,
9939
+ ...N.value.labels ?? {}
9940
+ })), B = r({
9712
9941
  get: () => l.builder ? l.builder.state.expanded.value : d.value,
9713
9942
  set: (e) => {
9714
9943
  let t = l.builder;
9715
9944
  t ? t.state.expanded.value = e : d.value = e;
9716
9945
  }
9717
- }), N = r({
9946
+ }), W = r({
9718
9947
  get: () => l.builder ? l.builder.state.selected.value : f.value,
9719
9948
  set: (e) => {
9720
9949
  let t = l.builder;
9721
9950
  t ? t.state.selected.value = e : f.value = e;
9722
9951
  }
9952
+ }), K = r({
9953
+ get: () => l.builder ? l.builder.state.selectedIds.value : p.value,
9954
+ set: (e) => {
9955
+ let t = l.builder;
9956
+ t ? t.state.selectedIds.value = e : p.value = e;
9957
+ }
9958
+ }), J = r({
9959
+ get: () => l.builder ? l.builder.state.checkedIds.value : m.value,
9960
+ set: (e) => {
9961
+ let t = l.builder;
9962
+ t ? t.state.checkedIds.value = e : m.value = e;
9963
+ }
9964
+ }), ee = /* @__PURE__ */ new Set(), te = r(() => N.value.selectionMode ?? "single"), Y = r(() => te.value === "checkbox"), ne = r(() => te.value === "multiple" || te.value === "checkbox"), re = r(() => !!N.value.checkStrictly), ie = r(() => te.value === "single" ? W.value ? new Set([W.value]) : ee : K.value), ae = r(() => Y.value ? Wd(N.value.nodes, N.value.getId, _e) : null), oe = r(() => Y.value && !re.value && ae.value ? qd(J.value, ae.value) : ee), se = r(() => {
9965
+ if (!N.value.isDisabled) return ee;
9966
+ let e = /* @__PURE__ */ new Set();
9967
+ for (let t of ye.value) ve(t.node) && e.add(t.id);
9968
+ return e;
9969
+ }), ce = r(() => N.value.matchedIds ?? ee), X = r(() => ce.value.size ? qd(ce.value, Wd(N.value.nodes, N.value.getId, _e)) : ee), le = r(() => !!N.value.filter && ce.value.size > 0), de = r(() => N.value.filterMode === "lenient");
9970
+ function fe(e, t) {
9971
+ let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = (a, o) => {
9972
+ let s = N.value.getId(a), c = e.has(s), l = !1, u = !1, d = _e(a);
9973
+ if (d && d.length) for (let e of d) {
9974
+ let t = i(e, o || c);
9975
+ t.matchedHere && (l = !0), t.kept && (u = !0);
9976
+ }
9977
+ let f = c || l || t && o;
9978
+ return f && n.add(s), f && u && r.add(s), {
9979
+ matchedHere: c || l,
9980
+ kept: f
9981
+ };
9982
+ };
9983
+ for (let e of N.value.nodes) i(e, !1);
9984
+ return {
9985
+ keep: n,
9986
+ expand: r
9987
+ };
9988
+ }
9989
+ let pe = r(() => le.value ? fe(ce.value, de.value) : null), me = r(() => pe.value?.keep ?? null);
9990
+ G([
9991
+ ce,
9992
+ le,
9993
+ de
9994
+ ], () => {
9995
+ let e = ce.value;
9996
+ if (!e.size) return;
9997
+ let t = new Set(B.value), n = !1, r = (e) => {
9998
+ t.has(e) || (t.add(e), n = !0);
9999
+ };
10000
+ if (le.value && pe.value) for (let e of pe.value.expand) r(e);
10001
+ else for (let t of e) for (let e of tt(t)) r(e);
10002
+ n && (B.value = t);
10003
+ }, { immediate: !0 }), G(ae, (e) => {
10004
+ if (!e || re.value) return;
10005
+ let t = Kd(J.value, e);
10006
+ t !== J.value && (J.value = t);
9723
10007
  });
9724
- function P(e) {
9725
- let t = O.value.isExpandable;
10008
+ function he(e) {
10009
+ let t = N.value.isExpandable;
9726
10010
  if (t) return t(e);
9727
- let n = O.value.getChildren;
10011
+ let n = N.value.getChildren;
9728
10012
  return n ? Array.isArray(n(e)) : !1;
9729
10013
  }
9730
- function I(e) {
9731
- let t = O.value.draggable;
10014
+ function ge(e) {
10015
+ if (ve(e)) return !1;
10016
+ let t = N.value.draggable;
9732
10017
  return typeof t == "function" ? t(e) : !!t;
9733
10018
  }
9734
- function L(e) {
9735
- return O.value.getChildren ? O.value.getChildren(e) : void 0;
10019
+ function _e(e) {
10020
+ return N.value.getChildren ? N.value.getChildren(e) : void 0;
9736
10021
  }
9737
- let B = r(() => {
9738
- let e = [], t = (n, r, i) => {
9739
- for (let a = 0; a < n.length; a++) {
9740
- let o = n[a];
10022
+ function ve(e) {
10023
+ return N.value.isDisabled ? N.value.isDisabled(e) : !1;
10024
+ }
10025
+ let ye = r(() => {
10026
+ let e = [], t = me.value, n = (r, i, a) => {
10027
+ let o = t ? r.filter((e) => t.has(N.value.getId(e))) : r;
10028
+ for (let t = 0; t < o.length; t++) {
10029
+ let r = o[t], s = N.value.getId(r), c = he(r);
9741
10030
  if (e.push({
9742
- node: o,
9743
- depth: r,
9744
- parentId: i,
9745
- posInSet: a + 1,
9746
- setSize: n.length
9747
- }), !P(o) || !k.value.has(O.value.getId(o))) continue;
9748
- let s = L(o);
9749
- s && s.length && t(s, r + 1, O.value.getId(o));
10031
+ node: r,
10032
+ id: s,
10033
+ depth: i,
10034
+ parentId: a,
10035
+ posInSet: t + 1,
10036
+ setSize: o.length,
10037
+ isExpandable: c,
10038
+ draggable: ge(r)
10039
+ }), !c || !B.value.has(s)) continue;
10040
+ let l = _e(r);
10041
+ l && l.length && n(l, i + 1, s);
9750
10042
  }
9751
10043
  };
9752
- return t(O.value.nodes, 0, null), e;
9753
- }), W = A(null);
9754
- G(B, (e) => {
10044
+ return n(N.value.nodes, 0, null), e;
10045
+ }), be = r(() => {
10046
+ let e = /* @__PURE__ */ new Map(), t = ye.value;
10047
+ for (let n = 0; n < t.length; n++) {
10048
+ let r = t[n].id;
10049
+ e.has(r) || e.set(r, n);
10050
+ }
10051
+ return e;
10052
+ }), Ce = A(null);
10053
+ G(ye, (e, t) => {
9755
10054
  if (!e.length) {
9756
- W.value = null;
10055
+ Ce.value = null;
9757
10056
  return;
9758
10057
  }
9759
- let t = new Set(e.map((e) => O.value.getId(e.node)));
9760
- if (!(W.value && t.has(W.value))) {
9761
- if (N.value && t.has(N.value)) {
9762
- W.value = N.value;
10058
+ let n = be.value;
10059
+ if (!(Ce.value && n.has(Ce.value))) {
10060
+ if (Ce.value && t) {
10061
+ let r = t.findIndex((e) => e.id === Ce.value);
10062
+ if (r >= 0) {
10063
+ let i = t[r].parentId, a = e[Math.min(r, e.length - 1)];
10064
+ if (a && !ve(a.node)) {
10065
+ Ce.value = a.id;
10066
+ return;
10067
+ }
10068
+ if (i && n.has(i)) {
10069
+ Ce.value = i;
10070
+ return;
10071
+ }
10072
+ }
10073
+ }
10074
+ if (W.value && n.has(W.value)) {
10075
+ Ce.value = W.value;
9763
10076
  return;
9764
10077
  }
9765
- W.value = O.value.getId(e[0].node);
10078
+ Ce.value = e[0].id;
9766
10079
  }
9767
10080
  }, {
9768
10081
  immediate: !0,
9769
10082
  flush: "post"
9770
10083
  });
9771
- let K = r(() => {
9772
- let e = O.value.virtualize;
10084
+ let we = r(() => {
10085
+ let e = N.value.virtualize;
9773
10086
  if (!e) return null;
9774
10087
  let t = e === !0 ? {} : e;
9775
10088
  return {
9776
10089
  itemSize: t.itemSize ?? 28,
9777
10090
  overscan: t.overscan ?? 5
9778
10091
  };
9779
- }), J = r(() => K.value !== null), ee = U("scrollEl"), te = U("rootEl"), Y = ue({
9780
- count: () => J.value ? B.value.length : 0,
9781
- itemSize: (e) => {
9782
- let t = K.value;
9783
- if (!t) return 0;
9784
- let n = t.itemSize;
9785
- return typeof n == "function" ? n(e) : n;
9786
- },
9787
- overscan: () => K.value?.overscan ?? 5,
9788
- scrollElement: ee
9789
- }), ne = r(() => {
9790
- if (!J.value) return B.value.map((e) => ({
10092
+ }), Te = r(() => we.value !== null), Ee = U("scrollEl"), De = U("rootEl"), Oe = ue({
10093
+ count: () => Te.value ? ye.value.length : 0,
10094
+ itemSize: () => we.value?.itemSize ?? 28,
10095
+ overscan: () => we.value?.overscan ?? 5,
10096
+ scrollElement: Ee
10097
+ }), ke = r(() => {
10098
+ if (!Te.value) return ye.value.map((e) => ({
9791
10099
  row: e,
9792
10100
  virtual: null
9793
10101
  }));
9794
- let e = Y.virtualRows.value, t = B.value, n = [];
10102
+ let e = Oe.virtualRows.value, t = ye.value, n = [];
9795
10103
  for (let r of e) {
9796
10104
  let e = t[r.index];
9797
10105
  e && n.push({
@@ -9804,415 +10112,719 @@ var Vd = {
9804
10112
  }
9805
10113
  return n;
9806
10114
  });
9807
- function re(e) {
9808
- let t = ee.value ?? te.value;
10115
+ function Ae(e) {
10116
+ let t = Ee.value ?? De.value;
9809
10117
  return t ? t.querySelector(`[data-node-id="${CSS.escape(e)}"]`) : null;
9810
10118
  }
9811
- function ie(e) {
9812
- W.value = e, e && y(() => {
9813
- if (J.value) {
9814
- let t = B.value.findIndex((t) => O.value.getId(t.node) === e);
9815
- t >= 0 && Y.scrollToIndex(t, "auto"), y(() => re(e)?.focus());
9816
- } else re(e)?.focus();
10119
+ function je(e) {
10120
+ Ce.value = e, e && y(() => {
10121
+ if (Te.value) {
10122
+ let t = be.value.get(e) ?? -1;
10123
+ t >= 0 && Oe.scrollToIndex(t, "auto"), y(() => Ae(e)?.focus());
10124
+ } else Ae(e)?.focus();
9817
10125
  });
9818
10126
  }
9819
- let ae = (e) => k.value.has(e), oe = (e) => N.value === e, se = (e) => W.value === e;
9820
- w(() => {
9821
- l.builder?._setFocusNodeImpl((e) => {
9822
- let t = Z(e);
9823
- t && ce(t);
10127
+ let Me = A(/* @__PURE__ */ new Set()), Ne = A(/* @__PURE__ */ new Set()), Pe = A(/* @__PURE__ */ new Set());
10128
+ function Fe(e) {
10129
+ return Array.isArray(_e(e));
10130
+ }
10131
+ function Ie(e, t) {
10132
+ if (!e.value.has(t)) return;
10133
+ let n = new Set(e.value);
10134
+ n.delete(t), e.value = n;
10135
+ }
10136
+ function Z(e) {
10137
+ h("load-error", e), l.builder?.state.onLoadError?.(e);
10138
+ }
10139
+ let Q = /* @__PURE__ */ new Map(), Le = [], Re = r(() => {
10140
+ let e = N.value.maxConcurrentLoads;
10141
+ return e && e > 0 ? e : Infinity;
10142
+ });
10143
+ function ze() {
10144
+ for (; Le.length && Q.size < Re.value;) {
10145
+ let e = Le.shift();
10146
+ Ve(e.node, e.force);
10147
+ }
10148
+ }
10149
+ function Be(e, t, n) {
10150
+ if (Q.delete(e), !n.signal.aborted && (Ie(Me, e), t !== void 0)) {
10151
+ Ne.value = new Set(Ne.value).add(e);
10152
+ let n = zt(e);
10153
+ n && (Z({
10154
+ node: n,
10155
+ error: t
10156
+ }), Wt(L.value.loadError(Gt(n))));
10157
+ }
10158
+ ze();
10159
+ }
10160
+ function Ve(e, t = !1) {
10161
+ let n = N.value.loadChildren;
10162
+ if (!n) return;
10163
+ let r = N.value.getId(e);
10164
+ if (Me.value.has(r) || Q.has(r) || !t && Fe(e) || Le.some((e) => N.value.getId(e.node) === r)) return;
10165
+ if (Q.size >= Re.value) {
10166
+ Le.push({
10167
+ node: e,
10168
+ force: t
10169
+ });
10170
+ return;
10171
+ }
10172
+ let i = new AbortController();
10173
+ Q.set(r, i), Me.value = new Set(Me.value).add(r), Pe.value = new Set(Pe.value).add(r), Ie(Ne, r), Promise.resolve().then(() => n(e, { signal: i.signal })).then(() => Be(r, void 0, i), (e) => Be(r, e ?? /* @__PURE__ */ Error("loadChildren rejected"), i));
10174
+ }
10175
+ function He(e) {
10176
+ let t = Q.get(e);
10177
+ t && (t.abort(), Q.delete(e)), Ie(Me, e);
10178
+ let n = Le.findIndex((t) => N.value.getId(t.node) === e);
10179
+ n >= 0 && Le.splice(n, 1), ze();
10180
+ }
10181
+ function Ue(e) {
10182
+ let t = zt(e);
10183
+ t && Ve(t, !0);
10184
+ }
10185
+ function We() {
10186
+ if (Pe.value.size) {
10187
+ let e = !1, t = new Set(Pe.value);
10188
+ for (let n of t) B.value.has(n) || (t.delete(n), e = !0);
10189
+ e && (Pe.value = t);
10190
+ }
10191
+ for (let e of [Me, Ne]) {
10192
+ if (!e.value.size) continue;
10193
+ let t = !1, n = new Set(e.value);
10194
+ for (let e of n) zt(e) || (n.delete(e), t = !0);
10195
+ t && (e.value = n);
10196
+ }
10197
+ }
10198
+ G([B, () => N.value.nodes], () => {
10199
+ if (Q.size) for (let e of [...Q.keys()]) (!B.value.has(e) || !zt(e)) && He(e);
10200
+ if (N.value.loadChildren) {
10201
+ We();
10202
+ for (let e of ye.value) e.isExpandable && B.value.has(e.id) && !Me.value.has(e.id) && !Pe.value.has(e.id) && !Fe(e.node) && Ve(e.node);
10203
+ }
10204
+ }, { immediate: !0 }), C(() => {
10205
+ for (let e of Q.values()) e.abort();
10206
+ Q.clear(), Le.length = 0;
10207
+ }), w(() => {
10208
+ l.builder?._bindImpls({
10209
+ focusNode: (e) => qe(zt(e), "api"),
10210
+ selectNode: (e) => qe(zt(e), "api"),
10211
+ reloadChildren: Ue,
10212
+ startRename: rn,
10213
+ expandAll: $e,
10214
+ collapseAll: et,
10215
+ expandTo: nt,
10216
+ revealNode: rt,
10217
+ getNode: (e) => zt(e),
10218
+ moveNode: Kt
9824
10219
  });
9825
10220
  }), C(() => {
9826
- l.builder?._setFocusNodeImpl(null);
10221
+ l.builder?._bindImpls(null);
9827
10222
  });
9828
- function ce(e) {
9829
- if (!e) return;
9830
- let t = O.value.getId(e);
9831
- N.value = t, ie(t);
10223
+ let Ge = A(null);
10224
+ function Ke(e, t, n) {
10225
+ let r = {
10226
+ node: e ? zt(e) : null,
10227
+ ids: [...t],
10228
+ via: n
10229
+ };
10230
+ h("select", r), l.builder?.state.onSelect?.(r);
10231
+ }
10232
+ function qe(e, t = "user") {
10233
+ if (!e || ve(e)) return;
10234
+ let n = N.value.getId(e);
10235
+ te.value === "single" ? W.value = n : K.value = new Set([n]), Ge.value = n, je(n), Ke(n, [n], t);
10236
+ }
10237
+ function Je(e, t) {
10238
+ if (ve(e)) return;
10239
+ let n = N.value.getId(e);
10240
+ if (!ne.value) {
10241
+ qe(e);
10242
+ return;
10243
+ }
10244
+ let r = t.ctrlKey || t.metaKey, i = be.value, a = ye.value;
10245
+ if (t.shiftKey && Ge.value && i.has(Ge.value)) {
10246
+ let e = i.get(Ge.value), t = i.get(n) ?? e, [o, s] = e <= t ? [e, t] : [t, e], c = new Set(r ? K.value : []);
10247
+ for (let e = o; e <= s; e++) c.add(a[e].id);
10248
+ K.value = c, je(n), Ke(n, c, "user");
10249
+ return;
10250
+ }
10251
+ if (r) {
10252
+ let e = new Set(K.value);
10253
+ e.has(n) ? e.delete(n) : e.add(n), K.value = e, Ge.value = n, je(n), Ke(n, e, "user");
10254
+ return;
10255
+ }
10256
+ let o = new Set([n]);
10257
+ K.value = o, Ge.value = n, je(n), Ke(n, o, "user");
9832
10258
  }
9833
- function X(e) {
9834
- if (!P(e)) return;
9835
- let t = O.value.getId(e), n = new Set(k.value);
9836
- n.has(t) ? n.delete(t) : n.add(t), k.value = n;
10259
+ function Ye(e) {
10260
+ let t = new Set(K.value);
10261
+ Ce.value && t.add(Ce.value), t.add(e), K.value = t, Ke(e, t, "user");
9837
10262
  }
9838
- function le(e) {
9839
- if (!P(e)) return;
9840
- let t = O.value.getId(e);
9841
- if (k.value.has(t)) return;
9842
- let n = new Set(k.value);
9843
- n.add(t), k.value = n;
10263
+ function Xe(e, t) {
10264
+ if (!Y.value || ve(e)) return;
10265
+ let n = N.value.getId(e), r = t ?? !J.value.has(n);
10266
+ if (re.value) {
10267
+ let e = new Set(J.value);
10268
+ r ? e.add(n) : e.delete(n), J.value = e;
10269
+ return;
10270
+ }
10271
+ let i = ae.value;
10272
+ i && (J.value = Gd(J.value, n, r, i));
10273
+ }
10274
+ function Ze(e) {
10275
+ if (!he(e)) return;
10276
+ let t = N.value.getId(e), n = new Set(B.value);
10277
+ n.has(t) ? n.delete(t) : n.add(t), B.value = n;
10278
+ }
10279
+ function Qe(e) {
10280
+ if (!he(e)) return;
10281
+ let t = N.value.getId(e);
10282
+ if (B.value.has(t)) return;
10283
+ let n = new Set(B.value);
10284
+ n.add(t), B.value = n;
10285
+ }
10286
+ function $e() {
10287
+ let e = new Set(B.value), t = (n) => {
10288
+ for (let r of n) {
10289
+ he(r) && e.add(N.value.getId(r));
10290
+ let n = _e(r);
10291
+ n && n.length && t(n);
10292
+ }
10293
+ };
10294
+ t(N.value.nodes), B.value = e;
10295
+ }
10296
+ function et() {
10297
+ B.value = /* @__PURE__ */ new Set();
10298
+ }
10299
+ function tt(e) {
10300
+ let t = [], n = (r, i) => {
10301
+ for (let a of r) {
10302
+ let r = N.value.getId(a);
10303
+ if (r === e) return t.push(...i), !0;
10304
+ let o = _e(a);
10305
+ if (o && o.length && n(o, [...i, r])) return !0;
10306
+ }
10307
+ return !1;
10308
+ };
10309
+ return n(N.value.nodes, []), t;
9844
10310
  }
9845
- function de(e, t) {
9846
- t.button === 0 && ce(e);
10311
+ function nt(e) {
10312
+ let t = tt(e);
10313
+ if (!t.length) return;
10314
+ let n = new Set(B.value);
10315
+ for (let e of t) n.add(e);
10316
+ B.value = n;
10317
+ }
10318
+ function rt(e) {
10319
+ nt(e), y(() => {
10320
+ if (Te.value) {
10321
+ let t = be.value.get(e) ?? -1;
10322
+ t >= 0 && Oe.scrollToIndex(t, "auto");
10323
+ } else Ae(e)?.scrollIntoView({ block: "nearest" });
10324
+ });
9847
10325
  }
9848
- function fe(e) {
9849
- me(e);
10326
+ function it(e, t) {
10327
+ t.button === 0 && (Je(e, t), N.value.activateOnClick && !t.ctrlKey && !t.metaKey && !t.shiftKey && lt(e));
9850
10328
  }
9851
- function pe(e) {
9852
- X(e);
10329
+ function at(e) {
10330
+ Xe(e);
9853
10331
  }
9854
- function me(e) {
9855
- p("activate", e), l.builder?.state.onActivate?.(e);
10332
+ function ot(e) {
10333
+ Ue(N.value.getId(e));
10334
+ }
10335
+ function st(e) {
10336
+ lt(e);
9856
10337
  }
9857
- let he = bd(), ge = F(null), _e = r(() => {
10338
+ function ct(e) {
10339
+ Ze(e);
10340
+ }
10341
+ function lt(e) {
10342
+ ve(e) || (h("activate", e), l.builder?.state.onActivate?.(e));
10343
+ }
10344
+ let ut = bd(), dt = F(null), ft = r(() => {
9858
10345
  let e = l.builder?.state;
9859
- if (!e || !ge.value) return [];
9860
- switch (ge.value.kind) {
9861
- case "folder": return e.folderMenu ? e.folderMenu(ge.value.node) : [];
9862
- case "leaf": return e.leafMenu ? e.leafMenu(ge.value.node) : [];
10346
+ if (!e || !dt.value) return [];
10347
+ switch (dt.value.kind) {
10348
+ case "folder": return e.folderMenu ? e.folderMenu(dt.value.node) : [];
10349
+ case "leaf": return e.leafMenu ? e.leafMenu(dt.value.node) : [];
9863
10350
  case "viewport": return e.viewportMenu ? e.viewportMenu() : [];
9864
10351
  }
9865
10352
  return [];
9866
10353
  });
9867
- function ve(e, t) {
9868
- p("context-menu", e, t);
10354
+ function pt(e, t) {
10355
+ h("context-menu", e, t);
9869
10356
  let n = l.builder?.state;
9870
10357
  if (n) {
9871
10358
  if (e) {
9872
- let r = P(e), i = r ? n.onFolderContextMenu : n.onLeafContextMenu;
10359
+ let r = he(e), i = r ? n.onFolderContextMenu : n.onLeafContextMenu;
9873
10360
  if (i) {
9874
10361
  t.preventDefault(), i(e, t);
9875
10362
  return;
9876
10363
  }
9877
- (r ? n.folderMenu : n.leafMenu) && (ge.value = r ? {
10364
+ (r ? n.folderMenu : n.leafMenu) && (dt.value = r ? {
9878
10365
  kind: "folder",
9879
10366
  node: e
9880
10367
  } : {
9881
10368
  kind: "leaf",
9882
10369
  node: e
9883
- }, he.open(t));
10370
+ }, ut.open(t));
9884
10371
  return;
9885
10372
  }
9886
10373
  if (n.onViewportContextMenu) {
9887
10374
  t.preventDefault(), n.onViewportContextMenu(t);
9888
10375
  return;
9889
10376
  }
9890
- n.viewportMenu && (ge.value = { kind: "viewport" }, he.open(t));
10377
+ n.viewportMenu && (dt.value = { kind: "viewport" }, ut.open(t));
9891
10378
  }
9892
10379
  }
9893
- function ye(e, t) {
9894
- ve(e, t);
10380
+ function mt(e, t) {
10381
+ pt(e, t);
9895
10382
  }
9896
- function be(e) {
9897
- e.target.closest(".coar-tree-node__row") || ve(null, e);
10383
+ function ht(e) {
10384
+ e.target.closest(".coar-tree-node__row") || pt(null, e);
9898
10385
  }
9899
- function xe(e) {
9900
- e !== "divider" && (he.close(), e.onClick());
10386
+ function gt(e) {
10387
+ e !== "divider" && (ut.close(), e.onClick());
9901
10388
  }
9902
- let Se = A(""), Ce = null;
9903
- function we(e) {
9904
- Se.value += e.toLowerCase(), Ce && window.clearTimeout(Ce), Ce = window.setTimeout(() => {
9905
- Se.value = "";
10389
+ let _t = A(""), vt = null;
10390
+ function yt(e) {
10391
+ _t.value += e.toLowerCase(), vt && window.clearTimeout(vt), vt = window.setTimeout(() => {
10392
+ _t.value = "";
9906
10393
  }, 500);
9907
10394
  }
9908
- function Te() {
9909
- let e = O.value.getLabel;
9910
- if (!e || !Se.value) return null;
9911
- let t = B.value, n = W.value ? t.findIndex((e) => O.value.getId(e.node) === W.value) : -1;
10395
+ function bt() {
10396
+ let e = N.value.getLabel;
10397
+ if (!e || !_t.value) return null;
10398
+ let t = ye.value, n = Ce.value ? be.value.get(Ce.value) ?? -1 : -1;
9912
10399
  for (let r = 1; r <= t.length; r++) {
9913
10400
  let i = t[(n + r) % t.length].node;
9914
- if (e(i).toLowerCase().startsWith(Se.value)) return i;
10401
+ if (!ve(i) && e(i).toLowerCase().startsWith(_t.value)) return i;
9915
10402
  }
9916
10403
  return null;
9917
10404
  }
9918
- function Ee(e) {
9919
- let t = B.value;
10405
+ function xt(e, t) {
10406
+ let n = ye.value;
10407
+ for (let r = e + t; r >= 0 && r < n.length; r += t) if (!ve(n[r].node)) return r;
10408
+ return e;
10409
+ }
10410
+ function St(e) {
10411
+ let t = ye.value;
10412
+ for (let n = e === 1 ? 0 : t.length - 1; n >= 0 && n < t.length; n += e) if (!ve(t[n].node)) return n;
10413
+ return -1;
10414
+ }
10415
+ function Ct() {
10416
+ let e = De.value;
10417
+ return !!e && typeof getComputedStyle == "function" && getComputedStyle(e).direction === "rtl";
10418
+ }
10419
+ function wt() {
10420
+ let e = Ee.value, t = (typeof we.value?.itemSize == "number" ? we.value.itemSize : 28) || 28;
10421
+ return e && e.clientHeight ? Math.max(1, Math.floor(e.clientHeight / t)) : 10;
10422
+ }
10423
+ function Tt(e) {
10424
+ if (e.isExpandable && !B.value.has(e.id)) Qe(e.node);
10425
+ else {
10426
+ let t = _e(e.node);
10427
+ t && t.length && je(N.value.getId(t[0]));
10428
+ }
10429
+ }
10430
+ function Et(e) {
10431
+ e.isExpandable && B.value.has(e.id) ? Ze(e.node) : e.parentId && je(e.parentId);
10432
+ }
10433
+ function Dt(e) {
10434
+ let t = ye.value;
9920
10435
  if (!t.length) return;
9921
- let n = W.value ? t.findIndex((e) => O.value.getId(e.node) === W.value) : -1, r = n >= 0 ? t[n] : null;
9922
- if (e.key === "F2" && l.renamable && r && !h.value) {
10436
+ let n = Ce.value ? be.value.get(Ce.value) ?? -1 : -1, r = n >= 0 ? t[n] : null;
10437
+ if (e.key === "F2" && P.value && r && !_.value) {
9923
10438
  let t = e.target;
9924
10439
  if (t && t.tagName !== "INPUT" && t.tagName !== "TEXTAREA") {
9925
- e.preventDefault(), Je(O.value.getId(r.node));
10440
+ e.preventDefault(), rn(r.id);
9926
10441
  return;
9927
10442
  }
9928
10443
  }
10444
+ if ((e.ctrlKey || e.metaKey) && (e.key === "a" || e.key === "A") && ne.value) {
10445
+ e.preventDefault();
10446
+ let n = new Set(t.filter((e) => !ve(e.node)).map((e) => e.id));
10447
+ K.value = n, Ke(Ce.value, n, "user");
10448
+ return;
10449
+ }
10450
+ if ((e.ctrlKey || e.metaKey) && (e.key === "x" || e.key === "X") && r && ge(r.node)) {
10451
+ e.preventDefault(), Ht.value = r.id, Wt(L.value.pickedUp(Gt(r.node)));
10452
+ return;
10453
+ }
10454
+ if ((e.ctrlKey || e.metaKey) && (e.key === "v" || e.key === "V") && Ht.value && r) {
10455
+ e.preventDefault();
10456
+ let t = zt(Ht.value), n = t ? Gt(t) : "item", i = r.isExpandable ? "inside" : "after";
10457
+ Wt(Kt(Ht.value, r.id, i) ? L.value.moved(n, Gt(r.node), i) : L.value.moveBlocked(n)), Ht.value = null;
10458
+ return;
10459
+ }
10460
+ if (e.key === "Escape" && Ht.value) {
10461
+ e.preventDefault(), Ht.value = null, Wt(L.value.moveCancelled);
10462
+ return;
10463
+ }
9929
10464
  switch (e.key) {
9930
10465
  case "ArrowDown": {
9931
10466
  e.preventDefault();
9932
- let r = t[Math.min(t.length - 1, n + 1)] ?? t[0];
9933
- ie(O.value.getId(r.node));
10467
+ let r = t[xt(n, 1)] ?? t[n] ?? t[0];
10468
+ e.shiftKey && ne.value && Ye(r.id), je(r.id);
9934
10469
  return;
9935
10470
  }
9936
10471
  case "ArrowUp": {
9937
10472
  e.preventDefault();
9938
- let r = t[Math.max(0, n - 1)] ?? t[0];
9939
- ie(O.value.getId(r.node));
10473
+ let r = t[xt(n < 0 ? t.length : n, -1)] ?? t[n] ?? t[0];
10474
+ e.shiftKey && ne.value && Ye(r.id), je(r.id);
9940
10475
  return;
9941
10476
  }
9942
10477
  case "ArrowRight":
9943
10478
  if (!r) return;
9944
- if (e.preventDefault(), P(r.node) && !k.value.has(O.value.getId(r.node))) le(r.node);
9945
- else {
9946
- let e = L(r.node);
9947
- e && e.length && ie(O.value.getId(e[0]));
9948
- }
10479
+ e.preventDefault(), (Ct() ? Et : Tt)(r);
9949
10480
  return;
9950
10481
  case "ArrowLeft":
9951
10482
  if (!r) return;
9952
- e.preventDefault(), P(r.node) && k.value.has(O.value.getId(r.node)) ? X(r.node) : r.parentId && ie(r.parentId);
10483
+ e.preventDefault(), (Ct() ? Tt : Et)(r);
9953
10484
  return;
9954
- case "Home":
9955
- e.preventDefault(), ie(O.value.getId(t[0].node));
10485
+ case "PageDown": {
10486
+ e.preventDefault();
10487
+ let r = Math.min(t.length - 1, (n < 0 ? 0 : n) + wt());
10488
+ ve(t[r].node) && (r = xt(r, -1)), r >= 0 && t[r] && je(t[r].id);
9956
10489
  return;
9957
- case "End":
9958
- e.preventDefault(), ie(O.value.getId(t[t.length - 1].node));
10490
+ }
10491
+ case "PageUp": {
10492
+ e.preventDefault();
10493
+ let r = Math.max(0, (n < 0 ? 0 : n) - wt());
10494
+ ve(t[r].node) && (r = xt(r, 1)), r >= 0 && t[r] && je(t[r].id);
10495
+ return;
10496
+ }
10497
+ case "*":
10498
+ if (e.preventDefault(), r) {
10499
+ let e = new Set(B.value);
10500
+ for (let n of t) n.parentId === r.parentId && n.isExpandable && e.add(n.id);
10501
+ B.value = e;
10502
+ }
10503
+ return;
10504
+ case "Home": {
10505
+ e.preventDefault();
10506
+ let n = St(1);
10507
+ n >= 0 && je(t[n].id);
10508
+ return;
10509
+ }
10510
+ case "End": {
10511
+ e.preventDefault();
10512
+ let n = St(-1);
10513
+ n >= 0 && je(t[n].id);
9959
10514
  return;
10515
+ }
9960
10516
  case "Enter":
9961
- r && (e.preventDefault(), ce(r.node), me(r.node));
10517
+ r && (e.preventDefault(), qe(r.node), lt(r.node));
9962
10518
  return;
9963
10519
  case " ":
9964
- r && (e.preventDefault(), P(r.node) ? X(r.node) : ce(r.node));
10520
+ r && (e.preventDefault(), Y.value ? Xe(r.node) : he(r.node) ? Ze(r.node) : qe(r.node));
9965
10521
  return;
9966
10522
  default: if (e.key.length === 1 && !e.ctrlKey && !e.metaKey && !e.altKey) {
9967
- we(e.key);
9968
- let t = Te();
9969
- t && ie(O.value.getId(t));
10523
+ yt(e.key);
10524
+ let t = bt();
10525
+ t && je(N.value.getId(t));
9970
10526
  }
9971
10527
  }
9972
10528
  }
9973
- let De = A(null), Oe = A(null), ke = A(null), Ae = A(null), je = A(0), Me = null, Ne = null;
9974
- function Pe() {
9975
- Me && window.clearTimeout(Me), Me = null, Ne = null;
9976
- }
9977
- function Fe(e) {
9978
- let t = O.value.getId(e);
9979
- Ne !== t && (Pe(), Ne = t, Me = window.setTimeout(() => {
9980
- Ne === t && le(e);
9981
- }, O.value.autoExpandDelay));
9982
- }
9983
- function Ie(e, t) {
9984
- if (O.value.getId(e) === t) return !0;
9985
- let n = L(e);
9986
- if (!n) return !1;
9987
- for (let e of n) if (Ie(e, t)) return !0;
10529
+ let Ot = A(null), kt = F(null), At = A(null), jt = A(null), Mt = A(null), Nt = A(0);
10530
+ D(Nd, {
10531
+ selectedIds: ie,
10532
+ checkedIds: J,
10533
+ indeterminateIds: oe,
10534
+ checkboxMode: Y,
10535
+ matchedIds: ce,
10536
+ matchAncestorIds: X,
10537
+ disabledIds: se,
10538
+ focusedId: Ce,
10539
+ expandedIds: B,
10540
+ renamingId: _,
10541
+ dropTargetId: At,
10542
+ dropPosition: jt,
10543
+ fileDropTargetId: Mt,
10544
+ loadingIds: Me,
10545
+ erroredIds: Ne,
10546
+ hideLoadingSpinner: r(() => !!N.value.hideLoadingSpinner),
10547
+ labels: L
10548
+ });
10549
+ let Pt = null, Ft = null;
10550
+ function It() {
10551
+ Pt && window.clearTimeout(Pt), Pt = null, Ft = null;
10552
+ }
10553
+ function Lt(e) {
10554
+ let t = N.value.getId(e);
10555
+ Ft !== t && (It(), Ft = t, Pt = window.setTimeout(() => {
10556
+ Ft === t && Qe(e);
10557
+ }, N.value.autoExpandDelay));
10558
+ }
10559
+ function Rt(e, t) {
10560
+ let n = be.value, r = ye.value, i = e;
10561
+ for (; i !== null;) {
10562
+ if (i === t) return !0;
10563
+ let e = n.get(i);
10564
+ if (e === void 0) return !1;
10565
+ i = r[e].parentId;
10566
+ }
9988
10567
  return !1;
9989
10568
  }
9990
- function Z(e, t = O.value.nodes) {
10569
+ function zt(e, t = N.value.nodes) {
9991
10570
  for (let n of t) {
9992
- if (O.value.getId(n) === e) return n;
9993
- let t = L(n);
10571
+ if (N.value.getId(n) === e) return n;
10572
+ let t = _e(n);
9994
10573
  if (t) {
9995
- let n = Z(e, t);
10574
+ let n = zt(e, t);
9996
10575
  if (n) return n;
9997
10576
  }
9998
10577
  }
9999
10578
  return null;
10000
10579
  }
10001
- function Q() {
10002
- De.value = null, Oe.value = null, ke.value = null, Ae.value = null, je.value = 0, Pe();
10580
+ function Bt() {
10581
+ Ot.value = null, kt.value = null, At.value = null, jt.value = null, Mt.value = null, Nt.value = 0, It();
10003
10582
  }
10004
- function Le(e) {
10005
- p("node-move", e), l.builder?.state.onNodeMove?.(e);
10583
+ function Vt(e) {
10584
+ h("node-move", e), l.builder?.state.onNodeMove?.(e);
10585
+ }
10586
+ let Ht = A(null), Ut = A("");
10587
+ function Wt(e) {
10588
+ Ut.value = "", y(() => {
10589
+ Ut.value = e;
10590
+ });
10006
10591
  }
10007
- function Re(e) {
10008
- p("files-drop", e), l.builder?.state.onFilesDrop?.(e);
10592
+ function Gt(e) {
10593
+ return N.value.getLabel ? N.value.getLabel(e) : N.value.getId(e);
10009
10594
  }
10010
- function ze(e, t) {
10011
- if (!I(e)) {
10595
+ function Kt(e, t, n) {
10596
+ let r = zt(e);
10597
+ if (!r || t !== null && (e === t || Rt(t, e))) return !1;
10598
+ let i = t === null ? null : zt(t);
10599
+ return t !== null && !i || N.value.canDrop && !N.value.canDrop(r, i, n) ? !1 : (Vt({
10600
+ source: r,
10601
+ target: i,
10602
+ position: n
10603
+ }), !0);
10604
+ }
10605
+ function qt(e) {
10606
+ h("files-drop", e), l.builder?.state.onFilesDrop?.(e);
10607
+ }
10608
+ function Jt(e, t) {
10609
+ if (!ge(e)) {
10012
10610
  t.preventDefault();
10013
10611
  return;
10014
10612
  }
10015
- De.value = O.value.getId(e), t.dataTransfer?.setData(kd, O.value.getId(e)), t.dataTransfer?.setData("text/plain", O.value.getLabel?.(e) ?? O.value.getId(e)), t.dataTransfer && (t.dataTransfer.effectAllowed = "move");
10613
+ let n = N.value.getId(e);
10614
+ Ot.value = n, kt.value = e, t.dataTransfer?.setData(Ad, n), t.dataTransfer?.setData("text/plain", N.value.getLabel?.(e) ?? n), t.dataTransfer && (t.dataTransfer.effectAllowed = "move");
10615
+ let r = N.value.getDragImage?.(e);
10616
+ r instanceof HTMLElement ? xe(t, r) : typeof r == "string" && Se(t, r), Wt(L.value.pickedUp(Gt(e)));
10016
10617
  }
10017
- function Be() {
10018
- Q();
10618
+ function Yt() {
10619
+ Bt();
10019
10620
  }
10020
- function Ve(e, t, n) {
10621
+ function Xt(e, t, n) {
10021
10622
  let r = n.dataTransfer;
10022
10623
  if (!r) return;
10023
- if (Bd(r)) {
10024
- O.value.acceptsFiles && P(e) && (n.preventDefault(), r.dropEffect = "copy", Ae.value = O.value.getId(e), Oe.value = null, ke.value = null, Fe(e));
10624
+ if (Ud(r)) {
10625
+ N.value.acceptsFiles && he(e) && (n.preventDefault(), r.dropEffect = "copy", Mt.value = N.value.getId(e), At.value = null, jt.value = null, Lt(e));
10025
10626
  return;
10026
10627
  }
10027
- if (!r.types.includes("application/x-coar-tree-node") || !De.value || De.value === O.value.getId(e)) return;
10028
- let i = Z(De.value);
10029
- if (!i || Ie(i, O.value.getId(e))) return;
10030
- let a = zd(n, t.getBoundingClientRect(), { expandable: P(e) });
10031
- O.value.canDrop && !O.value.canDrop(i, e, a) || (n.preventDefault(), r.dropEffect = "move", Oe.value = O.value.getId(e), ke.value = a, Ae.value = null, a === "inside" ? Fe(e) : Pe());
10628
+ if (!r.types.includes("application/x-coar-tree-node") || !Ot.value || Ot.value === N.value.getId(e) || Rt(N.value.getId(e), Ot.value)) return;
10629
+ let i = Hd(n, t.getBoundingClientRect(), { expandable: he(e) }), a = kt.value;
10630
+ N.value.canDrop && a && !N.value.canDrop(a, e, i) || (n.preventDefault(), r.dropEffect = "move", At.value = N.value.getId(e), jt.value = i, Mt.value = null, i === "inside" ? Lt(e) : It());
10032
10631
  }
10033
- function He(e, t) {
10034
- let n = t.relatedTarget, r = `[data-node-id="${CSS.escape(O.value.getId(e))}"]`;
10035
- n && t.currentTarget.closest(r)?.contains(n) || (Oe.value === O.value.getId(e) && (Oe.value = null, ke.value = null), Ae.value === O.value.getId(e) && (Ae.value = null), Pe());
10632
+ function Zt(e, t) {
10633
+ let n = t.relatedTarget, r = `[data-node-id="${CSS.escape(N.value.getId(e))}"]`;
10634
+ n && t.currentTarget.closest(r)?.contains(n) || (At.value === N.value.getId(e) && (At.value = null, jt.value = null), Mt.value === N.value.getId(e) && (Mt.value = null), It());
10036
10635
  }
10037
- function Ue(e, t, n) {
10636
+ function Qt(e, t, n) {
10038
10637
  let r = n.dataTransfer;
10039
10638
  if (r) {
10040
- if (Bd(r)) {
10041
- if (!O.value.acceptsFiles || !P(e) || !r.files.length) return;
10042
- n.preventDefault(), n.stopPropagation(), Re({
10639
+ if (Ud(r)) {
10640
+ if (!N.value.acceptsFiles || !he(e) || !r.files.length) return;
10641
+ n.preventDefault(), n.stopPropagation(), qt({
10043
10642
  files: r.files,
10044
10643
  target: e
10045
- }), Q();
10644
+ }), Bt();
10046
10645
  return;
10047
10646
  }
10048
- if (De.value && Oe.value === O.value.getId(e) && ke.value) {
10049
- let t = Z(De.value);
10050
- t && (n.preventDefault(), n.stopPropagation(), Le({
10647
+ if (Ot.value && At.value === N.value.getId(e) && jt.value) {
10648
+ let t = zt(Ot.value);
10649
+ t && !Rt(N.value.getId(e), Ot.value) && (n.preventDefault(), n.stopPropagation(), Vt({
10051
10650
  source: t,
10052
10651
  target: e,
10053
- position: ke.value
10054
- }));
10652
+ position: jt.value
10653
+ }), Wt(L.value.moved(Gt(t), Gt(e), jt.value)));
10055
10654
  }
10056
- Q();
10655
+ Bt();
10057
10656
  }
10058
10657
  }
10059
- function We(e) {
10060
- !Bd(e.dataTransfer) || !O.value.acceptsFiles || (e.preventDefault(), je.value++);
10658
+ function $t(e) {
10659
+ !Ud(e.dataTransfer) || !N.value.acceptsFiles || (e.preventDefault(), Nt.value++);
10061
10660
  }
10062
- function Ge(e) {
10661
+ function en(e) {
10063
10662
  let t = e.dataTransfer;
10064
10663
  if (t) {
10065
- if (Bd(t) && O.value.acceptsFiles) {
10664
+ if (Ud(t) && N.value.acceptsFiles) {
10066
10665
  e.preventDefault(), t.dropEffect = "copy";
10067
10666
  return;
10068
10667
  }
10069
- t.types.includes("application/x-coar-tree-node") && De.value && (e.preventDefault(), t.dropEffect = "move");
10668
+ t.types.includes("application/x-coar-tree-node") && Ot.value && (e.preventDefault(), t.dropEffect = "move");
10070
10669
  }
10071
10670
  }
10072
- function Ke(e) {
10073
- Bd(e.dataTransfer) && (je.value = Math.max(0, je.value - 1));
10671
+ function tn(e) {
10672
+ Ud(e.dataTransfer) && (Nt.value = Math.max(0, Nt.value - 1));
10074
10673
  }
10075
- function qe(e) {
10674
+ function nn(e) {
10076
10675
  let t = e.dataTransfer;
10077
10676
  if (t) {
10078
- if (Bd(t) && O.value.acceptsFiles && t.files.length) {
10079
- e.preventDefault(), Re({
10677
+ if (Ud(t) && N.value.acceptsFiles && t.files.length) {
10678
+ e.preventDefault(), qt({
10080
10679
  files: t.files,
10081
10680
  target: null
10082
- }), Q();
10681
+ }), Bt();
10083
10682
  return;
10084
10683
  }
10085
- if (t.types.includes("application/x-coar-tree-node") && De.value) {
10086
- let t = Z(De.value);
10087
- t && (e.preventDefault(), Le({
10684
+ if (t.types.includes("application/x-coar-tree-node") && Ot.value) {
10685
+ let t = zt(Ot.value);
10686
+ t && (e.preventDefault(), Vt({
10088
10687
  source: t,
10089
10688
  target: null,
10090
10689
  position: "inside"
10091
- })), Q();
10690
+ })), Bt();
10092
10691
  }
10093
10692
  }
10094
10693
  }
10095
10694
  C(() => {
10096
- Ce && window.clearTimeout(Ce), Pe();
10695
+ vt && window.clearTimeout(vt), It();
10097
10696
  });
10098
- function Je(e) {
10099
- if (!l.renamable) return;
10100
- let t = B.value.find((t) => O.value.getId(t.node) === e);
10101
- if (!t) return;
10102
- let n = O.value.getLabel ? O.value.getLabel(t.node) : "";
10697
+ function rn(e) {
10698
+ if (!P.value) return;
10699
+ let t = be.value.get(e), n = t === void 0 ? void 0 : ye.value[t];
10700
+ if (!n) return;
10701
+ let r = N.value.getLabel ? N.value.getLabel(n.node) : "";
10103
10702
  requestAnimationFrame(() => {
10104
- h.value = e, g.value = n;
10703
+ _.value = e, v.value = r;
10105
10704
  });
10106
10705
  }
10107
10706
  return n({
10108
10707
  focusNode(e) {
10109
- ie(e);
10708
+ je(e);
10110
10709
  },
10111
- startRename: Je
10710
+ selectNode(e) {
10711
+ qe(zt(e), "api");
10712
+ },
10713
+ reloadChildren: Ue,
10714
+ startRename: rn,
10715
+ expandAll: $e,
10716
+ collapseAll: et,
10717
+ expandTo: nt,
10718
+ revealNode: rt,
10719
+ getNode: (e) => zt(e),
10720
+ moveNode: Kt
10112
10721
  }), (n, r) => (E(), o("div", {
10113
10722
  ref_key: "rootEl",
10114
- ref: te,
10115
- class: b(["coar-tree", {
10116
- "coar-tree--file-drop": je.value > 0 && !Ae.value,
10117
- "coar-tree--virtual": J.value
10118
- }]),
10723
+ ref: De,
10724
+ class: b(["coar-tree", [`coar-tree--density-${N.value.density ?? "m"}`, {
10725
+ "coar-tree--file-drop": Nt.value > 0 && !Mt.value,
10726
+ "coar-tree--virtual": Te.value
10727
+ }]]),
10119
10728
  tabindex: "-1",
10120
- onKeydown: Ee,
10121
- onContextmenu: be,
10122
- onDragenter: We,
10123
- onDragover: Ge,
10124
- onDragleave: Ke,
10125
- onDrop: qe
10126
- }, [O.value.nodes.length ? (E(), o("div", {
10127
- key: 0,
10128
- ref_key: "scrollEl",
10129
- ref: ee,
10130
- class: b(["coar-tree__scroll", { "coar-tree__scroll--virtual": J.value }])
10131
- }, [s("div", {
10132
- class: "coar-tree__inner",
10133
- role: "tree",
10134
- style: S(J.value ? {
10135
- height: `${z(Y).totalSize.value}px`,
10136
- position: "relative"
10137
- } : void 0)
10138
- }, [(E(!0), o(e, null, j(ne.value, (e) => (E(), i(Rd, {
10139
- key: O.value.getId(e.row.node),
10140
- node: e.row.node,
10141
- "node-id": O.value.getId(e.row.node),
10142
- depth: e.row.depth,
10143
- "is-expandable": P(e.row.node),
10144
- "is-expanded": ae(O.value.getId(e.row.node)),
10145
- "is-selected": oe(O.value.getId(e.row.node)),
10146
- "is-focused": se(O.value.getId(e.row.node)),
10147
- "is-renaming": h.value === O.value.getId(e.row.node),
10148
- draggable: I(e.row.node),
10149
- "pos-in-set": e.row.posInSet,
10150
- "set-size": e.row.setSize,
10151
- "drop-indicator": Oe.value === O.value.getId(e.row.node) ? ke.value : null,
10152
- "file-drop-active": Ae.value === O.value.getId(e.row.node),
10153
- style: S(e.virtual ? {
10154
- position: "absolute",
10155
- top: `${e.virtual.start}px`,
10156
- left: 0,
10157
- right: 0,
10158
- height: `${e.virtual.size}px`
10159
- } : void 0),
10160
- onRowClick: de,
10161
- onRowDblclick: fe,
10162
- onRowContextMenu: ye,
10163
- onChevronClick: pe,
10164
- onRowDragstart: ze,
10165
- onRowDragend: Be,
10166
- onRowDragover: Ve,
10167
- onRowDragleave: He,
10168
- onRowDrop: Ue
10169
- }, null, 8, [
10170
- "node",
10171
- "node-id",
10172
- "depth",
10173
- "is-expandable",
10174
- "is-expanded",
10175
- "is-selected",
10176
- "is-focused",
10177
- "is-renaming",
10178
- "draggable",
10179
- "pos-in-set",
10180
- "set-size",
10181
- "drop-indicator",
10182
- "file-drop-active",
10183
- "style"
10184
- ]))), 128))], 4)], 2)) : (E(), o("div", Vd, [M(n.$slots, "empty", {}, void 0, !0)])), t.builder ? (E(), i(yd, {
10185
- key: 2,
10186
- menu: z(he)
10187
- }, {
10188
- default: q(() => [u(Uu, null, {
10189
- default: q(() => [(E(!0), o(e, null, j(_e.value, (t, n) => (E(), o(e, { key: n }, [t === "divider" ? (E(), i(rd, { key: 0 })) : (E(), i($u, {
10190
- key: 1,
10191
- label: t.label,
10192
- icon: t.icon,
10193
- disabled: t.disabled,
10194
- class: b({ "coar-tree__menu-item--danger": t.danger }),
10195
- onClicked: (e) => xe(t)
10196
- }, null, 8, [
10197
- "label",
10198
- "icon",
10199
- "disabled",
10200
- "class",
10201
- "onClicked"
10202
- ]))], 64))), 128))]),
10729
+ onKeydown: Dt,
10730
+ onContextmenu: ht,
10731
+ onDragenter: $t,
10732
+ onDragover: en,
10733
+ onDragleave: tn,
10734
+ onDrop: nn
10735
+ }, [
10736
+ s("div", Jd, I(Ut.value), 1),
10737
+ N.value.nodes.length ? (E(), o("div", {
10738
+ key: 0,
10739
+ ref_key: "scrollEl",
10740
+ ref: Ee,
10741
+ class: b(["coar-tree__scroll", { "coar-tree__scroll--virtual": Te.value }])
10742
+ }, [s("div", {
10743
+ class: "coar-tree__inner",
10744
+ role: "tree",
10745
+ "aria-label": N.value.ariaLabel,
10746
+ "aria-labelledby": N.value.ariaLabelledby,
10747
+ "aria-multiselectable": ne.value ? "true" : void 0,
10748
+ style: S(Te.value ? {
10749
+ height: `${z(Oe).totalSize.value}px`,
10750
+ position: "relative"
10751
+ } : void 0)
10752
+ }, [(E(!0), o(e, null, j(ke.value, (e) => (E(), i(Vd, {
10753
+ key: e.row.id,
10754
+ node: e.row.node,
10755
+ "node-id": e.row.id,
10756
+ depth: e.row.depth,
10757
+ "is-expandable": e.row.isExpandable,
10758
+ draggable: e.row.draggable,
10759
+ "pos-in-set": e.row.posInSet,
10760
+ "set-size": e.row.setSize,
10761
+ style: S(e.virtual ? {
10762
+ position: "absolute",
10763
+ top: `${e.virtual.start}px`,
10764
+ left: 0,
10765
+ right: 0,
10766
+ height: `${e.virtual.size}px`
10767
+ } : void 0),
10768
+ onRowClick: it,
10769
+ onRowDblclick: st,
10770
+ onRowContextMenu: mt,
10771
+ onRowCheckToggle: at,
10772
+ onRowRetry: ot,
10773
+ onChevronClick: ct,
10774
+ onRowDragstart: Jt,
10775
+ onRowDragend: Yt,
10776
+ onRowDragover: Xt,
10777
+ onRowDragleave: Zt,
10778
+ onRowDrop: Qt
10779
+ }, null, 8, [
10780
+ "node",
10781
+ "node-id",
10782
+ "depth",
10783
+ "is-expandable",
10784
+ "draggable",
10785
+ "pos-in-set",
10786
+ "set-size",
10787
+ "style"
10788
+ ]))), 128))], 12, Yd)], 2)) : (E(), o("div", {
10789
+ key: 1,
10790
+ class: "coar-tree__empty",
10791
+ tabindex: "0",
10792
+ role: "status",
10793
+ "aria-label": N.value.ariaLabel
10794
+ }, [M(n.$slots, "empty", {}, void 0, !0)], 8, Xd)),
10795
+ t.builder ? (E(), i(yd, {
10796
+ key: 2,
10797
+ menu: z(ut)
10798
+ }, {
10799
+ default: q(() => [u(Uu, null, {
10800
+ default: q(() => [(E(!0), o(e, null, j(ft.value, (t, n) => (E(), o(e, { key: n }, [t === "divider" ? (E(), i(rd, { key: 0 })) : (E(), i($u, {
10801
+ key: 1,
10802
+ label: t.label,
10803
+ icon: t.icon,
10804
+ disabled: t.disabled,
10805
+ class: b({ "coar-tree__menu-item--danger": t.danger }),
10806
+ onClicked: (e) => gt(t)
10807
+ }, null, 8, [
10808
+ "label",
10809
+ "icon",
10810
+ "disabled",
10811
+ "class",
10812
+ "onClicked"
10813
+ ]))], 64))), 128))]),
10814
+ _: 1
10815
+ })]),
10203
10816
  _: 1
10204
- })]),
10205
- _: 1
10206
- }, 8, ["menu"])) : a("", !0)], 34));
10817
+ }, 8, ["menu"])) : a("", !0)
10818
+ ], 34));
10207
10819
  }
10208
- }), [["__scopeId", "data-v-7e544629"]]), Ud = ["data-rename-id"], Wd = {
10820
+ }), [["__scopeId", "data-v-6b30f72b"]]), Qd = ["data-rename-id"], $d = {
10209
10821
  key: 1,
10210
10822
  class: "coar-tree-node-label__text"
10211
- }, Gd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10823
+ }, ef = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10212
10824
  __name: "CoarTreeNodeLabel",
10213
10825
  props: { label: {} },
10214
10826
  setup(e) {
10215
- let t = m(jd, null), n = m(Md, null), i = r(() => n != null && t != null && n.renamingId.value === t), a = U("inputEl");
10827
+ let t = m(Md, null), n = m(Pd, null), i = r(() => n != null && t != null && n.renamingId.value === t), a = U("inputEl");
10216
10828
  return n && t && G(i, async (e) => {
10217
10829
  e && (await y(), a.value?.focus(), a.value?.select());
10218
10830
  }), (r, s) => z(n) && i.value ? J((E(), o("input", {
@@ -10231,18 +10843,38 @@ var Vd = {
10231
10843
  ],
10232
10844
  onFocus: s[6] ||= (e) => z(n).onFocus(),
10233
10845
  onBlur: s[7] ||= (e) => z(n).onBlur()
10234
- }, null, 40, Ud)), [[W, z(n).buffer.value]]) : (E(), o("span", Wd, I(e.label), 1));
10846
+ }, null, 40, Qd)), [[W, z(n).buffer.value]]) : (E(), o("span", $d, I(e.label), 1));
10235
10847
  }
10236
- }), [["__scopeId", "data-v-78b33972"]]), Kd = class e {
10848
+ }), [["__scopeId", "data-v-78b33972"]]), tf = class e {
10237
10849
  state;
10238
10850
  api;
10239
- _focusNodeImpl = null;
10851
+ _impls = null;
10852
+ _warnUnmounted(e) {
10853
+ typeof console < "u" && console.warn(`[TreeBuilder.api.${e}] called before <CoarTree> mounted. The call was a no-op; move it into onMounted / a user-triggered handler.`);
10854
+ }
10240
10855
  constructor(e) {
10241
- this.state = e, this.api = {
10242
- focusNode: (e) => {
10243
- this._focusNodeImpl ? this._focusNodeImpl(e) : typeof console < "u" && console.warn("[TreeBuilder.api.focusNode] called before <CoarTree> mounted. The call was a no-op; move it into onMounted / a user-triggered handler.");
10244
- },
10856
+ this.state = e;
10857
+ let t = (e) => (t) => {
10858
+ let n = this._impls;
10859
+ n ? n[e](t) : this._warnUnmounted(e);
10860
+ }, n = (e) => () => {
10861
+ let t = this._impls;
10862
+ t ? t[e]() : this._warnUnmounted(e);
10863
+ };
10864
+ this.api = {
10865
+ focusNode: t("focusNode"),
10866
+ selectNode: t("selectNode"),
10867
+ reloadChildren: t("reloadChildren"),
10868
+ startRename: t("startRename"),
10869
+ expandTo: t("expandTo"),
10870
+ revealNode: t("revealNode"),
10871
+ expandAll: n("expandAll"),
10872
+ collapseAll: n("collapseAll"),
10873
+ getNode: (e) => this._impls?.getNode(e) ?? null,
10874
+ moveNode: (e, t, n) => this._impls ? this._impls.moveNode(e, t, n) : (this._warnUnmounted("moveNode"), !1),
10245
10875
  selectedId: e.selected,
10876
+ selectedIds: e.selectedIds,
10877
+ checkedIds: e.checkedIds,
10246
10878
  expandedIds: e.expanded
10247
10879
  };
10248
10880
  }
@@ -10255,16 +10887,38 @@ var Vd = {
10255
10887
  getChildren: void 0,
10256
10888
  getLabel: void 0,
10257
10889
  isExpandable: void 0,
10890
+ isDisabled: void 0,
10258
10891
  draggable: !1,
10259
10892
  canDrop: void 0,
10893
+ getDragImage: void 0,
10894
+ activateOnClick: !1,
10260
10895
  acceptsFiles: !1,
10261
10896
  autoExpandDelay: 700,
10262
10897
  virtualize: !1,
10898
+ hideLoadingSpinner: !1,
10899
+ renamable: !1,
10900
+ onRename: void 0,
10901
+ onRenameCancel: void 0,
10902
+ selectionMode: "single",
10903
+ checkStrictly: !1,
10904
+ density: "m",
10905
+ ariaLabel: void 0,
10906
+ ariaLabelledby: void 0,
10907
+ labels: void 0,
10908
+ matchedIds: void 0,
10909
+ filter: !1,
10910
+ filterMode: "strict",
10263
10911
  expanded: A(/* @__PURE__ */ new Set()),
10264
10912
  selected: A(null),
10913
+ selectedIds: A(/* @__PURE__ */ new Set()),
10914
+ checkedIds: A(/* @__PURE__ */ new Set()),
10265
10915
  onActivate: void 0,
10916
+ onSelect: void 0,
10266
10917
  onNodeMove: void 0,
10267
10918
  onFilesDrop: void 0,
10919
+ loadChildren: void 0,
10920
+ maxConcurrentLoads: 0,
10921
+ onLoadError: void 0,
10268
10922
  folderMenu: void 0,
10269
10923
  leafMenu: void 0,
10270
10924
  viewportMenu: void 0,
@@ -10288,12 +10942,27 @@ var Vd = {
10288
10942
  isExpandable(e) {
10289
10943
  return this.state.isExpandable = e, this;
10290
10944
  }
10945
+ isDisabled(e) {
10946
+ return this.state.isDisabled = e, this;
10947
+ }
10948
+ loadChildren(e) {
10949
+ return this.state.loadChildren = e, this;
10950
+ }
10951
+ maxConcurrentLoads(e) {
10952
+ return this.state.maxConcurrentLoads = e, this;
10953
+ }
10291
10954
  draggable(e) {
10292
10955
  return this.state.draggable = e, this;
10293
10956
  }
10294
10957
  canDrop(e) {
10295
10958
  return this.state.canDrop = e, this;
10296
10959
  }
10960
+ getDragImage(e) {
10961
+ return this.state.getDragImage = e, this;
10962
+ }
10963
+ activateOnClick(e) {
10964
+ return this.state.activateOnClick = e, this;
10965
+ }
10297
10966
  acceptsFiles(e) {
10298
10967
  return this.state.acceptsFiles = e, this;
10299
10968
  }
@@ -10303,6 +10972,39 @@ var Vd = {
10303
10972
  virtualize(e) {
10304
10973
  return this.state.virtualize = e, this;
10305
10974
  }
10975
+ hideLoadingSpinner(e) {
10976
+ return this.state.hideLoadingSpinner = e, this;
10977
+ }
10978
+ renamable(e) {
10979
+ return this.state.renamable = e, this;
10980
+ }
10981
+ selectionMode(e) {
10982
+ return this.state.selectionMode = e, this;
10983
+ }
10984
+ checkStrictly(e) {
10985
+ return this.state.checkStrictly = e, this;
10986
+ }
10987
+ density(e) {
10988
+ return this.state.density = e, this;
10989
+ }
10990
+ ariaLabel(e) {
10991
+ return this.state.ariaLabel = e, this;
10992
+ }
10993
+ ariaLabelledby(e) {
10994
+ return this.state.ariaLabelledby = e, this;
10995
+ }
10996
+ labels(e) {
10997
+ return this.state.labels = e, this;
10998
+ }
10999
+ matchedIds(e) {
11000
+ return this.state.matchedIds = e, this;
11001
+ }
11002
+ filter(e) {
11003
+ return this.state.filter = e, this;
11004
+ }
11005
+ filterMode(e) {
11006
+ return this.state.filterMode = e, this;
11007
+ }
10306
11008
  expanded(e) {
10307
11009
  if (!h(e)) throw Error("[TreeBuilder.expanded] requires a Ref<Set<string>>. Pass `ref(new Set<string>(...))`, not a plain Set or a getter.");
10308
11010
  return this.state.expanded = e, this.api.expandedIds = e, this;
@@ -10311,15 +11013,35 @@ var Vd = {
10311
11013
  if (!h(e)) throw Error("[TreeBuilder.selected] requires a Ref<string | null>. Pass `ref<string | null>(null)`, not a plain value.");
10312
11014
  return this.state.selected = e, this.api.selectedId = e, this;
10313
11015
  }
11016
+ selectedIds(e) {
11017
+ if (!h(e)) throw Error("[TreeBuilder.selectedIds] requires a Ref<Set<string>>. Pass `ref(new Set<string>())`, not a plain Set or a getter.");
11018
+ return this.state.selectedIds = e, this.api.selectedIds = e, this;
11019
+ }
11020
+ checkedIds(e) {
11021
+ if (!h(e)) throw Error("[TreeBuilder.checkedIds] requires a Ref<Set<string>>. Pass `ref(new Set<string>())`, not a plain Set or a getter.");
11022
+ return this.state.checkedIds = e, this.api.checkedIds = e, this;
11023
+ }
10314
11024
  onActivate(e) {
10315
11025
  return this.state.onActivate = e, this;
10316
11026
  }
11027
+ onSelect(e) {
11028
+ return this.state.onSelect = e, this;
11029
+ }
10317
11030
  onNodeMove(e) {
10318
11031
  return this.state.onNodeMove = e, this;
10319
11032
  }
10320
11033
  onFilesDrop(e) {
10321
11034
  return this.state.onFilesDrop = e, this;
10322
11035
  }
11036
+ onRename(e) {
11037
+ return this.state.onRename = e, this;
11038
+ }
11039
+ onRenameCancel(e) {
11040
+ return this.state.onRenameCancel = e, this;
11041
+ }
11042
+ onLoadError(e) {
11043
+ return this.state.onLoadError = e, this;
11044
+ }
10323
11045
  folderMenu(e) {
10324
11046
  return this.state.folderMenu = e, this;
10325
11047
  }
@@ -10338,14 +11060,14 @@ var Vd = {
10338
11060
  onViewportContextMenu(e) {
10339
11061
  return this.state.onViewportContextMenu = e, this;
10340
11062
  }
10341
- _setFocusNodeImpl(e) {
10342
- this._focusNodeImpl = e;
11063
+ _bindImpls(e) {
11064
+ this._impls = e;
10343
11065
  }
10344
11066
  };
10345
11067
  //#endregion
10346
11068
  //#region src/components/tree/useTree.ts
10347
- function qd() {
10348
- let e = Kd.create();
11069
+ function nf() {
11070
+ let e = tf.create();
10349
11071
  return {
10350
11072
  builder: e,
10351
11073
  api: e.api
@@ -10353,14 +11075,14 @@ function qd() {
10353
11075
  }
10354
11076
  //#endregion
10355
11077
  //#region src/components/panel-layout/internal/CoarPaneDivider.vue?vue&type=script&setup=true&lang.ts
10356
- var Jd = [
11078
+ var rf = [
10357
11079
  "aria-orientation",
10358
11080
  "aria-valuenow",
10359
11081
  "aria-valuemin",
10360
11082
  "aria-valuemax",
10361
11083
  "aria-valuetext",
10362
11084
  "aria-label"
10363
- ], Yd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11085
+ ], af = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10364
11086
  __name: "CoarPaneDivider",
10365
11087
  props: {
10366
11088
  orientation: {},
@@ -10427,9 +11149,9 @@ var Jd = [
10427
11149
  tabindex: "0",
10428
11150
  onPointerdown: f,
10429
11151
  onKeydown: g
10430
- }, null, 42, Jd));
11152
+ }, null, 42, rf));
10431
11153
  }
10432
- }), [["__scopeId", "data-v-023c8b6d"]]), Xd = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11154
+ }), [["__scopeId", "data-v-023c8b6d"]]), of = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10433
11155
  __name: "CoarSplitPane",
10434
11156
  props: {
10435
11157
  direction: { default: "row" },
@@ -10461,7 +11183,7 @@ var Jd = [
10461
11183
  class: b(["coar-split__pane", { "coar-split__pane--fill": e.side !== "first" }]),
10462
11184
  style: S(e.side === "first" ? p.value : void 0)
10463
11185
  }, [M(t.$slots, "first", {}, void 0, !0)], 6),
10464
- e.resizable ? (E(), i(Yd, {
11186
+ e.resizable ? (E(), i(af, {
10465
11187
  key: 0,
10466
11188
  orientation: d.value,
10467
11189
  value: u.value,
@@ -10484,13 +11206,13 @@ var Jd = [
10484
11206
  }, [M(t.$slots, "second", {}, void 0, !0)], 6)
10485
11207
  ], 2));
10486
11208
  }
10487
- }), [["__scopeId", "data-v-25b6f788"]]), Zd = { class: "coar-panel-layout" }, Qd = {
11209
+ }), [["__scopeId", "data-v-25b6f788"]]), sf = { class: "coar-panel-layout" }, cf = {
10488
11210
  key: 0,
10489
11211
  class: "coar-panel-layout__top"
10490
- }, $d = { class: "coar-panel-layout__body" }, ef = {
11212
+ }, lf = { class: "coar-panel-layout__body" }, uf = {
10491
11213
  key: 1,
10492
11214
  class: "coar-panel-layout__status"
10493
- }, tf = 6, nf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11215
+ }, df = 6, ff = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10494
11216
  __name: "CoarPanelLayout",
10495
11217
  props: {
10496
11218
  leftWidth: { default: void 0 },
@@ -10547,16 +11269,16 @@ var Jd = [
10547
11269
  }
10548
11270
  });
10549
11271
  }
10550
- let u = l(() => n.leftWidth, (e) => c("update:leftWidth", e), 240), d = l(() => n.rightWidth, (e) => c("update:rightWidth", e), 280), f = l(() => n.bottomHeight, (e) => c("update:bottomHeight", e), 200), p = H(), m = r(() => !!p.left && n.leftOpen), g = r(() => !!p.right && n.rightOpen), _ = r(() => !!p.bottom && n.bottomOpen), v = r(() => n.contentMinWidth + tf + (g.value ? d.value + tf : 0)), y = r(() => n.contentMinWidth + tf + (m.value ? u.value + tf : 0)), b = r(() => n.contentMinHeight + tf);
10551
- return (t, n) => (E(), o("div", Zd, [
10552
- t.$slots.top ? (E(), o("div", Qd, [M(t.$slots, "top", {}, void 0, !0)])) : a("", !0),
10553
- s("div", $d, [
11272
+ let u = l(() => n.leftWidth, (e) => c("update:leftWidth", e), 240), d = l(() => n.rightWidth, (e) => c("update:rightWidth", e), 280), f = l(() => n.bottomHeight, (e) => c("update:bottomHeight", e), 200), p = H(), m = r(() => !!p.left && n.leftOpen), g = r(() => !!p.right && n.rightOpen), _ = r(() => !!p.bottom && n.bottomOpen), v = r(() => n.contentMinWidth + df + (g.value ? d.value + df : 0)), y = r(() => n.contentMinWidth + df + (m.value ? u.value + df : 0)), b = r(() => n.contentMinHeight + df);
11273
+ return (t, n) => (E(), o("div", sf, [
11274
+ t.$slots.top ? (E(), o("div", cf, [M(t.$slots, "top", {}, void 0, !0)])) : a("", !0),
11275
+ s("div", lf, [
10554
11276
  m.value ? (E(), o("div", {
10555
11277
  key: 0,
10556
11278
  class: "coar-panel-layout__left",
10557
11279
  style: S({ flex: `0 0 ${z(u)}px` })
10558
11280
  }, [M(t.$slots, "left", {}, void 0, !0)], 4)) : a("", !0),
10559
- m.value && e.leftResizable ? (E(), i(Yd, {
11281
+ m.value && e.leftResizable ? (E(), i(af, {
10560
11282
  key: 1,
10561
11283
  orientation: "vertical",
10562
11284
  value: z(u),
@@ -10579,7 +11301,7 @@ var Jd = [
10579
11301
  class: "coar-panel-layout__content",
10580
11302
  style: S({ minHeight: `${e.contentMinHeight}px` })
10581
11303
  }, [M(t.$slots, "default", {}, void 0, !0)], 4),
10582
- _.value && e.bottomResizable ? (E(), i(Yd, {
11304
+ _.value && e.bottomResizable ? (E(), i(af, {
10583
11305
  key: 0,
10584
11306
  orientation: "horizontal",
10585
11307
  value: z(f),
@@ -10601,7 +11323,7 @@ var Jd = [
10601
11323
  style: S({ flex: `0 0 ${z(f)}px` })
10602
11324
  }, [M(t.$slots, "bottom", {}, void 0, !0)], 4)) : a("", !0)
10603
11325
  ], 4),
10604
- g.value && e.rightResizable ? (E(), i(Yd, {
11326
+ g.value && e.rightResizable ? (E(), i(af, {
10605
11327
  key: 2,
10606
11328
  orientation: "vertical",
10607
11329
  value: z(d),
@@ -10623,18 +11345,18 @@ var Jd = [
10623
11345
  style: S({ flex: `0 0 ${z(d)}px` })
10624
11346
  }, [M(t.$slots, "right", {}, void 0, !0)], 4)) : a("", !0)
10625
11347
  ]),
10626
- t.$slots.status ? (E(), o("div", ef, [M(t.$slots, "status", {}, void 0, !0)])) : a("", !0)
11348
+ t.$slots.status ? (E(), o("div", uf, [M(t.$slots, "status", {}, void 0, !0)])) : a("", !0)
10627
11349
  ]));
10628
11350
  }
10629
- }), [["__scopeId", "data-v-0656f78d"]]), rf = ["aria-label", "aria-disabled"], af = [
11351
+ }), [["__scopeId", "data-v-0656f78d"]]), pf = ["aria-label", "aria-disabled"], mf = [
10630
11352
  "disabled",
10631
11353
  "aria-pressed",
10632
11354
  "aria-label",
10633
11355
  "onClick"
10634
- ], of = {
11356
+ ], hf = {
10635
11357
  key: 1,
10636
11358
  class: "coar-segmented-control__label"
10637
- }, sf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11359
+ }, gf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10638
11360
  __name: "CoarSegmentedControl",
10639
11361
  props: /* @__PURE__ */ _({
10640
11362
  options: {},
@@ -10690,9 +11412,9 @@ var Jd = [
10690
11412
  name: e.icon,
10691
11413
  size: "auto",
10692
11414
  class: "coar-segmented-control__icon"
10693
- }, null, 8, ["name"])) : a("", !0), e.label ? (E(), o("span", of, I(e.label), 1)) : a("", !0)], 10, af))), 128))], 10, rf));
11415
+ }, null, 8, ["name"])) : a("", !0), e.label ? (E(), o("span", hf, I(e.label), 1)) : a("", !0)], 10, mf))), 128))], 10, pf));
10694
11416
  }
10695
- }), [["__scopeId", "data-v-72983826"]]), cf = ["aria-label"], lf = { class: "coar-breadcrumb-list" }, uf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11417
+ }), [["__scopeId", "data-v-72983826"]]), _f = ["aria-label"], vf = { class: "coar-breadcrumb-list" }, yf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10696
11418
  __name: "CoarBreadcrumb",
10697
11419
  props: {
10698
11420
  separator: { default: "/" },
@@ -10705,22 +11427,22 @@ var Jd = [
10705
11427
  class: b(["coar-breadcrumb", `coar-breadcrumb--${e.size}`]),
10706
11428
  "aria-label": e.ariaLabel,
10707
11429
  style: S({ "--coar-breadcrumb-separator": n.value })
10708
- }, [s("ol", lf, [M(t.$slots, "default", {}, void 0, !0)])], 14, cf));
11430
+ }, [s("ol", vf, [M(t.$slots, "default", {}, void 0, !0)])], 14, _f));
10709
11431
  }
10710
- }), [["__scopeId", "data-v-ed10cad5"]]), df = ["aria-current"], ff = {
11432
+ }), [["__scopeId", "data-v-ed10cad5"]]), bf = ["aria-current"], xf = {
10711
11433
  key: 0,
10712
11434
  class: "coar-breadcrumb-link coar-breadcrumb-link--active",
10713
11435
  "aria-current": "page"
10714
- }, pf = [
11436
+ }, Sf = [
10715
11437
  "href",
10716
11438
  "aria-disabled",
10717
11439
  "tabindex",
10718
11440
  "onClick"
10719
- ], mf = [
11441
+ ], Cf = [
10720
11442
  "href",
10721
11443
  "aria-disabled",
10722
11444
  "tabindex"
10723
- ], hf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11445
+ ], wf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10724
11446
  __name: "CoarBreadcrumbItem",
10725
11447
  props: {
10726
11448
  to: { default: void 0 },
@@ -10758,7 +11480,7 @@ var Jd = [
10758
11480
  "coar-breadcrumb-item--slot-only": f.value === "slot-only"
10759
11481
  }]),
10760
11482
  "aria-current": e.active ? "page" : void 0
10761
- }, [f.value === "active" ? (E(), o("span", ff, [M(t.$slots, "icon", {}, () => [e.icon ? (E(), i(Q, {
11483
+ }, [f.value === "active" ? (E(), o("span", xf, [M(t.$slots, "icon", {}, () => [e.icon ? (E(), i(Q, {
10762
11484
  key: 0,
10763
11485
  name: e.icon,
10764
11486
  size: "s",
@@ -10779,7 +11501,7 @@ var Jd = [
10779
11501
  name: e.icon,
10780
11502
  size: "s",
10781
11503
  class: "coar-breadcrumb-link__icon"
10782
- }, null, 8, ["name"])) : a("", !0)], !0), M(t.$slots, "default", {}, void 0, !0)], 10, pf)]),
11504
+ }, null, 8, ["name"])) : a("", !0)], !0), M(t.$slots, "default", {}, void 0, !0)], 10, Sf)]),
10783
11505
  _: 3
10784
11506
  }, 8, ["to"])) : f.value === "plain-link" ? (E(), o("a", {
10785
11507
  key: 2,
@@ -10793,14 +11515,14 @@ var Jd = [
10793
11515
  name: e.icon,
10794
11516
  size: "s",
10795
11517
  class: "coar-breadcrumb-link__icon"
10796
- }, null, 8, ["name"])) : a("", !0)], !0), M(t.$slots, "default", {}, void 0, !0)], 10, mf)) : M(t.$slots, "default", { key: 3 }, void 0, !0)], 10, df));
11518
+ }, null, 8, ["name"])) : a("", !0)], !0), M(t.$slots, "default", {}, void 0, !0)], 10, Cf)) : M(t.$slots, "default", { key: 3 }, void 0, !0)], 10, bf));
10797
11519
  }
10798
- }), [["__scopeId", "data-v-079c47de"]]), gf = ["aria-label"], _f = { class: "coar-pagination-nav" }, vf = ["disabled", "aria-label"], yf = ["disabled", "aria-label"], bf = ["aria-label"], xf = [
11520
+ }), [["__scopeId", "data-v-079c47de"]]), Tf = ["aria-label"], Ef = { class: "coar-pagination-nav" }, Df = ["disabled", "aria-label"], Of = ["disabled", "aria-label"], kf = ["aria-label"], Af = [
10799
11521
  "disabled",
10800
11522
  "aria-current",
10801
11523
  "aria-label",
10802
11524
  "onClick"
10803
- ], Sf = ["disabled", "aria-label"], Cf = ["disabled", "aria-label"], wf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11525
+ ], jf = ["disabled", "aria-label"], Mf = ["disabled", "aria-label"], Nf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10804
11526
  __name: "CoarPagination",
10805
11527
  props: /* @__PURE__ */ _({
10806
11528
  totalItems: {},
@@ -10849,7 +11571,7 @@ var Jd = [
10849
11571
  return (n, r) => (E(), o("nav", {
10850
11572
  class: b(["coar-pagination", { "coar-pagination--disabled": t.disabled }]),
10851
11573
  "aria-label": z(c)("coar.ui.pagination.nav", void 0, "Pagination")
10852
- }, [s("div", _f, [
11574
+ }, [s("div", Ef, [
10853
11575
  t.showFirstLast ? (E(), o("button", {
10854
11576
  key: 0,
10855
11577
  type: "button",
@@ -10860,7 +11582,7 @@ var Jd = [
10860
11582
  }, [u(Q, {
10861
11583
  name: "chevrons-left",
10862
11584
  size: "s"
10863
- })], 8, vf)) : a("", !0),
11585
+ })], 8, Df)) : a("", !0),
10864
11586
  s("button", {
10865
11587
  type: "button",
10866
11588
  class: "coar-pagination-button coar-pagination-button--nav",
@@ -10870,13 +11592,13 @@ var Jd = [
10870
11592
  }, [u(Q, {
10871
11593
  name: "chevron-left",
10872
11594
  size: "s"
10873
- })], 8, yf),
11595
+ })], 8, Of),
10874
11596
  (E(!0), o(e, null, j(h.value, (n, r) => (E(), o(e, { key: _(r, n) }, [n.type === "ellipsis" ? (E(), o("span", {
10875
11597
  key: 0,
10876
11598
  class: "coar-pagination-ellipsis",
10877
11599
  role: "separator",
10878
11600
  "aria-label": z(c)("coar.ui.pagination.morePage", void 0, "More pages")
10879
- }, "...", 8, bf)) : (E(), o("button", {
11601
+ }, "...", 8, kf)) : (E(), o("button", {
10880
11602
  key: 1,
10881
11603
  type: "button",
10882
11604
  class: b(["coar-pagination-button coar-pagination-button--page", { "coar-pagination-button--active": n.page === l.value }]),
@@ -10884,7 +11606,7 @@ var Jd = [
10884
11606
  "aria-current": n.page === l.value ? "page" : void 0,
10885
11607
  "aria-label": z(c)("coar.ui.pagination.goToPage", { page: n.page }, "Go to page " + n.page),
10886
11608
  onClick: (e) => g(n.page)
10887
- }, I(n.page), 11, xf))], 64))), 128)),
11609
+ }, I(n.page), 11, Af))], 64))), 128)),
10888
11610
  s("button", {
10889
11611
  type: "button",
10890
11612
  class: "coar-pagination-button coar-pagination-button--nav",
@@ -10894,7 +11616,7 @@ var Jd = [
10894
11616
  }, [u(Q, {
10895
11617
  name: "chevron-right",
10896
11618
  size: "s"
10897
- })], 8, Sf),
11619
+ })], 8, jf),
10898
11620
  t.showFirstLast ? (E(), o("button", {
10899
11621
  key: 1,
10900
11622
  type: "button",
@@ -10905,22 +11627,22 @@ var Jd = [
10905
11627
  }, [u(Q, {
10906
11628
  name: "chevrons-right",
10907
11629
  size: "s"
10908
- })], 8, Cf)) : a("", !0)
10909
- ])], 10, gf));
11630
+ })], 8, Mf)) : a("", !0)
11631
+ ])], 10, Tf));
10910
11632
  }
10911
11633
  }), [["__scopeId", "data-v-9e40bd44"]]);
10912
11634
  //#endregion
10913
11635
  //#region src/components/sidebar/sidebar-context.ts
10914
- function Tf(e) {
11636
+ function Pf(e) {
10915
11637
  return e === "top" || e === "bottom" ? "horizontal" : "vertical";
10916
11638
  }
10917
- var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Symbol("sidebar-side"), kf = Symbol("sidebar-flyout-icon-only"), Af = Symbol("sidebar-flyout-parent"), jf = ["aria-label"], Mf = {
11639
+ var Ff = Symbol("sidebar-collapsed"), If = Symbol("sidebar-icon-size"), Lf = Symbol("sidebar-side"), Rf = Symbol("sidebar-flyout-icon-only"), zf = Symbol("sidebar-flyout-parent"), Bf = ["aria-label"], Vf = {
10918
11640
  key: 0,
10919
11641
  class: "coar-sidebar__header"
10920
- }, Nf = { class: "coar-sidebar__content" }, Pf = {
11642
+ }, Hf = { class: "coar-sidebar__content" }, Uf = {
10921
11643
  key: 1,
10922
11644
  class: "coar-sidebar__footer"
10923
- }, Ff = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11645
+ }, Wf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
10924
11646
  __name: "CoarSidebar",
10925
11647
  props: {
10926
11648
  side: { default: void 0 },
@@ -10943,8 +11665,8 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
10943
11665
  },
10944
11666
  emits: ["update:collapsed"],
10945
11667
  setup(e) {
10946
- let t = e, n = r(() => t.side ?? t.position ?? "left"), i = r(() => Tf(n.value)), s = L(t, "collapsed"), c = L(t, "size");
10947
- D(Ef, s), D(Df, c), D(Of, n);
11668
+ let t = e, n = r(() => t.side ?? t.position ?? "left"), i = r(() => Pf(n.value)), s = L(t, "collapsed"), c = L(t, "size");
11669
+ D(Ff, s), D(If, c), D(Lf, n);
10948
11670
  let l = r(() => ({
10949
11671
  "coar-sidebar": !0,
10950
11672
  [`coar-sidebar--${t.variant}`]: !0,
@@ -10968,36 +11690,36 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
10968
11690
  "aria-label": e.ariaLabel || "Sidebar",
10969
11691
  class: b(l.value)
10970
11692
  }, [
10971
- n.$slots.header ? (E(), o("div", Mf, [M(n.$slots, "header", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0),
10972
- J((E(), o("div", Nf, [M(n.$slots, "default", { collapsed: t.collapsed }, void 0, !0)])), [[z(Ua), u.value]]),
10973
- n.$slots.footer ? (E(), o("div", Pf, [M(n.$slots, "footer", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0)
10974
- ], 10, jf));
11693
+ n.$slots.header ? (E(), o("div", Vf, [M(n.$slots, "header", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0),
11694
+ J((E(), o("div", Hf, [M(n.$slots, "default", { collapsed: t.collapsed }, void 0, !0)])), [[z(Ua), u.value]]),
11695
+ n.$slots.footer ? (E(), o("div", Uf, [M(n.$slots, "footer", { collapsed: t.collapsed }, void 0, !0)])) : a("", !0)
11696
+ ], 10, Bf));
10975
11697
  }
10976
- }), [["__scopeId", "data-v-656c121e"]]), If = [
11698
+ }), [["__scopeId", "data-v-656c121e"]]), Gf = [
10977
11699
  "href",
10978
11700
  "aria-disabled",
10979
11701
  "aria-current",
10980
11702
  "tabindex",
10981
11703
  "onClick"
10982
- ], Lf = {
11704
+ ], Kf = {
10983
11705
  class: "coar-sidebar-item__icon",
10984
11706
  "aria-hidden": "true"
10985
- }, Rf = { class: "coar-sidebar-item__label" }, zf = [
11707
+ }, qf = { class: "coar-sidebar-item__label" }, Jf = [
10986
11708
  "href",
10987
11709
  "aria-disabled",
10988
11710
  "aria-current",
10989
11711
  "tabindex"
10990
- ], Bf = {
11712
+ ], Yf = {
10991
11713
  class: "coar-sidebar-item__icon",
10992
11714
  "aria-hidden": "true"
10993
- }, Vf = { class: "coar-sidebar-item__label" }, Hf = [
11715
+ }, Xf = { class: "coar-sidebar-item__label" }, Zf = [
10994
11716
  "aria-disabled",
10995
11717
  "aria-current",
10996
11718
  "tabindex"
10997
- ], Uf = {
11719
+ ], Qf = {
10998
11720
  class: "coar-sidebar-item__icon",
10999
11721
  "aria-hidden": "true"
11000
- }, Wf = { class: "coar-sidebar-item__label" }, Gf = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11722
+ }, $f = { class: "coar-sidebar-item__label" }, ep = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11001
11723
  __name: "CoarSidebarItem",
11002
11724
  props: {
11003
11725
  label: {},
@@ -11014,7 +11736,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11014
11736
  },
11015
11737
  emits: ["click"],
11016
11738
  setup(e, { emit: t }) {
11017
- let n = e, a = t, c = m(Ef, A(!1)), l = m(Df, A("m")), d = m(Of, A("left")), f = m(kf, A(!1)), { RouterLink: p, hasRouterLink: h, warnIfMisconfigured: g } = bo();
11739
+ let n = e, a = t, c = m(Ff, A(!1)), l = m(If, A("m")), d = m(Lf, A("left")), f = m(Rf, A(!1)), { RouterLink: p, hasRouterLink: h, warnIfMisconfigured: g } = bo();
11018
11740
  G(() => n.to, (e) => g(e, "CoarSidebarItem"), { immediate: !0 });
11019
11741
  let _ = r(() => {
11020
11742
  switch (d.value) {
@@ -11031,7 +11753,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11031
11753
  content: n.label,
11032
11754
  placement: _.value,
11033
11755
  openDelay: 200
11034
- } : !1), y = r(() => Tf(d.value)), x = r(() => n.to !== void 0 && n.to !== null);
11756
+ } : !1), y = r(() => Pf(d.value)), x = r(() => n.to !== void 0 && n.to !== null);
11035
11757
  function S(e) {
11036
11758
  let t = n.active ?? e;
11037
11759
  return [
@@ -11076,10 +11798,10 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11076
11798
  "aria-current": C(t),
11077
11799
  tabindex: n.disabled ? -1 : void 0,
11078
11800
  onClick: (e) => T(e, r)
11079
- }, [s("span", Lf, [u(Q, {
11801
+ }, [s("span", Kf, [u(Q, {
11080
11802
  name: n.icon || "square-dashed",
11081
11803
  size: z(l)
11082
- }, null, 8, ["name", "size"])]), s("span", Rf, I(n.label), 1)], 10, If)), [[z(Bc), v.value]])]),
11804
+ }, null, 8, ["name", "size"])]), s("span", qf, I(n.label), 1)], 10, Gf)), [[z(Bc), v.value]])]),
11083
11805
  _: 1
11084
11806
  }, 8, ["to"])) : x.value ? J((E(), o("a", {
11085
11807
  key: 1,
@@ -11089,10 +11811,10 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11089
11811
  "aria-current": C(!1),
11090
11812
  tabindex: n.disabled ? -1 : void 0,
11091
11813
  onClick: T
11092
- }, [s("span", Bf, [u(Q, {
11814
+ }, [s("span", Yf, [u(Q, {
11093
11815
  name: n.icon || "square-dashed",
11094
11816
  size: z(l)
11095
- }, null, 8, ["name", "size"])]), s("span", Vf, I(n.label), 1)], 10, zf)), [[z(Bc), v.value]]) : J((E(), o("div", {
11817
+ }, null, 8, ["name", "size"])]), s("span", Xf, I(n.label), 1)], 10, Jf)), [[z(Bc), v.value]]) : J((E(), o("div", {
11096
11818
  key: 2,
11097
11819
  role: "menuitem",
11098
11820
  class: b(["coar-sidebar-item", S(!1)]),
@@ -11101,12 +11823,12 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11101
11823
  tabindex: n.disabled ? -1 : 0,
11102
11824
  onClick: w,
11103
11825
  onKeydown: D
11104
- }, [s("span", Uf, [u(Q, {
11826
+ }, [s("span", Qf, [u(Q, {
11105
11827
  name: n.icon || "square-dashed",
11106
11828
  size: z(l)
11107
- }, null, 8, ["name", "size"])]), s("span", Wf, I(n.label), 1)], 42, Hf)), [[z(Bc), v.value]]);
11829
+ }, null, 8, ["name", "size"])]), s("span", $f, I(n.label), 1)], 42, Zf)), [[z(Bc), v.value]]);
11108
11830
  }
11109
- }), [["__scopeId", "data-v-bf1b0b6e"]]), Kf = /* @__PURE__ */ d({
11831
+ }), [["__scopeId", "data-v-bf1b0b6e"]]), tp = /* @__PURE__ */ d({
11110
11832
  __name: "SidebarFlyoutProvider",
11111
11833
  props: {
11112
11834
  iconOnly: { type: Boolean },
@@ -11114,12 +11836,12 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11114
11836
  },
11115
11837
  setup(e) {
11116
11838
  let t = e;
11117
- return D(kf, L(t, "iconOnly")), D(Af, t.parentControl), (e, t) => M(e.$slots, "default");
11839
+ return D(Rf, L(t, "iconOnly")), D(zf, t.parentControl), (e, t) => M(e.$slots, "default");
11118
11840
  }
11119
- }), qf = ["id"], Jf = {
11841
+ }), np = ["id"], rp = {
11120
11842
  key: 0,
11121
11843
  class: "coar-sidebar-flyout__header"
11122
- }, Yf = { class: "coar-sidebar-flyout__items" }, Xf = /* @__PURE__ */ d({
11844
+ }, ip = { class: "coar-sidebar-flyout__items" }, ap = /* @__PURE__ */ d({
11123
11845
  __name: "CoarSidebarFlyoutPanel",
11124
11846
  props: {
11125
11847
  id: {
@@ -11145,7 +11867,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11145
11867
  },
11146
11868
  emits: ["flyoutEnter", "flyoutLeave"],
11147
11869
  setup(e) {
11148
- return (t, n) => (E(), i(Kf, {
11870
+ return (t, n) => (E(), i(tp, {
11149
11871
  "icon-only": e.iconOnly,
11150
11872
  "parent-control": e.parentControl
11151
11873
  }, {
@@ -11155,19 +11877,19 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11155
11877
  role: "menu",
11156
11878
  onMouseenter: n[0] ||= (e) => t.$emit("flyoutEnter"),
11157
11879
  onMouseleave: n[1] ||= (e) => t.$emit("flyoutLeave")
11158
- }, [e.iconOnly ? a("", !0) : (E(), o("div", Jf, I(e.label), 1)), s("div", Yf, [(E(), i(N({ render: e.renderContent })))])], 42, qf)]),
11880
+ }, [e.iconOnly ? a("", !0) : (E(), o("div", rp, I(e.label), 1)), s("div", ip, [(E(), i(N({ render: e.renderContent })))])], 42, np)]),
11159
11881
  _: 1
11160
11882
  }, 8, ["icon-only", "parent-control"]));
11161
11883
  }
11162
- }), Zf = [
11884
+ }), op = [
11163
11885
  "aria-expanded",
11164
11886
  "aria-disabled",
11165
11887
  "tabindex",
11166
11888
  "onKeydown"
11167
- ], Qf = {
11889
+ ], sp = {
11168
11890
  class: "coar-sidebar-group__icon",
11169
11891
  "aria-hidden": "true"
11170
- }, $f = { class: "coar-sidebar-group__caret" }, ep = { class: "coar-sidebar-group__label" }, tp = ["aria-hidden"], np = { class: "coar-sidebar-group__panel-inner" }, rp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11892
+ }, cp = { class: "coar-sidebar-group__caret" }, lp = { class: "coar-sidebar-group__label" }, up = ["aria-hidden"], dp = { class: "coar-sidebar-group__panel-inner" }, fp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11171
11893
  __name: "CoarSidebarGroup",
11172
11894
  props: /* @__PURE__ */ _({
11173
11895
  label: {},
@@ -11202,7 +11924,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11202
11924
  }),
11203
11925
  emits: /* @__PURE__ */ _(["triggerClick"], ["update:open"]),
11204
11926
  setup(e, { emit: t }) {
11205
- let n = `coar-sidebar-group-${B()}`, i = e, c = t, l = V(e, "open"), d = m(Ef, A(!1)), f = m(Df, A("m")), p = m(Of, A("left")), h = r(() => Tf(p.value)), _ = m(kf, A(!1)), v = r(() => i.iconOnly ?? _.value), y = r(() => l.value), x = r(() => i.mode === "flyout"), S = H(), w = A(!1), T = A(null), D = null, O = null, k = null, j = m(Af, null), N = {
11927
+ let n = `coar-sidebar-group-${B()}`, i = e, c = t, l = V(e, "open"), d = m(Ff, A(!1)), f = m(If, A("m")), p = m(Lf, A("left")), h = r(() => Pf(p.value)), _ = m(Rf, A(!1)), v = r(() => i.iconOnly ?? _.value), y = r(() => l.value), x = r(() => i.mode === "flyout"), S = H(), w = A(!1), T = A(null), D = null, O = null, k = null, j = m(zf, null), N = {
11206
11928
  cancelClose: () => {
11207
11929
  oe(), j?.cancelClose();
11208
11930
  },
@@ -11289,7 +12011,7 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11289
12011
  },
11290
12012
  content: {
11291
12013
  kind: "component",
11292
- component: g(Xf)
12014
+ component: g(ap)
11293
12015
  },
11294
12016
  inputs: {
11295
12017
  id: n,
@@ -11362,53 +12084,53 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11362
12084
  onMouseenter: X,
11363
12085
  onMouseleave: le
11364
12086
  }, [
11365
- s("span", Qf, [u(Q, {
12087
+ s("span", sp, [u(Q, {
11366
12088
  name: i.icon || "square-dashed",
11367
12089
  size: z(f)
11368
- }, null, 8, ["name", "size"]), s("span", $f, [u(Q, {
12090
+ }, null, 8, ["name", "size"]), s("span", cp, [u(Q, {
11369
12091
  name: x.value ? w.value ? U.value : R.value : y.value ? "minus" : "plus",
11370
12092
  size: "xs"
11371
12093
  }, null, 8, ["name"])])]),
11372
- s("span", ep, I(i.label), 1),
12094
+ s("span", lp, I(i.label), 1),
11373
12095
  u(Q, {
11374
12096
  name: x.value ? w.value ? U.value : R.value : y.value ? "minus" : "plus",
11375
12097
  size: "xs",
11376
12098
  class: "coar-sidebar-group__chevron",
11377
12099
  "aria-hidden": "true"
11378
12100
  }, null, 8, ["name"])
11379
- ], 42, Zf)), [[z(Bc), L.value]]), x.value ? a("", !0) : (E(), o("div", {
12101
+ ], 42, op)), [[z(Bc), L.value]]), x.value ? a("", !0) : (E(), o("div", {
11380
12102
  key: 0,
11381
12103
  id: n,
11382
12104
  class: b(["coar-sidebar-group__panel", { "coar-sidebar-group__panel--open": y.value }]),
11383
12105
  "aria-hidden": !y.value || void 0,
11384
12106
  role: "group"
11385
- }, [s("div", np, [M(e.$slots, "default", {}, void 0, !0)])], 10, tp))], 2));
12107
+ }, [s("div", dp, [M(e.$slots, "default", {}, void 0, !0)])], 10, up))], 2));
11386
12108
  }
11387
- }), [["__scopeId", "data-v-898af6bb"]]), ip = {
12109
+ }), [["__scopeId", "data-v-898af6bb"]]), pp = {
11388
12110
  key: 0,
11389
12111
  class: "coar-sidebar-heading__text"
11390
- }, ap = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12112
+ }, mp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11391
12113
  __name: "CoarSidebarHeading",
11392
12114
  props: { label: {} },
11393
12115
  setup(e) {
11394
- let t = e, n = m(Ef, A(!1));
12116
+ let t = e, n = m(Ff, A(!1));
11395
12117
  return (e, r) => (E(), o("div", {
11396
12118
  class: b(["coar-sidebar-heading", { "coar-sidebar-heading--collapsed": z(n) }]),
11397
12119
  role: "heading",
11398
12120
  "aria-level": "3"
11399
- }, [z(n) ? a("", !0) : (E(), o("span", ip, I(t.label), 1))], 2));
12121
+ }, [z(n) ? a("", !0) : (E(), o("span", pp, I(t.label), 1))], 2));
11400
12122
  }
11401
- }), [["__scopeId", "data-v-99fb2c2f"]]), op = ["aria-orientation"], sp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12123
+ }), [["__scopeId", "data-v-99fb2c2f"]]), hp = ["aria-orientation"], gp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11402
12124
  __name: "CoarSidebarDivider",
11403
12125
  setup(e) {
11404
- let t = m(Ef, A(!1)), n = m(Of, A("left")), i = r(() => Tf(n.value));
12126
+ let t = m(Ff, A(!1)), n = m(Lf, A("left")), i = r(() => Pf(n.value));
11405
12127
  return (e, n) => (E(), o("div", {
11406
12128
  class: b(["coar-sidebar-divider", [`coar-sidebar-divider--${i.value}`, { "coar-sidebar-divider--collapsed": z(t) }]]),
11407
12129
  role: "separator",
11408
12130
  "aria-orientation": i.value === "horizontal" ? "vertical" : "horizontal"
11409
- }, null, 10, op));
12131
+ }, null, 10, hp));
11410
12132
  }
11411
- }), [["__scopeId", "data-v-9bdfe627"]]), cp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12133
+ }), [["__scopeId", "data-v-9bdfe627"]]), _p = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11412
12134
  __name: "CoarSidebarSpacer",
11413
12135
  props: {
11414
12136
  height: { default: void 0 },
@@ -11425,16 +12147,16 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11425
12147
  "aria-hidden": "true"
11426
12148
  }, null, 6));
11427
12149
  }
11428
- }), [["__scopeId", "data-v-502139f5"]]), lp = {
12150
+ }), [["__scopeId", "data-v-502139f5"]]), vp = {
11429
12151
  key: 0,
11430
12152
  class: "coar-navbar__start"
11431
- }, up = {
12153
+ }, yp = {
11432
12154
  key: 1,
11433
12155
  class: "coar-navbar__center"
11434
- }, dp = {
12156
+ }, bp = {
11435
12157
  key: 2,
11436
12158
  class: "coar-navbar__end"
11437
- }, fp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12159
+ }, xp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11438
12160
  __name: "CoarNavbar",
11439
12161
  props: {
11440
12162
  elevated: {
@@ -11454,17 +12176,17 @@ var Ef = Symbol("sidebar-collapsed"), Df = Symbol("sidebar-icon-size"), Of = Sym
11454
12176
  }]),
11455
12177
  role: "banner"
11456
12178
  }, [
11457
- t.$slots.start ? (E(), o("div", lp, [M(t.$slots, "start", {}, void 0, !0)])) : a("", !0),
12179
+ t.$slots.start ? (E(), o("div", vp, [M(t.$slots, "start", {}, void 0, !0)])) : a("", !0),
11458
12180
  n[0] ||= s("div", { class: "coar-navbar__spacer" }, null, -1),
11459
- t.$slots.center ? (E(), o("div", up, [M(t.$slots, "center", {}, void 0, !0)])) : a("", !0),
12181
+ t.$slots.center ? (E(), o("div", yp, [M(t.$slots, "center", {}, void 0, !0)])) : a("", !0),
11460
12182
  n[1] ||= s("div", { class: "coar-navbar__spacer" }, null, -1),
11461
- t.$slots.end ? (E(), o("div", dp, [M(t.$slots, "end", {}, void 0, !0)])) : a("", !0)
12183
+ t.$slots.end ? (E(), o("div", bp, [M(t.$slots, "end", {}, void 0, !0)])) : a("", !0)
11462
12184
  ], 2));
11463
12185
  }
11464
12186
  }), [["__scopeId", "data-v-c7eb4106"]]);
11465
12187
  //#endregion
11466
12188
  //#region src/components/date-time/_shared/time-helpers.ts
11467
- function pp(e) {
12189
+ function Sp(e) {
11468
12190
  try {
11469
12191
  return new Intl.DateTimeFormat(e, {
11470
12192
  hour: "numeric",
@@ -11474,13 +12196,13 @@ function pp(e) {
11474
12196
  return !1;
11475
12197
  }
11476
12198
  }
11477
- function mp(e, t, n) {
12199
+ function Cp(e, t, n) {
11478
12200
  let r = String(t).padStart(2, "0");
11479
12201
  if (n) return `${String(e).padStart(2, "0")}:${r}`;
11480
12202
  let i = e >= 12 ? "PM" : "AM", a = e % 12;
11481
12203
  return a === 0 && (a = 12), `${a}:${r} ${i}`;
11482
12204
  }
11483
- function hp(e) {
12205
+ function wp(e) {
11484
12206
  if (!e || typeof e != "string") return null;
11485
12207
  let t = e.trim().toUpperCase(), n = t.match(/^(\d{1,2}):(\d{2})\s*(AM|PM)$/);
11486
12208
  if (n) {
@@ -11500,41 +12222,41 @@ function hp(e) {
11500
12222
  }
11501
12223
  return null;
11502
12224
  }
11503
- function gp(e) {
12225
+ function Tp(e) {
11504
12226
  let t = e >= 12 ? "PM" : "AM", n = e % 12;
11505
12227
  return n === 0 && (n = 12), {
11506
12228
  hours: n,
11507
12229
  period: t
11508
12230
  };
11509
12231
  }
11510
- function _p(e, t) {
12232
+ function Ep(e, t) {
11511
12233
  return t === "AM" ? e === 12 ? 0 : e : e === 12 ? 12 : e + 12;
11512
12234
  }
11513
- function vp(e, t) {
12235
+ function Dp(e, t) {
11514
12236
  let n = (e + t) % 24;
11515
12237
  return n < 0 ? n + 24 : n;
11516
12238
  }
11517
- function yp(e, t, n = 1) {
12239
+ function Op(e, t, n = 1) {
11518
12240
  let r = e + t * n, i = 0, a = r;
11519
12241
  return r >= 60 ? (i = Math.floor(r / 60), a = r % 60) : r < 0 && (i = Math.floor(r / 60), a = (r % 60 + 60) % 60), {
11520
12242
  minutes: a,
11521
12243
  hourDelta: i
11522
12244
  };
11523
12245
  }
11524
- function bp(e, t) {
12246
+ function kp(e, t) {
11525
12247
  return Math.round(e / t) * t;
11526
12248
  }
11527
12249
  //#endregion
11528
12250
  //#region src/components/date-time/time-picker/CoarTimePicker.vue?vue&type=script&setup=true&lang.ts
11529
- var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-picker__hours" }, Cp = ["disabled", "aria-label"], wp = [
12251
+ var Ap = ["aria-label"], jp = { class: "coar-time-picker__spinner coar-time-picker__hours" }, Mp = ["disabled", "aria-label"], Np = [
11530
12252
  "aria-valuenow",
11531
12253
  "aria-valuemin",
11532
12254
  "aria-valuemax",
11533
12255
  "aria-label"
11534
- ], Tp = ["disabled", "aria-label"], Ep = { class: "coar-time-picker__spinner coar-time-picker__minutes" }, Dp = ["disabled", "aria-label"], Op = ["aria-valuenow", "aria-label"], kp = ["disabled", "aria-label"], Ap = {
12256
+ ], Pp = ["disabled", "aria-label"], Fp = { class: "coar-time-picker__spinner coar-time-picker__minutes" }, Ip = ["disabled", "aria-label"], Lp = ["aria-valuenow", "aria-label"], Rp = ["disabled", "aria-label"], zp = {
11535
12257
  key: 0,
11536
12258
  class: "coar-time-picker__spinner coar-time-picker__period"
11537
- }, jp = ["disabled"], Mp = ["aria-valuenow", "aria-valuetext"], Np = ["disabled"], Pp = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12259
+ }, Bp = ["disabled"], Vp = ["aria-valuenow", "aria-valuetext"], Hp = ["disabled"], Up = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11538
12260
  __name: "CoarTimePicker",
11539
12261
  props: /* @__PURE__ */ _({
11540
12262
  size: { default: "m" },
@@ -11563,9 +12285,9 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11563
12285
  setup(e) {
11564
12286
  let t = e, n = V(e, "modelValue"), { t: i } = Y(), c = ne(), l = r(() => t.locale ?? c?.language.value ?? navigator.language), d = A(9), f = A(0), p = A("AM");
11565
12287
  G(n, (e) => {
11566
- e && (d.value = e.hours, f.value = bp(e.minutes, t.minuteStep), p.value = e.hours >= 12 ? "PM" : "AM");
12288
+ e && (d.value = e.hours, f.value = kp(e.minutes, t.minuteStep), p.value = e.hours >= 12 ? "PM" : "AM");
11567
12289
  }, { immediate: !0 });
11568
- let m = r(() => t.use24Hour === !0 ? !1 : t.use24Hour === !1 ? !0 : pp(l.value)), h = r(() => m.value ? gp(d.value).hours : d.value), g = r(() => f.value), _ = r(() => +!!m.value), v = r(() => m.value ? 12 : 23), y = r(() => t.size === "xs" ? "xs" : "s");
12290
+ let m = r(() => t.use24Hour === !0 ? !1 : t.use24Hour === !1 ? !0 : Sp(l.value)), h = r(() => m.value ? Tp(d.value).hours : d.value), g = r(() => f.value), _ = r(() => +!!m.value), v = r(() => m.value ? 12 : 23), y = r(() => t.size === "xs" ? "xs" : "s");
11569
12291
  function x(e) {
11570
12292
  return e.hours * 60 + e.minutes;
11571
12293
  }
@@ -11600,11 +12322,11 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11600
12322
  if (!(t.disabled || t.readonly || S.value)) {
11601
12323
  if (m.value) {
11602
12324
  let e = h.value, t = e + 1;
11603
- if (t > 12 && (t = 1), d.value = _p(t, p.value), e === 11) {
12325
+ if (t > 12 && (t = 1), d.value = Ep(t, p.value), e === 11) {
11604
12326
  F();
11605
12327
  return;
11606
12328
  }
11607
- } else d.value = vp(d.value, 1);
12329
+ } else d.value = Dp(d.value, 1);
11608
12330
  k();
11609
12331
  }
11610
12332
  }
@@ -11612,28 +12334,28 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11612
12334
  if (!(t.disabled || t.readonly || C.value)) {
11613
12335
  if (m.value) {
11614
12336
  let e = h.value, t = e - 1;
11615
- if (t < 1 && (t = 12), d.value = _p(t, p.value), e === 12) {
12337
+ if (t < 1 && (t = 12), d.value = Ep(t, p.value), e === 12) {
11616
12338
  F();
11617
12339
  return;
11618
12340
  }
11619
- } else d.value = vp(d.value, -1);
12341
+ } else d.value = Dp(d.value, -1);
11620
12342
  k();
11621
12343
  }
11622
12344
  }
11623
12345
  function N() {
11624
12346
  if (t.disabled || t.readonly || w.value) return;
11625
- let { minutes: e, hourDelta: n } = yp(f.value, 1, t.minuteStep);
11626
- f.value = e, n !== 0 && (d.value = vp(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), k();
12347
+ let { minutes: e, hourDelta: n } = Op(f.value, 1, t.minuteStep);
12348
+ f.value = e, n !== 0 && (d.value = Dp(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), k();
11627
12349
  }
11628
12350
  function P() {
11629
12351
  if (t.disabled || t.readonly || T.value) return;
11630
- let { minutes: e, hourDelta: n } = yp(f.value, -1, t.minuteStep);
11631
- f.value = e, n !== 0 && (d.value = vp(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), k();
12352
+ let { minutes: e, hourDelta: n } = Op(f.value, -1, t.minuteStep);
12353
+ f.value = e, n !== 0 && (d.value = Dp(d.value, n), p.value = d.value >= 12 ? "PM" : "AM"), k();
11632
12354
  }
11633
12355
  function F() {
11634
12356
  if (t.disabled || t.readonly || !m.value) return;
11635
12357
  let e = p.value === "AM" ? "PM" : "AM";
11636
- e === "AM" && D.value || e === "PM" && O.value || (p.value = e, d.value = _p(h.value, e), k());
12358
+ e === "AM" && D.value || e === "PM" && O.value || (p.value = e, d.value = Ep(h.value, e), k());
11637
12359
  }
11638
12360
  function L(e) {
11639
12361
  t.disabled || t.readonly || (e.key === "ArrowUp" ? (e.preventDefault(), j()) : e.key === "ArrowDown" && (e.preventDefault(), M()));
@@ -11657,7 +12379,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11657
12379
  role: "group",
11658
12380
  "aria-label": e.ariaLabel
11659
12381
  }, [
11660
- s("div", Sp, [
12382
+ s("div", jp, [
11661
12383
  s("button", {
11662
12384
  type: "button",
11663
12385
  class: "coar-time-picker__btn coar-time-picker__btn--up",
@@ -11668,7 +12390,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11668
12390
  }, [u(Q, {
11669
12391
  name: "chevron-up",
11670
12392
  size: y.value
11671
- }, null, 8, ["size"])], 8, Cp),
12393
+ }, null, 8, ["size"])], 8, Mp),
11672
12394
  s("div", {
11673
12395
  class: "coar-time-picker__value",
11674
12396
  role: "spinbutton",
@@ -11678,7 +12400,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11678
12400
  "aria-valuemax": v.value,
11679
12401
  "aria-label": z(i)("coar.ui.timePicker.hours", void 0, "Hours"),
11680
12402
  onKeydown: L
11681
- }, I(h.value.toString().padStart(2, "0")), 41, wp),
12403
+ }, I(h.value.toString().padStart(2, "0")), 41, Np),
11682
12404
  s("button", {
11683
12405
  type: "button",
11684
12406
  class: "coar-time-picker__btn coar-time-picker__btn--down",
@@ -11689,13 +12411,13 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11689
12411
  }, [u(Q, {
11690
12412
  name: "chevron-down",
11691
12413
  size: y.value
11692
- }, null, 8, ["size"])], 8, Tp)
12414
+ }, null, 8, ["size"])], 8, Pp)
11693
12415
  ]),
11694
12416
  n[0] ||= s("span", {
11695
12417
  class: "coar-time-picker__separator",
11696
12418
  "aria-hidden": "true"
11697
12419
  }, ":", -1),
11698
- s("div", Ep, [
12420
+ s("div", Fp, [
11699
12421
  s("button", {
11700
12422
  type: "button",
11701
12423
  class: "coar-time-picker__btn coar-time-picker__btn--up",
@@ -11706,7 +12428,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11706
12428
  }, [u(Q, {
11707
12429
  name: "chevron-up",
11708
12430
  size: y.value
11709
- }, null, 8, ["size"])], 8, Dp),
12431
+ }, null, 8, ["size"])], 8, Ip),
11710
12432
  s("div", {
11711
12433
  class: "coar-time-picker__value",
11712
12434
  role: "spinbutton",
@@ -11716,7 +12438,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11716
12438
  "aria-valuemax": "59",
11717
12439
  "aria-label": z(i)("coar.ui.timePicker.minutes", void 0, "Minutes"),
11718
12440
  onKeydown: R
11719
- }, I(g.value.toString().padStart(2, "0")), 41, Op),
12441
+ }, I(g.value.toString().padStart(2, "0")), 41, Lp),
11720
12442
  s("button", {
11721
12443
  type: "button",
11722
12444
  class: "coar-time-picker__btn coar-time-picker__btn--down",
@@ -11727,9 +12449,9 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11727
12449
  }, [u(Q, {
11728
12450
  name: "chevron-down",
11729
12451
  size: y.value
11730
- }, null, 8, ["size"])], 8, kp)
12452
+ }, null, 8, ["size"])], 8, Rp)
11731
12453
  ]),
11732
- m.value ? (E(), o("div", Ap, [
12454
+ m.value ? (E(), o("div", zp, [
11733
12455
  s("button", {
11734
12456
  type: "button",
11735
12457
  class: "coar-time-picker__btn coar-time-picker__btn--up",
@@ -11740,7 +12462,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11740
12462
  }, [u(Q, {
11741
12463
  name: "chevron-up",
11742
12464
  size: y.value
11743
- }, null, 8, ["size"])], 8, jp),
12465
+ }, null, 8, ["size"])], 8, Bp),
11744
12466
  s("div", {
11745
12467
  class: "coar-time-picker__value coar-time-picker__period-value",
11746
12468
  role: "spinbutton",
@@ -11751,7 +12473,7 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11751
12473
  "aria-valuetext": p.value,
11752
12474
  "aria-label": "AM/PM",
11753
12475
  onKeydown: B
11754
- }, I(p.value), 41, Mp),
12476
+ }, I(p.value), 41, Vp),
11755
12477
  s("button", {
11756
12478
  type: "button",
11757
12479
  class: "coar-time-picker__btn coar-time-picker__btn--down",
@@ -11762,14 +12484,14 @@ var xp = ["aria-label"], Sp = { class: "coar-time-picker__spinner coar-time-pick
11762
12484
  }, [u(Q, {
11763
12485
  name: "chevron-down",
11764
12486
  size: y.value
11765
- }, null, 8, ["size"])], 8, Np)
12487
+ }, null, 8, ["size"])], 8, Hp)
11766
12488
  ])) : a("", !0)
11767
- ], 8, xp)], 2));
12489
+ ], 8, Ap)], 2));
11768
12490
  }
11769
12491
  }), [["__scopeId", "data-v-a5cd4780"]]);
11770
12492
  //#endregion
11771
12493
  //#region src/components/date-time/_shared/date-helpers.ts
11772
- function Fp(e) {
12494
+ function Wp(e) {
11773
12495
  try {
11774
12496
  let t = new Intl.DateTimeFormat(e).formatToParts(new Date(2024, 0, 15)), n = t.findIndex((e) => e.type === "day"), r = t.findIndex((e) => e.type === "month"), i = t.findIndex((e) => e.type === "year");
11775
12497
  return n === -1 || r === -1 || i === -1 ? null : n < r && r < i ? "dd.mm.yyyy" : r < n && n < i ? "mm/dd/yyyy" : i < r && r < n ? "yyyy-mm-dd" : null;
@@ -11777,7 +12499,7 @@ function Fp(e) {
11777
12499
  return null;
11778
12500
  }
11779
12501
  }
11780
- function Ip(e) {
12502
+ function Gp(e) {
11781
12503
  try {
11782
12504
  let t = new Intl.Locale(e);
11783
12505
  return (t.getWeekInfo?.() ?? t.weekInfo)?.firstDay === 7 ? 7 : 1;
@@ -11785,10 +12507,10 @@ function Ip(e) {
11785
12507
  return 1;
11786
12508
  }
11787
12509
  }
11788
- function Lp(e) {
12510
+ function Kp(e) {
11789
12511
  return e.includes(".") ? "." : e.includes("/") ? "/" : "-";
11790
12512
  }
11791
- function Rp(e, t) {
12513
+ function qp(e, t) {
11792
12514
  let n = new Intl.DateTimeFormat(e, { weekday: "short" }), r = [];
11793
12515
  for (let e = 0; e < 7; e++) {
11794
12516
  let t = new Date(2024, 0, 1 + e);
@@ -11800,8 +12522,8 @@ function Rp(e, t) {
11800
12522
  }
11801
12523
  return r;
11802
12524
  }
11803
- function zp(e, t) {
11804
- let n = Lp(t), r = String(e.day).padStart(2, "0"), i = String(e.month).padStart(2, "0"), a = String(e.year);
12525
+ function Jp(e, t) {
12526
+ let n = Kp(t), r = String(e.day).padStart(2, "0"), i = String(e.month).padStart(2, "0"), a = String(e.year);
11805
12527
  switch (t) {
11806
12528
  case "dd.mm.yyyy":
11807
12529
  case "dd/mm/yyyy": return `${r}${n}${i}${n}${a}`;
@@ -11810,9 +12532,9 @@ function zp(e, t) {
11810
12532
  default: return `${r}${n}${i}${n}${a}`;
11811
12533
  }
11812
12534
  }
11813
- function Bp(e, t, n) {
12535
+ function Yp(e, t, n) {
11814
12536
  if (!e) return null;
11815
- let r = Lp(t), i = e.split(r);
12537
+ let r = Kp(t), i = e.split(r);
11816
12538
  if (i.length !== 3 || i.some((e) => e.length === 0 || !/^\d+$/.test(e))) return null;
11817
12539
  let a, o, s;
11818
12540
  try {
@@ -11840,19 +12562,19 @@ function Bp(e, t, n) {
11840
12562
  return null;
11841
12563
  }
11842
12564
  }
11843
- function Vp(e) {
12565
+ function Xp(e) {
11844
12566
  return new Date(e.year, e.month - 1, e.day);
11845
12567
  }
11846
- function Hp(e) {
11847
- let t = Vp(e), n = t.getDay() || 7;
12568
+ function Zp(e) {
12569
+ let t = Xp(e), n = t.getDay() || 7;
11848
12570
  t.setDate(t.getDate() + 4 - n);
11849
12571
  let r = new Date(t.getFullYear(), 0, 1);
11850
12572
  return Math.ceil(((t.getTime() - r.getTime()) / 864e5 + 1) / 7);
11851
12573
  }
11852
- function Up(e, t) {
12574
+ function Qp(e, t) {
11853
12575
  return t?.min && X.PlainDate.compare(e, t.min) < 0 ? t.min : t?.max && X.PlainDate.compare(e, t.max) > 0 ? t.max : e;
11854
12576
  }
11855
- function Wp(e, t) {
12577
+ function $p(e, t) {
11856
12578
  let n = e.toPlainDate({ day: 1 }), r = e.daysInMonth, i = n.dayOfWeek, a;
11857
12579
  a = t === 1 ? (i - 1 + 7) % 7 : i % 7;
11858
12580
  let o = [];
@@ -11876,20 +12598,20 @@ function Wp(e, t) {
11876
12598
  }
11877
12599
  //#endregion
11878
12600
  //#region src/components/date-time/scrollable-calendar/CoarScrollableCalendar.vue?vue&type=script&setup=true&lang.ts
11879
- var Gp = {
12601
+ var em = {
11880
12602
  key: 0,
11881
12603
  class: "coar-scrollable-calendar__week-spacer"
11882
- }, Kp = ["id", "data-year-month"], qp = { class: "coar-scrollable-calendar__month-name" }, Jp = { class: "coar-scrollable-calendar__month-year" }, Yp = {
12604
+ }, tm = ["id", "data-year-month"], nm = { class: "coar-scrollable-calendar__month-name" }, rm = { class: "coar-scrollable-calendar__month-year" }, im = {
11883
12605
  key: 0,
11884
12606
  class: "coar-scrollable-calendar__week-number"
11885
- }, Xp = [
12607
+ }, am = [
11886
12608
  "disabled",
11887
12609
  "tabindex",
11888
12610
  "data-date",
11889
12611
  "aria-selected",
11890
12612
  "aria-current",
11891
12613
  "onClick"
11892
- ], Zp = 12, Qp = 12, $p = 6, em = 25, tm = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12614
+ ], om = 12, sm = 12, cm = 6, lm = 25, um = /* @__PURE__ */ Z(/* @__PURE__ */ d({
11893
12615
  __name: "CoarScrollableCalendar",
11894
12616
  props: /* @__PURE__ */ _({
11895
12617
  min: { default: null },
@@ -11915,13 +12637,13 @@ var Gp = {
11915
12637
  setup(t, { emit: n }) {
11916
12638
  let i = t, c = V(t, "modelValue"), l = V(t, "activeMonth"), u = n, d = ne(), f = r(() => i.locale ?? d?.language.value ?? navigator.language), p = r(() => {
11917
12639
  if (i.dateFormatConfig) return i.dateFormatConfig;
11918
- let e = Fp(f.value), t = Ip(f.value);
12640
+ let e = Wp(f.value), t = Gp(f.value);
11919
12641
  return {
11920
12642
  pattern: e ?? "dd.mm.yyyy",
11921
12643
  firstDayOfWeek: t
11922
12644
  };
11923
12645
  }), m = r(() => p.value.firstDayOfWeek), h = r(() => X.Now.plainDateISO()), g = r(() => {
11924
- let e = Rp(f.value, m.value), t = m.value;
12646
+ let e = qp(f.value, m.value), t = m.value;
11925
12647
  return e.map((e, n) => {
11926
12648
  let r;
11927
12649
  return r = t === 1 ? n + 1 : n === 0 ? 7 : n, {
@@ -11929,7 +12651,7 @@ var Gp = {
11929
12651
  isWeekend: r === 6 || r === 7
11930
12652
  };
11931
12653
  });
11932
- }), _ = A(X.Now.plainDateISO().toPlainYearMonth().subtract({ months: Zp })), v = A(X.Now.plainDateISO().toPlainYearMonth().add({ months: Qp })), x = A(null), S = A(null), T = A(!1), D = !1, O = !1, k = !1;
12654
+ }), _ = A(X.Now.plainDateISO().toPlainYearMonth().subtract({ months: om })), v = A(X.Now.plainDateISO().toPlainYearMonth().add({ months: sm })), x = A(null), S = A(null), T = A(!1), D = !1, O = !1, k = !1;
11933
12655
  function M() {
11934
12656
  let e = S.value;
11935
12657
  return e ? e.querySelector("[data-overlayscrollbars-viewport]") ?? e : null;
@@ -11956,8 +12678,8 @@ var Gp = {
11956
12678
  };
11957
12679
  }
11958
12680
  function F(e) {
11959
- let t = f.value, n = new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(e.year, e.month - 1, 1)), r = Wp(e, m.value), i = r.map((e) => P(e.date, e.isOutsideMonth)), a = [];
11960
- for (let e = 0; e < 6; e++) a.push(Hp(r[e * 7].date));
12681
+ let t = f.value, n = new Intl.DateTimeFormat(t, { month: "long" }).format(new Date(e.year, e.month - 1, 1)), r = $p(e, m.value), i = r.map((e) => P(e.date, e.isOutsideMonth)), a = [];
12682
+ for (let e = 0; e < 6; e++) a.push(Zp(r[e * 7].date));
11961
12683
  return {
11962
12684
  yearMonth: e,
11963
12685
  monthName: n,
@@ -12048,7 +12770,7 @@ var Gp = {
12048
12770
  if (k) return;
12049
12771
  k = !0;
12050
12772
  let e = M(), t = e?.scrollHeight ?? 0, n = i.min?.toPlainYearMonth() ?? null, r = _.value, a = [];
12051
- for (let e = 0; e < $p; e++) {
12773
+ for (let e = 0; e < cm; e++) {
12052
12774
  let e = r.subtract({ months: 1 });
12053
12775
  if (n && X.PlainYearMonth.compare(e, n) < 0) break;
12054
12776
  r = e, a.unshift(F(r));
@@ -12069,7 +12791,7 @@ var Gp = {
12069
12791
  if (k) return;
12070
12792
  k = !0;
12071
12793
  let e = i.max?.toPlainYearMonth() ?? null, t = v.value, n = [];
12072
- for (let r = 0; r < $p; r++) {
12794
+ for (let r = 0; r < cm; r++) {
12073
12795
  let r = t.add({ months: 1 });
12074
12796
  if (e && X.PlainYearMonth.compare(r, e) > 0) break;
12075
12797
  t = r, n.push(F(t));
@@ -12084,14 +12806,14 @@ var Gp = {
12084
12806
  }
12085
12807
  function Y() {
12086
12808
  let e = R.value;
12087
- if (e.length <= em) return;
12088
- let t = e.slice(0, em);
12809
+ if (e.length <= lm) return;
12810
+ let t = e.slice(0, lm);
12089
12811
  R.value = t, v.value = t[t.length - 1].yearMonth;
12090
12812
  }
12091
12813
  function re() {
12092
12814
  let e = R.value;
12093
- if (e.length <= em) return;
12094
- let t = e.length - em, n = e.slice(t);
12815
+ if (e.length <= lm) return;
12816
+ let t = e.length - lm, n = e.slice(t);
12095
12817
  R.value = n, _.value = n[0].yearMonth;
12096
12818
  }
12097
12819
  function ie(e) {
@@ -12110,7 +12832,7 @@ var Gp = {
12110
12832
  r = n.add({ years: e });
12111
12833
  break;
12112
12834
  }
12113
- r = Up(r, {
12835
+ r = Qp(r, {
12114
12836
  min: i.min,
12115
12837
  max: i.max
12116
12838
  }), x.value = r;
@@ -12174,7 +12896,7 @@ var Gp = {
12174
12896
  }), (n, r) => (E(), o("div", {
12175
12897
  class: "coar-scrollable-calendar",
12176
12898
  onKeydown: oe
12177
- }, [s("div", { class: b(["coar-scrollable-calendar__weekdays", { "coar-scrollable-calendar__weekdays--with-weeks": t.showWeekNumbers }]) }, [t.showWeekNumbers ? (E(), o("span", Gp)) : a("", !0), (E(!0), o(e, null, j(g.value, (e) => (E(), o("span", {
12899
+ }, [s("div", { class: b(["coar-scrollable-calendar__weekdays", { "coar-scrollable-calendar__weekdays--with-weeks": t.showWeekNumbers }]) }, [t.showWeekNumbers ? (E(), o("span", em)) : a("", !0), (E(!0), o(e, null, j(g.value, (e) => (E(), o("span", {
12178
12900
  key: e.name,
12179
12901
  class: b(["coar-scrollable-calendar__weekday", { "coar-scrollable-calendar__weekday--weekend": t.highlightWeekends && e.isWeekend }])
12180
12902
  }, I(e.name), 3))), 128))], 2), s("div", { class: b(["coar-scrollable-calendar__months-wrapper", { "coar-scrollable-calendar__months-wrapper--ready": T.value }]) }, [J((E(), o("div", {
@@ -12186,10 +12908,10 @@ var Gp = {
12186
12908
  key: n.yearMonth.toString(),
12187
12909
  "data-year-month": n.yearMonth.toString(),
12188
12910
  class: "coar-scrollable-calendar__month"
12189
- }, [s("div", { class: b(["coar-scrollable-calendar__month-header", { "coar-scrollable-calendar__month-header--with-weeks": t.showWeekNumbers }]) }, [s("span", qp, I(n.monthName), 1), s("span", Jp, I(n.year), 1)], 2), s("div", {
12911
+ }, [s("div", { class: b(["coar-scrollable-calendar__month-header", { "coar-scrollable-calendar__month-header--with-weeks": t.showWeekNumbers }]) }, [s("span", nm, I(n.monthName), 1), s("span", rm, I(n.year), 1)], 2), s("div", {
12190
12912
  class: b(["coar-scrollable-calendar__grid", { "coar-scrollable-calendar__grid--with-weeks": t.showWeekNumbers }]),
12191
12913
  role: "grid"
12192
- }, [(E(!0), o(e, null, j(n.days, (r, i) => (E(), o(e, { key: r.date.toString() }, [t.showWeekNumbers && i % 7 == 0 ? (E(), o("span", Yp, I(n.weekNumbers[i / 7]), 1)) : a("", !0), s("button", {
12914
+ }, [(E(!0), o(e, null, j(n.days, (r, i) => (E(), o(e, { key: r.date.toString() }, [t.showWeekNumbers && i % 7 == 0 ? (E(), o("span", im, I(n.weekNumbers[i / 7]), 1)) : a("", !0), s("button", {
12193
12915
  type: "button",
12194
12916
  class: b(["coar-scrollable-calendar__day", [r.markerCssClass, {
12195
12917
  "coar-scrollable-calendar__day--outside": r.isOutsideMonth,
@@ -12206,12 +12928,12 @@ var Gp = {
12206
12928
  "aria-selected": r.isSelected,
12207
12929
  "aria-current": r.isToday ? "date" : void 0,
12208
12930
  onClick: (e) => ie(r.date)
12209
- }, I(r.day), 11, Xp)], 64))), 128))], 2)], 8, Kp))), 128))])), [[z(Ua), {
12931
+ }, I(r.day), 11, am)], 64))), 128))], 2)], 8, tm))), 128))])), [[z(Ua), {
12210
12932
  overflowX: "hidden",
12211
12933
  autoHide: "leave"
12212
12934
  }]])], 2)], 32));
12213
12935
  }
12214
- }), [["__scopeId", "data-v-e9dd37f6"]]), nm = { class: "coar-month-list-host" }, rm = { class: "coar-month-list" }, im = { class: "coar-month-list__year-stepper" }, am = ["disabled", "aria-label"], om = { class: "coar-month-list__year" }, sm = ["disabled", "aria-label"], cm = ["aria-label"], lm = ["aria-selected", "onClick"], um = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12936
+ }), [["__scopeId", "data-v-e9dd37f6"]]), dm = { class: "coar-month-list-host" }, fm = { class: "coar-month-list" }, pm = { class: "coar-month-list__year-stepper" }, mm = ["disabled", "aria-label"], hm = { class: "coar-month-list__year" }, gm = ["disabled", "aria-label"], _m = ["aria-label"], vm = ["aria-selected", "onClick"], ym = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12215
12937
  __name: "CoarMonthList",
12216
12938
  props: /* @__PURE__ */ _({
12217
12939
  locale: { default: void 0 },
@@ -12268,7 +12990,7 @@ var Gp = {
12268
12990
  y(() => T());
12269
12991
  }), w(() => {
12270
12992
  setTimeout(() => T(), 50);
12271
- }), (t, n) => (E(), o("div", nm, [s("div", rm, [s("div", im, [
12993
+ }), (t, n) => (E(), o("div", dm, [s("div", fm, [s("div", pm, [
12272
12994
  s("button", {
12273
12995
  type: "button",
12274
12996
  class: "coar-month-list__year-btn",
@@ -12278,8 +13000,8 @@ var Gp = {
12278
13000
  }, [u(Q, {
12279
13001
  name: "chevron-left",
12280
13002
  size: "s"
12281
- })], 8, am),
12282
- s("span", om, I(p.value), 1),
13003
+ })], 8, mm),
13004
+ s("span", hm, I(p.value), 1),
12283
13005
  s("button", {
12284
13006
  type: "button",
12285
13007
  class: "coar-month-list__year-btn",
@@ -12289,7 +13011,7 @@ var Gp = {
12289
13011
  }, [u(Q, {
12290
13012
  name: "chevron-right",
12291
13013
  size: "s"
12292
- })], 8, sm)
13014
+ })], 8, gm)
12293
13015
  ]), J((E(), o("div", {
12294
13016
  ref_key: "monthsContainerRef",
12295
13017
  ref: C,
@@ -12303,16 +13025,16 @@ var Gp = {
12303
13025
  role: "option",
12304
13026
  "aria-selected": e.isActive,
12305
13027
  onClick: (t) => S(e.yearMonth)
12306
- }, I(e.name), 11, lm))), 128))], 8, cm)), [[z(Ua), {
13028
+ }, I(e.name), 11, vm))), 128))], 8, _m)), [[z(Ua), {
12307
13029
  overflowX: "hidden",
12308
13030
  autoHide: "leave"
12309
13031
  }]])])]));
12310
13032
  }
12311
- }), [["__scopeId", "data-v-11c8cf34"]]), dm = {
13033
+ }), [["__scopeId", "data-v-11c8cf34"]]), bm = {
12312
13034
  pattern: "dd.mm.yyyy",
12313
13035
  firstDayOfWeek: 1
12314
13036
  };
12315
- function fm(e) {
13037
+ function xm(e) {
12316
13038
  let t = ne(), n = re(), i = r(() => e.locale?.value ? e.locale.value : t.language.value || navigator.language || "en"), a = r(() => {
12317
13039
  if (e.dateFormat?.value) return e.dateFormat.value;
12318
13040
  let n = t.localeData.value;
@@ -12320,12 +13042,12 @@ function fm(e) {
12320
13042
  pattern: n.date.pattern,
12321
13043
  firstDayOfWeek: n.date.firstDayOfWeek === 0 ? 7 : n.date.firstDayOfWeek
12322
13044
  };
12323
- let r = Fp(i.value), a = Ip(i.value);
13045
+ let r = Wp(i.value), a = Gp(i.value);
12324
13046
  return r ? {
12325
13047
  pattern: r,
12326
13048
  firstDayOfWeek: a
12327
13049
  } : {
12328
- ...dm,
13050
+ ...bm,
12329
13051
  firstDayOfWeek: a
12330
13052
  };
12331
13053
  }), o = r(() => {
@@ -12354,10 +13076,10 @@ function fm(e) {
12354
13076
  }
12355
13077
  //#endregion
12356
13078
  //#region src/components/date-time/_shared/types.ts
12357
- var pm = {
13079
+ var Sm = {
12358
13080
  use24Hour: "auto",
12359
13081
  minuteStep: 5
12360
- }, mm = {
13082
+ }, Cm = {
12361
13083
  "dd.mm.yyyy": "dd/mm/yyyy",
12362
13084
  "dd/mm/yyyy": "dd/mm/yyyy",
12363
13085
  "mm/dd/yyyy": "mm/dd/yyyy",
@@ -12365,28 +13087,28 @@ var pm = {
12365
13087
  };
12366
13088
  //#endregion
12367
13089
  //#region src/components/date-time/_shared/maskito-config.ts
12368
- function hm(e) {
13090
+ function wm(e) {
12369
13091
  return oe({
12370
- mode: mm[e],
12371
- separator: Lp(e)
13092
+ mode: Cm[e],
13093
+ separator: Kp(e)
12372
13094
  });
12373
13095
  }
12374
- function gm(e, t) {
13096
+ function Tm(e, t) {
12375
13097
  return se({
12376
- dateMode: mm[e],
12377
- dateSeparator: Lp(e),
13098
+ dateMode: Cm[e],
13099
+ dateSeparator: Kp(e),
12378
13100
  timeMode: t ? "HH:MM AA" : "HH:MM"
12379
13101
  });
12380
13102
  }
12381
13103
  //#endregion
12382
13104
  //#region src/components/date-time/plain-date-picker/CoarPlainDatePickerPanel.vue?vue&type=script&setup=true&lang.ts
12383
- var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"], ym = { class: "coar-plain-date-picker-side-column" }, bm = { class: "coar-plain-date-picker-year-stepper" }, xm = ["disabled", "aria-label"], Sm = { class: "coar-plain-date-picker-year" }, Cm = ["disabled", "aria-label"], wm = { class: "coar-plain-date-picker-month-list-wrapper" }, Tm = ["aria-label"], Em = { class: "coar-plain-date-picker-month-list-content" }, Dm = ["aria-selected", "onClick"], Om = {
13105
+ var Em = { class: "coar-plain-date-picker-calendar-column" }, Dm = ["aria-label"], Om = { class: "coar-plain-date-picker-side-column" }, km = { class: "coar-plain-date-picker-year-stepper" }, Am = ["disabled", "aria-label"], jm = { class: "coar-plain-date-picker-year" }, Mm = ["disabled", "aria-label"], Nm = { class: "coar-plain-date-picker-month-list-wrapper" }, Pm = ["aria-label"], Fm = { class: "coar-plain-date-picker-month-list-content" }, Im = ["aria-selected", "onClick"], Lm = {
12384
13106
  key: 0,
12385
13107
  class: "coar-plain-date-picker-events"
12386
- }, km = { class: "coar-plain-date-picker-events-list" }, Am = { class: "coar-plain-date-picker-events-content" }, jm = { class: "coar-plain-date-picker-event-details" }, Mm = { class: "coar-plain-date-picker-event-text" }, Nm = {
13108
+ }, Rm = { class: "coar-plain-date-picker-events-list" }, zm = { class: "coar-plain-date-picker-events-content" }, Bm = { class: "coar-plain-date-picker-event-details" }, Vm = { class: "coar-plain-date-picker-event-text" }, Hm = {
12387
13109
  key: 0,
12388
13110
  class: "coar-plain-date-picker-event-dates"
12389
- }, Pm = /* @__PURE__ */ d({
13111
+ }, Um = /* @__PURE__ */ d({
12390
13112
  __name: "CoarPlainDatePickerPanel",
12391
13113
  props: {
12392
13114
  modelValue: {},
@@ -12429,7 +13151,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12429
13151
  return n && r;
12430
13152
  }) : [];
12431
13153
  });
12432
- return (n, r) => (E(), o("div", { class: b(["coar-plain-date-picker-panel", { "coar-plain-date-picker-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", _m, [u(tm, {
13154
+ return (n, r) => (E(), o("div", { class: b(["coar-plain-date-picker-panel", { "coar-plain-date-picker-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", Em, [u(um, {
12433
13155
  "model-value": t.modelValue,
12434
13156
  "active-month": t.activeMonth,
12435
13157
  min: t.min ?? void 0,
@@ -12462,8 +13184,8 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12462
13184
  }, [u(Q, {
12463
13185
  name: h.value === "up" ? "chevron-up" : "chevron-down",
12464
13186
  size: "xs"
12465
- }, null, 8, ["name"])], 8, vm)) : a("", !0)]), s("div", ym, [
12466
- s("div", bm, [
13187
+ }, null, 8, ["name"])], 8, Dm)) : a("", !0)]), s("div", Om, [
13188
+ s("div", km, [
12467
13189
  s("button", {
12468
13190
  type: "button",
12469
13191
  class: "coar-plain-date-picker-year-btn",
@@ -12473,8 +13195,8 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12473
13195
  }, [u(Q, {
12474
13196
  name: "chevron-left",
12475
13197
  size: "s"
12476
- })], 8, xm),
12477
- s("span", Sm, I(c.value), 1),
13198
+ })], 8, Am),
13199
+ s("span", jm, I(c.value), 1),
12478
13200
  s("button", {
12479
13201
  type: "button",
12480
13202
  class: "coar-plain-date-picker-year-btn",
@@ -12484,31 +13206,31 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12484
13206
  }, [u(Q, {
12485
13207
  name: "chevron-right",
12486
13208
  size: "s"
12487
- })], 8, Cm)
13209
+ })], 8, Mm)
12488
13210
  ]),
12489
- s("div", wm, [s("div", {
13211
+ s("div", Nm, [s("div", {
12490
13212
  class: "coar-plain-date-picker-month-list",
12491
13213
  role: "listbox",
12492
13214
  "aria-label": z(i)("coar.ui.datePicker.months", void 0, "Months")
12493
- }, [s("div", Em, [(E(!0), o(e, null, j(p.value, (e) => (E(), o("button", {
13215
+ }, [s("div", Fm, [(E(!0), o(e, null, j(p.value, (e) => (E(), o("button", {
12494
13216
  key: e.month,
12495
13217
  type: "button",
12496
13218
  class: b(["coar-plain-date-picker-month-item", { "coar-plain-date-picker-month-item--active": e.isActive }]),
12497
13219
  role: "option",
12498
13220
  "aria-selected": e.isActive,
12499
13221
  onClick: (n) => t.onSelectMonth(e.yearMonth)
12500
- }, I(e.name), 11, Dm))), 128))])], 8, Tm)]),
12501
- _.value.length > 0 ? (E(), o("div", Om, [s("div", km, [s("div", Am, [(E(!0), o(e, null, j(_.value, (e) => (E(), o("div", {
13222
+ }, I(e.name), 11, Im))), 128))])], 8, Pm)]),
13223
+ _.value.length > 0 ? (E(), o("div", Lm, [s("div", Rm, [s("div", zm, [(E(!0), o(e, null, j(_.value, (e) => (E(), o("div", {
12502
13224
  key: e.description,
12503
13225
  class: "coar-plain-date-picker-event-item"
12504
- }, [r[3] ||= s("span", { class: "coar-plain-date-picker-event-dot" }, null, -1), s("div", jm, [s("span", Mm, I(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (E(), o("span", Nm, I(e.startDate.day) + "/" + I(e.startDate.month) + " – " + I(e.endDate.day) + "/" + I(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
13226
+ }, [r[3] ||= s("span", { class: "coar-plain-date-picker-event-dot" }, null, -1), s("div", Bm, [s("span", Vm, I(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (E(), o("span", Hm, I(e.startDate.day) + "/" + I(e.startDate.month) + " – " + I(e.endDate.day) + "/" + I(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
12505
13227
  ])], 2));
12506
13228
  }
12507
- }), Fm = {
13229
+ }), Wm = {
12508
13230
  key: 0,
12509
13231
  class: "coar-plain-date-picker-required",
12510
13232
  "aria-hidden": "true"
12511
- }, Im = ["aria-expanded", "aria-controls"], Lm = ["aria-label"], Rm = [
13233
+ }, Gm = ["aria-expanded", "aria-controls"], Km = ["aria-label"], qm = [
12512
13234
  "value",
12513
13235
  "placeholder",
12514
13236
  "disabled",
@@ -12516,7 +13238,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12516
13238
  "aria-labelledby",
12517
13239
  "aria-invalid",
12518
13240
  "aria-describedby"
12519
- ], zm = ["aria-label", "disabled"], Bm = ["title"], Vm = /* @__PURE__ */ Z(/* @__PURE__ */ d({
13241
+ ], Jm = ["aria-label", "disabled"], Ym = ["title"], Xm = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12520
13242
  __name: "CoarPlainDatePicker",
12521
13243
  props: /* @__PURE__ */ _({
12522
13244
  label: { default: "" },
@@ -12567,17 +13289,17 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12567
13289
  }),
12568
13290
  emits: /* @__PURE__ */ _(["opened", "closed"], ["update:modelValue"]),
12569
13291
  setup(e, { emit: t }) {
12570
- let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = fm({
13292
+ let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = xm({
12571
13293
  locale: r(() => n.locale),
12572
13294
  dateFormat: r(() => n.dateFormat)
12573
13295
  }), p = A(i.value?.toPlainYearMonth() ?? X.Now.plainDateISO().toPlainYearMonth()), m = `coar-plain-date-picker-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, h = `${m}-label`, _ = `${m}-input`, v = `${m}-panel`, x = `${m}-message`, S = A(null), T = A(null), D = null, k = A(""), j;
12574
13296
  function M() {
12575
13297
  if (j?.destroy(), !T.value) return;
12576
- let e = hm(f.effectiveDateFormat.value.pattern);
13298
+ let e = wm(f.effectiveDateFormat.value.pattern);
12577
13299
  j = new ae(T.value, e);
12578
13300
  }
12579
13301
  G(i, (e) => {
12580
- e ? k.value = zp(e, f.effectiveDateFormat.value.pattern) : k.value = "";
13302
+ e ? k.value = Jp(e, f.effectiveDateFormat.value.pattern) : k.value = "";
12581
13303
  }, { immediate: !0 }), G([T, () => f.effectiveDateFormat.value], () => {
12582
13304
  y(() => M());
12583
13305
  }), C(() => {
@@ -12653,7 +13375,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12653
13375
  },
12654
13376
  content: {
12655
13377
  kind: "component",
12656
- component: g(Pm)
13378
+ component: g(Um)
12657
13379
  },
12658
13380
  inputs: t
12659
13381
  }), f.open(), c("opened"), D.afterClosed.then(() => {
@@ -12678,7 +13400,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12678
13400
  function te(e) {
12679
13401
  let t = e.target;
12680
13402
  k.value = t.value;
12681
- let r = Bp(t.value, f.effectiveDateFormat.value.pattern, {
13403
+ let r = Yp(t.value, f.effectiveDateFormat.value.pattern, {
12682
13404
  min: n.min,
12683
13405
  max: n.max
12684
13406
  });
@@ -12686,10 +13408,10 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12686
13408
  }
12687
13409
  function ne() {
12688
13410
  let e = k.value;
12689
- !Bp(e, f.effectiveDateFormat.value.pattern, {
13411
+ !Yp(e, f.effectiveDateFormat.value.pattern, {
12690
13412
  min: n.min,
12691
13413
  max: n.max
12692
- }) && e.length > 0 && (i.value ? k.value = zp(i.value, f.effectiveDateFormat.value.pattern) : k.value = "");
13414
+ }) && e.length > 0 && (i.value ? k.value = Jp(i.value, f.effectiveDateFormat.value.pattern) : k.value = "");
12693
13415
  }
12694
13416
  return (t, n) => (E(), o("div", { class: b(["coar-plain-date-picker-wrapper", [`coar-plain-date-picker--${e.size}`, {
12695
13417
  "coar-plain-date-picker--disabled": F.value,
@@ -12701,7 +13423,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12701
13423
  key: 0,
12702
13424
  id: h,
12703
13425
  class: "coar-plain-date-picker-label"
12704
- }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", Fm, "*")) : a("", !0)])) : a("", !0),
13426
+ }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", Wm, "*")) : a("", !0)])) : a("", !0),
12705
13427
  s("div", {
12706
13428
  ref_key: "triggerRef",
12707
13429
  ref: S,
@@ -12725,7 +13447,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12725
13447
  }, [u(Q, {
12726
13448
  name: "x",
12727
13449
  size: "auto"
12728
- })], 10, Lm),
13450
+ })], 10, Km),
12729
13451
  s("input", {
12730
13452
  id: _,
12731
13453
  ref_key: "dateInputRef",
@@ -12743,7 +13465,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12743
13465
  onInput: te,
12744
13466
  onBlur: ne,
12745
13467
  onKeydown: J
12746
- }, null, 40, Rm),
13468
+ }, null, 40, qm),
12747
13469
  s("button", {
12748
13470
  type: "button",
12749
13471
  class: "coar-plain-date-picker-btn",
@@ -12754,23 +13476,23 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12754
13476
  }, [u(Q, {
12755
13477
  name: "calendar",
12756
13478
  size: "s"
12757
- })], 8, zm)
12758
- ], 10, Im),
13479
+ })], 8, Jm)
13480
+ ], 10, Gm),
12759
13481
  P.value ? (E(), o("div", {
12760
13482
  key: 1,
12761
13483
  id: x,
12762
13484
  class: b(["coar-form-field-message", { "coar-form-field-message--error": N.value }]),
12763
13485
  title: P.value
12764
- }, I(P.value), 11, Bm)) : a("", !0)
13486
+ }, I(P.value), 11, Ym)) : a("", !0)
12765
13487
  ], 2));
12766
13488
  }
12767
- }), [["__scopeId", "data-v-2c8a34e4"]]), Hm = { class: "coar-pdtp-calendar-column" }, Um = ["aria-label"], Wm = { class: "coar-pdtp-side-column" }, Gm = { class: "coar-pdtp-year-stepper" }, Km = ["disabled", "aria-label"], qm = { class: "coar-pdtp-year" }, Jm = ["disabled", "aria-label"], Ym = { class: "coar-pdtp-month-list-wrapper" }, Xm = ["aria-label"], Zm = { class: "coar-pdtp-month-list-content" }, Qm = ["aria-selected", "onClick"], $m = { class: "coar-pdtp-time-section" }, eh = {
13489
+ }), [["__scopeId", "data-v-2c8a34e4"]]), Zm = { class: "coar-pdtp-calendar-column" }, Qm = ["aria-label"], $m = { class: "coar-pdtp-side-column" }, eh = { class: "coar-pdtp-year-stepper" }, th = ["disabled", "aria-label"], nh = { class: "coar-pdtp-year" }, rh = ["disabled", "aria-label"], ih = { class: "coar-pdtp-month-list-wrapper" }, ah = ["aria-label"], oh = { class: "coar-pdtp-month-list-content" }, sh = ["aria-selected", "onClick"], ch = { class: "coar-pdtp-time-section" }, lh = {
12768
13490
  key: 0,
12769
13491
  class: "coar-pdtp-events"
12770
- }, th = { class: "coar-pdtp-events-list" }, nh = { class: "coar-pdtp-events-content" }, rh = { class: "coar-pdtp-event-details" }, ih = { class: "coar-pdtp-event-text" }, ah = {
13492
+ }, uh = { class: "coar-pdtp-events-list" }, dh = { class: "coar-pdtp-events-content" }, fh = { class: "coar-pdtp-event-details" }, ph = { class: "coar-pdtp-event-text" }, mh = {
12771
13493
  key: 0,
12772
13494
  class: "coar-pdtp-event-dates"
12773
- }, oh = /* @__PURE__ */ d({
13495
+ }, hh = /* @__PURE__ */ d({
12774
13496
  __name: "CoarPlainDateTimePickerPanel",
12775
13497
  props: {
12776
13498
  modelValue: {},
@@ -12821,7 +13543,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12821
13543
  return n && r;
12822
13544
  }) : [];
12823
13545
  });
12824
- return (n, r) => (E(), o("div", { class: b(["coar-pdtp-panel", { "coar-pdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", Hm, [u(tm, {
13546
+ return (n, r) => (E(), o("div", { class: b(["coar-pdtp-panel", { "coar-pdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", Zm, [u(um, {
12825
13547
  "model-value": t.modelValue,
12826
13548
  "active-month": t.activeMonth,
12827
13549
  min: t.min ?? void 0,
@@ -12854,8 +13576,8 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12854
13576
  }, [u(Q, {
12855
13577
  name: h.value === "up" ? "chevron-up" : "chevron-down",
12856
13578
  size: "xs"
12857
- }, null, 8, ["name"])], 8, Um)) : a("", !0)]), s("div", Wm, [
12858
- s("div", Gm, [
13579
+ }, null, 8, ["name"])], 8, Qm)) : a("", !0)]), s("div", $m, [
13580
+ s("div", eh, [
12859
13581
  s("button", {
12860
13582
  type: "button",
12861
13583
  class: "coar-pdtp-year-btn",
@@ -12865,8 +13587,8 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12865
13587
  }, [u(Q, {
12866
13588
  name: "chevron-left",
12867
13589
  size: "s"
12868
- })], 8, Km),
12869
- s("span", qm, I(c.value), 1),
13590
+ })], 8, th),
13591
+ s("span", nh, I(c.value), 1),
12870
13592
  s("button", {
12871
13593
  type: "button",
12872
13594
  class: "coar-pdtp-year-btn",
@@ -12876,21 +13598,21 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12876
13598
  }, [u(Q, {
12877
13599
  name: "chevron-right",
12878
13600
  size: "s"
12879
- })], 8, Jm)
13601
+ })], 8, rh)
12880
13602
  ]),
12881
- s("div", Ym, [s("div", {
13603
+ s("div", ih, [s("div", {
12882
13604
  class: "coar-pdtp-month-list",
12883
13605
  role: "listbox",
12884
13606
  "aria-label": z(i)("coar.ui.datePicker.months", void 0, "Months")
12885
- }, [s("div", Zm, [(E(!0), o(e, null, j(p.value, (e) => (E(), o("button", {
13607
+ }, [s("div", oh, [(E(!0), o(e, null, j(p.value, (e) => (E(), o("button", {
12886
13608
  key: e.month,
12887
13609
  type: "button",
12888
13610
  class: b(["coar-pdtp-month-item", { "coar-pdtp-month-item--active": e.isActive }]),
12889
13611
  role: "option",
12890
13612
  "aria-selected": e.isActive,
12891
13613
  onClick: (n) => t.onSelectMonth(e.yearMonth)
12892
- }, I(e.name), 11, Qm))), 128))])], 8, Xm)]),
12893
- s("div", $m, [u(Pp, {
13614
+ }, I(e.name), 11, sh))), 128))])], 8, ah)]),
13615
+ s("div", ch, [u(Up, {
12894
13616
  "model-value": t.selectedTime,
12895
13617
  "use24-hour": t.use24Hour,
12896
13618
  "minute-step": t.minuteStep,
@@ -12912,17 +13634,17 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12912
13634
  "max-time",
12913
13635
  "onUpdate:modelValue"
12914
13636
  ])]),
12915
- _.value.length > 0 ? (E(), o("div", eh, [s("div", th, [s("div", nh, [(E(!0), o(e, null, j(_.value, (e) => (E(), o("div", {
13637
+ _.value.length > 0 ? (E(), o("div", lh, [s("div", uh, [s("div", dh, [(E(!0), o(e, null, j(_.value, (e) => (E(), o("div", {
12916
13638
  key: e.description,
12917
13639
  class: "coar-pdtp-event-item"
12918
- }, [r[3] ||= s("span", { class: "coar-pdtp-event-dot" }, null, -1), s("div", rh, [s("span", ih, I(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (E(), o("span", ah, I(e.startDate.day) + "/" + I(e.startDate.month) + " – " + I(e.endDate.day) + "/" + I(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
13640
+ }, [r[3] ||= s("span", { class: "coar-pdtp-event-dot" }, null, -1), s("div", fh, [s("span", ph, I(e.description), 1), e.endDate && !e.startDate.equals(e.endDate) ? (E(), o("span", mh, I(e.startDate.day) + "/" + I(e.startDate.month) + " – " + I(e.endDate.day) + "/" + I(e.endDate.month), 1)) : a("", !0)])]))), 128))])])])) : a("", !0)
12919
13641
  ])], 2));
12920
13642
  }
12921
- }), sh = {
13643
+ }), gh = {
12922
13644
  key: 0,
12923
13645
  class: "coar-pdtp-required",
12924
13646
  "aria-hidden": "true"
12925
- }, ch = ["aria-expanded", "aria-controls"], lh = ["aria-label"], uh = [
13647
+ }, _h = ["aria-expanded", "aria-controls"], vh = ["aria-label"], yh = [
12926
13648
  "value",
12927
13649
  "placeholder",
12928
13650
  "disabled",
@@ -12930,7 +13652,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12930
13652
  "aria-labelledby",
12931
13653
  "aria-invalid",
12932
13654
  "aria-describedby"
12933
- ], dh = ["aria-label", "disabled"], fh = ["title"], ph = /* @__PURE__ */ Z(/* @__PURE__ */ d({
13655
+ ], bh = ["aria-label", "disabled"], xh = ["title"], Sh = /* @__PURE__ */ Z(/* @__PURE__ */ d({
12934
13656
  __name: "CoarPlainDateTimePicker",
12935
13657
  props: /* @__PURE__ */ _({
12936
13658
  label: { default: "" },
@@ -12986,17 +13708,17 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
12986
13708
  }),
12987
13709
  emits: /* @__PURE__ */ _(["opened", "closed"], ["update:modelValue"]),
12988
13710
  setup(e, { emit: t }) {
12989
- let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = fm({
13711
+ let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = xm({
12990
13712
  locale: r(() => n.locale),
12991
13713
  dateFormat: r(() => n.dateFormat)
12992
- }), p = A(i.value?.toPlainDate().toPlainYearMonth() ?? X.Now.plainDateISO().toPlainYearMonth()), m = A(null), h = `coar-plain-dt-picker-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, _ = `${h}-label`, v = `${h}-input`, x = `${h}-panel`, S = `${h}-message`, T = A(null), D = A(null), k = null, j = A(""), M = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !pp(f.effectiveLocale.value)), N;
13714
+ }), p = A(i.value?.toPlainDate().toPlainYearMonth() ?? X.Now.plainDateISO().toPlainYearMonth()), m = A(null), h = `coar-plain-dt-picker-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, _ = `${h}-label`, v = `${h}-input`, x = `${h}-panel`, S = `${h}-message`, T = A(null), D = A(null), k = null, j = A(""), M = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !Sp(f.effectiveLocale.value)), N;
12993
13715
  function P() {
12994
13716
  if (N?.destroy(), !D.value) return;
12995
- let e = gm(f.effectiveDateFormat.value.pattern, !M.value);
13717
+ let e = Tm(f.effectiveDateFormat.value.pattern, !M.value);
12996
13718
  N = new ae(D.value, e);
12997
13719
  }
12998
13720
  function F(e) {
12999
- return `${zp(e.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${mp(e.hour, e.minute, M.value)}`;
13721
+ return `${Jp(e.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${Cp(e.hour, e.minute, M.value)}`;
13000
13722
  }
13001
13723
  G(i, (e) => {
13002
13724
  j.value = e ? F(e) : "";
@@ -13048,7 +13770,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13048
13770
  onDateSelected: (e) => {
13049
13771
  let t = K.value ?? n.defaultTime, r = e.toPlainDateTime({
13050
13772
  hour: t.hours,
13051
- minute: bp(t.minutes, n.minuteStep)
13773
+ minute: kp(t.minutes, n.minuteStep)
13052
13774
  });
13053
13775
  r = oe(r), i.value = r;
13054
13776
  },
@@ -13125,7 +13847,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13125
13847
  },
13126
13848
  content: {
13127
13849
  kind: "component",
13128
- component: g(oh)
13850
+ component: g(hh)
13129
13851
  },
13130
13852
  inputs: t
13131
13853
  }), f.open(), c("opened"), k.afterClosed.then(() => {
@@ -13161,12 +13883,12 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13161
13883
  if (!e) return null;
13162
13884
  let t = e.split(" ");
13163
13885
  if (t.length < 2) return null;
13164
- let n = Bp(t[0], f.effectiveDateFormat.value.pattern, {
13886
+ let n = Yp(t[0], f.effectiveDateFormat.value.pattern, {
13165
13887
  min: q.value,
13166
13888
  max: J.value
13167
13889
  });
13168
13890
  if (!n) return null;
13169
- let r = hp(t.slice(1).join(" "));
13891
+ let r = wp(t.slice(1).join(" "));
13170
13892
  return r ? n.toPlainDateTime({
13171
13893
  hour: r.hours,
13172
13894
  minute: r.minutes
@@ -13182,7 +13904,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13182
13904
  key: 0,
13183
13905
  id: _,
13184
13906
  class: "coar-pdtp-label"
13185
- }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", sh, "*")) : a("", !0)])) : a("", !0),
13907
+ }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", gh, "*")) : a("", !0)])) : a("", !0),
13186
13908
  s("div", {
13187
13909
  ref_key: "triggerRef",
13188
13910
  ref: T,
@@ -13206,7 +13928,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13206
13928
  }, [u(Q, {
13207
13929
  name: "x",
13208
13930
  size: "auto"
13209
- })], 10, lh),
13931
+ })], 10, vh),
13210
13932
  s("input", {
13211
13933
  id: v,
13212
13934
  ref_key: "dateInputRef",
@@ -13224,7 +13946,7 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13224
13946
  onInput: fe,
13225
13947
  onBlur: pe,
13226
13948
  onKeydown: ue
13227
- }, null, 40, uh),
13949
+ }, null, 40, yh),
13228
13950
  s("button", {
13229
13951
  type: "button",
13230
13952
  class: "coar-pdtp-btn",
@@ -13235,32 +13957,32 @@ var _m = { class: "coar-plain-date-picker-calendar-column" }, vm = ["aria-label"
13235
13957
  }, [u(Q, {
13236
13958
  name: "calendar",
13237
13959
  size: "s"
13238
- })], 8, dh)
13239
- ], 10, ch),
13960
+ })], 8, bh)
13961
+ ], 10, _h),
13240
13962
  R.value ? (E(), o("div", {
13241
13963
  key: 1,
13242
13964
  id: S,
13243
13965
  class: b(["coar-form-field-message", { "coar-form-field-message--error": L.value }]),
13244
13966
  title: R.value
13245
- }, I(R.value), 11, fh)) : a("", !0)
13967
+ }, I(R.value), 11, xh)) : a("", !0)
13246
13968
  ], 2));
13247
13969
  }
13248
13970
  }), [["__scopeId", "data-v-55dfa9b2"]]);
13249
13971
  //#endregion
13250
13972
  //#region src/components/date-time/_shared/timezone-helpers.ts
13251
- function mh() {
13973
+ function Ch() {
13252
13974
  try {
13253
13975
  return ["UTC", ...Intl.supportedValuesOf("timeZone")];
13254
13976
  } catch {
13255
13977
  return ["UTC"];
13256
13978
  }
13257
13979
  }
13258
- function hh(e, t) {
13980
+ function wh(e, t) {
13259
13981
  let n = t ?? X.Now.instant();
13260
13982
  try {
13261
13983
  let t = n.toZonedDateTimeISO(e).offsetNanoseconds, r = Math.round(t / 6e10);
13262
13984
  return {
13263
- offset: gh(r),
13985
+ offset: Th(r),
13264
13986
  offsetMinutes: r
13265
13987
  };
13266
13988
  } catch {
@@ -13270,21 +13992,21 @@ function hh(e, t) {
13270
13992
  };
13271
13993
  }
13272
13994
  }
13273
- function gh(e) {
13995
+ function Th(e) {
13274
13996
  if (e === 0) return "UTC";
13275
13997
  let t = e >= 0 ? "+" : "-", n = Math.abs(e), r = Math.floor(n / 60), i = n % 60;
13276
13998
  return i === 0 ? `UTC${t}${r}` : `UTC${t}${r}:${String(i).padStart(2, "0")}`;
13277
13999
  }
13278
- function _h(e) {
14000
+ function Eh(e) {
13279
14001
  if (e === "UTC") return "UTC";
13280
14002
  let t = e.split("/");
13281
14003
  return t[t.length - 1].replace(/_/g, " ");
13282
14004
  }
13283
- function vh(e, t) {
13284
- let n = _h(e), { offset: r } = hh(e, t);
14005
+ function Dh(e, t) {
14006
+ let n = Eh(e), { offset: r } = wh(e, t);
13285
14007
  return `${n} (${r})`;
13286
14008
  }
13287
- function yh(e, t) {
14009
+ function Oh(e, t) {
13288
14010
  if (!t || t.length === 0) return e;
13289
14011
  let n = t.map((e) => {
13290
14012
  let t = e.replace(/[.+?^${}()|[\]\\]/g, "\\$&").replace(/\*/g, ".*");
@@ -13292,19 +14014,19 @@ function yh(e, t) {
13292
14014
  });
13293
14015
  return e.filter((e) => n.some((t) => t.test(e)));
13294
14016
  }
13295
- function bh(e, t) {
13296
- let { offset: n, offsetMinutes: r } = hh(e, t);
14017
+ function kh(e, t) {
14018
+ let { offset: n, offsetMinutes: r } = wh(e, t);
13297
14019
  return {
13298
14020
  id: e,
13299
- city: _h(e),
14021
+ city: Eh(e),
13300
14022
  offset: n,
13301
14023
  offsetMinutes: r
13302
14024
  };
13303
14025
  }
13304
- function xh(e, t, n) {
14026
+ function Ah(e, t, n) {
13305
14027
  let r = t?.trim().toLowerCase(), i = /* @__PURE__ */ new Map();
13306
14028
  for (let t of e) {
13307
- let e = bh(t, n);
14029
+ let e = kh(t, n);
13308
14030
  if (r && r.length > 0) {
13309
14031
  let n = e.city.toLowerCase().includes(r), i = t.toLowerCase().includes(r);
13310
14032
  if (!n && !i) continue;
@@ -13324,25 +14046,25 @@ function xh(e, t, n) {
13324
14046
  }
13325
14047
  //#endregion
13326
14048
  //#region src/components/date-time/zoned-date-time-picker/CoarZonedDateTimePickerPanel.vue?vue&type=script&setup=true&lang.ts
13327
- var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column" }, wh = ["aria-label"], Th = { class: "coar-zdtp-side-column" }, Eh = {
14049
+ var jh = { class: "coar-zdtp-body" }, Mh = { class: "coar-zdtp-calendar-column" }, Nh = ["aria-label"], Ph = { class: "coar-zdtp-side-column" }, Fh = {
13328
14050
  key: 0,
13329
14051
  class: "coar-zdtp-side-header"
13330
- }, Dh = ["disabled", "aria-label"], Oh = { class: "coar-zdtp-year" }, kh = ["disabled", "aria-label"], Ah = {
14052
+ }, Ih = ["disabled", "aria-label"], Lh = { class: "coar-zdtp-year" }, Rh = ["disabled", "aria-label"], zh = {
13331
14053
  key: 1,
13332
14054
  class: "coar-zdtp-side-header coar-zdtp-side-header--search"
13333
- }, jh = ["placeholder", "onKeydown"], Mh = ["aria-label"], Nh = { class: "coar-zdtp-tz-group-header" }, Ph = ["onClick"], Fh = { class: "coar-zdtp-tz-picker-item-city" }, Ih = { class: "coar-zdtp-tz-picker-item-offset" }, Lh = ["aria-label"], Rh = ["aria-selected", "onClick"], zh = { class: "coar-zdtp-time-section" }, Bh = { class: "coar-zdtp-display-tz-label" }, Vh = { class: "coar-zdtp-display-tz-btn-label" }, Hh = {
14055
+ }, Bh = ["placeholder", "onKeydown"], Vh = ["aria-label"], Hh = { class: "coar-zdtp-tz-group-header" }, Uh = ["onClick"], Wh = { class: "coar-zdtp-tz-picker-item-city" }, Gh = { class: "coar-zdtp-tz-picker-item-offset" }, Kh = ["aria-label"], qh = ["aria-selected", "onClick"], Jh = { class: "coar-zdtp-time-section" }, Yh = { class: "coar-zdtp-display-tz-label" }, Xh = { class: "coar-zdtp-display-tz-btn-label" }, Zh = {
13334
14056
  key: 0,
13335
14057
  class: "coar-zdtp-events"
13336
- }, Uh = {
14058
+ }, Qh = {
13337
14059
  key: 0,
13338
14060
  class: "coar-zdtp-footer-placeholder"
13339
- }, Wh = {
14061
+ }, $h = {
13340
14062
  key: 1,
13341
14063
  class: "coar-zdtp-footer-edit"
13342
- }, Gh = ["aria-label"], Kh = {
14064
+ }, eg = ["aria-label"], tg = {
13343
14065
  key: 2,
13344
14066
  class: "coar-zdtp-footer-display"
13345
- }, qh = { class: "coar-zdtp-footer-tz-name" }, Jh = { class: "coar-zdtp-footer-tz-value" }, Yh = ["aria-label"], Xh = /* @__PURE__ */ d({
14067
+ }, ng = { class: "coar-zdtp-footer-tz-name" }, rg = { class: "coar-zdtp-footer-tz-value" }, ig = ["aria-label"], ag = /* @__PURE__ */ d({
13346
14068
  __name: "CoarZonedDateTimePickerPanel",
13347
14069
  props: {
13348
14070
  modelValue: {},
@@ -13400,9 +14122,9 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13400
14122
  let n = X.PlainDate.compare(e, t.startDate) >= 0, r = t.endDate ? X.PlainDate.compare(e, t.endDate) <= 0 : X.PlainDate.compare(e, t.startDate) === 0;
13401
14123
  return n && r;
13402
14124
  }) : [];
13403
- }), T = r(() => yh(n.allTimezones, n.timezoneFilter)), D = r(() => xh(T.value, d.value)), O = r(() => T.value.map((e) => ({
14125
+ }), T = r(() => Oh(n.allTimezones, n.timezoneFilter)), D = r(() => Ah(T.value, d.value)), O = r(() => T.value.map((e) => ({
13404
14126
  value: e,
13405
- label: vh(e)
14127
+ label: Dh(e)
13406
14128
  })));
13407
14129
  function k() {
13408
14130
  c.value = !0, d.value = "", y(() => {
@@ -13429,7 +14151,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13429
14151
  function L() {
13430
14152
  l.value = !1;
13431
14153
  }
13432
- return (n, r) => (E(), o("div", { class: b(["coar-zdtp-panel", { "coar-zdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", Sh, [s("div", Ch, [u(tm, {
14154
+ return (n, r) => (E(), o("div", { class: b(["coar-zdtp-panel", { "coar-zdtp-panel--with-weeks": t.showWeekNumbers }]) }, [s("div", jh, [s("div", Mh, [u(um, {
13433
14155
  "model-value": t.modelValue,
13434
14156
  "active-month": t.activeMonth,
13435
14157
  min: t.min ?? void 0,
@@ -13462,8 +14184,8 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13462
14184
  }, [u(Q, {
13463
14185
  name: S.value === "up" ? "chevron-up" : "chevron-down",
13464
14186
  size: "xs"
13465
- }, null, 8, ["name"])], 8, wh)) : a("", !0)]), s("div", Th, [
13466
- c.value ? (E(), o("div", Ah, [J(s("input", {
14187
+ }, null, 8, ["name"])], 8, Nh)) : a("", !0)]), s("div", Ph, [
14188
+ c.value ? (E(), o("div", zh, [J(s("input", {
13467
14189
  ref_key: "tzSearchInputRef",
13468
14190
  ref: f,
13469
14191
  "onUpdate:modelValue": r[3] ||= (e) => d.value = e,
@@ -13471,7 +14193,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13471
14193
  class: "coar-zdtp-tz-search-input",
13472
14194
  placeholder: z(i)("coar.ui.zonedDateTimePicker.searchTimezone", void 0, "Search timezone..."),
13473
14195
  onKeydown: ee(te(M, ["stop"]), ["escape"])
13474
- }, null, 40, jh), [[W, d.value]]), s("button", {
14196
+ }, null, 40, Bh), [[W, d.value]]), s("button", {
13475
14197
  type: "button",
13476
14198
  class: "coar-zdtp-tz-search-close",
13477
14199
  "aria-label": z(i)("coar.ui.zonedDateTimePicker.closeTimezoneSearch", void 0, "Close timezone search"),
@@ -13479,7 +14201,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13479
14201
  }, [u(Q, {
13480
14202
  name: "x",
13481
14203
  size: "xs"
13482
- })], 8, Mh)])) : (E(), o("div", Eh, [
14204
+ })], 8, Vh)])) : (E(), o("div", Fh, [
13483
14205
  s("button", {
13484
14206
  type: "button",
13485
14207
  class: "coar-zdtp-year-btn",
@@ -13489,8 +14211,8 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13489
14211
  }, [u(Q, {
13490
14212
  name: "chevron-left",
13491
14213
  size: "s"
13492
- })], 8, Dh),
13493
- s("span", Oh, I(m.value), 1),
14214
+ })], 8, Ih),
14215
+ s("span", Lh, I(m.value), 1),
13494
14216
  s("button", {
13495
14217
  type: "button",
13496
14218
  class: "coar-zdtp-year-btn",
@@ -13500,7 +14222,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13500
14222
  }, [u(Q, {
13501
14223
  name: "chevron-right",
13502
14224
  size: "s"
13503
- })], 8, kh)
14225
+ })], 8, Rh)
13504
14226
  ])),
13505
14227
  c.value ? J((E(), o("div", {
13506
14228
  key: 2,
@@ -13510,12 +14232,12 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13510
14232
  }, [(E(!0), o(e, null, j(D.value, (n) => (E(), o("div", {
13511
14233
  key: n.name,
13512
14234
  class: "coar-zdtp-tz-group"
13513
- }, [s("div", Nh, I(n.name), 1), (E(!0), o(e, null, j(n.items, (e) => (E(), o("button", {
14235
+ }, [s("div", Hh, I(n.name), 1), (E(!0), o(e, null, j(n.items, (e) => (E(), o("button", {
13514
14236
  key: e.id,
13515
14237
  type: "button",
13516
14238
  class: b(["coar-zdtp-tz-picker-item", { "coar-zdtp-tz-picker-item--active": e.id === t.effectiveDisplayTimeZone }]),
13517
14239
  onClick: (t) => N(e.id)
13518
- }, [s("span", Fh, I(e.city), 1), s("span", Ih, I(e.offset), 1)], 10, Ph))), 128))]))), 128))])), [[z(Ua), {
14240
+ }, [s("span", Wh, I(e.city), 1), s("span", Gh, I(e.offset), 1)], 10, Uh))), 128))]))), 128))])), [[z(Ua), {
13519
14241
  overflowX: "hidden",
13520
14242
  autoHide: "leave"
13521
14243
  }]]) : a("", !0),
@@ -13531,8 +14253,8 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13531
14253
  role: "option",
13532
14254
  "aria-selected": e.isActive,
13533
14255
  onClick: (n) => t.onSelectMonth(e.yearMonth)
13534
- }, I(e.name), 11, Rh))), 128))], 8, Lh),
13535
- s("div", zh, [u(Pp, {
14256
+ }, I(e.name), 11, qh))), 128))], 8, Kh),
14257
+ s("div", Jh, [u(Up, {
13536
14258
  "model-value": t.selectedTime ?? void 0,
13537
14259
  "use24-hour": t.use24Hour,
13538
14260
  "minute-step": t.minuteStep,
@@ -13548,16 +14270,16 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13548
14270
  "max",
13549
14271
  "onUpdate:modelValue"
13550
14272
  ])]),
13551
- s("div", Bh, I(z(i)("coar.ui.zonedDateTimePicker.displayTimezone", void 0, "Display Timezone")), 1),
14273
+ s("div", Yh, I(z(i)("coar.ui.zonedDateTimePicker.displayTimezone", void 0, "Display Timezone")), 1),
13552
14274
  s("button", {
13553
14275
  type: "button",
13554
14276
  class: "coar-zdtp-display-tz-btn",
13555
14277
  onClick: k
13556
- }, [s("span", Vh, I(z(vh)(t.effectiveDisplayTimeZone)), 1), u(Q, {
14278
+ }, [s("span", Xh, I(z(Dh)(t.effectiveDisplayTimeZone)), 1), u(Q, {
13557
14279
  name: "chevron-down",
13558
14280
  size: "xs"
13559
14281
  })]),
13560
- w.value.length > 0 ? J((E(), o("div", Hh, [(E(!0), o(e, null, j(w.value, (e, t) => (E(), o("div", {
14282
+ w.value.length > 0 ? J((E(), o("div", Zh, [(E(!0), o(e, null, j(w.value, (e, t) => (E(), o("div", {
13561
14283
  key: t,
13562
14284
  class: b(["coar-zdtp-event-item", e.cssClass])
13563
14285
  }, I(e.description), 3))), 128))])), [[z(Ua), {
@@ -13565,7 +14287,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13565
14287
  autoHide: "leave"
13566
14288
  }]]) : a("", !0)
13567
14289
  ], 64))
13568
- ])]), s("div", { class: b(["coar-zdtp-footer", { "coar-zdtp-footer--differs": t.timeZonesDiffer }]) }, [t.hasValue ? l.value ? (E(), o("div", Wh, [u(Cc, {
14290
+ ])]), s("div", { class: b(["coar-zdtp-footer", { "coar-zdtp-footer--differs": t.timeZonesDiffer }]) }, [t.hasValue ? l.value ? (E(), o("div", $h, [u(Cc, {
13569
14291
  "model-value": t.valueTimeZone,
13570
14292
  options: O.value,
13571
14293
  appearance: "inline",
@@ -13588,14 +14310,14 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13588
14310
  }, [u(Q, {
13589
14311
  name: "x",
13590
14312
  size: "xs"
13591
- })], 8, Gh)])) : (E(), o("div", Kh, [
14313
+ })], 8, eg)])) : (E(), o("div", tg, [
13592
14314
  u(Q, {
13593
14315
  name: "map-pin",
13594
14316
  size: "xs",
13595
14317
  class: "coar-zdtp-footer-icon"
13596
14318
  }),
13597
- s("span", qh, I(t.valueTimeZoneLabel), 1),
13598
- s("span", Jh, I(t.formatValueInValueTz), 1),
14319
+ s("span", ng, I(t.valueTimeZoneLabel), 1),
14320
+ s("span", rg, I(t.formatValueInValueTz), 1),
13599
14321
  s("button", {
13600
14322
  type: "button",
13601
14323
  class: "coar-zdtp-footer-lock",
@@ -13604,28 +14326,28 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13604
14326
  }, [u(Q, {
13605
14327
  name: "settings",
13606
14328
  size: "xs"
13607
- })], 8, Yh)
13608
- ])) : (E(), o("span", Uh, [u(Q, {
14329
+ })], 8, ig)
14330
+ ])) : (E(), o("span", Qh, [u(Q, {
13609
14331
  name: "map-pin",
13610
14332
  size: "xs"
13611
14333
  }), s("span", null, I(z(i)("coar.ui.zonedDateTimePicker.eventTimezone", void 0, "Event timezone")), 1)]))], 2)], 2));
13612
14334
  }
13613
- }), Zh = {
14335
+ }), og = {
13614
14336
  key: 0,
13615
14337
  class: "coar-zdtp-required",
13616
14338
  "aria-hidden": "true"
13617
- }, Qh = [
14339
+ }, sg = [
13618
14340
  "aria-expanded",
13619
14341
  "aria-controls",
13620
14342
  "aria-labelledby",
13621
14343
  "aria-invalid"
13622
- ], $h = ["aria-label", "disabled"], eg = [
14344
+ ], cg = ["aria-label", "disabled"], lg = [
13623
14345
  "placeholder",
13624
14346
  "value",
13625
14347
  "disabled",
13626
14348
  "readonly",
13627
14349
  "aria-describedby"
13628
- ], tg = ["title"], ng = ["aria-label", "disabled"], rg = ["disabled", "aria-label"], ig = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14350
+ ], ug = ["title"], dg = ["aria-label", "disabled"], fg = ["disabled", "aria-label"], pg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
13629
14351
  __name: "CoarZonedDateTimePicker",
13630
14352
  props: /* @__PURE__ */ _({
13631
14353
  label: { default: "" },
@@ -13683,34 +14405,34 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13683
14405
  }),
13684
14406
  emits: /* @__PURE__ */ _(["opened", "closed"], ["update:modelValue"]),
13685
14407
  setup(e, { emit: t }) {
13686
- let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = fm({
14408
+ let n = e, i = V(e, "modelValue"), c = t, { t: d } = Y(), f = xm({
13687
14409
  locale: r(() => n.locale),
13688
14410
  dateFormat: r(() => n.dateFormat)
13689
14411
  }), p = A(i.value?.toPlainDateTime().toPlainDate().toPlainYearMonth() ?? X.Now.plainDateISO().toPlainYearMonth()), m = A(null), h = A(null), _ = `coar-zdtp-${crypto.randomUUID?.() ?? Date.now().toString(16)}`, v = `${_}-label`, x = `${_}-input`, S = `${_}-panel`, T = `${_}-message`, D = A(null), k = A(null), j = null, M = A(""), N = r(() => f.timezone.value || Intl.DateTimeFormat().resolvedOptions().timeZone || "UTC"), P = r(() => i.value?.timeZoneId ?? null), F = r(() => h.value ?? N.value), L = r(() => n.timeZone ?? N.value), R = r(() => P.value != null && P.value !== N.value), B = r(() => P.value != null && F.value !== P.value), H = r(() => {
13690
14412
  let e = F.value, t = N.value, n = P.value;
13691
14413
  return e === t ? "home" : n && e === n ? "location" : "world";
13692
- }), U = r(() => R.value || H.value !== "home"), W = r(() => vh(F.value)), K = r(() => {
14414
+ }), U = r(() => R.value || H.value !== "home"), W = r(() => Dh(F.value)), K = r(() => {
13693
14415
  let e = P.value;
13694
- return e ? vh(e) : "";
13695
- }), q = mh(), J = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !pp(f.effectiveLocale.value)), ee;
14416
+ return e ? Dh(e) : "";
14417
+ }), q = Ch(), J = r(() => n.use24Hour === !0 ? !0 : n.use24Hour === !1 ? !1 : !Sp(f.effectiveLocale.value)), ee;
13696
14418
  function ne() {
13697
14419
  if (ee?.destroy(), !k.value) return;
13698
- let e = gm(f.effectiveDateFormat.value.pattern, !J.value);
14420
+ let e = Tm(f.effectiveDateFormat.value.pattern, !J.value);
13699
14421
  ee = new ae(k.value, e);
13700
14422
  }
13701
14423
  function re(e) {
13702
14424
  let t = F.value, n = e.withTimeZone(t);
13703
- return `${zp(n.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${mp(n.hour, n.minute, J.value)}`;
14425
+ return `${Jp(n.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${Cp(n.hour, n.minute, J.value)}`;
13704
14426
  }
13705
14427
  function ie() {
13706
- return i.value ? `${zp(i.value.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${mp(i.value.hour, i.value.minute, J.value)}` : "";
14428
+ return i.value ? `${Jp(i.value.toPlainDate(), f.effectiveDateFormat.value.pattern)} ${Cp(i.value.hour, i.value.minute, J.value)}` : "";
13707
14429
  }
13708
14430
  function oe(e) {
13709
14431
  let t = e.trim().split(/\s+/);
13710
14432
  if (t.length < 2) return null;
13711
- let n = t[0], r = t.slice(1).join(" "), i = Bp(n, f.effectiveDateFormat.value.pattern);
14433
+ let n = t[0], r = t.slice(1).join(" "), i = Yp(n, f.effectiveDateFormat.value.pattern);
13712
14434
  if (!i) return null;
13713
- let a = hp(r);
14435
+ let a = wp(r);
13714
14436
  if (!a) return null;
13715
14437
  let o = i.toPlainDateTime({
13716
14438
  hour: a.hours,
@@ -13786,7 +14508,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13786
14508
  onDateSelected: (e) => {
13787
14509
  let t = he.value ?? n.defaultTime, r = e.toPlainDateTime({
13788
14510
  hour: t.hours,
13789
- minute: bp(t.minutes, n.minuteStep)
14511
+ minute: kp(t.minutes, n.minuteStep)
13790
14512
  }), a = P.value ?? L.value, o;
13791
14513
  o = fe.value === a ? r.toZonedDateTime(a) : r.toZonedDateTime(fe.value).withTimeZone(a), o = Ce(o), i.value = o;
13792
14514
  },
@@ -13877,7 +14599,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13877
14599
  },
13878
14600
  content: {
13879
14601
  kind: "component",
13880
- component: g(Xh)
14602
+ component: g(ag)
13881
14603
  },
13882
14604
  inputs: t
13883
14605
  }), f.open(), c("opened"), j.afterClosed.then(() => {
@@ -13926,7 +14648,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13926
14648
  id: v,
13927
14649
  class: "coar-zdtp-label",
13928
14650
  for: x
13929
- }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", Zh, "*")) : a("", !0)])) : a("", !0),
14651
+ }, [l(I(e.label) + " ", 1), e.required ? (E(), o("span", og, "*")) : a("", !0)])) : a("", !0),
13930
14652
  s("div", {
13931
14653
  ref_key: "triggerRef",
13932
14654
  ref: D,
@@ -13954,7 +14676,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13954
14676
  }, [u(Q, {
13955
14677
  name: "x",
13956
14678
  size: "auto"
13957
- })], 10, $h),
14679
+ })], 10, cg),
13958
14680
  s("input", {
13959
14681
  id: x,
13960
14682
  ref_key: "dateInputRef",
@@ -13969,12 +14691,12 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13969
14691
  autocomplete: "off",
13970
14692
  onInput: ke,
13971
14693
  onBlur: Ae
13972
- }, null, 40, eg),
14694
+ }, null, 40, lg),
13973
14695
  i.value ? (E(), o("span", {
13974
14696
  key: 0,
13975
14697
  class: "coar-zdtp-tz-inline",
13976
14698
  title: W.value
13977
- }, I(W.value), 9, tg)) : a("", !0),
14699
+ }, I(W.value), 9, ug)) : a("", !0),
13978
14700
  s("button", {
13979
14701
  type: "button",
13980
14702
  class: b(["coar-zdtp-tz-indicator", {
@@ -13988,7 +14710,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13988
14710
  }, [u(Q, {
13989
14711
  name: Me.value,
13990
14712
  size: "xs"
13991
- }, null, 8, ["name"])], 10, ng),
14713
+ }, null, 8, ["name"])], 10, dg),
13992
14714
  s("button", {
13993
14715
  type: "button",
13994
14716
  class: "coar-zdtp-btn",
@@ -13999,8 +14721,8 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
13999
14721
  }, [u(Q, {
14000
14722
  name: "calendar",
14001
14723
  size: "s"
14002
- })], 8, rg)
14003
- ], 42, Qh),
14724
+ })], 8, fg)
14725
+ ], 42, sg),
14004
14726
  ce.value ? (E(), o("div", {
14005
14727
  key: 1,
14006
14728
  id: T,
@@ -14009,7 +14731,7 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
14009
14731
  }, I(ce.value), 3)) : a("", !0)
14010
14732
  ], 2));
14011
14733
  }
14012
- }), [["__scopeId", "data-v-c6c2a031"]]), ag = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14734
+ }), [["__scopeId", "data-v-c6c2a031"]]), mg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14013
14735
  __name: "CoarPlainDateView",
14014
14736
  props: {
14015
14737
  value: { default: null },
@@ -14019,17 +14741,17 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
14019
14741
  size: { default: "m" }
14020
14742
  },
14021
14743
  setup(e) {
14022
- let t = e, n = fm({
14744
+ let t = e, n = xm({
14023
14745
  locale: L(t, "locale"),
14024
14746
  dateFormat: L(t, "dateFormat")
14025
14747
  });
14026
14748
  function i(e) {
14027
14749
  return typeof e == "object" && !!e && Object.prototype.toString.call(e) === "[object Temporal.PlainDate]";
14028
14750
  }
14029
- let a = r(() => i(t.value) ? zp(t.value, n.effectiveDateFormat.value.pattern) : ""), s = r(() => a.value || t.placeholder), c = r(() => !a.value);
14751
+ let a = r(() => i(t.value) ? Jp(t.value, n.effectiveDateFormat.value.pattern) : ""), s = r(() => a.value || t.placeholder), c = r(() => !a.value);
14030
14752
  return (t, n) => (E(), o("span", { class: b(["coar-plain-date-view", [`coar-plain-date-view--${e.size}`, { "coar-plain-date-view--empty": c.value }]]) }, I(s.value), 3));
14031
14753
  }
14032
- }), [["__scopeId", "data-v-c8cf9804"]]), og = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14754
+ }), [["__scopeId", "data-v-c8cf9804"]]), hg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14033
14755
  __name: "CoarPlainDateTimeView",
14034
14756
  props: {
14035
14757
  value: { default: null },
@@ -14043,17 +14765,17 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
14043
14765
  size: { default: "m" }
14044
14766
  },
14045
14767
  setup(e) {
14046
- let t = e, n = fm({
14768
+ let t = e, n = xm({
14047
14769
  locale: L(t, "locale"),
14048
14770
  dateFormat: L(t, "dateFormat")
14049
- }), i = r(() => t.use24Hour === !0 ? !0 : t.use24Hour === !1 ? !1 : !pp(n.effectiveLocale.value));
14771
+ }), i = r(() => t.use24Hour === !0 ? !0 : t.use24Hour === !1 ? !1 : !Sp(n.effectiveLocale.value));
14050
14772
  function a(e) {
14051
14773
  return typeof e == "object" && !!e && Object.prototype.toString.call(e) === "[object Temporal.PlainDateTime]";
14052
14774
  }
14053
- let s = r(() => a(t.value) ? `${zp(t.value.toPlainDate(), n.effectiveDateFormat.value.pattern)} ${mp(t.value.hour, t.value.minute, i.value)}` : ""), c = r(() => s.value || t.placeholder), l = r(() => !s.value);
14775
+ let s = r(() => a(t.value) ? `${Jp(t.value.toPlainDate(), n.effectiveDateFormat.value.pattern)} ${Cp(t.value.hour, t.value.minute, i.value)}` : ""), c = r(() => s.value || t.placeholder), l = r(() => !s.value);
14054
14776
  return (t, n) => (E(), o("span", { class: b(["coar-plain-date-time-view", [`coar-plain-date-time-view--${e.size}`, { "coar-plain-date-time-view--empty": l.value }]]) }, I(c.value), 3));
14055
14777
  }
14056
- }), [["__scopeId", "data-v-f32044ac"]]), sg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14778
+ }), [["__scopeId", "data-v-f32044ac"]]), gg = /* @__PURE__ */ Z(/* @__PURE__ */ d({
14057
14779
  __name: "CoarZonedDateTimeView",
14058
14780
  props: {
14059
14781
  value: { default: null },
@@ -14072,20 +14794,20 @@ var Sh = { class: "coar-zdtp-body" }, Ch = { class: "coar-zdtp-calendar-column"
14072
14794
  size: { default: "m" }
14073
14795
  },
14074
14796
  setup(e) {
14075
- let t = e, n = fm({
14797
+ let t = e, n = xm({
14076
14798
  locale: L(t, "locale"),
14077
14799
  dateFormat: L(t, "dateFormat")
14078
- }), i = r(() => t.use24Hour === !0 ? !0 : t.use24Hour === !1 ? !1 : !pp(n.effectiveLocale.value));
14800
+ }), i = r(() => t.use24Hour === !0 ? !0 : t.use24Hour === !1 ? !1 : !Sp(n.effectiveLocale.value));
14079
14801
  function a(e) {
14080
14802
  return typeof e == "object" && !!e && Object.prototype.toString.call(e) === "[object Temporal.ZonedDateTime]";
14081
14803
  }
14082
14804
  let s = r(() => t.displayTimeZone ? t.displayTimeZone : a(t.value) ? t.value.timeZoneId : null), c = r(() => {
14083
14805
  if (!a(t.value)) return "";
14084
- let e = s.value, r = e ? t.value.withTimeZone(e) : t.value, o = zp(r.toPlainDate(), n.effectiveDateFormat.value.pattern), c = mp(r.hour, r.minute, i.value);
14085
- return !t.showTimeZone || !e ? `${o} ${c}` : `${o} ${c} ${vh(e, r.toInstant())}`;
14806
+ let e = s.value, r = e ? t.value.withTimeZone(e) : t.value, o = Jp(r.toPlainDate(), n.effectiveDateFormat.value.pattern), c = Cp(r.hour, r.minute, i.value);
14807
+ return !t.showTimeZone || !e ? `${o} ${c}` : `${o} ${c} ${Dh(e, r.toInstant())}`;
14086
14808
  }), l = r(() => c.value || t.placeholder), u = r(() => !c.value);
14087
14809
  return (t, n) => (E(), o("span", { class: b(["coar-zoned-date-time-view", [`coar-zoned-date-time-view--${e.size}`, { "coar-zoned-date-time-view--empty": u.value }]]) }, I(l.value), 3));
14088
14810
  }
14089
14811
  }), [["__scopeId", "data-v-00d86dd7"]]);
14090
14812
  //#endregion
14091
- export { Ee as COAR_BUILTIN_ICON_SOURCE_KEY, mm as COAR_DATE_FORMAT_TO_MASKITO_MODE, pm as COAR_DEFAULT_TIME_FORMAT, Te as COAR_ICON_SERVICE_KEY, kd as COAR_TREE_DRAG_MIME, Md as COAR_TREE_RENAME_KEY, jd as COAR_TREE_ROW_ID_KEY, Ae as CORE_ICONS, bs as CoarAvatar, Ho as CoarBadge, uf as CoarBreadcrumb, hf as CoarBreadcrumbItem, Oo as CoarButton, Zo as CoarCard, Qs as CoarCheckbox, ds as CoarCodeBlock, yo as CoarCollapse, yd as CoarContextMenu, Su as CoarDialogShell, Lo as CoarDivider, Rl as CoarDualListbox, go as CoarFade, ho as CoarFormField, Oe as CoarHttpIconSource, Q as CoarIcon, De as CoarIconMapSource, Fo as CoarIconPlugin, ke as CoarIconService, No as CoarLink, Ml as CoarListbox, Uu as CoarMenu, rd as CoarMenuDivider, id as CoarMenuHeading, $u as CoarMenuItem, um as CoarMonthList, il as CoarMultiSelect, fp as CoarNavbar, Uo as CoarNote, Ks as CoarNumberInput, Ms as CoarOtpInput, eu as CoarOverlayHost, Vl as CoarOverlayOutlet, pt as CoarOverlayPlugin, wf as CoarPagination, nf as CoarPanelLayout, Ls as CoarPasswordInput, Vm as CoarPlainDatePicker, ph as CoarPlainDateTimePicker, og as CoarPlainDateTimeView, ag as CoarPlainDateView, su as CoarPopconfirm, ou as CoarPopconfirmPanel, Xa as CoarPopover, qo as CoarProgressBar, oc as CoarRadioButton, nc as CoarRadioGroup, vo as CoarScale, tm as CoarScrollableCalendar, sf as CoarSegmentedControl, Cc as CoarSelect, Ff as CoarSidebar, sp as CoarSidebarDivider, rp as CoarSidebarGroup, ap as CoarSidebarHeading, Gf as CoarSidebarItem, cp as CoarSidebarSpacer, _o as CoarSlide, zo as CoarSpinner, Xd as CoarSplitPane, dd as CoarSubExpand, _d as CoarSubFlyout, _d as CoarSubmenuItem, uc as CoarSwitch, xd as CoarTab, Od as CoarTabGroup, xs as CoarTable, ms as CoarTag, hl as CoarTagSelect, ks as CoarTextInput, Pp as CoarTimePicker, $l as CoarToastContainer, Zl as CoarToastItem, Hd as CoarTree, Gd as CoarTreeNodeLabel, ig as CoarZonedDateTimePicker, sg as CoarZonedDateTimeView, so as FORM_FIELD_INJECTION_KEY, Mu as MenuCascade, Le as OVERLAY_DEFAULTS, lt as OVERLAY_PARENT_KEY, ct as OVERLAY_SERVICE_KEY, we as PRESET_SIZES, $s as RADIO_GROUP_INJECTION_KEY, Ef as SIDEBAR_COLLAPSED_KEY, Df as SIDEBAR_ICON_SIZE_KEY, nt as TOAST_SERVICE_KEY, Kd as TreeBuilder, Ke as computeOverlayCoordinates, wt as contextMenuPreset, Po as createCoarIconService, $e as createOverlayService, at as createToastService, xt as datepickerPreset, bt as dialogPreset, He as getAnchorRect, Be as getContainerRect, ft as getOverlayService, Ge as getScrollParents, Wa as getScrollbarInstance, st as getToastService, ze as getViewportRect, yt as hoverMenuPreset, _t as menuPreset, gt as modalPreset, Et as popconfirmPreset, St as popoverPreset, Iu as provideMenuCascade, Ru as provideMenuClose, Re as resolveOverlaySpec, vt as selectPreset, xe as setCoarDragImageFromElement, Se as setCoarDragImageFromHtml, Ct as sidebarFlyoutPreset, Tt as subFlyoutPreset, ht as tooltipPreset, bd as useContextMenu, Du as useDialog, ye as useDragDrop, Lu as useMenuCascade, zu as useMenuClose, mt as useOverlay, ut as useOverlayParent, mu as useToast, qd as useTree, ue as useVirtualList, Ua as vScrollbar, Bc as vTooltip };
14813
+ export { Ee as COAR_BUILTIN_ICON_SOURCE_KEY, Cm as COAR_DATE_FORMAT_TO_MASKITO_MODE, Sm as COAR_DEFAULT_TIME_FORMAT, Te as COAR_ICON_SERVICE_KEY, Ad as COAR_TREE_DRAG_MIME, Pd as COAR_TREE_RENAME_KEY, Md as COAR_TREE_ROW_ID_KEY, Ae as CORE_ICONS, bs as CoarAvatar, Ho as CoarBadge, yf as CoarBreadcrumb, wf as CoarBreadcrumbItem, Oo as CoarButton, Zo as CoarCard, Qs as CoarCheckbox, ds as CoarCodeBlock, yo as CoarCollapse, yd as CoarContextMenu, Su as CoarDialogShell, Lo as CoarDivider, Rl as CoarDualListbox, go as CoarFade, ho as CoarFormField, Oe as CoarHttpIconSource, Q as CoarIcon, De as CoarIconMapSource, Fo as CoarIconPlugin, ke as CoarIconService, No as CoarLink, Ml as CoarListbox, Uu as CoarMenu, rd as CoarMenuDivider, id as CoarMenuHeading, $u as CoarMenuItem, ym as CoarMonthList, il as CoarMultiSelect, xp as CoarNavbar, Uo as CoarNote, Ks as CoarNumberInput, Ms as CoarOtpInput, eu as CoarOverlayHost, Vl as CoarOverlayOutlet, pt as CoarOverlayPlugin, Nf as CoarPagination, ff as CoarPanelLayout, Ls as CoarPasswordInput, Xm as CoarPlainDatePicker, Sh as CoarPlainDateTimePicker, hg as CoarPlainDateTimeView, mg as CoarPlainDateView, su as CoarPopconfirm, ou as CoarPopconfirmPanel, Xa as CoarPopover, qo as CoarProgressBar, oc as CoarRadioButton, nc as CoarRadioGroup, vo as CoarScale, um as CoarScrollableCalendar, gf as CoarSegmentedControl, Cc as CoarSelect, Wf as CoarSidebar, gp as CoarSidebarDivider, fp as CoarSidebarGroup, mp as CoarSidebarHeading, ep as CoarSidebarItem, _p as CoarSidebarSpacer, _o as CoarSlide, zo as CoarSpinner, of as CoarSplitPane, dd as CoarSubExpand, _d as CoarSubFlyout, _d as CoarSubmenuItem, uc as CoarSwitch, xd as CoarTab, Od as CoarTabGroup, xs as CoarTable, ms as CoarTag, hl as CoarTagSelect, ks as CoarTextInput, Up as CoarTimePicker, $l as CoarToastContainer, Zl as CoarToastItem, Zd as CoarTree, ef as CoarTreeNodeLabel, pg as CoarZonedDateTimePicker, gg as CoarZonedDateTimeView, kd as DEFAULT_TREE_LABELS, so as FORM_FIELD_INJECTION_KEY, Mu as MenuCascade, Le as OVERLAY_DEFAULTS, lt as OVERLAY_PARENT_KEY, ct as OVERLAY_SERVICE_KEY, we as PRESET_SIZES, $s as RADIO_GROUP_INJECTION_KEY, Ff as SIDEBAR_COLLAPSED_KEY, If as SIDEBAR_ICON_SIZE_KEY, nt as TOAST_SERVICE_KEY, tf as TreeBuilder, Ke as computeOverlayCoordinates, wt as contextMenuPreset, Po as createCoarIconService, $e as createOverlayService, at as createToastService, xt as datepickerPreset, bt as dialogPreset, He as getAnchorRect, Be as getContainerRect, ft as getOverlayService, Ge as getScrollParents, Wa as getScrollbarInstance, st as getToastService, ze as getViewportRect, yt as hoverMenuPreset, _t as menuPreset, gt as modalPreset, Et as popconfirmPreset, St as popoverPreset, Iu as provideMenuCascade, Ru as provideMenuClose, Re as resolveOverlaySpec, vt as selectPreset, xe as setCoarDragImageFromElement, Se as setCoarDragImageFromHtml, Ct as sidebarFlyoutPreset, Tt as subFlyoutPreset, ht as tooltipPreset, bd as useContextMenu, Du as useDialog, ye as useDragDrop, Lu as useMenuCascade, zu as useMenuClose, mt as useOverlay, ut as useOverlayParent, mu as useToast, nf as useTree, ue as useVirtualList, Ua as vScrollbar, Bc as vTooltip };