@aeria-ui/ui 0.0.103 → 0.0.104
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_id_-f9aecac3.js → _id_-07ecbbed.js} +1 -1
- package/dist/{activation-93020474.js → activation-b3c0b26e.js} +1 -1
- package/dist/{index-6f1b74f2.js → index-81774946.js} +322 -323
- package/dist/{index-40f5a8fb.js → index-9c3d342a.js} +1 -1
- package/dist/{index-e07dc216.js → index-ce5a37bd.js} +1 -1
- package/dist/{index-87991a2f.js → index-d4925927.js} +1 -1
- package/dist/{signin-7b7b6de7.js → signin-896e35f4.js} +1 -1
- package/dist/{signup-c977355c.js → signup-574b4c47.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as U, ref as Z, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as K, Fragment as x, renderList as Q, withDirectives as P, toDisplayString as V, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as C, inject as me, computed as X, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as f, resolveDynamicComponent as be, useCssVars as Vt, normalizeProps as
|
|
1
|
+
import { defineComponent as U, ref as Z, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as K, Fragment as x, renderList as Q, withDirectives as P, toDisplayString as V, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as C, inject as me, computed as X, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as f, resolveDynamicComponent as be, useCssVars as Vt, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as q, withModifiers as qe, vModelDynamic as Ct, onBeforeMount as bt, normalizeStyle as he, provide as ye, createSlots as ce, vModelCheckbox as Ot, onUnmounted as It, isRef as pt, resolveComponent as At, Suspense as Bt, useSlots as wt, h as St } from "vue";
|
|
2
2
|
import { t as R, useI18n as Tt } from "@aeria-ui/i18n";
|
|
3
|
-
import { arraysIntersect as ht, deepClone as Ce, getReferenceProperty as _e, freshItem as jt, isRequired as Rt, evaluateCondition as We, deepMerge as
|
|
3
|
+
import { arraysIntersect as ht, deepClone as Ce, getReferenceProperty as _e, freshItem as jt, isRequired as Rt, evaluateCondition as We, deepMerge as ze } from "@aeriajs/common";
|
|
4
4
|
import { useStore as re, getStoreId as Me, useParentStore as De, STORE_ID as Fe, getGlobalStateManager as Ye } from "@aeria-ui/state-management";
|
|
5
|
-
import { useScrollObserver as Je, useBreakpoints as Ue, useMask as Lt, PAGINATION_PER_PAGE_DEFAULTS as
|
|
5
|
+
import { useScrollObserver as Je, useBreakpoints as Ue, useMask as Lt, PAGINATION_PER_PAGE_DEFAULTS as qt, API_URL as $t, request as zt, useDebounce as gt, convertToSearchQuery as Mt, useParentCollectionStore as Le, useCollectionStore as Ft, useAction as Ut, convertFromSearchQuery as Et, usePasswordPolicy as Ht } from "@aeria-ui/core";
|
|
6
6
|
import { useRouter as Ie } from "vue-router";
|
|
7
|
-
import { convertConditionToQuery as Gt } from "@aeria-ui/utils";
|
|
7
|
+
import { convertConditionToQuery as Dt, isDocumentComplete as Qt, getObjectKey as Gt } from "@aeria-ui/utils";
|
|
8
8
|
const Wt = ["onClick"], Kt = { key: 0 }, Xt = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "accordion__content"
|
|
@@ -18,7 +18,7 @@ const Wt = ["onClick"], Kt = { key: 0 }, Xt = {
|
|
|
18
18
|
setup(p) {
|
|
19
19
|
const u = Z(null), a = (t) => typeof t == "string" ? t : t.title;
|
|
20
20
|
return (t, o) => {
|
|
21
|
-
const
|
|
21
|
+
const c = te("clickable");
|
|
22
22
|
return n(), s("div", {
|
|
23
23
|
class: K({
|
|
24
24
|
accordion: !0,
|
|
@@ -31,12 +31,12 @@ const Wt = ["onClick"], Kt = { key: 0 }, Xt = {
|
|
|
31
31
|
}, [
|
|
32
32
|
P((n(), s("div", {
|
|
33
33
|
class: "accordion__header",
|
|
34
|
-
onClick: (
|
|
34
|
+
onClick: (d) => u.value === r ? u.value = null : u.value = r
|
|
35
35
|
}, [
|
|
36
36
|
t.enumerate ? (n(), s("span", Kt, V(m + 1) + ". ", 1)) : y("", !0),
|
|
37
37
|
D(" " + V(t.headers[r] ? a(t.headers[r]) : e(R)(r)), 1)
|
|
38
38
|
], 8, Wt)), [
|
|
39
|
-
[
|
|
39
|
+
[c]
|
|
40
40
|
]),
|
|
41
41
|
u.value === r ? (n(), s("div", Xt, [
|
|
42
42
|
C(t.$slots, r, {}, void 0, !0)
|
|
@@ -76,17 +76,17 @@ const $e = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-47f92648"]]), Zt = /* @_
|
|
|
76
76
|
},
|
|
77
77
|
emits: ["click"],
|
|
78
78
|
setup(p, { emit: u }) {
|
|
79
|
-
const a = p, t = u, o = (
|
|
80
|
-
a.disabled || t("click",
|
|
79
|
+
const a = p, t = u, o = (c) => {
|
|
80
|
+
a.disabled || t("click", c);
|
|
81
81
|
};
|
|
82
|
-
return (
|
|
82
|
+
return (c, r) => (n(), s("button", {
|
|
83
83
|
class: K(`
|
|
84
84
|
barebutton
|
|
85
|
-
barebutton--${
|
|
85
|
+
barebutton--${c.disabled ? "disabled" : "enabled"}
|
|
86
86
|
`),
|
|
87
87
|
onClick: o
|
|
88
88
|
}, [
|
|
89
|
-
C(
|
|
89
|
+
C(c.$slots, "default", {}, void 0, !0)
|
|
90
90
|
], 2));
|
|
91
91
|
}
|
|
92
92
|
});
|
|
@@ -109,7 +109,7 @@ const ve = /* @__PURE__ */ G(Zt, [["__scopeId", "data-v-35bc81ae"]]), Pt = ["hre
|
|
|
109
109
|
var o;
|
|
110
110
|
return (o = u.icon) != null && o.includes(":") ? u.icon : `regular:${u.icon}`;
|
|
111
111
|
});
|
|
112
|
-
return (o,
|
|
112
|
+
return (o, c) => (n(), s("a", {
|
|
113
113
|
class: K(`
|
|
114
114
|
icon
|
|
115
115
|
${e(a) && "icon--reactive"}
|
|
@@ -167,7 +167,7 @@ const J = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-6d36de33"]]), en = { clas
|
|
|
167
167
|
}
|
|
168
168
|
return me("buttonSize", u.size) || "medium";
|
|
169
169
|
})();
|
|
170
|
-
return (o,
|
|
170
|
+
return (o, c) => (n(), k(ve, {
|
|
171
171
|
class: K(`
|
|
172
172
|
button
|
|
173
173
|
button--${e(a)}
|
|
@@ -226,7 +226,7 @@ const ie = /* @__PURE__ */ G(nn, [["__scopeId", "data-v-c328251b"]]), on = { cla
|
|
|
226
226
|
], 2));
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
|
-
const un = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-c1a322df"]]),
|
|
229
|
+
const un = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-c1a322df"]]), cn = { class: "panel__header-left" }, dn = { key: 1 }, pn = {
|
|
230
230
|
key: 2,
|
|
231
231
|
style: { "margin-left": "auto" }
|
|
232
232
|
}, mn = /* @__PURE__ */ U({
|
|
@@ -252,9 +252,9 @@ const un = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
252
252
|
},
|
|
253
253
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
254
254
|
setup(p, { emit: u }) {
|
|
255
|
-
const a = p, t = u, o = Z(a.collapsed),
|
|
255
|
+
const a = p, t = u, o = Z(a.collapsed), c = Z(null), { reachedEnd: r } = Je(c), m = () => {
|
|
256
256
|
t("update:modelValue", !1), t("close");
|
|
257
|
-
},
|
|
257
|
+
}, d = () => {
|
|
258
258
|
t("overlayClick");
|
|
259
259
|
}, h = (i) => {
|
|
260
260
|
t("update:collapsed", i), o.value = i;
|
|
@@ -293,8 +293,8 @@ const un = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
293
293
|
${i.outerHeader && "panel__header--outer"}
|
|
294
294
|
`)
|
|
295
295
|
}, [
|
|
296
|
-
A("div",
|
|
297
|
-
i.$slots.header ? C(i.$slots, "header", { key: 0 }, void 0, !0) : i.title ? (n(), s("div",
|
|
296
|
+
A("div", cn, [
|
|
297
|
+
i.$slots.header ? C(i.$slots, "header", { key: 0 }, void 0, !0) : i.title ? (n(), s("div", dn, V(i.title), 1)) : y("", !0),
|
|
298
298
|
i.$slots.extra ? (n(), s("div", pn, [
|
|
299
299
|
C(i.$slots, "extra", {}, void 0, !0)
|
|
300
300
|
])) : y("", !0)
|
|
@@ -325,7 +325,7 @@ const un = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
325
325
|
o.value ? y("", !0) : P((n(), s("div", {
|
|
326
326
|
key: 1,
|
|
327
327
|
ref_key: "body",
|
|
328
|
-
ref:
|
|
328
|
+
ref: c,
|
|
329
329
|
tabindex: "0",
|
|
330
330
|
class: K(`
|
|
331
331
|
panel__body
|
|
@@ -353,7 +353,7 @@ const un = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
353
353
|
[$, {
|
|
354
354
|
condition: i.overlay || i.fixedRight || i.float,
|
|
355
355
|
invisible: i.invisibleOverlay,
|
|
356
|
-
click:
|
|
356
|
+
click: d,
|
|
357
357
|
layer: i.overlayLayer || (i.float ? 60 : i.fixedRight ? 50 : 0)
|
|
358
358
|
}]
|
|
359
359
|
]) : y("", !0);
|
|
@@ -372,20 +372,20 @@ const Ae = /* @__PURE__ */ G(mn, [["__scopeId", "data-v-4271b4f1"]]), _n = { cla
|
|
|
372
372
|
},
|
|
373
373
|
emits: ["actionClick"],
|
|
374
374
|
setup(p, { emit: u }) {
|
|
375
|
-
Vt((
|
|
375
|
+
Vt((d) => ({
|
|
376
376
|
"036683e2": m.value.x,
|
|
377
377
|
"036683e0": m.value.y
|
|
378
378
|
}));
|
|
379
|
-
const a = u, t = Z(null), o = Z(!1),
|
|
379
|
+
const a = u, t = Z(null), o = Z(!1), c = (d) => d == null ? void 0 : d.filter((h) => {
|
|
380
380
|
if (h.roles) {
|
|
381
381
|
const i = re("user");
|
|
382
382
|
return ht(h.roles, i.currentUser.roles);
|
|
383
383
|
}
|
|
384
384
|
return !0;
|
|
385
|
-
}), r = (
|
|
385
|
+
}), r = (d, h) => {
|
|
386
386
|
const i = h && Ce(h);
|
|
387
|
-
|
|
388
|
-
action:
|
|
387
|
+
d.click && d.click(i), a("actionClick", {
|
|
388
|
+
action: d,
|
|
389
389
|
subject: i
|
|
390
390
|
}), o.value = !1;
|
|
391
391
|
}, m = X(() => {
|
|
@@ -394,17 +394,17 @@ const Ae = /* @__PURE__ */ G(mn, [["__scopeId", "data-v-4271b4f1"]]), _n = { cla
|
|
|
394
394
|
x: 0,
|
|
395
395
|
y: 0
|
|
396
396
|
};
|
|
397
|
-
const
|
|
397
|
+
const d = t.value.getBoundingClientRect().top, h = t.value.getBoundingClientRect().left, i = t.value.offsetHeight;
|
|
398
398
|
return {
|
|
399
399
|
_: o.value,
|
|
400
400
|
x: Math.floor(h) + "px",
|
|
401
|
-
y: Math.floor(
|
|
401
|
+
y: Math.floor(d + i) + "px"
|
|
402
402
|
};
|
|
403
403
|
});
|
|
404
|
-
return (
|
|
404
|
+
return (d, h) => {
|
|
405
405
|
const i = te("overlay");
|
|
406
406
|
return n(), s(x, null, [
|
|
407
|
-
Object.keys(
|
|
407
|
+
Object.keys(d.$slots).some((l) => l !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (n(), s("div", {
|
|
408
408
|
key: 0,
|
|
409
409
|
ref_key: "contextmenu",
|
|
410
410
|
ref: t,
|
|
@@ -414,7 +414,7 @@ const Ae = /* @__PURE__ */ G(mn, [["__scopeId", "data-v-4271b4f1"]]), _n = { cla
|
|
|
414
414
|
class: "contextmenu__trigger",
|
|
415
415
|
onClick: h[0] || (h[0] = (l) => o.value = !0)
|
|
416
416
|
}, [
|
|
417
|
-
C(
|
|
417
|
+
C(d.$slots, "default", de(ge({
|
|
418
418
|
visible: o.value
|
|
419
419
|
})), void 0, !0)
|
|
420
420
|
])
|
|
@@ -433,33 +433,33 @@ const Ae = /* @__PURE__ */ G(mn, [["__scopeId", "data-v-4271b4f1"]]), _n = { cla
|
|
|
433
433
|
}, {
|
|
434
434
|
default: f(() => [
|
|
435
435
|
A("div", _n, [
|
|
436
|
-
|
|
437
|
-
C(
|
|
436
|
+
d.$slots.header ? (n(), s("div", fn, [
|
|
437
|
+
C(d.$slots, "header", {}, void 0, !0)
|
|
438
438
|
])) : y("", !0),
|
|
439
|
-
Object.keys(
|
|
439
|
+
Object.keys(d.$slots).filter((l) => !["default", "extra", "header"].includes(l)).length > 0 ? (n(), s("div", {
|
|
440
440
|
key: 1,
|
|
441
441
|
class: "content__section",
|
|
442
442
|
onClick: h[1] || (h[1] = (l) => o.value = !1)
|
|
443
443
|
}, [
|
|
444
|
-
(n(!0), s(x, null, Q(Object.keys(
|
|
444
|
+
(n(!0), s(x, null, Q(Object.keys(d.$slots).filter((l) => !["default", "extra", "header"].includes(l)), (l, B) => (n(), k(ve, {
|
|
445
445
|
key: `slot-${B}`,
|
|
446
446
|
class: "content__item content__item--reactive"
|
|
447
447
|
}, {
|
|
448
448
|
default: f(() => [
|
|
449
|
-
C(
|
|
449
|
+
C(d.$slots, l, {}, void 0, !0)
|
|
450
450
|
]),
|
|
451
451
|
_: 2
|
|
452
452
|
}, 1024))), 128))
|
|
453
453
|
])) : y("", !0),
|
|
454
|
-
|
|
454
|
+
d.actions !== void 0 && d.actions.length > 0 ? (n(), s("div", {
|
|
455
455
|
key: 2,
|
|
456
456
|
class: "content__section",
|
|
457
457
|
onClick: h[2] || (h[2] = (l) => o.value = !1)
|
|
458
458
|
}, [
|
|
459
|
-
(n(!0), s(x, null, Q(d
|
|
459
|
+
(n(!0), s(x, null, Q(c(d.actions), (l, B) => (n(), k(ve, {
|
|
460
460
|
key: `action-${B}`,
|
|
461
461
|
class: "content__item content__item--reactive",
|
|
462
|
-
onClick: (v) => r(l,
|
|
462
|
+
onClick: (v) => r(l, d.subject)
|
|
463
463
|
}, {
|
|
464
464
|
default: f(() => [
|
|
465
465
|
l.icon ? (n(), k(J, {
|
|
@@ -475,13 +475,13 @@ const Ae = /* @__PURE__ */ G(mn, [["__scopeId", "data-v-4271b4f1"]]), _n = { cla
|
|
|
475
475
|
_: 2
|
|
476
476
|
}, 1032, ["onClick"]))), 128))
|
|
477
477
|
])) : y("", !0),
|
|
478
|
-
|
|
478
|
+
d.$slots.extra ? (n(), s("div", {
|
|
479
479
|
key: 3,
|
|
480
480
|
class: "content__section",
|
|
481
481
|
onClick: h[3] || (h[3] = (l) => o.value = !1)
|
|
482
482
|
}, [
|
|
483
483
|
A("div", vn, [
|
|
484
|
-
|
|
484
|
+
d.$slots.extra ? C(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
|
|
485
485
|
])
|
|
486
486
|
])) : y("", !0)
|
|
487
487
|
])
|
|
@@ -491,7 +491,7 @@ const Ae = /* @__PURE__ */ G(mn, [["__scopeId", "data-v-4271b4f1"]]), _n = { cla
|
|
|
491
491
|
[
|
|
492
492
|
i,
|
|
493
493
|
{
|
|
494
|
-
layer:
|
|
494
|
+
layer: d.overlayLayer,
|
|
495
495
|
click: () => {
|
|
496
496
|
o.value = !1;
|
|
497
497
|
}
|
|
@@ -515,7 +515,7 @@ const Oe = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-a03802b2"]]), bn = { cla
|
|
|
515
515
|
return (t, o) => e(u).md ? (n(), s("div", {
|
|
516
516
|
key: 0,
|
|
517
517
|
class: "info",
|
|
518
|
-
onMouseleave: o[1] || (o[1] = (
|
|
518
|
+
onMouseleave: o[1] || (o[1] = (c) => a.value = !1)
|
|
519
519
|
}, [
|
|
520
520
|
a.value ? (n(), s("div", {
|
|
521
521
|
key: 0,
|
|
@@ -529,7 +529,7 @@ const Oe = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-a03802b2"]]), bn = { cla
|
|
|
529
529
|
])
|
|
530
530
|
], 2)) : y("", !0),
|
|
531
531
|
A("div", {
|
|
532
|
-
onMouseover: o[0] || (o[0] = (
|
|
532
|
+
onMouseover: o[0] || (o[0] = (c) => a.value = !0)
|
|
533
533
|
}, [
|
|
534
534
|
C(t.$slots, "default", {}, void 0, !0)
|
|
535
535
|
], 32)
|
|
@@ -559,9 +559,9 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-7e2a5440"]]), gn = { cla
|
|
|
559
559
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
560
560
|
setup(p, { emit: u }) {
|
|
561
561
|
var ee;
|
|
562
|
-
const a = p, t = u, o = a.property || {},
|
|
562
|
+
const a = p, t = u, o = a.property || {}, c = "icon" in o || "inputType" in o && o.inputType === "search", r = me("searchOnly", !1), m = me("innerInputLabel", !1), d = !r && (a.readOnly || o.readOnly), h = (b) => (t("clipboardCopy", b), navigator.clipboard.writeText(b)), i = me("inputVariant", a.variant) || "normal", l = Object.assign(Object.assign({}, a), {
|
|
563
563
|
name: a.propertyName,
|
|
564
|
-
readonly:
|
|
564
|
+
readonly: d,
|
|
565
565
|
type: (() => {
|
|
566
566
|
if ("type" in o)
|
|
567
567
|
switch (o.type) {
|
|
@@ -695,15 +695,15 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-7e2a5440"]]), gn = { cla
|
|
|
695
695
|
class: `
|
|
696
696
|
input__input
|
|
697
697
|
input__input--${e(i)}
|
|
698
|
-
${e(
|
|
699
|
-
${e(
|
|
698
|
+
${e(c) && "input__input--icon"}
|
|
699
|
+
${e(d) && "input__input--readOnly"}
|
|
700
700
|
`,
|
|
701
701
|
onInput: Y,
|
|
702
702
|
onChange: F[0] || (F[0] = (g) => t("change", g))
|
|
703
703
|
}), null, 16, On), [
|
|
704
704
|
[le, e(o).focus]
|
|
705
705
|
]),
|
|
706
|
-
e(
|
|
706
|
+
e(c) ? (n(), k(J, {
|
|
707
707
|
key: 0,
|
|
708
708
|
icon: e(o).icon || "magnifying-glass",
|
|
709
709
|
class: K(`
|
|
@@ -711,16 +711,16 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-7e2a5440"]]), gn = { cla
|
|
|
711
711
|
input__icon--${e(i)}
|
|
712
712
|
`)
|
|
713
713
|
}, null, 8, ["icon", "class"])) : y("", !0),
|
|
714
|
-
e(
|
|
715
|
-
|
|
714
|
+
e(d) ? (n(), s("div", In, [
|
|
715
|
+
q($n, null, {
|
|
716
716
|
text: f(() => F[2] || (F[2] = [
|
|
717
717
|
D("Copiar")
|
|
718
718
|
])),
|
|
719
719
|
default: f(() => [
|
|
720
|
-
P(
|
|
720
|
+
P(q(J, {
|
|
721
721
|
reactive: "",
|
|
722
722
|
icon: "clipboard",
|
|
723
|
-
onClick: F[1] || (F[1] =
|
|
723
|
+
onClick: F[1] || (F[1] = qe((g) => h(String(b.modelValue || "")), ["prevent"]))
|
|
724
724
|
}, null, 512), [
|
|
725
725
|
[T]
|
|
726
726
|
])
|
|
@@ -751,11 +751,11 @@ const ke = /* @__PURE__ */ G(An, [["__scopeId", "data-v-f57af0a6"]]), Bn = {
|
|
|
751
751
|
},
|
|
752
752
|
emits: ["update:modelValue", "change"],
|
|
753
753
|
setup(p, { emit: u }) {
|
|
754
|
-
const a = p, t = u, o = Z(null),
|
|
754
|
+
const a = p, t = u, o = Z(null), c = a.property, r = (i) => {
|
|
755
755
|
t("update:modelValue", i), t("change", i);
|
|
756
756
|
}, m = (i) => {
|
|
757
|
-
i === "" || i ===
|
|
758
|
-
},
|
|
757
|
+
i === "" || i === null ? r(null) : a.booleanRef ? r(i === "true") : r(i);
|
|
758
|
+
}, d = (i) => Array.isArray(a.modelValue) ? a.modelValue.includes(i) : a.modelValue === i, h = X(() => a.multiple ? typeof a.multiple == "number" ? a.multiple : 5 : 1);
|
|
759
759
|
return a.multiple && ue(() => a.modelValue, (i) => {
|
|
760
760
|
var B;
|
|
761
761
|
if (!o.value)
|
|
@@ -779,27 +779,27 @@ const ke = /* @__PURE__ */ G(An, [["__scopeId", "data-v-f57af0a6"]]), Bn = {
|
|
|
779
779
|
},
|
|
780
780
|
onChange: l[0] || (l[0] = (B) => m(B.target.value))
|
|
781
781
|
}), [
|
|
782
|
-
e(
|
|
782
|
+
e(c) && e(c).icon ? (n(), k(J, {
|
|
783
783
|
key: 0,
|
|
784
|
-
icon: e(
|
|
784
|
+
icon: e(c).icon
|
|
785
785
|
}, null, 8, ["icon"])) : y("", !0),
|
|
786
786
|
a.multiple ? y("", !0) : (n(), s("option", Bn, V(e(R)("none")), 1)),
|
|
787
|
-
(n(!0), s(x, null, Q(e(
|
|
787
|
+
(n(!0), s(x, null, Q(e(c) && "enum" in e(c) ? e(c).enum : [], (B) => {
|
|
788
788
|
var v;
|
|
789
789
|
return n(), s("option", {
|
|
790
790
|
key: B,
|
|
791
791
|
value: B,
|
|
792
|
-
"data-selected":
|
|
793
|
-
}, V((v = e(
|
|
792
|
+
"data-selected": d(B)
|
|
793
|
+
}, V((v = e(c)) != null && v.translate ? e(R)(B) : B), 9, wn);
|
|
794
794
|
}), 128)),
|
|
795
795
|
C(i.$slots, "default", {}, void 0, !0)
|
|
796
796
|
], 16));
|
|
797
797
|
}
|
|
798
798
|
});
|
|
799
|
-
const Ze = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-
|
|
799
|
+
const Ze = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-8d39a17e"]]), Tn = { class: "pagination" }, jn = { class: "pagination__arrows" }, Rn = ["value"], Ln = {
|
|
800
800
|
key: 0,
|
|
801
801
|
class: "pagination__summary"
|
|
802
|
-
},
|
|
802
|
+
}, qn = /* @__PURE__ */ U({
|
|
803
803
|
__name: "aeria-pagination",
|
|
804
804
|
props: {
|
|
805
805
|
pagination: {},
|
|
@@ -812,63 +812,63 @@ const Ze = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-4fbb33d3"]]), Tn = { cla
|
|
|
812
812
|
set: (h) => {
|
|
813
813
|
a.pagination.offset = h * a.pagination.limit;
|
|
814
814
|
}
|
|
815
|
-
}),
|
|
815
|
+
}), c = X({
|
|
816
816
|
get: () => a.pagination.limit,
|
|
817
817
|
set: (h) => {
|
|
818
818
|
a.pagination.limit = Number(h);
|
|
819
819
|
}
|
|
820
|
-
}), r = Z(o.value ? o.value + 1 : 1), m = X(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)),
|
|
820
|
+
}), r = Z(o.value ? o.value + 1 : 1), m = X(() => Math.ceil(a.pagination.recordsTotal / a.pagination.limit)), d = (h) => {
|
|
821
821
|
o.value = h === "previous" ? o.value - 1 : o.value + 1;
|
|
822
822
|
};
|
|
823
823
|
return ue([
|
|
824
824
|
o,
|
|
825
|
-
|
|
825
|
+
c
|
|
826
826
|
], ([h]) => {
|
|
827
827
|
r.value = h + 1, t("paginate", {
|
|
828
|
-
offset: o.value *
|
|
829
|
-
limit:
|
|
828
|
+
offset: o.value * c.value,
|
|
829
|
+
limit: c.value
|
|
830
830
|
});
|
|
831
831
|
}), (h, i) => (n(), s("div", Tn, [
|
|
832
832
|
A("div", jn, [
|
|
833
|
-
|
|
833
|
+
q(ve, {
|
|
834
834
|
disabled: o.value === 0,
|
|
835
835
|
onClick: i[0] || (i[0] = (l) => o.value = 0)
|
|
836
836
|
}, {
|
|
837
837
|
default: f(() => [
|
|
838
|
-
|
|
838
|
+
q(J, { icon: "caret-double-left" })
|
|
839
839
|
]),
|
|
840
840
|
_: 1
|
|
841
841
|
}, 8, ["disabled"]),
|
|
842
|
-
|
|
842
|
+
q(ve, {
|
|
843
843
|
disabled: o.value === 0,
|
|
844
|
-
onClick: i[1] || (i[1] = (l) =>
|
|
844
|
+
onClick: i[1] || (i[1] = (l) => d("previous"))
|
|
845
845
|
}, {
|
|
846
846
|
default: f(() => [
|
|
847
|
-
|
|
847
|
+
q(J, { icon: "caret-left" })
|
|
848
848
|
]),
|
|
849
849
|
_: 1
|
|
850
850
|
}, 8, ["disabled"]),
|
|
851
|
-
|
|
851
|
+
q(ve, {
|
|
852
852
|
disabled: o.value === m.value - 1,
|
|
853
|
-
onClick: i[2] || (i[2] = (l) =>
|
|
853
|
+
onClick: i[2] || (i[2] = (l) => d("next"))
|
|
854
854
|
}, {
|
|
855
855
|
default: f(() => [
|
|
856
|
-
|
|
856
|
+
q(J, { icon: "caret-right" })
|
|
857
857
|
]),
|
|
858
858
|
_: 1
|
|
859
859
|
}, 8, ["disabled"]),
|
|
860
|
-
|
|
860
|
+
q(ve, {
|
|
861
861
|
disabled: o.value === m.value - 1,
|
|
862
862
|
onClick: i[3] || (i[3] = (l) => o.value = m.value - 1)
|
|
863
863
|
}, {
|
|
864
864
|
default: f(() => [
|
|
865
|
-
|
|
865
|
+
q(J, { icon: "caret-double-right" })
|
|
866
866
|
]),
|
|
867
867
|
_: 1
|
|
868
868
|
}, 8, ["disabled"]),
|
|
869
|
-
|
|
870
|
-
modelValue:
|
|
871
|
-
"onUpdate:modelValue": i[4] || (i[4] = (l) =>
|
|
869
|
+
q(Ze, {
|
|
870
|
+
modelValue: c.value,
|
|
871
|
+
"onUpdate:modelValue": i[4] || (i[4] = (l) => c.value = l),
|
|
872
872
|
property: {
|
|
873
873
|
enum: [],
|
|
874
874
|
icon: "list"
|
|
@@ -876,7 +876,7 @@ const Ze = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-4fbb33d3"]]), Tn = { cla
|
|
|
876
876
|
class: "pagination__control"
|
|
877
877
|
}, {
|
|
878
878
|
default: f(() => [
|
|
879
|
-
(n(!0), s(x, null, Q(e(
|
|
879
|
+
(n(!0), s(x, null, Q(e(qt), (l) => (n(), s("option", {
|
|
880
880
|
key: `limit-${l}`,
|
|
881
881
|
value: l
|
|
882
882
|
}, V(l), 9, Rn))), 128))
|
|
@@ -904,7 +904,7 @@ const Ze = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-4fbb33d3"]]), Tn = { cla
|
|
|
904
904
|
]));
|
|
905
905
|
}
|
|
906
906
|
});
|
|
907
|
-
const
|
|
907
|
+
const zn = /* @__PURE__ */ G(qn, [["__scopeId", "data-v-ae7235de"]]), Mn = { class: "checkbox__text" }, Fn = ["innerHTML"], Un = { class: "checkbox__hint" }, En = ["innerHTML"], Hn = {
|
|
908
908
|
inheritAttrs: !1
|
|
909
909
|
}, Dn = /* @__PURE__ */ U({
|
|
910
910
|
...Hn,
|
|
@@ -921,7 +921,7 @@ const qn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-ae7235de"]]), Mn = { cla
|
|
|
921
921
|
},
|
|
922
922
|
emits: ["update:modelValue", "change"],
|
|
923
923
|
setup(p, { emit: u }) {
|
|
924
|
-
const a = p, t = a.property, o = a.readOnly || (t == null ? void 0 : t.readOnly),
|
|
924
|
+
const a = p, t = a.property, o = a.readOnly || (t == null ? void 0 : t.readOnly), c = (() => {
|
|
925
925
|
if (t && "type" in t)
|
|
926
926
|
switch (t.type) {
|
|
927
927
|
case "array":
|
|
@@ -929,7 +929,7 @@ const qn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-ae7235de"]]), Mn = { cla
|
|
|
929
929
|
return "checkbox";
|
|
930
930
|
}
|
|
931
931
|
return "radio";
|
|
932
|
-
})(), r = u, m = a.value || !1,
|
|
932
|
+
})(), r = u, m = a.value || !1, d = X({
|
|
933
933
|
get: () => {
|
|
934
934
|
var i;
|
|
935
935
|
if (t) {
|
|
@@ -973,16 +973,16 @@ const qn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-ae7235de"]]), Mn = { cla
|
|
|
973
973
|
`)
|
|
974
974
|
}, [
|
|
975
975
|
P(A("input", E({
|
|
976
|
-
"onUpdate:modelValue": l[0] || (l[0] = (S) =>
|
|
976
|
+
"onUpdate:modelValue": l[0] || (l[0] = (S) => d.value = S)
|
|
977
977
|
}, {
|
|
978
|
-
type: e(
|
|
978
|
+
type: e(c),
|
|
979
979
|
readOnly: e(o),
|
|
980
|
-
checked:
|
|
980
|
+
checked: d.value
|
|
981
981
|
}, {
|
|
982
982
|
class: "checkbox__input",
|
|
983
983
|
onClick: h
|
|
984
984
|
}), null, 16), [
|
|
985
|
-
[Ct,
|
|
985
|
+
[Ct, d.value]
|
|
986
986
|
]),
|
|
987
987
|
A("div", Mn, [
|
|
988
988
|
A("div", null, [
|
|
@@ -1020,7 +1020,7 @@ const Qn = /* @__PURE__ */ G(Dn, [["__scopeId", "data-v-b9da4354"]]), Gn = {
|
|
|
1020
1020
|
},
|
|
1021
1021
|
emits: ["update:modelValue"],
|
|
1022
1022
|
setup(p, { emit: u }) {
|
|
1023
|
-
const a = p, t = u, o = a.readOnly || a.property.readOnly,
|
|
1023
|
+
const a = p, t = u, o = a.readOnly || a.property.readOnly, c = "items" in a.property ? a.property.items.enum : a.property.enum, r = (m) => {
|
|
1024
1024
|
t("update:modelValue", m);
|
|
1025
1025
|
};
|
|
1026
1026
|
return bt(() => {
|
|
@@ -1028,18 +1028,18 @@ const Qn = /* @__PURE__ */ G(Dn, [["__scopeId", "data-v-b9da4354"]]), Gn = {
|
|
|
1028
1028
|
"update:modelValue",
|
|
1029
1029
|
"items" in a.property ? [] : ""
|
|
1030
1030
|
);
|
|
1031
|
-
}), (m,
|
|
1031
|
+
}), (m, d) => (n(), s("div", {
|
|
1032
1032
|
class: "options",
|
|
1033
1033
|
style: he(`
|
|
1034
1034
|
--columns: ${m.columns};
|
|
1035
1035
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1036
1036
|
`)
|
|
1037
1037
|
}, [
|
|
1038
|
-
(n(!0), s(x, null, Q(e(
|
|
1038
|
+
(n(!0), s(x, null, Q(e(c), (h) => (n(), s("div", {
|
|
1039
1039
|
key: `option-${h}`,
|
|
1040
1040
|
class: "options__checkbox"
|
|
1041
1041
|
}, [
|
|
1042
|
-
|
|
1042
|
+
q(Qn, E({ ref_for: !0 }, {
|
|
1043
1043
|
value: h,
|
|
1044
1044
|
readOnly: e(o),
|
|
1045
1045
|
property: m.property
|
|
@@ -1066,10 +1066,10 @@ const Kn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-790d73bb"]]), Xn = { cla
|
|
|
1066
1066
|
},
|
|
1067
1067
|
emits: ["update:modelValue", "change"],
|
|
1068
1068
|
setup(p, { emit: u }) {
|
|
1069
|
-
const a = p, t = u, o = a.property,
|
|
1070
|
-
|
|
1069
|
+
const a = p, t = u, o = a.property, c = a.readOnly || (o == null ? void 0 : o.readOnly), r = () => {
|
|
1070
|
+
c || (t("change", !a.modelValue), t("update:modelValue", !a.modelValue));
|
|
1071
1071
|
};
|
|
1072
|
-
return (m,
|
|
1072
|
+
return (m, d) => {
|
|
1073
1073
|
var i;
|
|
1074
1074
|
const h = te("clickable");
|
|
1075
1075
|
return n(), s("div", Xn, [
|
|
@@ -1077,11 +1077,11 @@ const Kn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-790d73bb"]]), Xn = { cla
|
|
|
1077
1077
|
class: K(`
|
|
1078
1078
|
switch
|
|
1079
1079
|
${m.modelValue && "switch--active"}
|
|
1080
|
-
${e(
|
|
1080
|
+
${e(c) && "switch--readOnly"}
|
|
1081
1081
|
`),
|
|
1082
|
-
onClick:
|
|
1082
|
+
onClick: qe(r, ["stop"])
|
|
1083
1083
|
}, [
|
|
1084
|
-
|
|
1084
|
+
d[0] || (d[0] = A("div", { class: "switch__slider" }, null, -1)),
|
|
1085
1085
|
A("div", {
|
|
1086
1086
|
class: K(`
|
|
1087
1087
|
switch__dummy
|
|
@@ -1090,7 +1090,7 @@ const Kn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-790d73bb"]]), Xn = { cla
|
|
|
1090
1090
|
}, null, 2)
|
|
1091
1091
|
], 2)), [
|
|
1092
1092
|
[h, {
|
|
1093
|
-
blocked: e(
|
|
1093
|
+
blocked: e(c)
|
|
1094
1094
|
}]
|
|
1095
1095
|
]),
|
|
1096
1096
|
m.$slots.default ? C(m.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div", Yn, V(((i = e(o)) == null ? void 0 : i.description) || m.propertyName), 1))
|
|
@@ -1117,7 +1117,7 @@ const Pn = /* @__PURE__ */ G(Zn, [["__scopeId", "data-v-0e3564b6"]]), Nn = { cla
|
|
|
1117
1117
|
},
|
|
1118
1118
|
setup(p) {
|
|
1119
1119
|
const u = p, a = X(() => u.fileId ? `${$t}/file/${u.fileId}/picture` : u.url || u.modelValue), t = Z(!1);
|
|
1120
|
-
return (o,
|
|
1120
|
+
return (o, c) => {
|
|
1121
1121
|
var m;
|
|
1122
1122
|
const r = te("overlay");
|
|
1123
1123
|
return n(), s("figure", Nn, [
|
|
@@ -1133,7 +1133,7 @@ const Pn = /* @__PURE__ */ G(Zn, [["__scopeId", "data-v-0e3564b6"]]), Nn = { cla
|
|
|
1133
1133
|
max-height: 60vh;
|
|
1134
1134
|
object-fit: contain;
|
|
1135
1135
|
`,
|
|
1136
|
-
onClick:
|
|
1136
|
+
onClick: c[0] || (c[0] = (d) => t.value = !0)
|
|
1137
1137
|
}, null, 8, eo),
|
|
1138
1138
|
(m = o.meta) != null && m.owner ? (n(), s("div", to, V(o.t("created_by")) + " " + V(o.meta.owner.name) + " em " + V(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : y("", !0)
|
|
1139
1139
|
])), [
|
|
@@ -1157,7 +1157,7 @@ const Pn = /* @__PURE__ */ G(Zn, [["__scopeId", "data-v-0e3564b6"]]), Nn = { cla
|
|
|
1157
1157
|
width: ${o.width || "100%"};
|
|
1158
1158
|
height: ${o.height || "100%"};
|
|
1159
1159
|
`),
|
|
1160
|
-
onClick:
|
|
1160
|
+
onClick: c[1] || (c[1] = () => {
|
|
1161
1161
|
o.expandable && (t.value = !0);
|
|
1162
1162
|
})
|
|
1163
1163
|
}, null, 14, no)) : o.$slots.fallback ? C(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? C(o.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
|
|
@@ -1173,7 +1173,7 @@ const Pn = /* @__PURE__ */ G(Zn, [["__scopeId", "data-v-0e3564b6"]]), Nn = { cla
|
|
|
1173
1173
|
width: ${o.width || "100%"};
|
|
1174
1174
|
height: ${o.height || "100%"};
|
|
1175
1175
|
`)
|
|
1176
|
-
},
|
|
1176
|
+
}, c[2] || (c[2] = [
|
|
1177
1177
|
A("line", {
|
|
1178
1178
|
x1: "0",
|
|
1179
1179
|
y1: "0",
|
|
@@ -1222,10 +1222,10 @@ const He = /* @__PURE__ */ G(ao, [["__scopeId", "data-v-0b7b8d96"]]), lo = { cla
|
|
|
1222
1222
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1223
1223
|
setup(p, { emit: u }) {
|
|
1224
1224
|
var v;
|
|
1225
|
-
const a = p, t = u,
|
|
1225
|
+
const a = p, t = u, c = Me() ? De() : null, r = Z(((v = a.modelValue) == null ? void 0 : v.file) || null), m = X(() => {
|
|
1226
1226
|
var $;
|
|
1227
1227
|
return r.value ? URL.createObjectURL(r.value) : ($ = a.modelValue) == null ? void 0 : $.link;
|
|
1228
|
-
}),
|
|
1228
|
+
}), d = X(() => {
|
|
1229
1229
|
var $, S, O;
|
|
1230
1230
|
return /^image\//.test(($ = a.modelValue) == null ? void 0 : $.type) && !((S = r.value) != null && S.type) || /^image\//.test((O = r.value) == null ? void 0 : O.type);
|
|
1231
1231
|
}), h = ($) => new Promise((S) => {
|
|
@@ -1236,8 +1236,8 @@ const He = /* @__PURE__ */ G(ao, [["__scopeId", "data-v-0b7b8d96"]]), lo = { cla
|
|
|
1236
1236
|
}, l = async ($) => {
|
|
1237
1237
|
r.value = $.target.files[0];
|
|
1238
1238
|
const S = r.value, O = await h(S);
|
|
1239
|
-
if (
|
|
1240
|
-
const { data: { error: Y, result: ee } } = await
|
|
1239
|
+
if (c) {
|
|
1240
|
+
const { data: { error: Y, result: ee } } = await zt(`${$t}/${c.$id}/upload?name=${S.name}`, O, {
|
|
1241
1241
|
params: {
|
|
1242
1242
|
method: "POST",
|
|
1243
1243
|
headers: {
|
|
@@ -1262,7 +1262,7 @@ const He = /* @__PURE__ */ G(ao, [["__scopeId", "data-v-0b7b8d96"]]), lo = { cla
|
|
|
1262
1262
|
var O, Y, ee, b, F, le;
|
|
1263
1263
|
return n(), s("div", lo, [
|
|
1264
1264
|
r.value || (O = $.modelValue) != null && O._id ? (n(), s("div", so, [
|
|
1265
|
-
|
|
1265
|
+
d.value ? (n(), k(He, {
|
|
1266
1266
|
key: 0,
|
|
1267
1267
|
modelValue: m.value,
|
|
1268
1268
|
"onUpdate:modelValue": S[0] || (S[0] = (T) => m.value = T),
|
|
@@ -1270,7 +1270,7 @@ const He = /* @__PURE__ */ G(ao, [["__scopeId", "data-v-0b7b8d96"]]), lo = { cla
|
|
|
1270
1270
|
expandable: $.readOnly,
|
|
1271
1271
|
class: K(`
|
|
1272
1272
|
file__image
|
|
1273
|
-
${!e(
|
|
1273
|
+
${!e(c) || ((Y = $.modelValue) == null ? void 0 : Y._id) || "file__image--unsent"}
|
|
1274
1274
|
`)
|
|
1275
1275
|
}, null, 8, ["modelValue", "expandable", "class"])) : y("", !0),
|
|
1276
1276
|
(ee = $.modelValue) != null && ee._id ? (n(), s("a", {
|
|
@@ -1286,9 +1286,9 @@ const He = /* @__PURE__ */ G(ao, [["__scopeId", "data-v-0b7b8d96"]]), lo = { cla
|
|
|
1286
1286
|
onChange: l
|
|
1287
1287
|
}, null, 40, uo),
|
|
1288
1288
|
r.value ? (n(), s("div", co, [
|
|
1289
|
-
|
|
1289
|
+
q(ie, {
|
|
1290
1290
|
small: "",
|
|
1291
|
-
onClick:
|
|
1291
|
+
onClick: qe(i, ["prevent"])
|
|
1292
1292
|
}, {
|
|
1293
1293
|
default: f(() => [
|
|
1294
1294
|
D(V(e(R)("action.clear", { capitalize: !0 })), 1)
|
|
@@ -1296,9 +1296,9 @@ const He = /* @__PURE__ */ G(ao, [["__scopeId", "data-v-0b7b8d96"]]), lo = { cla
|
|
|
1296
1296
|
_: 1
|
|
1297
1297
|
})
|
|
1298
1298
|
])) : (le = $.modelValue) != null && le._id ? (n(), s("div", po, [
|
|
1299
|
-
|
|
1299
|
+
q(ie, {
|
|
1300
1300
|
small: "",
|
|
1301
|
-
onClick:
|
|
1301
|
+
onClick: qe(B, ["prevent"])
|
|
1302
1302
|
}, {
|
|
1303
1303
|
default: f(() => [
|
|
1304
1304
|
D(V(e(R)("action.remove", { capitalize: !0 })), 1)
|
|
@@ -1321,10 +1321,10 @@ const _o = /* @__PURE__ */ G(mo, [["__scopeId", "data-v-d491b7ce"]]), fo = { cla
|
|
|
1321
1321
|
},
|
|
1322
1322
|
emits: ["endReached"],
|
|
1323
1323
|
setup(p, { emit: u }) {
|
|
1324
|
-
const a = p, t = u, o = Z(null),
|
|
1324
|
+
const a = p, t = u, o = Z(null), c = a.observeScroll ? Je(o, {
|
|
1325
1325
|
antecipate: 100
|
|
1326
1326
|
}).reachedEnd : null;
|
|
1327
|
-
return
|
|
1327
|
+
return c !== null && ue(c, (r) => {
|
|
1328
1328
|
r && t("endReached", r);
|
|
1329
1329
|
}), (r, m) => (n(), s("div", fo, [
|
|
1330
1330
|
r.$slots.default ? (n(), s("div", {
|
|
@@ -1352,10 +1352,10 @@ const mt = /* @__PURE__ */ G(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { cla
|
|
|
1352
1352
|
},
|
|
1353
1353
|
emits: ["update:modelValue", "change"],
|
|
1354
1354
|
setup(p, { emit: u }) {
|
|
1355
|
-
const a = Ie(), t = p, o = u,
|
|
1356
|
-
if (
|
|
1355
|
+
const a = Ie(), t = p, o = u, c = t.property, r = _e(c), m = De(), d = X(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: B }) => t.item._id === B) : t.modelValue && t.modelValue._id === t.item._id), h = () => {
|
|
1356
|
+
if (d.value)
|
|
1357
1357
|
return;
|
|
1358
|
-
const B = ($) => $.filter((S) => !!(S != null && S._id)), v = "items" in
|
|
1358
|
+
const B = ($) => $.filter((S) => !!(S != null && S._id)), v = "items" in c ? B(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
|
|
1359
1359
|
Array.isArray(v) ? o("update:modelValue", v.concat([t.item])) : o("update:modelValue", t.item), o("change", t.item);
|
|
1360
1360
|
}, i = async (B) => {
|
|
1361
1361
|
if (r.purge && (B != null && B.purge)) {
|
|
@@ -1370,7 +1370,7 @@ const mt = /* @__PURE__ */ G(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { cla
|
|
|
1370
1370
|
const $ = Array.isArray(t.modelValue) ? Array.from(t.modelValue) : [], S = $.findIndex((O) => O._id === t.item._id);
|
|
1371
1371
|
return $.splice(S, 1), $;
|
|
1372
1372
|
};
|
|
1373
|
-
o("update:modelValue", "items" in
|
|
1373
|
+
o("update:modelValue", "items" in c ? v() : null);
|
|
1374
1374
|
}, l = () => {
|
|
1375
1375
|
if (t.readOnly) {
|
|
1376
1376
|
a.push({
|
|
@@ -1378,14 +1378,14 @@ const mt = /* @__PURE__ */ G(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { cla
|
|
|
1378
1378
|
});
|
|
1379
1379
|
return;
|
|
1380
1380
|
}
|
|
1381
|
-
return
|
|
1381
|
+
return d.value ? i() : h();
|
|
1382
1382
|
};
|
|
1383
1383
|
return (B, v) => {
|
|
1384
1384
|
const $ = te("clickable");
|
|
1385
1385
|
return P((n(), s("div", {
|
|
1386
1386
|
class: K({
|
|
1387
1387
|
item: !0,
|
|
1388
|
-
"item--selected":
|
|
1388
|
+
"item--selected": d.value
|
|
1389
1389
|
}),
|
|
1390
1390
|
onClick: l
|
|
1391
1391
|
}, [
|
|
@@ -1424,7 +1424,7 @@ const Ge = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-3b5a7221"]]), $o = { cla
|
|
|
1424
1424
|
},
|
|
1425
1425
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1426
1426
|
setup(p, { emit: u }) {
|
|
1427
|
-
const a = p, t = _e(a.property), o = a.panel !== void 0 ? X(() => a.panel) : Z(!1),
|
|
1427
|
+
const a = p, t = _e(a.property), o = a.panel !== void 0 ? X(() => a.panel) : Z(!1), c = u, r = re(_e(a.property).$ref), m = Me(), d = m ? De() : null, h = t.indexes;
|
|
1428
1428
|
ye(Fe, _e(a.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
|
|
1429
1429
|
const i = Z(a.modelValue), l = Z({
|
|
1430
1430
|
data: [],
|
|
@@ -1433,9 +1433,9 @@ const Ge = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-3b5a7221"]]), $o = { cla
|
|
|
1433
1433
|
const M = {};
|
|
1434
1434
|
if (m) {
|
|
1435
1435
|
const H = e(m);
|
|
1436
|
-
M[H] =
|
|
1436
|
+
M[H] = d;
|
|
1437
1437
|
}
|
|
1438
|
-
return t.constraints ?
|
|
1438
|
+
return t.constraints ? Dt(t.constraints, M) : {};
|
|
1439
1439
|
}, ee = () => {
|
|
1440
1440
|
B.value.length < v.value.recordsTotal && ($.value += 1, F());
|
|
1441
1441
|
}, b = async () => O.value.length === 0 ? r.$actions.custom("getAll", {
|
|
@@ -1471,9 +1471,9 @@ const Ge = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-3b5a7221"]]), $o = { cla
|
|
|
1471
1471
|
}), T = () => {
|
|
1472
1472
|
S.value = !0, le();
|
|
1473
1473
|
}, g = () => {
|
|
1474
|
-
"effect" in o ?
|
|
1474
|
+
"effect" in o ? c("update:panel", !0) : o.value = !0, F();
|
|
1475
1475
|
}, j = () => {
|
|
1476
|
-
$.value = 0, l.value.data.splice(0), "effect" in o ?
|
|
1476
|
+
$.value = 0, l.value.data.splice(0), "effect" in o ? c("update:panel", !1) : o.value = !1;
|
|
1477
1477
|
};
|
|
1478
1478
|
ue(() => O.value.length, (M, H) => {
|
|
1479
1479
|
M && !H && F();
|
|
@@ -1481,9 +1481,9 @@ const Ge = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-3b5a7221"]]), $o = { cla
|
|
|
1481
1481
|
a.selectOnly && F();
|
|
1482
1482
|
});
|
|
1483
1483
|
const ne = (M) => {
|
|
1484
|
-
i.value = M, a.selectOnly ||
|
|
1484
|
+
i.value = M, a.selectOnly || c("update:modelValue", M);
|
|
1485
1485
|
}, oe = () => {
|
|
1486
|
-
j(),
|
|
1486
|
+
j(), c("update:modelValue", i.value);
|
|
1487
1487
|
};
|
|
1488
1488
|
return (M, H) => {
|
|
1489
1489
|
const se = te("clickable");
|
|
@@ -1492,7 +1492,7 @@ const Ge = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-3b5a7221"]]), $o = { cla
|
|
|
1492
1492
|
key: 0,
|
|
1493
1493
|
to: "main"
|
|
1494
1494
|
}, [
|
|
1495
|
-
|
|
1495
|
+
q(Ae, {
|
|
1496
1496
|
float: "",
|
|
1497
1497
|
"close-hint": "",
|
|
1498
1498
|
title: `${e(R)("action.select", { capitalize: !0 })} ${e(R)(M.propertyName)}`,
|
|
@@ -1503,7 +1503,7 @@ const Ge = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-3b5a7221"]]), $o = { cla
|
|
|
1503
1503
|
onOverlayClick: j
|
|
1504
1504
|
}, {
|
|
1505
1505
|
footer: f(() => [
|
|
1506
|
-
|
|
1506
|
+
q(ie, {
|
|
1507
1507
|
large: "",
|
|
1508
1508
|
onClick: oe
|
|
1509
1509
|
}, {
|
|
@@ -1517,7 +1517,7 @@ const Ge = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-3b5a7221"]]), $o = { cla
|
|
|
1517
1517
|
var ae, _;
|
|
1518
1518
|
return [
|
|
1519
1519
|
A("div", $o, [
|
|
1520
|
-
|
|
1520
|
+
q(ke, E({
|
|
1521
1521
|
modelValue: O.value,
|
|
1522
1522
|
"onUpdate:modelValue": H[0] || (H[0] = (L) => O.value = L)
|
|
1523
1523
|
}, {
|
|
@@ -1555,7 +1555,7 @@ const Ge = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-3b5a7221"]]), $o = { cla
|
|
|
1555
1555
|
}, 8, ["title", "model-value"])
|
|
1556
1556
|
])) : y("", !0),
|
|
1557
1557
|
M.selectOnly ? y("", !0) : (n(), s("div", Oo, [
|
|
1558
|
-
|
|
1558
|
+
q(mt, null, ce({
|
|
1559
1559
|
default: f(() => {
|
|
1560
1560
|
var ae;
|
|
1561
1561
|
return [
|
|
@@ -1626,16 +1626,16 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1626
1626
|
if (p.element === "select")
|
|
1627
1627
|
return "select";
|
|
1628
1628
|
}
|
|
1629
|
-
const
|
|
1630
|
-
return
|
|
1629
|
+
const c = _e(p);
|
|
1630
|
+
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in p && p.uniqueItems ? "options" : "enum" in a ? "select" : "input";
|
|
1631
1631
|
})();
|
|
1632
1632
|
return u[o] ? u[o] : t[o];
|
|
1633
1633
|
}, wo = (p, u, a) => {
|
|
1634
1634
|
p ?? (p = []);
|
|
1635
1635
|
const t = "items" in u ? u.items : u;
|
|
1636
1636
|
if ("$ref" in t) {
|
|
1637
|
-
const o = re(t.$ref, a),
|
|
1638
|
-
return p.push(
|
|
1637
|
+
const o = re(t.$ref, a), c = Ce(o.$freshItem);
|
|
1638
|
+
return p.push(c);
|
|
1639
1639
|
}
|
|
1640
1640
|
return "properties" in t ? p.push(jt(t)) : "type" in t && t.type === "boolean" ? p.push({}) : p.push(null);
|
|
1641
1641
|
}, So = (p, u) => {
|
|
@@ -1643,7 +1643,7 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1643
1643
|
}, To = {
|
|
1644
1644
|
key: 0,
|
|
1645
1645
|
class: "form__header"
|
|
1646
|
-
}, jo = { class: "form__fieldset" }, Ro = { key: 0 }, Lo = ["innerHTML"],
|
|
1646
|
+
}, jo = { class: "form__fieldset" }, Ro = { key: 0 }, Lo = ["innerHTML"], qo = ["onInput"], zo = { key: 4 }, Mo = { value: "true" }, Fo = { value: "false" }, Uo = {
|
|
1647
1647
|
key: 5,
|
|
1648
1648
|
style: { display: "grid", "row-gap": ".4rem" }
|
|
1649
1649
|
}, Eo = { key: 0 }, Ho = { class: "form__array" }, Do = { style: { "flex-grow": "1" } }, Qo = {
|
|
@@ -1685,11 +1685,11 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1685
1685
|
bt(() => {
|
|
1686
1686
|
t.modelValue || o("update:modelValue", t.property && "items" in t.property ? [] : {});
|
|
1687
1687
|
});
|
|
1688
|
-
const
|
|
1688
|
+
const c = t.property && _e(t.property), r = c ? c.$ref : t.collection || Me(), m = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), d = r ? re(e(r)) : null;
|
|
1689
1689
|
!r && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1690
1690
|
collection prop, some features may not work as intended`);
|
|
1691
1691
|
const h = Z(!1), i = X(() => {
|
|
1692
|
-
const _ = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 :
|
|
1692
|
+
const _ = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 : d == null ? void 0 : d.properties : t.form)();
|
|
1693
1693
|
if (!_)
|
|
1694
1694
|
return;
|
|
1695
1695
|
const L = {};
|
|
@@ -1706,10 +1706,10 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1706
1706
|
_.created_at || (L.created_at = W), _.created_at || (L.updated_at = W);
|
|
1707
1707
|
}
|
|
1708
1708
|
return Object.assign(L, _), L;
|
|
1709
|
-
}), l = X(() => t.layout || (
|
|
1709
|
+
}), l = X(() => t.layout || (d == null ? void 0 : d.description.formLayout)), B = (_) => {
|
|
1710
1710
|
const L = me(_, t[_]);
|
|
1711
1711
|
return t[_] && ye(_, t[_]), L;
|
|
1712
|
-
}, v = X(() => t.validationErrors !== null ? t.validationErrors :
|
|
1712
|
+
}, v = X(() => t.validationErrors !== null ? t.validationErrors : d == null ? void 0 : d.validationErrors), $ = B("formComponents") || {}, S = B("propertyComponents") || {}, O = B("omitFormHeader"), Y = B("omitInputLabels"), ee = B("innerInputLabel");
|
|
1713
1713
|
r && ye(Fe, r), ye("searchOnly", t.searchOnly);
|
|
1714
1714
|
const b = (_) => i.value ? Object.entries(i.value).filter(([L, W]) => !W.noForm && _([
|
|
1715
1715
|
L,
|
|
@@ -1718,11 +1718,11 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1718
1718
|
var w;
|
|
1719
1719
|
if (t.searchOnly || !r || t.includeId && _ === "_id" || t.includeTimestamps && L.isTimestamp)
|
|
1720
1720
|
return !0;
|
|
1721
|
-
const W = t.property && "properties" in t.property ? t.property.form : (w =
|
|
1721
|
+
const W = t.property && "properties" in t.property ? t.property.form : (w = d == null ? void 0 : d.description) == null ? void 0 : w.form;
|
|
1722
1722
|
return !W || W.includes(_);
|
|
1723
1723
|
}, le = b(([_, L]) => F(_, L)), T = Ue(), g = {}, j = (_, L) => {
|
|
1724
|
-
var
|
|
1725
|
-
const W = [], w = ((fe = (
|
|
1724
|
+
var z, fe, Be, we;
|
|
1725
|
+
const W = [], w = ((fe = (z = l.value) == null ? void 0 : z.fields) == null ? void 0 : fe[_]) || ((we = (Be = l.value) == null ? void 0 : Be.fields) == null ? void 0 : we.$default);
|
|
1726
1726
|
if (!L)
|
|
1727
1727
|
return;
|
|
1728
1728
|
if (w != null && w.if && !t.searchOnly) {
|
|
@@ -1730,7 +1730,7 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1730
1730
|
t.modelValue,
|
|
1731
1731
|
w.if
|
|
1732
1732
|
);
|
|
1733
|
-
Se.satisfied || (g[_] && (
|
|
1733
|
+
Se.satisfied || (g[_] && (d ? t.modelValue[_] = typeof d.$freshItem[_] == "object" ? Ce(d.$freshItem[_]) : d.$freshItem[_] : t.modelValue[_] = [
|
|
1734
1734
|
void 0,
|
|
1735
1735
|
null
|
|
1736
1736
|
].includes(t.modelValue[_]) ? null : t.modelValue[_].constructor()), W.push("display: none;")), g[_] = Se.satisfied;
|
|
@@ -1748,11 +1748,11 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1748
1748
|
padding: 1rem 0;
|
|
1749
1749
|
margin: 1rem 0;
|
|
1750
1750
|
`)), W.join("");
|
|
1751
|
-
}, ne = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, oe = X(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required :
|
|
1751
|
+
}, ne = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, oe = X(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : d == null ? void 0 : d.description.required), M = X(() => t.form ? Qt(
|
|
1752
1752
|
t.modelValue,
|
|
1753
1753
|
t.form,
|
|
1754
1754
|
oe.value,
|
|
1755
|
-
|
|
1755
|
+
d == null ? void 0 : d.description
|
|
1756
1756
|
) : !0), H = (_, L) => {
|
|
1757
1757
|
var W;
|
|
1758
1758
|
return (W = v.value) != null && W[_] && (typeof v.value[_].index != "number" || v.value[_].index === L) ? v.value[_].errors : null;
|
|
@@ -1771,24 +1771,24 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1771
1771
|
])) : y("", !0),
|
|
1772
1772
|
C(_.$slots, "default", {}, void 0, !0),
|
|
1773
1773
|
A("fieldset", jo, [
|
|
1774
|
-
(n(!0), s(x, null, Q(e(le), ([I,
|
|
1774
|
+
(n(!0), s(x, null, Q(e(le), ([I, z]) => {
|
|
1775
1775
|
var fe, Be, we, Se, Pe, Ne, xe, et, tt, nt, ot, at, lt;
|
|
1776
1776
|
return n(), s("div", {
|
|
1777
1777
|
key: `field-${I}`,
|
|
1778
|
-
style: he(j(I,
|
|
1778
|
+
style: he(j(I, z)),
|
|
1779
1779
|
class: "form__field"
|
|
1780
1780
|
}, [
|
|
1781
|
-
(!("type" in
|
|
1781
|
+
(!("type" in z) || z.type !== "boolean" || _.searchOnly) && !z.noLabel && !e(Y) && !e(ee) ? (n(), s("label", Ro, [
|
|
1782
1782
|
A("div", {
|
|
1783
1783
|
class: K({
|
|
1784
1784
|
"form__field-label": !0,
|
|
1785
|
-
"form__field-label--section": "items" in
|
|
1785
|
+
"form__field-label--section": "items" in z ? "properties" in z.items : "properties" in z,
|
|
1786
1786
|
"form__field-required-hint": _.highlightRequired && !e(m) && !_.searchOnly && (!oe.value || e(Rt)(I, oe.value, _.modelValue))
|
|
1787
1787
|
})
|
|
1788
|
-
}, V(
|
|
1789
|
-
|
|
1788
|
+
}, V(z.description || e(R)(I)), 3),
|
|
1789
|
+
z.hint ? (n(), s("div", {
|
|
1790
1790
|
key: 0,
|
|
1791
|
-
innerHTML:
|
|
1791
|
+
innerHTML: z.hint
|
|
1792
1792
|
}, null, 8, Lo)) : y("", !0)
|
|
1793
1793
|
])) : y("", !0),
|
|
1794
1794
|
_.$slots[`field-${I}`] ? C(_.$slots, `field-${I}`, E({
|
|
@@ -1796,7 +1796,7 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1796
1796
|
ref_for: !0
|
|
1797
1797
|
}, {
|
|
1798
1798
|
readOnly: e(m),
|
|
1799
|
-
property:
|
|
1799
|
+
property: z,
|
|
1800
1800
|
propertyName: I,
|
|
1801
1801
|
modelValue: _.modelValue
|
|
1802
1802
|
}), void 0, !0) : (we = (Be = (fe = _.layout) == null ? void 0 : fe.fields) == null ? void 0 : Be[I]) != null && we.component && e(S)[_.layout.fields[I].component.name] ? (n(), k(be(e(S)[_.layout.fields[I].component.name]), E({
|
|
@@ -1806,37 +1806,37 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1806
1806
|
ref_for: !0
|
|
1807
1807
|
}, {
|
|
1808
1808
|
readOnly: e(m),
|
|
1809
|
-
property:
|
|
1809
|
+
property: z,
|
|
1810
1810
|
propertyName: I,
|
|
1811
1811
|
..._.layout.fields[I].component.props || {}
|
|
1812
1812
|
}, {
|
|
1813
1813
|
onInput: (N) => o("input", I),
|
|
1814
1814
|
onChange: L[0] || (L[0] = (N) => o("change", N))
|
|
1815
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in
|
|
1815
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in z && ["date", "date-time"].includes(z.format) && _.searchOnly ? (n(), s("div", {
|
|
1816
1816
|
key: 3,
|
|
1817
1817
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1818
1818
|
onInput: (N) => o("input", I),
|
|
1819
1819
|
onChange: L[1] || (L[1] = (N) => o("change", N))
|
|
1820
1820
|
}, [
|
|
1821
|
-
|
|
1821
|
+
q(ke, E({
|
|
1822
1822
|
modelValue: _.modelValue[I].$gte,
|
|
1823
1823
|
"onUpdate:modelValue": (N) => _.modelValue[I].$gte = N,
|
|
1824
1824
|
ref_for: !0
|
|
1825
1825
|
}, {
|
|
1826
|
-
property:
|
|
1826
|
+
property: z,
|
|
1827
1827
|
propertyName: I
|
|
1828
1828
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1829
|
-
|
|
1829
|
+
q(ke, E({
|
|
1830
1830
|
modelValue: _.modelValue[I].$lte,
|
|
1831
1831
|
"onUpdate:modelValue": (N) => _.modelValue[I].$lte = N,
|
|
1832
1832
|
ref_for: !0
|
|
1833
1833
|
}, {
|
|
1834
|
-
property:
|
|
1834
|
+
property: z,
|
|
1835
1835
|
propertyName: I
|
|
1836
1836
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1837
|
-
], 40,
|
|
1838
|
-
|
|
1839
|
-
property:
|
|
1837
|
+
], 40, qo)) : "type" in z && z.type === "boolean" && _.searchOnly ? (n(), s("div", zo, [
|
|
1838
|
+
q(Ze, E({ ref_for: !0 }, {
|
|
1839
|
+
property: z,
|
|
1840
1840
|
propertyName: I
|
|
1841
1841
|
}, {
|
|
1842
1842
|
"boolean-ref": "",
|
|
@@ -1852,15 +1852,15 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1852
1852
|
]),
|
|
1853
1853
|
_: 2
|
|
1854
1854
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1855
|
-
])) : _.modelValue && "items" in
|
|
1855
|
+
])) : _.modelValue && "items" in z && !z.uniqueItems && (!("$ref" in z.items) || z.items.inline || z.items.$ref === "file") ? (n(), s("div", Uo, [
|
|
1856
1856
|
e(m) ? y("", !0) : (n(), s("div", Eo, [
|
|
1857
|
-
|
|
1857
|
+
q(ie, {
|
|
1858
1858
|
small: "",
|
|
1859
1859
|
variant: "alt",
|
|
1860
1860
|
icon: "plus",
|
|
1861
|
-
disabled: !("inline" in
|
|
1862
|
-
onClick:
|
|
1863
|
-
_.modelValue[I] || (_.modelValue[I] = []), e(wo)(_.modelValue[I],
|
|
1861
|
+
disabled: !("inline" in z.items && z.items.inline) && (((Se = _.modelValue[I]) == null ? void 0 : Se.length) >= z.maxItems || ne((Ne = _.modelValue[I]) == null ? void 0 : Ne[((Pe = _.modelValue[I]) == null ? void 0 : Pe.length) - 1])),
|
|
1862
|
+
onClick: qe((N) => {
|
|
1863
|
+
_.modelValue[I] || (_.modelValue[I] = []), e(wo)(_.modelValue[I], z, e(a));
|
|
1864
1864
|
}, ["prevent"])
|
|
1865
1865
|
}, {
|
|
1866
1866
|
default: f(() => [
|
|
@@ -1871,25 +1871,25 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1871
1871
|
])),
|
|
1872
1872
|
A("div", Ho, [
|
|
1873
1873
|
(n(!0), s(x, null, Q(_.modelValue[I], (N, Te) => {
|
|
1874
|
-
var st, it, rt, ut,
|
|
1874
|
+
var st, it, rt, ut, ct, dt;
|
|
1875
1875
|
return n(), s("div", {
|
|
1876
|
-
key: `rep-${I}-${e(
|
|
1876
|
+
key: `rep-${I}-${e(Gt)(N, Te)}`,
|
|
1877
1877
|
class: "form__array-item"
|
|
1878
1878
|
}, [
|
|
1879
1879
|
A("div", Do, [
|
|
1880
|
-
(n(), k(be(e(_t)(
|
|
1880
|
+
(n(), k(be(e(_t)(z, e($))), E({
|
|
1881
1881
|
modelValue: _.modelValue[I][Te],
|
|
1882
1882
|
"onUpdate:modelValue": (je) => _.modelValue[I][Te] = je,
|
|
1883
1883
|
ref_for: !0
|
|
1884
1884
|
}, {
|
|
1885
1885
|
readOnly: e(m),
|
|
1886
|
-
property:
|
|
1886
|
+
property: z.items,
|
|
1887
1887
|
propertyName: I,
|
|
1888
1888
|
parentCollection: e(r),
|
|
1889
1889
|
parentPropertyName: _.parentPropertyName,
|
|
1890
|
-
columns: ((rt = (it = (st = _.layout) == null ? void 0 : st.fields) == null ? void 0 : it[I]) == null ? void 0 : rt.optionsColumns) || ((
|
|
1890
|
+
columns: ((rt = (it = (st = _.layout) == null ? void 0 : st.fields) == null ? void 0 : it[I]) == null ? void 0 : rt.optionsColumns) || ((dt = (ct = (ut = _.layout) == null ? void 0 : ut.fields) == null ? void 0 : ct.$default) == null ? void 0 : dt.optionsColumns),
|
|
1891
1891
|
validationErrors: H(I, Te),
|
|
1892
|
-
...
|
|
1892
|
+
...z.componentProps || {}
|
|
1893
1893
|
}, {
|
|
1894
1894
|
onInput: (je) => o("input", I),
|
|
1895
1895
|
onChange: L[3] || (L[3] = (je) => o("change", je))
|
|
@@ -1906,26 +1906,26 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1906
1906
|
]);
|
|
1907
1907
|
}), 128))
|
|
1908
1908
|
])
|
|
1909
|
-
])) : _.modelValue ? P((n(), k(be(e(_t)(
|
|
1909
|
+
])) : _.modelValue ? P((n(), k(be(e(_t)(z, e($))), E({
|
|
1910
1910
|
key: 6,
|
|
1911
1911
|
modelValue: _.modelValue[I],
|
|
1912
1912
|
"onUpdate:modelValue": (N) => _.modelValue[I] = N,
|
|
1913
1913
|
ref_for: !0
|
|
1914
1914
|
}, {
|
|
1915
1915
|
readOnly: e(m),
|
|
1916
|
-
property:
|
|
1916
|
+
property: z,
|
|
1917
1917
|
propertyName: I,
|
|
1918
1918
|
parentPropertyName: _.parentPropertyName,
|
|
1919
1919
|
parentCollection: e(r),
|
|
1920
1920
|
columns: ((tt = (et = (xe = _.layout) == null ? void 0 : xe.fields) == null ? void 0 : et[I]) == null ? void 0 : tt.optionsColumns) || ((at = (ot = (nt = _.layout) == null ? void 0 : nt.fields) == null ? void 0 : ot.$default) == null ? void 0 : at.optionsColumns),
|
|
1921
|
-
...
|
|
1921
|
+
...z.componentProps || {},
|
|
1922
1922
|
validationErrors: H(I)
|
|
1923
1923
|
}, {
|
|
1924
1924
|
onInput: (N) => o("input", I),
|
|
1925
1925
|
onChange: L[4] || (L[4] = (N) => o("change", N)),
|
|
1926
1926
|
onClipboardCopy: L[5] || (L[5] = (N) => o("clipboardCopy", N))
|
|
1927
1927
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1928
|
-
[w, se(
|
|
1928
|
+
[w, se(z)]
|
|
1929
1929
|
]) : y("", !0),
|
|
1930
1930
|
(lt = v.value) != null && lt[I] ? (n(), s("div", Qo, [
|
|
1931
1931
|
v.value[I].type ? (n(), s("span", Go, V(e(R)(`validation_error.${v.value[I].type}`)), 1)) : y("", !0),
|
|
@@ -1936,7 +1936,7 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1936
1936
|
]),
|
|
1937
1937
|
_.$slots.after ? C(_.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
|
|
1938
1938
|
_.$slots.footer ? (n(), s("div", Ko, [
|
|
1939
|
-
C(_.$slots, "footer",
|
|
1939
|
+
C(_.$slots, "footer", de(ge({
|
|
1940
1940
|
isInsertReady: M.value
|
|
1941
1941
|
})), void 0, !0)
|
|
1942
1942
|
])) : y("", !0)
|
|
@@ -1944,39 +1944,38 @@ const Bo = /* @__PURE__ */ G(Ao, [["__scopeId", "data-v-f8e80dc0"]]), _t = (p, u
|
|
|
1944
1944
|
};
|
|
1945
1945
|
}
|
|
1946
1946
|
});
|
|
1947
|
-
const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-
|
|
1947
|
+
const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-39b28171"]]), Yo = /* @__PURE__ */ U({
|
|
1948
1948
|
__name: "aeria-filter-panel",
|
|
1949
1949
|
emits: ["update:modelValue"],
|
|
1950
1950
|
setup(p, { emit: u }) {
|
|
1951
|
-
const a = u, t = De(), o = Ie(),
|
|
1952
|
-
t.pagination.offset = 0, t.$actions.filter(), a("update:modelValue", !1)
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
query: Ut(t)
|
|
1951
|
+
const a = u, t = De(), o = Ie(), c = e(me(Fe)), r = () => {
|
|
1952
|
+
if (t.pagination.offset = 0, t.$actions.filter(), a("update:modelValue", !1), "query" in o.currentRoute && o.currentRoute.query && typeof o.currentRoute.query == "object") {
|
|
1953
|
+
const m = o.currentRoute.query;
|
|
1954
|
+
for (const d of Object.keys(m))
|
|
1955
|
+
d.startsWith(`${c}.`) && delete m[d];
|
|
1956
|
+
}
|
|
1957
|
+
o.push(ze(o.currentRoute, {
|
|
1958
|
+
query: Mt(t)
|
|
1960
1959
|
}));
|
|
1961
1960
|
};
|
|
1962
|
-
return (m,
|
|
1961
|
+
return (m, d) => (n(), k(Ae, {
|
|
1963
1962
|
"close-hint": "",
|
|
1964
1963
|
"fixed-right": "",
|
|
1965
1964
|
title: m.t("filter_by", { capitalize: !0 }),
|
|
1966
|
-
onClose:
|
|
1967
|
-
onOverlayClick:
|
|
1965
|
+
onClose: d[2] || (d[2] = (h) => a("update:modelValue", !1)),
|
|
1966
|
+
onOverlayClick: d[3] || (d[3] = (h) => a("update:modelValue", !1))
|
|
1968
1967
|
}, {
|
|
1969
1968
|
footer: f(() => [
|
|
1970
1969
|
e(t).filtersCount > 0 ? (n(), k(ie, {
|
|
1971
1970
|
key: 0,
|
|
1972
1971
|
variant: "transparent",
|
|
1973
|
-
onClick:
|
|
1972
|
+
onClick: d[1] || (d[1] = (h) => {
|
|
1974
1973
|
e(t).$actions.clearFilters(), r(), a("update:modelValue", !1);
|
|
1975
1974
|
})
|
|
1976
1975
|
}, {
|
|
1977
1976
|
default: f(() => [
|
|
1978
1977
|
D(V(m.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1979
|
-
|
|
1978
|
+
q($e, null, {
|
|
1980
1979
|
default: f(() => [
|
|
1981
1980
|
D(V(e(t).filtersCount), 1)
|
|
1982
1981
|
]),
|
|
@@ -1985,7 +1984,7 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
1985
1984
|
]),
|
|
1986
1985
|
_: 1
|
|
1987
1986
|
})) : y("", !0),
|
|
1988
|
-
|
|
1987
|
+
q(ie, {
|
|
1989
1988
|
large: "",
|
|
1990
1989
|
icon: "funnel",
|
|
1991
1990
|
disabled: !e(t).hasActiveFilters,
|
|
@@ -1998,9 +1997,9 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
1998
1997
|
}, 8, ["disabled"])
|
|
1999
1998
|
]),
|
|
2000
1999
|
default: f(() => [
|
|
2001
|
-
|
|
2000
|
+
q(Qe, E({
|
|
2002
2001
|
modelValue: e(t).filters,
|
|
2003
|
-
"onUpdate:modelValue":
|
|
2002
|
+
"onUpdate:modelValue": d[0] || (d[0] = (h) => e(t).filters = h)
|
|
2004
2003
|
}, {
|
|
2005
2004
|
searchOnly: !0,
|
|
2006
2005
|
form: e(t).availableFilters,
|
|
@@ -2023,11 +2022,11 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2023
2022
|
},
|
|
2024
2023
|
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2025
2024
|
setup(p, { emit: u }) {
|
|
2026
|
-
const a = p, t = u, o = re("meta"),
|
|
2025
|
+
const a = p, t = u, o = re("meta"), c = a.collection || o.view.collection, r = re(c), m = me("individualActions", []);
|
|
2027
2026
|
Xe(() => {
|
|
2028
2027
|
a.modelValue && r.$actions.setItem(a.modelValue);
|
|
2029
2028
|
});
|
|
2030
|
-
const
|
|
2029
|
+
const d = X(() => a.form ? r.$actions.useProperties(a.form) : r.description.form ? r.$actions.useProperties(r.description.form) : r.properties), h = async () => {
|
|
2031
2030
|
const { error: v, result: $ } = await r.$actions.deepInsert();
|
|
2032
2031
|
v || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), r.$actions.clearItem());
|
|
2033
2032
|
}, { t: i } = Tt(), l = () => {
|
|
@@ -2049,9 +2048,9 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2049
2048
|
"model-value": v.visible,
|
|
2050
2049
|
loading: e(r).loading.get,
|
|
2051
2050
|
onOverlayClick: l
|
|
2052
|
-
},
|
|
2051
|
+
}, ce({
|
|
2053
2052
|
extra: f(() => [
|
|
2054
|
-
|
|
2053
|
+
q(Oe, E({
|
|
2055
2054
|
subject: e(r).item,
|
|
2056
2055
|
actions: e(m).filter(({ action: O }) => O !== "spawnEdit"),
|
|
2057
2056
|
overlayLayer: 60
|
|
@@ -2074,25 +2073,25 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2074
2073
|
}, 16)
|
|
2075
2074
|
]),
|
|
2076
2075
|
default: f(() => [
|
|
2077
|
-
|
|
2076
|
+
q(Qe, E({
|
|
2078
2077
|
modelValue: e(r).item,
|
|
2079
2078
|
"onUpdate:modelValue": $[0] || ($[0] = (O) => e(r).item = O)
|
|
2080
2079
|
}, {
|
|
2081
|
-
collection: e(
|
|
2080
|
+
collection: e(c),
|
|
2082
2081
|
readOnly: v.readOnly,
|
|
2083
2082
|
includeId: v.includeId,
|
|
2084
2083
|
includeTimestamps: v.includeTimestamps,
|
|
2085
|
-
form:
|
|
2084
|
+
form: d.value,
|
|
2086
2085
|
layout: e(r).description.formLayout || {}
|
|
2087
2086
|
}, {
|
|
2088
2087
|
focus: "",
|
|
2089
2088
|
onClipboardCopy: B,
|
|
2090
2089
|
onAdd: $[1] || ($[1] = (O) => O.preventDefault())
|
|
2091
|
-
}),
|
|
2090
|
+
}), ce({ _: 2 }, [
|
|
2092
2091
|
Q(Object.keys(v.$slots).filter((O) => O.startsWith("field-")), (O) => ({
|
|
2093
2092
|
name: O,
|
|
2094
2093
|
fn: f((Y) => [
|
|
2095
|
-
C(v.$slots, O,
|
|
2094
|
+
C(v.$slots, O, de(ge(Y)))
|
|
2096
2095
|
])
|
|
2097
2096
|
}))
|
|
2098
2097
|
]), 1040, ["modelValue"])
|
|
@@ -2109,7 +2108,7 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2109
2108
|
v.readOnly ? void 0 : {
|
|
2110
2109
|
name: "footer",
|
|
2111
2110
|
fn: f(() => [
|
|
2112
|
-
|
|
2111
|
+
q(ie, {
|
|
2113
2112
|
variant: "transparent",
|
|
2114
2113
|
onClick: l
|
|
2115
2114
|
}, {
|
|
@@ -2118,7 +2117,7 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2118
2117
|
]),
|
|
2119
2118
|
_: 1
|
|
2120
2119
|
}),
|
|
2121
|
-
|
|
2120
|
+
q(ie, {
|
|
2122
2121
|
large: "",
|
|
2123
2122
|
disabled: !e(r).isInsertReady || e(r).loading.get,
|
|
2124
2123
|
loading: e(r).loading.insert,
|
|
@@ -2150,13 +2149,13 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2150
2149
|
return ue(() => t.value.query.section, (o) => {
|
|
2151
2150
|
if (p) {
|
|
2152
2151
|
if (p.description.filtersPresets) {
|
|
2153
|
-
const
|
|
2154
|
-
kt(p.description.filtersPresets[
|
|
2152
|
+
const c = o || Object.keys(p.description.filtersPresets)[0];
|
|
2153
|
+
kt(p.description.filtersPresets[c], p);
|
|
2155
2154
|
}
|
|
2156
2155
|
if (u.persistInQuery) {
|
|
2157
|
-
const
|
|
2158
|
-
|
|
2159
|
-
$search: `"${
|
|
2156
|
+
const c = t.value.query;
|
|
2157
|
+
c.offset && (p.pagination.offset = +c.offset), c.limit && (p.pagination.limit = +c.limit), c.search && (p.textQuery = c.search, p.filters.$text = {
|
|
2158
|
+
$search: `"${c.search}"`,
|
|
2160
2159
|
$caseSensitive: !1
|
|
2161
2160
|
});
|
|
2162
2161
|
}
|
|
@@ -2173,10 +2172,10 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2173
2172
|
}, oa = { key: 2 }, aa = { key: 3 }, la = ["onClick"], sa = { key: 0 }, ia = ["value"], ra = { class: "table__cell-mobile-label" }, ua = {
|
|
2174
2173
|
key: 0,
|
|
2175
2174
|
class: "table__cell-container"
|
|
2176
|
-
},
|
|
2175
|
+
}, ca = {
|
|
2177
2176
|
key: 1,
|
|
2178
2177
|
class: "table__cell-container"
|
|
2179
|
-
},
|
|
2178
|
+
}, da = { class: "table__cell-grid" }, pa = { key: 0 }, ma = { key: 1 }, _a = { key: 0 }, fa = ["href"], va = { key: 3 }, ya = { key: 1 }, ba = { key: 2 }, ha = { key: 0 }, $a = { key: 1 }, ga = { key: 2 }, ka = {
|
|
2180
2179
|
key: 1,
|
|
2181
2180
|
class: "no-print"
|
|
2182
2181
|
}, Va = { class: "table__cell-actions" }, Ca = {
|
|
@@ -2194,10 +2193,10 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2194
2193
|
},
|
|
2195
2194
|
emits: ["itemClick"],
|
|
2196
2195
|
setup(p, { emit: u }) {
|
|
2197
|
-
const a = p, t = u, o = Ue(),
|
|
2196
|
+
const a = p, t = u, o = Ue(), c = a.collection || Me(), r = c ? re(typeof c == "string" ? c : c.value) : null, m = X({
|
|
2198
2197
|
get: () => r == null ? void 0 : r.selected,
|
|
2199
2198
|
set: (v) => r == null ? void 0 : r.$actions.selectManyItems(v, !0)
|
|
2200
|
-
}),
|
|
2199
|
+
}), d = X(() => a.columns ? Object.keys(a.columns).length + Number(a.checkbox) : 0), h = (v, $) => v.button ? typeof v.button == "object" ? We($, v.button).satisfied : v.button : !1, i = (v) => {
|
|
2201
2200
|
var S;
|
|
2202
2201
|
const $ = (S = a.layout) == null ? void 0 : S.actions;
|
|
2203
2202
|
return !o.value.xl || !$ || !a.actions ? [] : a.actions.filter((O) => {
|
|
@@ -2229,7 +2228,7 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2229
2228
|
return (v, $) => {
|
|
2230
2229
|
var O, Y, ee;
|
|
2231
2230
|
const S = te("clickable");
|
|
2232
|
-
return
|
|
2231
|
+
return d.value > 0 || v.$slots.thead ? (n(), s("table", Po, [
|
|
2233
2232
|
v.$slots.thead ? (n(), s("thead", No, [
|
|
2234
2233
|
C(v.$slots, "thead", {}, void 0, !0)
|
|
2235
2234
|
])) : (n(), s("thead", xo, [
|
|
@@ -2279,8 +2278,8 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2279
2278
|
property: g,
|
|
2280
2279
|
row: b
|
|
2281
2280
|
}), void 0, !0)
|
|
2282
|
-
])) : (n(), s("div",
|
|
2283
|
-
A("div",
|
|
2281
|
+
])) : (n(), s("div", ca, [
|
|
2282
|
+
A("div", da, [
|
|
2284
2283
|
"type" in g && g.type === "boolean" ? (n(), s("div", pa, [
|
|
2285
2284
|
b[T] ? (n(), k(J, {
|
|
2286
2285
|
key: 0,
|
|
@@ -2372,7 +2371,7 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2372
2371
|
default: f(({
|
|
2373
2372
|
visible: T
|
|
2374
2373
|
}) => [
|
|
2375
|
-
P(
|
|
2374
|
+
P(q(J, {
|
|
2376
2375
|
reactive: "",
|
|
2377
2376
|
active: T,
|
|
2378
2377
|
icon: "dots-three"
|
|
@@ -2394,7 +2393,7 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2394
2393
|
onClick: (g) => T.click(b)
|
|
2395
2394
|
}, {
|
|
2396
2395
|
default: f(() => [
|
|
2397
|
-
|
|
2396
|
+
q(J, {
|
|
2398
2397
|
icon: T.icon || "gear"
|
|
2399
2398
|
}, {
|
|
2400
2399
|
default: f(() => [
|
|
@@ -2413,7 +2412,7 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2413
2412
|
actions: l(b)
|
|
2414
2413
|
}), {
|
|
2415
2414
|
default: f(() => [
|
|
2416
|
-
|
|
2415
|
+
q(J, {
|
|
2417
2416
|
icon: "dots-three",
|
|
2418
2417
|
class: "table__mobile-actions-button"
|
|
2419
2418
|
})
|
|
@@ -2431,7 +2430,7 @@ const Qe = /* @__PURE__ */ G(Xo, [["__scopeId", "data-v-d4645a62"]]), Yo = /* @_
|
|
|
2431
2430
|
A("tfoot", null, [
|
|
2432
2431
|
v.$slots.tfoot ? C(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((Y = v.rows) != null && Y.length) && !((ee = e(r)) != null && ee.loading.getAll) ? (n(), s("tr", Ia, [
|
|
2433
2432
|
A("td", {
|
|
2434
|
-
colspan:
|
|
2433
|
+
colspan: d.value + 1
|
|
2435
2434
|
}, [
|
|
2436
2435
|
A("div", Ba, V(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
|
|
2437
2436
|
], 8, Aa)
|
|
@@ -2450,7 +2449,7 @@ const Sa = /* @__PURE__ */ G(wa, [["__scopeId", "data-v-89303bb6"]]), Ta = /* @_
|
|
|
2450
2449
|
},
|
|
2451
2450
|
setup(p) {
|
|
2452
2451
|
const u = p, a = Le(), t = Me(), o = X(() => {
|
|
2453
|
-
const
|
|
2452
|
+
const c = {
|
|
2454
2453
|
collection: t,
|
|
2455
2454
|
checkbox: a.hasSelectionActions,
|
|
2456
2455
|
columns: a.tableProperties,
|
|
@@ -2458,17 +2457,17 @@ const Sa = /* @__PURE__ */ G(wa, [["__scopeId", "data-v-89303bb6"]]), Ta = /* @_
|
|
|
2458
2457
|
actions: u.individualActions,
|
|
2459
2458
|
layout: a.tableLayout
|
|
2460
2459
|
};
|
|
2461
|
-
return Object.assign(
|
|
2460
|
+
return Object.assign(c, u.componentProps);
|
|
2462
2461
|
});
|
|
2463
|
-
return (
|
|
2464
|
-
|
|
2462
|
+
return (c, r) => (n(), s("div", null, [
|
|
2463
|
+
c.$slots.inner ? C(c.$slots, "inner", { key: 0 }) : y("", !0),
|
|
2465
2464
|
e(a).properties ? (n(), k(Sa, E({ key: 1 }, o.value, {
|
|
2466
2465
|
key: e(a).$id
|
|
2467
|
-
}),
|
|
2468
|
-
Q(Object.keys(
|
|
2466
|
+
}), ce({ _: 2 }, [
|
|
2467
|
+
Q(Object.keys(c.$slots).filter((m) => !["inner"].includes(m)), (m) => ({
|
|
2469
2468
|
name: m,
|
|
2470
|
-
fn: f((
|
|
2471
|
-
C(
|
|
2469
|
+
fn: f((d) => [
|
|
2470
|
+
C(c.$slots, m, de(ge(d)))
|
|
2472
2471
|
])
|
|
2473
2472
|
}))
|
|
2474
2473
|
]), 1040)) : y("", !0)
|
|
@@ -2490,10 +2489,10 @@ const Sa = /* @__PURE__ */ G(wa, [["__scopeId", "data-v-89303bb6"]]), Ta = /* @_
|
|
|
2490
2489
|
], 2));
|
|
2491
2490
|
}
|
|
2492
2491
|
});
|
|
2493
|
-
const Ra = /* @__PURE__ */ G(ja, [["__scopeId", "data-v-438c4aed"]]), La = { key: 0 },
|
|
2492
|
+
const Ra = /* @__PURE__ */ G(ja, [["__scopeId", "data-v-438c4aed"]]), La = { key: 0 }, qa = {
|
|
2494
2493
|
key: 1,
|
|
2495
2494
|
class: "card__information"
|
|
2496
|
-
},
|
|
2495
|
+
}, za = /* @__PURE__ */ U({
|
|
2497
2496
|
__name: "aeria-grid",
|
|
2498
2497
|
props: {
|
|
2499
2498
|
individualActions: {},
|
|
@@ -2502,34 +2501,34 @@ const Ra = /* @__PURE__ */ G(ja, [["__scopeId", "data-v-438c4aed"]]), La = { key
|
|
|
2502
2501
|
componentName: {}
|
|
2503
2502
|
},
|
|
2504
2503
|
setup(p) {
|
|
2505
|
-
const a = p.layoutOptions, t = Le(), o = (
|
|
2506
|
-
return (
|
|
2504
|
+
const a = p.layoutOptions, t = Le(), o = (c) => Array.isArray(c) ? c[0] : c;
|
|
2505
|
+
return (c, r) => {
|
|
2507
2506
|
const m = te("clickable");
|
|
2508
2507
|
return n(), k(Ra, {
|
|
2509
|
-
list:
|
|
2508
|
+
list: c.componentName === "list"
|
|
2510
2509
|
}, {
|
|
2511
2510
|
default: f(() => [
|
|
2512
|
-
(n(!0), s(x, null, Q(e(t).items, (
|
|
2513
|
-
key:
|
|
2514
|
-
inactive: !!(e(a).active && !
|
|
2515
|
-
horizontal:
|
|
2516
|
-
},
|
|
2511
|
+
(n(!0), s(x, null, Q(e(t).items, (d) => (n(), k(un, {
|
|
2512
|
+
key: d,
|
|
2513
|
+
inactive: !!(e(a).active && !d[e(a).active]),
|
|
2514
|
+
horizontal: c.componentName === "list"
|
|
2515
|
+
}, ce({
|
|
2517
2516
|
footer: f(() => [
|
|
2518
|
-
e(a).title ? (n(), s("div", La, V(
|
|
2519
|
-
e(a).information ? (n(), s("div",
|
|
2517
|
+
e(a).title ? (n(), s("div", La, V(d[e(a).title]), 1)) : y("", !0),
|
|
2518
|
+
e(a).information ? (n(), s("div", qa, V(d[e(a).information]), 1)) : y("", !0)
|
|
2520
2519
|
]),
|
|
2521
2520
|
actions: f(() => [
|
|
2522
|
-
|
|
2521
|
+
c.individualActions.length > 0 ? (n(), k(Oe, E({
|
|
2523
2522
|
key: 0,
|
|
2524
2523
|
ref_for: !0
|
|
2525
2524
|
}, {
|
|
2526
|
-
subject:
|
|
2527
|
-
actions:
|
|
2525
|
+
subject: d,
|
|
2526
|
+
actions: c.individualActions
|
|
2528
2527
|
}), {
|
|
2529
2528
|
default: f(({
|
|
2530
2529
|
visible: h
|
|
2531
2530
|
}) => [
|
|
2532
|
-
P(
|
|
2531
|
+
P(q(J, {
|
|
2533
2532
|
reactive: "",
|
|
2534
2533
|
active: h,
|
|
2535
2534
|
icon: "dots-three-vertical"
|
|
@@ -2543,21 +2542,21 @@ const Ra = /* @__PURE__ */ G(ja, [["__scopeId", "data-v-438c4aed"]]), La = { key
|
|
|
2543
2542
|
default: f(() => {
|
|
2544
2543
|
var h;
|
|
2545
2544
|
return [
|
|
2546
|
-
|
|
2545
|
+
q(He, {
|
|
2547
2546
|
alt: "Item picture",
|
|
2548
2547
|
expandable: "",
|
|
2549
|
-
url: (h = o(
|
|
2550
|
-
meta: o(
|
|
2548
|
+
url: (h = o(d[e(a).picture])) == null ? void 0 : h.link,
|
|
2549
|
+
meta: o(d[e(a).picture])
|
|
2551
2550
|
}, null, 8, ["url", "meta"])
|
|
2552
2551
|
];
|
|
2553
2552
|
}),
|
|
2554
2553
|
_: 2
|
|
2555
2554
|
}, [
|
|
2556
|
-
e(a).badge && Array.isArray(
|
|
2555
|
+
e(a).badge && Array.isArray(d[e(a).badge]) ? {
|
|
2557
2556
|
name: "badge",
|
|
2558
2557
|
fn: f(() => [
|
|
2559
|
-
(n(!0), s(x, null, Q(
|
|
2560
|
-
key: `${
|
|
2558
|
+
(n(!0), s(x, null, Q(d[e(a).badge], (h) => (n(), k($e, {
|
|
2559
|
+
key: `${d._id}-${h}`,
|
|
2561
2560
|
large: ""
|
|
2562
2561
|
}, {
|
|
2563
2562
|
default: f(() => [
|
|
@@ -2570,9 +2569,9 @@ const Ra = /* @__PURE__ */ G(ja, [["__scopeId", "data-v-438c4aed"]]), La = { key
|
|
|
2570
2569
|
} : e(a).badge ? {
|
|
2571
2570
|
name: "badge",
|
|
2572
2571
|
fn: f(() => [
|
|
2573
|
-
|
|
2572
|
+
q($e, null, {
|
|
2574
2573
|
default: f(() => [
|
|
2575
|
-
D(V(e(a).translateBadge ? e(R)(
|
|
2574
|
+
D(V(e(a).translateBadge ? e(R)(d[e(a).badge]) : d[e(a).badge]), 1)
|
|
2576
2575
|
]),
|
|
2577
2576
|
_: 2
|
|
2578
2577
|
}, 1024)
|
|
@@ -2586,7 +2585,7 @@ const Ra = /* @__PURE__ */ G(ja, [["__scopeId", "data-v-438c4aed"]]), La = { key
|
|
|
2586
2585
|
};
|
|
2587
2586
|
}
|
|
2588
2587
|
});
|
|
2589
|
-
const ft = /* @__PURE__ */ G(
|
|
2588
|
+
const ft = /* @__PURE__ */ G(za, [["__scopeId", "data-v-6ea2d642"]]), Ma = (p) => ({
|
|
2590
2589
|
tabular: Ta,
|
|
2591
2590
|
grid: ft,
|
|
2592
2591
|
list: ft
|
|
@@ -2617,19 +2616,19 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2617
2616
|
},
|
|
2618
2617
|
emits: ["uiEvent"],
|
|
2619
2618
|
setup(p, { emit: u }) {
|
|
2620
|
-
const a = p, t = u, o = Ie(),
|
|
2619
|
+
const a = p, t = u, o = Ie(), c = gt({
|
|
2621
2620
|
delay: 600
|
|
2622
|
-
}), r = re("meta"), m = Ue(), { reachedEnd:
|
|
2621
|
+
}), r = re("meta"), m = Ue(), { reachedEnd: d, detach: h } = Je(null, {
|
|
2623
2622
|
antecipate: 600
|
|
2624
2623
|
}), i = !m.value.md || a.scrollPagination;
|
|
2625
|
-
i && ue(
|
|
2624
|
+
i && ue(d, (g) => {
|
|
2626
2625
|
g && l.pagination.recordsTotal > l.items.length && $.value < yt && ($.value += 1, O());
|
|
2627
2626
|
});
|
|
2628
|
-
const l =
|
|
2627
|
+
const l = Ft(a.collection);
|
|
2629
2628
|
Zo(l, {
|
|
2630
2629
|
persistInQuery: !a.noQueryPersistence
|
|
2631
2630
|
});
|
|
2632
|
-
const B = Ye(), v = a.action ? e(a.action) :
|
|
2631
|
+
const B = Ye(), v = a.action ? e(a.action) : Ut(l, o, B);
|
|
2633
2632
|
Re.value = v[0], vt.value = v[1];
|
|
2634
2633
|
const $ = Z(0), S = Z(!1), O = async (g) => {
|
|
2635
2634
|
l.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || l.$filters), Object.assign(l.activeFilters, l.filtersPreset);
|
|
@@ -2646,7 +2645,7 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2646
2645
|
const { data: M, pagination: H } = oe;
|
|
2647
2646
|
l.pagination.recordsCount = H.recordsCount, l.pagination.recordsTotal = H.recordsTotal, $.value === 0 && l.items.splice(0), l.items.push(...M), l.loading.getAll = !1, S.value = !0;
|
|
2648
2647
|
}, Y = async (g) => {
|
|
2649
|
-
o.push(
|
|
2648
|
+
o.push(ze(o.currentRoute.value, {
|
|
2650
2649
|
query: {
|
|
2651
2650
|
offset: g.offset,
|
|
2652
2651
|
limit: g.limit
|
|
@@ -2661,14 +2660,14 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2661
2660
|
return;
|
|
2662
2661
|
const ne = o.currentRoute.value;
|
|
2663
2662
|
if (r.view.title = a.collection, r.view.collection = a.collection, !a.noFetch && (!ne.query._popstate || l.itemsCount === 0)) {
|
|
2664
|
-
const oe =
|
|
2663
|
+
const oe = Et(l, ne);
|
|
2665
2664
|
Object.keys(oe).length > 0 && Object.assign(l.filters, oe), await O();
|
|
2666
2665
|
}
|
|
2667
2666
|
}, {
|
|
2668
2667
|
immediate: !0,
|
|
2669
2668
|
flush: "post"
|
|
2670
2669
|
});
|
|
2671
|
-
const [b] =
|
|
2670
|
+
const [b] = c((g) => (o.push(ze(o.currentRoute.value, {
|
|
2672
2671
|
query: {
|
|
2673
2672
|
search: g || void 0
|
|
2674
2673
|
}
|
|
@@ -2721,8 +2720,8 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2721
2720
|
if (w.$ref === "file")
|
|
2722
2721
|
return {};
|
|
2723
2722
|
if (w.inline && W) {
|
|
2724
|
-
const { _id: I, ...
|
|
2725
|
-
return
|
|
2723
|
+
const { _id: I, ...z } = W;
|
|
2724
|
+
return z;
|
|
2726
2725
|
}
|
|
2727
2726
|
return W;
|
|
2728
2727
|
};
|
|
@@ -2758,7 +2757,7 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2758
2757
|
"onUpdate:visible": j[1] || (j[1] = (w) => pt(pe) ? pe.value = w : null),
|
|
2759
2758
|
"fixed-right": "",
|
|
2760
2759
|
onCancel: j[2] || (j[2] = (w) => pe.value = !1)
|
|
2761
|
-
},
|
|
2760
|
+
}, ce({
|
|
2762
2761
|
header: f(() => [
|
|
2763
2762
|
A("span", null, V((() => {
|
|
2764
2763
|
switch (e(pe)) {
|
|
@@ -2778,13 +2777,13 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2778
2777
|
Q(Object.keys(g.$slots).filter((w) => w.startsWith("field-")), (w) => ({
|
|
2779
2778
|
name: w,
|
|
2780
2779
|
fn: f((I) => [
|
|
2781
|
-
C(g.$slots, w,
|
|
2780
|
+
C(g.$slots, w, de(ge(I)), void 0, !0)
|
|
2782
2781
|
])
|
|
2783
2782
|
}))
|
|
2784
2783
|
]), 1032, ["visible"])) : y("", !0),
|
|
2785
2784
|
!g.noActions && (e(l).description.search || Object.keys(e(l).availableFilters).length > 0 || ((M = e(l)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(l).description.layout && ((H = e(l).description.layout) == null ? void 0 : H.name) !== "tabular") ? (n(), s("div", Fa, [
|
|
2786
2785
|
e(l).description.search ? (n(), s("div", Ua, [
|
|
2787
|
-
|
|
2786
|
+
q(ke, E({
|
|
2788
2787
|
modelValue: e(l).textQuery,
|
|
2789
2788
|
"onUpdate:modelValue": j[3] || (j[3] = (w) => e(l).textQuery = w)
|
|
2790
2789
|
}, {
|
|
@@ -2796,9 +2795,9 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2796
2795
|
}), null, 16, ["modelValue"])
|
|
2797
2796
|
])) : y("", !0),
|
|
2798
2797
|
A("div", Ea, [
|
|
2799
|
-
T.value.length > 0 || !g.noLayoutToggle && e(l).description.layout && ((se = e(l).description.layout) == null ? void 0 : se.name) !== "tabular" ? (n(), k(Oe, { key: 0 },
|
|
2798
|
+
T.value.length > 0 || !g.noLayoutToggle && e(l).description.layout && ((se = e(l).description.layout) == null ? void 0 : se.name) !== "tabular" ? (n(), k(Oe, { key: 0 }, ce({
|
|
2800
2799
|
default: f(() => [
|
|
2801
|
-
|
|
2800
|
+
q(ie, {
|
|
2802
2801
|
variant: "alt",
|
|
2803
2802
|
icon: "sliders"
|
|
2804
2803
|
}, {
|
|
@@ -2864,7 +2863,7 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2864
2863
|
key: 0,
|
|
2865
2864
|
icon: w.icon || "gear",
|
|
2866
2865
|
disabled: e(l).selected.length === 0 && "selection" in w && w.selection,
|
|
2867
|
-
onClick: (
|
|
2866
|
+
onClick: (z) => e(Re)(w)({ _id: e(l).selected.map((fe) => fe._id) })
|
|
2868
2867
|
}, {
|
|
2869
2868
|
default: f(() => [
|
|
2870
2869
|
D(V(e(R)(w.label, { capitalize: !0 })), 1)
|
|
@@ -2894,7 +2893,7 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2894
2893
|
key: `action-${I}`,
|
|
2895
2894
|
icon: w.icon,
|
|
2896
2895
|
disabled: e(l).selected.length === 0 && "selection" in w && w.selection,
|
|
2897
|
-
onClick: (
|
|
2896
|
+
onClick: (z) => e(Re)(w)({ _id: e(l).selected.map((fe) => fe._id) })
|
|
2898
2897
|
}, {
|
|
2899
2898
|
default: f(() => [
|
|
2900
2899
|
D(V(e(R)(w.label, { capitalize: !0 })), 1)
|
|
@@ -2906,7 +2905,7 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2906
2905
|
])) : y("", !0),
|
|
2907
2906
|
P((n(), s("div", null, [
|
|
2908
2907
|
e(l).itemsCount === 0 && !e(l).loading.getAll && S.value && (e(ee) || g.$slots.empty) ? (n(), s("div", Da, [
|
|
2909
|
-
e(ee) ? (n(), k(be(e(ee)),
|
|
2908
|
+
e(ee) ? (n(), k(be(e(ee)), de(E({ key: 0 }, {
|
|
2910
2909
|
collection: e(l).$id
|
|
2911
2910
|
})), {
|
|
2912
2911
|
default: f(() => [
|
|
@@ -2925,10 +2924,10 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2925
2924
|
})) : y("", !0)
|
|
2926
2925
|
]),
|
|
2927
2926
|
_: 1
|
|
2928
|
-
}, 16)) : C(g.$slots, "empty",
|
|
2927
|
+
}, 16)) : C(g.$slots, "empty", de(E({ key: 1 }, {
|
|
2929
2928
|
collection: e(l).$id
|
|
2930
2929
|
})), void 0, !0)
|
|
2931
|
-
])) : g.$slots.component ? C(g.$slots, "component",
|
|
2930
|
+
])) : g.$slots.component ? C(g.$slots, "component", de(E({ key: 1 }, {
|
|
2932
2931
|
store: e(l)
|
|
2933
2932
|
})), void 0, !0) : (n(), k(be(e(Ma)(((_ = g.layout) == null ? void 0 : _.name) || e(l).$currentLayout)), E({ key: 2 }, {
|
|
2934
2933
|
individualActions: le.value,
|
|
@@ -2936,11 +2935,11 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2936
2935
|
componentProps: g.componentProps
|
|
2937
2936
|
}, {
|
|
2938
2937
|
"component-name": ((W = g.layout) == null ? void 0 : W.name) || e(l).$currentLayout
|
|
2939
|
-
}),
|
|
2938
|
+
}), ce({ _: 2 }, [
|
|
2940
2939
|
Q(Object.keys(g.$slots).filter((w) => w.startsWith("row-")), (w) => ({
|
|
2941
2940
|
name: w,
|
|
2942
2941
|
fn: f((I) => [
|
|
2943
|
-
C(g.$slots, w,
|
|
2942
|
+
C(g.$slots, w, de(ge(I)), void 0, !0)
|
|
2944
2943
|
])
|
|
2945
2944
|
})),
|
|
2946
2945
|
g.$slots.tfoot ? {
|
|
@@ -2955,7 +2954,7 @@ const Ve = Z(!1), Re = Z((...p) => null), vt = Z(), Fa = {
|
|
|
2955
2954
|
[oe, (!e(i) || $.value === yt) && e(l).loading.getAll]
|
|
2956
2955
|
]),
|
|
2957
2956
|
!e(l).loading.getAll && e(l).itemsCount > 0 ? (n(), s("div", Qa, [
|
|
2958
|
-
|
|
2957
|
+
q(zn, {
|
|
2959
2958
|
pagination: e(l).pagination,
|
|
2960
2959
|
onPaginate: Y
|
|
2961
2960
|
}, null, 8, ["pagination"])
|
|
@@ -2979,19 +2978,19 @@ const Al = /* @__PURE__ */ G(Ga, [["__scopeId", "data-v-d5684d74"]]), Wa = { cla
|
|
|
2979
2978
|
"fill-footer": "",
|
|
2980
2979
|
"close-hint": !1,
|
|
2981
2980
|
style: { "--panel-min-width": "32rem" }
|
|
2982
|
-
},
|
|
2981
|
+
}, ce({
|
|
2983
2982
|
footer: f(() => [
|
|
2984
2983
|
A("div", {
|
|
2985
2984
|
class: "prompt__options",
|
|
2986
2985
|
style: he(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
|
|
2987
2986
|
}, [
|
|
2988
|
-
(n(!0), s(x, null, Q(Object.entries(t.options), ([
|
|
2987
|
+
(n(!0), s(x, null, Q(Object.entries(t.options), ([c, r], m) => (n(), k(ve, {
|
|
2989
2988
|
key: `option-${m}`,
|
|
2990
2989
|
class: K(`
|
|
2991
2990
|
prompt__option
|
|
2992
2991
|
prompt__option--${r.variant || "primary"}
|
|
2993
2992
|
`),
|
|
2994
|
-
onClick: (
|
|
2993
|
+
onClick: (d) => r.click ? r.click(c, r) : a(c, r)
|
|
2995
2994
|
}, {
|
|
2996
2995
|
default: f(() => [
|
|
2997
2996
|
D(V(r.title), 1)
|
|
@@ -3034,10 +3033,10 @@ const Xa = /* @__PURE__ */ G(Ka, [["__scopeId", "data-v-c069c1ef"]]), Ya = { cla
|
|
|
3034
3033
|
toast: !0,
|
|
3035
3034
|
"toast--animate": e(u).toasts[0].itr === a.itr
|
|
3036
3035
|
}),
|
|
3037
|
-
onAnimationend: t[0] || (t[0] = (
|
|
3038
|
-
onClick: t[1] || (t[1] = (
|
|
3036
|
+
onAnimationend: t[0] || (t[0] = (c) => e(u).$actions.popToast()),
|
|
3037
|
+
onClick: t[1] || (t[1] = (c) => e(u).$actions.popToast(a.itr))
|
|
3039
3038
|
}, [
|
|
3040
|
-
|
|
3039
|
+
q(J, E(
|
|
3041
3040
|
a.icon ? { icon: a.icon } : { icon: "warning-circle" },
|
|
3042
3041
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3043
3042
|
), null, 16),
|
|
@@ -3056,7 +3055,7 @@ const Pa = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-21bbe178"]]), Na = ["inn
|
|
|
3056
3055
|
setup(p) {
|
|
3057
3056
|
const u = re("meta"), a = X(() => u.themeOverride || u.theme);
|
|
3058
3057
|
return (t, o) => {
|
|
3059
|
-
const
|
|
3058
|
+
const c = At("router-view");
|
|
3060
3059
|
return n(), s("main", {
|
|
3061
3060
|
id: "main",
|
|
3062
3061
|
class: K(`
|
|
@@ -3067,9 +3066,9 @@ const Pa = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-21bbe178"]]), Na = ["inn
|
|
|
3067
3066
|
}, [
|
|
3068
3067
|
(n(), k(Bt, null, {
|
|
3069
3068
|
default: f(() => [
|
|
3070
|
-
|
|
3069
|
+
q(c, null, {
|
|
3071
3070
|
default: f(({ Component: r }) => [
|
|
3072
|
-
(n(), k(be(r), null,
|
|
3071
|
+
(n(), k(be(r), null, ce({ _: 2 }, [
|
|
3073
3072
|
Q(Object.keys(t.$slots), (m) => ({
|
|
3074
3073
|
name: m,
|
|
3075
3074
|
fn: f(() => [
|
|
@@ -3084,7 +3083,7 @@ const Pa = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-21bbe178"]]), Na = ["inn
|
|
|
3084
3083
|
_: 3
|
|
3085
3084
|
})),
|
|
3086
3085
|
C(t.$slots, "default", {}, void 0, !0),
|
|
3087
|
-
|
|
3086
|
+
q(Ae, E({
|
|
3088
3087
|
modelValue: e(u).modal.visible,
|
|
3089
3088
|
"onUpdate:modelValue": o[0] || (o[0] = (r) => e(u).modal.visible = r),
|
|
3090
3089
|
float: "",
|
|
@@ -3103,7 +3102,7 @@ const Pa = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-21bbe178"]]), Na = ["inn
|
|
|
3103
3102
|
]),
|
|
3104
3103
|
_: 1
|
|
3105
3104
|
}, 16, ["modelValue"]),
|
|
3106
|
-
e(u).prompt.visible ? (n(), k(Xa,
|
|
3105
|
+
e(u).prompt.visible ? (n(), k(Xa, de(E({ key: 0 }, e(u).prompt)), {
|
|
3107
3106
|
default: f(() => [
|
|
3108
3107
|
D(V(e(u).prompt.body), 1)
|
|
3109
3108
|
]),
|
|
@@ -3146,7 +3145,7 @@ const wl = /* @__PURE__ */ G(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3146
3145
|
}, rl = ["onClick"], ul = {
|
|
3147
3146
|
key: 1,
|
|
3148
3147
|
class: "tabs__context-menu"
|
|
3149
|
-
},
|
|
3148
|
+
}, cl = ["onClick"], dl = /* @__PURE__ */ U({
|
|
3150
3149
|
__name: "aeria-tabs",
|
|
3151
3150
|
props: {
|
|
3152
3151
|
query: {},
|
|
@@ -3154,7 +3153,7 @@ const wl = /* @__PURE__ */ G(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3154
3153
|
dropdown: { type: Boolean }
|
|
3155
3154
|
},
|
|
3156
3155
|
setup(p) {
|
|
3157
|
-
const u = p, a = wt(), t = Ie(), o = Ue(),
|
|
3156
|
+
const u = p, a = wt(), t = Ie(), o = Ue(), c = X(() => {
|
|
3158
3157
|
if (u.query) {
|
|
3159
3158
|
const m = t.currentRoute.value.query[u.query];
|
|
3160
3159
|
if (m)
|
|
@@ -3166,17 +3165,17 @@ const wl = /* @__PURE__ */ G(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3166
3165
|
}
|
|
3167
3166
|
return Object.keys(a)[0];
|
|
3168
3167
|
}), r = (m) => {
|
|
3169
|
-
u.query && t.push(
|
|
3168
|
+
u.query && t.push(ze(t.currentRoute.value, {
|
|
3170
3169
|
query: {
|
|
3171
3170
|
[u.query]: m
|
|
3172
3171
|
}
|
|
3173
|
-
})), u.param && t.push(
|
|
3172
|
+
})), u.param && t.push(ze(t.currentRoute.value, {
|
|
3174
3173
|
params: {
|
|
3175
3174
|
[u.param]: m
|
|
3176
3175
|
}
|
|
3177
3176
|
}));
|
|
3178
3177
|
};
|
|
3179
|
-
return (m,
|
|
3178
|
+
return (m, d) => {
|
|
3180
3179
|
const h = te("clickable");
|
|
3181
3180
|
return n(), s("div", ll, [
|
|
3182
3181
|
e(o).md && !m.dropdown ? (n(), s("div", sl, [
|
|
@@ -3187,14 +3186,14 @@ const wl = /* @__PURE__ */ G(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3187
3186
|
key: i,
|
|
3188
3187
|
class: K({
|
|
3189
3188
|
tabs__tab: !0,
|
|
3190
|
-
"tabs__tab--current": i ===
|
|
3189
|
+
"tabs__tab--current": i === c.value || !c.value && l === 0
|
|
3191
3190
|
}),
|
|
3192
3191
|
onClick: (B) => r(i)
|
|
3193
3192
|
}, [
|
|
3194
3193
|
C(m.$slots, i, {}, void 0, !0)
|
|
3195
3194
|
], 10, rl))), 128))
|
|
3196
3195
|
])) : (n(), s("div", ul, [
|
|
3197
|
-
|
|
3196
|
+
q(Oe, null, ce({
|
|
3198
3197
|
default: f(({ visible: i }) => [
|
|
3199
3198
|
P((n(), k(J, {
|
|
3200
3199
|
"icon-right": "",
|
|
@@ -3204,7 +3203,7 @@ const wl = /* @__PURE__ */ G(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3204
3203
|
class: "tabs__context-menu-icon"
|
|
3205
3204
|
}, {
|
|
3206
3205
|
default: f(() => [
|
|
3207
|
-
C(m.$slots,
|
|
3206
|
+
C(m.$slots, c.value, {}, void 0, !0)
|
|
3208
3207
|
]),
|
|
3209
3208
|
_: 2
|
|
3210
3209
|
}, 1032, ["active"])), [
|
|
@@ -3220,7 +3219,7 @@ const wl = /* @__PURE__ */ G(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3220
3219
|
onClick: (l) => r(i)
|
|
3221
3220
|
}, [
|
|
3222
3221
|
C(m.$slots, i, {}, void 0, !0)
|
|
3223
|
-
], 8,
|
|
3222
|
+
], 8, cl)
|
|
3224
3223
|
])
|
|
3225
3224
|
}))
|
|
3226
3225
|
]), 1024)
|
|
@@ -3229,7 +3228,7 @@ const wl = /* @__PURE__ */ G(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3229
3228
|
};
|
|
3230
3229
|
}
|
|
3231
3230
|
});
|
|
3232
|
-
const pl = /* @__PURE__ */ G(
|
|
3231
|
+
const pl = /* @__PURE__ */ G(dl, [["__scopeId", "data-v-a20914ab"]]), ml = U({
|
|
3233
3232
|
props: {
|
|
3234
3233
|
initialValue: String,
|
|
3235
3234
|
promise: Promise
|
|
@@ -3246,23 +3245,23 @@ const pl = /* @__PURE__ */ G(cl, [["__scopeId", "data-v-a20914ab"]]), ml = U({
|
|
|
3246
3245
|
collection: {}
|
|
3247
3246
|
},
|
|
3248
3247
|
setup(p) {
|
|
3249
|
-
const u = p, t = Ie().currentRoute, o = Ye(),
|
|
3250
|
-
const { error: h, result: i } = await
|
|
3248
|
+
const u = p, t = Ie().currentRoute, o = Ye(), c = X(() => u.collection ? Le(u.collection, o) : typeof t.value.meta.collection == "string" ? Le(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Le(t.value.params.collection, o) : null), r = async (m, d) => {
|
|
3249
|
+
const { error: h, result: i } = await d.$functions[m.badgeFunction]({
|
|
3251
3250
|
filters: m.filters
|
|
3252
3251
|
});
|
|
3253
3252
|
return h ? 0 : i;
|
|
3254
3253
|
};
|
|
3255
|
-
return (m,
|
|
3254
|
+
return (m, d) => c.value && c.value.description.filtersPresets ? (n(), k(pl, {
|
|
3256
3255
|
key: 0,
|
|
3257
3256
|
dropdown: "",
|
|
3258
3257
|
query: "section"
|
|
3259
|
-
},
|
|
3260
|
-
Q(Object.entries(
|
|
3258
|
+
}, ce({ _: 2 }, [
|
|
3259
|
+
Q(Object.entries(c.value.description.filtersPresets), ([h, i]) => ({
|
|
3261
3260
|
name: h,
|
|
3262
3261
|
fn: f(() => [
|
|
3263
3262
|
A("div", {
|
|
3264
3263
|
class: "topbar__preset",
|
|
3265
|
-
onClick: (l) => e(kt)(i,
|
|
3264
|
+
onClick: (l) => e(kt)(i, c.value)
|
|
3266
3265
|
}, [
|
|
3267
3266
|
i.icon ? (n(), k(J, {
|
|
3268
3267
|
key: 0,
|
|
@@ -3275,9 +3274,9 @@ const pl = /* @__PURE__ */ G(cl, [["__scopeId", "data-v-a20914ab"]]), ml = U({
|
|
|
3275
3274
|
}, 1032, ["icon"])) : (n(), s("div", fl, V(i.label || e(R)(h, { plural: !0 })), 1)),
|
|
3276
3275
|
i.badgeFunction ? (n(), k($e, { key: 2 }, {
|
|
3277
3276
|
default: f(() => [
|
|
3278
|
-
|
|
3277
|
+
q(e(ml), {
|
|
3279
3278
|
"initial-value": "0",
|
|
3280
|
-
promise: async () => String(r(i,
|
|
3279
|
+
promise: async () => String(r(i, c.value))
|
|
3281
3280
|
}, null, 8, ["promise"])
|
|
3282
3281
|
]),
|
|
3283
3282
|
_: 2
|
|
@@ -3300,11 +3299,11 @@ const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @_
|
|
|
3300
3299
|
setup(p) {
|
|
3301
3300
|
const u = p;
|
|
3302
3301
|
ye(Fe, null);
|
|
3303
|
-
const a =
|
|
3302
|
+
const a = Ht(), t = X(() => a(
|
|
3304
3303
|
u.modelValue.password,
|
|
3305
3304
|
u.modelValue.confirmation
|
|
3306
3305
|
));
|
|
3307
|
-
return (o,
|
|
3306
|
+
return (o, c) => (n(), k(Qe, {
|
|
3308
3307
|
form: {
|
|
3309
3308
|
password: {
|
|
3310
3309
|
type: "string",
|
|
@@ -3318,11 +3317,11 @@ const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @_
|
|
|
3318
3317
|
}
|
|
3319
3318
|
},
|
|
3320
3319
|
"model-value": o.modelValue,
|
|
3321
|
-
"onUpdate:modelValue":
|
|
3320
|
+
"onUpdate:modelValue": c[0] || (c[0] = (r) => o.$emit("update:modelValue", r))
|
|
3322
3321
|
}, {
|
|
3323
3322
|
after: f(() => [
|
|
3324
3323
|
A("div", null, V(t.value || "Senhas conferem"), 1),
|
|
3325
|
-
C(o.$slots, "default",
|
|
3324
|
+
C(o.$slots, "default", de(ge({ passwordError: t.value })))
|
|
3326
3325
|
]),
|
|
3327
3326
|
_: 3
|
|
3328
3327
|
}, 8, ["model-value"]));
|
|
@@ -3345,7 +3344,7 @@ const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @_
|
|
|
3345
3344
|
{
|
|
3346
3345
|
path: "signin",
|
|
3347
3346
|
name: "/user/signin",
|
|
3348
|
-
component: () => import("./signin-
|
|
3347
|
+
component: () => import("./signin-896e35f4.js"),
|
|
3349
3348
|
meta: {
|
|
3350
3349
|
title: "Autenticação"
|
|
3351
3350
|
}
|
|
@@ -3353,7 +3352,7 @@ const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @_
|
|
|
3353
3352
|
{
|
|
3354
3353
|
path: "signup",
|
|
3355
3354
|
name: "/user/signup",
|
|
3356
|
-
component: () => import("./signup-
|
|
3355
|
+
component: () => import("./signup-574b4c47.js"),
|
|
3357
3356
|
meta: {
|
|
3358
3357
|
title: "Registro"
|
|
3359
3358
|
}
|
|
@@ -3361,7 +3360,7 @@ const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @_
|
|
|
3361
3360
|
{
|
|
3362
3361
|
path: "activation",
|
|
3363
3362
|
name: "/user/activation",
|
|
3364
|
-
component: () => import("./activation-
|
|
3363
|
+
component: () => import("./activation-b3c0b26e.js"),
|
|
3365
3364
|
meta: {
|
|
3366
3365
|
title: "Ativação"
|
|
3367
3366
|
}
|
|
@@ -3383,7 +3382,7 @@ const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @_
|
|
|
3383
3382
|
name: "/dashboard/:collection",
|
|
3384
3383
|
props: !0,
|
|
3385
3384
|
components: {
|
|
3386
|
-
default: () => import("./index-
|
|
3385
|
+
default: () => import("./index-9c3d342a.js"),
|
|
3387
3386
|
topbar: () => Promise.resolve().then(() => bl)
|
|
3388
3387
|
},
|
|
3389
3388
|
meta: {
|
|
@@ -3395,7 +3394,7 @@ const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @_
|
|
|
3395
3394
|
name: "/dashboard/:collection/:id",
|
|
3396
3395
|
props: !0,
|
|
3397
3396
|
components: {
|
|
3398
|
-
default: () => import("./_id_-
|
|
3397
|
+
default: () => import("./_id_-07ecbbed.js")
|
|
3399
3398
|
},
|
|
3400
3399
|
meta: {
|
|
3401
3400
|
title: "%viewTitle%"
|
|
@@ -3413,7 +3412,7 @@ const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @_
|
|
|
3413
3412
|
children: [
|
|
3414
3413
|
{
|
|
3415
3414
|
path: "profile",
|
|
3416
|
-
component: () => import("./index-
|
|
3415
|
+
component: () => import("./index-d4925927.js"),
|
|
3417
3416
|
meta: {
|
|
3418
3417
|
title: "Meu perfil",
|
|
3419
3418
|
icon: "user-square"
|
|
@@ -3422,7 +3421,7 @@ const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-5f3141a5"]]), bl = /* @_
|
|
|
3422
3421
|
{
|
|
3423
3422
|
path: "changepass",
|
|
3424
3423
|
name: "/dashboard/user/changepass",
|
|
3425
|
-
component: () => import("./index-
|
|
3424
|
+
component: () => import("./index-ce5a37bd.js"),
|
|
3426
3425
|
meta: {
|
|
3427
3426
|
title: "Mudar senha",
|
|
3428
3427
|
icon: "lock"
|
|
@@ -3460,7 +3459,7 @@ export {
|
|
|
3460
3459
|
Yo as p,
|
|
3461
3460
|
$n as q,
|
|
3462
3461
|
Bl as r,
|
|
3463
|
-
|
|
3462
|
+
zn as s,
|
|
3464
3463
|
Sa as t,
|
|
3465
3464
|
pl as u,
|
|
3466
3465
|
_o as v,
|