@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 +466 -458
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +1 -1
- package/package.json +4 -4
- package/src/components/AForm.vue +15 -7
- package/src/components/form/AFieldset.vue +3 -3
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
|
|
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((
|
|
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
|
|
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
|
|
55
|
-
const t = /* @__PURE__ */
|
|
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__ */
|
|
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((
|
|
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
|
|
233
|
-
},
|
|
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)) ?
|
|
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)) ?
|
|
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
|
|
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
|
|
344
|
-
const
|
|
345
|
-
return l.getModifierState(
|
|
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 (
|
|
347
|
+
if (I.length > 0) {
|
|
348
348
|
if (b) {
|
|
349
349
|
for (const f of nt)
|
|
350
350
|
if (y.includes(f)) {
|
|
351
|
-
const
|
|
352
|
-
l.getModifierState(
|
|
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 ||
|
|
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)),
|
|
365
|
-
|
|
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(
|
|
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]",
|
|
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:
|
|
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 =
|
|
403
|
+
let o, n, a = _e;
|
|
404
404
|
const r = (l) => {
|
|
405
|
-
clearTimeout(l), a(), a =
|
|
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((
|
|
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:
|
|
493
|
-
cancel:
|
|
494
|
-
trigger:
|
|
495
|
-
} :
|
|
492
|
+
stop: _e,
|
|
493
|
+
cancel: _e,
|
|
494
|
+
trigger: _e
|
|
495
|
+
} : _e;
|
|
496
496
|
let u = !0;
|
|
497
|
-
const i = (f) => E(a).some((
|
|
498
|
-
if (typeof
|
|
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
|
|
501
|
-
return
|
|
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
|
|
506
|
-
return
|
|
505
|
+
const g = E(f);
|
|
506
|
+
return g && g.$.subTree.shapeFlag === 16;
|
|
507
507
|
}
|
|
508
|
-
function p(f,
|
|
509
|
-
const
|
|
510
|
-
return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.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
|
|
514
|
-
if (f.target != null && !(!(
|
|
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
|
|
523
|
-
const
|
|
522
|
+
let m = !1;
|
|
523
|
+
const I = [
|
|
524
524
|
He(n, "click", (f) => {
|
|
525
|
-
|
|
526
|
-
|
|
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
|
|
534
|
-
u = !i(f) && !!(
|
|
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
|
|
539
|
-
const
|
|
540
|
-
((
|
|
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 = () =>
|
|
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:
|
|
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:
|
|
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 <
|
|
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(
|
|
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 ((
|
|
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 (
|
|
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 (
|
|
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(
|
|
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
|
|
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),
|
|
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
|
|
725
|
-
if (!
|
|
726
|
-
o && (l.value = 0, u.value = 0, i.value = 0, d.value = 0, p.value = 0, y.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
|
|
730
|
-
l.value =
|
|
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), (
|
|
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:
|
|
748
|
-
y:
|
|
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
|
-
})),
|
|
803
|
+
})), m = T(() => ({
|
|
804
804
|
"sticky-column": e.pinned,
|
|
805
805
|
"cell-modified": r.value
|
|
806
|
-
})),
|
|
806
|
+
})), I = () => {
|
|
807
807
|
f(), b();
|
|
808
808
|
}, b = () => {
|
|
809
|
-
const { left: S, bottom: O, width: W, height: me } =
|
|
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
|
-
}),
|
|
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
|
-
},
|
|
843
|
+
}, g = () => {
|
|
844
844
|
o.value && (a.value = o.value.textContent, f());
|
|
845
|
-
},
|
|
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 =
|
|
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) => (
|
|
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",
|
|
898
|
-
onFocus:
|
|
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:
|
|
902
|
+
onClick: I
|
|
903
903
|
}, [
|
|
904
|
-
V(s).cellComponent ? (
|
|
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 ? (
|
|
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)) : (
|
|
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),
|
|
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) => (
|
|
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 ? (
|
|
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((
|
|
991
|
+
Mn((_) => ({
|
|
992
992
|
v737862e7: a.value,
|
|
993
|
-
v05f25613:
|
|
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 } =
|
|
996
|
-
const
|
|
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: `${
|
|
999
|
-
width: `${B -
|
|
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(
|
|
1015
|
-
onMove: ({ x:
|
|
1016
|
-
onEnd: ({ x:
|
|
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(
|
|
1020
|
-
onMove: ({ x:
|
|
1021
|
-
onEnd: ({ x:
|
|
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(
|
|
1026
|
-
onMove: ({ x:
|
|
1027
|
-
onEnd: ({ x:
|
|
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(
|
|
1035
|
-
l.value && (l.value.style.transition = "none"), J.value = { startX:
|
|
1034
|
+
function Re(_, B) {
|
|
1035
|
+
l.value && (l.value.style.transition = "none"), J.value = { startX: _, startPos: B };
|
|
1036
1036
|
}
|
|
1037
|
-
function Ye(
|
|
1037
|
+
function Ye(_) {
|
|
1038
1038
|
if (!ge.value || !l.value) return;
|
|
1039
|
-
const 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(
|
|
1042
|
+
function Xe(_) {
|
|
1043
1043
|
if (!l.value) return;
|
|
1044
|
-
const B =
|
|
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(
|
|
1058
|
+
function Fe(_) {
|
|
1059
1059
|
if (!de.value || !l.value) return;
|
|
1060
|
-
const 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(
|
|
1063
|
+
function je(_) {
|
|
1064
1064
|
if (!l.value) return;
|
|
1065
|
-
const B =
|
|
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(
|
|
1079
|
+
function Ze(_) {
|
|
1080
1080
|
if (!Be.value || !l.value) return;
|
|
1081
|
-
const B = (
|
|
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(
|
|
1084
|
+
function D(_) {
|
|
1085
1085
|
if (!l.value) return;
|
|
1086
|
-
const B =
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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 && (
|
|
1133
|
+
e.store.isDependencyGraphEnabled && (g.value = !0, k.value = !0);
|
|
1134
1134
|
}
|
|
1135
1135
|
function q() {
|
|
1136
|
-
!C.value && !$.value && (
|
|
1136
|
+
!C.value && !$.value && (g.value = !1, k.value = !1);
|
|
1137
1137
|
}
|
|
1138
|
-
function re(
|
|
1139
|
-
B.preventDefault(), B.stopPropagation(), L.value = !0,
|
|
1140
|
-
const z =
|
|
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,
|
|
1148
|
+
ke(te, _), Le(ee, le);
|
|
1149
1149
|
};
|
|
1150
1150
|
document.addEventListener("mousemove", ee), document.addEventListener("mouseup", le);
|
|
1151
1151
|
}
|
|
1152
|
-
function ke(
|
|
1153
|
-
const z = document.elementFromPoint(
|
|
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(
|
|
1166
|
-
L.value = !1, C.value = !1, $.value = !1, document.removeEventListener("mousemove",
|
|
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:
|
|
1174
|
+
isLeftConnectionVisible: g,
|
|
1175
1175
|
isRightConnectionDragging: $,
|
|
1176
|
-
isRightConnectionVisible:
|
|
1176
|
+
isRightConnectionVisible: k,
|
|
1177
1177
|
showDragPreview: L
|
|
1178
|
-
}), (
|
|
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 ? (
|
|
1192
|
+
e.store.isDependencyGraphEnabled ? (h(), x("div", {
|
|
1193
1193
|
key: 0,
|
|
1194
1194
|
ref: "leftConnectionHandle",
|
|
1195
|
-
class: se(["connection-handle left-connection-handle", { visible:
|
|
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 ? (
|
|
1200
|
+
e.store.isDependencyGraphEnabled ? (h(), x("div", {
|
|
1201
1201
|
key: 1,
|
|
1202
1202
|
ref: "rightConnectionHandle",
|
|
1203
|
-
class: se(["connection-handle right-connection-handle", { visible:
|
|
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 ? (
|
|
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 ? (
|
|
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
|
-
},
|
|
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
|
|
1316
|
+
const g = [], k = o.config.actions || {}, C = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
|
|
1317
1317
|
for (const $ of C) {
|
|
1318
|
-
const L =
|
|
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 &&
|
|
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
|
|
1323
|
+
return g;
|
|
1324
1324
|
}), y = T(() => {
|
|
1325
1325
|
if (o.config.forceDropdown) return !0;
|
|
1326
|
-
const
|
|
1327
|
-
return
|
|
1328
|
-
}),
|
|
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, (
|
|
1339
|
-
const
|
|
1340
|
-
|
|
1338
|
+
ct(a, (g) => {
|
|
1339
|
+
const k = g[0];
|
|
1340
|
+
k && (s.value = k.contentRect.width);
|
|
1341
1341
|
});
|
|
1342
|
-
const
|
|
1342
|
+
const I = () => {
|
|
1343
1343
|
l.value || b(), l.value = !l.value;
|
|
1344
1344
|
}, b = () => {
|
|
1345
1345
|
if (!r.value) return;
|
|
1346
|
-
const
|
|
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:
|
|
1349
|
-
left:
|
|
1348
|
+
top: g.top,
|
|
1349
|
+
left: g.left
|
|
1350
1350
|
} : i.value = {
|
|
1351
|
-
top:
|
|
1352
|
-
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 = (
|
|
1358
|
+
const f = (g) => {
|
|
1359
1359
|
l.value = !1;
|
|
1360
|
-
const
|
|
1361
|
-
typeof
|
|
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 (
|
|
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 ? (
|
|
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(
|
|
1375
|
-
}, [...
|
|
1374
|
+
onClick: Ie(I, ["stop"])
|
|
1375
|
+
}, [...k[0] || (k[0] = [
|
|
1376
1376
|
w("span", { class: "dropdown-icon" }, "⋮", -1)
|
|
1377
|
-
])], 8,
|
|
1377
|
+
])], 8, Po),
|
|
1378
1378
|
K(w("div", {
|
|
1379
1379
|
class: se(["row-actions-menu", { "menu-flipped": u.value }]),
|
|
1380
|
-
style: be(
|
|
1380
|
+
style: be(m.value),
|
|
1381
1381
|
role: "menu"
|
|
1382
1382
|
}, [
|
|
1383
|
-
(
|
|
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,
|
|
1395
|
+
], 8, _o))), 128))
|
|
1396
1396
|
], 6), [
|
|
1397
1397
|
[Ce, l.value]
|
|
1398
1398
|
])
|
|
1399
|
-
])) : (
|
|
1400
|
-
(
|
|
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
|
-
}),
|
|
1434
|
+
}), _t([
|
|
1435
1435
|
{
|
|
1436
1436
|
selectors: n,
|
|
1437
1437
|
handlers: d
|
|
1438
1438
|
}
|
|
1439
1439
|
]);
|
|
1440
1440
|
}
|
|
1441
|
-
return (d, p) => K((
|
|
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" ? (
|
|
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" ? (
|
|
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 ? (
|
|
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" ? (
|
|
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" ? (
|
|
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,
|
|
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) => (
|
|
1550
|
-
(
|
|
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
|
-
(
|
|
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
|
-
(
|
|
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) => (
|
|
1636
|
-
(e.column.filterType || "text") === "text" ? K((
|
|
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((
|
|
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" ? (
|
|
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((
|
|
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
|
-
(
|
|
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((
|
|
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" ? (
|
|
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 ? (
|
|
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 ? (
|
|
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 ? (
|
|
1749
|
+
return (l, u) => t.columns.length ? (h(), x("thead", rl, [
|
|
1750
1750
|
w("tr", il, [
|
|
1751
|
-
n.value && a.value === "before-index" ? (
|
|
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 ? (
|
|
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" ? (
|
|
1765
|
-
(
|
|
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" ? (
|
|
1779
|
+
n.value && a.value === "end" ? (h(), x("th", dl)) : Y("", !0)
|
|
1780
1780
|
]),
|
|
1781
|
-
o.value.length > 0 ? (
|
|
1782
|
-
n.value && a.value === "before-index" ? (
|
|
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 ? (
|
|
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" ? (
|
|
1795
|
-
(
|
|
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 ? (
|
|
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" ? (
|
|
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 } =
|
|
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) => (
|
|
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,
|
|
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) ||
|
|
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
|
|
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 [
|
|
1893
|
-
c[`${v}:${
|
|
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 =
|
|
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 >=
|
|
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([]),
|
|
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({}),
|
|
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
|
|
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((
|
|
1938
|
-
let A =
|
|
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
|
|
1952
|
-
u.value[
|
|
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
|
|
1960
|
-
u.value[
|
|
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
|
|
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
|
|
2010
|
-
return A ? typeof A == "function" ? A(M, { table: u.value, row: Z, column:
|
|
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 =
|
|
2024
|
-
v >= 0 ?
|
|
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 =
|
|
2027
|
-
v >= 0 &&
|
|
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
|
|
2030
|
-
if (!
|
|
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:
|
|
2036
|
-
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
|
|
2046
|
-
},
|
|
2047
|
-
const v =
|
|
2048
|
-
return v >= 0 ? (
|
|
2049
|
-
}, B = (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
|
|
2055
|
-
if (!Z &&
|
|
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" ? (
|
|
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:
|
|
2110
|
-
connectionPaths:
|
|
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:
|
|
2122
|
-
isGanttView:
|
|
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:
|
|
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 ?
|
|
2145
|
+
H > c ? P[H - 1] = A : P[H] = A;
|
|
2146
2146
|
}
|
|
2147
|
-
return s.value = M, l.value =
|
|
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)),
|
|
2153
|
-
return a.value.splice(
|
|
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
|
|
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),
|
|
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 =
|
|
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:
|
|
2223
|
-
if (
|
|
2224
|
-
const [
|
|
2225
|
-
|
|
2226
|
-
n.value = [...b.rows], r("cellUpdate", { colIndex:
|
|
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 (
|
|
2229
|
-
const [
|
|
2228
|
+
} else if (I === "updateGanttBar") {
|
|
2229
|
+
const [k] = f;
|
|
2230
2230
|
let C = !1;
|
|
2231
|
-
|
|
2232
|
-
r("gantt:drag",
|
|
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
|
|
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
|
-
(
|
|
2240
|
-
JSON.stringify(
|
|
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
|
-
(
|
|
2246
|
-
JSON.stringify(
|
|
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((
|
|
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((
|
|
2253
|
-
const
|
|
2254
|
-
for (const [
|
|
2255
|
-
const $ = f?.cells[
|
|
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
|
|
2258
|
+
for (const k of I?.rows || []) {
|
|
2259
2259
|
let C = 0;
|
|
2260
2260
|
const $ = [];
|
|
2261
|
-
for (const L of
|
|
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", (
|
|
2267
|
-
if (
|
|
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 = (
|
|
2276
|
-
if (!
|
|
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
|
|
2281
|
-
|
|
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:
|
|
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 = (
|
|
2292
|
-
r("connection:event", { type: "create", connection:
|
|
2293
|
-
}, y = (
|
|
2294
|
-
r("connection:event", { type: "delete", connection:
|
|
2295
|
-
},
|
|
2296
|
-
switch (
|
|
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),
|
|
2299
|
-
n.value = [...l.rows], r("row:add", { rowIndex: f, row:
|
|
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
|
|
2311
|
-
n.value = [...l.rows], r("row:duplicate", { sourceIndex: b, newIndex: f, row:
|
|
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),
|
|
2317
|
-
n.value = [...l.rows], r("row:insert-above", { targetIndex: b, newIndex: f, row:
|
|
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),
|
|
2322
|
-
n.value = [...l.rows], r("row:insert-below", { targetIndex: b, newIndex: f, row:
|
|
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
|
-
}), (
|
|
2345
|
-
K((
|
|
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(
|
|
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(
|
|
2360
|
-
(
|
|
2361
|
-
key: `${f.originalIndex}-${
|
|
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":
|
|
2365
|
+
"onRow:action": m
|
|
2366
2366
|
}, {
|
|
2367
2367
|
default: $t(() => [
|
|
2368
|
-
(
|
|
2369
|
-
key:
|
|
2368
|
+
(h(!0), x(X, null, pe(d(f), (k, C) => (h(), x(X, {
|
|
2369
|
+
key: k.name
|
|
2370
2370
|
}, [
|
|
2371
|
-
|
|
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:
|
|
2379
|
-
pinned:
|
|
2378
|
+
colspan: k.colspan,
|
|
2379
|
+
pinned: k.pinned,
|
|
2380
2380
|
rowIndex: f.originalIndex,
|
|
2381
|
-
colIndex:
|
|
2381
|
+
colIndex: k.originalIndex ?? C,
|
|
2382
2382
|
style: be({
|
|
2383
|
-
textAlign:
|
|
2384
|
-
minWidth:
|
|
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"])) : (
|
|
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:
|
|
2391
|
+
pinned: k.pinned,
|
|
2392
2392
|
rowIndex: f.originalIndex,
|
|
2393
2393
|
colIndex: C,
|
|
2394
2394
|
style: be({
|
|
2395
|
-
textAlign:
|
|
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(
|
|
2407
|
-
he(
|
|
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
|
-
(
|
|
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 ? (
|
|
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
|
|
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
|
|
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"],
|
|
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) => (
|
|
2472
|
-
e.mode === "display" ? (
|
|
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)) : (
|
|
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,
|
|
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(
|
|
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
|
|
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) => (
|
|
2564
|
-
e.mode === "display" ? (
|
|
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)) : (
|
|
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((
|
|
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((
|
|
2667
|
-
if (typeof
|
|
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
|
|
2670
|
-
return
|
|
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
|
|
2675
|
-
return
|
|
2674
|
+
const g = E(f);
|
|
2675
|
+
return g && g.$.subTree.shapeFlag === 16;
|
|
2676
2676
|
}
|
|
2677
|
-
function p(f,
|
|
2678
|
-
const
|
|
2679
|
-
return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.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
|
|
2683
|
-
if (f.target != null && !(!(
|
|
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
|
|
2692
|
-
const
|
|
2691
|
+
let m = !1;
|
|
2692
|
+
const I = [
|
|
2693
2693
|
It(n, "click", (f) => {
|
|
2694
|
-
|
|
2695
|
-
|
|
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
|
|
2703
|
-
u = !i(f) && !!(
|
|
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
|
|
2708
|
-
const
|
|
2709
|
-
((
|
|
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 = () =>
|
|
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 = (
|
|
2741
|
-
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
|
|
2753
|
+
const m = {
|
|
2754
2754
|
...Ql,
|
|
2755
2755
|
...e,
|
|
2756
2756
|
...p
|
|
2757
2757
|
};
|
|
2758
|
-
i(
|
|
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
|
|
2866
|
-
n.results =
|
|
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 = (
|
|
2875
|
-
t.value =
|
|
2874
|
+
}, s = (m) => {
|
|
2875
|
+
t.value = m, o.value = m, u(m);
|
|
2876
2876
|
}, l = () => {
|
|
2877
|
-
const
|
|
2878
|
-
n.activeItemIndex = e.isAsync ? null :
|
|
2879
|
-
}, u = (
|
|
2880
|
-
n.activeItemIndex = null, n.open = !1, e.options?.includes(
|
|
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((
|
|
2882
|
+
t.value ? n.results = e.options?.filter((m) => m.toLowerCase().includes((t.value ?? "").toLowerCase())) : n.results = e.options;
|
|
2883
2883
|
}, d = () => {
|
|
2884
|
-
const
|
|
2884
|
+
const m = n.results?.length || 0;
|
|
2885
2885
|
if (n.activeItemIndex != null) {
|
|
2886
|
-
const
|
|
2887
|
-
n.activeItemIndex = (
|
|
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
|
|
2891
|
+
const m = n.results?.length || 0;
|
|
2892
2892
|
if (n.activeItemIndex != null) {
|
|
2893
|
-
const
|
|
2894
|
-
|
|
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 =
|
|
2896
|
+
n.activeItemIndex = m - 1;
|
|
2897
2897
|
}, y = () => {
|
|
2898
2898
|
if (n.results) {
|
|
2899
|
-
const
|
|
2900
|
-
s(
|
|
2899
|
+
const m = n.activeItemIndex || 0, I = n.results[m];
|
|
2900
|
+
s(I);
|
|
2901
2901
|
}
|
|
2902
2902
|
n.activeItemIndex = 0;
|
|
2903
2903
|
};
|
|
2904
|
-
return (
|
|
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((
|
|
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":
|
|
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 ? (
|
|
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((
|
|
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((
|
|
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((
|
|
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
|
|
3285
|
-
const
|
|
3286
|
-
return l.getModifierState(
|
|
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 (
|
|
3288
|
+
if (I.length > 0) {
|
|
3289
3289
|
if (b) {
|
|
3290
3290
|
for (const f of at)
|
|
3291
3291
|
if (y.includes(f)) {
|
|
3292
|
-
const
|
|
3293
|
-
l.getModifierState(
|
|
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 ||
|
|
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)),
|
|
3306
|
-
|
|
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(
|
|
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
|
-
},
|
|
3321
|
+
}, Pa = {
|
|
3322
3322
|
colspan: "5",
|
|
3323
3323
|
tabindex: -1
|
|
3324
|
-
},
|
|
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
|
-
},
|
|
3362
|
+
}, m = (C) => {
|
|
3363
3363
|
const $ = /* @__PURE__ */ new Date();
|
|
3364
3364
|
if (a.value === $.getMonth())
|
|
3365
3365
|
return $.toDateString() === new Date(C).toDateString();
|
|
3366
|
-
},
|
|
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
|
-
},
|
|
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" ? (
|
|
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 ? (
|
|
3391
|
-
], 64)) : (
|
|
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",
|
|
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
|
-
(
|
|
3417
|
-
(
|
|
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:
|
|
3426
|
-
selectedDate:
|
|
3425
|
+
todaysDate: m(f(L, S)),
|
|
3426
|
+
selectedDate: I(f(L, S))
|
|
3427
3427
|
}),
|
|
3428
|
-
onClick: Ie((O) =>
|
|
3429
|
-
onKeydown: Ne((O) =>
|
|
3430
|
-
}, N(new Date(f(L, S)).getDate()), 43,
|
|
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) => (
|
|
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 [
|
|
3478
|
-
["component", "fieldtype", "mode"].includes(
|
|
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: (
|
|
3492
|
-
const
|
|
3493
|
-
|
|
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) => (
|
|
3499
|
-
(
|
|
3500
|
-
"schema" in
|
|
3501
|
-
|
|
3502
|
-
(
|
|
3503
|
-
data: a.value[
|
|
3504
|
-
mode: u(
|
|
3505
|
-
schema:
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
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[
|
|
3511
|
-
"onUpdate:modelValue": (b) => d.value[
|
|
3512
|
-
schema:
|
|
3513
|
-
data: n.value[
|
|
3514
|
-
mode: u(
|
|
3515
|
-
}, { ref_for: !0 }, s(
|
|
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-
|
|
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) => (
|
|
3533
|
-
|
|
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 ? (
|
|
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-
|
|
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) => (
|
|
3581
|
-
e.mode === "display" ? (
|
|
3582
|
-
V(t) ? (
|
|
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
|
-
(
|
|
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
|
-
])) : (
|
|
3590
|
-
], 64)) : (
|
|
3591
|
-
V(t) ? (
|
|
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
|
-
(
|
|
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) => (
|
|
3633
|
-
e.mode === "display" ? (
|
|
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)) : (
|
|
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) => (
|
|
3723
|
-
e.mode === "display" ? (
|
|
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)) : (
|
|
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) => (
|
|
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 ? (
|
|
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
|
-
}),
|
|
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
|
-
|
|
3857
|
+
_s as Login,
|
|
3850
3858
|
Os as install
|
|
3851
3859
|
};
|
|
3852
3860
|
//# sourceMappingURL=aform.js.map
|