@aeria-ui/ui 0.0.42 → 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-d1ceeb81.js → activation-adac6722.js} +21 -21
- package/dist/{crud-view-f425cafd.js → crud-view-b854fb49.js} +1 -1
- package/dist/{index-f1759716.js → index-03c606a5.js} +288 -283
- package/dist/{password-change-b2998d27.js → password-change-aa004ecb.js} +1 -1
- package/dist/{profile-9d79c809.js → profile-4233fd1d.js} +1 -1
- package/dist/{signin-af6eb02e.js → signin-6d124882.js} +10 -10
- package/dist/{signup-8392ad4d.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", {
|
|
@@ -32,8 +32,8 @@ const Gt = ["onClick"], Wt = { key: 0 }, Xt = {
|
|
|
32
32
|
class: "accordion__header",
|
|
33
33
|
onClick: (m) => r.value === u ? r.value = null : r.value = u
|
|
34
34
|
}, [
|
|
35
|
-
o.enumerate ? (n(), s("span", Wt,
|
|
36
|
-
D(" " +
|
|
35
|
+
o.enumerate ? (n(), s("span", Wt, k(_ + 1) + ". ", 1)) : y("", !0),
|
|
36
|
+
D(" " + k(o.headers[u] ? t(o.headers[u]) : e(F)(u)), 1)
|
|
37
37
|
], 8, Gt)), [
|
|
38
38
|
[i]
|
|
39
39
|
]),
|
|
@@ -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", {
|
|
@@ -210,7 +210,7 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
210
210
|
`)
|
|
211
211
|
}, [
|
|
212
212
|
V("div", xt, [
|
|
213
|
-
a.$slots.header ? A(a.$slots, "header", { key: 0 }, void 0, !0) : a.title ? (n(), s("div", en,
|
|
213
|
+
a.$slots.header ? A(a.$slots, "header", { key: 0 }, void 0, !0) : a.title ? (n(), s("div", en, k(a.title), 1)) : y("", !0),
|
|
214
214
|
a.$slots.extra ? (n(), s("div", tn, [
|
|
215
215
|
A(a.$slots, "extra", {}, void 0, !0)
|
|
216
216
|
])) : y("", !0)
|
|
@@ -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
|
|
@@ -447,7 +447,7 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
447
447
|
icon: p.icon
|
|
448
448
|
}, {
|
|
449
449
|
default: v(() => [
|
|
450
|
-
D(
|
|
450
|
+
D(k(p.translate ? e(F)(p.label, { capitalize: !0 }) : p.label), 1)
|
|
451
451
|
]),
|
|
452
452
|
_: 2
|
|
453
453
|
}, 1032, ["icon"])) : y("", !0)
|
|
@@ -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) => {
|
|
@@ -735,18 +741,18 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-470ff8e4"]]), On = ["val
|
|
|
735
741
|
key: 0,
|
|
736
742
|
icon: e(i).icon
|
|
737
743
|
}, null, 8, ["icon"])) : y("", !0),
|
|
738
|
-
t.multiple ? y("", !0) : (n(), s("option", wn,
|
|
744
|
+
t.multiple ? y("", !0) : (n(), s("option", wn, k(e(F)("none")), 1)),
|
|
739
745
|
(n(!0), s(J, null, U("enum" in e(i) ? e(i).enum : [], (p) => (n(), s("option", {
|
|
740
746
|
key: p,
|
|
741
747
|
value: p,
|
|
742
748
|
"data-selected": m(p)
|
|
743
|
-
},
|
|
749
|
+
}, k(e(i).translate ? e(F)(p) : p), 9, Bn))), 128)),
|
|
744
750
|
A(d.$slots, "default", {}, void 0, !0)
|
|
745
751
|
], 16, On)
|
|
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,
|
|
@@ -829,7 +835,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
829
835
|
l.value = u.value === 0 ? 0 : u.value - 1;
|
|
830
836
|
})
|
|
831
837
|
}, null, 8, ["modelValue"])),
|
|
832
|
-
V("span", null,
|
|
838
|
+
V("span", null, k(e(F)("of")) + " " + k(_.value), 1)
|
|
833
839
|
]),
|
|
834
840
|
z(fe, {
|
|
835
841
|
disabled: l.value === _.value - 1,
|
|
@@ -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 ? [] : ""
|
|
@@ -1022,25 +1028,25 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
1022
1028
|
blocked: e(l).readOnly
|
|
1023
1029
|
}]
|
|
1024
1030
|
]),
|
|
1025
|
-
u.$slots.default ? A(u.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div", Zn,
|
|
1031
|
+
u.$slots.default ? A(u.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div", Zn, k(e(l).description || u.propertyName), 1))
|
|
1026
1032
|
]);
|
|
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");
|
|
@@ -1084,7 +1090,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), bt = (c) =
|
|
|
1084
1090
|
`,
|
|
1085
1091
|
onClick: i[0] || (i[0] = (m) => o.value = !0)
|
|
1086
1092
|
}, null, 8, no),
|
|
1087
|
-
(_ = l.meta) != null && _.owner ? (n(), s("div", oo, " Criado por " +
|
|
1093
|
+
(_ = l.meta) != null && _.owner ? (n(), s("div", oo, " Criado por " + k(l.meta.owner.name) + " em " + k(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : y("", !0)
|
|
1088
1094
|
])), [
|
|
1089
1095
|
[u, {
|
|
1090
1096
|
click: () => {
|
|
@@ -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,13 +1199,13 @@ 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", {
|
|
1200
1206
|
key: 1,
|
|
1201
1207
|
href: b.modelValue.download_link
|
|
1202
|
-
},
|
|
1208
|
+
}, k(b.modelValue.filename), 9, _o)) : y("", !0)
|
|
1203
1209
|
])) : y("", !0),
|
|
1204
1210
|
V("div", mo, [
|
|
1205
1211
|
V("input", {
|
|
@@ -1214,17 +1220,17 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1214
1220
|
onClick: ze(d, ["prevent"])
|
|
1215
1221
|
}, {
|
|
1216
1222
|
default: v(() => [
|
|
1217
|
-
D(
|
|
1223
|
+
D(k(e(F)("action.clear", { capitalize: !0 })), 1)
|
|
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"])
|
|
1225
1231
|
}, {
|
|
1226
1232
|
default: v(() => [
|
|
1227
|
-
D(
|
|
1233
|
+
D(k(e(F)("action.remove", { capitalize: !0 })), 1)
|
|
1228
1234
|
]),
|
|
1229
1235
|
_: 1
|
|
1230
1236
|
})
|
|
@@ -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) => {
|
|
@@ -1311,7 +1317,7 @@ const it = /* @__PURE__ */ G(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { cla
|
|
|
1311
1317
|
(n(!0), s(J, null, U(d.indexes, (b, S) => (n(), s("div", {
|
|
1312
1318
|
key: `index-${d.item._id}-${S}`,
|
|
1313
1319
|
class: "item__value"
|
|
1314
|
-
},
|
|
1320
|
+
}, k(d.item[b]), 1))), 128))
|
|
1315
1321
|
])
|
|
1316
1322
|
], 2)), [
|
|
1317
1323
|
[p]
|
|
@@ -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,35 +1341,35 @@ 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 =
|
|
1344
|
-
const
|
|
1349
|
+
}), p = H(() => a.value.data), b = H(() => a.value.pagination), S = Y(0), L = Y(h[0]), W = Y(!1), P = Y({}), O = () => {
|
|
1350
|
+
const g = {};
|
|
1345
1351
|
if (_) {
|
|
1346
1352
|
const j = e(_);
|
|
1347
|
-
|
|
1353
|
+
g[j] = m;
|
|
1348
1354
|
}
|
|
1349
|
-
return o.constraints ? Ht(o.constraints,
|
|
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
|
-
$or: h.filter((
|
|
1367
|
+
$or: h.filter((g) => {
|
|
1362
1368
|
var j;
|
|
1363
|
-
return ((j = P.value[
|
|
1364
|
-
}).map((
|
|
1365
|
-
[
|
|
1366
|
-
$regex: P.value[
|
|
1369
|
+
return ((j = P.value[g]) == null ? void 0 : j.length) > 0;
|
|
1370
|
+
}).map((g) => ({
|
|
1371
|
+
[g]: {
|
|
1372
|
+
$regex: P.value[g].trim().replace("(", "\\(").replace(")", "\\)"),
|
|
1367
1373
|
$options: "i"
|
|
1368
1374
|
}
|
|
1369
1375
|
}))
|
|
@@ -1371,30 +1377,30 @@ 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
|
|
1375
|
-
a.value.pagination =
|
|
1376
|
-
}, [ee] =
|
|
1380
|
+
const g = await X();
|
|
1381
|
+
a.value.pagination = g.pagination, S.value === 0 && a.value.data.splice(0), a.value.data.push(...g.data);
|
|
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
|
-
}, oe = H(() => !Object.values(P.value).some((
|
|
1387
|
-
re(oe, (
|
|
1388
|
-
|
|
1389
|
-
}),
|
|
1392
|
+
}, oe = H(() => !Object.values(P.value).some((g) => !!g));
|
|
1393
|
+
re(oe, (g, j) => {
|
|
1394
|
+
g && !j && w();
|
|
1395
|
+
}), mt(() => {
|
|
1390
1396
|
t.selectOnly && w();
|
|
1391
1397
|
});
|
|
1392
|
-
const le = (
|
|
1393
|
-
d.value =
|
|
1398
|
+
const le = (g) => {
|
|
1399
|
+
d.value = g, t.selectOnly || i("update:modelValue", g);
|
|
1394
1400
|
}, f = () => {
|
|
1395
1401
|
te(), i("update:modelValue", d.value);
|
|
1396
1402
|
};
|
|
1397
|
-
return (
|
|
1403
|
+
return (g, j) => {
|
|
1398
1404
|
const N = ne("clickable");
|
|
1399
1405
|
return n(), s("div", null, [
|
|
1400
1406
|
e(l) ? (n(), $(Ge, {
|
|
@@ -1404,7 +1410,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1404
1410
|
z(Ae, {
|
|
1405
1411
|
float: "",
|
|
1406
1412
|
"close-hint": "",
|
|
1407
|
-
title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(
|
|
1413
|
+
title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(g.propertyName)}`,
|
|
1408
1414
|
"overlay-layer": 65,
|
|
1409
1415
|
"model-value": e(l),
|
|
1410
1416
|
style: { "--panel-max-width": "36rem" },
|
|
@@ -1417,7 +1423,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1417
1423
|
onClick: f
|
|
1418
1424
|
}, {
|
|
1419
1425
|
default: v(() => [
|
|
1420
|
-
D(
|
|
1426
|
+
D(k(e(F)("action.save", { capitalize: !0 })), 1)
|
|
1421
1427
|
]),
|
|
1422
1428
|
_: 1
|
|
1423
1429
|
})
|
|
@@ -1429,25 +1435,25 @@ 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(() => [
|
|
1437
1443
|
(n(!0), s(J, null, U(e(h), (B) => (n(), s("option", {
|
|
1438
1444
|
key: `searchfield-${B}`,
|
|
1439
1445
|
value: B
|
|
1440
|
-
},
|
|
1446
|
+
}, k(e(F)(B)), 9, Oo))), 128))
|
|
1441
1447
|
]),
|
|
1442
1448
|
_: 1
|
|
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
|
|
@@ -1463,7 +1469,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1463
1469
|
(n(!0), s(J, null, U(p.value, (B) => (n(), $(De, E({ ref_for: !0 }, {
|
|
1464
1470
|
item: B,
|
|
1465
1471
|
indexes: e(h),
|
|
1466
|
-
property:
|
|
1472
|
+
property: g.property
|
|
1467
1473
|
}, {
|
|
1468
1474
|
key: `matching-${B._id}`,
|
|
1469
1475
|
modelValue: d.value,
|
|
@@ -1472,24 +1478,24 @@ 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
|
-
V("div", To,
|
|
1484
|
+
V("div", To, k(e(F)("showing", { capitalize: !0 })) + " " + k(p.value.length) + " " + k(e(F)("of")) + " " + k(b.value.recordsTotal), 1)
|
|
1479
1485
|
];
|
|
1480
1486
|
}),
|
|
1481
1487
|
_: 1
|
|
1482
1488
|
}, 8, ["title", "model-value"])
|
|
1483
1489
|
])) : y("", !0),
|
|
1484
|
-
|
|
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
|
-
D(
|
|
1498
|
+
D(k(e(F)("action.select", { capitalize: !0 })), 1)
|
|
1493
1499
|
]),
|
|
1494
1500
|
_: 1
|
|
1495
1501
|
})), [
|
|
@@ -1499,21 +1505,21 @@ 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
|
|
1503
|
-
(n(!0), s(J, null, U(
|
|
1508
|
+
"items" in g.property ? (n(), s("div", Lo, [
|
|
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),
|
|
1506
|
-
property:
|
|
1507
|
-
modelValue:
|
|
1512
|
+
property: g.property,
|
|
1513
|
+
modelValue: g.modelValue
|
|
1508
1514
|
}, {
|
|
1509
1515
|
key: `selected-${T._id}`,
|
|
1510
1516
|
"onUpdate:modelValue": le
|
|
1511
1517
|
}), null, 16))), 128))
|
|
1512
|
-
])) : (I =
|
|
1513
|
-
item:
|
|
1518
|
+
])) : (I = g.modelValue) != null && I._id ? (n(), $(De, E({ key: 1 }, {
|
|
1519
|
+
item: g.modelValue,
|
|
1514
1520
|
indexes: e(h),
|
|
1515
1521
|
property: e(o),
|
|
1516
|
-
modelValue:
|
|
1522
|
+
modelValue: g.modelValue
|
|
1517
1523
|
}, { "onUpdate:modelValue": le }), null, 16)) : y("", !0)
|
|
1518
1524
|
];
|
|
1519
1525
|
}),
|
|
@@ -1600,31 +1606,31 @@ 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 =
|
|
1611
|
-
const
|
|
1612
|
-
return o[f] && ye(f, o[f]),
|
|
1613
|
-
}, p = H(() => o.validationErrors !== null ? o.validationErrors : _ == null ? void 0 : _.validationErrors), b = a("formComponents") || {}, S = a("propertyComponents") || {},
|
|
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) => {
|
|
1617
|
+
const g = ve(f, o[f]);
|
|
1618
|
+
return o[f] && ye(f, o[f]), g;
|
|
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
|
-
const O = (f) => h.value ? Object.entries(h.value).filter(([
|
|
1616
|
-
|
|
1621
|
+
const O = (f) => h.value ? Object.entries(h.value).filter(([g, j]) => !j.noForm && f([
|
|
1622
|
+
g,
|
|
1617
1623
|
j
|
|
1618
1624
|
])) : null, M = (f) => {
|
|
1619
1625
|
var j;
|
|
1620
1626
|
if (o.searchOnly || !u)
|
|
1621
1627
|
return !0;
|
|
1622
|
-
const
|
|
1623
|
-
return !
|
|
1624
|
-
},
|
|
1628
|
+
const g = o.property && "properties" in o.property ? o.property.form : (j = _ == null ? void 0 : _.description) == null ? void 0 : j.form;
|
|
1629
|
+
return !g || g.includes(f);
|
|
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
|
-
if (!
|
|
1633
|
+
if (!g)
|
|
1628
1634
|
return;
|
|
1629
1635
|
if (N != null && N.if && !o.searchOnly) {
|
|
1630
1636
|
const me = Qe(
|
|
@@ -1649,41 +1655,41 @@ 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,
|
|
1656
1662
|
_ == null ? void 0 : _.description
|
|
1657
|
-
) : !0), le = (f,
|
|
1663
|
+
) : !0), le = (f, g) => {
|
|
1658
1664
|
var j;
|
|
1659
|
-
return (j = p.value) != null && j[f] && (typeof p.value[f].index != "number" || p.value[f].index ===
|
|
1665
|
+
return (j = p.value) != null && j[f] && (typeof p.value[f].index != "number" || p.value[f].index === g) ? p.value[f].errors : null;
|
|
1660
1666
|
};
|
|
1661
|
-
return (f,
|
|
1667
|
+
return (f, g) => {
|
|
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,
|
|
1683
1689
|
"form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
|
|
1684
1690
|
"form__field-required-hint": f.highlightRequired && !f.searchOnly && (!te.value || e(Qt)(I, te.value, f.modelValue))
|
|
1685
1691
|
})
|
|
1686
|
-
},
|
|
1692
|
+
}, k(T.description || e(F)(I)), 3),
|
|
1687
1693
|
T.hint ? (n(), s("div", {
|
|
1688
1694
|
key: 0,
|
|
1689
1695
|
innerHTML: T.hint
|
|
@@ -1707,12 +1713,12 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1707
1713
|
...f.layout.fields[I].component.props || {}
|
|
1708
1714
|
}, {
|
|
1709
1715
|
onInput: (x) => l("input", I),
|
|
1710
|
-
onChange:
|
|
1716
|
+
onChange: g[0] || (g[0] = (x) => l("change", x))
|
|
1711
1717
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && f.searchOnly ? (n(), s("div", {
|
|
1712
1718
|
key: 3,
|
|
1713
1719
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1714
1720
|
onInput: (x) => l("input", I),
|
|
1715
|
-
onChange:
|
|
1721
|
+
onChange: g[1] || (g[1] = (x) => l("change", x))
|
|
1716
1722
|
}, [
|
|
1717
1723
|
z(Ie, E({
|
|
1718
1724
|
modelValue: f.modelValue[I].$gte,
|
|
@@ -1737,31 +1743,30 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1737
1743
|
}, {
|
|
1738
1744
|
"boolean-ref": "",
|
|
1739
1745
|
"model-value": f.modelValue[I],
|
|
1740
|
-
onChange:
|
|
1746
|
+
onChange: g[2] || (g[2] = (x) => l("change", x)),
|
|
1741
1747
|
"onUpdate:modelValue": (x) => {
|
|
1742
1748
|
f.modelValue[I] = x == "true" ? !0 : x == "false" ? !1 : null;
|
|
1743
1749
|
}
|
|
1744
1750
|
}), {
|
|
1745
1751
|
default: v(() => [
|
|
1746
|
-
V("option", Wo,
|
|
1747
|
-
V("option", Xo,
|
|
1752
|
+
V("option", Wo, k(e(F)("yes")), 1),
|
|
1753
|
+
V("option", Xo, k(e(F)("no")), 1)
|
|
1748
1754
|
]),
|
|
1749
1755
|
_: 2
|
|
1750
1756
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1751
1757
|
])) : f.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (n(), s("div", Yo, [
|
|
1752
1758
|
V("div", null, [
|
|
1753
|
-
V("pre", null, g(f.modelValue), 1),
|
|
1754
1759
|
z(ie, {
|
|
1755
1760
|
small: "",
|
|
1756
1761
|
variant: "alt",
|
|
1757
1762
|
icon: "plus",
|
|
1758
|
-
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])),
|
|
1759
1764
|
onClick: ze((x) => {
|
|
1760
1765
|
f.modelValue[I] || (f.modelValue[I] = []), e(Fo)(f.modelValue[I], T, e(t));
|
|
1761
1766
|
}, ["prevent"])
|
|
1762
1767
|
}, {
|
|
1763
1768
|
default: v(() => [
|
|
1764
|
-
D(
|
|
1769
|
+
D(k(e(F)("action.add", { capitalize: !0 })), 1)
|
|
1765
1770
|
]),
|
|
1766
1771
|
_: 2
|
|
1767
1772
|
}, 1032, ["disabled", "onClick"])
|
|
@@ -1787,7 +1792,7 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1787
1792
|
...T.componentProps || {}
|
|
1788
1793
|
}, {
|
|
1789
1794
|
onInput: (we) => l("input", I),
|
|
1790
|
-
onChange:
|
|
1795
|
+
onChange: g[3] || (g[3] = (we) => l("change", we))
|
|
1791
1796
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1792
1797
|
]),
|
|
1793
1798
|
Z(z(K, {
|
|
@@ -1814,13 +1819,13 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1814
1819
|
validationErrors: le(I)
|
|
1815
1820
|
}, {
|
|
1816
1821
|
onInput: (x) => l("input", I),
|
|
1817
|
-
onChange:
|
|
1822
|
+
onChange: g[4] || (g[4] = (x) => l("change", x))
|
|
1818
1823
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1819
1824
|
[N, !m.value && (m.value = !!f.focus)]
|
|
1820
1825
|
]) : y("", !0),
|
|
1821
1826
|
(et = p.value) != null && et[I] ? (n(), s("div", Ko, [
|
|
1822
|
-
p.value[I].type ? (n(), s("span", Zo,
|
|
1823
|
-
p.value[I].detail ? (n(), s("span", Po,
|
|
1827
|
+
p.value[I].type ? (n(), s("span", Zo, k(e(F)(`validation_error.${p.value[I].type}`)), 1)) : y("", !0),
|
|
1828
|
+
p.value[I].detail ? (n(), s("span", Po, k(e(F)(p.value[I].detail)), 1)) : y("", !0)
|
|
1824
1829
|
])) : y("", !0)
|
|
1825
1830
|
], 4);
|
|
1826
1831
|
}), 128))
|
|
@@ -1835,11 +1840,11 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1835
1840
|
};
|
|
1836
1841
|
}
|
|
1837
1842
|
});
|
|
1838
|
-
const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-
|
|
1843
|
+
const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @__PURE__ */ q({
|
|
1839
1844
|
__name: "aeria-filter-panel",
|
|
1840
1845
|
emits: ["update:modelValue"],
|
|
1841
1846
|
setup(c, { emit: r }) {
|
|
1842
|
-
const t = r, o = ge(), l =
|
|
1847
|
+
const t = r, o = ge(), l = Re(), i = () => {
|
|
1843
1848
|
o.pagination.offset = 0, o.$actions.filter(), t("update:modelValue", !1), l.push({
|
|
1844
1849
|
query: Ft(o)
|
|
1845
1850
|
});
|
|
@@ -1860,10 +1865,10 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
1860
1865
|
})
|
|
1861
1866
|
}, {
|
|
1862
1867
|
default: v(() => [
|
|
1863
|
-
D(
|
|
1868
|
+
D(k(u.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1864
1869
|
z(be, null, {
|
|
1865
1870
|
default: v(() => [
|
|
1866
|
-
D(
|
|
1871
|
+
D(k(e(o).filtersCount), 1)
|
|
1867
1872
|
]),
|
|
1868
1873
|
_: 1
|
|
1869
1874
|
})
|
|
@@ -1877,7 +1882,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
1877
1882
|
onClick: i
|
|
1878
1883
|
}, {
|
|
1879
1884
|
default: v(() => [
|
|
1880
|
-
D(
|
|
1885
|
+
D(k(u.t("action.filter", { capitalize: !0 })), 1)
|
|
1881
1886
|
]),
|
|
1882
1887
|
_: 1
|
|
1883
1888
|
}, 8, ["disabled"])
|
|
@@ -1895,12 +1900,12 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
1895
1900
|
_: 1
|
|
1896
1901
|
}, 8, ["title"]));
|
|
1897
1902
|
}
|
|
1898
|
-
}), se =
|
|
1903
|
+
}), se = Y(!1), ut = Y(!1), ke = Y(!1), Be = Y((...c) => null), ct = Y(), dt = !1, ta = /* @__PURE__ */ q({
|
|
1899
1904
|
__name: "aeria-insert-panel",
|
|
1900
1905
|
setup(c) {
|
|
1901
1906
|
const r = ue("meta"), t = ue(r.view.collection), o = ve("individualActions", []), l = async () => {
|
|
1902
1907
|
const _ = await t.$actions.deepInsert();
|
|
1903
|
-
|
|
1908
|
+
bt(_) || (se.value = !1);
|
|
1904
1909
|
}, { t: i } = jt(), u = () => {
|
|
1905
1910
|
r.$actions.ask({
|
|
1906
1911
|
action: () => {
|
|
@@ -1915,13 +1920,13 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
1915
1920
|
const h = ne("clickable");
|
|
1916
1921
|
return n(), $(Ae, {
|
|
1917
1922
|
modelValue: e(se),
|
|
1918
|
-
"onUpdate:modelValue": m[3] || (m[3] = (d) =>
|
|
1923
|
+
"onUpdate:modelValue": m[3] || (m[3] = (d) => vt(se) ? se.value = d : null),
|
|
1919
1924
|
"fixed-right": "",
|
|
1920
1925
|
loading: e(t).loading.get,
|
|
1921
1926
|
onOverlayClick: u
|
|
1922
1927
|
}, {
|
|
1923
1928
|
header: v(() => [
|
|
1924
|
-
V("span", null,
|
|
1929
|
+
V("span", null, k((() => {
|
|
1925
1930
|
switch (e(se)) {
|
|
1926
1931
|
case "add":
|
|
1927
1932
|
return e(i)("action.add", { capitalize: !0 });
|
|
@@ -1932,7 +1937,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
1932
1937
|
return e(i)("action.edit", { capitalize: !0 });
|
|
1933
1938
|
}
|
|
1934
1939
|
})()), 1),
|
|
1935
|
-
V("span", null, " " +
|
|
1940
|
+
V("span", null, " " + k(e(i)(e(r).view.collection)), 1)
|
|
1936
1941
|
]),
|
|
1937
1942
|
extra: v(() => [
|
|
1938
1943
|
z(Ce, E({
|
|
@@ -1959,7 +1964,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
1959
1964
|
onClick: u
|
|
1960
1965
|
}, {
|
|
1961
1966
|
default: v(() => [
|
|
1962
|
-
D(
|
|
1967
|
+
D(k(e(i)("action.cancel", { capitalize: !0 })), 1)
|
|
1963
1968
|
]),
|
|
1964
1969
|
_: 1
|
|
1965
1970
|
}),
|
|
@@ -1970,7 +1975,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
1970
1975
|
onClick: l
|
|
1971
1976
|
}, {
|
|
1972
1977
|
default: v(() => [
|
|
1973
|
-
D(
|
|
1978
|
+
D(k(e(i)("action.insert", { capitalize: !0 })), 1)
|
|
1974
1979
|
]),
|
|
1975
1980
|
_: 1
|
|
1976
1981
|
}, 8, ["disabled", "loading"])
|
|
@@ -2000,7 +2005,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2000
2005
|
}, 8, ["modelValue", "loading"]);
|
|
2001
2006
|
};
|
|
2002
2007
|
}
|
|
2003
|
-
}),
|
|
2008
|
+
}), kt = (c, r) => {
|
|
2004
2009
|
if (r) {
|
|
2005
2010
|
if (!c) {
|
|
2006
2011
|
r.filtersPreset = {}, r.preferredTableProperties = [], r.pagination.offset = 0;
|
|
@@ -2011,12 +2016,12 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2011
2016
|
}, na = (c, r = {
|
|
2012
2017
|
persistInQuery: !0
|
|
2013
2018
|
}) => {
|
|
2014
|
-
const o =
|
|
2019
|
+
const o = Re().currentRoute;
|
|
2015
2020
|
return re(() => o.value.query.section, (l) => {
|
|
2016
2021
|
if (c) {
|
|
2017
2022
|
if (c.description.filtersPresets) {
|
|
2018
2023
|
const i = l || Object.keys(c.description.filtersPresets)[0];
|
|
2019
|
-
|
|
2024
|
+
kt(c.description.filtersPresets[i], c);
|
|
2020
2025
|
}
|
|
2021
2026
|
if (r.persistInQuery) {
|
|
2022
2027
|
const i = o.value.query;
|
|
@@ -2049,9 +2054,9 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2049
2054
|
class: "no-print table__mobile-actions"
|
|
2050
2055
|
}, Sa = ["id"], ja = { key: 1 }, Ta = /* @__PURE__ */ oa(() => /* @__PURE__ */ V("td", { colspan: 10 }, [
|
|
2051
2056
|
/* @__PURE__ */ V("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
|
|
2052
|
-
], -1)),
|
|
2057
|
+
], -1)), Ra = [
|
|
2053
2058
|
Ta
|
|
2054
|
-
],
|
|
2059
|
+
], La = /* @__PURE__ */ q({
|
|
2055
2060
|
__name: "aeria-table",
|
|
2056
2061
|
props: {
|
|
2057
2062
|
columns: {},
|
|
@@ -2069,25 +2074,25 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2069
2074
|
}), m = (p, b) => p != null && p.button ? typeof p.button == "object" ? Qe(b, p.button).satisfied : p.button : !1, h = (p) => {
|
|
2070
2075
|
var b;
|
|
2071
2076
|
return !l.value.xl || !((b = t.layout) != null && b.actions) || !t.actions ? [] : t.actions.filter((S) => {
|
|
2072
|
-
const
|
|
2073
|
-
return m(
|
|
2077
|
+
const L = t.layout.actions[S.action];
|
|
2078
|
+
return m(L, p);
|
|
2074
2079
|
});
|
|
2075
2080
|
}, d = (p) => {
|
|
2076
2081
|
var b;
|
|
2077
2082
|
return t.actions ? !l.value.xl || !((b = t.layout) != null && b.actions) ? t.actions : t.actions.filter((S) => {
|
|
2078
|
-
const
|
|
2079
|
-
return !m(
|
|
2083
|
+
const L = t.layout.actions[S.action];
|
|
2084
|
+
return !m(L, p);
|
|
2080
2085
|
}) : [];
|
|
2081
2086
|
}, a = (p, b) => {
|
|
2082
|
-
var
|
|
2083
|
-
const S = [],
|
|
2084
|
-
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(
|
|
2085
2090
|
p,
|
|
2086
|
-
|
|
2091
|
+
L.if
|
|
2087
2092
|
).satisfied || S.push("display: none;")), S.join("");
|
|
2088
2093
|
};
|
|
2089
2094
|
return (p, b) => {
|
|
2090
|
-
var
|
|
2095
|
+
var L, W, P;
|
|
2091
2096
|
const S = ne("clickable");
|
|
2092
2097
|
return p.columns && Object.keys(p.columns).length > 0 || p.$slots.thead ? (n(), s("table", aa, [
|
|
2093
2098
|
p.$slots.thead ? (n(), s("thead", la, [
|
|
@@ -2101,18 +2106,18 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2101
2106
|
onChange: b[0] || (b[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
|
|
2102
2107
|
}, null, 40, ra)
|
|
2103
2108
|
])) : y("", !0),
|
|
2104
|
-
(n(!0), s(J, null, U(Object.entries(p.columns), ([O, M],
|
|
2105
|
-
key: `header-${
|
|
2109
|
+
(n(!0), s(J, null, U(Object.entries(p.columns), ([O, M], X) => (n(), s("th", {
|
|
2110
|
+
key: `header-${X}`,
|
|
2106
2111
|
class: "table__header"
|
|
2107
|
-
},
|
|
2108
|
-
(
|
|
2112
|
+
}, k(M.description || e(F)(O)), 1))), 128)),
|
|
2113
|
+
(L = p.actions) != null && L.length ? (n(), s("th", ua)) : y("", !0)
|
|
2109
2114
|
])
|
|
2110
2115
|
])),
|
|
2111
2116
|
p.$slots.tbody ? (n(), s("tbody", ca, [
|
|
2112
2117
|
A(p.$slots, "tbody", {}, void 0, !0)
|
|
2113
2118
|
])) : (n(), s("tbody", da, [
|
|
2114
2119
|
(n(!0), s(J, null, U(p.rows, (O) => {
|
|
2115
|
-
var M,
|
|
2120
|
+
var M, X;
|
|
2116
2121
|
return n(), s("tr", {
|
|
2117
2122
|
key: O._id,
|
|
2118
2123
|
onClick: (w) => o("itemClick", O)
|
|
@@ -2127,11 +2132,11 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2127
2132
|
])
|
|
2128
2133
|
])) : y("", !0),
|
|
2129
2134
|
(n(!0), s(J, null, U(Object.entries(p.columns), ([w, ee], C) => {
|
|
2130
|
-
var
|
|
2135
|
+
var R, te, oe, le, f, g;
|
|
2131
2136
|
return n(), s("td", {
|
|
2132
2137
|
key: `column-${O._id}-${C}`
|
|
2133
2138
|
}, [
|
|
2134
|
-
V("div", fa,
|
|
2139
|
+
V("div", fa, k(ee.description || e(F)(w)), 1),
|
|
2135
2140
|
`row-${w}` in p.$slots ? (n(), s("div", va, [
|
|
2136
2141
|
A(p.$slots, `row-${w}`, E({ ref_for: !0 }, {
|
|
2137
2142
|
store: e(u),
|
|
@@ -2148,7 +2153,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2148
2153
|
"icon-classes": "aeria-blueish"
|
|
2149
2154
|
}, {
|
|
2150
2155
|
default: v(() => [
|
|
2151
|
-
D(
|
|
2156
|
+
D(k(e(F)("yes")), 1)
|
|
2152
2157
|
]),
|
|
2153
2158
|
_: 1
|
|
2154
2159
|
})) : (n(), $(K, {
|
|
@@ -2157,11 +2162,11 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2157
2162
|
"icon-classes": "aeria-redish"
|
|
2158
2163
|
}, {
|
|
2159
2164
|
default: v(() => [
|
|
2160
|
-
D(
|
|
2165
|
+
D(k(e(F)("no")), 1)
|
|
2161
2166
|
]),
|
|
2162
2167
|
_: 1
|
|
2163
2168
|
}))
|
|
2164
|
-
])) : ((
|
|
2169
|
+
])) : ((R = e(pe)(ee)) == null ? void 0 : R.$ref) === "file" ? (n(), s("div", ba, [
|
|
2165
2170
|
/^image/.test((te = O[w][0]) == null ? void 0 : te.type) && "items" in ee ? (n(), $(Me, {
|
|
2166
2171
|
key: 0,
|
|
2167
2172
|
modelValue: O[w][0].link,
|
|
@@ -2182,18 +2187,18 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2182
2187
|
key: 2,
|
|
2183
2188
|
href: O[w].link,
|
|
2184
2189
|
style: { "font-size": "10pt" }
|
|
2185
|
-
},
|
|
2190
|
+
}, k(O[w].filename), 9, ga)) : (n(), s("div", ka, " - "))
|
|
2186
2191
|
])) : (n(), s("div", Va, [
|
|
2187
|
-
e(u) ? (n(), s("span", Ca,
|
|
2192
|
+
e(u) ? (n(), s("span", Ca, k(e(u).$actions.formatValue({
|
|
2188
2193
|
value: O[w],
|
|
2189
2194
|
key: w,
|
|
2190
2195
|
property: ee
|
|
2191
|
-
})), 1)) : (n(), s("span", Ia,
|
|
2192
|
-
((
|
|
2196
|
+
})), 1)) : (n(), s("span", Ia, k(Array.isArray(O[w]) ? O[w].filter((j) => !!j).join(", ") : [void 0, null].includes(O[w]) ? "-" : O[w]), 1)),
|
|
2197
|
+
((g = (f = e(pe)(ee)) == null ? void 0 : f.indexes) == null ? void 0 : g.length) > 1 ? (n(), s("div", Aa, [
|
|
2193
2198
|
(n(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (j, N) => (n(), s("div", {
|
|
2194
2199
|
key: `subvalue-${N}`,
|
|
2195
2200
|
class: "table__cell-subvalue"
|
|
2196
|
-
},
|
|
2201
|
+
}, k(e(u).$actions.formatValue({
|
|
2197
2202
|
value: O[w],
|
|
2198
2203
|
key: w,
|
|
2199
2204
|
property: ee,
|
|
@@ -2216,7 +2221,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2216
2221
|
onClick: (ee) => w.click(O)
|
|
2217
2222
|
}, {
|
|
2218
2223
|
default: v(() => [
|
|
2219
|
-
D(
|
|
2224
|
+
D(k(e(F)(w.label)), 1)
|
|
2220
2225
|
]),
|
|
2221
2226
|
_: 2
|
|
2222
2227
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
@@ -2238,7 +2243,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2238
2243
|
_: 2
|
|
2239
2244
|
}, 1040)) : y("", !0)
|
|
2240
2245
|
])
|
|
2241
|
-
])) : (
|
|
2246
|
+
])) : (X = p.actions) != null && X.length ? (n(), s("td", Ba, [
|
|
2242
2247
|
V("div", {
|
|
2243
2248
|
class: "table__mobile-actions-grid",
|
|
2244
2249
|
style: $e(`grid-template-columns: repeat(${h(O).length + (d(O).length ? 1 : 0)}, 1fr);`)
|
|
@@ -2253,7 +2258,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2253
2258
|
icon: w.icon || "gear"
|
|
2254
2259
|
}, {
|
|
2255
2260
|
default: v(() => [
|
|
2256
|
-
D(
|
|
2261
|
+
D(k(e(F)(w.label)), 1)
|
|
2257
2262
|
]),
|
|
2258
2263
|
_: 2
|
|
2259
2264
|
}, 1032, ["icon"])
|
|
@@ -2284,13 +2289,13 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-6d6e747f"]]), ea = /* @_
|
|
|
2284
2289
|
}), 128))
|
|
2285
2290
|
])),
|
|
2286
2291
|
V("tfoot", null, [
|
|
2287
|
-
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)
|
|
2288
2293
|
])
|
|
2289
2294
|
])) : y("", !0);
|
|
2290
2295
|
};
|
|
2291
2296
|
}
|
|
2292
2297
|
});
|
|
2293
|
-
const za = /* @__PURE__ */ G(
|
|
2298
|
+
const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @__PURE__ */ q({
|
|
2294
2299
|
__name: "aeria-tabular",
|
|
2295
2300
|
props: {
|
|
2296
2301
|
individualActions: {},
|
|
@@ -2364,8 +2369,8 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2364
2369
|
horizontal: i.componentName === "list"
|
|
2365
2370
|
}, de({
|
|
2366
2371
|
footer: v(() => [
|
|
2367
|
-
e(t).title ? (n(), s("div", Ua,
|
|
2368
|
-
e(t).information ? (n(), s("div", Ea,
|
|
2372
|
+
e(t).title ? (n(), s("div", Ua, k(m[e(t).title]), 1)) : y("", !0),
|
|
2373
|
+
e(t).information ? (n(), s("div", Ea, k(m[e(t).information]), 1)) : y("", !0)
|
|
2369
2374
|
]),
|
|
2370
2375
|
actions: v(() => [
|
|
2371
2376
|
i.individualActions.length > 0 ? (n(), $(Ce, E({
|
|
@@ -2407,7 +2412,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2407
2412
|
large: ""
|
|
2408
2413
|
}, {
|
|
2409
2414
|
default: v(() => [
|
|
2410
|
-
D(
|
|
2415
|
+
D(k(e(t).translateBadge ? e(F)(h) : h), 1)
|
|
2411
2416
|
]),
|
|
2412
2417
|
_: 2
|
|
2413
2418
|
}, 1024))), 128))
|
|
@@ -2418,7 +2423,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2418
2423
|
fn: v(() => [
|
|
2419
2424
|
z(be, null, {
|
|
2420
2425
|
default: v(() => [
|
|
2421
|
-
D(
|
|
2426
|
+
D(k(e(t).translateBadge ? e(F)(m[e(t).badge]) : m[e(t)[i.badge]]), 1)
|
|
2422
2427
|
]),
|
|
2423
2428
|
_: 2
|
|
2424
2429
|
}, 1024)
|
|
@@ -2432,7 +2437,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2432
2437
|
};
|
|
2433
2438
|
}
|
|
2434
2439
|
});
|
|
2435
|
-
const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-
|
|
2440
|
+
const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) => ({
|
|
2436
2441
|
tabular: Ma,
|
|
2437
2442
|
grid: pt,
|
|
2438
2443
|
list: pt
|
|
@@ -2461,31 +2466,31 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2461
2466
|
},
|
|
2462
2467
|
emits: ["uiEvent"],
|
|
2463
2468
|
setup(c, { emit: r }) {
|
|
2464
|
-
const t = c, o = r, l =
|
|
2469
|
+
const t = c, o = r, l = Re(), i = ht({
|
|
2465
2470
|
delay: 600
|
|
2466
2471
|
}), u = ue("meta"), _ = je(), { reachedEnd: m, detach: h } = We(null, {
|
|
2467
2472
|
antecipate: 600
|
|
2468
2473
|
}), d = !_.value.md || t.scrollPagination;
|
|
2469
2474
|
d && re(m, (C) => {
|
|
2470
|
-
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());
|
|
2471
2476
|
});
|
|
2472
2477
|
const a = ue(t.collection);
|
|
2473
2478
|
na(a, {
|
|
2474
2479
|
persistInQuery: !t.noQueryPersistence
|
|
2475
2480
|
});
|
|
2476
|
-
const p =
|
|
2481
|
+
const p = $t(), b = t.action ? e(t.action) : qt(a, l, p);
|
|
2477
2482
|
Be.value = b[0], ct.value = b[1];
|
|
2478
|
-
const S =
|
|
2483
|
+
const S = Y(0), L = Y(!1), W = async (C) => {
|
|
2479
2484
|
a.activeFilters = Object.assign({}, (C == null ? void 0 : C.filters) || a.$filters), Object.assign(a.activeFilters, a.filtersPreset);
|
|
2480
|
-
const
|
|
2485
|
+
const R = {
|
|
2481
2486
|
filters: a.activeFilters,
|
|
2482
2487
|
limit: a.pagination.limit,
|
|
2483
2488
|
offset: a.pagination.offset,
|
|
2484
2489
|
project: a.preferredTableProperties.length > 0 ? a.preferredTableProperties : a.description.table || Object.keys(a.properties)
|
|
2485
2490
|
};
|
|
2486
|
-
S.value > 0 && (
|
|
2487
|
-
const { data: te, pagination: oe } = await a.$actions.retrieveItems(
|
|
2488
|
-
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;
|
|
2489
2494
|
}, P = async (C) => {
|
|
2490
2495
|
l.push({
|
|
2491
2496
|
query: {
|
|
@@ -2493,18 +2498,18 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2493
2498
|
offset: C.offset,
|
|
2494
2499
|
limit: C.limit
|
|
2495
2500
|
}
|
|
2496
|
-
}), a.pagination.offset = C.offset, a.pagination.limit = C.limit,
|
|
2501
|
+
}), a.pagination.offset = C.offset, a.pagination.limit = C.limit, W();
|
|
2497
2502
|
}, O = ve("noResultsComponent", null);
|
|
2498
2503
|
re(() => [
|
|
2499
2504
|
l.currentRoute.value.path,
|
|
2500
2505
|
l.currentRoute.value.query.section
|
|
2501
|
-
], async (C,
|
|
2502
|
-
if (
|
|
2506
|
+
], async (C, R) => {
|
|
2507
|
+
if (R && R[0] === C[0] && R[1] === C[1])
|
|
2503
2508
|
return;
|
|
2504
2509
|
const te = l.currentRoute.value;
|
|
2505
2510
|
if (u.view.title = t.collection, u.view.collection = t.collection, ut.value = !1, !t.noFetch && !te.query._popstate) {
|
|
2506
2511
|
const oe = Ut(a, te);
|
|
2507
|
-
Object.keys(oe).length > 0 && Object.assign(a.filters, oe), await
|
|
2512
|
+
Object.keys(oe).length > 0 && Object.assign(a.filters, oe), await W();
|
|
2508
2513
|
}
|
|
2509
2514
|
}, {
|
|
2510
2515
|
immediate: !0,
|
|
@@ -2519,47 +2524,47 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2519
2524
|
$search: `"${C}"`,
|
|
2520
2525
|
$caseSensitive: !1
|
|
2521
2526
|
}
|
|
2522
|
-
}),
|
|
2527
|
+
}), W({
|
|
2523
2528
|
offset: 0
|
|
2524
|
-
})) : (a.filters = Se(a.freshFilters), S.value = 0,
|
|
2529
|
+
})) : (a.filters = Se(a.freshFilters), S.value = 0, W())));
|
|
2525
2530
|
re(() => a.textQuery, (C) => {
|
|
2526
2531
|
M(C);
|
|
2527
2532
|
});
|
|
2528
|
-
const
|
|
2533
|
+
const X = (C) => {
|
|
2529
2534
|
C.currentLayout = C.currentLayout === "tabular" ? C.description.layout.name : "tabular";
|
|
2530
2535
|
};
|
|
2531
2536
|
At(() => {
|
|
2532
2537
|
a.$actions.clearFilters(), a.textQuery = "", h();
|
|
2533
2538
|
}), re(() => ct.value, async (C) => {
|
|
2534
2539
|
var oe;
|
|
2535
|
-
const
|
|
2540
|
+
const R = Se(C);
|
|
2536
2541
|
let te;
|
|
2537
|
-
if (
|
|
2542
|
+
if (R)
|
|
2538
2543
|
if ([
|
|
2539
2544
|
"spawnEdit",
|
|
2540
2545
|
"spawnView",
|
|
2541
2546
|
"duplicate"
|
|
2542
|
-
].includes(
|
|
2547
|
+
].includes(R.name) && (te = a.$actions.get({
|
|
2543
2548
|
filters: {
|
|
2544
|
-
_id:
|
|
2549
|
+
_id: R.params._id
|
|
2545
2550
|
}
|
|
2546
|
-
})),
|
|
2547
|
-
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) => {
|
|
2548
2553
|
delete a.referenceItem[le];
|
|
2549
2554
|
})), se.value = "add";
|
|
2550
|
-
else if (
|
|
2551
|
-
a.$actions.setItem(
|
|
2552
|
-
else if (
|
|
2555
|
+
else if (R.name === "spawnEdit")
|
|
2556
|
+
a.$actions.setItem(R.params), se.value = "edit";
|
|
2557
|
+
else if (R.name === "spawnView")
|
|
2553
2558
|
ut.value = !0, se.value = "view";
|
|
2554
|
-
else if (
|
|
2559
|
+
else if (R.name === "duplicate") {
|
|
2555
2560
|
await te;
|
|
2556
|
-
const le = Object.entries(a.item).reduce((f, [
|
|
2557
|
-
if (!(
|
|
2561
|
+
const le = Object.entries(a.item).reduce((f, [g, j]) => {
|
|
2562
|
+
if (!(g in a.properties))
|
|
2558
2563
|
return {
|
|
2559
2564
|
...f,
|
|
2560
|
-
[
|
|
2565
|
+
[g]: j
|
|
2561
2566
|
};
|
|
2562
|
-
const N = a.properties[
|
|
2567
|
+
const N = a.properties[g];
|
|
2563
2568
|
if (N.readOnly)
|
|
2564
2569
|
return f;
|
|
2565
2570
|
const I = (T) => {
|
|
@@ -2576,12 +2581,12 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2576
2581
|
};
|
|
2577
2582
|
return j = Array.isArray(j) ? j.map(I) : I(j), {
|
|
2578
2583
|
...f,
|
|
2579
|
-
[
|
|
2584
|
+
[g]: j
|
|
2580
2585
|
};
|
|
2581
2586
|
}, {});
|
|
2582
2587
|
a.$actions.setItem(le), delete a.item._id, a.referenceItem = {}, se.value = "duplicate";
|
|
2583
2588
|
} else
|
|
2584
|
-
o("uiEvent",
|
|
2589
|
+
o("uiEvent", R);
|
|
2585
2590
|
}, {
|
|
2586
2591
|
deep: !0
|
|
2587
2592
|
}), re(() => se, (C) => {
|
|
@@ -2591,14 +2596,14 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2591
2596
|
click: Be.value(C),
|
|
2592
2597
|
...C
|
|
2593
2598
|
}))), ee = H(() => a.actions.filter((C) => !C.button));
|
|
2594
|
-
return ye(Ue, H(() => t.collection)), ye("individualActions", w), (C,
|
|
2595
|
-
var le, f,
|
|
2599
|
+
return ye(Ue, H(() => t.collection)), ye("individualActions", w), (C, R) => {
|
|
2600
|
+
var le, f, g, j, N, I, T;
|
|
2596
2601
|
const te = ne("clickable"), oe = ne("loading");
|
|
2597
2602
|
return n(), s(J, null, [
|
|
2598
2603
|
e(ke) ? (n(), $(ea, {
|
|
2599
2604
|
key: e(a).$id,
|
|
2600
2605
|
modelValue: e(ke),
|
|
2601
|
-
"onUpdate:modelValue":
|
|
2606
|
+
"onUpdate:modelValue": R[0] || (R[0] = (B) => vt(ke) ? ke.value = B : null)
|
|
2602
2607
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2603
2608
|
e(se) ? (n(), $(ta, { key: 1 }, de({ _: 2 }, [
|
|
2604
2609
|
U(Object.keys(C.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
@@ -2612,7 +2617,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2612
2617
|
e(a).description.search ? (n(), s("div", Wa, [
|
|
2613
2618
|
z(Ie, E({
|
|
2614
2619
|
modelValue: e(a).textQuery,
|
|
2615
|
-
"onUpdate:modelValue":
|
|
2620
|
+
"onUpdate:modelValue": R[1] || (R[1] = (B) => e(a).textQuery = B)
|
|
2616
2621
|
}, {
|
|
2617
2622
|
property: {
|
|
2618
2623
|
type: "string",
|
|
@@ -2622,7 +2627,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2622
2627
|
}), null, 16, ["modelValue"])
|
|
2623
2628
|
])) : y("", !0),
|
|
2624
2629
|
V("div", Xa, [
|
|
2625
|
-
ee.value.length > 0 || !C.noLayoutToggle && e(a).description.layout && ((
|
|
2630
|
+
ee.value.length > 0 || !C.noLayoutToggle && e(a).description.layout && ((g = e(a).description.layout) == null ? void 0 : g.name) !== "tabular" ? (n(), $(Ce, { key: 0 }, de({
|
|
2626
2631
|
default: v(() => [
|
|
2627
2632
|
z(ie, {
|
|
2628
2633
|
variant: "alt",
|
|
@@ -2631,7 +2636,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2631
2636
|
default: v(() => [
|
|
2632
2637
|
e(a).filtersCount ? (n(), $(be, { key: 0 }, {
|
|
2633
2638
|
default: v(() => [
|
|
2634
|
-
D(
|
|
2639
|
+
D(k(e(a).filtersCount), 1)
|
|
2635
2640
|
]),
|
|
2636
2641
|
_: 1
|
|
2637
2642
|
})) : y("", !0)
|
|
@@ -2646,10 +2651,10 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2646
2651
|
fn: v(() => [
|
|
2647
2652
|
Z((n(), $(K, {
|
|
2648
2653
|
icon: "funnel",
|
|
2649
|
-
onClick:
|
|
2654
|
+
onClick: R[2] || (R[2] = (B) => ke.value = !0)
|
|
2650
2655
|
}, {
|
|
2651
2656
|
default: v(() => [
|
|
2652
|
-
D(
|
|
2657
|
+
D(k(e(F)("filters", { capitalize: !0 })), 1)
|
|
2653
2658
|
]),
|
|
2654
2659
|
_: 1
|
|
2655
2660
|
})), [
|
|
@@ -2658,7 +2663,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2658
2663
|
V("div", Ya, [
|
|
2659
2664
|
e(a).filtersCount ? (n(), $(be, { key: 0 }, {
|
|
2660
2665
|
default: v(() => [
|
|
2661
|
-
D(
|
|
2666
|
+
D(k(e(a).filtersCount), 1)
|
|
2662
2667
|
]),
|
|
2663
2668
|
_: 1
|
|
2664
2669
|
})) : y("", !0)
|
|
@@ -2671,10 +2676,10 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2671
2676
|
fn: v(() => [
|
|
2672
2677
|
Z((n(), $(K, {
|
|
2673
2678
|
icon: "table",
|
|
2674
|
-
onClick:
|
|
2679
|
+
onClick: R[3] || (R[3] = (B) => X(e(a)))
|
|
2675
2680
|
}, {
|
|
2676
2681
|
default: v(() => [
|
|
2677
|
-
D(
|
|
2682
|
+
D(k(e(F)("change_layout", { capitalize: !0 })), 1)
|
|
2678
2683
|
]),
|
|
2679
2684
|
_: 1
|
|
2680
2685
|
})), [
|
|
@@ -2693,7 +2698,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2693
2698
|
onClick: (_e) => e(Be)(B)({ _id: e(a).selected.map((me) => me._id) })
|
|
2694
2699
|
}, {
|
|
2695
2700
|
default: v(() => [
|
|
2696
|
-
D(
|
|
2701
|
+
D(k(e(F)(B.label, { capitalize: !0 })), 1)
|
|
2697
2702
|
]),
|
|
2698
2703
|
_: 2
|
|
2699
2704
|
}, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
|
|
@@ -2703,13 +2708,13 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2703
2708
|
key: 1,
|
|
2704
2709
|
variant: "alt",
|
|
2705
2710
|
icon: "funnel",
|
|
2706
|
-
onClick:
|
|
2711
|
+
onClick: R[4] || (R[4] = (B) => ke.value = !0)
|
|
2707
2712
|
}, {
|
|
2708
2713
|
default: v(() => [
|
|
2709
2714
|
Ja,
|
|
2710
2715
|
e(a).filtersCount ? (n(), $(be, { key: 0 }, {
|
|
2711
2716
|
default: v(() => [
|
|
2712
|
-
D(
|
|
2717
|
+
D(k(e(a).filtersCount), 1)
|
|
2713
2718
|
]),
|
|
2714
2719
|
_: 1
|
|
2715
2720
|
})) : y("", !0)
|
|
@@ -2723,7 +2728,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2723
2728
|
onClick: (_e) => e(Be)(B)({ _id: e(a).selected.map((me) => me._id) })
|
|
2724
2729
|
}, {
|
|
2725
2730
|
default: v(() => [
|
|
2726
|
-
D(
|
|
2731
|
+
D(k(e(F)(B.label, { capitalize: !0 })), 1)
|
|
2727
2732
|
]),
|
|
2728
2733
|
_: 2
|
|
2729
2734
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
@@ -2731,7 +2736,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2731
2736
|
])
|
|
2732
2737
|
])) : y("", !0),
|
|
2733
2738
|
Z((n(), s("div", null, [
|
|
2734
|
-
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, [
|
|
2735
2740
|
e(O) ? (n(), $(he(e(O)), ce(E({ key: 0 }, {
|
|
2736
2741
|
collection: e(a).$id
|
|
2737
2742
|
})), {
|
|
@@ -2739,12 +2744,12 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2739
2744
|
e(a).filtersCount === 0 && e(a).description.actions && "ui:spawnAdd" in e(a).description.actions ? (n(), $(ie, {
|
|
2740
2745
|
key: 0,
|
|
2741
2746
|
icon: "plus",
|
|
2742
|
-
onClick:
|
|
2747
|
+
onClick: R[5] || (R[5] = (B) => e(Be)({
|
|
2743
2748
|
action: "ui:spawnAdd"
|
|
2744
2749
|
})())
|
|
2745
2750
|
}, {
|
|
2746
2751
|
default: v(() => [
|
|
2747
|
-
D(
|
|
2752
|
+
D(k(e(F)("add_first_item", { capitalize: !0 })), 1)
|
|
2748
2753
|
]),
|
|
2749
2754
|
_: 1
|
|
2750
2755
|
})) : y("", !0)
|
|
@@ -2789,7 +2794,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2789
2794
|
};
|
|
2790
2795
|
}
|
|
2791
2796
|
});
|
|
2792
|
-
const
|
|
2797
|
+
const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { class: "prompt" }, xa = /* @__PURE__ */ q({
|
|
2793
2798
|
__name: "aeria-prompt",
|
|
2794
2799
|
props: {
|
|
2795
2800
|
title: {},
|
|
@@ -2819,7 +2824,7 @@ const Ll = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2819
2824
|
onClick: (_) => i.click ? i.click(i) : t(i)
|
|
2820
2825
|
}, {
|
|
2821
2826
|
default: v(() => [
|
|
2822
|
-
D(
|
|
2827
|
+
D(k(i.title || i.name), 1)
|
|
2823
2828
|
]),
|
|
2824
2829
|
_: 2
|
|
2825
2830
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -2835,7 +2840,7 @@ const Ll = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2835
2840
|
o.title ? {
|
|
2836
2841
|
name: "title",
|
|
2837
2842
|
fn: v(() => [
|
|
2838
|
-
D(
|
|
2843
|
+
D(k(o.title), 1)
|
|
2839
2844
|
]),
|
|
2840
2845
|
key: "0"
|
|
2841
2846
|
} : void 0
|
|
@@ -2868,7 +2873,7 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2868
2873
|
), null, 16),
|
|
2869
2874
|
V("div", tl, [
|
|
2870
2875
|
A(t.$slots, "default", {}, void 0, !0),
|
|
2871
|
-
V("div", nl,
|
|
2876
|
+
V("div", nl, k(t.formatDateTime(t.date, { hoursOnly: !0 })), 1)
|
|
2872
2877
|
])
|
|
2873
2878
|
], 34)), [
|
|
2874
2879
|
[l]
|
|
@@ -2930,7 +2935,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2930
2935
|
}, 16, ["modelValue"]),
|
|
2931
2936
|
e(r).prompt.visible ? (n(), $(el, ce(E({ key: 0 }, e(r).prompt)), {
|
|
2932
2937
|
default: v(() => [
|
|
2933
|
-
D(
|
|
2938
|
+
D(k(e(r).prompt.body), 1)
|
|
2934
2939
|
]),
|
|
2935
2940
|
_: 1
|
|
2936
2941
|
}, 16)) : y("", !0),
|
|
@@ -2950,7 +2955,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2950
2955
|
};
|
|
2951
2956
|
}
|
|
2952
2957
|
});
|
|
2953
|
-
const
|
|
2958
|
+
const Ll = /* @__PURE__ */ G(rl, [["__scopeId", "data-v-1166be3d"]]);
|
|
2954
2959
|
const ul = {}, cl = { class: "menu" };
|
|
2955
2960
|
function dl(c, r) {
|
|
2956
2961
|
return n(), s("menu", cl, [
|
|
@@ -2979,7 +2984,7 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
2979
2984
|
dropdown: { type: Boolean }
|
|
2980
2985
|
},
|
|
2981
2986
|
setup(c) {
|
|
2982
|
-
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(() => {
|
|
2983
2988
|
const m = o.currentRoute.value[i][r.query || r.param];
|
|
2984
2989
|
return m || Object.keys(t)[0];
|
|
2985
2990
|
}), _ = (m) => {
|
|
@@ -3056,7 +3061,7 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3056
3061
|
promise: Promise
|
|
3057
3062
|
},
|
|
3058
3063
|
setup(c) {
|
|
3059
|
-
const r =
|
|
3064
|
+
const r = Y(c.initialValue);
|
|
3060
3065
|
return c.promise instanceof Promise && c.promise.then((t) => {
|
|
3061
3066
|
r.value = t;
|
|
3062
3067
|
}), () => St("div", r.value);
|
|
@@ -3067,7 +3072,7 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3067
3072
|
collection: {}
|
|
3068
3073
|
},
|
|
3069
3074
|
setup(c) {
|
|
3070
|
-
const r = c, o =
|
|
3075
|
+
const r = c, o = Re().currentRoute, l = H(() => {
|
|
3071
3076
|
try {
|
|
3072
3077
|
const i = r.collection ? r.collection : o.value.meta.collection || o.value.params.collection;
|
|
3073
3078
|
return ge(i);
|
|
@@ -3085,17 +3090,17 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3085
3090
|
fn: v(() => [
|
|
3086
3091
|
V("div", {
|
|
3087
3092
|
class: "topbar__preset",
|
|
3088
|
-
onClick: (h) => e(
|
|
3093
|
+
onClick: (h) => e(kt)(m, l.value)
|
|
3089
3094
|
}, [
|
|
3090
3095
|
m.icon ? (n(), $(K, {
|
|
3091
3096
|
key: 0,
|
|
3092
3097
|
icon: m.icon
|
|
3093
3098
|
}, {
|
|
3094
3099
|
default: v(() => [
|
|
3095
|
-
D(
|
|
3100
|
+
D(k(m.label || e(F)(_, { plural: !0 })), 1)
|
|
3096
3101
|
]),
|
|
3097
3102
|
_: 2
|
|
3098
|
-
}, 1032, ["icon"])) : (n(), s("div", kl,
|
|
3103
|
+
}, 1032, ["icon"])) : (n(), s("div", kl, k(m.label || e(F)(_, { plural: !0 })), 1)),
|
|
3099
3104
|
m.badgeFunction ? (n(), $(be, { key: 2 }, {
|
|
3100
3105
|
default: v(() => [
|
|
3101
3106
|
z(e(bl), {
|
|
@@ -3111,7 +3116,7 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3111
3116
|
]), 1024)) : y("", !0);
|
|
3112
3117
|
}
|
|
3113
3118
|
});
|
|
3114
|
-
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({
|
|
3115
3120
|
__proto__: null,
|
|
3116
3121
|
default: Cl
|
|
3117
3122
|
}, Symbol.toStringTag, { value: "Module" })), Ml = /* @__PURE__ */ q({
|
|
@@ -3144,7 +3149,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3144
3149
|
"onUpdate:modelValue": i[0] || (i[0] = (u) => l.$emit("update:modelValue", u))
|
|
3145
3150
|
}, {
|
|
3146
3151
|
after: v(() => [
|
|
3147
|
-
V("div", null,
|
|
3152
|
+
V("div", null, k(o.value || "Senhas conferem"), 1),
|
|
3148
3153
|
A(l.$slots, "default", ce(Ve({ passwordError: o.value })))
|
|
3149
3154
|
]),
|
|
3150
3155
|
_: 3
|
|
@@ -3168,7 +3173,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3168
3173
|
{
|
|
3169
3174
|
path: "signin",
|
|
3170
3175
|
name: "/user/signin",
|
|
3171
|
-
component: () => import("./signin-
|
|
3176
|
+
component: () => import("./signin-6d124882.js"),
|
|
3172
3177
|
meta: {
|
|
3173
3178
|
title: "Autenticação"
|
|
3174
3179
|
}
|
|
@@ -3176,7 +3181,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3176
3181
|
{
|
|
3177
3182
|
path: "signup",
|
|
3178
3183
|
name: "/user/signup",
|
|
3179
|
-
component: () => import("./signup-
|
|
3184
|
+
component: () => import("./signup-5fc5d662.js"),
|
|
3180
3185
|
meta: {
|
|
3181
3186
|
title: "Registro"
|
|
3182
3187
|
}
|
|
@@ -3184,7 +3189,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3184
3189
|
{
|
|
3185
3190
|
path: "activation",
|
|
3186
3191
|
name: "/user/activation",
|
|
3187
|
-
component: () => import("./activation-
|
|
3192
|
+
component: () => import("./activation-adac6722.js"),
|
|
3188
3193
|
meta: {
|
|
3189
3194
|
title: "Ativação"
|
|
3190
3195
|
}
|
|
@@ -3206,7 +3211,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3206
3211
|
name: "/dashboard/crud",
|
|
3207
3212
|
props: !0,
|
|
3208
3213
|
components: {
|
|
3209
|
-
default: () => import("./crud-view-
|
|
3214
|
+
default: () => import("./crud-view-b854fb49.js"),
|
|
3210
3215
|
topbar: () => Promise.resolve().then(() => Il)
|
|
3211
3216
|
},
|
|
3212
3217
|
meta: {
|
|
@@ -3224,7 +3229,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3224
3229
|
children: [
|
|
3225
3230
|
{
|
|
3226
3231
|
path: "profile",
|
|
3227
|
-
component: () => import("./profile-
|
|
3232
|
+
component: () => import("./profile-4233fd1d.js"),
|
|
3228
3233
|
meta: {
|
|
3229
3234
|
title: "Meu perfil",
|
|
3230
3235
|
icon: "user-square"
|
|
@@ -3233,7 +3238,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3233
3238
|
{
|
|
3234
3239
|
path: "changepass",
|
|
3235
3240
|
name: "/dashboard/user/changepass",
|
|
3236
|
-
component: () => import("./password-change-
|
|
3241
|
+
component: () => import("./password-change-aa004ecb.js"),
|
|
3237
3242
|
meta: {
|
|
3238
3243
|
title: "Mudar senha",
|
|
3239
3244
|
icon: "lock"
|
|
@@ -3254,7 +3259,7 @@ export {
|
|
|
3254
3259
|
ie as a,
|
|
3255
3260
|
K as b,
|
|
3256
3261
|
Qn as c,
|
|
3257
|
-
|
|
3262
|
+
Rl as d,
|
|
3258
3263
|
Me as e,
|
|
3259
3264
|
zl as f,
|
|
3260
3265
|
Ae as g,
|
|
@@ -3266,7 +3271,7 @@ export {
|
|
|
3266
3271
|
Ce as m,
|
|
3267
3272
|
qa as n,
|
|
3268
3273
|
$n as o,
|
|
3269
|
-
|
|
3274
|
+
Ll as p,
|
|
3270
3275
|
Mn as q,
|
|
3271
3276
|
za as r,
|
|
3272
3277
|
$l as s,
|