@stonecrop/aform 0.9.1 → 0.9.2

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/aform.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent as te, useTemplateRef as fe, ref as L, computed as $, openBlock as w, createElementBlock as k, unref as V, normalizeClass as ae, normalizeStyle as xe, createBlock as pe, resolveDynamicComponent as We, mergeProps as vt, toDisplayString as K, createElementVNode as y, withModifiers as Ie, withDirectives as J, Fragment as ue, renderList as me, vShow as Ce, createCommentVNode as q, renderSlot as he, createTextVNode as Dt, onMounted as Ee, watch as oe, onBeforeUnmount as sn, nextTick as pt, toValue as E, shallowRef as ie, getCurrentScope as mt, onScopeDispose as ht, reactive as rn, vModelText as we, vModelCheckbox as un, vModelSelect as Cn, getCurrentInstance as gt, watchEffect as Oe, useCssVars as En, onUnmounted as An, useModel as ke, createVNode as dt, withCtx as Tt, mergeModels as Me, isRef as Tn, toRefs as $n, customRef as St, toRef as cn, readonly as Rt, resolveComponent as dn, withKeys as Ne } from "vue";
1
+ import { defineComponent as ne, useTemplateRef as fe, ref as L, computed as $, openBlock as w, createElementBlock as k, unref as V, normalizeClass as ae, normalizeStyle as xe, createBlock as pe, resolveDynamicComponent as Ue, mergeProps as vt, toDisplayString as K, createElementVNode as y, withModifiers as Ie, withDirectives as J, Fragment as ue, renderList as me, vShow as Ce, createCommentVNode as q, renderSlot as he, createTextVNode as Dt, onMounted as Ee, watch as te, onBeforeUnmount as sn, nextTick as pt, toValue as E, shallowRef as ie, getCurrentScope as mt, onScopeDispose as ht, reactive as rn, vModelText as we, vModelCheckbox as un, vModelSelect as Cn, getCurrentInstance as gt, watchEffect as Qe, useCssVars as En, onUnmounted as An, useModel as ke, createVNode as dt, withCtx as Tt, mergeModels as Me, isRef as Tn, toRefs as $n, customRef as St, toRef as cn, readonly as Rt, resolveComponent as dn, withKeys as Ze } from "vue";
2
2
  import { defineStore as Dn } from "pinia";
3
3
  import './assets/index.css';function fn(e, t) {
4
4
  return mt() ? (ht(e, t), !0) : !1;
@@ -11,13 +11,13 @@ function rt(e) {
11
11
  return Array.isArray(e) ? e : [e];
12
12
  }
13
13
  function Pn(e, t, n) {
14
- return oe(e, t, {
14
+ return te(e, t, {
15
15
  ...n,
16
16
  immediate: !0
17
17
  });
18
18
  }
19
- const qe = Sn ? window : void 0;
20
- function Ge(e) {
19
+ const ze = Sn ? window : void 0;
20
+ function We(e) {
21
21
  var t;
22
22
  const n = E(e);
23
23
  return (t = n?.$el) !== null && t !== void 0 ? t : n;
@@ -30,64 +30,64 @@ function Ke(...e) {
30
30
  return Pn(() => {
31
31
  var o, a;
32
32
  return [
33
- (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => Ge(r))) !== null && o !== void 0 ? o : [qe].filter((r) => r != null),
33
+ (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => We(r))) !== null && o !== void 0 ? o : [ze].filter((r) => r != null),
34
34
  rt(E(n.value ? e[1] : e[0])),
35
35
  rt(V(n.value ? e[2] : e[1])),
36
36
  E(n.value ? e[3] : e[2])
37
37
  ];
38
- }, ([o, a, r, s], l, i) => {
38
+ }, ([o, a, r, s], l, u) => {
39
39
  if (!o?.length || !a?.length || !r?.length) return;
40
- const u = Hn(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
41
- i(() => {
40
+ const i = Hn(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((m) => r.map((I) => t(p, m, I, i))));
41
+ u(() => {
42
42
  c.forEach((p) => p());
43
43
  });
44
44
  }, { flush: "post" });
45
45
  }
46
46
  // @__NO_SIDE_EFFECTS__
47
- function On() {
47
+ function _n() {
48
48
  const e = ie(!1), t = gt();
49
49
  return t && Ee(() => {
50
50
  e.value = !0;
51
51
  }, t), e;
52
52
  }
53
53
  // @__NO_SIDE_EFFECTS__
54
- function _n(e) {
55
- const t = /* @__PURE__ */ On();
54
+ function On(e) {
55
+ const t = /* @__PURE__ */ _n();
56
56
  return $(() => (t.value, !!e()));
57
57
  }
58
58
  function Bn(e, t, n = {}) {
59
- const { window: o = qe, ...a } = n;
59
+ const { window: o = ze, ...a } = n;
60
60
  let r;
61
- const s = /* @__PURE__ */ _n(() => o && "MutationObserver" in o), l = () => {
61
+ const s = /* @__PURE__ */ On(() => o && "MutationObserver" in o), l = () => {
62
62
  r && (r.disconnect(), r = void 0);
63
- }, i = oe($(() => {
64
- const p = rt(E(e)).map(Ge).filter(Rn);
63
+ }, u = te($(() => {
64
+ const p = rt(E(e)).map(We).filter(Rn);
65
65
  return new Set(p);
66
66
  }), (p) => {
67
- l(), s.value && p.size && (r = new MutationObserver(t), p.forEach((h) => r.observe(h, a)));
67
+ l(), s.value && p.size && (r = new MutationObserver(t), p.forEach((m) => r.observe(m, a)));
68
68
  }, {
69
69
  immediate: !0,
70
70
  flush: "post"
71
- }), u = () => r?.takeRecords(), c = () => {
72
- i(), l();
71
+ }), i = () => r?.takeRecords(), c = () => {
72
+ u(), l();
73
73
  };
74
74
  return fn(c), {
75
75
  isSupported: s,
76
76
  stop: c,
77
- takeRecords: u
77
+ takeRecords: i
78
78
  };
79
79
  }
80
80
  function Fn(e, t, n = {}) {
81
- const { window: o = qe, document: a = o?.document, flush: r = "sync" } = n;
81
+ const { window: o = ze, document: a = o?.document, flush: r = "sync" } = n;
82
82
  if (!o || !a) return Vn;
83
83
  let s;
84
84
  const l = (c) => {
85
85
  s?.(), s = c;
86
- }, i = Oe(() => {
87
- const c = Ge(e);
86
+ }, u = Qe(() => {
87
+ const c = We(e);
88
88
  if (c) {
89
- const { stop: p } = Bn(a, (h) => {
90
- h.map((b) => [...b.removedNodes]).flat().some((b) => b === c || b.contains(c)) && t(h);
89
+ const { stop: p } = Bn(a, (m) => {
90
+ m.map((I) => [...I.removedNodes]).flat().some((I) => I === c || I.contains(c)) && t(m);
91
91
  }, {
92
92
  window: o,
93
93
  childList: !0,
@@ -95,47 +95,47 @@ function Fn(e, t, n = {}) {
95
95
  });
96
96
  l(p);
97
97
  }
98
- }, { flush: r }), u = () => {
99
- i(), l();
98
+ }, { flush: r }), i = () => {
99
+ u(), l();
100
100
  };
101
- return fn(u), u;
101
+ return fn(i), i;
102
102
  }
103
103
  // @__NO_SIDE_EFFECTS__
104
104
  function Zn(e = {}) {
105
105
  var t;
106
- const { window: n = qe, deep: o = !0, triggerOnRemoval: a = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : n?.document, s = () => {
107
- let u = r?.activeElement;
106
+ const { window: n = ze, deep: o = !0, triggerOnRemoval: a = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : n?.document, s = () => {
107
+ let i = r?.activeElement;
108
108
  if (o)
109
- for (var c; u?.shadowRoot; ) u = u == null || (c = u.shadowRoot) === null || c === void 0 ? void 0 : c.activeElement;
110
- return u;
111
- }, l = ie(), i = () => {
109
+ for (var c; i?.shadowRoot; ) i = i == null || (c = i.shadowRoot) === null || c === void 0 ? void 0 : c.activeElement;
110
+ return i;
111
+ }, l = ie(), u = () => {
112
112
  l.value = s();
113
113
  };
114
114
  if (n) {
115
- const u = {
115
+ const i = {
116
116
  capture: !0,
117
117
  passive: !0
118
118
  };
119
119
  Ke(n, "blur", (c) => {
120
- c.relatedTarget === null && i();
121
- }, u), Ke(n, "focus", i, u);
120
+ c.relatedTarget === null && u();
121
+ }, i), Ke(n, "focus", u, i);
122
122
  }
123
- return a && Fn(l, i, { document: r }), i(), l;
123
+ return a && Fn(l, u, { document: r }), u(), l;
124
124
  }
125
125
  const Nn = "focusin", Un = "focusout", Wn = ":focus-within";
126
126
  function Gn(e, t = {}) {
127
- const { window: n = qe } = t, o = $(() => Ge(e)), a = ie(!1), r = $(() => a.value);
127
+ const { window: n = ze } = t, o = $(() => We(e)), a = ie(!1), r = $(() => a.value);
128
128
  if (!n || !(/* @__PURE__ */ Zn(t)).value) return { focused: r };
129
129
  const s = { passive: !0 };
130
130
  return Ke(o, Nn, () => a.value = !0, s), Ke(o, Un, () => {
131
- var l, i, u;
132
- return a.value = (l = (i = o.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i, Wn)) !== null && l !== void 0 ? l : !1;
131
+ var l, u, i;
132
+ return a.value = (l = (u = o.value) === null || u === void 0 || (i = u.matches) === null || i === void 0 ? void 0 : i.call(u, Wn)) !== null && l !== void 0 ? l : !1;
133
133
  }, s), { focused: r };
134
134
  }
135
- function zn(e, { window: t = qe, scrollTarget: n } = {}) {
135
+ function zn(e, { window: t = ze, scrollTarget: n } = {}) {
136
136
  const o = L(!1), a = () => {
137
137
  if (!t) return;
138
- const r = t.document, s = Ge(e);
138
+ const r = t.document, s = We(e);
139
139
  if (!s)
140
140
  o.value = !1;
141
141
  else {
@@ -143,8 +143,8 @@ function zn(e, { window: t = qe, scrollTarget: n } = {}) {
143
143
  o.value = l.top <= (t.innerHeight || r.documentElement.clientHeight) && l.left <= (t.innerWidth || r.documentElement.clientWidth) && l.bottom >= 0 && l.right >= 0;
144
144
  }
145
145
  };
146
- return oe(
147
- () => Ge(e),
146
+ return te(
147
+ () => We(e),
148
148
  () => a(),
149
149
  { immediate: !0, flush: "post" }
150
150
  ), t && Ke(n || t, "scroll", a, {
@@ -308,63 +308,63 @@ const Ae = (e) => {
308
308
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
309
309
  }
310
310
  };
311
- function Ot(e) {
311
+ function _t(e) {
312
312
  const t = (s) => {
313
313
  let l = null;
314
314
  return s.parent && (typeof s.parent == "string" ? l = document.querySelector(s.parent) : s.parent instanceof HTMLElement ? l = s.parent : l = s.parent.value), l;
315
315
  }, n = (s) => {
316
316
  const l = t(s);
317
- let i = [];
317
+ let u = [];
318
318
  if (typeof s.selectors == "string")
319
- i = Array.from(l ? l.querySelectorAll(s.selectors) : document.querySelectorAll(s.selectors));
319
+ u = Array.from(l ? l.querySelectorAll(s.selectors) : document.querySelectorAll(s.selectors));
320
320
  else if (Array.isArray(s.selectors))
321
- for (const u of s.selectors)
322
- u instanceof HTMLElement ? i.push(u) : i.push(u.$el);
321
+ for (const i of s.selectors)
322
+ i instanceof HTMLElement ? u.push(i) : u.push(i.$el);
323
323
  else if (s.selectors instanceof HTMLElement)
324
- i.push(s.selectors);
324
+ u.push(s.selectors);
325
325
  else if (s.selectors?.value)
326
326
  if (Array.isArray(s.selectors.value))
327
- for (const u of s.selectors.value)
328
- u instanceof HTMLElement ? i.push(u) : i.push(u.$el);
327
+ for (const i of s.selectors.value)
328
+ i instanceof HTMLElement ? u.push(i) : u.push(i.$el);
329
329
  else
330
- i.push(s.selectors.value);
331
- return i;
330
+ u.push(s.selectors.value);
331
+ return u;
332
332
  }, o = (s) => {
333
333
  const l = t(s);
334
- let i = [];
335
- return s.selectors ? i = n(s) : l && (i = Array.from(l.children).filter((u) => Te(u) && Ae(u))), i;
334
+ let u = [];
335
+ return s.selectors ? u = n(s) : l && (u = Array.from(l.children).filter((i) => Te(i) && Ae(i))), u;
336
336
  }, a = (s) => (l) => {
337
- const i = Xn[l.key] || l.key.toLowerCase();
338
- if (ot.includes(i)) return;
339
- const u = s.handlers || wt;
340
- for (const c of Object.keys(u)) {
341
- const [p, ...h] = c.split(".");
342
- if (p === "keydown" && h.includes(i)) {
343
- const b = u[c], I = h.filter((f) => ot.includes(f)), x = ot.some((f) => {
344
- const m = f.charAt(0).toUpperCase() + f.slice(1);
345
- return l.getModifierState(m);
337
+ const u = Xn[l.key] || l.key.toLowerCase();
338
+ if (ot.includes(u)) return;
339
+ const i = s.handlers || wt;
340
+ for (const c of Object.keys(i)) {
341
+ const [p, ...m] = c.split(".");
342
+ if (p === "keydown" && m.includes(u)) {
343
+ const I = i[c], b = m.filter((f) => ot.includes(f)), x = ot.some((f) => {
344
+ const h = f.charAt(0).toUpperCase() + f.slice(1);
345
+ return l.getModifierState(h);
346
346
  });
347
- if (I.length > 0) {
347
+ if (b.length > 0) {
348
348
  if (x) {
349
349
  for (const f of ot)
350
- if (h.includes(f)) {
351
- const m = f.charAt(0).toUpperCase() + f.slice(1);
352
- l.getModifierState(m) && b(l);
350
+ if (m.includes(f)) {
351
+ const h = f.charAt(0).toUpperCase() + f.slice(1);
352
+ l.getModifierState(h) && I(l);
353
353
  }
354
354
  }
355
355
  } else
356
- x || b(l);
356
+ x || I(l);
357
357
  }
358
358
  }
359
359
  }, r = [];
360
360
  Ee(() => {
361
361
  for (const s of e) {
362
- const l = t(s), i = o(s), u = a(s), c = l ? [l] : i;
362
+ const l = t(s), u = o(s), i = a(s), c = l ? [l] : u;
363
363
  for (const p of c) {
364
- const { focused: h } = Gn(L(p)), b = oe(h, (I) => {
365
- I ? p.addEventListener("keydown", u) : p.removeEventListener("keydown", u);
364
+ const { focused: m } = Gn(L(p)), I = te(m, (b) => {
365
+ b ? p.addEventListener("keydown", i) : p.removeEventListener("keydown", i);
366
366
  });
367
- r.push(b);
367
+ r.push(I);
368
368
  }
369
369
  }
370
370
  }), sn(() => {
@@ -372,7 +372,7 @@ function Ot(e) {
372
372
  s();
373
373
  });
374
374
  }
375
- function _t(e, t) {
375
+ function Ot(e, t) {
376
376
  return mt() ? (ht(e, t), !0) : !1;
377
377
  }
378
378
  const vn = typeof window < "u" && typeof document < "u";
@@ -406,13 +406,13 @@ function to(e, t = {}) {
406
406
  };
407
407
  let s;
408
408
  return (l) => {
409
- const i = E(e), u = E(t.maxWait);
410
- return n && r(n), i <= 0 || u !== void 0 && u <= 0 ? (o && (r(o), o = void 0), Promise.resolve(l())) : new Promise((c, p) => {
411
- a = t.rejectOnCancel ? p : c, s = l, u && !o && (o = setTimeout(() => {
409
+ const u = E(e), i = E(t.maxWait);
410
+ return n && r(n), u <= 0 || i !== void 0 && i <= 0 ? (o && (r(o), o = void 0), Promise.resolve(l())) : new Promise((c, p) => {
411
+ a = t.rejectOnCancel ? p : c, s = l, i && !o && (o = setTimeout(() => {
412
412
  n && r(n), o = void 0, c(s());
413
- }, u)), n = setTimeout(() => {
413
+ }, i)), n = setTimeout(() => {
414
414
  o && r(o), o = void 0, c(l());
415
- }, i);
415
+ }, u);
416
416
  });
417
417
  };
418
418
  }
@@ -454,7 +454,7 @@ function ao(e, t = !0, n) {
454
454
  no() ? Ee(e, n) : t ? e() : pt(e);
455
455
  }
456
456
  function so(e, t, n) {
457
- return oe(e, t, {
457
+ return te(e, t, {
458
458
  ...n,
459
459
  immediate: !0
460
460
  });
@@ -478,10 +478,10 @@ function He(...e) {
478
478
  it(V(n.value ? e[2] : e[1])),
479
479
  E(n.value ? e[3] : e[2])
480
480
  ];
481
- }, ([o, a, r, s], l, i) => {
481
+ }, ([o, a, r, s], l, u) => {
482
482
  if (!o?.length || !a?.length || !r?.length) return;
483
- const u = Qn(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
484
- i(() => {
483
+ const i = Qn(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((m) => r.map((I) => t(p, m, I, i))));
484
+ u(() => {
485
485
  c.forEach((p) => p());
486
486
  });
487
487
  }, { flush: "post" });
@@ -493,61 +493,61 @@ function $t(e, t, n = {}) {
493
493
  cancel: _e,
494
494
  trigger: _e
495
495
  } : _e;
496
- let i = !0;
497
- const u = (f) => E(a).some((m) => {
498
- if (typeof m == "string") return Array.from(o.document.querySelectorAll(m)).some((g) => g === f.target || f.composedPath().includes(g));
496
+ let u = !0;
497
+ const i = (f) => E(a).some((h) => {
498
+ if (typeof h == "string") return Array.from(o.document.querySelectorAll(h)).some((g) => g === f.target || f.composedPath().includes(g));
499
499
  {
500
- const g = ye(m);
500
+ const g = ye(h);
501
501
  return g && (f.target === g || f.composedPath().includes(g));
502
502
  }
503
503
  });
504
504
  function c(f) {
505
- const m = E(f);
506
- return m && m.$.subTree.shapeFlag === 16;
505
+ const h = E(f);
506
+ return h && h.$.subTree.shapeFlag === 16;
507
507
  }
508
- function p(f, m) {
508
+ function p(f, h) {
509
509
  const g = E(f), C = g.$.subTree && g.$.subTree.children;
510
- return C == null || !Array.isArray(C) ? !1 : C.some((T) => T.el === m.target || m.composedPath().includes(T.el));
510
+ return C == null || !Array.isArray(C) ? !1 : C.some((T) => T.el === h.target || h.composedPath().includes(T.el));
511
511
  }
512
- const h = (f) => {
513
- const m = ye(e);
514
- if (f.target != null && !(!(m instanceof Element) && c(e) && p(e, f)) && !(!m || m === f.target || f.composedPath().includes(m))) {
515
- if ("detail" in f && f.detail === 0 && (i = !u(f)), !i) {
516
- i = !0;
512
+ const m = (f) => {
513
+ const h = ye(e);
514
+ if (f.target != null && !(!(h instanceof Element) && c(e) && p(e, f)) && !(!h || h === f.target || f.composedPath().includes(h))) {
515
+ if ("detail" in f && f.detail === 0 && (u = !i(f)), !u) {
516
+ u = !0;
517
517
  return;
518
518
  }
519
519
  t(f);
520
520
  }
521
521
  };
522
- let b = !1;
523
- const I = [
522
+ let I = !1;
523
+ const b = [
524
524
  He(o, "click", (f) => {
525
- b || (b = !0, setTimeout(() => {
526
- b = !1;
527
- }, 0), h(f));
525
+ I || (I = !0, setTimeout(() => {
526
+ I = !1;
527
+ }, 0), m(f));
528
528
  }, {
529
529
  passive: !0,
530
530
  capture: r
531
531
  }),
532
532
  He(o, "pointerdown", (f) => {
533
- const m = ye(e);
534
- i = !u(f) && !!(m && !f.composedPath().includes(m));
533
+ const h = ye(e);
534
+ u = !i(f) && !!(h && !f.composedPath().includes(h));
535
535
  }, { passive: !0 }),
536
536
  s && He(o, "blur", (f) => {
537
537
  setTimeout(() => {
538
- var m;
538
+ var h;
539
539
  const g = ye(e);
540
- ((m = o.document.activeElement) === null || m === void 0 ? void 0 : m.tagName) === "IFRAME" && !g?.contains(o.document.activeElement) && t(f);
540
+ ((h = o.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !g?.contains(o.document.activeElement) && t(f);
541
541
  }, 0);
542
542
  }, { passive: !0 })
543
- ].filter(Boolean), x = () => I.forEach((f) => f());
543
+ ].filter(Boolean), x = () => b.forEach((f) => f());
544
544
  return l ? {
545
545
  stop: x,
546
546
  cancel: () => {
547
- i = !1;
547
+ u = !1;
548
548
  },
549
549
  trigger: (f) => {
550
- i = !0, h(f), i = !1;
550
+ u = !0, m(f), u = !1;
551
551
  }
552
552
  } : x;
553
553
  }
@@ -568,21 +568,21 @@ function mn(e, t, n = {}) {
568
568
  let r;
569
569
  const s = /* @__PURE__ */ pn(() => o && "MutationObserver" in o), l = () => {
570
570
  r && (r.disconnect(), r = void 0);
571
- }, i = oe($(() => {
571
+ }, u = te($(() => {
572
572
  const p = it(E(e)).map(ye).filter(jn);
573
573
  return new Set(p);
574
574
  }), (p) => {
575
- l(), s.value && p.size && (r = new MutationObserver(t), p.forEach((h) => r.observe(h, a)));
575
+ l(), s.value && p.size && (r = new MutationObserver(t), p.forEach((m) => r.observe(m, a)));
576
576
  }, {
577
577
  immediate: !0,
578
578
  flush: "post"
579
- }), u = () => r?.takeRecords(), c = () => {
580
- i(), l();
579
+ }), i = () => r?.takeRecords(), c = () => {
580
+ u(), l();
581
581
  };
582
- return _t(c), {
582
+ return Ot(c), {
583
583
  isSupported: s,
584
584
  stop: c,
585
- takeRecords: u
585
+ takeRecords: i
586
586
  };
587
587
  }
588
588
  const lt = {
@@ -595,26 +595,26 @@ function io(e) {
595
595
  }
596
596
  function yt(e, t = {}) {
597
597
  var n, o, a, r;
598
- const { pointerTypes: s, preventDefault: l, stopPropagation: i, exact: u, onMove: c, onEnd: p, onStart: h, initialValue: b, axis: I = "both", draggingElement: x = tt, containerElement: f, handle: m = e, buttons: g = [0], restrictInView: C, autoScroll: T = !1 } = t, R = L((n = E(b)) !== null && n !== void 0 ? n : {
598
+ const { pointerTypes: s, preventDefault: l, stopPropagation: u, exact: i, onMove: c, onEnd: p, onStart: m, initialValue: I, axis: b = "both", draggingElement: x = tt, containerElement: f, handle: h = e, buttons: g = [0], restrictInView: C, autoScroll: T = !1 } = t, R = L((n = E(I)) !== null && n !== void 0 ? n : {
599
599
  x: 0,
600
600
  y: 0
601
- }), S = L(), _ = (D) => s ? s.includes(D.pointerType) : !0, U = (D) => {
602
- E(l) && D.preventDefault(), E(i) && D.stopPropagation();
601
+ }), S = L(), O = (D) => s ? s.includes(D.pointerType) : !0, U = (D) => {
602
+ E(l) && D.preventDefault(), E(u) && D.stopPropagation();
603
603
  }, ve = E(T), Y = typeof ve == "object" ? {
604
604
  speed: (o = E(ve.speed)) !== null && o !== void 0 ? o : lt.speed,
605
605
  margin: (a = E(ve.margin)) !== null && a !== void 0 ? a : lt.margin,
606
606
  direction: (r = ve.direction) !== null && r !== void 0 ? r : lt.direction
607
607
  } : lt, X = (D) => typeof D == "number" ? [D, D] : [D.x, D.y], ge = (D, F, W) => {
608
- const { clientWidth: j, clientHeight: z, scrollLeft: se, scrollTop: be, scrollWidth: Le, scrollHeight: O } = D, [B, G] = X(Y.margin), [Q, ne] = X(Y.speed);
608
+ const { clientWidth: j, clientHeight: z, scrollLeft: se, scrollTop: be, scrollWidth: Le, scrollHeight: _ } = D, [B, G] = X(Y.margin), [Q, oe] = X(Y.speed);
609
609
  let ee = 0, re = 0;
610
- (Y.direction === "x" || Y.direction === "both") && (W.x < B && se > 0 ? ee = -Q : W.x + F.width > j - B && se < Le - j && (ee = Q)), (Y.direction === "y" || Y.direction === "both") && (W.y < G && be > 0 ? re = -ne : W.y + F.height > z - G && be < O - z && (re = ne)), (ee || re) && D.scrollBy({
610
+ (Y.direction === "x" || Y.direction === "both") && (W.x < B && se > 0 ? ee = -Q : W.x + F.width > j - B && se < Le - j && (ee = Q)), (Y.direction === "y" || Y.direction === "both") && (W.y < G && be > 0 ? re = -oe : W.y + F.height > z - G && be < _ - z && (re = oe)), (ee || re) && D.scrollBy({
611
611
  left: ee,
612
612
  top: re,
613
613
  behavior: "auto"
614
614
  });
615
615
  };
616
616
  let de = null;
617
- const Be = () => {
617
+ const Oe = () => {
618
618
  const D = E(f);
619
619
  D && !de && (de = setInterval(() => {
620
620
  const F = E(e).getBoundingClientRect(), { x: W, y: j } = R.value, z = {
@@ -625,43 +625,43 @@ function yt(e, t = {}) {
625
625
  }, 1e3 / 60));
626
626
  }, Re = () => {
627
627
  de && (clearInterval(de), de = null);
628
- }, Xe = (D, F, W, j) => {
628
+ }, Ye = (D, F, W, j) => {
629
629
  const [z, se] = typeof W == "number" ? [W, W] : [W.x, W.y], { clientWidth: be, clientHeight: Le } = F;
630
630
  return D.x < z || D.x + j.width > be - z || D.y < se || D.y + j.height > Le - se;
631
- }, je = () => {
631
+ }, Xe = () => {
632
632
  if (E(t.disabled) || !S.value) return;
633
633
  const D = E(f);
634
634
  if (!D) return;
635
635
  const F = E(e).getBoundingClientRect(), { x: W, y: j } = R.value;
636
- Xe({
636
+ Ye({
637
637
  x: W - D.scrollLeft,
638
638
  y: j - D.scrollTop
639
- }, D, Y.margin, F) ? Be() : Re();
639
+ }, D, Y.margin, F) ? Oe() : Re();
640
640
  };
641
- E(T) && oe(R, je);
642
- const Fe = (D) => {
641
+ E(T) && te(R, Xe);
642
+ const Be = (D) => {
643
643
  var F;
644
- if (!E(g).includes(D.button) || E(t.disabled) || !_(D) || E(u) && D.target !== E(e)) return;
644
+ if (!E(g).includes(D.button) || E(t.disabled) || !O(D) || E(i) && D.target !== E(e)) return;
645
645
  const W = E(f), j = W == null || (F = W.getBoundingClientRect) === null || F === void 0 ? void 0 : F.call(W), z = E(e).getBoundingClientRect(), se = {
646
646
  x: D.clientX - (W ? z.left - j.left + (T ? 0 : W.scrollLeft) : z.left),
647
647
  y: D.clientY - (W ? z.top - j.top + (T ? 0 : W.scrollTop) : z.top)
648
648
  };
649
- h?.(se, D) !== !1 && (S.value = se, U(D));
650
- }, Je = (D) => {
651
- if (E(t.disabled) || !_(D) || !S.value) return;
649
+ m?.(se, D) !== !1 && (S.value = se, U(D));
650
+ }, je = (D) => {
651
+ if (E(t.disabled) || !O(D) || !S.value) return;
652
652
  const F = E(f);
653
653
  F instanceof HTMLElement && io(F);
654
654
  const W = E(e).getBoundingClientRect();
655
655
  let { x: j, y: z } = R.value;
656
- if ((I === "x" || I === "both") && (j = D.clientX - S.value.x, F && (j = Math.min(Math.max(0, j), F.scrollWidth - W.width))), (I === "y" || I === "both") && (z = D.clientY - S.value.y, F && (z = Math.min(Math.max(0, z), F.scrollHeight - W.height))), E(T) && F && (de === null && ge(F, W, {
656
+ if ((b === "x" || b === "both") && (j = D.clientX - S.value.x, F && (j = Math.min(Math.max(0, j), F.scrollWidth - W.width))), (b === "y" || b === "both") && (z = D.clientY - S.value.y, F && (z = Math.min(Math.max(0, z), F.scrollHeight - W.height))), E(T) && F && (de === null && ge(F, W, {
657
657
  x: j,
658
658
  y: z
659
659
  }), j += F.scrollLeft, z += F.scrollTop), F && (C || T)) {
660
- if (I !== "y") {
660
+ if (b !== "y") {
661
661
  const se = j - F.scrollLeft;
662
662
  se < 0 ? j = F.scrollLeft : se > F.clientWidth - W.width && (j = F.clientWidth - W.width + F.scrollLeft);
663
663
  }
664
- if (I !== "x") {
664
+ if (b !== "x") {
665
665
  const se = z - F.scrollTop;
666
666
  se < 0 ? z = F.scrollTop : se > F.clientHeight - W.height && (z = F.clientHeight - W.height + F.scrollTop);
667
667
  }
@@ -670,8 +670,8 @@ function yt(e, t = {}) {
670
670
  x: j,
671
671
  y: z
672
672
  }, c?.(R.value, D), U(D);
673
- }, Ze = (D) => {
674
- E(t.disabled) || !_(D) || S.value && (S.value = void 0, T && Re(), p?.(R.value, D), U(D));
673
+ }, Fe = (D) => {
674
+ E(t.disabled) || !O(D) || S.value && (S.value = void 0, T && Re(), p?.(R.value, D), U(D));
675
675
  };
676
676
  if (vn) {
677
677
  const D = () => {
@@ -681,7 +681,7 @@ function yt(e, t = {}) {
681
681
  passive: !E(l)
682
682
  };
683
683
  };
684
- He(m, "pointerdown", Fe, D), He(x, "pointermove", Je, D), He(x, "pointerup", Ze, D);
684
+ He(h, "pointerdown", Be, D), He(x, "pointermove", je, D), He(x, "pointerup", Fe, D);
685
685
  }
686
686
  return {
687
687
  ...lo(R),
@@ -699,7 +699,7 @@ function ft(e, t, n = {}) {
699
699
  let r;
700
700
  const s = /* @__PURE__ */ pn(() => o && "ResizeObserver" in o), l = () => {
701
701
  r && (r.disconnect(), r = void 0);
702
- }, i = oe($(() => {
702
+ }, u = te($(() => {
703
703
  const c = E(e);
704
704
  return Array.isArray(c) ? c.map((p) => ye(p)) : [ye(c)];
705
705
  }), (c) => {
@@ -710,42 +710,42 @@ function ft(e, t, n = {}) {
710
710
  }, {
711
711
  immediate: !0,
712
712
  flush: "post"
713
- }), u = () => {
714
- l(), i();
713
+ }), i = () => {
714
+ l(), u();
715
715
  };
716
- return _t(u), {
716
+ return Ot(i), {
717
717
  isSupported: s,
718
- stop: u
718
+ stop: i
719
719
  };
720
720
  }
721
721
  function Pe(e, t = {}) {
722
- const { reset: n = !0, windowResize: o = !0, windowScroll: a = !0, immediate: r = !0, updateTiming: s = "sync" } = t, l = ie(0), i = ie(0), u = ie(0), c = ie(0), p = ie(0), h = ie(0), b = ie(0), I = ie(0);
722
+ const { reset: n = !0, windowResize: o = !0, windowScroll: a = !0, immediate: r = !0, updateTiming: s = "sync" } = t, l = ie(0), u = ie(0), i = ie(0), c = ie(0), p = ie(0), m = ie(0), I = ie(0), b = ie(0);
723
723
  function x() {
724
- const m = ye(e);
725
- if (!m) {
726
- n && (l.value = 0, i.value = 0, u.value = 0, c.value = 0, p.value = 0, h.value = 0, b.value = 0, I.value = 0);
724
+ const h = ye(e);
725
+ if (!h) {
726
+ n && (l.value = 0, u.value = 0, i.value = 0, c.value = 0, p.value = 0, m.value = 0, I.value = 0, b.value = 0);
727
727
  return;
728
728
  }
729
- const g = m.getBoundingClientRect();
730
- l.value = g.height, i.value = g.bottom, u.value = g.left, c.value = g.right, p.value = g.top, h.value = g.width, b.value = g.x, I.value = g.y;
729
+ const g = h.getBoundingClientRect();
730
+ l.value = g.height, u.value = g.bottom, i.value = g.left, c.value = g.right, p.value = g.top, m.value = g.width, I.value = g.x, b.value = g.y;
731
731
  }
732
732
  function f() {
733
733
  s === "sync" ? x() : s === "next-frame" && requestAnimationFrame(() => x());
734
734
  }
735
- return ft(e, f), oe(() => ye(e), (m) => !m && f()), mn(e, f, { attributeFilter: ["style", "class"] }), a && He("scroll", f, {
735
+ return ft(e, f), te(() => ye(e), (h) => !h && f()), mn(e, f, { attributeFilter: ["style", "class"] }), a && He("scroll", f, {
736
736
  capture: !0,
737
737
  passive: !0
738
738
  }), o && He("resize", f, { passive: !0 }), ao(() => {
739
739
  r && f();
740
740
  }), {
741
741
  height: l,
742
- bottom: i,
743
- left: u,
742
+ bottom: u,
743
+ left: i,
744
744
  right: c,
745
745
  top: p,
746
- width: h,
747
- x: b,
748
- y: I,
746
+ width: m,
747
+ x: I,
748
+ y: b,
749
749
  update: f
750
750
  };
751
751
  }
@@ -756,12 +756,12 @@ const bt = /* @__PURE__ */ new WeakMap();
756
756
  function uo(e, t = !1) {
757
757
  const n = ie(t);
758
758
  let o = "";
759
- oe(Kn(e), (s) => {
759
+ te(Kn(e), (s) => {
760
760
  const l = xt(E(s));
761
761
  if (l) {
762
- const i = l;
763
- if (bt.get(i) || bt.set(i, i.style.overflow), i.style.overflow !== "hidden" && (o = i.style.overflow), i.style.overflow === "hidden") return n.value = !0;
764
- if (n.value) return i.style.overflow = "hidden";
762
+ const u = l;
763
+ if (bt.get(u) || bt.set(u, u.style.overflow), u.style.overflow !== "hidden" && (o = u.style.overflow), u.style.overflow === "hidden") return n.value = !0;
764
+ if (n.value) return u.style.overflow = "hidden";
765
765
  }
766
766
  }, { immediate: !0 });
767
767
  const a = () => {
@@ -771,7 +771,7 @@ function uo(e, t = !1) {
771
771
  const s = xt(E(e));
772
772
  !s || !n.value || (s.style.overflow = o, bt.delete(s), n.value = !1);
773
773
  };
774
- return _t(r), $({
774
+ return Ot(r), $({
775
775
  get() {
776
776
  return n.value;
777
777
  },
@@ -783,7 +783,7 @@ function uo(e, t = !1) {
783
783
  const co = (e) => {
784
784
  const t = new DOMParser().parseFromString(e, "text/html");
785
785
  return Array.from(t.body.childNodes).some((n) => n.nodeType === 1);
786
- }, fo = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), vo = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], po = ["innerHTML"], mo = { key: 2 }, ho = /* @__PURE__ */ te({
786
+ }, fo = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), vo = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], po = ["innerHTML"], mo = { key: 2 }, ho = /* @__PURE__ */ ne({
787
787
  __name: "ACell",
788
788
  props: {
789
789
  colIndex: {},
@@ -795,20 +795,20 @@ const co = (e) => {
795
795
  debounce: { default: 300 }
796
796
  },
797
797
  setup(e, { expose: t }) {
798
- const n = fe("cell"), o = e.store.getCellData(e.colIndex, e.rowIndex), a = L(""), r = L(!1), s = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], i = s.align || "center", u = s.width || "40ch", c = $(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), p = $(() => typeof c.value == "string" ? co(c.value) : !1), h = $(() => ({
799
- textAlign: i,
800
- width: u,
798
+ const n = fe("cell"), o = e.store.getCellData(e.colIndex, e.rowIndex), a = L(""), r = L(!1), s = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], u = s.align || "center", i = s.width || "40ch", c = $(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), p = $(() => typeof c.value == "string" ? co(c.value) : !1), m = $(() => ({
799
+ textAlign: u,
800
+ width: i,
801
801
  fontWeight: r.value ? "bold" : "inherit",
802
802
  paddingLeft: e.store.getIndent(e.colIndex, e.store.display[e.rowIndex]?.indent)
803
- })), b = $(() => ({
803
+ })), I = $(() => ({
804
804
  "sticky-column": e.pinned,
805
805
  "cell-modified": r.value
806
- })), I = () => {
806
+ })), b = () => {
807
807
  f(), x();
808
808
  }, x = () => {
809
- const { left: S, bottom: _, width: U, height: ve } = Pe(n);
809
+ const { left: S, bottom: O, width: U, height: ve } = Pe(n);
810
810
  s.mask, s.modalComponent && e.store.$patch((Y) => {
811
- Y.modal.visible = !0, Y.modal.colIndex = e.colIndex, Y.modal.rowIndex = e.rowIndex, Y.modal.left = S, Y.modal.bottom = _, Y.modal.width = U, Y.modal.height = ve, Y.modal.cell = n.value, typeof s.modalComponent == "function" ? Y.modal.component = s.modalComponent({ table: Y.table, row: l, column: s }) : Y.modal.component = s.modalComponent, Y.modal.componentProps = s.modalComponentExtraProps;
811
+ Y.modal.visible = !0, Y.modal.colIndex = e.colIndex, Y.modal.rowIndex = e.rowIndex, Y.modal.left = S, Y.modal.bottom = O, Y.modal.width = U, Y.modal.height = ve, Y.modal.cell = n.value, typeof s.modalComponent == "function" ? Y.modal.component = s.modalComponent({ table: Y.table, row: l, column: s }) : Y.modal.component = s.modalComponent, Y.modal.componentProps = s.modalComponentExtraProps;
812
812
  });
813
813
  };
814
814
  if (e.addNavigation) {
@@ -823,7 +823,7 @@ const co = (e) => {
823
823
  typeof e.addNavigation == "object" && (S = {
824
824
  ...S,
825
825
  ...e.addNavigation
826
- }), Ot([
826
+ }), _t([
827
827
  {
828
828
  selectors: n,
829
829
  handlers: S
@@ -835,20 +835,20 @@ const co = (e) => {
835
835
  const S = window.getSelection();
836
836
  if (S)
837
837
  try {
838
- const _ = document.createRange();
839
- _.selectNodeContents && (_.selectNodeContents(n.value), S.removeAllRanges(), S.addRange(_));
838
+ const O = document.createRange();
839
+ O.selectNodeContents && (O.selectNodeContents(n.value), S.removeAllRanges(), S.addRange(O));
840
840
  } catch {
841
841
  }
842
842
  }
843
- }, m = () => {
843
+ }, h = () => {
844
844
  n.value && (a.value = n.value.textContent, f());
845
845
  }, g = () => {
846
846
  try {
847
847
  const S = window.getSelection();
848
848
  if (S && S.rangeCount > 0 && n.value) {
849
- const _ = S.getRangeAt(0), U = _.cloneRange();
849
+ const O = S.getRangeAt(0), U = O.cloneRange();
850
850
  if (U.selectNodeContents && U.setEnd)
851
- return U.selectNodeContents(n.value), U.setEnd(_.endContainer, _.endOffset), U.toString().length;
851
+ return U.selectNodeContents(n.value), U.setEnd(O.endContainer, O.endOffset), U.toString().length;
852
852
  }
853
853
  } catch {
854
854
  }
@@ -856,8 +856,8 @@ const co = (e) => {
856
856
  }, C = (S) => {
857
857
  if (n.value)
858
858
  try {
859
- const _ = window.getSelection();
860
- if (!_) return;
859
+ const O = window.getSelection();
860
+ if (!O) return;
861
861
  let U = 0;
862
862
  const ve = document.createTreeWalker ? document.createTreeWalker(n.value, NodeFilter.SHOW_TEXT, null) : null;
863
863
  if (!ve) return;
@@ -870,22 +870,22 @@ const co = (e) => {
870
870
  }
871
871
  U = de;
872
872
  }
873
- X && _.removeAllRanges && _.addRange && (_.removeAllRanges(), _.addRange(X));
873
+ X && O.removeAllRanges && O.addRange && (O.removeAllRanges(), O.addRange(X));
874
874
  } catch {
875
875
  }
876
876
  }, T = (S) => {
877
877
  if (!s.edit) return;
878
- const _ = S.target;
879
- if (_.textContent === a.value)
878
+ const O = S.target;
879
+ if (O.textContent === a.value)
880
880
  return;
881
881
  const U = g();
882
- a.value = _.textContent, s.format ? (r.value = _.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, o), e.store.setCellText(e.colIndex, e.rowIndex, _.textContent)) : (r.value = _.textContent !== o, e.store.setCellData(e.colIndex, e.rowIndex, _.textContent)), pt().then(() => {
882
+ a.value = O.textContent, s.format ? (r.value = O.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, o), e.store.setCellText(e.colIndex, e.rowIndex, O.textContent)) : (r.value = O.textContent !== o, e.store.setCellData(e.colIndex, e.rowIndex, O.textContent)), pt().then(() => {
883
883
  C(U);
884
884
  });
885
885
  }, R = /* @__PURE__ */ oo(T, e.debounce);
886
886
  return t({
887
887
  currentData: a
888
- }), (S, _) => (w(), k("td", {
888
+ }), (S, O) => (w(), k("td", {
889
889
  ref: "cell",
890
890
  "data-colindex": e.colIndex,
891
891
  "data-rowindex": e.rowIndex,
@@ -893,15 +893,15 @@ const co = (e) => {
893
893
  contenteditable: V(s).edit,
894
894
  tabindex: e.tabIndex,
895
895
  spellcheck: !1,
896
- style: xe(h.value),
897
- class: ae(["atable-cell", b.value]),
898
- onFocus: m,
896
+ style: xe(m.value),
897
+ class: ae(["atable-cell", I.value]),
898
+ onFocus: h,
899
899
  onPaste: T,
900
- onInput: _[0] || (_[0] = //@ts-ignore
900
+ onInput: O[0] || (O[0] = //@ts-ignore
901
901
  (...U) => V(R) && V(R)(...U)),
902
- onClick: I
902
+ onClick: b
903
903
  }, [
904
- V(s).cellComponent ? (w(), pe(We(V(s).cellComponent), vt({
904
+ V(s).cellComponent ? (w(), pe(Ue(V(s).cellComponent), vt({
905
905
  key: 0,
906
906
  value: c.value
907
907
  }, V(s).cellComponentProps), null, 16, ["value"])) : p.value ? (w(), k("span", {
@@ -910,7 +910,7 @@ const co = (e) => {
910
910
  }, null, 8, po)) : (w(), k("span", mo, K(c.value), 1))
911
911
  ], 46, vo));
912
912
  }
913
- }), go = ["tabindex"], wo = ["tabindex"], yo = ["colspan"], xo = /* @__PURE__ */ te({
913
+ }), go = ["tabindex"], wo = ["tabindex"], yo = ["colspan"], xo = /* @__PURE__ */ ne({
914
914
  __name: "AExpansionRow",
915
915
  props: {
916
916
  rowIndex: {},
@@ -926,7 +926,7 @@ const co = (e) => {
926
926
  a.stopPropagation(), a.preventDefault(), e.store.toggleRowExpand(e.rowIndex);
927
927
  }
928
928
  };
929
- typeof e.addNavigation == "object" && Object.assign(o, e.addNavigation), Ot([
929
+ typeof e.addNavigation == "object" && Object.assign(o, e.addNavigation), _t([
930
930
  {
931
931
  selectors: t,
932
932
  handlers: o
@@ -973,7 +973,7 @@ const co = (e) => {
973
973
  }, Mo = ["data-rowindex", "data-colindex"], Co = {
974
974
  key: 2,
975
975
  class: "gantt-label"
976
- }, Eo = ["x1", "y1", "x2", "y2"], Ao = /* @__PURE__ */ te({
976
+ }, Eo = ["x1", "y1", "x2", "y2"], Ao = /* @__PURE__ */ ne({
977
977
  __name: "AGanttCell",
978
978
  props: {
979
979
  store: {},
@@ -988,15 +988,15 @@ const co = (e) => {
988
988
  },
989
989
  emits: ["connection:create"],
990
990
  setup(e, { expose: t, emit: n }) {
991
- En((O) => ({
991
+ En((_) => ({
992
992
  v6d722296: a.value,
993
- v260b36f8: O.colspan
993
+ v260b36f8: _.colspan
994
994
  }));
995
- const o = n, a = L(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s = fe("container"), l = fe("bar"), i = fe("leftResizeHandle"), u = fe("rightResizeHandle"), c = fe("leftConnectionHandle"), p = fe("rightConnectionHandle"), { width: h } = Pe(s), { left: b, right: I } = Pe(l), x = L(e.start), f = L(e.end || x.value + e.colspan), m = L(!1), g = L(!1), C = L(!1), T = L(!1), R = L(!1), S = L({ startX: 0, startY: 0, endX: 0, endY: 0 }), _ = $(() => Be.value || ge.value || de.value), U = $(() => e.colspan > 0 ? h.value / e.colspan : 0), ve = $(() => {
996
- const O = x.value / e.colspan * 100, B = f.value / e.colspan * 100;
995
+ const o = n, a = L(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s = fe("container"), l = fe("bar"), u = fe("leftResizeHandle"), i = fe("rightResizeHandle"), c = fe("leftConnectionHandle"), p = fe("rightConnectionHandle"), { width: m } = Pe(s), { left: I, right: b } = Pe(l), x = L(e.start), f = L(e.end || x.value + e.colspan), h = L(!1), g = L(!1), C = L(!1), T = L(!1), R = L(!1), S = L({ startX: 0, startY: 0, endX: 0, endY: 0 }), O = $(() => Oe.value || ge.value || de.value), U = $(() => e.colspan > 0 ? m.value / e.colspan : 0), ve = $(() => {
996
+ const _ = x.value / e.colspan * 100, B = f.value / e.colspan * 100;
997
997
  return {
998
- left: `${O}%`,
999
- width: `${B - O}%`,
998
+ left: `${_}%`,
999
+ width: `${B - _}%`,
1000
1000
  backgroundColor: a.value
1001
1001
  };
1002
1002
  }), Y = $(
@@ -1009,87 +1009,87 @@ const co = (e) => {
1009
1009
  pointerEvents: "none",
1010
1010
  zIndex: 1e3
1011
1011
  })
1012
- ), X = L({ startX: 0, startPos: 0 }), { isDragging: ge } = yt(i, {
1012
+ ), X = L({ startX: 0, startPos: 0 }), { isDragging: ge } = yt(u, {
1013
1013
  axis: "x",
1014
- onStart: () => Re(b.value, x.value),
1015
- onMove: ({ x: O }) => Xe(O),
1016
- onEnd: ({ x: O }) => je(O)
1017
- }), { isDragging: de } = yt(u, {
1014
+ onStart: () => Re(I.value, x.value),
1015
+ onMove: ({ x: _ }) => Ye(_),
1016
+ onEnd: ({ x: _ }) => Xe(_)
1017
+ }), { isDragging: de } = yt(i, {
1018
1018
  axis: "x",
1019
- onStart: () => Re(I.value, f.value),
1020
- onMove: ({ x: O }) => Fe(O),
1021
- onEnd: ({ x: O }) => Je(O)
1022
- }), { isDragging: Be } = yt(l, {
1019
+ onStart: () => Re(b.value, f.value),
1020
+ onMove: ({ x: _ }) => Be(_),
1021
+ onEnd: ({ x: _ }) => je(_)
1022
+ }), { isDragging: Oe } = yt(l, {
1023
1023
  exact: !0,
1024
1024
  axis: "x",
1025
- onStart: () => Re(b.value, x.value),
1026
- onMove: ({ x: O }) => Ze(O),
1027
- onEnd: ({ x: O }) => D(O)
1025
+ onStart: () => Re(I.value, x.value),
1026
+ onMove: ({ x: _ }) => Fe(_),
1027
+ onEnd: ({ x: _ }) => D(_)
1028
1028
  });
1029
1029
  Ee(() => {
1030
1030
  F();
1031
1031
  }), An(() => {
1032
1032
  W();
1033
1033
  });
1034
- function Re(O, B) {
1035
- l.value && (l.value.style.transition = "none"), X.value = { startX: O, startPos: B };
1034
+ function Re(_, B) {
1035
+ l.value && (l.value.style.transition = "none"), X.value = { startX: _, startPos: B };
1036
1036
  }
1037
- function Xe(O) {
1037
+ function Ye(_) {
1038
1038
  if (!ge.value || !l.value) return;
1039
- const B = (O - X.value.startX) / U.value, G = Math.max(0, Math.min(f.value - 1, X.value.startPos + B));
1039
+ const B = (_ - X.value.startX) / U.value, G = Math.max(0, Math.min(f.value - 1, X.value.startPos + B));
1040
1040
  l.value.style.left = `${G / e.colspan * 100}%`, l.value.style.width = `${(f.value - G) / e.colspan * 100}%`;
1041
1041
  }
1042
- function je(O) {
1042
+ function Xe(_) {
1043
1043
  if (!l.value) return;
1044
- const B = O - X.value.startX, G = Math.round(B / U.value), Q = x.value, ne = Math.max(0, Math.min(f.value - 1, X.value.startPos + G));
1045
- x.value = ne, e.store.updateGanttBar({
1044
+ const B = _ - X.value.startX, G = Math.round(B / U.value), Q = x.value, oe = Math.max(0, Math.min(f.value - 1, X.value.startPos + G));
1045
+ x.value = oe, e.store.updateGanttBar({
1046
1046
  rowIndex: e.rowIndex,
1047
1047
  colIndex: e.colIndex,
1048
1048
  type: "resize",
1049
1049
  edge: "start",
1050
1050
  oldStart: Q,
1051
- newStart: ne,
1051
+ newStart: oe,
1052
1052
  end: f.value,
1053
1053
  delta: G,
1054
1054
  oldColspan: f.value - Q,
1055
- newColspan: f.value - ne
1055
+ newColspan: f.value - oe
1056
1056
  });
1057
1057
  }
1058
- function Fe(O) {
1058
+ function Be(_) {
1059
1059
  if (!de.value || !l.value) return;
1060
- const B = (O - X.value.startX) / U.value, G = Math.max(x.value + 1, Math.min(e.columnsCount, X.value.startPos + B));
1060
+ const B = (_ - X.value.startX) / U.value, G = Math.max(x.value + 1, Math.min(e.columnsCount, X.value.startPos + B));
1061
1061
  l.value.style.width = `${(G - x.value) / e.colspan * 100}%`;
1062
1062
  }
1063
- function Je(O) {
1063
+ function je(_) {
1064
1064
  if (!l.value) return;
1065
- const B = O - X.value.startX, G = Math.round(B / U.value), Q = f.value, ne = Math.max(x.value + 1, Math.min(e.columnsCount, X.value.startPos + G));
1066
- f.value = ne, e.store.updateGanttBar({
1065
+ const B = _ - X.value.startX, G = Math.round(B / U.value), Q = f.value, oe = Math.max(x.value + 1, Math.min(e.columnsCount, X.value.startPos + G));
1066
+ f.value = oe, e.store.updateGanttBar({
1067
1067
  rowIndex: e.rowIndex,
1068
1068
  colIndex: e.colIndex,
1069
1069
  type: "resize",
1070
1070
  edge: "end",
1071
1071
  oldEnd: Q,
1072
- newEnd: ne,
1072
+ newEnd: oe,
1073
1073
  start: x.value,
1074
1074
  delta: G,
1075
1075
  oldColspan: Q - x.value,
1076
- newColspan: ne - x.value
1076
+ newColspan: oe - x.value
1077
1077
  });
1078
1078
  }
1079
- function Ze(O) {
1080
- if (!Be.value || !l.value) return;
1081
- const B = (O - X.value.startX) / U.value, G = f.value - x.value, Q = Math.max(0, Math.min(X.value.startPos + B, e.columnsCount - G));
1079
+ function Fe(_) {
1080
+ if (!Oe.value || !l.value) return;
1081
+ const B = (_ - X.value.startX) / U.value, G = f.value - x.value, Q = Math.max(0, Math.min(X.value.startPos + B, e.columnsCount - G));
1082
1082
  l.value.style.left = `${Q / e.colspan * 100}%`;
1083
1083
  }
1084
- function D(O) {
1084
+ function D(_) {
1085
1085
  if (!l.value) return;
1086
- const B = O - X.value.startX, G = Math.round(B / U.value), Q = f.value - x.value, ne = x.value, ee = f.value;
1086
+ const B = _ - X.value.startX, G = Math.round(B / U.value), Q = f.value - x.value, oe = x.value, ee = f.value;
1087
1087
  let re = X.value.startPos + G, ce = re + Q;
1088
1088
  re < 0 ? (re = 0, ce = Q) : ce > e.columnsCount && (ce = e.columnsCount, re = ce - Q), x.value = re, f.value = ce, e.store.updateGanttBar({
1089
1089
  rowIndex: e.rowIndex,
1090
1090
  colIndex: e.colIndex,
1091
1091
  type: "bar",
1092
- oldStart: ne,
1092
+ oldStart: oe,
1093
1093
  oldEnd: ee,
1094
1094
  newStart: re,
1095
1095
  newEnd: ce,
@@ -1098,7 +1098,7 @@ const co = (e) => {
1098
1098
  });
1099
1099
  }
1100
1100
  function F() {
1101
- const { x: O, y: B } = Pe(l), { x: G, y: Q } = Pe(c), { x: ne, y: ee } = Pe(p);
1101
+ const { x: _, y: B } = Pe(l), { x: G, y: Q } = Pe(c), { x: oe, y: ee } = Pe(p);
1102
1102
  e.store.registerGanttBar({
1103
1103
  id: r,
1104
1104
  rowIndex: e.rowIndex,
@@ -1107,21 +1107,21 @@ const co = (e) => {
1107
1107
  endIndex: f,
1108
1108
  color: a,
1109
1109
  label: e.label,
1110
- position: { x: O, y: B }
1110
+ position: { x: _, y: B }
1111
1111
  }), e.store.isDependencyGraphEnabled && (e.store.registerConnectionHandle({
1112
1112
  id: `${r}-connection-left`,
1113
1113
  rowIndex: e.rowIndex,
1114
1114
  colIndex: e.colIndex,
1115
1115
  side: "left",
1116
1116
  position: { x: G, y: Q },
1117
- visible: m,
1117
+ visible: h,
1118
1118
  barId: r
1119
1119
  }), e.store.registerConnectionHandle({
1120
1120
  id: `${r}-connection-right`,
1121
1121
  rowIndex: e.rowIndex,
1122
1122
  colIndex: e.colIndex,
1123
1123
  side: "right",
1124
- position: { x: ne, y: ee },
1124
+ position: { x: oe, y: ee },
1125
1125
  visible: g,
1126
1126
  barId: r
1127
1127
  }));
@@ -1130,31 +1130,31 @@ const co = (e) => {
1130
1130
  e.store.unregisterGanttBar(r), e.store.isDependencyGraphEnabled && (e.store.unregisterConnectionHandle(`${r}-connection-left`), e.store.unregisterConnectionHandle(`${r}-connection-right`));
1131
1131
  }
1132
1132
  function j() {
1133
- e.store.isDependencyGraphEnabled && (m.value = !0, g.value = !0);
1133
+ e.store.isDependencyGraphEnabled && (h.value = !0, g.value = !0);
1134
1134
  }
1135
1135
  function z() {
1136
- !C.value && !T.value && (m.value = !1, g.value = !1);
1136
+ !C.value && !T.value && (h.value = !1, g.value = !1);
1137
1137
  }
1138
- function se(O, B) {
1139
- B.preventDefault(), B.stopPropagation(), R.value = !0, O === "left" ? C.value = !0 : T.value = !0;
1140
- const G = O === "left" ? c.value : p.value;
1138
+ function se(_, B) {
1139
+ B.preventDefault(), B.stopPropagation(), R.value = !0, _ === "left" ? C.value = !0 : T.value = !0;
1140
+ const G = _ === "left" ? c.value : p.value;
1141
1141
  if (G) {
1142
1142
  const ee = G.getBoundingClientRect(), re = ee.left + ee.width / 2, ce = ee.top + ee.height / 2;
1143
1143
  S.value = { startX: re, startY: ce, endX: re, endY: ce };
1144
1144
  }
1145
1145
  const Q = (ee) => {
1146
1146
  S.value.endX = ee.clientX, S.value.endY = ee.clientY;
1147
- }, ne = (ee) => {
1148
- be(ee, O), Le(Q, ne);
1147
+ }, oe = (ee) => {
1148
+ be(ee, _), Le(Q, oe);
1149
1149
  };
1150
- document.addEventListener("mousemove", Q), document.addEventListener("mouseup", ne);
1150
+ document.addEventListener("mousemove", Q), document.addEventListener("mouseup", oe);
1151
1151
  }
1152
- function be(O, B) {
1153
- const G = document.elementFromPoint(O.clientX, O.clientY)?.closest(".connection-handle");
1152
+ function be(_, B) {
1153
+ const G = document.elementFromPoint(_.clientX, _.clientY)?.closest(".connection-handle");
1154
1154
  if (G && G !== (B === "left" ? c.value : p.value)) {
1155
1155
  const Q = G.closest(".gantt-bar");
1156
1156
  if (Q) {
1157
- const ne = parseInt(Q.getAttribute("data-rowindex") || "0"), ee = parseInt(Q.getAttribute("data-colindex") || "0"), re = G.classList.contains("left-connection-handle") ? "left" : "right", ce = `gantt-bar-row-${ne}-col-${ee}`, d = e.store.createConnection(
1157
+ const oe = parseInt(Q.getAttribute("data-rowindex") || "0"), ee = parseInt(Q.getAttribute("data-colindex") || "0"), re = G.classList.contains("left-connection-handle") ? "left" : "right", ce = `gantt-bar-row-${oe}-col-${ee}`, d = e.store.createConnection(
1158
1158
  `${r}-connection-${B}`,
1159
1159
  `${ce}-connection-${re}`
1160
1160
  );
@@ -1162,8 +1162,8 @@ const co = (e) => {
1162
1162
  }
1163
1163
  }
1164
1164
  }
1165
- function Le(O, B) {
1166
- R.value = !1, C.value = !1, T.value = !1, document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", B), l.value?.matches(":hover") || z();
1165
+ function Le(_, B) {
1166
+ R.value = !1, C.value = !1, T.value = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", B), l.value?.matches(":hover") || z();
1167
1167
  }
1168
1168
  return t({
1169
1169
  barStyle: ve,
@@ -1171,11 +1171,11 @@ const co = (e) => {
1171
1171
  currentEnd: f,
1172
1172
  handleConnectionDrop: be,
1173
1173
  isLeftConnectionDragging: C,
1174
- isLeftConnectionVisible: m,
1174
+ isLeftConnectionVisible: h,
1175
1175
  isRightConnectionDragging: T,
1176
1176
  isRightConnectionVisible: g,
1177
1177
  showDragPreview: R
1178
- }), (O, B) => (w(), k("td", {
1178
+ }), (_, B) => (w(), k("td", {
1179
1179
  class: "aganttcell",
1180
1180
  colspan: e.colspan
1181
1181
  }, [
@@ -1184,7 +1184,7 @@ const co = (e) => {
1184
1184
  ref: "bar",
1185
1185
  "data-rowindex": e.rowIndex,
1186
1186
  "data-colindex": e.colIndex,
1187
- class: ae(["gantt-bar", { "is-dragging": _.value }]),
1187
+ class: ae(["gantt-bar", { "is-dragging": O.value }]),
1188
1188
  style: xe(ve.value),
1189
1189
  onMouseenter: j,
1190
1190
  onMouseleave: z
@@ -1192,7 +1192,7 @@ const co = (e) => {
1192
1192
  e.store.isDependencyGraphEnabled ? (w(), k("div", {
1193
1193
  key: 0,
1194
1194
  ref: "leftConnectionHandle",
1195
- class: ae(["connection-handle left-connection-handle", { visible: m.value, "is-dragging": C.value }]),
1195
+ class: ae(["connection-handle left-connection-handle", { visible: h.value, "is-dragging": C.value }]),
1196
1196
  onMousedown: B[0] || (B[0] = Ie((G) => se("left", G), ["stop"]))
1197
1197
  }, [...B[2] || (B[2] = [
1198
1198
  y("div", { class: "connection-dot" }, null, -1)
@@ -1292,10 +1292,10 @@ const co = (e) => {
1292
1292
  }, Po = {
1293
1293
  key: 0,
1294
1294
  class: "row-actions-dropdown"
1295
- }, Oo = ["aria-expanded"], _o = ["onClick"], Bo = ["innerHTML"], Fo = { class: "action-label" }, Zo = {
1295
+ }, _o = ["aria-expanded"], Oo = ["onClick"], Bo = ["innerHTML"], Fo = { class: "action-label" }, Zo = {
1296
1296
  key: 1,
1297
1297
  class: "row-actions-icons"
1298
- }, No = ["title", "aria-label", "onClick"], Uo = ["innerHTML"], ut = /* @__PURE__ */ te({
1298
+ }, No = ["title", "aria-label", "onClick"], Uo = ["innerHTML"], ut = /* @__PURE__ */ ne({
1299
1299
  __name: "ARowActions",
1300
1300
  props: {
1301
1301
  rowIndex: {},
@@ -1305,7 +1305,7 @@ const co = (e) => {
1305
1305
  },
1306
1306
  emits: ["action"],
1307
1307
  setup(e, { emit: t }) {
1308
- const n = e, o = t, a = fe("actionsCell"), r = fe("toggleButton"), s = L(0), l = L(!1), i = L(!1), u = L({ top: 0, left: 0 }), c = {
1308
+ const n = e, o = t, a = fe("actionsCell"), r = fe("toggleButton"), s = L(0), l = L(!1), u = L(!1), i = L({ top: 0, left: 0 }), c = {
1309
1309
  add: "Add Row",
1310
1310
  delete: "Delete Row",
1311
1311
  duplicate: "Duplicate Row",
@@ -1313,71 +1313,71 @@ const co = (e) => {
1313
1313
  insertBelow: "Insert Below",
1314
1314
  move: "Move Row"
1315
1315
  }, p = $(() => {
1316
- const m = [], g = n.config.actions || {}, C = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
1316
+ const h = [], g = n.config.actions || {}, C = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
1317
1317
  for (const T of C) {
1318
1318
  const R = g[T];
1319
1319
  if (R === !1 || R === void 0) continue;
1320
- let S = !0, _ = c[T], U = Vo[T];
1321
- typeof R == "object" && (S = R.enabled !== !1, _ = R.label || _, U = R.icon || U), S && m.push({ type: T, label: _, icon: U });
1320
+ let S = !0, O = c[T], U = Vo[T];
1321
+ typeof R == "object" && (S = R.enabled !== !1, O = R.label || O, U = R.icon || U), S && h.push({ type: T, label: O, icon: U });
1322
1322
  }
1323
- return m;
1324
- }), h = $(() => {
1323
+ return h;
1324
+ }), m = $(() => {
1325
1325
  if (n.config.forceDropdown) return !0;
1326
- const m = n.config.dropdownThreshold ?? 150;
1327
- return m === 0 ? !1 : s.value > 0 && s.value < m;
1328
- }), b = $(() => l.value ? i.value ? {
1326
+ const h = n.config.dropdownThreshold ?? 150;
1327
+ return h === 0 ? !1 : s.value > 0 && s.value < h;
1328
+ }), I = $(() => l.value ? u.value ? {
1329
1329
  position: "fixed",
1330
- bottom: `${window.innerHeight - u.value.top}px`,
1331
- left: `${u.value.left}px`,
1330
+ bottom: `${window.innerHeight - i.value.top}px`,
1331
+ left: `${i.value.left}px`,
1332
1332
  top: "auto"
1333
1333
  } : {
1334
1334
  position: "fixed",
1335
- top: `${u.value.top}px`,
1336
- left: `${u.value.left}px`
1335
+ top: `${i.value.top}px`,
1336
+ left: `${i.value.left}px`
1337
1337
  } : {});
1338
- ft(a, (m) => {
1339
- const g = m[0];
1338
+ ft(a, (h) => {
1339
+ const g = h[0];
1340
1340
  g && (s.value = g.contentRect.width);
1341
1341
  });
1342
- const I = () => {
1342
+ const b = () => {
1343
1343
  l.value || x(), l.value = !l.value;
1344
1344
  }, x = () => {
1345
1345
  if (!r.value) return;
1346
- const m = r.value.getBoundingClientRect(), g = window.innerHeight, C = p.value.length * 40 + 16, T = g - m.bottom, R = m.top;
1347
- i.value = T < C && R > C, i.value ? u.value = {
1348
- top: m.top,
1349
- left: m.left
1350
- } : u.value = {
1351
- top: m.bottom,
1352
- left: m.left
1346
+ const h = r.value.getBoundingClientRect(), g = window.innerHeight, C = p.value.length * 40 + 16, T = g - h.bottom, R = h.top;
1347
+ u.value = T < C && R > C, u.value ? i.value = {
1348
+ top: h.top,
1349
+ left: h.left
1350
+ } : i.value = {
1351
+ top: h.bottom,
1352
+ left: h.left
1353
1353
  };
1354
1354
  };
1355
1355
  $t(a, () => {
1356
1356
  l.value = !1;
1357
1357
  });
1358
- const f = (m) => {
1358
+ const f = (h) => {
1359
1359
  l.value = !1;
1360
- const g = n.config.actions?.[m];
1361
- typeof g == "object" && g.handler && g.handler(n.rowIndex, n.store) === !1 || o("action", m, n.rowIndex);
1360
+ const g = n.config.actions?.[h];
1361
+ typeof g == "object" && g.handler && g.handler(n.rowIndex, n.store) === !1 || o("action", h, n.rowIndex);
1362
1362
  };
1363
- return (m, g) => (w(), k("td", {
1363
+ return (h, g) => (w(), k("td", {
1364
1364
  ref: "actionsCell",
1365
1365
  class: ae(["atable-row-actions", { "sticky-column": e.position === "before-index", "dropdown-active": l.value }])
1366
1366
  }, [
1367
- h.value ? (w(), k("div", Po, [
1367
+ m.value ? (w(), k("div", Po, [
1368
1368
  y("button", {
1369
1369
  ref: "toggleButton",
1370
1370
  type: "button",
1371
1371
  class: "row-actions-toggle",
1372
1372
  "aria-expanded": l.value,
1373
1373
  "aria-haspopup": "true",
1374
- onClick: Ie(I, ["stop"])
1374
+ onClick: Ie(b, ["stop"])
1375
1375
  }, [...g[0] || (g[0] = [
1376
1376
  y("span", { class: "dropdown-icon" }, "⋮", -1)
1377
- ])], 8, Oo),
1377
+ ])], 8, _o),
1378
1378
  J(y("div", {
1379
- class: ae(["row-actions-menu", { "menu-flipped": i.value }]),
1380
- style: xe(b.value),
1379
+ class: ae(["row-actions-menu", { "menu-flipped": u.value }]),
1380
+ style: xe(I.value),
1381
1381
  role: "menu"
1382
1382
  }, [
1383
1383
  (w(!0), k(ue, null, me(p.value, (C) => (w(), k("button", {
@@ -1392,7 +1392,7 @@ const co = (e) => {
1392
1392
  innerHTML: C.icon
1393
1393
  }, null, 8, Bo),
1394
1394
  y("span", Fo, K(C.label), 1)
1395
- ], 8, _o))), 128))
1395
+ ], 8, Oo))), 128))
1396
1396
  ], 6), [
1397
1397
  [Ce, l.value]
1398
1398
  ])
@@ -1413,7 +1413,7 @@ const co = (e) => {
1413
1413
  ]))
1414
1414
  ], 2));
1415
1415
  }
1416
- }), Wo = ["tabindex"], Go = /* @__PURE__ */ te({
1416
+ }), Wo = ["tabindex"], Go = /* @__PURE__ */ ne({
1417
1417
  __name: "ARow",
1418
1418
  props: {
1419
1419
  rowIndex: {},
@@ -1423,7 +1423,7 @@ const co = (e) => {
1423
1423
  },
1424
1424
  emits: ["row:action"],
1425
1425
  setup(e, { emit: t }) {
1426
- const n = t, o = fe("rowEl"), a = $(() => e.store.isRowVisible(e.rowIndex)), r = $(() => e.store.getRowExpandSymbol(e.rowIndex)), s = $(() => e.store.config.rowActions || { enabled: !1 }), l = $(() => s.value.enabled), i = $(() => s.value.position || "before-index"), u = (c, p) => {
1426
+ const n = t, o = fe("rowEl"), a = $(() => e.store.isRowVisible(e.rowIndex)), r = $(() => e.store.getRowExpandSymbol(e.rowIndex)), s = $(() => e.store.config.rowActions || { enabled: !1 }), l = $(() => s.value.enabled), u = $(() => s.value.position || "before-index"), i = (c, p) => {
1427
1427
  n("row:action", c, p);
1428
1428
  };
1429
1429
  if (e.addNavigation) {
@@ -1431,7 +1431,7 @@ const co = (e) => {
1431
1431
  typeof e.addNavigation == "object" && (c = {
1432
1432
  ...c,
1433
1433
  ...e.addNavigation
1434
- }), Ot([
1434
+ }), _t([
1435
1435
  {
1436
1436
  selectors: o,
1437
1437
  handlers: c
@@ -1443,13 +1443,13 @@ const co = (e) => {
1443
1443
  tabindex: e.tabIndex,
1444
1444
  class: "atable-row"
1445
1445
  }, [
1446
- l.value && i.value === "before-index" ? (w(), pe(ut, {
1446
+ l.value && u.value === "before-index" ? (w(), pe(ut, {
1447
1447
  key: 0,
1448
1448
  "row-index": e.rowIndex,
1449
1449
  store: e.store,
1450
1450
  config: s.value,
1451
- position: i.value,
1452
- onAction: u
1451
+ position: u.value,
1452
+ onAction: i
1453
1453
  }, null, 8, ["row-index", "store", "config", "position"])) : q("", !0),
1454
1454
  e.store.config.view !== "uncounted" ? he(c.$slots, "index", { key: 1 }, () => [
1455
1455
  e.store.config.view === "list" ? (w(), k("td", {
@@ -1460,25 +1460,25 @@ const co = (e) => {
1460
1460
  key: 1,
1461
1461
  tabIndex: -1,
1462
1462
  class: ae(["tree-index", e.store.hasPinnedColumns ? "sticky-index" : ""]),
1463
- onClick: p[0] || (p[0] = (h) => e.store.toggleRowExpand(e.rowIndex))
1463
+ onClick: p[0] || (p[0] = (m) => e.store.toggleRowExpand(e.rowIndex))
1464
1464
  }, K(r.value), 3)) : q("", !0)
1465
1465
  ], !0) : q("", !0),
1466
- l.value && i.value === "after-index" ? (w(), pe(ut, {
1466
+ l.value && u.value === "after-index" ? (w(), pe(ut, {
1467
1467
  key: 2,
1468
1468
  "row-index": e.rowIndex,
1469
1469
  store: e.store,
1470
1470
  config: s.value,
1471
- position: i.value,
1472
- onAction: u
1471
+ position: u.value,
1472
+ onAction: i
1473
1473
  }, null, 8, ["row-index", "store", "config", "position"])) : q("", !0),
1474
1474
  he(c.$slots, "default", {}, void 0, !0),
1475
- l.value && i.value === "end" ? (w(), pe(ut, {
1475
+ l.value && u.value === "end" ? (w(), pe(ut, {
1476
1476
  key: 3,
1477
1477
  "row-index": e.rowIndex,
1478
1478
  store: e.store,
1479
1479
  config: s.value,
1480
- position: i.value,
1481
- onAction: u
1480
+ position: u.value,
1481
+ onAction: i
1482
1482
  }, null, 8, ["row-index", "store", "config", "position"])) : q("", !0)
1483
1483
  ], 8, Wo)), [
1484
1484
  [Ce, a.value]
@@ -1509,7 +1509,7 @@ function Yo() {
1509
1509
  if (t.value = o.value, e) return;
1510
1510
  e = !0;
1511
1511
  const a = uo(n, o.value);
1512
- oe(t, (r) => a.value = r);
1512
+ te(t, (r) => a.value = r);
1513
1513
  };
1514
1514
  }
1515
1515
  Yo();
@@ -1524,7 +1524,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1524
1524
  pointerEvents: "none",
1525
1525
  zIndex: 1
1526
1526
  }
1527
- }, Jo = ["d", "stroke-width", "onDblclick"], Qo = ["id", "d", "stroke", "stroke-width", "onDblclick"], Ko = 0.25, at = 16, el = /* @__PURE__ */ te({
1527
+ }, Jo = ["d", "stroke-width", "onDblclick"], Qo = ["id", "d", "stroke", "stroke-width", "onDblclick"], Ko = 0.25, at = 16, el = /* @__PURE__ */ ne({
1528
1528
  __name: "AGanttConnection",
1529
1529
  props: {
1530
1530
  store: {}
@@ -1532,17 +1532,17 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1532
1532
  emits: ["connection:delete"],
1533
1533
  setup(e, { emit: t }) {
1534
1534
  const n = t, o = $(() => e.store.connectionPaths.filter((s) => {
1535
- const l = e.store.ganttBars.find((u) => u.id === s.from.barId), i = e.store.ganttBars.find((u) => u.id === s.to.barId);
1536
- return l && i;
1535
+ const l = e.store.ganttBars.find((i) => i.id === s.from.barId), u = e.store.ganttBars.find((i) => i.id === s.to.barId);
1536
+ return l && u;
1537
1537
  })), a = (s) => {
1538
1538
  const l = e.store.connectionHandles.find(
1539
- (_) => _.barId === s.from.barId && _.side === s.from.side
1540
- ), i = e.store.connectionHandles.find(
1541
- (_) => _.barId === s.to.barId && _.side === s.to.side
1539
+ (O) => O.barId === s.from.barId && O.side === s.from.side
1540
+ ), u = e.store.connectionHandles.find(
1541
+ (O) => O.barId === s.to.barId && O.side === s.to.side
1542
1542
  );
1543
- if (!l || !i) return "";
1544
- const u = l.position.x + at / 2, c = l.position.y + at / 2, p = i.position.x + at / 2, h = i.position.y + at / 2, b = Math.abs(p - u), I = Math.max(b * Ko, 50), x = u + (s.from.side === "left" ? -I : I), f = p + (s.to.side === "left" ? -I : I), m = { x: 0.5 * u + 0.5 * x, y: 0.5 * c + 0.5 * c }, g = { x: 0.5 * x + 0.5 * f, y: 0.5 * c + 0.5 * h }, C = { x: 0.5 * f + 0.5 * p, y: 0.5 * h + 0.5 * h }, T = { x: 0.5 * m.x + 0.5 * g.x, y: 0.5 * m.y + 0.5 * g.y }, R = { x: 0.5 * g.x + 0.5 * C.x, y: 0.5 * g.y + 0.5 * C.y }, S = { x: 0.5 * T.x + 0.5 * R.x, y: 0.5 * T.y + 0.5 * R.y };
1545
- return `M ${u} ${c} Q ${x} ${c}, ${S.x} ${S.y} Q ${f} ${h}, ${p} ${h}`;
1543
+ if (!l || !u) return "";
1544
+ const i = l.position.x + at / 2, c = l.position.y + at / 2, p = u.position.x + at / 2, m = u.position.y + at / 2, I = Math.abs(p - i), b = Math.max(I * Ko, 50), x = i + (s.from.side === "left" ? -b : b), f = p + (s.to.side === "left" ? -b : b), h = { x: 0.5 * i + 0.5 * x, y: 0.5 * c + 0.5 * c }, g = { x: 0.5 * x + 0.5 * f, y: 0.5 * c + 0.5 * m }, C = { x: 0.5 * f + 0.5 * p, y: 0.5 * m + 0.5 * m }, T = { x: 0.5 * h.x + 0.5 * g.x, y: 0.5 * h.y + 0.5 * g.y }, R = { x: 0.5 * g.x + 0.5 * C.x, y: 0.5 * g.y + 0.5 * C.y }, S = { x: 0.5 * T.x + 0.5 * R.x, y: 0.5 * T.y + 0.5 * R.y };
1545
+ return `M ${i} ${c} Q ${x} ${c}, ${S.x} ${S.y} Q ${f} ${m}, ${p} ${m}`;
1546
1546
  }, r = (s) => {
1547
1547
  e.store.deleteConnection(s.id) && n("connection:delete", s);
1548
1548
  };
@@ -1571,25 +1571,25 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1571
1571
  })
1572
1572
  ])
1573
1573
  ], -1)),
1574
- (w(!0), k(ue, null, me(o.value, (i) => (w(), k("path", {
1575
- key: `${i.id}-hitbox`,
1576
- d: a(i),
1574
+ (w(!0), k(ue, null, me(o.value, (u) => (w(), k("path", {
1575
+ key: `${u.id}-hitbox`,
1576
+ d: a(u),
1577
1577
  stroke: "transparent",
1578
- "stroke-width": (i.style?.width || 2) + 10,
1578
+ "stroke-width": (u.style?.width || 2) + 10,
1579
1579
  fill: "none",
1580
1580
  class: "connection-hitbox",
1581
- onDblclick: (u) => r(i)
1581
+ onDblclick: (i) => r(u)
1582
1582
  }, null, 40, Jo))), 128)),
1583
- (w(!0), k(ue, null, me(o.value, (i) => (w(), k("path", {
1584
- id: i.id,
1585
- key: i.id,
1586
- d: a(i),
1587
- stroke: i.style?.color || "#666",
1588
- "stroke-width": i.style?.width || 2,
1583
+ (w(!0), k(ue, null, me(o.value, (u) => (w(), k("path", {
1584
+ id: u.id,
1585
+ key: u.id,
1586
+ d: a(u),
1587
+ stroke: u.style?.color || "#666",
1588
+ "stroke-width": u.style?.width || 2,
1589
1589
  fill: "none",
1590
1590
  "marker-mid": "url(#arrowhead-marker)",
1591
1591
  class: "connection-path animated-path",
1592
- onDblclick: (u) => r(i)
1592
+ onDblclick: (i) => r(u)
1593
1593
  }, null, 40, Qo))), 128))
1594
1594
  ]))
1595
1595
  ]));
@@ -1600,7 +1600,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1600
1600
  }, ll = ["value"], al = {
1601
1601
  key: 5,
1602
1602
  class: "date-range-filter"
1603
- }, sl = /* @__PURE__ */ te({
1603
+ }, sl = /* @__PURE__ */ ne({
1604
1604
  __name: "ATableColumnFilter",
1605
1605
  props: {
1606
1606
  column: {},
@@ -1611,20 +1611,20 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1611
1611
  const t = L(""), n = rn({
1612
1612
  startValue: "",
1613
1613
  endValue: ""
1614
- }), o = (i) => {
1615
- if (i.filterOptions) return i.filterOptions;
1616
- const u = /* @__PURE__ */ new Set();
1614
+ }), o = (u) => {
1615
+ if (u.filterOptions) return u.filterOptions;
1616
+ const i = /* @__PURE__ */ new Set();
1617
1617
  return e.store.rows.forEach((c) => {
1618
- const p = c[i.name];
1619
- p != null && p !== "" && u.add(p);
1620
- }), Array.from(u).map((c) => ({
1618
+ const p = c[u.name];
1619
+ p != null && p !== "" && i.add(p);
1620
+ }), Array.from(i).map((c) => ({
1621
1621
  value: c,
1622
1622
  label: String(c)
1623
1623
  }));
1624
- }, a = $(() => !!(t.value || n.startValue || n.endValue)), r = (i) => {
1625
- !i && e.column.filterType !== "checkbox" ? (e.store.clearFilter(e.colIndex), t.value = "") : (t.value = i, e.store.setFilter(e.colIndex, { value: i }));
1626
- }, s = (i, u) => {
1627
- i === "start" ? n.startValue = u : n.endValue = u, !n.startValue && !n.endValue ? e.store.clearFilter(e.colIndex) : e.store.setFilter(e.colIndex, {
1624
+ }, a = $(() => !!(t.value || n.startValue || n.endValue)), r = (u) => {
1625
+ !u && e.column.filterType !== "checkbox" ? (e.store.clearFilter(e.colIndex), t.value = "") : (t.value = u, e.store.setFilter(e.colIndex, { value: u }));
1626
+ }, s = (u, i) => {
1627
+ u === "start" ? n.startValue = i : n.endValue = i, !n.startValue && !n.endValue ? e.store.clearFilter(e.colIndex) : e.store.setFilter(e.colIndex, {
1628
1628
  value: null,
1629
1629
  startValue: n.startValue,
1630
1630
  endValue: n.endValue
@@ -1632,40 +1632,40 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1632
1632
  }, l = () => {
1633
1633
  t.value = "", n.startValue = "", n.endValue = "", e.store.clearFilter(e.colIndex);
1634
1634
  };
1635
- return (i, u) => (w(), k("div", nl, [
1635
+ return (u, i) => (w(), k("div", nl, [
1636
1636
  (e.column.filterType || "text") === "text" ? J((w(), k("input", {
1637
1637
  key: 0,
1638
- "onUpdate:modelValue": u[0] || (u[0] = (c) => t.value = c),
1638
+ "onUpdate:modelValue": i[0] || (i[0] = (c) => t.value = c),
1639
1639
  type: "text",
1640
1640
  class: "filter-input",
1641
- onInput: u[1] || (u[1] = (c) => r(t.value))
1641
+ onInput: i[1] || (i[1] = (c) => r(t.value))
1642
1642
  }, null, 544)), [
1643
1643
  [we, t.value]
1644
1644
  ]) : e.column.filterType === "number" ? J((w(), k("input", {
1645
1645
  key: 1,
1646
- "onUpdate:modelValue": u[2] || (u[2] = (c) => t.value = c),
1646
+ "onUpdate:modelValue": i[2] || (i[2] = (c) => t.value = c),
1647
1647
  type: "number",
1648
1648
  class: "filter-input",
1649
- onInput: u[3] || (u[3] = (c) => r(t.value))
1649
+ onInput: i[3] || (i[3] = (c) => r(t.value))
1650
1650
  }, null, 544)), [
1651
1651
  [we, t.value]
1652
1652
  ]) : e.column.filterType === "checkbox" ? (w(), k("label", ol, [
1653
1653
  J(y("input", {
1654
- "onUpdate:modelValue": u[4] || (u[4] = (c) => t.value = c),
1654
+ "onUpdate:modelValue": i[4] || (i[4] = (c) => t.value = c),
1655
1655
  type: "checkbox",
1656
1656
  class: "filter-checkbox",
1657
- onChange: u[5] || (u[5] = (c) => r(t.value))
1657
+ onChange: i[5] || (i[5] = (c) => r(t.value))
1658
1658
  }, null, 544), [
1659
1659
  [un, t.value]
1660
1660
  ]),
1661
1661
  y("span", null, K(e.column.label), 1)
1662
1662
  ])) : e.column.filterType === "select" ? J((w(), k("select", {
1663
1663
  key: 3,
1664
- "onUpdate:modelValue": u[6] || (u[6] = (c) => t.value = c),
1664
+ "onUpdate:modelValue": i[6] || (i[6] = (c) => t.value = c),
1665
1665
  class: "filter-select",
1666
- onChange: u[7] || (u[7] = (c) => r(t.value))
1666
+ onChange: i[7] || (i[7] = (c) => r(t.value))
1667
1667
  }, [
1668
- u[15] || (u[15] = y("option", { value: "" }, "All", -1)),
1668
+ i[15] || (i[15] = y("option", { value: "" }, "All", -1)),
1669
1669
  (w(!0), k(ue, null, me(o(e.column), (c) => (w(), k("option", {
1670
1670
  key: c.value || c,
1671
1671
  value: c.value || c
@@ -1674,37 +1674,37 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1674
1674
  [Cn, t.value]
1675
1675
  ]) : e.column.filterType === "date" ? J((w(), k("input", {
1676
1676
  key: 4,
1677
- "onUpdate:modelValue": u[8] || (u[8] = (c) => t.value = c),
1677
+ "onUpdate:modelValue": i[8] || (i[8] = (c) => t.value = c),
1678
1678
  type: "date",
1679
1679
  class: "filter-input",
1680
- onChange: u[9] || (u[9] = (c) => r(t.value))
1680
+ onChange: i[9] || (i[9] = (c) => r(t.value))
1681
1681
  }, null, 544)), [
1682
1682
  [we, t.value]
1683
1683
  ]) : e.column.filterType === "dateRange" ? (w(), k("div", al, [
1684
1684
  J(y("input", {
1685
- "onUpdate:modelValue": u[10] || (u[10] = (c) => n.startValue = c),
1685
+ "onUpdate:modelValue": i[10] || (i[10] = (c) => n.startValue = c),
1686
1686
  type: "date",
1687
1687
  class: "filter-input",
1688
- onChange: u[11] || (u[11] = (c) => s("start", n.startValue))
1688
+ onChange: i[11] || (i[11] = (c) => s("start", n.startValue))
1689
1689
  }, null, 544), [
1690
1690
  [we, n.startValue]
1691
1691
  ]),
1692
- u[16] || (u[16] = y("span", { class: "date-separator" }, "-", -1)),
1692
+ i[16] || (i[16] = y("span", { class: "date-separator" }, "-", -1)),
1693
1693
  J(y("input", {
1694
- "onUpdate:modelValue": u[12] || (u[12] = (c) => n.endValue = c),
1694
+ "onUpdate:modelValue": i[12] || (i[12] = (c) => n.endValue = c),
1695
1695
  type: "date",
1696
1696
  class: "filter-input",
1697
- onChange: u[13] || (u[13] = (c) => s("end", n.endValue))
1697
+ onChange: i[13] || (i[13] = (c) => s("end", n.endValue))
1698
1698
  }, null, 544), [
1699
1699
  [we, n.endValue]
1700
1700
  ])
1701
- ])) : e.column.filterType === "component" && e.column.filterComponent ? (w(), pe(We(e.column.filterComponent), {
1701
+ ])) : e.column.filterType === "component" && e.column.filterComponent ? (w(), pe(Ue(e.column.filterComponent), {
1702
1702
  key: 6,
1703
1703
  value: t.value,
1704
1704
  column: e.column,
1705
1705
  colIndex: e.colIndex,
1706
1706
  store: e.store,
1707
- "onUpdate:value": u[14] || (u[14] = (c) => r(c))
1707
+ "onUpdate:value": i[14] || (i[14] = (c) => r(c))
1708
1708
  }, null, 40, ["value", "column", "colIndex", "store"])) : q("", !0),
1709
1709
  a.value ? (w(), k("button", {
1710
1710
  key: 7,
@@ -1732,7 +1732,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1732
1732
  }, ml = {
1733
1733
  key: 3,
1734
1734
  class: "row-actions-header"
1735
- }, gn = /* @__PURE__ */ te({
1735
+ }, gn = /* @__PURE__ */ ne({
1736
1736
  __name: "ATableHeader",
1737
1737
  props: {
1738
1738
  columns: {},
@@ -1740,13 +1740,13 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1740
1740
  },
1741
1741
  setup(e) {
1742
1742
  const t = e, n = $(() => t.columns.filter((l) => l.filterable)), o = $(() => t.store.config.value?.rowActions?.enabled ?? !1), a = $(() => t.store.config.value?.rowActions?.position ?? "before-index"), r = (l) => t.store.sortByColumn(l), s = (l) => {
1743
- for (const i of l) {
1744
- if (i.borderBoxSize.length === 0) continue;
1745
- const u = i.borderBoxSize[0].inlineSize, c = Number(i.target.dataset.colindex), p = t.store.columns[c]?.width;
1746
- typeof p == "number" && p !== u && t.store.resizeColumn(c, u);
1743
+ for (const u of l) {
1744
+ if (u.borderBoxSize.length === 0) continue;
1745
+ const i = u.borderBoxSize[0].inlineSize, c = Number(u.target.dataset.colindex), p = t.store.columns[c]?.width;
1746
+ typeof p == "number" && p !== i && t.store.resizeColumn(c, i);
1747
1747
  }
1748
1748
  };
1749
- return (l, i) => t.columns.length ? (w(), k("thead", il, [
1749
+ return (l, u) => t.columns.length ? (w(), k("thead", il, [
1750
1750
  y("tr", ul, [
1751
1751
  o.value && a.value === "before-index" ? (w(), k("th", {
1752
1752
  key: 0,
@@ -1762,16 +1762,16 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1762
1762
  ], "list-index"])
1763
1763
  }, null, 2)) : q("", !0),
1764
1764
  o.value && a.value === "after-index" ? (w(), k("th", cl)) : q("", !0),
1765
- (w(!0), k(ue, null, me(t.columns, (u, c) => J((w(), k("th", {
1766
- key: u.name,
1765
+ (w(!0), k(ue, null, me(t.columns, (i, c) => J((w(), k("th", {
1766
+ key: i.name,
1767
1767
  "data-colindex": c,
1768
1768
  tabindex: "-1",
1769
- style: xe(t.store.getHeaderCellStyle(u)),
1770
- class: ae(`${u.pinned ? "sticky-column" : ""} ${u.sortable === !1 ? "" : "cursor-pointer"}`),
1771
- onClick: (p) => u.sortable !== !1 ? r(c) : void 0
1769
+ style: xe(t.store.getHeaderCellStyle(i)),
1770
+ class: ae(`${i.pinned ? "sticky-column" : ""} ${i.sortable === !1 ? "" : "cursor-pointer"}`),
1771
+ onClick: (p) => i.sortable !== !1 ? r(c) : void 0
1772
1772
  }, [
1773
1773
  he(l.$slots, "default", {}, () => [
1774
- Dt(K(u.label || String.fromCharCode(c + 97).toUpperCase()), 1)
1774
+ Dt(K(i.label || String.fromCharCode(c + 97).toUpperCase()), 1)
1775
1775
  ])
1776
1776
  ], 14, dl)), [
1777
1777
  [V(qo), s]
@@ -1792,14 +1792,14 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1792
1792
  ], "list-index"])
1793
1793
  }, null, 2)) : q("", !0),
1794
1794
  o.value && a.value === "after-index" ? (w(), k("th", pl)) : q("", !0),
1795
- (w(!0), k(ue, null, me(t.columns, (u, c) => (w(), k("th", {
1796
- key: `filter-${u.name}`,
1797
- class: ae(`${u.pinned ? "sticky-column" : ""}`),
1798
- style: xe(t.store.getHeaderCellStyle(u))
1795
+ (w(!0), k(ue, null, me(t.columns, (i, c) => (w(), k("th", {
1796
+ key: `filter-${i.name}`,
1797
+ class: ae(`${i.pinned ? "sticky-column" : ""}`),
1798
+ style: xe(t.store.getHeaderCellStyle(i))
1799
1799
  }, [
1800
- u.filterable ? (w(), pe(rl, {
1800
+ i.filterable ? (w(), pe(rl, {
1801
1801
  key: 0,
1802
- column: u,
1802
+ column: i,
1803
1803
  "col-index": c,
1804
1804
  store: t.store
1805
1805
  }, null, 8, ["column", "col-index", "store"])) : q("", !0)
@@ -1808,7 +1808,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1808
1808
  ])) : q("", !0)
1809
1809
  ])) : q("", !0);
1810
1810
  }
1811
- }), wn = /* @__PURE__ */ te({
1811
+ }), wn = /* @__PURE__ */ ne({
1812
1812
  __name: "ATableModal",
1813
1813
  props: {
1814
1814
  store: {}
@@ -1819,13 +1819,13 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1819
1819
  const r = e.store.modal.cell?.closest("table");
1820
1820
  if (!r) return {};
1821
1821
  const s = r.offsetHeight || 0, l = r.offsetWidth || 0;
1822
- let i = e.store.modal.cell?.offsetTop || 0;
1823
- const u = r.querySelector("thead")?.offsetHeight || 0;
1824
- i += u, i = i + o.value < s ? i : i - (o.value + e.store.modal.height);
1822
+ let u = e.store.modal.cell?.offsetTop || 0;
1823
+ const i = r.querySelector("thead")?.offsetHeight || 0;
1824
+ u += i, u = u + o.value < s ? u : u - (o.value + e.store.modal.height);
1825
1825
  let c = e.store.modal.cell?.offsetLeft || 0;
1826
1826
  return c = c + n.value <= l ? c : c - (n.value - e.store.modal.width), {
1827
1827
  left: `${c}px`,
1828
- top: `${i}px`
1828
+ top: `${u}px`
1829
1829
  };
1830
1830
  });
1831
1831
  return (r, s) => (w(), k("div", {
@@ -1886,13 +1886,13 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1886
1886
  };
1887
1887
  }
1888
1888
  return d;
1889
- }, o = L(e.columns), a = L(e.rows), r = L(e.config || {}), s = L({}), l = L({}), i = $(() => {
1889
+ }, o = L(e.columns), a = L(e.rows), r = L(e.config || {}), s = L({}), l = L({}), u = $(() => {
1890
1890
  const d = {};
1891
1891
  for (const [v, M] of o.value.entries())
1892
1892
  for (const [P, Z] of a.value.entries())
1893
1893
  d[`${v}:${P}`] = Z[M.name];
1894
1894
  return d;
1895
- }), u = $({
1895
+ }), i = $({
1896
1896
  get: () => {
1897
1897
  const d = n();
1898
1898
  for (let v = 0; v < d.length; v++)
@@ -1911,17 +1911,17 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1911
1911
  return d;
1912
1912
  },
1913
1913
  set: (d) => {
1914
- JSON.stringify(d) !== JSON.stringify(u.value) && (u.value = d);
1914
+ JSON.stringify(d) !== JSON.stringify(i.value) && (i.value = d);
1915
1915
  }
1916
- }), c = L(e.modal || { visible: !1 }), p = L({}), h = L([]), b = L([]), I = L([]), x = L({
1916
+ }), c = L(e.modal || { visible: !1 }), p = L({}), m = L([]), I = L([]), b = L([]), x = L({
1917
1917
  column: null,
1918
1918
  direction: null
1919
- }), f = L({}), m = $(() => o.value.some((d) => d.pinned)), g = $(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), C = $(() => r.value.view === "tree" || r.value.view === "tree-gantt"), T = $(() => {
1919
+ }), f = L({}), h = $(() => o.value.some((d) => d.pinned)), g = $(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), C = $(() => r.value.view === "tree" || r.value.view === "tree-gantt"), T = $(() => {
1920
1920
  const d = r.value;
1921
1921
  return d.view === "gantt" || d.view === "tree-gantt" ? d.dependencyGraph !== !1 : !0;
1922
1922
  }), R = $(() => `${Math.ceil(a.value.length / 100 + 1)}ch`), S = $(
1923
1923
  () => r.value.view ? ["list", "tree", "tree-gantt", "list-expansion"].includes(r.value.view) : !1
1924
- ), _ = $(() => {
1924
+ ), O = $(() => {
1925
1925
  let d = a.value.map((v, M) => ({
1926
1926
  ...v,
1927
1927
  originalIndex: M
@@ -1930,7 +1930,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1930
1930
  const P = parseInt(v), Z = o.value[P];
1931
1931
  !Z || !(M.value || M.startValue || M.endValue || Z.filterType === "checkbox" && M.value !== void 0) || (d = d.filter((A) => {
1932
1932
  const H = A[Z.name];
1933
- return ne(H, M, Z);
1933
+ return oe(H, M, Z);
1934
1934
  }));
1935
1935
  }), x.value.column !== null && x.value.direction) {
1936
1936
  const v = o.value[x.value.column], M = x.value.direction;
@@ -1947,9 +1947,9 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1947
1947
  });
1948
1948
  }
1949
1949
  return d;
1950
- }), U = (d, v) => i.value[`${d}:${v}`], ve = (d, v, M) => {
1950
+ }), U = (d, v) => u.value[`${d}:${v}`], ve = (d, v, M) => {
1951
1951
  const P = `${d}:${v}`, Z = o.value[d];
1952
- i.value[P] !== M && (s.value[v] = !0), i.value[P] = M, a.value[v] = {
1952
+ u.value[P] !== M && (s.value[v] = !0), u.value[P] = M, a.value[v] = {
1953
1953
  ...a.value[v],
1954
1954
  [Z.name]: M
1955
1955
  };
@@ -1957,7 +1957,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1957
1957
  a.value = d;
1958
1958
  }, X = (d, v, M) => {
1959
1959
  const P = `${d}:${v}`;
1960
- i.value[P] !== M && (s.value[v] = !0, p.value[P] = M);
1960
+ u.value[P] !== M && (s.value[v] = !0, p.value[P] = M);
1961
1961
  }, ge = (d) => {
1962
1962
  const v = o.value.indexOf(d) === o.value.length - 1, M = r.value.fullWidth ? d.resizable && !v : d.resizable;
1963
1963
  return {
@@ -1976,57 +1976,57 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
1976
1976
  ...o.value[d],
1977
1977
  width: `${M}px`
1978
1978
  };
1979
- }, Be = (d) => {
1979
+ }, Oe = (d) => {
1980
1980
  const v = a.value[d];
1981
1981
  return g.value && v.gantt !== void 0;
1982
- }, Re = (d) => !C.value || u.value[d].isRoot || u.value[d].open, Xe = (d) => !C.value && r.value.view !== "list-expansion" ? "" : C.value && (u.value[d].isRoot || u.value[d].isParent) ? u.value[d].childrenOpen ? "▼" : "►" : r.value.view === "list-expansion" ? u.value[d].expanded ? "▼" : "►" : "", je = (d) => {
1982
+ }, Re = (d) => !C.value || i.value[d].isRoot || i.value[d].open, Ye = (d) => !C.value && r.value.view !== "list-expansion" ? "" : C.value && (i.value[d].isRoot || i.value[d].isParent) ? i.value[d].childrenOpen ? "▼" : "►" : r.value.view === "list-expansion" ? i.value[d].expanded ? "▼" : "►" : "", Xe = (d) => {
1983
1983
  if (C.value) {
1984
- const v = l.value[d] || {}, M = !(v.childrenOpen ?? u.value[d].childrenOpen);
1984
+ const v = l.value[d] || {}, M = !(v.childrenOpen ?? i.value[d].childrenOpen);
1985
1985
  l.value[d] = {
1986
1986
  ...v,
1987
1987
  childrenOpen: M
1988
- }, M || Fe(d);
1988
+ }, M || Be(d);
1989
1989
  } else if (r.value.view === "list-expansion") {
1990
- const v = l.value[d] || {}, M = v.expanded ?? u.value[d].expanded;
1990
+ const v = l.value[d] || {}, M = v.expanded ?? i.value[d].expanded;
1991
1991
  l.value[d] = {
1992
1992
  ...v,
1993
1993
  expanded: !M
1994
1994
  };
1995
1995
  }
1996
- }, Fe = (d) => {
1996
+ }, Be = (d) => {
1997
1997
  for (let v = 0; v < a.value.length; v++)
1998
- if (u.value[v].parent === d) {
1998
+ if (i.value[v].parent === d) {
1999
1999
  const M = l.value[v] || {};
2000
2000
  l.value[v] = {
2001
2001
  ...M,
2002
2002
  childrenOpen: !1
2003
- }, Fe(v);
2003
+ }, Be(v);
2004
2004
  }
2005
- }, Je = (d, v) => {
2005
+ }, je = (d, v) => {
2006
2006
  const M = U(d, v);
2007
- return Ze(d, v, M);
2008
- }, Ze = (d, v, M) => {
2007
+ return Fe(d, v, M);
2008
+ }, Fe = (d, v, M) => {
2009
2009
  const P = o.value[d], Z = a.value[v], A = P.format;
2010
- return A ? typeof A == "function" ? A(M, { table: i.value, row: Z, column: P }) : typeof A == "string" ? Function(`"use strict";return (${A})`)()(M, { table: i.value, row: Z, column: P }) : M : M;
2010
+ return A ? typeof A == "function" ? A(M, { table: u.value, row: Z, column: P }) : typeof A == "string" ? Function(`"use strict";return (${A})`)()(M, { table: u.value, row: Z, column: P }) : M : M;
2011
2011
  }, D = (d) => {
2012
2012
  d.target instanceof Node && c.value.parent?.contains(d.target) || c.value.visible && (c.value.visible = !1);
2013
2013
  }, F = (d, v) => v && d === 0 && v > 0 ? `${v}ch` : "inherit", W = (d) => {
2014
2014
  const v = a.value[d.rowIndex]?.gantt;
2015
2015
  v && (d.type === "resize" ? d.edge === "start" ? (v.startIndex = d.newStart, v.endIndex = d.end, v.colspan = v.endIndex - v.startIndex) : d.edge === "end" && (v.startIndex = d.start, v.endIndex = d.newEnd, v.colspan = v.endIndex - v.startIndex) : d.type === "bar" && (v.startIndex = d.newStart, v.endIndex = d.newEnd, v.colspan = v.endIndex - v.startIndex));
2016
2016
  }, j = (d) => {
2017
- const v = h.value.findIndex((M) => M.id === d.id);
2018
- v >= 0 ? h.value[v] = d : h.value.push(d);
2017
+ const v = m.value.findIndex((M) => M.id === d.id);
2018
+ v >= 0 ? m.value[v] = d : m.value.push(d);
2019
2019
  }, z = (d) => {
2020
- const v = h.value.findIndex((M) => M.id === d);
2021
- v >= 0 && h.value.splice(v, 1);
2020
+ const v = m.value.findIndex((M) => M.id === d);
2021
+ v >= 0 && m.value.splice(v, 1);
2022
2022
  }, se = (d) => {
2023
- const v = b.value.findIndex((M) => M.id === d.id);
2024
- v >= 0 ? b.value[v] = d : b.value.push(d);
2023
+ const v = I.value.findIndex((M) => M.id === d.id);
2024
+ v >= 0 ? I.value[v] = d : I.value.push(d);
2025
2025
  }, be = (d) => {
2026
- const v = b.value.findIndex((M) => M.id === d);
2027
- v >= 0 && b.value.splice(v, 1);
2026
+ const v = I.value.findIndex((M) => M.id === d);
2027
+ v >= 0 && I.value.splice(v, 1);
2028
2028
  }, Le = (d, v, M) => {
2029
- const P = b.value.find((H) => H.id === d), Z = b.value.find((H) => H.id === v);
2029
+ const P = I.value.find((H) => H.id === d), Z = I.value.find((H) => H.id === v);
2030
2030
  if (!P || !Z)
2031
2031
  return console.warn("Cannot create connection: handle not found"), null;
2032
2032
  const A = {
@@ -2042,15 +2042,15 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2042
2042
  style: M?.style,
2043
2043
  label: M?.label
2044
2044
  };
2045
- return I.value.push(A), A;
2046
- }, O = (d) => {
2047
- const v = I.value.findIndex((M) => M.id === d);
2048
- return v >= 0 ? (I.value.splice(v, 1), !0) : !1;
2049
- }, B = (d) => I.value.filter((v) => v.from.barId === d || v.to.barId === d), G = (d) => b.value.filter((v) => v.barId === d), Q = (d) => {
2045
+ return b.value.push(A), A;
2046
+ }, _ = (d) => {
2047
+ const v = b.value.findIndex((M) => M.id === d);
2048
+ return v >= 0 ? (b.value.splice(v, 1), !0) : !1;
2049
+ }, B = (d) => b.value.filter((v) => v.from.barId === d || v.to.barId === d), G = (d) => I.value.filter((v) => v.barId === d), Q = (d) => {
2050
2050
  if (o.value[d].sortable === !1) return;
2051
2051
  let v;
2052
2052
  x.value.column === d && x.value.direction === "asc" ? v = "desc" : v = "asc", x.value.column = d, x.value.direction = v;
2053
- }, ne = (d, v, M) => {
2053
+ }, oe = (d, v, M) => {
2054
2054
  const P = M.filterType || "text", Z = v.value;
2055
2055
  if (!Z && P !== "dateRange" && P !== "checkbox") return !0;
2056
2056
  switch (P) {
@@ -2106,19 +2106,19 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2106
2106
  // state
2107
2107
  columns: o,
2108
2108
  config: r,
2109
- connectionHandles: b,
2110
- connectionPaths: I,
2111
- display: u,
2109
+ connectionHandles: I,
2110
+ connectionPaths: b,
2111
+ display: i,
2112
2112
  filterState: f,
2113
- ganttBars: h,
2113
+ ganttBars: m,
2114
2114
  modal: c,
2115
2115
  rows: a,
2116
2116
  sortState: x,
2117
- table: i,
2117
+ table: u,
2118
2118
  updates: p,
2119
2119
  // getters
2120
- filteredRows: _,
2121
- hasPinnedColumns: m,
2120
+ filteredRows: O,
2121
+ hasPinnedColumns: h,
2122
2122
  isGanttView: g,
2123
2123
  isTreeView: C,
2124
2124
  isDependencyGraphEnabled: T,
@@ -2129,7 +2129,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2129
2129
  clearFilter: re,
2130
2130
  closeModal: D,
2131
2131
  createConnection: Le,
2132
- deleteConnection: O,
2132
+ deleteConnection: _,
2133
2133
  deleteRow: (d) => {
2134
2134
  if (d < 0 || d >= a.value.length)
2135
2135
  return null;
@@ -2153,13 +2153,13 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2153
2153
  return a.value.splice(P, 0, M), P;
2154
2154
  },
2155
2155
  getCellData: U,
2156
- getCellDisplayValue: Je,
2156
+ getCellDisplayValue: je,
2157
2157
  getConnectionsForBar: B,
2158
- getFormattedValue: Ze,
2158
+ getFormattedValue: Fe,
2159
2159
  getHandlesForBar: G,
2160
2160
  getHeaderCellStyle: ge,
2161
2161
  getIndent: F,
2162
- getRowExpandSymbol: Xe,
2162
+ getRowExpandSymbol: Ye,
2163
2163
  insertRowAbove: (d, v) => {
2164
2164
  const M = Math.max(0, d);
2165
2165
  return ce(v, M);
@@ -2168,7 +2168,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2168
2168
  const M = Math.min(d + 1, a.value.length);
2169
2169
  return ce(v, M);
2170
2170
  },
2171
- isRowGantt: Be,
2171
+ isRowGantt: Oe,
2172
2172
  isRowVisible: Re,
2173
2173
  moveRow: (d, v) => {
2174
2174
  if (d < 0 || d >= a.value.length || v < 0 || v >= a.value.length || d === v)
@@ -2195,7 +2195,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2195
2195
  setCellText: X,
2196
2196
  setFilter: ee,
2197
2197
  sortByColumn: Q,
2198
- toggleRowExpand: je,
2198
+ toggleRowExpand: Xe,
2199
2199
  unregisterConnectionHandle: be,
2200
2200
  unregisterGanttBar: z,
2201
2201
  updateGanttBar: W,
@@ -2205,7 +2205,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2205
2205
  }, gl = {
2206
2206
  class: "atable-container",
2207
2207
  style: { position: "relative" }
2208
- }, wl = /* @__PURE__ */ te({
2208
+ }, wl = /* @__PURE__ */ ne({
2209
2209
  __name: "ATable",
2210
2210
  props: /* @__PURE__ */ Me({
2211
2211
  id: { default: "" },
@@ -2219,43 +2219,43 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2219
2219
  emits: /* @__PURE__ */ Me(["cellUpdate", "gantt:drag", "connection:event", "columns:update", "row:add", "row:delete", "row:duplicate", "row:insert-above", "row:insert-below", "row:move"], ["update:rows", "update:columns"]),
2220
2220
  setup(e, { expose: t, emit: n }) {
2221
2221
  const o = ke(e, "rows"), a = ke(e, "columns"), r = n, s = fe("table"), l = hl({ columns: a.value, rows: o.value, id: e.id, config: e.config });
2222
- l.$onAction(({ name: I, store: x, args: f, after: m }) => {
2223
- if (I === "setCellData" || I === "setCellText") {
2222
+ l.$onAction(({ name: b, store: x, args: f, after: h }) => {
2223
+ if (b === "setCellData" || b === "setCellText") {
2224
2224
  const [g, C, T] = f, R = x.getCellData(g, C);
2225
- m(() => {
2225
+ h(() => {
2226
2226
  o.value = [...x.rows], r("cellUpdate", { colIndex: g, rowIndex: C, newValue: T, oldValue: R });
2227
2227
  });
2228
- } else if (I === "updateGanttBar") {
2228
+ } else if (b === "updateGanttBar") {
2229
2229
  const [g] = f;
2230
2230
  let C = !1;
2231
- g.type === "resize" ? C = g.oldColspan !== g.newColspan : g.type === "bar" && (C = g.oldStart !== g.newStart || g.oldEnd !== g.newEnd), C && m(() => {
2231
+ g.type === "resize" ? C = g.oldColspan !== g.newColspan : g.type === "bar" && (C = g.oldStart !== g.newStart || g.oldEnd !== g.newEnd), C && h(() => {
2232
2232
  r("gantt:drag", g);
2233
2233
  });
2234
- } else I === "resizeColumn" && m(() => {
2234
+ } else b === "resizeColumn" && h(() => {
2235
2235
  a.value = [...x.columns], r("columns:update", [...x.columns]);
2236
2236
  });
2237
- }), oe(
2237
+ }), te(
2238
2238
  () => o.value,
2239
- (I) => {
2240
- JSON.stringify(I) !== JSON.stringify(l.rows) && (l.rows = [...I]);
2239
+ (b) => {
2240
+ JSON.stringify(b) !== JSON.stringify(l.rows) && (l.rows = [...b]);
2241
2241
  },
2242
2242
  { deep: !0 }
2243
- ), oe(
2243
+ ), te(
2244
2244
  a,
2245
- (I) => {
2246
- JSON.stringify(I) !== JSON.stringify(l.columns) && (l.columns = [...I], r("columns:update", [...I]));
2245
+ (b) => {
2246
+ JSON.stringify(b) !== JSON.stringify(l.columns) && (l.columns = [...b], r("columns:update", [...b]));
2247
2247
  },
2248
2248
  { deep: !0 }
2249
2249
  ), Ee(() => {
2250
- a.value.some((I) => I.pinned) && (u(), l.isTreeView && mn(s, u, { childList: !0, subtree: !0 }));
2250
+ a.value.some((b) => b.pinned) && (i(), l.isTreeView && mn(s, i, { childList: !0, subtree: !0 }));
2251
2251
  });
2252
- const i = $(() => l.columns.filter((I) => I.pinned).length), u = () => {
2253
- const I = s.value, x = I?.rows[0], f = I?.rows[1], m = x ? Array.from(x.cells) : [];
2254
- for (const [g, C] of m.entries()) {
2252
+ const u = $(() => l.columns.filter((b) => b.pinned).length), i = () => {
2253
+ const b = s.value, x = b?.rows[0], f = b?.rows[1], h = x ? Array.from(x.cells) : [];
2254
+ for (const [g, C] of h.entries()) {
2255
2255
  const T = f?.cells[g];
2256
2256
  T && (C.style.width = `${T.offsetWidth}px`);
2257
2257
  }
2258
- for (const g of I?.rows || []) {
2258
+ for (const g of b?.rows || []) {
2259
2259
  let C = 0;
2260
2260
  const T = [];
2261
2261
  for (const R of g.cells)
@@ -2263,8 +2263,8 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2263
2263
  T.length > 0 && T[T.length - 1].classList.add("sticky-column-edge");
2264
2264
  }
2265
2265
  };
2266
- window.addEventListener("keydown", (I) => {
2267
- if (I.key === "Escape" && l.modal.visible) {
2266
+ window.addEventListener("keydown", (b) => {
2267
+ if (b.key === "Escape" && l.modal.visible) {
2268
2268
  l.modal.visible = !1;
2269
2269
  const x = l.modal.parent;
2270
2270
  x && pt().then(() => {
@@ -2272,31 +2272,31 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2272
2272
  });
2273
2273
  }
2274
2274
  });
2275
- const c = (I) => {
2276
- if (!I.gantt || i.value === 0)
2275
+ const c = (b) => {
2276
+ if (!b.gantt || u.value === 0)
2277
2277
  return l.columns;
2278
2278
  const x = [];
2279
- for (let f = 0; f < i.value; f++) {
2280
- const m = { ...l.columns[f] };
2281
- m.originalIndex = f, x.push(m);
2279
+ for (let f = 0; f < u.value; f++) {
2280
+ const h = { ...l.columns[f] };
2281
+ h.originalIndex = f, x.push(h);
2282
2282
  }
2283
2283
  return x.push({
2284
- ...l.columns[i.value],
2284
+ ...l.columns[u.value],
2285
2285
  isGantt: !0,
2286
- colspan: I.gantt?.colspan || l.columns.length - i.value,
2287
- originalIndex: i.value,
2286
+ colspan: b.gantt?.colspan || l.columns.length - u.value,
2287
+ originalIndex: u.value,
2288
2288
  width: "auto"
2289
2289
  // TODO: refactor to API that can detect when data exists in a cell. Might have be custom and not generalizable
2290
2290
  }), x;
2291
- }, p = (I) => {
2292
- r("connection:event", { type: "create", connection: I });
2293
- }, h = (I) => {
2294
- r("connection:event", { type: "delete", connection: I });
2295
- }, b = (I, x) => {
2296
- switch (I) {
2291
+ }, p = (b) => {
2292
+ r("connection:event", { type: "create", connection: b });
2293
+ }, m = (b) => {
2294
+ r("connection:event", { type: "delete", connection: b });
2295
+ }, I = (b, x) => {
2296
+ switch (b) {
2297
2297
  case "add": {
2298
- const f = l.addRow({}, x + 1), m = l.rows[f];
2299
- o.value = [...l.rows], r("row:add", { rowIndex: f, row: m });
2298
+ const f = l.addRow({}, x + 1), h = l.rows[f];
2299
+ o.value = [...l.rows], r("row:add", { rowIndex: f, row: h });
2300
2300
  break;
2301
2301
  }
2302
2302
  case "delete": {
@@ -2307,19 +2307,19 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2307
2307
  case "duplicate": {
2308
2308
  const f = l.duplicateRow(x);
2309
2309
  if (f >= 0) {
2310
- const m = l.rows[f];
2311
- o.value = [...l.rows], r("row:duplicate", { sourceIndex: x, newIndex: f, row: m });
2310
+ const h = l.rows[f];
2311
+ o.value = [...l.rows], r("row:duplicate", { sourceIndex: x, newIndex: f, row: h });
2312
2312
  }
2313
2313
  break;
2314
2314
  }
2315
2315
  case "insertAbove": {
2316
- const f = l.insertRowAbove(x), m = l.rows[f];
2317
- o.value = [...l.rows], r("row:insert-above", { targetIndex: x, newIndex: f, row: m });
2316
+ const f = l.insertRowAbove(x), h = l.rows[f];
2317
+ o.value = [...l.rows], r("row:insert-above", { targetIndex: x, newIndex: f, row: h });
2318
2318
  break;
2319
2319
  }
2320
2320
  case "insertBelow": {
2321
- const f = l.insertRowBelow(x), m = l.rows[f];
2322
- o.value = [...l.rows], r("row:insert-below", { targetIndex: x, newIndex: f, row: m });
2321
+ const f = l.insertRowBelow(x), h = l.rows[f];
2322
+ o.value = [...l.rows], r("row:insert-below", { targetIndex: x, newIndex: f, row: h });
2323
2323
  break;
2324
2324
  }
2325
2325
  case "move": {
@@ -2341,7 +2341,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2341
2341
  insertRowAbove: l.insertRowAbove,
2342
2342
  insertRowBelow: l.insertRowBelow,
2343
2343
  moveRow: l.moveRow
2344
- }), (I, x) => (w(), k("div", gl, [
2344
+ }), (b, x) => (w(), k("div", gl, [
2345
2345
  J((w(), k("table", {
2346
2346
  ref: "table",
2347
2347
  class: "atable",
@@ -2349,29 +2349,29 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2349
2349
  width: V(l).config.fullWidth ? "100%" : "auto"
2350
2350
  })
2351
2351
  }, [
2352
- he(I.$slots, "header", { data: V(l) }, () => [
2352
+ he(b.$slots, "header", { data: V(l) }, () => [
2353
2353
  dt(gn, {
2354
2354
  columns: V(l).columns,
2355
2355
  store: V(l)
2356
2356
  }, null, 8, ["columns", "store"])
2357
2357
  ], !0),
2358
2358
  y("tbody", null, [
2359
- he(I.$slots, "body", { data: V(l) }, () => [
2360
- (w(!0), k(ue, null, me(V(l).filteredRows, (f, m) => (w(), pe(hn, {
2361
- key: `${f.originalIndex}-${m}`,
2359
+ he(b.$slots, "body", { data: V(l) }, () => [
2360
+ (w(!0), k(ue, null, me(V(l).filteredRows, (f, h) => (w(), pe(hn, {
2361
+ key: `${f.originalIndex}-${h}`,
2362
2362
  row: f,
2363
2363
  rowIndex: f.originalIndex,
2364
2364
  store: V(l),
2365
- "onRow:action": b
2365
+ "onRow:action": I
2366
2366
  }, {
2367
2367
  default: Tt(() => [
2368
2368
  (w(!0), k(ue, null, me(c(f), (g, C) => (w(), k(ue, {
2369
2369
  key: g.name
2370
2370
  }, [
2371
- g.isGantt ? (w(), pe(We(g.ganttComponent || "AGanttCell"), {
2371
+ g.isGantt ? (w(), pe(Ue(g.ganttComponent || "AGanttCell"), {
2372
2372
  key: 0,
2373
2373
  store: V(l),
2374
- "columns-count": V(l).columns.length - i.value,
2374
+ "columns-count": V(l).columns.length - u.value,
2375
2375
  color: f.gantt?.color,
2376
2376
  start: f.gantt?.startIndex,
2377
2377
  end: f.gantt?.endIndex,
@@ -2385,7 +2385,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2385
2385
  width: V(l).config.fullWidth ? "auto" : null
2386
2386
  }),
2387
2387
  "onConnection:create": p
2388
- }, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "rowIndex", "colIndex", "style"])) : (w(), pe(We(g.cellComponent || "ACell"), {
2388
+ }, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "rowIndex", "colIndex", "style"])) : (w(), pe(Ue(g.cellComponent || "ACell"), {
2389
2389
  key: 1,
2390
2390
  store: V(l),
2391
2391
  pinned: g.pinned,
@@ -2403,11 +2403,11 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2403
2403
  }, 1032, ["row", "rowIndex", "store"]))), 128))
2404
2404
  ], !0)
2405
2405
  ]),
2406
- he(I.$slots, "footer", { data: V(l) }, void 0, !0),
2407
- he(I.$slots, "modal", { data: V(l) }, () => [
2406
+ he(b.$slots, "footer", { data: V(l) }, void 0, !0),
2407
+ he(b.$slots, "modal", { data: V(l) }, () => [
2408
2408
  J(dt(wn, { store: V(l) }, {
2409
2409
  default: Tt(() => [
2410
- (w(), pe(We(V(l).modal.component), vt({
2410
+ (w(), pe(Ue(V(l).modal.component), vt({
2411
2411
  key: `${V(l).modal.rowIndex}:${V(l).modal.colIndex}`,
2412
2412
  "col-index": V(l).modal.colIndex,
2413
2413
  "row-index": V(l).modal.rowIndex,
@@ -2425,7 +2425,7 @@ const Xo = { class: "gantt-connection-overlay" }, jo = {
2425
2425
  V(l).isGanttView && V(l).isDependencyGraphEnabled ? (w(), pe(tl, {
2426
2426
  key: 0,
2427
2427
  store: V(l),
2428
- "onConnection:delete": h
2428
+ "onConnection:delete": m
2429
2429
  }, null, 8, ["store"])) : q("", !0)
2430
2430
  ]));
2431
2431
  }
@@ -2451,7 +2451,7 @@ const $l = /* @__PURE__ */ Ve(Cl, [["render", Tl], ["__scopeId", "data-v-e116587
2451
2451
  function Dl(e) {
2452
2452
  e.component("ACell", ho), e.component("AExpansionRow", bo), e.component("AGanttCell", To), e.component("ARow", hn), e.component("ARowActions", ut), e.component("ATable", yl), e.component("ATableHeader", gn), e.component("ATableLoading", Ml), e.component("ATableLoadingBar", $l), e.component("ATableModal", wn);
2453
2453
  }
2454
- const Sl = { class: "aform_form-element" }, Rl = ["for"], Ll = { class: "aform_checkbox-container aform_input-field" }, Hl = ["id", "readonly", "required"], Vl = ["innerHTML"], Pl = /* @__PURE__ */ te({
2454
+ const Sl = { class: "aform_form-element" }, Rl = ["for"], Ll = { class: "aform_checkbox-container aform_input-field" }, Hl = ["id", "readonly", "required"], Vl = ["innerHTML"], Pl = /* @__PURE__ */ ne({
2455
2455
  __name: "ACheckbox",
2456
2456
  props: /* @__PURE__ */ Me({
2457
2457
  schema: {},
@@ -2498,7 +2498,7 @@ const Sl = { class: "aform_form-element" }, Rl = ["for"], Ll = { class: "aform_c
2498
2498
  for (const [o, a] of t)
2499
2499
  n[o] = a;
2500
2500
  return n;
2501
- }, Ol = /* @__PURE__ */ $e(Pl, [["__scopeId", "data-v-f13fd4d6"]]), _l = /* @__PURE__ */ te({
2501
+ }, _l = /* @__PURE__ */ $e(Pl, [["__scopeId", "data-v-f13fd4d6"]]), Ol = /* @__PURE__ */ ne({
2502
2502
  __name: "AComboBox",
2503
2503
  props: ["event", "cellData", "tableID"],
2504
2504
  setup(e) {
@@ -2520,7 +2520,7 @@ const Sl = { class: "aform_form-element" }, Rl = ["for"], Ll = { class: "aform_c
2520
2520
  }, 8, ["event", "cell-data"]);
2521
2521
  };
2522
2522
  }
2523
- }), Bl = ["id", "disabled", "required"], Fl = ["for"], Zl = ["innerHTML"], Nl = /* @__PURE__ */ te({
2523
+ }), Bl = ["id", "disabled", "required"], Fl = ["for"], Zl = ["innerHTML"], Nl = /* @__PURE__ */ ne({
2524
2524
  __name: "ADate",
2525
2525
  props: /* @__PURE__ */ Me({
2526
2526
  schema: {},
@@ -2588,27 +2588,27 @@ function jt() {
2588
2588
  }
2589
2589
  const xn = typeof window < "u" && typeof document < "u";
2590
2590
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
2591
- const Wl = Object.prototype.toString, Gl = (e) => Wl.call(e) === "[object Object]", Qe = () => {
2591
+ const Wl = Object.prototype.toString, Gl = (e) => Wl.call(e) === "[object Object]", Je = () => {
2592
2592
  }, zl = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
2593
2593
  function ql(...e) {
2594
2594
  if (e.length !== 1) return cn(...e);
2595
2595
  const t = e[0];
2596
2596
  return typeof t == "function" ? Rt(St(() => ({
2597
2597
  get: t,
2598
- set: Qe
2598
+ set: Je
2599
2599
  }))) : L(t);
2600
2600
  }
2601
2601
  function kt(e) {
2602
2602
  return Array.isArray(e) ? e : [e];
2603
2603
  }
2604
2604
  function Yl(e, t, n) {
2605
- return oe(e, t, {
2605
+ return te(e, t, {
2606
2606
  ...n,
2607
2607
  immediate: !0
2608
2608
  });
2609
2609
  }
2610
2610
  const bn = xn ? window : void 0, Xl = xn ? window.document : void 0;
2611
- function Ue(e) {
2611
+ function Ne(e) {
2612
2612
  var t;
2613
2613
  const n = E(e);
2614
2614
  return (t = n?.$el) !== null && t !== void 0 ? t : n;
@@ -2621,15 +2621,15 @@ function Mt(...e) {
2621
2621
  return Yl(() => {
2622
2622
  var o, a;
2623
2623
  return [
2624
- (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => Ue(r))) !== null && o !== void 0 ? o : [bn].filter((r) => r != null),
2624
+ (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => Ne(r))) !== null && o !== void 0 ? o : [bn].filter((r) => r != null),
2625
2625
  kt(E(n.value ? e[1] : e[0])),
2626
2626
  kt(V(n.value ? e[2] : e[1])),
2627
2627
  E(n.value ? e[3] : e[2])
2628
2628
  ];
2629
- }, ([o, a, r, s], l, i) => {
2629
+ }, ([o, a, r, s], l, u) => {
2630
2630
  if (!o?.length || !a?.length || !r?.length) return;
2631
- const u = Gl(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
2632
- i(() => {
2631
+ const i = Gl(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((m) => r.map((I) => t(p, m, I, i))));
2632
+ u(() => {
2633
2633
  c.forEach((p) => p());
2634
2634
  });
2635
2635
  }, { flush: "post" });
@@ -2637,65 +2637,65 @@ function Mt(...e) {
2637
2637
  function Jt(e, t, n = {}) {
2638
2638
  const { window: o = bn, ignore: a = [], capture: r = !0, detectIframe: s = !1, controls: l = !1 } = n;
2639
2639
  if (!o) return l ? {
2640
- stop: Qe,
2641
- cancel: Qe,
2642
- trigger: Qe
2643
- } : Qe;
2644
- let i = !0;
2645
- const u = (f) => E(a).some((m) => {
2646
- if (typeof m == "string") return Array.from(o.document.querySelectorAll(m)).some((g) => g === f.target || f.composedPath().includes(g));
2640
+ stop: Je,
2641
+ cancel: Je,
2642
+ trigger: Je
2643
+ } : Je;
2644
+ let u = !0;
2645
+ const i = (f) => E(a).some((h) => {
2646
+ if (typeof h == "string") return Array.from(o.document.querySelectorAll(h)).some((g) => g === f.target || f.composedPath().includes(g));
2647
2647
  {
2648
- const g = Ue(m);
2648
+ const g = Ne(h);
2649
2649
  return g && (f.target === g || f.composedPath().includes(g));
2650
2650
  }
2651
2651
  });
2652
2652
  function c(f) {
2653
- const m = E(f);
2654
- return m && m.$.subTree.shapeFlag === 16;
2653
+ const h = E(f);
2654
+ return h && h.$.subTree.shapeFlag === 16;
2655
2655
  }
2656
- function p(f, m) {
2656
+ function p(f, h) {
2657
2657
  const g = E(f), C = g.$.subTree && g.$.subTree.children;
2658
- return C == null || !Array.isArray(C) ? !1 : C.some((T) => T.el === m.target || m.composedPath().includes(T.el));
2658
+ return C == null || !Array.isArray(C) ? !1 : C.some((T) => T.el === h.target || h.composedPath().includes(T.el));
2659
2659
  }
2660
- const h = (f) => {
2661
- const m = Ue(e);
2662
- if (f.target != null && !(!(m instanceof Element) && c(e) && p(e, f)) && !(!m || m === f.target || f.composedPath().includes(m))) {
2663
- if ("detail" in f && f.detail === 0 && (i = !u(f)), !i) {
2664
- i = !0;
2660
+ const m = (f) => {
2661
+ const h = Ne(e);
2662
+ if (f.target != null && !(!(h instanceof Element) && c(e) && p(e, f)) && !(!h || h === f.target || f.composedPath().includes(h))) {
2663
+ if ("detail" in f && f.detail === 0 && (u = !i(f)), !u) {
2664
+ u = !0;
2665
2665
  return;
2666
2666
  }
2667
2667
  t(f);
2668
2668
  }
2669
2669
  };
2670
- let b = !1;
2671
- const I = [
2670
+ let I = !1;
2671
+ const b = [
2672
2672
  Mt(o, "click", (f) => {
2673
- b || (b = !0, setTimeout(() => {
2674
- b = !1;
2675
- }, 0), h(f));
2673
+ I || (I = !0, setTimeout(() => {
2674
+ I = !1;
2675
+ }, 0), m(f));
2676
2676
  }, {
2677
2677
  passive: !0,
2678
2678
  capture: r
2679
2679
  }),
2680
2680
  Mt(o, "pointerdown", (f) => {
2681
- const m = Ue(e);
2682
- i = !u(f) && !!(m && !f.composedPath().includes(m));
2681
+ const h = Ne(e);
2682
+ u = !i(f) && !!(h && !f.composedPath().includes(h));
2683
2683
  }, { passive: !0 }),
2684
2684
  s && Mt(o, "blur", (f) => {
2685
2685
  setTimeout(() => {
2686
- var m;
2687
- const g = Ue(e);
2688
- ((m = o.document.activeElement) === null || m === void 0 ? void 0 : m.tagName) === "IFRAME" && !g?.contains(o.document.activeElement) && t(f);
2686
+ var h;
2687
+ const g = Ne(e);
2688
+ ((h = o.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !g?.contains(o.document.activeElement) && t(f);
2689
2689
  }, 0);
2690
2690
  }, { passive: !0 })
2691
- ].filter(Boolean), x = () => I.forEach((f) => f());
2691
+ ].filter(Boolean), x = () => b.forEach((f) => f());
2692
2692
  return l ? {
2693
2693
  stop: x,
2694
2694
  cancel: () => {
2695
- i = !1;
2695
+ u = !1;
2696
2696
  },
2697
2697
  trigger: (f) => {
2698
- i = !0, h(f), i = !1;
2698
+ u = !0, m(f), u = !1;
2699
2699
  }
2700
2700
  } : x;
2701
2701
  }
@@ -2715,33 +2715,33 @@ function Jl(e) {
2715
2715
  function Ql(e = {}) {
2716
2716
  const { document: t = Xl } = e, n = L(Jl(e.initialFiles)), { on: o, trigger: a } = /* @__PURE__ */ jt(), { on: r, trigger: s } = /* @__PURE__ */ jt(), l = $(() => {
2717
2717
  var p;
2718
- const h = (p = Ue(e.input)) !== null && p !== void 0 ? p : t ? t.createElement("input") : void 0;
2719
- return h && (h.type = "file", h.onchange = (b) => {
2720
- n.value = b.target.files, a(n.value);
2721
- }, h.oncancel = () => {
2718
+ const m = (p = Ne(e.input)) !== null && p !== void 0 ? p : t ? t.createElement("input") : void 0;
2719
+ return m && (m.type = "file", m.onchange = (I) => {
2720
+ n.value = I.target.files, a(n.value);
2721
+ }, m.oncancel = () => {
2722
2722
  s();
2723
- }), h;
2724
- }), i = () => {
2723
+ }), m;
2724
+ }), u = () => {
2725
2725
  n.value = null, l.value && l.value.value && (l.value.value = "", a(null));
2726
- }, u = (p) => {
2727
- const h = l.value;
2728
- h && (h.multiple = E(p.multiple), h.accept = E(p.accept), h.webkitdirectory = E(p.directory), zl(p, "capture") && (h.capture = E(p.capture)));
2726
+ }, i = (p) => {
2727
+ const m = l.value;
2728
+ m && (m.multiple = E(p.multiple), m.accept = E(p.accept), m.webkitdirectory = E(p.directory), zl(p, "capture") && (m.capture = E(p.capture)));
2729
2729
  }, c = (p) => {
2730
- const h = l.value;
2731
- if (!h) return;
2732
- const b = {
2730
+ const m = l.value;
2731
+ if (!m) return;
2732
+ const I = {
2733
2733
  ...jl,
2734
2734
  ...e,
2735
2735
  ...p
2736
2736
  };
2737
- u(b), E(b.reset) && i(), h.click();
2737
+ i(I), E(I.reset) && u(), m.click();
2738
2738
  };
2739
- return Oe(() => {
2740
- u(e);
2739
+ return Qe(() => {
2740
+ i(e);
2741
2741
  }), {
2742
2742
  files: Rt(n),
2743
2743
  open: c,
2744
- reset: i,
2744
+ reset: u,
2745
2745
  onCancel: r,
2746
2746
  onChange: o
2747
2747
  };
@@ -2753,12 +2753,12 @@ const Et = /* @__PURE__ */ new WeakMap();
2753
2753
  function Kl(e, t = !1) {
2754
2754
  const n = ie(t);
2755
2755
  let o = "";
2756
- oe(ql(e), (s) => {
2756
+ te(ql(e), (s) => {
2757
2757
  const l = Ct(E(s));
2758
2758
  if (l) {
2759
- const i = l;
2760
- if (Et.get(i) || Et.set(i, i.style.overflow), i.style.overflow !== "hidden" && (o = i.style.overflow), i.style.overflow === "hidden") return n.value = !0;
2761
- if (n.value) return i.style.overflow = "hidden";
2759
+ const u = l;
2760
+ if (Et.get(u) || Et.set(u, u.style.overflow), u.style.overflow !== "hidden" && (o = u.style.overflow), u.style.overflow === "hidden") return n.value = !0;
2761
+ if (n.value) return u.style.overflow = "hidden";
2762
2762
  }
2763
2763
  }, { immediate: !0 });
2764
2764
  const a = () => {
@@ -2800,7 +2800,7 @@ function ta() {
2800
2800
  if (t.value = o.value, e) return;
2801
2801
  e = !0;
2802
2802
  const a = Kl(n, o.value);
2803
- oe(t, (r) => a.value = r);
2803
+ te(t, (r) => a.value = r);
2804
2804
  };
2805
2805
  }
2806
2806
  ta();
@@ -2810,7 +2810,7 @@ const na = { class: "input-wrapper" }, oa = {
2810
2810
  }, la = {
2811
2811
  key: 0,
2812
2812
  class: "loading autocomplete-result"
2813
- }, aa = ["onClick"], sa = /* @__PURE__ */ te({
2813
+ }, aa = ["onClick"], sa = /* @__PURE__ */ ne({
2814
2814
  __name: "ADropdown",
2815
2815
  props: /* @__PURE__ */ Me({
2816
2816
  label: {},
@@ -2832,69 +2832,69 @@ const na = { class: "input-wrapper" }, oa = {
2832
2832
  if (n.open = !0, n.activeItemIndex = null, e.filterFunction) {
2833
2833
  e.isAsync && (n.loading = !0);
2834
2834
  try {
2835
- const h = await e.filterFunction(t.value || "");
2836
- n.results = h || [];
2835
+ const m = await e.filterFunction(t.value || "");
2836
+ n.results = m || [];
2837
2837
  } catch {
2838
2838
  n.results = [];
2839
2839
  } finally {
2840
2840
  e.isAsync && (n.loading = !1);
2841
2841
  }
2842
2842
  } else
2843
- i();
2844
- }, r = (h) => {
2845
- t.value = h, l(h);
2843
+ u();
2844
+ }, r = (m) => {
2845
+ t.value = m, l(m);
2846
2846
  }, s = () => {
2847
2847
  n.activeItemIndex = e.isAsync ? null : t.value && e.items?.indexOf(t.value) || null, n.open = !0, n.results = e.isAsync ? [] : e.items;
2848
- }, l = (h) => {
2849
- n.activeItemIndex = null, n.open = !1, e.items?.includes(h || t.value || "") || (t.value = "");
2850
- }, i = () => {
2851
- t.value ? n.results = e.items?.filter((h) => h.toLowerCase().includes((t.value ?? "").toLowerCase())) : n.results = e.items;
2848
+ }, l = (m) => {
2849
+ n.activeItemIndex = null, n.open = !1, e.items?.includes(m || t.value || "") || (t.value = "");
2852
2850
  }, u = () => {
2853
- const h = n.results?.length || 0;
2851
+ t.value ? n.results = e.items?.filter((m) => m.toLowerCase().includes((t.value ?? "").toLowerCase())) : n.results = e.items;
2852
+ }, i = () => {
2853
+ const m = n.results?.length || 0;
2854
2854
  if (n.activeItemIndex != null) {
2855
- const b = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2856
- n.activeItemIndex = (b + 1) % h;
2855
+ const I = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2856
+ n.activeItemIndex = (I + 1) % m;
2857
2857
  } else
2858
2858
  n.activeItemIndex = 0;
2859
2859
  }, c = () => {
2860
- const h = n.results?.length || 0;
2860
+ const m = n.results?.length || 0;
2861
2861
  if (n.activeItemIndex != null) {
2862
- const b = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2863
- b === 0 ? n.activeItemIndex = null : n.activeItemIndex = b - 1;
2862
+ const I = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2863
+ I === 0 ? n.activeItemIndex = null : n.activeItemIndex = I - 1;
2864
2864
  } else
2865
- n.activeItemIndex = h - 1;
2865
+ n.activeItemIndex = m - 1;
2866
2866
  }, p = () => {
2867
2867
  if (n.results) {
2868
- const h = n.activeItemIndex || 0, b = n.results[h];
2869
- r(b);
2868
+ const m = n.activeItemIndex || 0, I = n.results[m];
2869
+ r(I);
2870
2870
  }
2871
2871
  n.activeItemIndex = 0;
2872
2872
  };
2873
- return (h, b) => J((w(), k("div", {
2873
+ return (m, I) => J((w(), k("div", {
2874
2874
  class: ae(["autocomplete", { isOpen: n.open }])
2875
2875
  }, [
2876
2876
  y("div", na, [
2877
2877
  J(y("input", {
2878
- "onUpdate:modelValue": b[0] || (b[0] = (I) => t.value = I),
2878
+ "onUpdate:modelValue": I[0] || (I[0] = (b) => t.value = b),
2879
2879
  type: "text",
2880
2880
  onInput: a,
2881
2881
  onFocus: s,
2882
2882
  onKeydown: [
2883
- Ne(u, ["down"]),
2884
- Ne(c, ["up"]),
2885
- Ne(p, ["enter"]),
2886
- Ne(o, ["esc"]),
2887
- Ne(o, ["tab"])
2883
+ Ze(i, ["down"]),
2884
+ Ze(c, ["up"]),
2885
+ Ze(p, ["enter"]),
2886
+ Ze(o, ["esc"]),
2887
+ Ze(o, ["tab"])
2888
2888
  ]
2889
2889
  }, null, 544), [
2890
2890
  [we, t.value]
2891
2891
  ]),
2892
2892
  J(y("ul", oa, [
2893
- n.loading ? (w(), k("li", la, "Loading results...")) : (w(!0), k(ue, { key: 1 }, me(n.results, (I, x) => (w(), k("li", {
2894
- key: I,
2893
+ n.loading ? (w(), k("li", la, "Loading results...")) : (w(!0), k(ue, { key: 1 }, me(n.results, (b, x) => (w(), k("li", {
2894
+ key: b,
2895
2895
  class: ae(["autocomplete-result", { "is-active": x === n.activeItemIndex }]),
2896
- onClick: Ie((f) => r(I), ["stop"])
2897
- }, K(I), 11, aa))), 128))
2896
+ onClick: Ie((f) => r(b), ["stop"])
2897
+ }, K(b), 11, aa))), 128))
2898
2898
  ], 512), [
2899
2899
  [Ce, n.open]
2900
2900
  ]),
@@ -2916,13 +2916,13 @@ function ct(e) {
2916
2916
  return Array.isArray(e) ? e : [e];
2917
2917
  }
2918
2918
  function va(e, t, n) {
2919
- return oe(e, t, {
2919
+ return te(e, t, {
2920
2920
  ...n,
2921
2921
  immediate: !0
2922
2922
  });
2923
2923
  }
2924
- const Ye = ia ? window : void 0;
2925
- function ze(e) {
2924
+ const qe = ia ? window : void 0;
2925
+ function Ge(e) {
2926
2926
  var t;
2927
2927
  const n = E(e);
2928
2928
  return (t = n?.$el) !== null && t !== void 0 ? t : n;
@@ -2935,15 +2935,15 @@ function et(...e) {
2935
2935
  return va(() => {
2936
2936
  var o, a;
2937
2937
  return [
2938
- (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => ze(r))) !== null && o !== void 0 ? o : [Ye].filter((r) => r != null),
2938
+ (o = (a = n.value) === null || a === void 0 ? void 0 : a.map((r) => Ge(r))) !== null && o !== void 0 ? o : [qe].filter((r) => r != null),
2939
2939
  ct(E(n.value ? e[1] : e[0])),
2940
2940
  ct(V(n.value ? e[2] : e[1])),
2941
2941
  E(n.value ? e[3] : e[2])
2942
2942
  ];
2943
- }, ([o, a, r, s], l, i) => {
2943
+ }, ([o, a, r, s], l, u) => {
2944
2944
  if (!o?.length || !a?.length || !r?.length) return;
2945
- const u = da(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((h) => r.map((b) => t(p, h, b, u))));
2946
- i(() => {
2945
+ const i = da(s) ? { ...s } : s, c = o.flatMap((p) => a.flatMap((m) => r.map((I) => t(p, m, I, i))));
2946
+ u(() => {
2947
2947
  c.forEach((p) => p());
2948
2948
  });
2949
2949
  }, { flush: "post" });
@@ -2961,38 +2961,38 @@ function ma(e) {
2961
2961
  return $(() => (t.value, !!e()));
2962
2962
  }
2963
2963
  function ha(e, t, n = {}) {
2964
- const { window: o = Ye, ...a } = n;
2964
+ const { window: o = qe, ...a } = n;
2965
2965
  let r;
2966
2966
  const s = /* @__PURE__ */ ma(() => o && "MutationObserver" in o), l = () => {
2967
2967
  r && (r.disconnect(), r = void 0);
2968
- }, i = oe($(() => {
2969
- const p = ct(E(e)).map(ze).filter(ua);
2968
+ }, u = te($(() => {
2969
+ const p = ct(E(e)).map(Ge).filter(ua);
2970
2970
  return new Set(p);
2971
2971
  }), (p) => {
2972
- l(), s.value && p.size && (r = new MutationObserver(t), p.forEach((h) => r.observe(h, a)));
2972
+ l(), s.value && p.size && (r = new MutationObserver(t), p.forEach((m) => r.observe(m, a)));
2973
2973
  }, {
2974
2974
  immediate: !0,
2975
2975
  flush: "post"
2976
- }), u = () => r?.takeRecords(), c = () => {
2977
- i(), l();
2976
+ }), i = () => r?.takeRecords(), c = () => {
2977
+ u(), l();
2978
2978
  };
2979
2979
  return In(c), {
2980
2980
  isSupported: s,
2981
2981
  stop: c,
2982
- takeRecords: u
2982
+ takeRecords: i
2983
2983
  };
2984
2984
  }
2985
2985
  function ga(e, t, n = {}) {
2986
- const { window: o = Ye, document: a = o?.document, flush: r = "sync" } = n;
2986
+ const { window: o = qe, document: a = o?.document, flush: r = "sync" } = n;
2987
2987
  if (!o || !a) return fa;
2988
2988
  let s;
2989
2989
  const l = (c) => {
2990
2990
  s?.(), s = c;
2991
- }, i = Oe(() => {
2992
- const c = ze(e);
2991
+ }, u = Qe(() => {
2992
+ const c = Ge(e);
2993
2993
  if (c) {
2994
- const { stop: p } = ha(a, (h) => {
2995
- h.map((b) => [...b.removedNodes]).flat().some((b) => b === c || b.contains(c)) && t(h);
2994
+ const { stop: p } = ha(a, (m) => {
2995
+ m.map((I) => [...I.removedNodes]).flat().some((I) => I === c || I.contains(c)) && t(m);
2996
2996
  }, {
2997
2997
  window: o,
2998
2998
  childList: !0,
@@ -3000,47 +3000,47 @@ function ga(e, t, n = {}) {
3000
3000
  });
3001
3001
  l(p);
3002
3002
  }
3003
- }, { flush: r }), u = () => {
3004
- i(), l();
3003
+ }, { flush: r }), i = () => {
3004
+ u(), l();
3005
3005
  };
3006
- return In(u), u;
3006
+ return In(i), i;
3007
3007
  }
3008
3008
  // @__NO_SIDE_EFFECTS__
3009
3009
  function wa(e = {}) {
3010
3010
  var t;
3011
- const { window: n = Ye, deep: o = !0, triggerOnRemoval: a = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : n?.document, s = () => {
3012
- let u = r?.activeElement;
3011
+ const { window: n = qe, deep: o = !0, triggerOnRemoval: a = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : n?.document, s = () => {
3012
+ let i = r?.activeElement;
3013
3013
  if (o)
3014
- for (var c; u?.shadowRoot; ) u = u == null || (c = u.shadowRoot) === null || c === void 0 ? void 0 : c.activeElement;
3015
- return u;
3016
- }, l = ie(), i = () => {
3014
+ for (var c; i?.shadowRoot; ) i = i == null || (c = i.shadowRoot) === null || c === void 0 ? void 0 : c.activeElement;
3015
+ return i;
3016
+ }, l = ie(), u = () => {
3017
3017
  l.value = s();
3018
3018
  };
3019
3019
  if (n) {
3020
- const u = {
3020
+ const i = {
3021
3021
  capture: !0,
3022
3022
  passive: !0
3023
3023
  };
3024
3024
  et(n, "blur", (c) => {
3025
- c.relatedTarget === null && i();
3026
- }, u), et(n, "focus", i, u);
3025
+ c.relatedTarget === null && u();
3026
+ }, i), et(n, "focus", u, i);
3027
3027
  }
3028
- return a && ga(l, i, { document: r }), i(), l;
3028
+ return a && ga(l, u, { document: r }), u(), l;
3029
3029
  }
3030
3030
  const ya = "focusin", xa = "focusout", ba = ":focus-within";
3031
3031
  function Ia(e, t = {}) {
3032
- const { window: n = Ye } = t, o = $(() => ze(e)), a = ie(!1), r = $(() => a.value);
3032
+ const { window: n = qe } = t, o = $(() => Ge(e)), a = ie(!1), r = $(() => a.value);
3033
3033
  if (!n || !(/* @__PURE__ */ wa(t)).value) return { focused: r };
3034
3034
  const s = { passive: !0 };
3035
3035
  return et(o, ya, () => a.value = !0, s), et(o, xa, () => {
3036
- var l, i, u;
3037
- return a.value = (l = (i = o.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i, ba)) !== null && l !== void 0 ? l : !1;
3036
+ var l, u, i;
3037
+ return a.value = (l = (u = o.value) === null || u === void 0 || (i = u.matches) === null || i === void 0 ? void 0 : i.call(u, ba)) !== null && l !== void 0 ? l : !1;
3038
3038
  }, s), { focused: r };
3039
3039
  }
3040
- function ka(e, { window: t = Ye, scrollTarget: n } = {}) {
3040
+ function ka(e, { window: t = qe, scrollTarget: n } = {}) {
3041
3041
  const o = L(!1), a = () => {
3042
3042
  if (!t) return;
3043
- const r = t.document, s = ze(e);
3043
+ const r = t.document, s = Ge(e);
3044
3044
  if (!s)
3045
3045
  o.value = !1;
3046
3046
  else {
@@ -3048,8 +3048,8 @@ function ka(e, { window: t = Ye, scrollTarget: n } = {}) {
3048
3048
  o.value = l.top <= (t.innerHeight || r.documentElement.clientHeight) && l.left <= (t.innerWidth || r.documentElement.clientWidth) && l.bottom >= 0 && l.right >= 0;
3049
3049
  }
3050
3050
  };
3051
- return oe(
3052
- () => ze(e),
3051
+ return te(
3052
+ () => Ge(e),
3053
3053
  () => a(),
3054
3054
  { immediate: !0, flush: "post" }
3055
3055
  ), t && et(n || t, "scroll", a, {
@@ -3219,57 +3219,57 @@ function Aa(e) {
3219
3219
  return s.parent && (typeof s.parent == "string" ? l = document.querySelector(s.parent) : s.parent instanceof HTMLElement ? l = s.parent : l = s.parent.value), l;
3220
3220
  }, n = (s) => {
3221
3221
  const l = t(s);
3222
- let i = [];
3222
+ let u = [];
3223
3223
  if (typeof s.selectors == "string")
3224
- i = Array.from(l ? l.querySelectorAll(s.selectors) : document.querySelectorAll(s.selectors));
3224
+ u = Array.from(l ? l.querySelectorAll(s.selectors) : document.querySelectorAll(s.selectors));
3225
3225
  else if (Array.isArray(s.selectors))
3226
- for (const u of s.selectors)
3227
- u instanceof HTMLElement ? i.push(u) : i.push(u.$el);
3226
+ for (const i of s.selectors)
3227
+ i instanceof HTMLElement ? u.push(i) : u.push(i.$el);
3228
3228
  else if (s.selectors instanceof HTMLElement)
3229
- i.push(s.selectors);
3229
+ u.push(s.selectors);
3230
3230
  else if (s.selectors?.value)
3231
3231
  if (Array.isArray(s.selectors.value))
3232
- for (const u of s.selectors.value)
3233
- u instanceof HTMLElement ? i.push(u) : i.push(u.$el);
3232
+ for (const i of s.selectors.value)
3233
+ i instanceof HTMLElement ? u.push(i) : u.push(i.$el);
3234
3234
  else
3235
- i.push(s.selectors.value);
3236
- return i;
3235
+ u.push(s.selectors.value);
3236
+ return u;
3237
3237
  }, o = (s) => {
3238
3238
  const l = t(s);
3239
- let i = [];
3240
- return s.selectors ? i = n(s) : l && (i = Array.from(l.children).filter((u) => Se(u) && De(u))), i;
3239
+ let u = [];
3240
+ return s.selectors ? u = n(s) : l && (u = Array.from(l.children).filter((i) => Se(i) && De(i))), u;
3241
3241
  }, a = (s) => (l) => {
3242
- const i = Ea[l.key] || l.key.toLowerCase();
3243
- if (st.includes(i)) return;
3244
- const u = s.handlers || kn;
3245
- for (const c of Object.keys(u)) {
3246
- const [p, ...h] = c.split(".");
3247
- if (p === "keydown" && h.includes(i)) {
3248
- const b = u[c], I = h.filter((f) => st.includes(f)), x = st.some((f) => {
3249
- const m = f.charAt(0).toUpperCase() + f.slice(1);
3250
- return l.getModifierState(m);
3242
+ const u = Ea[l.key] || l.key.toLowerCase();
3243
+ if (st.includes(u)) return;
3244
+ const i = s.handlers || kn;
3245
+ for (const c of Object.keys(i)) {
3246
+ const [p, ...m] = c.split(".");
3247
+ if (p === "keydown" && m.includes(u)) {
3248
+ const I = i[c], b = m.filter((f) => st.includes(f)), x = st.some((f) => {
3249
+ const h = f.charAt(0).toUpperCase() + f.slice(1);
3250
+ return l.getModifierState(h);
3251
3251
  });
3252
- if (I.length > 0) {
3252
+ if (b.length > 0) {
3253
3253
  if (x) {
3254
3254
  for (const f of st)
3255
- if (h.includes(f)) {
3256
- const m = f.charAt(0).toUpperCase() + f.slice(1);
3257
- l.getModifierState(m) && b(l);
3255
+ if (m.includes(f)) {
3256
+ const h = f.charAt(0).toUpperCase() + f.slice(1);
3257
+ l.getModifierState(h) && I(l);
3258
3258
  }
3259
3259
  }
3260
3260
  } else
3261
- x || b(l);
3261
+ x || I(l);
3262
3262
  }
3263
3263
  }
3264
3264
  }, r = [];
3265
3265
  Ee(() => {
3266
3266
  for (const s of e) {
3267
- const l = t(s), i = o(s), u = a(s), c = l ? [l] : i;
3267
+ const l = t(s), u = o(s), i = a(s), c = l ? [l] : u;
3268
3268
  for (const p of c) {
3269
- const { focused: h } = Ia(L(p)), b = oe(h, (I) => {
3270
- I ? p.addEventListener("keydown", u) : p.removeEventListener("keydown", u);
3269
+ const { focused: m } = Ia(L(p)), I = te(m, (b) => {
3270
+ b ? p.addEventListener("keydown", i) : p.removeEventListener("keydown", i);
3271
3271
  });
3272
- r.push(b);
3272
+ r.push(I);
3273
3273
  }
3274
3274
  }
3275
3275
  }), sn(() => {
@@ -3284,7 +3284,7 @@ const Ta = {
3284
3284
  }, $a = {
3285
3285
  colspan: "5",
3286
3286
  tabindex: -1
3287
- }, Da = ["onClick", "onKeydown"], Sa = 6, ln = 7, Ra = /* @__PURE__ */ te({
3287
+ }, Da = ["onClick", "onKeydown"], Sa = 6, ln = 7, Ra = /* @__PURE__ */ ne({
3288
3288
  __name: "ADatePicker",
3289
3289
  props: {
3290
3290
  modelValue: { default: /* @__PURE__ */ new Date() },
@@ -3294,7 +3294,7 @@ const Ta = {
3294
3294
  setup(e, { expose: t }) {
3295
3295
  const n = ke(e, "modelValue"), o = L(new Date(n.value)), a = L(o.value.getMonth()), r = L(o.value.getFullYear()), s = L([]), l = fe("datepicker");
3296
3296
  Ee(async () => {
3297
- i(), await pt();
3297
+ u(), await pt();
3298
3298
  const C = document.getElementsByClassName("selectedDate");
3299
3299
  if (C.length > 0)
3300
3300
  C[0].focus();
@@ -3303,22 +3303,22 @@ const Ta = {
3303
3303
  T.length > 0 && T[0].focus();
3304
3304
  }
3305
3305
  });
3306
- const i = () => {
3306
+ const u = () => {
3307
3307
  s.value = [];
3308
3308
  const C = new Date(r.value, a.value, 1), T = C.getDay(), R = C.setDate(C.getDate() - T);
3309
3309
  for (const S of Array(43).keys())
3310
3310
  s.value.push(R + S * 864e5);
3311
3311
  };
3312
- oe([a, r], i);
3313
- const u = () => r.value -= 1, c = () => r.value += 1, p = () => {
3314
- a.value == 0 ? (a.value = 11, u()) : a.value -= 1;
3315
- }, h = () => {
3312
+ te([a, r], u);
3313
+ const i = () => r.value -= 1, c = () => r.value += 1, p = () => {
3314
+ a.value == 0 ? (a.value = 11, i()) : a.value -= 1;
3315
+ }, m = () => {
3316
3316
  a.value == 11 ? (a.value = 0, c()) : a.value += 1;
3317
- }, b = (C) => {
3317
+ }, I = (C) => {
3318
3318
  const T = /* @__PURE__ */ new Date();
3319
3319
  if (a.value === T.getMonth())
3320
3320
  return T.toDateString() === new Date(C).toDateString();
3321
- }, I = (C) => new Date(C).toDateString() === new Date(o.value).toDateString(), x = (C, T) => (C - 1) * ln + T, f = (C, T) => s.value[x(C, T)], m = (C) => {
3321
+ }, b = (C) => new Date(C).toDateString() === new Date(o.value).toDateString(), x = (C, T) => (C - 1) * ln + T, f = (C, T) => s.value[x(C, T)], h = (C) => {
3322
3322
  n.value = o.value = new Date(s.value[C]);
3323
3323
  }, g = $(() => new Date(r.value, a.value, 1).toLocaleDateString(void 0, {
3324
3324
  year: "numeric",
@@ -3331,8 +3331,8 @@ const Ta = {
3331
3331
  handlers: {
3332
3332
  ...kn,
3333
3333
  "keydown.pageup": p,
3334
- "keydown.shift.pageup": u,
3335
- "keydown.pagedown": h,
3334
+ "keydown.shift.pageup": i,
3335
+ "keydown.pagedown": m,
3336
3336
  "keydown.shift.pagedown": c,
3337
3337
  // TODO: this is a hack to override the stonecrop enter handler;
3338
3338
  // store context inside the component so that handlers can be setup consistently
@@ -3353,7 +3353,7 @@ const Ta = {
3353
3353
  y("td", {
3354
3354
  id: "next-month-btn",
3355
3355
  tabindex: -1,
3356
- onClick: h
3356
+ onClick: m
3357
3357
  }, ">")
3358
3358
  ]),
3359
3359
  T[0] || (T[0] = y("tr", { class: "days-header" }, [
@@ -3374,18 +3374,18 @@ const Ta = {
3374
3374
  spellcheck: !1,
3375
3375
  tabindex: 0,
3376
3376
  class: ae({
3377
- todaysDate: b(f(R, S)),
3378
- selectedDate: I(f(R, S))
3377
+ todaysDate: I(f(R, S)),
3378
+ selectedDate: b(f(R, S))
3379
3379
  }),
3380
- onClick: Ie((_) => m(x(R, S)), ["prevent", "stop"]),
3381
- onKeydown: Ne((_) => m(x(R, S)), ["enter"])
3380
+ onClick: Ie((O) => h(x(R, S)), ["prevent", "stop"]),
3381
+ onKeydown: Ze((O) => h(x(R, S)), ["enter"])
3382
3382
  }, K(new Date(f(R, S)).getDate()), 43, Da)), 64))
3383
3383
  ])), 64))
3384
3384
  ])
3385
3385
  ])
3386
3386
  ], 512));
3387
3387
  }
3388
- }), La = /* @__PURE__ */ $e(Ra, [["__scopeId", "data-v-056d2b5e"]]), Ha = /* @__PURE__ */ te({
3388
+ }), La = /* @__PURE__ */ $e(Ra, [["__scopeId", "data-v-056d2b5e"]]), Ha = /* @__PURE__ */ ne({
3389
3389
  __name: "CollapseButton",
3390
3390
  props: {
3391
3391
  collapsed: { type: Boolean }
@@ -3395,13 +3395,13 @@ const Ta = {
3395
3395
  class: ae(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
3396
3396
  }, "×", 2));
3397
3397
  }
3398
- }), Va = /* @__PURE__ */ $e(Ha, [["__scopeId", "data-v-6f1c1b45"]]), Pa = { class: "aform" }, Oa = {
3398
+ }), Va = /* @__PURE__ */ $e(Ha, [["__scopeId", "data-v-6f1c1b45"]]), Pa = { class: "aform" }, _a = {
3399
3399
  key: 0,
3400
3400
  class: "aform-nested-section"
3401
- }, _a = {
3401
+ }, Oa = {
3402
3402
  key: 0,
3403
3403
  class: "aform-nested-label"
3404
- }, Ba = /* @__PURE__ */ te({
3404
+ }, Ba = /* @__PURE__ */ ne({
3405
3405
  __name: "AForm",
3406
3406
  props: /* @__PURE__ */ Me({
3407
3407
  schema: {},
@@ -3413,62 +3413,66 @@ const Ta = {
3413
3413
  emits: /* @__PURE__ */ Me(["update:schema", "update:data"], ["update:data"]),
3414
3414
  setup(e, { emit: t }) {
3415
3415
  const n = t, o = ke(e, "data"), a = L({});
3416
- Oe(() => {
3417
- !e.schema || !o.value || e.schema.forEach((i) => {
3418
- "schema" in i && Array.isArray(i.schema) && i.schema.length > 0 && (!a.value[i.fieldname] && o.value[i.fieldname] ? a.value[i.fieldname] = o.value[i.fieldname] : a.value[i.fieldname] || (a.value[i.fieldname] = {}));
3419
- });
3420
- }), Oe(() => {
3421
- Object.keys(a.value).forEach((i) => {
3422
- o.value && a.value[i] !== o.value[i] && (o.value[i] = a.value[i], n("update:data", o.value));
3423
- });
3424
- }), Oe(() => {
3416
+ te(
3417
+ () => o.value,
3418
+ (i) => {
3419
+ !e.schema || !i || e.schema.forEach((c) => {
3420
+ "schema" in c && Array.isArray(c.schema) && c.schema.length > 0 && (a.value[c.fieldname] = i[c.fieldname] ?? {});
3421
+ });
3422
+ },
3423
+ { immediate: !0 }
3424
+ );
3425
+ const r = (i, c) => {
3426
+ a.value[i] = c, o.value && (o.value[i] = c, n("update:data", o.value));
3427
+ };
3428
+ Qe(() => {
3425
3429
  o.value && e.schema && e.schema.forEach((i) => {
3426
3430
  i.fieldname && o.value[i.fieldname] !== void 0 && (i.value = o.value[i.fieldname]);
3427
3431
  });
3428
3432
  });
3429
- const r = (i) => {
3430
- const u = {};
3431
- for (const [c, p] of Object.entries(i))
3432
- ["component", "fieldtype"].includes(c) || (u[c] = p), c === "rows" && (!p || Array.isArray(p) && p.length === 0) && (u.rows = o.value[i.fieldname] || []);
3433
- return u;
3434
- }, s = L([]);
3435
- Oe(() => {
3436
- e.schema && s.value.length !== e.schema.length && (s.value = e.schema.map((i, u) => $({
3433
+ const s = (i) => {
3434
+ const c = {};
3435
+ for (const [p, m] of Object.entries(i))
3436
+ ["component", "fieldtype"].includes(p) || (c[p] = m), p === "rows" && (!m || Array.isArray(m) && m.length === 0) && (c.rows = o.value[i.fieldname] || []);
3437
+ return c;
3438
+ }, l = L([]);
3439
+ Qe(() => {
3440
+ e.schema && l.value.length !== e.schema.length && (l.value = e.schema.map((i, c) => $({
3437
3441
  get() {
3438
3442
  return i.value;
3439
3443
  },
3440
- set: (c) => {
3441
- const p = e.schema[u].fieldname;
3442
- e.schema[u].value = c, p && o.value && (o.value[p] = c, n("update:data", o.value)), n("update:schema", e.schema);
3444
+ set: (p) => {
3445
+ const m = e.schema[c].fieldname;
3446
+ e.schema[c].value = p, m && o.value && (o.value[m] = p, n("update:data", o.value)), n("update:schema", e.schema);
3443
3447
  }
3444
3448
  })));
3445
3449
  });
3446
- const l = $(() => s.value);
3447
- return (i, u) => {
3448
- const c = dn("AForm", !0);
3450
+ const u = $(() => l.value);
3451
+ return (i, c) => {
3452
+ const p = dn("AForm", !0);
3449
3453
  return w(), k("form", Pa, [
3450
- (w(!0), k(ue, null, me(e.schema, (p, h) => (w(), k(ue, { key: h }, [
3451
- "schema" in p && Array.isArray(p.schema) && p.schema.length > 0 ? (w(), k("div", Oa, [
3452
- p.label ? (w(), k("h4", _a, K(p.label), 1)) : q("", !0),
3453
- dt(c, {
3454
- data: a.value[p.fieldname],
3455
- "onUpdate:data": (b) => a.value[p.fieldname] = b,
3456
- schema: p.schema,
3457
- "read-only": e.readOnly || p.readOnly
3454
+ (w(!0), k(ue, null, me(e.schema, (m, I) => (w(), k(ue, { key: I }, [
3455
+ "schema" in m && Array.isArray(m.schema) && m.schema.length > 0 ? (w(), k("div", _a, [
3456
+ m.label ? (w(), k("h4", Oa, K(m.label), 1)) : q("", !0),
3457
+ dt(p, {
3458
+ data: a.value[m.fieldname],
3459
+ "onUpdate:data": (b) => r(m.fieldname, b),
3460
+ schema: m.schema,
3461
+ "read-only": e.readOnly || m.readOnly
3458
3462
  }, null, 8, ["data", "onUpdate:data", "schema", "read-only"])
3459
- ])) : (w(), pe(We(p.component), vt({
3463
+ ])) : (w(), pe(Ue(m.component), vt({
3460
3464
  key: 1,
3461
- modelValue: l.value[h].value,
3462
- "onUpdate:modelValue": (b) => l.value[h].value = b,
3463
- schema: p,
3464
- data: o.value[p.fieldname],
3465
+ modelValue: u.value[I].value,
3466
+ "onUpdate:modelValue": (b) => u.value[I].value = b,
3467
+ schema: m,
3468
+ data: o.value[m.fieldname],
3465
3469
  "read-only": e.readOnly
3466
- }, { ref_for: !0 }, r(p)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "read-only"]))
3470
+ }, { ref_for: !0 }, s(m)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "read-only"]))
3467
3471
  ], 64))), 128))
3468
3472
  ]);
3469
3473
  };
3470
3474
  }
3471
- }), Mn = /* @__PURE__ */ $e(Ba, [["__scopeId", "data-v-06e17c5b"]]), Fa = /* @__PURE__ */ te({
3475
+ }), Mn = /* @__PURE__ */ $e(Ba, [["__scopeId", "data-v-a3cba83d"]]), Fa = /* @__PURE__ */ ne({
3472
3476
  __name: "AFieldset",
3473
3477
  props: {
3474
3478
  schema: {},
@@ -3495,7 +3499,7 @@ const Ta = {
3495
3499
  J(dt(Mn, {
3496
3500
  schema: a.value,
3497
3501
  data: o.value,
3498
- "onUpdate:data": l[0] || (l[0] = (i) => o.value = i)
3502
+ "onUpdate:data": l[0] || (l[0] = (u) => o.value = u)
3499
3503
  }, null, 8, ["schema", "data"]), [
3500
3504
  [Ce, !n.value]
3501
3505
  ])
@@ -3505,7 +3509,7 @@ const Ta = {
3505
3509
  }), Za = /* @__PURE__ */ $e(Fa, [["__scopeId", "data-v-18fd6c61"]]), Na = { class: "aform_form-element aform_file-attach aform__grid--full" }, Ua = {
3506
3510
  key: 0,
3507
3511
  class: "aform_file-attach-feedback"
3508
- }, Wa = ["disabled"], Ga = /* @__PURE__ */ te({
3512
+ }, Wa = ["disabled"], Ga = /* @__PURE__ */ ne({
3509
3513
  __name: "AFileAttach",
3510
3514
  props: {
3511
3515
  label: {}
@@ -3518,24 +3522,24 @@ const Ta = {
3518
3522
  l[2] || (l[2] = Dt(" You have selected: ", -1)),
3519
3523
  y("b", null, K(r.value), 1)
3520
3524
  ]),
3521
- (w(!0), k(ue, null, me(V(t), (i) => (w(), k("li", {
3522
- key: i.name
3523
- }, K(i.name), 1))), 128))
3525
+ (w(!0), k(ue, null, me(V(t), (u) => (w(), k("li", {
3526
+ key: u.name
3527
+ }, K(u.name), 1))), 128))
3524
3528
  ])) : q("", !0),
3525
3529
  y("button", {
3526
3530
  type: "button",
3527
3531
  class: "aform_form-btn",
3528
- onClick: l[0] || (l[0] = (i) => V(n)())
3532
+ onClick: l[0] || (l[0] = (u) => V(n)())
3529
3533
  }, K(e.label), 1),
3530
3534
  y("button", {
3531
3535
  type: "button",
3532
3536
  disabled: !V(t),
3533
3537
  class: "aform_form-btn",
3534
- onClick: l[1] || (l[1] = (i) => V(o)())
3538
+ onClick: l[1] || (l[1] = (u) => V(o)())
3535
3539
  }, "Reset", 8, Wa)
3536
3540
  ]));
3537
3541
  }
3538
- }), za = /* @__PURE__ */ $e(Ga, [["__scopeId", "data-v-b700734f"]]), qa = { class: "aform_form-element" }, Ya = ["id", "disabled", "required"], Xa = ["for"], ja = ["innerHTML"], Ja = /* @__PURE__ */ te({
3542
+ }), za = /* @__PURE__ */ $e(Ga, [["__scopeId", "data-v-b700734f"]]), qa = { class: "aform_form-element" }, Ya = ["id", "disabled", "required"], Xa = ["for"], ja = ["innerHTML"], Ja = /* @__PURE__ */ ne({
3539
3543
  __name: "ANumericInput",
3540
3544
  props: /* @__PURE__ */ Me({
3541
3545
  schema: {},
@@ -3631,7 +3635,7 @@ function ns(e, t) {
3631
3635
  } else
3632
3636
  e.value = n;
3633
3637
  }
3634
- const os = { class: "aform_form-element" }, ls = ["id", "disabled", "maxlength", "required"], as = ["for"], ss = ["innerHTML"], rs = /* @__PURE__ */ te({
3638
+ const os = { class: "aform_form-element" }, ls = ["id", "disabled", "maxlength", "required"], as = ["for"], ss = ["innerHTML"], rs = /* @__PURE__ */ ne({
3635
3639
  __name: "ATextInput",
3636
3640
  props: /* @__PURE__ */ Me({
3637
3641
  schema: {},
@@ -3675,7 +3679,7 @@ const os = { class: "aform_form-element" }, ls = ["id", "disabled", "maxlength",
3675
3679
  }), is = { class: "login-container" }, us = { class: "account-container" }, cs = { class: "account-header" }, ds = { id: "account-title" }, fs = { id: "account-subtitle" }, vs = { class: "login-form-container" }, ps = { class: "login-form-email aform_form-element" }, ms = ["disabled"], hs = { class: "login-form-password aform_form-element" }, gs = ["disabled"], ws = ["disabled"], ys = {
3676
3680
  key: 0,
3677
3681
  class: "material-symbols-outlined loading-icon"
3678
- }, xs = /* @__PURE__ */ te({
3682
+ }, xs = /* @__PURE__ */ ne({
3679
3683
  __name: "Login",
3680
3684
  props: {
3681
3685
  headerTitle: { default: "Login" },
@@ -3684,14 +3688,14 @@ const os = { class: "aform_form-element" }, ls = ["id", "disabled", "maxlength",
3684
3688
  emits: ["loginFailed", "loginSuccess"],
3685
3689
  setup(e, { emit: t }) {
3686
3690
  const n = t, o = L(""), a = L(""), r = L(!1), s = L(!1);
3687
- function l(i) {
3688
- if (i.preventDefault(), r.value = !0, s.value) {
3691
+ function l(u) {
3692
+ if (u.preventDefault(), r.value = !0, s.value) {
3689
3693
  r.value = !1, n("loginFailed");
3690
3694
  return;
3691
3695
  }
3692
3696
  r.value = !1, n("loginSuccess");
3693
3697
  }
3694
- return (i, u) => (w(), k("div", is, [
3698
+ return (u, i) => (w(), k("div", is, [
3695
3699
  y("div", null, [
3696
3700
  y("div", us, [
3697
3701
  y("div", cs, [
@@ -3701,14 +3705,14 @@ const os = { class: "aform_form-element" }, ls = ["id", "disabled", "maxlength",
3701
3705
  y("form", { onSubmit: l }, [
3702
3706
  y("div", vs, [
3703
3707
  y("div", ps, [
3704
- u[2] || (u[2] = y("label", {
3708
+ i[2] || (i[2] = y("label", {
3705
3709
  id: "login-email",
3706
3710
  for: "email",
3707
3711
  class: "aform_field-label"
3708
3712
  }, "Email", -1)),
3709
3713
  J(y("input", {
3710
3714
  id: "email",
3711
- "onUpdate:modelValue": u[0] || (u[0] = (c) => o.value = c),
3715
+ "onUpdate:modelValue": i[0] || (i[0] = (c) => o.value = c),
3712
3716
  class: "aform_input-field",
3713
3717
  name: "email",
3714
3718
  placeholder: "name@example.com",
@@ -3722,14 +3726,14 @@ const os = { class: "aform_form-element" }, ls = ["id", "disabled", "maxlength",
3722
3726
  ])
3723
3727
  ]),
3724
3728
  y("div", hs, [
3725
- u[3] || (u[3] = y("label", {
3729
+ i[3] || (i[3] = y("label", {
3726
3730
  id: "login-password",
3727
3731
  for: "password",
3728
3732
  class: "aform_field-label"
3729
3733
  }, "Password", -1)),
3730
3734
  J(y("input", {
3731
3735
  id: "password",
3732
- "onUpdate:modelValue": u[1] || (u[1] = (c) => a.value = c),
3736
+ "onUpdate:modelValue": i[1] || (i[1] = (c) => a.value = c),
3733
3737
  class: "aform_input-field",
3734
3738
  name: "password",
3735
3739
  type: "password",
@@ -3744,11 +3748,11 @@ const os = { class: "aform_form-element" }, ls = ["id", "disabled", "maxlength",
3744
3748
  onClick: l
3745
3749
  }, [
3746
3750
  r.value ? (w(), k("span", ys, "progress_activity")) : q("", !0),
3747
- u[4] || (u[4] = y("span", { id: "login-form-button" }, "Login", -1))
3751
+ i[4] || (i[4] = y("span", { id: "login-form-button" }, "Login", -1))
3748
3752
  ], 8, ws)
3749
3753
  ])
3750
3754
  ], 32),
3751
- u[5] || (u[5] = y("button", { class: "btn" }, [
3755
+ i[5] || (i[5] = y("button", { class: "btn" }, [
3752
3756
  y("span", { id: "forgot-password-button" }, "Forgot password?")
3753
3757
  ], -1))
3754
3758
  ])
@@ -3757,11 +3761,11 @@ const os = { class: "aform_form-element" }, ls = ["id", "disabled", "maxlength",
3757
3761
  }
3758
3762
  }), ks = /* @__PURE__ */ $e(xs, [["__scopeId", "data-v-d9ffd0a7"]]);
3759
3763
  function Ms(e) {
3760
- e.use(Dl), e.component("ACheckbox", Ol), e.component("ACombobox", _l), e.component("ADate", Ul), e.component("ADropdown", ra), e.component("ADatePicker", La), e.component("AFieldset", Za), e.component("AFileAttach", za), e.component("AForm", Mn), e.component("ANumericInput", Ja), e.component("ATextInput", rs);
3764
+ e.use(Dl), e.component("ACheckbox", _l), e.component("ACombobox", Ol), e.component("ADate", Ul), e.component("ADropdown", ra), e.component("ADatePicker", La), e.component("AFieldset", Za), e.component("AFileAttach", za), e.component("AForm", Mn), e.component("ANumericInput", Ja), e.component("ATextInput", rs);
3761
3765
  }
3762
3766
  export {
3763
- Ol as ACheckbox,
3764
- _l as AComboBox,
3767
+ _l as ACheckbox,
3768
+ Ol as AComboBox,
3765
3769
  Ul as ADate,
3766
3770
  La as ADatePicker,
3767
3771
  ra as ADropdown,