@anzusystems/common-admin 1.47.0-beta.dev-1775683200 → 1.47.0-beta.dev-1775683400
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-DjYHyeck.mjs} +1247 -1230
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DjYHyeck.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.js +287 -287
- package/dist/common-admin.js.map +1 -1
- 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 +378 -369
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-vTXSwNiv.mjs → webfontloader-CtCXi-3v.mjs} +2 -2
- package/dist/{webfontloader-vTXSwNiv.mjs.map → webfontloader-CtCXi-3v.mjs.map} +1 -1
- package/package.json +7 -7
- package/src/eslint/plugin.mjs +6 -5
- 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,58 @@ 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 {
|
|
2960
|
-
|
|
2959
|
+
const {
|
|
2960
|
+
client: n,
|
|
2961
|
+
system: t,
|
|
2962
|
+
entity: a,
|
|
2963
|
+
urlTemplate: r,
|
|
2964
|
+
urlParams: o,
|
|
2965
|
+
options: s = {},
|
|
2966
|
+
silentConsoleError: l = !1
|
|
2967
|
+
} = e;
|
|
2968
|
+
let i = null;
|
|
2961
2969
|
return {
|
|
2962
|
-
executeFetch: async (
|
|
2963
|
-
|
|
2970
|
+
executeFetch: async (d, g, p, T = {}) => {
|
|
2971
|
+
i = new AbortController();
|
|
2964
2972
|
const {
|
|
2965
|
-
urlTemplate:
|
|
2966
|
-
urlParams:
|
|
2967
|
-
forceElastic:
|
|
2968
|
-
} =
|
|
2973
|
+
urlTemplate: b,
|
|
2974
|
+
urlParams: c,
|
|
2975
|
+
forceElastic: f = !1
|
|
2976
|
+
} = T;
|
|
2969
2977
|
try {
|
|
2970
|
-
const
|
|
2971
|
-
if (
|
|
2972
|
-
const
|
|
2978
|
+
const v = p.general.elastic || f ? "/search" : "", w = he(c) ? c : o, F = he(b) ? b : r;
|
|
2979
|
+
if (D(F)) throw new Error("Url template is undefined");
|
|
2980
|
+
const k = (D(w) ? F : Mn(F, w)) + v + Fi(d, g, p), h = await n().get(k, {
|
|
2973
2981
|
...s,
|
|
2974
|
-
signal:
|
|
2982
|
+
signal: i.signal
|
|
2975
2983
|
});
|
|
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
|
-
}),
|
|
2984
|
+
if (!$n(h.status))
|
|
2985
|
+
throw new nn(h.status);
|
|
2986
|
+
if (h.data) {
|
|
2987
|
+
const I = h.data;
|
|
2988
|
+
return $i(I) ? d.value = {
|
|
2989
|
+
...d.value,
|
|
2990
|
+
hasNextPage: I.hasNextPage,
|
|
2991
|
+
currentViewCount: h.data.data.length
|
|
2992
|
+
} : Mi(I) && (d.value = {
|
|
2993
|
+
...d.value,
|
|
2994
|
+
totalCount: I.totalCount,
|
|
2995
|
+
currentViewCount: h.data.data.length
|
|
2996
|
+
}), I.data;
|
|
2989
2997
|
}
|
|
2990
|
-
if (
|
|
2998
|
+
if (h.status === Qt)
|
|
2991
2999
|
return [];
|
|
2992
3000
|
throw new ut();
|
|
2993
|
-
} catch (
|
|
2994
|
-
if (
|
|
3001
|
+
} catch (v) {
|
|
3002
|
+
if (v instanceof DOMException && v.name === "AbortError")
|
|
2995
3003
|
return [];
|
|
2996
|
-
throw eo(
|
|
3004
|
+
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
3005
|
} finally {
|
|
2998
|
-
|
|
3006
|
+
i = null;
|
|
2999
3007
|
}
|
|
3000
3008
|
},
|
|
3001
3009
|
abortFetch: () => {
|
|
3002
|
-
|
|
3010
|
+
i && i.abort();
|
|
3003
3011
|
}
|
|
3004
3012
|
};
|
|
3005
3013
|
}, Bi = () => ({
|
|
@@ -3015,16 +3023,16 @@ function kn(e, n = Ct.Desc, t = {}, a) {
|
|
|
3015
3023
|
currentViewCount: 0,
|
|
3016
3024
|
totalCount: 0
|
|
3017
3025
|
});
|
|
3018
|
-
function s(u,
|
|
3026
|
+
function s(u, m) {
|
|
3019
3027
|
if (Oe(u)) {
|
|
3020
3028
|
o.value = {
|
|
3021
3029
|
...o.value,
|
|
3022
|
-
sortBy: { key: u, order:
|
|
3030
|
+
sortBy: { key: u, order: m }
|
|
3023
3031
|
};
|
|
3024
3032
|
return;
|
|
3025
3033
|
}
|
|
3026
3034
|
const d = u;
|
|
3027
|
-
if (G(d) ||
|
|
3035
|
+
if (G(d) || D(d)) {
|
|
3028
3036
|
o.value = { ...o.value, sortBy: d };
|
|
3029
3037
|
return;
|
|
3030
3038
|
}
|
|
@@ -3061,28 +3069,28 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3061
3069
|
emits: ["change"],
|
|
3062
3070
|
setup(e, { emit: n }) {
|
|
3063
3071
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3064
|
-
if (
|
|
3065
|
-
|
|
3066
|
-
|
|
3072
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3073
|
+
D(s.fields[t.name]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3074
|
+
D(l[t.name]))
|
|
3067
3075
|
throw new Error("Incorrect provide/inject config.");
|
|
3068
3076
|
const i = U({
|
|
3069
3077
|
get() {
|
|
3070
|
-
return
|
|
3078
|
+
return D(l[t.name]) || G(l[t.name]) ? {
|
|
3071
3079
|
value: -1,
|
|
3072
|
-
title:
|
|
3073
|
-
} : l[t.name] ? { value: 1, title:
|
|
3080
|
+
title: m(t.allT)
|
|
3081
|
+
} : l[t.name] ? { value: 1, title: m(t.trueT) } : { value: 0, title: m(t.falseT) };
|
|
3074
3082
|
},
|
|
3075
|
-
set(
|
|
3076
|
-
let
|
|
3077
|
-
|
|
3083
|
+
set(c) {
|
|
3084
|
+
let f = null;
|
|
3085
|
+
c?.value === 1 && (f = !0), c?.value === 0 && (f = !1), l[t.name] = f, b(), s.touched = !0, a("change");
|
|
3078
3086
|
}
|
|
3079
|
-
}), u = U(() => s.fields[t.name]), { t:
|
|
3080
|
-
{ value: -1, title:
|
|
3081
|
-
{ value: 1, title:
|
|
3082
|
-
{ value: 0, title:
|
|
3083
|
-
]), { clearOne: p } = ct(),
|
|
3087
|
+
}), u = U(() => s.fields[t.name]), { t: m } = Re(), d = U(() => u.value.titleT ? m(u.value.titleT) : void 0), g = U(() => [
|
|
3088
|
+
{ value: -1, title: m(t.allT) },
|
|
3089
|
+
{ value: 1, title: m(t.trueT) },
|
|
3090
|
+
{ value: 0, title: m(t.falseT) }
|
|
3091
|
+
]), { clearOne: p } = ct(), T = () => {
|
|
3084
3092
|
p(t.name, l, s), o.value.delete(t.name);
|
|
3085
|
-
},
|
|
3093
|
+
}, b = () => {
|
|
3086
3094
|
if (i.value.value === -1) {
|
|
3087
3095
|
o.value.delete(t.name);
|
|
3088
3096
|
return;
|
|
@@ -3091,17 +3099,17 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3091
3099
|
{ title: i.value.title, value: i.value.value }
|
|
3092
3100
|
]);
|
|
3093
3101
|
};
|
|
3094
|
-
return (
|
|
3102
|
+
return (c, f) => (P(), X(Ko, {
|
|
3095
3103
|
modelValue: i.value,
|
|
3096
|
-
"onUpdate:modelValue":
|
|
3104
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => i.value = v),
|
|
3097
3105
|
"data-cy": e.dataCy,
|
|
3098
3106
|
label: d.value,
|
|
3099
|
-
items:
|
|
3107
|
+
items: g.value,
|
|
3100
3108
|
clearable: !u.value.mandatory && i.value.value !== -1,
|
|
3101
3109
|
"return-object": "",
|
|
3102
3110
|
"hide-details": "",
|
|
3103
3111
|
autocomplete: "off",
|
|
3104
|
-
"onClick:clear": ye(
|
|
3112
|
+
"onClick:clear": ye(T, ["stop"])
|
|
3105
3113
|
}, null, 8, ["modelValue", "data-cy", "label", "items", "clearable"]));
|
|
3106
3114
|
}
|
|
3107
3115
|
}), Li = /* @__PURE__ */ Se({
|
|
@@ -3114,20 +3122,20 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3114
3122
|
emits: ["change"],
|
|
3115
3123
|
setup(e, { emit: n }) {
|
|
3116
3124
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3117
|
-
if (
|
|
3118
|
-
|
|
3119
|
-
|
|
3125
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3126
|
+
D(s.fields[t.name]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3127
|
+
D(l[t.name]))
|
|
3120
3128
|
throw new Error("Incorrect provide/inject config.");
|
|
3121
3129
|
const i = U({
|
|
3122
3130
|
get() {
|
|
3123
3131
|
return l[t.name];
|
|
3124
3132
|
},
|
|
3125
|
-
set(
|
|
3126
|
-
l[t.name] =
|
|
3133
|
+
set(c) {
|
|
3134
|
+
l[t.name] = c, s.touched = !0, a("change");
|
|
3127
3135
|
}
|
|
3128
|
-
}), u = U(() => s.fields[t.name]), { t:
|
|
3136
|
+
}), 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
3137
|
p(t.name, l, s), o.value.delete(t.name);
|
|
3130
|
-
},
|
|
3138
|
+
}, b = () => {
|
|
3131
3139
|
if (Gt(i.value)) {
|
|
3132
3140
|
o.value.set(t.name, [
|
|
3133
3141
|
{ title: i.value + "", value: i.value }
|
|
@@ -3144,21 +3152,21 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3144
3152
|
};
|
|
3145
3153
|
return Ae(
|
|
3146
3154
|
() => l[t.name],
|
|
3147
|
-
(
|
|
3148
|
-
|
|
3155
|
+
(c, f) => {
|
|
3156
|
+
c === f || Je(c) || b();
|
|
3149
3157
|
},
|
|
3150
3158
|
{ immediate: !0 }
|
|
3151
|
-
), (
|
|
3159
|
+
), (c, f) => (P(), X(ia, {
|
|
3152
3160
|
modelValue: i.value,
|
|
3153
|
-
"onUpdate:modelValue":
|
|
3161
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => i.value = v),
|
|
3154
3162
|
label: d.value,
|
|
3155
|
-
placeholder:
|
|
3163
|
+
placeholder: g.value,
|
|
3156
3164
|
clearable: !u.value.mandatory,
|
|
3157
3165
|
"data-cy": e.dataCy,
|
|
3158
3166
|
"hide-details": "",
|
|
3159
3167
|
autocomplete: "off",
|
|
3160
|
-
onBlur:
|
|
3161
|
-
"onClick:clear": ye(
|
|
3168
|
+
onBlur: b,
|
|
3169
|
+
"onClick:clear": ye(T, ["stop"])
|
|
3162
3170
|
}, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
|
|
3163
3171
|
}
|
|
3164
3172
|
}), Ni = {
|
|
@@ -3179,20 +3187,20 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3179
3187
|
},
|
|
3180
3188
|
emits: ["change"],
|
|
3181
3189
|
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 (
|
|
3190
|
+
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;
|
|
3191
|
+
if (D(r) || D(o) || D(l) || D(s) || D(i) || D(u))
|
|
3192
|
+
throw new Error(`[${m}] Incorrect provide/inject config.`);
|
|
3193
|
+
const d = t.filterByField, g = t.filterSortBy;
|
|
3194
|
+
if (D(i.fields[d]) || D(u[d]))
|
|
3187
3195
|
throw new Error(
|
|
3188
|
-
`[${
|
|
3196
|
+
`[${m}] Incorrect filter inner config. FilterByField is '${d}' and available options are ${Object.keys(u).join(", ")}.`
|
|
3189
3197
|
);
|
|
3190
|
-
const p = U(() => s.fields[t.name]),
|
|
3191
|
-
|
|
3192
|
-
},
|
|
3193
|
-
G(
|
|
3194
|
-
|
|
3195
|
-
), I = L([]), Y = L([]),
|
|
3198
|
+
const p = U(() => s.fields[t.name]), T = L([]), b = L(""), c = L(!1), f = L(null), v = L(0), { t: w } = Re(), F = () => {
|
|
3199
|
+
c.value = !1;
|
|
3200
|
+
}, k = U(() => p.value.titleT ? w(p.value.titleT) : void 0), { pagination: h } = kn(
|
|
3201
|
+
G(g) ? null : g.key,
|
|
3202
|
+
g?.order
|
|
3203
|
+
), I = L([]), Y = L([]), E = L(!0), $ = L(!1), N = U(() => {
|
|
3196
3204
|
const Z = /* @__PURE__ */ new Map(), ee = (se) => {
|
|
3197
3205
|
se.forEach((Ie) => {
|
|
3198
3206
|
Z.set(Ie.value, {
|
|
@@ -3204,7 +3212,7 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3204
3212
|
};
|
|
3205
3213
|
return ee(Y.value), ee(I.value), Array.from(Z.values());
|
|
3206
3214
|
}), M = L(!1), A = (Z) => {
|
|
3207
|
-
Y.value = [],
|
|
3215
|
+
Y.value = [], T.value = ue(Z) ? [] : null, f.value = ue(Z) ? [] : null, ge(T.value);
|
|
3208
3216
|
}, _ = (Z) => {
|
|
3209
3217
|
const ee = (se) => N.value.find((Ie) => Ie.value === se) ?? { title: `${se}`, value: se };
|
|
3210
3218
|
return ue(Z) ? Z.map(ee) : ee(Z);
|
|
@@ -3215,7 +3223,7 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3215
3223
|
try {
|
|
3216
3224
|
Y.value = await t.fetchItemsByIds(ee);
|
|
3217
3225
|
const se = _(Z);
|
|
3218
|
-
|
|
3226
|
+
T.value = se, f.value = se, ge(T.value);
|
|
3219
3227
|
} catch (se) {
|
|
3220
3228
|
y(se);
|
|
3221
3229
|
}
|
|
@@ -3226,8 +3234,8 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3226
3234
|
}, { showErrorsDefault: y } = In(), C = async (Z, ee) => {
|
|
3227
3235
|
M.value = !0, u[d] = Z;
|
|
3228
3236
|
try {
|
|
3229
|
-
const se = await t.fetchItems(
|
|
3230
|
-
ee ===
|
|
3237
|
+
const se = await t.fetchItems(h, u, i);
|
|
3238
|
+
ee === v.value && (I.value = se);
|
|
3231
3239
|
} catch (se) {
|
|
3232
3240
|
y(se);
|
|
3233
3241
|
} finally {
|
|
@@ -3237,51 +3245,51 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3237
3245
|
if (!(t.prefetch === !1 || t.prefetch !== Z) && !M.value && !$.value) {
|
|
3238
3246
|
M.value = !0;
|
|
3239
3247
|
try {
|
|
3240
|
-
const ee = await t.fetchItems(
|
|
3241
|
-
|
|
3248
|
+
const ee = await t.fetchItems(h, u, i);
|
|
3249
|
+
v.value === 0 && (I.value = ee), $.value = !0;
|
|
3242
3250
|
} finally {
|
|
3243
3251
|
M.value = !1;
|
|
3244
3252
|
}
|
|
3245
3253
|
}
|
|
3246
3254
|
}, R = async () => {
|
|
3247
|
-
|
|
3255
|
+
c.value = !0, await x("focus");
|
|
3248
3256
|
}, j = async () => {
|
|
3249
3257
|
await x("hover");
|
|
3250
3258
|
}, Q = U(() => {
|
|
3251
3259
|
if (!p.value.multiple && Y.value[0])
|
|
3252
3260
|
return Y.value[0].title;
|
|
3253
3261
|
}), re = (Z) => {
|
|
3254
|
-
!p.value.multiple && !
|
|
3262
|
+
!p.value.multiple && !c.value && Z.length === 0 || Q.value !== Z && (b.value = Z);
|
|
3255
3263
|
}, { clearOne: ve } = ct(), Te = () => {
|
|
3256
3264
|
ve(t.name, l, s), o.value.delete(t.name);
|
|
3257
3265
|
}, ke = async () => {
|
|
3258
3266
|
try {
|
|
3259
|
-
I.value = await t.fetchItems(
|
|
3267
|
+
I.value = await t.fetchItems(h, u, i);
|
|
3260
3268
|
} catch (Z) {
|
|
3261
3269
|
y(Z);
|
|
3262
3270
|
}
|
|
3263
3271
|
Te();
|
|
3264
3272
|
};
|
|
3265
3273
|
qa(
|
|
3266
|
-
|
|
3274
|
+
b,
|
|
3267
3275
|
(Z, ee) => {
|
|
3268
3276
|
if (Z !== ee && !(Z.length > 0 && Z.length < t.minSearchChars)) {
|
|
3269
3277
|
if (Z.length === 0 && t.prefetch === !1) {
|
|
3270
3278
|
I.value = [];
|
|
3271
3279
|
return;
|
|
3272
3280
|
}
|
|
3273
|
-
|
|
3281
|
+
v.value++, C(Z, v.value);
|
|
3274
3282
|
}
|
|
3275
3283
|
},
|
|
3276
3284
|
{ debounce: Yi }
|
|
3277
3285
|
);
|
|
3278
3286
|
const W = async () => {
|
|
3279
3287
|
await x("mounted");
|
|
3280
|
-
}, te = U(() =>
|
|
3288
|
+
}, 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
3289
|
if (M.value)
|
|
3282
3290
|
return "$vuetify.loading";
|
|
3283
|
-
if (I.value.length === 0 &&
|
|
3284
|
-
return
|
|
3291
|
+
if (I.value.length === 0 && b.value.length < t.minSearchChars)
|
|
3292
|
+
return D(t.minSearchText) ? w("common.filter.filterMinChars", { min: t.minSearchChars }) : t.minSearchText;
|
|
3285
3293
|
}), K = (Z) => {
|
|
3286
3294
|
s.touched = !0;
|
|
3287
3295
|
let ee = null;
|
|
@@ -3305,17 +3313,17 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3305
3313
|
async (Z, ee) => {
|
|
3306
3314
|
if (Z === ee || Je(Z)) return;
|
|
3307
3315
|
const se = Z;
|
|
3308
|
-
if (
|
|
3309
|
-
A(se),
|
|
3316
|
+
if (E.value && (E.value = !1, await W()), Qo(se)) {
|
|
3317
|
+
A(se), D(ee) || (v.value++, await C("", v.value));
|
|
3310
3318
|
return;
|
|
3311
3319
|
}
|
|
3312
3320
|
await S(se);
|
|
3313
3321
|
},
|
|
3314
3322
|
{ immediate: !0 }
|
|
3315
3323
|
), (Z, ee) => (P(), X(ra, {
|
|
3316
|
-
modelValue:
|
|
3324
|
+
modelValue: T.value,
|
|
3317
3325
|
"onUpdate:modelValue": [
|
|
3318
|
-
ee[0] || (ee[0] = (se) =>
|
|
3326
|
+
ee[0] || (ee[0] = (se) => T.value = se),
|
|
3319
3327
|
K
|
|
3320
3328
|
],
|
|
3321
3329
|
items: N.value,
|
|
@@ -3323,7 +3331,7 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3323
3331
|
placeholder: te.value,
|
|
3324
3332
|
multiple: p.value.multiple,
|
|
3325
3333
|
clearable: !p.value.mandatory,
|
|
3326
|
-
label:
|
|
3334
|
+
label: k.value,
|
|
3327
3335
|
chips: p.value.multiple,
|
|
3328
3336
|
loading: M.value,
|
|
3329
3337
|
"hide-details": "",
|
|
@@ -3362,7 +3370,7 @@ const Ld = (e, n = {}, t, a = {}, r, o, s = {}) => new Promise((l, i) => {
|
|
|
3362
3370
|
name: "no-data",
|
|
3363
3371
|
fn: B(() => [
|
|
3364
3372
|
O(Rt, {
|
|
3365
|
-
title: H(
|
|
3373
|
+
title: H(w)("$vuetify.loading")
|
|
3366
3374
|
}, null, 8, ["title"])
|
|
3367
3375
|
]),
|
|
3368
3376
|
key: "0"
|
|
@@ -3389,45 +3397,45 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3389
3397
|
},
|
|
3390
3398
|
emits: ["change"],
|
|
3391
3399
|
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(`[${
|
|
3400
|
+
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;
|
|
3401
|
+
if (D(r) || D(o) || D(l) || D(s) || D(i) || D(u))
|
|
3402
|
+
throw new Error(`[${m}] Incorrect provide/inject config.`);
|
|
3395
3403
|
if (
|
|
3396
3404
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3397
|
-
|
|
3398
|
-
|
|
3405
|
+
D(s.fields[t.name]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3406
|
+
D(l[t.name])
|
|
3399
3407
|
)
|
|
3400
3408
|
throw new Error(
|
|
3401
|
-
`[${
|
|
3409
|
+
`[${m}] Incorrect filter config. Name is '${t.name}' and available options are ${Object.keys(l).join(", ")}.`
|
|
3402
3410
|
);
|
|
3403
3411
|
if (
|
|
3404
3412
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3405
|
-
|
|
3406
|
-
|
|
3413
|
+
D(i.fields[t.filterByField]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3414
|
+
D(u[t.filterByField])
|
|
3407
3415
|
)
|
|
3408
3416
|
throw new Error(
|
|
3409
|
-
`[${
|
|
3417
|
+
`[${m}] Incorrect filter inner config. FilterByField is '${t.filterByField}' and available options are ${Object.keys(u).join(", ")}.`
|
|
3410
3418
|
);
|
|
3411
|
-
const d = L([]),
|
|
3419
|
+
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
3420
|
p.value = !1;
|
|
3413
|
-
},
|
|
3421
|
+
}, w = U(() => f.value.titleT ? c(f.value.titleT) : void 0), { pagination: F } = kn(
|
|
3414
3422
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3415
3423
|
G(t.filterSortBy) ? null : t.filterSortBy.key,
|
|
3416
3424
|
t.filterSortBy?.order
|
|
3417
|
-
),
|
|
3425
|
+
), k = L([]), h = L([]), I = U(() => {
|
|
3418
3426
|
const W = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map();
|
|
3419
|
-
return
|
|
3427
|
+
return h.value.forEach((q) => {
|
|
3420
3428
|
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
|
-
}),
|
|
3429
|
+
}), k.value.forEach((q) => {
|
|
3422
3430
|
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
3431
|
}), Array.from(W, ([q, K]) => ({ value: q, title: K, raw: te.get(q) }));
|
|
3424
|
-
}), Y = L(!1), { showErrorsDefault:
|
|
3432
|
+
}), Y = L(!1), { showErrorsDefault: E } = In(), $ = async (W, te) => {
|
|
3425
3433
|
Y.value = !0, u[t.filterByField] = W;
|
|
3426
3434
|
try {
|
|
3427
3435
|
const q = await t.fetchItemsMinimal(F, u, i);
|
|
3428
|
-
te ===
|
|
3436
|
+
te === b.value && (k.value = q);
|
|
3429
3437
|
} catch (q) {
|
|
3430
|
-
|
|
3438
|
+
E(q);
|
|
3431
3439
|
} finally {
|
|
3432
3440
|
Y.value = !1;
|
|
3433
3441
|
}
|
|
@@ -3438,17 +3446,17 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3438
3446
|
return [].concat(te);
|
|
3439
3447
|
}, M = async (W) => {
|
|
3440
3448
|
let te = 1, q = [];
|
|
3441
|
-
return ue(W) ? (te = W.length, q = N(W)) : q = N([W]),
|
|
3449
|
+
return ue(W) ? (te = W.length, q = N(W)) : q = N([W]), h.value = q, q.length === te;
|
|
3442
3450
|
}, A = L(!1), _ = () => {
|
|
3443
|
-
clearTimeout(
|
|
3451
|
+
clearTimeout(T.value), T.value = void 0;
|
|
3444
3452
|
}, S = async () => {
|
|
3445
3453
|
if (_(), A.value !== !0) {
|
|
3446
3454
|
A.value = !0, Y.value = !0;
|
|
3447
3455
|
try {
|
|
3448
3456
|
const W = await t.fetchItemsMinimal(F, u, i);
|
|
3449
|
-
|
|
3457
|
+
b.value === 0 && (k.value = W);
|
|
3450
3458
|
} catch (W) {
|
|
3451
|
-
|
|
3459
|
+
E(W);
|
|
3452
3460
|
} finally {
|
|
3453
3461
|
Y.value = !1;
|
|
3454
3462
|
}
|
|
@@ -3458,26 +3466,26 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3458
3466
|
}, C = () => {
|
|
3459
3467
|
t.prefetch === "focus" || t.prefetch === !1 || (_(), S());
|
|
3460
3468
|
}, x = U(() => {
|
|
3461
|
-
if (!
|
|
3462
|
-
return
|
|
3469
|
+
if (!f.value.multiple && h.value[0])
|
|
3470
|
+
return h.value[0].title;
|
|
3463
3471
|
}), R = (W) => {
|
|
3464
|
-
!
|
|
3472
|
+
!f.value.multiple && !p.value && W.length === 0 || x.value !== W && (g.value = W);
|
|
3465
3473
|
}, j = (W) => {
|
|
3466
3474
|
s.touched = !0;
|
|
3467
3475
|
let te = null;
|
|
3468
3476
|
ue(W) ? te = W.map((q) => q.value) : G(W) || (te = W.value), l[t.name] = te, a("change");
|
|
3469
3477
|
}, Q = async () => {
|
|
3470
3478
|
try {
|
|
3471
|
-
|
|
3479
|
+
k.value = await t.fetchItemsMinimal(
|
|
3472
3480
|
F,
|
|
3473
3481
|
u,
|
|
3474
3482
|
i
|
|
3475
3483
|
);
|
|
3476
3484
|
} catch (W) {
|
|
3477
|
-
|
|
3485
|
+
E(W);
|
|
3478
3486
|
}
|
|
3479
3487
|
Te();
|
|
3480
|
-
}, re = U(() =>
|
|
3488
|
+
}, 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
3489
|
ve(t.name, l, s), o.value.delete(t.name);
|
|
3482
3490
|
}, ke = (W) => {
|
|
3483
3491
|
if (o.value.delete(t.name), ue(W) && W.length === 0 || G(W)) {
|
|
@@ -3497,15 +3505,15 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3497
3505
|
() => l[t.name],
|
|
3498
3506
|
async (W, te) => {
|
|
3499
3507
|
if (W === te || Je(W)) return;
|
|
3500
|
-
if (G(W) ||
|
|
3501
|
-
if (
|
|
3502
|
-
|
|
3508
|
+
if (G(W) || D(W) || ue(W) && W.length === 0) {
|
|
3509
|
+
if (h.value = [], f.value.multiple ? d.value = [] : d.value = null, ke(d.value), A.value === !0 || Ui(t.prefetch, ["hover", "focus", !1])) return;
|
|
3510
|
+
T.value = setTimeout(() => {
|
|
3503
3511
|
S();
|
|
3504
3512
|
}, 3e3);
|
|
3505
3513
|
return;
|
|
3506
3514
|
}
|
|
3507
3515
|
if (await M(W)) {
|
|
3508
|
-
d.value =
|
|
3516
|
+
d.value = h.value.map((K) => ({
|
|
3509
3517
|
title: K.title,
|
|
3510
3518
|
value: K.value
|
|
3511
3519
|
})), ke(d.value);
|
|
@@ -3514,14 +3522,14 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3514
3522
|
if (ue(W)) {
|
|
3515
3523
|
Y.value = !0;
|
|
3516
3524
|
try {
|
|
3517
|
-
|
|
3525
|
+
h.value = await t.fetchItemsMinimalByIds(
|
|
3518
3526
|
W
|
|
3519
|
-
), d.value =
|
|
3527
|
+
), d.value = h.value.map((K) => ({
|
|
3520
3528
|
title: K.title,
|
|
3521
3529
|
value: K.value
|
|
3522
3530
|
})), ke(d.value);
|
|
3523
3531
|
} catch (K) {
|
|
3524
|
-
|
|
3532
|
+
E(K);
|
|
3525
3533
|
} finally {
|
|
3526
3534
|
Y.value = !1;
|
|
3527
3535
|
}
|
|
@@ -3529,21 +3537,21 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3529
3537
|
}
|
|
3530
3538
|
Y.value = !0;
|
|
3531
3539
|
try {
|
|
3532
|
-
|
|
3540
|
+
h.value = await t.fetchItemsMinimalByIds([W]), d.value = h.value.map((K) => ({
|
|
3533
3541
|
title: K.title,
|
|
3534
3542
|
value: K.value
|
|
3535
3543
|
}))[0], ke(d.value);
|
|
3536
3544
|
} catch (K) {
|
|
3537
|
-
|
|
3545
|
+
E(K);
|
|
3538
3546
|
} finally {
|
|
3539
3547
|
Y.value = !1;
|
|
3540
3548
|
}
|
|
3541
3549
|
},
|
|
3542
3550
|
{ immediate: !0 }
|
|
3543
3551
|
), qa(
|
|
3544
|
-
|
|
3552
|
+
g,
|
|
3545
3553
|
(W, te) => {
|
|
3546
|
-
W.length < t.searchMinChars || W !== te && (
|
|
3554
|
+
W.length < t.searchMinChars || W !== te && (b.value++, $(W, b.value));
|
|
3547
3555
|
},
|
|
3548
3556
|
{ debounce: 300 }
|
|
3549
3557
|
), (W, te) => (P(), X(ra, {
|
|
@@ -3555,16 +3563,16 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3555
3563
|
items: I.value,
|
|
3556
3564
|
"no-filter": "",
|
|
3557
3565
|
placeholder: re.value,
|
|
3558
|
-
multiple:
|
|
3559
|
-
clearable: !
|
|
3560
|
-
label:
|
|
3561
|
-
chips:
|
|
3566
|
+
multiple: f.value.multiple,
|
|
3567
|
+
clearable: !f.value.mandatory,
|
|
3568
|
+
label: w.value,
|
|
3569
|
+
chips: f.value.multiple,
|
|
3562
3570
|
loading: Y.value,
|
|
3563
3571
|
"hide-details": "",
|
|
3564
3572
|
"return-object": "",
|
|
3565
3573
|
autocomplete: "off",
|
|
3566
3574
|
"onUpdate:search": R,
|
|
3567
|
-
onBlur:
|
|
3575
|
+
onBlur: v,
|
|
3568
3576
|
onFocus: y,
|
|
3569
3577
|
onMouseenter: C,
|
|
3570
3578
|
"onClick:clear": Q
|
|
@@ -3580,7 +3588,7 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3580
3588
|
}), null, 16, ["title", "subtitle"])
|
|
3581
3589
|
])
|
|
3582
3590
|
]),
|
|
3583
|
-
chip: B(({ props: q,
|
|
3591
|
+
chip: B(({ props: q, internalItem: K }) => [
|
|
3584
3592
|
we(W.$slots, "chip", {
|
|
3585
3593
|
props: q,
|
|
3586
3594
|
item: K
|
|
@@ -3602,12 +3610,12 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3602
3610
|
emits: ["change"],
|
|
3603
3611
|
setup(e, { emit: n }) {
|
|
3604
3612
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt), i = oa()?.type.__name;
|
|
3605
|
-
if (
|
|
3613
|
+
if (D(r) || D(o) || D(l) || D(s))
|
|
3606
3614
|
throw new Error(`[${i}] Incorrect provide/inject config.`);
|
|
3607
3615
|
if (
|
|
3608
3616
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3609
|
-
|
|
3610
|
-
|
|
3617
|
+
D(s.fields[t.name]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3618
|
+
D(l[t.name])
|
|
3611
3619
|
)
|
|
3612
3620
|
throw new Error(
|
|
3613
3621
|
`[${i}] Incorrect filter config. Name is '${t.name}' and available options are ${Object.keys(l).join(", ")}.`
|
|
@@ -3616,46 +3624,46 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3616
3624
|
get() {
|
|
3617
3625
|
return l[t.name];
|
|
3618
3626
|
},
|
|
3619
|
-
set(
|
|
3620
|
-
l[t.name] =
|
|
3627
|
+
set(c) {
|
|
3628
|
+
l[t.name] = c, b(c), s.touched = !0, a("change");
|
|
3621
3629
|
}
|
|
3622
|
-
}),
|
|
3630
|
+
}), 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
3631
|
p(t.name, l, s), o.value.delete(t.name);
|
|
3624
|
-
},
|
|
3625
|
-
if (ue(
|
|
3626
|
-
if (ue(
|
|
3632
|
+
}, b = (c) => {
|
|
3633
|
+
if (ue(c) && c.length === 0) return;
|
|
3634
|
+
if (ue(c)) {
|
|
3627
3635
|
o.value.set(
|
|
3628
3636
|
t.name,
|
|
3629
|
-
|
|
3630
|
-
const
|
|
3631
|
-
return
|
|
3637
|
+
c.map((v) => {
|
|
3638
|
+
const w = t.items.find((F) => F.value === v);
|
|
3639
|
+
return w ? { title: w.title, value: w.value } : { title: v, value: v };
|
|
3632
3640
|
})
|
|
3633
3641
|
);
|
|
3634
3642
|
return;
|
|
3635
3643
|
}
|
|
3636
|
-
const
|
|
3637
|
-
|
|
3638
|
-
{ title:
|
|
3644
|
+
const f = t.items.find((v) => v.value === c);
|
|
3645
|
+
f && o.value.set(t.name, [
|
|
3646
|
+
{ title: f.title, value: f.value }
|
|
3639
3647
|
]);
|
|
3640
3648
|
};
|
|
3641
3649
|
return Ae(
|
|
3642
3650
|
() => l[t.name],
|
|
3643
|
-
(
|
|
3644
|
-
|
|
3651
|
+
(c, f) => {
|
|
3652
|
+
c === f || Je(c) || b(c);
|
|
3645
3653
|
},
|
|
3646
3654
|
{ immediate: !0 }
|
|
3647
|
-
), (
|
|
3655
|
+
), (c, f) => (P(), X(ra, {
|
|
3648
3656
|
modelValue: u.value,
|
|
3649
|
-
"onUpdate:modelValue":
|
|
3657
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => u.value = v),
|
|
3650
3658
|
items: e.items,
|
|
3651
|
-
chips:
|
|
3652
|
-
label:
|
|
3653
|
-
multiple:
|
|
3654
|
-
clearable: !
|
|
3659
|
+
chips: m.value.multiple,
|
|
3660
|
+
label: g.value,
|
|
3661
|
+
multiple: m.value.multiple,
|
|
3662
|
+
clearable: !m.value.mandatory,
|
|
3655
3663
|
"data-cy": "filter-value",
|
|
3656
3664
|
"hide-details": "",
|
|
3657
3665
|
autocomplete: "off",
|
|
3658
|
-
"onClick:clear": ye(
|
|
3666
|
+
"onClick:clear": ye(T, ["stop"])
|
|
3659
3667
|
}, null, 8, ["modelValue", "items", "chips", "label", "multiple", "clearable"]));
|
|
3660
3668
|
}
|
|
3661
3669
|
}), Vi = /* @__PURE__ */ Se({
|
|
@@ -3670,45 +3678,45 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3670
3678
|
emits: ["change"],
|
|
3671
3679
|
setup(e, { emit: n }) {
|
|
3672
3680
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3673
|
-
if (
|
|
3674
|
-
|
|
3675
|
-
|
|
3676
|
-
|
|
3677
|
-
|
|
3681
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3682
|
+
D(s.fields[t.nameFrom]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3683
|
+
D(s.fields[t.nameUntil]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3684
|
+
D(l[t.nameFrom]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3685
|
+
D(l[t.nameUntil]))
|
|
3678
3686
|
throw new Error("Incorrect provide/inject config.");
|
|
3679
3687
|
const i = U({
|
|
3680
3688
|
get() {
|
|
3681
3689
|
return l[t.nameFrom];
|
|
3682
3690
|
},
|
|
3683
3691
|
set(M) {
|
|
3684
|
-
l[t.nameFrom] = M,
|
|
3692
|
+
l[t.nameFrom] = M, E(M), s.touched = !0, Ye(() => {
|
|
3685
3693
|
a("change");
|
|
3686
3694
|
});
|
|
3687
3695
|
}
|
|
3688
|
-
}), { timeIntervalOptions: u, getTimeIntervalOption:
|
|
3696
|
+
}), { timeIntervalOptions: u, getTimeIntervalOption: m } = xi(t.allowed), d = L(null), g = L(!1), p = L({
|
|
3689
3697
|
from: null,
|
|
3690
3698
|
until: Dn()
|
|
3691
|
-
}),
|
|
3692
|
-
|
|
3693
|
-
},
|
|
3694
|
-
if (
|
|
3699
|
+
}), 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 = () => {
|
|
3700
|
+
T.value = !1, d.value = null, Y();
|
|
3701
|
+
}, h = () => {
|
|
3702
|
+
if (b.value.$touch(), b.value.$invalid) {
|
|
3695
3703
|
F();
|
|
3696
3704
|
return;
|
|
3697
3705
|
}
|
|
3698
|
-
|
|
3706
|
+
T.value = !0, g.value = !1, l[t.nameUntil] = p.value.until, i.value = p.value.from;
|
|
3699
3707
|
}, I = () => {
|
|
3700
|
-
|
|
3708
|
+
g.value = !1, d.value = null;
|
|
3701
3709
|
}, Y = () => {
|
|
3702
|
-
|
|
3703
|
-
},
|
|
3710
|
+
w(t.nameFrom, l, s), w(t.nameUntil, l, s), o.value.delete(t.nameFrom);
|
|
3711
|
+
}, E = (M) => {
|
|
3704
3712
|
if (ue(M) || Je(M)) return;
|
|
3705
|
-
if (G(M) ||
|
|
3713
|
+
if (G(M) || D(M)) {
|
|
3706
3714
|
o.value.delete(t.nameFrom);
|
|
3707
3715
|
return;
|
|
3708
3716
|
}
|
|
3709
|
-
const A =
|
|
3717
|
+
const A = m(M);
|
|
3710
3718
|
if (!A && ya(M)) {
|
|
3711
|
-
const _ =
|
|
3719
|
+
const _ = m(dt.Custom);
|
|
3712
3720
|
o.value.set(t.nameFrom, [
|
|
3713
3721
|
{
|
|
3714
3722
|
title: _.title + ": " + dn(p.value.from) + " - " + dn(p.value.until),
|
|
@@ -3719,24 +3727,24 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3719
3727
|
}
|
|
3720
3728
|
A && o.value.set(t.nameFrom, [{ title: A.title, value: M }]);
|
|
3721
3729
|
}, $ = (M = !1) => {
|
|
3722
|
-
|
|
3730
|
+
b.value.$reset(), M && (p.value.from = null, p.value.until = Dn()), g.value = !0;
|
|
3723
3731
|
};
|
|
3724
3732
|
Ae(
|
|
3725
3733
|
i,
|
|
3726
3734
|
(M) => {
|
|
3727
3735
|
if (ue(M) || Je(M)) return;
|
|
3728
|
-
if (
|
|
3736
|
+
if (T.value = !1, D(M) || G(M)) {
|
|
3729
3737
|
d.value = null;
|
|
3730
3738
|
return;
|
|
3731
3739
|
}
|
|
3732
|
-
const A =
|
|
3733
|
-
!A && ya(i.value) && ya(_) && (d.value = dt.Custom, p.value.from = i.value, p.value.until = _,
|
|
3740
|
+
const A = m(i.value), _ = l[t.nameUntil];
|
|
3741
|
+
!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
3742
|
},
|
|
3735
3743
|
{ immediate: !0 }
|
|
3736
3744
|
), Ae(
|
|
3737
3745
|
[() => l[t.nameFrom], () => l[t.nameUntil]],
|
|
3738
3746
|
([M, A], [_, S]) => {
|
|
3739
|
-
M === _ && A === S ||
|
|
3747
|
+
M === _ && A === S || E(M);
|
|
3740
3748
|
},
|
|
3741
3749
|
{ immediate: !0 }
|
|
3742
3750
|
);
|
|
@@ -3750,9 +3758,9 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3750
3758
|
return (M, A) => {
|
|
3751
3759
|
const _ = Wt("ABtnTertiary"), S = Wt("ABtnPrimary");
|
|
3752
3760
|
return P(), de(qe, null, [
|
|
3753
|
-
|
|
3761
|
+
T.value ? (P(), X(el, {
|
|
3754
3762
|
key: 0,
|
|
3755
|
-
label:
|
|
3763
|
+
label: v.value,
|
|
3756
3764
|
"model-value": H(dn)(p.value.from) + " - " + H(dn)(p.value.until),
|
|
3757
3765
|
readonly: "",
|
|
3758
3766
|
rows: "1",
|
|
@@ -3761,7 +3769,7 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3761
3769
|
"append-inner-icon": "mdi-menu-down",
|
|
3762
3770
|
clearable: "",
|
|
3763
3771
|
class: "cursor-pointer",
|
|
3764
|
-
"onClick:clear": ye(
|
|
3772
|
+
"onClick:clear": ye(k, ["stop"]),
|
|
3765
3773
|
onClick: A[0] || (A[0] = ye((y) => $(), ["stop"]))
|
|
3766
3774
|
}, null, 8, ["label", "model-value"])) : (P(), X(Ko, {
|
|
3767
3775
|
key: 1,
|
|
@@ -3769,14 +3777,14 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3769
3777
|
"onUpdate:modelValue": A[1] || (A[1] = (y) => d.value = y),
|
|
3770
3778
|
"item-title": "title",
|
|
3771
3779
|
"item-value": "value",
|
|
3772
|
-
label:
|
|
3780
|
+
label: v.value,
|
|
3773
3781
|
clearable: !H(G)(d.value),
|
|
3774
3782
|
"no-filter": "",
|
|
3775
3783
|
"data-cy": e.dataCy,
|
|
3776
3784
|
items: H(u),
|
|
3777
3785
|
"hide-details": "",
|
|
3778
3786
|
autocomplete: "off",
|
|
3779
|
-
"onClick:clear": ye(
|
|
3787
|
+
"onClick:clear": ye(k, ["stop"])
|
|
3780
3788
|
}, {
|
|
3781
3789
|
item: B(({ props: y, internalItem: C }) => [
|
|
3782
3790
|
O(Rt, it(y, {
|
|
@@ -3785,7 +3793,7 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3785
3793
|
]),
|
|
3786
3794
|
_: 1
|
|
3787
3795
|
}, 8, ["modelValue", "label", "clearable", "data-cy", "items"])),
|
|
3788
|
-
|
|
3796
|
+
g.value ? (P(), X(Wa, {
|
|
3789
3797
|
key: 2,
|
|
3790
3798
|
"model-value": !0,
|
|
3791
3799
|
width: "auto",
|
|
@@ -3797,7 +3805,7 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3797
3805
|
O(Ja, { onOnCancel: I }, {
|
|
3798
3806
|
default: B(() => [
|
|
3799
3807
|
we(M.$slots, "title", {}, () => [
|
|
3800
|
-
De(fe(
|
|
3808
|
+
De(fe(v.value), 1)
|
|
3801
3809
|
], !0)
|
|
3802
3810
|
]),
|
|
3803
3811
|
_: 3
|
|
@@ -3809,8 +3817,8 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3809
3817
|
O(xo, {
|
|
3810
3818
|
modelValue: p.value.from,
|
|
3811
3819
|
"onUpdate:modelValue": A[2] || (A[2] = (y) => p.value.from = y),
|
|
3812
|
-
v: H(
|
|
3813
|
-
label: H(
|
|
3820
|
+
v: H(b).dialogData.from,
|
|
3821
|
+
label: H(f)("common.filter.timeInterval.from"),
|
|
3814
3822
|
required: ""
|
|
3815
3823
|
}, null, 8, ["modelValue", "v", "label"])
|
|
3816
3824
|
]),
|
|
@@ -3821,8 +3829,8 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3821
3829
|
O(xo, {
|
|
3822
3830
|
modelValue: p.value.until,
|
|
3823
3831
|
"onUpdate:modelValue": A[3] || (A[3] = (y) => p.value.until = y),
|
|
3824
|
-
v: H(
|
|
3825
|
-
label: H(
|
|
3832
|
+
v: H(b).dialogData.until,
|
|
3833
|
+
label: H(f)("common.filter.timeInterval.until"),
|
|
3826
3834
|
required: ""
|
|
3827
3835
|
}, null, 8, ["modelValue", "v", "label"])
|
|
3828
3836
|
]),
|
|
@@ -3839,16 +3847,16 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3839
3847
|
onClick: ye(I, ["stop"])
|
|
3840
3848
|
}, {
|
|
3841
3849
|
default: B(() => [
|
|
3842
|
-
De(fe(H(
|
|
3850
|
+
De(fe(H(f)("common.button.cancel")), 1)
|
|
3843
3851
|
]),
|
|
3844
3852
|
_: 1
|
|
3845
3853
|
}),
|
|
3846
3854
|
O(S, {
|
|
3847
3855
|
"data-cy": "button-confirm",
|
|
3848
|
-
onClick: ye(
|
|
3856
|
+
onClick: ye(h, ["stop"])
|
|
3849
3857
|
}, {
|
|
3850
3858
|
default: B(() => [
|
|
3851
|
-
De(fe(H(
|
|
3859
|
+
De(fe(H(f)("common.button.confirm")), 1)
|
|
3852
3860
|
]),
|
|
3853
3861
|
_: 1
|
|
3854
3862
|
})
|
|
@@ -3882,32 +3890,32 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3882
3890
|
emits: ["change"],
|
|
3883
3891
|
setup(e, { emit: n }) {
|
|
3884
3892
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3885
|
-
if (
|
|
3886
|
-
|
|
3887
|
-
|
|
3893
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3894
|
+
D(s.fields[t.name]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3895
|
+
D(l[t.name]))
|
|
3888
3896
|
throw new Error("Incorrect provide/inject config.");
|
|
3889
3897
|
const i = U({
|
|
3890
3898
|
get() {
|
|
3891
3899
|
return l[t.name];
|
|
3892
3900
|
},
|
|
3893
|
-
set(
|
|
3894
|
-
l[t.name] =
|
|
3901
|
+
set(b) {
|
|
3902
|
+
l[t.name] = b, T(), s.touched = !0, a("change");
|
|
3895
3903
|
}
|
|
3896
|
-
}), { t: u } = Re(),
|
|
3897
|
-
|
|
3898
|
-
},
|
|
3904
|
+
}), { t: u } = Re(), m = U(() => s.fields[t.name]), d = U(() => m.value.titleT ? u(m.value.titleT) : void 0), { clearOne: g } = ct(), p = () => {
|
|
3905
|
+
g(t.name, l, s), o.value.delete(t.name);
|
|
3906
|
+
}, T = () => {
|
|
3899
3907
|
!Oe(i.value) || Oe(i.value) && i.value.length === 0 || o.value.set(t.name, [
|
|
3900
3908
|
{ title: dn(i.value), value: i.value }
|
|
3901
3909
|
]);
|
|
3902
3910
|
};
|
|
3903
|
-
return (
|
|
3911
|
+
return (b, c) => (P(), X(dr, it({
|
|
3904
3912
|
modelValue: i.value,
|
|
3905
|
-
"onUpdate:modelValue":
|
|
3913
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
3906
3914
|
"data-cy": e.dataCy,
|
|
3907
|
-
clearable: !
|
|
3908
|
-
"default-value":
|
|
3915
|
+
clearable: !m.value.mandatory,
|
|
3916
|
+
"default-value": m.value.default,
|
|
3909
3917
|
label: d.value
|
|
3910
|
-
},
|
|
3918
|
+
}, b.$attrs, { onAfterClear: p }), null, 16, ["modelValue", "data-cy", "clearable", "default-value", "label"]));
|
|
3911
3919
|
}
|
|
3912
3920
|
}), ji = /* @__PURE__ */ Se({
|
|
3913
3921
|
__name: "AFilterInteger",
|
|
@@ -3919,20 +3927,20 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3919
3927
|
emits: ["change"],
|
|
3920
3928
|
setup(e, { emit: n }) {
|
|
3921
3929
|
const t = e, a = n, r = J(pt), o = J(ot), s = J(Ke), l = J(tt);
|
|
3922
|
-
if (
|
|
3923
|
-
|
|
3924
|
-
|
|
3930
|
+
if (D(r) || D(o) || D(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3931
|
+
D(s.fields[t.name]) || D(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3932
|
+
D(l[t.name]))
|
|
3925
3933
|
throw new Error("Incorrect provide/inject config.");
|
|
3926
3934
|
const i = U({
|
|
3927
3935
|
get() {
|
|
3928
3936
|
return l[t.name];
|
|
3929
3937
|
},
|
|
3930
|
-
set(
|
|
3931
|
-
l[t.name] =
|
|
3938
|
+
set(c) {
|
|
3939
|
+
l[t.name] = c, s.touched = !0, a("change");
|
|
3932
3940
|
}
|
|
3933
|
-
}), u = U(() => s.fields[t.name]), { t:
|
|
3941
|
+
}), 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
3942
|
p(t.name, l, s), o.value.delete(t.name);
|
|
3935
|
-
},
|
|
3943
|
+
}, b = () => {
|
|
3936
3944
|
if (Gt(i.value)) {
|
|
3937
3945
|
o.value.set(t.name, [
|
|
3938
3946
|
{ title: i.value + "", value: i.value }
|
|
@@ -3949,21 +3957,21 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3949
3957
|
};
|
|
3950
3958
|
return Ae(
|
|
3951
3959
|
() => l[t.name],
|
|
3952
|
-
(
|
|
3953
|
-
|
|
3960
|
+
(c, f) => {
|
|
3961
|
+
c === f || Je(c) || b();
|
|
3954
3962
|
},
|
|
3955
3963
|
{ immediate: !0 }
|
|
3956
|
-
), (
|
|
3964
|
+
), (c, f) => (P(), X(ia, {
|
|
3957
3965
|
modelValue: i.value,
|
|
3958
|
-
"onUpdate:modelValue":
|
|
3966
|
+
"onUpdate:modelValue": f[0] || (f[0] = (v) => i.value = v),
|
|
3959
3967
|
label: d.value,
|
|
3960
|
-
placeholder:
|
|
3968
|
+
placeholder: g.value,
|
|
3961
3969
|
clearable: !u.value.mandatory,
|
|
3962
3970
|
"data-cy": e.dataCy,
|
|
3963
3971
|
"hide-details": "",
|
|
3964
3972
|
autocomplete: "off",
|
|
3965
|
-
onBlur:
|
|
3966
|
-
"onClick:clear": ye(
|
|
3973
|
+
onBlur: b,
|
|
3974
|
+
"onClick:clear": ye(T, ["stop"])
|
|
3967
3975
|
}, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
|
|
3968
3976
|
}
|
|
3969
3977
|
}), pr = /* @__PURE__ */ Se({
|
|
@@ -3973,8 +3981,8 @@ const Yd = /* @__PURE__ */ Se({
|
|
|
3973
3981
|
},
|
|
3974
3982
|
setup(e) {
|
|
3975
3983
|
const n = e, t = J(Ke);
|
|
3976
|
-
if (
|
|
3977
|
-
|
|
3984
|
+
if (D(t) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3985
|
+
D(t.fields[n.name]))
|
|
3978
3986
|
throw new Error("Incorrect provide/inject config.");
|
|
3979
3987
|
const a = U(() => t.fields[n.name]), r = U(() => {
|
|
3980
3988
|
if (a.value.render.skip) return Mo;
|
|
@@ -4024,51 +4032,51 @@ const Zn = {
|
|
|
4024
4032
|
}
|
|
4025
4033
|
function a() {
|
|
4026
4034
|
let l = null, i = 1 / 0;
|
|
4027
|
-
e.value.forEach((u,
|
|
4028
|
-
u.lastUsed < i && (i = u.lastUsed, l =
|
|
4035
|
+
e.value.forEach((u, m) => {
|
|
4036
|
+
u.lastUsed < i && (i = u.lastUsed, l = m);
|
|
4029
4037
|
}), l !== null && e.value.delete(l);
|
|
4030
4038
|
}
|
|
4031
4039
|
async function r(l, i, u = !1) {
|
|
4032
4040
|
n.value = !1;
|
|
4033
|
-
const
|
|
4041
|
+
const m = t(l.layoutType, l.systemResource), d = Date.now();
|
|
4034
4042
|
if (!u) {
|
|
4035
|
-
const
|
|
4036
|
-
if (
|
|
4037
|
-
return
|
|
4043
|
+
const v = e.value.get(m);
|
|
4044
|
+
if (v)
|
|
4045
|
+
return v.lastUsed = d, v.items;
|
|
4038
4046
|
}
|
|
4039
|
-
const { pagination:
|
|
4047
|
+
const { pagination: g } = kn("position", Ct.Asc, {
|
|
4040
4048
|
rowsPerPage: Pa
|
|
4041
|
-
}), { start: p, end:
|
|
4049
|
+
}), { start: p, end: T } = wn(
|
|
4042
4050
|
l.systemResource,
|
|
4043
4051
|
"_"
|
|
4044
|
-
), { filterConfig:
|
|
4045
|
-
|
|
4046
|
-
let
|
|
4052
|
+
), { filterConfig: b, filterData: c } = $o(p, T);
|
|
4053
|
+
c.configType = Zn.FilterBookmark, c.layoutType = l.layoutType, c.systemResource = l.systemResource, c.user = l.user;
|
|
4054
|
+
let f = [];
|
|
4047
4055
|
try {
|
|
4048
|
-
const { executeFetch:
|
|
4049
|
-
|
|
4056
|
+
const { executeFetch: v } = i();
|
|
4057
|
+
f = await v(g, c, b), e.value.set(m, { lastUsed: d, items: f });
|
|
4050
4058
|
} catch {
|
|
4051
4059
|
n.value = !0;
|
|
4052
4060
|
}
|
|
4053
|
-
return e.value.size > Wi && a(),
|
|
4061
|
+
return e.value.size > Wi && a(), f;
|
|
4054
4062
|
}
|
|
4055
4063
|
async function o(l, i) {
|
|
4056
4064
|
n.value = !1;
|
|
4057
4065
|
const { pagination: u } = kn("position", Ct.Asc, {
|
|
4058
4066
|
rowsPerPage: Pa + 1
|
|
4059
|
-
}), { start:
|
|
4067
|
+
}), { start: m, end: d } = wn(
|
|
4060
4068
|
l.systemResource,
|
|
4061
4069
|
"_"
|
|
4062
|
-
), { filterConfig:
|
|
4070
|
+
), { filterConfig: g, filterData: p } = $o(m, d);
|
|
4063
4071
|
p.configType = Zn.FilterBookmark, p.layoutType = l.layoutType, p.systemResource = l.systemResource, p.user = l.user;
|
|
4064
|
-
let
|
|
4072
|
+
let T = 1 / 0;
|
|
4065
4073
|
try {
|
|
4066
|
-
const { executeFetch:
|
|
4067
|
-
|
|
4074
|
+
const { executeFetch: b } = i();
|
|
4075
|
+
T = (await b(u, p, g)).length;
|
|
4068
4076
|
} catch {
|
|
4069
4077
|
n.value = !0;
|
|
4070
4078
|
}
|
|
4071
|
-
return
|
|
4079
|
+
return T;
|
|
4072
4080
|
}
|
|
4073
4081
|
function s(l, i) {
|
|
4074
4082
|
e.value.get(l)?.items.push(i);
|
|
@@ -4082,76 +4090,85 @@ const Zn = {
|
|
|
4082
4090
|
fetchBookmarksCount: o
|
|
4083
4091
|
};
|
|
4084
4092
|
}), rn = (e) => {
|
|
4085
|
-
const {
|
|
4086
|
-
|
|
4093
|
+
const {
|
|
4094
|
+
client: n,
|
|
4095
|
+
method: t,
|
|
4096
|
+
system: a,
|
|
4097
|
+
entity: r,
|
|
4098
|
+
urlTemplate: o,
|
|
4099
|
+
urlParams: s,
|
|
4100
|
+
options: l = {},
|
|
4101
|
+
silentConsoleError: i = !1
|
|
4102
|
+
} = e;
|
|
4103
|
+
let u = null;
|
|
4087
4104
|
return {
|
|
4088
|
-
executeRequest: async (
|
|
4089
|
-
|
|
4090
|
-
const
|
|
4105
|
+
executeRequest: async (g = {}) => {
|
|
4106
|
+
u = new AbortController();
|
|
4107
|
+
const p = g.urlTemplate, T = g.urlParams, b = g.object;
|
|
4091
4108
|
try {
|
|
4092
|
-
const
|
|
4093
|
-
if (
|
|
4094
|
-
|
|
4095
|
-
const
|
|
4109
|
+
const c = { method: t }, f = he(T) ? T : s, v = he(p) ? p : o;
|
|
4110
|
+
if (D(v)) throw new Error("Url template is undefined");
|
|
4111
|
+
c.url = v, v !== "" && !D(f) && (c.url = Mn(v, f)), G(b) || (c.data = JSON.stringify(b));
|
|
4112
|
+
const w = await n().request({
|
|
4096
4113
|
...l,
|
|
4097
|
-
...
|
|
4098
|
-
signal:
|
|
4114
|
+
...c,
|
|
4115
|
+
signal: u.signal
|
|
4099
4116
|
});
|
|
4100
|
-
if (!$n(
|
|
4101
|
-
throw new nn(
|
|
4102
|
-
if (
|
|
4103
|
-
return
|
|
4104
|
-
if (
|
|
4117
|
+
if (!$n(w.status))
|
|
4118
|
+
throw new nn(w.status);
|
|
4119
|
+
if (w.data)
|
|
4120
|
+
return w.data;
|
|
4121
|
+
if (w.status === Qt)
|
|
4105
4122
|
return;
|
|
4106
4123
|
throw new ut();
|
|
4107
|
-
} catch (
|
|
4108
|
-
if (
|
|
4124
|
+
} catch (c) {
|
|
4125
|
+
if (c instanceof DOMException && c.name === "AbortError")
|
|
4109
4126
|
return [];
|
|
4110
|
-
throw eo(
|
|
4127
|
+
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
4128
|
} finally {
|
|
4112
|
-
|
|
4129
|
+
u = null;
|
|
4113
4130
|
}
|
|
4114
4131
|
},
|
|
4115
4132
|
abortRequest: () => {
|
|
4116
|
-
|
|
4133
|
+
u && u.abort();
|
|
4117
4134
|
}
|
|
4118
4135
|
};
|
|
4119
4136
|
}, Fo = "/adm/v1/user-admin-config", Ki = "userAdminConfig";
|
|
4120
4137
|
function gr(e, n, t = Ki, a = Fo) {
|
|
4121
4138
|
return {
|
|
4122
4139
|
useFetchUserAdminConfigList: () => Oi({ client: e, system: n, entity: t, urlTemplate: Fo }),
|
|
4123
|
-
fetchUserAdminConfig: (
|
|
4140
|
+
fetchUserAdminConfig: (m) => {
|
|
4124
4141
|
const { executeRequest: d } = rn({
|
|
4125
4142
|
client: e,
|
|
4126
4143
|
method: "GET",
|
|
4127
4144
|
system: n,
|
|
4128
4145
|
entity: t
|
|
4129
4146
|
});
|
|
4130
|
-
return d({ urlTemplate: a + "/:id", urlParams: { id:
|
|
4147
|
+
return d({ urlTemplate: a + "/:id", urlParams: { id: m } });
|
|
4131
4148
|
},
|
|
4132
|
-
createUserAdminConfig: (
|
|
4149
|
+
createUserAdminConfig: (m) => {
|
|
4133
4150
|
const { executeRequest: d } = rn({
|
|
4134
4151
|
client: e,
|
|
4135
4152
|
method: "POST",
|
|
4136
4153
|
system: n,
|
|
4137
4154
|
entity: t
|
|
4138
4155
|
});
|
|
4139
|
-
return d({ urlTemplate: a, object:
|
|
4156
|
+
return d({ urlTemplate: a, object: m });
|
|
4140
4157
|
},
|
|
4141
|
-
updateUserAdminConfig: (
|
|
4142
|
-
const { executeRequest:
|
|
4158
|
+
updateUserAdminConfig: (m, d) => {
|
|
4159
|
+
const { executeRequest: g } = rn({
|
|
4143
4160
|
client: e,
|
|
4144
4161
|
method: "PUT",
|
|
4145
4162
|
system: n,
|
|
4146
4163
|
entity: t
|
|
4147
4164
|
});
|
|
4148
|
-
return
|
|
4165
|
+
return g({ urlTemplate: a + "/:id", urlParams: { id: m }, object: d });
|
|
4149
4166
|
},
|
|
4150
|
-
deleteUserAdminConfig: (
|
|
4167
|
+
deleteUserAdminConfig: (m) => {
|
|
4151
4168
|
const { executeRequest: d } = rn({ client: e, method: "DELETE", system: n, entity: t });
|
|
4152
|
-
return d({ urlTemplate: a + "/:id", urlParams: { id:
|
|
4169
|
+
return d({ urlTemplate: a + "/:id", urlParams: { id: m } });
|
|
4153
4170
|
},
|
|
4154
|
-
updateUserAdminConfigPositions: (
|
|
4171
|
+
updateUserAdminConfigPositions: (m) => {
|
|
4155
4172
|
const { executeRequest: d } = rn({
|
|
4156
4173
|
client: e,
|
|
4157
4174
|
method: "PATCH",
|
|
@@ -4160,7 +4177,7 @@ function gr(e, n, t = Ki, a = Fo) {
|
|
|
4160
4177
|
});
|
|
4161
4178
|
return d({
|
|
4162
4179
|
urlTemplate: a + "/update-positions",
|
|
4163
|
-
object: { userAdminConfigs:
|
|
4180
|
+
object: { userAdminConfigs: m }
|
|
4164
4181
|
});
|
|
4165
4182
|
}
|
|
4166
4183
|
};
|
|
@@ -4182,30 +4199,30 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4182
4199
|
emits: /* @__PURE__ */ mt(["submit"], ["update:datatableHiddenColumns"]),
|
|
4183
4200
|
setup(e, { emit: n }) {
|
|
4184
4201
|
const t = e, a = n, r = Tt(e, "datatableHiddenColumns"), o = J(Ke), s = J(tt), l = J(mr), i = J(ot);
|
|
4185
|
-
if (
|
|
4202
|
+
if (D(l) || D(o) || D(s) || D(i))
|
|
4186
4203
|
throw new Error("Incorrect provide/inject config.");
|
|
4187
|
-
const u = L(!1),
|
|
4204
|
+
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
4205
|
u.value = !0, await p.getBookmarks(
|
|
4189
4206
|
{
|
|
4190
4207
|
user: t.userId,
|
|
4191
4208
|
layoutType: Ft.Desktop,
|
|
4192
|
-
systemResource:
|
|
4209
|
+
systemResource: b
|
|
4193
4210
|
},
|
|
4194
|
-
|
|
4195
|
-
|
|
4211
|
+
T,
|
|
4212
|
+
h
|
|
4196
4213
|
), u.value = !1;
|
|
4197
|
-
}, { deserializeFilters:
|
|
4198
|
-
const I =
|
|
4214
|
+
}, { deserializeFilters: f } = fr(s, o), v = (h) => {
|
|
4215
|
+
const I = h.data;
|
|
4199
4216
|
he(I.datatableHiddenColumns) && he(r.value) && (r.value = I.datatableHiddenColumns), he(I.sortBy) && (l.value = {
|
|
4200
4217
|
...l.value,
|
|
4201
4218
|
sortBy: { key: I.sortBy.key, order: I.sortBy.order }
|
|
4202
4219
|
});
|
|
4203
|
-
const Y =
|
|
4220
|
+
const Y = f(I.filter);
|
|
4204
4221
|
if (!G(Y)) {
|
|
4205
|
-
for (const
|
|
4206
|
-
const $ =
|
|
4222
|
+
for (const E in s) {
|
|
4223
|
+
const $ = E;
|
|
4207
4224
|
let N = Y.filters[$];
|
|
4208
|
-
if (
|
|
4225
|
+
if (D(N) && o.fields[$]?.clearable) {
|
|
4209
4226
|
s[$] = $e(o.fields[$].default), i.value.delete($);
|
|
4210
4227
|
continue;
|
|
4211
4228
|
}
|
|
@@ -4222,51 +4239,51 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4222
4239
|
}
|
|
4223
4240
|
a("submit");
|
|
4224
4241
|
}
|
|
4225
|
-
},
|
|
4226
|
-
const I =
|
|
4242
|
+
}, w = async (h) => {
|
|
4243
|
+
const I = m.value;
|
|
4227
4244
|
if (G(I)) return;
|
|
4228
|
-
|
|
4229
|
-
let Y = 0,
|
|
4245
|
+
g.value = 1e3, await Ye();
|
|
4246
|
+
let Y = 0, E = 0;
|
|
4230
4247
|
for (let $ = 0; $ < I.children.length; $++) {
|
|
4231
4248
|
const M = I.children[$].offsetWidth;
|
|
4232
|
-
if (Y += M, Y >=
|
|
4249
|
+
if (Y += M, Y >= h - Xi)
|
|
4233
4250
|
break;
|
|
4234
|
-
|
|
4251
|
+
E++;
|
|
4235
4252
|
}
|
|
4236
|
-
|
|
4253
|
+
g.value = E;
|
|
4237
4254
|
};
|
|
4238
|
-
zr(
|
|
4239
|
-
|
|
4255
|
+
zr(m, (h) => {
|
|
4256
|
+
h[0] && (d.value = h[0].contentRect.width);
|
|
4240
4257
|
}), Wr(
|
|
4241
4258
|
d,
|
|
4242
|
-
(
|
|
4243
|
-
|
|
4259
|
+
(h, I) => {
|
|
4260
|
+
h !== I && w(h);
|
|
4244
4261
|
},
|
|
4245
4262
|
{ throttle: 1e3 }
|
|
4246
4263
|
);
|
|
4247
4264
|
const F = U(() => {
|
|
4248
|
-
const
|
|
4249
|
-
return p.bookmarks.get(
|
|
4250
|
-
}),
|
|
4251
|
-
const
|
|
4265
|
+
const h = p.generateKey(Ft.Desktop, b);
|
|
4266
|
+
return p.bookmarks.get(h)?.items ?? [];
|
|
4267
|
+
}), k = U(() => {
|
|
4268
|
+
const h = g.value;
|
|
4252
4269
|
return {
|
|
4253
|
-
visible: F.value.slice(0,
|
|
4254
|
-
hidden: F.value.slice(
|
|
4270
|
+
visible: F.value.slice(0, h),
|
|
4271
|
+
hidden: F.value.slice(h)
|
|
4255
4272
|
};
|
|
4256
4273
|
});
|
|
4257
|
-
return Ae([u, () => F.value.length], ([
|
|
4258
|
-
|
|
4259
|
-
|
|
4274
|
+
return Ae([u, () => F.value.length], ([h]) => {
|
|
4275
|
+
h === !0 || G(m.value) || (d.value = m.value.clientWidth, Ye(() => {
|
|
4276
|
+
w(d.value);
|
|
4260
4277
|
}));
|
|
4261
4278
|
}), ja(() => {
|
|
4262
|
-
|
|
4263
|
-
}), (
|
|
4279
|
+
c();
|
|
4280
|
+
}), (h, I) => (P(), de("div", {
|
|
4264
4281
|
ref: "toolbar",
|
|
4265
4282
|
key: F.value.length,
|
|
4266
4283
|
class: "w-100 d-flex overflow-hidden align-center mb-1"
|
|
4267
4284
|
}, [
|
|
4268
4285
|
u.value ? (P(), de("div", Gi)) : (P(), de(qe, { key: 1 }, [
|
|
4269
|
-
(P(!0), de(qe, null, Bt(
|
|
4286
|
+
(P(!0), de(qe, null, Bt(k.value.visible, (Y) => (P(), de("div", {
|
|
4270
4287
|
key: Y.id,
|
|
4271
4288
|
class: "white-space-nowrap"
|
|
4272
4289
|
}, [
|
|
@@ -4275,7 +4292,7 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4275
4292
|
"prepend-icon": "mdi-bookmark-outline",
|
|
4276
4293
|
size: "small",
|
|
4277
4294
|
class: "mr-1 mb-1 bg-grey-lighten-4 text-grey-darken-3",
|
|
4278
|
-
onClick: (
|
|
4295
|
+
onClick: (E) => v(Y)
|
|
4279
4296
|
}, {
|
|
4280
4297
|
default: B(() => [
|
|
4281
4298
|
De(fe(Y.customName), 1)
|
|
@@ -4283,7 +4300,7 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4283
4300
|
_: 2
|
|
4284
4301
|
}, 1032, ["onClick"])
|
|
4285
4302
|
]))), 128)),
|
|
4286
|
-
|
|
4303
|
+
k.value.hidden.length > 0 ? (P(), X(Ka, {
|
|
4287
4304
|
key: 0,
|
|
4288
4305
|
location: "bottom"
|
|
4289
4306
|
}, {
|
|
@@ -4298,9 +4315,9 @@ const Gi = { key: 0 }, Xi = 32, br = /* @__PURE__ */ Se({
|
|
|
4298
4315
|
default: B(() => [
|
|
4299
4316
|
O(zo, { density: "compact" }, {
|
|
4300
4317
|
default: B(() => [
|
|
4301
|
-
(P(!0), de(qe, null, Bt(
|
|
4318
|
+
(P(!0), de(qe, null, Bt(k.value.hidden, (Y) => (P(), X(Rt, {
|
|
4302
4319
|
key: Y.id,
|
|
4303
|
-
onClick: (
|
|
4320
|
+
onClick: (E) => v(Y)
|
|
4304
4321
|
}, {
|
|
4305
4322
|
default: B(() => [
|
|
4306
4323
|
O(Qr, null, {
|
|
@@ -4491,18 +4508,18 @@ function ft() {
|
|
|
4491
4508
|
}
|
|
4492
4509
|
function Le(e, n, t, a, r) {
|
|
4493
4510
|
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,
|
|
4511
|
+
var o, s, l, i, u, m, d;
|
|
4512
|
+
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
4513
|
do
|
|
4497
4514
|
if (r && r.getBoundingClientRect && (ne(r, "transform") !== "none" || t && ne(r, "position") !== "static")) {
|
|
4498
|
-
var
|
|
4499
|
-
s -=
|
|
4515
|
+
var g = r.getBoundingClientRect();
|
|
4516
|
+
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
4517
|
break;
|
|
4501
4518
|
}
|
|
4502
4519
|
while (r = r.parentNode);
|
|
4503
4520
|
if (a && e !== window) {
|
|
4504
|
-
var p = zt(r || e),
|
|
4505
|
-
p && (s /=
|
|
4521
|
+
var p = zt(r || e), T = p && p.a, b = p && p.d;
|
|
4522
|
+
p && (s /= b, l /= T, d /= T, m /= b, i = s + m, u = l + d);
|
|
4506
4523
|
}
|
|
4507
4524
|
return {
|
|
4508
4525
|
top: s,
|
|
@@ -4510,7 +4527,7 @@ function Le(e, n, t, a, r) {
|
|
|
4510
4527
|
bottom: i,
|
|
4511
4528
|
right: u,
|
|
4512
4529
|
width: d,
|
|
4513
|
-
height:
|
|
4530
|
+
height: m
|
|
4514
4531
|
};
|
|
4515
4532
|
}
|
|
4516
4533
|
}
|
|
@@ -4658,9 +4675,9 @@ function lu() {
|
|
|
4658
4675
|
}
|
|
4659
4676
|
var o = !1, s = 0;
|
|
4660
4677
|
e.forEach(function(l) {
|
|
4661
|
-
var i = 0, u = l.target,
|
|
4662
|
-
|
|
4663
|
-
(
|
|
4678
|
+
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);
|
|
4679
|
+
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
|
|
4680
|
+
(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
4681
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
4665
4682
|
}, i), u.thisAnimationDuration = i);
|
|
4666
4683
|
}), clearTimeout(n), o ? n = setTimeout(function() {
|
|
@@ -4670,8 +4687,8 @@ function lu() {
|
|
|
4670
4687
|
animate: function(a, r, o, s) {
|
|
4671
4688
|
if (s) {
|
|
4672
4689
|
ne(a, "transition", ""), ne(a, "transform", "");
|
|
4673
|
-
var l = zt(this.el), i = l && l.a, u = l && l.d,
|
|
4674
|
-
a.animatingX = !!
|
|
4690
|
+
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);
|
|
4691
|
+
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
4692
|
ne(a, "transition", ""), ne(a, "transform", ""), a.animated = !1, a.animatingX = !1, a.animatingY = !1;
|
|
4676
4693
|
}, s);
|
|
4677
4694
|
}
|
|
@@ -4737,17 +4754,17 @@ var Ut = [], ka = {
|
|
|
4737
4754
|
}
|
|
4738
4755
|
};
|
|
4739
4756
|
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,
|
|
4757
|
+
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
4758
|
if (n = n || t && t[We], !!n) {
|
|
4742
|
-
var
|
|
4743
|
-
window.CustomEvent && !wt && !Fn ?
|
|
4759
|
+
var b, c = n.options, f = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
4760
|
+
window.CustomEvent && !wt && !Fn ? b = new CustomEvent(a, {
|
|
4744
4761
|
bubbles: !0,
|
|
4745
4762
|
cancelable: !0
|
|
4746
|
-
}) : (
|
|
4747
|
-
var
|
|
4748
|
-
for (var
|
|
4749
|
-
|
|
4750
|
-
t && t.dispatchEvent(
|
|
4763
|
+
}) : (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;
|
|
4764
|
+
var v = vt(vt({}, T), On.getEventProperties(a, n));
|
|
4765
|
+
for (var w in v)
|
|
4766
|
+
b[w] = v[w];
|
|
4767
|
+
t && t.dispatchEvent(b), c[f] && c[f].call(n, b);
|
|
4751
4768
|
}
|
|
4752
4769
|
}
|
|
4753
4770
|
var cu = ["evt"], ze = function(n, t) {
|
|
@@ -4806,7 +4823,7 @@ var V, Fe, oe, _e, It, jn, Me, kt, qt, Xe, bn, Dt, Pn, Ve, Ht = !1, Qn = !1, ea
|
|
|
4806
4823
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
4807
4824
|
}
|
|
4808
4825
|
})(), 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,
|
|
4826
|
+
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
4827
|
if (a.display === "flex")
|
|
4811
4828
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
4812
4829
|
if (a.display === "grid")
|
|
@@ -4815,7 +4832,7 @@ var V, Fe, oe, _e, It, jn, Me, kt, qt, Xe, bn, Dt, Pn, Ve, Ht = !1, Qn = !1, ea
|
|
|
4815
4832
|
var d = l.float === "left" ? "left" : "right";
|
|
4816
4833
|
return s && (i.clear === "both" || i.clear === d) ? "vertical" : "horizontal";
|
|
4817
4834
|
}
|
|
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 +
|
|
4835
|
+
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
4836
|
}, fu = function(n, t, a) {
|
|
4820
4837
|
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
4838
|
return r === l || o === i || r + s / 2 === l + u / 2;
|
|
@@ -4831,7 +4848,7 @@ var V, Fe, oe, _e, It, jn, Me, kt, qt, Xe, bn, Dt, Pn, Ve, Ht = !1, Qn = !1, ea
|
|
|
4831
4848
|
}), a;
|
|
4832
4849
|
}, _r = function(n) {
|
|
4833
4850
|
function t(o, s) {
|
|
4834
|
-
return function(l, i, u,
|
|
4851
|
+
return function(l, i, u, m) {
|
|
4835
4852
|
var d = l.options.group.name && i.options.group.name && l.options.group.name === i.options.group.name;
|
|
4836
4853
|
if (o == null && (s || d))
|
|
4837
4854
|
return !0;
|
|
@@ -4840,9 +4857,9 @@ var V, Fe, oe, _e, It, jn, Me, kt, qt, Xe, bn, Dt, Pn, Ve, Ht = !1, Qn = !1, ea
|
|
|
4840
4857
|
if (s && o === "clone")
|
|
4841
4858
|
return o;
|
|
4842
4859
|
if (typeof o == "function")
|
|
4843
|
-
return t(o(l, i, u,
|
|
4844
|
-
var
|
|
4845
|
-
return o === !0 || typeof o == "string" && o ===
|
|
4860
|
+
return t(o(l, i, u, m), s)(l, i, u, m);
|
|
4861
|
+
var g = (s ? l : i).options.group.name;
|
|
4862
|
+
return o === !0 || typeof o == "string" && o === g || o.join && o.indexOf(g) > -1;
|
|
4846
4863
|
};
|
|
4847
4864
|
}
|
|
4848
4865
|
var a = {}, r = n.group;
|
|
@@ -4941,10 +4958,10 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
4941
4958
|
},
|
|
4942
4959
|
_onTapStart: function(n) {
|
|
4943
4960
|
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,
|
|
4961
|
+
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
4962
|
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 (
|
|
4963
|
+
if (qt = at(i), bn = at(i, r.draggable), typeof m == "function") {
|
|
4964
|
+
if (m.call(this, n, i, this)) {
|
|
4948
4965
|
je({
|
|
4949
4966
|
sortable: t,
|
|
4950
4967
|
rootEl: u,
|
|
@@ -4957,7 +4974,7 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
4957
4974
|
}), o && n.preventDefault();
|
|
4958
4975
|
return;
|
|
4959
4976
|
}
|
|
4960
|
-
} else if (
|
|
4977
|
+
} else if (m && (m = m.split(",").some(function(d) {
|
|
4961
4978
|
if (d = st(u, d.trim(), a, !1), d)
|
|
4962
4979
|
return je({
|
|
4963
4980
|
sortable: t,
|
|
@@ -4969,7 +4986,7 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
4969
4986
|
}), ze("filter", t, {
|
|
4970
4987
|
evt: n
|
|
4971
4988
|
}), !0;
|
|
4972
|
-
}),
|
|
4989
|
+
}), m)) {
|
|
4973
4990
|
o && n.preventDefault();
|
|
4974
4991
|
return;
|
|
4975
4992
|
}
|
|
@@ -4997,8 +5014,8 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
4997
5014
|
name: "choose",
|
|
4998
5015
|
originalEvent: n
|
|
4999
5016
|
}), Ge(V, s.chosenClass, !0);
|
|
5000
|
-
}, s.ignore.split(",").forEach(function(
|
|
5001
|
-
wr(V,
|
|
5017
|
+
}, s.ignore.split(",").forEach(function(m) {
|
|
5018
|
+
wr(V, m.trim(), xa);
|
|
5002
5019
|
}), 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
5020
|
evt: n
|
|
5004
5021
|
}), s.delay && (!s.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Fn || wt))) {
|
|
@@ -5069,23 +5086,23 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
5069
5086
|
},
|
|
5070
5087
|
_onTouchMove: function(n) {
|
|
5071
5088
|
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),
|
|
5089
|
+
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
5090
|
if (!ae.active && !Ht) {
|
|
5074
5091
|
if (a && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < a)
|
|
5075
5092
|
return;
|
|
5076
5093
|
this._onDragStart(n, !0);
|
|
5077
5094
|
}
|
|
5078
5095
|
if (oe) {
|
|
5079
|
-
s ? (s.e +=
|
|
5096
|
+
s ? (s.e += m - (Ea || 0), s.f += d - (Ta || 0)) : s = {
|
|
5080
5097
|
a: 1,
|
|
5081
5098
|
b: 0,
|
|
5082
5099
|
c: 0,
|
|
5083
5100
|
d: 1,
|
|
5084
|
-
e:
|
|
5101
|
+
e: m,
|
|
5085
5102
|
f: d
|
|
5086
5103
|
};
|
|
5087
|
-
var
|
|
5088
|
-
ne(oe, "webkitTransform",
|
|
5104
|
+
var g = "matrix(".concat(s.a, ",").concat(s.b, ",").concat(s.c, ",").concat(s.d, ",").concat(s.e, ",").concat(s.f, ")");
|
|
5105
|
+
ne(oe, "webkitTransform", g), ne(oe, "mozTransform", g), ne(oe, "msTransform", g), ne(oe, "transform", g), Ea = m, Ta = d, lt = o;
|
|
5089
5106
|
}
|
|
5090
5107
|
n.cancelable && n.preventDefault();
|
|
5091
5108
|
}
|
|
@@ -5118,39 +5135,39 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
5118
5135
|
},
|
|
5119
5136
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
5120
5137
|
_onDragOver: function(n) {
|
|
5121
|
-
var t = this.el, a = n.target, r, o, s, l = this.options, i = l.group, u = ae.active,
|
|
5138
|
+
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
5139
|
if (Na) return;
|
|
5123
|
-
function
|
|
5124
|
-
ze(x,
|
|
5140
|
+
function c(x, R) {
|
|
5141
|
+
ze(x, T, vt({
|
|
5125
5142
|
evt: n,
|
|
5126
|
-
isOwner:
|
|
5143
|
+
isOwner: m,
|
|
5127
5144
|
axis: p ? "vertical" : "horizontal",
|
|
5128
5145
|
revert: s,
|
|
5129
5146
|
dragRect: r,
|
|
5130
5147
|
targetRect: o,
|
|
5131
5148
|
canSort: d,
|
|
5132
|
-
fromSortable:
|
|
5149
|
+
fromSortable: g,
|
|
5133
5150
|
target: a,
|
|
5134
|
-
completed:
|
|
5151
|
+
completed: v,
|
|
5135
5152
|
onMove: function(Q, re) {
|
|
5136
5153
|
return Yn(_e, t, V, r, Q, Le(Q), n, re);
|
|
5137
5154
|
},
|
|
5138
|
-
changed:
|
|
5155
|
+
changed: w
|
|
5139
5156
|
}, R));
|
|
5140
5157
|
}
|
|
5141
|
-
function
|
|
5142
|
-
|
|
5158
|
+
function f() {
|
|
5159
|
+
c("dragOverAnimationCapture"), T.captureAnimationState(), T !== g && g.captureAnimationState();
|
|
5143
5160
|
}
|
|
5144
|
-
function
|
|
5145
|
-
return
|
|
5161
|
+
function v(x) {
|
|
5162
|
+
return c("dragOverCompleted", {
|
|
5146
5163
|
insertion: x
|
|
5147
|
-
}), x && (
|
|
5148
|
-
|
|
5149
|
-
}),
|
|
5164
|
+
}), 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() {
|
|
5165
|
+
c("dragOverAnimationComplete"), T._ignoreWhileAnimating = null;
|
|
5166
|
+
}), 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
5167
|
}
|
|
5151
|
-
function
|
|
5168
|
+
function w() {
|
|
5152
5169
|
Xe = at(V), Dt = at(V, l.draggable), je({
|
|
5153
|
-
sortable:
|
|
5170
|
+
sortable: T,
|
|
5154
5171
|
name: "change",
|
|
5155
5172
|
toEl: t,
|
|
5156
5173
|
newIndex: Xe,
|
|
@@ -5158,47 +5175,47 @@ ae.prototype = /** @lends Sortable.prototype */
|
|
|
5158
5175
|
originalEvent: n
|
|
5159
5176
|
});
|
|
5160
5177
|
}
|
|
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),
|
|
5178
|
+
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = st(a, l.draggable, t, !0), c("dragOver"), ae.eventCanceled) return b;
|
|
5179
|
+
if (V.contains(n.target) || a.animated && a.animatingX && a.animatingY || T._ignoreWhileAnimating === a)
|
|
5180
|
+
return v(!1);
|
|
5181
|
+
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))) {
|
|
5182
|
+
if (p = this._getDirection(n, a) === "vertical", r = Le(V), c("dragOverValid"), ae.eventCanceled) return b;
|
|
5166
5183
|
if (s)
|
|
5167
|
-
return Fe = _e,
|
|
5184
|
+
return Fe = _e, f(), this._hideClone(), c("revert"), ae.eventCanceled || (It ? _e.insertBefore(V, It) : _e.appendChild(V)), v(!0);
|
|
5168
5185
|
var F = io(t, l.draggable);
|
|
5169
5186
|
if (!F || bu(n, p, this) && !F.animated) {
|
|
5170
5187
|
if (F === V)
|
|
5171
|
-
return
|
|
5188
|
+
return v(!1);
|
|
5172
5189
|
if (F && t === n.target && (a = F), a && (o = Le(a)), Yn(_e, t, V, r, a, o, n, !!a) !== !1)
|
|
5173
|
-
return
|
|
5190
|
+
return f(), F && F.nextSibling ? t.insertBefore(V, F.nextSibling) : t.appendChild(V), Fe = t, w(), v(!0);
|
|
5174
5191
|
} else if (F && gu(n, p, this)) {
|
|
5175
|
-
var
|
|
5176
|
-
if (
|
|
5177
|
-
return
|
|
5178
|
-
if (a =
|
|
5179
|
-
return
|
|
5192
|
+
var k = Xt(t, 0, l, !0);
|
|
5193
|
+
if (k === V)
|
|
5194
|
+
return v(!1);
|
|
5195
|
+
if (a = k, o = Le(a), Yn(_e, t, V, r, a, o, n, !1) !== !1)
|
|
5196
|
+
return f(), t.insertBefore(V, k), Fe = t, w(), v(!0);
|
|
5180
5197
|
} else if (a.parentNode === t) {
|
|
5181
5198
|
o = Le(a);
|
|
5182
|
-
var
|
|
5183
|
-
Vt !== a && (I = o[$], Cn = !1, Ln = !
|
|
5199
|
+
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;
|
|
5200
|
+
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
5201
|
var A;
|
|
5185
|
-
if (
|
|
5202
|
+
if (h !== 0) {
|
|
5186
5203
|
var _ = at(V);
|
|
5187
5204
|
do
|
|
5188
|
-
_ -=
|
|
5205
|
+
_ -= h, A = Fe.children[_];
|
|
5189
5206
|
while (A && (ne(A, "display") === "none" || A === oe));
|
|
5190
5207
|
}
|
|
5191
|
-
if (
|
|
5192
|
-
return
|
|
5193
|
-
Vt = a, yn =
|
|
5208
|
+
if (h === 0 || A === a)
|
|
5209
|
+
return v(!1);
|
|
5210
|
+
Vt = a, yn = h;
|
|
5194
5211
|
var S = a.nextElementSibling, y = !1;
|
|
5195
|
-
y =
|
|
5212
|
+
y = h === 1;
|
|
5196
5213
|
var C = Yn(_e, t, V, r, a, o, n, y);
|
|
5197
5214
|
if (C !== !1)
|
|
5198
|
-
return (C === 1 || C === -1) && (y = C === 1), Na = !0, setTimeout(hu, 30),
|
|
5215
|
+
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
5216
|
}
|
|
5200
5217
|
if (t.contains(V))
|
|
5201
|
-
return
|
|
5218
|
+
return v(!1);
|
|
5202
5219
|
}
|
|
5203
5220
|
return !1;
|
|
5204
5221
|
},
|
|
@@ -5368,11 +5385,11 @@ function pu(e) {
|
|
|
5368
5385
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
5369
5386
|
}
|
|
5370
5387
|
function Yn(e, n, t, a, r, o, s, l) {
|
|
5371
|
-
var i, u = e[We],
|
|
5388
|
+
var i, u = e[We], m = u.options.onMove, d;
|
|
5372
5389
|
return window.CustomEvent && !wt && !Fn ? i = new CustomEvent("move", {
|
|
5373
5390
|
bubbles: !0,
|
|
5374
5391
|
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),
|
|
5392
|
+
}) : (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
5393
|
}
|
|
5377
5394
|
function xa(e) {
|
|
5378
5395
|
e.draggable = !1;
|
|
@@ -5389,17 +5406,17 @@ function bu(e, n, t) {
|
|
|
5389
5406
|
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
5407
|
}
|
|
5391
5408
|
function yu(e, n, t, a, r, o, s, l) {
|
|
5392
|
-
var i = a ? e.clientY : e.clientX, u = a ? t.height : t.width,
|
|
5409
|
+
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
5410
|
if (!s) {
|
|
5394
5411
|
if (l && qn < u * r) {
|
|
5395
|
-
if (!Cn && (yn === 1 ? i >
|
|
5396
|
-
|
|
5397
|
-
else if (yn === 1 ? i <
|
|
5412
|
+
if (!Cn && (yn === 1 ? i > m + u * o / 2 : i < d - u * o / 2) && (Cn = !0), Cn)
|
|
5413
|
+
g = !0;
|
|
5414
|
+
else if (yn === 1 ? i < m + qn : i > d - qn)
|
|
5398
5415
|
return -yn;
|
|
5399
|
-
} else if (i >
|
|
5416
|
+
} else if (i > m + u * (1 - r) / 2 && i < d - u * (1 - r) / 2)
|
|
5400
5417
|
return Cu(n);
|
|
5401
5418
|
}
|
|
5402
|
-
return
|
|
5419
|
+
return g = g || s, g && (i < m + u * o / 2 || i > d - u * o / 2) ? i > m + u / 2 ? 1 : -1 : 0;
|
|
5403
5420
|
}
|
|
5404
5421
|
function Cu(e) {
|
|
5405
5422
|
return at(V) < at(e) ? 1 : -1;
|
|
@@ -5524,24 +5541,24 @@ function Vo() {
|
|
|
5524
5541
|
}
|
|
5525
5542
|
var Ma = Dr(function(e, n, t, a) {
|
|
5526
5543
|
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,
|
|
5544
|
+
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;
|
|
5545
|
+
Ua !== t && (Ua = t, Wn(), mn = n.scroll, m = n.scrollFn, mn === !0 && (mn = Et(t, !0)));
|
|
5546
|
+
var d = 0, g = mn;
|
|
5530
5547
|
do {
|
|
5531
|
-
var p =
|
|
5532
|
-
p === i ? (
|
|
5533
|
-
var M =
|
|
5548
|
+
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;
|
|
5549
|
+
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"));
|
|
5550
|
+
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
5551
|
if (!Pe[d])
|
|
5535
5552
|
for (var _ = 0; _ <= d; _++)
|
|
5536
5553
|
Pe[_] || (Pe[_] = {});
|
|
5537
5554
|
(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
5555
|
a && this.layer === 0 && ae.active._onTouchMove(na);
|
|
5539
5556
|
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
|
|
5557
|
+
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
5558
|
}).bind({
|
|
5542
5559
|
layer: d
|
|
5543
5560
|
}), 24))), d++;
|
|
5544
|
-
} while (n.bubbleScroll &&
|
|
5561
|
+
} while (n.bubbleScroll && g !== i && (g = Et(g, !1)));
|
|
5545
5562
|
Va = u;
|
|
5546
5563
|
}
|
|
5547
5564
|
}, 30), $r = function(n) {
|
|
@@ -5549,7 +5566,7 @@ var Ma = Dr(function(e, n, t, a) {
|
|
|
5549
5566
|
if (t) {
|
|
5550
5567
|
var u = a || o;
|
|
5551
5568
|
l();
|
|
5552
|
-
var
|
|
5569
|
+
var m = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, d = document.elementFromPoint(m.clientX, m.clientY);
|
|
5553
5570
|
i(), u && !u.el.contains(d) && (s("spill"), this.onSpill({
|
|
5554
5571
|
dragEl: r,
|
|
5555
5572
|
putSortable: a
|
|
@@ -5591,38 +5608,38 @@ ae.mount(new Du());
|
|
|
5591
5608
|
ae.mount(co, uo);
|
|
5592
5609
|
function ku(e, n, t = {}) {
|
|
5593
5610
|
let a;
|
|
5594
|
-
const { document: r = Kr, watchElement: o = !1, ...s } = t, l = { onUpdate: (
|
|
5595
|
-
Au(n,
|
|
5611
|
+
const { document: r = Kr, watchElement: o = !1, ...s } = t, l = { onUpdate: (b) => {
|
|
5612
|
+
Au(n, b.oldIndex, b.newIndex, b);
|
|
5596
5613
|
} }, i = U(() => typeof e == "string" ? r?.querySelector(e) : Gr(e)), u = () => {
|
|
5597
5614
|
a?.destroy(), a = void 0;
|
|
5598
|
-
},
|
|
5599
|
-
!
|
|
5615
|
+
}, m = (b) => {
|
|
5616
|
+
!b || a !== void 0 || (a = new ae(b, {
|
|
5600
5617
|
...l,
|
|
5601
5618
|
...s
|
|
5602
5619
|
}));
|
|
5603
5620
|
}, d = () => {
|
|
5604
|
-
const
|
|
5605
|
-
|
|
5606
|
-
},
|
|
5607
|
-
if (
|
|
5608
|
-
else return a?.option(
|
|
5621
|
+
const b = i.value;
|
|
5622
|
+
b && m(b);
|
|
5623
|
+
}, g = (b, c) => {
|
|
5624
|
+
if (c !== void 0) a?.option(b, c);
|
|
5625
|
+
else return a?.option(b);
|
|
5609
5626
|
};
|
|
5610
5627
|
let p;
|
|
5611
|
-
o && typeof e != "string" ? p = Ae(i, (
|
|
5612
|
-
u(),
|
|
5628
|
+
o && typeof e != "string" ? p = Ae(i, (b) => {
|
|
5629
|
+
u(), b && m(b);
|
|
5613
5630
|
}, {
|
|
5614
5631
|
immediate: !0,
|
|
5615
5632
|
flush: "post"
|
|
5616
5633
|
}) : Xr(d);
|
|
5617
|
-
const
|
|
5634
|
+
const T = () => {
|
|
5618
5635
|
u();
|
|
5619
5636
|
};
|
|
5620
5637
|
return Zr(() => {
|
|
5621
5638
|
p?.(), u();
|
|
5622
5639
|
}), {
|
|
5623
|
-
stop:
|
|
5640
|
+
stop: T,
|
|
5624
5641
|
start: d,
|
|
5625
|
-
option:
|
|
5642
|
+
option: g
|
|
5626
5643
|
};
|
|
5627
5644
|
}
|
|
5628
5645
|
function Eu(e, n, t) {
|
|
@@ -5699,7 +5716,7 @@ function Ou(e, n, t) {
|
|
|
5699
5716
|
}
|
|
5700
5717
|
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
5718
|
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),
|
|
5719
|
+
const r = L(!1), o = L(null), s = L(null), l = L(Bu()), i = L(null), u = L(0), m = L(t.dirty);
|
|
5703
5720
|
function d(A, _) {
|
|
5704
5721
|
return {
|
|
5705
5722
|
key: A[t.keyField],
|
|
@@ -5707,71 +5724,71 @@ function Nu(e, n, t, a) {
|
|
|
5707
5724
|
raw: A
|
|
5708
5725
|
};
|
|
5709
5726
|
}
|
|
5710
|
-
const
|
|
5711
|
-
u.value++,
|
|
5727
|
+
const g = U(() => e.value.map((A, _) => d(A, _))), p = (A = void 0) => {
|
|
5728
|
+
u.value++, D(A) || a("update:modelValue", A), Ye(() => {
|
|
5712
5729
|
n();
|
|
5713
5730
|
});
|
|
5714
|
-
},
|
|
5715
|
-
|
|
5716
|
-
},
|
|
5717
|
-
|
|
5718
|
-
},
|
|
5731
|
+
}, T = (A) => {
|
|
5732
|
+
m.value.add(A);
|
|
5733
|
+
}, b = (A) => {
|
|
5734
|
+
m.value.delete(A);
|
|
5735
|
+
}, c = (A, _, S, y = []) => {
|
|
5719
5736
|
const C = _ > S ? S : _;
|
|
5720
5737
|
let x = t.positionMultiplier * C + t.positionMultiplier * 1;
|
|
5721
5738
|
for (let R = C; R < A.length; R++)
|
|
5722
|
-
Ns(A[R], t.positionField, x),
|
|
5739
|
+
Ns(A[R], t.positionField, x), T(A[R][t.keyField]), x = x + t.positionMultiplier * 1, y.push({
|
|
5723
5740
|
id: A[R].id,
|
|
5724
5741
|
position: A[R].position
|
|
5725
5742
|
});
|
|
5726
5743
|
return y;
|
|
5727
|
-
},
|
|
5744
|
+
}, f = (A, _) => {
|
|
5728
5745
|
const S = $e(e.value);
|
|
5729
5746
|
if (_ >= 0 && _ < S.length) {
|
|
5730
5747
|
let y = [];
|
|
5731
5748
|
const C = S.splice(A, 1)[0];
|
|
5732
|
-
return S.splice(_, 0, C),
|
|
5749
|
+
return S.splice(_, 0, C), D(t.updatePosition) || (y = c(S, A, _)), p(), a("update:modelValue", S), y;
|
|
5733
5750
|
}
|
|
5734
5751
|
return [];
|
|
5735
|
-
},
|
|
5752
|
+
}, v = (A, _) => {
|
|
5736
5753
|
const S = _.findIndex((y) => y[t.keyField] === A);
|
|
5737
5754
|
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
5755
|
}, w = (A, _, S, y = null) => {
|
|
5756
|
+
A.data = $e(_), G(S) || (A.data.position = S), G(y) || T(_.id);
|
|
5757
|
+
}, F = (A, _, S = null, y = null) => {
|
|
5758
|
+
const C = $e(e.value), x = v(A, C);
|
|
5759
|
+
!G(x) && C[x] && (w(C[x], _, S, y), p(C));
|
|
5760
|
+
}, k = (A, _, S, y = null) => {
|
|
5744
5761
|
const C = $e(e.value);
|
|
5745
|
-
C[A] && (
|
|
5746
|
-
},
|
|
5762
|
+
C[A] && (w(C[A], _, S, y), p(C));
|
|
5763
|
+
}, h = (A, _) => {
|
|
5747
5764
|
const S = $e(e.value);
|
|
5748
5765
|
if (G(A) || A < 0)
|
|
5749
5766
|
return S.push($e(_)), p(S), [];
|
|
5750
5767
|
const y = [];
|
|
5751
|
-
return S[A] ? (S.splice(A + 1, 0, _),
|
|
5768
|
+
return S[A] ? (S.splice(A + 1, 0, _), c(S, A + 1, A + 1, y), p(S), y) : [];
|
|
5752
5769
|
}, I = (A, _) => {
|
|
5753
5770
|
const S = $e(e.value);
|
|
5754
5771
|
if (G(A))
|
|
5755
5772
|
return S.push($e(_)), p(S), [];
|
|
5756
|
-
const y =
|
|
5757
|
-
return !G(y) && S[y] ? (S.splice(y + 1, 0, _),
|
|
5773
|
+
const y = v(A, S), C = [];
|
|
5774
|
+
return !G(y) && S[y] ? (S.splice(y + 1, 0, _), c(S, y + 1, y + 1, C), p(S), C) : [];
|
|
5758
5775
|
}, Y = (A) => {
|
|
5759
|
-
const _ = $e(e.value), S =
|
|
5760
|
-
return !G(S) && _[S] ? (_.splice(S, 1),
|
|
5761
|
-
},
|
|
5776
|
+
const _ = $e(e.value), S = v(A, _), y = [];
|
|
5777
|
+
return !G(S) && _[S] ? (_.splice(S, 1), c(_, S, S, y), b(A), p(_), y) : [];
|
|
5778
|
+
}, E = (A) => {
|
|
5762
5779
|
const _ = $e(e.value), S = [];
|
|
5763
5780
|
if (_[A]) {
|
|
5764
5781
|
const y = _[A][t.keyField];
|
|
5765
|
-
return _.splice(A, 1),
|
|
5782
|
+
return _.splice(A, 1), c(_, A, A, S), b(y), p(_), S;
|
|
5766
5783
|
}
|
|
5767
5784
|
return [];
|
|
5768
5785
|
}, $ = () => {
|
|
5769
5786
|
s.value && i.value && (i.value.stop(), i.value = null);
|
|
5770
5787
|
};
|
|
5771
5788
|
return {
|
|
5772
|
-
items:
|
|
5789
|
+
items: g,
|
|
5773
5790
|
forceRerender: u,
|
|
5774
|
-
dirtyLocal:
|
|
5791
|
+
dirtyLocal: m,
|
|
5775
5792
|
widgetEl: s,
|
|
5776
5793
|
randomUuid: l,
|
|
5777
5794
|
removeDialog: r,
|
|
@@ -5784,13 +5801,13 @@ function Nu(e, n, t, a) {
|
|
|
5784
5801
|
G(o.value) || (a("onDelete", o.value), r.value = !1);
|
|
5785
5802
|
},
|
|
5786
5803
|
destroy: $,
|
|
5787
|
-
moveArrayElement:
|
|
5804
|
+
moveArrayElement: f,
|
|
5788
5805
|
addAfterId: I,
|
|
5789
|
-
addAfterIndex:
|
|
5806
|
+
addAfterIndex: h,
|
|
5790
5807
|
removeById: Y,
|
|
5791
|
-
removeByIndex:
|
|
5808
|
+
removeByIndex: E,
|
|
5792
5809
|
updateData: F,
|
|
5793
|
-
updateDataAtIndex:
|
|
5810
|
+
updateDataAtIndex: k
|
|
5794
5811
|
};
|
|
5795
5812
|
}
|
|
5796
5813
|
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 +5838,20 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5821
5838
|
const a = e, r = t, o = Vr(() => a.modelValue), { t: s } = Re(), l = (y) => {
|
|
5822
5839
|
r("onAddAfter", y);
|
|
5823
5840
|
}, i = (y) => {
|
|
5824
|
-
if (
|
|
5825
|
-
|
|
5841
|
+
if (v.value = y, a.disableDeleteDialog) {
|
|
5842
|
+
h();
|
|
5826
5843
|
return;
|
|
5827
5844
|
}
|
|
5828
|
-
|
|
5845
|
+
w.value = !0;
|
|
5829
5846
|
}, u = (y) => {
|
|
5830
5847
|
r("onEdit", y);
|
|
5831
|
-
},
|
|
5848
|
+
}, m = () => {
|
|
5832
5849
|
if (a.modelValue.length > 0) {
|
|
5833
5850
|
r("onAddLast", $e(a.modelValue[a.modelValue.length - 1]));
|
|
5834
5851
|
return;
|
|
5835
5852
|
}
|
|
5836
5853
|
r("onAddLast", null);
|
|
5837
|
-
}, d = U(() =>
|
|
5854
|
+
}, d = U(() => D(a.widgetIdentifierId) ? Yu + E.value : a.widgetIdentifierId), g = U(() => a.rootClassName + " " + (a.chips ? a.rootClassName + "--chips" : "")), p = () => {
|
|
5838
5855
|
if (a.disableDraggable || !Y.value) return;
|
|
5839
5856
|
const y = Y.value.querySelector("." + jo);
|
|
5840
5857
|
y && (I.value = ku(y, [], {
|
|
@@ -5843,9 +5860,9 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5843
5860
|
dragClass: Pu,
|
|
5844
5861
|
chosenClass: Lu,
|
|
5845
5862
|
onEnd: async (C) => {
|
|
5846
|
-
if (a.disableDefaultSort ||
|
|
5863
|
+
if (a.disableDefaultSort || D(C.oldIndex) || D(C.newIndex))
|
|
5847
5864
|
return;
|
|
5848
|
-
const x =
|
|
5865
|
+
const x = f(C.oldIndex, C.newIndex);
|
|
5849
5866
|
r("onEnd", x);
|
|
5850
5867
|
},
|
|
5851
5868
|
onStart() {
|
|
@@ -5853,18 +5870,18 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5853
5870
|
}
|
|
5854
5871
|
}));
|
|
5855
5872
|
}, {
|
|
5856
|
-
items:
|
|
5857
|
-
forceRerender:
|
|
5858
|
-
dirtyLocal:
|
|
5859
|
-
moveArrayElement:
|
|
5860
|
-
itemToRemove:
|
|
5861
|
-
removeDialog:
|
|
5873
|
+
items: T,
|
|
5874
|
+
forceRerender: b,
|
|
5875
|
+
dirtyLocal: c,
|
|
5876
|
+
moveArrayElement: f,
|
|
5877
|
+
itemToRemove: v,
|
|
5878
|
+
removeDialog: w,
|
|
5862
5879
|
destroy: F,
|
|
5863
|
-
refresh:
|
|
5864
|
-
onRemoveDialogConfirm:
|
|
5880
|
+
refresh: k,
|
|
5881
|
+
onRemoveDialogConfirm: h,
|
|
5865
5882
|
sortableInstance: I,
|
|
5866
5883
|
widgetEl: Y,
|
|
5867
|
-
randomUuid:
|
|
5884
|
+
randomUuid: E,
|
|
5868
5885
|
addAfterId: $,
|
|
5869
5886
|
removeById: N,
|
|
5870
5887
|
updateData: M,
|
|
@@ -5884,10 +5901,10 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5884
5901
|
), Ae(
|
|
5885
5902
|
() => a.dirty,
|
|
5886
5903
|
(y) => {
|
|
5887
|
-
|
|
5904
|
+
c.value = y;
|
|
5888
5905
|
}
|
|
5889
5906
|
), n({
|
|
5890
|
-
refresh:
|
|
5907
|
+
refresh: k,
|
|
5891
5908
|
addAfterId: $,
|
|
5892
5909
|
addAfterIndex: A,
|
|
5893
5910
|
removeById: N,
|
|
@@ -5899,13 +5916,13 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5899
5916
|
return P(), de("div", null, [
|
|
5900
5917
|
Ee("div", {
|
|
5901
5918
|
id: d.value,
|
|
5902
|
-
class: Ze(
|
|
5919
|
+
class: Ze(g.value)
|
|
5903
5920
|
}, [
|
|
5904
5921
|
(P(), de("div", {
|
|
5905
|
-
key: H(
|
|
5922
|
+
key: H(b),
|
|
5906
5923
|
class: Ze(H(jo))
|
|
5907
5924
|
}, [
|
|
5908
|
-
(P(!0), de(qe, null, Bt(H(
|
|
5925
|
+
(P(!0), de(qe, null, Bt(H(T), (j, Q) => (P(), de(qe, {
|
|
5909
5926
|
key: j.key
|
|
5910
5927
|
}, [
|
|
5911
5928
|
e.chips ? (P(), X(Kt, {
|
|
@@ -5952,7 +5969,7 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
5952
5969
|
]),
|
|
5953
5970
|
Ee("div", {
|
|
5954
5971
|
class: Ze(["a-sortable-widget__item", {
|
|
5955
|
-
"a-sortable-widget__item--last": Q + 1 === H(
|
|
5972
|
+
"a-sortable-widget__item--last": Q + 1 === H(T).length,
|
|
5956
5973
|
"a-sortable-widget__item--first": Q === 0
|
|
5957
5974
|
}])
|
|
5958
5975
|
}, [
|
|
@@ -6054,14 +6071,14 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
6054
6071
|
], 2))
|
|
6055
6072
|
], 10, Uu),
|
|
6056
6073
|
we(y.$slots, "add-last-activator", {
|
|
6057
|
-
props: { onClick: ye(() =>
|
|
6074
|
+
props: { onClick: ye(() => m(), ["stop"]) }
|
|
6058
6075
|
}, () => [
|
|
6059
6076
|
e.showAddLastButton ? (P(), X(Ne, {
|
|
6060
6077
|
key: 0,
|
|
6061
6078
|
size: "small",
|
|
6062
6079
|
"prepend-icon": "mdi-plus",
|
|
6063
6080
|
class: "ma-1",
|
|
6064
|
-
onClick: ye(
|
|
6081
|
+
onClick: ye(m, ["stop"])
|
|
6065
6082
|
}, {
|
|
6066
6083
|
default: B(() => [
|
|
6067
6084
|
De(fe(H(s)(e.addLastButtonT)), 1)
|
|
@@ -6070,15 +6087,15 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
6070
6087
|
})) : ce("", !0)
|
|
6071
6088
|
]),
|
|
6072
6089
|
O(Wa, {
|
|
6073
|
-
modelValue: H(
|
|
6074
|
-
"onUpdate:modelValue": C[2] || (C[2] = (j) => Ha(
|
|
6090
|
+
modelValue: H(w),
|
|
6091
|
+
"onUpdate:modelValue": C[2] || (C[2] = (j) => Ha(w) ? w.value = j : null),
|
|
6075
6092
|
width: 500
|
|
6076
6093
|
}, {
|
|
6077
6094
|
default: B(() => [
|
|
6078
|
-
H(
|
|
6095
|
+
H(w) ? (P(), X(la, { key: 0 }, {
|
|
6079
6096
|
default: B(() => [
|
|
6080
6097
|
O(Ja, {
|
|
6081
|
-
onOnCancel: C[0] || (C[0] = (j) =>
|
|
6098
|
+
onOnCancel: C[0] || (C[0] = (j) => w.value = !1)
|
|
6082
6099
|
}, {
|
|
6083
6100
|
default: B(() => [
|
|
6084
6101
|
De(fe(H(s)("common.system.modal.confirmDelete")), 1)
|
|
@@ -6089,7 +6106,7 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
6089
6106
|
default: B(() => [
|
|
6090
6107
|
O(sa),
|
|
6091
6108
|
O(x, {
|
|
6092
|
-
onClick: C[1] || (C[1] = ye((j) =>
|
|
6109
|
+
onClick: C[1] || (C[1] = ye((j) => w.value = !1, ["stop"]))
|
|
6093
6110
|
}, {
|
|
6094
6111
|
default: B(() => [
|
|
6095
6112
|
De(fe(H(s)("common.button.cancel")), 1)
|
|
@@ -6097,7 +6114,7 @@ const Yu = "a-sortable-", Uu = ["id"], Vu = { key: 1 }, Hu = { class: "a-sortabl
|
|
|
6097
6114
|
_: 1
|
|
6098
6115
|
}),
|
|
6099
6116
|
O(R, {
|
|
6100
|
-
onClick: ye(H(
|
|
6117
|
+
onClick: ye(H(h), ["stop"])
|
|
6101
6118
|
}, {
|
|
6102
6119
|
default: B(() => [
|
|
6103
6120
|
De(fe(H(s)("common.button.delete")), 1)
|
|
@@ -6162,22 +6179,22 @@ const Ku = {
|
|
|
6162
6179
|
emits: ["onClose"],
|
|
6163
6180
|
setup(e, { emit: n }) {
|
|
6164
6181
|
const t = e, a = n, r = J(Ke), o = J(tt), s = J(mr);
|
|
6165
|
-
if (
|
|
6182
|
+
if (D(s) || D(r) || D(o))
|
|
6166
6183
|
throw new Error("Incorrect provide/inject config.");
|
|
6167
|
-
const l = L("add"), i = L(""), u = L(!1),
|
|
6184
|
+
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
6185
|
customName: {
|
|
6169
|
-
required:
|
|
6170
|
-
maxLength:
|
|
6186
|
+
required: c,
|
|
6187
|
+
maxLength: f(100)
|
|
6171
6188
|
}
|
|
6172
|
-
},
|
|
6189
|
+
}, w = Gn(v, { customName: i }, { $stopPropagation: !0 }), F = {
|
|
6173
6190
|
itemEdit: {
|
|
6174
|
-
required:
|
|
6175
|
-
maxLength:
|
|
6191
|
+
required: c,
|
|
6192
|
+
maxLength: f(100)
|
|
6176
6193
|
}
|
|
6177
|
-
},
|
|
6194
|
+
}, k = Gn(F, { itemEdit: b }, { $stopPropagation: !0 }), h = hr(), {
|
|
6178
6195
|
createUserAdminConfig: I,
|
|
6179
6196
|
useFetchUserAdminConfigList: Y,
|
|
6180
|
-
updateUserAdminConfigPositions:
|
|
6197
|
+
updateUserAdminConfigPositions: E,
|
|
6181
6198
|
deleteUserAdminConfig: $,
|
|
6182
6199
|
updateUserAdminConfig: N
|
|
6183
6200
|
} = (
|
|
@@ -6185,9 +6202,9 @@ const Ku = {
|
|
|
6185
6202
|
gr(t.client, t.system)
|
|
6186
6203
|
), { t: M } = Re(), { showErrorsDefault: A, showValidationError: _, showWarningT: S } = In(), { createDefaultUserAdminConfig: y } = Wu(), C = async () => {
|
|
6187
6204
|
d.value = !0;
|
|
6188
|
-
const K =
|
|
6205
|
+
const K = T.value.map((ge) => ge.id);
|
|
6189
6206
|
try {
|
|
6190
|
-
await
|
|
6207
|
+
await E(K), d.value = !1, await te(), a("onClose");
|
|
6191
6208
|
} catch (ge) {
|
|
6192
6209
|
A(ge), d.value = !1;
|
|
6193
6210
|
}
|
|
@@ -6197,10 +6214,10 @@ const Ku = {
|
|
|
6197
6214
|
q.user = t.user, q.configType = Zn.FilterBookmark, q.layoutType = Ft.Desktop, q.systemResource = R, q.customName = i.value, q.data = {
|
|
6198
6215
|
filter: x(o, s, !1),
|
|
6199
6216
|
datatableHiddenColumns: u.value && t.datatableHiddenColumns ? t.datatableHiddenColumns : void 0,
|
|
6200
|
-
sortBy:
|
|
6217
|
+
sortBy: m.value && s.value.sortBy ? s.value.sortBy : void 0
|
|
6201
6218
|
};
|
|
6202
6219
|
try {
|
|
6203
|
-
const K = await
|
|
6220
|
+
const K = await h.fetchBookmarksCount(
|
|
6204
6221
|
{
|
|
6205
6222
|
user: t.user,
|
|
6206
6223
|
layoutType: Ft.Desktop,
|
|
@@ -6214,8 +6231,8 @@ const Ku = {
|
|
|
6214
6231
|
}
|
|
6215
6232
|
q.position = K + 1;
|
|
6216
6233
|
const ge = await I(q);
|
|
6217
|
-
|
|
6218
|
-
|
|
6234
|
+
h.addOne(
|
|
6235
|
+
h.generateKey(Ft.Desktop, R),
|
|
6219
6236
|
ge
|
|
6220
6237
|
), a("onClose");
|
|
6221
6238
|
} catch (K) {
|
|
@@ -6233,41 +6250,41 @@ const Ku = {
|
|
|
6233
6250
|
}
|
|
6234
6251
|
}, Q = () => {
|
|
6235
6252
|
if (l.value === "add") {
|
|
6236
|
-
if (
|
|
6253
|
+
if (w.value.$touch(), w.value.$invalid) {
|
|
6237
6254
|
_();
|
|
6238
6255
|
return;
|
|
6239
6256
|
}
|
|
6240
6257
|
j();
|
|
6241
|
-
} else l.value === "manage" &&
|
|
6258
|
+
} else l.value === "manage" && T.value.length > 0 && C();
|
|
6242
6259
|
}, re = async (q) => {
|
|
6243
|
-
|
|
6260
|
+
g.value = !0;
|
|
6244
6261
|
try {
|
|
6245
6262
|
await $(q.raw.id), await te(), W();
|
|
6246
6263
|
} catch (K) {
|
|
6247
6264
|
A(K);
|
|
6248
6265
|
} finally {
|
|
6249
|
-
|
|
6266
|
+
g.value = !1;
|
|
6250
6267
|
}
|
|
6251
6268
|
}, ve = Ot("inputRef"), Te = async (q) => {
|
|
6252
|
-
|
|
6269
|
+
b.value = { id: q.raw.id, customName: q.raw.customName }, await Ye(), ve.value?.focus();
|
|
6253
6270
|
}, ke = async (q) => {
|
|
6254
|
-
if (G(
|
|
6255
|
-
|
|
6271
|
+
if (G(b.value)) return;
|
|
6272
|
+
g.value = !0;
|
|
6256
6273
|
const K = $e(q.raw);
|
|
6257
|
-
K.customName =
|
|
6274
|
+
K.customName = b.value.customName;
|
|
6258
6275
|
try {
|
|
6259
6276
|
W(), await N(K.id, K), await te();
|
|
6260
6277
|
} catch (ge) {
|
|
6261
6278
|
A(ge);
|
|
6262
6279
|
} finally {
|
|
6263
|
-
|
|
6280
|
+
g.value = !1;
|
|
6264
6281
|
}
|
|
6265
6282
|
}, W = () => {
|
|
6266
|
-
|
|
6283
|
+
b.value = null;
|
|
6267
6284
|
}, te = async () => {
|
|
6268
|
-
|
|
6285
|
+
g.value = !0;
|
|
6269
6286
|
try {
|
|
6270
|
-
|
|
6287
|
+
T.value = await h.getBookmarks(
|
|
6271
6288
|
{
|
|
6272
6289
|
user: t.user,
|
|
6273
6290
|
layoutType: Ft.Desktop,
|
|
@@ -6279,7 +6296,7 @@ const Ku = {
|
|
|
6279
6296
|
} catch (q) {
|
|
6280
6297
|
A(q);
|
|
6281
6298
|
} finally {
|
|
6282
|
-
|
|
6299
|
+
g.value = !1;
|
|
6283
6300
|
}
|
|
6284
6301
|
};
|
|
6285
6302
|
return Ae(l, () => {
|
|
@@ -6340,7 +6357,7 @@ const Ku = {
|
|
|
6340
6357
|
"onUpdate:modelValue": K[2] || (K[2] = (ee) => i.value = ee),
|
|
6341
6358
|
label: H(M)("common.filter.bookmark.name"),
|
|
6342
6359
|
required: "",
|
|
6343
|
-
v: H(
|
|
6360
|
+
v: H(w).customName
|
|
6344
6361
|
}, null, 8, ["modelValue", "label", "v"])
|
|
6345
6362
|
]),
|
|
6346
6363
|
_: 1
|
|
@@ -6358,20 +6375,20 @@ const Ku = {
|
|
|
6358
6375
|
O(Mt, null, {
|
|
6359
6376
|
default: B(() => [
|
|
6360
6377
|
O(_o, {
|
|
6361
|
-
modelValue:
|
|
6362
|
-
"onUpdate:modelValue": K[4] || (K[4] = (ee) =>
|
|
6378
|
+
modelValue: m.value,
|
|
6379
|
+
"onUpdate:modelValue": K[4] || (K[4] = (ee) => m.value = ee),
|
|
6363
6380
|
label: H(M)("common.filter.bookmark.storeTableOrder")
|
|
6364
6381
|
}, null, 8, ["modelValue", "label"])
|
|
6365
6382
|
]),
|
|
6366
6383
|
_: 1
|
|
6367
6384
|
})
|
|
6368
6385
|
])) : l.value === "manage" ? (P(), de("div", Gu, [
|
|
6369
|
-
|
|
6386
|
+
g.value ? (P(), de("div", Xu, [
|
|
6370
6387
|
O(Jo, { indeterminate: "" })
|
|
6371
6388
|
])) : (P(), X(zu, {
|
|
6372
6389
|
key: 1,
|
|
6373
|
-
modelValue:
|
|
6374
|
-
"onUpdate:modelValue": K[7] || (K[7] = (ee) =>
|
|
6390
|
+
modelValue: T.value,
|
|
6391
|
+
"onUpdate:modelValue": K[7] || (K[7] = (ee) => T.value = ee),
|
|
6375
6392
|
"show-edit-button": "",
|
|
6376
6393
|
"show-delete-button": "",
|
|
6377
6394
|
"permanent-buttons": "",
|
|
@@ -6379,22 +6396,22 @@ const Ku = {
|
|
|
6379
6396
|
onOnEdit: Te
|
|
6380
6397
|
}, Pt({
|
|
6381
6398
|
item: B(({ item: ee }) => [
|
|
6382
|
-
|
|
6399
|
+
b.value && b.value.id === ee.raw.id ? (P(), X(So, {
|
|
6383
6400
|
key: 0,
|
|
6384
6401
|
ref_key: "inputRef",
|
|
6385
6402
|
ref: ve,
|
|
6386
|
-
modelValue:
|
|
6387
|
-
"onUpdate:modelValue": K[5] || (K[5] = (se) =>
|
|
6403
|
+
modelValue: b.value.customName,
|
|
6404
|
+
"onUpdate:modelValue": K[5] || (K[5] = (se) => b.value.customName = se),
|
|
6388
6405
|
"hide-details": "auto",
|
|
6389
|
-
v: H(
|
|
6406
|
+
v: H(k)
|
|
6390
6407
|
}, null, 8, ["modelValue", "v"])) : (P(), de("div", Zu, fe(ee.raw.customName), 1))
|
|
6391
6408
|
]),
|
|
6392
6409
|
_: 2
|
|
6393
6410
|
}, [
|
|
6394
|
-
H(G)(
|
|
6411
|
+
H(G)(b.value) ? void 0 : {
|
|
6395
6412
|
name: "item-buttons",
|
|
6396
6413
|
fn: B(({ item: ee }) => [
|
|
6397
|
-
|
|
6414
|
+
b.value && b.value.id === ee.raw.id ? (P(), de("div", Ju, [
|
|
6398
6415
|
O(Ne, {
|
|
6399
6416
|
icon: "",
|
|
6400
6417
|
size: "x-small",
|
|
@@ -6551,40 +6568,40 @@ const Ku = {
|
|
|
6551
6568
|
setup(e, { expose: n, emit: t }) {
|
|
6552
6569
|
const a = e, r = t, o = Tt(e, "datatableHiddenColumns"), s = J(Ri, () => {
|
|
6553
6570
|
}), l = J(Ke), i = J(tt);
|
|
6554
|
-
if (
|
|
6571
|
+
if (D(l) || D(i))
|
|
6555
6572
|
throw new Error("Incorrect provide/inject config.");
|
|
6556
6573
|
const u = L({
|
|
6557
6574
|
system: l.general.system,
|
|
6558
6575
|
subject: l.general.subject
|
|
6559
6576
|
});
|
|
6560
6577
|
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,
|
|
6578
|
+
const m = L(0);
|
|
6579
|
+
Kn(pt, m);
|
|
6563
6580
|
const d = L(/* @__PURE__ */ new Map());
|
|
6564
6581
|
Kn(ot, d);
|
|
6565
|
-
const
|
|
6566
|
-
|
|
6582
|
+
const g = () => {
|
|
6583
|
+
m.value++, Ye(() => {
|
|
6567
6584
|
r("submit"), s();
|
|
6568
6585
|
});
|
|
6569
|
-
}, { clearAll: p, clearAllFilterSelected:
|
|
6586
|
+
}, { clearAll: p, clearAllFilterSelected: T } = ct(), b = () => {
|
|
6570
6587
|
Ye(() => {
|
|
6571
|
-
|
|
6588
|
+
m.value++, r("bookmarkLoadAfter"), s();
|
|
6572
6589
|
});
|
|
6573
|
-
},
|
|
6574
|
-
p(i, l),
|
|
6575
|
-
|
|
6590
|
+
}, c = () => {
|
|
6591
|
+
p(i, l), T(i, l, d), Ye(() => {
|
|
6592
|
+
m.value++, r("reset"), s();
|
|
6576
6593
|
});
|
|
6577
|
-
},
|
|
6594
|
+
}, f = U(() => l.touched), v = U(() => Object.entries(l.fields).filter(([, w]) => !w.render.skip).map(([w]) => w));
|
|
6578
6595
|
return n({
|
|
6579
|
-
submit:
|
|
6580
|
-
reset:
|
|
6581
|
-
}), (
|
|
6596
|
+
submit: g,
|
|
6597
|
+
reset: c
|
|
6598
|
+
}), (w, F) => (P(), X(Go, {
|
|
6582
6599
|
name: e.formName,
|
|
6583
|
-
onSubmit: ye(
|
|
6600
|
+
onSubmit: ye(g, ["prevent"])
|
|
6584
6601
|
}, {
|
|
6585
6602
|
default: B(() => [
|
|
6586
6603
|
Ee("div", ec, [
|
|
6587
|
-
we(
|
|
6604
|
+
we(w.$slots, "bookmarks", {}, () => [
|
|
6588
6605
|
O($t, { density: "compact" }, {
|
|
6589
6606
|
default: B(() => [
|
|
6590
6607
|
e.store && e.userId && H(he)(e.client) ? (P(), X(gt, { key: 0 }, {
|
|
@@ -6593,12 +6610,12 @@ const Ku = {
|
|
|
6593
6610
|
u.value.system && u.value.subject && e.userId && H(he)(e.client) ? (P(), X(br, {
|
|
6594
6611
|
key: 0,
|
|
6595
6612
|
"datatable-hidden-columns": o.value,
|
|
6596
|
-
"onUpdate:datatableHiddenColumns": F[0] || (F[0] = (
|
|
6613
|
+
"onUpdate:datatableHiddenColumns": F[0] || (F[0] = (k) => o.value = k),
|
|
6597
6614
|
client: e.client,
|
|
6598
6615
|
system: u.value.system,
|
|
6599
6616
|
subject: u.value.subject,
|
|
6600
6617
|
"user-id": e.userId,
|
|
6601
|
-
onSubmit:
|
|
6618
|
+
onSubmit: b
|
|
6602
6619
|
}, null, 8, ["datatable-hidden-columns", "client", "system", "subject", "user-id"])) : ce("", !0)
|
|
6603
6620
|
])
|
|
6604
6621
|
]),
|
|
@@ -6608,22 +6625,22 @@ const Ku = {
|
|
|
6608
6625
|
_: 1
|
|
6609
6626
|
})
|
|
6610
6627
|
]),
|
|
6611
|
-
we(
|
|
6628
|
+
we(w.$slots, "detail", {}, () => [
|
|
6612
6629
|
O($t, null, {
|
|
6613
6630
|
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[
|
|
6631
|
+
(P(!0), de(qe, null, Bt(v.value, (k) => (P(), X(gt, {
|
|
6632
|
+
key: k,
|
|
6633
|
+
cols: H(l).fields[k].render.xs || 12,
|
|
6634
|
+
sm: H(l).fields[k].render.sm || 12,
|
|
6635
|
+
md: H(l).fields[k].render.md || 12,
|
|
6636
|
+
lg: H(l).fields[k].render.lg || 12,
|
|
6637
|
+
xl: H(l).fields[k].render.xl || 12
|
|
6621
6638
|
}, {
|
|
6622
6639
|
default: B(() => [
|
|
6623
|
-
we(
|
|
6624
|
-
itemConfig: H(l).fields[
|
|
6640
|
+
we(w.$slots, H(vr)(k), {
|
|
6641
|
+
itemConfig: H(l).fields[k]
|
|
6625
6642
|
}, () => [
|
|
6626
|
-
O(pr, { name:
|
|
6643
|
+
O(pr, { name: k }, null, 8, ["name"])
|
|
6627
6644
|
])
|
|
6628
6645
|
]),
|
|
6629
6646
|
_: 2
|
|
@@ -6634,9 +6651,9 @@ const Ku = {
|
|
|
6634
6651
|
])
|
|
6635
6652
|
]),
|
|
6636
6653
|
e.hideButtons ? ce("", !0) : (P(), de("div", nc, [
|
|
6637
|
-
we(
|
|
6638
|
-
O(ur, { touched:
|
|
6639
|
-
O(cr, { onReset:
|
|
6654
|
+
we(w.$slots, "buttons", {}, () => [
|
|
6655
|
+
O(ur, { touched: f.value }, null, 8, ["touched"]),
|
|
6656
|
+
O(cr, { onReset: c }),
|
|
6640
6657
|
u.value.system && u.value.subject && e.userId && H(he)(e.client) ? (P(), X(Br, {
|
|
6641
6658
|
key: 0,
|
|
6642
6659
|
client: e.client,
|
|
@@ -6690,36 +6707,36 @@ const Ku = {
|
|
|
6690
6707
|
__name: "FiltersSelected",
|
|
6691
6708
|
setup(e) {
|
|
6692
6709
|
const n = J(Ke), t = J(tt), a = J(ot);
|
|
6693
|
-
if (
|
|
6710
|
+
if (D(n) || D(t) || D(a))
|
|
6694
6711
|
throw new Error("Incorrect provide/inject config.");
|
|
6695
|
-
const { t: r } = Re(), o = (
|
|
6696
|
-
const d = n.fields?.[
|
|
6697
|
-
return d ? r(d) :
|
|
6712
|
+
const { t: r } = Re(), o = (m) => {
|
|
6713
|
+
const d = n.fields?.[m]?.titleT;
|
|
6714
|
+
return d ? r(d) : m;
|
|
6698
6715
|
}, s = U(() => {
|
|
6699
|
-
const
|
|
6700
|
-
return Array.from(a.value).map(([d,
|
|
6716
|
+
const m = Object.keys(n.fields);
|
|
6717
|
+
return Array.from(a.value).map(([d, g]) => ({
|
|
6701
6718
|
name: d,
|
|
6702
6719
|
title: o(d),
|
|
6703
|
-
options:
|
|
6704
|
-
})).sort((d,
|
|
6705
|
-
}), { clearOneFilterSelected: l, isClearable: i } = ct(), u = (
|
|
6706
|
-
l(
|
|
6720
|
+
options: g
|
|
6721
|
+
})).sort((d, g) => m.indexOf(d.name) - m.indexOf(g.name));
|
|
6722
|
+
}), { clearOneFilterSelected: l, isClearable: i } = ct(), u = (m, d) => {
|
|
6723
|
+
l(m, d, t, n, a), n.touched = !0;
|
|
6707
6724
|
};
|
|
6708
|
-
return (
|
|
6709
|
-
key:
|
|
6725
|
+
return (m, d) => (P(!0), de(qe, null, Bt(s.value, (g) => (P(), de("div", {
|
|
6726
|
+
key: g.name,
|
|
6710
6727
|
class: "a-selected-filters"
|
|
6711
6728
|
}, [
|
|
6712
|
-
Ee("div", oc, fe(
|
|
6713
|
-
(P(!0), de(qe, null, Bt(
|
|
6729
|
+
Ee("div", oc, fe(g.title) + ": ", 1),
|
|
6730
|
+
(P(!0), de(qe, null, Bt(g.options, (p) => (P(), de("div", {
|
|
6714
6731
|
key: p.value,
|
|
6715
6732
|
class: "a-selected-filters__chips"
|
|
6716
6733
|
}, [
|
|
6717
|
-
H(i)(
|
|
6734
|
+
H(i)(g.name, H(n)) ? (P(), X(Kt, {
|
|
6718
6735
|
key: 0,
|
|
6719
6736
|
closable: "",
|
|
6720
6737
|
size: "small",
|
|
6721
6738
|
class: "a-selected-filters__chip",
|
|
6722
|
-
"onClick:close": ye((
|
|
6739
|
+
"onClick:close": ye((T) => u(g.name, p.value), ["stop"])
|
|
6723
6740
|
}, {
|
|
6724
6741
|
close: B(() => [
|
|
6725
6742
|
O(Be, {
|
|
@@ -6767,38 +6784,38 @@ const Ku = {
|
|
|
6767
6784
|
emits: /* @__PURE__ */ mt(["submit", "reset", "bookmarkLoadAfter"], ["update:datatableHiddenColumns", "update:showDetail"]),
|
|
6768
6785
|
setup(e, { expose: n, emit: t }) {
|
|
6769
6786
|
const a = e, r = t, o = Tt(e, "datatableHiddenColumns"), s = Tt(e, "showDetail"), l = J(Ke), i = J(tt);
|
|
6770
|
-
if (
|
|
6787
|
+
if (D(l) || D(i))
|
|
6771
6788
|
throw new Error("Incorrect provide/inject config.");
|
|
6772
6789
|
const u = L({
|
|
6773
6790
|
system: l.general.system,
|
|
6774
6791
|
subject: l.general.subject
|
|
6775
6792
|
});
|
|
6776
6793
|
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,
|
|
6794
|
+
const m = L(0);
|
|
6795
|
+
Kn(pt, m);
|
|
6779
6796
|
const d = L(/* @__PURE__ */ new Map());
|
|
6780
6797
|
Kn(ot, d);
|
|
6781
|
-
const
|
|
6782
|
-
|
|
6798
|
+
const g = () => {
|
|
6799
|
+
m.value++, Ye(() => {
|
|
6783
6800
|
r("submit");
|
|
6784
6801
|
});
|
|
6785
|
-
}, { clearAll: p, clearAllFilterSelected:
|
|
6802
|
+
}, { clearAll: p, clearAllFilterSelected: T } = ct(), b = () => {
|
|
6786
6803
|
Ye(() => {
|
|
6787
|
-
|
|
6788
|
-
});
|
|
6789
|
-
}, m = () => {
|
|
6790
|
-
p(i, l), E(i, l, d), Ye(() => {
|
|
6791
|
-
f.value++, r("reset");
|
|
6804
|
+
m.value++, r("bookmarkLoadAfter");
|
|
6792
6805
|
});
|
|
6793
6806
|
}, c = () => {
|
|
6807
|
+
p(i, l), T(i, l, d), Ye(() => {
|
|
6808
|
+
m.value++, r("reset");
|
|
6809
|
+
});
|
|
6810
|
+
}, f = () => {
|
|
6794
6811
|
s.value = !s.value;
|
|
6795
|
-
},
|
|
6812
|
+
}, v = U(() => l.touched), w = U(() => Object.entries(l.fields).filter(([, F]) => !F.render.skip).map(([F]) => F));
|
|
6796
6813
|
return a.alwaysVisible && (s.value = !0), n({
|
|
6797
|
-
submit:
|
|
6798
|
-
reset:
|
|
6799
|
-
}), (F,
|
|
6814
|
+
submit: g,
|
|
6815
|
+
reset: c
|
|
6816
|
+
}), (F, k) => (P(), X(Go, {
|
|
6800
6817
|
name: e.formName,
|
|
6801
|
-
onSubmit: ye(
|
|
6818
|
+
onSubmit: ye(g, ["prevent"])
|
|
6802
6819
|
}, {
|
|
6803
6820
|
default: B(() => [
|
|
6804
6821
|
e.enableTop ? (P(), X($t, {
|
|
@@ -6824,12 +6841,12 @@ const Ku = {
|
|
|
6824
6841
|
u.value.system && u.value.subject && e.userId && H(he)(e.client) ? (P(), X(br, {
|
|
6825
6842
|
key: 0,
|
|
6826
6843
|
"datatable-hidden-columns": o.value,
|
|
6827
|
-
"onUpdate:datatableHiddenColumns":
|
|
6844
|
+
"onUpdate:datatableHiddenColumns": k[0] || (k[0] = (h) => o.value = h),
|
|
6828
6845
|
client: e.client,
|
|
6829
6846
|
system: u.value.system,
|
|
6830
6847
|
subject: u.value.subject,
|
|
6831
6848
|
"user-id": e.userId,
|
|
6832
|
-
onSubmit:
|
|
6849
|
+
onSubmit: b
|
|
6833
6850
|
}, null, 8, ["datatable-hidden-columns", "client", "system", "subject", "user-id"])) : ce("", !0)
|
|
6834
6851
|
])
|
|
6835
6852
|
])
|
|
@@ -6851,7 +6868,7 @@ const Ku = {
|
|
|
6851
6868
|
default: B(() => [
|
|
6852
6869
|
O(ac, {
|
|
6853
6870
|
"button-active": s.value,
|
|
6854
|
-
onAdvancedFilter:
|
|
6871
|
+
onAdvancedFilter: f
|
|
6855
6872
|
}, null, 8, ["button-active"])
|
|
6856
6873
|
]),
|
|
6857
6874
|
_: 1
|
|
@@ -6874,8 +6891,8 @@ const Ku = {
|
|
|
6874
6891
|
}, {
|
|
6875
6892
|
default: B(() => [
|
|
6876
6893
|
we(F.$slots, "buttons", {}, () => [
|
|
6877
|
-
O(ur, { touched:
|
|
6878
|
-
O(cr, { onReset:
|
|
6894
|
+
O(ur, { touched: v.value }, null, 8, ["touched"]),
|
|
6895
|
+
O(cr, { onReset: c }),
|
|
6879
6896
|
u.value.system && u.value.subject && e.userId && H(he)(e.client) ? (P(), X(Br, {
|
|
6880
6897
|
key: 0,
|
|
6881
6898
|
client: e.client,
|
|
@@ -6900,19 +6917,19 @@ const Ku = {
|
|
|
6900
6917
|
we(F.$slots, "detail", {}, () => [
|
|
6901
6918
|
O($t, null, {
|
|
6902
6919
|
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[
|
|
6920
|
+
(P(!0), de(qe, null, Bt(w.value, (h) => (P(), X(gt, {
|
|
6921
|
+
key: h,
|
|
6922
|
+
cols: H(l).fields[h].render.xs || 12,
|
|
6923
|
+
sm: H(l).fields[h].render.sm || 6,
|
|
6924
|
+
md: H(l).fields[h].render.md || 4,
|
|
6925
|
+
lg: H(l).fields[h].render.lg || 3,
|
|
6926
|
+
xl: H(l).fields[h].render.xl || 2
|
|
6910
6927
|
}, {
|
|
6911
6928
|
default: B(() => [
|
|
6912
|
-
we(F.$slots, H(vr)(
|
|
6913
|
-
itemConfig: H(l).fields[
|
|
6929
|
+
we(F.$slots, H(vr)(h), {
|
|
6930
|
+
itemConfig: H(l).fields[h]
|
|
6914
6931
|
}, () => [
|
|
6915
|
-
O(pr, { name:
|
|
6932
|
+
O(pr, { name: h }, null, 8, ["name"])
|
|
6916
6933
|
])
|
|
6917
6934
|
]),
|
|
6918
6935
|
_: 2
|
|
@@ -6979,14 +6996,14 @@ const Ku = {
|
|
|
6979
6996
|
emits: /* @__PURE__ */ mt(["searchChange", "searchChangeDebounced", "blur", "focus", "click:chipClose"], ["update:modelValue", "update:selected"]),
|
|
6980
6997
|
setup(e, { expose: n, emit: t }) {
|
|
6981
6998
|
const a = e, r = t, o = J(lo), s = J(ro), l = oa()?.type.__name;
|
|
6982
|
-
if (
|
|
6999
|
+
if (D(o) || D(s))
|
|
6983
7000
|
throw new Error(`[${l}] Incorrect provide/inject config.`);
|
|
6984
7001
|
const i = a.filterByField, u = a.filterSortBy;
|
|
6985
|
-
if (
|
|
7002
|
+
if (D(o.fields[i]) || D(s[i]))
|
|
6986
7003
|
throw new Error(
|
|
6987
7004
|
`[${l}] Incorrect filter inner config. FilterByField is '${i}' and available options are ${Object.keys(s).join(", ")}.`
|
|
6988
7005
|
);
|
|
6989
|
-
const
|
|
7006
|
+
const m = Tt(e, "modelValue", {
|
|
6990
7007
|
set(z) {
|
|
6991
7008
|
return ue(z) ? $e(z) : z;
|
|
6992
7009
|
}
|
|
@@ -6998,28 +7015,28 @@ const Ku = {
|
|
|
6998
7015
|
return ue(z) ? $e(z) : z;
|
|
6999
7016
|
}
|
|
7000
7017
|
}
|
|
7001
|
-
), { collabOptions:
|
|
7002
|
-
}),
|
|
7003
|
-
}),
|
|
7004
|
-
}),
|
|
7005
|
-
if (
|
|
7018
|
+
), { collabOptions: g } = Jt(), p = L((z) => {
|
|
7019
|
+
}), T = L((z) => {
|
|
7020
|
+
}), b = L(() => {
|
|
7021
|
+
}), c = L(null);
|
|
7022
|
+
if (g.value.enabled && he(a.collab)) {
|
|
7006
7023
|
const { releaseCollabFieldLock: z, changeCollabFieldData: ie, acquireCollabFieldLock: Ce, lockedByUser: be } = ca(a.collab.room, a.collab.field);
|
|
7007
|
-
p.value = z,
|
|
7024
|
+
p.value = z, T.value = ie, b.value = Ce, Ae(
|
|
7008
7025
|
be,
|
|
7009
7026
|
(Yt) => {
|
|
7010
|
-
|
|
7027
|
+
c.value = Yt;
|
|
7011
7028
|
},
|
|
7012
7029
|
{ immediate: !0 }
|
|
7013
7030
|
);
|
|
7014
7031
|
}
|
|
7015
|
-
const
|
|
7016
|
-
|
|
7017
|
-
},
|
|
7032
|
+
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 = () => {
|
|
7033
|
+
v.value = !1, r("blur", m.value), a.v?.$touch(), p.value(m.value);
|
|
7034
|
+
}, E = U(() => he(a.errorMessage) ? [a.errorMessage] : a.v?.$errors?.length ? a.v.$errors.map((z) => z.$message) : []), $ = U(() => {
|
|
7018
7035
|
if (he(a.label)) return a.label;
|
|
7019
|
-
if (
|
|
7036
|
+
if (D(h) || D(I) || D(a.v?.$path)) return "";
|
|
7020
7037
|
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 : !!
|
|
7038
|
+
return k(h + "." + I + ".model." + z);
|
|
7039
|
+
}), 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
7040
|
G(u) ? null : u.key,
|
|
7024
7041
|
u?.order
|
|
7025
7042
|
), _ = L([]), S = L([]), y = L(!0), C = L(!1), x = U(() => {
|
|
@@ -7034,7 +7051,7 @@ const Ku = {
|
|
|
7034
7051
|
};
|
|
7035
7052
|
return ie(S.value), ie(_.value), Array.from(z.values());
|
|
7036
7053
|
}), R = L(!1), j = U(() => R.value ? !0 : a.loading), Q = (z) => {
|
|
7037
|
-
S.value = [], d.value = ue(z) ? [] : null,
|
|
7054
|
+
S.value = [], d.value = ue(z) ? [] : null, w.value = ue(z) ? [] : null;
|
|
7038
7055
|
}, re = (z) => {
|
|
7039
7056
|
const ie = (Ce) => x.value.find((be) => be.value === Ce) ?? { title: `${Ce}`, value: Ce };
|
|
7040
7057
|
return ue(z) ? z.map(ie) : ie(z);
|
|
@@ -7044,7 +7061,7 @@ const Ku = {
|
|
|
7044
7061
|
const ie = ue(z) ? z : [z];
|
|
7045
7062
|
S.value = await a.fetchItemsByIds(ie);
|
|
7046
7063
|
const Ce = re(z);
|
|
7047
|
-
return d.value = Ce,
|
|
7064
|
+
return d.value = Ce, w.value = Ce, S.value;
|
|
7048
7065
|
} finally {
|
|
7049
7066
|
R.value = !1;
|
|
7050
7067
|
}
|
|
@@ -7056,9 +7073,9 @@ const Ku = {
|
|
|
7056
7073
|
if (ue(be) && be.length > 0) {
|
|
7057
7074
|
if (S.value = be, a.multiple) {
|
|
7058
7075
|
const Yt = be.map((Rr) => Rr.value);
|
|
7059
|
-
return
|
|
7076
|
+
return m.value = Yt, ie && await te("force", Yt), R.value = !1, !0;
|
|
7060
7077
|
}
|
|
7061
|
-
return
|
|
7078
|
+
return m.value = be[0].value, ie && await te("force", be[0].value), R.value = !1, !0;
|
|
7062
7079
|
}
|
|
7063
7080
|
return R.value = !1, !1;
|
|
7064
7081
|
} catch (be) {
|
|
@@ -7079,20 +7096,20 @@ const Ku = {
|
|
|
7079
7096
|
R.value = !0;
|
|
7080
7097
|
try {
|
|
7081
7098
|
const Ce = await a.fetchItems(A, s, o);
|
|
7082
|
-
F.value === 0 && (_.value = Ce, !a.disableAutoSingleSelect && z === "mounted" && Ce.length === 1 && (G(ie) ||
|
|
7099
|
+
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
7100
|
} finally {
|
|
7084
7101
|
R.value = !1;
|
|
7085
7102
|
}
|
|
7086
7103
|
}
|
|
7087
7104
|
}, q = async () => {
|
|
7088
|
-
|
|
7105
|
+
v.value = !0, b.value(), await te("focus", m.value), r("focus", m.value);
|
|
7089
7106
|
}, K = async () => {
|
|
7090
|
-
await te("hover",
|
|
7107
|
+
await te("hover", m.value);
|
|
7091
7108
|
}, ge = U(() => {
|
|
7092
7109
|
if (!a.multiple && S.value[0])
|
|
7093
7110
|
return S.value[0].title;
|
|
7094
7111
|
}), Z = (z) => {
|
|
7095
|
-
!a.multiple && !
|
|
7112
|
+
!a.multiple && !v.value && z.length === 0 || ge.value !== z && (f.value = z);
|
|
7096
7113
|
}, ee = async () => {
|
|
7097
7114
|
try {
|
|
7098
7115
|
_.value = await a.fetchItems(A, s, o);
|
|
@@ -7100,19 +7117,19 @@ const Ku = {
|
|
|
7100
7117
|
ke(z);
|
|
7101
7118
|
}
|
|
7102
7119
|
if (a.multiple) {
|
|
7103
|
-
|
|
7120
|
+
m.value = [];
|
|
7104
7121
|
return;
|
|
7105
7122
|
}
|
|
7106
|
-
|
|
7123
|
+
m.value = null;
|
|
7107
7124
|
}, se = (z) => {
|
|
7108
|
-
if (ue(
|
|
7109
|
-
|
|
7125
|
+
if (ue(m.value)) {
|
|
7126
|
+
m.value = m.value.filter((ie) => ie !== z.value);
|
|
7110
7127
|
return;
|
|
7111
7128
|
}
|
|
7112
|
-
z.value ===
|
|
7129
|
+
z.value === m.value && a.clearable && (m.value = null);
|
|
7113
7130
|
};
|
|
7114
7131
|
qa(
|
|
7115
|
-
|
|
7132
|
+
f,
|
|
7116
7133
|
(z, ie) => {
|
|
7117
7134
|
if (z !== ie && !(z.length > 0 && z.length < a.minSearchChars)) {
|
|
7118
7135
|
if (z.length === 0 && a.prefetch === !1) {
|
|
@@ -7123,31 +7140,31 @@ const Ku = {
|
|
|
7123
7140
|
}
|
|
7124
7141
|
},
|
|
7125
7142
|
{ debounce: fc }
|
|
7126
|
-
), Ae(
|
|
7143
|
+
), Ae(f, (z, ie) => {
|
|
7127
7144
|
z !== ie && r("searchChange", z);
|
|
7128
7145
|
});
|
|
7129
7146
|
const Ie = (z) => {
|
|
7130
7147
|
const ie = $e(z);
|
|
7131
|
-
if (d.value = ie, G(ie) ||
|
|
7132
|
-
|
|
7148
|
+
if (d.value = ie, G(ie) || D(ie)) {
|
|
7149
|
+
m.value = null;
|
|
7133
7150
|
return;
|
|
7134
7151
|
}
|
|
7135
7152
|
if (ue(ie)) {
|
|
7136
|
-
|
|
7153
|
+
m.value = ie.map((Ce) => Ce.value);
|
|
7137
7154
|
return;
|
|
7138
7155
|
}
|
|
7139
|
-
|
|
7156
|
+
m.value = ie.value;
|
|
7140
7157
|
}, Nt = U(() => {
|
|
7141
7158
|
if (R.value)
|
|
7142
7159
|
return "$vuetify.loading";
|
|
7143
|
-
if (_.value.length === 0 &&
|
|
7144
|
-
return
|
|
7160
|
+
if (_.value.length === 0 && f.value.length < a.minSearchChars)
|
|
7161
|
+
return D(a.minSearchText) ? k("common.filter.filterMinChars", { min: a.minSearchChars }) : a.minSearchText;
|
|
7145
7162
|
});
|
|
7146
7163
|
return Ae(
|
|
7147
|
-
|
|
7164
|
+
m,
|
|
7148
7165
|
async (z, ie) => {
|
|
7149
7166
|
if (z !== ie) {
|
|
7150
|
-
if (y.value && (y.value = !1, await te("mounted", z)),
|
|
7167
|
+
if (y.value && (y.value = !1, await te("mounted", z)), g.value.enabled && v.value && T.value(z), Qo(z)) {
|
|
7151
7168
|
Q(z);
|
|
7152
7169
|
return;
|
|
7153
7170
|
}
|
|
@@ -7158,12 +7175,12 @@ const Ku = {
|
|
|
7158
7175
|
), n({
|
|
7159
7176
|
tryLoadModelValue: Te
|
|
7160
7177
|
}), (z, ie) => (P(), X(ra, {
|
|
7161
|
-
"model-value":
|
|
7178
|
+
"model-value": w.value,
|
|
7162
7179
|
items: x.value,
|
|
7163
7180
|
"no-filter": "",
|
|
7164
7181
|
multiple: e.multiple,
|
|
7165
7182
|
clearable: e.clearable,
|
|
7166
|
-
"error-messages":
|
|
7183
|
+
"error-messages": E.value,
|
|
7167
7184
|
chips: e.chips || e.multiple || e.closableChips,
|
|
7168
7185
|
"hide-details": e.hideDetails,
|
|
7169
7186
|
loading: j.value,
|
|
@@ -7212,13 +7229,13 @@ const Ku = {
|
|
|
7212
7229
|
]),
|
|
7213
7230
|
_: 2
|
|
7214
7231
|
}, [
|
|
7215
|
-
|
|
7232
|
+
c.value ? {
|
|
7216
7233
|
name: "append-inner",
|
|
7217
7234
|
fn: B(() => [
|
|
7218
|
-
we(z.$slots, "locked", { userId:
|
|
7235
|
+
we(z.$slots, "locked", { userId: c.value }, () => [
|
|
7219
7236
|
e.collab ? (P(), X(ua, {
|
|
7220
7237
|
key: 0,
|
|
7221
|
-
id:
|
|
7238
|
+
id: c.value,
|
|
7222
7239
|
users: e.collab.cachedUsers
|
|
7223
7240
|
}, null, 8, ["id", "users"])) : ce("", !0)
|
|
7224
7241
|
])
|
|
@@ -7405,7 +7422,7 @@ export {
|
|
|
7405
7422
|
rn as c7,
|
|
7406
7423
|
gr as c8,
|
|
7407
7424
|
Wu as c9,
|
|
7408
|
-
|
|
7425
|
+
D as d,
|
|
7409
7426
|
ua as e,
|
|
7410
7427
|
Gt as f,
|
|
7411
7428
|
$e as g,
|
|
@@ -7429,4 +7446,4 @@ export {
|
|
|
7429
7446
|
Qo as y,
|
|
7430
7447
|
Cl as z
|
|
7431
7448
|
};
|
|
7432
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
7449
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DjYHyeck.mjs.map
|