@aeria-ui/ui 0.0.22 → 0.0.23
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-5643d715.js → activation-6f3d54a9.js} +1 -1
- package/dist/{crud-view-1c8f821b.js → crud-view-3a4f4517.js} +1 -1
- package/dist/{index-f773df27.js → index-0c33517a.js} +186 -186
- package/dist/{password-change-6e95eef3.js → password-change-0dc60d46.js} +1 -1
- package/dist/{profile-a4beaa01.js → profile-e8b6d08b.js} +1 -1
- package/dist/{signin-51f03695.js → signin-0dd8d7bb.js} +1 -1
- package/dist/{signup-8e13a52e.js → signup-389b38ea.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as i, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as g, createCommentVNode as
|
|
1
|
+
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as i, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as g, createCommentVNode as v, createTextVNode as Q, unref as t, renderSlot as V, inject as ve, computed as D, createElementVNode as k, mergeProps as G, createBlock as $, resolveDynamicComponent as ye, withCtx as m, useCssVars as $t, Teleport as We, watch as ue, createVNode as F, vModelDynamic as bt, onBeforeMount as mt, normalizeStyle as he, withModifiers as Fe, pushScopeId as qe, popScopeId as Ue, provide as fe, onMounted as gt, isRef as je, normalizeProps as le, guardReactiveProps as be, createSlots as de, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as It, useSlots as At, h as Ot } from "vue";
|
|
2
2
|
import { t as M, useI18n as wt } from "@aeria-ui/i18n";
|
|
3
|
-
import { useScrollObserver as Xe, useBreakpoints as Te, useClipboard as Bt, PAGINATION_PER_PAGE_DEFAULTS as St, API_URL as
|
|
3
|
+
import { useScrollObserver as Xe, useBreakpoints as Te, useClipboard as Bt, PAGINATION_PER_PAGE_DEFAULTS as St, API_URL as vt, request as jt, useDebounce as ft, isDocumentComplete as Tt, convertToSearchQuery as Lt, useAction as Rt, convertFromSearchQuery as zt, usePasswordPolicy as Ft } from "@aeria-ui/web";
|
|
4
4
|
import { useStore as ce, getStoreId as Le, useParentStore as ge, STORE_ID as Ee, getGlobalStateManager as Mt } from "@aeria-ui/state-management";
|
|
5
5
|
import { useRouter as Re } from "vue-router";
|
|
6
6
|
import { getReferenceProperty as pe, convertConditionToQuery as qt, deepClone as Se, freshItem as Ut, isRequired as Et, evaluateCondition as Ge, isLeft as Ht } from "@aeriajs/common";
|
|
@@ -33,14 +33,14 @@ const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
|
|
|
33
33
|
class: "accordion__header",
|
|
34
34
|
onClick: (p) => u.value === r ? u.value = null : u.value = r
|
|
35
35
|
}, [
|
|
36
|
-
a.enumerate ? (n(), i("span", Gt, g(y + 1) + ". ", 1)) :
|
|
36
|
+
a.enumerate ? (n(), i("span", Gt, g(y + 1) + ". ", 1)) : v("", !0),
|
|
37
37
|
Q(" " + g(a.headers[r] ? e(a.headers[r]) : t(M)(r)), 1)
|
|
38
38
|
], 8, Qt)), [
|
|
39
39
|
[l]
|
|
40
40
|
]),
|
|
41
41
|
u.value === r ? (n(), i("div", Wt, [
|
|
42
42
|
V(a.$slots, r, {}, void 0, !0)
|
|
43
|
-
])) :
|
|
43
|
+
])) : v("", !0)
|
|
44
44
|
]))), 128))
|
|
45
45
|
], 2);
|
|
46
46
|
};
|
|
@@ -104,7 +104,7 @@ const me = /* @__PURE__ */ X(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["hre
|
|
|
104
104
|
fill: {}
|
|
105
105
|
},
|
|
106
106
|
setup(c) {
|
|
107
|
-
const u = c, e = typeof u.reactive == "boolean" ? u.reactive :
|
|
107
|
+
const u = c, e = typeof u.reactive == "boolean" ? u.reactive : ve("iconReactive", !1), a = D(() => {
|
|
108
108
|
var s;
|
|
109
109
|
return (s = u.icon) != null && s.includes(":") ? u.icon : `regular:${u.icon}`;
|
|
110
110
|
});
|
|
@@ -137,7 +137,7 @@ const me = /* @__PURE__ */ X(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["hre
|
|
|
137
137
|
], 2),
|
|
138
138
|
s.$slots.default ? (n(), i("div", Zt, [
|
|
139
139
|
V(s.$slots, "default", {}, void 0, !0)
|
|
140
|
-
])) :
|
|
140
|
+
])) : v("", !0)
|
|
141
141
|
], 2));
|
|
142
142
|
}
|
|
143
143
|
});
|
|
@@ -176,7 +176,7 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
|
|
|
176
176
|
}, d = (o) => {
|
|
177
177
|
a("update:collapsed", o), l.value = o;
|
|
178
178
|
};
|
|
179
|
-
return (o,
|
|
179
|
+
return (o, f) => {
|
|
180
180
|
const b = N("clickable"), C = N("loading"), R = N("overlay");
|
|
181
181
|
return o.modelValue ? Z((n(), i("div", {
|
|
182
182
|
key: 0,
|
|
@@ -200,7 +200,7 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
|
|
|
200
200
|
${o.transparentMobile && "panel__content--transparent-mobile"}
|
|
201
201
|
${o.outerHeader && "panel__content--outer-header"}
|
|
202
202
|
`),
|
|
203
|
-
onClick:
|
|
203
|
+
onClick: f[1] || (f[1] = (j) => j.stopPropagation())
|
|
204
204
|
}, {
|
|
205
205
|
default: m(() => [
|
|
206
206
|
o.$slots.header || o.title ? (n(), i("div", {
|
|
@@ -212,16 +212,16 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
|
|
|
212
212
|
`)
|
|
213
213
|
}, [
|
|
214
214
|
k("div", Nt, [
|
|
215
|
-
o.$slots.header ? V(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), i("div", xt, g(o.title), 1)) :
|
|
215
|
+
o.$slots.header ? V(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), i("div", xt, g(o.title), 1)) : v("", !0),
|
|
216
216
|
o.$slots.extra ? (n(), i("div", en, [
|
|
217
217
|
V(o.$slots, "extra", {}, void 0, !0)
|
|
218
|
-
])) :
|
|
218
|
+
])) : v("", !0)
|
|
219
219
|
]),
|
|
220
220
|
o.collapsible ? Z((n(), $(K, {
|
|
221
221
|
key: 0,
|
|
222
222
|
reactive: "",
|
|
223
223
|
icon: l.value ? "plus" : "minus",
|
|
224
|
-
onClick:
|
|
224
|
+
onClick: f[0] || (f[0] = (j) => d(!l.value))
|
|
225
225
|
}, null, 8, ["icon"])), [
|
|
226
226
|
[b]
|
|
227
227
|
]) : o.closeHint ? Z((n(), $(K, {
|
|
@@ -231,9 +231,9 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
|
|
|
231
231
|
onClick: p
|
|
232
232
|
}, null, 512)), [
|
|
233
233
|
[b]
|
|
234
|
-
]) :
|
|
235
|
-
], 2)) :
|
|
236
|
-
l.value ?
|
|
234
|
+
]) : v("", !0)
|
|
235
|
+
], 2)) : v("", !0),
|
|
236
|
+
l.value ? v("", !0) : Z((n(), i("div", {
|
|
237
237
|
key: 1,
|
|
238
238
|
ref_key: "body",
|
|
239
239
|
ref: r,
|
|
@@ -255,7 +255,7 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
|
|
|
255
255
|
`)
|
|
256
256
|
}, [
|
|
257
257
|
V(o.$slots, "footer", {}, void 0, !0)
|
|
258
|
-
], 2)) :
|
|
258
|
+
], 2)) : v("", !0)
|
|
259
259
|
]),
|
|
260
260
|
_: 3
|
|
261
261
|
}, 8, ["class"]))
|
|
@@ -266,7 +266,7 @@ const K = /* @__PURE__ */ X(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { clas
|
|
|
266
266
|
click: h,
|
|
267
267
|
layer: o.overlayLayer || (s.value ? 60 : o.fixedRight ? 50 : 0)
|
|
268
268
|
}]
|
|
269
|
-
]) :
|
|
269
|
+
]) : v("", !0);
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
});
|
|
@@ -285,14 +285,14 @@ const Ae = /* @__PURE__ */ X(tn, [["__scopeId", "data-v-729778b1"]]), nn = { cla
|
|
|
285
285
|
loading: { type: Boolean }
|
|
286
286
|
},
|
|
287
287
|
setup(c) {
|
|
288
|
-
const u = c, e =
|
|
288
|
+
const u = c, e = ve("buttonVariant", u.variant) || "primary", a = (() => {
|
|
289
289
|
switch (!0) {
|
|
290
290
|
case u.small:
|
|
291
291
|
return "small";
|
|
292
292
|
case u.large:
|
|
293
293
|
return "large";
|
|
294
294
|
}
|
|
295
|
-
return
|
|
295
|
+
return ve("buttonSize", u.size) || "medium";
|
|
296
296
|
})();
|
|
297
297
|
return (s, l) => (n(), $(me, {
|
|
298
298
|
class: W(`
|
|
@@ -344,7 +344,7 @@ const re = /* @__PURE__ */ X(an, [["__scopeId", "data-v-c328251b"]]), sn = { cla
|
|
|
344
344
|
k("div", null, [
|
|
345
345
|
V(u.$slots, "footer", {}, void 0, !0)
|
|
346
346
|
]),
|
|
347
|
-
u.$slots.actions ? V(u.$slots, "actions", { key: 0 }, void 0, !0) :
|
|
347
|
+
u.$slots.actions ? V(u.$slots, "actions", { key: 0 }, void 0, !0) : v("", !0)
|
|
348
348
|
]),
|
|
349
349
|
k("div", un, [
|
|
350
350
|
V(u.$slots, "badge", {}, void 0, !0)
|
|
@@ -356,7 +356,7 @@ const re = /* @__PURE__ */ X(an, [["__scopeId", "data-v-c328251b"]]), sn = { cla
|
|
|
356
356
|
const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { class: "content__body" }, _n = {
|
|
357
357
|
key: 0,
|
|
358
358
|
class: "content__section"
|
|
359
|
-
}, mn = { class: "content__item" },
|
|
359
|
+
}, mn = { class: "content__item" }, vn = /* @__PURE__ */ U({
|
|
360
360
|
__name: "aeria-context-menu",
|
|
361
361
|
props: {
|
|
362
362
|
actions: {},
|
|
@@ -388,10 +388,10 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
388
388
|
};
|
|
389
389
|
});
|
|
390
390
|
return (h, d) => {
|
|
391
|
-
var
|
|
391
|
+
var f;
|
|
392
392
|
const o = N("overlay");
|
|
393
393
|
return n(), i(J, null, [
|
|
394
|
-
Object.keys(h.$slots).some((b) => b !== "default") || ((
|
|
394
|
+
Object.keys(h.$slots).some((b) => b !== "default") || ((f = h.actions) == null ? void 0 : f.length) > 0 ? (n(), i("div", {
|
|
395
395
|
key: 0,
|
|
396
396
|
ref_key: "contextmenu",
|
|
397
397
|
ref: s,
|
|
@@ -403,7 +403,7 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
403
403
|
}, [
|
|
404
404
|
V(h.$slots, "default", {}, void 0, !0)
|
|
405
405
|
])
|
|
406
|
-
], 512)) :
|
|
406
|
+
], 512)) : v("", !0),
|
|
407
407
|
l.value ? (n(), $(We, {
|
|
408
408
|
key: 1,
|
|
409
409
|
to: "main"
|
|
@@ -420,7 +420,7 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
420
420
|
k("div", pn, [
|
|
421
421
|
h.$slots.header ? (n(), i("div", _n, [
|
|
422
422
|
V(h.$slots, "header", {}, void 0, !0)
|
|
423
|
-
])) :
|
|
423
|
+
])) : v("", !0),
|
|
424
424
|
Object.keys(h.$slots).filter((C) => !["default", "extra", "header"].includes(C)).length > 0 ? (n(), i("div", {
|
|
425
425
|
key: 1,
|
|
426
426
|
class: "content__section",
|
|
@@ -435,7 +435,7 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
435
435
|
]),
|
|
436
436
|
_: 2
|
|
437
437
|
}, 1024))), 128))
|
|
438
|
-
])) :
|
|
438
|
+
])) : v("", !0),
|
|
439
439
|
((b = h.actions) == null ? void 0 : b.length) > 0 ? (n(), i("div", {
|
|
440
440
|
key: 2,
|
|
441
441
|
class: "content__section",
|
|
@@ -455,20 +455,20 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
455
455
|
Q(g(C.translate ? t(M)(C.name, { capitalize: !0 }) : C.name), 1)
|
|
456
456
|
]),
|
|
457
457
|
_: 2
|
|
458
|
-
}, 1032, ["icon"])) :
|
|
458
|
+
}, 1032, ["icon"])) : v("", !0)
|
|
459
459
|
]),
|
|
460
460
|
_: 2
|
|
461
461
|
}, 1032, ["onClick"]))), 128))
|
|
462
|
-
])) :
|
|
462
|
+
])) : v("", !0),
|
|
463
463
|
h.$slots.extra ? (n(), i("div", {
|
|
464
464
|
key: 3,
|
|
465
465
|
class: "content__section",
|
|
466
466
|
onClick: d[3] || (d[3] = (C) => l.value = !1)
|
|
467
467
|
}, [
|
|
468
468
|
k("div", mn, [
|
|
469
|
-
h.$slots.extra ? V(h.$slots, "extra", { key: 0 }, void 0, !0) :
|
|
469
|
+
h.$slots.extra ? V(h.$slots, "extra", { key: 0 }, void 0, !0) : v("", !0)
|
|
470
470
|
])
|
|
471
|
-
])) :
|
|
471
|
+
])) : v("", !0)
|
|
472
472
|
])
|
|
473
473
|
];
|
|
474
474
|
}),
|
|
@@ -486,12 +486,12 @@ const dn = /* @__PURE__ */ X(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
486
486
|
{ invisibleOnLarge: !0 }
|
|
487
487
|
]
|
|
488
488
|
])
|
|
489
|
-
])) :
|
|
489
|
+
])) : v("", !0)
|
|
490
490
|
], 64);
|
|
491
491
|
};
|
|
492
492
|
}
|
|
493
493
|
});
|
|
494
|
-
const Ce = /* @__PURE__ */ X(
|
|
494
|
+
const Ce = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-24506525"]]), fn = { class: "info__content" }, yn = /* @__PURE__ */ U({
|
|
495
495
|
__name: "aeria-info",
|
|
496
496
|
props: {
|
|
497
497
|
where: {}
|
|
@@ -510,10 +510,10 @@ const Ce = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-24506525"]]), vn = { cla
|
|
|
510
510
|
info__bubble--${t(s)}
|
|
511
511
|
`)
|
|
512
512
|
}, [
|
|
513
|
-
k("div",
|
|
513
|
+
k("div", fn, [
|
|
514
514
|
V(l.$slots, "text", {}, void 0, !0)
|
|
515
515
|
])
|
|
516
|
-
], 2)) :
|
|
516
|
+
], 2)) : v("", !0),
|
|
517
517
|
k("div", {
|
|
518
518
|
onMouseover: r[0] || (r[0] = (y) => a.value = !0)
|
|
519
519
|
}, [
|
|
@@ -543,7 +543,7 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
|
|
|
543
543
|
},
|
|
544
544
|
emits: ["update:modelValue", "input", "change"],
|
|
545
545
|
setup(c, { emit: u }) {
|
|
546
|
-
const e = c, a = e.property || {}, s = "icon" in a || "inputType" in a && a.inputType === "search", l =
|
|
546
|
+
const e = c, a = e.property || {}, s = "icon" in a || "inputType" in a && a.inputType === "search", l = ve("searchOnly", !1), r = ve("innerInputLabel", !1), y = !l && a.readOnly, p = Bt(), h = u, d = ve("inputVariant", e.variant) || "normal", o = {
|
|
547
547
|
type: (() => {
|
|
548
548
|
if ("type" in a)
|
|
549
549
|
switch (a.type) {
|
|
@@ -568,7 +568,7 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
|
|
|
568
568
|
"date",
|
|
569
569
|
"date-time"
|
|
570
570
|
].includes(a.format) && (o.type = !l && a.format === "date-time" ? "datetime-local" : "date")), o.type === "text" && l && (o.type = "search");
|
|
571
|
-
const
|
|
571
|
+
const f = () => {
|
|
572
572
|
try {
|
|
573
573
|
return e.modelValue ? new Date(e.modelValue).toISOString().split("T").shift() : "";
|
|
574
574
|
} catch {
|
|
@@ -577,7 +577,7 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
|
|
|
577
577
|
}, b = Y([
|
|
578
578
|
"date",
|
|
579
579
|
"date-time"
|
|
580
|
-
].includes(o.type) ?
|
|
580
|
+
].includes(o.type) ? f() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), C = (j) => {
|
|
581
581
|
const q = (() => {
|
|
582
582
|
if (o.type === "number")
|
|
583
583
|
return Number(j);
|
|
@@ -601,12 +601,12 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
|
|
|
601
601
|
}), (j, q) => {
|
|
602
602
|
const w = N("focus"), ae = N("clickable");
|
|
603
603
|
return n(), i("label", $n, [
|
|
604
|
-
t(r) ?
|
|
604
|
+
t(r) ? v("", !0) : (n(), i("div", bn, [
|
|
605
605
|
j.$slots.default ? V(j.$slots, "default", { key: 0 }, void 0, !0) : V(j.$slots, "description", { key: 1 }, void 0, !0)
|
|
606
606
|
])),
|
|
607
607
|
j.$slots.hint ? (n(), i("div", gn, [
|
|
608
608
|
V(j.$slots, "hint", {}, void 0, !0)
|
|
609
|
-
])) :
|
|
609
|
+
])) : v("", !0),
|
|
610
610
|
"element" in t(a) && t(a).element === "textarea" ? (n(), i("div", {
|
|
611
611
|
key: 2,
|
|
612
612
|
class: W(`
|
|
@@ -656,7 +656,7 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
|
|
|
656
656
|
input__icon
|
|
657
657
|
input__icon--${t(d)}
|
|
658
658
|
`)
|
|
659
|
-
}, null, 8, ["icon", "class"])) :
|
|
659
|
+
}, null, 8, ["icon", "class"])) : v("", !0),
|
|
660
660
|
t(y) ? (n(), i("div", Cn, [
|
|
661
661
|
F(hn, null, {
|
|
662
662
|
text: m(() => [
|
|
@@ -672,7 +672,7 @@ const hn = /* @__PURE__ */ X(yn, [["__scopeId", "data-v-b4b7dab5"]]), $n = { cla
|
|
|
672
672
|
]),
|
|
673
673
|
_: 1
|
|
674
674
|
})
|
|
675
|
-
])) :
|
|
675
|
+
])) : v("", !0)
|
|
676
676
|
], 2))
|
|
677
677
|
]);
|
|
678
678
|
};
|
|
@@ -701,8 +701,8 @@ const Ie = /* @__PURE__ */ X(In, [["__scopeId", "data-v-3e3e8c77"]]), An = ["val
|
|
|
701
701
|
const d = Y(e.modelValue);
|
|
702
702
|
return D({
|
|
703
703
|
get: () => d.value === "true" ? !0 : d.value === "false" ? !1 : null,
|
|
704
|
-
set: (
|
|
705
|
-
d.value =
|
|
704
|
+
set: (f) => {
|
|
705
|
+
d.value = f;
|
|
706
706
|
}
|
|
707
707
|
});
|
|
708
708
|
})() : D({
|
|
@@ -710,11 +710,11 @@ const Ie = /* @__PURE__ */ X(In, [["__scopeId", "data-v-3e3e8c77"]]), An = ["val
|
|
|
710
710
|
set: r
|
|
711
711
|
}), p = (d) => Array.isArray(e.modelValue) ? e.modelValue.includes(d) : e.modelValue === d, h = D(() => e.multiple ? typeof e.multiple == "number" ? e.multiple : 5 : 1);
|
|
712
712
|
return e.multiple && ue(() => e.modelValue, (d) => {
|
|
713
|
-
var
|
|
713
|
+
var f;
|
|
714
714
|
if (!s.value)
|
|
715
715
|
return;
|
|
716
716
|
const o = s.value.querySelector('option[data-selected="true"]');
|
|
717
|
-
o && o.removeAttribute("data-selected"), (
|
|
717
|
+
o && o.removeAttribute("data-selected"), (f = s.value.querySelector(`option[value="${d}"]`)) == null || f.setAttribute("data-selected", "true");
|
|
718
718
|
}), (d, o) => (n(), i("div", {
|
|
719
719
|
class: W({
|
|
720
720
|
select: !0,
|
|
@@ -732,18 +732,18 @@ const Ie = /* @__PURE__ */ X(In, [["__scopeId", "data-v-3e3e8c77"]]), An = ["val
|
|
|
732
732
|
select__select: !0,
|
|
733
733
|
"select__select--multiple": !!e.multiple
|
|
734
734
|
},
|
|
735
|
-
onChange: o[0] || (o[0] = (
|
|
735
|
+
onChange: o[0] || (o[0] = (f) => r(f.target.value))
|
|
736
736
|
}), [
|
|
737
737
|
t(l).icon ? (n(), $(K, {
|
|
738
738
|
key: 0,
|
|
739
739
|
icon: t(l).icon
|
|
740
|
-
}, null, 8, ["icon"])) :
|
|
741
|
-
e.multiple ?
|
|
742
|
-
(n(!0), i(J, null, H("enum" in t(l) ? t(l).enum : [], (
|
|
743
|
-
key:
|
|
744
|
-
value:
|
|
745
|
-
"data-selected": p(
|
|
746
|
-
}, g(t(l).translate ? t(M)(
|
|
740
|
+
}, null, 8, ["icon"])) : v("", !0),
|
|
741
|
+
e.multiple ? v("", !0) : (n(), i("option", On, g(t(M)("none")), 1)),
|
|
742
|
+
(n(!0), i(J, null, H("enum" in t(l) ? t(l).enum : [], (f) => (n(), i("option", {
|
|
743
|
+
key: f,
|
|
744
|
+
value: f,
|
|
745
|
+
"data-selected": p(f)
|
|
746
|
+
}, g(t(l).translate ? t(M)(f) : f), 9, wn))), 128)),
|
|
747
747
|
V(d.$slots, "default", {}, void 0, !0)
|
|
748
748
|
], 16, An)
|
|
749
749
|
], 2));
|
|
@@ -931,7 +931,7 @@ const zn = /* @__PURE__ */ X(Rn, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { cla
|
|
|
931
931
|
p.$slots.hint ? V(p.$slots, "hint", { key: 0 }, void 0, !0) : t(a).hint ? (n(), i("div", {
|
|
932
932
|
key: 1,
|
|
933
933
|
innerHTML: t(a).hint
|
|
934
|
-
}, null, 8, Un)) :
|
|
934
|
+
}, null, 8, Un)) : v("", !0)
|
|
935
935
|
])
|
|
936
936
|
])), [
|
|
937
937
|
[d]
|
|
@@ -1067,7 +1067,7 @@ const Nn = /* @__PURE__ */ X(Pn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1067
1067
|
meta: {}
|
|
1068
1068
|
},
|
|
1069
1069
|
setup(c) {
|
|
1070
|
-
const u = c, e = D(() => u.fileId ? `${
|
|
1070
|
+
const u = c, e = D(() => u.fileId ? `${vt}/file/${u.fileId}/picture` : u.url || u.modelValue), a = Y(!1);
|
|
1071
1071
|
return (s, l) => {
|
|
1072
1072
|
var y;
|
|
1073
1073
|
const r = N("overlay");
|
|
@@ -1085,15 +1085,15 @@ const Nn = /* @__PURE__ */ X(Pn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1085
1085
|
`,
|
|
1086
1086
|
onClick: l[0] || (l[0] = (p) => a.value = !0)
|
|
1087
1087
|
}, null, 8, to),
|
|
1088
|
-
(y = s.meta) != null && y.owner ? (n(), i("div", no, " Criado por " + g(s.meta.owner.name) + " em " + g(s.formatDateTime(s.meta.created_at, { hours: !0 })), 1)) :
|
|
1088
|
+
(y = s.meta) != null && y.owner ? (n(), i("div", no, " Criado por " + g(s.meta.owner.name) + " em " + g(s.formatDateTime(s.meta.created_at, { hours: !0 })), 1)) : v("", !0)
|
|
1089
1089
|
])), [
|
|
1090
1090
|
[r, {
|
|
1091
1091
|
click: () => {
|
|
1092
1092
|
a.value = !1;
|
|
1093
1093
|
}
|
|
1094
1094
|
}]
|
|
1095
|
-
]) :
|
|
1096
|
-
])) :
|
|
1095
|
+
]) : v("", !0)
|
|
1096
|
+
])) : v("", !0),
|
|
1097
1097
|
e.value ? (n(), i("img", {
|
|
1098
1098
|
key: 1,
|
|
1099
1099
|
src: e.value,
|
|
@@ -1126,15 +1126,15 @@ const Nn = /* @__PURE__ */ X(Pn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1126
1126
|
}, lo, 6)),
|
|
1127
1127
|
s.$slots.caption ? (n(), i("figcaption", io, [
|
|
1128
1128
|
V(s.$slots, "caption", {}, void 0, !0)
|
|
1129
|
-
])) :
|
|
1129
|
+
])) : v("", !0)
|
|
1130
1130
|
]);
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
1133
|
});
|
|
1134
|
-
const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { class: "file" }, co = { key: 0 }, po = ["href"], _o = { class: "file__actions" }, mo = ["accept"],
|
|
1134
|
+
const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { class: "file" }, co = { key: 0 }, po = ["href"], _o = { class: "file__actions" }, mo = ["accept"], vo = {
|
|
1135
1135
|
key: 0,
|
|
1136
1136
|
class: "file__buttons"
|
|
1137
|
-
},
|
|
1137
|
+
}, fo = {
|
|
1138
1138
|
key: 1,
|
|
1139
1139
|
class: "file__buttons"
|
|
1140
1140
|
}, yo = /* @__PURE__ */ U({
|
|
@@ -1165,7 +1165,7 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
|
|
|
1165
1165
|
r.value = b.target.files[0];
|
|
1166
1166
|
const C = r.value, R = await h(C);
|
|
1167
1167
|
if (l) {
|
|
1168
|
-
const { data: j } = await jt(`${
|
|
1168
|
+
const { data: j } = await jt(`${vt}/${l.$id}/upload?filename=${C.name}`, R, {
|
|
1169
1169
|
params: {
|
|
1170
1170
|
method: "POST",
|
|
1171
1171
|
headers: {
|
|
@@ -1177,7 +1177,7 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
|
|
|
1177
1177
|
a("update:modelValue", j);
|
|
1178
1178
|
}
|
|
1179
1179
|
a("update:content", R), a("change", R);
|
|
1180
|
-
},
|
|
1180
|
+
}, f = async () => {
|
|
1181
1181
|
a("update:modelValue", null);
|
|
1182
1182
|
};
|
|
1183
1183
|
return (b, C) => {
|
|
@@ -1192,12 +1192,12 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
|
|
|
1192
1192
|
file__image
|
|
1193
1193
|
${!t(l) || ((j = b.modelValue) == null ? void 0 : j._id) || "file__image--unsent"}
|
|
1194
1194
|
`)
|
|
1195
|
-
}, null, 8, ["modelValue", "class"])) :
|
|
1195
|
+
}, null, 8, ["modelValue", "class"])) : v("", !0),
|
|
1196
1196
|
(q = b.modelValue) != null && q._id ? (n(), i("a", {
|
|
1197
1197
|
key: 1,
|
|
1198
1198
|
href: b.modelValue.download_link
|
|
1199
|
-
}, g(b.modelValue.filename), 9, po)) :
|
|
1200
|
-
])) :
|
|
1199
|
+
}, g(b.modelValue.filename), 9, po)) : v("", !0)
|
|
1200
|
+
])) : v("", !0),
|
|
1201
1201
|
k("div", _o, [
|
|
1202
1202
|
k("input", {
|
|
1203
1203
|
ref: "file",
|
|
@@ -1205,7 +1205,7 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
|
|
|
1205
1205
|
accept: (ae = (w = b.property) == null ? void 0 : w.accept) == null ? void 0 : ae.join(","),
|
|
1206
1206
|
onChange: o
|
|
1207
1207
|
}, null, 40, mo),
|
|
1208
|
-
r.value ? (n(), i("div",
|
|
1208
|
+
r.value ? (n(), i("div", vo, [
|
|
1209
1209
|
F(re, {
|
|
1210
1210
|
small: "",
|
|
1211
1211
|
onClick: Fe(d, ["prevent"])
|
|
@@ -1215,17 +1215,17 @@ const Me = /* @__PURE__ */ X(ro, [["__scopeId", "data-v-ecfb1379"]]), uo = { cla
|
|
|
1215
1215
|
]),
|
|
1216
1216
|
_: 1
|
|
1217
1217
|
})
|
|
1218
|
-
])) : (x = b.modelValue) != null && x._id ? (n(), i("div",
|
|
1218
|
+
])) : (x = b.modelValue) != null && x._id ? (n(), i("div", fo, [
|
|
1219
1219
|
F(re, {
|
|
1220
1220
|
small: "",
|
|
1221
|
-
onClick: Fe(
|
|
1221
|
+
onClick: Fe(f, ["prevent"])
|
|
1222
1222
|
}, {
|
|
1223
1223
|
default: m(() => [
|
|
1224
1224
|
Q(" Remover ")
|
|
1225
1225
|
]),
|
|
1226
1226
|
_: 1
|
|
1227
1227
|
})
|
|
1228
|
-
])) :
|
|
1228
|
+
])) : v("", !0)
|
|
1229
1229
|
])
|
|
1230
1230
|
]);
|
|
1231
1231
|
};
|
|
@@ -1254,10 +1254,10 @@ const ho = /* @__PURE__ */ X(yo, [["__scopeId", "data-v-f3848c9a"]]), $o = { cla
|
|
|
1254
1254
|
class: "container__content"
|
|
1255
1255
|
}, [
|
|
1256
1256
|
V(r.$slots, "default", {}, void 0, !0)
|
|
1257
|
-
], 512)) :
|
|
1257
|
+
], 512)) : v("", !0),
|
|
1258
1258
|
r.$slots.footer ? (n(), i("div", bo, [
|
|
1259
1259
|
V(r.$slots, "footer", {}, void 0, !0)
|
|
1260
|
-
])) :
|
|
1260
|
+
])) : v("", !0)
|
|
1261
1261
|
]));
|
|
1262
1262
|
}
|
|
1263
1263
|
});
|
|
@@ -1274,28 +1274,28 @@ const it = /* @__PURE__ */ X(go, [["__scopeId", "data-v-193f9eed"]]), ko = { cla
|
|
|
1274
1274
|
const e = c, a = u, s = e.property, l = pe(s), r = ge(), y = D(() => Array.isArray(e.modelValue) ? Array.isArray(e.modelValue) && Object.values(e.modelValue).some(({ _id: d }) => e.item._id === d) : e.modelValue && e.modelValue._id === e.item._id), p = () => {
|
|
1275
1275
|
if (y.value)
|
|
1276
1276
|
return;
|
|
1277
|
-
const d = (
|
|
1277
|
+
const d = (f) => f.filter((b) => !!(b != null && b._id)), o = "items" in s ? d(Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]) : e.modelValue;
|
|
1278
1278
|
a("update:modelValue", Array.isArray(o) ? [
|
|
1279
1279
|
...o,
|
|
1280
1280
|
e.item
|
|
1281
1281
|
] : e.item), a("change", e.item);
|
|
1282
1282
|
}, h = async (d) => {
|
|
1283
1283
|
if (l.purge && (d != null && d.purge)) {
|
|
1284
|
-
const { _id:
|
|
1284
|
+
const { _id: f } = e.item;
|
|
1285
1285
|
await r.$actions.remove({
|
|
1286
1286
|
filters: {
|
|
1287
|
-
_id:
|
|
1287
|
+
_id: f
|
|
1288
1288
|
}
|
|
1289
1289
|
});
|
|
1290
1290
|
}
|
|
1291
1291
|
const o = () => {
|
|
1292
|
-
const
|
|
1293
|
-
return
|
|
1292
|
+
const f = [...e.modelValue], b = f.findIndex((C) => C._id === e.item._id);
|
|
1293
|
+
return f.splice(b, 1), f;
|
|
1294
1294
|
};
|
|
1295
1295
|
a("update:modelValue", "items" in s ? o() : null);
|
|
1296
1296
|
};
|
|
1297
1297
|
return (d, o) => {
|
|
1298
|
-
const
|
|
1298
|
+
const f = N("clickable");
|
|
1299
1299
|
return Z((n(), i("div", {
|
|
1300
1300
|
class: W({
|
|
1301
1301
|
item: !0,
|
|
@@ -1311,7 +1311,7 @@ const it = /* @__PURE__ */ X(go, [["__scopeId", "data-v-193f9eed"]]), ko = { cla
|
|
|
1311
1311
|
}, g(d.item[b]), 1))), 128))
|
|
1312
1312
|
])
|
|
1313
1313
|
], 2)), [
|
|
1314
|
-
[
|
|
1314
|
+
[f]
|
|
1315
1315
|
]);
|
|
1316
1316
|
};
|
|
1317
1317
|
}
|
|
@@ -1333,11 +1333,11 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
|
|
|
1333
1333
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1334
1334
|
setup(c, { emit: u }) {
|
|
1335
1335
|
const e = c, a = pe(e.property), s = e.panel !== void 0 ? D(() => e.panel) : Y(!1), l = u, r = ce(pe(e.property).$ref), y = Le(), p = y ? ge() : null, h = a.indexes;
|
|
1336
|
-
|
|
1336
|
+
fe(Ee, pe(e.property).$ref), fe("innerInputLabel", !0), fe("omitInputLabels", !0);
|
|
1337
1337
|
const d = Y(e.modelValue), o = Y({
|
|
1338
1338
|
data: [],
|
|
1339
1339
|
pagination: {}
|
|
1340
|
-
}),
|
|
1340
|
+
}), f = D(() => o.value.data), b = D(() => o.value.pagination), C = Y(0), R = Y(h[0]), j = Y(!1), q = Y({}), w = () => {
|
|
1341
1341
|
const I = {};
|
|
1342
1342
|
if (y) {
|
|
1343
1343
|
const L = je(y) ? y.value : y;
|
|
@@ -1345,7 +1345,7 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
|
|
|
1345
1345
|
}
|
|
1346
1346
|
return a.constraints ? qt(a.constraints, I) : {};
|
|
1347
1347
|
}, ae = () => {
|
|
1348
|
-
|
|
1348
|
+
f.value.length < b.value.recordsTotal && (C.value += 1, S());
|
|
1349
1349
|
}, x = async () => Object.values(q.value).every((I) => !(String(I).length > 0)) ? r.$actions.custom("getAll", {
|
|
1350
1350
|
limit: ze,
|
|
1351
1351
|
offset: C.value * ze,
|
|
@@ -1370,7 +1370,7 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
|
|
|
1370
1370
|
return;
|
|
1371
1371
|
const I = await x();
|
|
1372
1372
|
o.value.pagination = I.pagination, C.value === 0 && o.value.data.splice(0), o.value.data.push(...I.data);
|
|
1373
|
-
}, [ee] =
|
|
1373
|
+
}, [ee] = ft({
|
|
1374
1374
|
delay: 800
|
|
1375
1375
|
})(() => {
|
|
1376
1376
|
C.value = 0, S(), j.value = !1;
|
|
@@ -1437,7 +1437,7 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
|
|
|
1437
1437
|
}, g(t(M)(B)), 9, Ao))), 128))
|
|
1438
1438
|
]),
|
|
1439
1439
|
_: 1
|
|
1440
|
-
}, 8, ["modelValue"])) :
|
|
1440
|
+
}, 8, ["modelValue"])) : v("", !0),
|
|
1441
1441
|
k("div", Oo, [
|
|
1442
1442
|
(n(), $(Ie, {
|
|
1443
1443
|
key: `field-${R.value}`,
|
|
@@ -1451,13 +1451,13 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
|
|
|
1451
1451
|
}, null, 8, ["modelValue", "property"]))
|
|
1452
1452
|
])
|
|
1453
1453
|
]),
|
|
1454
|
-
|
|
1454
|
+
f.value.length ? (n(), $(it, {
|
|
1455
1455
|
key: 0,
|
|
1456
1456
|
"observe-scroll": "",
|
|
1457
1457
|
onEndReached: ae
|
|
1458
1458
|
}, {
|
|
1459
1459
|
default: m(() => [
|
|
1460
|
-
(n(!0), i(J, null, H(
|
|
1460
|
+
(n(!0), i(J, null, H(f.value, (B) => (n(), $(Qe, G({
|
|
1461
1461
|
item: B,
|
|
1462
1462
|
indexes: t(h),
|
|
1463
1463
|
property: I.property
|
|
@@ -1469,16 +1469,16 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
|
|
|
1469
1469
|
]),
|
|
1470
1470
|
_: 1
|
|
1471
1471
|
})) : (n(), i("div", wo, [
|
|
1472
|
-
j.value ? (n(), i("div", Bo, g(t(M)("searching_ellipsis", { capitalize: !0 })), 1)) : !t(r).loading.getAll && Object.values(q.value).filter((B) => !!B).length > 0 && !("items" in I.property && ((T = I.modelValue) != null && T.length) || !Array.isArray(I.modelValue) && ((ne = I.modelValue) != null && ne._id)) ? (n(), i("div", So, g(t(M)("no_results", { capitalize: !0 })), 1)) :
|
|
1472
|
+
j.value ? (n(), i("div", Bo, g(t(M)("searching_ellipsis", { capitalize: !0 })), 1)) : !t(r).loading.getAll && Object.values(q.value).filter((B) => !!B).length > 0 && !("items" in I.property && ((T = I.modelValue) != null && T.length) || !Array.isArray(I.modelValue) && ((ne = I.modelValue) != null && ne._id)) ? (n(), i("div", So, g(t(M)("no_results", { capitalize: !0 })), 1)) : v("", !0)
|
|
1473
1473
|
]))
|
|
1474
1474
|
]),
|
|
1475
|
-
k("div", jo, g(t(M)("showing", { capitalize: !0 })) + " " + g(
|
|
1475
|
+
k("div", jo, g(t(M)("showing", { capitalize: !0 })) + " " + g(f.value.length) + " " + g(t(M)("of")) + " " + g(b.value.recordsTotal), 1)
|
|
1476
1476
|
];
|
|
1477
1477
|
}),
|
|
1478
1478
|
_: 1
|
|
1479
1479
|
}, 8, ["title", "model-value"])
|
|
1480
|
-
])) :
|
|
1481
|
-
I.selectOnly ?
|
|
1480
|
+
])) : v("", !0),
|
|
1481
|
+
I.selectOnly ? v("", !0) : (n(), i("div", To, [
|
|
1482
1482
|
F(it, null, {
|
|
1483
1483
|
footer: m(() => [
|
|
1484
1484
|
Z((n(), $(K, {
|
|
@@ -1511,7 +1511,7 @@ const Qe = /* @__PURE__ */ X(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { cla
|
|
|
1511
1511
|
indexes: t(h),
|
|
1512
1512
|
property: t(a),
|
|
1513
1513
|
modelValue: I.modelValue
|
|
1514
|
-
}, { "onUpdate:modelValue": _ }), null, 16)) :
|
|
1514
|
+
}, { "onUpdate:modelValue": _ }), null, 16)) : v("", !0)
|
|
1515
1515
|
];
|
|
1516
1516
|
}),
|
|
1517
1517
|
_: 1
|
|
@@ -1605,10 +1605,10 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
|
|
|
1605
1605
|
!l && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1606
1606
|
collection prop, some features may not work as intended`);
|
|
1607
1607
|
const y = Y(!1), p = D(() => !e.form && e.property ? "properties" in e.property ? e.property.properties : r == null ? void 0 : r.properties : e.form), h = D(() => e.layout || (r == null ? void 0 : r.description.formLayout)), d = (_) => {
|
|
1608
|
-
const E =
|
|
1609
|
-
return e[_] &&
|
|
1610
|
-
}, o = D(() => e.validationErrors !== null ? e.validationErrors : r == null ? void 0 : r.validationErrors),
|
|
1611
|
-
l &&
|
|
1608
|
+
const E = ve(_, e[_]);
|
|
1609
|
+
return e[_] && fe(_, e[_]), E;
|
|
1610
|
+
}, o = D(() => e.validationErrors !== null ? e.validationErrors : r == null ? void 0 : r.validationErrors), f = d("formComponents") || {}, b = d("propertyComponents") || {}, C = d("omitFormHeader"), R = d("omitInputLabels"), j = d("innerInputLabel");
|
|
1611
|
+
l && fe(Ee, l), fe("searchOnly", e.searchOnly);
|
|
1612
1612
|
const q = (_) => p.value ? Object.entries(p.value).filter(([E, I]) => !I.noForm && _([
|
|
1613
1613
|
E,
|
|
1614
1614
|
I
|
|
@@ -1663,9 +1663,9 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
|
|
|
1663
1663
|
}, [
|
|
1664
1664
|
_.$slots.header && !t(C) ? (n(), i("header", qo, [
|
|
1665
1665
|
V(_.$slots, "header", {}, void 0, !0)
|
|
1666
|
-
])) :
|
|
1666
|
+
])) : v("", !0),
|
|
1667
1667
|
V(_.$slots, "default", {}, void 0, !0),
|
|
1668
|
-
_.isReadOnly ?
|
|
1668
|
+
_.isReadOnly ? v("", !0) : (n(), i("fieldset", Uo, [
|
|
1669
1669
|
(n(!0), i(J, null, H(t(ae), ([A, T]) => {
|
|
1670
1670
|
var ne, B, se, _e, ke, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
|
|
1671
1671
|
return n(), i("div", {
|
|
@@ -1684,8 +1684,8 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
|
|
|
1684
1684
|
T.hint ? (n(), i("div", {
|
|
1685
1685
|
key: 0,
|
|
1686
1686
|
innerHTML: T.hint
|
|
1687
|
-
}, null, 8, Ho)) :
|
|
1688
|
-
])) :
|
|
1687
|
+
}, null, 8, Ho)) : v("", !0)
|
|
1688
|
+
])) : v("", !0),
|
|
1689
1689
|
_.$slots[`field-${A}`] ? V(_.$slots, `field-${A}`, le(G({ key: 1 }, {
|
|
1690
1690
|
propery: T,
|
|
1691
1691
|
properyName: A,
|
|
@@ -1763,7 +1763,7 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
|
|
|
1763
1763
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
1764
1764
|
}, [
|
|
1765
1765
|
k("div", Yo, [
|
|
1766
|
-
(n(), $(ye(t(rt)(T, t(
|
|
1766
|
+
(n(), $(ye(t(rt)(T, t(f))), G({
|
|
1767
1767
|
modelValue: _.modelValue[A][Oe],
|
|
1768
1768
|
"onUpdate:modelValue": (we) => _.modelValue[A][Oe] = we
|
|
1769
1769
|
}, {
|
|
@@ -1788,7 +1788,7 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
|
|
|
1788
1788
|
])
|
|
1789
1789
|
]);
|
|
1790
1790
|
}), 128))
|
|
1791
|
-
])) : _.modelValue ? Z((n(), $(ye(t(rt)(T, t(
|
|
1791
|
+
])) : _.modelValue ? Z((n(), $(ye(t(rt)(T, t(f))), G({
|
|
1792
1792
|
key: 6,
|
|
1793
1793
|
modelValue: _.modelValue[A],
|
|
1794
1794
|
"onUpdate:modelValue": (P) => _.modelValue[A] = P
|
|
@@ -1805,20 +1805,20 @@ const zo = /* @__PURE__ */ X(Ro, [["__scopeId", "data-v-a3130b28"]]), rt = (c, u
|
|
|
1805
1805
|
onChange: E[4] || (E[4] = (P) => a("change", P))
|
|
1806
1806
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1807
1807
|
[L, !y.value && (y.value = !!_.focus)]
|
|
1808
|
-
]) :
|
|
1808
|
+
]) : v("", !0),
|
|
1809
1809
|
(et = o.value) != null && et[A] ? (n(), i("div", Jo, [
|
|
1810
|
-
o.value[A].type ? (n(), i("span", Ko, g(t(M)(`validation_error.${o.value[A].type}`)), 1)) :
|
|
1811
|
-
o.value[A].detail ? (n(), i("span", Zo, g(t(M)(o.value[A].detail)), 1)) :
|
|
1812
|
-
])) :
|
|
1810
|
+
o.value[A].type ? (n(), i("span", Ko, g(t(M)(`validation_error.${o.value[A].type}`)), 1)) : v("", !0),
|
|
1811
|
+
o.value[A].detail ? (n(), i("span", Zo, g(t(M)(o.value[A].detail)), 1)) : v("", !0)
|
|
1812
|
+
])) : v("", !0)
|
|
1813
1813
|
], 4);
|
|
1814
1814
|
}), 128))
|
|
1815
1815
|
])),
|
|
1816
|
-
_.$slots.after ? V(_.$slots, "after", { key: 2 }, void 0, !0) :
|
|
1816
|
+
_.$slots.after ? V(_.$slots, "after", { key: 2 }, void 0, !0) : v("", !0),
|
|
1817
1817
|
_.$slots.footer ? (n(), i("div", Po, [
|
|
1818
1818
|
V(_.$slots, "footer", le(be({
|
|
1819
1819
|
isInsertReady: te.value
|
|
1820
1820
|
})), void 0, !0)
|
|
1821
|
-
])) :
|
|
1821
|
+
])) : v("", !0)
|
|
1822
1822
|
], 4);
|
|
1823
1823
|
};
|
|
1824
1824
|
}
|
|
@@ -1857,7 +1857,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
1857
1857
|
})
|
|
1858
1858
|
]),
|
|
1859
1859
|
_: 1
|
|
1860
|
-
})) :
|
|
1860
|
+
})) : v("", !0),
|
|
1861
1861
|
F(re, {
|
|
1862
1862
|
large: "",
|
|
1863
1863
|
icon: "funnel",
|
|
@@ -1886,7 +1886,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
1886
1886
|
}), ie = Y(!1), ut = Y(!1), Ve = Y(!1), Be = Y((...c) => null), ct = Y(), dt = !1, ea = /* @__PURE__ */ U({
|
|
1887
1887
|
__name: "aeria-insert-panel",
|
|
1888
1888
|
setup(c) {
|
|
1889
|
-
const u = ce("meta"), e = ce(u.view.collection), a =
|
|
1889
|
+
const u = ce("meta"), e = ce(u.view.collection), a = ve("individualActions", []), s = async () => {
|
|
1890
1890
|
const y = await e.$actions.deepInsert();
|
|
1891
1891
|
Ht(y) || (ie.value = !1);
|
|
1892
1892
|
}, { t: l } = wt(), r = () => {
|
|
@@ -1936,7 +1936,7 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
1936
1936
|
icon: "dots-three"
|
|
1937
1937
|
}, null, 512)), [
|
|
1938
1938
|
[h]
|
|
1939
|
-
]) :
|
|
1939
|
+
]) : v("", !0)
|
|
1940
1940
|
]),
|
|
1941
1941
|
_: 1
|
|
1942
1942
|
}, 16)
|
|
@@ -2023,10 +2023,10 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
2023
2023
|
}, aa = { key: 0 }, sa = { key: 1 }, la = { key: 0 }, ia = ["checked"], ra = {
|
|
2024
2024
|
key: 1,
|
|
2025
2025
|
style: { "text-align": "right" }
|
|
2026
|
-
}, ua = { key: 2 }, ca = { key: 3 }, da = ["onClick"], pa = { key: 0 }, _a = ["value"], ma = { class: "table__cell-mobile-label" },
|
|
2026
|
+
}, ua = { key: 2 }, ca = { key: 3 }, da = ["onClick"], pa = { key: 0 }, _a = ["value"], ma = { class: "table__cell-mobile-label" }, va = {
|
|
2027
2027
|
key: 0,
|
|
2028
2028
|
class: "table__cell-container"
|
|
2029
|
-
},
|
|
2029
|
+
}, fa = {
|
|
2030
2030
|
key: 1,
|
|
2031
2031
|
class: "table__cell-container"
|
|
2032
2032
|
}, ya = { class: "table__cell-grid" }, ha = { key: 0 }, $a = { key: 1 }, ba = ["href"], ga = { key: 3 }, ka = { key: 2 }, Va = { key: 0 }, Ca = { key: 1 }, Ia = { key: 2 }, Aa = {
|
|
@@ -2053,59 +2053,59 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
2053
2053
|
setup(c, { emit: u }) {
|
|
2054
2054
|
const e = c, a = u, s = Te(), l = e.collection || Le(), r = l ? ce(typeof l == "string" ? l : l.value) : null, y = D({
|
|
2055
2055
|
get: () => r == null ? void 0 : r.selected,
|
|
2056
|
-
set: (
|
|
2057
|
-
}), p = (
|
|
2056
|
+
set: (f) => r == null ? void 0 : r.$actions.selectManyItems(f, !0)
|
|
2057
|
+
}), p = (f, b) => f != null && f.button ? typeof f.button == "object" ? Ge(b, f.button).satisfied : f.button : !1, h = (f) => {
|
|
2058
2058
|
var b;
|
|
2059
2059
|
return !s.value.xl || !((b = e.layout) != null && b.actions) || !e.actions ? [] : e.actions.filter((C) => {
|
|
2060
2060
|
const R = e.layout.actions[C.action];
|
|
2061
|
-
return p(R,
|
|
2061
|
+
return p(R, f);
|
|
2062
2062
|
});
|
|
2063
|
-
}, d = (
|
|
2063
|
+
}, d = (f) => {
|
|
2064
2064
|
var b;
|
|
2065
2065
|
return e.actions ? !s.value.xl || !((b = e.layout) != null && b.actions) ? e.actions : e.actions.filter((C) => {
|
|
2066
2066
|
const R = e.layout.actions[C.action];
|
|
2067
|
-
return !p(R,
|
|
2067
|
+
return !p(R, f);
|
|
2068
2068
|
}) : [];
|
|
2069
|
-
}, o = (
|
|
2069
|
+
}, o = (f, b) => {
|
|
2070
2070
|
var j, q;
|
|
2071
2071
|
const C = [], R = (q = (j = e.layout) == null ? void 0 : j.actions) == null ? void 0 : q[b.action];
|
|
2072
2072
|
return R != null && R.if && (Ge(
|
|
2073
|
-
|
|
2073
|
+
f,
|
|
2074
2074
|
R.if
|
|
2075
2075
|
).satisfied || C.push("display: none;")), C.join("");
|
|
2076
2076
|
};
|
|
2077
|
-
return (
|
|
2077
|
+
return (f, b) => {
|
|
2078
2078
|
var R, j, q;
|
|
2079
2079
|
const C = N("clickable");
|
|
2080
|
-
return
|
|
2081
|
-
|
|
2082
|
-
V(
|
|
2080
|
+
return f.columns && Object.keys(f.columns).length > 0 || f.$slots.thead ? (n(), i("table", oa, [
|
|
2081
|
+
f.$slots.thead ? (n(), i("thead", aa, [
|
|
2082
|
+
V(f.$slots, "thead", {}, void 0, !0)
|
|
2083
2083
|
])) : (n(), i("thead", sa, [
|
|
2084
2084
|
k("tr", null, [
|
|
2085
|
-
|
|
2085
|
+
f.checkbox && t(r) && t(s).md ? (n(), i("th", la, [
|
|
2086
2086
|
k("input", {
|
|
2087
2087
|
type: "checkbox",
|
|
2088
2088
|
checked: t(r).selected.length > 0 && t(r).selected.length === t(r).itemsCount,
|
|
2089
2089
|
onChange: b[0] || (b[0] = (w) => t(r).$actions.selectAllItems(w.target.checked))
|
|
2090
2090
|
}, null, 40, ia)
|
|
2091
|
-
])) :
|
|
2092
|
-
(n(!0), i(J, null, H(Object.entries(
|
|
2091
|
+
])) : v("", !0),
|
|
2092
|
+
(n(!0), i(J, null, H(Object.entries(f.columns), ([w, ae], x) => (n(), i("th", {
|
|
2093
2093
|
key: `header-${x}`,
|
|
2094
2094
|
class: "table__header"
|
|
2095
2095
|
}, g(ae.description || t(M)(w)), 1))), 128)),
|
|
2096
|
-
(R =
|
|
2096
|
+
(R = f.actions) != null && R.length ? (n(), i("th", ra)) : v("", !0)
|
|
2097
2097
|
])
|
|
2098
2098
|
])),
|
|
2099
|
-
|
|
2100
|
-
V(
|
|
2099
|
+
f.$slots.tbody ? (n(), i("tbody", ua, [
|
|
2100
|
+
V(f.$slots, "tbody", {}, void 0, !0)
|
|
2101
2101
|
])) : (n(), i("tbody", ca, [
|
|
2102
|
-
(n(!0), i(J, null, H(
|
|
2102
|
+
(n(!0), i(J, null, H(f.rows, (w) => {
|
|
2103
2103
|
var ae, x;
|
|
2104
2104
|
return n(), i("tr", {
|
|
2105
2105
|
key: w._id,
|
|
2106
2106
|
onClick: (S) => a("itemClick", w)
|
|
2107
2107
|
}, [
|
|
2108
|
-
t(r) &&
|
|
2108
|
+
t(r) && f.checkbox && t(s).md ? (n(), i("td", pa, [
|
|
2109
2109
|
Z(k("input", {
|
|
2110
2110
|
"onUpdate:modelValue": b[1] || (b[1] = (S) => y.value = S),
|
|
2111
2111
|
type: "checkbox",
|
|
@@ -2113,21 +2113,21 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
2113
2113
|
}, null, 8, _a), [
|
|
2114
2114
|
[kt, y.value]
|
|
2115
2115
|
])
|
|
2116
|
-
])) :
|
|
2117
|
-
(n(!0), i(J, null, H(Object.entries(
|
|
2116
|
+
])) : v("", !0),
|
|
2117
|
+
(n(!0), i(J, null, H(Object.entries(f.columns), ([S, ee], O) => {
|
|
2118
2118
|
var z, te, oe, _, E, I;
|
|
2119
2119
|
return n(), i("td", {
|
|
2120
2120
|
key: `column-${w._id}-${O}`
|
|
2121
2121
|
}, [
|
|
2122
2122
|
k("div", ma, g(ee.description || t(M)(S)), 1),
|
|
2123
|
-
`row-${S}` in
|
|
2124
|
-
V(
|
|
2123
|
+
`row-${S}` in f.$slots ? (n(), i("div", va, [
|
|
2124
|
+
V(f.$slots, `row-${S}`, le(be({
|
|
2125
2125
|
store: t(r),
|
|
2126
2126
|
column: S,
|
|
2127
2127
|
property: ee,
|
|
2128
2128
|
row: w
|
|
2129
2129
|
})), void 0, !0)
|
|
2130
|
-
])) : (n(), i("div",
|
|
2130
|
+
])) : (n(), i("div", fa, [
|
|
2131
2131
|
k("div", ya, [
|
|
2132
2132
|
"type" in ee && ee.type === "boolean" ? (n(), i("div", ha, [
|
|
2133
2133
|
w[S] ? (n(), $(K, {
|
|
@@ -2185,13 +2185,13 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
2185
2185
|
property: ee,
|
|
2186
2186
|
index: L
|
|
2187
2187
|
})), 1))), 128))
|
|
2188
|
-
])) :
|
|
2188
|
+
])) : v("", !0)
|
|
2189
2189
|
]))
|
|
2190
2190
|
])
|
|
2191
2191
|
]))
|
|
2192
2192
|
]);
|
|
2193
2193
|
}), 128)),
|
|
2194
|
-
(ae =
|
|
2194
|
+
(ae = f.actions) != null && ae.length && t(s).md ? (n(), i("td", Aa, [
|
|
2195
2195
|
k("div", Oa, [
|
|
2196
2196
|
(n(!0), i(J, null, H(h(w), (S) => (n(), $(re, {
|
|
2197
2197
|
key: `action-${S.action}`,
|
|
@@ -2219,9 +2219,9 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
2219
2219
|
])
|
|
2220
2220
|
]),
|
|
2221
2221
|
_: 2
|
|
2222
|
-
}, 1040)) :
|
|
2222
|
+
}, 1040)) : v("", !0)
|
|
2223
2223
|
])
|
|
2224
|
-
])) : (x =
|
|
2224
|
+
])) : (x = f.actions) != null && x.length ? (n(), i("td", wa, [
|
|
2225
2225
|
k("div", {
|
|
2226
2226
|
class: "table__mobile-actions-grid",
|
|
2227
2227
|
style: he(`grid-template-columns: repeat(${h(w).length + (d(w).length ? 1 : 0)}, 1fr);`)
|
|
@@ -2254,9 +2254,9 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
2254
2254
|
})
|
|
2255
2255
|
]),
|
|
2256
2256
|
_: 2
|
|
2257
|
-
}, 1040)) :
|
|
2257
|
+
}, 1040)) : v("", !0)
|
|
2258
2258
|
], 4)
|
|
2259
|
-
])) :
|
|
2259
|
+
])) : v("", !0),
|
|
2260
2260
|
k("div", {
|
|
2261
2261
|
id: `dropdown-${w._id}`
|
|
2262
2262
|
}, null, 8, Ba)
|
|
@@ -2264,9 +2264,9 @@ const De = /* @__PURE__ */ X(No, [["__scopeId", "data-v-744f1b34"]]), xo = /* @_
|
|
|
2264
2264
|
}), 128))
|
|
2265
2265
|
])),
|
|
2266
2266
|
k("tfoot", null, [
|
|
2267
|
-
|
|
2267
|
+
f.$slots.tfoot ? V(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((j = f.rows) != null && j.length) && !((q = t(r)) != null && q.loading.getAll) ? (n(), i("tr", Sa, Ta)) : v("", !0)
|
|
2268
2268
|
])
|
|
2269
|
-
])) :
|
|
2269
|
+
])) : v("", !0);
|
|
2270
2270
|
};
|
|
2271
2271
|
}
|
|
2272
2272
|
});
|
|
@@ -2290,7 +2290,7 @@ const Ra = /* @__PURE__ */ X(La, [["__scopeId", "data-v-d8e1b8cf"]]), za = /* @_
|
|
|
2290
2290
|
return Object.assign(l, u.componentProps);
|
|
2291
2291
|
});
|
|
2292
2292
|
return (l, r) => (n(), i("div", null, [
|
|
2293
|
-
l.$slots.inner ? V(l.$slots, "inner", { key: 0 }) :
|
|
2293
|
+
l.$slots.inner ? V(l.$slots, "inner", { key: 0 }) : v("", !0),
|
|
2294
2294
|
t(e).properties ? (n(), $(Ra, G({ key: 1 }, s.value, {
|
|
2295
2295
|
key: t(e).$id
|
|
2296
2296
|
}), de({ _: 2 }, [
|
|
@@ -2300,7 +2300,7 @@ const Ra = /* @__PURE__ */ X(La, [["__scopeId", "data-v-d8e1b8cf"]]), za = /* @_
|
|
|
2300
2300
|
V(l.$slots, y, le(be(p)))
|
|
2301
2301
|
])
|
|
2302
2302
|
}))
|
|
2303
|
-
]), 1040)) :
|
|
2303
|
+
]), 1040)) : v("", !0)
|
|
2304
2304
|
]));
|
|
2305
2305
|
}
|
|
2306
2306
|
}), Fa = /* @__PURE__ */ U({
|
|
@@ -2344,8 +2344,8 @@ const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key
|
|
|
2344
2344
|
horizontal: l.componentName === "list"
|
|
2345
2345
|
}, de({
|
|
2346
2346
|
footer: m(() => [
|
|
2347
|
-
t(e).title ? (n(), i("div", qa, g(p[t(e).title]), 1)) :
|
|
2348
|
-
t(e).information ? (n(), i("div", Ua, g(p[t(e).information]), 1)) :
|
|
2347
|
+
t(e).title ? (n(), i("div", qa, g(p[t(e).title]), 1)) : v("", !0),
|
|
2348
|
+
t(e).information ? (n(), i("div", Ua, g(p[t(e).information]), 1)) : v("", !0)
|
|
2349
2349
|
]),
|
|
2350
2350
|
actions: m(() => [
|
|
2351
2351
|
l.individualActions.length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
|
|
@@ -2361,7 +2361,7 @@ const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key
|
|
|
2361
2361
|
])
|
|
2362
2362
|
]),
|
|
2363
2363
|
_: 2
|
|
2364
|
-
}, 1040)) :
|
|
2364
|
+
}, 1040)) : v("", !0)
|
|
2365
2365
|
]),
|
|
2366
2366
|
default: m(() => {
|
|
2367
2367
|
var h;
|
|
@@ -2412,7 +2412,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2412
2412
|
tabular: za,
|
|
2413
2413
|
grid: pt,
|
|
2414
2414
|
list: pt
|
|
2415
|
-
})[c], Da = (c) => (qe("data-v-
|
|
2415
|
+
})[c], Da = (c) => (qe("data-v-476a7284"), c = c(), Ue(), c), Qa = {
|
|
2416
2416
|
key: 2,
|
|
2417
2417
|
class: "crud__controls"
|
|
2418
2418
|
}, Ga = {
|
|
@@ -2437,7 +2437,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2437
2437
|
},
|
|
2438
2438
|
emits: ["uiEvent"],
|
|
2439
2439
|
setup(c, { emit: u }) {
|
|
2440
|
-
const e = c, a = u, s = Re(), l =
|
|
2440
|
+
const e = c, a = u, s = Re(), l = ft({
|
|
2441
2441
|
delay: 600
|
|
2442
2442
|
}), r = ce("meta"), y = Te(), { reachedEnd: p, detach: h } = Xe(null, {
|
|
2443
2443
|
antecipate: 600
|
|
@@ -2449,7 +2449,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2449
2449
|
ta(o, {
|
|
2450
2450
|
persistInQuery: !e.noQueryPersistence
|
|
2451
2451
|
});
|
|
2452
|
-
const
|
|
2452
|
+
const f = Mt(), b = e.action ? je(e.action) ? e.action.value : e.action : Rt(o, s, f);
|
|
2453
2453
|
Be.value = b[0], ct.value = b[1];
|
|
2454
2454
|
const C = Y(0), R = Y(!1), j = async (O) => {
|
|
2455
2455
|
o.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
|
|
@@ -2470,7 +2470,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2470
2470
|
limit: O.limit
|
|
2471
2471
|
}
|
|
2472
2472
|
}), o.pagination.offset = O.offset, o.pagination.limit = O.limit, j();
|
|
2473
|
-
}, w =
|
|
2473
|
+
}, w = ve("noResultsComponent", null);
|
|
2474
2474
|
ue(() => [
|
|
2475
2475
|
s.currentRoute.value.path,
|
|
2476
2476
|
s.currentRoute.value.query.section
|
|
@@ -2567,7 +2567,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2567
2567
|
click: Be.value(O),
|
|
2568
2568
|
...O
|
|
2569
2569
|
}))), ee = D(() => o.actions.filter((O) => !O.button));
|
|
2570
|
-
return
|
|
2570
|
+
return fe(Ee, D(() => e.collection)), fe("individualActions", S), (O, z) => {
|
|
2571
2571
|
var _, E, I, L, A, T, ne;
|
|
2572
2572
|
const te = N("clickable"), oe = N("loading");
|
|
2573
2573
|
return n(), i(J, null, [
|
|
@@ -2575,7 +2575,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2575
2575
|
key: t(o).$id,
|
|
2576
2576
|
modelValue: t(Ve),
|
|
2577
2577
|
"onUpdate:modelValue": z[0] || (z[0] = (B) => je(Ve) ? Ve.value = B : null)
|
|
2578
|
-
}, null, 8, ["modelValue"])) :
|
|
2578
|
+
}, null, 8, ["modelValue"])) : v("", !0),
|
|
2579
2579
|
t(ie) ? (n(), $(ea, { key: 1 }, de({ _: 2 }, [
|
|
2580
2580
|
H(Object.keys(O.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
2581
2581
|
name: B,
|
|
@@ -2583,7 +2583,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2583
2583
|
V(O.$slots, B, le(be(se)), void 0, !0)
|
|
2584
2584
|
])
|
|
2585
2585
|
}))
|
|
2586
|
-
]), 1024)) :
|
|
2586
|
+
]), 1024)) : v("", !0),
|
|
2587
2587
|
!O.noActions && (t(o).description.search || Object.keys(t(o).availableFilters).length > 0 || ((_ = t(o)) == null ? void 0 : _.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && t(o).description.layout && ((E = t(o).description.layout) == null ? void 0 : E.name) !== "tabular") ? (n(), i("div", Qa, [
|
|
2588
2588
|
t(o).description.search ? (n(), i("div", Ga, [
|
|
2589
2589
|
F(Ie, G({
|
|
@@ -2596,7 +2596,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2596
2596
|
inputType: "search"
|
|
2597
2597
|
}
|
|
2598
2598
|
}), null, 16, ["modelValue"])
|
|
2599
|
-
])) :
|
|
2599
|
+
])) : v("", !0),
|
|
2600
2600
|
k("div", Wa, [
|
|
2601
2601
|
ee.value.length > 0 || !O.noLayoutToggle && t(o).description.layout && ((I = t(o).description.layout) == null ? void 0 : I.name) !== "tabular" ? (n(), $(Ce, { key: 0 }, de({
|
|
2602
2602
|
default: m(() => [
|
|
@@ -2610,7 +2610,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2610
2610
|
Q(g(t(o).filtersCount), 1)
|
|
2611
2611
|
]),
|
|
2612
2612
|
_: 1
|
|
2613
|
-
})) :
|
|
2613
|
+
})) : v("", !0)
|
|
2614
2614
|
]),
|
|
2615
2615
|
_: 1
|
|
2616
2616
|
})
|
|
@@ -2637,7 +2637,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2637
2637
|
Q(g(t(o).filtersCount), 1)
|
|
2638
2638
|
]),
|
|
2639
2639
|
_: 1
|
|
2640
|
-
})) :
|
|
2640
|
+
})) : v("", !0)
|
|
2641
2641
|
])
|
|
2642
2642
|
]),
|
|
2643
2643
|
key: "0"
|
|
@@ -2672,7 +2672,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2672
2672
|
Q(g(t(M)(B.name, { capitalize: !0 })), 1)
|
|
2673
2673
|
]),
|
|
2674
2674
|
_: 2
|
|
2675
|
-
}, 1032, ["icon", "disabled", "onClick"])) :
|
|
2675
|
+
}, 1032, ["icon", "disabled", "onClick"])) : v("", !0)
|
|
2676
2676
|
])
|
|
2677
2677
|
}))
|
|
2678
2678
|
]), 1024)) : Object.keys(t(o).availableFilters).length > 0 ? (n(), $(re, {
|
|
@@ -2688,10 +2688,10 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2688
2688
|
Q(g(t(o).filtersCount), 1)
|
|
2689
2689
|
]),
|
|
2690
2690
|
_: 1
|
|
2691
|
-
})) :
|
|
2691
|
+
})) : v("", !0)
|
|
2692
2692
|
]),
|
|
2693
2693
|
_: 1
|
|
2694
|
-
})) :
|
|
2694
|
+
})) : v("", !0),
|
|
2695
2695
|
(n(!0), i(J, null, H(t(o).actions.filter((B) => B.button), (B, se) => (n(), $(re, {
|
|
2696
2696
|
key: `action-${se}`,
|
|
2697
2697
|
icon: B.icon,
|
|
@@ -2703,9 +2703,9 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2703
2703
|
]),
|
|
2704
2704
|
_: 2
|
|
2705
2705
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2706
|
-
O.$slots.actions ? V(O.$slots, "actions", { key: 2 }, void 0, !0) :
|
|
2706
|
+
O.$slots.actions ? V(O.$slots, "actions", { key: 2 }, void 0, !0) : v("", !0)
|
|
2707
2707
|
])
|
|
2708
|
-
])) :
|
|
2708
|
+
])) : v("", !0),
|
|
2709
2709
|
Z((n(), i("div", null, [
|
|
2710
2710
|
t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || O.$slots.empty) ? (n(), i("div", Ja, [
|
|
2711
2711
|
t(w) ? (n(), $(ye(t(w)), le(G({ key: 0 }, {
|
|
@@ -2723,7 +2723,7 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2723
2723
|
Q(g(t(M)("add_first_item", { capitalize: !0 })), 1)
|
|
2724
2724
|
]),
|
|
2725
2725
|
_: 1
|
|
2726
|
-
})) :
|
|
2726
|
+
})) : v("", !0)
|
|
2727
2727
|
]),
|
|
2728
2728
|
_: 1
|
|
2729
2729
|
}, 16)) : V(O.$slots, "empty", le(G({ key: 1 }, {
|
|
@@ -2760,12 +2760,12 @@ const pt = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), Ha = (c) =
|
|
|
2760
2760
|
pagination: t(o).pagination,
|
|
2761
2761
|
onPaginate: q
|
|
2762
2762
|
}, null, 8, ["pagination"])
|
|
2763
|
-
])) :
|
|
2763
|
+
])) : v("", !0)
|
|
2764
2764
|
], 64);
|
|
2765
2765
|
};
|
|
2766
2766
|
}
|
|
2767
2767
|
});
|
|
2768
|
-
const Ls = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-
|
|
2768
|
+
const Ls = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-476a7284"]]), Pa = { class: "prompt" }, Na = /* @__PURE__ */ U({
|
|
2769
2769
|
__name: "aeria-prompt",
|
|
2770
2770
|
props: {
|
|
2771
2771
|
title: {},
|
|
@@ -2899,8 +2899,8 @@ const os = /* @__PURE__ */ X(ns, [["__scopeId", "data-v-54736bc3"]]), as = ["inn
|
|
|
2899
2899
|
key: 0,
|
|
2900
2900
|
style: { "white-space": "pre-wrap" },
|
|
2901
2901
|
innerHTML: t(u).modal.body
|
|
2902
|
-
}, null, 8, as)) :
|
|
2903
|
-
t(u).modal.component ? (n(), $(ye(t(u).modal.component), { key: 1 })) :
|
|
2902
|
+
}, null, 8, as)) : v("", !0),
|
|
2903
|
+
t(u).modal.component ? (n(), $(ye(t(u).modal.component), { key: 1 })) : v("", !0)
|
|
2904
2904
|
]),
|
|
2905
2905
|
_: 1
|
|
2906
2906
|
}, 16, ["modelValue"]),
|
|
@@ -2909,7 +2909,7 @@ const os = /* @__PURE__ */ X(ns, [["__scopeId", "data-v-54736bc3"]]), as = ["inn
|
|
|
2909
2909
|
Q(g(t(u).prompt.body), 1)
|
|
2910
2910
|
]),
|
|
2911
2911
|
_: 1
|
|
2912
|
-
}, 16)) :
|
|
2912
|
+
}, 16)) : v("", !0),
|
|
2913
2913
|
k("div", ss, [
|
|
2914
2914
|
(n(!0), i(J, null, H(t(u).toasts, (r) => (n(), $(os, G(r, {
|
|
2915
2915
|
key: `toast-${r.itr}`
|
|
@@ -2944,10 +2944,10 @@ const zs = /* @__PURE__ */ X(rs, [["render", cs], ["__scopeId", "data-v-3cfef7fb
|
|
|
2944
2944
|
}, _s = {
|
|
2945
2945
|
key: 0,
|
|
2946
2946
|
class: "tabs__tab tabs__tab--info"
|
|
2947
|
-
}, ms = ["onClick"],
|
|
2947
|
+
}, ms = ["onClick"], vs = {
|
|
2948
2948
|
key: 1,
|
|
2949
2949
|
class: "tabs__context-menu"
|
|
2950
|
-
},
|
|
2950
|
+
}, fs = ["onClick"], ys = /* @__PURE__ */ U({
|
|
2951
2951
|
__name: "aeria-tabs",
|
|
2952
2952
|
props: {
|
|
2953
2953
|
query: {},
|
|
@@ -2980,18 +2980,18 @@ const zs = /* @__PURE__ */ X(rs, [["render", cs], ["__scopeId", "data-v-3cfef7fb
|
|
|
2980
2980
|
t(s).md && !p.dropdown ? (n(), i("div", ps, [
|
|
2981
2981
|
p.$slots.default ? (n(), i("div", _s, [
|
|
2982
2982
|
V(p.$slots, "default", {}, void 0, !0)
|
|
2983
|
-
])) :
|
|
2984
|
-
(n(!0), i(J, null, H(Object.keys(p.$slots).filter((o) => o !== "default"), (o,
|
|
2983
|
+
])) : v("", !0),
|
|
2984
|
+
(n(!0), i(J, null, H(Object.keys(p.$slots).filter((o) => o !== "default"), (o, f) => (n(), i("div", {
|
|
2985
2985
|
key: o,
|
|
2986
2986
|
class: W({
|
|
2987
2987
|
tabs__tab: !0,
|
|
2988
|
-
"tabs__tab--current": o === r.value || !r.value &&
|
|
2988
|
+
"tabs__tab--current": o === r.value || !r.value && f === 0
|
|
2989
2989
|
}),
|
|
2990
2990
|
onClick: (b) => y(o)
|
|
2991
2991
|
}, [
|
|
2992
2992
|
V(p.$slots, o, {}, void 0, !0)
|
|
2993
2993
|
], 10, ms))), 128))
|
|
2994
|
-
])) : (n(), i("div",
|
|
2994
|
+
])) : (n(), i("div", vs, [
|
|
2995
2995
|
F(Ce, null, de({
|
|
2996
2996
|
default: m(() => [
|
|
2997
2997
|
Z((n(), $(K, {
|
|
@@ -3014,10 +3014,10 @@ const zs = /* @__PURE__ */ X(rs, [["render", cs], ["__scopeId", "data-v-3cfef7fb
|
|
|
3014
3014
|
name: o,
|
|
3015
3015
|
fn: m(() => [
|
|
3016
3016
|
k("div", {
|
|
3017
|
-
onClick: (
|
|
3017
|
+
onClick: (f) => y(o)
|
|
3018
3018
|
}, [
|
|
3019
3019
|
V(p.$slots, o, {}, void 0, !0)
|
|
3020
|
-
], 8,
|
|
3020
|
+
], 8, fs)
|
|
3021
3021
|
])
|
|
3022
3022
|
}))
|
|
3023
3023
|
]), 1024)
|
|
@@ -3080,11 +3080,11 @@ const hs = /* @__PURE__ */ X(ys, [["__scopeId", "data-v-d12cddeb"]]), $s = U({
|
|
|
3080
3080
|
}, null, 8, ["promise"])
|
|
3081
3081
|
]),
|
|
3082
3082
|
_: 2
|
|
3083
|
-
}, 1024)) :
|
|
3083
|
+
}, 1024)) : v("", !0)
|
|
3084
3084
|
], 8, bs)
|
|
3085
3085
|
])
|
|
3086
3086
|
}))
|
|
3087
|
-
]), 1024)) :
|
|
3087
|
+
]), 1024)) : v("", !0);
|
|
3088
3088
|
}
|
|
3089
3089
|
});
|
|
3090
3090
|
const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -3098,7 +3098,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
|
|
|
3098
3098
|
emits: ["update:modelValue"],
|
|
3099
3099
|
setup(c) {
|
|
3100
3100
|
const u = c;
|
|
3101
|
-
|
|
3101
|
+
fe(Ee, null);
|
|
3102
3102
|
const e = Ft(), a = D(() => e(
|
|
3103
3103
|
u.modelValue.password,
|
|
3104
3104
|
u.modelValue.confirmation
|
|
@@ -3144,7 +3144,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
|
|
|
3144
3144
|
{
|
|
3145
3145
|
path: "signin",
|
|
3146
3146
|
name: "/user/signin",
|
|
3147
|
-
component: () => import("./signin-
|
|
3147
|
+
component: () => import("./signin-0dd8d7bb.js"),
|
|
3148
3148
|
meta: {
|
|
3149
3149
|
title: "Autenticação"
|
|
3150
3150
|
}
|
|
@@ -3152,7 +3152,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
|
|
|
3152
3152
|
{
|
|
3153
3153
|
path: "signup",
|
|
3154
3154
|
name: "/user/signup",
|
|
3155
|
-
component: () => import("./signup-
|
|
3155
|
+
component: () => import("./signup-389b38ea.js"),
|
|
3156
3156
|
meta: {
|
|
3157
3157
|
title: "Registro"
|
|
3158
3158
|
}
|
|
@@ -3160,7 +3160,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
|
|
|
3160
3160
|
{
|
|
3161
3161
|
path: "activation",
|
|
3162
3162
|
name: "/user/activation",
|
|
3163
|
-
component: () => import("./activation-
|
|
3163
|
+
component: () => import("./activation-6f3d54a9.js"),
|
|
3164
3164
|
meta: {
|
|
3165
3165
|
title: "Ativação"
|
|
3166
3166
|
}
|
|
@@ -3182,7 +3182,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
|
|
|
3182
3182
|
name: "/dashboard/crud",
|
|
3183
3183
|
props: !0,
|
|
3184
3184
|
components: {
|
|
3185
|
-
default: () => import("./crud-view-
|
|
3185
|
+
default: () => import("./crud-view-3a4f4517.js"),
|
|
3186
3186
|
topbar: () => Promise.resolve().then(() => Cs)
|
|
3187
3187
|
},
|
|
3188
3188
|
meta: {
|
|
@@ -3200,7 +3200,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
|
|
|
3200
3200
|
children: [
|
|
3201
3201
|
{
|
|
3202
3202
|
path: "profile",
|
|
3203
|
-
component: () => import("./profile-
|
|
3203
|
+
component: () => import("./profile-e8b6d08b.js"),
|
|
3204
3204
|
meta: {
|
|
3205
3205
|
title: "Meu perfil",
|
|
3206
3206
|
icon: "user-square"
|
|
@@ -3209,7 +3209,7 @@ const Vs = /* @__PURE__ */ X(ks, [["__scopeId", "data-v-d0b47fbb"]]), Cs = /* @_
|
|
|
3209
3209
|
{
|
|
3210
3210
|
path: "changepass",
|
|
3211
3211
|
name: "/dashboard/user/changepass",
|
|
3212
|
-
component: () => import("./password-change-
|
|
3212
|
+
component: () => import("./password-change-0dc60d46.js"),
|
|
3213
3213
|
meta: {
|
|
3214
3214
|
title: "Mudar senha",
|
|
3215
3215
|
icon: "lock"
|