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