@aeria-ui/ui 0.0.31 → 0.0.32
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-a5c1758c.js → activation-b2a947e0.js} +2 -2
- package/dist/components/aeria-crud/_internals/helpers.d.ts +1 -1
- package/dist/components/aeria-crud/_internals/store.d.ts +1 -1
- package/dist/components/aeria-crud/aeria-crud.vue.d.ts +2 -2
- package/dist/components/aeria-pagination/aeria-pagination.vue.d.ts +1 -1
- package/dist/components/dashboard/aeria-prompt/aeria-prompt.vue.d.ts +1 -1
- package/dist/components/form/aeria-file/aeria-file.vue.d.ts +6 -6
- package/dist/{crud-view-e9da0195.js → crud-view-232aa79c.js} +2 -2
- package/dist/{index-0078f1b5.js → index-0c058b56.js} +451 -450
- package/dist/{password-change-2e446552.js → password-change-f12b3652.js} +2 -2
- package/dist/{profile-7ee43576.js → profile-d956dbdb.js} +13 -13
- package/dist/{signin-239b50f9.js → signin-72b3b697.js} +2 -2
- package/dist/{signup-41aa6fb5.js → signup-0257e6aa.js} +2 -2
- package/dist/style.css +1 -1
- package/dist/ui.js +2 -2
- package/package.json +9 -9
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as
|
|
1
|
+
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as s, 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 C, 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 Ge, watch as ue, createVNode as F, vModelDynamic as bt, onBeforeMount as _t, normalizeStyle as he, withModifiers as ze, pushScopeId as Me, popScopeId as qe, provide as ve, onMounted as gt, normalizeProps as se, guardReactiveProps as be, isRef as mt, createSlots as de, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as It, useSlots as At, h as Ot } from "vue";
|
|
2
2
|
import { t as M, useI18n as wt } from "@aeria-ui/i18n";
|
|
3
|
-
import { useScrollObserver as
|
|
4
|
-
import { useStore as ce, getStoreId as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { getReferenceProperty as pe, convertConditionToQuery as qt, deepClone as Se, freshItem as Ut, isRequired as Et, evaluateCondition as
|
|
3
|
+
import { useScrollObserver as We, useBreakpoints as je, 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/core";
|
|
4
|
+
import { useStore as ce, getStoreId as Te, useParentStore as ge, STORE_ID as Ue, getGlobalStateManager as Mt } from "@aeria-ui/state-management";
|
|
5
|
+
import { useRouter as Le } from "vue-router";
|
|
6
|
+
import { getReferenceProperty as pe, convertConditionToQuery as qt, deepClone as Se, freshItem as Ut, isRequired as Et, evaluateCondition as Qe, isLeft as Ht } from "@aeriajs/common";
|
|
7
7
|
const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "accordion__content"
|
|
@@ -17,28 +17,28 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
17
17
|
setup(c) {
|
|
18
18
|
const u = Y(null), e = (a) => typeof a == "string" ? a : a.title;
|
|
19
19
|
return (a, l) => {
|
|
20
|
-
const
|
|
21
|
-
return n(),
|
|
20
|
+
const i = N("clickable");
|
|
21
|
+
return n(), s("div", {
|
|
22
22
|
class: W({
|
|
23
23
|
accordion: !0,
|
|
24
24
|
"accordion--padded": !a.noPadding
|
|
25
25
|
})
|
|
26
26
|
}, [
|
|
27
|
-
(n(!0),
|
|
27
|
+
(n(!0), s(J, null, H(Object.keys(a.$slots).filter((r) => r !== "default"), (r, y) => (n(), s("div", {
|
|
28
28
|
key: r,
|
|
29
29
|
class: "accordion__slot"
|
|
30
30
|
}, [
|
|
31
|
-
Z((n(),
|
|
31
|
+
Z((n(), s("div", {
|
|
32
32
|
class: "accordion__header",
|
|
33
33
|
onClick: (p) => u.value === r ? u.value = null : u.value = r
|
|
34
34
|
}, [
|
|
35
|
-
a.enumerate ? (n(),
|
|
35
|
+
a.enumerate ? (n(), s("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
|
+
[i]
|
|
39
39
|
]),
|
|
40
|
-
u.value === r ? (n(),
|
|
41
|
-
|
|
40
|
+
u.value === r ? (n(), s("div", Gt, [
|
|
41
|
+
C(a.$slots, r, {}, void 0, !0)
|
|
42
42
|
])) : f("", !0)
|
|
43
43
|
]))), 128))
|
|
44
44
|
], 2);
|
|
@@ -57,14 +57,14 @@ const X = (c, u) => {
|
|
|
57
57
|
alt: { type: Boolean }
|
|
58
58
|
},
|
|
59
59
|
setup(c) {
|
|
60
|
-
return (u, e) => (n(),
|
|
60
|
+
return (u, e) => (n(), s("div", {
|
|
61
61
|
class: W(`
|
|
62
62
|
badge
|
|
63
63
|
${u.large && "badge--large"}
|
|
64
64
|
${u.alt && "badge--alt"}
|
|
65
65
|
`)
|
|
66
66
|
}, [
|
|
67
|
-
|
|
67
|
+
C(u.$slots, "default", {}, void 0, !0)
|
|
68
68
|
], 2));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -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, l = (
|
|
79
|
-
e.disabled || a("click",
|
|
78
|
+
const e = c, a = u, l = (i) => {
|
|
79
|
+
e.disabled || a("click", i);
|
|
80
80
|
};
|
|
81
|
-
return (
|
|
81
|
+
return (i, r) => (n(), s("button", {
|
|
82
82
|
class: W(`
|
|
83
83
|
barebutton
|
|
84
|
-
barebutton--${
|
|
84
|
+
barebutton--${i.disabled ? "disabled" : "enabled"}
|
|
85
85
|
`),
|
|
86
86
|
onClick: l
|
|
87
87
|
}, [
|
|
88
|
-
|
|
88
|
+
C(i.$slots, "default", {}, void 0, !0)
|
|
89
89
|
], 2));
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -107,7 +107,7 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
107
107
|
var l;
|
|
108
108
|
return (l = u.icon) != null && l.includes(":") ? u.icon : `regular:${u.icon}`;
|
|
109
109
|
});
|
|
110
|
-
return (l,
|
|
110
|
+
return (l, i) => (n(), s("a", {
|
|
111
111
|
class: W(`
|
|
112
112
|
icon
|
|
113
113
|
${t(e) && "icon--reactive"}
|
|
@@ -121,7 +121,7 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
121
121
|
${l.iconRight && "icon__icon--right"}
|
|
122
122
|
`)
|
|
123
123
|
}, [
|
|
124
|
-
(n(),
|
|
124
|
+
(n(), s("svg", G({
|
|
125
125
|
width: "24",
|
|
126
126
|
height: "24",
|
|
127
127
|
viewBox: "0 0 256 256",
|
|
@@ -134,8 +134,8 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
134
134
|
}, null, 8, Jt)
|
|
135
135
|
], 16))
|
|
136
136
|
], 2),
|
|
137
|
-
l.$slots.default ? (n(),
|
|
138
|
-
|
|
137
|
+
l.$slots.default ? (n(), s("div", Kt, [
|
|
138
|
+
C(l.$slots, "default", {}, void 0, !0)
|
|
139
139
|
])) : f("", !0)
|
|
140
140
|
], 2));
|
|
141
141
|
}
|
|
@@ -167,16 +167,16 @@ 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, l = D(() => e.floating || e.float),
|
|
170
|
+
const e = c, a = u, l = D(() => e.floating || e.float), i = Y(e.collapsed), r = Y(null), { reachedEnd: y } = We(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), i.value = o;
|
|
176
176
|
};
|
|
177
177
|
return (o, v) => {
|
|
178
|
-
const b = N("clickable"),
|
|
179
|
-
return o.modelValue ? Z((n(),
|
|
178
|
+
const b = N("clickable"), V = N("loading"), R = N("overlay");
|
|
179
|
+
return o.modelValue ? Z((n(), s("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: W(`
|
|
182
182
|
panel
|
|
@@ -201,25 +201,25 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
201
201
|
onClick: v[1] || (v[1] = (T) => T.stopPropagation())
|
|
202
202
|
}, {
|
|
203
203
|
default: m(() => [
|
|
204
|
-
o.$slots.header || o.title ? (n(),
|
|
204
|
+
o.$slots.header || o.title ? (n(), s("div", {
|
|
205
205
|
key: 0,
|
|
206
206
|
class: W(`
|
|
207
207
|
panel__header
|
|
208
|
-
${
|
|
208
|
+
${i.value && "panel__header--collapsed"}
|
|
209
209
|
${o.outerHeader && "panel__header--outer"}
|
|
210
210
|
`)
|
|
211
211
|
}, [
|
|
212
212
|
k("div", Pt, [
|
|
213
|
-
o.$slots.header ?
|
|
214
|
-
o.$slots.extra ? (n(),
|
|
215
|
-
|
|
213
|
+
o.$slots.header ? C(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), s("div", Nt, g(o.title), 1)) : f("", !0),
|
|
214
|
+
o.$slots.extra ? (n(), s("div", xt, [
|
|
215
|
+
C(o.$slots, "extra", {}, void 0, !0)
|
|
216
216
|
])) : f("", !0)
|
|
217
217
|
]),
|
|
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: i.value ? "plus" : "minus",
|
|
222
|
+
onClick: v[0] || (v[0] = (T) => d(!i.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
|
+
i.value ? f("", !0) : Z((n(), s("div", {
|
|
235
235
|
key: 1,
|
|
236
236
|
ref_key: "body",
|
|
237
237
|
ref: r,
|
|
@@ -240,11 +240,11 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
240
240
|
${o.fill || "panel__body--padded"}
|
|
241
241
|
`)
|
|
242
242
|
}, [
|
|
243
|
-
|
|
243
|
+
C(o.$slots, "default", {}, void 0, !0)
|
|
244
244
|
], 2)), [
|
|
245
|
-
[
|
|
245
|
+
[V, o.loading]
|
|
246
246
|
]),
|
|
247
|
-
o.$slots.footer ? (n(),
|
|
247
|
+
o.$slots.footer ? (n(), s("div", {
|
|
248
248
|
key: 2,
|
|
249
249
|
class: W(`
|
|
250
250
|
panel__footer
|
|
@@ -252,7 +252,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
252
252
|
${t(y) || "panel__footer--shadowed"}
|
|
253
253
|
`)
|
|
254
254
|
}, [
|
|
255
|
-
|
|
255
|
+
C(o.$slots, "footer", {}, void 0, !0)
|
|
256
256
|
], 2)) : f("", !0)
|
|
257
257
|
]),
|
|
258
258
|
_: 3
|
|
@@ -268,7 +268,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
|
-
const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-
|
|
271
|
+
const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-6fdc75a0"]]), tn = { class: "button__content" }, nn = {
|
|
272
272
|
key: 1,
|
|
273
273
|
class: "button__content"
|
|
274
274
|
}, on = /* @__PURE__ */ U({
|
|
@@ -292,7 +292,7 @@ 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 (l,
|
|
295
|
+
return (l, i) => (n(), $(me, {
|
|
296
296
|
class: W(`
|
|
297
297
|
button
|
|
298
298
|
button--${t(e)}
|
|
@@ -308,12 +308,12 @@ const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-72abeadd"]]), tn = { cla
|
|
|
308
308
|
}, {
|
|
309
309
|
default: m(() => [
|
|
310
310
|
k("div", tn, [
|
|
311
|
-
|
|
311
|
+
C(l.$slots, "default", {}, void 0, !0)
|
|
312
312
|
])
|
|
313
313
|
]),
|
|
314
314
|
_: 3
|
|
315
|
-
}, 8, ["icon"])) : (n(),
|
|
316
|
-
|
|
315
|
+
}, 8, ["icon"])) : (n(), s("div", nn, [
|
|
316
|
+
C(l.$slots, "default", {}, void 0, !0)
|
|
317
317
|
]))
|
|
318
318
|
]),
|
|
319
319
|
_: 3
|
|
@@ -327,7 +327,7 @@ const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { cla
|
|
|
327
327
|
horizontal: { type: Boolean }
|
|
328
328
|
},
|
|
329
329
|
setup(c) {
|
|
330
|
-
return (u, e) => (n(),
|
|
330
|
+
return (u, e) => (n(), s("div", {
|
|
331
331
|
class: W(`
|
|
332
332
|
card
|
|
333
333
|
${u.inactive && "card--inactive"}
|
|
@@ -335,17 +335,17 @@ const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { cla
|
|
|
335
335
|
`)
|
|
336
336
|
}, [
|
|
337
337
|
k("div", an, [
|
|
338
|
-
|
|
338
|
+
C(u.$slots, "default", {}, void 0, !0)
|
|
339
339
|
]),
|
|
340
340
|
k("div", ln, [
|
|
341
341
|
k("div", sn, [
|
|
342
342
|
k("div", null, [
|
|
343
|
-
|
|
343
|
+
C(u.$slots, "footer", {}, void 0, !0)
|
|
344
344
|
]),
|
|
345
|
-
u.$slots.actions ?
|
|
345
|
+
u.$slots.actions ? C(u.$slots, "actions", { key: 0 }, void 0, !0) : f("", !0)
|
|
346
346
|
]),
|
|
347
347
|
k("div", rn, [
|
|
348
|
-
|
|
348
|
+
C(u.$slots, "badge", {}, void 0, !0)
|
|
349
349
|
])
|
|
350
350
|
])
|
|
351
351
|
], 2));
|
|
@@ -367,11 +367,11 @@ 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"), l = Y(null),
|
|
370
|
+
const e = u, a = ce("user"), l = Y(null), i = 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
|
+
}), i.value = !1;
|
|
375
375
|
}, p = D(() => {
|
|
376
376
|
if (!l.value)
|
|
377
377
|
return {
|
|
@@ -380,7 +380,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
380
380
|
};
|
|
381
381
|
const h = l.value.getBoundingClientRect().top, d = l.value.getBoundingClientRect().left, o = l.value.offsetHeight;
|
|
382
382
|
return {
|
|
383
|
-
_:
|
|
383
|
+
_: i.value,
|
|
384
384
|
x: Math.floor(d) + "px",
|
|
385
385
|
y: Math.floor(h + o) + "px"
|
|
386
386
|
};
|
|
@@ -388,8 +388,8 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
388
388
|
return (h, d) => {
|
|
389
389
|
var v;
|
|
390
390
|
const o = N("overlay");
|
|
391
|
-
return n(),
|
|
392
|
-
Object.keys(h.$slots).some((b) => b !== "default") || ((v = h.actions) == null ? void 0 : v.length) > 0 ? (n(),
|
|
391
|
+
return n(), s(J, null, [
|
|
392
|
+
Object.keys(h.$slots).some((b) => b !== "default") || ((v = h.actions) == null ? void 0 : v.length) > 0 ? (n(), s("div", {
|
|
393
393
|
key: 0,
|
|
394
394
|
ref_key: "contextmenu",
|
|
395
395
|
ref: l,
|
|
@@ -397,18 +397,18 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
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) => i.value = !0)
|
|
401
401
|
}, [
|
|
402
|
-
|
|
402
|
+
C(h.$slots, "default", {}, void 0, !0)
|
|
403
403
|
])
|
|
404
404
|
], 512)) : f("", !0),
|
|
405
|
-
|
|
405
|
+
i.value ? (n(), $(Ge, {
|
|
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: i.value,
|
|
411
|
+
"onUpdate:modelValue": d[4] || (d[4] = (b) => i.value = b),
|
|
412
412
|
fill: "",
|
|
413
413
|
class: "content"
|
|
414
414
|
}, {
|
|
@@ -416,41 +416,41 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
416
416
|
var b;
|
|
417
417
|
return [
|
|
418
418
|
k("div", dn, [
|
|
419
|
-
h.$slots.header ? (n(),
|
|
420
|
-
|
|
419
|
+
h.$slots.header ? (n(), s("div", pn, [
|
|
420
|
+
C(h.$slots, "header", {}, void 0, !0)
|
|
421
421
|
])) : f("", !0),
|
|
422
|
-
Object.keys(h.$slots).filter((
|
|
422
|
+
Object.keys(h.$slots).filter((V) => !["default", "extra", "header"].includes(V)).length > 0 ? (n(), s("div", {
|
|
423
423
|
key: 1,
|
|
424
424
|
class: "content__section",
|
|
425
|
-
onClick: d[1] || (d[1] = (
|
|
425
|
+
onClick: d[1] || (d[1] = (V) => i.value = !1)
|
|
426
426
|
}, [
|
|
427
|
-
(n(!0),
|
|
427
|
+
(n(!0), s(J, null, H(Object.keys(h.$slots).filter((V) => !["default", "extra", "header"].includes(V)), (V, R) => (n(), $(me, {
|
|
428
428
|
key: `slot-${R}`,
|
|
429
429
|
class: "content__item content__item--reactive"
|
|
430
430
|
}, {
|
|
431
431
|
default: m(() => [
|
|
432
|
-
|
|
432
|
+
C(h.$slots, V, {}, void 0, !0)
|
|
433
433
|
]),
|
|
434
434
|
_: 2
|
|
435
435
|
}, 1024))), 128))
|
|
436
436
|
])) : f("", !0),
|
|
437
|
-
((b = h.actions) == null ? void 0 : b.length) > 0 ? (n(),
|
|
437
|
+
((b = h.actions) == null ? void 0 : b.length) > 0 ? (n(), s("div", {
|
|
438
438
|
key: 2,
|
|
439
439
|
class: "content__section",
|
|
440
|
-
onClick: d[2] || (d[2] = (
|
|
440
|
+
onClick: d[2] || (d[2] = (V) => i.value = !1)
|
|
441
441
|
}, [
|
|
442
|
-
(n(!0),
|
|
442
|
+
(n(!0), s(J, null, H(r(h.actions), (V, R) => (n(), $(me, {
|
|
443
443
|
key: `action-${R}`,
|
|
444
444
|
class: "content__item content__item--reactive",
|
|
445
|
-
onClick: (T) => y(
|
|
445
|
+
onClick: (T) => y(V, h.subject)
|
|
446
446
|
}, {
|
|
447
447
|
default: m(() => [
|
|
448
|
-
|
|
448
|
+
V.icon ? (n(), $(K, {
|
|
449
449
|
key: 0,
|
|
450
|
-
icon:
|
|
450
|
+
icon: V.icon
|
|
451
451
|
}, {
|
|
452
452
|
default: m(() => [
|
|
453
|
-
Q(g(
|
|
453
|
+
Q(g(V.translate ? t(M)(V.name, { capitalize: !0 }) : V.name), 1)
|
|
454
454
|
]),
|
|
455
455
|
_: 2
|
|
456
456
|
}, 1032, ["icon"])) : f("", !0)
|
|
@@ -458,13 +458,13 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
458
458
|
_: 2
|
|
459
459
|
}, 1032, ["onClick"]))), 128))
|
|
460
460
|
])) : f("", !0),
|
|
461
|
-
h.$slots.extra ? (n(),
|
|
461
|
+
h.$slots.extra ? (n(), s("div", {
|
|
462
462
|
key: 3,
|
|
463
463
|
class: "content__section",
|
|
464
|
-
onClick: d[3] || (d[3] = (
|
|
464
|
+
onClick: d[3] || (d[3] = (V) => i.value = !1)
|
|
465
465
|
}, [
|
|
466
466
|
k("div", _n, [
|
|
467
|
-
h.$slots.extra ?
|
|
467
|
+
h.$slots.extra ? C(h.$slots, "extra", { key: 0 }, void 0, !0) : f("", !0)
|
|
468
468
|
])
|
|
469
469
|
])) : f("", !0)
|
|
470
470
|
])
|
|
@@ -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
|
+
i.value = !1;
|
|
481
481
|
}
|
|
482
482
|
},
|
|
483
483
|
void 0,
|
|
@@ -495,13 +495,13 @@ 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 =
|
|
499
|
-
return (
|
|
498
|
+
const u = c, e = je(), a = Y(!1), l = u.where || "top";
|
|
499
|
+
return (i, r) => t(e).md ? (n(), s("div", {
|
|
500
500
|
key: 0,
|
|
501
501
|
class: "info",
|
|
502
502
|
onMouseleave: r[1] || (r[1] = (y) => a.value = !1)
|
|
503
503
|
}, [
|
|
504
|
-
a.value ? (n(),
|
|
504
|
+
a.value ? (n(), s("div", {
|
|
505
505
|
key: 0,
|
|
506
506
|
class: W(`
|
|
507
507
|
info__bubble
|
|
@@ -509,18 +509,18 @@ const Ce = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-24506525"]]), fn = { cla
|
|
|
509
509
|
`)
|
|
510
510
|
}, [
|
|
511
511
|
k("div", fn, [
|
|
512
|
-
|
|
512
|
+
C(i.$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
|
-
|
|
518
|
+
C(i.$slots, "default", {}, void 0, !0)
|
|
519
519
|
], 32)
|
|
520
|
-
], 32)) :
|
|
520
|
+
], 32)) : C(i.$slots, "default", { key: 1 }, void 0, !0);
|
|
521
521
|
}
|
|
522
522
|
});
|
|
523
|
-
const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-
|
|
523
|
+
const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-76defa0b"]]), hn = { class: "input" }, $n = {
|
|
524
524
|
key: 0,
|
|
525
525
|
class: "input__label"
|
|
526
526
|
}, bn = {
|
|
@@ -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 || {}, l = "icon" in a || "inputType" in a && a.inputType === "search",
|
|
544
|
+
const e = c, a = e.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", i = fe("searchOnly", !1), r = fe("innerInputLabel", !1), y = !i && 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 = !i && a.format === "date-time" ? "datetime-local" : "date"), o.minlength = a.minLength, o.maxlength = a.maxLength)), o.type === "text" && i && (o.type = "search");
|
|
568
568
|
const v = () => {
|
|
569
569
|
try {
|
|
570
570
|
return e.modelValue ? new Date(e.modelValue).toISOString().split("T").shift() : "";
|
|
@@ -574,7 +574,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
574
574
|
}, b = Y([
|
|
575
575
|
"date",
|
|
576
576
|
"date-time"
|
|
577
|
-
].includes(o.type) ? v() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue),
|
|
577
|
+
].includes(o.type) ? v() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), V = (T) => {
|
|
578
578
|
const q = (() => {
|
|
579
579
|
if (o.type === "number" || o.type === "integer")
|
|
580
580
|
return Number(T);
|
|
@@ -591,20 +591,20 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
591
591
|
h("input", q), h("update:modelValue", q);
|
|
592
592
|
}, R = (T) => {
|
|
593
593
|
const q = T.target.value;
|
|
594
|
-
b.value = q,
|
|
594
|
+
b.value = q, V(q);
|
|
595
595
|
};
|
|
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
599
|
const w = N("focus"), le = N("clickable");
|
|
600
|
-
return n(),
|
|
601
|
-
t(r) ? f("", !0) : (n(),
|
|
602
|
-
T.$slots.default ?
|
|
600
|
+
return n(), s("label", hn, [
|
|
601
|
+
t(r) ? f("", !0) : (n(), s("div", $n, [
|
|
602
|
+
T.$slots.default ? C(T.$slots, "default", { key: 0 }, void 0, !0) : C(T.$slots, "description", { key: 1 }, void 0, !0)
|
|
603
603
|
])),
|
|
604
|
-
T.$slots.hint ? (n(),
|
|
605
|
-
|
|
604
|
+
T.$slots.hint ? (n(), s("div", bn, [
|
|
605
|
+
C(T.$slots, "hint", {}, void 0, !0)
|
|
606
606
|
])) : f("", !0),
|
|
607
|
-
"element" in t(a) && t(a).element === "textarea" ? (n(),
|
|
607
|
+
"element" in t(a) && t(a).element === "textarea" ? (n(), s("div", {
|
|
608
608
|
key: 2,
|
|
609
609
|
class: W(`
|
|
610
610
|
input__container
|
|
@@ -623,7 +623,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
623
623
|
}, null, 42, gn), [
|
|
624
624
|
[w, t(a).focus]
|
|
625
625
|
])
|
|
626
|
-
], 2)) : (n(),
|
|
626
|
+
], 2)) : (n(), s("div", {
|
|
627
627
|
key: 3,
|
|
628
628
|
class: W(`
|
|
629
629
|
input__container
|
|
@@ -652,7 +652,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
652
652
|
input__icon--${t(d)}
|
|
653
653
|
`)
|
|
654
654
|
}, null, 8, ["icon", "class"])) : f("", !0),
|
|
655
|
-
t(y) ? (n(),
|
|
655
|
+
t(y) ? (n(), s("div", Vn, [
|
|
656
656
|
F(yn, null, {
|
|
657
657
|
text: m(() => [
|
|
658
658
|
Q("Copiar")
|
|
@@ -673,7 +673,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-a2ebec80"]]), hn = { cla
|
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
});
|
|
676
|
-
const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-
|
|
676
|
+
const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-fea1d6e5"]]), In = ["value"], An = {
|
|
677
677
|
key: 1,
|
|
678
678
|
value: ""
|
|
679
679
|
}, On = ["value", "data-selected"], wn = /* @__PURE__ */ U({
|
|
@@ -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, l = Y(null),
|
|
693
|
+
const e = c, a = u, l = Y(null), i = 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);
|
|
@@ -710,7 +710,7 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-df85970f"]]), In = ["val
|
|
|
710
710
|
return;
|
|
711
711
|
const o = l.value.querySelector('option[data-selected="true"]');
|
|
712
712
|
o && o.removeAttribute("data-selected"), (v = l.value.querySelector(`option[value="${d}"]`)) == null || v.setAttribute("data-selected", "true");
|
|
713
|
-
}), (d, o) => (n(),
|
|
713
|
+
}), (d, o) => (n(), s("div", {
|
|
714
714
|
class: W({
|
|
715
715
|
select: !0,
|
|
716
716
|
"select--outline": !d.noOutline
|
|
@@ -729,22 +729,22 @@ 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(i).icon ? (n(), $(K, {
|
|
733
733
|
key: 0,
|
|
734
|
-
icon: t(
|
|
734
|
+
icon: t(i).icon
|
|
735
735
|
}, null, 8, ["icon"])) : f("", !0),
|
|
736
|
-
e.multiple ? f("", !0) : (n(),
|
|
737
|
-
(n(!0),
|
|
736
|
+
e.multiple ? f("", !0) : (n(), s("option", An, g(t(M)("none")), 1)),
|
|
737
|
+
(n(!0), s(J, null, H("enum" in t(i) ? t(i).enum : [], (v) => (n(), s("option", {
|
|
738
738
|
key: v,
|
|
739
739
|
value: v,
|
|
740
740
|
"data-selected": p(v)
|
|
741
|
-
}, g(t(
|
|
742
|
-
|
|
741
|
+
}, g(t(i).translate ? t(M)(v) : v), 9, On))), 128)),
|
|
742
|
+
C(d.$slots, "default", {}, void 0, !0)
|
|
743
743
|
], 16, In)
|
|
744
744
|
], 2));
|
|
745
745
|
}
|
|
746
746
|
});
|
|
747
|
-
const
|
|
747
|
+
const Ee = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { class: "pagination" }, Sn = ["value"], jn = { class: "pagination__control" }, Tn = { class: "pagination__page-input" }, Ln = /* @__PURE__ */ U({
|
|
748
748
|
__name: "aeria-pagination",
|
|
749
749
|
props: {
|
|
750
750
|
pagination: {}
|
|
@@ -756,7 +756,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
756
756
|
set: (h) => {
|
|
757
757
|
e.pagination.offset = h * e.pagination.limit;
|
|
758
758
|
}
|
|
759
|
-
}),
|
|
759
|
+
}), i = D({
|
|
760
760
|
get: () => e.pagination.limit,
|
|
761
761
|
set: (h) => {
|
|
762
762
|
e.pagination.limit = Number(h);
|
|
@@ -766,16 +766,16 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
766
766
|
};
|
|
767
767
|
return ue([
|
|
768
768
|
l,
|
|
769
|
-
|
|
769
|
+
i
|
|
770
770
|
], ([h]) => {
|
|
771
771
|
r.value = h + 1, a("paginate", {
|
|
772
|
-
offset: l.value *
|
|
773
|
-
limit:
|
|
772
|
+
offset: l.value * i.value,
|
|
773
|
+
limit: i.value
|
|
774
774
|
});
|
|
775
|
-
}), (h, d) => (n(),
|
|
776
|
-
F(
|
|
777
|
-
modelValue:
|
|
778
|
-
"onUpdate:modelValue": d[0] || (d[0] = (o) =>
|
|
775
|
+
}), (h, d) => (n(), s("div", Bn, [
|
|
776
|
+
F(Ee, {
|
|
777
|
+
modelValue: i.value,
|
|
778
|
+
"onUpdate:modelValue": d[0] || (d[0] = (o) => i.value = o),
|
|
779
779
|
property: {
|
|
780
780
|
enum: [],
|
|
781
781
|
icon: "list"
|
|
@@ -783,7 +783,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
783
783
|
class: "pagination__control"
|
|
784
784
|
}, {
|
|
785
785
|
default: m(() => [
|
|
786
|
-
(n(!0),
|
|
786
|
+
(n(!0), s(J, null, H(t(St), (o) => (n(), s("option", {
|
|
787
787
|
key: `limit-${o}`,
|
|
788
788
|
value: o
|
|
789
789
|
}, g(o), 9, Sn))), 128))
|
|
@@ -856,7 +856,7 @@ const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
856
856
|
]));
|
|
857
857
|
}
|
|
858
858
|
});
|
|
859
|
-
const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-
|
|
859
|
+
const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-41aa1ffc"]]), zn = { class: "checkbox__text" }, Fn = ["innerHTML"], Mn = { class: "checkbox__hint" }, qn = ["innerHTML"], Un = {
|
|
860
860
|
inheritAttrs: !1
|
|
861
861
|
}, En = /* @__PURE__ */ U({
|
|
862
862
|
...Un,
|
|
@@ -875,7 +875,7 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { cla
|
|
|
875
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", i = 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,23 +884,23 @@ 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
|
+
i("update:modelValue", !e.modelValue);
|
|
888
888
|
return;
|
|
889
889
|
}
|
|
890
890
|
if ("items" in a) {
|
|
891
|
-
|
|
891
|
+
i("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
|
+
i("update:modelValue", e.value);
|
|
898
898
|
}
|
|
899
899
|
}
|
|
900
900
|
});
|
|
901
901
|
return (p, h) => {
|
|
902
902
|
const d = N("clickable");
|
|
903
|
-
return n(),
|
|
903
|
+
return Z((n(), s("label", {
|
|
904
904
|
class: W(`
|
|
905
905
|
checkbox
|
|
906
906
|
${t(a).readOnly && "checkbox--readOnly"}
|
|
@@ -915,27 +915,27 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), zn = { cla
|
|
|
915
915
|
}, { class: "checkbox__input" }), null, 16), [
|
|
916
916
|
[bt, y.value]
|
|
917
917
|
]),
|
|
918
|
-
|
|
918
|
+
k("div", zn, [
|
|
919
919
|
k("div", null, [
|
|
920
|
-
p.$slots.description ?
|
|
920
|
+
p.$slots.description ? C(p.$slots, "description", { key: 0 }, void 0, !0) : t(r) ? (n(), s("div", {
|
|
921
921
|
key: 1,
|
|
922
922
|
innerHTML: t(a).translate ? t(M)(t(r)) : t(r)
|
|
923
|
-
}, null, 8, Fn)) :
|
|
923
|
+
}, null, 8, Fn)) : C(p.$slots, "default", { key: 2 }, void 0, !0)
|
|
924
924
|
]),
|
|
925
925
|
k("div", Mn, [
|
|
926
|
-
p.$slots.hint ?
|
|
926
|
+
p.$slots.hint ? C(p.$slots, "hint", { key: 0 }, void 0, !0) : t(a).hint ? (n(), s("div", {
|
|
927
927
|
key: 1,
|
|
928
928
|
innerHTML: t(a).hint
|
|
929
929
|
}, null, 8, qn)) : f("", !0)
|
|
930
930
|
])
|
|
931
|
-
])), [
|
|
932
|
-
[d]
|
|
933
931
|
])
|
|
934
|
-
], 2)
|
|
932
|
+
], 2)), [
|
|
933
|
+
[d]
|
|
934
|
+
]);
|
|
935
935
|
};
|
|
936
936
|
}
|
|
937
937
|
});
|
|
938
|
-
const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-
|
|
938
|
+
const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-256eb557"]]), Dn = {
|
|
939
939
|
inheritAttrs: !1
|
|
940
940
|
}, Qn = /* @__PURE__ */ U({
|
|
941
941
|
...Dn,
|
|
@@ -950,22 +950,22 @@ 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, l = "items" in e.property ? e.property.items.enum : e.property.enum,
|
|
953
|
+
const e = c, a = u, l = "items" in e.property ? e.property.items.enum : e.property.enum, i = (r) => {
|
|
954
954
|
a("update:modelValue", r);
|
|
955
955
|
};
|
|
956
|
-
return
|
|
956
|
+
return _t(() => {
|
|
957
957
|
e.modelValue || a(
|
|
958
958
|
"update:modelValue",
|
|
959
959
|
"items" in e.property ? [] : ""
|
|
960
960
|
);
|
|
961
|
-
}), (r, y) => (n(),
|
|
961
|
+
}), (r, y) => (n(), s("div", {
|
|
962
962
|
class: "options",
|
|
963
963
|
style: he(`
|
|
964
964
|
--columns: ${r.columns};
|
|
965
965
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
966
966
|
`)
|
|
967
967
|
}, [
|
|
968
|
-
(n(!0),
|
|
968
|
+
(n(!0), s(J, null, H(t(l), (p) => (n(), s("div", {
|
|
969
969
|
key: `option-${p}`,
|
|
970
970
|
class: "options__checkbox"
|
|
971
971
|
}, [
|
|
@@ -974,13 +974,13 @@ 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": i
|
|
978
978
|
}), null, 16, ["model-value"])
|
|
979
979
|
]))), 128))
|
|
980
980
|
], 4));
|
|
981
981
|
}
|
|
982
982
|
});
|
|
983
|
-
const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) => (
|
|
983
|
+
const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) => (Me("data-v-30f5a5ca"), c = c(), qe(), c), Xn = { class: "switch-wrapper" }, Yn = /* @__PURE__ */ Wn(() => /* @__PURE__ */ k("div", { class: "switch__slider" }, null, -1)), Jn = { key: 1 }, Kn = {
|
|
984
984
|
inheritAttrs: !1
|
|
985
985
|
}, Zn = /* @__PURE__ */ U({
|
|
986
986
|
...Kn,
|
|
@@ -994,19 +994,19 @@ 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, l = e.property || {},
|
|
997
|
+
const e = c, a = u, l = e.property || {}, i = () => {
|
|
998
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");
|
|
1002
|
-
return n(),
|
|
1003
|
-
Z((n(),
|
|
1002
|
+
return n(), s("div", Xn, [
|
|
1003
|
+
Z((n(), s("a", {
|
|
1004
1004
|
class: W(`
|
|
1005
1005
|
switch
|
|
1006
1006
|
${r.modelValue && "switch--active"}
|
|
1007
1007
|
${t(l).readOnly && "switch--readOnly"}
|
|
1008
1008
|
`),
|
|
1009
|
-
onClick:
|
|
1009
|
+
onClick: ze(i, ["stop"])
|
|
1010
1010
|
}, [
|
|
1011
1011
|
Yn,
|
|
1012
1012
|
k("div", {
|
|
@@ -1020,12 +1020,12 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) =
|
|
|
1020
1020
|
blocked: t(l).readOnly
|
|
1021
1021
|
}]
|
|
1022
1022
|
]),
|
|
1023
|
-
r.$slots.default ?
|
|
1023
|
+
r.$slots.default ? C(r.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("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) => (
|
|
1028
|
+
const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) => (Me("data-v-153a2e0f"), c = c(), qe(), c), Nn = { class: "picture" }, xn = {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1031
1031
|
}, eo = ["src", "alt"], to = {
|
|
@@ -1064,15 +1064,15 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1064
1064
|
},
|
|
1065
1065
|
setup(c) {
|
|
1066
1066
|
const u = c, e = D(() => u.fileId ? `${ft}/file/${u.fileId}/picture` : u.url || u.modelValue), a = Y(!1);
|
|
1067
|
-
return (l,
|
|
1067
|
+
return (l, i) => {
|
|
1068
1068
|
var y;
|
|
1069
1069
|
const r = N("overlay");
|
|
1070
|
-
return n(),
|
|
1071
|
-
e.value ? (n(), $(
|
|
1070
|
+
return n(), s("figure", Nn, [
|
|
1071
|
+
e.value ? (n(), $(Ge, {
|
|
1072
1072
|
key: 0,
|
|
1073
1073
|
to: "main"
|
|
1074
1074
|
}, [
|
|
1075
|
-
a.value ? Z((n(),
|
|
1075
|
+
a.value ? Z((n(), s("div", xn, [
|
|
1076
1076
|
k("img", {
|
|
1077
1077
|
src: e.value,
|
|
1078
1078
|
alt: l.alt,
|
|
@@ -1080,9 +1080,9 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1080
1080
|
max-height: 60vh;
|
|
1081
1081
|
object-fit: contain;
|
|
1082
1082
|
`,
|
|
1083
|
-
onClick:
|
|
1083
|
+
onClick: i[0] || (i[0] = (p) => a.value = !0)
|
|
1084
1084
|
}, null, 8, eo),
|
|
1085
|
-
(y = l.meta) != null && y.owner ? (n(),
|
|
1085
|
+
(y = l.meta) != null && y.owner ? (n(), s("div", to, " Criado por " + g(l.meta.owner.name) + " em " + g(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : f("", !0)
|
|
1086
1086
|
])), [
|
|
1087
1087
|
[r, {
|
|
1088
1088
|
click: () => {
|
|
@@ -1091,7 +1091,7 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1091
1091
|
}]
|
|
1092
1092
|
]) : f("", !0)
|
|
1093
1093
|
])) : f("", !0),
|
|
1094
|
-
e.value ? (n(),
|
|
1094
|
+
e.value ? (n(), s("img", {
|
|
1095
1095
|
key: 1,
|
|
1096
1096
|
src: e.value,
|
|
1097
1097
|
class: W(`
|
|
@@ -1104,10 +1104,10 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1104
1104
|
width: ${l.width || "100%"};
|
|
1105
1105
|
height: ${l.height || "100%"};
|
|
1106
1106
|
`),
|
|
1107
|
-
onClick:
|
|
1107
|
+
onClick: i[1] || (i[1] = () => {
|
|
1108
1108
|
l.expandable && (a.value = !0);
|
|
1109
1109
|
})
|
|
1110
|
-
}, null, 14, no)) : l.$slots.fallback ?
|
|
1110
|
+
}, null, 14, no)) : l.$slots.fallback ? C(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? C(l.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
|
|
1111
1111
|
key: 4,
|
|
1112
1112
|
class: W(["picture__background", `
|
|
1113
1113
|
${l.bordered && "picture__image--bordered"}
|
|
@@ -1121,14 +1121,14 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1121
1121
|
height: ${l.height || "100%"};
|
|
1122
1122
|
`)
|
|
1123
1123
|
}, lo, 6)),
|
|
1124
|
-
l.$slots.caption ? (n(),
|
|
1125
|
-
|
|
1124
|
+
l.$slots.caption ? (n(), s("figcaption", so, [
|
|
1125
|
+
C(l.$slots, "caption", {}, void 0, !0)
|
|
1126
1126
|
])) : f("", !0)
|
|
1127
1127
|
]);
|
|
1128
1128
|
};
|
|
1129
1129
|
}
|
|
1130
1130
|
});
|
|
1131
|
-
const
|
|
1131
|
+
const Fe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-153a2e0f"]]), ro = { class: "file" }, uo = { key: 0 }, co = ["href"], po = { class: "file__actions" }, _o = ["accept"], mo = {
|
|
1132
1132
|
key: 0,
|
|
1133
1133
|
class: "file__buttons"
|
|
1134
1134
|
}, fo = {
|
|
@@ -1145,53 +1145,54 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-95473858"]]), ro = { cla
|
|
|
1145
1145
|
meta: {},
|
|
1146
1146
|
content: {}
|
|
1147
1147
|
},
|
|
1148
|
-
emits: ["update:
|
|
1148
|
+
emits: ["update:content", "change", "update:modelValue"],
|
|
1149
1149
|
setup(c, { emit: u }) {
|
|
1150
|
-
const e = c, a = u,
|
|
1150
|
+
const e = c, a = u, i = Te() ? ge() : null, r = Y(null), y = D(() => {
|
|
1151
1151
|
var b;
|
|
1152
1152
|
return r.value ? URL.createObjectURL(r.value) : (b = e.modelValue) == null ? void 0 : b.link;
|
|
1153
1153
|
}), p = D(() => {
|
|
1154
|
-
var b,
|
|
1155
|
-
return /^image\//.test((b = e.modelValue) == null ? void 0 : b.mime) && !((
|
|
1156
|
-
}), h = (b) => new Promise((
|
|
1154
|
+
var b, V, R;
|
|
1155
|
+
return /^image\//.test((b = e.modelValue) == null ? void 0 : b.mime) && !((V = r.value) != null && V.type) || /^image\//.test((R = r.value) == null ? void 0 : R.type);
|
|
1156
|
+
}), h = (b) => new Promise((V) => {
|
|
1157
1157
|
const R = new FileReader();
|
|
1158
|
-
R.onload = () =>
|
|
1158
|
+
R.onload = () => V(R.result), R.readAsArrayBuffer(b);
|
|
1159
1159
|
}), d = () => {
|
|
1160
1160
|
r.value = null;
|
|
1161
1161
|
}, o = async (b) => {
|
|
1162
1162
|
r.value = b.target.files[0];
|
|
1163
|
-
const
|
|
1164
|
-
if (
|
|
1165
|
-
const { data: T } = await jt(`${ft}/${
|
|
1163
|
+
const V = r.value, R = await h(V);
|
|
1164
|
+
if (i) {
|
|
1165
|
+
const { data: T } = await jt(`${ft}/${i.$id}/upload?name=${V.name}`, R, {
|
|
1166
1166
|
params: {
|
|
1167
1167
|
method: "POST",
|
|
1168
1168
|
headers: {
|
|
1169
|
-
"content-type":
|
|
1169
|
+
"content-type": V.type || "application/octet-stream",
|
|
1170
1170
|
"x-stream-request": "1"
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
1173
|
});
|
|
1174
1174
|
a("update:modelValue", T);
|
|
1175
|
-
}
|
|
1175
|
+
} else
|
|
1176
|
+
a("update:modelValue", V);
|
|
1176
1177
|
a("update:content", R), a("change", R);
|
|
1177
1178
|
}, v = async () => {
|
|
1178
1179
|
a("update:modelValue", null);
|
|
1179
1180
|
};
|
|
1180
|
-
return (b,
|
|
1181
|
+
return (b, V) => {
|
|
1181
1182
|
var R, T, q, w, le, oe;
|
|
1182
|
-
return n(),
|
|
1183
|
-
r.value || (R = b.modelValue) != null && R._id ? (n(),
|
|
1184
|
-
p.value ? (n(), $(
|
|
1183
|
+
return n(), s("div", ro, [
|
|
1184
|
+
r.value || (R = b.modelValue) != null && R._id ? (n(), s("div", uo, [
|
|
1185
|
+
p.value ? (n(), $(Fe, {
|
|
1185
1186
|
key: 0,
|
|
1186
|
-
alt: "Image preview",
|
|
1187
1187
|
modelValue: y.value,
|
|
1188
|
-
"onUpdate:modelValue":
|
|
1188
|
+
"onUpdate:modelValue": V[0] || (V[0] = (S) => y.value = S),
|
|
1189
|
+
alt: "Image preview",
|
|
1189
1190
|
class: W(`
|
|
1190
1191
|
file__image
|
|
1191
|
-
${!t(
|
|
1192
|
+
${!t(i) || ((T = b.modelValue) == null ? void 0 : T._id) || "file__image--unsent"}
|
|
1192
1193
|
`)
|
|
1193
1194
|
}, null, 8, ["modelValue", "class"])) : f("", !0),
|
|
1194
|
-
(q = b.modelValue) != null && q._id ? (n(),
|
|
1195
|
+
(q = b.modelValue) != null && q._id ? (n(), s("a", {
|
|
1195
1196
|
key: 1,
|
|
1196
1197
|
href: b.modelValue.download_link
|
|
1197
1198
|
}, g(b.modelValue.filename), 9, co)) : f("", !0)
|
|
@@ -1203,23 +1204,23 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-95473858"]]), ro = { cla
|
|
|
1203
1204
|
accept: (le = (w = b.property) == null ? void 0 : w.accept) == null ? void 0 : le.join(","),
|
|
1204
1205
|
onChange: o
|
|
1205
1206
|
}, null, 40, _o),
|
|
1206
|
-
r.value ? (n(),
|
|
1207
|
+
r.value ? (n(), s("div", mo, [
|
|
1207
1208
|
F(re, {
|
|
1208
1209
|
small: "",
|
|
1209
|
-
onClick:
|
|
1210
|
+
onClick: ze(d, ["prevent"])
|
|
1210
1211
|
}, {
|
|
1211
1212
|
default: m(() => [
|
|
1212
|
-
Q("
|
|
1213
|
+
Q(g(t(M)("action.clear", { capitalize: !0 })), 1)
|
|
1213
1214
|
]),
|
|
1214
1215
|
_: 1
|
|
1215
1216
|
})
|
|
1216
|
-
])) : (oe = b.modelValue) != null && oe._id ? (n(),
|
|
1217
|
+
])) : (oe = b.modelValue) != null && oe._id ? (n(), s("div", fo, [
|
|
1217
1218
|
F(re, {
|
|
1218
1219
|
small: "",
|
|
1219
|
-
onClick:
|
|
1220
|
+
onClick: ze(v, ["prevent"])
|
|
1220
1221
|
}, {
|
|
1221
1222
|
default: m(() => [
|
|
1222
|
-
Q("
|
|
1223
|
+
Q(g(t(M)("action.remove", { capitalize: !0 })), 1)
|
|
1223
1224
|
]),
|
|
1224
1225
|
_: 1
|
|
1225
1226
|
})
|
|
@@ -1229,7 +1230,7 @@ const Me = /* @__PURE__ */ X(io, [["__scopeId", "data-v-95473858"]]), ro = { cla
|
|
|
1229
1230
|
};
|
|
1230
1231
|
}
|
|
1231
1232
|
});
|
|
1232
|
-
const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-
|
|
1233
|
+
const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-38fc243c"]]), ho = { class: "container" }, $o = {
|
|
1233
1234
|
key: 1,
|
|
1234
1235
|
class: "container__footer"
|
|
1235
1236
|
}, bo = /* @__PURE__ */ U({
|
|
@@ -1239,27 +1240,27 @@ const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-16ebe62c"]]), ho = { cla
|
|
|
1239
1240
|
},
|
|
1240
1241
|
emits: ["endReached"],
|
|
1241
1242
|
setup(c, { emit: u }) {
|
|
1242
|
-
const e = c, a = u, l = Y(null),
|
|
1243
|
+
const e = c, a = u, l = Y(null), i = e.observeScroll ? We(l, {
|
|
1243
1244
|
antecipate: 100
|
|
1244
1245
|
}).reachedEnd : null;
|
|
1245
|
-
return
|
|
1246
|
+
return i !== null && ue(i, (r) => {
|
|
1246
1247
|
r && a("endReached", r);
|
|
1247
|
-
}), (r, y) => (n(),
|
|
1248
|
-
r.$slots.default ? (n(),
|
|
1248
|
+
}), (r, y) => (n(), s("div", ho, [
|
|
1249
|
+
r.$slots.default ? (n(), s("div", {
|
|
1249
1250
|
key: 0,
|
|
1250
1251
|
ref_key: "containerEl",
|
|
1251
1252
|
ref: l,
|
|
1252
1253
|
class: "container__content"
|
|
1253
1254
|
}, [
|
|
1254
|
-
|
|
1255
|
+
C(r.$slots, "default", {}, void 0, !0)
|
|
1255
1256
|
], 512)) : f("", !0),
|
|
1256
|
-
r.$slots.footer ? (n(),
|
|
1257
|
-
|
|
1257
|
+
r.$slots.footer ? (n(), s("div", $o, [
|
|
1258
|
+
C(r.$slots, "footer", {}, void 0, !0)
|
|
1258
1259
|
])) : f("", !0)
|
|
1259
1260
|
]));
|
|
1260
1261
|
}
|
|
1261
1262
|
});
|
|
1262
|
-
const
|
|
1263
|
+
const st = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-c86e2d2a"]]), go = { class: "item__values" }, ko = /* @__PURE__ */ U({
|
|
1263
1264
|
__name: "aeria-search-item",
|
|
1264
1265
|
props: {
|
|
1265
1266
|
item: {},
|
|
@@ -1269,7 +1270,7 @@ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
|
|
|
1269
1270
|
},
|
|
1270
1271
|
emits: ["update:modelValue", "change"],
|
|
1271
1272
|
setup(c, { emit: u }) {
|
|
1272
|
-
const e = c, a = u, l = e.property,
|
|
1273
|
+
const e = c, a = u, l = e.property, i = 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 = () => {
|
|
1273
1274
|
if (y.value)
|
|
1274
1275
|
return;
|
|
1275
1276
|
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;
|
|
@@ -1278,7 +1279,7 @@ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
|
|
|
1278
1279
|
e.item
|
|
1279
1280
|
] : e.item), a("change", e.item);
|
|
1280
1281
|
}, h = async (d) => {
|
|
1281
|
-
if (
|
|
1282
|
+
if (i.purge && (d != null && d.purge)) {
|
|
1282
1283
|
const { _id: v } = e.item;
|
|
1283
1284
|
await r.$actions.remove({
|
|
1284
1285
|
filters: {
|
|
@@ -1287,24 +1288,24 @@ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
|
|
|
1287
1288
|
});
|
|
1288
1289
|
}
|
|
1289
1290
|
const o = () => {
|
|
1290
|
-
const v = [...e.modelValue], b = v.findIndex((
|
|
1291
|
+
const v = [...e.modelValue], b = v.findIndex((V) => V._id === e.item._id);
|
|
1291
1292
|
return v.splice(b, 1), v;
|
|
1292
1293
|
};
|
|
1293
1294
|
a("update:modelValue", "items" in l ? o() : null);
|
|
1294
1295
|
};
|
|
1295
1296
|
return (d, o) => {
|
|
1296
1297
|
const v = N("clickable");
|
|
1297
|
-
return Z((n(),
|
|
1298
|
+
return Z((n(), s("div", {
|
|
1298
1299
|
class: W({
|
|
1299
1300
|
item: !0,
|
|
1300
1301
|
"item--selected": y.value
|
|
1301
1302
|
}),
|
|
1302
1303
|
onClick: o[0] || (o[0] = (b) => y.value ? h() : p())
|
|
1303
1304
|
}, [
|
|
1304
|
-
|
|
1305
|
+
C(d.$slots, "default", {}, void 0, !0),
|
|
1305
1306
|
k("div", go, [
|
|
1306
|
-
(n(!0),
|
|
1307
|
-
key: `index-${d.item._id}-${
|
|
1307
|
+
(n(!0), s(J, null, H(d.indexes, (b, V) => (n(), s("div", {
|
|
1308
|
+
key: `index-${d.item._id}-${V}`,
|
|
1308
1309
|
class: "item__value"
|
|
1309
1310
|
}, g(d.item[b]), 1))), 128))
|
|
1310
1311
|
])
|
|
@@ -1314,10 +1315,10 @@ const it = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { cla
|
|
|
1314
1315
|
};
|
|
1315
1316
|
}
|
|
1316
1317
|
});
|
|
1317
|
-
const
|
|
1318
|
+
const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { class: "search__panel" }, Co = { class: "search__input" }, Io = ["value"], Ao = { style: { flex: "1" } }, Oo = { key: 1 }, wo = { key: 0 }, Bo = { key: 1 }, So = { class: "search__summary" }, jo = {
|
|
1318
1319
|
key: 1,
|
|
1319
1320
|
class: "search"
|
|
1320
|
-
}, To = { key: 0 },
|
|
1321
|
+
}, To = { key: 0 }, Re = 10, Lo = /* @__PURE__ */ U({
|
|
1321
1322
|
__name: "aeria-search",
|
|
1322
1323
|
props: {
|
|
1323
1324
|
modelValue: {},
|
|
@@ -1330,27 +1331,27 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1330
1331
|
},
|
|
1331
1332
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1332
1333
|
setup(c, { emit: u }) {
|
|
1333
|
-
const e = c, a = pe(e.property), l = e.panel !== void 0 ? D(() => e.panel) : Y(!1),
|
|
1334
|
-
ve(
|
|
1334
|
+
const e = c, a = pe(e.property), l = e.panel !== void 0 ? D(() => e.panel) : Y(!1), i = u, r = ce(pe(e.property).$ref), y = Te(), p = y ? ge() : null, h = a.indexes;
|
|
1335
|
+
ve(Ue, pe(e.property).$ref), ve("innerInputLabel", !0), ve("omitInputLabels", !0);
|
|
1335
1336
|
const d = Y(e.modelValue), o = Y({
|
|
1336
1337
|
data: [],
|
|
1337
1338
|
pagination: {}
|
|
1338
|
-
}), v = D(() => o.value.data), b = D(() => o.value.pagination),
|
|
1339
|
+
}), v = D(() => o.value.data), b = D(() => o.value.pagination), V = Y(0), R = Y(h[0]), T = Y(!1), q = Y({}), w = () => {
|
|
1339
1340
|
const I = {};
|
|
1340
1341
|
if (y) {
|
|
1341
|
-
const L =
|
|
1342
|
+
const L = t(y);
|
|
1342
1343
|
I[L] = p;
|
|
1343
1344
|
}
|
|
1344
1345
|
return a.constraints ? qt(a.constraints, I) : {};
|
|
1345
1346
|
}, le = () => {
|
|
1346
|
-
v.value.length < b.value.recordsTotal && (
|
|
1347
|
+
v.value.length < b.value.recordsTotal && (V.value += 1, S());
|
|
1347
1348
|
}, oe = async () => Object.values(q.value).every((I) => !(String(I).length > 0)) ? r.$actions.custom("getAll", {
|
|
1348
|
-
limit:
|
|
1349
|
-
offset:
|
|
1349
|
+
limit: Re,
|
|
1350
|
+
offset: V.value * Re,
|
|
1350
1351
|
filters: w()
|
|
1351
1352
|
}) : r.$actions.custom("getAll", {
|
|
1352
|
-
limit:
|
|
1353
|
-
offset:
|
|
1353
|
+
limit: Re,
|
|
1354
|
+
offset: V.value * Re,
|
|
1354
1355
|
filters: {
|
|
1355
1356
|
...w(),
|
|
1356
1357
|
$or: h.filter((I) => {
|
|
@@ -1367,17 +1368,17 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1367
1368
|
if (r.loading.getAll)
|
|
1368
1369
|
return;
|
|
1369
1370
|
const I = await oe();
|
|
1370
|
-
o.value.pagination = I.pagination,
|
|
1371
|
+
o.value.pagination = I.pagination, V.value === 0 && o.value.data.splice(0), o.value.data.push(...I.data);
|
|
1371
1372
|
}, [x] = vt({
|
|
1372
1373
|
delay: 800
|
|
1373
1374
|
})(() => {
|
|
1374
|
-
|
|
1375
|
+
V.value = 0, S(), T.value = !1;
|
|
1375
1376
|
}), O = () => {
|
|
1376
1377
|
T.value = !0, x();
|
|
1377
1378
|
}, z = () => {
|
|
1378
|
-
"effect" in l ?
|
|
1379
|
+
"effect" in l ? i("update:panel", !0) : l.value = !0, S();
|
|
1379
1380
|
}, ee = () => {
|
|
1380
|
-
|
|
1381
|
+
V.value = 0, o.value.data.splice(0), "effect" in l ? i("update:panel", !1) : l.value = !1;
|
|
1381
1382
|
}, ne = D(() => !Object.values(q.value).some((I) => !!I));
|
|
1382
1383
|
ue(ne, (I, L) => {
|
|
1383
1384
|
I && !L && S();
|
|
@@ -1385,14 +1386,14 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1385
1386
|
e.selectOnly && S();
|
|
1386
1387
|
});
|
|
1387
1388
|
const _ = (I) => {
|
|
1388
|
-
d.value = I, e.selectOnly ||
|
|
1389
|
+
d.value = I, e.selectOnly || i("update:modelValue", I);
|
|
1389
1390
|
}, E = () => {
|
|
1390
|
-
ee(),
|
|
1391
|
+
ee(), i("update:modelValue", d.value);
|
|
1391
1392
|
};
|
|
1392
1393
|
return (I, L) => {
|
|
1393
1394
|
const A = N("clickable");
|
|
1394
|
-
return n(),
|
|
1395
|
-
t(l) ? (n(), $(
|
|
1395
|
+
return n(), s("div", null, [
|
|
1396
|
+
t(l) ? (n(), $(Ge, {
|
|
1396
1397
|
key: 0,
|
|
1397
1398
|
to: "main"
|
|
1398
1399
|
}, [
|
|
@@ -1422,14 +1423,14 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1422
1423
|
return [
|
|
1423
1424
|
k("div", Vo, [
|
|
1424
1425
|
k("div", Co, [
|
|
1425
|
-
t(h).length > 1 ? (n(), $(
|
|
1426
|
+
t(h).length > 1 ? (n(), $(Ee, {
|
|
1426
1427
|
key: 0,
|
|
1427
1428
|
modelValue: R.value,
|
|
1428
1429
|
"onUpdate:modelValue": L[0] || (L[0] = (B) => R.value = B),
|
|
1429
1430
|
onChange: L[1] || (L[1] = (B) => q.value = {})
|
|
1430
1431
|
}, {
|
|
1431
1432
|
default: m(() => [
|
|
1432
|
-
(n(!0),
|
|
1433
|
+
(n(!0), s(J, null, H(t(h), (B) => (n(), s("option", {
|
|
1433
1434
|
key: `searchfield-${B}`,
|
|
1434
1435
|
value: B
|
|
1435
1436
|
}, g(t(M)(B)), 9, Io))), 128))
|
|
@@ -1449,13 +1450,13 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1449
1450
|
}, null, 8, ["modelValue", "property"]))
|
|
1450
1451
|
])
|
|
1451
1452
|
]),
|
|
1452
|
-
v.value.length ? (n(), $(
|
|
1453
|
+
v.value.length ? (n(), $(st, {
|
|
1453
1454
|
key: 0,
|
|
1454
1455
|
"observe-scroll": "",
|
|
1455
1456
|
onEndReached: le
|
|
1456
1457
|
}, {
|
|
1457
1458
|
default: m(() => [
|
|
1458
|
-
(n(!0),
|
|
1459
|
+
(n(!0), s(J, null, H(v.value, (B) => (n(), $(De, G({
|
|
1459
1460
|
item: B,
|
|
1460
1461
|
indexes: t(h),
|
|
1461
1462
|
property: I.property
|
|
@@ -1466,8 +1467,8 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1466
1467
|
}), null, 16, ["modelValue"]))), 128))
|
|
1467
1468
|
]),
|
|
1468
1469
|
_: 1
|
|
1469
|
-
})) : (n(),
|
|
1470
|
-
T.value ? (n(),
|
|
1470
|
+
})) : (n(), s("div", Oo, [
|
|
1471
|
+
T.value ? (n(), s("div", wo, g(t(M)("searching", { capitalize: !0 })) + "... ", 1)) : !t(r).loading.getAll && Object.values(q.value).filter((B) => !!B).length > 0 && !("items" in I.property && ((j = I.modelValue) != null && j.length) || !Array.isArray(I.modelValue) && ((te = I.modelValue) != null && te._id)) ? (n(), s("div", Bo, g(t(M)("no_results", { capitalize: !0 })), 1)) : f("", !0)
|
|
1471
1472
|
]))
|
|
1472
1473
|
]),
|
|
1473
1474
|
k("div", So, g(t(M)("showing", { capitalize: !0 })) + " " + g(v.value.length) + " " + g(t(M)("of")) + " " + g(b.value.recordsTotal), 1)
|
|
@@ -1476,8 +1477,8 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1476
1477
|
_: 1
|
|
1477
1478
|
}, 8, ["title", "model-value"])
|
|
1478
1479
|
])) : f("", !0),
|
|
1479
|
-
I.selectOnly ? f("", !0) : (n(),
|
|
1480
|
-
F(
|
|
1480
|
+
I.selectOnly ? f("", !0) : (n(), s("div", jo, [
|
|
1481
|
+
F(st, null, {
|
|
1481
1482
|
footer: m(() => [
|
|
1482
1483
|
Z((n(), $(K, {
|
|
1483
1484
|
icon: "plus",
|
|
@@ -1494,8 +1495,8 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1494
1495
|
default: m(() => {
|
|
1495
1496
|
var j;
|
|
1496
1497
|
return [
|
|
1497
|
-
"items" in I.property ? (n(),
|
|
1498
|
-
(n(!0),
|
|
1498
|
+
"items" in I.property ? (n(), s("div", To, [
|
|
1499
|
+
(n(!0), s(J, null, H(I.modelValue, (te) => (n(), $(De, G({
|
|
1499
1500
|
item: te,
|
|
1500
1501
|
indexes: t(h),
|
|
1501
1502
|
property: I.property,
|
|
@@ -1504,7 +1505,7 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1504
1505
|
key: `selected-${te._id}`,
|
|
1505
1506
|
"onUpdate:modelValue": _
|
|
1506
1507
|
}), null, 16))), 128))
|
|
1507
|
-
])) : (j = I.modelValue) != null && j._id ? (n(), $(
|
|
1508
|
+
])) : (j = I.modelValue) != null && j._id ? (n(), $(De, G({ key: 1 }, {
|
|
1508
1509
|
item: I.modelValue,
|
|
1509
1510
|
indexes: t(h),
|
|
1510
1511
|
property: t(a),
|
|
@@ -1519,15 +1520,15 @@ const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1519
1520
|
};
|
|
1520
1521
|
}
|
|
1521
1522
|
});
|
|
1522
|
-
const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-
|
|
1523
|
+
const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u) => {
|
|
1523
1524
|
const e = "items" in c ? c.items : c, a = {
|
|
1524
1525
|
options: Gn,
|
|
1525
|
-
select:
|
|
1526
|
+
select: Ee,
|
|
1526
1527
|
switch: Pn,
|
|
1527
1528
|
file: yo,
|
|
1528
1529
|
search: Ro,
|
|
1529
1530
|
input: Ie,
|
|
1530
|
-
form:
|
|
1531
|
+
form: He
|
|
1531
1532
|
}, l = (() => {
|
|
1532
1533
|
if ("type" in e) {
|
|
1533
1534
|
if (e.type === "object")
|
|
@@ -1541,8 +1542,8 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1541
1542
|
if (c.element === "select")
|
|
1542
1543
|
return "select";
|
|
1543
1544
|
}
|
|
1544
|
-
const
|
|
1545
|
-
return
|
|
1545
|
+
const i = pe(c);
|
|
1546
|
+
return i ? i.inline ? "form" : i.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in e ? "select" : "input";
|
|
1546
1547
|
})();
|
|
1547
1548
|
return u[l] ? u[l] : a[l];
|
|
1548
1549
|
}, zo = (c, u) => {
|
|
@@ -1596,33 +1597,33 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1596
1597
|
emits: ["update:modelValue", "input", "change"],
|
|
1597
1598
|
setup(c, { emit: u }) {
|
|
1598
1599
|
const e = c, a = u;
|
|
1599
|
-
|
|
1600
|
+
_t(() => {
|
|
1600
1601
|
e.modelValue || a("update:modelValue", e.property && "items" in e.property ? [] : {});
|
|
1601
1602
|
});
|
|
1602
|
-
const l = e.property && pe(e.property),
|
|
1603
|
-
!
|
|
1603
|
+
const l = e.property && pe(e.property), i = l ? l.$ref : e.collection || Te(), r = i ? ce(t(i)) : null;
|
|
1604
|
+
!i && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1604
1605
|
collection prop, some features may not work as intended`);
|
|
1605
1606
|
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 = (_) => {
|
|
1606
1607
|
const E = fe(_, e[_]);
|
|
1607
1608
|
return e[_] && ve(_, e[_]), E;
|
|
1608
|
-
}, o = D(() => e.validationErrors !== null ? e.validationErrors : r == null ? void 0 : r.validationErrors), v = d("formComponents") || {}, b = d("propertyComponents") || {},
|
|
1609
|
-
|
|
1609
|
+
}, o = D(() => e.validationErrors !== null ? e.validationErrors : r == null ? void 0 : r.validationErrors), v = d("formComponents") || {}, b = d("propertyComponents") || {}, V = d("omitFormHeader"), R = d("omitInputLabels"), T = d("innerInputLabel");
|
|
1610
|
+
i && ve(Ue, i), ve("searchOnly", e.searchOnly);
|
|
1610
1611
|
const q = (_) => p.value ? Object.entries(p.value).filter(([E, I]) => !I.noForm && _([
|
|
1611
1612
|
E,
|
|
1612
1613
|
I
|
|
1613
1614
|
])) : null, w = (_) => {
|
|
1614
1615
|
var I;
|
|
1615
|
-
if (e.searchOnly || !
|
|
1616
|
+
if (e.searchOnly || !i)
|
|
1616
1617
|
return !0;
|
|
1617
1618
|
const E = e.property && "properties" in e.property ? e.property.form : (I = r == null ? void 0 : r.description) == null ? void 0 : I.form;
|
|
1618
1619
|
return !E || E.includes(_);
|
|
1619
|
-
}, le = q(([_]) => w(_)), oe =
|
|
1620
|
+
}, le = q(([_]) => w(_)), oe = je(), S = {}, x = (_, E) => {
|
|
1620
1621
|
var j, te, B, ae;
|
|
1621
1622
|
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);
|
|
1622
1623
|
if (!E)
|
|
1623
1624
|
return;
|
|
1624
1625
|
if (L != null && L.if && !e.searchOnly) {
|
|
1625
|
-
const _e =
|
|
1626
|
+
const _e = Qe(
|
|
1626
1627
|
e.modelValue,
|
|
1627
1628
|
L.if
|
|
1628
1629
|
);
|
|
@@ -1655,23 +1656,23 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1655
1656
|
};
|
|
1656
1657
|
return (_, E) => {
|
|
1657
1658
|
const I = N("clickable"), L = N("focus");
|
|
1658
|
-
return n(),
|
|
1659
|
+
return n(), s("form", {
|
|
1659
1660
|
class: "form",
|
|
1660
|
-
style: he(`row-gap: ${t(
|
|
1661
|
+
style: he(`row-gap: ${t(V) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1661
1662
|
}, [
|
|
1662
|
-
_.$slots.header && !t(
|
|
1663
|
-
|
|
1663
|
+
_.$slots.header && !t(V) ? (n(), s("header", Mo, [
|
|
1664
|
+
C(_.$slots, "header", {}, void 0, !0)
|
|
1664
1665
|
])) : f("", !0),
|
|
1665
|
-
|
|
1666
|
-
_.isReadOnly ? f("", !0) : (n(),
|
|
1667
|
-
(n(!0),
|
|
1668
|
-
var te, B, ae, _e, ke, Ye, Je, Ke, Ze, Pe, Ne, xe
|
|
1669
|
-
return n(),
|
|
1666
|
+
C(_.$slots, "default", {}, void 0, !0),
|
|
1667
|
+
_.isReadOnly ? f("", !0) : (n(), s("fieldset", qo, [
|
|
1668
|
+
(n(!0), s(J, null, H(t(le), ([A, j]) => {
|
|
1669
|
+
var te, B, ae, _e, ke, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe;
|
|
1670
|
+
return n(), s("div", {
|
|
1670
1671
|
key: `field-${A}`,
|
|
1671
1672
|
style: he(x(A, j)),
|
|
1672
1673
|
class: "form__field"
|
|
1673
1674
|
}, [
|
|
1674
|
-
(!("type" in j) || j.type !== "boolean" || _.searchOnly) && !j.noLabel && !t(R) && !t(T) ? (n(),
|
|
1675
|
+
(!("type" in j) || j.type !== "boolean" || _.searchOnly) && !j.noLabel && !t(R) && !t(T) ? (n(), s("label", Uo, [
|
|
1675
1676
|
k("div", {
|
|
1676
1677
|
class: W({
|
|
1677
1678
|
"form__field-label": !0,
|
|
@@ -1679,12 +1680,12 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1679
1680
|
"form__field-required-hint": _.highlightRequired && !_.searchOnly && (!z.value || t(Et)(A, z.value, _.modelValue))
|
|
1680
1681
|
})
|
|
1681
1682
|
}, g(j.description || t(M)(A)), 3),
|
|
1682
|
-
j.hint ? (n(),
|
|
1683
|
+
j.hint ? (n(), s("div", {
|
|
1683
1684
|
key: 0,
|
|
1684
1685
|
innerHTML: j.hint
|
|
1685
1686
|
}, null, 8, Eo)) : f("", !0)
|
|
1686
1687
|
])) : f("", !0),
|
|
1687
|
-
_.$slots[`field-${A}`] ?
|
|
1688
|
+
_.$slots[`field-${A}`] ? C(_.$slots, `field-${A}`, se(G({ key: 1 }, {
|
|
1688
1689
|
propery: j,
|
|
1689
1690
|
properyName: A,
|
|
1690
1691
|
modelValue: _.modelValue
|
|
@@ -1699,7 +1700,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1699
1700
|
}, {
|
|
1700
1701
|
onInput: (P) => a("input", A),
|
|
1701
1702
|
onChange: E[0] || (E[0] = (P) => a("change", P))
|
|
1702
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in j && ["date", "date-time"].includes(j.format) && _.searchOnly ? (n(),
|
|
1703
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in j && ["date", "date-time"].includes(j.format) && _.searchOnly ? (n(), s("div", {
|
|
1703
1704
|
key: 3,
|
|
1704
1705
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1705
1706
|
onInput: (P) => a("input", A),
|
|
@@ -1719,8 +1720,8 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1719
1720
|
property: j,
|
|
1720
1721
|
propertyName: A
|
|
1721
1722
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1722
|
-
], 40, Ho)) : "type" in j && j.type === "boolean" && _.searchOnly ? (n(),
|
|
1723
|
-
F(
|
|
1723
|
+
], 40, Ho)) : "type" in j && j.type === "boolean" && _.searchOnly ? (n(), s("div", Do, [
|
|
1724
|
+
F(Ee, G({
|
|
1724
1725
|
property: j,
|
|
1725
1726
|
propertyName: A
|
|
1726
1727
|
}, {
|
|
@@ -1737,14 +1738,14 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1737
1738
|
]),
|
|
1738
1739
|
_: 2
|
|
1739
1740
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1740
|
-
])) : _.modelValue && "items" in j && !j.uniqueItems && (!("$ref" in j.items) || j.items.inline || j.items.$ref === "file") ? (n(),
|
|
1741
|
+
])) : _.modelValue && "items" in j && !j.uniqueItems && (!("$ref" in j.items) || j.items.inline || j.items.$ref === "file") ? (n(), s("div", Wo, [
|
|
1741
1742
|
k("div", null, [
|
|
1742
1743
|
F(re, {
|
|
1743
1744
|
small: "",
|
|
1744
1745
|
variant: "alt",
|
|
1745
1746
|
icon: "plus",
|
|
1746
|
-
disabled: !("inline" in j.items && j.items.inline) && (((_e = _.modelValue[A]) == null ? void 0 : _e.length) >= j.maxItems || O((
|
|
1747
|
-
onClick:
|
|
1747
|
+
disabled: !("inline" in j.items && j.items.inline) && (((_e = _.modelValue[A]) == null ? void 0 : _e.length) >= j.maxItems || O((Xe = _.modelValue[A]) == null ? void 0 : Xe[((ke = _.modelValue[A]) == null ? void 0 : ke.length) - 1])),
|
|
1748
|
+
onClick: ze((P) => {
|
|
1748
1749
|
_.modelValue[A] || (_.modelValue[A] = []), t(zo)(_.modelValue[A], j);
|
|
1749
1750
|
}, ["prevent"])
|
|
1750
1751
|
}, {
|
|
@@ -1754,22 +1755,22 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1754
1755
|
_: 2
|
|
1755
1756
|
}, 1032, ["disabled", "onClick"])
|
|
1756
1757
|
]),
|
|
1757
|
-
(n(!0),
|
|
1758
|
-
var tt, nt, ot, at, lt
|
|
1759
|
-
return n(),
|
|
1758
|
+
(n(!0), s(J, null, H(_.modelValue[A], (P, Oe) => {
|
|
1759
|
+
var et, tt, nt, ot, at, lt;
|
|
1760
|
+
return n(), s("div", {
|
|
1760
1761
|
key: `rep-${A}-${Oe}`,
|
|
1761
1762
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
1762
1763
|
}, [
|
|
1763
1764
|
k("div", Xo, [
|
|
1764
|
-
(n(), $(ye(t(
|
|
1765
|
+
(n(), $(ye(t(it)(j, t(v))), G({
|
|
1765
1766
|
modelValue: _.modelValue[A][Oe],
|
|
1766
1767
|
"onUpdate:modelValue": (we) => _.modelValue[A][Oe] = we
|
|
1767
1768
|
}, {
|
|
1768
1769
|
property: j.items,
|
|
1769
1770
|
propertyName: A,
|
|
1770
|
-
parentCollection: t(
|
|
1771
|
+
parentCollection: t(i),
|
|
1771
1772
|
parentPropertyName: _.parentPropertyName,
|
|
1772
|
-
columns: ((
|
|
1773
|
+
columns: ((nt = (tt = (et = _.layout) == null ? void 0 : et.fields) == null ? void 0 : tt[A]) == null ? void 0 : nt.optionsColumns) || ((lt = (at = (ot = _.layout) == null ? void 0 : ot.fields) == null ? void 0 : at.$default) == null ? void 0 : lt.optionsColumns),
|
|
1773
1774
|
validationErrors: ne(A, Oe),
|
|
1774
1775
|
...j.componentProps || {}
|
|
1775
1776
|
}, {
|
|
@@ -1786,7 +1787,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1786
1787
|
])
|
|
1787
1788
|
]);
|
|
1788
1789
|
}), 128))
|
|
1789
|
-
])) : _.modelValue ? Z((n(), $(ye(t(
|
|
1790
|
+
])) : _.modelValue ? Z((n(), $(ye(t(it)(j, t(v))), G({
|
|
1790
1791
|
key: 6,
|
|
1791
1792
|
modelValue: _.modelValue[A],
|
|
1792
1793
|
"onUpdate:modelValue": (P) => _.modelValue[A] = P
|
|
@@ -1794,8 +1795,8 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1794
1795
|
property: j,
|
|
1795
1796
|
propertyName: A,
|
|
1796
1797
|
parentPropertyName: _.parentPropertyName,
|
|
1797
|
-
parentCollection: t(
|
|
1798
|
-
columns: ((
|
|
1798
|
+
parentCollection: t(i),
|
|
1799
|
+
columns: ((Ke = (Je = (Ye = _.layout) == null ? void 0 : Ye.fields) == null ? void 0 : Je[A]) == null ? void 0 : Ke.optionsColumns) || ((Ne = (Pe = (Ze = _.layout) == null ? void 0 : Ze.fields) == null ? void 0 : Pe.$default) == null ? void 0 : Ne.optionsColumns),
|
|
1799
1800
|
...j.componentProps || {},
|
|
1800
1801
|
validationErrors: ne(A)
|
|
1801
1802
|
}, {
|
|
@@ -1804,16 +1805,16 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1804
1805
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1805
1806
|
[L, !y.value && (y.value = !!_.focus)]
|
|
1806
1807
|
]) : f("", !0),
|
|
1807
|
-
(
|
|
1808
|
-
o.value[A].type ? (n(),
|
|
1809
|
-
o.value[A].detail ? (n(),
|
|
1808
|
+
(xe = o.value) != null && xe[A] ? (n(), s("div", Yo, [
|
|
1809
|
+
o.value[A].type ? (n(), s("span", Jo, g(t(M)(`validation_error.${o.value[A].type}`)), 1)) : f("", !0),
|
|
1810
|
+
o.value[A].detail ? (n(), s("span", Ko, g(t(M)(o.value[A].detail)), 1)) : f("", !0)
|
|
1810
1811
|
])) : f("", !0)
|
|
1811
1812
|
], 4);
|
|
1812
1813
|
}), 128))
|
|
1813
1814
|
])),
|
|
1814
|
-
_.$slots.after ?
|
|
1815
|
-
_.$slots.footer ? (n(),
|
|
1816
|
-
|
|
1815
|
+
_.$slots.after ? C(_.$slots, "after", { key: 2 }, void 0, !0) : f("", !0),
|
|
1816
|
+
_.$slots.footer ? (n(), s("div", Zo, [
|
|
1817
|
+
C(_.$slots, "footer", se(be({
|
|
1817
1818
|
isInsertReady: ee.value
|
|
1818
1819
|
})), void 0, !0)
|
|
1819
1820
|
])) : f("", !0)
|
|
@@ -1821,11 +1822,11 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-655761da"]]), rt = (c, u
|
|
|
1821
1822
|
};
|
|
1822
1823
|
}
|
|
1823
1824
|
});
|
|
1824
|
-
const
|
|
1825
|
+
const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @__PURE__ */ U({
|
|
1825
1826
|
__name: "aeria-filter-panel",
|
|
1826
1827
|
emits: ["update:modelValue"],
|
|
1827
1828
|
setup(c, { emit: u }) {
|
|
1828
|
-
const e = u, a = ge(), l =
|
|
1829
|
+
const e = u, a = ge(), l = Le(), i = () => {
|
|
1829
1830
|
a.pagination.offset = 0, a.$actions.filter(), e("update:modelValue", !1), l.push({
|
|
1830
1831
|
query: Lt(a)
|
|
1831
1832
|
});
|
|
@@ -1842,7 +1843,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1842
1843
|
key: 0,
|
|
1843
1844
|
variant: "transparent",
|
|
1844
1845
|
onClick: y[1] || (y[1] = (p) => {
|
|
1845
|
-
t(a).$actions.clearFilters(),
|
|
1846
|
+
t(a).$actions.clearFilters(), i(), e("update:modelValue", !1);
|
|
1846
1847
|
})
|
|
1847
1848
|
}, {
|
|
1848
1849
|
default: m(() => [
|
|
@@ -1860,7 +1861,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1860
1861
|
large: "",
|
|
1861
1862
|
icon: "funnel",
|
|
1862
1863
|
disabled: !t(a).hasActiveFilters,
|
|
1863
|
-
onClick:
|
|
1864
|
+
onClick: i
|
|
1864
1865
|
}, {
|
|
1865
1866
|
default: m(() => [
|
|
1866
1867
|
Q(g(r.t("action.filter", { capitalize: !0 })), 1)
|
|
@@ -1869,7 +1870,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1869
1870
|
}, 8, ["disabled"])
|
|
1870
1871
|
]),
|
|
1871
1872
|
default: m(() => [
|
|
1872
|
-
F(
|
|
1873
|
+
F(He, G({
|
|
1873
1874
|
modelValue: t(a).filters,
|
|
1874
1875
|
"onUpdate:modelValue": y[0] || (y[0] = (p) => t(a).filters = p)
|
|
1875
1876
|
}, {
|
|
@@ -1881,18 +1882,18 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1881
1882
|
_: 1
|
|
1882
1883
|
}, 8, ["title"]));
|
|
1883
1884
|
}
|
|
1884
|
-
}), ie = Y(!1),
|
|
1885
|
+
}), ie = Y(!1), rt = Y(!1), Ve = Y(!1), Be = Y((...c) => null), ut = Y(), ct = !1, xo = /* @__PURE__ */ U({
|
|
1885
1886
|
__name: "aeria-insert-panel",
|
|
1886
1887
|
setup(c) {
|
|
1887
1888
|
const u = ce("meta"), e = ce(u.view.collection), a = fe("individualActions", []), l = async () => {
|
|
1888
1889
|
const y = await e.$actions.deepInsert();
|
|
1889
1890
|
Ht(y) || (ie.value = !1);
|
|
1890
|
-
}, { t:
|
|
1891
|
+
}, { t: i } = wt(), r = () => {
|
|
1891
1892
|
u.$actions.ask({
|
|
1892
1893
|
action: () => {
|
|
1893
1894
|
e.$actions.clearItem(), e.validationErrors = {}, ie.value = !1;
|
|
1894
1895
|
},
|
|
1895
|
-
body:
|
|
1896
|
+
body: i("prompt.close_panel")
|
|
1896
1897
|
});
|
|
1897
1898
|
};
|
|
1898
1899
|
return ue(() => e.item._id, (y) => {
|
|
@@ -1901,7 +1902,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1901
1902
|
const h = N("clickable");
|
|
1902
1903
|
return n(), $(Ae, {
|
|
1903
1904
|
modelValue: t(ie),
|
|
1904
|
-
"onUpdate:modelValue": p[3] || (p[3] = (d) =>
|
|
1905
|
+
"onUpdate:modelValue": p[3] || (p[3] = (d) => mt(ie) ? ie.value = d : null),
|
|
1905
1906
|
"fixed-right": "",
|
|
1906
1907
|
loading: t(e).loading.get,
|
|
1907
1908
|
onOverlayClick: r
|
|
@@ -1910,15 +1911,15 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1910
1911
|
k("span", null, g((() => {
|
|
1911
1912
|
switch (t(ie)) {
|
|
1912
1913
|
case "add":
|
|
1913
|
-
return t(
|
|
1914
|
+
return t(i)("action.add", { capitalize: !0 });
|
|
1914
1915
|
case "duplicate":
|
|
1915
|
-
return t(
|
|
1916
|
+
return t(i)("action.duplicate", { capitalize: !0 });
|
|
1916
1917
|
case "edit":
|
|
1917
1918
|
default:
|
|
1918
|
-
return t(
|
|
1919
|
+
return t(i)("action.edit", { capitalize: !0 });
|
|
1919
1920
|
}
|
|
1920
1921
|
})()), 1),
|
|
1921
|
-
k("span", null, " " + g(t(
|
|
1922
|
+
k("span", null, " " + g(t(i)(t(u).view.collection)), 1)
|
|
1922
1923
|
]),
|
|
1923
1924
|
extra: m(() => [
|
|
1924
1925
|
F(Ce, G({
|
|
@@ -1945,30 +1946,30 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1945
1946
|
onClick: r
|
|
1946
1947
|
}, {
|
|
1947
1948
|
default: m(() => [
|
|
1948
|
-
Q(g(t(
|
|
1949
|
+
Q(g(t(i)("action.cancel", { capitalize: !0 })), 1)
|
|
1949
1950
|
]),
|
|
1950
1951
|
_: 1
|
|
1951
1952
|
}),
|
|
1952
1953
|
F(re, {
|
|
1953
1954
|
large: "",
|
|
1954
|
-
disabled: !t(e).isInsertReady ||
|
|
1955
|
+
disabled: !t(e).isInsertReady || ct || t(e).loading.get,
|
|
1955
1956
|
loading: t(e).loading.insert,
|
|
1956
1957
|
onClick: l
|
|
1957
1958
|
}, {
|
|
1958
1959
|
default: m(() => [
|
|
1959
|
-
Q(g(t(
|
|
1960
|
+
Q(g(t(i)("action.insert", { capitalize: !0 })), 1)
|
|
1960
1961
|
]),
|
|
1961
1962
|
_: 1
|
|
1962
1963
|
}, 8, ["disabled", "loading"])
|
|
1963
1964
|
]),
|
|
1964
1965
|
default: m(() => [
|
|
1965
|
-
F(
|
|
1966
|
+
F(He, G({
|
|
1966
1967
|
modelValue: t(e).item,
|
|
1967
1968
|
"onUpdate:modelValue": p[0] || (p[0] = (d) => t(e).item = d)
|
|
1968
1969
|
}, {
|
|
1969
1970
|
collection: t(u).view.collection,
|
|
1970
1971
|
form: t(e).properties,
|
|
1971
|
-
isReadOnly:
|
|
1972
|
+
isReadOnly: ct,
|
|
1972
1973
|
layout: t(e).description.formLayout || {}
|
|
1973
1974
|
}, {
|
|
1974
1975
|
focus: "",
|
|
@@ -1977,7 +1978,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1977
1978
|
H(Object.keys(y.$slots).filter((d) => d.startsWith("field-")), (d) => ({
|
|
1978
1979
|
name: d,
|
|
1979
1980
|
fn: m((o) => [
|
|
1980
|
-
|
|
1981
|
+
C(y.$slots, d, se(be(o)))
|
|
1981
1982
|
])
|
|
1982
1983
|
}))
|
|
1983
1984
|
]), 1040, ["modelValue"])
|
|
@@ -1997,17 +1998,17 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
1997
1998
|
}, ea = (c, u = {
|
|
1998
1999
|
persistInQuery: !0
|
|
1999
2000
|
}) => {
|
|
2000
|
-
const a =
|
|
2001
|
+
const a = Le().currentRoute;
|
|
2001
2002
|
return ue(() => a.value.query.section, (l) => {
|
|
2002
2003
|
if (c) {
|
|
2003
2004
|
if (c.description.filtersPresets) {
|
|
2004
|
-
const
|
|
2005
|
-
ht(c.description.filtersPresets[
|
|
2005
|
+
const i = l || Object.keys(c.description.filtersPresets)[0];
|
|
2006
|
+
ht(c.description.filtersPresets[i], c);
|
|
2006
2007
|
}
|
|
2007
2008
|
if (u.persistInQuery) {
|
|
2008
|
-
const
|
|
2009
|
-
|
|
2010
|
-
$search: `"${
|
|
2009
|
+
const i = a.value.query;
|
|
2010
|
+
i.offset && (c.pagination.offset = +i.offset), i.limit && (c.pagination.limit = +i.limit), i.search && (c.textQuery = i.search, c.filters.$text = {
|
|
2011
|
+
$search: `"${i.search}"`,
|
|
2011
2012
|
$caseSensitive: !1
|
|
2012
2013
|
});
|
|
2013
2014
|
}
|
|
@@ -2015,7 +2016,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2015
2016
|
}, {
|
|
2016
2017
|
immediate: !0
|
|
2017
2018
|
});
|
|
2018
|
-
}, ta = (c) => (
|
|
2019
|
+
}, ta = (c) => (Me("data-v-51392b44"), c = c(), qe(), c), na = {
|
|
2019
2020
|
key: 0,
|
|
2020
2021
|
class: "table aeria-surface"
|
|
2021
2022
|
}, oa = { key: 0 }, aa = { key: 1 }, la = { key: 0 }, sa = ["checked"], ia = {
|
|
@@ -2049,61 +2050,61 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2049
2050
|
},
|
|
2050
2051
|
emits: ["itemClick"],
|
|
2051
2052
|
setup(c, { emit: u }) {
|
|
2052
|
-
const e = c, a = u, l =
|
|
2053
|
+
const e = c, a = u, l = je(), i = e.collection || Te(), r = i ? ce(typeof i == "string" ? i : i.value) : null, y = D({
|
|
2053
2054
|
get: () => r == null ? void 0 : r.selected,
|
|
2054
2055
|
set: (v) => r == null ? void 0 : r.$actions.selectManyItems(v, !0)
|
|
2055
|
-
}), p = (v, b) => v != null && v.button ? typeof v.button == "object" ?
|
|
2056
|
+
}), p = (v, b) => v != null && v.button ? typeof v.button == "object" ? Qe(b, v.button).satisfied : v.button : !1, h = (v) => {
|
|
2056
2057
|
var b;
|
|
2057
|
-
return !l.value.xl || !((b = e.layout) != null && b.actions) || !e.actions ? [] : e.actions.filter((
|
|
2058
|
-
const R = e.layout.actions[
|
|
2058
|
+
return !l.value.xl || !((b = e.layout) != null && b.actions) || !e.actions ? [] : e.actions.filter((V) => {
|
|
2059
|
+
const R = e.layout.actions[V.action];
|
|
2059
2060
|
return p(R, v);
|
|
2060
2061
|
});
|
|
2061
2062
|
}, d = (v) => {
|
|
2062
2063
|
var b;
|
|
2063
|
-
return e.actions ? !l.value.xl || !((b = e.layout) != null && b.actions) ? e.actions : e.actions.filter((
|
|
2064
|
-
const R = e.layout.actions[
|
|
2064
|
+
return e.actions ? !l.value.xl || !((b = e.layout) != null && b.actions) ? e.actions : e.actions.filter((V) => {
|
|
2065
|
+
const R = e.layout.actions[V.action];
|
|
2065
2066
|
return !p(R, v);
|
|
2066
2067
|
}) : [];
|
|
2067
2068
|
}, o = (v, b) => {
|
|
2068
2069
|
var T, q;
|
|
2069
|
-
const
|
|
2070
|
-
return R != null && R.if && (
|
|
2070
|
+
const V = [], R = (q = (T = e.layout) == null ? void 0 : T.actions) == null ? void 0 : q[b.action];
|
|
2071
|
+
return R != null && R.if && (Qe(
|
|
2071
2072
|
v,
|
|
2072
2073
|
R.if
|
|
2073
|
-
).satisfied ||
|
|
2074
|
+
).satisfied || V.push("display: none;")), V.join("");
|
|
2074
2075
|
};
|
|
2075
2076
|
return (v, b) => {
|
|
2076
2077
|
var R, T, q;
|
|
2077
|
-
const
|
|
2078
|
-
return v.columns && Object.keys(v.columns).length > 0 || v.$slots.thead ? (n(),
|
|
2079
|
-
v.$slots.thead ? (n(),
|
|
2080
|
-
|
|
2081
|
-
])) : (n(),
|
|
2078
|
+
const V = N("clickable");
|
|
2079
|
+
return v.columns && Object.keys(v.columns).length > 0 || v.$slots.thead ? (n(), s("table", na, [
|
|
2080
|
+
v.$slots.thead ? (n(), s("thead", oa, [
|
|
2081
|
+
C(v.$slots, "thead", {}, void 0, !0)
|
|
2082
|
+
])) : (n(), s("thead", aa, [
|
|
2082
2083
|
k("tr", null, [
|
|
2083
|
-
v.checkbox && t(r) && t(l).md ? (n(),
|
|
2084
|
+
v.checkbox && t(r) && t(l).md ? (n(), s("th", la, [
|
|
2084
2085
|
k("input", {
|
|
2085
2086
|
type: "checkbox",
|
|
2086
2087
|
checked: t(r).selected.length > 0 && t(r).selected.length === t(r).itemsCount,
|
|
2087
2088
|
onChange: b[0] || (b[0] = (w) => t(r).$actions.selectAllItems(w.target.checked))
|
|
2088
2089
|
}, null, 40, sa)
|
|
2089
2090
|
])) : f("", !0),
|
|
2090
|
-
(n(!0),
|
|
2091
|
+
(n(!0), s(J, null, H(Object.entries(v.columns), ([w, le], oe) => (n(), s("th", {
|
|
2091
2092
|
key: `header-${oe}`,
|
|
2092
2093
|
class: "table__header"
|
|
2093
2094
|
}, g(le.description || t(M)(w)), 1))), 128)),
|
|
2094
|
-
(R = v.actions) != null && R.length ? (n(),
|
|
2095
|
+
(R = v.actions) != null && R.length ? (n(), s("th", ia)) : f("", !0)
|
|
2095
2096
|
])
|
|
2096
2097
|
])),
|
|
2097
|
-
v.$slots.tbody ? (n(),
|
|
2098
|
-
|
|
2099
|
-
])) : (n(),
|
|
2100
|
-
(n(!0),
|
|
2098
|
+
v.$slots.tbody ? (n(), s("tbody", ra, [
|
|
2099
|
+
C(v.$slots, "tbody", {}, void 0, !0)
|
|
2100
|
+
])) : (n(), s("tbody", ua, [
|
|
2101
|
+
(n(!0), s(J, null, H(v.rows, (w) => {
|
|
2101
2102
|
var le, oe;
|
|
2102
|
-
return n(),
|
|
2103
|
+
return n(), s("tr", {
|
|
2103
2104
|
key: w._id,
|
|
2104
2105
|
onClick: (S) => a("itemClick", w)
|
|
2105
2106
|
}, [
|
|
2106
|
-
t(r) && v.checkbox && t(l).md ? (n(),
|
|
2107
|
+
t(r) && v.checkbox && t(l).md ? (n(), s("td", da, [
|
|
2107
2108
|
Z(k("input", {
|
|
2108
2109
|
"onUpdate:modelValue": b[1] || (b[1] = (S) => y.value = S),
|
|
2109
2110
|
type: "checkbox",
|
|
@@ -2112,22 +2113,22 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2112
2113
|
[kt, y.value]
|
|
2113
2114
|
])
|
|
2114
2115
|
])) : f("", !0),
|
|
2115
|
-
(n(!0),
|
|
2116
|
+
(n(!0), s(J, null, H(Object.entries(v.columns), ([S, x], O) => {
|
|
2116
2117
|
var z, ee, ne, _, E, I;
|
|
2117
|
-
return n(),
|
|
2118
|
+
return n(), s("td", {
|
|
2118
2119
|
key: `column-${w._id}-${O}`
|
|
2119
2120
|
}, [
|
|
2120
2121
|
k("div", _a, g(x.description || t(M)(S)), 1),
|
|
2121
|
-
`row-${S}` in v.$slots ? (n(),
|
|
2122
|
-
|
|
2122
|
+
`row-${S}` in v.$slots ? (n(), s("div", ma, [
|
|
2123
|
+
C(v.$slots, `row-${S}`, se(be({
|
|
2123
2124
|
store: t(r),
|
|
2124
2125
|
column: S,
|
|
2125
2126
|
property: x,
|
|
2126
2127
|
row: w
|
|
2127
2128
|
})), void 0, !0)
|
|
2128
|
-
])) : (n(),
|
|
2129
|
+
])) : (n(), s("div", fa, [
|
|
2129
2130
|
k("div", va, [
|
|
2130
|
-
"type" in x && x.type === "boolean" ? (n(),
|
|
2131
|
+
"type" in x && x.type === "boolean" ? (n(), s("div", ya, [
|
|
2131
2132
|
w[S] ? (n(), $(K, {
|
|
2132
2133
|
key: 0,
|
|
2133
2134
|
icon: "check",
|
|
@@ -2147,8 +2148,8 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2147
2148
|
]),
|
|
2148
2149
|
_: 1
|
|
2149
2150
|
}))
|
|
2150
|
-
])) : ((z = t(pe)(x)) == null ? void 0 : z.$ref) === "file" ? (n(),
|
|
2151
|
-
/^image/.test((ee = w[S][0]) == null ? void 0 : ee.mime) && "items" in x ? (n(), $(
|
|
2151
|
+
])) : ((z = t(pe)(x)) == null ? void 0 : z.$ref) === "file" ? (n(), s("div", ha, [
|
|
2152
|
+
/^image/.test((ee = w[S][0]) == null ? void 0 : ee.mime) && "items" in x ? (n(), $(Fe, {
|
|
2152
2153
|
key: 0,
|
|
2153
2154
|
modelValue: w[S][0].link,
|
|
2154
2155
|
"onUpdate:modelValue": (L) => w[S][0].link = L,
|
|
@@ -2156,7 +2157,7 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2156
2157
|
meta: w[S][0],
|
|
2157
2158
|
alt: "Row image",
|
|
2158
2159
|
class: "table__picture"
|
|
2159
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((ne = w[S]) == null ? void 0 : ne.mime) ? (n(), $(
|
|
2160
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((ne = w[S]) == null ? void 0 : ne.mime) ? (n(), $(Fe, {
|
|
2160
2161
|
key: 1,
|
|
2161
2162
|
modelValue: w[S].link,
|
|
2162
2163
|
"onUpdate:modelValue": (L) => w[S].link = L,
|
|
@@ -2164,19 +2165,19 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2164
2165
|
meta: w[S],
|
|
2165
2166
|
alt: "Row image",
|
|
2166
2167
|
class: "table__picture"
|
|
2167
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (_ = w[S]) != null && _.link ? (n(),
|
|
2168
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (_ = w[S]) != null && _.link ? (n(), s("a", {
|
|
2168
2169
|
key: 2,
|
|
2169
2170
|
href: w[S].link,
|
|
2170
2171
|
style: { "font-size": "10pt" }
|
|
2171
|
-
}, g(w[S].filename), 9, $a)) : (n(),
|
|
2172
|
-
])) : (n(),
|
|
2173
|
-
t(r) ? (n(),
|
|
2172
|
+
}, g(w[S].filename), 9, $a)) : (n(), s("div", ba, " - "))
|
|
2173
|
+
])) : (n(), s("div", ga, [
|
|
2174
|
+
t(r) ? (n(), s("span", ka, g(t(r).$actions.formatValue({
|
|
2174
2175
|
value: w[S],
|
|
2175
2176
|
key: S,
|
|
2176
2177
|
property: x
|
|
2177
|
-
})), 1)) : (n(),
|
|
2178
|
-
((I = (E = t(pe)(x)) == null ? void 0 : E.indexes) == null ? void 0 : I.length) > 1 ? (n(),
|
|
2179
|
-
(n(!0),
|
|
2178
|
+
})), 1)) : (n(), s("span", Va, g(Array.isArray(w[S]) ? w[S].filter((L) => !!L).join(", ") : [void 0, null].includes(w[S]) ? "-" : w[S]), 1)),
|
|
2179
|
+
((I = (E = t(pe)(x)) == null ? void 0 : E.indexes) == null ? void 0 : I.length) > 1 ? (n(), s("div", Ca, [
|
|
2180
|
+
(n(!0), s(J, null, H(t(pe)(x).indexes.slice(1, 2), (L, A) => (n(), s("div", {
|
|
2180
2181
|
key: `subvalue-${A}`,
|
|
2181
2182
|
class: "table__cell-subvalue"
|
|
2182
2183
|
}, g(t(r).$actions.formatValue({
|
|
@@ -2191,9 +2192,9 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2191
2192
|
]))
|
|
2192
2193
|
]);
|
|
2193
2194
|
}), 128)),
|
|
2194
|
-
(le = v.actions) != null && le.length && t(l).md ? (n(),
|
|
2195
|
+
(le = v.actions) != null && le.length && t(l).md ? (n(), s("td", Ia, [
|
|
2195
2196
|
k("div", Aa, [
|
|
2196
|
-
(n(!0),
|
|
2197
|
+
(n(!0), s(J, null, H(h(w), (S) => (n(), $(re, {
|
|
2197
2198
|
key: `action-${S.action}`,
|
|
2198
2199
|
small: "",
|
|
2199
2200
|
variant: "transparent",
|
|
@@ -2215,18 +2216,18 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2215
2216
|
reactive: "",
|
|
2216
2217
|
icon: "dots-three"
|
|
2217
2218
|
}, null, 512), [
|
|
2218
|
-
[
|
|
2219
|
+
[V]
|
|
2219
2220
|
])
|
|
2220
2221
|
]),
|
|
2221
2222
|
_: 2
|
|
2222
2223
|
}, 1040)) : f("", !0)
|
|
2223
2224
|
])
|
|
2224
|
-
])) : (oe = v.actions) != null && oe.length ? (n(),
|
|
2225
|
+
])) : (oe = v.actions) != null && oe.length ? (n(), s("td", Oa, [
|
|
2225
2226
|
k("div", {
|
|
2226
2227
|
class: "table__mobile-actions-grid",
|
|
2227
2228
|
style: he(`grid-template-columns: repeat(${h(w).length + (d(w).length ? 1 : 0)}, 1fr);`)
|
|
2228
2229
|
}, [
|
|
2229
|
-
(n(!0),
|
|
2230
|
+
(n(!0), s(J, null, H(h(w), (S) => (n(), $(me, {
|
|
2230
2231
|
key: `action-${S.action}`,
|
|
2231
2232
|
class: "table__mobile-actions-button",
|
|
2232
2233
|
onClick: (x) => S.click(w)
|
|
@@ -2264,13 +2265,13 @@ const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-744f1b34"]]), No = /* @_
|
|
|
2264
2265
|
}), 128))
|
|
2265
2266
|
])),
|
|
2266
2267
|
k("tfoot", null, [
|
|
2267
|
-
v.$slots.tfoot ?
|
|
2268
|
+
v.$slots.tfoot ? C(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((T = v.rows) != null && T.length) && !((q = t(r)) != null && q.loading.getAll) ? (n(), s("tr", Ba, ja)) : f("", !0)
|
|
2268
2269
|
])
|
|
2269
2270
|
])) : f("", !0);
|
|
2270
2271
|
};
|
|
2271
2272
|
}
|
|
2272
2273
|
});
|
|
2273
|
-
const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-
|
|
2274
|
+
const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-51392b44"]]), Ra = /* @__PURE__ */ U({
|
|
2274
2275
|
__name: "aeria-tabular",
|
|
2275
2276
|
props: {
|
|
2276
2277
|
individualActions: {},
|
|
@@ -2278,8 +2279,8 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-f06fe846"]]), Ra = /* @_
|
|
|
2278
2279
|
componentProps: {}
|
|
2279
2280
|
},
|
|
2280
2281
|
setup(c) {
|
|
2281
|
-
const u = c, e = ge(), a =
|
|
2282
|
-
const
|
|
2282
|
+
const u = c, e = ge(), a = Te(), l = D(() => {
|
|
2283
|
+
const i = {
|
|
2283
2284
|
collection: a,
|
|
2284
2285
|
checkbox: e.hasSelectionActions,
|
|
2285
2286
|
columns: e.tableProperties,
|
|
@@ -2287,17 +2288,17 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-f06fe846"]]), Ra = /* @_
|
|
|
2287
2288
|
actions: u.individualActions,
|
|
2288
2289
|
layout: e.tableLayout
|
|
2289
2290
|
};
|
|
2290
|
-
return Object.assign(
|
|
2291
|
+
return Object.assign(i, u.componentProps);
|
|
2291
2292
|
});
|
|
2292
|
-
return (
|
|
2293
|
-
|
|
2293
|
+
return (i, r) => (n(), s("div", null, [
|
|
2294
|
+
i.$slots.inner ? C(i.$slots, "inner", { key: 0 }) : f("", !0),
|
|
2294
2295
|
t(e).properties ? (n(), $(La, G({ key: 1 }, l.value, {
|
|
2295
2296
|
key: t(e).$id
|
|
2296
2297
|
}), de({ _: 2 }, [
|
|
2297
|
-
H(Object.keys(
|
|
2298
|
+
H(Object.keys(i.$slots).filter((y) => !["inner"].includes(y)), (y) => ({
|
|
2298
2299
|
name: y,
|
|
2299
2300
|
fn: m((p) => [
|
|
2300
|
-
|
|
2301
|
+
C(i.$slots, y, se(be(p)))
|
|
2301
2302
|
])
|
|
2302
2303
|
}))
|
|
2303
2304
|
]), 1040)) : f("", !0)
|
|
@@ -2309,13 +2310,13 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-f06fe846"]]), Ra = /* @_
|
|
|
2309
2310
|
list: { type: Boolean }
|
|
2310
2311
|
},
|
|
2311
2312
|
setup(c) {
|
|
2312
|
-
return (u, e) => (n(),
|
|
2313
|
+
return (u, e) => (n(), s("div", {
|
|
2313
2314
|
class: W(`
|
|
2314
2315
|
grid
|
|
2315
2316
|
${u.list && "grid--list"}
|
|
2316
2317
|
`)
|
|
2317
2318
|
}, [
|
|
2318
|
-
|
|
2319
|
+
C(u.$slots, "default", {}, void 0, !0)
|
|
2319
2320
|
], 2));
|
|
2320
2321
|
}
|
|
2321
2322
|
});
|
|
@@ -2331,26 +2332,26 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2331
2332
|
componentName: {}
|
|
2332
2333
|
},
|
|
2333
2334
|
setup(c) {
|
|
2334
|
-
const e = c.layoutOptions, a = ge(), l = (
|
|
2335
|
-
return (
|
|
2335
|
+
const e = c.layoutOptions, a = ge(), l = (i) => Array.isArray(i) ? i[0] : i;
|
|
2336
|
+
return (i, r) => {
|
|
2336
2337
|
const y = N("clickable");
|
|
2337
2338
|
return n(), $(Fa, {
|
|
2338
|
-
list:
|
|
2339
|
+
list: i.componentName === "list"
|
|
2339
2340
|
}, {
|
|
2340
2341
|
default: m(() => [
|
|
2341
|
-
(n(!0),
|
|
2342
|
+
(n(!0), s(J, null, H(t(a).items, (p) => (n(), $(cn, {
|
|
2342
2343
|
key: p,
|
|
2343
2344
|
inactive: !!(t(e).active && !p[t(e).active]),
|
|
2344
|
-
horizontal:
|
|
2345
|
+
horizontal: i.componentName === "list"
|
|
2345
2346
|
}, de({
|
|
2346
2347
|
footer: m(() => [
|
|
2347
|
-
t(e).title ? (n(),
|
|
2348
|
-
t(e).information ? (n(),
|
|
2348
|
+
t(e).title ? (n(), s("div", Ma, g(p[t(e).title]), 1)) : f("", !0),
|
|
2349
|
+
t(e).information ? (n(), s("div", qa, g(p[t(e).information]), 1)) : f("", !0)
|
|
2349
2350
|
]),
|
|
2350
2351
|
actions: m(() => [
|
|
2351
|
-
|
|
2352
|
+
i.individualActions.length > 0 ? (n(), $(Ce, se(G({ key: 0 }, {
|
|
2352
2353
|
subject: p,
|
|
2353
|
-
actions:
|
|
2354
|
+
actions: i.individualActions
|
|
2354
2355
|
})), {
|
|
2355
2356
|
default: m(() => [
|
|
2356
2357
|
Z(F(K, {
|
|
@@ -2366,7 +2367,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2366
2367
|
default: m(() => {
|
|
2367
2368
|
var h;
|
|
2368
2369
|
return [
|
|
2369
|
-
F(
|
|
2370
|
+
F(Fe, {
|
|
2370
2371
|
alt: "Item picture",
|
|
2371
2372
|
expandable: "",
|
|
2372
2373
|
url: (h = l(p[t(e).picture])) == null ? void 0 : h.link,
|
|
@@ -2379,7 +2380,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2379
2380
|
t(e).badge && Array.isArray(p[t(e).badge]) ? {
|
|
2380
2381
|
name: "badge",
|
|
2381
2382
|
fn: m(() => [
|
|
2382
|
-
(n(!0),
|
|
2383
|
+
(n(!0), s(J, null, H(p[t(e).badge], (h) => (n(), $($e, {
|
|
2383
2384
|
key: `${p._id}-${h}`,
|
|
2384
2385
|
large: ""
|
|
2385
2386
|
}, {
|
|
@@ -2395,7 +2396,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2395
2396
|
fn: m(() => [
|
|
2396
2397
|
F($e, null, {
|
|
2397
2398
|
default: m(() => [
|
|
2398
|
-
Q(g(t(e).translateBadge ? t(M)(p[t(e).badge]) : p[t(e)[
|
|
2399
|
+
Q(g(t(e).translateBadge ? t(M)(p[t(e).badge]) : p[t(e)[i.badge]]), 1)
|
|
2399
2400
|
]),
|
|
2400
2401
|
_: 2
|
|
2401
2402
|
}, 1024)
|
|
@@ -2409,11 +2410,11 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2409
2410
|
};
|
|
2410
2411
|
}
|
|
2411
2412
|
});
|
|
2412
|
-
const
|
|
2413
|
+
const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) => ({
|
|
2413
2414
|
tabular: Ra,
|
|
2414
|
-
grid:
|
|
2415
|
-
list:
|
|
2416
|
-
})[c], Ha = (c) => (
|
|
2415
|
+
grid: dt,
|
|
2416
|
+
list: dt
|
|
2417
|
+
})[c], Ha = (c) => (Me("data-v-9c163d4e"), c = c(), qe(), c), Da = {
|
|
2417
2418
|
key: 2,
|
|
2418
2419
|
class: "crud__controls"
|
|
2419
2420
|
}, Qa = {
|
|
@@ -2422,7 +2423,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2422
2423
|
}, Ga = { class: "crud__actions" }, Wa = { class: "crud__context-badge" }, Xa = /* @__PURE__ */ Ha(() => /* @__PURE__ */ k("div", null, "Filtros", -1)), Ya = { key: 0 }, Ja = {
|
|
2423
2424
|
key: 3,
|
|
2424
2425
|
class: "crud__pagination"
|
|
2425
|
-
},
|
|
2426
|
+
}, pt = 30, Ka = /* @__PURE__ */ U({
|
|
2426
2427
|
__name: "aeria-crud",
|
|
2427
2428
|
props: {
|
|
2428
2429
|
collection: {},
|
|
@@ -2438,21 +2439,21 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2438
2439
|
},
|
|
2439
2440
|
emits: ["uiEvent"],
|
|
2440
2441
|
setup(c, { emit: u }) {
|
|
2441
|
-
const e = c, a = u, l =
|
|
2442
|
+
const e = c, a = u, l = Le(), i = vt({
|
|
2442
2443
|
delay: 600
|
|
2443
|
-
}), r = ce("meta"), y =
|
|
2444
|
+
}), r = ce("meta"), y = je(), { reachedEnd: p, detach: h } = We(null, {
|
|
2444
2445
|
antecipate: 600
|
|
2445
2446
|
}), d = !y.value.md || e.scrollPagination;
|
|
2446
2447
|
d && ue(p, (O) => {
|
|
2447
|
-
O && o.pagination.recordsTotal > o.items.length &&
|
|
2448
|
+
O && o.pagination.recordsTotal > o.items.length && V.value < pt && (V.value += 1, T());
|
|
2448
2449
|
});
|
|
2449
2450
|
const o = ce(e.collection);
|
|
2450
2451
|
ea(o, {
|
|
2451
2452
|
persistInQuery: !e.noQueryPersistence
|
|
2452
2453
|
});
|
|
2453
|
-
const v = Mt(), b = e.action ?
|
|
2454
|
-
Be.value = b[0],
|
|
2455
|
-
const
|
|
2454
|
+
const v = Mt(), b = e.action ? t(e.action) : Rt(o, l, v);
|
|
2455
|
+
Be.value = b[0], ut.value = b[1];
|
|
2456
|
+
const V = Y(0), R = Y(!1), T = async (O) => {
|
|
2456
2457
|
o.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
|
|
2457
2458
|
const z = {
|
|
2458
2459
|
filters: o.activeFilters,
|
|
@@ -2460,9 +2461,9 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2460
2461
|
offset: o.pagination.offset,
|
|
2461
2462
|
project: o.preferredTableProperties.length > 0 ? o.preferredTableProperties : o.description.table || Object.keys(o.properties)
|
|
2462
2463
|
};
|
|
2463
|
-
|
|
2464
|
+
V.value > 0 && (z.limit = 15, z.offset = V.value * z.limit), o.description.tableMeta && (z.project = z.project.concat(o.description.tableMeta)), O && Object.assign(z, O), o.loading.getAll = !0;
|
|
2464
2465
|
const { data: ee, pagination: ne } = await o.$actions.retrieveItems(z);
|
|
2465
|
-
o.pagination.recordsCount = ne.recordsCount, o.pagination.recordsTotal = ne.recordsTotal,
|
|
2466
|
+
o.pagination.recordsCount = ne.recordsCount, o.pagination.recordsTotal = ne.recordsTotal, V.value === 0 && o.items.splice(0), o.items.push(...ee), o.loading.getAll = !1, R.value = !0;
|
|
2466
2467
|
}, q = async (O) => {
|
|
2467
2468
|
l.push({
|
|
2468
2469
|
query: {
|
|
@@ -2479,7 +2480,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2479
2480
|
if (z && z[0] === O[0] && z[1] === O[1])
|
|
2480
2481
|
return;
|
|
2481
2482
|
const ee = l.currentRoute.value;
|
|
2482
|
-
if (r.view.title = e.collection, r.view.collection = e.collection,
|
|
2483
|
+
if (r.view.title = e.collection, r.view.collection = e.collection, rt.value = !1, !e.noFetch && !ee.query._popstate) {
|
|
2483
2484
|
const ne = zt(o, ee);
|
|
2484
2485
|
Object.keys(ne).length > 0 && Object.assign(o.filters, ne), await T();
|
|
2485
2486
|
}
|
|
@@ -2487,7 +2488,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2487
2488
|
immediate: !0,
|
|
2488
2489
|
flush: "post"
|
|
2489
2490
|
});
|
|
2490
|
-
const [le] =
|
|
2491
|
+
const [le] = i((O) => (l.push({
|
|
2491
2492
|
query: {
|
|
2492
2493
|
search: O || void 0
|
|
2493
2494
|
}
|
|
@@ -2498,7 +2499,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2498
2499
|
}
|
|
2499
2500
|
}), T({
|
|
2500
2501
|
offset: 0
|
|
2501
|
-
})) : (o.filters = Se(o.freshFilters),
|
|
2502
|
+
})) : (o.filters = Se(o.freshFilters), V.value = 0, T())));
|
|
2502
2503
|
ue(() => o.textQuery, (O) => {
|
|
2503
2504
|
le(O);
|
|
2504
2505
|
});
|
|
@@ -2507,7 +2508,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2507
2508
|
};
|
|
2508
2509
|
Vt(() => {
|
|
2509
2510
|
o.$actions.clearFilters(), o.textQuery = "", h();
|
|
2510
|
-
}), ue(() =>
|
|
2511
|
+
}), ue(() => ut.value, async (O) => {
|
|
2511
2512
|
var ne;
|
|
2512
2513
|
const z = Se(O);
|
|
2513
2514
|
let ee;
|
|
@@ -2527,7 +2528,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2527
2528
|
else if (z.name === "spawnEdit")
|
|
2528
2529
|
o.$actions.setItem(z.params), ie.value = "edit";
|
|
2529
2530
|
else if (z.name === "spawnView")
|
|
2530
|
-
|
|
2531
|
+
rt.value = !0, ie.value = "view";
|
|
2531
2532
|
else if (z.name === "duplicate") {
|
|
2532
2533
|
await ee;
|
|
2533
2534
|
const _ = Object.entries(o.item).reduce((E, [I, L]) => {
|
|
@@ -2568,25 +2569,25 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2568
2569
|
click: Be.value(O),
|
|
2569
2570
|
...O
|
|
2570
2571
|
}))), x = D(() => o.actions.filter((O) => !O.button));
|
|
2571
|
-
return ve(
|
|
2572
|
+
return ve(Ue, D(() => e.collection)), ve("individualActions", S), (O, z) => {
|
|
2572
2573
|
var _, E, I, L, A, j, te;
|
|
2573
2574
|
const ee = N("clickable"), ne = N("loading");
|
|
2574
|
-
return n(),
|
|
2575
|
+
return n(), s(J, null, [
|
|
2575
2576
|
t(Ve) ? (n(), $(No, {
|
|
2576
2577
|
key: t(o).$id,
|
|
2577
2578
|
modelValue: t(Ve),
|
|
2578
|
-
"onUpdate:modelValue": z[0] || (z[0] = (B) =>
|
|
2579
|
+
"onUpdate:modelValue": z[0] || (z[0] = (B) => mt(Ve) ? Ve.value = B : null)
|
|
2579
2580
|
}, null, 8, ["modelValue"])) : f("", !0),
|
|
2580
2581
|
t(ie) ? (n(), $(xo, { key: 1 }, de({ _: 2 }, [
|
|
2581
2582
|
H(Object.keys(O.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
2582
2583
|
name: B,
|
|
2583
2584
|
fn: m((ae) => [
|
|
2584
|
-
|
|
2585
|
+
C(O.$slots, B, se(be(ae)), void 0, !0)
|
|
2585
2586
|
])
|
|
2586
2587
|
}))
|
|
2587
2588
|
]), 1024)) : f("", !0),
|
|
2588
|
-
!O.noActions && (t(o).description.search || Object.keys(t(o).availableFilters).length > 0 || ((_ = t(o)) == null ? void 0 : _.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && t(o).description.layout && ((E = t(o).description.layout) == null ? void 0 : E.name) !== "tabular") ? (n(),
|
|
2589
|
-
t(o).description.search ? (n(),
|
|
2589
|
+
!O.noActions && (t(o).description.search || Object.keys(t(o).availableFilters).length > 0 || ((_ = t(o)) == null ? void 0 : _.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && t(o).description.layout && ((E = t(o).description.layout) == null ? void 0 : E.name) !== "tabular") ? (n(), s("div", Da, [
|
|
2590
|
+
t(o).description.search ? (n(), s("div", Qa, [
|
|
2590
2591
|
F(Ie, G({
|
|
2591
2592
|
modelValue: t(o).textQuery,
|
|
2592
2593
|
"onUpdate:modelValue": z[1] || (z[1] = (B) => t(o).textQuery = B)
|
|
@@ -2693,7 +2694,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2693
2694
|
]),
|
|
2694
2695
|
_: 1
|
|
2695
2696
|
})) : f("", !0),
|
|
2696
|
-
(n(!0),
|
|
2697
|
+
(n(!0), s(J, null, H(t(o).actions.filter((B) => B.button), (B, ae) => (n(), $(re, {
|
|
2697
2698
|
key: `action-${ae}`,
|
|
2698
2699
|
icon: B.icon,
|
|
2699
2700
|
disabled: t(o).selected.length === 0 && B.selection,
|
|
@@ -2704,11 +2705,11 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2704
2705
|
]),
|
|
2705
2706
|
_: 2
|
|
2706
2707
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2707
|
-
O.$slots.actions ?
|
|
2708
|
+
O.$slots.actions ? C(O.$slots, "actions", { key: 2 }, void 0, !0) : f("", !0)
|
|
2708
2709
|
])
|
|
2709
2710
|
])) : f("", !0),
|
|
2710
|
-
Z((n(),
|
|
2711
|
-
t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || O.$slots.empty) ? (n(),
|
|
2711
|
+
Z((n(), s("div", null, [
|
|
2712
|
+
t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || O.$slots.empty) ? (n(), s("div", Ya, [
|
|
2712
2713
|
t(w) ? (n(), $(ye(t(w)), se(G({ key: 0 }, {
|
|
2713
2714
|
collection: t(o).$id
|
|
2714
2715
|
})), {
|
|
@@ -2727,10 +2728,10 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2727
2728
|
})) : f("", !0)
|
|
2728
2729
|
]),
|
|
2729
2730
|
_: 1
|
|
2730
|
-
}, 16)) :
|
|
2731
|
+
}, 16)) : C(O.$slots, "empty", se(G({ key: 1 }, {
|
|
2731
2732
|
collection: t(o).$id
|
|
2732
2733
|
})), void 0, !0)
|
|
2733
|
-
])) : O.$slots.component ?
|
|
2734
|
+
])) : O.$slots.component ? C(O.$slots, "component", se(G({ key: 1 }, {
|
|
2734
2735
|
store: t(o)
|
|
2735
2736
|
})), void 0, !0) : (n(), $(ye(t(Ea)(((A = O.layout) == null ? void 0 : A.name) || t(o).$currentLayout)), G({ key: 2 }, {
|
|
2736
2737
|
individualActions: S.value,
|
|
@@ -2742,21 +2743,21 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2742
2743
|
H(Object.keys(O.$slots).filter((B) => B.startsWith("row-")), (B) => ({
|
|
2743
2744
|
name: B,
|
|
2744
2745
|
fn: m((ae) => [
|
|
2745
|
-
|
|
2746
|
+
C(O.$slots, B, se(be(ae)), void 0, !0)
|
|
2746
2747
|
])
|
|
2747
2748
|
})),
|
|
2748
2749
|
O.$slots.tfoot ? {
|
|
2749
2750
|
name: "tfoot",
|
|
2750
2751
|
fn: m(() => [
|
|
2751
|
-
|
|
2752
|
+
C(O.$slots, "tfoot", {}, void 0, !0)
|
|
2752
2753
|
]),
|
|
2753
2754
|
key: "0"
|
|
2754
2755
|
} : void 0
|
|
2755
2756
|
]), 1040, ["component-name"]))
|
|
2756
2757
|
])), [
|
|
2757
|
-
[ne, (!t(d) ||
|
|
2758
|
+
[ne, (!t(d) || V.value === pt) && t(o).loading.getAll]
|
|
2758
2759
|
]),
|
|
2759
|
-
!t(o).loading.getAll && t(o).itemsCount > 0 ? (n(),
|
|
2760
|
+
!t(o).loading.getAll && t(o).itemsCount > 0 ? (n(), s("div", Ja, [
|
|
2760
2761
|
F(Rn, {
|
|
2761
2762
|
pagination: t(o).pagination,
|
|
2762
2763
|
onPaginate: q
|
|
@@ -2766,7 +2767,7 @@ const pt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2766
2767
|
};
|
|
2767
2768
|
}
|
|
2768
2769
|
});
|
|
2769
|
-
const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-
|
|
2770
|
+
const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-9c163d4e"]]), Za = { class: "prompt" }, Pa = /* @__PURE__ */ U({
|
|
2770
2771
|
__name: "aeria-prompt",
|
|
2771
2772
|
props: {
|
|
2772
2773
|
title: {},
|
|
@@ -2787,16 +2788,16 @@ const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
|
|
|
2787
2788
|
class: "prompt__actions",
|
|
2788
2789
|
style: he(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
|
|
2789
2790
|
}, [
|
|
2790
|
-
(n(!0),
|
|
2791
|
+
(n(!0), s(J, null, H(a.actions, (i, r) => (n(), $(me, {
|
|
2791
2792
|
key: `action-${r}`,
|
|
2792
2793
|
class: W(`
|
|
2793
2794
|
prompt__action
|
|
2794
|
-
prompt__action--${
|
|
2795
|
+
prompt__action--${i.variant || "primary"}
|
|
2795
2796
|
`),
|
|
2796
|
-
onClick: (y) =>
|
|
2797
|
+
onClick: (y) => i.click ? i.click(i) : e(i)
|
|
2797
2798
|
}, {
|
|
2798
2799
|
default: m(() => [
|
|
2799
|
-
Q(g(
|
|
2800
|
+
Q(g(i.title || i.name), 1)
|
|
2800
2801
|
]),
|
|
2801
2802
|
_: 2
|
|
2802
2803
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -2804,7 +2805,7 @@ const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
|
|
|
2804
2805
|
]),
|
|
2805
2806
|
default: m(() => [
|
|
2806
2807
|
k("div", Za, [
|
|
2807
|
-
|
|
2808
|
+
C(a.$slots, "default", {}, void 0, !0)
|
|
2808
2809
|
])
|
|
2809
2810
|
]),
|
|
2810
2811
|
_: 2
|
|
@@ -2819,7 +2820,7 @@ const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-476a7284"]]), Za = { cla
|
|
|
2819
2820
|
]), 1024));
|
|
2820
2821
|
}
|
|
2821
2822
|
});
|
|
2822
|
-
const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-
|
|
2823
|
+
const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-5443f297"]]), xa = { class: "toast__content" }, el = { class: "toast__time" }, tl = /* @__PURE__ */ U({
|
|
2823
2824
|
__name: "aeria-toast",
|
|
2824
2825
|
props: {
|
|
2825
2826
|
idx: {},
|
|
@@ -2831,20 +2832,20 @@ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { cla
|
|
|
2831
2832
|
const u = ce("meta");
|
|
2832
2833
|
return (e, a) => {
|
|
2833
2834
|
const l = N("clickable");
|
|
2834
|
-
return Z((n(),
|
|
2835
|
+
return Z((n(), s("div", {
|
|
2835
2836
|
class: W({
|
|
2836
2837
|
toast: !0,
|
|
2837
2838
|
"toast--animate": t(u).toasts[0].itr === e.itr
|
|
2838
2839
|
}),
|
|
2839
|
-
onAnimationend: a[0] || (a[0] = (
|
|
2840
|
-
onClick: a[1] || (a[1] = (
|
|
2840
|
+
onAnimationend: a[0] || (a[0] = (i) => t(u).$actions.popToast()),
|
|
2841
|
+
onClick: a[1] || (a[1] = (i) => t(u).$actions.popToast(e.itr))
|
|
2841
2842
|
}, [
|
|
2842
2843
|
F(K, G(
|
|
2843
2844
|
e.icon ? { icon: e.icon } : { icon: "warning-circle" },
|
|
2844
2845
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
2845
2846
|
), null, 16),
|
|
2846
2847
|
k("div", xa, [
|
|
2847
|
-
|
|
2848
|
+
C(e.$slots, "default", {}, void 0, !0),
|
|
2848
2849
|
k("div", el, g(e.formatDateTime(e.date, { hoursOnly: !0 })), 1)
|
|
2849
2850
|
])
|
|
2850
2851
|
], 34)), [
|
|
@@ -2858,8 +2859,8 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["inn
|
|
|
2858
2859
|
setup(c) {
|
|
2859
2860
|
const u = ce("meta"), e = D(() => u.themeOverride || u.theme);
|
|
2860
2861
|
return (a, l) => {
|
|
2861
|
-
const
|
|
2862
|
-
return n(),
|
|
2862
|
+
const i = Ct("router-view");
|
|
2863
|
+
return n(), s("main", {
|
|
2863
2864
|
id: "main",
|
|
2864
2865
|
class: W(`
|
|
2865
2866
|
main
|
|
@@ -2869,13 +2870,13 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["inn
|
|
|
2869
2870
|
}, [
|
|
2870
2871
|
(n(), $(It, null, {
|
|
2871
2872
|
default: m(() => [
|
|
2872
|
-
F(
|
|
2873
|
+
F(i, null, {
|
|
2873
2874
|
default: m(({ Component: r }) => [
|
|
2874
2875
|
(n(), $(ye(r), null, de({ _: 2 }, [
|
|
2875
2876
|
H(Object.keys(a.$slots), (y) => ({
|
|
2876
2877
|
name: y,
|
|
2877
2878
|
fn: m(() => [
|
|
2878
|
-
|
|
2879
|
+
C(a.$slots, y, {}, void 0, !0)
|
|
2879
2880
|
])
|
|
2880
2881
|
}))
|
|
2881
2882
|
]), 1024))
|
|
@@ -2885,7 +2886,7 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["inn
|
|
|
2885
2886
|
]),
|
|
2886
2887
|
_: 3
|
|
2887
2888
|
})),
|
|
2888
|
-
|
|
2889
|
+
C(a.$slots, "default", {}, void 0, !0),
|
|
2889
2890
|
F(Ae, G({
|
|
2890
2891
|
modelValue: t(u).modal.visible,
|
|
2891
2892
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => t(u).modal.visible = r),
|
|
@@ -2896,7 +2897,7 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["inn
|
|
|
2896
2897
|
onOverlayClick: l[1] || (l[1] = (r) => t(u).modal.visible = !1)
|
|
2897
2898
|
}), {
|
|
2898
2899
|
default: m(() => [
|
|
2899
|
-
t(u).modal.body ? (n(),
|
|
2900
|
+
t(u).modal.body ? (n(), s("div", {
|
|
2900
2901
|
key: 0,
|
|
2901
2902
|
style: { "white-space": "pre-wrap" },
|
|
2902
2903
|
innerHTML: t(u).modal.body
|
|
@@ -2912,7 +2913,7 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["inn
|
|
|
2912
2913
|
_: 1
|
|
2913
2914
|
}, 16)) : f("", !0),
|
|
2914
2915
|
k("div", al, [
|
|
2915
|
-
(n(!0),
|
|
2916
|
+
(n(!0), s(J, null, H(t(u).toasts, (r) => (n(), $(nl, G(r, {
|
|
2916
2917
|
key: `toast-${r.itr}`
|
|
2917
2918
|
}), {
|
|
2918
2919
|
default: m(() => [
|
|
@@ -2930,12 +2931,12 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["inn
|
|
|
2930
2931
|
const Tl = /* @__PURE__ */ X(sl, [["__scopeId", "data-v-1166be3d"]]);
|
|
2931
2932
|
const il = {}, rl = { class: "menu" };
|
|
2932
2933
|
function ul(c, u) {
|
|
2933
|
-
return n(),
|
|
2934
|
-
(n(!0),
|
|
2934
|
+
return n(), s("menu", rl, [
|
|
2935
|
+
(n(!0), s(J, null, H(Object.keys(c.$slots), (e) => (n(), s("div", {
|
|
2935
2936
|
key: e,
|
|
2936
2937
|
class: "menu__entry"
|
|
2937
2938
|
}, [
|
|
2938
|
-
|
|
2939
|
+
C(c.$slots, e, {}, void 0, !0)
|
|
2939
2940
|
]))), 128))
|
|
2940
2941
|
]);
|
|
2941
2942
|
}
|
|
@@ -2956,11 +2957,11 @@ const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb
|
|
|
2956
2957
|
dropdown: { type: Boolean }
|
|
2957
2958
|
},
|
|
2958
2959
|
setup(c) {
|
|
2959
|
-
const u = c, e = At(), a =
|
|
2960
|
-
const p = a.currentRoute.value[
|
|
2960
|
+
const u = c, e = At(), a = Le(), l = je(), i = "query" in u && u.query ? "query" : "params", r = D(() => {
|
|
2961
|
+
const p = a.currentRoute.value[i][u.query || u.param];
|
|
2961
2962
|
return p || Object.keys(e)[0];
|
|
2962
2963
|
}), y = (p) => {
|
|
2963
|
-
if (
|
|
2964
|
+
if (i === "query") {
|
|
2964
2965
|
a.push({
|
|
2965
2966
|
query: {
|
|
2966
2967
|
...a.currentRoute.value.query,
|
|
@@ -2977,12 +2978,12 @@ const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb
|
|
|
2977
2978
|
};
|
|
2978
2979
|
return (p, h) => {
|
|
2979
2980
|
const d = N("clickable");
|
|
2980
|
-
return n(),
|
|
2981
|
-
t(l).md && !p.dropdown ? (n(),
|
|
2982
|
-
p.$slots.default ? (n(),
|
|
2983
|
-
|
|
2981
|
+
return n(), s("div", cl, [
|
|
2982
|
+
t(l).md && !p.dropdown ? (n(), s("div", dl, [
|
|
2983
|
+
p.$slots.default ? (n(), s("div", pl, [
|
|
2984
|
+
C(p.$slots, "default", {}, void 0, !0)
|
|
2984
2985
|
])) : f("", !0),
|
|
2985
|
-
(n(!0),
|
|
2986
|
+
(n(!0), s(J, null, H(Object.keys(p.$slots).filter((o) => o !== "default"), (o, v) => (n(), s("div", {
|
|
2986
2987
|
key: o,
|
|
2987
2988
|
class: W({
|
|
2988
2989
|
tabs__tab: !0,
|
|
@@ -2990,9 +2991,9 @@ const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb
|
|
|
2990
2991
|
}),
|
|
2991
2992
|
onClick: (b) => y(o)
|
|
2992
2993
|
}, [
|
|
2993
|
-
|
|
2994
|
+
C(p.$slots, o, {}, void 0, !0)
|
|
2994
2995
|
], 10, _l))), 128))
|
|
2995
|
-
])) : (n(),
|
|
2996
|
+
])) : (n(), s("div", ml, [
|
|
2996
2997
|
F(Ce, null, de({
|
|
2997
2998
|
default: m(() => [
|
|
2998
2999
|
Z((n(), $(K, {
|
|
@@ -3002,7 +3003,7 @@ const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb
|
|
|
3002
3003
|
class: "tabs__context-menu-icon"
|
|
3003
3004
|
}, {
|
|
3004
3005
|
default: m(() => [
|
|
3005
|
-
|
|
3006
|
+
C(p.$slots, r.value, {}, void 0, !0)
|
|
3006
3007
|
]),
|
|
3007
3008
|
_: 3
|
|
3008
3009
|
})), [
|
|
@@ -3017,7 +3018,7 @@ const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb
|
|
|
3017
3018
|
k("div", {
|
|
3018
3019
|
onClick: (v) => y(o)
|
|
3019
3020
|
}, [
|
|
3020
|
-
|
|
3021
|
+
C(p.$slots, o, {}, void 0, !0)
|
|
3021
3022
|
], 8, fl)
|
|
3022
3023
|
])
|
|
3023
3024
|
}))
|
|
@@ -3027,7 +3028,7 @@ const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb
|
|
|
3027
3028
|
};
|
|
3028
3029
|
}
|
|
3029
3030
|
});
|
|
3030
|
-
const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-
|
|
3031
|
+
const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-4dd516ec"]]), hl = U({
|
|
3031
3032
|
props: {
|
|
3032
3033
|
initialValue: String,
|
|
3033
3034
|
promise: Promise
|
|
@@ -3044,15 +3045,15 @@ const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-d12cddeb"]]), hl = U({
|
|
|
3044
3045
|
collection: {}
|
|
3045
3046
|
},
|
|
3046
3047
|
setup(c) {
|
|
3047
|
-
const u = c, a =
|
|
3048
|
+
const u = c, a = Le().currentRoute, l = D(() => {
|
|
3048
3049
|
try {
|
|
3049
|
-
const
|
|
3050
|
-
return ge(
|
|
3050
|
+
const i = u.collection ? u.collection : a.value.meta.collection || a.value.params.collection;
|
|
3051
|
+
return ge(i);
|
|
3051
3052
|
} catch {
|
|
3052
3053
|
return null;
|
|
3053
3054
|
}
|
|
3054
3055
|
});
|
|
3055
|
-
return (
|
|
3056
|
+
return (i, r) => l.value && l.value.description.filtersPresets ? (n(), $(yl, {
|
|
3056
3057
|
key: 0,
|
|
3057
3058
|
dropdown: "",
|
|
3058
3059
|
query: "section"
|
|
@@ -3072,7 +3073,7 @@ const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-d12cddeb"]]), hl = U({
|
|
|
3072
3073
|
Q(g(p.name || t(M)(y, { plural: !0 })), 1)
|
|
3073
3074
|
]),
|
|
3074
3075
|
_: 2
|
|
3075
|
-
}, 1032, ["icon"])) : (n(),
|
|
3076
|
+
}, 1032, ["icon"])) : (n(), s("div", bl, g(p.name || t(M)(y, { plural: !0 })), 1)),
|
|
3076
3077
|
p.badgeFunction ? (n(), $($e, { key: 2 }, {
|
|
3077
3078
|
default: m(() => [
|
|
3078
3079
|
F(t(hl), {
|
|
@@ -3088,7 +3089,7 @@ const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-d12cddeb"]]), hl = U({
|
|
|
3088
3089
|
]), 1024)) : f("", !0);
|
|
3089
3090
|
}
|
|
3090
3091
|
});
|
|
3091
|
-
const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-
|
|
3092
|
+
const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3092
3093
|
__proto__: null,
|
|
3093
3094
|
default: kl
|
|
3094
3095
|
}, Symbol.toStringTag, { value: "Module" })), Rl = /* @__PURE__ */ U({
|
|
@@ -3099,12 +3100,12 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @_
|
|
|
3099
3100
|
emits: ["update:modelValue"],
|
|
3100
3101
|
setup(c) {
|
|
3101
3102
|
const u = c;
|
|
3102
|
-
ve(
|
|
3103
|
+
ve(Ue, null);
|
|
3103
3104
|
const e = Ft(), a = D(() => e(
|
|
3104
3105
|
u.modelValue.password,
|
|
3105
3106
|
u.modelValue.confirmation
|
|
3106
3107
|
));
|
|
3107
|
-
return (l,
|
|
3108
|
+
return (l, i) => (n(), $(He, {
|
|
3108
3109
|
form: {
|
|
3109
3110
|
password: {
|
|
3110
3111
|
type: "string",
|
|
@@ -3118,11 +3119,11 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @_
|
|
|
3118
3119
|
}
|
|
3119
3120
|
},
|
|
3120
3121
|
"model-value": l.modelValue,
|
|
3121
|
-
"onUpdate:modelValue":
|
|
3122
|
+
"onUpdate:modelValue": i[0] || (i[0] = (r) => l.$emit("update:modelValue", r))
|
|
3122
3123
|
}, {
|
|
3123
3124
|
after: m(() => [
|
|
3124
3125
|
k("div", null, g(a.value || "Senhas conferem"), 1),
|
|
3125
|
-
|
|
3126
|
+
C(l.$slots, "default", se(be({ passwordError: a.value })))
|
|
3126
3127
|
]),
|
|
3127
3128
|
_: 3
|
|
3128
3129
|
}, 8, ["model-value"]));
|
|
@@ -3145,7 +3146,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @_
|
|
|
3145
3146
|
{
|
|
3146
3147
|
path: "signin",
|
|
3147
3148
|
name: "/user/signin",
|
|
3148
|
-
component: () => import("./signin-
|
|
3149
|
+
component: () => import("./signin-72b3b697.js"),
|
|
3149
3150
|
meta: {
|
|
3150
3151
|
title: "Autenticação"
|
|
3151
3152
|
}
|
|
@@ -3153,7 +3154,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @_
|
|
|
3153
3154
|
{
|
|
3154
3155
|
path: "signup",
|
|
3155
3156
|
name: "/user/signup",
|
|
3156
|
-
component: () => import("./signup-
|
|
3157
|
+
component: () => import("./signup-0257e6aa.js"),
|
|
3157
3158
|
meta: {
|
|
3158
3159
|
title: "Registro"
|
|
3159
3160
|
}
|
|
@@ -3161,7 +3162,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @_
|
|
|
3161
3162
|
{
|
|
3162
3163
|
path: "activation",
|
|
3163
3164
|
name: "/user/activation",
|
|
3164
|
-
component: () => import("./activation-
|
|
3165
|
+
component: () => import("./activation-b2a947e0.js"),
|
|
3165
3166
|
meta: {
|
|
3166
3167
|
title: "Ativação"
|
|
3167
3168
|
}
|
|
@@ -3183,7 +3184,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @_
|
|
|
3183
3184
|
name: "/dashboard/crud",
|
|
3184
3185
|
props: !0,
|
|
3185
3186
|
components: {
|
|
3186
|
-
default: () => import("./crud-view-
|
|
3187
|
+
default: () => import("./crud-view-232aa79c.js"),
|
|
3187
3188
|
topbar: () => Promise.resolve().then(() => Vl)
|
|
3188
3189
|
},
|
|
3189
3190
|
meta: {
|
|
@@ -3201,7 +3202,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @_
|
|
|
3201
3202
|
children: [
|
|
3202
3203
|
{
|
|
3203
3204
|
path: "profile",
|
|
3204
|
-
component: () => import("./profile-
|
|
3205
|
+
component: () => import("./profile-d956dbdb.js"),
|
|
3205
3206
|
meta: {
|
|
3206
3207
|
title: "Meu perfil",
|
|
3207
3208
|
icon: "user-square"
|
|
@@ -3210,7 +3211,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @_
|
|
|
3210
3211
|
{
|
|
3211
3212
|
path: "changepass",
|
|
3212
3213
|
name: "/dashboard/user/changepass",
|
|
3213
|
-
component: () => import("./password-change-
|
|
3214
|
+
component: () => import("./password-change-f12b3652.js"),
|
|
3214
3215
|
meta: {
|
|
3215
3216
|
title: "Mudar senha",
|
|
3216
3217
|
icon: "lock"
|
|
@@ -3221,7 +3222,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-d0b47fbb"]]), Vl = /* @_
|
|
|
3221
3222
|
])
|
|
3222
3223
|
});
|
|
3223
3224
|
export {
|
|
3224
|
-
|
|
3225
|
+
He as A,
|
|
3225
3226
|
Na as B,
|
|
3226
3227
|
nl as C,
|
|
3227
3228
|
kl as D,
|
|
@@ -3232,7 +3233,7 @@ export {
|
|
|
3232
3233
|
K as b,
|
|
3233
3234
|
Hn as c,
|
|
3234
3235
|
jl as d,
|
|
3235
|
-
|
|
3236
|
+
Fe as e,
|
|
3236
3237
|
Ll as f,
|
|
3237
3238
|
Ae as g,
|
|
3238
3239
|
X as h,
|
|
@@ -3251,7 +3252,7 @@ export {
|
|
|
3251
3252
|
Ie as u,
|
|
3252
3253
|
Gn as v,
|
|
3253
3254
|
Ro as w,
|
|
3254
|
-
|
|
3255
|
+
Ee as x,
|
|
3255
3256
|
Pn as y,
|
|
3256
3257
|
hl as z
|
|
3257
3258
|
};
|