@anzusystems/common-admin 1.47.0-beta.dev-1784059873 → 1.47.0-beta.dev-1784059875
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-BqeUjYBv.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DyULxnGf.mjs} +343 -339
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DyULxnGf.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.js +5 -5
- package/dist/common-admin.js.map +1 -1
- package/dist/{index-BWdFDqki.mjs → index-CTkKn1Q6.mjs} +2089 -2092
- package/dist/index-CTkKn1Q6.mjs.map +1 -0
- package/dist/labs.js +2 -2
- package/dist/{webfontloader-BfGF-IMH.mjs → webfontloader-gIAjo-5y.mjs} +2 -2
- package/dist/{webfontloader-BfGF-IMH.mjs.map → webfontloader-gIAjo-5y.mjs.map} +1 -1
- package/package.json +9 -9
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BqeUjYBv.mjs.map +0 -1
- package/dist/index-BWdFDqki.mjs.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as Re, openBlock as _, createBlock as te, withCtx as I, createVNode as x, createElementBlock as de, normalizeClass as rt, toDisplayString as ie, createCommentVNode as ve, renderSlot as ke, createElementVNode as Me, isProxy as ps, toRaw as
|
|
1
|
+
import { defineComponent as Re, openBlock as _, createBlock as te, withCtx as I, createVNode as x, createElementBlock as de, normalizeClass as rt, toDisplayString as ie, createCommentVNode as ve, renderSlot as ke, createElementVNode as Me, isProxy as ps, toRaw as aa, isRef as Za, unref as L, computed as R, Fragment as We, normalizeStyle as gs, createTextVNode as ge, shallowRef as oa, watch as _e, ref as U, reactive as qt, inject as me, createSlots as nn, withDirectives as la, onMounted as Wo, withModifiers as De, onUnmounted as ys, TransitionGroup as bs, mergeProps as Xe, isVNode as ws, useModel as ct, useTemplateRef as Yt, nextTick as Qe, withKeys as Ya, vModelText as Dl, mergeModels as tt, getCurrentInstance as $t, resolveComponent as Dn, resolveDynamicComponent as or, renderList as en, toValue as En, toRef as Cs, onBeforeUnmount as ua, provide as fn, vShow as Ss, effectScope as bo, getCurrentScope as ks, onScopeDispose as Ds, useSlots as Es, shallowReactive as xs, normalizeProps as El, guardReactiveProps as xl } from "vue";
|
|
2
2
|
import { useEventBus as bt, tryOnBeforeUnmount as Ts, watchDebounced as Ja, useResizeObserver as As, watchThrottled as Is, defaultDocument as Ms, unrefElement as Tl, tryOnMounted as $s, tryOnScopeDispose as Fs, useElementSize as Bs, useMediaQuery as lr } from "@vueuse/core";
|
|
3
3
|
import { useI18n as Ye, createI18n as Os } from "vue-i18n";
|
|
4
|
-
import { VAutocomplete as
|
|
4
|
+
import { VAutocomplete as ca } from "vuetify/components/VAutocomplete";
|
|
5
5
|
import { VChip as mn } from "vuetify/components/VChip";
|
|
6
|
-
import { VListItem as mt, VList as
|
|
7
|
-
import { VCard as Mn, VCardText as Qa, VCardActions as
|
|
8
|
-
import { VDialog as
|
|
6
|
+
import { VListItem as mt, VList as za, VListItemTitle as rn } from "vuetify/components/VList";
|
|
7
|
+
import { VCard as Mn, VCardText as Qa, VCardActions as da, VCardTitle as rr } from "vuetify/components/VCard";
|
|
8
|
+
import { VDialog as fa } from "vuetify/components/VDialog";
|
|
9
9
|
import { VRow as cn, VCol as Ut, VSpacer as $n } from "vuetify/components/VGrid";
|
|
10
10
|
import { VSelect as sr } from "vuetify/components/VSelect";
|
|
11
11
|
import { VTextarea as _s } from "vuetify/components/VTextarea";
|
|
@@ -13,11 +13,11 @@ import { VForm as ir } from "vuetify/components/VForm";
|
|
|
13
13
|
import { VBtn as Pe } from "vuetify/components/VBtn";
|
|
14
14
|
import { VIcon as Oe } from "vuetify/components/VIcon";
|
|
15
15
|
import { VTooltip as it } from "vuetify/components/VTooltip";
|
|
16
|
-
import { VTextField as
|
|
17
|
-
import
|
|
16
|
+
import { VTextField as ma } from "vuetify/components/VTextField";
|
|
17
|
+
import ra from "@vuelidate/core";
|
|
18
18
|
import { createI18nMessage as wt, between as Rs, email as Ps, maxLength as Ls, maxValue as Ns, minLength as Vs, minValue as Us, numeric as Ys, required as zs, requiredIf as Hs, helpers as ur, url as js } from "@vuelidate/validators";
|
|
19
19
|
import { VDatePicker as qs } from "vuetify/components/VDatePicker";
|
|
20
|
-
import { VMenu as
|
|
20
|
+
import { VMenu as sa } from "vuetify/components/VMenu";
|
|
21
21
|
import { Tooltip as cr } from "vuetify/directives";
|
|
22
22
|
import { VToolbar as Ks, VToolbarTitle as Ws } from "vuetify/components/VToolbar";
|
|
23
23
|
import { VSwitch as Gs } from "vuetify/components/VSwitch";
|
|
@@ -63,10 +63,10 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
63
63
|
}, F = (e) => typeof e > "u", Ue = (e) => !F(e), se = (e) => e === null, xn = (e) => typeof e == "number", Ge = (e) => typeof e == "string", $e = (e) => Array.isArray(e), Om = (e) => typeof e == "function", yt = (e) => typeof e == "boolean", _m = (e) => Ge(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), Rm = (e) => {
|
|
64
64
|
const n = parseFloat(e);
|
|
65
65
|
return !isNaN(e) && (n | 0) === n;
|
|
66
|
-
},
|
|
66
|
+
}, va = (e) => typeof e == "object" && !$e(e) && !se(e), Zn = (e) => va(e) ? Object.keys(e).length === 0 : !1, Lo = (e) => $e(e) && e.length === 0, fr = (e) => se(e) || F(e) || e === "" || e === 0 || Lo(e) || Zn(e), Ee = (e) => {
|
|
67
67
|
if (typeof structuredClone == "function")
|
|
68
68
|
try {
|
|
69
|
-
return ps(e) ? structuredClone(
|
|
69
|
+
return ps(e) ? structuredClone(aa(e)) : Za(e) ? structuredClone(L(e)) : structuredClone(e);
|
|
70
70
|
} catch {
|
|
71
71
|
return JSON.parse(JSON.stringify(e));
|
|
72
72
|
}
|
|
@@ -168,7 +168,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
168
168
|
isModerator: { type: Boolean, default: !1 }
|
|
169
169
|
},
|
|
170
170
|
setup(e) {
|
|
171
|
-
const n = e, t =
|
|
171
|
+
const n = e, t = oa(void 0), a = oa(!1), l = L(n.users), { t: o } = Ye(), r = R(() => {
|
|
172
172
|
if (xn(n.id) && n.id > 0)
|
|
173
173
|
return l.get(n.id);
|
|
174
174
|
}), s = R(() => {
|
|
@@ -279,7 +279,7 @@ const jn = {
|
|
|
279
279
|
}, qn = {
|
|
280
280
|
Success: "success",
|
|
281
281
|
Failure: "failure"
|
|
282
|
-
},
|
|
282
|
+
}, Ia = (e, n) => ({
|
|
283
283
|
type: e,
|
|
284
284
|
status: n
|
|
285
285
|
}), gi = /* @__PURE__ */ Symbol(
|
|
@@ -362,7 +362,7 @@ function Di() {
|
|
|
362
362
|
pr().emit({ room: o });
|
|
363
363
|
let s = {};
|
|
364
364
|
const i = So.get(o);
|
|
365
|
-
return i && (s =
|
|
365
|
+
return i && (s = aa(Object.fromEntries(i.entries())), So.delete(o)), s;
|
|
366
366
|
}
|
|
367
367
|
};
|
|
368
368
|
}
|
|
@@ -423,7 +423,7 @@ function ao(e, n, t = !1) {
|
|
|
423
423
|
if (b || $l(h))
|
|
424
424
|
return void C.emit(
|
|
425
425
|
v,
|
|
426
|
-
|
|
426
|
+
Ia(
|
|
427
427
|
jn.Acquire,
|
|
428
428
|
qn.Failure
|
|
429
429
|
)
|
|
@@ -435,7 +435,7 @@ function ao(e, n, t = !1) {
|
|
|
435
435
|
r.get(e)?.set(D, B);
|
|
436
436
|
return void C.emit(
|
|
437
437
|
v,
|
|
438
|
-
|
|
438
|
+
Ia(
|
|
439
439
|
jn.Acquire,
|
|
440
440
|
qn.Success
|
|
441
441
|
)
|
|
@@ -462,7 +462,7 @@ function ao(e, n, t = !1) {
|
|
|
462
462
|
if (h || $l(v))
|
|
463
463
|
return void C.emit(
|
|
464
464
|
w,
|
|
465
|
-
|
|
465
|
+
Ia(
|
|
466
466
|
jn.Release,
|
|
467
467
|
qn.Failure
|
|
468
468
|
)
|
|
@@ -473,7 +473,7 @@ function ao(e, n, t = !1) {
|
|
|
473
473
|
r.get(e)?.delete(D);
|
|
474
474
|
return void C.emit(
|
|
475
475
|
w,
|
|
476
|
-
|
|
476
|
+
Ia(
|
|
477
477
|
jn.Release,
|
|
478
478
|
qn.Success
|
|
479
479
|
)
|
|
@@ -562,7 +562,7 @@ const xi = {
|
|
|
562
562
|
focus: () => {
|
|
563
563
|
o.value?.focus();
|
|
564
564
|
}
|
|
565
|
-
}), (A, k) => (_(), te(
|
|
565
|
+
}), (A, k) => (_(), te(ma, {
|
|
566
566
|
ref_key: "textFieldRef",
|
|
567
567
|
ref: o,
|
|
568
568
|
"prepend-icon": e.prependIcon,
|
|
@@ -615,7 +615,7 @@ const xi = {
|
|
|
615
615
|
e.help ? {
|
|
616
616
|
name: "append",
|
|
617
617
|
fn: I(() => [
|
|
618
|
-
|
|
618
|
+
la(x(Oe, { icon: "mdi-help-circle-outline" }, null, 512), [
|
|
619
619
|
[cr, e.help]
|
|
620
620
|
])
|
|
621
621
|
]),
|
|
@@ -684,7 +684,7 @@ function fv(e, n, t = void 0, a = void 0, l = !1, o = void 0, r = void 0, s = vo
|
|
|
684
684
|
const m = localStorage.getItem(i);
|
|
685
685
|
if (!m) return;
|
|
686
686
|
const g = JSON.parse(m);
|
|
687
|
-
|
|
687
|
+
va(g) && $e(g.hidden) && (n.value = g.hidden);
|
|
688
688
|
}, f = (m) => {
|
|
689
689
|
!i || !localStorage || localStorage.setItem(i, JSON.stringify({ hidden: m }));
|
|
690
690
|
};
|
|
@@ -841,7 +841,7 @@ const Cn = $i(), ko = "[-+]?[0-9]*.?[0-9]+", Rl = [
|
|
|
841
841
|
function Li(e) {
|
|
842
842
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !ws(e);
|
|
843
843
|
}
|
|
844
|
-
const
|
|
844
|
+
const Ma = {
|
|
845
845
|
IDLE: 0,
|
|
846
846
|
DESTROYED: 2
|
|
847
847
|
}, Ni = /* @__PURE__ */ Re({
|
|
@@ -937,7 +937,7 @@ const Ia = {
|
|
|
937
937
|
slots: t,
|
|
938
938
|
expose: a
|
|
939
939
|
}) => {
|
|
940
|
-
const l = U([]), o = yr.get("velocity"), r = R(() => e.animationType === "velocity"), s = R(() => l.value.filter((M) => M.state !==
|
|
940
|
+
const l = U([]), o = yr.get("velocity"), r = R(() => e.animationType === "velocity"), s = R(() => l.value.filter((M) => M.state !== Ma.DESTROYED)), i = R(() => Bi(e.width)), u = R(() => {
|
|
941
941
|
const {
|
|
942
942
|
x: M,
|
|
943
943
|
y: N
|
|
@@ -975,7 +975,7 @@ const Ia = {
|
|
|
975
975
|
title: O,
|
|
976
976
|
text: b,
|
|
977
977
|
type: h,
|
|
978
|
-
state:
|
|
978
|
+
state: Ma.IDLE,
|
|
979
979
|
speed: K,
|
|
980
980
|
length: N + 2 * K,
|
|
981
981
|
data: v,
|
|
@@ -983,20 +983,20 @@ const Ia = {
|
|
|
983
983
|
};
|
|
984
984
|
N >= 0 && (D.timer = Pi(() => g(D), D.length));
|
|
985
985
|
const B = "bottom" in u.value, j = e.reverse ? !B : B;
|
|
986
|
-
let
|
|
986
|
+
let J = -1;
|
|
987
987
|
const le = s.value.find((re) => re.title === M.title && re.text === M.text);
|
|
988
988
|
if (V && le) {
|
|
989
989
|
le.duplicates++;
|
|
990
990
|
return;
|
|
991
991
|
}
|
|
992
|
-
j ? (l.value.push(D), n("start", D), s.value.length > e.max && (
|
|
992
|
+
j ? (l.value.push(D), n("start", D), s.value.length > e.max && (J = 0)) : (l.value.unshift(D), n("start", D), s.value.length > e.max && (J = s.value.length - 1)), J !== -1 && g(s.value[J]);
|
|
993
993
|
}, p = (M) => {
|
|
994
994
|
T(M);
|
|
995
995
|
}, f = (M) => ["vue-notification-template", e.classes, M.type || ""], m = (M) => r.value ? void 0 : {
|
|
996
996
|
transition: `all ${M.speed}ms`
|
|
997
997
|
}, g = (M) => {
|
|
998
998
|
var N;
|
|
999
|
-
(N = M.timer) == null || N.stop(), M.state =
|
|
999
|
+
(N = M.timer) == null || N.stop(), M.state = Ma.DESTROYED, H(), n("destroy", M);
|
|
1000
1000
|
}, T = (M) => {
|
|
1001
1001
|
const N = l.value.find((K) => K.id === M);
|
|
1002
1002
|
N && g(N);
|
|
@@ -1020,7 +1020,7 @@ const Ia = {
|
|
|
1020
1020
|
});
|
|
1021
1021
|
};
|
|
1022
1022
|
function H() {
|
|
1023
|
-
l.value = l.value.filter((M) => M.state !==
|
|
1023
|
+
l.value = l.value.filter((M) => M.state !== Ma.DESTROYED);
|
|
1024
1024
|
}
|
|
1025
1025
|
return Wo(() => {
|
|
1026
1026
|
Cn.on("add", E), Cn.on("close", p);
|
|
@@ -1090,13 +1090,13 @@ const zi = 200, Hi = 201, br = 202, Bn = 204, vv = 400, hv = 401, ji = 403, pv =
|
|
|
1090
1090
|
Hi,
|
|
1091
1091
|
br,
|
|
1092
1092
|
Bn
|
|
1093
|
-
],
|
|
1093
|
+
], ha = (e) => vn.isAxiosError(e) && e.response?.status === ji, Ki = (e) => e instanceof On;
|
|
1094
1094
|
class On extends Error {
|
|
1095
1095
|
constructor(n, t = "") {
|
|
1096
1096
|
super(t), this.name = "AnzuApiForbiddenError", this.cause = n, this.message = t;
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
const Wi = "validation_failed",
|
|
1099
|
+
const Wi = "validation_failed", pa = (e) => vn.isAxiosError(e) && e.response?.status === Jo && e.response.data?.error === Wi && e.response.data?.fields, wr = (e) => e instanceof _n, Gi = (e, n, t) => e.fields.some((a) => a.field === t && a.errors.includes(n));
|
|
1100
1100
|
function Xi(e, n, t) {
|
|
1101
1101
|
const a = e.response?.data, l = [];
|
|
1102
1102
|
for (const [o, r] of Object.entries(a.fields))
|
|
@@ -1121,7 +1121,7 @@ class Rn extends Error {
|
|
|
1121
1121
|
super(l), this.name = "AnzuApiResponseCodeError", this.cause = t, this.code = n;
|
|
1122
1122
|
}
|
|
1123
1123
|
}
|
|
1124
|
-
const Zi = "forbidden_operation_error",
|
|
1124
|
+
const Zi = "forbidden_operation_error", ga = (e) => vn.isAxiosError(e) && e.response?.status === Jo && e.response.data?.error === Zi && e.response.data?.detail, Ji = (e) => e instanceof Pn;
|
|
1125
1125
|
function Qi(e) {
|
|
1126
1126
|
return (e.response?.data).detail;
|
|
1127
1127
|
}
|
|
@@ -1131,7 +1131,7 @@ class Pn extends Error {
|
|
|
1131
1131
|
super(a), this.name = "AnzuApiForbiddenOperationError", this.cause = t, this.message = a, this.detail = Qi(n);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
const eu = "dependency_exists_error",
|
|
1134
|
+
const eu = "dependency_exists_error", ya = (e) => vn.isAxiosError(e) && e.response?.status === Jo && e.response.data?.error === eu && e.response.data?.dependencies, tu = (e) => e instanceof Ln;
|
|
1135
1135
|
function nu(e) {
|
|
1136
1136
|
return (e.response?.data).dependencies;
|
|
1137
1137
|
}
|
|
@@ -1283,7 +1283,7 @@ function Nn() {
|
|
|
1283
1283
|
function nl(e) {
|
|
1284
1284
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1285
1285
|
}
|
|
1286
|
-
var
|
|
1286
|
+
var _a = { exports: {} }, ru = _a.exports, Ll;
|
|
1287
1287
|
function su() {
|
|
1288
1288
|
return Ll || (Ll = 1, (function(e, n) {
|
|
1289
1289
|
(function(t, a) {
|
|
@@ -1321,8 +1321,8 @@ function su() {
|
|
|
1321
1321
|
var j = h.split("-");
|
|
1322
1322
|
if (!D && j.length > 1) return b(j[0]);
|
|
1323
1323
|
} else {
|
|
1324
|
-
var
|
|
1325
|
-
k[
|
|
1324
|
+
var J = h.name;
|
|
1325
|
+
k[J] = h, D = J;
|
|
1326
1326
|
}
|
|
1327
1327
|
return !w && D && (A = D), D || !w && A;
|
|
1328
1328
|
}, N = function(b, h) {
|
|
@@ -1347,8 +1347,8 @@ function su() {
|
|
|
1347
1347
|
if (typeof D == "string" && !/Z$/i.test(D)) {
|
|
1348
1348
|
var j = D.match(f);
|
|
1349
1349
|
if (j) {
|
|
1350
|
-
var
|
|
1351
|
-
return B ? new Date(Date.UTC(j[1],
|
|
1350
|
+
var J = j[2] - 1 || 0, le = (j[7] || "0").substring(0, 3);
|
|
1351
|
+
return B ? new Date(Date.UTC(j[1], J, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, le)) : new Date(j[1], J, j[3] || 1, j[4] || 0, j[5] || 0, j[6] || 0, le);
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
return new Date(D);
|
|
@@ -1374,7 +1374,7 @@ function su() {
|
|
|
1374
1374
|
}, h.valueOf = function() {
|
|
1375
1375
|
return this.$d.getTime();
|
|
1376
1376
|
}, h.startOf = function(v, w) {
|
|
1377
|
-
var D = this, B = !!K.u(w) || w, j = K.p(v),
|
|
1377
|
+
var D = this, B = !!K.u(w) || w, j = K.p(v), J = function(ee, Fe) {
|
|
1378
1378
|
var X = K.w(D.$u ? Date.UTC(D.$y, Fe, ee) : new Date(D.$y, Fe, ee), D);
|
|
1379
1379
|
return B ? X : X.endOf(u);
|
|
1380
1380
|
}, le = function(ee, Fe) {
|
|
@@ -1382,12 +1382,12 @@ function su() {
|
|
|
1382
1382
|
}, re = this.$W, Se = this.$M, Ce = this.$D, ne = "set" + (this.$u ? "UTC" : "");
|
|
1383
1383
|
switch (j) {
|
|
1384
1384
|
case y:
|
|
1385
|
-
return B ?
|
|
1385
|
+
return B ? J(1, 0) : J(31, 11);
|
|
1386
1386
|
case d:
|
|
1387
|
-
return B ?
|
|
1387
|
+
return B ? J(1, Se) : J(0, Se + 1);
|
|
1388
1388
|
case c:
|
|
1389
1389
|
var he = this.$locale().weekStart || 0, Z = (re < he ? re + 7 : re) - he;
|
|
1390
|
-
return
|
|
1390
|
+
return J(B ? Ce - Z : Ce + (6 - Z), Se);
|
|
1391
1391
|
case u:
|
|
1392
1392
|
case E:
|
|
1393
1393
|
return le(ne + "Hours", 0);
|
|
@@ -1403,11 +1403,11 @@ function su() {
|
|
|
1403
1403
|
}, h.endOf = function(v) {
|
|
1404
1404
|
return this.startOf(v, !1);
|
|
1405
1405
|
}, h.$set = function(v, w) {
|
|
1406
|
-
var D, B = K.p(v), j = "set" + (this.$u ? "UTC" : ""),
|
|
1406
|
+
var D, B = K.p(v), j = "set" + (this.$u ? "UTC" : ""), J = (D = {}, D[u] = j + "Date", D[E] = j + "Date", D[d] = j + "Month", D[y] = j + "FullYear", D[i] = j + "Hours", D[s] = j + "Minutes", D[r] = j + "Seconds", D[o] = j + "Milliseconds", D)[B], le = B === u ? this.$D + (w - this.$W) : w;
|
|
1407
1407
|
if (B === d || B === y) {
|
|
1408
1408
|
var re = this.clone().set(E, 1);
|
|
1409
|
-
re.$d[
|
|
1410
|
-
} else
|
|
1409
|
+
re.$d[J](le), re.init(), this.$d = re.set(E, Math.min(this.$D, re.daysInMonth())).$d;
|
|
1410
|
+
} else J && this.$d[J](le);
|
|
1411
1411
|
return this.init(), this;
|
|
1412
1412
|
}, h.set = function(v, w) {
|
|
1413
1413
|
return this.clone().$set(v, w);
|
|
@@ -1416,14 +1416,14 @@ function su() {
|
|
|
1416
1416
|
}, h.add = function(v, w) {
|
|
1417
1417
|
var D, B = this;
|
|
1418
1418
|
v = Number(v);
|
|
1419
|
-
var j = K.p(w),
|
|
1419
|
+
var j = K.p(w), J = function(Se) {
|
|
1420
1420
|
var Ce = N(B);
|
|
1421
1421
|
return K.w(Ce.date(Ce.date() + Math.round(Se * v)), B);
|
|
1422
1422
|
};
|
|
1423
1423
|
if (j === d) return this.set(d, this.$M + v);
|
|
1424
1424
|
if (j === y) return this.set(y, this.$y + v);
|
|
1425
|
-
if (j === u) return
|
|
1426
|
-
if (j === c) return
|
|
1425
|
+
if (j === u) return J(1);
|
|
1426
|
+
if (j === c) return J(7);
|
|
1427
1427
|
var le = (D = {}, D[s] = a, D[i] = l, D[r] = t, D)[j] || 1, re = this.$d.getTime() + v * le;
|
|
1428
1428
|
return K.w(re, this);
|
|
1429
1429
|
}, h.subtract = function(v, w) {
|
|
@@ -1431,10 +1431,10 @@ function su() {
|
|
|
1431
1431
|
}, h.format = function(v) {
|
|
1432
1432
|
var w = this, D = this.$locale();
|
|
1433
1433
|
if (!this.isValid()) return D.invalidDate || p;
|
|
1434
|
-
var B = v || "YYYY-MM-DDTHH:mm:ssZ", j = K.z(this),
|
|
1434
|
+
var B = v || "YYYY-MM-DDTHH:mm:ssZ", j = K.z(this), J = this.$H, le = this.$m, re = this.$M, Se = D.weekdays, Ce = D.months, ne = D.meridiem, he = function(Fe, X, fe, z) {
|
|
1435
1435
|
return Fe && (Fe[X] || Fe(w, B)) || fe[X].slice(0, z);
|
|
1436
1436
|
}, Z = function(Fe) {
|
|
1437
|
-
return K.s(
|
|
1437
|
+
return K.s(J % 12 || 12, Fe, "0");
|
|
1438
1438
|
}, ee = ne || function(Fe, X, fe) {
|
|
1439
1439
|
var z = Fe < 12 ? "AM" : "PM";
|
|
1440
1440
|
return fe ? z.toLowerCase() : z;
|
|
@@ -1467,17 +1467,17 @@ function su() {
|
|
|
1467
1467
|
case "dddd":
|
|
1468
1468
|
return Se[w.$W];
|
|
1469
1469
|
case "H":
|
|
1470
|
-
return String(
|
|
1470
|
+
return String(J);
|
|
1471
1471
|
case "HH":
|
|
1472
|
-
return K.s(
|
|
1472
|
+
return K.s(J, 2, "0");
|
|
1473
1473
|
case "h":
|
|
1474
1474
|
return Z(1);
|
|
1475
1475
|
case "hh":
|
|
1476
1476
|
return Z(2);
|
|
1477
1477
|
case "a":
|
|
1478
|
-
return ee(
|
|
1478
|
+
return ee(J, le, !0);
|
|
1479
1479
|
case "A":
|
|
1480
|
-
return ee(
|
|
1480
|
+
return ee(J, le, !1);
|
|
1481
1481
|
case "m":
|
|
1482
1482
|
return String(le);
|
|
1483
1483
|
case "mm":
|
|
@@ -1497,10 +1497,10 @@ function su() {
|
|
|
1497
1497
|
}, h.utcOffset = function() {
|
|
1498
1498
|
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1499
1499
|
}, h.diff = function(v, w, D) {
|
|
1500
|
-
var B, j = this,
|
|
1500
|
+
var B, j = this, J = K.p(w), le = N(v), re = (le.utcOffset() - this.utcOffset()) * a, Se = this - le, Ce = function() {
|
|
1501
1501
|
return K.m(j, le);
|
|
1502
1502
|
};
|
|
1503
|
-
switch (
|
|
1503
|
+
switch (J) {
|
|
1504
1504
|
case y:
|
|
1505
1505
|
B = Ce() / 12;
|
|
1506
1506
|
break;
|
|
@@ -1559,11 +1559,11 @@ function su() {
|
|
|
1559
1559
|
return N(1e3 * b);
|
|
1560
1560
|
}, N.en = k[A], N.Ls = k, N.p = {}, N;
|
|
1561
1561
|
}));
|
|
1562
|
-
})(
|
|
1562
|
+
})(_a)), _a.exports;
|
|
1563
1563
|
}
|
|
1564
1564
|
var iu = su();
|
|
1565
1565
|
const Ie = /* @__PURE__ */ nl(iu);
|
|
1566
|
-
var
|
|
1566
|
+
var Ra = { exports: {} }, uu = Ra.exports, Nl;
|
|
1567
1567
|
function cu() {
|
|
1568
1568
|
return Nl || (Nl = 1, (function(e, n) {
|
|
1569
1569
|
(function(t, a) {
|
|
@@ -1636,11 +1636,11 @@ function cu() {
|
|
|
1636
1636
|
};
|
|
1637
1637
|
};
|
|
1638
1638
|
}));
|
|
1639
|
-
})(
|
|
1639
|
+
})(Ra)), Ra.exports;
|
|
1640
1640
|
}
|
|
1641
1641
|
var du = cu();
|
|
1642
1642
|
const Sr = /* @__PURE__ */ nl(du);
|
|
1643
|
-
var
|
|
1643
|
+
var Pa = { exports: {} }, fu = Pa.exports, Vl;
|
|
1644
1644
|
function mu() {
|
|
1645
1645
|
return Vl || (Vl = 1, (function(e, n) {
|
|
1646
1646
|
(function(t, a) {
|
|
@@ -1722,8 +1722,8 @@ function mu() {
|
|
|
1722
1722
|
return (function(B) {
|
|
1723
1723
|
var j = B.afternoon;
|
|
1724
1724
|
if (j !== void 0) {
|
|
1725
|
-
var
|
|
1726
|
-
j ?
|
|
1725
|
+
var J = B.hours;
|
|
1726
|
+
j ? J < 12 && (B.hours += 12) : J === 12 && (B.hours = 0), delete B.afternoon;
|
|
1727
1727
|
}
|
|
1728
1728
|
})(K), K;
|
|
1729
1729
|
};
|
|
@@ -1740,7 +1740,7 @@ function mu() {
|
|
|
1740
1740
|
K && (O = H[2]), i = this.$locale(), !N && O && (i = g.Ls[O]), this.$d = (function(w, D, B, j) {
|
|
1741
1741
|
try {
|
|
1742
1742
|
if (["x", "X"].indexOf(D) > -1) return new Date((D === "X" ? 1e3 : 1) * w);
|
|
1743
|
-
var
|
|
1743
|
+
var J = p(D)(w), le = J.year, re = J.month, Se = J.day, Ce = J.hours, ne = J.minutes, he = J.seconds, Z = J.milliseconds, ee = J.zone, Fe = J.week, X = /* @__PURE__ */ new Date(), fe = Se || (le || re ? 1 : X.getDate()), z = le || X.getFullYear(), W = 0;
|
|
1744
1744
|
le && !re || (W = re > 0 ? re - 1 : X.getMonth());
|
|
1745
1745
|
var ue, Y = Ce || 0, oe = ne || 0, pe = he || 0, Be = Z || 0;
|
|
1746
1746
|
return ee ? new Date(Date.UTC(z, W, fe, Y, oe, pe, Be + 60 * ee.offset * 1e3)) : B ? new Date(Date.UTC(z, W, fe, Y, oe, pe, Be)) : (ue = new Date(z, W, fe, Y, oe, pe, Be), Fe && (ue = j(ue).week(Fe).toDate()), ue);
|
|
@@ -1761,13 +1761,13 @@ function mu() {
|
|
|
1761
1761
|
};
|
|
1762
1762
|
};
|
|
1763
1763
|
}));
|
|
1764
|
-
})(
|
|
1764
|
+
})(Pa)), Pa.exports;
|
|
1765
1765
|
}
|
|
1766
1766
|
var vu = mu();
|
|
1767
1767
|
const kr = /* @__PURE__ */ nl(vu);
|
|
1768
1768
|
Ie.extend(Sr);
|
|
1769
1769
|
Ie.extend(kr);
|
|
1770
|
-
const tn = ".000000Z",
|
|
1770
|
+
const tn = ".000000Z", Ha = "YYYY-MM-DDTHH:mm:ss", oo = "1970-01-01T00:00:00.000000Z", lo = "2100-01-01T00:00:00.000000Z", gv = () => Ie().utc().toDate(), hu = (e) => Ie(e).toDate(), yv = () => mr(Ie().utc().unix()), ia = (e = !0, n = !1) => e && !n ? Ie().utc().format("YYYY-MM-DDTHH:mm:ss") + tn : e && n ? Ie().utc().format("YYYY-MM-DDTHH:mm:00") + tn : !e && n ? Ie().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : Ie().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", bv = (e = 0) => e === 0 ? Ie().startOf("day").utc().format(Ha) + tn : Ie().add(e, "days").startOf("day").utc().format(Ha) + tn, wv = (e = 0) => e === 0 ? Ie().endOf("day").utc().format(Ha) + tn : Ie().add(e, "days").endOf("day").utc().format(Ha) + tn, pu = (e = 0, n = null) => (n === null && (n = /* @__PURE__ */ new Date()), e === 0 ? n : e > 0 ? Ie(n).add(e, "minutes").toDate() : e < 0 ? Ie(n).subtract(Math.abs(e), "minutes").toDate() : n), Vo = (e, n = tn) => Ie(e).utc().format("YYYY-MM-DDTHH:mm:ss") + n, Cv = () => Ie().utc().format("YYYY"), Kn = (e, n = "", t = !1) => e === lo || e === oo || e === "" || se(e) || F(e) ? n : Ie(e).format(t ? "DD.MM.YYYY HH:mm:ss" : "DD.MM.YYYY HH:mm"), Sv = (e, n = "", t = !1) => {
|
|
1771
1771
|
if (e === lo || e === oo || e === "" || se(e) || F(e))
|
|
1772
1772
|
return n;
|
|
1773
1773
|
let a = !0, l = !0;
|
|
@@ -1888,11 +1888,11 @@ function Av(e, n, t = ".") {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
return o(e), e;
|
|
1890
1890
|
}
|
|
1891
|
-
const
|
|
1891
|
+
const ba = (e, n, t = "") => Zn(n) ? e : ti(
|
|
1892
1892
|
t === "" ? e : t,
|
|
1893
1893
|
n
|
|
1894
|
-
),
|
|
1895
|
-
e().get(
|
|
1894
|
+
), wa = (e) => qi.includes(e), Iv = (e, n, t = {}, a, l, o = {}) => new Promise((r, s) => {
|
|
1895
|
+
e().get(ba(n, t), o).then((i) => wa(i.status) ? i.data ? r(i.data) : i.status === Bn ? r(null) : s(new Ft()) : s(new Rn(i.status))).catch((i) => ha(i) ? s(new On(i, i.config?.url)) : pa(i) ? s(new _n(i, a, l, i)) : ya(i) ? s(new Ln(i, a, l, i)) : ga(i) ? s(new Pn(i, i)) : s(new Ft(i)));
|
|
1896
1896
|
}), { t: wu } = He.global;
|
|
1897
1897
|
function Cu() {
|
|
1898
1898
|
return wt({ t: wu })(Rs, {
|
|
@@ -2132,7 +2132,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2132
2132
|
focusHour: P
|
|
2133
2133
|
}), (A, k) => (_(), de("div", qu, [
|
|
2134
2134
|
Me("div", Ku, [
|
|
2135
|
-
|
|
2135
|
+
la(Me("input", {
|
|
2136
2136
|
ref_key: "hoursRefInput",
|
|
2137
2137
|
ref: s,
|
|
2138
2138
|
"onUpdate:modelValue": k[0] || (k[0] = ($) => u.value = $),
|
|
@@ -2144,7 +2144,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2144
2144
|
max: "23",
|
|
2145
2145
|
onFocus: d,
|
|
2146
2146
|
onBlur: C,
|
|
2147
|
-
onKeyup:
|
|
2147
|
+
onKeyup: Ya(E, ["enter"])
|
|
2148
2148
|
}, null, 544), [
|
|
2149
2149
|
[Dl, u.value]
|
|
2150
2150
|
]),
|
|
@@ -2175,7 +2175,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2175
2175
|
]),
|
|
2176
2176
|
k[2] || (k[2] = Me("span", { class: "a-datetime-picker-time__separator" }, ":", -1)),
|
|
2177
2177
|
Me("div", Gu, [
|
|
2178
|
-
|
|
2178
|
+
la(Me("input", {
|
|
2179
2179
|
ref_key: "minutesRefInput",
|
|
2180
2180
|
ref: i,
|
|
2181
2181
|
"onUpdate:modelValue": k[1] || (k[1] = ($) => c.value = $),
|
|
@@ -2187,7 +2187,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2187
2187
|
max: "59",
|
|
2188
2188
|
onFocus: d,
|
|
2189
2189
|
onBlur: y,
|
|
2190
|
-
onKeyup:
|
|
2190
|
+
onKeyup: Ya(p, ["enter"])
|
|
2191
2191
|
}, null, 544), [
|
|
2192
2192
|
[Dl, c.value]
|
|
2193
2193
|
]),
|
|
@@ -2247,7 +2247,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2247
2247
|
textFieldValue: {
|
|
2248
2248
|
required: f(t.required)
|
|
2249
2249
|
}
|
|
2250
|
-
})), g =
|
|
2250
|
+
})), g = ra(m, { textFieldValue: c }), T = R(() => t.type === "datetime" ? "DD.MM.YYYY HH:mm" : "DD.MM.YYYY"), P = (w) => {
|
|
2251
2251
|
w !== t.modelValue && a("update:modelValue", w);
|
|
2252
2252
|
}, A = (w) => {
|
|
2253
2253
|
se(w) || ((se(C.value) || w.hour() !== C.value.hours || w.minute() !== C.value.minutes) && (C.value = { hours: w.hour(), minutes: w.minute() }), (se(d.value) || w.year() !== d.value.getFullYear() || w.month() !== d.value.getMonth() || w.date() !== d.value.getDate()) && (d.value = w.toDate()));
|
|
@@ -2268,7 +2268,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2268
2268
|
const k = (w, D) => se(w) ? D : D.set("date", w.getDate()).set("month", w.getMonth()).set("year", w.getFullYear()), $ = (w, D) => se(w) ? D : D.set("hour", w.hours).set("minute", w.minutes);
|
|
2269
2269
|
_e([C, d], ([w, D]) => {
|
|
2270
2270
|
let B = null;
|
|
2271
|
-
se(y.value) ? se(t.modelValue) ? t.lastMinuteMoment ? B = Ie().hour(0).minute(0).second(59).millisecond(999) : B = Ie().hour(0).minute(0).second(0).millisecond(0) : B = Ie(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : B = y.value, B = $(w, B), B = k(D, B), !B.isSame(
|
|
2271
|
+
se(y.value) ? se(t.modelValue) ? t.lastMinuteMoment ? B = Ie().hour(0).minute(0).second(59).millisecond(999) : B = Ie().hour(0).minute(0).second(0).millisecond(0) : B = Ie(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : B = y.value, B = $(w, B), B = k(D, B), !B.isSame(aa(y.value)) && (y.value = B);
|
|
2272
2272
|
}), _e(
|
|
2273
2273
|
y,
|
|
2274
2274
|
(w) => {
|
|
@@ -2299,10 +2299,11 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2299
2299
|
if (D.isValid()) {
|
|
2300
2300
|
let B = 0;
|
|
2301
2301
|
if (!se(t.modelValue)) {
|
|
2302
|
-
const
|
|
2303
|
-
|
|
2302
|
+
const J = Ie(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ");
|
|
2303
|
+
J.isValid() && (B = J.second());
|
|
2304
2304
|
}
|
|
2305
|
-
|
|
2305
|
+
const j = D.second(B);
|
|
2306
|
+
j.isSame(aa(y.value), "second") ? c.value = j.format(T.value) : y.value = j, g.value.textFieldValue.$touch(), a("blur");
|
|
2306
2307
|
return;
|
|
2307
2308
|
}
|
|
2308
2309
|
se(y.value) || (c.value = y.value.format(T.value)), g.value.textFieldValue.$touch(), a("blur");
|
|
@@ -2327,7 +2328,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2327
2328
|
o.value++, r.value++;
|
|
2328
2329
|
});
|
|
2329
2330
|
};
|
|
2330
|
-
return (w, D) => (_(), te(
|
|
2331
|
+
return (w, D) => (_(), te(ma, {
|
|
2331
2332
|
ref_key: "inputInstance",
|
|
2332
2333
|
ref: i,
|
|
2333
2334
|
modelValue: c.value,
|
|
@@ -2341,7 +2342,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2341
2342
|
autocomplete: "off",
|
|
2342
2343
|
onBlur: M,
|
|
2343
2344
|
onFocus: V,
|
|
2344
|
-
onKeyup:
|
|
2345
|
+
onKeyup: Ya(M, ["enter"])
|
|
2345
2346
|
}, nn({
|
|
2346
2347
|
"append-inner": I(() => [
|
|
2347
2348
|
e.clearable && e.defaultValue !== e.modelValue ? (_(), te(Oe, {
|
|
@@ -2350,7 +2351,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2350
2351
|
icon: "mdi-close-circle",
|
|
2351
2352
|
onClick: De(N, ["stop"])
|
|
2352
2353
|
})) : ve("", !0),
|
|
2353
|
-
e.disabled ? ve("", !0) : (_(), te(
|
|
2354
|
+
e.disabled ? ve("", !0) : (_(), te(sa, {
|
|
2354
2355
|
key: 1,
|
|
2355
2356
|
location: "bottom end",
|
|
2356
2357
|
origin: "top end",
|
|
@@ -2368,7 +2369,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2368
2369
|
default: I(() => [
|
|
2369
2370
|
l.value ? (_(), te(Mn, { key: 0 }, {
|
|
2370
2371
|
default: I(() => [
|
|
2371
|
-
|
|
2372
|
+
la((_(), te(Pe, {
|
|
2372
2373
|
icon: "",
|
|
2373
2374
|
variant: "text",
|
|
2374
2375
|
width: 36,
|
|
@@ -2441,7 +2442,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2441
2442
|
}
|
|
2442
2443
|
]), 1032, ["modelValue", "error-messages", "placeholder", "disabled"]));
|
|
2443
2444
|
}
|
|
2444
|
-
}), xr = /* @__PURE__ */ Xo(nc, [["__scopeId", "data-v-
|
|
2445
|
+
}), xr = /* @__PURE__ */ Xo(nc, [["__scopeId", "data-v-2afc2324"]]), Ul = /* @__PURE__ */ Re({
|
|
2445
2446
|
__name: "AFormDatetimePicker",
|
|
2446
2447
|
props: {
|
|
2447
2448
|
modelValue: {},
|
|
@@ -2682,7 +2683,7 @@ function Bt() {
|
|
|
2682
2683
|
else if ($e(s[o]) && s[o].length > 0) {
|
|
2683
2684
|
const C = s[o].findIndex(
|
|
2684
2685
|
(E) => E === r
|
|
2685
|
-
), y = [...
|
|
2686
|
+
), y = [...aa(s[o])];
|
|
2686
2687
|
y.splice(C, 1), s[o] = y;
|
|
2687
2688
|
} else (Ge(s[o]) || xn(s[o]) || yt(s[o])) && (s[o] = c.default);
|
|
2688
2689
|
}, a = (o, r, s) => {
|
|
@@ -2721,7 +2722,7 @@ function Tr(e, n, t = {}) {
|
|
|
2721
2722
|
const P = new URLSearchParams();
|
|
2722
2723
|
for (const A in m) {
|
|
2723
2724
|
const k = m[A];
|
|
2724
|
-
F(k) || se(k) || $e(k) && Lo(k) ||
|
|
2725
|
+
F(k) || se(k) || $e(k) && Lo(k) || va(k) && Zn(k) || Ge(k) && k.length === 0 || ($e(k) ? P.set(A, k.join(",")) : P.set(A, String(k)));
|
|
2725
2726
|
}
|
|
2726
2727
|
return T && g.value.sortBy && P.set(Ao, `${g.value.sortBy.key},${g.value.sortBy.order}`), P.size === 0 ? "" : P.toString() + l;
|
|
2727
2728
|
}, i = (m) => {
|
|
@@ -2879,7 +2880,7 @@ function uc(e) {
|
|
|
2879
2880
|
}
|
|
2880
2881
|
};
|
|
2881
2882
|
return {
|
|
2882
|
-
v$:
|
|
2883
|
+
v$: ra(o, { dialogData: e }, { $scope: "AFilterTimeIntervalScope" })
|
|
2883
2884
|
};
|
|
2884
2885
|
}
|
|
2885
2886
|
function cc() {
|
|
@@ -2898,7 +2899,7 @@ function cc() {
|
|
|
2898
2899
|
from: m,
|
|
2899
2900
|
until: g
|
|
2900
2901
|
};
|
|
2901
|
-
const T =
|
|
2902
|
+
const T = ia(), P = hu(T);
|
|
2902
2903
|
switch (m) {
|
|
2903
2904
|
case _t.CurrentMonth:
|
|
2904
2905
|
return xo(P, "utc", 0, !1);
|
|
@@ -2966,7 +2967,7 @@ function cc() {
|
|
|
2966
2967
|
q: e
|
|
2967
2968
|
};
|
|
2968
2969
|
}
|
|
2969
|
-
const dc = (e) =>
|
|
2970
|
+
const dc = (e) => va(e) && Object.hasOwn(e, "totalCount"), fc = (e) => va(e) && Object.hasOwn(e, "hasNextPage"), mc = (e, n, t) => {
|
|
2970
2971
|
const { querySetLimit: a, querySetOffset: l, querySetOrder: o, queryBuild: r, querySetFilters: s } = cc();
|
|
2971
2972
|
return a(e.value.rowsPerPage), l(e.value.page, e.value.rowsPerPage), e.value.sortBy && o(e.value.sortBy.key, e.value.sortBy.order === Ht.Desc), s(n, t), r();
|
|
2972
2973
|
}, vc = (e) => {
|
|
@@ -2991,11 +2992,11 @@ const dc = (e) => ma(e) && Object.hasOwn(e, "totalCount"), fc = (e) => ma(e) &&
|
|
|
2991
2992
|
try {
|
|
2992
2993
|
const g = y.general.elastic || m ? "/search" : "", T = Ue(f) ? f : o, P = Ue(p) ? p : l;
|
|
2993
2994
|
if (F(P)) throw new Error("Url template is undefined");
|
|
2994
|
-
const A = (F(T) ? P :
|
|
2995
|
+
const A = (F(T) ? P : ba(P, T)) + g + mc(d, C, y), k = await n().get(A, {
|
|
2995
2996
|
...r,
|
|
2996
2997
|
signal: i.signal
|
|
2997
2998
|
});
|
|
2998
|
-
if (!
|
|
2999
|
+
if (!wa(k.status))
|
|
2999
3000
|
throw new Rn(k.status);
|
|
3000
3001
|
if (k.data) {
|
|
3001
3002
|
const $ = k.data;
|
|
@@ -3015,7 +3016,7 @@ const dc = (e) => ma(e) && Object.hasOwn(e, "totalCount"), fc = (e) => ma(e) &&
|
|
|
3015
3016
|
} catch (g) {
|
|
3016
3017
|
if (g instanceof DOMException && g.name === "AbortError")
|
|
3017
3018
|
return [];
|
|
3018
|
-
throw Qo(g) ? g :
|
|
3019
|
+
throw Qo(g) ? g : ha(g) ? new On(g, g.config?.url) : pa(g) ? new _n(g, t, a, g) : ya(g) ? new Ln(g, t, a, g) : ga(g) ? new Pn(g, g) : Cr(g) ? new el(g) : vn.isAxiosError(g) ? (s || console.error("Axios error: " + l, ...g.cause ? [g.cause] : []), new tl(g)) : (s || console.error("AnzuFatalError: ", g), new Ft(g));
|
|
3019
3020
|
} finally {
|
|
3020
3021
|
i = null;
|
|
3021
3022
|
}
|
|
@@ -3062,7 +3063,7 @@ function An(e, n = Ht.Desc, t = {}, a) {
|
|
|
3062
3063
|
};
|
|
3063
3064
|
}
|
|
3064
3065
|
const Mv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
3065
|
-
e().post(
|
|
3066
|
+
e().post(ba(t, a), JSON.stringify(n), r).then((u) => wa(u.status) ? u.data ? s(u.data) : u.status === Bn ? s(null) : i(new Ft()) : i(new Rn(u.status))).catch((u) => ha(u) ? i(new On(u, u.config?.url)) : pa(u) ? i(new _n(u, l, o, u)) : ya(u) ? i(new Ln(u, l, o, u)) : ga(u) ? i(new Pn(u, u)) : i(new Ft(u)));
|
|
3066
3067
|
}), Ct = /* @__PURE__ */ Symbol.for("anzu:FilterDataKey"), ht = /* @__PURE__ */ Symbol.for("anzu:FilterConfigKey"), so = /* @__PURE__ */ Symbol.for("anzu:FilterInnerDataKey"), io = /* @__PURE__ */ Symbol.for(
|
|
3067
3068
|
"anzu:FilterInnerConfigKey"
|
|
3068
3069
|
), Lt = /* @__PURE__ */ Symbol.for(
|
|
@@ -3170,7 +3171,7 @@ const Mv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3170
3171
|
f === m || yt(f) || p();
|
|
3171
3172
|
},
|
|
3172
3173
|
{ immediate: !0 }
|
|
3173
|
-
), (f, m) => (_(), te(
|
|
3174
|
+
), (f, m) => (_(), te(ma, {
|
|
3174
3175
|
modelValue: i.value,
|
|
3175
3176
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => i.value = g),
|
|
3176
3177
|
label: d.value,
|
|
@@ -3271,11 +3272,11 @@ const Mv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3271
3272
|
f.value = !0, await D("focus");
|
|
3272
3273
|
}, j = async () => {
|
|
3273
3274
|
await D("hover");
|
|
3274
|
-
},
|
|
3275
|
+
}, J = R(() => {
|
|
3275
3276
|
if (!y.value.multiple && H.value[0])
|
|
3276
3277
|
return H.value[0].title;
|
|
3277
3278
|
}), le = (X) => {
|
|
3278
|
-
!y.value.multiple && !f.value && X.length === 0 ||
|
|
3279
|
+
!y.value.multiple && !f.value && X.length === 0 || J.value !== X && (p.value = X);
|
|
3279
3280
|
}, { clearOne: re } = Bt(), Se = () => {
|
|
3280
3281
|
re(t.name, s, r), o.value.delete(t.name);
|
|
3281
3282
|
}, Ce = async () => {
|
|
@@ -3336,7 +3337,7 @@ const Mv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3336
3337
|
await h(z);
|
|
3337
3338
|
},
|
|
3338
3339
|
{ immediate: !0 }
|
|
3339
|
-
), (X, fe) => (_(), te(
|
|
3340
|
+
), (X, fe) => (_(), te(ca, {
|
|
3340
3341
|
modelValue: E.value,
|
|
3341
3342
|
"onUpdate:modelValue": [
|
|
3342
3343
|
fe[0] || (fe[0] = (z) => E.value = z),
|
|
@@ -3490,7 +3491,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3490
3491
|
r.touched = !0;
|
|
3491
3492
|
let he = null;
|
|
3492
3493
|
$e(ne) ? he = ne.map((Z) => Z.value) : se(ne) || (he = ne.value), s[t.name] = he, a("change");
|
|
3493
|
-
},
|
|
3494
|
+
}, J = async () => {
|
|
3494
3495
|
try {
|
|
3495
3496
|
A.value = await t.fetchItemsMinimal(
|
|
3496
3497
|
P,
|
|
@@ -3570,7 +3571,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3570
3571
|
ne.length < t.searchMinChars || ne !== he && (p.value++, N(ne, p.value));
|
|
3571
3572
|
},
|
|
3572
3573
|
{ debounce: 300 }
|
|
3573
|
-
), (ne, he) => (_(), te(
|
|
3574
|
+
), (ne, he) => (_(), te(ca, {
|
|
3574
3575
|
modelValue: d.value,
|
|
3575
3576
|
"onUpdate:modelValue": [
|
|
3576
3577
|
he[0] || (he[0] = (Z) => d.value = Z),
|
|
@@ -3591,7 +3592,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3591
3592
|
onBlur: g,
|
|
3592
3593
|
onFocus: v,
|
|
3593
3594
|
onMouseenter: w,
|
|
3594
|
-
"onClick:clear":
|
|
3595
|
+
"onClick:clear": J
|
|
3595
3596
|
}, {
|
|
3596
3597
|
item: I(({ props: Z, internalItem: ee }) => [
|
|
3597
3598
|
ke(ne.$slots, "item", {
|
|
@@ -3646,7 +3647,10 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3646
3647
|
}), c = R(() => r.fields[t.name]), { t: d } = Ye(), C = R(() => c.value.titleT ? d(c.value.titleT) : void 0), { clearOne: y } = Bt(), E = () => {
|
|
3647
3648
|
y(t.name, s, r), o.value.delete(t.name);
|
|
3648
3649
|
}, p = (f) => {
|
|
3649
|
-
if ($e(f) && f.length === 0)
|
|
3650
|
+
if ($e(f) && f.length === 0) {
|
|
3651
|
+
o.value.delete(t.name);
|
|
3652
|
+
return;
|
|
3653
|
+
}
|
|
3650
3654
|
if ($e(f)) {
|
|
3651
3655
|
o.value.set(
|
|
3652
3656
|
t.name,
|
|
@@ -3668,7 +3672,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3668
3672
|
f === m || yt(f) || p(f);
|
|
3669
3673
|
},
|
|
3670
3674
|
{ immediate: !0 }
|
|
3671
|
-
), (f, m) => (_(), te(
|
|
3675
|
+
), (f, m) => (_(), te(ca, {
|
|
3672
3676
|
modelValue: u.value,
|
|
3673
3677
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => u.value = g),
|
|
3674
3678
|
items: e.items,
|
|
@@ -3711,7 +3715,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3711
3715
|
}
|
|
3712
3716
|
}), { timeIntervalOptions: u, getTimeIntervalOption: c } = ic(t.allowed), d = U(null), C = U(!1), y = U({
|
|
3713
3717
|
from: null,
|
|
3714
|
-
until:
|
|
3718
|
+
until: ia()
|
|
3715
3719
|
}), E = U(!1), { v$: p } = uc(y), f = R(() => r.fields[t.nameFrom]), { t: m } = Ye(), g = R(() => f.value.titleT ? m(f.value.titleT) : void 0), { clearOne: T } = Bt(), { showValidationError: P } = Nn(), A = () => {
|
|
3716
3720
|
E.value = !1, d.value = null, H();
|
|
3717
3721
|
}, k = () => {
|
|
@@ -3743,7 +3747,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3743
3747
|
}
|
|
3744
3748
|
O && o.value.set(t.nameFrom, [{ title: O.title, value: V }]);
|
|
3745
3749
|
}, N = (V = !1) => {
|
|
3746
|
-
p.value.$reset(), V && (y.value.from = null, y.value.until =
|
|
3750
|
+
p.value.$reset(), V && (y.value.from = null, y.value.until = ia()), C.value = !0;
|
|
3747
3751
|
};
|
|
3748
3752
|
_e(
|
|
3749
3753
|
i,
|
|
@@ -3809,7 +3813,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3809
3813
|
]),
|
|
3810
3814
|
_: 1
|
|
3811
3815
|
}, 8, ["modelValue", "label", "clearable", "data-cy", "items"])),
|
|
3812
|
-
C.value ? (_(), te(
|
|
3816
|
+
C.value ? (_(), te(fa, {
|
|
3813
3817
|
key: 2,
|
|
3814
3818
|
"model-value": !0,
|
|
3815
3819
|
width: "auto",
|
|
@@ -3855,7 +3859,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3855
3859
|
]),
|
|
3856
3860
|
_: 1
|
|
3857
3861
|
}),
|
|
3858
|
-
x(
|
|
3862
|
+
x(da, null, {
|
|
3859
3863
|
default: I(() => [
|
|
3860
3864
|
x($n),
|
|
3861
3865
|
x(b, {
|
|
@@ -3977,7 +3981,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3977
3981
|
f === m || yt(f) || p();
|
|
3978
3982
|
},
|
|
3979
3983
|
{ immediate: !0 }
|
|
3980
|
-
), (f, m) => (_(), te(
|
|
3984
|
+
), (f, m) => (_(), te(ma, {
|
|
3981
3985
|
modelValue: i.value,
|
|
3982
3986
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => i.value = g),
|
|
3983
3987
|
label: d.value,
|
|
@@ -4035,10 +4039,10 @@ function jl(e, n = "userAdminConfig") {
|
|
|
4035
4039
|
filterData: l
|
|
4036
4040
|
};
|
|
4037
4041
|
}
|
|
4038
|
-
const
|
|
4042
|
+
const ja = {
|
|
4039
4043
|
PinnedWidgets: "pinnedWidgets",
|
|
4040
4044
|
FilterBookmark: "filterBookmark"
|
|
4041
|
-
}, Ec =
|
|
4045
|
+
}, Ec = ja.PinnedWidgets, dn = {
|
|
4042
4046
|
Desktop: "desktop",
|
|
4043
4047
|
Mobile: "mobile"
|
|
4044
4048
|
}, xc = dn.Desktop, Tc = 3, Uo = 8, $r = Xs("filterBookmarkStore", () => {
|
|
@@ -4066,7 +4070,7 @@ const Ha = {
|
|
|
4066
4070
|
s.systemResource,
|
|
4067
4071
|
"_"
|
|
4068
4072
|
), { filterConfig: p, filterData: f } = jl(y, E);
|
|
4069
|
-
f.configType =
|
|
4073
|
+
f.configType = ja.FilterBookmark, f.layoutType = s.layoutType, f.systemResource = s.systemResource, f.user = s.user;
|
|
4070
4074
|
let m = [];
|
|
4071
4075
|
try {
|
|
4072
4076
|
const { executeFetch: g } = i();
|
|
@@ -4084,7 +4088,7 @@ const Ha = {
|
|
|
4084
4088
|
s.systemResource,
|
|
4085
4089
|
"_"
|
|
4086
4090
|
), { filterConfig: C, filterData: y } = jl(c, d);
|
|
4087
|
-
y.configType =
|
|
4091
|
+
y.configType = ja.FilterBookmark, y.layoutType = s.layoutType, y.systemResource = s.systemResource, y.user = s.user;
|
|
4088
4092
|
let E = 1 / 0;
|
|
4089
4093
|
try {
|
|
4090
4094
|
const { executeFetch: p } = i();
|
|
@@ -4124,13 +4128,13 @@ const Ha = {
|
|
|
4124
4128
|
try {
|
|
4125
4129
|
const f = { method: t }, m = Ue(E) ? E : r, g = Ue(y) ? y : o;
|
|
4126
4130
|
if (F(g)) throw new Error("Url template is undefined");
|
|
4127
|
-
f.url = g, g !== "" && !F(m) && (f.url =
|
|
4131
|
+
f.url = g, g !== "" && !F(m) && (f.url = ba(g, m)), se(p) || (f.data = JSON.stringify(p));
|
|
4128
4132
|
const T = await n().request({
|
|
4129
4133
|
...s,
|
|
4130
4134
|
...f,
|
|
4131
4135
|
signal: u.signal
|
|
4132
4136
|
});
|
|
4133
|
-
if (!
|
|
4137
|
+
if (!wa(T.status))
|
|
4134
4138
|
throw new Rn(T.status);
|
|
4135
4139
|
if (T.data)
|
|
4136
4140
|
return T.data;
|
|
@@ -4140,7 +4144,7 @@ const Ha = {
|
|
|
4140
4144
|
} catch (f) {
|
|
4141
4145
|
if (f instanceof DOMException && f.name === "AbortError")
|
|
4142
4146
|
return [];
|
|
4143
|
-
throw Qo(f) ? f :
|
|
4147
|
+
throw Qo(f) ? f : ha(f) ? new On(f, f.config?.url) : pa(f) ? new _n(f, a, l, f) : ya(f) ? new Ln(f, a, l, f) : ga(f) ? new Pn(f, f) : Cr(f) ? new el(f) : vn.isAxiosError(f) ? (i || console.error("Axios error: " + o, ...f.cause ? [f.cause] : []), new tl(f)) : (i || console.error("AnzuFatalError: ", f), new Ft(f));
|
|
4144
4148
|
} finally {
|
|
4145
4149
|
u = null;
|
|
4146
4150
|
}
|
|
@@ -4316,7 +4320,7 @@ const Ic = { key: 0 }, Mc = 32, Br = /* @__PURE__ */ Re({
|
|
|
4316
4320
|
_: 2
|
|
4317
4321
|
}, 1032, ["onClick"])
|
|
4318
4322
|
]))), 128)),
|
|
4319
|
-
A.value.hidden.length > 0 ? (_(), te(
|
|
4323
|
+
A.value.hidden.length > 0 ? (_(), te(sa, {
|
|
4320
4324
|
key: 0,
|
|
4321
4325
|
location: "bottom"
|
|
4322
4326
|
}, {
|
|
@@ -4329,7 +4333,7 @@ const Ic = { key: 0 }, Mc = 32, Br = /* @__PURE__ */ Re({
|
|
|
4329
4333
|
}, H), null, 16)
|
|
4330
4334
|
]),
|
|
4331
4335
|
default: I(() => [
|
|
4332
|
-
x(
|
|
4336
|
+
x(za, { density: "compact" }, {
|
|
4333
4337
|
default: I(() => [
|
|
4334
4338
|
(_(!0), de(We, null, en(A.value.hidden, (H) => (_(), te(mt, {
|
|
4335
4339
|
key: H.id,
|
|
@@ -4438,7 +4442,7 @@ function zt(e) {
|
|
|
4438
4442
|
if (typeof window < "u" && window.navigator)
|
|
4439
4443
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
4440
4444
|
}
|
|
4441
|
-
var Kt = zt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
4445
|
+
var Kt = zt(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ca = zt(/Edge/i), Wl = zt(/firefox/i), Jn = zt(/safari/i) && !zt(/chrome/i) && !zt(/android/i), ol = zt(/iP(ad|od|hone)/i), Or = zt(/chrome/i) && zt(/android/i), _r = {
|
|
4442
4446
|
capture: !1,
|
|
4443
4447
|
passive: !1
|
|
4444
4448
|
};
|
|
@@ -4448,7 +4452,7 @@ function Ve(e, n, t) {
|
|
|
4448
4452
|
function Ne(e, n, t) {
|
|
4449
4453
|
e.removeEventListener(n, t, !Kt && _r);
|
|
4450
4454
|
}
|
|
4451
|
-
function
|
|
4455
|
+
function qa(e, n) {
|
|
4452
4456
|
if (n) {
|
|
4453
4457
|
if (n[0] === ">" && (n = n.substring(1)), e)
|
|
4454
4458
|
try {
|
|
@@ -4471,7 +4475,7 @@ function Mt(e, n, t, a) {
|
|
|
4471
4475
|
if (e) {
|
|
4472
4476
|
t = t || document;
|
|
4473
4477
|
do {
|
|
4474
|
-
if (n != null && (n[0] === ">" ? e.parentNode === t &&
|
|
4478
|
+
if (n != null && (n[0] === ">" ? e.parentNode === t && qa(e, n) : qa(e, n)) || a && e === t)
|
|
4475
4479
|
return e;
|
|
4476
4480
|
if (e === t) break;
|
|
4477
4481
|
} while (e = Rr(e));
|
|
@@ -4568,7 +4572,7 @@ function In(e, n, t, a) {
|
|
|
4568
4572
|
return null;
|
|
4569
4573
|
}
|
|
4570
4574
|
function ll(e, n) {
|
|
4571
|
-
for (var t = e.lastElementChild; t && (t === we.ghost || be(t, "display") === "none" || n && !
|
|
4575
|
+
for (var t = e.lastElementChild; t && (t === we.ghost || be(t, "display") === "none" || n && !qa(t, n)); )
|
|
4572
4576
|
t = t.previousElementSibling;
|
|
4573
4577
|
return t || null;
|
|
4574
4578
|
}
|
|
@@ -4577,7 +4581,7 @@ function kt(e, n) {
|
|
|
4577
4581
|
if (!e || !e.parentNode)
|
|
4578
4582
|
return -1;
|
|
4579
4583
|
for (; e = e.previousElementSibling; )
|
|
4580
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== we.clone && (!n ||
|
|
4584
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== we.clone && (!n || qa(e, n)) && t++;
|
|
4581
4585
|
return t;
|
|
4582
4586
|
}
|
|
4583
4587
|
function Zl(e) {
|
|
@@ -4719,7 +4723,7 @@ function Yc(e, n, t, a) {
|
|
|
4719
4723
|
}
|
|
4720
4724
|
var yn = [], Mo = {
|
|
4721
4725
|
initializeByDefault: !0
|
|
4722
|
-
},
|
|
4726
|
+
}, Sa = {
|
|
4723
4727
|
mount: function(n) {
|
|
4724
4728
|
for (var t in Mo)
|
|
4725
4729
|
Mo.hasOwnProperty(t) && !(t in n) && (n[t] = Mo[t]);
|
|
@@ -4773,11 +4777,11 @@ function zc(e) {
|
|
|
4773
4777
|
var n = e.sortable, t = e.rootEl, a = e.name, l = e.targetEl, o = e.cloneEl, r = e.toEl, s = e.fromEl, i = e.oldIndex, u = e.newIndex, c = e.oldDraggableIndex, d = e.newDraggableIndex, C = e.originalEvent, y = e.putSortable, E = e.extraEventProperties;
|
|
4774
4778
|
if (n = n || t && t[vt], !!n) {
|
|
4775
4779
|
var p, f = n.options, m = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
4776
|
-
window.CustomEvent && !Kt && !
|
|
4780
|
+
window.CustomEvent && !Kt && !Ca ? p = new CustomEvent(a, {
|
|
4777
4781
|
bubbles: !0,
|
|
4778
4782
|
cancelable: !0
|
|
4779
4783
|
}) : (p = document.createEvent("Event"), p.initEvent(a, !0, !0)), p.to = r || t, p.from = s || t, p.item = l || t, p.clone = o, p.oldIndex = i, p.newIndex = u, p.oldDraggableIndex = c, p.newDraggableIndex = d, p.originalEvent = C, p.pullMode = y ? y.lastPutMode : void 0;
|
|
4780
|
-
var g = Pt(Pt({}, E),
|
|
4784
|
+
var g = Pt(Pt({}, E), Sa.getEventProperties(a, n));
|
|
4781
4785
|
for (var T in g)
|
|
4782
4786
|
p[T] = g[T];
|
|
4783
4787
|
t && t.dispatchEvent(p), f[m] && f[m].call(n, p);
|
|
@@ -4785,13 +4789,13 @@ function zc(e) {
|
|
|
4785
4789
|
}
|
|
4786
4790
|
var Hc = ["evt"], ft = function(n, t) {
|
|
4787
4791
|
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = a.evt, o = Fc(a, Hc);
|
|
4788
|
-
|
|
4792
|
+
Sa.pluginEvent.bind(we)(n, t, Pt({
|
|
4789
4793
|
dragEl: ae,
|
|
4790
4794
|
parentEl: Ke,
|
|
4791
4795
|
ghostEl: Te,
|
|
4792
4796
|
rootEl: je,
|
|
4793
4797
|
nextEl: sn,
|
|
4794
|
-
lastDownEl:
|
|
4798
|
+
lastDownEl: La,
|
|
4795
4799
|
cloneEl: qe,
|
|
4796
4800
|
cloneHidden: Jt,
|
|
4797
4801
|
dragStarted: Wn,
|
|
@@ -4831,7 +4835,7 @@ function ut(e) {
|
|
|
4831
4835
|
newDraggableIndex: Zt
|
|
4832
4836
|
}, e));
|
|
4833
4837
|
}
|
|
4834
|
-
var ae, Ke, Te, je, sn,
|
|
4838
|
+
var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa = [], on, It, $o, Fo, Jl, Ql, Wn, bn, ta, na = !1, Fa = !1, Na, st, Bo = [], zo = !1, Ga = [], uo = typeof document < "u", Ba = ol, er = Ca || Kt ? "cssFloat" : "float", jc = uo && !Or && !ol && "draggable" in document.createElement("div"), Yr = (function() {
|
|
4835
4839
|
if (uo) {
|
|
4836
4840
|
if (Kt)
|
|
4837
4841
|
return !1;
|
|
@@ -4854,7 +4858,7 @@ var ae, Ke, Te, je, sn, Pa, qe, Jt, Sn, gt, ea, Zt, Ma, lt, wn = !1, qa = !1, Ka
|
|
|
4854
4858
|
return l === s || o === i || l + r / 2 === s + u / 2;
|
|
4855
4859
|
}, Kc = function(n, t) {
|
|
4856
4860
|
var a;
|
|
4857
|
-
return
|
|
4861
|
+
return Wa.some(function(l) {
|
|
4858
4862
|
var o = l[vt].options.emptyInsertThreshold;
|
|
4859
4863
|
if (!(!o || ll(l))) {
|
|
4860
4864
|
var r = Je(l), s = n >= r.left - o && n <= r.right + o, i = t >= r.top - o && t <= r.bottom + o;
|
|
@@ -4888,8 +4892,8 @@ var ae, Ke, Te, je, sn, Pa, qe, Jt, Sn, gt, ea, Zt, Ma, lt, wn = !1, qa = !1, Ka
|
|
|
4888
4892
|
!Yr && Te && be(Te, "display", "");
|
|
4889
4893
|
};
|
|
4890
4894
|
uo && !Or && document.addEventListener("click", function(e) {
|
|
4891
|
-
if (
|
|
4892
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(),
|
|
4895
|
+
if (Ka)
|
|
4896
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ka = !1, !1;
|
|
4893
4897
|
}, !0);
|
|
4894
4898
|
var ln = function(n) {
|
|
4895
4899
|
if (ae) {
|
|
@@ -4955,13 +4959,13 @@ function we(e, n) {
|
|
|
4955
4959
|
supportPointer: we.supportPointer !== !1 && "PointerEvent" in window && (!Jn || ol),
|
|
4956
4960
|
emptyInsertThreshold: 5
|
|
4957
4961
|
};
|
|
4958
|
-
|
|
4962
|
+
Sa.initializePlugins(this, e, t);
|
|
4959
4963
|
for (var a in t)
|
|
4960
4964
|
!(a in n) && (n[a] = t[a]);
|
|
4961
4965
|
Hr(n);
|
|
4962
4966
|
for (var l in this)
|
|
4963
4967
|
l.charAt(0) === "_" && typeof this[l] == "function" && (this[l] = this[l].bind(this));
|
|
4964
|
-
this.nativeDraggable = n.forceFallback ? !1 : jc, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? Ve(e, "pointerdown", this._onTapStart) : (Ve(e, "mousedown", this._onTapStart), Ve(e, "touchstart", this._onTapStart)), this.nativeDraggable && (Ve(e, "dragover", this), Ve(e, "dragenter", this)),
|
|
4968
|
+
this.nativeDraggable = n.forceFallback ? !1 : jc, this.nativeDraggable && (this.options.touchStartThreshold = 1), n.supportPointer ? Ve(e, "pointerdown", this._onTapStart) : (Ve(e, "mousedown", this._onTapStart), Ve(e, "touchstart", this._onTapStart)), this.nativeDraggable && (Ve(e, "dragover", this), Ve(e, "dragenter", this)), Wa.push(this.el), n.store && n.store.get && this.sort(n.store.get(this) || []), jt(this, Vc());
|
|
4965
4969
|
}
|
|
4966
4970
|
we.prototype = /** @lends Sortable.prototype */
|
|
4967
4971
|
{
|
|
@@ -4975,7 +4979,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
4975
4979
|
_onTapStart: function(n) {
|
|
4976
4980
|
if (n.cancelable) {
|
|
4977
4981
|
var t = this, a = this.el, l = this.options, o = l.preventOnFilter, r = n.type, s = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, i = (s || n).target, u = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || i, c = l.filter;
|
|
4978
|
-
if (nd(a), !ae && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || l.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Jn && i && i.tagName.toUpperCase() === "SELECT") && (i = Mt(i, l.draggable, a, !1), !(i && i.animated) &&
|
|
4982
|
+
if (nd(a), !ae && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || l.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Jn && i && i.tagName.toUpperCase() === "SELECT") && (i = Mt(i, l.draggable, a, !1), !(i && i.animated) && La !== i)) {
|
|
4979
4983
|
if (Sn = kt(i), ea = kt(i, l.draggable), typeof c == "function") {
|
|
4980
4984
|
if (c.call(this, n, i, this)) {
|
|
4981
4985
|
ut({
|
|
@@ -5014,7 +5018,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5014
5018
|
var l = this, o = l.el, r = l.options, s = o.ownerDocument, i;
|
|
5015
5019
|
if (a && !ae && a.parentNode === o) {
|
|
5016
5020
|
var u = Je(a);
|
|
5017
|
-
if (je = o, ae = a, Ke = ae.parentNode, sn = ae.nextSibling,
|
|
5021
|
+
if (je = o, ae = a, Ke = ae.parentNode, sn = ae.nextSibling, La = a, $a = r.group, we.dragged = ae, on = {
|
|
5018
5022
|
target: ae,
|
|
5019
5023
|
clientX: (t || n).clientX,
|
|
5020
5024
|
clientY: (t || n).clientY
|
|
@@ -5034,7 +5038,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5034
5038
|
Pr(ae, c.trim(), Oo);
|
|
5035
5039
|
}), Ve(s, "dragover", ln), Ve(s, "mousemove", ln), Ve(s, "touchmove", ln), r.supportPointer ? (Ve(s, "pointerup", l._onDrop), !this.nativeDraggable && Ve(s, "pointercancel", l._onDrop)) : (Ve(s, "mouseup", l._onDrop), Ve(s, "touchend", l._onDrop), Ve(s, "touchcancel", l._onDrop)), Wl && this.nativeDraggable && (this.options.touchStartThreshold = 4, ae.draggable = !0), ft("delayStart", this, {
|
|
5036
5040
|
evt: n
|
|
5037
|
-
}), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(
|
|
5041
|
+
}), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ca || Kt))) {
|
|
5038
5042
|
if (we.eventCanceled) {
|
|
5039
5043
|
this._onDrop();
|
|
5040
5044
|
return;
|
|
@@ -5058,7 +5062,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5058
5062
|
_triggerDragStart: function(n, t) {
|
|
5059
5063
|
t = t || n.pointerType == "touch" && n, !this.nativeDraggable || t ? this.options.supportPointer ? Ve(document, "pointermove", this._onTouchMove) : t ? Ve(document, "touchmove", this._onTouchMove) : Ve(document, "mousemove", this._onTouchMove) : (Ve(ae, "dragend", this), Ve(je, "dragstart", this._onDragStart));
|
|
5060
5064
|
try {
|
|
5061
|
-
document.selection ?
|
|
5065
|
+
document.selection ? Va(function() {
|
|
5062
5066
|
document.selection.empty();
|
|
5063
5067
|
}) : window.getSelection().removeAllRanges();
|
|
5064
5068
|
} catch {
|
|
@@ -5102,7 +5106,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5102
5106
|
},
|
|
5103
5107
|
_onTouchMove: function(n) {
|
|
5104
5108
|
if (on) {
|
|
5105
|
-
var t = this.options, a = t.fallbackTolerance, l = t.fallbackOffset, o = n.touches ? n.touches[0] : n, r = Te && kn(Te, !0), s = Te && r && r.a, i = Te && r && r.d, u =
|
|
5109
|
+
var t = this.options, a = t.fallbackTolerance, l = t.fallbackOffset, o = n.touches ? n.touches[0] : n, r = Te && kn(Te, !0), s = Te && r && r.a, i = Te && r && r.d, u = Ba && st && Zl(st), c = (o.clientX - on.clientX + l.x) / (s || 1) + (u ? u[0] - Bo[0] : 0) / (s || 1), d = (o.clientY - on.clientY + l.y) / (i || 1) + (u ? u[1] - Bo[1] : 0) / (i || 1);
|
|
5106
5110
|
if (!we.active && !wn) {
|
|
5107
5111
|
if (a && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < a)
|
|
5108
5112
|
return;
|
|
@@ -5125,13 +5129,13 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5125
5129
|
},
|
|
5126
5130
|
_appendGhost: function() {
|
|
5127
5131
|
if (!Te) {
|
|
5128
|
-
var n = this.options.fallbackOnBody ? document.body : je, t = Je(ae, !0,
|
|
5129
|
-
if (
|
|
5132
|
+
var n = this.options.fallbackOnBody ? document.body : je, t = Je(ae, !0, Ba, !0, n), a = this.options;
|
|
5133
|
+
if (Ba) {
|
|
5130
5134
|
for (st = n; be(st, "position") === "static" && be(st, "transform") === "none" && st !== document; )
|
|
5131
5135
|
st = st.parentNode;
|
|
5132
5136
|
st !== document.body && st !== document.documentElement ? (st === document && (st = Rt()), t.top += st.scrollTop, t.left += st.scrollLeft) : st = Rt(), Bo = Zl(st);
|
|
5133
5137
|
}
|
|
5134
|
-
Te = ae.cloneNode(!0), pt(Te, a.ghostClass, !1), pt(Te, a.fallbackClass, !0), pt(Te, a.dragClass, !0), be(Te, "transition", ""), be(Te, "transform", ""), be(Te, "box-sizing", "border-box"), be(Te, "margin", 0), be(Te, "top", t.top), be(Te, "left", t.left), be(Te, "width", t.width), be(Te, "height", t.height), be(Te, "opacity", "0.8"), be(Te, "position",
|
|
5138
|
+
Te = ae.cloneNode(!0), pt(Te, a.ghostClass, !1), pt(Te, a.fallbackClass, !0), pt(Te, a.dragClass, !0), be(Te, "transition", ""), be(Te, "transform", ""), be(Te, "box-sizing", "border-box"), be(Te, "margin", 0), be(Te, "top", t.top), be(Te, "left", t.left), be(Te, "width", t.width), be(Te, "height", t.height), be(Te, "opacity", "0.8"), be(Te, "position", Ba ? "absolute" : "fixed"), be(Te, "zIndex", "100000"), be(Te, "pointerEvents", "none"), we.ghost = Te, n.appendChild(Te), be(Te, "transform-origin", Jl / parseInt(Te.style.width) * 100 + "% " + Ql / parseInt(Te.style.height) * 100 + "%");
|
|
5135
5139
|
}
|
|
5136
5140
|
},
|
|
5137
5141
|
_onDragStart: function(n, t) {
|
|
@@ -5142,16 +5146,16 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5142
5146
|
this._onDrop();
|
|
5143
5147
|
return;
|
|
5144
5148
|
}
|
|
5145
|
-
ft("setupClone", this), we.eventCanceled || (qe = Vr(ae), qe.removeAttribute("id"), qe.draggable = !1, qe.style["will-change"] = "", this._hideClone(), pt(qe, this.options.chosenClass, !1), we.clone = qe), a.cloneId =
|
|
5149
|
+
ft("setupClone", this), we.eventCanceled || (qe = Vr(ae), qe.removeAttribute("id"), qe.draggable = !1, qe.style["will-change"] = "", this._hideClone(), pt(qe, this.options.chosenClass, !1), we.clone = qe), a.cloneId = Va(function() {
|
|
5146
5150
|
ft("clone", a), !we.eventCanceled && (a.options.removeCloneOnHide || je.insertBefore(qe, ae), a._hideClone(), ut({
|
|
5147
5151
|
sortable: a,
|
|
5148
5152
|
name: "clone"
|
|
5149
5153
|
}));
|
|
5150
|
-
}), !t && pt(ae, o.dragClass, !0), t ? (
|
|
5154
|
+
}), !t && pt(ae, o.dragClass, !0), t ? (Ka = !0, a._loopId = setInterval(a._emulateDragOver, 50)) : (Ne(document, "mouseup", a._onDrop), Ne(document, "touchend", a._onDrop), Ne(document, "touchcancel", a._onDrop), l && (l.effectAllowed = "move", o.setData && o.setData.call(a, l, ae)), Ve(document, "drop", a), be(ae, "transform", "translateZ(0)")), wn = !0, a._dragStartId = Va(a._dragStarted.bind(a, t, n)), Ve(document, "selectstart", a), Wn = !0, window.getSelection().removeAllRanges(), Jn && be(document.body, "user-select", "none");
|
|
5151
5155
|
},
|
|
5152
5156
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
5153
5157
|
_onDragOver: function(n) {
|
|
5154
|
-
var t = this.el, a = n.target, l, o, r, s = this.options, i = s.group, u = we.active, c =
|
|
5158
|
+
var t = this.el, a = n.target, l, o, r, s = this.options, i = s.group, u = we.active, c = $a === i, d = s.sort, C = lt || u, y, E = this, p = !1;
|
|
5155
5159
|
if (zo) return;
|
|
5156
5160
|
function f(D, B) {
|
|
5157
5161
|
ft(D, E, Pt({
|
|
@@ -5165,8 +5169,8 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5165
5169
|
fromSortable: C,
|
|
5166
5170
|
target: a,
|
|
5167
5171
|
completed: g,
|
|
5168
|
-
onMove: function(
|
|
5169
|
-
return
|
|
5172
|
+
onMove: function(J, le) {
|
|
5173
|
+
return Oa(je, t, ae, l, J, Je(J), n, le);
|
|
5170
5174
|
},
|
|
5171
5175
|
changed: T
|
|
5172
5176
|
}, B));
|
|
@@ -5194,7 +5198,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5194
5198
|
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = Mt(a, s.draggable, t, !0), f("dragOver"), we.eventCanceled) return p;
|
|
5195
5199
|
if (ae.contains(n.target) || a.animated && a.animatingX && a.animatingY || E._ignoreWhileAnimating === a)
|
|
5196
5200
|
return g(!1);
|
|
5197
|
-
if (
|
|
5201
|
+
if (Ka = !1, u && !s.disabled && (c ? d || (r = Ke !== je) : lt === this || (this.lastPutMode = $a.checkPull(this, u, ae, n)) && i.checkPut(this, u, ae, n))) {
|
|
5198
5202
|
if (y = this._getDirection(n, a) === "vertical", l = Je(ae), f("dragOverValid"), we.eventCanceled) return p;
|
|
5199
5203
|
if (r)
|
|
5200
5204
|
return Ke = je, m(), this._hideClone(), f("revert"), we.eventCanceled || (sn ? je.insertBefore(ae, sn) : je.appendChild(ae)), g(!0);
|
|
@@ -5202,18 +5206,18 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5202
5206
|
if (!P || Jc(n, y, this) && !P.animated) {
|
|
5203
5207
|
if (P === ae)
|
|
5204
5208
|
return g(!1);
|
|
5205
|
-
if (P && t === n.target && (a = P), a && (o = Je(a)),
|
|
5209
|
+
if (P && t === n.target && (a = P), a && (o = Je(a)), Oa(je, t, ae, l, a, o, n, !!a) !== !1)
|
|
5206
5210
|
return m(), P && P.nextSibling ? t.insertBefore(ae, P.nextSibling) : t.appendChild(ae), Ke = t, T(), g(!0);
|
|
5207
5211
|
} else if (P && Zc(n, y, this)) {
|
|
5208
5212
|
var A = In(t, 0, s, !0);
|
|
5209
5213
|
if (A === ae)
|
|
5210
5214
|
return g(!1);
|
|
5211
|
-
if (a = A, o = Je(a),
|
|
5215
|
+
if (a = A, o = Je(a), Oa(je, t, ae, l, a, o, n, !1) !== !1)
|
|
5212
5216
|
return m(), t.insertBefore(ae, A), Ke = t, T(), g(!0);
|
|
5213
5217
|
} else if (a.parentNode === t) {
|
|
5214
5218
|
o = Je(a);
|
|
5215
5219
|
var k = 0, $, H = ae.parentNode !== t, M = !qc(ae.animated && ae.toRect || l, a.animated && a.toRect || o, y), N = y ? "top" : "left", K = Xl(a, "top", "top") || Xl(ae, "top", "top"), V = K ? K.scrollTop : void 0;
|
|
5216
|
-
bn !== a && ($ = o[N], na = !1,
|
|
5220
|
+
bn !== a && ($ = o[N], na = !1, Fa = !M && s.invertSwap || H), k = Qc(n, a, o, y, M ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Fa, bn === a);
|
|
5217
5221
|
var O;
|
|
5218
5222
|
if (k !== 0) {
|
|
5219
5223
|
var b = kt(ae);
|
|
@@ -5226,9 +5230,9 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5226
5230
|
bn = a, ta = k;
|
|
5227
5231
|
var h = a.nextElementSibling, v = !1;
|
|
5228
5232
|
v = k === 1;
|
|
5229
|
-
var w =
|
|
5233
|
+
var w = Oa(je, t, ae, l, a, o, n, v);
|
|
5230
5234
|
if (w !== !1)
|
|
5231
|
-
return (w === 1 || w === -1) && (v = w === 1), zo = !0, setTimeout(Xc, 30), m(), v && !h ? t.appendChild(ae) : a.parentNode.insertBefore(ae, v ? h : a), K && Nr(K, 0, V - K.scrollTop), Ke = ae.parentNode, $ !== void 0 &&
|
|
5235
|
+
return (w === 1 || w === -1) && (v = w === 1), zo = !0, setTimeout(Xc, 30), m(), v && !h ? t.appendChild(ae) : a.parentNode.insertBefore(ae, v ? h : a), K && Nr(K, 0, V - K.scrollTop), Ke = ae.parentNode, $ !== void 0 && !Fa && (Na = Math.abs($ - Je(a)[N])), T(), g(!0);
|
|
5232
5236
|
}
|
|
5233
5237
|
if (t.contains(ae))
|
|
5234
5238
|
return g(!1);
|
|
@@ -5251,7 +5255,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5251
5255
|
this._nulling();
|
|
5252
5256
|
return;
|
|
5253
5257
|
}
|
|
5254
|
-
wn = !1,
|
|
5258
|
+
wn = !1, Fa = !1, na = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ho(this.cloneId), Ho(this._dragStartId), this.nativeDraggable && (Ne(document, "drop", this), Ne(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Jn && be(document.body, "user-select", ""), be(ae, "transform", ""), n && (Wn && (n.cancelable && n.preventDefault(), !a.dropBubble && n.stopPropagation()), Te && Te.parentNode && Te.parentNode.removeChild(Te), (je === Ke || lt && lt.lastPutMode !== "clone") && qe && qe.parentNode && qe.parentNode.removeChild(qe), ae && (this.nativeDraggable && Ne(ae, "dragend", this), Oo(ae), ae.style["will-change"] = "", Wn && !wn && pt(ae, lt ? lt.options.ghostClass : this.options.ghostClass, !1), pt(ae, this.options.chosenClass, !1), ut({
|
|
5255
5259
|
sortable: this,
|
|
5256
5260
|
name: "unchoose",
|
|
5257
5261
|
toEl: Ke,
|
|
@@ -5298,11 +5302,11 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5298
5302
|
}), this.save()))), this._nulling();
|
|
5299
5303
|
},
|
|
5300
5304
|
_nulling: function() {
|
|
5301
|
-
ft("nulling", this), je = ae = Ke = Te = sn = qe =
|
|
5305
|
+
ft("nulling", this), je = ae = Ke = Te = sn = qe = La = Jt = on = It = Wn = gt = Zt = Sn = ea = bn = ta = lt = $a = we.dragged = we.ghost = we.clone = we.active = null;
|
|
5302
5306
|
var n = this.el;
|
|
5303
|
-
|
|
5307
|
+
Ga.forEach(function(t) {
|
|
5304
5308
|
n.contains(t) && (t.checked = !0);
|
|
5305
|
-
}),
|
|
5309
|
+
}), Ga.length = $o = Fo = 0;
|
|
5306
5310
|
},
|
|
5307
5311
|
handleEvent: function(n) {
|
|
5308
5312
|
switch (n.type) {
|
|
@@ -5367,7 +5371,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5367
5371
|
var a = this.options;
|
|
5368
5372
|
if (t === void 0)
|
|
5369
5373
|
return a[n];
|
|
5370
|
-
var l =
|
|
5374
|
+
var l = Sa.modifyOption(this, n, t);
|
|
5371
5375
|
typeof l < "u" ? a[n] = l : a[n] = t, n === "group" && Hr(a);
|
|
5372
5376
|
},
|
|
5373
5377
|
/**
|
|
@@ -5378,7 +5382,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5378
5382
|
var n = this.el;
|
|
5379
5383
|
n[vt] = null, Ne(n, "mousedown", this._onTapStart), Ne(n, "touchstart", this._onTapStart), Ne(n, "pointerdown", this._onTapStart), this.nativeDraggable && (Ne(n, "dragover", this), Ne(n, "dragenter", this)), Array.prototype.forEach.call(n.querySelectorAll("[draggable]"), function(t) {
|
|
5380
5384
|
t.removeAttribute("draggable");
|
|
5381
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
5385
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Wa.splice(Wa.indexOf(this.el), 1), this.el = n = null;
|
|
5382
5386
|
},
|
|
5383
5387
|
_hideClone: function() {
|
|
5384
5388
|
if (!Jt) {
|
|
@@ -5400,9 +5404,9 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5400
5404
|
function Gc(e) {
|
|
5401
5405
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
5402
5406
|
}
|
|
5403
|
-
function
|
|
5407
|
+
function Oa(e, n, t, a, l, o, r, s) {
|
|
5404
5408
|
var i, u = e[vt], c = u.options.onMove, d;
|
|
5405
|
-
return window.CustomEvent && !Kt && !
|
|
5409
|
+
return window.CustomEvent && !Kt && !Ca ? i = new CustomEvent("move", {
|
|
5406
5410
|
bubbles: !0,
|
|
5407
5411
|
cancelable: !0
|
|
5408
5412
|
}) : (i = document.createEvent("Event"), i.initEvent("move", !0, !0)), i.to = n, i.from = e, i.dragged = t, i.draggedRect = a, i.related = l || n, i.relatedRect = o || Je(n), i.willInsertAfter = s, i.originalEvent = r, e.dispatchEvent(i), c && (d = c.call(u, i, r)), d;
|
|
@@ -5424,10 +5428,10 @@ function Jc(e, n, t) {
|
|
|
5424
5428
|
function Qc(e, n, t, a, l, o, r, s) {
|
|
5425
5429
|
var i = a ? e.clientY : e.clientX, u = a ? t.height : t.width, c = a ? t.top : t.left, d = a ? t.bottom : t.right, C = !1;
|
|
5426
5430
|
if (!r) {
|
|
5427
|
-
if (s &&
|
|
5431
|
+
if (s && Na < u * l) {
|
|
5428
5432
|
if (!na && (ta === 1 ? i > c + u * o / 2 : i < d - u * o / 2) && (na = !0), na)
|
|
5429
5433
|
C = !0;
|
|
5430
|
-
else if (ta === 1 ? i < c +
|
|
5434
|
+
else if (ta === 1 ? i < c + Na : i > d - Na)
|
|
5431
5435
|
return -ta;
|
|
5432
5436
|
} else if (i > c + u * (1 - l) / 2 && i < d - u * (1 - l) / 2)
|
|
5433
5437
|
return ed(n);
|
|
@@ -5443,13 +5447,13 @@ function td(e) {
|
|
|
5443
5447
|
return a.toString(36);
|
|
5444
5448
|
}
|
|
5445
5449
|
function nd(e) {
|
|
5446
|
-
|
|
5450
|
+
Ga.length = 0;
|
|
5447
5451
|
for (var n = e.getElementsByTagName("input"), t = n.length; t--; ) {
|
|
5448
5452
|
var a = n[t];
|
|
5449
|
-
a.checked &&
|
|
5453
|
+
a.checked && Ga.push(a);
|
|
5450
5454
|
}
|
|
5451
5455
|
}
|
|
5452
|
-
function
|
|
5456
|
+
function Va(e) {
|
|
5453
5457
|
return setTimeout(e, 0);
|
|
5454
5458
|
}
|
|
5455
5459
|
function Ho(e) {
|
|
@@ -5472,7 +5476,7 @@ we.utils = {
|
|
|
5472
5476
|
toggleClass: pt,
|
|
5473
5477
|
clone: Vr,
|
|
5474
5478
|
index: kt,
|
|
5475
|
-
nextTick:
|
|
5479
|
+
nextTick: Va,
|
|
5476
5480
|
cancelNextTick: Ho,
|
|
5477
5481
|
detectDirection: zr,
|
|
5478
5482
|
getChild: In,
|
|
@@ -5487,14 +5491,14 @@ we.mount = function() {
|
|
|
5487
5491
|
n[0].constructor === Array && (n = n[0]), n.forEach(function(a) {
|
|
5488
5492
|
if (!a.prototype || !a.prototype.constructor)
|
|
5489
5493
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));
|
|
5490
|
-
a.utils && (we.utils = Pt(Pt({}, we.utils), a.utils)),
|
|
5494
|
+
a.utils && (we.utils = Pt(Pt({}, we.utils), a.utils)), Sa.mount(a);
|
|
5491
5495
|
});
|
|
5492
5496
|
};
|
|
5493
5497
|
we.create = function(e, n) {
|
|
5494
5498
|
return new we(e, n);
|
|
5495
5499
|
};
|
|
5496
5500
|
we.version = Rc;
|
|
5497
|
-
var Ze = [], Gn, jo, qo = !1, _o, Ro,
|
|
5501
|
+
var Ze = [], Gn, jo, qo = !1, _o, Ro, Xa, Xn;
|
|
5498
5502
|
function ad() {
|
|
5499
5503
|
function e() {
|
|
5500
5504
|
this.defaults = {
|
|
@@ -5517,26 +5521,26 @@ function ad() {
|
|
|
5517
5521
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
|
5518
5522
|
},
|
|
5519
5523
|
drop: function() {
|
|
5520
|
-
this.sortable.nativeDraggable ? Ne(document, "dragover", this._handleAutoScroll) : (Ne(document, "pointermove", this._handleFallbackAutoScroll), Ne(document, "touchmove", this._handleFallbackAutoScroll), Ne(document, "mousemove", this._handleFallbackAutoScroll)), tr(),
|
|
5524
|
+
this.sortable.nativeDraggable ? Ne(document, "dragover", this._handleAutoScroll) : (Ne(document, "pointermove", this._handleFallbackAutoScroll), Ne(document, "touchmove", this._handleFallbackAutoScroll), Ne(document, "mousemove", this._handleFallbackAutoScroll)), tr(), Ua(), Nc();
|
|
5521
5525
|
},
|
|
5522
5526
|
nulling: function() {
|
|
5523
|
-
|
|
5527
|
+
Xa = jo = Gn = qo = Xn = _o = Ro = null, Ze.length = 0;
|
|
5524
5528
|
},
|
|
5525
5529
|
_handleFallbackAutoScroll: function(t) {
|
|
5526
5530
|
this._handleAutoScroll(t, !0);
|
|
5527
5531
|
},
|
|
5528
5532
|
_handleAutoScroll: function(t, a) {
|
|
5529
5533
|
var l = this, o = (t.touches ? t.touches[0] : t).clientX, r = (t.touches ? t.touches[0] : t).clientY, s = document.elementFromPoint(o, r);
|
|
5530
|
-
if (
|
|
5534
|
+
if (Xa = t, a || this.options.forceAutoScrollFallback || Ca || Kt || Jn) {
|
|
5531
5535
|
Po(t, this.options, s, a);
|
|
5532
5536
|
var i = Qt(s, !0);
|
|
5533
5537
|
qo && (!Xn || o !== _o || r !== Ro) && (Xn && tr(), Xn = setInterval(function() {
|
|
5534
5538
|
var u = Qt(document.elementFromPoint(o, r), !0);
|
|
5535
|
-
u !== i && (i = u,
|
|
5539
|
+
u !== i && (i = u, Ua()), Po(t, l.options, u, a);
|
|
5536
5540
|
}, 10), _o = o, Ro = r);
|
|
5537
5541
|
} else {
|
|
5538
5542
|
if (!this.options.bubbleScroll || Qt(s, !0) === Rt()) {
|
|
5539
|
-
|
|
5543
|
+
Ua();
|
|
5540
5544
|
return;
|
|
5541
5545
|
}
|
|
5542
5546
|
Po(t, this.options, Qt(s, !1), !1);
|
|
@@ -5547,7 +5551,7 @@ function ad() {
|
|
|
5547
5551
|
initializeByDefault: !0
|
|
5548
5552
|
});
|
|
5549
5553
|
}
|
|
5550
|
-
function
|
|
5554
|
+
function Ua() {
|
|
5551
5555
|
Ze.forEach(function(e) {
|
|
5552
5556
|
clearInterval(e.pid);
|
|
5553
5557
|
}), Ze = [];
|
|
@@ -5558,7 +5562,7 @@ function tr() {
|
|
|
5558
5562
|
var Po = Lr(function(e, n, t, a) {
|
|
5559
5563
|
if (n.scroll) {
|
|
5560
5564
|
var l = (e.touches ? e.touches[0] : e).clientX, o = (e.touches ? e.touches[0] : e).clientY, r = n.scrollSensitivity, s = n.scrollSpeed, i = Rt(), u = !1, c;
|
|
5561
|
-
jo !== t && (jo = t,
|
|
5565
|
+
jo !== t && (jo = t, Ua(), Gn = n.scroll, c = n.scrollFn, Gn === !0 && (Gn = Qt(t, !0)));
|
|
5562
5566
|
var d = 0, C = Gn;
|
|
5563
5567
|
do {
|
|
5564
5568
|
var y = C, E = Je(y), p = E.top, f = E.bottom, m = E.left, g = E.right, T = E.width, P = E.height, A = void 0, k = void 0, $ = y.scrollWidth, H = y.scrollHeight, M = be(y), N = y.scrollLeft, K = y.scrollTop;
|
|
@@ -5568,9 +5572,9 @@ var Po = Lr(function(e, n, t, a) {
|
|
|
5568
5572
|
for (var b = 0; b <= d; b++)
|
|
5569
5573
|
Ze[b] || (Ze[b] = {});
|
|
5570
5574
|
(Ze[d].vx != V || Ze[d].vy != O || Ze[d].el !== y) && (Ze[d].el = y, Ze[d].vx = V, Ze[d].vy = O, clearInterval(Ze[d].pid), (V != 0 || O != 0) && (u = !0, Ze[d].pid = setInterval((function() {
|
|
5571
|
-
a && this.layer === 0 && we.active._onTouchMove(
|
|
5575
|
+
a && this.layer === 0 && we.active._onTouchMove(Xa);
|
|
5572
5576
|
var h = Ze[this.layer].vy ? Ze[this.layer].vy * s : 0, v = Ze[this.layer].vx ? Ze[this.layer].vx * s : 0;
|
|
5573
|
-
typeof c == "function" && c.call(we.dragged.parentNode[vt], v, h, e,
|
|
5577
|
+
typeof c == "function" && c.call(we.dragged.parentNode[vt], v, h, e, Xa, Ze[this.layer].el) !== "continue" || Nr(Ze[this.layer].el, v, h);
|
|
5574
5578
|
}).bind({
|
|
5575
5579
|
layer: d
|
|
5576
5580
|
}), 24))), d++;
|
|
@@ -5898,7 +5902,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5898
5902
|
removeByIndex: b,
|
|
5899
5903
|
updateDataAtIndex: h
|
|
5900
5904
|
} = gd(o, y, a, l);
|
|
5901
|
-
return
|
|
5905
|
+
return ua(() => {
|
|
5902
5906
|
P();
|
|
5903
5907
|
}), Qe(() => {
|
|
5904
5908
|
H.value = document.querySelector("#" + d.value), y();
|
|
@@ -5931,7 +5935,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5931
5935
|
key: L(p),
|
|
5932
5936
|
class: rt(L(nr))
|
|
5933
5937
|
}, [
|
|
5934
|
-
(_(!0), de(We, null, en(L(E), (j,
|
|
5938
|
+
(_(!0), de(We, null, en(L(E), (j, J) => (_(), de(We, {
|
|
5935
5939
|
key: j.key
|
|
5936
5940
|
}, [
|
|
5937
5941
|
e.chips ? (_(), te(mn, {
|
|
@@ -5978,8 +5982,8 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5978
5982
|
]),
|
|
5979
5983
|
Me("div", {
|
|
5980
5984
|
class: rt(["a-sortable-widget__item", {
|
|
5981
|
-
"a-sortable-widget__item--last":
|
|
5982
|
-
"a-sortable-widget__item--first":
|
|
5985
|
+
"a-sortable-widget__item--last": J + 1 === L(E).length,
|
|
5986
|
+
"a-sortable-widget__item--first": J === 0
|
|
5983
5987
|
}])
|
|
5984
5988
|
}, [
|
|
5985
5989
|
x(Oe, {
|
|
@@ -6047,9 +6051,9 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
6047
6051
|
activator: "parent",
|
|
6048
6052
|
text: "More options"
|
|
6049
6053
|
}),
|
|
6050
|
-
x(
|
|
6054
|
+
x(sa, { activator: "parent" }, {
|
|
6051
6055
|
default: I(() => [
|
|
6052
|
-
x(
|
|
6056
|
+
x(za, { density: "compact" }, {
|
|
6053
6057
|
default: I(() => [
|
|
6054
6058
|
e.showAddAfterButton ? (_(), te(mt, {
|
|
6055
6059
|
key: 0,
|
|
@@ -6095,7 +6099,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
6095
6099
|
_: 1
|
|
6096
6100
|
})) : ve("", !0)
|
|
6097
6101
|
]),
|
|
6098
|
-
x(
|
|
6102
|
+
x(fa, {
|
|
6099
6103
|
modelValue: L(T),
|
|
6100
6104
|
"onUpdate:modelValue": w[2] || (w[2] = (j) => Za(T) ? T.value = j : null),
|
|
6101
6105
|
width: 500
|
|
@@ -6111,7 +6115,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
6111
6115
|
]),
|
|
6112
6116
|
_: 1
|
|
6113
6117
|
}),
|
|
6114
|
-
x(
|
|
6118
|
+
x(da, null, {
|
|
6115
6119
|
default: I(() => [
|
|
6116
6120
|
x($n),
|
|
6117
6121
|
x(D, {
|
|
@@ -6155,8 +6159,8 @@ function Ed() {
|
|
|
6155
6159
|
defaultConfig: !1,
|
|
6156
6160
|
data: [],
|
|
6157
6161
|
position: 0,
|
|
6158
|
-
createdAt:
|
|
6159
|
-
modifiedAt:
|
|
6162
|
+
createdAt: ia(),
|
|
6163
|
+
modifiedAt: ia(),
|
|
6160
6164
|
createdBy: null,
|
|
6161
6165
|
modifiedBy: null,
|
|
6162
6166
|
_resourceName: "userAdminConfig",
|
|
@@ -6195,12 +6199,12 @@ const xd = {
|
|
|
6195
6199
|
required: f,
|
|
6196
6200
|
maxLength: m(100)
|
|
6197
6201
|
}
|
|
6198
|
-
}, T =
|
|
6202
|
+
}, T = ra(g, { customName: i }, { $stopPropagation: !0 }), P = {
|
|
6199
6203
|
itemEdit: {
|
|
6200
6204
|
required: f,
|
|
6201
6205
|
maxLength: m(100)
|
|
6202
6206
|
}
|
|
6203
|
-
}, A =
|
|
6207
|
+
}, A = ra(P, { itemEdit: p }, { $stopPropagation: !0 }), k = $r(), {
|
|
6204
6208
|
createUserAdminConfig: $,
|
|
6205
6209
|
useFetchUserAdminConfigList: H,
|
|
6206
6210
|
updateUserAdminConfigPositions: M,
|
|
@@ -6220,7 +6224,7 @@ const xd = {
|
|
|
6220
6224
|
}, { serializeFilters: D } = Tr(o, l), B = t.system + "_" + t.subject, j = async () => {
|
|
6221
6225
|
d.value = !0, y.value = !1;
|
|
6222
6226
|
const Z = v(t.system);
|
|
6223
|
-
Z.user = t.user, Z.configType =
|
|
6227
|
+
Z.user = t.user, Z.configType = ja.FilterBookmark, Z.layoutType = dn.Desktop, Z.systemResource = B, Z.customName = i.value, Z.data = {
|
|
6224
6228
|
filter: D(o, r, !1),
|
|
6225
6229
|
datatableHiddenColumns: u.value && t.datatableHiddenColumns ? t.datatableHiddenColumns : void 0,
|
|
6226
6230
|
sortBy: c.value && r.value.sortBy ? r.value.sortBy : void 0
|
|
@@ -6257,7 +6261,7 @@ const xd = {
|
|
|
6257
6261
|
} finally {
|
|
6258
6262
|
d.value = !1;
|
|
6259
6263
|
}
|
|
6260
|
-
},
|
|
6264
|
+
}, J = () => {
|
|
6261
6265
|
if (s.value === "add") {
|
|
6262
6266
|
if (T.value.$touch(), T.value.$invalid) {
|
|
6263
6267
|
b();
|
|
@@ -6312,7 +6316,7 @@ const xd = {
|
|
|
6312
6316
|
y.value = !1, s.value === "manage" && he();
|
|
6313
6317
|
}), (Z, ee) => {
|
|
6314
6318
|
const Fe = Dn("ABtnTertiary"), X = Dn("ABtnPrimary");
|
|
6315
|
-
return _(), te(
|
|
6319
|
+
return _(), te(fa, {
|
|
6316
6320
|
"model-value": !0,
|
|
6317
6321
|
width: 500
|
|
6318
6322
|
}, {
|
|
@@ -6464,7 +6468,7 @@ const xd = {
|
|
|
6464
6468
|
]),
|
|
6465
6469
|
_: 1
|
|
6466
6470
|
}),
|
|
6467
|
-
x(
|
|
6471
|
+
x(da, null, {
|
|
6468
6472
|
default: I(() => [
|
|
6469
6473
|
x($n),
|
|
6470
6474
|
x(Fe, {
|
|
@@ -6479,7 +6483,7 @@ const xd = {
|
|
|
6479
6483
|
x(X, {
|
|
6480
6484
|
"data-cy": "button-confirm",
|
|
6481
6485
|
loading: d.value,
|
|
6482
|
-
onClick: De(
|
|
6486
|
+
onClick: De(J, ["stop"])
|
|
6483
6487
|
}, {
|
|
6484
6488
|
default: I(() => [
|
|
6485
6489
|
ge(ie(s.value === "add" ? L(V)("common.button.add") : L(V)("common.filter.bookmark.saveBookmarkOrder")), 1)
|
|
@@ -6800,7 +6804,7 @@ const xd = {
|
|
|
6800
6804
|
await V(v), v.size > 0 && (d(Array.from(v)), c());
|
|
6801
6805
|
},
|
|
6802
6806
|
{ immediate: !0 }
|
|
6803
|
-
), (b, h) => (_(), te(
|
|
6807
|
+
), (b, h) => (_(), te(ca, {
|
|
6804
6808
|
modelValue: E.value,
|
|
6805
6809
|
"onUpdate:modelValue": h[0] || (h[0] = (v) => E.value = v),
|
|
6806
6810
|
search: l.value,
|
|
@@ -7099,7 +7103,7 @@ const xd = {
|
|
|
7099
7103
|
e.hideMore ? ve("", !0) : (_(), de("div", Yd, [
|
|
7100
7104
|
(_(), te(or(e.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
7101
7105
|
default: I(() => [
|
|
7102
|
-
|
|
7106
|
+
la(Me("div", {
|
|
7103
7107
|
class: rt({ "mt-6 pa-4 system-border-a": !e.alwaysVisible })
|
|
7104
7108
|
}, [
|
|
7105
7109
|
ke(P.$slots, "detail", {}, () => [
|
|
@@ -7138,7 +7142,7 @@ const xd = {
|
|
|
7138
7142
|
}, 8, ["name"]));
|
|
7139
7143
|
}
|
|
7140
7144
|
}), Nv = (e, n, t = {}, a, l, o = {}) => new Promise((r, s) => {
|
|
7141
|
-
e().delete(
|
|
7145
|
+
e().delete(ba(n, t), o).then((i) => wa(i.status) ? i.data ? r(i.data) : i.status === Bn ? r(null) : s(new Ft()) : s(new Rn(i.status))).catch((i) => ha(i) ? s(new On(i, i.config?.url)) : pa(i) ? s(new _n(i, a, l, i)) : ya(i) ? s(new Ln(i, a, l, i)) : ga(i) ? s(new Pn(i, i)) : s(new Ft(i)));
|
|
7142
7146
|
});
|
|
7143
7147
|
function zd(e, n = 769) {
|
|
7144
7148
|
const { width: t } = Bs(e), a = R(() => t.value > 0 && t.value < n);
|
|
@@ -7370,7 +7374,7 @@ function Jr(e) {
|
|
|
7370
7374
|
}), v = R(() => h.value.size > 0), w = (z, W, ue = !1) => {
|
|
7371
7375
|
const { invalid: Y, warning: oe } = b(z, W);
|
|
7372
7376
|
return Y ? P.value ? "invalid" : ue ? null : M(W) || K(W) ? "invalid" : null : oe ? "warning" : null;
|
|
7373
|
-
}, D = () => (P.value = !0, h.value.size === 0), B = (z, W) => l ? (i[W] ?? s) === "preserve-values" ? W === "move" ? Xd(z, { positionField: o }) : z : Gd(z, { positionField: o, positionMultiplier: r }) : z, j = (z, W) => e.set(B(z, W)),
|
|
7377
|
+
}, D = () => (P.value = !0, h.value.size === 0), B = (z, W) => l ? (i[W] ?? s) === "preserve-values" ? W === "move" ? Xd(z, { positionField: o }) : z : Gd(z, { positionField: o, positionMultiplier: r }) : z, j = (z, W) => e.set(B(z, W)), J = () => e.payload ? e.payload(e.get()) : B(e.get(), "payload"), le = () => {
|
|
7374
7378
|
const z = [], W = [], ue = [];
|
|
7375
7379
|
for (const Y of e.get()) {
|
|
7376
7380
|
const oe = t(Y), pe = y.value.get(oe);
|
|
@@ -7398,7 +7402,7 @@ function Jr(e) {
|
|
|
7398
7402
|
isUnsaved: K,
|
|
7399
7403
|
rowState: w,
|
|
7400
7404
|
validateAll: D,
|
|
7401
|
-
getPayload:
|
|
7405
|
+
getPayload: J,
|
|
7402
7406
|
getChanges: le,
|
|
7403
7407
|
commit: re,
|
|
7404
7408
|
reset: Se,
|
|
@@ -7481,7 +7485,7 @@ function tf(e, n) {
|
|
|
7481
7485
|
}, E = (b) => {
|
|
7482
7486
|
const h = [], v = n.expandedKeys?.value;
|
|
7483
7487
|
let w = 0;
|
|
7484
|
-
const D = (B, j,
|
|
7488
|
+
const D = (B, j, J) => {
|
|
7485
7489
|
for (let le = 0; le < B.length; le++) {
|
|
7486
7490
|
const re = B[le], Se = i(re.data), Ce = !F(re.children), ne = Ce && (re.children?.length ?? 0) > 0, he = re.children?.length ?? 0, Z = v ? v.has(Se) : !0, ee = s - (j + 1), Fe = Ce && ee > 0, X = j > 0, fe = le > 0;
|
|
7487
7491
|
h.push({
|
|
@@ -7491,8 +7495,8 @@ function tf(e, n) {
|
|
|
7491
7495
|
position: re.data[l],
|
|
7492
7496
|
node: re,
|
|
7493
7497
|
depth: j,
|
|
7494
|
-
parent:
|
|
7495
|
-
parentKey:
|
|
7498
|
+
parent: J?.data ?? null,
|
|
7499
|
+
parentKey: J ? i(J.data) : null,
|
|
7496
7500
|
childrenCount: he,
|
|
7497
7501
|
hasChildren: ne,
|
|
7498
7502
|
childrenAllowed: Ce,
|
|
@@ -7535,8 +7539,8 @@ function tf(e, n) {
|
|
|
7535
7539
|
return f(Se, Ce, D), D.data[o] = re ? i(re.data) : null, d(Se), e.value = v, v;
|
|
7536
7540
|
}
|
|
7537
7541
|
}
|
|
7538
|
-
const
|
|
7539
|
-
return B.splice(
|
|
7542
|
+
const J = h?.asFirstChild ? 0 : m(B, h);
|
|
7543
|
+
return B.splice(J, 0, D), D.data[o] = j ? i(j.data) : null, d(B), e.value = v, v;
|
|
7540
7544
|
}, T = (b) => {
|
|
7541
7545
|
const h = Ee(e.value), { node: v, parent: w } = c(b, h.children);
|
|
7542
7546
|
if (!v) return h;
|
|
@@ -7550,10 +7554,10 @@ function tf(e, n) {
|
|
|
7550
7554
|
if (!w) return null;
|
|
7551
7555
|
const B = D ? D.children : b.children, j = B.indexOf(w);
|
|
7552
7556
|
if (j === -1) return null;
|
|
7553
|
-
const
|
|
7554
|
-
if (
|
|
7557
|
+
const J = v(B, j);
|
|
7558
|
+
if (J === null || J === j) return null;
|
|
7555
7559
|
const [le] = B.splice(j, 1);
|
|
7556
|
-
return B.splice(
|
|
7560
|
+
return B.splice(J, 0, le), d(B), b;
|
|
7557
7561
|
}, k = (b) => {
|
|
7558
7562
|
const h = Ee(e.value), v = A(h, b, (w, D) => D > 0 ? D - 1 : null);
|
|
7559
7563
|
return v && (e.value = v), v;
|
|
@@ -7573,15 +7577,15 @@ function tf(e, n) {
|
|
|
7573
7577
|
if (B <= 0) return null;
|
|
7574
7578
|
const j = D[B - 1];
|
|
7575
7579
|
if (F(j.children)) return null;
|
|
7576
|
-
const
|
|
7577
|
-
return V(h, i(j.data)) + 1 +
|
|
7580
|
+
const J = u(v);
|
|
7581
|
+
return V(h, i(j.data)) + 1 + J > s ? null : (D.splice(B, 1), j.children.push(v), v.data[o] = i(j.data), v.meta.dirty = !0, d(D), d(j.children), e.value = h, h);
|
|
7578
7582
|
}, K = (b) => {
|
|
7579
7583
|
const h = Ee(e.value), { node: v, parent: w } = c(b, h.children);
|
|
7580
7584
|
if (!v || !w) return null;
|
|
7581
7585
|
const { parent: D } = c(i(w.data), h.children), B = D ? D.children : h.children, j = B.indexOf(w);
|
|
7582
7586
|
if (j === -1) return null;
|
|
7583
|
-
const
|
|
7584
|
-
return le === -1 ? null : (
|
|
7587
|
+
const J = w.children, le = J.indexOf(v);
|
|
7588
|
+
return le === -1 ? null : (J.splice(le, 1), B.splice(j + 1, 0, v), v.data[o] = D ? i(D.data) : null, v.meta.dirty = !0, d(J), d(B), e.value = h, h);
|
|
7585
7589
|
}, V = (b, h) => {
|
|
7586
7590
|
const v = (w, D) => {
|
|
7587
7591
|
for (const B of w) {
|
|
@@ -7619,13 +7623,13 @@ function tf(e, n) {
|
|
|
7619
7623
|
};
|
|
7620
7624
|
if (i(D.data) === h || ee(D)) return null;
|
|
7621
7625
|
}
|
|
7622
|
-
let j,
|
|
7626
|
+
let j, J = null, le = 0;
|
|
7623
7627
|
if (h === null)
|
|
7624
7628
|
j = w.children, le = 0;
|
|
7625
7629
|
else {
|
|
7626
7630
|
const { node: ee } = c(h, w.children);
|
|
7627
7631
|
if (!ee || F(ee.children)) return null;
|
|
7628
|
-
j = ee.children,
|
|
7632
|
+
j = ee.children, J = ee, le = V(w, h) + 1;
|
|
7629
7633
|
}
|
|
7630
7634
|
const re = u(D);
|
|
7631
7635
|
if (le + re > s) return null;
|
|
@@ -7633,7 +7637,7 @@ function tf(e, n) {
|
|
|
7633
7637
|
if (Ce === -1) return null;
|
|
7634
7638
|
const ne = Se === j, [he] = Se.splice(Ce, 1);
|
|
7635
7639
|
let Z = v;
|
|
7636
|
-
return ne && Ce < v && (Z = v - 1), Z = Math.max(0, Math.min(Z, j.length)), j.splice(Z, 0, he), he.data[o] =
|
|
7640
|
+
return ne && Ce < v && (Z = v - 1), Z = Math.max(0, Math.min(Z, j.length)), j.splice(Z, 0, he), he.data[o] = J ? i(J.data) : null, he.meta.dirty = !0, ne || d(Se), d(j), e.value = w, w;
|
|
7637
7641
|
},
|
|
7638
7642
|
recalculatePositions: y,
|
|
7639
7643
|
calculateSubtreeDepth: u
|
|
@@ -7653,9 +7657,9 @@ const nf = (e) => {
|
|
|
7653
7657
|
t(e.children);
|
|
7654
7658
|
};
|
|
7655
7659
|
function af(e) {
|
|
7656
|
-
const n = typeof e.getKey == "function" ? null : e.getKey ?? "id", t = (
|
|
7660
|
+
const n = typeof e.getKey == "function" ? null : e.getKey ?? "id", t = (Q) => typeof e.getKey == "function" ? e.getKey(Q) : Q[n], a = n ?? "id", l = e.position ?? "position", o = l !== !1, r = typeof l == "object" ? l.field : l === !1 ? "position" : l, s = typeof l == "object" && l.multiplier ? l.multiplier : 1, i = e.parentField ?? "parent", u = R({
|
|
7657
7661
|
get: () => e.get(),
|
|
7658
|
-
set: (
|
|
7662
|
+
set: (Q) => e.set(Q)
|
|
7659
7663
|
}), c = tf(u, {
|
|
7660
7664
|
keyField: a,
|
|
7661
7665
|
// Pass the controller's keyOf so tree ops resolve keys identically to
|
|
@@ -7665,42 +7669,42 @@ function af(e) {
|
|
|
7665
7669
|
parentField: i,
|
|
7666
7670
|
positionMultiplier: s,
|
|
7667
7671
|
maxDepth: e.maxDepth
|
|
7668
|
-
}), d = R(() => nf(e.get())), C = c.viewItems, y = R(() => En(e.dirtyExclude) ?? []), E = (
|
|
7669
|
-
const ce = { ...
|
|
7672
|
+
}), d = R(() => nf(e.get())), C = c.viewItems, y = R(() => En(e.dirtyExclude) ?? []), E = (Q) => {
|
|
7673
|
+
const ce = { ...Q };
|
|
7670
7674
|
o && delete ce[r], delete ce[i];
|
|
7671
7675
|
for (const xe of y.value) delete ce[xe];
|
|
7672
7676
|
return JSON.stringify(ce);
|
|
7673
|
-
}, p = U(/* @__PURE__ */ new Map()), f = U(/* @__PURE__ */ new Map()), m = U(null), g = (
|
|
7677
|
+
}, p = U(/* @__PURE__ */ new Map()), f = U(/* @__PURE__ */ new Map()), m = U(null), g = (Q) => Ee(Q), T = (Q) => {
|
|
7674
7678
|
const ce = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map(), Le = (Ae, ze) => {
|
|
7675
7679
|
for (const nt of Ae) {
|
|
7676
7680
|
const at = t(nt.data);
|
|
7677
7681
|
ce.set(at, E(nt.data)), xe.set(at, ze), nt.children && nt.children.length && Le(nt.children, at);
|
|
7678
7682
|
}
|
|
7679
7683
|
};
|
|
7680
|
-
Le(
|
|
7684
|
+
Le(Q.children, null), p.value = ce, f.value = xe, m.value = g(Q);
|
|
7681
7685
|
};
|
|
7682
7686
|
T(e.get()), _e(
|
|
7683
7687
|
y,
|
|
7684
7688
|
() => {
|
|
7685
7689
|
if (!m.value) return;
|
|
7686
|
-
const
|
|
7687
|
-
Xt(m.value, (ce) =>
|
|
7690
|
+
const Q = /* @__PURE__ */ new Map();
|
|
7691
|
+
Xt(m.value, (ce) => Q.set(t(ce.data), E(ce.data))), p.value = Q;
|
|
7688
7692
|
},
|
|
7689
7693
|
{ flush: "sync" }
|
|
7690
7694
|
);
|
|
7691
|
-
const P = U(!1), A = qt(/* @__PURE__ */ new Map()), k = (
|
|
7695
|
+
const P = U(!1), A = qt(/* @__PURE__ */ new Map()), k = (Q, ce, xe) => {
|
|
7692
7696
|
if (e.isDirty) {
|
|
7693
7697
|
const Ae = K(ce);
|
|
7694
|
-
return e.isDirty(
|
|
7698
|
+
return e.isDirty(Q.data, Ae);
|
|
7695
7699
|
}
|
|
7696
7700
|
const Le = p.value.get(ce);
|
|
7697
|
-
return !!(Le === void 0 || Le !== E(
|
|
7701
|
+
return !!(Le === void 0 || Le !== E(Q.data) || f.value.has(ce) && (f.value.get(ce) ?? null ?? null) !== (xe ?? null));
|
|
7698
7702
|
}, $ = U(/* @__PURE__ */ new Map()), H = U(/* @__PURE__ */ new Set()), M = U(/* @__PURE__ */ new Set());
|
|
7699
7703
|
_e(
|
|
7700
7704
|
() => e.get(),
|
|
7701
|
-
(
|
|
7705
|
+
(Q) => {
|
|
7702
7706
|
const ce = /* @__PURE__ */ new Set();
|
|
7703
|
-
Xt(
|
|
7707
|
+
Xt(Q, (Ae) => {
|
|
7704
7708
|
const ze = t(Ae.data);
|
|
7705
7709
|
if (ce.add(ze), !p.value.has(ze) && !$.value.has(ze) && $.value.set(ze, E(Ae.data)), !H.value.has(ze)) {
|
|
7706
7710
|
const nt = p.value.get(ze) ?? $.value.get(ze);
|
|
@@ -7716,59 +7720,59 @@ function af(e) {
|
|
|
7716
7720
|
},
|
|
7717
7721
|
{ immediate: !0, deep: !0 }
|
|
7718
7722
|
);
|
|
7719
|
-
const N = (
|
|
7723
|
+
const N = (Q) => H.value.has(Q), K = (Q) => {
|
|
7720
7724
|
if (!m.value) return;
|
|
7721
7725
|
let ce;
|
|
7722
7726
|
return Xt(m.value, (xe) => {
|
|
7723
|
-
ce === void 0 && t(xe.data) ===
|
|
7727
|
+
ce === void 0 && t(xe.data) === Q && (ce = xe.data);
|
|
7724
7728
|
}), ce;
|
|
7725
|
-
}, V = (
|
|
7729
|
+
}, V = (Q) => {
|
|
7726
7730
|
let ce = !1;
|
|
7727
7731
|
return Xt(e.get(), (xe) => {
|
|
7728
|
-
!ce && t(xe.data) ===
|
|
7732
|
+
!ce && t(xe.data) === Q && (ce = !0);
|
|
7729
7733
|
}), ce;
|
|
7730
7734
|
}, O = R(() => {
|
|
7731
|
-
const
|
|
7735
|
+
const Q = /* @__PURE__ */ new Set(), ce = (xe, Le) => {
|
|
7732
7736
|
for (const Ae of xe) {
|
|
7733
7737
|
const ze = t(Ae.data);
|
|
7734
|
-
k(Ae, ze, Le) &&
|
|
7738
|
+
k(Ae, ze, Le) && Q.add(ze), Ae.children && Ae.children.length && ce(Ae.children, ze);
|
|
7735
7739
|
}
|
|
7736
7740
|
};
|
|
7737
|
-
return ce(e.get().children, null),
|
|
7738
|
-
}), b = (
|
|
7739
|
-
let
|
|
7741
|
+
return ce(e.get().children, null), Q;
|
|
7742
|
+
}), b = (Q) => O.value.has(Q), h = R(() => {
|
|
7743
|
+
let Q = !1;
|
|
7740
7744
|
return Xt(e.get(), (ce) => {
|
|
7741
|
-
ce.meta.dirty && (
|
|
7742
|
-
}),
|
|
7745
|
+
ce.meta.dirty && (Q = !0);
|
|
7746
|
+
}), Q;
|
|
7743
7747
|
}), v = R(
|
|
7744
7748
|
() => O.value.size > 0 || M.value.size > 0 || h.value
|
|
7745
7749
|
), w = R(() => {
|
|
7746
|
-
const
|
|
7747
|
-
for (const ce of M.value)
|
|
7748
|
-
return
|
|
7749
|
-
}), D = (
|
|
7750
|
+
const Q = new Set(O.value);
|
|
7751
|
+
for (const ce of M.value) Q.add(ce);
|
|
7752
|
+
return Q.size;
|
|
7753
|
+
}), D = (Q, ce) => {
|
|
7750
7754
|
const xe = A.get(ce);
|
|
7751
7755
|
if (xe) return { invalid: !xe(), warning: !1 };
|
|
7752
7756
|
if (!e.validate) return { invalid: !1, warning: !1 };
|
|
7753
|
-
const Le = e.validate(
|
|
7757
|
+
const Le = e.validate(Q);
|
|
7754
7758
|
return typeof Le == "boolean" ? { invalid: !Le, warning: !1 } : { invalid: !Le.valid, warning: Le.valid && Le.state === "warning" };
|
|
7755
7759
|
}, B = R(() => {
|
|
7756
|
-
const
|
|
7760
|
+
const Q = /* @__PURE__ */ new Set();
|
|
7757
7761
|
return Xt(e.get(), (ce) => {
|
|
7758
7762
|
const xe = t(ce.data);
|
|
7759
|
-
D(ce.data, xe).invalid &&
|
|
7760
|
-
}),
|
|
7761
|
-
}), j = R(() => B.value.size > 0),
|
|
7762
|
-
const { invalid: Le, warning: Ae } = D(
|
|
7763
|
+
D(ce.data, xe).invalid && Q.add(xe);
|
|
7764
|
+
}), Q;
|
|
7765
|
+
}), j = R(() => B.value.size > 0), J = (Q, ce, xe = !1) => {
|
|
7766
|
+
const { invalid: Le, warning: Ae } = D(Q, ce);
|
|
7763
7767
|
return Le ? P.value ? "invalid" : xe ? null : N(ce) || b(ce) ? "invalid" : null : Ae ? "warning" : null;
|
|
7764
7768
|
}, le = () => (P.value = !0, B.value.size === 0), re = () => {
|
|
7765
|
-
const
|
|
7769
|
+
const Q = [], ce = (xe, Le) => {
|
|
7766
7770
|
for (const Ae of xe) {
|
|
7767
7771
|
const ze = { ...Ae.data };
|
|
7768
|
-
ze[i] = Le,
|
|
7772
|
+
ze[i] = Le, Q.push(ze), Ae.children && Ae.children.length && ce(Ae.children, t(Ae.data));
|
|
7769
7773
|
}
|
|
7770
7774
|
};
|
|
7771
|
-
return ce(e.get().children, null),
|
|
7775
|
+
return ce(e.get().children, null), Q;
|
|
7772
7776
|
};
|
|
7773
7777
|
return {
|
|
7774
7778
|
items: d,
|
|
@@ -7778,15 +7782,15 @@ function af(e) {
|
|
|
7778
7782
|
hasErrors: j,
|
|
7779
7783
|
invalidKeys: B,
|
|
7780
7784
|
isUnsaved: b,
|
|
7781
|
-
rowState:
|
|
7785
|
+
rowState: J,
|
|
7782
7786
|
validateAll: le,
|
|
7783
7787
|
getPayload: () => e.payload ? e.payload(re()) : re(),
|
|
7784
7788
|
getChanges: () => {
|
|
7785
|
-
const
|
|
7789
|
+
const Q = [], ce = [], xe = [], Le = [], Ae = re(), ze = /* @__PURE__ */ new Map();
|
|
7786
7790
|
for (const at of Ae) ze.set(t(at), at);
|
|
7787
7791
|
Xt(e.get(), (at) => {
|
|
7788
7792
|
const Nt = t(at.data), an = ze.get(Nt) ?? at.data, xt = p.value.get(Nt);
|
|
7789
|
-
if (xt === void 0 ?
|
|
7793
|
+
if (xt === void 0 ? Q.push(an) : xt !== E(at.data) && ce.push(an), xt !== void 0 && at.meta.dirty && xt === E(at.data) && xe.push(an), f.value.has(Nt)) {
|
|
7790
7794
|
const hn = f.value.get(Nt) ?? null, Ot = an[i];
|
|
7791
7795
|
(hn ?? null) !== (Ot ?? null) && Le.push(an);
|
|
7792
7796
|
}
|
|
@@ -7796,51 +7800,51 @@ function af(e) {
|
|
|
7796
7800
|
const Nt = K(at);
|
|
7797
7801
|
Nt !== void 0 && nt.push(Nt);
|
|
7798
7802
|
}
|
|
7799
|
-
return { added:
|
|
7803
|
+
return { added: Q, updated: ce, moved: xe, deleted: nt, reparented: Le };
|
|
7800
7804
|
},
|
|
7801
|
-
commit: (
|
|
7802
|
-
const ce =
|
|
7805
|
+
commit: (Q) => {
|
|
7806
|
+
const ce = Q ?? e.get(), xe = e.normalizeSaved ? e.normalizeSaved(ce) : ce, Le = g(xe);
|
|
7803
7807
|
Xt(Le, (Ae) => {
|
|
7804
7808
|
const ze = K(t(Ae.data)), nt = e.commitKey ? e.commitKey(Ae.data, ze) : t(Ae.data);
|
|
7805
7809
|
nt == null && n && (Ae.data[a] = Ko()), Ae.meta.dirty = !1;
|
|
7806
7810
|
}), e.set(Le), T(Le), $.value = /* @__PURE__ */ new Map(), H.value = /* @__PURE__ */ new Set(), M.value = /* @__PURE__ */ new Set(), P.value = !1;
|
|
7807
7811
|
},
|
|
7808
|
-
reset: (
|
|
7809
|
-
const ce =
|
|
7812
|
+
reset: (Q) => {
|
|
7813
|
+
const ce = Q ?? (m.value ? g(m.value) : e.get());
|
|
7810
7814
|
e.set(ce), $.value = /* @__PURE__ */ new Map(), H.value = /* @__PURE__ */ new Set(), M.value = /* @__PURE__ */ new Set(), P.value = !1;
|
|
7811
7815
|
},
|
|
7812
|
-
addItem: (
|
|
7813
|
-
const xe =
|
|
7816
|
+
addItem: (Q, ce) => {
|
|
7817
|
+
const xe = Q ?? e.factory?.();
|
|
7814
7818
|
xe !== void 0 && c.addItem(xe, ce);
|
|
7815
7819
|
},
|
|
7816
|
-
addAfter: (
|
|
7820
|
+
addAfter: (Q, ce, xe = !0) => {
|
|
7817
7821
|
const Le = ce ?? e.factory?.();
|
|
7818
|
-
Le !== void 0 && c.addItem(Le, { afterId:
|
|
7822
|
+
Le !== void 0 && c.addItem(Le, { afterId: Q, childrenAllowed: xe });
|
|
7819
7823
|
},
|
|
7820
|
-
addChild: (
|
|
7824
|
+
addChild: (Q, ce, xe = !0) => {
|
|
7821
7825
|
const Le = ce ?? e.factory?.();
|
|
7822
|
-
Le !== void 0 && c.addItem(Le, { parentId:
|
|
7826
|
+
Le !== void 0 && c.addItem(Le, { parentId: Q, childrenAllowed: xe });
|
|
7823
7827
|
},
|
|
7824
|
-
updateItem: (
|
|
7825
|
-
c.updateItem(
|
|
7828
|
+
updateItem: (Q, ce, xe = !0) => {
|
|
7829
|
+
c.updateItem(Q, ce, xe);
|
|
7826
7830
|
},
|
|
7827
|
-
deleteItem: (
|
|
7828
|
-
p.value.has(
|
|
7831
|
+
deleteItem: (Q, ce) => {
|
|
7832
|
+
p.value.has(Q) && ce?.trackDeleted !== !1 && V(Q) && M.value.add(Q), c.deleteItem(Q);
|
|
7829
7833
|
},
|
|
7830
|
-
restoreDeleted: (
|
|
7831
|
-
M.value.delete(
|
|
7834
|
+
restoreDeleted: (Q) => {
|
|
7835
|
+
M.value.delete(Q);
|
|
7832
7836
|
},
|
|
7833
|
-
moveUp: (
|
|
7834
|
-
moveDown: (
|
|
7835
|
-
moveTop: (
|
|
7836
|
-
moveBottom: (
|
|
7837
|
-
indent: (
|
|
7838
|
-
outdent: (
|
|
7839
|
-
moveTo: (
|
|
7837
|
+
moveUp: (Q) => c.moveUp(Q) !== null,
|
|
7838
|
+
moveDown: (Q) => c.moveDown(Q) !== null,
|
|
7839
|
+
moveTop: (Q) => c.moveTop(Q) !== null,
|
|
7840
|
+
moveBottom: (Q) => c.moveBottom(Q) !== null,
|
|
7841
|
+
indent: (Q) => c.indent(Q) !== null,
|
|
7842
|
+
outdent: (Q) => c.outdent(Q) !== null,
|
|
7843
|
+
moveTo: (Q, ce, xe) => c.moveTo(Q, ce, xe) !== null,
|
|
7840
7844
|
recalculatePositions: () => {
|
|
7841
7845
|
e.set(c.recalculatePositions(e.get()));
|
|
7842
7846
|
},
|
|
7843
|
-
registerValidity: (
|
|
7847
|
+
registerValidity: (Q, ce) => (A.set(Q, ce), () => A.delete(Q)),
|
|
7844
7848
|
findNode: c.findNode,
|
|
7845
7849
|
calculateSubtreeDepth: c.calculateSubtreeDepth
|
|
7846
7850
|
};
|
|
@@ -7860,7 +7864,7 @@ function Qr() {
|
|
|
7860
7864
|
return u.boundUid !== null && i !== null && u.boundUid !== i && console.warn(
|
|
7861
7865
|
`[list-editor] two editors are mounted under the same state-key "${o}". They would share one state controller — give each editor a unique state-key (e.g. suffix the row prefix with the list name).`
|
|
7862
7866
|
), u.boundUid = i, u.live.value = r, u.handle;
|
|
7863
|
-
const c = t.active ? t.run(() => bo()) : bo(), d =
|
|
7867
|
+
const c = t.active ? t.run(() => bo()) : bo(), d = oa(r), C = c.run(() => s(d));
|
|
7864
7868
|
return n.set(o, { scope: c, live: d, handle: C, children: null, boundUid: i }), C;
|
|
7865
7869
|
},
|
|
7866
7870
|
release(o, r, s) {
|
|
@@ -7925,7 +7929,7 @@ function rf(e, n) {
|
|
|
7925
7929
|
}),
|
|
7926
7930
|
a
|
|
7927
7931
|
);
|
|
7928
|
-
return $t() &&
|
|
7932
|
+
return $t() && ua(
|
|
7929
7933
|
() => t.release(e, a, es)
|
|
7930
7934
|
), { handle: l, childScope: t.childScope(e) };
|
|
7931
7935
|
}
|
|
@@ -7948,7 +7952,7 @@ function Vv(e, n) {
|
|
|
7948
7952
|
}),
|
|
7949
7953
|
a
|
|
7950
7954
|
);
|
|
7951
|
-
return $t() &&
|
|
7955
|
+
return $t() && ua(
|
|
7952
7956
|
() => t.release(e, a, es)
|
|
7953
7957
|
), { handle: l, childScope: t.childScope(e) };
|
|
7954
7958
|
}
|
|
@@ -7987,7 +7991,7 @@ function cf(e) {
|
|
|
7987
7991
|
const l = e();
|
|
7988
7992
|
return Array.isArray(l) ? l : [l];
|
|
7989
7993
|
});
|
|
7990
|
-
n.register(t, a),
|
|
7994
|
+
n.register(t, a), ua(() => n.unregister(t));
|
|
7991
7995
|
}
|
|
7992
7996
|
function df(e) {
|
|
7993
7997
|
const n = U(!1), t = U(null), a = U(!1), l = U(null), o = async (u) => {
|
|
@@ -8080,7 +8084,7 @@ function vf(e) {
|
|
|
8080
8084
|
), l || console.warn(
|
|
8081
8085
|
"[list-editor] `:validation-scope` is set but `:validate` is missing. The scope save-gate bridges the editor’s aggregate `hasErrors`, which is driven only by `:validate`; without it the gate never blocks (hasErrors stays false). Pass `:validate` so collapsed/invalid rows block the consumer save, or drop `:validation-scope` if you gate validity yourself."
|
|
8082
8086
|
);
|
|
8083
|
-
const o =
|
|
8087
|
+
const o = ra(
|
|
8084
8088
|
{ listEditor: { valid: () => !n.value } },
|
|
8085
8089
|
{ listEditor: n },
|
|
8086
8090
|
{ $scope: t }
|
|
@@ -8144,7 +8148,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8144
8148
|
emits: /* @__PURE__ */ tt(["confirm", "cancel"], ["update:modelValue"]),
|
|
8145
8149
|
setup(e) {
|
|
8146
8150
|
const n = ct(e, "modelValue");
|
|
8147
|
-
return (t, a) => (_(), te(
|
|
8151
|
+
return (t, a) => (_(), te(fa, {
|
|
8148
8152
|
modelValue: n.value,
|
|
8149
8153
|
"onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
|
|
8150
8154
|
"max-width": "420",
|
|
@@ -8177,7 +8181,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8177
8181
|
]),
|
|
8178
8182
|
_: 1
|
|
8179
8183
|
}),
|
|
8180
|
-
x(
|
|
8184
|
+
x(da, null, {
|
|
8181
8185
|
default: I(() => [
|
|
8182
8186
|
x($n),
|
|
8183
8187
|
x(Pe, {
|
|
@@ -8240,7 +8244,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8240
8244
|
}, c = () => {
|
|
8241
8245
|
l.value = !1;
|
|
8242
8246
|
};
|
|
8243
|
-
return (d, C) => (_(), te(
|
|
8247
|
+
return (d, C) => (_(), te(fa, {
|
|
8244
8248
|
modelValue: l.value,
|
|
8245
8249
|
"onUpdate:modelValue": C[1] || (C[1] = (y) => l.value = y),
|
|
8246
8250
|
"max-width": "420",
|
|
@@ -8258,7 +8262,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8258
8262
|
x(Qa, null, {
|
|
8259
8263
|
default: I(() => [
|
|
8260
8264
|
e.itemLabel ? (_(), de("p", gf, ie(L(o)("common.sortable.moveToPosition.itemDescription", { label: e.itemLabel })), 1)) : ve("", !0),
|
|
8261
|
-
x(
|
|
8265
|
+
x(ma, {
|
|
8262
8266
|
modelValue: r.value,
|
|
8263
8267
|
"onUpdate:modelValue": C[0] || (C[0] = (y) => r.value = y),
|
|
8264
8268
|
modelModifiers: { number: !0 },
|
|
@@ -8274,12 +8278,12 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8274
8278
|
autofocus: "",
|
|
8275
8279
|
density: "comfortable",
|
|
8276
8280
|
variant: "outlined",
|
|
8277
|
-
onKeydown:
|
|
8281
|
+
onKeydown: Ya(De(u, ["prevent"]), ["enter"])
|
|
8278
8282
|
}, null, 8, ["modelValue", "max", "label", "hint", "error", "onKeydown"])
|
|
8279
8283
|
]),
|
|
8280
8284
|
_: 1
|
|
8281
8285
|
}),
|
|
8282
|
-
x(
|
|
8286
|
+
x(da, null, {
|
|
8283
8287
|
default: I(() => [
|
|
8284
8288
|
x($n),
|
|
8285
8289
|
x(Pe, {
|
|
@@ -8506,14 +8510,14 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8506
8510
|
() => m.retainOwners(P.value.map((S) => S.key)),
|
|
8507
8511
|
{ flush: "post" }
|
|
8508
8512
|
);
|
|
8509
|
-
const A = U(/* @__PURE__ */ new Set()), k = U(/* @__PURE__ */ new Set()), $ = U(/* @__PURE__ */ new Set()), H = U(/* @__PURE__ */ new Set()), M = U(/* @__PURE__ */ new Set()), N = U(/* @__PURE__ */ new Set()), K =
|
|
8513
|
+
const A = U(/* @__PURE__ */ new Set()), k = U(/* @__PURE__ */ new Set()), $ = U(/* @__PURE__ */ new Set()), H = U(/* @__PURE__ */ new Set()), M = U(/* @__PURE__ */ new Set()), N = U(/* @__PURE__ */ new Set()), K = oa(null), V = Yt("rowsContainer"), O = R(() => !a.chips && !!i.item), b = R(() => !a.chips && !!i["item-readonly"]), {
|
|
8510
8514
|
editingKeys: h,
|
|
8511
8515
|
editingSnapshots: v,
|
|
8512
8516
|
clearEditing: w,
|
|
8513
8517
|
beginEdit: D,
|
|
8514
8518
|
cancelEdit: B,
|
|
8515
8519
|
commitEdit: j,
|
|
8516
|
-
closeEdit:
|
|
8520
|
+
closeEdit: J,
|
|
8517
8521
|
requestAutoOpen: le
|
|
8518
8522
|
} = ff({
|
|
8519
8523
|
rowsContainer: V,
|
|
@@ -8620,14 +8624,14 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8620
8624
|
const S = me(ar, null);
|
|
8621
8625
|
if (S) {
|
|
8622
8626
|
const G = /* @__PURE__ */ Symbol("le.embedded");
|
|
8623
|
-
S.register(G, pe, Be, () => fo()),
|
|
8627
|
+
S.register(G, pe, Be, () => fo()), ua(() => S.unregister(G));
|
|
8624
8628
|
}
|
|
8625
8629
|
}
|
|
8626
8630
|
const Et = R(() => re.value && a.showAddButton && !X.value), Wt = R(
|
|
8627
8631
|
() => re.value && (X.value || a.chips) && !d.value && !a.disableDrag
|
|
8628
8632
|
), co = R(
|
|
8629
8633
|
() => a.addLabel ? s(a.addLabel) : s("common.sortable.add")
|
|
8630
|
-
),
|
|
8634
|
+
), Q = R(() => a.emptyTitle ?? s("common.sortable.emptyTitle")), ce = R(
|
|
8631
8635
|
() => a.deleteConfirmTitle ?? s("common.sortable.deleteConfirmTitle")
|
|
8632
8636
|
), xe = R(
|
|
8633
8637
|
() => a.deleteConfirmText ?? (a.deleteMode === "immediate" ? s("common.sortable.deleteConfirmText") : s("common.sortable.deleteConfirmTextDeferred"))
|
|
@@ -8690,19 +8694,19 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8690
8694
|
isEditing: (S) => h.value.has(S),
|
|
8691
8695
|
onToggleEdit: (S) => {
|
|
8692
8696
|
const G = et(S);
|
|
8693
|
-
G &&
|
|
8697
|
+
G && ka(G);
|
|
8694
8698
|
},
|
|
8695
8699
|
onCancelEdit: (S) => {
|
|
8696
8700
|
const G = et(S);
|
|
8697
|
-
G &&
|
|
8701
|
+
G && Ea(G);
|
|
8698
8702
|
},
|
|
8699
8703
|
onMoveUp: (S) => {
|
|
8700
8704
|
const G = et(S);
|
|
8701
|
-
G &&
|
|
8705
|
+
G && Ta(G.index);
|
|
8702
8706
|
},
|
|
8703
8707
|
onMoveDown: (S) => {
|
|
8704
8708
|
const G = et(S);
|
|
8705
|
-
G &&
|
|
8709
|
+
G && Aa(G.index);
|
|
8706
8710
|
},
|
|
8707
8711
|
onMoveTop: (S) => {
|
|
8708
8712
|
const G = et(S);
|
|
@@ -8713,7 +8717,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8713
8717
|
G && go(G.index);
|
|
8714
8718
|
},
|
|
8715
8719
|
onCancelReorder: () => z()
|
|
8716
|
-
}), mo = U(!1), gn =
|
|
8720
|
+
}), mo = U(!1), gn = oa(null), os = R(
|
|
8717
8721
|
() => gn.value ? cl(gn.value.raw) : ""
|
|
8718
8722
|
), ls = (S) => {
|
|
8719
8723
|
a.showMoveToPosition && (gn.value = S, mo.value = !0);
|
|
@@ -8765,10 +8769,10 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8765
8769
|
le();
|
|
8766
8770
|
const G = p.addItem(void 0, { afterId: S.key });
|
|
8767
8771
|
X.value && G !== void 0 && M.value.add(G);
|
|
8768
|
-
},
|
|
8772
|
+
}, ka = (S) => {
|
|
8769
8773
|
if (re.value && !(X.value && !a.allowEditInReorder)) {
|
|
8770
8774
|
if (h.value.has(S.key)) {
|
|
8771
|
-
|
|
8775
|
+
Ea(S);
|
|
8772
8776
|
return;
|
|
8773
8777
|
}
|
|
8774
8778
|
O.value && (D(S), A.value.delete(S.key)), l("edit", S);
|
|
@@ -8786,10 +8790,10 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8786
8790
|
}, fl = (S) => a.chips || a.disableRowClick || a.disabled || a.loading || X.value && !a.allowEditInReorder ? !1 : !!(S.editing || S.expanded || !a.readonly && a.showEditButton), is = (S) => {
|
|
8787
8791
|
if (fl(S)) {
|
|
8788
8792
|
if (S.editing || S.expanded) {
|
|
8789
|
-
|
|
8793
|
+
Ea(S);
|
|
8790
8794
|
return;
|
|
8791
8795
|
}
|
|
8792
|
-
a.readonly && b.value ? dl(S) :
|
|
8796
|
+
a.readonly && b.value ? dl(S) : ka(S);
|
|
8793
8797
|
}
|
|
8794
8798
|
}, {
|
|
8795
8799
|
deleteDialog: ho,
|
|
@@ -8807,39 +8811,39 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8807
8811
|
X.value && (M.value.has(S.key) ? M.value.delete(S.key) : G ? $.value.add(S.key) : H.value.add(S.key)), p.deleteItem(S.key, { trackDeleted: G }), l("deleted", S);
|
|
8808
8812
|
},
|
|
8809
8813
|
disableDeleteConfirm: () => a.disableDeleteConfirm || a.chips
|
|
8810
|
-
}),
|
|
8814
|
+
}), Da = async (S) => {
|
|
8811
8815
|
re.value && await ds(S);
|
|
8812
8816
|
}, ml = async (S) => {
|
|
8813
8817
|
a.onItemSave && await a.onItemSave(S.raw), j(S), l("item-saved", S);
|
|
8814
8818
|
}, vl = (S) => {
|
|
8815
8819
|
B(S);
|
|
8816
|
-
}, Da = (S) => {
|
|
8817
|
-
Q(S), A.value.delete(S.key), l("close", S);
|
|
8818
8820
|
}, Ea = (S) => {
|
|
8821
|
+
J(S), A.value.delete(S.key), l("close", S);
|
|
8822
|
+
}, xa = (S) => {
|
|
8819
8823
|
const G = o.value[S];
|
|
8820
8824
|
return G ? g(G) : null;
|
|
8821
|
-
},
|
|
8825
|
+
}, Ta = (S) => {
|
|
8822
8826
|
if (S <= 0) return;
|
|
8823
|
-
const G =
|
|
8827
|
+
const G = xa(S);
|
|
8824
8828
|
p.moveItem(S, S - 1), G !== null && xt(G);
|
|
8825
|
-
},
|
|
8829
|
+
}, Aa = (S) => {
|
|
8826
8830
|
if (S >= o.value.length - 1) return;
|
|
8827
|
-
const G =
|
|
8831
|
+
const G = xa(S);
|
|
8828
8832
|
p.moveItem(S, S + 1), G !== null && xt(G);
|
|
8829
8833
|
}, po = (S) => {
|
|
8830
8834
|
if (S <= 0) return;
|
|
8831
|
-
const G =
|
|
8835
|
+
const G = xa(S);
|
|
8832
8836
|
p.moveItem(S, 0), G !== null && xt(G);
|
|
8833
8837
|
}, go = (S) => {
|
|
8834
8838
|
if (S >= o.value.length - 1) return;
|
|
8835
|
-
const G =
|
|
8839
|
+
const G = xa(S);
|
|
8836
8840
|
p.moveItem(S, o.value.length - 1), G !== null && xt(G);
|
|
8837
8841
|
}, Un = /* @__PURE__ */ new Map(), vs = (S) => {
|
|
8838
8842
|
let G = Un.get(S);
|
|
8839
8843
|
return G || (G = {
|
|
8840
8844
|
edit: () => {
|
|
8841
8845
|
const q = et(S);
|
|
8842
|
-
q &&
|
|
8846
|
+
q && ka(q);
|
|
8843
8847
|
},
|
|
8844
8848
|
save: () => {
|
|
8845
8849
|
const q = et(S);
|
|
@@ -8851,11 +8855,11 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8851
8855
|
},
|
|
8852
8856
|
close: () => {
|
|
8853
8857
|
const q = et(S);
|
|
8854
|
-
q &&
|
|
8858
|
+
q && Ea(q);
|
|
8855
8859
|
},
|
|
8856
8860
|
delete: async () => {
|
|
8857
8861
|
const q = et(S);
|
|
8858
|
-
q && await
|
|
8862
|
+
q && await Da(q);
|
|
8859
8863
|
},
|
|
8860
8864
|
addAfter: () => {
|
|
8861
8865
|
const q = et(S);
|
|
@@ -8867,11 +8871,11 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8867
8871
|
},
|
|
8868
8872
|
moveUp: () => {
|
|
8869
8873
|
const q = et(S);
|
|
8870
|
-
q &&
|
|
8874
|
+
q && Ta(q.index);
|
|
8871
8875
|
},
|
|
8872
8876
|
moveDown: () => {
|
|
8873
8877
|
const q = et(S);
|
|
8874
|
-
q &&
|
|
8878
|
+
q && Aa(q.index);
|
|
8875
8879
|
},
|
|
8876
8880
|
moveTop: () => {
|
|
8877
8881
|
const q = et(S);
|
|
@@ -9087,7 +9091,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9087
9091
|
actions: { add: Vn }
|
|
9088
9092
|
}, () => [
|
|
9089
9093
|
x(Cf, {
|
|
9090
|
-
title:
|
|
9094
|
+
title: Q.value,
|
|
9091
9095
|
"add-label": co.value,
|
|
9092
9096
|
"can-add": Et.value,
|
|
9093
9097
|
onAdd: Vn
|
|
@@ -9151,7 +9155,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9151
9155
|
active: !1,
|
|
9152
9156
|
disabled: !q.canMoveUp,
|
|
9153
9157
|
class: "a-le-action a-le-action--up",
|
|
9154
|
-
onClick: De((ye) =>
|
|
9158
|
+
onClick: De((ye) => Ta(q.index), ["stop"])
|
|
9155
9159
|
}, {
|
|
9156
9160
|
default: I(() => [
|
|
9157
9161
|
x(Oe, {
|
|
@@ -9169,7 +9173,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9169
9173
|
active: !1,
|
|
9170
9174
|
disabled: !q.canMoveDown,
|
|
9171
9175
|
class: "a-le-action a-le-action--down",
|
|
9172
|
-
onClick: De((ye) =>
|
|
9176
|
+
onClick: De((ye) => Aa(q.index), ["stop"])
|
|
9173
9177
|
}, {
|
|
9174
9178
|
default: I(() => [
|
|
9175
9179
|
x(Oe, {
|
|
@@ -9188,7 +9192,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9188
9192
|
density: "compact",
|
|
9189
9193
|
active: !1,
|
|
9190
9194
|
class: "a-le-action a-le-action--chip-close",
|
|
9191
|
-
onClick: De((ye) =>
|
|
9195
|
+
onClick: De((ye) => Da(q), ["stop"])
|
|
9192
9196
|
}, {
|
|
9193
9197
|
default: I(() => [
|
|
9194
9198
|
x(Oe, {
|
|
@@ -9206,7 +9210,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9206
9210
|
density: "comfortable",
|
|
9207
9211
|
disabled: !q.canMoveUp,
|
|
9208
9212
|
class: "mx-1 a-le-action a-le-action--up",
|
|
9209
|
-
onClick: De((ye) =>
|
|
9213
|
+
onClick: De((ye) => Ta(q.index), ["stop"])
|
|
9210
9214
|
}, {
|
|
9211
9215
|
default: I(() => [
|
|
9212
9216
|
x(Oe, {
|
|
@@ -9228,7 +9232,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9228
9232
|
density: "comfortable",
|
|
9229
9233
|
disabled: !q.canMoveDown,
|
|
9230
9234
|
class: "mx-1 a-le-action a-le-action--down",
|
|
9231
|
-
onClick: De((ye) =>
|
|
9235
|
+
onClick: De((ye) => Aa(q.index), ["stop"])
|
|
9232
9236
|
}, {
|
|
9233
9237
|
default: I(() => [
|
|
9234
9238
|
x(Oe, {
|
|
@@ -9261,9 +9265,9 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9261
9265
|
location: "bottom",
|
|
9262
9266
|
text: L(s)("common.sortable.more")
|
|
9263
9267
|
}, null, 8, ["text"]),
|
|
9264
|
-
x(
|
|
9268
|
+
x(sa, { activator: "parent" }, {
|
|
9265
9269
|
default: I(() => [
|
|
9266
|
-
x(
|
|
9270
|
+
x(za, { density: "compact" }, {
|
|
9267
9271
|
default: I(() => [
|
|
9268
9272
|
x(mt, {
|
|
9269
9273
|
disabled: !q.canMoveUp,
|
|
@@ -9335,7 +9339,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9335
9339
|
}, 8, ["onClick"])) : ve("", !0),
|
|
9336
9340
|
e.showDeleteButton && re.value ? (_(), te(mt, {
|
|
9337
9341
|
key: 2,
|
|
9338
|
-
onClick: De((ye) =>
|
|
9342
|
+
onClick: De((ye) => Da(q), ["stop"])
|
|
9339
9343
|
}, {
|
|
9340
9344
|
prepend: I(() => [
|
|
9341
9345
|
x(Oe, { icon: "mdi-trash-can-outline" })
|
|
@@ -9368,7 +9372,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9368
9372
|
color: "primary",
|
|
9369
9373
|
density: "comfortable",
|
|
9370
9374
|
class: "mx-1 a-le-action a-le-action--edit",
|
|
9371
|
-
onClick: De((ye) =>
|
|
9375
|
+
onClick: De((ye) => ka(q), ["stop"])
|
|
9372
9376
|
}, {
|
|
9373
9377
|
default: I(() => [
|
|
9374
9378
|
x(Oe, {
|
|
@@ -9390,7 +9394,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9390
9394
|
variant: "text",
|
|
9391
9395
|
density: "comfortable",
|
|
9392
9396
|
class: "mx-1 a-le-action a-le-action--delete",
|
|
9393
|
-
onClick: De((ye) =>
|
|
9397
|
+
onClick: De((ye) => Da(q), ["stop"])
|
|
9394
9398
|
}, {
|
|
9395
9399
|
default: I(() => [
|
|
9396
9400
|
x(Oe, {
|
|
@@ -9424,9 +9428,9 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9424
9428
|
location: "bottom",
|
|
9425
9429
|
text: L(s)("common.sortable.more")
|
|
9426
9430
|
}, null, 8, ["text"]),
|
|
9427
|
-
x(
|
|
9431
|
+
x(sa, { activator: "parent" }, {
|
|
9428
9432
|
default: I(() => [
|
|
9429
|
-
x(
|
|
9433
|
+
x(za, { density: "compact" }, {
|
|
9430
9434
|
default: I(() => [
|
|
9431
9435
|
x(mt, {
|
|
9432
9436
|
onClick: (ye) => vo(q)
|
|
@@ -9643,7 +9647,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9643
9647
|
});
|
|
9644
9648
|
};
|
|
9645
9649
|
return oe(h.value), oe(b.value), Array.from(Y.values());
|
|
9646
|
-
}), B = U(!1), j = R(() => B.value ? !0 : a.loading),
|
|
9650
|
+
}), B = U(!1), j = R(() => B.value ? !0 : a.loading), J = (Y) => {
|
|
9647
9651
|
h.value = [], d.value = $e(Y) ? [] : null, T.value = $e(Y) ? [] : null;
|
|
9648
9652
|
}, le = (Y) => {
|
|
9649
9653
|
const oe = (pe) => D.value.find((Be) => Be.value === pe) ?? { title: `${pe}`, value: pe };
|
|
@@ -9762,7 +9766,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9762
9766
|
async (Y, oe) => {
|
|
9763
9767
|
if (Y !== oe) {
|
|
9764
9768
|
if (v.value && (v.value = !1, await he("mounted", Y)), C.value.enabled && g.value && E.value(Y), fr(Y)) {
|
|
9765
|
-
|
|
9769
|
+
J(Y);
|
|
9766
9770
|
return;
|
|
9767
9771
|
}
|
|
9768
9772
|
await re(Y);
|
|
@@ -9771,7 +9775,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9771
9775
|
{ immediate: !0 }
|
|
9772
9776
|
), n({
|
|
9773
9777
|
tryLoadModelValue: Se
|
|
9774
|
-
}), (Y, oe) => (_(), te(
|
|
9778
|
+
}), (Y, oe) => (_(), te(ca, {
|
|
9775
9779
|
"model-value": T.value,
|
|
9776
9780
|
items: D.value,
|
|
9777
9781
|
"no-filter": "",
|
|
@@ -9858,7 +9862,7 @@ export {
|
|
|
9858
9862
|
Iv as E,
|
|
9859
9863
|
Tv as F,
|
|
9860
9864
|
xr as G,
|
|
9861
|
-
|
|
9865
|
+
ia as H,
|
|
9862
9866
|
Om as I,
|
|
9863
9867
|
Ai as J,
|
|
9864
9868
|
yu as K,
|
|
@@ -9917,21 +9921,21 @@ export {
|
|
|
9917
9921
|
Wr as aY,
|
|
9918
9922
|
Nv as aZ,
|
|
9919
9923
|
Hn as a_,
|
|
9920
|
-
|
|
9924
|
+
ha as aa,
|
|
9921
9925
|
On as ab,
|
|
9922
|
-
|
|
9926
|
+
pa as ac,
|
|
9923
9927
|
_n as ad,
|
|
9924
|
-
|
|
9928
|
+
ga as ae,
|
|
9925
9929
|
Pn as af,
|
|
9926
9930
|
Ft as ag,
|
|
9927
9931
|
lc as ah,
|
|
9928
9932
|
rc as ai,
|
|
9929
|
-
|
|
9930
|
-
|
|
9933
|
+
ba as aj,
|
|
9934
|
+
wa as ak,
|
|
9931
9935
|
Rn as al,
|
|
9932
9936
|
Bn as am,
|
|
9933
9937
|
Qo as an,
|
|
9934
|
-
|
|
9938
|
+
ya as ao,
|
|
9935
9939
|
Ln as ap,
|
|
9936
9940
|
Cr as aq,
|
|
9937
9941
|
el as ar,
|
|
@@ -9983,7 +9987,7 @@ export {
|
|
|
9983
9987
|
mc as bZ,
|
|
9984
9988
|
Ii as b_,
|
|
9985
9989
|
$l as ba,
|
|
9986
|
-
|
|
9990
|
+
Ia as bb,
|
|
9987
9991
|
Ml as bc,
|
|
9988
9992
|
bu as bd,
|
|
9989
9993
|
zv as be,
|
|
@@ -10051,7 +10055,7 @@ export {
|
|
|
10051
10055
|
_t as cv,
|
|
10052
10056
|
dn as cw,
|
|
10053
10057
|
xc as cx,
|
|
10054
|
-
|
|
10058
|
+
ja as cy,
|
|
10055
10059
|
Ec as cz,
|
|
10056
10060
|
F as d,
|
|
10057
10061
|
no as e,
|
|
@@ -10066,7 +10070,7 @@ export {
|
|
|
10066
10070
|
Kn as n,
|
|
10067
10071
|
un as o,
|
|
10068
10072
|
$e as p,
|
|
10069
|
-
|
|
10073
|
+
va as q,
|
|
10070
10074
|
Zn as r,
|
|
10071
10075
|
Tn as s,
|
|
10072
10076
|
Lo as t,
|
|
@@ -10077,4 +10081,4 @@ export {
|
|
|
10077
10081
|
fr as y,
|
|
10078
10082
|
mr as z
|
|
10079
10083
|
};
|
|
10080
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
10084
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DyULxnGf.mjs.map
|