@anzusystems/common-admin 1.47.0-beta.dev-1784059874 → 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-6ELMdlM4.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DyULxnGf.mjs} +339 -338
- 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 +4 -4
- 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-BUCJhtQv.mjs → webfontloader-gIAjo-5y.mjs} +2 -2
- package/dist/{webfontloader-BUCJhtQv.mjs.map → webfontloader-gIAjo-5y.mjs.map} +1 -1
- package/package.json +5 -5
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-6ELMdlM4.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", {
|
|
@@ -3671,7 +3672,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3671
3672
|
f === m || yt(f) || p(f);
|
|
3672
3673
|
},
|
|
3673
3674
|
{ immediate: !0 }
|
|
3674
|
-
), (f, m) => (_(), te(
|
|
3675
|
+
), (f, m) => (_(), te(ca, {
|
|
3675
3676
|
modelValue: u.value,
|
|
3676
3677
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => u.value = g),
|
|
3677
3678
|
items: e.items,
|
|
@@ -3714,7 +3715,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3714
3715
|
}
|
|
3715
3716
|
}), { timeIntervalOptions: u, getTimeIntervalOption: c } = ic(t.allowed), d = U(null), C = U(!1), y = U({
|
|
3716
3717
|
from: null,
|
|
3717
|
-
until:
|
|
3718
|
+
until: ia()
|
|
3718
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 = () => {
|
|
3719
3720
|
E.value = !1, d.value = null, H();
|
|
3720
3721
|
}, k = () => {
|
|
@@ -3746,7 +3747,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3746
3747
|
}
|
|
3747
3748
|
O && o.value.set(t.nameFrom, [{ title: O.title, value: V }]);
|
|
3748
3749
|
}, N = (V = !1) => {
|
|
3749
|
-
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;
|
|
3750
3751
|
};
|
|
3751
3752
|
_e(
|
|
3752
3753
|
i,
|
|
@@ -3812,7 +3813,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3812
3813
|
]),
|
|
3813
3814
|
_: 1
|
|
3814
3815
|
}, 8, ["modelValue", "label", "clearable", "data-cy", "items"])),
|
|
3815
|
-
C.value ? (_(), te(
|
|
3816
|
+
C.value ? (_(), te(fa, {
|
|
3816
3817
|
key: 2,
|
|
3817
3818
|
"model-value": !0,
|
|
3818
3819
|
width: "auto",
|
|
@@ -3858,7 +3859,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3858
3859
|
]),
|
|
3859
3860
|
_: 1
|
|
3860
3861
|
}),
|
|
3861
|
-
x(
|
|
3862
|
+
x(da, null, {
|
|
3862
3863
|
default: I(() => [
|
|
3863
3864
|
x($n),
|
|
3864
3865
|
x(b, {
|
|
@@ -3980,7 +3981,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3980
3981
|
f === m || yt(f) || p();
|
|
3981
3982
|
},
|
|
3982
3983
|
{ immediate: !0 }
|
|
3983
|
-
), (f, m) => (_(), te(
|
|
3984
|
+
), (f, m) => (_(), te(ma, {
|
|
3984
3985
|
modelValue: i.value,
|
|
3985
3986
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => i.value = g),
|
|
3986
3987
|
label: d.value,
|
|
@@ -4038,10 +4039,10 @@ function jl(e, n = "userAdminConfig") {
|
|
|
4038
4039
|
filterData: l
|
|
4039
4040
|
};
|
|
4040
4041
|
}
|
|
4041
|
-
const
|
|
4042
|
+
const ja = {
|
|
4042
4043
|
PinnedWidgets: "pinnedWidgets",
|
|
4043
4044
|
FilterBookmark: "filterBookmark"
|
|
4044
|
-
}, Ec =
|
|
4045
|
+
}, Ec = ja.PinnedWidgets, dn = {
|
|
4045
4046
|
Desktop: "desktop",
|
|
4046
4047
|
Mobile: "mobile"
|
|
4047
4048
|
}, xc = dn.Desktop, Tc = 3, Uo = 8, $r = Xs("filterBookmarkStore", () => {
|
|
@@ -4069,7 +4070,7 @@ const Ha = {
|
|
|
4069
4070
|
s.systemResource,
|
|
4070
4071
|
"_"
|
|
4071
4072
|
), { filterConfig: p, filterData: f } = jl(y, E);
|
|
4072
|
-
f.configType =
|
|
4073
|
+
f.configType = ja.FilterBookmark, f.layoutType = s.layoutType, f.systemResource = s.systemResource, f.user = s.user;
|
|
4073
4074
|
let m = [];
|
|
4074
4075
|
try {
|
|
4075
4076
|
const { executeFetch: g } = i();
|
|
@@ -4087,7 +4088,7 @@ const Ha = {
|
|
|
4087
4088
|
s.systemResource,
|
|
4088
4089
|
"_"
|
|
4089
4090
|
), { filterConfig: C, filterData: y } = jl(c, d);
|
|
4090
|
-
y.configType =
|
|
4091
|
+
y.configType = ja.FilterBookmark, y.layoutType = s.layoutType, y.systemResource = s.systemResource, y.user = s.user;
|
|
4091
4092
|
let E = 1 / 0;
|
|
4092
4093
|
try {
|
|
4093
4094
|
const { executeFetch: p } = i();
|
|
@@ -4127,13 +4128,13 @@ const Ha = {
|
|
|
4127
4128
|
try {
|
|
4128
4129
|
const f = { method: t }, m = Ue(E) ? E : r, g = Ue(y) ? y : o;
|
|
4129
4130
|
if (F(g)) throw new Error("Url template is undefined");
|
|
4130
|
-
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));
|
|
4131
4132
|
const T = await n().request({
|
|
4132
4133
|
...s,
|
|
4133
4134
|
...f,
|
|
4134
4135
|
signal: u.signal
|
|
4135
4136
|
});
|
|
4136
|
-
if (!
|
|
4137
|
+
if (!wa(T.status))
|
|
4137
4138
|
throw new Rn(T.status);
|
|
4138
4139
|
if (T.data)
|
|
4139
4140
|
return T.data;
|
|
@@ -4143,7 +4144,7 @@ const Ha = {
|
|
|
4143
4144
|
} catch (f) {
|
|
4144
4145
|
if (f instanceof DOMException && f.name === "AbortError")
|
|
4145
4146
|
return [];
|
|
4146
|
-
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));
|
|
4147
4148
|
} finally {
|
|
4148
4149
|
u = null;
|
|
4149
4150
|
}
|
|
@@ -4319,7 +4320,7 @@ const Ic = { key: 0 }, Mc = 32, Br = /* @__PURE__ */ Re({
|
|
|
4319
4320
|
_: 2
|
|
4320
4321
|
}, 1032, ["onClick"])
|
|
4321
4322
|
]))), 128)),
|
|
4322
|
-
A.value.hidden.length > 0 ? (_(), te(
|
|
4323
|
+
A.value.hidden.length > 0 ? (_(), te(sa, {
|
|
4323
4324
|
key: 0,
|
|
4324
4325
|
location: "bottom"
|
|
4325
4326
|
}, {
|
|
@@ -4332,7 +4333,7 @@ const Ic = { key: 0 }, Mc = 32, Br = /* @__PURE__ */ Re({
|
|
|
4332
4333
|
}, H), null, 16)
|
|
4333
4334
|
]),
|
|
4334
4335
|
default: I(() => [
|
|
4335
|
-
x(
|
|
4336
|
+
x(za, { density: "compact" }, {
|
|
4336
4337
|
default: I(() => [
|
|
4337
4338
|
(_(!0), de(We, null, en(A.value.hidden, (H) => (_(), te(mt, {
|
|
4338
4339
|
key: H.id,
|
|
@@ -4441,7 +4442,7 @@ function zt(e) {
|
|
|
4441
4442
|
if (typeof window < "u" && window.navigator)
|
|
4442
4443
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
4443
4444
|
}
|
|
4444
|
-
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 = {
|
|
4445
4446
|
capture: !1,
|
|
4446
4447
|
passive: !1
|
|
4447
4448
|
};
|
|
@@ -4451,7 +4452,7 @@ function Ve(e, n, t) {
|
|
|
4451
4452
|
function Ne(e, n, t) {
|
|
4452
4453
|
e.removeEventListener(n, t, !Kt && _r);
|
|
4453
4454
|
}
|
|
4454
|
-
function
|
|
4455
|
+
function qa(e, n) {
|
|
4455
4456
|
if (n) {
|
|
4456
4457
|
if (n[0] === ">" && (n = n.substring(1)), e)
|
|
4457
4458
|
try {
|
|
@@ -4474,7 +4475,7 @@ function Mt(e, n, t, a) {
|
|
|
4474
4475
|
if (e) {
|
|
4475
4476
|
t = t || document;
|
|
4476
4477
|
do {
|
|
4477
|
-
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)
|
|
4478
4479
|
return e;
|
|
4479
4480
|
if (e === t) break;
|
|
4480
4481
|
} while (e = Rr(e));
|
|
@@ -4571,7 +4572,7 @@ function In(e, n, t, a) {
|
|
|
4571
4572
|
return null;
|
|
4572
4573
|
}
|
|
4573
4574
|
function ll(e, n) {
|
|
4574
|
-
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)); )
|
|
4575
4576
|
t = t.previousElementSibling;
|
|
4576
4577
|
return t || null;
|
|
4577
4578
|
}
|
|
@@ -4580,7 +4581,7 @@ function kt(e, n) {
|
|
|
4580
4581
|
if (!e || !e.parentNode)
|
|
4581
4582
|
return -1;
|
|
4582
4583
|
for (; e = e.previousElementSibling; )
|
|
4583
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== we.clone && (!n ||
|
|
4584
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== we.clone && (!n || qa(e, n)) && t++;
|
|
4584
4585
|
return t;
|
|
4585
4586
|
}
|
|
4586
4587
|
function Zl(e) {
|
|
@@ -4722,7 +4723,7 @@ function Yc(e, n, t, a) {
|
|
|
4722
4723
|
}
|
|
4723
4724
|
var yn = [], Mo = {
|
|
4724
4725
|
initializeByDefault: !0
|
|
4725
|
-
},
|
|
4726
|
+
}, Sa = {
|
|
4726
4727
|
mount: function(n) {
|
|
4727
4728
|
for (var t in Mo)
|
|
4728
4729
|
Mo.hasOwnProperty(t) && !(t in n) && (n[t] = Mo[t]);
|
|
@@ -4776,11 +4777,11 @@ function zc(e) {
|
|
|
4776
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;
|
|
4777
4778
|
if (n = n || t && t[vt], !!n) {
|
|
4778
4779
|
var p, f = n.options, m = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
4779
|
-
window.CustomEvent && !Kt && !
|
|
4780
|
+
window.CustomEvent && !Kt && !Ca ? p = new CustomEvent(a, {
|
|
4780
4781
|
bubbles: !0,
|
|
4781
4782
|
cancelable: !0
|
|
4782
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;
|
|
4783
|
-
var g = Pt(Pt({}, E),
|
|
4784
|
+
var g = Pt(Pt({}, E), Sa.getEventProperties(a, n));
|
|
4784
4785
|
for (var T in g)
|
|
4785
4786
|
p[T] = g[T];
|
|
4786
4787
|
t && t.dispatchEvent(p), f[m] && f[m].call(n, p);
|
|
@@ -4788,13 +4789,13 @@ function zc(e) {
|
|
|
4788
4789
|
}
|
|
4789
4790
|
var Hc = ["evt"], ft = function(n, t) {
|
|
4790
4791
|
var a = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, l = a.evt, o = Fc(a, Hc);
|
|
4791
|
-
|
|
4792
|
+
Sa.pluginEvent.bind(we)(n, t, Pt({
|
|
4792
4793
|
dragEl: ae,
|
|
4793
4794
|
parentEl: Ke,
|
|
4794
4795
|
ghostEl: Te,
|
|
4795
4796
|
rootEl: je,
|
|
4796
4797
|
nextEl: sn,
|
|
4797
|
-
lastDownEl:
|
|
4798
|
+
lastDownEl: La,
|
|
4798
4799
|
cloneEl: qe,
|
|
4799
4800
|
cloneHidden: Jt,
|
|
4800
4801
|
dragStarted: Wn,
|
|
@@ -4834,7 +4835,7 @@ function ut(e) {
|
|
|
4834
4835
|
newDraggableIndex: Zt
|
|
4835
4836
|
}, e));
|
|
4836
4837
|
}
|
|
4837
|
-
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() {
|
|
4838
4839
|
if (uo) {
|
|
4839
4840
|
if (Kt)
|
|
4840
4841
|
return !1;
|
|
@@ -4857,7 +4858,7 @@ var ae, Ke, Te, je, sn, Pa, qe, Jt, Sn, gt, ea, Zt, Ma, lt, wn = !1, qa = !1, Ka
|
|
|
4857
4858
|
return l === s || o === i || l + r / 2 === s + u / 2;
|
|
4858
4859
|
}, Kc = function(n, t) {
|
|
4859
4860
|
var a;
|
|
4860
|
-
return
|
|
4861
|
+
return Wa.some(function(l) {
|
|
4861
4862
|
var o = l[vt].options.emptyInsertThreshold;
|
|
4862
4863
|
if (!(!o || ll(l))) {
|
|
4863
4864
|
var r = Je(l), s = n >= r.left - o && n <= r.right + o, i = t >= r.top - o && t <= r.bottom + o;
|
|
@@ -4891,8 +4892,8 @@ var ae, Ke, Te, je, sn, Pa, qe, Jt, Sn, gt, ea, Zt, Ma, lt, wn = !1, qa = !1, Ka
|
|
|
4891
4892
|
!Yr && Te && be(Te, "display", "");
|
|
4892
4893
|
};
|
|
4893
4894
|
uo && !Or && document.addEventListener("click", function(e) {
|
|
4894
|
-
if (
|
|
4895
|
-
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;
|
|
4896
4897
|
}, !0);
|
|
4897
4898
|
var ln = function(n) {
|
|
4898
4899
|
if (ae) {
|
|
@@ -4958,13 +4959,13 @@ function we(e, n) {
|
|
|
4958
4959
|
supportPointer: we.supportPointer !== !1 && "PointerEvent" in window && (!Jn || ol),
|
|
4959
4960
|
emptyInsertThreshold: 5
|
|
4960
4961
|
};
|
|
4961
|
-
|
|
4962
|
+
Sa.initializePlugins(this, e, t);
|
|
4962
4963
|
for (var a in t)
|
|
4963
4964
|
!(a in n) && (n[a] = t[a]);
|
|
4964
4965
|
Hr(n);
|
|
4965
4966
|
for (var l in this)
|
|
4966
4967
|
l.charAt(0) === "_" && typeof this[l] == "function" && (this[l] = this[l].bind(this));
|
|
4967
|
-
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());
|
|
4968
4969
|
}
|
|
4969
4970
|
we.prototype = /** @lends Sortable.prototype */
|
|
4970
4971
|
{
|
|
@@ -4978,7 +4979,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
4978
4979
|
_onTapStart: function(n) {
|
|
4979
4980
|
if (n.cancelable) {
|
|
4980
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;
|
|
4981
|
-
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)) {
|
|
4982
4983
|
if (Sn = kt(i), ea = kt(i, l.draggable), typeof c == "function") {
|
|
4983
4984
|
if (c.call(this, n, i, this)) {
|
|
4984
4985
|
ut({
|
|
@@ -5017,7 +5018,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5017
5018
|
var l = this, o = l.el, r = l.options, s = o.ownerDocument, i;
|
|
5018
5019
|
if (a && !ae && a.parentNode === o) {
|
|
5019
5020
|
var u = Je(a);
|
|
5020
|
-
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 = {
|
|
5021
5022
|
target: ae,
|
|
5022
5023
|
clientX: (t || n).clientX,
|
|
5023
5024
|
clientY: (t || n).clientY
|
|
@@ -5037,7 +5038,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5037
5038
|
Pr(ae, c.trim(), Oo);
|
|
5038
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, {
|
|
5039
5040
|
evt: n
|
|
5040
|
-
}), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(
|
|
5041
|
+
}), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ca || Kt))) {
|
|
5041
5042
|
if (we.eventCanceled) {
|
|
5042
5043
|
this._onDrop();
|
|
5043
5044
|
return;
|
|
@@ -5061,7 +5062,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5061
5062
|
_triggerDragStart: function(n, t) {
|
|
5062
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));
|
|
5063
5064
|
try {
|
|
5064
|
-
document.selection ?
|
|
5065
|
+
document.selection ? Va(function() {
|
|
5065
5066
|
document.selection.empty();
|
|
5066
5067
|
}) : window.getSelection().removeAllRanges();
|
|
5067
5068
|
} catch {
|
|
@@ -5105,7 +5106,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5105
5106
|
},
|
|
5106
5107
|
_onTouchMove: function(n) {
|
|
5107
5108
|
if (on) {
|
|
5108
|
-
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);
|
|
5109
5110
|
if (!we.active && !wn) {
|
|
5110
5111
|
if (a && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < a)
|
|
5111
5112
|
return;
|
|
@@ -5128,13 +5129,13 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5128
5129
|
},
|
|
5129
5130
|
_appendGhost: function() {
|
|
5130
5131
|
if (!Te) {
|
|
5131
|
-
var n = this.options.fallbackOnBody ? document.body : je, t = Je(ae, !0,
|
|
5132
|
-
if (
|
|
5132
|
+
var n = this.options.fallbackOnBody ? document.body : je, t = Je(ae, !0, Ba, !0, n), a = this.options;
|
|
5133
|
+
if (Ba) {
|
|
5133
5134
|
for (st = n; be(st, "position") === "static" && be(st, "transform") === "none" && st !== document; )
|
|
5134
5135
|
st = st.parentNode;
|
|
5135
5136
|
st !== document.body && st !== document.documentElement ? (st === document && (st = Rt()), t.top += st.scrollTop, t.left += st.scrollLeft) : st = Rt(), Bo = Zl(st);
|
|
5136
5137
|
}
|
|
5137
|
-
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 + "%");
|
|
5138
5139
|
}
|
|
5139
5140
|
},
|
|
5140
5141
|
_onDragStart: function(n, t) {
|
|
@@ -5145,16 +5146,16 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5145
5146
|
this._onDrop();
|
|
5146
5147
|
return;
|
|
5147
5148
|
}
|
|
5148
|
-
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() {
|
|
5149
5150
|
ft("clone", a), !we.eventCanceled && (a.options.removeCloneOnHide || je.insertBefore(qe, ae), a._hideClone(), ut({
|
|
5150
5151
|
sortable: a,
|
|
5151
5152
|
name: "clone"
|
|
5152
5153
|
}));
|
|
5153
|
-
}), !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");
|
|
5154
5155
|
},
|
|
5155
5156
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
5156
5157
|
_onDragOver: function(n) {
|
|
5157
|
-
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;
|
|
5158
5159
|
if (zo) return;
|
|
5159
5160
|
function f(D, B) {
|
|
5160
5161
|
ft(D, E, Pt({
|
|
@@ -5168,8 +5169,8 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5168
5169
|
fromSortable: C,
|
|
5169
5170
|
target: a,
|
|
5170
5171
|
completed: g,
|
|
5171
|
-
onMove: function(
|
|
5172
|
-
return
|
|
5172
|
+
onMove: function(J, le) {
|
|
5173
|
+
return Oa(je, t, ae, l, J, Je(J), n, le);
|
|
5173
5174
|
},
|
|
5174
5175
|
changed: T
|
|
5175
5176
|
}, B));
|
|
@@ -5197,7 +5198,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5197
5198
|
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = Mt(a, s.draggable, t, !0), f("dragOver"), we.eventCanceled) return p;
|
|
5198
5199
|
if (ae.contains(n.target) || a.animated && a.animatingX && a.animatingY || E._ignoreWhileAnimating === a)
|
|
5199
5200
|
return g(!1);
|
|
5200
|
-
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))) {
|
|
5201
5202
|
if (y = this._getDirection(n, a) === "vertical", l = Je(ae), f("dragOverValid"), we.eventCanceled) return p;
|
|
5202
5203
|
if (r)
|
|
5203
5204
|
return Ke = je, m(), this._hideClone(), f("revert"), we.eventCanceled || (sn ? je.insertBefore(ae, sn) : je.appendChild(ae)), g(!0);
|
|
@@ -5205,18 +5206,18 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5205
5206
|
if (!P || Jc(n, y, this) && !P.animated) {
|
|
5206
5207
|
if (P === ae)
|
|
5207
5208
|
return g(!1);
|
|
5208
|
-
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)
|
|
5209
5210
|
return m(), P && P.nextSibling ? t.insertBefore(ae, P.nextSibling) : t.appendChild(ae), Ke = t, T(), g(!0);
|
|
5210
5211
|
} else if (P && Zc(n, y, this)) {
|
|
5211
5212
|
var A = In(t, 0, s, !0);
|
|
5212
5213
|
if (A === ae)
|
|
5213
5214
|
return g(!1);
|
|
5214
|
-
if (a = A, o = Je(a),
|
|
5215
|
+
if (a = A, o = Je(a), Oa(je, t, ae, l, a, o, n, !1) !== !1)
|
|
5215
5216
|
return m(), t.insertBefore(ae, A), Ke = t, T(), g(!0);
|
|
5216
5217
|
} else if (a.parentNode === t) {
|
|
5217
5218
|
o = Je(a);
|
|
5218
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;
|
|
5219
|
-
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);
|
|
5220
5221
|
var O;
|
|
5221
5222
|
if (k !== 0) {
|
|
5222
5223
|
var b = kt(ae);
|
|
@@ -5229,9 +5230,9 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5229
5230
|
bn = a, ta = k;
|
|
5230
5231
|
var h = a.nextElementSibling, v = !1;
|
|
5231
5232
|
v = k === 1;
|
|
5232
|
-
var w =
|
|
5233
|
+
var w = Oa(je, t, ae, l, a, o, n, v);
|
|
5233
5234
|
if (w !== !1)
|
|
5234
|
-
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);
|
|
5235
5236
|
}
|
|
5236
5237
|
if (t.contains(ae))
|
|
5237
5238
|
return g(!1);
|
|
@@ -5254,7 +5255,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5254
5255
|
this._nulling();
|
|
5255
5256
|
return;
|
|
5256
5257
|
}
|
|
5257
|
-
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({
|
|
5258
5259
|
sortable: this,
|
|
5259
5260
|
name: "unchoose",
|
|
5260
5261
|
toEl: Ke,
|
|
@@ -5301,11 +5302,11 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5301
5302
|
}), this.save()))), this._nulling();
|
|
5302
5303
|
},
|
|
5303
5304
|
_nulling: function() {
|
|
5304
|
-
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;
|
|
5305
5306
|
var n = this.el;
|
|
5306
|
-
|
|
5307
|
+
Ga.forEach(function(t) {
|
|
5307
5308
|
n.contains(t) && (t.checked = !0);
|
|
5308
|
-
}),
|
|
5309
|
+
}), Ga.length = $o = Fo = 0;
|
|
5309
5310
|
},
|
|
5310
5311
|
handleEvent: function(n) {
|
|
5311
5312
|
switch (n.type) {
|
|
@@ -5370,7 +5371,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5370
5371
|
var a = this.options;
|
|
5371
5372
|
if (t === void 0)
|
|
5372
5373
|
return a[n];
|
|
5373
|
-
var l =
|
|
5374
|
+
var l = Sa.modifyOption(this, n, t);
|
|
5374
5375
|
typeof l < "u" ? a[n] = l : a[n] = t, n === "group" && Hr(a);
|
|
5375
5376
|
},
|
|
5376
5377
|
/**
|
|
@@ -5381,7 +5382,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5381
5382
|
var n = this.el;
|
|
5382
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) {
|
|
5383
5384
|
t.removeAttribute("draggable");
|
|
5384
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
5385
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Wa.splice(Wa.indexOf(this.el), 1), this.el = n = null;
|
|
5385
5386
|
},
|
|
5386
5387
|
_hideClone: function() {
|
|
5387
5388
|
if (!Jt) {
|
|
@@ -5403,9 +5404,9 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5403
5404
|
function Gc(e) {
|
|
5404
5405
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
5405
5406
|
}
|
|
5406
|
-
function
|
|
5407
|
+
function Oa(e, n, t, a, l, o, r, s) {
|
|
5407
5408
|
var i, u = e[vt], c = u.options.onMove, d;
|
|
5408
|
-
return window.CustomEvent && !Kt && !
|
|
5409
|
+
return window.CustomEvent && !Kt && !Ca ? i = new CustomEvent("move", {
|
|
5409
5410
|
bubbles: !0,
|
|
5410
5411
|
cancelable: !0
|
|
5411
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;
|
|
@@ -5427,10 +5428,10 @@ function Jc(e, n, t) {
|
|
|
5427
5428
|
function Qc(e, n, t, a, l, o, r, s) {
|
|
5428
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;
|
|
5429
5430
|
if (!r) {
|
|
5430
|
-
if (s &&
|
|
5431
|
+
if (s && Na < u * l) {
|
|
5431
5432
|
if (!na && (ta === 1 ? i > c + u * o / 2 : i < d - u * o / 2) && (na = !0), na)
|
|
5432
5433
|
C = !0;
|
|
5433
|
-
else if (ta === 1 ? i < c +
|
|
5434
|
+
else if (ta === 1 ? i < c + Na : i > d - Na)
|
|
5434
5435
|
return -ta;
|
|
5435
5436
|
} else if (i > c + u * (1 - l) / 2 && i < d - u * (1 - l) / 2)
|
|
5436
5437
|
return ed(n);
|
|
@@ -5446,13 +5447,13 @@ function td(e) {
|
|
|
5446
5447
|
return a.toString(36);
|
|
5447
5448
|
}
|
|
5448
5449
|
function nd(e) {
|
|
5449
|
-
|
|
5450
|
+
Ga.length = 0;
|
|
5450
5451
|
for (var n = e.getElementsByTagName("input"), t = n.length; t--; ) {
|
|
5451
5452
|
var a = n[t];
|
|
5452
|
-
a.checked &&
|
|
5453
|
+
a.checked && Ga.push(a);
|
|
5453
5454
|
}
|
|
5454
5455
|
}
|
|
5455
|
-
function
|
|
5456
|
+
function Va(e) {
|
|
5456
5457
|
return setTimeout(e, 0);
|
|
5457
5458
|
}
|
|
5458
5459
|
function Ho(e) {
|
|
@@ -5475,7 +5476,7 @@ we.utils = {
|
|
|
5475
5476
|
toggleClass: pt,
|
|
5476
5477
|
clone: Vr,
|
|
5477
5478
|
index: kt,
|
|
5478
|
-
nextTick:
|
|
5479
|
+
nextTick: Va,
|
|
5479
5480
|
cancelNextTick: Ho,
|
|
5480
5481
|
detectDirection: zr,
|
|
5481
5482
|
getChild: In,
|
|
@@ -5490,14 +5491,14 @@ we.mount = function() {
|
|
|
5490
5491
|
n[0].constructor === Array && (n = n[0]), n.forEach(function(a) {
|
|
5491
5492
|
if (!a.prototype || !a.prototype.constructor)
|
|
5492
5493
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));
|
|
5493
|
-
a.utils && (we.utils = Pt(Pt({}, we.utils), a.utils)),
|
|
5494
|
+
a.utils && (we.utils = Pt(Pt({}, we.utils), a.utils)), Sa.mount(a);
|
|
5494
5495
|
});
|
|
5495
5496
|
};
|
|
5496
5497
|
we.create = function(e, n) {
|
|
5497
5498
|
return new we(e, n);
|
|
5498
5499
|
};
|
|
5499
5500
|
we.version = Rc;
|
|
5500
|
-
var Ze = [], Gn, jo, qo = !1, _o, Ro,
|
|
5501
|
+
var Ze = [], Gn, jo, qo = !1, _o, Ro, Xa, Xn;
|
|
5501
5502
|
function ad() {
|
|
5502
5503
|
function e() {
|
|
5503
5504
|
this.defaults = {
|
|
@@ -5520,26 +5521,26 @@ function ad() {
|
|
|
5520
5521
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
|
5521
5522
|
},
|
|
5522
5523
|
drop: function() {
|
|
5523
|
-
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();
|
|
5524
5525
|
},
|
|
5525
5526
|
nulling: function() {
|
|
5526
|
-
|
|
5527
|
+
Xa = jo = Gn = qo = Xn = _o = Ro = null, Ze.length = 0;
|
|
5527
5528
|
},
|
|
5528
5529
|
_handleFallbackAutoScroll: function(t) {
|
|
5529
5530
|
this._handleAutoScroll(t, !0);
|
|
5530
5531
|
},
|
|
5531
5532
|
_handleAutoScroll: function(t, a) {
|
|
5532
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);
|
|
5533
|
-
if (
|
|
5534
|
+
if (Xa = t, a || this.options.forceAutoScrollFallback || Ca || Kt || Jn) {
|
|
5534
5535
|
Po(t, this.options, s, a);
|
|
5535
5536
|
var i = Qt(s, !0);
|
|
5536
5537
|
qo && (!Xn || o !== _o || r !== Ro) && (Xn && tr(), Xn = setInterval(function() {
|
|
5537
5538
|
var u = Qt(document.elementFromPoint(o, r), !0);
|
|
5538
|
-
u !== i && (i = u,
|
|
5539
|
+
u !== i && (i = u, Ua()), Po(t, l.options, u, a);
|
|
5539
5540
|
}, 10), _o = o, Ro = r);
|
|
5540
5541
|
} else {
|
|
5541
5542
|
if (!this.options.bubbleScroll || Qt(s, !0) === Rt()) {
|
|
5542
|
-
|
|
5543
|
+
Ua();
|
|
5543
5544
|
return;
|
|
5544
5545
|
}
|
|
5545
5546
|
Po(t, this.options, Qt(s, !1), !1);
|
|
@@ -5550,7 +5551,7 @@ function ad() {
|
|
|
5550
5551
|
initializeByDefault: !0
|
|
5551
5552
|
});
|
|
5552
5553
|
}
|
|
5553
|
-
function
|
|
5554
|
+
function Ua() {
|
|
5554
5555
|
Ze.forEach(function(e) {
|
|
5555
5556
|
clearInterval(e.pid);
|
|
5556
5557
|
}), Ze = [];
|
|
@@ -5561,7 +5562,7 @@ function tr() {
|
|
|
5561
5562
|
var Po = Lr(function(e, n, t, a) {
|
|
5562
5563
|
if (n.scroll) {
|
|
5563
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;
|
|
5564
|
-
jo !== t && (jo = t,
|
|
5565
|
+
jo !== t && (jo = t, Ua(), Gn = n.scroll, c = n.scrollFn, Gn === !0 && (Gn = Qt(t, !0)));
|
|
5565
5566
|
var d = 0, C = Gn;
|
|
5566
5567
|
do {
|
|
5567
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;
|
|
@@ -5571,9 +5572,9 @@ var Po = Lr(function(e, n, t, a) {
|
|
|
5571
5572
|
for (var b = 0; b <= d; b++)
|
|
5572
5573
|
Ze[b] || (Ze[b] = {});
|
|
5573
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() {
|
|
5574
|
-
a && this.layer === 0 && we.active._onTouchMove(
|
|
5575
|
+
a && this.layer === 0 && we.active._onTouchMove(Xa);
|
|
5575
5576
|
var h = Ze[this.layer].vy ? Ze[this.layer].vy * s : 0, v = Ze[this.layer].vx ? Ze[this.layer].vx * s : 0;
|
|
5576
|
-
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);
|
|
5577
5578
|
}).bind({
|
|
5578
5579
|
layer: d
|
|
5579
5580
|
}), 24))), d++;
|
|
@@ -5901,7 +5902,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5901
5902
|
removeByIndex: b,
|
|
5902
5903
|
updateDataAtIndex: h
|
|
5903
5904
|
} = gd(o, y, a, l);
|
|
5904
|
-
return
|
|
5905
|
+
return ua(() => {
|
|
5905
5906
|
P();
|
|
5906
5907
|
}), Qe(() => {
|
|
5907
5908
|
H.value = document.querySelector("#" + d.value), y();
|
|
@@ -5934,7 +5935,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5934
5935
|
key: L(p),
|
|
5935
5936
|
class: rt(L(nr))
|
|
5936
5937
|
}, [
|
|
5937
|
-
(_(!0), de(We, null, en(L(E), (j,
|
|
5938
|
+
(_(!0), de(We, null, en(L(E), (j, J) => (_(), de(We, {
|
|
5938
5939
|
key: j.key
|
|
5939
5940
|
}, [
|
|
5940
5941
|
e.chips ? (_(), te(mn, {
|
|
@@ -5981,8 +5982,8 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5981
5982
|
]),
|
|
5982
5983
|
Me("div", {
|
|
5983
5984
|
class: rt(["a-sortable-widget__item", {
|
|
5984
|
-
"a-sortable-widget__item--last":
|
|
5985
|
-
"a-sortable-widget__item--first":
|
|
5985
|
+
"a-sortable-widget__item--last": J + 1 === L(E).length,
|
|
5986
|
+
"a-sortable-widget__item--first": J === 0
|
|
5986
5987
|
}])
|
|
5987
5988
|
}, [
|
|
5988
5989
|
x(Oe, {
|
|
@@ -6050,9 +6051,9 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
6050
6051
|
activator: "parent",
|
|
6051
6052
|
text: "More options"
|
|
6052
6053
|
}),
|
|
6053
|
-
x(
|
|
6054
|
+
x(sa, { activator: "parent" }, {
|
|
6054
6055
|
default: I(() => [
|
|
6055
|
-
x(
|
|
6056
|
+
x(za, { density: "compact" }, {
|
|
6056
6057
|
default: I(() => [
|
|
6057
6058
|
e.showAddAfterButton ? (_(), te(mt, {
|
|
6058
6059
|
key: 0,
|
|
@@ -6098,7 +6099,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
6098
6099
|
_: 1
|
|
6099
6100
|
})) : ve("", !0)
|
|
6100
6101
|
]),
|
|
6101
|
-
x(
|
|
6102
|
+
x(fa, {
|
|
6102
6103
|
modelValue: L(T),
|
|
6103
6104
|
"onUpdate:modelValue": w[2] || (w[2] = (j) => Za(T) ? T.value = j : null),
|
|
6104
6105
|
width: 500
|
|
@@ -6114,7 +6115,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
6114
6115
|
]),
|
|
6115
6116
|
_: 1
|
|
6116
6117
|
}),
|
|
6117
|
-
x(
|
|
6118
|
+
x(da, null, {
|
|
6118
6119
|
default: I(() => [
|
|
6119
6120
|
x($n),
|
|
6120
6121
|
x(D, {
|
|
@@ -6158,8 +6159,8 @@ function Ed() {
|
|
|
6158
6159
|
defaultConfig: !1,
|
|
6159
6160
|
data: [],
|
|
6160
6161
|
position: 0,
|
|
6161
|
-
createdAt:
|
|
6162
|
-
modifiedAt:
|
|
6162
|
+
createdAt: ia(),
|
|
6163
|
+
modifiedAt: ia(),
|
|
6163
6164
|
createdBy: null,
|
|
6164
6165
|
modifiedBy: null,
|
|
6165
6166
|
_resourceName: "userAdminConfig",
|
|
@@ -6198,12 +6199,12 @@ const xd = {
|
|
|
6198
6199
|
required: f,
|
|
6199
6200
|
maxLength: m(100)
|
|
6200
6201
|
}
|
|
6201
|
-
}, T =
|
|
6202
|
+
}, T = ra(g, { customName: i }, { $stopPropagation: !0 }), P = {
|
|
6202
6203
|
itemEdit: {
|
|
6203
6204
|
required: f,
|
|
6204
6205
|
maxLength: m(100)
|
|
6205
6206
|
}
|
|
6206
|
-
}, A =
|
|
6207
|
+
}, A = ra(P, { itemEdit: p }, { $stopPropagation: !0 }), k = $r(), {
|
|
6207
6208
|
createUserAdminConfig: $,
|
|
6208
6209
|
useFetchUserAdminConfigList: H,
|
|
6209
6210
|
updateUserAdminConfigPositions: M,
|
|
@@ -6223,7 +6224,7 @@ const xd = {
|
|
|
6223
6224
|
}, { serializeFilters: D } = Tr(o, l), B = t.system + "_" + t.subject, j = async () => {
|
|
6224
6225
|
d.value = !0, y.value = !1;
|
|
6225
6226
|
const Z = v(t.system);
|
|
6226
|
-
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 = {
|
|
6227
6228
|
filter: D(o, r, !1),
|
|
6228
6229
|
datatableHiddenColumns: u.value && t.datatableHiddenColumns ? t.datatableHiddenColumns : void 0,
|
|
6229
6230
|
sortBy: c.value && r.value.sortBy ? r.value.sortBy : void 0
|
|
@@ -6260,7 +6261,7 @@ const xd = {
|
|
|
6260
6261
|
} finally {
|
|
6261
6262
|
d.value = !1;
|
|
6262
6263
|
}
|
|
6263
|
-
},
|
|
6264
|
+
}, J = () => {
|
|
6264
6265
|
if (s.value === "add") {
|
|
6265
6266
|
if (T.value.$touch(), T.value.$invalid) {
|
|
6266
6267
|
b();
|
|
@@ -6315,7 +6316,7 @@ const xd = {
|
|
|
6315
6316
|
y.value = !1, s.value === "manage" && he();
|
|
6316
6317
|
}), (Z, ee) => {
|
|
6317
6318
|
const Fe = Dn("ABtnTertiary"), X = Dn("ABtnPrimary");
|
|
6318
|
-
return _(), te(
|
|
6319
|
+
return _(), te(fa, {
|
|
6319
6320
|
"model-value": !0,
|
|
6320
6321
|
width: 500
|
|
6321
6322
|
}, {
|
|
@@ -6467,7 +6468,7 @@ const xd = {
|
|
|
6467
6468
|
]),
|
|
6468
6469
|
_: 1
|
|
6469
6470
|
}),
|
|
6470
|
-
x(
|
|
6471
|
+
x(da, null, {
|
|
6471
6472
|
default: I(() => [
|
|
6472
6473
|
x($n),
|
|
6473
6474
|
x(Fe, {
|
|
@@ -6482,7 +6483,7 @@ const xd = {
|
|
|
6482
6483
|
x(X, {
|
|
6483
6484
|
"data-cy": "button-confirm",
|
|
6484
6485
|
loading: d.value,
|
|
6485
|
-
onClick: De(
|
|
6486
|
+
onClick: De(J, ["stop"])
|
|
6486
6487
|
}, {
|
|
6487
6488
|
default: I(() => [
|
|
6488
6489
|
ge(ie(s.value === "add" ? L(V)("common.button.add") : L(V)("common.filter.bookmark.saveBookmarkOrder")), 1)
|
|
@@ -6803,7 +6804,7 @@ const xd = {
|
|
|
6803
6804
|
await V(v), v.size > 0 && (d(Array.from(v)), c());
|
|
6804
6805
|
},
|
|
6805
6806
|
{ immediate: !0 }
|
|
6806
|
-
), (b, h) => (_(), te(
|
|
6807
|
+
), (b, h) => (_(), te(ca, {
|
|
6807
6808
|
modelValue: E.value,
|
|
6808
6809
|
"onUpdate:modelValue": h[0] || (h[0] = (v) => E.value = v),
|
|
6809
6810
|
search: l.value,
|
|
@@ -7102,7 +7103,7 @@ const xd = {
|
|
|
7102
7103
|
e.hideMore ? ve("", !0) : (_(), de("div", Yd, [
|
|
7103
7104
|
(_(), te(or(e.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
7104
7105
|
default: I(() => [
|
|
7105
|
-
|
|
7106
|
+
la(Me("div", {
|
|
7106
7107
|
class: rt({ "mt-6 pa-4 system-border-a": !e.alwaysVisible })
|
|
7107
7108
|
}, [
|
|
7108
7109
|
ke(P.$slots, "detail", {}, () => [
|
|
@@ -7141,7 +7142,7 @@ const xd = {
|
|
|
7141
7142
|
}, 8, ["name"]));
|
|
7142
7143
|
}
|
|
7143
7144
|
}), Nv = (e, n, t = {}, a, l, o = {}) => new Promise((r, s) => {
|
|
7144
|
-
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)));
|
|
7145
7146
|
});
|
|
7146
7147
|
function zd(e, n = 769) {
|
|
7147
7148
|
const { width: t } = Bs(e), a = R(() => t.value > 0 && t.value < n);
|
|
@@ -7373,7 +7374,7 @@ function Jr(e) {
|
|
|
7373
7374
|
}), v = R(() => h.value.size > 0), w = (z, W, ue = !1) => {
|
|
7374
7375
|
const { invalid: Y, warning: oe } = b(z, W);
|
|
7375
7376
|
return Y ? P.value ? "invalid" : ue ? null : M(W) || K(W) ? "invalid" : null : oe ? "warning" : null;
|
|
7376
|
-
}, 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 = () => {
|
|
7377
7378
|
const z = [], W = [], ue = [];
|
|
7378
7379
|
for (const Y of e.get()) {
|
|
7379
7380
|
const oe = t(Y), pe = y.value.get(oe);
|
|
@@ -7401,7 +7402,7 @@ function Jr(e) {
|
|
|
7401
7402
|
isUnsaved: K,
|
|
7402
7403
|
rowState: w,
|
|
7403
7404
|
validateAll: D,
|
|
7404
|
-
getPayload:
|
|
7405
|
+
getPayload: J,
|
|
7405
7406
|
getChanges: le,
|
|
7406
7407
|
commit: re,
|
|
7407
7408
|
reset: Se,
|
|
@@ -7484,7 +7485,7 @@ function tf(e, n) {
|
|
|
7484
7485
|
}, E = (b) => {
|
|
7485
7486
|
const h = [], v = n.expandedKeys?.value;
|
|
7486
7487
|
let w = 0;
|
|
7487
|
-
const D = (B, j,
|
|
7488
|
+
const D = (B, j, J) => {
|
|
7488
7489
|
for (let le = 0; le < B.length; le++) {
|
|
7489
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;
|
|
7490
7491
|
h.push({
|
|
@@ -7494,8 +7495,8 @@ function tf(e, n) {
|
|
|
7494
7495
|
position: re.data[l],
|
|
7495
7496
|
node: re,
|
|
7496
7497
|
depth: j,
|
|
7497
|
-
parent:
|
|
7498
|
-
parentKey:
|
|
7498
|
+
parent: J?.data ?? null,
|
|
7499
|
+
parentKey: J ? i(J.data) : null,
|
|
7499
7500
|
childrenCount: he,
|
|
7500
7501
|
hasChildren: ne,
|
|
7501
7502
|
childrenAllowed: Ce,
|
|
@@ -7538,8 +7539,8 @@ function tf(e, n) {
|
|
|
7538
7539
|
return f(Se, Ce, D), D.data[o] = re ? i(re.data) : null, d(Se), e.value = v, v;
|
|
7539
7540
|
}
|
|
7540
7541
|
}
|
|
7541
|
-
const
|
|
7542
|
-
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;
|
|
7543
7544
|
}, T = (b) => {
|
|
7544
7545
|
const h = Ee(e.value), { node: v, parent: w } = c(b, h.children);
|
|
7545
7546
|
if (!v) return h;
|
|
@@ -7553,10 +7554,10 @@ function tf(e, n) {
|
|
|
7553
7554
|
if (!w) return null;
|
|
7554
7555
|
const B = D ? D.children : b.children, j = B.indexOf(w);
|
|
7555
7556
|
if (j === -1) return null;
|
|
7556
|
-
const
|
|
7557
|
-
if (
|
|
7557
|
+
const J = v(B, j);
|
|
7558
|
+
if (J === null || J === j) return null;
|
|
7558
7559
|
const [le] = B.splice(j, 1);
|
|
7559
|
-
return B.splice(
|
|
7560
|
+
return B.splice(J, 0, le), d(B), b;
|
|
7560
7561
|
}, k = (b) => {
|
|
7561
7562
|
const h = Ee(e.value), v = A(h, b, (w, D) => D > 0 ? D - 1 : null);
|
|
7562
7563
|
return v && (e.value = v), v;
|
|
@@ -7576,15 +7577,15 @@ function tf(e, n) {
|
|
|
7576
7577
|
if (B <= 0) return null;
|
|
7577
7578
|
const j = D[B - 1];
|
|
7578
7579
|
if (F(j.children)) return null;
|
|
7579
|
-
const
|
|
7580
|
-
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);
|
|
7581
7582
|
}, K = (b) => {
|
|
7582
7583
|
const h = Ee(e.value), { node: v, parent: w } = c(b, h.children);
|
|
7583
7584
|
if (!v || !w) return null;
|
|
7584
7585
|
const { parent: D } = c(i(w.data), h.children), B = D ? D.children : h.children, j = B.indexOf(w);
|
|
7585
7586
|
if (j === -1) return null;
|
|
7586
|
-
const
|
|
7587
|
-
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);
|
|
7588
7589
|
}, V = (b, h) => {
|
|
7589
7590
|
const v = (w, D) => {
|
|
7590
7591
|
for (const B of w) {
|
|
@@ -7622,13 +7623,13 @@ function tf(e, n) {
|
|
|
7622
7623
|
};
|
|
7623
7624
|
if (i(D.data) === h || ee(D)) return null;
|
|
7624
7625
|
}
|
|
7625
|
-
let j,
|
|
7626
|
+
let j, J = null, le = 0;
|
|
7626
7627
|
if (h === null)
|
|
7627
7628
|
j = w.children, le = 0;
|
|
7628
7629
|
else {
|
|
7629
7630
|
const { node: ee } = c(h, w.children);
|
|
7630
7631
|
if (!ee || F(ee.children)) return null;
|
|
7631
|
-
j = ee.children,
|
|
7632
|
+
j = ee.children, J = ee, le = V(w, h) + 1;
|
|
7632
7633
|
}
|
|
7633
7634
|
const re = u(D);
|
|
7634
7635
|
if (le + re > s) return null;
|
|
@@ -7636,7 +7637,7 @@ function tf(e, n) {
|
|
|
7636
7637
|
if (Ce === -1) return null;
|
|
7637
7638
|
const ne = Se === j, [he] = Se.splice(Ce, 1);
|
|
7638
7639
|
let Z = v;
|
|
7639
|
-
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;
|
|
7640
7641
|
},
|
|
7641
7642
|
recalculatePositions: y,
|
|
7642
7643
|
calculateSubtreeDepth: u
|
|
@@ -7656,9 +7657,9 @@ const nf = (e) => {
|
|
|
7656
7657
|
t(e.children);
|
|
7657
7658
|
};
|
|
7658
7659
|
function af(e) {
|
|
7659
|
-
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({
|
|
7660
7661
|
get: () => e.get(),
|
|
7661
|
-
set: (
|
|
7662
|
+
set: (Q) => e.set(Q)
|
|
7662
7663
|
}), c = tf(u, {
|
|
7663
7664
|
keyField: a,
|
|
7664
7665
|
// Pass the controller's keyOf so tree ops resolve keys identically to
|
|
@@ -7668,42 +7669,42 @@ function af(e) {
|
|
|
7668
7669
|
parentField: i,
|
|
7669
7670
|
positionMultiplier: s,
|
|
7670
7671
|
maxDepth: e.maxDepth
|
|
7671
|
-
}), d = R(() => nf(e.get())), C = c.viewItems, y = R(() => En(e.dirtyExclude) ?? []), E = (
|
|
7672
|
-
const ce = { ...
|
|
7672
|
+
}), d = R(() => nf(e.get())), C = c.viewItems, y = R(() => En(e.dirtyExclude) ?? []), E = (Q) => {
|
|
7673
|
+
const ce = { ...Q };
|
|
7673
7674
|
o && delete ce[r], delete ce[i];
|
|
7674
7675
|
for (const xe of y.value) delete ce[xe];
|
|
7675
7676
|
return JSON.stringify(ce);
|
|
7676
|
-
}, 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) => {
|
|
7677
7678
|
const ce = /* @__PURE__ */ new Map(), xe = /* @__PURE__ */ new Map(), Le = (Ae, ze) => {
|
|
7678
7679
|
for (const nt of Ae) {
|
|
7679
7680
|
const at = t(nt.data);
|
|
7680
7681
|
ce.set(at, E(nt.data)), xe.set(at, ze), nt.children && nt.children.length && Le(nt.children, at);
|
|
7681
7682
|
}
|
|
7682
7683
|
};
|
|
7683
|
-
Le(
|
|
7684
|
+
Le(Q.children, null), p.value = ce, f.value = xe, m.value = g(Q);
|
|
7684
7685
|
};
|
|
7685
7686
|
T(e.get()), _e(
|
|
7686
7687
|
y,
|
|
7687
7688
|
() => {
|
|
7688
7689
|
if (!m.value) return;
|
|
7689
|
-
const
|
|
7690
|
-
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;
|
|
7691
7692
|
},
|
|
7692
7693
|
{ flush: "sync" }
|
|
7693
7694
|
);
|
|
7694
|
-
const P = U(!1), A = qt(/* @__PURE__ */ new Map()), k = (
|
|
7695
|
+
const P = U(!1), A = qt(/* @__PURE__ */ new Map()), k = (Q, ce, xe) => {
|
|
7695
7696
|
if (e.isDirty) {
|
|
7696
7697
|
const Ae = K(ce);
|
|
7697
|
-
return e.isDirty(
|
|
7698
|
+
return e.isDirty(Q.data, Ae);
|
|
7698
7699
|
}
|
|
7699
7700
|
const Le = p.value.get(ce);
|
|
7700
|
-
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));
|
|
7701
7702
|
}, $ = U(/* @__PURE__ */ new Map()), H = U(/* @__PURE__ */ new Set()), M = U(/* @__PURE__ */ new Set());
|
|
7702
7703
|
_e(
|
|
7703
7704
|
() => e.get(),
|
|
7704
|
-
(
|
|
7705
|
+
(Q) => {
|
|
7705
7706
|
const ce = /* @__PURE__ */ new Set();
|
|
7706
|
-
Xt(
|
|
7707
|
+
Xt(Q, (Ae) => {
|
|
7707
7708
|
const ze = t(Ae.data);
|
|
7708
7709
|
if (ce.add(ze), !p.value.has(ze) && !$.value.has(ze) && $.value.set(ze, E(Ae.data)), !H.value.has(ze)) {
|
|
7709
7710
|
const nt = p.value.get(ze) ?? $.value.get(ze);
|
|
@@ -7719,59 +7720,59 @@ function af(e) {
|
|
|
7719
7720
|
},
|
|
7720
7721
|
{ immediate: !0, deep: !0 }
|
|
7721
7722
|
);
|
|
7722
|
-
const N = (
|
|
7723
|
+
const N = (Q) => H.value.has(Q), K = (Q) => {
|
|
7723
7724
|
if (!m.value) return;
|
|
7724
7725
|
let ce;
|
|
7725
7726
|
return Xt(m.value, (xe) => {
|
|
7726
|
-
ce === void 0 && t(xe.data) ===
|
|
7727
|
+
ce === void 0 && t(xe.data) === Q && (ce = xe.data);
|
|
7727
7728
|
}), ce;
|
|
7728
|
-
}, V = (
|
|
7729
|
+
}, V = (Q) => {
|
|
7729
7730
|
let ce = !1;
|
|
7730
7731
|
return Xt(e.get(), (xe) => {
|
|
7731
|
-
!ce && t(xe.data) ===
|
|
7732
|
+
!ce && t(xe.data) === Q && (ce = !0);
|
|
7732
7733
|
}), ce;
|
|
7733
7734
|
}, O = R(() => {
|
|
7734
|
-
const
|
|
7735
|
+
const Q = /* @__PURE__ */ new Set(), ce = (xe, Le) => {
|
|
7735
7736
|
for (const Ae of xe) {
|
|
7736
7737
|
const ze = t(Ae.data);
|
|
7737
|
-
k(Ae, ze, Le) &&
|
|
7738
|
+
k(Ae, ze, Le) && Q.add(ze), Ae.children && Ae.children.length && ce(Ae.children, ze);
|
|
7738
7739
|
}
|
|
7739
7740
|
};
|
|
7740
|
-
return ce(e.get().children, null),
|
|
7741
|
-
}), b = (
|
|
7742
|
-
let
|
|
7741
|
+
return ce(e.get().children, null), Q;
|
|
7742
|
+
}), b = (Q) => O.value.has(Q), h = R(() => {
|
|
7743
|
+
let Q = !1;
|
|
7743
7744
|
return Xt(e.get(), (ce) => {
|
|
7744
|
-
ce.meta.dirty && (
|
|
7745
|
-
}),
|
|
7745
|
+
ce.meta.dirty && (Q = !0);
|
|
7746
|
+
}), Q;
|
|
7746
7747
|
}), v = R(
|
|
7747
7748
|
() => O.value.size > 0 || M.value.size > 0 || h.value
|
|
7748
7749
|
), w = R(() => {
|
|
7749
|
-
const
|
|
7750
|
-
for (const ce of M.value)
|
|
7751
|
-
return
|
|
7752
|
-
}), 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) => {
|
|
7753
7754
|
const xe = A.get(ce);
|
|
7754
7755
|
if (xe) return { invalid: !xe(), warning: !1 };
|
|
7755
7756
|
if (!e.validate) return { invalid: !1, warning: !1 };
|
|
7756
|
-
const Le = e.validate(
|
|
7757
|
+
const Le = e.validate(Q);
|
|
7757
7758
|
return typeof Le == "boolean" ? { invalid: !Le, warning: !1 } : { invalid: !Le.valid, warning: Le.valid && Le.state === "warning" };
|
|
7758
7759
|
}, B = R(() => {
|
|
7759
|
-
const
|
|
7760
|
+
const Q = /* @__PURE__ */ new Set();
|
|
7760
7761
|
return Xt(e.get(), (ce) => {
|
|
7761
7762
|
const xe = t(ce.data);
|
|
7762
|
-
D(ce.data, xe).invalid &&
|
|
7763
|
-
}),
|
|
7764
|
-
}), j = R(() => B.value.size > 0),
|
|
7765
|
-
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);
|
|
7766
7767
|
return Le ? P.value ? "invalid" : xe ? null : N(ce) || b(ce) ? "invalid" : null : Ae ? "warning" : null;
|
|
7767
7768
|
}, le = () => (P.value = !0, B.value.size === 0), re = () => {
|
|
7768
|
-
const
|
|
7769
|
+
const Q = [], ce = (xe, Le) => {
|
|
7769
7770
|
for (const Ae of xe) {
|
|
7770
7771
|
const ze = { ...Ae.data };
|
|
7771
|
-
ze[i] = Le,
|
|
7772
|
+
ze[i] = Le, Q.push(ze), Ae.children && Ae.children.length && ce(Ae.children, t(Ae.data));
|
|
7772
7773
|
}
|
|
7773
7774
|
};
|
|
7774
|
-
return ce(e.get().children, null),
|
|
7775
|
+
return ce(e.get().children, null), Q;
|
|
7775
7776
|
};
|
|
7776
7777
|
return {
|
|
7777
7778
|
items: d,
|
|
@@ -7781,15 +7782,15 @@ function af(e) {
|
|
|
7781
7782
|
hasErrors: j,
|
|
7782
7783
|
invalidKeys: B,
|
|
7783
7784
|
isUnsaved: b,
|
|
7784
|
-
rowState:
|
|
7785
|
+
rowState: J,
|
|
7785
7786
|
validateAll: le,
|
|
7786
7787
|
getPayload: () => e.payload ? e.payload(re()) : re(),
|
|
7787
7788
|
getChanges: () => {
|
|
7788
|
-
const
|
|
7789
|
+
const Q = [], ce = [], xe = [], Le = [], Ae = re(), ze = /* @__PURE__ */ new Map();
|
|
7789
7790
|
for (const at of Ae) ze.set(t(at), at);
|
|
7790
7791
|
Xt(e.get(), (at) => {
|
|
7791
7792
|
const Nt = t(at.data), an = ze.get(Nt) ?? at.data, xt = p.value.get(Nt);
|
|
7792
|
-
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)) {
|
|
7793
7794
|
const hn = f.value.get(Nt) ?? null, Ot = an[i];
|
|
7794
7795
|
(hn ?? null) !== (Ot ?? null) && Le.push(an);
|
|
7795
7796
|
}
|
|
@@ -7799,51 +7800,51 @@ function af(e) {
|
|
|
7799
7800
|
const Nt = K(at);
|
|
7800
7801
|
Nt !== void 0 && nt.push(Nt);
|
|
7801
7802
|
}
|
|
7802
|
-
return { added:
|
|
7803
|
+
return { added: Q, updated: ce, moved: xe, deleted: nt, reparented: Le };
|
|
7803
7804
|
},
|
|
7804
|
-
commit: (
|
|
7805
|
-
const ce =
|
|
7805
|
+
commit: (Q) => {
|
|
7806
|
+
const ce = Q ?? e.get(), xe = e.normalizeSaved ? e.normalizeSaved(ce) : ce, Le = g(xe);
|
|
7806
7807
|
Xt(Le, (Ae) => {
|
|
7807
7808
|
const ze = K(t(Ae.data)), nt = e.commitKey ? e.commitKey(Ae.data, ze) : t(Ae.data);
|
|
7808
7809
|
nt == null && n && (Ae.data[a] = Ko()), Ae.meta.dirty = !1;
|
|
7809
7810
|
}), e.set(Le), T(Le), $.value = /* @__PURE__ */ new Map(), H.value = /* @__PURE__ */ new Set(), M.value = /* @__PURE__ */ new Set(), P.value = !1;
|
|
7810
7811
|
},
|
|
7811
|
-
reset: (
|
|
7812
|
-
const ce =
|
|
7812
|
+
reset: (Q) => {
|
|
7813
|
+
const ce = Q ?? (m.value ? g(m.value) : e.get());
|
|
7813
7814
|
e.set(ce), $.value = /* @__PURE__ */ new Map(), H.value = /* @__PURE__ */ new Set(), M.value = /* @__PURE__ */ new Set(), P.value = !1;
|
|
7814
7815
|
},
|
|
7815
|
-
addItem: (
|
|
7816
|
-
const xe =
|
|
7816
|
+
addItem: (Q, ce) => {
|
|
7817
|
+
const xe = Q ?? e.factory?.();
|
|
7817
7818
|
xe !== void 0 && c.addItem(xe, ce);
|
|
7818
7819
|
},
|
|
7819
|
-
addAfter: (
|
|
7820
|
+
addAfter: (Q, ce, xe = !0) => {
|
|
7820
7821
|
const Le = ce ?? e.factory?.();
|
|
7821
|
-
Le !== void 0 && c.addItem(Le, { afterId:
|
|
7822
|
+
Le !== void 0 && c.addItem(Le, { afterId: Q, childrenAllowed: xe });
|
|
7822
7823
|
},
|
|
7823
|
-
addChild: (
|
|
7824
|
+
addChild: (Q, ce, xe = !0) => {
|
|
7824
7825
|
const Le = ce ?? e.factory?.();
|
|
7825
|
-
Le !== void 0 && c.addItem(Le, { parentId:
|
|
7826
|
+
Le !== void 0 && c.addItem(Le, { parentId: Q, childrenAllowed: xe });
|
|
7826
7827
|
},
|
|
7827
|
-
updateItem: (
|
|
7828
|
-
c.updateItem(
|
|
7828
|
+
updateItem: (Q, ce, xe = !0) => {
|
|
7829
|
+
c.updateItem(Q, ce, xe);
|
|
7829
7830
|
},
|
|
7830
|
-
deleteItem: (
|
|
7831
|
-
p.value.has(
|
|
7831
|
+
deleteItem: (Q, ce) => {
|
|
7832
|
+
p.value.has(Q) && ce?.trackDeleted !== !1 && V(Q) && M.value.add(Q), c.deleteItem(Q);
|
|
7832
7833
|
},
|
|
7833
|
-
restoreDeleted: (
|
|
7834
|
-
M.value.delete(
|
|
7834
|
+
restoreDeleted: (Q) => {
|
|
7835
|
+
M.value.delete(Q);
|
|
7835
7836
|
},
|
|
7836
|
-
moveUp: (
|
|
7837
|
-
moveDown: (
|
|
7838
|
-
moveTop: (
|
|
7839
|
-
moveBottom: (
|
|
7840
|
-
indent: (
|
|
7841
|
-
outdent: (
|
|
7842
|
-
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,
|
|
7843
7844
|
recalculatePositions: () => {
|
|
7844
7845
|
e.set(c.recalculatePositions(e.get()));
|
|
7845
7846
|
},
|
|
7846
|
-
registerValidity: (
|
|
7847
|
+
registerValidity: (Q, ce) => (A.set(Q, ce), () => A.delete(Q)),
|
|
7847
7848
|
findNode: c.findNode,
|
|
7848
7849
|
calculateSubtreeDepth: c.calculateSubtreeDepth
|
|
7849
7850
|
};
|
|
@@ -7863,7 +7864,7 @@ function Qr() {
|
|
|
7863
7864
|
return u.boundUid !== null && i !== null && u.boundUid !== i && console.warn(
|
|
7864
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).`
|
|
7865
7866
|
), u.boundUid = i, u.live.value = r, u.handle;
|
|
7866
|
-
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));
|
|
7867
7868
|
return n.set(o, { scope: c, live: d, handle: C, children: null, boundUid: i }), C;
|
|
7868
7869
|
},
|
|
7869
7870
|
release(o, r, s) {
|
|
@@ -7928,7 +7929,7 @@ function rf(e, n) {
|
|
|
7928
7929
|
}),
|
|
7929
7930
|
a
|
|
7930
7931
|
);
|
|
7931
|
-
return $t() &&
|
|
7932
|
+
return $t() && ua(
|
|
7932
7933
|
() => t.release(e, a, es)
|
|
7933
7934
|
), { handle: l, childScope: t.childScope(e) };
|
|
7934
7935
|
}
|
|
@@ -7951,7 +7952,7 @@ function Vv(e, n) {
|
|
|
7951
7952
|
}),
|
|
7952
7953
|
a
|
|
7953
7954
|
);
|
|
7954
|
-
return $t() &&
|
|
7955
|
+
return $t() && ua(
|
|
7955
7956
|
() => t.release(e, a, es)
|
|
7956
7957
|
), { handle: l, childScope: t.childScope(e) };
|
|
7957
7958
|
}
|
|
@@ -7990,7 +7991,7 @@ function cf(e) {
|
|
|
7990
7991
|
const l = e();
|
|
7991
7992
|
return Array.isArray(l) ? l : [l];
|
|
7992
7993
|
});
|
|
7993
|
-
n.register(t, a),
|
|
7994
|
+
n.register(t, a), ua(() => n.unregister(t));
|
|
7994
7995
|
}
|
|
7995
7996
|
function df(e) {
|
|
7996
7997
|
const n = U(!1), t = U(null), a = U(!1), l = U(null), o = async (u) => {
|
|
@@ -8083,7 +8084,7 @@ function vf(e) {
|
|
|
8083
8084
|
), l || console.warn(
|
|
8084
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."
|
|
8085
8086
|
);
|
|
8086
|
-
const o =
|
|
8087
|
+
const o = ra(
|
|
8087
8088
|
{ listEditor: { valid: () => !n.value } },
|
|
8088
8089
|
{ listEditor: n },
|
|
8089
8090
|
{ $scope: t }
|
|
@@ -8147,7 +8148,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8147
8148
|
emits: /* @__PURE__ */ tt(["confirm", "cancel"], ["update:modelValue"]),
|
|
8148
8149
|
setup(e) {
|
|
8149
8150
|
const n = ct(e, "modelValue");
|
|
8150
|
-
return (t, a) => (_(), te(
|
|
8151
|
+
return (t, a) => (_(), te(fa, {
|
|
8151
8152
|
modelValue: n.value,
|
|
8152
8153
|
"onUpdate:modelValue": a[2] || (a[2] = (l) => n.value = l),
|
|
8153
8154
|
"max-width": "420",
|
|
@@ -8180,7 +8181,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8180
8181
|
]),
|
|
8181
8182
|
_: 1
|
|
8182
8183
|
}),
|
|
8183
|
-
x(
|
|
8184
|
+
x(da, null, {
|
|
8184
8185
|
default: I(() => [
|
|
8185
8186
|
x($n),
|
|
8186
8187
|
x(Pe, {
|
|
@@ -8243,7 +8244,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8243
8244
|
}, c = () => {
|
|
8244
8245
|
l.value = !1;
|
|
8245
8246
|
};
|
|
8246
|
-
return (d, C) => (_(), te(
|
|
8247
|
+
return (d, C) => (_(), te(fa, {
|
|
8247
8248
|
modelValue: l.value,
|
|
8248
8249
|
"onUpdate:modelValue": C[1] || (C[1] = (y) => l.value = y),
|
|
8249
8250
|
"max-width": "420",
|
|
@@ -8261,7 +8262,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8261
8262
|
x(Qa, null, {
|
|
8262
8263
|
default: I(() => [
|
|
8263
8264
|
e.itemLabel ? (_(), de("p", gf, ie(L(o)("common.sortable.moveToPosition.itemDescription", { label: e.itemLabel })), 1)) : ve("", !0),
|
|
8264
|
-
x(
|
|
8265
|
+
x(ma, {
|
|
8265
8266
|
modelValue: r.value,
|
|
8266
8267
|
"onUpdate:modelValue": C[0] || (C[0] = (y) => r.value = y),
|
|
8267
8268
|
modelModifiers: { number: !0 },
|
|
@@ -8277,12 +8278,12 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8277
8278
|
autofocus: "",
|
|
8278
8279
|
density: "comfortable",
|
|
8279
8280
|
variant: "outlined",
|
|
8280
|
-
onKeydown:
|
|
8281
|
+
onKeydown: Ya(De(u, ["prevent"]), ["enter"])
|
|
8281
8282
|
}, null, 8, ["modelValue", "max", "label", "hint", "error", "onKeydown"])
|
|
8282
8283
|
]),
|
|
8283
8284
|
_: 1
|
|
8284
8285
|
}),
|
|
8285
|
-
x(
|
|
8286
|
+
x(da, null, {
|
|
8286
8287
|
default: I(() => [
|
|
8287
8288
|
x($n),
|
|
8288
8289
|
x(Pe, {
|
|
@@ -8509,14 +8510,14 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8509
8510
|
() => m.retainOwners(P.value.map((S) => S.key)),
|
|
8510
8511
|
{ flush: "post" }
|
|
8511
8512
|
);
|
|
8512
|
-
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"]), {
|
|
8513
8514
|
editingKeys: h,
|
|
8514
8515
|
editingSnapshots: v,
|
|
8515
8516
|
clearEditing: w,
|
|
8516
8517
|
beginEdit: D,
|
|
8517
8518
|
cancelEdit: B,
|
|
8518
8519
|
commitEdit: j,
|
|
8519
|
-
closeEdit:
|
|
8520
|
+
closeEdit: J,
|
|
8520
8521
|
requestAutoOpen: le
|
|
8521
8522
|
} = ff({
|
|
8522
8523
|
rowsContainer: V,
|
|
@@ -8623,14 +8624,14 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8623
8624
|
const S = me(ar, null);
|
|
8624
8625
|
if (S) {
|
|
8625
8626
|
const G = /* @__PURE__ */ Symbol("le.embedded");
|
|
8626
|
-
S.register(G, pe, Be, () => fo()),
|
|
8627
|
+
S.register(G, pe, Be, () => fo()), ua(() => S.unregister(G));
|
|
8627
8628
|
}
|
|
8628
8629
|
}
|
|
8629
8630
|
const Et = R(() => re.value && a.showAddButton && !X.value), Wt = R(
|
|
8630
8631
|
() => re.value && (X.value || a.chips) && !d.value && !a.disableDrag
|
|
8631
8632
|
), co = R(
|
|
8632
8633
|
() => a.addLabel ? s(a.addLabel) : s("common.sortable.add")
|
|
8633
|
-
),
|
|
8634
|
+
), Q = R(() => a.emptyTitle ?? s("common.sortable.emptyTitle")), ce = R(
|
|
8634
8635
|
() => a.deleteConfirmTitle ?? s("common.sortable.deleteConfirmTitle")
|
|
8635
8636
|
), xe = R(
|
|
8636
8637
|
() => a.deleteConfirmText ?? (a.deleteMode === "immediate" ? s("common.sortable.deleteConfirmText") : s("common.sortable.deleteConfirmTextDeferred"))
|
|
@@ -8693,19 +8694,19 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8693
8694
|
isEditing: (S) => h.value.has(S),
|
|
8694
8695
|
onToggleEdit: (S) => {
|
|
8695
8696
|
const G = et(S);
|
|
8696
|
-
G &&
|
|
8697
|
+
G && ka(G);
|
|
8697
8698
|
},
|
|
8698
8699
|
onCancelEdit: (S) => {
|
|
8699
8700
|
const G = et(S);
|
|
8700
|
-
G &&
|
|
8701
|
+
G && Ea(G);
|
|
8701
8702
|
},
|
|
8702
8703
|
onMoveUp: (S) => {
|
|
8703
8704
|
const G = et(S);
|
|
8704
|
-
G &&
|
|
8705
|
+
G && Ta(G.index);
|
|
8705
8706
|
},
|
|
8706
8707
|
onMoveDown: (S) => {
|
|
8707
8708
|
const G = et(S);
|
|
8708
|
-
G &&
|
|
8709
|
+
G && Aa(G.index);
|
|
8709
8710
|
},
|
|
8710
8711
|
onMoveTop: (S) => {
|
|
8711
8712
|
const G = et(S);
|
|
@@ -8716,7 +8717,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8716
8717
|
G && go(G.index);
|
|
8717
8718
|
},
|
|
8718
8719
|
onCancelReorder: () => z()
|
|
8719
|
-
}), mo = U(!1), gn =
|
|
8720
|
+
}), mo = U(!1), gn = oa(null), os = R(
|
|
8720
8721
|
() => gn.value ? cl(gn.value.raw) : ""
|
|
8721
8722
|
), ls = (S) => {
|
|
8722
8723
|
a.showMoveToPosition && (gn.value = S, mo.value = !0);
|
|
@@ -8768,10 +8769,10 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8768
8769
|
le();
|
|
8769
8770
|
const G = p.addItem(void 0, { afterId: S.key });
|
|
8770
8771
|
X.value && G !== void 0 && M.value.add(G);
|
|
8771
|
-
},
|
|
8772
|
+
}, ka = (S) => {
|
|
8772
8773
|
if (re.value && !(X.value && !a.allowEditInReorder)) {
|
|
8773
8774
|
if (h.value.has(S.key)) {
|
|
8774
|
-
|
|
8775
|
+
Ea(S);
|
|
8775
8776
|
return;
|
|
8776
8777
|
}
|
|
8777
8778
|
O.value && (D(S), A.value.delete(S.key)), l("edit", S);
|
|
@@ -8789,10 +8790,10 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8789
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) => {
|
|
8790
8791
|
if (fl(S)) {
|
|
8791
8792
|
if (S.editing || S.expanded) {
|
|
8792
|
-
|
|
8793
|
+
Ea(S);
|
|
8793
8794
|
return;
|
|
8794
8795
|
}
|
|
8795
|
-
a.readonly && b.value ? dl(S) :
|
|
8796
|
+
a.readonly && b.value ? dl(S) : ka(S);
|
|
8796
8797
|
}
|
|
8797
8798
|
}, {
|
|
8798
8799
|
deleteDialog: ho,
|
|
@@ -8810,39 +8811,39 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8810
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);
|
|
8811
8812
|
},
|
|
8812
8813
|
disableDeleteConfirm: () => a.disableDeleteConfirm || a.chips
|
|
8813
|
-
}),
|
|
8814
|
+
}), Da = async (S) => {
|
|
8814
8815
|
re.value && await ds(S);
|
|
8815
8816
|
}, ml = async (S) => {
|
|
8816
8817
|
a.onItemSave && await a.onItemSave(S.raw), j(S), l("item-saved", S);
|
|
8817
8818
|
}, vl = (S) => {
|
|
8818
8819
|
B(S);
|
|
8819
|
-
}, Da = (S) => {
|
|
8820
|
-
Q(S), A.value.delete(S.key), l("close", S);
|
|
8821
8820
|
}, Ea = (S) => {
|
|
8821
|
+
J(S), A.value.delete(S.key), l("close", S);
|
|
8822
|
+
}, xa = (S) => {
|
|
8822
8823
|
const G = o.value[S];
|
|
8823
8824
|
return G ? g(G) : null;
|
|
8824
|
-
},
|
|
8825
|
+
}, Ta = (S) => {
|
|
8825
8826
|
if (S <= 0) return;
|
|
8826
|
-
const G =
|
|
8827
|
+
const G = xa(S);
|
|
8827
8828
|
p.moveItem(S, S - 1), G !== null && xt(G);
|
|
8828
|
-
},
|
|
8829
|
+
}, Aa = (S) => {
|
|
8829
8830
|
if (S >= o.value.length - 1) return;
|
|
8830
|
-
const G =
|
|
8831
|
+
const G = xa(S);
|
|
8831
8832
|
p.moveItem(S, S + 1), G !== null && xt(G);
|
|
8832
8833
|
}, po = (S) => {
|
|
8833
8834
|
if (S <= 0) return;
|
|
8834
|
-
const G =
|
|
8835
|
+
const G = xa(S);
|
|
8835
8836
|
p.moveItem(S, 0), G !== null && xt(G);
|
|
8836
8837
|
}, go = (S) => {
|
|
8837
8838
|
if (S >= o.value.length - 1) return;
|
|
8838
|
-
const G =
|
|
8839
|
+
const G = xa(S);
|
|
8839
8840
|
p.moveItem(S, o.value.length - 1), G !== null && xt(G);
|
|
8840
8841
|
}, Un = /* @__PURE__ */ new Map(), vs = (S) => {
|
|
8841
8842
|
let G = Un.get(S);
|
|
8842
8843
|
return G || (G = {
|
|
8843
8844
|
edit: () => {
|
|
8844
8845
|
const q = et(S);
|
|
8845
|
-
q &&
|
|
8846
|
+
q && ka(q);
|
|
8846
8847
|
},
|
|
8847
8848
|
save: () => {
|
|
8848
8849
|
const q = et(S);
|
|
@@ -8854,11 +8855,11 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8854
8855
|
},
|
|
8855
8856
|
close: () => {
|
|
8856
8857
|
const q = et(S);
|
|
8857
|
-
q &&
|
|
8858
|
+
q && Ea(q);
|
|
8858
8859
|
},
|
|
8859
8860
|
delete: async () => {
|
|
8860
8861
|
const q = et(S);
|
|
8861
|
-
q && await
|
|
8862
|
+
q && await Da(q);
|
|
8862
8863
|
},
|
|
8863
8864
|
addAfter: () => {
|
|
8864
8865
|
const q = et(S);
|
|
@@ -8870,11 +8871,11 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8870
8871
|
},
|
|
8871
8872
|
moveUp: () => {
|
|
8872
8873
|
const q = et(S);
|
|
8873
|
-
q &&
|
|
8874
|
+
q && Ta(q.index);
|
|
8874
8875
|
},
|
|
8875
8876
|
moveDown: () => {
|
|
8876
8877
|
const q = et(S);
|
|
8877
|
-
q &&
|
|
8878
|
+
q && Aa(q.index);
|
|
8878
8879
|
},
|
|
8879
8880
|
moveTop: () => {
|
|
8880
8881
|
const q = et(S);
|
|
@@ -9090,7 +9091,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9090
9091
|
actions: { add: Vn }
|
|
9091
9092
|
}, () => [
|
|
9092
9093
|
x(Cf, {
|
|
9093
|
-
title:
|
|
9094
|
+
title: Q.value,
|
|
9094
9095
|
"add-label": co.value,
|
|
9095
9096
|
"can-add": Et.value,
|
|
9096
9097
|
onAdd: Vn
|
|
@@ -9154,7 +9155,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9154
9155
|
active: !1,
|
|
9155
9156
|
disabled: !q.canMoveUp,
|
|
9156
9157
|
class: "a-le-action a-le-action--up",
|
|
9157
|
-
onClick: De((ye) =>
|
|
9158
|
+
onClick: De((ye) => Ta(q.index), ["stop"])
|
|
9158
9159
|
}, {
|
|
9159
9160
|
default: I(() => [
|
|
9160
9161
|
x(Oe, {
|
|
@@ -9172,7 +9173,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9172
9173
|
active: !1,
|
|
9173
9174
|
disabled: !q.canMoveDown,
|
|
9174
9175
|
class: "a-le-action a-le-action--down",
|
|
9175
|
-
onClick: De((ye) =>
|
|
9176
|
+
onClick: De((ye) => Aa(q.index), ["stop"])
|
|
9176
9177
|
}, {
|
|
9177
9178
|
default: I(() => [
|
|
9178
9179
|
x(Oe, {
|
|
@@ -9191,7 +9192,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9191
9192
|
density: "compact",
|
|
9192
9193
|
active: !1,
|
|
9193
9194
|
class: "a-le-action a-le-action--chip-close",
|
|
9194
|
-
onClick: De((ye) =>
|
|
9195
|
+
onClick: De((ye) => Da(q), ["stop"])
|
|
9195
9196
|
}, {
|
|
9196
9197
|
default: I(() => [
|
|
9197
9198
|
x(Oe, {
|
|
@@ -9209,7 +9210,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9209
9210
|
density: "comfortable",
|
|
9210
9211
|
disabled: !q.canMoveUp,
|
|
9211
9212
|
class: "mx-1 a-le-action a-le-action--up",
|
|
9212
|
-
onClick: De((ye) =>
|
|
9213
|
+
onClick: De((ye) => Ta(q.index), ["stop"])
|
|
9213
9214
|
}, {
|
|
9214
9215
|
default: I(() => [
|
|
9215
9216
|
x(Oe, {
|
|
@@ -9231,7 +9232,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9231
9232
|
density: "comfortable",
|
|
9232
9233
|
disabled: !q.canMoveDown,
|
|
9233
9234
|
class: "mx-1 a-le-action a-le-action--down",
|
|
9234
|
-
onClick: De((ye) =>
|
|
9235
|
+
onClick: De((ye) => Aa(q.index), ["stop"])
|
|
9235
9236
|
}, {
|
|
9236
9237
|
default: I(() => [
|
|
9237
9238
|
x(Oe, {
|
|
@@ -9264,9 +9265,9 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9264
9265
|
location: "bottom",
|
|
9265
9266
|
text: L(s)("common.sortable.more")
|
|
9266
9267
|
}, null, 8, ["text"]),
|
|
9267
|
-
x(
|
|
9268
|
+
x(sa, { activator: "parent" }, {
|
|
9268
9269
|
default: I(() => [
|
|
9269
|
-
x(
|
|
9270
|
+
x(za, { density: "compact" }, {
|
|
9270
9271
|
default: I(() => [
|
|
9271
9272
|
x(mt, {
|
|
9272
9273
|
disabled: !q.canMoveUp,
|
|
@@ -9338,7 +9339,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9338
9339
|
}, 8, ["onClick"])) : ve("", !0),
|
|
9339
9340
|
e.showDeleteButton && re.value ? (_(), te(mt, {
|
|
9340
9341
|
key: 2,
|
|
9341
|
-
onClick: De((ye) =>
|
|
9342
|
+
onClick: De((ye) => Da(q), ["stop"])
|
|
9342
9343
|
}, {
|
|
9343
9344
|
prepend: I(() => [
|
|
9344
9345
|
x(Oe, { icon: "mdi-trash-can-outline" })
|
|
@@ -9371,7 +9372,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9371
9372
|
color: "primary",
|
|
9372
9373
|
density: "comfortable",
|
|
9373
9374
|
class: "mx-1 a-le-action a-le-action--edit",
|
|
9374
|
-
onClick: De((ye) =>
|
|
9375
|
+
onClick: De((ye) => ka(q), ["stop"])
|
|
9375
9376
|
}, {
|
|
9376
9377
|
default: I(() => [
|
|
9377
9378
|
x(Oe, {
|
|
@@ -9393,7 +9394,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9393
9394
|
variant: "text",
|
|
9394
9395
|
density: "comfortable",
|
|
9395
9396
|
class: "mx-1 a-le-action a-le-action--delete",
|
|
9396
|
-
onClick: De((ye) =>
|
|
9397
|
+
onClick: De((ye) => Da(q), ["stop"])
|
|
9397
9398
|
}, {
|
|
9398
9399
|
default: I(() => [
|
|
9399
9400
|
x(Oe, {
|
|
@@ -9427,9 +9428,9 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9427
9428
|
location: "bottom",
|
|
9428
9429
|
text: L(s)("common.sortable.more")
|
|
9429
9430
|
}, null, 8, ["text"]),
|
|
9430
|
-
x(
|
|
9431
|
+
x(sa, { activator: "parent" }, {
|
|
9431
9432
|
default: I(() => [
|
|
9432
|
-
x(
|
|
9433
|
+
x(za, { density: "compact" }, {
|
|
9433
9434
|
default: I(() => [
|
|
9434
9435
|
x(mt, {
|
|
9435
9436
|
onClick: (ye) => vo(q)
|
|
@@ -9646,7 +9647,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9646
9647
|
});
|
|
9647
9648
|
};
|
|
9648
9649
|
return oe(h.value), oe(b.value), Array.from(Y.values());
|
|
9649
|
-
}), B = U(!1), j = R(() => B.value ? !0 : a.loading),
|
|
9650
|
+
}), B = U(!1), j = R(() => B.value ? !0 : a.loading), J = (Y) => {
|
|
9650
9651
|
h.value = [], d.value = $e(Y) ? [] : null, T.value = $e(Y) ? [] : null;
|
|
9651
9652
|
}, le = (Y) => {
|
|
9652
9653
|
const oe = (pe) => D.value.find((Be) => Be.value === pe) ?? { title: `${pe}`, value: pe };
|
|
@@ -9765,7 +9766,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9765
9766
|
async (Y, oe) => {
|
|
9766
9767
|
if (Y !== oe) {
|
|
9767
9768
|
if (v.value && (v.value = !1, await he("mounted", Y)), C.value.enabled && g.value && E.value(Y), fr(Y)) {
|
|
9768
|
-
|
|
9769
|
+
J(Y);
|
|
9769
9770
|
return;
|
|
9770
9771
|
}
|
|
9771
9772
|
await re(Y);
|
|
@@ -9774,7 +9775,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9774
9775
|
{ immediate: !0 }
|
|
9775
9776
|
), n({
|
|
9776
9777
|
tryLoadModelValue: Se
|
|
9777
|
-
}), (Y, oe) => (_(), te(
|
|
9778
|
+
}), (Y, oe) => (_(), te(ca, {
|
|
9778
9779
|
"model-value": T.value,
|
|
9779
9780
|
items: D.value,
|
|
9780
9781
|
"no-filter": "",
|
|
@@ -9861,7 +9862,7 @@ export {
|
|
|
9861
9862
|
Iv as E,
|
|
9862
9863
|
Tv as F,
|
|
9863
9864
|
xr as G,
|
|
9864
|
-
|
|
9865
|
+
ia as H,
|
|
9865
9866
|
Om as I,
|
|
9866
9867
|
Ai as J,
|
|
9867
9868
|
yu as K,
|
|
@@ -9920,21 +9921,21 @@ export {
|
|
|
9920
9921
|
Wr as aY,
|
|
9921
9922
|
Nv as aZ,
|
|
9922
9923
|
Hn as a_,
|
|
9923
|
-
|
|
9924
|
+
ha as aa,
|
|
9924
9925
|
On as ab,
|
|
9925
|
-
|
|
9926
|
+
pa as ac,
|
|
9926
9927
|
_n as ad,
|
|
9927
|
-
|
|
9928
|
+
ga as ae,
|
|
9928
9929
|
Pn as af,
|
|
9929
9930
|
Ft as ag,
|
|
9930
9931
|
lc as ah,
|
|
9931
9932
|
rc as ai,
|
|
9932
|
-
|
|
9933
|
-
|
|
9933
|
+
ba as aj,
|
|
9934
|
+
wa as ak,
|
|
9934
9935
|
Rn as al,
|
|
9935
9936
|
Bn as am,
|
|
9936
9937
|
Qo as an,
|
|
9937
|
-
|
|
9938
|
+
ya as ao,
|
|
9938
9939
|
Ln as ap,
|
|
9939
9940
|
Cr as aq,
|
|
9940
9941
|
el as ar,
|
|
@@ -9986,7 +9987,7 @@ export {
|
|
|
9986
9987
|
mc as bZ,
|
|
9987
9988
|
Ii as b_,
|
|
9988
9989
|
$l as ba,
|
|
9989
|
-
|
|
9990
|
+
Ia as bb,
|
|
9990
9991
|
Ml as bc,
|
|
9991
9992
|
bu as bd,
|
|
9992
9993
|
zv as be,
|
|
@@ -10054,7 +10055,7 @@ export {
|
|
|
10054
10055
|
_t as cv,
|
|
10055
10056
|
dn as cw,
|
|
10056
10057
|
xc as cx,
|
|
10057
|
-
|
|
10058
|
+
ja as cy,
|
|
10058
10059
|
Ec as cz,
|
|
10059
10060
|
F as d,
|
|
10060
10061
|
no as e,
|
|
@@ -10069,7 +10070,7 @@ export {
|
|
|
10069
10070
|
Kn as n,
|
|
10070
10071
|
un as o,
|
|
10071
10072
|
$e as p,
|
|
10072
|
-
|
|
10073
|
+
va as q,
|
|
10073
10074
|
Zn as r,
|
|
10074
10075
|
Tn as s,
|
|
10075
10076
|
Lo as t,
|
|
@@ -10080,4 +10081,4 @@ export {
|
|
|
10080
10081
|
fr as y,
|
|
10081
10082
|
mr as z
|
|
10082
10083
|
};
|
|
10083
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
10084
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DyULxnGf.mjs.map
|