@anzusystems/common-admin 1.47.0-beta.dev-1784059862 → 1.47.0-beta.dev-1784059865
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-Ckt9odt5.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BbBijPbh.mjs} +443 -441
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BbBijPbh.mjs.map +1 -0
- package/dist/common-admin.d.ts +1 -0
- package/dist/common-admin.js +4 -4
- package/dist/{index-DjbvubKW.mjs → index-BQruOnL6.mjs} +2001 -1984
- package/dist/index-BQruOnL6.mjs.map +1 -0
- package/dist/labs.d.ts +52 -45
- package/dist/labs.js +628 -623
- package/dist/labs.js.map +1 -1
- package/dist/{webfontloader-B3mp6xNQ.mjs → webfontloader-CswbVn2y.mjs} +2 -2
- package/dist/{webfontloader-B3mp6xNQ.mjs.map → webfontloader-CswbVn2y.mjs.map} +1 -1
- package/package.json +8 -8
- package/dist/AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-Ckt9odt5.mjs.map +0 -1
- package/dist/index-DjbvubKW.mjs.map +0 -1
|
@@ -369,14 +369,14 @@ function Si() {
|
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
371
|
function oo(e, n, t = !1) {
|
|
372
|
-
const { collabOptions: a } = $n(), { currentUserId: l } = Si(), { collabSocket: o, collabFieldLocksState: r, collabFieldDataBufferState: s, collabRoomInfoState: i } = Ci(), u = vi(),
|
|
373
|
-
V.room !== e || V.field !== n || F(R) || F(
|
|
372
|
+
const { collabOptions: a } = $n(), { currentUserId: l } = Si(), { collabSocket: o, collabFieldLocksState: r, collabFieldDataBufferState: s, collabRoomInfoState: i } = Ci(), u = vi(), d = U(), c = U(), C = pi(), g = U(), S = U(), y = mr(), f = U(), m = U(), p = (V, R) => {
|
|
373
|
+
V.room !== e || V.field !== n || F(R) || F(c.value) || c.value(R);
|
|
374
374
|
}, x = (V, R) => {
|
|
375
375
|
V.room !== e || V.field !== n || F(R) || F(S.value) || S.value(R);
|
|
376
376
|
}, B = (V) => {
|
|
377
377
|
V.room === e && Ue(m.value) && m.value();
|
|
378
378
|
}, A = (V) => {
|
|
379
|
-
|
|
379
|
+
c.value = V, d.value = u.on(p);
|
|
380
380
|
}, D = (V) => {
|
|
381
381
|
S.value = V, g.value = C.on(
|
|
382
382
|
x
|
|
@@ -387,7 +387,7 @@ function oo(e, n, t = !1) {
|
|
|
387
387
|
);
|
|
388
388
|
};
|
|
389
389
|
ks(() => {
|
|
390
|
-
t || (Ue(
|
|
390
|
+
t || (Ue(d.value) && d.value(), Ue(g.value) && g.value(), Ue(f.value) && f.value());
|
|
391
391
|
});
|
|
392
392
|
const z = P(() => {
|
|
393
393
|
const V = r.get(e);
|
|
@@ -482,7 +482,7 @@ function oo(e, n, t = !1) {
|
|
|
482
482
|
},
|
|
483
483
|
lockedByUser: z,
|
|
484
484
|
collabFieldDataBufferState: s,
|
|
485
|
-
unsubscribeCollabFieldDataChangeListener:
|
|
485
|
+
unsubscribeCollabFieldDataChangeListener: d,
|
|
486
486
|
unsubscribeCollabFieldLockStatusListener: g,
|
|
487
487
|
unsubscribeCollabGatheringBufferData: f
|
|
488
488
|
};
|
|
@@ -538,7 +538,7 @@ const ki = {
|
|
|
538
538
|
o.value?.blur();
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
|
-
const { t:
|
|
541
|
+
const { t: d } = Ye(), c = de(to, void 0), C = de(no, void 0), g = (A) => {
|
|
542
542
|
l("update:modelValue", A);
|
|
543
543
|
}, S = () => {
|
|
544
544
|
l("blur", a.modelValue), a.v?.$touch(), s.value(a.modelValue);
|
|
@@ -546,9 +546,9 @@ const ki = {
|
|
|
546
546
|
l("focus", a.modelValue), i.value();
|
|
547
547
|
}, f = P(() => Ue(a.errorMessage) ? [a.errorMessage] : a.v?.$errors?.length ? [a.v.$errors.map((A) => A.$message).join(" ")] : []), m = P(() => {
|
|
548
548
|
if (Ue(a.label)) return a.label;
|
|
549
|
-
if (F(
|
|
549
|
+
if (F(c) || F(C) || F(a.v?.$path)) return "";
|
|
550
550
|
const { end: A } = xn(a.v?.$path, ".");
|
|
551
|
-
return c
|
|
551
|
+
return d(c + "." + C + ".model." + A);
|
|
552
552
|
}), p = P(() => Ue(a.required) ? a.required : !!(a.v?.required && a.v?.required.$params.type === "required")), x = P(() => Ue(a.disabled) ? a.disabled : !!u.value);
|
|
553
553
|
return n({
|
|
554
554
|
focus: () => {
|
|
@@ -653,13 +653,13 @@ const xi = ["createdAt", "modifiedAt"], lv = "_score", rv = "id", sv = "score_da
|
|
|
653
653
|
fixed: !1
|
|
654
654
|
};
|
|
655
655
|
function uv(e, n, t = void 0, a = void 0, l = !1, o = void 0, r = void 0, s = void 0, i = void 0) {
|
|
656
|
-
const u = r ?? He, { t:
|
|
656
|
+
const u = r ?? He, { t: d } = u.global || u, c = Ei();
|
|
657
657
|
if (o)
|
|
658
|
-
for (const m of Object.keys(
|
|
659
|
-
m in o && (
|
|
658
|
+
for (const m of Object.keys(c))
|
|
659
|
+
m in o && (c[m] = o[m]);
|
|
660
660
|
const C = e.map((m) => {
|
|
661
661
|
const p = { ...Ti, ...m };
|
|
662
|
-
return F(p.title) && (F(p.title) && xi.includes(p.key) ? p.title =
|
|
662
|
+
return F(p.title) && (F(p.title) && xi.includes(p.key) ? p.title = d("common.model.tracking." + p.key) : F(p.title) && t && a ? p.title = d(t + "." + a + ".model." + p.key) : p.title = ""), p;
|
|
663
663
|
}), g = P(() => {
|
|
664
664
|
const m = [];
|
|
665
665
|
return s && m.push({ key: "data-table-expand", sortable: !1 }), C.forEach((p) => {
|
|
@@ -667,10 +667,10 @@ function uv(e, n, t = void 0, a = void 0, l = !1, o = void 0, r = void 0, s = vo
|
|
|
667
667
|
}), l || m.push({ key: "actions", sortable: !1, fixed: !0 }), m;
|
|
668
668
|
}), S = (m) => {
|
|
669
669
|
if (!m) {
|
|
670
|
-
|
|
670
|
+
c.sortBy = null;
|
|
671
671
|
return;
|
|
672
672
|
}
|
|
673
|
-
|
|
673
|
+
c.sortBy = m.key, c.descending = m.order === jt.Desc;
|
|
674
674
|
}, y = () => {
|
|
675
675
|
if (!i || !localStorage) return;
|
|
676
676
|
const m = localStorage.getItem(i);
|
|
@@ -689,7 +689,7 @@ function uv(e, n, t = void 0, a = void 0, l = !1, o = void 0, r = void 0, s = vo
|
|
|
689
689
|
columnsVisible: g,
|
|
690
690
|
columnsHidden: n,
|
|
691
691
|
updateSortBy: S,
|
|
692
|
-
pagination:
|
|
692
|
+
pagination: c
|
|
693
693
|
};
|
|
694
694
|
}
|
|
695
695
|
const Xo = /* @__PURE__ */ Re({
|
|
@@ -937,11 +937,11 @@ const Ia = {
|
|
|
937
937
|
width: K + V
|
|
938
938
|
};
|
|
939
939
|
return N && (R[N] = "0px"), I && (I === "center" ? R.left = `calc(50% - ${+K / 2}${V})` : R[I] = "0px"), R;
|
|
940
|
-
}),
|
|
940
|
+
}), d = P(() => r.value ? {
|
|
941
941
|
onEnter: D,
|
|
942
942
|
onLeave: $,
|
|
943
943
|
onAfterLeave: z
|
|
944
|
-
} : {}),
|
|
944
|
+
} : {}), c = (I) => {
|
|
945
945
|
n("click", I), e.closeOnClick && p(I);
|
|
946
946
|
}, C = (I) => {
|
|
947
947
|
var N;
|
|
@@ -1023,7 +1023,7 @@ const Ia = {
|
|
|
1023
1023
|
return T("div", {
|
|
1024
1024
|
class: "vue-notification-group",
|
|
1025
1025
|
style: u.value
|
|
1026
|
-
}, [T(hs, Xe(
|
|
1026
|
+
}, [T(hs, Xe(d.value, {
|
|
1027
1027
|
tag: "div",
|
|
1028
1028
|
css: !r.value,
|
|
1029
1029
|
name: e.animationName
|
|
@@ -1040,7 +1040,7 @@ const Ia = {
|
|
|
1040
1040
|
close: () => p(N)
|
|
1041
1041
|
}) : T("div", {
|
|
1042
1042
|
class: f(N),
|
|
1043
|
-
onClick: () =>
|
|
1043
|
+
onClick: () => c(N)
|
|
1044
1044
|
}, [e.dangerouslySetInnerHtml ? T(We, null, [N.title ? T("div", {
|
|
1045
1045
|
class: "notification-title",
|
|
1046
1046
|
innerHTML: N.title
|
|
@@ -1201,7 +1201,7 @@ function Ln() {
|
|
|
1201
1201
|
duration: m * 1e3,
|
|
1202
1202
|
type: "success"
|
|
1203
1203
|
});
|
|
1204
|
-
},
|
|
1204
|
+
}, d = (f, m = -1, p = !1) => {
|
|
1205
1205
|
const { t: x, te: B } = He.global, A = [x("common.alert.fixApiValidationErrors")];
|
|
1206
1206
|
for (let D = 0; D < f.length; D++) {
|
|
1207
1207
|
let $ = "";
|
|
@@ -1222,7 +1222,7 @@ function Ln() {
|
|
|
1222
1222
|
duration: m * 1e3,
|
|
1223
1223
|
type: "error"
|
|
1224
1224
|
});
|
|
1225
|
-
},
|
|
1225
|
+
}, c = (f, m = -1) => {
|
|
1226
1226
|
const { t: p, te: x } = He.global;
|
|
1227
1227
|
let B = p("error.apiForbiddenOperation.noTranslation");
|
|
1228
1228
|
x("error.apiForbiddenOperation." + f) && (B = p("error.apiForbiddenOperation." + f)), Et({
|
|
@@ -1247,7 +1247,7 @@ function Ln() {
|
|
|
1247
1247
|
duration: f * 1e3,
|
|
1248
1248
|
type: "error"
|
|
1249
1249
|
});
|
|
1250
|
-
}, S = (f, m = -1) => Hi(f) ? (g(m), !0) : gr(f) ? (
|
|
1250
|
+
}, S = (f, m = -1) => Hi(f) ? (g(m), !0) : gr(f) ? (d(f.fields, m), !0) : Ji(f) ? (a("error.apiDependencyExists.message", m), !0) : Gi(f) ? (c(f.detail, m), !0) : eu(f) ? (a("error.apiTimedOut.message", m), !0) : tu(f) || Ni(f) || Jo(f) ? (C(m), !0) : !1, y = (f) => {
|
|
1251
1251
|
const { t: m } = He.global, p = f.split("["), x = p[0].trim(), B = p[1].split("]"), A = B[0], D = B[1] ?? "";
|
|
1252
1252
|
return m(x) + "[" + A + "]: " + m(x.slice(0, -1) + D);
|
|
1253
1253
|
};
|
|
@@ -1262,8 +1262,8 @@ function Ln() {
|
|
|
1262
1262
|
showWarningT: s,
|
|
1263
1263
|
showValidationError: i,
|
|
1264
1264
|
showRecordWas: u,
|
|
1265
|
-
showApiValidationError:
|
|
1266
|
-
showApiForbiddenOperationError:
|
|
1265
|
+
showApiValidationError: d,
|
|
1266
|
+
showApiForbiddenOperationError: c,
|
|
1267
1267
|
showUnknownError: C,
|
|
1268
1268
|
showForbiddenError: g,
|
|
1269
1269
|
showErrorsDefault: S
|
|
@@ -1278,7 +1278,7 @@ function ou() {
|
|
|
1278
1278
|
(function(t, a) {
|
|
1279
1279
|
e.exports = a();
|
|
1280
1280
|
})(au, (function() {
|
|
1281
|
-
var t = 1e3, a = 6e4, l = 36e5, o = "millisecond", r = "second", s = "minute", i = "hour", u = "day",
|
|
1281
|
+
var t = 1e3, a = 6e4, l = 36e5, o = "millisecond", r = "second", s = "minute", i = "hour", u = "day", d = "week", c = "month", C = "quarter", g = "year", S = "date", y = "Invalid Date", f = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, m = /\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, p = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(b) {
|
|
1282
1282
|
var h = ["th", "st", "nd", "rd"], v = b % 100;
|
|
1283
1283
|
return "[" + b + (h[(v - 20) % 10] || h[v] || h[0]) + "]";
|
|
1284
1284
|
} }, x = function(b, h, v) {
|
|
@@ -1289,12 +1289,12 @@ function ou() {
|
|
|
1289
1289
|
return (h <= 0 ? "+" : "-") + x(w, 2, "0") + ":" + x(E, 2, "0");
|
|
1290
1290
|
}, m: function b(h, v) {
|
|
1291
1291
|
if (h.date() < v.date()) return -b(v, h);
|
|
1292
|
-
var w = 12 * (v.year() - h.year()) + (v.month() - h.month()), E = h.clone().add(w,
|
|
1292
|
+
var w = 12 * (v.year() - h.year()) + (v.month() - h.month()), E = h.clone().add(w, c), O = v - E < 0, j = h.clone().add(w + (O ? -1 : 1), c);
|
|
1293
1293
|
return +(-(w + (v - E) / (O ? E - j : j - E)) || 0);
|
|
1294
1294
|
}, a: function(b) {
|
|
1295
1295
|
return b < 0 ? Math.ceil(b) || 0 : Math.floor(b);
|
|
1296
1296
|
}, p: function(b) {
|
|
1297
|
-
return { M:
|
|
1297
|
+
return { M: c, y: g, w: d, d: u, D: S, h: i, m: s, s: r, ms: o, Q: C }[b] || String(b || "").toLowerCase().replace(/s$/, "");
|
|
1298
1298
|
}, u: function(b) {
|
|
1299
1299
|
return b === void 0;
|
|
1300
1300
|
} }, A = "en", D = {};
|
|
@@ -1372,9 +1372,9 @@ function ou() {
|
|
|
1372
1372
|
switch (j) {
|
|
1373
1373
|
case g:
|
|
1374
1374
|
return O ? Q(1, 0) : Q(31, 11);
|
|
1375
|
-
case d:
|
|
1376
|
-
return O ? Q(1, Me) : Q(0, Me + 1);
|
|
1377
1375
|
case c:
|
|
1376
|
+
return O ? Q(1, Me) : Q(0, Me + 1);
|
|
1377
|
+
case d:
|
|
1378
1378
|
var pe = this.$locale().weekStart || 0, Z = (me < pe ? me + 7 : me) - pe;
|
|
1379
1379
|
return Q(O ? we - Z : we + (6 - Z), Me);
|
|
1380
1380
|
case u:
|
|
@@ -1392,8 +1392,8 @@ function ou() {
|
|
|
1392
1392
|
}, h.endOf = function(v) {
|
|
1393
1393
|
return this.startOf(v, !1);
|
|
1394
1394
|
}, h.$set = function(v, w) {
|
|
1395
|
-
var E, O = K.p(v), j = "set" + (this.$u ? "UTC" : ""), Q = (E = {}, E[u] = j + "Date", E[S] = j + "Date", E[
|
|
1396
|
-
if (O ===
|
|
1395
|
+
var E, O = K.p(v), j = "set" + (this.$u ? "UTC" : ""), Q = (E = {}, E[u] = j + "Date", E[S] = j + "Date", E[c] = j + "Month", E[g] = j + "FullYear", E[i] = j + "Hours", E[s] = j + "Minutes", E[r] = j + "Seconds", E[o] = j + "Milliseconds", E)[O], X = O === u ? this.$D + (w - this.$W) : w;
|
|
1396
|
+
if (O === c || O === g) {
|
|
1397
1397
|
var me = this.clone().set(S, 1);
|
|
1398
1398
|
me.$d[Q](X), me.init(), this.$d = me.set(S, Math.min(this.$D, me.daysInMonth())).$d;
|
|
1399
1399
|
} else Q && this.$d[Q](X);
|
|
@@ -1409,10 +1409,10 @@ function ou() {
|
|
|
1409
1409
|
var we = N(O);
|
|
1410
1410
|
return K.w(we.date(we.date() + Math.round(Me * v)), O);
|
|
1411
1411
|
};
|
|
1412
|
-
if (j ===
|
|
1412
|
+
if (j === c) return this.set(c, this.$M + v);
|
|
1413
1413
|
if (j === g) return this.set(g, this.$y + v);
|
|
1414
1414
|
if (j === u) return Q(1);
|
|
1415
|
-
if (j ===
|
|
1415
|
+
if (j === d) return Q(7);
|
|
1416
1416
|
var X = (E = {}, E[s] = a, E[i] = l, E[r] = t, E)[j] || 1, me = this.$d.getTime() + v * X;
|
|
1417
1417
|
return K.w(me, this);
|
|
1418
1418
|
}, h.subtract = function(v, w) {
|
|
@@ -1493,13 +1493,13 @@ function ou() {
|
|
|
1493
1493
|
case g:
|
|
1494
1494
|
O = we() / 12;
|
|
1495
1495
|
break;
|
|
1496
|
-
case
|
|
1496
|
+
case c:
|
|
1497
1497
|
O = we();
|
|
1498
1498
|
break;
|
|
1499
1499
|
case C:
|
|
1500
1500
|
O = we() / 3;
|
|
1501
1501
|
break;
|
|
1502
|
-
case
|
|
1502
|
+
case d:
|
|
1503
1503
|
O = (Me - me) / 6048e5;
|
|
1504
1504
|
break;
|
|
1505
1505
|
case u:
|
|
@@ -1519,7 +1519,7 @@ function ou() {
|
|
|
1519
1519
|
}
|
|
1520
1520
|
return E ? O : K.a(O);
|
|
1521
1521
|
}, h.daysInMonth = function() {
|
|
1522
|
-
return this.endOf(
|
|
1522
|
+
return this.endOf(c).$D;
|
|
1523
1523
|
}, h.$locale = function() {
|
|
1524
1524
|
return D[this.$L];
|
|
1525
1525
|
}, h.locale = function(v, w) {
|
|
@@ -1538,7 +1538,7 @@ function ou() {
|
|
|
1538
1538
|
return this.$d.toUTCString();
|
|
1539
1539
|
}, b;
|
|
1540
1540
|
})(), R = V.prototype;
|
|
1541
|
-
return N.prototype = R, [["$ms", o], ["$s", r], ["$m", s], ["$H", i], ["$W", u], ["$M",
|
|
1541
|
+
return N.prototype = R, [["$ms", o], ["$s", r], ["$m", s], ["$H", i], ["$W", u], ["$M", c], ["$y", g], ["$D", S]].forEach((function(b) {
|
|
1542
1542
|
R[b[1]] = function(h) {
|
|
1543
1543
|
return this.$g(h, b[0], b[1]);
|
|
1544
1544
|
};
|
|
@@ -1574,17 +1574,17 @@ function su() {
|
|
|
1574
1574
|
i.parse = function(y) {
|
|
1575
1575
|
y.utc && (this.$u = !0), this.$utils().u(y.$offset) || (this.$offset = y.$offset), u.call(this, y);
|
|
1576
1576
|
};
|
|
1577
|
-
var
|
|
1577
|
+
var d = i.init;
|
|
1578
1578
|
i.init = function() {
|
|
1579
1579
|
if (this.$u) {
|
|
1580
1580
|
var y = this.$d;
|
|
1581
1581
|
this.$y = y.getUTCFullYear(), this.$M = y.getUTCMonth(), this.$D = y.getUTCDate(), this.$W = y.getUTCDay(), this.$H = y.getUTCHours(), this.$m = y.getUTCMinutes(), this.$s = y.getUTCSeconds(), this.$ms = y.getUTCMilliseconds();
|
|
1582
|
-
} else
|
|
1582
|
+
} else d.call(this);
|
|
1583
1583
|
};
|
|
1584
|
-
var
|
|
1584
|
+
var c = i.utcOffset;
|
|
1585
1585
|
i.utcOffset = function(y, f) {
|
|
1586
1586
|
var m = this.$utils().u;
|
|
1587
|
-
if (m(y)) return this.$u ? 0 : m(this.$offset) ?
|
|
1587
|
+
if (m(y)) return this.$u ? 0 : m(this.$offset) ? c.call(this) : this.$offset;
|
|
1588
1588
|
if (typeof y == "string" && (y = (function(A) {
|
|
1589
1589
|
A === void 0 && (A = "");
|
|
1590
1590
|
var D = A.match(a);
|
|
@@ -1637,11 +1637,11 @@ function cu() {
|
|
|
1637
1637
|
})(uu, (function() {
|
|
1638
1638
|
var t = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" }, a = /(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, l = /\d/, o = /\d\d/, r = /\d\d?/, s = /\d*[^-_:/,()\s\d]+/, i = {}, u = function(f) {
|
|
1639
1639
|
return (f = +f) + (f > 68 ? 1900 : 2e3);
|
|
1640
|
-
},
|
|
1640
|
+
}, d = function(f) {
|
|
1641
1641
|
return function(m) {
|
|
1642
1642
|
this[f] = +m;
|
|
1643
1643
|
};
|
|
1644
|
-
},
|
|
1644
|
+
}, c = [/[+-]\d\d:?(\d\d)?|Z/, function(f) {
|
|
1645
1645
|
(this.zone || (this.zone = {})).offset = (function(m) {
|
|
1646
1646
|
if (!m || m === "Z") return 0;
|
|
1647
1647
|
var p = m.match(/([+-]|\d\d)/g), x = 60 * p[1] + (+p[2] || 0);
|
|
@@ -1671,10 +1671,10 @@ function cu() {
|
|
|
1671
1671
|
this.milliseconds = 10 * +f;
|
|
1672
1672
|
}], SSS: [/\d{3}/, function(f) {
|
|
1673
1673
|
this.milliseconds = +f;
|
|
1674
|
-
}], s: [r,
|
|
1674
|
+
}], s: [r, d("seconds")], ss: [r, d("seconds")], m: [r, d("minutes")], mm: [r, d("minutes")], H: [r, d("hours")], h: [r, d("hours")], HH: [r, d("hours")], hh: [r, d("hours")], D: [r, d("day")], DD: [o, d("day")], Do: [s, function(f) {
|
|
1675
1675
|
var m = i.ordinal, p = f.match(/\d+/);
|
|
1676
1676
|
if (this.day = p[0], m) for (var x = 1; x <= 31; x += 1) m(x).replace(/\[|\]/g, "") === f && (this.day = x);
|
|
1677
|
-
}], w: [r,
|
|
1677
|
+
}], w: [r, d("week")], ww: [o, d("week")], M: [r, d("month")], MM: [o, d("month")], MMM: [s, function(f) {
|
|
1678
1678
|
var m = C("months"), p = (C("monthsShort") || m.map((function(x) {
|
|
1679
1679
|
return x.slice(0, 3);
|
|
1680
1680
|
}))).indexOf(f) + 1;
|
|
@@ -1684,9 +1684,9 @@ function cu() {
|
|
|
1684
1684
|
var m = C("months").indexOf(f) + 1;
|
|
1685
1685
|
if (m < 1) throw new Error();
|
|
1686
1686
|
this.month = m % 12 || m;
|
|
1687
|
-
}], Y: [/[+-]?\d+/,
|
|
1687
|
+
}], Y: [/[+-]?\d+/, d("year")], YY: [o, function(f) {
|
|
1688
1688
|
this.year = u(f);
|
|
1689
|
-
}], YYYY: [/\d{4}/,
|
|
1689
|
+
}], YYYY: [/\d{4}/, d("year")], Z: c, ZZ: c };
|
|
1690
1690
|
function y(f) {
|
|
1691
1691
|
var m, p;
|
|
1692
1692
|
m = f, p = i && i.formats;
|
|
@@ -2049,7 +2049,7 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2049
2049
|
}
|
|
2050
2050
|
D.length > 2 && (D = D.slice(0, 2)), o.value = D, D.length === 2 && Qe(() => i.value?.focus());
|
|
2051
2051
|
}
|
|
2052
|
-
}),
|
|
2052
|
+
}), d = P({
|
|
2053
2053
|
get: () => r.value,
|
|
2054
2054
|
set: (A) => {
|
|
2055
2055
|
let D = String(A).replace(/[^0-9]/g, "");
|
|
@@ -2059,7 +2059,7 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2059
2059
|
}
|
|
2060
2060
|
D.length > 2 && (D = D.slice(0, 2)), r.value = D, D.length === 2 && a("focusConfirm");
|
|
2061
2061
|
}
|
|
2062
|
-
}),
|
|
2062
|
+
}), c = async (A) => {
|
|
2063
2063
|
const D = A.target;
|
|
2064
2064
|
await Qe(), D?.select();
|
|
2065
2065
|
}, C = () => {
|
|
@@ -2131,7 +2131,7 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2131
2131
|
tabindex: "1",
|
|
2132
2132
|
min: "0",
|
|
2133
2133
|
max: "23",
|
|
2134
|
-
onFocus:
|
|
2134
|
+
onFocus: c,
|
|
2135
2135
|
onBlur: C,
|
|
2136
2136
|
onKeyup: Ya(S, ["enter"])
|
|
2137
2137
|
}, null, 544), [
|
|
@@ -2167,18 +2167,18 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2167
2167
|
oa($e("input", {
|
|
2168
2168
|
ref_key: "minutesRefInput",
|
|
2169
2169
|
ref: i,
|
|
2170
|
-
"onUpdate:modelValue": D[1] || (D[1] = ($) =>
|
|
2170
|
+
"onUpdate:modelValue": D[1] || (D[1] = ($) => d.value = $),
|
|
2171
2171
|
class: "a-datetime-picker-time__input a-datetime-picker-time__input--minutes",
|
|
2172
2172
|
type: "text",
|
|
2173
2173
|
"aria-label": "Minute",
|
|
2174
2174
|
tabindex: "2",
|
|
2175
2175
|
min: "0",
|
|
2176
2176
|
max: "59",
|
|
2177
|
-
onFocus:
|
|
2177
|
+
onFocus: c,
|
|
2178
2178
|
onBlur: g,
|
|
2179
2179
|
onKeyup: Ya(y, ["enter"])
|
|
2180
2180
|
}, null, 544), [
|
|
2181
|
-
[Sl,
|
|
2181
|
+
[Sl, d.value]
|
|
2182
2182
|
]),
|
|
2183
2183
|
$e("div", Ku, [
|
|
2184
2184
|
T(Pe, {
|
|
@@ -2232,14 +2232,14 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2232
2232
|
setup(e, { emit: n }) {
|
|
2233
2233
|
const t = e, a = n;
|
|
2234
2234
|
Ie.extend(br), Ie.extend(wr);
|
|
2235
|
-
const l = U(!1), o = U(0), r = U(0), s = zt("timePickerInstance"), i = zt("inputInstance"), u = zt("confirmRefButton"),
|
|
2235
|
+
const l = U(!1), o = U(0), r = U(0), s = zt("timePickerInstance"), i = zt("inputInstance"), u = zt("confirmRefButton"), d = U(""), c = U(null), C = U(null), g = U(null), { t: S } = Ye(), y = P(() => t.type === "datetime" ? "dd.mm.yyyy hh:mm" : "dd.mm.yyyy"), { requiredIf: f } = nl(), m = P(() => ({
|
|
2236
2236
|
textFieldValue: {
|
|
2237
2237
|
required: f(t.required)
|
|
2238
2238
|
}
|
|
2239
|
-
})), p = la(m, { textFieldValue:
|
|
2239
|
+
})), p = la(m, { textFieldValue: d }), x = P(() => t.type === "datetime" ? "DD.MM.YYYY HH:mm" : "DD.MM.YYYY"), B = (w) => {
|
|
2240
2240
|
w !== t.modelValue && a("update:modelValue", w);
|
|
2241
2241
|
}, A = (w) => {
|
|
2242
|
-
re(w) || ((re(C.value) || w.hour() !== C.value.hours || w.minute() !== C.value.minutes) && (C.value = { hours: w.hour(), minutes: w.minute() }), (re(
|
|
2242
|
+
re(w) || ((re(C.value) || w.hour() !== C.value.hours || w.minute() !== C.value.minutes) && (C.value = { hours: w.hour(), minutes: w.minute() }), (re(c.value) || w.year() !== c.value.getFullYear() || w.month() !== c.value.getMonth() || w.date() !== c.value.getDate()) && (c.value = w.toDate()));
|
|
2243
2243
|
};
|
|
2244
2244
|
Oe(
|
|
2245
2245
|
() => t.modelValue,
|
|
@@ -2255,18 +2255,18 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2255
2255
|
{ immediate: !0 }
|
|
2256
2256
|
);
|
|
2257
2257
|
const D = (w, E) => re(w) ? E : E.set("date", w.getDate()).set("month", w.getMonth()).set("year", w.getFullYear()), $ = (w, E) => re(w) ? E : E.set("hour", w.hours).set("minute", w.minutes);
|
|
2258
|
-
Oe([C,
|
|
2258
|
+
Oe([C, c], ([w, E]) => {
|
|
2259
2259
|
let O = null;
|
|
2260
2260
|
re(g.value) ? re(t.modelValue) ? t.lastMinuteMoment ? O = Ie().hour(0).minute(0).second(59).millisecond(999) : O = Ie().hour(0).minute(0).second(0).millisecond(0) : O = Ie(t.modelValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : O = g.value, O = $(w, O), O = D(E, O), !O.isSame(Za(g.value)) && (g.value = O);
|
|
2261
2261
|
}), Oe(
|
|
2262
2262
|
g,
|
|
2263
2263
|
(w) => {
|
|
2264
2264
|
if (re(w)) {
|
|
2265
|
-
|
|
2265
|
+
d.value = "", B(null);
|
|
2266
2266
|
return;
|
|
2267
2267
|
}
|
|
2268
2268
|
const E = w.utc().format("YYYY-MM-DDTHH:mm:ss") + nn;
|
|
2269
|
-
|
|
2269
|
+
d.value = w.format(x.value), A(w), B(E);
|
|
2270
2270
|
},
|
|
2271
2271
|
{ immediate: !0 }
|
|
2272
2272
|
), Oe(l, (w) => {
|
|
@@ -2279,7 +2279,7 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2279
2279
|
a("onClose");
|
|
2280
2280
|
});
|
|
2281
2281
|
const z = P(() => Ue(t.errorMessages) ? t.errorMessages : p.value.textFieldValue.$errors.length ? [p.value.textFieldValue.$errors.map((w) => w.$message).join(" ")] : []), I = () => {
|
|
2282
|
-
const w =
|
|
2282
|
+
const w = d.value.replace(/[^\s\d.:]/g, "").trim();
|
|
2283
2283
|
if (w.length === 0 && !t.required) {
|
|
2284
2284
|
!re(t.defaultValue) && !F(t.defaultValue) ? g.value = Ie(t.defaultValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ") : g.value = null, a("blur");
|
|
2285
2285
|
return;
|
|
@@ -2294,10 +2294,10 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2294
2294
|
g.value = E.second(O), p.value.textFieldValue.$touch(), a("blur");
|
|
2295
2295
|
return;
|
|
2296
2296
|
}
|
|
2297
|
-
re(g.value) || (
|
|
2297
|
+
re(g.value) || (d.value = g.value.format(x.value)), p.value.textFieldValue.$touch(), a("blur");
|
|
2298
2298
|
}, N = () => {
|
|
2299
2299
|
if (re(t.defaultValue) || F(t.defaultValue)) {
|
|
2300
|
-
g.value = null,
|
|
2300
|
+
g.value = null, c.value = null, C.value = null, a("afterClear");
|
|
2301
2301
|
return;
|
|
2302
2302
|
}
|
|
2303
2303
|
g.value = Ie(t.defaultValue, "YYYY-MM-DDTHH:mm:ss.SSSSSSZ"), a("afterClear");
|
|
@@ -2319,8 +2319,8 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2319
2319
|
return (w, E) => (_(), ne(fa, {
|
|
2320
2320
|
ref_key: "inputInstance",
|
|
2321
2321
|
ref: i,
|
|
2322
|
-
modelValue:
|
|
2323
|
-
"onUpdate:modelValue": E[3] || (E[3] = (O) =>
|
|
2322
|
+
modelValue: d.value,
|
|
2323
|
+
"onUpdate:modelValue": E[3] || (E[3] = (O) => d.value = O),
|
|
2324
2324
|
"error-messages": z.value,
|
|
2325
2325
|
"persistent-placeholder": !0,
|
|
2326
2326
|
placeholder: y.value,
|
|
@@ -2377,8 +2377,8 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2377
2377
|
]),
|
|
2378
2378
|
(_(), ne(zs, Xe({
|
|
2379
2379
|
key: o.value,
|
|
2380
|
-
modelValue:
|
|
2381
|
-
"onUpdate:modelValue": E[0] || (E[0] = (O) =>
|
|
2380
|
+
modelValue: c.value,
|
|
2381
|
+
"onUpdate:modelValue": E[0] || (E[0] = (O) => c.value = O),
|
|
2382
2382
|
class: "a-datetime-picker-calendar",
|
|
2383
2383
|
color: "primary",
|
|
2384
2384
|
"show-adjacent-months": ""
|
|
@@ -2466,14 +2466,14 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2466
2466
|
{ immediate: !0 }
|
|
2467
2467
|
);
|
|
2468
2468
|
}
|
|
2469
|
-
const
|
|
2470
|
-
|
|
2469
|
+
const d = U(!1), c = U(!1), C = () => {
|
|
2470
|
+
d.value = !0, i.value();
|
|
2471
2471
|
}, g = () => {
|
|
2472
|
-
r.value(t.modelValue),
|
|
2472
|
+
r.value(t.modelValue), d.value = !0;
|
|
2473
2473
|
}, { t: S } = Ye(), y = de(to, void 0), f = de(no, void 0), m = () => {
|
|
2474
|
-
|
|
2474
|
+
c.value = !1, a("blur", F(t.modelValue) ? null : t.modelValue), t.v?.$touch(), d.value === !1 && r.value(t.modelValue);
|
|
2475
2475
|
}, p = () => {
|
|
2476
|
-
|
|
2476
|
+
c.value = !0, a("focus", t.modelValue), i.value();
|
|
2477
2477
|
}, x = P(() => Ue(t.errorMessage) ? [t.errorMessage] : t.v?.$errors?.length ? [t.v.$errors.map(($) => $.$message).join(" ")] : []), B = P(() => {
|
|
2478
2478
|
if (Ue(t.label)) return t.label;
|
|
2479
2479
|
if (F(y) || F(f) || F(t.v?.$path)) return "";
|
|
@@ -2481,7 +2481,7 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2481
2481
|
return S(y + "." + f + ".model." + $);
|
|
2482
2482
|
}), A = P(() => Ue(t.required) ? t.required : !!(t.v?.required && t.v?.required.$params.type === "required")), D = P(() => Ue(t.disabled) ? t.disabled : !!u.value);
|
|
2483
2483
|
return Oe(l, ($, z) => {
|
|
2484
|
-
$ !== z && o.value.enabled && (
|
|
2484
|
+
$ !== z && o.value.enabled && (c.value || d.value) && s.value($);
|
|
2485
2485
|
}), ($, z) => (_(), ne(kr, Xe({
|
|
2486
2486
|
modelValue: l.value,
|
|
2487
2487
|
"onUpdate:modelValue": z[0] || (z[0] = (I) => l.value = I),
|
|
@@ -2543,17 +2543,17 @@ const zu = { class: "a-datetime-picker-time" }, Hu = { class: "a-datetime-picker
|
|
|
2543
2543
|
}, 500);
|
|
2544
2544
|
}, u = (g) => {
|
|
2545
2545
|
a("update:modelValue", g);
|
|
2546
|
-
}, c = () => {
|
|
2547
|
-
a("blur", t.modelValue), o.value(t.modelValue);
|
|
2548
2546
|
}, d = () => {
|
|
2547
|
+
a("blur", t.modelValue), o.value(t.modelValue);
|
|
2548
|
+
}, c = () => {
|
|
2549
2549
|
a("focus", t.modelValue), r.value();
|
|
2550
2550
|
}, C = P(() => Ue(t.disabled) ? t.disabled : !!s.value);
|
|
2551
2551
|
return (g, S) => (_(), ne(qs, {
|
|
2552
2552
|
"data-cy": e.dataCy,
|
|
2553
2553
|
"model-value": e.modelValue,
|
|
2554
2554
|
disabled: C.value,
|
|
2555
|
-
onBlur:
|
|
2556
|
-
onFocus:
|
|
2555
|
+
onBlur: d,
|
|
2556
|
+
onFocus: c,
|
|
2557
2557
|
"onUpdate:modelValue": S[0] || (S[0] = (y) => u(y)),
|
|
2558
2558
|
onClick: De(i, ["stop"])
|
|
2559
2559
|
}, an({ _: 2 }, [
|
|
@@ -2593,6 +2593,7 @@ function ec() {
|
|
|
2593
2593
|
}
|
|
2594
2594
|
const To = "_sort", tc = {
|
|
2595
2595
|
skip: !1,
|
|
2596
|
+
selected: !0,
|
|
2596
2597
|
xs: void 0,
|
|
2597
2598
|
sm: void 0,
|
|
2598
2599
|
md: void 0,
|
|
@@ -2658,21 +2659,21 @@ function Bt() {
|
|
|
2658
2659
|
e(s, o, r);
|
|
2659
2660
|
}, t = (o, r, s, i, u) => {
|
|
2660
2661
|
if (!l(o, i)) return;
|
|
2661
|
-
const
|
|
2662
|
-
if (
|
|
2662
|
+
const d = i.fields[o], c = u.value.get(o);
|
|
2663
|
+
if (c && c.length === 1)
|
|
2663
2664
|
u.value.delete(o);
|
|
2664
|
-
else if (
|
|
2665
|
-
const C =
|
|
2666
|
-
|
|
2665
|
+
else if (c) {
|
|
2666
|
+
const C = c.findIndex((g) => g.value === r);
|
|
2667
|
+
c.splice(C, 1);
|
|
2667
2668
|
}
|
|
2668
|
-
if (
|
|
2669
|
-
s[o] =
|
|
2669
|
+
if (d.type === "timeInterval" && d.related)
|
|
2670
|
+
s[o] = d.default, s[d.related] = i.fields[d.related].default;
|
|
2670
2671
|
else if (Fe(s[o]) && s[o].length > 0) {
|
|
2671
2672
|
const C = s[o].findIndex(
|
|
2672
2673
|
(S) => S === r
|
|
2673
2674
|
), g = [...Za(s[o])];
|
|
2674
2675
|
g.splice(C, 1), s[o] = g;
|
|
2675
|
-
} else (Ge(s[o]) || En(s[o]) || bt(s[o])) && (s[o] =
|
|
2676
|
+
} else (Ge(s[o]) || En(s[o]) || bt(s[o])) && (s[o] = d.default);
|
|
2676
2677
|
}, a = (o, r, s) => {
|
|
2677
2678
|
for (const i of s.value.keys())
|
|
2678
2679
|
l(i, r) && s.value.delete(i);
|
|
@@ -2745,9 +2746,9 @@ function Dr(e, n, t = {}) {
|
|
|
2745
2746
|
return { filters: x, sortBy: B };
|
|
2746
2747
|
}, u = (m) => {
|
|
2747
2748
|
a.populateUrlParams !== !1 && (window.location.hash = m);
|
|
2748
|
-
},
|
|
2749
|
+
}, d = () => {
|
|
2749
2750
|
a.populateUrlParams !== !1 && (window.location.hash = "");
|
|
2750
|
-
},
|
|
2751
|
+
}, c = () => a.populateUrlParams === !1 ? null : i(window.location.hash), C = (m) => {
|
|
2751
2752
|
!o || !localStorage || localStorage.setItem(o, m);
|
|
2752
2753
|
}, g = () => {
|
|
2753
2754
|
if (!o || !localStorage) return null;
|
|
@@ -2757,7 +2758,7 @@ function Dr(e, n, t = {}) {
|
|
|
2757
2758
|
return {
|
|
2758
2759
|
loadStoredFilters: (m, p) => {
|
|
2759
2760
|
const { consumeStoredPage: x } = ec();
|
|
2760
|
-
let B = "hash", A =
|
|
2761
|
+
let B = "hash", A = c();
|
|
2761
2762
|
if (re(A) && (B = "localStorage", A = g()), re(A) || Zn(A.filters) && Zn(A.sortBy)) {
|
|
2762
2763
|
const $ = x();
|
|
2763
2764
|
return $ !== null && (m.value = { ...m.value, page: $ }), p && p(), !1;
|
|
@@ -2790,7 +2791,7 @@ function Dr(e, n, t = {}) {
|
|
|
2790
2791
|
}, p && p(), !0;
|
|
2791
2792
|
},
|
|
2792
2793
|
resetFilter: (m, p) => {
|
|
2793
|
-
m.value = { ...m.value, page: 1 }, o && localStorage && localStorage.removeItem(o),
|
|
2794
|
+
m.value = { ...m.value, page: 1 }, o && localStorage && localStorage.removeItem(o), d(), n.touched = !1, p && p();
|
|
2794
2795
|
},
|
|
2795
2796
|
submitFilter: (m, p) => {
|
|
2796
2797
|
const x = r(), B = s(x, m, !0);
|
|
@@ -2871,17 +2872,17 @@ function rc(e) {
|
|
|
2871
2872
|
};
|
|
2872
2873
|
}
|
|
2873
2874
|
function sc() {
|
|
2874
|
-
const e = U([]), n = (
|
|
2875
|
-
i("limit",
|
|
2876
|
-
}, t = (
|
|
2877
|
-
i("offset", Math.max(0, (
|
|
2878
|
-
}, a = (
|
|
2879
|
-
!re(
|
|
2880
|
-
}, l = (
|
|
2881
|
-
Ge(g) && g.length === 0 || e.value.push("filter_" +
|
|
2882
|
-
}, r = (
|
|
2883
|
-
let m = g[
|
|
2884
|
-
if (re(m) && y && !f && (m = S.fields[
|
|
2875
|
+
const e = U([]), n = (c) => {
|
|
2876
|
+
i("limit", c);
|
|
2877
|
+
}, t = (c, C) => {
|
|
2878
|
+
i("offset", Math.max(0, (c - 1) * C));
|
|
2879
|
+
}, a = (c, C) => {
|
|
2880
|
+
!re(c) && c.length > 0 && i("order[" + c + "]", C ? jt.Desc : jt.Asc);
|
|
2881
|
+
}, l = (c) => bt(c) ? c ? "1" : "0" : c, o = (c, C, g) => {
|
|
2882
|
+
Ge(g) && g.length === 0 || e.value.push("filter_" + c + "[" + C + "]=" + l(g));
|
|
2883
|
+
}, r = (c, C, g, S, y, f) => {
|
|
2884
|
+
let m = g[c], p = g[C];
|
|
2885
|
+
if (re(m) && y && !f && (m = S.fields[c].default), re(p) && y && !f && (p = S.fields[c].default), Ge(m) && Ge(p))
|
|
2885
2886
|
return {
|
|
2886
2887
|
from: m,
|
|
2887
2888
|
until: p
|
|
@@ -2902,10 +2903,10 @@ function sc() {
|
|
|
2902
2903
|
};
|
|
2903
2904
|
}
|
|
2904
2905
|
return null;
|
|
2905
|
-
}, s = (
|
|
2906
|
+
}, s = (c, C) => re(c) ? C.mandatory && !C.exclude && !F(C.default) ? Fe(C.default) ? C.default.join(",") : C.default : null : Ge(c) ? c.length === 0 ? C.mandatory && !C.exclude && !F(C.default) && !re(C.default) ? encodeURIComponent(
|
|
2906
2907
|
Fe(C.default) ? C.default.join(",") : C.default
|
|
2907
|
-
) : null : encodeURIComponent(
|
|
2908
|
-
e.value.push(
|
|
2908
|
+
) : null : encodeURIComponent(c) : Fe(c) ? c.length === 0 ? C.mandatory && !C.exclude && Fe(C.default) ? C.default.map((g) => Ge(g) ? encodeURIComponent(g) : g).join(",") : null : c.map((g) => Ge(g) ? encodeURIComponent(g) : g).join(",") : En(c) || bt(c) ? c : null, i = (c, C) => {
|
|
2909
|
+
e.value.push(c + "=" + C);
|
|
2909
2910
|
};
|
|
2910
2911
|
return {
|
|
2911
2912
|
resolveTimeIntervalFilter: r,
|
|
@@ -2913,10 +2914,10 @@ function sc() {
|
|
|
2913
2914
|
querySetOffset: t,
|
|
2914
2915
|
querySetOrder: a,
|
|
2915
2916
|
queryAddFilter: o,
|
|
2916
|
-
querySetFilters: (
|
|
2917
|
+
querySetFilters: (c, C) => {
|
|
2917
2918
|
const g = C.general.simpleFilters;
|
|
2918
|
-
for (const S in
|
|
2919
|
-
const y =
|
|
2919
|
+
for (const S in c) {
|
|
2920
|
+
const y = c[S], f = C.fields[S];
|
|
2920
2921
|
if (F(f) || f.exclude)
|
|
2921
2922
|
continue;
|
|
2922
2923
|
const m = f.apiName || S;
|
|
@@ -2924,7 +2925,7 @@ function sc() {
|
|
|
2924
2925
|
const x = r(
|
|
2925
2926
|
S,
|
|
2926
2927
|
f.related,
|
|
2927
|
-
|
|
2928
|
+
c,
|
|
2928
2929
|
C,
|
|
2929
2930
|
f.mandatory,
|
|
2930
2931
|
f.exclude
|
|
@@ -2969,7 +2970,7 @@ const ic = (e) => ma(e) && Object.hasOwn(e, "totalCount"), uc = (e) => ma(e) &&
|
|
|
2969
2970
|
} = e;
|
|
2970
2971
|
let i = null;
|
|
2971
2972
|
return {
|
|
2972
|
-
executeFetch: async (
|
|
2973
|
+
executeFetch: async (c, C, g, S = {}) => {
|
|
2973
2974
|
i = new AbortController();
|
|
2974
2975
|
const {
|
|
2975
2976
|
urlTemplate: y,
|
|
@@ -2979,7 +2980,7 @@ const ic = (e) => ma(e) && Object.hasOwn(e, "totalCount"), uc = (e) => ma(e) &&
|
|
|
2979
2980
|
try {
|
|
2980
2981
|
const p = g.general.elastic || m ? "/search" : "", x = Ue(f) ? f : o, B = Ue(y) ? y : l;
|
|
2981
2982
|
if (F(B)) throw new Error("Url template is undefined");
|
|
2982
|
-
const A = (F(x) ? B : ya(B, x)) + p + cc(
|
|
2983
|
+
const A = (F(x) ? B : ya(B, x)) + p + cc(c, C, g), D = await n().get(A, {
|
|
2983
2984
|
...r,
|
|
2984
2985
|
signal: i.signal
|
|
2985
2986
|
});
|
|
@@ -2987,12 +2988,12 @@ const ic = (e) => ma(e) && Object.hasOwn(e, "totalCount"), uc = (e) => ma(e) &&
|
|
|
2987
2988
|
throw new _n(D.status);
|
|
2988
2989
|
if (D.data) {
|
|
2989
2990
|
const $ = D.data;
|
|
2990
|
-
return uc($) ?
|
|
2991
|
-
...
|
|
2991
|
+
return uc($) ? c.value = {
|
|
2992
|
+
...c.value,
|
|
2992
2993
|
hasNextPage: $.hasNextPage,
|
|
2993
2994
|
currentViewCount: D.data.data.length
|
|
2994
|
-
} : ic($) && (
|
|
2995
|
-
...
|
|
2995
|
+
} : ic($) && (c.value = {
|
|
2996
|
+
...c.value,
|
|
2996
2997
|
totalCount: $.totalCount,
|
|
2997
2998
|
currentViewCount: D.data.data.length
|
|
2998
2999
|
}), $.data;
|
|
@@ -3025,20 +3026,20 @@ function Tn(e, n = jt.Desc, t = {}, a) {
|
|
|
3025
3026
|
currentViewCount: 0,
|
|
3026
3027
|
totalCount: 0
|
|
3027
3028
|
});
|
|
3028
|
-
function r(u,
|
|
3029
|
+
function r(u, d) {
|
|
3029
3030
|
if (Ge(u)) {
|
|
3030
3031
|
o.value = {
|
|
3031
3032
|
...o.value,
|
|
3032
|
-
sortBy: { key: u, order:
|
|
3033
|
+
sortBy: { key: u, order: d }
|
|
3033
3034
|
};
|
|
3034
3035
|
return;
|
|
3035
3036
|
}
|
|
3036
|
-
const
|
|
3037
|
-
if (re(
|
|
3038
|
-
o.value = { ...o.value, sortBy:
|
|
3037
|
+
const c = u;
|
|
3038
|
+
if (re(c) || F(c)) {
|
|
3039
|
+
o.value = { ...o.value, sortBy: c };
|
|
3039
3040
|
return;
|
|
3040
3041
|
}
|
|
3041
|
-
o.value = { ...o.value, sortBy: { key:
|
|
3042
|
+
o.value = { ...o.value, sortBy: { key: c.key, order: c.order } };
|
|
3042
3043
|
}
|
|
3043
3044
|
return {
|
|
3044
3045
|
pagination: o,
|
|
@@ -3079,17 +3080,17 @@ const Tv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3079
3080
|
get() {
|
|
3080
3081
|
return F(s[t.name]) || re(s[t.name]) ? {
|
|
3081
3082
|
value: -1,
|
|
3082
|
-
title:
|
|
3083
|
-
} : s[t.name] ? { value: 1, title:
|
|
3083
|
+
title: d(t.allT)
|
|
3084
|
+
} : s[t.name] ? { value: 1, title: d(t.trueT) } : { value: 0, title: d(t.falseT) };
|
|
3084
3085
|
},
|
|
3085
3086
|
set(f) {
|
|
3086
3087
|
let m = null;
|
|
3087
3088
|
f?.value === 1 && (m = !0), f?.value === 0 && (m = !1), s[t.name] = m, y(), r.touched = !0, a("change");
|
|
3088
3089
|
}
|
|
3089
|
-
}), u = P(() => r.fields[t.name]), { t:
|
|
3090
|
-
{ value: -1, title:
|
|
3091
|
-
{ value: 1, title:
|
|
3092
|
-
{ value: 0, title:
|
|
3090
|
+
}), u = P(() => r.fields[t.name]), { t: d } = Ye(), c = P(() => u.value.titleT ? d(u.value.titleT) : void 0), C = P(() => [
|
|
3091
|
+
{ value: -1, title: d(t.allT) },
|
|
3092
|
+
{ value: 1, title: d(t.trueT) },
|
|
3093
|
+
{ value: 0, title: d(t.falseT) }
|
|
3093
3094
|
]), { clearOne: g } = Bt(), S = () => {
|
|
3094
3095
|
g(t.name, s, r), o.value.delete(t.name);
|
|
3095
3096
|
}, y = () => {
|
|
@@ -3105,7 +3106,7 @@ const Tv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3105
3106
|
modelValue: i.value,
|
|
3106
3107
|
"onUpdate:modelValue": m[0] || (m[0] = (p) => i.value = p),
|
|
3107
3108
|
"data-cy": e.dataCy,
|
|
3108
|
-
label:
|
|
3109
|
+
label: c.value,
|
|
3109
3110
|
items: C.value,
|
|
3110
3111
|
clearable: !u.value.mandatory && i.value.value !== -1,
|
|
3111
3112
|
"return-object": "",
|
|
@@ -3135,7 +3136,7 @@ const Tv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3135
3136
|
set(f) {
|
|
3136
3137
|
s[t.name] = f, r.touched = !0, a("change");
|
|
3137
3138
|
}
|
|
3138
|
-
}), u = P(() => r.fields[t.name]), { t:
|
|
3139
|
+
}), u = P(() => r.fields[t.name]), { t: d } = Ye(), c = P(() => u.value.titleT ? d(u.value.titleT) : void 0), C = P(() => F(t.placeholder) ? u.value.variant === "startsWith" ? d("common.model.filterPlaceholder.startsWith") : u.value.variant === "eq" ? d("common.model.filterPlaceholder.eq") : u.value.variant === "search" ? d("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: g } = Bt(), S = () => {
|
|
3139
3140
|
g(t.name, s, r), o.value.delete(t.name);
|
|
3140
3141
|
}, y = () => {
|
|
3141
3142
|
if (En(i.value)) {
|
|
@@ -3161,7 +3162,7 @@ const Tv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3161
3162
|
), (f, m) => (_(), ne(fa, {
|
|
3162
3163
|
modelValue: i.value,
|
|
3163
3164
|
"onUpdate:modelValue": m[0] || (m[0] = (p) => i.value = p),
|
|
3164
|
-
label:
|
|
3165
|
+
label: c.value,
|
|
3165
3166
|
placeholder: C.value,
|
|
3166
3167
|
clearable: !u.value.mandatory,
|
|
3167
3168
|
"data-cy": e.dataCy,
|
|
@@ -3189,13 +3190,13 @@ const Tv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3189
3190
|
},
|
|
3190
3191
|
emits: ["change"],
|
|
3191
3192
|
setup(e, { emit: n }) {
|
|
3192
|
-
const t = e, a = n, l = de(Lt), o = de(Tt), r = de(ht), s = de(St), i = de(uo), u = de(io),
|
|
3193
|
+
const t = e, a = n, l = de(Lt), o = de(Tt), r = de(ht), s = de(St), i = de(uo), u = de(io), d = $t()?.type.__name;
|
|
3193
3194
|
if (F(l) || F(o) || F(s) || F(r) || F(i) || F(u))
|
|
3194
|
-
throw new Error(`[${
|
|
3195
|
-
const
|
|
3196
|
-
if (F(i.fields[
|
|
3195
|
+
throw new Error(`[${d}] Incorrect provide/inject config.`);
|
|
3196
|
+
const c = t.filterByField, C = t.filterSortBy;
|
|
3197
|
+
if (F(i.fields[c]) || F(u[c]))
|
|
3197
3198
|
throw new Error(
|
|
3198
|
-
`[${
|
|
3199
|
+
`[${d}] Incorrect filter inner config. FilterByField is '${c}' and available options are ${Object.keys(u).join(", ")}.`
|
|
3199
3200
|
);
|
|
3200
3201
|
const g = P(() => r.fields[t.name]), S = U([]), y = U(""), f = U(!1), m = U(null), p = U(0), { t: x } = Ye(), B = () => {
|
|
3201
3202
|
f.value = !1;
|
|
@@ -3234,7 +3235,7 @@ const Tv = (e, n = {}, t, a = {}, l, o, r = {}) => new Promise((s, i) => {
|
|
|
3234
3235
|
V.value = !1;
|
|
3235
3236
|
}
|
|
3236
3237
|
}, { showErrorsDefault: v } = Ln(), w = async (le, ce) => {
|
|
3237
|
-
V.value = !0, u[
|
|
3238
|
+
V.value = !0, u[c] = le;
|
|
3238
3239
|
try {
|
|
3239
3240
|
const H = await t.fetchItems(D, u, i);
|
|
3240
3241
|
ce === p.value && ($.value = H);
|
|
@@ -3401,16 +3402,16 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3401
3402
|
},
|
|
3402
3403
|
emits: ["change"],
|
|
3403
3404
|
setup(e, { emit: n }) {
|
|
3404
|
-
const t = e, a = n, l = de(Lt), o = de(Tt), r = de(ht), s = de(St), i = de(uo), u = de(io),
|
|
3405
|
+
const t = e, a = n, l = de(Lt), o = de(Tt), r = de(ht), s = de(St), i = de(uo), u = de(io), d = $t()?.type.__name;
|
|
3405
3406
|
if (F(l) || F(o) || F(s) || F(r) || F(i) || F(u))
|
|
3406
|
-
throw new Error(`[${
|
|
3407
|
+
throw new Error(`[${d}] Incorrect provide/inject config.`);
|
|
3407
3408
|
if (
|
|
3408
3409
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3409
3410
|
F(r.fields[t.name]) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3410
3411
|
F(s[t.name])
|
|
3411
3412
|
)
|
|
3412
3413
|
throw new Error(
|
|
3413
|
-
`[${
|
|
3414
|
+
`[${d}] Incorrect filter config. Name is '${t.name}' and available options are ${Object.keys(s).join(", ")}.`
|
|
3414
3415
|
);
|
|
3415
3416
|
if (
|
|
3416
3417
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
@@ -3418,9 +3419,9 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3418
3419
|
F(u[t.filterByField])
|
|
3419
3420
|
)
|
|
3420
3421
|
throw new Error(
|
|
3421
|
-
`[${
|
|
3422
|
+
`[${d}] Incorrect filter inner config. FilterByField is '${t.filterByField}' and available options are ${Object.keys(u).join(", ")}.`
|
|
3422
3423
|
);
|
|
3423
|
-
const
|
|
3424
|
+
const c = U([]), C = U(""), g = U(!1), S = U(void 0), y = U(0), { t: f } = Ye(), m = P(() => r.fields[t.name]), p = () => {
|
|
3424
3425
|
g.value = !1;
|
|
3425
3426
|
}, x = P(() => m.value.titleT ? f(m.value.titleT) : void 0), { pagination: B } = Tn(
|
|
3426
3427
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
@@ -3510,17 +3511,17 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3510
3511
|
async (ee, pe) => {
|
|
3511
3512
|
if (ee === pe || bt(ee)) return;
|
|
3512
3513
|
if (re(ee) || F(ee) || Fe(ee) && ee.length === 0) {
|
|
3513
|
-
if (D.value = [], m.value.multiple ?
|
|
3514
|
+
if (D.value = [], m.value.multiple ? c.value = [] : c.value = null, we(c.value), R.value === !0 || yc(t.prefetch, ["hover", "focus", !1])) return;
|
|
3514
3515
|
S.value = setTimeout(() => {
|
|
3515
3516
|
h();
|
|
3516
3517
|
}, 3e3);
|
|
3517
3518
|
return;
|
|
3518
3519
|
}
|
|
3519
3520
|
if (await V(ee)) {
|
|
3520
|
-
|
|
3521
|
+
c.value = D.value.map((te) => ({
|
|
3521
3522
|
title: te.title,
|
|
3522
3523
|
value: te.value
|
|
3523
|
-
})), we(
|
|
3524
|
+
})), we(c.value);
|
|
3524
3525
|
return;
|
|
3525
3526
|
}
|
|
3526
3527
|
if (Fe(ee)) {
|
|
@@ -3528,10 +3529,10 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3528
3529
|
try {
|
|
3529
3530
|
D.value = await t.fetchItemsMinimalByIds(
|
|
3530
3531
|
ee
|
|
3531
|
-
),
|
|
3532
|
+
), c.value = D.value.map((te) => ({
|
|
3532
3533
|
title: te.title,
|
|
3533
3534
|
value: te.value
|
|
3534
|
-
})), we(
|
|
3535
|
+
})), we(c.value);
|
|
3535
3536
|
} catch (te) {
|
|
3536
3537
|
I(te);
|
|
3537
3538
|
} finally {
|
|
@@ -3541,10 +3542,10 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3541
3542
|
}
|
|
3542
3543
|
z.value = !0;
|
|
3543
3544
|
try {
|
|
3544
|
-
D.value = await t.fetchItemsMinimalByIds([ee]),
|
|
3545
|
+
D.value = await t.fetchItemsMinimalByIds([ee]), c.value = D.value.map((te) => ({
|
|
3545
3546
|
title: te.title,
|
|
3546
3547
|
value: te.value
|
|
3547
|
-
}))[0], we(
|
|
3548
|
+
}))[0], we(c.value);
|
|
3548
3549
|
} catch (te) {
|
|
3549
3550
|
I(te);
|
|
3550
3551
|
} finally {
|
|
@@ -3559,9 +3560,9 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3559
3560
|
},
|
|
3560
3561
|
{ debounce: 300 }
|
|
3561
3562
|
), (ee, pe) => (_(), ne(ua, {
|
|
3562
|
-
modelValue:
|
|
3563
|
+
modelValue: c.value,
|
|
3563
3564
|
"onUpdate:modelValue": [
|
|
3564
|
-
pe[0] || (pe[0] = (Z) =>
|
|
3565
|
+
pe[0] || (pe[0] = (Z) => c.value = Z),
|
|
3565
3566
|
j
|
|
3566
3567
|
],
|
|
3567
3568
|
items: $.value,
|
|
@@ -3631,7 +3632,7 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3631
3632
|
set(f) {
|
|
3632
3633
|
s[t.name] = f, y(f), r.touched = !0, a("change");
|
|
3633
3634
|
}
|
|
3634
|
-
}),
|
|
3635
|
+
}), d = P(() => r.fields[t.name]), { t: c } = Ye(), C = P(() => d.value.titleT ? c(d.value.titleT) : void 0), { clearOne: g } = Bt(), S = () => {
|
|
3635
3636
|
g(t.name, s, r), o.value.delete(t.name);
|
|
3636
3637
|
}, y = (f) => {
|
|
3637
3638
|
if (Fe(f) && f.length === 0) return;
|
|
@@ -3660,10 +3661,10 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3660
3661
|
modelValue: u.value,
|
|
3661
3662
|
"onUpdate:modelValue": m[0] || (m[0] = (p) => u.value = p),
|
|
3662
3663
|
items: e.items,
|
|
3663
|
-
chips:
|
|
3664
|
+
chips: d.value.multiple,
|
|
3664
3665
|
label: C.value,
|
|
3665
|
-
multiple:
|
|
3666
|
-
clearable: !
|
|
3666
|
+
multiple: d.value.multiple,
|
|
3667
|
+
clearable: !d.value.mandatory,
|
|
3667
3668
|
"data-cy": "filter-value",
|
|
3668
3669
|
"hide-details": "",
|
|
3669
3670
|
autocomplete: "off",
|
|
@@ -3697,11 +3698,11 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3697
3698
|
a("change");
|
|
3698
3699
|
});
|
|
3699
3700
|
}
|
|
3700
|
-
}), { timeIntervalOptions: u, getTimeIntervalOption:
|
|
3701
|
+
}), { timeIntervalOptions: u, getTimeIntervalOption: d } = lc(t.allowed), c = U(null), C = U(!1), g = U({
|
|
3701
3702
|
from: null,
|
|
3702
3703
|
until: sa()
|
|
3703
3704
|
}), S = U(!1), { v$: y } = rc(g), f = P(() => r.fields[t.nameFrom]), { t: m } = Ye(), p = P(() => f.value.titleT ? m(f.value.titleT) : void 0), { clearOne: x } = Bt(), { showValidationError: B } = Ln(), A = () => {
|
|
3704
|
-
S.value = !1,
|
|
3705
|
+
S.value = !1, c.value = null, z();
|
|
3705
3706
|
}, D = () => {
|
|
3706
3707
|
if (y.value.$touch(), y.value.$invalid) {
|
|
3707
3708
|
B();
|
|
@@ -3709,7 +3710,7 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3709
3710
|
}
|
|
3710
3711
|
S.value = !0, C.value = !1, s[t.nameUntil] = g.value.until, i.value = g.value.from;
|
|
3711
3712
|
}, $ = () => {
|
|
3712
|
-
C.value = !1,
|
|
3713
|
+
C.value = !1, c.value = null;
|
|
3713
3714
|
}, z = () => {
|
|
3714
3715
|
x(t.nameFrom, s, r), x(t.nameUntil, s, r), o.value.delete(t.nameFrom);
|
|
3715
3716
|
}, I = (V) => {
|
|
@@ -3718,9 +3719,9 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3718
3719
|
o.value.delete(t.nameFrom);
|
|
3719
3720
|
return;
|
|
3720
3721
|
}
|
|
3721
|
-
const R =
|
|
3722
|
+
const R = d(V);
|
|
3722
3723
|
if (!R && Do(V)) {
|
|
3723
|
-
const b =
|
|
3724
|
+
const b = d(_t.Custom);
|
|
3724
3725
|
o.value.set(t.nameFrom, [
|
|
3725
3726
|
{
|
|
3726
3727
|
title: b.title + ": " + Kn(g.value.from) + " - " + Kn(g.value.until),
|
|
@@ -3738,11 +3739,11 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3738
3739
|
(V) => {
|
|
3739
3740
|
if (Fe(V) || bt(V)) return;
|
|
3740
3741
|
if (S.value = !1, F(V) || re(V)) {
|
|
3741
|
-
|
|
3742
|
+
c.value = null;
|
|
3742
3743
|
return;
|
|
3743
3744
|
}
|
|
3744
|
-
const R =
|
|
3745
|
-
!R && Do(i.value) && Do(b) && (
|
|
3745
|
+
const R = d(i.value), b = s[t.nameUntil];
|
|
3746
|
+
!R && Do(i.value) && Do(b) && (c.value = _t.Custom, g.value.from = i.value, g.value.until = b, S.value = !0), R && (c.value = R.value);
|
|
3746
3747
|
},
|
|
3747
3748
|
{ immediate: !0 }
|
|
3748
3749
|
), Oe(
|
|
@@ -3777,12 +3778,12 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3777
3778
|
onClick: R[0] || (R[0] = De((v) => N(), ["stop"]))
|
|
3778
3779
|
}, null, 8, ["label", "model-value"])) : (_(), ne(or, {
|
|
3779
3780
|
key: 1,
|
|
3780
|
-
modelValue:
|
|
3781
|
-
"onUpdate:modelValue": R[1] || (R[1] = (v) =>
|
|
3781
|
+
modelValue: c.value,
|
|
3782
|
+
"onUpdate:modelValue": R[1] || (R[1] = (v) => c.value = v),
|
|
3782
3783
|
"item-title": "title",
|
|
3783
3784
|
"item-value": "value",
|
|
3784
3785
|
label: p.value,
|
|
3785
|
-
clearable: !L(re)(
|
|
3786
|
+
clearable: !L(re)(c.value),
|
|
3786
3787
|
"no-filter": "",
|
|
3787
3788
|
"data-cy": e.dataCy,
|
|
3788
3789
|
items: L(u),
|
|
@@ -3905,7 +3906,7 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3905
3906
|
set(y) {
|
|
3906
3907
|
s[t.name] = y, S(), r.touched = !0, a("change");
|
|
3907
3908
|
}
|
|
3908
|
-
}), { t: u } = Ye(),
|
|
3909
|
+
}), { t: u } = Ye(), d = P(() => r.fields[t.name]), c = P(() => d.value.titleT ? u(d.value.titleT) : void 0), { clearOne: C } = Bt(), g = () => {
|
|
3909
3910
|
C(t.name, s, r), o.value.delete(t.name);
|
|
3910
3911
|
}, S = () => {
|
|
3911
3912
|
!Ge(i.value) || Ge(i.value) && i.value.length === 0 || o.value.set(t.name, [
|
|
@@ -3916,9 +3917,9 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3916
3917
|
modelValue: i.value,
|
|
3917
3918
|
"onUpdate:modelValue": f[0] || (f[0] = (m) => i.value = m),
|
|
3918
3919
|
"data-cy": e.dataCy,
|
|
3919
|
-
clearable: !
|
|
3920
|
-
"default-value":
|
|
3921
|
-
label:
|
|
3920
|
+
clearable: !d.value.mandatory,
|
|
3921
|
+
"default-value": d.value.default,
|
|
3922
|
+
label: c.value
|
|
3922
3923
|
}, y.$attrs, { onAfterClear: g }), null, 16, ["modelValue", "data-cy", "clearable", "default-value", "label"]));
|
|
3923
3924
|
}
|
|
3924
3925
|
}), Cc = /* @__PURE__ */ Re({
|
|
@@ -3942,7 +3943,7 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3942
3943
|
set(f) {
|
|
3943
3944
|
s[t.name] = f, r.touched = !0, a("change");
|
|
3944
3945
|
}
|
|
3945
|
-
}), u = P(() => r.fields[t.name]), { t:
|
|
3946
|
+
}), u = P(() => r.fields[t.name]), { t: d } = Ye(), c = P(() => u.value.titleT ? d(u.value.titleT) : void 0), C = P(() => F(t.placeholder) ? u.value.variant === "startsWith" ? d("common.model.filterPlaceholder.startsWith") : u.value.variant === "eq" ? d("common.model.filterPlaceholder.eq") : u.value.variant === "search" ? d("common.model.filterPlaceholder.contains") : "" : t.placeholder), { clearOne: g } = Bt(), S = () => {
|
|
3946
3947
|
g(t.name, s, r), o.value.delete(t.name);
|
|
3947
3948
|
}, y = () => {
|
|
3948
3949
|
if (En(i.value)) {
|
|
@@ -3968,7 +3969,7 @@ const Mv = /* @__PURE__ */ Re({
|
|
|
3968
3969
|
), (f, m) => (_(), ne(fa, {
|
|
3969
3970
|
modelValue: i.value,
|
|
3970
3971
|
"onUpdate:modelValue": m[0] || (m[0] = (p) => i.value = p),
|
|
3971
|
-
label:
|
|
3972
|
+
label: c.value,
|
|
3972
3973
|
placeholder: C.value,
|
|
3973
3974
|
clearable: !u.value.mandatory,
|
|
3974
3975
|
"data-cy": e.dataCy,
|
|
@@ -4036,17 +4037,17 @@ const ja = {
|
|
|
4036
4037
|
}
|
|
4037
4038
|
function a() {
|
|
4038
4039
|
let s = null, i = 1 / 0;
|
|
4039
|
-
e.value.forEach((u,
|
|
4040
|
-
u.lastUsed < i && (i = u.lastUsed, s =
|
|
4040
|
+
e.value.forEach((u, d) => {
|
|
4041
|
+
u.lastUsed < i && (i = u.lastUsed, s = d);
|
|
4041
4042
|
}), s !== null && e.value.delete(s);
|
|
4042
4043
|
}
|
|
4043
4044
|
async function l(s, i, u = !1) {
|
|
4044
4045
|
n.value = !1;
|
|
4045
|
-
const
|
|
4046
|
+
const d = t(s.layoutType, s.systemResource), c = Date.now();
|
|
4046
4047
|
if (!u) {
|
|
4047
|
-
const p = e.value.get(
|
|
4048
|
+
const p = e.value.get(d);
|
|
4048
4049
|
if (p)
|
|
4049
|
-
return p.lastUsed =
|
|
4050
|
+
return p.lastUsed = c, p.items;
|
|
4050
4051
|
}
|
|
4051
4052
|
const { pagination: C } = Tn("position", jt.Asc, {
|
|
4052
4053
|
rowsPerPage: Vo
|
|
@@ -4058,7 +4059,7 @@ const ja = {
|
|
|
4058
4059
|
let m = [];
|
|
4059
4060
|
try {
|
|
4060
4061
|
const { executeFetch: p } = i();
|
|
4061
|
-
m = await p(C, f, y), e.value.set(
|
|
4062
|
+
m = await p(C, f, y), e.value.set(d, { lastUsed: c, items: m });
|
|
4062
4063
|
} catch {
|
|
4063
4064
|
n.value = !0;
|
|
4064
4065
|
}
|
|
@@ -4068,10 +4069,10 @@ const ja = {
|
|
|
4068
4069
|
n.value = !1;
|
|
4069
4070
|
const { pagination: u } = Tn("position", jt.Asc, {
|
|
4070
4071
|
rowsPerPage: Vo + 1
|
|
4071
|
-
}), { start:
|
|
4072
|
+
}), { start: d, end: c } = xn(
|
|
4072
4073
|
s.systemResource,
|
|
4073
4074
|
"_"
|
|
4074
|
-
), { filterConfig: C, filterData: g } = zl(
|
|
4075
|
+
), { filterConfig: C, filterData: g } = zl(d, c);
|
|
4075
4076
|
g.configType = ja.FilterBookmark, g.layoutType = s.layoutType, g.systemResource = s.systemResource, g.user = s.user;
|
|
4076
4077
|
let S = 1 / 0;
|
|
4077
4078
|
try {
|
|
@@ -4141,47 +4142,47 @@ const ja = {
|
|
|
4141
4142
|
function Mr(e, n, t = Ec, a = Hl) {
|
|
4142
4143
|
return {
|
|
4143
4144
|
useFetchUserAdminConfigList: () => dc({ client: e, system: n, entity: t, urlTemplate: Hl }),
|
|
4144
|
-
fetchUserAdminConfig: (
|
|
4145
|
-
const { executeRequest:
|
|
4145
|
+
fetchUserAdminConfig: (d) => {
|
|
4146
|
+
const { executeRequest: c } = Yn({
|
|
4146
4147
|
client: e,
|
|
4147
4148
|
method: "GET",
|
|
4148
4149
|
system: n,
|
|
4149
4150
|
entity: t
|
|
4150
4151
|
});
|
|
4151
|
-
return
|
|
4152
|
+
return c({ urlTemplate: a + "/:id", urlParams: { id: d } });
|
|
4152
4153
|
},
|
|
4153
|
-
createUserAdminConfig: (
|
|
4154
|
-
const { executeRequest:
|
|
4154
|
+
createUserAdminConfig: (d) => {
|
|
4155
|
+
const { executeRequest: c } = Yn({
|
|
4155
4156
|
client: e,
|
|
4156
4157
|
method: "POST",
|
|
4157
4158
|
system: n,
|
|
4158
4159
|
entity: t
|
|
4159
4160
|
});
|
|
4160
|
-
return
|
|
4161
|
+
return c({ urlTemplate: a, object: d });
|
|
4161
4162
|
},
|
|
4162
|
-
updateUserAdminConfig: (
|
|
4163
|
+
updateUserAdminConfig: (d, c) => {
|
|
4163
4164
|
const { executeRequest: C } = Yn({
|
|
4164
4165
|
client: e,
|
|
4165
4166
|
method: "PUT",
|
|
4166
4167
|
system: n,
|
|
4167
4168
|
entity: t
|
|
4168
4169
|
});
|
|
4169
|
-
return C({ urlTemplate: a + "/:id", urlParams: { id:
|
|
4170
|
+
return C({ urlTemplate: a + "/:id", urlParams: { id: d }, object: c });
|
|
4170
4171
|
},
|
|
4171
|
-
deleteUserAdminConfig: (
|
|
4172
|
-
const { executeRequest:
|
|
4173
|
-
return
|
|
4172
|
+
deleteUserAdminConfig: (d) => {
|
|
4173
|
+
const { executeRequest: c } = Yn({ client: e, method: "DELETE", system: n, entity: t });
|
|
4174
|
+
return c({ urlTemplate: a + "/:id", urlParams: { id: d } });
|
|
4174
4175
|
},
|
|
4175
|
-
updateUserAdminConfigPositions: (
|
|
4176
|
-
const { executeRequest:
|
|
4176
|
+
updateUserAdminConfigPositions: (d) => {
|
|
4177
|
+
const { executeRequest: c } = Yn({
|
|
4177
4178
|
client: e,
|
|
4178
4179
|
method: "PATCH",
|
|
4179
4180
|
system: n,
|
|
4180
4181
|
entity: t
|
|
4181
4182
|
});
|
|
4182
|
-
return
|
|
4183
|
+
return c({
|
|
4183
4184
|
urlTemplate: a + "/update-positions",
|
|
4184
|
-
object: { userAdminConfigs:
|
|
4185
|
+
object: { userAdminConfigs: d }
|
|
4185
4186
|
});
|
|
4186
4187
|
}
|
|
4187
4188
|
};
|
|
@@ -4205,7 +4206,7 @@ const xc = { key: 0 }, Tc = 32, Ir = /* @__PURE__ */ Re({
|
|
|
4205
4206
|
const t = e, a = n, l = ct(e, "datatableHiddenColumns"), o = de(ht), r = de(St), s = de(Er), i = de(Tt);
|
|
4206
4207
|
if (F(s) || F(o) || F(r) || F(i))
|
|
4207
4208
|
throw new Error("Incorrect provide/inject config.");
|
|
4208
|
-
const u = U(!1),
|
|
4209
|
+
const u = U(!1), d = zt("toolbar"), c = U(300), C = U(1e3), g = Ar(), { useFetchUserAdminConfigList: S } = Mr(t.client, t.system), y = t.system + "_" + t.subject, f = async (D = !1) => {
|
|
4209
4210
|
u.value = !0, await g.getBookmarks(
|
|
4210
4211
|
{
|
|
4211
4212
|
user: t.userId,
|
|
@@ -4244,7 +4245,7 @@ const xc = { key: 0 }, Tc = 32, Ir = /* @__PURE__ */ Re({
|
|
|
4244
4245
|
a("submit");
|
|
4245
4246
|
}
|
|
4246
4247
|
}, x = async (D) => {
|
|
4247
|
-
const $ =
|
|
4248
|
+
const $ = d.value;
|
|
4248
4249
|
if (re($)) return;
|
|
4249
4250
|
C.value = 1e3, await Qe();
|
|
4250
4251
|
let z = 0, I = 0;
|
|
@@ -4256,10 +4257,10 @@ const xc = { key: 0 }, Tc = 32, Ir = /* @__PURE__ */ Re({
|
|
|
4256
4257
|
}
|
|
4257
4258
|
C.value = I;
|
|
4258
4259
|
};
|
|
4259
|
-
Ds(
|
|
4260
|
-
D[0] && (
|
|
4260
|
+
Ds(d, (D) => {
|
|
4261
|
+
D[0] && (c.value = D[0].contentRect.width);
|
|
4261
4262
|
}), Es(
|
|
4262
|
-
|
|
4263
|
+
c,
|
|
4263
4264
|
(D, $) => {
|
|
4264
4265
|
D !== $ && x(D);
|
|
4265
4266
|
},
|
|
@@ -4276,8 +4277,8 @@ const xc = { key: 0 }, Tc = 32, Ir = /* @__PURE__ */ Re({
|
|
|
4276
4277
|
};
|
|
4277
4278
|
});
|
|
4278
4279
|
return Oe([u, () => B.value.length], ([D]) => {
|
|
4279
|
-
D === !0 || re(
|
|
4280
|
-
x(
|
|
4280
|
+
D === !0 || re(d.value) || (c.value = d.value.clientWidth, Qe(() => {
|
|
4281
|
+
x(c.value);
|
|
4281
4282
|
}));
|
|
4282
4283
|
}), Ko(() => {
|
|
4283
4284
|
f();
|
|
@@ -4512,8 +4513,8 @@ function Rt() {
|
|
|
4512
4513
|
}
|
|
4513
4514
|
function Je(e, n, t, a, l) {
|
|
4514
4515
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
4515
|
-
var o, r, s, i, u,
|
|
4516
|
-
if (e !== window && e.parentNode && e !== Rt() ? (o = e.getBoundingClientRect(), r = o.top, s = o.left, i = o.bottom, u = o.right,
|
|
4516
|
+
var o, r, s, i, u, d, c;
|
|
4517
|
+
if (e !== window && e.parentNode && e !== Rt() ? (o = e.getBoundingClientRect(), r = o.top, s = o.left, i = o.bottom, u = o.right, d = o.height, c = o.width) : (r = 0, s = 0, i = window.innerHeight, u = window.innerWidth, d = window.innerHeight, c = window.innerWidth), (n || t) && e !== window && (l = l || e.parentNode, !Wt))
|
|
4517
4518
|
do
|
|
4518
4519
|
if (l && l.getBoundingClientRect && (Ce(l, "transform") !== "none" || t && Ce(l, "position") !== "static")) {
|
|
4519
4520
|
var C = l.getBoundingClientRect();
|
|
@@ -4523,15 +4524,15 @@ function Je(e, n, t, a, l) {
|
|
|
4523
4524
|
while (l = l.parentNode);
|
|
4524
4525
|
if (a && e !== window) {
|
|
4525
4526
|
var g = Sn(l || e), S = g && g.a, y = g && g.d;
|
|
4526
|
-
g && (r /= y, s /= S,
|
|
4527
|
+
g && (r /= y, s /= S, c /= S, d /= y, i = r + d, u = s + c);
|
|
4527
4528
|
}
|
|
4528
4529
|
return {
|
|
4529
4530
|
top: r,
|
|
4530
4531
|
left: s,
|
|
4531
4532
|
bottom: i,
|
|
4532
4533
|
right: u,
|
|
4533
|
-
width:
|
|
4534
|
-
height:
|
|
4534
|
+
width: c,
|
|
4535
|
+
height: d
|
|
4535
4536
|
};
|
|
4536
4537
|
}
|
|
4537
4538
|
}
|
|
@@ -4679,9 +4680,9 @@ function Pc() {
|
|
|
4679
4680
|
}
|
|
4680
4681
|
var o = !1, r = 0;
|
|
4681
4682
|
e.forEach(function(s) {
|
|
4682
|
-
var i = 0, u = s.target,
|
|
4683
|
-
y && (
|
|
4684
|
-
(S.top -
|
|
4683
|
+
var i = 0, u = s.target, d = u.fromRect, c = Je(u), C = u.prevFromRect, g = u.prevToRect, S = s.rect, y = Sn(u, !0);
|
|
4684
|
+
y && (c.top -= y.f, c.left -= y.e), u.toRect = c, u.thisAnimationDuration && Ao(C, c) && !Ao(d, c) && // Make sure animatingRect is on line between toRect & fromRect
|
|
4685
|
+
(S.top - c.top) / (S.left - c.left) === (d.top - c.top) / (d.left - c.left) && (i = Nc(S, C, g, l.options)), Ao(c, d) || (u.prevFromRect = d, u.prevToRect = c, i || (i = l.options.animation), l.animate(u, S, c, i)), i && (o = !0, r = Math.max(r, i), clearTimeout(u.animationResetTimer), u.animationResetTimer = setTimeout(function() {
|
|
4685
4686
|
u.animationTime = 0, u.prevFromRect = null, u.fromRect = null, u.prevToRect = null, u.thisAnimationDuration = null;
|
|
4686
4687
|
}, i), u.thisAnimationDuration = i);
|
|
4687
4688
|
}), clearTimeout(n), o ? n = setTimeout(function() {
|
|
@@ -4691,8 +4692,8 @@ function Pc() {
|
|
|
4691
4692
|
animate: function(a, l, o, r) {
|
|
4692
4693
|
if (r) {
|
|
4693
4694
|
Ce(a, "transition", ""), Ce(a, "transform", "");
|
|
4694
|
-
var s = Sn(this.el), i = s && s.a, u = s && s.d,
|
|
4695
|
-
a.animatingX = !!
|
|
4695
|
+
var s = Sn(this.el), i = s && s.a, u = s && s.d, d = (l.left - o.left) / (i || 1), c = (l.top - o.top) / (u || 1);
|
|
4696
|
+
a.animatingX = !!d, a.animatingY = !!c, Ce(a, "transform", "translate3d(" + d + "px," + c + "px,0)"), this.forRepaintDummy = Lc(a), Ce(a, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), Ce(a, "transform", "translate3d(0,0,0)"), typeof a.animated == "number" && clearTimeout(a.animated), a.animated = setTimeout(function() {
|
|
4696
4697
|
Ce(a, "transition", ""), Ce(a, "transform", ""), a.animated = !1, a.animatingX = !1, a.animatingY = !1;
|
|
4697
4698
|
}, r);
|
|
4698
4699
|
}
|
|
@@ -4758,13 +4759,13 @@ var gn = [], Mo = {
|
|
|
4758
4759
|
}
|
|
4759
4760
|
};
|
|
4760
4761
|
function Vc(e) {
|
|
4761
|
-
var n = e.sortable, t = e.rootEl, a = e.name, l = e.targetEl, o = e.cloneEl, r = e.toEl, s = e.fromEl, i = e.oldIndex, u = e.newIndex,
|
|
4762
|
+
var n = e.sortable, t = e.rootEl, a = e.name, l = e.targetEl, o = e.cloneEl, r = e.toEl, s = e.fromEl, i = e.oldIndex, u = e.newIndex, d = e.oldDraggableIndex, c = e.newDraggableIndex, C = e.originalEvent, g = e.putSortable, S = e.extraEventProperties;
|
|
4762
4763
|
if (n = n || t && t[vt], !!n) {
|
|
4763
4764
|
var y, f = n.options, m = "on" + a.charAt(0).toUpperCase() + a.substr(1);
|
|
4764
4765
|
window.CustomEvent && !Wt && !wa ? y = new CustomEvent(a, {
|
|
4765
4766
|
bubbles: !0,
|
|
4766
4767
|
cancelable: !0
|
|
4767
|
-
}) : (y = document.createEvent("Event"), y.initEvent(a, !0, !0)), y.to = r || t, y.from = s || t, y.item = l || t, y.clone = o, y.oldIndex = i, y.newIndex = u, y.oldDraggableIndex =
|
|
4768
|
+
}) : (y = document.createEvent("Event"), y.initEvent(a, !0, !0)), y.to = r || t, y.from = s || t, y.item = l || t, y.clone = o, y.oldIndex = i, y.newIndex = u, y.oldDraggableIndex = d, y.newDraggableIndex = c, y.originalEvent = C, y.pullMode = g ? g.lastPutMode : void 0;
|
|
4768
4769
|
var p = Pt(Pt({}, S), Ca.getEventProperties(a, n));
|
|
4769
4770
|
for (var x in p)
|
|
4770
4771
|
y[x] = p[x];
|
|
@@ -4827,16 +4828,16 @@ var ae, Ke, Ae, je, sn, La, qe, Qt, Cn, yt, ea, Jt, $a, ot, bn = !1, Ka = !1, Wa
|
|
|
4827
4828
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
4828
4829
|
}
|
|
4829
4830
|
})(), Vr = function(n, t) {
|
|
4830
|
-
var a = Ce(n), l = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), o = An(n, 0, t), r = An(n, 1, t), s = o && Ce(o), i = r && Ce(r), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Je(o).width,
|
|
4831
|
+
var a = Ce(n), l = parseInt(a.width) - parseInt(a.paddingLeft) - parseInt(a.paddingRight) - parseInt(a.borderLeftWidth) - parseInt(a.borderRightWidth), o = An(n, 0, t), r = An(n, 1, t), s = o && Ce(o), i = r && Ce(r), u = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + Je(o).width, d = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + Je(r).width;
|
|
4831
4832
|
if (a.display === "flex")
|
|
4832
4833
|
return a.flexDirection === "column" || a.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
4833
4834
|
if (a.display === "grid")
|
|
4834
4835
|
return a.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
4835
4836
|
if (o && s.float && s.float !== "none") {
|
|
4836
|
-
var
|
|
4837
|
-
return r && (i.clear === "both" || i.clear ===
|
|
4837
|
+
var c = s.float === "left" ? "left" : "right";
|
|
4838
|
+
return r && (i.clear === "both" || i.clear === c) ? "vertical" : "horizontal";
|
|
4838
4839
|
}
|
|
4839
|
-
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= l && a[Jl] === "none" || r && a[Jl] === "none" && u +
|
|
4840
|
+
return o && (s.display === "block" || s.display === "flex" || s.display === "table" || s.display === "grid" || u >= l && a[Jl] === "none" || r && a[Jl] === "none" && u + d > l) ? "vertical" : "horizontal";
|
|
4840
4841
|
}, zc = function(n, t, a) {
|
|
4841
4842
|
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;
|
|
4842
4843
|
return l === s || o === i || l + r / 2 === s + u / 2;
|
|
@@ -4852,16 +4853,16 @@ var ae, Ke, Ae, je, sn, La, qe, Qt, Cn, yt, ea, Jt, $a, ot, bn = !1, Ka = !1, Wa
|
|
|
4852
4853
|
}), a;
|
|
4853
4854
|
}, Ur = function(n) {
|
|
4854
4855
|
function t(o, r) {
|
|
4855
|
-
return function(s, i, u,
|
|
4856
|
-
var
|
|
4857
|
-
if (o == null && (r ||
|
|
4856
|
+
return function(s, i, u, d) {
|
|
4857
|
+
var c = s.options.group.name && i.options.group.name && s.options.group.name === i.options.group.name;
|
|
4858
|
+
if (o == null && (r || c))
|
|
4858
4859
|
return !0;
|
|
4859
4860
|
if (o == null || o === !1)
|
|
4860
4861
|
return !1;
|
|
4861
4862
|
if (r && o === "clone")
|
|
4862
4863
|
return o;
|
|
4863
4864
|
if (typeof o == "function")
|
|
4864
|
-
return t(o(s, i, u,
|
|
4865
|
+
return t(o(s, i, u, d), r)(s, i, u, d);
|
|
4865
4866
|
var C = (r ? s : i).options.group.name;
|
|
4866
4867
|
return o === !0 || typeof o == "string" && o === C || o.join && o.indexOf(C) > -1;
|
|
4867
4868
|
};
|
|
@@ -4962,10 +4963,10 @@ Se.prototype = /** @lends Sortable.prototype */
|
|
|
4962
4963
|
},
|
|
4963
4964
|
_onTapStart: function(n) {
|
|
4964
4965
|
if (n.cancelable) {
|
|
4965
|
-
var t = this, a = this.el, l = this.options, o = l.preventOnFilter, r = n.type, s = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, i = (s || n).target, u = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || i,
|
|
4966
|
+
var t = this, a = this.el, l = this.options, o = l.preventOnFilter, r = n.type, s = n.touches && n.touches[0] || n.pointerType && n.pointerType === "touch" && n, i = (s || n).target, u = n.target.shadowRoot && (n.path && n.path[0] || n.composedPath && n.composedPath()[0]) || i, d = l.filter;
|
|
4966
4967
|
if (Qc(a), !ae && !(/mousedown|pointerdown/.test(r) && n.button !== 0 || l.disabled) && !u.isContentEditable && !(!this.nativeDraggable && Jn && i && i.tagName.toUpperCase() === "SELECT") && (i = It(i, l.draggable, a, !1), !(i && i.animated) && La !== i)) {
|
|
4967
|
-
if (Cn = xt(i), ea = xt(i, l.draggable), typeof
|
|
4968
|
-
if (
|
|
4968
|
+
if (Cn = xt(i), ea = xt(i, l.draggable), typeof d == "function") {
|
|
4969
|
+
if (d.call(this, n, i, this)) {
|
|
4969
4970
|
ut({
|
|
4970
4971
|
sortable: t,
|
|
4971
4972
|
rootEl: u,
|
|
@@ -4978,11 +4979,11 @@ Se.prototype = /** @lends Sortable.prototype */
|
|
|
4978
4979
|
}), o && n.preventDefault();
|
|
4979
4980
|
return;
|
|
4980
4981
|
}
|
|
4981
|
-
} else if (
|
|
4982
|
-
if (
|
|
4982
|
+
} else if (d && (d = d.split(",").some(function(c) {
|
|
4983
|
+
if (c = It(u, c.trim(), a, !1), c)
|
|
4983
4984
|
return ut({
|
|
4984
4985
|
sortable: t,
|
|
4985
|
-
rootEl:
|
|
4986
|
+
rootEl: c,
|
|
4986
4987
|
name: "filter",
|
|
4987
4988
|
targetEl: i,
|
|
4988
4989
|
fromEl: a,
|
|
@@ -4990,7 +4991,7 @@ Se.prototype = /** @lends Sortable.prototype */
|
|
|
4990
4991
|
}), ft("filter", t, {
|
|
4991
4992
|
evt: n
|
|
4992
4993
|
}), !0;
|
|
4993
|
-
}),
|
|
4994
|
+
}), d)) {
|
|
4994
4995
|
o && n.preventDefault();
|
|
4995
4996
|
return;
|
|
4996
4997
|
}
|
|
@@ -5018,8 +5019,8 @@ Se.prototype = /** @lends Sortable.prototype */
|
|
|
5018
5019
|
name: "choose",
|
|
5019
5020
|
originalEvent: n
|
|
5020
5021
|
}), gt(ae, r.chosenClass, !0);
|
|
5021
|
-
}, r.ignore.split(",").forEach(function(
|
|
5022
|
-
Or(ae,
|
|
5022
|
+
}, r.ignore.split(",").forEach(function(d) {
|
|
5023
|
+
Or(ae, d.trim(), Bo);
|
|
5023
5024
|
}), 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)), ql && this.nativeDraggable && (this.options.touchStartThreshold = 4, ae.draggable = !0), ft("delayStart", this, {
|
|
5024
5025
|
evt: n
|
|
5025
5026
|
}), r.delay && (!r.delayOnTouchOnly || t) && (!this.nativeDraggable || !(wa || Wt))) {
|
|
@@ -5090,23 +5091,23 @@ Se.prototype = /** @lends Sortable.prototype */
|
|
|
5090
5091
|
},
|
|
5091
5092
|
_onTouchMove: function(n) {
|
|
5092
5093
|
if (on) {
|
|
5093
|
-
var t = this.options, a = t.fallbackTolerance, l = t.fallbackOffset, o = n.touches ? n.touches[0] : n, r = Ae && Sn(Ae, !0), s = Ae && r && r.a, i = Ae && r && r.d, u = Ba && st && Gl(st),
|
|
5094
|
+
var t = this.options, a = t.fallbackTolerance, l = t.fallbackOffset, o = n.touches ? n.touches[0] : n, r = Ae && Sn(Ae, !0), s = Ae && r && r.a, i = Ae && r && r.d, u = Ba && st && Gl(st), d = (o.clientX - on.clientX + l.x) / (s || 1) + (u ? u[0] - Fo[0] : 0) / (s || 1), c = (o.clientY - on.clientY + l.y) / (i || 1) + (u ? u[1] - Fo[1] : 0) / (i || 1);
|
|
5094
5095
|
if (!Se.active && !bn) {
|
|
5095
5096
|
if (a && Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) < a)
|
|
5096
5097
|
return;
|
|
5097
5098
|
this._onDragStart(n, !0);
|
|
5098
5099
|
}
|
|
5099
5100
|
if (Ae) {
|
|
5100
|
-
r ? (r.e +=
|
|
5101
|
+
r ? (r.e += d - (Io || 0), r.f += c - ($o || 0)) : r = {
|
|
5101
5102
|
a: 1,
|
|
5102
5103
|
b: 0,
|
|
5103
5104
|
c: 0,
|
|
5104
5105
|
d: 1,
|
|
5105
|
-
e:
|
|
5106
|
-
f:
|
|
5106
|
+
e: d,
|
|
5107
|
+
f: c
|
|
5107
5108
|
};
|
|
5108
5109
|
var C = "matrix(".concat(r.a, ",").concat(r.b, ",").concat(r.c, ",").concat(r.d, ",").concat(r.e, ",").concat(r.f, ")");
|
|
5109
|
-
Ce(Ae, "webkitTransform", C), Ce(Ae, "mozTransform", C), Ce(Ae, "msTransform", C), Ce(Ae, "transform", C), Io =
|
|
5110
|
+
Ce(Ae, "webkitTransform", C), Ce(Ae, "mozTransform", C), Ce(Ae, "msTransform", C), Ce(Ae, "transform", C), Io = d, $o = c, Mt = o;
|
|
5110
5111
|
}
|
|
5111
5112
|
n.cancelable && n.preventDefault();
|
|
5112
5113
|
}
|
|
@@ -5139,17 +5140,17 @@ Se.prototype = /** @lends Sortable.prototype */
|
|
|
5139
5140
|
},
|
|
5140
5141
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
5141
5142
|
_onDragOver: function(n) {
|
|
5142
|
-
var t = this.el, a = n.target, l, o, r, s = this.options, i = s.group, u = Se.active,
|
|
5143
|
+
var t = this.el, a = n.target, l, o, r, s = this.options, i = s.group, u = Se.active, d = $a === i, c = s.sort, C = ot || u, g, S = this, y = !1;
|
|
5143
5144
|
if (Yo) return;
|
|
5144
5145
|
function f(E, O) {
|
|
5145
5146
|
ft(E, S, Pt({
|
|
5146
5147
|
evt: n,
|
|
5147
|
-
isOwner:
|
|
5148
|
+
isOwner: d,
|
|
5148
5149
|
axis: g ? "vertical" : "horizontal",
|
|
5149
5150
|
revert: r,
|
|
5150
5151
|
dragRect: l,
|
|
5151
5152
|
targetRect: o,
|
|
5152
|
-
canSort:
|
|
5153
|
+
canSort: c,
|
|
5153
5154
|
fromSortable: C,
|
|
5154
5155
|
target: a,
|
|
5155
5156
|
completed: p,
|
|
@@ -5165,7 +5166,7 @@ Se.prototype = /** @lends Sortable.prototype */
|
|
|
5165
5166
|
function p(E) {
|
|
5166
5167
|
return f("dragOverCompleted", {
|
|
5167
5168
|
insertion: E
|
|
5168
|
-
}), E && (
|
|
5169
|
+
}), E && (d ? u._hideClone() : u._showClone(S), S !== C && (gt(ae, ot ? ot.options.ghostClass : u.options.ghostClass, !1), gt(ae, s.ghostClass, !0)), ot !== S && S !== Se.active ? ot = S : S === Se.active && ot && (ot = null), C === S && (S._ignoreWhileAnimating = a), S.animateAll(function() {
|
|
5169
5170
|
f("dragOverAnimationComplete"), S._ignoreWhileAnimating = null;
|
|
5170
5171
|
}), S !== C && (C.animateAll(), C._ignoreWhileAnimating = null)), (a === ae && !ae.animated || a === t && !a.animated) && (yn = null), !s.dragoverBubble && !n.rootEl && a !== document && (ae.parentNode[vt]._isOutsideThisEl(n.target), !E && ln(n)), !s.dragoverBubble && n.stopPropagation && n.stopPropagation(), y = !0;
|
|
5171
5172
|
}
|
|
@@ -5182,7 +5183,7 @@ Se.prototype = /** @lends Sortable.prototype */
|
|
|
5182
5183
|
if (n.preventDefault !== void 0 && n.cancelable && n.preventDefault(), a = It(a, s.draggable, t, !0), f("dragOver"), Se.eventCanceled) return y;
|
|
5183
5184
|
if (ae.contains(n.target) || a.animated && a.animatingX && a.animatingY || S._ignoreWhileAnimating === a)
|
|
5184
5185
|
return p(!1);
|
|
5185
|
-
if (Ka = !1, u && !s.disabled && (
|
|
5186
|
+
if (Ka = !1, u && !s.disabled && (d ? c || (r = Ke !== je) : ot === this || (this.lastPutMode = $a.checkPull(this, u, ae, n)) && i.checkPut(this, u, ae, n))) {
|
|
5186
5187
|
if (g = this._getDirection(n, a) === "vertical", l = Je(ae), f("dragOverValid"), Se.eventCanceled) return y;
|
|
5187
5188
|
if (r)
|
|
5188
5189
|
return Ke = je, m(), this._hideClone(), f("revert"), Se.eventCanceled || (sn ? je.insertBefore(ae, sn) : je.appendChild(ae)), p(!0);
|
|
@@ -5389,11 +5390,11 @@ function qc(e) {
|
|
|
5389
5390
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
5390
5391
|
}
|
|
5391
5392
|
function Oa(e, n, t, a, l, o, r, s) {
|
|
5392
|
-
var i, u = e[vt],
|
|
5393
|
+
var i, u = e[vt], d = u.options.onMove, c;
|
|
5393
5394
|
return window.CustomEvent && !Wt && !wa ? i = new CustomEvent("move", {
|
|
5394
5395
|
bubbles: !0,
|
|
5395
5396
|
cancelable: !0
|
|
5396
|
-
}) : (i = document.createEvent("Event"), i.initEvent("move", !0, !0)), i.to = n, i.from = e, i.dragged = t, i.draggedRect = a, i.related = l || n, i.relatedRect = o || Je(n), i.willInsertAfter = s, i.originalEvent = r, e.dispatchEvent(i),
|
|
5397
|
+
}) : (i = document.createEvent("Event"), i.initEvent("move", !0, !0)), i.to = n, i.from = e, i.dragged = t, i.draggedRect = a, i.related = l || n, i.relatedRect = o || Je(n), i.willInsertAfter = s, i.originalEvent = r, e.dispatchEvent(i), d && (c = d.call(u, i, r)), c;
|
|
5397
5398
|
}
|
|
5398
5399
|
function Bo(e) {
|
|
5399
5400
|
e.draggable = !1;
|
|
@@ -5410,17 +5411,17 @@ function Gc(e, n, t) {
|
|
|
5410
5411
|
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;
|
|
5411
5412
|
}
|
|
5412
5413
|
function Xc(e, n, t, a, l, o, r, s) {
|
|
5413
|
-
var i = a ? e.clientY : e.clientX, u = a ? t.height : t.width,
|
|
5414
|
+
var i = a ? e.clientY : e.clientX, u = a ? t.height : t.width, d = a ? t.top : t.left, c = a ? t.bottom : t.right, C = !1;
|
|
5414
5415
|
if (!r) {
|
|
5415
5416
|
if (s && Na < u * l) {
|
|
5416
|
-
if (!na && (ta === 1 ? i >
|
|
5417
|
+
if (!na && (ta === 1 ? i > d + u * o / 2 : i < c - u * o / 2) && (na = !0), na)
|
|
5417
5418
|
C = !0;
|
|
5418
|
-
else if (ta === 1 ? i <
|
|
5419
|
+
else if (ta === 1 ? i < d + Na : i > c - Na)
|
|
5419
5420
|
return -ta;
|
|
5420
|
-
} else if (i >
|
|
5421
|
+
} else if (i > d + u * (1 - l) / 2 && i < c - u * (1 - l) / 2)
|
|
5421
5422
|
return Zc(n);
|
|
5422
5423
|
}
|
|
5423
|
-
return C = C || r, C && (i <
|
|
5424
|
+
return C = C || r, C && (i < d + u * o / 2 || i > c - u * o / 2) ? i > d + u / 2 ? 1 : -1 : 0;
|
|
5424
5425
|
}
|
|
5425
5426
|
function Zc(e) {
|
|
5426
5427
|
return xt(ae) < xt(e) ? 1 : -1;
|
|
@@ -5545,23 +5546,23 @@ function Ql() {
|
|
|
5545
5546
|
}
|
|
5546
5547
|
var Ro = _r(function(e, n, t, a) {
|
|
5547
5548
|
if (n.scroll) {
|
|
5548
|
-
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,
|
|
5549
|
-
Ho !== t && (Ho = t, Ua(), Gn = n.scroll,
|
|
5550
|
-
var
|
|
5549
|
+
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, d;
|
|
5550
|
+
Ho !== t && (Ho = t, Ua(), Gn = n.scroll, d = n.scrollFn, Gn === !0 && (Gn = en(t, !0)));
|
|
5551
|
+
var c = 0, C = Gn;
|
|
5551
5552
|
do {
|
|
5552
5553
|
var g = C, S = Je(g), y = S.top, f = S.bottom, m = S.left, p = S.right, x = S.width, B = S.height, A = void 0, D = void 0, $ = g.scrollWidth, z = g.scrollHeight, I = Ce(g), N = g.scrollLeft, K = g.scrollTop;
|
|
5553
5554
|
g === i ? (A = x < $ && (I.overflowX === "auto" || I.overflowX === "scroll" || I.overflowX === "visible"), D = B < z && (I.overflowY === "auto" || I.overflowY === "scroll" || I.overflowY === "visible")) : (A = x < $ && (I.overflowX === "auto" || I.overflowX === "scroll"), D = B < z && (I.overflowY === "auto" || I.overflowY === "scroll"));
|
|
5554
5555
|
var V = A && (Math.abs(p - l) <= r && N + x < $) - (Math.abs(m - l) <= r && !!N), R = D && (Math.abs(f - o) <= r && K + B < z) - (Math.abs(y - o) <= r && !!K);
|
|
5555
|
-
if (!Ze[
|
|
5556
|
-
for (var b = 0; b <=
|
|
5556
|
+
if (!Ze[c])
|
|
5557
|
+
for (var b = 0; b <= c; b++)
|
|
5557
5558
|
Ze[b] || (Ze[b] = {});
|
|
5558
|
-
(Ze[
|
|
5559
|
+
(Ze[c].vx != V || Ze[c].vy != R || Ze[c].el !== g) && (Ze[c].el = g, Ze[c].vx = V, Ze[c].vy = R, clearInterval(Ze[c].pid), (V != 0 || R != 0) && (u = !0, Ze[c].pid = setInterval((function() {
|
|
5559
5560
|
a && this.layer === 0 && Se.active._onTouchMove(Xa);
|
|
5560
5561
|
var h = Ze[this.layer].vy ? Ze[this.layer].vy * s : 0, v = Ze[this.layer].vx ? Ze[this.layer].vx * s : 0;
|
|
5561
|
-
typeof
|
|
5562
|
+
typeof d == "function" && d.call(Se.dragged.parentNode[vt], v, h, e, Xa, Ze[this.layer].el) !== "continue" || Rr(Ze[this.layer].el, v, h);
|
|
5562
5563
|
}).bind({
|
|
5563
|
-
layer:
|
|
5564
|
-
}), 24))),
|
|
5564
|
+
layer: c
|
|
5565
|
+
}), 24))), c++;
|
|
5565
5566
|
} while (n.bubbleScroll && C !== i && (C = en(C, !1)));
|
|
5566
5567
|
jo = u;
|
|
5567
5568
|
}
|
|
@@ -5570,8 +5571,8 @@ var Ro = _r(function(e, n, t, a) {
|
|
|
5570
5571
|
if (t) {
|
|
5571
5572
|
var u = a || o;
|
|
5572
5573
|
s();
|
|
5573
|
-
var
|
|
5574
|
-
i(), u && !u.el.contains(
|
|
5574
|
+
var d = t.changedTouches && t.changedTouches.length ? t.changedTouches[0] : t, c = document.elementFromPoint(d.clientX, d.clientY);
|
|
5575
|
+
i(), u && !u.el.contains(c) && (r("spill"), this.onSpill({
|
|
5575
5576
|
dragEl: l,
|
|
5576
5577
|
putSortable: a
|
|
5577
5578
|
}));
|
|
@@ -5621,10 +5622,10 @@ function jr(e, n, t = {}) {
|
|
|
5621
5622
|
...s,
|
|
5622
5623
|
...r
|
|
5623
5624
|
}));
|
|
5624
|
-
},
|
|
5625
|
+
}, d = () => {
|
|
5625
5626
|
const S = typeof e == "string" ? l?.querySelector(e) : El(e);
|
|
5626
5627
|
S && u(S);
|
|
5627
|
-
},
|
|
5628
|
+
}, c = (S, y) => {
|
|
5628
5629
|
if (y !== void 0) a?.option(S, y);
|
|
5629
5630
|
else return a?.option(S);
|
|
5630
5631
|
};
|
|
@@ -5634,7 +5635,7 @@ function jr(e, n, t = {}) {
|
|
|
5634
5635
|
}, {
|
|
5635
5636
|
immediate: !0,
|
|
5636
5637
|
flush: "post"
|
|
5637
|
-
}) : Ts(
|
|
5638
|
+
}) : Ts(d);
|
|
5638
5639
|
const g = () => {
|
|
5639
5640
|
i();
|
|
5640
5641
|
};
|
|
@@ -5642,8 +5643,8 @@ function jr(e, n, t = {}) {
|
|
|
5642
5643
|
C?.(), i();
|
|
5643
5644
|
}), {
|
|
5644
5645
|
stop: g,
|
|
5645
|
-
start:
|
|
5646
|
-
option:
|
|
5646
|
+
start: d,
|
|
5647
|
+
option: c
|
|
5647
5648
|
};
|
|
5648
5649
|
}
|
|
5649
5650
|
function td(e, n, t) {
|
|
@@ -5713,22 +5714,22 @@ function ud(e, n, t) {
|
|
|
5713
5714
|
}
|
|
5714
5715
|
const cd = () => ld(), Fv = () => id(), Hn = "a-sortable-widget__handle", dd = "a-sortable-widget__ghost", fd = "a-sortable-widget__drag", md = "a-sortable-widget__chosen", er = "a-sortable-widget__group";
|
|
5715
5716
|
function vd(e, n, t, a) {
|
|
5716
|
-
const l = U(!1), o = U(null), r = U(null), s = U(cd()), i = U(null), u = U(0),
|
|
5717
|
-
function
|
|
5717
|
+
const l = U(!1), o = U(null), r = U(null), s = U(cd()), i = U(null), u = U(0), d = U(t.dirty);
|
|
5718
|
+
function c(R, b) {
|
|
5718
5719
|
return {
|
|
5719
5720
|
key: R[t.keyField],
|
|
5720
5721
|
index: b,
|
|
5721
5722
|
raw: R
|
|
5722
5723
|
};
|
|
5723
5724
|
}
|
|
5724
|
-
const C = P(() => e.value.map((R, b) =>
|
|
5725
|
+
const C = P(() => e.value.map((R, b) => c(R, b))), g = (R = void 0) => {
|
|
5725
5726
|
u.value++, F(R) || a("update:modelValue", R), Qe(() => {
|
|
5726
5727
|
n();
|
|
5727
5728
|
});
|
|
5728
5729
|
}, S = (R) => {
|
|
5729
|
-
|
|
5730
|
+
d.value.add(R);
|
|
5730
5731
|
}, y = (R) => {
|
|
5731
|
-
|
|
5732
|
+
d.value.delete(R);
|
|
5732
5733
|
}, f = (R, b, h, v = []) => {
|
|
5733
5734
|
const w = b > h ? h : b;
|
|
5734
5735
|
let E = t.positionMultiplier * w + t.positionMultiplier * 1;
|
|
@@ -5785,7 +5786,7 @@ function vd(e, n, t, a) {
|
|
|
5785
5786
|
return {
|
|
5786
5787
|
items: C,
|
|
5787
5788
|
forceRerender: u,
|
|
5788
|
-
dirtyLocal:
|
|
5789
|
+
dirtyLocal: d,
|
|
5789
5790
|
widgetEl: r,
|
|
5790
5791
|
randomUuid: s,
|
|
5791
5792
|
removeDialog: l,
|
|
@@ -5842,13 +5843,13 @@ const hd = "a-sortable-", pd = ["id"], gd = { key: 1 }, yd = { class: "a-sortabl
|
|
|
5842
5843
|
x.value = !0;
|
|
5843
5844
|
}, u = (v) => {
|
|
5844
5845
|
l("onEdit", v);
|
|
5845
|
-
},
|
|
5846
|
+
}, d = () => {
|
|
5846
5847
|
if (a.modelValue.length > 0) {
|
|
5847
5848
|
l("onAddLast", Ee(a.modelValue[a.modelValue.length - 1]));
|
|
5848
5849
|
return;
|
|
5849
5850
|
}
|
|
5850
5851
|
l("onAddLast", null);
|
|
5851
|
-
},
|
|
5852
|
+
}, c = P(() => F(a.widgetIdentifierId) ? hd + I.value : a.widgetIdentifierId), C = P(() => a.rootClassName + " " + (a.chips ? a.rootClassName + "--chips" : "")), g = () => {
|
|
5852
5853
|
if (a.disableDraggable || !z.value) return;
|
|
5853
5854
|
const v = z.value.querySelector("." + er);
|
|
5854
5855
|
v && ($.value = jr(v, [], {
|
|
@@ -5889,7 +5890,7 @@ const hd = "a-sortable-", pd = ["id"], gd = { key: 1 }, yd = { class: "a-sortabl
|
|
|
5889
5890
|
return ia(() => {
|
|
5890
5891
|
B();
|
|
5891
5892
|
}), Qe(() => {
|
|
5892
|
-
z.value = document.querySelector("#" +
|
|
5893
|
+
z.value = document.querySelector("#" + c.value), g();
|
|
5893
5894
|
}), Oe(
|
|
5894
5895
|
() => a.disableDraggable,
|
|
5895
5896
|
async (v) => {
|
|
@@ -5912,7 +5913,7 @@ const hd = "a-sortable-", pd = ["id"], gd = { key: 1 }, yd = { class: "a-sortabl
|
|
|
5912
5913
|
const E = kn("ABtnTertiary"), O = kn("ABtnPrimary");
|
|
5913
5914
|
return _(), ue("div", null, [
|
|
5914
5915
|
$e("div", {
|
|
5915
|
-
id:
|
|
5916
|
+
id: c.value,
|
|
5916
5917
|
class: lt(C.value)
|
|
5917
5918
|
}, [
|
|
5918
5919
|
(_(), ue("div", {
|
|
@@ -6068,14 +6069,14 @@ const hd = "a-sortable-", pd = ["id"], gd = { key: 1 }, yd = { class: "a-sortabl
|
|
|
6068
6069
|
], 2))
|
|
6069
6070
|
], 10, pd),
|
|
6070
6071
|
ke(v.$slots, "add-last-activator", {
|
|
6071
|
-
props: { onClick: De(() =>
|
|
6072
|
+
props: { onClick: De(() => d(), ["stop"]) }
|
|
6072
6073
|
}, () => [
|
|
6073
6074
|
e.showAddLastButton ? (_(), ne(Pe, {
|
|
6074
6075
|
key: 0,
|
|
6075
6076
|
size: "small",
|
|
6076
6077
|
"prepend-icon": "mdi-plus",
|
|
6077
6078
|
class: "ma-1",
|
|
6078
|
-
onClick: De(
|
|
6079
|
+
onClick: De(d, ["stop"])
|
|
6079
6080
|
}, {
|
|
6080
6081
|
default: M(() => [
|
|
6081
6082
|
ye(se(L(r)(e.addLastButtonT)), 1)
|
|
@@ -6178,7 +6179,7 @@ const kd = {
|
|
|
6178
6179
|
const t = e, a = n, l = de(ht), o = de(St), r = de(Er);
|
|
6179
6180
|
if (F(r) || F(l) || F(o))
|
|
6180
6181
|
throw new Error("Incorrect provide/inject config.");
|
|
6181
|
-
const s = U("add"), i = U(""), u = U(!1),
|
|
6182
|
+
const s = U("add"), i = U(""), u = U(!1), d = U(!1), c = U(!1), C = U(!1), g = U(!1), S = U([]), y = U(null), { required: f, maxLength: m } = nl(), p = {
|
|
6182
6183
|
customName: {
|
|
6183
6184
|
required: f,
|
|
6184
6185
|
maxLength: m(100)
|
|
@@ -6198,20 +6199,20 @@ const kd = {
|
|
|
6198
6199
|
// eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
6199
6200
|
Mr(t.client, t.system)
|
|
6200
6201
|
), { t: V } = Ye(), { showErrorsDefault: R, showValidationError: b, showWarningT: h } = Ln(), { createDefaultUserAdminConfig: v } = Sd(), w = async () => {
|
|
6201
|
-
|
|
6202
|
+
c.value = !0;
|
|
6202
6203
|
const te = S.value.map((he) => he.id);
|
|
6203
6204
|
try {
|
|
6204
|
-
await I(te),
|
|
6205
|
+
await I(te), c.value = !1, await pe(), a("onClose");
|
|
6205
6206
|
} catch (he) {
|
|
6206
|
-
R(he),
|
|
6207
|
+
R(he), c.value = !1;
|
|
6207
6208
|
}
|
|
6208
6209
|
}, { serializeFilters: E } = Dr(o, l), O = t.system + "_" + t.subject, j = async () => {
|
|
6209
|
-
|
|
6210
|
+
c.value = !0, g.value = !1;
|
|
6210
6211
|
const Z = v(t.system);
|
|
6211
6212
|
Z.user = t.user, Z.configType = ja.FilterBookmark, Z.layoutType = dn.Desktop, Z.systemResource = O, Z.customName = i.value, Z.data = {
|
|
6212
6213
|
filter: E(o, r, !1),
|
|
6213
6214
|
datatableHiddenColumns: u.value && t.datatableHiddenColumns ? t.datatableHiddenColumns : void 0,
|
|
6214
|
-
sortBy:
|
|
6215
|
+
sortBy: d.value && r.value.sortBy ? r.value.sortBy : void 0
|
|
6215
6216
|
};
|
|
6216
6217
|
try {
|
|
6217
6218
|
const te = await D.fetchBookmarksCount(
|
|
@@ -6223,7 +6224,7 @@ const kd = {
|
|
|
6223
6224
|
z
|
|
6224
6225
|
);
|
|
6225
6226
|
if (te >= Vo) {
|
|
6226
|
-
g.value = !0,
|
|
6227
|
+
g.value = !0, c.value = !1;
|
|
6227
6228
|
return;
|
|
6228
6229
|
}
|
|
6229
6230
|
Z.position = te + 1;
|
|
@@ -6243,7 +6244,7 @@ const kd = {
|
|
|
6243
6244
|
}
|
|
6244
6245
|
R(te);
|
|
6245
6246
|
} finally {
|
|
6246
|
-
|
|
6247
|
+
c.value = !1;
|
|
6247
6248
|
}
|
|
6248
6249
|
}, Q = () => {
|
|
6249
6250
|
if (s.value === "add") {
|
|
@@ -6372,8 +6373,8 @@ const kd = {
|
|
|
6372
6373
|
T(un, null, {
|
|
6373
6374
|
default: M(() => [
|
|
6374
6375
|
T(Vl, {
|
|
6375
|
-
modelValue:
|
|
6376
|
-
"onUpdate:modelValue": te[4] || (te[4] = (ce) =>
|
|
6376
|
+
modelValue: d.value,
|
|
6377
|
+
"onUpdate:modelValue": te[4] || (te[4] = (ce) => d.value = ce),
|
|
6377
6378
|
label: L(V)("common.filter.bookmark.storeTableOrder")
|
|
6378
6379
|
}, null, 8, ["modelValue", "label"])
|
|
6379
6380
|
]),
|
|
@@ -6466,7 +6467,7 @@ const kd = {
|
|
|
6466
6467
|
}),
|
|
6467
6468
|
T(le, {
|
|
6468
6469
|
"data-cy": "button-confirm",
|
|
6469
|
-
loading:
|
|
6470
|
+
loading: c.value,
|
|
6470
6471
|
onClick: De(Q, ["stop"])
|
|
6471
6472
|
}, {
|
|
6472
6473
|
default: M(() => [
|
|
@@ -6572,21 +6573,21 @@ const kd = {
|
|
|
6572
6573
|
subject: s.general.subject
|
|
6573
6574
|
});
|
|
6574
6575
|
bt(a.store) ? a.store === !1 && (u.value.system = void 0, u.value.subject = void 0) : (u.value.system = a.store.system, u.value.subject = a.store.subject);
|
|
6575
|
-
const
|
|
6576
|
-
fn(Lt,
|
|
6577
|
-
const
|
|
6578
|
-
fn(Tt,
|
|
6576
|
+
const d = U(0);
|
|
6577
|
+
fn(Lt, d);
|
|
6578
|
+
const c = U(/* @__PURE__ */ new Map());
|
|
6579
|
+
fn(Tt, c);
|
|
6579
6580
|
const C = () => {
|
|
6580
|
-
|
|
6581
|
+
d.value++, Qe(() => {
|
|
6581
6582
|
l("submit"), r();
|
|
6582
6583
|
});
|
|
6583
6584
|
}, { clearAll: g, clearAllFilterSelected: S } = Bt(), y = () => {
|
|
6584
6585
|
Qe(() => {
|
|
6585
|
-
|
|
6586
|
+
d.value++, l("bookmarkLoadAfter"), r();
|
|
6586
6587
|
});
|
|
6587
6588
|
}, f = () => {
|
|
6588
|
-
g(i, s), S(i, s,
|
|
6589
|
-
|
|
6589
|
+
g(i, s), S(i, s, c), Qe(() => {
|
|
6590
|
+
d.value++, l("reset"), r();
|
|
6590
6591
|
});
|
|
6591
6592
|
}, m = P(() => s.touched), p = P(() => Object.entries(s.fields).filter(([, x]) => !x.render.skip).map(([x]) => x));
|
|
6592
6593
|
return n({
|
|
@@ -6711,7 +6712,7 @@ const kd = {
|
|
|
6711
6712
|
throw new Error(
|
|
6712
6713
|
`[${u}] Incorrect filter inner config. FilterByField is '${t.filterByField}' and available options are ${Object.keys(i).join(", ")}.`
|
|
6713
6714
|
);
|
|
6714
|
-
const { fetch:
|
|
6715
|
+
const { fetch: d, add: c, addManualMinimal: C } = t.useCached(), g = P(() => {
|
|
6715
6716
|
if (o.value)
|
|
6716
6717
|
return "$vuetify.loading";
|
|
6717
6718
|
if (r.value.size === 0 && l.value.length < t.minSearchChars)
|
|
@@ -6785,7 +6786,7 @@ const kd = {
|
|
|
6785
6786
|
if (re(b) || F(b) || Fe(b) && b.length === 0)
|
|
6786
6787
|
return;
|
|
6787
6788
|
const h = Fe(b) ? b : [b], v = new Set(h);
|
|
6788
|
-
await V(v), v.size > 0 && (
|
|
6789
|
+
await V(v), v.size > 0 && (c(Array.from(v)), d());
|
|
6789
6790
|
},
|
|
6790
6791
|
{ immediate: !0 }
|
|
6791
6792
|
), (b, h) => (_(), ne(ua, {
|
|
@@ -6885,20 +6886,20 @@ const kd = {
|
|
|
6885
6886
|
const n = de(ht), t = de(St), a = de(Tt);
|
|
6886
6887
|
if (F(n) || F(t) || F(a))
|
|
6887
6888
|
throw new Error("Incorrect provide/inject config.");
|
|
6888
|
-
const { t: l } = Ye(), o = (
|
|
6889
|
-
const
|
|
6890
|
-
return
|
|
6889
|
+
const { t: l } = Ye(), o = (d) => {
|
|
6890
|
+
const c = n.fields?.[d]?.titleT;
|
|
6891
|
+
return c ? l(c) : d;
|
|
6891
6892
|
}, r = P(() => {
|
|
6892
|
-
const
|
|
6893
|
-
return Array.from(a.value).map(([
|
|
6894
|
-
name:
|
|
6895
|
-
title: o(
|
|
6893
|
+
const d = Object.keys(n.fields);
|
|
6894
|
+
return Array.from(a.value).filter(([c]) => n.fields?.[c]?.render?.selected !== !1).map(([c, C]) => ({
|
|
6895
|
+
name: c,
|
|
6896
|
+
title: o(c),
|
|
6896
6897
|
options: C
|
|
6897
|
-
})).sort((
|
|
6898
|
-
}), { clearOneFilterSelected: s, isClearable: i } = Bt(), u = (
|
|
6899
|
-
s(
|
|
6898
|
+
})).sort((c, C) => d.indexOf(c.name) - d.indexOf(C.name));
|
|
6899
|
+
}), { clearOneFilterSelected: s, isClearable: i } = Bt(), u = (d, c) => {
|
|
6900
|
+
s(d, c, t, n, a), n.touched = !0;
|
|
6900
6901
|
};
|
|
6901
|
-
return (
|
|
6902
|
+
return (d, c) => (_(!0), ue(We, null, tn(r.value, (C) => (_(), ue("div", {
|
|
6902
6903
|
key: C.name,
|
|
6903
6904
|
class: "a-selected-filters"
|
|
6904
6905
|
}, [
|
|
@@ -6967,21 +6968,21 @@ const kd = {
|
|
|
6967
6968
|
subject: s.general.subject
|
|
6968
6969
|
});
|
|
6969
6970
|
bt(a.store) ? a.store === !1 && (u.value.system = void 0, u.value.subject = void 0) : (u.value.system = a.store.system, u.value.subject = a.store.subject);
|
|
6970
|
-
const
|
|
6971
|
-
fn(Lt,
|
|
6972
|
-
const
|
|
6973
|
-
fn(Tt,
|
|
6971
|
+
const d = U(0);
|
|
6972
|
+
fn(Lt, d);
|
|
6973
|
+
const c = U(/* @__PURE__ */ new Map());
|
|
6974
|
+
fn(Tt, c);
|
|
6974
6975
|
const C = () => {
|
|
6975
|
-
|
|
6976
|
+
d.value++, Qe(() => {
|
|
6976
6977
|
l("submit");
|
|
6977
6978
|
});
|
|
6978
6979
|
}, { clearAll: g, clearAllFilterSelected: S } = Bt(), y = () => {
|
|
6979
6980
|
Qe(() => {
|
|
6980
|
-
|
|
6981
|
+
d.value++, l("bookmarkLoadAfter");
|
|
6981
6982
|
});
|
|
6982
6983
|
}, f = () => {
|
|
6983
|
-
g(i, s), S(i, s,
|
|
6984
|
-
|
|
6984
|
+
g(i, s), S(i, s, c), Qe(() => {
|
|
6985
|
+
d.value++, l("reset");
|
|
6985
6986
|
});
|
|
6986
6987
|
}, m = () => {
|
|
6987
6988
|
r.value = !r.value;
|
|
@@ -7147,25 +7148,25 @@ function Yd(e) {
|
|
|
7147
7148
|
document.querySelector(`[data-id="${CSS.escape(String(y))}"]`)?.focus();
|
|
7148
7149
|
});
|
|
7149
7150
|
}
|
|
7150
|
-
function
|
|
7151
|
+
function d(y) {
|
|
7151
7152
|
n.value = y, u(y);
|
|
7152
7153
|
}
|
|
7153
|
-
let
|
|
7154
|
+
let c = [...a.value];
|
|
7154
7155
|
Oe(a, (y) => {
|
|
7155
7156
|
if (n.value === null) {
|
|
7156
|
-
|
|
7157
|
+
c = [...y];
|
|
7157
7158
|
return;
|
|
7158
7159
|
}
|
|
7159
7160
|
if (y.includes(n.value)) {
|
|
7160
|
-
|
|
7161
|
+
c = [...y];
|
|
7161
7162
|
return;
|
|
7162
7163
|
}
|
|
7163
7164
|
if (y.length === 0) {
|
|
7164
|
-
n.value = null,
|
|
7165
|
+
n.value = null, c = [];
|
|
7165
7166
|
return;
|
|
7166
7167
|
}
|
|
7167
|
-
const f =
|
|
7168
|
-
|
|
7168
|
+
const f = c.indexOf(n.value), m = Math.min(Math.max(f, 0), y.length - 1);
|
|
7169
|
+
d(y[m]), c = [...y];
|
|
7169
7170
|
}), Oe(a, (y) => {
|
|
7170
7171
|
t.value !== null && !y.includes(t.value) && (t.value = null);
|
|
7171
7172
|
});
|
|
@@ -7183,19 +7184,19 @@ function Yd(e) {
|
|
|
7183
7184
|
switch (f.key) {
|
|
7184
7185
|
case "ArrowUp":
|
|
7185
7186
|
if ($) return;
|
|
7186
|
-
f.preventDefault(), B && A ? e.onMoveUp?.(y) : p > 0 &&
|
|
7187
|
+
f.preventDefault(), B && A ? e.onMoveUp?.(y) : p > 0 && d(m[p - 1]);
|
|
7187
7188
|
return;
|
|
7188
7189
|
case "ArrowDown":
|
|
7189
7190
|
if ($) return;
|
|
7190
|
-
f.preventDefault(), B && A ? e.onMoveDown?.(y) : p < m.length - 1 &&
|
|
7191
|
+
f.preventDefault(), B && A ? e.onMoveDown?.(y) : p < m.length - 1 && d(m[p + 1]);
|
|
7191
7192
|
return;
|
|
7192
7193
|
case "Home":
|
|
7193
7194
|
if ($) return;
|
|
7194
|
-
f.preventDefault(), B && A ? e.onMoveTop?.(y) : m.length > 0 &&
|
|
7195
|
+
f.preventDefault(), B && A ? e.onMoveTop?.(y) : m.length > 0 && d(m[0]);
|
|
7195
7196
|
return;
|
|
7196
7197
|
case "End":
|
|
7197
7198
|
if ($) return;
|
|
7198
|
-
f.preventDefault(), B && A ? e.onMoveBottom?.(y) : m.length > 0 &&
|
|
7199
|
+
f.preventDefault(), B && A ? e.onMoveBottom?.(y) : m.length > 0 && d(m[m.length - 1]);
|
|
7199
7200
|
return;
|
|
7200
7201
|
case "ArrowLeft":
|
|
7201
7202
|
if (e.variant !== "nested" || $) return;
|
|
@@ -7236,7 +7237,7 @@ function Yd(e) {
|
|
|
7236
7237
|
isFocused: l,
|
|
7237
7238
|
isGrabbed: o,
|
|
7238
7239
|
rowTabindex: i,
|
|
7239
|
-
setFocus:
|
|
7240
|
+
setFocus: d,
|
|
7240
7241
|
releaseGrab: C,
|
|
7241
7242
|
handleKeydown: S
|
|
7242
7243
|
};
|
|
@@ -7271,18 +7272,18 @@ const zd = (e) => [...e].sort((n, t) => n.position - t.position), Hd = (e, n = [
|
|
|
7271
7272
|
let Kd = 0;
|
|
7272
7273
|
const qo = () => --Kd;
|
|
7273
7274
|
function Gr(e) {
|
|
7274
|
-
const n = typeof e.getKey == "function" ? null : e.getKey ?? "id", t = (H) => typeof e.getKey == "function" ? e.getKey(H) : H[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 = P(() => e.get()),
|
|
7275
|
+
const n = typeof e.getKey == "function" ? null : e.getKey ?? "id", t = (H) => typeof e.getKey == "function" ? e.getKey(H) : H[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 = P(() => e.get()), d = P(() => Dn(e.dirtyExclude) ?? []), c = (H, W) => H === "id" && typeof W == "number" && W < 0 ? void 0 : W, C = (H) => {
|
|
7275
7276
|
const W = { ...H };
|
|
7276
7277
|
l && delete W[o];
|
|
7277
|
-
for (const ve of
|
|
7278
|
-
return JSON.stringify(W,
|
|
7278
|
+
for (const ve of d.value) delete W[ve];
|
|
7279
|
+
return JSON.stringify(W, c);
|
|
7279
7280
|
}, g = U(/* @__PURE__ */ new Map()), S = U([]), y = (H) => {
|
|
7280
7281
|
const W = /* @__PURE__ */ new Map();
|
|
7281
7282
|
for (const ve of H) W.set(t(ve), C(ve));
|
|
7282
7283
|
g.value = W, S.value = H.map((ve) => Ee(ve));
|
|
7283
7284
|
};
|
|
7284
7285
|
Oe(
|
|
7285
|
-
|
|
7286
|
+
d,
|
|
7286
7287
|
() => {
|
|
7287
7288
|
const H = /* @__PURE__ */ new Map();
|
|
7288
7289
|
for (const W of S.value) H.set(t(W), C(W));
|
|
@@ -7440,22 +7441,22 @@ function Zd(e, n) {
|
|
|
7440
7441
|
w > h && (h = w);
|
|
7441
7442
|
}
|
|
7442
7443
|
return h + 1;
|
|
7443
|
-
},
|
|
7444
|
+
}, d = (b, h = e.value.children, v = null) => {
|
|
7444
7445
|
for (const w of h) {
|
|
7445
7446
|
if (i(w.data) === b) return { node: w, parent: v };
|
|
7446
7447
|
if (w.children && w.children.length > 0) {
|
|
7447
|
-
const E =
|
|
7448
|
+
const E = d(b, w.children, w);
|
|
7448
7449
|
if (E.node) return E;
|
|
7449
7450
|
}
|
|
7450
7451
|
}
|
|
7451
7452
|
return { node: null, parent: null };
|
|
7452
|
-
},
|
|
7453
|
+
}, c = (b) => {
|
|
7453
7454
|
let h = 1 * r;
|
|
7454
7455
|
for (const v of b)
|
|
7455
7456
|
v.data[l] !== h && (v.data[l] = h, v.meta.dirty = !0), h += r;
|
|
7456
7457
|
}, C = (b) => {
|
|
7457
7458
|
const h = (v) => {
|
|
7458
|
-
|
|
7459
|
+
c(v);
|
|
7459
7460
|
for (const w of v) w.children && w.children.length && h(w.children);
|
|
7460
7461
|
};
|
|
7461
7462
|
h(b.children);
|
|
@@ -7508,36 +7509,36 @@ function Zd(e, n) {
|
|
|
7508
7509
|
};
|
|
7509
7510
|
let O = v.children, j = null;
|
|
7510
7511
|
if (h?.parentId !== void 0 && h.parentId !== null) {
|
|
7511
|
-
const { node: X } =
|
|
7512
|
+
const { node: X } = d(h.parentId, v.children);
|
|
7512
7513
|
X && X.children && (O = X.children, j = X);
|
|
7513
7514
|
}
|
|
7514
7515
|
if (h?.afterId !== void 0) {
|
|
7515
|
-
const { node: X, parent: me } =
|
|
7516
|
+
const { node: X, parent: me } = d(h.afterId, v.children);
|
|
7516
7517
|
if (X) {
|
|
7517
7518
|
const Me = me ? me.children : v.children, we = Me.indexOf(X);
|
|
7518
7519
|
if (we !== -1)
|
|
7519
|
-
return f(Me, we, E), E.data[o] = me ? i(me.data) : null,
|
|
7520
|
+
return f(Me, we, E), E.data[o] = me ? i(me.data) : null, c(Me), e.value = v, v;
|
|
7520
7521
|
}
|
|
7521
7522
|
}
|
|
7522
7523
|
const Q = h?.asFirstChild ? 0 : m(O, h);
|
|
7523
|
-
return O.splice(Q, 0, E), E.data[o] = j ? i(j.data) : null,
|
|
7524
|
+
return O.splice(Q, 0, E), E.data[o] = j ? i(j.data) : null, c(O), e.value = v, v;
|
|
7524
7525
|
}, x = (b) => {
|
|
7525
|
-
const h = Ee(e.value), { node: v, parent: w } =
|
|
7526
|
+
const h = Ee(e.value), { node: v, parent: w } = d(b, h.children);
|
|
7526
7527
|
if (!v) return h;
|
|
7527
7528
|
const E = w ? w.children : h.children, O = E.indexOf(v);
|
|
7528
|
-
return O === -1 || (E.splice(O, 1),
|
|
7529
|
+
return O === -1 || (E.splice(O, 1), c(E), e.value = h), h;
|
|
7529
7530
|
}, B = (b, h, v = !0) => {
|
|
7530
|
-
const w = Ee(e.value), { node: E } =
|
|
7531
|
+
const w = Ee(e.value), { node: E } = d(b, w.children);
|
|
7531
7532
|
return E && (E.data = Ee(h), v && (E.meta.dirty = !0), e.value = w), w;
|
|
7532
7533
|
}, A = (b, h, v) => {
|
|
7533
|
-
const { node: w, parent: E } =
|
|
7534
|
+
const { node: w, parent: E } = d(h, b.children);
|
|
7534
7535
|
if (!w) return null;
|
|
7535
7536
|
const O = E ? E.children : b.children, j = O.indexOf(w);
|
|
7536
7537
|
if (j === -1) return null;
|
|
7537
7538
|
const Q = v(O, j);
|
|
7538
7539
|
if (Q === null || Q === j) return null;
|
|
7539
7540
|
const [X] = O.splice(j, 1);
|
|
7540
|
-
return O.splice(Q, 0, X),
|
|
7541
|
+
return O.splice(Q, 0, X), c(O), b;
|
|
7541
7542
|
}, D = (b) => {
|
|
7542
7543
|
const h = Ee(e.value), v = A(h, b, (w, E) => E > 0 ? E - 1 : null);
|
|
7543
7544
|
return v && (e.value = v), v;
|
|
@@ -7551,21 +7552,21 @@ function Zd(e, n) {
|
|
|
7551
7552
|
const h = Ee(e.value), v = A(h, b, (w, E) => E < w.length - 1 ? w.length - 1 : null);
|
|
7552
7553
|
return v && (e.value = v), v;
|
|
7553
7554
|
}, N = (b) => {
|
|
7554
|
-
const h = Ee(e.value), { node: v, parent: w } =
|
|
7555
|
+
const h = Ee(e.value), { node: v, parent: w } = d(b, h.children);
|
|
7555
7556
|
if (!v) return null;
|
|
7556
7557
|
const E = w ? w.children : h.children, O = E.indexOf(v);
|
|
7557
7558
|
if (O <= 0) return null;
|
|
7558
7559
|
const j = E[O - 1];
|
|
7559
7560
|
if (F(j.children)) return null;
|
|
7560
7561
|
const Q = u(v);
|
|
7561
|
-
return V(h, i(j.data)) + 1 + Q > s ? null : (E.splice(O, 1), j.children.push(v), v.data[o] = i(j.data), v.meta.dirty = !0,
|
|
7562
|
+
return V(h, i(j.data)) + 1 + Q > s ? null : (E.splice(O, 1), j.children.push(v), v.data[o] = i(j.data), v.meta.dirty = !0, c(E), c(j.children), e.value = h, h);
|
|
7562
7563
|
}, K = (b) => {
|
|
7563
|
-
const h = Ee(e.value), { node: v, parent: w } =
|
|
7564
|
+
const h = Ee(e.value), { node: v, parent: w } = d(b, h.children);
|
|
7564
7565
|
if (!v || !w) return null;
|
|
7565
|
-
const { parent: E } =
|
|
7566
|
+
const { parent: E } = d(i(w.data), h.children), O = E ? E.children : h.children, j = O.indexOf(w);
|
|
7566
7567
|
if (j === -1) return null;
|
|
7567
7568
|
const Q = w.children, X = Q.indexOf(v);
|
|
7568
|
-
return X === -1 ? null : (Q.splice(X, 1), O.splice(j + 1, 0, v), v.data[o] = E ? i(E.data) : null, v.meta.dirty = !0,
|
|
7569
|
+
return X === -1 ? null : (Q.splice(X, 1), O.splice(j + 1, 0, v), v.data[o] = E ? i(E.data) : null, v.meta.dirty = !0, c(Q), c(O), e.value = h, h);
|
|
7569
7570
|
}, V = (b, h) => {
|
|
7570
7571
|
const v = (w, E) => {
|
|
7571
7572
|
for (const O of w) {
|
|
@@ -7581,7 +7582,7 @@ function Zd(e, n) {
|
|
|
7581
7582
|
};
|
|
7582
7583
|
return {
|
|
7583
7584
|
viewItems: y,
|
|
7584
|
-
findNode:
|
|
7585
|
+
findNode: d,
|
|
7585
7586
|
addItem: p,
|
|
7586
7587
|
deleteItem: x,
|
|
7587
7588
|
updateItem: B,
|
|
@@ -7592,7 +7593,7 @@ function Zd(e, n) {
|
|
|
7592
7593
|
indent: N,
|
|
7593
7594
|
outdent: K,
|
|
7594
7595
|
moveTo: (b, h, v) => {
|
|
7595
|
-
const w = Ee(e.value), { node: E, parent: O } =
|
|
7596
|
+
const w = Ee(e.value), { node: E, parent: O } = d(b, w.children);
|
|
7596
7597
|
if (!E) return null;
|
|
7597
7598
|
if (h !== null) {
|
|
7598
7599
|
const te = (he) => {
|
|
@@ -7607,7 +7608,7 @@ function Zd(e, n) {
|
|
|
7607
7608
|
if (h === null)
|
|
7608
7609
|
j = w.children, X = 0;
|
|
7609
7610
|
else {
|
|
7610
|
-
const { node: te } =
|
|
7611
|
+
const { node: te } = d(h, w.children);
|
|
7611
7612
|
if (!te || F(te.children)) return null;
|
|
7612
7613
|
j = te.children, Q = te, X = V(w, h) + 1;
|
|
7613
7614
|
}
|
|
@@ -7617,7 +7618,7 @@ function Zd(e, n) {
|
|
|
7617
7618
|
if (we === -1) return null;
|
|
7618
7619
|
const ee = Me === j, [pe] = Me.splice(we, 1);
|
|
7619
7620
|
let Z = v;
|
|
7620
|
-
return ee && we < v && (Z = v - 1), Z = Math.max(0, Math.min(Z, j.length)), j.splice(Z, 0, pe), pe.data[o] = Q ? i(Q.data) : null, pe.meta.dirty = !0, ee ||
|
|
7621
|
+
return ee && we < v && (Z = v - 1), Z = Math.max(0, Math.min(Z, j.length)), j.splice(Z, 0, pe), pe.data[o] = Q ? i(Q.data) : null, pe.meta.dirty = !0, ee || c(Me), c(j), e.value = w, w;
|
|
7621
7622
|
},
|
|
7622
7623
|
recalculatePositions: g,
|
|
7623
7624
|
calculateSubtreeDepth: u
|
|
@@ -7640,7 +7641,7 @@ function Qd(e) {
|
|
|
7640
7641
|
const n = typeof e.getKey == "function" ? null : e.getKey ?? "id", t = (J) => typeof e.getKey == "function" ? e.getKey(J) : J[n], a = n ?? "id", l = e.position ?? "position", o = l !== !1, r = typeof l == "object" ? l.field : l === !1 ? "position" : l, s = typeof l == "object" && l.multiplier ? l.multiplier : 1, i = e.parentField ?? "parent", u = P({
|
|
7641
7642
|
get: () => e.get(),
|
|
7642
7643
|
set: (J) => e.set(J)
|
|
7643
|
-
}),
|
|
7644
|
+
}), d = Zd(u, {
|
|
7644
7645
|
keyField: a,
|
|
7645
7646
|
// Pass the controller's keyOf so tree ops resolve keys identically to
|
|
7646
7647
|
// invalidKeys/dirty tracking — supports a function get-key, not just a field.
|
|
@@ -7649,7 +7650,7 @@ function Qd(e) {
|
|
|
7649
7650
|
parentField: i,
|
|
7650
7651
|
positionMultiplier: s,
|
|
7651
7652
|
maxDepth: e.maxDepth
|
|
7652
|
-
}),
|
|
7653
|
+
}), c = P(() => Jd(e.get())), C = d.viewItems, g = P(() => Dn(e.dirtyExclude) ?? []), S = (J) => {
|
|
7653
7654
|
const ie = { ...J };
|
|
7654
7655
|
o && delete ie[r], delete ie[i];
|
|
7655
7656
|
for (const xe of g.value) delete ie[xe];
|
|
@@ -7755,7 +7756,7 @@ function Qd(e) {
|
|
|
7755
7756
|
return ie(e.get().children, null), J;
|
|
7756
7757
|
};
|
|
7757
7758
|
return {
|
|
7758
|
-
items:
|
|
7759
|
+
items: c,
|
|
7759
7760
|
viewItems: C,
|
|
7760
7761
|
hasUnsaved: v,
|
|
7761
7762
|
unsavedCount: w,
|
|
@@ -7795,38 +7796,38 @@ function Qd(e) {
|
|
|
7795
7796
|
},
|
|
7796
7797
|
addItem: (J, ie) => {
|
|
7797
7798
|
const xe = J ?? e.factory?.();
|
|
7798
|
-
xe !== void 0 &&
|
|
7799
|
+
xe !== void 0 && d.addItem(xe, ie);
|
|
7799
7800
|
},
|
|
7800
7801
|
addAfter: (J, ie, xe = !0) => {
|
|
7801
7802
|
const Ne = ie ?? e.factory?.();
|
|
7802
|
-
Ne !== void 0 &&
|
|
7803
|
+
Ne !== void 0 && d.addItem(Ne, { afterId: J, childrenAllowed: xe });
|
|
7803
7804
|
},
|
|
7804
7805
|
addChild: (J, ie, xe = !0) => {
|
|
7805
7806
|
const Ne = ie ?? e.factory?.();
|
|
7806
|
-
Ne !== void 0 &&
|
|
7807
|
+
Ne !== void 0 && d.addItem(Ne, { parentId: J, childrenAllowed: xe });
|
|
7807
7808
|
},
|
|
7808
7809
|
updateItem: (J, ie, xe = !0) => {
|
|
7809
|
-
|
|
7810
|
+
d.updateItem(J, ie, xe);
|
|
7810
7811
|
},
|
|
7811
7812
|
deleteItem: (J, ie) => {
|
|
7812
|
-
y.value.has(J) && ie?.trackDeleted !== !1 && V(J) && I.value.add(J),
|
|
7813
|
+
y.value.has(J) && ie?.trackDeleted !== !1 && V(J) && I.value.add(J), d.deleteItem(J);
|
|
7813
7814
|
},
|
|
7814
7815
|
restoreDeleted: (J) => {
|
|
7815
7816
|
I.value.delete(J);
|
|
7816
7817
|
},
|
|
7817
|
-
moveUp: (J) =>
|
|
7818
|
-
moveDown: (J) =>
|
|
7819
|
-
moveTop: (J) =>
|
|
7820
|
-
moveBottom: (J) =>
|
|
7821
|
-
indent: (J) =>
|
|
7822
|
-
outdent: (J) =>
|
|
7823
|
-
moveTo: (J, ie, xe) =>
|
|
7818
|
+
moveUp: (J) => d.moveUp(J) !== null,
|
|
7819
|
+
moveDown: (J) => d.moveDown(J) !== null,
|
|
7820
|
+
moveTop: (J) => d.moveTop(J) !== null,
|
|
7821
|
+
moveBottom: (J) => d.moveBottom(J) !== null,
|
|
7822
|
+
indent: (J) => d.indent(J) !== null,
|
|
7823
|
+
outdent: (J) => d.outdent(J) !== null,
|
|
7824
|
+
moveTo: (J, ie, xe) => d.moveTo(J, ie, xe) !== null,
|
|
7824
7825
|
recalculatePositions: () => {
|
|
7825
|
-
e.set(
|
|
7826
|
+
e.set(d.recalculatePositions(e.get()));
|
|
7826
7827
|
},
|
|
7827
7828
|
registerValidity: (J, ie) => (A.set(J, ie), () => A.delete(J)),
|
|
7828
|
-
findNode:
|
|
7829
|
-
calculateSubtreeDepth:
|
|
7829
|
+
findNode: d.findNode,
|
|
7830
|
+
calculateSubtreeDepth: d.calculateSubtreeDepth
|
|
7830
7831
|
};
|
|
7831
7832
|
}
|
|
7832
7833
|
const sl = /* @__PURE__ */ Symbol(
|
|
@@ -7844,8 +7845,8 @@ function Xr() {
|
|
|
7844
7845
|
return u.boundUid !== null && i !== null && u.boundUid !== i && console.warn(
|
|
7845
7846
|
`[list-editor] two editors are mounted under the same state-key "${o}". They would share one state controller — give each editor a unique state-key (e.g. suffix the row prefix with the list name).`
|
|
7846
7847
|
), u.boundUid = i, u.live.value = r, u.handle;
|
|
7847
|
-
const
|
|
7848
|
-
return n.set(o, { scope:
|
|
7848
|
+
const d = t.active ? t.run(() => bo()) : bo(), c = aa(r), C = d.run(() => s(c));
|
|
7849
|
+
return n.set(o, { scope: d, live: c, handle: C, children: null, boundUid: i }), C;
|
|
7849
7850
|
},
|
|
7850
7851
|
release(o, r, s) {
|
|
7851
7852
|
const i = n.get(o);
|
|
@@ -7865,7 +7866,7 @@ function Xr() {
|
|
|
7865
7866
|
const s = `${e}:`;
|
|
7866
7867
|
for (const [i, u] of n) {
|
|
7867
7868
|
if (!i.startsWith(s)) continue;
|
|
7868
|
-
r.some((
|
|
7869
|
+
r.some((c) => i === c || i.startsWith(`${c}:`)) || a(i, u);
|
|
7869
7870
|
}
|
|
7870
7871
|
},
|
|
7871
7872
|
has(o) {
|
|
@@ -7981,8 +7982,8 @@ function rf(e) {
|
|
|
7981
7982
|
a.value = !0;
|
|
7982
7983
|
try {
|
|
7983
7984
|
await e.onDelete(u.raw);
|
|
7984
|
-
} catch (
|
|
7985
|
-
return a.value = !1, l.value =
|
|
7985
|
+
} catch (d) {
|
|
7986
|
+
return a.value = !1, l.value = d instanceof Error ? d.message : String(d), !1;
|
|
7986
7987
|
}
|
|
7987
7988
|
a.value = !1;
|
|
7988
7989
|
}
|
|
@@ -8013,22 +8014,22 @@ function rf(e) {
|
|
|
8013
8014
|
function sf(e) {
|
|
8014
8015
|
const n = U(/* @__PURE__ */ new Set()), t = U(/* @__PURE__ */ new Map()), a = U(!1), l = () => {
|
|
8015
8016
|
n.value.clear(), t.value.clear();
|
|
8016
|
-
}, o = (
|
|
8017
|
-
t.value.has(
|
|
8018
|
-
}, r = (
|
|
8019
|
-
const
|
|
8020
|
-
|
|
8021
|
-
}, s = (
|
|
8022
|
-
n.value.delete(
|
|
8023
|
-
}, i = (
|
|
8024
|
-
n.value.delete(
|
|
8017
|
+
}, o = (d) => {
|
|
8018
|
+
t.value.has(d.key) || t.value.set(d.key, Ee(d.raw)), n.value.add(d.key);
|
|
8019
|
+
}, r = (d) => {
|
|
8020
|
+
const c = t.value.get(d.key);
|
|
8021
|
+
c && e.restoreSnapshot(d.key, c), n.value.delete(d.key), t.value.delete(d.key);
|
|
8022
|
+
}, s = (d) => {
|
|
8023
|
+
n.value.delete(d.key), t.value.delete(d.key);
|
|
8024
|
+
}, i = (d) => {
|
|
8025
|
+
n.value.delete(d.key), t.value.delete(d.key);
|
|
8025
8026
|
}, u = () => {
|
|
8026
8027
|
a.value = !0;
|
|
8027
8028
|
};
|
|
8028
|
-
return Oe(e.watchKeys, (
|
|
8029
|
+
return Oe(e.watchKeys, (d, c) => {
|
|
8029
8030
|
if (!a.value) return;
|
|
8030
8031
|
a.value = !1;
|
|
8031
|
-
const C = new Set(
|
|
8032
|
+
const C = new Set(c ?? []), g = d.find((y) => !C.has(y));
|
|
8032
8033
|
if (g === void 0 || !e.isInlineEdit.value) return;
|
|
8033
8034
|
const S = e.findEntry(g);
|
|
8034
8035
|
S && (t.value.has(g) || t.value.set(g, Ee(S.data)), n.value.add(g), e.afterAutoOpen?.(g), Qe(() => {
|
|
@@ -8084,23 +8085,23 @@ function df(e) {
|
|
|
8084
8085
|
!e.canEnterReorder.value || a.value || (s() || (e.snapshot.value = e.cloneModel(e.modelValue.value)), e.movedKeys.value = /* @__PURE__ */ new Set(), t.value = null, e.mode.value = "reorder", e.onEnter?.(), e.emit.reorderStart());
|
|
8085
8086
|
}, u = () => {
|
|
8086
8087
|
a.value && (!s() && e.snapshot.value && e.applyModel(e.snapshot.value), e.snapshot.value = null, e.movedKeys.value = /* @__PURE__ */ new Set(), t.value = null, n.value = !1, e.mode.value = "view", e.onCancel?.(), e.emit.reorderCancel(), e.emit.reorderEnd());
|
|
8087
|
-
},
|
|
8088
|
+
}, d = async () => {
|
|
8088
8089
|
if (!a.value) return;
|
|
8089
|
-
const
|
|
8090
|
+
const c = r();
|
|
8090
8091
|
if (t.value = null, !s() && e.onReorderApply) {
|
|
8091
8092
|
n.value = !0;
|
|
8092
8093
|
try {
|
|
8093
|
-
await e.onReorderApply(
|
|
8094
|
+
await e.onReorderApply(c);
|
|
8094
8095
|
} catch (C) {
|
|
8095
8096
|
n.value = !1, t.value = C instanceof Error ? C.message : String(C), e.emit.reorderApplyError(C);
|
|
8096
8097
|
return;
|
|
8097
8098
|
}
|
|
8098
8099
|
n.value = !1;
|
|
8099
8100
|
}
|
|
8100
|
-
e.snapshot.value = null, e.mode.value = "view", e.onApplyEnd?.(), e.emit.reorderApplied(
|
|
8101
|
+
e.snapshot.value = null, e.mode.value = "view", e.onApplyEnd?.(), e.emit.reorderApplied(c), e.emit.reorderEnd();
|
|
8101
8102
|
};
|
|
8102
|
-
return Oe(e.mode, (
|
|
8103
|
-
|
|
8103
|
+
return Oe(e.mode, (c, C) => {
|
|
8104
|
+
c === "reorder" && C !== "reorder" && (!s() && !e.snapshot.value && (e.snapshot.value = e.cloneModel(e.modelValue.value)), e.movedKeys.value = /* @__PURE__ */ new Set(), e.onExternalEnter?.()), c === "view" && C === "reorder" && (e.snapshot.value ? (e.snapshot.value = null, e.movedKeys.value = /* @__PURE__ */ new Set(), t.value = null, n.value = !1) : s() && (e.movedKeys.value = /* @__PURE__ */ new Set(), t.value = null, n.value = !1, e.onEmbeddedExit?.()));
|
|
8104
8105
|
}), {
|
|
8105
8106
|
applying: n,
|
|
8106
8107
|
applyError: t,
|
|
@@ -8109,7 +8110,7 @@ function df(e) {
|
|
|
8109
8110
|
reorderMode: a,
|
|
8110
8111
|
enterReorderMode: i,
|
|
8111
8112
|
cancelReorderMode: u,
|
|
8112
|
-
applyReorder:
|
|
8113
|
+
applyReorder: d
|
|
8113
8114
|
};
|
|
8114
8115
|
}
|
|
8115
8116
|
const ff = /* @__PURE__ */ Re({
|
|
@@ -8212,19 +8213,19 @@ const ff = /* @__PURE__ */ Re({
|
|
|
8212
8213
|
emits: /* @__PURE__ */ tt(["confirm"], ["update:modelValue"]),
|
|
8213
8214
|
setup(e, { emit: n }) {
|
|
8214
8215
|
const t = e, a = n, l = ct(e, "modelValue"), { t: o } = Ye(), r = U(t.currentIndex + 1);
|
|
8215
|
-
Oe(l, (
|
|
8216
|
-
|
|
8216
|
+
Oe(l, (c) => {
|
|
8217
|
+
c && (r.value = t.currentIndex + 1);
|
|
8217
8218
|
});
|
|
8218
8219
|
const s = P(() => Math.max(t.total, 1)), i = P(
|
|
8219
8220
|
() => !Number.isFinite(r.value) || r.value < 1 || r.value > s.value
|
|
8220
8221
|
), u = () => {
|
|
8221
8222
|
if (i.value) return;
|
|
8222
|
-
const
|
|
8223
|
-
a("confirm",
|
|
8224
|
-
},
|
|
8223
|
+
const c = Math.max(0, Math.min(t.total - 1, r.value - 1));
|
|
8224
|
+
a("confirm", c), l.value = !1;
|
|
8225
|
+
}, d = () => {
|
|
8225
8226
|
l.value = !1;
|
|
8226
8227
|
};
|
|
8227
|
-
return (
|
|
8228
|
+
return (c, C) => (_(), ne(da, {
|
|
8228
8229
|
modelValue: l.value,
|
|
8229
8230
|
"onUpdate:modelValue": C[1] || (C[1] = (g) => l.value = g),
|
|
8230
8231
|
"max-width": "420",
|
|
@@ -8268,7 +8269,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
8268
8269
|
T(In),
|
|
8269
8270
|
T(Pe, {
|
|
8270
8271
|
variant: "text",
|
|
8271
|
-
onClick:
|
|
8272
|
+
onClick: d
|
|
8272
8273
|
}, {
|
|
8273
8274
|
default: M(() => [
|
|
8274
8275
|
ye(se(L(o)("common.sortable.reorderCancel")), 1)
|
|
@@ -8466,7 +8467,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
8466
8467
|
}),
|
|
8467
8468
|
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"]),
|
|
8468
8469
|
setup(e, { expose: n, emit: t }) {
|
|
8469
|
-
const a = e, l = t, o = ct(e, "modelValue"), r = ct(e, "mode"), { t: s } = Ye(), i = Cs(), u = zt("rootEl"), { isNarrow:
|
|
8470
|
+
const a = e, l = t, o = ct(e, "modelValue"), r = ct(e, "mode"), { t: s } = Ye(), i = Cs(), u = zt("rootEl"), { isNarrow: d } = Vd(u), c = Ud(), C = {
|
|
8470
8471
|
get: () => o.value,
|
|
8471
8472
|
set: (k) => o.value = k,
|
|
8472
8473
|
factory: a.factory,
|
|
@@ -8608,7 +8609,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
8608
8609
|
}
|
|
8609
8610
|
}
|
|
8610
8611
|
const _e = P(() => X.value && a.showAddButton && !he.value), kt = P(
|
|
8611
|
-
() => X.value && (he.value || a.chips) && !
|
|
8612
|
+
() => X.value && (he.value || a.chips) && !c.value && !a.disableDrag
|
|
8612
8613
|
), Nn = P(
|
|
8613
8614
|
() => a.addLabel ? s(a.addLabel) : s("common.sortable.add")
|
|
8614
8615
|
), il = P(() => a.emptyTitle ?? s("common.sortable.emptyTitle")), J = P(
|
|
@@ -8617,7 +8618,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
8617
8618
|
() => a.deleteConfirmText ?? (a.deleteMode === "immediate" ? s("common.sortable.deleteConfirmText") : s("common.sortable.deleteConfirmTextDeferred"))
|
|
8618
8619
|
), xe = P(
|
|
8619
8620
|
() => !a.chips && !a.embedded && a.showReorderToggle && !he.value && o.value.length > 0
|
|
8620
|
-
), Ne = P(() => !!a.title &&
|
|
8621
|
+
), Ne = P(() => !!a.title && d.value), Te = S.unsavedCount, ze = P(() => !a.readonly && Te.value > 0), nt = P(
|
|
8621
8622
|
() => !!(a.title || i.header || i["reorder-toggle"] || xe.value || he.value && !a.embedded || !he.value && ze.value)
|
|
8622
8623
|
), rt = P(
|
|
8623
8624
|
() => !!(a.title || i.header || i["reorder-toggle"] || i["view-body"])
|
|
@@ -8705,7 +8706,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
8705
8706
|
const G = pn.value;
|
|
8706
8707
|
pn.value = null, G && k !== G.index && (S.moveItem(G.index, k), Dt(G.key));
|
|
8707
8708
|
}, ul = (k) => af(k, { compactField: a.compactField });
|
|
8708
|
-
if (!
|
|
8709
|
+
if (!c.value) {
|
|
8709
8710
|
const k = jr(K, o, {
|
|
8710
8711
|
// The rows container can mount/unmount across mode flips (e.g. a `#view-body`
|
|
8711
8712
|
// slot in view mode, rows only in reorder mode). vueuse's default
|
|
@@ -8895,7 +8896,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
8895
8896
|
moved: k.moved,
|
|
8896
8897
|
canMoveUp: k.canMoveUp,
|
|
8897
8898
|
canMoveDown: k.canMoveDown,
|
|
8898
|
-
touch:
|
|
8899
|
+
touch: c.value,
|
|
8899
8900
|
stateKeyPrefix: f.prefixFor(k.key),
|
|
8900
8901
|
actions: cs(k.key)
|
|
8901
8902
|
}), ds = P(() => ({
|
|
@@ -8953,7 +8954,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
8953
8954
|
{
|
|
8954
8955
|
"a-sortable-list-editor--readonly": e.readonly,
|
|
8955
8956
|
"a-sortable-list-editor--disabled": e.disabled,
|
|
8956
|
-
"a-sortable-list-editor--touch": L(
|
|
8957
|
+
"a-sortable-list-editor--touch": L(c),
|
|
8957
8958
|
"a-sortable-list-editor--drag-enabled": kt.value,
|
|
8958
8959
|
"a-sortable-list-editor--chips": e.chips,
|
|
8959
8960
|
"a-sortable-list-editor--embedded": e.embedded,
|
|
@@ -9129,7 +9130,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9129
9130
|
$e("div", Hf, [
|
|
9130
9131
|
ke(k.$slots, "item-actions", Xe({ ref_for: !0 }, Gt(q)), () => [
|
|
9131
9132
|
e.chips && X.value ? (_(), ue(We, { key: 0 }, [
|
|
9132
|
-
L(
|
|
9133
|
+
L(c) && !e.disableReorder ? (_(), ue(We, { key: 0 }, [
|
|
9133
9134
|
T(Pe, {
|
|
9134
9135
|
icon: "",
|
|
9135
9136
|
size: "x-small",
|
|
@@ -9583,11 +9584,11 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9583
9584
|
throw new Error(
|
|
9584
9585
|
`[${s}] Incorrect filter inner config. FilterByField is '${i}' and available options are ${Object.keys(r).join(", ")}.`
|
|
9585
9586
|
);
|
|
9586
|
-
const
|
|
9587
|
+
const d = ct(e, "modelValue", {
|
|
9587
9588
|
set(Y) {
|
|
9588
9589
|
return Fe(Y) ? Ee(Y) : Y;
|
|
9589
9590
|
}
|
|
9590
|
-
}),
|
|
9591
|
+
}), c = ct(
|
|
9591
9592
|
e,
|
|
9592
9593
|
"selected",
|
|
9593
9594
|
{
|
|
@@ -9610,7 +9611,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9610
9611
|
);
|
|
9611
9612
|
}
|
|
9612
9613
|
const m = U(""), p = U(!1), x = U(null), B = U(0), { t: A } = Ye(), D = de(to, void 0), $ = de(no, void 0), z = () => {
|
|
9613
|
-
p.value = !1, l("blur",
|
|
9614
|
+
p.value = !1, l("blur", d.value), a.v?.$touch(), g.value(d.value);
|
|
9614
9615
|
}, I = P(() => Ue(a.errorMessage) ? [a.errorMessage] : a.v?.$errors?.length ? a.v.$errors.map((Y) => Y.$message) : []), N = P(() => {
|
|
9615
9616
|
if (Ue(a.label)) return a.label;
|
|
9616
9617
|
if (F(D) || F($) || F(a.v?.$path)) return "";
|
|
@@ -9631,7 +9632,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9631
9632
|
};
|
|
9632
9633
|
return oe(h.value), oe(b.value), Array.from(Y.values());
|
|
9633
9634
|
}), O = U(!1), j = P(() => O.value ? !0 : a.loading), Q = (Y) => {
|
|
9634
|
-
h.value = [],
|
|
9635
|
+
h.value = [], c.value = Fe(Y) ? [] : null, x.value = Fe(Y) ? [] : null;
|
|
9635
9636
|
}, X = (Y) => {
|
|
9636
9637
|
const oe = (ge) => E.value.find((_e) => _e.value === ge) ?? { title: `${ge}`, value: ge };
|
|
9637
9638
|
return Fe(Y) ? Y.map(oe) : oe(Y);
|
|
@@ -9641,7 +9642,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9641
9642
|
const oe = Fe(Y) ? Y : [Y];
|
|
9642
9643
|
h.value = await a.fetchItemsByIds(oe);
|
|
9643
9644
|
const ge = X(Y);
|
|
9644
|
-
return
|
|
9645
|
+
return c.value = ge, x.value = ge, h.value;
|
|
9645
9646
|
} catch (oe) {
|
|
9646
9647
|
we(oe);
|
|
9647
9648
|
} finally {
|
|
@@ -9655,9 +9656,9 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9655
9656
|
if (Fe(_e) && _e.length > 0) {
|
|
9656
9657
|
if (h.value = _e, a.multiple) {
|
|
9657
9658
|
const kt = _e.map((Nn) => Nn.value);
|
|
9658
|
-
return
|
|
9659
|
+
return d.value = kt, oe && await pe("force", kt), O.value = !1, !0;
|
|
9659
9660
|
}
|
|
9660
|
-
return
|
|
9661
|
+
return d.value = _e[0].value, oe && await pe("force", _e[0].value), O.value = !1, !0;
|
|
9661
9662
|
}
|
|
9662
9663
|
return O.value = !1, !1;
|
|
9663
9664
|
} catch (_e) {
|
|
@@ -9678,7 +9679,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9678
9679
|
O.value = !0;
|
|
9679
9680
|
try {
|
|
9680
9681
|
const ge = await a.fetchItems(R, r, o);
|
|
9681
|
-
B.value === 0 && (b.value = ge, !a.disableAutoSingleSelect && Y === "mounted" && ge.length === 1 && (re(oe) || F(oe) || Fe(oe) && oe.length === 0) && (
|
|
9682
|
+
B.value === 0 && (b.value = ge, !a.disableAutoSingleSelect && Y === "mounted" && ge.length === 1 && (re(oe) || F(oe) || Fe(oe) && oe.length === 0) && (d.value = a.multiple ? [ge[0].value] : ge[0].value)), w.value = !0;
|
|
9682
9683
|
} catch (ge) {
|
|
9683
9684
|
we(ge);
|
|
9684
9685
|
} finally {
|
|
@@ -9686,9 +9687,9 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9686
9687
|
}
|
|
9687
9688
|
}
|
|
9688
9689
|
}, Z = async () => {
|
|
9689
|
-
p.value = !0, y.value(), await pe("focus",
|
|
9690
|
+
p.value = !0, y.value(), await pe("focus", d.value), l("focus", d.value);
|
|
9690
9691
|
}, te = async () => {
|
|
9691
|
-
await pe("hover",
|
|
9692
|
+
await pe("hover", d.value);
|
|
9692
9693
|
}, he = P(() => {
|
|
9693
9694
|
if (!a.multiple && h.value[0])
|
|
9694
9695
|
return h.value[0].title;
|
|
@@ -9701,16 +9702,16 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9701
9702
|
we(Y);
|
|
9702
9703
|
}
|
|
9703
9704
|
if (a.multiple) {
|
|
9704
|
-
|
|
9705
|
+
d.value = [];
|
|
9705
9706
|
return;
|
|
9706
9707
|
}
|
|
9707
|
-
|
|
9708
|
+
d.value = null;
|
|
9708
9709
|
}, H = (Y) => {
|
|
9709
|
-
if (Fe(
|
|
9710
|
-
|
|
9710
|
+
if (Fe(d.value)) {
|
|
9711
|
+
d.value = d.value.filter((oe) => oe !== Y.value);
|
|
9711
9712
|
return;
|
|
9712
9713
|
}
|
|
9713
|
-
Y.value ===
|
|
9714
|
+
Y.value === d.value && a.clearable && (d.value = null);
|
|
9714
9715
|
};
|
|
9715
9716
|
Qa(
|
|
9716
9717
|
m,
|
|
@@ -9729,15 +9730,15 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9729
9730
|
});
|
|
9730
9731
|
const W = (Y) => {
|
|
9731
9732
|
const oe = Ee(Y);
|
|
9732
|
-
if (
|
|
9733
|
-
|
|
9733
|
+
if (c.value = oe, re(oe) || F(oe)) {
|
|
9734
|
+
d.value = null;
|
|
9734
9735
|
return;
|
|
9735
9736
|
}
|
|
9736
9737
|
if (Fe(oe)) {
|
|
9737
|
-
|
|
9738
|
+
d.value = oe.map((ge) => ge.value);
|
|
9738
9739
|
return;
|
|
9739
9740
|
}
|
|
9740
|
-
|
|
9741
|
+
d.value = oe.value;
|
|
9741
9742
|
}, ve = P(() => {
|
|
9742
9743
|
if (O.value)
|
|
9743
9744
|
return "$vuetify.loading";
|
|
@@ -9745,7 +9746,7 @@ const ff = /* @__PURE__ */ Re({
|
|
|
9745
9746
|
return F(a.minSearchText) ? A("common.filter.filterMinChars", { min: a.minSearchChars }) : a.minSearchText;
|
|
9746
9747
|
});
|
|
9747
9748
|
return Oe(
|
|
9748
|
-
|
|
9749
|
+
d,
|
|
9749
9750
|
async (Y, oe) => {
|
|
9750
9751
|
if (Y !== oe) {
|
|
9751
9752
|
if (v.value && (v.value = !1, await pe("mounted", Y)), C.value.enabled && p.value && S.value(Y), ur(Y)) {
|
|
@@ -10006,13 +10007,14 @@ export {
|
|
|
10006
10007
|
cf as c7,
|
|
10007
10008
|
gf as c8,
|
|
10008
10009
|
Df as c9,
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10010
|
+
Xr as cA,
|
|
10011
|
+
qo as cB,
|
|
10012
|
+
zd as cC,
|
|
10013
|
+
Hd as cD,
|
|
10014
|
+
Yn as cE,
|
|
10015
|
+
Zd as cF,
|
|
10016
|
+
Mr as cG,
|
|
10017
|
+
Sd as cH,
|
|
10016
10018
|
ff as ca,
|
|
10017
10019
|
af as cb,
|
|
10018
10020
|
uf as cc,
|
|
@@ -10031,14 +10033,14 @@ export {
|
|
|
10031
10033
|
jd as cp,
|
|
10032
10034
|
wc as cq,
|
|
10033
10035
|
Cc as cr,
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10036
|
+
_d as cs,
|
|
10037
|
+
sl as ct,
|
|
10038
|
+
tr as cu,
|
|
10039
|
+
_t as cv,
|
|
10040
|
+
dn as cw,
|
|
10041
|
+
kc as cx,
|
|
10042
|
+
ja as cy,
|
|
10043
|
+
Sc as cz,
|
|
10042
10044
|
F as d,
|
|
10043
10045
|
ao as e,
|
|
10044
10046
|
En as f,
|
|
@@ -10063,4 +10065,4 @@ export {
|
|
|
10063
10065
|
ur as y,
|
|
10064
10066
|
cr as z
|
|
10065
10067
|
};
|
|
10066
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
10068
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BbBijPbh.mjs.map
|