@stonecrop/aform 0.12.4 → 0.12.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 +144 -140
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +1 -1
- package/package.json +5 -5
- package/src/components/form/AFormLink.vue +13 -0
package/dist/aform.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as le, useTemplateRef as me, ref as S, computed as T, onMounted as $e, openBlock as h, createElementBlock as w, unref as H, normalizeClass as re, normalizeStyle as Ce, createBlock as pe, resolveDynamicComponent as Ze, mergeProps as ft, toDisplayString as N, createElementVNode as y, withModifiers as ge, withDirectives as K, Fragment as J, renderList as ve, vShow as
|
|
1
|
+
import { defineComponent as le, useTemplateRef as me, ref as S, computed as T, onMounted as $e, openBlock as h, createElementBlock as w, unref as H, normalizeClass as re, normalizeStyle as Ce, createBlock as pe, resolveDynamicComponent as Ze, mergeProps as ft, toDisplayString as N, createElementVNode as y, withModifiers as ge, withDirectives as K, Fragment as J, renderList as ve, vShow as De, createCommentVNode as j, renderSlot as ye, createTextVNode as Lt, watch as oe, onBeforeUnmount as un, nextTick as vt, toValue as A, shallowRef as fe, getCurrentScope as mt, onScopeDispose as pt, reactive as cn, vModelText as be, vModelCheckbox as dn, vModelSelect as $n, getCurrentInstance as ht, watchEffect as gt, useCssVars as An, onUnmounted as Tn, useModel as Ee, inject as At, createVNode as Tt, withCtx as Dt, mergeModels as ke, isRef as Dn, toRefs as Sn, customRef as Ht, toRef as fn, readonly as Vt, resolveComponent as Rn, withKeys as we } from "vue";
|
|
2
2
|
import { defineStore as Ln } from "pinia";
|
|
3
3
|
import './assets/index.css';function St(e) {
|
|
4
4
|
return Function(`"use strict"; return (${e})`)();
|
|
@@ -22,21 +22,21 @@ function On(e, t, o) {
|
|
|
22
22
|
const qe = Hn ? window : void 0;
|
|
23
23
|
function ze(e) {
|
|
24
24
|
var t;
|
|
25
|
-
const o =
|
|
25
|
+
const o = A(e);
|
|
26
26
|
return (t = o?.$el) !== null && t !== void 0 ? t : o;
|
|
27
27
|
}
|
|
28
28
|
function Qe(...e) {
|
|
29
29
|
const t = (n, s, a, l) => (n.addEventListener(s, a, l), () => n.removeEventListener(s, a, l)), o = T(() => {
|
|
30
|
-
const n = rt(
|
|
30
|
+
const n = rt(A(e[0])).filter((s) => s != null);
|
|
31
31
|
return n.every((s) => typeof s != "string") ? n : void 0;
|
|
32
32
|
});
|
|
33
33
|
return On(() => {
|
|
34
34
|
var n, s;
|
|
35
35
|
return [
|
|
36
36
|
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((a) => ze(a))) !== null && n !== void 0 ? n : [qe].filter((a) => a != null),
|
|
37
|
-
rt(
|
|
37
|
+
rt(A(o.value ? e[1] : e[0])),
|
|
38
38
|
rt(H(o.value ? e[2] : e[1])),
|
|
39
|
-
|
|
39
|
+
A(o.value ? e[3] : e[2])
|
|
40
40
|
];
|
|
41
41
|
}, ([n, s, a, l], u, i) => {
|
|
42
42
|
if (!n?.length || !s?.length || !a?.length) return;
|
|
@@ -64,7 +64,7 @@ function Nn(e, t, o = {}) {
|
|
|
64
64
|
const l = /* @__PURE__ */ _n(() => n && "MutationObserver" in n), u = () => {
|
|
65
65
|
a && (a.disconnect(), a = void 0);
|
|
66
66
|
}, i = oe(T(() => {
|
|
67
|
-
const v = rt(
|
|
67
|
+
const v = rt(A(e)).map(ze).filter(Vn);
|
|
68
68
|
return new Set(v);
|
|
69
69
|
}), (v) => {
|
|
70
70
|
u(), l.value && v.size && (a = new MutationObserver(t), v.forEach((x) => a.observe(x, s)));
|
|
@@ -409,7 +409,7 @@ function lo(e, t = {}) {
|
|
|
409
409
|
};
|
|
410
410
|
let l;
|
|
411
411
|
return (u) => {
|
|
412
|
-
const i =
|
|
412
|
+
const i = A(e), r = A(t.maxWait);
|
|
413
413
|
return o && a(o), i <= 0 || r !== void 0 && r <= 0 ? (n && (a(n), n = void 0), Promise.resolve(u())) : new Promise((c, v) => {
|
|
414
414
|
s = t.rejectOnCancel ? v : c, l = u, r && !n && (n = setTimeout(() => {
|
|
415
415
|
o && a(o), n = void 0, c(l());
|
|
@@ -430,7 +430,7 @@ function so(e, t = 200, o = {}) {
|
|
|
430
430
|
return oo(lo(t, o), e);
|
|
431
431
|
}
|
|
432
432
|
function ro(e, t = {}) {
|
|
433
|
-
if (!
|
|
433
|
+
if (!Dn(e)) return Sn(e);
|
|
434
434
|
const o = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
|
|
435
435
|
for (const n in e.value) o[n] = Ht(() => ({
|
|
436
436
|
get() {
|
|
@@ -438,7 +438,7 @@ function ro(e, t = {}) {
|
|
|
438
438
|
},
|
|
439
439
|
set(s) {
|
|
440
440
|
var a;
|
|
441
|
-
if (!((a =
|
|
441
|
+
if (!((a = A(t.replaceRef)) !== null && a !== void 0) || a) if (Array.isArray(e.value)) {
|
|
442
442
|
const l = [...e.value];
|
|
443
443
|
l[n] = s, e.value = l;
|
|
444
444
|
} else {
|
|
@@ -465,21 +465,21 @@ function uo(e, t, o) {
|
|
|
465
465
|
const tt = mn ? window : void 0;
|
|
466
466
|
function Me(e) {
|
|
467
467
|
var t;
|
|
468
|
-
const o =
|
|
468
|
+
const o = A(e);
|
|
469
469
|
return (t = o?.$el) !== null && t !== void 0 ? t : o;
|
|
470
470
|
}
|
|
471
471
|
function Pe(...e) {
|
|
472
472
|
const t = (n, s, a, l) => (n.addEventListener(s, a, l), () => n.removeEventListener(s, a, l)), o = T(() => {
|
|
473
|
-
const n = it(
|
|
473
|
+
const n = it(A(e[0])).filter((s) => s != null);
|
|
474
474
|
return n.every((s) => typeof s != "string") ? n : void 0;
|
|
475
475
|
});
|
|
476
476
|
return uo(() => {
|
|
477
477
|
var n, s;
|
|
478
478
|
return [
|
|
479
479
|
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((a) => Me(a))) !== null && n !== void 0 ? n : [tt].filter((a) => a != null),
|
|
480
|
-
it(
|
|
480
|
+
it(A(o.value ? e[1] : e[0])),
|
|
481
481
|
it(H(o.value ? e[2] : e[1])),
|
|
482
|
-
|
|
482
|
+
A(o.value ? e[3] : e[2])
|
|
483
483
|
];
|
|
484
484
|
}, ([n, s, a, l], u, i) => {
|
|
485
485
|
if (!n?.length || !s?.length || !a?.length) return;
|
|
@@ -497,7 +497,7 @@ function Rt(e, t, o = {}) {
|
|
|
497
497
|
trigger: Oe
|
|
498
498
|
} : Oe;
|
|
499
499
|
let i = !0;
|
|
500
|
-
const r = (d) =>
|
|
500
|
+
const r = (d) => A(s).some((p) => {
|
|
501
501
|
if (typeof p == "string") return Array.from(n.document.querySelectorAll(p)).some((b) => b === d.target || d.composedPath().includes(b));
|
|
502
502
|
{
|
|
503
503
|
const b = Me(p);
|
|
@@ -505,11 +505,11 @@ function Rt(e, t, o = {}) {
|
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
507
|
function c(d) {
|
|
508
|
-
const p =
|
|
508
|
+
const p = A(d);
|
|
509
509
|
return p && p.$.subTree.shapeFlag === 16;
|
|
510
510
|
}
|
|
511
511
|
function v(d, p) {
|
|
512
|
-
const b =
|
|
512
|
+
const b = A(d), $ = b.$.subTree && b.$.subTree.children;
|
|
513
513
|
return $ == null || !Array.isArray($) ? !1 : $.some((I) => I.el === p.target || p.composedPath().includes(I.el));
|
|
514
514
|
}
|
|
515
515
|
const x = (d) => {
|
|
@@ -572,7 +572,7 @@ function hn(e, t, o = {}) {
|
|
|
572
572
|
const l = /* @__PURE__ */ pn(() => n && "MutationObserver" in n), u = () => {
|
|
573
573
|
a && (a.disconnect(), a = void 0);
|
|
574
574
|
}, i = oe(T(() => {
|
|
575
|
-
const v = it(
|
|
575
|
+
const v = it(A(e)).map(Me).filter(Qn);
|
|
576
576
|
return new Set(v);
|
|
577
577
|
}), (v) => {
|
|
578
578
|
u(), l.value && v.size && (a = new MutationObserver(t), v.forEach((x) => a.observe(x, s)));
|
|
@@ -598,14 +598,14 @@ function fo(e) {
|
|
|
598
598
|
}
|
|
599
599
|
function wt(e, t = {}) {
|
|
600
600
|
var o, n, s, a;
|
|
601
|
-
const { pointerTypes: l, preventDefault: u, stopPropagation: i, exact: r, onMove: c, onEnd: v, onStart: x, initialValue: g, axis: E = "both", draggingElement: k = tt, containerElement: d, handle: p = e, buttons: b = [0], restrictInView: $, autoScroll: I = !1 } = t, C = S((o =
|
|
601
|
+
const { pointerTypes: l, preventDefault: u, stopPropagation: i, exact: r, onMove: c, onEnd: v, onStart: x, initialValue: g, axis: E = "both", draggingElement: k = tt, containerElement: d, handle: p = e, buttons: b = [0], restrictInView: $, autoScroll: I = !1 } = t, C = S((o = A(g)) !== null && o !== void 0 ? o : {
|
|
602
602
|
x: 0,
|
|
603
603
|
y: 0
|
|
604
604
|
}), R = S(), z = (L) => l ? l.includes(L.pointerType) : !0, F = (L) => {
|
|
605
|
-
|
|
606
|
-
}, Z =
|
|
607
|
-
speed: (n =
|
|
608
|
-
margin: (s =
|
|
605
|
+
A(u) && L.preventDefault(), A(i) && L.stopPropagation();
|
|
606
|
+
}, Z = A(I), q = typeof Z == "object" ? {
|
|
607
|
+
speed: (n = A(Z.speed)) !== null && n !== void 0 ? n : lt.speed,
|
|
608
|
+
margin: (s = A(Z.margin)) !== null && s !== void 0 ? s : lt.margin,
|
|
609
609
|
direction: (a = Z.direction) !== null && a !== void 0 ? a : lt.direction
|
|
610
610
|
} : lt, Q = (L) => typeof L == "number" ? [L, L] : [L.x, L.y], ne = (L, _, G) => {
|
|
611
611
|
const { clientWidth: ee, clientHeight: X, scrollLeft: ce, scrollTop: Te, scrollWidth: Ve, scrollHeight: B } = L, [O, Y] = Q(q.margin), [te, se] = Q(q.speed);
|
|
@@ -618,9 +618,9 @@ function wt(e, t = {}) {
|
|
|
618
618
|
};
|
|
619
619
|
let ie = null;
|
|
620
620
|
const Ie = () => {
|
|
621
|
-
const L =
|
|
621
|
+
const L = A(d);
|
|
622
622
|
L && !ie && (ie = setInterval(() => {
|
|
623
|
-
const _ =
|
|
623
|
+
const _ = A(e).getBoundingClientRect(), { x: G, y: ee } = C.value, X = {
|
|
624
624
|
x: G - L.scrollLeft,
|
|
625
625
|
y: ee - L.scrollTop
|
|
626
626
|
};
|
|
@@ -632,31 +632,31 @@ function wt(e, t = {}) {
|
|
|
632
632
|
const [X, ce] = typeof G == "number" ? [G, G] : [G.x, G.y], { clientWidth: Te, clientHeight: Ve } = _;
|
|
633
633
|
return L.x < X || L.x + ee.width > Te - X || L.y < ce || L.y + ee.height > Ve - ce;
|
|
634
634
|
}, je = () => {
|
|
635
|
-
if (
|
|
636
|
-
const L =
|
|
635
|
+
if (A(t.disabled) || !R.value) return;
|
|
636
|
+
const L = A(d);
|
|
637
637
|
if (!L) return;
|
|
638
|
-
const _ =
|
|
638
|
+
const _ = A(e).getBoundingClientRect(), { x: G, y: ee } = C.value;
|
|
639
639
|
Ye({
|
|
640
640
|
x: G - L.scrollLeft,
|
|
641
641
|
y: ee - L.scrollTop
|
|
642
642
|
}, L, q.margin, _) ? Ie() : xe();
|
|
643
643
|
};
|
|
644
|
-
|
|
644
|
+
A(I) && oe(C, je);
|
|
645
645
|
const Xe = (L) => {
|
|
646
646
|
var _;
|
|
647
|
-
if (!
|
|
648
|
-
const G =
|
|
647
|
+
if (!A(b).includes(L.button) || A(t.disabled) || !z(L) || A(r) && L.target !== A(e)) return;
|
|
648
|
+
const G = A(d), ee = G == null || (_ = G.getBoundingClientRect) === null || _ === void 0 ? void 0 : _.call(G), X = A(e).getBoundingClientRect(), ce = {
|
|
649
649
|
x: L.clientX - (G ? X.left - ee.left + (I ? 0 : G.scrollLeft) : X.left),
|
|
650
650
|
y: L.clientY - (G ? X.top - ee.top + (I ? 0 : G.scrollTop) : X.top)
|
|
651
651
|
};
|
|
652
652
|
x?.(ce, L) !== !1 && (R.value = ce, F(L));
|
|
653
653
|
}, _e = (L) => {
|
|
654
|
-
if (
|
|
655
|
-
const _ =
|
|
654
|
+
if (A(t.disabled) || !z(L) || !R.value) return;
|
|
655
|
+
const _ = A(d);
|
|
656
656
|
_ instanceof HTMLElement && fo(_);
|
|
657
|
-
const G =
|
|
657
|
+
const G = A(e).getBoundingClientRect();
|
|
658
658
|
let { x: ee, y: X } = C.value;
|
|
659
|
-
if ((E === "x" || E === "both") && (ee = L.clientX - R.value.x, _ && (ee = Math.min(Math.max(0, ee), _.scrollWidth - G.width))), (E === "y" || E === "both") && (X = L.clientY - R.value.y, _ && (X = Math.min(Math.max(0, X), _.scrollHeight - G.height))),
|
|
659
|
+
if ((E === "x" || E === "both") && (ee = L.clientX - R.value.x, _ && (ee = Math.min(Math.max(0, ee), _.scrollWidth - G.width))), (E === "y" || E === "both") && (X = L.clientY - R.value.y, _ && (X = Math.min(Math.max(0, X), _.scrollHeight - G.height))), A(I) && _ && (ie === null && ne(_, G, {
|
|
660
660
|
x: ee,
|
|
661
661
|
y: X
|
|
662
662
|
}), ee += _.scrollLeft, X += _.scrollTop), _ && ($ || I)) {
|
|
@@ -674,14 +674,14 @@ function wt(e, t = {}) {
|
|
|
674
674
|
y: X
|
|
675
675
|
}, c?.(C.value, L), F(L);
|
|
676
676
|
}, Je = (L) => {
|
|
677
|
-
|
|
677
|
+
A(t.disabled) || !z(L) || R.value && (R.value = void 0, I && xe(), v?.(C.value, L), F(L));
|
|
678
678
|
};
|
|
679
679
|
if (mn) {
|
|
680
680
|
const L = () => {
|
|
681
681
|
var _;
|
|
682
682
|
return {
|
|
683
683
|
capture: (_ = t.capture) !== null && _ !== void 0 ? _ : !0,
|
|
684
|
-
passive: !
|
|
684
|
+
passive: !A(u)
|
|
685
685
|
};
|
|
686
686
|
};
|
|
687
687
|
Pe(p, "pointerdown", Xe, L), Pe(k, "pointermove", _e, L), Pe(k, "pointerup", Je, L);
|
|
@@ -703,7 +703,7 @@ function dt(e, t, o = {}) {
|
|
|
703
703
|
const l = /* @__PURE__ */ pn(() => n && "ResizeObserver" in n), u = () => {
|
|
704
704
|
a && (a.disconnect(), a = void 0);
|
|
705
705
|
}, i = oe(T(() => {
|
|
706
|
-
const c =
|
|
706
|
+
const c = A(e);
|
|
707
707
|
return Array.isArray(c) ? c.map((v) => Me(v)) : [Me(c)];
|
|
708
708
|
}), (c) => {
|
|
709
709
|
if (u(), l.value && n) {
|
|
@@ -760,7 +760,7 @@ function vo(e, t = !1) {
|
|
|
760
760
|
const o = fe(t);
|
|
761
761
|
let n = "";
|
|
762
762
|
oe(no(e), (l) => {
|
|
763
|
-
const u = bt(
|
|
763
|
+
const u = bt(A(l));
|
|
764
764
|
if (u) {
|
|
765
765
|
const i = u;
|
|
766
766
|
if (xt.get(i) || xt.set(i, i.style.overflow), i.style.overflow !== "hidden" && (n = i.style.overflow), i.style.overflow === "hidden") return o.value = !0;
|
|
@@ -768,10 +768,10 @@ function vo(e, t = !1) {
|
|
|
768
768
|
}
|
|
769
769
|
}, { immediate: !0 });
|
|
770
770
|
const s = () => {
|
|
771
|
-
const l = bt(
|
|
771
|
+
const l = bt(A(e));
|
|
772
772
|
!l || o.value || (l.style.overflow = "hidden", o.value = !0);
|
|
773
773
|
}, a = () => {
|
|
774
|
-
const l = bt(
|
|
774
|
+
const l = bt(A(e));
|
|
775
775
|
!l || !o.value || (l.style.overflow = n, xt.delete(l), o.value = !1);
|
|
776
776
|
};
|
|
777
777
|
return _t(a), T({
|
|
@@ -987,10 +987,10 @@ const mo = (e) => {
|
|
|
987
987
|
}, Mo = /* @__PURE__ */ Fe(Io, [["__scopeId", "data-v-a42297c7"]]), Co = ["colspan"], Eo = {
|
|
988
988
|
ref: "container",
|
|
989
989
|
class: "gantt-container"
|
|
990
|
-
}, $o = ["data-rowindex", "data-colindex"],
|
|
990
|
+
}, $o = ["data-rowindex", "data-colindex"], Ao = {
|
|
991
991
|
key: 2,
|
|
992
992
|
class: "gantt-label"
|
|
993
|
-
}, To = ["x1", "y1", "x2", "y2"],
|
|
993
|
+
}, To = ["x1", "y1", "x2", "y2"], Do = /* @__PURE__ */ le({
|
|
994
994
|
__name: "AGanttCell",
|
|
995
995
|
props: {
|
|
996
996
|
store: {},
|
|
@@ -1005,7 +1005,7 @@ const mo = (e) => {
|
|
|
1005
1005
|
},
|
|
1006
1006
|
emits: ["connection:create"],
|
|
1007
1007
|
setup(e, { expose: t, emit: o }) {
|
|
1008
|
-
|
|
1008
|
+
An((B) => ({
|
|
1009
1009
|
v67f2230e: s.value,
|
|
1010
1010
|
v8309df7e: B.colspan
|
|
1011
1011
|
}));
|
|
@@ -1229,7 +1229,7 @@ const mo = (e) => {
|
|
|
1229
1229
|
y("div", { class: "handle-grip" }, null, -1),
|
|
1230
1230
|
y("div", { class: "vertical-indicator left-indicator" }, null, -1)
|
|
1231
1231
|
])], 2),
|
|
1232
|
-
e.label ? (h(), w("label",
|
|
1232
|
+
e.label ? (h(), w("label", Ao, N(e.label), 1)) : j("", !0),
|
|
1233
1233
|
y("div", {
|
|
1234
1234
|
ref: "rightResizeHandle",
|
|
1235
1235
|
class: re(["resize-handle right-resize-handle", { "is-dragging": H(ie) }])
|
|
@@ -1255,7 +1255,7 @@ const mo = (e) => {
|
|
|
1255
1255
|
], 4)) : j("", !0)
|
|
1256
1256
|
], 8, Co));
|
|
1257
1257
|
}
|
|
1258
|
-
}), So = /* @__PURE__ */ Fe(
|
|
1258
|
+
}), So = /* @__PURE__ */ Fe(Do, [["__scopeId", "data-v-e2e9fdb6"]]), Ro = `<?xml version="1.0" encoding="UTF-8"?>
|
|
1259
1259
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
1260
1260
|
<path d="M32,64C14.35,64,0,49.65,0,32S14.35,0,32,0s32,14.35,32,32-14.35,32-32,32ZM32,4c-15.44,0-28,12.56-28,28s12.56,28,28,28,28-12.56,28-28S47.44,4,32,4Z" style="fill: #000; stroke-width: 0px;"/>
|
|
1261
1261
|
<polygon points="34 18 30 18 30 30 18 30 18 34 30 34 30 46 34 46 34 34 46 34 46 30 34 30 34 18" style="fill: #000; stroke-width: 0px;"/>
|
|
@@ -1411,7 +1411,7 @@ const mo = (e) => {
|
|
|
1411
1411
|
y("span", Wo, N($.label), 1)
|
|
1412
1412
|
], 8, _o))), 128))
|
|
1413
1413
|
], 6), [
|
|
1414
|
-
[
|
|
1414
|
+
[De, u.value]
|
|
1415
1415
|
])
|
|
1416
1416
|
])) : (h(), w("div", zo, [
|
|
1417
1417
|
(h(!0), w(J, null, ve(v.value, ($) => (h(), w("button", {
|
|
@@ -1498,7 +1498,7 @@ const mo = (e) => {
|
|
|
1498
1498
|
onAction: r
|
|
1499
1499
|
}, null, 8, ["row-index", "store", "config", "position"])) : j("", !0)
|
|
1500
1500
|
], 8, Go)), [
|
|
1501
|
-
[
|
|
1501
|
+
[De, s.value]
|
|
1502
1502
|
]);
|
|
1503
1503
|
}
|
|
1504
1504
|
}), gn = /* @__PURE__ */ Fe(Yo, [["__scopeId", "data-v-e7ca13d1"]]), kt = /* @__PURE__ */ new WeakMap(), jo = {
|
|
@@ -1883,16 +1883,16 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
1883
1883
|
return Ln(`table-${t}`, () => {
|
|
1884
1884
|
const n = () => {
|
|
1885
1885
|
const f = [Object.assign({}, { rowModified: !1 })], m = /* @__PURE__ */ new Set();
|
|
1886
|
-
for (let
|
|
1887
|
-
const V = a.value[
|
|
1886
|
+
for (let D = 0; D < a.value.length; D++) {
|
|
1887
|
+
const V = a.value[D];
|
|
1888
1888
|
V.parent !== null && V.parent !== void 0 && m.add(V.parent);
|
|
1889
1889
|
}
|
|
1890
|
-
const M = (
|
|
1890
|
+
const M = (D) => a.value[D]?.gantt !== void 0, P = (D) => {
|
|
1891
1891
|
for (let V = 0; V < a.value.length; V++)
|
|
1892
|
-
if (a.value[V].parent ===
|
|
1892
|
+
if (a.value[V].parent === D && (M(V) || P(V)))
|
|
1893
1893
|
return !0;
|
|
1894
1894
|
return !1;
|
|
1895
|
-
}, W = (
|
|
1895
|
+
}, W = (D) => {
|
|
1896
1896
|
const V = l.value, U = V.view === "tree" || V.view === "tree-gantt" ? V.defaultTreeExpansion : void 0;
|
|
1897
1897
|
if (!U) return !0;
|
|
1898
1898
|
switch (U) {
|
|
@@ -1900,7 +1900,7 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
1900
1900
|
return !1;
|
|
1901
1901
|
// Only root nodes are visible, all children start collapsed
|
|
1902
1902
|
case "branch":
|
|
1903
|
-
return P(
|
|
1903
|
+
return P(D);
|
|
1904
1904
|
case "leaf":
|
|
1905
1905
|
return !0;
|
|
1906
1906
|
// All nodes should be expanded
|
|
@@ -1908,10 +1908,10 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
1908
1908
|
return !0;
|
|
1909
1909
|
}
|
|
1910
1910
|
};
|
|
1911
|
-
for (let
|
|
1912
|
-
const V = a.value[
|
|
1913
|
-
f[
|
|
1914
|
-
childrenOpen: W(
|
|
1911
|
+
for (let D = 0; D < a.value.length; D++) {
|
|
1912
|
+
const V = a.value[D], U = V.parent === null || V.parent === void 0, ue = m.has(D);
|
|
1913
|
+
f[D] = {
|
|
1914
|
+
childrenOpen: W(D),
|
|
1915
1915
|
expanded: !1,
|
|
1916
1916
|
indent: V.indent || 0,
|
|
1917
1917
|
isParent: ue,
|
|
@@ -1939,8 +1939,8 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
1939
1939
|
const W = P[M];
|
|
1940
1940
|
if (W.isRoot || W.parent === null || W.parent === void 0)
|
|
1941
1941
|
return !0;
|
|
1942
|
-
const
|
|
1943
|
-
return
|
|
1942
|
+
const D = W.parent;
|
|
1943
|
+
return D < 0 || D >= P.length ? !1 : (P[D].childrenOpen || !1) && m(D, P);
|
|
1944
1944
|
};
|
|
1945
1945
|
for (let M = 0; M < f.length; M++)
|
|
1946
1946
|
f[M].isRoot || (f[M].open = m(M, f));
|
|
@@ -1965,20 +1965,20 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
1965
1965
|
}));
|
|
1966
1966
|
if (Object.entries(p.value).forEach(([m, M]) => {
|
|
1967
1967
|
const P = parseInt(m), W = s.value[P];
|
|
1968
|
-
!W || !(M.value || M.startValue || M.endValue || W.filterType === "checkbox" && M.value !== void 0) || (f = f.filter((
|
|
1969
|
-
const V =
|
|
1968
|
+
!W || !(M.value || M.startValue || M.endValue || W.filterType === "checkbox" && M.value !== void 0) || (f = f.filter((D) => {
|
|
1969
|
+
const V = D[W.name];
|
|
1970
1970
|
return ae(V, M, W);
|
|
1971
1971
|
}));
|
|
1972
1972
|
}), d.value.column !== null && d.value.direction) {
|
|
1973
1973
|
const m = s.value[d.value.column], M = d.value.direction;
|
|
1974
1974
|
f.sort((P, W) => {
|
|
1975
|
-
let
|
|
1976
|
-
|
|
1977
|
-
const U = Number(
|
|
1978
|
-
if (!isNaN(U) && !isNaN(ue) &&
|
|
1975
|
+
let D = P[m.name], V = W[m.name];
|
|
1976
|
+
D == null && (D = ""), V == null && (V = "");
|
|
1977
|
+
const U = Number(D), ue = Number(V);
|
|
1978
|
+
if (!isNaN(U) && !isNaN(ue) && D !== "" && V !== "")
|
|
1979
1979
|
return M === "asc" ? U - ue : ue - U;
|
|
1980
1980
|
{
|
|
1981
|
-
const nt = String(
|
|
1981
|
+
const nt = String(D).toLowerCase(), qt = String(V).toLowerCase();
|
|
1982
1982
|
return M === "asc" ? nt.localeCompare(qt) : qt.localeCompare(nt);
|
|
1983
1983
|
}
|
|
1984
1984
|
});
|
|
@@ -2043,8 +2043,8 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
2043
2043
|
const M = Z(f, m);
|
|
2044
2044
|
return L(f, m, M);
|
|
2045
2045
|
}, L = (f, m, M) => {
|
|
2046
|
-
const P = s.value[f], W = a.value[m],
|
|
2047
|
-
if (!
|
|
2046
|
+
const P = s.value[f], W = a.value[m], D = P.format;
|
|
2047
|
+
if (!D)
|
|
2048
2048
|
switch (P.fieldtype) {
|
|
2049
2049
|
case "Check":
|
|
2050
2050
|
return M ? "✓" : "✗";
|
|
@@ -2055,7 +2055,7 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
2055
2055
|
default:
|
|
2056
2056
|
return M;
|
|
2057
2057
|
}
|
|
2058
|
-
return typeof
|
|
2058
|
+
return typeof D == "function" ? D(M, { table: r.value, row: W, column: P }) : typeof D == "string" ? Function(`"use strict";return (${D})`)()(M, { table: r.value, row: W, column: P }) : M;
|
|
2059
2059
|
}, _ = (f) => {
|
|
2060
2060
|
f.target instanceof Node && v.value.parent?.contains(f.target) || v.value.visible && (v.value.visible = !1);
|
|
2061
2061
|
}, G = (f, m) => m && f === 0 && m > 0 ? `${m}ch` : "inherit", ee = (f) => {
|
|
@@ -2077,7 +2077,7 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
2077
2077
|
const P = E.value.find((V) => V.id === f), W = E.value.find((V) => V.id === m);
|
|
2078
2078
|
if (!P || !W)
|
|
2079
2079
|
return console.warn("Cannot create connection: handle not found"), null;
|
|
2080
|
-
const
|
|
2080
|
+
const D = {
|
|
2081
2081
|
id: `connection-${f}-${m}`,
|
|
2082
2082
|
from: {
|
|
2083
2083
|
barId: P.barId,
|
|
@@ -2090,7 +2090,7 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
2090
2090
|
style: M?.style,
|
|
2091
2091
|
label: M?.label
|
|
2092
2092
|
};
|
|
2093
|
-
return k.value.push(
|
|
2093
|
+
return k.value.push(D), D;
|
|
2094
2094
|
}, O = (f) => {
|
|
2095
2095
|
const m = k.value.findIndex((M) => M.id === f);
|
|
2096
2096
|
return m >= 0 ? (k.value.splice(m, 1), !0) : !1;
|
|
@@ -2105,33 +2105,33 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
2105
2105
|
case "text":
|
|
2106
2106
|
return (typeof f == "object" && f !== null ? Object.values(f).join(" ") : String(f || "")).toLowerCase().includes(String(W).toLowerCase());
|
|
2107
2107
|
case "number": {
|
|
2108
|
-
const
|
|
2109
|
-
return !isNaN(
|
|
2108
|
+
const D = Number(f), V = Number(W);
|
|
2109
|
+
return !isNaN(D) && !isNaN(V) && D === V;
|
|
2110
2110
|
}
|
|
2111
2111
|
case "select":
|
|
2112
2112
|
return f === W;
|
|
2113
2113
|
case "checkbox":
|
|
2114
2114
|
return W === !0 ? !!f : !0;
|
|
2115
2115
|
case "date": {
|
|
2116
|
-
let
|
|
2116
|
+
let D;
|
|
2117
2117
|
if (typeof f == "number") {
|
|
2118
2118
|
const U = new Date(f), ue = (/* @__PURE__ */ new Date()).getFullYear();
|
|
2119
|
-
|
|
2119
|
+
D = new Date(ue, U.getMonth(), U.getDate());
|
|
2120
2120
|
} else
|
|
2121
|
-
|
|
2121
|
+
D = new Date(String(f));
|
|
2122
2122
|
const V = new Date(String(W));
|
|
2123
|
-
return
|
|
2123
|
+
return D.toDateString() === V.toDateString();
|
|
2124
2124
|
}
|
|
2125
2125
|
case "dateRange": {
|
|
2126
|
-
const
|
|
2127
|
-
if (!
|
|
2126
|
+
const D = m.startValue, V = m.endValue;
|
|
2127
|
+
if (!D && !V) return !0;
|
|
2128
2128
|
let U;
|
|
2129
2129
|
if (typeof f == "number") {
|
|
2130
2130
|
const ue = new Date(f), nt = (/* @__PURE__ */ new Date()).getFullYear();
|
|
2131
2131
|
U = new Date(nt, ue.getMonth(), ue.getDate());
|
|
2132
2132
|
} else
|
|
2133
2133
|
U = new Date(String(f));
|
|
2134
|
-
return !(
|
|
2134
|
+
return !(D && U < new Date(String(D)) || V && U > new Date(String(V)));
|
|
2135
2135
|
}
|
|
2136
2136
|
default:
|
|
2137
2137
|
return !0;
|
|
@@ -2184,13 +2184,13 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
2184
2184
|
const [m] = a.value.splice(f, 1);
|
|
2185
2185
|
delete u.value[f], delete i.value[f];
|
|
2186
2186
|
const M = {}, P = {};
|
|
2187
|
-
for (const [W,
|
|
2187
|
+
for (const [W, D] of Object.entries(u.value)) {
|
|
2188
2188
|
const V = parseInt(W);
|
|
2189
|
-
V > f ? M[V - 1] =
|
|
2189
|
+
V > f ? M[V - 1] = D : M[V] = D;
|
|
2190
2190
|
}
|
|
2191
|
-
for (const [W,
|
|
2191
|
+
for (const [W, D] of Object.entries(i.value)) {
|
|
2192
2192
|
const V = parseInt(W);
|
|
2193
|
-
V > f ? P[V - 1] =
|
|
2193
|
+
V > f ? P[V - 1] = D : P[V] = D;
|
|
2194
2194
|
}
|
|
2195
2195
|
return u.value = M, i.value = P, m;
|
|
2196
2196
|
},
|
|
@@ -2224,13 +2224,13 @@ const Ko = { class: "gantt-connection-overlay" }, Qo = {
|
|
|
2224
2224
|
const [M] = a.value.splice(f, 1);
|
|
2225
2225
|
a.value.splice(m, 0, M);
|
|
2226
2226
|
const P = {}, W = {};
|
|
2227
|
-
for (const [
|
|
2228
|
-
const U = parseInt(
|
|
2227
|
+
for (const [D, V] of Object.entries(u.value)) {
|
|
2228
|
+
const U = parseInt(D);
|
|
2229
2229
|
let ue = U;
|
|
2230
2230
|
U === f ? ue = m : f < m ? U > f && U <= m && (ue = U - 1) : U >= m && U < f && (ue = U + 1), P[ue] = V;
|
|
2231
2231
|
}
|
|
2232
|
-
for (const [
|
|
2233
|
-
const U = parseInt(
|
|
2232
|
+
for (const [D, V] of Object.entries(i.value)) {
|
|
2233
|
+
const U = parseInt(D);
|
|
2234
2234
|
let ue = U;
|
|
2235
2235
|
U === f ? ue = m : f < m ? U > f && U <= m && (ue = U - 1) : U >= m && U < f && (ue = U + 1), W[ue] = V;
|
|
2236
2236
|
}
|
|
@@ -2286,7 +2286,7 @@ const xl = {
|
|
|
2286
2286
|
}),
|
|
2287
2287
|
emits: /* @__PURE__ */ ke(["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"]),
|
|
2288
2288
|
setup(e, { expose: t, emit: o }) {
|
|
2289
|
-
const n = Ee(e, "rows"), s = Ee(e, "columns"), a = o, l = me("table"), u = s.value?.length ? s.value : bl(e.schema ?? []), i =
|
|
2289
|
+
const n = Ee(e, "rows"), s = Ee(e, "columns"), a = o, l = me("table"), u = s.value?.length ? s.value : bl(e.schema ?? []), i = At("aformLinkResolver", null), r = wl({
|
|
2290
2290
|
columns: u,
|
|
2291
2291
|
rows: n.value,
|
|
2292
2292
|
id: e.id,
|
|
@@ -2438,7 +2438,7 @@ const xl = {
|
|
|
2438
2438
|
store: H(r),
|
|
2439
2439
|
"onRow:action": k
|
|
2440
2440
|
}, {
|
|
2441
|
-
default:
|
|
2441
|
+
default: Dt(() => [
|
|
2442
2442
|
(h(!0), w(J, null, ve(x(b), (I, C) => (h(), w(J, {
|
|
2443
2443
|
key: I.name
|
|
2444
2444
|
}, [
|
|
@@ -2480,7 +2480,7 @@ const xl = {
|
|
|
2480
2480
|
ye(d.$slots, "footer", { data: H(r) }, void 0, !0),
|
|
2481
2481
|
ye(d.$slots, "modal", { data: H(r) }, () => [
|
|
2482
2482
|
K(Tt(wn, { store: H(r) }, {
|
|
2483
|
-
default:
|
|
2483
|
+
default: Dt(() => [
|
|
2484
2484
|
(h(), pe(Ze(H(r).modal.component), ft({
|
|
2485
2485
|
key: `${H(r).modal.rowIndex}:${H(r).modal.colIndex}`,
|
|
2486
2486
|
"col-index": H(r).modal.colIndex,
|
|
@@ -2490,7 +2490,7 @@ const xl = {
|
|
|
2490
2490
|
]),
|
|
2491
2491
|
_: 1
|
|
2492
2492
|
}, 8, ["store"]), [
|
|
2493
|
-
[
|
|
2493
|
+
[De, H(r).modal.visible]
|
|
2494
2494
|
])
|
|
2495
2495
|
], !0)
|
|
2496
2496
|
], 4)), [
|
|
@@ -2512,9 +2512,9 @@ function $l(e, t) {
|
|
|
2512
2512
|
t[0] || (t[0] = y("div", { class: "aloading-bar" }, null, -1))
|
|
2513
2513
|
]);
|
|
2514
2514
|
}
|
|
2515
|
-
const
|
|
2515
|
+
const Al = /* @__PURE__ */ Fe(Ml, [["render", $l], ["__scopeId", "data-v-a930a25b"]]), Tl = {}, Dl = { class: "aloading" }, Sl = { class: "aloading-header" };
|
|
2516
2516
|
function Rl(e, t) {
|
|
2517
|
-
return h(), w("div",
|
|
2517
|
+
return h(), w("div", Dl, [
|
|
2518
2518
|
y("h2", Sl, [
|
|
2519
2519
|
ye(e.$slots, "default", {}, void 0, !0)
|
|
2520
2520
|
]),
|
|
@@ -2523,7 +2523,7 @@ function Rl(e, t) {
|
|
|
2523
2523
|
}
|
|
2524
2524
|
const Ll = /* @__PURE__ */ Fe(Tl, [["render", Rl], ["__scopeId", "data-v-e1165876"]]);
|
|
2525
2525
|
function Hl(e) {
|
|
2526
|
-
e.component("ACell", wo), e.component("AExpansionRow", Mo), e.component("AGanttCell", So), e.component("ARow", gn), e.component("ARowActions", ut), e.component("ATable", Il), e.component("ATableHeader", yn), e.component("ATableLoading",
|
|
2526
|
+
e.component("ACell", wo), e.component("AExpansionRow", Mo), e.component("AGanttCell", So), e.component("ARow", gn), e.component("ARowActions", ut), e.component("ATable", Il), e.component("ATableHeader", yn), e.component("ATableLoading", Al), e.component("ATableLoadingBar", Ll), e.component("ATableModal", wn);
|
|
2527
2527
|
}
|
|
2528
2528
|
const Vl = { class: "aform_form-element" }, Pl = { class: "aform_field-label" }, Fl = { class: "aform_display-value" }, Bl = ["for"], Ol = { class: "aform_checkbox-container aform_input-field" }, Zl = ["id", "disabled", "required"], _l = ["innerHTML"], Nl = /* @__PURE__ */ le({
|
|
2529
2529
|
__name: "ACheckbox",
|
|
@@ -2567,17 +2567,17 @@ const Vl = { class: "aform_form-element" }, Pl = { class: "aform_field-label" },
|
|
|
2567
2567
|
class: "aform_error",
|
|
2568
2568
|
innerHTML: e.validation.errorMessage
|
|
2569
2569
|
}, null, 8, _l), [
|
|
2570
|
-
[
|
|
2570
|
+
[De, e.validation.errorMessage]
|
|
2571
2571
|
])
|
|
2572
2572
|
], 64))
|
|
2573
2573
|
]));
|
|
2574
2574
|
}
|
|
2575
|
-
}),
|
|
2575
|
+
}), Ae = (e, t) => {
|
|
2576
2576
|
const o = e.__vccOpts || e;
|
|
2577
2577
|
for (const [n, s] of t)
|
|
2578
2578
|
o[n] = s;
|
|
2579
2579
|
return o;
|
|
2580
|
-
}, Wl = /* @__PURE__ */
|
|
2580
|
+
}, Wl = /* @__PURE__ */ Ae(Nl, [["__scopeId", "data-v-cc185b72"]]), zl = /* @__PURE__ */ le({
|
|
2581
2581
|
__name: "AComboBox",
|
|
2582
2582
|
props: {
|
|
2583
2583
|
schema: {},
|
|
@@ -2599,7 +2599,7 @@ const Vl = { class: "aform_form-element" }, Pl = { class: "aform_field-label" },
|
|
|
2599
2599
|
"cell-data": e.cellData,
|
|
2600
2600
|
class: "amodal"
|
|
2601
2601
|
}, {
|
|
2602
|
-
default:
|
|
2602
|
+
default: Dt(() => [...o[0] || (o[0] = [
|
|
2603
2603
|
y("div", null, [
|
|
2604
2604
|
y("input", { type: "text" }),
|
|
2605
2605
|
y("input", { type: "text" }),
|
|
@@ -2654,12 +2654,12 @@ const Vl = { class: "aform_form-element" }, Pl = { class: "aform_field-label" },
|
|
|
2654
2654
|
K(y("p", {
|
|
2655
2655
|
innerHTML: e.validation.errorMessage
|
|
2656
2656
|
}, null, 8, Yl), [
|
|
2657
|
-
[
|
|
2657
|
+
[De, e.validation.errorMessage]
|
|
2658
2658
|
])
|
|
2659
2659
|
], 64))
|
|
2660
2660
|
]));
|
|
2661
2661
|
}
|
|
2662
|
-
}), Xl = /* @__PURE__ */
|
|
2662
|
+
}), Xl = /* @__PURE__ */ Ae(jl, [["__scopeId", "data-v-8e467bb3"]]);
|
|
2663
2663
|
function bn(e, t) {
|
|
2664
2664
|
return mt() ? (pt(e, t), !0) : !1;
|
|
2665
2665
|
}
|
|
@@ -2705,21 +2705,21 @@ function ta(e, t, o) {
|
|
|
2705
2705
|
const kn = xn ? window : void 0, na = xn ? window.document : void 0;
|
|
2706
2706
|
function We(e) {
|
|
2707
2707
|
var t;
|
|
2708
|
-
const o =
|
|
2708
|
+
const o = A(e);
|
|
2709
2709
|
return (t = o?.$el) !== null && t !== void 0 ? t : o;
|
|
2710
2710
|
}
|
|
2711
2711
|
function Mt(...e) {
|
|
2712
2712
|
const t = (n, s, a, l) => (n.addEventListener(s, a, l), () => n.removeEventListener(s, a, l)), o = T(() => {
|
|
2713
|
-
const n = It(
|
|
2713
|
+
const n = It(A(e[0])).filter((s) => s != null);
|
|
2714
2714
|
return n.every((s) => typeof s != "string") ? n : void 0;
|
|
2715
2715
|
});
|
|
2716
2716
|
return ta(() => {
|
|
2717
2717
|
var n, s;
|
|
2718
2718
|
return [
|
|
2719
2719
|
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((a) => We(a))) !== null && n !== void 0 ? n : [kn].filter((a) => a != null),
|
|
2720
|
-
It(
|
|
2720
|
+
It(A(o.value ? e[1] : e[0])),
|
|
2721
2721
|
It(H(o.value ? e[2] : e[1])),
|
|
2722
|
-
|
|
2722
|
+
A(o.value ? e[3] : e[2])
|
|
2723
2723
|
];
|
|
2724
2724
|
}, ([n, s, a, l], u, i) => {
|
|
2725
2725
|
if (!n?.length || !s?.length || !a?.length) return;
|
|
@@ -2737,7 +2737,7 @@ function en(e, t, o = {}) {
|
|
|
2737
2737
|
trigger: Ke
|
|
2738
2738
|
} : Ke;
|
|
2739
2739
|
let i = !0;
|
|
2740
|
-
const r = (d) =>
|
|
2740
|
+
const r = (d) => A(s).some((p) => {
|
|
2741
2741
|
if (typeof p == "string") return Array.from(n.document.querySelectorAll(p)).some((b) => b === d.target || d.composedPath().includes(b));
|
|
2742
2742
|
{
|
|
2743
2743
|
const b = We(p);
|
|
@@ -2745,11 +2745,11 @@ function en(e, t, o = {}) {
|
|
|
2745
2745
|
}
|
|
2746
2746
|
});
|
|
2747
2747
|
function c(d) {
|
|
2748
|
-
const p =
|
|
2748
|
+
const p = A(d);
|
|
2749
2749
|
return p && p.$.subTree.shapeFlag === 16;
|
|
2750
2750
|
}
|
|
2751
2751
|
function v(d, p) {
|
|
2752
|
-
const b =
|
|
2752
|
+
const b = A(d), $ = b.$.subTree && b.$.subTree.children;
|
|
2753
2753
|
return $ == null || !Array.isArray($) ? !1 : $.some((I) => I.el === p.target || p.composedPath().includes(I.el));
|
|
2754
2754
|
}
|
|
2755
2755
|
const x = (d) => {
|
|
@@ -2820,7 +2820,7 @@ function aa(e = {}) {
|
|
|
2820
2820
|
o.value = null, u.value && u.value.value && (u.value.value = "", s(null));
|
|
2821
2821
|
}, r = (v) => {
|
|
2822
2822
|
const x = u.value;
|
|
2823
|
-
x && (x.multiple =
|
|
2823
|
+
x && (x.multiple = A(v.multiple), x.accept = A(v.accept), x.webkitdirectory = A(v.directory), Ql(v, "capture") && (x.capture = A(v.capture)));
|
|
2824
2824
|
}, c = (v) => {
|
|
2825
2825
|
const x = u.value;
|
|
2826
2826
|
if (!x) return;
|
|
@@ -2829,7 +2829,7 @@ function aa(e = {}) {
|
|
|
2829
2829
|
...e,
|
|
2830
2830
|
...v
|
|
2831
2831
|
};
|
|
2832
|
-
r(g),
|
|
2832
|
+
r(g), A(g.reset) && i(), x.click();
|
|
2833
2833
|
};
|
|
2834
2834
|
return gt(() => {
|
|
2835
2835
|
r(e);
|
|
@@ -2849,7 +2849,7 @@ function sa(e, t = !1) {
|
|
|
2849
2849
|
const o = fe(t);
|
|
2850
2850
|
let n = "";
|
|
2851
2851
|
oe(ea(e), (l) => {
|
|
2852
|
-
const u = Ct(
|
|
2852
|
+
const u = Ct(A(l));
|
|
2853
2853
|
if (u) {
|
|
2854
2854
|
const i = u;
|
|
2855
2855
|
if (Et.get(i) || Et.set(i, i.style.overflow), i.style.overflow !== "hidden" && (n = i.style.overflow), i.style.overflow === "hidden") return o.value = !0;
|
|
@@ -2857,10 +2857,10 @@ function sa(e, t = !1) {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
}, { immediate: !0 });
|
|
2859
2859
|
const s = () => {
|
|
2860
|
-
const l = Ct(
|
|
2860
|
+
const l = Ct(A(e));
|
|
2861
2861
|
!l || o.value || (l.style.overflow = "hidden", o.value = !0);
|
|
2862
2862
|
}, a = () => {
|
|
2863
|
-
const l = Ct(
|
|
2863
|
+
const l = Ct(A(e));
|
|
2864
2864
|
!l || !o.value || (l.style.overflow = n, Et.delete(l), o.value = !1);
|
|
2865
2865
|
};
|
|
2866
2866
|
return bn(a), T({
|
|
@@ -3006,7 +3006,7 @@ const ia = {
|
|
|
3006
3006
|
onClick: ge((p) => l(k), ["stop"])
|
|
3007
3007
|
}, N(k), 11, ma))), 128))
|
|
3008
3008
|
], 512), [
|
|
3009
|
-
[
|
|
3009
|
+
[De, n.open]
|
|
3010
3010
|
]),
|
|
3011
3011
|
y("label", null, N(e.label), 1)
|
|
3012
3012
|
])
|
|
@@ -3014,7 +3014,7 @@ const ia = {
|
|
|
3014
3014
|
[H(In), s]
|
|
3015
3015
|
]);
|
|
3016
3016
|
}
|
|
3017
|
-
}), ha = /* @__PURE__ */
|
|
3017
|
+
}), ha = /* @__PURE__ */ Ae(pa, [["__scopeId", "data-v-c823d475"]]);
|
|
3018
3018
|
function Mn(e, t) {
|
|
3019
3019
|
return mt() ? (pt(e, t), !0) : !1;
|
|
3020
3020
|
}
|
|
@@ -3034,21 +3034,21 @@ function ka(e, t, o) {
|
|
|
3034
3034
|
const Ge = ga ? window : void 0;
|
|
3035
3035
|
function Ue(e) {
|
|
3036
3036
|
var t;
|
|
3037
|
-
const o =
|
|
3037
|
+
const o = A(e);
|
|
3038
3038
|
return (t = o?.$el) !== null && t !== void 0 ? t : o;
|
|
3039
3039
|
}
|
|
3040
3040
|
function et(...e) {
|
|
3041
3041
|
const t = (n, s, a, l) => (n.addEventListener(s, a, l), () => n.removeEventListener(s, a, l)), o = T(() => {
|
|
3042
|
-
const n = ct(
|
|
3042
|
+
const n = ct(A(e[0])).filter((s) => s != null);
|
|
3043
3043
|
return n.every((s) => typeof s != "string") ? n : void 0;
|
|
3044
3044
|
});
|
|
3045
3045
|
return ka(() => {
|
|
3046
3046
|
var n, s;
|
|
3047
3047
|
return [
|
|
3048
3048
|
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((a) => Ue(a))) !== null && n !== void 0 ? n : [Ge].filter((a) => a != null),
|
|
3049
|
-
ct(
|
|
3049
|
+
ct(A(o.value ? e[1] : e[0])),
|
|
3050
3050
|
ct(H(o.value ? e[2] : e[1])),
|
|
3051
|
-
|
|
3051
|
+
A(o.value ? e[3] : e[2])
|
|
3052
3052
|
];
|
|
3053
3053
|
}, ([n, s, a, l], u, i) => {
|
|
3054
3054
|
if (!n?.length || !s?.length || !a?.length) return;
|
|
@@ -3076,7 +3076,7 @@ function Ca(e, t, o = {}) {
|
|
|
3076
3076
|
const l = /* @__PURE__ */ Ma(() => n && "MutationObserver" in n), u = () => {
|
|
3077
3077
|
a && (a.disconnect(), a = void 0);
|
|
3078
3078
|
}, i = oe(T(() => {
|
|
3079
|
-
const v = ct(
|
|
3079
|
+
const v = ct(A(e)).map(Ue).filter(ya);
|
|
3080
3080
|
return new Set(v);
|
|
3081
3081
|
}), (v) => {
|
|
3082
3082
|
u(), l.value && v.size && (a = new MutationObserver(t), v.forEach((x) => a.observe(x, s)));
|
|
@@ -3137,14 +3137,14 @@ function $a(e = {}) {
|
|
|
3137
3137
|
}
|
|
3138
3138
|
return s && Ea(u, i, { document: a }), i(), u;
|
|
3139
3139
|
}
|
|
3140
|
-
const
|
|
3140
|
+
const Aa = "focusin", Ta = "focusout", Da = ":focus-within";
|
|
3141
3141
|
function Sa(e, t = {}) {
|
|
3142
3142
|
const { window: o = Ge } = t, n = T(() => Ue(e)), s = fe(!1), a = T(() => s.value);
|
|
3143
3143
|
if (!o || !(/* @__PURE__ */ $a(t)).value) return { focused: a };
|
|
3144
3144
|
const l = { passive: !0 };
|
|
3145
|
-
return et(n,
|
|
3145
|
+
return et(n, Aa, () => s.value = !0, l), et(n, Ta, () => {
|
|
3146
3146
|
var u, i, r;
|
|
3147
|
-
return s.value = (u = (i = n.value) === null || i === void 0 || (r = i.matches) === null || r === void 0 ? void 0 : r.call(i,
|
|
3147
|
+
return s.value = (u = (i = n.value) === null || i === void 0 || (r = i.matches) === null || r === void 0 ? void 0 : r.call(i, Da)) !== null && u !== void 0 ? u : !1;
|
|
3148
3148
|
}, l), { focused: a };
|
|
3149
3149
|
}
|
|
3150
3150
|
function Ra(e, { window: t = Ge, scrollTarget: o } = {}) {
|
|
@@ -3507,7 +3507,7 @@ const Fa = { class: "aform_display-value" }, Ba = { key: 0 }, Oa = {
|
|
|
3507
3507
|
])
|
|
3508
3508
|
], 512));
|
|
3509
3509
|
}
|
|
3510
|
-
}), za = /* @__PURE__ */
|
|
3510
|
+
}), za = /* @__PURE__ */ Ae(Wa, [["__scopeId", "data-v-9da05d06"]]), Ua = /* @__PURE__ */ le({
|
|
3511
3511
|
__name: "CollapseButton",
|
|
3512
3512
|
props: {
|
|
3513
3513
|
collapsed: { type: Boolean }
|
|
@@ -3517,7 +3517,7 @@ const Fa = { class: "aform_display-value" }, Ba = { key: 0 }, Oa = {
|
|
|
3517
3517
|
class: re(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
|
|
3518
3518
|
}, "×", 2));
|
|
3519
3519
|
}
|
|
3520
|
-
}), qa = /* @__PURE__ */
|
|
3520
|
+
}), qa = /* @__PURE__ */ Ae(Ua, [["__scopeId", "data-v-6f1c1b45"]]), Ga = { class: "aform" }, Ya = {
|
|
3521
3521
|
key: 0,
|
|
3522
3522
|
class: "aform-nested-section"
|
|
3523
3523
|
}, ja = {
|
|
@@ -3600,7 +3600,7 @@ const Fa = { class: "aform_display-value" }, Ba = { key: 0 }, Oa = {
|
|
|
3600
3600
|
], 64))), 128))
|
|
3601
3601
|
]));
|
|
3602
3602
|
}
|
|
3603
|
-
}), En = /* @__PURE__ */
|
|
3603
|
+
}), En = /* @__PURE__ */ Ae(Xa, [["__scopeId", "data-v-70086a8f"]]), Ja = /* @__PURE__ */ le({
|
|
3604
3604
|
__name: "AFieldset",
|
|
3605
3605
|
props: {
|
|
3606
3606
|
schema: {},
|
|
@@ -3633,12 +3633,12 @@ const Fa = { class: "aform_display-value" }, Ba = { key: 0 }, Oa = {
|
|
|
3633
3633
|
schema: s.value,
|
|
3634
3634
|
mode: e.mode
|
|
3635
3635
|
}, null, 8, ["data", "schema", "mode"]), [
|
|
3636
|
-
[
|
|
3636
|
+
[De, !o.value]
|
|
3637
3637
|
])
|
|
3638
3638
|
], !0)
|
|
3639
3639
|
]));
|
|
3640
3640
|
}
|
|
3641
|
-
}), Ka = /* @__PURE__ */
|
|
3641
|
+
}), Ka = /* @__PURE__ */ Ae(Ja, [["__scopeId", "data-v-3cefeba6"]]), Qa = { class: "aform_form-element aform_file-attach aform__grid--full" }, es = {
|
|
3642
3642
|
key: 0,
|
|
3643
3643
|
class: "aform_file-attach-feedback"
|
|
3644
3644
|
}, ts = {
|
|
@@ -3698,7 +3698,7 @@ const Fa = { class: "aform_display-value" }, Ba = { key: 0 }, Oa = {
|
|
|
3698
3698
|
], 64))
|
|
3699
3699
|
]));
|
|
3700
3700
|
}
|
|
3701
|
-
}), ss = /* @__PURE__ */
|
|
3701
|
+
}), ss = /* @__PURE__ */ Ae(as, [["__scopeId", "data-v-6543d39a"]]), rs = { class: "aform_form-element" }, is = {
|
|
3702
3702
|
key: 0,
|
|
3703
3703
|
class: "aform_display-value"
|
|
3704
3704
|
}, us = { class: "aform_form-link-wrapper" }, cs = { class: "input-group" }, ds = ["disabled", "onKeydown"], fs = ["onKeydown"], vs = {
|
|
@@ -3736,7 +3736,7 @@ const Fa = { class: "aform_display-value" }, Ba = { key: 0 }, Oa = {
|
|
|
3736
3736
|
const t = Ee(e, "modelValue"), o = T(() => {
|
|
3737
3737
|
const C = t.value?.id;
|
|
3738
3738
|
return C != null && C !== "";
|
|
3739
|
-
}), n = T(() => o.value ? e.formatter ? e.formatter(t.value) : t.value.displayText ?? String(t.value.id) : "—"), s = S(o.value ? n.value : ""), a = S(!1), l = S(!1), u = S([]), i = S(null), r =
|
|
3739
|
+
}), n = T(() => o.value ? e.formatter ? e.formatter(t.value) : t.value.displayText ?? String(t.value.id) : "—"), s = S(o.value ? n.value : ""), a = S(!1), l = S(!1), u = S([]), i = S(null), r = At("aformLinkNavigator", null), c = At("aformLinkResolver", null);
|
|
3740
3740
|
oe(
|
|
3741
3741
|
() => t.value,
|
|
3742
3742
|
(C) => {
|
|
@@ -3749,14 +3749,18 @@ const Fa = { class: "aform_display-value" }, Ba = { key: 0 }, Oa = {
|
|
|
3749
3749
|
if (!(!C || t.value.displayText))
|
|
3750
3750
|
try {
|
|
3751
3751
|
let R;
|
|
3752
|
-
e.filterFunction ? R = (await (typeof e.filterFunction == "string" ? St(e.filterFunction) : e.filterFunction)(String(C))).find((Z) => String(Z.id) === String(C))?.displayText
|
|
3752
|
+
e.filterFunction ? (R = (await (typeof e.filterFunction == "string" ? St(e.filterFunction) : e.filterFunction)(String(C))).find((Z) => String(Z.id) === String(C))?.displayText, R === void 0 && console.warn(
|
|
3753
|
+
`[AFormLink] filterFunction returned no matching result for id "${C}". The function must return an item whose \`id\` exactly matches the search string.`
|
|
3754
|
+
)) : c && e.doctype && (R = await c(e.doctype, C.toString()) ?? void 0), R && (s.value = R, t.value = { ...t.value, displayText: R });
|
|
3753
3755
|
} catch {
|
|
3754
3756
|
}
|
|
3755
3757
|
},
|
|
3756
3758
|
{ immediate: !0 }
|
|
3757
3759
|
);
|
|
3758
3760
|
const v = () => {
|
|
3759
|
-
r && e.doctype
|
|
3761
|
+
r && e.doctype ? r.navigate(e.doctype, t.value.id) : r && !e.doctype && console.warn(
|
|
3762
|
+
"[AFormLink] Navigation requested but `doctype` prop is missing. Add `options` (or `doctype`) to the Link field definition to enable navigation."
|
|
3763
|
+
);
|
|
3760
3764
|
}, x = async (C) => {
|
|
3761
3765
|
if (!(!e.filterFunction || e.mode === "read")) {
|
|
3762
3766
|
i.value = null, a.value = !0, e.isAsync && (l.value = !0);
|
|
@@ -3828,7 +3832,7 @@ const Fa = { class: "aform_display-value" }, Ba = { key: 0 }, Oa = {
|
|
|
3828
3832
|
], 64))
|
|
3829
3833
|
]));
|
|
3830
3834
|
}
|
|
3831
|
-
}), ys = /* @__PURE__ */
|
|
3835
|
+
}), ys = /* @__PURE__ */ Ae(gs, [["__scopeId", "data-v-e36b0e4d"]]), ws = { class: "aform_form-element" }, bs = { class: "aform_display-value" }, xs = { class: "aform_field-label" }, ks = ["id", "disabled", "required"], Is = ["for"], Ms = ["innerHTML"], Cs = /* @__PURE__ */ le({
|
|
3832
3836
|
__name: "ANumericInput",
|
|
3833
3837
|
props: /* @__PURE__ */ ke({
|
|
3834
3838
|
schema: {},
|
|
@@ -3868,7 +3872,7 @@ const Fa = { class: "aform_display-value" }, Ba = { key: 0 }, Oa = {
|
|
|
3868
3872
|
class: "aform_error",
|
|
3869
3873
|
innerHTML: e.validation.errorMessage
|
|
3870
3874
|
}, null, 8, Ms), [
|
|
3871
|
-
[
|
|
3875
|
+
[De, e.validation.errorMessage]
|
|
3872
3876
|
])
|
|
3873
3877
|
], 64))
|
|
3874
3878
|
]));
|
|
@@ -3891,7 +3895,7 @@ function $s(e) {
|
|
|
3891
3895
|
}
|
|
3892
3896
|
return t;
|
|
3893
3897
|
}
|
|
3894
|
-
function
|
|
3898
|
+
function As(e, t) {
|
|
3895
3899
|
let o = e;
|
|
3896
3900
|
const n = [t, "/", "-", "(", ")", " "];
|
|
3897
3901
|
for (const s of n)
|
|
@@ -3909,10 +3913,10 @@ function Ts(e, t, o) {
|
|
|
3909
3913
|
}
|
|
3910
3914
|
return n.slice(0, t.length);
|
|
3911
3915
|
}
|
|
3912
|
-
function
|
|
3916
|
+
function Ds(e, t) {
|
|
3913
3917
|
const o = $s(t);
|
|
3914
3918
|
if (!o) return;
|
|
3915
|
-
const n = "#", s = e.value, a =
|
|
3919
|
+
const n = "#", s = e.value, a = As(s, n);
|
|
3916
3920
|
if (a) {
|
|
3917
3921
|
const l = Ts(a, o, n), u = t.instance;
|
|
3918
3922
|
u?.maskFilled && (u.maskFilled = !l.includes(n)), e.value = l;
|
|
@@ -3950,7 +3954,7 @@ const Ss = { class: "aform_form-element" }, Rs = { class: "aform_display-value"
|
|
|
3950
3954
|
required: e.required
|
|
3951
3955
|
}, null, 8, Hs), [
|
|
3952
3956
|
[be, o.value],
|
|
3953
|
-
[H(
|
|
3957
|
+
[H(Ds), e.mask]
|
|
3954
3958
|
]),
|
|
3955
3959
|
y("label", {
|
|
3956
3960
|
class: "aform_field-label",
|
|
@@ -3960,7 +3964,7 @@ const Ss = { class: "aform_form-element" }, Rs = { class: "aform_display-value"
|
|
|
3960
3964
|
class: "aform_error",
|
|
3961
3965
|
innerHTML: e.validation.errorMessage
|
|
3962
3966
|
}, null, 8, Ps), [
|
|
3963
|
-
[
|
|
3967
|
+
[De, e.validation.errorMessage]
|
|
3964
3968
|
])
|
|
3965
3969
|
], 64))
|
|
3966
3970
|
]));
|
|
@@ -4048,7 +4052,7 @@ const Ss = { class: "aform_form-element" }, Rs = { class: "aform_display-value"
|
|
|
4048
4052
|
])
|
|
4049
4053
|
]));
|
|
4050
4054
|
}
|
|
4051
|
-
}), Qs = /* @__PURE__ */
|
|
4055
|
+
}), Qs = /* @__PURE__ */ Ae(Xs, [["__scopeId", "data-v-d9ffd0a7"]]);
|
|
4052
4056
|
function er(e) {
|
|
4053
4057
|
e.use(Hl), e.component("ACheckbox", Wl), e.component("AComboBox", zl), e.component("ADate", Xl), e.component("ADropdown", ha), e.component("ADatePicker", za), e.component("AFieldset", Ka), e.component("AFileAttach", ss), e.component("AForm", En), e.component("AFormLink", ys), e.component("ANumericInput", Cs), e.component("ATextInput", Fs);
|
|
4054
4058
|
}
|