@aeria-ui/ui 0.0.43 → 0.0.44
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/{activation-309d46c7.js → activation-adac6722.js} +21 -21
- package/dist/{crud-view-86988807.js → crud-view-b854fb49.js} +1 -1
- package/dist/{index-82deba70.js → index-03c606a5.js} +183 -177
- package/dist/{password-change-09610509.js → password-change-aa004ecb.js} +1 -1
- package/dist/{profile-28afeeaa.js → profile-4233fd1d.js} +1 -1
- package/dist/{signin-12da0ca0.js → signin-6d124882.js} +10 -10
- package/dist/{signup-db7595de.js → signup-5fc5d662.js} +37 -37
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as q, ref as
|
|
1
|
+
import { defineComponent as q, ref as Y, resolveDirective as ne, openBlock as n, createElementBlock as s, normalizeClass as Q, Fragment as J, renderList as U, withDirectives as Z, toDisplayString as k, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as A, inject as ve, computed as H, createElementVNode as V, mergeProps as E, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as Vt, Teleport as Ge, onMounted as mt, watch as re, createVNode as z, vModelDynamic as Ct, onBeforeMount as ft, normalizeStyle as $e, withModifiers as ze, pushScopeId as Fe, popScopeId as qe, provide as ye, normalizeProps as ce, guardReactiveProps as Ve, isRef as vt, createSlots as de, vModelCheckbox as It, onUnmounted as At, resolveComponent as Ot, Suspense as wt, useSlots as Bt, h as St } from "vue";
|
|
2
2
|
import { t as F, useI18n as jt } from "@aeria-ui/i18n";
|
|
3
|
-
import { useScrollObserver as We, useBreakpoints as je, useClipboard as Tt, useMask as
|
|
4
|
-
import { useStore as ue, getStoreId as Te, useParentStore as ge, STORE_ID as Ue, getGlobalStateManager as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import {
|
|
3
|
+
import { useScrollObserver as We, useBreakpoints as je, useClipboard as Tt, useMask as Rt, PAGINATION_PER_PAGE_DEFAULTS as Lt, API_URL as yt, request as zt, useDebounce as ht, isDocumentComplete as Mt, convertToSearchQuery as Ft, useAction as qt, convertFromSearchQuery as Ut, usePasswordPolicy as Et } from "@aeria-ui/core";
|
|
4
|
+
import { useStore as ue, getStoreId as Te, useParentStore as ge, STORE_ID as Ue, getGlobalStateManager as $t } from "@aeria-ui/state-management";
|
|
5
|
+
import { useRouter as Re } from "vue-router";
|
|
6
|
+
import { isError as bt, getReferenceProperty as pe, convertConditionToQuery as Ht, deepClone as Se, freshItem as Dt, isRequired as Qt, evaluateCondition as Qe } from "@aeriajs/common";
|
|
7
7
|
const Gt = ["onClick"], Wt = { key: 0 }, Xt = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "accordion__content"
|
|
@@ -15,7 +15,7 @@ const Gt = ["onClick"], Wt = { key: 0 }, Xt = {
|
|
|
15
15
|
headers: {}
|
|
16
16
|
},
|
|
17
17
|
setup(c) {
|
|
18
|
-
const r =
|
|
18
|
+
const r = Y(null), t = (o) => typeof o == "string" ? o : o.title;
|
|
19
19
|
return (o, l) => {
|
|
20
20
|
const i = ne("clickable");
|
|
21
21
|
return n(), s("div", {
|
|
@@ -167,7 +167,7 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
167
167
|
},
|
|
168
168
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
169
169
|
setup(c, { emit: r }) {
|
|
170
|
-
const t = c, o = r, l = H(() => t.floating || t.float), i =
|
|
170
|
+
const t = c, o = r, l = H(() => t.floating || t.float), i = Y(t.collapsed), u = Y(null), { reachedEnd: _ } = We(u), m = () => {
|
|
171
171
|
o("update:modelValue", !1), o("close");
|
|
172
172
|
}, h = () => {
|
|
173
173
|
o("overlayClick");
|
|
@@ -175,7 +175,7 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
175
175
|
o("update:collapsed", a), i.value = a;
|
|
176
176
|
};
|
|
177
177
|
return (a, p) => {
|
|
178
|
-
const b = ne("clickable"), S = ne("loading"),
|
|
178
|
+
const b = ne("clickable"), S = ne("loading"), L = ne("overlay");
|
|
179
179
|
return a.modelValue ? Z((n(), s("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: Q(`
|
|
@@ -198,7 +198,7 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
198
198
|
${a.transparentMobile && "panel__content--transparent-mobile"}
|
|
199
199
|
${a.outerHeader && "panel__content--outer-header"}
|
|
200
200
|
`),
|
|
201
|
-
onClick: p[1] || (p[1] = (
|
|
201
|
+
onClick: p[1] || (p[1] = (W) => W.stopPropagation())
|
|
202
202
|
}, {
|
|
203
203
|
default: v(() => [
|
|
204
204
|
a.$slots.header || a.title ? (n(), s("div", {
|
|
@@ -219,7 +219,7 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
219
219
|
key: 0,
|
|
220
220
|
reactive: "",
|
|
221
221
|
icon: i.value ? "plus" : "minus",
|
|
222
|
-
onClick: p[0] || (p[0] = (
|
|
222
|
+
onClick: p[0] || (p[0] = (W) => d(!i.value))
|
|
223
223
|
}, null, 8, ["icon"])), [
|
|
224
224
|
[b]
|
|
225
225
|
]) : a.closeHint ? Z((n(), $(K, {
|
|
@@ -258,7 +258,7 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
258
258
|
_: 3
|
|
259
259
|
}, 8, ["class"]))
|
|
260
260
|
], 2)), [
|
|
261
|
-
[
|
|
261
|
+
[L, {
|
|
262
262
|
condition: a.overlay || a.fixedRight || l.value,
|
|
263
263
|
invisible: a.invisibleOverlay,
|
|
264
264
|
click: h,
|
|
@@ -363,11 +363,11 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
363
363
|
},
|
|
364
364
|
emits: ["actionClick"],
|
|
365
365
|
setup(c, { emit: r }) {
|
|
366
|
-
|
|
366
|
+
Vt((h) => ({
|
|
367
367
|
"42bf4bfe": m.value.x,
|
|
368
368
|
"42bf4bfc": m.value.y
|
|
369
369
|
}));
|
|
370
|
-
const t = r, o = ue("user"), l =
|
|
370
|
+
const t = r, o = ue("user"), l = Y(null), i = Y(!1), u = (h) => h == null ? void 0 : h.filter((d) => d.roles ? d.roles.include(o.currentUser.role) : !!d.click), _ = (h, d) => {
|
|
371
371
|
h.click(d), t("actionClick", {
|
|
372
372
|
action: h,
|
|
373
373
|
subject: d
|
|
@@ -491,7 +491,7 @@ const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-0b83b591"]]), yn = { cla
|
|
|
491
491
|
where: {}
|
|
492
492
|
},
|
|
493
493
|
setup(c) {
|
|
494
|
-
const r = c, t = je(), o =
|
|
494
|
+
const r = c, t = je(), o = Y(!1), l = r.where || "top";
|
|
495
495
|
return (i, u) => e(t).md ? (n(), s("div", {
|
|
496
496
|
key: 0,
|
|
497
497
|
class: "info",
|
|
@@ -561,43 +561,49 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
561
561
|
})(),
|
|
562
562
|
placeholder: u ? o.description || t.propertyName : o.placeholder
|
|
563
563
|
};
|
|
564
|
-
"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")
|
|
564
|
+
"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"), mt(() => {
|
|
565
|
+
t.modelValue !== null && W(t.modelValue);
|
|
566
|
+
});
|
|
565
567
|
const p = () => {
|
|
566
568
|
try {
|
|
567
569
|
return t.modelValue ? new Date(t.modelValue).toISOString().split("T").shift() : "";
|
|
568
570
|
} catch {
|
|
569
571
|
return "";
|
|
570
572
|
}
|
|
571
|
-
}, b =
|
|
573
|
+
}, b = Y([
|
|
572
574
|
"date",
|
|
573
575
|
"date-time"
|
|
574
|
-
].includes(a.type) ? p() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), S = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ?
|
|
575
|
-
var
|
|
576
|
-
return typeof b.value == "string" && ((
|
|
577
|
-
|
|
578
|
-
|
|
576
|
+
].includes(a.type) ? p() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), S = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ? Rt(t.property.mask) : null, L = (M) => {
|
|
577
|
+
var X;
|
|
578
|
+
return typeof b.value == "string" && ((X = t.property) == null ? void 0 : X.type) === "string" && S !== null ? (b.value = S.enmask(b.value, void 0, {
|
|
579
|
+
defaultValue: !0
|
|
580
|
+
}), t.property.maskedValue === !0 ? b.value : S.unmask(b.value)) : M;
|
|
581
|
+
}, W = (M) => {
|
|
582
|
+
const X = (() => {
|
|
579
583
|
if (!M || typeof M != "string")
|
|
580
584
|
return M;
|
|
581
585
|
if (a.type === "number" || a.type === "integer")
|
|
582
586
|
return Number(M);
|
|
583
587
|
if (!("type" in o && o.type === "string"))
|
|
584
|
-
return
|
|
588
|
+
return L(M);
|
|
585
589
|
switch (o.format) {
|
|
586
590
|
case "date":
|
|
587
591
|
case "date-time":
|
|
588
592
|
return new Date(M);
|
|
589
593
|
default:
|
|
590
|
-
return
|
|
594
|
+
return L(M);
|
|
591
595
|
}
|
|
592
596
|
})();
|
|
593
|
-
h("input",
|
|
597
|
+
h("input", X), h("update:modelValue", X);
|
|
594
598
|
}, P = (M) => {
|
|
595
|
-
const
|
|
596
|
-
b.value =
|
|
599
|
+
const X = M.target.value;
|
|
600
|
+
b.value = X, W(X);
|
|
597
601
|
};
|
|
598
|
-
return re(() => t.modelValue, (M,
|
|
599
|
-
M instanceof Date || (
|
|
600
|
-
|
|
602
|
+
return re(() => t.modelValue, (M, X) => {
|
|
603
|
+
M instanceof Date || (X && !M ? b.value = void 0 : b.value = S ? S.enmask(String(M), void 0, {
|
|
604
|
+
defaultValue: !0
|
|
605
|
+
}) : String(M));
|
|
606
|
+
}), (M, X) => {
|
|
601
607
|
const w = ne("focus"), ee = ne("clickable");
|
|
602
608
|
return n(), s("label", bn, [
|
|
603
609
|
e(u) ? y("", !0) : (n(), s("div", gn, [
|
|
@@ -642,7 +648,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
642
648
|
${e(_) && "input__input--readOnly"}
|
|
643
649
|
`,
|
|
644
650
|
onInput: P,
|
|
645
|
-
onChange:
|
|
651
|
+
onChange: X[0] || (X[0] = (C) => h("change", C))
|
|
646
652
|
}), null, 16, Cn), [
|
|
647
653
|
[w, e(o).focus]
|
|
648
654
|
]),
|
|
@@ -662,7 +668,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
662
668
|
default: v(() => [
|
|
663
669
|
Z(z(K, {
|
|
664
670
|
icon: "clipboard",
|
|
665
|
-
onClick:
|
|
671
|
+
onClick: X[1] || (X[1] = (C) => e(m)(String(M.modelValue || "")))
|
|
666
672
|
}, null, 512), [
|
|
667
673
|
[ee]
|
|
668
674
|
])
|
|
@@ -675,7 +681,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
675
681
|
};
|
|
676
682
|
}
|
|
677
683
|
});
|
|
678
|
-
const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-
|
|
684
|
+
const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-4bdda204"]]), On = ["value"], wn = {
|
|
679
685
|
key: 1,
|
|
680
686
|
value: ""
|
|
681
687
|
}, Bn = ["value", "data-selected"], Sn = /* @__PURE__ */ q({
|
|
@@ -692,10 +698,10 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-470ff8e4"]]), On = ["val
|
|
|
692
698
|
},
|
|
693
699
|
emits: ["update:modelValue", "change"],
|
|
694
700
|
setup(c, { emit: r }) {
|
|
695
|
-
const t = c, o = r, l =
|
|
701
|
+
const t = c, o = r, l = Y(null), i = t.property || {}, u = (d) => {
|
|
696
702
|
t.booleanRef && (_.value = d), o("update:modelValue", (d == null ? void 0 : d._id) || d), o("change", (d == null ? void 0 : d._id) || d);
|
|
697
703
|
}, _ = t.booleanRef ? (() => {
|
|
698
|
-
const d =
|
|
704
|
+
const d = Y(t.modelValue);
|
|
699
705
|
return H({
|
|
700
706
|
get: () => d.value === "true" ? !0 : d.value === "false" ? !1 : null,
|
|
701
707
|
set: (p) => {
|
|
@@ -746,7 +752,7 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-470ff8e4"]]), On = ["val
|
|
|
746
752
|
], 2));
|
|
747
753
|
}
|
|
748
754
|
});
|
|
749
|
-
const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { class: "pagination" }, Tn = ["value"],
|
|
755
|
+
const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { class: "pagination" }, Tn = ["value"], Rn = { class: "pagination__control" }, Ln = { class: "pagination__page-input" }, zn = /* @__PURE__ */ q({
|
|
750
756
|
__name: "aeria-pagination",
|
|
751
757
|
props: {
|
|
752
758
|
pagination: {}
|
|
@@ -763,7 +769,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
763
769
|
set: (h) => {
|
|
764
770
|
t.pagination.limit = Number(h);
|
|
765
771
|
}
|
|
766
|
-
}), u =
|
|
772
|
+
}), u = Y(l.value ? l.value + 1 : 1), _ = H(() => Math.ceil(t.pagination.recordsTotal / t.pagination.limit)), m = (h) => {
|
|
767
773
|
l.value = h === "previous" ? l.value - 1 : l.value + 1;
|
|
768
774
|
};
|
|
769
775
|
return re([
|
|
@@ -785,14 +791,14 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
785
791
|
class: "pagination__control"
|
|
786
792
|
}, {
|
|
787
793
|
default: v(() => [
|
|
788
|
-
(n(!0), s(J, null, U(e(
|
|
794
|
+
(n(!0), s(J, null, U(e(Lt), (a) => (n(), s("option", {
|
|
789
795
|
key: `limit-${a}`,
|
|
790
796
|
value: a
|
|
791
797
|
}, k(a), 9, Tn))), 128))
|
|
792
798
|
]),
|
|
793
799
|
_: 1
|
|
794
800
|
}, 8, ["modelValue"]),
|
|
795
|
-
V("div",
|
|
801
|
+
V("div", Rn, [
|
|
796
802
|
z(fe, {
|
|
797
803
|
onClick: d[1] || (d[1] = (a) => l.value = 0)
|
|
798
804
|
}, {
|
|
@@ -816,7 +822,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
816
822
|
]),
|
|
817
823
|
_: 1
|
|
818
824
|
}, 8, ["disabled"]),
|
|
819
|
-
V("div",
|
|
825
|
+
V("div", Ln, [
|
|
820
826
|
(n(), $(Ie, {
|
|
821
827
|
key: l.value,
|
|
822
828
|
modelValue: u.value,
|
|
@@ -915,7 +921,7 @@ const Mn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-41aa1ffc"]]), Fn = { cla
|
|
|
915
921
|
readOnly: e(o).readOnly,
|
|
916
922
|
checked: _.value
|
|
917
923
|
}, { class: "checkbox__input" }), null, 16), [
|
|
918
|
-
[
|
|
924
|
+
[Ct, _.value]
|
|
919
925
|
]),
|
|
920
926
|
V("div", Fn, [
|
|
921
927
|
V("div", null, [
|
|
@@ -955,7 +961,7 @@ const Qn = /* @__PURE__ */ G(Dn, [["__scopeId", "data-v-256eb557"]]), Gn = {
|
|
|
955
961
|
const t = c, o = r, l = "items" in t.property ? t.property.items.enum : t.property.enum, i = (u) => {
|
|
956
962
|
o("update:modelValue", u);
|
|
957
963
|
};
|
|
958
|
-
return
|
|
964
|
+
return ft(() => {
|
|
959
965
|
t.modelValue || o(
|
|
960
966
|
"update:modelValue",
|
|
961
967
|
"items" in t.property ? [] : ""
|
|
@@ -1027,20 +1033,20 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
1027
1033
|
};
|
|
1028
1034
|
}
|
|
1029
1035
|
});
|
|
1030
|
-
const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]),
|
|
1036
|
+
const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) => (Fe("data-v-153a2e0f"), c = c(), qe(), c), eo = { class: "picture" }, to = {
|
|
1031
1037
|
key: 0,
|
|
1032
1038
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1033
1039
|
}, no = ["src", "alt"], oo = {
|
|
1034
1040
|
key: 0,
|
|
1035
1041
|
class: "picture__meta"
|
|
1036
|
-
}, ao = ["src"], lo = /* @__PURE__ */
|
|
1042
|
+
}, ao = ["src"], lo = /* @__PURE__ */ gt(() => /* @__PURE__ */ V("line", {
|
|
1037
1043
|
x1: "0",
|
|
1038
1044
|
y1: "0",
|
|
1039
1045
|
x2: "200",
|
|
1040
1046
|
y2: "200",
|
|
1041
1047
|
stroke: "#000",
|
|
1042
1048
|
"vector-effect": "non-scaling-stroke"
|
|
1043
|
-
}, null, -1)), so = /* @__PURE__ */
|
|
1049
|
+
}, null, -1)), so = /* @__PURE__ */ gt(() => /* @__PURE__ */ V("line", {
|
|
1044
1050
|
x1: "200",
|
|
1045
1051
|
y1: "0",
|
|
1046
1052
|
x2: "0",
|
|
@@ -1065,7 +1071,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), bt = (c) =
|
|
|
1065
1071
|
meta: {}
|
|
1066
1072
|
},
|
|
1067
1073
|
setup(c) {
|
|
1068
|
-
const r = c, t = H(() => r.fileId ? `${
|
|
1074
|
+
const r = c, t = H(() => r.fileId ? `${yt}/file/${r.fileId}/picture` : r.url || r.modelValue), o = Y(!1);
|
|
1069
1075
|
return (l, i) => {
|
|
1070
1076
|
var _;
|
|
1071
1077
|
const u = ne("overlay");
|
|
@@ -1149,22 +1155,22 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1149
1155
|
},
|
|
1150
1156
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1151
1157
|
setup(c, { emit: r }) {
|
|
1152
|
-
const t = c, o = r, i = Te() ? ge() : null, u =
|
|
1158
|
+
const t = c, o = r, i = Te() ? ge() : null, u = Y(null), _ = H(() => {
|
|
1153
1159
|
var b;
|
|
1154
1160
|
return u.value ? URL.createObjectURL(u.value) : (b = t.modelValue) == null ? void 0 : b.link;
|
|
1155
1161
|
}), m = H(() => {
|
|
1156
|
-
var b, S,
|
|
1157
|
-
return /^image\//.test((b = t.modelValue) == null ? void 0 : b.type) && !((S = u.value) != null && S.type) || /^image\//.test((
|
|
1162
|
+
var b, S, L;
|
|
1163
|
+
return /^image\//.test((b = t.modelValue) == null ? void 0 : b.type) && !((S = u.value) != null && S.type) || /^image\//.test((L = u.value) == null ? void 0 : L.type);
|
|
1158
1164
|
}), h = (b) => new Promise((S) => {
|
|
1159
|
-
const
|
|
1160
|
-
|
|
1165
|
+
const L = new FileReader();
|
|
1166
|
+
L.onload = () => S(L.result), L.readAsArrayBuffer(b);
|
|
1161
1167
|
}), d = () => {
|
|
1162
1168
|
u.value = null;
|
|
1163
1169
|
}, a = async (b) => {
|
|
1164
1170
|
u.value = b.target.files[0];
|
|
1165
|
-
const S = u.value,
|
|
1171
|
+
const S = u.value, L = await h(S);
|
|
1166
1172
|
if (i) {
|
|
1167
|
-
const { data:
|
|
1173
|
+
const { data: W } = await zt(`${yt}/${i.$id}/upload?name=${S.name}`, L, {
|
|
1168
1174
|
params: {
|
|
1169
1175
|
method: "POST",
|
|
1170
1176
|
headers: {
|
|
@@ -1173,19 +1179,19 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1173
1179
|
}
|
|
1174
1180
|
}
|
|
1175
1181
|
});
|
|
1176
|
-
if (
|
|
1182
|
+
if (bt(W))
|
|
1177
1183
|
return;
|
|
1178
|
-
o("update:modelValue",
|
|
1184
|
+
o("update:modelValue", W);
|
|
1179
1185
|
} else
|
|
1180
1186
|
o("update:modelValue", S);
|
|
1181
|
-
o("update:content",
|
|
1187
|
+
o("update:content", L), o("change", L);
|
|
1182
1188
|
}, p = async () => {
|
|
1183
1189
|
o("update:modelValue", null);
|
|
1184
1190
|
};
|
|
1185
1191
|
return (b, S) => {
|
|
1186
|
-
var
|
|
1192
|
+
var L, W, P, O, M, X;
|
|
1187
1193
|
return n(), s("div", co, [
|
|
1188
|
-
u.value || (
|
|
1194
|
+
u.value || (L = b.modelValue) != null && L._id ? (n(), s("div", po, [
|
|
1189
1195
|
m.value ? (n(), $(Me, {
|
|
1190
1196
|
key: 0,
|
|
1191
1197
|
modelValue: _.value,
|
|
@@ -1193,7 +1199,7 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1193
1199
|
alt: "Image preview",
|
|
1194
1200
|
class: Q(`
|
|
1195
1201
|
file__image
|
|
1196
|
-
${!e(i) || ((
|
|
1202
|
+
${!e(i) || ((W = b.modelValue) == null ? void 0 : W._id) || "file__image--unsent"}
|
|
1197
1203
|
`)
|
|
1198
1204
|
}, null, 8, ["modelValue", "class"])) : y("", !0),
|
|
1199
1205
|
(P = b.modelValue) != null && P._id ? (n(), s("a", {
|
|
@@ -1218,7 +1224,7 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1218
1224
|
]),
|
|
1219
1225
|
_: 1
|
|
1220
1226
|
})
|
|
1221
|
-
])) : (
|
|
1227
|
+
])) : (X = b.modelValue) != null && X._id ? (n(), s("div", yo, [
|
|
1222
1228
|
z(ie, {
|
|
1223
1229
|
small: "",
|
|
1224
1230
|
onClick: ze(p, ["prevent"])
|
|
@@ -1234,7 +1240,7 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1234
1240
|
};
|
|
1235
1241
|
}
|
|
1236
1242
|
});
|
|
1237
|
-
const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-
|
|
1243
|
+
const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-69b23965"]]), bo = { class: "container" }, go = {
|
|
1238
1244
|
key: 1,
|
|
1239
1245
|
class: "container__footer"
|
|
1240
1246
|
}, ko = /* @__PURE__ */ q({
|
|
@@ -1244,7 +1250,7 @@ const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-5fa55625"]]), bo = { cla
|
|
|
1244
1250
|
},
|
|
1245
1251
|
emits: ["endReached"],
|
|
1246
1252
|
setup(c, { emit: r }) {
|
|
1247
|
-
const t = c, o = r, l =
|
|
1253
|
+
const t = c, o = r, l = Y(null), i = t.observeScroll ? We(l, {
|
|
1248
1254
|
antecipate: 100
|
|
1249
1255
|
}).reachedEnd : null;
|
|
1250
1256
|
return i !== null && re(i, (u) => {
|
|
@@ -1319,10 +1325,10 @@ const it = /* @__PURE__ */ G(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { cla
|
|
|
1319
1325
|
};
|
|
1320
1326
|
}
|
|
1321
1327
|
});
|
|
1322
|
-
const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { class: "search__panel" }, Ao = { class: "search__input" }, Oo = ["value"], wo = { style: { flex: "1" } }, Bo = { key: 1 }, So = { key: 0 }, jo = { key: 1 }, To = { class: "search__summary" },
|
|
1328
|
+
const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { class: "search__panel" }, Ao = { class: "search__input" }, Oo = ["value"], wo = { style: { flex: "1" } }, Bo = { key: 1 }, So = { key: 0 }, jo = { key: 1 }, To = { class: "search__summary" }, Ro = {
|
|
1323
1329
|
key: 1,
|
|
1324
1330
|
class: "search"
|
|
1325
|
-
},
|
|
1331
|
+
}, Lo = { key: 0 }, Le = 10, zo = /* @__PURE__ */ q({
|
|
1326
1332
|
__name: "aeria-search",
|
|
1327
1333
|
props: {
|
|
1328
1334
|
modelValue: {},
|
|
@@ -1335,12 +1341,12 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1335
1341
|
},
|
|
1336
1342
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1337
1343
|
setup(c, { emit: r }) {
|
|
1338
|
-
const t = c, o = pe(t.property), l = t.panel !== void 0 ? H(() => t.panel) :
|
|
1344
|
+
const t = c, o = pe(t.property), l = t.panel !== void 0 ? H(() => t.panel) : Y(!1), i = r, u = ue(pe(t.property).$ref), _ = Te(), m = _ ? ge() : null, h = o.indexes;
|
|
1339
1345
|
ye(Ue, pe(t.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
|
|
1340
|
-
const d =
|
|
1346
|
+
const d = Y(t.modelValue), a = Y({
|
|
1341
1347
|
data: [],
|
|
1342
1348
|
pagination: {}
|
|
1343
|
-
}), p = H(() => a.value.data), b = H(() => a.value.pagination), S =
|
|
1349
|
+
}), p = H(() => a.value.data), b = H(() => a.value.pagination), S = Y(0), L = Y(h[0]), W = Y(!1), P = Y({}), O = () => {
|
|
1344
1350
|
const g = {};
|
|
1345
1351
|
if (_) {
|
|
1346
1352
|
const j = e(_);
|
|
@@ -1349,13 +1355,13 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1349
1355
|
return o.constraints ? Ht(o.constraints, g) : {};
|
|
1350
1356
|
}, M = () => {
|
|
1351
1357
|
p.value.length < b.value.recordsTotal && (S.value += 1, w());
|
|
1352
|
-
},
|
|
1353
|
-
limit:
|
|
1354
|
-
offset: S.value *
|
|
1358
|
+
}, X = async () => Object.values(P.value).every((g) => !(String(g).length > 0)) ? u.$actions.custom("getAll", {
|
|
1359
|
+
limit: Le,
|
|
1360
|
+
offset: S.value * Le,
|
|
1355
1361
|
filters: O()
|
|
1356
1362
|
}) : u.$actions.custom("getAll", {
|
|
1357
|
-
limit:
|
|
1358
|
-
offset: S.value *
|
|
1363
|
+
limit: Le,
|
|
1364
|
+
offset: S.value * Le,
|
|
1359
1365
|
filters: {
|
|
1360
1366
|
...O(),
|
|
1361
1367
|
$or: h.filter((g) => {
|
|
@@ -1371,22 +1377,22 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1371
1377
|
}), w = async () => {
|
|
1372
1378
|
if (u.loading.getAll)
|
|
1373
1379
|
return;
|
|
1374
|
-
const g = await
|
|
1380
|
+
const g = await X();
|
|
1375
1381
|
a.value.pagination = g.pagination, S.value === 0 && a.value.data.splice(0), a.value.data.push(...g.data);
|
|
1376
|
-
}, [ee] =
|
|
1382
|
+
}, [ee] = ht({
|
|
1377
1383
|
delay: 800
|
|
1378
1384
|
})(() => {
|
|
1379
|
-
S.value = 0, w(),
|
|
1385
|
+
S.value = 0, w(), W.value = !1;
|
|
1380
1386
|
}), C = () => {
|
|
1381
|
-
|
|
1382
|
-
},
|
|
1387
|
+
W.value = !0, ee();
|
|
1388
|
+
}, R = () => {
|
|
1383
1389
|
"effect" in l ? i("update:panel", !0) : l.value = !0, w();
|
|
1384
1390
|
}, te = () => {
|
|
1385
1391
|
S.value = 0, a.value.data.splice(0), "effect" in l ? i("update:panel", !1) : l.value = !1;
|
|
1386
1392
|
}, oe = H(() => !Object.values(P.value).some((g) => !!g));
|
|
1387
1393
|
re(oe, (g, j) => {
|
|
1388
1394
|
g && !j && w();
|
|
1389
|
-
}),
|
|
1395
|
+
}), mt(() => {
|
|
1390
1396
|
t.selectOnly && w();
|
|
1391
1397
|
});
|
|
1392
1398
|
const le = (g) => {
|
|
@@ -1429,8 +1435,8 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1429
1435
|
V("div", Ao, [
|
|
1430
1436
|
e(h).length > 1 ? (n(), $(Ee, {
|
|
1431
1437
|
key: 0,
|
|
1432
|
-
modelValue:
|
|
1433
|
-
"onUpdate:modelValue": j[0] || (j[0] = (B) =>
|
|
1438
|
+
modelValue: L.value,
|
|
1439
|
+
"onUpdate:modelValue": j[0] || (j[0] = (B) => L.value = B),
|
|
1434
1440
|
onChange: j[1] || (j[1] = (B) => P.value = {})
|
|
1435
1441
|
}, {
|
|
1436
1442
|
default: v(() => [
|
|
@@ -1443,11 +1449,11 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1443
1449
|
}, 8, ["modelValue"])) : y("", !0),
|
|
1444
1450
|
V("div", wo, [
|
|
1445
1451
|
(n(), $(Ie, {
|
|
1446
|
-
key: `field-${
|
|
1447
|
-
modelValue: P.value[
|
|
1448
|
-
"onUpdate:modelValue": j[2] || (j[2] = (B) => P.value[
|
|
1452
|
+
key: `field-${L.value}`,
|
|
1453
|
+
modelValue: P.value[L.value],
|
|
1454
|
+
"onUpdate:modelValue": j[2] || (j[2] = (B) => P.value[L.value] = B),
|
|
1449
1455
|
property: {
|
|
1450
|
-
...e(u).properties[
|
|
1456
|
+
...e(u).properties[L.value],
|
|
1451
1457
|
inputType: "search"
|
|
1452
1458
|
},
|
|
1453
1459
|
onInput: C
|
|
@@ -1472,7 +1478,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1472
1478
|
]),
|
|
1473
1479
|
_: 1
|
|
1474
1480
|
})) : (n(), s("div", Bo, [
|
|
1475
|
-
|
|
1481
|
+
W.value ? (n(), s("div", So, k(e(F)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(P.value).filter((B) => !!B).length > 0 && !("items" in g.property && ((I = g.modelValue) != null && I.length) || !Array.isArray(g.modelValue) && ((T = g.modelValue) != null && T._id)) ? (n(), s("div", jo, k(e(F)("no_results", { capitalize: !0 })), 1)) : y("", !0)
|
|
1476
1482
|
]))
|
|
1477
1483
|
]),
|
|
1478
1484
|
V("div", To, k(e(F)("showing", { capitalize: !0 })) + " " + k(p.value.length) + " " + k(e(F)("of")) + " " + k(b.value.recordsTotal), 1)
|
|
@@ -1481,12 +1487,12 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1481
1487
|
_: 1
|
|
1482
1488
|
}, 8, ["title", "model-value"])
|
|
1483
1489
|
])) : y("", !0),
|
|
1484
|
-
g.selectOnly ? y("", !0) : (n(), s("div",
|
|
1490
|
+
g.selectOnly ? y("", !0) : (n(), s("div", Ro, [
|
|
1485
1491
|
z(it, null, {
|
|
1486
1492
|
footer: v(() => [
|
|
1487
1493
|
Z((n(), $(K, {
|
|
1488
1494
|
icon: "plus",
|
|
1489
|
-
onClick:
|
|
1495
|
+
onClick: R
|
|
1490
1496
|
}, {
|
|
1491
1497
|
default: v(() => [
|
|
1492
1498
|
D(k(e(F)("action.select", { capitalize: !0 })), 1)
|
|
@@ -1499,7 +1505,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1499
1505
|
default: v(() => {
|
|
1500
1506
|
var I;
|
|
1501
1507
|
return [
|
|
1502
|
-
"items" in g.property ? (n(), s("div",
|
|
1508
|
+
"items" in g.property ? (n(), s("div", Lo, [
|
|
1503
1509
|
(n(!0), s(J, null, U(g.modelValue, (T) => (n(), $(De, E({ ref_for: !0 }, {
|
|
1504
1510
|
item: T,
|
|
1505
1511
|
indexes: e(h),
|
|
@@ -1600,17 +1606,17 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1600
1606
|
},
|
|
1601
1607
|
emits: ["update:modelValue", "input", "change"],
|
|
1602
1608
|
setup(c, { emit: r }) {
|
|
1603
|
-
const t =
|
|
1604
|
-
|
|
1609
|
+
const t = $t(), o = c, l = r;
|
|
1610
|
+
ft(() => {
|
|
1605
1611
|
o.modelValue || l("update:modelValue", o.property && "items" in o.property ? [] : {});
|
|
1606
1612
|
});
|
|
1607
1613
|
const i = o.property && pe(o.property), u = i ? i.$ref : o.collection || Te(), _ = u ? ue(e(u)) : null;
|
|
1608
1614
|
!u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1609
1615
|
collection prop, some features may not work as intended`);
|
|
1610
|
-
const m =
|
|
1616
|
+
const m = Y(!1), h = H(() => !o.form && o.property ? "properties" in o.property ? o.property.properties : _ == null ? void 0 : _.properties : o.form), d = H(() => o.layout || (_ == null ? void 0 : _.description.formLayout)), a = (f) => {
|
|
1611
1617
|
const g = ve(f, o[f]);
|
|
1612
1618
|
return o[f] && ye(f, o[f]), g;
|
|
1613
|
-
}, p = H(() => o.validationErrors !== null ? o.validationErrors : _ == null ? void 0 : _.validationErrors), b = a("formComponents") || {}, S = a("propertyComponents") || {},
|
|
1619
|
+
}, p = H(() => o.validationErrors !== null ? o.validationErrors : _ == null ? void 0 : _.validationErrors), b = a("formComponents") || {}, S = a("propertyComponents") || {}, L = a("omitFormHeader"), W = a("omitInputLabels"), P = a("innerInputLabel");
|
|
1614
1620
|
u && ye(Ue, u), ye("searchOnly", o.searchOnly);
|
|
1615
1621
|
const O = (f) => h.value ? Object.entries(h.value).filter(([g, j]) => !j.noForm && f([
|
|
1616
1622
|
g,
|
|
@@ -1621,7 +1627,7 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1621
1627
|
return !0;
|
|
1622
1628
|
const g = o.property && "properties" in o.property ? o.property.form : (j = _ == null ? void 0 : _.description) == null ? void 0 : j.form;
|
|
1623
1629
|
return !g || g.includes(f);
|
|
1624
|
-
},
|
|
1630
|
+
}, X = O(([f]) => M(f)), w = je(), ee = {}, C = (f, g) => {
|
|
1625
1631
|
var T, B, ae, _e;
|
|
1626
1632
|
const j = [], N = ((B = (T = d.value) == null ? void 0 : T.fields) == null ? void 0 : B[f]) || ((_e = (ae = d.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
|
|
1627
1633
|
if (!g)
|
|
@@ -1649,7 +1655,7 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1649
1655
|
padding: 1rem 0;
|
|
1650
1656
|
margin: 1rem 0;
|
|
1651
1657
|
`)), j.join("");
|
|
1652
|
-
},
|
|
1658
|
+
}, R = (f) => f === null || f instanceof Object && !Object.keys(f).length, te = H(() => o.required ? o.required : o.property && "required" in o.property ? o.property.required : _ == null ? void 0 : _.description.required), oe = H(() => o.form ? Mt(
|
|
1653
1659
|
o.modelValue,
|
|
1654
1660
|
o.form,
|
|
1655
1661
|
te.value,
|
|
@@ -1662,21 +1668,21 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1662
1668
|
const j = ne("clickable"), N = ne("focus");
|
|
1663
1669
|
return n(), s("form", {
|
|
1664
1670
|
class: "form",
|
|
1665
|
-
style: $e(`row-gap: ${e(
|
|
1671
|
+
style: $e(`row-gap: ${e(L) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1666
1672
|
}, [
|
|
1667
|
-
f.$slots.header && !e(
|
|
1673
|
+
f.$slots.header && !e(L) ? (n(), s("header", Uo, [
|
|
1668
1674
|
A(f.$slots, "header", {}, void 0, !0)
|
|
1669
1675
|
])) : y("", !0),
|
|
1670
1676
|
A(f.$slots, "default", {}, void 0, !0),
|
|
1671
1677
|
f.isReadOnly ? y("", !0) : (n(), s("fieldset", Eo, [
|
|
1672
|
-
(n(!0), s(J, null, U(e(
|
|
1678
|
+
(n(!0), s(J, null, U(e(X), ([I, T]) => {
|
|
1673
1679
|
var B, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
|
|
1674
1680
|
return n(), s("div", {
|
|
1675
1681
|
key: `field-${I}`,
|
|
1676
1682
|
style: $e(C(I, T)),
|
|
1677
1683
|
class: "form__field"
|
|
1678
1684
|
}, [
|
|
1679
|
-
(!("type" in T) || T.type !== "boolean" || f.searchOnly) && !T.noLabel && !e(
|
|
1685
|
+
(!("type" in T) || T.type !== "boolean" || f.searchOnly) && !T.noLabel && !e(W) && !e(P) ? (n(), s("label", Ho, [
|
|
1680
1686
|
V("div", {
|
|
1681
1687
|
class: Q({
|
|
1682
1688
|
"form__field-label": !0,
|
|
@@ -1754,7 +1760,7 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1754
1760
|
small: "",
|
|
1755
1761
|
variant: "alt",
|
|
1756
1762
|
icon: "plus",
|
|
1757
|
-
disabled: !("inline" in T.items && T.items.inline) && (((me = f.modelValue[I]) == null ? void 0 : me.length) >= T.maxItems ||
|
|
1763
|
+
disabled: !("inline" in T.items && T.items.inline) && (((me = f.modelValue[I]) == null ? void 0 : me.length) >= T.maxItems || R((Ye = f.modelValue[I]) == null ? void 0 : Ye[((Xe = f.modelValue[I]) == null ? void 0 : Xe.length) - 1])),
|
|
1758
1764
|
onClick: ze((x) => {
|
|
1759
1765
|
f.modelValue[I] || (f.modelValue[I] = []), e(Fo)(f.modelValue[I], T, e(t));
|
|
1760
1766
|
}, ["prevent"])
|
|
@@ -1838,7 +1844,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1838
1844
|
__name: "aeria-filter-panel",
|
|
1839
1845
|
emits: ["update:modelValue"],
|
|
1840
1846
|
setup(c, { emit: r }) {
|
|
1841
|
-
const t = r, o = ge(), l =
|
|
1847
|
+
const t = r, o = ge(), l = Re(), i = () => {
|
|
1842
1848
|
o.pagination.offset = 0, o.$actions.filter(), t("update:modelValue", !1), l.push({
|
|
1843
1849
|
query: Ft(o)
|
|
1844
1850
|
});
|
|
@@ -1894,12 +1900,12 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1894
1900
|
_: 1
|
|
1895
1901
|
}, 8, ["title"]));
|
|
1896
1902
|
}
|
|
1897
|
-
}), se =
|
|
1903
|
+
}), se = Y(!1), ut = Y(!1), ke = Y(!1), Be = Y((...c) => null), ct = Y(), dt = !1, ta = /* @__PURE__ */ q({
|
|
1898
1904
|
__name: "aeria-insert-panel",
|
|
1899
1905
|
setup(c) {
|
|
1900
1906
|
const r = ue("meta"), t = ue(r.view.collection), o = ve("individualActions", []), l = async () => {
|
|
1901
1907
|
const _ = await t.$actions.deepInsert();
|
|
1902
|
-
|
|
1908
|
+
bt(_) || (se.value = !1);
|
|
1903
1909
|
}, { t: i } = jt(), u = () => {
|
|
1904
1910
|
r.$actions.ask({
|
|
1905
1911
|
action: () => {
|
|
@@ -1914,7 +1920,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1914
1920
|
const h = ne("clickable");
|
|
1915
1921
|
return n(), $(Ae, {
|
|
1916
1922
|
modelValue: e(se),
|
|
1917
|
-
"onUpdate:modelValue": m[3] || (m[3] = (d) =>
|
|
1923
|
+
"onUpdate:modelValue": m[3] || (m[3] = (d) => vt(se) ? se.value = d : null),
|
|
1918
1924
|
"fixed-right": "",
|
|
1919
1925
|
loading: e(t).loading.get,
|
|
1920
1926
|
onOverlayClick: u
|
|
@@ -1999,7 +2005,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1999
2005
|
}, 8, ["modelValue", "loading"]);
|
|
2000
2006
|
};
|
|
2001
2007
|
}
|
|
2002
|
-
}),
|
|
2008
|
+
}), kt = (c, r) => {
|
|
2003
2009
|
if (r) {
|
|
2004
2010
|
if (!c) {
|
|
2005
2011
|
r.filtersPreset = {}, r.preferredTableProperties = [], r.pagination.offset = 0;
|
|
@@ -2010,12 +2016,12 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2010
2016
|
}, na = (c, r = {
|
|
2011
2017
|
persistInQuery: !0
|
|
2012
2018
|
}) => {
|
|
2013
|
-
const o =
|
|
2019
|
+
const o = Re().currentRoute;
|
|
2014
2020
|
return re(() => o.value.query.section, (l) => {
|
|
2015
2021
|
if (c) {
|
|
2016
2022
|
if (c.description.filtersPresets) {
|
|
2017
2023
|
const i = l || Object.keys(c.description.filtersPresets)[0];
|
|
2018
|
-
|
|
2024
|
+
kt(c.description.filtersPresets[i], c);
|
|
2019
2025
|
}
|
|
2020
2026
|
if (r.persistInQuery) {
|
|
2021
2027
|
const i = o.value.query;
|
|
@@ -2048,9 +2054,9 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2048
2054
|
class: "no-print table__mobile-actions"
|
|
2049
2055
|
}, Sa = ["id"], ja = { key: 1 }, Ta = /* @__PURE__ */ oa(() => /* @__PURE__ */ V("td", { colspan: 10 }, [
|
|
2050
2056
|
/* @__PURE__ */ V("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
|
|
2051
|
-
], -1)),
|
|
2057
|
+
], -1)), Ra = [
|
|
2052
2058
|
Ta
|
|
2053
|
-
],
|
|
2059
|
+
], La = /* @__PURE__ */ q({
|
|
2054
2060
|
__name: "aeria-table",
|
|
2055
2061
|
props: {
|
|
2056
2062
|
columns: {},
|
|
@@ -2068,25 +2074,25 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2068
2074
|
}), m = (p, b) => p != null && p.button ? typeof p.button == "object" ? Qe(b, p.button).satisfied : p.button : !1, h = (p) => {
|
|
2069
2075
|
var b;
|
|
2070
2076
|
return !l.value.xl || !((b = t.layout) != null && b.actions) || !t.actions ? [] : t.actions.filter((S) => {
|
|
2071
|
-
const
|
|
2072
|
-
return m(
|
|
2077
|
+
const L = t.layout.actions[S.action];
|
|
2078
|
+
return m(L, p);
|
|
2073
2079
|
});
|
|
2074
2080
|
}, d = (p) => {
|
|
2075
2081
|
var b;
|
|
2076
2082
|
return t.actions ? !l.value.xl || !((b = t.layout) != null && b.actions) ? t.actions : t.actions.filter((S) => {
|
|
2077
|
-
const
|
|
2078
|
-
return !m(
|
|
2083
|
+
const L = t.layout.actions[S.action];
|
|
2084
|
+
return !m(L, p);
|
|
2079
2085
|
}) : [];
|
|
2080
2086
|
}, a = (p, b) => {
|
|
2081
|
-
var
|
|
2082
|
-
const S = [],
|
|
2083
|
-
return
|
|
2087
|
+
var W, P;
|
|
2088
|
+
const S = [], L = (P = (W = t.layout) == null ? void 0 : W.actions) == null ? void 0 : P[b.action];
|
|
2089
|
+
return L != null && L.if && (Qe(
|
|
2084
2090
|
p,
|
|
2085
|
-
|
|
2091
|
+
L.if
|
|
2086
2092
|
).satisfied || S.push("display: none;")), S.join("");
|
|
2087
2093
|
};
|
|
2088
2094
|
return (p, b) => {
|
|
2089
|
-
var
|
|
2095
|
+
var L, W, P;
|
|
2090
2096
|
const S = ne("clickable");
|
|
2091
2097
|
return p.columns && Object.keys(p.columns).length > 0 || p.$slots.thead ? (n(), s("table", aa, [
|
|
2092
2098
|
p.$slots.thead ? (n(), s("thead", la, [
|
|
@@ -2100,18 +2106,18 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2100
2106
|
onChange: b[0] || (b[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
|
|
2101
2107
|
}, null, 40, ra)
|
|
2102
2108
|
])) : y("", !0),
|
|
2103
|
-
(n(!0), s(J, null, U(Object.entries(p.columns), ([O, M],
|
|
2104
|
-
key: `header-${
|
|
2109
|
+
(n(!0), s(J, null, U(Object.entries(p.columns), ([O, M], X) => (n(), s("th", {
|
|
2110
|
+
key: `header-${X}`,
|
|
2105
2111
|
class: "table__header"
|
|
2106
2112
|
}, k(M.description || e(F)(O)), 1))), 128)),
|
|
2107
|
-
(
|
|
2113
|
+
(L = p.actions) != null && L.length ? (n(), s("th", ua)) : y("", !0)
|
|
2108
2114
|
])
|
|
2109
2115
|
])),
|
|
2110
2116
|
p.$slots.tbody ? (n(), s("tbody", ca, [
|
|
2111
2117
|
A(p.$slots, "tbody", {}, void 0, !0)
|
|
2112
2118
|
])) : (n(), s("tbody", da, [
|
|
2113
2119
|
(n(!0), s(J, null, U(p.rows, (O) => {
|
|
2114
|
-
var M,
|
|
2120
|
+
var M, X;
|
|
2115
2121
|
return n(), s("tr", {
|
|
2116
2122
|
key: O._id,
|
|
2117
2123
|
onClick: (w) => o("itemClick", O)
|
|
@@ -2126,7 +2132,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2126
2132
|
])
|
|
2127
2133
|
])) : y("", !0),
|
|
2128
2134
|
(n(!0), s(J, null, U(Object.entries(p.columns), ([w, ee], C) => {
|
|
2129
|
-
var
|
|
2135
|
+
var R, te, oe, le, f, g;
|
|
2130
2136
|
return n(), s("td", {
|
|
2131
2137
|
key: `column-${O._id}-${C}`
|
|
2132
2138
|
}, [
|
|
@@ -2160,7 +2166,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2160
2166
|
]),
|
|
2161
2167
|
_: 1
|
|
2162
2168
|
}))
|
|
2163
|
-
])) : ((
|
|
2169
|
+
])) : ((R = e(pe)(ee)) == null ? void 0 : R.$ref) === "file" ? (n(), s("div", ba, [
|
|
2164
2170
|
/^image/.test((te = O[w][0]) == null ? void 0 : te.type) && "items" in ee ? (n(), $(Me, {
|
|
2165
2171
|
key: 0,
|
|
2166
2172
|
modelValue: O[w][0].link,
|
|
@@ -2237,7 +2243,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2237
2243
|
_: 2
|
|
2238
2244
|
}, 1040)) : y("", !0)
|
|
2239
2245
|
])
|
|
2240
|
-
])) : (
|
|
2246
|
+
])) : (X = p.actions) != null && X.length ? (n(), s("td", Ba, [
|
|
2241
2247
|
V("div", {
|
|
2242
2248
|
class: "table__mobile-actions-grid",
|
|
2243
2249
|
style: $e(`grid-template-columns: repeat(${h(O).length + (d(O).length ? 1 : 0)}, 1fr);`)
|
|
@@ -2283,13 +2289,13 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2283
2289
|
}), 128))
|
|
2284
2290
|
])),
|
|
2285
2291
|
V("tfoot", null, [
|
|
2286
|
-
p.$slots.tfoot ? A(p.$slots, "tfoot", { key: 0 }, void 0, !0) : p.columns && !((
|
|
2292
|
+
p.$slots.tfoot ? A(p.$slots, "tfoot", { key: 0 }, void 0, !0) : p.columns && !((W = p.rows) != null && W.length) && !((P = e(u)) != null && P.loading.getAll) ? (n(), s("tr", ja, Ra)) : y("", !0)
|
|
2287
2293
|
])
|
|
2288
2294
|
])) : y("", !0);
|
|
2289
2295
|
};
|
|
2290
2296
|
}
|
|
2291
2297
|
});
|
|
2292
|
-
const za = /* @__PURE__ */ G(
|
|
2298
|
+
const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @__PURE__ */ q({
|
|
2293
2299
|
__name: "aeria-tabular",
|
|
2294
2300
|
props: {
|
|
2295
2301
|
individualActions: {},
|
|
@@ -2431,7 +2437,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2431
2437
|
};
|
|
2432
2438
|
}
|
|
2433
2439
|
});
|
|
2434
|
-
const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-
|
|
2440
|
+
const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) => ({
|
|
2435
2441
|
tabular: Ma,
|
|
2436
2442
|
grid: pt,
|
|
2437
2443
|
list: pt
|
|
@@ -2460,31 +2466,31 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2460
2466
|
},
|
|
2461
2467
|
emits: ["uiEvent"],
|
|
2462
2468
|
setup(c, { emit: r }) {
|
|
2463
|
-
const t = c, o = r, l =
|
|
2469
|
+
const t = c, o = r, l = Re(), i = ht({
|
|
2464
2470
|
delay: 600
|
|
2465
2471
|
}), u = ue("meta"), _ = je(), { reachedEnd: m, detach: h } = We(null, {
|
|
2466
2472
|
antecipate: 600
|
|
2467
2473
|
}), d = !_.value.md || t.scrollPagination;
|
|
2468
2474
|
d && re(m, (C) => {
|
|
2469
|
-
C && a.pagination.recordsTotal > a.items.length && S.value < _t && (S.value += 1,
|
|
2475
|
+
C && a.pagination.recordsTotal > a.items.length && S.value < _t && (S.value += 1, W());
|
|
2470
2476
|
});
|
|
2471
2477
|
const a = ue(t.collection);
|
|
2472
2478
|
na(a, {
|
|
2473
2479
|
persistInQuery: !t.noQueryPersistence
|
|
2474
2480
|
});
|
|
2475
|
-
const p =
|
|
2481
|
+
const p = $t(), b = t.action ? e(t.action) : qt(a, l, p);
|
|
2476
2482
|
Be.value = b[0], ct.value = b[1];
|
|
2477
|
-
const S =
|
|
2483
|
+
const S = Y(0), L = Y(!1), W = async (C) => {
|
|
2478
2484
|
a.activeFilters = Object.assign({}, (C == null ? void 0 : C.filters) || a.$filters), Object.assign(a.activeFilters, a.filtersPreset);
|
|
2479
|
-
const
|
|
2485
|
+
const R = {
|
|
2480
2486
|
filters: a.activeFilters,
|
|
2481
2487
|
limit: a.pagination.limit,
|
|
2482
2488
|
offset: a.pagination.offset,
|
|
2483
2489
|
project: a.preferredTableProperties.length > 0 ? a.preferredTableProperties : a.description.table || Object.keys(a.properties)
|
|
2484
2490
|
};
|
|
2485
|
-
S.value > 0 && (
|
|
2486
|
-
const { data: te, pagination: oe } = await a.$actions.retrieveItems(
|
|
2487
|
-
a.pagination.recordsCount = oe.recordsCount, a.pagination.recordsTotal = oe.recordsTotal, S.value === 0 && a.items.splice(0), a.items.push(...te), a.loading.getAll = !1,
|
|
2491
|
+
S.value > 0 && (R.limit = 15, R.offset = S.value * R.limit), a.description.tableMeta && (R.project = R.project.concat(a.description.tableMeta)), C && Object.assign(R, C), a.loading.getAll = !0;
|
|
2492
|
+
const { data: te, pagination: oe } = await a.$actions.retrieveItems(R);
|
|
2493
|
+
a.pagination.recordsCount = oe.recordsCount, a.pagination.recordsTotal = oe.recordsTotal, S.value === 0 && a.items.splice(0), a.items.push(...te), a.loading.getAll = !1, L.value = !0;
|
|
2488
2494
|
}, P = async (C) => {
|
|
2489
2495
|
l.push({
|
|
2490
2496
|
query: {
|
|
@@ -2492,18 +2498,18 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2492
2498
|
offset: C.offset,
|
|
2493
2499
|
limit: C.limit
|
|
2494
2500
|
}
|
|
2495
|
-
}), a.pagination.offset = C.offset, a.pagination.limit = C.limit,
|
|
2501
|
+
}), a.pagination.offset = C.offset, a.pagination.limit = C.limit, W();
|
|
2496
2502
|
}, O = ve("noResultsComponent", null);
|
|
2497
2503
|
re(() => [
|
|
2498
2504
|
l.currentRoute.value.path,
|
|
2499
2505
|
l.currentRoute.value.query.section
|
|
2500
|
-
], async (C,
|
|
2501
|
-
if (
|
|
2506
|
+
], async (C, R) => {
|
|
2507
|
+
if (R && R[0] === C[0] && R[1] === C[1])
|
|
2502
2508
|
return;
|
|
2503
2509
|
const te = l.currentRoute.value;
|
|
2504
2510
|
if (u.view.title = t.collection, u.view.collection = t.collection, ut.value = !1, !t.noFetch && !te.query._popstate) {
|
|
2505
2511
|
const oe = Ut(a, te);
|
|
2506
|
-
Object.keys(oe).length > 0 && Object.assign(a.filters, oe), await
|
|
2512
|
+
Object.keys(oe).length > 0 && Object.assign(a.filters, oe), await W();
|
|
2507
2513
|
}
|
|
2508
2514
|
}, {
|
|
2509
2515
|
immediate: !0,
|
|
@@ -2518,39 +2524,39 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2518
2524
|
$search: `"${C}"`,
|
|
2519
2525
|
$caseSensitive: !1
|
|
2520
2526
|
}
|
|
2521
|
-
}),
|
|
2527
|
+
}), W({
|
|
2522
2528
|
offset: 0
|
|
2523
|
-
})) : (a.filters = Se(a.freshFilters), S.value = 0,
|
|
2529
|
+
})) : (a.filters = Se(a.freshFilters), S.value = 0, W())));
|
|
2524
2530
|
re(() => a.textQuery, (C) => {
|
|
2525
2531
|
M(C);
|
|
2526
2532
|
});
|
|
2527
|
-
const
|
|
2533
|
+
const X = (C) => {
|
|
2528
2534
|
C.currentLayout = C.currentLayout === "tabular" ? C.description.layout.name : "tabular";
|
|
2529
2535
|
};
|
|
2530
2536
|
At(() => {
|
|
2531
2537
|
a.$actions.clearFilters(), a.textQuery = "", h();
|
|
2532
2538
|
}), re(() => ct.value, async (C) => {
|
|
2533
2539
|
var oe;
|
|
2534
|
-
const
|
|
2540
|
+
const R = Se(C);
|
|
2535
2541
|
let te;
|
|
2536
|
-
if (
|
|
2542
|
+
if (R)
|
|
2537
2543
|
if ([
|
|
2538
2544
|
"spawnEdit",
|
|
2539
2545
|
"spawnView",
|
|
2540
2546
|
"duplicate"
|
|
2541
|
-
].includes(
|
|
2547
|
+
].includes(R.name) && (te = a.$actions.get({
|
|
2542
2548
|
filters: {
|
|
2543
|
-
_id:
|
|
2549
|
+
_id: R.params._id
|
|
2544
2550
|
}
|
|
2545
|
-
})),
|
|
2546
|
-
a.$actions.clearItem(), (oe =
|
|
2551
|
+
})), R.name === "spawnAdd")
|
|
2552
|
+
a.$actions.clearItem(), (oe = R.params) != null && oe.item && (a.$actions.setItem(R.params.item), Object.keys(R.params.item).forEach((le) => {
|
|
2547
2553
|
delete a.referenceItem[le];
|
|
2548
2554
|
})), se.value = "add";
|
|
2549
|
-
else if (
|
|
2550
|
-
a.$actions.setItem(
|
|
2551
|
-
else if (
|
|
2555
|
+
else if (R.name === "spawnEdit")
|
|
2556
|
+
a.$actions.setItem(R.params), se.value = "edit";
|
|
2557
|
+
else if (R.name === "spawnView")
|
|
2552
2558
|
ut.value = !0, se.value = "view";
|
|
2553
|
-
else if (
|
|
2559
|
+
else if (R.name === "duplicate") {
|
|
2554
2560
|
await te;
|
|
2555
2561
|
const le = Object.entries(a.item).reduce((f, [g, j]) => {
|
|
2556
2562
|
if (!(g in a.properties))
|
|
@@ -2580,7 +2586,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2580
2586
|
}, {});
|
|
2581
2587
|
a.$actions.setItem(le), delete a.item._id, a.referenceItem = {}, se.value = "duplicate";
|
|
2582
2588
|
} else
|
|
2583
|
-
o("uiEvent",
|
|
2589
|
+
o("uiEvent", R);
|
|
2584
2590
|
}, {
|
|
2585
2591
|
deep: !0
|
|
2586
2592
|
}), re(() => se, (C) => {
|
|
@@ -2590,14 +2596,14 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2590
2596
|
click: Be.value(C),
|
|
2591
2597
|
...C
|
|
2592
2598
|
}))), ee = H(() => a.actions.filter((C) => !C.button));
|
|
2593
|
-
return ye(Ue, H(() => t.collection)), ye("individualActions", w), (C,
|
|
2599
|
+
return ye(Ue, H(() => t.collection)), ye("individualActions", w), (C, R) => {
|
|
2594
2600
|
var le, f, g, j, N, I, T;
|
|
2595
2601
|
const te = ne("clickable"), oe = ne("loading");
|
|
2596
2602
|
return n(), s(J, null, [
|
|
2597
2603
|
e(ke) ? (n(), $(ea, {
|
|
2598
2604
|
key: e(a).$id,
|
|
2599
2605
|
modelValue: e(ke),
|
|
2600
|
-
"onUpdate:modelValue":
|
|
2606
|
+
"onUpdate:modelValue": R[0] || (R[0] = (B) => vt(ke) ? ke.value = B : null)
|
|
2601
2607
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2602
2608
|
e(se) ? (n(), $(ta, { key: 1 }, de({ _: 2 }, [
|
|
2603
2609
|
U(Object.keys(C.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
@@ -2611,7 +2617,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2611
2617
|
e(a).description.search ? (n(), s("div", Wa, [
|
|
2612
2618
|
z(Ie, E({
|
|
2613
2619
|
modelValue: e(a).textQuery,
|
|
2614
|
-
"onUpdate:modelValue":
|
|
2620
|
+
"onUpdate:modelValue": R[1] || (R[1] = (B) => e(a).textQuery = B)
|
|
2615
2621
|
}, {
|
|
2616
2622
|
property: {
|
|
2617
2623
|
type: "string",
|
|
@@ -2645,7 +2651,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2645
2651
|
fn: v(() => [
|
|
2646
2652
|
Z((n(), $(K, {
|
|
2647
2653
|
icon: "funnel",
|
|
2648
|
-
onClick:
|
|
2654
|
+
onClick: R[2] || (R[2] = (B) => ke.value = !0)
|
|
2649
2655
|
}, {
|
|
2650
2656
|
default: v(() => [
|
|
2651
2657
|
D(k(e(F)("filters", { capitalize: !0 })), 1)
|
|
@@ -2670,7 +2676,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2670
2676
|
fn: v(() => [
|
|
2671
2677
|
Z((n(), $(K, {
|
|
2672
2678
|
icon: "table",
|
|
2673
|
-
onClick:
|
|
2679
|
+
onClick: R[3] || (R[3] = (B) => X(e(a)))
|
|
2674
2680
|
}, {
|
|
2675
2681
|
default: v(() => [
|
|
2676
2682
|
D(k(e(F)("change_layout", { capitalize: !0 })), 1)
|
|
@@ -2702,7 +2708,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2702
2708
|
key: 1,
|
|
2703
2709
|
variant: "alt",
|
|
2704
2710
|
icon: "funnel",
|
|
2705
|
-
onClick:
|
|
2711
|
+
onClick: R[4] || (R[4] = (B) => ke.value = !0)
|
|
2706
2712
|
}, {
|
|
2707
2713
|
default: v(() => [
|
|
2708
2714
|
Ja,
|
|
@@ -2730,7 +2736,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2730
2736
|
])
|
|
2731
2737
|
])) : y("", !0),
|
|
2732
2738
|
Z((n(), s("div", null, [
|
|
2733
|
-
e(a).itemsCount === 0 && !e(a).loading.getAll &&
|
|
2739
|
+
e(a).itemsCount === 0 && !e(a).loading.getAll && L.value && (e(O) || C.$slots.empty) ? (n(), s("div", Ka, [
|
|
2734
2740
|
e(O) ? (n(), $(he(e(O)), ce(E({ key: 0 }, {
|
|
2735
2741
|
collection: e(a).$id
|
|
2736
2742
|
})), {
|
|
@@ -2738,7 +2744,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2738
2744
|
e(a).filtersCount === 0 && e(a).description.actions && "ui:spawnAdd" in e(a).description.actions ? (n(), $(ie, {
|
|
2739
2745
|
key: 0,
|
|
2740
2746
|
icon: "plus",
|
|
2741
|
-
onClick:
|
|
2747
|
+
onClick: R[5] || (R[5] = (B) => e(Be)({
|
|
2742
2748
|
action: "ui:spawnAdd"
|
|
2743
2749
|
})())
|
|
2744
2750
|
}, {
|
|
@@ -2788,7 +2794,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2788
2794
|
};
|
|
2789
2795
|
}
|
|
2790
2796
|
});
|
|
2791
|
-
const
|
|
2797
|
+
const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { class: "prompt" }, xa = /* @__PURE__ */ q({
|
|
2792
2798
|
__name: "aeria-prompt",
|
|
2793
2799
|
props: {
|
|
2794
2800
|
title: {},
|
|
@@ -2949,7 +2955,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2949
2955
|
};
|
|
2950
2956
|
}
|
|
2951
2957
|
});
|
|
2952
|
-
const
|
|
2958
|
+
const Ll = /* @__PURE__ */ G(rl, [["__scopeId", "data-v-1166be3d"]]);
|
|
2953
2959
|
const ul = {}, cl = { class: "menu" };
|
|
2954
2960
|
function dl(c, r) {
|
|
2955
2961
|
return n(), s("menu", cl, [
|
|
@@ -2978,7 +2984,7 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
2978
2984
|
dropdown: { type: Boolean }
|
|
2979
2985
|
},
|
|
2980
2986
|
setup(c) {
|
|
2981
|
-
const r = c, t = Bt(), o =
|
|
2987
|
+
const r = c, t = Bt(), o = Re(), l = je(), i = "query" in r && r.query ? "query" : "params", u = H(() => {
|
|
2982
2988
|
const m = o.currentRoute.value[i][r.query || r.param];
|
|
2983
2989
|
return m || Object.keys(t)[0];
|
|
2984
2990
|
}), _ = (m) => {
|
|
@@ -3055,7 +3061,7 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3055
3061
|
promise: Promise
|
|
3056
3062
|
},
|
|
3057
3063
|
setup(c) {
|
|
3058
|
-
const r =
|
|
3064
|
+
const r = Y(c.initialValue);
|
|
3059
3065
|
return c.promise instanceof Promise && c.promise.then((t) => {
|
|
3060
3066
|
r.value = t;
|
|
3061
3067
|
}), () => St("div", r.value);
|
|
@@ -3066,7 +3072,7 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3066
3072
|
collection: {}
|
|
3067
3073
|
},
|
|
3068
3074
|
setup(c) {
|
|
3069
|
-
const r = c, o =
|
|
3075
|
+
const r = c, o = Re().currentRoute, l = H(() => {
|
|
3070
3076
|
try {
|
|
3071
3077
|
const i = r.collection ? r.collection : o.value.meta.collection || o.value.params.collection;
|
|
3072
3078
|
return ge(i);
|
|
@@ -3084,17 +3090,17 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3084
3090
|
fn: v(() => [
|
|
3085
3091
|
V("div", {
|
|
3086
3092
|
class: "topbar__preset",
|
|
3087
|
-
onClick: (h) => e(
|
|
3093
|
+
onClick: (h) => e(kt)(m, l.value)
|
|
3088
3094
|
}, [
|
|
3089
3095
|
m.icon ? (n(), $(K, {
|
|
3090
3096
|
key: 0,
|
|
3091
3097
|
icon: m.icon
|
|
3092
3098
|
}, {
|
|
3093
3099
|
default: v(() => [
|
|
3094
|
-
D(k(m.
|
|
3100
|
+
D(k(m.label || e(F)(_, { plural: !0 })), 1)
|
|
3095
3101
|
]),
|
|
3096
3102
|
_: 2
|
|
3097
|
-
}, 1032, ["icon"])) : (n(), s("div", kl, k(m.
|
|
3103
|
+
}, 1032, ["icon"])) : (n(), s("div", kl, k(m.label || e(F)(_, { plural: !0 })), 1)),
|
|
3098
3104
|
m.badgeFunction ? (n(), $(be, { key: 2 }, {
|
|
3099
3105
|
default: v(() => [
|
|
3100
3106
|
z(e(bl), {
|
|
@@ -3110,7 +3116,7 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3110
3116
|
]), 1024)) : y("", !0);
|
|
3111
3117
|
}
|
|
3112
3118
|
});
|
|
3113
|
-
const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-
|
|
3119
|
+
const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3114
3120
|
__proto__: null,
|
|
3115
3121
|
default: Cl
|
|
3116
3122
|
}, Symbol.toStringTag, { value: "Module" })), Ml = /* @__PURE__ */ q({
|
|
@@ -3167,7 +3173,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3167
3173
|
{
|
|
3168
3174
|
path: "signin",
|
|
3169
3175
|
name: "/user/signin",
|
|
3170
|
-
component: () => import("./signin-
|
|
3176
|
+
component: () => import("./signin-6d124882.js"),
|
|
3171
3177
|
meta: {
|
|
3172
3178
|
title: "Autenticação"
|
|
3173
3179
|
}
|
|
@@ -3175,7 +3181,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3175
3181
|
{
|
|
3176
3182
|
path: "signup",
|
|
3177
3183
|
name: "/user/signup",
|
|
3178
|
-
component: () => import("./signup-
|
|
3184
|
+
component: () => import("./signup-5fc5d662.js"),
|
|
3179
3185
|
meta: {
|
|
3180
3186
|
title: "Registro"
|
|
3181
3187
|
}
|
|
@@ -3183,7 +3189,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3183
3189
|
{
|
|
3184
3190
|
path: "activation",
|
|
3185
3191
|
name: "/user/activation",
|
|
3186
|
-
component: () => import("./activation-
|
|
3192
|
+
component: () => import("./activation-adac6722.js"),
|
|
3187
3193
|
meta: {
|
|
3188
3194
|
title: "Ativação"
|
|
3189
3195
|
}
|
|
@@ -3205,7 +3211,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3205
3211
|
name: "/dashboard/crud",
|
|
3206
3212
|
props: !0,
|
|
3207
3213
|
components: {
|
|
3208
|
-
default: () => import("./crud-view-
|
|
3214
|
+
default: () => import("./crud-view-b854fb49.js"),
|
|
3209
3215
|
topbar: () => Promise.resolve().then(() => Il)
|
|
3210
3216
|
},
|
|
3211
3217
|
meta: {
|
|
@@ -3223,7 +3229,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3223
3229
|
children: [
|
|
3224
3230
|
{
|
|
3225
3231
|
path: "profile",
|
|
3226
|
-
component: () => import("./profile-
|
|
3232
|
+
component: () => import("./profile-4233fd1d.js"),
|
|
3227
3233
|
meta: {
|
|
3228
3234
|
title: "Meu perfil",
|
|
3229
3235
|
icon: "user-square"
|
|
@@ -3232,7 +3238,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3232
3238
|
{
|
|
3233
3239
|
path: "changepass",
|
|
3234
3240
|
name: "/dashboard/user/changepass",
|
|
3235
|
-
component: () => import("./password-change-
|
|
3241
|
+
component: () => import("./password-change-aa004ecb.js"),
|
|
3236
3242
|
meta: {
|
|
3237
3243
|
title: "Mudar senha",
|
|
3238
3244
|
icon: "lock"
|
|
@@ -3253,7 +3259,7 @@ export {
|
|
|
3253
3259
|
ie as a,
|
|
3254
3260
|
K as b,
|
|
3255
3261
|
Qn as c,
|
|
3256
|
-
|
|
3262
|
+
Rl as d,
|
|
3257
3263
|
Me as e,
|
|
3258
3264
|
zl as f,
|
|
3259
3265
|
Ae as g,
|
|
@@ -3265,7 +3271,7 @@ export {
|
|
|
3265
3271
|
Ce as m,
|
|
3266
3272
|
qa as n,
|
|
3267
3273
|
$n as o,
|
|
3268
|
-
|
|
3274
|
+
Ll as p,
|
|
3269
3275
|
Mn as q,
|
|
3270
3276
|
za as r,
|
|
3271
3277
|
$l as s,
|