@stonecrop/aform 0.14.0 → 0.16.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 -0
- package/dist/aform.js +387 -377
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/src/index.d.ts +2 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +3 -1
- package/dist/theme/custom_themes.css +6 -0
- package/dist/theme/fields.css +84 -0
- package/dist/theme/purple_theme.css +9 -0
- package/package.json +27 -27
- package/src/components/AFormLoading.vue +76 -0
- package/src/index.ts +4 -0
- package/dist/directives/mask.js +0 -102
- package/dist/index.js +0 -31
- package/dist/probe.tsbuildinfo +0 -1
- package/dist/types/index.js +0 -0
package/dist/aform.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ne, useTemplateRef as pe, ref as A, computed as S, onMounted as Le, openBlock as g, createElementBlock as k, unref as P, normalizeClass as ue, normalizeStyle as
|
|
1
|
+
import { defineComponent as ne, useTemplateRef as pe, ref as A, computed as S, onMounted as Le, openBlock as g, createElementBlock as k, unref as P, normalizeClass as ue, normalizeStyle as Ce, createBlock as me, resolveDynamicComponent as Ze, mergeProps as at, toDisplayString as B, createElementVNode as y, withModifiers as se, withDirectives as _, Fragment as X, renderList as we, vShow as xe, createCommentVNode as W, renderSlot as Ie, createTextVNode as kt, watch as te, onBeforeUnmount as fn, nextTick as st, toValue as H, shallowRef as he, getCurrentScope as Mt, onScopeDispose as It, reactive as Tt, vModelText as ge, vModelCheckbox as jt, vModelSelect as zt, getCurrentInstance as Dt, watchEffect as $t, useCssVars as mn, onUnmounted as hn, useModel as Te, inject as wt, createVNode as ze, withCtx as Ft, mergeModels as be, isRef as pn, toRefs as gn, customRef as Ct, toRef as _t, readonly as St, withKeys as ve, provide as wn } from "vue";
|
|
2
2
|
import { defineStore as yn } from "pinia";
|
|
3
3
|
import './assets/index.css';function yt(e) {
|
|
4
4
|
return Function(`"use strict"; return (${e})`)();
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function Xt(e, t) {
|
|
7
7
|
return Mt() ? (It(e, t), !0) : !1;
|
|
8
8
|
}
|
|
9
9
|
const xn = typeof window < "u" && typeof document < "u";
|
|
@@ -25,7 +25,7 @@ function We(e) {
|
|
|
25
25
|
const l = H(e);
|
|
26
26
|
return (t = l?.$el) !== null && t !== void 0 ? t : l;
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function _e(...e) {
|
|
29
29
|
const t = (a, n, o, s) => (a.addEventListener(n, o, s), () => a.removeEventListener(n, o, s)), l = S(() => {
|
|
30
30
|
const a = Qe(H(e[0])).filter((n) => n != null);
|
|
31
31
|
return a.every((n) => typeof n != "string") ? a : void 0;
|
|
@@ -54,14 +54,14 @@ function Dn() {
|
|
|
54
54
|
}, t), e;
|
|
55
55
|
}
|
|
56
56
|
// @__NO_SIDE_EFFECTS__
|
|
57
|
-
function
|
|
57
|
+
function $n(e) {
|
|
58
58
|
const t = /* @__PURE__ */ Dn();
|
|
59
59
|
return S(() => (t.value, !!e()));
|
|
60
60
|
}
|
|
61
|
-
function
|
|
61
|
+
function Cn(e, t, l = {}) {
|
|
62
62
|
const { window: a = qe, ...n } = l;
|
|
63
63
|
let o;
|
|
64
|
-
const s = /* @__PURE__ */
|
|
64
|
+
const s = /* @__PURE__ */ $n(() => a && "MutationObserver" in a), d = () => {
|
|
65
65
|
o && (o.disconnect(), o = void 0);
|
|
66
66
|
}, r = te(S(() => {
|
|
67
67
|
const f = Qe(H(e)).map(We).filter(bn);
|
|
@@ -74,7 +74,7 @@ function $n(e, t, l = {}) {
|
|
|
74
74
|
}), i = () => o?.takeRecords(), h = () => {
|
|
75
75
|
r(), d();
|
|
76
76
|
};
|
|
77
|
-
return
|
|
77
|
+
return Xt(h), {
|
|
78
78
|
isSupported: s,
|
|
79
79
|
stop: h,
|
|
80
80
|
takeRecords: i
|
|
@@ -86,10 +86,10 @@ function Sn(e, t, l = {}) {
|
|
|
86
86
|
let s;
|
|
87
87
|
const d = (h) => {
|
|
88
88
|
s?.(), s = h;
|
|
89
|
-
}, r =
|
|
89
|
+
}, r = $t(() => {
|
|
90
90
|
const h = We(e);
|
|
91
91
|
if (h) {
|
|
92
|
-
const { stop: f } =
|
|
92
|
+
const { stop: f } = Cn(n, (x) => {
|
|
93
93
|
x.map((b) => [...b.removedNodes]).flat().some((b) => b === h || b.contains(h)) && t(x);
|
|
94
94
|
}, {
|
|
95
95
|
window: a,
|
|
@@ -101,7 +101,7 @@ function Sn(e, t, l = {}) {
|
|
|
101
101
|
}, { flush: o }), i = () => {
|
|
102
102
|
r(), d();
|
|
103
103
|
};
|
|
104
|
-
return
|
|
104
|
+
return Xt(i), i;
|
|
105
105
|
}
|
|
106
106
|
// @__NO_SIDE_EFFECTS__
|
|
107
107
|
function An(e = {}) {
|
|
@@ -119,9 +119,9 @@ function An(e = {}) {
|
|
|
119
119
|
capture: !0,
|
|
120
120
|
passive: !0
|
|
121
121
|
};
|
|
122
|
-
|
|
122
|
+
_e(l, "blur", (h) => {
|
|
123
123
|
h.relatedTarget === null && r();
|
|
124
|
-
}, i),
|
|
124
|
+
}, i), _e(l, "focus", r, i);
|
|
125
125
|
}
|
|
126
126
|
return n && Sn(d, r, { document: o }), r(), d;
|
|
127
127
|
}
|
|
@@ -130,7 +130,7 @@ function Hn(e, t = {}) {
|
|
|
130
130
|
const { window: l = qe } = t, a = S(() => We(e)), n = he(!1), o = S(() => n.value);
|
|
131
131
|
if (!l || !(/* @__PURE__ */ An(t)).value) return { focused: o };
|
|
132
132
|
const s = { passive: !0 };
|
|
133
|
-
return
|
|
133
|
+
return _e(a, Ln, () => n.value = !0, s), _e(a, Rn, () => {
|
|
134
134
|
var d, r, i;
|
|
135
135
|
return n.value = (d = (r = a.value) === null || r === void 0 || (i = r.matches) === null || i === void 0 ? void 0 : i.call(r, En)) !== null && d !== void 0 ? d : !1;
|
|
136
136
|
}, s), { focused: o };
|
|
@@ -150,7 +150,7 @@ function Vn(e, { window: t = qe, scrollTarget: l } = {}) {
|
|
|
150
150
|
() => We(e),
|
|
151
151
|
() => n(),
|
|
152
152
|
{ immediate: !0, flush: "post" }
|
|
153
|
-
), t &&
|
|
153
|
+
), t && _e(l || t, "scroll", n, {
|
|
154
154
|
capture: !1,
|
|
155
155
|
passive: !0
|
|
156
156
|
}), a;
|
|
@@ -260,7 +260,7 @@ const Re = (e) => {
|
|
|
260
260
|
if (!(e.target instanceof HTMLElement)) return;
|
|
261
261
|
const t = e.target.parentElement?.lastElementChild, l = t instanceof HTMLElement ? t : null;
|
|
262
262
|
return l && (!Ee(l) || !Re(l)) ? Rt(l) : l;
|
|
263
|
-
},
|
|
263
|
+
}, Ye = ["alt", "control", "shift", "meta"], Pn = {
|
|
264
264
|
ArrowUp: "up",
|
|
265
265
|
ArrowDown: "down",
|
|
266
266
|
ArrowLeft: "left",
|
|
@@ -333,7 +333,7 @@ function it(e) {
|
|
|
333
333
|
let t = null;
|
|
334
334
|
return e.parent && (typeof e.parent == "string" ? t = document.querySelector(e.parent) : e.parent instanceof HTMLElement ? t = e.parent : t = e.parent.value), t;
|
|
335
335
|
}
|
|
336
|
-
function
|
|
336
|
+
function Yt(e) {
|
|
337
337
|
const t = (o) => {
|
|
338
338
|
const s = it(o);
|
|
339
339
|
let d = [];
|
|
@@ -357,18 +357,18 @@ function Kt(e) {
|
|
|
357
357
|
return o.selectors ? d = t(o) : s && (d = Array.from(s.children).filter((r) => r instanceof HTMLElement).filter((r) => Ee(r) && Re(r))), d;
|
|
358
358
|
}, a = (o) => (s) => {
|
|
359
359
|
const d = Pn[s.key] || s.key.toLowerCase();
|
|
360
|
-
if (
|
|
360
|
+
if (Ye.includes(d)) return;
|
|
361
361
|
const r = o.handlers || nt;
|
|
362
362
|
for (const i of Object.keys(r)) {
|
|
363
363
|
const [h, ...f] = i.split(".");
|
|
364
364
|
if (h === "keydown" && f.includes(d)) {
|
|
365
|
-
const x = r[i], b = f.filter((p) =>
|
|
365
|
+
const x = r[i], b = f.filter((p) => Ye.includes(p)), m = Ye.some((p) => {
|
|
366
366
|
const u = p.charAt(0).toUpperCase() + p.slice(1);
|
|
367
367
|
return s.getModifierState(u);
|
|
368
368
|
});
|
|
369
369
|
if (b.length > 0) {
|
|
370
370
|
if (m) {
|
|
371
|
-
for (const p of
|
|
371
|
+
for (const p of Ye)
|
|
372
372
|
if (f.includes(p)) {
|
|
373
373
|
const u = p.charAt(0).toUpperCase() + p.slice(1);
|
|
374
374
|
s.getModifierState(u) && x(s);
|
|
@@ -397,14 +397,14 @@ function Kt(e) {
|
|
|
397
397
|
function Ht(e, t) {
|
|
398
398
|
return Mt() ? (It(e, t), !0) : !1;
|
|
399
399
|
}
|
|
400
|
-
const
|
|
400
|
+
const Kt = typeof window < "u" && typeof document < "u";
|
|
401
401
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
402
402
|
const Nn = (e) => e != null, On = Object.prototype.toString, Zn = (e) => On.call(e) === "[object Object]", Oe = () => {
|
|
403
403
|
};
|
|
404
404
|
function Un(...e) {
|
|
405
|
-
if (e.length !== 1) return
|
|
405
|
+
if (e.length !== 1) return _t(...e);
|
|
406
406
|
const t = e[0];
|
|
407
|
-
return typeof t == "function" ? St(
|
|
407
|
+
return typeof t == "function" ? St(Ct(() => ({
|
|
408
408
|
get: t,
|
|
409
409
|
set: Oe
|
|
410
410
|
}))) : A(t);
|
|
@@ -451,7 +451,7 @@ function jn(e, t = 200, l = {}) {
|
|
|
451
451
|
function zn(e, t = {}) {
|
|
452
452
|
if (!pn(e)) return gn(e);
|
|
453
453
|
const l = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
|
|
454
|
-
for (const a in e.value) l[a] =
|
|
454
|
+
for (const a in e.value) l[a] = Ct(() => ({
|
|
455
455
|
get() {
|
|
456
456
|
return e.value[a];
|
|
457
457
|
},
|
|
@@ -472,17 +472,17 @@ function zn(e, t = {}) {
|
|
|
472
472
|
}));
|
|
473
473
|
return l;
|
|
474
474
|
}
|
|
475
|
-
function
|
|
475
|
+
function _n(e, t = !0, l) {
|
|
476
476
|
qn() ? Le(e, l) : t ? e() : st(e);
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function Xn(e, t, l) {
|
|
479
479
|
return te(e, t, {
|
|
480
480
|
...l,
|
|
481
481
|
immediate: !0
|
|
482
482
|
});
|
|
483
483
|
}
|
|
484
|
-
const
|
|
485
|
-
function
|
|
484
|
+
const Xe = Kt ? window : void 0;
|
|
485
|
+
function $e(e) {
|
|
486
486
|
var t;
|
|
487
487
|
const l = H(e);
|
|
488
488
|
return (t = l?.$el) !== null && t !== void 0 ? t : l;
|
|
@@ -492,10 +492,10 @@ function Fe(...e) {
|
|
|
492
492
|
const a = et(H(e[0])).filter((n) => n != null);
|
|
493
493
|
return a.every((n) => typeof n != "string") ? a : void 0;
|
|
494
494
|
});
|
|
495
|
-
return
|
|
495
|
+
return Xn(() => {
|
|
496
496
|
var a, n;
|
|
497
497
|
return [
|
|
498
|
-
(a = (n = l.value) === null || n === void 0 ? void 0 : n.map((o) =>
|
|
498
|
+
(a = (n = l.value) === null || n === void 0 ? void 0 : n.map((o) => $e(o))) !== null && a !== void 0 ? a : [Xe].filter((o) => o != null),
|
|
499
499
|
et(H(l.value ? e[1] : e[0])),
|
|
500
500
|
et(P(l.value ? e[2] : e[1])),
|
|
501
501
|
H(l.value ? e[3] : e[2])
|
|
@@ -509,7 +509,7 @@ function Fe(...e) {
|
|
|
509
509
|
}, { flush: "post" });
|
|
510
510
|
}
|
|
511
511
|
function xt(e, t, l = {}) {
|
|
512
|
-
const { window: a =
|
|
512
|
+
const { window: a = Xe, ignore: n = [], capture: o = !0, detectIframe: s = !1, controls: d = !1 } = l;
|
|
513
513
|
if (!a) return d ? {
|
|
514
514
|
stop: Oe,
|
|
515
515
|
cancel: Oe,
|
|
@@ -519,7 +519,7 @@ function xt(e, t, l = {}) {
|
|
|
519
519
|
const i = (u) => H(n).some((c) => {
|
|
520
520
|
if (typeof c == "string") return Array.from(a.document.querySelectorAll(c)).some((M) => M === u.target || u.composedPath().includes(M));
|
|
521
521
|
{
|
|
522
|
-
const M =
|
|
522
|
+
const M = $e(c);
|
|
523
523
|
return M && (u.target === M || u.composedPath().includes(M));
|
|
524
524
|
}
|
|
525
525
|
});
|
|
@@ -528,11 +528,11 @@ function xt(e, t, l = {}) {
|
|
|
528
528
|
return c && c.$.subTree.shapeFlag === 16;
|
|
529
529
|
}
|
|
530
530
|
function f(u, c) {
|
|
531
|
-
const M = H(u),
|
|
532
|
-
return
|
|
531
|
+
const M = H(u), $ = M.$.subTree && M.$.subTree.children;
|
|
532
|
+
return $ == null || !Array.isArray($) ? !1 : $.some((D) => D.el === c.target || c.composedPath().includes(D.el));
|
|
533
533
|
}
|
|
534
534
|
const x = (u) => {
|
|
535
|
-
const c =
|
|
535
|
+
const c = $e(e);
|
|
536
536
|
if (u.target != null && !(!(c instanceof Element) && h(e) && f(e, u)) && !(!c || c === u.target || u.composedPath().includes(c))) {
|
|
537
537
|
if ("detail" in u && u.detail === 0 && (r = !i(u)), !r) {
|
|
538
538
|
r = !0;
|
|
@@ -552,13 +552,13 @@ function xt(e, t, l = {}) {
|
|
|
552
552
|
capture: o
|
|
553
553
|
}),
|
|
554
554
|
Fe(a, "pointerdown", (u) => {
|
|
555
|
-
const c =
|
|
555
|
+
const c = $e(e);
|
|
556
556
|
r = !i(u) && !!(c && !u.composedPath().includes(c));
|
|
557
557
|
}, { passive: !0 }),
|
|
558
558
|
s && Fe(a, "blur", (u) => {
|
|
559
559
|
setTimeout(() => {
|
|
560
560
|
var c;
|
|
561
|
-
const M =
|
|
561
|
+
const M = $e(e);
|
|
562
562
|
((c = a.document.activeElement) === null || c === void 0 ? void 0 : c.tagName) === "IFRAME" && !M?.contains(a.document.activeElement) && t(u);
|
|
563
563
|
}, 0);
|
|
564
564
|
}, { passive: !0 })
|
|
@@ -574,7 +574,7 @@ function xt(e, t, l = {}) {
|
|
|
574
574
|
} : p;
|
|
575
575
|
}
|
|
576
576
|
// @__NO_SIDE_EFFECTS__
|
|
577
|
-
function
|
|
577
|
+
function Yn() {
|
|
578
578
|
const e = he(!1), t = Dt();
|
|
579
579
|
return t && Le(() => {
|
|
580
580
|
e.value = !0;
|
|
@@ -582,16 +582,16 @@ function Kn() {
|
|
|
582
582
|
}
|
|
583
583
|
// @__NO_SIDE_EFFECTS__
|
|
584
584
|
function Jt(e) {
|
|
585
|
-
const t = /* @__PURE__ */
|
|
585
|
+
const t = /* @__PURE__ */ Yn();
|
|
586
586
|
return S(() => (t.value, !!e()));
|
|
587
587
|
}
|
|
588
588
|
function Qt(e, t, l = {}) {
|
|
589
|
-
const { window: a =
|
|
589
|
+
const { window: a = Xe, ...n } = l;
|
|
590
590
|
let o;
|
|
591
591
|
const s = /* @__PURE__ */ Jt(() => a && "MutationObserver" in a), d = () => {
|
|
592
592
|
o && (o.disconnect(), o = void 0);
|
|
593
593
|
}, r = te(S(() => {
|
|
594
|
-
const f = et(H(e)).map(
|
|
594
|
+
const f = et(H(e)).map($e).filter(Nn);
|
|
595
595
|
return new Set(f);
|
|
596
596
|
}), (f) => {
|
|
597
597
|
d(), s.value && f.size && (o = new MutationObserver(t), f.forEach((x) => o.observe(x, n)));
|
|
@@ -607,36 +607,36 @@ function Qt(e, t, l = {}) {
|
|
|
607
607
|
takeRecords: i
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
|
-
const
|
|
610
|
+
const Ke = {
|
|
611
611
|
speed: 2,
|
|
612
612
|
margin: 30,
|
|
613
613
|
direction: "both"
|
|
614
614
|
};
|
|
615
|
-
function
|
|
615
|
+
function Kn(e) {
|
|
616
616
|
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));
|
|
617
617
|
}
|
|
618
618
|
function ut(e, t = {}) {
|
|
619
619
|
var l, a, n, o;
|
|
620
|
-
const { pointerTypes: s, preventDefault: d, stopPropagation: r, exact: i, onMove: h, onEnd: f, onStart: x, initialValue: b, axis: m = "both", draggingElement: p =
|
|
620
|
+
const { pointerTypes: s, preventDefault: d, stopPropagation: r, exact: i, onMove: h, onEnd: f, onStart: x, initialValue: b, axis: m = "both", draggingElement: p = Xe, containerElement: u, handle: c = e, buttons: M = [0], restrictInView: $, autoScroll: D = !1 } = t, I = A((l = H(b)) !== null && l !== void 0 ? l : {
|
|
621
621
|
x: 0,
|
|
622
622
|
y: 0
|
|
623
623
|
}), V = A(), O = (E) => s ? s.includes(E.pointerType) : !0, R = (E) => {
|
|
624
624
|
H(d) && E.preventDefault(), H(r) && E.stopPropagation();
|
|
625
|
-
}, F = H(D),
|
|
626
|
-
speed: (a = H(F.speed)) !== null && a !== void 0 ? a :
|
|
627
|
-
margin: (n = H(F.margin)) !== null && n !== void 0 ? n :
|
|
628
|
-
direction: (o = F.direction) !== null && o !== void 0 ? o :
|
|
629
|
-
} :
|
|
630
|
-
const { clientWidth: G, clientHeight: N, scrollLeft: ae, scrollTop: Ae, scrollWidth: Be, scrollHeight: Z } = E, [q,
|
|
625
|
+
}, F = H(D), Y = typeof F == "object" ? {
|
|
626
|
+
speed: (a = H(F.speed)) !== null && a !== void 0 ? a : Ke.speed,
|
|
627
|
+
margin: (n = H(F.margin)) !== null && n !== void 0 ? n : Ke.margin,
|
|
628
|
+
direction: (o = F.direction) !== null && o !== void 0 ? o : Ke.direction
|
|
629
|
+
} : Ke, J = (E) => typeof E == "number" ? [E, E] : [E.x, E.y], le = (E, T, L) => {
|
|
630
|
+
const { clientWidth: G, clientHeight: N, scrollLeft: ae, scrollTop: Ae, scrollWidth: Be, scrollHeight: Z } = E, [q, K] = J(Y.margin), [oe, de] = J(Y.speed);
|
|
631
631
|
let ie = 0, ce = 0;
|
|
632
|
-
(
|
|
632
|
+
(Y.direction === "x" || Y.direction === "both") && (L.x < q && ae > 0 ? ie = -oe : L.x + T.width > G - q && ae < Be - G && (ie = oe)), (Y.direction === "y" || Y.direction === "both") && (L.y < K && Ae > 0 ? ce = -de : L.y + T.height > N - K && Ae < Z - N && (ce = de)), (ie || ce) && E.scrollBy({
|
|
633
633
|
left: ie,
|
|
634
634
|
top: ce,
|
|
635
635
|
behavior: "auto"
|
|
636
636
|
});
|
|
637
637
|
};
|
|
638
638
|
let re = null;
|
|
639
|
-
const
|
|
639
|
+
const De = () => {
|
|
640
640
|
const E = H(u);
|
|
641
641
|
E && !re && (re = setInterval(() => {
|
|
642
642
|
const T = H(e).getBoundingClientRect(), { x: L, y: G } = I.value, N = {
|
|
@@ -658,7 +658,7 @@ function ut(e, t = {}) {
|
|
|
658
658
|
He({
|
|
659
659
|
x: L - E.scrollLeft,
|
|
660
660
|
y: G - E.scrollTop
|
|
661
|
-
}, E,
|
|
661
|
+
}, E, Y.margin, T) ? De() : Me();
|
|
662
662
|
};
|
|
663
663
|
H(D) && te(I, Ve);
|
|
664
664
|
const Pe = (E) => {
|
|
@@ -672,13 +672,13 @@ function ut(e, t = {}) {
|
|
|
672
672
|
}, fe = (E) => {
|
|
673
673
|
if (H(t.disabled) || !O(E) || !V.value) return;
|
|
674
674
|
const T = H(u);
|
|
675
|
-
T instanceof HTMLElement &&
|
|
675
|
+
T instanceof HTMLElement && Kn(T);
|
|
676
676
|
const L = H(e).getBoundingClientRect();
|
|
677
677
|
let { x: G, y: N } = I.value;
|
|
678
678
|
if ((m === "x" || m === "both") && (G = E.clientX - V.value.x, T && (G = Math.min(Math.max(0, G), T.scrollWidth - L.width))), (m === "y" || m === "both") && (N = E.clientY - V.value.y, T && (N = Math.min(Math.max(0, N), T.scrollHeight - L.height))), H(D) && T && (re === null && le(T, L, {
|
|
679
679
|
x: G,
|
|
680
680
|
y: N
|
|
681
|
-
}), G += T.scrollLeft, N += T.scrollTop), T && (
|
|
681
|
+
}), G += T.scrollLeft, N += T.scrollTop), T && ($ || D)) {
|
|
682
682
|
if (m !== "y") {
|
|
683
683
|
const ae = G - T.scrollLeft;
|
|
684
684
|
ae < 0 ? G = T.scrollLeft : ae > T.clientWidth - L.width && (G = T.clientWidth - L.width + T.scrollLeft);
|
|
@@ -695,7 +695,7 @@ function ut(e, t = {}) {
|
|
|
695
695
|
}, Se = (E) => {
|
|
696
696
|
H(t.disabled) || !O(E) || V.value && (V.value = void 0, D && Me(), f?.(I.value, E), R(E));
|
|
697
697
|
};
|
|
698
|
-
if (
|
|
698
|
+
if (Kt) {
|
|
699
699
|
const E = () => {
|
|
700
700
|
var T;
|
|
701
701
|
return {
|
|
@@ -717,13 +717,13 @@ function ut(e, t = {}) {
|
|
|
717
717
|
};
|
|
718
718
|
}
|
|
719
719
|
function lt(e, t, l = {}) {
|
|
720
|
-
const { window: a =
|
|
720
|
+
const { window: a = Xe, ...n } = l;
|
|
721
721
|
let o;
|
|
722
722
|
const s = /* @__PURE__ */ Jt(() => a && "ResizeObserver" in a), d = () => {
|
|
723
723
|
o && (o.disconnect(), o = void 0);
|
|
724
724
|
}, r = te(S(() => {
|
|
725
725
|
const h = H(e);
|
|
726
|
-
return Array.isArray(h) ? h.map((f) =>
|
|
726
|
+
return Array.isArray(h) ? h.map((f) => $e(f)) : [$e(h)];
|
|
727
727
|
}), (h) => {
|
|
728
728
|
if (d(), s.value && a) {
|
|
729
729
|
o = new ResizeObserver(t);
|
|
@@ -743,7 +743,7 @@ function lt(e, t, l = {}) {
|
|
|
743
743
|
function Ne(e, t = {}) {
|
|
744
744
|
const { reset: l = !0, windowResize: a = !0, windowScroll: n = !0, immediate: o = !0, updateTiming: s = "sync" } = t, d = he(0), r = he(0), i = he(0), h = he(0), f = he(0), x = he(0), b = he(0), m = he(0);
|
|
745
745
|
function p() {
|
|
746
|
-
const c =
|
|
746
|
+
const c = $e(e);
|
|
747
747
|
if (!c) {
|
|
748
748
|
l && (d.value = 0, r.value = 0, i.value = 0, h.value = 0, f.value = 0, x.value = 0, b.value = 0, m.value = 0);
|
|
749
749
|
return;
|
|
@@ -754,10 +754,10 @@ function Ne(e, t = {}) {
|
|
|
754
754
|
function u() {
|
|
755
755
|
s === "sync" ? p() : s === "next-frame" && requestAnimationFrame(() => p());
|
|
756
756
|
}
|
|
757
|
-
return lt(e, u), te(() =>
|
|
757
|
+
return lt(e, u), te(() => $e(e), (c) => !c && u()), Qt(e, u, { attributeFilter: ["style", "class"] }), n && Fe("scroll", u, {
|
|
758
758
|
capture: !0,
|
|
759
759
|
passive: !0
|
|
760
|
-
}), a && Fe("resize", u, { passive: !0 }),
|
|
760
|
+
}), a && Fe("resize", u, { passive: !0 }), _n(() => {
|
|
761
761
|
o && u();
|
|
762
762
|
}), {
|
|
763
763
|
height: d,
|
|
@@ -891,9 +891,9 @@ const ol = (e) => {
|
|
|
891
891
|
const U = o.value[j];
|
|
892
892
|
U.parent !== null && U.parent !== void 0 && w.add(U.parent);
|
|
893
893
|
}
|
|
894
|
-
const
|
|
894
|
+
const C = (j) => o.value[j]?.gantt !== void 0, z = (j) => {
|
|
895
895
|
for (let U = 0; U < o.value.length; U++)
|
|
896
|
-
if (o.value[U].parent === j && (
|
|
896
|
+
if (o.value[U].parent === j && (C(U) || z(U)))
|
|
897
897
|
return !0;
|
|
898
898
|
return !1;
|
|
899
899
|
}, Q = (j) => {
|
|
@@ -929,9 +929,9 @@ const ol = (e) => {
|
|
|
929
929
|
return v;
|
|
930
930
|
}, n = A(e.columns), o = A(e.rows), s = A(e.config || {}), d = A({}), r = A({}), i = S(() => {
|
|
931
931
|
const v = {};
|
|
932
|
-
for (const [w,
|
|
932
|
+
for (const [w, C] of n.value.entries())
|
|
933
933
|
for (const [z, Q] of o.value.entries())
|
|
934
|
-
v[`${w}:${z}`] = Q[
|
|
934
|
+
v[`${w}:${z}`] = Q[C.name];
|
|
935
935
|
return v;
|
|
936
936
|
}), h = S({
|
|
937
937
|
get: () => {
|
|
@@ -949,120 +949,120 @@ const ol = (e) => {
|
|
|
949
949
|
}), f = A(e.modal || { visible: !1 }), x = A({}), b = A([]), m = A([]), p = A([]), u = A({
|
|
950
950
|
column: null,
|
|
951
951
|
direction: null
|
|
952
|
-
}), c = A({}), M = S(() => n.value.some((v) => v.pinned)),
|
|
952
|
+
}), c = A({}), M = S(() => n.value.some((v) => v.pinned)), $ = S(() => s.value.view === "gantt" || s.value.view === "tree-gantt"), D = S(() => s.value.view === "tree" || s.value.view === "tree-gantt"), I = S(() => {
|
|
953
953
|
const v = s.value;
|
|
954
954
|
return v.view === "gantt" || v.view === "tree-gantt" ? v.dependencyGraph !== !1 : !0;
|
|
955
955
|
}), V = S(() => `${Math.ceil(o.value.length / 100 + 1)}ch`), O = S(
|
|
956
956
|
() => s.value.view ? ["list", "tree", "tree-gantt", "list-expansion"].includes(s.value.view) : !1
|
|
957
957
|
), R = S(() => {
|
|
958
|
-
let v = o.value.map((w,
|
|
958
|
+
let v = o.value.map((w, C) => ({
|
|
959
959
|
...w,
|
|
960
|
-
originalIndex:
|
|
960
|
+
originalIndex: C
|
|
961
961
|
}));
|
|
962
|
-
if (Object.entries(c.value).forEach(([w,
|
|
962
|
+
if (Object.entries(c.value).forEach(([w, C]) => {
|
|
963
963
|
const z = parseInt(w), Q = n.value[z];
|
|
964
|
-
!Q || !(
|
|
964
|
+
!Q || !(C.value || C.startValue || C.endValue || Q.filterType === "checkbox" && C.value !== void 0) || (v = v.filter((j) => {
|
|
965
965
|
const U = j[Q.name];
|
|
966
|
-
return nl(U,
|
|
966
|
+
return nl(U, C, Q);
|
|
967
967
|
}));
|
|
968
968
|
}), u.value.column !== null && u.value.direction) {
|
|
969
|
-
const w = n.value[u.value.column],
|
|
969
|
+
const w = n.value[u.value.column], C = u.value.direction;
|
|
970
970
|
v.sort((z, Q) => {
|
|
971
971
|
let j = z[w.name], U = Q[w.name];
|
|
972
972
|
j == null && (j = ""), U == null && (U = "");
|
|
973
973
|
const ee = Number(j), ye = Number(U);
|
|
974
974
|
if (!isNaN(ee) && !isNaN(ye) && j !== "" && U !== "")
|
|
975
|
-
return
|
|
975
|
+
return C === "asc" ? ee - ye : ye - ee;
|
|
976
976
|
{
|
|
977
977
|
const Vt = String(j).toLowerCase(), Bt = String(U).toLowerCase();
|
|
978
|
-
return
|
|
978
|
+
return C === "asc" ? Vt.localeCompare(Bt) : Bt.localeCompare(Vt);
|
|
979
979
|
}
|
|
980
980
|
});
|
|
981
981
|
}
|
|
982
982
|
return v;
|
|
983
|
-
}), F = (v, w) => i.value[`${v}:${w}`],
|
|
983
|
+
}), F = (v, w) => i.value[`${v}:${w}`], Y = (v, w, C) => {
|
|
984
984
|
const z = `${v}:${w}`, Q = n.value[v];
|
|
985
|
-
i.value[z] !==
|
|
985
|
+
i.value[z] !== C && (d.value[w] = !0), i.value[z] = C, o.value[w] = {
|
|
986
986
|
...o.value[w],
|
|
987
|
-
[Q.name]:
|
|
987
|
+
[Q.name]: C
|
|
988
988
|
};
|
|
989
989
|
}, J = (v) => {
|
|
990
990
|
o.value = v;
|
|
991
|
-
}, le = (v, w,
|
|
991
|
+
}, le = (v, w, C) => {
|
|
992
992
|
const z = `${v}:${w}`;
|
|
993
|
-
i.value[z] !==
|
|
993
|
+
i.value[z] !== C && (d.value[w] = !0, x.value[z] = C);
|
|
994
994
|
}, re = (v) => {
|
|
995
|
-
const w = n.value.indexOf(v) === n.value.length - 1,
|
|
995
|
+
const w = n.value.indexOf(v) === n.value.length - 1, C = s.value.fullWidth ? v.resizable && !w : v.resizable;
|
|
996
996
|
return {
|
|
997
997
|
width: v.width || "40ch",
|
|
998
998
|
textAlign: v.align || "center",
|
|
999
|
-
|
|
999
|
+
...C && {
|
|
1000
1000
|
resize: "horizontal",
|
|
1001
1001
|
overflow: "hidden",
|
|
1002
1002
|
whiteSpace: "nowrap"
|
|
1003
1003
|
}
|
|
1004
1004
|
};
|
|
1005
|
-
},
|
|
1005
|
+
}, De = (v, w) => {
|
|
1006
1006
|
if (v < 0 || v >= n.value.length) return;
|
|
1007
|
-
const
|
|
1007
|
+
const C = Math.max(w, 40);
|
|
1008
1008
|
n.value[v] = {
|
|
1009
1009
|
...n.value[v],
|
|
1010
|
-
width: `${
|
|
1010
|
+
width: `${C}px`
|
|
1011
1011
|
};
|
|
1012
1012
|
}, Me = (v) => {
|
|
1013
1013
|
const w = o.value[v];
|
|
1014
|
-
return
|
|
1014
|
+
return $.value && w.gantt !== void 0;
|
|
1015
1015
|
}, He = (v) => !D.value || h.value[v].isRoot || h.value[v].open, Ve = (v) => !D.value && s.value.view !== "list-expansion" ? "" : D.value && (h.value[v].isRoot || h.value[v].isParent) ? h.value[v].childrenOpen ? "▼" : "►" : s.value.view === "list-expansion" ? h.value[v].expanded ? "▼" : "►" : "", Pe = (v) => {
|
|
1016
1016
|
if (D.value) {
|
|
1017
|
-
const w = r.value[v] || {},
|
|
1017
|
+
const w = r.value[v] || {}, C = !(w.childrenOpen ?? h.value[v].childrenOpen);
|
|
1018
1018
|
r.value[v] = {
|
|
1019
1019
|
...w,
|
|
1020
|
-
childrenOpen:
|
|
1021
|
-
},
|
|
1020
|
+
childrenOpen: C
|
|
1021
|
+
}, C || fe(v);
|
|
1022
1022
|
} else if (s.value.view === "list-expansion") {
|
|
1023
|
-
const w = r.value[v] || {},
|
|
1023
|
+
const w = r.value[v] || {}, C = w.expanded ?? h.value[v].expanded;
|
|
1024
1024
|
r.value[v] = {
|
|
1025
1025
|
...w,
|
|
1026
|
-
expanded:
|
|
1026
|
+
expanded: !C
|
|
1027
1027
|
};
|
|
1028
1028
|
}
|
|
1029
1029
|
}, fe = (v) => {
|
|
1030
1030
|
for (let w = 0; w < o.value.length; w++)
|
|
1031
1031
|
if (h.value[w].parent === v) {
|
|
1032
|
-
const
|
|
1032
|
+
const C = r.value[w] || {};
|
|
1033
1033
|
r.value[w] = {
|
|
1034
|
-
|
|
1034
|
+
...C,
|
|
1035
1035
|
childrenOpen: !1
|
|
1036
1036
|
}, fe(w);
|
|
1037
1037
|
}
|
|
1038
1038
|
}, Se = (v, w) => {
|
|
1039
|
-
const
|
|
1040
|
-
return E(v, w,
|
|
1041
|
-
}, E = (v, w,
|
|
1039
|
+
const C = F(v, w);
|
|
1040
|
+
return E(v, w, C);
|
|
1041
|
+
}, E = (v, w, C) => {
|
|
1042
1042
|
const z = n.value[v], Q = o.value[w], j = z.format;
|
|
1043
1043
|
if (!j) {
|
|
1044
1044
|
const U = tn(z.component);
|
|
1045
|
-
return U === "boolean" ?
|
|
1045
|
+
return U === "boolean" ? C ? "✓" : "✗" : U === "date" ? C != null ? new Date(String(C)).toLocaleDateString() : C : U === "datetime" && C != null ? new Date(String(C)).toLocaleString() : C;
|
|
1046
1046
|
}
|
|
1047
|
-
return typeof j == "function" ? j(
|
|
1047
|
+
return typeof j == "function" ? j(C, { table: i.value, row: Q, column: z }) : typeof j == "string" ? Function(`"use strict";return (${j})`)()(C, { table: i.value, row: Q, column: z }) : C;
|
|
1048
1048
|
}, T = (v) => {
|
|
1049
1049
|
v.target instanceof Node && f.value.parent?.contains(v.target) || f.value.visible && (f.value.visible = !1);
|
|
1050
1050
|
}, L = (v) => {
|
|
1051
1051
|
const w = o.value[v.rowIndex]?.gantt;
|
|
1052
1052
|
w && (v.type === "resize" ? v.edge === "start" ? (w.startIndex = v.newStart, w.endIndex = v.end, w.colspan = w.endIndex - w.startIndex) : v.edge === "end" && (w.startIndex = v.start, w.endIndex = v.newEnd, w.colspan = w.endIndex - w.startIndex) : v.type === "bar" && (w.startIndex = v.newStart, w.endIndex = v.newEnd, w.colspan = w.endIndex - w.startIndex));
|
|
1053
1053
|
}, G = (v) => {
|
|
1054
|
-
const w = b.value.findIndex((
|
|
1054
|
+
const w = b.value.findIndex((C) => C.id === v.id);
|
|
1055
1055
|
w >= 0 ? b.value[w] = v : b.value.push(v);
|
|
1056
1056
|
}, N = (v) => {
|
|
1057
|
-
const w = b.value.findIndex((
|
|
1057
|
+
const w = b.value.findIndex((C) => C.id === v);
|
|
1058
1058
|
w >= 0 && b.value.splice(w, 1);
|
|
1059
1059
|
}, ae = (v) => {
|
|
1060
|
-
const w = m.value.findIndex((
|
|
1060
|
+
const w = m.value.findIndex((C) => C.id === v.id);
|
|
1061
1061
|
w >= 0 ? m.value[w] = v : m.value.push(v);
|
|
1062
1062
|
}, Ae = (v) => {
|
|
1063
|
-
const w = m.value.findIndex((
|
|
1063
|
+
const w = m.value.findIndex((C) => C.id === v);
|
|
1064
1064
|
w >= 0 && m.value.splice(w, 1);
|
|
1065
|
-
}, Be = (v, w,
|
|
1065
|
+
}, Be = (v, w, C) => {
|
|
1066
1066
|
const z = m.value.find((U) => U.id === v), Q = m.value.find((U) => U.id === w);
|
|
1067
1067
|
if (!z || !Q)
|
|
1068
1068
|
return console.warn("Cannot create connection: handle not found"), null;
|
|
@@ -1076,14 +1076,14 @@ const ol = (e) => {
|
|
|
1076
1076
|
barId: Q.barId,
|
|
1077
1077
|
side: Q.side
|
|
1078
1078
|
},
|
|
1079
|
-
style:
|
|
1080
|
-
label:
|
|
1079
|
+
style: C?.style,
|
|
1080
|
+
label: C?.label
|
|
1081
1081
|
};
|
|
1082
1082
|
return p.value.push(j), j;
|
|
1083
1083
|
}, Z = (v) => {
|
|
1084
|
-
const w = p.value.findIndex((
|
|
1084
|
+
const w = p.value.findIndex((C) => C.id === v);
|
|
1085
1085
|
return w >= 0 ? (p.value.splice(w, 1), !0) : !1;
|
|
1086
|
-
}, q = (v) => p.value.filter((w) => w.from.barId === v || w.to.barId === v),
|
|
1086
|
+
}, q = (v) => p.value.filter((w) => w.from.barId === v || w.to.barId === v), K = (v) => m.value.filter((w) => w.barId === v), oe = (v) => {
|
|
1087
1087
|
if (n.value[v].sortable === !1) return;
|
|
1088
1088
|
let w;
|
|
1089
1089
|
u.value.column === v && u.value.direction === "asc" ? w = "desc" : w = "asc", u.value.column = v, u.value.direction = w;
|
|
@@ -1092,12 +1092,12 @@ const ol = (e) => {
|
|
|
1092
1092
|
}, ie = (v) => {
|
|
1093
1093
|
delete c.value[v];
|
|
1094
1094
|
}, ce = (v, w = "end") => {
|
|
1095
|
-
const
|
|
1095
|
+
const C = {};
|
|
1096
1096
|
for (const Q of n.value)
|
|
1097
|
-
|
|
1098
|
-
v && Object.assign(
|
|
1097
|
+
C[Q.name] = "";
|
|
1098
|
+
v && Object.assign(C, v);
|
|
1099
1099
|
let z;
|
|
1100
|
-
return w === "start" ? (z = 0, o.value.unshift(
|
|
1100
|
+
return w === "start" ? (z = 0, o.value.unshift(C)) : w === "end" ? (z = o.value.length, o.value.push(C)) : (z = Math.max(0, Math.min(w, o.value.length)), o.value.splice(z, 0, C)), z;
|
|
1101
1101
|
};
|
|
1102
1102
|
return {
|
|
1103
1103
|
// state
|
|
@@ -1116,7 +1116,7 @@ const ol = (e) => {
|
|
|
1116
1116
|
// getters
|
|
1117
1117
|
filteredRows: R,
|
|
1118
1118
|
hasPinnedColumns: M,
|
|
1119
|
-
isGanttView:
|
|
1119
|
+
isGanttView: $,
|
|
1120
1120
|
isTreeView: D,
|
|
1121
1121
|
isDependencyGraphEnabled: I,
|
|
1122
1122
|
numberedRowWidth: V,
|
|
@@ -1134,45 +1134,45 @@ const ol = (e) => {
|
|
|
1134
1134
|
return null;
|
|
1135
1135
|
const [w] = o.value.splice(v, 1);
|
|
1136
1136
|
delete d.value[v], delete r.value[v];
|
|
1137
|
-
const
|
|
1137
|
+
const C = {}, z = {};
|
|
1138
1138
|
for (const [Q, j] of Object.entries(d.value)) {
|
|
1139
1139
|
const U = parseInt(Q);
|
|
1140
|
-
U > v ?
|
|
1140
|
+
U > v ? C[U - 1] = j : C[U] = j;
|
|
1141
1141
|
}
|
|
1142
1142
|
for (const [Q, j] of Object.entries(r.value)) {
|
|
1143
1143
|
const U = parseInt(Q);
|
|
1144
1144
|
U > v ? z[U - 1] = j : z[U] = j;
|
|
1145
1145
|
}
|
|
1146
|
-
return d.value =
|
|
1146
|
+
return d.value = C, r.value = z, w;
|
|
1147
1147
|
},
|
|
1148
1148
|
duplicateRow: (v) => {
|
|
1149
1149
|
if (v < 0 || v >= o.value.length)
|
|
1150
1150
|
return -1;
|
|
1151
|
-
const w = o.value[v],
|
|
1152
|
-
return o.value.splice(z, 0,
|
|
1151
|
+
const w = o.value[v], C = JSON.parse(JSON.stringify(w)), z = v + 1;
|
|
1152
|
+
return o.value.splice(z, 0, C), z;
|
|
1153
1153
|
},
|
|
1154
1154
|
getCellData: F,
|
|
1155
1155
|
getCellDisplayValue: Se,
|
|
1156
1156
|
getConnectionsForBar: q,
|
|
1157
1157
|
getFormattedValue: E,
|
|
1158
|
-
getHandlesForBar:
|
|
1158
|
+
getHandlesForBar: K,
|
|
1159
1159
|
getHeaderCellStyle: re,
|
|
1160
1160
|
getRowExpandSymbol: Ve,
|
|
1161
1161
|
insertRowAbove: (v, w) => {
|
|
1162
|
-
const
|
|
1163
|
-
return ce(w,
|
|
1162
|
+
const C = Math.max(0, v);
|
|
1163
|
+
return ce(w, C);
|
|
1164
1164
|
},
|
|
1165
1165
|
insertRowBelow: (v, w) => {
|
|
1166
|
-
const
|
|
1167
|
-
return ce(w,
|
|
1166
|
+
const C = Math.min(v + 1, o.value.length);
|
|
1167
|
+
return ce(w, C);
|
|
1168
1168
|
},
|
|
1169
1169
|
isRowGantt: Me,
|
|
1170
1170
|
isRowVisible: He,
|
|
1171
1171
|
moveRow: (v, w) => {
|
|
1172
1172
|
if (v < 0 || v >= o.value.length || w < 0 || w >= o.value.length || v === w)
|
|
1173
1173
|
return !1;
|
|
1174
|
-
const [
|
|
1175
|
-
o.value.splice(w, 0,
|
|
1174
|
+
const [C] = o.value.splice(v, 1);
|
|
1175
|
+
o.value.splice(w, 0, C);
|
|
1176
1176
|
const z = {}, Q = {};
|
|
1177
1177
|
for (const [j, U] of Object.entries(d.value)) {
|
|
1178
1178
|
const ee = parseInt(j);
|
|
@@ -1188,8 +1188,8 @@ const ol = (e) => {
|
|
|
1188
1188
|
},
|
|
1189
1189
|
registerConnectionHandle: ae,
|
|
1190
1190
|
registerGanttBar: G,
|
|
1191
|
-
resizeColumn:
|
|
1192
|
-
setCellData:
|
|
1191
|
+
resizeColumn: De,
|
|
1192
|
+
setCellData: Y,
|
|
1193
1193
|
setCellText: le,
|
|
1194
1194
|
setFilter: de,
|
|
1195
1195
|
sortByColumn: oe,
|
|
@@ -1217,12 +1217,12 @@ const ol = (e) => {
|
|
|
1217
1217
|
if (!s.linkDoctype) return;
|
|
1218
1218
|
const R = e.store.getCellData(e.colIndex, e.rowIndex);
|
|
1219
1219
|
if (R != null && typeof R == "object") {
|
|
1220
|
-
const
|
|
1220
|
+
const Y = R, J = Y.displayText ?? Y.id;
|
|
1221
1221
|
(typeof J == "string" || typeof J == "number") && (f.value = String(J));
|
|
1222
1222
|
return;
|
|
1223
1223
|
}
|
|
1224
1224
|
const F = e.store.linkResolver;
|
|
1225
|
-
!F || typeof R != "string" || R === "" || F(s.linkDoctype, R).then((
|
|
1225
|
+
!F || typeof R != "string" || R === "" || F(s.linkDoctype, R).then((Y) => (Y != null && (f.value = Y), Y));
|
|
1226
1226
|
});
|
|
1227
1227
|
const x = S(() => f.value ?? h.value), b = S(() => typeof x.value == "string" ? el(x.value) : !1), m = S(() => ({
|
|
1228
1228
|
textAlign: r,
|
|
@@ -1235,9 +1235,9 @@ const ol = (e) => {
|
|
|
1235
1235
|
})), u = () => {
|
|
1236
1236
|
M(), c();
|
|
1237
1237
|
}, c = () => {
|
|
1238
|
-
const { left: R, bottom: F, width:
|
|
1238
|
+
const { left: R, bottom: F, width: Y, height: J } = Ne(l);
|
|
1239
1239
|
s.mask, s.modalComponent && e.store.$patch((le) => {
|
|
1240
|
-
le.modal.visible = !0, le.modal.colIndex = e.colIndex, le.modal.rowIndex = e.rowIndex, le.modal.left = R.value, le.modal.bottom = F.value, le.modal.width =
|
|
1240
|
+
le.modal.visible = !0, le.modal.colIndex = e.colIndex, le.modal.rowIndex = e.rowIndex, le.modal.left = R.value, le.modal.bottom = F.value, le.modal.width = Y.value, le.modal.height = J.value, le.modal.cell = l.value, typeof s.modalComponent == "function" ? le.modal.component = s.modalComponent({ table: e.store.table, row: d, column: s }) : le.modal.component = s.modalComponent, le.modal.componentProps = s.modalComponentExtraProps;
|
|
1241
1241
|
});
|
|
1242
1242
|
};
|
|
1243
1243
|
if (e.addNavigation) {
|
|
@@ -1252,7 +1252,7 @@ const ol = (e) => {
|
|
|
1252
1252
|
typeof e.addNavigation == "object" && (R = {
|
|
1253
1253
|
...R,
|
|
1254
1254
|
...e.addNavigation
|
|
1255
|
-
}),
|
|
1255
|
+
}), Yt([
|
|
1256
1256
|
{
|
|
1257
1257
|
selectors: l,
|
|
1258
1258
|
handlers: R
|
|
@@ -1269,15 +1269,15 @@ const ol = (e) => {
|
|
|
1269
1269
|
} catch {
|
|
1270
1270
|
}
|
|
1271
1271
|
}
|
|
1272
|
-
},
|
|
1272
|
+
}, $ = () => {
|
|
1273
1273
|
l.value && (n.value = l.value.textContent, M());
|
|
1274
1274
|
}, D = () => {
|
|
1275
1275
|
try {
|
|
1276
1276
|
const R = window.getSelection();
|
|
1277
1277
|
if (R && R.rangeCount > 0 && l.value) {
|
|
1278
|
-
const F = R.getRangeAt(0),
|
|
1279
|
-
if (
|
|
1280
|
-
return
|
|
1278
|
+
const F = R.getRangeAt(0), Y = F.cloneRange();
|
|
1279
|
+
if (Y.selectNodeContents && Y.setEnd)
|
|
1280
|
+
return Y.selectNodeContents(l.value), Y.setEnd(F.endContainer, F.endOffset), Y.toString().length;
|
|
1281
1281
|
}
|
|
1282
1282
|
} catch {
|
|
1283
1283
|
}
|
|
@@ -1287,17 +1287,17 @@ const ol = (e) => {
|
|
|
1287
1287
|
try {
|
|
1288
1288
|
const F = window.getSelection();
|
|
1289
1289
|
if (!F) return;
|
|
1290
|
-
let
|
|
1290
|
+
let Y = 0;
|
|
1291
1291
|
const J = document.createTreeWalker ? document.createTreeWalker(l.value, NodeFilter.SHOW_TEXT, null) : null;
|
|
1292
1292
|
if (!J) return;
|
|
1293
1293
|
let le, re = null;
|
|
1294
1294
|
for (; le = J.nextNode(); ) {
|
|
1295
|
-
const
|
|
1295
|
+
const De = le, Me = Y + De.textContent.length;
|
|
1296
1296
|
if (R <= Me && (re = document.createRange(), re.setStart && re.setEnd)) {
|
|
1297
|
-
re.setStart(
|
|
1297
|
+
re.setStart(De, R - Y), re.setEnd(De, R - Y);
|
|
1298
1298
|
break;
|
|
1299
1299
|
}
|
|
1300
|
-
|
|
1300
|
+
Y = Me;
|
|
1301
1301
|
}
|
|
1302
1302
|
re && F.removeAllRanges && F.addRange && (F.removeAllRanges(), F.addRange(re));
|
|
1303
1303
|
} catch {
|
|
@@ -1307,8 +1307,8 @@ const ol = (e) => {
|
|
|
1307
1307
|
const F = R.target;
|
|
1308
1308
|
if (F.textContent === n.value)
|
|
1309
1309
|
return;
|
|
1310
|
-
const
|
|
1311
|
-
n.value = F.textContent, s.format ? (o.value = F.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, a), e.store.setCellText(e.colIndex, e.rowIndex, F.textContent)) : (o.value = F.textContent !== a, e.store.setCellData(e.colIndex, e.rowIndex, F.textContent)), st().then(() => I(
|
|
1310
|
+
const Y = D();
|
|
1311
|
+
n.value = F.textContent, s.format ? (o.value = F.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, a), e.store.setCellText(e.colIndex, e.rowIndex, F.textContent)) : (o.value = F.textContent !== a, e.store.setCellData(e.colIndex, e.rowIndex, F.textContent)), st().then(() => I(Y));
|
|
1312
1312
|
}, O = /* @__PURE__ */ jn(V, e.debounce);
|
|
1313
1313
|
return t({
|
|
1314
1314
|
currentData: n
|
|
@@ -1320,12 +1320,12 @@ const ol = (e) => {
|
|
|
1320
1320
|
contenteditable: P(s).edit,
|
|
1321
1321
|
tabindex: e.tabIndex,
|
|
1322
1322
|
spellcheck: !1,
|
|
1323
|
-
style:
|
|
1323
|
+
style: Ce(m.value),
|
|
1324
1324
|
class: ue(["atable-cell", p.value]),
|
|
1325
|
-
onFocus:
|
|
1325
|
+
onFocus: $,
|
|
1326
1326
|
onPaste: V,
|
|
1327
1327
|
onInput: F[0] || (F[0] = //@ts-ignore
|
|
1328
|
-
(...
|
|
1328
|
+
(...Y) => P(O) && P(O)(...Y)),
|
|
1329
1329
|
onClick: u
|
|
1330
1330
|
}, [
|
|
1331
1331
|
P(s).cellComponent ? (g(), me(Ze(P(s).cellComponent), at({
|
|
@@ -1362,14 +1362,14 @@ const ol = (e) => {
|
|
|
1362
1362
|
v564d6da1: n.value,
|
|
1363
1363
|
v4f540c19: Z.colspan
|
|
1364
1364
|
}));
|
|
1365
|
-
const a = l, n = A(e.color.length >= 6 ? e.color : "#cccccc"), o = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s = pe("container"), d = pe("bar"), r = pe("leftResizeHandle"), i = pe("rightResizeHandle"), h = pe("leftConnectionHandle"), f = pe("rightConnectionHandle"), { width: x } = Ne(s), { left: b, right: m } = Ne(d), p = A(e.start), u = A(e.end || p.value + e.colspan), c = A(!1), M = A(!1),
|
|
1365
|
+
const a = l, n = A(e.color.length >= 6 ? e.color : "#cccccc"), o = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, s = pe("container"), d = pe("bar"), r = pe("leftResizeHandle"), i = pe("rightResizeHandle"), h = pe("leftConnectionHandle"), f = pe("rightConnectionHandle"), { width: x } = Ne(s), { left: b, right: m } = Ne(d), p = A(e.start), u = A(e.end || p.value + e.colspan), c = A(!1), M = A(!1), $ = A(!1), D = A(!1), I = A(!1), V = A({ startX: 0, startY: 0, endX: 0, endY: 0 }), O = S(() => De.value || le.value || re.value), R = S(() => e.colspan > 0 ? x.value / e.colspan : 0), F = S(() => {
|
|
1366
1366
|
const Z = p.value / e.colspan * 100, q = u.value / e.colspan * 100;
|
|
1367
1367
|
return {
|
|
1368
1368
|
left: `${Z}%`,
|
|
1369
1369
|
width: `${q - Z}%`,
|
|
1370
1370
|
backgroundColor: n.value
|
|
1371
1371
|
};
|
|
1372
|
-
}),
|
|
1372
|
+
}), Y = S(() => ({
|
|
1373
1373
|
position: "fixed",
|
|
1374
1374
|
top: 0,
|
|
1375
1375
|
left: 0,
|
|
@@ -1387,7 +1387,7 @@ const ol = (e) => {
|
|
|
1387
1387
|
onStart: () => Me(m.value, u.value),
|
|
1388
1388
|
onMove: ({ x: Z }) => Pe(Z),
|
|
1389
1389
|
onEnd: ({ x: Z }) => fe(Z)
|
|
1390
|
-
}), { isDragging:
|
|
1390
|
+
}), { isDragging: De } = ut(d, {
|
|
1391
1391
|
exact: !0,
|
|
1392
1392
|
axis: "x",
|
|
1393
1393
|
onStart: () => Me(b.value, p.value),
|
|
@@ -1404,12 +1404,12 @@ const ol = (e) => {
|
|
|
1404
1404
|
}
|
|
1405
1405
|
function He(Z) {
|
|
1406
1406
|
if (!le.value || !d.value) return;
|
|
1407
|
-
const q = (Z - J.value.startX) / R.value,
|
|
1408
|
-
d.value.style.left = `${
|
|
1407
|
+
const q = (Z - J.value.startX) / R.value, K = Math.max(0, Math.min(u.value - 1, J.value.startPos + q));
|
|
1408
|
+
d.value.style.left = `${K / e.colspan * 100}%`, d.value.style.width = `${(u.value - K) / e.colspan * 100}%`;
|
|
1409
1409
|
}
|
|
1410
1410
|
function Ve(Z) {
|
|
1411
1411
|
if (!d.value) return;
|
|
1412
|
-
const q = Z - J.value.startX,
|
|
1412
|
+
const q = Z - J.value.startX, K = Math.round(q / R.value), oe = p.value, de = Math.max(0, Math.min(u.value - 1, J.value.startPos + K));
|
|
1413
1413
|
p.value = de, e.store.updateGanttBar({
|
|
1414
1414
|
rowIndex: e.rowIndex,
|
|
1415
1415
|
colIndex: e.colIndex,
|
|
@@ -1418,19 +1418,19 @@ const ol = (e) => {
|
|
|
1418
1418
|
oldStart: oe,
|
|
1419
1419
|
newStart: de,
|
|
1420
1420
|
end: u.value,
|
|
1421
|
-
delta:
|
|
1421
|
+
delta: K,
|
|
1422
1422
|
oldColspan: u.value - oe,
|
|
1423
1423
|
newColspan: u.value - de
|
|
1424
1424
|
});
|
|
1425
1425
|
}
|
|
1426
1426
|
function Pe(Z) {
|
|
1427
1427
|
if (!re.value || !d.value) return;
|
|
1428
|
-
const q = (Z - J.value.startX) / R.value,
|
|
1429
|
-
d.value.style.width = `${(
|
|
1428
|
+
const q = (Z - J.value.startX) / R.value, K = Math.max(p.value + 1, Math.min(e.columnsCount, J.value.startPos + q));
|
|
1429
|
+
d.value.style.width = `${(K - p.value) / e.colspan * 100}%`;
|
|
1430
1430
|
}
|
|
1431
1431
|
function fe(Z) {
|
|
1432
1432
|
if (!d.value) return;
|
|
1433
|
-
const q = Z - J.value.startX,
|
|
1433
|
+
const q = Z - J.value.startX, K = Math.round(q / R.value), oe = u.value, de = Math.max(p.value + 1, Math.min(e.columnsCount, J.value.startPos + K));
|
|
1434
1434
|
u.value = de, e.store.updateGanttBar({
|
|
1435
1435
|
rowIndex: e.rowIndex,
|
|
1436
1436
|
colIndex: e.colIndex,
|
|
@@ -1439,20 +1439,20 @@ const ol = (e) => {
|
|
|
1439
1439
|
oldEnd: oe,
|
|
1440
1440
|
newEnd: de,
|
|
1441
1441
|
start: p.value,
|
|
1442
|
-
delta:
|
|
1442
|
+
delta: K,
|
|
1443
1443
|
oldColspan: oe - p.value,
|
|
1444
1444
|
newColspan: de - p.value
|
|
1445
1445
|
});
|
|
1446
1446
|
}
|
|
1447
1447
|
function Se(Z) {
|
|
1448
|
-
if (!
|
|
1449
|
-
const q = (Z - J.value.startX) / R.value,
|
|
1448
|
+
if (!De.value || !d.value) return;
|
|
1449
|
+
const q = (Z - J.value.startX) / R.value, K = u.value - p.value, oe = Math.max(0, Math.min(J.value.startPos + q, e.columnsCount - K));
|
|
1450
1450
|
d.value.style.left = `${oe / e.colspan * 100}%`;
|
|
1451
1451
|
}
|
|
1452
1452
|
function E(Z) {
|
|
1453
1453
|
if (!d.value) return;
|
|
1454
|
-
const q = Z - J.value.startX,
|
|
1455
|
-
let ce = J.value.startPos +
|
|
1454
|
+
const q = Z - J.value.startX, K = Math.round(q / R.value), oe = u.value - p.value, de = p.value, ie = u.value;
|
|
1455
|
+
let ce = J.value.startPos + K, v = ce + oe;
|
|
1456
1456
|
ce < 0 ? (ce = 0, v = oe) : v > e.columnsCount && (v = e.columnsCount, ce = v - oe), p.value = ce, u.value = v, e.store.updateGanttBar({
|
|
1457
1457
|
rowIndex: e.rowIndex,
|
|
1458
1458
|
colIndex: e.colIndex,
|
|
@@ -1461,12 +1461,12 @@ const ol = (e) => {
|
|
|
1461
1461
|
oldEnd: ie,
|
|
1462
1462
|
newStart: ce,
|
|
1463
1463
|
newEnd: v,
|
|
1464
|
-
delta:
|
|
1464
|
+
delta: K,
|
|
1465
1465
|
colspan: v - ce
|
|
1466
1466
|
});
|
|
1467
1467
|
}
|
|
1468
1468
|
function T() {
|
|
1469
|
-
const { x: Z, y: q } = Ne(d), { x:
|
|
1469
|
+
const { x: Z, y: q } = Ne(d), { x: K, y: oe } = Ne(h), { x: de, y: ie } = Ne(f);
|
|
1470
1470
|
e.store.registerGanttBar({
|
|
1471
1471
|
id: o,
|
|
1472
1472
|
rowIndex: e.rowIndex,
|
|
@@ -1481,7 +1481,7 @@ const ol = (e) => {
|
|
|
1481
1481
|
rowIndex: e.rowIndex,
|
|
1482
1482
|
colIndex: e.colIndex,
|
|
1483
1483
|
side: "left",
|
|
1484
|
-
position: { x:
|
|
1484
|
+
position: { x: K, y: oe },
|
|
1485
1485
|
visible: c,
|
|
1486
1486
|
barId: o
|
|
1487
1487
|
}), e.store.registerConnectionHandle({
|
|
@@ -1501,13 +1501,13 @@ const ol = (e) => {
|
|
|
1501
1501
|
e.store.isDependencyGraphEnabled && (c.value = !0, M.value = !0);
|
|
1502
1502
|
}
|
|
1503
1503
|
function N() {
|
|
1504
|
-
|
|
1504
|
+
!$.value && !D.value && (c.value = !1, M.value = !1);
|
|
1505
1505
|
}
|
|
1506
1506
|
function ae(Z, q) {
|
|
1507
|
-
q.preventDefault(), q.stopPropagation(), I.value = !0, Z === "left" ?
|
|
1508
|
-
const
|
|
1509
|
-
if (
|
|
1510
|
-
const ie =
|
|
1507
|
+
q.preventDefault(), q.stopPropagation(), I.value = !0, Z === "left" ? $.value = !0 : D.value = !0;
|
|
1508
|
+
const K = Z === "left" ? h.value : f.value;
|
|
1509
|
+
if (K) {
|
|
1510
|
+
const ie = K.getBoundingClientRect(), ce = ie.left + ie.width / 2, v = ie.top + ie.height / 2;
|
|
1511
1511
|
V.value = { startX: ce, startY: v, endX: ce, endY: v };
|
|
1512
1512
|
}
|
|
1513
1513
|
const oe = (ie) => {
|
|
@@ -1518,11 +1518,11 @@ const ol = (e) => {
|
|
|
1518
1518
|
document.addEventListener("mousemove", oe), document.addEventListener("mouseup", de);
|
|
1519
1519
|
}
|
|
1520
1520
|
function Ae(Z, q) {
|
|
1521
|
-
const
|
|
1522
|
-
if (
|
|
1523
|
-
const oe =
|
|
1521
|
+
const K = document.elementFromPoint(Z.clientX, Z.clientY)?.closest(".connection-handle");
|
|
1522
|
+
if (K && K !== (q === "left" ? h.value : f.value)) {
|
|
1523
|
+
const oe = K.closest(".gantt-bar");
|
|
1524
1524
|
if (oe) {
|
|
1525
|
-
const de = parseInt(oe.getAttribute("data-rowindex") || "0"), ie = parseInt(oe.getAttribute("data-colindex") || "0"), ce =
|
|
1525
|
+
const de = parseInt(oe.getAttribute("data-rowindex") || "0"), ie = parseInt(oe.getAttribute("data-colindex") || "0"), ce = K.classList.contains("left-connection-handle") ? "left" : "right", v = `gantt-bar-row-${de}-col-${ie}`, w = e.store.createConnection(
|
|
1526
1526
|
`${o}-connection-${q}`,
|
|
1527
1527
|
`${v}-connection-${ce}`
|
|
1528
1528
|
);
|
|
@@ -1531,14 +1531,14 @@ const ol = (e) => {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
1533
|
function Be(Z, q) {
|
|
1534
|
-
I.value = !1,
|
|
1534
|
+
I.value = !1, $.value = !1, D.value = !1, document.removeEventListener("mousemove", Z), document.removeEventListener("mouseup", q), d.value?.matches(":hover") || N();
|
|
1535
1535
|
}
|
|
1536
1536
|
return t({
|
|
1537
1537
|
barStyle: F,
|
|
1538
1538
|
cleanupConnectionDrag: Be,
|
|
1539
1539
|
currentEnd: u,
|
|
1540
1540
|
handleConnectionDrop: Ae,
|
|
1541
|
-
isLeftConnectionDragging:
|
|
1541
|
+
isLeftConnectionDragging: $,
|
|
1542
1542
|
isLeftConnectionVisible: c,
|
|
1543
1543
|
isRightConnectionDragging: D,
|
|
1544
1544
|
isRightConnectionVisible: M,
|
|
@@ -1553,15 +1553,15 @@ const ol = (e) => {
|
|
|
1553
1553
|
"data-rowindex": e.rowIndex,
|
|
1554
1554
|
"data-colindex": e.colIndex,
|
|
1555
1555
|
class: ue(["gantt-bar", { "is-dragging": O.value }]),
|
|
1556
|
-
style:
|
|
1556
|
+
style: Ce(F.value),
|
|
1557
1557
|
onMouseenter: G,
|
|
1558
1558
|
onMouseleave: N
|
|
1559
1559
|
}, [
|
|
1560
1560
|
e.store.isDependencyGraphEnabled ? (g(), k("div", {
|
|
1561
1561
|
key: 0,
|
|
1562
1562
|
ref: "leftConnectionHandle",
|
|
1563
|
-
class: ue(["connection-handle left-connection-handle", { visible: c.value, "is-dragging":
|
|
1564
|
-
onMousedown: q[0] || (q[0] = se((
|
|
1563
|
+
class: ue(["connection-handle left-connection-handle", { visible: c.value, "is-dragging": $.value }]),
|
|
1564
|
+
onMousedown: q[0] || (q[0] = se((K) => ae("left", K), ["stop"]))
|
|
1565
1565
|
}, [...q[2] || (q[2] = [
|
|
1566
1566
|
y("div", { class: "connection-dot" }, null, -1)
|
|
1567
1567
|
])], 34)) : W("", !0),
|
|
@@ -1569,7 +1569,7 @@ const ol = (e) => {
|
|
|
1569
1569
|
key: 1,
|
|
1570
1570
|
ref: "rightConnectionHandle",
|
|
1571
1571
|
class: ue(["connection-handle right-connection-handle", { visible: M.value, "is-dragging": D.value }]),
|
|
1572
|
-
onMousedown: q[1] || (q[1] = se((
|
|
1572
|
+
onMousedown: q[1] || (q[1] = se((K) => ae("right", K), ["stop"]))
|
|
1573
1573
|
}, [...q[3] || (q[3] = [
|
|
1574
1574
|
y("div", { class: "connection-dot" }, null, -1)
|
|
1575
1575
|
])], 34)) : W("", !0),
|
|
@@ -1592,7 +1592,7 @@ const ol = (e) => {
|
|
|
1592
1592
|
], 512),
|
|
1593
1593
|
e.store.isDependencyGraphEnabled && I.value ? (g(), k("svg", {
|
|
1594
1594
|
key: 0,
|
|
1595
|
-
style:
|
|
1595
|
+
style: Ce(Y.value)
|
|
1596
1596
|
}, [
|
|
1597
1597
|
y("line", {
|
|
1598
1598
|
x1: V.value.startX,
|
|
@@ -1673,7 +1673,7 @@ const ol = (e) => {
|
|
|
1673
1673
|
}, Dl = {
|
|
1674
1674
|
key: 0,
|
|
1675
1675
|
class: "row-actions-dropdown"
|
|
1676
|
-
},
|
|
1676
|
+
}, $l = ["aria-expanded"], Cl = ["disabled", "onClick"], Sl = ["innerHTML"], Al = { class: "action-label" }, Ll = {
|
|
1677
1677
|
key: 1,
|
|
1678
1678
|
class: "row-actions-icons"
|
|
1679
1679
|
}, Rl = ["title", "aria-label", "disabled", "onClick"], El = ["innerHTML"], tt = /* @__PURE__ */ ne({
|
|
@@ -1697,7 +1697,7 @@ const ol = (e) => {
|
|
|
1697
1697
|
moveDown: "Move Down",
|
|
1698
1698
|
open: "Open Record"
|
|
1699
1699
|
}, f = S(() => {
|
|
1700
|
-
const c = [], M = l.config.actions || {},
|
|
1700
|
+
const c = [], M = l.config.actions || {}, $ = [
|
|
1701
1701
|
"open",
|
|
1702
1702
|
"moveUp",
|
|
1703
1703
|
"moveDown",
|
|
@@ -1708,7 +1708,7 @@ const ol = (e) => {
|
|
|
1708
1708
|
"delete",
|
|
1709
1709
|
"move"
|
|
1710
1710
|
];
|
|
1711
|
-
for (const D of
|
|
1711
|
+
for (const D of $) {
|
|
1712
1712
|
const I = M[D];
|
|
1713
1713
|
if (I === !1 || I === void 0) continue;
|
|
1714
1714
|
let V = !0, O = h[D], R = Tl[D], F = !1;
|
|
@@ -1737,10 +1737,10 @@ const ol = (e) => {
|
|
|
1737
1737
|
d.value || p(), d.value = !d.value;
|
|
1738
1738
|
}, p = () => {
|
|
1739
1739
|
if (!o.value) return;
|
|
1740
|
-
const c = o.value.getBoundingClientRect(), M = window.innerHeight,
|
|
1740
|
+
const c = o.value.getBoundingClientRect(), M = window.innerHeight, $ = window.innerWidth, D = f.value.length * 40 + 16, I = 160, V = M - c.bottom, O = c.top;
|
|
1741
1741
|
r.value = V < D && O > D;
|
|
1742
1742
|
let R = c.left;
|
|
1743
|
-
R + I >
|
|
1743
|
+
R + I > $ && (R = Math.max(0, c.right - I)), i.value = {
|
|
1744
1744
|
top: r.value ? c.top : c.bottom,
|
|
1745
1745
|
left: R
|
|
1746
1746
|
};
|
|
@@ -1750,8 +1750,8 @@ const ol = (e) => {
|
|
|
1750
1750
|
});
|
|
1751
1751
|
const u = (c, M) => {
|
|
1752
1752
|
d.value = !1;
|
|
1753
|
-
const
|
|
1754
|
-
typeof
|
|
1753
|
+
const $ = l.config.actions?.[c];
|
|
1754
|
+
typeof $ == "object" && $.handler && $.handler(l.rowIndex, l.store) === !1 || a("action", c, l.rowIndex, M);
|
|
1755
1755
|
};
|
|
1756
1756
|
return (c, M) => (g(), k("td", {
|
|
1757
1757
|
ref: "actionsCell",
|
|
@@ -1767,42 +1767,42 @@ const ol = (e) => {
|
|
|
1767
1767
|
onClick: se(m, ["stop"])
|
|
1768
1768
|
}, [...M[0] || (M[0] = [
|
|
1769
1769
|
y("span", { class: "dropdown-icon" }, "⋮", -1)
|
|
1770
|
-
])], 8,
|
|
1771
|
-
|
|
1770
|
+
])], 8, $l),
|
|
1771
|
+
_(y("div", {
|
|
1772
1772
|
class: ue(["row-actions-menu", { "menu-flipped": r.value }]),
|
|
1773
|
-
style:
|
|
1773
|
+
style: Ce(b.value),
|
|
1774
1774
|
role: "menu"
|
|
1775
1775
|
}, [
|
|
1776
|
-
(g(!0), k(
|
|
1777
|
-
key:
|
|
1776
|
+
(g(!0), k(X, null, we(f.value, ($) => (g(), k("button", {
|
|
1777
|
+
key: $.type,
|
|
1778
1778
|
type: "button",
|
|
1779
1779
|
class: "row-action-menu-item",
|
|
1780
1780
|
role: "menuitem",
|
|
1781
|
-
disabled:
|
|
1782
|
-
onClick: se((D) => u(
|
|
1781
|
+
disabled: $.disabled,
|
|
1782
|
+
onClick: se((D) => u($.type, D), ["stop"])
|
|
1783
1783
|
}, [
|
|
1784
1784
|
y("span", {
|
|
1785
1785
|
class: "action-icon",
|
|
1786
|
-
innerHTML:
|
|
1786
|
+
innerHTML: $.icon
|
|
1787
1787
|
}, null, 8, Sl),
|
|
1788
|
-
y("span", Al, B(
|
|
1789
|
-
], 8,
|
|
1788
|
+
y("span", Al, B($.label), 1)
|
|
1789
|
+
], 8, Cl))), 128))
|
|
1790
1790
|
], 6), [
|
|
1791
1791
|
[xe, d.value]
|
|
1792
1792
|
])
|
|
1793
1793
|
])) : (g(), k("div", Ll, [
|
|
1794
|
-
(g(!0), k(
|
|
1795
|
-
key:
|
|
1794
|
+
(g(!0), k(X, null, we(f.value, ($) => (g(), k("button", {
|
|
1795
|
+
key: $.type,
|
|
1796
1796
|
type: "button",
|
|
1797
1797
|
class: "row-action-btn",
|
|
1798
|
-
title:
|
|
1799
|
-
"aria-label":
|
|
1800
|
-
disabled:
|
|
1801
|
-
onClick: se((D) => u(
|
|
1798
|
+
title: $.label,
|
|
1799
|
+
"aria-label": $.label,
|
|
1800
|
+
disabled: $.disabled,
|
|
1801
|
+
onClick: se((D) => u($.type, D), ["stop"])
|
|
1802
1802
|
}, [
|
|
1803
1803
|
y("span", {
|
|
1804
1804
|
class: "action-icon",
|
|
1805
|
-
innerHTML:
|
|
1805
|
+
innerHTML: $.icon
|
|
1806
1806
|
}, null, 8, El)
|
|
1807
1807
|
], 8, Rl))), 128))
|
|
1808
1808
|
]))
|
|
@@ -1831,15 +1831,15 @@ const ol = (e) => {
|
|
|
1831
1831
|
let p = {};
|
|
1832
1832
|
e.addNavigation === !0 ? p = { ...nt } : typeof e.addNavigation == "object" && (p = { ...nt, ...e.addNavigation }), m && !p["keydown.control.g"] && (p["keydown.control.g"] = (u) => {
|
|
1833
1833
|
u.stopPropagation(), u.preventDefault(), e.store.toggleRowExpand(e.rowIndex);
|
|
1834
|
-
}),
|
|
1834
|
+
}), Yt([
|
|
1835
1835
|
{
|
|
1836
1836
|
selectors: a,
|
|
1837
1837
|
handlers: p
|
|
1838
1838
|
}
|
|
1839
1839
|
]);
|
|
1840
1840
|
}
|
|
1841
|
-
return (p, u) => (g(), k(
|
|
1842
|
-
|
|
1841
|
+
return (p, u) => (g(), k(X, null, [
|
|
1842
|
+
_(y("tr", at(p.$attrs, {
|
|
1843
1843
|
ref: "rowEl",
|
|
1844
1844
|
tabindex: e.tabIndex,
|
|
1845
1845
|
class: ["atable-row", { "atable-row-clickable": s.value }],
|
|
@@ -1853,7 +1853,7 @@ const ol = (e) => {
|
|
|
1853
1853
|
position: i.value,
|
|
1854
1854
|
onAction: x
|
|
1855
1855
|
}, null, 8, ["row-index", "store", "config", "position"])) : W("", !0),
|
|
1856
|
-
e.store.config.view !== "uncounted" ?
|
|
1856
|
+
e.store.config.view !== "uncounted" ? Ie(p.$slots, "index", { key: 1 }, () => [
|
|
1857
1857
|
e.store.config.view === "list" ? (g(), k("td", {
|
|
1858
1858
|
key: 0,
|
|
1859
1859
|
tabIndex: -1,
|
|
@@ -1878,7 +1878,7 @@ const ol = (e) => {
|
|
|
1878
1878
|
position: i.value,
|
|
1879
1879
|
onAction: x
|
|
1880
1880
|
}, null, 8, ["row-index", "store", "config", "position"])) : W("", !0),
|
|
1881
|
-
|
|
1881
|
+
Ie(p.$slots, "default", {}, void 0, !0),
|
|
1882
1882
|
r.value && i.value === "end" ? (g(), me(tt, {
|
|
1883
1883
|
key: 3,
|
|
1884
1884
|
"row-index": e.rowIndex,
|
|
@@ -1900,7 +1900,7 @@ const ol = (e) => {
|
|
|
1900
1900
|
colspan: f.value,
|
|
1901
1901
|
class: "atable-expanded-content"
|
|
1902
1902
|
}, [
|
|
1903
|
-
|
|
1903
|
+
Ie(p.$slots, "content", {
|
|
1904
1904
|
row: e.store.rows[e.rowIndex],
|
|
1905
1905
|
rowIndex: e.rowIndex,
|
|
1906
1906
|
store: e.store
|
|
@@ -1966,7 +1966,7 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
1966
1966
|
(O) => O.barId === s.to.barId && O.side === s.to.side
|
|
1967
1967
|
);
|
|
1968
1968
|
if (!d || !r) return "";
|
|
1969
|
-
const i = d.position.x + Je / 2, h = d.position.y + Je / 2, f = r.position.x + Je / 2, x = r.position.y + Je / 2, b = Math.abs(f - i), m = Math.max(b * ql, 50), p = i + (s.from.side === "left" ? -m : m), u = f + (s.to.side === "left" ? -m : m), c = { x: 0.5 * i + 0.5 * p, y: 0.5 * h + 0.5 * h }, M = { x: 0.5 * p + 0.5 * u, y: 0.5 * h + 0.5 * x },
|
|
1969
|
+
const i = d.position.x + Je / 2, h = d.position.y + Je / 2, f = r.position.x + Je / 2, x = r.position.y + Je / 2, b = Math.abs(f - i), m = Math.max(b * ql, 50), p = i + (s.from.side === "left" ? -m : m), u = f + (s.to.side === "left" ? -m : m), c = { x: 0.5 * i + 0.5 * p, y: 0.5 * h + 0.5 * h }, M = { x: 0.5 * p + 0.5 * u, y: 0.5 * h + 0.5 * x }, $ = { x: 0.5 * u + 0.5 * f, y: 0.5 * x + 0.5 * x }, D = { x: 0.5 * c.x + 0.5 * M.x, y: 0.5 * c.y + 0.5 * M.y }, I = { x: 0.5 * M.x + 0.5 * $.x, y: 0.5 * M.y + 0.5 * $.y }, V = { x: 0.5 * D.x + 0.5 * I.x, y: 0.5 * D.y + 0.5 * I.y };
|
|
1970
1970
|
return `M ${i} ${h} Q ${p} ${h}, ${V.x} ${V.y} Q ${u} ${x}, ${f} ${x}`;
|
|
1971
1971
|
}, o = (s) => {
|
|
1972
1972
|
e.store.deleteConnection(s.id) && l("connection:delete", s);
|
|
@@ -1996,7 +1996,7 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
1996
1996
|
})
|
|
1997
1997
|
])
|
|
1998
1998
|
], -1)),
|
|
1999
|
-
(g(!0), k(
|
|
1999
|
+
(g(!0), k(X, null, we(a.value, (r) => (g(), k("path", {
|
|
2000
2000
|
key: `${r.id}-hitbox`,
|
|
2001
2001
|
d: n(r),
|
|
2002
2002
|
stroke: "transparent",
|
|
@@ -2005,7 +2005,7 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2005
2005
|
class: "connection-hitbox",
|
|
2006
2006
|
onDblclick: (i) => o(r)
|
|
2007
2007
|
}, null, 40, Gl))), 128)),
|
|
2008
|
-
(g(!0), k(
|
|
2008
|
+
(g(!0), k(X, null, we(a.value, (r) => (g(), k("path", {
|
|
2009
2009
|
id: r.id,
|
|
2010
2010
|
key: r.id,
|
|
2011
2011
|
d: n(r),
|
|
@@ -2019,10 +2019,10 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2019
2019
|
]))
|
|
2020
2020
|
]));
|
|
2021
2021
|
}
|
|
2022
|
-
}), zl = /* @__PURE__ */ Ue(jl, [["__scopeId", "data-v-d5929c98"]]),
|
|
2022
|
+
}), zl = /* @__PURE__ */ Ue(jl, [["__scopeId", "data-v-d5929c98"]]), _l = { class: "column-filter" }, Xl = {
|
|
2023
2023
|
key: 2,
|
|
2024
2024
|
class: "checkbox-filter"
|
|
2025
|
-
},
|
|
2025
|
+
}, Yl = ["value"], Kl = {
|
|
2026
2026
|
key: 5,
|
|
2027
2027
|
class: "date-range-filter"
|
|
2028
2028
|
}, Jl = /* @__PURE__ */ ne({
|
|
@@ -2071,8 +2071,8 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2071
2071
|
}, i = () => {
|
|
2072
2072
|
l.value = "", a.startValue = "", a.endValue = "", e.store.clearFilter(e.colIndex);
|
|
2073
2073
|
};
|
|
2074
|
-
return (h, f) => (g(), k("div",
|
|
2075
|
-
n.value === "text" ?
|
|
2074
|
+
return (h, f) => (g(), k("div", _l, [
|
|
2075
|
+
n.value === "text" ? _((g(), k("input", {
|
|
2076
2076
|
key: 0,
|
|
2077
2077
|
"onUpdate:modelValue": f[0] || (f[0] = (x) => l.value = x),
|
|
2078
2078
|
type: "text",
|
|
@@ -2080,7 +2080,7 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2080
2080
|
onInput: f[1] || (f[1] = (x) => d(l.value))
|
|
2081
2081
|
}, null, 544)), [
|
|
2082
2082
|
[ge, l.value]
|
|
2083
|
-
]) : n.value === "number" ?
|
|
2083
|
+
]) : n.value === "number" ? _((g(), k("input", {
|
|
2084
2084
|
key: 1,
|
|
2085
2085
|
"onUpdate:modelValue": f[2] || (f[2] = (x) => l.value = x),
|
|
2086
2086
|
type: "number",
|
|
@@ -2088,8 +2088,8 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2088
2088
|
onInput: f[3] || (f[3] = (x) => d(l.value))
|
|
2089
2089
|
}, null, 544)), [
|
|
2090
2090
|
[ge, l.value]
|
|
2091
|
-
]) : n.value === "checkbox" ? (g(), k("label",
|
|
2092
|
-
|
|
2091
|
+
]) : n.value === "checkbox" ? (g(), k("label", Xl, [
|
|
2092
|
+
_(y("input", {
|
|
2093
2093
|
"onUpdate:modelValue": f[4] || (f[4] = (x) => l.value = x),
|
|
2094
2094
|
type: "checkbox",
|
|
2095
2095
|
class: "filter-checkbox",
|
|
@@ -2098,20 +2098,20 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2098
2098
|
[jt, l.value]
|
|
2099
2099
|
]),
|
|
2100
2100
|
y("span", null, B(e.column.label), 1)
|
|
2101
|
-
])) : n.value === "select" ?
|
|
2101
|
+
])) : n.value === "select" ? _((g(), k("select", {
|
|
2102
2102
|
key: 3,
|
|
2103
2103
|
"onUpdate:modelValue": f[6] || (f[6] = (x) => l.value = x),
|
|
2104
2104
|
class: "filter-select",
|
|
2105
2105
|
onChange: f[7] || (f[7] = (x) => d(l.value))
|
|
2106
2106
|
}, [
|
|
2107
2107
|
f[15] || (f[15] = y("option", { value: "" }, "All", -1)),
|
|
2108
|
-
(g(!0), k(
|
|
2108
|
+
(g(!0), k(X, null, we(o(e.column), (x) => (g(), k("option", {
|
|
2109
2109
|
key: x.value || x,
|
|
2110
2110
|
value: x.value || x
|
|
2111
|
-
}, B(x.label || x), 9,
|
|
2111
|
+
}, B(x.label || x), 9, Yl))), 128))
|
|
2112
2112
|
], 544)), [
|
|
2113
2113
|
[zt, l.value]
|
|
2114
|
-
]) : n.value === "date" ?
|
|
2114
|
+
]) : n.value === "date" ? _((g(), k("input", {
|
|
2115
2115
|
key: 4,
|
|
2116
2116
|
"onUpdate:modelValue": f[8] || (f[8] = (x) => l.value = x),
|
|
2117
2117
|
type: "date",
|
|
@@ -2119,8 +2119,8 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2119
2119
|
onChange: f[9] || (f[9] = (x) => d(l.value))
|
|
2120
2120
|
}, null, 544)), [
|
|
2121
2121
|
[ge, l.value]
|
|
2122
|
-
]) : n.value === "dateRange" ? (g(), k("div",
|
|
2123
|
-
|
|
2122
|
+
]) : n.value === "dateRange" ? (g(), k("div", Kl, [
|
|
2123
|
+
_(y("input", {
|
|
2124
2124
|
"onUpdate:modelValue": f[10] || (f[10] = (x) => a.startValue = x),
|
|
2125
2125
|
type: "date",
|
|
2126
2126
|
class: "filter-input",
|
|
@@ -2129,7 +2129,7 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2129
2129
|
[ge, a.startValue]
|
|
2130
2130
|
]),
|
|
2131
2131
|
f[16] || (f[16] = y("span", { class: "date-separator" }, "-", -1)),
|
|
2132
|
-
|
|
2132
|
+
_(y("input", {
|
|
2133
2133
|
"onUpdate:modelValue": f[12] || (f[12] = (x) => a.endValue = x),
|
|
2134
2134
|
type: "date",
|
|
2135
2135
|
class: "filter-input",
|
|
@@ -2201,15 +2201,15 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2201
2201
|
], "list-index"])
|
|
2202
2202
|
}, null, 2)) : W("", !0),
|
|
2203
2203
|
l.value && a.value === "after-index" ? (g(), k("th", no)) : W("", !0),
|
|
2204
|
-
(g(!0), k(
|
|
2204
|
+
(g(!0), k(X, null, we(e.columns, (r, i) => _((g(), k("th", {
|
|
2205
2205
|
key: r.name,
|
|
2206
2206
|
"data-colindex": i,
|
|
2207
2207
|
tabindex: "-1",
|
|
2208
|
-
style:
|
|
2208
|
+
style: Ce(e.store.getHeaderCellStyle(r)),
|
|
2209
2209
|
class: ue(`${r.pinned ? "sticky-column" : ""} ${r.sortable === !1 ? "" : "cursor-pointer"}`),
|
|
2210
2210
|
onClick: (h) => r.sortable !== !1 ? n(i) : void 0
|
|
2211
2211
|
}, [
|
|
2212
|
-
|
|
2212
|
+
Ie(s.$slots, "default", {}, () => [
|
|
2213
2213
|
kt(B(r.label || String.fromCharCode(i + 97).toUpperCase()), 1)
|
|
2214
2214
|
])
|
|
2215
2215
|
], 14, lo)), [
|
|
@@ -2231,10 +2231,10 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2231
2231
|
], "list-index"])
|
|
2232
2232
|
}, null, 2)) : W("", !0),
|
|
2233
2233
|
l.value && a.value === "after-index" ? (g(), k("th", so)) : W("", !0),
|
|
2234
|
-
(g(!0), k(
|
|
2234
|
+
(g(!0), k(X, null, we(e.columns, (r, i) => (g(), k("th", {
|
|
2235
2235
|
key: `filter-${r.name}`,
|
|
2236
2236
|
class: ue(`${r.pinned ? "sticky-column" : ""}`),
|
|
2237
|
-
style:
|
|
2237
|
+
style: Ce(e.store.getHeaderCellStyle(r))
|
|
2238
2238
|
}, [
|
|
2239
2239
|
r.filterable ? (g(), me(Ql, {
|
|
2240
2240
|
key: 0,
|
|
@@ -2271,13 +2271,13 @@ const Zl = { class: "gantt-connection-overlay" }, Ul = {
|
|
|
2271
2271
|
ref: "amodal",
|
|
2272
2272
|
class: "amodal",
|
|
2273
2273
|
tabindex: "-1",
|
|
2274
|
-
style:
|
|
2274
|
+
style: Ce(n.value),
|
|
2275
2275
|
onClick: s[0] || (s[0] = se(() => {
|
|
2276
2276
|
}, ["stop"])),
|
|
2277
2277
|
onInput: s[1] || (s[1] = se(() => {
|
|
2278
2278
|
}, ["stop"]))
|
|
2279
2279
|
}, [
|
|
2280
|
-
|
|
2280
|
+
Ie(o.$slots, "default")
|
|
2281
2281
|
], 36));
|
|
2282
2282
|
}
|
|
2283
2283
|
});
|
|
@@ -2312,21 +2312,21 @@ const uo = {
|
|
|
2312
2312
|
}),
|
|
2313
2313
|
emits: /* @__PURE__ */ be(["cellUpdate", "gantt:drag", "connection:event", "columns:update", "row:add", "row:click", "row:delete", "row:duplicate", "row:insert-above", "row:insert-below", "row:move", "row:open"], ["update:rows", "update:columns"]),
|
|
2314
2314
|
setup(e, { expose: t, emit: l }) {
|
|
2315
|
-
const a =
|
|
2315
|
+
const a = Te(e, "rows"), n = Te(e, "columns"), o = l, s = pe("table"), d = n.value?.length ? n.value : io(e.schema ?? []), r = wt("aformLinkResolver", null), i = ol({
|
|
2316
2316
|
columns: d,
|
|
2317
2317
|
rows: a.value,
|
|
2318
2318
|
id: e.id,
|
|
2319
2319
|
config: e.config,
|
|
2320
2320
|
linkResolver: e.linkResolver ?? r
|
|
2321
2321
|
});
|
|
2322
|
-
i.$onAction(({ name: c, store: M, args:
|
|
2322
|
+
i.$onAction(({ name: c, store: M, args: $, after: D }) => {
|
|
2323
2323
|
if (c === "setCellData" || c === "setCellText") {
|
|
2324
|
-
const [I, V, O] =
|
|
2324
|
+
const [I, V, O] = $, R = M.getCellData(I, V);
|
|
2325
2325
|
D(() => {
|
|
2326
2326
|
a.value = [...i.rows], o("cellUpdate", { colIndex: I, rowIndex: V, newValue: O, oldValue: R });
|
|
2327
2327
|
});
|
|
2328
2328
|
} else if (c === "updateGanttBar") {
|
|
2329
|
-
const [I] =
|
|
2329
|
+
const [I] = $;
|
|
2330
2330
|
let V = !1;
|
|
2331
2331
|
I.type === "resize" ? V = I.oldColspan !== I.newColspan : I.type === "bar" && (V = I.oldStart !== I.newStart || I.oldEnd !== I.newEnd), V && D(() => {
|
|
2332
2332
|
o("gantt:drag", I);
|
|
@@ -2350,9 +2350,9 @@ const uo = {
|
|
|
2350
2350
|
n.value?.some((c) => c.pinned) && (f(), i.isTreeView && Qt(s, f, { childList: !0, subtree: !0 }));
|
|
2351
2351
|
});
|
|
2352
2352
|
const h = S(() => i.columns.filter((c) => c.pinned).length), f = () => {
|
|
2353
|
-
const c = s.value, M = c?.rows[0],
|
|
2353
|
+
const c = s.value, M = c?.rows[0], $ = c?.rows[1], D = M ? Array.from(M.cells) : [];
|
|
2354
2354
|
for (const [I, V] of D.entries()) {
|
|
2355
|
-
const O =
|
|
2355
|
+
const O = $?.cells[I];
|
|
2356
2356
|
O && (V.style.width = `${O.offsetWidth}px`);
|
|
2357
2357
|
}
|
|
2358
2358
|
for (const I of c?.rows || []) {
|
|
@@ -2374,9 +2374,9 @@ const uo = {
|
|
|
2374
2374
|
if (!c.gantt || h.value === 0)
|
|
2375
2375
|
return i.columns;
|
|
2376
2376
|
const M = [];
|
|
2377
|
-
for (let
|
|
2378
|
-
const D = { ...i.columns[
|
|
2379
|
-
D.originalIndex =
|
|
2377
|
+
for (let $ = 0; $ < h.value; $++) {
|
|
2378
|
+
const D = { ...i.columns[$] };
|
|
2379
|
+
D.originalIndex = $, M.push(D);
|
|
2380
2380
|
}
|
|
2381
2381
|
return M.push({
|
|
2382
2382
|
...i.columns[h.value],
|
|
@@ -2391,9 +2391,9 @@ const uo = {
|
|
|
2391
2391
|
}, m = (c) => {
|
|
2392
2392
|
o("connection:event", { type: "delete", connection: c });
|
|
2393
2393
|
}, p = (c, M) => {
|
|
2394
|
-
const
|
|
2395
|
-
o("row:click", { row:
|
|
2396
|
-
}, u = (c, M,
|
|
2394
|
+
const $ = i.rows[c];
|
|
2395
|
+
o("row:click", { row: $, rowIndex: c, event: M });
|
|
2396
|
+
}, u = (c, M, $) => {
|
|
2397
2397
|
switch (c) {
|
|
2398
2398
|
case "add": {
|
|
2399
2399
|
const D = i.addRow({}, M + 1), I = i.rows[D];
|
|
@@ -2437,7 +2437,7 @@ const uo = {
|
|
|
2437
2437
|
}
|
|
2438
2438
|
case "open": {
|
|
2439
2439
|
const D = i.rows[M];
|
|
2440
|
-
o("row:open", { row: D, rowIndex: M, event:
|
|
2440
|
+
o("row:open", { row: D, rowIndex: M, event: $ });
|
|
2441
2441
|
break;
|
|
2442
2442
|
}
|
|
2443
2443
|
}
|
|
@@ -2456,45 +2456,45 @@ const uo = {
|
|
|
2456
2456
|
insertRowBelow: i.insertRowBelow,
|
|
2457
2457
|
moveRow: i.moveRow
|
|
2458
2458
|
}), (c, M) => (g(), k("div", uo, [
|
|
2459
|
-
|
|
2459
|
+
_((g(), k("table", {
|
|
2460
2460
|
ref: "table",
|
|
2461
2461
|
class: "atable",
|
|
2462
|
-
style:
|
|
2462
|
+
style: Ce({
|
|
2463
2463
|
width: P(i).config.fullWidth ? "100%" : "auto"
|
|
2464
2464
|
})
|
|
2465
2465
|
}, [
|
|
2466
|
-
|
|
2466
|
+
Ie(c.$slots, "header", { data: P(i) }, () => [
|
|
2467
2467
|
ze(on, {
|
|
2468
2468
|
columns: P(i).columns,
|
|
2469
2469
|
store: P(i)
|
|
2470
2470
|
}, null, 8, ["columns", "store"])
|
|
2471
2471
|
], !0),
|
|
2472
2472
|
y("tbody", null, [
|
|
2473
|
-
|
|
2474
|
-
(g(!0), k(
|
|
2475
|
-
key: `${
|
|
2476
|
-
row:
|
|
2477
|
-
"row-index":
|
|
2473
|
+
Ie(c.$slots, "body", { data: P(i) }, () => [
|
|
2474
|
+
(g(!0), k(X, null, we(P(i).filteredRows, ($, D) => (g(), me(ln, {
|
|
2475
|
+
key: `${$.originalIndex}-${D}`,
|
|
2476
|
+
row: $,
|
|
2477
|
+
"row-index": $.originalIndex,
|
|
2478
2478
|
store: P(i),
|
|
2479
2479
|
"onRow:action": u,
|
|
2480
2480
|
"onRow:click": p
|
|
2481
2481
|
}, {
|
|
2482
2482
|
default: Ft(() => [
|
|
2483
|
-
(g(!0), k(
|
|
2483
|
+
(g(!0), k(X, null, we(x($), (I, V) => (g(), k(X, {
|
|
2484
2484
|
key: I.name
|
|
2485
2485
|
}, [
|
|
2486
2486
|
I.isGantt ? (g(), me(Ze(I.ganttComponent || "AGanttCell"), {
|
|
2487
2487
|
key: 0,
|
|
2488
2488
|
store: P(i),
|
|
2489
2489
|
"columns-count": P(i).columns.length - h.value,
|
|
2490
|
-
color:
|
|
2491
|
-
start:
|
|
2492
|
-
end:
|
|
2490
|
+
color: $.gantt?.color,
|
|
2491
|
+
start: $.gantt?.startIndex,
|
|
2492
|
+
end: $.gantt?.endIndex,
|
|
2493
2493
|
colspan: I.colspan,
|
|
2494
2494
|
pinned: I.pinned,
|
|
2495
|
-
"row-index":
|
|
2495
|
+
"row-index": $.originalIndex,
|
|
2496
2496
|
"col-index": I.originalIndex ?? V,
|
|
2497
|
-
style:
|
|
2497
|
+
style: Ce({
|
|
2498
2498
|
textAlign: I?.align || "center",
|
|
2499
2499
|
minWidth: I?.width || "40ch",
|
|
2500
2500
|
width: P(i).config.fullWidth ? "auto" : null
|
|
@@ -2504,9 +2504,9 @@ const uo = {
|
|
|
2504
2504
|
key: 1,
|
|
2505
2505
|
store: P(i),
|
|
2506
2506
|
pinned: I.pinned,
|
|
2507
|
-
"row-index":
|
|
2507
|
+
"row-index": $.originalIndex,
|
|
2508
2508
|
"col-index": V,
|
|
2509
|
-
style:
|
|
2509
|
+
style: Ce({
|
|
2510
2510
|
textAlign: I?.align || "center",
|
|
2511
2511
|
width: P(i).config.fullWidth ? "auto" : null
|
|
2512
2512
|
}),
|
|
@@ -2518,9 +2518,9 @@ const uo = {
|
|
|
2518
2518
|
}, 1032, ["row", "row-index", "store"]))), 128))
|
|
2519
2519
|
], !0)
|
|
2520
2520
|
]),
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2521
|
+
Ie(c.$slots, "footer", { data: P(i) }, void 0, !0),
|
|
2522
|
+
Ie(c.$slots, "modal", { data: P(i) }, () => [
|
|
2523
|
+
_(ze(an, { store: P(i) }, {
|
|
2524
2524
|
default: Ft(() => [
|
|
2525
2525
|
(g(), me(Ze(P(i).modal.component), at({
|
|
2526
2526
|
key: `${P(i).modal.rowIndex}:${P(i).modal.colIndex}`,
|
|
@@ -2548,7 +2548,7 @@ const uo = {
|
|
|
2548
2548
|
function po(e, t) {
|
|
2549
2549
|
return g(), k("div", mo, [
|
|
2550
2550
|
y("h2", ho, [
|
|
2551
|
-
|
|
2551
|
+
Ie(e.$slots, "default", {}, void 0, !0)
|
|
2552
2552
|
]),
|
|
2553
2553
|
t[0] || (t[0] = y("div", { class: "aloading-bar" }, null, -1))
|
|
2554
2554
|
]);
|
|
@@ -2557,7 +2557,7 @@ const go = /* @__PURE__ */ Ue(fo, [["render", po], ["__scopeId", "data-v-a930a25
|
|
|
2557
2557
|
function bo(e, t) {
|
|
2558
2558
|
return g(), k("div", yo, [
|
|
2559
2559
|
y("h2", xo, [
|
|
2560
|
-
|
|
2560
|
+
Ie(e.$slots, "default", {}, void 0, !0)
|
|
2561
2561
|
]),
|
|
2562
2562
|
t[0] || (t[0] = y("div", { class: "aloading-bar" }, null, -1))
|
|
2563
2563
|
]);
|
|
@@ -2566,7 +2566,7 @@ const ko = /* @__PURE__ */ Ue(wo, [["render", bo], ["__scopeId", "data-v-e116587
|
|
|
2566
2566
|
function Mo(e) {
|
|
2567
2567
|
e.component("ACell", il), e.component("AGanttCell", hl), e.component("ARow", ln), e.component("ARowActions", tt), e.component("ATable", vo), e.component("ATableHeader", on), e.component("ATableLoading", go), e.component("ATableLoadingBar", ko), e.component("ATableModal", an);
|
|
2568
2568
|
}
|
|
2569
|
-
const Io = { class: "aform_form-element" }, To = { class: "aform_field-label" }, Do = { class: "aform_display-value" },
|
|
2569
|
+
const Io = { class: "aform_form-element" }, To = { class: "aform_field-label" }, Do = { class: "aform_display-value" }, $o = ["for"], Co = { class: "aform_checkbox-container aform_input-field" }, So = ["id", "disabled", "required"], Ao = ["innerHTML"], Lo = /* @__PURE__ */ ne({
|
|
2570
2570
|
__name: "ACheckbox",
|
|
2571
2571
|
props: /* @__PURE__ */ be({
|
|
2572
2572
|
schema: {},
|
|
@@ -2584,18 +2584,18 @@ const Io = { class: "aform_form-element" }, To = { class: "aform_field-label" },
|
|
|
2584
2584
|
}),
|
|
2585
2585
|
emits: ["update:modelValue"],
|
|
2586
2586
|
setup(e) {
|
|
2587
|
-
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l =
|
|
2587
|
+
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l = Te(e, "modelValue");
|
|
2588
2588
|
return (a, n) => (g(), k("div", Io, [
|
|
2589
|
-
e.mode === "display" ? (g(), k(
|
|
2589
|
+
e.mode === "display" ? (g(), k(X, { key: 0 }, [
|
|
2590
2590
|
y("label", To, B(e.label), 1),
|
|
2591
2591
|
y("span", Do, B(l.value ? "✓" : "✗"), 1)
|
|
2592
|
-
], 64)) : (g(), k(
|
|
2592
|
+
], 64)) : (g(), k(X, { key: 1 }, [
|
|
2593
2593
|
y("label", {
|
|
2594
2594
|
class: "aform_field-label",
|
|
2595
2595
|
for: e.uuid
|
|
2596
|
-
}, B(e.label), 9,
|
|
2597
|
-
y("span",
|
|
2598
|
-
|
|
2596
|
+
}, B(e.label), 9, $o),
|
|
2597
|
+
y("span", Co, [
|
|
2598
|
+
_(y("input", {
|
|
2599
2599
|
id: e.uuid,
|
|
2600
2600
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => l.value = o),
|
|
2601
2601
|
type: "checkbox",
|
|
@@ -2606,7 +2606,7 @@ const Io = { class: "aform_form-element" }, To = { class: "aform_field-label" },
|
|
|
2606
2606
|
[jt, l.value]
|
|
2607
2607
|
])
|
|
2608
2608
|
]),
|
|
2609
|
-
|
|
2609
|
+
_(y("p", {
|
|
2610
2610
|
class: "aform_error",
|
|
2611
2611
|
innerHTML: t.value
|
|
2612
2612
|
}, null, 8, Ao), [
|
|
@@ -2647,9 +2647,9 @@ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
|
2647
2647
|
const Eo = Object.prototype.toString, Ho = (e) => Eo.call(e) === "[object Object]", je = () => {
|
|
2648
2648
|
}, Vo = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
2649
2649
|
function Bo(...e) {
|
|
2650
|
-
if (e.length !== 1) return
|
|
2650
|
+
if (e.length !== 1) return _t(...e);
|
|
2651
2651
|
const t = e[0];
|
|
2652
|
-
return typeof t == "function" ? St(
|
|
2652
|
+
return typeof t == "function" ? St(Ct(() => ({
|
|
2653
2653
|
get: t,
|
|
2654
2654
|
set: je
|
|
2655
2655
|
}))) : A(t);
|
|
@@ -2710,8 +2710,8 @@ function ot(e, t, l = {}) {
|
|
|
2710
2710
|
return c && c.$.subTree.shapeFlag === 16;
|
|
2711
2711
|
}
|
|
2712
2712
|
function f(u, c) {
|
|
2713
|
-
const M = H(u),
|
|
2714
|
-
return
|
|
2713
|
+
const M = H(u), $ = M.$.subTree && M.$.subTree.children;
|
|
2714
|
+
return $ == null || !Array.isArray($) ? !1 : $.some((D) => D.el === c.target || c.composedPath().includes(D.el));
|
|
2715
2715
|
}
|
|
2716
2716
|
const x = (u) => {
|
|
2717
2717
|
const c = Ge(e);
|
|
@@ -2792,7 +2792,7 @@ function Zo(e = {}) {
|
|
|
2792
2792
|
};
|
|
2793
2793
|
i(b), H(b.reset) && r(), x.click();
|
|
2794
2794
|
};
|
|
2795
|
-
return
|
|
2795
|
+
return $t(() => {
|
|
2796
2796
|
i(e);
|
|
2797
2797
|
}), {
|
|
2798
2798
|
files: St(l),
|
|
@@ -2840,7 +2840,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
2840
2840
|
}, zo = {
|
|
2841
2841
|
colspan: "5",
|
|
2842
2842
|
tabindex: -1
|
|
2843
|
-
},
|
|
2843
|
+
}, _o = { key: 0 }, Xo = { colspan: "7" }, Yo = { class: "date-input" }, Ko = ["value"], Jo = ["value"], Qo = ["onClick", "onKeydown", "onMouseover"], ea = ["innerHTML"], ta = 6, qt = 7, na = /* @__PURE__ */ ne({
|
|
2844
2844
|
__name: "ADatePicker",
|
|
2845
2845
|
props: /* @__PURE__ */ be({
|
|
2846
2846
|
schema: {},
|
|
@@ -2858,10 +2858,10 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
2858
2858
|
}),
|
|
2859
2859
|
emits: /* @__PURE__ */ be(["get-date"], ["update:modelValue"]),
|
|
2860
2860
|
setup(e, { expose: t, emit: l }) {
|
|
2861
|
-
const a = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n =
|
|
2861
|
+
const a = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), n = Te(e, "modelValue"), o = A(new Date(n.value)), s = A(o.value.getMonth()), d = A(o.value.getFullYear()), r = A([]), i = A(new Date(n.value)), h = A(null), f = A(null), x = pe("start-date-input"), b = pe("end-date-input"), m = l, p = S(() => new Date(d.value, s.value, 1).toLocaleDateString(void 0, {
|
|
2862
2862
|
year: "numeric",
|
|
2863
2863
|
month: "long"
|
|
2864
|
-
})), u = S(() => h.value != null ? M(h.value) : ""), c = S(() => f.value != null ? M(f.value) : ""), M = (T) => fe(T) ? T.getMonth() + 1 + "/" + T.getDate() + "/" + T.getFullYear() : "",
|
|
2864
|
+
})), u = S(() => h.value != null ? M(h.value) : ""), c = S(() => f.value != null ? M(f.value) : ""), M = (T) => fe(T) ? T.getMonth() + 1 + "/" + T.getDate() + "/" + T.getFullYear() : "", $ = (T) => {
|
|
2865
2865
|
const L = /* @__PURE__ */ new Date();
|
|
2866
2866
|
return s.value !== L.getMonth() ? !1 : L.toDateString() === new Date(T).toDateString();
|
|
2867
2867
|
}, D = (T) => new Date(T).toDateString() === new Date(o.value).toDateString(), I = (T) => {
|
|
@@ -2875,14 +2875,14 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
2875
2875
|
if (!fe(L)) return !1;
|
|
2876
2876
|
const G = new Date(T), N = f.value, ae = fe(N) ? N : new Date(i.value);
|
|
2877
2877
|
return G.getTime() > L.getTime() && G.getTime() < ae.getTime();
|
|
2878
|
-
}, F = (T, L) => r.value[O(T, L)],
|
|
2878
|
+
}, F = (T, L) => r.value[O(T, L)], Y = (T) => {
|
|
2879
2879
|
i.value = new Date(r.value[T]);
|
|
2880
2880
|
}, J = () => {
|
|
2881
2881
|
r.value = [];
|
|
2882
2882
|
const T = new Date(d.value, s.value, 1), L = T.getDay(), G = T.setDate(T.getDate() - L);
|
|
2883
2883
|
for (const N of Array(43).keys())
|
|
2884
2884
|
r.value.push(G + N * 864e5);
|
|
2885
|
-
}, le = () => d.value -= 1, re = () => d.value += 1,
|
|
2885
|
+
}, le = () => d.value -= 1, re = () => d.value += 1, De = () => {
|
|
2886
2886
|
s.value == 0 ? (s.value = 11, le()) : s.value -= 1;
|
|
2887
2887
|
}, Me = () => {
|
|
2888
2888
|
s.value == 11 ? (s.value = 0, re()) : s.value += 1;
|
|
@@ -2927,16 +2927,16 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
2927
2927
|
const L = document.getElementsByClassName("todaysDate");
|
|
2928
2928
|
L.length > 0 && L[0].focus();
|
|
2929
2929
|
}
|
|
2930
|
-
}), te([s, d], J), t({ currentMonth: s, currentYear: d, selectedDate: o }), (T, L) => e.mode === "display" || e.mode === "read" ? (g(), k(
|
|
2930
|
+
}), te([s, d], J), t({ currentMonth: s, currentYear: d, selectedDate: o }), (T, L) => e.mode === "display" || e.mode === "read" ? (g(), k(X, { key: 0 }, [
|
|
2931
2931
|
y("span", Go, B(n.value ? new Date(n.value).toLocaleDateString() : ""), 1),
|
|
2932
2932
|
e.label ? (g(), k("label", Wo, B(e.label), 1)) : W("", !0),
|
|
2933
|
-
|
|
2933
|
+
_(y("p", {
|
|
2934
2934
|
class: "aform_error",
|
|
2935
2935
|
innerHTML: a.value
|
|
2936
2936
|
}, null, 8, qo), [
|
|
2937
2937
|
[xe, a.value]
|
|
2938
2938
|
])
|
|
2939
|
-
], 64)) : (g(), k(
|
|
2939
|
+
], 64)) : (g(), k(X, { key: 1 }, [
|
|
2940
2940
|
y("div", jo, [
|
|
2941
2941
|
y("table", null, [
|
|
2942
2942
|
y("tbody", null, [
|
|
@@ -2944,7 +2944,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
2944
2944
|
y("td", {
|
|
2945
2945
|
id: "previous-month-btn",
|
|
2946
2946
|
tabindex: -1,
|
|
2947
|
-
onClick:
|
|
2947
|
+
onClick: De
|
|
2948
2948
|
}, "<"),
|
|
2949
2949
|
y("th", zo, B(p.value), 1),
|
|
2950
2950
|
y("td", {
|
|
@@ -2953,9 +2953,9 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
2953
2953
|
onClick: Me
|
|
2954
2954
|
}, ">")
|
|
2955
2955
|
]),
|
|
2956
|
-
e.selectRange ? (g(), k("tr",
|
|
2957
|
-
y("td",
|
|
2958
|
-
y("div",
|
|
2956
|
+
e.selectRange ? (g(), k("tr", _o, [
|
|
2957
|
+
y("td", Xo, [
|
|
2958
|
+
y("div", Yo, [
|
|
2959
2959
|
y("input", {
|
|
2960
2960
|
ref: "start-date-input",
|
|
2961
2961
|
value: u.value,
|
|
@@ -2964,7 +2964,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
2964
2964
|
placeholder: "start date",
|
|
2965
2965
|
onBlur: L[0] || (L[0] = (G) => Se()),
|
|
2966
2966
|
onKeydown: He
|
|
2967
|
-
}, null, 40,
|
|
2967
|
+
}, null, 40, Ko),
|
|
2968
2968
|
L[2] || (L[2] = y("div", null, "-", -1)),
|
|
2969
2969
|
y("input", {
|
|
2970
2970
|
ref: "end-date-input",
|
|
@@ -2987,13 +2987,13 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
2987
2987
|
y("td", null, "S"),
|
|
2988
2988
|
y("td", null, "S")
|
|
2989
2989
|
], -1)),
|
|
2990
|
-
(g(), k(
|
|
2991
|
-
(g(), k(
|
|
2990
|
+
(g(), k(X, null, we(ta, (G) => y("tr", { key: G }, [
|
|
2991
|
+
(g(), k(X, null, we(qt, (N) => y("td", {
|
|
2992
2992
|
ref_for: !0,
|
|
2993
2993
|
ref: "celldate",
|
|
2994
2994
|
key: O(G, N),
|
|
2995
2995
|
class: ue(["date-cell", {
|
|
2996
|
-
todaysDate:
|
|
2996
|
+
todaysDate: $(F(G, N)),
|
|
2997
2997
|
selectedDate: D(F(G, N)),
|
|
2998
2998
|
withinRange: e.selectRange ? R(F(G, N)) : !1,
|
|
2999
2999
|
startDate: e.selectRange ? I(F(G, N)) : !1,
|
|
@@ -3004,13 +3004,13 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3004
3004
|
tabindex: 0,
|
|
3005
3005
|
onClick: se((ae) => Ve(O(G, N)), ["prevent", "stop"]),
|
|
3006
3006
|
onKeydown: ve((ae) => Ve(O(G, N)), ["enter"]),
|
|
3007
|
-
onMouseover: (ae) =>
|
|
3007
|
+
onMouseover: (ae) => Y(O(G, N))
|
|
3008
3008
|
}, B(new Date(F(G, N)).getDate()), 43, Qo)), 64))
|
|
3009
3009
|
])), 64))
|
|
3010
3010
|
])
|
|
3011
3011
|
])
|
|
3012
3012
|
], 512),
|
|
3013
|
-
|
|
3013
|
+
_(y("p", {
|
|
3014
3014
|
class: "aform_error",
|
|
3015
3015
|
innerHTML: a.value
|
|
3016
3016
|
}, null, 8, ea), [
|
|
@@ -3060,8 +3060,8 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3060
3060
|
}, i = (b, m = 1) => {
|
|
3061
3061
|
const p = e.allowMilitaryTime ? 23 : 12, u = e.allowMilitaryTime ? 0 : 1;
|
|
3062
3062
|
if (b == "hours") {
|
|
3063
|
-
const
|
|
3064
|
-
n.hours = String(
|
|
3063
|
+
const $ = Number(n.hours);
|
|
3064
|
+
n.hours = String($ + m), ($ == 11 && Number(n.hours) == 12 || $ == 12 && Number(n.hours) == 11) && f();
|
|
3065
3065
|
} else b == "minutes" ? n.minutes = String(Number(n.minutes) + m) : b == "seconds" && (n.seconds = String(Number(n.seconds) + m));
|
|
3066
3066
|
const c = Number(n.hours);
|
|
3067
3067
|
Number(n.seconds) < 0 ? n.minutes = String(Number(n.minutes) - 1) : Number(n.seconds) > 59 && (n.minutes = String(Number(n.minutes) + 1)), Number(n.minutes) < 0 ? n.hours = String(c - 1) : Number(n.minutes) > 59 && (n.hours = String(c + 1));
|
|
@@ -3104,7 +3104,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3104
3104
|
};
|
|
3105
3105
|
return (b, m) => (g(), k("div", la, [
|
|
3106
3106
|
y("div", oa, [
|
|
3107
|
-
|
|
3107
|
+
_(y("input", {
|
|
3108
3108
|
"onUpdate:modelValue": m[0] || (m[0] = (p) => n.hours = p),
|
|
3109
3109
|
type: "text",
|
|
3110
3110
|
inputmode: "numeric",
|
|
@@ -3120,7 +3120,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3120
3120
|
[ge, n.hours]
|
|
3121
3121
|
]),
|
|
3122
3122
|
m[12] || (m[12] = y("span", { class: "colon" }, ":", -1)),
|
|
3123
|
-
|
|
3123
|
+
_(y("input", {
|
|
3124
3124
|
"onUpdate:modelValue": m[4] || (m[4] = (p) => n.minutes = p),
|
|
3125
3125
|
type: "text",
|
|
3126
3126
|
inputmode: "numeric",
|
|
@@ -3136,7 +3136,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3136
3136
|
[ge, n.minutes]
|
|
3137
3137
|
]),
|
|
3138
3138
|
e.useSeconds ? (g(), k("span", ra, ":")) : W("", !0),
|
|
3139
|
-
e.useSeconds ?
|
|
3139
|
+
e.useSeconds ? _((g(), k("input", {
|
|
3140
3140
|
key: 1,
|
|
3141
3141
|
"onUpdate:modelValue": m[7] || (m[7] = (p) => n.seconds = p),
|
|
3142
3142
|
type: "text",
|
|
@@ -3152,7 +3152,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3152
3152
|
}, null, 40, ia)), [
|
|
3153
3153
|
[ge, n.seconds]
|
|
3154
3154
|
]) : W("", !0),
|
|
3155
|
-
e.allowMilitaryTime ? W("", !0) :
|
|
3155
|
+
e.allowMilitaryTime ? W("", !0) : _((g(), k("select", {
|
|
3156
3156
|
key: 2,
|
|
3157
3157
|
ref: "meridiem-selector",
|
|
3158
3158
|
"onUpdate:modelValue": m[10] || (m[10] = (p) => o.value = p),
|
|
@@ -3228,7 +3228,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3228
3228
|
"use-seconds": e.useSeconds,
|
|
3229
3229
|
onGetTime: x
|
|
3230
3230
|
}, null, 8, ["allow-military-time", "default-hours", "default-minutes", "default-seconds", "default-meridiem", "use-seconds"])) : W("", !0),
|
|
3231
|
-
e.selectRange && e.showTime && e.showEndTime ? (g(), k(
|
|
3231
|
+
e.selectRange && e.showTime && e.showEndTime ? (g(), k(X, { key: 2 }, [
|
|
3232
3232
|
p[0] || (p[0] = y("div", { class: "adate-selection__end-label" }, "End time", -1)),
|
|
3233
3233
|
ze(bt, {
|
|
3234
3234
|
"allow-military-time": e.allowMilitaryTime,
|
|
@@ -3261,7 +3261,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3261
3261
|
}),
|
|
3262
3262
|
emits: ["update:modelValue"],
|
|
3263
3263
|
setup(e) {
|
|
3264
|
-
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l =
|
|
3264
|
+
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l = Te(e, "modelValue"), a = A(l.value ? new Date(l.value) : /* @__PURE__ */ new Date()), n = S({
|
|
3265
3265
|
get: () => a.value.toISOString().split("T")[0],
|
|
3266
3266
|
set: (r) => {
|
|
3267
3267
|
a.value = new Date(r), l.value = r;
|
|
@@ -3277,11 +3277,11 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3277
3277
|
a.value = r.selected, l.value = n.value;
|
|
3278
3278
|
};
|
|
3279
3279
|
return (r, i) => (g(), k("div", null, [
|
|
3280
|
-
e.mode === "display" ? (g(), k(
|
|
3280
|
+
e.mode === "display" ? (g(), k(X, { key: 0 }, [
|
|
3281
3281
|
y("span", fa, B(l.value ? new Date(n.value).toLocaleDateString() : ""), 1),
|
|
3282
3282
|
y("label", null, B(e.label), 1)
|
|
3283
|
-
], 64)) : (g(), k(
|
|
3284
|
-
|
|
3283
|
+
], 64)) : (g(), k(X, { key: 1 }, [
|
|
3284
|
+
_(y("input", {
|
|
3285
3285
|
id: e.uuid,
|
|
3286
3286
|
ref: "date",
|
|
3287
3287
|
"onUpdate:modelValue": i[0] || (i[0] = (h) => n.value = h),
|
|
@@ -3300,7 +3300,7 @@ const Go = { class: "aform_display-value" }, Wo = { key: 0 }, qo = ["innerHTML"]
|
|
|
3300
3300
|
[ge, n.value]
|
|
3301
3301
|
]),
|
|
3302
3302
|
y("label", { for: e.uuid }, B(e.label), 9, ha),
|
|
3303
|
-
|
|
3303
|
+
_(y("p", { innerHTML: t.value }, null, 8, pa), [
|
|
3304
3304
|
[xe, t.value]
|
|
3305
3305
|
]),
|
|
3306
3306
|
s.value ? (g(), me(rt, {
|
|
@@ -3350,7 +3350,7 @@ const xa = {
|
|
|
3350
3350
|
}, Da = {
|
|
3351
3351
|
key: 0,
|
|
3352
3352
|
class: "loading autocomplete-result"
|
|
3353
|
-
},
|
|
3353
|
+
}, $a = ["onClick"], Ca = ["innerHTML"], Sa = /* @__PURE__ */ ne({
|
|
3354
3354
|
__name: "ADropdown",
|
|
3355
3355
|
props: /* @__PURE__ */ be({
|
|
3356
3356
|
schema: {},
|
|
@@ -3371,7 +3371,7 @@ const xa = {
|
|
|
3371
3371
|
}),
|
|
3372
3372
|
emits: ["update:modelValue"],
|
|
3373
3373
|
setup(e) {
|
|
3374
|
-
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l =
|
|
3374
|
+
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l = Te(e, "modelValue"), a = A(l.value ?? ""), n = Tt({
|
|
3375
3375
|
activeItemIndex: null,
|
|
3376
3376
|
open: !1,
|
|
3377
3377
|
loading: !1,
|
|
@@ -3422,18 +3422,18 @@ const xa = {
|
|
|
3422
3422
|
return (m, p) => e.mode === "display" ? (g(), k("div", xa, [
|
|
3423
3423
|
y("span", ba, B(l.value ?? ""), 1),
|
|
3424
3424
|
y("label", null, B(e.label), 1),
|
|
3425
|
-
|
|
3425
|
+
_(y("p", {
|
|
3426
3426
|
class: "aform_error",
|
|
3427
3427
|
innerHTML: t.value
|
|
3428
3428
|
}, null, 8, ka), [
|
|
3429
3429
|
[xe, t.value]
|
|
3430
3430
|
])
|
|
3431
|
-
])) :
|
|
3431
|
+
])) : _((g(), k("div", {
|
|
3432
3432
|
key: 1,
|
|
3433
3433
|
class: ue(["autocomplete", { isOpen: n.open }])
|
|
3434
3434
|
}, [
|
|
3435
3435
|
y("div", Ma, [
|
|
3436
|
-
|
|
3436
|
+
_(y("input", {
|
|
3437
3437
|
"onUpdate:modelValue": p[0] || (p[0] = (u) => l.value = u),
|
|
3438
3438
|
type: "text",
|
|
3439
3439
|
disabled: e.mode === "read",
|
|
@@ -3449,21 +3449,21 @@ const xa = {
|
|
|
3449
3449
|
}, null, 40, Ia), [
|
|
3450
3450
|
[ge, l.value]
|
|
3451
3451
|
]),
|
|
3452
|
-
|
|
3453
|
-
n.loading ? (g(), k("li", Da, "Loading results...")) : (g(!0), k(
|
|
3452
|
+
_(y("ul", Ta, [
|
|
3453
|
+
n.loading ? (g(), k("li", Da, "Loading results...")) : (g(!0), k(X, { key: 1 }, we(n.results, (u, c) => (g(), k("li", {
|
|
3454
3454
|
key: u,
|
|
3455
3455
|
class: ue(["autocomplete-result", { "is-active": c === n.activeItemIndex }]),
|
|
3456
3456
|
onClick: se((M) => d(u), ["stop"])
|
|
3457
|
-
}, B(u), 11,
|
|
3457
|
+
}, B(u), 11, $a))), 128))
|
|
3458
3458
|
], 512), [
|
|
3459
3459
|
[xe, n.open]
|
|
3460
3460
|
]),
|
|
3461
3461
|
y("label", null, B(e.label), 1)
|
|
3462
3462
|
]),
|
|
3463
|
-
|
|
3463
|
+
_(y("p", {
|
|
3464
3464
|
class: "aform_error",
|
|
3465
3465
|
innerHTML: t.value
|
|
3466
|
-
}, null, 8,
|
|
3466
|
+
}, null, 8, Ca), [
|
|
3467
3467
|
[xe, t.value]
|
|
3468
3468
|
])
|
|
3469
3469
|
], 2)), [
|
|
@@ -3486,7 +3486,7 @@ const xa = {
|
|
|
3486
3486
|
}),
|
|
3487
3487
|
emits: ["update:modelValue"],
|
|
3488
3488
|
setup(e) {
|
|
3489
|
-
const t =
|
|
3489
|
+
const t = Te(e, "modelValue"), l = A(null), a = A(null), n = S(() => {
|
|
3490
3490
|
if (!l.value || !a.value) return 0;
|
|
3491
3491
|
const r = a.value.getTime() - l.value.getTime();
|
|
3492
3492
|
return r > 0 ? r : 0;
|
|
@@ -3508,10 +3508,10 @@ const xa = {
|
|
|
3508
3508
|
return [x && `${x}d`, f && `${f}h`, h && `${h}m`, i && `${i}s`].filter(Boolean).join(" ") || "0s";
|
|
3509
3509
|
});
|
|
3510
3510
|
return (r, i) => (g(), k("div", La, [
|
|
3511
|
-
e.mode === "display" || e.mode === "read" ? (g(), k(
|
|
3511
|
+
e.mode === "display" || e.mode === "read" ? (g(), k(X, { key: 0 }, [
|
|
3512
3512
|
y("span", Ra, B(d.value), 1),
|
|
3513
3513
|
y("label", null, B(e.label), 1)
|
|
3514
|
-
], 64)) : (g(), k(
|
|
3514
|
+
], 64)) : (g(), k(X, { key: 1 }, [
|
|
3515
3515
|
ze(rt, {
|
|
3516
3516
|
ref: "selectionRef",
|
|
3517
3517
|
"select-range": !0,
|
|
@@ -3552,7 +3552,7 @@ const xa = {
|
|
|
3552
3552
|
}),
|
|
3553
3553
|
emits: ["update:modelValue"],
|
|
3554
3554
|
setup(e) {
|
|
3555
|
-
const t = (u) => new Date(u).toLocaleDateString(), l = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), a =
|
|
3555
|
+
const t = (u) => new Date(u).toLocaleDateString(), l = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), a = Te(e, "modelValue"), n = A(a.value.start_date ? new Date(a.value.start_date) : null), o = A(a.value.end_date ? new Date(a.value.end_date) : null), s = A(!1), d = A(null);
|
|
3556
3556
|
ot(d, () => s.value = !1);
|
|
3557
3557
|
const r = () => {
|
|
3558
3558
|
e.mode !== "read" && (s.value = !0);
|
|
@@ -3580,10 +3580,10 @@ const xa = {
|
|
|
3580
3580
|
},
|
|
3581
3581
|
{ deep: !0 }
|
|
3582
3582
|
), (u, c) => (g(), k("div", Na, [
|
|
3583
|
-
e.mode === "display" ? (g(), k(
|
|
3583
|
+
e.mode === "display" ? (g(), k(X, { key: 0 }, [
|
|
3584
3584
|
y("span", Oa, B(f.value), 1),
|
|
3585
3585
|
y("label", null, B(e.label), 1)
|
|
3586
|
-
], 64)) : (g(), k(
|
|
3586
|
+
], 64)) : (g(), k(X, { key: 1 }, [
|
|
3587
3587
|
y("input", {
|
|
3588
3588
|
id: e.uuid,
|
|
3589
3589
|
class: "adate-input aform_input-field",
|
|
@@ -3595,7 +3595,7 @@ const xa = {
|
|
|
3595
3595
|
onClick: r
|
|
3596
3596
|
}, null, 8, Za),
|
|
3597
3597
|
y("label", { for: e.uuid }, B(e.label), 9, Ua),
|
|
3598
|
-
|
|
3598
|
+
_(y("p", { innerHTML: l.value }, null, 8, Ga), [
|
|
3599
3599
|
[xe, l.value]
|
|
3600
3600
|
]),
|
|
3601
3601
|
s.value ? (g(), me(rt, {
|
|
@@ -3613,10 +3613,10 @@ const xa = {
|
|
|
3613
3613
|
}), qa = /* @__PURE__ */ ke(Wa, [["__scopeId", "data-v-b5838478"]]), ja = { class: "aform" }, za = {
|
|
3614
3614
|
key: 0,
|
|
3615
3615
|
class: "aform-nested-section"
|
|
3616
|
-
},
|
|
3616
|
+
}, _a = {
|
|
3617
3617
|
key: 0,
|
|
3618
3618
|
class: "aform-nested-label"
|
|
3619
|
-
},
|
|
3619
|
+
}, Xa = /* @__PURE__ */ ne({
|
|
3620
3620
|
__name: "AForm",
|
|
3621
3621
|
props: /* @__PURE__ */ be({
|
|
3622
3622
|
schema: {},
|
|
@@ -3628,7 +3628,7 @@ const xa = {
|
|
|
3628
3628
|
}),
|
|
3629
3629
|
emits: /* @__PURE__ */ be(["update:schema", "update:data"], ["update:data"]),
|
|
3630
3630
|
setup(e, { emit: t }) {
|
|
3631
|
-
const l = t, a =
|
|
3631
|
+
const l = t, a = Te(e, "data"), n = (b) => (b.kind === "link" || b.kind === "fieldset") && "schema" in b && Array.isArray(b.schema) && b.schema.length > 0, o = A({});
|
|
3632
3632
|
te(
|
|
3633
3633
|
() => a.value,
|
|
3634
3634
|
(b) => {
|
|
@@ -3655,7 +3655,7 @@ const xa = {
|
|
|
3655
3655
|
return m || i.value;
|
|
3656
3656
|
}
|
|
3657
3657
|
const f = A([]);
|
|
3658
|
-
|
|
3658
|
+
$t(() => {
|
|
3659
3659
|
e.schema && f.value.length !== e.schema.length && (f.value = e.schema.map((b, m) => S({
|
|
3660
3660
|
get() {
|
|
3661
3661
|
return a.value?.[e.schema[m].fieldname];
|
|
@@ -3668,9 +3668,9 @@ const xa = {
|
|
|
3668
3668
|
});
|
|
3669
3669
|
const x = S(() => f.value);
|
|
3670
3670
|
return (b, m) => (g(), k("form", ja, [
|
|
3671
|
-
(g(!0), k(
|
|
3671
|
+
(g(!0), k(X, null, we(e.schema, (p, u) => (g(), k(X, { key: u }, [
|
|
3672
3672
|
n(p) ? (g(), k("div", za, [
|
|
3673
|
-
p.label && p.kind !== "fieldset" ? (g(), k("h4",
|
|
3673
|
+
p.label && p.kind !== "fieldset" ? (g(), k("h4", _a, B(p.label), 1)) : W("", !0),
|
|
3674
3674
|
(g(), me(Ze(p.component ?? "AForm"), {
|
|
3675
3675
|
data: o.value[p.fieldname],
|
|
3676
3676
|
mode: h(p),
|
|
@@ -3693,7 +3693,7 @@ const xa = {
|
|
|
3693
3693
|
], 64))), 128))
|
|
3694
3694
|
]));
|
|
3695
3695
|
}
|
|
3696
|
-
}), vn = /* @__PURE__ */ ke(
|
|
3696
|
+
}), vn = /* @__PURE__ */ ke(Xa, [["__scopeId", "data-v-039be29e"]]), Ya = /* @__PURE__ */ ne({
|
|
3697
3697
|
__name: "CollapseButton",
|
|
3698
3698
|
props: {
|
|
3699
3699
|
collapsed: { type: Boolean }
|
|
@@ -3703,7 +3703,7 @@ const xa = {
|
|
|
3703
3703
|
class: ue(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
|
|
3704
3704
|
}, "×", 2));
|
|
3705
3705
|
}
|
|
3706
|
-
}),
|
|
3706
|
+
}), Ka = /* @__PURE__ */ ke(Ya, [["__scopeId", "data-v-6f1c1b45"]]), Ja = /* @__PURE__ */ ne({
|
|
3707
3707
|
__name: "AFieldset",
|
|
3708
3708
|
props: {
|
|
3709
3709
|
schema: {},
|
|
@@ -3724,13 +3724,13 @@ const xa = {
|
|
|
3724
3724
|
onSubmit: o
|
|
3725
3725
|
}, [
|
|
3726
3726
|
kt(B(e.label) + " ", 1),
|
|
3727
|
-
e.collapsible ? (g(), me(
|
|
3727
|
+
e.collapsible ? (g(), me(Ka, {
|
|
3728
3728
|
key: 0,
|
|
3729
3729
|
collapsed: l.value
|
|
3730
3730
|
}, null, 8, ["collapsed"])) : W("", !0)
|
|
3731
3731
|
], 32)) : W("", !0),
|
|
3732
|
-
|
|
3733
|
-
|
|
3732
|
+
Ie(s.$slots, "default", { collapsed: l.value }, () => [
|
|
3733
|
+
_(ze(vn, {
|
|
3734
3734
|
data: a.value,
|
|
3735
3735
|
"onUpdate:data": d[0] || (d[0] = (r) => a.value = r),
|
|
3736
3736
|
schema: n.value,
|
|
@@ -3769,22 +3769,22 @@ const xa = {
|
|
|
3769
3769
|
return `${s} ${s === 1 ? "file" : "files"}`;
|
|
3770
3770
|
});
|
|
3771
3771
|
return n((s) => s), (s, d) => (g(), k("div", es, [
|
|
3772
|
-
e.mode === "display" ? (g(), k(
|
|
3772
|
+
e.mode === "display" ? (g(), k(X, { key: 0 }, [
|
|
3773
3773
|
P(t) ? (g(), k("div", ts, [
|
|
3774
3774
|
y("p", null, [
|
|
3775
3775
|
y("b", null, B(o.value), 1)
|
|
3776
3776
|
]),
|
|
3777
|
-
(g(!0), k(
|
|
3777
|
+
(g(!0), k(X, null, we(P(t), (r) => (g(), k("li", {
|
|
3778
3778
|
key: r.name
|
|
3779
3779
|
}, B(r.name), 1))), 128))
|
|
3780
3780
|
])) : (g(), k("span", ns, "No file selected"))
|
|
3781
|
-
], 64)) : (g(), k(
|
|
3781
|
+
], 64)) : (g(), k(X, { key: 1 }, [
|
|
3782
3782
|
P(t) ? (g(), k("div", ls, [
|
|
3783
3783
|
y("p", null, [
|
|
3784
3784
|
d[2] || (d[2] = kt(" You have selected: ", -1)),
|
|
3785
3785
|
y("b", null, B(o.value), 1)
|
|
3786
3786
|
]),
|
|
3787
|
-
(g(!0), k(
|
|
3787
|
+
(g(!0), k(X, null, we(P(t), (r) => (g(), k("li", {
|
|
3788
3788
|
key: r.name
|
|
3789
3789
|
}, B(r.name), 1))), 128))
|
|
3790
3790
|
])) : W("", !0),
|
|
@@ -3840,7 +3840,7 @@ const xa = {
|
|
|
3840
3840
|
}),
|
|
3841
3841
|
emits: ["update:modelValue"],
|
|
3842
3842
|
setup(e) {
|
|
3843
|
-
const t =
|
|
3843
|
+
const t = Te(e, "modelValue"), l = S(() => {
|
|
3844
3844
|
const I = t.value?.id;
|
|
3845
3845
|
return I != null && I !== "";
|
|
3846
3846
|
}), a = S(() => l.value ? e.formatter ? e.formatter(t.value) : t.value.displayText ?? String(t.value.id) : "—"), n = A(l.value ? a.value : ""), o = A(!1), s = A(!1), d = A([]), r = A(null), i = wt("aformLinkNavigator", null), h = wt("aformLinkResolver", null);
|
|
@@ -3889,16 +3889,16 @@ const xa = {
|
|
|
3889
3889
|
}, M = () => {
|
|
3890
3890
|
const I = d.value.length;
|
|
3891
3891
|
I && (r.value = r.value === null ? 0 : (r.value + 1) % I);
|
|
3892
|
-
},
|
|
3892
|
+
}, $ = () => {
|
|
3893
3893
|
d.value.length && (r.value === null || r.value === 0 ? r.value = null : r.value -= 1);
|
|
3894
3894
|
}, D = () => {
|
|
3895
3895
|
r.value !== null && d.value[r.value] && c(d.value[r.value]);
|
|
3896
3896
|
};
|
|
3897
3897
|
return (I, V) => (g(), k("div", is, [
|
|
3898
|
-
e.mode === "display" ? (g(), k("span", us, B(a.value), 1)) : (g(), k(
|
|
3899
|
-
|
|
3898
|
+
e.mode === "display" ? (g(), k("span", us, B(a.value), 1)) : (g(), k(X, { key: 1 }, [
|
|
3899
|
+
_((g(), k("div", ds, [
|
|
3900
3900
|
y("div", cs, [
|
|
3901
|
-
|
|
3901
|
+
_(y("input", {
|
|
3902
3902
|
"onUpdate:modelValue": V[0] || (V[0] = (O) => n.value = O),
|
|
3903
3903
|
type: "text",
|
|
3904
3904
|
class: "aform_input-field",
|
|
@@ -3907,7 +3907,7 @@ const xa = {
|
|
|
3907
3907
|
onFocus: p,
|
|
3908
3908
|
onKeydown: [
|
|
3909
3909
|
ve(se(M, ["prevent"]), ["down"]),
|
|
3910
|
-
ve(se(
|
|
3910
|
+
ve(se($, ["prevent"]), ["up"]),
|
|
3911
3911
|
ve(se(D, ["prevent"]), ["enter"]),
|
|
3912
3912
|
ve(b, ["esc"]),
|
|
3913
3913
|
ve(b, ["tab"])
|
|
@@ -3926,7 +3926,7 @@ const xa = {
|
|
|
3926
3926
|
], 40, fs)) : W("", !0)
|
|
3927
3927
|
]),
|
|
3928
3928
|
o.value ? (g(), k("ul", ms, [
|
|
3929
|
-
s.value ? (g(), k("li", hs, "Loading…")) : (g(!0), k(
|
|
3929
|
+
s.value ? (g(), k("li", hs, "Loading…")) : (g(!0), k(X, { key: 1 }, we(d.value, (O, R) => (g(), k("li", {
|
|
3930
3930
|
key: String(O.id),
|
|
3931
3931
|
class: ue(["autocomplete-result", { "is-active": R === r.value }]),
|
|
3932
3932
|
onMousedown: se((F) => c(O), ["prevent"])
|
|
@@ -3957,13 +3957,13 @@ const xa = {
|
|
|
3957
3957
|
}),
|
|
3958
3958
|
emits: ["update:modelValue"],
|
|
3959
3959
|
setup(e) {
|
|
3960
|
-
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l =
|
|
3960
|
+
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l = Te(e, "modelValue");
|
|
3961
3961
|
return (a, n) => (g(), k("div", xs, [
|
|
3962
|
-
e.mode === "display" ? (g(), k(
|
|
3962
|
+
e.mode === "display" ? (g(), k(X, { key: 0 }, [
|
|
3963
3963
|
y("span", bs, B(l.value ?? ""), 1),
|
|
3964
3964
|
y("label", ks, B(e.label), 1)
|
|
3965
|
-
], 64)) : (g(), k(
|
|
3966
|
-
|
|
3965
|
+
], 64)) : (g(), k(X, { key: 1 }, [
|
|
3966
|
+
_(y("input", {
|
|
3967
3967
|
id: e.uuid,
|
|
3968
3968
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => l.value = o),
|
|
3969
3969
|
class: "aform_input-field",
|
|
@@ -3977,7 +3977,7 @@ const xa = {
|
|
|
3977
3977
|
class: "aform_field-label",
|
|
3978
3978
|
for: e.uuid
|
|
3979
3979
|
}, B(e.label), 9, Is),
|
|
3980
|
-
|
|
3980
|
+
_(y("p", {
|
|
3981
3981
|
class: "aform_error",
|
|
3982
3982
|
innerHTML: t.value
|
|
3983
3983
|
}, null, 8, Ts), [
|
|
@@ -3987,17 +3987,17 @@ const xa = {
|
|
|
3987
3987
|
]));
|
|
3988
3988
|
}
|
|
3989
3989
|
});
|
|
3990
|
-
function
|
|
3990
|
+
function $s(e) {
|
|
3991
3991
|
try {
|
|
3992
3992
|
return yt(e);
|
|
3993
3993
|
} catch {
|
|
3994
3994
|
return;
|
|
3995
3995
|
}
|
|
3996
3996
|
}
|
|
3997
|
-
function
|
|
3997
|
+
function Cs(e) {
|
|
3998
3998
|
const t = e.value;
|
|
3999
3999
|
if (!t) return;
|
|
4000
|
-
const l =
|
|
4000
|
+
const l = $s(t);
|
|
4001
4001
|
if (l) {
|
|
4002
4002
|
const n = e.instance?.locale;
|
|
4003
4003
|
return l(n);
|
|
@@ -4023,7 +4023,7 @@ function As(e, t, l) {
|
|
|
4023
4023
|
return a.slice(0, t.length);
|
|
4024
4024
|
}
|
|
4025
4025
|
function Ls(e, t) {
|
|
4026
|
-
const l =
|
|
4026
|
+
const l = Cs(t);
|
|
4027
4027
|
if (!l) return;
|
|
4028
4028
|
const a = "#", n = e.value, o = Ss(n, a);
|
|
4029
4029
|
if (o) {
|
|
@@ -4050,13 +4050,13 @@ const Rs = { class: "aform_form-element" }, Es = { class: "aform_display-value"
|
|
|
4050
4050
|
}),
|
|
4051
4051
|
emits: ["update:modelValue"],
|
|
4052
4052
|
setup(e) {
|
|
4053
|
-
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l = A(!0), a =
|
|
4053
|
+
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l = A(!0), a = Te(e, "modelValue");
|
|
4054
4054
|
return (n, o) => (g(), k("div", Rs, [
|
|
4055
|
-
e.mode === "display" ? (g(), k(
|
|
4055
|
+
e.mode === "display" ? (g(), k(X, { key: 0 }, [
|
|
4056
4056
|
y("span", Es, B(a.value ?? ""), 1),
|
|
4057
4057
|
y("label", Hs, B(e.label), 1)
|
|
4058
|
-
], 64)) : (g(), k(
|
|
4059
|
-
|
|
4058
|
+
], 64)) : (g(), k(X, { key: 1 }, [
|
|
4059
|
+
_(y("input", {
|
|
4060
4060
|
id: e.uuid,
|
|
4061
4061
|
"onUpdate:modelValue": o[0] || (o[0] = (s) => a.value = s),
|
|
4062
4062
|
class: "aform_input-field",
|
|
@@ -4071,7 +4071,7 @@ const Rs = { class: "aform_form-element" }, Es = { class: "aform_display-value"
|
|
|
4071
4071
|
class: "aform_field-label",
|
|
4072
4072
|
for: e.uuid
|
|
4073
4073
|
}, B(e.label), 9, Bs),
|
|
4074
|
-
|
|
4074
|
+
_(y("p", {
|
|
4075
4075
|
class: "aform_error",
|
|
4076
4076
|
innerHTML: t.value
|
|
4077
4077
|
}, null, 8, Fs), [
|
|
@@ -4098,13 +4098,13 @@ const Rs = { class: "aform_form-element" }, Es = { class: "aform_display-value"
|
|
|
4098
4098
|
}),
|
|
4099
4099
|
emits: ["update:modelValue"],
|
|
4100
4100
|
setup(e) {
|
|
4101
|
-
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l =
|
|
4101
|
+
const t = S(() => e.errors?.length ? e.errors.join("; ") : e.validation.errorMessage ?? ""), l = Te(e, "modelValue");
|
|
4102
4102
|
return (a, n) => (g(), k("div", Ns, [
|
|
4103
|
-
e.mode === "display" ? (g(), k(
|
|
4103
|
+
e.mode === "display" ? (g(), k(X, { key: 0 }, [
|
|
4104
4104
|
y("span", Os, B(l.value ?? ""), 1),
|
|
4105
4105
|
y("label", Zs, B(e.label), 1)
|
|
4106
|
-
], 64)) : (g(), k(
|
|
4107
|
-
|
|
4106
|
+
], 64)) : (g(), k(X, { key: 1 }, [
|
|
4107
|
+
_(y("textarea", {
|
|
4108
4108
|
id: e.uuid,
|
|
4109
4109
|
"onUpdate:modelValue": n[0] || (n[0] = (o) => l.value = o),
|
|
4110
4110
|
class: "aform_input-field aform_textarea",
|
|
@@ -4117,7 +4117,7 @@ const Rs = { class: "aform_form-element" }, Es = { class: "aform_display-value"
|
|
|
4117
4117
|
class: "aform_field-label",
|
|
4118
4118
|
for: e.uuid
|
|
4119
4119
|
}, B(e.label), 9, Gs),
|
|
4120
|
-
|
|
4120
|
+
_(y("p", {
|
|
4121
4121
|
class: "aform_error",
|
|
4122
4122
|
innerHTML: t.value
|
|
4123
4123
|
}, null, 8, Ws), [
|
|
@@ -4126,7 +4126,7 @@ const Rs = { class: "aform_form-element" }, Es = { class: "aform_display-value"
|
|
|
4126
4126
|
], 64))
|
|
4127
4127
|
]));
|
|
4128
4128
|
}
|
|
4129
|
-
}), js = { class: "login-container" }, zs = { class: "account-container" },
|
|
4129
|
+
}), js = { class: "login-container" }, zs = { class: "account-container" }, _s = { class: "account-header" }, Xs = { id: "account-title" }, Ys = { id: "account-subtitle" }, Ks = { class: "login-form-container" }, Js = { class: "login-form-email aform_form-element" }, Qs = ["disabled"], er = { class: "login-form-password aform_form-element" }, tr = ["disabled"], nr = ["disabled"], lr = {
|
|
4130
4130
|
key: 0,
|
|
4131
4131
|
class: "material-symbols-outlined loading-icon"
|
|
4132
4132
|
}, or = /* @__PURE__ */ ne({
|
|
@@ -4148,19 +4148,19 @@ const Rs = { class: "aform_form-element" }, Es = { class: "aform_display-value"
|
|
|
4148
4148
|
return (r, i) => (g(), k("div", js, [
|
|
4149
4149
|
y("div", null, [
|
|
4150
4150
|
y("div", zs, [
|
|
4151
|
-
y("div",
|
|
4152
|
-
y("h1",
|
|
4153
|
-
y("p",
|
|
4151
|
+
y("div", _s, [
|
|
4152
|
+
y("h1", Xs, B(e.headerTitle), 1),
|
|
4153
|
+
y("p", Ys, B(e.headerSubtitle), 1)
|
|
4154
4154
|
]),
|
|
4155
4155
|
y("form", { onSubmit: d }, [
|
|
4156
|
-
y("div",
|
|
4156
|
+
y("div", Ks, [
|
|
4157
4157
|
y("div", Js, [
|
|
4158
4158
|
i[2] || (i[2] = y("label", {
|
|
4159
4159
|
id: "login-email",
|
|
4160
4160
|
for: "email",
|
|
4161
4161
|
class: "aform_field-label"
|
|
4162
4162
|
}, "Email", -1)),
|
|
4163
|
-
|
|
4163
|
+
_(y("input", {
|
|
4164
4164
|
id: "email",
|
|
4165
4165
|
"onUpdate:modelValue": i[0] || (i[0] = (h) => a.value = h),
|
|
4166
4166
|
class: "aform_input-field",
|
|
@@ -4181,7 +4181,7 @@ const Rs = { class: "aform_form-element" }, Es = { class: "aform_display-value"
|
|
|
4181
4181
|
for: "password",
|
|
4182
4182
|
class: "aform_field-label"
|
|
4183
4183
|
}, "Password", -1)),
|
|
4184
|
-
|
|
4184
|
+
_(y("input", {
|
|
4185
4185
|
id: "password",
|
|
4186
4186
|
"onUpdate:modelValue": i[1] || (i[1] = (h) => n.value = h),
|
|
4187
4187
|
class: "aform_input-field",
|
|
@@ -4209,9 +4209,18 @@ const Rs = { class: "aform_form-element" }, Es = { class: "aform_display-value"
|
|
|
4209
4209
|
])
|
|
4210
4210
|
]));
|
|
4211
4211
|
}
|
|
4212
|
-
}),
|
|
4213
|
-
function ir(e) {
|
|
4214
|
-
|
|
4212
|
+
}), vr = /* @__PURE__ */ ke(or, [["__scopeId", "data-v-2c0f0634"]]), ar = {}, sr = { class: "aform-loading" }, rr = { class: "aform-loading__label" };
|
|
4213
|
+
function ir(e, t) {
|
|
4214
|
+
return g(), k("div", sr, [
|
|
4215
|
+
y("div", rr, [
|
|
4216
|
+
Ie(e.$slots, "default", {}, void 0, !0)
|
|
4217
|
+
]),
|
|
4218
|
+
t[0] || (t[0] = y("div", { class: "aform-loading__bar" }, null, -1))
|
|
4219
|
+
]);
|
|
4220
|
+
}
|
|
4221
|
+
const ur = /* @__PURE__ */ ke(ar, [["render", ir], ["__scopeId", "data-v-274f5ba3"]]);
|
|
4222
|
+
function fr(e) {
|
|
4223
|
+
e.use(Mo), e.component("ACheckbox", Ro), e.component("ADate", wa), e.component("ADropdown", Aa), e.component("ADatePicker", dn), e.component("ADateTime", bt), e.component("ADateRange", qa), e.component("ADateSelection", rt), e.component("AFieldset", Qa), e.component("AFileAttach", rs), e.component("AForm", vn), e.component("AFormLink", ys), e.component("ANumericInput", Ds), e.component("ATextInput", Ps), e.component("ATextarea", qs), e.component("ADuration", Pa), e.component("AFormLoading", ur);
|
|
4215
4224
|
}
|
|
4216
4225
|
export {
|
|
4217
4226
|
Ro as ACheckbox,
|
|
@@ -4226,11 +4235,12 @@ export {
|
|
|
4226
4235
|
rs as AFileAttach,
|
|
4227
4236
|
vn as AForm,
|
|
4228
4237
|
ys as AFormLink,
|
|
4238
|
+
ur as AFormLoading,
|
|
4229
4239
|
Ds as ANumericInput,
|
|
4230
4240
|
Ps as ATextInput,
|
|
4231
4241
|
qs as ATextarea,
|
|
4232
|
-
|
|
4242
|
+
vr as Login,
|
|
4233
4243
|
yt as deserializeFunction,
|
|
4234
|
-
|
|
4244
|
+
fr as install
|
|
4235
4245
|
};
|
|
4236
4246
|
//# sourceMappingURL=aform.js.map
|