@aeria-ui/ui 0.0.94 → 0.0.95
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_-a8ae712c.js → _id_-e62f8939.js} +1 -1
- package/dist/{activation-6cf8f626.js → activation-21234686.js} +1 -1
- package/dist/{index-1e076d31.js → index-1395aded.js} +1 -1
- package/dist/{index-7832f3b8.js → index-c6c46429.js} +1 -1
- package/dist/{index-45a3b598.js → index-d838adbc.js} +1 -1
- package/dist/{index-a0c7fa8e.js → index-fd38f589.js} +192 -188
- package/dist/{signin-e3038c7b.js → signin-cc8074a5.js} +1 -1
- package/dist/{signup-4beb1e83.js → signup-aa8ebb88.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as X, Fragment as x, renderList as G, withDirectives as P, toDisplayString as C, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as
|
|
1
|
+
import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as X, Fragment as x, renderList as G, withDirectives as P, toDisplayString as C, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as H, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as v, resolveDynamicComponent as he, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as wt, onUnmounted as Bt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
|
|
2
2
|
import { t as R, useI18n as Lt } from "@aeria-ui/i18n";
|
|
3
3
|
import { arraysIntersect as gt, deepClone as Ce, getReferenceProperty as me, convertConditionToQuery as zt, freshItem as qt, isRequired as Mt, evaluateCondition as We, deepMerge as qe } from "@aeriajs/common";
|
|
4
|
-
import { useStore as re, getStoreId as Me, useParentStore as
|
|
5
|
-
import { useScrollObserver as Pe, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as
|
|
4
|
+
import { useStore as re, getStoreId as Me, useParentStore as De, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
|
|
5
|
+
import { useScrollObserver as Pe, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as Ht, getObjectKey as Dt, convertToSearchQuery as Qt, useParentCollectionStore as Le, useCollectionStore as Gt, useAction as Wt, convertFromSearchQuery as Kt, usePasswordPolicy as Xt } from "@aeria-ui/core";
|
|
6
6
|
import { useRouter as Ie } from "vue-router";
|
|
7
7
|
const Yt = ["onClick"], Jt = { key: 0 }, Zt = {
|
|
8
8
|
key: 0,
|
|
@@ -104,7 +104,7 @@ const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["hre
|
|
|
104
104
|
active: { type: Boolean }
|
|
105
105
|
},
|
|
106
106
|
setup(c) {
|
|
107
|
-
const r = c, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), t =
|
|
107
|
+
const r = c, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), t = H(() => {
|
|
108
108
|
var o;
|
|
109
109
|
return (o = r.icon) != null && o.includes(":") ? r.icon : `regular:${r.icon}`;
|
|
110
110
|
});
|
|
@@ -252,14 +252,14 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
252
252
|
},
|
|
253
253
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
254
254
|
setup(c, { emit: r }) {
|
|
255
|
-
const l = c, t = r, o =
|
|
255
|
+
const l = c, t = r, o = H(() => l.floating || l.float), u = J(l.collapsed), i = J(null), { reachedEnd: _ } = Pe(i), p = () => {
|
|
256
256
|
t("update:modelValue", !1), t("close");
|
|
257
257
|
}, b = () => {
|
|
258
258
|
t("overlayClick");
|
|
259
259
|
}, d = (a) => {
|
|
260
260
|
t("update:collapsed", a), u.value = a;
|
|
261
261
|
};
|
|
262
|
-
return (a,
|
|
262
|
+
return (a, w) => {
|
|
263
263
|
const f = te("clickable"), $ = te("loading"), T = te("overlay");
|
|
264
264
|
return a.modelValue ? P((n(), s("div", {
|
|
265
265
|
key: 0,
|
|
@@ -282,7 +282,7 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
282
282
|
${a.transparentMobile && "panel__content--transparent-mobile"}
|
|
283
283
|
${a.outerHeader && "panel__content--outer-header"}
|
|
284
284
|
`),
|
|
285
|
-
onClick:
|
|
285
|
+
onClick: w[2] || (w[2] = (V) => V.stopPropagation())
|
|
286
286
|
}, {
|
|
287
287
|
default: v(() => [
|
|
288
288
|
a.$slots.header || a.title ? (n(), s("div", {
|
|
@@ -303,14 +303,14 @@ const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
303
303
|
key: 0,
|
|
304
304
|
reactive: "",
|
|
305
305
|
icon: "plus",
|
|
306
|
-
onClick:
|
|
306
|
+
onClick: w[0] || (w[0] = (V) => d(!u.value))
|
|
307
307
|
}, null, 512)), [
|
|
308
308
|
[f]
|
|
309
309
|
]) : a.collapsible && !u.value ? P((n(), k(Z, {
|
|
310
310
|
key: 1,
|
|
311
311
|
reactive: "",
|
|
312
312
|
icon: "minus",
|
|
313
|
-
onClick:
|
|
313
|
+
onClick: w[1] || (w[1] = (V) => d(!u.value))
|
|
314
314
|
}, null, 512)), [
|
|
315
315
|
[f]
|
|
316
316
|
]) : a.closeHint ? P((n(), k(Z, {
|
|
@@ -387,7 +387,7 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
|
|
|
387
387
|
action: p,
|
|
388
388
|
subject: d
|
|
389
389
|
}), o.value = !1;
|
|
390
|
-
}, _ =
|
|
390
|
+
}, _ = H(() => {
|
|
391
391
|
if (!t.value)
|
|
392
392
|
return {
|
|
393
393
|
x: 0,
|
|
@@ -440,8 +440,8 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
|
|
|
440
440
|
class: "content__section",
|
|
441
441
|
onClick: b[1] || (b[1] = (a) => o.value = !1)
|
|
442
442
|
}, [
|
|
443
|
-
(n(!0), s(x, null, G(Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)), (a,
|
|
444
|
-
key: `slot-${
|
|
443
|
+
(n(!0), s(x, null, G(Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)), (a, w) => (n(), k(ve, {
|
|
444
|
+
key: `slot-${w}`,
|
|
445
445
|
class: "content__item content__item--reactive"
|
|
446
446
|
}, {
|
|
447
447
|
default: v(() => [
|
|
@@ -455,8 +455,8 @@ const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { cla
|
|
|
455
455
|
class: "content__section",
|
|
456
456
|
onClick: b[2] || (b[2] = (a) => o.value = !1)
|
|
457
457
|
}, [
|
|
458
|
-
(n(!0), s(x, null, G(u(p.actions), (a,
|
|
459
|
-
key: `action-${
|
|
458
|
+
(n(!0), s(x, null, G(u(p.actions), (a, w) => (n(), k(ve, {
|
|
459
|
+
key: `action-${w}`,
|
|
460
460
|
class: "content__item content__item--reactive",
|
|
461
461
|
onClick: (f) => i(a, p.subject)
|
|
462
462
|
}, {
|
|
@@ -541,7 +541,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
541
541
|
}, In = {
|
|
542
542
|
key: 1,
|
|
543
543
|
class: "input__hint"
|
|
544
|
-
}, An = ["placeholder", "readonly", "value"],
|
|
544
|
+
}, An = ["placeholder", "readonly", "value"], wn = ["value"], Bn = {
|
|
545
545
|
key: 1,
|
|
546
546
|
class: "input__clipboard"
|
|
547
547
|
}, Sn = /* @__PURE__ */ U({
|
|
@@ -584,11 +584,15 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
584
584
|
"type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (a.min = o.minimum), o.exclusiveMinimum && (a.min = o.exclusiveMinimum + 1), o.maximum && (a.max = o.maximum), o.exclusiveMaximum && (a.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (a.type = !i && o.format === "date-time" ? "datetime-local" : "date"), a.minlength = o.minLength, a.maxlength = o.maxLength)), a.type === "text" && i && (a.type = "search"), Xe(() => {
|
|
585
585
|
l.modelValue !== null && V(l.modelValue);
|
|
586
586
|
});
|
|
587
|
-
const
|
|
587
|
+
const w = (h) => {
|
|
588
588
|
try {
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
589
|
+
let F;
|
|
590
|
+
if (h instanceof Date)
|
|
591
|
+
F = h;
|
|
592
|
+
else if (typeof h == "string")
|
|
593
|
+
F = new Date(h);
|
|
594
|
+
else
|
|
595
|
+
throw new Error();
|
|
592
596
|
switch (a.type) {
|
|
593
597
|
case "date":
|
|
594
598
|
return F.toISOString().slice(0, 10);
|
|
@@ -610,7 +614,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
610
614
|
switch (a.type) {
|
|
611
615
|
case "date":
|
|
612
616
|
case "datetime-local":
|
|
613
|
-
return
|
|
617
|
+
return w(h);
|
|
614
618
|
}
|
|
615
619
|
switch (h) {
|
|
616
620
|
case null:
|
|
@@ -695,7 +699,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
695
699
|
`,
|
|
696
700
|
onInput: Y,
|
|
697
701
|
onChange: F[0] || (F[0] = (g) => t("change", g))
|
|
698
|
-
}), null, 16,
|
|
702
|
+
}), null, 16, wn), [
|
|
699
703
|
[le, e(o).focus]
|
|
700
704
|
]),
|
|
701
705
|
e(u) ? (n(), k(Z, {
|
|
@@ -706,7 +710,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
706
710
|
input__icon--${e(d)}
|
|
707
711
|
`)
|
|
708
712
|
}, null, 8, ["icon", "class"])) : y("", !0),
|
|
709
|
-
e(p) ? (n(), s("div",
|
|
713
|
+
e(p) ? (n(), s("div", Bn, [
|
|
710
714
|
z(Vn, null, {
|
|
711
715
|
text: v(() => [
|
|
712
716
|
Q("Copiar")
|
|
@@ -728,7 +732,7 @@ const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { cla
|
|
|
728
732
|
};
|
|
729
733
|
}
|
|
730
734
|
});
|
|
731
|
-
const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-
|
|
735
|
+
const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-f57af0a6"]]), Tn = {
|
|
732
736
|
key: 1,
|
|
733
737
|
value: ""
|
|
734
738
|
}, jn = ["value", "data-selected"], Rn = /* @__PURE__ */ U({
|
|
@@ -750,7 +754,7 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-12b13e76"]]), Tn = {
|
|
|
750
754
|
l.booleanRef && (_.value = d), t("update:modelValue", (d == null ? void 0 : d._id) || d), t("change", (d == null ? void 0 : d._id) || d);
|
|
751
755
|
}, _ = l.booleanRef ? (() => {
|
|
752
756
|
const d = J(l.modelValue);
|
|
753
|
-
return
|
|
757
|
+
return H({
|
|
754
758
|
get: () => {
|
|
755
759
|
switch (d.value) {
|
|
756
760
|
case "true":
|
|
@@ -761,20 +765,20 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-12b13e76"]]), Tn = {
|
|
|
761
765
|
return null;
|
|
762
766
|
}
|
|
763
767
|
},
|
|
764
|
-
set: (
|
|
765
|
-
d.value =
|
|
768
|
+
set: (w) => {
|
|
769
|
+
d.value = w;
|
|
766
770
|
}
|
|
767
771
|
});
|
|
768
|
-
})() :
|
|
772
|
+
})() : H({
|
|
769
773
|
get: () => l.modelValue,
|
|
770
774
|
set: i
|
|
771
|
-
}), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b =
|
|
775
|
+
}), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b = H(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
|
|
772
776
|
return l.multiple && ue(() => l.modelValue, (d) => {
|
|
773
|
-
var
|
|
777
|
+
var w;
|
|
774
778
|
if (!o.value)
|
|
775
779
|
return;
|
|
776
780
|
const a = o.value.querySelector('option[data-selected="true"]');
|
|
777
|
-
a && a.removeAttribute("data-selected"), (
|
|
781
|
+
a && a.removeAttribute("data-selected"), (w = o.value.querySelector(`option[value="${d}"]`)) == null || w.setAttribute("data-selected", "true");
|
|
778
782
|
}), (d, a) => d.readOnly ? (n(), k(ke, {
|
|
779
783
|
key: 1,
|
|
780
784
|
"read-only": "",
|
|
@@ -790,20 +794,20 @@ const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-12b13e76"]]), Tn = {
|
|
|
790
794
|
"select--multiple": !!b.value,
|
|
791
795
|
"select--outline": !d.noOutline
|
|
792
796
|
},
|
|
793
|
-
onChange: a[0] || (a[0] = (
|
|
797
|
+
onChange: a[0] || (a[0] = (w) => i(w.target.value))
|
|
794
798
|
}), [
|
|
795
799
|
e(u) && e(u).icon ? (n(), k(Z, {
|
|
796
800
|
key: 0,
|
|
797
801
|
icon: e(u).icon
|
|
798
802
|
}, null, 8, ["icon"])) : y("", !0),
|
|
799
803
|
l.multiple ? y("", !0) : (n(), s("option", Tn, C(e(R)("none")), 1)),
|
|
800
|
-
(n(!0), s(x, null, G(e(u) && "enum" in e(u) ? e(u).enum : [], (
|
|
804
|
+
(n(!0), s(x, null, G(e(u) && "enum" in e(u) ? e(u).enum : [], (w) => {
|
|
801
805
|
var f;
|
|
802
806
|
return n(), s("option", {
|
|
803
|
-
key:
|
|
804
|
-
value:
|
|
805
|
-
"data-selected": p(
|
|
806
|
-
}, C((f = e(u)) != null && f.translate ? e(R)(
|
|
807
|
+
key: w,
|
|
808
|
+
value: w,
|
|
809
|
+
"data-selected": p(w)
|
|
810
|
+
}, C((f = e(u)) != null && f.translate ? e(R)(w) : w), 9, jn);
|
|
807
811
|
}), 128)),
|
|
808
812
|
O(d.$slots, "default", {}, void 0, !0)
|
|
809
813
|
], 16));
|
|
@@ -820,17 +824,17 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
|
|
|
820
824
|
},
|
|
821
825
|
emits: ["paginate"],
|
|
822
826
|
setup(c, { emit: r }) {
|
|
823
|
-
const l = c, t = r, o =
|
|
827
|
+
const l = c, t = r, o = H({
|
|
824
828
|
get: () => Math.floor(l.pagination.offset / l.pagination.limit),
|
|
825
829
|
set: (b) => {
|
|
826
830
|
l.pagination.offset = b * l.pagination.limit;
|
|
827
831
|
}
|
|
828
|
-
}), u =
|
|
832
|
+
}), u = H({
|
|
829
833
|
get: () => l.pagination.limit,
|
|
830
834
|
set: (b) => {
|
|
831
835
|
l.pagination.limit = Number(b);
|
|
832
836
|
}
|
|
833
|
-
}), i = J(o.value ? o.value + 1 : 1), _ =
|
|
837
|
+
}), i = J(o.value ? o.value + 1 : 1), _ = H(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (b) => {
|
|
834
838
|
o.value = b === "previous" ? o.value - 1 : o.value + 1;
|
|
835
839
|
};
|
|
836
840
|
return ue([
|
|
@@ -917,7 +921,7 @@ const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { cla
|
|
|
917
921
|
]));
|
|
918
922
|
}
|
|
919
923
|
});
|
|
920
|
-
const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { class: "checkbox__text" },
|
|
924
|
+
const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { class: "checkbox__text" }, Hn = ["innerHTML"], Dn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
|
|
921
925
|
inheritAttrs: !1
|
|
922
926
|
}, Wn = /* @__PURE__ */ U({
|
|
923
927
|
...Gn,
|
|
@@ -942,7 +946,7 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
|
|
|
942
946
|
return "checkbox";
|
|
943
947
|
}
|
|
944
948
|
return "radio";
|
|
945
|
-
})(), i = r, _ = l.value || !1, p =
|
|
949
|
+
})(), i = r, _ = l.value || !1, p = H({
|
|
946
950
|
get: () => {
|
|
947
951
|
var d;
|
|
948
952
|
if (t) {
|
|
@@ -978,7 +982,7 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
|
|
|
978
982
|
};
|
|
979
983
|
return (d, a) => {
|
|
980
984
|
var f, $;
|
|
981
|
-
const
|
|
985
|
+
const w = te("clickable");
|
|
982
986
|
return P((n(), s("label", {
|
|
983
987
|
class: X(`
|
|
984
988
|
checkbox
|
|
@@ -1002,9 +1006,9 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
|
|
|
1002
1006
|
d.$slots.description ? O(d.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (n(), s("div", {
|
|
1003
1007
|
key: 1,
|
|
1004
1008
|
innerHTML: (f = e(t)) != null && f.translate ? e(R)(e(_)) : e(_)
|
|
1005
|
-
}, null, 8,
|
|
1009
|
+
}, null, 8, Hn)) : O(d.$slots, "default", { key: 2 }, void 0, !0)
|
|
1006
1010
|
]),
|
|
1007
|
-
A("div",
|
|
1011
|
+
A("div", Dn, [
|
|
1008
1012
|
d.$slots.hint ? O(d.$slots, "hint", { key: 0 }, void 0, !0) : ($ = e(t)) != null && $.hint ? (n(), s("div", {
|
|
1009
1013
|
key: 1,
|
|
1010
1014
|
innerHTML: e(t).hint
|
|
@@ -1012,7 +1016,7 @@ const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { cla
|
|
|
1012
1016
|
])
|
|
1013
1017
|
])
|
|
1014
1018
|
], 2)), [
|
|
1015
|
-
[
|
|
1019
|
+
[w]
|
|
1016
1020
|
]);
|
|
1017
1021
|
};
|
|
1018
1022
|
}
|
|
@@ -1149,7 +1153,7 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1149
1153
|
meta: {}
|
|
1150
1154
|
},
|
|
1151
1155
|
setup(c) {
|
|
1152
|
-
const r = c, l =
|
|
1156
|
+
const r = c, l = H(() => r.fileId ? `${kt}/file/${r.fileId}/picture` : r.url || r.modelValue), t = J(!1);
|
|
1153
1157
|
return (o, u) => {
|
|
1154
1158
|
var _;
|
|
1155
1159
|
const i = te("overlay");
|
|
@@ -1214,7 +1218,7 @@ const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1214
1218
|
};
|
|
1215
1219
|
}
|
|
1216
1220
|
});
|
|
1217
|
-
const
|
|
1221
|
+
const He = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
|
|
1218
1222
|
key: 1,
|
|
1219
1223
|
class: "file__actions"
|
|
1220
1224
|
}, ho = ["accept"], bo = {
|
|
@@ -1238,10 +1242,10 @@ const De = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
|
|
|
1238
1242
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1239
1243
|
setup(c, { emit: r }) {
|
|
1240
1244
|
var f;
|
|
1241
|
-
const l = c, t = r, u = Me() ?
|
|
1245
|
+
const l = c, t = r, u = Me() ? De() : null, i = J(((f = l.modelValue) == null ? void 0 : f.file) || null), _ = H(() => {
|
|
1242
1246
|
var $;
|
|
1243
1247
|
return i.value ? URL.createObjectURL(i.value) : ($ = l.modelValue) == null ? void 0 : $.link;
|
|
1244
|
-
}), p =
|
|
1248
|
+
}), p = H(() => {
|
|
1245
1249
|
var $, T, V;
|
|
1246
1250
|
return /^image\//.test(($ = l.modelValue) == null ? void 0 : $.type) && !((T = i.value) != null && T.type) || /^image\//.test((V = i.value) == null ? void 0 : V.type);
|
|
1247
1251
|
}), b = ($) => new Promise((T) => {
|
|
@@ -1271,14 +1275,14 @@ const De = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
|
|
|
1271
1275
|
} else
|
|
1272
1276
|
t("update:modelValue", T);
|
|
1273
1277
|
t("update:content", V), t("change", V);
|
|
1274
|
-
},
|
|
1278
|
+
}, w = async () => {
|
|
1275
1279
|
t("update:modelValue", null);
|
|
1276
1280
|
};
|
|
1277
1281
|
return ($, T) => {
|
|
1278
1282
|
var V, Y, ee, h, F, le;
|
|
1279
1283
|
return n(), s("div", mo, [
|
|
1280
1284
|
i.value || (V = $.modelValue) != null && V._id ? (n(), s("div", fo, [
|
|
1281
|
-
p.value ? (n(), k(
|
|
1285
|
+
p.value ? (n(), k(He, {
|
|
1282
1286
|
key: 0,
|
|
1283
1287
|
modelValue: _.value,
|
|
1284
1288
|
"onUpdate:modelValue": T[0] || (T[0] = (S) => _.value = S),
|
|
@@ -1314,7 +1318,7 @@ const De = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { cla
|
|
|
1314
1318
|
])) : (le = $.modelValue) != null && le._id ? (n(), s("div", $o, [
|
|
1315
1319
|
z(ie, {
|
|
1316
1320
|
small: "",
|
|
1317
|
-
onClick: ze(
|
|
1321
|
+
onClick: ze(w, ["prevent"])
|
|
1318
1322
|
}, {
|
|
1319
1323
|
default: v(() => [
|
|
1320
1324
|
Q(C(e(R)("action.remove", { capitalize: !0 })), 1)
|
|
@@ -1368,13 +1372,13 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
|
|
|
1368
1372
|
},
|
|
1369
1373
|
emits: ["update:modelValue", "change"],
|
|
1370
1374
|
setup(c, { emit: r }) {
|
|
1371
|
-
const l = Ie(), t = c, o = r, u = t.property, i = me(u), _ =
|
|
1375
|
+
const l = Ie(), t = c, o = r, u = t.property, i = me(u), _ = De(), p = H(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: w }) => t.item._id === w) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
|
|
1372
1376
|
if (p.value)
|
|
1373
1377
|
return;
|
|
1374
|
-
const
|
|
1378
|
+
const w = ($) => $.filter((T) => !!(T != null && T._id)), f = "items" in u ? w(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
|
|
1375
1379
|
Array.isArray(f) ? o("update:modelValue", f.concat([t.item])) : o("update:modelValue", t.item), o("change", t.item);
|
|
1376
|
-
}, d = async (
|
|
1377
|
-
if (i.purge && (
|
|
1380
|
+
}, d = async (w) => {
|
|
1381
|
+
if (i.purge && (w != null && w.purge)) {
|
|
1378
1382
|
const { _id: $ } = t.item;
|
|
1379
1383
|
await _.$actions.remove({
|
|
1380
1384
|
filters: {
|
|
@@ -1396,7 +1400,7 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
|
|
|
1396
1400
|
}
|
|
1397
1401
|
return p.value ? d() : b();
|
|
1398
1402
|
};
|
|
1399
|
-
return (
|
|
1403
|
+
return (w, f) => {
|
|
1400
1404
|
const $ = te("clickable");
|
|
1401
1405
|
return P((n(), s("div", {
|
|
1402
1406
|
class: X({
|
|
@@ -1405,14 +1409,14 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
|
|
|
1405
1409
|
}),
|
|
1406
1410
|
onClick: a
|
|
1407
1411
|
}, [
|
|
1408
|
-
O(
|
|
1412
|
+
O(w.$slots, "default", {}, void 0, !0),
|
|
1409
1413
|
A("div", Io, [
|
|
1410
|
-
(n(!0), s(x, null, G(
|
|
1411
|
-
key: `index-${
|
|
1414
|
+
(n(!0), s(x, null, G(w.indexes, (T, V) => (n(), s("div", {
|
|
1415
|
+
key: `index-${w.item._id}-${V}`,
|
|
1412
1416
|
class: "item__value"
|
|
1413
|
-
}, C(
|
|
1417
|
+
}, C(w.item[T]), 1))), 128))
|
|
1414
1418
|
]),
|
|
1415
|
-
|
|
1419
|
+
w.readOnly ? (n(), k(Z, {
|
|
1416
1420
|
key: 0,
|
|
1417
1421
|
icon: "arrow-square-out",
|
|
1418
1422
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
@@ -1423,7 +1427,7 @@ const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { cla
|
|
|
1423
1427
|
};
|
|
1424
1428
|
}
|
|
1425
1429
|
});
|
|
1426
|
-
const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]),
|
|
1430
|
+
const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), wo = { class: "search__panel" }, Bo = { key: 1 }, So = { key: 0 }, To = { key: 1 }, jo = { class: "search__summary" }, Ro = {
|
|
1427
1431
|
key: 1,
|
|
1428
1432
|
class: "search"
|
|
1429
1433
|
}, Lo = { key: 0 }, Ee = 10, zo = /* @__PURE__ */ U({
|
|
@@ -1440,20 +1444,20 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
|
|
|
1440
1444
|
},
|
|
1441
1445
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1442
1446
|
setup(c, { emit: r }) {
|
|
1443
|
-
const l = c, t = me(l.property), o = l.panel !== void 0 ?
|
|
1447
|
+
const l = c, t = me(l.property), o = l.panel !== void 0 ? H(() => l.panel) : J(!1), u = r, i = re(me(l.property).$ref), _ = Me(), p = _ ? De() : null, b = t.indexes;
|
|
1444
1448
|
ye(Fe, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
|
|
1445
1449
|
const d = J(l.modelValue), a = J({
|
|
1446
1450
|
data: [],
|
|
1447
1451
|
pagination: {}
|
|
1448
|
-
}),
|
|
1452
|
+
}), w = H(() => a.value.data), f = H(() => a.value.pagination), $ = J(0), T = J(!1), V = J(""), Y = () => {
|
|
1449
1453
|
const M = {};
|
|
1450
1454
|
if (_) {
|
|
1451
|
-
const
|
|
1452
|
-
M[
|
|
1455
|
+
const D = e(_);
|
|
1456
|
+
M[D] = p;
|
|
1453
1457
|
}
|
|
1454
1458
|
return t.constraints ? zt(t.constraints, M) : {};
|
|
1455
1459
|
}, ee = () => {
|
|
1456
|
-
|
|
1460
|
+
w.value.length < f.value.recordsTotal && ($.value += 1, F());
|
|
1457
1461
|
}, h = async () => V.value.length === 0 ? i.$actions.custom("getAll", {
|
|
1458
1462
|
limit: Ee,
|
|
1459
1463
|
offset: $.value * Ee,
|
|
@@ -1471,7 +1475,7 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
|
|
|
1471
1475
|
}), F = async () => {
|
|
1472
1476
|
if (i.loading.getAll)
|
|
1473
1477
|
return;
|
|
1474
|
-
const { error: M, result:
|
|
1478
|
+
const { error: M, result: D } = await h();
|
|
1475
1479
|
if (M) {
|
|
1476
1480
|
re("meta").$actions.spawnToast({
|
|
1477
1481
|
text: "Request failed",
|
|
@@ -1479,7 +1483,7 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
|
|
|
1479
1483
|
});
|
|
1480
1484
|
return;
|
|
1481
1485
|
}
|
|
1482
|
-
a.value.pagination =
|
|
1486
|
+
a.value.pagination = D.pagination, $.value === 0 && a.value.data.splice(0), a.value.data.push(...D.data);
|
|
1483
1487
|
}, [le] = Vt({
|
|
1484
1488
|
delay: 800
|
|
1485
1489
|
})(() => {
|
|
@@ -1491,8 +1495,8 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
|
|
|
1491
1495
|
}, j = () => {
|
|
1492
1496
|
$.value = 0, a.value.data.splice(0), "effect" in o ? u("update:panel", !1) : o.value = !1;
|
|
1493
1497
|
};
|
|
1494
|
-
ue(() => V.value.length, (M,
|
|
1495
|
-
M && !
|
|
1498
|
+
ue(() => V.value.length, (M, D) => {
|
|
1499
|
+
M && !D && F();
|
|
1496
1500
|
}), Xe(() => {
|
|
1497
1501
|
l.selectOnly && F();
|
|
1498
1502
|
});
|
|
@@ -1501,7 +1505,7 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
|
|
|
1501
1505
|
}, oe = () => {
|
|
1502
1506
|
j(), u("update:modelValue", d.value);
|
|
1503
1507
|
};
|
|
1504
|
-
return (M,
|
|
1508
|
+
return (M, D) => {
|
|
1505
1509
|
const se = te("clickable");
|
|
1506
1510
|
return n(), s("div", null, [
|
|
1507
1511
|
e(o) ? (n(), k(Ke, {
|
|
@@ -1532,10 +1536,10 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
|
|
|
1532
1536
|
default: v(() => {
|
|
1533
1537
|
var ae, m;
|
|
1534
1538
|
return [
|
|
1535
|
-
A("div",
|
|
1539
|
+
A("div", wo, [
|
|
1536
1540
|
z(ke, E({
|
|
1537
1541
|
modelValue: V.value,
|
|
1538
|
-
"onUpdate:modelValue":
|
|
1542
|
+
"onUpdate:modelValue": D[0] || (D[0] = (L) => V.value = L)
|
|
1539
1543
|
}, {
|
|
1540
1544
|
property: {
|
|
1541
1545
|
type: "string",
|
|
@@ -1543,28 +1547,28 @@ const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { cla
|
|
|
1543
1547
|
inputType: "search"
|
|
1544
1548
|
}
|
|
1545
1549
|
}, { onInput: S }), null, 16, ["modelValue"]),
|
|
1546
|
-
|
|
1550
|
+
w.value.length ? (n(), k(ft, {
|
|
1547
1551
|
key: 0,
|
|
1548
1552
|
"observe-scroll": "",
|
|
1549
1553
|
onEndReached: ee
|
|
1550
1554
|
}, {
|
|
1551
1555
|
default: v(() => [
|
|
1552
|
-
(n(!0), s(x, null, G(
|
|
1556
|
+
(n(!0), s(x, null, G(w.value, (L) => (n(), k(Ge, E({ ref_for: !0 }, {
|
|
1553
1557
|
item: L,
|
|
1554
1558
|
indexes: e(b),
|
|
1555
1559
|
property: M.property
|
|
1556
1560
|
}, {
|
|
1557
1561
|
key: `matching-${L._id}`,
|
|
1558
1562
|
modelValue: d.value,
|
|
1559
|
-
"onUpdate:modelValue":
|
|
1563
|
+
"onUpdate:modelValue": D[1] || (D[1] = (K) => d.value = K)
|
|
1560
1564
|
}), null, 16, ["modelValue"]))), 128))
|
|
1561
1565
|
]),
|
|
1562
1566
|
_: 1
|
|
1563
|
-
})) : (n(), s("div",
|
|
1567
|
+
})) : (n(), s("div", Bo, [
|
|
1564
1568
|
T.value ? (n(), s("div", So, C(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(i).loading.getAll && Object.values(V.value).filter((L) => !!L).length > 0 && !("items" in M.property && ((ae = M.modelValue) != null && ae.length) || !Array.isArray(M.modelValue) && ((m = M.modelValue) != null && m._id)) ? (n(), s("div", To, C(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
|
|
1565
1569
|
]))
|
|
1566
1570
|
]),
|
|
1567
|
-
A("div", jo, C(e(R)("showing", { capitalize: !0 })) + " " + C(
|
|
1571
|
+
A("div", jo, C(e(R)("showing", { capitalize: !0 })) + " " + C(w.value.length) + " " + C(e(R)("of")) + " " + C(f.value.recordsTotal), 1)
|
|
1568
1572
|
];
|
|
1569
1573
|
}),
|
|
1570
1574
|
_: 1
|
|
@@ -1659,7 +1663,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1659
1663
|
}, Uo = {
|
|
1660
1664
|
key: 0,
|
|
1661
1665
|
class: "form__header"
|
|
1662
|
-
}, Eo = { class: "form__fieldset" },
|
|
1666
|
+
}, Eo = { class: "form__fieldset" }, Ho = { key: 0 }, Do = ["innerHTML"], Qo = ["onInput"], Go = { key: 4 }, Wo = { value: "true" }, Ko = { value: "false" }, Xo = {
|
|
1663
1667
|
key: 5,
|
|
1664
1668
|
style: { display: "grid", "row-gap": ".4rem" }
|
|
1665
1669
|
}, Yo = { key: 0 }, Jo = { class: "form__array" }, Zo = { style: { "flex-grow": "1" } }, Po = {
|
|
@@ -1704,7 +1708,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1704
1708
|
const u = t.property && me(t.property), i = u ? u.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = i ? re(e(i)) : null;
|
|
1705
1709
|
!i && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1706
1710
|
collection prop, some features may not work as intended`);
|
|
1707
|
-
const b = J(!1), d =
|
|
1711
|
+
const b = J(!1), d = H(() => {
|
|
1708
1712
|
const m = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 : p == null ? void 0 : p.properties : t.form)();
|
|
1709
1713
|
if (!m)
|
|
1710
1714
|
return;
|
|
@@ -1722,54 +1726,54 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1722
1726
|
m.created_at || (L.created_at = K), m.created_at || (L.updated_at = K);
|
|
1723
1727
|
}
|
|
1724
1728
|
return Object.assign(L, m), L;
|
|
1725
|
-
}), a =
|
|
1729
|
+
}), a = H(() => t.layout || (p == null ? void 0 : p.description.formLayout)), w = (m) => {
|
|
1726
1730
|
const L = _e(m, t[m]);
|
|
1727
1731
|
return t[m] && ye(m, t[m]), L;
|
|
1728
|
-
}, f =
|
|
1732
|
+
}, f = H(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = w("formComponents") || {}, T = w("propertyComponents") || {}, V = w("omitFormHeader"), Y = w("omitInputLabels"), ee = w("innerInputLabel");
|
|
1729
1733
|
i && ye(Fe, i), ye("searchOnly", t.searchOnly);
|
|
1730
1734
|
const h = (m) => d.value ? Object.entries(d.value).filter(([L, K]) => !K.noForm && m([
|
|
1731
1735
|
L,
|
|
1732
1736
|
K
|
|
1733
1737
|
])) : null, F = (m, L) => {
|
|
1734
|
-
var
|
|
1738
|
+
var B;
|
|
1735
1739
|
if (t.searchOnly || !i || t.includeId && m === "_id" || t.includeTimestamps && L.isTimestamp)
|
|
1736
1740
|
return !0;
|
|
1737
|
-
const K = t.property && "properties" in t.property ? t.property.form : (
|
|
1741
|
+
const K = t.property && "properties" in t.property ? t.property.form : (B = p == null ? void 0 : p.description) == null ? void 0 : B.form;
|
|
1738
1742
|
return !K || K.includes(m);
|
|
1739
1743
|
}, le = h(([m, L]) => F(m, L)), S = Ue(), g = {}, j = (m, L) => {
|
|
1740
|
-
var q, fe,
|
|
1741
|
-
const K = [],
|
|
1744
|
+
var q, fe, we, Be;
|
|
1745
|
+
const K = [], B = ((fe = (q = a.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((Be = (we = a.value) == null ? void 0 : we.fields) == null ? void 0 : Be.$default);
|
|
1742
1746
|
if (!L)
|
|
1743
1747
|
return;
|
|
1744
|
-
if (
|
|
1748
|
+
if (B != null && B.if && !t.searchOnly) {
|
|
1745
1749
|
const Se = We(
|
|
1746
1750
|
t.modelValue,
|
|
1747
|
-
|
|
1751
|
+
B.if
|
|
1748
1752
|
);
|
|
1749
1753
|
Se.satisfied || (g[m] && (p ? t.modelValue[m] = typeof p.$freshItem[m] == "object" ? Ce(p.$freshItem[m]) : p.$freshItem[m] : t.modelValue[m] = [
|
|
1750
1754
|
void 0,
|
|
1751
1755
|
null
|
|
1752
1756
|
].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), K.push("display: none;")), g[m] = Se.satisfied;
|
|
1753
1757
|
}
|
|
1754
|
-
const I = S.value.md && (
|
|
1758
|
+
const I = S.value.md && (B == null ? void 0 : B.span) || 6;
|
|
1755
1759
|
return K.push(`
|
|
1756
1760
|
--field-span: ${I};
|
|
1757
1761
|
grid-column: span var(--field-span) / span var(--field-span);
|
|
1758
|
-
`),
|
|
1759
|
-
--vertical-spacing: ${
|
|
1762
|
+
`), B && (B.verticalSpacing && K.push(`
|
|
1763
|
+
--vertical-spacing: ${B.verticalSpacing};
|
|
1760
1764
|
padding: var(--vertical-spacing) 0;
|
|
1761
|
-
`),
|
|
1765
|
+
`), B.separator && K.push(`
|
|
1762
1766
|
border-top: 1px solid var(--theme-border-color);
|
|
1763
1767
|
border-width: 1px 0 1px 0;
|
|
1764
1768
|
padding: 1rem 0;
|
|
1765
1769
|
margin: 1rem 0;
|
|
1766
1770
|
`)), K.join("");
|
|
1767
|
-
}, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe =
|
|
1771
|
+
}, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe = H(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : p == null ? void 0 : p.description.required), M = H(() => t.form ? Ht(
|
|
1768
1772
|
t.modelValue,
|
|
1769
1773
|
t.form,
|
|
1770
1774
|
oe.value,
|
|
1771
1775
|
p == null ? void 0 : p.description
|
|
1772
|
-
) : !0),
|
|
1776
|
+
) : !0), D = (m, L) => {
|
|
1773
1777
|
var K;
|
|
1774
1778
|
return (K = f.value) != null && K[m] && (typeof f.value[m].index != "number" || f.value[m].index === L) ? f.value[m].errors : null;
|
|
1775
1779
|
}, se = (m) => {
|
|
@@ -1777,7 +1781,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1777
1781
|
return b.value = !0, !0;
|
|
1778
1782
|
};
|
|
1779
1783
|
return (m, L) => {
|
|
1780
|
-
const K = te("clickable"),
|
|
1784
|
+
const K = te("clickable"), B = te("focus");
|
|
1781
1785
|
return n(), s("form", {
|
|
1782
1786
|
class: "form",
|
|
1783
1787
|
style: be(`row-gap: ${e(V) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
@@ -1788,13 +1792,13 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1788
1792
|
O(m.$slots, "default", {}, void 0, !0),
|
|
1789
1793
|
A("fieldset", Eo, [
|
|
1790
1794
|
(n(!0), s(x, null, G(e(le), ([I, q]) => {
|
|
1791
|
-
var fe,
|
|
1795
|
+
var fe, we, Be, Se, xe, et, tt, nt, ot, at, lt, st, it;
|
|
1792
1796
|
return n(), s("div", {
|
|
1793
1797
|
key: `field-${I}`,
|
|
1794
1798
|
style: be(j(I, q)),
|
|
1795
1799
|
class: "form__field"
|
|
1796
1800
|
}, [
|
|
1797
|
-
(!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), s("label",
|
|
1801
|
+
(!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), s("label", Ho, [
|
|
1798
1802
|
A("div", {
|
|
1799
1803
|
class: X({
|
|
1800
1804
|
"form__field-label": !0,
|
|
@@ -1805,7 +1809,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1805
1809
|
q.hint ? (n(), s("div", {
|
|
1806
1810
|
key: 0,
|
|
1807
1811
|
innerHTML: q.hint
|
|
1808
|
-
}, null, 8,
|
|
1812
|
+
}, null, 8, Do)) : y("", !0)
|
|
1809
1813
|
])) : y("", !0),
|
|
1810
1814
|
m.$slots[`field-${I}`] ? O(m.$slots, `field-${I}`, E({
|
|
1811
1815
|
key: 1,
|
|
@@ -1815,7 +1819,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1815
1819
|
property: q,
|
|
1816
1820
|
propertyName: I,
|
|
1817
1821
|
modelValue: m.modelValue
|
|
1818
|
-
}), void 0, !0) : (
|
|
1822
|
+
}), void 0, !0) : (Be = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Be.component && e(T)[m.layout.fields[I].component.name] ? (n(), k(he(e(T)[m.layout.fields[I].component.name]), E({
|
|
1819
1823
|
key: 2,
|
|
1820
1824
|
modelValue: m.modelValue[I],
|
|
1821
1825
|
"onUpdate:modelValue": (N) => m.modelValue[I] = N,
|
|
@@ -1889,7 +1893,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1889
1893
|
(n(!0), s(x, null, G(m.modelValue[I], (N, Te) => {
|
|
1890
1894
|
var rt, ut, ct, dt, pt, _t;
|
|
1891
1895
|
return n(), s("div", {
|
|
1892
|
-
key: `rep-${I}-${e(
|
|
1896
|
+
key: `rep-${I}-${e(Dt)(N, Te)}`,
|
|
1893
1897
|
class: "form__array-item"
|
|
1894
1898
|
}, [
|
|
1895
1899
|
A("div", Zo, [
|
|
@@ -1904,7 +1908,7 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1904
1908
|
parentCollection: e(i),
|
|
1905
1909
|
parentPropertyName: m.parentPropertyName,
|
|
1906
1910
|
columns: ((ct = (ut = (rt = m.layout) == null ? void 0 : rt.fields) == null ? void 0 : ut[I]) == null ? void 0 : ct.optionsColumns) || ((_t = (pt = (dt = m.layout) == null ? void 0 : dt.fields) == null ? void 0 : pt.$default) == null ? void 0 : _t.optionsColumns),
|
|
1907
|
-
validationErrors:
|
|
1911
|
+
validationErrors: D(I, Te),
|
|
1908
1912
|
...q.componentProps || {}
|
|
1909
1913
|
}, {
|
|
1910
1914
|
onInput: (je) => o("input", I),
|
|
@@ -1935,13 +1939,13 @@ const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1935
1939
|
parentCollection: e(i),
|
|
1936
1940
|
columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[I]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
|
|
1937
1941
|
...q.componentProps || {},
|
|
1938
|
-
validationErrors:
|
|
1942
|
+
validationErrors: D(I)
|
|
1939
1943
|
}, {
|
|
1940
1944
|
onInput: (N) => o("input", I),
|
|
1941
1945
|
onChange: L[4] || (L[4] = (N) => o("change", N)),
|
|
1942
1946
|
onClipboardCopy: L[5] || (L[5] = (N) => o("clipboardCopy", N))
|
|
1943
1947
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1944
|
-
[
|
|
1948
|
+
[B, se(q)]
|
|
1945
1949
|
]) : y("", !0),
|
|
1946
1950
|
(it = f.value) != null && it[I] ? (n(), s("div", Po, [
|
|
1947
1951
|
f.value[I].type ? (n(), s("span", No, C(e(R)(`validation_error.${f.value[I].type}`)), 1)) : y("", !0),
|
|
@@ -1964,7 +1968,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
1964
1968
|
__name: "aeria-filter-panel",
|
|
1965
1969
|
emits: ["update:modelValue"],
|
|
1966
1970
|
setup(c, { emit: r }) {
|
|
1967
|
-
const l = r, t =
|
|
1971
|
+
const l = r, t = De(), o = Ie(), u = e(_e(Fe)), i = () => {
|
|
1968
1972
|
t.pagination.offset = 0, t.$actions.filter(), l("update:modelValue", !1);
|
|
1969
1973
|
const _ = Object.assign({
|
|
1970
1974
|
query: {}
|
|
@@ -2043,7 +2047,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2043
2047
|
Xe(() => {
|
|
2044
2048
|
l.modelValue && i.$actions.setItem(l.modelValue);
|
|
2045
2049
|
});
|
|
2046
|
-
const p =
|
|
2050
|
+
const p = H(() => l.form ? i.$actions.useProperties(l.form) : i.description.form ? i.$actions.useProperties(i.description.form) : i.properties), b = async () => {
|
|
2047
2051
|
const { error: f, result: $ } = await i.$actions.deepInsert();
|
|
2048
2052
|
f || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), i.$actions.clearItem());
|
|
2049
2053
|
}, { t: d } = Lt(), a = () => {
|
|
@@ -2053,7 +2057,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2053
2057
|
},
|
|
2054
2058
|
body: d("prompt.close_panel")
|
|
2055
2059
|
});
|
|
2056
|
-
},
|
|
2060
|
+
}, w = () => o.$actions.spawnToast({
|
|
2057
2061
|
icon: "info",
|
|
2058
2062
|
text: d("copied_to_clipboard")
|
|
2059
2063
|
});
|
|
@@ -2102,7 +2106,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2102
2106
|
layout: e(i).description.formLayout || {}
|
|
2103
2107
|
}, {
|
|
2104
2108
|
focus: "",
|
|
2105
|
-
onClipboardCopy:
|
|
2109
|
+
onClipboardCopy: w,
|
|
2106
2110
|
onAdd: $[1] || ($[1] = (V) => V.preventDefault())
|
|
2107
2111
|
}), ce({ _: 2 }, [
|
|
2108
2112
|
G(Object.keys(f.$slots).filter((V) => V.startsWith("field-")), (V) => ({
|
|
@@ -2192,7 +2196,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2192
2196
|
}, ha = {
|
|
2193
2197
|
key: 1,
|
|
2194
2198
|
class: "table__cell-container"
|
|
2195
|
-
}, ba = { class: "table__cell-grid" }, $a = { key: 0 }, ga = { key: 1 }, ka = { key: 0 }, Va = ["href"], Ca = { key: 3 }, Oa = { key: 1 }, Ia = { key: 2 }, Aa = { key: 0 },
|
|
2199
|
+
}, ba = { class: "table__cell-grid" }, $a = { key: 0 }, ga = { key: 1 }, ka = { key: 0 }, Va = ["href"], Ca = { key: 3 }, Oa = { key: 1 }, Ia = { key: 2 }, Aa = { key: 0 }, wa = { key: 1 }, Ba = { key: 2 }, Sa = {
|
|
2196
2200
|
key: 1,
|
|
2197
2201
|
class: "no-print"
|
|
2198
2202
|
}, Ta = { class: "table__cell-actions" }, ja = {
|
|
@@ -2210,10 +2214,10 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2210
2214
|
},
|
|
2211
2215
|
emits: ["itemClick"],
|
|
2212
2216
|
setup(c, { emit: r }) {
|
|
2213
|
-
const l = c, t = r, o = Ue(), u = l.collection || Me(), i = u ? re(typeof u == "string" ? u : u.value) : null, _ =
|
|
2217
|
+
const l = c, t = r, o = Ue(), u = l.collection || Me(), i = u ? re(typeof u == "string" ? u : u.value) : null, _ = H({
|
|
2214
2218
|
get: () => i == null ? void 0 : i.selected,
|
|
2215
2219
|
set: (f) => i == null ? void 0 : i.$actions.selectManyItems(f, !0)
|
|
2216
|
-
}), p =
|
|
2220
|
+
}), p = H(() => l.columns ? Object.keys(l.columns).length + Number(l.checkbox) : 0), b = (f, $) => f.button ? typeof f.button == "object" ? We($, f.button).satisfied : f.button : !1, d = (f) => {
|
|
2217
2221
|
var T;
|
|
2218
2222
|
const $ = (T = l.layout) == null ? void 0 : T.actions;
|
|
2219
2223
|
return !o.value.xl || !$ || !l.actions ? [] : l.actions.filter((V) => {
|
|
@@ -2234,7 +2238,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2234
2238
|
}
|
|
2235
2239
|
return !Y || !b(Y, f);
|
|
2236
2240
|
});
|
|
2237
|
-
},
|
|
2241
|
+
}, w = (f, $) => {
|
|
2238
2242
|
var Y, ee;
|
|
2239
2243
|
const T = [], V = (ee = (Y = l.layout) == null ? void 0 : Y.actions) == null ? void 0 : ee[$.action];
|
|
2240
2244
|
return V != null && V.if && (We(
|
|
@@ -2279,7 +2283,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2279
2283
|
type: "checkbox",
|
|
2280
2284
|
value: h._id
|
|
2281
2285
|
}, null, 8, fa), [
|
|
2282
|
-
[
|
|
2286
|
+
[wt, _.value]
|
|
2283
2287
|
])
|
|
2284
2288
|
])) : y("", !0),
|
|
2285
2289
|
(n(!0), s(x, null, G(Object.entries(f.columns), ([S, g], j) => {
|
|
@@ -2319,18 +2323,18 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2319
2323
|
}))
|
|
2320
2324
|
])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), s("div", ga, [
|
|
2321
2325
|
h[S] ? (n(), s("div", ka, [
|
|
2322
|
-
"items" in g && h[S][0] && /^image/.test(h[S][0].type) ? (n(), k(
|
|
2326
|
+
"items" in g && h[S][0] && /^image/.test(h[S][0].type) ? (n(), k(He, {
|
|
2323
2327
|
key: 0,
|
|
2324
2328
|
modelValue: h[S][0].link,
|
|
2325
|
-
"onUpdate:modelValue": (
|
|
2329
|
+
"onUpdate:modelValue": (D) => h[S][0].link = D,
|
|
2326
2330
|
expandable: "",
|
|
2327
2331
|
meta: h[S][0],
|
|
2328
2332
|
alt: "Row image",
|
|
2329
2333
|
class: "table__picture"
|
|
2330
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[S].type) ? (n(), k(
|
|
2334
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[S].type) ? (n(), k(He, {
|
|
2331
2335
|
key: 1,
|
|
2332
2336
|
modelValue: h[S].link,
|
|
2333
|
-
"onUpdate:modelValue": (
|
|
2337
|
+
"onUpdate:modelValue": (D) => h[S].link = D,
|
|
2334
2338
|
expandable: "",
|
|
2335
2339
|
meta: h[S],
|
|
2336
2340
|
alt: "Row image",
|
|
@@ -2346,16 +2350,16 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2346
2350
|
value: h[S],
|
|
2347
2351
|
key: S,
|
|
2348
2352
|
property: g
|
|
2349
|
-
})), 1)) : (n(), s("span",
|
|
2350
|
-
((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), s("div",
|
|
2351
|
-
(n(!0), s(x, null, G(e(me)(g).indexes.slice(1, 2), (
|
|
2353
|
+
})), 1)) : (n(), s("span", wa, C(Array.isArray(h[S]) ? h[S].filter((D) => !!D).join(", ") : [void 0, null].includes(h[S]) ? "-" : h[S]), 1)),
|
|
2354
|
+
((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), s("div", Ba, [
|
|
2355
|
+
(n(!0), s(x, null, G(e(me)(g).indexes.slice(1, 2), (D, se) => (n(), s("div", {
|
|
2352
2356
|
key: `subvalue-${se}`,
|
|
2353
2357
|
class: "table__cell-subvalue"
|
|
2354
2358
|
}, C(e(i).$actions.formatValue({
|
|
2355
2359
|
value: h[S],
|
|
2356
2360
|
key: S,
|
|
2357
2361
|
property: g,
|
|
2358
|
-
index:
|
|
2362
|
+
index: D
|
|
2359
2363
|
})), 1))), 128))
|
|
2360
2364
|
])) : y("", !0)
|
|
2361
2365
|
]))
|
|
@@ -2370,7 +2374,7 @@ const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @_
|
|
|
2370
2374
|
small: "",
|
|
2371
2375
|
variant: "alt",
|
|
2372
2376
|
icon: S.icon,
|
|
2373
|
-
style: be(
|
|
2377
|
+
style: be(w(h, S)),
|
|
2374
2378
|
onClick: (g) => S.click(h)
|
|
2375
2379
|
}, {
|
|
2376
2380
|
default: v(() => [
|
|
@@ -2465,7 +2469,7 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
|
|
|
2465
2469
|
componentProps: {}
|
|
2466
2470
|
},
|
|
2467
2471
|
setup(c) {
|
|
2468
|
-
const r = c, l = Le(), t = Me(), o =
|
|
2472
|
+
const r = c, l = Le(), t = Me(), o = H(() => {
|
|
2469
2473
|
const u = {
|
|
2470
2474
|
collection: t,
|
|
2471
2475
|
checkbox: l.hasSelectionActions,
|
|
@@ -2506,7 +2510,7 @@ const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @_
|
|
|
2506
2510
|
], 2));
|
|
2507
2511
|
}
|
|
2508
2512
|
});
|
|
2509
|
-
const
|
|
2513
|
+
const Ha = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Da = { key: 0 }, Qa = {
|
|
2510
2514
|
key: 1,
|
|
2511
2515
|
class: "card__information"
|
|
2512
2516
|
}, Ga = /* @__PURE__ */ U({
|
|
@@ -2521,7 +2525,7 @@ const Da = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
|
|
|
2521
2525
|
const l = c.layoutOptions, t = Le(), o = (u) => Array.isArray(u) ? u[0] : u;
|
|
2522
2526
|
return (u, i) => {
|
|
2523
2527
|
const _ = te("clickable");
|
|
2524
|
-
return n(), k(
|
|
2528
|
+
return n(), k(Ha, {
|
|
2525
2529
|
list: u.componentName === "list"
|
|
2526
2530
|
}, {
|
|
2527
2531
|
default: v(() => [
|
|
@@ -2531,7 +2535,7 @@ const Da = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
|
|
|
2531
2535
|
horizontal: u.componentName === "list"
|
|
2532
2536
|
}, ce({
|
|
2533
2537
|
footer: v(() => [
|
|
2534
|
-
e(l).title ? (n(), s("div",
|
|
2538
|
+
e(l).title ? (n(), s("div", Da, C(p[e(l).title]), 1)) : y("", !0),
|
|
2535
2539
|
e(l).information ? (n(), s("div", Qa, C(p[e(l).information]), 1)) : y("", !0)
|
|
2536
2540
|
]),
|
|
2537
2541
|
actions: v(() => [
|
|
@@ -2559,7 +2563,7 @@ const Da = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
|
|
|
2559
2563
|
default: v(() => {
|
|
2560
2564
|
var b;
|
|
2561
2565
|
return [
|
|
2562
|
-
z(
|
|
2566
|
+
z(He, {
|
|
2563
2567
|
alt: "Item picture",
|
|
2564
2568
|
expandable: "",
|
|
2565
2569
|
url: (b = o(p[e(l).picture])) == null ? void 0 : b.link,
|
|
@@ -2645,7 +2649,7 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2645
2649
|
aa(a, {
|
|
2646
2650
|
persistInQuery: !l.noQueryPersistence
|
|
2647
2651
|
});
|
|
2648
|
-
const
|
|
2652
|
+
const w = Ze(), f = l.action ? e(l.action) : Wt(a, o, w);
|
|
2649
2653
|
Re.value = f[0], ht.value = f[1];
|
|
2650
2654
|
const $ = J(0), T = J(!1), V = async (g) => {
|
|
2651
2655
|
a.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || a.$filters), Object.assign(a.activeFilters, a.filtersPreset);
|
|
@@ -2659,8 +2663,8 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2659
2663
|
const { error: ne, result: oe } = await a.$actions.retrieveItems(j);
|
|
2660
2664
|
if (ne)
|
|
2661
2665
|
return;
|
|
2662
|
-
const { data: M, pagination:
|
|
2663
|
-
a.pagination.recordsCount =
|
|
2666
|
+
const { data: M, pagination: D } = oe;
|
|
2667
|
+
a.pagination.recordsCount = D.recordsCount, a.pagination.recordsTotal = D.recordsTotal, $.value === 0 && a.items.splice(0), a.items.push(...M), a.loading.getAll = !1, T.value = !0;
|
|
2664
2668
|
}, Y = async (g) => {
|
|
2665
2669
|
o.push(qe(o.currentRoute.value, {
|
|
2666
2670
|
query: {
|
|
@@ -2702,7 +2706,7 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2702
2706
|
const F = (g) => {
|
|
2703
2707
|
g.currentLayout = g.currentLayout === "tabular" ? g.description.layout.name : "tabular";
|
|
2704
2708
|
};
|
|
2705
|
-
|
|
2709
|
+
Bt(() => {
|
|
2706
2710
|
a.$actions.clearFilters(), a.textQuery = "", b();
|
|
2707
2711
|
}), ue(() => ht.value, async (g) => {
|
|
2708
2712
|
var oe;
|
|
@@ -2721,29 +2725,29 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2721
2725
|
a.$actions.setItem(j.params), pe.value = "edit";
|
|
2722
2726
|
else if (j.name === "duplicate") {
|
|
2723
2727
|
await ne;
|
|
2724
|
-
const M = Object.entries(a.item).reduce((
|
|
2728
|
+
const M = Object.entries(a.item).reduce((D, [se, ae]) => {
|
|
2725
2729
|
if (!(se in a.properties))
|
|
2726
2730
|
return {
|
|
2727
|
-
...
|
|
2731
|
+
...D,
|
|
2728
2732
|
[se]: ae
|
|
2729
2733
|
};
|
|
2730
2734
|
const m = a.properties[se];
|
|
2731
2735
|
if (m.readOnly)
|
|
2732
|
-
return
|
|
2736
|
+
return D;
|
|
2733
2737
|
const L = (K) => {
|
|
2734
|
-
const
|
|
2735
|
-
if (!
|
|
2738
|
+
const B = me(m);
|
|
2739
|
+
if (!B)
|
|
2736
2740
|
return K;
|
|
2737
|
-
if (
|
|
2741
|
+
if (B.$ref === "file")
|
|
2738
2742
|
return {};
|
|
2739
|
-
if (
|
|
2743
|
+
if (B.inline && K) {
|
|
2740
2744
|
const { _id: I, ...q } = K;
|
|
2741
2745
|
return q;
|
|
2742
2746
|
}
|
|
2743
2747
|
return K;
|
|
2744
2748
|
};
|
|
2745
2749
|
return ae = Array.isArray(ae) ? ae.map(L) : L(ae), {
|
|
2746
|
-
...
|
|
2750
|
+
...D,
|
|
2747
2751
|
[se]: ae
|
|
2748
2752
|
};
|
|
2749
2753
|
}, {});
|
|
@@ -2755,25 +2759,25 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2755
2759
|
}), ue(() => pe, ({ value: g }) => {
|
|
2756
2760
|
g === !1 && (i.view.collection = l.collection, a.$actions.clearItem());
|
|
2757
2761
|
});
|
|
2758
|
-
const le =
|
|
2762
|
+
const le = H(() => a.individualActions.map((g) => ({
|
|
2759
2763
|
click: Re.value(g),
|
|
2760
2764
|
...g
|
|
2761
|
-
}))), S =
|
|
2762
|
-
return ye(Fe,
|
|
2763
|
-
var M,
|
|
2765
|
+
}))), S = H(() => a.actions.filter((g) => !g.button));
|
|
2766
|
+
return ye(Fe, H(() => l.collection)), ye("individualActions", le), (g, j) => {
|
|
2767
|
+
var M, D, se, ae, m, L, K;
|
|
2764
2768
|
const ne = te("clickable"), oe = te("loading");
|
|
2765
2769
|
return n(), s(x, null, [
|
|
2766
2770
|
e(Ve) ? (n(), k(na, {
|
|
2767
2771
|
key: e(a).$id,
|
|
2768
2772
|
modelValue: e(Ve),
|
|
2769
|
-
"onUpdate:modelValue": j[0] || (j[0] = (
|
|
2773
|
+
"onUpdate:modelValue": j[0] || (j[0] = (B) => mt(Ve) ? Ve.value = B : null)
|
|
2770
2774
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2771
2775
|
e(pe) ? (n(), k(oa, {
|
|
2772
2776
|
key: 1,
|
|
2773
2777
|
visible: e(pe),
|
|
2774
|
-
"onUpdate:visible": j[1] || (j[1] = (
|
|
2778
|
+
"onUpdate:visible": j[1] || (j[1] = (B) => mt(pe) ? pe.value = B : null),
|
|
2775
2779
|
"fixed-right": "",
|
|
2776
|
-
onCancel: j[2] || (j[2] = (
|
|
2780
|
+
onCancel: j[2] || (j[2] = (B) => pe.value = !1)
|
|
2777
2781
|
}, ce({
|
|
2778
2782
|
header: v(() => [
|
|
2779
2783
|
A("span", null, C((() => {
|
|
@@ -2791,18 +2795,18 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2791
2795
|
]),
|
|
2792
2796
|
_: 2
|
|
2793
2797
|
}, [
|
|
2794
|
-
G(Object.keys(g.$slots).filter((
|
|
2795
|
-
name:
|
|
2798
|
+
G(Object.keys(g.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
2799
|
+
name: B,
|
|
2796
2800
|
fn: v((I) => [
|
|
2797
|
-
O(g.$slots,
|
|
2801
|
+
O(g.$slots, B, de(ge(I)), void 0, !0)
|
|
2798
2802
|
])
|
|
2799
2803
|
}))
|
|
2800
2804
|
]), 1032, ["visible"])) : y("", !0),
|
|
2801
|
-
!g.noActions && (e(a).description.search || Object.keys(e(a).availableFilters).length > 0 || ((M = e(a)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(a).description.layout && ((
|
|
2805
|
+
!g.noActions && (e(a).description.search || Object.keys(e(a).availableFilters).length > 0 || ((M = e(a)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(a).description.layout && ((D = e(a).description.layout) == null ? void 0 : D.name) !== "tabular") ? (n(), s("div", Xa, [
|
|
2802
2806
|
e(a).description.search ? (n(), s("div", Ya, [
|
|
2803
2807
|
z(ke, E({
|
|
2804
2808
|
modelValue: e(a).textQuery,
|
|
2805
|
-
"onUpdate:modelValue": j[3] || (j[3] = (
|
|
2809
|
+
"onUpdate:modelValue": j[3] || (j[3] = (B) => e(a).textQuery = B)
|
|
2806
2810
|
}, {
|
|
2807
2811
|
property: {
|
|
2808
2812
|
type: "string",
|
|
@@ -2836,7 +2840,7 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2836
2840
|
fn: v(() => [
|
|
2837
2841
|
P((n(), k(Z, {
|
|
2838
2842
|
icon: "funnel",
|
|
2839
|
-
onClick: j[4] || (j[4] = (
|
|
2843
|
+
onClick: j[4] || (j[4] = (B) => Ve.value = !0)
|
|
2840
2844
|
}, {
|
|
2841
2845
|
default: v(() => [
|
|
2842
2846
|
Q(C(e(R)("filters", { capitalize: !0 })), 1)
|
|
@@ -2861,7 +2865,7 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2861
2865
|
fn: v(() => [
|
|
2862
2866
|
P((n(), k(Z, {
|
|
2863
2867
|
icon: "table",
|
|
2864
|
-
onClick: j[5] || (j[5] = (
|
|
2868
|
+
onClick: j[5] || (j[5] = (B) => F(e(a)))
|
|
2865
2869
|
}, {
|
|
2866
2870
|
default: v(() => [
|
|
2867
2871
|
Q(C(e(R)("change_layout", { capitalize: !0 })), 1)
|
|
@@ -2873,17 +2877,17 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2873
2877
|
]),
|
|
2874
2878
|
key: "1"
|
|
2875
2879
|
} : void 0,
|
|
2876
|
-
G(S.value, (
|
|
2880
|
+
G(S.value, (B, I) => ({
|
|
2877
2881
|
name: `action-${I}`,
|
|
2878
2882
|
fn: v(() => [
|
|
2879
|
-
|
|
2883
|
+
B ? (n(), k(Z, {
|
|
2880
2884
|
key: 0,
|
|
2881
|
-
icon:
|
|
2882
|
-
disabled: e(a).selected.length === 0 && "selection" in
|
|
2883
|
-
onClick: (q) => e(Re)(
|
|
2885
|
+
icon: B.icon || "gear",
|
|
2886
|
+
disabled: e(a).selected.length === 0 && "selection" in B && B.selection,
|
|
2887
|
+
onClick: (q) => e(Re)(B)({ _id: e(a).selected.map((fe) => fe._id) })
|
|
2884
2888
|
}, {
|
|
2885
2889
|
default: v(() => [
|
|
2886
|
-
Q(C(e(R)(
|
|
2890
|
+
Q(C(e(R)(B.label, { capitalize: !0 })), 1)
|
|
2887
2891
|
]),
|
|
2888
2892
|
_: 2
|
|
2889
2893
|
}, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
|
|
@@ -2893,7 +2897,7 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2893
2897
|
key: 1,
|
|
2894
2898
|
variant: "alt",
|
|
2895
2899
|
icon: "funnel",
|
|
2896
|
-
onClick: j[6] || (j[6] = (
|
|
2900
|
+
onClick: j[6] || (j[6] = (B) => Ve.value = !0)
|
|
2897
2901
|
}, {
|
|
2898
2902
|
default: v(() => [
|
|
2899
2903
|
Pa,
|
|
@@ -2906,14 +2910,14 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2906
2910
|
]),
|
|
2907
2911
|
_: 1
|
|
2908
2912
|
})) : y("", !0),
|
|
2909
|
-
(n(!0), s(x, null, G(e(a).actions.filter((
|
|
2913
|
+
(n(!0), s(x, null, G(e(a).actions.filter((B) => B.button), (B, I) => (n(), k(ie, {
|
|
2910
2914
|
key: `action-${I}`,
|
|
2911
|
-
icon:
|
|
2912
|
-
disabled: e(a).selected.length === 0 && "selection" in
|
|
2913
|
-
onClick: (q) => e(Re)(
|
|
2915
|
+
icon: B.icon,
|
|
2916
|
+
disabled: e(a).selected.length === 0 && "selection" in B && B.selection,
|
|
2917
|
+
onClick: (q) => e(Re)(B)({ _id: e(a).selected.map((fe) => fe._id) })
|
|
2914
2918
|
}, {
|
|
2915
2919
|
default: v(() => [
|
|
2916
|
-
Q(C(e(R)(
|
|
2920
|
+
Q(C(e(R)(B.label, { capitalize: !0 })), 1)
|
|
2917
2921
|
]),
|
|
2918
2922
|
_: 2
|
|
2919
2923
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
@@ -2929,7 +2933,7 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2929
2933
|
e(a).filtersCount === 0 && e(a).description.actions && "spawnAdd" in e(a).description.actions ? (n(), k(ie, {
|
|
2930
2934
|
key: 0,
|
|
2931
2935
|
icon: "plus",
|
|
2932
|
-
onClick: j[7] || (j[7] = (
|
|
2936
|
+
onClick: j[7] || (j[7] = (B) => e(Re)({
|
|
2933
2937
|
action: "spawnAdd",
|
|
2934
2938
|
event: "spawnAdd"
|
|
2935
2939
|
})())
|
|
@@ -2953,10 +2957,10 @@ const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d568
|
|
|
2953
2957
|
}, {
|
|
2954
2958
|
"component-name": ((K = g.layout) == null ? void 0 : K.name) || e(a).$currentLayout
|
|
2955
2959
|
}), ce({ _: 2 }, [
|
|
2956
|
-
G(Object.keys(g.$slots).filter((
|
|
2957
|
-
name:
|
|
2960
|
+
G(Object.keys(g.$slots).filter((B) => B.startsWith("row-")), (B) => ({
|
|
2961
|
+
name: B,
|
|
2958
2962
|
fn: v((I) => [
|
|
2959
|
-
O(g.$slots,
|
|
2963
|
+
O(g.$slots, B, de(ge(I)), void 0, !0)
|
|
2960
2964
|
])
|
|
2961
2965
|
})),
|
|
2962
2966
|
g.$slots.tfoot ? {
|
|
@@ -3070,7 +3074,7 @@ const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { cla
|
|
|
3070
3074
|
const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["innerHTML"], ul = { class: "main__toasts" }, cl = ["innerHTML"], dl = /* @__PURE__ */ U({
|
|
3071
3075
|
__name: "aeria-main",
|
|
3072
3076
|
setup(c) {
|
|
3073
|
-
const r = re("meta"), l =
|
|
3077
|
+
const r = re("meta"), l = H(() => r.themeOverride || r.theme);
|
|
3074
3078
|
return (t, o) => {
|
|
3075
3079
|
const u = St("router-view");
|
|
3076
3080
|
return n(), s("main", {
|
|
@@ -3170,7 +3174,7 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
|
|
|
3170
3174
|
dropdown: { type: Boolean }
|
|
3171
3175
|
},
|
|
3172
3176
|
setup(c) {
|
|
3173
|
-
const r = c, l = jt(), t = Ie(), o = Ue(), u =
|
|
3177
|
+
const r = c, l = jt(), t = Ie(), o = Ue(), u = H(() => {
|
|
3174
3178
|
if (r.query) {
|
|
3175
3179
|
const _ = t.currentRoute.value.query[r.query];
|
|
3176
3180
|
if (_)
|
|
@@ -3205,7 +3209,7 @@ const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb
|
|
|
3205
3209
|
tabs__tab: !0,
|
|
3206
3210
|
"tabs__tab--current": d === u.value || !u.value && a === 0
|
|
3207
3211
|
}),
|
|
3208
|
-
onClick: (
|
|
3212
|
+
onClick: (w) => i(d)
|
|
3209
3213
|
}, [
|
|
3210
3214
|
O(_.$slots, d, {}, void 0, !0)
|
|
3211
3215
|
], 10, hl))), 128))
|
|
@@ -3262,7 +3266,7 @@ const kl = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-a20914ab"]]), Vl = U({
|
|
|
3262
3266
|
collection: {}
|
|
3263
3267
|
},
|
|
3264
3268
|
setup(c) {
|
|
3265
|
-
const r = c, t = Ie().currentRoute, o = Ze(), u =
|
|
3269
|
+
const r = c, t = Ie().currentRoute, o = Ze(), u = H(() => r.collection ? Le(r.collection, o) : typeof t.value.meta.collection == "string" ? Le(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Le(t.value.params.collection, o) : null), i = async (_, p) => {
|
|
3266
3270
|
const { error: b, result: d } = await p.$functions[_.badgeFunction]({
|
|
3267
3271
|
filters: _.filters
|
|
3268
3272
|
});
|
|
@@ -3304,7 +3308,7 @@ const kl = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-a20914ab"]]), Vl = U({
|
|
|
3304
3308
|
]), 1024)) : y("", !0);
|
|
3305
3309
|
}
|
|
3306
3310
|
});
|
|
3307
|
-
const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]),
|
|
3311
|
+
const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), wl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3308
3312
|
__proto__: null,
|
|
3309
3313
|
default: Al
|
|
3310
3314
|
}, Symbol.toStringTag, { value: "Module" })), Ul = /* @__PURE__ */ U({
|
|
@@ -3316,7 +3320,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
|
|
|
3316
3320
|
setup(c) {
|
|
3317
3321
|
const r = c;
|
|
3318
3322
|
ye(Fe, null);
|
|
3319
|
-
const l = Xt(), t =
|
|
3323
|
+
const l = Xt(), t = H(() => l(
|
|
3320
3324
|
r.modelValue.password,
|
|
3321
3325
|
r.modelValue.confirmation
|
|
3322
3326
|
));
|
|
@@ -3361,7 +3365,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
|
|
|
3361
3365
|
{
|
|
3362
3366
|
path: "signin",
|
|
3363
3367
|
name: "/user/signin",
|
|
3364
|
-
component: () => import("./signin-
|
|
3368
|
+
component: () => import("./signin-cc8074a5.js"),
|
|
3365
3369
|
meta: {
|
|
3366
3370
|
title: "Autenticação"
|
|
3367
3371
|
}
|
|
@@ -3369,7 +3373,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
|
|
|
3369
3373
|
{
|
|
3370
3374
|
path: "signup",
|
|
3371
3375
|
name: "/user/signup",
|
|
3372
|
-
component: () => import("./signup-
|
|
3376
|
+
component: () => import("./signup-aa8ebb88.js"),
|
|
3373
3377
|
meta: {
|
|
3374
3378
|
title: "Registro"
|
|
3375
3379
|
}
|
|
@@ -3377,13 +3381,13 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
|
|
|
3377
3381
|
{
|
|
3378
3382
|
path: "activation",
|
|
3379
3383
|
name: "/user/activation",
|
|
3380
|
-
component: () => import("./activation-
|
|
3384
|
+
component: () => import("./activation-21234686.js"),
|
|
3381
3385
|
meta: {
|
|
3382
3386
|
title: "Ativação"
|
|
3383
3387
|
}
|
|
3384
3388
|
}
|
|
3385
3389
|
])
|
|
3386
|
-
}),
|
|
3390
|
+
}), Hl = (c, r = []) => ({
|
|
3387
3391
|
path: "/dashboard",
|
|
3388
3392
|
name: "/builtin:dashboard",
|
|
3389
3393
|
component: c,
|
|
@@ -3399,8 +3403,8 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
|
|
|
3399
3403
|
name: "/dashboard/:collection",
|
|
3400
3404
|
props: !0,
|
|
3401
3405
|
components: {
|
|
3402
|
-
default: () => import("./index-
|
|
3403
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3406
|
+
default: () => import("./index-c6c46429.js"),
|
|
3407
|
+
topbar: () => Promise.resolve().then(() => wl)
|
|
3404
3408
|
},
|
|
3405
3409
|
meta: {
|
|
3406
3410
|
title: "%viewTitle%"
|
|
@@ -3411,7 +3415,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
|
|
|
3411
3415
|
name: "/dashboard/:collection/:id",
|
|
3412
3416
|
props: !0,
|
|
3413
3417
|
components: {
|
|
3414
|
-
default: () => import("./_id_-
|
|
3418
|
+
default: () => import("./_id_-e62f8939.js")
|
|
3415
3419
|
},
|
|
3416
3420
|
meta: {
|
|
3417
3421
|
title: "%viewTitle%"
|
|
@@ -3429,7 +3433,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
|
|
|
3429
3433
|
children: [
|
|
3430
3434
|
{
|
|
3431
3435
|
path: "profile",
|
|
3432
|
-
component: () => import("./index-
|
|
3436
|
+
component: () => import("./index-1395aded.js"),
|
|
3433
3437
|
meta: {
|
|
3434
3438
|
title: "Meu perfil",
|
|
3435
3439
|
icon: "user-square"
|
|
@@ -3438,7 +3442,7 @@ const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @_
|
|
|
3438
3442
|
{
|
|
3439
3443
|
path: "changepass",
|
|
3440
3444
|
name: "/dashboard/user/changepass",
|
|
3441
|
-
component: () => import("./index-
|
|
3445
|
+
component: () => import("./index-d838adbc.js"),
|
|
3442
3446
|
meta: {
|
|
3443
3447
|
title: "Mudar senha",
|
|
3444
3448
|
icon: "lock"
|
|
@@ -3456,14 +3460,14 @@ export {
|
|
|
3456
3460
|
il as E,
|
|
3457
3461
|
Al as F,
|
|
3458
3462
|
El as G,
|
|
3459
|
-
|
|
3463
|
+
Hl as H,
|
|
3460
3464
|
Ul as _,
|
|
3461
3465
|
ie as a,
|
|
3462
3466
|
Z as b,
|
|
3463
3467
|
Kn as c,
|
|
3464
3468
|
ql as d,
|
|
3465
3469
|
oa as e,
|
|
3466
|
-
|
|
3470
|
+
He as f,
|
|
3467
3471
|
Fl as g,
|
|
3468
3472
|
Ae as h,
|
|
3469
3473
|
W as i,
|
|
@@ -3472,7 +3476,7 @@ export {
|
|
|
3472
3476
|
ve as l,
|
|
3473
3477
|
pn as m,
|
|
3474
3478
|
Oe as n,
|
|
3475
|
-
|
|
3479
|
+
Ha as o,
|
|
3476
3480
|
na as p,
|
|
3477
3481
|
Vn as q,
|
|
3478
3482
|
Ml as r,
|