@anzusystems/common-admin 1.47.0-beta.dev-1775683200 → 1.47.0-beta.dev-1775683300
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/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-_07nGoQb.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DvYCGnn3.mjs} +1229 -1229
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DvYCGnn3.mjs.map +1 -0
- package/dist/common-admin.js +4 -4
- package/dist/{index-CumXcrHc.mjs → index-so4LUFja.mjs} +6546 -6327
- package/dist/index-so4LUFja.mjs.map +1 -0
- package/dist/labs.d.ts +4 -0
- package/dist/labs.js +370 -369
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-vTXSwNiv.mjs → webfontloader-DXcK6b5C.mjs} +2 -2
- package/dist/{webfontloader-vTXSwNiv.mjs.map → webfontloader-DXcK6b5C.mjs.map} +1 -1
- package/package.json +2 -2
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-_07nGoQb.mjs.map +0 -1
- package/dist/index-CumXcrHc.mjs.map +0 -1
|
@@ -59,10 +59,10 @@ const yl = { class: "text-high-emphasis" }, Mt = /* @__PURE__ */ Se({
|
|
|
59
59
|
for (const [a, r] of n)
|
|
60
60
|
t[a] = r;
|
|
61
61
|
return t;
|
|
62
|
-
},
|
|
62
|
+
}, D = (e) => typeof e > "u", he = (e) => !D(e), G = (e) => e === null, Gt = (e) => typeof e == "number", Oe = (e) => typeof e == "string", ue = (e) => Array.isArray(e), Vc = (e) => typeof e == "function", Je = (e) => typeof e == "boolean", Hc = (e) => Oe(e) && /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e), jc = (e) => {
|
|
63
63
|
const n = parseFloat(e);
|
|
64
64
|
return !isNaN(e) && (n | 0) === n;
|
|
65
|
-
}, En = (e) => typeof e == "object" && !ue(e) && !G(e), pn = (e) => En(e) ? Object.keys(e).length === 0 : !1, Oa = (e) => ue(e) && e.length === 0, Qo = (e) => G(e) ||
|
|
65
|
+
}, En = (e) => typeof e == "object" && !ue(e) && !G(e), pn = (e) => En(e) ? Object.keys(e).length === 0 : !1, Oa = (e) => ue(e) && e.length === 0, Qo = (e) => G(e) || D(e) || e === "" || e === 0 || Oa(e) || pn(e), $e = (e) => {
|
|
66
66
|
if (typeof structuredClone == "function")
|
|
67
67
|
try {
|
|
68
68
|
return Pr(e) ? structuredClone(aa(e)) : Ha(e) ? structuredClone(H(e)) : structuredClone(e);
|
|
@@ -107,7 +107,7 @@ const yl = { class: "text-high-emphasis" }, Mt = /* @__PURE__ */ Se({
|
|
|
107
107
|
return a.split("/").forEach((s, l) => {
|
|
108
108
|
if (t[l] = s, !s.startsWith(":")) return;
|
|
109
109
|
const i = s.substring(1);
|
|
110
|
-
|
|
110
|
+
D(n[i]) || (t[l] = n[s.substring(1)] + "");
|
|
111
111
|
}), t.join("/") + (r ? `?${r}` : "");
|
|
112
112
|
}, Gc = (e, n) => {
|
|
113
113
|
if (e.indexOf(":") === -1) return e;
|
|
@@ -116,7 +116,7 @@ const yl = { class: "text-high-emphasis" }, Mt = /* @__PURE__ */ Se({
|
|
|
116
116
|
if (t[o] = r, !r.startsWith(":")) return;
|
|
117
117
|
t[o] = r.substring(1);
|
|
118
118
|
const s = /^:([a-zA-Z0-9_-]+).*/, l = r.match(s);
|
|
119
|
-
G(l) || !l[1] ||
|
|
119
|
+
G(l) || !l[1] || D(n[l[1]]) || (t[o] = n[l[1]] + "");
|
|
120
120
|
}), t.join("/");
|
|
121
121
|
}, Xc = (e) => e.replace(".", "-"), Zc = (e) => /^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,63}$/.test(e), Xa = /* @__PURE__ */ Symbol.for("anzu:SystemScope"), Za = /* @__PURE__ */ Symbol.for("anzu:SubjectScope"), Jc = /* @__PURE__ */ Symbol.for("anzu:AvailableLanguages"), Qc = /* @__PURE__ */ Symbol.for("anzu:DefaultLanguage"), ho = /* @__PURE__ */ Se({
|
|
122
122
|
__name: "AAnzuUserAvatar",
|
|
@@ -178,11 +178,11 @@ const yl = { class: "text-high-emphasis" }, Mt = /* @__PURE__ */ Se({
|
|
|
178
178
|
return Ae(
|
|
179
179
|
s,
|
|
180
180
|
async (i) => {
|
|
181
|
-
a.value ||
|
|
181
|
+
a.value || D(i) || !i._loaded || (t.value = i, a.value = !0);
|
|
182
182
|
},
|
|
183
183
|
{ immediate: !0 }
|
|
184
184
|
), (i, u) => (P(), de("div", wl, [
|
|
185
|
-
H(G)(e.id) || H(
|
|
185
|
+
H(G)(e.id) || H(D)(e.id) ? (P(), de("span", Dl)) : a.value ? (P(), de(qe, { key: 1 }, [
|
|
186
186
|
e.isModerator ? (P(), X(bl, {
|
|
187
187
|
key: 0,
|
|
188
188
|
location: "top right",
|
|
@@ -327,10 +327,10 @@ const dd = {
|
|
|
327
327
|
beforeReconnect: () => new Promise((e) => e())
|
|
328
328
|
});
|
|
329
329
|
function vd(e) {
|
|
330
|
-
|
|
330
|
+
D(e) || (Ba.value = e);
|
|
331
331
|
}
|
|
332
332
|
function Jt() {
|
|
333
|
-
if (
|
|
333
|
+
if (D(Ba.value))
|
|
334
334
|
throw new Error("Composable can't be used without properly configured common admin.");
|
|
335
335
|
return {
|
|
336
336
|
collabOptions: Ba
|
|
@@ -367,25 +367,25 @@ function jl() {
|
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
function ca(e, n, t = !1) {
|
|
370
|
-
const { collabOptions: a } = Jt(), { currentUserId: r } = jl(), { collabSocket: o, collabFieldLocksState: s, collabFieldDataBufferState: l, collabRoomInfoState: i } = Hl(), u = Rl(),
|
|
371
|
-
M.room !== e || M.field !== n ||
|
|
372
|
-
},
|
|
373
|
-
M.room !== e || M.field !== n ||
|
|
370
|
+
const { collabOptions: a } = Jt(), { currentUserId: r } = jl(), { collabSocket: o, collabFieldLocksState: s, collabFieldDataBufferState: l, collabRoomInfoState: i } = Hl(), u = Rl(), m = L(), d = L(), g = Ll(), p = L(), T = L(), b = nr(), c = L(), f = L(), v = (M, A) => {
|
|
371
|
+
M.room !== e || M.field !== n || D(A) || D(d.value) || d.value(A);
|
|
372
|
+
}, w = (M, A) => {
|
|
373
|
+
M.room !== e || M.field !== n || D(A) || D(T.value) || T.value(A);
|
|
374
374
|
}, F = (M) => {
|
|
375
|
-
M.room === e && he(
|
|
376
|
-
},
|
|
377
|
-
d.value = M,
|
|
378
|
-
},
|
|
379
|
-
|
|
380
|
-
|
|
375
|
+
M.room === e && he(f.value) && f.value();
|
|
376
|
+
}, k = (M) => {
|
|
377
|
+
d.value = M, m.value = u.on(v);
|
|
378
|
+
}, h = (M) => {
|
|
379
|
+
T.value = M, p.value = g.on(
|
|
380
|
+
w
|
|
381
381
|
);
|
|
382
382
|
}, I = (M) => {
|
|
383
|
-
|
|
383
|
+
f.value = M, c.value = b.on(
|
|
384
384
|
F
|
|
385
385
|
);
|
|
386
386
|
};
|
|
387
387
|
qr(() => {
|
|
388
|
-
t || (he(
|
|
388
|
+
t || (he(m.value) && m.value(), he(p.value) && p.value(), he(c.value) && c.value());
|
|
389
389
|
});
|
|
390
390
|
const Y = U(() => {
|
|
391
391
|
const M = s.get(e);
|
|
@@ -397,11 +397,11 @@ function ca(e, n, t = !1) {
|
|
|
397
397
|
return null;
|
|
398
398
|
});
|
|
399
399
|
return {
|
|
400
|
-
addCollabFieldDataChangeListener:
|
|
401
|
-
addCollabFieldLockStatusListener:
|
|
400
|
+
addCollabFieldDataChangeListener: k,
|
|
401
|
+
addCollabFieldLockStatusListener: h,
|
|
402
402
|
addCollabGatheringBufferDataListener: I,
|
|
403
403
|
acquireCollabFieldLock: (M = {}) => {
|
|
404
|
-
if (!a.value.enabled ||
|
|
404
|
+
if (!a.value.enabled || D(o.value)) return;
|
|
405
405
|
const A = i.get(e);
|
|
406
406
|
A && A.status === pa.Inactive || o.value?.timeout(1e3).emit(
|
|
407
407
|
"acquireFieldLock",
|
|
@@ -411,7 +411,7 @@ function ca(e, n, t = !1) {
|
|
|
411
411
|
(_, S) => {
|
|
412
412
|
const y = { field: n, room: e };
|
|
413
413
|
if (_ || bo(S))
|
|
414
|
-
return void
|
|
414
|
+
return void g.emit(
|
|
415
415
|
y,
|
|
416
416
|
Bn(
|
|
417
417
|
un.Acquire,
|
|
@@ -423,7 +423,7 @@ function ca(e, n, t = !1) {
|
|
|
423
423
|
const C = new Map(S.locks ? Object.entries(S.locks) : []);
|
|
424
424
|
for (const [x, R] of C.entries())
|
|
425
425
|
s.get(e)?.set(x, R);
|
|
426
|
-
return void
|
|
426
|
+
return void g.emit(
|
|
427
427
|
y,
|
|
428
428
|
Bn(
|
|
429
429
|
un.Acquire,
|
|
@@ -435,7 +435,7 @@ function ca(e, n, t = !1) {
|
|
|
435
435
|
);
|
|
436
436
|
},
|
|
437
437
|
releaseCollabFieldLock: (M, A = {}) => {
|
|
438
|
-
if (!a.value.enabled ||
|
|
438
|
+
if (!a.value.enabled || D(o.value)) return;
|
|
439
439
|
const _ = i.get(e);
|
|
440
440
|
if (_ && _.status === pa.Inactive) {
|
|
441
441
|
l.has(e) || l.set(e, /* @__PURE__ */ new Map()), l.get(e)?.set(n, M);
|
|
@@ -450,7 +450,7 @@ function ca(e, n, t = !1) {
|
|
|
450
450
|
(S, y) => {
|
|
451
451
|
const C = { field: n, room: e };
|
|
452
452
|
if (S || bo(y))
|
|
453
|
-
return void
|
|
453
|
+
return void g.emit(
|
|
454
454
|
C,
|
|
455
455
|
Bn(
|
|
456
456
|
un.Release,
|
|
@@ -461,7 +461,7 @@ function ca(e, n, t = !1) {
|
|
|
461
461
|
if (s.has(e) || s.set(e, /* @__PURE__ */ new Map()), y.locks)
|
|
462
462
|
for (const x of Object.keys(y.locks))
|
|
463
463
|
s.get(e)?.delete(x);
|
|
464
|
-
return void
|
|
464
|
+
return void g.emit(
|
|
465
465
|
C,
|
|
466
466
|
Bn(
|
|
467
467
|
un.Release,
|
|
@@ -473,16 +473,16 @@ function ca(e, n, t = !1) {
|
|
|
473
473
|
);
|
|
474
474
|
},
|
|
475
475
|
changeCollabFieldData: (M) => {
|
|
476
|
-
if (!a.value.enabled ||
|
|
476
|
+
if (!a.value.enabled || D(o.value)) return;
|
|
477
477
|
const A = i.get(e);
|
|
478
478
|
A && A.status === pa.Inactive || o.value.emit("changeFieldData", e, n, M, () => {
|
|
479
479
|
});
|
|
480
480
|
},
|
|
481
481
|
lockedByUser: Y,
|
|
482
482
|
collabFieldDataBufferState: l,
|
|
483
|
-
unsubscribeCollabFieldDataChangeListener:
|
|
483
|
+
unsubscribeCollabFieldDataChangeListener: m,
|
|
484
484
|
unsubscribeCollabFieldLockStatusListener: p,
|
|
485
|
-
unsubscribeCollabGatheringBufferData:
|
|
485
|
+
unsubscribeCollabGatheringBufferData: c
|
|
486
486
|
};
|
|
487
487
|
}
|
|
488
488
|
const ql = {
|
|
@@ -512,20 +512,20 @@ const ql = {
|
|
|
512
512
|
emits: ["update:modelValue", "click:append", "blur", "focus"],
|
|
513
513
|
setup(e, { expose: n, emit: t }) {
|
|
514
514
|
const a = e, r = t, o = L(null), { collabOptions: s } = Jt(), l = L(
|
|
515
|
-
(
|
|
515
|
+
(k, h) => {
|
|
516
516
|
}
|
|
517
|
-
), i = L((
|
|
517
|
+
), i = L((k) => {
|
|
518
518
|
}), u = L(null);
|
|
519
519
|
if (s.value.enabled && he(a.collab)) {
|
|
520
520
|
const {
|
|
521
|
-
releaseCollabFieldLock:
|
|
522
|
-
acquireCollabFieldLock:
|
|
521
|
+
releaseCollabFieldLock: k,
|
|
522
|
+
acquireCollabFieldLock: h,
|
|
523
523
|
addCollabFieldLockStatusListener: I,
|
|
524
524
|
addCollabGatheringBufferDataListener: Y,
|
|
525
|
-
lockedByUser:
|
|
525
|
+
lockedByUser: E
|
|
526
526
|
} = ca(a.collab.room, a.collab.field);
|
|
527
|
-
l.value =
|
|
528
|
-
|
|
527
|
+
l.value = k, i.value = h, Ae(
|
|
528
|
+
E,
|
|
529
529
|
($) => {
|
|
530
530
|
u.value = $;
|
|
531
531
|
},
|
|
@@ -536,56 +536,56 @@ const ql = {
|
|
|
536
536
|
o.value?.blur();
|
|
537
537
|
});
|
|
538
538
|
}
|
|
539
|
-
const { t:
|
|
540
|
-
r("update:modelValue",
|
|
541
|
-
},
|
|
539
|
+
const { t: m } = Re(), d = J(Xa, void 0), g = J(Za, void 0), p = (k) => {
|
|
540
|
+
r("update:modelValue", k);
|
|
541
|
+
}, T = () => {
|
|
542
542
|
r("blur", a.modelValue), a.v?.$touch(), l.value(a.modelValue);
|
|
543
|
-
},
|
|
543
|
+
}, b = () => {
|
|
544
544
|
r("focus", a.modelValue), i.value();
|
|
545
|
-
},
|
|
545
|
+
}, c = U(() => he(a.errorMessage) ? [a.errorMessage] : a.v?.$errors?.length ? [a.v.$errors.map((k) => k.$message).join(" ")] : []), f = U(() => {
|
|
546
546
|
if (he(a.label)) return a.label;
|
|
547
|
-
if (
|
|
548
|
-
const { end:
|
|
549
|
-
return
|
|
550
|
-
}),
|
|
547
|
+
if (D(d) || D(g) || D(a.v?.$path)) return "";
|
|
548
|
+
const { end: k } = wn(a.v?.$path, ".");
|
|
549
|
+
return m(d + "." + g + ".model." + k);
|
|
550
|
+
}), v = U(() => he(a.required) ? a.required : !!(a.v?.required && a.v?.required.$params.type === "required")), w = U(() => he(a.disabled) ? a.disabled : !!u.value);
|
|
551
551
|
return n({
|
|
552
552
|
focus: () => {
|
|
553
553
|
o.value?.focus();
|
|
554
554
|
}
|
|
555
|
-
}), (
|
|
555
|
+
}), (k, h) => (P(), X(ia, {
|
|
556
556
|
ref_key: "textFieldRef",
|
|
557
557
|
ref: o,
|
|
558
558
|
"prepend-icon": e.prependIcon,
|
|
559
559
|
"data-cy": e.dataCy,
|
|
560
|
-
"error-messages":
|
|
560
|
+
"error-messages": c.value,
|
|
561
561
|
"model-value": e.modelValue,
|
|
562
|
-
required:
|
|
562
|
+
required: v.value,
|
|
563
563
|
type: e.type,
|
|
564
564
|
step: e.step,
|
|
565
565
|
"append-icon": e.appendIcon,
|
|
566
566
|
maxlength: e.maxlength,
|
|
567
|
-
disabled:
|
|
567
|
+
disabled: w.value,
|
|
568
568
|
placeholder: e.placeholder,
|
|
569
569
|
"persistent-placeholder": e.persistentPlaceholder,
|
|
570
570
|
trim: "",
|
|
571
571
|
autocomplete: "off",
|
|
572
|
-
"onClick:append":
|
|
573
|
-
onBlur:
|
|
574
|
-
onFocus:
|
|
575
|
-
"onUpdate:modelValue":
|
|
572
|
+
"onClick:append": h[0] || (h[0] = (I) => r("click:append", I)),
|
|
573
|
+
onBlur: T,
|
|
574
|
+
onFocus: b,
|
|
575
|
+
"onUpdate:modelValue": h[1] || (h[1] = (I) => p(I))
|
|
576
576
|
}, Pt({ _: 2 }, [
|
|
577
577
|
e.hideLabel ? void 0 : {
|
|
578
578
|
name: "label",
|
|
579
579
|
fn: B(() => [
|
|
580
|
-
De(fe(
|
|
581
|
-
|
|
580
|
+
De(fe(f.value), 1),
|
|
581
|
+
v.value ? (P(), de("span", ql)) : ce("", !0)
|
|
582
582
|
]),
|
|
583
583
|
key: "0"
|
|
584
584
|
},
|
|
585
585
|
u.value ? {
|
|
586
586
|
name: "append-inner",
|
|
587
587
|
fn: B(() => [
|
|
588
|
-
we(
|
|
588
|
+
we(k.$slots, "locked", { userId: u.value }, () => [
|
|
589
589
|
e.collab ? (P(), X(ua, {
|
|
590
590
|
key: 0,
|
|
591
591
|
id: u.value,
|
|
@@ -595,10 +595,10 @@ const ql = {
|
|
|
595
595
|
]),
|
|
596
596
|
key: "1"
|
|
597
597
|
} : void 0,
|
|
598
|
-
|
|
598
|
+
k.$slots.prepend ? {
|
|
599
599
|
name: "prepend",
|
|
600
600
|
fn: B(() => [
|
|
601
|
-
we(
|
|
601
|
+
we(k.$slots, "prepend")
|
|
602
602
|
]),
|
|
603
603
|
key: "2"
|
|
604
604
|
} : void 0,
|
|
@@ -651,42 +651,42 @@ const Kl = ["createdAt", "modifiedAt"], hd = "_score", gd = "id", bd = "score_da
|
|
|
651
651
|
fixed: !1
|
|
652
652
|
};
|
|
653
653
|
function Cd(e, n, t = void 0, a = void 0, r = !1, o = void 0, s = void 0, l = void 0, i = void 0) {
|
|
654
|
-
const u = s ?? xe, { t:
|
|
654
|
+
const u = s ?? xe, { t: m } = u.global || u, d = Wl();
|
|
655
655
|
if (o)
|
|
656
|
-
for (const
|
|
657
|
-
|
|
658
|
-
const
|
|
659
|
-
const
|
|
660
|
-
return
|
|
656
|
+
for (const f of Object.keys(d))
|
|
657
|
+
f in o && (d[f] = o[f]);
|
|
658
|
+
const g = e.map((f) => {
|
|
659
|
+
const v = { ...Gl, ...f };
|
|
660
|
+
return D(v.title) && (D(v.title) && Kl.includes(v.key) ? v.title = m("common.model.tracking." + v.key) : D(v.title) && t && a ? v.title = m(t + "." + a + ".model." + v.key) : v.title = ""), v;
|
|
661
661
|
}), p = U(() => {
|
|
662
|
-
const
|
|
663
|
-
return l &&
|
|
664
|
-
n.value.includes(
|
|
665
|
-
}), r ||
|
|
666
|
-
}),
|
|
667
|
-
if (!
|
|
662
|
+
const f = [];
|
|
663
|
+
return l && f.push({ key: "data-table-expand", sortable: !1 }), g.forEach((v) => {
|
|
664
|
+
n.value.includes(v.key) || f.push(v);
|
|
665
|
+
}), r || f.push({ key: "actions", sortable: !1, fixed: !0 }), f;
|
|
666
|
+
}), T = (f) => {
|
|
667
|
+
if (!f) {
|
|
668
668
|
d.sortBy = null;
|
|
669
669
|
return;
|
|
670
670
|
}
|
|
671
|
-
d.sortBy =
|
|
672
|
-
},
|
|
671
|
+
d.sortBy = f.key, d.descending = f.order === Ct.Desc;
|
|
672
|
+
}, b = () => {
|
|
673
673
|
if (!i || !localStorage) return;
|
|
674
|
-
const
|
|
675
|
-
if (!
|
|
676
|
-
const
|
|
677
|
-
En(
|
|
678
|
-
},
|
|
679
|
-
!i || !localStorage || localStorage.setItem(i, JSON.stringify({ hidden:
|
|
674
|
+
const f = localStorage.getItem(i);
|
|
675
|
+
if (!f) return;
|
|
676
|
+
const v = JSON.parse(f);
|
|
677
|
+
En(v) && ue(v.hidden) && (n.value = v.hidden);
|
|
678
|
+
}, c = (f) => {
|
|
679
|
+
!i || !localStorage || localStorage.setItem(i, JSON.stringify({ hidden: f }));
|
|
680
680
|
};
|
|
681
681
|
return ja(() => {
|
|
682
|
-
|
|
683
|
-
}), Ae(n, (
|
|
684
|
-
|
|
682
|
+
b();
|
|
683
|
+
}), Ae(n, (f) => {
|
|
684
|
+
c(f);
|
|
685
685
|
}), {
|
|
686
|
-
columnsAll:
|
|
686
|
+
columnsAll: g,
|
|
687
687
|
columnsVisible: p,
|
|
688
688
|
columnsHidden: n,
|
|
689
|
-
updateSortBy:
|
|
689
|
+
updateSortBy: T,
|
|
690
690
|
pagination: d
|
|
691
691
|
};
|
|
692
692
|
}
|
|
@@ -927,40 +927,40 @@ const Rn = {
|
|
|
927
927
|
slots: t,
|
|
928
928
|
expose: a
|
|
929
929
|
}) => {
|
|
930
|
-
const r = L([]), o = or.get("velocity"), s = U(() => e.animationType === "velocity"), l = U(() => r.value.filter((
|
|
930
|
+
const r = L([]), o = or.get("velocity"), s = U(() => e.animationType === "velocity"), l = U(() => r.value.filter((E) => E.state !== Rn.DESTROYED)), i = U(() => Jl(e.width)), u = U(() => {
|
|
931
931
|
const {
|
|
932
|
-
x:
|
|
932
|
+
x: E,
|
|
933
933
|
y: $
|
|
934
934
|
} = ts(e.position), N = i.value.value, M = i.value.type, A = {
|
|
935
935
|
width: N + M
|
|
936
936
|
};
|
|
937
|
-
return $ && (A[$] = "0px"),
|
|
938
|
-
}),
|
|
939
|
-
onEnter:
|
|
937
|
+
return $ && (A[$] = "0px"), E && (E === "center" ? A.left = `calc(50% - ${+N / 2}${M})` : A[E] = "0px"), A;
|
|
938
|
+
}), m = U(() => s.value ? {
|
|
939
|
+
onEnter: h,
|
|
940
940
|
onLeave: I,
|
|
941
941
|
onAfterLeave: Y
|
|
942
|
-
} : {}), d = (
|
|
943
|
-
n("click",
|
|
944
|
-
},
|
|
942
|
+
} : {}), d = (E) => {
|
|
943
|
+
n("click", E), e.closeOnClick && v(E);
|
|
944
|
+
}, g = (E) => {
|
|
945
945
|
var $;
|
|
946
|
-
e.pauseOnHover && (($ =
|
|
947
|
-
}, p = (
|
|
946
|
+
e.pauseOnHover && (($ = E.timer) == null || $.stop());
|
|
947
|
+
}, p = (E) => {
|
|
948
948
|
var $;
|
|
949
|
-
e.pauseOnHover && (($ =
|
|
950
|
-
},
|
|
951
|
-
if (
|
|
949
|
+
e.pauseOnHover && (($ = E.timer) == null || $.start());
|
|
950
|
+
}, T = (E = {}) => {
|
|
951
|
+
if (E.group || (E.group = ""), E.data || (E.data = {}), e.group !== E.group)
|
|
952
952
|
return;
|
|
953
|
-
if (
|
|
953
|
+
if (E.clean || E.clear) {
|
|
954
954
|
F();
|
|
955
955
|
return;
|
|
956
956
|
}
|
|
957
|
-
const $ = typeof
|
|
957
|
+
const $ = typeof E.duration == "number" ? E.duration : e.duration, N = typeof E.speed == "number" ? E.speed : e.speed, M = typeof E.ignoreDuplicates == "boolean" ? E.ignoreDuplicates : e.ignoreDuplicates, {
|
|
958
958
|
title: A,
|
|
959
959
|
text: _,
|
|
960
960
|
type: S,
|
|
961
961
|
data: y,
|
|
962
962
|
id: C
|
|
963
|
-
} =
|
|
963
|
+
} = E, x = {
|
|
964
964
|
id: C || Ql(),
|
|
965
965
|
title: A,
|
|
966
966
|
text: _,
|
|
@@ -971,73 +971,73 @@ const Rn = {
|
|
|
971
971
|
data: y,
|
|
972
972
|
duplicates: 0
|
|
973
973
|
};
|
|
974
|
-
$ >= 0 && (x.timer = ns(() =>
|
|
974
|
+
$ >= 0 && (x.timer = ns(() => v(x), x.length));
|
|
975
975
|
const R = "bottom" in u.value, j = e.reverse ? !R : R;
|
|
976
976
|
let Q = -1;
|
|
977
|
-
const re = l.value.find((ve) => ve.title ===
|
|
977
|
+
const re = l.value.find((ve) => ve.title === E.title && ve.text === E.text);
|
|
978
978
|
if (M && re) {
|
|
979
979
|
re.duplicates++;
|
|
980
980
|
return;
|
|
981
981
|
}
|
|
982
|
-
j ? (r.value.push(x), n("start", x), l.value.length > e.max && (Q = 0)) : (r.value.unshift(x), n("start", x), l.value.length > e.max && (Q = l.value.length - 1)), Q !== -1 &&
|
|
983
|
-
},
|
|
984
|
-
|
|
985
|
-
},
|
|
986
|
-
transition: `all ${
|
|
987
|
-
},
|
|
982
|
+
j ? (r.value.push(x), n("start", x), l.value.length > e.max && (Q = 0)) : (r.value.unshift(x), n("start", x), l.value.length > e.max && (Q = l.value.length - 1)), Q !== -1 && v(l.value[Q]);
|
|
983
|
+
}, b = (E) => {
|
|
984
|
+
w(E);
|
|
985
|
+
}, c = (E) => ["vue-notification-template", e.classes, E.type || ""], f = (E) => s.value ? void 0 : {
|
|
986
|
+
transition: `all ${E.speed}ms`
|
|
987
|
+
}, v = (E) => {
|
|
988
988
|
var $;
|
|
989
|
-
($ =
|
|
990
|
-
},
|
|
991
|
-
const $ = r.value.find((N) => N.id ===
|
|
992
|
-
$ &&
|
|
989
|
+
($ = E.timer) == null || $.stop(), E.state = Rn.DESTROYED, Y(), n("destroy", E);
|
|
990
|
+
}, w = (E) => {
|
|
991
|
+
const $ = r.value.find((N) => N.id === E);
|
|
992
|
+
$ && v($);
|
|
993
993
|
}, F = () => {
|
|
994
|
-
l.value.forEach(
|
|
995
|
-
},
|
|
994
|
+
l.value.forEach(v);
|
|
995
|
+
}, k = (E, $) => {
|
|
996
996
|
var N;
|
|
997
|
-
const M = (N = e.animation) == null ? void 0 : N[
|
|
997
|
+
const M = (N = e.animation) == null ? void 0 : N[E];
|
|
998
998
|
return typeof M == "function" ? M($) : M;
|
|
999
|
-
},
|
|
1000
|
-
const N =
|
|
1001
|
-
o(
|
|
999
|
+
}, h = (E, $) => {
|
|
1000
|
+
const N = k("enter", E);
|
|
1001
|
+
o(E, N, {
|
|
1002
1002
|
duration: e.speed,
|
|
1003
1003
|
complete: $
|
|
1004
1004
|
});
|
|
1005
|
-
}, I = (
|
|
1006
|
-
const N =
|
|
1007
|
-
o(
|
|
1005
|
+
}, I = (E, $) => {
|
|
1006
|
+
const N = k("leave", E);
|
|
1007
|
+
o(E, N, {
|
|
1008
1008
|
duration: e.speed,
|
|
1009
1009
|
complete: $
|
|
1010
1010
|
});
|
|
1011
1011
|
};
|
|
1012
1012
|
function Y() {
|
|
1013
|
-
r.value = r.value.filter((
|
|
1013
|
+
r.value = r.value.filter((E) => E.state !== Rn.DESTROYED);
|
|
1014
1014
|
}
|
|
1015
1015
|
return ja(() => {
|
|
1016
|
-
jt.on("add",
|
|
1016
|
+
jt.on("add", T), jt.on("close", b);
|
|
1017
1017
|
}), Nr(() => {
|
|
1018
|
-
jt.off("add",
|
|
1018
|
+
jt.off("add", T), jt.off("close", b);
|
|
1019
1019
|
}), () => {
|
|
1020
|
-
let
|
|
1020
|
+
let E;
|
|
1021
1021
|
return O("div", {
|
|
1022
1022
|
class: "vue-notification-group",
|
|
1023
1023
|
style: u.value
|
|
1024
|
-
}, [O(Yr, it(
|
|
1024
|
+
}, [O(Yr, it(m.value, {
|
|
1025
1025
|
tag: "div",
|
|
1026
1026
|
css: !s.value,
|
|
1027
1027
|
name: e.animationName
|
|
1028
|
-
}), as(
|
|
1028
|
+
}), as(E = l.value.map(($) => O("div", {
|
|
1029
1029
|
key: $.id,
|
|
1030
1030
|
class: "vue-notification-wrapper",
|
|
1031
|
-
style:
|
|
1031
|
+
style: f($),
|
|
1032
1032
|
"data-id": $.id,
|
|
1033
|
-
onMouseenter: () =>
|
|
1033
|
+
onMouseenter: () => g($),
|
|
1034
1034
|
onMouseleave: () => p($)
|
|
1035
1035
|
}, [t.body ? t.body({
|
|
1036
1036
|
item: $,
|
|
1037
1037
|
class: [e.classes, $.type],
|
|
1038
|
-
close: () =>
|
|
1038
|
+
close: () => v($)
|
|
1039
1039
|
}) : O("div", {
|
|
1040
|
-
class:
|
|
1040
|
+
class: c($),
|
|
1041
1041
|
onClick: () => d($)
|
|
1042
1042
|
}, [e.dangerouslySetInnerHtml ? O(qe, null, [$.title ? O("div", {
|
|
1043
1043
|
class: "notification-title",
|
|
@@ -1049,8 +1049,8 @@ const Rn = {
|
|
|
1049
1049
|
class: "notification-title"
|
|
1050
1050
|
}, [$.title]) : null, O("div", {
|
|
1051
1051
|
class: "notification-content"
|
|
1052
|
-
}, [$.text])])])]))) ?
|
|
1053
|
-
default: () => [
|
|
1052
|
+
}, [$.text])])])]))) ? E : {
|
|
1053
|
+
default: () => [E]
|
|
1054
1054
|
})]);
|
|
1055
1055
|
};
|
|
1056
1056
|
}
|
|
@@ -1143,111 +1143,111 @@ class no extends Error {
|
|
|
1143
1143
|
const rt = 3, Es = `
|
|
1144
1144
|
`;
|
|
1145
1145
|
function In() {
|
|
1146
|
-
const e = (
|
|
1146
|
+
const e = (c, f = rt) => {
|
|
1147
1147
|
nt({
|
|
1148
1148
|
group: "alerts",
|
|
1149
|
-
text:
|
|
1150
|
-
duration:
|
|
1149
|
+
text: c,
|
|
1150
|
+
duration: f * 1e3,
|
|
1151
1151
|
type: "success"
|
|
1152
1152
|
});
|
|
1153
|
-
}, n = (
|
|
1154
|
-
const { t:
|
|
1155
|
-
e(
|
|
1156
|
-
}, t = (
|
|
1153
|
+
}, n = (c, f = rt) => {
|
|
1154
|
+
const { t: v } = xe.global;
|
|
1155
|
+
e(v(c), f);
|
|
1156
|
+
}, t = (c, f = rt) => {
|
|
1157
1157
|
nt({
|
|
1158
1158
|
group: "alerts",
|
|
1159
|
-
text:
|
|
1160
|
-
duration:
|
|
1159
|
+
text: c,
|
|
1160
|
+
duration: f * 1e3,
|
|
1161
1161
|
type: "error"
|
|
1162
1162
|
});
|
|
1163
|
-
}, a = (
|
|
1164
|
-
const { t:
|
|
1165
|
-
t(
|
|
1166
|
-
}, r = (
|
|
1163
|
+
}, a = (c, f = rt) => {
|
|
1164
|
+
const { t: v } = xe.global;
|
|
1165
|
+
t(v(c), f);
|
|
1166
|
+
}, r = (c, f = rt) => {
|
|
1167
1167
|
nt({
|
|
1168
1168
|
group: "alerts",
|
|
1169
|
-
text:
|
|
1170
|
-
duration:
|
|
1169
|
+
text: c,
|
|
1170
|
+
duration: f * 1e3,
|
|
1171
1171
|
type: "info"
|
|
1172
1172
|
});
|
|
1173
|
-
}, o = (
|
|
1174
|
-
const { t:
|
|
1175
|
-
r(
|
|
1176
|
-
}, s = (
|
|
1173
|
+
}, o = (c, f = rt) => {
|
|
1174
|
+
const { t: v } = xe.global;
|
|
1175
|
+
r(v(c), f);
|
|
1176
|
+
}, s = (c, f = rt) => {
|
|
1177
1177
|
nt({
|
|
1178
1178
|
group: "alerts",
|
|
1179
|
-
text:
|
|
1180
|
-
duration:
|
|
1179
|
+
text: c,
|
|
1180
|
+
duration: f * 1e3,
|
|
1181
1181
|
type: "warning"
|
|
1182
1182
|
});
|
|
1183
|
-
}, l = (
|
|
1184
|
-
const { t:
|
|
1185
|
-
s(
|
|
1186
|
-
}, i = (
|
|
1187
|
-
const { t:
|
|
1183
|
+
}, l = (c, f = rt) => {
|
|
1184
|
+
const { t: v } = xe.global;
|
|
1185
|
+
s(v(c), f);
|
|
1186
|
+
}, i = (c = rt) => {
|
|
1187
|
+
const { t: f } = xe.global;
|
|
1188
1188
|
nt({
|
|
1189
1189
|
group: "alerts",
|
|
1190
|
-
text:
|
|
1191
|
-
duration:
|
|
1190
|
+
text: f("common.alert.fixValidationErrors"),
|
|
1191
|
+
duration: c * 1e3,
|
|
1192
1192
|
type: "error"
|
|
1193
1193
|
});
|
|
1194
|
-
}, u = (
|
|
1195
|
-
const { t:
|
|
1194
|
+
}, u = (c, f = rt) => {
|
|
1195
|
+
const { t: v } = xe.global;
|
|
1196
1196
|
nt({
|
|
1197
1197
|
group: "alerts",
|
|
1198
|
-
text:
|
|
1199
|
-
duration:
|
|
1198
|
+
text: v("common.alert.recordWas." + c),
|
|
1199
|
+
duration: f * 1e3,
|
|
1200
1200
|
type: "success"
|
|
1201
1201
|
});
|
|
1202
|
-
},
|
|
1203
|
-
const { t:
|
|
1204
|
-
for (let
|
|
1202
|
+
}, m = (c, f = -1, v = !1) => {
|
|
1203
|
+
const { t: w, te: F } = xe.global, k = [w("common.alert.fixApiValidationErrors")];
|
|
1204
|
+
for (let h = 0; h < c.length; h++) {
|
|
1205
1205
|
let I = "";
|
|
1206
|
-
|
|
1206
|
+
v ? I += c[h].field : F(c[h].field) ? I += w(c[h].field) : c[h].field.includes("[") ? I += b(c[h].field) : I += c[h].field.split(".").at(-1);
|
|
1207
1207
|
const Y = /* @__PURE__ */ new Set();
|
|
1208
|
-
for (let
|
|
1209
|
-
if (F("error.apiValidation." +
|
|
1210
|
-
Y.add(
|
|
1208
|
+
for (let E = 0; E < c[h].errors.length; E++) {
|
|
1209
|
+
if (F("error.apiValidation." + c[h].errors[E])) {
|
|
1210
|
+
Y.add(w("error.apiValidation." + c[h].errors[E]));
|
|
1211
1211
|
continue;
|
|
1212
1212
|
}
|
|
1213
|
-
Y.add(
|
|
1213
|
+
Y.add(w("error.apiValidation.noTranslation"));
|
|
1214
1214
|
}
|
|
1215
|
-
I.length > 0 &&
|
|
1215
|
+
I.length > 0 && k.push(I + ": " + Array.from(Y).join(", "));
|
|
1216
1216
|
}
|
|
1217
1217
|
nt({
|
|
1218
1218
|
group: "alerts",
|
|
1219
|
-
text:
|
|
1220
|
-
duration:
|
|
1219
|
+
text: k.join(Es),
|
|
1220
|
+
duration: f * 1e3,
|
|
1221
1221
|
type: "error"
|
|
1222
1222
|
});
|
|
1223
|
-
}, d = (
|
|
1224
|
-
const { t:
|
|
1225
|
-
let F =
|
|
1226
|
-
|
|
1223
|
+
}, d = (c, f = -1) => {
|
|
1224
|
+
const { t: v, te: w } = xe.global;
|
|
1225
|
+
let F = v("error.apiForbiddenOperation.noTranslation");
|
|
1226
|
+
w("error.apiForbiddenOperation." + c) && (F = v("error.apiForbiddenOperation." + c)), nt({
|
|
1227
1227
|
group: "alerts",
|
|
1228
1228
|
text: F,
|
|
1229
|
-
duration:
|
|
1229
|
+
duration: f * 1e3,
|
|
1230
1230
|
type: "error"
|
|
1231
1231
|
});
|
|
1232
|
-
},
|
|
1233
|
-
const { t:
|
|
1232
|
+
}, g = (c = -1) => {
|
|
1233
|
+
const { t: f } = xe.global;
|
|
1234
1234
|
nt({
|
|
1235
1235
|
group: "alerts",
|
|
1236
|
-
text:
|
|
1237
|
-
duration:
|
|
1236
|
+
text: f("common.alert.unknownError"),
|
|
1237
|
+
duration: c * 1e3,
|
|
1238
1238
|
type: "error"
|
|
1239
1239
|
});
|
|
1240
|
-
}, p = (
|
|
1241
|
-
const { t:
|
|
1240
|
+
}, p = (c = rt) => {
|
|
1241
|
+
const { t: f } = xe.global;
|
|
1242
1242
|
nt({
|
|
1243
1243
|
group: "alerts",
|
|
1244
|
-
text:
|
|
1245
|
-
duration:
|
|
1244
|
+
text: f("common.alert.forbiddenError"),
|
|
1245
|
+
duration: c * 1e3,
|
|
1246
1246
|
type: "error"
|
|
1247
1247
|
});
|
|
1248
|
-
},
|
|
1249
|
-
const { t:
|
|
1250
|
-
return
|
|
1248
|
+
}, T = (c, f = -1) => ms(c) ? (p(f), !0) : rr(c) ? (m(c.fields, f), !0) : Ss(c) ? (a("error.apiDependencyExists.message", f), !0) : bs(c) ? (d(c.detail, f), !0) : Ds(c) ? (a("error.apiTimedOut.message", f), !0) : ks(c) || ss(c) || eo(c) ? (g(f), !0) : !1, b = (c) => {
|
|
1249
|
+
const { t: f } = xe.global, v = c.split("["), w = v[0].trim(), F = v[1].split("]"), k = F[0], h = F[1] ?? "";
|
|
1250
|
+
return f(w) + "[" + k + "]: " + f(w.slice(0, -1) + h);
|
|
1251
1251
|
};
|
|
1252
1252
|
return {
|
|
1253
1253
|
showSuccess: e,
|
|
@@ -1260,11 +1260,11 @@ function In() {
|
|
|
1260
1260
|
showWarningT: l,
|
|
1261
1261
|
showValidationError: i,
|
|
1262
1262
|
showRecordWas: u,
|
|
1263
|
-
showApiValidationError:
|
|
1263
|
+
showApiValidationError: m,
|
|
1264
1264
|
showApiForbiddenOperationError: d,
|
|
1265
|
-
showUnknownError:
|
|
1265
|
+
showUnknownError: g,
|
|
1266
1266
|
showForbiddenError: p,
|
|
1267
|
-
showErrorsDefault:
|
|
1267
|
+
showErrorsDefault: T
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
1270
|
function ao(e) {
|
|
@@ -1276,15 +1276,15 @@ function As() {
|
|
|
1276
1276
|
(function(t, a) {
|
|
1277
1277
|
e.exports = a();
|
|
1278
1278
|
})(Ts, (function() {
|
|
1279
|
-
var t = 1e3, a = 6e4, r = 36e5, o = "millisecond", s = "second", l = "minute", i = "hour", u = "day",
|
|
1279
|
+
var t = 1e3, a = 6e4, r = 36e5, o = "millisecond", s = "second", l = "minute", i = "hour", u = "day", m = "week", d = "month", g = "quarter", p = "year", T = "date", b = "Invalid Date", c = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, f = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, v = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(_) {
|
|
1280
1280
|
var S = ["th", "st", "nd", "rd"], y = _ % 100;
|
|
1281
1281
|
return "[" + _ + (S[(y - 20) % 10] || S[y] || S[0]) + "]";
|
|
1282
|
-
} },
|
|
1282
|
+
} }, w = function(_, S, y) {
|
|
1283
1283
|
var C = String(_);
|
|
1284
1284
|
return !C || C.length >= S ? _ : "" + Array(S + 1 - C.length).join(y) + _;
|
|
1285
|
-
}, F = { s:
|
|
1285
|
+
}, F = { s: w, z: function(_) {
|
|
1286
1286
|
var S = -_.utcOffset(), y = Math.abs(S), C = Math.floor(y / 60), x = y % 60;
|
|
1287
|
-
return (S <= 0 ? "+" : "-") +
|
|
1287
|
+
return (S <= 0 ? "+" : "-") + w(C, 2, "0") + ":" + w(x, 2, "0");
|
|
1288
1288
|
}, m: function _(S, y) {
|
|
1289
1289
|
if (S.date() < y.date()) return -_(y, S);
|
|
1290
1290
|
var C = 12 * (y.year() - S.year()) + (y.month() - S.month()), x = S.clone().add(C, d), R = y - x < 0, j = S.clone().add(C + (R ? -1 : 1), d);
|
|
@@ -1292,37 +1292,37 @@ function As() {
|
|
|
1292
1292
|
}, a: function(_) {
|
|
1293
1293
|
return _ < 0 ? Math.ceil(_) || 0 : Math.floor(_);
|
|
1294
1294
|
}, p: function(_) {
|
|
1295
|
-
return { M: d, y: p, w:
|
|
1295
|
+
return { M: d, y: p, w: m, d: u, D: T, h: i, m: l, s, ms: o, Q: g }[_] || String(_ || "").toLowerCase().replace(/s$/, "");
|
|
1296
1296
|
}, u: function(_) {
|
|
1297
1297
|
return _ === void 0;
|
|
1298
|
-
} },
|
|
1299
|
-
|
|
1298
|
+
} }, k = "en", h = {};
|
|
1299
|
+
h[k] = v;
|
|
1300
1300
|
var I = "$isDayjsObject", Y = function(_) {
|
|
1301
1301
|
return _ instanceof M || !(!_ || !_[I]);
|
|
1302
|
-
},
|
|
1302
|
+
}, E = function _(S, y, C) {
|
|
1303
1303
|
var x;
|
|
1304
|
-
if (!S) return
|
|
1304
|
+
if (!S) return k;
|
|
1305
1305
|
if (typeof S == "string") {
|
|
1306
1306
|
var R = S.toLowerCase();
|
|
1307
|
-
|
|
1307
|
+
h[R] && (x = R), y && (h[R] = y, x = R);
|
|
1308
1308
|
var j = S.split("-");
|
|
1309
1309
|
if (!x && j.length > 1) return _(j[0]);
|
|
1310
1310
|
} else {
|
|
1311
1311
|
var Q = S.name;
|
|
1312
|
-
|
|
1312
|
+
h[Q] = S, x = Q;
|
|
1313
1313
|
}
|
|
1314
|
-
return !C && x && (
|
|
1314
|
+
return !C && x && (k = x), x || !C && k;
|
|
1315
1315
|
}, $ = function(_, S) {
|
|
1316
1316
|
if (Y(_)) return _.clone();
|
|
1317
1317
|
var y = typeof S == "object" ? S : {};
|
|
1318
1318
|
return y.date = _, y.args = arguments, new M(y);
|
|
1319
1319
|
}, N = F;
|
|
1320
|
-
N.l =
|
|
1320
|
+
N.l = E, N.i = Y, N.w = function(_, S) {
|
|
1321
1321
|
return $(_, { locale: S.$L, utc: S.$u, x: S.$x, $offset: S.$offset });
|
|
1322
1322
|
};
|
|
1323
1323
|
var M = (function() {
|
|
1324
1324
|
function _(y) {
|
|
1325
|
-
this.$L =
|
|
1325
|
+
this.$L = E(y.locale, null, !0), this.parse(y), this.$x = this.$x || y.x || {}, this[I] = !0;
|
|
1326
1326
|
}
|
|
1327
1327
|
var S = _.prototype;
|
|
1328
1328
|
return S.parse = function(y) {
|
|
@@ -1332,7 +1332,7 @@ function As() {
|
|
|
1332
1332
|
if (N.u(x)) return /* @__PURE__ */ new Date();
|
|
1333
1333
|
if (x instanceof Date) return new Date(x);
|
|
1334
1334
|
if (typeof x == "string" && !/Z$/i.test(x)) {
|
|
1335
|
-
var j = x.match(
|
|
1335
|
+
var j = x.match(c);
|
|
1336
1336
|
if (j) {
|
|
1337
1337
|
var Q = j[2] - 1 || 0, re = (j[7] || "0").substring(0, 3);
|
|
1338
1338
|
return R ? new Date(Date.UTC(j[1], Q, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, re)) : new Date(j[1], Q, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, re);
|
|
@@ -1346,7 +1346,7 @@ function As() {
|
|
|
1346
1346
|
}, S.$utils = function() {
|
|
1347
1347
|
return N;
|
|
1348
1348
|
}, S.isValid = function() {
|
|
1349
|
-
return this.$d.toString() !==
|
|
1349
|
+
return this.$d.toString() !== b;
|
|
1350
1350
|
}, S.isSame = function(y, C) {
|
|
1351
1351
|
var x = $(y);
|
|
1352
1352
|
return this.startOf(C) <= x && x <= this.endOf(C);
|
|
@@ -1372,11 +1372,11 @@ function As() {
|
|
|
1372
1372
|
return R ? Q(1, 0) : Q(31, 11);
|
|
1373
1373
|
case d:
|
|
1374
1374
|
return R ? Q(1, Te) : Q(0, Te + 1);
|
|
1375
|
-
case
|
|
1375
|
+
case m:
|
|
1376
1376
|
var te = this.$locale().weekStart || 0, q = (ve < te ? ve + 7 : ve) - te;
|
|
1377
1377
|
return Q(R ? ke - q : ke + (6 - q), Te);
|
|
1378
1378
|
case u:
|
|
1379
|
-
case
|
|
1379
|
+
case T:
|
|
1380
1380
|
return re(W + "Hours", 0);
|
|
1381
1381
|
case i:
|
|
1382
1382
|
return re(W + "Minutes", 1);
|
|
@@ -1390,10 +1390,10 @@ function As() {
|
|
|
1390
1390
|
}, S.endOf = function(y) {
|
|
1391
1391
|
return this.startOf(y, !1);
|
|
1392
1392
|
}, S.$set = function(y, C) {
|
|
1393
|
-
var x, R = N.p(y), j = "set" + (this.$u ? "UTC" : ""), Q = (x = {}, x[u] = j + "Date", x[
|
|
1393
|
+
var x, R = N.p(y), j = "set" + (this.$u ? "UTC" : ""), Q = (x = {}, x[u] = j + "Date", x[T] = j + "Date", x[d] = j + "Month", x[p] = j + "FullYear", x[i] = j + "Hours", x[l] = j + "Minutes", x[s] = j + "Seconds", x[o] = j + "Milliseconds", x)[R], re = R === u ? this.$D + (C - this.$W) : C;
|
|
1394
1394
|
if (R === d || R === p) {
|
|
1395
|
-
var ve = this.clone().set(
|
|
1396
|
-
ve.$d[Q](re), ve.init(), this.$d = ve.set(
|
|
1395
|
+
var ve = this.clone().set(T, 1);
|
|
1396
|
+
ve.$d[Q](re), ve.init(), this.$d = ve.set(T, Math.min(this.$D, ve.daysInMonth())).$d;
|
|
1397
1397
|
} else Q && this.$d[Q](re);
|
|
1398
1398
|
return this.init(), this;
|
|
1399
1399
|
}, S.set = function(y, C) {
|
|
@@ -1410,14 +1410,14 @@ function As() {
|
|
|
1410
1410
|
if (j === d) return this.set(d, this.$M + y);
|
|
1411
1411
|
if (j === p) return this.set(p, this.$y + y);
|
|
1412
1412
|
if (j === u) return Q(1);
|
|
1413
|
-
if (j ===
|
|
1413
|
+
if (j === m) return Q(7);
|
|
1414
1414
|
var re = (x = {}, x[l] = a, x[i] = r, x[s] = t, x)[j] || 1, ve = this.$d.getTime() + y * re;
|
|
1415
1415
|
return N.w(ve, this);
|
|
1416
1416
|
}, S.subtract = function(y, C) {
|
|
1417
1417
|
return this.add(-1 * y, C);
|
|
1418
1418
|
}, S.format = function(y) {
|
|
1419
1419
|
var C = this, x = this.$locale();
|
|
1420
|
-
if (!this.isValid()) return x.invalidDate ||
|
|
1420
|
+
if (!this.isValid()) return x.invalidDate || b;
|
|
1421
1421
|
var R = y || "YYYY-MM-DDTHH:mm:ssZ", j = N.z(this), Q = this.$H, re = this.$m, ve = this.$M, Te = x.weekdays, ke = x.months, W = x.meridiem, te = function(ge, Z, ee, se) {
|
|
1422
1422
|
return ge && (ge[Z] || ge(C, R)) || ee[Z].slice(0, se);
|
|
1423
1423
|
}, q = function(ge) {
|
|
@@ -1426,7 +1426,7 @@ function As() {
|
|
|
1426
1426
|
var se = ge < 12 ? "AM" : "PM";
|
|
1427
1427
|
return ee ? se.toLowerCase() : se;
|
|
1428
1428
|
};
|
|
1429
|
-
return R.replace(
|
|
1429
|
+
return R.replace(f, (function(ge, Z) {
|
|
1430
1430
|
return Z || (function(ee) {
|
|
1431
1431
|
switch (ee) {
|
|
1432
1432
|
case "YY":
|
|
@@ -1494,10 +1494,10 @@ function As() {
|
|
|
1494
1494
|
case d:
|
|
1495
1495
|
R = ke();
|
|
1496
1496
|
break;
|
|
1497
|
-
case
|
|
1497
|
+
case g:
|
|
1498
1498
|
R = ke() / 3;
|
|
1499
1499
|
break;
|
|
1500
|
-
case
|
|
1500
|
+
case m:
|
|
1501
1501
|
R = (Te - ve) / 6048e5;
|
|
1502
1502
|
break;
|
|
1503
1503
|
case u:
|
|
@@ -1519,10 +1519,10 @@ function As() {
|
|
|
1519
1519
|
}, S.daysInMonth = function() {
|
|
1520
1520
|
return this.endOf(d).$D;
|
|
1521
1521
|
}, S.$locale = function() {
|
|
1522
|
-
return
|
|
1522
|
+
return h[this.$L];
|
|
1523
1523
|
}, S.locale = function(y, C) {
|
|
1524
1524
|
if (!y) return this.$L;
|
|
1525
|
-
var x = this.clone(), R =
|
|
1525
|
+
var x = this.clone(), R = E(y, C, !0);
|
|
1526
1526
|
return R && (x.$L = R), x;
|
|
1527
1527
|
}, S.clone = function() {
|
|
1528
1528
|
return N.w(this.$d, this);
|
|
@@ -1536,15 +1536,15 @@ function As() {
|
|
|
1536
1536
|
return this.$d.toUTCString();
|
|
1537
1537
|
}, _;
|
|
1538
1538
|
})(), A = M.prototype;
|
|
1539
|
-
return $.prototype = A, [["$ms", o], ["$s", s], ["$m", l], ["$H", i], ["$W", u], ["$M", d], ["$y", p], ["$D",
|
|
1539
|
+
return $.prototype = A, [["$ms", o], ["$s", s], ["$m", l], ["$H", i], ["$W", u], ["$M", d], ["$y", p], ["$D", T]].forEach((function(_) {
|
|
1540
1540
|
A[_[1]] = function(S) {
|
|
1541
1541
|
return this.$g(S, _[0], _[1]);
|
|
1542
1542
|
};
|
|
1543
1543
|
})), $.extend = function(_, S) {
|
|
1544
1544
|
return _.$i || (_(S, M, $), _.$i = !0), $;
|
|
1545
|
-
}, $.locale =
|
|
1545
|
+
}, $.locale = E, $.isDayjs = Y, $.unix = function(_) {
|
|
1546
1546
|
return $(1e3 * _);
|
|
1547
|
-
}, $.en =
|
|
1547
|
+
}, $.en = h[k], $.Ls = h, $.p = {}, $;
|
|
1548
1548
|
}));
|
|
1549
1549
|
})(Un)), Un.exports;
|
|
1550
1550
|
}
|
|
@@ -1559,51 +1559,51 @@ function Is() {
|
|
|
1559
1559
|
var t = "minute", a = /[+-]\d\d(?::?\d\d)?/g, r = /([+-]|\d\d)/g;
|
|
1560
1560
|
return function(o, s, l) {
|
|
1561
1561
|
var i = s.prototype;
|
|
1562
|
-
l.utc = function(
|
|
1563
|
-
var
|
|
1564
|
-
return new s(
|
|
1565
|
-
}, i.utc = function(
|
|
1566
|
-
var
|
|
1567
|
-
return
|
|
1562
|
+
l.utc = function(b) {
|
|
1563
|
+
var c = { date: b, utc: !0, args: arguments };
|
|
1564
|
+
return new s(c);
|
|
1565
|
+
}, i.utc = function(b) {
|
|
1566
|
+
var c = l(this.toDate(), { locale: this.$L, utc: !0 });
|
|
1567
|
+
return b ? c.add(this.utcOffset(), t) : c;
|
|
1568
1568
|
}, i.local = function() {
|
|
1569
1569
|
return l(this.toDate(), { locale: this.$L, utc: !1 });
|
|
1570
1570
|
};
|
|
1571
1571
|
var u = i.parse;
|
|
1572
|
-
i.parse = function(
|
|
1573
|
-
|
|
1572
|
+
i.parse = function(b) {
|
|
1573
|
+
b.utc && (this.$u = !0), this.$utils().u(b.$offset) || (this.$offset = b.$offset), u.call(this, b);
|
|
1574
1574
|
};
|
|
1575
|
-
var
|
|
1575
|
+
var m = i.init;
|
|
1576
1576
|
i.init = function() {
|
|
1577
1577
|
if (this.$u) {
|
|
1578
|
-
var
|
|
1579
|
-
this.$y =
|
|
1580
|
-
} else
|
|
1578
|
+
var b = this.$d;
|
|
1579
|
+
this.$y = b.getUTCFullYear(), this.$M = b.getUTCMonth(), this.$D = b.getUTCDate(), this.$W = b.getUTCDay(), this.$H = b.getUTCHours(), this.$m = b.getUTCMinutes(), this.$s = b.getUTCSeconds(), this.$ms = b.getUTCMilliseconds();
|
|
1580
|
+
} else m.call(this);
|
|
1581
1581
|
};
|
|
1582
1582
|
var d = i.utcOffset;
|
|
1583
|
-
i.utcOffset = function(
|
|
1584
|
-
var
|
|
1585
|
-
if (
|
|
1586
|
-
if (typeof
|
|
1587
|
-
|
|
1588
|
-
var
|
|
1589
|
-
if (!
|
|
1590
|
-
var I = ("" +
|
|
1591
|
-
return
|
|
1592
|
-
})(
|
|
1593
|
-
var
|
|
1594
|
-
if (
|
|
1595
|
-
var
|
|
1596
|
-
if (
|
|
1583
|
+
i.utcOffset = function(b, c) {
|
|
1584
|
+
var f = this.$utils().u;
|
|
1585
|
+
if (f(b)) return this.$u ? 0 : f(this.$offset) ? d.call(this) : this.$offset;
|
|
1586
|
+
if (typeof b == "string" && (b = (function(k) {
|
|
1587
|
+
k === void 0 && (k = "");
|
|
1588
|
+
var h = k.match(a);
|
|
1589
|
+
if (!h) return null;
|
|
1590
|
+
var I = ("" + h[0]).match(r) || ["-", 0, 0], Y = I[0], E = 60 * +I[1] + +I[2];
|
|
1591
|
+
return E === 0 ? 0 : Y === "+" ? E : -E;
|
|
1592
|
+
})(b), b === null)) return this;
|
|
1593
|
+
var v = Math.abs(b) <= 16 ? 60 * b : b;
|
|
1594
|
+
if (v === 0) return this.utc(c);
|
|
1595
|
+
var w = this.clone();
|
|
1596
|
+
if (c) return w.$offset = v, w.$u = !1, w;
|
|
1597
1597
|
var F = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
1598
|
-
return (
|
|
1598
|
+
return (w = this.local().add(v + F, t)).$offset = v, w.$x.$localOffset = F, w;
|
|
1599
1599
|
};
|
|
1600
|
-
var
|
|
1601
|
-
i.format = function(
|
|
1602
|
-
var
|
|
1603
|
-
return
|
|
1600
|
+
var g = i.format;
|
|
1601
|
+
i.format = function(b) {
|
|
1602
|
+
var c = b || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
1603
|
+
return g.call(this, c);
|
|
1604
1604
|
}, i.valueOf = function() {
|
|
1605
|
-
var
|
|
1606
|
-
return this.$d.valueOf() - 6e4 *
|
|
1605
|
+
var b = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
1606
|
+
return this.$d.valueOf() - 6e4 * b;
|
|
1607
1607
|
}, i.isUTC = function() {
|
|
1608
1608
|
return !!this.$u;
|
|
1609
1609
|
}, i.toISOString = function() {
|
|
@@ -1612,14 +1612,14 @@ function Is() {
|
|
|
1612
1612
|
return this.toDate().toUTCString();
|
|
1613
1613
|
};
|
|
1614
1614
|
var p = i.toDate;
|
|
1615
|
-
i.toDate = function(
|
|
1616
|
-
return
|
|
1615
|
+
i.toDate = function(b) {
|
|
1616
|
+
return b === "s" && this.$offset ? l(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : p.call(this);
|
|
1617
1617
|
};
|
|
1618
|
-
var
|
|
1619
|
-
i.diff = function(
|
|
1620
|
-
if (
|
|
1621
|
-
var
|
|
1622
|
-
return
|
|
1618
|
+
var T = i.diff;
|
|
1619
|
+
i.diff = function(b, c, f) {
|
|
1620
|
+
if (b && this.$u === b.$u) return T.call(this, b, c, f);
|
|
1621
|
+
var v = this.local(), w = l(b).local();
|
|
1622
|
+
return T.call(v, w, c, f);
|
|
1623
1623
|
};
|
|
1624
1624
|
};
|
|
1625
1625
|
}));
|
|
@@ -1633,73 +1633,73 @@ function Fs() {
|
|
|
1633
1633
|
(function(t, a) {
|
|
1634
1634
|
e.exports = a();
|
|
1635
1635
|
})($s, (function() {
|
|
1636
|
-
var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, a = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, o = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, i = {}, u = function(
|
|
1637
|
-
return (
|
|
1638
|
-
},
|
|
1639
|
-
return function(
|
|
1640
|
-
this[
|
|
1636
|
+
var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, a = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, r = /\d/, o = /\d\d/, s = /\d\d?/, l = /\d*[^-_:/,()\s\d]+/, i = {}, u = function(c) {
|
|
1637
|
+
return (c = +c) + (c > 68 ? 1900 : 2e3);
|
|
1638
|
+
}, m = function(c) {
|
|
1639
|
+
return function(f) {
|
|
1640
|
+
this[c] = +f;
|
|
1641
1641
|
};
|
|
1642
|
-
}, d = [/[+-]\d\d:?(\d\d)?|Z/, function(
|
|
1643
|
-
(this.zone || (this.zone = {})).offset = (function(
|
|
1644
|
-
if (!
|
|
1645
|
-
var
|
|
1646
|
-
return
|
|
1647
|
-
})(
|
|
1648
|
-
}],
|
|
1649
|
-
var
|
|
1650
|
-
return
|
|
1651
|
-
}, p = function(
|
|
1652
|
-
var
|
|
1653
|
-
if (
|
|
1654
|
-
for (var F = 1; F <= 24; F += 1) if (
|
|
1655
|
-
|
|
1642
|
+
}, d = [/[+-]\d\d:?(\d\d)?|Z/, function(c) {
|
|
1643
|
+
(this.zone || (this.zone = {})).offset = (function(f) {
|
|
1644
|
+
if (!f || f === "Z") return 0;
|
|
1645
|
+
var v = f.match(/([+-]|\d\d)/g), w = 60 * v[1] + (+v[2] || 0);
|
|
1646
|
+
return w === 0 ? 0 : v[0] === "+" ? -w : w;
|
|
1647
|
+
})(c);
|
|
1648
|
+
}], g = function(c) {
|
|
1649
|
+
var f = i[c];
|
|
1650
|
+
return f && (f.indexOf ? f : f.s.concat(f.f));
|
|
1651
|
+
}, p = function(c, f) {
|
|
1652
|
+
var v, w = i.meridiem;
|
|
1653
|
+
if (w) {
|
|
1654
|
+
for (var F = 1; F <= 24; F += 1) if (c.indexOf(w(F, 0, f)) > -1) {
|
|
1655
|
+
v = F > 12;
|
|
1656
1656
|
break;
|
|
1657
1657
|
}
|
|
1658
|
-
} else
|
|
1659
|
-
return
|
|
1660
|
-
},
|
|
1661
|
-
this.afternoon = p(
|
|
1662
|
-
}], a: [l, function(
|
|
1663
|
-
this.afternoon = p(
|
|
1664
|
-
}], Q: [r, function(
|
|
1665
|
-
this.month = 3 * (
|
|
1666
|
-
}], S: [r, function(
|
|
1667
|
-
this.milliseconds = 100 * +
|
|
1668
|
-
}], SS: [o, function(
|
|
1669
|
-
this.milliseconds = 10 * +
|
|
1670
|
-
}], SSS: [/\d{3}/, function(
|
|
1671
|
-
this.milliseconds = +
|
|
1672
|
-
}], s: [s,
|
|
1673
|
-
var
|
|
1674
|
-
if (this.day =
|
|
1675
|
-
}], w: [s,
|
|
1676
|
-
var
|
|
1677
|
-
return
|
|
1678
|
-
}))).indexOf(
|
|
1679
|
-
if (
|
|
1680
|
-
this.month =
|
|
1681
|
-
}], MMMM: [l, function(
|
|
1682
|
-
var
|
|
1683
|
-
if (
|
|
1684
|
-
this.month =
|
|
1685
|
-
}], Y: [/[+-]?\d+/,
|
|
1686
|
-
this.year = u(
|
|
1687
|
-
}], YYYY: [/\d{4}/,
|
|
1688
|
-
function
|
|
1689
|
-
var
|
|
1690
|
-
|
|
1691
|
-
for (var
|
|
1658
|
+
} else v = c === (f ? "pm" : "PM");
|
|
1659
|
+
return v;
|
|
1660
|
+
}, T = { A: [l, function(c) {
|
|
1661
|
+
this.afternoon = p(c, !1);
|
|
1662
|
+
}], a: [l, function(c) {
|
|
1663
|
+
this.afternoon = p(c, !0);
|
|
1664
|
+
}], Q: [r, function(c) {
|
|
1665
|
+
this.month = 3 * (c - 1) + 1;
|
|
1666
|
+
}], S: [r, function(c) {
|
|
1667
|
+
this.milliseconds = 100 * +c;
|
|
1668
|
+
}], SS: [o, function(c) {
|
|
1669
|
+
this.milliseconds = 10 * +c;
|
|
1670
|
+
}], SSS: [/\d{3}/, function(c) {
|
|
1671
|
+
this.milliseconds = +c;
|
|
1672
|
+
}], s: [s, m("seconds")], ss: [s, m("seconds")], m: [s, m("minutes")], mm: [s, m("minutes")], H: [s, m("hours")], h: [s, m("hours")], HH: [s, m("hours")], hh: [s, m("hours")], D: [s, m("day")], DD: [o, m("day")], Do: [l, function(c) {
|
|
1673
|
+
var f = i.ordinal, v = c.match(/\d+/);
|
|
1674
|
+
if (this.day = v[0], f) for (var w = 1; w <= 31; w += 1) f(w).replace(/\[|\]/g, "") === c && (this.day = w);
|
|
1675
|
+
}], w: [s, m("week")], ww: [o, m("week")], M: [s, m("month")], MM: [o, m("month")], MMM: [l, function(c) {
|
|
1676
|
+
var f = g("months"), v = (g("monthsShort") || f.map((function(w) {
|
|
1677
|
+
return w.slice(0, 3);
|
|
1678
|
+
}))).indexOf(c) + 1;
|
|
1679
|
+
if (v < 1) throw new Error();
|
|
1680
|
+
this.month = v % 12 || v;
|
|
1681
|
+
}], MMMM: [l, function(c) {
|
|
1682
|
+
var f = g("months").indexOf(c) + 1;
|
|
1683
|
+
if (f < 1) throw new Error();
|
|
1684
|
+
this.month = f % 12 || f;
|
|
1685
|
+
}], Y: [/[+-]?\d+/, m("year")], YY: [o, function(c) {
|
|
1686
|
+
this.year = u(c);
|
|
1687
|
+
}], YYYY: [/\d{4}/, m("year")], Z: d, ZZ: d };
|
|
1688
|
+
function b(c) {
|
|
1689
|
+
var f, v;
|
|
1690
|
+
f = c, v = i && i.formats;
|
|
1691
|
+
for (var w = (c = f.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (function($, N, M) {
|
|
1692
1692
|
var A = M && M.toUpperCase();
|
|
1693
|
-
return N ||
|
|
1693
|
+
return N || v[M] || t[M] || v[A].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (function(_, S, y) {
|
|
1694
1694
|
return S || y.slice(1);
|
|
1695
1695
|
}));
|
|
1696
|
-
}))).match(a), F =
|
|
1697
|
-
var
|
|
1698
|
-
|
|
1696
|
+
}))).match(a), F = w.length, k = 0; k < F; k += 1) {
|
|
1697
|
+
var h = w[k], I = T[h], Y = I && I[0], E = I && I[1];
|
|
1698
|
+
w[k] = E ? { regex: Y, parser: E } : h.replace(/^\[|\]$/g, "");
|
|
1699
1699
|
}
|
|
1700
1700
|
return function($) {
|
|
1701
1701
|
for (var N = {}, M = 0, A = 0; M < F; M += 1) {
|
|
1702
|
-
var _ =
|
|
1702
|
+
var _ = w[M];
|
|
1703
1703
|
if (typeof _ == "string") A += _.length;
|
|
1704
1704
|
else {
|
|
1705
1705
|
var S = _.regex, y = _.parser, C = $.slice(A), x = S.exec(C)[0];
|
|
@@ -1715,36 +1715,36 @@ function Fs() {
|
|
|
1715
1715
|
})(N), N;
|
|
1716
1716
|
};
|
|
1717
1717
|
}
|
|
1718
|
-
return function(
|
|
1719
|
-
|
|
1720
|
-
var
|
|
1721
|
-
|
|
1722
|
-
var
|
|
1718
|
+
return function(c, f, v) {
|
|
1719
|
+
v.p.customParseFormat = !0, c && c.parseTwoDigitYear && (u = c.parseTwoDigitYear);
|
|
1720
|
+
var w = f.prototype, F = w.parse;
|
|
1721
|
+
w.parse = function(k) {
|
|
1722
|
+
var h = k.date, I = k.utc, Y = k.args;
|
|
1723
1723
|
this.$u = I;
|
|
1724
|
-
var
|
|
1725
|
-
if (typeof
|
|
1724
|
+
var E = Y[1];
|
|
1725
|
+
if (typeof E == "string") {
|
|
1726
1726
|
var $ = Y[2] === !0, N = Y[3] === !0, M = $ || N, A = Y[2];
|
|
1727
|
-
N && (A = Y[2]), i = this.$locale(), !$ && A && (i =
|
|
1727
|
+
N && (A = Y[2]), i = this.$locale(), !$ && A && (i = v.Ls[A]), this.$d = (function(C, x, R, j) {
|
|
1728
1728
|
try {
|
|
1729
1729
|
if (["x", "X"].indexOf(x) > -1) return new Date((x === "X" ? 1e3 : 1) * C);
|
|
1730
|
-
var Q =
|
|
1730
|
+
var Q = b(x)(C), re = Q.year, ve = Q.month, Te = Q.day, ke = Q.hours, W = Q.minutes, te = Q.seconds, q = Q.milliseconds, K = Q.zone, ge = Q.week, Z = /* @__PURE__ */ new Date(), ee = Te || (re || ve ? 1 : Z.getDate()), se = re || Z.getFullYear(), Ie = 0;
|
|
1731
1731
|
re && !ve || (Ie = ve > 0 ? ve - 1 : Z.getMonth());
|
|
1732
1732
|
var Nt, z = ke || 0, ie = W || 0, Ce = te || 0, be = q || 0;
|
|
1733
1733
|
return K ? new Date(Date.UTC(se, Ie, ee, z, ie, Ce, be + 60 * K.offset * 1e3)) : R ? new Date(Date.UTC(se, Ie, ee, z, ie, Ce, be)) : (Nt = new Date(se, Ie, ee, z, ie, Ce, be), ge && (Nt = j(Nt).week(ge).toDate()), Nt);
|
|
1734
1734
|
} catch {
|
|
1735
1735
|
return /* @__PURE__ */ new Date("");
|
|
1736
1736
|
}
|
|
1737
|
-
})(
|
|
1738
|
-
} else if (
|
|
1739
|
-
Y[1] =
|
|
1740
|
-
var y =
|
|
1737
|
+
})(h, E, I, v), this.init(), A && A !== !0 && (this.$L = this.locale(A).$L), M && h != this.format(E) && (this.$d = /* @__PURE__ */ new Date("")), i = {};
|
|
1738
|
+
} else if (E instanceof Array) for (var _ = E.length, S = 1; S <= _; S += 1) {
|
|
1739
|
+
Y[1] = E[S - 1];
|
|
1740
|
+
var y = v.apply(this, Y);
|
|
1741
1741
|
if (y.isValid()) {
|
|
1742
1742
|
this.$d = y.$d, this.$L = y.$L, this.init();
|
|
1743
1743
|
break;
|
|
1744
1744
|
}
|
|
1745
1745
|
S === _ && (this.$d = /* @__PURE__ */ new Date(""));
|
|
1746
1746
|
}
|
|
1747
|
-
else F.call(this,
|
|
1747
|
+
else F.call(this, k);
|
|
1748
1748
|
};
|
|
1749
1749
|
};
|
|
1750
1750
|
}));
|
|
@@ -1754,13 +1754,13 @@ var Os = Fs();
|
|
|
1754
1754
|
const ir = /* @__PURE__ */ ao(Os);
|
|
1755
1755
|
le.extend(sr);
|
|
1756
1756
|
le.extend(ir);
|
|
1757
|
-
const At = ".000000Z", Xn = "YYYY-MM-DDTHH:mm:ss", da = "1970-01-01T00:00:00.000000Z", fa = "2100-01-01T00:00:00.000000Z", Ed = () => le().utc().toDate(), Bs = (e) => le(e).toDate(), Td = () => Cl(le().utc().unix()), Dn = (e = !0, n = !1) => e && !n ? le().utc().format("YYYY-MM-DDTHH:mm:ss") + At : e && n ? le().utc().format("YYYY-MM-DDTHH:mm:00") + At : !e && n ? le().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : le().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", Ad = (e = 0) => e === 0 ? le().startOf("day").utc().format(Xn) + At : le().add(e, "days").startOf("day").utc().format(Xn) + At, xd = (e = 0) => e === 0 ? le().endOf("day").utc().format(Xn) + At : le().add(e, "days").endOf("day").utc().format(Xn) + At, Rs = (e = 0, n = null) => (n === null && (n = /* @__PURE__ */ new Date()), e === 0 ? n : e > 0 ? le(n).add(e, "minutes").toDate() : e < 0 ? le(n).subtract(Math.abs(e), "minutes").toDate() : n), Ra = (e, n = At) => le(e).utc().format("YYYY-MM-DDTHH:mm:ss") + n, _d = () => le().utc().format("YYYY"), dn = (e, n = "", t = !1) => e === fa || e === da || e === "" || G(e) ||
|
|
1758
|
-
if (e === fa || e === da || e === "" || G(e) ||
|
|
1757
|
+
const At = ".000000Z", Xn = "YYYY-MM-DDTHH:mm:ss", da = "1970-01-01T00:00:00.000000Z", fa = "2100-01-01T00:00:00.000000Z", Ed = () => le().utc().toDate(), Bs = (e) => le(e).toDate(), Td = () => Cl(le().utc().unix()), Dn = (e = !0, n = !1) => e && !n ? le().utc().format("YYYY-MM-DDTHH:mm:ss") + At : e && n ? le().utc().format("YYYY-MM-DDTHH:mm:00") + At : !e && n ? le().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : le().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", Ad = (e = 0) => e === 0 ? le().startOf("day").utc().format(Xn) + At : le().add(e, "days").startOf("day").utc().format(Xn) + At, xd = (e = 0) => e === 0 ? le().endOf("day").utc().format(Xn) + At : le().add(e, "days").endOf("day").utc().format(Xn) + At, Rs = (e = 0, n = null) => (n === null && (n = /* @__PURE__ */ new Date()), e === 0 ? n : e > 0 ? le(n).add(e, "minutes").toDate() : e < 0 ? le(n).subtract(Math.abs(e), "minutes").toDate() : n), Ra = (e, n = At) => le(e).utc().format("YYYY-MM-DDTHH:mm:ss") + n, _d = () => le().utc().format("YYYY"), dn = (e, n = "", t = !1) => e === fa || e === da || e === "" || G(e) || D(e) ? n : le(e).format(t ? "DD.MM.YYYY HH:mm:ss" : "DD.MM.YYYY HH:mm"), Id = (e, n = "", t = !1) => {
|
|
1758
|
+
if (e === fa || e === da || e === "" || G(e) || D(e))
|
|
1759
1759
|
return n;
|
|
1760
1760
|
let a = !0, r = !0;
|
|
1761
1761
|
const o = le(e), s = le();
|
|
1762
1762
|
return s.format("YYYY") === o.format("YYYY") && (a = !1), s.format("YYYY-MM-DD") === o.format("YYYY-MM-DD") && (r = !1), !a && !r ? le(o).format(t ? "H:mm:ss" : "H:mm") : a ? le(o).format(t ? "D.M.YYYY H:mm:ss" : "D.M.YYYY H:mm") : le(o).format(t ? "D.M. H:mm:ss" : "D.M. H:mm");
|
|
1763
|
-
}, Md = (e, n = "") => e === fa || e === da || e === "" || G(e) ||
|
|
1763
|
+
}, Md = (e, n = "") => e === fa || e === da || e === "" || G(e) || D(e) ? n : le(e).format("DD.MM.YYYY"), $d = (e, n = "") => e === fa || e === da || e === "" || G(e) || D(e) ? n : le(e).format("HH:mm"), Fd = (e, n, t = "ms") => {
|
|
1764
1764
|
const a = le(e), r = le(n);
|
|
1765
1765
|
return a.diff(r, t);
|
|
1766
1766
|
}, ya = (e) => typeof e == "string" && /^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{3,6})?Z$/.test(e), Ps = (e, n, t = 0, a = !1) => {
|
|
@@ -1849,7 +1849,7 @@ const At = ".000000Z", Xn = "YYYY-MM-DDTHH:mm:ss", da = "1970-01-01T00:00:00.000
|
|
|
1849
1849
|
let r = e;
|
|
1850
1850
|
for (; a.length; ) {
|
|
1851
1851
|
const o = a.shift();
|
|
1852
|
-
if (
|
|
1852
|
+
if (D(o) || !(o in r)) return;
|
|
1853
1853
|
r = r[o];
|
|
1854
1854
|
}
|
|
1855
1855
|
return r;
|
|
@@ -1858,7 +1858,7 @@ const At = ".000000Z", Xn = "YYYY-MM-DDTHH:mm:ss", da = "1970-01-01T00:00:00.000
|
|
|
1858
1858
|
let o = e;
|
|
1859
1859
|
for (; r.length - 1; ) {
|
|
1860
1860
|
const s = r.shift();
|
|
1861
|
-
if (
|
|
1861
|
+
if (D(s)) return;
|
|
1862
1862
|
s in o || (o[s] = {}), o = o[s];
|
|
1863
1863
|
}
|
|
1864
1864
|
o[r[0]] = t;
|
|
@@ -2039,90 +2039,90 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2039
2039
|
r.value ? String(r.value.minutes).padStart(2, "0") : "00"
|
|
2040
2040
|
), l = Ot("hoursRefInput"), i = Ot("minutesRefInput"), u = U({
|
|
2041
2041
|
get: () => o.value,
|
|
2042
|
-
set: (
|
|
2043
|
-
let
|
|
2044
|
-
if (
|
|
2042
|
+
set: (k) => {
|
|
2043
|
+
let h = String(k).replace(/[^0-9]/g, "");
|
|
2044
|
+
if (h && parseInt(h) > 23) {
|
|
2045
2045
|
o.value = "23", Ye(() => i.value?.focus());
|
|
2046
2046
|
return;
|
|
2047
2047
|
}
|
|
2048
|
-
|
|
2048
|
+
h.length > 2 && (h = h.slice(0, 2)), o.value = h, h.length === 2 && Ye(() => i.value?.focus());
|
|
2049
2049
|
}
|
|
2050
|
-
}),
|
|
2050
|
+
}), m = U({
|
|
2051
2051
|
get: () => s.value,
|
|
2052
|
-
set: (
|
|
2053
|
-
let
|
|
2054
|
-
if (
|
|
2052
|
+
set: (k) => {
|
|
2053
|
+
let h = String(k).replace(/[^0-9]/g, "");
|
|
2054
|
+
if (h && parseInt(h) > 59) {
|
|
2055
2055
|
s.value = "59", a("focusConfirm");
|
|
2056
2056
|
return;
|
|
2057
2057
|
}
|
|
2058
|
-
|
|
2058
|
+
h.length > 2 && (h = h.slice(0, 2)), s.value = h, h.length === 2 && a("focusConfirm");
|
|
2059
2059
|
}
|
|
2060
|
-
}), d = async (
|
|
2061
|
-
const
|
|
2062
|
-
await Ye(),
|
|
2063
|
-
},
|
|
2064
|
-
const
|
|
2065
|
-
o.value =
|
|
2060
|
+
}), d = async (k) => {
|
|
2061
|
+
const h = k.target;
|
|
2062
|
+
await Ye(), h?.select();
|
|
2063
|
+
}, g = () => {
|
|
2064
|
+
const k = parseInt(o.value || "0");
|
|
2065
|
+
o.value = k >= 0 && k <= 23 ? String(k).padStart(2, "0") : "00";
|
|
2066
2066
|
}, p = () => {
|
|
2067
|
-
const
|
|
2068
|
-
s.value =
|
|
2069
|
-
},
|
|
2070
|
-
|
|
2071
|
-
},
|
|
2067
|
+
const k = parseInt(s.value || "0");
|
|
2068
|
+
s.value = k >= 0 && k <= 59 ? String(k).padStart(2, "0") : "00";
|
|
2069
|
+
}, T = () => {
|
|
2070
|
+
g(), a("onEnterKeyup");
|
|
2071
|
+
}, b = () => {
|
|
2072
2072
|
p(), a("onEnterKeyup");
|
|
2073
|
-
}, m = () => {
|
|
2074
|
-
const w = parseInt(o.value || "0"), g = isNaN(w) ? 1 : (w + 1) % 24;
|
|
2075
|
-
o.value = String(g).padStart(2, "0");
|
|
2076
2073
|
}, c = () => {
|
|
2077
|
-
const
|
|
2078
|
-
o.value = String(
|
|
2079
|
-
},
|
|
2080
|
-
const
|
|
2081
|
-
|
|
2074
|
+
const k = parseInt(o.value || "0"), h = isNaN(k) ? 1 : (k + 1) % 24;
|
|
2075
|
+
o.value = String(h).padStart(2, "0");
|
|
2076
|
+
}, f = () => {
|
|
2077
|
+
const k = parseInt(o.value || "0"), h = isNaN(k) ? 23 : (k - 1 + 24) % 24;
|
|
2078
|
+
o.value = String(h).padStart(2, "0");
|
|
2079
|
+
}, v = () => {
|
|
2080
|
+
const k = parseInt(s.value || "0"), h = parseInt(o.value || "0");
|
|
2081
|
+
if (isNaN(k)) {
|
|
2082
2082
|
s.value = "01";
|
|
2083
2083
|
return;
|
|
2084
2084
|
}
|
|
2085
|
-
if (
|
|
2085
|
+
if (k === 59) {
|
|
2086
2086
|
s.value = "00";
|
|
2087
|
-
const I = isNaN(
|
|
2087
|
+
const I = isNaN(h) ? 1 : (h + 1) % 24;
|
|
2088
2088
|
o.value = String(I).padStart(2, "0");
|
|
2089
2089
|
} else {
|
|
2090
|
-
const I =
|
|
2090
|
+
const I = k + 1;
|
|
2091
2091
|
s.value = String(I).padStart(2, "0");
|
|
2092
2092
|
}
|
|
2093
|
-
},
|
|
2094
|
-
const
|
|
2095
|
-
if (isNaN(
|
|
2093
|
+
}, w = () => {
|
|
2094
|
+
const k = parseInt(s.value || "0"), h = parseInt(o.value || "0");
|
|
2095
|
+
if (isNaN(k)) {
|
|
2096
2096
|
s.value = "59";
|
|
2097
2097
|
return;
|
|
2098
2098
|
}
|
|
2099
|
-
if (
|
|
2099
|
+
if (k === 0) {
|
|
2100
2100
|
s.value = "59";
|
|
2101
|
-
const I = isNaN(
|
|
2101
|
+
const I = isNaN(h) ? 23 : (h - 1 + 24) % 24;
|
|
2102
2102
|
o.value = String(I).padStart(2, "0");
|
|
2103
2103
|
} else {
|
|
2104
|
-
const I =
|
|
2104
|
+
const I = k - 1;
|
|
2105
2105
|
s.value = String(I).padStart(2, "0");
|
|
2106
2106
|
}
|
|
2107
2107
|
}, F = () => {
|
|
2108
2108
|
l.value?.focus();
|
|
2109
2109
|
};
|
|
2110
|
-
return Ae([o, s], ([
|
|
2111
|
-
if (
|
|
2112
|
-
const
|
|
2113
|
-
|
|
2110
|
+
return Ae([o, s], ([k, h], [I, Y]) => {
|
|
2111
|
+
if (k === I && h === Y) return;
|
|
2112
|
+
const E = parseInt(
|
|
2113
|
+
k ?? (r.value ? r.value.hours.toString() : "12")
|
|
2114
2114
|
), $ = parseInt(
|
|
2115
|
-
|
|
2115
|
+
h ?? (r.value ? r.value.minutes.toString() : "0")
|
|
2116
2116
|
);
|
|
2117
|
-
|
|
2117
|
+
E >= 0 && E <= 23 && $ >= 0 && $ <= 59 && (r.value = { hours: E, minutes: $ });
|
|
2118
2118
|
}), n({
|
|
2119
2119
|
focusHour: F
|
|
2120
|
-
}), (
|
|
2120
|
+
}), (k, h) => (P(), de("div", fi, [
|
|
2121
2121
|
Ee("div", mi, [
|
|
2122
2122
|
Sn(Ee("input", {
|
|
2123
2123
|
ref_key: "hoursRefInput",
|
|
2124
2124
|
ref: l,
|
|
2125
|
-
"onUpdate:modelValue":
|
|
2125
|
+
"onUpdate:modelValue": h[0] || (h[0] = (I) => u.value = I),
|
|
2126
2126
|
class: "a-datetime-picker-time__input a-datetime-picker-time__input--hours",
|
|
2127
2127
|
type: "text",
|
|
2128
2128
|
"aria-label": "Hour",
|
|
@@ -2130,8 +2130,8 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2130
2130
|
min: "0",
|
|
2131
2131
|
max: "23",
|
|
2132
2132
|
onFocus: d,
|
|
2133
|
-
onBlur:
|
|
2134
|
-
onKeyup: Fa(
|
|
2133
|
+
onBlur: g,
|
|
2134
|
+
onKeyup: Fa(T, ["enter"])
|
|
2135
2135
|
}, null, 544), [
|
|
2136
2136
|
[mo, u.value]
|
|
2137
2137
|
]),
|
|
@@ -2140,7 +2140,7 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2140
2140
|
tabindex: "-1",
|
|
2141
2141
|
variant: "text",
|
|
2142
2142
|
class: "a-datetime-picker-time__arrow-up",
|
|
2143
|
-
onClick:
|
|
2143
|
+
onClick: c
|
|
2144
2144
|
}, {
|
|
2145
2145
|
default: B(() => [
|
|
2146
2146
|
O(Be, { icon: "mdi-chevron-up" })
|
|
@@ -2151,7 +2151,7 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2151
2151
|
tabindex: "-1",
|
|
2152
2152
|
variant: "text",
|
|
2153
2153
|
class: "a-datetime-picker-time__arrow-down",
|
|
2154
|
-
onClick:
|
|
2154
|
+
onClick: f
|
|
2155
2155
|
}, {
|
|
2156
2156
|
default: B(() => [
|
|
2157
2157
|
O(Be, { icon: "mdi-chevron-down" })
|
|
@@ -2160,12 +2160,12 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2160
2160
|
})
|
|
2161
2161
|
])
|
|
2162
2162
|
]),
|
|
2163
|
-
|
|
2163
|
+
h[2] || (h[2] = Ee("span", { class: "a-datetime-picker-time__separator" }, ":", -1)),
|
|
2164
2164
|
Ee("div", pi, [
|
|
2165
2165
|
Sn(Ee("input", {
|
|
2166
2166
|
ref_key: "minutesRefInput",
|
|
2167
2167
|
ref: i,
|
|
2168
|
-
"onUpdate:modelValue":
|
|
2168
|
+
"onUpdate:modelValue": h[1] || (h[1] = (I) => m.value = I),
|
|
2169
2169
|
class: "a-datetime-picker-time__input a-datetime-picker-time__input--minutes",
|
|
2170
2170
|
type: "text",
|
|
2171
2171
|
"aria-label": "Minute",
|
|
@@ -2174,16 +2174,16 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2174
2174
|
max: "59",
|
|
2175
2175
|
onFocus: d,
|
|
2176
2176
|
onBlur: p,
|
|
2177
|
-
onKeyup: Fa(
|
|
2177
|
+
onKeyup: Fa(b, ["enter"])
|
|
2178
2178
|
}, null, 544), [
|
|
2179
|
-
[mo,
|
|
2179
|
+
[mo, m.value]
|
|
2180
2180
|
]),
|
|
2181
2181
|
Ee("div", hi, [
|
|
2182
2182
|
O(Ne, {
|
|
2183
2183
|
tabindex: "-1",
|
|
2184
2184
|
variant: "text",
|
|
2185
2185
|
class: "a-datetime-picker-time__arrow-up",
|
|
2186
|
-
onClick:
|
|
2186
|
+
onClick: v
|
|
2187
2187
|
}, {
|
|
2188
2188
|
default: B(() => [
|
|
2189
2189
|
O(Be, { icon: "mdi-chevron-up" })
|
|
@@ -2194,7 +2194,7 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2194
2194
|
tabindex: "-1",
|
|
2195
2195
|
variant: "text",
|
|
2196
2196
|
class: "a-datetime-picker-time__arrow-down",
|
|
2197
|
-
onClick:
|
|
2197
|
+
onClick: w
|
|
2198
2198
|
}, {
|
|
2199
2199
|
default: B(() => [
|
|
2200
2200
|
O(Be, { icon: "mdi-chevron-down" })
|
|
@@ -2230,20 +2230,20 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2230
2230
|
setup(e, { emit: n }) {
|
|
2231
2231
|
const t = e, a = n;
|
|
2232
2232
|
le.extend(sr), le.extend(ir);
|
|
2233
|
-
const r = L(!1), o = L(0), s = L(0), l = Ot("timePickerInstance"), i = Ot("inputInstance"), u = Ot("confirmRefButton"),
|
|
2233
|
+
const r = L(!1), o = L(0), s = L(0), l = Ot("timePickerInstance"), i = Ot("inputInstance"), u = Ot("confirmRefButton"), m = L(""), d = L(null), g = L(null), p = L(null), { t: T } = Re(), b = U(() => t.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: c } = oo(), f = U(() => ({
|
|
2234
2234
|
textFieldValue: {
|
|
2235
|
-
required:
|
|
2235
|
+
required: c(t.required)
|
|
2236
2236
|
}
|
|
2237
|
-
})),
|
|
2237
|
+
})), v = Gn(f, { textFieldValue: m }), w = U(() => t.type === "datetime" ? "DD.MM.YYYY HH:mm" : "DD.MM.YYYY"), F = (C) => {
|
|
2238
2238
|
C !== t.modelValue && a("update:modelValue", C);
|
|
2239
|
-
},
|
|
2240
|
-
G(C) || ((G(
|
|
2239
|
+
}, k = (C) => {
|
|
2240
|
+
G(C) || ((G(g.value) || C.hour() !== g.value.hours || C.minute() !== g.value.minutes) && (g.value = { hours: C.hour(), minutes: C.minute() }), (G(d.value) || C.year() !== d.value.getFullYear() || C.month() !== d.value.getMonth() || C.date() !== d.value.getDate()) && (d.value = C.toDate()));
|
|
2241
2241
|
};
|
|
2242
2242
|
Ae(
|
|
2243
2243
|
() => t.modelValue,
|
|
2244
2244
|
(C, x) => {
|
|
2245
2245
|
if (C !== x) {
|
|
2246
|
-
if (G(C) ||
|
|
2246
|
+
if (G(C) || D(C)) {
|
|
2247
2247
|
p.value = null;
|
|
2248
2248
|
return;
|
|
2249
2249
|
}
|
|
@@ -2252,34 +2252,34 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2252
2252
|
},
|
|
2253
2253
|
{ immediate: !0 }
|
|
2254
2254
|
);
|
|
2255
|
-
const
|
|
2256
|
-
Ae([
|
|
2255
|
+
const h = (C, x) => G(C) ? x : x.set("date", C.getDate()).set("month", C.getMonth()).set("year", C.getFullYear()), I = (C, x) => G(C) ? x : x.set("hour", C.hours).set("minute", C.minutes);
|
|
2256
|
+
Ae([g, d], ([C, x]) => {
|
|
2257
2257
|
let R = null;
|
|
2258
|
-
G(p.value) ? G(t.modelValue) ? t.lastMinuteMoment ? R = le().hour(0).minute(0).second(59).millisecond(999) : R = le().hour(0).minute(0).second(0).millisecond(0) : R = le(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : R = p.value, R = I(C, R), R =
|
|
2258
|
+
G(p.value) ? G(t.modelValue) ? t.lastMinuteMoment ? R = le().hour(0).minute(0).second(59).millisecond(999) : R = le().hour(0).minute(0).second(0).millisecond(0) : R = le(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : R = p.value, R = I(C, R), R = h(x, R), !R.isSame(aa(p.value)) && (p.value = R);
|
|
2259
2259
|
}), Ae(
|
|
2260
2260
|
p,
|
|
2261
2261
|
(C) => {
|
|
2262
2262
|
if (G(C)) {
|
|
2263
|
-
|
|
2263
|
+
m.value = "", F(null);
|
|
2264
2264
|
return;
|
|
2265
2265
|
}
|
|
2266
2266
|
const x = C.utc().format("YYYY-MM-DDTHH:mm:ss") + At;
|
|
2267
|
-
|
|
2267
|
+
m.value = C.format(w.value), k(C), F(x);
|
|
2268
2268
|
},
|
|
2269
2269
|
{ immediate: !0 }
|
|
2270
2270
|
), Ae(r, (C) => {
|
|
2271
2271
|
if (C) {
|
|
2272
|
-
|
|
2272
|
+
E(), G(p.value) && (G(t.defaultValue) || D(t.defaultValue)) && (t.lastMinuteMoment ? p.value = le().second(59).millisecond(999) : p.value = le().second(0).millisecond(0)), Ye(() => {
|
|
2273
2273
|
o.value++;
|
|
2274
2274
|
}), a("onOpen");
|
|
2275
2275
|
return;
|
|
2276
2276
|
}
|
|
2277
2277
|
a("onClose");
|
|
2278
2278
|
});
|
|
2279
|
-
const Y = U(() => he(t.errorMessages) ? t.errorMessages :
|
|
2280
|
-
const C =
|
|
2279
|
+
const Y = U(() => he(t.errorMessages) ? t.errorMessages : v.value.textFieldValue.$errors.length ? [v.value.textFieldValue.$errors.map((C) => C.$message).join(" ")] : []), E = () => {
|
|
2280
|
+
const C = m.value.replace(/[^\s\d.:]/g, "").trim();
|
|
2281
2281
|
if (C.length === 0 && !t.required) {
|
|
2282
|
-
!G(t.defaultValue) && !
|
|
2282
|
+
!G(t.defaultValue) && !D(t.defaultValue) ? p.value = le(t.defaultValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : p.value = null, a("blur");
|
|
2283
2283
|
return;
|
|
2284
2284
|
}
|
|
2285
2285
|
const x = le(C, ["DD.MM.YYYY HH:mm", "DD.MM.YYYY"]);
|
|
@@ -2289,13 +2289,13 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2289
2289
|
const j = le(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ");
|
|
2290
2290
|
j.isValid() && (R = j.second());
|
|
2291
2291
|
}
|
|
2292
|
-
p.value = x.second(R),
|
|
2292
|
+
p.value = x.second(R), v.value.textFieldValue.$touch(), a("blur");
|
|
2293
2293
|
return;
|
|
2294
2294
|
}
|
|
2295
|
-
G(p.value) || (
|
|
2295
|
+
G(p.value) || (m.value = p.value.format(w.value)), v.value.textFieldValue.$touch(), a("blur");
|
|
2296
2296
|
}, $ = () => {
|
|
2297
|
-
if (G(t.defaultValue) ||
|
|
2298
|
-
p.value = null, d.value = null,
|
|
2297
|
+
if (G(t.defaultValue) || D(t.defaultValue)) {
|
|
2298
|
+
p.value = null, d.value = null, g.value = null, a("afterClear");
|
|
2299
2299
|
return;
|
|
2300
2300
|
}
|
|
2301
2301
|
p.value = le(t.defaultValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ"), a("afterClear");
|
|
@@ -2317,18 +2317,18 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2317
2317
|
return (C, x) => (P(), X(ia, {
|
|
2318
2318
|
ref_key: "inputInstance",
|
|
2319
2319
|
ref: i,
|
|
2320
|
-
modelValue:
|
|
2321
|
-
"onUpdate:modelValue": x[3] || (x[3] = (R) =>
|
|
2320
|
+
modelValue: m.value,
|
|
2321
|
+
"onUpdate:modelValue": x[3] || (x[3] = (R) => m.value = R),
|
|
2322
2322
|
"error-messages": Y.value,
|
|
2323
2323
|
"persistent-placeholder": !0,
|
|
2324
|
-
placeholder:
|
|
2324
|
+
placeholder: b.value,
|
|
2325
2325
|
class: "a-datetime-picker",
|
|
2326
2326
|
"hide-details": "auto",
|
|
2327
2327
|
disabled: e.disabled,
|
|
2328
2328
|
autocomplete: "off",
|
|
2329
|
-
onBlur:
|
|
2329
|
+
onBlur: E,
|
|
2330
2330
|
onFocus: M,
|
|
2331
|
-
onKeyup: Fa(
|
|
2331
|
+
onKeyup: Fa(E, ["enter"])
|
|
2332
2332
|
}, Pt({
|
|
2333
2333
|
"append-inner": B(() => [
|
|
2334
2334
|
e.clearable && e.defaultValue !== e.modelValue ? (P(), X(Be, {
|
|
@@ -2371,7 +2371,7 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2371
2371
|
]),
|
|
2372
2372
|
_: 1
|
|
2373
2373
|
})), [
|
|
2374
|
-
[Zo, H(
|
|
2374
|
+
[Zo, H(T)("common.button.close")]
|
|
2375
2375
|
]),
|
|
2376
2376
|
(P(), X(dl, it({
|
|
2377
2377
|
key: o.value,
|
|
@@ -2385,8 +2385,8 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2385
2385
|
ref_key: "timePickerInstance",
|
|
2386
2386
|
ref: l,
|
|
2387
2387
|
key: s.value,
|
|
2388
|
-
modelValue:
|
|
2389
|
-
"onUpdate:modelValue": x[1] || (x[1] = (R) =>
|
|
2388
|
+
modelValue: g.value,
|
|
2389
|
+
"onUpdate:modelValue": x[1] || (x[1] = (R) => g.value = R),
|
|
2390
2390
|
onOnEnterKeyup: A,
|
|
2391
2391
|
onFocusConfirm: _
|
|
2392
2392
|
}, null, 8, ["modelValue"])),
|
|
@@ -2396,7 +2396,7 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2396
2396
|
class: "a-datetime-picker__bottom-button",
|
|
2397
2397
|
tabindex: "8",
|
|
2398
2398
|
onClick: y
|
|
2399
|
-
}, fe(H(
|
|
2399
|
+
}, fe(H(T)("common.time.now")), 1),
|
|
2400
2400
|
Ee("button", {
|
|
2401
2401
|
ref_key: "confirmRefButton",
|
|
2402
2402
|
ref: u,
|
|
@@ -2404,7 +2404,7 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2404
2404
|
class: "a-datetime-picker__bottom-button",
|
|
2405
2405
|
tabindex: "7",
|
|
2406
2406
|
onClick: ye(N, ["stop"])
|
|
2407
|
-
}, fe(H(
|
|
2407
|
+
}, fe(H(T)("common.button.confirm")), 513)
|
|
2408
2408
|
])
|
|
2409
2409
|
]),
|
|
2410
2410
|
_: 1
|
|
@@ -2455,8 +2455,8 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2455
2455
|
}), i = L(() => {
|
|
2456
2456
|
}), u = L(null);
|
|
2457
2457
|
if (o.value.enabled && he(t.collab)) {
|
|
2458
|
-
const { releaseCollabFieldLock: I, changeCollabFieldData: Y, acquireCollabFieldLock:
|
|
2459
|
-
s.value = I, l.value = Y, i.value =
|
|
2458
|
+
const { releaseCollabFieldLock: I, changeCollabFieldData: Y, acquireCollabFieldLock: E, lockedByUser: $ } = ca(t.collab.room, t.collab.field);
|
|
2459
|
+
s.value = I, l.value = Y, i.value = E, Ae(
|
|
2460
2460
|
$,
|
|
2461
2461
|
(N) => {
|
|
2462
2462
|
u.value = N;
|
|
@@ -2464,35 +2464,35 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2464
2464
|
{ immediate: !0 }
|
|
2465
2465
|
);
|
|
2466
2466
|
}
|
|
2467
|
-
const
|
|
2468
|
-
|
|
2467
|
+
const m = L(!1), d = L(!1), g = () => {
|
|
2468
|
+
m.value = !0, i.value();
|
|
2469
2469
|
}, p = () => {
|
|
2470
|
-
s.value(t.modelValue),
|
|
2471
|
-
}, { t:
|
|
2472
|
-
d.value = !1, a("blur",
|
|
2473
|
-
},
|
|
2470
|
+
s.value(t.modelValue), m.value = !0;
|
|
2471
|
+
}, { t: T } = Re(), b = J(Xa, void 0), c = J(Za, void 0), f = () => {
|
|
2472
|
+
d.value = !1, a("blur", D(t.modelValue) ? null : t.modelValue), t.v?.$touch(), m.value === !1 && s.value(t.modelValue);
|
|
2473
|
+
}, v = () => {
|
|
2474
2474
|
d.value = !0, a("focus", t.modelValue), i.value();
|
|
2475
|
-
},
|
|
2475
|
+
}, w = U(() => he(t.errorMessage) ? [t.errorMessage] : t.v?.$errors?.length ? [t.v.$errors.map((I) => I.$message).join(" ")] : []), F = U(() => {
|
|
2476
2476
|
if (he(t.label)) return t.label;
|
|
2477
|
-
if (
|
|
2477
|
+
if (D(b) || D(c) || D(t.v?.$path)) return "";
|
|
2478
2478
|
const { end: I } = wn(t.v?.$path, ".");
|
|
2479
|
-
return
|
|
2480
|
-
}),
|
|
2479
|
+
return T(b + "." + c + ".model." + I);
|
|
2480
|
+
}), k = U(() => he(t.required) ? t.required : !!(t.v?.required && t.v?.required.$params.type === "required")), h = U(() => he(t.disabled) ? t.disabled : !!u.value);
|
|
2481
2481
|
return Ae(r, (I, Y) => {
|
|
2482
|
-
I !== Y && o.value.enabled && (d.value ||
|
|
2482
|
+
I !== Y && o.value.enabled && (d.value || m.value) && l.value(I);
|
|
2483
2483
|
}), (I, Y) => (P(), X(dr, it({
|
|
2484
2484
|
modelValue: r.value,
|
|
2485
|
-
"onUpdate:modelValue": Y[0] || (Y[0] = (
|
|
2485
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (E) => r.value = E),
|
|
2486
2486
|
"data-cy": e.dataCy,
|
|
2487
|
-
"error-messages":
|
|
2488
|
-
required:
|
|
2489
|
-
disabled:
|
|
2487
|
+
"error-messages": w.value,
|
|
2488
|
+
required: k.value,
|
|
2489
|
+
disabled: h.value,
|
|
2490
2490
|
label: F.value,
|
|
2491
2491
|
clearable: e.clearable
|
|
2492
2492
|
}, I.$attrs, {
|
|
2493
|
-
onBlur:
|
|
2494
|
-
onFocus:
|
|
2495
|
-
onOnOpen:
|
|
2493
|
+
onBlur: f,
|
|
2494
|
+
onFocus: v,
|
|
2495
|
+
onOnOpen: g,
|
|
2496
2496
|
onOnClose: p
|
|
2497
2497
|
}), {
|
|
2498
2498
|
"append-inner": B(() => [
|
|
@@ -2523,14 +2523,14 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2523
2523
|
}), s = L(() => {
|
|
2524
2524
|
}), l = L(null);
|
|
2525
2525
|
if (r.value.enabled && he(t.collab)) {
|
|
2526
|
-
const { releaseCollabFieldLock: p, acquireCollabFieldLock:
|
|
2526
|
+
const { releaseCollabFieldLock: p, acquireCollabFieldLock: T, lockedByUser: b } = ca(
|
|
2527
2527
|
t.collab.room,
|
|
2528
2528
|
t.collab.field
|
|
2529
2529
|
);
|
|
2530
|
-
o.value = p, s.value =
|
|
2531
|
-
|
|
2532
|
-
(
|
|
2533
|
-
l.value =
|
|
2530
|
+
o.value = p, s.value = T, Ae(
|
|
2531
|
+
b,
|
|
2532
|
+
(c) => {
|
|
2533
|
+
l.value = c;
|
|
2534
2534
|
},
|
|
2535
2535
|
{ immediate: !0 }
|
|
2536
2536
|
);
|
|
@@ -2541,18 +2541,18 @@ const fi = { class: "a-datetime-picker-time" }, mi = { class: "a-datetime-picker
|
|
|
2541
2541
|
}, 500);
|
|
2542
2542
|
}, u = (p) => {
|
|
2543
2543
|
a("update:modelValue", p);
|
|
2544
|
-
},
|
|
2544
|
+
}, m = () => {
|
|
2545
2545
|
a("blur", t.modelValue), o.value(t.modelValue);
|
|
2546
2546
|
}, d = () => {
|
|
2547
2547
|
a("focus", t.modelValue), s.value();
|
|
2548
|
-
},
|
|
2549
|
-
return (p,
|
|
2548
|
+
}, g = U(() => he(t.disabled) ? t.disabled : !!l.value);
|
|
2549
|
+
return (p, T) => (P(), X(vl, {
|
|
2550
2550
|
"data-cy": e.dataCy,
|
|
2551
2551
|
"model-value": e.modelValue,
|
|
2552
|
-
disabled:
|
|
2553
|
-
onBlur:
|
|
2552
|
+
disabled: g.value,
|
|
2553
|
+
onBlur: m,
|
|
2554
2554
|
onFocus: d,
|
|
2555
|
-
"onUpdate:modelValue":
|
|
2555
|
+
"onUpdate:modelValue": T[0] || (T[0] = (b) => u(b)),
|
|
2556
2556
|
onClick: ye(i, ["stop"])
|
|
2557
2557
|
}, Pt({ _: 2 }, [
|
|
2558
2558
|
e.hideLabel ? void 0 : {
|
|
@@ -2646,7 +2646,7 @@ function Ti(e, n, t) {
|
|
|
2646
2646
|
};
|
|
2647
2647
|
}
|
|
2648
2648
|
function ht(e, n) {
|
|
2649
|
-
return
|
|
2649
|
+
return D(e) ? n : e;
|
|
2650
2650
|
}
|
|
2651
2651
|
function ct() {
|
|
2652
2652
|
const e = (o, s, l) => {
|
|
@@ -2656,21 +2656,21 @@ function ct() {
|
|
|
2656
2656
|
e(l, o, s);
|
|
2657
2657
|
}, t = (o, s, l, i, u) => {
|
|
2658
2658
|
if (!r(o, i)) return;
|
|
2659
|
-
const
|
|
2659
|
+
const m = i.fields[o], d = u.value.get(o);
|
|
2660
2660
|
if (d && d.length === 1)
|
|
2661
2661
|
u.value.delete(o);
|
|
2662
2662
|
else if (d) {
|
|
2663
|
-
const
|
|
2664
|
-
d.splice(
|
|
2663
|
+
const g = d.findIndex((p) => p.value === s);
|
|
2664
|
+
d.splice(g, 1);
|
|
2665
2665
|
}
|
|
2666
|
-
if (
|
|
2667
|
-
l[o] =
|
|
2666
|
+
if (m.type === "timeInterval" && m.related)
|
|
2667
|
+
l[o] = m.default, l[m.related] = i.fields[m.related].default;
|
|
2668
2668
|
else if (ue(l[o]) && l[o].length > 0) {
|
|
2669
|
-
const
|
|
2670
|
-
(
|
|
2669
|
+
const g = l[o].findIndex(
|
|
2670
|
+
(T) => T === s
|
|
2671
2671
|
), p = [...aa(l[o])];
|
|
2672
|
-
p.splice(
|
|
2673
|
-
} else (Oe(l[o]) || Gt(l[o]) || Je(l[o])) && (l[o] =
|
|
2672
|
+
p.splice(g, 1), l[o] = p;
|
|
2673
|
+
} else (Oe(l[o]) || Gt(l[o]) || Je(l[o])) && (l[o] = m.default);
|
|
2674
2674
|
}, a = (o, s, l) => {
|
|
2675
2675
|
for (const i of l.value.keys())
|
|
2676
2676
|
r(i, s) && l.value.delete(i);
|
|
@@ -2695,104 +2695,104 @@ function fr(e, n, t = {}) {
|
|
|
2695
2695
|
let o;
|
|
2696
2696
|
Oe(a.storeFiltersLocalStorage) ? o = a.storeFiltersLocalStorage : Je(a.storeFiltersLocalStorage) && a.storeFiltersLocalStorage === !0 && Oe(n.general.system) && Oe(n.general.subject) && (o = "tableFilter_" + n.general.system + "_" + n.general.subject);
|
|
2697
2697
|
const s = () => {
|
|
2698
|
-
const
|
|
2699
|
-
for (const
|
|
2698
|
+
const f = {};
|
|
2699
|
+
for (const v in e)
|
|
2700
2700
|
try {
|
|
2701
|
-
const
|
|
2702
|
-
!
|
|
2701
|
+
const w = v, F = e[w];
|
|
2702
|
+
!D(F) && !G(F) && !Oa(F) && F !== n.fields[w].default && (f[v] = F);
|
|
2703
2703
|
} catch {
|
|
2704
2704
|
}
|
|
2705
|
-
return
|
|
2706
|
-
}, l = (
|
|
2705
|
+
return f;
|
|
2706
|
+
}, l = (f, v, w) => {
|
|
2707
2707
|
const F = new URLSearchParams();
|
|
2708
|
-
for (const
|
|
2709
|
-
const
|
|
2710
|
-
|
|
2708
|
+
for (const k in f) {
|
|
2709
|
+
const h = f[k];
|
|
2710
|
+
D(h) || G(h) || ue(h) && Oa(h) || En(h) && pn(h) || Oe(h) && h.length === 0 || (ue(h) ? F.set(k, h.join(",")) : F.set(k, String(h)));
|
|
2711
2711
|
}
|
|
2712
|
-
return
|
|
2713
|
-
}, i = (
|
|
2714
|
-
if (!
|
|
2715
|
-
if (
|
|
2716
|
-
|
|
2712
|
+
return w && v.value.sortBy && F.set(wa, `${v.value.sortBy.key},${v.value.sortBy.order}`), F.size === 0 ? "" : F.toString() + r;
|
|
2713
|
+
}, i = (f) => {
|
|
2714
|
+
if (!f) return null;
|
|
2715
|
+
if (f.startsWith("#") && (f = f.substring(1)), f.endsWith(r))
|
|
2716
|
+
f = f.slice(0, -1);
|
|
2717
2717
|
else {
|
|
2718
|
-
const
|
|
2719
|
-
if (
|
|
2720
|
-
|
|
2718
|
+
const h = f.lastIndexOf("&");
|
|
2719
|
+
if (h !== -1)
|
|
2720
|
+
f = f.substring(0, h);
|
|
2721
2721
|
else
|
|
2722
2722
|
return null;
|
|
2723
2723
|
}
|
|
2724
|
-
const
|
|
2724
|
+
const v = new URLSearchParams(f), w = {};
|
|
2725
2725
|
let F = null;
|
|
2726
|
-
const
|
|
2727
|
-
if (
|
|
2728
|
-
const [
|
|
2729
|
-
|
|
2726
|
+
const k = v.get(wa);
|
|
2727
|
+
if (k) {
|
|
2728
|
+
const [h, I] = k.split(",");
|
|
2729
|
+
h && (I === Ct.Asc || I === Ct.Desc) && (F = { key: h, order: I }), v.delete(wa);
|
|
2730
2730
|
}
|
|
2731
|
-
for (const [
|
|
2732
|
-
const Y = n.fields[
|
|
2733
|
-
if (
|
|
2734
|
-
console.error(`Filter config not found for ${
|
|
2731
|
+
for (const [h, I] of v.entries()) {
|
|
2732
|
+
const Y = n.fields[h];
|
|
2733
|
+
if (D(Y)) {
|
|
2734
|
+
console.error(`Filter config not found for ${h}`);
|
|
2735
2735
|
continue;
|
|
2736
2736
|
}
|
|
2737
2737
|
if (Y.multiple ?? !1) {
|
|
2738
2738
|
const $ = I.split(","), N = $.every((M) => !isNaN(Number(M)));
|
|
2739
|
-
|
|
2739
|
+
w[h] = N ? $.map(Number) : $;
|
|
2740
2740
|
} else
|
|
2741
|
-
|
|
2741
|
+
w[h] = I;
|
|
2742
2742
|
}
|
|
2743
|
-
return { filters:
|
|
2744
|
-
}, u = (
|
|
2745
|
-
a.populateUrlParams !== !1 && (window.location.hash =
|
|
2746
|
-
},
|
|
2743
|
+
return { filters: w, sortBy: F };
|
|
2744
|
+
}, u = (f) => {
|
|
2745
|
+
a.populateUrlParams !== !1 && (window.location.hash = f);
|
|
2746
|
+
}, m = () => {
|
|
2747
2747
|
a.populateUrlParams !== !1 && (window.location.hash = "");
|
|
2748
|
-
}, d = () => a.populateUrlParams === !1 ? null : i(window.location.hash),
|
|
2749
|
-
!o || !localStorage || localStorage.setItem(o,
|
|
2748
|
+
}, d = () => a.populateUrlParams === !1 ? null : i(window.location.hash), g = (f) => {
|
|
2749
|
+
!o || !localStorage || localStorage.setItem(o, f);
|
|
2750
2750
|
}, p = () => {
|
|
2751
2751
|
if (!o || !localStorage) return null;
|
|
2752
|
-
const
|
|
2753
|
-
return !
|
|
2752
|
+
const f = localStorage.getItem(o);
|
|
2753
|
+
return !f || !Oe(f) ? null : i(f);
|
|
2754
2754
|
};
|
|
2755
2755
|
return {
|
|
2756
|
-
loadStoredFilters: (
|
|
2757
|
-
const { consumeStoredPage:
|
|
2758
|
-
let F = "hash",
|
|
2759
|
-
if (G(
|
|
2760
|
-
const I =
|
|
2761
|
-
return I !== null && (
|
|
2756
|
+
loadStoredFilters: (f, v) => {
|
|
2757
|
+
const { consumeStoredPage: w } = Di();
|
|
2758
|
+
let F = "hash", k = d();
|
|
2759
|
+
if (G(k) && (F = "localStorage", k = p()), G(k) || pn(k.filters) && pn(k.sortBy)) {
|
|
2760
|
+
const I = w();
|
|
2761
|
+
return I !== null && (f.value = { ...f.value, page: I }), v && v(), !1;
|
|
2762
2762
|
}
|
|
2763
2763
|
for (const I in e) {
|
|
2764
2764
|
const Y = I;
|
|
2765
|
-
let
|
|
2766
|
-
if (!
|
|
2767
|
-
if (Oe(
|
|
2768
|
-
const $ = er(
|
|
2765
|
+
let E = k.filters[Y];
|
|
2766
|
+
if (!D(E)) {
|
|
2767
|
+
if (Oe(E)) {
|
|
2768
|
+
const $ = er(E);
|
|
2769
2769
|
if (!G($))
|
|
2770
|
-
|
|
2770
|
+
E = $;
|
|
2771
2771
|
else {
|
|
2772
|
-
const N = tr(
|
|
2773
|
-
G(N) || (
|
|
2772
|
+
const N = tr(E);
|
|
2773
|
+
G(N) || (E = N);
|
|
2774
2774
|
}
|
|
2775
2775
|
}
|
|
2776
|
-
e[Y] =
|
|
2776
|
+
e[Y] = E;
|
|
2777
2777
|
}
|
|
2778
2778
|
}
|
|
2779
2779
|
if (F === "localStorage" && o && localStorage) {
|
|
2780
2780
|
const I = localStorage.getItem(o);
|
|
2781
2781
|
I && u(I);
|
|
2782
2782
|
}
|
|
2783
|
-
const
|
|
2784
|
-
return
|
|
2785
|
-
...
|
|
2786
|
-
sortBy:
|
|
2787
|
-
...
|
|
2788
|
-
},
|
|
2783
|
+
const h = w();
|
|
2784
|
+
return f.value = {
|
|
2785
|
+
...f.value,
|
|
2786
|
+
sortBy: k.sortBy,
|
|
2787
|
+
...h !== null ? { page: h } : {}
|
|
2788
|
+
}, v && v(), !0;
|
|
2789
2789
|
},
|
|
2790
|
-
resetFilter: (
|
|
2791
|
-
|
|
2790
|
+
resetFilter: (f, v) => {
|
|
2791
|
+
f.value = { ...f.value, page: 1 }, o && localStorage && localStorage.removeItem(o), m(), n.touched = !1, v && v();
|
|
2792
2792
|
},
|
|
2793
|
-
submitFilter: (
|
|
2794
|
-
const
|
|
2795
|
-
u(F),
|
|
2793
|
+
submitFilter: (f, v) => {
|
|
2794
|
+
const w = s(), F = l(w, f, !0);
|
|
2795
|
+
u(F), g(F), f.value = { ...f.value, page: 1 }, n.touched = !1, v && v();
|
|
2796
2796
|
},
|
|
2797
2797
|
serializeFilters: l,
|
|
2798
2798
|
deserializeFilters: i
|
|
@@ -2844,7 +2844,7 @@ function xi(e = void 0) {
|
|
|
2844
2844
|
title: "Vlastné"
|
|
2845
2845
|
}
|
|
2846
2846
|
];
|
|
2847
|
-
return
|
|
2847
|
+
return D(e) ? r : r.filter((o) => e.includes(o.value) || G(o.value));
|
|
2848
2848
|
});
|
|
2849
2849
|
return {
|
|
2850
2850
|
timeIntervalOptions: t,
|
|
@@ -2871,21 +2871,21 @@ function _i(e) {
|
|
|
2871
2871
|
function Ii() {
|
|
2872
2872
|
const e = L([]), n = (d) => {
|
|
2873
2873
|
i("limit", d);
|
|
2874
|
-
}, t = (d,
|
|
2875
|
-
i("offset", Math.max(0, (d - 1) *
|
|
2876
|
-
}, a = (d,
|
|
2877
|
-
!G(d) && d.length > 0 && i("order[" + d + "]",
|
|
2878
|
-
}, r = (d) => Je(d) ? d ? "1" : "0" : d, o = (d,
|
|
2879
|
-
Oe(p) && p.length === 0 || e.value.push("filter_" + d + "[" +
|
|
2880
|
-
}, s = (d,
|
|
2881
|
-
let
|
|
2882
|
-
if (G(
|
|
2874
|
+
}, t = (d, g) => {
|
|
2875
|
+
i("offset", Math.max(0, (d - 1) * g));
|
|
2876
|
+
}, a = (d, g) => {
|
|
2877
|
+
!G(d) && d.length > 0 && i("order[" + d + "]", g ? Ct.Desc : Ct.Asc);
|
|
2878
|
+
}, r = (d) => Je(d) ? d ? "1" : "0" : d, o = (d, g, p) => {
|
|
2879
|
+
Oe(p) && p.length === 0 || e.value.push("filter_" + d + "[" + g + "]=" + r(p));
|
|
2880
|
+
}, s = (d, g, p, T, b, c) => {
|
|
2881
|
+
let f = p[d], v = p[g];
|
|
2882
|
+
if (G(f) && b && !c && (f = T.fields[d].default), G(v) && b && !c && (v = T.fields[d].default), Oe(f) && Oe(v))
|
|
2883
2883
|
return {
|
|
2884
|
-
from:
|
|
2885
|
-
until:
|
|
2884
|
+
from: f,
|
|
2885
|
+
until: v
|
|
2886
2886
|
};
|
|
2887
|
-
const
|
|
2888
|
-
switch (
|
|
2887
|
+
const w = Dn(), F = Bs(w);
|
|
2888
|
+
switch (f) {
|
|
2889
2889
|
case dt.CurrentMonth:
|
|
2890
2890
|
return Ca(F, "utc", 0, !1);
|
|
2891
2891
|
case dt.LastMonth:
|
|
@@ -2893,17 +2893,17 @@ function Ii() {
|
|
|
2893
2893
|
case dt.Last3Months:
|
|
2894
2894
|
return Ca(F, "utc", -2, !0);
|
|
2895
2895
|
default:
|
|
2896
|
-
if (Gt(
|
|
2896
|
+
if (Gt(f))
|
|
2897
2897
|
return {
|
|
2898
|
-
from: Ra(Rs(
|
|
2899
|
-
until:
|
|
2898
|
+
from: Ra(Rs(f * -1, F)),
|
|
2899
|
+
until: w
|
|
2900
2900
|
};
|
|
2901
2901
|
}
|
|
2902
2902
|
return null;
|
|
2903
|
-
}, l = (d,
|
|
2904
|
-
ue(
|
|
2905
|
-
) : null : encodeURIComponent(d) : ue(d) ? d.length === 0 ?
|
|
2906
|
-
e.value.push(d + "=" +
|
|
2903
|
+
}, l = (d, g) => G(d) ? g.mandatory && !g.exclude && !D(g.default) ? ue(g.default) ? g.default.join(",") : g.default : null : Oe(d) ? d.length === 0 ? g.mandatory && !g.exclude && !D(g.default) && !G(g.default) ? encodeURIComponent(
|
|
2904
|
+
ue(g.default) ? g.default.join(",") : g.default
|
|
2905
|
+
) : null : encodeURIComponent(d) : ue(d) ? d.length === 0 ? g.mandatory && !g.exclude && ue(g.default) ? g.default.map((p) => Oe(p) ? encodeURIComponent(p) : p).join(",") : null : d.map((p) => Oe(p) ? encodeURIComponent(p) : p).join(",") : Gt(d) || Je(d) ? d : null, i = (d, g) => {
|
|
2906
|
+
e.value.push(d + "=" + g);
|
|
2907
2907
|
};
|
|
2908
2908
|
return {
|
|
2909
2909
|
resolveTimeIntervalFilter: s,
|
|
@@ -2911,39 +2911,39 @@ function Ii() {
|
|
|
2911
2911
|
querySetOffset: t,
|
|
2912
2912
|
querySetOrder: a,
|
|
2913
2913
|
queryAddFilter: o,
|
|
2914
|
-
querySetFilters: (d,
|
|
2915
|
-
const p =
|
|
2916
|
-
for (const
|
|
2917
|
-
const
|
|
2918
|
-
if (
|
|
2914
|
+
querySetFilters: (d, g) => {
|
|
2915
|
+
const p = g.general.simpleFilters;
|
|
2916
|
+
for (const T in d) {
|
|
2917
|
+
const b = d[T], c = g.fields[T];
|
|
2918
|
+
if (D(c) || c.exclude)
|
|
2919
2919
|
continue;
|
|
2920
|
-
const
|
|
2921
|
-
if (
|
|
2922
|
-
const
|
|
2923
|
-
|
|
2924
|
-
|
|
2920
|
+
const f = c.apiName || T;
|
|
2921
|
+
if (c.type === "timeInterval" && !D(c.related)) {
|
|
2922
|
+
const w = s(
|
|
2923
|
+
T,
|
|
2924
|
+
c.related,
|
|
2925
2925
|
d,
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2926
|
+
g,
|
|
2927
|
+
c.mandatory,
|
|
2928
|
+
c.exclude
|
|
2929
2929
|
);
|
|
2930
|
-
if (G(
|
|
2930
|
+
if (G(w))
|
|
2931
2931
|
continue;
|
|
2932
|
-
const
|
|
2932
|
+
const k = g.fields[c.related].apiName || c.related;
|
|
2933
2933
|
if (p) {
|
|
2934
|
-
i(
|
|
2934
|
+
i(f, w.from), i(k, w.until);
|
|
2935
2935
|
continue;
|
|
2936
2936
|
}
|
|
2937
|
-
|
|
2937
|
+
w.from && o("gte", f, w.from), w.until && o("lte", k, w.until);
|
|
2938
2938
|
continue;
|
|
2939
2939
|
}
|
|
2940
|
-
const
|
|
2941
|
-
if (!G(
|
|
2940
|
+
const v = l(b, c);
|
|
2941
|
+
if (!G(v)) {
|
|
2942
2942
|
if (p) {
|
|
2943
|
-
i(
|
|
2943
|
+
i(f, v);
|
|
2944
2944
|
continue;
|
|
2945
2945
|
}
|
|
2946
|
-
o(
|
|
2946
|
+
o(c.variant, f, v);
|
|
2947
2947
|
}
|
|
2948
2948
|
}
|
|
2949
2949
|
},
|
|
@@ -2956,50 +2956,50 @@ const Mi = (e) => En(e) && Object.hasOwn(e, "totalCount"), $i = (e) => En(e) &&
|
|
|
2956
2956
|
const { querySetLimit: a, querySetOffset: r, querySetOrder: o, queryBuild: s, querySetFilters: l } = Ii();
|
|
2957
2957
|
return a(e.value.rowsPerPage), r(e.value.page, e.value.rowsPerPage), e.value.sortBy && o(e.value.sortBy.key, e.value.sortBy.order === Ct.Desc), l(n, t), s();
|
|
2958
2958
|
}, Oi = (e) => {
|
|
2959
|
-
const { client: n, system: t, entity: a, urlTemplate: r, urlParams: o, options: s = {} } = e;
|
|
2960
|
-
let
|
|
2959
|
+
const { client: n, system: t, entity: a, urlTemplate: r, urlParams: o, options: s = {}, silentConsoleError: l = !1 } = e;
|
|
2960
|
+
let i = null;
|
|
2961
2961
|
return {
|
|
2962
|
-
executeFetch: async (
|
|
2963
|
-
|
|
2962
|
+
executeFetch: async (d, g, p, T = {}) => {
|
|
2963
|
+
i = new AbortController();
|
|
2964
2964
|
const {
|
|
2965
|
-
urlTemplate:
|
|
2966
|
-
urlParams:
|
|
2967
|
-
forceElastic:
|
|
2968
|
-
} =
|
|
2965
|
+
urlTemplate: b,
|
|
2966
|
+
urlParams: c,
|
|
2967
|
+
forceElastic: f = !1
|
|
2968
|
+
} = T;
|
|
2969
2969
|
try {
|
|
2970
|
-
const
|
|
2971
|
-
if (
|
|
2972
|
-
const
|
|
2970
|
+
const v = p.general.elastic || f ? "/search" : "", w = he(c) ? c : o, F = he(b) ? b : r;
|
|
2971
|
+
if (D(F)) throw new Error("Url template is undefined");
|
|
2972
|
+
const k = (D(w) ? F : Mn(F, w)) + v + Fi(d, g, p), h = await n().get(k, {
|
|
2973
2973
|
...s,
|
|
2974
|
-
signal:
|
|
2974
|
+
signal: i.signal
|
|
2975
2975
|
});
|
|
2976
|
-
if (!$n(
|
|
2977
|
-
throw new nn(
|
|
2978
|
-
if (
|
|
2979
|
-
const
|
|
2980
|
-
return $i(
|
|
2981
|
-
...
|
|
2982
|
-
hasNextPage:
|
|
2983
|
-
currentViewCount:
|
|
2984
|
-
} : Mi(
|
|
2985
|
-
...
|
|
2986
|
-
totalCount:
|
|
2987
|
-
currentViewCount:
|
|
2988
|
-
}),
|
|
2976
|
+
if (!$n(h.status))
|
|
2977
|
+
throw new nn(h.status);
|
|
2978
|
+
if (h.data) {
|
|
2979
|
+
const I = h.data;
|
|
2980
|
+
return $i(I) ? d.value = {
|
|
2981
|
+
...d.value,
|
|
2982
|
+
hasNextPage: I.hasNextPage,
|
|
2983
|
+
currentViewCount: h.data.data.length
|
|
2984
|
+
} : Mi(I) && (d.value = {
|
|
2985
|
+
...d.value,
|
|
2986
|
+
totalCount: I.totalCount,
|
|
2987
|
+
currentViewCount: h.data.data.length
|
|
2988
|
+
}), I.data;
|
|
2989
2989
|
}
|
|
2990
|
-
if (
|
|
2990
|
+
if (h.status === Qt)
|
|
2991
2991
|
return [];
|
|
2992
2992
|
throw new ut();
|
|
2993
|
-
} catch (
|
|
2994
|
-
if (
|
|
2993
|
+
} catch (v) {
|
|
2994
|
+
if (v instanceof DOMException && v.name === "AbortError")
|
|
2995
2995
|
return [];
|
|
2996
|
-
throw eo(
|
|
2996
|
+
throw eo(v) ? v : Tn(v) ? new en(v, v.config?.url) : An(v) ? new tn(v, t, a, v) : _n(v) ? new on(v, t, a, v) : xn(v) ? new an(v, v) : lr(v) ? new to(v) : Lt.isAxiosError(v) ? (l || console.error("Axios error: " + r, ...v.cause ? [v.cause] : []), new no(v)) : (l || console.error("AnzuFatalError: ", v), new ut(v));
|
|
2997
2997
|
} finally {
|
|
2998
|
-
|
|
2998
|
+
i = null;
|
|
2999
2999
|
}
|
|
3000
3000
|
},
|
|
3001
3001
|
abortFetch: () => {
|
|
3002
|
-
|
|
3002
|
+
i && i.abort();
|
|
3003
3003
|
}
|
|
3004
3004
|
};
|
|
3005
3005
|
}, Bi = () => ({
|
|
@@ -3015,16 +3015,16 @@ function kn(e, n = Ct.Desc, t = {}, a) {
|
|
|
3015
3015
|
currentViewCount: 0,
|
|
3016
3016
|
totalCount: 0
|
|
3017
3017
|
});
|
|
3018
|
-
function s(u,
|
|
3018
|
+
function s(u, m) {
|
|
3019
3019
|
if (Oe(u)) {
|
|
3020
3020
|
o.value = {
|
|
3021
3021
|
...o.value,
|
|
3022
|
-
sortBy: { key: u, order:
|
|
3022
|
+
sortBy: { key: u, order: m }
|
|
3023
3023
|
};
|
|
3024
3024
|
return;
|
|
3025
3025
|
}
|
|
3026
3026
|
const d = u;
|
|
3027
|
-
if (G(d) ||
|
|
3027
|
+
if (G(d) || D(d)) {
|
|
3028
3028
|
o.value = { ...o.value, sortBy: d };
|
|
3029
3029
|
return;
|
|
3030
3030
|
}
|
|
@@ -3061,28 +3061,28 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3061
3061
|
emits: ["change"],
|
|
3062
3062
|
setup(e, { emit: n }) {
|
|
3063
3063
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3064
|
-
if (
|
|
3065
|
-
|
|
3066
|
-
|
|
3064
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3065
|
+
D(s.fields[t.name]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3066
|
+
D(l[t.name]))
|
|
3067
3067
|
throw new Error("Incorrect provide/inject config.");
|
|
3068
3068
|
const i = U({
|
|
3069
3069
|
get() {
|
|
3070
|
-
return
|
|
3070
|
+
return D(l[t.name]) || G(l[t.name]) ? {
|
|
3071
3071
|
value: -1,
|
|
3072
|
-
title:
|
|
3073
|
-
} : l[t.name] ? { value: 1, title:
|
|
3072
|
+
title: m(t.allT)
|
|
3073
|
+
} : l[t.name] ? { value: 1, title: m(t.trueT) } : { value: 0, title: m(t.falseT) };
|
|
3074
3074
|
},
|
|
3075
|
-
set(
|
|
3076
|
-
let
|
|
3077
|
-
|
|
3075
|
+
set(c) {
|
|
3076
|
+
let f = null;
|
|
3077
|
+
c?.value === 1 && (f = !0), c?.value === 0 && (f = !1), l[t.name] = f, b(), s.touched = !0, a("change");
|
|
3078
3078
|
}
|
|
3079
|
-
}), u = U(() => s.fields[t.name]), { t:
|
|
3080
|
-
{ value: -1, title:
|
|
3081
|
-
{ value: 1, title:
|
|
3082
|
-
{ value: 0, title:
|
|
3083
|
-
]), { clearOne: p } = ct(),
|
|
3079
|
+
}), u = U(() => s.fields[t.name]), { t: m } = Re(), d = U(() => u.value.titleT ? m(u.value.titleT) : void 0), g = U(() => [
|
|
3080
|
+
{ value: -1, title: m(t.allT) },
|
|
3081
|
+
{ value: 1, title: m(t.trueT) },
|
|
3082
|
+
{ value: 0, title: m(t.falseT) }
|
|
3083
|
+
]), { clearOne: p } = ct(), T = () => {
|
|
3084
3084
|
p(t.name, l, s), o.value.delete(t.name);
|
|
3085
|
-
},
|
|
3085
|
+
}, b = () => {
|
|
3086
3086
|
if (i.value.value === -1) {
|
|
3087
3087
|
o.value.delete(t.name);
|
|
3088
3088
|
return;
|
|
@@ -3091,17 +3091,17 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3091
3091
|
{ title: i.value.title, value: i.value.value }
|
|
3092
3092
|
]);
|
|
3093
3093
|
};
|
|
3094
|
-
return (
|
|
3094
|
+
return (c, f) => (P(), X(Ko, {
|
|
3095
3095
|
modelValue: i.value,
|
|
3096
|
-
"onUpdate:modelValue":
|
|
3096
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => i.value = v),
|
|
3097
3097
|
"data-cy": e.dataCy,
|
|
3098
3098
|
label: d.value,
|
|
3099
|
-
items:
|
|
3099
|
+
items: g.value,
|
|
3100
3100
|
clearable: !u.value.mandatory && i.value.value !== -1,
|
|
3101
3101
|
"return-object": "",
|
|
3102
3102
|
"hide-details": "",
|
|
3103
3103
|
autocomplete: "off",
|
|
3104
|
-
"onClick:clear": ye(
|
|
3104
|
+
"onClick:clear": ye(T, ["stop"])
|
|
3105
3105
|
}, null, 8, ["modelValue", "data-cy", "label", "items", "clearable"]));
|
|
3106
3106
|
}
|
|
3107
3107
|
}), Li = /* @__PURE__ */ Se({
|
|
@@ -3114,20 +3114,20 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3114
3114
|
emits: ["change"],
|
|
3115
3115
|
setup(e, { emit: n }) {
|
|
3116
3116
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3117
|
-
if (
|
|
3118
|
-
|
|
3119
|
-
|
|
3117
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3118
|
+
D(s.fields[t.name]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3119
|
+
D(l[t.name]))
|
|
3120
3120
|
throw new Error("Incorrect provide/inject config.");
|
|
3121
3121
|
const i = U({
|
|
3122
3122
|
get() {
|
|
3123
3123
|
return l[t.name];
|
|
3124
3124
|
},
|
|
3125
|
-
set(
|
|
3126
|
-
l[t.name] =
|
|
3125
|
+
set(c) {
|
|
3126
|
+
l[t.name] = c, s.touched = !0, a("change");
|
|
3127
3127
|
}
|
|
3128
|
-
}), u = U(() => s.fields[t.name]), { t:
|
|
3128
|
+
}), u = U(() => s.fields[t.name]), { t: m } = Re(), d = U(() => u.value.titleT ? m(u.value.titleT) : void 0), g = U(() => D(t.placeholder) ? u.value.variant === "startsWith" ? m("common.model.filterPlaceholder.startsWith") : u.value.variant === "eq" ? m("common.model.filterPlaceholder.eq") : u.value.variant === "search" ? m("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: p } = ct(), T = () => {
|
|
3129
3129
|
p(t.name, l, s), o.value.delete(t.name);
|
|
3130
|
-
},
|
|
3130
|
+
}, b = () => {
|
|
3131
3131
|
if (Gt(i.value)) {
|
|
3132
3132
|
o.value.set(t.name, [
|
|
3133
3133
|
{ title: i.value + "", value: i.value }
|
|
@@ -3144,21 +3144,21 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3144
3144
|
};
|
|
3145
3145
|
return Ae(
|
|
3146
3146
|
() => l[t.name],
|
|
3147
|
-
(
|
|
3148
|
-
|
|
3147
|
+
(c, f) => {
|
|
3148
|
+
c === f || Je(c) || b();
|
|
3149
3149
|
},
|
|
3150
3150
|
{ immediate: !0 }
|
|
3151
|
-
), (
|
|
3151
|
+
), (c, f) => (P(), X(ia, {
|
|
3152
3152
|
modelValue: i.value,
|
|
3153
|
-
"onUpdate:modelValue":
|
|
3153
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => i.value = v),
|
|
3154
3154
|
label: d.value,
|
|
3155
|
-
placeholder:
|
|
3155
|
+
placeholder: g.value,
|
|
3156
3156
|
clearable: !u.value.mandatory,
|
|
3157
3157
|
"data-cy": e.dataCy,
|
|
3158
3158
|
"hide-details": "",
|
|
3159
3159
|
autocomplete: "off",
|
|
3160
|
-
onBlur:
|
|
3161
|
-
"onClick:clear": ye(
|
|
3160
|
+
onBlur: b,
|
|
3161
|
+
"onClick:clear": ye(T, ["stop"])
|
|
3162
3162
|
}, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
|
|
3163
3163
|
}
|
|
3164
3164
|
}), Ni = {
|
|
@@ -3179,20 +3179,20 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3179
3179
|
},
|
|
3180
3180
|
emits: ["change"],
|
|
3181
3181
|
setup(e, { emit: n }) {
|
|
3182
|
-
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt), i = J(lo), u = J(ro),
|
|
3183
|
-
if (
|
|
3184
|
-
throw new Error(`[${
|
|
3185
|
-
const d = t.filterByField,
|
|
3186
|
-
if (
|
|
3182
|
+
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt), i = J(lo), u = J(ro), m = oa()?.type.__name;
|
|
3183
|
+
if (D(r) || D(o) || D(l) || D(s) || D(i) || D(u))
|
|
3184
|
+
throw new Error(`[${m}] Incorrect provide/inject config.`);
|
|
3185
|
+
const d = t.filterByField, g = t.filterSortBy;
|
|
3186
|
+
if (D(i.fields[d]) || D(u[d]))
|
|
3187
3187
|
throw new Error(
|
|
3188
|
-
`[${
|
|
3188
|
+
`[${m}] Incorrect filter inner config. FilterByField is '${d}' and available options are ${Object.keys(u).join(", ")}.`
|
|
3189
3189
|
);
|
|
3190
|
-
const p = U(() => s.fields[t.name]),
|
|
3191
|
-
|
|
3192
|
-
},
|
|
3193
|
-
G(
|
|
3194
|
-
|
|
3195
|
-
), I = L([]), Y = L([]),
|
|
3190
|
+
const p = U(() => s.fields[t.name]), T = L([]), b = L(""), c = L(!1), f = L(null), v = L(0), { t: w } = Re(), F = () => {
|
|
3191
|
+
c.value = !1;
|
|
3192
|
+
}, k = U(() => p.value.titleT ? w(p.value.titleT) : void 0), { pagination: h } = kn(
|
|
3193
|
+
G(g) ? null : g.key,
|
|
3194
|
+
g?.order
|
|
3195
|
+
), I = L([]), Y = L([]), E = L(!0), $ = L(!1), N = U(() => {
|
|
3196
3196
|
const Z = /* @__PURE__ */ new Map(), ee = (se) => {
|
|
3197
3197
|
se.forEach((Ie) => {
|
|
3198
3198
|
Z.set(Ie.value, {
|
|
@@ -3204,7 +3204,7 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3204
3204
|
};
|
|
3205
3205
|
return ee(Y.value), ee(I.value), Array.from(Z.values());
|
|
3206
3206
|
}), M = L(!1), A = (Z) => {
|
|
3207
|
-
Y.value = [],
|
|
3207
|
+
Y.value = [], T.value = ue(Z) ? [] : null, f.value = ue(Z) ? [] : null, ge(T.value);
|
|
3208
3208
|
}, _ = (Z) => {
|
|
3209
3209
|
const ee = (se) => N.value.find((Ie) => Ie.value === se) ?? { title: `${se}`, value: se };
|
|
3210
3210
|
return ue(Z) ? Z.map(ee) : ee(Z);
|
|
@@ -3215,7 +3215,7 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3215
3215
|
try {
|
|
3216
3216
|
Y.value = await t.fetchItemsByIds(ee);
|
|
3217
3217
|
const se = _(Z);
|
|
3218
|
-
|
|
3218
|
+
T.value = se, f.value = se, ge(T.value);
|
|
3219
3219
|
} catch (se) {
|
|
3220
3220
|
y(se);
|
|
3221
3221
|
}
|
|
@@ -3226,8 +3226,8 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3226
3226
|
}, { showErrorsDefault: y } = In(), C = async (Z, ee) => {
|
|
3227
3227
|
M.value = !0, u[d] = Z;
|
|
3228
3228
|
try {
|
|
3229
|
-
const se = await t.fetchItems(
|
|
3230
|
-
ee ===
|
|
3229
|
+
const se = await t.fetchItems(h, u, i);
|
|
3230
|
+
ee === v.value && (I.value = se);
|
|
3231
3231
|
} catch (se) {
|
|
3232
3232
|
y(se);
|
|
3233
3233
|
} finally {
|
|
@@ -3237,51 +3237,51 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3237
3237
|
if (!(t.prefetch === !1 || t.prefetch !== Z) && !M.value && !$.value) {
|
|
3238
3238
|
M.value = !0;
|
|
3239
3239
|
try {
|
|
3240
|
-
const ee = await t.fetchItems(
|
|
3241
|
-
|
|
3240
|
+
const ee = await t.fetchItems(h, u, i);
|
|
3241
|
+
v.value === 0 && (I.value = ee), $.value = !0;
|
|
3242
3242
|
} finally {
|
|
3243
3243
|
M.value = !1;
|
|
3244
3244
|
}
|
|
3245
3245
|
}
|
|
3246
3246
|
}, R = async () => {
|
|
3247
|
-
|
|
3247
|
+
c.value = !0, await x("focus");
|
|
3248
3248
|
}, j = async () => {
|
|
3249
3249
|
await x("hover");
|
|
3250
3250
|
}, Q = U(() => {
|
|
3251
3251
|
if (!p.value.multiple && Y.value[0])
|
|
3252
3252
|
return Y.value[0].title;
|
|
3253
3253
|
}), re = (Z) => {
|
|
3254
|
-
!p.value.multiple && !
|
|
3254
|
+
!p.value.multiple && !c.value && Z.length === 0 || Q.value !== Z && (b.value = Z);
|
|
3255
3255
|
}, { clearOne: ve } = ct(), Te = () => {
|
|
3256
3256
|
ve(t.name, l, s), o.value.delete(t.name);
|
|
3257
3257
|
}, ke = async () => {
|
|
3258
3258
|
try {
|
|
3259
|
-
I.value = await t.fetchItems(
|
|
3259
|
+
I.value = await t.fetchItems(h, u, i);
|
|
3260
3260
|
} catch (Z) {
|
|
3261
3261
|
y(Z);
|
|
3262
3262
|
}
|
|
3263
3263
|
Te();
|
|
3264
3264
|
};
|
|
3265
3265
|
qa(
|
|
3266
|
-
|
|
3266
|
+
b,
|
|
3267
3267
|
(Z, ee) => {
|
|
3268
3268
|
if (Z !== ee && !(Z.length > 0 && Z.length < t.minSearchChars)) {
|
|
3269
3269
|
if (Z.length === 0 && t.prefetch === !1) {
|
|
3270
3270
|
I.value = [];
|
|
3271
3271
|
return;
|
|
3272
3272
|
}
|
|
3273
|
-
|
|
3273
|
+
v.value++, C(Z, v.value);
|
|
3274
3274
|
}
|
|
3275
3275
|
},
|
|
3276
3276
|
{ debounce: Yi }
|
|
3277
3277
|
);
|
|
3278
3278
|
const W = async () => {
|
|
3279
3279
|
await x("mounted");
|
|
3280
|
-
}, te = U(() =>
|
|
3280
|
+
}, te = U(() => D(t.placeholder) ? p.value.variant === "startsWith" ? w("common.model.filterPlaceholder.startsWith") : p.value.variant === "eq" ? w("common.model.filterPlaceholder.eq") : p.value.variant === "search" ? w("common.model.filterPlaceholder.contains") : "" : t.placeholder), q = U(() => {
|
|
3281
3281
|
if (M.value)
|
|
3282
3282
|
return "$vuetify.loading";
|
|
3283
|
-
if (I.value.length === 0 &&
|
|
3284
|
-
return
|
|
3283
|
+
if (I.value.length === 0 && b.value.length < t.minSearchChars)
|
|
3284
|
+
return D(t.minSearchText) ? w("common.filter.filterMinChars", { min: t.minSearchChars }) : t.minSearchText;
|
|
3285
3285
|
}), K = (Z) => {
|
|
3286
3286
|
s.touched = !0;
|
|
3287
3287
|
let ee = null;
|
|
@@ -3305,17 +3305,17 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3305
3305
|
async (Z, ee) => {
|
|
3306
3306
|
if (Z === ee || Je(Z)) return;
|
|
3307
3307
|
const se = Z;
|
|
3308
|
-
if (
|
|
3309
|
-
A(se),
|
|
3308
|
+
if (E.value && (E.value = !1, await W()), Qo(se)) {
|
|
3309
|
+
A(se), D(ee) || (v.value++, await C("", v.value));
|
|
3310
3310
|
return;
|
|
3311
3311
|
}
|
|
3312
3312
|
await S(se);
|
|
3313
3313
|
},
|
|
3314
3314
|
{ immediate: !0 }
|
|
3315
3315
|
), (Z, ee) => (P(), X(ra, {
|
|
3316
|
-
modelValue:
|
|
3316
|
+
modelValue: T.value,
|
|
3317
3317
|
"onUpdate:modelValue": [
|
|
3318
|
-
ee[0] || (ee[0] = (se) =>
|
|
3318
|
+
ee[0] || (ee[0] = (se) => T.value = se),
|
|
3319
3319
|
K
|
|
3320
3320
|
],
|
|
3321
3321
|
items: N.value,
|
|
@@ -3323,7 +3323,7 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3323
3323
|
placeholder: te.value,
|
|
3324
3324
|
multiple: p.value.multiple,
|
|
3325
3325
|
clearable: !p.value.mandatory,
|
|
3326
|
-
label:
|
|
3326
|
+
label: k.value,
|
|
3327
3327
|
chips: p.value.multiple,
|
|
3328
3328
|
loading: M.value,
|
|
3329
3329
|
"hide-details": "",
|
|
@@ -3362,7 +3362,7 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3362
3362
|
name: "no-data",
|
|
3363
3363
|
fn: B(() => [
|
|
3364
3364
|
O(Rt, {
|
|
3365
|
-
title: H(
|
|
3365
|
+
title: H(w)("$vuetify.loading")
|
|
3366
3366
|
}, null, 8, ["title"])
|
|
3367
3367
|
]),
|
|
3368
3368
|
key: "0"
|
|
@@ -3389,45 +3389,45 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3389
3389
|
},
|
|
3390
3390
|
emits: ["change"],
|
|
3391
3391
|
setup(e, { emit: n }) {
|
|
3392
|
-
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt), i = J(lo), u = J(ro),
|
|
3393
|
-
if (
|
|
3394
|
-
throw new Error(`[${
|
|
3392
|
+
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt), i = J(lo), u = J(ro), m = oa()?.type.__name;
|
|
3393
|
+
if (D(r) || D(o) || D(l) || D(s) || D(i) || D(u))
|
|
3394
|
+
throw new Error(`[${m}] Incorrect provide/inject config.`);
|
|
3395
3395
|
if (
|
|
3396
3396
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3397
|
-
|
|
3398
|
-
|
|
3397
|
+
D(s.fields[t.name]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3398
|
+
D(l[t.name])
|
|
3399
3399
|
)
|
|
3400
3400
|
throw new Error(
|
|
3401
|
-
`[${
|
|
3401
|
+
`[${m}] Incorrect filter config. Name is '${t.name}' and available options are ${Object.keys(l).join(", ")}.`
|
|
3402
3402
|
);
|
|
3403
3403
|
if (
|
|
3404
3404
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3405
|
-
|
|
3406
|
-
|
|
3405
|
+
D(i.fields[t.filterByField]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3406
|
+
D(u[t.filterByField])
|
|
3407
3407
|
)
|
|
3408
3408
|
throw new Error(
|
|
3409
|
-
`[${
|
|
3409
|
+
`[${m}] Incorrect filter inner config. FilterByField is '${t.filterByField}' and available options are ${Object.keys(u).join(", ")}.`
|
|
3410
3410
|
);
|
|
3411
|
-
const d = L([]),
|
|
3411
|
+
const d = L([]), g = L(""), p = L(!1), T = L(void 0), b = L(0), { t: c } = Re(), f = U(() => s.fields[t.name]), v = () => {
|
|
3412
3412
|
p.value = !1;
|
|
3413
|
-
},
|
|
3413
|
+
}, w = U(() => f.value.titleT ? c(f.value.titleT) : void 0), { pagination: F } = kn(
|
|
3414
3414
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3415
3415
|
G(t.filterSortBy) ? null : t.filterSortBy.key,
|
|
3416
3416
|
t.filterSortBy?.order
|
|
3417
|
-
),
|
|
3417
|
+
), k = L([]), h = L([]), I = U(() => {
|
|
3418
3418
|
const W = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map();
|
|
3419
|
-
return
|
|
3419
|
+
return h.value.forEach((q) => {
|
|
3420
3420
|
q.raw ? (W.set(q.raw[t.itemValue], q.raw[t.itemTitle]), te.set(q.raw[t.itemValue], $e(q.raw))) : (W.set(q[t.itemValue], q[t.itemTitle]), te.set(q[t.itemValue], $e(q)));
|
|
3421
|
-
}),
|
|
3421
|
+
}), k.value.forEach((q) => {
|
|
3422
3422
|
q.raw ? (W.set(q.raw[t.itemValue], q.raw[t.itemTitle]), te.set(q.raw[t.itemValue], $e(q.raw))) : (W.set(q[t.itemValue], q[t.itemTitle]), te.set(q[t.itemValue], $e(q)));
|
|
3423
3423
|
}), Array.from(W, ([q, K]) => ({ value: q, title: K, raw: te.get(q) }));
|
|
3424
|
-
}), Y = L(!1), { showErrorsDefault:
|
|
3424
|
+
}), Y = L(!1), { showErrorsDefault: E } = In(), $ = async (W, te) => {
|
|
3425
3425
|
Y.value = !0, u[t.filterByField] = W;
|
|
3426
3426
|
try {
|
|
3427
3427
|
const q = await t.fetchItemsMinimal(F, u, i);
|
|
3428
|
-
te ===
|
|
3428
|
+
te === b.value && (k.value = q);
|
|
3429
3429
|
} catch (q) {
|
|
3430
|
-
|
|
3430
|
+
E(q);
|
|
3431
3431
|
} finally {
|
|
3432
3432
|
Y.value = !1;
|
|
3433
3433
|
}
|
|
@@ -3438,17 +3438,17 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3438
3438
|
return [].concat(te);
|
|
3439
3439
|
}, M = async (W) => {
|
|
3440
3440
|
let te = 1, q = [];
|
|
3441
|
-
return ue(W) ? (te = W.length, q = N(W)) : q = N([W]),
|
|
3441
|
+
return ue(W) ? (te = W.length, q = N(W)) : q = N([W]), h.value = q, q.length === te;
|
|
3442
3442
|
}, A = L(!1), _ = () => {
|
|
3443
|
-
clearTimeout(
|
|
3443
|
+
clearTimeout(T.value), T.value = void 0;
|
|
3444
3444
|
}, S = async () => {
|
|
3445
3445
|
if (_(), A.value !== !0) {
|
|
3446
3446
|
A.value = !0, Y.value = !0;
|
|
3447
3447
|
try {
|
|
3448
3448
|
const W = await t.fetchItemsMinimal(F, u, i);
|
|
3449
|
-
|
|
3449
|
+
b.value === 0 && (k.value = W);
|
|
3450
3450
|
} catch (W) {
|
|
3451
|
-
|
|
3451
|
+
E(W);
|
|
3452
3452
|
} finally {
|
|
3453
3453
|
Y.value = !1;
|
|
3454
3454
|
}
|
|
@@ -3458,26 +3458,26 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3458
3458
|
}, C = () => {
|
|
3459
3459
|
t.prefetch === "focus" || t.prefetch === !1 || (_(), S());
|
|
3460
3460
|
}, x = U(() => {
|
|
3461
|
-
if (!
|
|
3462
|
-
return
|
|
3461
|
+
if (!f.value.multiple && h.value[0])
|
|
3462
|
+
return h.value[0].title;
|
|
3463
3463
|
}), R = (W) => {
|
|
3464
|
-
!
|
|
3464
|
+
!f.value.multiple && !p.value && W.length === 0 || x.value !== W && (g.value = W);
|
|
3465
3465
|
}, j = (W) => {
|
|
3466
3466
|
s.touched = !0;
|
|
3467
3467
|
let te = null;
|
|
3468
3468
|
ue(W) ? te = W.map((q) => q.value) : G(W) || (te = W.value), l[t.name] = te, a("change");
|
|
3469
3469
|
}, Q = async () => {
|
|
3470
3470
|
try {
|
|
3471
|
-
|
|
3471
|
+
k.value = await t.fetchItemsMinimal(
|
|
3472
3472
|
F,
|
|
3473
3473
|
u,
|
|
3474
3474
|
i
|
|
3475
3475
|
);
|
|
3476
3476
|
} catch (W) {
|
|
3477
|
-
|
|
3477
|
+
E(W);
|
|
3478
3478
|
}
|
|
3479
3479
|
Te();
|
|
3480
|
-
}, re = U(() =>
|
|
3480
|
+
}, re = U(() => D(t.placeholder) ? f.value.variant === "startsWith" ? c("common.model.filterPlaceholder.startsWith") : f.value.variant === "eq" ? c("common.model.filterPlaceholder.eq") : f.value.variant === "search" ? c("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: ve } = ct(), Te = () => {
|
|
3481
3481
|
ve(t.name, l, s), o.value.delete(t.name);
|
|
3482
3482
|
}, ke = (W) => {
|
|
3483
3483
|
if (o.value.delete(t.name), ue(W) && W.length === 0 || G(W)) {
|
|
@@ -3497,15 +3497,15 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3497
3497
|
() => l[t.name],
|
|
3498
3498
|
async (W, te) => {
|
|
3499
3499
|
if (W === te || Je(W)) return;
|
|
3500
|
-
if (G(W) ||
|
|
3501
|
-
if (
|
|
3502
|
-
|
|
3500
|
+
if (G(W) || D(W) || ue(W) && W.length === 0) {
|
|
3501
|
+
if (h.value = [], f.value.multiple ? d.value = [] : d.value = null, ke(d.value), A.value === !0 || Ui(t.prefetch, ["hover", "focus", !1])) return;
|
|
3502
|
+
T.value = setTimeout(() => {
|
|
3503
3503
|
S();
|
|
3504
3504
|
}, 3e3);
|
|
3505
3505
|
return;
|
|
3506
3506
|
}
|
|
3507
3507
|
if (await M(W)) {
|
|
3508
|
-
d.value =
|
|
3508
|
+
d.value = h.value.map((K) => ({
|
|
3509
3509
|
title: K.title,
|
|
3510
3510
|
value: K.value
|
|
3511
3511
|
})), ke(d.value);
|
|
@@ -3514,14 +3514,14 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3514
3514
|
if (ue(W)) {
|
|
3515
3515
|
Y.value = !0;
|
|
3516
3516
|
try {
|
|
3517
|
-
|
|
3517
|
+
h.value = await t.fetchItemsMinimalByIds(
|
|
3518
3518
|
W
|
|
3519
|
-
), d.value =
|
|
3519
|
+
), d.value = h.value.map((K) => ({
|
|
3520
3520
|
title: K.title,
|
|
3521
3521
|
value: K.value
|
|
3522
3522
|
})), ke(d.value);
|
|
3523
3523
|
} catch (K) {
|
|
3524
|
-
|
|
3524
|
+
E(K);
|
|
3525
3525
|
} finally {
|
|
3526
3526
|
Y.value = !1;
|
|
3527
3527
|
}
|
|
@@ -3529,21 +3529,21 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3529
3529
|
}
|
|
3530
3530
|
Y.value = !0;
|
|
3531
3531
|
try {
|
|
3532
|
-
|
|
3532
|
+
h.value = await t.fetchItemsMinimalByIds([W]), d.value = h.value.map((K) => ({
|
|
3533
3533
|
title: K.title,
|
|
3534
3534
|
value: K.value
|
|
3535
3535
|
}))[0], ke(d.value);
|
|
3536
3536
|
} catch (K) {
|
|
3537
|
-
|
|
3537
|
+
E(K);
|
|
3538
3538
|
} finally {
|
|
3539
3539
|
Y.value = !1;
|
|
3540
3540
|
}
|
|
3541
3541
|
},
|
|
3542
3542
|
{ immediate: !0 }
|
|
3543
3543
|
), qa(
|
|
3544
|
-
|
|
3544
|
+
g,
|
|
3545
3545
|
(W, te) => {
|
|
3546
|
-
W.length < t.searchMinChars || W !== te && (
|
|
3546
|
+
W.length < t.searchMinChars || W !== te && (b.value++, $(W, b.value));
|
|
3547
3547
|
},
|
|
3548
3548
|
{ debounce: 300 }
|
|
3549
3549
|
), (W, te) => (P(), X(ra, {
|
|
@@ -3555,16 +3555,16 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3555
3555
|
items: I.value,
|
|
3556
3556
|
"no-filter": "",
|
|
3557
3557
|
placeholder: re.value,
|
|
3558
|
-
multiple:
|
|
3559
|
-
clearable: !
|
|
3560
|
-
label:
|
|
3561
|
-
chips:
|
|
3558
|
+
multiple: f.value.multiple,
|
|
3559
|
+
clearable: !f.value.mandatory,
|
|
3560
|
+
label: w.value,
|
|
3561
|
+
chips: f.value.multiple,
|
|
3562
3562
|
loading: Y.value,
|
|
3563
3563
|
"hide-details": "",
|
|
3564
3564
|
"return-object": "",
|
|
3565
3565
|
autocomplete: "off",
|
|
3566
3566
|
"onUpdate:search": R,
|
|
3567
|
-
onBlur:
|
|
3567
|
+
onBlur: v,
|
|
3568
3568
|
onFocus: y,
|
|
3569
3569
|
onMouseenter: C,
|
|
3570
3570
|
"onClick:clear": Q
|
|
@@ -3602,12 +3602,12 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3602
3602
|
emits: ["change"],
|
|
3603
3603
|
setup(e, { emit: n }) {
|
|
3604
3604
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt), i = oa()?.type.__name;
|
|
3605
|
-
if (
|
|
3605
|
+
if (D(r) || D(o) || D(l) || D(s))
|
|
3606
3606
|
throw new Error(`[${i}] Incorrect provide/inject config.`);
|
|
3607
3607
|
if (
|
|
3608
3608
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3609
|
-
|
|
3610
|
-
|
|
3609
|
+
D(s.fields[t.name]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3610
|
+
D(l[t.name])
|
|
3611
3611
|
)
|
|
3612
3612
|
throw new Error(
|
|
3613
3613
|
`[${i}] Incorrect filter config. Name is '${t.name}' and available options are ${Object.keys(l).join(", ")}.`
|
|
@@ -3616,46 +3616,46 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3616
3616
|
get() {
|
|
3617
3617
|
return l[t.name];
|
|
3618
3618
|
},
|
|
3619
|
-
set(
|
|
3620
|
-
l[t.name] =
|
|
3619
|
+
set(c) {
|
|
3620
|
+
l[t.name] = c, b(c), s.touched = !0, a("change");
|
|
3621
3621
|
}
|
|
3622
|
-
}),
|
|
3622
|
+
}), m = U(() => s.fields[t.name]), { t: d } = Re(), g = U(() => m.value.titleT ? d(m.value.titleT) : void 0), { clearOne: p } = ct(), T = () => {
|
|
3623
3623
|
p(t.name, l, s), o.value.delete(t.name);
|
|
3624
|
-
},
|
|
3625
|
-
if (ue(
|
|
3626
|
-
if (ue(
|
|
3624
|
+
}, b = (c) => {
|
|
3625
|
+
if (ue(c) && c.length === 0) return;
|
|
3626
|
+
if (ue(c)) {
|
|
3627
3627
|
o.value.set(
|
|
3628
3628
|
t.name,
|
|
3629
|
-
|
|
3630
|
-
const
|
|
3631
|
-
return
|
|
3629
|
+
c.map((v) => {
|
|
3630
|
+
const w = t.items.find((F) => F.value === v);
|
|
3631
|
+
return w ? { title: w.title, value: w.value } : { title: v, value: v };
|
|
3632
3632
|
})
|
|
3633
3633
|
);
|
|
3634
3634
|
return;
|
|
3635
3635
|
}
|
|
3636
|
-
const
|
|
3637
|
-
|
|
3638
|
-
{ title:
|
|
3636
|
+
const f = t.items.find((v) => v.value === c);
|
|
3637
|
+
f && o.value.set(t.name, [
|
|
3638
|
+
{ title: f.title, value: f.value }
|
|
3639
3639
|
]);
|
|
3640
3640
|
};
|
|
3641
3641
|
return Ae(
|
|
3642
3642
|
() => l[t.name],
|
|
3643
|
-
(
|
|
3644
|
-
|
|
3643
|
+
(c, f) => {
|
|
3644
|
+
c === f || Je(c) || b(c);
|
|
3645
3645
|
},
|
|
3646
3646
|
{ immediate: !0 }
|
|
3647
|
-
), (
|
|
3647
|
+
), (c, f) => (P(), X(ra, {
|
|
3648
3648
|
modelValue: u.value,
|
|
3649
|
-
"onUpdate:modelValue":
|
|
3649
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => u.value = v),
|
|
3650
3650
|
items: e.items,
|
|
3651
|
-
chips:
|
|
3652
|
-
label:
|
|
3653
|
-
multiple:
|
|
3654
|
-
clearable: !
|
|
3651
|
+
chips: m.value.multiple,
|
|
3652
|
+
label: g.value,
|
|
3653
|
+
multiple: m.value.multiple,
|
|
3654
|
+
clearable: !m.value.mandatory,
|
|
3655
3655
|
"data-cy": "filter-value",
|
|
3656
3656
|
"hide-details": "",
|
|
3657
3657
|
autocomplete: "off",
|
|
3658
|
-
"onClick:clear": ye(
|
|
3658
|
+
"onClick:clear": ye(T, ["stop"])
|
|
3659
3659
|
}, null, 8, ["modelValue", "items", "chips", "label", "multiple", "clearable"]));
|
|
3660
3660
|
}
|
|
3661
3661
|
}), Vi = /* @__PURE__ */ Se({
|
|
@@ -3670,45 +3670,45 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3670
3670
|
emits: ["change"],
|
|
3671
3671
|
setup(e, { emit: n }) {
|
|
3672
3672
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3673
|
-
if (
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3673
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3674
|
+
D(s.fields[t.nameFrom]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3675
|
+
D(s.fields[t.nameUntil]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3676
|
+
D(l[t.nameFrom]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3677
|
+
D(l[t.nameUntil]))
|
|
3678
3678
|
throw new Error("Incorrect provide/inject config.");
|
|
3679
3679
|
const i = U({
|
|
3680
3680
|
get() {
|
|
3681
3681
|
return l[t.nameFrom];
|
|
3682
3682
|
},
|
|
3683
3683
|
set(M) {
|
|
3684
|
-
l[t.nameFrom] = M,
|
|
3684
|
+
l[t.nameFrom] = M, E(M), s.touched = !0, Ye(() => {
|
|
3685
3685
|
a("change");
|
|
3686
3686
|
});
|
|
3687
3687
|
}
|
|
3688
|
-
}), { timeIntervalOptions: u, getTimeIntervalOption:
|
|
3688
|
+
}), { timeIntervalOptions: u, getTimeIntervalOption: m } = xi(t.allowed), d = L(null), g = L(!1), p = L({
|
|
3689
3689
|
from: null,
|
|
3690
3690
|
until: Dn()
|
|
3691
|
-
}),
|
|
3692
|
-
|
|
3693
|
-
},
|
|
3694
|
-
if (
|
|
3691
|
+
}), T = L(!1), { v$: b } = _i(p), c = U(() => s.fields[t.nameFrom]), { t: f } = Re(), v = U(() => c.value.titleT ? f(c.value.titleT) : void 0), { clearOne: w } = ct(), { showValidationError: F } = In(), k = () => {
|
|
3692
|
+
T.value = !1, d.value = null, Y();
|
|
3693
|
+
}, h = () => {
|
|
3694
|
+
if (b.value.$touch(), b.value.$invalid) {
|
|
3695
3695
|
F();
|
|
3696
3696
|
return;
|
|
3697
3697
|
}
|
|
3698
|
-
|
|
3698
|
+
T.value = !0, g.value = !1, l[t.nameUntil] = p.value.until, i.value = p.value.from;
|
|
3699
3699
|
}, I = () => {
|
|
3700
|
-
|
|
3700
|
+
g.value = !1, d.value = null;
|
|
3701
3701
|
}, Y = () => {
|
|
3702
|
-
|
|
3703
|
-
},
|
|
3702
|
+
w(t.nameFrom, l, s), w(t.nameUntil, l, s), o.value.delete(t.nameFrom);
|
|
3703
|
+
}, E = (M) => {
|
|
3704
3704
|
if (ue(M) || Je(M)) return;
|
|
3705
|
-
if (G(M) ||
|
|
3705
|
+
if (G(M) || D(M)) {
|
|
3706
3706
|
o.value.delete(t.nameFrom);
|
|
3707
3707
|
return;
|
|
3708
3708
|
}
|
|
3709
|
-
const A =
|
|
3709
|
+
const A = m(M);
|
|
3710
3710
|
if (!A && ya(M)) {
|
|
3711
|
-
const _ =
|
|
3711
|
+
const _ = m(dt.Custom);
|
|
3712
3712
|
o.value.set(t.nameFrom, [
|
|
3713
3713
|
{
|
|
3714
3714
|
title: _.title + ": " + dn(p.value.from) + " - " + dn(p.value.until),
|
|
@@ -3719,24 +3719,24 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3719
3719
|
}
|
|
3720
3720
|
A && o.value.set(t.nameFrom, [{ title: A.title, value: M }]);
|
|
3721
3721
|
}, $ = (M = !1) => {
|
|
3722
|
-
|
|
3722
|
+
b.value.$reset(), M && (p.value.from = null, p.value.until = Dn()), g.value = !0;
|
|
3723
3723
|
};
|
|
3724
3724
|
Ae(
|
|
3725
3725
|
i,
|
|
3726
3726
|
(M) => {
|
|
3727
3727
|
if (ue(M) || Je(M)) return;
|
|
3728
|
-
if (
|
|
3728
|
+
if (T.value = !1, D(M) || G(M)) {
|
|
3729
3729
|
d.value = null;
|
|
3730
3730
|
return;
|
|
3731
3731
|
}
|
|
3732
|
-
const A =
|
|
3733
|
-
!A && ya(i.value) && ya(_) && (d.value = dt.Custom, p.value.from = i.value, p.value.until = _,
|
|
3732
|
+
const A = m(i.value), _ = l[t.nameUntil];
|
|
3733
|
+
!A && ya(i.value) && ya(_) && (d.value = dt.Custom, p.value.from = i.value, p.value.until = _, T.value = !0), A && (d.value = A.value);
|
|
3734
3734
|
},
|
|
3735
3735
|
{ immediate: !0 }
|
|
3736
3736
|
), Ae(
|
|
3737
3737
|
[() => l[t.nameFrom], () => l[t.nameUntil]],
|
|
3738
3738
|
([M, A], [_, S]) => {
|
|
3739
|
-
M === _ && A === S ||
|
|
3739
|
+
M === _ && A === S || E(M);
|
|
3740
3740
|
},
|
|
3741
3741
|
{ immediate: !0 }
|
|
3742
3742
|
);
|
|
@@ -3750,9 +3750,9 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3750
3750
|
return (M, A) => {
|
|
3751
3751
|
const _ = Wt("ABtnTertiary"), S = Wt("ABtnPrimary");
|
|
3752
3752
|
return P(), de(qe, null, [
|
|
3753
|
-
|
|
3753
|
+
T.value ? (P(), X(el, {
|
|
3754
3754
|
key: 0,
|
|
3755
|
-
label:
|
|
3755
|
+
label: v.value,
|
|
3756
3756
|
"model-value": H(dn)(p.value.from) + " - " + H(dn)(p.value.until),
|
|
3757
3757
|
readonly: "",
|
|
3758
3758
|
rows: "1",
|
|
@@ -3761,7 +3761,7 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3761
3761
|
"append-inner-icon": "mdi-menu-down",
|
|
3762
3762
|
clearable: "",
|
|
3763
3763
|
class: "cursor-pointer",
|
|
3764
|
-
"onClick:clear": ye(
|
|
3764
|
+
"onClick:clear": ye(k, ["stop"]),
|
|
3765
3765
|
onClick: A[0] || (A[0] = ye((y) => $(), ["stop"]))
|
|
3766
3766
|
}, null, 8, ["label", "model-value"])) : (P(), X(Ko, {
|
|
3767
3767
|
key: 1,
|
|
@@ -3769,14 +3769,14 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3769
3769
|
"onUpdate:modelValue": A[1] || (A[1] = (y) => d.value = y),
|
|
3770
3770
|
"item-title": "title",
|
|
3771
3771
|
"item-value": "value",
|
|
3772
|
-
label:
|
|
3772
|
+
label: v.value,
|
|
3773
3773
|
clearable: !H(G)(d.value),
|
|
3774
3774
|
"no-filter": "",
|
|
3775
3775
|
"data-cy": e.dataCy,
|
|
3776
3776
|
items: H(u),
|
|
3777
3777
|
"hide-details": "",
|
|
3778
3778
|
autocomplete: "off",
|
|
3779
|
-
"onClick:clear": ye(
|
|
3779
|
+
"onClick:clear": ye(k, ["stop"])
|
|
3780
3780
|
}, {
|
|
3781
3781
|
item: B(({ props: y, internalItem: C }) => [
|
|
3782
3782
|
O(Rt, it(y, {
|
|
@@ -3785,7 +3785,7 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3785
3785
|
]),
|
|
3786
3786
|
_: 1
|
|
3787
3787
|
}, 8, ["modelValue", "label", "clearable", "data-cy", "items"])),
|
|
3788
|
-
|
|
3788
|
+
g.value ? (P(), X(Wa, {
|
|
3789
3789
|
key: 2,
|
|
3790
3790
|
"model-value": !0,
|
|
3791
3791
|
width: "auto",
|
|
@@ -3797,7 +3797,7 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3797
3797
|
O(Ja, { onOnCancel: I }, {
|
|
3798
3798
|
default: B(() => [
|
|
3799
3799
|
we(M.$slots, "title", {}, () => [
|
|
3800
|
-
De(fe(
|
|
3800
|
+
De(fe(v.value), 1)
|
|
3801
3801
|
], !0)
|
|
3802
3802
|
]),
|
|
3803
3803
|
_: 3
|
|
@@ -3809,8 +3809,8 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3809
3809
|
O(xo, {
|
|
3810
3810
|
modelValue: p.value.from,
|
|
3811
3811
|
"onUpdate:modelValue": A[2] || (A[2] = (y) => p.value.from = y),
|
|
3812
|
-
v: H(
|
|
3813
|
-
label: H(
|
|
3812
|
+
v: H(b).dialogData.from,
|
|
3813
|
+
label: H(f)("common.filter.timeInterval.from"),
|
|
3814
3814
|
required: ""
|
|
3815
3815
|
}, null, 8, ["modelValue", "v", "label"])
|
|
3816
3816
|
]),
|
|
@@ -3821,8 +3821,8 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3821
3821
|
O(xo, {
|
|
3822
3822
|
modelValue: p.value.until,
|
|
3823
3823
|
"onUpdate:modelValue": A[3] || (A[3] = (y) => p.value.until = y),
|
|
3824
|
-
v: H(
|
|
3825
|
-
label: H(
|
|
3824
|
+
v: H(b).dialogData.until,
|
|
3825
|
+
label: H(f)("common.filter.timeInterval.until"),
|
|
3826
3826
|
required: ""
|
|
3827
3827
|
}, null, 8, ["modelValue", "v", "label"])
|
|
3828
3828
|
]),
|
|
@@ -3839,16 +3839,16 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3839
3839
|
onClick: ye(I, ["stop"])
|
|
3840
3840
|
}, {
|
|
3841
3841
|
default: B(() => [
|
|
3842
|
-
De(fe(H(
|
|
3842
|
+
De(fe(H(f)("common.button.cancel")), 1)
|
|
3843
3843
|
]),
|
|
3844
3844
|
_: 1
|
|
3845
3845
|
}),
|
|
3846
3846
|
O(S, {
|
|
3847
3847
|
"data-cy": "button-confirm",
|
|
3848
|
-
onClick: ye(
|
|
3848
|
+
onClick: ye(h, ["stop"])
|
|
3849
3849
|
}, {
|
|
3850
3850
|
default: B(() => [
|
|
3851
|
-
De(fe(H(
|
|
3851
|
+
De(fe(H(f)("common.button.confirm")), 1)
|
|
3852
3852
|
]),
|
|
3853
3853
|
_: 1
|
|
3854
3854
|
})
|
|
@@ -3882,32 +3882,32 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3882
3882
|
emits: ["change"],
|
|
3883
3883
|
setup(e, { emit: n }) {
|
|
3884
3884
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3885
|
-
if (
|
|
3886
|
-
|
|
3887
|
-
|
|
3885
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3886
|
+
D(s.fields[t.name]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3887
|
+
D(l[t.name]))
|
|
3888
3888
|
throw new Error("Incorrect provide/inject config.");
|
|
3889
3889
|
const i = U({
|
|
3890
3890
|
get() {
|
|
3891
3891
|
return l[t.name];
|
|
3892
3892
|
},
|
|
3893
|
-
set(
|
|
3894
|
-
l[t.name] =
|
|
3893
|
+
set(b) {
|
|
3894
|
+
l[t.name] = b, T(), s.touched = !0, a("change");
|
|
3895
3895
|
}
|
|
3896
|
-
}), { t: u } = Re(),
|
|
3897
|
-
|
|
3898
|
-
},
|
|
3896
|
+
}), { t: u } = Re(), m = U(() => s.fields[t.name]), d = U(() => m.value.titleT ? u(m.value.titleT) : void 0), { clearOne: g } = ct(), p = () => {
|
|
3897
|
+
g(t.name, l, s), o.value.delete(t.name);
|
|
3898
|
+
}, T = () => {
|
|
3899
3899
|
!Oe(i.value) || Oe(i.value) && i.value.length === 0 || o.value.set(t.name, [
|
|
3900
3900
|
{ title: dn(i.value), value: i.value }
|
|
3901
3901
|
]);
|
|
3902
3902
|
};
|
|
3903
|
-
return (
|
|
3903
|
+
return (b, c) => (P(), X(dr, it({
|
|
3904
3904
|
modelValue: i.value,
|
|
3905
|
-
"onUpdate:modelValue":
|
|
3905
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
3906
3906
|
"data-cy": e.dataCy,
|
|
3907
|
-
clearable: !
|
|
3908
|
-
"default-value":
|
|
3907
|
+
clearable: !m.value.mandatory,
|
|
3908
|
+
"default-value": m.value.default,
|
|
3909
3909
|
label: d.value
|
|
3910
|
-
},
|
|
3910
|
+
}, b.$attrs, { onAfterClear: p }), null, 16, ["modelValue", "data-cy", "clearable", "default-value", "label"]));
|
|
3911
3911
|
}
|
|
3912
3912
|
}), ji = /* @__PURE__ */ Se({
|
|
3913
3913
|
__name: "AFilterInteger",
|
|
@@ -3919,20 +3919,20 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3919
3919
|
emits: ["change"],
|
|
3920
3920
|
setup(e, { emit: n }) {
|
|
3921
3921
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3922
|
-
if (
|
|
3923
|
-
|
|
3924
|
-
|
|
3922
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3923
|
+
D(s.fields[t.name]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3924
|
+
D(l[t.name]))
|
|
3925
3925
|
throw new Error("Incorrect provide/inject config.");
|
|
3926
3926
|
const i = U({
|
|
3927
3927
|
get() {
|
|
3928
3928
|
return l[t.name];
|
|
3929
3929
|
},
|
|
3930
|
-
set(
|
|
3931
|
-
l[t.name] =
|
|
3930
|
+
set(c) {
|
|
3931
|
+
l[t.name] = c, s.touched = !0, a("change");
|
|
3932
3932
|
}
|
|
3933
|
-
}), u = U(() => s.fields[t.name]), { t:
|
|
3933
|
+
}), u = U(() => s.fields[t.name]), { t: m } = Re(), d = U(() => u.value.titleT ? m(u.value.titleT) : void 0), g = U(() => D(t.placeholder) ? u.value.variant === "startsWith" ? m("common.model.filterPlaceholder.startsWith") : u.value.variant === "eq" ? m("common.model.filterPlaceholder.eq") : u.value.variant === "search" ? m("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: p } = ct(), T = () => {
|
|
3934
3934
|
p(t.name, l, s), o.value.delete(t.name);
|
|
3935
|
-
},
|
|
3935
|
+
}, b = () => {
|
|
3936
3936
|
if (Gt(i.value)) {
|
|
3937
3937
|
o.value.set(t.name, [
|
|
3938
3938
|
{ title: i.value + "", value: i.value }
|
|
@@ -3949,21 +3949,21 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3949
3949
|
};
|
|
3950
3950
|
return Ae(
|
|
3951
3951
|
() => l[t.name],
|
|
3952
|
-
(
|
|
3953
|
-
|
|
3952
|
+
(c, f) => {
|
|
3953
|
+
c === f || Je(c) || b();
|
|
3954
3954
|
},
|
|
3955
3955
|
{ immediate: !0 }
|
|
3956
|
-
), (
|
|
3956
|
+
), (c, f) => (P(), X(ia, {
|
|
3957
3957
|
modelValue: i.value,
|
|
3958
|
-
"onUpdate:modelValue":
|
|
3958
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => i.value = v),
|
|
3959
3959
|
label: d.value,
|
|
3960
|
-
placeholder:
|
|
3960
|
+
placeholder: g.value,
|
|
3961
3961
|
clearable: !u.value.mandatory,
|
|
3962
3962
|
"data-cy": e.dataCy,
|
|
3963
3963
|
"hide-details": "",
|
|
3964
3964
|
autocomplete: "off",
|
|
3965
|
-
onBlur:
|
|
3966
|
-
"onClick:clear": ye(
|
|
3965
|
+
onBlur: b,
|
|
3966
|
+
"onClick:clear": ye(T, ["stop"])
|
|
3967
3967
|
}, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
|
|
3968
3968
|
}
|
|
3969
3969
|
}), pr = /* @__PURE__ */ Se({
|
|
@@ -3973,8 +3973,8 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3973
3973
|
},
|
|
3974
3974
|
setup(e) {
|
|
3975
3975
|
const n = e, t = J(Ke);
|
|
3976
|
-
if (
|
|
3977
|
-
|
|
3976
|
+
if (D(t) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3977
|
+
D(t.fields[n.name]))
|
|
3978
3978
|
throw new Error("Incorrect provide/inject config.");
|
|
3979
3979
|
const a = U(() => t.fields[n.name]), r = U(() => {
|
|
3980
3980
|
if (a.value.render.skip) return Mo;
|
|
@@ -4024,51 +4024,51 @@ const Zn = {
|
|
|
4024
4024
|
}
|
|
4025
4025
|
function a() {
|
|
4026
4026
|
let l = null, i = 1 / 0;
|
|
4027
|
-
e.value.forEach((u,
|
|
4028
|
-
u.lastUsed < i && (i = u.lastUsed, l =
|
|
4027
|
+
e.value.forEach((u, m) => {
|
|
4028
|
+
u.lastUsed < i && (i = u.lastUsed, l = m);
|
|
4029
4029
|
}), l !== null && e.value.delete(l);
|
|
4030
4030
|
}
|
|
4031
4031
|
async function r(l, i, u = !1) {
|
|
4032
4032
|
n.value = !1;
|
|
4033
|
-
const
|
|
4033
|
+
const m = t(l.layoutType, l.systemResource), d = Date.now();
|
|
4034
4034
|
if (!u) {
|
|
4035
|
-
const
|
|
4036
|
-
if (
|
|
4037
|
-
return
|
|
4035
|
+
const v = e.value.get(m);
|
|
4036
|
+
if (v)
|
|
4037
|
+
return v.lastUsed = d, v.items;
|
|
4038
4038
|
}
|
|
4039
|
-
const { pagination:
|
|
4039
|
+
const { pagination: g } = kn("position", Ct.Asc, {
|
|
4040
4040
|
rowsPerPage: Pa
|
|
4041
|
-
}), { start: p, end:
|
|
4041
|
+
}), { start: p, end: T } = wn(
|
|
4042
4042
|
l.systemResource,
|
|
4043
4043
|
"_"
|
|
4044
|
-
), { filterConfig:
|
|
4045
|
-
|
|
4046
|
-
let
|
|
4044
|
+
), { filterConfig: b, filterData: c } = $o(p, T);
|
|
4045
|
+
c.configType = Zn.FilterBookmark, c.layoutType = l.layoutType, c.systemResource = l.systemResource, c.user = l.user;
|
|
4046
|
+
let f = [];
|
|
4047
4047
|
try {
|
|
4048
|
-
const { executeFetch:
|
|
4049
|
-
|
|
4048
|
+
const { executeFetch: v } = i();
|
|
4049
|
+
f = await v(g, c, b), e.value.set(m, { lastUsed: d, items: f });
|
|
4050
4050
|
} catch {
|
|
4051
4051
|
n.value = !0;
|
|
4052
4052
|
}
|
|
4053
|
-
return e.value.size > Wi && a(),
|
|
4053
|
+
return e.value.size > Wi && a(), f;
|
|
4054
4054
|
}
|
|
4055
4055
|
async function o(l, i) {
|
|
4056
4056
|
n.value = !1;
|
|
4057
4057
|
const { pagination: u } = kn("position", Ct.Asc, {
|
|
4058
4058
|
rowsPerPage: Pa + 1
|
|
4059
|
-
}), { start:
|
|
4059
|
+
}), { start: m, end: d } = wn(
|
|
4060
4060
|
l.systemResource,
|
|
4061
4061
|
"_"
|
|
4062
|
-
), { filterConfig:
|
|
4062
|
+
), { filterConfig: g, filterData: p } = $o(m, d);
|
|
4063
4063
|
p.configType = Zn.FilterBookmark, p.layoutType = l.layoutType, p.systemResource = l.systemResource, p.user = l.user;
|
|
4064
|
-
let
|
|
4064
|
+
let T = 1 / 0;
|
|
4065
4065
|
try {
|
|
4066
|
-
const { executeFetch:
|
|
4067
|
-
|
|
4066
|
+
const { executeFetch: b } = i();
|
|
4067
|
+
T = (await b(u, p, g)).length;
|
|
4068
4068
|
} catch {
|
|
4069
4069
|
n.value = !0;
|
|
4070
4070
|
}
|
|
4071
|
-
return
|
|
4071
|
+
return T;
|
|
4072
4072
|
}
|
|
4073
4073
|
function s(l, i) {
|
|
4074
4074
|
e.value.get(l)?.items.push(i);
|
|
@@ -4082,76 +4082,76 @@ const Zn = {
|
|
|
4082
4082
|
fetchBookmarksCount: o
|
|
4083
4083
|
};
|
|
4084
4084
|
}), rn = (e) => {
|
|
4085
|
-
const { client: n, method: t, system: a, entity: r, urlTemplate: o, urlParams: s, options: l = {} } = e;
|
|
4086
|
-
let
|
|
4085
|
+
const { client: n, method: t, system: a, entity: r, urlTemplate: o, urlParams: s, options: l = {}, silentConsoleError: i = !1 } = e;
|
|
4086
|
+
let u = null;
|
|
4087
4087
|
return {
|
|
4088
|
-
executeRequest: async (
|
|
4089
|
-
|
|
4090
|
-
const
|
|
4088
|
+
executeRequest: async (g = {}) => {
|
|
4089
|
+
u = new AbortController();
|
|
4090
|
+
const p = g.urlTemplate, T = g.urlParams, b = g.object;
|
|
4091
4091
|
try {
|
|
4092
|
-
const
|
|
4093
|
-
if (
|
|
4094
|
-
|
|
4095
|
-
const
|
|
4092
|
+
const c = { method: t }, f = he(T) ? T : s, v = he(p) ? p : o;
|
|
4093
|
+
if (D(v)) throw new Error("Url template is undefined");
|
|
4094
|
+
c.url = v, v !== "" && !D(f) && (c.url = Mn(v, f)), G(b) || (c.data = JSON.stringify(b));
|
|
4095
|
+
const w = await n().request({
|
|
4096
4096
|
...l,
|
|
4097
|
-
...
|
|
4098
|
-
signal:
|
|
4097
|
+
...c,
|
|
4098
|
+
signal: u.signal
|
|
4099
4099
|
});
|
|
4100
|
-
if (!$n(
|
|
4101
|
-
throw new nn(
|
|
4102
|
-
if (
|
|
4103
|
-
return
|
|
4104
|
-
if (
|
|
4100
|
+
if (!$n(w.status))
|
|
4101
|
+
throw new nn(w.status);
|
|
4102
|
+
if (w.data)
|
|
4103
|
+
return w.data;
|
|
4104
|
+
if (w.status === Qt)
|
|
4105
4105
|
return;
|
|
4106
4106
|
throw new ut();
|
|
4107
|
-
} catch (
|
|
4108
|
-
if (
|
|
4107
|
+
} catch (c) {
|
|
4108
|
+
if (c instanceof DOMException && c.name === "AbortError")
|
|
4109
4109
|
return [];
|
|
4110
|
-
throw eo(
|
|
4110
|
+
throw eo(c) ? c : Tn(c) ? new en(c, c.config?.url) : An(c) ? new tn(c, a, r, c) : _n(c) ? new on(c, a, r, c) : xn(c) ? new an(c, c) : lr(c) ? new to(c) : Lt.isAxiosError(c) ? (i || console.error("Axios error: " + o, ...c.cause ? [c.cause] : []), new no(c)) : (i || console.error("AnzuFatalError: ", c), new ut(c));
|
|
4111
4111
|
} finally {
|
|
4112
|
-
|
|
4112
|
+
u = null;
|
|
4113
4113
|
}
|
|
4114
4114
|
},
|
|
4115
4115
|
abortRequest: () => {
|
|
4116
|
-
|
|
4116
|
+
u && u.abort();
|
|
4117
4117
|
}
|
|
4118
4118
|
};
|
|
4119
4119
|
}, Fo = "/adm/v1/user-admin-config", Ki = "userAdminConfig";
|
|
4120
4120
|
function gr(e, n, t = Ki, a = Fo) {
|
|
4121
4121
|
return {
|
|
4122
4122
|
useFetchUserAdminConfigList: () => Oi({ client: e, system: n, entity: t, urlTemplate: Fo }),
|
|
4123
|
-
fetchUserAdminConfig: (
|
|
4123
|
+
fetchUserAdminConfig: (m) => {
|
|
4124
4124
|
const { executeRequest: d } = rn({
|
|
4125
4125
|
client: e,
|
|
4126
4126
|
method: "GET",
|
|
4127
4127
|
system: n,
|
|
4128
4128
|
entity: t
|
|
4129
4129
|
});
|
|
4130
|
-
return d({ urlTemplate: a + "/:id", urlParams: { id:
|
|
4130
|
+
return d({ urlTemplate: a + "/:id", urlParams: { id: m } });
|
|
4131
4131
|
},
|
|
4132
|
-
createUserAdminConfig: (
|
|
4132
|
+
createUserAdminConfig: (m) => {
|
|
4133
4133
|
const { executeRequest: d } = rn({
|
|
4134
4134
|
client: e,
|
|
4135
4135
|
method: "POST",
|
|
4136
4136
|
system: n,
|
|
4137
4137
|
entity: t
|
|
4138
4138
|
});
|
|
4139
|
-
return d({ urlTemplate: a, object:
|
|
4139
|
+
return d({ urlTemplate: a, object: m });
|
|
4140
4140
|
},
|
|
4141
|
-
updateUserAdminConfig: (
|
|
4142
|
-
const { executeRequest:
|
|
4141
|
+
updateUserAdminConfig: (m, d) => {
|
|
4142
|
+
const { executeRequest: g } = rn({
|
|
4143
4143
|
client: e,
|
|
4144
4144
|
method: "PUT",
|
|
4145
4145
|
system: n,
|
|
4146
4146
|
entity: t
|
|
4147
4147
|
});
|
|
4148
|
-
return
|
|
4148
|
+
return g({ urlTemplate: a + "/:id", urlParams: { id: m }, object: d });
|
|
4149
4149
|
},
|
|
4150
|
-
deleteUserAdminConfig: (
|
|
4150
|
+
deleteUserAdminConfig: (m) => {
|
|
4151
4151
|
const { executeRequest: d } = rn({ client: e, method: "DELETE", system: n, entity: t });
|
|
4152
|
-
return d({ urlTemplate: a + "/:id", urlParams: { id:
|
|
4152
|
+
return d({ urlTemplate: a + "/:id", urlParams: { id: m } });
|
|
4153
4153
|
},
|
|
4154
|
-
updateUserAdminConfigPositions: (
|
|
4154
|
+
updateUserAdminConfigPositions: (m) => {
|
|
4155
4155
|
const { executeRequest: d } = rn({
|
|
4156
4156
|
client: e,
|
|
4157
4157
|
method: "PATCH",
|
|
@@ -4160,7 +4160,7 @@ function gr(e, n, t = Ki, a = Fo) {
|
|
|
4160
4160
|
});
|
|
4161
4161
|
return d({
|
|
4162
4162
|
urlTemplate: a + "/update-positions",
|
|
4163
|
-
object: { userAdminConfigs:
|
|
4163
|
+
object: { userAdminConfigs: m }
|
|
4164
4164
|
});
|
|
4165
4165
|
}
|
|
4166
4166
|
};
|
|
@@ -4182,30 +4182,30 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4182
4182
|
emits: /* @__PURE__ */ mt(["submit"], ["update:datatableHiddenColumns"]),
|
|
4183
4183
|
setup(e, { emit: n }) {
|
|
4184
4184
|
const t = e, a = n, r = Tt(e, "datatableHiddenColumns"), o = J(Ke), s = J(tt), l = J(mr), i = J(ot);
|
|
4185
|
-
if (
|
|
4185
|
+
if (D(l) || D(o) || D(s) || D(i))
|
|
4186
4186
|
throw new Error("Incorrect provide/inject config.");
|
|
4187
|
-
const u = L(!1),
|
|
4187
|
+
const u = L(!1), m = Ot("toolbar"), d = L(300), g = L(1e3), p = hr(), { useFetchUserAdminConfigList: T } = gr(t.client, t.system), b = t.system + "_" + t.subject, c = async (h = !1) => {
|
|
4188
4188
|
u.value = !0, await p.getBookmarks(
|
|
4189
4189
|
{
|
|
4190
4190
|
user: t.userId,
|
|
4191
4191
|
layoutType: Ft.Desktop,
|
|
4192
|
-
systemResource:
|
|
4192
|
+
systemResource: b
|
|
4193
4193
|
},
|
|
4194
|
-
|
|
4195
|
-
|
|
4194
|
+
T,
|
|
4195
|
+
h
|
|
4196
4196
|
), u.value = !1;
|
|
4197
|
-
}, { deserializeFilters:
|
|
4198
|
-
const I =
|
|
4197
|
+
}, { deserializeFilters: f } = fr(s, o), v = (h) => {
|
|
4198
|
+
const I = h.data;
|
|
4199
4199
|
he(I.datatableHiddenColumns) && he(r.value) && (r.value = I.datatableHiddenColumns), he(I.sortBy) && (l.value = {
|
|
4200
4200
|
...l.value,
|
|
4201
4201
|
sortBy: { key: I.sortBy.key, order: I.sortBy.order }
|
|
4202
4202
|
});
|
|
4203
|
-
const Y =
|
|
4203
|
+
const Y = f(I.filter);
|
|
4204
4204
|
if (!G(Y)) {
|
|
4205
|
-
for (const
|
|
4206
|
-
const $ =
|
|
4205
|
+
for (const E in s) {
|
|
4206
|
+
const $ = E;
|
|
4207
4207
|
let N = Y.filters[$];
|
|
4208
|
-
if (
|
|
4208
|
+
if (D(N) && o.fields[$]?.clearable) {
|
|
4209
4209
|
s[$] = $e(o.fields[$].default), i.value.delete($);
|
|
4210
4210
|
continue;
|
|
4211
4211
|
}
|
|
@@ -4222,51 +4222,51 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4222
4222
|
}
|
|
4223
4223
|
a("submit");
|
|
4224
4224
|
}
|
|
4225
|
-
},
|
|
4226
|
-
const I =
|
|
4225
|
+
}, w = async (h) => {
|
|
4226
|
+
const I = m.value;
|
|
4227
4227
|
if (G(I)) return;
|
|
4228
|
-
|
|
4229
|
-
let Y = 0,
|
|
4228
|
+
g.value = 1e3, await Ye();
|
|
4229
|
+
let Y = 0, E = 0;
|
|
4230
4230
|
for (let $ = 0; $ < I.children.length; $++) {
|
|
4231
4231
|
const M = I.children[$].offsetWidth;
|
|
4232
|
-
if (Y += M, Y >=
|
|
4232
|
+
if (Y += M, Y >= h - Xi)
|
|
4233
4233
|
break;
|
|
4234
|
-
|
|
4234
|
+
E++;
|
|
4235
4235
|
}
|
|
4236
|
-
|
|
4236
|
+
g.value = E;
|
|
4237
4237
|
};
|
|
4238
|
-
zr(
|
|
4239
|
-
|
|
4238
|
+
zr(m, (h) => {
|
|
4239
|
+
h[0] && (d.value = h[0].contentRect.width);
|
|
4240
4240
|
}), Wr(
|
|
4241
4241
|
d,
|
|
4242
|
-
(
|
|
4243
|
-
|
|
4242
|
+
(h, I) => {
|
|
4243
|
+
h !== I && w(h);
|
|
4244
4244
|
},
|
|
4245
4245
|
{ throttle: 1e3 }
|
|
4246
4246
|
);
|
|
4247
4247
|
const F = U(() => {
|
|
4248
|
-
const
|
|
4249
|
-
return p.bookmarks.get(
|
|
4250
|
-
}),
|
|
4251
|
-
const
|
|
4248
|
+
const h = p.generateKey(Ft.Desktop, b);
|
|
4249
|
+
return p.bookmarks.get(h)?.items ?? [];
|
|
4250
|
+
}), k = U(() => {
|
|
4251
|
+
const h = g.value;
|
|
4252
4252
|
return {
|
|
4253
|
-
visible: F.value.slice(0,
|
|
4254
|
-
hidden: F.value.slice(
|
|
4253
|
+
visible: F.value.slice(0, h),
|
|
4254
|
+
hidden: F.value.slice(h)
|
|
4255
4255
|
};
|
|
4256
4256
|
});
|
|
4257
|
-
return Ae([u, () => F.value.length], ([
|
|
4258
|
-
|
|
4259
|
-
|
|
4257
|
+
return Ae([u, () => F.value.length], ([h]) => {
|
|
4258
|
+
h === !0 || G(m.value) || (d.value = m.value.clientWidth, Ye(() => {
|
|
4259
|
+
w(d.value);
|
|
4260
4260
|
}));
|
|
4261
4261
|
}), ja(() => {
|
|
4262
|
-
|
|
4263
|
-
}), (
|
|
4262
|
+
c();
|
|
4263
|
+
}), (h, I) => (P(), de("div", {
|
|
4264
4264
|
ref: "toolbar",
|
|
4265
4265
|
key: F.value.length,
|
|
4266
4266
|
class: "w-100 d-flex overflow-hidden align-center mb-1"
|
|
4267
4267
|
}, [
|
|
4268
4268
|
u.value ? (P(), de("div", Gi)) : (P(), de(qe, { key: 1 }, [
|
|
4269
|
-
(P(!0), de(qe, null, Bt(
|
|
4269
|
+
(P(!0), de(qe, null, Bt(k.value.visible, (Y) => (P(), de("div", {
|
|
4270
4270
|
key: Y.id,
|
|
4271
4271
|
class: "white-space-nowrap"
|
|
4272
4272
|
}, [
|
|
@@ -4275,7 +4275,7 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4275
4275
|
"prepend-icon": "mdi-bookmark-outline",
|
|
4276
4276
|
size: "small",
|
|
4277
4277
|
class: "mr-1 mb-1 bg-grey-lighten-4 text-grey-darken-3",
|
|
4278
|
-
onClick: (
|
|
4278
|
+
onClick: (E) => v(Y)
|
|
4279
4279
|
}, {
|
|
4280
4280
|
default: B(() => [
|
|
4281
4281
|
De(fe(Y.customName), 1)
|
|
@@ -4283,7 +4283,7 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4283
4283
|
_: 2
|
|
4284
4284
|
}, 1032, ["onClick"])
|
|
4285
4285
|
]))), 128)),
|
|
4286
|
-
|
|
4286
|
+
k.value.hidden.length > 0 ? (P(), X(Ka, {
|
|
4287
4287
|
key: 0,
|
|
4288
4288
|
location: "bottom"
|
|
4289
4289
|
}, {
|
|
@@ -4298,9 +4298,9 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4298
4298
|
default: B(() => [
|
|
4299
4299
|
O(zo, { density: "compact" }, {
|
|
4300
4300
|
default: B(() => [
|
|
4301
|
-
(P(!0), de(qe, null, Bt(
|
|
4301
|
+
(P(!0), de(qe, null, Bt(k.value.hidden, (Y) => (P(), X(Rt, {
|
|
4302
4302
|
key: Y.id,
|
|
4303
|
-
onClick: (
|
|
4303
|
+
onClick: (E) => v(Y)
|
|
4304
4304
|
}, {
|
|
4305
4305
|
default: B(() => [
|
|
4306
4306
|
O(Qr, null, {
|
|
@@ -4491,18 +4491,18 @@ function ft() {
|
|
|
4491
4491
|
}
|
|
4492
4492
|
function Le(e, n, t, a, r) {
|
|
4493
4493
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
4494
|
-
var o, s, l, i, u,
|
|
4495
|
-
if (e !== window && e.parentNode && e !== ft() ? (o = e.getBoundingClientRect(), s = o.top, l = o.left, i = o.bottom, u = o.right,
|
|
4494
|
+
var o, s, l, i, u, m, d;
|
|
4495
|
+
if (e !== window && e.parentNode && e !== ft() ? (o = e.getBoundingClientRect(), s = o.top, l = o.left, i = o.bottom, u = o.right, m = o.height, d = o.width) : (s = 0, l = 0, i = window.innerHeight, u = window.innerWidth, m = window.innerHeight, d = window.innerWidth), (n || t) && e !== window && (r = r || e.parentNode, !wt))
|
|
4496
4496
|
do
|
|
4497
4497
|
if (r && r.getBoundingClientRect && (ne(r, "transform") !== "none" || t && ne(r, "position") !== "static")) {
|
|
4498
|
-
var
|
|
4499
|
-
s -=
|
|
4498
|
+
var g = r.getBoundingClientRect();
|
|
4499
|
+
s -= g.top + parseInt(ne(r, "border-top-width")), l -= g.left + parseInt(ne(r, "border-left-width")), i = s + o.height, u = l + o.width;
|
|
4500
4500
|
break;
|
|
4501
4501
|
}
|
|
4502
4502
|
while (r = r.parentNode);
|
|
4503
4503
|
if (a && e !== window) {
|
|
4504
|
-
var p = zt(r || e),
|
|
4505
|
-
p && (s /=
|
|
4504
|
+
var p = zt(r || e), T = p && p.a, b = p && p.d;
|
|
4505
|
+
p && (s /= b, l /= T, d /= T, m /= b, i = s + m, u = l + d);
|
|
4506
4506
|
}
|
|
4507
4507
|
return {
|
|
4508
4508
|
top: s,
|
|
@@ -4510,7 +4510,7 @@ function Le(e, n, t, a, r) {
|
|
|
4510
4510
|
bottom: i,
|
|
4511
4511
|
right: u,
|
|
4512
4512
|
width: d,
|
|
4513
|
-
height:
|
|
4513
|
+
height: m
|
|
4514
4514
|
};
|
|
4515
4515
|
}
|
|
4516
4516
|
}
|
|
@@ -4658,9 +4658,9 @@ function lu() {
|
|
|
4658
4658
|
}
|
|
4659
4659
|
var o = !1, s = 0;
|
|
4660
4660
|
e.forEach(function(l) {
|
|
4661
|
-
var i = 0, u = l.target,
|
|
4662
|
-
|
|
4663
|
-
(
|
|
4661
|
+
var i = 0, u = l.target, m = u.fromRect, d = Le(u), g = u.prevFromRect, p = u.prevToRect, T = l.rect, b = zt(u, !0);
|
|
4662
|
+
b && (d.top -= b.f, d.left -= b.e), u.toRect = d, u.thisAnimationDuration && Da(g, d) && !Da(m, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
4663
|
+
(T.top - d.top) / (T.left - d.left) === (m.top - d.top) / (m.left - d.left) && (i = iu(T, g, p, r.options)), Da(d, m) || (u.prevFromRect = m, u.prevToRect = d, i || (i = r.options.animation), r.animate(u, T, d, i)), i && (o = !0, s = Math.max(s, i), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
4664
4664
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
4665
4665
|
}, i), u.thisAnimationDuration = i);
|
|
4666
4666
|
}), clearTimeout(n), o ? n = setTimeout(function() {
|
|
@@ -4670,8 +4670,8 @@ function lu() {
|
|
|
4670
4670
|
animate: function(a, r, o, s) {
|
|
4671
4671
|
if (s) {
|
|
4672
4672
|
ne(a, "transition", ""), ne(a, "transform", "");
|
|
4673
|
-
var l = zt(this.el), i = l && l.a, u = l && l.d,
|
|
4674
|
-
a.animatingX = !!
|
|
4673
|
+
var l = zt(this.el), i = l && l.a, u = l && l.d, m = (r.left - o.left) / (i || 1), d = (r.top - o.top) / (u || 1);
|
|
4674
|
+
a.animatingX = !!m, a.animatingY = !!d, ne(a, "transform", "translate3d(" + m + "px," + d + "px,0)"), this.forRepaintDummy = su(a), ne(a, "transition", "transform " + s + "ms" + (this.options.easing ? " " + this.options.easing : "")), ne(a, "transform", "translate3d(0,0,0)"), typeof a.animated == "number" && clearTimeout(a.animated), a.animated = setTimeout(function() {
|
|
4675
4675
|
ne(a, "transition", ""), ne(a, "transform", ""), a.animated = !1, a.animatingX = !1, a.animatingY = !1;
|
|
4676
4676
|
}, s);
|
|
4677
4677
|
}
|
|
@@ -4737,17 +4737,17 @@ var Ut = [], ka = {
|
|
|
4737
4737
|
}
|
|
4738
4738
|
};
|
|
4739
4739
|
function uu(e) {
|
|
4740
|
-
var n = e.sortable, t = e.rootEl, a = e.name, r = e.targetEl, o = e.cloneEl, s = e.toEl, l = e.fromEl, i = e.oldIndex, u = e.newIndex,
|
|
4740
|
+
var n = e.sortable, t = e.rootEl, a = e.name, r = e.targetEl, o = e.cloneEl, s = e.toEl, l = e.fromEl, i = e.oldIndex, u = e.newIndex, m = e.oldDraggableIndex, d = e.newDraggableIndex, g = e.originalEvent, p = e.putSortable, T = e.extraEventProperties;
|
|
4741
4741
|
if (n = n || t && t[We], !!n) {
|
|
4742
|
-
var
|
|
4743
|
-
window.CustomEvent && !wt && !Fn ?
|
|
4742
|
+
var b, c = n.options, f = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
4743
|
+
window.CustomEvent && !wt && !Fn ? b = new CustomEvent(a, {
|
|
4744
4744
|
bubbles: !0,
|
|
4745
4745
|
cancelable: !0
|
|
4746
|
-
}) : (
|
|
4747
|
-
var
|
|
4748
|
-
for (var
|
|
4749
|
-
|
|
4750
|
-
t && t.dispatchEvent(
|
|
4746
|
+
}) : (b = document.createEvent("Event"), b.initEvent(a, !0, !0)), b.to = s || t, b.from = l || t, b.item = r || t, b.clone = o, b.oldIndex = i, b.newIndex = u, b.oldDraggableIndex = m, b.newDraggableIndex = d, b.originalEvent = g, b.pullMode = p ? p.lastPutMode : void 0;
|
|
4747
|
+
var v = vt(vt({}, T), On.getEventProperties(a, n));
|
|
4748
|
+
for (var w in v)
|
|
4749
|
+
b[w] = v[w];
|
|
4750
|
+
t && t.dispatchEvent(b), c[f] && c[f].call(n, b);
|
|
4751
4751
|
}
|
|
4752
4752
|
}
|
|
4753
4753
|
var cu = ["evt"], ze = function(n, t) {
|
|
@@ -4806,7 +4806,7 @@ var V, Fe, oe, _e, It, jn, Me, kt, qt, Xe, bn, Dt, Pn, Ve, Ht = !1, Qn = !1, ea
|
|
|
4806
4806
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
4807
4807
|
}
|
|
4808
4808
|
})(), xr = function(n, t) {
|
|
4809
|
-
var a = ne(n), r = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), o = Xt(n, 0, t), s = Xt(n, 1, t), l = o && ne(o), i = s && ne(s), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + Le(o).width,
|
|
4809
|
+
var a = ne(n), r = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), o = Xt(n, 0, t), s = Xt(n, 1, t), l = o && ne(o), i = s && ne(s), u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + Le(o).width, m = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + Le(s).width;
|
|
4810
4810
|
if (a.display === "flex")
|
|
4811
4811
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
4812
4812
|
if (a.display === "grid")
|
|
@@ -4815,7 +4815,7 @@ var V, Fe, oe, _e, It, jn, Me, kt, qt, Xe, bn, Dt, Pn, Ve, Ht = !1, Qn = !1, ea
|
|
|
4815
4815
|
var d = l.float === "left" ? "left" : "right";
|
|
4816
4816
|
return s && (i.clear === "both" || i.clear === d) ? "vertical" : "horizontal";
|
|
4817
4817
|
}
|
|
4818
|
-
return o && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && a[Uo] === "none" || s && a[Uo] === "none" && u +
|
|
4818
|
+
return o && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || u >= r && a[Uo] === "none" || s && a[Uo] === "none" && u + m > r) ? "vertical" : "horizontal";
|
|
4819
4819
|
}, fu = function(n, t, a) {
|
|
4820
4820
|
var r = a ? n.left : n.top, o = a ? n.right : n.bottom, s = a ? n.width : n.height, l = a ? t.left : t.top, i = a ? t.right : t.bottom, u = a ? t.width : t.height;
|
|
4821
4821
|
return r === l || o === i || r + s / 2 === l + u / 2;
|
|
@@ -4831,7 +4831,7 @@ var V, Fe, oe, _e, It, jn, Me, kt, qt, Xe, bn, Dt, Pn, Ve, Ht = !1, Qn = !1, ea
|
|
|
4831
4831
|
}), a;
|
|
4832
4832
|
}, _r = function(n) {
|
|
4833
4833
|
function t(o, s) {
|
|
4834
|
-
return function(l, i, u,
|
|
4834
|
+
return function(l, i, u, m) {
|
|
4835
4835
|
var d = l.options.group.name && i.options.group.name && l.options.group.name === i.options.group.name;
|
|
4836
4836
|
if (o == null && (s || d))
|
|
4837
4837
|
return !0;
|
|
@@ -4840,9 +4840,9 @@ var V, Fe, oe, _e, It, jn, Me, kt, qt, Xe, bn, Dt, Pn, Ve, Ht = !1, Qn = !1, ea
|
|
|
4840
4840
|
if (s && o === "clone")
|
|
4841
4841
|
return o;
|
|
4842
4842
|
if (typeof o == "function")
|
|
4843
|
-
return t(o(l, i, u,
|
|
4844
|
-
var
|
|
4845
|
-
return o === !0 || typeof o == "string" && o ===
|
|
4843
|
+
return t(o(l, i, u, m), s)(l, i, u, m);
|
|
4844
|
+
var g = (s ? l : i).options.group.name;
|
|
4845
|
+
return o === !0 || typeof o == "string" && o === g || o.join && o.indexOf(g) > -1;
|
|
4846
4846
|
};
|
|
4847
4847
|
}
|
|
4848
4848
|
var a = {}, r = n.group;
|
|
@@ -4941,10 +4941,10 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
4941
4941
|
},
|
|
4942
4942
|
_onTapStart: function(n) {
|
|
4943
4943
|
if (n.cancelable) {
|
|
4944
|
-
var t = this, a = this.el, r = this.options, o = r.preventOnFilter, s = n.type, l = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, i = (l || n).target, u = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || i,
|
|
4944
|
+
var t = this, a = this.el, r = this.options, o = r.preventOnFilter, s = n.type, l = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, i = (l || n).target, u = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || i, m = r.filter;
|
|
4945
4945
|
if (wu(a), !V && !(/mousedown|pointerdown/.test(s) && n.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && hn && i && i.tagName.toUpperCase() === "SELECT") && (i = st(i, r.draggable, a, !1), !(i && i.animated) && jn !== i)) {
|
|
4946
|
-
if (qt = at(i), bn = at(i, r.draggable), typeof
|
|
4947
|
-
if (
|
|
4946
|
+
if (qt = at(i), bn = at(i, r.draggable), typeof m == "function") {
|
|
4947
|
+
if (m.call(this, n, i, this)) {
|
|
4948
4948
|
je({
|
|
4949
4949
|
sortable: t,
|
|
4950
4950
|
rootEl: u,
|
|
@@ -4957,7 +4957,7 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
4957
4957
|
}), o && n.preventDefault();
|
|
4958
4958
|
return;
|
|
4959
4959
|
}
|
|
4960
|
-
} else if (
|
|
4960
|
+
} else if (m && (m = m.split(",").some(function(d) {
|
|
4961
4961
|
if (d = st(u, d.trim(), a, !1), d)
|
|
4962
4962
|
return je({
|
|
4963
4963
|
sortable: t,
|
|
@@ -4969,7 +4969,7 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
4969
4969
|
}), ze("filter", t, {
|
|
4970
4970
|
evt: n
|
|
4971
4971
|
}), !0;
|
|
4972
|
-
}),
|
|
4972
|
+
}), m)) {
|
|
4973
4973
|
o && n.preventDefault();
|
|
4974
4974
|
return;
|
|
4975
4975
|
}
|
|
@@ -4997,8 +4997,8 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
4997
4997
|
name: "choose",
|
|
4998
4998
|
originalEvent: n
|
|
4999
4999
|
}), Ge(V, s.chosenClass, !0);
|
|
5000
|
-
}, s.ignore.split(",").forEach(function(
|
|
5001
|
-
wr(V,
|
|
5000
|
+
}, s.ignore.split(",").forEach(function(m) {
|
|
5001
|
+
wr(V, m.trim(), xa);
|
|
5002
5002
|
}), pe(l, "dragover", _t), pe(l, "mousemove", _t), pe(l, "touchmove", _t), s.supportPointer ? (pe(l, "pointerup", r._onDrop), !this.nativeDraggable && pe(l, "pointercancel", r._onDrop)) : (pe(l, "mouseup", r._onDrop), pe(l, "touchend", r._onDrop), pe(l, "touchcancel", r._onDrop)), Bo && this.nativeDraggable && (this.options.touchStartThreshold = 4, V.draggable = !0), ze("delayStart", this, {
|
|
5003
5003
|
evt: n
|
|
5004
5004
|
}), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Fn || wt))) {
|
|
@@ -5069,23 +5069,23 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
5069
5069
|
},
|
|
5070
5070
|
_onTouchMove: function(n) {
|
|
5071
5071
|
if (xt) {
|
|
5072
|
-
var t = this.options, a = t.fallbackTolerance, r = t.fallbackOffset, o = n.touches ? n.touches[0] : n, s = oe && zt(oe, !0), l = oe && s && s.a, i = oe && s && s.d, u = Nn && He && Lo(He),
|
|
5072
|
+
var t = this.options, a = t.fallbackTolerance, r = t.fallbackOffset, o = n.touches ? n.touches[0] : n, s = oe && zt(oe, !0), l = oe && s && s.a, i = oe && s && s.d, u = Nn && He && Lo(He), m = (o.clientX - xt.clientX + r.x) / (l || 1) + (u ? u[0] - Aa[0] : 0) / (l || 1), d = (o.clientY - xt.clientY + r.y) / (i || 1) + (u ? u[1] - Aa[1] : 0) / (i || 1);
|
|
5073
5073
|
if (!ae.active && !Ht) {
|
|
5074
5074
|
if (a && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < a)
|
|
5075
5075
|
return;
|
|
5076
5076
|
this._onDragStart(n, !0);
|
|
5077
5077
|
}
|
|
5078
5078
|
if (oe) {
|
|
5079
|
-
s ? (s.e +=
|
|
5079
|
+
s ? (s.e += m - (Ea || 0), s.f += d - (Ta || 0)) : s = {
|
|
5080
5080
|
a: 1,
|
|
5081
5081
|
b: 0,
|
|
5082
5082
|
c: 0,
|
|
5083
5083
|
d: 1,
|
|
5084
|
-
e:
|
|
5084
|
+
e: m,
|
|
5085
5085
|
f: d
|
|
5086
5086
|
};
|
|
5087
|
-
var
|
|
5088
|
-
ne(oe, "webkitTransform",
|
|
5087
|
+
var g = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
5088
|
+
ne(oe, "webkitTransform", g), ne(oe, "mozTransform", g), ne(oe, "msTransform", g), ne(oe, "transform", g), Ea = m, Ta = d, lt = o;
|
|
5089
5089
|
}
|
|
5090
5090
|
n.cancelable && n.preventDefault();
|
|
5091
5091
|
}
|
|
@@ -5118,39 +5118,39 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
5118
5118
|
},
|
|
5119
5119
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
5120
5120
|
_onDragOver: function(n) {
|
|
5121
|
-
var t = this.el, a = n.target, r, o, s, l = this.options, i = l.group, u = ae.active,
|
|
5121
|
+
var t = this.el, a = n.target, r, o, s, l = this.options, i = l.group, u = ae.active, m = Pn === i, d = l.sort, g = Ve || u, p, T = this, b = !1;
|
|
5122
5122
|
if (Na) return;
|
|
5123
|
-
function
|
|
5124
|
-
ze(x,
|
|
5123
|
+
function c(x, R) {
|
|
5124
|
+
ze(x, T, vt({
|
|
5125
5125
|
evt: n,
|
|
5126
|
-
isOwner:
|
|
5126
|
+
isOwner: m,
|
|
5127
5127
|
axis: p ? "vertical" : "horizontal",
|
|
5128
5128
|
revert: s,
|
|
5129
5129
|
dragRect: r,
|
|
5130
5130
|
targetRect: o,
|
|
5131
5131
|
canSort: d,
|
|
5132
|
-
fromSortable:
|
|
5132
|
+
fromSortable: g,
|
|
5133
5133
|
target: a,
|
|
5134
|
-
completed:
|
|
5134
|
+
completed: v,
|
|
5135
5135
|
onMove: function(Q, re) {
|
|
5136
5136
|
return Yn(_e, t, V, r, Q, Le(Q), n, re);
|
|
5137
5137
|
},
|
|
5138
|
-
changed:
|
|
5138
|
+
changed: w
|
|
5139
5139
|
}, R));
|
|
5140
5140
|
}
|
|
5141
|
-
function
|
|
5142
|
-
|
|
5141
|
+
function f() {
|
|
5142
|
+
c("dragOverAnimationCapture"), T.captureAnimationState(), T !== g && g.captureAnimationState();
|
|
5143
5143
|
}
|
|
5144
|
-
function
|
|
5145
|
-
return
|
|
5144
|
+
function v(x) {
|
|
5145
|
+
return c("dragOverCompleted", {
|
|
5146
5146
|
insertion: x
|
|
5147
|
-
}), x && (
|
|
5148
|
-
|
|
5149
|
-
}),
|
|
5147
|
+
}), x && (m ? u._hideClone() : u._showClone(T), T !== g && (Ge(V, Ve ? Ve.options.ghostClass : u.options.ghostClass, !1), Ge(V, l.ghostClass, !0)), Ve !== T && T !== ae.active ? Ve = T : T === ae.active && Ve && (Ve = null), g === T && (T._ignoreWhileAnimating = a), T.animateAll(function() {
|
|
5148
|
+
c("dragOverAnimationComplete"), T._ignoreWhileAnimating = null;
|
|
5149
|
+
}), T !== g && (g.animateAll(), g._ignoreWhileAnimating = null)), (a === V && !V.animated || a === t && !a.animated) && (Vt = null), !l.dragoverBubble && !n.rootEl && a !== document && (V.parentNode[We]._isOutsideThisEl(n.target), !x && _t(n)), !l.dragoverBubble && n.stopPropagation && n.stopPropagation(), b = !0;
|
|
5150
5150
|
}
|
|
5151
|
-
function
|
|
5151
|
+
function w() {
|
|
5152
5152
|
Xe = at(V), Dt = at(V, l.draggable), je({
|
|
5153
|
-
sortable:
|
|
5153
|
+
sortable: T,
|
|
5154
5154
|
name: "change",
|
|
5155
5155
|
toEl: t,
|
|
5156
5156
|
newIndex: Xe,
|
|
@@ -5158,47 +5158,47 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
5158
5158
|
originalEvent: n
|
|
5159
5159
|
});
|
|
5160
5160
|
}
|
|
5161
|
-
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = st(a, l.draggable, t, !0),
|
|
5162
|
-
if (V.contains(n.target) || a.animated && a.animatingX && a.animatingY ||
|
|
5163
|
-
return
|
|
5164
|
-
if (Qn = !1, u && !l.disabled && (
|
|
5165
|
-
if (p = this._getDirection(n, a) === "vertical", r = Le(V),
|
|
5161
|
+
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = st(a, l.draggable, t, !0), c("dragOver"), ae.eventCanceled) return b;
|
|
5162
|
+
if (V.contains(n.target) || a.animated && a.animatingX && a.animatingY || T._ignoreWhileAnimating === a)
|
|
5163
|
+
return v(!1);
|
|
5164
|
+
if (Qn = !1, u && !l.disabled && (m ? d || (s = Fe !== _e) : Ve === this || (this.lastPutMode = Pn.checkPull(this, u, V, n)) && i.checkPut(this, u, V, n))) {
|
|
5165
|
+
if (p = this._getDirection(n, a) === "vertical", r = Le(V), c("dragOverValid"), ae.eventCanceled) return b;
|
|
5166
5166
|
if (s)
|
|
5167
|
-
return Fe = _e,
|
|
5167
|
+
return Fe = _e, f(), this._hideClone(), c("revert"), ae.eventCanceled || (It ? _e.insertBefore(V, It) : _e.appendChild(V)), v(!0);
|
|
5168
5168
|
var F = io(t, l.draggable);
|
|
5169
5169
|
if (!F || bu(n, p, this) && !F.animated) {
|
|
5170
5170
|
if (F === V)
|
|
5171
|
-
return
|
|
5171
|
+
return v(!1);
|
|
5172
5172
|
if (F && t === n.target && (a = F), a && (o = Le(a)), Yn(_e, t, V, r, a, o, n, !!a) !== !1)
|
|
5173
|
-
return
|
|
5173
|
+
return f(), F && F.nextSibling ? t.insertBefore(V, F.nextSibling) : t.appendChild(V), Fe = t, w(), v(!0);
|
|
5174
5174
|
} else if (F && gu(n, p, this)) {
|
|
5175
|
-
var
|
|
5176
|
-
if (
|
|
5177
|
-
return
|
|
5178
|
-
if (a =
|
|
5179
|
-
return
|
|
5175
|
+
var k = Xt(t, 0, l, !0);
|
|
5176
|
+
if (k === V)
|
|
5177
|
+
return v(!1);
|
|
5178
|
+
if (a = k, o = Le(a), Yn(_e, t, V, r, a, o, n, !1) !== !1)
|
|
5179
|
+
return f(), t.insertBefore(V, k), Fe = t, w(), v(!0);
|
|
5180
5180
|
} else if (a.parentNode === t) {
|
|
5181
5181
|
o = Le(a);
|
|
5182
|
-
var
|
|
5183
|
-
Vt !== a && (I = o[$], Cn = !1, Ln = !
|
|
5182
|
+
var h = 0, I, Y = V.parentNode !== t, E = !fu(V.animated && V.toRect || r, a.animated && a.toRect || o, p), $ = p ? "top" : "left", N = Po(a, "top", "top") || Po(V, "top", "top"), M = N ? N.scrollTop : void 0;
|
|
5183
|
+
Vt !== a && (I = o[$], Cn = !1, Ln = !E && l.invertSwap || Y), h = yu(n, a, o, p, E ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, Ln, Vt === a);
|
|
5184
5184
|
var A;
|
|
5185
|
-
if (
|
|
5185
|
+
if (h !== 0) {
|
|
5186
5186
|
var _ = at(V);
|
|
5187
5187
|
do
|
|
5188
|
-
_ -=
|
|
5188
|
+
_ -= h, A = Fe.children[_];
|
|
5189
5189
|
while (A && (ne(A, "display") === "none" || A === oe));
|
|
5190
5190
|
}
|
|
5191
|
-
if (
|
|
5192
|
-
return
|
|
5193
|
-
Vt = a, yn =
|
|
5191
|
+
if (h === 0 || A === a)
|
|
5192
|
+
return v(!1);
|
|
5193
|
+
Vt = a, yn = h;
|
|
5194
5194
|
var S = a.nextElementSibling, y = !1;
|
|
5195
|
-
y =
|
|
5195
|
+
y = h === 1;
|
|
5196
5196
|
var C = Yn(_e, t, V, r, a, o, n, y);
|
|
5197
5197
|
if (C !== !1)
|
|
5198
|
-
return (C === 1 || C === -1) && (y = C === 1), Na = !0, setTimeout(hu, 30),
|
|
5198
|
+
return (C === 1 || C === -1) && (y = C === 1), Na = !0, setTimeout(hu, 30), f(), y && !S ? t.appendChild(V) : a.parentNode.insertBefore(V, y ? S : a), N && kr(N, 0, M - N.scrollTop), Fe = V.parentNode, I !== void 0 && !Ln && (qn = Math.abs(I - Le(a)[$])), w(), v(!0);
|
|
5199
5199
|
}
|
|
5200
5200
|
if (t.contains(V))
|
|
5201
|
-
return
|
|
5201
|
+
return v(!1);
|
|
5202
5202
|
}
|
|
5203
5203
|
return !1;
|
|
5204
5204
|
},
|
|
@@ -5368,11 +5368,11 @@ function pu(e) {
|
|
|
5368
5368
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
5369
5369
|
}
|
|
5370
5370
|
function Yn(e, n, t, a, r, o, s, l) {
|
|
5371
|
-
var i, u = e[We],
|
|
5371
|
+
var i, u = e[We], m = u.options.onMove, d;
|
|
5372
5372
|
return window.CustomEvent && !wt && !Fn ? i = new CustomEvent("move", {
|
|
5373
5373
|
bubbles: !0,
|
|
5374
5374
|
cancelable: !0
|
|
5375
|
-
}) : (i = document.createEvent("Event"), i.initEvent("move", !0, !0)), i.to = n, i.from = e, i.dragged = t, i.draggedRect = a, i.related = r || n, i.relatedRect = o || Le(n), i.willInsertAfter = l, i.originalEvent = s, e.dispatchEvent(i),
|
|
5375
|
+
}) : (i = document.createEvent("Event"), i.initEvent("move", !0, !0)), i.to = n, i.from = e, i.dragged = t, i.draggedRect = a, i.related = r || n, i.relatedRect = o || Le(n), i.willInsertAfter = l, i.originalEvent = s, e.dispatchEvent(i), m && (d = m.call(u, i, s)), d;
|
|
5376
5376
|
}
|
|
5377
5377
|
function xa(e) {
|
|
5378
5378
|
e.draggable = !1;
|
|
@@ -5389,17 +5389,17 @@ function bu(e, n, t) {
|
|
|
5389
5389
|
return n ? e.clientX > r.right + o || e.clientY > a.bottom && e.clientX > a.left : e.clientY > r.bottom + o || e.clientX > a.right && e.clientY > a.top;
|
|
5390
5390
|
}
|
|
5391
5391
|
function yu(e, n, t, a, r, o, s, l) {
|
|
5392
|
-
var i = a ? e.clientY : e.clientX, u = a ? t.height : t.width,
|
|
5392
|
+
var i = a ? e.clientY : e.clientX, u = a ? t.height : t.width, m = a ? t.top : t.left, d = a ? t.bottom : t.right, g = !1;
|
|
5393
5393
|
if (!s) {
|
|
5394
5394
|
if (l && qn < u * r) {
|
|
5395
|
-
if (!Cn && (yn === 1 ? i >
|
|
5396
|
-
|
|
5397
|
-
else if (yn === 1 ? i <
|
|
5395
|
+
if (!Cn && (yn === 1 ? i > m + u * o / 2 : i < d - u * o / 2) && (Cn = !0), Cn)
|
|
5396
|
+
g = !0;
|
|
5397
|
+
else if (yn === 1 ? i < m + qn : i > d - qn)
|
|
5398
5398
|
return -yn;
|
|
5399
|
-
} else if (i >
|
|
5399
|
+
} else if (i > m + u * (1 - r) / 2 && i < d - u * (1 - r) / 2)
|
|
5400
5400
|
return Cu(n);
|
|
5401
5401
|
}
|
|
5402
|
-
return
|
|
5402
|
+
return g = g || s, g && (i < m + u * o / 2 || i > d - u * o / 2) ? i > m + u / 2 ? 1 : -1 : 0;
|
|
5403
5403
|
}
|
|
5404
5404
|
function Cu(e) {
|
|
5405
5405
|
return at(V) < at(e) ? 1 : -1;
|
|
@@ -5524,24 +5524,24 @@ function Vo() {
|
|
|
5524
5524
|
}
|
|
5525
5525
|
var Ma = Dr(function(e, n, t, a) {
|
|
5526
5526
|
if (n.scroll) {
|
|
5527
|
-
var r = (e.touches ? e.touches[0] : e).clientX, o = (e.touches ? e.touches[0] : e).clientY, s = n.scrollSensitivity, l = n.scrollSpeed, i = ft(), u = !1,
|
|
5528
|
-
Ua !== t && (Ua = t, Wn(), mn = n.scroll,
|
|
5529
|
-
var d = 0,
|
|
5527
|
+
var r = (e.touches ? e.touches[0] : e).clientX, o = (e.touches ? e.touches[0] : e).clientY, s = n.scrollSensitivity, l = n.scrollSpeed, i = ft(), u = !1, m;
|
|
5528
|
+
Ua !== t && (Ua = t, Wn(), mn = n.scroll, m = n.scrollFn, mn === !0 && (mn = Et(t, !0)));
|
|
5529
|
+
var d = 0, g = mn;
|
|
5530
5530
|
do {
|
|
5531
|
-
var p =
|
|
5532
|
-
p === i ? (
|
|
5533
|
-
var M =
|
|
5531
|
+
var p = g, T = Le(p), b = T.top, c = T.bottom, f = T.left, v = T.right, w = T.width, F = T.height, k = void 0, h = void 0, I = p.scrollWidth, Y = p.scrollHeight, E = ne(p), $ = p.scrollLeft, N = p.scrollTop;
|
|
5532
|
+
p === i ? (k = w < I && (E.overflowX === "auto" || E.overflowX === "scroll" || E.overflowX === "visible"), h = F < Y && (E.overflowY === "auto" || E.overflowY === "scroll" || E.overflowY === "visible")) : (k = w < I && (E.overflowX === "auto" || E.overflowX === "scroll"), h = F < Y && (E.overflowY === "auto" || E.overflowY === "scroll"));
|
|
5533
|
+
var M = k && (Math.abs(v - r) <= s && $ + w < I) - (Math.abs(f - r) <= s && !!$), A = h && (Math.abs(c - o) <= s && N + F < Y) - (Math.abs(b - o) <= s && !!N);
|
|
5534
5534
|
if (!Pe[d])
|
|
5535
5535
|
for (var _ = 0; _ <= d; _++)
|
|
5536
5536
|
Pe[_] || (Pe[_] = {});
|
|
5537
5537
|
(Pe[d].vx != M || Pe[d].vy != A || Pe[d].el !== p) && (Pe[d].el = p, Pe[d].vx = M, Pe[d].vy = A, clearInterval(Pe[d].pid), (M != 0 || A != 0) && (u = !0, Pe[d].pid = setInterval((function() {
|
|
5538
5538
|
a && this.layer === 0 && ae.active._onTouchMove(na);
|
|
5539
5539
|
var S = Pe[this.layer].vy ? Pe[this.layer].vy * l : 0, y = Pe[this.layer].vx ? Pe[this.layer].vx * l : 0;
|
|
5540
|
-
typeof
|
|
5540
|
+
typeof m == "function" && m.call(ae.dragged.parentNode[We], y, S, e, na, Pe[this.layer].el) !== "continue" || kr(Pe[this.layer].el, y, S);
|
|
5541
5541
|
}).bind({
|
|
5542
5542
|
layer: d
|
|
5543
5543
|
}), 24))), d++;
|
|
5544
|
-
} while (n.bubbleScroll &&
|
|
5544
|
+
} while (n.bubbleScroll && g !== i && (g = Et(g, !1)));
|
|
5545
5545
|
Va = u;
|
|
5546
5546
|
}
|
|
5547
5547
|
}, 30), $r = function(n) {
|
|
@@ -5549,7 +5549,7 @@ var Ma = Dr(function(e, n, t, a) {
|
|
|
5549
5549
|
if (t) {
|
|
5550
5550
|
var u = a || o;
|
|
5551
5551
|
l();
|
|
5552
|
-
var
|
|
5552
|
+
var m = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, d = document.elementFromPoint(m.clientX, m.clientY);
|
|
5553
5553
|
i(), u && !u.el.contains(d) && (s("spill"), this.onSpill({
|
|
5554
5554
|
dragEl: r,
|
|
5555
5555
|
putSortable: a
|
|
@@ -5591,38 +5591,38 @@ ae.mount(new Du());
|
|
|
5591
5591
|
ae.mount(co, uo);
|
|
5592
5592
|
function ku(e, n, t = {}) {
|
|
5593
5593
|
let a;
|
|
5594
|
-
const { document: r = Kr, watchElement: o = !1, ...s } = t, l = { onUpdate: (
|
|
5595
|
-
Au(n,
|
|
5594
|
+
const { document: r = Kr, watchElement: o = !1, ...s } = t, l = { onUpdate: (b) => {
|
|
5595
|
+
Au(n, b.oldIndex, b.newIndex, b);
|
|
5596
5596
|
} }, i = U(() => typeof e == "string" ? r?.querySelector(e) : Gr(e)), u = () => {
|
|
5597
5597
|
a?.destroy(), a = void 0;
|
|
5598
|
-
},
|
|
5599
|
-
!
|
|
5598
|
+
}, m = (b) => {
|
|
5599
|
+
!b || a !== void 0 || (a = new ae(b, {
|
|
5600
5600
|
...l,
|
|
5601
5601
|
...s
|
|
5602
5602
|
}));
|
|
5603
5603
|
}, d = () => {
|
|
5604
|
-
const
|
|
5605
|
-
|
|
5606
|
-
},
|
|
5607
|
-
if (
|
|
5608
|
-
else return a?.option(
|
|
5604
|
+
const b = i.value;
|
|
5605
|
+
b && m(b);
|
|
5606
|
+
}, g = (b, c) => {
|
|
5607
|
+
if (c !== void 0) a?.option(b, c);
|
|
5608
|
+
else return a?.option(b);
|
|
5609
5609
|
};
|
|
5610
5610
|
let p;
|
|
5611
|
-
o && typeof e != "string" ? p = Ae(i, (
|
|
5612
|
-
u(),
|
|
5611
|
+
o && typeof e != "string" ? p = Ae(i, (b) => {
|
|
5612
|
+
u(), b && m(b);
|
|
5613
5613
|
}, {
|
|
5614
5614
|
immediate: !0,
|
|
5615
5615
|
flush: "post"
|
|
5616
5616
|
}) : Xr(d);
|
|
5617
|
-
const
|
|
5617
|
+
const T = () => {
|
|
5618
5618
|
u();
|
|
5619
5619
|
};
|
|
5620
5620
|
return Zr(() => {
|
|
5621
5621
|
p?.(), u();
|
|
5622
5622
|
}), {
|
|
5623
|
-
stop:
|
|
5623
|
+
stop: T,
|
|
5624
5624
|
start: d,
|
|
5625
|
-
option:
|
|
5625
|
+
option: g
|
|
5626
5626
|
};
|
|
5627
5627
|
}
|
|
5628
5628
|
function Eu(e, n, t) {
|
|
@@ -5699,7 +5699,7 @@ function Ou(e, n, t) {
|
|
|
5699
5699
|
}
|
|
5700
5700
|
const Bu = () => _u(), Hd = () => Ou(), sn = "a-sortable-widget__handle", Ru = "a-sortable-widget__ghost", Pu = "a-sortable-widget__drag", Lu = "a-sortable-widget__chosen", jo = "a-sortable-widget__group";
|
|
5701
5701
|
function Nu(e, n, t, a) {
|
|
5702
|
-
const r = L(!1), o = L(null), s = L(null), l = L(Bu()), i = L(null), u = L(0),
|
|
5702
|
+
const r = L(!1), o = L(null), s = L(null), l = L(Bu()), i = L(null), u = L(0), m = L(t.dirty);
|
|
5703
5703
|
function d(A, _) {
|
|
5704
5704
|
return {
|
|
5705
5705
|
key: A[t.keyField],
|
|
@@ -5707,71 +5707,71 @@ function Nu(e, n, t, a) {
|
|
|
5707
5707
|
raw: A
|
|
5708
5708
|
};
|
|
5709
5709
|
}
|
|
5710
|
-
const
|
|
5711
|
-
u.value++,
|
|
5710
|
+
const g = U(() => e.value.map((A, _) => d(A, _))), p = (A = void 0) => {
|
|
5711
|
+
u.value++, D(A) || a("update:modelValue", A), Ye(() => {
|
|
5712
5712
|
n();
|
|
5713
5713
|
});
|
|
5714
|
-
},
|
|
5715
|
-
|
|
5716
|
-
},
|
|
5717
|
-
|
|
5718
|
-
},
|
|
5714
|
+
}, T = (A) => {
|
|
5715
|
+
m.value.add(A);
|
|
5716
|
+
}, b = (A) => {
|
|
5717
|
+
m.value.delete(A);
|
|
5718
|
+
}, c = (A, _, S, y = []) => {
|
|
5719
5719
|
const C = _ > S ? S : _;
|
|
5720
5720
|
let x = t.positionMultiplier * C + t.positionMultiplier * 1;
|
|
5721
5721
|
for (let R = C; R < A.length; R++)
|
|
5722
|
-
Ns(A[R], t.positionField, x),
|
|
5722
|
+
Ns(A[R], t.positionField, x), T(A[R][t.keyField]), x = x + t.positionMultiplier * 1, y.push({
|
|
5723
5723
|
id: A[R].id,
|
|
5724
5724
|
position: A[R].position
|
|
5725
5725
|
});
|
|
5726
5726
|
return y;
|
|
5727
|
-
},
|
|
5727
|
+
}, f = (A, _) => {
|
|
5728
5728
|
const S = $e(e.value);
|
|
5729
5729
|
if (_ >= 0 && _ < S.length) {
|
|
5730
5730
|
let y = [];
|
|
5731
5731
|
const C = S.splice(A, 1)[0];
|
|
5732
|
-
return S.splice(_, 0, C),
|
|
5732
|
+
return S.splice(_, 0, C), D(t.updatePosition) || (y = c(S, A, _)), p(), a("update:modelValue", S), y;
|
|
5733
5733
|
}
|
|
5734
5734
|
return [];
|
|
5735
|
-
},
|
|
5735
|
+
}, v = (A, _) => {
|
|
5736
5736
|
const S = _.findIndex((y) => y[t.keyField] === A);
|
|
5737
5737
|
return S === -1 ? null : S;
|
|
5738
|
-
}, D = (A, _, S, y = null) => {
|
|
5739
|
-
A.data = $e(_), G(S) || (A.data.position = S), G(y) || E(_.id);
|
|
5740
|
-
}, F = (A, _, S = null, y = null) => {
|
|
5741
|
-
const C = $e(e.value), x = h(A, C);
|
|
5742
|
-
!G(x) && C[x] && (D(C[x], _, S, y), p(C));
|
|
5743
5738
|
}, w = (A, _, S, y = null) => {
|
|
5739
|
+
A.data = $e(_), G(S) || (A.data.position = S), G(y) || T(_.id);
|
|
5740
|
+
}, F = (A, _, S = null, y = null) => {
|
|
5741
|
+
const C = $e(e.value), x = v(A, C);
|
|
5742
|
+
!G(x) && C[x] && (w(C[x], _, S, y), p(C));
|
|
5743
|
+
}, k = (A, _, S, y = null) => {
|
|
5744
5744
|
const C = $e(e.value);
|
|
5745
|
-
C[A] && (
|
|
5746
|
-
},
|
|
5745
|
+
C[A] && (w(C[A], _, S, y), p(C));
|
|
5746
|
+
}, h = (A, _) => {
|
|
5747
5747
|
const S = $e(e.value);
|
|
5748
5748
|
if (G(A) || A < 0)
|
|
5749
5749
|
return S.push($e(_)), p(S), [];
|
|
5750
5750
|
const y = [];
|
|
5751
|
-
return S[A] ? (S.splice(A + 1, 0, _),
|
|
5751
|
+
return S[A] ? (S.splice(A + 1, 0, _), c(S, A + 1, A + 1, y), p(S), y) : [];
|
|
5752
5752
|
}, I = (A, _) => {
|
|
5753
5753
|
const S = $e(e.value);
|
|
5754
5754
|
if (G(A))
|
|
5755
5755
|
return S.push($e(_)), p(S), [];
|
|
5756
|
-
const y =
|
|
5757
|
-
return !G(y) && S[y] ? (S.splice(y + 1, 0, _),
|
|
5756
|
+
const y = v(A, S), C = [];
|
|
5757
|
+
return !G(y) && S[y] ? (S.splice(y + 1, 0, _), c(S, y + 1, y + 1, C), p(S), C) : [];
|
|
5758
5758
|
}, Y = (A) => {
|
|
5759
|
-
const _ = $e(e.value), S =
|
|
5760
|
-
return !G(S) && _[S] ? (_.splice(S, 1),
|
|
5761
|
-
},
|
|
5759
|
+
const _ = $e(e.value), S = v(A, _), y = [];
|
|
5760
|
+
return !G(S) && _[S] ? (_.splice(S, 1), c(_, S, S, y), b(A), p(_), y) : [];
|
|
5761
|
+
}, E = (A) => {
|
|
5762
5762
|
const _ = $e(e.value), S = [];
|
|
5763
5763
|
if (_[A]) {
|
|
5764
5764
|
const y = _[A][t.keyField];
|
|
5765
|
-
return _.splice(A, 1),
|
|
5765
|
+
return _.splice(A, 1), c(_, A, A, S), b(y), p(_), S;
|
|
5766
5766
|
}
|
|
5767
5767
|
return [];
|
|
5768
5768
|
}, $ = () => {
|
|
5769
5769
|
s.value && i.value && (i.value.stop(), i.value = null);
|
|
5770
5770
|
};
|
|
5771
5771
|
return {
|
|
5772
|
-
items:
|
|
5772
|
+
items: g,
|
|
5773
5773
|
forceRerender: u,
|
|
5774
|
-
dirtyLocal:
|
|
5774
|
+
dirtyLocal: m,
|
|
5775
5775
|
widgetEl: s,
|
|
5776
5776
|
randomUuid: l,
|
|
5777
5777
|
removeDialog: r,
|
|
@@ -5784,13 +5784,13 @@ function Nu(e, n, t, a) {
|
|
|
5784
5784
|
G(o.value) || (a("onDelete", o.value), r.value = !1);
|
|
5785
5785
|
},
|
|
5786
5786
|
destroy: $,
|
|
5787
|
-
moveArrayElement:
|
|
5787
|
+
moveArrayElement: f,
|
|
5788
5788
|
addAfterId: I,
|
|
5789
|
-
addAfterIndex:
|
|
5789
|
+
addAfterIndex: h,
|
|
5790
5790
|
removeById: Y,
|
|
5791
|
-
removeByIndex:
|
|
5791
|
+
removeByIndex: E,
|
|
5792
5792
|
updateData: F,
|
|
5793
|
-
updateDataAtIndex:
|
|
5793
|
+
updateDataAtIndex: k
|
|
5794
5794
|
};
|
|
5795
5795
|
}
|
|
5796
5796
|
const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortable-widget__before" }, ju = { class: "a-sortable-widget__content" }, qu = { class: "a-sortable-widget__after" }, zu = /* @__PURE__ */ Se({
|
|
@@ -5821,20 +5821,20 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5821
5821
|
const a = e, r = t, o = Vr(() => a.modelValue), { t: s } = Re(), l = (y) => {
|
|
5822
5822
|
r("onAddAfter", y);
|
|
5823
5823
|
}, i = (y) => {
|
|
5824
|
-
if (
|
|
5825
|
-
|
|
5824
|
+
if (v.value = y, a.disableDeleteDialog) {
|
|
5825
|
+
h();
|
|
5826
5826
|
return;
|
|
5827
5827
|
}
|
|
5828
|
-
|
|
5828
|
+
w.value = !0;
|
|
5829
5829
|
}, u = (y) => {
|
|
5830
5830
|
r("onEdit", y);
|
|
5831
|
-
},
|
|
5831
|
+
}, m = () => {
|
|
5832
5832
|
if (a.modelValue.length > 0) {
|
|
5833
5833
|
r("onAddLast", $e(a.modelValue[a.modelValue.length - 1]));
|
|
5834
5834
|
return;
|
|
5835
5835
|
}
|
|
5836
5836
|
r("onAddLast", null);
|
|
5837
|
-
}, d = U(() =>
|
|
5837
|
+
}, d = U(() => D(a.widgetIdentifierId) ? Yu + E.value : a.widgetIdentifierId), g = U(() => a.rootClassName + " " + (a.chips ? a.rootClassName + "--chips" : "")), p = () => {
|
|
5838
5838
|
if (a.disableDraggable || !Y.value) return;
|
|
5839
5839
|
const y = Y.value.querySelector("." + jo);
|
|
5840
5840
|
y && (I.value = ku(y, [], {
|
|
@@ -5843,9 +5843,9 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5843
5843
|
dragClass: Pu,
|
|
5844
5844
|
chosenClass: Lu,
|
|
5845
5845
|
onEnd: async (C) => {
|
|
5846
|
-
if (a.disableDefaultSort ||
|
|
5846
|
+
if (a.disableDefaultSort || D(C.oldIndex) || D(C.newIndex))
|
|
5847
5847
|
return;
|
|
5848
|
-
const x =
|
|
5848
|
+
const x = f(C.oldIndex, C.newIndex);
|
|
5849
5849
|
r("onEnd", x);
|
|
5850
5850
|
},
|
|
5851
5851
|
onStart() {
|
|
@@ -5853,18 +5853,18 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5853
5853
|
}
|
|
5854
5854
|
}));
|
|
5855
5855
|
}, {
|
|
5856
|
-
items:
|
|
5857
|
-
forceRerender:
|
|
5858
|
-
dirtyLocal:
|
|
5859
|
-
moveArrayElement:
|
|
5860
|
-
itemToRemove:
|
|
5861
|
-
removeDialog:
|
|
5856
|
+
items: T,
|
|
5857
|
+
forceRerender: b,
|
|
5858
|
+
dirtyLocal: c,
|
|
5859
|
+
moveArrayElement: f,
|
|
5860
|
+
itemToRemove: v,
|
|
5861
|
+
removeDialog: w,
|
|
5862
5862
|
destroy: F,
|
|
5863
|
-
refresh:
|
|
5864
|
-
onRemoveDialogConfirm:
|
|
5863
|
+
refresh: k,
|
|
5864
|
+
onRemoveDialogConfirm: h,
|
|
5865
5865
|
sortableInstance: I,
|
|
5866
5866
|
widgetEl: Y,
|
|
5867
|
-
randomUuid:
|
|
5867
|
+
randomUuid: E,
|
|
5868
5868
|
addAfterId: $,
|
|
5869
5869
|
removeById: N,
|
|
5870
5870
|
updateData: M,
|
|
@@ -5884,10 +5884,10 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5884
5884
|
), Ae(
|
|
5885
5885
|
() => a.dirty,
|
|
5886
5886
|
(y) => {
|
|
5887
|
-
|
|
5887
|
+
c.value = y;
|
|
5888
5888
|
}
|
|
5889
5889
|
), n({
|
|
5890
|
-
refresh:
|
|
5890
|
+
refresh: k,
|
|
5891
5891
|
addAfterId: $,
|
|
5892
5892
|
addAfterIndex: A,
|
|
5893
5893
|
removeById: N,
|
|
@@ -5899,13 +5899,13 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5899
5899
|
return P(), de("div", null, [
|
|
5900
5900
|
Ee("div", {
|
|
5901
5901
|
id: d.value,
|
|
5902
|
-
class: Ze(
|
|
5902
|
+
class: Ze(g.value)
|
|
5903
5903
|
}, [
|
|
5904
5904
|
(P(), de("div", {
|
|
5905
|
-
key: H(
|
|
5905
|
+
key: H(b),
|
|
5906
5906
|
class: Ze(H(jo))
|
|
5907
5907
|
}, [
|
|
5908
|
-
(P(!0), de(qe, null, Bt(H(
|
|
5908
|
+
(P(!0), de(qe, null, Bt(H(T), (j, Q) => (P(), de(qe, {
|
|
5909
5909
|
key: j.key
|
|
5910
5910
|
}, [
|
|
5911
5911
|
e.chips ? (P(), X(Kt, {
|
|
@@ -5952,7 +5952,7 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5952
5952
|
]),
|
|
5953
5953
|
Ee("div", {
|
|
5954
5954
|
class: Ze(["a-sortable-widget__item", {
|
|
5955
|
-
"a-sortable-widget__item--last": Q + 1 === H(
|
|
5955
|
+
"a-sortable-widget__item--last": Q + 1 === H(T).length,
|
|
5956
5956
|
"a-sortable-widget__item--first": Q === 0
|
|
5957
5957
|
}])
|
|
5958
5958
|
}, [
|
|
@@ -6054,14 +6054,14 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
6054
6054
|
], 2))
|
|
6055
6055
|
], 10, Uu),
|
|
6056
6056
|
we(y.$slots, "add-last-activator", {
|
|
6057
|
-
props: { onClick: ye(() =>
|
|
6057
|
+
props: { onClick: ye(() => m(), ["stop"]) }
|
|
6058
6058
|
}, () => [
|
|
6059
6059
|
e.showAddLastButton ? (P(), X(Ne, {
|
|
6060
6060
|
key: 0,
|
|
6061
6061
|
size: "small",
|
|
6062
6062
|
"prepend-icon": "mdi-plus",
|
|
6063
6063
|
class: "ma-1",
|
|
6064
|
-
onClick: ye(
|
|
6064
|
+
onClick: ye(m, ["stop"])
|
|
6065
6065
|
}, {
|
|
6066
6066
|
default: B(() => [
|
|
6067
6067
|
De(fe(H(s)(e.addLastButtonT)), 1)
|
|
@@ -6070,15 +6070,15 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
6070
6070
|
})) : ce("", !0)
|
|
6071
6071
|
]),
|
|
6072
6072
|
O(Wa, {
|
|
6073
|
-
modelValue: H(
|
|
6074
|
-
"onUpdate:modelValue": C[2] || (C[2] = (j) => Ha(
|
|
6073
|
+
modelValue: H(w),
|
|
6074
|
+
"onUpdate:modelValue": C[2] || (C[2] = (j) => Ha(w) ? w.value = j : null),
|
|
6075
6075
|
width: 500
|
|
6076
6076
|
}, {
|
|
6077
6077
|
default: B(() => [
|
|
6078
|
-
H(
|
|
6078
|
+
H(w) ? (P(), X(la, { key: 0 }, {
|
|
6079
6079
|
default: B(() => [
|
|
6080
6080
|
O(Ja, {
|
|
6081
|
-
onOnCancel: C[0] || (C[0] = (j) =>
|
|
6081
|
+
onOnCancel: C[0] || (C[0] = (j) => w.value = !1)
|
|
6082
6082
|
}, {
|
|
6083
6083
|
default: B(() => [
|
|
6084
6084
|
De(fe(H(s)("common.system.modal.confirmDelete")), 1)
|
|
@@ -6089,7 +6089,7 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
6089
6089
|
default: B(() => [
|
|
6090
6090
|
O(sa),
|
|
6091
6091
|
O(x, {
|
|
6092
|
-
onClick: C[1] || (C[1] = ye((j) =>
|
|
6092
|
+
onClick: C[1] || (C[1] = ye((j) => w.value = !1, ["stop"]))
|
|
6093
6093
|
}, {
|
|
6094
6094
|
default: B(() => [
|
|
6095
6095
|
De(fe(H(s)("common.button.cancel")), 1)
|
|
@@ -6097,7 +6097,7 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
6097
6097
|
_: 1
|
|
6098
6098
|
}),
|
|
6099
6099
|
O(R, {
|
|
6100
|
-
onClick: ye(H(
|
|
6100
|
+
onClick: ye(H(h), ["stop"])
|
|
6101
6101
|
}, {
|
|
6102
6102
|
default: B(() => [
|
|
6103
6103
|
De(fe(H(s)("common.button.delete")), 1)
|
|
@@ -6162,22 +6162,22 @@ const Ku = {
|
|
|
6162
6162
|
emits: ["onClose"],
|
|
6163
6163
|
setup(e, { emit: n }) {
|
|
6164
6164
|
const t = e, a = n, r = J(Ke), o = J(tt), s = J(mr);
|
|
6165
|
-
if (
|
|
6165
|
+
if (D(s) || D(r) || D(o))
|
|
6166
6166
|
throw new Error("Incorrect provide/inject config.");
|
|
6167
|
-
const l = L("add"), i = L(""), u = L(!1),
|
|
6167
|
+
const l = L("add"), i = L(""), u = L(!1), m = L(!1), d = L(!1), g = L(!1), p = L(!1), T = L([]), b = L(null), { required: c, maxLength: f } = oo(), v = {
|
|
6168
6168
|
customName: {
|
|
6169
|
-
required:
|
|
6170
|
-
maxLength:
|
|
6169
|
+
required: c,
|
|
6170
|
+
maxLength: f(100)
|
|
6171
6171
|
}
|
|
6172
|
-
},
|
|
6172
|
+
}, w = Gn(v, { customName: i }, { $stopPropagation: !0 }), F = {
|
|
6173
6173
|
itemEdit: {
|
|
6174
|
-
required:
|
|
6175
|
-
maxLength:
|
|
6174
|
+
required: c,
|
|
6175
|
+
maxLength: f(100)
|
|
6176
6176
|
}
|
|
6177
|
-
},
|
|
6177
|
+
}, k = Gn(F, { itemEdit: b }, { $stopPropagation: !0 }), h = hr(), {
|
|
6178
6178
|
createUserAdminConfig: I,
|
|
6179
6179
|
useFetchUserAdminConfigList: Y,
|
|
6180
|
-
updateUserAdminConfigPositions:
|
|
6180
|
+
updateUserAdminConfigPositions: E,
|
|
6181
6181
|
deleteUserAdminConfig: $,
|
|
6182
6182
|
updateUserAdminConfig: N
|
|
6183
6183
|
} = (
|
|
@@ -6185,9 +6185,9 @@ const Ku = {
|
|
|
6185
6185
|
gr(t.client, t.system)
|
|
6186
6186
|
), { t: M } = Re(), { showErrorsDefault: A, showValidationError: _, showWarningT: S } = In(), { createDefaultUserAdminConfig: y } = Wu(), C = async () => {
|
|
6187
6187
|
d.value = !0;
|
|
6188
|
-
const K =
|
|
6188
|
+
const K = T.value.map((ge) => ge.id);
|
|
6189
6189
|
try {
|
|
6190
|
-
await
|
|
6190
|
+
await E(K), d.value = !1, await te(), a("onClose");
|
|
6191
6191
|
} catch (ge) {
|
|
6192
6192
|
A(ge), d.value = !1;
|
|
6193
6193
|
}
|
|
@@ -6197,10 +6197,10 @@ const Ku = {
|
|
|
6197
6197
|
q.user = t.user, q.configType = Zn.FilterBookmark, q.layoutType = Ft.Desktop, q.systemResource = R, q.customName = i.value, q.data = {
|
|
6198
6198
|
filter: x(o, s, !1),
|
|
6199
6199
|
datatableHiddenColumns: u.value && t.datatableHiddenColumns ? t.datatableHiddenColumns : void 0,
|
|
6200
|
-
sortBy:
|
|
6200
|
+
sortBy: m.value && s.value.sortBy ? s.value.sortBy : void 0
|
|
6201
6201
|
};
|
|
6202
6202
|
try {
|
|
6203
|
-
const K = await
|
|
6203
|
+
const K = await h.fetchBookmarksCount(
|
|
6204
6204
|
{
|
|
6205
6205
|
user: t.user,
|
|
6206
6206
|
layoutType: Ft.Desktop,
|
|
@@ -6214,8 +6214,8 @@ const Ku = {
|
|
|
6214
6214
|
}
|
|
6215
6215
|
q.position = K + 1;
|
|
6216
6216
|
const ge = await I(q);
|
|
6217
|
-
|
|
6218
|
-
|
|
6217
|
+
h.addOne(
|
|
6218
|
+
h.generateKey(Ft.Desktop, R),
|
|
6219
6219
|
ge
|
|
6220
6220
|
), a("onClose");
|
|
6221
6221
|
} catch (K) {
|
|
@@ -6233,41 +6233,41 @@ const Ku = {
|
|
|
6233
6233
|
}
|
|
6234
6234
|
}, Q = () => {
|
|
6235
6235
|
if (l.value === "add") {
|
|
6236
|
-
if (
|
|
6236
|
+
if (w.value.$touch(), w.value.$invalid) {
|
|
6237
6237
|
_();
|
|
6238
6238
|
return;
|
|
6239
6239
|
}
|
|
6240
6240
|
j();
|
|
6241
|
-
} else l.value === "manage" &&
|
|
6241
|
+
} else l.value === "manage" && T.value.length > 0 && C();
|
|
6242
6242
|
}, re = async (q) => {
|
|
6243
|
-
|
|
6243
|
+
g.value = !0;
|
|
6244
6244
|
try {
|
|
6245
6245
|
await $(q.raw.id), await te(), W();
|
|
6246
6246
|
} catch (K) {
|
|
6247
6247
|
A(K);
|
|
6248
6248
|
} finally {
|
|
6249
|
-
|
|
6249
|
+
g.value = !1;
|
|
6250
6250
|
}
|
|
6251
6251
|
}, ve = Ot("inputRef"), Te = async (q) => {
|
|
6252
|
-
|
|
6252
|
+
b.value = { id: q.raw.id, customName: q.raw.customName }, await Ye(), ve.value?.focus();
|
|
6253
6253
|
}, ke = async (q) => {
|
|
6254
|
-
if (G(
|
|
6255
|
-
|
|
6254
|
+
if (G(b.value)) return;
|
|
6255
|
+
g.value = !0;
|
|
6256
6256
|
const K = $e(q.raw);
|
|
6257
|
-
K.customName =
|
|
6257
|
+
K.customName = b.value.customName;
|
|
6258
6258
|
try {
|
|
6259
6259
|
W(), await N(K.id, K), await te();
|
|
6260
6260
|
} catch (ge) {
|
|
6261
6261
|
A(ge);
|
|
6262
6262
|
} finally {
|
|
6263
|
-
|
|
6263
|
+
g.value = !1;
|
|
6264
6264
|
}
|
|
6265
6265
|
}, W = () => {
|
|
6266
|
-
|
|
6266
|
+
b.value = null;
|
|
6267
6267
|
}, te = async () => {
|
|
6268
|
-
|
|
6268
|
+
g.value = !0;
|
|
6269
6269
|
try {
|
|
6270
|
-
|
|
6270
|
+
T.value = await h.getBookmarks(
|
|
6271
6271
|
{
|
|
6272
6272
|
user: t.user,
|
|
6273
6273
|
layoutType: Ft.Desktop,
|
|
@@ -6279,7 +6279,7 @@ const Ku = {
|
|
|
6279
6279
|
} catch (q) {
|
|
6280
6280
|
A(q);
|
|
6281
6281
|
} finally {
|
|
6282
|
-
|
|
6282
|
+
g.value = !1;
|
|
6283
6283
|
}
|
|
6284
6284
|
};
|
|
6285
6285
|
return Ae(l, () => {
|
|
@@ -6340,7 +6340,7 @@ const Ku = {
|
|
|
6340
6340
|
"onUpdate:modelValue": K[2] || (K[2] = (ee) => i.value = ee),
|
|
6341
6341
|
label: H(M)("common.filter.bookmark.name"),
|
|
6342
6342
|
required: "",
|
|
6343
|
-
v: H(
|
|
6343
|
+
v: H(w).customName
|
|
6344
6344
|
}, null, 8, ["modelValue", "label", "v"])
|
|
6345
6345
|
]),
|
|
6346
6346
|
_: 1
|
|
@@ -6358,20 +6358,20 @@ const Ku = {
|
|
|
6358
6358
|
O(Mt, null, {
|
|
6359
6359
|
default: B(() => [
|
|
6360
6360
|
O(_o, {
|
|
6361
|
-
modelValue:
|
|
6362
|
-
"onUpdate:modelValue": K[4] || (K[4] = (ee) =>
|
|
6361
|
+
modelValue: m.value,
|
|
6362
|
+
"onUpdate:modelValue": K[4] || (K[4] = (ee) => m.value = ee),
|
|
6363
6363
|
label: H(M)("common.filter.bookmark.storeTableOrder")
|
|
6364
6364
|
}, null, 8, ["modelValue", "label"])
|
|
6365
6365
|
]),
|
|
6366
6366
|
_: 1
|
|
6367
6367
|
})
|
|
6368
6368
|
])) : l.value === "manage" ? (P(), de("div", Gu, [
|
|
6369
|
-
|
|
6369
|
+
g.value ? (P(), de("div", Xu, [
|
|
6370
6370
|
O(Jo, { indeterminate: "" })
|
|
6371
6371
|
])) : (P(), X(zu, {
|
|
6372
6372
|
key: 1,
|
|
6373
|
-
modelValue:
|
|
6374
|
-
"onUpdate:modelValue": K[7] || (K[7] = (ee) =>
|
|
6373
|
+
modelValue: T.value,
|
|
6374
|
+
"onUpdate:modelValue": K[7] || (K[7] = (ee) => T.value = ee),
|
|
6375
6375
|
"show-edit-button": "",
|
|
6376
6376
|
"show-delete-button": "",
|
|
6377
6377
|
"permanent-buttons": "",
|
|
@@ -6379,22 +6379,22 @@ const Ku = {
|
|
|
6379
6379
|
onOnEdit: Te
|
|
6380
6380
|
}, Pt({
|
|
6381
6381
|
item: B(({ item: ee }) => [
|
|
6382
|
-
|
|
6382
|
+
b.value && b.value.id === ee.raw.id ? (P(), X(So, {
|
|
6383
6383
|
key: 0,
|
|
6384
6384
|
ref_key: "inputRef",
|
|
6385
6385
|
ref: ve,
|
|
6386
|
-
modelValue:
|
|
6387
|
-
"onUpdate:modelValue": K[5] || (K[5] = (se) =>
|
|
6386
|
+
modelValue: b.value.customName,
|
|
6387
|
+
"onUpdate:modelValue": K[5] || (K[5] = (se) => b.value.customName = se),
|
|
6388
6388
|
"hide-details": "auto",
|
|
6389
|
-
v: H(
|
|
6389
|
+
v: H(k)
|
|
6390
6390
|
}, null, 8, ["modelValue", "v"])) : (P(), de("div", Zu, fe(ee.raw.customName), 1))
|
|
6391
6391
|
]),
|
|
6392
6392
|
_: 2
|
|
6393
6393
|
}, [
|
|
6394
|
-
H(G)(
|
|
6394
|
+
H(G)(b.value) ? void 0 : {
|
|
6395
6395
|
name: "item-buttons",
|
|
6396
6396
|
fn: B(({ item: ee }) => [
|
|
6397
|
-
|
|
6397
|
+
b.value && b.value.id === ee.raw.id ? (P(), de("div", Ju, [
|
|
6398
6398
|
O(Ne, {
|
|
6399
6399
|
icon: "",
|
|
6400
6400
|
size: "x-small",
|
|
@@ -6551,40 +6551,40 @@ const Ku = {
|
|
|
6551
6551
|
setup(e, { expose: n, emit: t }) {
|
|
6552
6552
|
const a = e, r = t, o = Tt(e, "datatableHiddenColumns"), s = J(Ri, () => {
|
|
6553
6553
|
}), l = J(Ke), i = J(tt);
|
|
6554
|
-
if (
|
|
6554
|
+
if (D(l) || D(i))
|
|
6555
6555
|
throw new Error("Incorrect provide/inject config.");
|
|
6556
6556
|
const u = L({
|
|
6557
6557
|
system: l.general.system,
|
|
6558
6558
|
subject: l.general.subject
|
|
6559
6559
|
});
|
|
6560
6560
|
Je(a.store) ? a.store === !1 && (u.value.system = void 0, u.value.subject = void 0) : (u.value.system = a.store.system, u.value.subject = a.store.subject);
|
|
6561
|
-
const
|
|
6562
|
-
Kn(pt,
|
|
6561
|
+
const m = L(0);
|
|
6562
|
+
Kn(pt, m);
|
|
6563
6563
|
const d = L(/* @__PURE__ */ new Map());
|
|
6564
6564
|
Kn(ot, d);
|
|
6565
|
-
const
|
|
6566
|
-
|
|
6565
|
+
const g = () => {
|
|
6566
|
+
m.value++, Ye(() => {
|
|
6567
6567
|
r("submit"), s();
|
|
6568
6568
|
});
|
|
6569
|
-
}, { clearAll: p, clearAllFilterSelected:
|
|
6569
|
+
}, { clearAll: p, clearAllFilterSelected: T } = ct(), b = () => {
|
|
6570
6570
|
Ye(() => {
|
|
6571
|
-
|
|
6571
|
+
m.value++, r("bookmarkLoadAfter"), s();
|
|
6572
6572
|
});
|
|
6573
|
-
},
|
|
6574
|
-
p(i, l),
|
|
6575
|
-
|
|
6573
|
+
}, c = () => {
|
|
6574
|
+
p(i, l), T(i, l, d), Ye(() => {
|
|
6575
|
+
m.value++, r("reset"), s();
|
|
6576
6576
|
});
|
|
6577
|
-
},
|
|
6577
|
+
}, f = U(() => l.touched), v = U(() => Object.entries(l.fields).filter(([, w]) => !w.render.skip).map(([w]) => w));
|
|
6578
6578
|
return n({
|
|
6579
|
-
submit:
|
|
6580
|
-
reset:
|
|
6581
|
-
}), (
|
|
6579
|
+
submit: g,
|
|
6580
|
+
reset: c
|
|
6581
|
+
}), (w, F) => (P(), X(Go, {
|
|
6582
6582
|
name: e.formName,
|
|
6583
|
-
onSubmit: ye(
|
|
6583
|
+
onSubmit: ye(g, ["prevent"])
|
|
6584
6584
|
}, {
|
|
6585
6585
|
default: B(() => [
|
|
6586
6586
|
Ee("div", ec, [
|
|
6587
|
-
we(
|
|
6587
|
+
we(w.$slots, "bookmarks", {}, () => [
|
|
6588
6588
|
O($t, { density: "compact" }, {
|
|
6589
6589
|
default: B(() => [
|
|
6590
6590
|
e.store && e.userId && H(he)(e.client) ? (P(), X(gt, { key: 0 }, {
|
|
@@ -6593,12 +6593,12 @@ const Ku = {
|
|
|
6593
6593
|
u.value.system && u.value.subject && e.userId && H(he)(e.client) ? (P(), X(br, {
|
|
6594
6594
|
key: 0,
|
|
6595
6595
|
"datatable-hidden-columns": o.value,
|
|
6596
|
-
"onUpdate:datatableHiddenColumns": F[0] || (F[0] = (
|
|
6596
|
+
"onUpdate:datatableHiddenColumns": F[0] || (F[0] = (k) => o.value = k),
|
|
6597
6597
|
client: e.client,
|
|
6598
6598
|
system: u.value.system,
|
|
6599
6599
|
subject: u.value.subject,
|
|
6600
6600
|
"user-id": e.userId,
|
|
6601
|
-
onSubmit:
|
|
6601
|
+
onSubmit: b
|
|
6602
6602
|
}, null, 8, ["datatable-hidden-columns", "client", "system", "subject", "user-id"])) : ce("", !0)
|
|
6603
6603
|
])
|
|
6604
6604
|
]),
|
|
@@ -6608,22 +6608,22 @@ const Ku = {
|
|
|
6608
6608
|
_: 1
|
|
6609
6609
|
})
|
|
6610
6610
|
]),
|
|
6611
|
-
we(
|
|
6611
|
+
we(w.$slots, "detail", {}, () => [
|
|
6612
6612
|
O($t, null, {
|
|
6613
6613
|
default: B(() => [
|
|
6614
|
-
(P(!0), de(qe, null, Bt(
|
|
6615
|
-
key:
|
|
6616
|
-
cols: H(l).fields[
|
|
6617
|
-
sm: H(l).fields[
|
|
6618
|
-
md: H(l).fields[
|
|
6619
|
-
lg: H(l).fields[
|
|
6620
|
-
xl: H(l).fields[
|
|
6614
|
+
(P(!0), de(qe, null, Bt(v.value, (k) => (P(), X(gt, {
|
|
6615
|
+
key: k,
|
|
6616
|
+
cols: H(l).fields[k].render.xs || 12,
|
|
6617
|
+
sm: H(l).fields[k].render.sm || 12,
|
|
6618
|
+
md: H(l).fields[k].render.md || 12,
|
|
6619
|
+
lg: H(l).fields[k].render.lg || 12,
|
|
6620
|
+
xl: H(l).fields[k].render.xl || 12
|
|
6621
6621
|
}, {
|
|
6622
6622
|
default: B(() => [
|
|
6623
|
-
we(
|
|
6624
|
-
itemConfig: H(l).fields[
|
|
6623
|
+
we(w.$slots, H(vr)(k), {
|
|
6624
|
+
itemConfig: H(l).fields[k]
|
|
6625
6625
|
}, () => [
|
|
6626
|
-
O(pr, { name:
|
|
6626
|
+
O(pr, { name: k }, null, 8, ["name"])
|
|
6627
6627
|
])
|
|
6628
6628
|
]),
|
|
6629
6629
|
_: 2
|
|
@@ -6634,9 +6634,9 @@ const Ku = {
|
|
|
6634
6634
|
])
|
|
6635
6635
|
]),
|
|
6636
6636
|
e.hideButtons ? ce("", !0) : (P(), de("div", nc, [
|
|
6637
|
-
we(
|
|
6638
|
-
O(ur, { touched:
|
|
6639
|
-
O(cr, { onReset:
|
|
6637
|
+
we(w.$slots, "buttons", {}, () => [
|
|
6638
|
+
O(ur, { touched: f.value }, null, 8, ["touched"]),
|
|
6639
|
+
O(cr, { onReset: c }),
|
|
6640
6640
|
u.value.system && u.value.subject && e.userId && H(he)(e.client) ? (P(), X(Br, {
|
|
6641
6641
|
key: 0,
|
|
6642
6642
|
client: e.client,
|
|
@@ -6690,36 +6690,36 @@ const Ku = {
|
|
|
6690
6690
|
__name: "FiltersSelected",
|
|
6691
6691
|
setup(e) {
|
|
6692
6692
|
const n = J(Ke), t = J(tt), a = J(ot);
|
|
6693
|
-
if (
|
|
6693
|
+
if (D(n) || D(t) || D(a))
|
|
6694
6694
|
throw new Error("Incorrect provide/inject config.");
|
|
6695
|
-
const { t: r } = Re(), o = (
|
|
6696
|
-
const d = n.fields?.[
|
|
6697
|
-
return d ? r(d) :
|
|
6695
|
+
const { t: r } = Re(), o = (m) => {
|
|
6696
|
+
const d = n.fields?.[m]?.titleT;
|
|
6697
|
+
return d ? r(d) : m;
|
|
6698
6698
|
}, s = U(() => {
|
|
6699
|
-
const
|
|
6700
|
-
return Array.from(a.value).map(([d,
|
|
6699
|
+
const m = Object.keys(n.fields);
|
|
6700
|
+
return Array.from(a.value).map(([d, g]) => ({
|
|
6701
6701
|
name: d,
|
|
6702
6702
|
title: o(d),
|
|
6703
|
-
options:
|
|
6704
|
-
})).sort((d,
|
|
6705
|
-
}), { clearOneFilterSelected: l, isClearable: i } = ct(), u = (
|
|
6706
|
-
l(
|
|
6703
|
+
options: g
|
|
6704
|
+
})).sort((d, g) => m.indexOf(d.name) - m.indexOf(g.name));
|
|
6705
|
+
}), { clearOneFilterSelected: l, isClearable: i } = ct(), u = (m, d) => {
|
|
6706
|
+
l(m, d, t, n, a), n.touched = !0;
|
|
6707
6707
|
};
|
|
6708
|
-
return (
|
|
6709
|
-
key:
|
|
6708
|
+
return (m, d) => (P(!0), de(qe, null, Bt(s.value, (g) => (P(), de("div", {
|
|
6709
|
+
key: g.name,
|
|
6710
6710
|
class: "a-selected-filters"
|
|
6711
6711
|
}, [
|
|
6712
|
-
Ee("div", oc, fe(
|
|
6713
|
-
(P(!0), de(qe, null, Bt(
|
|
6712
|
+
Ee("div", oc, fe(g.title) + ": ", 1),
|
|
6713
|
+
(P(!0), de(qe, null, Bt(g.options, (p) => (P(), de("div", {
|
|
6714
6714
|
key: p.value,
|
|
6715
6715
|
class: "a-selected-filters__chips"
|
|
6716
6716
|
}, [
|
|
6717
|
-
H(i)(
|
|
6717
|
+
H(i)(g.name, H(n)) ? (P(), X(Kt, {
|
|
6718
6718
|
key: 0,
|
|
6719
6719
|
closable: "",
|
|
6720
6720
|
size: "small",
|
|
6721
6721
|
class: "a-selected-filters__chip",
|
|
6722
|
-
"onClick:close": ye((
|
|
6722
|
+
"onClick:close": ye((T) => u(g.name, p.value), ["stop"])
|
|
6723
6723
|
}, {
|
|
6724
6724
|
close: B(() => [
|
|
6725
6725
|
O(Be, {
|
|
@@ -6767,38 +6767,38 @@ const Ku = {
|
|
|
6767
6767
|
emits: /* @__PURE__ */ mt(["submit", "reset", "bookmarkLoadAfter"], ["update:datatableHiddenColumns", "update:showDetail"]),
|
|
6768
6768
|
setup(e, { expose: n, emit: t }) {
|
|
6769
6769
|
const a = e, r = t, o = Tt(e, "datatableHiddenColumns"), s = Tt(e, "showDetail"), l = J(Ke), i = J(tt);
|
|
6770
|
-
if (
|
|
6770
|
+
if (D(l) || D(i))
|
|
6771
6771
|
throw new Error("Incorrect provide/inject config.");
|
|
6772
6772
|
const u = L({
|
|
6773
6773
|
system: l.general.system,
|
|
6774
6774
|
subject: l.general.subject
|
|
6775
6775
|
});
|
|
6776
6776
|
Je(a.store) ? a.store === !1 && (u.value.system = void 0, u.value.subject = void 0) : (u.value.system = a.store.system, u.value.subject = a.store.subject);
|
|
6777
|
-
const
|
|
6778
|
-
Kn(pt,
|
|
6777
|
+
const m = L(0);
|
|
6778
|
+
Kn(pt, m);
|
|
6779
6779
|
const d = L(/* @__PURE__ */ new Map());
|
|
6780
6780
|
Kn(ot, d);
|
|
6781
|
-
const
|
|
6782
|
-
|
|
6781
|
+
const g = () => {
|
|
6782
|
+
m.value++, Ye(() => {
|
|
6783
6783
|
r("submit");
|
|
6784
6784
|
});
|
|
6785
|
-
}, { clearAll: p, clearAllFilterSelected:
|
|
6785
|
+
}, { clearAll: p, clearAllFilterSelected: T } = ct(), b = () => {
|
|
6786
6786
|
Ye(() => {
|
|
6787
|
-
|
|
6788
|
-
});
|
|
6789
|
-
}, m = () => {
|
|
6790
|
-
p(i, l), E(i, l, d), Ye(() => {
|
|
6791
|
-
f.value++, r("reset");
|
|
6787
|
+
m.value++, r("bookmarkLoadAfter");
|
|
6792
6788
|
});
|
|
6793
6789
|
}, c = () => {
|
|
6790
|
+
p(i, l), T(i, l, d), Ye(() => {
|
|
6791
|
+
m.value++, r("reset");
|
|
6792
|
+
});
|
|
6793
|
+
}, f = () => {
|
|
6794
6794
|
s.value = !s.value;
|
|
6795
|
-
},
|
|
6795
|
+
}, v = U(() => l.touched), w = U(() => Object.entries(l.fields).filter(([, F]) => !F.render.skip).map(([F]) => F));
|
|
6796
6796
|
return a.alwaysVisible && (s.value = !0), n({
|
|
6797
|
-
submit:
|
|
6798
|
-
reset:
|
|
6799
|
-
}), (F,
|
|
6797
|
+
submit: g,
|
|
6798
|
+
reset: c
|
|
6799
|
+
}), (F, k) => (P(), X(Go, {
|
|
6800
6800
|
name: e.formName,
|
|
6801
|
-
onSubmit: ye(
|
|
6801
|
+
onSubmit: ye(g, ["prevent"])
|
|
6802
6802
|
}, {
|
|
6803
6803
|
default: B(() => [
|
|
6804
6804
|
e.enableTop ? (P(), X($t, {
|
|
@@ -6824,12 +6824,12 @@ const Ku = {
|
|
|
6824
6824
|
u.value.system && u.value.subject && e.userId && H(he)(e.client) ? (P(), X(br, {
|
|
6825
6825
|
key: 0,
|
|
6826
6826
|
"datatable-hidden-columns": o.value,
|
|
6827
|
-
"onUpdate:datatableHiddenColumns":
|
|
6827
|
+
"onUpdate:datatableHiddenColumns": k[0] || (k[0] = (h) => o.value = h),
|
|
6828
6828
|
client: e.client,
|
|
6829
6829
|
system: u.value.system,
|
|
6830
6830
|
subject: u.value.subject,
|
|
6831
6831
|
"user-id": e.userId,
|
|
6832
|
-
onSubmit:
|
|
6832
|
+
onSubmit: b
|
|
6833
6833
|
}, null, 8, ["datatable-hidden-columns", "client", "system", "subject", "user-id"])) : ce("", !0)
|
|
6834
6834
|
])
|
|
6835
6835
|
])
|
|
@@ -6851,7 +6851,7 @@ const Ku = {
|
|
|
6851
6851
|
default: B(() => [
|
|
6852
6852
|
O(ac, {
|
|
6853
6853
|
"button-active": s.value,
|
|
6854
|
-
onAdvancedFilter:
|
|
6854
|
+
onAdvancedFilter: f
|
|
6855
6855
|
}, null, 8, ["button-active"])
|
|
6856
6856
|
]),
|
|
6857
6857
|
_: 1
|
|
@@ -6874,8 +6874,8 @@ const Ku = {
|
|
|
6874
6874
|
}, {
|
|
6875
6875
|
default: B(() => [
|
|
6876
6876
|
we(F.$slots, "buttons", {}, () => [
|
|
6877
|
-
O(ur, { touched:
|
|
6878
|
-
O(cr, { onReset:
|
|
6877
|
+
O(ur, { touched: v.value }, null, 8, ["touched"]),
|
|
6878
|
+
O(cr, { onReset: c }),
|
|
6879
6879
|
u.value.system && u.value.subject && e.userId && H(he)(e.client) ? (P(), X(Br, {
|
|
6880
6880
|
key: 0,
|
|
6881
6881
|
client: e.client,
|
|
@@ -6900,19 +6900,19 @@ const Ku = {
|
|
|
6900
6900
|
we(F.$slots, "detail", {}, () => [
|
|
6901
6901
|
O($t, null, {
|
|
6902
6902
|
default: B(() => [
|
|
6903
|
-
(P(!0), de(qe, null, Bt(
|
|
6904
|
-
key:
|
|
6905
|
-
cols: H(l).fields[
|
|
6906
|
-
sm: H(l).fields[
|
|
6907
|
-
md: H(l).fields[
|
|
6908
|
-
lg: H(l).fields[
|
|
6909
|
-
xl: H(l).fields[
|
|
6903
|
+
(P(!0), de(qe, null, Bt(w.value, (h) => (P(), X(gt, {
|
|
6904
|
+
key: h,
|
|
6905
|
+
cols: H(l).fields[h].render.xs || 12,
|
|
6906
|
+
sm: H(l).fields[h].render.sm || 6,
|
|
6907
|
+
md: H(l).fields[h].render.md || 4,
|
|
6908
|
+
lg: H(l).fields[h].render.lg || 3,
|
|
6909
|
+
xl: H(l).fields[h].render.xl || 2
|
|
6910
6910
|
}, {
|
|
6911
6911
|
default: B(() => [
|
|
6912
|
-
we(F.$slots, H(vr)(
|
|
6913
|
-
itemConfig: H(l).fields[
|
|
6912
|
+
we(F.$slots, H(vr)(h), {
|
|
6913
|
+
itemConfig: H(l).fields[h]
|
|
6914
6914
|
}, () => [
|
|
6915
|
-
O(pr, { name:
|
|
6915
|
+
O(pr, { name: h }, null, 8, ["name"])
|
|
6916
6916
|
])
|
|
6917
6917
|
]),
|
|
6918
6918
|
_: 2
|
|
@@ -6979,14 +6979,14 @@ const Ku = {
|
|
|
6979
6979
|
emits: /* @__PURE__ */ mt(["searchChange", "searchChangeDebounced", "blur", "focus", "click:chipClose"], ["update:modelValue", "update:selected"]),
|
|
6980
6980
|
setup(e, { expose: n, emit: t }) {
|
|
6981
6981
|
const a = e, r = t, o = J(lo), s = J(ro), l = oa()?.type.__name;
|
|
6982
|
-
if (
|
|
6982
|
+
if (D(o) || D(s))
|
|
6983
6983
|
throw new Error(`[${l}] Incorrect provide/inject config.`);
|
|
6984
6984
|
const i = a.filterByField, u = a.filterSortBy;
|
|
6985
|
-
if (
|
|
6985
|
+
if (D(o.fields[i]) || D(s[i]))
|
|
6986
6986
|
throw new Error(
|
|
6987
6987
|
`[${l}] Incorrect filter inner config. FilterByField is '${i}' and available options are ${Object.keys(s).join(", ")}.`
|
|
6988
6988
|
);
|
|
6989
|
-
const
|
|
6989
|
+
const m = Tt(e, "modelValue", {
|
|
6990
6990
|
set(z) {
|
|
6991
6991
|
return ue(z) ? $e(z) : z;
|
|
6992
6992
|
}
|
|
@@ -6998,28 +6998,28 @@ const Ku = {
|
|
|
6998
6998
|
return ue(z) ? $e(z) : z;
|
|
6999
6999
|
}
|
|
7000
7000
|
}
|
|
7001
|
-
), { collabOptions:
|
|
7002
|
-
}),
|
|
7003
|
-
}),
|
|
7004
|
-
}),
|
|
7005
|
-
if (
|
|
7001
|
+
), { collabOptions: g } = Jt(), p = L((z) => {
|
|
7002
|
+
}), T = L((z) => {
|
|
7003
|
+
}), b = L(() => {
|
|
7004
|
+
}), c = L(null);
|
|
7005
|
+
if (g.value.enabled && he(a.collab)) {
|
|
7006
7006
|
const { releaseCollabFieldLock: z, changeCollabFieldData: ie, acquireCollabFieldLock: Ce, lockedByUser: be } = ca(a.collab.room, a.collab.field);
|
|
7007
|
-
p.value = z,
|
|
7007
|
+
p.value = z, T.value = ie, b.value = Ce, Ae(
|
|
7008
7008
|
be,
|
|
7009
7009
|
(Yt) => {
|
|
7010
|
-
|
|
7010
|
+
c.value = Yt;
|
|
7011
7011
|
},
|
|
7012
7012
|
{ immediate: !0 }
|
|
7013
7013
|
);
|
|
7014
7014
|
}
|
|
7015
|
-
const
|
|
7016
|
-
|
|
7017
|
-
},
|
|
7015
|
+
const f = L(""), v = L(!1), w = L(null), F = L(0), { t: k } = Re(), h = J(Xa, void 0), I = J(Za, void 0), Y = () => {
|
|
7016
|
+
v.value = !1, r("blur", m.value), a.v?.$touch(), p.value(m.value);
|
|
7017
|
+
}, E = U(() => he(a.errorMessage) ? [a.errorMessage] : a.v?.$errors?.length ? a.v.$errors.map((z) => z.$message) : []), $ = U(() => {
|
|
7018
7018
|
if (he(a.label)) return a.label;
|
|
7019
|
-
if (
|
|
7019
|
+
if (D(h) || D(I) || D(a.v?.$path)) return "";
|
|
7020
7020
|
const { end: z } = wn(a.v?.$path, ".");
|
|
7021
|
-
return
|
|
7022
|
-
}), N = U(() => he(a.required) ? a.required : a.v?.required && a.v?.required.$params.type === "required"), M = U(() => he(a.disabled) ? a.disabled : !!
|
|
7021
|
+
return k(h + "." + I + ".model." + z);
|
|
7022
|
+
}), N = U(() => he(a.required) ? a.required : a.v?.required && a.v?.required.$params.type === "required"), M = U(() => he(a.disabled) ? a.disabled : !!c.value), { pagination: A } = kn(
|
|
7023
7023
|
G(u) ? null : u.key,
|
|
7024
7024
|
u?.order
|
|
7025
7025
|
), _ = L([]), S = L([]), y = L(!0), C = L(!1), x = U(() => {
|
|
@@ -7034,7 +7034,7 @@ const Ku = {
|
|
|
7034
7034
|
};
|
|
7035
7035
|
return ie(S.value), ie(_.value), Array.from(z.values());
|
|
7036
7036
|
}), R = L(!1), j = U(() => R.value ? !0 : a.loading), Q = (z) => {
|
|
7037
|
-
S.value = [], d.value = ue(z) ? [] : null,
|
|
7037
|
+
S.value = [], d.value = ue(z) ? [] : null, w.value = ue(z) ? [] : null;
|
|
7038
7038
|
}, re = (z) => {
|
|
7039
7039
|
const ie = (Ce) => x.value.find((be) => be.value === Ce) ?? { title: `${Ce}`, value: Ce };
|
|
7040
7040
|
return ue(z) ? z.map(ie) : ie(z);
|
|
@@ -7044,7 +7044,7 @@ const Ku = {
|
|
|
7044
7044
|
const ie = ue(z) ? z : [z];
|
|
7045
7045
|
S.value = await a.fetchItemsByIds(ie);
|
|
7046
7046
|
const Ce = re(z);
|
|
7047
|
-
return d.value = Ce,
|
|
7047
|
+
return d.value = Ce, w.value = Ce, S.value;
|
|
7048
7048
|
} finally {
|
|
7049
7049
|
R.value = !1;
|
|
7050
7050
|
}
|
|
@@ -7056,9 +7056,9 @@ const Ku = {
|
|
|
7056
7056
|
if (ue(be) && be.length > 0) {
|
|
7057
7057
|
if (S.value = be, a.multiple) {
|
|
7058
7058
|
const Yt = be.map((Rr) => Rr.value);
|
|
7059
|
-
return
|
|
7059
|
+
return m.value = Yt, ie && await te("force", Yt), R.value = !1, !0;
|
|
7060
7060
|
}
|
|
7061
|
-
return
|
|
7061
|
+
return m.value = be[0].value, ie && await te("force", be[0].value), R.value = !1, !0;
|
|
7062
7062
|
}
|
|
7063
7063
|
return R.value = !1, !1;
|
|
7064
7064
|
} catch (be) {
|
|
@@ -7079,20 +7079,20 @@ const Ku = {
|
|
|
7079
7079
|
R.value = !0;
|
|
7080
7080
|
try {
|
|
7081
7081
|
const Ce = await a.fetchItems(A, s, o);
|
|
7082
|
-
F.value === 0 && (_.value = Ce, !a.disableAutoSingleSelect && z === "mounted" && Ce.length === 1 && (G(ie) ||
|
|
7082
|
+
F.value === 0 && (_.value = Ce, !a.disableAutoSingleSelect && z === "mounted" && Ce.length === 1 && (G(ie) || D(ie) || ue(ie) && ie.length === 0) && (m.value = a.multiple ? [Ce[0].value] : Ce[0].value)), C.value = !0;
|
|
7083
7083
|
} finally {
|
|
7084
7084
|
R.value = !1;
|
|
7085
7085
|
}
|
|
7086
7086
|
}
|
|
7087
7087
|
}, q = async () => {
|
|
7088
|
-
|
|
7088
|
+
v.value = !0, b.value(), await te("focus", m.value), r("focus", m.value);
|
|
7089
7089
|
}, K = async () => {
|
|
7090
|
-
await te("hover",
|
|
7090
|
+
await te("hover", m.value);
|
|
7091
7091
|
}, ge = U(() => {
|
|
7092
7092
|
if (!a.multiple && S.value[0])
|
|
7093
7093
|
return S.value[0].title;
|
|
7094
7094
|
}), Z = (z) => {
|
|
7095
|
-
!a.multiple && !
|
|
7095
|
+
!a.multiple && !v.value && z.length === 0 || ge.value !== z && (f.value = z);
|
|
7096
7096
|
}, ee = async () => {
|
|
7097
7097
|
try {
|
|
7098
7098
|
_.value = await a.fetchItems(A, s, o);
|
|
@@ -7100,19 +7100,19 @@ const Ku = {
|
|
|
7100
7100
|
ke(z);
|
|
7101
7101
|
}
|
|
7102
7102
|
if (a.multiple) {
|
|
7103
|
-
|
|
7103
|
+
m.value = [];
|
|
7104
7104
|
return;
|
|
7105
7105
|
}
|
|
7106
|
-
|
|
7106
|
+
m.value = null;
|
|
7107
7107
|
}, se = (z) => {
|
|
7108
|
-
if (ue(
|
|
7109
|
-
|
|
7108
|
+
if (ue(m.value)) {
|
|
7109
|
+
m.value = m.value.filter((ie) => ie !== z.value);
|
|
7110
7110
|
return;
|
|
7111
7111
|
}
|
|
7112
|
-
z.value ===
|
|
7112
|
+
z.value === m.value && a.clearable && (m.value = null);
|
|
7113
7113
|
};
|
|
7114
7114
|
qa(
|
|
7115
|
-
|
|
7115
|
+
f,
|
|
7116
7116
|
(z, ie) => {
|
|
7117
7117
|
if (z !== ie && !(z.length > 0 && z.length < a.minSearchChars)) {
|
|
7118
7118
|
if (z.length === 0 && a.prefetch === !1) {
|
|
@@ -7123,31 +7123,31 @@ const Ku = {
|
|
|
7123
7123
|
}
|
|
7124
7124
|
},
|
|
7125
7125
|
{ debounce: fc }
|
|
7126
|
-
), Ae(
|
|
7126
|
+
), Ae(f, (z, ie) => {
|
|
7127
7127
|
z !== ie && r("searchChange", z);
|
|
7128
7128
|
});
|
|
7129
7129
|
const Ie = (z) => {
|
|
7130
7130
|
const ie = $e(z);
|
|
7131
|
-
if (d.value = ie, G(ie) ||
|
|
7132
|
-
|
|
7131
|
+
if (d.value = ie, G(ie) || D(ie)) {
|
|
7132
|
+
m.value = null;
|
|
7133
7133
|
return;
|
|
7134
7134
|
}
|
|
7135
7135
|
if (ue(ie)) {
|
|
7136
|
-
|
|
7136
|
+
m.value = ie.map((Ce) => Ce.value);
|
|
7137
7137
|
return;
|
|
7138
7138
|
}
|
|
7139
|
-
|
|
7139
|
+
m.value = ie.value;
|
|
7140
7140
|
}, Nt = U(() => {
|
|
7141
7141
|
if (R.value)
|
|
7142
7142
|
return "$vuetify.loading";
|
|
7143
|
-
if (_.value.length === 0 &&
|
|
7144
|
-
return
|
|
7143
|
+
if (_.value.length === 0 && f.value.length < a.minSearchChars)
|
|
7144
|
+
return D(a.minSearchText) ? k("common.filter.filterMinChars", { min: a.minSearchChars }) : a.minSearchText;
|
|
7145
7145
|
});
|
|
7146
7146
|
return Ae(
|
|
7147
|
-
|
|
7147
|
+
m,
|
|
7148
7148
|
async (z, ie) => {
|
|
7149
7149
|
if (z !== ie) {
|
|
7150
|
-
if (y.value && (y.value = !1, await te("mounted", z)),
|
|
7150
|
+
if (y.value && (y.value = !1, await te("mounted", z)), g.value.enabled && v.value && T.value(z), Qo(z)) {
|
|
7151
7151
|
Q(z);
|
|
7152
7152
|
return;
|
|
7153
7153
|
}
|
|
@@ -7158,12 +7158,12 @@ const Ku = {
|
|
|
7158
7158
|
), n({
|
|
7159
7159
|
tryLoadModelValue: Te
|
|
7160
7160
|
}), (z, ie) => (P(), X(ra, {
|
|
7161
|
-
"model-value":
|
|
7161
|
+
"model-value": w.value,
|
|
7162
7162
|
items: x.value,
|
|
7163
7163
|
"no-filter": "",
|
|
7164
7164
|
multiple: e.multiple,
|
|
7165
7165
|
clearable: e.clearable,
|
|
7166
|
-
"error-messages":
|
|
7166
|
+
"error-messages": E.value,
|
|
7167
7167
|
chips: e.chips || e.multiple || e.closableChips,
|
|
7168
7168
|
"hide-details": e.hideDetails,
|
|
7169
7169
|
loading: j.value,
|
|
@@ -7212,13 +7212,13 @@ const Ku = {
|
|
|
7212
7212
|
]),
|
|
7213
7213
|
_: 2
|
|
7214
7214
|
}, [
|
|
7215
|
-
|
|
7215
|
+
c.value ? {
|
|
7216
7216
|
name: "append-inner",
|
|
7217
7217
|
fn: B(() => [
|
|
7218
|
-
we(z.$slots, "locked", { userId:
|
|
7218
|
+
we(z.$slots, "locked", { userId: c.value }, () => [
|
|
7219
7219
|
e.collab ? (P(), X(ua, {
|
|
7220
7220
|
key: 0,
|
|
7221
|
-
id:
|
|
7221
|
+
id: c.value,
|
|
7222
7222
|
users: e.collab.cachedUsers
|
|
7223
7223
|
}, null, 8, ["id", "users"])) : ce("", !0)
|
|
7224
7224
|
])
|
|
@@ -7405,7 +7405,7 @@ export {
|
|
|
7405
7405
|
rn as c7,
|
|
7406
7406
|
gr as c8,
|
|
7407
7407
|
Wu as c9,
|
|
7408
|
-
|
|
7408
|
+
D as d,
|
|
7409
7409
|
ua as e,
|
|
7410
7410
|
Gt as f,
|
|
7411
7411
|
$e as g,
|
|
@@ -7429,4 +7429,4 @@ export {
|
|
|
7429
7429
|
Qo as y,
|
|
7430
7430
|
Cl as z
|
|
7431
7431
|
};
|
|
7432
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
7432
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DvYCGnn3.mjs.map
|