@stonecrop/aform 0.10.16 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aform.d.ts +3 -127
- package/dist/aform.js +451 -458
- package/dist/aform.js.map +1 -1
- package/dist/aform.umd.cjs +51 -0
- package/dist/aform.umd.cjs.map +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/index.js +0 -1
- package/dist/src/directives/mask.js +104 -0
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +32 -0
- package/dist/src/tsdoc-metadata.json +11 -0
- package/dist/src/types/index.d.ts +3 -115
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/types/index.js +0 -0
- package/{src/utils/doctype.ts → dist/src/utils/doctype.js} +2 -4
- package/package.json +4 -4
- package/src/components/AForm.vue +5 -4
- package/src/directives/mask.ts +1 -1
- package/src/index.ts +0 -1
- package/src/types/index.ts +3 -129
- package/dist/theme/custom_themes.css +0 -6
- package/dist/theme/fields.css +0 -84
- package/dist/theme/login.css +0 -2
- package/dist/theme/purple_theme.css +0 -9
package/dist/aform.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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 m, createElementBlock as k, unref as V, normalizeClass as se, normalizeStyle as be, createBlock as ve, resolveDynamicComponent as Oe, mergeProps as dt, toDisplayString as N, createElementVNode as w, withModifiers as Ie, withDirectives as K, Fragment as X, renderList as pe, vShow as Ce, createCommentVNode as Y, renderSlot as he, createTextVNode as Dt, onMounted as Ee, watch as ne, onBeforeUnmount as an, nextTick as ft, toValue as E, shallowRef as ue, getCurrentScope as vt, onScopeDispose as pt, reactive as sn, vModelText as we, vModelCheckbox as rn, vModelSelect as In, getCurrentInstance as mt, watchEffect as ht, useCssVars as Mn, onUnmounted as Cn, useModel as Me, createVNode as At, withCtx as $t, mergeModels as xe, isRef as En, toRefs as An, customRef as St, toRef as un, readonly as Rt, resolveComponent as $n, withKeys as Ne } from "vue";
|
|
2
2
|
import { defineStore as Tn } from "pinia";
|
|
3
|
-
import './assets/index.css';function
|
|
4
|
-
return
|
|
3
|
+
import './assets/index.css';function cn(e, t) {
|
|
4
|
+
return vt() ? (pt(e, t), !0) : !1;
|
|
5
5
|
}
|
|
6
6
|
const Dn = typeof window < "u" && typeof document < "u";
|
|
7
7
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -37,7 +37,7 @@ 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((g) => t(p, y, g, i))));
|
|
41
41
|
u(() => {
|
|
42
42
|
d.forEach((p) => p());
|
|
43
43
|
});
|
|
@@ -45,7 +45,7 @@ function Qe(...e) {
|
|
|
45
45
|
}
|
|
46
46
|
// @__NO_SIDE_EFFECTS__
|
|
47
47
|
function _n() {
|
|
48
|
-
const e = ue(!1), t =
|
|
48
|
+
const e = ue(!1), t = mt();
|
|
49
49
|
return t && Ee(() => {
|
|
50
50
|
e.value = !0;
|
|
51
51
|
}, t), e;
|
|
@@ -71,7 +71,7 @@ function On(e, t, o = {}) {
|
|
|
71
71
|
}), i = () => r?.takeRecords(), d = () => {
|
|
72
72
|
u(), l();
|
|
73
73
|
};
|
|
74
|
-
return
|
|
74
|
+
return cn(d), {
|
|
75
75
|
isSupported: s,
|
|
76
76
|
stop: d,
|
|
77
77
|
takeRecords: i
|
|
@@ -83,11 +83,11 @@ function Bn(e, t, o = {}) {
|
|
|
83
83
|
let s;
|
|
84
84
|
const l = (d) => {
|
|
85
85
|
s?.(), s = d;
|
|
86
|
-
}, u =
|
|
86
|
+
}, u = ht(() => {
|
|
87
87
|
const d = We(e);
|
|
88
88
|
if (d) {
|
|
89
89
|
const { stop: p } = On(a, (y) => {
|
|
90
|
-
y.map((
|
|
90
|
+
y.map((g) => [...g.removedNodes]).flat().some((g) => g === d || g.contains(d)) && t(y);
|
|
91
91
|
}, {
|
|
92
92
|
window: n,
|
|
93
93
|
childList: !0,
|
|
@@ -98,7 +98,7 @@ function Bn(e, t, o = {}) {
|
|
|
98
98
|
}, { flush: r }), i = () => {
|
|
99
99
|
u(), l();
|
|
100
100
|
};
|
|
101
|
-
return
|
|
101
|
+
return cn(i), i;
|
|
102
102
|
}
|
|
103
103
|
// @__NO_SIDE_EFFECTS__
|
|
104
104
|
function Fn(e = {}) {
|
|
@@ -244,7 +244,7 @@ const Ae = (e) => {
|
|
|
244
244
|
ArrowDown: "down",
|
|
245
245
|
ArrowLeft: "left",
|
|
246
246
|
ArrowRight: "right"
|
|
247
|
-
},
|
|
247
|
+
}, gt = {
|
|
248
248
|
"keydown.up": (e) => {
|
|
249
249
|
const t = Wt(e);
|
|
250
250
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
@@ -336,24 +336,24 @@ function Pt(e) {
|
|
|
336
336
|
}, a = (s) => (l) => {
|
|
337
337
|
const u = Yn[l.key] || l.key.toLowerCase();
|
|
338
338
|
if (nt.includes(u)) return;
|
|
339
|
-
const i = s.handlers ||
|
|
339
|
+
const i = s.handlers || gt;
|
|
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 g = i[d], x = y.filter((f) => nt.includes(f)), b = nt.some((f) => {
|
|
344
|
+
const h = f.charAt(0).toUpperCase() + f.slice(1);
|
|
345
|
+
return l.getModifierState(h);
|
|
346
346
|
});
|
|
347
|
-
if (
|
|
347
|
+
if (x.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 h = f.charAt(0).toUpperCase() + f.slice(1);
|
|
352
|
+
l.getModifierState(h) && g(l);
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
355
|
} else
|
|
356
|
-
b ||
|
|
356
|
+
b || g(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)), g = ne(y, (x) => {
|
|
365
|
+
x ? p.addEventListener("keydown", i) : p.removeEventListener("keydown", i);
|
|
366
366
|
});
|
|
367
|
-
r.push(
|
|
367
|
+
r.push(g);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
}), an(() => {
|
|
@@ -373,9 +373,9 @@ function Pt(e) {
|
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
375
|
function Ot(e, t) {
|
|
376
|
-
return
|
|
376
|
+
return vt() ? (pt(e, t), !0) : !1;
|
|
377
377
|
}
|
|
378
|
-
const
|
|
378
|
+
const dn = typeof window < "u" && typeof document < "u";
|
|
379
379
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
380
380
|
const Xn = (e) => e != null, jn = Object.prototype.toString, Jn = (e) => jn.call(e) === "[object Object]", Pe = () => {
|
|
381
381
|
};
|
|
@@ -420,14 +420,14 @@ function rt(e) {
|
|
|
420
420
|
return Array.isArray(e) ? e : [e];
|
|
421
421
|
}
|
|
422
422
|
function to(e) {
|
|
423
|
-
return
|
|
423
|
+
return mt();
|
|
424
424
|
}
|
|
425
425
|
// @__NO_SIDE_EFFECTS__
|
|
426
426
|
function no(e, t = 200, o = {}) {
|
|
427
427
|
return Kn(eo(t, o), e);
|
|
428
428
|
}
|
|
429
429
|
function oo(e, t = {}) {
|
|
430
|
-
if (!
|
|
430
|
+
if (!En(e)) return An(e);
|
|
431
431
|
const o = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
|
|
432
432
|
for (const n in e.value) o[n] = St(() => ({
|
|
433
433
|
get() {
|
|
@@ -451,7 +451,7 @@ function oo(e, t = {}) {
|
|
|
451
451
|
return o;
|
|
452
452
|
}
|
|
453
453
|
function lo(e, t = !0, o) {
|
|
454
|
-
to() ? Ee(e, o) : t ? e() :
|
|
454
|
+
to() ? Ee(e, o) : t ? e() : ft(e);
|
|
455
455
|
}
|
|
456
456
|
function ao(e, t, o) {
|
|
457
457
|
return ne(e, t, {
|
|
@@ -459,7 +459,7 @@ function ao(e, t, o) {
|
|
|
459
459
|
immediate: !0
|
|
460
460
|
});
|
|
461
461
|
}
|
|
462
|
-
const et =
|
|
462
|
+
const et = dn ? window : void 0;
|
|
463
463
|
function ye(e) {
|
|
464
464
|
var t;
|
|
465
465
|
const o = E(e);
|
|
@@ -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((g) => t(p, y, g, i))));
|
|
484
484
|
u(() => {
|
|
485
485
|
d.forEach((p) => p());
|
|
486
486
|
});
|
|
@@ -494,24 +494,24 @@ function Tt(e, t, o = {}) {
|
|
|
494
494
|
trigger: Pe
|
|
495
495
|
} : Pe;
|
|
496
496
|
let u = !0;
|
|
497
|
-
const i = (f) => E(a).some((
|
|
498
|
-
if (typeof
|
|
497
|
+
const i = (f) => E(a).some((h) => {
|
|
498
|
+
if (typeof h == "string") return Array.from(n.document.querySelectorAll(h)).some((I) => I === f.target || f.composedPath().includes(I));
|
|
499
499
|
{
|
|
500
|
-
const I = ye(
|
|
500
|
+
const I = ye(h);
|
|
501
501
|
return I && (f.target === I || f.composedPath().includes(I));
|
|
502
502
|
}
|
|
503
503
|
});
|
|
504
504
|
function d(f) {
|
|
505
|
-
const
|
|
506
|
-
return
|
|
505
|
+
const h = E(f);
|
|
506
|
+
return h && h.$.subTree.shapeFlag === 16;
|
|
507
507
|
}
|
|
508
|
-
function p(f,
|
|
508
|
+
function p(f, h) {
|
|
509
509
|
const I = E(f), C = I.$.subTree && I.$.subTree.children;
|
|
510
|
-
return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.el ===
|
|
510
|
+
return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.el === h.target || h.composedPath().includes($.el));
|
|
511
511
|
}
|
|
512
512
|
const y = (f) => {
|
|
513
|
-
const
|
|
514
|
-
if (f.target != null && !(!(
|
|
513
|
+
const h = ye(e);
|
|
514
|
+
if (f.target != null && !(!(h instanceof Element) && d(e) && p(e, f)) && !(!h || h === f.target || f.composedPath().includes(h))) {
|
|
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 g = !1;
|
|
523
|
+
const x = [
|
|
524
524
|
He(n, "click", (f) => {
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
g || (g = !0, setTimeout(() => {
|
|
526
|
+
g = !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 h = ye(e);
|
|
534
|
+
u = !i(f) && !!(h && !f.composedPath().includes(h));
|
|
535
535
|
}, { passive: !0 }),
|
|
536
536
|
s && He(n, "blur", (f) => {
|
|
537
537
|
setTimeout(() => {
|
|
538
|
-
var
|
|
538
|
+
var h;
|
|
539
539
|
const I = ye(e);
|
|
540
|
-
((
|
|
540
|
+
((h = n.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !I?.contains(n.document.activeElement) && t(f);
|
|
541
541
|
}, 0);
|
|
542
542
|
}, { passive: !0 })
|
|
543
|
-
].filter(Boolean), b = () =>
|
|
543
|
+
].filter(Boolean), b = () => x.forEach((f) => f());
|
|
544
544
|
return l ? {
|
|
545
545
|
stop: b,
|
|
546
546
|
cancel: () => {
|
|
@@ -553,20 +553,20 @@ function Tt(e, t, o = {}) {
|
|
|
553
553
|
}
|
|
554
554
|
// @__NO_SIDE_EFFECTS__
|
|
555
555
|
function so() {
|
|
556
|
-
const e = ue(!1), t =
|
|
556
|
+
const e = ue(!1), t = mt();
|
|
557
557
|
return t && Ee(() => {
|
|
558
558
|
e.value = !0;
|
|
559
559
|
}, t), e;
|
|
560
560
|
}
|
|
561
561
|
// @__NO_SIDE_EFFECTS__
|
|
562
|
-
function
|
|
562
|
+
function fn(e) {
|
|
563
563
|
const t = /* @__PURE__ */ so();
|
|
564
564
|
return T(() => (t.value, !!e()));
|
|
565
565
|
}
|
|
566
|
-
function
|
|
566
|
+
function vn(e, t, o = {}) {
|
|
567
567
|
const { window: n = et, ...a } = o;
|
|
568
568
|
let r;
|
|
569
|
-
const s = /* @__PURE__ */
|
|
569
|
+
const s = /* @__PURE__ */ fn(() => n && "MutationObserver" in n), l = () => {
|
|
570
570
|
r && (r.disconnect(), r = void 0);
|
|
571
571
|
}, u = ne(T(() => {
|
|
572
572
|
const p = rt(E(e)).map(ye).filter(Xn);
|
|
@@ -593,17 +593,17 @@ const ot = {
|
|
|
593
593
|
function ro(e) {
|
|
594
594
|
e.scrollLeft > e.scrollWidth - e.clientWidth && (e.scrollLeft = Math.max(0, e.scrollWidth - e.clientWidth)), e.scrollTop > e.scrollHeight - e.clientHeight && (e.scrollTop = Math.max(0, e.scrollHeight - e.clientHeight));
|
|
595
595
|
}
|
|
596
|
-
function
|
|
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: g, axis: x = "both", draggingElement: b = et, containerElement: f, handle: h = e, buttons: I = [0], restrictInView: C, autoScroll: $ = !1 } = t, L = R((o = E(g)) !== null && o !== void 0 ? o : {
|
|
599
599
|
x: 0,
|
|
600
600
|
y: 0
|
|
601
601
|
}), S = R(), O = (D) => s ? s.includes(D.pointerType) : !0, W = (D) => {
|
|
602
602
|
E(l) && D.preventDefault(), E(u) && D.stopPropagation();
|
|
603
|
-
},
|
|
604
|
-
speed: (n = E(
|
|
605
|
-
margin: (a = E(
|
|
606
|
-
direction: (r =
|
|
603
|
+
}, me = E($), j = typeof me == "object" ? {
|
|
604
|
+
speed: (n = E(me.speed)) !== null && n !== void 0 ? n : ot.speed,
|
|
605
|
+
margin: (a = E(me.margin)) !== null && a !== void 0 ? a : ot.margin,
|
|
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
608
|
const { clientWidth: Q, clientHeight: q, scrollLeft: re, scrollTop: ke, scrollWidth: Le, scrollHeight: P } = D, [B, z] = J(j.margin), [ee, le] = J(j.speed);
|
|
609
609
|
let te = 0, ie = 0;
|
|
@@ -614,7 +614,7 @@ function yt(e, t = {}) {
|
|
|
614
614
|
});
|
|
615
615
|
};
|
|
616
616
|
let de = null;
|
|
617
|
-
const
|
|
617
|
+
const Be = () => {
|
|
618
618
|
const D = E(f);
|
|
619
619
|
D && !de && (de = setInterval(() => {
|
|
620
620
|
const F = E(e).getBoundingClientRect(), { x: G, y: Q } = L.value, q = {
|
|
@@ -636,10 +636,10 @@ function yt(e, t = {}) {
|
|
|
636
636
|
Ye({
|
|
637
637
|
x: G - D.scrollLeft,
|
|
638
638
|
y: Q - D.scrollTop
|
|
639
|
-
}, D, j.margin, F) ?
|
|
639
|
+
}, D, j.margin, F) ? Be() : Re();
|
|
640
640
|
};
|
|
641
641
|
E($) && ne(L, Xe);
|
|
642
|
-
const
|
|
642
|
+
const Fe = (D) => {
|
|
643
643
|
var F;
|
|
644
644
|
if (!E(I).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 = {
|
|
@@ -653,15 +653,15 @@ function yt(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 ((x === "x" || x === "both") && (Q = D.clientX - S.value.x, F && (Q = Math.min(Math.max(0, Q), F.scrollWidth - G.width))), (x === "y" || x === "both") && (q = D.clientY - S.value.y, F && (q = Math.min(Math.max(0, q), F.scrollHeight - G.height))), E($) && F && (de === null && ge(F, G, {
|
|
657
657
|
x: Q,
|
|
658
658
|
y: q
|
|
659
659
|
}), Q += F.scrollLeft, q += F.scrollTop), F && (C || $)) {
|
|
660
|
-
if (
|
|
660
|
+
if (x !== "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 (x !== "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
|
}
|
|
@@ -670,10 +670,10 @@ function yt(e, t = {}) {
|
|
|
670
670
|
x: Q,
|
|
671
671
|
y: q
|
|
672
672
|
}, d?.(L.value, D), W(D);
|
|
673
|
-
},
|
|
673
|
+
}, Ze = (D) => {
|
|
674
674
|
E(t.disabled) || !O(D) || S.value && (S.value = void 0, $ && Re(), p?.(L.value, D), W(D));
|
|
675
675
|
};
|
|
676
|
-
if (
|
|
676
|
+
if (dn) {
|
|
677
677
|
const D = () => {
|
|
678
678
|
var F;
|
|
679
679
|
return {
|
|
@@ -681,7 +681,7 @@ function yt(e, t = {}) {
|
|
|
681
681
|
passive: !E(l)
|
|
682
682
|
};
|
|
683
683
|
};
|
|
684
|
-
He(
|
|
684
|
+
He(h, "pointerdown", Fe, D), He(b, "pointermove", je, D), He(b, "pointerup", Ze, D);
|
|
685
685
|
}
|
|
686
686
|
return {
|
|
687
687
|
...oo(L),
|
|
@@ -694,10 +694,10 @@ function yt(e, t = {}) {
|
|
|
694
694
|
`)
|
|
695
695
|
};
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function ct(e, t, o = {}) {
|
|
698
698
|
const { window: n = et, ...a } = o;
|
|
699
699
|
let r;
|
|
700
|
-
const s = /* @__PURE__ */
|
|
700
|
+
const s = /* @__PURE__ */ fn(() => n && "ResizeObserver" in n), l = () => {
|
|
701
701
|
r && (r.disconnect(), r = void 0);
|
|
702
702
|
}, u = ne(T(() => {
|
|
703
703
|
const d = E(e);
|
|
@@ -719,20 +719,20 @@ function dt(e, t, o = {}) {
|
|
|
719
719
|
};
|
|
720
720
|
}
|
|
721
721
|
function _e(e, t = {}) {
|
|
722
|
-
const { reset: o = !0, windowResize: n = !0, windowScroll: a = !0, immediate: r = !0, updateTiming: s = "sync" } = t, l = ue(0), u = ue(0), i = ue(0), d = ue(0), p = ue(0), y = ue(0),
|
|
722
|
+
const { reset: o = !0, windowResize: n = !0, windowScroll: a = !0, immediate: r = !0, updateTiming: s = "sync" } = t, l = ue(0), u = ue(0), i = ue(0), d = ue(0), p = ue(0), y = ue(0), g = ue(0), x = ue(0);
|
|
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 h = ye(e);
|
|
725
|
+
if (!h) {
|
|
726
|
+
o && (l.value = 0, u.value = 0, i.value = 0, d.value = 0, p.value = 0, y.value = 0, g.value = 0, x.value = 0);
|
|
727
727
|
return;
|
|
728
728
|
}
|
|
729
|
-
const I =
|
|
730
|
-
l.value = I.height, u.value = I.bottom, i.value = I.left, d.value = I.right, p.value = I.top, y.value = I.width,
|
|
729
|
+
const I = h.getBoundingClientRect();
|
|
730
|
+
l.value = I.height, u.value = I.bottom, i.value = I.left, d.value = I.right, p.value = I.top, y.value = I.width, g.value = I.x, x.value = I.y;
|
|
731
731
|
}
|
|
732
732
|
function f() {
|
|
733
733
|
s === "sync" ? b() : s === "next-frame" && requestAnimationFrame(() => b());
|
|
734
734
|
}
|
|
735
|
-
return
|
|
735
|
+
return ct(e, f), ne(() => ye(e), (h) => !h && 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,32 +744,32 @@ function _e(e, t = {}) {
|
|
|
744
744
|
right: d,
|
|
745
745
|
top: p,
|
|
746
746
|
width: y,
|
|
747
|
-
x:
|
|
748
|
-
y:
|
|
747
|
+
x: g,
|
|
748
|
+
y: x,
|
|
749
749
|
update: f
|
|
750
750
|
};
|
|
751
751
|
}
|
|
752
|
-
function
|
|
752
|
+
function yt(e) {
|
|
753
753
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
754
754
|
}
|
|
755
|
-
const
|
|
755
|
+
const bt = /* @__PURE__ */ new WeakMap();
|
|
756
756
|
function io(e, t = !1) {
|
|
757
757
|
const o = ue(t);
|
|
758
758
|
let n = "";
|
|
759
759
|
ne(Qn(e), (s) => {
|
|
760
|
-
const l =
|
|
760
|
+
const l = yt(E(s));
|
|
761
761
|
if (l) {
|
|
762
762
|
const u = l;
|
|
763
|
-
if (
|
|
763
|
+
if (bt.get(u) || bt.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return o.value = !0;
|
|
764
764
|
if (o.value) return u.style.overflow = "hidden";
|
|
765
765
|
}
|
|
766
766
|
}, { immediate: !0 });
|
|
767
767
|
const a = () => {
|
|
768
|
-
const s =
|
|
768
|
+
const s = yt(E(e));
|
|
769
769
|
!s || o.value || (s.style.overflow = "hidden", o.value = !0);
|
|
770
770
|
}, r = () => {
|
|
771
|
-
const s =
|
|
772
|
-
!s || !o.value || (s.style.overflow = n,
|
|
771
|
+
const s = yt(E(e));
|
|
772
|
+
!s || !o.value || (s.style.overflow = n, bt.delete(s), o.value = !1);
|
|
773
773
|
};
|
|
774
774
|
return Ot(r), T({
|
|
775
775
|
get() {
|
|
@@ -800,20 +800,20 @@ 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
|
+
})), g = T(() => ({
|
|
804
804
|
"sticky-column": e.pinned,
|
|
805
805
|
"cell-modified": r.value
|
|
806
|
-
})),
|
|
806
|
+
})), x = () => {
|
|
807
807
|
f(), b();
|
|
808
808
|
}, b = () => {
|
|
809
|
-
const { left: S, bottom: O, width: W, height:
|
|
809
|
+
const { left: S, bottom: O, width: W, height: me } = _e(o);
|
|
810
810
|
s.mask, s.modalComponent && e.store.$patch((j) => {
|
|
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 =
|
|
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
|
});
|
|
813
813
|
};
|
|
814
814
|
if (e.addNavigation) {
|
|
815
815
|
let S = {
|
|
816
|
-
...
|
|
816
|
+
...gt,
|
|
817
817
|
"keydown.f2": b,
|
|
818
818
|
"keydown.alt.up": b,
|
|
819
819
|
"keydown.alt.down": b,
|
|
@@ -840,7 +840,7 @@ const uo = (e) => {
|
|
|
840
840
|
} catch {
|
|
841
841
|
}
|
|
842
842
|
}
|
|
843
|
-
},
|
|
843
|
+
}, h = () => {
|
|
844
844
|
o.value && (a.value = o.value.textContent, f());
|
|
845
845
|
}, I = () => {
|
|
846
846
|
try {
|
|
@@ -859,10 +859,10 @@ const uo = (e) => {
|
|
|
859
859
|
const O = window.getSelection();
|
|
860
860
|
if (!O) return;
|
|
861
861
|
let W = 0;
|
|
862
|
-
const
|
|
863
|
-
if (!
|
|
862
|
+
const me = document.createTreeWalker ? document.createTreeWalker(o.value, NodeFilter.SHOW_TEXT, null) : null;
|
|
863
|
+
if (!me) return;
|
|
864
864
|
let j, J = null;
|
|
865
|
-
for (; j =
|
|
865
|
+
for (; j = me.nextNode(); ) {
|
|
866
866
|
const ge = j, de = W + ge.textContent.length;
|
|
867
867
|
if (S <= de && (J = document.createRange(), J.setStart && J.setEnd)) {
|
|
868
868
|
J.setStart(ge, S - W), J.setEnd(ge, S - W);
|
|
@@ -879,13 +879,13 @@ const uo = (e) => {
|
|
|
879
879
|
if (O.textContent === a.value)
|
|
880
880
|
return;
|
|
881
881
|
const W = I();
|
|
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)),
|
|
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) => (m(), k("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", g.value]),
|
|
898
|
+
onFocus: h,
|
|
899
899
|
onPaste: $,
|
|
900
900
|
onInput: O[0] || (O[0] = //@ts-ignore
|
|
901
901
|
(...W) => V(L) && V(L)(...W)),
|
|
902
|
-
onClick:
|
|
902
|
+
onClick: x
|
|
903
903
|
}, [
|
|
904
|
-
V(s).cellComponent ? (
|
|
904
|
+
V(s).cellComponent ? (m(), 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 ? (m(), k("span", {
|
|
908
908
|
key: 1,
|
|
909
909
|
innerHTML: d.value
|
|
910
|
-
}, null, 8, vo)) : (
|
|
910
|
+
}, null, 8, vo)) : (m(), k("span", po, N(d.value), 1))
|
|
911
911
|
], 46, fo));
|
|
912
912
|
}
|
|
913
913
|
}), ho = ["tabindex"], go = ["tabindex"], wo = ["colspan"], yo = /* @__PURE__ */ oe({
|
|
@@ -916,7 +916,7 @@ const uo = (e) => {
|
|
|
916
916
|
rowIndex: {},
|
|
917
917
|
store: {},
|
|
918
918
|
tabIndex: { default: () => -1 },
|
|
919
|
-
addNavigation: { type: [Boolean, Object], default: () =>
|
|
919
|
+
addNavigation: { type: [Boolean, Object], default: () => gt }
|
|
920
920
|
},
|
|
921
921
|
setup(e) {
|
|
922
922
|
const t = fe("rowEl"), o = T(() => e.store.display[e.rowIndex].expanded ? "▼" : "►");
|
|
@@ -933,8 +933,8 @@ const uo = (e) => {
|
|
|
933
933
|
}
|
|
934
934
|
]);
|
|
935
935
|
}
|
|
936
|
-
return (n, a) => (
|
|
937
|
-
w("tr",
|
|
936
|
+
return (n, a) => (m(), k(X, null, [
|
|
937
|
+
w("tr", dt(n.$attrs, {
|
|
938
938
|
ref: "rowEl",
|
|
939
939
|
tabindex: e.tabIndex,
|
|
940
940
|
class: "expandable-row"
|
|
@@ -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 ? (m(), k("tr", {
|
|
950
950
|
key: 0,
|
|
951
951
|
ref: "rowExpanded",
|
|
952
952
|
tabindex: e.tabIndex,
|
|
@@ -988,11 +988,11 @@ const uo = (e) => {
|
|
|
988
988
|
},
|
|
989
989
|
emits: ["connection:create"],
|
|
990
990
|
setup(e, { expose: t, emit: o }) {
|
|
991
|
-
|
|
991
|
+
Mn((P) => ({
|
|
992
992
|
v737862e7: a.value,
|
|
993
993
|
v05f25613: P.colspan
|
|
994
994
|
}));
|
|
995
|
-
const n = o, a = R(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s = fe("container"), l = fe("bar"), u = fe("leftResizeHandle"), i = fe("rightResizeHandle"), d = fe("leftConnectionHandle"), p = fe("rightConnectionHandle"), { width: y } = _e(s), { left:
|
|
995
|
+
const n = o, a = R(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s = fe("container"), l = fe("bar"), u = fe("leftResizeHandle"), i = fe("rightResizeHandle"), d = fe("leftConnectionHandle"), p = fe("rightConnectionHandle"), { width: y } = _e(s), { left: g, right: x } = _e(l), b = R(e.start), f = R(e.end || b.value + e.colspan), h = R(!1), I = R(!1), C = R(!1), $ = R(!1), L = R(!1), S = R({ startX: 0, startY: 0, endX: 0, endY: 0 }), O = T(() => Be.value || ge.value || de.value), W = T(() => e.colspan > 0 ? y.value / e.colspan : 0), me = T(() => {
|
|
996
996
|
const P = b.value / e.colspan * 100, B = f.value / e.colspan * 100;
|
|
997
997
|
return {
|
|
998
998
|
left: `${P}%`,
|
|
@@ -1009,26 +1009,26 @@ const uo = (e) => {
|
|
|
1009
1009
|
pointerEvents: "none",
|
|
1010
1010
|
zIndex: 1e3
|
|
1011
1011
|
})
|
|
1012
|
-
), J = R({ startX: 0, startPos: 0 }), { isDragging: ge } =
|
|
1012
|
+
), J = R({ startX: 0, startPos: 0 }), { isDragging: ge } = wt(u, {
|
|
1013
1013
|
axis: "x",
|
|
1014
|
-
onStart: () => Re(
|
|
1014
|
+
onStart: () => Re(g.value, b.value),
|
|
1015
1015
|
onMove: ({ x: P }) => Ye(P),
|
|
1016
1016
|
onEnd: ({ x: P }) => Xe(P)
|
|
1017
|
-
}), { isDragging: de } =
|
|
1017
|
+
}), { isDragging: de } = wt(i, {
|
|
1018
1018
|
axis: "x",
|
|
1019
|
-
onStart: () => Re(
|
|
1020
|
-
onMove: ({ x: P }) =>
|
|
1019
|
+
onStart: () => Re(x.value, f.value),
|
|
1020
|
+
onMove: ({ x: P }) => Fe(P),
|
|
1021
1021
|
onEnd: ({ x: P }) => je(P)
|
|
1022
|
-
}), { isDragging:
|
|
1022
|
+
}), { isDragging: Be } = wt(l, {
|
|
1023
1023
|
exact: !0,
|
|
1024
1024
|
axis: "x",
|
|
1025
|
-
onStart: () => Re(
|
|
1026
|
-
onMove: ({ x: P }) =>
|
|
1025
|
+
onStart: () => Re(g.value, b.value),
|
|
1026
|
+
onMove: ({ x: P }) => Ze(P),
|
|
1027
1027
|
onEnd: ({ x: P }) => D(P)
|
|
1028
1028
|
});
|
|
1029
1029
|
Ee(() => {
|
|
1030
1030
|
F();
|
|
1031
|
-
}),
|
|
1031
|
+
}), Cn(() => {
|
|
1032
1032
|
G();
|
|
1033
1033
|
});
|
|
1034
1034
|
function Re(P, B) {
|
|
@@ -1055,7 +1055,7 @@ const uo = (e) => {
|
|
|
1055
1055
|
newColspan: f.value - le
|
|
1056
1056
|
});
|
|
1057
1057
|
}
|
|
1058
|
-
function
|
|
1058
|
+
function Fe(P) {
|
|
1059
1059
|
if (!de.value || !l.value) return;
|
|
1060
1060
|
const B = (P - 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}%`;
|
|
@@ -1076,8 +1076,8 @@ const uo = (e) => {
|
|
|
1076
1076
|
newColspan: le - b.value
|
|
1077
1077
|
});
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1080
|
-
if (!
|
|
1079
|
+
function Ze(P) {
|
|
1080
|
+
if (!Be.value || !l.value) return;
|
|
1081
1081
|
const B = (P - J.value.startX) / W.value, z = f.value - b.value, ee = Math.max(0, Math.min(J.value.startPos + B, e.columnsCount - z));
|
|
1082
1082
|
l.value.style.left = `${ee / e.colspan * 100}%`;
|
|
1083
1083
|
}
|
|
@@ -1114,7 +1114,7 @@ const uo = (e) => {
|
|
|
1114
1114
|
colIndex: e.colIndex,
|
|
1115
1115
|
side: "left",
|
|
1116
1116
|
position: { x: z, y: ee },
|
|
1117
|
-
visible:
|
|
1117
|
+
visible: h,
|
|
1118
1118
|
barId: r
|
|
1119
1119
|
}), e.store.registerConnectionHandle({
|
|
1120
1120
|
id: `${r}-connection-right`,
|
|
@@ -1130,10 +1130,10 @@ 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 && (h.value = !0, I.value = !0);
|
|
1134
1134
|
}
|
|
1135
1135
|
function q() {
|
|
1136
|
-
!C.value && !$.value && (
|
|
1136
|
+
!C.value && !$.value && (h.value = !1, I.value = !1);
|
|
1137
1137
|
}
|
|
1138
1138
|
function re(P, B) {
|
|
1139
1139
|
B.preventDefault(), B.stopPropagation(), L.value = !0, P === "left" ? C.value = !0 : $.value = !0;
|
|
@@ -1166,16 +1166,16 @@ const uo = (e) => {
|
|
|
1166
1166
|
L.value = !1, C.value = !1, $.value = !1, document.removeEventListener("mousemove", P), document.removeEventListener("mouseup", B), l.value?.matches(":hover") || q();
|
|
1167
1167
|
}
|
|
1168
1168
|
return t({
|
|
1169
|
-
barStyle:
|
|
1169
|
+
barStyle: me,
|
|
1170
1170
|
cleanupConnectionDrag: Le,
|
|
1171
1171
|
currentEnd: f,
|
|
1172
1172
|
handleConnectionDrop: ke,
|
|
1173
1173
|
isLeftConnectionDragging: C,
|
|
1174
|
-
isLeftConnectionVisible:
|
|
1174
|
+
isLeftConnectionVisible: h,
|
|
1175
1175
|
isRightConnectionDragging: $,
|
|
1176
1176
|
isRightConnectionVisible: I,
|
|
1177
1177
|
showDragPreview: L
|
|
1178
|
-
}), (P, B) => (
|
|
1178
|
+
}), (P, B) => (m(), k("td", {
|
|
1179
1179
|
class: "aganttcell",
|
|
1180
1180
|
colspan: e.colspan
|
|
1181
1181
|
}, [
|
|
@@ -1185,19 +1185,19 @@ const uo = (e) => {
|
|
|
1185
1185
|
"data-rowindex": e.rowIndex,
|
|
1186
1186
|
"data-colindex": e.colIndex,
|
|
1187
1187
|
class: se(["gantt-bar", { "is-dragging": O.value }]),
|
|
1188
|
-
style: be(
|
|
1188
|
+
style: be(me.value),
|
|
1189
1189
|
onMouseenter: Q,
|
|
1190
1190
|
onMouseleave: q
|
|
1191
1191
|
}, [
|
|
1192
|
-
e.store.isDependencyGraphEnabled ? (
|
|
1192
|
+
e.store.isDependencyGraphEnabled ? (m(), k("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: h.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 ? (m(), k("div", {
|
|
1201
1201
|
key: 1,
|
|
1202
1202
|
ref: "rightConnectionHandle",
|
|
1203
1203
|
class: se(["connection-handle right-connection-handle", { visible: I.value, "is-dragging": $.value }]),
|
|
@@ -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 ? (m(), k("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 ? (m(), k("svg", {
|
|
1226
1226
|
key: 0,
|
|
1227
1227
|
style: be(j.value)
|
|
1228
1228
|
}, [
|
|
@@ -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 h = [], I = o.config.actions || {}, C = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
|
|
1317
1317
|
for (const $ of C) {
|
|
1318
1318
|
const L = I[$];
|
|
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 && h.push({ type: $, label: O, icon: W });
|
|
1322
1322
|
}
|
|
1323
|
-
return
|
|
1323
|
+
return h;
|
|
1324
1324
|
}), y = T(() => {
|
|
1325
1325
|
if (o.config.forceDropdown) return !0;
|
|
1326
|
-
const
|
|
1327
|
-
return
|
|
1328
|
-
}),
|
|
1326
|
+
const h = o.config.dropdownThreshold ?? 150;
|
|
1327
|
+
return h === 0 ? !1 : s.value > 0 && s.value < h;
|
|
1328
|
+
}), g = T(() => l.value ? u.value ? {
|
|
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
|
-
|
|
1339
|
-
const I =
|
|
1338
|
+
ct(a, (h) => {
|
|
1339
|
+
const I = h[0];
|
|
1340
1340
|
I && (s.value = I.contentRect.width);
|
|
1341
1341
|
});
|
|
1342
|
-
const
|
|
1342
|
+
const x = () => {
|
|
1343
1343
|
l.value || b(), l.value = !l.value;
|
|
1344
1344
|
}, b = () => {
|
|
1345
1345
|
if (!r.value) return;
|
|
1346
|
-
const
|
|
1346
|
+
const h = r.value.getBoundingClientRect(), I = window.innerHeight, C = p.value.length * 40 + 16, $ = I - h.bottom, L = h.top;
|
|
1347
1347
|
u.value = $ < C && L > C, u.value ? i.value = {
|
|
1348
|
-
top:
|
|
1349
|
-
left:
|
|
1348
|
+
top: h.top,
|
|
1349
|
+
left: h.left
|
|
1350
1350
|
} : i.value = {
|
|
1351
|
-
top:
|
|
1352
|
-
left:
|
|
1351
|
+
top: h.bottom,
|
|
1352
|
+
left: h.left
|
|
1353
1353
|
};
|
|
1354
1354
|
};
|
|
1355
1355
|
Tt(a, () => {
|
|
1356
1356
|
l.value = !1;
|
|
1357
1357
|
});
|
|
1358
|
-
const f = (
|
|
1358
|
+
const f = (h) => {
|
|
1359
1359
|
l.value = !1;
|
|
1360
|
-
const I = o.config.actions?.[
|
|
1361
|
-
typeof I == "object" && I.handler && I.handler(o.rowIndex, o.store) === !1 || n("action",
|
|
1360
|
+
const I = o.config.actions?.[h];
|
|
1361
|
+
typeof I == "object" && I.handler && I.handler(o.rowIndex, o.store) === !1 || n("action", h, o.rowIndex);
|
|
1362
1362
|
};
|
|
1363
|
-
return (
|
|
1363
|
+
return (h, I) => (m(), k("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 ? (m(), k("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(
|
|
1374
|
+
onClick: Ie(x, ["stop"])
|
|
1375
1375
|
}, [...I[0] || (I[0] = [
|
|
1376
1376
|
w("span", { class: "dropdown-icon" }, "⋮", -1)
|
|
1377
1377
|
])], 8, _o),
|
|
1378
1378
|
K(w("div", {
|
|
1379
1379
|
class: se(["row-actions-menu", { "menu-flipped": u.value }]),
|
|
1380
|
-
style: be(
|
|
1380
|
+
style: be(g.value),
|
|
1381
1381
|
role: "menu"
|
|
1382
1382
|
}, [
|
|
1383
|
-
(
|
|
1383
|
+
(m(!0), k(X, null, pe(p.value, (C) => (m(), k("button", {
|
|
1384
1384
|
key: C.type,
|
|
1385
1385
|
type: "button",
|
|
1386
1386
|
class: "row-action-menu-item",
|
|
@@ -1396,8 +1396,8 @@ const uo = (e) => {
|
|
|
1396
1396
|
], 6), [
|
|
1397
1397
|
[Ce, l.value]
|
|
1398
1398
|
])
|
|
1399
|
-
])) : (
|
|
1400
|
-
(
|
|
1399
|
+
])) : (m(), k("div", Fo, [
|
|
1400
|
+
(m(!0), k(X, null, pe(p.value, (C) => (m(), k("button", {
|
|
1401
1401
|
key: C.type,
|
|
1402
1402
|
type: "button",
|
|
1403
1403
|
class: "row-action-btn",
|
|
@@ -1427,7 +1427,7 @@ const uo = (e) => {
|
|
|
1427
1427
|
o("row:action", d, p);
|
|
1428
1428
|
};
|
|
1429
1429
|
if (e.addNavigation) {
|
|
1430
|
-
let d =
|
|
1430
|
+
let d = gt;
|
|
1431
1431
|
typeof e.addNavigation == "object" && (d = {
|
|
1432
1432
|
...d,
|
|
1433
1433
|
...e.addNavigation
|
|
@@ -1438,12 +1438,12 @@ const uo = (e) => {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
]);
|
|
1440
1440
|
}
|
|
1441
|
-
return (d, p) => K((
|
|
1441
|
+
return (d, p) => K((m(), k("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" ? (m(), 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" ? (m(), k("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 ? (m(), k("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" ? (m(), 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" ? (m(), ve(it, {
|
|
1476
1476
|
key: 3,
|
|
1477
1477
|
"row-index": e.rowIndex,
|
|
1478
1478
|
store: e.store,
|
|
@@ -1484,7 +1484,7 @@ const uo = (e) => {
|
|
|
1484
1484
|
[Ce, a.value]
|
|
1485
1485
|
]);
|
|
1486
1486
|
}
|
|
1487
|
-
}),
|
|
1487
|
+
}), pn = /* @__PURE__ */ Ve(Wo, [["__scopeId", "data-v-2e038a9c"]]), xt = /* @__PURE__ */ new WeakMap(), Go = {
|
|
1488
1488
|
mounted(e, t) {
|
|
1489
1489
|
const o = !t.modifiers.bubble;
|
|
1490
1490
|
let n;
|
|
@@ -1493,14 +1493,14 @@ const uo = (e) => {
|
|
|
1493
1493
|
const [a, r] = t.value;
|
|
1494
1494
|
n = Tt(e, a, Object.assign({ capture: o }, r));
|
|
1495
1495
|
}
|
|
1496
|
-
|
|
1496
|
+
xt.set(e, n);
|
|
1497
1497
|
},
|
|
1498
1498
|
unmounted(e) {
|
|
1499
|
-
const t =
|
|
1500
|
-
t && typeof t == "function" ? t() : t?.stop(),
|
|
1499
|
+
const t = xt.get(e);
|
|
1500
|
+
t && typeof t == "function" ? t() : t?.stop(), xt.delete(e);
|
|
1501
1501
|
}
|
|
1502
1502
|
}, zo = { mounted(e, t) {
|
|
1503
|
-
typeof t.value == "function" ?
|
|
1503
|
+
typeof t.value == "function" ? ct(e, t.value) : ct(e, ...t.value);
|
|
1504
1504
|
} };
|
|
1505
1505
|
function qo() {
|
|
1506
1506
|
let e = !1;
|
|
@@ -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, g = Math.abs(p - i), x = Math.max(g * Qo, 50), b = i + (s.from.side === "left" ? -x : x), f = p + (s.to.side === "left" ? -x : x), h = { x: 0.5 * i + 0.5 * b, y: 0.5 * d + 0.5 * d }, I = { x: 0.5 * b + 0.5 * f, y: 0.5 * d + 0.5 * y }, C = { x: 0.5 * f + 0.5 * p, y: 0.5 * y + 0.5 * y }, $ = { x: 0.5 * h.x + 0.5 * I.x, y: 0.5 * h.y + 0.5 * I.y }, L = { x: 0.5 * I.x + 0.5 * C.x, y: 0.5 * I.y + 0.5 * C.y }, S = { x: 0.5 * $.x + 0.5 * L.x, y: 0.5 * $.y + 0.5 * L.y };
|
|
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) => (m(), k("div", Yo, [
|
|
1550
|
+
(m(), k("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
|
+
(m(!0), k(X, null, pe(n.value, (u) => (m(), k("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
|
+
(m(!0), k(X, null, pe(n.value, (u) => (m(), k("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) => (m(), k("div", tl, [
|
|
1636
|
+
(e.column.filterType || "text") === "text" ? K((m(), k("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((m(), k("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" ? (m(), k("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((m(), k("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
|
+
(m(!0), k(X, null, pe(n(e.column), (d) => (m(), k("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
|
-
[
|
|
1675
|
-
]) : e.column.filterType === "date" ? K((
|
|
1674
|
+
[In, t.value]
|
|
1675
|
+
]) : e.column.filterType === "date" ? K((m(), k("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" ? (m(), k("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 ? (m(), 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 ? (m(), k("button", {
|
|
1710
1710
|
key: 7,
|
|
1711
1711
|
onClick: l,
|
|
1712
1712
|
class: "clear-btn",
|
|
@@ -1732,7 +1732,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
1732
1732
|
}, pl = {
|
|
1733
1733
|
key: 3,
|
|
1734
1734
|
class: "row-actions-header"
|
|
1735
|
-
},
|
|
1735
|
+
}, mn = /* @__PURE__ */ oe({
|
|
1736
1736
|
__name: "ATableHeader",
|
|
1737
1737
|
props: {
|
|
1738
1738
|
columns: {},
|
|
@@ -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 ? (m(), k("thead", rl, [
|
|
1750
1750
|
w("tr", il, [
|
|
1751
|
-
n.value && a.value === "before-index" ? (
|
|
1751
|
+
n.value && a.value === "before-index" ? (m(), k("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 ? (m(), k("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" ? (m(), k("th", ul)) : Y("", !0),
|
|
1765
|
+
(m(!0), k(X, null, pe(t.columns, (i, d) => K((m(), k("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" ? (m(), k("th", dl)) : Y("", !0)
|
|
1780
1780
|
]),
|
|
1781
|
-
o.value.length > 0 ? (
|
|
1782
|
-
n.value && a.value === "before-index" ? (
|
|
1781
|
+
o.value.length > 0 ? (m(), k("tr", fl, [
|
|
1782
|
+
n.value && a.value === "before-index" ? (m(), k("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 ? (m(), k("th", {
|
|
1787
1787
|
key: 1,
|
|
1788
1788
|
class: se([[
|
|
1789
1789
|
t.store.hasPinnedColumns ? "sticky-index" : "",
|
|
@@ -1791,24 +1791,24 @@ 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" ? (m(), k("th", vl)) : Y("", !0),
|
|
1795
|
+
(m(!0), k(X, null, pe(t.columns, (i, d) => (m(), k("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 ? (m(), 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" ? (m(), k("th", pl)) : Y("", !0)
|
|
1808
1808
|
])) : Y("", !0)
|
|
1809
1809
|
])) : Y("", !0);
|
|
1810
1810
|
}
|
|
1811
|
-
}),
|
|
1811
|
+
}), hn = /* @__PURE__ */ oe({
|
|
1812
1812
|
__name: "ATableModal",
|
|
1813
1813
|
props: {
|
|
1814
1814
|
store: {}
|
|
@@ -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) => (m(), k("div", {
|
|
1832
1832
|
ref: "amodal",
|
|
1833
1833
|
class: "amodal",
|
|
1834
1834
|
tabindex: "-1",
|
|
@@ -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([]), g = R([]), x = R([]), b = R({
|
|
1917
1917
|
column: null,
|
|
1918
1918
|
direction: null
|
|
1919
|
-
}), f = R({}),
|
|
1919
|
+
}), f = R({}), h = T(() => n.value.some((c) => c.pinned)), I = T(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), C = T(() => r.value.view === "tree" || r.value.view === "tree-gantt"), $ = T(() => {
|
|
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(
|
|
@@ -1947,7 +1947,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
1947
1947
|
});
|
|
1948
1948
|
}
|
|
1949
1949
|
return c;
|
|
1950
|
-
}), W = (c, v) => u.value[`${c}:${v}`],
|
|
1950
|
+
}), W = (c, v) => u.value[`${c}:${v}`], me = (c, v, M) => {
|
|
1951
1951
|
const _ = `${c}:${v}`, Z = n.value[c];
|
|
1952
1952
|
u.value[_] !== M && (s.value[v] = !0), u.value[_] = M, a.value[v] = {
|
|
1953
1953
|
...a.value[v],
|
|
@@ -1976,7 +1976,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
1976
1976
|
...n.value[c],
|
|
1977
1977
|
width: `${M}px`
|
|
1978
1978
|
};
|
|
1979
|
-
},
|
|
1979
|
+
}, Be = (c) => {
|
|
1980
1980
|
const v = a.value[c];
|
|
1981
1981
|
return I.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) => {
|
|
@@ -1985,7 +1985,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
1985
1985
|
l.value[c] = {
|
|
1986
1986
|
...v,
|
|
1987
1987
|
childrenOpen: M
|
|
1988
|
-
}, M ||
|
|
1988
|
+
}, M || Fe(c);
|
|
1989
1989
|
} else if (r.value.view === "list-expansion") {
|
|
1990
1990
|
const v = l.value[c] || {}, M = v.expanded ?? i.value[c].expanded;
|
|
1991
1991
|
l.value[c] = {
|
|
@@ -1993,19 +1993,19 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
1993
1993
|
expanded: !M
|
|
1994
1994
|
};
|
|
1995
1995
|
}
|
|
1996
|
-
},
|
|
1996
|
+
}, Fe = (c) => {
|
|
1997
1997
|
for (let v = 0; v < a.value.length; v++)
|
|
1998
1998
|
if (i.value[v].parent === c) {
|
|
1999
1999
|
const M = l.value[v] || {};
|
|
2000
2000
|
l.value[v] = {
|
|
2001
2001
|
...M,
|
|
2002
2002
|
childrenOpen: !1
|
|
2003
|
-
},
|
|
2003
|
+
}, Fe(v);
|
|
2004
2004
|
}
|
|
2005
2005
|
}, je = (c, v) => {
|
|
2006
2006
|
const M = W(c, v);
|
|
2007
|
-
return
|
|
2008
|
-
},
|
|
2007
|
+
return Ze(c, v, M);
|
|
2008
|
+
}, Ze = (c, v, M) => {
|
|
2009
2009
|
const _ = n.value[c], Z = a.value[v], A = _.format;
|
|
2010
2010
|
return A ? typeof A == "function" ? A(M, { table: u.value, row: Z, column: _ }) : typeof A == "string" ? Function(`"use strict";return (${A})`)()(M, { table: u.value, row: Z, column: _ }) : M : M;
|
|
2011
2011
|
}, D = (c) => {
|
|
@@ -2020,13 +2020,13 @@ 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 = g.value.findIndex((M) => M.id === c.id);
|
|
2024
|
+
v >= 0 ? g.value[v] = c : g.value.push(c);
|
|
2025
2025
|
}, ke = (c) => {
|
|
2026
|
-
const v =
|
|
2027
|
-
v >= 0 &&
|
|
2026
|
+
const v = g.value.findIndex((M) => M.id === c);
|
|
2027
|
+
v >= 0 && g.value.splice(v, 1);
|
|
2028
2028
|
}, Le = (c, v, M) => {
|
|
2029
|
-
const _ =
|
|
2029
|
+
const _ = g.value.find((H) => H.id === c), Z = g.value.find((H) => H.id === v);
|
|
2030
2030
|
if (!_ || !Z)
|
|
2031
2031
|
return console.warn("Cannot create connection: handle not found"), null;
|
|
2032
2032
|
const A = {
|
|
@@ -2042,11 +2042,11 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
2042
2042
|
style: M?.style,
|
|
2043
2043
|
label: M?.label
|
|
2044
2044
|
};
|
|
2045
|
-
return
|
|
2045
|
+
return x.value.push(A), A;
|
|
2046
2046
|
}, P = (c) => {
|
|
2047
|
-
const v =
|
|
2048
|
-
return v >= 0 ? (
|
|
2049
|
-
}, B = (c) =>
|
|
2047
|
+
const v = x.value.findIndex((M) => M.id === c);
|
|
2048
|
+
return v >= 0 ? (x.value.splice(v, 1), !0) : !1;
|
|
2049
|
+
}, B = (c) => x.value.filter((v) => v.from.barId === c || v.to.barId === c), z = (c) => g.value.filter((v) => v.barId === c), ee = (c) => {
|
|
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;
|
|
@@ -2106,8 +2106,8 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
2106
2106
|
// state
|
|
2107
2107
|
columns: n,
|
|
2108
2108
|
config: r,
|
|
2109
|
-
connectionHandles:
|
|
2110
|
-
connectionPaths:
|
|
2109
|
+
connectionHandles: g,
|
|
2110
|
+
connectionPaths: x,
|
|
2111
2111
|
display: i,
|
|
2112
2112
|
filterState: f,
|
|
2113
2113
|
ganttBars: y,
|
|
@@ -2118,7 +2118,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
2118
2118
|
updates: p,
|
|
2119
2119
|
// getters
|
|
2120
2120
|
filteredRows: O,
|
|
2121
|
-
hasPinnedColumns:
|
|
2121
|
+
hasPinnedColumns: h,
|
|
2122
2122
|
isGanttView: I,
|
|
2123
2123
|
isTreeView: C,
|
|
2124
2124
|
isDependencyGraphEnabled: $,
|
|
@@ -2155,7 +2155,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
2155
2155
|
getCellData: W,
|
|
2156
2156
|
getCellDisplayValue: je,
|
|
2157
2157
|
getConnectionsForBar: B,
|
|
2158
|
-
getFormattedValue:
|
|
2158
|
+
getFormattedValue: Ze,
|
|
2159
2159
|
getHandlesForBar: z,
|
|
2160
2160
|
getHeaderCellStyle: ge,
|
|
2161
2161
|
getIndent: F,
|
|
@@ -2168,7 +2168,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
2168
2168
|
const M = Math.min(c + 1, a.value.length);
|
|
2169
2169
|
return ce(v, M);
|
|
2170
2170
|
},
|
|
2171
|
-
isRowGantt:
|
|
2171
|
+
isRowGantt: Be,
|
|
2172
2172
|
isRowVisible: Re,
|
|
2173
2173
|
moveRow: (c, v) => {
|
|
2174
2174
|
if (c < 0 || c >= a.value.length || v < 0 || v >= a.value.length || c === v)
|
|
@@ -2191,7 +2191,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
2191
2191
|
registerConnectionHandle: re,
|
|
2192
2192
|
registerGanttBar: Q,
|
|
2193
2193
|
resizeColumn: de,
|
|
2194
|
-
setCellData:
|
|
2194
|
+
setCellData: me,
|
|
2195
2195
|
setCellText: J,
|
|
2196
2196
|
setFilter: te,
|
|
2197
2197
|
sortByColumn: ee,
|
|
@@ -2219,43 +2219,43 @@ 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 (
|
|
2222
|
+
l.$onAction(({ name: x, store: b, args: f, after: h }) => {
|
|
2223
|
+
if (x === "setCellData" || x === "setCellText") {
|
|
2224
2224
|
const [I, C, $] = f, L = b.getCellData(I, C);
|
|
2225
|
-
|
|
2225
|
+
h(() => {
|
|
2226
2226
|
n.value = [...b.rows], r("cellUpdate", { colIndex: I, rowIndex: C, newValue: $, oldValue: L });
|
|
2227
2227
|
});
|
|
2228
|
-
} else if (
|
|
2228
|
+
} else if (x === "updateGanttBar") {
|
|
2229
2229
|
const [I] = f;
|
|
2230
2230
|
let C = !1;
|
|
2231
|
-
I.type === "resize" ? C = I.oldColspan !== I.newColspan : I.type === "bar" && (C = I.oldStart !== I.newStart || I.oldEnd !== I.newEnd), C &&
|
|
2231
|
+
I.type === "resize" ? C = I.oldColspan !== I.newColspan : I.type === "bar" && (C = I.oldStart !== I.newStart || I.oldEnd !== I.newEnd), C && h(() => {
|
|
2232
2232
|
r("gantt:drag", I);
|
|
2233
2233
|
});
|
|
2234
|
-
} else
|
|
2234
|
+
} else x === "resizeColumn" && h(() => {
|
|
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
|
+
(x) => {
|
|
2240
|
+
JSON.stringify(x) !== JSON.stringify(l.rows) && (l.rows = [...x]);
|
|
2241
2241
|
},
|
|
2242
2242
|
{ deep: !0 }
|
|
2243
2243
|
), ne(
|
|
2244
2244
|
a,
|
|
2245
|
-
(
|
|
2246
|
-
JSON.stringify(
|
|
2245
|
+
(x) => {
|
|
2246
|
+
JSON.stringify(x) !== JSON.stringify(l.columns) && (l.columns = [...x], r("columns:update", [...x]));
|
|
2247
2247
|
},
|
|
2248
2248
|
{ deep: !0 }
|
|
2249
2249
|
), Ee(() => {
|
|
2250
|
-
a.value.some((
|
|
2250
|
+
a.value.some((x) => x.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 [I, C] of
|
|
2252
|
+
const u = T(() => l.columns.filter((x) => x.pinned).length), i = () => {
|
|
2253
|
+
const x = s.value, b = x?.rows[0], f = x?.rows[1], h = b ? Array.from(b.cells) : [];
|
|
2254
|
+
for (const [I, C] of h.entries()) {
|
|
2255
2255
|
const $ = f?.cells[I];
|
|
2256
2256
|
$ && (C.style.width = `${$.offsetWidth}px`);
|
|
2257
2257
|
}
|
|
2258
|
-
for (const I of
|
|
2258
|
+
for (const I of x?.rows || []) {
|
|
2259
2259
|
let C = 0;
|
|
2260
2260
|
const $ = [];
|
|
2261
2261
|
for (const L of I.cells)
|
|
@@ -2263,40 +2263,40 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
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", (x) => {
|
|
2267
|
+
if (x.key === "Escape" && l.modal.visible) {
|
|
2268
2268
|
l.modal.visible = !1;
|
|
2269
2269
|
const b = l.modal.parent;
|
|
2270
|
-
b &&
|
|
2270
|
+
b && ft().then(() => {
|
|
2271
2271
|
b.focus();
|
|
2272
2272
|
});
|
|
2273
2273
|
}
|
|
2274
2274
|
});
|
|
2275
|
-
const d = (
|
|
2276
|
-
if (!
|
|
2275
|
+
const d = (x) => {
|
|
2276
|
+
if (!x.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 h = { ...l.columns[f] };
|
|
2281
|
+
h.originalIndex = f, b.push(h);
|
|
2282
2282
|
}
|
|
2283
2283
|
return b.push({
|
|
2284
2284
|
...l.columns[u.value],
|
|
2285
2285
|
isGantt: !0,
|
|
2286
|
-
colspan:
|
|
2286
|
+
colspan: x.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 = (x) => {
|
|
2292
|
+
r("connection:event", { type: "create", connection: x });
|
|
2293
|
+
}, y = (x) => {
|
|
2294
|
+
r("connection:event", { type: "delete", connection: x });
|
|
2295
|
+
}, g = (x, b) => {
|
|
2296
|
+
switch (x) {
|
|
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), h = l.rows[f];
|
|
2299
|
+
n.value = [...l.rows], r("row:add", { rowIndex: f, row: h });
|
|
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 h = l.rows[f];
|
|
2311
|
+
n.value = [...l.rows], r("row:duplicate", { sourceIndex: b, newIndex: f, row: h });
|
|
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), h = l.rows[f];
|
|
2317
|
+
n.value = [...l.rows], r("row:insert-above", { targetIndex: b, newIndex: f, row: h });
|
|
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), h = l.rows[f];
|
|
2322
|
+
n.value = [...l.rows], r("row:insert-below", { targetIndex: b, newIndex: f, row: h });
|
|
2323
2323
|
break;
|
|
2324
2324
|
}
|
|
2325
2325
|
case "move": {
|
|
@@ -2341,34 +2341,34 @@ 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
|
+
}), (x, b) => (m(), k("div", hl, [
|
|
2345
|
+
K((m(), k("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(
|
|
2353
|
-
|
|
2352
|
+
he(x.$slots, "header", { data: V(l) }, () => [
|
|
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(x.$slots, "body", { data: V(l) }, () => [
|
|
2360
|
+
(m(!0), k(X, null, pe(V(l).filteredRows, (f, h) => (m(), ve(pn, {
|
|
2361
|
+
key: `${f.originalIndex}-${h}`,
|
|
2362
2362
|
row: f,
|
|
2363
2363
|
rowIndex: f.originalIndex,
|
|
2364
2364
|
store: V(l),
|
|
2365
|
-
"onRow:action":
|
|
2365
|
+
"onRow:action": g
|
|
2366
2366
|
}, {
|
|
2367
2367
|
default: $t(() => [
|
|
2368
|
-
(
|
|
2368
|
+
(m(!0), k(X, null, pe(d(f), (I, C) => (m(), k(X, {
|
|
2369
2369
|
key: I.name
|
|
2370
2370
|
}, [
|
|
2371
|
-
I.isGantt ? (
|
|
2371
|
+
I.isGantt ? (m(), ve(Oe(I.ganttComponent || "AGanttCell"), {
|
|
2372
2372
|
key: 0,
|
|
2373
2373
|
store: V(l),
|
|
2374
2374
|
"columns-count": V(l).columns.length - u.value,
|
|
@@ -2385,7 +2385,7 @@ const Yo = { class: "gantt-connection-overlay" }, Xo = {
|
|
|
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"])) : (m(), ve(Oe(I.cellComponent || "ACell"), {
|
|
2389
2389
|
key: 1,
|
|
2390
2390
|
store: V(l),
|
|
2391
2391
|
pinned: I.pinned,
|
|
@@ -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(
|
|
2408
|
-
K(
|
|
2406
|
+
he(x.$slots, "footer", { data: V(l) }, void 0, !0),
|
|
2407
|
+
he(x.$slots, "modal", { data: V(l) }, () => [
|
|
2408
|
+
K(At(hn, { store: V(l) }, {
|
|
2409
2409
|
default: $t(() => [
|
|
2410
|
-
(
|
|
2410
|
+
(m(), 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 ? (m(), 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 m(), k("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 m(), k("div", Cl, [
|
|
2444
2444
|
w("h2", El, [
|
|
2445
2445
|
he(e.$slots, "default", {}, void 0, !0)
|
|
2446
2446
|
]),
|
|
@@ -2449,7 +2449,7 @@ function Al(e, t) {
|
|
|
2449
2449
|
}
|
|
2450
2450
|
const $l = /* @__PURE__ */ Ve(Ml, [["render", Al], ["__scopeId", "data-v-e1165876"]]);
|
|
2451
2451
|
function Tl(e) {
|
|
2452
|
-
e.component("ACell", mo), e.component("AExpansionRow", bo), e.component("AGanttCell", Ao), e.component("ARow",
|
|
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
2454
|
const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" }, Rl = { class: "aform_display-value" }, Ll = ["for"], Hl = { class: "aform_checkbox-container aform_input-field" }, Vl = ["id", "disabled", "required"], _l = ["innerHTML"], Pl = /* @__PURE__ */ oe({
|
|
2455
2455
|
__name: "ACheckbox",
|
|
@@ -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) => (m(), k("div", Dl, [
|
|
2472
|
+
e.mode === "display" ? (m(), k(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)) : (m(), k(X, { key: 1 }, [
|
|
2476
2476
|
w("label", {
|
|
2477
2477
|
class: "aform_field-label",
|
|
2478
2478
|
for: e.uuid
|
|
@@ -2519,8 +2519,8 @@ const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" },
|
|
|
2519
2519
|
},
|
|
2520
2520
|
setup(e) {
|
|
2521
2521
|
return (t, o) => {
|
|
2522
|
-
const n =
|
|
2523
|
-
return
|
|
2522
|
+
const n = $n("ATableModal");
|
|
2523
|
+
return m(), 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) => (m(), k("div", null, [
|
|
2564
|
+
e.mode === "display" ? (m(), k(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)) : (m(), k(X, { key: 1 }, [
|
|
2568
2568
|
K(w("input", {
|
|
2569
2569
|
id: e.uuid,
|
|
2570
2570
|
ref: "date",
|
|
@@ -2586,8 +2586,8 @@ const Dl = { class: "aform_form-element" }, Sl = { class: "aform_field-label" },
|
|
|
2586
2586
|
]));
|
|
2587
2587
|
}
|
|
2588
2588
|
}), Gl = /* @__PURE__ */ Te(Wl, [["__scopeId", "data-v-8e467bb3"]]);
|
|
2589
|
-
function
|
|
2590
|
-
return
|
|
2589
|
+
function gn(e, t) {
|
|
2590
|
+
return vt() ? (pt(e, t), !0) : !1;
|
|
2591
2591
|
}
|
|
2592
2592
|
// @__NO_SIDE_EFFECTS__
|
|
2593
2593
|
function jt() {
|
|
@@ -2598,7 +2598,7 @@ function jt() {
|
|
|
2598
2598
|
on: (r) => {
|
|
2599
2599
|
e.add(r);
|
|
2600
2600
|
const s = () => t(r);
|
|
2601
|
-
return
|
|
2601
|
+
return gn(s), { off: s };
|
|
2602
2602
|
},
|
|
2603
2603
|
off: t,
|
|
2604
2604
|
trigger: (...r) => Promise.all(Array.from(e).map((s) => s(...r))),
|
|
@@ -2607,7 +2607,7 @@ function jt() {
|
|
|
2607
2607
|
}
|
|
2608
2608
|
};
|
|
2609
2609
|
}
|
|
2610
|
-
const
|
|
2610
|
+
const wn = typeof window < "u" && typeof document < "u";
|
|
2611
2611
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2612
2612
|
const zl = Object.prototype.toString, ql = (e) => zl.call(e) === "[object Object]", Je = () => {
|
|
2613
2613
|
}, Yl = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
@@ -2619,7 +2619,7 @@ function Xl(...e) {
|
|
|
2619
2619
|
set: Je
|
|
2620
2620
|
}))) : R(t);
|
|
2621
2621
|
}
|
|
2622
|
-
function
|
|
2622
|
+
function kt(e) {
|
|
2623
2623
|
return Array.isArray(e) ? e : [e];
|
|
2624
2624
|
}
|
|
2625
2625
|
function jl(e, t, o) {
|
|
@@ -2628,59 +2628,59 @@ function jl(e, t, o) {
|
|
|
2628
2628
|
immediate: !0
|
|
2629
2629
|
});
|
|
2630
2630
|
}
|
|
2631
|
-
const
|
|
2632
|
-
function
|
|
2631
|
+
const yn = wn ? window : void 0, Jl = wn ? window.document : void 0;
|
|
2632
|
+
function Ue(e) {
|
|
2633
2633
|
var t;
|
|
2634
2634
|
const o = E(e);
|
|
2635
2635
|
return (t = o?.$el) !== null && t !== void 0 ? t : o;
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2637
|
+
function It(...e) {
|
|
2638
2638
|
const t = (n, a, r, s) => (n.addEventListener(a, r, s), () => n.removeEventListener(a, r, s)), o = T(() => {
|
|
2639
|
-
const n =
|
|
2639
|
+
const n = kt(E(e[0])).filter((a) => a != null);
|
|
2640
2640
|
return n.every((a) => typeof a != "string") ? n : void 0;
|
|
2641
2641
|
});
|
|
2642
2642
|
return jl(() => {
|
|
2643
2643
|
var n, a;
|
|
2644
2644
|
return [
|
|
2645
|
-
(n = (a = o.value) === null || a === void 0 ? void 0 : a.map((r) =>
|
|
2646
|
-
|
|
2647
|
-
|
|
2645
|
+
(n = (a = o.value) === null || a === void 0 ? void 0 : a.map((r) => Ue(r))) !== null && n !== void 0 ? n : [yn].filter((r) => r != null),
|
|
2646
|
+
kt(E(o.value ? e[1] : e[0])),
|
|
2647
|
+
kt(V(o.value ? e[2] : e[1])),
|
|
2648
2648
|
E(o.value ? e[3] : e[2])
|
|
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((g) => t(p, y, g, i))));
|
|
2653
2653
|
u(() => {
|
|
2654
2654
|
d.forEach((p) => p());
|
|
2655
2655
|
});
|
|
2656
2656
|
}, { flush: "post" });
|
|
2657
2657
|
}
|
|
2658
2658
|
function Jt(e, t, o = {}) {
|
|
2659
|
-
const { window: n =
|
|
2659
|
+
const { window: n = yn, ignore: a = [], capture: r = !0, detectIframe: s = !1, controls: l = !1 } = o;
|
|
2660
2660
|
if (!n) return l ? {
|
|
2661
2661
|
stop: Je,
|
|
2662
2662
|
cancel: Je,
|
|
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((h) => {
|
|
2667
|
+
if (typeof h == "string") return Array.from(n.document.querySelectorAll(h)).some((I) => I === f.target || f.composedPath().includes(I));
|
|
2668
2668
|
{
|
|
2669
|
-
const I =
|
|
2669
|
+
const I = Ue(h);
|
|
2670
2670
|
return I && (f.target === I || f.composedPath().includes(I));
|
|
2671
2671
|
}
|
|
2672
2672
|
});
|
|
2673
2673
|
function d(f) {
|
|
2674
|
-
const
|
|
2675
|
-
return
|
|
2674
|
+
const h = E(f);
|
|
2675
|
+
return h && h.$.subTree.shapeFlag === 16;
|
|
2676
2676
|
}
|
|
2677
|
-
function p(f,
|
|
2677
|
+
function p(f, h) {
|
|
2678
2678
|
const I = E(f), C = I.$.subTree && I.$.subTree.children;
|
|
2679
|
-
return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.el ===
|
|
2679
|
+
return C == null || !Array.isArray(C) ? !1 : C.some(($) => $.el === h.target || h.composedPath().includes($.el));
|
|
2680
2680
|
}
|
|
2681
2681
|
const y = (f) => {
|
|
2682
|
-
const
|
|
2683
|
-
if (f.target != null && !(!(
|
|
2682
|
+
const h = Ue(e);
|
|
2683
|
+
if (f.target != null && !(!(h instanceof Element) && d(e) && p(e, f)) && !(!h || h === f.target || f.composedPath().includes(h))) {
|
|
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
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2691
|
+
let g = !1;
|
|
2692
|
+
const x = [
|
|
2693
|
+
It(n, "click", (f) => {
|
|
2694
|
+
g || (g = !0, setTimeout(() => {
|
|
2695
|
+
g = !1;
|
|
2696
2696
|
}, 0), y(f));
|
|
2697
2697
|
}, {
|
|
2698
2698
|
passive: !0,
|
|
2699
2699
|
capture: r
|
|
2700
2700
|
}),
|
|
2701
|
-
|
|
2702
|
-
const
|
|
2703
|
-
u = !i(f) && !!(
|
|
2701
|
+
It(n, "pointerdown", (f) => {
|
|
2702
|
+
const h = Ue(e);
|
|
2703
|
+
u = !i(f) && !!(h && !f.composedPath().includes(h));
|
|
2704
2704
|
}, { passive: !0 }),
|
|
2705
|
-
s &&
|
|
2705
|
+
s && It(n, "blur", (f) => {
|
|
2706
2706
|
setTimeout(() => {
|
|
2707
|
-
var
|
|
2708
|
-
const I =
|
|
2709
|
-
((
|
|
2707
|
+
var h;
|
|
2708
|
+
const I = Ue(e);
|
|
2709
|
+
((h = n.document.activeElement) === null || h === void 0 ? void 0 : h.tagName) === "IFRAME" && !I?.contains(n.document.activeElement) && t(f);
|
|
2710
2710
|
}, 0);
|
|
2711
2711
|
}, { passive: !0 })
|
|
2712
|
-
].filter(Boolean), b = () =>
|
|
2712
|
+
].filter(Boolean), b = () => x.forEach((f) => f());
|
|
2713
2713
|
return l ? {
|
|
2714
2714
|
stop: b,
|
|
2715
2715
|
cancel: () => {
|
|
@@ -2736,9 +2736,9 @@ function Kl(e) {
|
|
|
2736
2736
|
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
|
-
const y = (p =
|
|
2740
|
-
return y && (y.type = "file", y.onchange = (
|
|
2741
|
-
o.value =
|
|
2739
|
+
const y = (p = Ue(e.input)) !== null && p !== void 0 ? p : t ? t.createElement("input") : void 0;
|
|
2740
|
+
return y && (y.type = "file", y.onchange = (g) => {
|
|
2741
|
+
o.value = g.target.files, a(o.value);
|
|
2742
2742
|
}, y.oncancel = () => {
|
|
2743
2743
|
s();
|
|
2744
2744
|
}), y;
|
|
@@ -2750,14 +2750,14 @@ function ea(e = {}) {
|
|
|
2750
2750
|
}, d = (p) => {
|
|
2751
2751
|
const y = l.value;
|
|
2752
2752
|
if (!y) return;
|
|
2753
|
-
const
|
|
2753
|
+
const g = {
|
|
2754
2754
|
...Ql,
|
|
2755
2755
|
...e,
|
|
2756
2756
|
...p
|
|
2757
2757
|
};
|
|
2758
|
-
i(
|
|
2758
|
+
i(g), E(g.reset) && u(), y.click();
|
|
2759
2759
|
};
|
|
2760
|
-
return
|
|
2760
|
+
return ht(() => {
|
|
2761
2761
|
i(e);
|
|
2762
2762
|
}), {
|
|
2763
2763
|
files: Rt(o),
|
|
@@ -2767,29 +2767,29 @@ function ea(e = {}) {
|
|
|
2767
2767
|
onChange: n
|
|
2768
2768
|
};
|
|
2769
2769
|
}
|
|
2770
|
-
function
|
|
2770
|
+
function Mt(e) {
|
|
2771
2771
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
2772
2772
|
}
|
|
2773
|
-
const
|
|
2773
|
+
const Ct = /* @__PURE__ */ new WeakMap();
|
|
2774
2774
|
function ta(e, t = !1) {
|
|
2775
2775
|
const o = ue(t);
|
|
2776
2776
|
let n = "";
|
|
2777
2777
|
ne(Xl(e), (s) => {
|
|
2778
|
-
const l =
|
|
2778
|
+
const l = Mt(E(s));
|
|
2779
2779
|
if (l) {
|
|
2780
2780
|
const u = l;
|
|
2781
|
-
if (
|
|
2781
|
+
if (Ct.get(u) || Ct.set(u, u.style.overflow), u.style.overflow !== "hidden" && (n = u.style.overflow), u.style.overflow === "hidden") return o.value = !0;
|
|
2782
2782
|
if (o.value) return u.style.overflow = "hidden";
|
|
2783
2783
|
}
|
|
2784
2784
|
}, { immediate: !0 });
|
|
2785
2785
|
const a = () => {
|
|
2786
|
-
const s =
|
|
2786
|
+
const s = Mt(E(e));
|
|
2787
2787
|
!s || o.value || (s.style.overflow = "hidden", o.value = !0);
|
|
2788
2788
|
}, r = () => {
|
|
2789
|
-
const s =
|
|
2790
|
-
!s || !o.value || (s.style.overflow = n,
|
|
2789
|
+
const s = Mt(E(e));
|
|
2790
|
+
!s || !o.value || (s.style.overflow = n, Ct.delete(s), o.value = !1);
|
|
2791
2791
|
};
|
|
2792
|
-
return
|
|
2792
|
+
return gn(r), T({
|
|
2793
2793
|
get() {
|
|
2794
2794
|
return o.value;
|
|
2795
2795
|
},
|
|
@@ -2798,7 +2798,7 @@ function ta(e, t = !1) {
|
|
|
2798
2798
|
}
|
|
2799
2799
|
});
|
|
2800
2800
|
}
|
|
2801
|
-
const
|
|
2801
|
+
const Et = /* @__PURE__ */ new WeakMap(), na = {
|
|
2802
2802
|
mounted(e, t) {
|
|
2803
2803
|
const o = !t.modifiers.bubble;
|
|
2804
2804
|
let n;
|
|
@@ -2807,11 +2807,11 @@ const At = /* @__PURE__ */ new WeakMap(), na = {
|
|
|
2807
2807
|
const [a, r] = t.value;
|
|
2808
2808
|
n = Jt(e, a, Object.assign({ capture: o }, r));
|
|
2809
2809
|
}
|
|
2810
|
-
|
|
2810
|
+
Et.set(e, n);
|
|
2811
2811
|
},
|
|
2812
2812
|
unmounted(e) {
|
|
2813
|
-
const t =
|
|
2814
|
-
t && typeof t == "function" ? t() : t?.stop(),
|
|
2813
|
+
const t = Et.get(e);
|
|
2814
|
+
t && typeof t == "function" ? t() : t?.stop(), Et.delete(e);
|
|
2815
2815
|
}
|
|
2816
2816
|
};
|
|
2817
2817
|
function oa() {
|
|
@@ -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 g = await e.filterFunction(t.value || "");
|
|
2866
|
+
n.results = g || [];
|
|
2867
2867
|
} catch {
|
|
2868
2868
|
n.results = [];
|
|
2869
2869
|
} finally {
|
|
@@ -2871,65 +2871,65 @@ const la = {
|
|
|
2871
2871
|
}
|
|
2872
2872
|
} else
|
|
2873
2873
|
i();
|
|
2874
|
-
}, s = (
|
|
2875
|
-
t.value =
|
|
2874
|
+
}, s = (g) => {
|
|
2875
|
+
t.value = g, o.value = g, u(g);
|
|
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 g = e.options?.indexOf(t.value ?? "") ?? -1;
|
|
2878
|
+
n.activeItemIndex = e.isAsync ? null : g >= 0 ? g : null, n.open = !0, n.results = e.isAsync ? [] : e.options;
|
|
2879
|
+
}, u = (g) => {
|
|
2880
|
+
n.activeItemIndex = null, n.open = !1, e.options?.includes(g || t.value || "") || (t.value = o.value);
|
|
2881
2881
|
}, i = () => {
|
|
2882
|
-
t.value ? n.results = e.options?.filter((
|
|
2882
|
+
t.value ? n.results = e.options?.filter((g) => g.toLowerCase().includes((t.value ?? "").toLowerCase())) : n.results = e.options;
|
|
2883
2883
|
}, d = () => {
|
|
2884
|
-
const
|
|
2884
|
+
const g = n.results?.length || 0;
|
|
2885
2885
|
if (n.activeItemIndex != null) {
|
|
2886
|
-
const
|
|
2887
|
-
n.activeItemIndex = (
|
|
2886
|
+
const x = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
|
|
2887
|
+
n.activeItemIndex = (x + 1) % g;
|
|
2888
2888
|
} else
|
|
2889
2889
|
n.activeItemIndex = 0;
|
|
2890
2890
|
}, p = () => {
|
|
2891
|
-
const
|
|
2891
|
+
const g = n.results?.length || 0;
|
|
2892
2892
|
if (n.activeItemIndex != null) {
|
|
2893
|
-
const
|
|
2894
|
-
|
|
2893
|
+
const x = isNaN(n.activeItemIndex) ? 0 : n.activeItemIndex;
|
|
2894
|
+
x === 0 ? n.activeItemIndex = null : n.activeItemIndex = x - 1;
|
|
2895
2895
|
} else
|
|
2896
|
-
n.activeItemIndex =
|
|
2896
|
+
n.activeItemIndex = g - 1;
|
|
2897
2897
|
}, y = () => {
|
|
2898
2898
|
if (n.results) {
|
|
2899
|
-
const
|
|
2900
|
-
s(
|
|
2899
|
+
const g = n.activeItemIndex || 0, x = n.results[g];
|
|
2900
|
+
s(x);
|
|
2901
2901
|
}
|
|
2902
2902
|
n.activeItemIndex = 0;
|
|
2903
2903
|
};
|
|
2904
|
-
return (
|
|
2904
|
+
return (g, x) => e.mode === "display" ? (m(), k("div", la, [
|
|
2905
2905
|
w("span", aa, N(t.value ?? ""), 1),
|
|
2906
2906
|
w("label", null, N(e.label), 1)
|
|
2907
|
-
])) : K((
|
|
2907
|
+
])) : K((m(), k("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": x[0] || (x[0] = (b) => t.value = b),
|
|
2914
2914
|
type: "text",
|
|
2915
2915
|
disabled: e.mode === "read",
|
|
2916
2916
|
onInput: r,
|
|
2917
2917
|
onFocus: l,
|
|
2918
2918
|
onKeydown: [
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
|
|
2923
|
-
|
|
2919
|
+
Ne(d, ["down"]),
|
|
2920
|
+
Ne(p, ["up"]),
|
|
2921
|
+
Ne(y, ["enter"]),
|
|
2922
|
+
Ne(a, ["esc"]),
|
|
2923
|
+
Ne(a, ["tab"])
|
|
2924
2924
|
]
|
|
2925
2925
|
}, null, 40, ra), [
|
|
2926
2926
|
[we, t.value]
|
|
2927
2927
|
]),
|
|
2928
2928
|
K(w("ul", ia, [
|
|
2929
|
-
n.loading ? (
|
|
2929
|
+
n.loading ? (m(), k("li", ua, "Loading results...")) : (m(!0), k(X, { key: 1 }, pe(n.results, (b, f) => (m(), k("li", {
|
|
2930
2930
|
key: b,
|
|
2931
2931
|
class: se(["autocomplete-result", { "is-active": f === n.activeItemIndex }]),
|
|
2932
|
-
onClick: Ie((
|
|
2932
|
+
onClick: Ie((h) => s(b), ["stop"])
|
|
2933
2933
|
}, N(b), 11, ca))), 128))
|
|
2934
2934
|
], 512), [
|
|
2935
2935
|
[Ce, n.open]
|
|
@@ -2941,8 +2941,8 @@ const la = {
|
|
|
2941
2941
|
]);
|
|
2942
2942
|
}
|
|
2943
2943
|
}), fa = /* @__PURE__ */ Te(da, [["__scopeId", "data-v-c823d475"]]);
|
|
2944
|
-
function
|
|
2945
|
-
return
|
|
2944
|
+
function bn(e, t) {
|
|
2945
|
+
return vt() ? (pt(e, t), !0) : !1;
|
|
2946
2946
|
}
|
|
2947
2947
|
const va = typeof window < "u" && typeof document < "u";
|
|
2948
2948
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
@@ -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((g) => t(p, y, g, i))));
|
|
2982
2982
|
u(() => {
|
|
2983
2983
|
d.forEach((p) => p());
|
|
2984
2984
|
});
|
|
@@ -2986,7 +2986,7 @@ function Ke(...e) {
|
|
|
2986
2986
|
}
|
|
2987
2987
|
// @__NO_SIDE_EFFECTS__
|
|
2988
2988
|
function ya() {
|
|
2989
|
-
const e = ue(!1), t =
|
|
2989
|
+
const e = ue(!1), t = mt();
|
|
2990
2990
|
return t && Ee(() => {
|
|
2991
2991
|
e.value = !0;
|
|
2992
2992
|
}, t), e;
|
|
@@ -3012,7 +3012,7 @@ function xa(e, t, o = {}) {
|
|
|
3012
3012
|
}), i = () => r?.takeRecords(), d = () => {
|
|
3013
3013
|
u(), l();
|
|
3014
3014
|
};
|
|
3015
|
-
return
|
|
3015
|
+
return bn(d), {
|
|
3016
3016
|
isSupported: s,
|
|
3017
3017
|
stop: d,
|
|
3018
3018
|
takeRecords: i
|
|
@@ -3024,11 +3024,11 @@ function ka(e, t, o = {}) {
|
|
|
3024
3024
|
let s;
|
|
3025
3025
|
const l = (d) => {
|
|
3026
3026
|
s?.(), s = d;
|
|
3027
|
-
}, u =
|
|
3027
|
+
}, u = ht(() => {
|
|
3028
3028
|
const d = Ge(e);
|
|
3029
3029
|
if (d) {
|
|
3030
3030
|
const { stop: p } = xa(a, (y) => {
|
|
3031
|
-
y.map((
|
|
3031
|
+
y.map((g) => [...g.removedNodes]).flat().some((g) => g === d || g.contains(d)) && t(y);
|
|
3032
3032
|
}, {
|
|
3033
3033
|
window: n,
|
|
3034
3034
|
childList: !0,
|
|
@@ -3039,7 +3039,7 @@ function ka(e, t, o = {}) {
|
|
|
3039
3039
|
}, { flush: r }), i = () => {
|
|
3040
3040
|
u(), l();
|
|
3041
3041
|
};
|
|
3042
|
-
return
|
|
3042
|
+
return bn(i), i;
|
|
3043
3043
|
}
|
|
3044
3044
|
// @__NO_SIDE_EFFECTS__
|
|
3045
3045
|
function Ia(e = {}) {
|
|
@@ -3185,7 +3185,7 @@ const De = (e) => {
|
|
|
3185
3185
|
ArrowDown: "down",
|
|
3186
3186
|
ArrowLeft: "left",
|
|
3187
3187
|
ArrowRight: "right"
|
|
3188
|
-
},
|
|
3188
|
+
}, xn = {
|
|
3189
3189
|
"keydown.up": (e) => {
|
|
3190
3190
|
const t = Qt(e);
|
|
3191
3191
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
@@ -3277,24 +3277,24 @@ function Ra(e) {
|
|
|
3277
3277
|
}, a = (s) => (l) => {
|
|
3278
3278
|
const u = Sa[l.key] || l.key.toLowerCase();
|
|
3279
3279
|
if (at.includes(u)) return;
|
|
3280
|
-
const i = s.handlers ||
|
|
3280
|
+
const i = s.handlers || xn;
|
|
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 g = i[d], x = y.filter((f) => at.includes(f)), b = at.some((f) => {
|
|
3285
|
+
const h = f.charAt(0).toUpperCase() + f.slice(1);
|
|
3286
|
+
return l.getModifierState(h);
|
|
3287
3287
|
});
|
|
3288
|
-
if (
|
|
3288
|
+
if (x.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 h = f.charAt(0).toUpperCase() + f.slice(1);
|
|
3293
|
+
l.getModifierState(h) && g(l);
|
|
3294
3294
|
}
|
|
3295
3295
|
}
|
|
3296
3296
|
} else
|
|
3297
|
-
b ||
|
|
3297
|
+
b || g(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)), g = ne(y, (x) => {
|
|
3306
|
+
x ? p.addEventListener("keydown", i) : p.removeEventListener("keydown", i);
|
|
3307
3307
|
});
|
|
3308
|
-
r.push(
|
|
3308
|
+
r.push(g);
|
|
3309
3309
|
}
|
|
3310
3310
|
}
|
|
3311
3311
|
}), an(() => {
|
|
@@ -3339,7 +3339,7 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
|
|
|
3339
3339
|
setup(e, { expose: t }) {
|
|
3340
3340
|
const o = Me(e, "modelValue"), n = R(new Date(o.value)), a = R(n.value.getMonth()), r = R(n.value.getFullYear()), s = R([]), l = fe("datepicker");
|
|
3341
3341
|
Ee(async () => {
|
|
3342
|
-
u(), await
|
|
3342
|
+
u(), await ft();
|
|
3343
3343
|
const C = document.getElementsByClassName("selectedDate");
|
|
3344
3344
|
if (C.length > 0)
|
|
3345
3345
|
C[0].focus();
|
|
@@ -3359,11 +3359,11 @@ 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
|
+
}, g = (C) => {
|
|
3363
3363
|
const $ = /* @__PURE__ */ new Date();
|
|
3364
3364
|
if (a.value === $.getMonth())
|
|
3365
3365
|
return $.toDateString() === new Date(C).toDateString();
|
|
3366
|
-
},
|
|
3366
|
+
}, x = (C) => new Date(C).toDateString() === new Date(n.value).toDateString(), b = (C, $) => (C - 1) * ln + $, f = (C, $) => s.value[b(C, $)], h = (C) => {
|
|
3367
3367
|
o.value = n.value = new Date(s.value[C]);
|
|
3368
3368
|
}, I = T(() => new Date(r.value, a.value, 1).toLocaleDateString(void 0, {
|
|
3369
3369
|
year: "numeric",
|
|
@@ -3374,7 +3374,7 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
|
|
|
3374
3374
|
parent: l,
|
|
3375
3375
|
selectors: "td",
|
|
3376
3376
|
handlers: {
|
|
3377
|
-
...
|
|
3377
|
+
...xn,
|
|
3378
3378
|
"keydown.pageup": p,
|
|
3379
3379
|
"keydown.shift.pageup": i,
|
|
3380
3380
|
"keydown.pagedown": y,
|
|
@@ -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" ? (m(), k(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 ? (m(), k("label", Ha, N(e.label), 1)) : Y("", !0)
|
|
3391
|
+
], 64)) : (m(), k("div", Va, [
|
|
3392
3392
|
w("table", null, [
|
|
3393
3393
|
w("tbody", null, [
|
|
3394
3394
|
w("tr", null, [
|
|
@@ -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
|
+
(m(), k(X, null, pe(Oa, (L) => w("tr", { key: L }, [
|
|
3417
|
+
(m(), k(X, null, pe(ln, (S) => w("td", {
|
|
3418
3418
|
ref_for: !0,
|
|
3419
3419
|
ref: "celldate",
|
|
3420
3420
|
key: b(L, S),
|
|
@@ -3422,11 +3422,11 @@ 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: g(f(L, S)),
|
|
3426
|
+
selectedDate: x(f(L, S))
|
|
3427
3427
|
}),
|
|
3428
|
-
onClick: Ie((O) =>
|
|
3429
|
-
onKeydown:
|
|
3428
|
+
onClick: Ie((O) => h(b(L, S)), ["prevent", "stop"]),
|
|
3429
|
+
onKeydown: Ne((O) => h(b(L, S)), ["enter"])
|
|
3430
3430
|
}, N(new Date(f(L, S)).getDate()), 43, Pa)), 64))
|
|
3431
3431
|
])), 64))
|
|
3432
3432
|
])
|
|
@@ -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) => (m(), k("button", {
|
|
3443
3443
|
class: se(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
|
|
3444
3444
|
}, "×", 2));
|
|
3445
3445
|
}
|
|
@@ -3474,8 +3474,8 @@ 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 [g, x] of Object.entries(p))
|
|
3478
|
+
["component", "fieldtype", "mode"].includes(g) || (y[g] = x), g === "rows" && (!x || Array.isArray(x) && x.length === 0) && (y.rows = n.value[p.fieldname] || []);
|
|
3479
3479
|
return y;
|
|
3480
3480
|
}, l = T(() => e.mode ?? "edit");
|
|
3481
3481
|
function u(p) {
|
|
@@ -3483,43 +3483,40 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
|
|
|
3483
3483
|
return y || l.value;
|
|
3484
3484
|
}
|
|
3485
3485
|
const i = R([]);
|
|
3486
|
-
|
|
3486
|
+
ht(() => {
|
|
3487
3487
|
e.schema && i.value.length !== e.schema.length && (i.value = e.schema.map((p, y) => T({
|
|
3488
3488
|
get() {
|
|
3489
3489
|
return n.value?.[e.schema[y].fieldname];
|
|
3490
3490
|
},
|
|
3491
|
-
set: (
|
|
3492
|
-
const
|
|
3493
|
-
|
|
3491
|
+
set: (g) => {
|
|
3492
|
+
const x = e.schema[y].fieldname;
|
|
3493
|
+
x && n.value && (n.value[x] = g, o("update:data", { ...n.value })), o("update:schema", e.schema);
|
|
3494
3494
|
}
|
|
3495
3495
|
})));
|
|
3496
3496
|
});
|
|
3497
3497
|
const d = T(() => i.value);
|
|
3498
|
-
return (p, y) =>
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
], 64))), 128))
|
|
3519
|
-
]);
|
|
3520
|
-
};
|
|
3498
|
+
return (p, y) => (m(), k("form", Ua, [
|
|
3499
|
+
(m(!0), k(X, null, pe(e.schema, (g, x) => (m(), k(X, { key: x }, [
|
|
3500
|
+
"schema" in g && Array.isArray(g.schema) && g.schema.length > 0 ? (m(), k("div", Wa, [
|
|
3501
|
+
g.label ? (m(), k("h4", Ga, N(g.label), 1)) : Y("", !0),
|
|
3502
|
+
(m(), ve(Oe(g.component ?? "AForm"), {
|
|
3503
|
+
data: a.value[g.fieldname],
|
|
3504
|
+
mode: u(g),
|
|
3505
|
+
schema: g.schema,
|
|
3506
|
+
"onUpdate:data": (b) => r(g.fieldname, b)
|
|
3507
|
+
}, null, 40, ["data", "mode", "schema", "onUpdate:data"]))
|
|
3508
|
+
])) : (m(), ve(Oe(g.component), dt({
|
|
3509
|
+
key: 1,
|
|
3510
|
+
modelValue: d.value[x].value,
|
|
3511
|
+
"onUpdate:modelValue": (b) => d.value[x].value = b,
|
|
3512
|
+
schema: g,
|
|
3513
|
+
data: n.value[g.fieldname],
|
|
3514
|
+
mode: u(g)
|
|
3515
|
+
}, { ref_for: !0 }, s(g)), null, 16, ["modelValue", "onUpdate:modelValue", "schema", "data", "mode"]))
|
|
3516
|
+
], 64))), 128))
|
|
3517
|
+
]));
|
|
3521
3518
|
}
|
|
3522
|
-
}),
|
|
3519
|
+
}), kn = /* @__PURE__ */ Te(za, [["__scopeId", "data-v-4d760d4f"]]), qa = /* @__PURE__ */ oe({
|
|
3523
3520
|
__name: "AFieldset",
|
|
3524
3521
|
props: {
|
|
3525
3522
|
schema: {},
|
|
@@ -3532,19 +3529,19 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
|
|
|
3532
3529
|
const o = R(!1), n = R(e.data || []), a = R(e.schema), r = (s) => {
|
|
3533
3530
|
s.preventDefault(), e.collapsible && (o.value = !o.value);
|
|
3534
3531
|
};
|
|
3535
|
-
return t({ collapsed: o }), (s, l) => (
|
|
3532
|
+
return t({ collapsed: o }), (s, l) => (m(), k("fieldset", null, [
|
|
3536
3533
|
w("legend", {
|
|
3537
3534
|
onClick: r,
|
|
3538
3535
|
onSubmit: r
|
|
3539
3536
|
}, [
|
|
3540
3537
|
Dt(N(e.label) + " ", 1),
|
|
3541
|
-
e.collapsible ? (
|
|
3538
|
+
e.collapsible ? (m(), ve(Na, {
|
|
3542
3539
|
key: 0,
|
|
3543
3540
|
collapsed: o.value
|
|
3544
3541
|
}, null, 8, ["collapsed"])) : Y("", !0)
|
|
3545
3542
|
], 32),
|
|
3546
3543
|
he(s.$slots, "default", { collapsed: o.value }, () => [
|
|
3547
|
-
K(
|
|
3544
|
+
K(At(kn, {
|
|
3548
3545
|
data: n.value,
|
|
3549
3546
|
"onUpdate:data": l[0] || (l[0] = (u) => n.value = u),
|
|
3550
3547
|
schema: a.value,
|
|
@@ -3580,23 +3577,23 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
|
|
|
3580
3577
|
const s = t.value?.length ?? 0;
|
|
3581
3578
|
return `${s} ${s === 1 ? "file" : "files"}`;
|
|
3582
3579
|
});
|
|
3583
|
-
return a((s) => s), (s, l) => (
|
|
3584
|
-
e.mode === "display" ? (
|
|
3585
|
-
V(t) ? (
|
|
3580
|
+
return a((s) => s), (s, l) => (m(), k("div", Xa, [
|
|
3581
|
+
e.mode === "display" ? (m(), k(X, { key: 0 }, [
|
|
3582
|
+
V(t) ? (m(), k("div", ja, [
|
|
3586
3583
|
w("p", null, [
|
|
3587
3584
|
w("b", null, N(r.value), 1)
|
|
3588
3585
|
]),
|
|
3589
|
-
(
|
|
3586
|
+
(m(!0), k(X, null, pe(V(t), (u) => (m(), k("li", {
|
|
3590
3587
|
key: u.name
|
|
3591
3588
|
}, N(u.name), 1))), 128))
|
|
3592
|
-
])) : (
|
|
3593
|
-
], 64)) : (
|
|
3594
|
-
V(t) ? (
|
|
3589
|
+
])) : (m(), k("span", Ja, "No file selected"))
|
|
3590
|
+
], 64)) : (m(), k(X, { key: 1 }, [
|
|
3591
|
+
V(t) ? (m(), k("div", Qa, [
|
|
3595
3592
|
w("p", null, [
|
|
3596
3593
|
l[2] || (l[2] = Dt(" You have selected: ", -1)),
|
|
3597
3594
|
w("b", null, N(r.value), 1)
|
|
3598
3595
|
]),
|
|
3599
|
-
(
|
|
3596
|
+
(m(!0), k(X, null, pe(V(t), (u) => (m(), k("li", {
|
|
3600
3597
|
key: u.name
|
|
3601
3598
|
}, N(u.name), 1))), 128))
|
|
3602
3599
|
])) : Y("", !0),
|
|
@@ -3632,11 +3629,11 @@ const La = { class: "aform_display-value" }, Ha = { key: 0 }, Va = {
|
|
|
3632
3629
|
emits: ["update:modelValue"],
|
|
3633
3630
|
setup(e) {
|
|
3634
3631
|
const t = Me(e, "modelValue");
|
|
3635
|
-
return (o, n) => (
|
|
3636
|
-
e.mode === "display" ? (
|
|
3632
|
+
return (o, n) => (m(), k("div", os, [
|
|
3633
|
+
e.mode === "display" ? (m(), k(X, { key: 0 }, [
|
|
3637
3634
|
w("span", ls, N(t.value ?? ""), 1),
|
|
3638
3635
|
w("label", as, N(e.label), 1)
|
|
3639
|
-
], 64)) : (
|
|
3636
|
+
], 64)) : (m(), k(X, { key: 1 }, [
|
|
3640
3637
|
K(w("input", {
|
|
3641
3638
|
id: e.uuid,
|
|
3642
3639
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => t.value = a),
|
|
@@ -3722,11 +3719,11 @@ const ms = { class: "aform_form-element" }, hs = { class: "aform_display-value"
|
|
|
3722
3719
|
emits: ["update:modelValue"],
|
|
3723
3720
|
setup(e) {
|
|
3724
3721
|
const t = R(!0), o = Me(e, "modelValue");
|
|
3725
|
-
return (n, a) => (
|
|
3726
|
-
e.mode === "display" ? (
|
|
3722
|
+
return (n, a) => (m(), k("div", ms, [
|
|
3723
|
+
e.mode === "display" ? (m(), k(X, { key: 0 }, [
|
|
3727
3724
|
w("span", hs, N(o.value ?? ""), 1),
|
|
3728
3725
|
w("label", gs, N(e.label), 1)
|
|
3729
|
-
], 64)) : (
|
|
3726
|
+
], 64)) : (m(), k(X, { key: 1 }, [
|
|
3730
3727
|
K(w("input", {
|
|
3731
3728
|
id: e.uuid,
|
|
3732
3729
|
"onUpdate:modelValue": a[0] || (a[0] = (r) => o.value = r),
|
|
@@ -3770,7 +3767,7 @@ const ms = { class: "aform_form-element" }, hs = { class: "aform_display-value"
|
|
|
3770
3767
|
}
|
|
3771
3768
|
r.value = !1, o("loginSuccess");
|
|
3772
3769
|
}
|
|
3773
|
-
return (u, i) => (
|
|
3770
|
+
return (u, i) => (m(), k("div", ks, [
|
|
3774
3771
|
w("div", null, [
|
|
3775
3772
|
w("div", Is, [
|
|
3776
3773
|
w("div", Ms, [
|
|
@@ -3822,7 +3819,7 @@ const ms = { class: "aform_form-element" }, hs = { class: "aform_display-value"
|
|
|
3822
3819
|
disabled: r.value || !n.value || !a.value,
|
|
3823
3820
|
onClick: l
|
|
3824
3821
|
}, [
|
|
3825
|
-
r.value ? (
|
|
3822
|
+
r.value ? (m(), k("span", Ls, "progress_activity")) : Y("", !0),
|
|
3826
3823
|
i[4] || (i[4] = w("span", { id: "login-form-button" }, "Login", -1))
|
|
3827
3824
|
], 8, Rs)
|
|
3828
3825
|
])
|
|
@@ -3836,10 +3833,7 @@ const ms = { class: "aform_form-element" }, hs = { class: "aform_display-value"
|
|
|
3836
3833
|
}
|
|
3837
3834
|
}), Ps = /* @__PURE__ */ Te(Hs, [["__scopeId", "data-v-d9ffd0a7"]]);
|
|
3838
3835
|
function Os(e) {
|
|
3839
|
-
|
|
3840
|
-
}
|
|
3841
|
-
function Bs(e) {
|
|
3842
|
-
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", In), e.component("ANumericInput", us), e.component("ATextInput", xs);
|
|
3836
|
+
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);
|
|
3843
3837
|
}
|
|
3844
3838
|
export {
|
|
3845
3839
|
Ol as ACheckbox,
|
|
@@ -3849,11 +3843,10 @@ export {
|
|
|
3849
3843
|
fa as ADropdown,
|
|
3850
3844
|
Ya as AFieldset,
|
|
3851
3845
|
ns as AFileAttach,
|
|
3852
|
-
|
|
3846
|
+
kn as AForm,
|
|
3853
3847
|
us as ANumericInput,
|
|
3854
3848
|
xs as ATextInput,
|
|
3855
3849
|
Ps as Login,
|
|
3856
|
-
|
|
3857
|
-
Os as isDoctypeMany
|
|
3850
|
+
Os as install
|
|
3858
3851
|
};
|
|
3859
3852
|
//# sourceMappingURL=aform.js.map
|