@aeria-ui/ui 0.0.206 → 0.0.207
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/{_id_-CdyV7SwZ.js → _id_-1SbaGrdM.js} +1 -1
- package/dist/{activation-BwiurFnV.js → activation-7SslzLP5.js} +1 -1
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +2 -1
- package/dist/{index-CtPGU2HF.js → index-BQDMBiX5.js} +233 -232
- package/dist/{index-BhJJC_vd.js → index-CeZ1Y1LN.js} +1 -1
- package/dist/{index-DXOUVfPi.js → index-D3fxLWDD.js} +1 -1
- package/dist/{index-DpzEHDq1.js → index-DZLVdsTE.js} +1 -1
- package/dist/{redefine-password-c-yGEBQh.js → redefine-password-CJAyfalJ.js} +1 -1
- package/dist/{signin-kU-jRbwv.js → signin-B75Qkv31.js} +1 -1
- package/dist/{signup-DPf3f8kO.js → signup-r_Cg8wlh.js} +1 -1
- package/dist/ui.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, ref as
|
|
1
|
+
import { defineComponent as M, ref as K, resolveDirective as ee, createElementBlock as s, openBlock as n, normalizeClass as U, Fragment as W, renderList as z, withDirectives as Y, createCommentVNode as h, createTextVNode as D, toDisplayString as V, unref as t, renderSlot as C, withModifiers as Ie, inject as re, computed as G, createElementVNode as O, mergeProps as x, createBlock as $, withCtx as y, resolveDynamicComponent as pe, useCssVars as Ne, normalizeProps as oe, guardReactiveProps as be, Teleport as Fe, createVNode as L, onMounted as Ue, watch as ae, vModelDynamic as et, onBeforeMount as Xe, normalizeStyle as ve, provide as fe, createSlots as ie, vModelCheckbox as tt, onUnmounted as nt, resolveComponent as at, Suspense as ot, useSlots as lt, h as it } from "vue";
|
|
2
2
|
import { t as R, useI18n as st } from "@aeria-ui/i18n";
|
|
3
3
|
import { INSTANCE_VARS_SYMBOL as rt, useScrollObserver as He, useBreakpoints as Se, useMask as ut, PAGINATION_PER_PAGE_DEFAULTS as ct, API_URL as Je, request as dt, useDebounce as Ze, convertToSearchQuery as mt, useParentCollectionStore as Ae, useCollectionStore as pt, useAction as ft, convertFromSearchQuery as vt, usePasswordPolicy as yt } from "@aeria-ui/core";
|
|
4
4
|
import { arraysIntersect as Ee, deepClone as ke, getReferenceProperty as se, convertConditionToQuery as ht, freshItem as bt, isRequired as je, evaluateCondition as qe, deepMerge as Be } from "@aeriajs/common";
|
|
@@ -17,7 +17,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
17
17
|
headers: {}
|
|
18
18
|
},
|
|
19
19
|
setup(e) {
|
|
20
|
-
const u =
|
|
20
|
+
const u = K(null), o = (a) => typeof a == "string" ? a : a.title;
|
|
21
21
|
return (a, l) => {
|
|
22
22
|
const c = ee("clickable");
|
|
23
23
|
return n(), s("div", {
|
|
@@ -26,11 +26,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
26
26
|
"accordion--padded": !e.noPadding
|
|
27
27
|
})
|
|
28
28
|
}, [
|
|
29
|
-
(n(!0), s(
|
|
29
|
+
(n(!0), s(W, null, z(Object.keys(a.$slots).filter((r) => r !== "default"), (r, p) => (n(), s("div", {
|
|
30
30
|
key: r,
|
|
31
31
|
class: "accordion__slot"
|
|
32
32
|
}, [
|
|
33
|
-
|
|
33
|
+
Y((n(), s("div", {
|
|
34
34
|
class: "accordion__header",
|
|
35
35
|
onClick: (d) => u.value === r ? u.value = null : u.value = r
|
|
36
36
|
}, [
|
|
@@ -258,16 +258,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
258
258
|
},
|
|
259
259
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
260
260
|
setup(e, { emit: u }) {
|
|
261
|
-
const o = e, a = u, l =
|
|
261
|
+
const o = e, a = u, l = K(o.collapsed), c = K(null), { reachedEnd: r } = He(c), p = () => {
|
|
262
262
|
a("update:modelValue", !1), a("close");
|
|
263
263
|
}, d = () => {
|
|
264
264
|
a("overlayClick");
|
|
265
|
-
},
|
|
265
|
+
}, f = (m) => {
|
|
266
266
|
a("update:collapsed", m), l.value = m;
|
|
267
267
|
};
|
|
268
268
|
return (m, b) => {
|
|
269
269
|
const _ = ee("clickable"), g = ee("loading"), i = ee("overlay");
|
|
270
|
-
return e.modelValue ?
|
|
270
|
+
return e.modelValue ? Y((n(), s("div", {
|
|
271
271
|
key: 0,
|
|
272
272
|
class: U([
|
|
273
273
|
"panel",
|
|
@@ -305,21 +305,21 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
305
305
|
C(m.$slots, "extra", {}, void 0, !0)
|
|
306
306
|
])) : h("", !0)
|
|
307
307
|
]),
|
|
308
|
-
e.collapsible && l.value ?
|
|
308
|
+
e.collapsible && l.value ? Y((n(), $(H, {
|
|
309
309
|
key: 0,
|
|
310
310
|
reactive: "",
|
|
311
311
|
icon: "plus",
|
|
312
|
-
onClick: b[0] || (b[0] = (T) =>
|
|
312
|
+
onClick: b[0] || (b[0] = (T) => f(!l.value))
|
|
313
313
|
}, null, 512)), [
|
|
314
314
|
[_]
|
|
315
|
-
]) : e.collapsible && !l.value ?
|
|
315
|
+
]) : e.collapsible && !l.value ? Y((n(), $(H, {
|
|
316
316
|
key: 1,
|
|
317
317
|
reactive: "",
|
|
318
318
|
icon: "minus",
|
|
319
|
-
onClick: b[1] || (b[1] = (T) =>
|
|
319
|
+
onClick: b[1] || (b[1] = (T) => f(!l.value))
|
|
320
320
|
}, null, 512)), [
|
|
321
321
|
[_]
|
|
322
|
-
]) : e.closeHint ?
|
|
322
|
+
]) : e.closeHint ? Y((n(), $(H, {
|
|
323
323
|
key: 2,
|
|
324
324
|
reactive: "",
|
|
325
325
|
icon: "x",
|
|
@@ -328,7 +328,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
328
328
|
[_]
|
|
329
329
|
]) : h("", !0)
|
|
330
330
|
], 2)) : h("", !0),
|
|
331
|
-
l.value ? h("", !0) :
|
|
331
|
+
l.value ? h("", !0) : Y((n(), s("div", {
|
|
332
332
|
key: 1,
|
|
333
333
|
ref_key: "body",
|
|
334
334
|
ref: c,
|
|
@@ -381,14 +381,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
381
381
|
v4078ef85: p.value.x,
|
|
382
382
|
v4078ef86: p.value.y
|
|
383
383
|
}));
|
|
384
|
-
const o = u, a =
|
|
385
|
-
if (
|
|
384
|
+
const o = u, a = K(null), l = K(!1), c = (d) => d?.filter((f) => {
|
|
385
|
+
if (f.roles) {
|
|
386
386
|
const m = ne("user");
|
|
387
|
-
return Ee(
|
|
387
|
+
return Ee(f.roles, m.currentUser.roles);
|
|
388
388
|
}
|
|
389
389
|
return !0;
|
|
390
|
-
}), r = (d,
|
|
391
|
-
const m =
|
|
390
|
+
}), r = (d, f) => {
|
|
391
|
+
const m = f && ke(f);
|
|
392
392
|
d.click && d.click(m), o("actionClick", {
|
|
393
393
|
action: d,
|
|
394
394
|
subject: m
|
|
@@ -399,16 +399,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
399
399
|
x: 0,
|
|
400
400
|
y: 0
|
|
401
401
|
};
|
|
402
|
-
const d = a.value.getBoundingClientRect().top,
|
|
402
|
+
const d = a.value.getBoundingClientRect().top, f = a.value.getBoundingClientRect().left, m = a.value.offsetHeight;
|
|
403
403
|
return {
|
|
404
404
|
_: l.value,
|
|
405
|
-
x: Math.floor(
|
|
405
|
+
x: Math.floor(f) + "px",
|
|
406
406
|
y: Math.floor(d + m) + "px"
|
|
407
407
|
};
|
|
408
408
|
});
|
|
409
|
-
return (d,
|
|
409
|
+
return (d, f) => {
|
|
410
410
|
const m = ee("overlay");
|
|
411
|
-
return n(), s(
|
|
411
|
+
return n(), s(W, null, [
|
|
412
412
|
Object.keys(d.$slots).some((b) => b !== "default") || e.actions !== void 0 && e.actions.length > 0 ? (n(), s("div", {
|
|
413
413
|
key: 0,
|
|
414
414
|
ref_key: "contextmenu",
|
|
@@ -417,7 +417,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
417
417
|
}, [
|
|
418
418
|
O("a", {
|
|
419
419
|
class: "contextmenu__trigger",
|
|
420
|
-
onClick:
|
|
420
|
+
onClick: f[0] || (f[0] = (b) => l.value = !0)
|
|
421
421
|
}, [
|
|
422
422
|
C(d.$slots, "default", oe(be({
|
|
423
423
|
visible: l.value
|
|
@@ -428,9 +428,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
428
428
|
key: 1,
|
|
429
429
|
to: "main"
|
|
430
430
|
}, [
|
|
431
|
-
|
|
431
|
+
Y((n(), $(Oe, {
|
|
432
432
|
modelValue: l.value,
|
|
433
|
-
"onUpdate:modelValue":
|
|
433
|
+
"onUpdate:modelValue": f[4] || (f[4] = (b) => l.value = b),
|
|
434
434
|
fill: "",
|
|
435
435
|
bordered: "",
|
|
436
436
|
class: "content",
|
|
@@ -444,9 +444,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
444
444
|
Object.keys(d.$slots).filter((b) => !["default", "extra", "header"].includes(b)).length > 0 ? (n(), s("div", {
|
|
445
445
|
key: 1,
|
|
446
446
|
class: "content__section",
|
|
447
|
-
onClick:
|
|
447
|
+
onClick: f[1] || (f[1] = (b) => l.value = !1)
|
|
448
448
|
}, [
|
|
449
|
-
(n(!0), s(
|
|
449
|
+
(n(!0), s(W, null, z(Object.keys(d.$slots).filter((b) => !["default", "extra", "header"].includes(b)), (b, _) => (n(), $(de, {
|
|
450
450
|
key: `slot-${_}`,
|
|
451
451
|
class: "content__item content__item--reactive"
|
|
452
452
|
}, {
|
|
@@ -459,9 +459,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
459
459
|
e.actions !== void 0 && e.actions.length > 0 ? (n(), s("div", {
|
|
460
460
|
key: 2,
|
|
461
461
|
class: "content__section",
|
|
462
|
-
onClick:
|
|
462
|
+
onClick: f[2] || (f[2] = (b) => l.value = !1)
|
|
463
463
|
}, [
|
|
464
|
-
(n(!0), s(
|
|
464
|
+
(n(!0), s(W, null, z(c(e.actions), (b, _) => (n(), $(de, {
|
|
465
465
|
key: `action-${_}`,
|
|
466
466
|
class: "content__item content__item--reactive",
|
|
467
467
|
onClick: (g) => r(b, e.subject)
|
|
@@ -482,7 +482,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
482
482
|
d.$slots.extra ? (n(), s("div", {
|
|
483
483
|
key: 3,
|
|
484
484
|
class: "content__section",
|
|
485
|
-
onClick:
|
|
485
|
+
onClick: f[3] || (f[3] = (b) => l.value = !1)
|
|
486
486
|
}, [
|
|
487
487
|
O("div", Gt, [
|
|
488
488
|
d.$slots.extra ? C(d.$slots, "extra", { key: 0 }, void 0, !0) : h("", !0)
|
|
@@ -514,7 +514,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
514
514
|
where: { default: "top" }
|
|
515
515
|
},
|
|
516
516
|
setup(e) {
|
|
517
|
-
const u = Se(), o =
|
|
517
|
+
const u = Se(), o = K(!1);
|
|
518
518
|
return (a, l) => t(u).md ? (n(), s("div", {
|
|
519
519
|
key: 0,
|
|
520
520
|
class: "info",
|
|
@@ -561,8 +561,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
561
561
|
},
|
|
562
562
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
563
563
|
setup(e, { emit: u }) {
|
|
564
|
-
const o = e, a = u, l = o.property || {}, c = l.icon || "inputType" in l && l.inputType === "search", r = re("searchOnly", !1), p = re("innerInputLabel", !1), d = !r && (o.readOnly || l.readOnly),
|
|
565
|
-
await navigator.clipboard.writeText(w), a("clipboardCopy", w),
|
|
564
|
+
const o = e, a = u, l = o.property || {}, c = l.icon || "inputType" in l && l.inputType === "search", r = re("searchOnly", !1), p = re("innerInputLabel", !1), d = !r && (o.readOnly || l.readOnly), f = K(!1), m = async (w) => {
|
|
565
|
+
await navigator.clipboard.writeText(w), a("clipboardCopy", w), f.value = !0;
|
|
566
566
|
}, b = re("inputVariant", o.variant) || "normal", _ = Object.assign(Object.assign({}, o), {
|
|
567
567
|
name: o.propertyName,
|
|
568
568
|
readonly: d,
|
|
@@ -605,7 +605,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
605
605
|
default:
|
|
606
606
|
throw new Error();
|
|
607
607
|
}
|
|
608
|
-
}, i =
|
|
608
|
+
}, i = K(""), T = o.property?.type === "string" && o.property.mask ? ut(o.property.mask) : null;
|
|
609
609
|
ae(() => o.modelValue, (w) => {
|
|
610
610
|
i.value = (() => {
|
|
611
611
|
if (T)
|
|
@@ -667,7 +667,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
667
667
|
`input__container--${t(b)}`
|
|
668
668
|
])
|
|
669
669
|
}, [
|
|
670
|
-
|
|
670
|
+
Y(O("textarea", {
|
|
671
671
|
placeholder: t(_).placeholder,
|
|
672
672
|
readonly: t(_).readonly,
|
|
673
673
|
value: e.modelValue,
|
|
@@ -686,7 +686,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
686
686
|
`input__container--${t(b)}`
|
|
687
687
|
])
|
|
688
688
|
}, [
|
|
689
|
-
|
|
689
|
+
Y(O("input", x(t(_), {
|
|
690
690
|
value: i.value,
|
|
691
691
|
"data-component": "input",
|
|
692
692
|
class: [
|
|
@@ -714,11 +714,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
714
714
|
D("Copiar", -1)
|
|
715
715
|
])]),
|
|
716
716
|
default: y(() => [
|
|
717
|
-
|
|
717
|
+
f.value ? (n(), $(H, {
|
|
718
718
|
key: 0,
|
|
719
719
|
reactive: "",
|
|
720
720
|
icon: "check"
|
|
721
|
-
})) :
|
|
721
|
+
})) : Y((n(), $(H, {
|
|
722
722
|
key: 1,
|
|
723
723
|
reactive: "",
|
|
724
724
|
icon: "clipboard",
|
|
@@ -753,11 +753,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
753
753
|
},
|
|
754
754
|
emits: ["update:modelValue", "change"],
|
|
755
755
|
setup(e, { emit: u }) {
|
|
756
|
-
const o = e, a = u, l =
|
|
756
|
+
const o = e, a = u, l = K(null), c = o.property, r = (m) => {
|
|
757
757
|
a("update:modelValue", m), a("change", m);
|
|
758
758
|
}, p = (m) => {
|
|
759
759
|
m === "" || m === null ? r(null) : o.booleanRef ? r(m === "true") : r(m);
|
|
760
|
-
}, d = (m) => Array.isArray(o.modelValue) ? o.modelValue.includes(m) : o.modelValue === m,
|
|
760
|
+
}, d = (m) => Array.isArray(o.modelValue) ? o.modelValue.includes(m) : o.modelValue === m, f = G(() => o.multiple ? typeof o.multiple == "number" ? o.multiple : 5 : 1);
|
|
761
761
|
return ae(l, (m) => {
|
|
762
762
|
if (m && o.required && !o.modelValue) {
|
|
763
763
|
const b = m.querySelector("option")?.value;
|
|
@@ -773,14 +773,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
773
773
|
"read-only": "",
|
|
774
774
|
"model-value": e.modelValue
|
|
775
775
|
}, null, 8, ["model-value"])) : (n(), s("select", x({ key: 0 }, {
|
|
776
|
-
size:
|
|
776
|
+
size: f.value,
|
|
777
777
|
value: e.modelValue
|
|
778
778
|
}, {
|
|
779
779
|
ref_key: "select",
|
|
780
780
|
ref: l,
|
|
781
781
|
class: {
|
|
782
782
|
select: !0,
|
|
783
|
-
"select--multiple": !!
|
|
783
|
+
"select--multiple": !!f.value,
|
|
784
784
|
"select--outline": !e.noOutline
|
|
785
785
|
},
|
|
786
786
|
onChange: b[0] || (b[0] = (_) => p(_.target.value))
|
|
@@ -790,7 +790,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
790
790
|
icon: t(c).icon
|
|
791
791
|
}, null, 8, ["icon"])) : h("", !0),
|
|
792
792
|
!o.multiple && !e.required ? (n(), s("option", an, V(t(R)("none")), 1)) : h("", !0),
|
|
793
|
-
(n(!0), s(
|
|
793
|
+
(n(!0), s(W, null, z(t(c) && "enum" in t(c) ? t(c).enum : [], (_) => (n(), s("option", {
|
|
794
794
|
key: String(_),
|
|
795
795
|
value: _,
|
|
796
796
|
"data-selected": d(_)
|
|
@@ -819,7 +819,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
819
819
|
set: (d) => {
|
|
820
820
|
o.pagination.limit = Number(d);
|
|
821
821
|
}
|
|
822
|
-
}), r =
|
|
822
|
+
}), r = K(l.value ? l.value + 1 : 1), p = G(() => Math.ceil(o.pagination.recordsTotal / o.pagination.limit));
|
|
823
823
|
return ae([
|
|
824
824
|
l,
|
|
825
825
|
c
|
|
@@ -828,11 +828,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
828
828
|
offset: l.value * c.value,
|
|
829
829
|
limit: c.value
|
|
830
830
|
});
|
|
831
|
-
}), (d,
|
|
831
|
+
}), (d, f) => (n(), s("div", sn, [
|
|
832
832
|
O("div", rn, [
|
|
833
833
|
L(de, {
|
|
834
834
|
disabled: l.value === 0,
|
|
835
|
-
onClick:
|
|
835
|
+
onClick: f[0] || (f[0] = (m) => l.value = 0)
|
|
836
836
|
}, {
|
|
837
837
|
default: y(() => [
|
|
838
838
|
L(H, { icon: "caret-double-left" })
|
|
@@ -841,7 +841,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
841
841
|
}, 8, ["disabled"]),
|
|
842
842
|
L(de, {
|
|
843
843
|
disabled: l.value === 0,
|
|
844
|
-
onClick:
|
|
844
|
+
onClick: f[1] || (f[1] = (m) => l.value -= 1)
|
|
845
845
|
}, {
|
|
846
846
|
default: y(() => [
|
|
847
847
|
L(H, { icon: "caret-left" })
|
|
@@ -850,7 +850,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
850
850
|
}, 8, ["disabled"]),
|
|
851
851
|
L(de, {
|
|
852
852
|
disabled: l.value === p.value - 1,
|
|
853
|
-
onClick:
|
|
853
|
+
onClick: f[2] || (f[2] = (m) => l.value += 1)
|
|
854
854
|
}, {
|
|
855
855
|
default: y(() => [
|
|
856
856
|
L(H, { icon: "caret-right" })
|
|
@@ -859,7 +859,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
859
859
|
}, 8, ["disabled"]),
|
|
860
860
|
L(de, {
|
|
861
861
|
disabled: l.value === p.value - 1,
|
|
862
|
-
onClick:
|
|
862
|
+
onClick: f[3] || (f[3] = (m) => l.value = p.value - 1)
|
|
863
863
|
}, {
|
|
864
864
|
default: y(() => [
|
|
865
865
|
L(H, { icon: "caret-double-right" })
|
|
@@ -868,7 +868,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
868
868
|
}, 8, ["disabled"]),
|
|
869
869
|
L(Qe, {
|
|
870
870
|
modelValue: c.value,
|
|
871
|
-
"onUpdate:modelValue":
|
|
871
|
+
"onUpdate:modelValue": f[4] || (f[4] = (m) => c.value = m),
|
|
872
872
|
property: {
|
|
873
873
|
enum: [],
|
|
874
874
|
icon: "list"
|
|
@@ -876,7 +876,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
876
876
|
class: "pagination__control"
|
|
877
877
|
}, {
|
|
878
878
|
default: y(() => [
|
|
879
|
-
(n(!0), s(
|
|
879
|
+
(n(!0), s(W, null, z(t(ct), (m) => (n(), s("option", {
|
|
880
880
|
key: `limit-${m}`,
|
|
881
881
|
value: m
|
|
882
882
|
}, V(m), 9, un))), 128))
|
|
@@ -889,13 +889,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
889
889
|
(n(), $(_e, {
|
|
890
890
|
key: l.value,
|
|
891
891
|
modelValue: r.value,
|
|
892
|
-
"onUpdate:modelValue":
|
|
892
|
+
"onUpdate:modelValue": f[5] || (f[5] = (m) => r.value = m),
|
|
893
893
|
property: {
|
|
894
894
|
type: "number",
|
|
895
895
|
minimum: 1
|
|
896
896
|
},
|
|
897
897
|
style: { height: "100%" },
|
|
898
|
-
onChange:
|
|
898
|
+
onChange: f[6] || (f[6] = (m) => {
|
|
899
899
|
l.value = r.value === 0 ? 0 : r.value - 1;
|
|
900
900
|
})
|
|
901
901
|
}, null, 8, ["modelValue"])),
|
|
@@ -958,18 +958,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
958
958
|
r("update:modelValue", o.value);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
}),
|
|
961
|
+
}), f = (m) => {
|
|
962
962
|
l && m.preventDefault();
|
|
963
963
|
};
|
|
964
964
|
return (m, b) => {
|
|
965
965
|
const _ = ee("clickable");
|
|
966
|
-
return
|
|
966
|
+
return Y((n(), s("label", {
|
|
967
967
|
class: U([
|
|
968
968
|
"checkbox",
|
|
969
969
|
{ "checkbox--readOnly": t(l) }
|
|
970
970
|
])
|
|
971
971
|
}, [
|
|
972
|
-
|
|
972
|
+
Y(O("input", x({
|
|
973
973
|
"onUpdate:modelValue": b[0] || (b[0] = (g) => d.value = g)
|
|
974
974
|
}, {
|
|
975
975
|
type: t(c),
|
|
@@ -977,7 +977,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
977
977
|
checked: d.value
|
|
978
978
|
}, {
|
|
979
979
|
class: "checkbox__input",
|
|
980
|
-
onClick:
|
|
980
|
+
onClick: f
|
|
981
981
|
}), null, 16), [
|
|
982
982
|
[et, d.value]
|
|
983
983
|
]),
|
|
@@ -1032,12 +1032,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1032
1032
|
"grid-template-columns": "repeat(var(--columns), 1fr)"
|
|
1033
1033
|
})
|
|
1034
1034
|
}, [
|
|
1035
|
-
(n(!0), s(
|
|
1036
|
-
key: `option-${
|
|
1035
|
+
(n(!0), s(W, null, z(t(c), (f) => (n(), s("div", {
|
|
1036
|
+
key: `option-${f}`,
|
|
1037
1037
|
class: "options__checkbox"
|
|
1038
1038
|
}, [
|
|
1039
1039
|
L(_n, x({ ref_for: !0 }, {
|
|
1040
|
-
value:
|
|
1040
|
+
value: f,
|
|
1041
1041
|
readOnly: t(l),
|
|
1042
1042
|
property: e.property
|
|
1043
1043
|
}, {
|
|
@@ -1067,9 +1067,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1067
1067
|
c || (a("change", !o.modelValue), a("update:modelValue", !o.modelValue));
|
|
1068
1068
|
};
|
|
1069
1069
|
return (p, d) => {
|
|
1070
|
-
const
|
|
1070
|
+
const f = ee("clickable");
|
|
1071
1071
|
return n(), s("div", Vn, [
|
|
1072
|
-
|
|
1072
|
+
Y((n(), s("a", {
|
|
1073
1073
|
class: U([
|
|
1074
1074
|
"switch",
|
|
1075
1075
|
{ "switch--active": e.modelValue },
|
|
@@ -1085,7 +1085,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1085
1085
|
])
|
|
1086
1086
|
}, null, 2)
|
|
1087
1087
|
], 2)), [
|
|
1088
|
-
[
|
|
1088
|
+
[f, {
|
|
1089
1089
|
blocked: t(c)
|
|
1090
1090
|
}]
|
|
1091
1091
|
]),
|
|
@@ -1111,7 +1111,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1111
1111
|
height: { default: "100%" }
|
|
1112
1112
|
},
|
|
1113
1113
|
setup(e) {
|
|
1114
|
-
const u = e, o = G(() => u.fileId ? `${Je}/file/${u.fileId}/picture` : u.url || u.modelValue), a =
|
|
1114
|
+
const u = e, o = G(() => u.fileId ? `${Je}/file/${u.fileId}/picture` : u.url || u.modelValue), a = K(!1);
|
|
1115
1115
|
return (l, c) => {
|
|
1116
1116
|
const r = ee("overlay");
|
|
1117
1117
|
return n(), s("figure", Bn, [
|
|
@@ -1119,7 +1119,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1119
1119
|
key: 0,
|
|
1120
1120
|
to: "main"
|
|
1121
1121
|
}, [
|
|
1122
|
-
|
|
1122
|
+
Y((n(), s("div", Sn, [
|
|
1123
1123
|
O("img", {
|
|
1124
1124
|
src: o.value,
|
|
1125
1125
|
alt: e.alt,
|
|
@@ -1262,7 +1262,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1262
1262
|
const o = e, a = o.property && se(o.property), l = u, r = we() ? xe() : null, p = o.multiple || o.property && "type" in o.property && o.property.type === "array", d = G(() => {
|
|
1263
1263
|
if (o.modelValue)
|
|
1264
1264
|
return Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue];
|
|
1265
|
-
}),
|
|
1265
|
+
}), f = (_) => new Promise((g) => {
|
|
1266
1266
|
const i = new FileReader();
|
|
1267
1267
|
i.onload = () => g(i.result), i.readAsArrayBuffer(_);
|
|
1268
1268
|
}), m = async (_) => {
|
|
@@ -1271,7 +1271,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1271
1271
|
return;
|
|
1272
1272
|
const i = [];
|
|
1273
1273
|
for (const T of g) {
|
|
1274
|
-
const k = await
|
|
1274
|
+
const k = await f(T);
|
|
1275
1275
|
if (r) {
|
|
1276
1276
|
const { data: { error: F, result: I } } = await dt(`${Je}/${r.$id}/upload?name=${T.name}`, k, {
|
|
1277
1277
|
params: {
|
|
@@ -1312,12 +1312,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1312
1312
|
onChange: m
|
|
1313
1313
|
}, null, 40, Hn)),
|
|
1314
1314
|
d.value && d.value.length > 0 ? (n(), s("div", Dn, [
|
|
1315
|
-
(n(!0), s(
|
|
1315
|
+
(n(!0), s(W, null, z(d.value, (T, k) => (n(), $(Fn, {
|
|
1316
1316
|
key: "_id" in T ? String(T._id) : T.file.name,
|
|
1317
1317
|
"model-value": T
|
|
1318
1318
|
}, {
|
|
1319
1319
|
default: y(() => [
|
|
1320
|
-
e.readOnly ? h("", !0) :
|
|
1320
|
+
e.readOnly ? h("", !0) : Y((n(), $(H, {
|
|
1321
1321
|
key: 0,
|
|
1322
1322
|
reactive: "",
|
|
1323
1323
|
icon: "trash",
|
|
@@ -1342,7 +1342,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1342
1342
|
},
|
|
1343
1343
|
emits: ["endReached"],
|
|
1344
1344
|
setup(e, { emit: u }) {
|
|
1345
|
-
const o = e, a = u, l =
|
|
1345
|
+
const o = e, a = u, l = K(null), c = o.observeScroll ? He(l, {
|
|
1346
1346
|
antecipate: 100
|
|
1347
1347
|
}).reachedEnd : null;
|
|
1348
1348
|
return c !== null && ae(c, (r) => {
|
|
@@ -1380,7 +1380,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1380
1380
|
const b = (g) => g.filter((i) => !!i._id);
|
|
1381
1381
|
let _;
|
|
1382
1382
|
"items" in c ? a.modelValue ? _ = b(Array.isArray(a.modelValue) ? a.modelValue : [a.modelValue]) : _ = [] : _ = a.modelValue, Array.isArray(_) ? l("update:modelValue", _.concat([a.item])) : l("update:modelValue", a.item), l("change", a.item);
|
|
1383
|
-
},
|
|
1383
|
+
}, f = async (b) => {
|
|
1384
1384
|
r.purge && b?.purge;
|
|
1385
1385
|
const _ = () => {
|
|
1386
1386
|
const g = Array.isArray(a.modelValue) ? Array.from(a.modelValue) : [], i = g.findIndex((T) => T._id === a.item._id);
|
|
@@ -1394,11 +1394,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1394
1394
|
});
|
|
1395
1395
|
return;
|
|
1396
1396
|
}
|
|
1397
|
-
return p.value ?
|
|
1397
|
+
return p.value ? f() : d();
|
|
1398
1398
|
};
|
|
1399
1399
|
return (b, _) => {
|
|
1400
1400
|
const g = ee("clickable");
|
|
1401
|
-
return
|
|
1401
|
+
return Y((n(), s("div", {
|
|
1402
1402
|
class: U({
|
|
1403
1403
|
item: !0,
|
|
1404
1404
|
"item--selected": p.value
|
|
@@ -1407,7 +1407,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1407
1407
|
}, [
|
|
1408
1408
|
C(b.$slots, "default", {}, void 0, !0),
|
|
1409
1409
|
O("div", Xn, [
|
|
1410
|
-
(n(!0), s(
|
|
1410
|
+
(n(!0), s(W, null, z(e.indexes, (i, T) => (n(), s("div", {
|
|
1411
1411
|
key: `index-${e.item._id}-${T}`,
|
|
1412
1412
|
class: "item__value"
|
|
1413
1413
|
}, V(e.item[i]), 1))), 128))
|
|
@@ -1440,16 +1440,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1440
1440
|
},
|
|
1441
1441
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1442
1442
|
setup(e, { emit: u }) {
|
|
1443
|
-
const o = e, a = ne("meta"), l = se(o.property), c = o.panel !== void 0 ? G(() => o.panel) :
|
|
1443
|
+
const o = e, a = ne("meta"), l = se(o.property), c = o.panel !== void 0 ? G(() => o.panel) : K(!1), r = u, p = ne(se(o.property).$ref), d = we(), f = d ? xe() : null, m = l.indexes;
|
|
1444
1444
|
fe(Te, se(o.property).$ref), fe("innerInputLabel", !0), fe("omitInputLabels", !0);
|
|
1445
|
-
const b =
|
|
1445
|
+
const b = K(o.modelValue), _ = K({
|
|
1446
1446
|
data: [],
|
|
1447
1447
|
pagination: {}
|
|
1448
|
-
}), g = G(() => _.value.data), i = G(() => _.value.pagination), T =
|
|
1448
|
+
}), g = G(() => _.value.data), i = G(() => _.value.pagination), T = K(0), k = K(!1), F = K(""), I = () => {
|
|
1449
1449
|
const Z = {};
|
|
1450
1450
|
if (d) {
|
|
1451
1451
|
const P = t(d);
|
|
1452
|
-
Z[P] =
|
|
1452
|
+
Z[P] = f;
|
|
1453
1453
|
}
|
|
1454
1454
|
return l.constraints ? ht(l.constraints, Z) : {};
|
|
1455
1455
|
}, w = () => {
|
|
@@ -1502,7 +1502,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1502
1502
|
me(), r("update:modelValue", b.value);
|
|
1503
1503
|
};
|
|
1504
1504
|
return (Z, P) => {
|
|
1505
|
-
const
|
|
1505
|
+
const v = ee("clickable");
|
|
1506
1506
|
return n(), s("div", null, [
|
|
1507
1507
|
t(c) ? (n(), $(Fe, {
|
|
1508
1508
|
key: 0,
|
|
@@ -1547,14 +1547,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1547
1547
|
onEndReached: w
|
|
1548
1548
|
}, {
|
|
1549
1549
|
default: y(() => [
|
|
1550
|
-
(n(!0), s(
|
|
1550
|
+
(n(!0), s(W, null, z(g.value, (B) => (n(), $(ze, x({ ref_for: !0 }, {
|
|
1551
1551
|
item: B,
|
|
1552
1552
|
indexes: t(m),
|
|
1553
1553
|
property: e.property
|
|
1554
1554
|
}, {
|
|
1555
1555
|
key: `matching-${B._id}`,
|
|
1556
1556
|
modelValue: b.value,
|
|
1557
|
-
"onUpdate:modelValue": P[1] || (P[1] = (
|
|
1557
|
+
"onUpdate:modelValue": P[1] || (P[1] = (X) => b.value = X)
|
|
1558
1558
|
}), null, 16, ["modelValue"]))), 128))
|
|
1559
1559
|
]),
|
|
1560
1560
|
_: 1
|
|
@@ -1571,7 +1571,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1571
1571
|
L(Ge, null, ie({
|
|
1572
1572
|
default: y(() => [
|
|
1573
1573
|
"items" in e.property ? (n(), s("div", aa, [
|
|
1574
|
-
(n(!0), s(
|
|
1574
|
+
(n(!0), s(W, null, z(e.modelValue, (B) => (n(), $(ze, x({ ref_for: !0 }, {
|
|
1575
1575
|
item: B,
|
|
1576
1576
|
indexes: t(m),
|
|
1577
1577
|
property: e.property,
|
|
@@ -1594,7 +1594,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1594
1594
|
e.readOnly ? void 0 : {
|
|
1595
1595
|
name: "footer",
|
|
1596
1596
|
fn: y(() => [
|
|
1597
|
-
|
|
1597
|
+
Y((n(), $(H, {
|
|
1598
1598
|
icon: "plus",
|
|
1599
1599
|
onClick: $e
|
|
1600
1600
|
}, {
|
|
@@ -1603,7 +1603,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1603
1603
|
]),
|
|
1604
1604
|
_: 1
|
|
1605
1605
|
})), [
|
|
1606
|
-
[
|
|
1606
|
+
[v]
|
|
1607
1607
|
])
|
|
1608
1608
|
]),
|
|
1609
1609
|
key: "0"
|
|
@@ -1687,7 +1687,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1687
1687
|
highlightRequired: { type: Boolean, default: !0 },
|
|
1688
1688
|
focus: { type: Boolean },
|
|
1689
1689
|
includeId: { type: Boolean },
|
|
1690
|
-
includeTimestamps: { type: Boolean }
|
|
1690
|
+
includeTimestamps: { type: Boolean },
|
|
1691
|
+
includeReadOnly: { type: Boolean }
|
|
1691
1692
|
},
|
|
1692
1693
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
1693
1694
|
setup(e, { emit: u }) {
|
|
@@ -1695,41 +1696,41 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1695
1696
|
Xe(() => {
|
|
1696
1697
|
a.modelValue || l("update:modelValue", a.property && "items" in a.property ? [] : {});
|
|
1697
1698
|
});
|
|
1698
|
-
const c = a.property && se(a.property), r = c ? c.$ref : a.collection || we()
|
|
1699
|
+
const c = a.property && se(a.property), r = c ? c.$ref : a.collection || we();
|
|
1700
|
+
let p;
|
|
1701
|
+
a.readOnly ? p = a.readOnly : a.property && typeof a.property.readOnly == "boolean" ? p = a.property.readOnly : p = !1;
|
|
1702
|
+
const d = r ? ne(t(r)) : null;
|
|
1699
1703
|
!r && process.env.NODE_ENV !== "production" && console.warn("aeria-form was used without providing storeId or specifying collection prop, some features may not work as intended");
|
|
1700
|
-
const
|
|
1701
|
-
const
|
|
1702
|
-
if (!
|
|
1704
|
+
const f = K(!1), m = G(() => {
|
|
1705
|
+
const v = !a.form && a.property ? "type" in a.property && a.property.type === "object" ? "properties" in a.property ? a.property.properties : void 0 : d?.properties : a.form;
|
|
1706
|
+
if (!v)
|
|
1703
1707
|
return;
|
|
1704
1708
|
const B = {};
|
|
1705
1709
|
if (a.includeId && (B._id = {
|
|
1706
1710
|
type: "string",
|
|
1707
1711
|
readOnly: !0
|
|
1708
1712
|
}), a.includeTimestamps) {
|
|
1709
|
-
const
|
|
1713
|
+
const X = {
|
|
1710
1714
|
type: "string",
|
|
1711
1715
|
format: "date-time",
|
|
1712
1716
|
readOnly: !0,
|
|
1713
1717
|
isTimestamp: !0
|
|
1714
1718
|
};
|
|
1715
|
-
|
|
1719
|
+
v.created_at || (B.created_at = X), v.created_at || (B.updated_at = X);
|
|
1716
1720
|
}
|
|
1717
|
-
return Object.assign(B,
|
|
1718
|
-
}), b = G(() => a.layout || d?.description.formLayout), _ = (
|
|
1719
|
-
const B = re(
|
|
1720
|
-
return a[
|
|
1721
|
+
return Object.assign(B, v), B;
|
|
1722
|
+
}), b = G(() => a.layout || d?.description.formLayout), _ = (v) => {
|
|
1723
|
+
const B = re(v, a[v]);
|
|
1724
|
+
return a[v] && fe(v, a[v]), B;
|
|
1721
1725
|
}, g = G(() => a.validationErrors !== null ? a.validationErrors : d?.validationErrors), i = _("formComponents") || {}, T = _("propertyComponents") || {}, k = _("omitFormHeader"), F = _("omitInputLabels"), I = _("innerInputLabel");
|
|
1722
1726
|
r && fe(Te, r), fe("searchOnly", a.searchOnly);
|
|
1723
|
-
const w = (
|
|
1724
|
-
B
|
|
1725
|
-
W
|
|
1726
|
-
])) : null, J = (f, B) => {
|
|
1727
|
-
if (a.searchOnly || !r || a.includeId && f === "_id" || a.includeTimestamps && B.isTimestamp)
|
|
1727
|
+
const w = (v, B) => {
|
|
1728
|
+
if (a.searchOnly || !r || a.includeId && v === "_id" || a.includeTimestamps && B.isTimestamp)
|
|
1728
1729
|
return !0;
|
|
1729
|
-
const
|
|
1730
|
-
return !
|
|
1731
|
-
}, N =
|
|
1732
|
-
const
|
|
1730
|
+
const X = a.property && "properties" in a.property ? a.property.form : d?.description?.form;
|
|
1731
|
+
return !X || X.includes(v);
|
|
1732
|
+
}, N = m.value ? Object.entries(m.value).filter(([v, B]) => w(v, B) && !B.noForm && (!B.readOnly || a.readOnly || a.includeReadOnly)) : null, ue = Se(), ce = {}, $e = (v, B) => {
|
|
1733
|
+
const X = [], te = b.value?.fields?.[v];
|
|
1733
1734
|
if (!B)
|
|
1734
1735
|
return;
|
|
1735
1736
|
if (te?.if && !a.searchOnly) {
|
|
@@ -1737,22 +1738,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1737
1738
|
a.modelValue,
|
|
1738
1739
|
te.if
|
|
1739
1740
|
);
|
|
1740
|
-
q.satisfied || (ce[
|
|
1741
|
+
q.satisfied || (ce[v] && (d ? a.modelValue[v] = typeof d.$freshItem[v] == "object" ? ke(d.$freshItem[v]) : d.$freshItem[v] : a.modelValue[v] = [
|
|
1741
1742
|
void 0,
|
|
1742
1743
|
null
|
|
1743
|
-
].includes(a.modelValue[
|
|
1744
|
+
].includes(a.modelValue[v]) ? null : a.modelValue[v].constructor()), X.push("display: none")), ce[v] = q.satisfied;
|
|
1744
1745
|
}
|
|
1745
1746
|
const S = ue.value.md && te?.span || 6;
|
|
1746
|
-
return
|
|
1747
|
+
return X.push(`--field-span: ${S}`, "grid-column: span var(--field-span) / span var(--field-span)"), te && (te.verticalSpacing && X.push([
|
|
1747
1748
|
`--vertical-spacing: ${te.verticalSpacing}`,
|
|
1748
1749
|
"padding: var(--vertical-spacing) 0"
|
|
1749
|
-
]), te.separator &&
|
|
1750
|
+
]), te.separator && X.push([
|
|
1750
1751
|
"border-top: 1px solid var(--theme-border-color)",
|
|
1751
1752
|
"border-width: 1px 0 1px 0",
|
|
1752
1753
|
"padding: 1rem 0",
|
|
1753
1754
|
"margin: 1rem 0"
|
|
1754
|
-
])),
|
|
1755
|
-
}, me = (
|
|
1755
|
+
])), X.join(";");
|
|
1756
|
+
}, me = (v) => v === null || v instanceof Object && !Object.keys(v).length, A = G(() => {
|
|
1756
1757
|
if (typeof a.required < "u")
|
|
1757
1758
|
switch (a.required) {
|
|
1758
1759
|
case !0:
|
|
@@ -1764,40 +1765,40 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1764
1765
|
}
|
|
1765
1766
|
return a.property && "required" in a.property ? a.property.required : a.collection ? d.description.required : void 0;
|
|
1766
1767
|
}), j = G(() => {
|
|
1767
|
-
let
|
|
1768
|
+
let v;
|
|
1768
1769
|
if (a.form)
|
|
1769
|
-
|
|
1770
|
+
v = a.form;
|
|
1770
1771
|
else if (a.property && "properties" in a.property)
|
|
1771
|
-
|
|
1772
|
+
v = a.property.properties;
|
|
1772
1773
|
else
|
|
1773
1774
|
return !0;
|
|
1774
1775
|
const { error: B } = _t(a.modelValue, {
|
|
1775
1776
|
type: "object",
|
|
1776
1777
|
required: A.value,
|
|
1777
|
-
properties:
|
|
1778
|
+
properties: v
|
|
1778
1779
|
}, {
|
|
1779
1780
|
coerce: !0,
|
|
1780
1781
|
tolerateExtraneous: !0
|
|
1781
1782
|
});
|
|
1782
1783
|
return !B;
|
|
1783
|
-
}), Z = (
|
|
1784
|
-
if (!a.focus || p ||
|
|
1784
|
+
}), Z = (v, B) => g.value?.[v] && (typeof g.value[v].index != "number" || g.value[v].index === B) ? g.value[v].errors : null, P = (v) => {
|
|
1785
|
+
if (!a.focus || p || v.readOnly)
|
|
1785
1786
|
return !1;
|
|
1786
|
-
if (!a.parentPropertyName && !a.parentCollection && !
|
|
1787
|
-
return
|
|
1787
|
+
if (!a.parentPropertyName && !a.parentCollection && !f.value)
|
|
1788
|
+
return f.value = !0, !0;
|
|
1788
1789
|
};
|
|
1789
|
-
return (
|
|
1790
|
-
const
|
|
1790
|
+
return (v, B) => {
|
|
1791
|
+
const X = ee("clickable"), te = ee("focus");
|
|
1791
1792
|
return n(), s("form", {
|
|
1792
1793
|
class: "form",
|
|
1793
1794
|
style: ve(`row-gap: ${t(k) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1794
1795
|
}, [
|
|
1795
|
-
|
|
1796
|
-
C(
|
|
1796
|
+
v.$slots.header && !t(k) ? (n(), s("header", ra, [
|
|
1797
|
+
C(v.$slots, "header", {}, void 0, !0)
|
|
1797
1798
|
])) : h("", !0),
|
|
1798
|
-
C(
|
|
1799
|
+
C(v.$slots, "default", {}, void 0, !0),
|
|
1799
1800
|
O("fieldset", ua, [
|
|
1800
|
-
(n(!0), s(
|
|
1801
|
+
(n(!0), s(W, null, z(t(N), ([S, q]) => (n(), s("div", {
|
|
1801
1802
|
key: `field-${S}`,
|
|
1802
1803
|
style: ve($e(S, q)),
|
|
1803
1804
|
class: U({
|
|
@@ -1818,7 +1819,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1818
1819
|
innerHTML: q.hint
|
|
1819
1820
|
}, null, 8, da)) : h("", !0)
|
|
1820
1821
|
])) : h("", !0),
|
|
1821
|
-
|
|
1822
|
+
v.$slots[`field-${S}`] ? C(v.$slots, `field-${S}`, x({
|
|
1822
1823
|
key: 1,
|
|
1823
1824
|
ref_for: !0
|
|
1824
1825
|
}, {
|
|
@@ -1895,11 +1896,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1895
1896
|
}, 8, ["disabled", "onClick"])
|
|
1896
1897
|
])),
|
|
1897
1898
|
e.modelValue[S]?.length > 0 ? (n(), s("div", ba, [
|
|
1898
|
-
(n(!0), s(
|
|
1899
|
+
(n(!0), s(W, null, z(e.modelValue[S], (Q, ge) => (n(), s("div", {
|
|
1899
1900
|
key: `rep-${S}-${t($t)(Q, ge)}`,
|
|
1900
1901
|
class: "form__array-item"
|
|
1901
1902
|
}, [
|
|
1902
|
-
t(p) ? h("", !0) :
|
|
1903
|
+
t(p) ? h("", !0) : Y((n(), $(H, {
|
|
1903
1904
|
key: 0,
|
|
1904
1905
|
icon: "trash",
|
|
1905
1906
|
class: "form__array-remove",
|
|
@@ -1910,7 +1911,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1910
1911
|
]),
|
|
1911
1912
|
_: 1
|
|
1912
1913
|
}, 8, ["onClick"])), [
|
|
1913
|
-
[
|
|
1914
|
+
[X]
|
|
1914
1915
|
]),
|
|
1915
1916
|
(n(), $(pe(t(We)(q, t(i))), x({
|
|
1916
1917
|
modelValue: e.modelValue[S][ge],
|
|
@@ -1930,7 +1931,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1930
1931
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1931
1932
|
]))), 128))
|
|
1932
1933
|
])) : h("", !0)
|
|
1933
|
-
])) : e.modelValue ?
|
|
1934
|
+
])) : e.modelValue ? Y((n(), $(pe(t(We)(q, t(i))), x({
|
|
1934
1935
|
key: 6,
|
|
1935
1936
|
modelValue: e.modelValue[S],
|
|
1936
1937
|
"onUpdate:modelValue": (Q) => e.modelValue[S] = Q
|
|
@@ -1956,24 +1957,24 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1956
1957
|
])) : h("", !0)
|
|
1957
1958
|
], 6))), 128))
|
|
1958
1959
|
]),
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
C(
|
|
1960
|
+
v.$slots.after ? C(v.$slots, "after", { key: 1 }, void 0, !0) : h("", !0),
|
|
1961
|
+
v.$slots.footer ? (n(), s("div", ka, [
|
|
1962
|
+
C(v.$slots, "footer", oe(be({
|
|
1962
1963
|
isInsertReady: j.value
|
|
1963
1964
|
})), void 0, !0)
|
|
1964
1965
|
])) : h("", !0)
|
|
1965
1966
|
], 4);
|
|
1966
1967
|
};
|
|
1967
1968
|
}
|
|
1968
|
-
}), Me = /* @__PURE__ */ E(Va, [["__scopeId", "data-v-
|
|
1969
|
+
}), Me = /* @__PURE__ */ E(Va, [["__scopeId", "data-v-017664ad"]]), Ca = /* @__PURE__ */ M({
|
|
1969
1970
|
__name: "aeria-filter-panel",
|
|
1970
1971
|
emits: ["update:modelValue"],
|
|
1971
1972
|
setup(e, { emit: u }) {
|
|
1972
1973
|
const o = u, a = xe(), l = Ce(), c = t(re(Te)), r = () => {
|
|
1973
1974
|
if (a.pagination.offset = 0, a.$actions.filter(), o("update:modelValue", !1), "query" in l.currentRoute && l.currentRoute.query && typeof l.currentRoute.query == "object") {
|
|
1974
|
-
const
|
|
1975
|
-
for (const m of Object.keys(
|
|
1976
|
-
m.startsWith(`${c}.`) && delete
|
|
1975
|
+
const f = l.currentRoute.query;
|
|
1976
|
+
for (const m of Object.keys(f))
|
|
1977
|
+
m.startsWith(`${c}.`) && delete f[m];
|
|
1977
1978
|
}
|
|
1978
1979
|
const { query: p, ...d } = l.currentRoute.value;
|
|
1979
1980
|
l.push(Be(d, {
|
|
@@ -1984,14 +1985,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1984
1985
|
"close-hint": "",
|
|
1985
1986
|
"fixed-right": "",
|
|
1986
1987
|
title: p.t("filter_by", { capitalize: !0 }),
|
|
1987
|
-
onClose: d[2] || (d[2] = (
|
|
1988
|
-
onOverlayClick: d[3] || (d[3] = (
|
|
1988
|
+
onClose: d[2] || (d[2] = (f) => o("update:modelValue", !1)),
|
|
1989
|
+
onOverlayClick: d[3] || (d[3] = (f) => o("update:modelValue", !1))
|
|
1989
1990
|
}, {
|
|
1990
1991
|
footer: y(() => [
|
|
1991
1992
|
t(a).filtersCount > 0 ? (n(), $(le, {
|
|
1992
1993
|
key: 0,
|
|
1993
1994
|
variant: "transparent",
|
|
1994
|
-
onClick: d[1] || (d[1] = (
|
|
1995
|
+
onClick: d[1] || (d[1] = (f) => {
|
|
1995
1996
|
t(a).$actions.clearFilters(), r(), o("update:modelValue", !1);
|
|
1996
1997
|
})
|
|
1997
1998
|
}, {
|
|
@@ -2021,7 +2022,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2021
2022
|
default: y(() => [
|
|
2022
2023
|
L(Me, x({
|
|
2023
2024
|
modelValue: t(a).filters,
|
|
2024
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2025
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => t(a).filters = f)
|
|
2025
2026
|
}, {
|
|
2026
2027
|
form: t(a).$actions.useProperties(
|
|
2027
2028
|
Array.isArray(t(a).description.filters) ? t(a).description.filters : Object.keys(t(a).description.filters)
|
|
@@ -2064,10 +2065,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2064
2065
|
case "MISSING_PROPERTIES":
|
|
2065
2066
|
return;
|
|
2066
2067
|
default: {
|
|
2067
|
-
let g =
|
|
2068
|
+
let g = f("error", {
|
|
2068
2069
|
capitalize: !0
|
|
2069
2070
|
});
|
|
2070
|
-
b.message && (g += `: ${
|
|
2071
|
+
b.message && (g += `: ${f(b.message)}`), g += ` (${f(b.code)})`, l.$actions.spawnToast({
|
|
2071
2072
|
text: g,
|
|
2072
2073
|
icon: "warning"
|
|
2073
2074
|
});
|
|
@@ -2076,12 +2077,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2076
2077
|
return;
|
|
2077
2078
|
}
|
|
2078
2079
|
a("update:visible", !1), a("update:modelValue", _), a("insert", _), r.$actions.clearItem();
|
|
2079
|
-
}, { t:
|
|
2080
|
+
}, { t: f } = st(), m = () => {
|
|
2080
2081
|
l.$actions.ask({
|
|
2081
2082
|
action: () => {
|
|
2082
2083
|
r.$actions.clearItem(), r.validationErrors = {}, a("cancel");
|
|
2083
2084
|
},
|
|
2084
|
-
body:
|
|
2085
|
+
body: f("prompt.close_panel")
|
|
2085
2086
|
});
|
|
2086
2087
|
};
|
|
2087
2088
|
return ae(() => r.item._id, (b) => {
|
|
@@ -2105,7 +2106,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2105
2106
|
default: y(({
|
|
2106
2107
|
visible: i
|
|
2107
2108
|
}) => [
|
|
2108
|
-
t(r).item._id ?
|
|
2109
|
+
t(r).item._id ? Y((n(), $(H, {
|
|
2109
2110
|
key: 0,
|
|
2110
2111
|
reactive: "",
|
|
2111
2112
|
active: i,
|
|
@@ -2158,7 +2159,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2158
2159
|
onClick: m
|
|
2159
2160
|
}, {
|
|
2160
2161
|
default: y(() => [
|
|
2161
|
-
D(V(t(
|
|
2162
|
+
D(V(t(f)("action.cancel", { capitalize: !0 })), 1)
|
|
2162
2163
|
]),
|
|
2163
2164
|
_: 1
|
|
2164
2165
|
})) : h("", !0),
|
|
@@ -2169,7 +2170,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2169
2170
|
onClick: d
|
|
2170
2171
|
}, {
|
|
2171
2172
|
default: y(() => [
|
|
2172
|
-
D(V(t(
|
|
2173
|
+
D(V(t(f)("action.insert", { capitalize: !0 })), 1)
|
|
2173
2174
|
]),
|
|
2174
2175
|
_: 1
|
|
2175
2176
|
}, 8, ["disabled", "loading"])
|
|
@@ -2241,7 +2242,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2241
2242
|
const o = e, a = u, l = Se(), c = o.collection || we(), r = c ? ne(typeof c == "string" ? c : c.value) : null, p = G({
|
|
2242
2243
|
get: () => r?.selected,
|
|
2243
2244
|
set: (g) => r?.$actions.selectManyItems(g, !0)
|
|
2244
|
-
}), d = G(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0),
|
|
2245
|
+
}), d = G(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), f = (g, i) => g.button ? typeof g.button == "object" ? qe(i, g.button).satisfied : g.button : !1, m = (g) => {
|
|
2245
2246
|
const i = o.layout?.actions;
|
|
2246
2247
|
return !l.value.xl || !i || !o.actions ? [] : o.actions.filter((T) => {
|
|
2247
2248
|
if (T.roles) {
|
|
@@ -2250,7 +2251,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2250
2251
|
return !1;
|
|
2251
2252
|
}
|
|
2252
2253
|
const k = i[T.action];
|
|
2253
|
-
return k &&
|
|
2254
|
+
return k && f(k, g);
|
|
2254
2255
|
});
|
|
2255
2256
|
}, b = (g) => {
|
|
2256
2257
|
if (!o.actions)
|
|
@@ -2266,7 +2267,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2266
2267
|
return k ? k.if ? qe(
|
|
2267
2268
|
g,
|
|
2268
2269
|
k.if
|
|
2269
|
-
).satisfied : !
|
|
2270
|
+
).satisfied : !f(k, g) : !0;
|
|
2270
2271
|
});
|
|
2271
2272
|
}, _ = (g, i) => {
|
|
2272
2273
|
const T = [], k = o.layout?.actions?.[i.action];
|
|
@@ -2289,7 +2290,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2289
2290
|
onChange: i[0] || (i[0] = (k) => t(r).$actions.selectAllItems(k.target.checked))
|
|
2290
2291
|
}, null, 40, Ta)
|
|
2291
2292
|
])) : h("", !0),
|
|
2292
|
-
(n(!0), s(
|
|
2293
|
+
(n(!0), s(W, null, z(Object.entries(e.columns), ([k, F], I) => (n(), s("th", {
|
|
2293
2294
|
key: `header-${I}`,
|
|
2294
2295
|
class: "table__header"
|
|
2295
2296
|
}, V(F.description || t(R)(k)), 1))), 128)),
|
|
@@ -2299,12 +2300,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2299
2300
|
g.$slots.tbody ? (n(), s("tbody", Ra, [
|
|
2300
2301
|
C(g.$slots, "tbody", {}, void 0, !0)
|
|
2301
2302
|
])) : (n(), s("tbody", qa, [
|
|
2302
|
-
(n(!0), s(
|
|
2303
|
+
(n(!0), s(W, null, z(e.rows, (k, F) => (n(), s("tr", {
|
|
2303
2304
|
key: k._id,
|
|
2304
2305
|
onClick: (I) => a("itemClick", k)
|
|
2305
2306
|
}, [
|
|
2306
2307
|
t(r) && e.checkbox && t(l).md ? (n(), s("td", xa, [
|
|
2307
|
-
|
|
2308
|
+
Y(O("input", {
|
|
2308
2309
|
"onUpdate:modelValue": i[1] || (i[1] = (I) => p.value = I),
|
|
2309
2310
|
type: "checkbox",
|
|
2310
2311
|
value: k._id
|
|
@@ -2312,7 +2313,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2312
2313
|
[tt, p.value]
|
|
2313
2314
|
])
|
|
2314
2315
|
])) : h("", !0),
|
|
2315
|
-
(n(!0), s(
|
|
2316
|
+
(n(!0), s(W, null, z(Object.entries(e.columns), ([I, w], J) => (n(), s("td", {
|
|
2316
2317
|
key: `column-${k._id}-${J}`
|
|
2317
2318
|
}, [
|
|
2318
2319
|
O("div", za, V(w.description || t(R)(I)), 1),
|
|
@@ -2377,7 +2378,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2377
2378
|
property: w
|
|
2378
2379
|
})), 1)) : (n(), s("span", Ja, V(Array.isArray(k[I]) ? k[I].filter((N) => !!N).join(", ") : [void 0, null].includes(k[I]) ? "-" : k[I]), 1)),
|
|
2379
2380
|
t(se)(w)?.indexes?.length > 1 ? (n(), s("div", Za, [
|
|
2380
|
-
(n(!0), s(
|
|
2381
|
+
(n(!0), s(W, null, z(t(se)(w).indexes.slice(1, 2), (N, ue) => (n(), s("div", {
|
|
2381
2382
|
key: `subvalue-${ue}`,
|
|
2382
2383
|
class: "table__cell-subvalue"
|
|
2383
2384
|
}, V(t(r).$actions.formatValue({
|
|
@@ -2393,7 +2394,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2393
2394
|
]))), 128)),
|
|
2394
2395
|
e.actions?.length && t(l).md ? (n(), s("td", Pa, [
|
|
2395
2396
|
O("div", Na, [
|
|
2396
|
-
(n(!0), s(
|
|
2397
|
+
(n(!0), s(W, null, z(m(k), (I) => (n(), $(le, {
|
|
2397
2398
|
key: `action-${I.action}`,
|
|
2398
2399
|
small: "",
|
|
2399
2400
|
variant: "alt",
|
|
@@ -2416,7 +2417,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2416
2417
|
default: y(({
|
|
2417
2418
|
visible: I
|
|
2418
2419
|
}) => [
|
|
2419
|
-
|
|
2420
|
+
Y(L(H, {
|
|
2420
2421
|
reactive: "",
|
|
2421
2422
|
active: I,
|
|
2422
2423
|
icon: "dots-three"
|
|
@@ -2432,7 +2433,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2432
2433
|
class: "table__mobile-actions-grid",
|
|
2433
2434
|
style: ve(`grid-template-columns: repeat(${m(k).length + (b(k).length ? 1 : 0)}, 1fr);`)
|
|
2434
2435
|
}, [
|
|
2435
|
-
(n(!0), s(
|
|
2436
|
+
(n(!0), s(W, null, z(m(k), (I) => (n(), $(de, {
|
|
2436
2437
|
key: `action-${I.action}`,
|
|
2437
2438
|
class: "table__mobile-actions-button",
|
|
2438
2439
|
onClick: (w) => I.click(k)
|
|
@@ -2553,7 +2554,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2553
2554
|
list: e.componentName === "list"
|
|
2554
2555
|
}, {
|
|
2555
2556
|
default: y(() => [
|
|
2556
|
-
(n(!0), s(
|
|
2557
|
+
(n(!0), s(W, null, z(t(a).items, (d) => (n(), $(zt, {
|
|
2557
2558
|
key: d._id,
|
|
2558
2559
|
inactive: !!(t(o).active && !d[t(o).active]),
|
|
2559
2560
|
horizontal: e.componentName === "list"
|
|
@@ -2561,9 +2562,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2561
2562
|
footer: y(() => [
|
|
2562
2563
|
t(o).title ? (n(), s("div", co, V(d[t(o).title]), 1)) : h("", !0),
|
|
2563
2564
|
Array.isArray(t(o).information) ? (n(), s("div", mo, [
|
|
2564
|
-
(n(!0), s(
|
|
2565
|
-
key: `info-${
|
|
2566
|
-
}, V(d[
|
|
2565
|
+
(n(!0), s(W, null, z(t(o).information, (f) => (n(), s("div", {
|
|
2566
|
+
key: `info-${f}`
|
|
2567
|
+
}, V(d[f]), 1))), 128))
|
|
2567
2568
|
])) : t(o).information ? (n(), s("div", po, V(d[t(o).information]), 1)) : h("", !0)
|
|
2568
2569
|
]),
|
|
2569
2570
|
actions: y(() => [
|
|
@@ -2575,11 +2576,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2575
2576
|
actions: e.individualActions
|
|
2576
2577
|
}), {
|
|
2577
2578
|
default: y(({
|
|
2578
|
-
visible:
|
|
2579
|
+
visible: f
|
|
2579
2580
|
}) => [
|
|
2580
|
-
|
|
2581
|
+
Y(L(H, {
|
|
2581
2582
|
reactive: "",
|
|
2582
|
-
active:
|
|
2583
|
+
active: f,
|
|
2583
2584
|
icon: "dots-three-vertical"
|
|
2584
2585
|
}, null, 8, ["active"]), [
|
|
2585
2586
|
[p]
|
|
@@ -2601,12 +2602,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2601
2602
|
t(o).badge && Array.isArray(d[t(o).badge]) ? {
|
|
2602
2603
|
name: "badge",
|
|
2603
2604
|
fn: y(() => [
|
|
2604
|
-
(n(!0), s(
|
|
2605
|
-
key: `${d._id}-${
|
|
2605
|
+
(n(!0), s(W, null, z(d[t(o).badge], (f) => (n(), $(he, {
|
|
2606
|
+
key: `${d._id}-${f}`,
|
|
2606
2607
|
large: ""
|
|
2607
2608
|
}, {
|
|
2608
2609
|
default: y(() => [
|
|
2609
|
-
D(V(t(o).translateBadge ? t(R)(
|
|
2610
|
+
D(V(t(o).translateBadge ? t(R)(f) : f), 1)
|
|
2610
2611
|
]),
|
|
2611
2612
|
_: 2
|
|
2612
2613
|
}, 1024))), 128))
|
|
@@ -2659,7 +2660,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2659
2660
|
},
|
|
2660
2661
|
emits: ["uiEvent"],
|
|
2661
2662
|
setup(e, { emit: u }) {
|
|
2662
|
-
const o =
|
|
2663
|
+
const o = K(!1), a = K(!1), l = K((...A) => null), c = K(), r = e, p = u, d = Ce(), f = ne("meta"), m = Se(), { reachedEnd: b, detach: _ } = He(null, {
|
|
2663
2664
|
antecipate: 600
|
|
2664
2665
|
}), g = !m.value.md || r.scrollPagination;
|
|
2665
2666
|
g && ae(b, (A) => {
|
|
@@ -2671,7 +2672,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2671
2672
|
});
|
|
2672
2673
|
const T = De(), k = r.action ? t(r.action) : ft(i, d, T);
|
|
2673
2674
|
l.value = k[0], c.value = k[1];
|
|
2674
|
-
const F =
|
|
2675
|
+
const F = K(0), I = K(!1), w = async (A) => {
|
|
2675
2676
|
i.activeFilters = Object.assign({}, A?.filters || i.$filters), Object.assign(i.activeFilters, i.filtersPreset);
|
|
2676
2677
|
const j = {
|
|
2677
2678
|
filters: i.activeFilters,
|
|
@@ -2683,8 +2684,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2683
2684
|
const { error: Z, result: P } = await i.$actions.retrieveItems(j);
|
|
2684
2685
|
if (Z)
|
|
2685
2686
|
return;
|
|
2686
|
-
const { data:
|
|
2687
|
-
i.pagination.recordsCount = B.recordsCount, i.pagination.recordsTotal = B.recordsTotal, F.value === 0 && i.items.splice(0), i.items.push(...
|
|
2687
|
+
const { data: v, pagination: B } = P;
|
|
2688
|
+
i.pagination.recordsCount = B.recordsCount, i.pagination.recordsTotal = B.recordsTotal, F.value === 0 && i.items.splice(0), i.items.push(...v), i.loading.getAll = !1, I.value = !0;
|
|
2688
2689
|
}, J = async (A) => {
|
|
2689
2690
|
d.push(Be(d.currentRoute.value, {
|
|
2690
2691
|
query: {
|
|
@@ -2700,7 +2701,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2700
2701
|
if (j && j[0] === A[0] && j[1] === A[1])
|
|
2701
2702
|
return;
|
|
2702
2703
|
const Z = d.currentRoute.value;
|
|
2703
|
-
if (
|
|
2704
|
+
if (f.view.title = r.collection, !r.noFetch && (!Z.query._popstate || i.itemsCount === 0)) {
|
|
2704
2705
|
const P = vt(i, Z.query);
|
|
2705
2706
|
Object.keys(P).length > 0 && Object.assign(i.filters, P), await w();
|
|
2706
2707
|
}
|
|
@@ -2746,15 +2747,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2746
2747
|
i.$actions.setItem(j.params), o.value = "edit";
|
|
2747
2748
|
else if (j.name === "duplicate") {
|
|
2748
2749
|
await Z;
|
|
2749
|
-
const P = Object.entries(i.item).reduce((
|
|
2750
|
+
const P = Object.entries(i.item).reduce((v, [B, X]) => {
|
|
2750
2751
|
if (!(B in i.properties))
|
|
2751
2752
|
return {
|
|
2752
|
-
...
|
|
2753
|
-
[B]:
|
|
2753
|
+
...v,
|
|
2754
|
+
[B]: X
|
|
2754
2755
|
};
|
|
2755
2756
|
const te = i.properties[B];
|
|
2756
2757
|
if (te.readOnly)
|
|
2757
|
-
return
|
|
2758
|
+
return v;
|
|
2758
2759
|
const S = (q) => {
|
|
2759
2760
|
const Q = se(te);
|
|
2760
2761
|
if (!Q)
|
|
@@ -2767,9 +2768,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2767
2768
|
}
|
|
2768
2769
|
return q;
|
|
2769
2770
|
};
|
|
2770
|
-
return
|
|
2771
|
-
...
|
|
2772
|
-
[B]:
|
|
2771
|
+
return X = Array.isArray(X) ? X.map(S) : S(X), {
|
|
2772
|
+
...v,
|
|
2773
|
+
[B]: X
|
|
2773
2774
|
};
|
|
2774
2775
|
}, {
|
|
2775
2776
|
_id: void 0
|
|
@@ -2793,22 +2794,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2793
2794
|
}), me = G(() => i.actions.filter((A) => !A.button));
|
|
2794
2795
|
return fe(Te, G(() => r.collection)), (A, j) => {
|
|
2795
2796
|
const Z = ee("clickable"), P = ee("loading");
|
|
2796
|
-
return n(), s(
|
|
2797
|
+
return n(), s(W, null, [
|
|
2797
2798
|
a.value ? (n(), $(Ca, {
|
|
2798
2799
|
key: t(i).$id,
|
|
2799
2800
|
modelValue: a.value,
|
|
2800
|
-
"onUpdate:modelValue": j[0] || (j[0] = (
|
|
2801
|
+
"onUpdate:modelValue": j[0] || (j[0] = (v) => a.value = v)
|
|
2801
2802
|
}, null, 8, ["modelValue"])) : h("", !0),
|
|
2802
2803
|
o.value ? (n(), $(Oa, x({
|
|
2803
2804
|
key: 1,
|
|
2804
2805
|
visible: o.value,
|
|
2805
|
-
"onUpdate:visible": j[1] || (j[1] = (
|
|
2806
|
+
"onUpdate:visible": j[1] || (j[1] = (v) => o.value = v),
|
|
2806
2807
|
"fixed-right": ""
|
|
2807
2808
|
}, {
|
|
2808
2809
|
collection: e.collection,
|
|
2809
2810
|
individualActions: $e.value
|
|
2810
2811
|
}, {
|
|
2811
|
-
onCancel: j[2] || (j[2] = (
|
|
2812
|
+
onCancel: j[2] || (j[2] = (v) => o.value = !1)
|
|
2812
2813
|
}), ie({
|
|
2813
2814
|
header: y(() => [
|
|
2814
2815
|
O("span", null, V((() => {
|
|
@@ -2825,10 +2826,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2825
2826
|
]),
|
|
2826
2827
|
_: 2
|
|
2827
2828
|
}, [
|
|
2828
|
-
z(Object.keys(A.$slots).filter((
|
|
2829
|
-
name:
|
|
2829
|
+
z(Object.keys(A.$slots).filter((v) => v.startsWith("field-")), (v) => ({
|
|
2830
|
+
name: v,
|
|
2830
2831
|
fn: y((B) => [
|
|
2831
|
-
C(A.$slots,
|
|
2832
|
+
C(A.$slots, v, oe(be(B)), void 0, !0)
|
|
2832
2833
|
])
|
|
2833
2834
|
}))
|
|
2834
2835
|
]), 1040, ["visible"])) : h("", !0),
|
|
@@ -2836,7 +2837,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2836
2837
|
t(i).description.search ? (n(), s("div", ho, [
|
|
2837
2838
|
L(_e, x({
|
|
2838
2839
|
modelValue: t(i).textQuery,
|
|
2839
|
-
"onUpdate:modelValue": j[3] || (j[3] = (
|
|
2840
|
+
"onUpdate:modelValue": j[3] || (j[3] = (v) => t(i).textQuery = v)
|
|
2840
2841
|
}, {
|
|
2841
2842
|
property: {
|
|
2842
2843
|
type: "string",
|
|
@@ -2868,9 +2869,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2868
2869
|
Object.keys(t(i).description.filters || {}).length > 0 ? {
|
|
2869
2870
|
name: "filter",
|
|
2870
2871
|
fn: y(() => [
|
|
2871
|
-
|
|
2872
|
+
Y((n(), $(H, {
|
|
2872
2873
|
icon: "funnel",
|
|
2873
|
-
onClick: j[4] || (j[4] = (
|
|
2874
|
+
onClick: j[4] || (j[4] = (v) => a.value = !0)
|
|
2874
2875
|
}, {
|
|
2875
2876
|
default: y(() => [
|
|
2876
2877
|
D(V(t(R)("filters", { capitalize: !0 })), 1)
|
|
@@ -2893,9 +2894,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2893
2894
|
!e.noLayoutToggle && t(i).description.layout && t(i).description.layout?.name !== "tabular" ? {
|
|
2894
2895
|
name: "layout-toggle",
|
|
2895
2896
|
fn: y(() => [
|
|
2896
|
-
|
|
2897
|
+
Y((n(), $(H, {
|
|
2897
2898
|
icon: "table",
|
|
2898
|
-
onClick: j[5] || (j[5] = (
|
|
2899
|
+
onClick: j[5] || (j[5] = (v) => ce(t(i)))
|
|
2899
2900
|
}, {
|
|
2900
2901
|
default: y(() => [
|
|
2901
2902
|
D(V(t(R)("change_layout", { capitalize: !0 })), 1)
|
|
@@ -2907,17 +2908,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2907
2908
|
]),
|
|
2908
2909
|
key: "1"
|
|
2909
2910
|
} : void 0,
|
|
2910
|
-
z(me.value, (
|
|
2911
|
+
z(me.value, (v, B) => ({
|
|
2911
2912
|
name: `action-${B}`,
|
|
2912
2913
|
fn: y(() => [
|
|
2913
|
-
|
|
2914
|
+
v ? (n(), $(H, {
|
|
2914
2915
|
key: 0,
|
|
2915
|
-
icon:
|
|
2916
|
-
disabled: t(i).selected.length === 0 && "selection" in
|
|
2917
|
-
onClick: (
|
|
2916
|
+
icon: v.icon || "gear",
|
|
2917
|
+
disabled: t(i).selected.length === 0 && "selection" in v && v.selection,
|
|
2918
|
+
onClick: (X) => l.value(v)({ _id: t(i).selected.map((te) => typeof te == "string" || te._id) })
|
|
2918
2919
|
}, {
|
|
2919
2920
|
default: y(() => [
|
|
2920
|
-
D(V(t(R)(
|
|
2921
|
+
D(V(t(R)(v.label, { capitalize: !0 })), 1)
|
|
2921
2922
|
]),
|
|
2922
2923
|
_: 2
|
|
2923
2924
|
}, 1032, ["icon", "disabled", "onClick"])) : h("", !0)
|
|
@@ -2927,7 +2928,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2927
2928
|
key: 1,
|
|
2928
2929
|
variant: "alt",
|
|
2929
2930
|
icon: "funnel",
|
|
2930
|
-
onClick: j[6] || (j[6] = (
|
|
2931
|
+
onClick: j[6] || (j[6] = (v) => a.value = !0)
|
|
2931
2932
|
}, {
|
|
2932
2933
|
default: y(() => [
|
|
2933
2934
|
O("div", null, V(t(R)("Filters")), 1),
|
|
@@ -2940,21 +2941,21 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2940
2941
|
]),
|
|
2941
2942
|
_: 1
|
|
2942
2943
|
})) : h("", !0),
|
|
2943
|
-
(n(!0), s(
|
|
2944
|
+
(n(!0), s(W, null, z(t(i).actions.filter((v) => v.button), (v, B) => (n(), $(le, {
|
|
2944
2945
|
key: `action-${B}`,
|
|
2945
|
-
icon:
|
|
2946
|
-
disabled: t(i).selected.length === 0 && "selection" in
|
|
2947
|
-
onClick: (
|
|
2946
|
+
icon: v.icon,
|
|
2947
|
+
disabled: t(i).selected.length === 0 && "selection" in v && v.selection,
|
|
2948
|
+
onClick: (X) => l.value(v)({ _id: t(i).selected.map((te) => typeof te == "string" || te._id) })
|
|
2948
2949
|
}, {
|
|
2949
2950
|
default: y(() => [
|
|
2950
|
-
D(V(t(R)(
|
|
2951
|
+
D(V(t(R)(v.label, { capitalize: !0 })), 1)
|
|
2951
2952
|
]),
|
|
2952
2953
|
_: 2
|
|
2953
2954
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2954
2955
|
A.$slots.actions ? C(A.$slots, "actions", { key: 2 }, void 0, !0) : h("", !0)
|
|
2955
2956
|
])
|
|
2956
2957
|
])) : h("", !0),
|
|
2957
|
-
|
|
2958
|
+
Y((n(), s("div", $o, [
|
|
2958
2959
|
t(i).itemsCount === 0 && !t(i).loading.getAll && I.value && (t(N) || A.$slots.empty) ? (n(), s("div", go, [
|
|
2959
2960
|
t(N) ? (n(), $(pe(t(N)), oe(x({ key: 0 }, {
|
|
2960
2961
|
collection: t(i).$id
|
|
@@ -2963,7 +2964,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2963
2964
|
t(i).filtersCount === 0 && t(i).description.actions && "spawnAdd" in t(i).description.actions ? (n(), $(le, {
|
|
2964
2965
|
key: 0,
|
|
2965
2966
|
icon: "plus",
|
|
2966
|
-
onClick: j[7] || (j[7] = (
|
|
2967
|
+
onClick: j[7] || (j[7] = (v) => l.value({
|
|
2967
2968
|
action: "spawnAdd",
|
|
2968
2969
|
event: "spawnAdd"
|
|
2969
2970
|
})())
|
|
@@ -2987,10 +2988,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2987
2988
|
}, {
|
|
2988
2989
|
"component-name": e.layout?.name || t(i).$currentLayout
|
|
2989
2990
|
}), ie({ _: 2 }, [
|
|
2990
|
-
z(Object.keys(A.$slots).filter((
|
|
2991
|
-
name:
|
|
2991
|
+
z(Object.keys(A.$slots).filter((v) => v.startsWith("row-")), (v) => ({
|
|
2992
|
+
name: v,
|
|
2992
2993
|
fn: y((B) => [
|
|
2993
|
-
C(A.$slots,
|
|
2994
|
+
C(A.$slots, v, oe(be(B)), void 0, !0)
|
|
2994
2995
|
])
|
|
2995
2996
|
})),
|
|
2996
2997
|
A.$slots.tfoot ? {
|
|
@@ -3035,7 +3036,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3035
3036
|
class: "prompt__options",
|
|
3036
3037
|
style: ve(`grid-template-columns: repeat(${Object.keys(e.options).length}, 1fr)`)
|
|
3037
3038
|
}, [
|
|
3038
|
-
(n(!0), s(
|
|
3039
|
+
(n(!0), s(W, null, z(Object.entries(e.options), ([c, r], p) => (n(), $(de, {
|
|
3039
3040
|
key: `option-${p}`,
|
|
3040
3041
|
class: U([
|
|
3041
3042
|
"prompt__option",
|
|
@@ -3070,7 +3071,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3070
3071
|
const u = ne("meta");
|
|
3071
3072
|
return (o, a) => {
|
|
3072
3073
|
const l = ee("clickable");
|
|
3073
|
-
return
|
|
3074
|
+
return Y((n(), s("div", {
|
|
3074
3075
|
class: U({
|
|
3075
3076
|
toast: !0,
|
|
3076
3077
|
"toast--animate": t(u).toasts[0].itr === e.itr
|
|
@@ -3151,7 +3152,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3151
3152
|
_: 1
|
|
3152
3153
|
}, 16)) : h("", !0),
|
|
3153
3154
|
O("div", Ro, [
|
|
3154
|
-
(n(!0), s(
|
|
3155
|
+
(n(!0), s(W, null, z(t(u).toasts, (r) => (n(), $(wo, x({ ref_for: !0 }, r, {
|
|
3155
3156
|
key: `toast-${r.itr}`
|
|
3156
3157
|
}), {
|
|
3157
3158
|
default: y(() => [
|
|
@@ -3168,7 +3169,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3168
3169
|
}), ul = /* @__PURE__ */ E(Lo, [["__scopeId", "data-v-19b147ab"]]), xo = {}, Mo = { class: "menu" };
|
|
3169
3170
|
function zo(e, u) {
|
|
3170
3171
|
return n(), s("menu", Mo, [
|
|
3171
|
-
(n(!0), s(
|
|
3172
|
+
(n(!0), s(W, null, z(Object.keys(e.$slots), (o) => (n(), s("div", {
|
|
3172
3173
|
key: o,
|
|
3173
3174
|
class: "menu__entry"
|
|
3174
3175
|
}, [
|
|
@@ -3216,13 +3217,13 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3216
3217
|
}));
|
|
3217
3218
|
};
|
|
3218
3219
|
return (p, d) => {
|
|
3219
|
-
const
|
|
3220
|
+
const f = ee("clickable");
|
|
3220
3221
|
return n(), s("div", Eo, [
|
|
3221
3222
|
t(l).md && !e.dropdown ? (n(), s("div", Fo, [
|
|
3222
3223
|
p.$slots.default ? (n(), s("div", Uo, [
|
|
3223
3224
|
C(p.$slots, "default", {}, void 0, !0)
|
|
3224
3225
|
])) : h("", !0),
|
|
3225
|
-
(n(!0), s(
|
|
3226
|
+
(n(!0), s(W, null, z(Object.keys(p.$slots).filter((m) => m !== "default"), (m, b) => (n(), s("div", {
|
|
3226
3227
|
key: m,
|
|
3227
3228
|
class: U({
|
|
3228
3229
|
tabs__tab: !0,
|
|
@@ -3235,7 +3236,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3235
3236
|
])) : (n(), s("div", Do, [
|
|
3236
3237
|
L(Ve, null, ie({
|
|
3237
3238
|
default: y(({ visible: m }) => [
|
|
3238
|
-
|
|
3239
|
+
Y((n(), $(H, {
|
|
3239
3240
|
"icon-right": "",
|
|
3240
3241
|
active: m,
|
|
3241
3242
|
icon: "caret-down",
|
|
@@ -3247,7 +3248,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3247
3248
|
]),
|
|
3248
3249
|
_: 3
|
|
3249
3250
|
}, 8, ["active"])), [
|
|
3250
|
-
[
|
|
3251
|
+
[f]
|
|
3251
3252
|
])
|
|
3252
3253
|
]),
|
|
3253
3254
|
_: 2
|
|
@@ -3273,7 +3274,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3273
3274
|
promise: Promise
|
|
3274
3275
|
},
|
|
3275
3276
|
setup(e) {
|
|
3276
|
-
const u =
|
|
3277
|
+
const u = K(e.initialValue);
|
|
3277
3278
|
return e.promise instanceof Promise && e.promise.then((o) => {
|
|
3278
3279
|
u.value = o;
|
|
3279
3280
|
}), () => it("div", String(u.value));
|
|
@@ -3285,18 +3286,18 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3285
3286
|
},
|
|
3286
3287
|
setup(e) {
|
|
3287
3288
|
const u = e, a = Ce().currentRoute, l = De(), c = G(() => u.collection ? Ae(u.collection, l) : typeof a.value.meta.collection == "string" ? Ae(a.value.meta.collection, l) : typeof a.value.params.collection == "string" ? Ae(a.value.params.collection, l) : null), r = async (p, d) => {
|
|
3288
|
-
const { error:
|
|
3289
|
+
const { error: f, result: m } = await d.$functions[p.badgeFunction]({
|
|
3289
3290
|
filters: p.filters
|
|
3290
3291
|
});
|
|
3291
|
-
return
|
|
3292
|
+
return f ? 0 : m;
|
|
3292
3293
|
};
|
|
3293
3294
|
return (p, d) => c.value && c.value.description.filtersPresets ? (n(), $(Wo, {
|
|
3294
3295
|
key: 0,
|
|
3295
3296
|
dropdown: "",
|
|
3296
3297
|
query: "section"
|
|
3297
3298
|
}, ie({ _: 2 }, [
|
|
3298
|
-
z(Object.entries(c.value.description.filtersPresets), ([
|
|
3299
|
-
name:
|
|
3299
|
+
z(Object.entries(c.value.description.filtersPresets), ([f, m]) => ({
|
|
3300
|
+
name: f,
|
|
3300
3301
|
fn: y(() => [
|
|
3301
3302
|
O("div", {
|
|
3302
3303
|
class: "topbar__preset",
|
|
@@ -3307,10 +3308,10 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3307
3308
|
icon: m.icon
|
|
3308
3309
|
}, {
|
|
3309
3310
|
default: y(() => [
|
|
3310
|
-
D(V(m.label || t(R)(
|
|
3311
|
+
D(V(m.label || t(R)(f, { plural: !0 })), 1)
|
|
3311
3312
|
]),
|
|
3312
3313
|
_: 2
|
|
3313
|
-
}, 1032, ["icon"])) : (n(), s("div", Xo, V(m.label || t(R)(
|
|
3314
|
+
}, 1032, ["icon"])) : (n(), s("div", Xo, V(m.label || t(R)(f, { plural: !0 })), 1)),
|
|
3314
3315
|
m.badgeFunction ? (n(), $(he, { key: 2 }, {
|
|
3315
3316
|
default: y(() => [
|
|
3316
3317
|
L(t(Yo), {
|
|
@@ -3382,7 +3383,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3382
3383
|
{
|
|
3383
3384
|
path: "signin",
|
|
3384
3385
|
name: "/user/signin",
|
|
3385
|
-
component: () => import("./signin-
|
|
3386
|
+
component: () => import("./signin-B75Qkv31.js"),
|
|
3386
3387
|
meta: {
|
|
3387
3388
|
title: "Sign in"
|
|
3388
3389
|
}
|
|
@@ -3390,7 +3391,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3390
3391
|
{
|
|
3391
3392
|
path: "signup",
|
|
3392
3393
|
name: "/user/signup",
|
|
3393
|
-
component: () => import("./signup-
|
|
3394
|
+
component: () => import("./signup-r_Cg8wlh.js"),
|
|
3394
3395
|
meta: {
|
|
3395
3396
|
title: "Sign up"
|
|
3396
3397
|
}
|
|
@@ -3398,7 +3399,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3398
3399
|
{
|
|
3399
3400
|
path: "redefine-password",
|
|
3400
3401
|
name: "/user/redefine-password",
|
|
3401
|
-
component: () => import("./redefine-password-
|
|
3402
|
+
component: () => import("./redefine-password-CJAyfalJ.js"),
|
|
3402
3403
|
meta: {
|
|
3403
3404
|
title: "Redefine password"
|
|
3404
3405
|
}
|
|
@@ -3406,7 +3407,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3406
3407
|
{
|
|
3407
3408
|
path: "activation",
|
|
3408
3409
|
name: "/user/activation",
|
|
3409
|
-
component: () => import("./activation-
|
|
3410
|
+
component: () => import("./activation-7SslzLP5.js"),
|
|
3410
3411
|
meta: {
|
|
3411
3412
|
title: "Activate user"
|
|
3412
3413
|
}
|
|
@@ -3428,7 +3429,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3428
3429
|
name: "/dashboard/:collection",
|
|
3429
3430
|
props: !0,
|
|
3430
3431
|
components: {
|
|
3431
|
-
default: () => import("./index-
|
|
3432
|
+
default: () => import("./index-DZLVdsTE.js"),
|
|
3432
3433
|
topbar: () => Promise.resolve().then(() => Po)
|
|
3433
3434
|
},
|
|
3434
3435
|
meta: {
|
|
@@ -3442,7 +3443,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3442
3443
|
name: "/dashboard/:collection/:id",
|
|
3443
3444
|
props: !0,
|
|
3444
3445
|
components: {
|
|
3445
|
-
default: () => import("./_id_-
|
|
3446
|
+
default: () => import("./_id_-1SbaGrdM.js")
|
|
3446
3447
|
},
|
|
3447
3448
|
meta: {
|
|
3448
3449
|
title: ({ collectionName: o, t: a }) => a(o, {
|
|
@@ -3462,7 +3463,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3462
3463
|
children: [
|
|
3463
3464
|
{
|
|
3464
3465
|
path: "profile",
|
|
3465
|
-
component: () => import("./index-
|
|
3466
|
+
component: () => import("./index-D3fxLWDD.js"),
|
|
3466
3467
|
meta: {
|
|
3467
3468
|
title: "User profile",
|
|
3468
3469
|
icon: "user-square"
|
|
@@ -3471,7 +3472,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3471
3472
|
{
|
|
3472
3473
|
path: "changepass",
|
|
3473
3474
|
name: "/dashboard/user/changepass",
|
|
3474
|
-
component: () => import("./index-
|
|
3475
|
+
component: () => import("./index-CeZ1Y1LN.js"),
|
|
3475
3476
|
meta: {
|
|
3476
3477
|
title: "Change password",
|
|
3477
3478
|
icon: "lock"
|