@anzusystems/common-admin 1.47.0-beta.353 → 1.47.0-beta.355
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-CjOiytrn.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-lX9utxPk.mjs} +51 -52
- package/dist/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CjOiytrn.mjs.map → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-lX9utxPk.mjs.map} +1 -1
- package/dist/common-admin.css +1 -1
- package/dist/common-admin.d.ts +6 -2
- package/dist/common-admin.js +2644 -2629
- package/dist/common-admin.js.map +1 -1
- package/dist/labs.d.ts +1 -0
- package/dist/labs.js +110 -107
- package/dist/labs.js.map +1 -1
- package/package.json +7 -7
|
@@ -53,10 +53,15 @@ const ll = { class: "text-high-emphasis" }, Qt = /* @__PURE__ */ we({
|
|
|
53
53
|
_: 3
|
|
54
54
|
}, 8, ["data-cy"]));
|
|
55
55
|
}
|
|
56
|
-
}),
|
|
56
|
+
}), Vo = (e, n) => {
|
|
57
|
+
const t = e.__vccOpts || e;
|
|
58
|
+
for (const [a, r] of n)
|
|
59
|
+
t[a] = r;
|
|
60
|
+
return t;
|
|
61
|
+
}, T = (e) => typeof e > "u", he = (e) => !T(e), G = (e) => e === null, Ht = (e) => typeof e == "number", Fe = (e) => typeof e == "string", ue = (e) => Array.isArray(e), wc = (e) => typeof e == "function", st = (e) => typeof e == "boolean", Cc = (e) => Fe(e) && /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/.test(e), Dc = (e) => {
|
|
57
62
|
const n = parseFloat(e);
|
|
58
63
|
return !isNaN(e) && (n | 0) === n;
|
|
59
|
-
}, gn = (e) => typeof e == "object" && !ue(e) && !G(e), un = (e) => gn(e) ? Object.keys(e).length === 0 : !1, Aa = (e) => ue(e) && e.length === 0,
|
|
64
|
+
}, gn = (e) => typeof e == "object" && !ue(e) && !G(e), un = (e) => gn(e) ? Object.keys(e).length === 0 : !1, Aa = (e) => ue(e) && e.length === 0, Ho = (e) => G(e) || T(e) || e === "" || e === 0 || Aa(e) || un(e), Ie = (e) => {
|
|
60
65
|
if (typeof structuredClone == "function")
|
|
61
66
|
try {
|
|
62
67
|
return Cr(e) ? structuredClone(Zn(e)) : Ra(e) ? structuredClone(Z(e)) : structuredClone(e);
|
|
@@ -80,13 +85,13 @@ const ll = { class: "text-high-emphasis" }, Qt = /* @__PURE__ */ we({
|
|
|
80
85
|
return n;
|
|
81
86
|
}
|
|
82
87
|
return Number.isNaN(t) ? n : t;
|
|
83
|
-
},
|
|
88
|
+
}, qo = (e, n) => {
|
|
84
89
|
const t = e.trim();
|
|
85
90
|
if (t === "")
|
|
86
91
|
return null;
|
|
87
92
|
const a = Number(t);
|
|
88
93
|
return !Number.isNaN(a) && Number.isFinite(a) ? a : null;
|
|
89
|
-
},
|
|
94
|
+
}, jo = (e) => {
|
|
90
95
|
const n = e.trim();
|
|
91
96
|
return n === "true" ? !0 : n === "false" ? !1 : null;
|
|
92
97
|
}, vn = (e, n = "") => {
|
|
@@ -237,7 +242,7 @@ function Oc() {
|
|
|
237
242
|
ml
|
|
238
243
|
);
|
|
239
244
|
}
|
|
240
|
-
function
|
|
245
|
+
function zo() {
|
|
241
246
|
return Ge(pl);
|
|
242
247
|
}
|
|
243
248
|
function Bc() {
|
|
@@ -288,15 +293,15 @@ const sa = {
|
|
|
288
293
|
function Hc(e) {
|
|
289
294
|
return e.status === Tl.Ok;
|
|
290
295
|
}
|
|
291
|
-
const
|
|
296
|
+
const Wo = {
|
|
292
297
|
Ok: "ok",
|
|
293
298
|
Failed: "failed"
|
|
294
299
|
};
|
|
295
300
|
function uo(e) {
|
|
296
|
-
return e.status ===
|
|
301
|
+
return e.status === Wo.Ok;
|
|
297
302
|
}
|
|
298
303
|
function co(e) {
|
|
299
|
-
return e.status ===
|
|
304
|
+
return e.status === Wo.Failed;
|
|
300
305
|
}
|
|
301
306
|
const qc = {
|
|
302
307
|
Free: "free",
|
|
@@ -335,7 +340,7 @@ function Ml() {
|
|
|
335
340
|
collabFieldLocksState: Il,
|
|
336
341
|
collabFieldDataBufferState: ua,
|
|
337
342
|
gatherBufferData: (a) => {
|
|
338
|
-
|
|
343
|
+
zo().emit({ room: a });
|
|
339
344
|
let o = {};
|
|
340
345
|
const l = ua.get(a);
|
|
341
346
|
return l && (o = Zn(Object.fromEntries(l.entries())), ua.delete(a)), o;
|
|
@@ -353,7 +358,7 @@ function _l() {
|
|
|
353
358
|
};
|
|
354
359
|
}
|
|
355
360
|
function aa(e, n, t = !1) {
|
|
356
|
-
const { collabOptions: a } = zt(), { currentUserId: r } = _l(), { collabSocket: o, collabFieldLocksState: l, collabFieldDataBufferState: s, collabRoomInfoState: i } = Ml(), u = Dl(), m = P(), c = P(), g = El(), p = P(), E = P(), v =
|
|
361
|
+
const { collabOptions: a } = zt(), { currentUserId: r } = _l(), { collabSocket: o, collabFieldLocksState: l, collabFieldDataBufferState: s, collabRoomInfoState: i } = Ml(), u = Dl(), m = P(), c = P(), g = El(), p = P(), E = P(), v = zo(), f = P(), d = P(), h = (O, M) => {
|
|
357
362
|
O.room !== e || O.field !== n || T(M) || T(c.value) || c.value(M);
|
|
358
363
|
}, C = (O, M) => {
|
|
359
364
|
O.room !== e || O.field !== n || T(M) || T(E.value) || E.value(M);
|
|
@@ -647,7 +652,7 @@ function Qc(e, n, t = void 0, a = void 0, r = !1, o = void 0, l = void 0, s = vo
|
|
|
647
652
|
pagination: c
|
|
648
653
|
};
|
|
649
654
|
}
|
|
650
|
-
const
|
|
655
|
+
const Ko = /* @__PURE__ */ we({
|
|
651
656
|
__name: "ADialogToolbar",
|
|
652
657
|
emits: ["onCancel"],
|
|
653
658
|
setup(e, { emit: n }) {
|
|
@@ -690,7 +695,7 @@ const Wo = /* @__PURE__ */ we({
|
|
|
690
695
|
console.error("vite-plugin-css-injected-by-js", t);
|
|
691
696
|
}
|
|
692
697
|
})();
|
|
693
|
-
const
|
|
698
|
+
const Go = /* @__PURE__ */ new Map();
|
|
694
699
|
function Pl(e) {
|
|
695
700
|
return { all: e = e || /* @__PURE__ */ new Map(), on: function(n, t) {
|
|
696
701
|
var a = e.get(n);
|
|
@@ -884,7 +889,7 @@ const An = {
|
|
|
884
889
|
slots: t,
|
|
885
890
|
expose: a
|
|
886
891
|
}) => {
|
|
887
|
-
const r = P([]), o =
|
|
892
|
+
const r = P([]), o = Go.get("velocity"), l = V(() => e.animationType === "velocity"), s = V(() => r.value.filter((k) => k.state !== An.DESTROYED)), i = V(() => Ll(e.width)), u = V(() => {
|
|
888
893
|
const {
|
|
889
894
|
x: k,
|
|
890
895
|
y: $
|
|
@@ -1019,7 +1024,7 @@ Ze.close = (e) => {
|
|
|
1019
1024
|
};
|
|
1020
1025
|
const zl = "Notifications";
|
|
1021
1026
|
function Wl(e, n = {}) {
|
|
1022
|
-
Object.entries(n).forEach((a) =>
|
|
1027
|
+
Object.entries(n).forEach((a) => Go.set(...a));
|
|
1023
1028
|
const t = n.name || "notify";
|
|
1024
1029
|
e.config.globalProperties["$" + t] = Ze, e.component(n.componentName || zl, jl);
|
|
1025
1030
|
}
|
|
@@ -1037,7 +1042,7 @@ class Kt extends Error {
|
|
|
1037
1042
|
super(t), this.name = "AnzuApiForbiddenError", this.cause = n, this.message = t;
|
|
1038
1043
|
}
|
|
1039
1044
|
}
|
|
1040
|
-
const ti = "validation_failed", yn = (e) => $t.isAxiosError(e) && e.response?.status === qa && e.response.data?.error === ti && e.response.data?.fields,
|
|
1045
|
+
const ti = "validation_failed", yn = (e) => $t.isAxiosError(e) && e.response?.status === qa && e.response.data?.error === ti && e.response.data?.fields, Xo = (e) => e instanceof Gt, ni = (e, n, t) => e.fields.some((a) => a.field === t && a.errors.includes(n));
|
|
1041
1046
|
function ai(e, n, t) {
|
|
1042
1047
|
const a = e.response?.data, r = [];
|
|
1043
1048
|
for (const [o, l] of Object.entries(a.fields))
|
|
@@ -1080,7 +1085,7 @@ class Jt extends Error {
|
|
|
1080
1085
|
super(o), this.name = "AnzuApiDependencyExistsError", this.cause = r, this.message = o, this.dependencies = ui(n);
|
|
1081
1086
|
}
|
|
1082
1087
|
}
|
|
1083
|
-
const ci = (e) => e instanceof za,
|
|
1088
|
+
const ci = (e) => e instanceof za, Zo = (e) => $t.isAxiosError(e) && (e.code === "ECONNABORTED" || e.message.includes("timeout") || e.cause instanceof Error && e.cause.message.includes("timeout"));
|
|
1084
1089
|
class za extends Error {
|
|
1085
1090
|
constructor(n = void 0) {
|
|
1086
1091
|
super("API request timed out"), this.name = "AnzuApiAxiosError", this.cause = n;
|
|
@@ -1197,7 +1202,7 @@ function oa() {
|
|
|
1197
1202
|
duration: f * 1e3,
|
|
1198
1203
|
type: "error"
|
|
1199
1204
|
});
|
|
1200
|
-
}, E = (f, d = -1) => ei(f) ? (p(d), !0) :
|
|
1205
|
+
}, E = (f, d = -1) => ei(f) ? (p(d), !0) : Xo(f) ? (m(f.fields, d), !0) : si(f) ? (a("error.apiDependencyExists.message", d), !0) : ri(f) ? (c(f.detail, d), !0) : ci(f) ? (a("error.apiTimedOut.message", d), !0) : di(f) || Kl(f) || ja(f) ? (g(d), !0) : !1, v = (f) => {
|
|
1201
1206
|
const { t: d } = De.global, h = f.split("["), C = h[0].trim(), x = h[1].split("]"), I = x[0], b = x[1] ?? "";
|
|
1202
1207
|
return d(C) + "[" + I + "]: " + d(C.slice(0, -1) + b);
|
|
1203
1208
|
};
|
|
@@ -1219,12 +1224,6 @@ function oa() {
|
|
|
1219
1224
|
showErrorsDefault: E
|
|
1220
1225
|
};
|
|
1221
1226
|
}
|
|
1222
|
-
const Zo = (e, n) => {
|
|
1223
|
-
const t = e.__vccOpts || e;
|
|
1224
|
-
for (const [a, r] of n)
|
|
1225
|
-
t[a] = r;
|
|
1226
|
-
return t;
|
|
1227
|
-
};
|
|
1228
1227
|
function Ka(e) {
|
|
1229
1228
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
1230
1229
|
}
|
|
@@ -2157,7 +2156,7 @@ const ns = { class: "a-datetime-picker-time" }, as = { class: "a-datetime-picker
|
|
|
2157
2156
|
])
|
|
2158
2157
|
]));
|
|
2159
2158
|
}
|
|
2160
|
-
}), ss = /* @__PURE__ */
|
|
2159
|
+
}), ss = /* @__PURE__ */ Vo(is, [["__scopeId", "data-v-a07d5c55"]]), us = { class: "d-flex" }, cs = { class: "ml-1" }, ds = {
|
|
2161
2160
|
key: 0,
|
|
2162
2161
|
class: "required"
|
|
2163
2162
|
}, fs = /* @__PURE__ */ we({
|
|
@@ -2380,7 +2379,7 @@ const ns = { class: "a-datetime-picker-time" }, as = { class: "a-datetime-picker
|
|
|
2380
2379
|
}
|
|
2381
2380
|
]), 1032, ["modelValue", "error-messages", "placeholder", "disabled"]));
|
|
2382
2381
|
}
|
|
2383
|
-
}), er = /* @__PURE__ */
|
|
2382
|
+
}), er = /* @__PURE__ */ Vo(fs, [["__scopeId", "data-v-9d53bed3"]]), bd = /* @__PURE__ */ we({
|
|
2384
2383
|
__name: "AFormDatetimePicker",
|
|
2385
2384
|
props: {
|
|
2386
2385
|
modelValue: {},
|
|
@@ -2703,11 +2702,11 @@ function tr(e, n, t = {}) {
|
|
|
2703
2702
|
let _ = x.filters[b];
|
|
2704
2703
|
if (!T(_)) {
|
|
2705
2704
|
if (Fe(_)) {
|
|
2706
|
-
const B =
|
|
2705
|
+
const B = qo(_);
|
|
2707
2706
|
if (!G(B))
|
|
2708
2707
|
_ = B;
|
|
2709
2708
|
else {
|
|
2710
|
-
const k =
|
|
2709
|
+
const k = jo(_);
|
|
2711
2710
|
G(k) || (_ = k);
|
|
2712
2711
|
}
|
|
2713
2712
|
}
|
|
@@ -2918,7 +2917,7 @@ const bs = (e) => gn(e) && Object.hasOwn(e, "totalCount"), ys = (e) => gn(e) &&
|
|
|
2918
2917
|
} catch (v) {
|
|
2919
2918
|
if (v instanceof DOMException && v.name === "AbortError")
|
|
2920
2919
|
return [];
|
|
2921
|
-
throw ja(v) ? v : bn(v) ? new Kt(v, v.config?.url) : yn(v) ? new Gt(v, n, t, v) : wn(v) ? new Jt(v, n, t, v) : Sn(v) ? new Zt(v, v) :
|
|
2920
|
+
throw ja(v) ? v : bn(v) ? new Kt(v, v.config?.url) : yn(v) ? new Gt(v, n, t, v) : wn(v) ? new Jt(v, n, t, v) : Sn(v) ? new Zt(v, v) : Zo(v) ? new za(v) : $t.isAxiosError(v) ? (console.error("Axios error: " + g, v.cause), new Wa(v)) : (console.error("AnzuFatalError: ", v), new ot(v));
|
|
2922
2921
|
} finally {
|
|
2923
2922
|
l = null;
|
|
2924
2923
|
}
|
|
@@ -3212,7 +3211,7 @@ const wd = (e, n = {}, t, a = {}, r, o, l = {}) => new Promise((s, i) => {
|
|
|
3212
3211
|
async (K, J) => {
|
|
3213
3212
|
if (K === J || st(K)) return;
|
|
3214
3213
|
const le = K;
|
|
3215
|
-
if (k.value && (k.value = !1, await z()),
|
|
3214
|
+
if (k.value && (k.value = !1, await z()), Ho(le)) {
|
|
3216
3215
|
M(le), T(J) || (h.value++, await S("", h.value));
|
|
3217
3216
|
return;
|
|
3218
3217
|
}
|
|
@@ -3777,7 +3776,7 @@ const jn = {
|
|
|
3777
3776
|
} catch (p) {
|
|
3778
3777
|
if (p instanceof DOMException && p.name === "AbortError")
|
|
3779
3778
|
return [];
|
|
3780
|
-
throw ja(p) ? p : bn(p) ? new Kt(p, p.config?.url) : yn(p) ? new Gt(p, t, a, p) : wn(p) ? new Jt(p, t, a, p) : Sn(p) ? new Zt(p, p) :
|
|
3779
|
+
throw ja(p) ? p : bn(p) ? new Kt(p, p.config?.url) : yn(p) ? new Gt(p, t, a, p) : wn(p) ? new Jt(p, t, a, p) : Sn(p) ? new Zt(p, p) : Zo(p) ? new za(p) : $t.isAxiosError(p) ? (console.error("Axios error: " + r, p.cause), new Wa(p)) : (console.error("AnzuFatalError: ", p), new ot(p));
|
|
3781
3780
|
} finally {
|
|
3782
3781
|
s = null;
|
|
3783
3782
|
}
|
|
@@ -3854,11 +3853,11 @@ const Rs = { key: 0 }, Ps = 32, Ns = /* @__PURE__ */ we({
|
|
|
3854
3853
|
continue;
|
|
3855
3854
|
}
|
|
3856
3855
|
if (Fe(R)) {
|
|
3857
|
-
const O =
|
|
3856
|
+
const O = qo(R);
|
|
3858
3857
|
if (!G(O))
|
|
3859
3858
|
R = O;
|
|
3860
3859
|
else {
|
|
3861
|
-
const M =
|
|
3860
|
+
const M = jo(R);
|
|
3862
3861
|
G(M) || (R = M);
|
|
3863
3862
|
}
|
|
3864
3863
|
}
|
|
@@ -5705,7 +5704,7 @@ const Tu = "a-sortable-", Au = ["id"], xu = { key: 1 }, Iu = { class: "a-sortabl
|
|
|
5705
5704
|
default: L(() => [
|
|
5706
5705
|
Z(C) ? (U(), Q(La, { key: 0 }, {
|
|
5707
5706
|
default: L(() => [
|
|
5708
|
-
N(
|
|
5707
|
+
N(Ko, {
|
|
5709
5708
|
onOnCancel: S[0] || (S[0] = (H) => C.value = !1)
|
|
5710
5709
|
}, {
|
|
5711
5710
|
default: L(() => [
|
|
@@ -5847,7 +5846,7 @@ const Ou = {
|
|
|
5847
5846
|
me
|
|
5848
5847
|
), a("onClose");
|
|
5849
5848
|
} catch (W) {
|
|
5850
|
-
if (
|
|
5849
|
+
if (Xo(W) && ni(W, "error_field_not_unique", "cms.userAdminConfig.model.systemResource")) {
|
|
5851
5850
|
w("common.filter.bookmark.nameUniqueError");
|
|
5852
5851
|
return;
|
|
5853
5852
|
}
|
|
@@ -5917,7 +5916,7 @@ const Ou = {
|
|
|
5917
5916
|
default: L(() => [
|
|
5918
5917
|
N(La, null, {
|
|
5919
5918
|
default: L(() => [
|
|
5920
|
-
N(
|
|
5919
|
+
N(Ko, {
|
|
5921
5920
|
onOnCancel: W[0] || (W[0] = (J) => a("onClose"))
|
|
5922
5921
|
}, {
|
|
5923
5922
|
default: L(() => [
|
|
@@ -6486,7 +6485,7 @@ const Ou = {
|
|
|
6486
6485
|
m,
|
|
6487
6486
|
async (j, se) => {
|
|
6488
6487
|
if (j !== se) {
|
|
6489
|
-
if (y.value && (y.value = !1, await te("mounted", j)), g.value.enabled && h.value && E.value(j),
|
|
6488
|
+
if (y.value && (y.value = !1, await te("mounted", j)), g.value.enabled && h.value && E.value(j), Ho(j)) {
|
|
6490
6489
|
X(j);
|
|
6491
6490
|
return;
|
|
6492
6491
|
}
|
|
@@ -6602,7 +6601,7 @@ export {
|
|
|
6602
6601
|
jc as X,
|
|
6603
6602
|
zc as Y,
|
|
6604
6603
|
Hc as Z,
|
|
6605
|
-
|
|
6604
|
+
Vo as _,
|
|
6606
6605
|
aa as a,
|
|
6607
6606
|
ei as a$,
|
|
6608
6607
|
_l as a0,
|
|
@@ -6641,7 +6640,7 @@ export {
|
|
|
6641
6640
|
xs as aX,
|
|
6642
6641
|
Qc as aY,
|
|
6643
6642
|
ja as aZ,
|
|
6644
|
-
|
|
6643
|
+
Xo as a_,
|
|
6645
6644
|
yn as aa,
|
|
6646
6645
|
Gt as ab,
|
|
6647
6646
|
Sn as ac,
|
|
@@ -6688,9 +6687,9 @@ export {
|
|
|
6688
6687
|
Jl as bF,
|
|
6689
6688
|
ad as bG,
|
|
6690
6689
|
qa as bH,
|
|
6691
|
-
|
|
6690
|
+
zo as bI,
|
|
6692
6691
|
Vc as bJ,
|
|
6693
|
-
|
|
6692
|
+
Wo as bK,
|
|
6694
6693
|
qc as bL,
|
|
6695
6694
|
Fl as bM,
|
|
6696
6695
|
ri as bN,
|
|
@@ -6706,7 +6705,7 @@ export {
|
|
|
6706
6705
|
Yu as bX,
|
|
6707
6706
|
_s as bY,
|
|
6708
6707
|
nr as bZ,
|
|
6709
|
-
|
|
6708
|
+
Zo as b_,
|
|
6710
6709
|
xd as ba,
|
|
6711
6710
|
wo as bb,
|
|
6712
6711
|
$u as bc,
|
|
@@ -6719,7 +6718,7 @@ export {
|
|
|
6719
6718
|
Mc as bj,
|
|
6720
6719
|
sl as bk,
|
|
6721
6720
|
xc as bl,
|
|
6722
|
-
|
|
6721
|
+
jo as bm,
|
|
6723
6722
|
ra as bn,
|
|
6724
6723
|
la as bo,
|
|
6725
6724
|
rd as bp,
|
|
@@ -6748,15 +6747,15 @@ export {
|
|
|
6748
6747
|
Fs as cb,
|
|
6749
6748
|
Fu as cc,
|
|
6750
6749
|
T as d,
|
|
6751
|
-
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6750
|
+
na as e,
|
|
6751
|
+
Ht as f,
|
|
6752
|
+
Ie as g,
|
|
6753
|
+
G as h,
|
|
6755
6754
|
he as i,
|
|
6756
|
-
|
|
6757
|
-
|
|
6758
|
-
|
|
6759
|
-
|
|
6755
|
+
mt as j,
|
|
6756
|
+
Gc as k,
|
|
6757
|
+
Ko as l,
|
|
6758
|
+
oa as m,
|
|
6760
6759
|
ki as n,
|
|
6761
6760
|
Qt as o,
|
|
6762
6761
|
ue as p,
|
|
@@ -6768,7 +6767,7 @@ export {
|
|
|
6768
6767
|
Dc as v,
|
|
6769
6768
|
Cc as w,
|
|
6770
6769
|
Fe as x,
|
|
6771
|
-
|
|
6770
|
+
Ho as y,
|
|
6772
6771
|
il as z
|
|
6773
6772
|
};
|
|
6774
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
6773
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-lX9utxPk.mjs.map
|