@anzusystems/common-admin 1.47.0-beta.267 → 1.47.0-beta.268
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-BwCuTkRT.mjs → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CVgTtkIV.mjs} +44 -44
- package/dist/{AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-BwCuTkRT.mjs.map → AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CVgTtkIV.mjs.map} +1 -1
- package/dist/common-admin.js +2 -2
- package/dist/labs.d.ts +8 -8
- package/dist/labs.js +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as be, createBlock as ae, openBlock as W, withCtx as K, createVNode as G, createElementBlock as Ie, createCommentVNode as we, renderSlot as _e, normalizeClass as Qe, toDisplayString as ke, createElementVNode as Me, isProxy as jr, toRaw as kn, isRef as ha, unref as oe, computed as q, Fragment as kt, normalizeStyle as Wr, createTextVNode as He, shallowRef as Oa, watch as Te, ref as N, reactive as Ot, inject as
|
|
1
|
+
import { defineComponent as be, createBlock as ae, openBlock as W, withCtx as K, createVNode as G, createElementBlock as Ie, createCommentVNode as we, renderSlot as _e, normalizeClass as Qe, toDisplayString as ke, createElementVNode as Me, isProxy as jr, toRaw as kn, isRef as ha, unref as oe, computed as q, Fragment as kt, normalizeStyle as Wr, createTextVNode as He, shallowRef as Oa, watch as Te, ref as N, reactive as Ot, inject as ne, createSlots as xt, withDirectives as la, onMounted as sr, withModifiers as xe, TransitionGroup as Gr, mergeProps as rt, isVNode as Kr, useModel as ia, vModelText as xa, nextTick as dt, withKeys as Xr, getCurrentInstance as va, resolveDynamicComponent as Zr, provide as Ba, renderList as ur, toValue as Ra, toRef as Jr, onBeforeUnmount as Qr, resolveComponent as La, mergeModels as Pa } from "vue";
|
|
2
2
|
import { VRow as cr, VCol as dr, VSpacer as fr } from "vuetify/components/VGrid";
|
|
3
3
|
import { useI18n as Ye, createI18n as eo } from "vue-i18n";
|
|
4
4
|
import { VIcon as Pe } from "vuetify/components/VIcon";
|
|
@@ -464,7 +464,7 @@ const al = {
|
|
|
464
464
|
r.value?.blur();
|
|
465
465
|
});
|
|
466
466
|
}
|
|
467
|
-
const { t: m } = Ye(), f =
|
|
467
|
+
const { t: m } = Ye(), f = ne(wa, void 0), w = ne(Da, void 0), y = (F) => {
|
|
468
468
|
o("update:modelValue", F);
|
|
469
469
|
}, b = () => {
|
|
470
470
|
o("blur", a.modelValue), a.v?.$touch(), s.value(a.modelValue);
|
|
@@ -1647,8 +1647,8 @@ function jl() {
|
|
|
1647
1647
|
if (["x", "X"].indexOf(k) > -1) return new Date((k === "X" ? 1e3 : 1) * T);
|
|
1648
1648
|
var z = p(k)(T), ee = z.year, ce = z.month, pe = z.day, de = z.hours, I = z.minutes, H = z.seconds, Y = z.milliseconds, Q = z.zone, Ae = z.week, Re = /* @__PURE__ */ new Date(), Ge = pe || (ee || ce ? 1 : Re.getDate()), Je = ee || Re.getFullYear(), P = 0;
|
|
1649
1649
|
ee && !ce || (P = ce > 0 ? ce - 1 : Re.getMonth());
|
|
1650
|
-
var
|
|
1651
|
-
return Q ? new Date(Date.UTC(Je, P, Ge, ie, he, Lt, Hn + 60 * Q.offset * 1e3)) : U ? new Date(Date.UTC(Je, P, Ge, ie, he, Lt, Hn)) : (
|
|
1650
|
+
var te, ie = de || 0, he = I || 0, Lt = H || 0, Hn = Y || 0;
|
|
1651
|
+
return Q ? new Date(Date.UTC(Je, P, Ge, ie, he, Lt, Hn + 60 * Q.offset * 1e3)) : U ? new Date(Date.UTC(Je, P, Ge, ie, he, Lt, Hn)) : (te = new Date(Je, P, Ge, ie, he, Lt, Hn), Ae && (te = V(te).week(Ae).toDate()), te);
|
|
1652
1652
|
} catch {
|
|
1653
1653
|
return /* @__PURE__ */ new Date("");
|
|
1654
1654
|
}
|
|
@@ -2271,7 +2271,7 @@ const Ii = { class: "a-datetime-picker-time" }, ki = { class: "a-datetime-picker
|
|
|
2271
2271
|
m.value = !0, i.value();
|
|
2272
2272
|
}, y = () => {
|
|
2273
2273
|
l.value(t.modelValue), m.value = !0;
|
|
2274
|
-
}, { t: b } = Ye(), p =
|
|
2274
|
+
}, { t: b } = Ye(), p = ne(wa, void 0), d = ne(Da, void 0), c = () => {
|
|
2275
2275
|
f.value = !1, a("blur", A(t.modelValue) ? null : t.modelValue), t.v?.$touch(), m.value === !1 && l.value(t.modelValue);
|
|
2276
2276
|
}, v = () => {
|
|
2277
2277
|
f.value = !0, a("focus", t.modelValue), i.value();
|
|
@@ -2820,7 +2820,7 @@ const Ac = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
2820
2820
|
},
|
|
2821
2821
|
emits: ["change"],
|
|
2822
2822
|
setup(e, { emit: n }) {
|
|
2823
|
-
const t = e, a = n, o =
|
|
2823
|
+
const t = e, a = n, o = ne(Ct), r = ne(Et), l = ne(pt), s = ne(Dt);
|
|
2824
2824
|
if (A(o) || A(r) || A(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
2825
2825
|
A(l.fields[t.name]) || A(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
2826
2826
|
A(s[t.name]))
|
|
@@ -2871,7 +2871,7 @@ const Ac = (e, n = {}, t, a = {}, o, r, l = {}) => new Promise((s, i) => {
|
|
|
2871
2871
|
},
|
|
2872
2872
|
emits: ["change"],
|
|
2873
2873
|
setup(e, { emit: n }) {
|
|
2874
|
-
const t = e, a = n, o =
|
|
2874
|
+
const t = e, a = n, o = ne(Ct), r = ne(Et), l = ne(pt), s = ne(Dt);
|
|
2875
2875
|
if (A(o) || A(r) || A(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
2876
2876
|
A(l.fields[t.name]) || A(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
2877
2877
|
A(s[t.name]))
|
|
@@ -2935,7 +2935,7 @@ const Ic = /* @__PURE__ */ be({
|
|
|
2935
2935
|
},
|
|
2936
2936
|
emits: ["change"],
|
|
2937
2937
|
setup(e, { emit: n }) {
|
|
2938
|
-
const t = e, a = n, o =
|
|
2938
|
+
const t = e, a = n, o = ne(Ct), r = ne(Et), l = ne(pt), s = ne(Dt), i = ne(Ma), u = ne(Aa), m = va()?.type.__name;
|
|
2939
2939
|
if (A(o) || A(r) || A(s) || A(l) || A(i) || A(u))
|
|
2940
2940
|
throw new Error(`[${m}] Incorrect provide/inject config.`);
|
|
2941
2941
|
if (
|
|
@@ -3105,7 +3105,7 @@ const Ic = /* @__PURE__ */ be({
|
|
|
3105
3105
|
},
|
|
3106
3106
|
emits: ["change"],
|
|
3107
3107
|
setup(e, { emit: n }) {
|
|
3108
|
-
const t = e, a = n, o =
|
|
3108
|
+
const t = e, a = n, o = ne(Ct), r = ne(Et), l = ne(pt), s = ne(Dt), i = ne(Ma), u = ne(Aa), m = va()?.type.__name;
|
|
3109
3109
|
if (A(o) || A(r) || A(s) || A(l) || A(i) || A(u))
|
|
3110
3110
|
throw new Error(`[${m}] Incorrect provide/inject config.`);
|
|
3111
3111
|
if (
|
|
@@ -3281,7 +3281,7 @@ const Ic = /* @__PURE__ */ be({
|
|
|
3281
3281
|
},
|
|
3282
3282
|
emits: ["change"],
|
|
3283
3283
|
setup(e, { emit: n }) {
|
|
3284
|
-
const t = e, a = n, o =
|
|
3284
|
+
const t = e, a = n, o = ne(Ct), r = ne(Et), l = ne(pt), s = ne(Dt);
|
|
3285
3285
|
if (A(o) || A(r) || A(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3286
3286
|
A(l.fields[t.name]) || A(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3287
3287
|
A(s[t.name]))
|
|
@@ -3316,7 +3316,7 @@ const Ic = /* @__PURE__ */ be({
|
|
|
3316
3316
|
},
|
|
3317
3317
|
emits: ["change"],
|
|
3318
3318
|
setup(e, { emit: n }) {
|
|
3319
|
-
const t = e, a = n, o =
|
|
3319
|
+
const t = e, a = n, o = ne(Ct), r = ne(Et), l = ne(pt), s = ne(Dt);
|
|
3320
3320
|
if (A(o) || A(r) || A(l) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3321
3321
|
A(l.fields[t.name]) || A(s) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3322
3322
|
A(s[t.name]))
|
|
@@ -3368,7 +3368,7 @@ const Ic = /* @__PURE__ */ be({
|
|
|
3368
3368
|
name: {}
|
|
3369
3369
|
},
|
|
3370
3370
|
setup(e) {
|
|
3371
|
-
const n = e, t =
|
|
3371
|
+
const n = e, t = ne(pt);
|
|
3372
3372
|
if (A(t) || // eslint-disable-next-line vue/no-setup-props-reactivity-loss
|
|
3373
3373
|
A(t.fields[n.name]))
|
|
3374
3374
|
throw new Error("Incorrect provide/inject config.");
|
|
@@ -3401,7 +3401,7 @@ const Ic = /* @__PURE__ */ be({
|
|
|
3401
3401
|
},
|
|
3402
3402
|
emits: ["submit", "reset"],
|
|
3403
3403
|
setup(e, { expose: n, emit: t }) {
|
|
3404
|
-
const a = t, o =
|
|
3404
|
+
const a = t, o = ne(pt), r = ne(Dt);
|
|
3405
3405
|
if (A(o) || A(r))
|
|
3406
3406
|
throw new Error("Incorrect provide/inject config.");
|
|
3407
3407
|
const l = N(0);
|
|
@@ -5277,7 +5277,7 @@ const Vs = "a-sortable-", Us = ["id"], Hs = { key: 1 }, qs = { class: "a-sortabl
|
|
|
5277
5277
|
}),
|
|
5278
5278
|
emits: /* @__PURE__ */ Pa(["searchChange", "searchChangeDebounced", "blur", "focus"], ["update:modelValue", "update:selected"]),
|
|
5279
5279
|
setup(e, { emit: n }) {
|
|
5280
|
-
const t = e, a = n, o =
|
|
5280
|
+
const t = e, a = n, o = ne(Ma), r = ne(Aa), l = va()?.type.__name;
|
|
5281
5281
|
if (A(o) || A(r))
|
|
5282
5282
|
throw new Error(`[${l}] Incorrect provide/inject config.`);
|
|
5283
5283
|
const s = t.filterByField, i = t.filterSortBy;
|
|
@@ -5298,11 +5298,11 @@ const Vs = "a-sortable-", Us = ["id"], Hs = { key: 1 }, qs = { class: "a-sortabl
|
|
|
5298
5298
|
}), b = N(() => {
|
|
5299
5299
|
}), p = N(null);
|
|
5300
5300
|
if (f.value.enabled && me(t.collab)) {
|
|
5301
|
-
const { releaseCollabFieldLock: P, changeCollabFieldData:
|
|
5301
|
+
const { releaseCollabFieldLock: P, changeCollabFieldData: te, acquireCollabFieldLock: ie, lockedByUser: he } = On(
|
|
5302
5302
|
t.collab.room,
|
|
5303
5303
|
t.collab.field
|
|
5304
5304
|
);
|
|
5305
|
-
w.value = P, y.value =
|
|
5305
|
+
w.value = P, y.value = te, b.value = ie, Te(
|
|
5306
5306
|
he,
|
|
5307
5307
|
(Lt) => {
|
|
5308
5308
|
p.value = Lt;
|
|
@@ -5310,7 +5310,7 @@ const Vs = "a-sortable-", Us = ["id"], Hs = { key: 1 }, qs = { class: "a-sortabl
|
|
|
5310
5310
|
{ immediate: !0 }
|
|
5311
5311
|
);
|
|
5312
5312
|
}
|
|
5313
|
-
const d = N(""), c = N(!1), v = N(null), E = N(0), { t: $ } = Ye(), F =
|
|
5313
|
+
const d = N(""), c = N(!1), v = N(null), E = N(0), { t: $ } = Ye(), F = ne(wa, void 0), M = ne(Da, void 0), B = () => {
|
|
5314
5314
|
c.value = !1, a("blur", u.value), t.v?.$touch(), w.value(u.value);
|
|
5315
5315
|
}, L = q(() => me(t.errorMessage) ? [t.errorMessage] : t.v?.$errors?.length ? t.v.$errors.map((P) => P.$message) : []), _ = q(() => {
|
|
5316
5316
|
if (me(t.label)) return t.label;
|
|
@@ -5318,7 +5318,7 @@ const Vs = "a-sortable-", Us = ["id"], Hs = { key: 1 }, qs = { class: "a-sortabl
|
|
|
5318
5318
|
const { end: P } = Sa(t.v?.$path, ".");
|
|
5319
5319
|
return $(F + "." + M + ".model." + P);
|
|
5320
5320
|
}), O = q(() => me(t.required) ? t.required : t.v?.required && t.v?.required.$params.type === "required"), D = q(() => me(t.disabled) ? t.disabled : !!p.value), { pagination: x } = Ta(j(i) ? null : i.key, i?.order), S = N([]), C = N([]), g = N(!0), h = q(() => {
|
|
5321
|
-
const P = /* @__PURE__ */ new Map(),
|
|
5321
|
+
const P = /* @__PURE__ */ new Map(), te = (ie) => {
|
|
5322
5322
|
ie.forEach((he) => {
|
|
5323
5323
|
P.set(he.value, {
|
|
5324
5324
|
value: he.value,
|
|
@@ -5327,46 +5327,46 @@ const Vs = "a-sortable-", Us = ["id"], Hs = { key: 1 }, qs = { class: "a-sortabl
|
|
|
5327
5327
|
});
|
|
5328
5328
|
});
|
|
5329
5329
|
};
|
|
5330
|
-
return
|
|
5330
|
+
return te(C.value), te(S.value), Array.from(P.values());
|
|
5331
5331
|
}), T = N(!1), k = q(() => T.value ? !0 : t.loading), U = (P) => {
|
|
5332
5332
|
C.value = [], m.value = ue(P) ? [] : null, v.value = ue(P) ? [] : null;
|
|
5333
5333
|
}, V = (P) => {
|
|
5334
|
-
const
|
|
5335
|
-
return ue(P) ? P.map(
|
|
5334
|
+
const te = (ie) => h.value.find((he) => he.value === ie) ?? { title: `${ie}`, value: ie };
|
|
5335
|
+
return ue(P) ? P.map(te) : te(P);
|
|
5336
5336
|
}, z = async (P) => {
|
|
5337
5337
|
T.value = !0;
|
|
5338
5338
|
try {
|
|
5339
|
-
const
|
|
5340
|
-
C.value = await t.fetchItemsByIds(
|
|
5339
|
+
const te = ue(P) ? P : [P];
|
|
5340
|
+
C.value = await t.fetchItemsByIds(te);
|
|
5341
5341
|
const ie = V(P);
|
|
5342
5342
|
return m.value = ie, v.value = ie, C.value;
|
|
5343
5343
|
} finally {
|
|
5344
5344
|
T.value = !1;
|
|
5345
5345
|
}
|
|
5346
5346
|
}, ee = async (P) => {
|
|
5347
|
-
const
|
|
5347
|
+
const te = ue(P) ? P : [P];
|
|
5348
5348
|
T.value = !0;
|
|
5349
5349
|
try {
|
|
5350
|
-
const ie = await t.fetchItemsByIds(
|
|
5350
|
+
const ie = await t.fetchItemsByIds(te);
|
|
5351
5351
|
return ue(ie) && ie.length > 0 ? (C.value = ie, t.multiple ? u.value = ie.map((he) => he.value) : u.value = ie[0].value, !0) : !1;
|
|
5352
5352
|
} finally {
|
|
5353
5353
|
T.value = !1;
|
|
5354
5354
|
}
|
|
5355
|
-
}, { showErrorsDefault: ce } = Ea(), pe = async (P,
|
|
5355
|
+
}, { showErrorsDefault: ce } = Ea(), pe = async (P, te) => {
|
|
5356
5356
|
T.value = !0, r[s] = P;
|
|
5357
5357
|
try {
|
|
5358
5358
|
const ie = await t.fetchItems(x, r, o);
|
|
5359
|
-
|
|
5359
|
+
te === E.value && (S.value = ie);
|
|
5360
5360
|
} catch (ie) {
|
|
5361
5361
|
ce(ie);
|
|
5362
5362
|
} finally {
|
|
5363
5363
|
T.value = !1;
|
|
5364
5364
|
}
|
|
5365
|
-
}, de = async (P,
|
|
5365
|
+
}, de = async (P, te) => {
|
|
5366
5366
|
if (t.prefetch === !1 || t.prefetch !== P) return;
|
|
5367
5367
|
T.value = !0;
|
|
5368
5368
|
const ie = await t.fetchItems(x, r, o);
|
|
5369
|
-
E.value === 0 && (S.value = ie, !t.disableAutoSingleSelect && ie.length === 1 && (j(
|
|
5369
|
+
E.value === 0 && (S.value = ie, !t.disableAutoSingleSelect && ie.length === 1 && (j(te) || A(te) || ue(te) && te.length === 0) && (u.value = t.multiple ? [ie[0].value] : ie[0].value)), T.value = !1;
|
|
5370
5370
|
}, I = async () => {
|
|
5371
5371
|
c.value = !0, b.value(), await de("focus", u.value), a("focus", u.value);
|
|
5372
5372
|
}, H = async () => {
|
|
@@ -5385,34 +5385,34 @@ const Vs = "a-sortable-", Us = ["id"], Hs = { key: 1 }, qs = { class: "a-sortabl
|
|
|
5385
5385
|
};
|
|
5386
5386
|
ga(
|
|
5387
5387
|
d,
|
|
5388
|
-
(P,
|
|
5389
|
-
P.length < t.minSearchChars || P !==
|
|
5388
|
+
(P, te) => {
|
|
5389
|
+
P.length < t.minSearchChars || P !== te && (E.value++, pe(P, E.value), a("searchChangeDebounced", P));
|
|
5390
5390
|
},
|
|
5391
5391
|
{ debounce: Ks }
|
|
5392
|
-
), Te(d, (P,
|
|
5393
|
-
P !==
|
|
5392
|
+
), Te(d, (P, te) => {
|
|
5393
|
+
P !== te && a("searchChange", P);
|
|
5394
5394
|
});
|
|
5395
5395
|
const Re = async (P) => {
|
|
5396
5396
|
if (Na(P) && t.prefetch === "mounted" && me(t.tryLoadModelValue))
|
|
5397
5397
|
try {
|
|
5398
5398
|
if (await ee(t.tryLoadModelValue))
|
|
5399
5399
|
return;
|
|
5400
|
-
} catch (
|
|
5401
|
-
console.error("Error loading tryLoadModelValue:",
|
|
5400
|
+
} catch (te) {
|
|
5401
|
+
console.error("Error loading tryLoadModelValue:", te);
|
|
5402
5402
|
}
|
|
5403
5403
|
else
|
|
5404
5404
|
await de("mounted", P);
|
|
5405
5405
|
}, Ge = (P) => {
|
|
5406
|
-
const
|
|
5407
|
-
if (m.value =
|
|
5406
|
+
const te = Se(P);
|
|
5407
|
+
if (m.value = te, j(te) || A(te)) {
|
|
5408
5408
|
u.value = null;
|
|
5409
5409
|
return;
|
|
5410
5410
|
}
|
|
5411
|
-
if (ue(
|
|
5412
|
-
u.value =
|
|
5411
|
+
if (ue(te)) {
|
|
5412
|
+
u.value = te.map((ie) => ie.value);
|
|
5413
5413
|
return;
|
|
5414
5414
|
}
|
|
5415
|
-
u.value =
|
|
5415
|
+
u.value = te.value;
|
|
5416
5416
|
}, Je = q(() => {
|
|
5417
5417
|
if (T.value)
|
|
5418
5418
|
return "$vuetify.loading";
|
|
@@ -5421,8 +5421,8 @@ const Vs = "a-sortable-", Us = ["id"], Hs = { key: 1 }, qs = { class: "a-sortabl
|
|
|
5421
5421
|
});
|
|
5422
5422
|
return Te(
|
|
5423
5423
|
u,
|
|
5424
|
-
async (P,
|
|
5425
|
-
if (P !==
|
|
5424
|
+
async (P, te) => {
|
|
5425
|
+
if (P !== te) {
|
|
5426
5426
|
if (g.value && (g.value = !1, await Re(P)), f.value.enabled && c.value && y.value(P), Na(P)) {
|
|
5427
5427
|
U(P);
|
|
5428
5428
|
return;
|
|
@@ -5431,7 +5431,7 @@ const Vs = "a-sortable-", Us = ["id"], Hs = { key: 1 }, qs = { class: "a-sortabl
|
|
|
5431
5431
|
}
|
|
5432
5432
|
},
|
|
5433
5433
|
{ immediate: !0 }
|
|
5434
|
-
), (P,
|
|
5434
|
+
), (P, te) => (W(), ae(ba, {
|
|
5435
5435
|
"model-value": v.value,
|
|
5436
5436
|
items: h.value,
|
|
5437
5437
|
"no-filter": "",
|
|
@@ -5680,4 +5680,4 @@ export {
|
|
|
5680
5680
|
Na as y,
|
|
5681
5681
|
ko as z
|
|
5682
5682
|
};
|
|
5683
|
-
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-
|
|
5683
|
+
//# sourceMappingURL=AFormRemoteAutocomplete.vue_vue_type_script_setup_true_lang-CVgTtkIV.mjs.map
|