@anzusystems/common-admin 1.49.0 → 1.51.0-author-source-87355.1
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-DAnD88NB.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-a4kDTgdp.mjs} +391 -387
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-a4kDTgdp.mjs.map +1 -0
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.d.ts +352 -149
- package/dist/common-admin.js +10916 -9910
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.d.ts +3 -1
- package/dist/labs.js +89 -89
- package/dist/{webfontloader-CZqOgyx0.mjs → webfontloader-BKGad3EE.mjs} +2 -2
- package/dist/{webfontloader-CZqOgyx0.mjs.map → webfontloader-BKGad3EE.mjs.map} +1 -1
- package/package.json +3 -3
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-DAnD88NB.mjs.map +0 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import { defineComponent as Re, openBlock as _, createBlock as te, withCtx as M, createVNode as x, createElementBlock as de, normalizeClass as rt, toDisplayString as ie, createCommentVNode as ve, renderSlot as ke, createElementVNode as Ie, isProxy as
|
|
2
|
-
import { useEventBus as bt, tryOnBeforeUnmount as
|
|
3
|
-
import { useI18n as Ye, createI18n as
|
|
1
|
+
import { defineComponent as Re, openBlock as _, createBlock as te, withCtx as M, createVNode as x, createElementBlock as de, normalizeClass as rt, toDisplayString as ie, createCommentVNode as ve, renderSlot as ke, createElementVNode as Ie, isProxy as gs, toRaw as aa, isRef as Za, unref as L, computed as R, Fragment as We, normalizeStyle as ys, createTextVNode as ge, shallowRef as oa, watch as _e, ref as U, reactive as Kt, inject as me, createSlots as nn, withDirectives as la, onMounted as Ko, withModifiers as De, onUnmounted as bs, TransitionGroup as ws, mergeProps as Xe, isVNode as Cs, useModel as ct, useTemplateRef as zt, nextTick as Ze, withKeys as Ya, vModelText as kl, mergeModels as tt, getCurrentInstance as $t, resolveComponent as Dn, resolveDynamicComponent as lr, renderList as en, toValue as En, toRef as Ss, onBeforeUnmount as ua, provide as fn, vShow as ks, effectScope as bo, getCurrentScope as Ds, onScopeDispose as Es, useSlots as xs, shallowReactive as Ts, normalizeProps as Dl, guardReactiveProps as El } from "vue";
|
|
2
|
+
import { useEventBus as bt, tryOnBeforeUnmount as As, watchDebounced as Ja, useResizeObserver as Ms, watchThrottled as Is, defaultDocument as $s, unrefElement as xl, tryOnMounted as Fs, tryOnScopeDispose as Bs, useElementSize as Os, useMediaQuery as rr } from "@vueuse/core";
|
|
3
|
+
import { useI18n as Ye, createI18n as _s } from "vue-i18n";
|
|
4
4
|
import { VAutocomplete as ca } from "vuetify/components/VAutocomplete";
|
|
5
5
|
import { VChip as mn } from "vuetify/components/VChip";
|
|
6
6
|
import { VListItem as mt, VList as za, VListItemTitle as rn } from "vuetify/components/VList";
|
|
7
|
-
import { VCard as In, VCardText as Qa, VCardActions as da, VCardTitle as
|
|
7
|
+
import { VCard as In, VCardText as Qa, VCardActions as da, VCardTitle as sr } from "vuetify/components/VCard";
|
|
8
8
|
import { VDialog as fa } from "vuetify/components/VDialog";
|
|
9
9
|
import { VRow as cn, VCol as Yt, VSpacer as $n } from "vuetify/components/VGrid";
|
|
10
|
-
import { VSelect as
|
|
11
|
-
import { VTextarea as
|
|
12
|
-
import { VForm as
|
|
10
|
+
import { VSelect as ir } from "vuetify/components/VSelect";
|
|
11
|
+
import { VTextarea as Rs } from "vuetify/components/VTextarea";
|
|
12
|
+
import { VForm as ur } 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
16
|
import { VTextField as ma } from "vuetify/components/VTextField";
|
|
17
17
|
import ra from "@vuelidate/core";
|
|
18
|
-
import { createI18nMessage as wt, between as
|
|
19
|
-
import { VDatePicker as
|
|
18
|
+
import { createI18nMessage as wt, between as Ps, email as Ls, maxLength as Ns, maxValue as Vs, minLength as Us, minValue as Ys, numeric as zs, required as Hs, requiredIf as js, helpers as cr, url as qs } from "@vuelidate/validators";
|
|
19
|
+
import { VDatePicker as Ks } from "vuetify/components/VDatePicker";
|
|
20
20
|
import { VMenu as sa } from "vuetify/components/VMenu";
|
|
21
|
-
import { Tooltip as
|
|
22
|
-
import { VToolbar as
|
|
23
|
-
import { VSwitch as
|
|
24
|
-
import { defineStore as
|
|
21
|
+
import { Tooltip as dr } from "vuetify/directives";
|
|
22
|
+
import { VToolbar as Ws, VToolbarTitle as Gs } from "vuetify/components/VToolbar";
|
|
23
|
+
import { VSwitch as Xs } from "vuetify/components/VSwitch";
|
|
24
|
+
import { defineStore as Zs } from "pinia";
|
|
25
25
|
import vn from "axios";
|
|
26
26
|
import { VProgressCircular as Wo } from "vuetify/components/VProgressCircular";
|
|
27
|
-
import { VTabs as
|
|
28
|
-
import { VAlert as
|
|
29
|
-
import { VAvatar as
|
|
30
|
-
import { VBadge as
|
|
31
|
-
const
|
|
27
|
+
import { VTabs as Js, VTab as Tl } from "vuetify/components/VTabs";
|
|
28
|
+
import { VAlert as fr } from "vuetify/components/VAlert";
|
|
29
|
+
import { VAvatar as Qs } from "vuetify/components/VAvatar";
|
|
30
|
+
import { VBadge as ei } from "vuetify/components/VBadge";
|
|
31
|
+
const ti = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
32
32
|
__name: "ARow",
|
|
33
33
|
props: {
|
|
34
34
|
title: { default: "" },
|
|
@@ -46,7 +46,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
46
46
|
class: rt(e.titleClass)
|
|
47
47
|
}, ie(e.title), 3)) : ve("", !0),
|
|
48
48
|
ke(n.$slots, "default", {}, () => [
|
|
49
|
-
Ie("span",
|
|
49
|
+
Ie("span", ti, ie(e.value), 1)
|
|
50
50
|
])
|
|
51
51
|
]),
|
|
52
52
|
_: 3
|
|
@@ -63,15 +63,15 @@ 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
|
-
}, va = (e) => typeof e == "object" && !$e(e) && !se(e), Zn = (e) => va(e) ? Object.keys(e).length === 0 : !1, Po = (e) => $e(e) && e.length === 0,
|
|
66
|
+
}, va = (e) => typeof e == "object" && !$e(e) && !se(e), Zn = (e) => va(e) ? Object.keys(e).length === 0 : !1, Po = (e) => $e(e) && e.length === 0, mr = (e) => se(e) || F(e) || e === "" || e === 0 || Po(e) || Zn(e), Ee = (e) => {
|
|
67
67
|
if (typeof structuredClone == "function")
|
|
68
68
|
try {
|
|
69
|
-
return
|
|
69
|
+
return gs(e) ? structuredClone(aa(e)) : Za(e) ? structuredClone(L(e)) : structuredClone(e);
|
|
70
70
|
} catch {
|
|
71
71
|
return JSON.parse(JSON.stringify(e));
|
|
72
72
|
}
|
|
73
73
|
return JSON.parse(JSON.stringify(e));
|
|
74
|
-
},
|
|
74
|
+
}, vr = (e, n = 0) => {
|
|
75
75
|
let t = n;
|
|
76
76
|
try {
|
|
77
77
|
t = Number.parseInt(e, 10);
|
|
@@ -87,13 +87,13 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
87
87
|
return n;
|
|
88
88
|
}
|
|
89
89
|
return Number.isNaN(t) ? n : t;
|
|
90
|
-
},
|
|
90
|
+
}, hr = (e, n) => {
|
|
91
91
|
const t = e.trim();
|
|
92
92
|
if (t === "")
|
|
93
93
|
return null;
|
|
94
94
|
const a = Number(t);
|
|
95
95
|
return !Number.isNaN(a) && Number.isFinite(a) ? a : null;
|
|
96
|
-
},
|
|
96
|
+
}, pr = (e) => {
|
|
97
97
|
const n = e.trim();
|
|
98
98
|
return n === "true" ? !0 : n === "false" ? !1 : null;
|
|
99
99
|
}, Tn = (e, n = "") => {
|
|
@@ -102,7 +102,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
102
102
|
start: e.slice(0, t),
|
|
103
103
|
end: e.slice(t + n.length)
|
|
104
104
|
};
|
|
105
|
-
}, Lm = (e) => e.toString().toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").replace(/&/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), Nm = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Vm = (e, n = 80) => e.length > n ? e.substring(1, n) + "..." : e,
|
|
105
|
+
}, Lm = (e) => e.toString().toLowerCase().trim().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, "-").replace(/&/g, "-").replace(/[^\w-]+/g, "").replace(/--+/g, "-").replace(/^-+/, "").replace(/-+$/, ""), Nm = (e) => e.replace(/([a-z0-9]|(?=[A-Z]))([A-Z])/g, "$1-$2").toLowerCase(), Vm = (e, n = 80) => e.length > n ? e.substring(1, n) + "..." : e, ni = (e, n) => {
|
|
106
106
|
if (e.indexOf(":") === -1) return e;
|
|
107
107
|
const t = [], [a, l] = e.split("?");
|
|
108
108
|
return a.split("/").forEach((r, s) => {
|
|
@@ -135,7 +135,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
135
135
|
return o.length > 0 ? o : n.user.email.slice(0, 2);
|
|
136
136
|
});
|
|
137
137
|
return (o, r) => (_(), de(We, null, [
|
|
138
|
-
x(
|
|
138
|
+
x(Qs, {
|
|
139
139
|
color: t.value,
|
|
140
140
|
class: rt(["text-uppercase", e.containerClass]),
|
|
141
141
|
size: e.size
|
|
@@ -143,7 +143,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
143
143
|
default: M(() => [
|
|
144
144
|
Ie("div", {
|
|
145
145
|
class: "d-inline-flex text-white font-weight-light",
|
|
146
|
-
style:
|
|
146
|
+
style: ys({ fontSize: a.value })
|
|
147
147
|
}, ie(l.value), 5),
|
|
148
148
|
e.tooltip ? (_(), te(it, {
|
|
149
149
|
key: 0,
|
|
@@ -160,7 +160,7 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
160
160
|
r[0] || (r[0] = Ie("div", null, null, -1))
|
|
161
161
|
], 64));
|
|
162
162
|
}
|
|
163
|
-
}),
|
|
163
|
+
}), ai = { class: "d-inline-flex" }, oi = { key: 0 }, no = /* @__PURE__ */ Re({
|
|
164
164
|
__name: "ACollabLockedByUser",
|
|
165
165
|
props: {
|
|
166
166
|
id: {},
|
|
@@ -182,9 +182,9 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
182
182
|
a.value || F(i) || !i._loaded || (t.value = i, a.value = !0);
|
|
183
183
|
},
|
|
184
184
|
{ immediate: !0 }
|
|
185
|
-
), (i, u) => (_(), de("div",
|
|
186
|
-
L(se)(e.id) || L(F)(e.id) ? (_(), de("span",
|
|
187
|
-
e.isModerator ? (_(), te(
|
|
185
|
+
), (i, u) => (_(), de("div", ai, [
|
|
186
|
+
L(se)(e.id) || L(F)(e.id) ? (_(), de("span", oi)) : a.value ? (_(), de(We, { key: 1 }, [
|
|
187
|
+
e.isModerator ? (_(), te(ei, {
|
|
188
188
|
key: 0,
|
|
189
189
|
location: "top right",
|
|
190
190
|
color: "white",
|
|
@@ -224,54 +224,54 @@ const ei = { class: "text-high-emphasis" }, un = /* @__PURE__ */ Re({
|
|
|
224
224
|
}))
|
|
225
225
|
]));
|
|
226
226
|
}
|
|
227
|
-
}),
|
|
227
|
+
}), li = /* @__PURE__ */ Symbol(
|
|
228
228
|
"anzu:collabRoomDataChanged"
|
|
229
|
-
),
|
|
229
|
+
), ri = /* @__PURE__ */ Symbol("anzu:collabReconnect"), si = /* @__PURE__ */ Symbol("anzu:collabStarting"), ii = /* @__PURE__ */ Symbol("anzu:collabGatheringBufferData"), ui = /* @__PURE__ */ Symbol("anzu:collabApprovedJoinRequest"), ci = /* @__PURE__ */ Symbol("anzu:collabRejectedJoinRequest"), di = /* @__PURE__ */ Symbol("anzu:collabJoinRequest"), fi = /* @__PURE__ */ Symbol("anzu:collabApprovedRequestToTakeModeration"), mi = /* @__PURE__ */ Symbol("anzu:collabRejectedRequestToTakeModeration"), vi = /* @__PURE__ */ Symbol("anzu:collabRequestToTakeModeration"), hi = /* @__PURE__ */ Symbol(
|
|
230
230
|
"anzu:collabKickedFromRoom"
|
|
231
|
-
),
|
|
232
|
-
function
|
|
231
|
+
), pi = /* @__PURE__ */ Symbol("anzu:collabPurgeRoom");
|
|
232
|
+
function gi() {
|
|
233
233
|
return bt(
|
|
234
|
-
|
|
234
|
+
li
|
|
235
235
|
);
|
|
236
236
|
}
|
|
237
237
|
function qm() {
|
|
238
|
-
return bt(
|
|
238
|
+
return bt(ri);
|
|
239
239
|
}
|
|
240
240
|
function Km() {
|
|
241
241
|
return bt(
|
|
242
|
-
|
|
242
|
+
si
|
|
243
243
|
);
|
|
244
244
|
}
|
|
245
|
-
function
|
|
246
|
-
return bt(
|
|
245
|
+
function gr() {
|
|
246
|
+
return bt(ii);
|
|
247
247
|
}
|
|
248
248
|
function Wm() {
|
|
249
|
-
return bt(
|
|
249
|
+
return bt(ui);
|
|
250
250
|
}
|
|
251
251
|
function Gm() {
|
|
252
|
-
return bt(
|
|
252
|
+
return bt(ci);
|
|
253
253
|
}
|
|
254
254
|
function Xm() {
|
|
255
|
-
return bt(
|
|
255
|
+
return bt(di);
|
|
256
256
|
}
|
|
257
257
|
function Zm() {
|
|
258
258
|
return bt(
|
|
259
|
-
|
|
259
|
+
fi
|
|
260
260
|
);
|
|
261
261
|
}
|
|
262
262
|
function Jm() {
|
|
263
263
|
return bt(
|
|
264
|
-
|
|
264
|
+
mi
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
267
|
function Qm() {
|
|
268
|
-
return bt(
|
|
268
|
+
return bt(vi);
|
|
269
269
|
}
|
|
270
270
|
function ev() {
|
|
271
|
-
return bt(
|
|
271
|
+
return bt(hi);
|
|
272
272
|
}
|
|
273
273
|
function tv() {
|
|
274
|
-
return bt(
|
|
274
|
+
return bt(pi);
|
|
275
275
|
}
|
|
276
276
|
const jn = {
|
|
277
277
|
Acquire: "acquire",
|
|
@@ -282,34 +282,34 @@ const jn = {
|
|
|
282
282
|
}, Ma = (e, n) => ({
|
|
283
283
|
type: e,
|
|
284
284
|
status: n
|
|
285
|
-
}),
|
|
285
|
+
}), yi = /* @__PURE__ */ Symbol(
|
|
286
286
|
"anzu:collabFieldLockStatus"
|
|
287
287
|
);
|
|
288
|
-
function
|
|
288
|
+
function bi() {
|
|
289
289
|
return bt(
|
|
290
|
-
|
|
290
|
+
yi
|
|
291
291
|
);
|
|
292
292
|
}
|
|
293
293
|
const wo = {
|
|
294
294
|
Inactive: "inactive",
|
|
295
295
|
Active: "active"
|
|
296
|
-
},
|
|
296
|
+
}, wi = {
|
|
297
297
|
Ok: "ok",
|
|
298
298
|
Occupied: "occupied",
|
|
299
299
|
Failed: "failed"
|
|
300
300
|
};
|
|
301
301
|
function nv(e) {
|
|
302
|
-
return e.status ===
|
|
302
|
+
return e.status === wi.Ok;
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const yr = {
|
|
305
305
|
Ok: "ok",
|
|
306
306
|
Failed: "failed"
|
|
307
307
|
};
|
|
308
308
|
function Ml(e) {
|
|
309
|
-
return e.status ===
|
|
309
|
+
return e.status === yr.Ok;
|
|
310
310
|
}
|
|
311
311
|
function Il(e) {
|
|
312
|
-
return e.status ===
|
|
312
|
+
return e.status === yr.Failed;
|
|
313
313
|
}
|
|
314
314
|
const av = {
|
|
315
315
|
Free: "free",
|
|
@@ -337,26 +337,26 @@ function Fn() {
|
|
|
337
337
|
collabOptions: Lo
|
|
338
338
|
};
|
|
339
339
|
}
|
|
340
|
-
const $l = U(!0),
|
|
341
|
-
let
|
|
342
|
-
const Fl = /* @__PURE__ */ new Map(),
|
|
340
|
+
const $l = U(!0), Ci = U(), Si = Kt(/* @__PURE__ */ new Map());
|
|
341
|
+
let ki = 0;
|
|
342
|
+
const Fl = /* @__PURE__ */ new Map(), Di = Kt(/* @__PURE__ */ new Map()), Co = Kt(
|
|
343
343
|
/* @__PURE__ */ new Map()
|
|
344
344
|
);
|
|
345
|
-
function
|
|
345
|
+
function Ei() {
|
|
346
346
|
const { collabOptions: e } = Fn();
|
|
347
347
|
return {
|
|
348
348
|
collabReconnecting: R(() => e.value.enabled && !$l.value),
|
|
349
349
|
collabConnected: $l,
|
|
350
|
-
collabSocket:
|
|
351
|
-
collabRoomInfoState:
|
|
350
|
+
collabSocket: Ci,
|
|
351
|
+
collabRoomInfoState: Si,
|
|
352
352
|
claimRoomInfoWrite: (l) => {
|
|
353
|
-
const o = ++
|
|
353
|
+
const o = ++ki;
|
|
354
354
|
return Fl.set(l, o), () => Fl.get(l) === o;
|
|
355
355
|
},
|
|
356
|
-
collabFieldLocksState:
|
|
356
|
+
collabFieldLocksState: Di,
|
|
357
357
|
collabFieldDataBufferState: Co,
|
|
358
358
|
gatherBufferData: (l) => {
|
|
359
|
-
|
|
359
|
+
gr().emit({ room: l });
|
|
360
360
|
let r = {};
|
|
361
361
|
const s = Co.get(l);
|
|
362
362
|
return s && (r = aa(Object.fromEntries(s.entries())), Co.delete(l)), r;
|
|
@@ -364,7 +364,7 @@ function Di() {
|
|
|
364
364
|
};
|
|
365
365
|
}
|
|
366
366
|
const Bl = U(null);
|
|
367
|
-
function
|
|
367
|
+
function xi() {
|
|
368
368
|
function e(n) {
|
|
369
369
|
Bl.value = n;
|
|
370
370
|
}
|
|
@@ -374,7 +374,7 @@ function Ei() {
|
|
|
374
374
|
};
|
|
375
375
|
}
|
|
376
376
|
function ao(e, n, t = !1) {
|
|
377
|
-
const { collabOptions: a } = Fn(), { currentUserId: l } =
|
|
377
|
+
const { collabOptions: a } = Fn(), { currentUserId: l } = xi(), { collabSocket: o, collabFieldLocksState: r, collabFieldDataBufferState: s, collabRoomInfoState: i } = Ei(), u = gi(), c = U(), d = U(), C = bi(), y = U(), E = U(), p = gr(), f = U(), m = U(), g = (V, O) => {
|
|
378
378
|
V.room !== e || V.field !== n || F(O) || F(d.value) || d.value(O);
|
|
379
379
|
}, T = (V, O) => {
|
|
380
380
|
V.room !== e || V.field !== n || F(O) || F(E.value) || E.value(O);
|
|
@@ -391,7 +391,7 @@ function ao(e, n, t = !1) {
|
|
|
391
391
|
P
|
|
392
392
|
);
|
|
393
393
|
};
|
|
394
|
-
|
|
394
|
+
As(() => {
|
|
395
395
|
t || (Ue(c.value) && c.value(), Ue(y.value) && y.value(), Ue(f.value) && f.value());
|
|
396
396
|
});
|
|
397
397
|
const H = R(() => {
|
|
@@ -492,7 +492,7 @@ function ao(e, n, t = !1) {
|
|
|
492
492
|
unsubscribeCollabGatheringBufferData: f
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
const
|
|
495
|
+
const Ti = {
|
|
496
496
|
key: 0,
|
|
497
497
|
class: "required"
|
|
498
498
|
}, Ol = /* @__PURE__ */ Re({
|
|
@@ -585,7 +585,7 @@ const xi = {
|
|
|
585
585
|
name: "label",
|
|
586
586
|
fn: M(() => [
|
|
587
587
|
ge(ie(m.value), 1),
|
|
588
|
-
g.value ? (_(), de("span",
|
|
588
|
+
g.value ? (_(), de("span", Ti)) : ve("", !0)
|
|
589
589
|
]),
|
|
590
590
|
key: "0"
|
|
591
591
|
},
|
|
@@ -613,19 +613,22 @@ const xi = {
|
|
|
613
613
|
name: "append",
|
|
614
614
|
fn: M(() => [
|
|
615
615
|
la(x(Oe, { icon: "mdi-help-circle-outline" }, null, 512), [
|
|
616
|
-
[
|
|
616
|
+
[dr, e.help]
|
|
617
617
|
])
|
|
618
618
|
]),
|
|
619
619
|
key: "3"
|
|
620
620
|
} : void 0
|
|
621
621
|
]), 1032, ["prepend-icon", "data-cy", "error-messages", "model-value", "required", "type", "step", "append-icon", "maxlength", "disabled", "placeholder", "persistent-placeholder"]));
|
|
622
622
|
}
|
|
623
|
-
}), _l = ["en", "sk"],
|
|
623
|
+
}), _l = ["en", "sk"], Rl = (e, n) => n === 4 ? e === 0 ? 0 : e === 1 ? 1 : e >= 2 && e <= 4 ? 2 : 3 : n === 3 ? e === 1 ? 0 : e >= 2 && e <= 4 ? 1 : 2 : e === 1 ? 0 : 1, He = _s({
|
|
624
624
|
globalInjection: !1,
|
|
625
625
|
locale: _l[0],
|
|
626
626
|
fallbackLocale: !1,
|
|
627
627
|
pluralRules: {
|
|
628
|
-
sk:
|
|
628
|
+
sk: Rl,
|
|
629
|
+
// Czech splits plurals the same way Slovak does (1 / 2-4 / 5+), so it needs the same rule; the
|
|
630
|
+
// vue-i18n default would pick the second form for one item.
|
|
631
|
+
cs: Rl
|
|
629
632
|
},
|
|
630
633
|
missing: (e, n) => {
|
|
631
634
|
_l.includes(e) && !n.startsWith("system.subject.") && console.warn(`Missing ${e} translation: ${n}`);
|
|
@@ -704,12 +707,12 @@ const Xo = /* @__PURE__ */ Re({
|
|
|
704
707
|
const t = n, a = () => {
|
|
705
708
|
t("onCancel");
|
|
706
709
|
};
|
|
707
|
-
return (l, o) => (_(), te(
|
|
710
|
+
return (l, o) => (_(), te(Ws, {
|
|
708
711
|
density: "compact",
|
|
709
712
|
color: "transparent"
|
|
710
713
|
}, {
|
|
711
714
|
default: M(() => [
|
|
712
|
-
x(
|
|
715
|
+
x(Gs, { class: "flex-fill" }, {
|
|
713
716
|
default: M(() => [
|
|
714
717
|
ke(l.$slots, "default")
|
|
715
718
|
]),
|
|
@@ -740,7 +743,7 @@ const Xo = /* @__PURE__ */ Re({
|
|
|
740
743
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
741
744
|
}
|
|
742
745
|
})();
|
|
743
|
-
const
|
|
746
|
+
const br = /* @__PURE__ */ new Map();
|
|
744
747
|
function $i(e) {
|
|
745
748
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
|
|
746
749
|
var a = e.get(n);
|
|
@@ -757,7 +760,7 @@ function $i(e) {
|
|
|
757
760
|
});
|
|
758
761
|
} };
|
|
759
762
|
}
|
|
760
|
-
const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+",
|
|
763
|
+
const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+", Pl = [
|
|
761
764
|
{
|
|
762
765
|
name: "px",
|
|
763
766
|
regexp: new RegExp(`^${So}px$`)
|
|
@@ -780,8 +783,8 @@ const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+", Rl = [
|
|
|
780
783
|
type: e,
|
|
781
784
|
value: 0
|
|
782
785
|
};
|
|
783
|
-
for (let n = 0; n <
|
|
784
|
-
const t =
|
|
786
|
+
for (let n = 0; n < Pl.length; n++) {
|
|
787
|
+
const t = Pl[n];
|
|
785
788
|
if (t.regexp.test(e))
|
|
786
789
|
return {
|
|
787
790
|
type: t.name,
|
|
@@ -801,14 +804,14 @@ const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+", Rl = [
|
|
|
801
804
|
default:
|
|
802
805
|
return { type: "", value: e };
|
|
803
806
|
}
|
|
804
|
-
},
|
|
807
|
+
}, Ll = {
|
|
805
808
|
x: /* @__PURE__ */ new Set(["left", "center", "right"]),
|
|
806
809
|
y: /* @__PURE__ */ new Set(["top", "bottom"])
|
|
807
810
|
}, Oi = /* @__PURE__ */ ((e) => () => e++)(0), _i = (e) => typeof e != "string" ? [] : e.split(/\s+/gi).filter(Boolean), Ri = (e) => {
|
|
808
811
|
typeof e == "string" && (e = _i(e));
|
|
809
812
|
let n = null, t = null;
|
|
810
813
|
return e.forEach((a) => {
|
|
811
|
-
|
|
814
|
+
Ll.y.has(a) && (t = a), Ll.x.has(a) && (n = a);
|
|
812
815
|
}), { x: n, y: t };
|
|
813
816
|
}, ko = {
|
|
814
817
|
position: ["top", "right"],
|
|
@@ -836,7 +839,7 @@ const Cn = $i(), So = "[-+]?[0-9]*.?[0-9]+", Rl = [
|
|
|
836
839
|
};
|
|
837
840
|
};
|
|
838
841
|
function Li(e) {
|
|
839
|
-
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !
|
|
842
|
+
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !Cs(e);
|
|
840
843
|
}
|
|
841
844
|
const Ia = {
|
|
842
845
|
IDLE: 0,
|
|
@@ -934,7 +937,7 @@ const Ia = {
|
|
|
934
937
|
slots: t,
|
|
935
938
|
expose: a
|
|
936
939
|
}) => {
|
|
937
|
-
const l = U([]), o =
|
|
940
|
+
const l = U([]), o = br.get("velocity"), r = R(() => e.animationType === "velocity"), s = R(() => l.value.filter((I) => I.state !== Ia.DESTROYED)), i = R(() => Bi(e.width)), u = R(() => {
|
|
938
941
|
const {
|
|
939
942
|
x: I,
|
|
940
943
|
y: N
|
|
@@ -1021,14 +1024,14 @@ const Ia = {
|
|
|
1021
1024
|
}
|
|
1022
1025
|
return Ko(() => {
|
|
1023
1026
|
Cn.on("add", E), Cn.on("close", p);
|
|
1024
|
-
}),
|
|
1027
|
+
}), bs(() => {
|
|
1025
1028
|
Cn.off("add", E), Cn.off("close", p);
|
|
1026
1029
|
}), () => {
|
|
1027
1030
|
let I;
|
|
1028
1031
|
return x("div", {
|
|
1029
1032
|
class: "vue-notification-group",
|
|
1030
1033
|
style: u.value
|
|
1031
|
-
}, [x(
|
|
1034
|
+
}, [x(ws, Xe(c.value, {
|
|
1032
1035
|
tag: "div",
|
|
1033
1036
|
css: !r.value,
|
|
1034
1037
|
name: e.animationName
|
|
@@ -1069,7 +1072,7 @@ St.close = (e) => {
|
|
|
1069
1072
|
};
|
|
1070
1073
|
const Vi = "Notifications";
|
|
1071
1074
|
function Ui(e, n = {}) {
|
|
1072
|
-
Object.entries(n).forEach((a) =>
|
|
1075
|
+
Object.entries(n).forEach((a) => br.set(...a));
|
|
1073
1076
|
const t = n.name || "notify";
|
|
1074
1077
|
e.config.globalProperties["$" + t] = St, e.component(n.componentName || Vi, Ni);
|
|
1075
1078
|
}
|
|
@@ -1082,10 +1085,10 @@ class Ft extends Error {
|
|
|
1082
1085
|
super(a), this.name = "AnzuFatalError", this.cause = n, this.message = a;
|
|
1083
1086
|
}
|
|
1084
1087
|
}
|
|
1085
|
-
const zi = 200, Hi = 201,
|
|
1088
|
+
const zi = 200, Hi = 201, wr = 202, Bn = 204, vv = 400, hv = 401, ji = 403, pv = 404, Zo = 422, qi = [
|
|
1086
1089
|
zi,
|
|
1087
1090
|
Hi,
|
|
1088
|
-
|
|
1091
|
+
wr,
|
|
1089
1092
|
Bn
|
|
1090
1093
|
], ha = (e) => vn.isAxiosError(e) && e.response?.status === ji, Ki = (e) => e instanceof On;
|
|
1091
1094
|
class On extends Error {
|
|
@@ -1093,7 +1096,7 @@ class On extends Error {
|
|
|
1093
1096
|
super(t), this.name = "AnzuApiForbiddenError", this.cause = n, this.message = t;
|
|
1094
1097
|
}
|
|
1095
1098
|
}
|
|
1096
|
-
const Wi = "validation_failed", pa = (e) => vn.isAxiosError(e) && e.response?.status === Zo && e.response.data?.error === Wi && e.response.data?.fields,
|
|
1099
|
+
const Wi = "validation_failed", pa = (e) => vn.isAxiosError(e) && e.response?.status === Zo && e.response.data?.error === Wi && e.response.data?.fields, Cr = (e) => e instanceof _n, Gi = (e, n, t) => e.fields.some((a) => a.field === t && a.errors.includes(n));
|
|
1097
1100
|
function Xi(e, n, t) {
|
|
1098
1101
|
const a = e.response?.data, l = [];
|
|
1099
1102
|
for (const [o, r] of Object.entries(a.fields))
|
|
@@ -1138,7 +1141,7 @@ class Ln extends Error {
|
|
|
1138
1141
|
super(o), this.name = "AnzuApiDependencyExistsError", this.cause = l, this.message = o, this.dependencies = nu(n);
|
|
1139
1142
|
}
|
|
1140
1143
|
}
|
|
1141
|
-
const au = (e) => e instanceof Qo,
|
|
1144
|
+
const au = (e) => e instanceof Qo, Sr = (e) => vn.isAxiosError(e) && (e.code === "ECONNABORTED" || e.message.includes("timeout") || e.cause instanceof Error && e.cause.message.includes("timeout"));
|
|
1142
1145
|
class Qo extends Error {
|
|
1143
1146
|
constructor(n = void 0) {
|
|
1144
1147
|
super("API request timed out"), this.name = "AnzuApiTimeoutError", this.cause = n;
|
|
@@ -1255,7 +1258,7 @@ function Nn() {
|
|
|
1255
1258
|
duration: f * 1e3,
|
|
1256
1259
|
type: "error"
|
|
1257
1260
|
});
|
|
1258
|
-
}, E = (f, m = -1) => Ki(f) ? (y(m), !0) :
|
|
1261
|
+
}, E = (f, m = -1) => Ki(f) ? (y(m), !0) : Cr(f) ? (c(f.fields, m), !0) : tu(f) ? (a("error.apiDependencyExists.message", m), !0) : Ji(f) ? (d(f.detail, m), !0) : au(f) ? (a("error.apiTimedOut.message", m), !0) : ou(f) || Yi(f) || Jo(f) ? (C(m), !0) : !1, p = (f) => {
|
|
1259
1262
|
const { t: m } = He.global, g = f.split("["), T = g[0].trim(), P = g[1].split("]"), A = P[0], k = P[1] ?? "";
|
|
1260
1263
|
return m(T) + "[" + A + "]: " + m(T.slice(0, -1) + k);
|
|
1261
1264
|
};
|
|
@@ -1280,9 +1283,9 @@ function Nn() {
|
|
|
1280
1283
|
function tl(e) {
|
|
1281
1284
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1282
1285
|
}
|
|
1283
|
-
var _a = { exports: {} }, ru = _a.exports,
|
|
1286
|
+
var _a = { exports: {} }, ru = _a.exports, Nl;
|
|
1284
1287
|
function su() {
|
|
1285
|
-
return
|
|
1288
|
+
return Nl || (Nl = 1, (function(e, n) {
|
|
1286
1289
|
(function(t, a) {
|
|
1287
1290
|
e.exports = a();
|
|
1288
1291
|
})(ru, (function() {
|
|
@@ -1560,9 +1563,9 @@ function su() {
|
|
|
1560
1563
|
}
|
|
1561
1564
|
var iu = su();
|
|
1562
1565
|
const Me = /* @__PURE__ */ tl(iu);
|
|
1563
|
-
var Ra = { exports: {} }, uu = Ra.exports,
|
|
1566
|
+
var Ra = { exports: {} }, uu = Ra.exports, Vl;
|
|
1564
1567
|
function cu() {
|
|
1565
|
-
return
|
|
1568
|
+
return Vl || (Vl = 1, (function(e, n) {
|
|
1566
1569
|
(function(t, a) {
|
|
1567
1570
|
e.exports = a();
|
|
1568
1571
|
})(uu, (function() {
|
|
@@ -1636,10 +1639,10 @@ function cu() {
|
|
|
1636
1639
|
})(Ra)), Ra.exports;
|
|
1637
1640
|
}
|
|
1638
1641
|
var du = cu();
|
|
1639
|
-
const
|
|
1640
|
-
var Pa = { exports: {} }, fu = Pa.exports,
|
|
1642
|
+
const kr = /* @__PURE__ */ tl(du);
|
|
1643
|
+
var Pa = { exports: {} }, fu = Pa.exports, Ul;
|
|
1641
1644
|
function mu() {
|
|
1642
|
-
return
|
|
1645
|
+
return Ul || (Ul = 1, (function(e, n) {
|
|
1643
1646
|
(function(t, a) {
|
|
1644
1647
|
e.exports = a();
|
|
1645
1648
|
})(fu, (function() {
|
|
@@ -1761,10 +1764,10 @@ function mu() {
|
|
|
1761
1764
|
})(Pa)), Pa.exports;
|
|
1762
1765
|
}
|
|
1763
1766
|
var vu = mu();
|
|
1764
|
-
const
|
|
1765
|
-
Me.extend(Sr);
|
|
1767
|
+
const Dr = /* @__PURE__ */ tl(vu);
|
|
1766
1768
|
Me.extend(kr);
|
|
1767
|
-
|
|
1769
|
+
Me.extend(Dr);
|
|
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 = () => Me().utc().toDate(), hu = (e) => Me(e).toDate(), yv = () => vr(Me().utc().unix()), ia = (e = !0, n = !1) => e && !n ? Me().utc().format("YYYY-MM-DDTHH:mm:ss") + tn : e && n ? Me().utc().format("YYYY-MM-DDTHH:mm:00") + tn : !e && n ? Me().utc().format("YYYY-MM-DDTHH:mm:00.SSSSSS") + "Z" : Me().utc().format("YYYY-MM-DDTHH:mm:ss.SSSSSS") + "Z", bv = (e = 0) => e === 0 ? Me().startOf("day").utc().format(Ha) + tn : Me().add(e, "days").startOf("day").utc().format(Ha) + tn, wv = (e = 0) => e === 0 ? Me().endOf("day").utc().format(Ha) + tn : Me().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 ? Me(n).add(e, "minutes").toDate() : e < 0 ? Me(n).subtract(Math.abs(e), "minutes").toDate() : n), No = (e, n = tn) => Me(e).utc().format("YYYY-MM-DDTHH:mm:ss") + n, Cv = () => Me().utc().format("YYYY"), Kn = (e, n = "", t = !1) => e === lo || e === oo || e === "" || se(e) || F(e) ? n : Me(e).format(t ? "DD.MM.YYYY HH:mm:ss" : "DD.MM.YYYY HH:mm"), Sv = (e, n = "", t = !1) => {
|
|
1768
1771
|
if (e === lo || e === oo || e === "" || se(e) || F(e))
|
|
1769
1772
|
return n;
|
|
1770
1773
|
let a = !0, l = !0;
|
|
@@ -1783,7 +1786,7 @@ const tn = ".000000Z", Ha = "YYYY-MM-DDTHH:mm:ss", oo = "1970-01-01T00:00:00.000
|
|
|
1783
1786
|
} : { from: l, until: o };
|
|
1784
1787
|
}, Eo = gu, ro = (e) => {
|
|
1785
1788
|
e?.currentTarget instanceof HTMLElement && e.currentTarget.blur();
|
|
1786
|
-
},
|
|
1789
|
+
}, Er = /* @__PURE__ */ Re({
|
|
1787
1790
|
__name: "AFilterSubmitButton",
|
|
1788
1791
|
props: {
|
|
1789
1792
|
buttonT: { default: "common.button.submitFilter" },
|
|
@@ -1810,7 +1813,7 @@ const tn = ".000000Z", Ha = "YYYY-MM-DDTHH:mm:ss", oo = "1970-01-01T00:00:00.000
|
|
|
1810
1813
|
_: 1
|
|
1811
1814
|
}, 8, ["class", "data-cy", "variant"]));
|
|
1812
1815
|
}
|
|
1813
|
-
}),
|
|
1816
|
+
}), xr = /* @__PURE__ */ Re({
|
|
1814
1817
|
__name: "AFilterResetButton",
|
|
1815
1818
|
props: {
|
|
1816
1819
|
tooltipT: { default: "common.button.resetFilter" },
|
|
@@ -1885,80 +1888,80 @@ function Av(e, n, t = ".") {
|
|
|
1885
1888
|
}
|
|
1886
1889
|
return o(e), e;
|
|
1887
1890
|
}
|
|
1888
|
-
const ba = (e, n, t = "") => Zn(n) ? e :
|
|
1891
|
+
const ba = (e, n, t = "") => Zn(n) ? e : ni(
|
|
1889
1892
|
t === "" ? e : t,
|
|
1890
1893
|
n
|
|
1891
1894
|
), wa = (e) => qi.includes(e), Mv = (e, n, t = {}, a, l, o = {}) => new Promise((r, s) => {
|
|
1892
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)));
|
|
1893
1896
|
}), { t: wu } = He.global;
|
|
1894
1897
|
function Cu() {
|
|
1895
|
-
return wt({ t: wu })(
|
|
1898
|
+
return wt({ t: wu })(Ps, {
|
|
1896
1899
|
withArguments: !0,
|
|
1897
1900
|
messagePath: () => "error.jsValidation.between"
|
|
1898
1901
|
});
|
|
1899
1902
|
}
|
|
1900
1903
|
const { t: Su } = He.global;
|
|
1901
1904
|
function ku() {
|
|
1902
|
-
return wt({ t: Su })(
|
|
1905
|
+
return wt({ t: Su })(Ls, {
|
|
1903
1906
|
messagePath: () => "error.jsValidation.email"
|
|
1904
1907
|
});
|
|
1905
1908
|
}
|
|
1906
1909
|
const { t: Du } = He.global;
|
|
1907
1910
|
function Eu() {
|
|
1908
|
-
return wt({ t: Du })(
|
|
1911
|
+
return wt({ t: Du })(Ns, {
|
|
1909
1912
|
withArguments: !0,
|
|
1910
1913
|
messagePath: () => "error.jsValidation.maxLength"
|
|
1911
1914
|
});
|
|
1912
1915
|
}
|
|
1913
1916
|
const { t: xu } = He.global;
|
|
1914
1917
|
function Tu() {
|
|
1915
|
-
return wt({ t: xu })(
|
|
1918
|
+
return wt({ t: xu })(Vs, {
|
|
1916
1919
|
withArguments: !0,
|
|
1917
1920
|
messagePath: () => "error.jsValidation.maxValue"
|
|
1918
1921
|
});
|
|
1919
1922
|
}
|
|
1920
1923
|
const { t: Au } = He.global;
|
|
1921
1924
|
function Mu() {
|
|
1922
|
-
return wt({ t: Au })(
|
|
1925
|
+
return wt({ t: Au })(Us, {
|
|
1923
1926
|
withArguments: !0,
|
|
1924
1927
|
messagePath: () => "error.jsValidation.minLength"
|
|
1925
1928
|
});
|
|
1926
1929
|
}
|
|
1927
1930
|
const { t: Iu } = He.global;
|
|
1928
1931
|
function $u() {
|
|
1929
|
-
return wt({ t: Iu })(
|
|
1932
|
+
return wt({ t: Iu })(Ys, {
|
|
1930
1933
|
withArguments: !0,
|
|
1931
1934
|
messagePath: () => "error.jsValidation.minValue"
|
|
1932
1935
|
});
|
|
1933
1936
|
}
|
|
1934
1937
|
const { t: Fu } = He.global;
|
|
1935
1938
|
function Bu() {
|
|
1936
|
-
return wt({ t: Fu })(
|
|
1939
|
+
return wt({ t: Fu })(zs, {
|
|
1937
1940
|
messagePath: () => "error.jsValidation.numeric"
|
|
1938
1941
|
});
|
|
1939
1942
|
}
|
|
1940
1943
|
const { t: Ou } = He.global;
|
|
1941
1944
|
function _u() {
|
|
1942
|
-
return wt({ t: Ou })(
|
|
1945
|
+
return wt({ t: Ou })(Hs, {
|
|
1943
1946
|
messagePath: () => "error.jsValidation.required"
|
|
1944
1947
|
});
|
|
1945
1948
|
}
|
|
1946
1949
|
const { t: Ru } = He.global;
|
|
1947
1950
|
function Pu() {
|
|
1948
|
-
return wt({ t: Ru })(
|
|
1951
|
+
return wt({ t: Ru })(js, {
|
|
1949
1952
|
withArguments: !0,
|
|
1950
1953
|
messagePath: () => "error.jsValidation.required"
|
|
1951
1954
|
});
|
|
1952
1955
|
}
|
|
1953
1956
|
const { t: Lu } = He.global;
|
|
1954
1957
|
function Nu() {
|
|
1955
|
-
return wt({ t: Lu })(
|
|
1958
|
+
return wt({ t: Lu })(cr.regex(/^[a-z\-0-9]+$/), {
|
|
1956
1959
|
messagePath: () => "error.jsValidation.slug"
|
|
1957
1960
|
});
|
|
1958
1961
|
}
|
|
1959
1962
|
const { t: Vu } = He.global;
|
|
1960
1963
|
function Uu() {
|
|
1961
|
-
const e = wt({ t: Vu }), n = (a, l) => (o) => !
|
|
1964
|
+
const e = wt({ t: Vu }), n = (a, l) => (o) => !cr.req(o) || o.every((r) => r.length >= L(a) && r.length <= L(l));
|
|
1962
1965
|
return e((a, l) => ({
|
|
1963
1966
|
$validator: n(a, l),
|
|
1964
1967
|
// $message not required when using i18n
|
|
@@ -1978,7 +1981,7 @@ function Uu() {
|
|
|
1978
1981
|
}
|
|
1979
1982
|
const { t: Yu } = He.global;
|
|
1980
1983
|
function zu() {
|
|
1981
|
-
return wt({ t: Yu })(
|
|
1984
|
+
return wt({ t: Yu })(qs, {
|
|
1982
1985
|
messagePath: () => "error.jsValidation.url"
|
|
1983
1986
|
});
|
|
1984
1987
|
}
|
|
@@ -2239,7 +2242,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2239
2242
|
emits: ["blur", "focus", "update:modelValue", "onOpen", "onClose", "afterClear"],
|
|
2240
2243
|
setup(e, { emit: n }) {
|
|
2241
2244
|
const t = e, a = n;
|
|
2242
|
-
Me.extend(
|
|
2245
|
+
Me.extend(kr), Me.extend(Dr);
|
|
2243
2246
|
const l = U(!1), o = U(0), r = U(0), s = zt("timePickerInstance"), i = zt("inputInstance"), u = zt("confirmRefButton"), c = U(""), d = U(null), C = U(null), y = U(null), { t: E } = Ye(), p = R(() => t.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: f } = nl(), m = R(() => ({
|
|
2244
2247
|
textFieldValue: {
|
|
2245
2248
|
required: f(t.required)
|
|
@@ -2382,9 +2385,9 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2382
2385
|
]),
|
|
2383
2386
|
_: 1
|
|
2384
2387
|
})), [
|
|
2385
|
-
[
|
|
2388
|
+
[dr, L(E)("common.button.close")]
|
|
2386
2389
|
]),
|
|
2387
|
-
(_(), te(
|
|
2390
|
+
(_(), te(Ks, Xe({
|
|
2388
2391
|
key: o.value,
|
|
2389
2392
|
modelValue: d.value,
|
|
2390
2393
|
"onUpdate:modelValue": D[0] || (D[0] = (B) => d.value = B),
|
|
@@ -2439,7 +2442,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2439
2442
|
}
|
|
2440
2443
|
]), 1032, ["modelValue", "error-messages", "placeholder", "disabled"]));
|
|
2441
2444
|
}
|
|
2442
|
-
}),
|
|
2445
|
+
}), Tr = /* @__PURE__ */ Go(nc, [["__scopeId", "data-v-2afc2324"]]), Yl = /* @__PURE__ */ Re({
|
|
2443
2446
|
__name: "AFormDatetimePicker",
|
|
2444
2447
|
props: {
|
|
2445
2448
|
modelValue: {},
|
|
@@ -2491,7 +2494,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2491
2494
|
}), A = R(() => Ue(t.required) ? t.required : !!(t.v?.required && t.v?.required.$params.type === "required")), k = R(() => Ue(t.disabled) ? t.disabled : !!u.value);
|
|
2492
2495
|
return _e(l, ($, H) => {
|
|
2493
2496
|
$ !== H && o.value.enabled && (d.value || c.value) && s.value($);
|
|
2494
|
-
}), ($, H) => (_(), te(
|
|
2497
|
+
}), ($, H) => (_(), te(Tr, Xe({
|
|
2495
2498
|
modelValue: l.value,
|
|
2496
2499
|
"onUpdate:modelValue": H[0] || (H[0] = (I) => l.value = I),
|
|
2497
2500
|
"data-cy": e.dataCy,
|
|
@@ -2518,7 +2521,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2518
2521
|
_: 3
|
|
2519
2522
|
}, 16, ["modelValue", "data-cy", "error-messages", "required", "disabled", "label", "clearable"]));
|
|
2520
2523
|
}
|
|
2521
|
-
}),
|
|
2524
|
+
}), zl = /* @__PURE__ */ Re({
|
|
2522
2525
|
__name: "AFormSwitch",
|
|
2523
2526
|
props: {
|
|
2524
2527
|
modelValue: { type: Boolean },
|
|
@@ -2557,7 +2560,7 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2557
2560
|
}, d = () => {
|
|
2558
2561
|
a("focus", t.modelValue), r.value();
|
|
2559
2562
|
}, C = R(() => Ue(t.disabled) ? t.disabled : !!s.value);
|
|
2560
|
-
return (y, E) => (_(), te(
|
|
2563
|
+
return (y, E) => (_(), te(Xs, {
|
|
2561
2564
|
"data-cy": e.dataCy,
|
|
2562
2565
|
"model-value": e.modelValue,
|
|
2563
2566
|
disabled: C.value,
|
|
@@ -2588,16 +2591,16 @@ const qu = { class: "a-datetime-picker-time" }, Ku = { class: "a-datetime-picker
|
|
|
2588
2591
|
} : void 0
|
|
2589
2592
|
]), 1032, ["data-cy", "model-value", "disabled"]));
|
|
2590
2593
|
}
|
|
2591
|
-
}),
|
|
2594
|
+
}), Hl = U(1), xo = U(!1);
|
|
2592
2595
|
function ac() {
|
|
2593
2596
|
return {
|
|
2594
2597
|
setStoredPage: (a) => {
|
|
2595
|
-
|
|
2598
|
+
Hl.value = a;
|
|
2596
2599
|
},
|
|
2597
2600
|
setPreservePage: () => {
|
|
2598
2601
|
xo.value = !0;
|
|
2599
2602
|
},
|
|
2600
|
-
consumeStoredPage: () => xo.value ? (xo.value = !1,
|
|
2603
|
+
consumeStoredPage: () => xo.value ? (xo.value = !1, Hl.value) : null
|
|
2601
2604
|
};
|
|
2602
2605
|
}
|
|
2603
2606
|
const To = "_sort", oc = {
|
|
@@ -2702,7 +2705,7 @@ const sc = {
|
|
|
2702
2705
|
storeFiltersLocalStorage: !0,
|
|
2703
2706
|
populateUrlParams: !0
|
|
2704
2707
|
};
|
|
2705
|
-
function
|
|
2708
|
+
function Ar(e, n, t = {}) {
|
|
2706
2709
|
const a = { ...sc, ...t }, l = "~";
|
|
2707
2710
|
let o;
|
|
2708
2711
|
Ge(a.storeFiltersLocalStorage) ? o = a.storeFiltersLocalStorage : yt(a.storeFiltersLocalStorage) && a.storeFiltersLocalStorage === !0 && Ge(n.general.system) && Ge(n.general.subject) && (o = "tableFilter_" + n.general.system + "_" + n.general.subject);
|
|
@@ -2777,11 +2780,11 @@ function Tr(e, n, t = {}) {
|
|
|
2777
2780
|
let I = A.filters[H];
|
|
2778
2781
|
if (!F(I)) {
|
|
2779
2782
|
if (Ge(I)) {
|
|
2780
|
-
const N =
|
|
2783
|
+
const N = hr(I);
|
|
2781
2784
|
if (!se(N))
|
|
2782
2785
|
I = N;
|
|
2783
2786
|
else {
|
|
2784
|
-
const K =
|
|
2787
|
+
const K = pr(I);
|
|
2785
2788
|
se(K) || (I = K);
|
|
2786
2789
|
}
|
|
2787
2790
|
}
|
|
@@ -3013,7 +3016,7 @@ const dc = (e) => va(e) && Object.hasOwn(e, "totalCount"), fc = (e) => va(e) &&
|
|
|
3013
3016
|
} catch (g) {
|
|
3014
3017
|
if (g instanceof DOMException && g.name === "AbortError")
|
|
3015
3018
|
return [];
|
|
3016
|
-
throw Jo(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) :
|
|
3019
|
+
throw Jo(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) : Sr(g) ? new Qo(g) : vn.isAxiosError(g) ? (s || console.error("Axios error: " + l, ...g.cause ? [g.cause] : []), new el(g)) : (s || console.error("AnzuFatalError: ", g), new Ft(g));
|
|
3017
3020
|
} finally {
|
|
3018
3021
|
i = null;
|
|
3019
3022
|
}
|
|
@@ -3065,7 +3068,7 @@ const Iv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3065
3068
|
"anzu:FilterInnerConfigKey"
|
|
3066
3069
|
), Lt = /* @__PURE__ */ Symbol.for(
|
|
3067
3070
|
"anzu:FilterSubmitResetCounterKey"
|
|
3068
|
-
), Dt = /* @__PURE__ */ Symbol.for("anzu:FilterSelectedKey"),
|
|
3071
|
+
), Dt = /* @__PURE__ */ Symbol.for("anzu:FilterSelectedKey"), Mr = /* @__PURE__ */ Symbol.for(
|
|
3069
3072
|
"anzu:DatatablePaginationKey"
|
|
3070
3073
|
), pc = /* @__PURE__ */ Symbol.for(
|
|
3071
3074
|
"anzu:SubjectSelectCloseSidebarKey"
|
|
@@ -3111,7 +3114,7 @@ const Iv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3111
3114
|
{ title: i.value.title, value: i.value.value }
|
|
3112
3115
|
]);
|
|
3113
3116
|
};
|
|
3114
|
-
return (f, m) => (_(), te(
|
|
3117
|
+
return (f, m) => (_(), te(ir, {
|
|
3115
3118
|
modelValue: i.value,
|
|
3116
3119
|
"onUpdate:modelValue": m[0] || (m[0] = (g) => i.value = g),
|
|
3117
3120
|
"data-cy": e.dataCy,
|
|
@@ -3327,7 +3330,7 @@ const Iv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3327
3330
|
async (X, fe) => {
|
|
3328
3331
|
if (X === fe || yt(X)) return;
|
|
3329
3332
|
const z = X;
|
|
3330
|
-
if (I.value && (I.value = !1, await ne()),
|
|
3333
|
+
if (I.value && (I.value = !1, await ne()), mr(z)) {
|
|
3331
3334
|
O(z), F(fe) || (g.value++, await w("", g.value));
|
|
3332
3335
|
return;
|
|
3333
3336
|
}
|
|
@@ -3775,7 +3778,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3775
3778
|
return (V, O) => {
|
|
3776
3779
|
const b = Dn("ABtnTertiary"), h = Dn("ABtnPrimary");
|
|
3777
3780
|
return _(), de(We, null, [
|
|
3778
|
-
E.value ? (_(), te(
|
|
3781
|
+
E.value ? (_(), te(Rs, {
|
|
3779
3782
|
key: 0,
|
|
3780
3783
|
label: g.value,
|
|
3781
3784
|
"model-value": L(Kn)(y.value.from) + " - " + L(Kn)(y.value.until),
|
|
@@ -3788,7 +3791,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3788
3791
|
class: "cursor-pointer",
|
|
3789
3792
|
"onClick:clear": De(A, ["stop"]),
|
|
3790
3793
|
onClick: O[0] || (O[0] = De((v) => N(), ["stop"]))
|
|
3791
|
-
}, null, 8, ["label", "model-value"])) : (_(), te(
|
|
3794
|
+
}, null, 8, ["label", "model-value"])) : (_(), te(ir, {
|
|
3792
3795
|
key: 1,
|
|
3793
3796
|
modelValue: d.value,
|
|
3794
3797
|
"onUpdate:modelValue": O[1] || (O[1] = (v) => d.value = v),
|
|
@@ -3831,7 +3834,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3831
3834
|
default: M(() => [
|
|
3832
3835
|
x(un, null, {
|
|
3833
3836
|
default: M(() => [
|
|
3834
|
-
x(
|
|
3837
|
+
x(Yl, {
|
|
3835
3838
|
modelValue: y.value.from,
|
|
3836
3839
|
"onUpdate:modelValue": O[2] || (O[2] = (v) => y.value.from = v),
|
|
3837
3840
|
v: L(p).dialogData.from,
|
|
@@ -3843,7 +3846,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3843
3846
|
}),
|
|
3844
3847
|
x(un, null, {
|
|
3845
3848
|
default: M(() => [
|
|
3846
|
-
x(
|
|
3849
|
+
x(Yl, {
|
|
3847
3850
|
modelValue: y.value.until,
|
|
3848
3851
|
"onUpdate:modelValue": O[3] || (O[3] = (v) => y.value.until = v),
|
|
3849
3852
|
v: L(p).dialogData.until,
|
|
@@ -3889,7 +3892,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3889
3892
|
], 64);
|
|
3890
3893
|
};
|
|
3891
3894
|
}
|
|
3892
|
-
}), Ov = /* @__PURE__ */ Go(Sc, [["__scopeId", "data-v-845cd41b"]]),
|
|
3895
|
+
}), Ov = /* @__PURE__ */ Go(Sc, [["__scopeId", "data-v-845cd41b"]]), Ir = (e, n = "item") => n + "." + e, jl = /* @__PURE__ */ Re({
|
|
3893
3896
|
__name: "AFilterEmpty",
|
|
3894
3897
|
props: {
|
|
3895
3898
|
name: {}
|
|
@@ -3925,7 +3928,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3925
3928
|
{ title: Kn(i.value), value: i.value }
|
|
3926
3929
|
]);
|
|
3927
3930
|
};
|
|
3928
|
-
return (p, f) => (_(), te(
|
|
3931
|
+
return (p, f) => (_(), te(Tr, Xe({
|
|
3929
3932
|
modelValue: i.value,
|
|
3930
3933
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => i.value = m),
|
|
3931
3934
|
"data-cy": e.dataCy,
|
|
@@ -3991,7 +3994,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
3991
3994
|
"onClick:clear": De(E, ["stop"])
|
|
3992
3995
|
}, null, 8, ["modelValue", "label", "placeholder", "clearable", "data-cy"]));
|
|
3993
3996
|
}
|
|
3994
|
-
}),
|
|
3997
|
+
}), $r = /* @__PURE__ */ Re({
|
|
3995
3998
|
__name: "FilterDetailItem",
|
|
3996
3999
|
props: {
|
|
3997
4000
|
name: {}
|
|
@@ -4002,7 +4005,7 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
4002
4005
|
F(t.fields[n.name]))
|
|
4003
4006
|
throw new Error("Incorrect provide/inject config.");
|
|
4004
4007
|
const a = R(() => t.fields[n.name]), l = R(() => {
|
|
4005
|
-
if (a.value.render.skip) return
|
|
4008
|
+
if (a.value.render.skip) return jl;
|
|
4006
4009
|
switch (a.value.type) {
|
|
4007
4010
|
case "string":
|
|
4008
4011
|
return yc;
|
|
@@ -4013,13 +4016,13 @@ const Fv = /* @__PURE__ */ Re({
|
|
|
4013
4016
|
case "integer":
|
|
4014
4017
|
return Dc;
|
|
4015
4018
|
default:
|
|
4016
|
-
return
|
|
4019
|
+
return jl;
|
|
4017
4020
|
}
|
|
4018
4021
|
});
|
|
4019
|
-
return (o, r) => (_(), te(
|
|
4022
|
+
return (o, r) => (_(), te(lr(l.value), { name: e.name }, null, 8, ["name"]));
|
|
4020
4023
|
}
|
|
4021
4024
|
});
|
|
4022
|
-
function
|
|
4025
|
+
function ql(e, n = "userAdminConfig") {
|
|
4023
4026
|
const t = [
|
|
4024
4027
|
{ name: "user", default: null },
|
|
4025
4028
|
{ name: "configType", default: null },
|
|
@@ -4042,7 +4045,7 @@ const ja = {
|
|
|
4042
4045
|
}, Ec = ja.PinnedWidgets, dn = {
|
|
4043
4046
|
Desktop: "desktop",
|
|
4044
4047
|
Mobile: "mobile"
|
|
4045
|
-
}, xc = dn.Desktop, Tc = 3, Vo = 8,
|
|
4048
|
+
}, xc = dn.Desktop, Tc = 3, Vo = 8, Fr = Zs("filterBookmarkStore", () => {
|
|
4046
4049
|
const e = U(/* @__PURE__ */ new Map()), n = U(!1);
|
|
4047
4050
|
function t(s, i) {
|
|
4048
4051
|
return `userAdminConfig/${i}/${s}/`;
|
|
@@ -4066,7 +4069,7 @@ const ja = {
|
|
|
4066
4069
|
}), { start: y, end: E } = Tn(
|
|
4067
4070
|
s.systemResource,
|
|
4068
4071
|
"_"
|
|
4069
|
-
), { filterConfig: p, filterData: f } =
|
|
4072
|
+
), { filterConfig: p, filterData: f } = ql(y, E);
|
|
4070
4073
|
f.configType = ja.FilterBookmark, f.layoutType = s.layoutType, f.systemResource = s.systemResource, f.user = s.user;
|
|
4071
4074
|
let m = [];
|
|
4072
4075
|
try {
|
|
@@ -4084,7 +4087,7 @@ const ja = {
|
|
|
4084
4087
|
}), { start: c, end: d } = Tn(
|
|
4085
4088
|
s.systemResource,
|
|
4086
4089
|
"_"
|
|
4087
|
-
), { filterConfig: C, filterData: y } =
|
|
4090
|
+
), { filterConfig: C, filterData: y } = ql(c, d);
|
|
4088
4091
|
y.configType = ja.FilterBookmark, y.layoutType = s.layoutType, y.systemResource = s.systemResource, y.user = s.user;
|
|
4089
4092
|
let E = 1 / 0;
|
|
4090
4093
|
try {
|
|
@@ -4135,13 +4138,13 @@ const ja = {
|
|
|
4135
4138
|
throw new Rn(T.status);
|
|
4136
4139
|
if (T.data)
|
|
4137
4140
|
return T.data;
|
|
4138
|
-
if (T.status === Bn || T.status ===
|
|
4141
|
+
if (T.status === Bn || T.status === wr)
|
|
4139
4142
|
return;
|
|
4140
4143
|
throw new Ft();
|
|
4141
4144
|
} catch (f) {
|
|
4142
4145
|
if (f instanceof DOMException && f.name === "AbortError")
|
|
4143
4146
|
return [];
|
|
4144
|
-
throw Jo(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) :
|
|
4147
|
+
throw Jo(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) : Sr(f) ? new Qo(f) : vn.isAxiosError(f) ? (i || console.error("Axios error: " + o, ...f.cause ? [f.cause] : []), new el(f)) : (i || console.error("AnzuFatalError: ", f), new Ft(f));
|
|
4145
4148
|
} finally {
|
|
4146
4149
|
u = null;
|
|
4147
4150
|
}
|
|
@@ -4150,10 +4153,10 @@ const ja = {
|
|
|
4150
4153
|
u && u.abort();
|
|
4151
4154
|
}
|
|
4152
4155
|
};
|
|
4153
|
-
},
|
|
4154
|
-
function
|
|
4156
|
+
}, Kl = "/adm/v1/user-admin-config", Ac = "userAdminConfig";
|
|
4157
|
+
function Br(e, n, t = Ac, a = Kl) {
|
|
4155
4158
|
return {
|
|
4156
|
-
useFetchUserAdminConfigList: () => vc({ client: e, system: n, entity: t, urlTemplate:
|
|
4159
|
+
useFetchUserAdminConfigList: () => vc({ client: e, system: n, entity: t, urlTemplate: Kl }),
|
|
4157
4160
|
fetchUserAdminConfig: (c) => {
|
|
4158
4161
|
const { executeRequest: d } = Yn({
|
|
4159
4162
|
client: e,
|
|
@@ -4199,7 +4202,7 @@ function Fr(e, n, t = Ac, a = ql) {
|
|
|
4199
4202
|
}
|
|
4200
4203
|
};
|
|
4201
4204
|
}
|
|
4202
|
-
const Mc = { key: 0 }, Ic = 32,
|
|
4205
|
+
const Mc = { key: 0 }, Ic = 32, Or = /* @__PURE__ */ Re({
|
|
4203
4206
|
__name: "FilterBookmarks",
|
|
4204
4207
|
props: /* @__PURE__ */ tt({
|
|
4205
4208
|
client: {},
|
|
@@ -4215,10 +4218,10 @@ const Mc = { key: 0 }, Ic = 32, Br = /* @__PURE__ */ Re({
|
|
|
4215
4218
|
}),
|
|
4216
4219
|
emits: /* @__PURE__ */ tt(["submit"], ["update:datatableHiddenColumns"]),
|
|
4217
4220
|
setup(e, { emit: n }) {
|
|
4218
|
-
const t = e, a = n, l = ct(e, "datatableHiddenColumns"), o = me(ht), r = me(Ct), s = me(
|
|
4221
|
+
const t = e, a = n, l = ct(e, "datatableHiddenColumns"), o = me(ht), r = me(Ct), s = me(Mr), i = me(Dt);
|
|
4219
4222
|
if (F(s) || F(o) || F(r) || F(i))
|
|
4220
4223
|
throw new Error("Incorrect provide/inject config.");
|
|
4221
|
-
const u = U(!1), c = zt("toolbar"), d = U(300), C = U(1e3), y =
|
|
4224
|
+
const u = U(!1), c = zt("toolbar"), d = U(300), C = U(1e3), y = Fr(), { useFetchUserAdminConfigList: E } = Br(t.client, t.system), p = t.system + "_" + t.subject, f = async (k = !1) => {
|
|
4222
4225
|
u.value = !0, await y.getBookmarks(
|
|
4223
4226
|
{
|
|
4224
4227
|
user: t.userId,
|
|
@@ -4228,7 +4231,7 @@ const Mc = { key: 0 }, Ic = 32, Br = /* @__PURE__ */ Re({
|
|
|
4228
4231
|
E,
|
|
4229
4232
|
k
|
|
4230
4233
|
), u.value = !1;
|
|
4231
|
-
}, { deserializeFilters: m } =
|
|
4234
|
+
}, { deserializeFilters: m } = Ar(r, o), g = (k) => {
|
|
4232
4235
|
const $ = k.data;
|
|
4233
4236
|
Ue($.datatableHiddenColumns) && Ue(l.value) && (l.value = $.datatableHiddenColumns), Ue($.sortBy) && (s.value = {
|
|
4234
4237
|
...s.value,
|
|
@@ -4244,11 +4247,11 @@ const Mc = { key: 0 }, Ic = 32, Br = /* @__PURE__ */ Re({
|
|
|
4244
4247
|
continue;
|
|
4245
4248
|
}
|
|
4246
4249
|
if (Ge(K)) {
|
|
4247
|
-
const V =
|
|
4250
|
+
const V = hr(K);
|
|
4248
4251
|
if (!se(V))
|
|
4249
4252
|
K = V;
|
|
4250
4253
|
else {
|
|
4251
|
-
const O =
|
|
4254
|
+
const O = pr(K);
|
|
4252
4255
|
se(O) || (K = O);
|
|
4253
4256
|
}
|
|
4254
4257
|
}
|
|
@@ -4269,9 +4272,9 @@ const Mc = { key: 0 }, Ic = 32, Br = /* @__PURE__ */ Re({
|
|
|
4269
4272
|
}
|
|
4270
4273
|
C.value = I;
|
|
4271
4274
|
};
|
|
4272
|
-
|
|
4275
|
+
Ms(c, (k) => {
|
|
4273
4276
|
k[0] && (d.value = k[0].contentRect.width);
|
|
4274
|
-
}),
|
|
4277
|
+
}), Is(
|
|
4275
4278
|
d,
|
|
4276
4279
|
(k, $) => {
|
|
4277
4280
|
k !== $ && T(k);
|
|
@@ -4373,7 +4376,7 @@ function qt() {
|
|
|
4373
4376
|
return e;
|
|
4374
4377
|
}, qt.apply(null, arguments);
|
|
4375
4378
|
}
|
|
4376
|
-
function
|
|
4379
|
+
function Wl(e, n) {
|
|
4377
4380
|
var t = Object.keys(e);
|
|
4378
4381
|
if (Object.getOwnPropertySymbols) {
|
|
4379
4382
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -4386,9 +4389,9 @@ function Kl(e, n) {
|
|
|
4386
4389
|
function Pt(e) {
|
|
4387
4390
|
for (var n = 1; n < arguments.length; n++) {
|
|
4388
4391
|
var t = arguments[n] != null ? arguments[n] : {};
|
|
4389
|
-
n % 2 ?
|
|
4392
|
+
n % 2 ? Wl(Object(t), !0).forEach(function(a) {
|
|
4390
4393
|
$c(e, a, t[a]);
|
|
4391
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
4394
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Wl(Object(t)).forEach(function(a) {
|
|
4392
4395
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
4393
4396
|
});
|
|
4394
4397
|
}
|
|
@@ -4439,15 +4442,15 @@ function Ht(e) {
|
|
|
4439
4442
|
if (typeof window < "u" && window.navigator)
|
|
4440
4443
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
4441
4444
|
}
|
|
4442
|
-
var Wt = Ht(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ca = Ht(/Edge/i),
|
|
4445
|
+
var Wt = Ht(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ca = Ht(/Edge/i), Gl = Ht(/firefox/i), Jn = Ht(/safari/i) && !Ht(/chrome/i) && !Ht(/android/i), al = Ht(/iP(ad|od|hone)/i), _r = Ht(/chrome/i) && Ht(/android/i), Rr = {
|
|
4443
4446
|
capture: !1,
|
|
4444
4447
|
passive: !1
|
|
4445
4448
|
};
|
|
4446
4449
|
function Ve(e, n, t) {
|
|
4447
|
-
e.addEventListener(n, t, !Wt &&
|
|
4450
|
+
e.addEventListener(n, t, !Wt && Rr);
|
|
4448
4451
|
}
|
|
4449
4452
|
function Ne(e, n, t) {
|
|
4450
|
-
e.removeEventListener(n, t, !Wt &&
|
|
4453
|
+
e.removeEventListener(n, t, !Wt && Rr);
|
|
4451
4454
|
}
|
|
4452
4455
|
function qa(e, n) {
|
|
4453
4456
|
if (n) {
|
|
@@ -4465,7 +4468,7 @@ function qa(e, n) {
|
|
|
4465
4468
|
return !1;
|
|
4466
4469
|
}
|
|
4467
4470
|
}
|
|
4468
|
-
function
|
|
4471
|
+
function Pr(e) {
|
|
4469
4472
|
return e.host && e !== document && e.host.nodeType && e.host !== e ? e.host : e.parentNode;
|
|
4470
4473
|
}
|
|
4471
4474
|
function It(e, n, t, a) {
|
|
@@ -4475,18 +4478,18 @@ function It(e, n, t, a) {
|
|
|
4475
4478
|
if (n != null && (n[0] === ">" ? e.parentNode === t && qa(e, n) : qa(e, n)) || a && e === t)
|
|
4476
4479
|
return e;
|
|
4477
4480
|
if (e === t) break;
|
|
4478
|
-
} while (e =
|
|
4481
|
+
} while (e = Pr(e));
|
|
4479
4482
|
}
|
|
4480
4483
|
return null;
|
|
4481
4484
|
}
|
|
4482
|
-
var
|
|
4485
|
+
var Xl = /\s+/g;
|
|
4483
4486
|
function pt(e, n, t) {
|
|
4484
4487
|
if (e && n)
|
|
4485
4488
|
if (e.classList)
|
|
4486
4489
|
e.classList[t ? "add" : "remove"](n);
|
|
4487
4490
|
else {
|
|
4488
|
-
var a = (" " + e.className + " ").replace(
|
|
4489
|
-
e.className = (a + (t ? " " + n : "")).replace(
|
|
4491
|
+
var a = (" " + e.className + " ").replace(Xl, " ").replace(" " + n + " ", " ");
|
|
4492
|
+
e.className = (a + (t ? " " + n : "")).replace(Xl, " ");
|
|
4490
4493
|
}
|
|
4491
4494
|
}
|
|
4492
4495
|
function be(e, n, t) {
|
|
@@ -4509,7 +4512,7 @@ function kn(e, n) {
|
|
|
4509
4512
|
var l = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
4510
4513
|
return l && new l(t);
|
|
4511
4514
|
}
|
|
4512
|
-
function
|
|
4515
|
+
function Lr(e, n, t) {
|
|
4513
4516
|
if (e) {
|
|
4514
4517
|
var a = e.getElementsByTagName(n), l = 0, o = a.length;
|
|
4515
4518
|
if (t)
|
|
@@ -4548,7 +4551,7 @@ function Qe(e, n, t, a, l) {
|
|
|
4548
4551
|
};
|
|
4549
4552
|
}
|
|
4550
4553
|
}
|
|
4551
|
-
function
|
|
4554
|
+
function Zl(e, n, t) {
|
|
4552
4555
|
for (var a = Qt(e, !0), l = Qe(e)[n]; a; ) {
|
|
4553
4556
|
var o = Qe(a)[t], r = void 0;
|
|
4554
4557
|
if (r = l >= o, !r) return a;
|
|
@@ -4581,7 +4584,7 @@ function kt(e, n) {
|
|
|
4581
4584
|
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== we.clone && (!n || qa(e, n)) && t++;
|
|
4582
4585
|
return t;
|
|
4583
4586
|
}
|
|
4584
|
-
function
|
|
4587
|
+
function Jl(e) {
|
|
4585
4588
|
var n = 0, t = 0, a = Rt();
|
|
4586
4589
|
if (e)
|
|
4587
4590
|
do {
|
|
@@ -4623,7 +4626,7 @@ function Ao(e, n) {
|
|
|
4623
4626
|
return Math.round(e.top) === Math.round(n.top) && Math.round(e.left) === Math.round(n.left) && Math.round(e.height) === Math.round(n.height) && Math.round(e.width) === Math.round(n.width);
|
|
4624
4627
|
}
|
|
4625
4628
|
var Qn;
|
|
4626
|
-
function
|
|
4629
|
+
function Nr(e, n) {
|
|
4627
4630
|
return function() {
|
|
4628
4631
|
if (!Qn) {
|
|
4629
4632
|
var t = arguments, a = this;
|
|
@@ -4636,14 +4639,14 @@ function Lr(e, n) {
|
|
|
4636
4639
|
function Nc() {
|
|
4637
4640
|
clearTimeout(Qn), Qn = void 0;
|
|
4638
4641
|
}
|
|
4639
|
-
function
|
|
4642
|
+
function Vr(e, n, t) {
|
|
4640
4643
|
e.scrollLeft += n, e.scrollTop += t;
|
|
4641
4644
|
}
|
|
4642
|
-
function
|
|
4645
|
+
function Ur(e) {
|
|
4643
4646
|
var n = window.Polymer, t = window.jQuery || window.Zepto;
|
|
4644
4647
|
return n && n.dom ? n.dom(e).cloneNode(!0) : t ? t(e).clone(!0)[0] : e.cloneNode(!0);
|
|
4645
4648
|
}
|
|
4646
|
-
function
|
|
4649
|
+
function Yr(e, n, t) {
|
|
4647
4650
|
var a = {};
|
|
4648
4651
|
return Array.from(e.children).forEach(function(l) {
|
|
4649
4652
|
var o, r, s, i;
|
|
@@ -4803,8 +4806,8 @@ var Hc = ["evt"], ft = function(n, t) {
|
|
|
4803
4806
|
oldDraggableIndex: ea,
|
|
4804
4807
|
newIndex: gt,
|
|
4805
4808
|
newDraggableIndex: Zt,
|
|
4806
|
-
hideGhostForTarget:
|
|
4807
|
-
unhideGhostForTarget:
|
|
4809
|
+
hideGhostForTarget: qr,
|
|
4810
|
+
unhideGhostForTarget: Kr,
|
|
4808
4811
|
cloneNowHidden: function() {
|
|
4809
4812
|
Jt = !0;
|
|
4810
4813
|
},
|
|
@@ -4832,14 +4835,14 @@ function ut(e) {
|
|
|
4832
4835
|
newDraggableIndex: Zt
|
|
4833
4836
|
}, e));
|
|
4834
4837
|
}
|
|
4835
|
-
var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa = [], on, Mt, Io, $o,
|
|
4838
|
+
var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa = [], on, Mt, Io, $o, Ql, er, Wn, bn, ta, na = !1, Fa = !1, Na, st, Fo = [], Yo = !1, Ga = [], uo = typeof document < "u", Ba = al, tr = Ca || Wt ? "cssFloat" : "float", jc = uo && !_r && !al && "draggable" in document.createElement("div"), zr = (function() {
|
|
4836
4839
|
if (uo) {
|
|
4837
4840
|
if (Wt)
|
|
4838
4841
|
return !1;
|
|
4839
4842
|
var e = document.createElement("x");
|
|
4840
4843
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
4841
4844
|
}
|
|
4842
|
-
})(),
|
|
4845
|
+
})(), Hr = function(n, t) {
|
|
4843
4846
|
var a = be(n), l = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), o = Mn(n, 0, t), r = Mn(n, 1, t), s = o && be(o), i = r && be(r), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Qe(o).width, c = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + Qe(r).width;
|
|
4844
4847
|
if (a.display === "flex")
|
|
4845
4848
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -4849,7 +4852,7 @@ var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa
|
|
|
4849
4852
|
var d = s.float === "left" ? "left" : "right";
|
|
4850
4853
|
return r && (i.clear === "both" || i.clear === d) ? "vertical" : "horizontal";
|
|
4851
4854
|
}
|
|
4852
|
-
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= l && a[
|
|
4855
|
+
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= l && a[tr] === "none" || r && a[tr] === "none" && u + c > l) ? "vertical" : "horizontal";
|
|
4853
4856
|
}, qc = function(n, t, a) {
|
|
4854
4857
|
var l = a ? n.left : n.top, o = a ? n.right : n.bottom, r = a ? n.width : n.height, s = a ? t.left : t.top, i = a ? t.right : t.bottom, u = a ? t.width : t.height;
|
|
4855
4858
|
return l === s || o === i || l + r / 2 === s + u / 2;
|
|
@@ -4863,7 +4866,7 @@ var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa
|
|
|
4863
4866
|
return a = l;
|
|
4864
4867
|
}
|
|
4865
4868
|
}), a;
|
|
4866
|
-
},
|
|
4869
|
+
}, jr = function(n) {
|
|
4867
4870
|
function t(o, r) {
|
|
4868
4871
|
return function(s, i, u, c) {
|
|
4869
4872
|
var d = s.options.group.name && i.options.group.name && s.options.group.name === i.options.group.name;
|
|
@@ -4883,12 +4886,12 @@ var ae, Ke, Te, je, sn, La, qe, Jt, Sn, gt, ea, Zt, $a, lt, wn = !1, Ka = !1, Wa
|
|
|
4883
4886
|
(!l || Uo(l) != "object") && (l = {
|
|
4884
4887
|
name: l
|
|
4885
4888
|
}), a.name = l.name, a.checkPull = t(l.pull, !0), a.checkPut = t(l.put), a.revertClone = l.revertClone, n.group = a;
|
|
4886
|
-
}, jr = function() {
|
|
4887
|
-
!Yr && Te && be(Te, "display", "none");
|
|
4888
4889
|
}, qr = function() {
|
|
4889
|
-
!
|
|
4890
|
+
!zr && Te && be(Te, "display", "none");
|
|
4891
|
+
}, Kr = function() {
|
|
4892
|
+
!zr && Te && be(Te, "display", "");
|
|
4890
4893
|
};
|
|
4891
|
-
uo && !
|
|
4894
|
+
uo && !_r && document.addEventListener("click", function(e) {
|
|
4892
4895
|
if (Ka)
|
|
4893
4896
|
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ka = !1, !1;
|
|
4894
4897
|
}, !0);
|
|
@@ -4925,7 +4928,7 @@ function we(e, n) {
|
|
|
4925
4928
|
// will be set to same as swapThreshold if default
|
|
4926
4929
|
removeCloneOnHide: !0,
|
|
4927
4930
|
direction: function() {
|
|
4928
|
-
return
|
|
4931
|
+
return Hr(e, this.options);
|
|
4929
4932
|
},
|
|
4930
4933
|
ghostClass: "sortable-ghost",
|
|
4931
4934
|
chosenClass: "sortable-chosen",
|
|
@@ -4959,7 +4962,7 @@ function we(e, n) {
|
|
|
4959
4962
|
Sa.initializePlugins(this, e, t);
|
|
4960
4963
|
for (var a in t)
|
|
4961
4964
|
!(a in n) && (n[a] = t[a]);
|
|
4962
|
-
|
|
4965
|
+
jr(n);
|
|
4963
4966
|
for (var l in this)
|
|
4964
4967
|
l.charAt(0) === "_" && typeof this[l] == "function" && (this[l] = this[l].bind(this));
|
|
4965
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) || []), qt(this, Vc());
|
|
@@ -5019,21 +5022,21 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5019
5022
|
target: ae,
|
|
5020
5023
|
clientX: (t || n).clientX,
|
|
5021
5024
|
clientY: (t || n).clientY
|
|
5022
|
-
},
|
|
5025
|
+
}, Ql = on.clientX - u.left, er = on.clientY - u.top, this._lastX = (t || n).clientX, this._lastY = (t || n).clientY, ae.style["will-change"] = "all", i = function() {
|
|
5023
5026
|
if (ft("delayEnded", l, {
|
|
5024
5027
|
evt: n
|
|
5025
5028
|
}), we.eventCanceled) {
|
|
5026
5029
|
l._onDrop();
|
|
5027
5030
|
return;
|
|
5028
5031
|
}
|
|
5029
|
-
l._disableDelayedDragEvents(), !
|
|
5032
|
+
l._disableDelayedDragEvents(), !Gl && l.nativeDraggable && (ae.draggable = !0), l._triggerDragStart(n, t), ut({
|
|
5030
5033
|
sortable: l,
|
|
5031
5034
|
name: "choose",
|
|
5032
5035
|
originalEvent: n
|
|
5033
5036
|
}), pt(ae, r.chosenClass, !0);
|
|
5034
5037
|
}, r.ignore.split(",").forEach(function(c) {
|
|
5035
|
-
|
|
5036
|
-
}), 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)),
|
|
5038
|
+
Lr(ae, c.trim(), Bo);
|
|
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)), Gl && this.nativeDraggable && (this.options.touchStartThreshold = 4, ae.draggable = !0), ft("delayStart", this, {
|
|
5037
5040
|
evt: n
|
|
5038
5041
|
}), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(Ca || Wt))) {
|
|
5039
5042
|
if (we.eventCanceled) {
|
|
@@ -5081,7 +5084,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5081
5084
|
},
|
|
5082
5085
|
_emulateDragOver: function() {
|
|
5083
5086
|
if (Mt) {
|
|
5084
|
-
this._lastX = Mt.clientX, this._lastY = Mt.clientY,
|
|
5087
|
+
this._lastX = Mt.clientX, this._lastY = Mt.clientY, qr();
|
|
5085
5088
|
for (var n = document.elementFromPoint(Mt.clientX, Mt.clientY), t = n; n && n.shadowRoot && (n = n.shadowRoot.elementFromPoint(Mt.clientX, Mt.clientY), n !== t); )
|
|
5086
5089
|
t = n;
|
|
5087
5090
|
if (ae.parentNode[vt]._isOutsideThisEl(n), t)
|
|
@@ -5097,13 +5100,13 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5097
5100
|
break;
|
|
5098
5101
|
}
|
|
5099
5102
|
n = t;
|
|
5100
|
-
} while (t =
|
|
5101
|
-
|
|
5103
|
+
} while (t = Pr(t));
|
|
5104
|
+
Kr();
|
|
5102
5105
|
}
|
|
5103
5106
|
},
|
|
5104
5107
|
_onTouchMove: function(n) {
|
|
5105
5108
|
if (on) {
|
|
5106
|
-
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 &&
|
|
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 && Jl(st), c = (o.clientX - on.clientX + l.x) / (s || 1) + (u ? u[0] - Fo[0] : 0) / (s || 1), d = (o.clientY - on.clientY + l.y) / (i || 1) + (u ? u[1] - Fo[1] : 0) / (i || 1);
|
|
5107
5110
|
if (!we.active && !wn) {
|
|
5108
5111
|
if (a && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < a)
|
|
5109
5112
|
return;
|
|
@@ -5130,9 +5133,9 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5130
5133
|
if (Ba) {
|
|
5131
5134
|
for (st = n; be(st, "position") === "static" && be(st, "transform") === "none" && st !== document; )
|
|
5132
5135
|
st = st.parentNode;
|
|
5133
|
-
st !== document.body && st !== document.documentElement ? (st === document && (st = Rt()), t.top += st.scrollTop, t.left += st.scrollLeft) : st = Rt(), Fo =
|
|
5136
|
+
st !== document.body && st !== document.documentElement ? (st === document && (st = Rt()), t.top += st.scrollTop, t.left += st.scrollLeft) : st = Rt(), Fo = Jl(st);
|
|
5134
5137
|
}
|
|
5135
|
-
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",
|
|
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", Ql / parseInt(Te.style.width) * 100 + "% " + er / parseInt(Te.style.height) * 100 + "%");
|
|
5136
5139
|
}
|
|
5137
5140
|
},
|
|
5138
5141
|
_onDragStart: function(n, t) {
|
|
@@ -5143,7 +5146,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5143
5146
|
this._onDrop();
|
|
5144
5147
|
return;
|
|
5145
5148
|
}
|
|
5146
|
-
ft("setupClone", this), we.eventCanceled || (qe =
|
|
5149
|
+
ft("setupClone", this), we.eventCanceled || (qe = Ur(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() {
|
|
5147
5150
|
ft("clone", a), !we.eventCanceled && (a.options.removeCloneOnHide || je.insertBefore(qe, ae), a._hideClone(), ut({
|
|
5148
5151
|
sortable: a,
|
|
5149
5152
|
name: "clone"
|
|
@@ -5213,7 +5216,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5213
5216
|
return m(), t.insertBefore(ae, A), Ke = t, T(), g(!0);
|
|
5214
5217
|
} else if (a.parentNode === t) {
|
|
5215
5218
|
o = Qe(a);
|
|
5216
|
-
var k = 0, $, H = ae.parentNode !== t, I = !qc(ae.animated && ae.toRect || l, a.animated && a.toRect || o, y), N = y ? "top" : "left", K =
|
|
5219
|
+
var k = 0, $, H = ae.parentNode !== t, I = !qc(ae.animated && ae.toRect || l, a.animated && a.toRect || o, y), N = y ? "top" : "left", K = Zl(a, "top", "top") || Zl(ae, "top", "top"), V = K ? K.scrollTop : void 0;
|
|
5217
5220
|
bn !== a && ($ = o[N], na = !1, Fa = !I && s.invertSwap || H), k = Qc(n, a, o, y, I ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, Fa, bn === a);
|
|
5218
5221
|
var O;
|
|
5219
5222
|
if (k !== 0) {
|
|
@@ -5229,7 +5232,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5229
5232
|
v = k === 1;
|
|
5230
5233
|
var w = Oa(je, t, ae, l, a, o, n, v);
|
|
5231
5234
|
if (w !== !1)
|
|
5232
|
-
return (w === 1 || w === -1) && (v = w === 1), Yo = !0, setTimeout(Xc, 30), m(), v && !h ? t.appendChild(ae) : a.parentNode.insertBefore(ae, v ? h : a), K &&
|
|
5235
|
+
return (w === 1 || w === -1) && (v = w === 1), Yo = !0, setTimeout(Xc, 30), m(), v && !h ? t.appendChild(ae) : a.parentNode.insertBefore(ae, v ? h : a), K && Vr(K, 0, V - K.scrollTop), Ke = ae.parentNode, $ !== void 0 && !Fa && (Na = Math.abs($ - Qe(a)[N])), T(), g(!0);
|
|
5233
5236
|
}
|
|
5234
5237
|
if (t.contains(ae))
|
|
5235
5238
|
return g(!1);
|
|
@@ -5369,7 +5372,7 @@ we.prototype = /** @lends Sortable.prototype */
|
|
|
5369
5372
|
if (t === void 0)
|
|
5370
5373
|
return a[n];
|
|
5371
5374
|
var l = Sa.modifyOption(this, n, t);
|
|
5372
|
-
typeof l < "u" ? a[n] = l : a[n] = t, n === "group" &&
|
|
5375
|
+
typeof l < "u" ? a[n] = l : a[n] = t, n === "group" && jr(a);
|
|
5373
5376
|
},
|
|
5374
5377
|
/**
|
|
5375
5378
|
* Destroy
|
|
@@ -5415,11 +5418,11 @@ function Xc() {
|
|
|
5415
5418
|
Yo = !1;
|
|
5416
5419
|
}
|
|
5417
5420
|
function Zc(e, n, t) {
|
|
5418
|
-
var a = Qe(Mn(t.el, 0, t.options, !0)), l =
|
|
5421
|
+
var a = Qe(Mn(t.el, 0, t.options, !0)), l = Yr(t.el, t.options, Te), o = 10;
|
|
5419
5422
|
return n ? e.clientX < l.left - o || e.clientY < a.top && e.clientX < a.right : e.clientY < l.top - o || e.clientY < a.bottom && e.clientX < a.left;
|
|
5420
5423
|
}
|
|
5421
5424
|
function Jc(e, n, t) {
|
|
5422
|
-
var a = Qe(ol(t.el, t.options.draggable)), l =
|
|
5425
|
+
var a = Qe(ol(t.el, t.options.draggable)), l = Yr(t.el, t.options, Te), o = 10;
|
|
5423
5426
|
return n ? e.clientX > l.right + o || e.clientY > a.bottom && e.clientX > a.left : e.clientY > l.bottom + o || e.clientX > a.right && e.clientY > a.top;
|
|
5424
5427
|
}
|
|
5425
5428
|
function Qc(e, n, t, a, l, o, r, s) {
|
|
@@ -5463,19 +5466,19 @@ we.utils = {
|
|
|
5463
5466
|
on: Ve,
|
|
5464
5467
|
off: Ne,
|
|
5465
5468
|
css: be,
|
|
5466
|
-
find:
|
|
5469
|
+
find: Lr,
|
|
5467
5470
|
is: function(n, t) {
|
|
5468
5471
|
return !!It(n, t, n, !1);
|
|
5469
5472
|
},
|
|
5470
5473
|
extend: Lc,
|
|
5471
|
-
throttle:
|
|
5474
|
+
throttle: Nr,
|
|
5472
5475
|
closest: It,
|
|
5473
5476
|
toggleClass: pt,
|
|
5474
|
-
clone:
|
|
5477
|
+
clone: Ur,
|
|
5475
5478
|
index: kt,
|
|
5476
5479
|
nextTick: Va,
|
|
5477
5480
|
cancelNextTick: zo,
|
|
5478
|
-
detectDirection:
|
|
5481
|
+
detectDirection: Hr,
|
|
5479
5482
|
getChild: Mn,
|
|
5480
5483
|
expando: vt
|
|
5481
5484
|
};
|
|
@@ -5518,7 +5521,7 @@ function ad() {
|
|
|
5518
5521
|
!this.options.dragOverBubble && !a.rootEl && this._handleAutoScroll(a);
|
|
5519
5522
|
},
|
|
5520
5523
|
drop: function() {
|
|
5521
|
-
this.sortable.nativeDraggable ? Ne(document, "dragover", this._handleAutoScroll) : (Ne(document, "pointermove", this._handleFallbackAutoScroll), Ne(document, "touchmove", this._handleFallbackAutoScroll), Ne(document, "mousemove", this._handleFallbackAutoScroll)),
|
|
5524
|
+
this.sortable.nativeDraggable ? Ne(document, "dragover", this._handleAutoScroll) : (Ne(document, "pointermove", this._handleFallbackAutoScroll), Ne(document, "touchmove", this._handleFallbackAutoScroll), Ne(document, "mousemove", this._handleFallbackAutoScroll)), nr(), Ua(), Nc();
|
|
5522
5525
|
},
|
|
5523
5526
|
nulling: function() {
|
|
5524
5527
|
Xa = Ho = Gn = jo = Xn = Oo = _o = null, Je.length = 0;
|
|
@@ -5531,7 +5534,7 @@ function ad() {
|
|
|
5531
5534
|
if (Xa = t, a || this.options.forceAutoScrollFallback || Ca || Wt || Jn) {
|
|
5532
5535
|
Ro(t, this.options, s, a);
|
|
5533
5536
|
var i = Qt(s, !0);
|
|
5534
|
-
jo && (!Xn || o !== Oo || r !== _o) && (Xn &&
|
|
5537
|
+
jo && (!Xn || o !== Oo || r !== _o) && (Xn && nr(), Xn = setInterval(function() {
|
|
5535
5538
|
var u = Qt(document.elementFromPoint(o, r), !0);
|
|
5536
5539
|
u !== i && (i = u, Ua()), Ro(t, l.options, u, a);
|
|
5537
5540
|
}, 10), Oo = o, _o = r);
|
|
@@ -5553,10 +5556,10 @@ function Ua() {
|
|
|
5553
5556
|
clearInterval(e.pid);
|
|
5554
5557
|
}), Je = [];
|
|
5555
5558
|
}
|
|
5556
|
-
function
|
|
5559
|
+
function nr() {
|
|
5557
5560
|
clearInterval(Xn);
|
|
5558
5561
|
}
|
|
5559
|
-
var Ro =
|
|
5562
|
+
var Ro = Nr(function(e, n, t, a) {
|
|
5560
5563
|
if (n.scroll) {
|
|
5561
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;
|
|
5562
5565
|
Ho !== t && (Ho = t, Ua(), Gn = n.scroll, c = n.scrollFn, Gn === !0 && (Gn = Qt(t, !0)));
|
|
@@ -5571,14 +5574,14 @@ var Ro = Lr(function(e, n, t, a) {
|
|
|
5571
5574
|
(Je[d].vx != V || Je[d].vy != O || Je[d].el !== y) && (Je[d].el = y, Je[d].vx = V, Je[d].vy = O, clearInterval(Je[d].pid), (V != 0 || O != 0) && (u = !0, Je[d].pid = setInterval((function() {
|
|
5572
5575
|
a && this.layer === 0 && we.active._onTouchMove(Xa);
|
|
5573
5576
|
var h = Je[this.layer].vy ? Je[this.layer].vy * s : 0, v = Je[this.layer].vx ? Je[this.layer].vx * s : 0;
|
|
5574
|
-
typeof c == "function" && c.call(we.dragged.parentNode[vt], v, h, e, Xa, Je[this.layer].el) !== "continue" ||
|
|
5577
|
+
typeof c == "function" && c.call(we.dragged.parentNode[vt], v, h, e, Xa, Je[this.layer].el) !== "continue" || Vr(Je[this.layer].el, v, h);
|
|
5575
5578
|
}).bind({
|
|
5576
5579
|
layer: d
|
|
5577
5580
|
}), 24))), d++;
|
|
5578
5581
|
} while (n.bubbleScroll && C !== i && (C = Qt(C, !1)));
|
|
5579
5582
|
jo = u;
|
|
5580
5583
|
}
|
|
5581
|
-
}, 30),
|
|
5584
|
+
}, 30), Wr = function(n) {
|
|
5582
5585
|
var t = n.originalEvent, a = n.putSortable, l = n.dragEl, o = n.activeSortable, r = n.dispatchSortableEvent, s = n.hideGhostForTarget, i = n.unhideGhostForTarget;
|
|
5583
5586
|
if (t) {
|
|
5584
5587
|
var u = a || o;
|
|
@@ -5604,7 +5607,7 @@ ll.prototype = {
|
|
|
5604
5607
|
var l = Mn(this.sortable.el, this.startIndex, this.options);
|
|
5605
5608
|
l ? this.sortable.el.insertBefore(t, l) : this.sortable.el.appendChild(t), this.sortable.animateAll(), a && a.animateAll();
|
|
5606
5609
|
},
|
|
5607
|
-
drop:
|
|
5610
|
+
drop: Wr
|
|
5608
5611
|
};
|
|
5609
5612
|
qt(ll, {
|
|
5610
5613
|
pluginName: "revertOnSpill"
|
|
@@ -5616,16 +5619,16 @@ rl.prototype = {
|
|
|
5616
5619
|
var t = n.dragEl, a = n.putSortable, l = a || this.sortable;
|
|
5617
5620
|
l.captureAnimationState(), t.parentNode && t.parentNode.removeChild(t), l.animateAll();
|
|
5618
5621
|
},
|
|
5619
|
-
drop:
|
|
5622
|
+
drop: Wr
|
|
5620
5623
|
};
|
|
5621
5624
|
qt(rl, {
|
|
5622
5625
|
pluginName: "removeOnSpill"
|
|
5623
5626
|
});
|
|
5624
5627
|
we.mount(new ad());
|
|
5625
5628
|
we.mount(rl, ll);
|
|
5626
|
-
function
|
|
5629
|
+
function Gr(e, n, t = {}) {
|
|
5627
5630
|
let a;
|
|
5628
|
-
const { document: l =
|
|
5631
|
+
const { document: l = $s, watchElement: o = !1, ...r } = t, s = { onUpdate: (E) => {
|
|
5629
5632
|
rd(n, E.oldIndex, E.newIndex, E);
|
|
5630
5633
|
} }, i = () => {
|
|
5631
5634
|
a?.destroy(), a = void 0;
|
|
@@ -5647,11 +5650,11 @@ function Wr(e, n, t = {}) {
|
|
|
5647
5650
|
}, {
|
|
5648
5651
|
immediate: !0,
|
|
5649
5652
|
flush: "post"
|
|
5650
|
-
}) :
|
|
5653
|
+
}) : Fs(c);
|
|
5651
5654
|
const y = () => {
|
|
5652
5655
|
i();
|
|
5653
5656
|
};
|
|
5654
|
-
return
|
|
5657
|
+
return Bs(() => {
|
|
5655
5658
|
C?.(), i();
|
|
5656
5659
|
}), {
|
|
5657
5660
|
stop: y,
|
|
@@ -5679,21 +5682,21 @@ function rd(e, n, t, a = null) {
|
|
|
5679
5682
|
const ot = [];
|
|
5680
5683
|
for (let e = 0; e < 256; ++e)
|
|
5681
5684
|
ot.push((e + 256).toString(16).slice(1));
|
|
5682
|
-
function
|
|
5685
|
+
function Xr(e, n = 0) {
|
|
5683
5686
|
return (ot[e[n + 0]] + ot[e[n + 1]] + ot[e[n + 2]] + ot[e[n + 3]] + "-" + ot[e[n + 4]] + ot[e[n + 5]] + "-" + ot[e[n + 6]] + ot[e[n + 7]] + "-" + ot[e[n + 8]] + ot[e[n + 9]] + "-" + ot[e[n + 10]] + ot[e[n + 11]] + ot[e[n + 12]] + ot[e[n + 13]] + ot[e[n + 14]] + ot[e[n + 15]]).toLowerCase();
|
|
5684
5687
|
}
|
|
5685
5688
|
const sd = new Uint8Array(16);
|
|
5686
|
-
function
|
|
5689
|
+
function Zr() {
|
|
5687
5690
|
return crypto.getRandomValues(sd);
|
|
5688
5691
|
}
|
|
5689
5692
|
const zn = {};
|
|
5690
5693
|
function id(e, n, t) {
|
|
5691
5694
|
let a;
|
|
5692
5695
|
{
|
|
5693
|
-
const l = Date.now(), o =
|
|
5696
|
+
const l = Date.now(), o = Zr();
|
|
5694
5697
|
ud(zn, l, o), a = cd(o, zn.msecs, zn.nsecs, zn.clockseq, zn.node, n, t);
|
|
5695
5698
|
}
|
|
5696
|
-
return n ??
|
|
5699
|
+
return n ?? Xr(a);
|
|
5697
5700
|
}
|
|
5698
5701
|
function ud(e, n, t) {
|
|
5699
5702
|
return e.msecs ??= -1 / 0, e.nsecs ??= 0, n === e.msecs ? (e.nsecs++, e.nsecs >= 1e4 && (e.node = void 0, e.nsecs = 0)) : n > e.msecs ? e.nsecs = 0 : n < e.msecs && (e.node = void 0), e.node || (e.node = t.slice(10, 16), e.node[0] |= 1, e.clockseq = (t[8] << 8 | t[9]) & 16383), e.msecs = n, e;
|
|
@@ -5719,12 +5722,12 @@ function dd(e, n, t) {
|
|
|
5719
5722
|
}
|
|
5720
5723
|
function fd(e, n, t) {
|
|
5721
5724
|
e = e || {};
|
|
5722
|
-
const a = e.random ?? e.rng?.() ??
|
|
5725
|
+
const a = e.random ?? e.rng?.() ?? Zr();
|
|
5723
5726
|
if (a.length < 16)
|
|
5724
5727
|
throw new Error("Random bytes length must be >= 16");
|
|
5725
|
-
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128,
|
|
5728
|
+
return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Xr(a);
|
|
5726
5729
|
}
|
|
5727
|
-
const md = () => id(), _v = () => dd(), Hn = "a-sortable-widget__handle", vd = "a-sortable-widget__ghost", hd = "a-sortable-widget__drag", pd = "a-sortable-widget__chosen",
|
|
5730
|
+
const md = () => id(), _v = () => dd(), Hn = "a-sortable-widget__handle", vd = "a-sortable-widget__ghost", hd = "a-sortable-widget__drag", pd = "a-sortable-widget__chosen", ar = "a-sortable-widget__group";
|
|
5728
5731
|
function gd(e, n, t, a) {
|
|
5729
5732
|
const l = U(!1), o = U(null), r = U(null), s = U(md()), i = U(null), u = U(0), c = U(t.dirty);
|
|
5730
5733
|
function d(O, b) {
|
|
@@ -5845,7 +5848,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5845
5848
|
},
|
|
5846
5849
|
emits: ["update:modelValue", "update:dirty", "onStart", "onEnd", "onAddAfter", "onAddLast", "onEdit", "onDelete"],
|
|
5847
5850
|
setup(e, { expose: n, emit: t }) {
|
|
5848
|
-
const a = e, l = t, o =
|
|
5851
|
+
const a = e, l = t, o = Ss(() => a.modelValue), { t: r } = Ye(), s = (v) => {
|
|
5849
5852
|
l("onAddAfter", v);
|
|
5850
5853
|
}, i = (v) => {
|
|
5851
5854
|
if (g.value = v, a.disableDeleteDialog) {
|
|
@@ -5863,8 +5866,8 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5863
5866
|
l("onAddLast", null);
|
|
5864
5867
|
}, d = R(() => F(a.widgetIdentifierId) ? yd + I.value : a.widgetIdentifierId), C = R(() => a.rootClassName + " " + (a.chips ? a.rootClassName + "--chips" : "")), y = () => {
|
|
5865
5868
|
if (a.disableDraggable || !H.value) return;
|
|
5866
|
-
const v = H.value.querySelector("." +
|
|
5867
|
-
v && ($.value =
|
|
5869
|
+
const v = H.value.querySelector("." + ar);
|
|
5870
|
+
v && ($.value = Gr(v, [], {
|
|
5868
5871
|
handle: "." + Hn,
|
|
5869
5872
|
ghostClass: vd,
|
|
5870
5873
|
dragClass: hd,
|
|
@@ -5930,7 +5933,7 @@ const yd = "a-sortable-", bd = ["id"], wd = { key: 1 }, Cd = { class: "a-sortabl
|
|
|
5930
5933
|
}, [
|
|
5931
5934
|
(_(), de("div", {
|
|
5932
5935
|
key: L(p),
|
|
5933
|
-
class: rt(L(
|
|
5936
|
+
class: rt(L(ar))
|
|
5934
5937
|
}, [
|
|
5935
5938
|
(_(!0), de(We, null, en(L(E), (j, J) => (_(), de(We, {
|
|
5936
5939
|
key: j.key
|
|
@@ -6188,7 +6191,7 @@ const xd = {
|
|
|
6188
6191
|
},
|
|
6189
6192
|
emits: ["onClose"],
|
|
6190
6193
|
setup(e, { emit: n }) {
|
|
6191
|
-
const t = e, a = n, l = me(ht), o = me(Ct), r = me(
|
|
6194
|
+
const t = e, a = n, l = me(ht), o = me(Ct), r = me(Mr);
|
|
6192
6195
|
if (F(r) || F(l) || F(o))
|
|
6193
6196
|
throw new Error("Incorrect provide/inject config.");
|
|
6194
6197
|
const s = U("add"), i = U(""), u = U(!1), c = U(!1), d = U(!1), C = U(!1), y = U(!1), E = U([]), p = U(null), { required: f, maxLength: m } = nl(), g = {
|
|
@@ -6201,7 +6204,7 @@ const xd = {
|
|
|
6201
6204
|
required: f,
|
|
6202
6205
|
maxLength: m(100)
|
|
6203
6206
|
}
|
|
6204
|
-
}, A = ra(P, { itemEdit: p }, { $stopPropagation: !0 }), k =
|
|
6207
|
+
}, A = ra(P, { itemEdit: p }, { $stopPropagation: !0 }), k = Fr(), {
|
|
6205
6208
|
createUserAdminConfig: $,
|
|
6206
6209
|
useFetchUserAdminConfigList: H,
|
|
6207
6210
|
updateUserAdminConfigPositions: I,
|
|
@@ -6209,7 +6212,7 @@ const xd = {
|
|
|
6209
6212
|
updateUserAdminConfig: K
|
|
6210
6213
|
} = (
|
|
6211
6214
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
6212
|
-
|
|
6215
|
+
Br(t.client, t.system)
|
|
6213
6216
|
), { t: V } = Ye(), { showErrorsDefault: O, showValidationError: b, showWarningT: h } = Nn(), { createDefaultUserAdminConfig: v } = Ed(), w = async () => {
|
|
6214
6217
|
d.value = !0;
|
|
6215
6218
|
const ee = E.value.map((Fe) => Fe.id);
|
|
@@ -6218,7 +6221,7 @@ const xd = {
|
|
|
6218
6221
|
} catch (Fe) {
|
|
6219
6222
|
O(Fe), d.value = !1;
|
|
6220
6223
|
}
|
|
6221
|
-
}, { serializeFilters: D } =
|
|
6224
|
+
}, { serializeFilters: D } = Ar(o, l), B = t.system + "_" + t.subject, j = async () => {
|
|
6222
6225
|
d.value = !0, y.value = !1;
|
|
6223
6226
|
const Z = v(t.system);
|
|
6224
6227
|
Z.user = t.user, Z.configType = ja.FilterBookmark, Z.layoutType = dn.Desktop, Z.systemResource = B, Z.customName = i.value, Z.data = {
|
|
@@ -6246,7 +6249,7 @@ const xd = {
|
|
|
6246
6249
|
Fe
|
|
6247
6250
|
), a("onClose");
|
|
6248
6251
|
} catch (ee) {
|
|
6249
|
-
if (
|
|
6252
|
+
if (Cr(ee) && Gi(
|
|
6250
6253
|
ee,
|
|
6251
6254
|
"error_field_not_unique",
|
|
6252
6255
|
"cms.userAdminConfig.model.systemResource"
|
|
@@ -6330,7 +6333,7 @@ const xd = {
|
|
|
6330
6333
|
}),
|
|
6331
6334
|
x(Qa, { class: "pt-0" }, {
|
|
6332
6335
|
default: M(() => [
|
|
6333
|
-
x(
|
|
6336
|
+
x(Js, {
|
|
6334
6337
|
modelValue: s.value,
|
|
6335
6338
|
"onUpdate:modelValue": ee[1] || (ee[1] = (fe) => s.value = fe),
|
|
6336
6339
|
"fixed-tabs": ""
|
|
@@ -6374,7 +6377,7 @@ const xd = {
|
|
|
6374
6377
|
}),
|
|
6375
6378
|
x(un, null, {
|
|
6376
6379
|
default: M(() => [
|
|
6377
|
-
x(
|
|
6380
|
+
x(zl, {
|
|
6378
6381
|
modelValue: u.value,
|
|
6379
6382
|
"onUpdate:modelValue": ee[3] || (ee[3] = (fe) => u.value = fe),
|
|
6380
6383
|
label: L(V)("common.filter.bookmark.storeTableColumns")
|
|
@@ -6384,7 +6387,7 @@ const xd = {
|
|
|
6384
6387
|
}),
|
|
6385
6388
|
x(un, null, {
|
|
6386
6389
|
default: M(() => [
|
|
6387
|
-
x(
|
|
6390
|
+
x(zl, {
|
|
6388
6391
|
modelValue: c.value,
|
|
6389
6392
|
"onUpdate:modelValue": ee[4] || (ee[4] = (fe) => c.value = fe),
|
|
6390
6393
|
label: L(V)("common.filter.bookmark.storeTableOrder")
|
|
@@ -6498,7 +6501,7 @@ const xd = {
|
|
|
6498
6501
|
});
|
|
6499
6502
|
};
|
|
6500
6503
|
}
|
|
6501
|
-
}),
|
|
6504
|
+
}), Jr = /* @__PURE__ */ Re({
|
|
6502
6505
|
__name: "AFilterBookmarkButton",
|
|
6503
6506
|
props: /* @__PURE__ */ tt({
|
|
6504
6507
|
client: {},
|
|
@@ -6605,7 +6608,7 @@ const xd = {
|
|
|
6605
6608
|
return n({
|
|
6606
6609
|
submit: C,
|
|
6607
6610
|
reset: f
|
|
6608
|
-
}), (T, P) => (_(), te(
|
|
6611
|
+
}), (T, P) => (_(), te(ur, {
|
|
6609
6612
|
name: e.formName,
|
|
6610
6613
|
onSubmit: De(C, ["prevent"])
|
|
6611
6614
|
}, {
|
|
@@ -6617,7 +6620,7 @@ const xd = {
|
|
|
6617
6620
|
e.store && e.userId && L(Ue)(e.client) ? (_(), te(Yt, { key: 0 }, {
|
|
6618
6621
|
default: M(() => [
|
|
6619
6622
|
Ie("div", Bd, [
|
|
6620
|
-
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(
|
|
6623
|
+
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(Or, {
|
|
6621
6624
|
key: 0,
|
|
6622
6625
|
"datatable-hidden-columns": o.value,
|
|
6623
6626
|
"onUpdate:datatableHiddenColumns": P[0] || (P[0] = (A) => o.value = A),
|
|
@@ -6647,10 +6650,10 @@ const xd = {
|
|
|
6647
6650
|
xl: L(s).fields[A].render.xl || 12
|
|
6648
6651
|
}, {
|
|
6649
6652
|
default: M(() => [
|
|
6650
|
-
ke(T.$slots, L(
|
|
6653
|
+
ke(T.$slots, L(Ir)(A), {
|
|
6651
6654
|
itemConfig: L(s).fields[A]
|
|
6652
6655
|
}, () => [
|
|
6653
|
-
x(
|
|
6656
|
+
x($r, { name: A }, null, 8, ["name"])
|
|
6654
6657
|
])
|
|
6655
6658
|
]),
|
|
6656
6659
|
_: 2
|
|
@@ -6662,9 +6665,9 @@ const xd = {
|
|
|
6662
6665
|
]),
|
|
6663
6666
|
e.hideButtons ? ve("", !0) : (_(), de("div", Od, [
|
|
6664
6667
|
ke(T.$slots, "buttons", {}, () => [
|
|
6665
|
-
x(
|
|
6666
|
-
x(
|
|
6667
|
-
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(
|
|
6668
|
+
x(Er, { touched: m.value }, null, 8, ["touched"]),
|
|
6669
|
+
x(xr, { onReset: f }),
|
|
6670
|
+
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(Jr, {
|
|
6668
6671
|
key: 0,
|
|
6669
6672
|
client: e.client,
|
|
6670
6673
|
user: e.userId,
|
|
@@ -6700,7 +6703,8 @@ const xd = {
|
|
|
6700
6703
|
itemTitle: { default: "name" },
|
|
6701
6704
|
itemValue: { default: "id" },
|
|
6702
6705
|
minSearchChars: { default: 2 },
|
|
6703
|
-
minSearchText: { default: void 0 }
|
|
6706
|
+
minSearchText: { default: void 0 },
|
|
6707
|
+
prefetch: { type: [String, Boolean], default: !1 }
|
|
6704
6708
|
}, {
|
|
6705
6709
|
search: { default: "", required: !1 },
|
|
6706
6710
|
searchModifiers: {},
|
|
@@ -6744,7 +6748,7 @@ const xd = {
|
|
|
6744
6748
|
se(t.filterSortBy) ? null : t.filterSortBy.key,
|
|
6745
6749
|
t.filterSortBy?.order
|
|
6746
6750
|
), P = () => {
|
|
6747
|
-
g.value = !0, a("focus", E.value);
|
|
6751
|
+
g.value = !0, t.prefetch === "focus" && r.value.size === 0 && !o.value && N(l.value), a("focus", E.value);
|
|
6748
6752
|
}, A = () => {
|
|
6749
6753
|
g.value = !1, t.v?.$touch(), a("blur", E.value);
|
|
6750
6754
|
}, k = R(() => F(t.errorMessage) ? t.v?.$errors?.length ? t.v.$errors.map((b) => b.$message) : [] : [t.errorMessage]), $ = R(() => {
|
|
@@ -7002,7 +7006,7 @@ const xd = {
|
|
|
7002
7006
|
return a.alwaysVisible && (r.value = !0), n({
|
|
7003
7007
|
submit: C,
|
|
7004
7008
|
reset: f
|
|
7005
|
-
}), (P, A) => (_(), te(
|
|
7009
|
+
}), (P, A) => (_(), te(ur, {
|
|
7006
7010
|
name: e.formName,
|
|
7007
7011
|
onSubmit: De(C, ["prevent"])
|
|
7008
7012
|
}, {
|
|
@@ -7027,7 +7031,7 @@ const xd = {
|
|
|
7027
7031
|
default: M(() => [
|
|
7028
7032
|
ke(P.$slots, "bookmarks", {}, () => [
|
|
7029
7033
|
Ie("div", Nd, [
|
|
7030
|
-
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(
|
|
7034
|
+
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(Or, {
|
|
7031
7035
|
key: 0,
|
|
7032
7036
|
"datatable-hidden-columns": o.value,
|
|
7033
7037
|
"onUpdate:datatableHiddenColumns": A[0] || (A[0] = (k) => o.value = k),
|
|
@@ -7080,9 +7084,9 @@ const xd = {
|
|
|
7080
7084
|
}, {
|
|
7081
7085
|
default: M(() => [
|
|
7082
7086
|
ke(P.$slots, "buttons", {}, () => [
|
|
7083
|
-
x(
|
|
7084
|
-
x(
|
|
7085
|
-
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(
|
|
7087
|
+
x(Er, { touched: g.value }, null, 8, ["touched"]),
|
|
7088
|
+
x(xr, { onReset: f }),
|
|
7089
|
+
u.value.system && u.value.subject && e.userId && L(Ue)(e.client) ? (_(), te(Jr, {
|
|
7086
7090
|
key: 0,
|
|
7087
7091
|
client: e.client,
|
|
7088
7092
|
user: e.userId,
|
|
@@ -7098,7 +7102,7 @@ const xd = {
|
|
|
7098
7102
|
_: 3
|
|
7099
7103
|
})),
|
|
7100
7104
|
e.hideMore ? ve("", !0) : (_(), de("div", Yd, [
|
|
7101
|
-
(_(), te(
|
|
7105
|
+
(_(), te(lr(e.alwaysVisible ? "div" : "VSlideYTransition"), null, {
|
|
7102
7106
|
default: M(() => [
|
|
7103
7107
|
la(Ie("div", {
|
|
7104
7108
|
class: rt({ "mt-6 pa-4 system-border-a": !e.alwaysVisible })
|
|
@@ -7115,10 +7119,10 @@ const xd = {
|
|
|
7115
7119
|
xl: L(s).fields[k].render.xl || 2
|
|
7116
7120
|
}, {
|
|
7117
7121
|
default: M(() => [
|
|
7118
|
-
ke(P.$slots, L(
|
|
7122
|
+
ke(P.$slots, L(Ir)(k), {
|
|
7119
7123
|
itemConfig: L(s).fields[k]
|
|
7120
7124
|
}, () => [
|
|
7121
|
-
x(
|
|
7125
|
+
x($r, { name: k }, null, 8, ["name"])
|
|
7122
7126
|
])
|
|
7123
7127
|
]),
|
|
7124
7128
|
_: 2
|
|
@@ -7128,7 +7132,7 @@ const xd = {
|
|
|
7128
7132
|
})
|
|
7129
7133
|
])
|
|
7130
7134
|
], 2), [
|
|
7131
|
-
[
|
|
7135
|
+
[ks, r.value]
|
|
7132
7136
|
])
|
|
7133
7137
|
]),
|
|
7134
7138
|
_: 3
|
|
@@ -7142,15 +7146,15 @@ const xd = {
|
|
|
7142
7146
|
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)));
|
|
7143
7147
|
});
|
|
7144
7148
|
function zd(e, n = 769) {
|
|
7145
|
-
const { width: t } =
|
|
7149
|
+
const { width: t } = Os(e), a = R(() => t.value > 0 && t.value < n);
|
|
7146
7150
|
return { width: t, isNarrow: a };
|
|
7147
7151
|
}
|
|
7148
7152
|
function Hd() {
|
|
7149
|
-
const e =
|
|
7153
|
+
const e = rr("(any-pointer: fine)");
|
|
7150
7154
|
return R(() => !e.value);
|
|
7151
7155
|
}
|
|
7152
7156
|
function jd() {
|
|
7153
|
-
const e =
|
|
7157
|
+
const e = rr("(any-pointer: coarse)");
|
|
7154
7158
|
return R(() => e.value);
|
|
7155
7159
|
}
|
|
7156
7160
|
function qd(e) {
|
|
@@ -7287,7 +7291,7 @@ const Kd = (e) => [...e].sort((n, t) => n.position - t.position), Wd = (e, n = [
|
|
|
7287
7291
|
};
|
|
7288
7292
|
let Zd = 0;
|
|
7289
7293
|
const qo = () => --Zd;
|
|
7290
|
-
function
|
|
7294
|
+
function Qr(e) {
|
|
7291
7295
|
const n = typeof e.getKey == "function" ? null : e.getKey ?? "id", t = (z) => typeof e.getKey == "function" ? e.getKey(z) : z[n], a = e.position ?? "position", l = a !== !1, o = typeof a == "object" ? a.field : a === !1 ? "position" : a, r = typeof a == "object" && a.multiplier ? a.multiplier : 1, s = typeof a == "object" && a.strategy || "renumber", i = typeof a == "object" && a.strategyOverrides || {}, u = R(() => e.get()), c = R(() => En(e.dirtyExclude) ?? []), d = (z, W) => z === "id" && typeof W == "number" && W < 0 ? void 0 : W, C = (z) => {
|
|
7292
7296
|
const W = { ...z };
|
|
7293
7297
|
l && delete W[o];
|
|
@@ -7850,7 +7854,7 @@ const sl = /* @__PURE__ */ Symbol(
|
|
|
7850
7854
|
"le.stateScope"
|
|
7851
7855
|
);
|
|
7852
7856
|
let of = 0;
|
|
7853
|
-
function
|
|
7857
|
+
function es() {
|
|
7854
7858
|
const e = `les${++of}`, n = /* @__PURE__ */ new Map(), t = bo(), a = (o, r) => {
|
|
7855
7859
|
r.children?.dispose(), r.scope.stop(), n.delete(o);
|
|
7856
7860
|
}, l = {
|
|
@@ -7870,7 +7874,7 @@ function Qr() {
|
|
|
7870
7874
|
},
|
|
7871
7875
|
childScope(o) {
|
|
7872
7876
|
const r = n.get(o);
|
|
7873
|
-
return r ? (r.children || (r.children = r.scope.run(() =>
|
|
7877
|
+
return r ? (r.children || (r.children = r.scope.run(() => es()) ?? null), r.children) : null;
|
|
7874
7878
|
},
|
|
7875
7879
|
prefixFor(o) {
|
|
7876
7880
|
return `${e}:${String(o)}`;
|
|
@@ -7896,13 +7900,13 @@ function Qr() {
|
|
|
7896
7900
|
n.clear(), t.stop();
|
|
7897
7901
|
}
|
|
7898
7902
|
};
|
|
7899
|
-
return
|
|
7903
|
+
return Ds() && Es(() => l.dispose()), l;
|
|
7900
7904
|
}
|
|
7901
7905
|
function lf(e) {
|
|
7902
|
-
const n = e ??
|
|
7906
|
+
const n = e ?? es();
|
|
7903
7907
|
return fn(sl, n), n;
|
|
7904
7908
|
}
|
|
7905
|
-
const
|
|
7909
|
+
const ts = (e) => {
|
|
7906
7910
|
const n = e.get();
|
|
7907
7911
|
return { ...e, get: () => n, set: () => {
|
|
7908
7912
|
} };
|
|
@@ -7913,7 +7917,7 @@ function rf(e, n) {
|
|
|
7913
7917
|
const a = $t()?.uid ?? null, l = t.resolve(
|
|
7914
7918
|
e,
|
|
7915
7919
|
n,
|
|
7916
|
-
(o) =>
|
|
7920
|
+
(o) => Qr({
|
|
7917
7921
|
get: () => o.value.get(),
|
|
7918
7922
|
set: (r) => o.value.set(r),
|
|
7919
7923
|
// `factory?.()` → undefined reproduces the "no factory" no-op of `addItem` exactly.
|
|
@@ -7927,7 +7931,7 @@ function rf(e, n) {
|
|
|
7927
7931
|
a
|
|
7928
7932
|
);
|
|
7929
7933
|
return $t() && ua(
|
|
7930
|
-
() => t.release(e, a,
|
|
7934
|
+
() => t.release(e, a, ts)
|
|
7931
7935
|
), { handle: l, childScope: t.childScope(e) };
|
|
7932
7936
|
}
|
|
7933
7937
|
function Vv(e, n) {
|
|
@@ -7950,7 +7954,7 @@ function Vv(e, n) {
|
|
|
7950
7954
|
a
|
|
7951
7955
|
);
|
|
7952
7956
|
return $t() && ua(
|
|
7953
|
-
() => t.release(e, a,
|
|
7957
|
+
() => t.release(e, a, ts)
|
|
7954
7958
|
), { handle: l, childScope: t.childScope(e) };
|
|
7955
7959
|
}
|
|
7956
7960
|
function sf(e, n) {
|
|
@@ -7958,7 +7962,7 @@ function sf(e, n) {
|
|
|
7958
7962
|
const t = e[n.compactField];
|
|
7959
7963
|
return t == null || t === "" ? "" : String(t);
|
|
7960
7964
|
}
|
|
7961
|
-
const
|
|
7965
|
+
const ns = /* @__PURE__ */ Symbol("unsaved.sections");
|
|
7962
7966
|
function uf() {
|
|
7963
7967
|
const e = Kt(/* @__PURE__ */ new Map()), n = R(() => {
|
|
7964
7968
|
const t = [];
|
|
@@ -7979,10 +7983,10 @@ function uf() {
|
|
|
7979
7983
|
}
|
|
7980
7984
|
function Uv() {
|
|
7981
7985
|
const e = uf();
|
|
7982
|
-
return $t() && fn(
|
|
7986
|
+
return $t() && fn(ns, e), e;
|
|
7983
7987
|
}
|
|
7984
7988
|
function cf(e) {
|
|
7985
|
-
const n = me(
|
|
7989
|
+
const n = me(ns, null);
|
|
7986
7990
|
if (!n || !$t()) return;
|
|
7987
7991
|
const t = /* @__PURE__ */ Symbol("unsaved.section"), a = R(() => {
|
|
7988
7992
|
const l = e();
|
|
@@ -8093,7 +8097,7 @@ function vf(e) {
|
|
|
8093
8097
|
}
|
|
8094
8098
|
);
|
|
8095
8099
|
}
|
|
8096
|
-
const
|
|
8100
|
+
const or = /* @__PURE__ */ Symbol(
|
|
8097
8101
|
"le.sharedReorderRegistry"
|
|
8098
8102
|
);
|
|
8099
8103
|
function hf(e) {
|
|
@@ -8154,7 +8158,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8154
8158
|
default: M(() => [
|
|
8155
8159
|
x(In, null, {
|
|
8156
8160
|
default: M(() => [
|
|
8157
|
-
x(
|
|
8161
|
+
x(sr, { class: "text-headline-small" }, {
|
|
8158
8162
|
default: M(() => [
|
|
8159
8163
|
ge(ie(e.title), 1)
|
|
8160
8164
|
]),
|
|
@@ -8163,7 +8167,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8163
8167
|
x(Qa, null, {
|
|
8164
8168
|
default: M(() => [
|
|
8165
8169
|
ge(ie(e.text) + " ", 1),
|
|
8166
|
-
e.error ? (_(), te(
|
|
8170
|
+
e.error ? (_(), te(fr, {
|
|
8167
8171
|
key: 0,
|
|
8168
8172
|
type: "error",
|
|
8169
8173
|
variant: "tonal",
|
|
@@ -8250,7 +8254,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8250
8254
|
default: M(() => [
|
|
8251
8255
|
x(In, null, {
|
|
8252
8256
|
default: M(() => [
|
|
8253
|
-
x(
|
|
8257
|
+
x(sr, null, {
|
|
8254
8258
|
default: M(() => [
|
|
8255
8259
|
ge(ie(L(o)("common.sortable.moveToPosition.title")), 1)
|
|
8256
8260
|
]),
|
|
@@ -8483,7 +8487,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8483
8487
|
}),
|
|
8484
8488
|
emits: /* @__PURE__ */ tt(["edit", "deleted", "close", "item-saved", "item-expand", "reorder-start", "reorder-cancel", "reorder-applied", "reorder-apply-error", "reorder-end"], ["update:modelValue", "update:mode"]),
|
|
8485
8489
|
setup(e, { expose: n, emit: t }) {
|
|
8486
|
-
const a = e, l = t, o = ct(e, "modelValue"), r = ct(e, "mode"), { t: s } = Ye(), i =
|
|
8490
|
+
const a = e, l = t, o = ct(e, "modelValue"), r = ct(e, "mode"), { t: s } = Ye(), i = xs(), u = zt("rootEl"), { isNarrow: c } = zd(u), d = Hd(), C = jd(), y = {
|
|
8487
8491
|
get: () => o.value,
|
|
8488
8492
|
set: (S) => o.value = S,
|
|
8489
8493
|
factory: a.factory,
|
|
@@ -8491,7 +8495,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8491
8495
|
position: a.position,
|
|
8492
8496
|
dirtyExclude: () => a.dirtyExclude ?? [],
|
|
8493
8497
|
validate: a.validate
|
|
8494
|
-
}, E = a.editor ? null : rf(a.stateKey, y), p = a.editor ?? E?.handle ??
|
|
8498
|
+
}, E = a.editor ? null : rf(a.stateKey, y), p = a.editor ?? E?.handle ?? Qr(y), f = a.getKey ?? "id", m = lf(E?.childScope ?? null), g = (S) => typeof f == "function" ? f(S) : S[f], T = R(() => {
|
|
8495
8499
|
const S = a.position;
|
|
8496
8500
|
return S === void 0 || S === !1 ? "position" : typeof S == "object" ? S.field : S;
|
|
8497
8501
|
}), P = R(
|
|
@@ -8589,10 +8593,10 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8589
8593
|
reorderApplyError: (S) => l("reorder-apply-error", S),
|
|
8590
8594
|
reorderEnd: () => l("reorder-end")
|
|
8591
8595
|
}
|
|
8592
|
-
}), ue = a.embedded ? null :
|
|
8596
|
+
}), ue = a.embedded ? null : Ts(
|
|
8593
8597
|
/* @__PURE__ */ new Map()
|
|
8594
8598
|
);
|
|
8595
|
-
ue && fn(
|
|
8599
|
+
ue && fn(or, {
|
|
8596
8600
|
register: (G, q, ye, Tt) => {
|
|
8597
8601
|
ue.set(G, { count: q, hasChanges: ye, validateAll: Tt });
|
|
8598
8602
|
},
|
|
@@ -8618,7 +8622,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8618
8622
|
() => oe.value || $.value.size > 0 || I.value.size > 0
|
|
8619
8623
|
);
|
|
8620
8624
|
if (a.embedded) {
|
|
8621
|
-
const S = me(
|
|
8625
|
+
const S = me(or, null);
|
|
8622
8626
|
if (S) {
|
|
8623
8627
|
const G = /* @__PURE__ */ Symbol("le.embedded");
|
|
8624
8628
|
S.register(G, pe, Be, () => fo()), ua(() => S.unregister(G));
|
|
@@ -8666,11 +8670,11 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8666
8670
|
for (const ye of hn.keys())
|
|
8667
8671
|
q.has(ye) || hn.delete(ye);
|
|
8668
8672
|
return G;
|
|
8669
|
-
}), il = R(() => Ot.value.length === 0), et = (S) => Ot.value.find((G) => G.key === S),
|
|
8673
|
+
}), il = R(() => Ot.value.length === 0), et = (S) => Ot.value.find((G) => G.key === S), as = (S) => {
|
|
8670
8674
|
if (!O.value) return;
|
|
8671
8675
|
const G = et(S);
|
|
8672
8676
|
G && D(G);
|
|
8673
|
-
},
|
|
8677
|
+
}, os = () => {
|
|
8674
8678
|
if (O.value)
|
|
8675
8679
|
for (const S of Ot.value) D(S);
|
|
8676
8680
|
}, fo = () => mf(p, (S) => {
|
|
@@ -8714,14 +8718,14 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8714
8718
|
G && go(G.index);
|
|
8715
8719
|
},
|
|
8716
8720
|
onCancelReorder: () => z()
|
|
8717
|
-
}), mo = U(!1), gn = oa(null),
|
|
8721
|
+
}), mo = U(!1), gn = oa(null), ls = R(
|
|
8718
8722
|
() => gn.value ? ul(gn.value.raw) : ""
|
|
8719
|
-
),
|
|
8723
|
+
), rs = (S) => {
|
|
8720
8724
|
a.showMoveToPosition && (gn.value = S, mo.value = !0);
|
|
8721
|
-
},
|
|
8725
|
+
}, ss = (S) => {
|
|
8722
8726
|
const G = gn.value;
|
|
8723
8727
|
gn.value = null, G && S !== G.index && (p.moveItem(G.index, S), xt(G.key));
|
|
8724
|
-
}, ul = (S) => sf(S, { compactField: a.compactField }),
|
|
8728
|
+
}, ul = (S) => sf(S, { compactField: a.compactField }), is = Gr(V, o, {
|
|
8725
8729
|
// The rows container can mount/unmount across mode flips (e.g. a `#view-body`
|
|
8726
8730
|
// slot in view mode, rows only in reorder mode). vueuse's default
|
|
8727
8731
|
// `tryOnMounted` fires once and would bind to a null ref, leaving SortableJS
|
|
@@ -8751,7 +8755,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8751
8755
|
onEnd: (S) => {
|
|
8752
8756
|
const G = S.item, q = (G.querySelector(":scope > .a-le-row") ?? G).getAttribute("data-id");
|
|
8753
8757
|
if (q !== null && q !== "") {
|
|
8754
|
-
const ye =
|
|
8758
|
+
const ye = vr(q), Tt = String(ye) === q ? ye : q;
|
|
8755
8759
|
xt(Tt);
|
|
8756
8760
|
}
|
|
8757
8761
|
}
|
|
@@ -8759,7 +8763,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8759
8763
|
_e(
|
|
8760
8764
|
[Nt, V],
|
|
8761
8765
|
async () => {
|
|
8762
|
-
await Ze(),
|
|
8766
|
+
await Ze(), is.option("disabled", !Nt.value);
|
|
8763
8767
|
},
|
|
8764
8768
|
{ flush: "post" }
|
|
8765
8769
|
);
|
|
@@ -8788,7 +8792,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8788
8792
|
A.value.add(G);
|
|
8789
8793
|
}
|
|
8790
8794
|
l("item-expand", S, !q);
|
|
8791
|
-
}, dl = (S) => a.chips || a.disableRowClick || a.disabled || a.loading || X.value && !a.allowEditInReorder ? !1 : !!(S.editing || S.expanded || !a.readonly && a.showEditButton),
|
|
8795
|
+
}, dl = (S) => a.chips || a.disableRowClick || a.disabled || a.loading || X.value && !a.allowEditInReorder ? !1 : !!(S.editing || S.expanded || !a.readonly && a.showEditButton), us = (S) => {
|
|
8792
8796
|
if (dl(S)) {
|
|
8793
8797
|
if (S.editing || S.expanded) {
|
|
8794
8798
|
Ea(S);
|
|
@@ -8798,11 +8802,11 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8798
8802
|
}
|
|
8799
8803
|
}, {
|
|
8800
8804
|
deleteDialog: ho,
|
|
8801
|
-
deleteInFlight:
|
|
8802
|
-
deleteError:
|
|
8803
|
-
onDeleteClick:
|
|
8804
|
-
onDeleteDialogConfirm:
|
|
8805
|
-
onDeleteDialogCancel:
|
|
8805
|
+
deleteInFlight: cs,
|
|
8806
|
+
deleteError: ds,
|
|
8807
|
+
onDeleteClick: fs,
|
|
8808
|
+
onDeleteDialogConfirm: ms,
|
|
8809
|
+
onDeleteDialogCancel: vs
|
|
8806
8810
|
} = df({
|
|
8807
8811
|
onDeleteConfirm: (S) => a.onDeleteConfirm ? a.onDeleteConfirm(S) : !0,
|
|
8808
8812
|
onDelete: (S) => a.onDelete?.(S),
|
|
@@ -8813,7 +8817,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8813
8817
|
},
|
|
8814
8818
|
disableDeleteConfirm: () => a.disableDeleteConfirm || a.chips
|
|
8815
8819
|
}), Da = async (S) => {
|
|
8816
|
-
re.value && await
|
|
8820
|
+
re.value && await fs(S);
|
|
8817
8821
|
}, fl = async (S) => {
|
|
8818
8822
|
a.onItemSave && await a.onItemSave(S.raw), j(S), l("item-saved", S);
|
|
8819
8823
|
}, ml = (S) => {
|
|
@@ -8839,7 +8843,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8839
8843
|
if (S >= o.value.length - 1) return;
|
|
8840
8844
|
const G = xa(S);
|
|
8841
8845
|
p.moveItem(S, o.value.length - 1), G !== null && xt(G);
|
|
8842
|
-
}, Un = /* @__PURE__ */ new Map(),
|
|
8846
|
+
}, Un = /* @__PURE__ */ new Map(), hs = (S) => {
|
|
8843
8847
|
let G = Un.get(S);
|
|
8844
8848
|
return G || (G = {
|
|
8845
8849
|
edit: () => {
|
|
@@ -8915,8 +8919,8 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8915
8919
|
canMoveDown: S.canMoveDown,
|
|
8916
8920
|
touch: d.value,
|
|
8917
8921
|
stateKeyPrefix: m.prefixFor(S.key),
|
|
8918
|
-
actions:
|
|
8919
|
-
}),
|
|
8922
|
+
actions: hs(S.key)
|
|
8923
|
+
}), ps = R(() => ({
|
|
8920
8924
|
applying: he.value,
|
|
8921
8925
|
hasPendingChanges: Be.value,
|
|
8922
8926
|
movedCount: pe.value,
|
|
@@ -8938,8 +8942,8 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8938
8942
|
() => a.unsavedSectionLabel ? { label: a.unsavedSectionLabel, dirty: p.hasUnsaved.value } : []
|
|
8939
8943
|
), n({
|
|
8940
8944
|
...p,
|
|
8941
|
-
openRow:
|
|
8942
|
-
openAll:
|
|
8945
|
+
openRow: as,
|
|
8946
|
+
openAll: os,
|
|
8943
8947
|
// Saving is separate from the editor's "Apply", so a consumer can commit while still in
|
|
8944
8948
|
// reorder mode with an unapplied move. The reorder session (component-level `movedKeys` +
|
|
8945
8949
|
// snapshot) is NOT controller state, so re-baseline it here too — otherwise the "N pending
|
|
@@ -8989,7 +8993,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
8989
8993
|
"data-unsaved-count": L(ze)
|
|
8990
8994
|
}, ie(L(s)("common.sortable.pendingChanges", { count: L(ze) })), 9, Rf)) : ve("", !0),
|
|
8991
8995
|
Ie("div", Pf, [
|
|
8992
|
-
L(X) && !e.embedded ? ke(S.$slots, "reorder-toolbar", Dl(El(
|
|
8996
|
+
L(X) && !e.embedded ? ke(S.$slots, "reorder-toolbar", Dl(El(ps.value)), () => [
|
|
8993
8997
|
x(xf, {
|
|
8994
8998
|
class: rt({ "a-le-toolbar-status--pending": Be.value }),
|
|
8995
8999
|
"has-pending-changes": Be.value,
|
|
@@ -9068,7 +9072,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9068
9072
|
size: "32"
|
|
9069
9073
|
})
|
|
9070
9074
|
])) : e.error ? (_(), de("div", Nf, [
|
|
9071
|
-
x(
|
|
9075
|
+
x(fr, {
|
|
9072
9076
|
type: "error",
|
|
9073
9077
|
variant: "tonal",
|
|
9074
9078
|
density: "compact",
|
|
@@ -9127,7 +9131,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9127
9131
|
}, [
|
|
9128
9132
|
Ie("div", {
|
|
9129
9133
|
class: "a-le-row-header",
|
|
9130
|
-
onClick: (ye) =>
|
|
9134
|
+
onClick: (ye) => us(q)
|
|
9131
9135
|
}, [
|
|
9132
9136
|
Nt.value ? (_(), te(Mf, { key: 0 })) : ve("", !0),
|
|
9133
9137
|
Ie("div", Hf, [
|
|
@@ -9306,7 +9310,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9306
9310
|
}, 8, ["disabled", "onClick"]),
|
|
9307
9311
|
e.showMoveToPosition && Ot.value.length > 1 ? (_(), te(mt, {
|
|
9308
9312
|
key: 0,
|
|
9309
|
-
onClick: De((ye) =>
|
|
9313
|
+
onClick: De((ye) => rs(q), ["stop"])
|
|
9310
9314
|
}, {
|
|
9311
9315
|
prepend: M(() => [
|
|
9312
9316
|
x(Oe, { icon: "mdi-target" })
|
|
@@ -9528,8 +9532,8 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9528
9532
|
"onUpdate:modelValue": G[0] || (G[0] = (q) => mo.value = q),
|
|
9529
9533
|
total: Ot.value.length,
|
|
9530
9534
|
"current-index": gn.value?.index ?? 0,
|
|
9531
|
-
"item-label":
|
|
9532
|
-
onConfirm:
|
|
9535
|
+
"item-label": ls.value,
|
|
9536
|
+
onConfirm: ss
|
|
9533
9537
|
}, null, 8, ["modelValue", "total", "current-index", "item-label"]),
|
|
9534
9538
|
x(pf, {
|
|
9535
9539
|
modelValue: L(ho),
|
|
@@ -9538,10 +9542,10 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9538
9542
|
text: xe.value,
|
|
9539
9543
|
"confirm-label": L(s)("common.sortable.delete"),
|
|
9540
9544
|
"cancel-label": L(s)("common.button.cancel"),
|
|
9541
|
-
error: L(
|
|
9542
|
-
"in-flight": L(
|
|
9543
|
-
onConfirm: L(
|
|
9544
|
-
onCancel: L(
|
|
9545
|
+
error: L(ds),
|
|
9546
|
+
"in-flight": L(cs),
|
|
9547
|
+
onConfirm: L(ms),
|
|
9548
|
+
onCancel: L(vs)
|
|
9545
9549
|
}, null, 8, ["modelValue", "title", "text", "confirm-label", "cancel-label", "error", "in-flight", "onConfirm", "onCancel"]),
|
|
9546
9550
|
Ie("div", em, ie(L(pn).grabbedKey.value !== null ? L(s)("common.sortable.keyboardGrab.status", {
|
|
9547
9551
|
n: L(pn).grabbedIndex.value + 1,
|
|
@@ -9766,7 +9770,7 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9766
9770
|
c,
|
|
9767
9771
|
async (Y, oe) => {
|
|
9768
9772
|
if (Y !== oe) {
|
|
9769
|
-
if (v.value && (v.value = !1, await he("mounted", Y)), C.value.enabled && g.value && E.value(Y),
|
|
9773
|
+
if (v.value && (v.value = !1, await he("mounted", Y)), C.value.enabled && g.value && E.value(Y), mr(Y)) {
|
|
9770
9774
|
J(Y);
|
|
9771
9775
|
return;
|
|
9772
9776
|
}
|
|
@@ -9855,19 +9859,19 @@ const pf = /* @__PURE__ */ Re({
|
|
|
9855
9859
|
}
|
|
9856
9860
|
});
|
|
9857
9861
|
export {
|
|
9858
|
-
|
|
9862
|
+
wi as $,
|
|
9859
9863
|
ro as A,
|
|
9860
|
-
|
|
9864
|
+
Er as B,
|
|
9861
9865
|
qn as C,
|
|
9862
|
-
|
|
9866
|
+
xr as D,
|
|
9863
9867
|
Mv as E,
|
|
9864
9868
|
Tv as F,
|
|
9865
|
-
|
|
9869
|
+
Tr as G,
|
|
9866
9870
|
ia as H,
|
|
9867
9871
|
Om as I,
|
|
9868
9872
|
Ai as J,
|
|
9869
9873
|
yu as K,
|
|
9870
|
-
|
|
9874
|
+
Ei as L,
|
|
9871
9875
|
qm as M,
|
|
9872
9876
|
Xm as N,
|
|
9873
9877
|
Wm as O,
|
|
@@ -9884,17 +9888,17 @@ export {
|
|
|
9884
9888
|
nv as Z,
|
|
9885
9889
|
Go as _,
|
|
9886
9890
|
ao as a,
|
|
9887
|
-
|
|
9888
|
-
|
|
9891
|
+
Gr as a$,
|
|
9892
|
+
xi as a0,
|
|
9889
9893
|
ac as a1,
|
|
9890
9894
|
He as a2,
|
|
9891
9895
|
Hm as a3,
|
|
9892
9896
|
jm as a4,
|
|
9893
9897
|
Al as a5,
|
|
9894
|
-
|
|
9898
|
+
Yl as a6,
|
|
9895
9899
|
yt as a7,
|
|
9896
|
-
|
|
9897
|
-
|
|
9900
|
+
zi as a8,
|
|
9901
|
+
ha as a9,
|
|
9898
9902
|
Me as aA,
|
|
9899
9903
|
dv as aB,
|
|
9900
9904
|
io as aC,
|
|
@@ -9907,28 +9911,28 @@ export {
|
|
|
9907
9911
|
Ov as aJ,
|
|
9908
9912
|
ht as aK,
|
|
9909
9913
|
Ct as aL,
|
|
9910
|
-
|
|
9914
|
+
Ar as aM,
|
|
9911
9915
|
Rv as aN,
|
|
9912
9916
|
nl as aO,
|
|
9913
9917
|
Hi as aP,
|
|
9914
9918
|
lu as aQ,
|
|
9915
9919
|
Ol as aR,
|
|
9916
9920
|
Pv as aS,
|
|
9917
|
-
|
|
9918
|
-
|
|
9919
|
-
|
|
9920
|
-
|
|
9921
|
-
|
|
9922
|
-
|
|
9923
|
-
|
|
9924
|
-
|
|
9925
|
-
|
|
9926
|
-
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9921
|
+
Ev as aT,
|
|
9922
|
+
gv as aU,
|
|
9923
|
+
hu as aV,
|
|
9924
|
+
uv as aW,
|
|
9925
|
+
Pm as aX,
|
|
9926
|
+
md as aY,
|
|
9927
|
+
Lv as aZ,
|
|
9928
|
+
yd as a_,
|
|
9929
|
+
On as aa,
|
|
9930
|
+
pa as ab,
|
|
9931
|
+
_n as ac,
|
|
9932
|
+
ga as ad,
|
|
9933
|
+
Pn as ae,
|
|
9934
|
+
Ft as af,
|
|
9935
|
+
vc as ag,
|
|
9932
9936
|
lc as ah,
|
|
9933
9937
|
rc as ai,
|
|
9934
9938
|
ba as aj,
|
|
@@ -9938,7 +9942,7 @@ export {
|
|
|
9938
9942
|
Jo as an,
|
|
9939
9943
|
ya as ao,
|
|
9940
9944
|
Ln as ap,
|
|
9941
|
-
|
|
9945
|
+
Sr as aq,
|
|
9942
9946
|
Qo as ar,
|
|
9943
9947
|
el as as,
|
|
9944
9948
|
fc as at,
|
|
@@ -9950,71 +9954,71 @@ export {
|
|
|
9950
9954
|
tl as az,
|
|
9951
9955
|
jn as b,
|
|
9952
9956
|
rf as b$,
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9957
|
+
Nv as b0,
|
|
9958
|
+
Yv as b1,
|
|
9959
|
+
Ir as b2,
|
|
9960
|
+
fv as b3,
|
|
9961
|
+
Cr as b4,
|
|
9962
|
+
Ki as b5,
|
|
9963
|
+
Yi as b6,
|
|
9964
|
+
Nm as b7,
|
|
9965
|
+
mv as b8,
|
|
9966
|
+
rv as b9,
|
|
9963
9967
|
ou as bA,
|
|
9964
9968
|
tu as bB,
|
|
9965
9969
|
Ji as bC,
|
|
9966
9970
|
Cc as bD,
|
|
9967
9971
|
Av as bE,
|
|
9968
9972
|
xv as bF,
|
|
9969
|
-
|
|
9973
|
+
Rl as bG,
|
|
9970
9974
|
zm as bH,
|
|
9971
9975
|
Ym as bI,
|
|
9972
|
-
|
|
9976
|
+
pr as bJ,
|
|
9973
9977
|
Lm as bK,
|
|
9974
9978
|
Vm as bL,
|
|
9975
|
-
|
|
9979
|
+
ni as bM,
|
|
9976
9980
|
Um as bN,
|
|
9977
9981
|
Dv as bO,
|
|
9978
9982
|
yv as bP,
|
|
9979
|
-
|
|
9983
|
+
gr as bQ,
|
|
9980
9984
|
tv as bR,
|
|
9981
9985
|
sv as bS,
|
|
9982
9986
|
Cv as bT,
|
|
9983
9987
|
Lt as bU,
|
|
9984
9988
|
Dt as bV,
|
|
9985
|
-
|
|
9989
|
+
Mr as bW,
|
|
9986
9990
|
cc as bX,
|
|
9987
9991
|
mc as bY,
|
|
9988
9992
|
Mi as bZ,
|
|
9989
9993
|
pc as b_,
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
bv,
|
|
10012
|
-
|
|
9994
|
+
gi as ba,
|
|
9995
|
+
bi as bb,
|
|
9996
|
+
Il as bc,
|
|
9997
|
+
Ma as bd,
|
|
9998
|
+
Ml as be,
|
|
9999
|
+
bu as bf,
|
|
10000
|
+
zv as bg,
|
|
10001
|
+
zl as bh,
|
|
10002
|
+
Dd as bi,
|
|
10003
|
+
yr as bj,
|
|
10004
|
+
av as bk,
|
|
10005
|
+
lo as bl,
|
|
10006
|
+
oo as bm,
|
|
10007
|
+
vv as bn,
|
|
10008
|
+
ji as bo,
|
|
10009
|
+
pv as bp,
|
|
10010
|
+
hv as bq,
|
|
10011
|
+
Zo as br,
|
|
10012
|
+
pu as bs,
|
|
10013
|
+
kv as bt,
|
|
10014
|
+
wv as bu,
|
|
10015
|
+
Sv as bv,
|
|
10016
|
+
bv as bw,
|
|
10013
10017
|
No as bx,
|
|
10014
10018
|
_v as by,
|
|
10015
10019
|
Gi as bz,
|
|
10016
10020
|
to as c,
|
|
10017
|
-
|
|
10021
|
+
Qr as c0,
|
|
10018
10022
|
lf as c1,
|
|
10019
10023
|
ff as c2,
|
|
10020
10024
|
qd as c3,
|
|
@@ -10029,7 +10033,7 @@ export {
|
|
|
10029
10033
|
Wd as cC,
|
|
10030
10034
|
Yn as cD,
|
|
10031
10035
|
tf as cE,
|
|
10032
|
-
|
|
10036
|
+
Br as cF,
|
|
10033
10037
|
Ed as cG,
|
|
10034
10038
|
sf as ca,
|
|
10035
10039
|
mf as cb,
|
|
@@ -10050,13 +10054,13 @@ export {
|
|
|
10050
10054
|
Dc as cq,
|
|
10051
10055
|
Ld as cr,
|
|
10052
10056
|
sl as cs,
|
|
10053
|
-
|
|
10057
|
+
or as ct,
|
|
10054
10058
|
_t as cu,
|
|
10055
10059
|
dn as cv,
|
|
10056
10060
|
xc as cw,
|
|
10057
10061
|
ja as cx,
|
|
10058
10062
|
Ec as cy,
|
|
10059
|
-
|
|
10063
|
+
es as cz,
|
|
10060
10064
|
F as d,
|
|
10061
10065
|
no as e,
|
|
10062
10066
|
xn as f,
|
|
@@ -10078,7 +10082,7 @@ export {
|
|
|
10078
10082
|
Rm as v,
|
|
10079
10083
|
_m as w,
|
|
10080
10084
|
Ge as x,
|
|
10081
|
-
|
|
10082
|
-
|
|
10085
|
+
mr as y,
|
|
10086
|
+
vr as z
|
|
10083
10087
|
};
|
|
10084
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
10088
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-a4kDTgdp.mjs.map
|