@aeria-ui/ui 0.0.18 → 0.0.20
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-0f4f6ccc.js → activation-edb1cfdd.js} +1 -1
- package/dist/{crud-view-e1856c90.js → crud-view-7ff4d925.js} +1 -1
- package/dist/{index-0298408f.js → index-ad5c6c32.js} +331 -331
- package/dist/less/theme.less +0 -2
- package/dist/{password-change-88b45c35.js → password-change-881f8fa1.js} +1 -1
- package/dist/{profile-0b0e4747.js → profile-d07710d9.js} +1 -1
- package/dist/signin-60f5fe25.js +83 -0
- package/dist/signup-73b5812e.js +112 -0
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
- package/themes/animate.less +4 -4
- package/dist/signin-ae2965d5.js +0 -83
- package/dist/signup-0828ed0e.js +0 -112
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { t as
|
|
1
|
+
import { defineComponent as E, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as l, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as O, createCommentVNode as f, createTextVNode as Q, unref as t, renderSlot as k, inject as ve, computed as D, createElementVNode as g, mergeProps as G, createBlock as $, resolveDynamicComponent as ye, withCtx as _, useCssVars as bt, Teleport as We, watch as ue, createVNode as M, vModelDynamic as gt, onBeforeMount as vt, normalizeStyle as he, withModifiers as Me, pushScopeId as Ue, popScopeId as Ee, provide as fe, onMounted as kt, isRef as je, normalizeProps as le, guardReactiveProps as be, createSlots as de, vModelCheckbox as Vt, onUnmounted as Ct, resolveComponent as It, Suspense as At, useSlots as Ot, h as wt } from "vue";
|
|
2
|
+
import { t as q } from "@aeria-ui/i18n";
|
|
3
3
|
import { useScrollObserver as Xe, useBreakpoints as Te, useClipboard as Bt, PAGINATION_PER_PAGE_DEFAULTS as St, API_URL as ft, request as jt, useDebounce as yt, isDocumentComplete as Tt, convertToSearchQuery as it, useAction as Lt, convertFromSearchQuery as Rt, usePasswordPolicy as Ft } from "@aeria-ui/web";
|
|
4
4
|
import { useStore as ce, getStoreId as Le, useParentStore as ge, STORE_ID as ze, getGlobalStateManager as Mt } from "@aeria-ui/state-management";
|
|
5
5
|
import { useRouter as Re } from "vue-router";
|
|
@@ -8,7 +8,7 @@ import { vMaska as Ht } from "maska";
|
|
|
8
8
|
const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "accordion__content"
|
|
11
|
-
}, Wt = /* @__PURE__ */
|
|
11
|
+
}, Wt = /* @__PURE__ */ E({
|
|
12
12
|
__name: "aeria-accordion",
|
|
13
13
|
props: {
|
|
14
14
|
enumerate: { type: Boolean },
|
|
@@ -33,8 +33,8 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
33
33
|
class: "accordion__header",
|
|
34
34
|
onClick: (m) => u.value === i ? u.value = null : u.value = i
|
|
35
35
|
}, [
|
|
36
|
-
a.enumerate ? (n(), l("span", Qt,
|
|
37
|
-
Q(" " +
|
|
36
|
+
a.enumerate ? (n(), l("span", Qt, O(y + 1) + ". ", 1)) : f("", !0),
|
|
37
|
+
Q(" " + O(a.headers[i] ? e(a.headers[i]) : t(q)(i)), 1)
|
|
38
38
|
], 8, Dt)), [
|
|
39
39
|
[r]
|
|
40
40
|
]),
|
|
@@ -51,7 +51,7 @@ const X = (c, u) => {
|
|
|
51
51
|
for (const [a, s] of u)
|
|
52
52
|
e[a] = s;
|
|
53
53
|
return e;
|
|
54
|
-
}, js = /* @__PURE__ */ X(Wt, [["__scopeId", "data-v-3ea933d4"]]), Xt = /* @__PURE__ */
|
|
54
|
+
}, js = /* @__PURE__ */ X(Wt, [["__scopeId", "data-v-3ea933d4"]]), Xt = /* @__PURE__ */ E({
|
|
55
55
|
__name: "aeria-badge",
|
|
56
56
|
props: {
|
|
57
57
|
large: { type: Boolean },
|
|
@@ -69,7 +69,7 @@ const X = (c, u) => {
|
|
|
69
69
|
], 2));
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
const $e = /* @__PURE__ */ X(Xt, [["__scopeId", "data-v-47f92648"]]), Yt = /* @__PURE__ */
|
|
72
|
+
const $e = /* @__PURE__ */ X(Xt, [["__scopeId", "data-v-47f92648"]]), Yt = /* @__PURE__ */ E({
|
|
73
73
|
__name: "aeria-bare-button",
|
|
74
74
|
props: {
|
|
75
75
|
disabled: { type: Boolean }
|
|
@@ -93,7 +93,7 @@ const $e = /* @__PURE__ */ X(Xt, [["__scopeId", "data-v-47f92648"]]), Yt = /* @_
|
|
|
93
93
|
const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["href"], Kt = {
|
|
94
94
|
key: 0,
|
|
95
95
|
"data-component": "icon-label"
|
|
96
|
-
}, Zt = /* @__PURE__ */
|
|
96
|
+
}, Zt = /* @__PURE__ */ E({
|
|
97
97
|
__name: "aeria-icon",
|
|
98
98
|
props: {
|
|
99
99
|
icon: {},
|
|
@@ -144,7 +144,7 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
144
144
|
const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { class: "panel__header-left" }, Nt = { key: 1 }, xt = {
|
|
145
145
|
key: 2,
|
|
146
146
|
style: { "margin-left": "auto" }
|
|
147
|
-
}, en = /* @__PURE__ */
|
|
147
|
+
}, en = /* @__PURE__ */ E({
|
|
148
148
|
__name: "aeria-panel",
|
|
149
149
|
props: {
|
|
150
150
|
closeHint: { type: Boolean, default: !1 },
|
|
@@ -212,7 +212,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
212
212
|
`)
|
|
213
213
|
}, [
|
|
214
214
|
g("div", Pt, [
|
|
215
|
-
o.$slots.header ? k(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), l("div", Nt,
|
|
215
|
+
o.$slots.header ? k(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), l("div", Nt, O(o.title), 1)) : f("", !0),
|
|
216
216
|
o.$slots.extra ? (n(), l("div", xt, [
|
|
217
217
|
k(o.$slots, "extra", {}, void 0, !0)
|
|
218
218
|
])) : f("", !0)
|
|
@@ -270,10 +270,10 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
});
|
|
273
|
-
const
|
|
273
|
+
const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-729778b1"]]), tn = { class: "button__content" }, nn = {
|
|
274
274
|
key: 1,
|
|
275
275
|
class: "button__content"
|
|
276
|
-
}, on = /* @__PURE__ */
|
|
276
|
+
}, on = /* @__PURE__ */ E({
|
|
277
277
|
__name: "aeria-button",
|
|
278
278
|
props: {
|
|
279
279
|
size: {},
|
|
@@ -322,7 +322,7 @@ const Ie = /* @__PURE__ */ X(en, [["__scopeId", "data-v-729778b1"]]), tn = { cla
|
|
|
322
322
|
}, 8, ["class", "disabled"]));
|
|
323
323
|
}
|
|
324
324
|
});
|
|
325
|
-
const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { class: "card__picture" }, sn = { class: "card__footer" }, ln = { class: "card__footer-upper" }, rn = { class: "card__badge" }, un = /* @__PURE__ */
|
|
325
|
+
const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { class: "card__picture" }, sn = { class: "card__footer" }, ln = { class: "card__footer-upper" }, rn = { class: "card__badge" }, un = /* @__PURE__ */ E({
|
|
326
326
|
__name: "aeria-card",
|
|
327
327
|
props: {
|
|
328
328
|
inactive: { type: Boolean },
|
|
@@ -356,7 +356,7 @@ const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { cla
|
|
|
356
356
|
const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { class: "content__body" }, pn = {
|
|
357
357
|
key: 0,
|
|
358
358
|
class: "content__section"
|
|
359
|
-
}, _n = { class: "content__item" }, mn = /* @__PURE__ */
|
|
359
|
+
}, _n = { class: "content__item" }, mn = /* @__PURE__ */ E({
|
|
360
360
|
__name: "aeria-context-menu",
|
|
361
361
|
props: {
|
|
362
362
|
actions: {},
|
|
@@ -408,7 +408,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
408
408
|
key: 1,
|
|
409
409
|
to: "main"
|
|
410
410
|
}, [
|
|
411
|
-
Z((n(), $(
|
|
411
|
+
Z((n(), $(Ae, {
|
|
412
412
|
modelValue: r.value,
|
|
413
413
|
"onUpdate:modelValue": d[4] || (d[4] = (b) => r.value = b),
|
|
414
414
|
fill: "",
|
|
@@ -452,7 +452,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
452
452
|
icon: V.icon
|
|
453
453
|
}, {
|
|
454
454
|
default: _(() => [
|
|
455
|
-
Q(
|
|
455
|
+
Q(O(V.translate ? t(q)(V.name) : V.name), 1)
|
|
456
456
|
]),
|
|
457
457
|
_: 2
|
|
458
458
|
}, 1032, ["icon"])) : f("", !0)
|
|
@@ -491,7 +491,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
});
|
|
494
|
-
const Ce = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-a5573a52"]]), vn = { class: "info__content" }, fn = /* @__PURE__ */
|
|
494
|
+
const Ce = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-a5573a52"]]), vn = { class: "info__content" }, fn = /* @__PURE__ */ E({
|
|
495
495
|
__name: "aeria-info",
|
|
496
496
|
props: {
|
|
497
497
|
where: {}
|
|
@@ -531,7 +531,7 @@ const yn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), hn = { cla
|
|
|
531
531
|
}, gn = ["placeholder", "readonly", "value"], kn = ["value", "data-maska"], Vn = {
|
|
532
532
|
key: 1,
|
|
533
533
|
class: "input__clipboard"
|
|
534
|
-
}, Cn = /* @__PURE__ */
|
|
534
|
+
}, Cn = /* @__PURE__ */ E({
|
|
535
535
|
__name: "aeria-input",
|
|
536
536
|
props: {
|
|
537
537
|
modelValue: {},
|
|
@@ -578,7 +578,7 @@ const yn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), hn = { cla
|
|
|
578
578
|
"date",
|
|
579
579
|
"date-time"
|
|
580
580
|
].includes(o.type) ? h() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), V = (j) => {
|
|
581
|
-
const
|
|
581
|
+
const U = (() => {
|
|
582
582
|
if (o.type === "number")
|
|
583
583
|
return Number(j);
|
|
584
584
|
if (!("type" in a && a.type === "string"))
|
|
@@ -591,15 +591,15 @@ const yn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), hn = { cla
|
|
|
591
591
|
return j;
|
|
592
592
|
}
|
|
593
593
|
})();
|
|
594
|
-
v("input",
|
|
595
|
-
}, R = (j,
|
|
596
|
-
const { masked:
|
|
594
|
+
v("input", U), v("update:modelValue", U);
|
|
595
|
+
}, R = (j, U) => {
|
|
596
|
+
const { masked: w } = U || {}, ae = b.value = j.target.value, x = w ? j.detail.unmasked : ae;
|
|
597
597
|
V(x);
|
|
598
598
|
};
|
|
599
|
-
return ue(() => e.modelValue, (j,
|
|
600
|
-
j instanceof Date || (
|
|
601
|
-
}), (j,
|
|
602
|
-
const
|
|
599
|
+
return ue(() => e.modelValue, (j, U) => {
|
|
600
|
+
j instanceof Date || (U && !j ? b.value = void 0 : j && U === void 0 && (b.value = j));
|
|
601
|
+
}), (j, U) => {
|
|
602
|
+
const w = N("focus"), ae = N("clickable");
|
|
603
603
|
return n(), l("label", hn, [
|
|
604
604
|
t(i) ? f("", !0) : (n(), l("div", $n, [
|
|
605
605
|
j.$slots.default ? k(j.$slots, "default", { key: 0 }, void 0, !0) : k(j.$slots, "description", { key: 1 }, void 0, !0)
|
|
@@ -624,7 +624,7 @@ const yn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), hn = { cla
|
|
|
624
624
|
`),
|
|
625
625
|
onInput: R
|
|
626
626
|
}, null, 42, gn), [
|
|
627
|
-
[
|
|
627
|
+
[w, t(a).focus]
|
|
628
628
|
])
|
|
629
629
|
], 2)) : (n(), l("div", {
|
|
630
630
|
key: 3,
|
|
@@ -643,11 +643,11 @@ const yn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), hn = { cla
|
|
|
643
643
|
${t(s) && "input__input--icon"}
|
|
644
644
|
${t(y) && "input__input--readOnly"}
|
|
645
645
|
`,
|
|
646
|
-
onMaska:
|
|
647
|
-
onChange:
|
|
646
|
+
onMaska: U[0] || (U[0] = (x) => R(x, { masked: !0 })),
|
|
647
|
+
onChange: U[1] || (U[1] = (x) => v("change", x))
|
|
648
648
|
}), null, 16, kn), [
|
|
649
649
|
[t(Ht)],
|
|
650
|
-
[
|
|
650
|
+
[w, t(a).focus]
|
|
651
651
|
]),
|
|
652
652
|
t(s) ? (n(), $(K, {
|
|
653
653
|
key: 0,
|
|
@@ -665,7 +665,7 @@ const yn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), hn = { cla
|
|
|
665
665
|
default: _(() => [
|
|
666
666
|
Z(M(K, {
|
|
667
667
|
icon: "clipboard",
|
|
668
|
-
onClick:
|
|
668
|
+
onClick: U[2] || (U[2] = (x) => t(m)(String(j.modelValue || "")))
|
|
669
669
|
}, null, 512), [
|
|
670
670
|
[ae]
|
|
671
671
|
])
|
|
@@ -678,10 +678,10 @@ const yn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), hn = { cla
|
|
|
678
678
|
};
|
|
679
679
|
}
|
|
680
680
|
});
|
|
681
|
-
const
|
|
681
|
+
const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-3e3e8c77"]]), In = ["value"], An = {
|
|
682
682
|
key: 1,
|
|
683
683
|
value: ""
|
|
684
|
-
}, On = ["value", "data-selected"], wn = /* @__PURE__ */
|
|
684
|
+
}, On = ["value", "data-selected"], wn = /* @__PURE__ */ E({
|
|
685
685
|
__name: "aeria-select",
|
|
686
686
|
props: {
|
|
687
687
|
modelValue: {},
|
|
@@ -738,18 +738,18 @@ const Ae = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-3e3e8c77"]]), An = ["val
|
|
|
738
738
|
key: 0,
|
|
739
739
|
icon: t(r).icon
|
|
740
740
|
}, null, 8, ["icon"])) : f("", !0),
|
|
741
|
-
e.multiple ? f("", !0) : (n(), l("option",
|
|
741
|
+
e.multiple ? f("", !0) : (n(), l("option", An, O(t(q)("none")), 1)),
|
|
742
742
|
(n(!0), l(J, null, H("enum" in t(r) ? t(r).enum : [], (h) => (n(), l("option", {
|
|
743
743
|
key: h,
|
|
744
744
|
value: h,
|
|
745
745
|
"data-selected": m(h)
|
|
746
|
-
},
|
|
746
|
+
}, O(t(r).translate ? t(q)(h) : h), 9, On))), 128)),
|
|
747
747
|
k(d.$slots, "default", {}, void 0, !0)
|
|
748
|
-
], 16,
|
|
748
|
+
], 16, In)
|
|
749
749
|
], 2));
|
|
750
750
|
}
|
|
751
751
|
});
|
|
752
|
-
const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { class: "pagination" }, Sn = ["value"], jn = { class: "pagination__control" }, Tn = { class: "pagination__page-input" }, Ln = /* @__PURE__ */
|
|
752
|
+
const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { class: "pagination" }, Sn = ["value"], jn = { class: "pagination__control" }, Tn = { class: "pagination__page-input" }, Ln = /* @__PURE__ */ E({
|
|
753
753
|
__name: "aeria-pagination",
|
|
754
754
|
props: {
|
|
755
755
|
pagination: {}
|
|
@@ -791,7 +791,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
791
791
|
(n(!0), l(J, null, H(t(St), (o) => (n(), l("option", {
|
|
792
792
|
key: `limit-${o}`,
|
|
793
793
|
value: o
|
|
794
|
-
},
|
|
794
|
+
}, O(o), 9, Sn))), 128))
|
|
795
795
|
]),
|
|
796
796
|
_: 1
|
|
797
797
|
}, 8, ["modelValue"]),
|
|
@@ -820,7 +820,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
820
820
|
_: 1
|
|
821
821
|
}, 8, ["disabled"]),
|
|
822
822
|
g("div", Tn, [
|
|
823
|
-
(n(), $(
|
|
823
|
+
(n(), $(Ie, {
|
|
824
824
|
key: s.value,
|
|
825
825
|
modelValue: i.value,
|
|
826
826
|
"onUpdate:modelValue": d[3] || (d[3] = (o) => i.value = o),
|
|
@@ -832,7 +832,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
832
832
|
s.value = i.value === 0 ? 0 : i.value - 1;
|
|
833
833
|
})
|
|
834
834
|
}, null, 8, ["modelValue"])),
|
|
835
|
-
g("span", null,
|
|
835
|
+
g("span", null, O(t(q)("of")) + " " + O(y.value), 1)
|
|
836
836
|
]),
|
|
837
837
|
M(me, {
|
|
838
838
|
disabled: s.value === y.value - 1,
|
|
@@ -863,7 +863,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
863
863
|
});
|
|
864
864
|
const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { class: "checkbox__text" }, Mn = ["innerHTML"], qn = { class: "checkbox__hint" }, Un = ["innerHTML"], En = {
|
|
865
865
|
inheritAttrs: !1
|
|
866
|
-
}, zn = /* @__PURE__ */
|
|
866
|
+
}, zn = /* @__PURE__ */ E({
|
|
867
867
|
...En,
|
|
868
868
|
__name: "aeria-checkbox",
|
|
869
869
|
props: {
|
|
@@ -924,7 +924,7 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { cla
|
|
|
924
924
|
g("div", null, [
|
|
925
925
|
m.$slots.description ? k(m.$slots, "description", { key: 0 }, void 0, !0) : t(i) ? (n(), l("div", {
|
|
926
926
|
key: 1,
|
|
927
|
-
innerHTML: t(a).translate ? t(
|
|
927
|
+
innerHTML: t(a).translate ? t(q)(t(i)) : t(i)
|
|
928
928
|
}, null, 8, Mn)) : k(m.$slots, "default", { key: 2 }, void 0, !0)
|
|
929
929
|
]),
|
|
930
930
|
g("div", qn, [
|
|
@@ -942,7 +942,7 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { cla
|
|
|
942
942
|
});
|
|
943
943
|
const Hn = /* @__PURE__ */ X(zn, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
|
|
944
944
|
inheritAttrs: !1
|
|
945
|
-
}, Qn = /* @__PURE__ */
|
|
945
|
+
}, Qn = /* @__PURE__ */ E({
|
|
946
946
|
...Dn,
|
|
947
947
|
__name: "aeria-options",
|
|
948
948
|
props: {
|
|
@@ -987,7 +987,7 @@ const Hn = /* @__PURE__ */ X(zn, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
|
|
|
987
987
|
});
|
|
988
988
|
const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) => (Ue("data-v-30f5a5ca"), c = c(), Ee(), c), Xn = { class: "switch-wrapper" }, Yn = /* @__PURE__ */ Wn(() => /* @__PURE__ */ g("div", { class: "switch__slider" }, null, -1)), Jn = { key: 1 }, Kn = {
|
|
989
989
|
inheritAttrs: !1
|
|
990
|
-
}, Zn = /* @__PURE__ */
|
|
990
|
+
}, Zn = /* @__PURE__ */ E({
|
|
991
991
|
...Kn,
|
|
992
992
|
__name: "aeria-switch",
|
|
993
993
|
props: {
|
|
@@ -1025,7 +1025,7 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) =
|
|
|
1025
1025
|
blocked: t(s).readOnly
|
|
1026
1026
|
}]
|
|
1027
1027
|
]),
|
|
1028
|
-
i.$slots.default ? k(i.$slots, "default", { key: 0 }, void 0, !0) : (n(), l("div", Jn,
|
|
1028
|
+
i.$slots.default ? k(i.$slots, "default", { key: 0 }, void 0, !0) : (n(), l("div", Jn, O(t(s).description || i.propertyName), 1))
|
|
1029
1029
|
]);
|
|
1030
1030
|
};
|
|
1031
1031
|
}
|
|
@@ -1053,7 +1053,7 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), ht = (c) =
|
|
|
1053
1053
|
}, null, -1)), so = [
|
|
1054
1054
|
oo,
|
|
1055
1055
|
ao
|
|
1056
|
-
], lo = { key: 5 }, io = /* @__PURE__ */
|
|
1056
|
+
], lo = { key: 5 }, io = /* @__PURE__ */ E({
|
|
1057
1057
|
__name: "aeria-picture",
|
|
1058
1058
|
props: {
|
|
1059
1059
|
url: {},
|
|
@@ -1085,7 +1085,7 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), ht = (c) =
|
|
|
1085
1085
|
`,
|
|
1086
1086
|
onClick: r[0] || (r[0] = (m) => a.value = !0)
|
|
1087
1087
|
}, null, 8, eo),
|
|
1088
|
-
(y = s.meta) != null && y.owner ? (n(), l("div", to, " Criado por " +
|
|
1088
|
+
(y = s.meta) != null && y.owner ? (n(), l("div", to, " Criado por " + O(s.meta.owner.name) + " em " + O(s.formatDateTime(s.meta.created_at, { hours: !0 })), 1)) : f("", !0)
|
|
1089
1089
|
])), [
|
|
1090
1090
|
[i, {
|
|
1091
1091
|
click: () => {
|
|
@@ -1137,7 +1137,7 @@ const qe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
|
|
|
1137
1137
|
}, vo = {
|
|
1138
1138
|
key: 1,
|
|
1139
1139
|
class: "file__buttons"
|
|
1140
|
-
}, fo = /* @__PURE__ */
|
|
1140
|
+
}, fo = /* @__PURE__ */ E({
|
|
1141
1141
|
__name: "aeria-file",
|
|
1142
1142
|
props: {
|
|
1143
1143
|
modelValue: {},
|
|
@@ -1181,7 +1181,7 @@ const qe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
|
|
|
1181
1181
|
a("update:modelValue", null);
|
|
1182
1182
|
};
|
|
1183
1183
|
return (b, V) => {
|
|
1184
|
-
var R, j,
|
|
1184
|
+
var R, j, U, w, ae, x;
|
|
1185
1185
|
return n(), l("div", ro, [
|
|
1186
1186
|
i.value || (R = b.modelValue) != null && R._id ? (n(), l("div", uo, [
|
|
1187
1187
|
m.value ? (n(), $(qe, {
|
|
@@ -1193,16 +1193,16 @@ const qe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
|
|
|
1193
1193
|
${!t(r) || ((j = b.modelValue) == null ? void 0 : j._id) || "file__image--unsent"}
|
|
1194
1194
|
`)
|
|
1195
1195
|
}, null, 8, ["modelValue", "class"])) : f("", !0),
|
|
1196
|
-
(
|
|
1196
|
+
(U = b.modelValue) != null && U._id ? (n(), l("a", {
|
|
1197
1197
|
key: 1,
|
|
1198
1198
|
href: b.modelValue.download_link
|
|
1199
|
-
},
|
|
1199
|
+
}, O(b.modelValue.filename), 9, co)) : f("", !0)
|
|
1200
1200
|
])) : f("", !0),
|
|
1201
1201
|
g("div", po, [
|
|
1202
1202
|
g("input", {
|
|
1203
1203
|
ref: "file",
|
|
1204
1204
|
type: "file",
|
|
1205
|
-
accept: (ae = (
|
|
1205
|
+
accept: (ae = (w = b.property) == null ? void 0 : w.accept) == null ? void 0 : ae.join(","),
|
|
1206
1206
|
onChange: o
|
|
1207
1207
|
}, null, 40, _o),
|
|
1208
1208
|
i.value ? (n(), l("div", mo, [
|
|
@@ -1234,7 +1234,7 @@ const qe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
|
|
|
1234
1234
|
const yo = /* @__PURE__ */ X(fo, [["__scopeId", "data-v-f3848c9a"]]), ho = { class: "container" }, $o = {
|
|
1235
1235
|
key: 1,
|
|
1236
1236
|
class: "container__footer"
|
|
1237
|
-
}, bo = /* @__PURE__ */
|
|
1237
|
+
}, bo = /* @__PURE__ */ E({
|
|
1238
1238
|
__name: "aeria-search-container",
|
|
1239
1239
|
props: {
|
|
1240
1240
|
observeScroll: { type: Boolean }
|
|
@@ -1261,7 +1261,7 @@ const yo = /* @__PURE__ */ X(fo, [["__scopeId", "data-v-f3848c9a"]]), ho = { cla
|
|
|
1261
1261
|
]));
|
|
1262
1262
|
}
|
|
1263
1263
|
});
|
|
1264
|
-
const rt = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { class: "item__values" }, ko = /* @__PURE__ */
|
|
1264
|
+
const rt = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { class: "item__values" }, ko = /* @__PURE__ */ E({
|
|
1265
1265
|
__name: "aeria-search-item",
|
|
1266
1266
|
props: {
|
|
1267
1267
|
item: {},
|
|
@@ -1308,7 +1308,7 @@ const rt = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
|
|
|
1308
1308
|
(n(!0), l(J, null, H(d.indexes, (b, V) => (n(), l("div", {
|
|
1309
1309
|
key: `index-${d.item._id}-${V}`,
|
|
1310
1310
|
class: "item__value"
|
|
1311
|
-
},
|
|
1311
|
+
}, O(d.item[b]), 1))), 128))
|
|
1312
1312
|
])
|
|
1313
1313
|
], 2)), [
|
|
1314
1314
|
[h]
|
|
@@ -1316,10 +1316,10 @@ const rt = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
|
|
|
1316
1316
|
};
|
|
1317
1317
|
}
|
|
1318
1318
|
});
|
|
1319
|
-
const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { class: "search__panel" }, Co = { class: "search__input" },
|
|
1319
|
+
const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { class: "search__panel" }, Co = { class: "search__input" }, Io = ["value"], Ao = { style: { flex: "1" } }, Oo = { key: 1 }, wo = { key: 0 }, Bo = { key: 1 }, So = { class: "search__summary" }, jo = {
|
|
1320
1320
|
key: 1,
|
|
1321
1321
|
class: "search"
|
|
1322
|
-
}, To = { key: 0 }, Fe = 10, Lo = /* @__PURE__ */
|
|
1322
|
+
}, To = { key: 0 }, Fe = 10, Lo = /* @__PURE__ */ E({
|
|
1323
1323
|
__name: "aeria-search",
|
|
1324
1324
|
props: {
|
|
1325
1325
|
modelValue: {},
|
|
@@ -1337,7 +1337,7 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1337
1337
|
const d = Y(e.modelValue), o = Y({
|
|
1338
1338
|
data: [],
|
|
1339
1339
|
pagination: {}
|
|
1340
|
-
}), h = D(() => o.value.data), b = D(() => o.value.pagination), V = Y(0), R = Y(v[0]), j = Y(!1),
|
|
1340
|
+
}), h = D(() => o.value.data), b = D(() => o.value.pagination), V = Y(0), R = Y(v[0]), j = Y(!1), U = Y({}), w = () => {
|
|
1341
1341
|
const C = {};
|
|
1342
1342
|
if (y) {
|
|
1343
1343
|
const L = je(y) ? y.value : y;
|
|
@@ -1346,21 +1346,21 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1346
1346
|
return a.constraints ? qt(a.constraints, C) : {};
|
|
1347
1347
|
}, ae = () => {
|
|
1348
1348
|
h.value.length < b.value.recordsTotal && (V.value += 1, S());
|
|
1349
|
-
}, x = async () => Object.values(
|
|
1349
|
+
}, x = async () => Object.values(U.value).every((C) => !(String(C).length > 0)) ? i.$actions.custom("getAll", {
|
|
1350
1350
|
limit: Fe,
|
|
1351
1351
|
offset: V.value * Fe,
|
|
1352
|
-
filters:
|
|
1352
|
+
filters: w()
|
|
1353
1353
|
}) : i.$actions.custom("getAll", {
|
|
1354
1354
|
limit: Fe,
|
|
1355
1355
|
offset: V.value * Fe,
|
|
1356
1356
|
filters: {
|
|
1357
|
-
...
|
|
1357
|
+
...w(),
|
|
1358
1358
|
$or: v.filter((C) => {
|
|
1359
1359
|
var L;
|
|
1360
|
-
return ((L =
|
|
1360
|
+
return ((L = U.value[C]) == null ? void 0 : L.length) > 0;
|
|
1361
1361
|
}).map((C) => ({
|
|
1362
1362
|
[C]: {
|
|
1363
|
-
$regex:
|
|
1363
|
+
$regex: U.value[C].trim().replace("(", "\\(").replace(")", "\\)"),
|
|
1364
1364
|
$options: "i"
|
|
1365
1365
|
}
|
|
1366
1366
|
}))
|
|
@@ -1374,13 +1374,13 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1374
1374
|
delay: 800
|
|
1375
1375
|
})(() => {
|
|
1376
1376
|
V.value = 0, S(), j.value = !1;
|
|
1377
|
-
}),
|
|
1377
|
+
}), A = () => {
|
|
1378
1378
|
j.value = !0, ee();
|
|
1379
1379
|
}, F = () => {
|
|
1380
1380
|
"effect" in s ? r("update:panel", !0) : s.value = !0, S();
|
|
1381
1381
|
}, te = () => {
|
|
1382
1382
|
V.value = 0, o.value.data.splice(0), "effect" in s ? r("update:panel", !1) : s.value = !1;
|
|
1383
|
-
}, oe = D(() => !Object.values(
|
|
1383
|
+
}, oe = D(() => !Object.values(U.value).some((C) => !!C));
|
|
1384
1384
|
ue(oe, (C, L) => {
|
|
1385
1385
|
C && !L && S();
|
|
1386
1386
|
}), kt(() => {
|
|
@@ -1392,16 +1392,16 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1392
1392
|
te(), r("update:modelValue", d.value);
|
|
1393
1393
|
};
|
|
1394
1394
|
return (C, L) => {
|
|
1395
|
-
const
|
|
1395
|
+
const I = N("clickable");
|
|
1396
1396
|
return n(), l("div", null, [
|
|
1397
1397
|
t(s) ? (n(), $(We, {
|
|
1398
1398
|
key: 0,
|
|
1399
1399
|
to: "main"
|
|
1400
1400
|
}, [
|
|
1401
|
-
M(
|
|
1401
|
+
M(Ae, {
|
|
1402
1402
|
float: "",
|
|
1403
1403
|
"close-hint": "",
|
|
1404
|
-
title:
|
|
1404
|
+
title: `${t(q)("action.select", { capitalize: !0 })} ${t(q)(C.propertyName)}`,
|
|
1405
1405
|
"overlay-layer": 65,
|
|
1406
1406
|
"model-value": t(s),
|
|
1407
1407
|
style: { "--panel-max-width": "36rem" },
|
|
@@ -1414,7 +1414,7 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1414
1414
|
onClick: z
|
|
1415
1415
|
}, {
|
|
1416
1416
|
default: _(() => [
|
|
1417
|
-
Q("
|
|
1417
|
+
Q(O(t(q)("action.save", { capitalize: !0 })), 1)
|
|
1418
1418
|
]),
|
|
1419
1419
|
_: 1
|
|
1420
1420
|
})
|
|
@@ -1427,27 +1427,27 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1427
1427
|
t(v).length > 1 ? (n(), $(He, {
|
|
1428
1428
|
key: 0,
|
|
1429
1429
|
modelValue: R.value,
|
|
1430
|
-
"onUpdate:modelValue": L[0] || (L[0] = (
|
|
1431
|
-
onChange: L[1] || (L[1] = (
|
|
1430
|
+
"onUpdate:modelValue": L[0] || (L[0] = (B) => R.value = B),
|
|
1431
|
+
onChange: L[1] || (L[1] = (B) => U.value = {})
|
|
1432
1432
|
}, {
|
|
1433
1433
|
default: _(() => [
|
|
1434
|
-
(n(!0), l(J, null, H(t(v), (
|
|
1435
|
-
key: `searchfield-${
|
|
1436
|
-
value:
|
|
1437
|
-
},
|
|
1434
|
+
(n(!0), l(J, null, H(t(v), (B) => (n(), l("option", {
|
|
1435
|
+
key: `searchfield-${B}`,
|
|
1436
|
+
value: B
|
|
1437
|
+
}, O(t(q)(B)), 9, Io))), 128))
|
|
1438
1438
|
]),
|
|
1439
1439
|
_: 1
|
|
1440
1440
|
}, 8, ["modelValue"])) : f("", !0),
|
|
1441
|
-
g("div",
|
|
1442
|
-
(n(), $(
|
|
1441
|
+
g("div", Ao, [
|
|
1442
|
+
(n(), $(Ie, {
|
|
1443
1443
|
key: `field-${R.value}`,
|
|
1444
|
-
modelValue:
|
|
1445
|
-
"onUpdate:modelValue": L[2] || (L[2] = (
|
|
1444
|
+
modelValue: U.value[R.value],
|
|
1445
|
+
"onUpdate:modelValue": L[2] || (L[2] = (B) => U.value[R.value] = B),
|
|
1446
1446
|
property: {
|
|
1447
1447
|
...t(i).properties[R.value],
|
|
1448
1448
|
inputType: "search"
|
|
1449
1449
|
},
|
|
1450
|
-
onInput:
|
|
1450
|
+
onInput: A
|
|
1451
1451
|
}, null, 8, ["modelValue", "property"]))
|
|
1452
1452
|
])
|
|
1453
1453
|
]),
|
|
@@ -1457,22 +1457,22 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1457
1457
|
onEndReached: ae
|
|
1458
1458
|
}, {
|
|
1459
1459
|
default: _(() => [
|
|
1460
|
-
(n(!0), l(J, null, H(h.value, (
|
|
1461
|
-
item:
|
|
1460
|
+
(n(!0), l(J, null, H(h.value, (B) => (n(), $(Qe, G({
|
|
1461
|
+
item: B,
|
|
1462
1462
|
indexes: t(v),
|
|
1463
1463
|
property: C.property
|
|
1464
1464
|
}, {
|
|
1465
|
-
key: `matching-${
|
|
1465
|
+
key: `matching-${B._id}`,
|
|
1466
1466
|
modelValue: d.value,
|
|
1467
1467
|
"onUpdate:modelValue": L[3] || (L[3] = (se) => d.value = se)
|
|
1468
1468
|
}), null, 16, ["modelValue"]))), 128))
|
|
1469
1469
|
]),
|
|
1470
1470
|
_: 1
|
|
1471
1471
|
})) : (n(), l("div", Oo, [
|
|
1472
|
-
j.value ? (n(), l("div", wo, "
|
|
1472
|
+
j.value ? (n(), l("div", wo, O(t(q)("searching_ellipsis", { capitalize: !0 })), 1)) : !t(i).loading.getAll && Object.values(U.value).filter((B) => !!B).length > 0 && !("items" in C.property && ((T = C.modelValue) != null && T.length) || !Array.isArray(C.modelValue) && ((ne = C.modelValue) != null && ne._id)) ? (n(), l("div", Bo, O(t(q)("no_results", { capitalize: !0 })), 1)) : f("", !0)
|
|
1473
1473
|
]))
|
|
1474
1474
|
]),
|
|
1475
|
-
g("div", So, "
|
|
1475
|
+
g("div", So, O(t(q)("showing", { capitalize: !0 })) + " " + O(h.value.length) + " " + O(t(q)("of")) + " " + O(b.value.recordsTotal), 1)
|
|
1476
1476
|
];
|
|
1477
1477
|
}),
|
|
1478
1478
|
_: 1
|
|
@@ -1486,11 +1486,11 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1486
1486
|
onClick: F
|
|
1487
1487
|
}, {
|
|
1488
1488
|
default: _(() => [
|
|
1489
|
-
Q("
|
|
1489
|
+
Q(O(t(q)("action.select", { capitalize: !0 })), 1)
|
|
1490
1490
|
]),
|
|
1491
1491
|
_: 1
|
|
1492
1492
|
})), [
|
|
1493
|
-
[
|
|
1493
|
+
[I]
|
|
1494
1494
|
])
|
|
1495
1495
|
]),
|
|
1496
1496
|
default: _(() => {
|
|
@@ -1521,14 +1521,14 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1521
1521
|
};
|
|
1522
1522
|
}
|
|
1523
1523
|
});
|
|
1524
|
-
const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-
|
|
1524
|
+
const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-6f8ec305"]]), ut = (c, u) => {
|
|
1525
1525
|
const e = "items" in c ? c.items : c, a = {
|
|
1526
1526
|
options: Gn,
|
|
1527
1527
|
select: He,
|
|
1528
1528
|
switch: Pn,
|
|
1529
1529
|
file: yo,
|
|
1530
1530
|
search: Ro,
|
|
1531
|
-
input:
|
|
1531
|
+
input: Ie,
|
|
1532
1532
|
form: De
|
|
1533
1533
|
}, s = (() => {
|
|
1534
1534
|
if ("type" in e) {
|
|
@@ -1572,7 +1572,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1572
1572
|
}, Jo = { key: 0 }, Ko = { key: 1 }, Zo = {
|
|
1573
1573
|
key: 3,
|
|
1574
1574
|
class: "form__footer"
|
|
1575
|
-
}, Po = /* @__PURE__ */
|
|
1575
|
+
}, Po = /* @__PURE__ */ E({
|
|
1576
1576
|
__name: "aeria-form",
|
|
1577
1577
|
props: {
|
|
1578
1578
|
modelValue: {},
|
|
@@ -1609,18 +1609,18 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1609
1609
|
return e[p] && fe(p, e[p]), z;
|
|
1610
1610
|
}, o = D(() => e.validationErrors !== null ? e.validationErrors : i == null ? void 0 : i.validationErrors), h = d("formComponents") || {}, b = d("propertyComponents") || {}, V = d("omitFormHeader"), R = d("omitInputLabels"), j = d("innerInputLabel");
|
|
1611
1611
|
r && fe(ze, r), fe("searchOnly", e.searchOnly);
|
|
1612
|
-
const
|
|
1612
|
+
const U = (p) => m.value ? Object.entries(m.value).filter(([z, C]) => !C.noForm && p([
|
|
1613
1613
|
z,
|
|
1614
1614
|
C
|
|
1615
|
-
])) : null,
|
|
1615
|
+
])) : null, w = (p) => {
|
|
1616
1616
|
var C;
|
|
1617
1617
|
if (e.searchOnly || !r)
|
|
1618
1618
|
return !0;
|
|
1619
1619
|
const z = e.property && "properties" in e.property ? e.property.form : (C = i == null ? void 0 : i.description) == null ? void 0 : C.form;
|
|
1620
1620
|
return !z || z.includes(p);
|
|
1621
|
-
}, ae =
|
|
1622
|
-
var T, ne,
|
|
1623
|
-
const C = [], L = ((ne = (T = v.value) == null ? void 0 : T.fields) == null ? void 0 : ne[p]) || ((se = (
|
|
1621
|
+
}, ae = U(([p]) => w(p)), x = Te(), S = {}, ee = (p, z) => {
|
|
1622
|
+
var T, ne, B, se;
|
|
1623
|
+
const C = [], L = ((ne = (T = v.value) == null ? void 0 : T.fields) == null ? void 0 : ne[p]) || ((se = (B = v.value) == null ? void 0 : B.fields) == null ? void 0 : se.$default);
|
|
1624
1624
|
if (!z)
|
|
1625
1625
|
return;
|
|
1626
1626
|
if (L != null && L.if && !e.searchOnly) {
|
|
@@ -1633,9 +1633,9 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1633
1633
|
null
|
|
1634
1634
|
].includes(e.modelValue[p]) ? null : e.modelValue[p].constructor()), C.push("display: none;")), S[p] = _e.satisfied;
|
|
1635
1635
|
}
|
|
1636
|
-
const
|
|
1636
|
+
const I = x.value.md && (L == null ? void 0 : L.span) || 6;
|
|
1637
1637
|
return C.push(`
|
|
1638
|
-
--field-span: ${
|
|
1638
|
+
--field-span: ${I};
|
|
1639
1639
|
grid-column: span var(--field-span) / span var(--field-span);
|
|
1640
1640
|
`), L && (L.verticalSpacing && C.push(`
|
|
1641
1641
|
--vertical-spacing: ${L.verticalSpacing};
|
|
@@ -1646,7 +1646,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1646
1646
|
padding: 1rem 0;
|
|
1647
1647
|
margin: 1rem 0;
|
|
1648
1648
|
`)), C.join("");
|
|
1649
|
-
},
|
|
1649
|
+
}, A = (p) => p === null || p instanceof Object && !Object.keys(p).length, F = D(() => e.required ? e.required : e.property && "required" in e.property ? e.property.required : i == null ? void 0 : i.description.required), te = D(() => e.form ? Tt(
|
|
1650
1650
|
e.modelValue,
|
|
1651
1651
|
e.form,
|
|
1652
1652
|
F.value,
|
|
@@ -1666,11 +1666,11 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1666
1666
|
])) : f("", !0),
|
|
1667
1667
|
k(p.$slots, "default", {}, void 0, !0),
|
|
1668
1668
|
p.isReadOnly ? f("", !0) : (n(), l("fieldset", Uo, [
|
|
1669
|
-
(n(!0), l(J, null, H(t(ae), ([
|
|
1670
|
-
var ne,
|
|
1669
|
+
(n(!0), l(J, null, H(t(ae), ([I, T]) => {
|
|
1670
|
+
var ne, B, se, _e, ke, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
|
|
1671
1671
|
return n(), l("div", {
|
|
1672
|
-
key: `field-${
|
|
1673
|
-
style: he(ee(
|
|
1672
|
+
key: `field-${I}`,
|
|
1673
|
+
style: he(ee(I, T)),
|
|
1674
1674
|
class: "form__field"
|
|
1675
1675
|
}, [
|
|
1676
1676
|
(!("type" in T) || T.type !== "boolean" || p.searchOnly) && !T.noLabel && !t(R) && !t(j) ? (n(), l("label", Eo, [
|
|
@@ -1678,64 +1678,64 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1678
1678
|
class: W({
|
|
1679
1679
|
"form__field-label": !0,
|
|
1680
1680
|
"form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
|
|
1681
|
-
"form__field-required-hint": p.highlightRequired && !p.searchOnly && (!F.value || t(Et)(
|
|
1681
|
+
"form__field-required-hint": p.highlightRequired && !p.searchOnly && (!F.value || t(Et)(I, F.value, p.modelValue))
|
|
1682
1682
|
})
|
|
1683
|
-
},
|
|
1683
|
+
}, O(T.description || t(q)(I)), 3),
|
|
1684
1684
|
T.hint ? (n(), l("div", {
|
|
1685
1685
|
key: 0,
|
|
1686
1686
|
innerHTML: T.hint
|
|
1687
1687
|
}, null, 8, zo)) : f("", !0)
|
|
1688
1688
|
])) : f("", !0),
|
|
1689
|
-
p.$slots[`field-${
|
|
1689
|
+
p.$slots[`field-${I}`] ? k(p.$slots, `field-${I}`, le(G({ key: 1 }, {
|
|
1690
1690
|
propery: T,
|
|
1691
|
-
properyName:
|
|
1691
|
+
properyName: I,
|
|
1692
1692
|
modelValue: p.modelValue
|
|
1693
|
-
})), void 0, !0) : (se = (
|
|
1693
|
+
})), void 0, !0) : (se = (B = (ne = p.layout) == null ? void 0 : ne.fields) == null ? void 0 : B[I]) != null && se.component && t(b)[p.layout.fields[I].component.name] ? (n(), $(ye(t(b)[p.layout.fields[I].component.name]), G({
|
|
1694
1694
|
key: 2,
|
|
1695
|
-
modelValue: p.modelValue[
|
|
1696
|
-
"onUpdate:modelValue": (P) => p.modelValue[
|
|
1695
|
+
modelValue: p.modelValue[I],
|
|
1696
|
+
"onUpdate:modelValue": (P) => p.modelValue[I] = P
|
|
1697
1697
|
}, {
|
|
1698
1698
|
property: T,
|
|
1699
|
-
propertyName:
|
|
1700
|
-
...p.layout.fields[
|
|
1699
|
+
propertyName: I,
|
|
1700
|
+
...p.layout.fields[I].component.props || {}
|
|
1701
1701
|
}, {
|
|
1702
|
-
onInput: (P) => a("input",
|
|
1702
|
+
onInput: (P) => a("input", I),
|
|
1703
1703
|
onChange: z[0] || (z[0] = (P) => a("change", P))
|
|
1704
1704
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && p.searchOnly ? (n(), l("div", {
|
|
1705
1705
|
key: 3,
|
|
1706
1706
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1707
|
-
onInput: (P) => a("input",
|
|
1707
|
+
onInput: (P) => a("input", I),
|
|
1708
1708
|
onChange: z[1] || (z[1] = (P) => a("change", P))
|
|
1709
1709
|
}, [
|
|
1710
|
-
M(
|
|
1711
|
-
modelValue: p.modelValue[
|
|
1712
|
-
"onUpdate:modelValue": (P) => p.modelValue[
|
|
1710
|
+
M(Ie, G({
|
|
1711
|
+
modelValue: p.modelValue[I].$gte,
|
|
1712
|
+
"onUpdate:modelValue": (P) => p.modelValue[I].$gte = P
|
|
1713
1713
|
}, {
|
|
1714
1714
|
property: T,
|
|
1715
|
-
propertyName:
|
|
1715
|
+
propertyName: I
|
|
1716
1716
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1717
|
-
M(
|
|
1718
|
-
modelValue: p.modelValue[
|
|
1719
|
-
"onUpdate:modelValue": (P) => p.modelValue[
|
|
1717
|
+
M(Ie, G({
|
|
1718
|
+
modelValue: p.modelValue[I].$lte,
|
|
1719
|
+
"onUpdate:modelValue": (P) => p.modelValue[I].$lte = P
|
|
1720
1720
|
}, {
|
|
1721
1721
|
property: T,
|
|
1722
|
-
propertyName:
|
|
1722
|
+
propertyName: I
|
|
1723
1723
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1724
1724
|
], 40, Ho)) : "type" in T && T.type === "boolean" && p.searchOnly ? (n(), l("div", Do, [
|
|
1725
1725
|
M(He, G({
|
|
1726
1726
|
property: T,
|
|
1727
|
-
propertyName:
|
|
1727
|
+
propertyName: I
|
|
1728
1728
|
}, {
|
|
1729
1729
|
"boolean-ref": "",
|
|
1730
|
-
"model-value": p.modelValue[
|
|
1730
|
+
"model-value": p.modelValue[I],
|
|
1731
1731
|
onChange: z[2] || (z[2] = (P) => a("change", P)),
|
|
1732
1732
|
"onUpdate:modelValue": (P) => {
|
|
1733
|
-
p.modelValue[
|
|
1733
|
+
p.modelValue[I] = P == "true" ? !0 : P == "false" ? !1 : null;
|
|
1734
1734
|
}
|
|
1735
1735
|
}), {
|
|
1736
1736
|
default: _(() => [
|
|
1737
|
-
g("option", Qo,
|
|
1738
|
-
g("option", Go,
|
|
1737
|
+
g("option", Qo, O(t(q)("yes")), 1),
|
|
1738
|
+
g("option", Go, O(t(q)("no")), 1)
|
|
1739
1739
|
]),
|
|
1740
1740
|
_: 2
|
|
1741
1741
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
@@ -1745,44 +1745,44 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1745
1745
|
small: "",
|
|
1746
1746
|
variant: "alt",
|
|
1747
1747
|
icon: "plus",
|
|
1748
|
-
disabled: !("inline" in T.items && T.items.inline) && (((_e = p.modelValue[
|
|
1748
|
+
disabled: !("inline" in T.items && T.items.inline) && (((_e = p.modelValue[I]) == null ? void 0 : _e.length) >= T.maxItems || A((Ye = p.modelValue[I]) == null ? void 0 : Ye[((ke = p.modelValue[I]) == null ? void 0 : ke.length) - 1])),
|
|
1749
1749
|
onClick: Me((P) => {
|
|
1750
|
-
p.modelValue[
|
|
1750
|
+
p.modelValue[I] || (p.modelValue[I] = []), t(Fo)(p.modelValue[I], T);
|
|
1751
1751
|
}, ["prevent"])
|
|
1752
1752
|
}, {
|
|
1753
1753
|
default: _(() => [
|
|
1754
|
-
Q("
|
|
1754
|
+
Q(O(t(q)("action.add", { capitalize: !0 })), 1)
|
|
1755
1755
|
]),
|
|
1756
1756
|
_: 2
|
|
1757
1757
|
}, 1032, ["disabled", "onClick"])
|
|
1758
1758
|
]),
|
|
1759
|
-
(n(!0), l(J, null, H(p.modelValue[
|
|
1759
|
+
(n(!0), l(J, null, H(p.modelValue[I], (P, Oe) => {
|
|
1760
1760
|
var tt, nt, ot, at, st, lt;
|
|
1761
1761
|
return n(), l("div", {
|
|
1762
|
-
key: `rep-${
|
|
1762
|
+
key: `rep-${I}-${Oe}`,
|
|
1763
1763
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
1764
1764
|
}, [
|
|
1765
1765
|
g("div", Xo, [
|
|
1766
1766
|
(n(), $(ye(t(ut)(T, t(h))), G({
|
|
1767
|
-
modelValue: p.modelValue[
|
|
1768
|
-
"onUpdate:modelValue": (we) => p.modelValue[
|
|
1767
|
+
modelValue: p.modelValue[I][Oe],
|
|
1768
|
+
"onUpdate:modelValue": (we) => p.modelValue[I][Oe] = we
|
|
1769
1769
|
}, {
|
|
1770
1770
|
property: T.items,
|
|
1771
|
-
propertyName:
|
|
1771
|
+
propertyName: I,
|
|
1772
1772
|
parentCollection: t(r),
|
|
1773
1773
|
parentPropertyName: p.parentPropertyName,
|
|
1774
|
-
columns: ((ot = (nt = (tt = p.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[
|
|
1775
|
-
validationErrors: oe(
|
|
1774
|
+
columns: ((ot = (nt = (tt = p.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[I]) == null ? void 0 : ot.optionsColumns) || ((lt = (st = (at = p.layout) == null ? void 0 : at.fields) == null ? void 0 : st.$default) == null ? void 0 : lt.optionsColumns),
|
|
1775
|
+
validationErrors: oe(I, Oe),
|
|
1776
1776
|
...T.componentProps || {}
|
|
1777
1777
|
}, {
|
|
1778
|
-
onInput: (we) => a("input",
|
|
1778
|
+
onInput: (we) => a("input", I),
|
|
1779
1779
|
onChange: z[3] || (z[3] = (we) => a("change", we))
|
|
1780
1780
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1781
1781
|
]),
|
|
1782
1782
|
Z(M(K, {
|
|
1783
1783
|
reactive: "",
|
|
1784
1784
|
icon: "trash",
|
|
1785
|
-
onClick: (we) => t(Mo)(p.modelValue[
|
|
1785
|
+
onClick: (we) => t(Mo)(p.modelValue[I], Oe)
|
|
1786
1786
|
}, null, 8, ["onClick"]), [
|
|
1787
1787
|
[C]
|
|
1788
1788
|
])
|
|
@@ -1790,25 +1790,25 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1790
1790
|
}), 128))
|
|
1791
1791
|
])) : p.modelValue ? Z((n(), $(ye(t(ut)(T, t(h))), G({
|
|
1792
1792
|
key: 6,
|
|
1793
|
-
modelValue: p.modelValue[
|
|
1794
|
-
"onUpdate:modelValue": (P) => p.modelValue[
|
|
1793
|
+
modelValue: p.modelValue[I],
|
|
1794
|
+
"onUpdate:modelValue": (P) => p.modelValue[I] = P
|
|
1795
1795
|
}, {
|
|
1796
1796
|
property: T,
|
|
1797
|
-
propertyName:
|
|
1797
|
+
propertyName: I,
|
|
1798
1798
|
parentPropertyName: p.parentPropertyName,
|
|
1799
1799
|
parentCollection: t(r),
|
|
1800
|
-
columns: ((Ze = (Ke = (Je = p.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[
|
|
1800
|
+
columns: ((Ze = (Ke = (Je = p.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[I]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = p.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
|
|
1801
1801
|
...T.componentProps || {},
|
|
1802
|
-
validationErrors: oe(
|
|
1802
|
+
validationErrors: oe(I)
|
|
1803
1803
|
}, {
|
|
1804
|
-
onInput: (P) => a("input",
|
|
1804
|
+
onInput: (P) => a("input", I),
|
|
1805
1805
|
onChange: z[4] || (z[4] = (P) => a("change", P))
|
|
1806
1806
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1807
1807
|
[L, !y.value && (y.value = !!p.focus)]
|
|
1808
1808
|
]) : f("", !0),
|
|
1809
|
-
(et = o.value) != null && et[
|
|
1810
|
-
o.value[
|
|
1811
|
-
o.value[
|
|
1809
|
+
(et = o.value) != null && et[I] ? (n(), l("div", Yo, [
|
|
1810
|
+
o.value[I].type ? (n(), l("span", Jo, O(t(q)(`validation_error.${o.value[I].type}`)), 1)) : f("", !0),
|
|
1811
|
+
o.value[I].detail ? (n(), l("span", Ko, O(t(q)(o.value[I].detail)), 1)) : f("", !0)
|
|
1812
1812
|
])) : f("", !0)
|
|
1813
1813
|
], 4);
|
|
1814
1814
|
}), 128))
|
|
@@ -1823,7 +1823,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1823
1823
|
};
|
|
1824
1824
|
}
|
|
1825
1825
|
});
|
|
1826
|
-
const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-
|
|
1826
|
+
const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @__PURE__ */ E({
|
|
1827
1827
|
__name: "aeria-filter-panel",
|
|
1828
1828
|
emits: ["update:modelValue"],
|
|
1829
1829
|
setup(c, { emit: u }) {
|
|
@@ -1832,7 +1832,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
1832
1832
|
query: it(a)
|
|
1833
1833
|
}), console.log(it(a));
|
|
1834
1834
|
};
|
|
1835
|
-
return (i, y) => (n(), $(
|
|
1835
|
+
return (i, y) => (n(), $(Ae, {
|
|
1836
1836
|
"close-hint": "",
|
|
1837
1837
|
"fixed-right": "",
|
|
1838
1838
|
title: "Filtrar por",
|
|
@@ -1851,7 +1851,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
1851
1851
|
Q(" Limpar "),
|
|
1852
1852
|
M($e, null, {
|
|
1853
1853
|
default: _(() => [
|
|
1854
|
-
Q(
|
|
1854
|
+
Q(O(t(a).filtersCount), 1)
|
|
1855
1855
|
]),
|
|
1856
1856
|
_: 1
|
|
1857
1857
|
})
|
|
@@ -1883,7 +1883,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
1883
1883
|
_: 1
|
|
1884
1884
|
}));
|
|
1885
1885
|
}
|
|
1886
|
-
}), ie = Y(!1), ct = Y(!1), Ve = Y(!1), Be = Y((...c) => null), dt = Y(), pt = !1, xo = /* @__PURE__ */
|
|
1886
|
+
}), ie = Y(!1), ct = Y(!1), Ve = Y(!1), Be = Y((...c) => null), dt = Y(), pt = !1, xo = /* @__PURE__ */ E({
|
|
1887
1887
|
__name: "aeria-insert-panel",
|
|
1888
1888
|
setup(c) {
|
|
1889
1889
|
const u = ce("meta"), e = ce(u.view.collection), a = ve("individualActions", []), s = async () => {
|
|
@@ -1894,14 +1894,14 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
1894
1894
|
action: () => {
|
|
1895
1895
|
e.$actions.clearItem(), e.validationErrors = {}, ie.value = !1;
|
|
1896
1896
|
},
|
|
1897
|
-
body:
|
|
1897
|
+
body: q("prompt.close_panel")
|
|
1898
1898
|
});
|
|
1899
1899
|
};
|
|
1900
1900
|
return ue(() => e.item._id, (i) => {
|
|
1901
1901
|
i === null && (ie.value = !1);
|
|
1902
1902
|
}), (i, y) => {
|
|
1903
1903
|
const m = N("clickable");
|
|
1904
|
-
return n(), $(
|
|
1904
|
+
return n(), $(Ae, {
|
|
1905
1905
|
modelValue: t(ie),
|
|
1906
1906
|
"onUpdate:modelValue": y[3] || (y[3] = (v) => je(ie) ? ie.value = v : null),
|
|
1907
1907
|
"fixed-right": "",
|
|
@@ -1909,18 +1909,18 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
1909
1909
|
onOverlayClick: r
|
|
1910
1910
|
}, {
|
|
1911
1911
|
header: _(() => [
|
|
1912
|
-
g("span", null,
|
|
1912
|
+
g("span", null, O((() => {
|
|
1913
1913
|
switch (t(ie)) {
|
|
1914
1914
|
case "add":
|
|
1915
|
-
return t(
|
|
1915
|
+
return t(q)("action.add");
|
|
1916
1916
|
case "duplicate":
|
|
1917
|
-
return t(
|
|
1917
|
+
return t(q)("action.duplicate");
|
|
1918
1918
|
case "edit":
|
|
1919
1919
|
default:
|
|
1920
|
-
return t(
|
|
1920
|
+
return t(q)("action.edit");
|
|
1921
1921
|
}
|
|
1922
1922
|
})()), 1),
|
|
1923
|
-
g("span", null, " " +
|
|
1923
|
+
g("span", null, " " + O(t(q)(t(u).view.collection)), 1)
|
|
1924
1924
|
]),
|
|
1925
1925
|
extra: _(() => [
|
|
1926
1926
|
M(Ce, G({
|
|
@@ -1947,7 +1947,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
1947
1947
|
onClick: r
|
|
1948
1948
|
}, {
|
|
1949
1949
|
default: _(() => [
|
|
1950
|
-
Q(
|
|
1950
|
+
Q(O(t(q)("action.cancel")), 1)
|
|
1951
1951
|
]),
|
|
1952
1952
|
_: 1
|
|
1953
1953
|
}),
|
|
@@ -1958,7 +1958,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
1958
1958
|
onClick: s
|
|
1959
1959
|
}, {
|
|
1960
1960
|
default: _(() => [
|
|
1961
|
-
Q(
|
|
1961
|
+
Q(O(t(q)("action.insert")), 1)
|
|
1962
1962
|
]),
|
|
1963
1963
|
_: 1
|
|
1964
1964
|
}, 8, ["disabled", "loading"])
|
|
@@ -2029,17 +2029,17 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
2029
2029
|
}, va = {
|
|
2030
2030
|
key: 1,
|
|
2031
2031
|
class: "table__cell-container"
|
|
2032
|
-
}, fa = { class: "table__cell-grid" }, ya = { key: 0 }, ha = { key: 1 }, $a = ["href"], ba = { key: 3 }, ga = { key: 2 }, ka = { key: 0 }, Va = { key: 1 }, Ca = { key: 2 },
|
|
2032
|
+
}, fa = { class: "table__cell-grid" }, ya = { key: 0 }, ha = { key: 1 }, $a = ["href"], ba = { key: 3 }, ga = { key: 2 }, ka = { key: 0 }, Va = { key: 1 }, Ca = { key: 2 }, Ia = {
|
|
2033
2033
|
key: 1,
|
|
2034
2034
|
class: "no-print"
|
|
2035
|
-
},
|
|
2035
|
+
}, Aa = { class: "table__cell-actions" }, Oa = {
|
|
2036
2036
|
key: 2,
|
|
2037
2037
|
class: "no-print table__mobile-actions"
|
|
2038
2038
|
}, wa = ["id"], Ba = { key: 1 }, Sa = /* @__PURE__ */ ta(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
|
|
2039
2039
|
/* @__PURE__ */ g("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
|
|
2040
2040
|
], -1)), ja = [
|
|
2041
2041
|
Sa
|
|
2042
|
-
], Ta = /* @__PURE__ */
|
|
2042
|
+
], Ta = /* @__PURE__ */ E({
|
|
2043
2043
|
__name: "aeria-table",
|
|
2044
2044
|
props: {
|
|
2045
2045
|
columns: {},
|
|
@@ -2067,15 +2067,15 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
2067
2067
|
return !m(R, h);
|
|
2068
2068
|
}) : [];
|
|
2069
2069
|
}, o = (h, b) => {
|
|
2070
|
-
var j,
|
|
2071
|
-
const V = [], R = (
|
|
2070
|
+
var j, U;
|
|
2071
|
+
const V = [], R = (U = (j = e.layout) == null ? void 0 : j.actions) == null ? void 0 : U[b.action];
|
|
2072
2072
|
return R != null && R.if && (Ge(
|
|
2073
2073
|
h,
|
|
2074
2074
|
R.if
|
|
2075
2075
|
).satisfied || V.push("display: none;")), V.join("");
|
|
2076
2076
|
};
|
|
2077
2077
|
return (h, b) => {
|
|
2078
|
-
var R, j,
|
|
2078
|
+
var R, j, U;
|
|
2079
2079
|
const V = N("clickable");
|
|
2080
2080
|
return h.columns && Object.keys(h.columns).length > 0 || h.$slots.thead ? (n(), l("table", na, [
|
|
2081
2081
|
h.$slots.thead ? (n(), l("thead", oa, [
|
|
@@ -2086,57 +2086,57 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
2086
2086
|
g("input", {
|
|
2087
2087
|
type: "checkbox",
|
|
2088
2088
|
checked: t(i).selected.length > 0 && t(i).selected.length === t(i).itemsCount,
|
|
2089
|
-
onChange: b[0] || (b[0] = (
|
|
2089
|
+
onChange: b[0] || (b[0] = (w) => t(i).$actions.selectAllItems(w.target.checked))
|
|
2090
2090
|
}, null, 40, la)
|
|
2091
2091
|
])) : f("", !0),
|
|
2092
|
-
(n(!0), l(J, null, H(Object.entries(h.columns), ([
|
|
2092
|
+
(n(!0), l(J, null, H(Object.entries(h.columns), ([w, ae], x) => (n(), l("th", {
|
|
2093
2093
|
key: `header-${x}`,
|
|
2094
2094
|
class: "table__header"
|
|
2095
|
-
},
|
|
2095
|
+
}, O(ae.description || t(q)(w)), 1))), 128)),
|
|
2096
2096
|
(R = h.actions) != null && R.length ? (n(), l("th", ia)) : f("", !0)
|
|
2097
2097
|
])
|
|
2098
2098
|
])),
|
|
2099
2099
|
h.$slots.tbody ? (n(), l("tbody", ra, [
|
|
2100
2100
|
k(h.$slots, "tbody", {}, void 0, !0)
|
|
2101
2101
|
])) : (n(), l("tbody", ua, [
|
|
2102
|
-
(n(!0), l(J, null, H(h.rows, (
|
|
2102
|
+
(n(!0), l(J, null, H(h.rows, (w) => {
|
|
2103
2103
|
var ae, x;
|
|
2104
2104
|
return n(), l("tr", {
|
|
2105
|
-
key:
|
|
2106
|
-
onClick: (S) => a("itemClick",
|
|
2105
|
+
key: w._id,
|
|
2106
|
+
onClick: (S) => a("itemClick", w)
|
|
2107
2107
|
}, [
|
|
2108
2108
|
t(i) && h.checkbox && t(s).md ? (n(), l("td", da, [
|
|
2109
2109
|
Z(g("input", {
|
|
2110
2110
|
"onUpdate:modelValue": b[1] || (b[1] = (S) => y.value = S),
|
|
2111
2111
|
type: "checkbox",
|
|
2112
|
-
value:
|
|
2112
|
+
value: w._id
|
|
2113
2113
|
}, null, 8, pa), [
|
|
2114
2114
|
[Vt, y.value]
|
|
2115
2115
|
])
|
|
2116
2116
|
])) : f("", !0),
|
|
2117
|
-
(n(!0), l(J, null, H(Object.entries(h.columns), ([S, ee],
|
|
2117
|
+
(n(!0), l(J, null, H(Object.entries(h.columns), ([S, ee], A) => {
|
|
2118
2118
|
var F, te, oe, p, z, C;
|
|
2119
2119
|
return n(), l("td", {
|
|
2120
|
-
key: `column-${
|
|
2120
|
+
key: `column-${w._id}-${A}`
|
|
2121
2121
|
}, [
|
|
2122
|
-
g("div", _a,
|
|
2122
|
+
g("div", _a, O(ee.description || t(q)(S)), 1),
|
|
2123
2123
|
`row-${S}` in h.$slots ? (n(), l("div", ma, [
|
|
2124
2124
|
k(h.$slots, `row-${S}`, le(be({
|
|
2125
2125
|
store: t(i),
|
|
2126
2126
|
column: S,
|
|
2127
2127
|
property: ee,
|
|
2128
|
-
row:
|
|
2128
|
+
row: w
|
|
2129
2129
|
})), void 0, !0)
|
|
2130
2130
|
])) : (n(), l("div", va, [
|
|
2131
2131
|
g("div", fa, [
|
|
2132
2132
|
"type" in ee && ee.type === "boolean" ? (n(), l("div", ya, [
|
|
2133
|
-
|
|
2133
|
+
w[S] ? (n(), $(K, {
|
|
2134
2134
|
key: 0,
|
|
2135
2135
|
icon: "check",
|
|
2136
2136
|
"icon-classes": "aeria-blueish"
|
|
2137
2137
|
}, {
|
|
2138
2138
|
default: _(() => [
|
|
2139
|
-
Q(
|
|
2139
|
+
Q(O(t(q)("yes")), 1)
|
|
2140
2140
|
]),
|
|
2141
2141
|
_: 1
|
|
2142
2142
|
})) : (n(), $(K, {
|
|
@@ -2145,42 +2145,42 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
2145
2145
|
"icon-classes": "aeria-redish"
|
|
2146
2146
|
}, {
|
|
2147
2147
|
default: _(() => [
|
|
2148
|
-
Q(
|
|
2148
|
+
Q(O(t(q)("no")), 1)
|
|
2149
2149
|
]),
|
|
2150
2150
|
_: 1
|
|
2151
2151
|
}))
|
|
2152
2152
|
])) : ((F = t(pe)(ee)) == null ? void 0 : F.$ref) === "file" ? (n(), l("div", ha, [
|
|
2153
|
-
/^image/.test((te =
|
|
2153
|
+
/^image/.test((te = w[S][0]) == null ? void 0 : te.mime) && "items" in ee ? (n(), $(qe, {
|
|
2154
2154
|
key: 0,
|
|
2155
|
-
modelValue:
|
|
2156
|
-
"onUpdate:modelValue": (L) =>
|
|
2155
|
+
modelValue: w[S][0].link,
|
|
2156
|
+
"onUpdate:modelValue": (L) => w[S][0].link = L,
|
|
2157
2157
|
expandable: "",
|
|
2158
|
-
meta:
|
|
2158
|
+
meta: w[S][0],
|
|
2159
2159
|
class: "table__picture"
|
|
2160
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe =
|
|
2160
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = w[S]) == null ? void 0 : oe.mime) ? (n(), $(qe, {
|
|
2161
2161
|
key: 1,
|
|
2162
|
-
modelValue:
|
|
2163
|
-
"onUpdate:modelValue": (L) =>
|
|
2162
|
+
modelValue: w[S].link,
|
|
2163
|
+
"onUpdate:modelValue": (L) => w[S].link = L,
|
|
2164
2164
|
expandable: "",
|
|
2165
|
-
meta:
|
|
2165
|
+
meta: w[S],
|
|
2166
2166
|
class: "table__picture"
|
|
2167
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (p =
|
|
2167
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (p = w[S]) != null && p.link ? (n(), l("a", {
|
|
2168
2168
|
key: 2,
|
|
2169
|
-
href:
|
|
2169
|
+
href: w[S].link,
|
|
2170
2170
|
style: { "font-size": "10pt" }
|
|
2171
|
-
},
|
|
2171
|
+
}, O(w[S].filename), 9, $a)) : (n(), l("div", ba, " - "))
|
|
2172
2172
|
])) : (n(), l("div", ga, [
|
|
2173
|
-
t(i) ? (n(), l("span", ka,
|
|
2174
|
-
value:
|
|
2173
|
+
t(i) ? (n(), l("span", ka, O(t(i).$actions.formatValue({
|
|
2174
|
+
value: w[S],
|
|
2175
2175
|
key: S,
|
|
2176
2176
|
property: ee
|
|
2177
|
-
})), 1)) : (n(), l("span", Va,
|
|
2177
|
+
})), 1)) : (n(), l("span", Va, O(Array.isArray(w[S]) ? w[S].filter((L) => !!L).join(", ") : [void 0, null].includes(w[S]) ? "-" : w[S]), 1)),
|
|
2178
2178
|
((C = (z = t(pe)(ee)) == null ? void 0 : z.indexes) == null ? void 0 : C.length) > 1 ? (n(), l("div", Ca, [
|
|
2179
|
-
(n(!0), l(J, null, H(t(pe)(ee).indexes.slice(1, 2), (L,
|
|
2180
|
-
key: `subvalue-${
|
|
2179
|
+
(n(!0), l(J, null, H(t(pe)(ee).indexes.slice(1, 2), (L, I) => (n(), l("div", {
|
|
2180
|
+
key: `subvalue-${I}`,
|
|
2181
2181
|
class: "table__cell-subvalue"
|
|
2182
|
-
},
|
|
2183
|
-
value:
|
|
2182
|
+
}, O(t(i).$actions.formatValue({
|
|
2183
|
+
value: w[S],
|
|
2184
2184
|
key: S,
|
|
2185
2185
|
property: ee,
|
|
2186
2186
|
index: L
|
|
@@ -2191,24 +2191,24 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
2191
2191
|
]))
|
|
2192
2192
|
]);
|
|
2193
2193
|
}), 128)),
|
|
2194
|
-
(ae = h.actions) != null && ae.length && t(s).md ? (n(), l("td",
|
|
2195
|
-
g("div",
|
|
2196
|
-
(n(!0), l(J, null, H(v(
|
|
2194
|
+
(ae = h.actions) != null && ae.length && t(s).md ? (n(), l("td", Ia, [
|
|
2195
|
+
g("div", Aa, [
|
|
2196
|
+
(n(!0), l(J, null, H(v(w), (S) => (n(), $(re, {
|
|
2197
2197
|
key: `action-${S.action}`,
|
|
2198
2198
|
small: "",
|
|
2199
2199
|
variant: "transparent",
|
|
2200
2200
|
icon: S.icon,
|
|
2201
|
-
style: he(o(
|
|
2202
|
-
onClick: (ee) => S.click(
|
|
2201
|
+
style: he(o(w, S)),
|
|
2202
|
+
onClick: (ee) => S.click(w)
|
|
2203
2203
|
}, {
|
|
2204
2204
|
default: _(() => [
|
|
2205
|
-
Q(
|
|
2205
|
+
Q(O(t(q)(S.name)), 1)
|
|
2206
2206
|
]),
|
|
2207
2207
|
_: 2
|
|
2208
2208
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2209
|
-
d(
|
|
2210
|
-
subject:
|
|
2211
|
-
actions: d(
|
|
2209
|
+
d(w).length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
|
|
2210
|
+
subject: w,
|
|
2211
|
+
actions: d(w)
|
|
2212
2212
|
})), {
|
|
2213
2213
|
default: _(() => [
|
|
2214
2214
|
Z(M(K, {
|
|
@@ -2224,28 +2224,28 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
2224
2224
|
])) : (x = h.actions) != null && x.length ? (n(), l("td", Oa, [
|
|
2225
2225
|
g("div", {
|
|
2226
2226
|
class: "table__mobile-actions-grid",
|
|
2227
|
-
style: he(`grid-template-columns: repeat(${v(
|
|
2227
|
+
style: he(`grid-template-columns: repeat(${v(w).length + (d(w).length ? 1 : 0)}, 1fr);`)
|
|
2228
2228
|
}, [
|
|
2229
|
-
(n(!0), l(J, null, H(v(
|
|
2229
|
+
(n(!0), l(J, null, H(v(w), (S) => (n(), $(me, {
|
|
2230
2230
|
key: `action-${S.action}`,
|
|
2231
2231
|
class: "table__mobile-actions-button",
|
|
2232
|
-
onClick: (ee) => S.click(
|
|
2232
|
+
onClick: (ee) => S.click(w)
|
|
2233
2233
|
}, {
|
|
2234
2234
|
default: _(() => [
|
|
2235
2235
|
M(K, {
|
|
2236
2236
|
icon: S.icon || "gear"
|
|
2237
2237
|
}, {
|
|
2238
2238
|
default: _(() => [
|
|
2239
|
-
Q(
|
|
2239
|
+
Q(O(t(q)(S.name)), 1)
|
|
2240
2240
|
]),
|
|
2241
2241
|
_: 2
|
|
2242
2242
|
}, 1032, ["icon"])
|
|
2243
2243
|
]),
|
|
2244
2244
|
_: 2
|
|
2245
2245
|
}, 1032, ["onClick"]))), 128)),
|
|
2246
|
-
d(
|
|
2247
|
-
subject:
|
|
2248
|
-
actions: d(
|
|
2246
|
+
d(w).length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
|
|
2247
|
+
subject: w,
|
|
2248
|
+
actions: d(w)
|
|
2249
2249
|
})), {
|
|
2250
2250
|
default: _(() => [
|
|
2251
2251
|
M(K, {
|
|
@@ -2258,19 +2258,19 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @_
|
|
|
2258
2258
|
], 4)
|
|
2259
2259
|
])) : f("", !0),
|
|
2260
2260
|
g("div", {
|
|
2261
|
-
id: `dropdown-${
|
|
2261
|
+
id: `dropdown-${w._id}`
|
|
2262
2262
|
}, null, 8, wa)
|
|
2263
2263
|
], 8, ca);
|
|
2264
2264
|
}), 128))
|
|
2265
2265
|
])),
|
|
2266
2266
|
g("tfoot", null, [
|
|
2267
|
-
h.$slots.tfoot ? k(h.$slots, "tfoot", { key: 0 }, void 0, !0) : h.columns && !((j = h.rows) != null && j.length) && !((
|
|
2267
|
+
h.$slots.tfoot ? k(h.$slots, "tfoot", { key: 0 }, void 0, !0) : h.columns && !((j = h.rows) != null && j.length) && !((U = t(i)) != null && U.loading.getAll) ? (n(), l("tr", Ba, ja)) : f("", !0)
|
|
2268
2268
|
])
|
|
2269
2269
|
])) : f("", !0);
|
|
2270
2270
|
};
|
|
2271
2271
|
}
|
|
2272
2272
|
});
|
|
2273
|
-
const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @__PURE__ */
|
|
2273
|
+
const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @__PURE__ */ E({
|
|
2274
2274
|
__name: "aeria-tabular",
|
|
2275
2275
|
props: {
|
|
2276
2276
|
individualActions: {},
|
|
@@ -2303,7 +2303,7 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @_
|
|
|
2303
2303
|
]), 1040)) : f("", !0)
|
|
2304
2304
|
]));
|
|
2305
2305
|
}
|
|
2306
|
-
}), Fa = /* @__PURE__ */
|
|
2306
|
+
}), Fa = /* @__PURE__ */ E({
|
|
2307
2307
|
__name: "aeria-grid",
|
|
2308
2308
|
props: {
|
|
2309
2309
|
list: { type: Boolean }
|
|
@@ -2322,7 +2322,7 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @_
|
|
|
2322
2322
|
const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key: 0 }, Ua = {
|
|
2323
2323
|
key: 1,
|
|
2324
2324
|
class: "card__information"
|
|
2325
|
-
}, Ea = /* @__PURE__ */
|
|
2325
|
+
}, Ea = /* @__PURE__ */ E({
|
|
2326
2326
|
__name: "aeria-grid",
|
|
2327
2327
|
props: {
|
|
2328
2328
|
individualActions: {},
|
|
@@ -2344,8 +2344,8 @@ const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key
|
|
|
2344
2344
|
horizontal: r.componentName === "list"
|
|
2345
2345
|
}, de({
|
|
2346
2346
|
footer: _(() => [
|
|
2347
|
-
t(e).title ? (n(), l("div", qa,
|
|
2348
|
-
t(e).information ? (n(), l("div", Ua,
|
|
2347
|
+
t(e).title ? (n(), l("div", qa, O(m[t(e).title]), 1)) : f("", !0),
|
|
2348
|
+
t(e).information ? (n(), l("div", Ua, O(m[t(e).information]), 1)) : f("", !0)
|
|
2349
2349
|
]),
|
|
2350
2350
|
actions: _(() => [
|
|
2351
2351
|
r.individualActions.length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
|
|
@@ -2383,7 +2383,7 @@ const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key
|
|
|
2383
2383
|
large: ""
|
|
2384
2384
|
}, {
|
|
2385
2385
|
default: _(() => [
|
|
2386
|
-
Q(
|
|
2386
|
+
Q(O(t(e).translateBadge ? t(q)(v) : v), 1)
|
|
2387
2387
|
]),
|
|
2388
2388
|
_: 2
|
|
2389
2389
|
}, 1024))), 128))
|
|
@@ -2394,7 +2394,7 @@ const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key
|
|
|
2394
2394
|
fn: _(() => [
|
|
2395
2395
|
M($e, null, {
|
|
2396
2396
|
default: _(() => [
|
|
2397
|
-
Q(
|
|
2397
|
+
Q(O(t(e).translateBadge ? t(q)(m[t(e).badge]) : m[t(e)[r.badge]]), 1)
|
|
2398
2398
|
]),
|
|
2399
2399
|
_: 2
|
|
2400
2400
|
}, 1024)
|
|
@@ -2412,7 +2412,7 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2412
2412
|
tabular: Ra,
|
|
2413
2413
|
grid: _t,
|
|
2414
2414
|
list: _t
|
|
2415
|
-
})[c], Ha = (c) => (Ue("data-v-
|
|
2415
|
+
})[c], Ha = (c) => (Ue("data-v-de881fd3"), c = c(), Ee(), c), Da = {
|
|
2416
2416
|
key: 2,
|
|
2417
2417
|
class: "crud__controls"
|
|
2418
2418
|
}, Qa = {
|
|
@@ -2421,7 +2421,7 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2421
2421
|
}, Ga = { class: "crud__actions" }, Wa = { class: "crud__context-badge" }, Xa = /* @__PURE__ */ Ha(() => /* @__PURE__ */ g("div", null, "Filtros", -1)), Ya = { key: 0 }, Ja = {
|
|
2422
2422
|
key: 3,
|
|
2423
2423
|
class: "crud__pagination"
|
|
2424
|
-
}, mt = 30, Ka = /* @__PURE__ */
|
|
2424
|
+
}, mt = 30, Ka = /* @__PURE__ */ E({
|
|
2425
2425
|
__name: "aeria-crud",
|
|
2426
2426
|
props: {
|
|
2427
2427
|
collection: {},
|
|
@@ -2442,8 +2442,8 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2442
2442
|
}), i = ce("meta"), y = Te(), { reachedEnd: m, detach: v } = Xe(null, {
|
|
2443
2443
|
antecipate: 600
|
|
2444
2444
|
}), d = !y.value.md || e.scrollPagination;
|
|
2445
|
-
d && ue(m, (
|
|
2446
|
-
|
|
2445
|
+
d && ue(m, (A) => {
|
|
2446
|
+
A && o.pagination.recordsTotal > o.items.length && V.value < mt && (V.value += 1, j());
|
|
2447
2447
|
});
|
|
2448
2448
|
const o = ce(e.collection);
|
|
2449
2449
|
ea(o, {
|
|
@@ -2451,31 +2451,31 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2451
2451
|
});
|
|
2452
2452
|
const h = Mt(), b = e.action ? je(e.action) ? e.action.value : e.action : Lt(o, s, h);
|
|
2453
2453
|
Be.value = b[0], dt.value = b[1];
|
|
2454
|
-
const V = Y(0), R = Y(!1), j = async (
|
|
2455
|
-
o.activeFilters = Object.assign({}, (
|
|
2454
|
+
const V = Y(0), R = Y(!1), j = async (A) => {
|
|
2455
|
+
o.activeFilters = Object.assign({}, (A == null ? void 0 : A.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
|
|
2456
2456
|
const F = {
|
|
2457
2457
|
filters: o.activeFilters,
|
|
2458
2458
|
limit: o.pagination.limit,
|
|
2459
2459
|
offset: o.pagination.offset,
|
|
2460
2460
|
project: o.preferredTableProperties.length > 0 ? o.preferredTableProperties : o.description.table || Object.keys(o.properties)
|
|
2461
2461
|
};
|
|
2462
|
-
V.value > 0 && (F.limit = 15, F.offset = V.value * F.limit), o.description.tableMeta && (F.project = F.project.concat(o.description.tableMeta)),
|
|
2462
|
+
V.value > 0 && (F.limit = 15, F.offset = V.value * F.limit), o.description.tableMeta && (F.project = F.project.concat(o.description.tableMeta)), A && Object.assign(F, A), o.loading.getAll = !0;
|
|
2463
2463
|
const { data: te, pagination: oe } = await o.$actions.retrieveItems(F);
|
|
2464
2464
|
o.pagination.recordsCount = oe.recordsCount, o.pagination.recordsTotal = oe.recordsTotal, V.value === 0 && o.items.splice(0), o.items.push(...te), o.loading.getAll = !1, R.value = !0;
|
|
2465
|
-
},
|
|
2465
|
+
}, U = async (A) => {
|
|
2466
2466
|
s.push({
|
|
2467
2467
|
query: {
|
|
2468
2468
|
...s.currentRoute.value.query,
|
|
2469
|
-
offset:
|
|
2470
|
-
limit:
|
|
2469
|
+
offset: A.offset,
|
|
2470
|
+
limit: A.limit
|
|
2471
2471
|
}
|
|
2472
|
-
}), o.pagination.offset =
|
|
2473
|
-
},
|
|
2472
|
+
}), o.pagination.offset = A.offset, o.pagination.limit = A.limit, j();
|
|
2473
|
+
}, w = ve("emptyComponent", null);
|
|
2474
2474
|
ue(() => [
|
|
2475
2475
|
s.currentRoute.value.path,
|
|
2476
2476
|
s.currentRoute.value.query.section
|
|
2477
|
-
], async (
|
|
2478
|
-
if (F && F[0] ===
|
|
2477
|
+
], async (A, F) => {
|
|
2478
|
+
if (F && F[0] === A[0] && F[1] === A[1])
|
|
2479
2479
|
return;
|
|
2480
2480
|
const te = s.currentRoute.value;
|
|
2481
2481
|
if (i.view.title = e.collection, i.view.collection = e.collection, ct.value = !1, !e.noFetch && !te.query._popstate) {
|
|
@@ -2486,29 +2486,29 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2486
2486
|
immediate: !0,
|
|
2487
2487
|
flush: "post"
|
|
2488
2488
|
});
|
|
2489
|
-
const [ae] = r((
|
|
2489
|
+
const [ae] = r((A) => (s.push({
|
|
2490
2490
|
query: {
|
|
2491
|
-
search:
|
|
2491
|
+
search: A || void 0
|
|
2492
2492
|
}
|
|
2493
|
-
}),
|
|
2493
|
+
}), A ? (o.filters = Object.assign(Se(o.freshFilters), {
|
|
2494
2494
|
$text: {
|
|
2495
|
-
$search: `"${
|
|
2495
|
+
$search: `"${A}"`,
|
|
2496
2496
|
$caseSensitive: !1
|
|
2497
2497
|
}
|
|
2498
2498
|
}), j({
|
|
2499
2499
|
offset: 0
|
|
2500
2500
|
})) : (o.filters = Se(o.freshFilters), V.value = 0, j())));
|
|
2501
|
-
ue(() => o.textQuery, (
|
|
2502
|
-
ae(
|
|
2501
|
+
ue(() => o.textQuery, (A) => {
|
|
2502
|
+
ae(A);
|
|
2503
2503
|
});
|
|
2504
|
-
const x = (
|
|
2505
|
-
|
|
2504
|
+
const x = (A) => {
|
|
2505
|
+
A.currentLayout = A.currentLayout === "tabular" ? A.description.layout.name : "tabular";
|
|
2506
2506
|
};
|
|
2507
2507
|
Ct(() => {
|
|
2508
2508
|
o.$actions.clearFilters(), o.textQuery = "", v();
|
|
2509
|
-
}), ue(() => dt.value, async (
|
|
2509
|
+
}), ue(() => dt.value, async (A) => {
|
|
2510
2510
|
var oe;
|
|
2511
|
-
const F = Se(
|
|
2511
|
+
const F = Se(A);
|
|
2512
2512
|
let te;
|
|
2513
2513
|
if (F)
|
|
2514
2514
|
if ([
|
|
@@ -2535,16 +2535,16 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2535
2535
|
...z,
|
|
2536
2536
|
[C]: L
|
|
2537
2537
|
};
|
|
2538
|
-
const
|
|
2539
|
-
if (
|
|
2538
|
+
const I = o.properties[C];
|
|
2539
|
+
if (I.readOnly)
|
|
2540
2540
|
return z;
|
|
2541
2541
|
const T = (ne) => {
|
|
2542
|
-
const
|
|
2543
|
-
if (!
|
|
2542
|
+
const B = pe(I);
|
|
2543
|
+
if (!B)
|
|
2544
2544
|
return ne;
|
|
2545
|
-
if (
|
|
2545
|
+
if (B.$ref === "file")
|
|
2546
2546
|
return {};
|
|
2547
|
-
if (
|
|
2547
|
+
if (B.inline && ne) {
|
|
2548
2548
|
const { _id: se, ..._e } = ne;
|
|
2549
2549
|
return _e;
|
|
2550
2550
|
}
|
|
@@ -2560,35 +2560,35 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2560
2560
|
a("uiEvent", F);
|
|
2561
2561
|
}, {
|
|
2562
2562
|
deep: !0
|
|
2563
|
-
}), ue(() => ie, (
|
|
2564
|
-
|
|
2563
|
+
}), ue(() => ie, (A) => {
|
|
2564
|
+
A.value === !1 && (i.view.collection = e.collection, o.$actions.clearItem());
|
|
2565
2565
|
});
|
|
2566
|
-
const S = D(() => o.individualActions.map((
|
|
2567
|
-
click: Be.value(
|
|
2568
|
-
...
|
|
2569
|
-
}))), ee = D(() => o.actions.filter((
|
|
2570
|
-
return fe(ze, D(() => e.collection)), fe("individualActions", S), (
|
|
2571
|
-
var p, z, C, L,
|
|
2566
|
+
const S = D(() => o.individualActions.map((A) => ({
|
|
2567
|
+
click: Be.value(A),
|
|
2568
|
+
...A
|
|
2569
|
+
}))), ee = D(() => o.actions.filter((A) => !A.button));
|
|
2570
|
+
return fe(ze, D(() => e.collection)), fe("individualActions", S), (A, F) => {
|
|
2571
|
+
var p, z, C, L, I, T, ne;
|
|
2572
2572
|
const te = N("clickable"), oe = N("loading");
|
|
2573
2573
|
return n(), l(J, null, [
|
|
2574
2574
|
t(Ve) ? (n(), $(No, {
|
|
2575
2575
|
key: t(o).$id,
|
|
2576
2576
|
modelValue: t(Ve),
|
|
2577
|
-
"onUpdate:modelValue": F[0] || (F[0] = (
|
|
2577
|
+
"onUpdate:modelValue": F[0] || (F[0] = (B) => je(Ve) ? Ve.value = B : null)
|
|
2578
2578
|
}, null, 8, ["modelValue"])) : f("", !0),
|
|
2579
2579
|
t(ie) ? (n(), $(xo, { key: 1 }, de({ _: 2 }, [
|
|
2580
|
-
H(Object.keys(
|
|
2581
|
-
name:
|
|
2580
|
+
H(Object.keys(A.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
2581
|
+
name: B,
|
|
2582
2582
|
fn: _((se) => [
|
|
2583
|
-
k(
|
|
2583
|
+
k(A.$slots, B, le(be(se)), void 0, !0)
|
|
2584
2584
|
])
|
|
2585
2585
|
}))
|
|
2586
2586
|
]), 1024)) : f("", !0),
|
|
2587
|
-
!
|
|
2587
|
+
!A.noActions && (t(o).description.search || Object.keys(t(o).availableFilters).length > 0 || ((p = t(o)) == null ? void 0 : p.actions.length) > 0 || A.$slots.actions || !A.noLayoutToggle && t(o).description.layout && ((z = t(o).description.layout) == null ? void 0 : z.name) !== "tabular") ? (n(), l("div", Da, [
|
|
2588
2588
|
t(o).description.search ? (n(), l("div", Qa, [
|
|
2589
|
-
M(
|
|
2589
|
+
M(Ie, G({
|
|
2590
2590
|
modelValue: t(o).textQuery,
|
|
2591
|
-
"onUpdate:modelValue": F[1] || (F[1] = (
|
|
2591
|
+
"onUpdate:modelValue": F[1] || (F[1] = (B) => t(o).textQuery = B)
|
|
2592
2592
|
}, {
|
|
2593
2593
|
property: {
|
|
2594
2594
|
type: "string",
|
|
@@ -2598,7 +2598,7 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2598
2598
|
}), null, 16, ["modelValue"])
|
|
2599
2599
|
])) : f("", !0),
|
|
2600
2600
|
g("div", Ga, [
|
|
2601
|
-
ee.value.length > 0 || !
|
|
2601
|
+
ee.value.length > 0 || !A.noLayoutToggle && t(o).description.layout && ((C = t(o).description.layout) == null ? void 0 : C.name) !== "tabular" ? (n(), $(Ce, { key: 0 }, de({
|
|
2602
2602
|
default: _(() => [
|
|
2603
2603
|
M(re, {
|
|
2604
2604
|
variant: "alt",
|
|
@@ -2607,7 +2607,7 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2607
2607
|
default: _(() => [
|
|
2608
2608
|
t(o).filtersCount ? (n(), $($e, { key: 0 }, {
|
|
2609
2609
|
default: _(() => [
|
|
2610
|
-
Q(
|
|
2610
|
+
Q(O(t(o).filtersCount), 1)
|
|
2611
2611
|
]),
|
|
2612
2612
|
_: 1
|
|
2613
2613
|
})) : f("", !0)
|
|
@@ -2622,7 +2622,7 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2622
2622
|
fn: _(() => [
|
|
2623
2623
|
Z((n(), $(K, {
|
|
2624
2624
|
icon: "funnel",
|
|
2625
|
-
onClick: F[2] || (F[2] = (
|
|
2625
|
+
onClick: F[2] || (F[2] = (B) => Ve.value = !0)
|
|
2626
2626
|
}, {
|
|
2627
2627
|
default: _(() => [
|
|
2628
2628
|
Q(" Filtros ")
|
|
@@ -2634,7 +2634,7 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2634
2634
|
g("div", Wa, [
|
|
2635
2635
|
t(o).filtersCount ? (n(), $($e, { key: 0 }, {
|
|
2636
2636
|
default: _(() => [
|
|
2637
|
-
Q(
|
|
2637
|
+
Q(O(t(o).filtersCount), 1)
|
|
2638
2638
|
]),
|
|
2639
2639
|
_: 1
|
|
2640
2640
|
})) : f("", !0)
|
|
@@ -2642,12 +2642,12 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2642
2642
|
]),
|
|
2643
2643
|
key: "0"
|
|
2644
2644
|
} : void 0,
|
|
2645
|
-
!
|
|
2645
|
+
!A.noLayoutToggle && t(o).description.layout && ((L = t(o).description.layout) == null ? void 0 : L.name) !== "tabular" ? {
|
|
2646
2646
|
name: "layout-toggle",
|
|
2647
2647
|
fn: _(() => [
|
|
2648
2648
|
Z((n(), $(K, {
|
|
2649
2649
|
icon: "table",
|
|
2650
|
-
onClick: F[3] || (F[3] = (
|
|
2650
|
+
onClick: F[3] || (F[3] = (B) => x(t(o)))
|
|
2651
2651
|
}, {
|
|
2652
2652
|
default: _(() => [
|
|
2653
2653
|
Q(" Alternar layout ")
|
|
@@ -2659,17 +2659,17 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2659
2659
|
]),
|
|
2660
2660
|
key: "1"
|
|
2661
2661
|
} : void 0,
|
|
2662
|
-
H(ee.value, (
|
|
2662
|
+
H(ee.value, (B, se) => ({
|
|
2663
2663
|
name: `action-${se}`,
|
|
2664
2664
|
fn: _(() => [
|
|
2665
|
-
|
|
2665
|
+
B ? (n(), $(K, {
|
|
2666
2666
|
key: 0,
|
|
2667
|
-
icon:
|
|
2668
|
-
disabled: t(o).selected.length === 0 &&
|
|
2669
|
-
onClick: (_e) => t(Be)(
|
|
2667
|
+
icon: B.icon || "gear",
|
|
2668
|
+
disabled: t(o).selected.length === 0 && B.selection,
|
|
2669
|
+
onClick: (_e) => t(Be)(B)({ _id: t(o).selected.map((ke) => ke._id) })
|
|
2670
2670
|
}, {
|
|
2671
2671
|
default: _(() => [
|
|
2672
|
-
Q(
|
|
2672
|
+
Q(O(t(q)(B.name)), 1)
|
|
2673
2673
|
]),
|
|
2674
2674
|
_: 2
|
|
2675
2675
|
}, 1032, ["icon", "disabled", "onClick"])) : f("", !0)
|
|
@@ -2679,75 +2679,75 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2679
2679
|
key: 1,
|
|
2680
2680
|
variant: "alt",
|
|
2681
2681
|
icon: "funnel",
|
|
2682
|
-
onClick: F[4] || (F[4] = (
|
|
2682
|
+
onClick: F[4] || (F[4] = (B) => Ve.value = !0)
|
|
2683
2683
|
}, {
|
|
2684
2684
|
default: _(() => [
|
|
2685
2685
|
Xa,
|
|
2686
2686
|
t(o).filtersCount ? (n(), $($e, { key: 0 }, {
|
|
2687
2687
|
default: _(() => [
|
|
2688
|
-
Q(
|
|
2688
|
+
Q(O(t(o).filtersCount), 1)
|
|
2689
2689
|
]),
|
|
2690
2690
|
_: 1
|
|
2691
2691
|
})) : f("", !0)
|
|
2692
2692
|
]),
|
|
2693
2693
|
_: 1
|
|
2694
2694
|
})) : f("", !0),
|
|
2695
|
-
(n(!0), l(J, null, H(t(o).actions.filter((
|
|
2695
|
+
(n(!0), l(J, null, H(t(o).actions.filter((B) => B.button), (B, se) => (n(), $(re, {
|
|
2696
2696
|
key: `action-${se}`,
|
|
2697
|
-
icon:
|
|
2698
|
-
disabled: t(o).selected.length === 0 &&
|
|
2699
|
-
onClick: (_e) => t(Be)(
|
|
2697
|
+
icon: B.icon,
|
|
2698
|
+
disabled: t(o).selected.length === 0 && B.selection,
|
|
2699
|
+
onClick: (_e) => t(Be)(B)({ _id: t(o).selected.map((ke) => ke._id) })
|
|
2700
2700
|
}, {
|
|
2701
2701
|
default: _(() => [
|
|
2702
|
-
Q(
|
|
2702
|
+
Q(O(t(q)(B.name)), 1)
|
|
2703
2703
|
]),
|
|
2704
2704
|
_: 2
|
|
2705
2705
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2706
|
-
|
|
2706
|
+
A.$slots.actions ? k(A.$slots, "actions", { key: 2 }, void 0, !0) : f("", !0)
|
|
2707
2707
|
])
|
|
2708
2708
|
])) : f("", !0),
|
|
2709
2709
|
Z((n(), l("div", null, [
|
|
2710
|
-
t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(
|
|
2711
|
-
t(
|
|
2710
|
+
t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || A.$slots.empty) ? (n(), l("div", Ya, [
|
|
2711
|
+
t(w) ? (n(), $(ye(t(w)), le(G({ key: 0 }, {
|
|
2712
2712
|
collection: t(o).$id
|
|
2713
2713
|
})), {
|
|
2714
2714
|
default: _(() => [
|
|
2715
2715
|
t(o).filtersCount === 0 && t(o).description.actions && "ui:spawnAdd" in t(o).description.actions ? (n(), $(re, {
|
|
2716
2716
|
key: 0,
|
|
2717
2717
|
icon: "plus",
|
|
2718
|
-
onClick: F[5] || (F[5] = (
|
|
2718
|
+
onClick: F[5] || (F[5] = (B) => t(Be)({
|
|
2719
2719
|
action: "ui:spawnAdd"
|
|
2720
2720
|
})())
|
|
2721
2721
|
}, {
|
|
2722
2722
|
default: _(() => [
|
|
2723
|
-
Q("
|
|
2723
|
+
Q(O(t(q)("add_first_item")), 1)
|
|
2724
2724
|
]),
|
|
2725
2725
|
_: 1
|
|
2726
2726
|
})) : f("", !0)
|
|
2727
2727
|
]),
|
|
2728
2728
|
_: 1
|
|
2729
|
-
}, 16)) : k(
|
|
2729
|
+
}, 16)) : k(A.$slots, "empty", le(G({ key: 1 }, {
|
|
2730
2730
|
collection: t(o).$id
|
|
2731
2731
|
})), void 0, !0)
|
|
2732
|
-
])) :
|
|
2732
|
+
])) : A.$slots.component ? k(A.$slots, "component", le(G({ key: 1 }, {
|
|
2733
2733
|
store: t(o)
|
|
2734
|
-
})), void 0, !0) : (n(), $(ye(t(za)(((
|
|
2734
|
+
})), void 0, !0) : (n(), $(ye(t(za)(((I = A.layout) == null ? void 0 : I.name) || t(o).$currentLayout)), G({ key: 2 }, {
|
|
2735
2735
|
individualActions: S.value,
|
|
2736
|
-
layoutOptions: ((T =
|
|
2737
|
-
componentProps:
|
|
2736
|
+
layoutOptions: ((T = A.layout) == null ? void 0 : T.options) || t(o).layout.options,
|
|
2737
|
+
componentProps: A.componentProps
|
|
2738
2738
|
}, {
|
|
2739
|
-
"component-name": ((ne =
|
|
2739
|
+
"component-name": ((ne = A.layout) == null ? void 0 : ne.name) || t(o).$currentLayout
|
|
2740
2740
|
}), de({ _: 2 }, [
|
|
2741
|
-
H(Object.keys(
|
|
2742
|
-
name:
|
|
2741
|
+
H(Object.keys(A.$slots).filter((B) => B.startsWith("row-")), (B) => ({
|
|
2742
|
+
name: B,
|
|
2743
2743
|
fn: _((se) => [
|
|
2744
|
-
k(
|
|
2744
|
+
k(A.$slots, B, le(be(se)), void 0, !0)
|
|
2745
2745
|
])
|
|
2746
2746
|
})),
|
|
2747
|
-
|
|
2747
|
+
A.$slots.tfoot ? {
|
|
2748
2748
|
name: "tfoot",
|
|
2749
2749
|
fn: _(() => [
|
|
2750
|
-
k(
|
|
2750
|
+
k(A.$slots, "tfoot", {}, void 0, !0)
|
|
2751
2751
|
]),
|
|
2752
2752
|
key: "0"
|
|
2753
2753
|
} : void 0
|
|
@@ -2758,14 +2758,14 @@ const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) =
|
|
|
2758
2758
|
!t(o).loading.getAll && t(o).itemsCount > 0 ? (n(), l("div", Ja, [
|
|
2759
2759
|
M(Rn, {
|
|
2760
2760
|
pagination: t(o).pagination,
|
|
2761
|
-
onPaginate:
|
|
2761
|
+
onPaginate: U
|
|
2762
2762
|
}, null, 8, ["pagination"])
|
|
2763
2763
|
])) : f("", !0)
|
|
2764
2764
|
], 64);
|
|
2765
2765
|
};
|
|
2766
2766
|
}
|
|
2767
2767
|
});
|
|
2768
|
-
const Ts = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-
|
|
2768
|
+
const Ts = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-de881fd3"]]), Za = { class: "prompt" }, Pa = /* @__PURE__ */ E({
|
|
2769
2769
|
__name: "aeria-prompt",
|
|
2770
2770
|
props: {
|
|
2771
2771
|
title: {},
|
|
@@ -2775,7 +2775,7 @@ const Ts = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-4fb3e545"]]), Za = { cla
|
|
|
2775
2775
|
const u = ce("meta"), e = (a) => {
|
|
2776
2776
|
u.$actions.fulfillPrompt(a);
|
|
2777
2777
|
};
|
|
2778
|
-
return (a, s) => (n(), $(
|
|
2778
|
+
return (a, s) => (n(), $(Ae, {
|
|
2779
2779
|
float: "",
|
|
2780
2780
|
"fill-footer": "",
|
|
2781
2781
|
"close-hint": !1,
|
|
@@ -2795,7 +2795,7 @@ const Ts = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-4fb3e545"]]), Za = { cla
|
|
|
2795
2795
|
onClick: (y) => r.click ? r.click(r) : e(r)
|
|
2796
2796
|
}, {
|
|
2797
2797
|
default: _(() => [
|
|
2798
|
-
Q(
|
|
2798
|
+
Q(O(r.title || r.name), 1)
|
|
2799
2799
|
]),
|
|
2800
2800
|
_: 2
|
|
2801
2801
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -2811,14 +2811,14 @@ const Ts = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-4fb3e545"]]), Za = { cla
|
|
|
2811
2811
|
a.title ? {
|
|
2812
2812
|
name: "title",
|
|
2813
2813
|
fn: _(() => [
|
|
2814
|
-
Q(
|
|
2814
|
+
Q(O(a.title), 1)
|
|
2815
2815
|
]),
|
|
2816
2816
|
key: "0"
|
|
2817
2817
|
} : void 0
|
|
2818
2818
|
]), 1024));
|
|
2819
2819
|
}
|
|
2820
2820
|
});
|
|
2821
|
-
const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { class: "toast__content" }, es = { class: "toast__time" }, ts = /* @__PURE__ */
|
|
2821
|
+
const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { class: "toast__content" }, es = { class: "toast__time" }, ts = /* @__PURE__ */ E({
|
|
2822
2822
|
__name: "aeria-toast",
|
|
2823
2823
|
props: {
|
|
2824
2824
|
idx: {},
|
|
@@ -2844,7 +2844,7 @@ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { cla
|
|
|
2844
2844
|
), null, 16),
|
|
2845
2845
|
g("div", xa, [
|
|
2846
2846
|
k(e.$slots, "default", {}, void 0, !0),
|
|
2847
|
-
g("div", es,
|
|
2847
|
+
g("div", es, O(e.formatDateTime(e.date, { hoursOnly: !0 })), 1)
|
|
2848
2848
|
])
|
|
2849
2849
|
], 34)), [
|
|
2850
2850
|
[s]
|
|
@@ -2852,12 +2852,12 @@ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { cla
|
|
|
2852
2852
|
};
|
|
2853
2853
|
}
|
|
2854
2854
|
});
|
|
2855
|
-
const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["innerHTML"], as = { class: "main__toasts" }, ss = ["innerHTML"], ls = /* @__PURE__ */
|
|
2855
|
+
const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["innerHTML"], as = { class: "main__toasts" }, ss = ["innerHTML"], ls = /* @__PURE__ */ E({
|
|
2856
2856
|
__name: "aeria-main",
|
|
2857
2857
|
setup(c) {
|
|
2858
2858
|
const u = ce("meta"), e = D(() => u.themeOverride || u.theme);
|
|
2859
2859
|
return (a, s) => {
|
|
2860
|
-
const r =
|
|
2860
|
+
const r = It("router-view");
|
|
2861
2861
|
return n(), l("main", {
|
|
2862
2862
|
id: "main",
|
|
2863
2863
|
class: W(`
|
|
@@ -2866,7 +2866,7 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
|
|
|
2866
2866
|
${e.value === "dark" && "tw-dark"}
|
|
2867
2867
|
`)
|
|
2868
2868
|
}, [
|
|
2869
|
-
(n(), $(
|
|
2869
|
+
(n(), $(At, null, {
|
|
2870
2870
|
default: _(() => [
|
|
2871
2871
|
M(r, null, {
|
|
2872
2872
|
default: _(({ Component: i }) => [
|
|
@@ -2885,7 +2885,7 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
|
|
|
2885
2885
|
_: 3
|
|
2886
2886
|
})),
|
|
2887
2887
|
k(a.$slots, "default", {}, void 0, !0),
|
|
2888
|
-
M(
|
|
2888
|
+
M(Ae, G({
|
|
2889
2889
|
modelValue: t(u).modal.visible,
|
|
2890
2890
|
"onUpdate:modelValue": s[0] || (s[0] = (i) => t(u).modal.visible = i),
|
|
2891
2891
|
float: "",
|
|
@@ -2906,7 +2906,7 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
|
|
|
2906
2906
|
}, 16, ["modelValue"]),
|
|
2907
2907
|
t(u).prompt.visible ? (n(), $(Na, le(G({ key: 0 }, t(u).prompt)), {
|
|
2908
2908
|
default: _(() => [
|
|
2909
|
-
Q(
|
|
2909
|
+
Q(O(t(u).prompt.body), 1)
|
|
2910
2910
|
]),
|
|
2911
2911
|
_: 1
|
|
2912
2912
|
}, 16)) : f("", !0),
|
|
@@ -2916,7 +2916,7 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
|
|
|
2916
2916
|
}), {
|
|
2917
2917
|
default: _(() => [
|
|
2918
2918
|
g("div", {
|
|
2919
|
-
innerHTML: t(
|
|
2919
|
+
innerHTML: t(q)(i.text)
|
|
2920
2920
|
}, null, 8, ss)
|
|
2921
2921
|
]),
|
|
2922
2922
|
_: 2
|
|
@@ -2947,7 +2947,7 @@ const Rs = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
|
|
|
2947
2947
|
}, _s = ["onClick"], ms = {
|
|
2948
2948
|
key: 1,
|
|
2949
2949
|
class: "tabs__context-menu"
|
|
2950
|
-
}, vs = ["onClick"], fs = /* @__PURE__ */
|
|
2950
|
+
}, vs = ["onClick"], fs = /* @__PURE__ */ E({
|
|
2951
2951
|
__name: "aeria-tabs",
|
|
2952
2952
|
props: {
|
|
2953
2953
|
query: {},
|
|
@@ -3026,7 +3026,7 @@ const Rs = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
|
|
|
3026
3026
|
};
|
|
3027
3027
|
}
|
|
3028
3028
|
});
|
|
3029
|
-
const ys = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), hs =
|
|
3029
|
+
const ys = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), hs = E({
|
|
3030
3030
|
props: {
|
|
3031
3031
|
initialValue: String,
|
|
3032
3032
|
promise: Promise
|
|
@@ -3037,7 +3037,7 @@ const ys = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), hs = U({
|
|
|
3037
3037
|
u.value = e;
|
|
3038
3038
|
}), () => wt("div", u.value);
|
|
3039
3039
|
}
|
|
3040
|
-
}), $s = ["onClick"], bs = { key: 1 }, gs = /* @__PURE__ */
|
|
3040
|
+
}), $s = ["onClick"], bs = { key: 1 }, gs = /* @__PURE__ */ E({
|
|
3041
3041
|
__name: "aeria-crud-topbar",
|
|
3042
3042
|
props: {
|
|
3043
3043
|
collection: {}
|
|
@@ -3068,10 +3068,10 @@ const ys = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), hs = U({
|
|
|
3068
3068
|
icon: m.icon
|
|
3069
3069
|
}, {
|
|
3070
3070
|
default: _(() => [
|
|
3071
|
-
Q(
|
|
3071
|
+
Q(O(m.name || t(q)(y, { plural: !0 })), 1)
|
|
3072
3072
|
]),
|
|
3073
3073
|
_: 2
|
|
3074
|
-
}, 1032, ["icon"])) : (n(), l("div", bs,
|
|
3074
|
+
}, 1032, ["icon"])) : (n(), l("div", bs, O(m.name || t(q)(y, { plural: !0 })), 1)),
|
|
3075
3075
|
m.badgeFunction ? (n(), $($e, { key: 2 }, {
|
|
3076
3076
|
default: _(() => [
|
|
3077
3077
|
M(t(hs), {
|
|
@@ -3090,7 +3090,7 @@ const ys = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), hs = U({
|
|
|
3090
3090
|
const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3091
3091
|
__proto__: null,
|
|
3092
3092
|
default: ks
|
|
3093
|
-
}, Symbol.toStringTag, { value: "Module" })), Fs = /* @__PURE__ */
|
|
3093
|
+
}, Symbol.toStringTag, { value: "Module" })), Fs = /* @__PURE__ */ E({
|
|
3094
3094
|
__name: "aeria-password-form",
|
|
3095
3095
|
props: {
|
|
3096
3096
|
modelValue: {}
|
|
@@ -3120,7 +3120,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3120
3120
|
"onUpdate:modelValue": r[0] || (r[0] = (i) => s.$emit("update:modelValue", i))
|
|
3121
3121
|
}, {
|
|
3122
3122
|
after: _(() => [
|
|
3123
|
-
g("div", null,
|
|
3123
|
+
g("div", null, O(a.value || "Senhas conferem"), 1),
|
|
3124
3124
|
k(s.$slots, "default", le(be({ passwordError: a.value })))
|
|
3125
3125
|
]),
|
|
3126
3126
|
_: 3
|
|
@@ -3144,7 +3144,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3144
3144
|
{
|
|
3145
3145
|
path: "signin",
|
|
3146
3146
|
name: "/user/signin",
|
|
3147
|
-
component: () => import("./signin-
|
|
3147
|
+
component: () => import("./signin-60f5fe25.js"),
|
|
3148
3148
|
meta: {
|
|
3149
3149
|
title: "Autenticação"
|
|
3150
3150
|
}
|
|
@@ -3152,7 +3152,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3152
3152
|
{
|
|
3153
3153
|
path: "signup",
|
|
3154
3154
|
name: "/user/signup",
|
|
3155
|
-
component: () => import("./signup-
|
|
3155
|
+
component: () => import("./signup-73b5812e.js"),
|
|
3156
3156
|
meta: {
|
|
3157
3157
|
title: "Registro"
|
|
3158
3158
|
}
|
|
@@ -3160,7 +3160,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3160
3160
|
{
|
|
3161
3161
|
path: "activation",
|
|
3162
3162
|
name: "/user/activation",
|
|
3163
|
-
component: () => import("./activation-
|
|
3163
|
+
component: () => import("./activation-edb1cfdd.js"),
|
|
3164
3164
|
meta: {
|
|
3165
3165
|
title: "Ativação"
|
|
3166
3166
|
}
|
|
@@ -3182,7 +3182,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3182
3182
|
name: "/dashboard/crud",
|
|
3183
3183
|
props: !0,
|
|
3184
3184
|
components: {
|
|
3185
|
-
default: () => import("./crud-view-
|
|
3185
|
+
default: () => import("./crud-view-7ff4d925.js"),
|
|
3186
3186
|
topbar: () => Promise.resolve().then(() => Vs)
|
|
3187
3187
|
},
|
|
3188
3188
|
meta: {
|
|
@@ -3200,7 +3200,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3200
3200
|
children: [
|
|
3201
3201
|
{
|
|
3202
3202
|
path: "profile",
|
|
3203
|
-
component: () => import("./profile-
|
|
3203
|
+
component: () => import("./profile-d07710d9.js"),
|
|
3204
3204
|
meta: {
|
|
3205
3205
|
title: "Meu perfil",
|
|
3206
3206
|
icon: "user-square"
|
|
@@ -3209,7 +3209,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3209
3209
|
{
|
|
3210
3210
|
path: "changepass",
|
|
3211
3211
|
name: "/dashboard/user/changepass",
|
|
3212
|
-
component: () => import("./password-change-
|
|
3212
|
+
component: () => import("./password-change-881f8fa1.js"),
|
|
3213
3213
|
meta: {
|
|
3214
3214
|
title: "Mudar senha",
|
|
3215
3215
|
icon: "lock"
|
|
@@ -3233,7 +3233,7 @@ export {
|
|
|
3233
3233
|
Ts as d,
|
|
3234
3234
|
qe as e,
|
|
3235
3235
|
Rs as f,
|
|
3236
|
-
|
|
3236
|
+
Ae as g,
|
|
3237
3237
|
X as h,
|
|
3238
3238
|
js as i,
|
|
3239
3239
|
$e as j,
|
|
@@ -3247,7 +3247,7 @@ export {
|
|
|
3247
3247
|
La as r,
|
|
3248
3248
|
ys as s,
|
|
3249
3249
|
yo as t,
|
|
3250
|
-
|
|
3250
|
+
Ie as u,
|
|
3251
3251
|
Gn as v,
|
|
3252
3252
|
Ro as w,
|
|
3253
3253
|
He as x,
|