@aeria-ui/ui 0.0.30 → 0.0.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activation-2cac4071.js → activation-a5c1758c.js} +1 -1
- package/dist/components/aeria-picture/aeria-picture.vue.d.ts +1 -0
- package/dist/{crud-view-7e492037.js → crud-view-e9da0195.js} +1 -1
- package/dist/{index-d8005af3.js → index-0078f1b5.js} +327 -321
- package/dist/{password-change-98fb5a7f.js → password-change-2e446552.js} +1 -1
- package/dist/{profile-f12526fb.js → profile-7ee43576.js} +10 -10
- package/dist/{signin-9aab98af.js → signin-239b50f9.js} +1 -1
- package/dist/{signup-caa26d80.js → signup-41aa6fb5.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as i, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as g, createCommentVNode as f, createTextVNode as Q, unref as t, renderSlot as V, inject as fe, computed as D, createElementVNode as k, mergeProps as G, createBlock as $, resolveDynamicComponent as ye, withCtx as m, useCssVars as $t, Teleport as We, watch as ue, createVNode as F, vModelDynamic as bt, onBeforeMount as mt, normalizeStyle as he, withModifiers as Fe, pushScopeId as qe, popScopeId as Ue, provide as ve, onMounted as gt, isRef as je, normalizeProps as
|
|
1
|
+
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as i, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as g, createCommentVNode as f, createTextVNode as Q, unref as t, renderSlot as V, inject as fe, computed as D, createElementVNode as k, mergeProps as G, createBlock as $, resolveDynamicComponent as ye, withCtx as m, useCssVars as $t, Teleport as We, watch as ue, createVNode as F, vModelDynamic as bt, onBeforeMount as mt, normalizeStyle as he, withModifiers as Fe, pushScopeId as qe, popScopeId as Ue, provide as ve, onMounted as gt, isRef as je, normalizeProps as se, guardReactiveProps as be, createSlots as de, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as It, useSlots as At, h as Ot } from "vue";
|
|
2
2
|
import { t as M, useI18n as wt } from "@aeria-ui/i18n";
|
|
3
3
|
import { useScrollObserver as Xe, useBreakpoints as Te, useClipboard as Bt, PAGINATION_PER_PAGE_DEFAULTS as St, API_URL as ft, request as jt, useDebounce as vt, isDocumentComplete as Tt, convertToSearchQuery as Lt, useAction as Rt, convertFromSearchQuery as zt, usePasswordPolicy as Ft } from "@aeria-ui/web";
|
|
4
4
|
import { useStore as ce, getStoreId as Le, useParentStore as ge, STORE_ID as Ee, getGlobalStateManager as Mt } from "@aeria-ui/state-management";
|
|
@@ -16,8 +16,8 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
16
16
|
},
|
|
17
17
|
setup(c) {
|
|
18
18
|
const u = Y(null), e = (a) => typeof a == "string" ? a : a.title;
|
|
19
|
-
return (a,
|
|
20
|
-
const
|
|
19
|
+
return (a, l) => {
|
|
20
|
+
const s = N("clickable");
|
|
21
21
|
return n(), i("div", {
|
|
22
22
|
class: W({
|
|
23
23
|
accordion: !0,
|
|
@@ -35,7 +35,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
35
35
|
a.enumerate ? (n(), i("span", Qt, g(y + 1) + ". ", 1)) : f("", !0),
|
|
36
36
|
Q(" " + g(a.headers[r] ? e(a.headers[r]) : t(M)(r)), 1)
|
|
37
37
|
], 8, Dt)), [
|
|
38
|
-
[
|
|
38
|
+
[s]
|
|
39
39
|
]),
|
|
40
40
|
u.value === r ? (n(), i("div", Gt, [
|
|
41
41
|
V(a.$slots, r, {}, void 0, !0)
|
|
@@ -47,10 +47,10 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
47
47
|
});
|
|
48
48
|
const X = (c, u) => {
|
|
49
49
|
const e = c.__vccOpts || c;
|
|
50
|
-
for (const [a,
|
|
51
|
-
e[a] =
|
|
50
|
+
for (const [a, l] of u)
|
|
51
|
+
e[a] = l;
|
|
52
52
|
return e;
|
|
53
|
-
},
|
|
53
|
+
}, Sl = /* @__PURE__ */ X(Wt, [["__scopeId", "data-v-3ea933d4"]]), Xt = /* @__PURE__ */ U({
|
|
54
54
|
__name: "aeria-badge",
|
|
55
55
|
props: {
|
|
56
56
|
large: { type: Boolean },
|
|
@@ -75,17 +75,17 @@ const $e = /* @__PURE__ */ X(Xt, [["__scopeId", "data-v-47f92648"]]), Yt = /* @_
|
|
|
75
75
|
},
|
|
76
76
|
emits: ["click"],
|
|
77
77
|
setup(c, { emit: u }) {
|
|
78
|
-
const e = c, a = u,
|
|
79
|
-
e.disabled || a("click",
|
|
78
|
+
const e = c, a = u, l = (s) => {
|
|
79
|
+
e.disabled || a("click", s);
|
|
80
80
|
};
|
|
81
|
-
return (
|
|
81
|
+
return (s, r) => (n(), i("button", {
|
|
82
82
|
class: W(`
|
|
83
83
|
barebutton
|
|
84
|
-
barebutton--${
|
|
84
|
+
barebutton--${s.disabled ? "disabled" : "enabled"}
|
|
85
85
|
`),
|
|
86
|
-
onClick:
|
|
86
|
+
onClick: l
|
|
87
87
|
}, [
|
|
88
|
-
V(
|
|
88
|
+
V(s.$slots, "default", {}, void 0, !0)
|
|
89
89
|
], 2));
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -104,21 +104,21 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
104
104
|
},
|
|
105
105
|
setup(c) {
|
|
106
106
|
const u = c, e = typeof u.reactive == "boolean" ? u.reactive : fe("iconReactive", !1), a = D(() => {
|
|
107
|
-
var
|
|
108
|
-
return (
|
|
107
|
+
var l;
|
|
108
|
+
return (l = u.icon) != null && l.includes(":") ? u.icon : `regular:${u.icon}`;
|
|
109
109
|
});
|
|
110
|
-
return (
|
|
110
|
+
return (l, s) => (n(), i("a", {
|
|
111
111
|
class: W(`
|
|
112
112
|
icon
|
|
113
113
|
${t(e) && "icon--reactive"}
|
|
114
|
-
${
|
|
114
|
+
${l.$slots.default ? "icon--centered" : "icon--standalone"}
|
|
115
115
|
`)
|
|
116
116
|
}, [
|
|
117
117
|
k("div", {
|
|
118
118
|
class: W(`
|
|
119
119
|
icon__icon
|
|
120
|
-
${
|
|
121
|
-
${
|
|
120
|
+
${l.size && `icon__icon--${l.size}`}
|
|
121
|
+
${l.iconRight && "icon__icon--right"}
|
|
122
122
|
`)
|
|
123
123
|
}, [
|
|
124
124
|
(n(), i("svg", G({
|
|
@@ -127,15 +127,15 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
127
127
|
viewBox: "0 0 256 256",
|
|
128
128
|
"data-component": "icon"
|
|
129
129
|
}, {
|
|
130
|
-
...
|
|
130
|
+
...l.fill ? { fill: l.fill } : {}
|
|
131
131
|
}), [
|
|
132
132
|
k("use", {
|
|
133
133
|
href: `/assets/icons.svg#${a.value}`
|
|
134
134
|
}, null, 8, Jt)
|
|
135
135
|
], 16))
|
|
136
136
|
], 2),
|
|
137
|
-
|
|
138
|
-
V(
|
|
137
|
+
l.$slots.default ? (n(), i("div", Kt, [
|
|
138
|
+
V(l.$slots, "default", {}, void 0, !0)
|
|
139
139
|
])) : f("", !0)
|
|
140
140
|
], 2));
|
|
141
141
|
}
|
|
@@ -167,12 +167,12 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
167
167
|
},
|
|
168
168
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
169
169
|
setup(c, { emit: u }) {
|
|
170
|
-
const e = c, a = u,
|
|
170
|
+
const e = c, a = u, l = D(() => e.floating || e.float), s = Y(e.collapsed), r = Y(null), { reachedEnd: y } = Xe(r), p = () => {
|
|
171
171
|
a("update:modelValue", !1), a("close");
|
|
172
172
|
}, h = () => {
|
|
173
173
|
a("overlayClick");
|
|
174
174
|
}, d = (o) => {
|
|
175
|
-
a("update:collapsed", o),
|
|
175
|
+
a("update:collapsed", o), s.value = o;
|
|
176
176
|
};
|
|
177
177
|
return (o, v) => {
|
|
178
178
|
const b = N("clickable"), C = N("loading"), R = N("overlay");
|
|
@@ -184,14 +184,14 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
184
184
|
`)
|
|
185
185
|
}, [
|
|
186
186
|
(n(), $(ye(
|
|
187
|
-
|
|
187
|
+
l.value ? "dialog" : "div"
|
|
188
188
|
), {
|
|
189
189
|
"data-component": "panel",
|
|
190
190
|
class: W(`
|
|
191
191
|
aeria-surface
|
|
192
192
|
panel__content
|
|
193
|
-
${!(
|
|
194
|
-
${
|
|
193
|
+
${!(l.value || o.fixedRight) && "panel__content--rounded"}
|
|
194
|
+
${l.value && "panel__content--floating"}
|
|
195
195
|
${o.bordered && "panel__content--bordered-body"}
|
|
196
196
|
${o.fixedRight && "panel__content--fixed-right"}
|
|
197
197
|
${o.transparent && "panel__content--transparent"}
|
|
@@ -205,7 +205,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
205
205
|
key: 0,
|
|
206
206
|
class: W(`
|
|
207
207
|
panel__header
|
|
208
|
-
${
|
|
208
|
+
${s.value && "panel__header--collapsed"}
|
|
209
209
|
${o.outerHeader && "panel__header--outer"}
|
|
210
210
|
`)
|
|
211
211
|
}, [
|
|
@@ -218,8 +218,8 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
218
218
|
o.collapsible ? Z((n(), $(K, {
|
|
219
219
|
key: 0,
|
|
220
220
|
reactive: "",
|
|
221
|
-
icon:
|
|
222
|
-
onClick: v[0] || (v[0] = (T) => d(!
|
|
221
|
+
icon: s.value ? "plus" : "minus",
|
|
222
|
+
onClick: v[0] || (v[0] = (T) => d(!s.value))
|
|
223
223
|
}, null, 8, ["icon"])), [
|
|
224
224
|
[b]
|
|
225
225
|
]) : o.closeHint ? Z((n(), $(K, {
|
|
@@ -231,7 +231,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
231
231
|
[b]
|
|
232
232
|
]) : f("", !0)
|
|
233
233
|
], 2)) : f("", !0),
|
|
234
|
-
|
|
234
|
+
s.value ? f("", !0) : Z((n(), i("div", {
|
|
235
235
|
key: 1,
|
|
236
236
|
ref_key: "body",
|
|
237
237
|
ref: r,
|
|
@@ -259,10 +259,10 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
259
259
|
}, 8, ["class"]))
|
|
260
260
|
], 2)), [
|
|
261
261
|
[R, {
|
|
262
|
-
condition: o.overlay || o.fixedRight ||
|
|
262
|
+
condition: o.overlay || o.fixedRight || l.value,
|
|
263
263
|
invisible: o.invisibleOverlay,
|
|
264
264
|
click: h,
|
|
265
|
-
layer: o.overlayLayer || (
|
|
265
|
+
layer: o.overlayLayer || (l.value ? 60 : o.fixedRight ? 50 : 0)
|
|
266
266
|
}]
|
|
267
267
|
]) : f("", !0);
|
|
268
268
|
};
|
|
@@ -292,35 +292,35 @@ const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-72abeadd"]]), tn = { cla
|
|
|
292
292
|
}
|
|
293
293
|
return fe("buttonSize", u.size) || "medium";
|
|
294
294
|
})();
|
|
295
|
-
return (
|
|
295
|
+
return (l, s) => (n(), $(me, {
|
|
296
296
|
class: W(`
|
|
297
297
|
button
|
|
298
298
|
button--${t(e)}
|
|
299
299
|
button--${t(a)}
|
|
300
|
-
${
|
|
300
|
+
${l.loading && "button--loading"}
|
|
301
301
|
`),
|
|
302
|
-
disabled:
|
|
302
|
+
disabled: l.disabled
|
|
303
303
|
}, {
|
|
304
304
|
default: m(() => [
|
|
305
|
-
|
|
305
|
+
l.icon ? (n(), $(K, {
|
|
306
306
|
key: 0,
|
|
307
|
-
icon:
|
|
307
|
+
icon: l.icon
|
|
308
308
|
}, {
|
|
309
309
|
default: m(() => [
|
|
310
310
|
k("div", tn, [
|
|
311
|
-
V(
|
|
311
|
+
V(l.$slots, "default", {}, void 0, !0)
|
|
312
312
|
])
|
|
313
313
|
]),
|
|
314
314
|
_: 3
|
|
315
315
|
}, 8, ["icon"])) : (n(), i("div", nn, [
|
|
316
|
-
V(
|
|
316
|
+
V(l.$slots, "default", {}, void 0, !0)
|
|
317
317
|
]))
|
|
318
318
|
]),
|
|
319
319
|
_: 3
|
|
320
320
|
}, 8, ["class", "disabled"]));
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
|
-
const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { class: "card__picture" },
|
|
323
|
+
const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { class: "card__picture" }, ln = { class: "card__footer" }, sn = { class: "card__footer-upper" }, rn = { class: "card__badge" }, un = /* @__PURE__ */ U({
|
|
324
324
|
__name: "aeria-card",
|
|
325
325
|
props: {
|
|
326
326
|
inactive: { type: Boolean },
|
|
@@ -337,8 +337,8 @@ const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { cla
|
|
|
337
337
|
k("div", an, [
|
|
338
338
|
V(u.$slots, "default", {}, void 0, !0)
|
|
339
339
|
]),
|
|
340
|
-
k("div",
|
|
341
|
-
k("div",
|
|
340
|
+
k("div", ln, [
|
|
341
|
+
k("div", sn, [
|
|
342
342
|
k("div", null, [
|
|
343
343
|
V(u.$slots, "footer", {}, void 0, !0)
|
|
344
344
|
]),
|
|
@@ -367,20 +367,20 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
367
367
|
fae20070: p.value.x,
|
|
368
368
|
fae2006e: p.value.y
|
|
369
369
|
}));
|
|
370
|
-
const e = u, a = ce("user"),
|
|
370
|
+
const e = u, a = ce("user"), l = Y(null), s = Y(!1), r = (h) => h.filter((d) => d.roles ? d.roles.include(a.currentUser.role) : !!d.click), y = (h, d) => {
|
|
371
371
|
h.click(d), e("actionClick", {
|
|
372
372
|
action: h,
|
|
373
373
|
subject: d
|
|
374
|
-
}),
|
|
374
|
+
}), s.value = !1;
|
|
375
375
|
}, p = D(() => {
|
|
376
|
-
if (!
|
|
376
|
+
if (!l.value)
|
|
377
377
|
return {
|
|
378
378
|
x: 0,
|
|
379
379
|
y: 0
|
|
380
380
|
};
|
|
381
|
-
const h =
|
|
381
|
+
const h = l.value.getBoundingClientRect().top, d = l.value.getBoundingClientRect().left, o = l.value.offsetHeight;
|
|
382
382
|
return {
|
|
383
|
-
_:
|
|
383
|
+
_: s.value,
|
|
384
384
|
x: Math.floor(d) + "px",
|
|
385
385
|
y: Math.floor(h + o) + "px"
|
|
386
386
|
};
|
|
@@ -392,23 +392,23 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
392
392
|
Object.keys(h.$slots).some((b) => b !== "default") || ((v = h.actions) == null ? void 0 : v.length) > 0 ? (n(), i("div", {
|
|
393
393
|
key: 0,
|
|
394
394
|
ref_key: "contextmenu",
|
|
395
|
-
ref:
|
|
395
|
+
ref: l,
|
|
396
396
|
class: "contextmenu"
|
|
397
397
|
}, [
|
|
398
398
|
k("a", {
|
|
399
399
|
class: "contextmenu__trigger",
|
|
400
|
-
onClick: d[0] || (d[0] = (b) =>
|
|
400
|
+
onClick: d[0] || (d[0] = (b) => s.value = !0)
|
|
401
401
|
}, [
|
|
402
402
|
V(h.$slots, "default", {}, void 0, !0)
|
|
403
403
|
])
|
|
404
404
|
], 512)) : f("", !0),
|
|
405
|
-
|
|
405
|
+
s.value ? (n(), $(We, {
|
|
406
406
|
key: 1,
|
|
407
407
|
to: "main"
|
|
408
408
|
}, [
|
|
409
409
|
Z((n(), $(Ae, {
|
|
410
|
-
modelValue:
|
|
411
|
-
"onUpdate:modelValue": d[4] || (d[4] = (b) =>
|
|
410
|
+
modelValue: s.value,
|
|
411
|
+
"onUpdate:modelValue": d[4] || (d[4] = (b) => s.value = b),
|
|
412
412
|
fill: "",
|
|
413
413
|
class: "content"
|
|
414
414
|
}, {
|
|
@@ -422,7 +422,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
422
422
|
Object.keys(h.$slots).filter((C) => !["default", "extra", "header"].includes(C)).length > 0 ? (n(), i("div", {
|
|
423
423
|
key: 1,
|
|
424
424
|
class: "content__section",
|
|
425
|
-
onClick: d[1] || (d[1] = (C) =>
|
|
425
|
+
onClick: d[1] || (d[1] = (C) => s.value = !1)
|
|
426
426
|
}, [
|
|
427
427
|
(n(!0), i(J, null, H(Object.keys(h.$slots).filter((C) => !["default", "extra", "header"].includes(C)), (C, R) => (n(), $(me, {
|
|
428
428
|
key: `slot-${R}`,
|
|
@@ -437,7 +437,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
437
437
|
((b = h.actions) == null ? void 0 : b.length) > 0 ? (n(), i("div", {
|
|
438
438
|
key: 2,
|
|
439
439
|
class: "content__section",
|
|
440
|
-
onClick: d[2] || (d[2] = (C) =>
|
|
440
|
+
onClick: d[2] || (d[2] = (C) => s.value = !1)
|
|
441
441
|
}, [
|
|
442
442
|
(n(!0), i(J, null, H(r(h.actions), (C, R) => (n(), $(me, {
|
|
443
443
|
key: `action-${R}`,
|
|
@@ -461,7 +461,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
461
461
|
h.$slots.extra ? (n(), i("div", {
|
|
462
462
|
key: 3,
|
|
463
463
|
class: "content__section",
|
|
464
|
-
onClick: d[3] || (d[3] = (C) =>
|
|
464
|
+
onClick: d[3] || (d[3] = (C) => s.value = !1)
|
|
465
465
|
}, [
|
|
466
466
|
k("div", _n, [
|
|
467
467
|
h.$slots.extra ? V(h.$slots, "extra", { key: 0 }, void 0, !0) : f("", !0)
|
|
@@ -477,7 +477,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
477
477
|
{
|
|
478
478
|
layer: h.overlayLayer,
|
|
479
479
|
click: () => {
|
|
480
|
-
|
|
480
|
+
s.value = !1;
|
|
481
481
|
}
|
|
482
482
|
},
|
|
483
483
|
void 0,
|
|
@@ -495,8 +495,8 @@ const Ce = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-24506525"]]), fn = { cla
|
|
|
495
495
|
where: {}
|
|
496
496
|
},
|
|
497
497
|
setup(c) {
|
|
498
|
-
const u = c, e = Te(), a = Y(!1),
|
|
499
|
-
return (
|
|
498
|
+
const u = c, e = Te(), a = Y(!1), l = u.where || "top";
|
|
499
|
+
return (s, r) => t(e).md ? (n(), i("div", {
|
|
500
500
|
key: 0,
|
|
501
501
|
class: "info",
|
|
502
502
|
onMouseleave: r[1] || (r[1] = (y) => a.value = !1)
|
|
@@ -505,19 +505,19 @@ const Ce = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-24506525"]]), fn = { cla
|
|
|
505
505
|
key: 0,
|
|
506
506
|
class: W(`
|
|
507
507
|
info__bubble
|
|
508
|
-
info__bubble--${t(
|
|
508
|
+
info__bubble--${t(l)}
|
|
509
509
|
`)
|
|
510
510
|
}, [
|
|
511
511
|
k("div", fn, [
|
|
512
|
-
V(
|
|
512
|
+
V(s.$slots, "text", {}, void 0, !0)
|
|
513
513
|
])
|
|
514
514
|
], 2)) : f("", !0),
|
|
515
515
|
k("div", {
|
|
516
516
|
onMouseover: r[0] || (r[0] = (y) => a.value = !0)
|
|
517
517
|
}, [
|
|
518
|
-
V(
|
|
518
|
+
V(s.$slots, "default", {}, void 0, !0)
|
|
519
519
|
], 32)
|
|
520
|
-
], 32)) : V(
|
|
520
|
+
], 32)) : V(s.$slots, "default", { key: 1 }, void 0, !0);
|
|
521
521
|
}
|
|
522
522
|
});
|
|
523
523
|
const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { class: "input" }, $n = {
|
|
@@ -541,7 +541,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
541
541
|
},
|
|
542
542
|
emits: ["update:modelValue", "input", "change"],
|
|
543
543
|
setup(c, { emit: u }) {
|
|
544
|
-
const e = c, a = e.property || {},
|
|
544
|
+
const e = c, a = e.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", s = fe("searchOnly", !1), r = fe("innerInputLabel", !1), y = !s && a.readOnly, p = Bt(), h = u, d = fe("inputVariant", e.variant) || "normal", o = {
|
|
545
545
|
name: e.propertyName,
|
|
546
546
|
readonly: y,
|
|
547
547
|
type: (() => {
|
|
@@ -564,7 +564,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
564
564
|
})(),
|
|
565
565
|
placeholder: r ? a.description || e.propertyName : a.placeholder
|
|
566
566
|
};
|
|
567
|
-
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (o.min = a.minimum), a.exclusiveMinimum && (o.min = a.exclusiveMinimum + 1), a.maximum && (o.max = a.maximum), a.exclusiveMaximum && (o.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (o.type = !
|
|
567
|
+
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (o.min = a.minimum), a.exclusiveMinimum && (o.min = a.exclusiveMinimum + 1), a.maximum && (o.max = a.maximum), a.exclusiveMaximum && (o.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (o.type = !s && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && s && (o.type = "search");
|
|
568
568
|
const v = () => {
|
|
569
569
|
try {
|
|
570
570
|
return e.modelValue ? new Date(e.modelValue).toISOString().split("T").shift() : "";
|
|
@@ -596,7 +596,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
596
596
|
return ue(() => e.modelValue, (T, q) => {
|
|
597
597
|
T instanceof Date || (q && !T ? b.value = void 0 : T && q === void 0 && (b.value = T));
|
|
598
598
|
}), (T, q) => {
|
|
599
|
-
const w = N("focus"),
|
|
599
|
+
const w = N("focus"), le = N("clickable");
|
|
600
600
|
return n(), i("label", hn, [
|
|
601
601
|
t(r) ? f("", !0) : (n(), i("div", $n, [
|
|
602
602
|
T.$slots.default ? V(T.$slots, "default", { key: 0 }, void 0, !0) : V(T.$slots, "description", { key: 1 }, void 0, !0)
|
|
@@ -636,7 +636,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
636
636
|
class: `
|
|
637
637
|
input__input
|
|
638
638
|
input__input--${t(d)}
|
|
639
|
-
${t(
|
|
639
|
+
${t(l) && "input__input--icon"}
|
|
640
640
|
${t(y) && "input__input--readOnly"}
|
|
641
641
|
`,
|
|
642
642
|
onInput: R,
|
|
@@ -644,7 +644,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
644
644
|
}), null, 16, kn), [
|
|
645
645
|
[w, t(a).focus]
|
|
646
646
|
]),
|
|
647
|
-
t(
|
|
647
|
+
t(l) ? (n(), $(K, {
|
|
648
648
|
key: 0,
|
|
649
649
|
icon: t(a).icon || "magnifying-glass",
|
|
650
650
|
class: W(`
|
|
@@ -662,7 +662,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
662
662
|
icon: "clipboard",
|
|
663
663
|
onClick: q[1] || (q[1] = (oe) => t(p)(String(T.modelValue || "")))
|
|
664
664
|
}, null, 512), [
|
|
665
|
-
[
|
|
665
|
+
[le]
|
|
666
666
|
])
|
|
667
667
|
]),
|
|
668
668
|
_: 1
|
|
@@ -690,7 +690,7 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["val
|
|
|
690
690
|
},
|
|
691
691
|
emits: ["update:modelValue", "change"],
|
|
692
692
|
setup(c, { emit: u }) {
|
|
693
|
-
const e = c, a = u,
|
|
693
|
+
const e = c, a = u, l = Y(null), s = e.property || {}, r = (d) => {
|
|
694
694
|
e.booleanRef && (y.value = d), a("update:modelValue", (d == null ? void 0 : d._id) || d), a("change", (d == null ? void 0 : d._id) || d);
|
|
695
695
|
}, y = e.booleanRef ? (() => {
|
|
696
696
|
const d = Y(e.modelValue);
|
|
@@ -706,10 +706,10 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["val
|
|
|
706
706
|
}), p = (d) => Array.isArray(e.modelValue) ? e.modelValue.includes(d) : e.modelValue === d, h = D(() => e.multiple ? typeof e.multiple == "number" ? e.multiple : 5 : 1);
|
|
707
707
|
return e.multiple && ue(() => e.modelValue, (d) => {
|
|
708
708
|
var v;
|
|
709
|
-
if (!
|
|
709
|
+
if (!l.value)
|
|
710
710
|
return;
|
|
711
|
-
const o =
|
|
712
|
-
o && o.removeAttribute("data-selected"), (v =
|
|
711
|
+
const o = l.value.querySelector('option[data-selected="true"]');
|
|
712
|
+
o && o.removeAttribute("data-selected"), (v = l.value.querySelector(`option[value="${d}"]`)) == null || v.setAttribute("data-selected", "true");
|
|
713
713
|
}), (d, o) => (n(), i("div", {
|
|
714
714
|
class: W({
|
|
715
715
|
select: !0,
|
|
@@ -718,7 +718,7 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["val
|
|
|
718
718
|
}, [
|
|
719
719
|
k("select", G({
|
|
720
720
|
ref_key: "select",
|
|
721
|
-
ref:
|
|
721
|
+
ref: l,
|
|
722
722
|
value: t(y)
|
|
723
723
|
}, {
|
|
724
724
|
size: h.value
|
|
@@ -729,16 +729,16 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["val
|
|
|
729
729
|
},
|
|
730
730
|
onChange: o[0] || (o[0] = (v) => r(v.target.value))
|
|
731
731
|
}), [
|
|
732
|
-
t(
|
|
732
|
+
t(s).icon ? (n(), $(K, {
|
|
733
733
|
key: 0,
|
|
734
|
-
icon: t(
|
|
734
|
+
icon: t(s).icon
|
|
735
735
|
}, null, 8, ["icon"])) : f("", !0),
|
|
736
736
|
e.multiple ? f("", !0) : (n(), i("option", An, g(t(M)("none")), 1)),
|
|
737
|
-
(n(!0), i(J, null, H("enum" in t(
|
|
737
|
+
(n(!0), i(J, null, H("enum" in t(s) ? t(s).enum : [], (v) => (n(), i("option", {
|
|
738
738
|
key: v,
|
|
739
739
|
value: v,
|
|
740
740
|
"data-selected": p(v)
|
|
741
|
-
}, g(t(
|
|
741
|
+
}, g(t(s).translate ? t(M)(v) : v), 9, On))), 128)),
|
|
742
742
|
V(d.$slots, "default", {}, void 0, !0)
|
|
743
743
|
], 16, In)
|
|
744
744
|
], 2));
|
|
@@ -751,31 +751,31 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
751
751
|
},
|
|
752
752
|
emits: ["paginate"],
|
|
753
753
|
setup(c, { emit: u }) {
|
|
754
|
-
const e = c, a = u,
|
|
754
|
+
const e = c, a = u, l = D({
|
|
755
755
|
get: () => Math.floor(e.pagination.offset / e.pagination.limit),
|
|
756
756
|
set: (h) => {
|
|
757
757
|
e.pagination.offset = h * e.pagination.limit;
|
|
758
758
|
}
|
|
759
|
-
}),
|
|
759
|
+
}), s = D({
|
|
760
760
|
get: () => e.pagination.limit,
|
|
761
761
|
set: (h) => {
|
|
762
762
|
e.pagination.limit = Number(h);
|
|
763
763
|
}
|
|
764
|
-
}), r = Y(
|
|
765
|
-
|
|
764
|
+
}), r = Y(l.value ? l.value + 1 : 1), y = D(() => Math.ceil(e.pagination.recordsTotal / e.pagination.limit)), p = (h) => {
|
|
765
|
+
l.value = h === "previous" ? l.value - 1 : l.value + 1;
|
|
766
766
|
};
|
|
767
767
|
return ue([
|
|
768
|
-
|
|
769
|
-
|
|
768
|
+
l,
|
|
769
|
+
s
|
|
770
770
|
], ([h]) => {
|
|
771
771
|
r.value = h + 1, a("paginate", {
|
|
772
|
-
offset:
|
|
773
|
-
limit:
|
|
772
|
+
offset: l.value * s.value,
|
|
773
|
+
limit: s.value
|
|
774
774
|
});
|
|
775
775
|
}), (h, d) => (n(), i("div", Bn, [
|
|
776
776
|
F(He, {
|
|
777
|
-
modelValue:
|
|
778
|
-
"onUpdate:modelValue": d[0] || (d[0] = (o) =>
|
|
777
|
+
modelValue: s.value,
|
|
778
|
+
"onUpdate:modelValue": d[0] || (d[0] = (o) => s.value = o),
|
|
779
779
|
property: {
|
|
780
780
|
enum: [],
|
|
781
781
|
icon: "list"
|
|
@@ -792,7 +792,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
792
792
|
}, 8, ["modelValue"]),
|
|
793
793
|
k("div", jn, [
|
|
794
794
|
F(me, {
|
|
795
|
-
onClick: d[1] || (d[1] = (o) =>
|
|
795
|
+
onClick: d[1] || (d[1] = (o) => l.value = 0)
|
|
796
796
|
}, {
|
|
797
797
|
default: m(() => [
|
|
798
798
|
F(K, {
|
|
@@ -803,7 +803,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
803
803
|
_: 1
|
|
804
804
|
}),
|
|
805
805
|
F(me, {
|
|
806
|
-
disabled:
|
|
806
|
+
disabled: l.value === 0,
|
|
807
807
|
onClick: d[2] || (d[2] = (o) => p("previous"))
|
|
808
808
|
}, {
|
|
809
809
|
default: m(() => [
|
|
@@ -816,7 +816,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
816
816
|
}, 8, ["disabled"]),
|
|
817
817
|
k("div", Tn, [
|
|
818
818
|
(n(), $(Ie, {
|
|
819
|
-
key:
|
|
819
|
+
key: l.value,
|
|
820
820
|
modelValue: r.value,
|
|
821
821
|
"onUpdate:modelValue": d[3] || (d[3] = (o) => r.value = o),
|
|
822
822
|
property: {
|
|
@@ -824,13 +824,13 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
824
824
|
minimum: 1
|
|
825
825
|
},
|
|
826
826
|
onChange: d[4] || (d[4] = (o) => {
|
|
827
|
-
|
|
827
|
+
l.value = r.value === 0 ? 0 : r.value - 1;
|
|
828
828
|
})
|
|
829
829
|
}, null, 8, ["modelValue"])),
|
|
830
830
|
k("span", null, g(t(M)("of")) + " " + g(y.value), 1)
|
|
831
831
|
]),
|
|
832
832
|
F(me, {
|
|
833
|
-
disabled:
|
|
833
|
+
disabled: l.value === y.value - 1,
|
|
834
834
|
onClick: d[5] || (d[5] = (o) => p("next"))
|
|
835
835
|
}, {
|
|
836
836
|
default: m(() => [
|
|
@@ -842,7 +842,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
842
842
|
_: 1
|
|
843
843
|
}, 8, ["disabled"]),
|
|
844
844
|
F(me, {
|
|
845
|
-
onClick: d[6] || (d[6] = (o) =>
|
|
845
|
+
onClick: d[6] || (d[6] = (o) => l.value = y.value - 1)
|
|
846
846
|
}, {
|
|
847
847
|
default: m(() => [
|
|
848
848
|
F(K, {
|
|
@@ -872,10 +872,10 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { cla
|
|
|
872
872
|
},
|
|
873
873
|
emits: ["update:modelValue", "change"],
|
|
874
874
|
setup(c, { emit: u }) {
|
|
875
|
-
const e = c, a = e.property || {},
|
|
875
|
+
const e = c, a = e.property || {}, l = !("enum" in a) && [
|
|
876
876
|
"array",
|
|
877
877
|
"boolean"
|
|
878
|
-
].includes(a.type) ? "checkbox" : "radio",
|
|
878
|
+
].includes(a.type) ? "checkbox" : "radio", s = u, r = e.value || !1, y = D({
|
|
879
879
|
get: () => {
|
|
880
880
|
var p;
|
|
881
881
|
return "type" in a && a.type === "boolean" ? !!e.value : "items" in a ? (p = e.modelValue) == null ? void 0 : p.includes(e.value) : e.modelValue === e.value;
|
|
@@ -884,17 +884,17 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { cla
|
|
|
884
884
|
var p;
|
|
885
885
|
if (!a.readOnly) {
|
|
886
886
|
if ("type" in a && a.type === "boolean") {
|
|
887
|
-
|
|
887
|
+
s("update:modelValue", !e.modelValue);
|
|
888
888
|
return;
|
|
889
889
|
}
|
|
890
890
|
if ("items" in a) {
|
|
891
|
-
|
|
891
|
+
s("update:modelValue", (p = e.modelValue) != null && p.includes(r) ? e.modelValue.filter((h) => h !== r) : [
|
|
892
892
|
...e.modelValue || [],
|
|
893
893
|
r
|
|
894
894
|
]);
|
|
895
895
|
return;
|
|
896
896
|
}
|
|
897
|
-
|
|
897
|
+
s("update:modelValue", e.value);
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
});
|
|
@@ -909,7 +909,7 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { cla
|
|
|
909
909
|
Z(k("input", G({
|
|
910
910
|
"onUpdate:modelValue": h[0] || (h[0] = (o) => y.value = o)
|
|
911
911
|
}, {
|
|
912
|
-
type: t(
|
|
912
|
+
type: t(l),
|
|
913
913
|
readOnly: t(a).readOnly,
|
|
914
914
|
checked: y.value
|
|
915
915
|
}, { class: "checkbox__input" }), null, 16), [
|
|
@@ -950,7 +950,7 @@ const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
|
|
|
950
950
|
},
|
|
951
951
|
emits: ["update:modelValue"],
|
|
952
952
|
setup(c, { emit: u }) {
|
|
953
|
-
const e = c, a = u,
|
|
953
|
+
const e = c, a = u, l = "items" in e.property ? e.property.items.enum : e.property.enum, s = (r) => {
|
|
954
954
|
a("update:modelValue", r);
|
|
955
955
|
};
|
|
956
956
|
return mt(() => {
|
|
@@ -965,7 +965,7 @@ const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
|
|
|
965
965
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
966
966
|
`)
|
|
967
967
|
}, [
|
|
968
|
-
(n(!0), i(J, null, H(t(
|
|
968
|
+
(n(!0), i(J, null, H(t(l), (p) => (n(), i("div", {
|
|
969
969
|
key: `option-${p}`,
|
|
970
970
|
class: "options__checkbox"
|
|
971
971
|
}, [
|
|
@@ -974,7 +974,7 @@ const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
|
|
|
974
974
|
property: r.property
|
|
975
975
|
}, {
|
|
976
976
|
"model-value": r.modelValue,
|
|
977
|
-
"onUpdate:modelValue":
|
|
977
|
+
"onUpdate:modelValue": s
|
|
978
978
|
}), null, 16, ["model-value"])
|
|
979
979
|
]))), 128))
|
|
980
980
|
], 4));
|
|
@@ -994,8 +994,8 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) =
|
|
|
994
994
|
},
|
|
995
995
|
emits: ["update:modelValue", "change"],
|
|
996
996
|
setup(c, { emit: u }) {
|
|
997
|
-
const e = c, a = u,
|
|
998
|
-
|
|
997
|
+
const e = c, a = u, l = e.property || {}, s = () => {
|
|
998
|
+
l.readOnly || (a("change", !e.modelValue), a("update:modelValue", !e.modelValue));
|
|
999
999
|
};
|
|
1000
1000
|
return (r, y) => {
|
|
1001
1001
|
const p = N("clickable");
|
|
@@ -1004,9 +1004,9 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) =
|
|
|
1004
1004
|
class: W(`
|
|
1005
1005
|
switch
|
|
1006
1006
|
${r.modelValue && "switch--active"}
|
|
1007
|
-
${t(
|
|
1007
|
+
${t(l).readOnly && "switch--readOnly"}
|
|
1008
1008
|
`),
|
|
1009
|
-
onClick: Fe(
|
|
1009
|
+
onClick: Fe(s, ["stop"])
|
|
1010
1010
|
}, [
|
|
1011
1011
|
Yn,
|
|
1012
1012
|
k("div", {
|
|
@@ -1017,18 +1017,18 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) =
|
|
|
1017
1017
|
}, null, 2)
|
|
1018
1018
|
], 2)), [
|
|
1019
1019
|
[p, {
|
|
1020
|
-
blocked: t(
|
|
1020
|
+
blocked: t(l).readOnly
|
|
1021
1021
|
}]
|
|
1022
1022
|
]),
|
|
1023
|
-
r.$slots.default ? V(r.$slots, "default", { key: 0 }, void 0, !0) : (n(), i("div", Jn, g(t(
|
|
1023
|
+
r.$slots.default ? V(r.$slots, "default", { key: 0 }, void 0, !0) : (n(), i("div", Jn, g(t(l).description || r.propertyName), 1))
|
|
1024
1024
|
]);
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
|
-
const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) => (qe("data-v-
|
|
1028
|
+
const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) => (qe("data-v-95473858"), c = c(), Ue(), c), Nn = { class: "picture" }, xn = {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1031
|
-
}, eo = ["src"], to = {
|
|
1031
|
+
}, eo = ["src", "alt"], to = {
|
|
1032
1032
|
key: 0,
|
|
1033
1033
|
class: "picture__meta"
|
|
1034
1034
|
}, no = ["src"], oo = /* @__PURE__ */ yt(() => /* @__PURE__ */ k("line", {
|
|
@@ -1045,13 +1045,14 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1045
1045
|
y2: "200",
|
|
1046
1046
|
stroke: "#000",
|
|
1047
1047
|
"vector-effect": "non-scaling-stroke"
|
|
1048
|
-
}, null, -1)),
|
|
1048
|
+
}, null, -1)), lo = [
|
|
1049
1049
|
oo,
|
|
1050
1050
|
ao
|
|
1051
|
-
],
|
|
1051
|
+
], so = { key: 5 }, io = /* @__PURE__ */ U({
|
|
1052
1052
|
__name: "aeria-picture",
|
|
1053
1053
|
props: {
|
|
1054
1054
|
url: {},
|
|
1055
|
+
alt: {},
|
|
1055
1056
|
fileId: {},
|
|
1056
1057
|
modelValue: {},
|
|
1057
1058
|
objectFit: {},
|
|
@@ -1063,7 +1064,7 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1063
1064
|
},
|
|
1064
1065
|
setup(c) {
|
|
1065
1066
|
const u = c, e = D(() => u.fileId ? `${ft}/file/${u.fileId}/picture` : u.url || u.modelValue), a = Y(!1);
|
|
1066
|
-
return (
|
|
1067
|
+
return (l, s) => {
|
|
1067
1068
|
var y;
|
|
1068
1069
|
const r = N("overlay");
|
|
1069
1070
|
return n(), i("figure", Nn, [
|
|
@@ -1074,13 +1075,14 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1074
1075
|
a.value ? Z((n(), i("div", xn, [
|
|
1075
1076
|
k("img", {
|
|
1076
1077
|
src: e.value,
|
|
1078
|
+
alt: l.alt,
|
|
1077
1079
|
style: `
|
|
1078
1080
|
max-height: 60vh;
|
|
1079
1081
|
object-fit: contain;
|
|
1080
1082
|
`,
|
|
1081
|
-
onClick:
|
|
1083
|
+
onClick: s[0] || (s[0] = (p) => a.value = !0)
|
|
1082
1084
|
}, null, 8, eo),
|
|
1083
|
-
(y =
|
|
1085
|
+
(y = l.meta) != null && y.owner ? (n(), i("div", to, " Criado por " + g(l.meta.owner.name) + " em " + g(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : f("", !0)
|
|
1084
1086
|
])), [
|
|
1085
1087
|
[r, {
|
|
1086
1088
|
click: () => {
|
|
@@ -1094,39 +1096,39 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1094
1096
|
src: e.value,
|
|
1095
1097
|
class: W(`
|
|
1096
1098
|
picture__image
|
|
1097
|
-
${
|
|
1098
|
-
${
|
|
1099
|
+
${l.bordered && "picture__image--bordered"}
|
|
1100
|
+
${l.expandable && "picture__image--expandable"}
|
|
1099
1101
|
`),
|
|
1100
1102
|
style: he(`
|
|
1101
|
-
object-fit: ${
|
|
1102
|
-
width: ${
|
|
1103
|
-
height: ${
|
|
1103
|
+
object-fit: ${l.objectFit || "cover"};
|
|
1104
|
+
width: ${l.width || "100%"};
|
|
1105
|
+
height: ${l.height || "100%"};
|
|
1104
1106
|
`),
|
|
1105
|
-
onClick:
|
|
1106
|
-
|
|
1107
|
+
onClick: s[1] || (s[1] = () => {
|
|
1108
|
+
l.expandable && (a.value = !0);
|
|
1107
1109
|
})
|
|
1108
|
-
}, null, 14, no)) :
|
|
1110
|
+
}, null, 14, no)) : l.$slots.fallback ? V(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? V(l.$slots, "default", { key: 3 }, void 0, !0) : (n(), i("svg", {
|
|
1109
1111
|
key: 4,
|
|
1110
1112
|
class: W(["picture__background", `
|
|
1111
|
-
${
|
|
1113
|
+
${l.bordered && "picture__image--bordered"}
|
|
1112
1114
|
`]),
|
|
1113
1115
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1114
1116
|
viewBox: "0 0 200 200",
|
|
1115
1117
|
preserveAspectRatio: "none",
|
|
1116
1118
|
style: he(`
|
|
1117
|
-
object-fit: ${
|
|
1118
|
-
width: ${
|
|
1119
|
-
height: ${
|
|
1119
|
+
object-fit: ${l.objectFit || "cover"};
|
|
1120
|
+
width: ${l.width || "100%"};
|
|
1121
|
+
height: ${l.height || "100%"};
|
|
1120
1122
|
`)
|
|
1121
|
-
},
|
|
1122
|
-
|
|
1123
|
-
V(
|
|
1123
|
+
}, lo, 6)),
|
|
1124
|
+
l.$slots.caption ? (n(), i("figcaption", so, [
|
|
1125
|
+
V(l.$slots, "caption", {}, void 0, !0)
|
|
1124
1126
|
])) : f("", !0)
|
|
1125
1127
|
]);
|
|
1126
1128
|
};
|
|
1127
1129
|
}
|
|
1128
1130
|
});
|
|
1129
|
-
const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-
|
|
1131
|
+
const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-95473858"]]), ro = { class: "file" }, uo = { key: 0 }, co = ["href"], po = { class: "file__actions" }, _o = ["accept"], mo = {
|
|
1130
1132
|
key: 0,
|
|
1131
1133
|
class: "file__buttons"
|
|
1132
1134
|
}, fo = {
|
|
@@ -1145,7 +1147,7 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
|
|
|
1145
1147
|
},
|
|
1146
1148
|
emits: ["update:modelValue", "update:content", "change"],
|
|
1147
1149
|
setup(c, { emit: u }) {
|
|
1148
|
-
const e = c, a = u,
|
|
1150
|
+
const e = c, a = u, s = Le() ? ge() : null, r = Y(null), y = D(() => {
|
|
1149
1151
|
var b;
|
|
1150
1152
|
return r.value ? URL.createObjectURL(r.value) : (b = e.modelValue) == null ? void 0 : b.link;
|
|
1151
1153
|
}), p = D(() => {
|
|
@@ -1159,8 +1161,8 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
|
|
|
1159
1161
|
}, o = async (b) => {
|
|
1160
1162
|
r.value = b.target.files[0];
|
|
1161
1163
|
const C = r.value, R = await h(C);
|
|
1162
|
-
if (
|
|
1163
|
-
const { data: T } = await jt(`${ft}/${
|
|
1164
|
+
if (s) {
|
|
1165
|
+
const { data: T } = await jt(`${ft}/${s.$id}/upload?filename=${C.name}`, R, {
|
|
1164
1166
|
params: {
|
|
1165
1167
|
method: "POST",
|
|
1166
1168
|
headers: {
|
|
@@ -1176,16 +1178,17 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
|
|
|
1176
1178
|
a("update:modelValue", null);
|
|
1177
1179
|
};
|
|
1178
1180
|
return (b, C) => {
|
|
1179
|
-
var R, T, q, w,
|
|
1181
|
+
var R, T, q, w, le, oe;
|
|
1180
1182
|
return n(), i("div", ro, [
|
|
1181
1183
|
r.value || (R = b.modelValue) != null && R._id ? (n(), i("div", uo, [
|
|
1182
1184
|
p.value ? (n(), $(Me, {
|
|
1183
1185
|
key: 0,
|
|
1186
|
+
alt: "Image preview",
|
|
1184
1187
|
modelValue: y.value,
|
|
1185
1188
|
"onUpdate:modelValue": C[0] || (C[0] = (S) => y.value = S),
|
|
1186
1189
|
class: W(`
|
|
1187
1190
|
file__image
|
|
1188
|
-
${!t(
|
|
1191
|
+
${!t(s) || ((T = b.modelValue) == null ? void 0 : T._id) || "file__image--unsent"}
|
|
1189
1192
|
`)
|
|
1190
1193
|
}, null, 8, ["modelValue", "class"])) : f("", !0),
|
|
1191
1194
|
(q = b.modelValue) != null && q._id ? (n(), i("a", {
|
|
@@ -1197,7 +1200,7 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
|
|
|
1197
1200
|
k("input", {
|
|
1198
1201
|
ref: "file",
|
|
1199
1202
|
type: "file",
|
|
1200
|
-
accept: (
|
|
1203
|
+
accept: (le = (w = b.property) == null ? void 0 : w.accept) == null ? void 0 : le.join(","),
|
|
1201
1204
|
onChange: o
|
|
1202
1205
|
}, null, 40, _o),
|
|
1203
1206
|
r.value ? (n(), i("div", mo, [
|
|
@@ -1226,7 +1229,7 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { cla
|
|
|
1226
1229
|
};
|
|
1227
1230
|
}
|
|
1228
1231
|
});
|
|
1229
|
-
const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-
|
|
1232
|
+
const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-16ebe62c"]]), ho = { class: "container" }, $o = {
|
|
1230
1233
|
key: 1,
|
|
1231
1234
|
class: "container__footer"
|
|
1232
1235
|
}, bo = /* @__PURE__ */ U({
|
|
@@ -1236,16 +1239,16 @@ const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-f3848c9a"]]), ho = { cla
|
|
|
1236
1239
|
},
|
|
1237
1240
|
emits: ["endReached"],
|
|
1238
1241
|
setup(c, { emit: u }) {
|
|
1239
|
-
const e = c, a = u,
|
|
1242
|
+
const e = c, a = u, l = Y(null), s = e.observeScroll ? Xe(l, {
|
|
1240
1243
|
antecipate: 100
|
|
1241
1244
|
}).reachedEnd : null;
|
|
1242
|
-
return
|
|
1245
|
+
return s !== null && ue(s, (r) => {
|
|
1243
1246
|
r && a("endReached", r);
|
|
1244
1247
|
}), (r, y) => (n(), i("div", ho, [
|
|
1245
1248
|
r.$slots.default ? (n(), i("div", {
|
|
1246
1249
|
key: 0,
|
|
1247
1250
|
ref_key: "containerEl",
|
|
1248
|
-
ref:
|
|
1251
|
+
ref: l,
|
|
1249
1252
|
class: "container__content"
|
|
1250
1253
|
}, [
|
|
1251
1254
|
V(r.$slots, "default", {}, void 0, !0)
|
|
@@ -1266,16 +1269,16 @@ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
|
|
|
1266
1269
|
},
|
|
1267
1270
|
emits: ["update:modelValue", "change"],
|
|
1268
1271
|
setup(c, { emit: u }) {
|
|
1269
|
-
const e = c, a = u,
|
|
1272
|
+
const e = c, a = u, l = e.property, s = pe(l), r = ge(), y = D(() => Array.isArray(e.modelValue) ? Array.isArray(e.modelValue) && Object.values(e.modelValue).some(({ _id: d }) => e.item._id === d) : e.modelValue && e.modelValue._id === e.item._id), p = () => {
|
|
1270
1273
|
if (y.value)
|
|
1271
1274
|
return;
|
|
1272
|
-
const d = (v) => v.filter((b) => !!(b != null && b._id)), o = "items" in
|
|
1275
|
+
const d = (v) => v.filter((b) => !!(b != null && b._id)), o = "items" in l ? d(Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]) : e.modelValue;
|
|
1273
1276
|
a("update:modelValue", Array.isArray(o) ? [
|
|
1274
1277
|
...o,
|
|
1275
1278
|
e.item
|
|
1276
1279
|
] : e.item), a("change", e.item);
|
|
1277
1280
|
}, h = async (d) => {
|
|
1278
|
-
if (
|
|
1281
|
+
if (s.purge && (d != null && d.purge)) {
|
|
1279
1282
|
const { _id: v } = e.item;
|
|
1280
1283
|
await r.$actions.remove({
|
|
1281
1284
|
filters: {
|
|
@@ -1287,7 +1290,7 @@ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
|
|
|
1287
1290
|
const v = [...e.modelValue], b = v.findIndex((C) => C._id === e.item._id);
|
|
1288
1291
|
return v.splice(b, 1), v;
|
|
1289
1292
|
};
|
|
1290
|
-
a("update:modelValue", "items" in
|
|
1293
|
+
a("update:modelValue", "items" in l ? o() : null);
|
|
1291
1294
|
};
|
|
1292
1295
|
return (d, o) => {
|
|
1293
1296
|
const v = N("clickable");
|
|
@@ -1327,7 +1330,7 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1327
1330
|
},
|
|
1328
1331
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1329
1332
|
setup(c, { emit: u }) {
|
|
1330
|
-
const e = c, a = pe(e.property),
|
|
1333
|
+
const e = c, a = pe(e.property), l = e.panel !== void 0 ? D(() => e.panel) : Y(!1), s = u, r = ce(pe(e.property).$ref), y = Le(), p = y ? ge() : null, h = a.indexes;
|
|
1331
1334
|
ve(Ee, pe(e.property).$ref), ve("innerInputLabel", !0), ve("omitInputLabels", !0);
|
|
1332
1335
|
const d = Y(e.modelValue), o = Y({
|
|
1333
1336
|
data: [],
|
|
@@ -1339,7 +1342,7 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1339
1342
|
I[L] = p;
|
|
1340
1343
|
}
|
|
1341
1344
|
return a.constraints ? qt(a.constraints, I) : {};
|
|
1342
|
-
},
|
|
1345
|
+
}, le = () => {
|
|
1343
1346
|
v.value.length < b.value.recordsTotal && (C.value += 1, S());
|
|
1344
1347
|
}, oe = async () => Object.values(q.value).every((I) => !(String(I).length > 0)) ? r.$actions.custom("getAll", {
|
|
1345
1348
|
limit: ze,
|
|
@@ -1372,9 +1375,9 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1372
1375
|
}), O = () => {
|
|
1373
1376
|
T.value = !0, x();
|
|
1374
1377
|
}, z = () => {
|
|
1375
|
-
"effect" in
|
|
1378
|
+
"effect" in l ? s("update:panel", !0) : l.value = !0, S();
|
|
1376
1379
|
}, ee = () => {
|
|
1377
|
-
C.value = 0, o.value.data.splice(0), "effect" in
|
|
1380
|
+
C.value = 0, o.value.data.splice(0), "effect" in l ? s("update:panel", !1) : l.value = !1;
|
|
1378
1381
|
}, ne = D(() => !Object.values(q.value).some((I) => !!I));
|
|
1379
1382
|
ue(ne, (I, L) => {
|
|
1380
1383
|
I && !L && S();
|
|
@@ -1382,14 +1385,14 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1382
1385
|
e.selectOnly && S();
|
|
1383
1386
|
});
|
|
1384
1387
|
const _ = (I) => {
|
|
1385
|
-
d.value = I, e.selectOnly ||
|
|
1388
|
+
d.value = I, e.selectOnly || s("update:modelValue", I);
|
|
1386
1389
|
}, E = () => {
|
|
1387
|
-
ee(),
|
|
1390
|
+
ee(), s("update:modelValue", d.value);
|
|
1388
1391
|
};
|
|
1389
1392
|
return (I, L) => {
|
|
1390
1393
|
const A = N("clickable");
|
|
1391
1394
|
return n(), i("div", null, [
|
|
1392
|
-
t(
|
|
1395
|
+
t(l) ? (n(), $(We, {
|
|
1393
1396
|
key: 0,
|
|
1394
1397
|
to: "main"
|
|
1395
1398
|
}, [
|
|
@@ -1398,7 +1401,7 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1398
1401
|
"close-hint": "",
|
|
1399
1402
|
title: `${t(M)("action.select", { capitalize: !0 })} ${t(M)(I.propertyName)}`,
|
|
1400
1403
|
"overlay-layer": 65,
|
|
1401
|
-
"model-value": t(
|
|
1404
|
+
"model-value": t(l),
|
|
1402
1405
|
style: { "--panel-max-width": "36rem" },
|
|
1403
1406
|
onClose: ee,
|
|
1404
1407
|
onOverlayClick: ee
|
|
@@ -1449,7 +1452,7 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1449
1452
|
v.value.length ? (n(), $(it, {
|
|
1450
1453
|
key: 0,
|
|
1451
1454
|
"observe-scroll": "",
|
|
1452
|
-
onEndReached:
|
|
1455
|
+
onEndReached: le
|
|
1453
1456
|
}, {
|
|
1454
1457
|
default: m(() => [
|
|
1455
1458
|
(n(!0), i(J, null, H(v.value, (B) => (n(), $(Qe, G({
|
|
@@ -1525,7 +1528,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1525
1528
|
search: Ro,
|
|
1526
1529
|
input: Ie,
|
|
1527
1530
|
form: De
|
|
1528
|
-
},
|
|
1531
|
+
}, l = (() => {
|
|
1529
1532
|
if ("type" in e) {
|
|
1530
1533
|
if (e.type === "object")
|
|
1531
1534
|
return "form";
|
|
@@ -1538,16 +1541,16 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1538
1541
|
if (c.element === "select")
|
|
1539
1542
|
return "select";
|
|
1540
1543
|
}
|
|
1541
|
-
const
|
|
1542
|
-
return
|
|
1544
|
+
const s = pe(c);
|
|
1545
|
+
return s ? s.inline ? "form" : s.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in e ? "select" : "input";
|
|
1543
1546
|
})();
|
|
1544
|
-
return u[
|
|
1547
|
+
return u[l] ? u[l] : a[l];
|
|
1545
1548
|
}, zo = (c, u) => {
|
|
1546
1549
|
c ?? (c = []);
|
|
1547
1550
|
const e = "items" in u ? u.items : u;
|
|
1548
1551
|
if ("$ref" in u) {
|
|
1549
|
-
const a = ce(u.$ref),
|
|
1550
|
-
return c.unshift(
|
|
1552
|
+
const a = ce(u.$ref), l = Se(a.$freshItem);
|
|
1553
|
+
return c.unshift(l);
|
|
1551
1554
|
}
|
|
1552
1555
|
return "properties" in e ? c.unshift(Ut(e)) : "type" in e && e.type === "boolean" ? c.unshift({}) : c.unshift(null);
|
|
1553
1556
|
}, Fo = (c, u) => {
|
|
@@ -1596,24 +1599,24 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1596
1599
|
mt(() => {
|
|
1597
1600
|
e.modelValue || a("update:modelValue", e.property && "items" in e.property ? [] : {});
|
|
1598
1601
|
});
|
|
1599
|
-
const
|
|
1600
|
-
!
|
|
1602
|
+
const l = e.property && pe(e.property), s = l ? l.$ref : e.collection || Le(), r = s ? ce(je(s) ? s.value : s) : null;
|
|
1603
|
+
!s && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1601
1604
|
collection prop, some features may not work as intended`);
|
|
1602
1605
|
const y = Y(!1), p = D(() => !e.form && e.property ? "properties" in e.property ? e.property.properties : r == null ? void 0 : r.properties : e.form), h = D(() => e.layout || (r == null ? void 0 : r.description.formLayout)), d = (_) => {
|
|
1603
1606
|
const E = fe(_, e[_]);
|
|
1604
1607
|
return e[_] && ve(_, e[_]), E;
|
|
1605
1608
|
}, o = D(() => e.validationErrors !== null ? e.validationErrors : r == null ? void 0 : r.validationErrors), v = d("formComponents") || {}, b = d("propertyComponents") || {}, C = d("omitFormHeader"), R = d("omitInputLabels"), T = d("innerInputLabel");
|
|
1606
|
-
|
|
1609
|
+
s && ve(Ee, s), ve("searchOnly", e.searchOnly);
|
|
1607
1610
|
const q = (_) => p.value ? Object.entries(p.value).filter(([E, I]) => !I.noForm && _([
|
|
1608
1611
|
E,
|
|
1609
1612
|
I
|
|
1610
1613
|
])) : null, w = (_) => {
|
|
1611
1614
|
var I;
|
|
1612
|
-
if (e.searchOnly || !
|
|
1615
|
+
if (e.searchOnly || !s)
|
|
1613
1616
|
return !0;
|
|
1614
1617
|
const E = e.property && "properties" in e.property ? e.property.form : (I = r == null ? void 0 : r.description) == null ? void 0 : I.form;
|
|
1615
1618
|
return !E || E.includes(_);
|
|
1616
|
-
},
|
|
1619
|
+
}, le = q(([_]) => w(_)), oe = Te(), S = {}, x = (_, E) => {
|
|
1617
1620
|
var j, te, B, ae;
|
|
1618
1621
|
const I = [], L = ((te = (j = h.value) == null ? void 0 : j.fields) == null ? void 0 : te[_]) || ((ae = (B = h.value) == null ? void 0 : B.fields) == null ? void 0 : ae.$default);
|
|
1619
1622
|
if (!E)
|
|
@@ -1661,7 +1664,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1661
1664
|
])) : f("", !0),
|
|
1662
1665
|
V(_.$slots, "default", {}, void 0, !0),
|
|
1663
1666
|
_.isReadOnly ? f("", !0) : (n(), i("fieldset", qo, [
|
|
1664
|
-
(n(!0), i(J, null, H(t(
|
|
1667
|
+
(n(!0), i(J, null, H(t(le), ([A, j]) => {
|
|
1665
1668
|
var te, B, ae, _e, ke, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
|
|
1666
1669
|
return n(), i("div", {
|
|
1667
1670
|
key: `field-${A}`,
|
|
@@ -1681,7 +1684,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1681
1684
|
innerHTML: j.hint
|
|
1682
1685
|
}, null, 8, Eo)) : f("", !0)
|
|
1683
1686
|
])) : f("", !0),
|
|
1684
|
-
_.$slots[`field-${A}`] ? V(_.$slots, `field-${A}`,
|
|
1687
|
+
_.$slots[`field-${A}`] ? V(_.$slots, `field-${A}`, se(G({ key: 1 }, {
|
|
1685
1688
|
propery: j,
|
|
1686
1689
|
properyName: A,
|
|
1687
1690
|
modelValue: _.modelValue
|
|
@@ -1752,7 +1755,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1752
1755
|
}, 1032, ["disabled", "onClick"])
|
|
1753
1756
|
]),
|
|
1754
1757
|
(n(!0), i(J, null, H(_.modelValue[A], (P, Oe) => {
|
|
1755
|
-
var tt, nt, ot, at,
|
|
1758
|
+
var tt, nt, ot, at, lt, st;
|
|
1756
1759
|
return n(), i("div", {
|
|
1757
1760
|
key: `rep-${A}-${Oe}`,
|
|
1758
1761
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
@@ -1764,9 +1767,9 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1764
1767
|
}, {
|
|
1765
1768
|
property: j.items,
|
|
1766
1769
|
propertyName: A,
|
|
1767
|
-
parentCollection: t(
|
|
1770
|
+
parentCollection: t(s),
|
|
1768
1771
|
parentPropertyName: _.parentPropertyName,
|
|
1769
|
-
columns: ((ot = (nt = (tt = _.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[A]) == null ? void 0 : ot.optionsColumns) || ((
|
|
1772
|
+
columns: ((ot = (nt = (tt = _.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[A]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = _.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
|
|
1770
1773
|
validationErrors: ne(A, Oe),
|
|
1771
1774
|
...j.componentProps || {}
|
|
1772
1775
|
}, {
|
|
@@ -1791,7 +1794,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1791
1794
|
property: j,
|
|
1792
1795
|
propertyName: A,
|
|
1793
1796
|
parentPropertyName: _.parentPropertyName,
|
|
1794
|
-
parentCollection: t(
|
|
1797
|
+
parentCollection: t(s),
|
|
1795
1798
|
columns: ((Ze = (Ke = (Je = _.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[A]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = _.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
|
|
1796
1799
|
...j.componentProps || {},
|
|
1797
1800
|
validationErrors: ne(A)
|
|
@@ -1810,7 +1813,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1810
1813
|
])),
|
|
1811
1814
|
_.$slots.after ? V(_.$slots, "after", { key: 2 }, void 0, !0) : f("", !0),
|
|
1812
1815
|
_.$slots.footer ? (n(), i("div", Zo, [
|
|
1813
|
-
V(_.$slots, "footer",
|
|
1816
|
+
V(_.$slots, "footer", se(be({
|
|
1814
1817
|
isInsertReady: ee.value
|
|
1815
1818
|
})), void 0, !0)
|
|
1816
1819
|
])) : f("", !0)
|
|
@@ -1822,8 +1825,8 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1822
1825
|
__name: "aeria-filter-panel",
|
|
1823
1826
|
emits: ["update:modelValue"],
|
|
1824
1827
|
setup(c, { emit: u }) {
|
|
1825
|
-
const e = u, a = ge(),
|
|
1826
|
-
a.pagination.offset = 0, a.$actions.filter(), e("update:modelValue", !1),
|
|
1828
|
+
const e = u, a = ge(), l = Re(), s = () => {
|
|
1829
|
+
a.pagination.offset = 0, a.$actions.filter(), e("update:modelValue", !1), l.push({
|
|
1827
1830
|
query: Lt(a)
|
|
1828
1831
|
});
|
|
1829
1832
|
};
|
|
@@ -1839,7 +1842,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1839
1842
|
key: 0,
|
|
1840
1843
|
variant: "transparent",
|
|
1841
1844
|
onClick: y[1] || (y[1] = (p) => {
|
|
1842
|
-
t(a).$actions.clearFilters(),
|
|
1845
|
+
t(a).$actions.clearFilters(), s(), e("update:modelValue", !1);
|
|
1843
1846
|
})
|
|
1844
1847
|
}, {
|
|
1845
1848
|
default: m(() => [
|
|
@@ -1857,7 +1860,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1857
1860
|
large: "",
|
|
1858
1861
|
icon: "funnel",
|
|
1859
1862
|
disabled: !t(a).hasActiveFilters,
|
|
1860
|
-
onClick:
|
|
1863
|
+
onClick: s
|
|
1861
1864
|
}, {
|
|
1862
1865
|
default: m(() => [
|
|
1863
1866
|
Q(g(r.t("action.filter", { capitalize: !0 })), 1)
|
|
@@ -1881,15 +1884,15 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1881
1884
|
}), ie = Y(!1), ut = Y(!1), Ve = Y(!1), Be = Y((...c) => null), ct = Y(), dt = !1, xo = /* @__PURE__ */ U({
|
|
1882
1885
|
__name: "aeria-insert-panel",
|
|
1883
1886
|
setup(c) {
|
|
1884
|
-
const u = ce("meta"), e = ce(u.view.collection), a = fe("individualActions", []),
|
|
1887
|
+
const u = ce("meta"), e = ce(u.view.collection), a = fe("individualActions", []), l = async () => {
|
|
1885
1888
|
const y = await e.$actions.deepInsert();
|
|
1886
1889
|
Ht(y) || (ie.value = !1);
|
|
1887
|
-
}, { t:
|
|
1890
|
+
}, { t: s } = wt(), r = () => {
|
|
1888
1891
|
u.$actions.ask({
|
|
1889
1892
|
action: () => {
|
|
1890
1893
|
e.$actions.clearItem(), e.validationErrors = {}, ie.value = !1;
|
|
1891
1894
|
},
|
|
1892
|
-
body:
|
|
1895
|
+
body: s("prompt.close_panel")
|
|
1893
1896
|
});
|
|
1894
1897
|
};
|
|
1895
1898
|
return ue(() => e.item._id, (y) => {
|
|
@@ -1907,15 +1910,15 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1907
1910
|
k("span", null, g((() => {
|
|
1908
1911
|
switch (t(ie)) {
|
|
1909
1912
|
case "add":
|
|
1910
|
-
return t(
|
|
1913
|
+
return t(s)("action.add", { capitalize: !0 });
|
|
1911
1914
|
case "duplicate":
|
|
1912
|
-
return t(
|
|
1915
|
+
return t(s)("action.duplicate", { capitalize: !0 });
|
|
1913
1916
|
case "edit":
|
|
1914
1917
|
default:
|
|
1915
|
-
return t(
|
|
1918
|
+
return t(s)("action.edit", { capitalize: !0 });
|
|
1916
1919
|
}
|
|
1917
1920
|
})()), 1),
|
|
1918
|
-
k("span", null, " " + g(t(
|
|
1921
|
+
k("span", null, " " + g(t(s)(t(u).view.collection)), 1)
|
|
1919
1922
|
]),
|
|
1920
1923
|
extra: m(() => [
|
|
1921
1924
|
F(Ce, G({
|
|
@@ -1942,7 +1945,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1942
1945
|
onClick: r
|
|
1943
1946
|
}, {
|
|
1944
1947
|
default: m(() => [
|
|
1945
|
-
Q(g(t(
|
|
1948
|
+
Q(g(t(s)("action.cancel", { capitalize: !0 })), 1)
|
|
1946
1949
|
]),
|
|
1947
1950
|
_: 1
|
|
1948
1951
|
}),
|
|
@@ -1950,10 +1953,10 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1950
1953
|
large: "",
|
|
1951
1954
|
disabled: !t(e).isInsertReady || dt || t(e).loading.get,
|
|
1952
1955
|
loading: t(e).loading.insert,
|
|
1953
|
-
onClick:
|
|
1956
|
+
onClick: l
|
|
1954
1957
|
}, {
|
|
1955
1958
|
default: m(() => [
|
|
1956
|
-
Q(g(t(
|
|
1959
|
+
Q(g(t(s)("action.insert", { capitalize: !0 })), 1)
|
|
1957
1960
|
]),
|
|
1958
1961
|
_: 1
|
|
1959
1962
|
}, 8, ["disabled", "loading"])
|
|
@@ -1974,7 +1977,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1974
1977
|
H(Object.keys(y.$slots).filter((d) => d.startsWith("field-")), (d) => ({
|
|
1975
1978
|
name: d,
|
|
1976
1979
|
fn: m((o) => [
|
|
1977
|
-
V(y.$slots, d,
|
|
1980
|
+
V(y.$slots, d, se(be(o)))
|
|
1978
1981
|
])
|
|
1979
1982
|
}))
|
|
1980
1983
|
]), 1040, ["modelValue"])
|
|
@@ -1995,16 +1998,16 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1995
1998
|
persistInQuery: !0
|
|
1996
1999
|
}) => {
|
|
1997
2000
|
const a = Re().currentRoute;
|
|
1998
|
-
return ue(() => a.value.query.section, (
|
|
2001
|
+
return ue(() => a.value.query.section, (l) => {
|
|
1999
2002
|
if (c) {
|
|
2000
2003
|
if (c.description.filtersPresets) {
|
|
2001
|
-
const
|
|
2002
|
-
ht(c.description.filtersPresets[
|
|
2004
|
+
const s = l || Object.keys(c.description.filtersPresets)[0];
|
|
2005
|
+
ht(c.description.filtersPresets[s], c);
|
|
2003
2006
|
}
|
|
2004
2007
|
if (u.persistInQuery) {
|
|
2005
|
-
const
|
|
2006
|
-
|
|
2007
|
-
$search: `"${
|
|
2008
|
+
const s = a.value.query;
|
|
2009
|
+
s.offset && (c.pagination.offset = +s.offset), s.limit && (c.pagination.limit = +s.limit), s.search && (c.textQuery = s.search, c.filters.$text = {
|
|
2010
|
+
$search: `"${s.search}"`,
|
|
2008
2011
|
$caseSensitive: !1
|
|
2009
2012
|
});
|
|
2010
2013
|
}
|
|
@@ -2012,10 +2015,10 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2012
2015
|
}, {
|
|
2013
2016
|
immediate: !0
|
|
2014
2017
|
});
|
|
2015
|
-
}, ta = (c) => (qe("data-v-
|
|
2018
|
+
}, ta = (c) => (qe("data-v-f06fe846"), c = c(), Ue(), c), na = {
|
|
2016
2019
|
key: 0,
|
|
2017
2020
|
class: "table aeria-surface"
|
|
2018
|
-
}, oa = { key: 0 }, aa = { key: 1 },
|
|
2021
|
+
}, oa = { key: 0 }, aa = { key: 1 }, la = { key: 0 }, sa = ["checked"], ia = {
|
|
2019
2022
|
key: 1,
|
|
2020
2023
|
style: { "text-align": "right" }
|
|
2021
2024
|
}, ra = { key: 2 }, ua = { key: 3 }, ca = ["onClick"], da = { key: 0 }, pa = ["value"], _a = { class: "table__cell-mobile-label" }, ma = {
|
|
@@ -2046,18 +2049,18 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2046
2049
|
},
|
|
2047
2050
|
emits: ["itemClick"],
|
|
2048
2051
|
setup(c, { emit: u }) {
|
|
2049
|
-
const e = c, a = u,
|
|
2052
|
+
const e = c, a = u, l = Te(), s = e.collection || Le(), r = s ? ce(typeof s == "string" ? s : s.value) : null, y = D({
|
|
2050
2053
|
get: () => r == null ? void 0 : r.selected,
|
|
2051
2054
|
set: (v) => r == null ? void 0 : r.$actions.selectManyItems(v, !0)
|
|
2052
2055
|
}), p = (v, b) => v != null && v.button ? typeof v.button == "object" ? Ge(b, v.button).satisfied : v.button : !1, h = (v) => {
|
|
2053
2056
|
var b;
|
|
2054
|
-
return !
|
|
2057
|
+
return !l.value.xl || !((b = e.layout) != null && b.actions) || !e.actions ? [] : e.actions.filter((C) => {
|
|
2055
2058
|
const R = e.layout.actions[C.action];
|
|
2056
2059
|
return p(R, v);
|
|
2057
2060
|
});
|
|
2058
2061
|
}, d = (v) => {
|
|
2059
2062
|
var b;
|
|
2060
|
-
return e.actions ? !
|
|
2063
|
+
return e.actions ? !l.value.xl || !((b = e.layout) != null && b.actions) ? e.actions : e.actions.filter((C) => {
|
|
2061
2064
|
const R = e.layout.actions[C.action];
|
|
2062
2065
|
return !p(R, v);
|
|
2063
2066
|
}) : [];
|
|
@@ -2077,17 +2080,17 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2077
2080
|
V(v.$slots, "thead", {}, void 0, !0)
|
|
2078
2081
|
])) : (n(), i("thead", aa, [
|
|
2079
2082
|
k("tr", null, [
|
|
2080
|
-
v.checkbox && t(r) && t(
|
|
2083
|
+
v.checkbox && t(r) && t(l).md ? (n(), i("th", la, [
|
|
2081
2084
|
k("input", {
|
|
2082
2085
|
type: "checkbox",
|
|
2083
2086
|
checked: t(r).selected.length > 0 && t(r).selected.length === t(r).itemsCount,
|
|
2084
2087
|
onChange: b[0] || (b[0] = (w) => t(r).$actions.selectAllItems(w.target.checked))
|
|
2085
|
-
}, null, 40,
|
|
2088
|
+
}, null, 40, sa)
|
|
2086
2089
|
])) : f("", !0),
|
|
2087
|
-
(n(!0), i(J, null, H(Object.entries(v.columns), ([w,
|
|
2090
|
+
(n(!0), i(J, null, H(Object.entries(v.columns), ([w, le], oe) => (n(), i("th", {
|
|
2088
2091
|
key: `header-${oe}`,
|
|
2089
2092
|
class: "table__header"
|
|
2090
|
-
}, g(
|
|
2093
|
+
}, g(le.description || t(M)(w)), 1))), 128)),
|
|
2091
2094
|
(R = v.actions) != null && R.length ? (n(), i("th", ia)) : f("", !0)
|
|
2092
2095
|
])
|
|
2093
2096
|
])),
|
|
@@ -2095,12 +2098,12 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2095
2098
|
V(v.$slots, "tbody", {}, void 0, !0)
|
|
2096
2099
|
])) : (n(), i("tbody", ua, [
|
|
2097
2100
|
(n(!0), i(J, null, H(v.rows, (w) => {
|
|
2098
|
-
var
|
|
2101
|
+
var le, oe;
|
|
2099
2102
|
return n(), i("tr", {
|
|
2100
2103
|
key: w._id,
|
|
2101
2104
|
onClick: (S) => a("itemClick", w)
|
|
2102
2105
|
}, [
|
|
2103
|
-
t(r) && v.checkbox && t(
|
|
2106
|
+
t(r) && v.checkbox && t(l).md ? (n(), i("td", da, [
|
|
2104
2107
|
Z(k("input", {
|
|
2105
2108
|
"onUpdate:modelValue": b[1] || (b[1] = (S) => y.value = S),
|
|
2106
2109
|
type: "checkbox",
|
|
@@ -2116,7 +2119,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2116
2119
|
}, [
|
|
2117
2120
|
k("div", _a, g(x.description || t(M)(S)), 1),
|
|
2118
2121
|
`row-${S}` in v.$slots ? (n(), i("div", ma, [
|
|
2119
|
-
V(v.$slots, `row-${S}`,
|
|
2122
|
+
V(v.$slots, `row-${S}`, se(be({
|
|
2120
2123
|
store: t(r),
|
|
2121
2124
|
column: S,
|
|
2122
2125
|
property: x,
|
|
@@ -2151,6 +2154,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2151
2154
|
"onUpdate:modelValue": (L) => w[S][0].link = L,
|
|
2152
2155
|
expandable: "",
|
|
2153
2156
|
meta: w[S][0],
|
|
2157
|
+
alt: "Row image",
|
|
2154
2158
|
class: "table__picture"
|
|
2155
2159
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((ne = w[S]) == null ? void 0 : ne.mime) ? (n(), $(Me, {
|
|
2156
2160
|
key: 1,
|
|
@@ -2158,6 +2162,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2158
2162
|
"onUpdate:modelValue": (L) => w[S].link = L,
|
|
2159
2163
|
expandable: "",
|
|
2160
2164
|
meta: w[S],
|
|
2165
|
+
alt: "Row image",
|
|
2161
2166
|
class: "table__picture"
|
|
2162
2167
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (_ = w[S]) != null && _.link ? (n(), i("a", {
|
|
2163
2168
|
key: 2,
|
|
@@ -2186,7 +2191,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2186
2191
|
]))
|
|
2187
2192
|
]);
|
|
2188
2193
|
}), 128)),
|
|
2189
|
-
(
|
|
2194
|
+
(le = v.actions) != null && le.length && t(l).md ? (n(), i("td", Ia, [
|
|
2190
2195
|
k("div", Aa, [
|
|
2191
2196
|
(n(!0), i(J, null, H(h(w), (S) => (n(), $(re, {
|
|
2192
2197
|
key: `action-${S.action}`,
|
|
@@ -2201,7 +2206,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2201
2206
|
]),
|
|
2202
2207
|
_: 2
|
|
2203
2208
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2204
|
-
d(w).length > 0 ? (n(), $(Ce,
|
|
2209
|
+
d(w).length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
|
|
2205
2210
|
subject: w,
|
|
2206
2211
|
actions: d(w)
|
|
2207
2212
|
})), {
|
|
@@ -2238,7 +2243,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2238
2243
|
]),
|
|
2239
2244
|
_: 2
|
|
2240
2245
|
}, 1032, ["onClick"]))), 128)),
|
|
2241
|
-
d(w).length > 0 ? (n(), $(Ce,
|
|
2246
|
+
d(w).length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
|
|
2242
2247
|
subject: w,
|
|
2243
2248
|
actions: d(w)
|
|
2244
2249
|
})), {
|
|
@@ -2265,7 +2270,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2265
2270
|
};
|
|
2266
2271
|
}
|
|
2267
2272
|
});
|
|
2268
|
-
const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-
|
|
2273
|
+
const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-f06fe846"]]), Ra = /* @__PURE__ */ U({
|
|
2269
2274
|
__name: "aeria-tabular",
|
|
2270
2275
|
props: {
|
|
2271
2276
|
individualActions: {},
|
|
@@ -2273,8 +2278,8 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @_
|
|
|
2273
2278
|
componentProps: {}
|
|
2274
2279
|
},
|
|
2275
2280
|
setup(c) {
|
|
2276
|
-
const u = c, e = ge(), a = Le(),
|
|
2277
|
-
const
|
|
2281
|
+
const u = c, e = ge(), a = Le(), l = D(() => {
|
|
2282
|
+
const s = {
|
|
2278
2283
|
collection: a,
|
|
2279
2284
|
checkbox: e.hasSelectionActions,
|
|
2280
2285
|
columns: e.tableProperties,
|
|
@@ -2282,17 +2287,17 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @_
|
|
|
2282
2287
|
actions: u.individualActions,
|
|
2283
2288
|
layout: e.tableLayout
|
|
2284
2289
|
};
|
|
2285
|
-
return Object.assign(
|
|
2290
|
+
return Object.assign(s, u.componentProps);
|
|
2286
2291
|
});
|
|
2287
|
-
return (
|
|
2288
|
-
|
|
2289
|
-
t(e).properties ? (n(), $(La, G({ key: 1 },
|
|
2292
|
+
return (s, r) => (n(), i("div", null, [
|
|
2293
|
+
s.$slots.inner ? V(s.$slots, "inner", { key: 0 }) : f("", !0),
|
|
2294
|
+
t(e).properties ? (n(), $(La, G({ key: 1 }, l.value, {
|
|
2290
2295
|
key: t(e).$id
|
|
2291
2296
|
}), de({ _: 2 }, [
|
|
2292
|
-
H(Object.keys(
|
|
2297
|
+
H(Object.keys(s.$slots).filter((y) => !["inner"].includes(y)), (y) => ({
|
|
2293
2298
|
name: y,
|
|
2294
2299
|
fn: m((p) => [
|
|
2295
|
-
V(
|
|
2300
|
+
V(s.$slots, y, se(be(p)))
|
|
2296
2301
|
])
|
|
2297
2302
|
}))
|
|
2298
2303
|
]), 1040)) : f("", !0)
|
|
@@ -2326,26 +2331,26 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2326
2331
|
componentName: {}
|
|
2327
2332
|
},
|
|
2328
2333
|
setup(c) {
|
|
2329
|
-
const e = c.layoutOptions, a = ge(),
|
|
2330
|
-
return (
|
|
2334
|
+
const e = c.layoutOptions, a = ge(), l = (s) => Array.isArray(s) ? s[0] : s;
|
|
2335
|
+
return (s, r) => {
|
|
2331
2336
|
const y = N("clickable");
|
|
2332
2337
|
return n(), $(Fa, {
|
|
2333
|
-
list:
|
|
2338
|
+
list: s.componentName === "list"
|
|
2334
2339
|
}, {
|
|
2335
2340
|
default: m(() => [
|
|
2336
2341
|
(n(!0), i(J, null, H(t(a).items, (p) => (n(), $(cn, {
|
|
2337
2342
|
key: p,
|
|
2338
2343
|
inactive: !!(t(e).active && !p[t(e).active]),
|
|
2339
|
-
horizontal:
|
|
2344
|
+
horizontal: s.componentName === "list"
|
|
2340
2345
|
}, de({
|
|
2341
2346
|
footer: m(() => [
|
|
2342
2347
|
t(e).title ? (n(), i("div", Ma, g(p[t(e).title]), 1)) : f("", !0),
|
|
2343
2348
|
t(e).information ? (n(), i("div", qa, g(p[t(e).information]), 1)) : f("", !0)
|
|
2344
2349
|
]),
|
|
2345
2350
|
actions: m(() => [
|
|
2346
|
-
|
|
2351
|
+
s.individualActions.length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
|
|
2347
2352
|
subject: p,
|
|
2348
|
-
actions:
|
|
2353
|
+
actions: s.individualActions
|
|
2349
2354
|
})), {
|
|
2350
2355
|
default: m(() => [
|
|
2351
2356
|
Z(F(K, {
|
|
@@ -2362,9 +2367,10 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2362
2367
|
var h;
|
|
2363
2368
|
return [
|
|
2364
2369
|
F(Me, {
|
|
2370
|
+
alt: "Item picture",
|
|
2365
2371
|
expandable: "",
|
|
2366
|
-
url: (h =
|
|
2367
|
-
meta:
|
|
2372
|
+
url: (h = l(p[t(e).picture])) == null ? void 0 : h.link,
|
|
2373
|
+
meta: l(p[t(e).picture])
|
|
2368
2374
|
}, null, 8, ["url", "meta"])
|
|
2369
2375
|
];
|
|
2370
2376
|
}),
|
|
@@ -2389,7 +2395,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2389
2395
|
fn: m(() => [
|
|
2390
2396
|
F($e, null, {
|
|
2391
2397
|
default: m(() => [
|
|
2392
|
-
Q(g(t(e).translateBadge ? t(M)(p[t(e).badge]) : p[t(e)[
|
|
2398
|
+
Q(g(t(e).translateBadge ? t(M)(p[t(e).badge]) : p[t(e)[s.badge]]), 1)
|
|
2393
2399
|
]),
|
|
2394
2400
|
_: 2
|
|
2395
2401
|
}, 1024)
|
|
@@ -2403,7 +2409,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2403
2409
|
};
|
|
2404
2410
|
}
|
|
2405
2411
|
});
|
|
2406
|
-
const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-
|
|
2412
|
+
const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) => ({
|
|
2407
2413
|
tabular: Ra,
|
|
2408
2414
|
grid: pt,
|
|
2409
2415
|
list: pt
|
|
@@ -2432,7 +2438,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2432
2438
|
},
|
|
2433
2439
|
emits: ["uiEvent"],
|
|
2434
2440
|
setup(c, { emit: u }) {
|
|
2435
|
-
const e = c, a = u,
|
|
2441
|
+
const e = c, a = u, l = Re(), s = vt({
|
|
2436
2442
|
delay: 600
|
|
2437
2443
|
}), r = ce("meta"), y = Te(), { reachedEnd: p, detach: h } = Xe(null, {
|
|
2438
2444
|
antecipate: 600
|
|
@@ -2444,7 +2450,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2444
2450
|
ea(o, {
|
|
2445
2451
|
persistInQuery: !e.noQueryPersistence
|
|
2446
2452
|
});
|
|
2447
|
-
const v = Mt(), b = e.action ? je(e.action) ? e.action.value : e.action : Rt(o,
|
|
2453
|
+
const v = Mt(), b = e.action ? je(e.action) ? e.action.value : e.action : Rt(o, l, v);
|
|
2448
2454
|
Be.value = b[0], ct.value = b[1];
|
|
2449
2455
|
const C = Y(0), R = Y(!1), T = async (O) => {
|
|
2450
2456
|
o.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
|
|
@@ -2458,21 +2464,21 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2458
2464
|
const { data: ee, pagination: ne } = await o.$actions.retrieveItems(z);
|
|
2459
2465
|
o.pagination.recordsCount = ne.recordsCount, o.pagination.recordsTotal = ne.recordsTotal, C.value === 0 && o.items.splice(0), o.items.push(...ee), o.loading.getAll = !1, R.value = !0;
|
|
2460
2466
|
}, q = async (O) => {
|
|
2461
|
-
|
|
2467
|
+
l.push({
|
|
2462
2468
|
query: {
|
|
2463
|
-
...
|
|
2469
|
+
...l.currentRoute.value.query,
|
|
2464
2470
|
offset: O.offset,
|
|
2465
2471
|
limit: O.limit
|
|
2466
2472
|
}
|
|
2467
2473
|
}), o.pagination.offset = O.offset, o.pagination.limit = O.limit, T();
|
|
2468
2474
|
}, w = fe("noResultsComponent", null);
|
|
2469
2475
|
ue(() => [
|
|
2470
|
-
|
|
2471
|
-
|
|
2476
|
+
l.currentRoute.value.path,
|
|
2477
|
+
l.currentRoute.value.query.section
|
|
2472
2478
|
], async (O, z) => {
|
|
2473
2479
|
if (z && z[0] === O[0] && z[1] === O[1])
|
|
2474
2480
|
return;
|
|
2475
|
-
const ee =
|
|
2481
|
+
const ee = l.currentRoute.value;
|
|
2476
2482
|
if (r.view.title = e.collection, r.view.collection = e.collection, ut.value = !1, !e.noFetch && !ee.query._popstate) {
|
|
2477
2483
|
const ne = zt(o, ee);
|
|
2478
2484
|
Object.keys(ne).length > 0 && Object.assign(o.filters, ne), await T();
|
|
@@ -2481,7 +2487,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2481
2487
|
immediate: !0,
|
|
2482
2488
|
flush: "post"
|
|
2483
2489
|
});
|
|
2484
|
-
const [
|
|
2490
|
+
const [le] = s((O) => (l.push({
|
|
2485
2491
|
query: {
|
|
2486
2492
|
search: O || void 0
|
|
2487
2493
|
}
|
|
@@ -2494,7 +2500,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2494
2500
|
offset: 0
|
|
2495
2501
|
})) : (o.filters = Se(o.freshFilters), C.value = 0, T())));
|
|
2496
2502
|
ue(() => o.textQuery, (O) => {
|
|
2497
|
-
|
|
2503
|
+
le(O);
|
|
2498
2504
|
});
|
|
2499
2505
|
const oe = (O) => {
|
|
2500
2506
|
O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
|
|
@@ -2575,7 +2581,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2575
2581
|
H(Object.keys(O.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
2576
2582
|
name: B,
|
|
2577
2583
|
fn: m((ae) => [
|
|
2578
|
-
V(O.$slots, B,
|
|
2584
|
+
V(O.$slots, B, se(be(ae)), void 0, !0)
|
|
2579
2585
|
])
|
|
2580
2586
|
}))
|
|
2581
2587
|
]), 1024)) : f("", !0),
|
|
@@ -2703,7 +2709,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2703
2709
|
])) : f("", !0),
|
|
2704
2710
|
Z((n(), i("div", null, [
|
|
2705
2711
|
t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || O.$slots.empty) ? (n(), i("div", Ya, [
|
|
2706
|
-
t(w) ? (n(), $(ye(t(w)),
|
|
2712
|
+
t(w) ? (n(), $(ye(t(w)), se(G({ key: 0 }, {
|
|
2707
2713
|
collection: t(o).$id
|
|
2708
2714
|
})), {
|
|
2709
2715
|
default: m(() => [
|
|
@@ -2721,10 +2727,10 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2721
2727
|
})) : f("", !0)
|
|
2722
2728
|
]),
|
|
2723
2729
|
_: 1
|
|
2724
|
-
}, 16)) : V(O.$slots, "empty",
|
|
2730
|
+
}, 16)) : V(O.$slots, "empty", se(G({ key: 1 }, {
|
|
2725
2731
|
collection: t(o).$id
|
|
2726
2732
|
})), void 0, !0)
|
|
2727
|
-
])) : O.$slots.component ? V(O.$slots, "component",
|
|
2733
|
+
])) : O.$slots.component ? V(O.$slots, "component", se(G({ key: 1 }, {
|
|
2728
2734
|
store: t(o)
|
|
2729
2735
|
})), void 0, !0) : (n(), $(ye(t(Ea)(((A = O.layout) == null ? void 0 : A.name) || t(o).$currentLayout)), G({ key: 2 }, {
|
|
2730
2736
|
individualActions: S.value,
|
|
@@ -2736,7 +2742,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2736
2742
|
H(Object.keys(O.$slots).filter((B) => B.startsWith("row-")), (B) => ({
|
|
2737
2743
|
name: B,
|
|
2738
2744
|
fn: m((ae) => [
|
|
2739
|
-
V(O.$slots, B,
|
|
2745
|
+
V(O.$slots, B, se(be(ae)), void 0, !0)
|
|
2740
2746
|
])
|
|
2741
2747
|
})),
|
|
2742
2748
|
O.$slots.tfoot ? {
|
|
@@ -2760,7 +2766,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2760
2766
|
};
|
|
2761
2767
|
}
|
|
2762
2768
|
});
|
|
2763
|
-
const
|
|
2769
|
+
const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { class: "prompt" }, Pa = /* @__PURE__ */ U({
|
|
2764
2770
|
__name: "aeria-prompt",
|
|
2765
2771
|
props: {
|
|
2766
2772
|
title: {},
|
|
@@ -2770,7 +2776,7 @@ const js = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
|
|
|
2770
2776
|
const u = ce("meta"), e = (a) => {
|
|
2771
2777
|
u.$actions.fulfillPrompt(a);
|
|
2772
2778
|
};
|
|
2773
|
-
return (a,
|
|
2779
|
+
return (a, l) => (n(), $(Ae, {
|
|
2774
2780
|
float: "",
|
|
2775
2781
|
"fill-footer": "",
|
|
2776
2782
|
"close-hint": !1,
|
|
@@ -2781,16 +2787,16 @@ const js = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
|
|
|
2781
2787
|
class: "prompt__actions",
|
|
2782
2788
|
style: he(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
|
|
2783
2789
|
}, [
|
|
2784
|
-
(n(!0), i(J, null, H(a.actions, (
|
|
2790
|
+
(n(!0), i(J, null, H(a.actions, (s, r) => (n(), $(me, {
|
|
2785
2791
|
key: `action-${r}`,
|
|
2786
2792
|
class: W(`
|
|
2787
2793
|
prompt__action
|
|
2788
|
-
prompt__action--${
|
|
2794
|
+
prompt__action--${s.variant || "primary"}
|
|
2789
2795
|
`),
|
|
2790
|
-
onClick: (y) =>
|
|
2796
|
+
onClick: (y) => s.click ? s.click(s) : e(s)
|
|
2791
2797
|
}, {
|
|
2792
2798
|
default: m(() => [
|
|
2793
|
-
Q(g(
|
|
2799
|
+
Q(g(s.title || s.name), 1)
|
|
2794
2800
|
]),
|
|
2795
2801
|
_: 2
|
|
2796
2802
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -2813,7 +2819,7 @@ const js = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
|
|
|
2813
2819
|
]), 1024));
|
|
2814
2820
|
}
|
|
2815
2821
|
});
|
|
2816
|
-
const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { class: "toast__content" },
|
|
2822
|
+
const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { class: "toast__content" }, el = { class: "toast__time" }, tl = /* @__PURE__ */ U({
|
|
2817
2823
|
__name: "aeria-toast",
|
|
2818
2824
|
props: {
|
|
2819
2825
|
idx: {},
|
|
@@ -2824,14 +2830,14 @@ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { cla
|
|
|
2824
2830
|
setup(c) {
|
|
2825
2831
|
const u = ce("meta");
|
|
2826
2832
|
return (e, a) => {
|
|
2827
|
-
const
|
|
2833
|
+
const l = N("clickable");
|
|
2828
2834
|
return Z((n(), i("div", {
|
|
2829
2835
|
class: W({
|
|
2830
2836
|
toast: !0,
|
|
2831
2837
|
"toast--animate": t(u).toasts[0].itr === e.itr
|
|
2832
2838
|
}),
|
|
2833
|
-
onAnimationend: a[0] || (a[0] = (
|
|
2834
|
-
onClick: a[1] || (a[1] = (
|
|
2839
|
+
onAnimationend: a[0] || (a[0] = (s) => t(u).$actions.popToast()),
|
|
2840
|
+
onClick: a[1] || (a[1] = (s) => t(u).$actions.popToast(e.itr))
|
|
2835
2841
|
}, [
|
|
2836
2842
|
F(K, G(
|
|
2837
2843
|
e.icon ? { icon: e.icon } : { icon: "warning-circle" },
|
|
@@ -2839,20 +2845,20 @@ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { cla
|
|
|
2839
2845
|
), null, 16),
|
|
2840
2846
|
k("div", xa, [
|
|
2841
2847
|
V(e.$slots, "default", {}, void 0, !0),
|
|
2842
|
-
k("div",
|
|
2848
|
+
k("div", el, g(e.formatDateTime(e.date, { hoursOnly: !0 })), 1)
|
|
2843
2849
|
])
|
|
2844
2850
|
], 34)), [
|
|
2845
|
-
[
|
|
2851
|
+
[l]
|
|
2846
2852
|
]);
|
|
2847
2853
|
};
|
|
2848
2854
|
}
|
|
2849
2855
|
});
|
|
2850
|
-
const
|
|
2856
|
+
const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["innerHTML"], al = { class: "main__toasts" }, ll = ["innerHTML"], sl = /* @__PURE__ */ U({
|
|
2851
2857
|
__name: "aeria-main",
|
|
2852
2858
|
setup(c) {
|
|
2853
2859
|
const u = ce("meta"), e = D(() => u.themeOverride || u.theme);
|
|
2854
|
-
return (a,
|
|
2855
|
-
const
|
|
2860
|
+
return (a, l) => {
|
|
2861
|
+
const s = Ct("router-view");
|
|
2856
2862
|
return n(), i("main", {
|
|
2857
2863
|
id: "main",
|
|
2858
2864
|
class: W(`
|
|
@@ -2863,7 +2869,7 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
|
|
|
2863
2869
|
}, [
|
|
2864
2870
|
(n(), $(It, null, {
|
|
2865
2871
|
default: m(() => [
|
|
2866
|
-
F(
|
|
2872
|
+
F(s, null, {
|
|
2867
2873
|
default: m(({ Component: r }) => [
|
|
2868
2874
|
(n(), $(ye(r), null, de({ _: 2 }, [
|
|
2869
2875
|
H(Object.keys(a.$slots), (y) => ({
|
|
@@ -2882,37 +2888,37 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
|
|
|
2882
2888
|
V(a.$slots, "default", {}, void 0, !0),
|
|
2883
2889
|
F(Ae, G({
|
|
2884
2890
|
modelValue: t(u).modal.visible,
|
|
2885
|
-
"onUpdate:modelValue":
|
|
2891
|
+
"onUpdate:modelValue": l[0] || (l[0] = (r) => t(u).modal.visible = r),
|
|
2886
2892
|
float: "",
|
|
2887
2893
|
"close-hint": ""
|
|
2888
2894
|
}, t(u).modal, {
|
|
2889
2895
|
"overlay-layer": 70,
|
|
2890
|
-
onOverlayClick:
|
|
2896
|
+
onOverlayClick: l[1] || (l[1] = (r) => t(u).modal.visible = !1)
|
|
2891
2897
|
}), {
|
|
2892
2898
|
default: m(() => [
|
|
2893
2899
|
t(u).modal.body ? (n(), i("div", {
|
|
2894
2900
|
key: 0,
|
|
2895
2901
|
style: { "white-space": "pre-wrap" },
|
|
2896
2902
|
innerHTML: t(u).modal.body
|
|
2897
|
-
}, null, 8,
|
|
2903
|
+
}, null, 8, ol)) : f("", !0),
|
|
2898
2904
|
t(u).modal.component ? (n(), $(ye(t(u).modal.component), { key: 1 })) : f("", !0)
|
|
2899
2905
|
]),
|
|
2900
2906
|
_: 1
|
|
2901
2907
|
}, 16, ["modelValue"]),
|
|
2902
|
-
t(u).prompt.visible ? (n(), $(Na,
|
|
2908
|
+
t(u).prompt.visible ? (n(), $(Na, se(G({ key: 0 }, t(u).prompt)), {
|
|
2903
2909
|
default: m(() => [
|
|
2904
2910
|
Q(g(t(u).prompt.body), 1)
|
|
2905
2911
|
]),
|
|
2906
2912
|
_: 1
|
|
2907
2913
|
}, 16)) : f("", !0),
|
|
2908
|
-
k("div",
|
|
2909
|
-
(n(!0), i(J, null, H(t(u).toasts, (r) => (n(), $(
|
|
2914
|
+
k("div", al, [
|
|
2915
|
+
(n(!0), i(J, null, H(t(u).toasts, (r) => (n(), $(nl, G(r, {
|
|
2910
2916
|
key: `toast-${r.itr}`
|
|
2911
2917
|
}), {
|
|
2912
2918
|
default: m(() => [
|
|
2913
2919
|
k("div", {
|
|
2914
2920
|
innerHTML: t(M)(r.text)
|
|
2915
|
-
}, null, 8,
|
|
2921
|
+
}, null, 8, ll)
|
|
2916
2922
|
]),
|
|
2917
2923
|
_: 2
|
|
2918
2924
|
}, 1040))), 128))
|
|
@@ -2921,10 +2927,10 @@ const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["inn
|
|
|
2921
2927
|
};
|
|
2922
2928
|
}
|
|
2923
2929
|
});
|
|
2924
|
-
const
|
|
2925
|
-
const
|
|
2926
|
-
function
|
|
2927
|
-
return n(), i("menu",
|
|
2930
|
+
const Tl = /* @__PURE__ */ X(sl, [["__scopeId", "data-v-1166be3d"]]);
|
|
2931
|
+
const il = {}, rl = { class: "menu" };
|
|
2932
|
+
function ul(c, u) {
|
|
2933
|
+
return n(), i("menu", rl, [
|
|
2928
2934
|
(n(!0), i(J, null, H(Object.keys(c.$slots), (e) => (n(), i("div", {
|
|
2929
2935
|
key: e,
|
|
2930
2936
|
class: "menu__entry"
|
|
@@ -2933,16 +2939,16 @@ function us(c, u) {
|
|
|
2933
2939
|
]))), 128))
|
|
2934
2940
|
]);
|
|
2935
2941
|
}
|
|
2936
|
-
const
|
|
2942
|
+
const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb"]]), cl = { class: "tabs" }, dl = {
|
|
2937
2943
|
key: 0,
|
|
2938
2944
|
class: "tabs__horizontal"
|
|
2939
|
-
},
|
|
2945
|
+
}, pl = {
|
|
2940
2946
|
key: 0,
|
|
2941
2947
|
class: "tabs__tab tabs__tab--info"
|
|
2942
|
-
},
|
|
2948
|
+
}, _l = ["onClick"], ml = {
|
|
2943
2949
|
key: 1,
|
|
2944
2950
|
class: "tabs__context-menu"
|
|
2945
|
-
},
|
|
2951
|
+
}, fl = ["onClick"], vl = /* @__PURE__ */ U({
|
|
2946
2952
|
__name: "aeria-tabs",
|
|
2947
2953
|
props: {
|
|
2948
2954
|
query: {},
|
|
@@ -2950,11 +2956,11 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
|
|
|
2950
2956
|
dropdown: { type: Boolean }
|
|
2951
2957
|
},
|
|
2952
2958
|
setup(c) {
|
|
2953
|
-
const u = c, e = At(), a = Re(),
|
|
2954
|
-
const p = a.currentRoute.value[
|
|
2959
|
+
const u = c, e = At(), a = Re(), l = Te(), s = "query" in u && u.query ? "query" : "params", r = D(() => {
|
|
2960
|
+
const p = a.currentRoute.value[s][u.query || u.param];
|
|
2955
2961
|
return p || Object.keys(e)[0];
|
|
2956
2962
|
}), y = (p) => {
|
|
2957
|
-
if (
|
|
2963
|
+
if (s === "query") {
|
|
2958
2964
|
a.push({
|
|
2959
2965
|
query: {
|
|
2960
2966
|
...a.currentRoute.value.query,
|
|
@@ -2971,9 +2977,9 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
|
|
|
2971
2977
|
};
|
|
2972
2978
|
return (p, h) => {
|
|
2973
2979
|
const d = N("clickable");
|
|
2974
|
-
return n(), i("div",
|
|
2975
|
-
t(
|
|
2976
|
-
p.$slots.default ? (n(), i("div",
|
|
2980
|
+
return n(), i("div", cl, [
|
|
2981
|
+
t(l).md && !p.dropdown ? (n(), i("div", dl, [
|
|
2982
|
+
p.$slots.default ? (n(), i("div", pl, [
|
|
2977
2983
|
V(p.$slots, "default", {}, void 0, !0)
|
|
2978
2984
|
])) : f("", !0),
|
|
2979
2985
|
(n(!0), i(J, null, H(Object.keys(p.$slots).filter((o) => o !== "default"), (o, v) => (n(), i("div", {
|
|
@@ -2985,8 +2991,8 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
|
|
|
2985
2991
|
onClick: (b) => y(o)
|
|
2986
2992
|
}, [
|
|
2987
2993
|
V(p.$slots, o, {}, void 0, !0)
|
|
2988
|
-
], 10,
|
|
2989
|
-
])) : (n(), i("div",
|
|
2994
|
+
], 10, _l))), 128))
|
|
2995
|
+
])) : (n(), i("div", ml, [
|
|
2990
2996
|
F(Ce, null, de({
|
|
2991
2997
|
default: m(() => [
|
|
2992
2998
|
Z((n(), $(K, {
|
|
@@ -3012,7 +3018,7 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
|
|
|
3012
3018
|
onClick: (v) => y(o)
|
|
3013
3019
|
}, [
|
|
3014
3020
|
V(p.$slots, o, {}, void 0, !0)
|
|
3015
|
-
], 8,
|
|
3021
|
+
], 8, fl)
|
|
3016
3022
|
])
|
|
3017
3023
|
}))
|
|
3018
3024
|
]), 1024)
|
|
@@ -3021,7 +3027,7 @@ const Ls = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb
|
|
|
3021
3027
|
};
|
|
3022
3028
|
}
|
|
3023
3029
|
});
|
|
3024
|
-
const
|
|
3030
|
+
const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-d12cddeb"]]), hl = U({
|
|
3025
3031
|
props: {
|
|
3026
3032
|
initialValue: String,
|
|
3027
3033
|
promise: Promise
|
|
@@ -3032,31 +3038,31 @@ const ys = /* @__PURE__ */ X(vs, [["__scopeId", "data-v-d12cddeb"]]), hs = U({
|
|
|
3032
3038
|
u.value = e;
|
|
3033
3039
|
}), () => Ot("div", u.value);
|
|
3034
3040
|
}
|
|
3035
|
-
}), $
|
|
3041
|
+
}), $l = ["onClick"], bl = { key: 1 }, gl = /* @__PURE__ */ U({
|
|
3036
3042
|
__name: "aeria-crud-topbar",
|
|
3037
3043
|
props: {
|
|
3038
3044
|
collection: {}
|
|
3039
3045
|
},
|
|
3040
3046
|
setup(c) {
|
|
3041
|
-
const u = c, a = Re().currentRoute,
|
|
3047
|
+
const u = c, a = Re().currentRoute, l = D(() => {
|
|
3042
3048
|
try {
|
|
3043
|
-
const
|
|
3044
|
-
return ge(
|
|
3049
|
+
const s = u.collection ? u.collection : a.value.meta.collection || a.value.params.collection;
|
|
3050
|
+
return ge(s);
|
|
3045
3051
|
} catch {
|
|
3046
3052
|
return null;
|
|
3047
3053
|
}
|
|
3048
3054
|
});
|
|
3049
|
-
return (
|
|
3055
|
+
return (s, r) => l.value && l.value.description.filtersPresets ? (n(), $(yl, {
|
|
3050
3056
|
key: 0,
|
|
3051
3057
|
dropdown: "",
|
|
3052
3058
|
query: "section"
|
|
3053
3059
|
}, de({ _: 2 }, [
|
|
3054
|
-
H(Object.entries(
|
|
3060
|
+
H(Object.entries(l.value.description.filtersPresets), ([y, p]) => ({
|
|
3055
3061
|
name: y,
|
|
3056
3062
|
fn: m(() => [
|
|
3057
3063
|
k("div", {
|
|
3058
3064
|
class: "topbar__preset",
|
|
3059
|
-
onClick: (h) => t(ht)(p,
|
|
3065
|
+
onClick: (h) => t(ht)(p, l.value)
|
|
3060
3066
|
}, [
|
|
3061
3067
|
p.icon ? (n(), $(K, {
|
|
3062
3068
|
key: 0,
|
|
@@ -3066,26 +3072,26 @@ const ys = /* @__PURE__ */ X(vs, [["__scopeId", "data-v-d12cddeb"]]), hs = U({
|
|
|
3066
3072
|
Q(g(p.name || t(M)(y, { plural: !0 })), 1)
|
|
3067
3073
|
]),
|
|
3068
3074
|
_: 2
|
|
3069
|
-
}, 1032, ["icon"])) : (n(), i("div",
|
|
3075
|
+
}, 1032, ["icon"])) : (n(), i("div", bl, g(p.name || t(M)(y, { plural: !0 })), 1)),
|
|
3070
3076
|
p.badgeFunction ? (n(), $($e, { key: 2 }, {
|
|
3071
3077
|
default: m(() => [
|
|
3072
|
-
F(t(
|
|
3078
|
+
F(t(hl), {
|
|
3073
3079
|
"initial-value": "0",
|
|
3074
|
-
promise:
|
|
3080
|
+
promise: l.value.$functions[p.badgeFunction]({ filters: p.filters })
|
|
3075
3081
|
}, null, 8, ["promise"])
|
|
3076
3082
|
]),
|
|
3077
3083
|
_: 2
|
|
3078
3084
|
}, 1024)) : f("", !0)
|
|
3079
|
-
], 8, $
|
|
3085
|
+
], 8, $l)
|
|
3080
3086
|
])
|
|
3081
3087
|
}))
|
|
3082
3088
|
]), 1024)) : f("", !0);
|
|
3083
3089
|
}
|
|
3084
3090
|
});
|
|
3085
|
-
const
|
|
3091
|
+
const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3086
3092
|
__proto__: null,
|
|
3087
|
-
default:
|
|
3088
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3093
|
+
default: kl
|
|
3094
|
+
}, Symbol.toStringTag, { value: "Module" })), Rl = /* @__PURE__ */ U({
|
|
3089
3095
|
__name: "aeria-password-form",
|
|
3090
3096
|
props: {
|
|
3091
3097
|
modelValue: {}
|
|
@@ -3098,7 +3104,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3098
3104
|
u.modelValue.password,
|
|
3099
3105
|
u.modelValue.confirmation
|
|
3100
3106
|
));
|
|
3101
|
-
return (
|
|
3107
|
+
return (l, s) => (n(), $(De, {
|
|
3102
3108
|
form: {
|
|
3103
3109
|
password: {
|
|
3104
3110
|
type: "string",
|
|
@@ -3111,17 +3117,17 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3111
3117
|
inputType: "password"
|
|
3112
3118
|
}
|
|
3113
3119
|
},
|
|
3114
|
-
"model-value":
|
|
3115
|
-
"onUpdate:modelValue":
|
|
3120
|
+
"model-value": l.modelValue,
|
|
3121
|
+
"onUpdate:modelValue": s[0] || (s[0] = (r) => l.$emit("update:modelValue", r))
|
|
3116
3122
|
}, {
|
|
3117
3123
|
after: m(() => [
|
|
3118
3124
|
k("div", null, g(a.value || "Senhas conferem"), 1),
|
|
3119
|
-
V(
|
|
3125
|
+
V(l.$slots, "default", se(be({ passwordError: a.value })))
|
|
3120
3126
|
]),
|
|
3121
3127
|
_: 3
|
|
3122
3128
|
}, 8, ["model-value"]));
|
|
3123
3129
|
}
|
|
3124
|
-
}),
|
|
3130
|
+
}), zl = (c, u = []) => ({
|
|
3125
3131
|
path: "/user",
|
|
3126
3132
|
name: "/builtin:user",
|
|
3127
3133
|
component: c,
|
|
@@ -3139,7 +3145,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3139
3145
|
{
|
|
3140
3146
|
path: "signin",
|
|
3141
3147
|
name: "/user/signin",
|
|
3142
|
-
component: () => import("./signin-
|
|
3148
|
+
component: () => import("./signin-239b50f9.js"),
|
|
3143
3149
|
meta: {
|
|
3144
3150
|
title: "Autenticação"
|
|
3145
3151
|
}
|
|
@@ -3147,7 +3153,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3147
3153
|
{
|
|
3148
3154
|
path: "signup",
|
|
3149
3155
|
name: "/user/signup",
|
|
3150
|
-
component: () => import("./signup-
|
|
3156
|
+
component: () => import("./signup-41aa6fb5.js"),
|
|
3151
3157
|
meta: {
|
|
3152
3158
|
title: "Registro"
|
|
3153
3159
|
}
|
|
@@ -3155,13 +3161,13 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3155
3161
|
{
|
|
3156
3162
|
path: "activation",
|
|
3157
3163
|
name: "/user/activation",
|
|
3158
|
-
component: () => import("./activation-
|
|
3164
|
+
component: () => import("./activation-a5c1758c.js"),
|
|
3159
3165
|
meta: {
|
|
3160
3166
|
title: "Ativação"
|
|
3161
3167
|
}
|
|
3162
3168
|
}
|
|
3163
3169
|
])
|
|
3164
|
-
}),
|
|
3170
|
+
}), Fl = (c, u = []) => ({
|
|
3165
3171
|
path: "/dashboard",
|
|
3166
3172
|
name: "/builtin:dashboard",
|
|
3167
3173
|
component: c,
|
|
@@ -3177,8 +3183,8 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3177
3183
|
name: "/dashboard/crud",
|
|
3178
3184
|
props: !0,
|
|
3179
3185
|
components: {
|
|
3180
|
-
default: () => import("./crud-view-
|
|
3181
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3186
|
+
default: () => import("./crud-view-e9da0195.js"),
|
|
3187
|
+
topbar: () => Promise.resolve().then(() => Vl)
|
|
3182
3188
|
},
|
|
3183
3189
|
meta: {
|
|
3184
3190
|
title: "%viewTitle%"
|
|
@@ -3195,7 +3201,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3195
3201
|
children: [
|
|
3196
3202
|
{
|
|
3197
3203
|
path: "profile",
|
|
3198
|
-
component: () => import("./profile-
|
|
3204
|
+
component: () => import("./profile-7ee43576.js"),
|
|
3199
3205
|
meta: {
|
|
3200
3206
|
title: "Meu perfil",
|
|
3201
3207
|
icon: "user-square"
|
|
@@ -3204,7 +3210,7 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3204
3210
|
{
|
|
3205
3211
|
path: "changepass",
|
|
3206
3212
|
name: "/dashboard/user/changepass",
|
|
3207
|
-
component: () => import("./password-change-
|
|
3213
|
+
component: () => import("./password-change-2e446552.js"),
|
|
3208
3214
|
meta: {
|
|
3209
3215
|
title: "Mudar senha",
|
|
3210
3216
|
icon: "lock"
|
|
@@ -3217,35 +3223,35 @@ const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @_
|
|
|
3217
3223
|
export {
|
|
3218
3224
|
De as A,
|
|
3219
3225
|
Na as B,
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3226
|
+
nl as C,
|
|
3227
|
+
kl as D,
|
|
3228
|
+
zl as E,
|
|
3229
|
+
Fl as F,
|
|
3230
|
+
Rl as _,
|
|
3225
3231
|
re as a,
|
|
3226
3232
|
K as b,
|
|
3227
3233
|
Hn as c,
|
|
3228
|
-
|
|
3234
|
+
jl as d,
|
|
3229
3235
|
Me as e,
|
|
3230
|
-
|
|
3236
|
+
Ll as f,
|
|
3231
3237
|
Ae as g,
|
|
3232
3238
|
X as h,
|
|
3233
|
-
|
|
3239
|
+
Sl as i,
|
|
3234
3240
|
$e as j,
|
|
3235
3241
|
me as k,
|
|
3236
3242
|
cn as l,
|
|
3237
3243
|
Ce as m,
|
|
3238
3244
|
Fa as n,
|
|
3239
3245
|
yn as o,
|
|
3240
|
-
|
|
3246
|
+
Tl as p,
|
|
3241
3247
|
Rn as q,
|
|
3242
3248
|
La as r,
|
|
3243
|
-
|
|
3249
|
+
yl as s,
|
|
3244
3250
|
yo as t,
|
|
3245
3251
|
Ie as u,
|
|
3246
3252
|
Gn as v,
|
|
3247
3253
|
Ro as w,
|
|
3248
3254
|
He as x,
|
|
3249
3255
|
Pn as y,
|
|
3250
|
-
|
|
3256
|
+
hl as z
|
|
3251
3257
|
};
|