@stonecrop/aform 0.11.9 → 0.11.10
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 +22 -0
- package/dist/aform.js +554 -548
- package/dist/aform.js.map +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/src/directives/mask.d.ts.map +1 -1
- package/dist/src/directives/mask.js +5 -7
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -0
- package/dist/src/types/index.d.ts +6 -0
- package/dist/src/types/index.d.ts.map +1 -1
- package/dist/src/utils/deserialize.d.ts +16 -0
- package/dist/src/utils/deserialize.d.ts.map +1 -0
- package/dist/src/utils/deserialize.js +18 -0
- package/package.json +4 -4
- package/src/components/AForm.vue +2 -2
- package/src/components/form/AFormLink.vue +6 -2
- package/src/directives/mask.ts +7 -8
- package/src/index.ts +1 -0
- package/src/types/index.ts +7 -0
- package/src/utils/deserialize.ts +18 -0
package/dist/aform.js
CHANGED
|
@@ -1,22 +1,25 @@
|
|
|
1
|
-
import { defineComponent as te, useTemplateRef as ve, ref as S, computed as T, openBlock as p, createElementBlock as y, unref as V, normalizeClass as ae, normalizeStyle as Ie, createBlock as me, resolveDynamicComponent as
|
|
2
|
-
import { defineStore as
|
|
3
|
-
import './assets/index.css';function cn(e
|
|
1
|
+
import { defineComponent as te, useTemplateRef as ve, ref as S, computed as T, openBlock as p, createElementBlock as y, unref as V, normalizeClass as ae, normalizeStyle as Ie, createBlock as me, resolveDynamicComponent as Fe, mergeProps as dt, toDisplayString as Z, createElementVNode as w, withModifiers as he, withDirectives as j, Fragment as X, renderList as de, vShow as Ae, createCommentVNode as q, renderSlot as ge, createTextVNode as Dt, onMounted as $e, watch as oe, onBeforeUnmount as an, nextTick as ft, toValue as A, shallowRef as ue, getCurrentScope as vt, onScopeDispose as mt, reactive as sn, vModelText as be, vModelCheckbox as rn, vModelSelect as Cn, getCurrentInstance as pt, watchEffect as ht, useCssVars as En, onUnmounted as An, useModel as Me, createVNode as At, withCtx as $t, mergeModels as xe, isRef as $n, toRefs as Tn, customRef as St, toRef as un, readonly as Rt, resolveComponent as Dn, withKeys as ye, inject as Sn } from "vue";
|
|
2
|
+
import { defineStore as Rn } from "pinia";
|
|
3
|
+
import './assets/index.css';function cn(e) {
|
|
4
|
+
return Function(`"use strict"; return (${e})`)();
|
|
5
|
+
}
|
|
6
|
+
function dn(e, t) {
|
|
4
7
|
return vt() ? (mt(e, t), !0) : !1;
|
|
5
8
|
}
|
|
6
|
-
const
|
|
9
|
+
const Ln = typeof window < "u" && typeof document < "u";
|
|
7
10
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
8
|
-
const
|
|
11
|
+
const Vn = (e) => e != null, Hn = Object.prototype.toString, Pn = (e) => Hn.call(e) === "[object Object]", _n = () => {
|
|
9
12
|
};
|
|
10
13
|
function st(e) {
|
|
11
14
|
return Array.isArray(e) ? e : [e];
|
|
12
15
|
}
|
|
13
|
-
function
|
|
16
|
+
function On(e, t, o) {
|
|
14
17
|
return oe(e, t, {
|
|
15
18
|
...o,
|
|
16
19
|
immediate: !0
|
|
17
20
|
});
|
|
18
21
|
}
|
|
19
|
-
const
|
|
22
|
+
const ze = Ln ? window : void 0;
|
|
20
23
|
function We(e) {
|
|
21
24
|
var t;
|
|
22
25
|
const o = A(e);
|
|
@@ -27,24 +30,24 @@ function Qe(...e) {
|
|
|
27
30
|
const n = st(A(e[0])).filter((s) => s != null);
|
|
28
31
|
return n.every((s) => typeof s != "string") ? n : void 0;
|
|
29
32
|
});
|
|
30
|
-
return
|
|
33
|
+
return On(() => {
|
|
31
34
|
var n, s;
|
|
32
35
|
return [
|
|
33
|
-
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => We(r))) !== null && n !== void 0 ? n : [
|
|
36
|
+
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => We(r))) !== null && n !== void 0 ? n : [ze].filter((r) => r != null),
|
|
34
37
|
st(A(o.value ? e[1] : e[0])),
|
|
35
38
|
st(V(o.value ? e[2] : e[1])),
|
|
36
39
|
A(o.value ? e[3] : e[2])
|
|
37
40
|
];
|
|
38
41
|
}, ([n, s, r, a], l, i) => {
|
|
39
42
|
if (!n?.length || !s?.length || !r?.length) return;
|
|
40
|
-
const u =
|
|
43
|
+
const u = Pn(a) ? { ...a } : a, d = n.flatMap((m) => s.flatMap((b) => r.map((h) => t(m, b, h, u))));
|
|
41
44
|
i(() => {
|
|
42
45
|
d.forEach((m) => m());
|
|
43
46
|
});
|
|
44
47
|
}, { flush: "post" });
|
|
45
48
|
}
|
|
46
49
|
// @__NO_SIDE_EFFECTS__
|
|
47
|
-
function
|
|
50
|
+
function Fn() {
|
|
48
51
|
const e = ue(!1), t = pt();
|
|
49
52
|
return t && $e(() => {
|
|
50
53
|
e.value = !0;
|
|
@@ -52,16 +55,16 @@ function On() {
|
|
|
52
55
|
}
|
|
53
56
|
// @__NO_SIDE_EFFECTS__
|
|
54
57
|
function Bn(e) {
|
|
55
|
-
const t = /* @__PURE__ */
|
|
58
|
+
const t = /* @__PURE__ */ Fn();
|
|
56
59
|
return T(() => (t.value, !!e()));
|
|
57
60
|
}
|
|
58
|
-
function
|
|
59
|
-
const { window: n =
|
|
61
|
+
function Zn(e, t, o = {}) {
|
|
62
|
+
const { window: n = ze, ...s } = o;
|
|
60
63
|
let r;
|
|
61
64
|
const a = /* @__PURE__ */ Bn(() => n && "MutationObserver" in n), l = () => {
|
|
62
65
|
r && (r.disconnect(), r = void 0);
|
|
63
66
|
}, i = oe(T(() => {
|
|
64
|
-
const m = st(A(e)).map(We).filter(
|
|
67
|
+
const m = st(A(e)).map(We).filter(Vn);
|
|
65
68
|
return new Set(m);
|
|
66
69
|
}), (m) => {
|
|
67
70
|
l(), a.value && m.size && (r = new MutationObserver(t), m.forEach((b) => r.observe(b, s)));
|
|
@@ -71,22 +74,22 @@ function Fn(e, t, o = {}) {
|
|
|
71
74
|
}), u = () => r?.takeRecords(), d = () => {
|
|
72
75
|
i(), l();
|
|
73
76
|
};
|
|
74
|
-
return
|
|
77
|
+
return dn(d), {
|
|
75
78
|
isSupported: a,
|
|
76
79
|
stop: d,
|
|
77
80
|
takeRecords: u
|
|
78
81
|
};
|
|
79
82
|
}
|
|
80
|
-
function
|
|
81
|
-
const { window: n =
|
|
82
|
-
if (!n || !s) return
|
|
83
|
+
function Nn(e, t, o = {}) {
|
|
84
|
+
const { window: n = ze, document: s = n?.document, flush: r = "sync" } = o;
|
|
85
|
+
if (!n || !s) return _n;
|
|
83
86
|
let a;
|
|
84
87
|
const l = (d) => {
|
|
85
88
|
a?.(), a = d;
|
|
86
89
|
}, i = ht(() => {
|
|
87
90
|
const d = We(e);
|
|
88
91
|
if (d) {
|
|
89
|
-
const { stop: m } =
|
|
92
|
+
const { stop: m } = Zn(s, (b) => {
|
|
90
93
|
b.map((h) => [...h.removedNodes]).flat().some((h) => h === d || h.contains(d)) && t(b);
|
|
91
94
|
}, {
|
|
92
95
|
window: n,
|
|
@@ -98,12 +101,12 @@ function Zn(e, t, o = {}) {
|
|
|
98
101
|
}, { flush: r }), u = () => {
|
|
99
102
|
i(), l();
|
|
100
103
|
};
|
|
101
|
-
return
|
|
104
|
+
return dn(u), u;
|
|
102
105
|
}
|
|
103
106
|
// @__NO_SIDE_EFFECTS__
|
|
104
|
-
function
|
|
107
|
+
function Un(e = {}) {
|
|
105
108
|
var t;
|
|
106
|
-
const { window: o =
|
|
109
|
+
const { window: o = ze, deep: n = !0, triggerOnRemoval: s = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : o?.document, a = () => {
|
|
107
110
|
let u = r?.activeElement;
|
|
108
111
|
if (n)
|
|
109
112
|
for (var d; u?.shadowRoot; ) u = u == null || (d = u.shadowRoot) === null || d === void 0 ? void 0 : d.activeElement;
|
|
@@ -120,19 +123,19 @@ function Nn(e = {}) {
|
|
|
120
123
|
d.relatedTarget === null && i();
|
|
121
124
|
}, u), Qe(o, "focus", i, u);
|
|
122
125
|
}
|
|
123
|
-
return s &&
|
|
126
|
+
return s && Nn(l, i, { document: r }), i(), l;
|
|
124
127
|
}
|
|
125
|
-
const
|
|
128
|
+
const Wn = "focusin", Gn = "focusout", zn = ":focus-within";
|
|
126
129
|
function qn(e, t = {}) {
|
|
127
|
-
const { window: o =
|
|
128
|
-
if (!o || !(/* @__PURE__ */
|
|
130
|
+
const { window: o = ze } = t, n = T(() => We(e)), s = ue(!1), r = T(() => s.value);
|
|
131
|
+
if (!o || !(/* @__PURE__ */ Un(t)).value) return { focused: r };
|
|
129
132
|
const a = { passive: !0 };
|
|
130
|
-
return Qe(n,
|
|
133
|
+
return Qe(n, Wn, () => s.value = !0, a), Qe(n, Gn, () => {
|
|
131
134
|
var l, i, u;
|
|
132
|
-
return s.value = (l = (i = n.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i,
|
|
135
|
+
return s.value = (l = (i = n.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i, zn)) !== null && l !== void 0 ? l : !1;
|
|
133
136
|
}, a), { focused: r };
|
|
134
137
|
}
|
|
135
|
-
function
|
|
138
|
+
function Yn(e, { window: t = ze, scrollTarget: o } = {}) {
|
|
136
139
|
const n = S(!1), s = () => {
|
|
137
140
|
if (!t) return;
|
|
138
141
|
const r = t.document, a = We(e);
|
|
@@ -153,7 +156,7 @@ function zn(e, { window: t = qe, scrollTarget: o } = {}) {
|
|
|
153
156
|
}), n;
|
|
154
157
|
}
|
|
155
158
|
const Te = (e) => {
|
|
156
|
-
let t =
|
|
159
|
+
let t = Yn(e).value;
|
|
157
160
|
return t = t && e.offsetHeight > 0, t;
|
|
158
161
|
}, De = (e) => e.tabIndex >= 0, Wt = (e) => {
|
|
159
162
|
const t = e.target;
|
|
@@ -171,7 +174,7 @@ const Te = (e) => {
|
|
|
171
174
|
o && (t = o);
|
|
172
175
|
}
|
|
173
176
|
return t && (!De(t) || !Te(t)) ? Lt(t) : t;
|
|
174
|
-
},
|
|
177
|
+
}, Xn = (e) => {
|
|
175
178
|
const t = e.target;
|
|
176
179
|
let o;
|
|
177
180
|
if (t instanceof HTMLTableCellElement) {
|
|
@@ -204,7 +207,7 @@ const Te = (e) => {
|
|
|
204
207
|
o && (t = o);
|
|
205
208
|
}
|
|
206
209
|
return t && (!De(t) || !Te(t)) ? Vt(t) : t;
|
|
207
|
-
},
|
|
210
|
+
}, jn = (e) => {
|
|
208
211
|
const t = e.target;
|
|
209
212
|
let o;
|
|
210
213
|
if (t instanceof HTMLTableCellElement) {
|
|
@@ -221,13 +224,13 @@ const Te = (e) => {
|
|
|
221
224
|
}
|
|
222
225
|
}
|
|
223
226
|
return o && (!De(o) || !Te(o)) ? Lt(o) : o;
|
|
224
|
-
},
|
|
227
|
+
}, zt = (e) => {
|
|
225
228
|
const t = e.target;
|
|
226
229
|
return Ht(t);
|
|
227
230
|
}, Ht = (e) => {
|
|
228
231
|
let t;
|
|
229
232
|
return e.previousElementSibling ? t = e.previousElementSibling : t = e.parentElement?.previousElementSibling?.lastElementChild, t && (!De(t) || !Te(t)) ? Ht(t) : t;
|
|
230
|
-
},
|
|
233
|
+
}, qt = (e) => {
|
|
231
234
|
const t = e.target;
|
|
232
235
|
return Pt(t);
|
|
233
236
|
}, Pt = (e) => {
|
|
@@ -239,7 +242,7 @@ const Te = (e) => {
|
|
|
239
242
|
}, Xt = (e) => {
|
|
240
243
|
const t = e.target.parentElement?.lastElementChild;
|
|
241
244
|
return t && (!De(t) || !Te(t)) ? Ht(t) : t;
|
|
242
|
-
}, nt = ["alt", "control", "shift", "meta"],
|
|
245
|
+
}, nt = ["alt", "control", "shift", "meta"], Jn = {
|
|
243
246
|
ArrowUp: "up",
|
|
244
247
|
ArrowDown: "down",
|
|
245
248
|
ArrowLeft: "left",
|
|
@@ -254,19 +257,19 @@ const Te = (e) => {
|
|
|
254
257
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
255
258
|
},
|
|
256
259
|
"keydown.left": (e) => {
|
|
257
|
-
const t =
|
|
260
|
+
const t = zt(e);
|
|
258
261
|
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
259
262
|
},
|
|
260
263
|
"keydown.right": (e) => {
|
|
261
|
-
const t =
|
|
264
|
+
const t = qt(e);
|
|
262
265
|
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
263
266
|
},
|
|
264
267
|
"keydown.control.up": (e) => {
|
|
265
|
-
const t =
|
|
268
|
+
const t = Xn(e);
|
|
266
269
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
267
270
|
},
|
|
268
271
|
"keydown.control.down": (e) => {
|
|
269
|
-
const t =
|
|
272
|
+
const t = jn(e);
|
|
270
273
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
271
274
|
},
|
|
272
275
|
"keydown.control.left": (e) => {
|
|
@@ -300,11 +303,11 @@ const Te = (e) => {
|
|
|
300
303
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
301
304
|
},
|
|
302
305
|
"keydown.tab": (e) => {
|
|
303
|
-
const t =
|
|
306
|
+
const t = qt(e);
|
|
304
307
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
305
308
|
},
|
|
306
309
|
"keydown.shift.tab": (e) => {
|
|
307
|
-
const t =
|
|
310
|
+
const t = zt(e);
|
|
308
311
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
309
312
|
}
|
|
310
313
|
};
|
|
@@ -334,7 +337,7 @@ function _t(e) {
|
|
|
334
337
|
let i = [];
|
|
335
338
|
return a.selectors ? i = o(a) : l && (i = Array.from(l.children).filter((u) => De(u) && Te(u))), i;
|
|
336
339
|
}, s = (a) => (l) => {
|
|
337
|
-
const i =
|
|
340
|
+
const i = Jn[l.key] || l.key.toLowerCase();
|
|
338
341
|
if (nt.includes(i)) return;
|
|
339
342
|
const u = a.handlers || gt;
|
|
340
343
|
for (const d of Object.keys(u)) {
|
|
@@ -375,11 +378,11 @@ function _t(e) {
|
|
|
375
378
|
function Ot(e, t) {
|
|
376
379
|
return vt() ? (mt(e, t), !0) : !1;
|
|
377
380
|
}
|
|
378
|
-
const
|
|
381
|
+
const fn = typeof window < "u" && typeof document < "u";
|
|
379
382
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
380
|
-
const
|
|
383
|
+
const Qn = (e) => e != null, Kn = Object.prototype.toString, eo = (e) => Kn.call(e) === "[object Object]", Oe = () => {
|
|
381
384
|
};
|
|
382
|
-
function
|
|
385
|
+
function to(...e) {
|
|
383
386
|
if (e.length !== 1) return un(...e);
|
|
384
387
|
const t = e[0];
|
|
385
388
|
return typeof t == "function" ? Rt(St(() => ({
|
|
@@ -387,7 +390,7 @@ function eo(...e) {
|
|
|
387
390
|
set: Oe
|
|
388
391
|
}))) : S(t);
|
|
389
392
|
}
|
|
390
|
-
function
|
|
393
|
+
function no(e, t) {
|
|
391
394
|
function o(...n) {
|
|
392
395
|
return new Promise((s, r) => {
|
|
393
396
|
Promise.resolve(e(() => t.apply(this, n), {
|
|
@@ -399,7 +402,7 @@ function to(e, t) {
|
|
|
399
402
|
}
|
|
400
403
|
return o;
|
|
401
404
|
}
|
|
402
|
-
function
|
|
405
|
+
function oo(e, t = {}) {
|
|
403
406
|
let o, n, s = Oe;
|
|
404
407
|
const r = (l) => {
|
|
405
408
|
clearTimeout(l), s(), s = Oe;
|
|
@@ -419,15 +422,15 @@ function no(e, t = {}) {
|
|
|
419
422
|
function rt(e) {
|
|
420
423
|
return Array.isArray(e) ? e : [e];
|
|
421
424
|
}
|
|
422
|
-
function
|
|
425
|
+
function lo(e) {
|
|
423
426
|
return pt();
|
|
424
427
|
}
|
|
425
428
|
// @__NO_SIDE_EFFECTS__
|
|
426
|
-
function
|
|
427
|
-
return
|
|
429
|
+
function ao(e, t = 200, o = {}) {
|
|
430
|
+
return no(oo(t, o), e);
|
|
428
431
|
}
|
|
429
|
-
function
|
|
430
|
-
if (
|
|
432
|
+
function so(e, t = {}) {
|
|
433
|
+
if (!$n(e)) return Tn(e);
|
|
431
434
|
const o = Array.isArray(e.value) ? Array.from({ length: e.value.length }) : {};
|
|
432
435
|
for (const n in e.value) o[n] = St(() => ({
|
|
433
436
|
get() {
|
|
@@ -450,16 +453,16 @@ function ao(e, t = {}) {
|
|
|
450
453
|
}));
|
|
451
454
|
return o;
|
|
452
455
|
}
|
|
453
|
-
function
|
|
454
|
-
|
|
456
|
+
function ro(e, t = !0, o) {
|
|
457
|
+
lo() ? $e(e, o) : t ? e() : ft(e);
|
|
455
458
|
}
|
|
456
|
-
function
|
|
459
|
+
function io(e, t, o) {
|
|
457
460
|
return oe(e, t, {
|
|
458
461
|
...o,
|
|
459
462
|
immediate: !0
|
|
460
463
|
});
|
|
461
464
|
}
|
|
462
|
-
const et =
|
|
465
|
+
const et = fn ? window : void 0;
|
|
463
466
|
function ke(e) {
|
|
464
467
|
var t;
|
|
465
468
|
const o = A(e);
|
|
@@ -470,7 +473,7 @@ function He(...e) {
|
|
|
470
473
|
const n = rt(A(e[0])).filter((s) => s != null);
|
|
471
474
|
return n.every((s) => typeof s != "string") ? n : void 0;
|
|
472
475
|
});
|
|
473
|
-
return
|
|
476
|
+
return io(() => {
|
|
474
477
|
var n, s;
|
|
475
478
|
return [
|
|
476
479
|
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => ke(r))) !== null && n !== void 0 ? n : [et].filter((r) => r != null),
|
|
@@ -480,7 +483,7 @@ function He(...e) {
|
|
|
480
483
|
];
|
|
481
484
|
}, ([n, s, r, a], l, i) => {
|
|
482
485
|
if (!n?.length || !s?.length || !r?.length) return;
|
|
483
|
-
const u =
|
|
486
|
+
const u = eo(a) ? { ...a } : a, d = n.flatMap((m) => s.flatMap((b) => r.map((h) => t(m, b, h, u))));
|
|
484
487
|
i(() => {
|
|
485
488
|
d.forEach((m) => m());
|
|
486
489
|
});
|
|
@@ -552,24 +555,24 @@ function Tt(e, t, o = {}) {
|
|
|
552
555
|
} : x;
|
|
553
556
|
}
|
|
554
557
|
// @__NO_SIDE_EFFECTS__
|
|
555
|
-
function
|
|
558
|
+
function uo() {
|
|
556
559
|
const e = ue(!1), t = pt();
|
|
557
560
|
return t && $e(() => {
|
|
558
561
|
e.value = !0;
|
|
559
562
|
}, t), e;
|
|
560
563
|
}
|
|
561
564
|
// @__NO_SIDE_EFFECTS__
|
|
562
|
-
function
|
|
563
|
-
const t = /* @__PURE__ */
|
|
565
|
+
function vn(e) {
|
|
566
|
+
const t = /* @__PURE__ */ uo();
|
|
564
567
|
return T(() => (t.value, !!e()));
|
|
565
568
|
}
|
|
566
|
-
function
|
|
569
|
+
function mn(e, t, o = {}) {
|
|
567
570
|
const { window: n = et, ...s } = o;
|
|
568
571
|
let r;
|
|
569
|
-
const a = /* @__PURE__ */
|
|
572
|
+
const a = /* @__PURE__ */ vn(() => n && "MutationObserver" in n), l = () => {
|
|
570
573
|
r && (r.disconnect(), r = void 0);
|
|
571
574
|
}, i = oe(T(() => {
|
|
572
|
-
const m = rt(A(e)).map(ke).filter(
|
|
575
|
+
const m = rt(A(e)).map(ke).filter(Qn);
|
|
573
576
|
return new Set(m);
|
|
574
577
|
}), (m) => {
|
|
575
578
|
l(), a.value && m.size && (r = new MutationObserver(t), m.forEach((b) => r.observe(b, s)));
|
|
@@ -590,106 +593,106 @@ const ot = {
|
|
|
590
593
|
margin: 30,
|
|
591
594
|
direction: "both"
|
|
592
595
|
};
|
|
593
|
-
function
|
|
596
|
+
function co(e) {
|
|
594
597
|
e.scrollLeft > e.scrollWidth - e.clientWidth && (e.scrollLeft = Math.max(0, e.scrollWidth - e.clientWidth)), e.scrollTop > e.scrollHeight - e.clientHeight && (e.scrollTop = Math.max(0, e.scrollHeight - e.clientHeight));
|
|
595
598
|
}
|
|
596
599
|
function wt(e, t = {}) {
|
|
597
600
|
var o, n, s, r;
|
|
598
|
-
const { pointerTypes: a, preventDefault: l, stopPropagation: i, exact: u, onMove: d, onEnd: m, onStart: b, initialValue: h, axis: I = "both", draggingElement: x = et, containerElement: f, handle: g = e, buttons: k = [0], restrictInView: C, autoScroll: E = !1 } = t,
|
|
601
|
+
const { pointerTypes: a, preventDefault: l, stopPropagation: i, exact: u, onMove: d, onEnd: m, onStart: b, initialValue: h, axis: I = "both", draggingElement: x = et, containerElement: f, handle: g = e, buttons: k = [0], restrictInView: C, autoScroll: E = !1 } = t, R = S((o = A(h)) !== null && o !== void 0 ? o : {
|
|
599
602
|
x: 0,
|
|
600
603
|
y: 0
|
|
601
|
-
}), $ = S(), P = (
|
|
602
|
-
A(l) &&
|
|
604
|
+
}), $ = S(), P = (L) => a ? a.includes(L.pointerType) : !0, U = (L) => {
|
|
605
|
+
A(l) && L.preventDefault(), A(i) && L.stopPropagation();
|
|
603
606
|
}, pe = A(E), J = typeof pe == "object" ? {
|
|
604
607
|
speed: (n = A(pe.speed)) !== null && n !== void 0 ? n : ot.speed,
|
|
605
608
|
margin: (s = A(pe.margin)) !== null && s !== void 0 ? s : ot.margin,
|
|
606
609
|
direction: (r = pe.direction) !== null && r !== void 0 ? r : ot.direction
|
|
607
|
-
} : ot, Q = (
|
|
608
|
-
const { clientWidth: K, clientHeight: Y, scrollLeft: re, scrollTop: Ee, scrollWidth: Ve, scrollHeight: O } =
|
|
610
|
+
} : ot, Q = (L) => typeof L == "number" ? [L, L] : [L.x, L.y], we = (L, B, G) => {
|
|
611
|
+
const { clientWidth: K, clientHeight: Y, scrollLeft: re, scrollTop: Ee, scrollWidth: Ve, scrollHeight: O } = L, [F, z] = Q(J.margin), [ee, le] = Q(J.speed);
|
|
609
612
|
let ne = 0, ie = 0;
|
|
610
|
-
(J.direction === "x" || J.direction === "both") && (G.x <
|
|
613
|
+
(J.direction === "x" || J.direction === "both") && (G.x < F && re > 0 ? ne = -ee : G.x + B.width > K - F && re < Ve - K && (ne = ee)), (J.direction === "y" || J.direction === "both") && (G.y < z && Ee > 0 ? ie = -le : G.y + B.height > Y - z && Ee < O - Y && (ie = le)), (ne || ie) && L.scrollBy({
|
|
611
614
|
left: ne,
|
|
612
615
|
top: ie,
|
|
613
616
|
behavior: "auto"
|
|
614
617
|
});
|
|
615
618
|
};
|
|
616
619
|
let fe = null;
|
|
617
|
-
const
|
|
618
|
-
const
|
|
619
|
-
|
|
620
|
-
const
|
|
621
|
-
x: G -
|
|
622
|
-
y: K -
|
|
620
|
+
const Be = () => {
|
|
621
|
+
const L = A(f);
|
|
622
|
+
L && !fe && (fe = setInterval(() => {
|
|
623
|
+
const B = A(e).getBoundingClientRect(), { x: G, y: K } = R.value, Y = {
|
|
624
|
+
x: G - L.scrollLeft,
|
|
625
|
+
y: K - L.scrollTop
|
|
623
626
|
};
|
|
624
|
-
Y.x >= 0 && Y.y >= 0 && (we(
|
|
627
|
+
Y.x >= 0 && Y.y >= 0 && (we(L, B, Y), Y.x += L.scrollLeft, Y.y += L.scrollTop, R.value = Y);
|
|
625
628
|
}, 1e3 / 60));
|
|
626
629
|
}, Le = () => {
|
|
627
630
|
fe && (clearInterval(fe), fe = null);
|
|
628
|
-
}, Ye = (
|
|
629
|
-
const [Y, re] = typeof G == "number" ? [G, G] : [G.x, G.y], { clientWidth: Ee, clientHeight: Ve } =
|
|
630
|
-
return
|
|
631
|
+
}, Ye = (L, B, G, K) => {
|
|
632
|
+
const [Y, re] = typeof G == "number" ? [G, G] : [G.x, G.y], { clientWidth: Ee, clientHeight: Ve } = B;
|
|
633
|
+
return L.x < Y || L.x + K.width > Ee - Y || L.y < re || L.y + K.height > Ve - re;
|
|
631
634
|
}, Xe = () => {
|
|
632
635
|
if (A(t.disabled) || !$.value) return;
|
|
633
|
-
const
|
|
634
|
-
if (!
|
|
635
|
-
const
|
|
636
|
+
const L = A(f);
|
|
637
|
+
if (!L) return;
|
|
638
|
+
const B = A(e).getBoundingClientRect(), { x: G, y: K } = R.value;
|
|
636
639
|
Ye({
|
|
637
|
-
x: G -
|
|
638
|
-
y: K -
|
|
639
|
-
},
|
|
640
|
+
x: G - L.scrollLeft,
|
|
641
|
+
y: K - L.scrollTop
|
|
642
|
+
}, L, J.margin, B) ? Be() : Le();
|
|
640
643
|
};
|
|
641
|
-
A(E) && oe(
|
|
642
|
-
const Ze = (
|
|
643
|
-
var
|
|
644
|
-
if (!A(k).includes(
|
|
645
|
-
const G = A(f), K = G == null || (
|
|
646
|
-
x:
|
|
647
|
-
y:
|
|
644
|
+
A(E) && oe(R, Xe);
|
|
645
|
+
const Ze = (L) => {
|
|
646
|
+
var B;
|
|
647
|
+
if (!A(k).includes(L.button) || A(t.disabled) || !P(L) || A(u) && L.target !== A(e)) return;
|
|
648
|
+
const G = A(f), K = G == null || (B = G.getBoundingClientRect) === null || B === void 0 ? void 0 : B.call(G), Y = A(e).getBoundingClientRect(), re = {
|
|
649
|
+
x: L.clientX - (G ? Y.left - K.left + (E ? 0 : G.scrollLeft) : Y.left),
|
|
650
|
+
y: L.clientY - (G ? Y.top - K.top + (E ? 0 : G.scrollTop) : Y.top)
|
|
648
651
|
};
|
|
649
|
-
b?.(re,
|
|
650
|
-
}, je = (
|
|
651
|
-
if (A(t.disabled) || !P(
|
|
652
|
-
const
|
|
653
|
-
|
|
652
|
+
b?.(re, L) !== !1 && ($.value = re, U(L));
|
|
653
|
+
}, je = (L) => {
|
|
654
|
+
if (A(t.disabled) || !P(L) || !$.value) return;
|
|
655
|
+
const B = A(f);
|
|
656
|
+
B instanceof HTMLElement && co(B);
|
|
654
657
|
const G = A(e).getBoundingClientRect();
|
|
655
|
-
let { x: K, y: Y } =
|
|
656
|
-
if ((I === "x" || I === "both") && (K =
|
|
658
|
+
let { x: K, y: Y } = R.value;
|
|
659
|
+
if ((I === "x" || I === "both") && (K = L.clientX - $.value.x, B && (K = Math.min(Math.max(0, K), B.scrollWidth - G.width))), (I === "y" || I === "both") && (Y = L.clientY - $.value.y, B && (Y = Math.min(Math.max(0, Y), B.scrollHeight - G.height))), A(E) && B && (fe === null && we(B, G, {
|
|
657
660
|
x: K,
|
|
658
661
|
y: Y
|
|
659
|
-
}), K +=
|
|
662
|
+
}), K += B.scrollLeft, Y += B.scrollTop), B && (C || E)) {
|
|
660
663
|
if (I !== "y") {
|
|
661
|
-
const re = K -
|
|
662
|
-
re < 0 ? K =
|
|
664
|
+
const re = K - B.scrollLeft;
|
|
665
|
+
re < 0 ? K = B.scrollLeft : re > B.clientWidth - G.width && (K = B.clientWidth - G.width + B.scrollLeft);
|
|
663
666
|
}
|
|
664
667
|
if (I !== "x") {
|
|
665
|
-
const re = Y -
|
|
666
|
-
re < 0 ? Y =
|
|
668
|
+
const re = Y - B.scrollTop;
|
|
669
|
+
re < 0 ? Y = B.scrollTop : re > B.clientHeight - G.height && (Y = B.clientHeight - G.height + B.scrollTop);
|
|
667
670
|
}
|
|
668
671
|
}
|
|
669
|
-
|
|
672
|
+
R.value = {
|
|
670
673
|
x: K,
|
|
671
674
|
y: Y
|
|
672
|
-
}, d?.(
|
|
673
|
-
}, Ne = (
|
|
674
|
-
A(t.disabled) || !P(
|
|
675
|
+
}, d?.(R.value, L), U(L);
|
|
676
|
+
}, Ne = (L) => {
|
|
677
|
+
A(t.disabled) || !P(L) || $.value && ($.value = void 0, E && Le(), m?.(R.value, L), U(L));
|
|
675
678
|
};
|
|
676
|
-
if (
|
|
677
|
-
const
|
|
678
|
-
var
|
|
679
|
+
if (fn) {
|
|
680
|
+
const L = () => {
|
|
681
|
+
var B;
|
|
679
682
|
return {
|
|
680
|
-
capture: (
|
|
683
|
+
capture: (B = t.capture) !== null && B !== void 0 ? B : !0,
|
|
681
684
|
passive: !A(l)
|
|
682
685
|
};
|
|
683
686
|
};
|
|
684
|
-
He(g, "pointerdown", Ze,
|
|
687
|
+
He(g, "pointerdown", Ze, L), He(x, "pointermove", je, L), He(x, "pointerup", Ne, L);
|
|
685
688
|
}
|
|
686
689
|
return {
|
|
687
|
-
...
|
|
688
|
-
position:
|
|
690
|
+
...so(R),
|
|
691
|
+
position: R,
|
|
689
692
|
isDragging: T(() => !!$.value),
|
|
690
693
|
style: T(() => `
|
|
691
|
-
left: ${
|
|
692
|
-
top: ${
|
|
694
|
+
left: ${R.value.x}px;
|
|
695
|
+
top: ${R.value.y}px;
|
|
693
696
|
${E ? "text-wrap: nowrap;" : ""}
|
|
694
697
|
`)
|
|
695
698
|
};
|
|
@@ -697,7 +700,7 @@ function wt(e, t = {}) {
|
|
|
697
700
|
function ct(e, t, o = {}) {
|
|
698
701
|
const { window: n = et, ...s } = o;
|
|
699
702
|
let r;
|
|
700
|
-
const a = /* @__PURE__ */
|
|
703
|
+
const a = /* @__PURE__ */ vn(() => n && "ResizeObserver" in n), l = () => {
|
|
701
704
|
r && (r.disconnect(), r = void 0);
|
|
702
705
|
}, i = oe(T(() => {
|
|
703
706
|
const d = A(e);
|
|
@@ -732,10 +735,10 @@ function _e(e, t = {}) {
|
|
|
732
735
|
function f() {
|
|
733
736
|
a === "sync" ? x() : a === "next-frame" && requestAnimationFrame(() => x());
|
|
734
737
|
}
|
|
735
|
-
return ct(e, f), oe(() => ke(e), (g) => !g && f()),
|
|
738
|
+
return ct(e, f), oe(() => ke(e), (g) => !g && f()), mn(e, f, { attributeFilter: ["style", "class"] }), s && He("scroll", f, {
|
|
736
739
|
capture: !0,
|
|
737
740
|
passive: !0
|
|
738
|
-
}), n && He("resize", f, { passive: !0 }),
|
|
741
|
+
}), n && He("resize", f, { passive: !0 }), ro(() => {
|
|
739
742
|
r && f();
|
|
740
743
|
}), {
|
|
741
744
|
height: l,
|
|
@@ -753,10 +756,10 @@ function yt(e) {
|
|
|
753
756
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
754
757
|
}
|
|
755
758
|
const bt = /* @__PURE__ */ new WeakMap();
|
|
756
|
-
function
|
|
759
|
+
function fo(e, t = !1) {
|
|
757
760
|
const o = ue(t);
|
|
758
761
|
let n = "";
|
|
759
|
-
oe(
|
|
762
|
+
oe(to(e), (a) => {
|
|
760
763
|
const l = yt(A(a));
|
|
761
764
|
if (l) {
|
|
762
765
|
const i = l;
|
|
@@ -780,10 +783,10 @@ function co(e, t = !1) {
|
|
|
780
783
|
}
|
|
781
784
|
});
|
|
782
785
|
}
|
|
783
|
-
const
|
|
786
|
+
const vo = (e) => {
|
|
784
787
|
const t = new DOMParser().parseFromString(e, "text/html");
|
|
785
788
|
return Array.from(t.body.childNodes).some((o) => o.nodeType === 1);
|
|
786
|
-
},
|
|
789
|
+
}, mo = (e = 8) => Array.from({ length: e }, () => Math.floor(Math.random() * 16).toString(16)).join(""), po = ["data-colindex", "data-rowindex", "data-editable", "contenteditable", "tabindex"], ho = ["innerHTML"], go = { key: 2 }, wo = /* @__PURE__ */ te({
|
|
787
790
|
__name: "ACell",
|
|
788
791
|
props: {
|
|
789
792
|
colIndex: {},
|
|
@@ -795,7 +798,7 @@ const fo = (e) => {
|
|
|
795
798
|
debounce: { default: 300 }
|
|
796
799
|
},
|
|
797
800
|
setup(e, { expose: t }) {
|
|
798
|
-
const o = ve("cell"), n = e.store.getCellData(e.colIndex, e.rowIndex), s = S(""), r = S(!1), a = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], i = a.align || "center", u = a.width || "40ch", d = T(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), m = T(() => typeof d.value == "string" ?
|
|
801
|
+
const o = ve("cell"), n = e.store.getCellData(e.colIndex, e.rowIndex), s = S(""), r = S(!1), a = e.store.columns[e.colIndex], l = e.store.rows[e.rowIndex], i = a.align || "center", u = a.width || "40ch", d = T(() => e.store.getCellDisplayValue(e.colIndex, e.rowIndex)), m = T(() => typeof d.value == "string" ? vo(d.value) : !1), b = T(() => ({
|
|
799
802
|
textAlign: i,
|
|
800
803
|
width: u,
|
|
801
804
|
fontWeight: r.value ? "bold" : "inherit",
|
|
@@ -882,7 +885,7 @@ const fo = (e) => {
|
|
|
882
885
|
s.value = P.textContent, a.format ? (r.value = P.textContent !== e.store.getFormattedValue(e.colIndex, e.rowIndex, n), e.store.setCellText(e.colIndex, e.rowIndex, P.textContent)) : (r.value = P.textContent !== n, e.store.setCellData(e.colIndex, e.rowIndex, P.textContent)), ft().then(() => {
|
|
883
886
|
C(U);
|
|
884
887
|
});
|
|
885
|
-
},
|
|
888
|
+
}, R = /* @__PURE__ */ ao(E, e.debounce);
|
|
886
889
|
return t({
|
|
887
890
|
currentData: s
|
|
888
891
|
}), ($, P) => (p(), y("td", {
|
|
@@ -898,19 +901,19 @@ const fo = (e) => {
|
|
|
898
901
|
onFocus: g,
|
|
899
902
|
onPaste: E,
|
|
900
903
|
onInput: P[0] || (P[0] = //@ts-ignore
|
|
901
|
-
(...U) => V(
|
|
904
|
+
(...U) => V(R) && V(R)(...U)),
|
|
902
905
|
onClick: I
|
|
903
906
|
}, [
|
|
904
|
-
V(a).cellComponent ? (p(), me(
|
|
907
|
+
V(a).cellComponent ? (p(), me(Fe(V(a).cellComponent), dt({
|
|
905
908
|
key: 0,
|
|
906
909
|
value: d.value
|
|
907
910
|
}, V(a).cellComponentProps), null, 16, ["value"])) : m.value ? (p(), y("span", {
|
|
908
911
|
key: 1,
|
|
909
912
|
innerHTML: d.value
|
|
910
|
-
}, null, 8,
|
|
911
|
-
], 46,
|
|
913
|
+
}, null, 8, ho)) : (p(), y("span", go, Z(d.value), 1))
|
|
914
|
+
], 46, po));
|
|
912
915
|
}
|
|
913
|
-
}),
|
|
916
|
+
}), yo = ["tabindex"], bo = ["tabindex"], xo = ["colspan"], ko = /* @__PURE__ */ te({
|
|
914
917
|
__name: "AExpansionRow",
|
|
915
918
|
props: {
|
|
916
919
|
rowIndex: {},
|
|
@@ -945,7 +948,7 @@ const fo = (e) => {
|
|
|
945
948
|
onClick: s[0] || (s[0] = (r) => e.store.toggleRowExpand(e.rowIndex))
|
|
946
949
|
}, Z(o.value), 1),
|
|
947
950
|
ge(n.$slots, "row", {}, void 0, !0)
|
|
948
|
-
], 16,
|
|
951
|
+
], 16, yo),
|
|
949
952
|
e.store.display[e.rowIndex].expanded ? (p(), y("tr", {
|
|
950
953
|
key: 0,
|
|
951
954
|
ref: "rowExpanded",
|
|
@@ -958,8 +961,8 @@ const fo = (e) => {
|
|
|
958
961
|
class: "expanded-row-content"
|
|
959
962
|
}, [
|
|
960
963
|
ge(n.$slots, "content", {}, void 0, !0)
|
|
961
|
-
], 8,
|
|
962
|
-
], 8,
|
|
964
|
+
], 8, xo)
|
|
965
|
+
], 8, bo)) : q("", !0)
|
|
963
966
|
], 64));
|
|
964
967
|
}
|
|
965
968
|
}), Pe = (e, t) => {
|
|
@@ -967,13 +970,13 @@ const fo = (e) => {
|
|
|
967
970
|
for (const [n, s] of t)
|
|
968
971
|
o[n] = s;
|
|
969
972
|
return o;
|
|
970
|
-
},
|
|
973
|
+
}, Io = /* @__PURE__ */ Pe(ko, [["__scopeId", "data-v-a42297c7"]]), Mo = ["colspan"], Co = {
|
|
971
974
|
ref: "container",
|
|
972
975
|
class: "gantt-container"
|
|
973
|
-
},
|
|
976
|
+
}, Eo = ["data-rowindex", "data-colindex"], Ao = {
|
|
974
977
|
key: 2,
|
|
975
978
|
class: "gantt-label"
|
|
976
|
-
},
|
|
979
|
+
}, $o = ["x1", "y1", "x2", "y2"], To = /* @__PURE__ */ te({
|
|
977
980
|
__name: "AGanttCell",
|
|
978
981
|
props: {
|
|
979
982
|
store: {},
|
|
@@ -988,15 +991,15 @@ const fo = (e) => {
|
|
|
988
991
|
},
|
|
989
992
|
emits: ["connection:create"],
|
|
990
993
|
setup(e, { expose: t, emit: o }) {
|
|
991
|
-
|
|
994
|
+
En((O) => ({
|
|
992
995
|
v737862e7: s.value,
|
|
993
996
|
v05f25613: O.colspan
|
|
994
997
|
}));
|
|
995
|
-
const n = o, s = S(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, a = ve("container"), l = ve("bar"), i = ve("leftResizeHandle"), u = ve("rightResizeHandle"), d = ve("leftConnectionHandle"), m = ve("rightConnectionHandle"), { width: b } = _e(a), { left: h, right: I } = _e(l), x = S(e.start), f = S(e.end || x.value + e.colspan), g = S(!1), k = S(!1), C = S(!1), E = S(!1),
|
|
996
|
-
const O = x.value / e.colspan * 100,
|
|
998
|
+
const n = o, s = S(e.color.length >= 6 ? e.color : "#cccccc"), r = `gantt-bar-row-${e.rowIndex}-col-${e.colIndex}`, a = ve("container"), l = ve("bar"), i = ve("leftResizeHandle"), u = ve("rightResizeHandle"), d = ve("leftConnectionHandle"), m = ve("rightConnectionHandle"), { width: b } = _e(a), { left: h, right: I } = _e(l), x = S(e.start), f = S(e.end || x.value + e.colspan), g = S(!1), k = S(!1), C = S(!1), E = S(!1), R = S(!1), $ = S({ startX: 0, startY: 0, endX: 0, endY: 0 }), P = T(() => Be.value || we.value || fe.value), U = T(() => e.colspan > 0 ? b.value / e.colspan : 0), pe = T(() => {
|
|
999
|
+
const O = x.value / e.colspan * 100, F = f.value / e.colspan * 100;
|
|
997
1000
|
return {
|
|
998
1001
|
left: `${O}%`,
|
|
999
|
-
width: `${
|
|
1002
|
+
width: `${F - O}%`,
|
|
1000
1003
|
backgroundColor: s.value
|
|
1001
1004
|
};
|
|
1002
1005
|
}), J = T(
|
|
@@ -1019,29 +1022,29 @@ const fo = (e) => {
|
|
|
1019
1022
|
onStart: () => Le(I.value, f.value),
|
|
1020
1023
|
onMove: ({ x: O }) => Ze(O),
|
|
1021
1024
|
onEnd: ({ x: O }) => je(O)
|
|
1022
|
-
}), { isDragging:
|
|
1025
|
+
}), { isDragging: Be } = wt(l, {
|
|
1023
1026
|
exact: !0,
|
|
1024
1027
|
axis: "x",
|
|
1025
1028
|
onStart: () => Le(h.value, x.value),
|
|
1026
1029
|
onMove: ({ x: O }) => Ne(O),
|
|
1027
|
-
onEnd: ({ x: O }) =>
|
|
1030
|
+
onEnd: ({ x: O }) => L(O)
|
|
1028
1031
|
});
|
|
1029
1032
|
$e(() => {
|
|
1030
|
-
|
|
1031
|
-
}),
|
|
1033
|
+
B();
|
|
1034
|
+
}), An(() => {
|
|
1032
1035
|
G();
|
|
1033
1036
|
});
|
|
1034
|
-
function Le(O,
|
|
1035
|
-
l.value && (l.value.style.transition = "none"), Q.value = { startX: O, startPos:
|
|
1037
|
+
function Le(O, F) {
|
|
1038
|
+
l.value && (l.value.style.transition = "none"), Q.value = { startX: O, startPos: F };
|
|
1036
1039
|
}
|
|
1037
1040
|
function Ye(O) {
|
|
1038
1041
|
if (!we.value || !l.value) return;
|
|
1039
|
-
const
|
|
1040
|
-
l.value.style.left = `${
|
|
1042
|
+
const F = (O - Q.value.startX) / U.value, z = Math.max(0, Math.min(f.value - 1, Q.value.startPos + F));
|
|
1043
|
+
l.value.style.left = `${z / e.colspan * 100}%`, l.value.style.width = `${(f.value - z) / e.colspan * 100}%`;
|
|
1041
1044
|
}
|
|
1042
1045
|
function Xe(O) {
|
|
1043
1046
|
if (!l.value) return;
|
|
1044
|
-
const
|
|
1047
|
+
const F = O - Q.value.startX, z = Math.round(F / U.value), ee = x.value, le = Math.max(0, Math.min(f.value - 1, Q.value.startPos + z));
|
|
1045
1048
|
x.value = le, e.store.updateGanttBar({
|
|
1046
1049
|
rowIndex: e.rowIndex,
|
|
1047
1050
|
colIndex: e.colIndex,
|
|
@@ -1050,19 +1053,19 @@ const fo = (e) => {
|
|
|
1050
1053
|
oldStart: ee,
|
|
1051
1054
|
newStart: le,
|
|
1052
1055
|
end: f.value,
|
|
1053
|
-
delta:
|
|
1056
|
+
delta: z,
|
|
1054
1057
|
oldColspan: f.value - ee,
|
|
1055
1058
|
newColspan: f.value - le
|
|
1056
1059
|
});
|
|
1057
1060
|
}
|
|
1058
1061
|
function Ze(O) {
|
|
1059
1062
|
if (!fe.value || !l.value) return;
|
|
1060
|
-
const
|
|
1061
|
-
l.value.style.width = `${(
|
|
1063
|
+
const F = (O - Q.value.startX) / U.value, z = Math.max(x.value + 1, Math.min(e.columnsCount, Q.value.startPos + F));
|
|
1064
|
+
l.value.style.width = `${(z - x.value) / e.colspan * 100}%`;
|
|
1062
1065
|
}
|
|
1063
1066
|
function je(O) {
|
|
1064
1067
|
if (!l.value) return;
|
|
1065
|
-
const
|
|
1068
|
+
const F = O - Q.value.startX, z = Math.round(F / U.value), ee = f.value, le = Math.max(x.value + 1, Math.min(e.columnsCount, Q.value.startPos + z));
|
|
1066
1069
|
f.value = le, e.store.updateGanttBar({
|
|
1067
1070
|
rowIndex: e.rowIndex,
|
|
1068
1071
|
colIndex: e.colIndex,
|
|
@@ -1071,20 +1074,20 @@ const fo = (e) => {
|
|
|
1071
1074
|
oldEnd: ee,
|
|
1072
1075
|
newEnd: le,
|
|
1073
1076
|
start: x.value,
|
|
1074
|
-
delta:
|
|
1077
|
+
delta: z,
|
|
1075
1078
|
oldColspan: ee - x.value,
|
|
1076
1079
|
newColspan: le - x.value
|
|
1077
1080
|
});
|
|
1078
1081
|
}
|
|
1079
1082
|
function Ne(O) {
|
|
1080
|
-
if (!
|
|
1081
|
-
const
|
|
1083
|
+
if (!Be.value || !l.value) return;
|
|
1084
|
+
const F = (O - Q.value.startX) / U.value, z = f.value - x.value, ee = Math.max(0, Math.min(Q.value.startPos + F, e.columnsCount - z));
|
|
1082
1085
|
l.value.style.left = `${ee / e.colspan * 100}%`;
|
|
1083
1086
|
}
|
|
1084
|
-
function
|
|
1087
|
+
function L(O) {
|
|
1085
1088
|
if (!l.value) return;
|
|
1086
|
-
const
|
|
1087
|
-
let ie = Q.value.startPos +
|
|
1089
|
+
const F = O - Q.value.startX, z = Math.round(F / U.value), ee = f.value - x.value, le = x.value, ne = f.value;
|
|
1090
|
+
let ie = Q.value.startPos + z, ce = ie + ee;
|
|
1088
1091
|
ie < 0 ? (ie = 0, ce = ee) : ce > e.columnsCount && (ce = e.columnsCount, ie = ce - ee), x.value = ie, f.value = ce, e.store.updateGanttBar({
|
|
1089
1092
|
rowIndex: e.rowIndex,
|
|
1090
1093
|
colIndex: e.colIndex,
|
|
@@ -1093,12 +1096,12 @@ const fo = (e) => {
|
|
|
1093
1096
|
oldEnd: ne,
|
|
1094
1097
|
newStart: ie,
|
|
1095
1098
|
newEnd: ce,
|
|
1096
|
-
delta:
|
|
1099
|
+
delta: z,
|
|
1097
1100
|
colspan: ce - ie
|
|
1098
1101
|
});
|
|
1099
1102
|
}
|
|
1100
|
-
function
|
|
1101
|
-
const { x: O, y:
|
|
1103
|
+
function B() {
|
|
1104
|
+
const { x: O, y: F } = _e(l), { x: z, y: ee } = _e(d), { x: le, y: ne } = _e(m);
|
|
1102
1105
|
e.store.registerGanttBar({
|
|
1103
1106
|
id: r,
|
|
1104
1107
|
rowIndex: e.rowIndex,
|
|
@@ -1107,13 +1110,13 @@ const fo = (e) => {
|
|
|
1107
1110
|
endIndex: f,
|
|
1108
1111
|
color: s,
|
|
1109
1112
|
label: e.label,
|
|
1110
|
-
position: { x: O, y:
|
|
1113
|
+
position: { x: O, y: F }
|
|
1111
1114
|
}), e.store.isDependencyGraphEnabled && (e.store.registerConnectionHandle({
|
|
1112
1115
|
id: `${r}-connection-left`,
|
|
1113
1116
|
rowIndex: e.rowIndex,
|
|
1114
1117
|
colIndex: e.colIndex,
|
|
1115
1118
|
side: "left",
|
|
1116
|
-
position: { x:
|
|
1119
|
+
position: { x: z, y: ee },
|
|
1117
1120
|
visible: g,
|
|
1118
1121
|
barId: r
|
|
1119
1122
|
}), e.store.registerConnectionHandle({
|
|
@@ -1135,11 +1138,11 @@ const fo = (e) => {
|
|
|
1135
1138
|
function Y() {
|
|
1136
1139
|
!C.value && !E.value && (g.value = !1, k.value = !1);
|
|
1137
1140
|
}
|
|
1138
|
-
function re(O,
|
|
1139
|
-
|
|
1140
|
-
const
|
|
1141
|
-
if (
|
|
1142
|
-
const ne =
|
|
1141
|
+
function re(O, F) {
|
|
1142
|
+
F.preventDefault(), F.stopPropagation(), R.value = !0, O === "left" ? C.value = !0 : E.value = !0;
|
|
1143
|
+
const z = O === "left" ? d.value : m.value;
|
|
1144
|
+
if (z) {
|
|
1145
|
+
const ne = z.getBoundingClientRect(), ie = ne.left + ne.width / 2, ce = ne.top + ne.height / 2;
|
|
1143
1146
|
$.value = { startX: ie, startY: ce, endX: ie, endY: ce };
|
|
1144
1147
|
}
|
|
1145
1148
|
const ee = (ne) => {
|
|
@@ -1149,21 +1152,21 @@ const fo = (e) => {
|
|
|
1149
1152
|
};
|
|
1150
1153
|
document.addEventListener("mousemove", ee), document.addEventListener("mouseup", le);
|
|
1151
1154
|
}
|
|
1152
|
-
function Ee(O,
|
|
1153
|
-
const
|
|
1154
|
-
if (
|
|
1155
|
-
const ee =
|
|
1155
|
+
function Ee(O, F) {
|
|
1156
|
+
const z = document.elementFromPoint(O.clientX, O.clientY)?.closest(".connection-handle");
|
|
1157
|
+
if (z && z !== (F === "left" ? d.value : m.value)) {
|
|
1158
|
+
const ee = z.closest(".gantt-bar");
|
|
1156
1159
|
if (ee) {
|
|
1157
|
-
const le = parseInt(ee.getAttribute("data-rowindex") || "0"), ne = parseInt(ee.getAttribute("data-colindex") || "0"), ie =
|
|
1158
|
-
`${r}-connection-${
|
|
1160
|
+
const le = parseInt(ee.getAttribute("data-rowindex") || "0"), ne = parseInt(ee.getAttribute("data-colindex") || "0"), ie = z.classList.contains("left-connection-handle") ? "left" : "right", ce = `gantt-bar-row-${le}-col-${ne}`, c = e.store.createConnection(
|
|
1161
|
+
`${r}-connection-${F}`,
|
|
1159
1162
|
`${ce}-connection-${ie}`
|
|
1160
1163
|
);
|
|
1161
1164
|
c && n("connection:create", c);
|
|
1162
1165
|
}
|
|
1163
1166
|
}
|
|
1164
1167
|
}
|
|
1165
|
-
function Ve(O,
|
|
1166
|
-
|
|
1168
|
+
function Ve(O, F) {
|
|
1169
|
+
R.value = !1, C.value = !1, E.value = !1, document.removeEventListener("mousemove", O), document.removeEventListener("mouseup", F), l.value?.matches(":hover") || Y();
|
|
1167
1170
|
}
|
|
1168
1171
|
return t({
|
|
1169
1172
|
barStyle: pe,
|
|
@@ -1174,12 +1177,12 @@ const fo = (e) => {
|
|
|
1174
1177
|
isLeftConnectionVisible: g,
|
|
1175
1178
|
isRightConnectionDragging: E,
|
|
1176
1179
|
isRightConnectionVisible: k,
|
|
1177
|
-
showDragPreview:
|
|
1178
|
-
}), (O,
|
|
1180
|
+
showDragPreview: R
|
|
1181
|
+
}), (O, F) => (p(), y("td", {
|
|
1179
1182
|
class: "aganttcell",
|
|
1180
1183
|
colspan: e.colspan
|
|
1181
1184
|
}, [
|
|
1182
|
-
w("div",
|
|
1185
|
+
w("div", Co, [
|
|
1183
1186
|
w("div", {
|
|
1184
1187
|
ref: "bar",
|
|
1185
1188
|
"data-rowindex": e.rowIndex,
|
|
@@ -1193,36 +1196,36 @@ const fo = (e) => {
|
|
|
1193
1196
|
key: 0,
|
|
1194
1197
|
ref: "leftConnectionHandle",
|
|
1195
1198
|
class: ae(["connection-handle left-connection-handle", { visible: g.value, "is-dragging": C.value }]),
|
|
1196
|
-
onMousedown:
|
|
1197
|
-
}, [...
|
|
1199
|
+
onMousedown: F[0] || (F[0] = he((z) => re("left", z), ["stop"]))
|
|
1200
|
+
}, [...F[2] || (F[2] = [
|
|
1198
1201
|
w("div", { class: "connection-dot" }, null, -1)
|
|
1199
|
-
])], 34)) :
|
|
1202
|
+
])], 34)) : q("", !0),
|
|
1200
1203
|
e.store.isDependencyGraphEnabled ? (p(), y("div", {
|
|
1201
1204
|
key: 1,
|
|
1202
1205
|
ref: "rightConnectionHandle",
|
|
1203
1206
|
class: ae(["connection-handle right-connection-handle", { visible: k.value, "is-dragging": E.value }]),
|
|
1204
|
-
onMousedown:
|
|
1205
|
-
}, [...
|
|
1207
|
+
onMousedown: F[1] || (F[1] = he((z) => re("right", z), ["stop"]))
|
|
1208
|
+
}, [...F[3] || (F[3] = [
|
|
1206
1209
|
w("div", { class: "connection-dot" }, null, -1)
|
|
1207
|
-
])], 34)) :
|
|
1210
|
+
])], 34)) : q("", !0),
|
|
1208
1211
|
w("div", {
|
|
1209
1212
|
ref: "leftResizeHandle",
|
|
1210
1213
|
class: ae(["resize-handle left-resize-handle", { "is-dragging": V(we) }])
|
|
1211
|
-
}, [...
|
|
1214
|
+
}, [...F[4] || (F[4] = [
|
|
1212
1215
|
w("div", { class: "handle-grip" }, null, -1),
|
|
1213
1216
|
w("div", { class: "vertical-indicator left-indicator" }, null, -1)
|
|
1214
1217
|
])], 2),
|
|
1215
|
-
e.label ? (p(), y("label",
|
|
1218
|
+
e.label ? (p(), y("label", Ao, Z(e.label), 1)) : q("", !0),
|
|
1216
1219
|
w("div", {
|
|
1217
1220
|
ref: "rightResizeHandle",
|
|
1218
1221
|
class: ae(["resize-handle right-resize-handle", { "is-dragging": V(fe) }])
|
|
1219
|
-
}, [...
|
|
1222
|
+
}, [...F[5] || (F[5] = [
|
|
1220
1223
|
w("div", { class: "handle-grip" }, null, -1),
|
|
1221
1224
|
w("div", { class: "vertical-indicator right-indicator" }, null, -1)
|
|
1222
1225
|
])], 2)
|
|
1223
|
-
], 46,
|
|
1226
|
+
], 46, Eo)
|
|
1224
1227
|
], 512),
|
|
1225
|
-
e.store.isDependencyGraphEnabled &&
|
|
1228
|
+
e.store.isDependencyGraphEnabled && R.value ? (p(), y("svg", {
|
|
1226
1229
|
key: 0,
|
|
1227
1230
|
style: Ie(J.value)
|
|
1228
1231
|
}, [
|
|
@@ -1234,24 +1237,24 @@ const fo = (e) => {
|
|
|
1234
1237
|
stroke: "#2196f3",
|
|
1235
1238
|
"stroke-width": "2",
|
|
1236
1239
|
"stroke-dasharray": "5,5"
|
|
1237
|
-
}, null, 8,
|
|
1238
|
-
], 4)) :
|
|
1239
|
-
], 8,
|
|
1240
|
+
}, null, 8, $o)
|
|
1241
|
+
], 4)) : q("", !0)
|
|
1242
|
+
], 8, Mo));
|
|
1240
1243
|
}
|
|
1241
|
-
}),
|
|
1244
|
+
}), Do = /* @__PURE__ */ Pe(To, [["__scopeId", "data-v-c2df3f52"]]), So = `<?xml version="1.0" encoding="UTF-8"?>
|
|
1242
1245
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
1243
1246
|
<path d="M32,64C14.35,64,0,49.65,0,32S14.35,0,32,0s32,14.35,32,32-14.35,32-32,32ZM32,4c-15.44,0-28,12.56-28,28s12.56,28,28,28,28-12.56,28-28S47.44,4,32,4Z" style="fill: #000; stroke-width: 0px;"/>
|
|
1244
1247
|
<polygon points="34 18 30 18 30 30 18 30 18 34 30 34 30 46 34 46 34 34 46 34 46 30 34 30 34 18" style="fill: #000; stroke-width: 0px;"/>
|
|
1245
1248
|
</svg>
|
|
1246
|
-
`,
|
|
1249
|
+
`, Ro = `<?xml version="1.0" encoding="UTF-8"?>
|
|
1247
1250
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
|
|
1248
1251
|
<path d="M32,64C14.35,64,0,49.65,0,32S14.35,0,32,0s32,14.35,32,32-14.35,32-32,32ZM32,4c-15.44,0-28,12.56-28,28s12.56,28,28,28,28-12.56,28-28S47.44,4,32,4Z" style="fill: #000; stroke-width: 0px;"/>
|
|
1249
1252
|
<polygon points="46.84 19.99 44.01 17.16 32 29.17 19.99 17.16 17.16 19.99 29.17 32 17.16 44.01 19.99 46.84 32 34.83 44.01 46.84 46.84 44.01 34.83 32 46.84 19.99" style="fill: #000; stroke-width: 0px;"/>
|
|
1250
|
-
</svg>`,
|
|
1253
|
+
</svg>`, Lo = `<?xml version="1.0" encoding="UTF-8"?>
|
|
1251
1254
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.67 70.67">
|
|
1252
1255
|
<path d="M68.67,16.67h-14.67V2c0-1.1-.9-2-2-2H2C.9,0,0,.9,0,2v50c0,1.1.9,2,2,2h14.67v14.67c0,1.1.9,2,2,2h50c1.1,0,2-.9,2-2V18.67c0-1.1-.9-2-2-2ZM4,4h46v46H4V4ZM66.67,66.67H20.67v-12.67h31.33c1.1,0,2-.9,2-2v-31.33h12.67v46Z" style="fill: #000; stroke-width: 0px;"/>
|
|
1253
1256
|
<polygon points="41 25 29 25 29 13 25 13 25 25 13 25 13 29 25 29 25 41 29 41 29 29 41 29 41 25" style="fill: #000; stroke-width: 0px;"/>
|
|
1254
|
-
</svg>`,
|
|
1257
|
+
</svg>`, Vo = `<?xml version="1.0" encoding="UTF-8"?>
|
|
1255
1258
|
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 70.6 61.5">
|
|
1256
1259
|
<path d="M68.6,45.8v13.7H2v-13.7h66.6M70.6,43.8H0v17.7h70.6v-17.7h0Z"/>
|
|
1257
1260
|
<path d="M68.6,24.2v13.7H2v-13.7h66.6M70.6,22.2H0v17.7h70.6v-17.7h0Z"/>
|
|
@@ -1265,7 +1268,7 @@ const fo = (e) => {
|
|
|
1265
1268
|
<polygon points="70.6 18.7 68.1 18.7 68.1 16.7 68.6 16.7 68.6 16.2 70.6 16.2 70.6 18.7"/>
|
|
1266
1269
|
<path d="M70.6,13.4h-2v-2.7h2v2.7ZM70.6,8h-2v-2.7h2v2.7Z"/>
|
|
1267
1270
|
</g>
|
|
1268
|
-
</svg>`,
|
|
1271
|
+
</svg>`, Ho = `<?xml version="1.0" encoding="UTF-8"?>
|
|
1269
1272
|
<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 70.6 61.5">
|
|
1270
1273
|
<g>
|
|
1271
1274
|
<polygon points="70.6 45.3 68.6 45.3 68.6 44.8 68.1 44.8 68.1 42.8 70.6 42.8 70.6 45.3"/>
|
|
@@ -1279,23 +1282,23 @@ const fo = (e) => {
|
|
|
1279
1282
|
</g>
|
|
1280
1283
|
<path d="M68.6,23.7v13.7H2v-13.7h66.6M70.6,21.7H0v17.7h70.6v-17.7h0Z"/>
|
|
1281
1284
|
<path d="M68.6,2v13.7H2V2h66.6M70.6,0H0v17.7h70.6V0h0Z"/>
|
|
1282
|
-
</svg>`,
|
|
1285
|
+
</svg>`, Po = `<?xml version="1.0" encoding="UTF-8"?>
|
|
1283
1286
|
<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 70.67 70.64">
|
|
1284
1287
|
<path d="M70.08,33.9l-9.75-9.75-2.83,2.83,6.33,6.33h-26.51V6.81l6.33,6.33,2.83-2.83L36.75.56c-.75-.75-2.08-.75-2.83,0l-9.75,9.75,2.83,2.83,6.33-6.33v26.5H6.83l6.33-6.33-2.83-2.83L.59,33.9c-.38.38-.59.88-.59,1.41s.21,1.04.59,1.41l9.75,9.75,2.83-2.83-6.33-6.33h26.5v26.51l-6.33-6.33-2.83,2.83,9.75,9.75c.38.38.88.59,1.41.59s1.04-.21,1.41-.59l9.75-9.75-2.83-2.83-6.33,6.33v-26.51h26.51l-6.33,6.33,2.83,2.83,9.75-9.75c.38-.38.59-.88.59-1.41s-.21-1.04-.59-1.41Z" style="fill: #000; stroke-width: 0px;"/>
|
|
1285
|
-
</svg>`,
|
|
1286
|
-
add:
|
|
1287
|
-
delete:
|
|
1288
|
-
duplicate:
|
|
1289
|
-
insertAbove:
|
|
1290
|
-
insertBelow:
|
|
1291
|
-
move:
|
|
1292
|
-
},
|
|
1288
|
+
</svg>`, _o = {
|
|
1289
|
+
add: So,
|
|
1290
|
+
delete: Ro,
|
|
1291
|
+
duplicate: Lo,
|
|
1292
|
+
insertAbove: Vo,
|
|
1293
|
+
insertBelow: Ho,
|
|
1294
|
+
move: Po
|
|
1295
|
+
}, Oo = {
|
|
1293
1296
|
key: 0,
|
|
1294
1297
|
class: "row-actions-dropdown"
|
|
1295
|
-
},
|
|
1298
|
+
}, Fo = ["aria-expanded"], Bo = ["onClick"], Zo = ["innerHTML"], No = { class: "action-label" }, Uo = {
|
|
1296
1299
|
key: 1,
|
|
1297
1300
|
class: "row-actions-icons"
|
|
1298
|
-
},
|
|
1301
|
+
}, Wo = ["title", "aria-label", "onClick"], Go = ["innerHTML"], it = /* @__PURE__ */ te({
|
|
1299
1302
|
__name: "ARowActions",
|
|
1300
1303
|
props: {
|
|
1301
1304
|
rowIndex: {},
|
|
@@ -1315,10 +1318,10 @@ const fo = (e) => {
|
|
|
1315
1318
|
}, m = T(() => {
|
|
1316
1319
|
const g = [], k = o.config.actions || {}, C = ["add", "delete", "duplicate", "insertAbove", "insertBelow", "move"];
|
|
1317
1320
|
for (const E of C) {
|
|
1318
|
-
const
|
|
1319
|
-
if (
|
|
1320
|
-
let $ = !0, P = d[E], U =
|
|
1321
|
-
typeof
|
|
1321
|
+
const R = k[E];
|
|
1322
|
+
if (R === !1 || R === void 0) continue;
|
|
1323
|
+
let $ = !0, P = d[E], U = _o[E];
|
|
1324
|
+
typeof R == "object" && ($ = R.enabled !== !1, P = R.label || P, U = R.icon || U), $ && g.push({ type: E, label: P, icon: U });
|
|
1322
1325
|
}
|
|
1323
1326
|
return g;
|
|
1324
1327
|
}), b = T(() => {
|
|
@@ -1343,8 +1346,8 @@ const fo = (e) => {
|
|
|
1343
1346
|
l.value || x(), l.value = !l.value;
|
|
1344
1347
|
}, x = () => {
|
|
1345
1348
|
if (!r.value) return;
|
|
1346
|
-
const g = r.value.getBoundingClientRect(), k = window.innerHeight, C = m.value.length * 40 + 16, E = k - g.bottom,
|
|
1347
|
-
i.value = E < C &&
|
|
1349
|
+
const g = r.value.getBoundingClientRect(), k = window.innerHeight, C = m.value.length * 40 + 16, E = k - g.bottom, R = g.top;
|
|
1350
|
+
i.value = E < C && R > C, i.value ? u.value = {
|
|
1348
1351
|
top: g.top,
|
|
1349
1352
|
left: g.left
|
|
1350
1353
|
} : u.value = {
|
|
@@ -1364,7 +1367,7 @@ const fo = (e) => {
|
|
|
1364
1367
|
ref: "actionsCell",
|
|
1365
1368
|
class: ae(["atable-row-actions", { "sticky-column": e.position === "before-index", "dropdown-active": l.value }])
|
|
1366
1369
|
}, [
|
|
1367
|
-
b.value ? (p(), y("div",
|
|
1370
|
+
b.value ? (p(), y("div", Oo, [
|
|
1368
1371
|
w("button", {
|
|
1369
1372
|
ref: "toggleButton",
|
|
1370
1373
|
type: "button",
|
|
@@ -1374,7 +1377,7 @@ const fo = (e) => {
|
|
|
1374
1377
|
onClick: he(I, ["stop"])
|
|
1375
1378
|
}, [...k[0] || (k[0] = [
|
|
1376
1379
|
w("span", { class: "dropdown-icon" }, "⋮", -1)
|
|
1377
|
-
])], 8,
|
|
1380
|
+
])], 8, Fo),
|
|
1378
1381
|
j(w("div", {
|
|
1379
1382
|
class: ae(["row-actions-menu", { "menu-flipped": i.value }]),
|
|
1380
1383
|
style: Ie(h.value),
|
|
@@ -1390,13 +1393,13 @@ const fo = (e) => {
|
|
|
1390
1393
|
w("span", {
|
|
1391
1394
|
class: "action-icon",
|
|
1392
1395
|
innerHTML: C.icon
|
|
1393
|
-
}, null, 8,
|
|
1394
|
-
w("span",
|
|
1396
|
+
}, null, 8, Zo),
|
|
1397
|
+
w("span", No, Z(C.label), 1)
|
|
1395
1398
|
], 8, Bo))), 128))
|
|
1396
1399
|
], 6), [
|
|
1397
1400
|
[Ae, l.value]
|
|
1398
1401
|
])
|
|
1399
|
-
])) : (p(), y("div",
|
|
1402
|
+
])) : (p(), y("div", Uo, [
|
|
1400
1403
|
(p(!0), y(X, null, de(m.value, (C) => (p(), y("button", {
|
|
1401
1404
|
key: C.type,
|
|
1402
1405
|
type: "button",
|
|
@@ -1408,12 +1411,12 @@ const fo = (e) => {
|
|
|
1408
1411
|
w("span", {
|
|
1409
1412
|
class: "action-icon",
|
|
1410
1413
|
innerHTML: C.icon
|
|
1411
|
-
}, null, 8,
|
|
1412
|
-
], 8,
|
|
1414
|
+
}, null, 8, Go)
|
|
1415
|
+
], 8, Wo))), 128))
|
|
1413
1416
|
]))
|
|
1414
1417
|
], 2));
|
|
1415
1418
|
}
|
|
1416
|
-
}),
|
|
1419
|
+
}), zo = ["tabindex"], qo = /* @__PURE__ */ te({
|
|
1417
1420
|
__name: "ARow",
|
|
1418
1421
|
props: {
|
|
1419
1422
|
rowIndex: {},
|
|
@@ -1450,7 +1453,7 @@ const fo = (e) => {
|
|
|
1450
1453
|
config: a.value,
|
|
1451
1454
|
position: i.value,
|
|
1452
1455
|
onAction: u
|
|
1453
|
-
}, null, 8, ["row-index", "store", "config", "position"])) :
|
|
1456
|
+
}, null, 8, ["row-index", "store", "config", "position"])) : q("", !0),
|
|
1454
1457
|
e.store.config.view !== "uncounted" ? ge(d.$slots, "index", { key: 1 }, () => [
|
|
1455
1458
|
e.store.config.view === "list" ? (p(), y("td", {
|
|
1456
1459
|
key: 0,
|
|
@@ -1461,8 +1464,8 @@ const fo = (e) => {
|
|
|
1461
1464
|
tabIndex: -1,
|
|
1462
1465
|
class: ae(["tree-index", e.store.hasPinnedColumns ? "sticky-index" : ""]),
|
|
1463
1466
|
onClick: m[0] || (m[0] = (b) => e.store.toggleRowExpand(e.rowIndex))
|
|
1464
|
-
}, Z(r.value), 3)) :
|
|
1465
|
-
], !0) :
|
|
1467
|
+
}, Z(r.value), 3)) : q("", !0)
|
|
1468
|
+
], !0) : q("", !0),
|
|
1466
1469
|
l.value && i.value === "after-index" ? (p(), me(it, {
|
|
1467
1470
|
key: 2,
|
|
1468
1471
|
"row-index": e.rowIndex,
|
|
@@ -1470,7 +1473,7 @@ const fo = (e) => {
|
|
|
1470
1473
|
config: a.value,
|
|
1471
1474
|
position: i.value,
|
|
1472
1475
|
onAction: u
|
|
1473
|
-
}, null, 8, ["row-index", "store", "config", "position"])) :
|
|
1476
|
+
}, null, 8, ["row-index", "store", "config", "position"])) : q("", !0),
|
|
1474
1477
|
ge(d.$slots, "default", {}, void 0, !0),
|
|
1475
1478
|
l.value && i.value === "end" ? (p(), me(it, {
|
|
1476
1479
|
key: 3,
|
|
@@ -1479,12 +1482,12 @@ const fo = (e) => {
|
|
|
1479
1482
|
config: a.value,
|
|
1480
1483
|
position: i.value,
|
|
1481
1484
|
onAction: u
|
|
1482
|
-
}, null, 8, ["row-index", "store", "config", "position"])) :
|
|
1483
|
-
], 8,
|
|
1485
|
+
}, null, 8, ["row-index", "store", "config", "position"])) : q("", !0)
|
|
1486
|
+
], 8, zo)), [
|
|
1484
1487
|
[Ae, s.value]
|
|
1485
1488
|
]);
|
|
1486
1489
|
}
|
|
1487
|
-
}),
|
|
1490
|
+
}), pn = /* @__PURE__ */ Pe(qo, [["__scopeId", "data-v-e7ca13d1"]]), xt = /* @__PURE__ */ new WeakMap(), Yo = {
|
|
1488
1491
|
mounted(e, t) {
|
|
1489
1492
|
const o = !t.modifiers.bubble;
|
|
1490
1493
|
let n;
|
|
@@ -1499,21 +1502,21 @@ const fo = (e) => {
|
|
|
1499
1502
|
const t = xt.get(e);
|
|
1500
1503
|
t && typeof t == "function" ? t() : t?.stop(), xt.delete(e);
|
|
1501
1504
|
}
|
|
1502
|
-
},
|
|
1505
|
+
}, Xo = { mounted(e, t) {
|
|
1503
1506
|
typeof t.value == "function" ? ct(e, t.value) : ct(e, ...t.value);
|
|
1504
1507
|
} };
|
|
1505
|
-
function
|
|
1508
|
+
function jo() {
|
|
1506
1509
|
let e = !1;
|
|
1507
1510
|
const t = ue(!1);
|
|
1508
1511
|
return (o, n) => {
|
|
1509
1512
|
if (t.value = n.value, e) return;
|
|
1510
1513
|
e = !0;
|
|
1511
|
-
const s =
|
|
1514
|
+
const s = fo(o, n.value);
|
|
1512
1515
|
oe(t, (r) => s.value = r);
|
|
1513
1516
|
};
|
|
1514
1517
|
}
|
|
1515
|
-
|
|
1516
|
-
const
|
|
1518
|
+
jo();
|
|
1519
|
+
const Jo = { class: "gantt-connection-overlay" }, Qo = {
|
|
1517
1520
|
class: "connection-svg",
|
|
1518
1521
|
style: {
|
|
1519
1522
|
position: "absolute",
|
|
@@ -1524,7 +1527,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1524
1527
|
pointerEvents: "none",
|
|
1525
1528
|
zIndex: 1
|
|
1526
1529
|
}
|
|
1527
|
-
},
|
|
1530
|
+
}, Ko = ["d", "stroke-width", "onDblclick"], el = ["id", "d", "stroke", "stroke-width", "onDblclick"], tl = 0.25, lt = 16, nl = /* @__PURE__ */ te({
|
|
1528
1531
|
__name: "AGanttConnection",
|
|
1529
1532
|
props: {
|
|
1530
1533
|
store: {}
|
|
@@ -1541,13 +1544,13 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1541
1544
|
(P) => P.barId === a.to.barId && P.side === a.to.side
|
|
1542
1545
|
);
|
|
1543
1546
|
if (!l || !i) return "";
|
|
1544
|
-
const u = l.position.x + lt / 2, d = l.position.y + lt / 2, m = i.position.x + lt / 2, b = i.position.y + lt / 2, h = Math.abs(m - u), I = Math.max(h *
|
|
1547
|
+
const u = l.position.x + lt / 2, d = l.position.y + lt / 2, m = i.position.x + lt / 2, b = i.position.y + lt / 2, h = Math.abs(m - u), I = Math.max(h * tl, 50), x = u + (a.from.side === "left" ? -I : I), f = m + (a.to.side === "left" ? -I : I), g = { x: 0.5 * u + 0.5 * x, y: 0.5 * d + 0.5 * d }, k = { x: 0.5 * x + 0.5 * f, y: 0.5 * d + 0.5 * b }, C = { x: 0.5 * f + 0.5 * m, y: 0.5 * b + 0.5 * b }, E = { x: 0.5 * g.x + 0.5 * k.x, y: 0.5 * g.y + 0.5 * k.y }, R = { x: 0.5 * k.x + 0.5 * C.x, y: 0.5 * k.y + 0.5 * C.y }, $ = { x: 0.5 * E.x + 0.5 * R.x, y: 0.5 * E.y + 0.5 * R.y };
|
|
1545
1548
|
return `M ${u} ${d} Q ${x} ${d}, ${$.x} ${$.y} Q ${f} ${b}, ${m} ${b}`;
|
|
1546
1549
|
}, r = (a) => {
|
|
1547
1550
|
e.store.deleteConnection(a.id) && o("connection:delete", a);
|
|
1548
1551
|
};
|
|
1549
|
-
return (a, l) => (p(), y("div",
|
|
1550
|
-
(p(), y("svg",
|
|
1552
|
+
return (a, l) => (p(), y("div", Jo, [
|
|
1553
|
+
(p(), y("svg", Qo, [
|
|
1551
1554
|
l[0] || (l[0] = w("defs", null, [
|
|
1552
1555
|
w("path", {
|
|
1553
1556
|
id: "arrowhead",
|
|
@@ -1579,7 +1582,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1579
1582
|
fill: "none",
|
|
1580
1583
|
class: "connection-hitbox",
|
|
1581
1584
|
onDblclick: (u) => r(i)
|
|
1582
|
-
}, null, 40,
|
|
1585
|
+
}, null, 40, Ko))), 128)),
|
|
1583
1586
|
(p(!0), y(X, null, de(n.value, (i) => (p(), y("path", {
|
|
1584
1587
|
id: i.id,
|
|
1585
1588
|
key: i.id,
|
|
@@ -1590,17 +1593,17 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1590
1593
|
"marker-mid": "url(#arrowhead-marker)",
|
|
1591
1594
|
class: "connection-path animated-path",
|
|
1592
1595
|
onDblclick: (u) => r(i)
|
|
1593
|
-
}, null, 40,
|
|
1596
|
+
}, null, 40, el))), 128))
|
|
1594
1597
|
]))
|
|
1595
1598
|
]));
|
|
1596
1599
|
}
|
|
1597
|
-
}),
|
|
1600
|
+
}), ol = /* @__PURE__ */ Pe(nl, [["__scopeId", "data-v-d5929c98"]]), ll = { class: "column-filter" }, al = {
|
|
1598
1601
|
key: 2,
|
|
1599
1602
|
class: "checkbox-filter"
|
|
1600
|
-
},
|
|
1603
|
+
}, sl = ["value"], rl = {
|
|
1601
1604
|
key: 5,
|
|
1602
1605
|
class: "date-range-filter"
|
|
1603
|
-
},
|
|
1606
|
+
}, il = /* @__PURE__ */ te({
|
|
1604
1607
|
__name: "ATableColumnFilter",
|
|
1605
1608
|
props: {
|
|
1606
1609
|
column: {},
|
|
@@ -1632,7 +1635,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1632
1635
|
}, l = () => {
|
|
1633
1636
|
t.value = "", o.startValue = "", o.endValue = "", e.store.clearFilter(e.colIndex);
|
|
1634
1637
|
};
|
|
1635
|
-
return (i, u) => (p(), y("div",
|
|
1638
|
+
return (i, u) => (p(), y("div", ll, [
|
|
1636
1639
|
(e.column.filterType || "text") === "text" ? j((p(), y("input", {
|
|
1637
1640
|
key: 0,
|
|
1638
1641
|
"onUpdate:modelValue": u[0] || (u[0] = (d) => t.value = d),
|
|
@@ -1649,7 +1652,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1649
1652
|
onInput: u[3] || (u[3] = (d) => r(t.value))
|
|
1650
1653
|
}, null, 544)), [
|
|
1651
1654
|
[be, t.value]
|
|
1652
|
-
]) : e.column.filterType === "checkbox" ? (p(), y("label",
|
|
1655
|
+
]) : e.column.filterType === "checkbox" ? (p(), y("label", al, [
|
|
1653
1656
|
j(w("input", {
|
|
1654
1657
|
"onUpdate:modelValue": u[4] || (u[4] = (d) => t.value = d),
|
|
1655
1658
|
type: "checkbox",
|
|
@@ -1669,9 +1672,9 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1669
1672
|
(p(!0), y(X, null, de(n(e.column), (d) => (p(), y("option", {
|
|
1670
1673
|
key: d.value || d,
|
|
1671
1674
|
value: d.value || d
|
|
1672
|
-
}, Z(d.label || d), 9,
|
|
1675
|
+
}, Z(d.label || d), 9, sl))), 128))
|
|
1673
1676
|
], 544)), [
|
|
1674
|
-
[
|
|
1677
|
+
[Cn, t.value]
|
|
1675
1678
|
]) : e.column.filterType === "date" ? j((p(), y("input", {
|
|
1676
1679
|
key: 4,
|
|
1677
1680
|
"onUpdate:modelValue": u[8] || (u[8] = (d) => t.value = d),
|
|
@@ -1680,7 +1683,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1680
1683
|
onChange: u[9] || (u[9] = (d) => r(t.value))
|
|
1681
1684
|
}, null, 544)), [
|
|
1682
1685
|
[be, t.value]
|
|
1683
|
-
]) : e.column.filterType === "dateRange" ? (p(), y("div",
|
|
1686
|
+
]) : e.column.filterType === "dateRange" ? (p(), y("div", rl, [
|
|
1684
1687
|
j(w("input", {
|
|
1685
1688
|
"onUpdate:modelValue": u[10] || (u[10] = (d) => o.startValue = d),
|
|
1686
1689
|
type: "date",
|
|
@@ -1698,41 +1701,41 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1698
1701
|
}, null, 544), [
|
|
1699
1702
|
[be, o.endValue]
|
|
1700
1703
|
])
|
|
1701
|
-
])) : e.column.filterType === "component" && e.column.filterComponent ? (p(), me(
|
|
1704
|
+
])) : e.column.filterType === "component" && e.column.filterComponent ? (p(), me(Fe(e.column.filterComponent), {
|
|
1702
1705
|
key: 6,
|
|
1703
1706
|
value: t.value,
|
|
1704
1707
|
column: e.column,
|
|
1705
1708
|
"col-index": e.colIndex,
|
|
1706
1709
|
store: e.store,
|
|
1707
1710
|
"onUpdate:value": u[14] || (u[14] = (d) => r(d))
|
|
1708
|
-
}, null, 40, ["value", "column", "col-index", "store"])) :
|
|
1711
|
+
}, null, 40, ["value", "column", "col-index", "store"])) : q("", !0),
|
|
1709
1712
|
s.value ? (p(), y("button", {
|
|
1710
1713
|
key: 7,
|
|
1711
1714
|
class: "clear-btn",
|
|
1712
1715
|
title: "Clear",
|
|
1713
1716
|
onClick: l
|
|
1714
|
-
}, "×")) :
|
|
1717
|
+
}, "×")) : q("", !0)
|
|
1715
1718
|
]));
|
|
1716
1719
|
}
|
|
1717
|
-
}),
|
|
1720
|
+
}), ul = /* @__PURE__ */ Pe(il, [["__scopeId", "data-v-a809a3bf"]]), cl = { key: 0 }, dl = {
|
|
1718
1721
|
class: "atable-header-row",
|
|
1719
1722
|
tabindex: "-1"
|
|
1720
|
-
},
|
|
1723
|
+
}, fl = {
|
|
1721
1724
|
key: 2,
|
|
1722
1725
|
class: "row-actions-header"
|
|
1723
|
-
},
|
|
1726
|
+
}, vl = ["data-colindex", "onClick"], ml = {
|
|
1724
1727
|
key: 3,
|
|
1725
1728
|
class: "row-actions-header"
|
|
1726
|
-
},
|
|
1729
|
+
}, pl = {
|
|
1727
1730
|
key: 0,
|
|
1728
1731
|
class: "atable-filters-row"
|
|
1729
|
-
},
|
|
1732
|
+
}, hl = {
|
|
1730
1733
|
key: 2,
|
|
1731
1734
|
class: "row-actions-header"
|
|
1732
|
-
},
|
|
1735
|
+
}, gl = {
|
|
1733
1736
|
key: 3,
|
|
1734
1737
|
class: "row-actions-header"
|
|
1735
|
-
},
|
|
1738
|
+
}, hn = /* @__PURE__ */ te({
|
|
1736
1739
|
__name: "ATableHeader",
|
|
1737
1740
|
props: {
|
|
1738
1741
|
columns: {},
|
|
@@ -1746,12 +1749,12 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1746
1749
|
typeof d == "number" && d !== i && e.store.resizeColumn(u, i);
|
|
1747
1750
|
}
|
|
1748
1751
|
};
|
|
1749
|
-
return (a, l) => e.columns.length ? (p(), y("thead",
|
|
1750
|
-
w("tr",
|
|
1752
|
+
return (a, l) => e.columns.length ? (p(), y("thead", cl, [
|
|
1753
|
+
w("tr", dl, [
|
|
1751
1754
|
o.value && n.value === "before-index" ? (p(), y("th", {
|
|
1752
1755
|
key: 0,
|
|
1753
1756
|
class: ae(["row-actions-header", { "sticky-column": n.value === "before-index" }])
|
|
1754
|
-
}, null, 2)) :
|
|
1757
|
+
}, null, 2)) : q("", !0),
|
|
1755
1758
|
e.store.zeroColumn ? (p(), y("th", {
|
|
1756
1759
|
key: 1,
|
|
1757
1760
|
id: "header-index",
|
|
@@ -1760,8 +1763,8 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1760
1763
|
e.store.isTreeView ? "tree-index" : "",
|
|
1761
1764
|
e.store.config.view === "list-expansion" ? "list-expansion-index" : ""
|
|
1762
1765
|
], "list-index"])
|
|
1763
|
-
}, null, 2)) :
|
|
1764
|
-
o.value && n.value === "after-index" ? (p(), y("th",
|
|
1766
|
+
}, null, 2)) : q("", !0),
|
|
1767
|
+
o.value && n.value === "after-index" ? (p(), y("th", fl)) : q("", !0),
|
|
1765
1768
|
(p(!0), y(X, null, de(e.columns, (i, u) => j((p(), y("th", {
|
|
1766
1769
|
key: i.name,
|
|
1767
1770
|
"data-colindex": u,
|
|
@@ -1773,16 +1776,16 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1773
1776
|
ge(a.$slots, "default", {}, () => [
|
|
1774
1777
|
Dt(Z(i.label || String.fromCharCode(u + 97).toUpperCase()), 1)
|
|
1775
1778
|
])
|
|
1776
|
-
], 14,
|
|
1777
|
-
[V(
|
|
1779
|
+
], 14, vl)), [
|
|
1780
|
+
[V(Xo), r]
|
|
1778
1781
|
])), 128)),
|
|
1779
|
-
o.value && n.value === "end" ? (p(), y("th",
|
|
1782
|
+
o.value && n.value === "end" ? (p(), y("th", ml)) : q("", !0)
|
|
1780
1783
|
]),
|
|
1781
|
-
t.value.length > 0 ? (p(), y("tr",
|
|
1784
|
+
t.value.length > 0 ? (p(), y("tr", pl, [
|
|
1782
1785
|
o.value && n.value === "before-index" ? (p(), y("th", {
|
|
1783
1786
|
key: 0,
|
|
1784
1787
|
class: ae(["row-actions-header", { "sticky-column": n.value === "before-index" }])
|
|
1785
|
-
}, null, 2)) :
|
|
1788
|
+
}, null, 2)) : q("", !0),
|
|
1786
1789
|
e.store.zeroColumn ? (p(), y("th", {
|
|
1787
1790
|
key: 1,
|
|
1788
1791
|
class: ae([[
|
|
@@ -1790,25 +1793,25 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1790
1793
|
e.store.isTreeView ? "tree-index" : "",
|
|
1791
1794
|
e.store.config.view === "list-expansion" ? "list-expansion-index" : ""
|
|
1792
1795
|
], "list-index"])
|
|
1793
|
-
}, null, 2)) :
|
|
1794
|
-
o.value && n.value === "after-index" ? (p(), y("th",
|
|
1796
|
+
}, null, 2)) : q("", !0),
|
|
1797
|
+
o.value && n.value === "after-index" ? (p(), y("th", hl)) : q("", !0),
|
|
1795
1798
|
(p(!0), y(X, null, de(e.columns, (i, u) => (p(), y("th", {
|
|
1796
1799
|
key: `filter-${i.name}`,
|
|
1797
1800
|
class: ae(`${i.pinned ? "sticky-column" : ""}`),
|
|
1798
1801
|
style: Ie(e.store.getHeaderCellStyle(i))
|
|
1799
1802
|
}, [
|
|
1800
|
-
i.filterable ? (p(), me(
|
|
1803
|
+
i.filterable ? (p(), me(ul, {
|
|
1801
1804
|
key: 0,
|
|
1802
1805
|
column: i,
|
|
1803
1806
|
"col-index": u,
|
|
1804
1807
|
store: e.store
|
|
1805
|
-
}, null, 8, ["column", "col-index", "store"])) :
|
|
1808
|
+
}, null, 8, ["column", "col-index", "store"])) : q("", !0)
|
|
1806
1809
|
], 6))), 128)),
|
|
1807
|
-
o.value && n.value === "end" ? (p(), y("th",
|
|
1808
|
-
])) :
|
|
1809
|
-
])) :
|
|
1810
|
+
o.value && n.value === "end" ? (p(), y("th", gl)) : q("", !0)
|
|
1811
|
+
])) : q("", !0)
|
|
1812
|
+
])) : q("", !0);
|
|
1810
1813
|
}
|
|
1811
|
-
}),
|
|
1814
|
+
}), gn = /* @__PURE__ */ te({
|
|
1812
1815
|
__name: "ATableModal",
|
|
1813
1816
|
props: {
|
|
1814
1817
|
store: {}
|
|
@@ -1841,9 +1844,9 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1841
1844
|
ge(r.$slots, "default")
|
|
1842
1845
|
], 36));
|
|
1843
1846
|
}
|
|
1844
|
-
}),
|
|
1845
|
-
const t = e.id ||
|
|
1846
|
-
return
|
|
1847
|
+
}), wl = (e) => {
|
|
1848
|
+
const t = e.id || mo();
|
|
1849
|
+
return Rn(`table-${t}`, () => {
|
|
1847
1850
|
const o = () => {
|
|
1848
1851
|
const c = [Object.assign({}, { rowModified: !1 })], v = /* @__PURE__ */ new Set();
|
|
1849
1852
|
for (let D = 0; D < s.value.length; D++) {
|
|
@@ -1919,7 +1922,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1919
1922
|
}), f = S({}), g = T(() => n.value.some((c) => c.pinned)), k = T(() => r.value.view === "gantt" || r.value.view === "tree-gantt"), C = T(() => r.value.view === "tree" || r.value.view === "tree-gantt"), E = T(() => {
|
|
1920
1923
|
const c = r.value;
|
|
1921
1924
|
return c.view === "gantt" || c.view === "tree-gantt" ? c.dependencyGraph !== !1 : !0;
|
|
1922
|
-
}),
|
|
1925
|
+
}), R = T(() => `${Math.ceil(s.value.length / 100 + 1)}ch`), $ = T(
|
|
1923
1926
|
() => r.value.view ? ["list", "tree", "tree-gantt", "list-expansion"].includes(r.value.view) : !1
|
|
1924
1927
|
), P = T(() => {
|
|
1925
1928
|
let c = s.value.map((v, M) => ({
|
|
@@ -1976,7 +1979,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
1976
1979
|
...n.value[c],
|
|
1977
1980
|
width: `${M}px`
|
|
1978
1981
|
};
|
|
1979
|
-
},
|
|
1982
|
+
}, Be = (c) => {
|
|
1980
1983
|
const v = s.value[c];
|
|
1981
1984
|
return k.value && v.gantt !== void 0;
|
|
1982
1985
|
}, Le = (c) => !C.value || u.value[c].isRoot || u.value[c].open, Ye = (c) => !C.value && r.value.view !== "list-expansion" ? "" : C.value && (u.value[c].isRoot || u.value[c].isParent) ? u.value[c].childrenOpen ? "▼" : "►" : r.value.view === "list-expansion" ? u.value[c].expanded ? "▼" : "►" : "", Xe = (c) => {
|
|
@@ -2008,9 +2011,9 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2008
2011
|
}, Ne = (c, v, M) => {
|
|
2009
2012
|
const _ = n.value[c], N = s.value[v], D = _.format;
|
|
2010
2013
|
return D ? typeof D == "function" ? D(M, { table: i.value, row: N, column: _ }) : typeof D == "string" ? Function(`"use strict";return (${D})`)()(M, { table: i.value, row: N, column: _ }) : M : M;
|
|
2011
|
-
},
|
|
2014
|
+
}, L = (c) => {
|
|
2012
2015
|
c.target instanceof Node && d.value.parent?.contains(c.target) || d.value.visible && (d.value.visible = !1);
|
|
2013
|
-
},
|
|
2016
|
+
}, B = (c, v) => v && c === 0 && v > 0 ? `${v}ch` : "inherit", G = (c) => {
|
|
2014
2017
|
const v = s.value[c.rowIndex]?.gantt;
|
|
2015
2018
|
v && (c.type === "resize" ? c.edge === "start" ? (v.startIndex = c.newStart, v.endIndex = c.end, v.colspan = v.endIndex - v.startIndex) : c.edge === "end" && (v.startIndex = c.start, v.endIndex = c.newEnd, v.colspan = v.endIndex - v.startIndex) : c.type === "bar" && (v.startIndex = c.newStart, v.endIndex = c.newEnd, v.colspan = v.endIndex - v.startIndex));
|
|
2016
2019
|
}, K = (c) => {
|
|
@@ -2046,7 +2049,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2046
2049
|
}, O = (c) => {
|
|
2047
2050
|
const v = I.value.findIndex((M) => M.id === c);
|
|
2048
2051
|
return v >= 0 ? (I.value.splice(v, 1), !0) : !1;
|
|
2049
|
-
},
|
|
2052
|
+
}, F = (c) => I.value.filter((v) => v.from.barId === c || v.to.barId === c), z = (c) => h.value.filter((v) => v.barId === c), ee = (c) => {
|
|
2050
2053
|
if (n.value[c].sortable === !1) return;
|
|
2051
2054
|
let v;
|
|
2052
2055
|
x.value.column === c && x.value.direction === "asc" ? v = "desc" : v = "asc", x.value.column = c, x.value.direction = v;
|
|
@@ -2120,12 +2123,12 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2120
2123
|
isGanttView: k,
|
|
2121
2124
|
isTreeView: C,
|
|
2122
2125
|
isDependencyGraphEnabled: E,
|
|
2123
|
-
numberedRowWidth:
|
|
2126
|
+
numberedRowWidth: R,
|
|
2124
2127
|
zeroColumn: $,
|
|
2125
2128
|
// actions
|
|
2126
2129
|
addRow: ce,
|
|
2127
2130
|
clearFilter: ie,
|
|
2128
|
-
closeModal:
|
|
2131
|
+
closeModal: L,
|
|
2129
2132
|
createConnection: Ve,
|
|
2130
2133
|
deleteConnection: O,
|
|
2131
2134
|
deleteRow: (c) => {
|
|
@@ -2152,11 +2155,11 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2152
2155
|
},
|
|
2153
2156
|
getCellData: U,
|
|
2154
2157
|
getCellDisplayValue: je,
|
|
2155
|
-
getConnectionsForBar:
|
|
2158
|
+
getConnectionsForBar: F,
|
|
2156
2159
|
getFormattedValue: Ne,
|
|
2157
|
-
getHandlesForBar:
|
|
2160
|
+
getHandlesForBar: z,
|
|
2158
2161
|
getHeaderCellStyle: we,
|
|
2159
|
-
getIndent:
|
|
2162
|
+
getIndent: B,
|
|
2160
2163
|
getRowExpandSymbol: Ye,
|
|
2161
2164
|
insertRowAbove: (c, v) => {
|
|
2162
2165
|
const M = Math.max(0, c);
|
|
@@ -2166,7 +2169,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2166
2169
|
const M = Math.min(c + 1, s.value.length);
|
|
2167
2170
|
return ce(v, M);
|
|
2168
2171
|
},
|
|
2169
|
-
isRowGantt:
|
|
2172
|
+
isRowGantt: Be,
|
|
2170
2173
|
isRowVisible: Le,
|
|
2171
2174
|
moveRow: (c, v) => {
|
|
2172
2175
|
if (c < 0 || c >= s.value.length || v < 0 || v >= s.value.length || c === v)
|
|
@@ -2200,10 +2203,10 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2200
2203
|
updateRows: J
|
|
2201
2204
|
};
|
|
2202
2205
|
})();
|
|
2203
|
-
},
|
|
2206
|
+
}, yl = {
|
|
2204
2207
|
class: "atable-container",
|
|
2205
2208
|
style: { position: "relative" }
|
|
2206
|
-
},
|
|
2209
|
+
}, bl = /* @__PURE__ */ te({
|
|
2207
2210
|
__name: "ATable",
|
|
2208
2211
|
props: /* @__PURE__ */ xe({
|
|
2209
2212
|
id: { default: "" },
|
|
@@ -2216,12 +2219,12 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2216
2219
|
}),
|
|
2217
2220
|
emits: /* @__PURE__ */ xe(["cellUpdate", "gantt:drag", "connection:event", "columns:update", "row:add", "row:delete", "row:duplicate", "row:insert-above", "row:insert-below", "row:move"], ["update:rows", "update:columns"]),
|
|
2218
2221
|
setup(e, { expose: t, emit: o }) {
|
|
2219
|
-
const n = Me(e, "rows"), s = Me(e, "columns"), r = o, a = ve("table"), l =
|
|
2222
|
+
const n = Me(e, "rows"), s = Me(e, "columns"), r = o, a = ve("table"), l = wl({ columns: s.value, rows: n.value, id: e.id, config: e.config });
|
|
2220
2223
|
l.$onAction(({ name: I, store: x, args: f, after: g }) => {
|
|
2221
2224
|
if (I === "setCellData" || I === "setCellText") {
|
|
2222
|
-
const [k, C, E] = f,
|
|
2225
|
+
const [k, C, E] = f, R = x.getCellData(k, C);
|
|
2223
2226
|
g(() => {
|
|
2224
|
-
n.value = [...x.rows], r("cellUpdate", { colIndex: k, rowIndex: C, newValue: E, oldValue:
|
|
2227
|
+
n.value = [...x.rows], r("cellUpdate", { colIndex: k, rowIndex: C, newValue: E, oldValue: R });
|
|
2225
2228
|
});
|
|
2226
2229
|
} else if (I === "updateGanttBar") {
|
|
2227
2230
|
const [k] = f;
|
|
@@ -2245,7 +2248,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2245
2248
|
},
|
|
2246
2249
|
{ deep: !0 }
|
|
2247
2250
|
), $e(() => {
|
|
2248
|
-
s.value.some((I) => I.pinned) && (u(), l.isTreeView &&
|
|
2251
|
+
s.value.some((I) => I.pinned) && (u(), l.isTreeView && mn(a, u, { childList: !0, subtree: !0 }));
|
|
2249
2252
|
});
|
|
2250
2253
|
const i = T(() => l.columns.filter((I) => I.pinned).length), u = () => {
|
|
2251
2254
|
const I = a.value, x = I?.rows[0], f = I?.rows[1], g = x ? Array.from(x.cells) : [];
|
|
@@ -2256,8 +2259,8 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2256
2259
|
for (const k of I?.rows || []) {
|
|
2257
2260
|
let C = 0;
|
|
2258
2261
|
const E = [];
|
|
2259
|
-
for (const
|
|
2260
|
-
(
|
|
2262
|
+
for (const R of k.cells)
|
|
2263
|
+
(R.classList.contains("sticky-column") || R.classList.contains("sticky-index")) && (R.style.left = `${C}px`, C += R.offsetWidth, E.push(R));
|
|
2261
2264
|
E.length > 0 && E[E.length - 1].classList.add("sticky-column-edge");
|
|
2262
2265
|
}
|
|
2263
2266
|
};
|
|
@@ -2339,7 +2342,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2339
2342
|
insertRowAbove: l.insertRowAbove,
|
|
2340
2343
|
insertRowBelow: l.insertRowBelow,
|
|
2341
2344
|
moveRow: l.moveRow
|
|
2342
|
-
}), (I, x) => (p(), y("div",
|
|
2345
|
+
}), (I, x) => (p(), y("div", yl, [
|
|
2343
2346
|
j((p(), y("table", {
|
|
2344
2347
|
ref: "table",
|
|
2345
2348
|
class: "atable",
|
|
@@ -2348,14 +2351,14 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2348
2351
|
})
|
|
2349
2352
|
}, [
|
|
2350
2353
|
ge(I.$slots, "header", { data: V(l) }, () => [
|
|
2351
|
-
At(
|
|
2354
|
+
At(hn, {
|
|
2352
2355
|
columns: V(l).columns,
|
|
2353
2356
|
store: V(l)
|
|
2354
2357
|
}, null, 8, ["columns", "store"])
|
|
2355
2358
|
], !0),
|
|
2356
2359
|
w("tbody", null, [
|
|
2357
2360
|
ge(I.$slots, "body", { data: V(l) }, () => [
|
|
2358
|
-
(p(!0), y(X, null, de(V(l).filteredRows, (f, g) => (p(), me(
|
|
2361
|
+
(p(!0), y(X, null, de(V(l).filteredRows, (f, g) => (p(), me(pn, {
|
|
2359
2362
|
key: `${f.originalIndex}-${g}`,
|
|
2360
2363
|
row: f,
|
|
2361
2364
|
"row-index": f.originalIndex,
|
|
@@ -2366,7 +2369,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2366
2369
|
(p(!0), y(X, null, de(d(f), (k, C) => (p(), y(X, {
|
|
2367
2370
|
key: k.name
|
|
2368
2371
|
}, [
|
|
2369
|
-
k.isGantt ? (p(), me(
|
|
2372
|
+
k.isGantt ? (p(), me(Fe(k.ganttComponent || "AGanttCell"), {
|
|
2370
2373
|
key: 0,
|
|
2371
2374
|
store: V(l),
|
|
2372
2375
|
"columns-count": V(l).columns.length - i.value,
|
|
@@ -2383,7 +2386,7 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2383
2386
|
width: V(l).config.fullWidth ? "auto" : null
|
|
2384
2387
|
}),
|
|
2385
2388
|
"onConnection:create": m
|
|
2386
|
-
}, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "row-index", "col-index", "style"])) : (p(), me(
|
|
2389
|
+
}, null, 40, ["store", "columns-count", "color", "start", "end", "colspan", "pinned", "row-index", "col-index", "style"])) : (p(), me(Fe(k.cellComponent || "ACell"), {
|
|
2387
2390
|
key: 1,
|
|
2388
2391
|
store: V(l),
|
|
2389
2392
|
pinned: k.pinned,
|
|
@@ -2403,9 +2406,9 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2403
2406
|
]),
|
|
2404
2407
|
ge(I.$slots, "footer", { data: V(l) }, void 0, !0),
|
|
2405
2408
|
ge(I.$slots, "modal", { data: V(l) }, () => [
|
|
2406
|
-
j(At(
|
|
2409
|
+
j(At(gn, { store: V(l) }, {
|
|
2407
2410
|
default: $t(() => [
|
|
2408
|
-
(p(), me(
|
|
2411
|
+
(p(), me(Fe(V(l).modal.component), dt({
|
|
2409
2412
|
key: `${V(l).modal.rowIndex}:${V(l).modal.colIndex}`,
|
|
2410
2413
|
"col-index": V(l).modal.colIndex,
|
|
2411
2414
|
"row-index": V(l).modal.rowIndex,
|
|
@@ -2418,38 +2421,38 @@ const jo = { class: "gantt-connection-overlay" }, Jo = {
|
|
|
2418
2421
|
])
|
|
2419
2422
|
], !0)
|
|
2420
2423
|
], 4)), [
|
|
2421
|
-
[V(
|
|
2424
|
+
[V(Yo), V(l).closeModal]
|
|
2422
2425
|
]),
|
|
2423
|
-
V(l).isGanttView && V(l).isDependencyGraphEnabled ? (p(), me(
|
|
2426
|
+
V(l).isGanttView && V(l).isDependencyGraphEnabled ? (p(), me(ol, {
|
|
2424
2427
|
key: 0,
|
|
2425
2428
|
store: V(l),
|
|
2426
2429
|
"onConnection:delete": b
|
|
2427
|
-
}, null, 8, ["store"])) :
|
|
2430
|
+
}, null, 8, ["store"])) : q("", !0)
|
|
2428
2431
|
]));
|
|
2429
2432
|
}
|
|
2430
|
-
}),
|
|
2431
|
-
function
|
|
2432
|
-
return p(), y("div",
|
|
2433
|
-
w("h2",
|
|
2433
|
+
}), xl = /* @__PURE__ */ Pe(bl, [["__scopeId", "data-v-7b50ad21"]]), kl = {}, Il = { class: "aloading" }, Ml = { class: "aloading-header" };
|
|
2434
|
+
function Cl(e, t) {
|
|
2435
|
+
return p(), y("div", Il, [
|
|
2436
|
+
w("h2", Ml, [
|
|
2434
2437
|
ge(e.$slots, "default", {}, void 0, !0)
|
|
2435
2438
|
]),
|
|
2436
2439
|
t[0] || (t[0] = w("div", { class: "aloading-bar" }, null, -1))
|
|
2437
2440
|
]);
|
|
2438
2441
|
}
|
|
2439
|
-
const
|
|
2440
|
-
function
|
|
2441
|
-
return p(), y("div",
|
|
2442
|
-
w("h2",
|
|
2442
|
+
const El = /* @__PURE__ */ Pe(kl, [["render", Cl], ["__scopeId", "data-v-a930a25b"]]), Al = {}, $l = { class: "aloading" }, Tl = { class: "aloading-header" };
|
|
2443
|
+
function Dl(e, t) {
|
|
2444
|
+
return p(), y("div", $l, [
|
|
2445
|
+
w("h2", Tl, [
|
|
2443
2446
|
ge(e.$slots, "default", {}, void 0, !0)
|
|
2444
2447
|
]),
|
|
2445
2448
|
t[0] || (t[0] = w("div", { class: "aloading-bar" }, null, -1))
|
|
2446
2449
|
]);
|
|
2447
2450
|
}
|
|
2448
|
-
const
|
|
2449
|
-
function
|
|
2450
|
-
e.component("ACell",
|
|
2451
|
+
const Sl = /* @__PURE__ */ Pe(Al, [["render", Dl], ["__scopeId", "data-v-e1165876"]]);
|
|
2452
|
+
function Rl(e) {
|
|
2453
|
+
e.component("ACell", wo), e.component("AExpansionRow", Io), e.component("AGanttCell", Do), e.component("ARow", pn), e.component("ARowActions", it), e.component("ATable", xl), e.component("ATableHeader", hn), e.component("ATableLoading", El), e.component("ATableLoadingBar", Sl), e.component("ATableModal", gn);
|
|
2451
2454
|
}
|
|
2452
|
-
const
|
|
2455
|
+
const Ll = { class: "aform_form-element" }, Vl = { class: "aform_field-label" }, Hl = { class: "aform_display-value" }, Pl = ["for"], _l = { class: "aform_checkbox-container aform_input-field" }, Ol = ["id", "disabled", "required"], Fl = ["innerHTML"], Bl = /* @__PURE__ */ te({
|
|
2453
2456
|
__name: "ACheckbox",
|
|
2454
2457
|
props: /* @__PURE__ */ xe({
|
|
2455
2458
|
schema: {},
|
|
@@ -2466,16 +2469,16 @@ const Rl = { class: "aform_form-element" }, Ll = { class: "aform_field-label" },
|
|
|
2466
2469
|
emits: ["update:modelValue"],
|
|
2467
2470
|
setup(e) {
|
|
2468
2471
|
const t = Me(e, "modelValue");
|
|
2469
|
-
return (o, n) => (p(), y("div",
|
|
2472
|
+
return (o, n) => (p(), y("div", Ll, [
|
|
2470
2473
|
e.mode === "display" ? (p(), y(X, { key: 0 }, [
|
|
2471
|
-
w("label",
|
|
2472
|
-
w("span",
|
|
2474
|
+
w("label", Vl, Z(e.label), 1),
|
|
2475
|
+
w("span", Hl, Z(t.value ? "✓" : "✗"), 1)
|
|
2473
2476
|
], 64)) : (p(), y(X, { key: 1 }, [
|
|
2474
2477
|
w("label", {
|
|
2475
2478
|
class: "aform_field-label",
|
|
2476
2479
|
for: e.uuid
|
|
2477
|
-
}, Z(e.label), 9,
|
|
2478
|
-
w("span",
|
|
2480
|
+
}, Z(e.label), 9, Pl),
|
|
2481
|
+
w("span", _l, [
|
|
2479
2482
|
j(w("input", {
|
|
2480
2483
|
id: e.uuid,
|
|
2481
2484
|
"onUpdate:modelValue": n[0] || (n[0] = (s) => t.value = s),
|
|
@@ -2483,14 +2486,14 @@ const Rl = { class: "aform_form-element" }, Ll = { class: "aform_field-label" },
|
|
|
2483
2486
|
class: "aform_checkbox",
|
|
2484
2487
|
disabled: e.mode === "read",
|
|
2485
2488
|
required: e.required
|
|
2486
|
-
}, null, 8,
|
|
2489
|
+
}, null, 8, Ol), [
|
|
2487
2490
|
[rn, t.value]
|
|
2488
2491
|
])
|
|
2489
2492
|
]),
|
|
2490
2493
|
j(w("p", {
|
|
2491
2494
|
class: "aform_error",
|
|
2492
2495
|
innerHTML: e.validation.errorMessage
|
|
2493
|
-
}, null, 8,
|
|
2496
|
+
}, null, 8, Fl), [
|
|
2494
2497
|
[Ae, e.validation.errorMessage]
|
|
2495
2498
|
])
|
|
2496
2499
|
], 64))
|
|
@@ -2501,7 +2504,7 @@ const Rl = { class: "aform_form-element" }, Ll = { class: "aform_field-label" },
|
|
|
2501
2504
|
for (const [n, s] of t)
|
|
2502
2505
|
o[n] = s;
|
|
2503
2506
|
return o;
|
|
2504
|
-
},
|
|
2507
|
+
}, Zl = /* @__PURE__ */ Ce(Bl, [["__scopeId", "data-v-cc185b72"]]), Nl = /* @__PURE__ */ te({
|
|
2505
2508
|
__name: "AComboBox",
|
|
2506
2509
|
props: {
|
|
2507
2510
|
schema: {},
|
|
@@ -2517,7 +2520,7 @@ const Rl = { class: "aform_form-element" }, Ll = { class: "aform_field-label" },
|
|
|
2517
2520
|
},
|
|
2518
2521
|
setup(e) {
|
|
2519
2522
|
return (t, o) => {
|
|
2520
|
-
const n =
|
|
2523
|
+
const n = Dn("ATableModal");
|
|
2521
2524
|
return p(), me(n, {
|
|
2522
2525
|
event: e.event,
|
|
2523
2526
|
"cell-data": e.cellData,
|
|
@@ -2534,7 +2537,7 @@ const Rl = { class: "aform_form-element" }, Ll = { class: "aform_field-label" },
|
|
|
2534
2537
|
}, 8, ["event", "cell-data"]);
|
|
2535
2538
|
};
|
|
2536
2539
|
}
|
|
2537
|
-
}),
|
|
2540
|
+
}), Ul = { class: "aform_display-value" }, Wl = ["id", "disabled", "required"], Gl = ["for"], zl = ["innerHTML"], ql = /* @__PURE__ */ te({
|
|
2538
2541
|
__name: "ADate",
|
|
2539
2542
|
props: /* @__PURE__ */ xe({
|
|
2540
2543
|
schema: {},
|
|
@@ -2560,7 +2563,7 @@ const Rl = { class: "aform_form-element" }, Ll = { class: "aform_field-label" },
|
|
|
2560
2563
|
};
|
|
2561
2564
|
return (s, r) => (p(), y("div", null, [
|
|
2562
2565
|
e.mode === "display" ? (p(), y(X, { key: 0 }, [
|
|
2563
|
-
w("span",
|
|
2566
|
+
w("span", Ul, Z(t.value ? new Date(t.value).toLocaleDateString() : ""), 1),
|
|
2564
2567
|
w("label", null, Z(e.label), 1)
|
|
2565
2568
|
], 64)) : (p(), y(X, { key: 1 }, [
|
|
2566
2569
|
j(w("input", {
|
|
@@ -2571,20 +2574,20 @@ const Rl = { class: "aform_form-element" }, Ll = { class: "aform_field-label" },
|
|
|
2571
2574
|
disabled: e.mode === "read",
|
|
2572
2575
|
required: e.required,
|
|
2573
2576
|
onClick: n
|
|
2574
|
-
}, null, 8,
|
|
2577
|
+
}, null, 8, Wl), [
|
|
2575
2578
|
[be, t.value]
|
|
2576
2579
|
]),
|
|
2577
|
-
w("label", { for: e.uuid }, Z(e.label), 9,
|
|
2580
|
+
w("label", { for: e.uuid }, Z(e.label), 9, Gl),
|
|
2578
2581
|
j(w("p", {
|
|
2579
2582
|
innerHTML: e.validation.errorMessage
|
|
2580
|
-
}, null, 8,
|
|
2583
|
+
}, null, 8, zl), [
|
|
2581
2584
|
[Ae, e.validation.errorMessage]
|
|
2582
2585
|
])
|
|
2583
2586
|
], 64))
|
|
2584
2587
|
]));
|
|
2585
2588
|
}
|
|
2586
|
-
}),
|
|
2587
|
-
function
|
|
2589
|
+
}), Yl = /* @__PURE__ */ Ce(ql, [["__scopeId", "data-v-8e467bb3"]]);
|
|
2590
|
+
function wn(e, t) {
|
|
2588
2591
|
return vt() ? (mt(e, t), !0) : !1;
|
|
2589
2592
|
}
|
|
2590
2593
|
// @__NO_SIDE_EFFECTS__
|
|
@@ -2596,7 +2599,7 @@ function jt() {
|
|
|
2596
2599
|
on: (r) => {
|
|
2597
2600
|
e.add(r);
|
|
2598
2601
|
const a = () => t(r);
|
|
2599
|
-
return
|
|
2602
|
+
return wn(a), { off: a };
|
|
2600
2603
|
},
|
|
2601
2604
|
off: t,
|
|
2602
2605
|
trigger: (...r) => Promise.all(Array.from(e).map((a) => a(...r))),
|
|
@@ -2605,11 +2608,11 @@ function jt() {
|
|
|
2605
2608
|
}
|
|
2606
2609
|
};
|
|
2607
2610
|
}
|
|
2608
|
-
const
|
|
2611
|
+
const yn = typeof window < "u" && typeof document < "u";
|
|
2609
2612
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2610
|
-
const
|
|
2611
|
-
},
|
|
2612
|
-
function
|
|
2613
|
+
const Xl = Object.prototype.toString, jl = (e) => Xl.call(e) === "[object Object]", Je = () => {
|
|
2614
|
+
}, Jl = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
2615
|
+
function Ql(...e) {
|
|
2613
2616
|
if (e.length !== 1) return un(...e);
|
|
2614
2617
|
const t = e[0];
|
|
2615
2618
|
return typeof t == "function" ? Rt(St(() => ({
|
|
@@ -2620,13 +2623,13 @@ function Jl(...e) {
|
|
|
2620
2623
|
function kt(e) {
|
|
2621
2624
|
return Array.isArray(e) ? e : [e];
|
|
2622
2625
|
}
|
|
2623
|
-
function
|
|
2626
|
+
function Kl(e, t, o) {
|
|
2624
2627
|
return oe(e, t, {
|
|
2625
2628
|
...o,
|
|
2626
2629
|
immediate: !0
|
|
2627
2630
|
});
|
|
2628
2631
|
}
|
|
2629
|
-
const
|
|
2632
|
+
const bn = yn ? window : void 0, ea = yn ? window.document : void 0;
|
|
2630
2633
|
function Ue(e) {
|
|
2631
2634
|
var t;
|
|
2632
2635
|
const o = A(e);
|
|
@@ -2637,24 +2640,24 @@ function It(...e) {
|
|
|
2637
2640
|
const n = kt(A(e[0])).filter((s) => s != null);
|
|
2638
2641
|
return n.every((s) => typeof s != "string") ? n : void 0;
|
|
2639
2642
|
});
|
|
2640
|
-
return
|
|
2643
|
+
return Kl(() => {
|
|
2641
2644
|
var n, s;
|
|
2642
2645
|
return [
|
|
2643
|
-
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => Ue(r))) !== null && n !== void 0 ? n : [
|
|
2646
|
+
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => Ue(r))) !== null && n !== void 0 ? n : [bn].filter((r) => r != null),
|
|
2644
2647
|
kt(A(o.value ? e[1] : e[0])),
|
|
2645
2648
|
kt(V(o.value ? e[2] : e[1])),
|
|
2646
2649
|
A(o.value ? e[3] : e[2])
|
|
2647
2650
|
];
|
|
2648
2651
|
}, ([n, s, r, a], l, i) => {
|
|
2649
2652
|
if (!n?.length || !s?.length || !r?.length) return;
|
|
2650
|
-
const u =
|
|
2653
|
+
const u = jl(a) ? { ...a } : a, d = n.flatMap((m) => s.flatMap((b) => r.map((h) => t(m, b, h, u))));
|
|
2651
2654
|
i(() => {
|
|
2652
2655
|
d.forEach((m) => m());
|
|
2653
2656
|
});
|
|
2654
2657
|
}, { flush: "post" });
|
|
2655
2658
|
}
|
|
2656
2659
|
function Jt(e, t, o = {}) {
|
|
2657
|
-
const { window: n =
|
|
2660
|
+
const { window: n = bn, ignore: s = [], capture: r = !0, detectIframe: a = !1, controls: l = !1 } = o;
|
|
2658
2661
|
if (!n) return l ? {
|
|
2659
2662
|
stop: Je,
|
|
2660
2663
|
cancel: Je,
|
|
@@ -2718,21 +2721,21 @@ function Jt(e, t, o = {}) {
|
|
|
2718
2721
|
}
|
|
2719
2722
|
} : x;
|
|
2720
2723
|
}
|
|
2721
|
-
const
|
|
2724
|
+
const ta = {
|
|
2722
2725
|
multiple: !0,
|
|
2723
2726
|
accept: "*",
|
|
2724
2727
|
reset: !1,
|
|
2725
2728
|
directory: !1
|
|
2726
2729
|
};
|
|
2727
|
-
function
|
|
2730
|
+
function na(e) {
|
|
2728
2731
|
if (!e) return null;
|
|
2729
2732
|
if (e instanceof FileList) return e;
|
|
2730
2733
|
const t = new DataTransfer();
|
|
2731
2734
|
for (const o of e) t.items.add(o);
|
|
2732
2735
|
return t.files;
|
|
2733
2736
|
}
|
|
2734
|
-
function
|
|
2735
|
-
const { document: t =
|
|
2737
|
+
function oa(e = {}) {
|
|
2738
|
+
const { document: t = ea } = e, o = S(na(e.initialFiles)), { on: n, trigger: s } = /* @__PURE__ */ jt(), { on: r, trigger: a } = /* @__PURE__ */ jt(), l = T(() => {
|
|
2736
2739
|
var m;
|
|
2737
2740
|
const b = (m = Ue(e.input)) !== null && m !== void 0 ? m : t ? t.createElement("input") : void 0;
|
|
2738
2741
|
return b && (b.type = "file", b.onchange = (h) => {
|
|
@@ -2744,12 +2747,12 @@ function na(e = {}) {
|
|
|
2744
2747
|
o.value = null, l.value && l.value.value && (l.value.value = "", s(null));
|
|
2745
2748
|
}, u = (m) => {
|
|
2746
2749
|
const b = l.value;
|
|
2747
|
-
b && (b.multiple = A(m.multiple), b.accept = A(m.accept), b.webkitdirectory = A(m.directory),
|
|
2750
|
+
b && (b.multiple = A(m.multiple), b.accept = A(m.accept), b.webkitdirectory = A(m.directory), Jl(m, "capture") && (b.capture = A(m.capture)));
|
|
2748
2751
|
}, d = (m) => {
|
|
2749
2752
|
const b = l.value;
|
|
2750
2753
|
if (!b) return;
|
|
2751
2754
|
const h = {
|
|
2752
|
-
...
|
|
2755
|
+
...ta,
|
|
2753
2756
|
...e,
|
|
2754
2757
|
...m
|
|
2755
2758
|
};
|
|
@@ -2769,10 +2772,10 @@ function Mt(e) {
|
|
|
2769
2772
|
return typeof Window < "u" && e instanceof Window ? e.document.documentElement : typeof Document < "u" && e instanceof Document ? e.documentElement : e;
|
|
2770
2773
|
}
|
|
2771
2774
|
const Ct = /* @__PURE__ */ new WeakMap();
|
|
2772
|
-
function
|
|
2775
|
+
function la(e, t = !1) {
|
|
2773
2776
|
const o = ue(t);
|
|
2774
2777
|
let n = "";
|
|
2775
|
-
oe(
|
|
2778
|
+
oe(Ql(e), (a) => {
|
|
2776
2779
|
const l = Mt(A(a));
|
|
2777
2780
|
if (l) {
|
|
2778
2781
|
const i = l;
|
|
@@ -2787,7 +2790,7 @@ function oa(e, t = !1) {
|
|
|
2787
2790
|
const a = Mt(A(e));
|
|
2788
2791
|
!a || !o.value || (a.style.overflow = n, Ct.delete(a), o.value = !1);
|
|
2789
2792
|
};
|
|
2790
|
-
return
|
|
2793
|
+
return wn(r), T({
|
|
2791
2794
|
get() {
|
|
2792
2795
|
return o.value;
|
|
2793
2796
|
},
|
|
@@ -2796,7 +2799,7 @@ function oa(e, t = !1) {
|
|
|
2796
2799
|
}
|
|
2797
2800
|
});
|
|
2798
2801
|
}
|
|
2799
|
-
const Et = /* @__PURE__ */ new WeakMap(),
|
|
2802
|
+
const Et = /* @__PURE__ */ new WeakMap(), xn = {
|
|
2800
2803
|
mounted(e, t) {
|
|
2801
2804
|
const o = !t.modifiers.bubble;
|
|
2802
2805
|
let n;
|
|
@@ -2812,27 +2815,27 @@ const Et = /* @__PURE__ */ new WeakMap(), bn = {
|
|
|
2812
2815
|
t && typeof t == "function" ? t() : t?.stop(), Et.delete(e);
|
|
2813
2816
|
}
|
|
2814
2817
|
};
|
|
2815
|
-
function
|
|
2818
|
+
function aa() {
|
|
2816
2819
|
let e = !1;
|
|
2817
2820
|
const t = ue(!1);
|
|
2818
2821
|
return (o, n) => {
|
|
2819
2822
|
if (t.value = n.value, e) return;
|
|
2820
2823
|
e = !0;
|
|
2821
|
-
const s =
|
|
2824
|
+
const s = la(o, n.value);
|
|
2822
2825
|
oe(t, (r) => s.value = r);
|
|
2823
2826
|
};
|
|
2824
2827
|
}
|
|
2825
|
-
|
|
2826
|
-
const
|
|
2828
|
+
aa();
|
|
2829
|
+
const sa = {
|
|
2827
2830
|
key: 0,
|
|
2828
2831
|
class: "input-wrapper"
|
|
2829
|
-
},
|
|
2832
|
+
}, ra = { class: "aform_display-value" }, ia = { class: "input-wrapper" }, ua = ["disabled"], ca = {
|
|
2830
2833
|
id: "autocomplete-results",
|
|
2831
2834
|
class: "autocomplete-results"
|
|
2832
|
-
},
|
|
2835
|
+
}, da = {
|
|
2833
2836
|
key: 0,
|
|
2834
2837
|
class: "loading autocomplete-result"
|
|
2835
|
-
},
|
|
2838
|
+
}, fa = ["onClick"], va = /* @__PURE__ */ te({
|
|
2836
2839
|
__name: "ADropdown",
|
|
2837
2840
|
props: /* @__PURE__ */ xe({
|
|
2838
2841
|
schema: {},
|
|
@@ -2899,14 +2902,14 @@ const aa = {
|
|
|
2899
2902
|
}
|
|
2900
2903
|
n.activeItemIndex = 0;
|
|
2901
2904
|
};
|
|
2902
|
-
return (h, I) => e.mode === "display" ? (p(), y("div",
|
|
2903
|
-
w("span",
|
|
2905
|
+
return (h, I) => e.mode === "display" ? (p(), y("div", sa, [
|
|
2906
|
+
w("span", ra, Z(t.value ?? ""), 1),
|
|
2904
2907
|
w("label", null, Z(e.label), 1)
|
|
2905
2908
|
])) : j((p(), y("div", {
|
|
2906
2909
|
key: 1,
|
|
2907
2910
|
class: ae(["autocomplete", { isOpen: n.open }])
|
|
2908
2911
|
}, [
|
|
2909
|
-
w("div",
|
|
2912
|
+
w("div", ia, [
|
|
2910
2913
|
j(w("input", {
|
|
2911
2914
|
"onUpdate:modelValue": I[0] || (I[0] = (x) => t.value = x),
|
|
2912
2915
|
type: "text",
|
|
@@ -2920,42 +2923,42 @@ const aa = {
|
|
|
2920
2923
|
ye(s, ["esc"]),
|
|
2921
2924
|
ye(s, ["tab"])
|
|
2922
2925
|
]
|
|
2923
|
-
}, null, 40,
|
|
2926
|
+
}, null, 40, ua), [
|
|
2924
2927
|
[be, t.value]
|
|
2925
2928
|
]),
|
|
2926
|
-
j(w("ul",
|
|
2927
|
-
n.loading ? (p(), y("li",
|
|
2929
|
+
j(w("ul", ca, [
|
|
2930
|
+
n.loading ? (p(), y("li", da, "Loading results...")) : (p(!0), y(X, { key: 1 }, de(n.results, (x, f) => (p(), y("li", {
|
|
2928
2931
|
key: x,
|
|
2929
2932
|
class: ae(["autocomplete-result", { "is-active": f === n.activeItemIndex }]),
|
|
2930
2933
|
onClick: he((g) => a(x), ["stop"])
|
|
2931
|
-
}, Z(x), 11,
|
|
2934
|
+
}, Z(x), 11, fa))), 128))
|
|
2932
2935
|
], 512), [
|
|
2933
2936
|
[Ae, n.open]
|
|
2934
2937
|
]),
|
|
2935
2938
|
w("label", null, Z(e.label), 1)
|
|
2936
2939
|
])
|
|
2937
2940
|
], 2)), [
|
|
2938
|
-
[V(
|
|
2941
|
+
[V(xn), s]
|
|
2939
2942
|
]);
|
|
2940
2943
|
}
|
|
2941
|
-
}),
|
|
2942
|
-
function
|
|
2944
|
+
}), ma = /* @__PURE__ */ Ce(va, [["__scopeId", "data-v-c823d475"]]);
|
|
2945
|
+
function kn(e, t) {
|
|
2943
2946
|
return vt() ? (mt(e, t), !0) : !1;
|
|
2944
2947
|
}
|
|
2945
|
-
const
|
|
2948
|
+
const pa = typeof window < "u" && typeof document < "u";
|
|
2946
2949
|
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
2947
|
-
const
|
|
2950
|
+
const ha = (e) => e != null, ga = Object.prototype.toString, wa = (e) => ga.call(e) === "[object Object]", ya = () => {
|
|
2948
2951
|
};
|
|
2949
2952
|
function ut(e) {
|
|
2950
2953
|
return Array.isArray(e) ? e : [e];
|
|
2951
2954
|
}
|
|
2952
|
-
function
|
|
2955
|
+
function ba(e, t, o) {
|
|
2953
2956
|
return oe(e, t, {
|
|
2954
2957
|
...o,
|
|
2955
2958
|
immediate: !0
|
|
2956
2959
|
});
|
|
2957
2960
|
}
|
|
2958
|
-
const
|
|
2961
|
+
const qe = pa ? window : void 0;
|
|
2959
2962
|
function Ge(e) {
|
|
2960
2963
|
var t;
|
|
2961
2964
|
const o = A(e);
|
|
@@ -2966,41 +2969,41 @@ function Ke(...e) {
|
|
|
2966
2969
|
const n = ut(A(e[0])).filter((s) => s != null);
|
|
2967
2970
|
return n.every((s) => typeof s != "string") ? n : void 0;
|
|
2968
2971
|
});
|
|
2969
|
-
return
|
|
2972
|
+
return ba(() => {
|
|
2970
2973
|
var n, s;
|
|
2971
2974
|
return [
|
|
2972
|
-
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => Ge(r))) !== null && n !== void 0 ? n : [
|
|
2975
|
+
(n = (s = o.value) === null || s === void 0 ? void 0 : s.map((r) => Ge(r))) !== null && n !== void 0 ? n : [qe].filter((r) => r != null),
|
|
2973
2976
|
ut(A(o.value ? e[1] : e[0])),
|
|
2974
2977
|
ut(V(o.value ? e[2] : e[1])),
|
|
2975
2978
|
A(o.value ? e[3] : e[2])
|
|
2976
2979
|
];
|
|
2977
2980
|
}, ([n, s, r, a], l, i) => {
|
|
2978
2981
|
if (!n?.length || !s?.length || !r?.length) return;
|
|
2979
|
-
const u =
|
|
2982
|
+
const u = wa(a) ? { ...a } : a, d = n.flatMap((m) => s.flatMap((b) => r.map((h) => t(m, b, h, u))));
|
|
2980
2983
|
i(() => {
|
|
2981
2984
|
d.forEach((m) => m());
|
|
2982
2985
|
});
|
|
2983
2986
|
}, { flush: "post" });
|
|
2984
2987
|
}
|
|
2985
2988
|
// @__NO_SIDE_EFFECTS__
|
|
2986
|
-
function
|
|
2989
|
+
function xa() {
|
|
2987
2990
|
const e = ue(!1), t = pt();
|
|
2988
2991
|
return t && $e(() => {
|
|
2989
2992
|
e.value = !0;
|
|
2990
2993
|
}, t), e;
|
|
2991
2994
|
}
|
|
2992
2995
|
// @__NO_SIDE_EFFECTS__
|
|
2993
|
-
function
|
|
2994
|
-
const t = /* @__PURE__ */
|
|
2996
|
+
function ka(e) {
|
|
2997
|
+
const t = /* @__PURE__ */ xa();
|
|
2995
2998
|
return T(() => (t.value, !!e()));
|
|
2996
2999
|
}
|
|
2997
|
-
function
|
|
2998
|
-
const { window: n =
|
|
3000
|
+
function Ia(e, t, o = {}) {
|
|
3001
|
+
const { window: n = qe, ...s } = o;
|
|
2999
3002
|
let r;
|
|
3000
|
-
const a = /* @__PURE__ */
|
|
3003
|
+
const a = /* @__PURE__ */ ka(() => n && "MutationObserver" in n), l = () => {
|
|
3001
3004
|
r && (r.disconnect(), r = void 0);
|
|
3002
3005
|
}, i = oe(T(() => {
|
|
3003
|
-
const m = ut(A(e)).map(Ge).filter(
|
|
3006
|
+
const m = ut(A(e)).map(Ge).filter(ha);
|
|
3004
3007
|
return new Set(m);
|
|
3005
3008
|
}), (m) => {
|
|
3006
3009
|
l(), a.value && m.size && (r = new MutationObserver(t), m.forEach((b) => r.observe(b, s)));
|
|
@@ -3010,22 +3013,22 @@ function ka(e, t, o = {}) {
|
|
|
3010
3013
|
}), u = () => r?.takeRecords(), d = () => {
|
|
3011
3014
|
i(), l();
|
|
3012
3015
|
};
|
|
3013
|
-
return
|
|
3016
|
+
return kn(d), {
|
|
3014
3017
|
isSupported: a,
|
|
3015
3018
|
stop: d,
|
|
3016
3019
|
takeRecords: u
|
|
3017
3020
|
};
|
|
3018
3021
|
}
|
|
3019
|
-
function
|
|
3020
|
-
const { window: n =
|
|
3021
|
-
if (!n || !s) return
|
|
3022
|
+
function Ma(e, t, o = {}) {
|
|
3023
|
+
const { window: n = qe, document: s = n?.document, flush: r = "sync" } = o;
|
|
3024
|
+
if (!n || !s) return ya;
|
|
3022
3025
|
let a;
|
|
3023
3026
|
const l = (d) => {
|
|
3024
3027
|
a?.(), a = d;
|
|
3025
3028
|
}, i = ht(() => {
|
|
3026
3029
|
const d = Ge(e);
|
|
3027
3030
|
if (d) {
|
|
3028
|
-
const { stop: m } =
|
|
3031
|
+
const { stop: m } = Ia(s, (b) => {
|
|
3029
3032
|
b.map((h) => [...h.removedNodes]).flat().some((h) => h === d || h.contains(d)) && t(b);
|
|
3030
3033
|
}, {
|
|
3031
3034
|
window: n,
|
|
@@ -3037,12 +3040,12 @@ function Ia(e, t, o = {}) {
|
|
|
3037
3040
|
}, { flush: r }), u = () => {
|
|
3038
3041
|
i(), l();
|
|
3039
3042
|
};
|
|
3040
|
-
return
|
|
3043
|
+
return kn(u), u;
|
|
3041
3044
|
}
|
|
3042
3045
|
// @__NO_SIDE_EFFECTS__
|
|
3043
|
-
function
|
|
3046
|
+
function Ca(e = {}) {
|
|
3044
3047
|
var t;
|
|
3045
|
-
const { window: o =
|
|
3048
|
+
const { window: o = qe, deep: n = !0, triggerOnRemoval: s = !1 } = e, r = (t = e.document) !== null && t !== void 0 ? t : o?.document, a = () => {
|
|
3046
3049
|
let u = r?.activeElement;
|
|
3047
3050
|
if (n)
|
|
3048
3051
|
for (var d; u?.shadowRoot; ) u = u == null || (d = u.shadowRoot) === null || d === void 0 ? void 0 : d.activeElement;
|
|
@@ -3059,19 +3062,19 @@ function Ma(e = {}) {
|
|
|
3059
3062
|
d.relatedTarget === null && i();
|
|
3060
3063
|
}, u), Ke(o, "focus", i, u);
|
|
3061
3064
|
}
|
|
3062
|
-
return s &&
|
|
3065
|
+
return s && Ma(l, i, { document: r }), i(), l;
|
|
3063
3066
|
}
|
|
3064
|
-
const
|
|
3065
|
-
function
|
|
3066
|
-
const { window: o =
|
|
3067
|
-
if (!o || !(/* @__PURE__ */
|
|
3067
|
+
const Ea = "focusin", Aa = "focusout", $a = ":focus-within";
|
|
3068
|
+
function Ta(e, t = {}) {
|
|
3069
|
+
const { window: o = qe } = t, n = T(() => Ge(e)), s = ue(!1), r = T(() => s.value);
|
|
3070
|
+
if (!o || !(/* @__PURE__ */ Ca(t)).value) return { focused: r };
|
|
3068
3071
|
const a = { passive: !0 };
|
|
3069
|
-
return Ke(n,
|
|
3072
|
+
return Ke(n, Ea, () => s.value = !0, a), Ke(n, Aa, () => {
|
|
3070
3073
|
var l, i, u;
|
|
3071
|
-
return s.value = (l = (i = n.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i,
|
|
3074
|
+
return s.value = (l = (i = n.value) === null || i === void 0 || (u = i.matches) === null || u === void 0 ? void 0 : u.call(i, $a)) !== null && l !== void 0 ? l : !1;
|
|
3072
3075
|
}, a), { focused: r };
|
|
3073
3076
|
}
|
|
3074
|
-
function
|
|
3077
|
+
function Da(e, { window: t = qe, scrollTarget: o } = {}) {
|
|
3075
3078
|
const n = S(!1), s = () => {
|
|
3076
3079
|
if (!t) return;
|
|
3077
3080
|
const r = t.document, a = Ge(e);
|
|
@@ -3092,12 +3095,12 @@ function Ta(e, { window: t = ze, scrollTarget: o } = {}) {
|
|
|
3092
3095
|
}), n;
|
|
3093
3096
|
}
|
|
3094
3097
|
const Se = (e) => {
|
|
3095
|
-
let t =
|
|
3098
|
+
let t = Da(e).value;
|
|
3096
3099
|
return t = t && e.offsetHeight > 0, t;
|
|
3097
3100
|
}, Re = (e) => e.tabIndex >= 0, Qt = (e) => {
|
|
3098
3101
|
const t = e.target;
|
|
3099
|
-
return
|
|
3100
|
-
},
|
|
3102
|
+
return Ft(t);
|
|
3103
|
+
}, Ft = (e) => {
|
|
3101
3104
|
let t;
|
|
3102
3105
|
if (e instanceof HTMLTableCellElement) {
|
|
3103
3106
|
const o = e.parentElement?.previousElementSibling;
|
|
@@ -3109,8 +3112,8 @@ const Se = (e) => {
|
|
|
3109
3112
|
const o = e.previousElementSibling;
|
|
3110
3113
|
o && (t = o);
|
|
3111
3114
|
}
|
|
3112
|
-
return t && (!Re(t) || !Se(t)) ?
|
|
3113
|
-
},
|
|
3115
|
+
return t && (!Re(t) || !Se(t)) ? Ft(t) : t;
|
|
3116
|
+
}, Sa = (e) => {
|
|
3114
3117
|
const t = e.target;
|
|
3115
3118
|
let o;
|
|
3116
3119
|
if (t instanceof HTMLTableCellElement) {
|
|
@@ -3126,11 +3129,11 @@ const Se = (e) => {
|
|
|
3126
3129
|
s && (o = s);
|
|
3127
3130
|
}
|
|
3128
3131
|
}
|
|
3129
|
-
return o && (!Re(o) || !Se(o)) ?
|
|
3132
|
+
return o && (!Re(o) || !Se(o)) ? Bt(o) : o;
|
|
3130
3133
|
}, Kt = (e) => {
|
|
3131
3134
|
const t = e.target;
|
|
3132
|
-
return
|
|
3133
|
-
},
|
|
3135
|
+
return Bt(t);
|
|
3136
|
+
}, Bt = (e) => {
|
|
3134
3137
|
let t;
|
|
3135
3138
|
if (e instanceof HTMLTableCellElement) {
|
|
3136
3139
|
const o = e.parentElement?.nextElementSibling;
|
|
@@ -3142,8 +3145,8 @@ const Se = (e) => {
|
|
|
3142
3145
|
const o = e.nextElementSibling;
|
|
3143
3146
|
o && (t = o);
|
|
3144
3147
|
}
|
|
3145
|
-
return t && (!Re(t) || !Se(t)) ?
|
|
3146
|
-
},
|
|
3148
|
+
return t && (!Re(t) || !Se(t)) ? Bt(t) : t;
|
|
3149
|
+
}, Ra = (e) => {
|
|
3147
3150
|
const t = e.target;
|
|
3148
3151
|
let o;
|
|
3149
3152
|
if (t instanceof HTMLTableCellElement) {
|
|
@@ -3159,7 +3162,7 @@ const Se = (e) => {
|
|
|
3159
3162
|
s && (o = s);
|
|
3160
3163
|
}
|
|
3161
3164
|
}
|
|
3162
|
-
return o && (!Re(o) || !Se(o)) ?
|
|
3165
|
+
return o && (!Re(o) || !Se(o)) ? Ft(o) : o;
|
|
3163
3166
|
}, en = (e) => {
|
|
3164
3167
|
const t = e.target;
|
|
3165
3168
|
return Zt(t);
|
|
@@ -3178,12 +3181,12 @@ const Se = (e) => {
|
|
|
3178
3181
|
}, on = (e) => {
|
|
3179
3182
|
const t = e.target.parentElement?.lastElementChild;
|
|
3180
3183
|
return t && (!Re(t) || !Se(t)) ? Zt(t) : t;
|
|
3181
|
-
}, at = ["alt", "control", "shift", "meta"],
|
|
3184
|
+
}, at = ["alt", "control", "shift", "meta"], La = {
|
|
3182
3185
|
ArrowUp: "up",
|
|
3183
3186
|
ArrowDown: "down",
|
|
3184
3187
|
ArrowLeft: "left",
|
|
3185
3188
|
ArrowRight: "right"
|
|
3186
|
-
},
|
|
3189
|
+
}, In = {
|
|
3187
3190
|
"keydown.up": (e) => {
|
|
3188
3191
|
const t = Qt(e);
|
|
3189
3192
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
@@ -3201,11 +3204,11 @@ const Se = (e) => {
|
|
|
3201
3204
|
e.preventDefault(), e.stopPropagation(), t && t.focus();
|
|
3202
3205
|
},
|
|
3203
3206
|
"keydown.control.up": (e) => {
|
|
3204
|
-
const t =
|
|
3207
|
+
const t = Sa(e);
|
|
3205
3208
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
3206
3209
|
},
|
|
3207
3210
|
"keydown.control.down": (e) => {
|
|
3208
|
-
const t =
|
|
3211
|
+
const t = Ra(e);
|
|
3209
3212
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
3210
3213
|
},
|
|
3211
3214
|
"keydown.control.left": (e) => {
|
|
@@ -3247,7 +3250,7 @@ const Se = (e) => {
|
|
|
3247
3250
|
t && (e.preventDefault(), e.stopPropagation(), t.focus());
|
|
3248
3251
|
}
|
|
3249
3252
|
};
|
|
3250
|
-
function
|
|
3253
|
+
function Va(e) {
|
|
3251
3254
|
const t = (a) => {
|
|
3252
3255
|
let l = null;
|
|
3253
3256
|
return a.parent && (typeof a.parent == "string" ? l = document.querySelector(a.parent) : a.parent instanceof HTMLElement ? l = a.parent : l = a.parent.value), l;
|
|
@@ -3273,9 +3276,9 @@ function La(e) {
|
|
|
3273
3276
|
let i = [];
|
|
3274
3277
|
return a.selectors ? i = o(a) : l && (i = Array.from(l.children).filter((u) => Re(u) && Se(u))), i;
|
|
3275
3278
|
}, s = (a) => (l) => {
|
|
3276
|
-
const i =
|
|
3279
|
+
const i = La[l.key] || l.key.toLowerCase();
|
|
3277
3280
|
if (at.includes(i)) return;
|
|
3278
|
-
const u = a.handlers ||
|
|
3281
|
+
const u = a.handlers || In;
|
|
3279
3282
|
for (const d of Object.keys(u)) {
|
|
3280
3283
|
const [m, ...b] = d.split(".");
|
|
3281
3284
|
if (m === "keydown" && b.includes(i)) {
|
|
@@ -3300,7 +3303,7 @@ function La(e) {
|
|
|
3300
3303
|
for (const a of e) {
|
|
3301
3304
|
const l = t(a), i = n(a), u = s(a), d = l ? [l] : i;
|
|
3302
3305
|
for (const m of d) {
|
|
3303
|
-
const { focused: b } =
|
|
3306
|
+
const { focused: b } = Ta(S(m)), h = oe(b, (I) => {
|
|
3304
3307
|
I ? m.addEventListener("keydown", u) : m.removeEventListener("keydown", u);
|
|
3305
3308
|
});
|
|
3306
3309
|
r.push(h);
|
|
@@ -3311,15 +3314,15 @@ function La(e) {
|
|
|
3311
3314
|
a();
|
|
3312
3315
|
});
|
|
3313
3316
|
}
|
|
3314
|
-
const
|
|
3317
|
+
const Ha = { class: "aform_display-value" }, Pa = { key: 0 }, _a = {
|
|
3315
3318
|
key: 1,
|
|
3316
3319
|
ref: "datepicker",
|
|
3317
3320
|
class: "adatepicker",
|
|
3318
3321
|
tabindex: "0"
|
|
3319
|
-
},
|
|
3322
|
+
}, Oa = {
|
|
3320
3323
|
colspan: "5",
|
|
3321
3324
|
tabindex: -1
|
|
3322
|
-
},
|
|
3325
|
+
}, Fa = ["onClick", "onKeydown"], Ba = 6, ln = 7, Za = /* @__PURE__ */ te({
|
|
3323
3326
|
__name: "ADatePicker",
|
|
3324
3327
|
props: /* @__PURE__ */ xe({
|
|
3325
3328
|
schema: {},
|
|
@@ -3348,9 +3351,9 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3348
3351
|
});
|
|
3349
3352
|
const i = () => {
|
|
3350
3353
|
a.value = [];
|
|
3351
|
-
const C = new Date(r.value, s.value, 1), E = C.getDay(),
|
|
3354
|
+
const C = new Date(r.value, s.value, 1), E = C.getDay(), R = C.setDate(C.getDate() - E);
|
|
3352
3355
|
for (const $ of Array(43).keys())
|
|
3353
|
-
a.value.push(
|
|
3356
|
+
a.value.push(R + $ * 864e5);
|
|
3354
3357
|
};
|
|
3355
3358
|
oe([s, r], i);
|
|
3356
3359
|
const u = () => r.value -= 1, d = () => r.value += 1, m = () => {
|
|
@@ -3367,12 +3370,12 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3367
3370
|
year: "numeric",
|
|
3368
3371
|
month: "long"
|
|
3369
3372
|
}));
|
|
3370
|
-
return
|
|
3373
|
+
return Va([
|
|
3371
3374
|
{
|
|
3372
3375
|
parent: l,
|
|
3373
3376
|
selectors: "td",
|
|
3374
3377
|
handlers: {
|
|
3375
|
-
...
|
|
3378
|
+
...In,
|
|
3376
3379
|
"keydown.pageup": m,
|
|
3377
3380
|
"keydown.shift.pageup": u,
|
|
3378
3381
|
"keydown.pagedown": b,
|
|
@@ -3384,9 +3387,9 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3384
3387
|
}
|
|
3385
3388
|
}
|
|
3386
3389
|
]), t({ currentMonth: s, currentYear: r, selectedDate: n }), (C, E) => e.mode === "display" || e.mode === "read" ? (p(), y(X, { key: 0 }, [
|
|
3387
|
-
w("span",
|
|
3388
|
-
e.label ? (p(), y("label",
|
|
3389
|
-
], 64)) : (p(), y("div",
|
|
3390
|
+
w("span", Ha, Z(o.value ? new Date(o.value).toLocaleDateString() : ""), 1),
|
|
3391
|
+
e.label ? (p(), y("label", Pa, Z(e.label), 1)) : q("", !0)
|
|
3392
|
+
], 64)) : (p(), y("div", _a, [
|
|
3390
3393
|
w("table", null, [
|
|
3391
3394
|
w("tbody", null, [
|
|
3392
3395
|
w("tr", null, [
|
|
@@ -3395,7 +3398,7 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3395
3398
|
tabindex: -1,
|
|
3396
3399
|
onClick: m
|
|
3397
3400
|
}, "<"),
|
|
3398
|
-
w("th",
|
|
3401
|
+
w("th", Oa, Z(k.value), 1),
|
|
3399
3402
|
w("td", {
|
|
3400
3403
|
id: "next-month-btn",
|
|
3401
3404
|
tabindex: -1,
|
|
@@ -3411,27 +3414,27 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3411
3414
|
w("td", null, "S"),
|
|
3412
3415
|
w("td", null, "S")
|
|
3413
3416
|
], -1)),
|
|
3414
|
-
(p(), y(X, null, de(Ba, (
|
|
3417
|
+
(p(), y(X, null, de(Ba, (R) => w("tr", { key: R }, [
|
|
3415
3418
|
(p(), y(X, null, de(ln, ($) => w("td", {
|
|
3416
3419
|
ref_for: !0,
|
|
3417
3420
|
ref: "celldate",
|
|
3418
|
-
key: x(
|
|
3421
|
+
key: x(R, $),
|
|
3419
3422
|
contenteditable: !1,
|
|
3420
3423
|
spellcheck: !1,
|
|
3421
3424
|
tabindex: 0,
|
|
3422
3425
|
class: ae({
|
|
3423
|
-
todaysDate: h(f(
|
|
3424
|
-
selectedDate: I(f(
|
|
3426
|
+
todaysDate: h(f(R, $)),
|
|
3427
|
+
selectedDate: I(f(R, $))
|
|
3425
3428
|
}),
|
|
3426
|
-
onClick: he((P) => g(x(
|
|
3427
|
-
onKeydown: ye((P) => g(x(
|
|
3428
|
-
}, Z(new Date(f(
|
|
3429
|
+
onClick: he((P) => g(x(R, $)), ["prevent", "stop"]),
|
|
3430
|
+
onKeydown: ye((P) => g(x(R, $)), ["enter"])
|
|
3431
|
+
}, Z(new Date(f(R, $)).getDate()), 43, Fa)), 64))
|
|
3429
3432
|
])), 64))
|
|
3430
3433
|
])
|
|
3431
3434
|
])
|
|
3432
3435
|
], 512));
|
|
3433
3436
|
}
|
|
3434
|
-
}),
|
|
3437
|
+
}), Na = /* @__PURE__ */ Ce(Za, [["__scopeId", "data-v-9da05d06"]]), Ua = /* @__PURE__ */ te({
|
|
3435
3438
|
__name: "CollapseButton",
|
|
3436
3439
|
props: {
|
|
3437
3440
|
collapsed: { type: Boolean }
|
|
@@ -3441,13 +3444,13 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3441
3444
|
class: ae(["collapse-button", e.collapsed ? "rotated" : "unrotated"])
|
|
3442
3445
|
}, "×", 2));
|
|
3443
3446
|
}
|
|
3444
|
-
}),
|
|
3447
|
+
}), Wa = /* @__PURE__ */ Ce(Ua, [["__scopeId", "data-v-6f1c1b45"]]), Ga = { class: "aform" }, za = {
|
|
3445
3448
|
key: 0,
|
|
3446
3449
|
class: "aform-nested-section"
|
|
3447
3450
|
}, qa = {
|
|
3448
3451
|
key: 0,
|
|
3449
3452
|
class: "aform-nested-label"
|
|
3450
|
-
},
|
|
3453
|
+
}, Ya = /* @__PURE__ */ te({
|
|
3451
3454
|
__name: "AForm",
|
|
3452
3455
|
props: /* @__PURE__ */ xe({
|
|
3453
3456
|
schema: {},
|
|
@@ -3473,7 +3476,7 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3473
3476
|
}, a = (m) => {
|
|
3474
3477
|
const b = {};
|
|
3475
3478
|
for (const [h, I] of Object.entries(m))
|
|
3476
|
-
["component", "fieldtype", "mode"].includes(h) || (b[h] = I);
|
|
3479
|
+
["component", "fieldtype", "hidden", "mode"].includes(h) || (b[h] = I);
|
|
3477
3480
|
if ("columns" in m) {
|
|
3478
3481
|
const h = m.rows;
|
|
3479
3482
|
(!h || Array.isArray(h) && h.length === 0) && (b.rows = n.value[m.fieldname] || []);
|
|
@@ -3497,11 +3500,11 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3497
3500
|
})));
|
|
3498
3501
|
});
|
|
3499
3502
|
const d = T(() => u.value);
|
|
3500
|
-
return (m, b) => (p(), y("form",
|
|
3503
|
+
return (m, b) => (p(), y("form", Ga, [
|
|
3501
3504
|
(p(!0), y(X, null, de(e.schema, (h, I) => (p(), y(X, { key: I }, [
|
|
3502
|
-
"schema" in h && Array.isArray(h.schema) && h.schema.length > 0 ? (p(), y("div",
|
|
3503
|
-
h.label && !("collapsible" in h) ? (p(), y("h4", qa, Z(h.label), 1)) :
|
|
3504
|
-
(p(), me(
|
|
3505
|
+
"schema" in h && Array.isArray(h.schema) && h.schema.length > 0 ? (p(), y("div", za, [
|
|
3506
|
+
h.label && !("collapsible" in h) ? (p(), y("h4", qa, Z(h.label), 1)) : q("", !0),
|
|
3507
|
+
(p(), me(Fe(h.component ?? "AForm"), {
|
|
3505
3508
|
data: s.value[h.fieldname],
|
|
3506
3509
|
mode: i(h),
|
|
3507
3510
|
schema: h.schema,
|
|
@@ -3509,7 +3512,7 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3509
3512
|
collapsible: h.collapsible,
|
|
3510
3513
|
"onUpdate:data": (x) => r(h.fieldname, x)
|
|
3511
3514
|
}, null, 40, ["data", "mode", "schema", "label", "collapsible", "onUpdate:data"]))
|
|
3512
|
-
])) : (p(), me(
|
|
3515
|
+
])) : h.hidden ? q("", !0) : (p(), me(Fe(h.component), dt({
|
|
3513
3516
|
key: 1,
|
|
3514
3517
|
modelValue: d.value[I].value,
|
|
3515
3518
|
"onUpdate:modelValue": (x) => d.value[I].value = x,
|
|
@@ -3520,7 +3523,7 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3520
3523
|
], 64))), 128))
|
|
3521
3524
|
]));
|
|
3522
3525
|
}
|
|
3523
|
-
}),
|
|
3526
|
+
}), Mn = /* @__PURE__ */ Ce(Ya, [["__scopeId", "data-v-121930fc"]]), Xa = /* @__PURE__ */ te({
|
|
3524
3527
|
__name: "AFieldset",
|
|
3525
3528
|
props: {
|
|
3526
3529
|
schema: {},
|
|
@@ -3541,13 +3544,13 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3541
3544
|
onSubmit: r
|
|
3542
3545
|
}, [
|
|
3543
3546
|
Dt(Z(e.label) + " ", 1),
|
|
3544
|
-
e.collapsible ? (p(), me(
|
|
3547
|
+
e.collapsible ? (p(), me(Wa, {
|
|
3545
3548
|
key: 0,
|
|
3546
3549
|
collapsed: o.value
|
|
3547
|
-
}, null, 8, ["collapsed"])) :
|
|
3548
|
-
], 32)) :
|
|
3550
|
+
}, null, 8, ["collapsed"])) : q("", !0)
|
|
3551
|
+
], 32)) : q("", !0),
|
|
3549
3552
|
ge(a.$slots, "default", { collapsed: o.value }, () => [
|
|
3550
|
-
j(At(
|
|
3553
|
+
j(At(Mn, {
|
|
3551
3554
|
data: n.value,
|
|
3552
3555
|
"onUpdate:data": l[0] || (l[0] = (i) => n.value = i),
|
|
3553
3556
|
schema: s.value,
|
|
@@ -3558,16 +3561,16 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3558
3561
|
], !0)
|
|
3559
3562
|
]));
|
|
3560
3563
|
}
|
|
3561
|
-
}),
|
|
3564
|
+
}), ja = /* @__PURE__ */ Ce(Xa, [["__scopeId", "data-v-3cefeba6"]]), Ja = { class: "aform_form-element aform_file-attach aform__grid--full" }, Qa = {
|
|
3562
3565
|
key: 0,
|
|
3563
3566
|
class: "aform_file-attach-feedback"
|
|
3564
|
-
},
|
|
3567
|
+
}, Ka = {
|
|
3565
3568
|
key: 1,
|
|
3566
3569
|
class: "aform_display-value"
|
|
3567
|
-
},
|
|
3570
|
+
}, es = {
|
|
3568
3571
|
key: 0,
|
|
3569
3572
|
class: "aform_file-attach-feedback"
|
|
3570
|
-
},
|
|
3573
|
+
}, ts = ["disabled"], ns = ["disabled"], os = /* @__PURE__ */ te({
|
|
3571
3574
|
__name: "AFileAttach",
|
|
3572
3575
|
props: {
|
|
3573
3576
|
schema: {},
|
|
@@ -3579,22 +3582,22 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3579
3582
|
validation: {}
|
|
3580
3583
|
},
|
|
3581
3584
|
setup(e) {
|
|
3582
|
-
const { files: t, open: o, reset: n, onChange: s } =
|
|
3585
|
+
const { files: t, open: o, reset: n, onChange: s } = oa(), r = T(() => {
|
|
3583
3586
|
const a = t.value?.length ?? 0;
|
|
3584
3587
|
return `${a} ${a === 1 ? "file" : "files"}`;
|
|
3585
3588
|
});
|
|
3586
|
-
return s((a) => a), (a, l) => (p(), y("div",
|
|
3589
|
+
return s((a) => a), (a, l) => (p(), y("div", Ja, [
|
|
3587
3590
|
e.mode === "display" ? (p(), y(X, { key: 0 }, [
|
|
3588
|
-
V(t) ? (p(), y("div",
|
|
3591
|
+
V(t) ? (p(), y("div", Qa, [
|
|
3589
3592
|
w("p", null, [
|
|
3590
3593
|
w("b", null, Z(r.value), 1)
|
|
3591
3594
|
]),
|
|
3592
3595
|
(p(!0), y(X, null, de(V(t), (i) => (p(), y("li", {
|
|
3593
3596
|
key: i.name
|
|
3594
3597
|
}, Z(i.name), 1))), 128))
|
|
3595
|
-
])) : (p(), y("span",
|
|
3598
|
+
])) : (p(), y("span", Ka, "No file selected"))
|
|
3596
3599
|
], 64)) : (p(), y(X, { key: 1 }, [
|
|
3597
|
-
V(t) ? (p(), y("div",
|
|
3600
|
+
V(t) ? (p(), y("div", es, [
|
|
3598
3601
|
w("p", null, [
|
|
3599
3602
|
l[2] || (l[2] = Dt(" You have selected: ", -1)),
|
|
3600
3603
|
w("b", null, Z(r.value), 1)
|
|
@@ -3602,35 +3605,35 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3602
3605
|
(p(!0), y(X, null, de(V(t), (i) => (p(), y("li", {
|
|
3603
3606
|
key: i.name
|
|
3604
3607
|
}, Z(i.name), 1))), 128))
|
|
3605
|
-
])) :
|
|
3608
|
+
])) : q("", !0),
|
|
3606
3609
|
w("button", {
|
|
3607
3610
|
type: "button",
|
|
3608
3611
|
class: "aform_form-btn",
|
|
3609
3612
|
disabled: e.mode === "read",
|
|
3610
3613
|
onClick: l[0] || (l[0] = (i) => V(o)())
|
|
3611
|
-
}, Z(e.label), 9,
|
|
3614
|
+
}, Z(e.label), 9, ts),
|
|
3612
3615
|
w("button", {
|
|
3613
3616
|
type: "button",
|
|
3614
3617
|
disabled: !V(t) || e.mode === "read",
|
|
3615
3618
|
class: "aform_form-btn",
|
|
3616
3619
|
onClick: l[1] || (l[1] = (i) => V(n)())
|
|
3617
|
-
}, "Reset", 8,
|
|
3620
|
+
}, "Reset", 8, ns)
|
|
3618
3621
|
], 64))
|
|
3619
3622
|
]));
|
|
3620
3623
|
}
|
|
3621
|
-
}),
|
|
3624
|
+
}), ls = /* @__PURE__ */ Ce(os, [["__scopeId", "data-v-6543d39a"]]), as = { class: "aform_form-element" }, ss = {
|
|
3622
3625
|
key: 0,
|
|
3623
3626
|
class: "aform_display-value"
|
|
3624
|
-
},
|
|
3627
|
+
}, rs = { class: "aform_form-link-wrapper" }, is = { class: "input-group" }, us = ["disabled", "onKeydown"], cs = ["onKeydown"], ds = {
|
|
3625
3628
|
key: 0,
|
|
3626
3629
|
class: "autocomplete-results"
|
|
3627
|
-
},
|
|
3630
|
+
}, fs = {
|
|
3628
3631
|
key: 0,
|
|
3629
3632
|
class: "autocomplete-result loading"
|
|
3630
|
-
},
|
|
3633
|
+
}, vs = ["onMousedown"], ms = {
|
|
3631
3634
|
key: 0,
|
|
3632
3635
|
class: "aform_field-label"
|
|
3633
|
-
},
|
|
3636
|
+
}, ps = /* @__PURE__ */ te({
|
|
3634
3637
|
__name: "AFormLink",
|
|
3635
3638
|
props: /* @__PURE__ */ xe({
|
|
3636
3639
|
schema: {},
|
|
@@ -3645,7 +3648,7 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3645
3648
|
formatter: { type: Function, default: void 0 },
|
|
3646
3649
|
icon: { default: "arrow-right" },
|
|
3647
3650
|
disabled: { type: Boolean, default: !1 },
|
|
3648
|
-
filterFunction: { type: Function, default: void 0 },
|
|
3651
|
+
filterFunction: { type: [String, Function], default: void 0 },
|
|
3649
3652
|
isAsync: { type: Boolean, default: !1 }
|
|
3650
3653
|
}, {
|
|
3651
3654
|
modelValue: { default: { id: "", displayText: "" } },
|
|
@@ -3656,13 +3659,14 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3656
3659
|
const t = Me(e, "modelValue"), o = T(() => {
|
|
3657
3660
|
const E = t.value?.id;
|
|
3658
3661
|
return E != null && E !== "";
|
|
3659
|
-
}), n = T(() => o.value ? e.formatter ? e.formatter(t.value) : t.value.displayText ?? String(t.value.id) : "—"), s = S(o.value ? n.value : ""), r = S(!1), a = S(!1), l = S([]), i = S(null), u =
|
|
3662
|
+
}), n = T(() => o.value ? e.formatter ? e.formatter(t.value) : t.value.displayText ?? String(t.value.id) : "—"), s = S(o.value ? n.value : ""), r = S(!1), a = S(!1), l = S([]), i = S(null), u = Sn("aformLinkNavigator", null), d = () => {
|
|
3660
3663
|
u && e.doctype && u.navigate(e.doctype, t.value.id);
|
|
3661
3664
|
}, m = async (E) => {
|
|
3662
3665
|
if (!(!e.filterFunction || e.mode === "read")) {
|
|
3663
3666
|
i.value = null, r.value = !0, e.isAsync && (a.value = !0);
|
|
3664
3667
|
try {
|
|
3665
|
-
|
|
3668
|
+
const R = typeof e.filterFunction == "string" ? cn(e.filterFunction) : e.filterFunction;
|
|
3669
|
+
l.value = await R(E) ?? [];
|
|
3666
3670
|
} catch {
|
|
3667
3671
|
l.value = [];
|
|
3668
3672
|
} finally {
|
|
@@ -3683,12 +3687,12 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3683
3687
|
}, C = () => {
|
|
3684
3688
|
i.value !== null && l.value[i.value] && f(l.value[i.value]);
|
|
3685
3689
|
};
|
|
3686
|
-
return (E,
|
|
3687
|
-
e.mode === "display" ? (p(), y("span",
|
|
3688
|
-
j((p(), y("div",
|
|
3689
|
-
w("div",
|
|
3690
|
+
return (E, R) => (p(), y("div", as, [
|
|
3691
|
+
e.mode === "display" ? (p(), y("span", ss, Z(n.value), 1)) : (p(), y(X, { key: 1 }, [
|
|
3692
|
+
j((p(), y("div", rs, [
|
|
3693
|
+
w("div", is, [
|
|
3690
3694
|
j(w("input", {
|
|
3691
|
-
"onUpdate:modelValue":
|
|
3695
|
+
"onUpdate:modelValue": R[0] || (R[0] = ($) => s.value = $),
|
|
3692
3696
|
type: "text",
|
|
3693
3697
|
class: "aform_input-field",
|
|
3694
3698
|
disabled: e.disabled || e.mode === "read",
|
|
@@ -3701,7 +3705,7 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3701
3705
|
ye(b, ["esc"]),
|
|
3702
3706
|
ye(b, ["tab"])
|
|
3703
3707
|
]
|
|
3704
|
-
}, null, 40,
|
|
3708
|
+
}, null, 40, us), [
|
|
3705
3709
|
[be, s.value]
|
|
3706
3710
|
]),
|
|
3707
3711
|
o.value && !e.disabled ? (p(), y("button", {
|
|
@@ -3712,23 +3716,23 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3712
3716
|
onKeydown: ye(he(d, ["prevent"]), ["enter"])
|
|
3713
3717
|
}, [
|
|
3714
3718
|
w("span", null, Z(e.icon === "chevron-right" ? "›" : "→"), 1)
|
|
3715
|
-
], 40,
|
|
3719
|
+
], 40, cs)) : q("", !0)
|
|
3716
3720
|
]),
|
|
3717
|
-
r.value ? (p(), y("ul",
|
|
3718
|
-
a.value ? (p(), y("li",
|
|
3721
|
+
r.value ? (p(), y("ul", ds, [
|
|
3722
|
+
a.value ? (p(), y("li", fs, "Loading…")) : (p(!0), y(X, { key: 1 }, de(l.value, ($, P) => (p(), y("li", {
|
|
3719
3723
|
key: String($.id),
|
|
3720
3724
|
class: ae(["autocomplete-result", { "is-active": P === i.value }]),
|
|
3721
3725
|
onMousedown: he((U) => f($), ["prevent"])
|
|
3722
|
-
}, Z($.displayText ?? String($.id)), 43,
|
|
3723
|
-
])) :
|
|
3726
|
+
}, Z($.displayText ?? String($.id)), 43, vs))), 128))
|
|
3727
|
+
])) : q("", !0)
|
|
3724
3728
|
])), [
|
|
3725
|
-
[V(
|
|
3729
|
+
[V(xn), h]
|
|
3726
3730
|
]),
|
|
3727
|
-
e.label ? (p(), y("label",
|
|
3731
|
+
e.label ? (p(), y("label", ms, Z(e.label), 1)) : q("", !0)
|
|
3728
3732
|
], 64))
|
|
3729
3733
|
]));
|
|
3730
3734
|
}
|
|
3731
|
-
}),
|
|
3735
|
+
}), hs = /* @__PURE__ */ Ce(ps, [["__scopeId", "data-v-902447ff"]]), gs = { class: "aform_form-element" }, ws = { class: "aform_display-value" }, ys = { class: "aform_field-label" }, bs = ["id", "disabled", "required"], xs = ["for"], ks = ["innerHTML"], Is = /* @__PURE__ */ te({
|
|
3732
3736
|
__name: "ANumericInput",
|
|
3733
3737
|
props: /* @__PURE__ */ xe({
|
|
3734
3738
|
schema: {},
|
|
@@ -3745,10 +3749,10 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3745
3749
|
emits: ["update:modelValue"],
|
|
3746
3750
|
setup(e) {
|
|
3747
3751
|
const t = Me(e, "modelValue");
|
|
3748
|
-
return (o, n) => (p(), y("div",
|
|
3752
|
+
return (o, n) => (p(), y("div", gs, [
|
|
3749
3753
|
e.mode === "display" ? (p(), y(X, { key: 0 }, [
|
|
3750
|
-
w("span",
|
|
3751
|
-
w("label",
|
|
3754
|
+
w("span", ws, Z(t.value ?? ""), 1),
|
|
3755
|
+
w("label", ys, Z(e.label), 1)
|
|
3752
3756
|
], 64)) : (p(), y(X, { key: 1 }, [
|
|
3753
3757
|
j(w("input", {
|
|
3754
3758
|
id: e.uuid,
|
|
@@ -3757,47 +3761,48 @@ const Va = { class: "aform_display-value" }, Ha = { key: 0 }, Pa = {
|
|
|
3757
3761
|
type: "number",
|
|
3758
3762
|
disabled: e.mode === "read",
|
|
3759
3763
|
required: e.required
|
|
3760
|
-
}, null, 8,
|
|
3764
|
+
}, null, 8, bs), [
|
|
3761
3765
|
[be, t.value]
|
|
3762
3766
|
]),
|
|
3763
3767
|
w("label", {
|
|
3764
3768
|
class: "aform_field-label",
|
|
3765
3769
|
for: e.uuid
|
|
3766
|
-
}, Z(e.label), 9,
|
|
3770
|
+
}, Z(e.label), 9, xs),
|
|
3767
3771
|
j(w("p", {
|
|
3768
3772
|
class: "aform_error",
|
|
3769
3773
|
innerHTML: e.validation.errorMessage
|
|
3770
|
-
}, null, 8,
|
|
3774
|
+
}, null, 8, ks), [
|
|
3771
3775
|
[Ae, e.validation.errorMessage]
|
|
3772
3776
|
])
|
|
3773
3777
|
], 64))
|
|
3774
3778
|
]));
|
|
3775
3779
|
}
|
|
3776
3780
|
});
|
|
3777
|
-
function
|
|
3781
|
+
function Ms(e) {
|
|
3778
3782
|
try {
|
|
3779
|
-
return
|
|
3783
|
+
return cn(e);
|
|
3780
3784
|
} catch {
|
|
3785
|
+
return;
|
|
3781
3786
|
}
|
|
3782
3787
|
}
|
|
3783
|
-
function
|
|
3788
|
+
function Cs(e) {
|
|
3784
3789
|
const t = e.value;
|
|
3785
3790
|
if (!t) return;
|
|
3786
|
-
const o =
|
|
3791
|
+
const o = Ms(t);
|
|
3787
3792
|
if (o) {
|
|
3788
3793
|
const n = e.instance?.locale;
|
|
3789
3794
|
return o(n);
|
|
3790
3795
|
}
|
|
3791
3796
|
return t;
|
|
3792
3797
|
}
|
|
3793
|
-
function
|
|
3798
|
+
function Es(e, t) {
|
|
3794
3799
|
let o = e;
|
|
3795
3800
|
const n = [t, "/", "-", "(", ")", " "];
|
|
3796
3801
|
for (const s of n)
|
|
3797
3802
|
o = o.replaceAll(s, "");
|
|
3798
3803
|
return o;
|
|
3799
3804
|
}
|
|
3800
|
-
function
|
|
3805
|
+
function As(e, t, o) {
|
|
3801
3806
|
let n = t;
|
|
3802
3807
|
for (const s of e) {
|
|
3803
3808
|
const r = n.indexOf(o);
|
|
@@ -3808,17 +3813,17 @@ function Es(e, t, o) {
|
|
|
3808
3813
|
}
|
|
3809
3814
|
return n.slice(0, t.length);
|
|
3810
3815
|
}
|
|
3811
|
-
function
|
|
3812
|
-
const o =
|
|
3816
|
+
function $s(e, t) {
|
|
3817
|
+
const o = Cs(t);
|
|
3813
3818
|
if (!o) return;
|
|
3814
|
-
const n = "#", s = e.value, r =
|
|
3819
|
+
const n = "#", s = e.value, r = Es(s, n);
|
|
3815
3820
|
if (r) {
|
|
3816
|
-
const a =
|
|
3821
|
+
const a = As(r, o, n), l = t.instance;
|
|
3817
3822
|
l?.maskFilled && (l.maskFilled = !a.includes(n)), e.value = a;
|
|
3818
3823
|
} else
|
|
3819
3824
|
e.value = o;
|
|
3820
3825
|
}
|
|
3821
|
-
const
|
|
3826
|
+
const Ts = { class: "aform_form-element" }, Ds = { class: "aform_display-value" }, Ss = { class: "aform_field-label" }, Rs = ["id", "disabled", "maxlength", "required"], Ls = ["for"], Vs = ["innerHTML"], Hs = /* @__PURE__ */ te({
|
|
3822
3827
|
__name: "ATextInput",
|
|
3823
3828
|
props: /* @__PURE__ */ xe({
|
|
3824
3829
|
schema: {},
|
|
@@ -3835,10 +3840,10 @@ const $s = { class: "aform_form-element" }, Ts = { class: "aform_display-value"
|
|
|
3835
3840
|
emits: ["update:modelValue"],
|
|
3836
3841
|
setup(e) {
|
|
3837
3842
|
const t = S(!0), o = Me(e, "modelValue");
|
|
3838
|
-
return (n, s) => (p(), y("div",
|
|
3843
|
+
return (n, s) => (p(), y("div", Ts, [
|
|
3839
3844
|
e.mode === "display" ? (p(), y(X, { key: 0 }, [
|
|
3840
|
-
w("span",
|
|
3841
|
-
w("label",
|
|
3845
|
+
w("span", Ds, Z(o.value ?? ""), 1),
|
|
3846
|
+
w("label", Ss, Z(e.label), 1)
|
|
3842
3847
|
], 64)) : (p(), y(X, { key: 1 }, [
|
|
3843
3848
|
j(w("input", {
|
|
3844
3849
|
id: e.uuid,
|
|
@@ -3847,27 +3852,27 @@ const $s = { class: "aform_form-element" }, Ts = { class: "aform_display-value"
|
|
|
3847
3852
|
disabled: e.mode === "read",
|
|
3848
3853
|
maxlength: e.mask && t.value ? e.mask.length : void 0,
|
|
3849
3854
|
required: e.required
|
|
3850
|
-
}, null, 8,
|
|
3855
|
+
}, null, 8, Rs), [
|
|
3851
3856
|
[be, o.value],
|
|
3852
|
-
[V(
|
|
3857
|
+
[V($s), e.mask]
|
|
3853
3858
|
]),
|
|
3854
3859
|
w("label", {
|
|
3855
3860
|
class: "aform_field-label",
|
|
3856
3861
|
for: e.uuid
|
|
3857
|
-
}, Z(e.label), 9,
|
|
3862
|
+
}, Z(e.label), 9, Ls),
|
|
3858
3863
|
j(w("p", {
|
|
3859
3864
|
class: "aform_error",
|
|
3860
3865
|
innerHTML: e.validation.errorMessage
|
|
3861
|
-
}, null, 8,
|
|
3866
|
+
}, null, 8, Vs), [
|
|
3862
3867
|
[Ae, e.validation.errorMessage]
|
|
3863
3868
|
])
|
|
3864
3869
|
], 64))
|
|
3865
3870
|
]));
|
|
3866
3871
|
}
|
|
3867
|
-
}),
|
|
3872
|
+
}), Ps = { class: "login-container" }, _s = { class: "account-container" }, Os = { class: "account-header" }, Fs = { id: "account-title" }, Bs = { id: "account-subtitle" }, Zs = { class: "login-form-container" }, Ns = { class: "login-form-email aform_form-element" }, Us = ["disabled"], Ws = { class: "login-form-password aform_form-element" }, Gs = ["disabled"], zs = ["disabled"], qs = {
|
|
3868
3873
|
key: 0,
|
|
3869
3874
|
class: "material-symbols-outlined loading-icon"
|
|
3870
|
-
},
|
|
3875
|
+
}, Ys = /* @__PURE__ */ te({
|
|
3871
3876
|
__name: "Login",
|
|
3872
3877
|
props: {
|
|
3873
3878
|
headerTitle: { default: "Login" },
|
|
@@ -3883,16 +3888,16 @@ const $s = { class: "aform_form-element" }, Ts = { class: "aform_display-value"
|
|
|
3883
3888
|
}
|
|
3884
3889
|
r.value = !1, o("loginSuccess");
|
|
3885
3890
|
}
|
|
3886
|
-
return (i, u) => (p(), y("div",
|
|
3891
|
+
return (i, u) => (p(), y("div", Ps, [
|
|
3887
3892
|
w("div", null, [
|
|
3888
|
-
w("div",
|
|
3889
|
-
w("div",
|
|
3890
|
-
w("h1",
|
|
3893
|
+
w("div", _s, [
|
|
3894
|
+
w("div", Os, [
|
|
3895
|
+
w("h1", Fs, Z(e.headerTitle), 1),
|
|
3891
3896
|
w("p", Bs, Z(e.headerSubtitle), 1)
|
|
3892
3897
|
]),
|
|
3893
3898
|
w("form", { onSubmit: l }, [
|
|
3894
|
-
w("div",
|
|
3895
|
-
w("div",
|
|
3899
|
+
w("div", Zs, [
|
|
3900
|
+
w("div", Ns, [
|
|
3896
3901
|
u[2] || (u[2] = w("label", {
|
|
3897
3902
|
id: "login-email",
|
|
3898
3903
|
for: "email",
|
|
@@ -3909,11 +3914,11 @@ const $s = { class: "aform_form-element" }, Ts = { class: "aform_display-value"
|
|
|
3909
3914
|
"auto-complete": "email",
|
|
3910
3915
|
"auto-correct": "off",
|
|
3911
3916
|
disabled: r.value
|
|
3912
|
-
}, null, 8,
|
|
3917
|
+
}, null, 8, Us), [
|
|
3913
3918
|
[be, n.value]
|
|
3914
3919
|
])
|
|
3915
3920
|
]),
|
|
3916
|
-
w("div",
|
|
3921
|
+
w("div", Ws, [
|
|
3917
3922
|
u[3] || (u[3] = w("label", {
|
|
3918
3923
|
id: "login-password",
|
|
3919
3924
|
for: "password",
|
|
@@ -3926,7 +3931,7 @@ const $s = { class: "aform_form-element" }, Ts = { class: "aform_display-value"
|
|
|
3926
3931
|
name: "password",
|
|
3927
3932
|
type: "password",
|
|
3928
3933
|
disabled: r.value
|
|
3929
|
-
}, null, 8,
|
|
3934
|
+
}, null, 8, Gs), [
|
|
3930
3935
|
[be, s.value]
|
|
3931
3936
|
])
|
|
3932
3937
|
]),
|
|
@@ -3935,9 +3940,9 @@ const $s = { class: "aform_form-element" }, Ts = { class: "aform_display-value"
|
|
|
3935
3940
|
disabled: r.value || !n.value || !s.value,
|
|
3936
3941
|
onClick: l
|
|
3937
3942
|
}, [
|
|
3938
|
-
r.value ? (p(), y("span", qs, "progress_activity")) :
|
|
3943
|
+
r.value ? (p(), y("span", qs, "progress_activity")) : q("", !0),
|
|
3939
3944
|
u[4] || (u[4] = w("span", { id: "login-form-button" }, "Login", -1))
|
|
3940
|
-
], 8,
|
|
3945
|
+
], 8, zs)
|
|
3941
3946
|
])
|
|
3942
3947
|
], 32),
|
|
3943
3948
|
u[5] || (u[5] = w("button", { class: "btn" }, [
|
|
@@ -3947,23 +3952,24 @@ const $s = { class: "aform_form-element" }, Ts = { class: "aform_display-value"
|
|
|
3947
3952
|
])
|
|
3948
3953
|
]));
|
|
3949
3954
|
}
|
|
3950
|
-
}),
|
|
3951
|
-
function
|
|
3952
|
-
e.use(
|
|
3955
|
+
}), Js = /* @__PURE__ */ Ce(Ys, [["__scopeId", "data-v-d9ffd0a7"]]);
|
|
3956
|
+
function Qs(e) {
|
|
3957
|
+
e.use(Rl), e.component("ACheckbox", Zl), e.component("AComboBox", Nl), e.component("ADate", Yl), e.component("ADropdown", ma), e.component("ADatePicker", Na), e.component("AFieldset", ja), e.component("AFileAttach", ls), e.component("AForm", Mn), e.component("AFormLink", hs), e.component("ANumericInput", Is), e.component("ATextInput", Hs);
|
|
3953
3958
|
}
|
|
3954
3959
|
export {
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
|
|
3966
|
-
|
|
3967
|
-
|
|
3960
|
+
Zl as ACheckbox,
|
|
3961
|
+
Nl as AComboBox,
|
|
3962
|
+
Yl as ADate,
|
|
3963
|
+
Na as ADatePicker,
|
|
3964
|
+
ma as ADropdown,
|
|
3965
|
+
ja as AFieldset,
|
|
3966
|
+
ls as AFileAttach,
|
|
3967
|
+
Mn as AForm,
|
|
3968
|
+
hs as AFormLink,
|
|
3969
|
+
Is as ANumericInput,
|
|
3970
|
+
Hs as ATextInput,
|
|
3971
|
+
Js as Login,
|
|
3972
|
+
cn as deserializeFunction,
|
|
3973
|
+
Qs as install
|
|
3968
3974
|
};
|
|
3969
3975
|
//# sourceMappingURL=aform.js.map
|