@stonecrop/aform 0.11.4 → 0.11.6

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 oe, useTemplateRef as fe, ref as R, computed as T, openBlock as m, createElementBlock as k, unref as V, normalizeClass as se, normalizeStyle as be, createBlock as ve, resolveDynamicComponent as Oe, mergeProps as dt, toDisplayString as N, createElementVNode as w, withModifiers as Ie, withDirectives as K, Fragment as X, renderList as pe, vShow as Ce, createCommentVNode as Y, renderSlot as he, createTextVNode as Dt, onMounted as Ee, watch as ne, onBeforeUnmount as an, nextTick as ft, toValue as E, shallowRef as ue, getCurrentScope as vt, onScopeDispose as pt, reactive as sn, vModelText as we, vModelCheckbox as rn, vModelSelect as In, getCurrentInstance as mt, watchEffect as ht, useCssVars as Mn, onUnmounted as Cn, useModel as Me, createVNode as At, withCtx as $t, mergeModels as xe, isRef as En, toRefs as An, customRef as St, toRef as un, readonly as Rt, resolveComponent as $n, withKeys as Ne } from "vue";
1
+ import { defineComponent as oe, useTemplateRef as fe, ref as R, computed as T, openBlock as h, createElementBlock as x, unref as V, normalizeClass as se, normalizeStyle as be, createBlock as ve, resolveDynamicComponent as Oe, mergeProps as dt, toDisplayString as N, createElementVNode as w, withModifiers as Ie, withDirectives as K, Fragment as X, renderList as pe, vShow as Ce, createCommentVNode as Y, renderSlot as he, createTextVNode as Dt, onMounted as Ee, watch as ne, onBeforeUnmount as an, nextTick as ft, toValue as E, shallowRef as ue, getCurrentScope as vt, onScopeDispose as pt, reactive as sn, vModelText as we, vModelCheckbox as rn, vModelSelect as In, getCurrentInstance as mt, watchEffect as ht, useCssVars as Mn, onUnmounted as Cn, useModel as Me, createVNode as At, withCtx as $t, mergeModels as xe, isRef as En, toRefs as An, customRef as St, toRef as un, readonly as Rt, resolveComponent as $n, withKeys as Ne } from "vue";
2
2
  import { defineStore as Tn } from "pinia";
3
3
  import './assets/index.css';function cn(e, t) {
4
4
  return vt() ? (pt(e, t), !0) : !1;
@@ -37,28 +37,28 @@ function Qe(...e) {
37
37
  ];
38
38
  }, ([n, a, r, s], l, u) => {
39
39
  if (!n?.length || !a?.length || !r?.length) return;
40
- const i = Ln(s) ? { ...s } : s, d = n.flatMap((p) => a.flatMap((y) => r.map((g) => t(p, y, g, i))));
40
+ const i = Ln(s) ? { ...s } : s, d = n.flatMap((p) => a.flatMap((y) => r.map((m) => t(p, y, m, i))));
41
41
  u(() => {
42
42
  d.forEach((p) => p());
43
43
  });
44
44
  }, { flush: "post" });
45
45
  }
46
46
  // @__NO_SIDE_EFFECTS__
47
- function _n() {
47
+ function Pn() {
48
48
  const e = ue(!1), t = mt();
49
49
  return t && Ee(() => {
50
50
  e.value = !0;
51
51
  }, t), e;
52
52
  }
53
53
  // @__NO_SIDE_EFFECTS__
54
- function Pn(e) {
55
- const t = /* @__PURE__ */ _n();
54
+ function _n(e) {
55
+ const t = /* @__PURE__ */ Pn();
56
56
  return T(() => (t.value, !!e()));
57
57
  }
58
58
  function On(e, t, o = {}) {
59
59
  const { window: n = ze, ...a } = o;
60
60
  let r;
61
- const s = /* @__PURE__ */ Pn(() => n && "MutationObserver" in n), l = () => {
61
+ const s = /* @__PURE__ */ _n(() => n && "MutationObserver" in n), l = () => {
62
62
  r && (r.disconnect(), r = void 0);
63
63
  }, u = ne(T(() => {
64
64
  const p = st(E(e)).map(We).filter(Sn);
@@ -87,7 +87,7 @@ function Bn(e, t, o = {}) {
87
87
  const d = We(e);
88
88
  if (d) {
89
89
  const { stop: p } = On(a, (y) => {
90
- y.map((g) => [...g.removedNodes]).flat().some((g) => g === d || g.contains(d)) && t(y);
90
+ y.map((m) => [...m.removedNodes]).flat().some((m) => m === d || m.contains(d)) && t(y);
91
91
  }, {
92
92
  window: n,
93
93
  childList: !0,
@@ -229,13 +229,13 @@ const Ae = (e) => {
229
229
  return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!$e(t) || !Ae(t)) ? Vt(t) : t;
230
230
  }, qt = (e) => {
231
231
  const t = e.target;
232
- return _t(t);
233
- }, _t = (e) => {
232
+ return Pt(t);
233
+ }, Pt = (e) => {
234
234
  let t;
235
- return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!$e(t) || !Ae(t)) ? _t(t) : t;
235
+ return e.nextElementSibling ? t = e.nextElementSibling : t = e.parentElement?.nextElementSibling?.firstElementChild, t && (!$e(t) || !Ae(t)) ? Pt(t) : t;
236
236
  }, Yt = (e) => {
237
237
  const t = e.target.parentElement?.firstElementChild;
238
- return t && (!$e(t) || !Ae(t)) ? _t(t) : t;
238
+ return t && (!$e(t) || !Ae(t)) ? Pt(t) : t;
239
239
  }, Xt = (e) => {
240
240
  const t = e.target.parentElement?.lastElementChild;
241
241
  return t && (!$e(t) || !Ae(t)) ? Vt(t) : t;
@@ -308,7 +308,7 @@ const Ae = (e) => {
308
308
  t && (e.preventDefault(), e.stopPropagation(), t.focus());
309
309
  }
310
310
  };
311
- function Pt(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;
@@ -340,20 +340,20 @@ function Pt(e) {
340
340
  for (const d of Object.keys(i)) {
341
341
  const [p, ...y] = d.split(".");
342
342
  if (p === "keydown" && y.includes(u)) {
343
- const g = i[d], x = y.filter((f) => nt.includes(f)), b = nt.some((f) => {
344
- const h = f.charAt(0).toUpperCase() + f.slice(1);
345
- return l.getModifierState(h);
343
+ const m = i[d], I = y.filter((f) => nt.includes(f)), b = nt.some((f) => {
344
+ const g = f.charAt(0).toUpperCase() + f.slice(1);
345
+ return l.getModifierState(g);
346
346
  });
347
- if (x.length > 0) {
347
+ if (I.length > 0) {
348
348
  if (b) {
349
349
  for (const f of nt)
350
350
  if (y.includes(f)) {
351
- const h = f.charAt(0).toUpperCase() + f.slice(1);
352
- l.getModifierState(h) && g(l);
351
+ const g = f.charAt(0).toUpperCase() + f.slice(1);
352
+ l.getModifierState(g) && m(l);
353
353
  }
354
354
  }
355
355
  } else
356
- b || g(l);
356
+ b || m(l);
357
357
  }
358
358
  }
359
359
  }, r = [];
@@ -361,10 +361,10 @@ function Pt(e) {
361
361
  for (const s of e) {
362
362
  const l = t(s), u = n(s), i = a(s), d = l ? [l] : u;
363
363
  for (const p of d) {
364
- const { focused: y } = Wn(R(p)), g = ne(y, (x) => {
365
- x ? p.addEventListener("keydown", i) : p.removeEventListener("keydown", i);
364
+ const { focused: y } = Wn(R(p)), m = ne(y, (I) => {
365
+ I ? p.addEventListener("keydown", i) : p.removeEventListener("keydown", i);
366
366
  });
367
- r.push(g);
367
+ r.push(m);
368
368
  }
369
369
  }
370
370
  }), an(() => {
@@ -377,14 +377,14 @@ function Ot(e, t) {
377
377
  }
378
378
  const dn = typeof window < "u" && typeof document < "u";
379
379
  typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
380
- const Xn = (e) => e != null, jn = Object.prototype.toString, Jn = (e) => jn.call(e) === "[object Object]", Pe = () => {
380
+ const Xn = (e) => e != null, jn = Object.prototype.toString, Jn = (e) => jn.call(e) === "[object Object]", _e = () => {
381
381
  };
382
382
  function Qn(...e) {
383
383
  if (e.length !== 1) return un(...e);
384
384
  const t = e[0];
385
385
  return typeof t == "function" ? Rt(St(() => ({
386
386
  get: t,
387
- set: Pe
387
+ set: _e
388
388
  }))) : R(t);
389
389
  }
390
390
  function Kn(e, t) {
@@ -400,9 +400,9 @@ function Kn(e, t) {
400
400
  return o;
401
401
  }
402
402
  function eo(e, t = {}) {
403
- let o, n, a = Pe;
403
+ let o, n, a = _e;
404
404
  const r = (l) => {
405
- clearTimeout(l), a(), a = Pe;
405
+ clearTimeout(l), a(), a = _e;
406
406
  };
407
407
  let s;
408
408
  return (l) => {
@@ -480,7 +480,7 @@ function He(...e) {
480
480
  ];
481
481
  }, ([n, a, r, s], l, u) => {
482
482
  if (!n?.length || !a?.length || !r?.length) return;
483
- const i = Jn(s) ? { ...s } : s, d = n.flatMap((p) => a.flatMap((y) => r.map((g) => t(p, y, g, i))));
483
+ const i = Jn(s) ? { ...s } : s, d = n.flatMap((p) => a.flatMap((y) => r.map((m) => t(p, y, m, i))));
484
484
  u(() => {
485
485
  d.forEach((p) => p());
486
486
  });
@@ -489,29 +489,29 @@ function He(...e) {
489
489
  function Tt(e, t, o = {}) {
490
490
  const { window: n = et, ignore: a = [], capture: r = !0, detectIframe: s = !1, controls: l = !1 } = o;
491
491
  if (!n) return l ? {
492
- stop: Pe,
493
- cancel: Pe,
494
- trigger: Pe
495
- } : Pe;
492
+ stop: _e,
493
+ cancel: _e,
494
+ trigger: _e
495
+ } : _e;
496
496
  let u = !0;
497
- const i = (f) => E(a).some((h) => {
498
- if (typeof h == "string") return Array.from(n.document.querySelectorAll(h)).some((I) => I === f.target || f.composedPath().includes(I));
497
+ const i = (f) => E(a).some((g) => {
498
+ if (typeof g == "string") return Array.from(n.document.querySelectorAll(g)).some((k) => k === f.target || f.composedPath().includes(k));
499
499
  {
500
- const I = ye(h);
501
- return I && (f.target === I || f.composedPath().includes(I));
500
+ const k = ye(g);
501
+ return k && (f.target === k || f.composedPath().includes(k));
502
502
  }
503
503
  });
504
504
  function d(f) {
505
- const h = E(f);
506
- return h && h.$.subTree.shapeFlag === 16;
505
+ const g = E(f);
506
+ return g && g.$.subTree.shapeFlag === 16;
507
507
  }
508
- function p(f, h) {
509
- const I = E(f), C = I.$.subTree && I.$.subTree.children;
510
- return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.el === h.target || h.composedPath().includes($.el));
508
+ function p(f, g) {
509
+ const k = E(f), C = k.$.subTree && k.$.subTree.children;
510
+ return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.el === g.target || g.composedPath().includes($.el));
511
511
  }
512
512
  const y = (f) => {
513
- const h = ye(e);
514
- if (f.target != null && !(!(h instanceof Element) && d(e) && p(e, f)) && !(!h || h === f.target || f.composedPath().includes(h))) {
513
+ const g = ye(e);
514
+ if (f.target != null && !(!(g instanceof Element) && d(e) && p(e, f)) && !(!g || g === f.target || f.composedPath().includes(g))) {
515
515
  if ("detail" in f && f.detail === 0 && (u = !i(f)), !u) {
516
516
  u = !0;
517
517
  return;
@@ -519,28 +519,28 @@ function Tt(e, t, o = {}) {
519
519
  t(f);
520
520
  }
521
521
  };
522
- let g = !1;
523
- const x = [
522
+ let m = !1;
523
+ const I = [
524
524
  He(n, "click", (f) => {
525
- g || (g = !0, setTimeout(() => {
526
- g = !1;
525
+ m || (m = !0, setTimeout(() => {
526
+ m = !1;
527
527
  }, 0), y(f));
528
528
  }, {
529
529
  passive: !0,
530
530
  capture: r
531
531
  }),
532
532
  He(n, "pointerdown", (f) => {
533
- const h = ye(e);
534
- u = !i(f) && !!(h && !f.composedPath().includes(h));
533
+ const g = ye(e);
534
+ u = !i(f) && !!(g && !f.composedPath().includes(g));
535
535
  }, { passive: !0 }),
536
536
  s && He(n, "blur", (f) => {
537
537
  setTimeout(() => {
538
- var h;
539
- const I = ye(e);
540
- ((h = n.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !I?.contains(n.document.activeElement) && t(f);
538
+ var g;
539
+ const k = ye(e);
540
+ ((g = n.document.activeElement) === null || g === void 0 ? void 0 : g.tagName) === "IFRAME" && !k?.contains(n.document.activeElement) && t(f);
541
541
  }, 0);
542
542
  }, { passive: !0 })
543
- ].filter(Boolean), b = () => x.forEach((f) => f());
543
+ ].filter(Boolean), b = () => I.forEach((f) => f());
544
544
  return l ? {
545
545
  stop: b,
546
546
  cancel: () => {
@@ -595,7 +595,7 @@ function ro(e) {
595
595
  }
596
596
  function wt(e, t = {}) {
597
597
  var o, n, a, r;
598
- const { pointerTypes: s, preventDefault: l, stopPropagation: u, exact: i, onMove: d, onEnd: p, onStart: y, initialValue: g, axis: x = "both", draggingElement: b = et, containerElement: f, handle: h = e, buttons: I = [0], restrictInView: C, autoScroll: $ = !1 } = t, L = R((o = E(g)) !== null && o !== void 0 ? o : {
598
+ const { pointerTypes: s, preventDefault: l, stopPropagation: u, exact: i, onMove: d, onEnd: p, onStart: y, initialValue: m, axis: I = "both", draggingElement: b = et, containerElement: f, handle: g = e, buttons: k = [0], restrictInView: C, autoScroll: $ = !1 } = t, L = R((o = E(m)) !== null && o !== void 0 ? o : {
599
599
  x: 0,
600
600
  y: 0
601
601
  }), S = R(), O = (D) => s ? s.includes(D.pointerType) : !0, W = (D) => {
@@ -605,9 +605,9 @@ function wt(e, t = {}) {
605
605
  margin: (a = E(me.margin)) !== null && a !== void 0 ? a : ot.margin,
606
606
  direction: (r = me.direction) !== null && r !== void 0 ? r : ot.direction
607
607
  } : ot, J = (D) => typeof D == "number" ? [D, D] : [D.x, D.y], ge = (D, F, G) => {
608
- const { clientWidth: Q, clientHeight: q, scrollLeft: re, scrollTop: ke, scrollWidth: Le, scrollHeight: P } = D, [B, z] = J(j.margin), [ee, le] = J(j.speed);
608
+ const { clientWidth: Q, clientHeight: q, scrollLeft: re, scrollTop: ke, scrollWidth: Le, scrollHeight: _ } = D, [B, z] = J(j.margin), [ee, le] = J(j.speed);
609
609
  let te = 0, ie = 0;
610
- (j.direction === "x" || j.direction === "both") && (G.x < B && re > 0 ? te = -ee : G.x + F.width > Q - B && re < Le - Q && (te = ee)), (j.direction === "y" || j.direction === "both") && (G.y < z && ke > 0 ? ie = -le : G.y + F.height > q - z && ke < P - q && (ie = le)), (te || ie) && D.scrollBy({
610
+ (j.direction === "x" || j.direction === "both") && (G.x < B && re > 0 ? te = -ee : G.x + F.width > Q - B && re < Le - Q && (te = ee)), (j.direction === "y" || j.direction === "both") && (G.y < z && ke > 0 ? ie = -le : G.y + F.height > q - z && ke < _ - q && (ie = le)), (te || ie) && D.scrollBy({
611
611
  left: te,
612
612
  top: ie,
613
613
  behavior: "auto"
@@ -641,7 +641,7 @@ function wt(e, t = {}) {
641
641
  E($) && ne(L, Xe);
642
642
  const Fe = (D) => {
643
643
  var F;
644
- if (!E(I).includes(D.button) || E(t.disabled) || !O(D) || E(i) && D.target !== E(e)) return;
644
+ if (!E(k).includes(D.button) || E(t.disabled) || !O(D) || E(i) && D.target !== E(e)) return;
645
645
  const G = E(f), Q = G == null || (F = G.getBoundingClientRect) === null || F === void 0 ? void 0 : F.call(G), q = E(e).getBoundingClientRect(), re = {
646
646
  x: D.clientX - (G ? q.left - Q.left + ($ ? 0 : G.scrollLeft) : q.left),
647
647
  y: D.clientY - (G ? q.top - Q.top + ($ ? 0 : G.scrollTop) : q.top)
@@ -653,15 +653,15 @@ function wt(e, t = {}) {
653
653
  F instanceof HTMLElement && ro(F);
654
654
  const G = E(e).getBoundingClientRect();
655
655
  let { x: Q, y: q } = L.value;
656
- if ((x === "x" || x === "both") && (Q = D.clientX - S.value.x, F && (Q = Math.min(Math.max(0, Q), F.scrollWidth - G.width))), (x === "y" || x === "both") && (q = D.clientY - S.value.y, F && (q = Math.min(Math.max(0, q), F.scrollHeight - G.height))), E($) && F && (de === null && ge(F, G, {
656
+ if ((I === "x" || I === "both") && (Q = D.clientX - S.value.x, F && (Q = Math.min(Math.max(0, Q), F.scrollWidth - G.width))), (I === "y" || I === "both") && (q = D.clientY - S.value.y, F && (q = Math.min(Math.max(0, q), F.scrollHeight - G.height))), E($) && F && (de === null && ge(F, G, {
657
657
  x: Q,
658
658
  y: q
659
659
  }), Q += F.scrollLeft, q += F.scrollTop), F && (C || $)) {
660
- if (x !== "y") {
660
+ if (I !== "y") {
661
661
  const re = Q - F.scrollLeft;
662
662
  re < 0 ? Q = F.scrollLeft : re > F.clientWidth - G.width && (Q = F.clientWidth - G.width + F.scrollLeft);
663
663
  }
664
- if (x !== "x") {
664
+ if (I !== "x") {
665
665
  const re = q - F.scrollTop;
666
666
  re < 0 ? q = F.scrollTop : re > F.clientHeight - G.height && (q = F.clientHeight - G.height + F.scrollTop);
667
667
  }
@@ -681,7 +681,7 @@ function wt(e, t = {}) {
681
681
  passive: !E(l)
682
682
  };
683
683
  };
684
- He(h, "pointerdown", Fe, D), He(b, "pointermove", je, D), He(b, "pointerup", Ze, D);
684
+ He(g, "pointerdown", Fe, D), He(b, "pointermove", je, D), He(b, "pointerup", Ze, D);
685
685
  }
686
686
  return {
687
687
  ...oo(L),
@@ -718,21 +718,21 @@ function ct(e, t, o = {}) {
718
718
  stop: i
719
719
  };
720
720
  }
721
- function _e(e, t = {}) {
722
- const { reset: o = !0, windowResize: n = !0, windowScroll: a = !0, immediate: r = !0, updateTiming: s = "sync" } = t, l = ue(0), u = ue(0), i = ue(0), d = ue(0), p = ue(0), y = ue(0), g = ue(0), x = ue(0);
721
+ function Pe(e, t = {}) {
722
+ const { reset: o = !0, windowResize: n = !0, windowScroll: a = !0, immediate: r = !0, updateTiming: s = "sync" } = t, l = ue(0), u = ue(0), i = ue(0), d = ue(0), p = ue(0), y = ue(0), m = ue(0), I = ue(0);
723
723
  function b() {
724
- const h = ye(e);
725
- if (!h) {
726
- o && (l.value = 0, u.value = 0, i.value = 0, d.value = 0, p.value = 0, y.value = 0, g.value = 0, x.value = 0);
724
+ const g = ye(e);
725
+ if (!g) {
726
+ o && (l.value = 0, u.value = 0, i.value = 0, d.value = 0, p.value = 0, y.value = 0, m.value = 0, I.value = 0);
727
727
  return;
728
728
  }
729
- const I = h.getBoundingClientRect();
730
- l.value = I.height, u.value = I.bottom, i.value = I.left, d.value = I.right, p.value = I.top, y.value = I.width, g.value = I.x, x.value = I.y;
729
+ const k = g.getBoundingClientRect();
730
+ l.value = k.height, u.value = k.bottom, i.value = k.left, d.value = k.right, p.value = k.top, y.value = k.width, m.value = k.x, I.value = k.y;
731
731
  }
732
732
  function f() {
733
733
  s === "sync" ? b() : s === "next-frame" && requestAnimationFrame(() => b());
734
734
  }
735
- return ct(e, f), ne(() => ye(e), (h) => !h && f()), vn(e, f, { attributeFilter: ["style", "class"] }), a && He("scroll", f, {
735
+ return ct(e, f), ne(() => ye(e), (g) => !g && f()), vn(e, f, { attributeFilter: ["style", "class"] }), a && He("scroll", f, {
736
736
  capture: !0,
737
737
  passive: !0
738
738
  }), n && He("resize", f, { passive: !0 }), lo(() => {
@@ -744,8 +744,8 @@ function _e(e, t = {}) {
744
744
  right: d,
745
745
  top: p,
746
746
  width: y,
747
- x: g,
748
- y: x,
747
+ x: m,
748
+ y: I,
749
749
  update: f
750
750
  };
751
751
  }
@@ -800,13 +800,13 @@ const uo = (e) => {
800
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
- })), g = T(() => ({
803
+ })), m = T(() => ({
804
804
  "sticky-column": e.pinned,
805
805
  "cell-modified": r.value
806
- })), x = () => {
806
+ })), I = () => {
807
807
  f(), b();
808
808
  }, b = () => {
809
- const { left: S, bottom: O, width: W, height: me } = _e(o);
809
+ const { left: S, bottom: O, width: W, height: me } = Pe(o);
810
810
  s.mask, s.modalComponent && e.store.$patch((j) => {
811
811
  j.modal.visible = !0, j.modal.colIndex = e.colIndex, j.modal.rowIndex = e.rowIndex, j.modal.left = S, j.modal.bottom = O, j.modal.width = W, j.modal.height = me, j.modal.cell = o.value, typeof s.modalComponent == "function" ? j.modal.component = s.modalComponent({ table: j.table, row: l, column: s }) : j.modal.component = s.modalComponent, j.modal.componentProps = s.modalComponentExtraProps;
812
812
  });
@@ -823,7 +823,7 @@ const uo = (e) => {
823
823
  typeof e.addNavigation == "object" && (S = {
824
824
  ...S,
825
825
  ...e.addNavigation
826
- }), Pt([
826
+ }), _t([
827
827
  {
828
828
  selectors: o,
829
829
  handlers: S
@@ -840,9 +840,9 @@ const uo = (e) => {
840
840
  } catch {
841
841
  }
842
842
  }
843
- }, h = () => {
843
+ }, g = () => {
844
844
  o.value && (a.value = o.value.textContent, f());
845
- }, I = () => {
845
+ }, k = () => {
846
846
  try {
847
847
  const S = window.getSelection();
848
848
  if (S && S.rangeCount > 0 && o.value) {
@@ -878,14 +878,14 @@ const uo = (e) => {
878
878
  const O = S.target;
879
879
  if (O.textContent === a.value)
880
880
  return;
881
- const W = I();
881
+ const W = k();
882
882
  a.value = O.textContent, s.format ? (r.value = O.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, n), e.store.setCellText(e.colIndex, e.rowIndex, O.textContent)) : (r.value = O.textContent !== n, e.store.setCellData(e.colIndex, e.rowIndex, O.textContent)), ft().then(() => {
883
883
  C(W);
884
884
  });
885
885
  }, L = /* @__PURE__ */ no($, e.debounce);
886
886
  return t({
887
887
  currentData: a
888
- }), (S, O) => (m(), k("td", {
888
+ }), (S, O) => (h(), x("td", {
889
889
  ref: "cell",
890
890
  "data-colindex": e.colIndex,
891
891
  "data-rowindex": e.rowIndex,
@@ -894,20 +894,20 @@ const uo = (e) => {
894
894
  tabindex: e.tabIndex,
895
895
  spellcheck: !1,
896
896
  style: be(y.value),
897
- class: se(["atable-cell", g.value]),
898
- onFocus: h,
897
+ class: se(["atable-cell", m.value]),
898
+ onFocus: g,
899
899
  onPaste: $,
900
900
  onInput: O[0] || (O[0] = //@ts-ignore
901
901
  (...W) => V(L) && V(L)(...W)),
902
- onClick: x
902
+ onClick: I
903
903
  }, [
904
- V(s).cellComponent ? (m(), ve(Oe(V(s).cellComponent), dt({
904
+ V(s).cellComponent ? (h(), ve(Oe(V(s).cellComponent), dt({
905
905
  key: 0,
906
906
  value: d.value
907
- }, V(s).cellComponentProps), null, 16, ["value"])) : p.value ? (m(), k("span", {
907
+ }, V(s).cellComponentProps), null, 16, ["value"])) : p.value ? (h(), x("span", {
908
908
  key: 1,
909
909
  innerHTML: d.value
910
- }, null, 8, vo)) : (m(), k("span", po, N(d.value), 1))
910
+ }, null, 8, vo)) : (h(), x("span", po, N(d.value), 1))
911
911
  ], 46, fo));
912
912
  }
913
913
  }), ho = ["tabindex"], go = ["tabindex"], wo = ["colspan"], yo = /* @__PURE__ */ oe({
@@ -926,14 +926,14 @@ const uo = (e) => {
926
926
  a.stopPropagation(), a.preventDefault(), e.store.toggleRowExpand(e.rowIndex);
927
927
  }
928
928
  };
929
- typeof e.addNavigation == "object" && Object.assign(n, e.addNavigation), Pt([
929
+ typeof e.addNavigation == "object" && Object.assign(n, e.addNavigation), _t([
930
930
  {
931
931
  selectors: t,
932
932
  handlers: n
933
933
  }
934
934
  ]);
935
935
  }
936
- return (n, a) => (m(), k(X, null, [
936
+ return (n, a) => (h(), x(X, null, [
937
937
  w("tr", dt(n.$attrs, {
938
938
  ref: "rowEl",
939
939
  tabindex: e.tabIndex,
@@ -946,7 +946,7 @@ const uo = (e) => {
946
946
  }, N(o.value), 1),
947
947
  he(n.$slots, "row", {}, void 0, !0)
948
948
  ], 16, ho),
949
- e.store.display[e.rowIndex].expanded ? (m(), k("tr", {
949
+ e.store.display[e.rowIndex].expanded ? (h(), x("tr", {
950
950
  key: 0,
951
951
  ref: "rowExpanded",
952
952
  tabindex: e.tabIndex,
@@ -988,15 +988,15 @@ const uo = (e) => {
988
988
  },
989
989
  emits: ["connection:create"],
990
990
  setup(e, { expose: t, emit: o }) {
991
- Mn((P) => ({
991
+ Mn((_) => ({
992
992
  v737862e7: a.value,
993
- v05f25613: P.colspan
993
+ v05f25613: _.colspan
994
994
  }));
995
- const n = o, a = R(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"), d = fe("leftConnectionHandle"), p = fe("rightConnectionHandle"), { width: y } = _e(s), { left: g, right: x } = _e(l), b = R(e.start), f = R(e.end || b.value + e.colspan), h = R(!1), I = R(!1), C = R(!1), $ = R(!1), L = R(!1), S = R({ startX: 0, startY: 0, endX: 0, endY: 0 }), O = T(() => Be.value || ge.value || de.value), W = T(() => e.colspan > 0 ? y.value / e.colspan : 0), me = T(() => {
996
- const P = b.value / e.colspan * 100, B = f.value / e.colspan * 100;
995
+ const n = o, a = R(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"), d = fe("leftConnectionHandle"), p = fe("rightConnectionHandle"), { width: y } = Pe(s), { left: m, right: I } = Pe(l), b = R(e.start), f = R(e.end || b.value + e.colspan), g = R(!1), k = R(!1), C = R(!1), $ = R(!1), L = R(!1), S = R({ startX: 0, startY: 0, endX: 0, endY: 0 }), O = T(() => Be.value || ge.value || de.value), W = T(() => e.colspan > 0 ? y.value / e.colspan : 0), me = T(() => {
996
+ const _ = b.value / e.colspan * 100, B = f.value / e.colspan * 100;
997
997
  return {
998
- left: `${P}%`,
999
- width: `${B - P}%`,
998
+ left: `${_}%`,
999
+ width: `${B - _}%`,
1000
1000
  backgroundColor: a.value
1001
1001
  };
1002
1002
  }), j = T(
@@ -1011,37 +1011,37 @@ const uo = (e) => {
1011
1011
  })
1012
1012
  ), J = R({ startX: 0, startPos: 0 }), { isDragging: ge } = wt(u, {
1013
1013
  axis: "x",
1014
- onStart: () => Re(g.value, b.value),
1015
- onMove: ({ x: P }) => Ye(P),
1016
- onEnd: ({ x: P }) => Xe(P)
1014
+ onStart: () => Re(m.value, b.value),
1015
+ onMove: ({ x: _ }) => Ye(_),
1016
+ onEnd: ({ x: _ }) => Xe(_)
1017
1017
  }), { isDragging: de } = wt(i, {
1018
1018
  axis: "x",
1019
- onStart: () => Re(x.value, f.value),
1020
- onMove: ({ x: P }) => Fe(P),
1021
- onEnd: ({ x: P }) => je(P)
1019
+ onStart: () => Re(I.value, f.value),
1020
+ onMove: ({ x: _ }) => Fe(_),
1021
+ onEnd: ({ x: _ }) => je(_)
1022
1022
  }), { isDragging: Be } = wt(l, {
1023
1023
  exact: !0,
1024
1024
  axis: "x",
1025
- onStart: () => Re(g.value, b.value),
1026
- onMove: ({ x: P }) => Ze(P),
1027
- onEnd: ({ x: P }) => D(P)
1025
+ onStart: () => Re(m.value, b.value),
1026
+ onMove: ({ x: _ }) => Ze(_),
1027
+ onEnd: ({ x: _ }) => D(_)
1028
1028
  });
1029
1029
  Ee(() => {
1030
1030
  F();
1031
1031
  }), Cn(() => {
1032
1032
  G();
1033
1033
  });
1034
- function Re(P, B) {
1035
- l.value && (l.value.style.transition = "none"), J.value = { startX: P, startPos: B };
1034
+ function Re(_, B) {
1035
+ l.value && (l.value.style.transition = "none"), J.value = { startX: _, startPos: B };
1036
1036
  }
1037
- function Ye(P) {
1037
+ function Ye(_) {
1038
1038
  if (!ge.value || !l.value) return;
1039
- const B = (P - J.value.startX) / W.value, z = Math.max(0, Math.min(f.value - 1, J.value.startPos + B));
1039
+ const B = (_ - J.value.startX) / W.value, z = Math.max(0, Math.min(f.value - 1, J.value.startPos + B));
1040
1040
  l.value.style.left = `${z / e.colspan * 100}%`, l.value.style.width = `${(f.value - z) / e.colspan * 100}%`;
1041
1041
  }
1042
- function Xe(P) {
1042
+ function Xe(_) {
1043
1043
  if (!l.value) return;
1044
- const B = P - J.value.startX, z = Math.round(B / W.value), ee = b.value, le = Math.max(0, Math.min(f.value - 1, J.value.startPos + z));
1044
+ const B = _ - J.value.startX, z = Math.round(B / W.value), ee = b.value, le = Math.max(0, Math.min(f.value - 1, J.value.startPos + z));
1045
1045
  b.value = le, e.store.updateGanttBar({
1046
1046
  rowIndex: e.rowIndex,
1047
1047
  colIndex: e.colIndex,
@@ -1055,14 +1055,14 @@ const uo = (e) => {
1055
1055
  newColspan: f.value - le
1056
1056
  });
1057
1057
  }
1058
- function Fe(P) {
1058
+ function Fe(_) {
1059
1059
  if (!de.value || !l.value) return;
1060
- const B = (P - J.value.startX) / W.value, z = Math.max(b.value + 1, Math.min(e.columnsCount, J.value.startPos + B));
1060
+ const B = (_ - J.value.startX) / W.value, z = Math.max(b.value + 1, Math.min(e.columnsCount, J.value.startPos + B));
1061
1061
  l.value.style.width = `${(z - b.value) / e.colspan * 100}%`;
1062
1062
  }
1063
- function je(P) {
1063
+ function je(_) {
1064
1064
  if (!l.value) return;
1065
- const B = P - J.value.startX, z = Math.round(B / W.value), ee = f.value, le = Math.max(b.value + 1, Math.min(e.columnsCount, J.value.startPos + z));
1065
+ const B = _ - J.value.startX, z = Math.round(B / W.value), ee = f.value, le = Math.max(b.value + 1, Math.min(e.columnsCount, J.value.startPos + z));
1066
1066
  f.value = le, e.store.updateGanttBar({
1067
1067
  rowIndex: e.rowIndex,
1068
1068
  colIndex: e.colIndex,
@@ -1076,14 +1076,14 @@ const uo = (e) => {
1076
1076
  newColspan: le - b.value
1077
1077
  });
1078
1078
  }
1079
- function Ze(P) {
1079
+ function Ze(_) {
1080
1080
  if (!Be.value || !l.value) return;
1081
- const B = (P - J.value.startX) / W.value, z = f.value - b.value, ee = Math.max(0, Math.min(J.value.startPos + B, e.columnsCount - z));
1081
+ const B = (_ - J.value.startX) / W.value, z = f.value - b.value, ee = Math.max(0, Math.min(J.value.startPos + B, e.columnsCount - z));
1082
1082
  l.value.style.left = `${ee / e.colspan * 100}%`;
1083
1083
  }
1084
- function D(P) {
1084
+ function D(_) {
1085
1085
  if (!l.value) return;
1086
- const B = P - J.value.startX, z = Math.round(B / W.value), ee = f.value - b.value, le = b.value, te = f.value;
1086
+ const B = _ - J.value.startX, z = Math.round(B / W.value), ee = f.value - b.value, le = b.value, te = f.value;
1087
1087
  let ie = J.value.startPos + z, ce = ie + ee;
1088
1088
  ie < 0 ? (ie = 0, ce = ee) : ce > e.columnsCount && (ce = e.columnsCount, ie = ce - ee), b.value = ie, f.value = ce, e.store.updateGanttBar({
1089
1089
  rowIndex: e.rowIndex,
@@ -1098,7 +1098,7 @@ const uo = (e) => {
1098
1098
  });
1099
1099
  }
1100
1100
  function F() {
1101
- const { x: P, y: B } = _e(l), { x: z, y: ee } = _e(d), { x: le, y: te } = _e(p);
1101
+ const { x: _, y: B } = Pe(l), { x: z, y: ee } = Pe(d), { x: le, y: te } = Pe(p);
1102
1102
  e.store.registerGanttBar({
1103
1103
  id: r,
1104
1104
  rowIndex: e.rowIndex,
@@ -1107,14 +1107,14 @@ const uo = (e) => {
1107
1107
  endIndex: f,
1108
1108
  color: a,
1109
1109
  label: e.label,
1110
- position: { x: P, 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: z, y: ee },
1117
- visible: h,
1117
+ visible: g,
1118
1118
  barId: r
1119
1119
  }), e.store.registerConnectionHandle({
1120
1120
  id: `${r}-connection-right`,
@@ -1122,7 +1122,7 @@ const uo = (e) => {
1122
1122
  colIndex: e.colIndex,
1123
1123
  side: "right",
1124
1124
  position: { x: le, y: te },
1125
- visible: I,
1125
+ visible: k,
1126
1126
  barId: r
1127
1127
  }));
1128
1128
  }
@@ -1130,14 +1130,14 @@ const uo = (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 Q() {
1133
- e.store.isDependencyGraphEnabled && (h.value = !0, I.value = !0);
1133
+ e.store.isDependencyGraphEnabled && (g.value = !0, k.value = !0);
1134
1134
  }
1135
1135
  function q() {
1136
- !C.value && !$.value && (h.value = !1, I.value = !1);
1136
+ !C.value && !$.value && (g.value = !1, k.value = !1);
1137
1137
  }
1138
- function re(P, B) {
1139
- B.preventDefault(), B.stopPropagation(), L.value = !0, P === "left" ? C.value = !0 : $.value = !0;
1140
- const z = P === "left" ? d.value : p.value;
1138
+ function re(_, B) {
1139
+ B.preventDefault(), B.stopPropagation(), L.value = !0, _ === "left" ? C.value = !0 : $.value = !0;
1140
+ const z = _ === "left" ? d.value : p.value;
1141
1141
  if (z) {
1142
1142
  const te = z.getBoundingClientRect(), ie = te.left + te.width / 2, ce = te.top + te.height / 2;
1143
1143
  S.value = { startX: ie, startY: ce, endX: ie, endY: ce };
@@ -1145,12 +1145,12 @@ const uo = (e) => {
1145
1145
  const ee = (te) => {
1146
1146
  S.value.endX = te.clientX, S.value.endY = te.clientY;
1147
1147
  }, le = (te) => {
1148
- ke(te, P), Le(ee, le);
1148
+ ke(te, _), Le(ee, le);
1149
1149
  };
1150
1150
  document.addEventListener("mousemove", ee), document.addEventListener("mouseup", le);
1151
1151
  }
1152
- function ke(P, B) {
1153
- const z = document.elementFromPoint(P.clientX, P.clientY)?.closest(".connection-handle");
1152
+ function ke(_, B) {
1153
+ const z = document.elementFromPoint(_.clientX, _.clientY)?.closest(".connection-handle");
1154
1154
  if (z && z !== (B === "left" ? d.value : p.value)) {
1155
1155
  const ee = z.closest(".gantt-bar");
1156
1156
  if (ee) {
@@ -1162,8 +1162,8 @@ const uo = (e) => {
1162
1162
  }
1163
1163
  }
1164
1164
  }
1165
- function Le(P, B) {
1166
- L.value = !1, C.value = !1, $.value = !1, document.removeEventListener("mousemove", P), document.removeEventListener("mouseup", B), l.value?.matches(":hover") || q();
1165
+ function Le(_, B) {
1166
+ L.value = !1, C.value = !1, $.value = !1, document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", B), l.value?.matches(":hover") || q();
1167
1167
  }
1168
1168
  return t({
1169
1169
  barStyle: me,
@@ -1171,11 +1171,11 @@ const uo = (e) => {
1171
1171
  currentEnd: f,
1172
1172
  handleConnectionDrop: ke,
1173
1173
  isLeftConnectionDragging: C,
1174
- isLeftConnectionVisible: h,
1174
+ isLeftConnectionVisible: g,
1175
1175
  isRightConnectionDragging: $,
1176
- isRightConnectionVisible: I,
1176
+ isRightConnectionVisible: k,
1177
1177
  showDragPreview: L
1178
- }), (P, B) => (m(), k("td", {
1178
+ }), (_, B) => (h(), x("td", {
1179
1179
  class: "aganttcell",
1180
1180
  colspan: e.colspan
1181
1181
  }, [
@@ -1189,18 +1189,18 @@ const uo = (e) => {
1189
1189
  onMouseenter: Q,
1190
1190
  onMouseleave: q
1191
1191
  }, [
1192
- e.store.isDependencyGraphEnabled ? (m(), k("div", {
1192
+ e.store.isDependencyGraphEnabled ? (h(), x("div", {
1193
1193
  key: 0,
1194
1194
  ref: "leftConnectionHandle",
1195
- class: se(["connection-handle left-connection-handle", { visible: h.value, "is-dragging": C.value }]),
1195
+ class: se(["connection-handle left-connection-handle", { visible: g.value, "is-dragging": C.value }]),
1196
1196
  onMousedown: B[0] || (B[0] = Ie((z) => re("left", z), ["stop"]))
1197
1197
  }, [...B[2] || (B[2] = [
1198
1198
  w("div", { class: "connection-dot" }, null, -1)
1199
1199
  ])], 34)) : Y("", !0),
1200
- e.store.isDependencyGraphEnabled ? (m(), k("div", {
1200
+ e.store.isDependencyGraphEnabled ? (h(), x("div", {
1201
1201
  key: 1,
1202
1202
  ref: "rightConnectionHandle",
1203
- class: se(["connection-handle right-connection-handle", { visible: I.value, "is-dragging": $.value }]),
1203
+ class: se(["connection-handle right-connection-handle", { visible: k.value, "is-dragging": $.value }]),
1204
1204
  onMousedown: B[1] || (B[1] = Ie((z) => re("right", z), ["stop"]))
1205
1205
  }, [...B[3] || (B[3] = [
1206
1206
  w("div", { class: "connection-dot" }, null, -1)
@@ -1212,7 +1212,7 @@ const uo = (e) => {
1212
1212
  w("div", { class: "handle-grip" }, null, -1),
1213
1213
  w("div", { class: "vertical-indicator left-indicator" }, null, -1)
1214
1214
  ])], 2),
1215
- e.label ? (m(), k("label", Mo, N(e.label), 1)) : Y("", !0),
1215
+ e.label ? (h(), x("label", Mo, N(e.label), 1)) : Y("", !0),
1216
1216
  w("div", {
1217
1217
  ref: "rightResizeHandle",
1218
1218
  class: se(["resize-handle right-resize-handle", { "is-dragging": V(de) }])
@@ -1222,7 +1222,7 @@ const uo = (e) => {
1222
1222
  ])], 2)
1223
1223
  ], 46, Io)
1224
1224
  ], 512),
1225
- e.store.isDependencyGraphEnabled && L.value ? (m(), k("svg", {
1225
+ e.store.isDependencyGraphEnabled && L.value ? (h(), x("svg", {
1226
1226
  key: 0,
1227
1227
  style: be(j.value)
1228
1228
  }, [
@@ -1292,7 +1292,7 @@ const uo = (e) => {
1292
1292
  }, Vo = {
1293
1293
  key: 0,
1294
1294
  class: "row-actions-dropdown"
1295
- }, _o = ["aria-expanded"], Po = ["onClick"], Oo = ["innerHTML"], Bo = { class: "action-label" }, Fo = {
1295
+ }, Po = ["aria-expanded"], _o = ["onClick"], Oo = ["innerHTML"], Bo = { class: "action-label" }, Fo = {
1296
1296
  key: 1,
1297
1297
  class: "row-actions-icons"
1298
1298
  }, Zo = ["title", "aria-label", "onClick"], No = ["innerHTML"], it = /* @__PURE__ */ oe({
@@ -1313,19 +1313,19 @@ const uo = (e) => {
1313
1313
  insertBelow: "Insert Below",
1314
1314
  move: "Move Row"
1315
1315
  }, p = T(() => {
1316
- const h = [], I = o.config.actions || {}, C = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
1316
+ const g = [], k = o.config.actions || {}, C = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
1317
1317
  for (const $ of C) {
1318
- const L = I[$];
1318
+ const L = k[$];
1319
1319
  if (L === !1 || L === void 0) continue;
1320
1320
  let S = !0, O = d[$], W = Ho[$];
1321
- typeof L == "object" && (S = L.enabled !== !1, O = L.label || O, W = L.icon || W), S && h.push({ type: $, label: O, icon: W });
1321
+ typeof L == "object" && (S = L.enabled !== !1, O = L.label || O, W = L.icon || W), S && g.push({ type: $, label: O, icon: W });
1322
1322
  }
1323
- return h;
1323
+ return g;
1324
1324
  }), y = T(() => {
1325
1325
  if (o.config.forceDropdown) return !0;
1326
- const h = o.config.dropdownThreshold ?? 150;
1327
- return h === 0 ? !1 : s.value > 0 && s.value < h;
1328
- }), g = T(() => l.value ? u.value ? {
1326
+ const g = o.config.dropdownThreshold ?? 150;
1327
+ return g === 0 ? !1 : s.value > 0 && s.value < g;
1328
+ }), m = T(() => l.value ? u.value ? {
1329
1329
  position: "fixed",
1330
1330
  bottom: `${window.innerHeight - i.value.top}px`,
1331
1331
  left: `${i.value.left}px`,
@@ -1335,52 +1335,52 @@ const uo = (e) => {
1335
1335
  top: `${i.value.top}px`,
1336
1336
  left: `${i.value.left}px`
1337
1337
  } : {});
1338
- ct(a, (h) => {
1339
- const I = h[0];
1340
- I && (s.value = I.contentRect.width);
1338
+ ct(a, (g) => {
1339
+ const k = g[0];
1340
+ k && (s.value = k.contentRect.width);
1341
1341
  });
1342
- const x = () => {
1342
+ const I = () => {
1343
1343
  l.value || b(), l.value = !l.value;
1344
1344
  }, b = () => {
1345
1345
  if (!r.value) return;
1346
- const h = r.value.getBoundingClientRect(), I = window.innerHeight, C = p.value.length * 40 + 16, $ = I - h.bottom, L = h.top;
1346
+ const g = r.value.getBoundingClientRect(), k = window.innerHeight, C = p.value.length * 40 + 16, $ = k - g.bottom, L = g.top;
1347
1347
  u.value = $ < C && L > C, u.value ? i.value = {
1348
- top: h.top,
1349
- left: h.left
1348
+ top: g.top,
1349
+ left: g.left
1350
1350
  } : i.value = {
1351
- top: h.bottom,
1352
- left: h.left
1351
+ top: g.bottom,
1352
+ left: g.left
1353
1353
  };
1354
1354
  };
1355
1355
  Tt(a, () => {
1356
1356
  l.value = !1;
1357
1357
  });
1358
- const f = (h) => {
1358
+ const f = (g) => {
1359
1359
  l.value = !1;
1360
- const I = o.config.actions?.[h];
1361
- typeof I == "object" && I.handler && I.handler(o.rowIndex, o.store) === !1 || n("action", h, o.rowIndex);
1360
+ const k = o.config.actions?.[g];
1361
+ typeof k == "object" && k.handler && k.handler(o.rowIndex, o.store) === !1 || n("action", g, o.rowIndex);
1362
1362
  };
1363
- return (h, I) => (m(), k("td", {
1363
+ return (g, k) => (h(), x("td", {
1364
1364
  ref: "actionsCell",
1365
1365
  class: se(["atable-row-actions", { "sticky-column": e.position === "before-index", "dropdown-active": l.value }])
1366
1366
  }, [
1367
- y.value ? (m(), k("div", Vo, [
1367
+ y.value ? (h(), x("div", Vo, [
1368
1368
  w("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(x, ["stop"])
1375
- }, [...I[0] || (I[0] = [
1374
+ onClick: Ie(I, ["stop"])
1375
+ }, [...k[0] || (k[0] = [
1376
1376
  w("span", { class: "dropdown-icon" }, "⋮", -1)
1377
- ])], 8, _o),
1377
+ ])], 8, Po),
1378
1378
  K(w("div", {
1379
1379
  class: se(["row-actions-menu", { "menu-flipped": u.value }]),
1380
- style: be(g.value),
1380
+ style: be(m.value),
1381
1381
  role: "menu"
1382
1382
  }, [
1383
- (m(!0), k(X, null, pe(p.value, (C) => (m(), k("button", {
1383
+ (h(!0), x(X, null, pe(p.value, (C) => (h(), x("button", {
1384
1384
  key: C.type,
1385
1385
  type: "button",
1386
1386
  class: "row-action-menu-item",
@@ -1392,12 +1392,12 @@ const uo = (e) => {
1392
1392
  innerHTML: C.icon
1393
1393
  }, null, 8, Oo),
1394
1394
  w("span", Bo, N(C.label), 1)
1395
- ], 8, Po))), 128))
1395
+ ], 8, _o))), 128))
1396
1396
  ], 6), [
1397
1397
  [Ce, l.value]
1398
1398
  ])
1399
- ])) : (m(), k("div", Fo, [
1400
- (m(!0), k(X, null, pe(p.value, (C) => (m(), k("button", {
1399
+ ])) : (h(), x("div", Fo, [
1400
+ (h(!0), x(X, null, pe(p.value, (C) => (h(), x("button", {
1401
1401
  key: C.type,
1402
1402
  type: "button",
1403
1403
  class: "row-action-btn",
@@ -1431,19 +1431,19 @@ const uo = (e) => {
1431
1431
  typeof e.addNavigation == "object" && (d = {
1432
1432
  ...d,
1433
1433
  ...e.addNavigation
1434
- }), Pt([
1434
+ }), _t([
1435
1435
  {
1436
1436
  selectors: n,
1437
1437
  handlers: d
1438
1438
  }
1439
1439
  ]);
1440
1440
  }
1441
- return (d, p) => K((m(), k("tr", {
1441
+ return (d, p) => K((h(), x("tr", {
1442
1442
  ref: "rowEl",
1443
1443
  tabindex: e.tabIndex,
1444
1444
  class: "atable-row"
1445
1445
  }, [
1446
- l.value && u.value === "before-index" ? (m(), ve(it, {
1446
+ l.value && u.value === "before-index" ? (h(), ve(it, {
1447
1447
  key: 0,
1448
1448
  "row-index": e.rowIndex,
1449
1449
  store: e.store,
@@ -1452,18 +1452,18 @@ const uo = (e) => {
1452
1452
  onAction: i
1453
1453
  }, null, 8, ["row-index", "store", "config", "position"])) : Y("", !0),
1454
1454
  e.store.config.view !== "uncounted" ? he(d.$slots, "index", { key: 1 }, () => [
1455
- e.store.config.view === "list" ? (m(), k("td", {
1455
+ e.store.config.view === "list" ? (h(), x("td", {
1456
1456
  key: 0,
1457
1457
  tabIndex: -1,
1458
1458
  class: se(["list-index", e.store.hasPinnedColumns ? "sticky-index" : ""])
1459
- }, N(e.rowIndex + 1), 3)) : e.store.isTreeView ? (m(), k("td", {
1459
+ }, N(e.rowIndex + 1), 3)) : e.store.isTreeView ? (h(), x("td", {
1460
1460
  key: 1,
1461
1461
  tabIndex: -1,
1462
1462
  class: se(["tree-index", e.store.hasPinnedColumns ? "sticky-index" : ""]),
1463
1463
  onClick: p[0] || (p[0] = (y) => e.store.toggleRowExpand(e.rowIndex))
1464
1464
  }, N(r.value), 3)) : Y("", !0)
1465
1465
  ], !0) : Y("", !0),
1466
- l.value && u.value === "after-index" ? (m(), ve(it, {
1466
+ l.value && u.value === "after-index" ? (h(), ve(it, {
1467
1467
  key: 2,
1468
1468
  "row-index": e.rowIndex,
1469
1469
  store: e.store,
@@ -1472,7 +1472,7 @@ const uo = (e) => {
1472
1472
  onAction: i
1473
1473
  }, null, 8, ["row-index", "store", "config", "position"])) : Y("", !0),
1474
1474
  he(d.$slots, "default", {}, void 0, !0),
1475
- l.value && u.value === "end" ? (m(), ve(it, {
1475
+ l.value && u.value === "end" ? (h(), ve(it, {
1476
1476
  key: 3,
1477
1477
  "row-index": e.rowIndex,
1478
1478
  store: e.store,
@@ -1541,13 +1541,13 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1541
1541
  (O) => O.barId === s.to.barId && O.side === s.to.side
1542
1542
  );
1543
1543
  if (!l || !u) return "";
1544
- const i = l.position.x + lt / 2, d = l.position.y + lt / 2, p = u.position.x + lt / 2, y = u.position.y + lt / 2, g = Math.abs(p - i), x = Math.max(g * Qo, 50), b = i + (s.from.side === "left" ? -x : x), f = p + (s.to.side === "left" ? -x : x), h = { x: 0.5 * i + 0.5 * b, y: 0.5 * d + 0.5 * d }, I = { x: 0.5 * b + 0.5 * f, y: 0.5 * d + 0.5 * y }, C = { x: 0.5 * f + 0.5 * p, y: 0.5 * y + 0.5 * y }, $ = { x: 0.5 * h.x + 0.5 * I.x, y: 0.5 * h.y + 0.5 * I.y }, L = { x: 0.5 * I.x + 0.5 * C.x, y: 0.5 * I.y + 0.5 * C.y }, S = { x: 0.5 * $.x + 0.5 * L.x, y: 0.5 * $.y + 0.5 * L.y };
1544
+ const i = l.position.x + lt / 2, d = l.position.y + lt / 2, p = u.position.x + lt / 2, y = u.position.y + lt / 2, m = Math.abs(p - i), I = Math.max(m * Qo, 50), b = i + (s.from.side === "left" ? -I : I), f = p + (s.to.side === "left" ? -I : I), g = { x: 0.5 * i + 0.5 * b, y: 0.5 * d + 0.5 * d }, k = { x: 0.5 * b + 0.5 * f, y: 0.5 * d + 0.5 * y }, C = { x: 0.5 * f + 0.5 * p, y: 0.5 * y + 0.5 * y }, $ = { x: 0.5 * g.x + 0.5 * k.x, y: 0.5 * g.y + 0.5 * k.y }, L = { x: 0.5 * k.x + 0.5 * C.x, y: 0.5 * k.y + 0.5 * C.y }, S = { x: 0.5 * $.x + 0.5 * L.x, y: 0.5 * $.y + 0.5 * L.y };
1545
1545
  return `M ${i} ${d} Q ${b} ${d}, ${S.x} ${S.y} Q ${f} ${y}, ${p} ${y}`;
1546
1546
  }, r = (s) => {
1547
1547
  e.store.deleteConnection(s.id) && o("connection:delete", s);
1548
1548
  };
1549
- return (s, l) => (m(), k("div", Yo, [
1550
- (m(), k("svg", Xo, [
1549
+ return (s, l) => (h(), x("div", Yo, [
1550
+ (h(), x("svg", Xo, [
1551
1551
  l[0] || (l[0] = w("defs", null, [
1552
1552
  w("path", {
1553
1553
  id: "arrowhead",
@@ -1571,7 +1571,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1571
1571
  })
1572
1572
  ])
1573
1573
  ], -1)),
1574
- (m(!0), k(X, null, pe(n.value, (u) => (m(), k("path", {
1574
+ (h(!0), x(X, null, pe(n.value, (u) => (h(), x("path", {
1575
1575
  key: `${u.id}-hitbox`,
1576
1576
  d: a(u),
1577
1577
  stroke: "transparent",
@@ -1580,7 +1580,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1580
1580
  class: "connection-hitbox",
1581
1581
  onDblclick: (i) => r(u)
1582
1582
  }, null, 40, jo))), 128)),
1583
- (m(!0), k(X, null, pe(n.value, (u) => (m(), k("path", {
1583
+ (h(!0), x(X, null, pe(n.value, (u) => (h(), x("path", {
1584
1584
  id: u.id,
1585
1585
  key: u.id,
1586
1586
  d: a(u),
@@ -1632,8 +1632,8 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1632
1632
  }, l = () => {
1633
1633
  t.value = "", o.startValue = "", o.endValue = "", e.store.clearFilter(e.colIndex);
1634
1634
  };
1635
- return (u, i) => (m(), k("div", tl, [
1636
- (e.column.filterType || "text") === "text" ? K((m(), k("input", {
1635
+ return (u, i) => (h(), x("div", tl, [
1636
+ (e.column.filterType || "text") === "text" ? K((h(), x("input", {
1637
1637
  key: 0,
1638
1638
  "onUpdate:modelValue": i[0] || (i[0] = (d) => t.value = d),
1639
1639
  type: "text",
@@ -1641,7 +1641,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1641
1641
  onInput: i[1] || (i[1] = (d) => r(t.value))
1642
1642
  }, null, 544)), [
1643
1643
  [we, t.value]
1644
- ]) : e.column.filterType === "number" ? K((m(), k("input", {
1644
+ ]) : e.column.filterType === "number" ? K((h(), x("input", {
1645
1645
  key: 1,
1646
1646
  "onUpdate:modelValue": i[2] || (i[2] = (d) => t.value = d),
1647
1647
  type: "number",
@@ -1649,7 +1649,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1649
1649
  onInput: i[3] || (i[3] = (d) => r(t.value))
1650
1650
  }, null, 544)), [
1651
1651
  [we, t.value]
1652
- ]) : e.column.filterType === "checkbox" ? (m(), k("label", nl, [
1652
+ ]) : e.column.filterType === "checkbox" ? (h(), x("label", nl, [
1653
1653
  K(w("input", {
1654
1654
  "onUpdate:modelValue": i[4] || (i[4] = (d) => t.value = d),
1655
1655
  type: "checkbox",
@@ -1659,20 +1659,20 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1659
1659
  [rn, t.value]
1660
1660
  ]),
1661
1661
  w("span", null, N(e.column.label), 1)
1662
- ])) : e.column.filterType === "select" ? K((m(), k("select", {
1662
+ ])) : e.column.filterType === "select" ? K((h(), x("select", {
1663
1663
  key: 3,
1664
1664
  "onUpdate:modelValue": i[6] || (i[6] = (d) => t.value = d),
1665
1665
  class: "filter-select",
1666
1666
  onChange: i[7] || (i[7] = (d) => r(t.value))
1667
1667
  }, [
1668
1668
  i[15] || (i[15] = w("option", { value: "" }, "All", -1)),
1669
- (m(!0), k(X, null, pe(n(e.column), (d) => (m(), k("option", {
1669
+ (h(!0), x(X, null, pe(n(e.column), (d) => (h(), x("option", {
1670
1670
  key: d.value || d,
1671
1671
  value: d.value || d
1672
1672
  }, N(d.label || d), 9, ol))), 128))
1673
1673
  ], 544)), [
1674
1674
  [In, t.value]
1675
- ]) : e.column.filterType === "date" ? K((m(), k("input", {
1675
+ ]) : e.column.filterType === "date" ? K((h(), x("input", {
1676
1676
  key: 4,
1677
1677
  "onUpdate:modelValue": i[8] || (i[8] = (d) => t.value = d),
1678
1678
  type: "date",
@@ -1680,7 +1680,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1680
1680
  onChange: i[9] || (i[9] = (d) => r(t.value))
1681
1681
  }, null, 544)), [
1682
1682
  [we, t.value]
1683
- ]) : e.column.filterType === "dateRange" ? (m(), k("div", ll, [
1683
+ ]) : e.column.filterType === "dateRange" ? (h(), x("div", ll, [
1684
1684
  K(w("input", {
1685
1685
  "onUpdate:modelValue": i[10] || (i[10] = (d) => o.startValue = d),
1686
1686
  type: "date",
@@ -1698,7 +1698,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1698
1698
  }, null, 544), [
1699
1699
  [we, o.endValue]
1700
1700
  ])
1701
- ])) : e.column.filterType === "component" && e.column.filterComponent ? (m(), ve(Oe(e.column.filterComponent), {
1701
+ ])) : e.column.filterType === "component" && e.column.filterComponent ? (h(), ve(Oe(e.column.filterComponent), {
1702
1702
  key: 6,
1703
1703
  value: t.value,
1704
1704
  column: e.column,
@@ -1706,7 +1706,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1706
1706
  store: e.store,
1707
1707
  "onUpdate:value": i[14] || (i[14] = (d) => r(d))
1708
1708
  }, null, 40, ["value", "column", "colIndex", "store"])) : Y("", !0),
1709
- a.value ? (m(), k("button", {
1709
+ a.value ? (h(), x("button", {
1710
1710
  key: 7,
1711
1711
  onClick: l,
1712
1712
  class: "clear-btn",
@@ -1746,13 +1746,13 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1746
1746
  typeof p == "number" && p !== i && t.store.resizeColumn(d, i);
1747
1747
  }
1748
1748
  };
1749
- return (l, u) => t.columns.length ? (m(), k("thead", rl, [
1749
+ return (l, u) => t.columns.length ? (h(), x("thead", rl, [
1750
1750
  w("tr", il, [
1751
- n.value && a.value === "before-index" ? (m(), k("th", {
1751
+ n.value && a.value === "before-index" ? (h(), x("th", {
1752
1752
  key: 0,
1753
1753
  class: se(["row-actions-header", { "sticky-column": a.value === "before-index" }])
1754
1754
  }, null, 2)) : Y("", !0),
1755
- t.store.zeroColumn ? (m(), k("th", {
1755
+ t.store.zeroColumn ? (h(), x("th", {
1756
1756
  key: 1,
1757
1757
  id: "header-index",
1758
1758
  class: se([[
@@ -1761,8 +1761,8 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1761
1761
  t.store.config.view === "list-expansion" ? "list-expansion-index" : ""
1762
1762
  ], "list-index"])
1763
1763
  }, null, 2)) : Y("", !0),
1764
- n.value && a.value === "after-index" ? (m(), k("th", ul)) : Y("", !0),
1765
- (m(!0), k(X, null, pe(t.columns, (i, d) => K((m(), k("th", {
1764
+ n.value && a.value === "after-index" ? (h(), x("th", ul)) : Y("", !0),
1765
+ (h(!0), x(X, null, pe(t.columns, (i, d) => K((h(), x("th", {
1766
1766
  key: i.name,
1767
1767
  "data-colindex": d,
1768
1768
  tabindex: "-1",
@@ -1776,14 +1776,14 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1776
1776
  ], 14, cl)), [
1777
1777
  [V(zo), s]
1778
1778
  ])), 128)),
1779
- n.value && a.value === "end" ? (m(), k("th", dl)) : Y("", !0)
1779
+ n.value && a.value === "end" ? (h(), x("th", dl)) : Y("", !0)
1780
1780
  ]),
1781
- o.value.length > 0 ? (m(), k("tr", fl, [
1782
- n.value && a.value === "before-index" ? (m(), k("th", {
1781
+ o.value.length > 0 ? (h(), x("tr", fl, [
1782
+ n.value && a.value === "before-index" ? (h(), x("th", {
1783
1783
  key: 0,
1784
1784
  class: se(["row-actions-header", { "sticky-column": a.value === "before-index" }])
1785
1785
  }, null, 2)) : Y("", !0),
1786
- t.store.zeroColumn ? (m(), k("th", {
1786
+ t.store.zeroColumn ? (h(), x("th", {
1787
1787
  key: 1,
1788
1788
  class: se([[
1789
1789
  t.store.hasPinnedColumns ? "sticky-index" : "",
@@ -1791,20 +1791,20 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1791
1791
  t.store.config.view === "list-expansion" ? "list-expansion-index" : ""
1792
1792
  ], "list-index"])
1793
1793
  }, null, 2)) : Y("", !0),
1794
- n.value && a.value === "after-index" ? (m(), k("th", vl)) : Y("", !0),
1795
- (m(!0), k(X, null, pe(t.columns, (i, d) => (m(), k("th", {
1794
+ n.value && a.value === "after-index" ? (h(), x("th", vl)) : Y("", !0),
1795
+ (h(!0), x(X, null, pe(t.columns, (i, d) => (h(), x("th", {
1796
1796
  key: `filter-${i.name}`,
1797
1797
  class: se(`${i.pinned ? "sticky-column" : ""}`),
1798
1798
  style: be(t.store.getHeaderCellStyle(i))
1799
1799
  }, [
1800
- i.filterable ? (m(), ve(sl, {
1800
+ i.filterable ? (h(), ve(sl, {
1801
1801
  key: 0,
1802
1802
  column: i,
1803
1803
  "col-index": d,
1804
1804
  store: t.store
1805
1805
  }, null, 8, ["column", "col-index", "store"])) : Y("", !0)
1806
1806
  ], 6))), 128)),
1807
- n.value && a.value === "end" ? (m(), k("th", pl)) : Y("", !0)
1807
+ n.value && a.value === "end" ? (h(), x("th", pl)) : Y("", !0)
1808
1808
  ])) : Y("", !0)
1809
1809
  ])) : Y("", !0);
1810
1810
  }
@@ -1814,7 +1814,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1814
1814
  store: {}
1815
1815
  },
1816
1816
  setup(e) {
1817
- const t = fe("amodal"), { width: o, height: n } = _e(t), a = T(() => {
1817
+ const t = fe("amodal"), { width: o, height: n } = Pe(t), a = T(() => {
1818
1818
  if (!(e.store.modal.height && e.store.modal.width && e.store.modal.left && e.store.modal.bottom)) return;
1819
1819
  const r = e.store.modal.cell?.closest("table");
1820
1820
  if (!r) return {};
@@ -1828,7 +1828,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1828
1828
  top: `${u}px`
1829
1829
  };
1830
1830
  });
1831
- return (r, s) => (m(), k("div", {
1831
+ return (r, s) => (h(), x("div", {
1832
1832
  ref: "amodal",
1833
1833
  class: "amodal",
1834
1834
  tabindex: "-1",
@@ -1850,9 +1850,9 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1850
1850
  const H = a.value[A];
1851
1851
  H.parent !== null && H.parent !== void 0 && v.add(H.parent);
1852
1852
  }
1853
- const M = (A) => a.value[A]?.gantt !== void 0, _ = (A) => {
1853
+ const M = (A) => a.value[A]?.gantt !== void 0, P = (A) => {
1854
1854
  for (let H = 0; H < a.value.length; H++)
1855
- if (a.value[H].parent === A && (M(H) || _(H)))
1855
+ if (a.value[H].parent === A && (M(H) || P(H)))
1856
1856
  return !0;
1857
1857
  return !1;
1858
1858
  }, Z = (A) => {
@@ -1863,7 +1863,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1863
1863
  return !1;
1864
1864
  // Only root nodes are visible, all children start collapsed
1865
1865
  case "branch":
1866
- return _(A);
1866
+ return P(A);
1867
1867
  case "leaf":
1868
1868
  return !0;
1869
1869
  // All nodes should be expanded
@@ -1889,8 +1889,8 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1889
1889
  }, n = R(e.columns), a = R(e.rows), r = R(e.config || {}), s = R({}), l = R({}), u = T(() => {
1890
1890
  const c = {};
1891
1891
  for (const [v, M] of n.value.entries())
1892
- for (const [_, Z] of a.value.entries())
1893
- c[`${v}:${_}`] = Z[M.name];
1892
+ for (const [P, Z] of a.value.entries())
1893
+ c[`${v}:${P}`] = Z[M.name];
1894
1894
  return c;
1895
1895
  }), i = T({
1896
1896
  get: () => {
@@ -1898,12 +1898,12 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1898
1898
  for (let v = 0; v < c.length; v++)
1899
1899
  s.value[v] && (c[v].rowModified = s.value[v]), l.value[v] && (l.value[v].childrenOpen !== void 0 && (c[v].childrenOpen = l.value[v].childrenOpen), l.value[v].expanded !== void 0 && (c[v].expanded = l.value[v].expanded));
1900
1900
  if (C.value) {
1901
- const v = (M, _) => {
1902
- const Z = _[M];
1901
+ const v = (M, P) => {
1902
+ const Z = P[M];
1903
1903
  if (Z.isRoot || Z.parent === null || Z.parent === void 0)
1904
1904
  return !0;
1905
1905
  const A = Z.parent;
1906
- return A < 0 || A >= _.length ? !1 : (_[A].childrenOpen || !1) && v(A, _);
1906
+ return A < 0 || A >= P.length ? !1 : (P[A].childrenOpen || !1) && v(A, P);
1907
1907
  };
1908
1908
  for (let M = 0; M < c.length; M++)
1909
1909
  c[M].isRoot || (c[M].open = v(M, c));
@@ -1913,10 +1913,10 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1913
1913
  set: (c) => {
1914
1914
  JSON.stringify(c) !== JSON.stringify(i.value) && (i.value = c);
1915
1915
  }
1916
- }), d = R(e.modal || { visible: !1 }), p = R({}), y = R([]), g = R([]), x = R([]), b = R({
1916
+ }), d = R(e.modal || { visible: !1 }), p = R({}), y = R([]), m = R([]), I = R([]), b = R({
1917
1917
  column: null,
1918
1918
  direction: null
1919
- }), f = R({}), h = T(() => n.value.some((c) => c.pinned)), I = T(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), C = T(() => r.value.view === "tree" || r.value.view === "tree-gantt"), $ = T(() => {
1919
+ }), f = R({}), g = T(() => n.value.some((c) => c.pinned)), k = T(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), C = T(() => r.value.view === "tree" || r.value.view === "tree-gantt"), $ = T(() => {
1920
1920
  const c = r.value;
1921
1921
  return c.view === "gantt" || c.view === "tree-gantt" ? c.dependencyGraph !== !1 : !0;
1922
1922
  }), L = T(() => `${Math.ceil(a.value.length / 100 + 1)}ch`), S = T(
@@ -1927,15 +1927,15 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1927
1927
  originalIndex: M
1928
1928
  }));
1929
1929
  if (Object.entries(f.value).forEach(([v, M]) => {
1930
- const _ = parseInt(v), Z = n.value[_];
1930
+ const P = parseInt(v), Z = n.value[P];
1931
1931
  !Z || !(M.value || M.startValue || M.endValue || Z.filterType === "checkbox" && M.value !== void 0) || (c = c.filter((A) => {
1932
1932
  const H = A[Z.name];
1933
1933
  return le(H, M, Z);
1934
1934
  }));
1935
1935
  }), b.value.column !== null && b.value.direction) {
1936
1936
  const v = n.value[b.value.column], M = b.value.direction;
1937
- c.sort((_, Z) => {
1938
- let A = _[v.name], H = Z[v.name];
1937
+ c.sort((P, Z) => {
1938
+ let A = P[v.name], H = Z[v.name];
1939
1939
  A == null && (A = ""), H == null && (H = "");
1940
1940
  const U = Number(A), ae = Number(H);
1941
1941
  if (!isNaN(U) && !isNaN(ae) && A !== "" && H !== "")
@@ -1948,16 +1948,16 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1948
1948
  }
1949
1949
  return c;
1950
1950
  }), W = (c, v) => u.value[`${c}:${v}`], me = (c, v, M) => {
1951
- const _ = `${c}:${v}`, Z = n.value[c];
1952
- u.value[_] !== M && (s.value[v] = !0), u.value[_] = M, a.value[v] = {
1951
+ const P = `${c}:${v}`, Z = n.value[c];
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
  };
1956
1956
  }, j = (c) => {
1957
1957
  a.value = c;
1958
1958
  }, J = (c, v, M) => {
1959
- const _ = `${c}:${v}`;
1960
- u.value[_] !== M && (s.value[v] = !0, p.value[_] = M);
1959
+ const P = `${c}:${v}`;
1960
+ u.value[P] !== M && (s.value[v] = !0, p.value[P] = M);
1961
1961
  }, ge = (c) => {
1962
1962
  const v = n.value.indexOf(c) === n.value.length - 1, M = r.value.fullWidth ? c.resizable && !v : c.resizable;
1963
1963
  return {
@@ -1978,7 +1978,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
1978
1978
  };
1979
1979
  }, Be = (c) => {
1980
1980
  const v = a.value[c];
1981
- return I.value && v.gantt !== void 0;
1981
+ return k.value && v.gantt !== void 0;
1982
1982
  }, Re = (c) => !C.value || i.value[c].isRoot || i.value[c].open, Ye = (c) => !C.value && r.value.view !== "list-expansion" ? "" : C.value && (i.value[c].isRoot || i.value[c].isParent) ? i.value[c].childrenOpen ? "▼" : "►" : r.value.view === "list-expansion" ? i.value[c].expanded ? "▼" : "►" : "", Xe = (c) => {
1983
1983
  if (C.value) {
1984
1984
  const v = l.value[c] || {}, M = !(v.childrenOpen ?? i.value[c].childrenOpen);
@@ -2006,8 +2006,8 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2006
2006
  const M = W(c, v);
2007
2007
  return Ze(c, v, M);
2008
2008
  }, Ze = (c, v, M) => {
2009
- const _ = n.value[c], Z = a.value[v], A = _.format;
2010
- return A ? typeof A == "function" ? A(M, { table: u.value, row: Z, column: _ }) : typeof A == "string" ? Function(`"use strict";return (${A})`)()(M, { table: u.value, row: Z, column: _ }) : M : M;
2009
+ const P = n.value[c], Z = a.value[v], A = P.format;
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 = (c) => {
2012
2012
  c.target instanceof Node && d.value.parent?.contains(c.target) || d.value.visible && (d.value.visible = !1);
2013
2013
  }, F = (c, v) => v && c === 0 && v > 0 ? `${v}ch` : "inherit", G = (c) => {
@@ -2020,20 +2020,20 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2020
2020
  const v = y.value.findIndex((M) => M.id === c);
2021
2021
  v >= 0 && y.value.splice(v, 1);
2022
2022
  }, re = (c) => {
2023
- const v = g.value.findIndex((M) => M.id === c.id);
2024
- v >= 0 ? g.value[v] = c : g.value.push(c);
2023
+ const v = m.value.findIndex((M) => M.id === c.id);
2024
+ v >= 0 ? m.value[v] = c : m.value.push(c);
2025
2025
  }, ke = (c) => {
2026
- const v = g.value.findIndex((M) => M.id === c);
2027
- v >= 0 && g.value.splice(v, 1);
2026
+ const v = m.value.findIndex((M) => M.id === c);
2027
+ v >= 0 && m.value.splice(v, 1);
2028
2028
  }, Le = (c, v, M) => {
2029
- const _ = g.value.find((H) => H.id === c), Z = g.value.find((H) => H.id === v);
2030
- if (!_ || !Z)
2029
+ const P = m.value.find((H) => H.id === c), Z = m.value.find((H) => H.id === v);
2030
+ if (!P || !Z)
2031
2031
  return console.warn("Cannot create connection: handle not found"), null;
2032
2032
  const A = {
2033
2033
  id: `connection-${c}-${v}`,
2034
2034
  from: {
2035
- barId: _.barId,
2036
- side: _.side
2035
+ barId: P.barId,
2036
+ side: P.side
2037
2037
  },
2038
2038
  to: {
2039
2039
  barId: Z.barId,
@@ -2042,18 +2042,18 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2042
2042
  style: M?.style,
2043
2043
  label: M?.label
2044
2044
  };
2045
- return x.value.push(A), A;
2046
- }, P = (c) => {
2047
- const v = x.value.findIndex((M) => M.id === c);
2048
- return v >= 0 ? (x.value.splice(v, 1), !0) : !1;
2049
- }, B = (c) => x.value.filter((v) => v.from.barId === c || v.to.barId === c), z = (c) => g.value.filter((v) => v.barId === c), ee = (c) => {
2045
+ return I.value.push(A), A;
2046
+ }, _ = (c) => {
2047
+ const v = I.value.findIndex((M) => M.id === c);
2048
+ return v >= 0 ? (I.value.splice(v, 1), !0) : !1;
2049
+ }, B = (c) => I.value.filter((v) => v.from.barId === c || v.to.barId === c), z = (c) => m.value.filter((v) => v.barId === c), ee = (c) => {
2050
2050
  if (n.value[c].sortable === !1) return;
2051
2051
  let v;
2052
2052
  b.value.column === c && b.value.direction === "asc" ? v = "desc" : v = "asc", b.value.column = c, b.value.direction = v;
2053
2053
  }, le = (c, v, M) => {
2054
- const _ = M.filterType || "text", Z = v.value;
2055
- if (!Z && _ !== "dateRange" && _ !== "checkbox") return !0;
2056
- switch (_) {
2054
+ const P = M.filterType || "text", Z = v.value;
2055
+ if (!Z && P !== "dateRange" && P !== "checkbox") return !0;
2056
+ switch (P) {
2057
2057
  case "text": {
2058
2058
  let A = "";
2059
2059
  return typeof c == "object" && c !== null ? A = Object.values(c).join(" ") : A = String(c || ""), A.toLowerCase().includes(String(Z).toLowerCase());
@@ -2099,15 +2099,15 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2099
2099
  for (const Z of n.value)
2100
2100
  M[Z.name] = "";
2101
2101
  c && Object.assign(M, c);
2102
- let _;
2103
- return v === "start" ? (_ = 0, a.value.unshift(M)) : v === "end" ? (_ = a.value.length, a.value.push(M)) : (_ = Math.max(0, Math.min(v, a.value.length)), a.value.splice(_, 0, M)), _;
2102
+ let P;
2103
+ return v === "start" ? (P = 0, a.value.unshift(M)) : v === "end" ? (P = a.value.length, a.value.push(M)) : (P = Math.max(0, Math.min(v, a.value.length)), a.value.splice(P, 0, M)), P;
2104
2104
  };
2105
2105
  return {
2106
2106
  // state
2107
2107
  columns: n,
2108
2108
  config: r,
2109
- connectionHandles: g,
2110
- connectionPaths: x,
2109
+ connectionHandles: m,
2110
+ connectionPaths: I,
2111
2111
  display: i,
2112
2112
  filterState: f,
2113
2113
  ganttBars: y,
@@ -2118,8 +2118,8 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2118
2118
  updates: p,
2119
2119
  // getters
2120
2120
  filteredRows: O,
2121
- hasPinnedColumns: h,
2122
- isGanttView: I,
2121
+ hasPinnedColumns: g,
2122
+ isGanttView: k,
2123
2123
  isTreeView: C,
2124
2124
  isDependencyGraphEnabled: $,
2125
2125
  numberedRowWidth: L,
@@ -2129,28 +2129,28 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2129
2129
  clearFilter: ie,
2130
2130
  closeModal: D,
2131
2131
  createConnection: Le,
2132
- deleteConnection: P,
2132
+ deleteConnection: _,
2133
2133
  deleteRow: (c) => {
2134
2134
  if (c < 0 || c >= a.value.length)
2135
2135
  return null;
2136
2136
  const [v] = a.value.splice(c, 1);
2137
2137
  delete s.value[c], delete l.value[c];
2138
- const M = {}, _ = {};
2138
+ const M = {}, P = {};
2139
2139
  for (const [Z, A] of Object.entries(s.value)) {
2140
2140
  const H = parseInt(Z);
2141
2141
  H > c ? M[H - 1] = A : M[H] = A;
2142
2142
  }
2143
2143
  for (const [Z, A] of Object.entries(l.value)) {
2144
2144
  const H = parseInt(Z);
2145
- H > c ? _[H - 1] = A : _[H] = A;
2145
+ H > c ? P[H - 1] = A : P[H] = A;
2146
2146
  }
2147
- return s.value = M, l.value = _, v;
2147
+ return s.value = M, l.value = P, v;
2148
2148
  },
2149
2149
  duplicateRow: (c) => {
2150
2150
  if (c < 0 || c >= a.value.length)
2151
2151
  return -1;
2152
- const v = a.value[c], M = JSON.parse(JSON.stringify(v)), _ = c + 1;
2153
- return a.value.splice(_, 0, M), _;
2152
+ const v = a.value[c], M = JSON.parse(JSON.stringify(v)), P = c + 1;
2153
+ return a.value.splice(P, 0, M), P;
2154
2154
  },
2155
2155
  getCellData: W,
2156
2156
  getCellDisplayValue: je,
@@ -2175,18 +2175,18 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2175
2175
  return !1;
2176
2176
  const [M] = a.value.splice(c, 1);
2177
2177
  a.value.splice(v, 0, M);
2178
- const _ = {}, Z = {};
2178
+ const P = {}, Z = {};
2179
2179
  for (const [A, H] of Object.entries(s.value)) {
2180
2180
  const U = parseInt(A);
2181
2181
  let ae = U;
2182
- U === c ? ae = v : c < v ? U > c && U <= v && (ae = U - 1) : U >= v && U < c && (ae = U + 1), _[ae] = H;
2182
+ U === c ? ae = v : c < v ? U > c && U <= v && (ae = U - 1) : U >= v && U < c && (ae = U + 1), P[ae] = H;
2183
2183
  }
2184
2184
  for (const [A, H] of Object.entries(l.value)) {
2185
2185
  const U = parseInt(A);
2186
2186
  let ae = U;
2187
2187
  U === c ? ae = v : c < v ? U > c && U <= v && (ae = U - 1) : U >= v && U < c && (ae = U + 1), Z[ae] = H;
2188
2188
  }
2189
- return s.value = _, l.value = Z, !0;
2189
+ return s.value = P, l.value = Z, !0;
2190
2190
  },
2191
2191
  registerConnectionHandle: re,
2192
2192
  registerGanttBar: Q,
@@ -2219,52 +2219,52 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2219
2219
  emits: /* @__PURE__ */ xe(["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: o }) {
2221
2221
  const n = Me(e, "rows"), a = Me(e, "columns"), r = o, s = fe("table"), l = ml({ columns: a.value, rows: n.value, id: e.id, config: e.config });
2222
- l.$onAction(({ name: x, store: b, args: f, after: h }) => {
2223
- if (x === "setCellData" || x === "setCellText") {
2224
- const [I, C, $] = f, L = b.getCellData(I, C);
2225
- h(() => {
2226
- n.value = [...b.rows], r("cellUpdate", { colIndex: I, rowIndex: C, newValue: $, oldValue: L });
2222
+ l.$onAction(({ name: I, store: b, args: f, after: g }) => {
2223
+ if (I === "setCellData" || I === "setCellText") {
2224
+ const [k, C, $] = f, L = b.getCellData(k, C);
2225
+ g(() => {
2226
+ n.value = [...b.rows], r("cellUpdate", { colIndex: k, rowIndex: C, newValue: $, oldValue: L });
2227
2227
  });
2228
- } else if (x === "updateGanttBar") {
2229
- const [I] = f;
2228
+ } else if (I === "updateGanttBar") {
2229
+ const [k] = f;
2230
2230
  let C = !1;
2231
- I.type === "resize" ? C = I.oldColspan !== I.newColspan : I.type === "bar" && (C = I.oldStart !== I.newStart || I.oldEnd !== I.newEnd), C && h(() => {
2232
- r("gantt:drag", I);
2231
+ k.type === "resize" ? C = k.oldColspan !== k.newColspan : k.type === "bar" && (C = k.oldStart !== k.newStart || k.oldEnd !== k.newEnd), C && g(() => {
2232
+ r("gantt:drag", k);
2233
2233
  });
2234
- } else x === "resizeColumn" && h(() => {
2234
+ } else I === "resizeColumn" && g(() => {
2235
2235
  a.value = [...b.columns], r("columns:update", [...b.columns]);
2236
2236
  });
2237
2237
  }), ne(
2238
2238
  () => n.value,
2239
- (x) => {
2240
- JSON.stringify(x) !== JSON.stringify(l.rows) && (l.rows = [...x]);
2239
+ (I) => {
2240
+ JSON.stringify(I) !== JSON.stringify(l.rows) && (l.rows = [...I]);
2241
2241
  },
2242
2242
  { deep: !0 }
2243
2243
  ), ne(
2244
2244
  a,
2245
- (x) => {
2246
- JSON.stringify(x) !== JSON.stringify(l.columns) && (l.columns = [...x], r("columns:update", [...x]));
2245
+ (I) => {
2246
+ JSON.stringify(I) !== JSON.stringify(l.columns) && (l.columns = [...I], r("columns:update", [...I]));
2247
2247
  },
2248
2248
  { deep: !0 }
2249
2249
  ), Ee(() => {
2250
- a.value.some((x) => x.pinned) && (i(), l.isTreeView && vn(s, i, { childList: !0, subtree: !0 }));
2250
+ a.value.some((I) => I.pinned) && (i(), l.isTreeView && vn(s, i, { childList: !0, subtree: !0 }));
2251
2251
  });
2252
- const u = T(() => l.columns.filter((x) => x.pinned).length), i = () => {
2253
- const x = s.value, b = x?.rows[0], f = x?.rows[1], h = b ? Array.from(b.cells) : [];
2254
- for (const [I, C] of h.entries()) {
2255
- const $ = f?.cells[I];
2252
+ const u = T(() => l.columns.filter((I) => I.pinned).length), i = () => {
2253
+ const I = s.value, b = I?.rows[0], f = I?.rows[1], g = b ? Array.from(b.cells) : [];
2254
+ for (const [k, C] of g.entries()) {
2255
+ const $ = f?.cells[k];
2256
2256
  $ && (C.style.width = `${$.offsetWidth}px`);
2257
2257
  }
2258
- for (const I of x?.rows || []) {
2258
+ for (const k of I?.rows || []) {
2259
2259
  let C = 0;
2260
2260
  const $ = [];
2261
- for (const L of I.cells)
2261
+ for (const L of k.cells)
2262
2262
  (L.classList.contains("sticky-column") || L.classList.contains("sticky-index")) && (L.style.left = `${C}px`, C += L.offsetWidth, $.push(L));
2263
2263
  $.length > 0 && $[$.length - 1].classList.add("sticky-column-edge");
2264
2264
  }
2265
2265
  };
2266
- window.addEventListener("keydown", (x) => {
2267
- if (x.key === "Escape" && l.modal.visible) {
2266
+ window.addEventListener("keydown", (I) => {
2267
+ if (I.key === "Escape" && l.modal.visible) {
2268
2268
  l.modal.visible = !1;
2269
2269
  const b = l.modal.parent;
2270
2270
  b && ft().then(() => {
@@ -2272,31 +2272,31 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2272
2272
  });
2273
2273
  }
2274
2274
  });
2275
- const d = (x) => {
2276
- if (!x.gantt || u.value === 0)
2275
+ const d = (I) => {
2276
+ if (!I.gantt || u.value === 0)
2277
2277
  return l.columns;
2278
2278
  const b = [];
2279
2279
  for (let f = 0; f < u.value; f++) {
2280
- const h = { ...l.columns[f] };
2281
- h.originalIndex = f, b.push(h);
2280
+ const g = { ...l.columns[f] };
2281
+ g.originalIndex = f, b.push(g);
2282
2282
  }
2283
2283
  return b.push({
2284
2284
  ...l.columns[u.value],
2285
2285
  isGantt: !0,
2286
- colspan: x.gantt?.colspan || l.columns.length - u.value,
2286
+ colspan: I.gantt?.colspan || l.columns.length - u.value,
2287
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
  }), b;
2291
- }, p = (x) => {
2292
- r("connection:event", { type: "create", connection: x });
2293
- }, y = (x) => {
2294
- r("connection:event", { type: "delete", connection: x });
2295
- }, g = (x, b) => {
2296
- switch (x) {
2291
+ }, p = (I) => {
2292
+ r("connection:event", { type: "create", connection: I });
2293
+ }, y = (I) => {
2294
+ r("connection:event", { type: "delete", connection: I });
2295
+ }, m = (I, b) => {
2296
+ switch (I) {
2297
2297
  case "add": {
2298
- const f = l.addRow({}, b + 1), h = l.rows[f];
2299
- n.value = [...l.rows], r("row:add", { rowIndex: f, row: h });
2298
+ const f = l.addRow({}, b + 1), g = l.rows[f];
2299
+ n.value = [...l.rows], r("row:add", { rowIndex: f, row: g });
2300
2300
  break;
2301
2301
  }
2302
2302
  case "delete": {
@@ -2307,19 +2307,19 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2307
2307
  case "duplicate": {
2308
2308
  const f = l.duplicateRow(b);
2309
2309
  if (f >= 0) {
2310
- const h = l.rows[f];
2311
- n.value = [...l.rows], r("row:duplicate", { sourceIndex: b, newIndex: f, row: h });
2310
+ const g = l.rows[f];
2311
+ n.value = [...l.rows], r("row:duplicate", { sourceIndex: b, newIndex: f, row: g });
2312
2312
  }
2313
2313
  break;
2314
2314
  }
2315
2315
  case "insertAbove": {
2316
- const f = l.insertRowAbove(b), h = l.rows[f];
2317
- n.value = [...l.rows], r("row:insert-above", { targetIndex: b, newIndex: f, row: h });
2316
+ const f = l.insertRowAbove(b), g = l.rows[f];
2317
+ n.value = [...l.rows], r("row:insert-above", { targetIndex: b, newIndex: f, row: g });
2318
2318
  break;
2319
2319
  }
2320
2320
  case "insertBelow": {
2321
- const f = l.insertRowBelow(b), h = l.rows[f];
2322
- n.value = [...l.rows], r("row:insert-below", { targetIndex: b, newIndex: f, row: h });
2321
+ const f = l.insertRowBelow(b), g = l.rows[f];
2322
+ n.value = [...l.rows], r("row:insert-below", { targetIndex: b, newIndex: f, row: g });
2323
2323
  break;
2324
2324
  }
2325
2325
  case "move": {
@@ -2341,58 +2341,58 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2341
2341
  insertRowAbove: l.insertRowAbove,
2342
2342
  insertRowBelow: l.insertRowBelow,
2343
2343
  moveRow: l.moveRow
2344
- }), (x, b) => (m(), k("div", hl, [
2345
- K((m(), k("table", {
2344
+ }), (I, b) => (h(), x("div", hl, [
2345
+ K((h(), x("table", {
2346
2346
  ref: "table",
2347
2347
  class: "atable",
2348
2348
  style: be({
2349
2349
  width: V(l).config.fullWidth ? "100%" : "auto"
2350
2350
  })
2351
2351
  }, [
2352
- he(x.$slots, "header", { data: V(l) }, () => [
2352
+ he(I.$slots, "header", { data: V(l) }, () => [
2353
2353
  At(mn, {
2354
2354
  columns: V(l).columns,
2355
2355
  store: V(l)
2356
2356
  }, null, 8, ["columns", "store"])
2357
2357
  ], !0),
2358
2358
  w("tbody", null, [
2359
- he(x.$slots, "body", { data: V(l) }, () => [
2360
- (m(!0), k(X, null, pe(V(l).filteredRows, (f, h) => (m(), ve(pn, {
2361
- key: `${f.originalIndex}-${h}`,
2359
+ he(I.$slots, "body", { data: V(l) }, () => [
2360
+ (h(!0), x(X, null, pe(V(l).filteredRows, (f, g) => (h(), ve(pn, {
2361
+ key: `${f.originalIndex}-${g}`,
2362
2362
  row: f,
2363
2363
  rowIndex: f.originalIndex,
2364
2364
  store: V(l),
2365
- "onRow:action": g
2365
+ "onRow:action": m
2366
2366
  }, {
2367
2367
  default: $t(() => [
2368
- (m(!0), k(X, null, pe(d(f), (I, C) => (m(), k(X, {
2369
- key: I.name
2368
+ (h(!0), x(X, null, pe(d(f), (k, C) => (h(), x(X, {
2369
+ key: k.name
2370
2370
  }, [
2371
- I.isGantt ? (m(), ve(Oe(I.ganttComponent || "AGanttCell"), {
2371
+ k.isGantt ? (h(), ve(Oe(k.ganttComponent || "AGanttCell"), {
2372
2372
  key: 0,
2373
2373
  store: V(l),
2374
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,
2378
- colspan: I.colspan,
2379
- pinned: I.pinned,
2378
+ colspan: k.colspan,
2379
+ pinned: k.pinned,
2380
2380
  rowIndex: f.originalIndex,
2381
- colIndex: I.originalIndex ?? C,
2381
+ colIndex: k.originalIndex ?? C,
2382
2382
  style: be({
2383
- textAlign: I?.align || "center",
2384
- minWidth: I?.width || "40ch",
2383
+ textAlign: k?.align || "center",
2384
+ minWidth: k?.width || "40ch",
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"])) : (m(), ve(Oe(I.cellComponent || "ACell"), {
2388
+ }, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "rowIndex", "colIndex", "style"])) : (h(), ve(Oe(k.cellComponent || "ACell"), {
2389
2389
  key: 1,
2390
2390
  store: V(l),
2391
- pinned: I.pinned,
2391
+ pinned: k.pinned,
2392
2392
  rowIndex: f.originalIndex,
2393
2393
  colIndex: C,
2394
2394
  style: be({
2395
- textAlign: I?.align || "center",
2395
+ textAlign: k?.align || "center",
2396
2396
  width: V(l).config.fullWidth ? "auto" : null
2397
2397
  }),
2398
2398
  spellcheck: "false"
@@ -2403,11 +2403,11 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2403
2403
  }, 1032, ["row", "rowIndex", "store"]))), 128))
2404
2404
  ], !0)
2405
2405
  ]),
2406
- he(x.$slots, "footer", { data: V(l) }, void 0, !0),
2407
- he(x.$slots, "modal", { data: V(l) }, () => [
2406
+ he(I.$slots, "footer", { data: V(l) }, void 0, !0),
2407
+ he(I.$slots, "modal", { data: V(l) }, () => [
2408
2408
  K(At(hn, { store: V(l) }, {
2409
2409
  default: $t(() => [
2410
- (m(), ve(Oe(V(l).modal.component), dt({
2410
+ (h(), ve(Oe(V(l).modal.component), dt({
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,
@@ -2422,7 +2422,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2422
2422
  ], 4)), [
2423
2423
  [V(Go), V(l).closeModal]
2424
2424
  ]),
2425
- V(l).isGanttView && V(l).isDependencyGraphEnabled ? (m(), ve(el, {
2425
+ V(l).isGanttView && V(l).isDependencyGraphEnabled ? (h(), ve(el, {
2426
2426
  key: 0,
2427
2427
  store: V(l),
2428
2428
  "onConnection:delete": y
@@ -2431,7 +2431,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
2431
2431
  }
2432
2432
  }), wl = /* @__PURE__ */ Ve(gl, [["__scopeId", "data-v-56d7171c"]]), yl = {}, bl = { class: "aloading" }, xl = { class: "aloading-header" };
2433
2433
  function kl(e, t) {
2434
- return m(), k("div", bl, [
2434
+ return h(), x("div", bl, [
2435
2435
  w("h2", xl, [
2436
2436
  he(e.$slots, "default", {}, void 0, !0)
2437
2437
  ]),
@@ -2440,7 +2440,7 @@ function kl(e, t) {
2440
2440
  }
2441
2441
  const Il = /* @__PURE__ */ Ve(yl, [["render", kl], ["__scopeId", "data-v-a930a25b"]]), Ml = {}, Cl = { class: "aloading" }, El = { class: "aloading-header" };
2442
2442
  function Al(e, t) {
2443
- return m(), k("div", Cl, [
2443
+ return h(), x("div", Cl, [
2444
2444
  w("h2", El, [
2445
2445
  he(e.$slots, "default", {}, void 0, !0)
2446
2446
  ]),
@@ -2451,7 +2451,7 @@ const $l = /* @__PURE__ */ Ve(Ml, [["render", Al], ["__scopeId", "data-v-e116587
2451
2451
  function Tl(e) {
2452
2452
  e.component("ACell", mo), e.component("AExpansionRow", bo), e.component("AGanttCell", Ao), e.component("ARow", pn), e.component("ARowActions", it), e.component("ATable", wl), e.component("ATableHeader", mn), e.component("ATableLoading", Il), e.component("ATableLoadingBar", $l), e.component("ATableModal", hn);
2453
2453
  }
2454
- const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" }, Rl = { class: "aform_display-value" }, Ll = ["for"], Hl = { class: "aform_checkbox-container aform_input-field" }, Vl = ["id", "disabled", "required"], _l = ["innerHTML"], Pl = /* @__PURE__ */ oe({
2454
+ const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" }, Rl = { class: "aform_display-value" }, Ll = ["for"], Hl = { class: "aform_checkbox-container aform_input-field" }, Vl = ["id", "disabled", "required"], Pl = ["innerHTML"], _l = /* @__PURE__ */ oe({
2455
2455
  __name: "ACheckbox",
2456
2456
  props: /* @__PURE__ */ xe({
2457
2457
  schema: {},
@@ -2468,11 +2468,11 @@ const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" },
2468
2468
  emits: ["update:modelValue"],
2469
2469
  setup(e) {
2470
2470
  const t = Me(e, "modelValue");
2471
- return (o, n) => (m(), k("div", Dl, [
2472
- e.mode === "display" ? (m(), k(X, { key: 0 }, [
2471
+ return (o, n) => (h(), x("div", Dl, [
2472
+ e.mode === "display" ? (h(), x(X, { key: 0 }, [
2473
2473
  w("label", Sl, N(e.label), 1),
2474
2474
  w("span", Rl, N(t.value ? "✓" : "✗"), 1)
2475
- ], 64)) : (m(), k(X, { key: 1 }, [
2475
+ ], 64)) : (h(), x(X, { key: 1 }, [
2476
2476
  w("label", {
2477
2477
  class: "aform_field-label",
2478
2478
  for: e.uuid
@@ -2492,7 +2492,7 @@ const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" },
2492
2492
  K(w("p", {
2493
2493
  class: "aform_error",
2494
2494
  innerHTML: e.validation.errorMessage
2495
- }, null, 8, _l), [
2495
+ }, null, 8, Pl), [
2496
2496
  [Ce, e.validation.errorMessage]
2497
2497
  ])
2498
2498
  ], 64))
@@ -2503,7 +2503,7 @@ const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" },
2503
2503
  for (const [n, a] of t)
2504
2504
  o[n] = a;
2505
2505
  return o;
2506
- }, Ol = /* @__PURE__ */ Te(Pl, [["__scopeId", "data-v-cc185b72"]]), Bl = /* @__PURE__ */ oe({
2506
+ }, Ol = /* @__PURE__ */ Te(_l, [["__scopeId", "data-v-cc185b72"]]), Bl = /* @__PURE__ */ oe({
2507
2507
  __name: "AComboBox",
2508
2508
  props: {
2509
2509
  schema: {},
@@ -2520,7 +2520,7 @@ const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" },
2520
2520
  setup(e) {
2521
2521
  return (t, o) => {
2522
2522
  const n = $n("ATableModal");
2523
- return m(), ve(n, {
2523
+ return h(), ve(n, {
2524
2524
  event: e.event,
2525
2525
  "cell-data": e.cellData,
2526
2526
  class: "amodal"
@@ -2560,11 +2560,11 @@ const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" },
2560
2560
  }), o = fe("date"), n = () => {
2561
2561
  o.value && "showPicker" in HTMLInputElement.prototype && o.value.showPicker();
2562
2562
  };
2563
- return (a, r) => (m(), k("div", null, [
2564
- e.mode === "display" ? (m(), k(X, { key: 0 }, [
2563
+ return (a, r) => (h(), x("div", null, [
2564
+ e.mode === "display" ? (h(), x(X, { key: 0 }, [
2565
2565
  w("span", Fl, N(t.value ? new Date(t.value).toLocaleDateString() : ""), 1),
2566
2566
  w("label", null, N(e.label), 1)
2567
- ], 64)) : (m(), k(X, { key: 1 }, [
2567
+ ], 64)) : (h(), x(X, { key: 1 }, [
2568
2568
  K(w("input", {
2569
2569
  id: e.uuid,
2570
2570
  ref: "date",
@@ -2649,7 +2649,7 @@ function It(...e) {
2649
2649
  ];
2650
2650
  }, ([n, a, r, s], l, u) => {
2651
2651
  if (!n?.length || !a?.length || !r?.length) return;
2652
- const i = ql(s) ? { ...s } : s, d = n.flatMap((p) => a.flatMap((y) => r.map((g) => t(p, y, g, i))));
2652
+ const i = ql(s) ? { ...s } : s, d = n.flatMap((p) => a.flatMap((y) => r.map((m) => t(p, y, m, i))));
2653
2653
  u(() => {
2654
2654
  d.forEach((p) => p());
2655
2655
  });
@@ -2663,24 +2663,24 @@ function Jt(e, t, o = {}) {
2663
2663
  trigger: Je
2664
2664
  } : Je;
2665
2665
  let u = !0;
2666
- const i = (f) => E(a).some((h) => {
2667
- if (typeof h == "string") return Array.from(n.document.querySelectorAll(h)).some((I) => I === f.target || f.composedPath().includes(I));
2666
+ const i = (f) => E(a).some((g) => {
2667
+ if (typeof g == "string") return Array.from(n.document.querySelectorAll(g)).some((k) => k === f.target || f.composedPath().includes(k));
2668
2668
  {
2669
- const I = Ue(h);
2670
- return I && (f.target === I || f.composedPath().includes(I));
2669
+ const k = Ue(g);
2670
+ return k && (f.target === k || f.composedPath().includes(k));
2671
2671
  }
2672
2672
  });
2673
2673
  function d(f) {
2674
- const h = E(f);
2675
- return h && h.$.subTree.shapeFlag === 16;
2674
+ const g = E(f);
2675
+ return g && g.$.subTree.shapeFlag === 16;
2676
2676
  }
2677
- function p(f, h) {
2678
- const I = E(f), C = I.$.subTree && I.$.subTree.children;
2679
- return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.el === h.target || h.composedPath().includes($.el));
2677
+ function p(f, g) {
2678
+ const k = E(f), C = k.$.subTree && k.$.subTree.children;
2679
+ return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.el === g.target || g.composedPath().includes($.el));
2680
2680
  }
2681
2681
  const y = (f) => {
2682
- const h = Ue(e);
2683
- if (f.target != null && !(!(h instanceof Element) && d(e) && p(e, f)) && !(!h || h === f.target || f.composedPath().includes(h))) {
2682
+ const g = Ue(e);
2683
+ if (f.target != null && !(!(g instanceof Element) && d(e) && p(e, f)) && !(!g || g === f.target || f.composedPath().includes(g))) {
2684
2684
  if ("detail" in f && f.detail === 0 && (u = !i(f)), !u) {
2685
2685
  u = !0;
2686
2686
  return;
@@ -2688,28 +2688,28 @@ function Jt(e, t, o = {}) {
2688
2688
  t(f);
2689
2689
  }
2690
2690
  };
2691
- let g = !1;
2692
- const x = [
2691
+ let m = !1;
2692
+ const I = [
2693
2693
  It(n, "click", (f) => {
2694
- g || (g = !0, setTimeout(() => {
2695
- g = !1;
2694
+ m || (m = !0, setTimeout(() => {
2695
+ m = !1;
2696
2696
  }, 0), y(f));
2697
2697
  }, {
2698
2698
  passive: !0,
2699
2699
  capture: r
2700
2700
  }),
2701
2701
  It(n, "pointerdown", (f) => {
2702
- const h = Ue(e);
2703
- u = !i(f) && !!(h && !f.composedPath().includes(h));
2702
+ const g = Ue(e);
2703
+ u = !i(f) && !!(g && !f.composedPath().includes(g));
2704
2704
  }, { passive: !0 }),
2705
2705
  s && It(n, "blur", (f) => {
2706
2706
  setTimeout(() => {
2707
- var h;
2708
- const I = Ue(e);
2709
- ((h = n.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !I?.contains(n.document.activeElement) && t(f);
2707
+ var g;
2708
+ const k = Ue(e);
2709
+ ((g = n.document.activeElement) === null || g === void 0 ? void 0 : g.tagName) === "IFRAME" && !k?.contains(n.document.activeElement) && t(f);
2710
2710
  }, 0);
2711
2711
  }, { passive: !0 })
2712
- ].filter(Boolean), b = () => x.forEach((f) => f());
2712
+ ].filter(Boolean), b = () => I.forEach((f) => f());
2713
2713
  return l ? {
2714
2714
  stop: b,
2715
2715
  cancel: () => {
@@ -2737,8 +2737,8 @@ function ea(e = {}) {
2737
2737
  const { document: t = Jl } = e, o = R(Kl(e.initialFiles)), { on: n, trigger: a } = /* @__PURE__ */ jt(), { on: r, trigger: s } = /* @__PURE__ */ jt(), l = T(() => {
2738
2738
  var p;
2739
2739
  const y = (p = Ue(e.input)) !== null && p !== void 0 ? p : t ? t.createElement("input") : void 0;
2740
- return y && (y.type = "file", y.onchange = (g) => {
2741
- o.value = g.target.files, a(o.value);
2740
+ return y && (y.type = "file", y.onchange = (m) => {
2741
+ o.value = m.target.files, a(o.value);
2742
2742
  }, y.oncancel = () => {
2743
2743
  s();
2744
2744
  }), y;
@@ -2750,12 +2750,12 @@ function ea(e = {}) {
2750
2750
  }, d = (p) => {
2751
2751
  const y = l.value;
2752
2752
  if (!y) return;
2753
- const g = {
2753
+ const m = {
2754
2754
  ...Ql,
2755
2755
  ...e,
2756
2756
  ...p
2757
2757
  };
2758
- i(g), E(g.reset) && u(), y.click();
2758
+ i(m), E(m.reset) && u(), y.click();
2759
2759
  };
2760
2760
  return ht(() => {
2761
2761
  i(e);
@@ -2862,8 +2862,8 @@ const la = {
2862
2862
  if (n.open = !0, n.activeItemIndex = null, e.filterFunction) {
2863
2863
  e.isAsync && (n.loading = !0);
2864
2864
  try {
2865
- const g = await e.filterFunction(t.value || "");
2866
- n.results = g || [];
2865
+ const m = await e.filterFunction(t.value || "");
2866
+ n.results = m || [];
2867
2867
  } catch {
2868
2868
  n.results = [];
2869
2869
  } finally {
@@ -2871,46 +2871,46 @@ const la = {
2871
2871
  }
2872
2872
  } else
2873
2873
  i();
2874
- }, s = (g) => {
2875
- t.value = g, o.value = g, u(g);
2874
+ }, s = (m) => {
2875
+ t.value = m, o.value = m, u(m);
2876
2876
  }, l = () => {
2877
- const g = e.options?.indexOf(t.value ?? "") ?? -1;
2878
- n.activeItemIndex = e.isAsync ? null : g >= 0 ? g : null, n.open = !0, n.results = e.isAsync ? [] : e.options;
2879
- }, u = (g) => {
2880
- n.activeItemIndex = null, n.open = !1, e.options?.includes(g || t.value || "") || (t.value = o.value);
2877
+ const m = e.options?.indexOf(t.value ?? "") ?? -1;
2878
+ n.activeItemIndex = e.isAsync ? null : m >= 0 ? m : null, n.open = !0, n.results = e.isAsync ? [] : e.options;
2879
+ }, u = (m) => {
2880
+ n.activeItemIndex = null, n.open = !1, e.options?.includes(m || t.value || "") || (t.value = o.value);
2881
2881
  }, i = () => {
2882
- t.value ? n.results = e.options?.filter((g) => g.toLowerCase().includes((t.value ?? "").toLowerCase())) : n.results = e.options;
2882
+ t.value ? n.results = e.options?.filter((m) => m.toLowerCase().includes((t.value ?? "").toLowerCase())) : n.results = e.options;
2883
2883
  }, d = () => {
2884
- const g = n.results?.length || 0;
2884
+ const m = n.results?.length || 0;
2885
2885
  if (n.activeItemIndex != null) {
2886
- const x = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2887
- n.activeItemIndex = (x + 1) % g;
2886
+ const I = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2887
+ n.activeItemIndex = (I + 1) % m;
2888
2888
  } else
2889
2889
  n.activeItemIndex = 0;
2890
2890
  }, p = () => {
2891
- const g = n.results?.length || 0;
2891
+ const m = n.results?.length || 0;
2892
2892
  if (n.activeItemIndex != null) {
2893
- const x = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2894
- x === 0 ? n.activeItemIndex = null : n.activeItemIndex = x - 1;
2893
+ const I = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
2894
+ I === 0 ? n.activeItemIndex = null : n.activeItemIndex = I - 1;
2895
2895
  } else
2896
- n.activeItemIndex = g - 1;
2896
+ n.activeItemIndex = m - 1;
2897
2897
  }, y = () => {
2898
2898
  if (n.results) {
2899
- const g = n.activeItemIndex || 0, x = n.results[g];
2900
- s(x);
2899
+ const m = n.activeItemIndex || 0, I = n.results[m];
2900
+ s(I);
2901
2901
  }
2902
2902
  n.activeItemIndex = 0;
2903
2903
  };
2904
- return (g, x) => e.mode === "display" ? (m(), k("div", la, [
2904
+ return (m, I) => e.mode === "display" ? (h(), x("div", la, [
2905
2905
  w("span", aa, N(t.value ?? ""), 1),
2906
2906
  w("label", null, N(e.label), 1)
2907
- ])) : K((m(), k("div", {
2907
+ ])) : K((h(), x("div", {
2908
2908
  key: 1,
2909
2909
  class: se(["autocomplete", { isOpen: n.open }])
2910
2910
  }, [
2911
2911
  w("div", sa, [
2912
2912
  K(w("input", {
2913
- "onUpdate:modelValue": x[0] || (x[0] = (b) => t.value = b),
2913
+ "onUpdate:modelValue": I[0] || (I[0] = (b) => t.value = b),
2914
2914
  type: "text",
2915
2915
  disabled: e.mode === "read",
2916
2916
  onInput: r,
@@ -2926,10 +2926,10 @@ const la = {
2926
2926
  [we, t.value]
2927
2927
  ]),
2928
2928
  K(w("ul", ia, [
2929
- n.loading ? (m(), k("li", ua, "Loading results...")) : (m(!0), k(X, { key: 1 }, pe(n.results, (b, f) => (m(), k("li", {
2929
+ n.loading ? (h(), x("li", ua, "Loading results...")) : (h(!0), x(X, { key: 1 }, pe(n.results, (b, f) => (h(), x("li", {
2930
2930
  key: b,
2931
2931
  class: se(["autocomplete-result", { "is-active": f === n.activeItemIndex }]),
2932
- onClick: Ie((h) => s(b), ["stop"])
2932
+ onClick: Ie((g) => s(b), ["stop"])
2933
2933
  }, N(b), 11, ca))), 128))
2934
2934
  ], 512), [
2935
2935
  [Ce, n.open]
@@ -2978,7 +2978,7 @@ function Ke(...e) {
2978
2978
  ];
2979
2979
  }, ([n, a, r, s], l, u) => {
2980
2980
  if (!n?.length || !a?.length || !r?.length) return;
2981
- const i = ha(s) ? { ...s } : s, d = n.flatMap((p) => a.flatMap((y) => r.map((g) => t(p, y, g, i))));
2981
+ const i = ha(s) ? { ...s } : s, d = n.flatMap((p) => a.flatMap((y) => r.map((m) => t(p, y, m, i))));
2982
2982
  u(() => {
2983
2983
  d.forEach((p) => p());
2984
2984
  });
@@ -3028,7 +3028,7 @@ function ka(e, t, o = {}) {
3028
3028
  const d = Ge(e);
3029
3029
  if (d) {
3030
3030
  const { stop: p } = xa(a, (y) => {
3031
- y.map((g) => [...g.removedNodes]).flat().some((g) => g === d || g.contains(d)) && t(y);
3031
+ y.map((m) => [...m.removedNodes]).flat().some((m) => m === d || m.contains(d)) && t(y);
3032
3032
  }, {
3033
3033
  window: n,
3034
3034
  childList: !0,
@@ -3281,20 +3281,20 @@ function Ra(e) {
3281
3281
  for (const d of Object.keys(i)) {
3282
3282
  const [p, ...y] = d.split(".");
3283
3283
  if (p === "keydown" && y.includes(u)) {
3284
- const g = i[d], x = y.filter((f) => at.includes(f)), b = at.some((f) => {
3285
- const h = f.charAt(0).toUpperCase() + f.slice(1);
3286
- return l.getModifierState(h);
3284
+ const m = i[d], I = y.filter((f) => at.includes(f)), b = at.some((f) => {
3285
+ const g = f.charAt(0).toUpperCase() + f.slice(1);
3286
+ return l.getModifierState(g);
3287
3287
  });
3288
- if (x.length > 0) {
3288
+ if (I.length > 0) {
3289
3289
  if (b) {
3290
3290
  for (const f of at)
3291
3291
  if (y.includes(f)) {
3292
- const h = f.charAt(0).toUpperCase() + f.slice(1);
3293
- l.getModifierState(h) && g(l);
3292
+ const g = f.charAt(0).toUpperCase() + f.slice(1);
3293
+ l.getModifierState(g) && m(l);
3294
3294
  }
3295
3295
  }
3296
3296
  } else
3297
- b || g(l);
3297
+ b || m(l);
3298
3298
  }
3299
3299
  }
3300
3300
  }, r = [];
@@ -3302,10 +3302,10 @@ function Ra(e) {
3302
3302
  for (const s of e) {
3303
3303
  const l = t(s), u = n(s), i = a(s), d = l ? [l] : u;
3304
3304
  for (const p of d) {
3305
- const { focused: y } = Aa(R(p)), g = ne(y, (x) => {
3306
- x ? p.addEventListener("keydown", i) : p.removeEventListener("keydown", i);
3305
+ const { focused: y } = Aa(R(p)), m = ne(y, (I) => {
3306
+ I ? p.addEventListener("keydown", i) : p.removeEventListener("keydown", i);
3307
3307
  });
3308
- r.push(g);
3308
+ r.push(m);
3309
3309
  }
3310
3310
  }
3311
3311
  }), an(() => {
@@ -3318,10 +3318,10 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3318
3318
  ref: "datepicker",
3319
3319
  class: "adatepicker",
3320
3320
  tabindex: "0"
3321
- }, _a = {
3321
+ }, Pa = {
3322
3322
  colspan: "5",
3323
3323
  tabindex: -1
3324
- }, Pa = ["onClick", "onKeydown"], Oa = 6, ln = 7, Ba = /* @__PURE__ */ oe({
3324
+ }, _a = ["onClick", "onKeydown"], Oa = 6, ln = 7, Ba = /* @__PURE__ */ oe({
3325
3325
  __name: "ADatePicker",
3326
3326
  props: /* @__PURE__ */ xe({
3327
3327
  schema: {},
@@ -3359,13 +3359,13 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3359
3359
  a.value == 0 ? (a.value = 11, i()) : a.value -= 1;
3360
3360
  }, y = () => {
3361
3361
  a.value == 11 ? (a.value = 0, d()) : a.value += 1;
3362
- }, g = (C) => {
3362
+ }, m = (C) => {
3363
3363
  const $ = /* @__PURE__ */ new Date();
3364
3364
  if (a.value === $.getMonth())
3365
3365
  return $.toDateString() === new Date(C).toDateString();
3366
- }, x = (C) => new Date(C).toDateString() === new Date(n.value).toDateString(), b = (C, $) => (C - 1) * ln + $, f = (C, $) => s.value[b(C, $)], h = (C) => {
3366
+ }, I = (C) => new Date(C).toDateString() === new Date(n.value).toDateString(), b = (C, $) => (C - 1) * ln + $, f = (C, $) => s.value[b(C, $)], g = (C) => {
3367
3367
  o.value = n.value = new Date(s.value[C]);
3368
- }, I = T(() => new Date(r.value, a.value, 1).toLocaleDateString(void 0, {
3368
+ }, k = T(() => new Date(r.value, a.value, 1).toLocaleDateString(void 0, {
3369
3369
  year: "numeric",
3370
3370
  month: "long"
3371
3371
  }));
@@ -3385,10 +3385,10 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3385
3385
  }
3386
3386
  }
3387
3387
  }
3388
- ]), t({ currentMonth: a, currentYear: r, selectedDate: n }), (C, $) => e.mode === "display" || e.mode === "read" ? (m(), k(X, { key: 0 }, [
3388
+ ]), t({ currentMonth: a, currentYear: r, selectedDate: n }), (C, $) => e.mode === "display" || e.mode === "read" ? (h(), x(X, { key: 0 }, [
3389
3389
  w("span", La, N(o.value ? new Date(o.value).toLocaleDateString() : ""), 1),
3390
- e.label ? (m(), k("label", Ha, N(e.label), 1)) : Y("", !0)
3391
- ], 64)) : (m(), k("div", Va, [
3390
+ e.label ? (h(), x("label", Ha, N(e.label), 1)) : Y("", !0)
3391
+ ], 64)) : (h(), x("div", Va, [
3392
3392
  w("table", null, [
3393
3393
  w("tbody", null, [
3394
3394
  w("tr", null, [
@@ -3397,7 +3397,7 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3397
3397
  tabindex: -1,
3398
3398
  onClick: p
3399
3399
  }, "<"),
3400
- w("th", _a, N(I.value), 1),
3400
+ w("th", Pa, N(k.value), 1),
3401
3401
  w("td", {
3402
3402
  id: "next-month-btn",
3403
3403
  tabindex: -1,
@@ -3413,8 +3413,8 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3413
3413
  w("td", null, "S"),
3414
3414
  w("td", null, "S")
3415
3415
  ], -1)),
3416
- (m(), k(X, null, pe(Oa, (L) => w("tr", { key: L }, [
3417
- (m(), k(X, null, pe(ln, (S) => w("td", {
3416
+ (h(), x(X, null, pe(Oa, (L) => w("tr", { key: L }, [
3417
+ (h(), x(X, null, pe(ln, (S) => w("td", {
3418
3418
  ref_for: !0,
3419
3419
  ref: "celldate",
3420
3420
  key: b(L, S),
@@ -3422,12 +3422,12 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3422
3422
  spellcheck: !1,
3423
3423
  tabindex: 0,
3424
3424
  class: se({
3425
- todaysDate: g(f(L, S)),
3426
- selectedDate: x(f(L, S))
3425
+ todaysDate: m(f(L, S)),
3426
+ selectedDate: I(f(L, S))
3427
3427
  }),
3428
- onClick: Ie((O) => h(b(L, S)), ["prevent", "stop"]),
3429
- onKeydown: Ne((O) => h(b(L, S)), ["enter"])
3430
- }, N(new Date(f(L, S)).getDate()), 43, Pa)), 64))
3428
+ onClick: Ie((O) => g(b(L, S)), ["prevent", "stop"]),
3429
+ onKeydown: Ne((O) => g(b(L, S)), ["enter"])
3430
+ }, N(new Date(f(L, S)).getDate()), 43, _a)), 64))
3431
3431
  ])), 64))
3432
3432
  ])
3433
3433
  ])
@@ -3439,7 +3439,7 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3439
3439
  collapsed: { type: Boolean }
3440
3440
  },
3441
3441
  setup(e) {
3442
- return (t, o) => (m(), k("button", {
3442
+ return (t, o) => (h(), x("button", {
3443
3443
  class: se(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
3444
3444
  }, "×", 2));
3445
3445
  }
@@ -3474,8 +3474,12 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3474
3474
  a.value[p] = y, n.value && (n.value[p] = y, o("update:data", { ...n.value }));
3475
3475
  }, s = (p) => {
3476
3476
  const y = {};
3477
- for (const [g, x] of Object.entries(p))
3478
- ["component", "fieldtype", "mode"].includes(g) || (y[g] = x), g === "rows" && (!x || Array.isArray(x) && x.length === 0) && (y.rows = n.value[p.fieldname] || []);
3477
+ for (const [m, I] of Object.entries(p))
3478
+ ["component", "fieldtype", "mode"].includes(m) || (y[m] = I);
3479
+ if ("columns" in p) {
3480
+ const m = p.rows;
3481
+ (!m || Array.isArray(m) && m.length === 0) && (y.rows = n.value[p.fieldname] || []);
3482
+ }
3479
3483
  return y;
3480
3484
  }, l = T(() => e.mode ?? "edit");
3481
3485
  function u(p) {
@@ -3488,39 +3492,42 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3488
3492
  get() {
3489
3493
  return n.value?.[e.schema[y].fieldname];
3490
3494
  },
3491
- set: (g) => {
3492
- const x = e.schema[y].fieldname;
3493
- x && n.value && (n.value[x] = g, o("update:data", { ...n.value })), o("update:schema", e.schema);
3495
+ set: (m) => {
3496
+ const I = e.schema[y].fieldname;
3497
+ I && n.value && (n.value[I] = m, o("update:data", { ...n.value })), o("update:schema", e.schema);
3494
3498
  }
3495
3499
  })));
3496
3500
  });
3497
3501
  const d = T(() => i.value);
3498
- return (p, y) => (m(), k("form", Ua, [
3499
- (m(!0), k(X, null, pe(e.schema, (g, x) => (m(), k(X, { key: x }, [
3500
- "schema" in g && Array.isArray(g.schema) && g.schema.length > 0 ? (m(), k("div", Wa, [
3501
- g.label ? (m(), k("h4", Ga, N(g.label), 1)) : Y("", !0),
3502
- (m(), ve(Oe(g.component ?? "AForm"), {
3503
- data: a.value[g.fieldname],
3504
- mode: u(g),
3505
- schema: g.schema,
3506
- "onUpdate:data": (b) => r(g.fieldname, b)
3507
- }, null, 40, ["data", "mode", "schema", "onUpdate:data"]))
3508
- ])) : (m(), ve(Oe(g.component), dt({
3502
+ return (p, y) => (h(), x("form", Ua, [
3503
+ (h(!0), x(X, null, pe(e.schema, (m, I) => (h(), x(X, { key: I }, [
3504
+ "schema" in m && Array.isArray(m.schema) && m.schema.length > 0 ? (h(), x("div", Wa, [
3505
+ m.label && !("collapsible" in m) ? (h(), x("h4", Ga, N(m.label), 1)) : Y("", !0),
3506
+ (h(), ve(Oe(m.component ?? "AForm"), {
3507
+ data: a.value[m.fieldname],
3508
+ mode: u(m),
3509
+ schema: m.schema,
3510
+ label: m.label,
3511
+ collapsible: m.collapsible,
3512
+ "onUpdate:data": (b) => r(m.fieldname, b)
3513
+ }, null, 40, ["data", "mode", "schema", "label", "collapsible", "onUpdate:data"]))
3514
+ ])) : (h(), ve(Oe(m.component), dt({
3509
3515
  key: 1,
3510
- modelValue: d.value[x].value,
3511
- "onUpdate:modelValue": (b) => d.value[x].value = b,
3512
- schema: g,
3513
- data: n.value[g.fieldname],
3514
- mode: u(g)
3515
- }, { ref_for: !0 }, s(g)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "mode"]))
3516
+ modelValue: d.value[I].value,
3517
+ "onUpdate:modelValue": (b) => d.value[I].value = b,
3518
+ schema: m,
3519
+ data: n.value[m.fieldname],
3520
+ mode: u(m)
3521
+ }, { ref_for: !0 }, s(m)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "mode"]))
3516
3522
  ], 64))), 128))
3517
3523
  ]));
3518
3524
  }
3519
- }), kn = /* @__PURE__ */ Te(za, [["__scopeId", "data-v-4d760d4f"]]), qa = /* @__PURE__ */ oe({
3525
+ }), kn = /* @__PURE__ */ Te(za, [["__scopeId", "data-v-976e189b"]]), qa = /* @__PURE__ */ oe({
3520
3526
  __name: "AFieldset",
3521
3527
  props: {
3522
3528
  schema: {},
3523
- label: {},
3529
+ label: { default: () => {
3530
+ } },
3524
3531
  collapsible: { type: Boolean },
3525
3532
  data: { default: () => ({}) },
3526
3533
  mode: { default: "edit" }
@@ -3529,17 +3536,18 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3529
3536
  const o = R(!1), n = R(e.data || []), a = R(e.schema), r = (s) => {
3530
3537
  s.preventDefault(), e.collapsible && (o.value = !o.value);
3531
3538
  };
3532
- return t({ collapsed: o }), (s, l) => (m(), k("fieldset", null, [
3533
- w("legend", {
3539
+ return t({ collapsed: o }), (s, l) => (h(), x("fieldset", null, [
3540
+ e.label || e.collapsible ? (h(), x("legend", {
3541
+ key: 0,
3534
3542
  onClick: r,
3535
3543
  onSubmit: r
3536
3544
  }, [
3537
3545
  Dt(N(e.label) + " ", 1),
3538
- e.collapsible ? (m(), ve(Na, {
3546
+ e.collapsible ? (h(), ve(Na, {
3539
3547
  key: 0,
3540
3548
  collapsed: o.value
3541
3549
  }, null, 8, ["collapsed"])) : Y("", !0)
3542
- ], 32),
3550
+ ], 32)) : Y("", !0),
3543
3551
  he(s.$slots, "default", { collapsed: o.value }, () => [
3544
3552
  K(At(kn, {
3545
3553
  data: n.value,
@@ -3552,7 +3560,7 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3552
3560
  ], !0)
3553
3561
  ]));
3554
3562
  }
3555
- }), Ya = /* @__PURE__ */ Te(qa, [["__scopeId", "data-v-a3606386"]]), Xa = { class: "aform_form-element aform_file-attach aform__grid--full" }, ja = {
3563
+ }), Ya = /* @__PURE__ */ Te(qa, [["__scopeId", "data-v-3cefeba6"]]), Xa = { class: "aform_form-element aform_file-attach aform__grid--full" }, ja = {
3556
3564
  key: 0,
3557
3565
  class: "aform_file-attach-feedback"
3558
3566
  }, Ja = {
@@ -3577,23 +3585,23 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3577
3585
  const s = t.value?.length ?? 0;
3578
3586
  return `${s} ${s === 1 ? "file" : "files"}`;
3579
3587
  });
3580
- return a((s) => s), (s, l) => (m(), k("div", Xa, [
3581
- e.mode === "display" ? (m(), k(X, { key: 0 }, [
3582
- V(t) ? (m(), k("div", ja, [
3588
+ return a((s) => s), (s, l) => (h(), x("div", Xa, [
3589
+ e.mode === "display" ? (h(), x(X, { key: 0 }, [
3590
+ V(t) ? (h(), x("div", ja, [
3583
3591
  w("p", null, [
3584
3592
  w("b", null, N(r.value), 1)
3585
3593
  ]),
3586
- (m(!0), k(X, null, pe(V(t), (u) => (m(), k("li", {
3594
+ (h(!0), x(X, null, pe(V(t), (u) => (h(), x("li", {
3587
3595
  key: u.name
3588
3596
  }, N(u.name), 1))), 128))
3589
- ])) : (m(), k("span", Ja, "No file selected"))
3590
- ], 64)) : (m(), k(X, { key: 1 }, [
3591
- V(t) ? (m(), k("div", Qa, [
3597
+ ])) : (h(), x("span", Ja, "No file selected"))
3598
+ ], 64)) : (h(), x(X, { key: 1 }, [
3599
+ V(t) ? (h(), x("div", Qa, [
3592
3600
  w("p", null, [
3593
3601
  l[2] || (l[2] = Dt(" You have selected: ", -1)),
3594
3602
  w("b", null, N(r.value), 1)
3595
3603
  ]),
3596
- (m(!0), k(X, null, pe(V(t), (u) => (m(), k("li", {
3604
+ (h(!0), x(X, null, pe(V(t), (u) => (h(), x("li", {
3597
3605
  key: u.name
3598
3606
  }, N(u.name), 1))), 128))
3599
3607
  ])) : Y("", !0),
@@ -3629,11 +3637,11 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
3629
3637
  emits: ["update:modelValue"],
3630
3638
  setup(e) {
3631
3639
  const t = Me(e, "modelValue");
3632
- return (o, n) => (m(), k("div", os, [
3633
- e.mode === "display" ? (m(), k(X, { key: 0 }, [
3640
+ return (o, n) => (h(), x("div", os, [
3641
+ e.mode === "display" ? (h(), x(X, { key: 0 }, [
3634
3642
  w("span", ls, N(t.value ?? ""), 1),
3635
3643
  w("label", as, N(e.label), 1)
3636
- ], 64)) : (m(), k(X, { key: 1 }, [
3644
+ ], 64)) : (h(), x(X, { key: 1 }, [
3637
3645
  K(w("input", {
3638
3646
  id: e.uuid,
3639
3647
  "onUpdate:modelValue": n[0] || (n[0] = (a) => t.value = a),
@@ -3719,11 +3727,11 @@ const ms = { class: "aform_form-element" }, hs = { class: "aform_display-value"
3719
3727
  emits: ["update:modelValue"],
3720
3728
  setup(e) {
3721
3729
  const t = R(!0), o = Me(e, "modelValue");
3722
- return (n, a) => (m(), k("div", ms, [
3723
- e.mode === "display" ? (m(), k(X, { key: 0 }, [
3730
+ return (n, a) => (h(), x("div", ms, [
3731
+ e.mode === "display" ? (h(), x(X, { key: 0 }, [
3724
3732
  w("span", hs, N(o.value ?? ""), 1),
3725
3733
  w("label", gs, N(e.label), 1)
3726
- ], 64)) : (m(), k(X, { key: 1 }, [
3734
+ ], 64)) : (h(), x(X, { key: 1 }, [
3727
3735
  K(w("input", {
3728
3736
  id: e.uuid,
3729
3737
  "onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
@@ -3767,7 +3775,7 @@ const ms = { class: "aform_form-element" }, hs = { class: "aform_display-value"
3767
3775
  }
3768
3776
  r.value = !1, o("loginSuccess");
3769
3777
  }
3770
- return (u, i) => (m(), k("div", ks, [
3778
+ return (u, i) => (h(), x("div", ks, [
3771
3779
  w("div", null, [
3772
3780
  w("div", Is, [
3773
3781
  w("div", Ms, [
@@ -3819,7 +3827,7 @@ const ms = { class: "aform_form-element" }, hs = { class: "aform_display-value"
3819
3827
  disabled: r.value || !n.value || !a.value,
3820
3828
  onClick: l
3821
3829
  }, [
3822
- r.value ? (m(), k("span", Ls, "progress_activity")) : Y("", !0),
3830
+ r.value ? (h(), x("span", Ls, "progress_activity")) : Y("", !0),
3823
3831
  i[4] || (i[4] = w("span", { id: "login-form-button" }, "Login", -1))
3824
3832
  ], 8, Rs)
3825
3833
  ])
@@ -3831,7 +3839,7 @@ const ms = { class: "aform_form-element" }, hs = { class: "aform_display-value"
3831
3839
  ])
3832
3840
  ]));
3833
3841
  }
3834
- }), Ps = /* @__PURE__ */ Te(Hs, [["__scopeId", "data-v-d9ffd0a7"]]);
3842
+ }), _s = /* @__PURE__ */ Te(Hs, [["__scopeId", "data-v-d9ffd0a7"]]);
3835
3843
  function Os(e) {
3836
3844
  e.use(Tl), e.component("ACheckbox", Ol), e.component("AComboBox", Bl), e.component("ADate", Gl), e.component("ADropdown", fa), e.component("ADatePicker", Fa), e.component("AFieldset", Ya), e.component("AFileAttach", ns), e.component("AForm", kn), e.component("ANumericInput", us), e.component("ATextInput", xs);
3837
3845
  }
@@ -3846,7 +3854,7 @@ export {
3846
3854
  kn as AForm,
3847
3855
  us as ANumericInput,
3848
3856
  xs as ATextInput,
3849
- Ps as Login,
3857
+ _s as Login,
3850
3858
  Os as install
3851
3859
  };
3852
3860
  //# sourceMappingURL=aform.js.map