@aeria-ui/ui 0.0.49 → 0.0.51
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-855b78be.js → activation-db795cbd.js} +27 -24
- package/dist/components/aeria-table/aeria-table.vue.d.ts +1 -1
- package/dist/components/dashboard/aeria-toast/aeria-toast.vue.d.ts +1 -1
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +2 -1
- package/dist/{crud-view-644dd64f.js → crud-view-375a71ce.js} +1 -1
- package/dist/{index-01a0d031.js → index-74fbfb08.js} +572 -568
- package/dist/{password-change-b4db19a6.js → password-change-85ee1e80.js} +1 -1
- package/dist/{profile-8baa89be.js → profile-7d32f24a.js} +14 -14
- package/dist/{signin-aebed8c0.js → signin-c3838339.js} +12 -12
- package/dist/{signup-91d24668.js → signup-0ec1bb6e.js} +27 -28
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +3 -3
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as q, ref as
|
|
2
|
-
import { t as F, useI18n as
|
|
3
|
-
import { useScrollObserver as We, useBreakpoints as je, useClipboard as
|
|
1
|
+
import { defineComponent as q, ref as X, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as Q, Fragment as J, renderList as U, withDirectives as N, toDisplayString as b, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as I, inject as ve, computed as H, createElementVNode as g, mergeProps as E, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as kt, Teleport as Ge, onMounted as mt, watch as re, createVNode as z, vModelDynamic as Vt, onBeforeMount as ft, normalizeStyle as $e, withModifiers as ze, pushScopeId as Fe, popScopeId as qe, provide as ye, normalizeProps as ce, guardReactiveProps as Ve, isRef as vt, createSlots as de, vModelCheckbox as Ct, onUnmounted as It, resolveComponent as At, Suspense as Ot, useSlots as wt, h as Bt } from "vue";
|
|
2
|
+
import { t as F, useI18n as St } from "@aeria-ui/i18n";
|
|
3
|
+
import { useScrollObserver as We, useBreakpoints as je, useClipboard as jt, useMask as Tt, PAGINATION_PER_PAGE_DEFAULTS as Lt, API_URL as yt, request as Rt, useDebounce as ht, isDocumentComplete as zt, convertToSearchQuery as Mt, useAction as Ft, convertFromSearchQuery as qt, usePasswordPolicy as Ut } from "@aeria-ui/core";
|
|
4
4
|
import { useStore as ue, getStoreId as Te, useParentStore as ge, STORE_ID as Ue, getGlobalStateManager as $t } from "@aeria-ui/state-management";
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import {
|
|
7
|
-
const
|
|
5
|
+
import { useRouter as Le } from "vue-router";
|
|
6
|
+
import { getReferenceProperty as pe, convertConditionToQuery as Et, deepClone as Se, freshItem as Ht, isRequired as Dt, evaluateCondition as Qe } from "@aeriajs/common";
|
|
7
|
+
const Qt = ["onClick"], Gt = { key: 0 }, Wt = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "accordion__content"
|
|
10
|
-
},
|
|
10
|
+
}, Xt = /* @__PURE__ */ q({
|
|
11
11
|
__name: "aeria-accordion",
|
|
12
12
|
props: {
|
|
13
13
|
enumerate: { type: Boolean },
|
|
@@ -15,7 +15,7 @@ const Gt = ["onClick"], Wt = { key: 0 }, Xt = {
|
|
|
15
15
|
headers: {}
|
|
16
16
|
},
|
|
17
17
|
setup(c) {
|
|
18
|
-
const i =
|
|
18
|
+
const i = X(null), t = (a) => typeof a == "string" ? a : a.title;
|
|
19
19
|
return (a, l) => {
|
|
20
20
|
const r = ne("clickable");
|
|
21
21
|
return o(), s("div", {
|
|
@@ -28,16 +28,16 @@ const Gt = ["onClick"], Wt = { key: 0 }, Xt = {
|
|
|
28
28
|
key: u,
|
|
29
29
|
class: "accordion__slot"
|
|
30
30
|
}, [
|
|
31
|
-
|
|
31
|
+
N((o(), s("div", {
|
|
32
32
|
class: "accordion__header",
|
|
33
33
|
onClick: (d) => i.value === u ? i.value = null : i.value = u
|
|
34
34
|
}, [
|
|
35
|
-
a.enumerate ? (o(), s("span",
|
|
35
|
+
a.enumerate ? (o(), s("span", Gt, b(p + 1) + ". ", 1)) : y("", !0),
|
|
36
36
|
D(" " + b(a.headers[u] ? t(a.headers[u]) : e(F)(u)), 1)
|
|
37
|
-
], 8,
|
|
37
|
+
], 8, Qt)), [
|
|
38
38
|
[r]
|
|
39
39
|
]),
|
|
40
|
-
i.value === u ? (o(), s("div",
|
|
40
|
+
i.value === u ? (o(), s("div", Wt, [
|
|
41
41
|
I(a.$slots, u, {}, void 0, !0)
|
|
42
42
|
])) : y("", !0)
|
|
43
43
|
]))), 128))
|
|
@@ -50,7 +50,7 @@ const G = (c, i) => {
|
|
|
50
50
|
for (const [a, l] of i)
|
|
51
51
|
t[a] = l;
|
|
52
52
|
return t;
|
|
53
|
-
},
|
|
53
|
+
}, jl = /* @__PURE__ */ G(Xt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ q({
|
|
54
54
|
__name: "aeria-badge",
|
|
55
55
|
props: {
|
|
56
56
|
large: { type: Boolean },
|
|
@@ -68,7 +68,7 @@ const G = (c, i) => {
|
|
|
68
68
|
], 2));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
const be = /* @__PURE__ */ G(
|
|
71
|
+
const be = /* @__PURE__ */ G(Yt, [["__scopeId", "data-v-47f92648"]]), Jt = /* @__PURE__ */ q({
|
|
72
72
|
__name: "aeria-bare-button",
|
|
73
73
|
props: {
|
|
74
74
|
disabled: { type: Boolean }
|
|
@@ -89,10 +89,10 @@ const be = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-47f92648"]]), Kt = /* @_
|
|
|
89
89
|
], 2));
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
|
-
const fe = /* @__PURE__ */ G(
|
|
92
|
+
const fe = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-35bc81ae"]]), Kt = ["href"], Zt = {
|
|
93
93
|
key: 0,
|
|
94
94
|
"data-component": "icon-label"
|
|
95
|
-
},
|
|
95
|
+
}, Pt = /* @__PURE__ */ q({
|
|
96
96
|
__name: "aeria-icon",
|
|
97
97
|
props: {
|
|
98
98
|
icon: {},
|
|
@@ -131,19 +131,19 @@ const fe = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["hre
|
|
|
131
131
|
}), [
|
|
132
132
|
g("use", {
|
|
133
133
|
href: `/assets/icons.svg#${a.value}`
|
|
134
|
-
}, null, 8,
|
|
134
|
+
}, null, 8, Kt)
|
|
135
135
|
], 16))
|
|
136
136
|
], 2),
|
|
137
|
-
l.$slots.default ? (o(), s("div",
|
|
137
|
+
l.$slots.default ? (o(), s("div", Zt, [
|
|
138
138
|
I(l.$slots, "default", {}, void 0, !0)
|
|
139
139
|
])) : y("", !0)
|
|
140
140
|
], 2));
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
const
|
|
143
|
+
const P = /* @__PURE__ */ G(Pt, [["__scopeId", "data-v-4b763bd3"]]), Nt = { class: "panel__header-left" }, xt = { key: 1 }, en = {
|
|
144
144
|
key: 2,
|
|
145
145
|
style: { "margin-left": "auto" }
|
|
146
|
-
},
|
|
146
|
+
}, tn = /* @__PURE__ */ q({
|
|
147
147
|
__name: "aeria-panel",
|
|
148
148
|
props: {
|
|
149
149
|
closeHint: { type: Boolean, default: !1 },
|
|
@@ -167,16 +167,16 @@ const Z = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
167
167
|
},
|
|
168
168
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
169
169
|
setup(c, { emit: i }) {
|
|
170
|
-
const t = c, a = i, l = H(() => t.floating || t.float), r =
|
|
170
|
+
const t = c, a = i, l = H(() => t.floating || t.float), r = X(t.collapsed), u = X(null), { reachedEnd: p } = We(u), d = () => {
|
|
171
171
|
a("update:modelValue", !1), a("close");
|
|
172
172
|
}, h = () => {
|
|
173
173
|
a("overlayClick");
|
|
174
174
|
}, _ = (n) => {
|
|
175
175
|
a("update:collapsed", n), r.value = n;
|
|
176
176
|
};
|
|
177
|
-
return (n,
|
|
178
|
-
const k = ne("clickable"), j = ne("loading"),
|
|
179
|
-
return n.modelValue ?
|
|
177
|
+
return (n, m) => {
|
|
178
|
+
const k = ne("clickable"), j = ne("loading"), R = ne("overlay");
|
|
179
|
+
return n.modelValue ? N((o(), s("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: Q(`
|
|
182
182
|
panel
|
|
@@ -198,7 +198,7 @@ const Z = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
198
198
|
${n.transparentMobile && "panel__content--transparent-mobile"}
|
|
199
199
|
${n.outerHeader && "panel__content--outer-header"}
|
|
200
200
|
`),
|
|
201
|
-
onClick:
|
|
201
|
+
onClick: m[1] || (m[1] = (Y) => Y.stopPropagation())
|
|
202
202
|
}, {
|
|
203
203
|
default: v(() => [
|
|
204
204
|
n.$slots.header || n.title ? (o(), s("div", {
|
|
@@ -209,20 +209,20 @@ const Z = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
209
209
|
${n.outerHeader && "panel__header--outer"}
|
|
210
210
|
`)
|
|
211
211
|
}, [
|
|
212
|
-
g("div",
|
|
213
|
-
n.$slots.header ? I(n.$slots, "header", { key: 0 }, void 0, !0) : n.title ? (o(), s("div",
|
|
214
|
-
n.$slots.extra ? (o(), s("div",
|
|
212
|
+
g("div", Nt, [
|
|
213
|
+
n.$slots.header ? I(n.$slots, "header", { key: 0 }, void 0, !0) : n.title ? (o(), s("div", xt, b(n.title), 1)) : y("", !0),
|
|
214
|
+
n.$slots.extra ? (o(), s("div", en, [
|
|
215
215
|
I(n.$slots, "extra", {}, void 0, !0)
|
|
216
216
|
])) : y("", !0)
|
|
217
217
|
]),
|
|
218
|
-
n.collapsible ?
|
|
218
|
+
n.collapsible ? N((o(), $(P, {
|
|
219
219
|
key: 0,
|
|
220
220
|
reactive: "",
|
|
221
221
|
icon: r.value ? "plus" : "minus",
|
|
222
|
-
onClick:
|
|
222
|
+
onClick: m[0] || (m[0] = (Y) => _(!r.value))
|
|
223
223
|
}, null, 8, ["icon"])), [
|
|
224
224
|
[k]
|
|
225
|
-
]) : n.closeHint ?
|
|
225
|
+
]) : n.closeHint ? N((o(), $(P, {
|
|
226
226
|
key: 1,
|
|
227
227
|
reactive: "",
|
|
228
228
|
icon: "x",
|
|
@@ -231,7 +231,7 @@ const Z = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
231
231
|
[k]
|
|
232
232
|
]) : y("", !0)
|
|
233
233
|
], 2)) : y("", !0),
|
|
234
|
-
r.value ? y("", !0) :
|
|
234
|
+
r.value ? y("", !0) : N((o(), s("div", {
|
|
235
235
|
key: 1,
|
|
236
236
|
ref_key: "body",
|
|
237
237
|
ref: u,
|
|
@@ -258,7 +258,7 @@ const Z = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
258
258
|
_: 3
|
|
259
259
|
}, 8, ["class"]))
|
|
260
260
|
], 2)), [
|
|
261
|
-
[
|
|
261
|
+
[R, {
|
|
262
262
|
condition: n.overlay || n.fixedRight || l.value,
|
|
263
263
|
invisible: n.invisibleOverlay,
|
|
264
264
|
click: h,
|
|
@@ -268,10 +268,10 @@ const Z = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
268
268
|
};
|
|
269
269
|
}
|
|
270
270
|
});
|
|
271
|
-
const Ae = /* @__PURE__ */ G(
|
|
271
|
+
const Ae = /* @__PURE__ */ G(tn, [["__scopeId", "data-v-6fdc75a0"]]), nn = { class: "button__content" }, on = {
|
|
272
272
|
key: 1,
|
|
273
273
|
class: "button__content"
|
|
274
|
-
},
|
|
274
|
+
}, an = /* @__PURE__ */ q({
|
|
275
275
|
__name: "aeria-button",
|
|
276
276
|
props: {
|
|
277
277
|
size: {},
|
|
@@ -302,17 +302,17 @@ const Ae = /* @__PURE__ */ G(nn, [["__scopeId", "data-v-6fdc75a0"]]), on = { cla
|
|
|
302
302
|
disabled: l.disabled
|
|
303
303
|
}, {
|
|
304
304
|
default: v(() => [
|
|
305
|
-
l.icon ? (o(), $(
|
|
305
|
+
l.icon ? (o(), $(P, {
|
|
306
306
|
key: 0,
|
|
307
307
|
icon: l.icon
|
|
308
308
|
}, {
|
|
309
309
|
default: v(() => [
|
|
310
|
-
g("div",
|
|
310
|
+
g("div", nn, [
|
|
311
311
|
I(l.$slots, "default", {}, void 0, !0)
|
|
312
312
|
])
|
|
313
313
|
]),
|
|
314
314
|
_: 3
|
|
315
|
-
}, 8, ["icon"])) : (o(), s("div",
|
|
315
|
+
}, 8, ["icon"])) : (o(), s("div", on, [
|
|
316
316
|
I(l.$slots, "default", {}, void 0, !0)
|
|
317
317
|
]))
|
|
318
318
|
]),
|
|
@@ -320,7 +320,7 @@ const Ae = /* @__PURE__ */ G(nn, [["__scopeId", "data-v-6fdc75a0"]]), on = { cla
|
|
|
320
320
|
}, 8, ["class", "disabled"]));
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
|
-
const ie = /* @__PURE__ */ G(
|
|
323
|
+
const ie = /* @__PURE__ */ G(an, [["__scopeId", "data-v-c328251b"]]), ln = { class: "card__picture" }, sn = { class: "card__footer" }, rn = { class: "card__footer-upper" }, un = { class: "card__badge" }, cn = /* @__PURE__ */ q({
|
|
324
324
|
__name: "aeria-card",
|
|
325
325
|
props: {
|
|
326
326
|
inactive: { type: Boolean },
|
|
@@ -334,27 +334,27 @@ const ie = /* @__PURE__ */ G(ln, [["__scopeId", "data-v-c328251b"]]), sn = { cla
|
|
|
334
334
|
${i.horizontal && "card--horizontal"}
|
|
335
335
|
`)
|
|
336
336
|
}, [
|
|
337
|
-
g("div",
|
|
337
|
+
g("div", ln, [
|
|
338
338
|
I(i.$slots, "default", {}, void 0, !0)
|
|
339
339
|
]),
|
|
340
|
-
g("div",
|
|
341
|
-
g("div",
|
|
340
|
+
g("div", sn, [
|
|
341
|
+
g("div", rn, [
|
|
342
342
|
g("div", null, [
|
|
343
343
|
I(i.$slots, "footer", {}, void 0, !0)
|
|
344
344
|
]),
|
|
345
345
|
i.$slots.actions ? I(i.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
|
|
346
346
|
]),
|
|
347
|
-
g("div",
|
|
347
|
+
g("div", un, [
|
|
348
348
|
I(i.$slots, "badge", {}, void 0, !0)
|
|
349
349
|
])
|
|
350
350
|
])
|
|
351
351
|
], 2));
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
|
-
const
|
|
354
|
+
const dn = /* @__PURE__ */ G(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { class: "content__body" }, _n = {
|
|
355
355
|
key: 0,
|
|
356
356
|
class: "content__section"
|
|
357
|
-
},
|
|
357
|
+
}, mn = { class: "content__item" }, fn = /* @__PURE__ */ q({
|
|
358
358
|
__name: "aeria-context-menu",
|
|
359
359
|
props: {
|
|
360
360
|
actions: {},
|
|
@@ -363,14 +363,17 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
363
363
|
},
|
|
364
364
|
emits: ["actionClick"],
|
|
365
365
|
setup(c, { emit: i }) {
|
|
366
|
-
|
|
367
|
-
"
|
|
368
|
-
"
|
|
366
|
+
kt((d) => ({
|
|
367
|
+
"55aa9742": p.value.x,
|
|
368
|
+
"55aa9740": p.value.y
|
|
369
369
|
}));
|
|
370
|
-
const t = i, a =
|
|
370
|
+
const t = i, a = X(null), l = X(!1), r = (d) => d == null ? void 0 : d.filter((h) => {
|
|
371
371
|
if (h.roles) {
|
|
372
372
|
const _ = ue("user");
|
|
373
|
-
return h.roles.some((n) =>
|
|
373
|
+
return h.roles.some((n) => {
|
|
374
|
+
var m;
|
|
375
|
+
return (m = _.currentUser.roles) == null ? void 0 : m.includes(n);
|
|
376
|
+
});
|
|
374
377
|
}
|
|
375
378
|
return !!h.click;
|
|
376
379
|
}), u = (d, h) => {
|
|
@@ -411,15 +414,15 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
411
414
|
key: 1,
|
|
412
415
|
to: "main"
|
|
413
416
|
}, [
|
|
414
|
-
|
|
417
|
+
N((o(), $(Ae, {
|
|
415
418
|
modelValue: l.value,
|
|
416
419
|
"onUpdate:modelValue": h[4] || (h[4] = (n) => l.value = n),
|
|
417
420
|
fill: "",
|
|
418
421
|
class: "content"
|
|
419
422
|
}, {
|
|
420
423
|
default: v(() => [
|
|
421
|
-
g("div",
|
|
422
|
-
d.$slots.header ? (o(), s("div",
|
|
424
|
+
g("div", pn, [
|
|
425
|
+
d.$slots.header ? (o(), s("div", _n, [
|
|
423
426
|
I(d.$slots, "header", {}, void 0, !0)
|
|
424
427
|
])) : y("", !0),
|
|
425
428
|
Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)).length > 0 ? (o(), s("div", {
|
|
@@ -427,8 +430,8 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
427
430
|
class: "content__section",
|
|
428
431
|
onClick: h[1] || (h[1] = (n) => l.value = !1)
|
|
429
432
|
}, [
|
|
430
|
-
(o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)), (n,
|
|
431
|
-
key: `slot-${
|
|
433
|
+
(o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)), (n, m) => (o(), $(fe, {
|
|
434
|
+
key: `slot-${m}`,
|
|
432
435
|
class: "content__item content__item--reactive"
|
|
433
436
|
}, {
|
|
434
437
|
default: v(() => [
|
|
@@ -442,13 +445,13 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
442
445
|
class: "content__section",
|
|
443
446
|
onClick: h[2] || (h[2] = (n) => l.value = !1)
|
|
444
447
|
}, [
|
|
445
|
-
(o(!0), s(J, null, U(r(d.actions), (n,
|
|
446
|
-
key: `action-${
|
|
448
|
+
(o(!0), s(J, null, U(r(d.actions), (n, m) => (o(), $(fe, {
|
|
449
|
+
key: `action-${m}`,
|
|
447
450
|
class: "content__item content__item--reactive",
|
|
448
451
|
onClick: (k) => u(n, d.subject)
|
|
449
452
|
}, {
|
|
450
453
|
default: v(() => [
|
|
451
|
-
n.icon ? (o(), $(
|
|
454
|
+
n.icon ? (o(), $(P, {
|
|
452
455
|
key: 0,
|
|
453
456
|
icon: n.icon
|
|
454
457
|
}, {
|
|
@@ -466,7 +469,7 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
466
469
|
class: "content__section",
|
|
467
470
|
onClick: h[3] || (h[3] = (n) => l.value = !1)
|
|
468
471
|
}, [
|
|
469
|
-
g("div",
|
|
472
|
+
g("div", mn, [
|
|
470
473
|
d.$slots.extra ? I(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
|
|
471
474
|
])
|
|
472
475
|
])) : y("", !0)
|
|
@@ -491,13 +494,13 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
491
494
|
};
|
|
492
495
|
}
|
|
493
496
|
});
|
|
494
|
-
const Ce = /* @__PURE__ */ G(
|
|
497
|
+
const Ce = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-062403e0"]]), vn = { class: "info__content" }, yn = /* @__PURE__ */ q({
|
|
495
498
|
__name: "aeria-info",
|
|
496
499
|
props: {
|
|
497
500
|
where: {}
|
|
498
501
|
},
|
|
499
502
|
setup(c) {
|
|
500
|
-
const i = c, t = je(), a =
|
|
503
|
+
const i = c, t = je(), a = X(!1), l = i.where || "top";
|
|
501
504
|
return (r, u) => e(t).md ? (o(), s("div", {
|
|
502
505
|
key: 0,
|
|
503
506
|
class: "info",
|
|
@@ -510,7 +513,7 @@ const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-5ad42e0b"]]), yn = { cla
|
|
|
510
513
|
info__bubble--${e(l)}
|
|
511
514
|
`)
|
|
512
515
|
}, [
|
|
513
|
-
g("div",
|
|
516
|
+
g("div", vn, [
|
|
514
517
|
I(r.$slots, "text", {}, void 0, !0)
|
|
515
518
|
])
|
|
516
519
|
], 2)) : y("", !0),
|
|
@@ -522,16 +525,16 @@ const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-5ad42e0b"]]), yn = { cla
|
|
|
522
525
|
], 32)) : I(r.$slots, "default", { key: 1 }, void 0, !0);
|
|
523
526
|
}
|
|
524
527
|
});
|
|
525
|
-
const
|
|
528
|
+
const hn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-76defa0b"]]), $n = { class: "input" }, bn = {
|
|
526
529
|
key: 0,
|
|
527
530
|
class: "input__label"
|
|
528
|
-
},
|
|
531
|
+
}, gn = {
|
|
529
532
|
key: 1,
|
|
530
533
|
class: "input__hint"
|
|
531
|
-
},
|
|
534
|
+
}, kn = ["placeholder", "readonly", "value"], Vn = ["value"], Cn = {
|
|
532
535
|
key: 1,
|
|
533
536
|
class: "input__clipboard"
|
|
534
|
-
},
|
|
537
|
+
}, In = /* @__PURE__ */ q({
|
|
535
538
|
__name: "aeria-input",
|
|
536
539
|
props: {
|
|
537
540
|
modelValue: {},
|
|
@@ -544,7 +547,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
544
547
|
emits: ["update:modelValue", "input", "change"],
|
|
545
548
|
setup(c, { emit: i }) {
|
|
546
549
|
var O;
|
|
547
|
-
const t = c, a = t.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", r = ve("searchOnly", !1), u = ve("innerInputLabel", !1), p = !r && a.readOnly, d =
|
|
550
|
+
const t = c, a = t.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", r = ve("searchOnly", !1), u = ve("innerInputLabel", !1), p = !r && a.readOnly, d = jt(), h = i, _ = ve("inputVariant", t.variant) || "normal", n = {
|
|
548
551
|
name: t.propertyName,
|
|
549
552
|
readonly: p,
|
|
550
553
|
type: (() => {
|
|
@@ -568,54 +571,54 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
568
571
|
placeholder: u ? a.description || t.propertyName : a.placeholder
|
|
569
572
|
};
|
|
570
573
|
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (n.min = a.minimum), a.exclusiveMinimum && (n.min = a.exclusiveMinimum + 1), a.maximum && (n.max = a.maximum), a.exclusiveMaximum && (n.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (n.type = !r && a.format === "date-time" ? "datetime-local" : "date"), n.minlength = a.minLength, n.maxlength = a.maxLength)), n.type === "text" && r && (n.type = "search"), mt(() => {
|
|
571
|
-
t.modelValue !== null &&
|
|
574
|
+
t.modelValue !== null && Y(t.modelValue);
|
|
572
575
|
});
|
|
573
|
-
const
|
|
576
|
+
const m = () => {
|
|
574
577
|
try {
|
|
575
578
|
return t.modelValue ? new Date(t.modelValue).toISOString().split("T").shift() : "";
|
|
576
579
|
} catch {
|
|
577
580
|
return "";
|
|
578
581
|
}
|
|
579
|
-
}, k =
|
|
582
|
+
}, k = X([
|
|
580
583
|
"date",
|
|
581
584
|
"date-time"
|
|
582
|
-
].includes(n.type) ?
|
|
583
|
-
var
|
|
584
|
-
return typeof k.value == "string" && ((
|
|
585
|
+
].includes(n.type) ? m() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), j = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ? Tt(t.property.mask) : null, R = (M) => {
|
|
586
|
+
var W;
|
|
587
|
+
return typeof k.value == "string" && ((W = t.property) == null ? void 0 : W.type) === "string" && j !== null ? (k.value = j.enmask(k.value, void 0, {
|
|
585
588
|
defaultValue: !0
|
|
586
589
|
}), t.property.maskedValue === !0 ? k.value : j.unmask(k.value)) : M;
|
|
587
|
-
},
|
|
588
|
-
const
|
|
590
|
+
}, Y = (M) => {
|
|
591
|
+
const W = (() => {
|
|
589
592
|
if (!M || typeof M != "string")
|
|
590
593
|
return M;
|
|
591
594
|
if (n.type === "number" || n.type === "integer")
|
|
592
595
|
return Number(M);
|
|
593
596
|
if (!("type" in a && a.type === "string"))
|
|
594
|
-
return
|
|
597
|
+
return R(M);
|
|
595
598
|
switch (a.format) {
|
|
596
599
|
case "date":
|
|
597
600
|
case "date-time":
|
|
598
601
|
return new Date(M);
|
|
599
602
|
default:
|
|
600
|
-
return
|
|
603
|
+
return R(M);
|
|
601
604
|
}
|
|
602
605
|
})();
|
|
603
|
-
h("input",
|
|
604
|
-
},
|
|
605
|
-
const
|
|
606
|
-
k.value =
|
|
606
|
+
h("input", W), h("update:modelValue", W);
|
|
607
|
+
}, K = (M) => {
|
|
608
|
+
const W = M.target.value;
|
|
609
|
+
k.value = W, Y(W);
|
|
607
610
|
};
|
|
608
|
-
return re(() => t.modelValue, (M,
|
|
609
|
-
M instanceof Date || (
|
|
611
|
+
return re(() => t.modelValue, (M, W) => {
|
|
612
|
+
M instanceof Date || (W && !M ? k.value = void 0 : k.value = j ? j.enmask(String(M), void 0, {
|
|
610
613
|
defaultValue: !0
|
|
611
614
|
}) : String(M));
|
|
612
|
-
}), (M,
|
|
615
|
+
}), (M, W) => {
|
|
613
616
|
const B = ne("focus"), ee = ne("clickable");
|
|
614
|
-
return o(), s("label",
|
|
615
|
-
e(u) ? y("", !0) : (o(), s("div",
|
|
617
|
+
return o(), s("label", $n, [
|
|
618
|
+
e(u) ? y("", !0) : (o(), s("div", bn, [
|
|
616
619
|
M.$slots.default ? I(M.$slots, "default", { key: 0 }, void 0, !0) : I(M.$slots, "description", { key: 1 }, void 0, !0)
|
|
617
620
|
])),
|
|
618
|
-
M.$slots.hint ? (o(), s("div",
|
|
621
|
+
M.$slots.hint ? (o(), s("div", gn, [
|
|
619
622
|
I(M.$slots, "hint", {}, void 0, !0)
|
|
620
623
|
])) : y("", !0),
|
|
621
624
|
"element" in e(a) && e(a).element === "textarea" ? (o(), s("div", {
|
|
@@ -625,7 +628,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
625
628
|
input__container--${e(_)}
|
|
626
629
|
`)
|
|
627
630
|
}, [
|
|
628
|
-
|
|
631
|
+
N(g("textarea", {
|
|
629
632
|
placeholder: n.placeholder,
|
|
630
633
|
readonly: n.readonly,
|
|
631
634
|
value: M.modelValue,
|
|
@@ -633,8 +636,8 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
633
636
|
input__textarea
|
|
634
637
|
input__input--${e(_)}
|
|
635
638
|
`),
|
|
636
|
-
onInput:
|
|
637
|
-
}, null, 42,
|
|
639
|
+
onInput: K
|
|
640
|
+
}, null, 42, kn), [
|
|
638
641
|
[B, e(a).focus]
|
|
639
642
|
])
|
|
640
643
|
], 2)) : (o(), s("div", {
|
|
@@ -644,7 +647,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
644
647
|
input__container--${e(_)}
|
|
645
648
|
`)
|
|
646
649
|
}, [
|
|
647
|
-
|
|
650
|
+
N(g("input", E(n, {
|
|
648
651
|
value: k.value,
|
|
649
652
|
"data-component": "input",
|
|
650
653
|
class: `
|
|
@@ -653,12 +656,12 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
653
656
|
${e(l) && "input__input--icon"}
|
|
654
657
|
${e(p) && "input__input--readOnly"}
|
|
655
658
|
`,
|
|
656
|
-
onInput:
|
|
657
|
-
onChange:
|
|
658
|
-
}), null, 16,
|
|
659
|
+
onInput: K,
|
|
660
|
+
onChange: W[0] || (W[0] = (V) => h("change", V))
|
|
661
|
+
}), null, 16, Vn), [
|
|
659
662
|
[B, e(a).focus]
|
|
660
663
|
]),
|
|
661
|
-
e(l) ? (o(), $(
|
|
664
|
+
e(l) ? (o(), $(P, {
|
|
662
665
|
key: 0,
|
|
663
666
|
icon: e(a).icon || "magnifying-glass",
|
|
664
667
|
class: Q(`
|
|
@@ -666,15 +669,15 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
666
669
|
input__icon--${e(_)}
|
|
667
670
|
`)
|
|
668
671
|
}, null, 8, ["icon", "class"])) : y("", !0),
|
|
669
|
-
e(p) ? (o(), s("div",
|
|
670
|
-
z(
|
|
672
|
+
e(p) ? (o(), s("div", Cn, [
|
|
673
|
+
z(hn, null, {
|
|
671
674
|
text: v(() => [
|
|
672
675
|
D("Copiar")
|
|
673
676
|
]),
|
|
674
677
|
default: v(() => [
|
|
675
|
-
|
|
678
|
+
N(z(P, {
|
|
676
679
|
icon: "clipboard",
|
|
677
|
-
onClick:
|
|
680
|
+
onClick: W[1] || (W[1] = (V) => e(d)(String(M.modelValue || "")))
|
|
678
681
|
}, null, 512), [
|
|
679
682
|
[ee]
|
|
680
683
|
])
|
|
@@ -687,10 +690,10 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
687
690
|
};
|
|
688
691
|
}
|
|
689
692
|
});
|
|
690
|
-
const Ie = /* @__PURE__ */ G(
|
|
693
|
+
const Ie = /* @__PURE__ */ G(In, [["__scopeId", "data-v-4bdda204"]]), An = ["value"], On = {
|
|
691
694
|
key: 1,
|
|
692
695
|
value: ""
|
|
693
|
-
},
|
|
696
|
+
}, wn = ["value", "data-selected"], Bn = /* @__PURE__ */ q({
|
|
694
697
|
__name: "aeria-select",
|
|
695
698
|
props: {
|
|
696
699
|
modelValue: {},
|
|
@@ -704,14 +707,14 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-4bdda204"]]), On = ["val
|
|
|
704
707
|
},
|
|
705
708
|
emits: ["update:modelValue", "change"],
|
|
706
709
|
setup(c, { emit: i }) {
|
|
707
|
-
const t = c, a = i, l =
|
|
710
|
+
const t = c, a = i, l = X(null), r = t.property || {}, u = (_) => {
|
|
708
711
|
t.booleanRef && (p.value = _), a("update:modelValue", (_ == null ? void 0 : _._id) || _), a("change", (_ == null ? void 0 : _._id) || _);
|
|
709
712
|
}, p = t.booleanRef ? (() => {
|
|
710
|
-
const _ =
|
|
713
|
+
const _ = X(t.modelValue);
|
|
711
714
|
return H({
|
|
712
715
|
get: () => _.value === "true" ? !0 : _.value === "false" ? !1 : null,
|
|
713
|
-
set: (
|
|
714
|
-
_.value =
|
|
716
|
+
set: (m) => {
|
|
717
|
+
_.value = m;
|
|
715
718
|
}
|
|
716
719
|
});
|
|
717
720
|
})() : H({
|
|
@@ -719,11 +722,11 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-4bdda204"]]), On = ["val
|
|
|
719
722
|
set: u
|
|
720
723
|
}), d = (_) => Array.isArray(t.modelValue) ? t.modelValue.includes(_) : t.modelValue === _, h = H(() => t.multiple ? typeof t.multiple == "number" ? t.multiple : 5 : 1);
|
|
721
724
|
return t.multiple && re(() => t.modelValue, (_) => {
|
|
722
|
-
var
|
|
725
|
+
var m;
|
|
723
726
|
if (!l.value)
|
|
724
727
|
return;
|
|
725
728
|
const n = l.value.querySelector('option[data-selected="true"]');
|
|
726
|
-
n && n.removeAttribute("data-selected"), (
|
|
729
|
+
n && n.removeAttribute("data-selected"), (m = l.value.querySelector(`option[value="${_}"]`)) == null || m.setAttribute("data-selected", "true");
|
|
727
730
|
}), (_, n) => (o(), s("div", {
|
|
728
731
|
class: Q({
|
|
729
732
|
select: !0,
|
|
@@ -741,24 +744,24 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-4bdda204"]]), On = ["val
|
|
|
741
744
|
select__select: !0,
|
|
742
745
|
"select__select--multiple": !!t.multiple
|
|
743
746
|
},
|
|
744
|
-
onChange: n[0] || (n[0] = (
|
|
747
|
+
onChange: n[0] || (n[0] = (m) => u(m.target.value))
|
|
745
748
|
}), [
|
|
746
|
-
e(r).icon ? (o(), $(
|
|
749
|
+
e(r).icon ? (o(), $(P, {
|
|
747
750
|
key: 0,
|
|
748
751
|
icon: e(r).icon
|
|
749
752
|
}, null, 8, ["icon"])) : y("", !0),
|
|
750
|
-
t.multiple ? y("", !0) : (o(), s("option",
|
|
751
|
-
(o(!0), s(J, null, U("enum" in e(r) ? e(r).enum : [], (
|
|
752
|
-
key:
|
|
753
|
-
value:
|
|
754
|
-
"data-selected": d(
|
|
755
|
-
}, b(e(r).translate ? e(F)(
|
|
753
|
+
t.multiple ? y("", !0) : (o(), s("option", On, b(e(F)("none")), 1)),
|
|
754
|
+
(o(!0), s(J, null, U("enum" in e(r) ? e(r).enum : [], (m) => (o(), s("option", {
|
|
755
|
+
key: m,
|
|
756
|
+
value: m,
|
|
757
|
+
"data-selected": d(m)
|
|
758
|
+
}, b(e(r).translate ? e(F)(m) : m), 9, wn))), 128)),
|
|
756
759
|
I(_.$slots, "default", {}, void 0, !0)
|
|
757
|
-
], 16,
|
|
760
|
+
], 16, An)
|
|
758
761
|
], 2));
|
|
759
762
|
}
|
|
760
763
|
});
|
|
761
|
-
const Ee = /* @__PURE__ */ G(
|
|
764
|
+
const Ee = /* @__PURE__ */ G(Bn, [["__scopeId", "data-v-7a33443b"]]), Sn = { class: "pagination" }, jn = ["value"], Tn = { class: "pagination__control" }, Ln = { class: "pagination__page-input" }, Rn = /* @__PURE__ */ q({
|
|
762
765
|
__name: "aeria-pagination",
|
|
763
766
|
props: {
|
|
764
767
|
pagination: {}
|
|
@@ -775,7 +778,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
775
778
|
set: (h) => {
|
|
776
779
|
t.pagination.limit = Number(h);
|
|
777
780
|
}
|
|
778
|
-
}), u =
|
|
781
|
+
}), u = X(l.value ? l.value + 1 : 1), p = H(() => Math.ceil(t.pagination.recordsTotal / t.pagination.limit)), d = (h) => {
|
|
779
782
|
l.value = h === "previous" ? l.value - 1 : l.value + 1;
|
|
780
783
|
};
|
|
781
784
|
return re([
|
|
@@ -786,7 +789,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
786
789
|
offset: l.value * r.value,
|
|
787
790
|
limit: r.value
|
|
788
791
|
});
|
|
789
|
-
}), (h, _) => (o(), s("div",
|
|
792
|
+
}), (h, _) => (o(), s("div", Sn, [
|
|
790
793
|
z(Ee, {
|
|
791
794
|
modelValue: r.value,
|
|
792
795
|
"onUpdate:modelValue": _[0] || (_[0] = (n) => r.value = n),
|
|
@@ -800,16 +803,16 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
800
803
|
(o(!0), s(J, null, U(e(Lt), (n) => (o(), s("option", {
|
|
801
804
|
key: `limit-${n}`,
|
|
802
805
|
value: n
|
|
803
|
-
}, b(n), 9,
|
|
806
|
+
}, b(n), 9, jn))), 128))
|
|
804
807
|
]),
|
|
805
808
|
_: 1
|
|
806
809
|
}, 8, ["modelValue"]),
|
|
807
|
-
g("div",
|
|
810
|
+
g("div", Tn, [
|
|
808
811
|
z(fe, {
|
|
809
812
|
onClick: _[1] || (_[1] = (n) => l.value = 0)
|
|
810
813
|
}, {
|
|
811
814
|
default: v(() => [
|
|
812
|
-
z(
|
|
815
|
+
z(P, {
|
|
813
816
|
reactive: "",
|
|
814
817
|
icon: "caret-double-left"
|
|
815
818
|
})
|
|
@@ -821,7 +824,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
821
824
|
onClick: _[2] || (_[2] = (n) => d("previous"))
|
|
822
825
|
}, {
|
|
823
826
|
default: v(() => [
|
|
824
|
-
z(
|
|
827
|
+
z(P, {
|
|
825
828
|
reactive: "",
|
|
826
829
|
icon: "caret-left"
|
|
827
830
|
})
|
|
@@ -848,7 +851,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
848
851
|
onClick: _[5] || (_[5] = (n) => d("next"))
|
|
849
852
|
}, {
|
|
850
853
|
default: v(() => [
|
|
851
|
-
z(
|
|
854
|
+
z(P, {
|
|
852
855
|
reactive: "",
|
|
853
856
|
icon: "caret-right"
|
|
854
857
|
})
|
|
@@ -859,7 +862,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
859
862
|
onClick: _[6] || (_[6] = (n) => l.value = p.value - 1)
|
|
860
863
|
}, {
|
|
861
864
|
default: v(() => [
|
|
862
|
-
z(
|
|
865
|
+
z(P, {
|
|
863
866
|
reactive: "",
|
|
864
867
|
icon: "caret-double-right"
|
|
865
868
|
})
|
|
@@ -870,10 +873,10 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
870
873
|
]));
|
|
871
874
|
}
|
|
872
875
|
});
|
|
873
|
-
const
|
|
876
|
+
const zn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-41aa1ffc"]]), Mn = { class: "checkbox__text" }, Fn = ["innerHTML"], qn = { class: "checkbox__hint" }, Un = ["innerHTML"], En = {
|
|
874
877
|
inheritAttrs: !1
|
|
875
|
-
},
|
|
876
|
-
...
|
|
878
|
+
}, Hn = /* @__PURE__ */ q({
|
|
879
|
+
...En,
|
|
877
880
|
__name: "aeria-checkbox",
|
|
878
881
|
props: {
|
|
879
882
|
modelValue: {},
|
|
@@ -914,33 +917,33 @@ const Mn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-41aa1ffc"]]), Fn = { cla
|
|
|
914
917
|
});
|
|
915
918
|
return (d, h) => {
|
|
916
919
|
const _ = ne("clickable");
|
|
917
|
-
return
|
|
920
|
+
return N((o(), s("label", {
|
|
918
921
|
class: Q(`
|
|
919
922
|
checkbox
|
|
920
923
|
${e(a).readOnly && "checkbox--readOnly"}
|
|
921
924
|
`)
|
|
922
925
|
}, [
|
|
923
|
-
|
|
926
|
+
N(g("input", E({
|
|
924
927
|
"onUpdate:modelValue": h[0] || (h[0] = (n) => p.value = n)
|
|
925
928
|
}, {
|
|
926
929
|
type: e(l),
|
|
927
930
|
readOnly: e(a).readOnly,
|
|
928
931
|
checked: p.value
|
|
929
932
|
}, { class: "checkbox__input" }), null, 16), [
|
|
930
|
-
[
|
|
933
|
+
[Vt, p.value]
|
|
931
934
|
]),
|
|
932
|
-
g("div",
|
|
935
|
+
g("div", Mn, [
|
|
933
936
|
g("div", null, [
|
|
934
937
|
d.$slots.description ? I(d.$slots, "description", { key: 0 }, void 0, !0) : e(u) ? (o(), s("div", {
|
|
935
938
|
key: 1,
|
|
936
939
|
innerHTML: e(a).translate ? e(F)(e(u)) : e(u)
|
|
937
|
-
}, null, 8,
|
|
940
|
+
}, null, 8, Fn)) : I(d.$slots, "default", { key: 2 }, void 0, !0)
|
|
938
941
|
]),
|
|
939
|
-
g("div",
|
|
942
|
+
g("div", qn, [
|
|
940
943
|
d.$slots.hint ? I(d.$slots, "hint", { key: 0 }, void 0, !0) : e(a).hint ? (o(), s("div", {
|
|
941
944
|
key: 1,
|
|
942
945
|
innerHTML: e(a).hint
|
|
943
|
-
}, null, 8,
|
|
946
|
+
}, null, 8, Un)) : y("", !0)
|
|
944
947
|
])
|
|
945
948
|
])
|
|
946
949
|
], 2)), [
|
|
@@ -949,10 +952,10 @@ const Mn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-41aa1ffc"]]), Fn = { cla
|
|
|
949
952
|
};
|
|
950
953
|
}
|
|
951
954
|
});
|
|
952
|
-
const
|
|
955
|
+
const Dn = /* @__PURE__ */ G(Hn, [["__scopeId", "data-v-256eb557"]]), Qn = {
|
|
953
956
|
inheritAttrs: !1
|
|
954
|
-
},
|
|
955
|
-
...
|
|
957
|
+
}, Gn = /* @__PURE__ */ q({
|
|
958
|
+
...Qn,
|
|
956
959
|
__name: "aeria-options",
|
|
957
960
|
props: {
|
|
958
961
|
modelValue: {},
|
|
@@ -983,7 +986,7 @@ const Qn = /* @__PURE__ */ G(Dn, [["__scopeId", "data-v-256eb557"]]), Gn = {
|
|
|
983
986
|
key: `option-${d}`,
|
|
984
987
|
class: "options__checkbox"
|
|
985
988
|
}, [
|
|
986
|
-
z(
|
|
989
|
+
z(Dn, E({ ref_for: !0 }, {
|
|
987
990
|
value: d,
|
|
988
991
|
property: u.property
|
|
989
992
|
}, {
|
|
@@ -994,10 +997,10 @@ const Qn = /* @__PURE__ */ G(Dn, [["__scopeId", "data-v-256eb557"]]), Gn = {
|
|
|
994
997
|
], 4));
|
|
995
998
|
}
|
|
996
999
|
});
|
|
997
|
-
const
|
|
1000
|
+
const Wn = /* @__PURE__ */ G(Gn, [["__scopeId", "data-v-43cda372"]]), Xn = (c) => (Fe("data-v-30f5a5ca"), c = c(), qe(), c), Yn = { class: "switch-wrapper" }, Jn = /* @__PURE__ */ Xn(() => /* @__PURE__ */ g("div", { class: "switch__slider" }, null, -1)), Kn = { key: 1 }, Zn = {
|
|
998
1001
|
inheritAttrs: !1
|
|
999
|
-
},
|
|
1000
|
-
...
|
|
1002
|
+
}, Pn = /* @__PURE__ */ q({
|
|
1003
|
+
...Zn,
|
|
1001
1004
|
__name: "aeria-switch",
|
|
1002
1005
|
props: {
|
|
1003
1006
|
modelValue: {},
|
|
@@ -1013,8 +1016,8 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
1013
1016
|
};
|
|
1014
1017
|
return (u, p) => {
|
|
1015
1018
|
const d = ne("clickable");
|
|
1016
|
-
return o(), s("div",
|
|
1017
|
-
|
|
1019
|
+
return o(), s("div", Yn, [
|
|
1020
|
+
N((o(), s("a", {
|
|
1018
1021
|
class: Q(`
|
|
1019
1022
|
switch
|
|
1020
1023
|
${u.modelValue && "switch--active"}
|
|
@@ -1022,7 +1025,7 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
1022
1025
|
`),
|
|
1023
1026
|
onClick: ze(r, ["stop"])
|
|
1024
1027
|
}, [
|
|
1025
|
-
|
|
1028
|
+
Jn,
|
|
1026
1029
|
g("div", {
|
|
1027
1030
|
class: Q(`
|
|
1028
1031
|
switch__dummy
|
|
@@ -1034,35 +1037,35 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
1034
1037
|
blocked: e(l).readOnly
|
|
1035
1038
|
}]
|
|
1036
1039
|
]),
|
|
1037
|
-
u.$slots.default ? I(u.$slots, "default", { key: 0 }, void 0, !0) : (o(), s("div",
|
|
1040
|
+
u.$slots.default ? I(u.$slots, "default", { key: 0 }, void 0, !0) : (o(), s("div", Kn, b(e(l).description || u.propertyName), 1))
|
|
1038
1041
|
]);
|
|
1039
1042
|
};
|
|
1040
1043
|
}
|
|
1041
1044
|
});
|
|
1042
|
-
const
|
|
1045
|
+
const Nn = /* @__PURE__ */ G(Pn, [["__scopeId", "data-v-30f5a5ca"]]), bt = (c) => (Fe("data-v-153a2e0f"), c = c(), qe(), c), xn = { class: "picture" }, eo = {
|
|
1043
1046
|
key: 0,
|
|
1044
1047
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1045
|
-
},
|
|
1048
|
+
}, to = ["src", "alt"], no = {
|
|
1046
1049
|
key: 0,
|
|
1047
1050
|
class: "picture__meta"
|
|
1048
|
-
},
|
|
1051
|
+
}, oo = ["src"], ao = /* @__PURE__ */ bt(() => /* @__PURE__ */ g("line", {
|
|
1049
1052
|
x1: "0",
|
|
1050
1053
|
y1: "0",
|
|
1051
1054
|
x2: "200",
|
|
1052
1055
|
y2: "200",
|
|
1053
1056
|
stroke: "#000",
|
|
1054
1057
|
"vector-effect": "non-scaling-stroke"
|
|
1055
|
-
}, null, -1)),
|
|
1058
|
+
}, null, -1)), lo = /* @__PURE__ */ bt(() => /* @__PURE__ */ g("line", {
|
|
1056
1059
|
x1: "200",
|
|
1057
1060
|
y1: "0",
|
|
1058
1061
|
x2: "0",
|
|
1059
1062
|
y2: "200",
|
|
1060
1063
|
stroke: "#000",
|
|
1061
1064
|
"vector-effect": "non-scaling-stroke"
|
|
1062
|
-
}, null, -1)),
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
],
|
|
1065
|
+
}, null, -1)), so = [
|
|
1066
|
+
ao,
|
|
1067
|
+
lo
|
|
1068
|
+
], io = { key: 5 }, ro = /* @__PURE__ */ q({
|
|
1066
1069
|
__name: "aeria-picture",
|
|
1067
1070
|
props: {
|
|
1068
1071
|
url: {},
|
|
@@ -1077,16 +1080,16 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
|
|
|
1077
1080
|
meta: {}
|
|
1078
1081
|
},
|
|
1079
1082
|
setup(c) {
|
|
1080
|
-
const i = c, t = H(() => i.fileId ? `${yt}/file/${i.fileId}/picture` : i.url || i.modelValue), a =
|
|
1083
|
+
const i = c, t = H(() => i.fileId ? `${yt}/file/${i.fileId}/picture` : i.url || i.modelValue), a = X(!1);
|
|
1081
1084
|
return (l, r) => {
|
|
1082
1085
|
var p;
|
|
1083
1086
|
const u = ne("overlay");
|
|
1084
|
-
return o(), s("figure",
|
|
1087
|
+
return o(), s("figure", xn, [
|
|
1085
1088
|
t.value ? (o(), $(Ge, {
|
|
1086
1089
|
key: 0,
|
|
1087
1090
|
to: "main"
|
|
1088
1091
|
}, [
|
|
1089
|
-
a.value ?
|
|
1092
|
+
a.value ? N((o(), s("div", eo, [
|
|
1090
1093
|
g("img", {
|
|
1091
1094
|
src: t.value,
|
|
1092
1095
|
alt: l.alt,
|
|
@@ -1095,8 +1098,8 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
|
|
|
1095
1098
|
object-fit: contain;
|
|
1096
1099
|
`,
|
|
1097
1100
|
onClick: r[0] || (r[0] = (d) => a.value = !0)
|
|
1098
|
-
}, null, 8,
|
|
1099
|
-
(p = l.meta) != null && p.owner ? (o(), s("div",
|
|
1101
|
+
}, null, 8, to),
|
|
1102
|
+
(p = l.meta) != null && p.owner ? (o(), s("div", no, " Criado por " + b(l.meta.owner.name) + " em " + b(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : y("", !0)
|
|
1100
1103
|
])), [
|
|
1101
1104
|
[u, {
|
|
1102
1105
|
click: () => {
|
|
@@ -1121,7 +1124,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
|
|
|
1121
1124
|
onClick: r[1] || (r[1] = () => {
|
|
1122
1125
|
l.expandable && (a.value = !0);
|
|
1123
1126
|
})
|
|
1124
|
-
}, null, 14,
|
|
1127
|
+
}, null, 14, oo)) : l.$slots.fallback ? I(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? I(l.$slots, "default", { key: 3 }, void 0, !0) : (o(), s("svg", {
|
|
1125
1128
|
key: 4,
|
|
1126
1129
|
class: Q(["picture__background", `
|
|
1127
1130
|
${l.bordered && "picture__image--bordered"}
|
|
@@ -1134,21 +1137,21 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) =
|
|
|
1134
1137
|
width: ${l.width || "100%"};
|
|
1135
1138
|
height: ${l.height || "100%"};
|
|
1136
1139
|
`)
|
|
1137
|
-
},
|
|
1138
|
-
l.$slots.caption ? (o(), s("figcaption",
|
|
1140
|
+
}, so, 6)),
|
|
1141
|
+
l.$slots.caption ? (o(), s("figcaption", io, [
|
|
1139
1142
|
I(l.$slots, "caption", {}, void 0, !0)
|
|
1140
1143
|
])) : y("", !0)
|
|
1141
1144
|
]);
|
|
1142
1145
|
};
|
|
1143
1146
|
}
|
|
1144
1147
|
});
|
|
1145
|
-
const Me = /* @__PURE__ */ G(
|
|
1148
|
+
const Me = /* @__PURE__ */ G(ro, [["__scopeId", "data-v-153a2e0f"]]), uo = { class: "file" }, co = { key: 0 }, po = ["href"], _o = { class: "file__actions" }, mo = ["accept"], fo = {
|
|
1146
1149
|
key: 0,
|
|
1147
1150
|
class: "file__buttons"
|
|
1148
|
-
},
|
|
1151
|
+
}, vo = {
|
|
1149
1152
|
key: 1,
|
|
1150
1153
|
class: "file__buttons"
|
|
1151
|
-
},
|
|
1154
|
+
}, yo = /* @__PURE__ */ q({
|
|
1152
1155
|
__name: "aeria-file",
|
|
1153
1156
|
props: {
|
|
1154
1157
|
modelValue: {},
|
|
@@ -1161,22 +1164,22 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1161
1164
|
},
|
|
1162
1165
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1163
1166
|
setup(c, { emit: i }) {
|
|
1164
|
-
const t = c, a = i, r = Te() ? ge() : null, u =
|
|
1167
|
+
const t = c, a = i, r = Te() ? ge() : null, u = X(null), p = H(() => {
|
|
1165
1168
|
var k;
|
|
1166
1169
|
return u.value ? URL.createObjectURL(u.value) : (k = t.modelValue) == null ? void 0 : k.link;
|
|
1167
1170
|
}), d = H(() => {
|
|
1168
|
-
var k, j,
|
|
1169
|
-
return /^image\//.test((k = t.modelValue) == null ? void 0 : k.type) && !((j = u.value) != null && j.type) || /^image\//.test((
|
|
1171
|
+
var k, j, R;
|
|
1172
|
+
return /^image\//.test((k = t.modelValue) == null ? void 0 : k.type) && !((j = u.value) != null && j.type) || /^image\//.test((R = u.value) == null ? void 0 : R.type);
|
|
1170
1173
|
}), h = (k) => new Promise((j) => {
|
|
1171
|
-
const
|
|
1172
|
-
|
|
1174
|
+
const R = new FileReader();
|
|
1175
|
+
R.onload = () => j(R.result), R.readAsArrayBuffer(k);
|
|
1173
1176
|
}), _ = () => {
|
|
1174
1177
|
u.value = null;
|
|
1175
1178
|
}, n = async (k) => {
|
|
1176
1179
|
u.value = k.target.files[0];
|
|
1177
|
-
const j = u.value,
|
|
1180
|
+
const j = u.value, R = await h(j);
|
|
1178
1181
|
if (r) {
|
|
1179
|
-
const { data:
|
|
1182
|
+
const { data: { error: Y, result: K } } = await Rt(`${yt}/${r.$id}/upload?name=${j.name}`, R, {
|
|
1180
1183
|
params: {
|
|
1181
1184
|
method: "POST",
|
|
1182
1185
|
headers: {
|
|
@@ -1185,19 +1188,19 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1185
1188
|
}
|
|
1186
1189
|
}
|
|
1187
1190
|
});
|
|
1188
|
-
if (
|
|
1191
|
+
if (Y)
|
|
1189
1192
|
return;
|
|
1190
|
-
a("update:modelValue",
|
|
1193
|
+
a("update:modelValue", K);
|
|
1191
1194
|
} else
|
|
1192
1195
|
a("update:modelValue", j);
|
|
1193
|
-
a("update:content",
|
|
1194
|
-
},
|
|
1196
|
+
a("update:content", R), a("change", R);
|
|
1197
|
+
}, m = async () => {
|
|
1195
1198
|
a("update:modelValue", null);
|
|
1196
1199
|
};
|
|
1197
1200
|
return (k, j) => {
|
|
1198
|
-
var
|
|
1199
|
-
return o(), s("div",
|
|
1200
|
-
u.value || (
|
|
1201
|
+
var R, Y, K, O, M, W;
|
|
1202
|
+
return o(), s("div", uo, [
|
|
1203
|
+
u.value || (R = k.modelValue) != null && R._id ? (o(), s("div", co, [
|
|
1201
1204
|
d.value ? (o(), $(Me, {
|
|
1202
1205
|
key: 0,
|
|
1203
1206
|
modelValue: p.value,
|
|
@@ -1205,22 +1208,22 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1205
1208
|
alt: "Image preview",
|
|
1206
1209
|
class: Q(`
|
|
1207
1210
|
file__image
|
|
1208
|
-
${!e(r) || ((
|
|
1211
|
+
${!e(r) || ((Y = k.modelValue) == null ? void 0 : Y._id) || "file__image--unsent"}
|
|
1209
1212
|
`)
|
|
1210
1213
|
}, null, 8, ["modelValue", "class"])) : y("", !0),
|
|
1211
|
-
(
|
|
1214
|
+
(K = k.modelValue) != null && K._id ? (o(), s("a", {
|
|
1212
1215
|
key: 1,
|
|
1213
1216
|
href: k.modelValue.download_link
|
|
1214
|
-
}, b(k.modelValue.filename), 9,
|
|
1217
|
+
}, b(k.modelValue.filename), 9, po)) : y("", !0)
|
|
1215
1218
|
])) : y("", !0),
|
|
1216
|
-
g("div",
|
|
1219
|
+
g("div", _o, [
|
|
1217
1220
|
g("input", {
|
|
1218
1221
|
ref: "file",
|
|
1219
1222
|
type: "file",
|
|
1220
1223
|
accept: (M = (O = k.property) == null ? void 0 : O.accept) == null ? void 0 : M.join(","),
|
|
1221
1224
|
onChange: n
|
|
1222
|
-
}, null, 40,
|
|
1223
|
-
u.value ? (o(), s("div",
|
|
1225
|
+
}, null, 40, mo),
|
|
1226
|
+
u.value ? (o(), s("div", fo, [
|
|
1224
1227
|
z(ie, {
|
|
1225
1228
|
small: "",
|
|
1226
1229
|
onClick: ze(_, ["prevent"])
|
|
@@ -1230,10 +1233,10 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1230
1233
|
]),
|
|
1231
1234
|
_: 1
|
|
1232
1235
|
})
|
|
1233
|
-
])) : (
|
|
1236
|
+
])) : (W = k.modelValue) != null && W._id ? (o(), s("div", vo, [
|
|
1234
1237
|
z(ie, {
|
|
1235
1238
|
small: "",
|
|
1236
|
-
onClick: ze(
|
|
1239
|
+
onClick: ze(m, ["prevent"])
|
|
1237
1240
|
}, {
|
|
1238
1241
|
default: v(() => [
|
|
1239
1242
|
D(b(e(F)("action.remove", { capitalize: !0 })), 1)
|
|
@@ -1246,22 +1249,22 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1246
1249
|
};
|
|
1247
1250
|
}
|
|
1248
1251
|
});
|
|
1249
|
-
const
|
|
1252
|
+
const ho = /* @__PURE__ */ G(yo, [["__scopeId", "data-v-dfa7bedc"]]), $o = { class: "container" }, bo = {
|
|
1250
1253
|
key: 1,
|
|
1251
1254
|
class: "container__footer"
|
|
1252
|
-
},
|
|
1255
|
+
}, go = /* @__PURE__ */ q({
|
|
1253
1256
|
__name: "aeria-search-container",
|
|
1254
1257
|
props: {
|
|
1255
1258
|
observeScroll: { type: Boolean }
|
|
1256
1259
|
},
|
|
1257
1260
|
emits: ["endReached"],
|
|
1258
1261
|
setup(c, { emit: i }) {
|
|
1259
|
-
const t = c, a = i, l =
|
|
1262
|
+
const t = c, a = i, l = X(null), r = t.observeScroll ? We(l, {
|
|
1260
1263
|
antecipate: 100
|
|
1261
1264
|
}).reachedEnd : null;
|
|
1262
1265
|
return r !== null && re(r, (u) => {
|
|
1263
1266
|
u && a("endReached", u);
|
|
1264
|
-
}), (u, p) => (o(), s("div",
|
|
1267
|
+
}), (u, p) => (o(), s("div", $o, [
|
|
1265
1268
|
u.$slots.default ? (o(), s("div", {
|
|
1266
1269
|
key: 0,
|
|
1267
1270
|
ref_key: "containerEl",
|
|
@@ -1270,13 +1273,13 @@ const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-69b23965"]]), bo = { cla
|
|
|
1270
1273
|
}, [
|
|
1271
1274
|
I(u.$slots, "default", {}, void 0, !0)
|
|
1272
1275
|
], 512)) : y("", !0),
|
|
1273
|
-
u.$slots.footer ? (o(), s("div",
|
|
1276
|
+
u.$slots.footer ? (o(), s("div", bo, [
|
|
1274
1277
|
I(u.$slots, "footer", {}, void 0, !0)
|
|
1275
1278
|
])) : y("", !0)
|
|
1276
1279
|
]));
|
|
1277
1280
|
}
|
|
1278
1281
|
});
|
|
1279
|
-
const it = /* @__PURE__ */ G(
|
|
1282
|
+
const it = /* @__PURE__ */ G(go, [["__scopeId", "data-v-c86e2d2a"]]), ko = { class: "item__values" }, Vo = /* @__PURE__ */ q({
|
|
1280
1283
|
__name: "aeria-search-item",
|
|
1281
1284
|
props: {
|
|
1282
1285
|
item: {},
|
|
@@ -1289,29 +1292,29 @@ const it = /* @__PURE__ */ G(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { cla
|
|
|
1289
1292
|
const t = c, a = i, l = t.property, r = pe(l), u = ge(), p = H(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: _ }) => t.item._id === _) : t.modelValue && t.modelValue._id === t.item._id), d = () => {
|
|
1290
1293
|
if (p.value)
|
|
1291
1294
|
return;
|
|
1292
|
-
const _ = (
|
|
1295
|
+
const _ = (m) => m.filter((k) => !!(k != null && k._id)), n = "items" in l ? _(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
|
|
1293
1296
|
a("update:modelValue", Array.isArray(n) ? [
|
|
1294
1297
|
...n,
|
|
1295
1298
|
t.item
|
|
1296
1299
|
] : t.item), a("change", t.item);
|
|
1297
1300
|
}, h = async (_) => {
|
|
1298
1301
|
if (r.purge && (_ != null && _.purge)) {
|
|
1299
|
-
const { _id:
|
|
1302
|
+
const { _id: m } = t.item;
|
|
1300
1303
|
await u.$actions.remove({
|
|
1301
1304
|
filters: {
|
|
1302
|
-
_id:
|
|
1305
|
+
_id: m
|
|
1303
1306
|
}
|
|
1304
1307
|
});
|
|
1305
1308
|
}
|
|
1306
1309
|
const n = () => {
|
|
1307
|
-
const
|
|
1308
|
-
return
|
|
1310
|
+
const m = [...t.modelValue], k = m.findIndex((j) => j._id === t.item._id);
|
|
1311
|
+
return m.splice(k, 1), m;
|
|
1309
1312
|
};
|
|
1310
1313
|
a("update:modelValue", "items" in l ? n() : null);
|
|
1311
1314
|
};
|
|
1312
1315
|
return (_, n) => {
|
|
1313
|
-
const
|
|
1314
|
-
return
|
|
1316
|
+
const m = ne("clickable");
|
|
1317
|
+
return N((o(), s("div", {
|
|
1315
1318
|
class: Q({
|
|
1316
1319
|
item: !0,
|
|
1317
1320
|
"item--selected": p.value
|
|
@@ -1319,22 +1322,22 @@ const it = /* @__PURE__ */ G(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { cla
|
|
|
1319
1322
|
onClick: n[0] || (n[0] = (k) => p.value ? h() : d())
|
|
1320
1323
|
}, [
|
|
1321
1324
|
I(_.$slots, "default", {}, void 0, !0),
|
|
1322
|
-
g("div",
|
|
1325
|
+
g("div", ko, [
|
|
1323
1326
|
(o(!0), s(J, null, U(_.indexes, (k, j) => (o(), s("div", {
|
|
1324
1327
|
key: `index-${_.item._id}-${j}`,
|
|
1325
1328
|
class: "item__value"
|
|
1326
1329
|
}, b(_.item[k]), 1))), 128))
|
|
1327
1330
|
])
|
|
1328
1331
|
], 2)), [
|
|
1329
|
-
[
|
|
1332
|
+
[m]
|
|
1330
1333
|
]);
|
|
1331
1334
|
};
|
|
1332
1335
|
}
|
|
1333
1336
|
});
|
|
1334
|
-
const De = /* @__PURE__ */ G(
|
|
1337
|
+
const De = /* @__PURE__ */ G(Vo, [["__scopeId", "data-v-fa7fea9f"]]), Co = { class: "search__panel" }, Io = { class: "search__input" }, Ao = ["value"], Oo = { style: { flex: "1" } }, wo = { key: 1 }, Bo = { key: 0 }, So = { key: 1 }, jo = { class: "search__summary" }, To = {
|
|
1335
1338
|
key: 1,
|
|
1336
1339
|
class: "search"
|
|
1337
|
-
}, Lo = { key: 0 },
|
|
1340
|
+
}, Lo = { key: 0 }, Re = 10, Ro = /* @__PURE__ */ q({
|
|
1338
1341
|
__name: "aeria-search",
|
|
1339
1342
|
props: {
|
|
1340
1343
|
modelValue: {},
|
|
@@ -1347,39 +1350,39 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1347
1350
|
},
|
|
1348
1351
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1349
1352
|
setup(c, { emit: i }) {
|
|
1350
|
-
const t = c, a = pe(t.property), l = t.panel !== void 0 ? H(() => t.panel) :
|
|
1353
|
+
const t = c, a = pe(t.property), l = t.panel !== void 0 ? H(() => t.panel) : X(!1), r = i, u = ue(pe(t.property).$ref), p = Te(), d = p ? ge() : null, h = a.indexes;
|
|
1351
1354
|
ye(Ue, pe(t.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
|
|
1352
|
-
const _ =
|
|
1355
|
+
const _ = X(t.modelValue), n = X({
|
|
1353
1356
|
data: [],
|
|
1354
1357
|
pagination: {}
|
|
1355
|
-
}),
|
|
1358
|
+
}), m = H(() => n.value.data), k = H(() => n.value.pagination), j = X(0), R = X(h[0]), Y = X(!1), K = X({}), O = () => {
|
|
1356
1359
|
const A = {};
|
|
1357
1360
|
if (p) {
|
|
1358
1361
|
const w = e(p);
|
|
1359
1362
|
A[w] = d;
|
|
1360
1363
|
}
|
|
1361
|
-
return a.constraints ?
|
|
1364
|
+
return a.constraints ? Et(a.constraints, A) : {};
|
|
1362
1365
|
}, M = () => {
|
|
1363
|
-
|
|
1364
|
-
},
|
|
1365
|
-
if (Object.values(
|
|
1366
|
+
m.value.length < k.value.recordsTotal && (j.value += 1, B());
|
|
1367
|
+
}, W = async () => {
|
|
1368
|
+
if (Object.values(K.value).every((w) => !(String(w).length > 0)))
|
|
1366
1369
|
return u.$actions.custom("getAll", {
|
|
1367
|
-
limit:
|
|
1368
|
-
offset: j.value *
|
|
1370
|
+
limit: Re,
|
|
1371
|
+
offset: j.value * Re,
|
|
1369
1372
|
filters: O()
|
|
1370
1373
|
});
|
|
1371
1374
|
const A = h.filter((w) => {
|
|
1372
|
-
var
|
|
1373
|
-
return ((
|
|
1375
|
+
var Z;
|
|
1376
|
+
return ((Z = K.value[w]) == null ? void 0 : Z.length) > 0;
|
|
1374
1377
|
}).map((w) => ({
|
|
1375
1378
|
[w]: {
|
|
1376
|
-
$regex:
|
|
1379
|
+
$regex: K.value[w].trim().replace("(", "\\(").replace(")", "\\)"),
|
|
1377
1380
|
$options: "i"
|
|
1378
1381
|
}
|
|
1379
1382
|
}));
|
|
1380
1383
|
return u.$actions.custom("getAll", {
|
|
1381
|
-
limit:
|
|
1382
|
-
offset: j.value *
|
|
1384
|
+
limit: Re,
|
|
1385
|
+
offset: j.value * Re,
|
|
1383
1386
|
filters: {
|
|
1384
1387
|
...O(),
|
|
1385
1388
|
...A.length > 0 && {
|
|
@@ -1390,19 +1393,19 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1390
1393
|
}, B = async () => {
|
|
1391
1394
|
if (u.loading.getAll)
|
|
1392
1395
|
return;
|
|
1393
|
-
const A = await
|
|
1396
|
+
const A = await W();
|
|
1394
1397
|
n.value.pagination = A.pagination, j.value === 0 && n.value.data.splice(0), n.value.data.push(...A.data);
|
|
1395
1398
|
}, [ee] = ht({
|
|
1396
1399
|
delay: 800
|
|
1397
1400
|
})(() => {
|
|
1398
|
-
j.value = 0, B(),
|
|
1401
|
+
j.value = 0, B(), Y.value = !1;
|
|
1399
1402
|
}), V = () => {
|
|
1400
|
-
|
|
1401
|
-
},
|
|
1403
|
+
Y.value = !0, ee();
|
|
1404
|
+
}, L = () => {
|
|
1402
1405
|
"effect" in l ? r("update:panel", !0) : l.value = !0, B();
|
|
1403
1406
|
}, te = () => {
|
|
1404
1407
|
j.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
|
|
1405
|
-
}, oe = H(() => !Object.values(
|
|
1408
|
+
}, oe = H(() => !Object.values(K.value).some((A) => !!A));
|
|
1406
1409
|
re(oe, (A, w) => {
|
|
1407
1410
|
A && !w && B();
|
|
1408
1411
|
}), mt(() => {
|
|
@@ -1410,11 +1413,11 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1410
1413
|
});
|
|
1411
1414
|
const le = (A) => {
|
|
1412
1415
|
_.value = A, t.selectOnly || r("update:modelValue", A);
|
|
1413
|
-
},
|
|
1416
|
+
}, f = () => {
|
|
1414
1417
|
te(), r("update:modelValue", _.value);
|
|
1415
1418
|
};
|
|
1416
1419
|
return (A, w) => {
|
|
1417
|
-
const
|
|
1420
|
+
const Z = ne("clickable");
|
|
1418
1421
|
return o(), s("div", null, [
|
|
1419
1422
|
e(l) ? (o(), $(Ge, {
|
|
1420
1423
|
key: 0,
|
|
@@ -1433,7 +1436,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1433
1436
|
footer: v(() => [
|
|
1434
1437
|
z(ie, {
|
|
1435
1438
|
large: "",
|
|
1436
|
-
onClick:
|
|
1439
|
+
onClick: f
|
|
1437
1440
|
}, {
|
|
1438
1441
|
default: v(() => [
|
|
1439
1442
|
D(b(e(F)("action.save", { capitalize: !0 })), 1)
|
|
@@ -1444,42 +1447,42 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1444
1447
|
default: v(() => {
|
|
1445
1448
|
var C, T;
|
|
1446
1449
|
return [
|
|
1447
|
-
g("div",
|
|
1448
|
-
g("div",
|
|
1450
|
+
g("div", Co, [
|
|
1451
|
+
g("div", Io, [
|
|
1449
1452
|
e(h).length > 1 ? (o(), $(Ee, {
|
|
1450
1453
|
key: 0,
|
|
1451
|
-
modelValue:
|
|
1452
|
-
"onUpdate:modelValue": w[0] || (w[0] = (S) =>
|
|
1453
|
-
onChange: w[1] || (w[1] = (S) =>
|
|
1454
|
+
modelValue: R.value,
|
|
1455
|
+
"onUpdate:modelValue": w[0] || (w[0] = (S) => R.value = S),
|
|
1456
|
+
onChange: w[1] || (w[1] = (S) => K.value = {})
|
|
1454
1457
|
}, {
|
|
1455
1458
|
default: v(() => [
|
|
1456
1459
|
(o(!0), s(J, null, U(e(h), (S) => (o(), s("option", {
|
|
1457
1460
|
key: `searchfield-${S}`,
|
|
1458
1461
|
value: S
|
|
1459
|
-
}, b(e(F)(S)), 9,
|
|
1462
|
+
}, b(e(F)(S)), 9, Ao))), 128))
|
|
1460
1463
|
]),
|
|
1461
1464
|
_: 1
|
|
1462
1465
|
}, 8, ["modelValue"])) : y("", !0),
|
|
1463
|
-
g("div",
|
|
1466
|
+
g("div", Oo, [
|
|
1464
1467
|
(o(), $(Ie, {
|
|
1465
|
-
key: `field-${
|
|
1466
|
-
modelValue:
|
|
1467
|
-
"onUpdate:modelValue": w[2] || (w[2] = (S) =>
|
|
1468
|
+
key: `field-${R.value}`,
|
|
1469
|
+
modelValue: K.value[R.value],
|
|
1470
|
+
"onUpdate:modelValue": w[2] || (w[2] = (S) => K.value[R.value] = S),
|
|
1468
1471
|
property: {
|
|
1469
|
-
...e(u).properties[
|
|
1472
|
+
...e(u).properties[R.value],
|
|
1470
1473
|
inputType: "search"
|
|
1471
1474
|
},
|
|
1472
1475
|
onInput: V
|
|
1473
1476
|
}, null, 8, ["modelValue", "property"]))
|
|
1474
1477
|
])
|
|
1475
1478
|
]),
|
|
1476
|
-
|
|
1479
|
+
m.value.length ? (o(), $(it, {
|
|
1477
1480
|
key: 0,
|
|
1478
1481
|
"observe-scroll": "",
|
|
1479
1482
|
onEndReached: M
|
|
1480
1483
|
}, {
|
|
1481
1484
|
default: v(() => [
|
|
1482
|
-
(o(!0), s(J, null, U(
|
|
1485
|
+
(o(!0), s(J, null, U(m.value, (S) => (o(), $(De, E({ ref_for: !0 }, {
|
|
1483
1486
|
item: S,
|
|
1484
1487
|
indexes: e(h),
|
|
1485
1488
|
property: A.property
|
|
@@ -1490,29 +1493,29 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1490
1493
|
}), null, 16, ["modelValue"]))), 128))
|
|
1491
1494
|
]),
|
|
1492
1495
|
_: 1
|
|
1493
|
-
})) : (o(), s("div",
|
|
1494
|
-
|
|
1496
|
+
})) : (o(), s("div", wo, [
|
|
1497
|
+
Y.value ? (o(), s("div", Bo, b(e(F)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(K.value).filter((S) => !!S).length > 0 && !("items" in A.property && ((C = A.modelValue) != null && C.length) || !Array.isArray(A.modelValue) && ((T = A.modelValue) != null && T._id)) ? (o(), s("div", So, b(e(F)("no_results", { capitalize: !0 })), 1)) : y("", !0)
|
|
1495
1498
|
]))
|
|
1496
1499
|
]),
|
|
1497
|
-
g("div",
|
|
1500
|
+
g("div", jo, b(e(F)("showing", { capitalize: !0 })) + " " + b(m.value.length) + " " + b(e(F)("of")) + " " + b(k.value.recordsTotal), 1)
|
|
1498
1501
|
];
|
|
1499
1502
|
}),
|
|
1500
1503
|
_: 1
|
|
1501
1504
|
}, 8, ["title", "model-value"])
|
|
1502
1505
|
])) : y("", !0),
|
|
1503
|
-
A.selectOnly ? y("", !0) : (o(), s("div",
|
|
1506
|
+
A.selectOnly ? y("", !0) : (o(), s("div", To, [
|
|
1504
1507
|
z(it, null, {
|
|
1505
1508
|
footer: v(() => [
|
|
1506
|
-
|
|
1509
|
+
N((o(), $(P, {
|
|
1507
1510
|
icon: "plus",
|
|
1508
|
-
onClick:
|
|
1511
|
+
onClick: L
|
|
1509
1512
|
}, {
|
|
1510
1513
|
default: v(() => [
|
|
1511
1514
|
D(b(e(F)("action.select", { capitalize: !0 })), 1)
|
|
1512
1515
|
]),
|
|
1513
1516
|
_: 1
|
|
1514
1517
|
})), [
|
|
1515
|
-
[
|
|
1518
|
+
[Z]
|
|
1516
1519
|
])
|
|
1517
1520
|
]),
|
|
1518
1521
|
default: v(() => {
|
|
@@ -1543,13 +1546,13 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1543
1546
|
};
|
|
1544
1547
|
}
|
|
1545
1548
|
});
|
|
1546
|
-
const
|
|
1549
|
+
const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i) => {
|
|
1547
1550
|
const t = "items" in c ? c.items : c, a = {
|
|
1548
|
-
options:
|
|
1551
|
+
options: Wn,
|
|
1549
1552
|
select: Ee,
|
|
1550
|
-
switch:
|
|
1551
|
-
file:
|
|
1552
|
-
search:
|
|
1553
|
+
switch: Nn,
|
|
1554
|
+
file: ho,
|
|
1555
|
+
search: zo,
|
|
1553
1556
|
input: Ie,
|
|
1554
1557
|
form: He
|
|
1555
1558
|
}, l = (() => {
|
|
@@ -1569,32 +1572,32 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
|
|
|
1569
1572
|
return r ? r.inline ? "form" : r.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in t ? "select" : "input";
|
|
1570
1573
|
})();
|
|
1571
1574
|
return i[l] ? i[l] : a[l];
|
|
1572
|
-
},
|
|
1575
|
+
}, Mo = (c, i, t) => {
|
|
1573
1576
|
c ?? (c = []);
|
|
1574
1577
|
const a = "items" in i ? i.items : i;
|
|
1575
1578
|
if ("$ref" in a) {
|
|
1576
1579
|
const l = ue(a.$ref, t), r = Se(l.$freshItem);
|
|
1577
1580
|
return c.unshift(r);
|
|
1578
1581
|
}
|
|
1579
|
-
return "properties" in a ? c.unshift(
|
|
1580
|
-
},
|
|
1582
|
+
return "properties" in a ? c.unshift(Ht(a)) : "type" in a && a.type === "boolean" ? c.unshift({}) : c.unshift(null);
|
|
1583
|
+
}, Fo = (c, i) => {
|
|
1581
1584
|
c.splice(i, 1);
|
|
1582
|
-
},
|
|
1585
|
+
}, qo = {
|
|
1583
1586
|
key: 0,
|
|
1584
1587
|
class: "form__header"
|
|
1585
|
-
},
|
|
1588
|
+
}, Uo = {
|
|
1586
1589
|
key: 1,
|
|
1587
1590
|
class: "form__fieldset"
|
|
1588
|
-
},
|
|
1591
|
+
}, Eo = { key: 0 }, Ho = ["innerHTML"], Do = ["onInput"], Qo = { key: 4 }, Go = { value: "true" }, Wo = { value: "false" }, Xo = {
|
|
1589
1592
|
key: 5,
|
|
1590
1593
|
style: { display: "grid", "row-gap": ".4rem" }
|
|
1591
|
-
},
|
|
1594
|
+
}, Yo = { style: { "flex-grow": "1" } }, Jo = {
|
|
1592
1595
|
key: 7,
|
|
1593
1596
|
class: "form__validation-error"
|
|
1594
|
-
},
|
|
1597
|
+
}, Ko = { key: 0 }, Zo = { key: 1 }, Po = {
|
|
1595
1598
|
key: 3,
|
|
1596
1599
|
class: "form__footer"
|
|
1597
|
-
},
|
|
1600
|
+
}, No = /* @__PURE__ */ q({
|
|
1598
1601
|
__name: "aeria-form",
|
|
1599
1602
|
props: {
|
|
1600
1603
|
modelValue: {},
|
|
@@ -1607,6 +1610,7 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
|
|
|
1607
1610
|
isReadOnly: { type: Boolean, default: !1 },
|
|
1608
1611
|
searchOnly: { type: Boolean },
|
|
1609
1612
|
layout: {},
|
|
1613
|
+
formLayout: {},
|
|
1610
1614
|
required: {},
|
|
1611
1615
|
formComponents: {},
|
|
1612
1616
|
propertyComponents: {},
|
|
@@ -1626,156 +1630,156 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
|
|
|
1626
1630
|
const r = a.property && pe(a.property), u = r ? r.$ref : a.collection || Te(), p = u ? ue(e(u)) : null;
|
|
1627
1631
|
!u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1628
1632
|
collection prop, some features may not work as intended`);
|
|
1629
|
-
const d =
|
|
1630
|
-
const A = ve(
|
|
1631
|
-
return a[
|
|
1632
|
-
},
|
|
1633
|
+
const d = X(!1), h = H(() => !a.form && a.property ? "properties" in a.property ? a.property.properties : p == null ? void 0 : p.properties : a.form), _ = H(() => a.layout || (p == null ? void 0 : p.description.formLayout)), n = (f) => {
|
|
1634
|
+
const A = ve(f, a[f]);
|
|
1635
|
+
return a[f] && ye(f, a[f]), A;
|
|
1636
|
+
}, m = H(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors), k = n("formComponents") || {}, j = n("propertyComponents") || {}, R = n("omitFormHeader"), Y = n("omitInputLabels"), K = n("innerInputLabel");
|
|
1633
1637
|
u && ye(Ue, u), ye("searchOnly", a.searchOnly);
|
|
1634
|
-
const O = (
|
|
1638
|
+
const O = (f) => h.value ? Object.entries(h.value).filter(([A, w]) => !w.noForm && f([
|
|
1635
1639
|
A,
|
|
1636
1640
|
w
|
|
1637
|
-
])) : null, M = (
|
|
1641
|
+
])) : null, M = (f) => {
|
|
1638
1642
|
var w;
|
|
1639
1643
|
if (a.searchOnly || !u)
|
|
1640
1644
|
return !0;
|
|
1641
1645
|
const A = a.property && "properties" in a.property ? a.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
|
|
1642
|
-
return !A || A.includes(
|
|
1643
|
-
},
|
|
1646
|
+
return !A || A.includes(f);
|
|
1647
|
+
}, W = O(([f]) => M(f)), B = je(), ee = {}, V = (f, A) => {
|
|
1644
1648
|
var T, S, ae, _e;
|
|
1645
|
-
const w = [],
|
|
1649
|
+
const w = [], Z = ((S = (T = _.value) == null ? void 0 : T.fields) == null ? void 0 : S[f]) || ((_e = (ae = _.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
|
|
1646
1650
|
if (!A)
|
|
1647
1651
|
return;
|
|
1648
|
-
if (
|
|
1652
|
+
if (Z != null && Z.if && !a.searchOnly) {
|
|
1649
1653
|
const me = Qe(
|
|
1650
1654
|
a.modelValue,
|
|
1651
|
-
|
|
1655
|
+
Z.if
|
|
1652
1656
|
);
|
|
1653
|
-
me.satisfied || (ee[
|
|
1657
|
+
me.satisfied || (ee[f] && (p ? a.modelValue[f] = typeof p.$freshItem[f] == "object" ? Se(p.$freshItem[f]) : p.$freshItem[f] : a.modelValue[f] = [
|
|
1654
1658
|
void 0,
|
|
1655
1659
|
null
|
|
1656
|
-
].includes(a.modelValue[
|
|
1660
|
+
].includes(a.modelValue[f]) ? null : a.modelValue[f].constructor()), w.push("display: none;")), ee[f] = me.satisfied;
|
|
1657
1661
|
}
|
|
1658
|
-
const C = B.value.md && (
|
|
1662
|
+
const C = B.value.md && (Z == null ? void 0 : Z.span) || 6;
|
|
1659
1663
|
return w.push(`
|
|
1660
1664
|
--field-span: ${C};
|
|
1661
1665
|
grid-column: span var(--field-span) / span var(--field-span);
|
|
1662
|
-
`),
|
|
1663
|
-
--vertical-spacing: ${
|
|
1666
|
+
`), Z && (Z.verticalSpacing && w.push(`
|
|
1667
|
+
--vertical-spacing: ${Z.verticalSpacing};
|
|
1664
1668
|
padding: var(--vertical-spacing) 0;
|
|
1665
|
-
`),
|
|
1669
|
+
`), Z.separator && w.push(`
|
|
1666
1670
|
border-top: 1px solid var(--theme-border-color);
|
|
1667
1671
|
border-width: 1px 0 1px 0;
|
|
1668
1672
|
padding: 1rem 0;
|
|
1669
1673
|
margin: 1rem 0;
|
|
1670
1674
|
`)), w.join("");
|
|
1671
|
-
},
|
|
1675
|
+
}, L = (f) => f === null || f instanceof Object && !Object.keys(f).length, te = H(() => a.required ? a.required : a.property && "required" in a.property ? a.property.required : p == null ? void 0 : p.description.required), oe = H(() => a.form ? zt(
|
|
1672
1676
|
a.modelValue,
|
|
1673
1677
|
a.form,
|
|
1674
1678
|
te.value,
|
|
1675
1679
|
p == null ? void 0 : p.description
|
|
1676
|
-
) : !0), le = (
|
|
1680
|
+
) : !0), le = (f, A) => {
|
|
1677
1681
|
var w;
|
|
1678
|
-
return (w =
|
|
1682
|
+
return (w = m.value) != null && w[f] && (typeof m.value[f].index != "number" || m.value[f].index === A) ? m.value[f].errors : null;
|
|
1679
1683
|
};
|
|
1680
|
-
return (
|
|
1681
|
-
const w = ne("clickable"),
|
|
1684
|
+
return (f, A) => {
|
|
1685
|
+
const w = ne("clickable"), Z = ne("focus");
|
|
1682
1686
|
return o(), s("form", {
|
|
1683
1687
|
class: "form",
|
|
1684
|
-
style: $e(`row-gap: ${e(
|
|
1688
|
+
style: $e(`row-gap: ${e(R) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1685
1689
|
}, [
|
|
1686
|
-
|
|
1687
|
-
I(
|
|
1690
|
+
f.$slots.header && !e(R) ? (o(), s("header", qo, [
|
|
1691
|
+
I(f.$slots, "header", {}, void 0, !0)
|
|
1688
1692
|
])) : y("", !0),
|
|
1689
|
-
I(
|
|
1690
|
-
|
|
1691
|
-
(o(!0), s(J, null, U(e(
|
|
1693
|
+
I(f.$slots, "default", {}, void 0, !0),
|
|
1694
|
+
f.isReadOnly ? y("", !0) : (o(), s("fieldset", Uo, [
|
|
1695
|
+
(o(!0), s(J, null, U(e(W), ([C, T]) => {
|
|
1692
1696
|
var S, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
|
|
1693
1697
|
return o(), s("div", {
|
|
1694
1698
|
key: `field-${C}`,
|
|
1695
1699
|
style: $e(V(C, T)),
|
|
1696
1700
|
class: "form__field"
|
|
1697
1701
|
}, [
|
|
1698
|
-
(!("type" in T) || T.type !== "boolean" ||
|
|
1702
|
+
(!("type" in T) || T.type !== "boolean" || f.searchOnly) && !T.noLabel && !e(Y) && !e(K) ? (o(), s("label", Eo, [
|
|
1699
1703
|
g("div", {
|
|
1700
1704
|
class: Q({
|
|
1701
1705
|
"form__field-label": !0,
|
|
1702
1706
|
"form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
|
|
1703
|
-
"form__field-required-hint":
|
|
1707
|
+
"form__field-required-hint": f.highlightRequired && !f.searchOnly && (!te.value || e(Dt)(C, te.value, f.modelValue))
|
|
1704
1708
|
})
|
|
1705
1709
|
}, b(T.description || e(F)(C)), 3),
|
|
1706
1710
|
T.hint ? (o(), s("div", {
|
|
1707
1711
|
key: 0,
|
|
1708
1712
|
innerHTML: T.hint
|
|
1709
|
-
}, null, 8,
|
|
1713
|
+
}, null, 8, Ho)) : y("", !0)
|
|
1710
1714
|
])) : y("", !0),
|
|
1711
|
-
|
|
1715
|
+
f.$slots[`field-${C}`] ? I(f.$slots, `field-${C}`, E({
|
|
1712
1716
|
key: 1,
|
|
1713
1717
|
ref_for: !0
|
|
1714
1718
|
}, {
|
|
1715
1719
|
propery: T,
|
|
1716
1720
|
properyName: C,
|
|
1717
|
-
modelValue:
|
|
1718
|
-
}), void 0, !0) : (_e = (ae = (S =
|
|
1721
|
+
modelValue: f.modelValue
|
|
1722
|
+
}), void 0, !0) : (_e = (ae = (S = f.layout) == null ? void 0 : S.fields) == null ? void 0 : ae[C]) != null && _e.component && e(j)[f.layout.fields[C].component.name] ? (o(), $(he(e(j)[f.layout.fields[C].component.name]), E({
|
|
1719
1723
|
key: 2,
|
|
1720
|
-
modelValue:
|
|
1721
|
-
"onUpdate:modelValue": (x) =>
|
|
1724
|
+
modelValue: f.modelValue[C],
|
|
1725
|
+
"onUpdate:modelValue": (x) => f.modelValue[C] = x,
|
|
1722
1726
|
ref_for: !0
|
|
1723
1727
|
}, {
|
|
1724
1728
|
property: T,
|
|
1725
1729
|
propertyName: C,
|
|
1726
|
-
...
|
|
1730
|
+
...f.layout.fields[C].component.props || {}
|
|
1727
1731
|
}, {
|
|
1728
1732
|
onInput: (x) => l("input", C),
|
|
1729
1733
|
onChange: A[0] || (A[0] = (x) => l("change", x))
|
|
1730
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) &&
|
|
1734
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && f.searchOnly ? (o(), s("div", {
|
|
1731
1735
|
key: 3,
|
|
1732
1736
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1733
1737
|
onInput: (x) => l("input", C),
|
|
1734
1738
|
onChange: A[1] || (A[1] = (x) => l("change", x))
|
|
1735
1739
|
}, [
|
|
1736
1740
|
z(Ie, E({
|
|
1737
|
-
modelValue:
|
|
1738
|
-
"onUpdate:modelValue": (x) =>
|
|
1741
|
+
modelValue: f.modelValue[C].$gte,
|
|
1742
|
+
"onUpdate:modelValue": (x) => f.modelValue[C].$gte = x,
|
|
1739
1743
|
ref_for: !0
|
|
1740
1744
|
}, {
|
|
1741
1745
|
property: T,
|
|
1742
1746
|
propertyName: C
|
|
1743
1747
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1744
1748
|
z(Ie, E({
|
|
1745
|
-
modelValue:
|
|
1746
|
-
"onUpdate:modelValue": (x) =>
|
|
1749
|
+
modelValue: f.modelValue[C].$lte,
|
|
1750
|
+
"onUpdate:modelValue": (x) => f.modelValue[C].$lte = x,
|
|
1747
1751
|
ref_for: !0
|
|
1748
1752
|
}, {
|
|
1749
1753
|
property: T,
|
|
1750
1754
|
propertyName: C
|
|
1751
1755
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1752
|
-
], 40,
|
|
1756
|
+
], 40, Do)) : "type" in T && T.type === "boolean" && f.searchOnly ? (o(), s("div", Qo, [
|
|
1753
1757
|
z(Ee, E({ ref_for: !0 }, {
|
|
1754
1758
|
property: T,
|
|
1755
1759
|
propertyName: C
|
|
1756
1760
|
}, {
|
|
1757
1761
|
"boolean-ref": "",
|
|
1758
|
-
"model-value":
|
|
1762
|
+
"model-value": f.modelValue[C],
|
|
1759
1763
|
onChange: A[2] || (A[2] = (x) => l("change", x)),
|
|
1760
1764
|
"onUpdate:modelValue": (x) => {
|
|
1761
|
-
|
|
1765
|
+
f.modelValue[C] = x == "true" ? !0 : x == "false" ? !1 : null;
|
|
1762
1766
|
}
|
|
1763
1767
|
}), {
|
|
1764
1768
|
default: v(() => [
|
|
1765
|
-
g("option",
|
|
1766
|
-
g("option",
|
|
1769
|
+
g("option", Go, b(e(F)("yes")), 1),
|
|
1770
|
+
g("option", Wo, b(e(F)("no")), 1)
|
|
1767
1771
|
]),
|
|
1768
1772
|
_: 2
|
|
1769
1773
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1770
|
-
])) :
|
|
1774
|
+
])) : f.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (o(), s("div", Xo, [
|
|
1771
1775
|
g("div", null, [
|
|
1772
1776
|
z(ie, {
|
|
1773
1777
|
small: "",
|
|
1774
1778
|
variant: "alt",
|
|
1775
1779
|
icon: "plus",
|
|
1776
|
-
disabled: !("inline" in T.items && T.items.inline) && (((me =
|
|
1780
|
+
disabled: !("inline" in T.items && T.items.inline) && (((me = f.modelValue[C]) == null ? void 0 : me.length) >= T.maxItems || L((Ye = f.modelValue[C]) == null ? void 0 : Ye[((Xe = f.modelValue[C]) == null ? void 0 : Xe.length) - 1])),
|
|
1777
1781
|
onClick: ze((x) => {
|
|
1778
|
-
|
|
1782
|
+
f.modelValue[C] || (f.modelValue[C] = []), e(Mo)(f.modelValue[C], T, e(t));
|
|
1779
1783
|
}, ["prevent"])
|
|
1780
1784
|
}, {
|
|
1781
1785
|
default: v(() => [
|
|
@@ -1784,23 +1788,23 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
|
|
|
1784
1788
|
_: 2
|
|
1785
1789
|
}, 1032, ["disabled", "onClick"])
|
|
1786
1790
|
]),
|
|
1787
|
-
(o(!0), s(J, null, U(
|
|
1791
|
+
(o(!0), s(J, null, U(f.modelValue[C], (x, Oe) => {
|
|
1788
1792
|
var tt, nt, ot, at, lt, st;
|
|
1789
1793
|
return o(), s("div", {
|
|
1790
1794
|
key: `rep-${C}-${Oe}`,
|
|
1791
1795
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
1792
1796
|
}, [
|
|
1793
|
-
g("div",
|
|
1797
|
+
g("div", Yo, [
|
|
1794
1798
|
(o(), $(he(e(rt)(T, e(k))), E({
|
|
1795
|
-
modelValue:
|
|
1796
|
-
"onUpdate:modelValue": (we) =>
|
|
1799
|
+
modelValue: f.modelValue[C][Oe],
|
|
1800
|
+
"onUpdate:modelValue": (we) => f.modelValue[C][Oe] = we,
|
|
1797
1801
|
ref_for: !0
|
|
1798
1802
|
}, {
|
|
1799
1803
|
property: T.items,
|
|
1800
1804
|
propertyName: C,
|
|
1801
1805
|
parentCollection: e(u),
|
|
1802
|
-
parentPropertyName:
|
|
1803
|
-
columns: ((ot = (nt = (tt =
|
|
1806
|
+
parentPropertyName: f.parentPropertyName,
|
|
1807
|
+
columns: ((ot = (nt = (tt = f.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[C]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = f.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
|
|
1804
1808
|
validationErrors: le(C, Oe),
|
|
1805
1809
|
...T.componentProps || {}
|
|
1806
1810
|
}, {
|
|
@@ -1808,44 +1812,44 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
|
|
|
1808
1812
|
onChange: A[3] || (A[3] = (we) => l("change", we))
|
|
1809
1813
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1810
1814
|
]),
|
|
1811
|
-
|
|
1815
|
+
N(z(P, {
|
|
1812
1816
|
reactive: "",
|
|
1813
1817
|
icon: "trash",
|
|
1814
|
-
onClick: (we) => e(
|
|
1818
|
+
onClick: (we) => e(Fo)(f.modelValue[C], Oe)
|
|
1815
1819
|
}, null, 8, ["onClick"]), [
|
|
1816
1820
|
[w]
|
|
1817
1821
|
])
|
|
1818
1822
|
]);
|
|
1819
1823
|
}), 128))
|
|
1820
|
-
])) :
|
|
1824
|
+
])) : f.modelValue ? N((o(), $(he(e(rt)(T, e(k))), E({
|
|
1821
1825
|
key: 6,
|
|
1822
|
-
modelValue:
|
|
1823
|
-
"onUpdate:modelValue": (x) =>
|
|
1826
|
+
modelValue: f.modelValue[C],
|
|
1827
|
+
"onUpdate:modelValue": (x) => f.modelValue[C] = x,
|
|
1824
1828
|
ref_for: !0
|
|
1825
1829
|
}, {
|
|
1826
1830
|
property: T,
|
|
1827
1831
|
propertyName: C,
|
|
1828
|
-
parentPropertyName:
|
|
1832
|
+
parentPropertyName: f.parentPropertyName,
|
|
1829
1833
|
parentCollection: e(u),
|
|
1830
|
-
columns: ((Ze = (Ke = (Je =
|
|
1834
|
+
columns: ((Ze = (Ke = (Je = f.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[C]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = f.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
|
|
1831
1835
|
...T.componentProps || {},
|
|
1832
1836
|
validationErrors: le(C)
|
|
1833
1837
|
}, {
|
|
1834
1838
|
onInput: (x) => l("input", C),
|
|
1835
1839
|
onChange: A[4] || (A[4] = (x) => l("change", x))
|
|
1836
1840
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1837
|
-
[
|
|
1841
|
+
[Z, !d.value && (d.value = !!f.focus)]
|
|
1838
1842
|
]) : y("", !0),
|
|
1839
|
-
(et =
|
|
1840
|
-
|
|
1841
|
-
|
|
1843
|
+
(et = m.value) != null && et[C] ? (o(), s("div", Jo, [
|
|
1844
|
+
m.value[C].type ? (o(), s("span", Ko, b(e(F)(`validation_error.${m.value[C].type}`)), 1)) : y("", !0),
|
|
1845
|
+
m.value[C].detail ? (o(), s("span", Zo, b(e(F)(m.value[C].detail)), 1)) : y("", !0)
|
|
1842
1846
|
])) : y("", !0)
|
|
1843
1847
|
], 4);
|
|
1844
1848
|
}), 128))
|
|
1845
1849
|
])),
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
I(
|
|
1850
|
+
f.$slots.after ? I(f.$slots, "after", { key: 2 }, void 0, !0) : y("", !0),
|
|
1851
|
+
f.$slots.footer ? (o(), s("div", Po, [
|
|
1852
|
+
I(f.$slots, "footer", ce(Ve({
|
|
1849
1853
|
isInsertReady: oe.value
|
|
1850
1854
|
})), void 0, !0)
|
|
1851
1855
|
])) : y("", !0)
|
|
@@ -1853,13 +1857,13 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i
|
|
|
1853
1857
|
};
|
|
1854
1858
|
}
|
|
1855
1859
|
});
|
|
1856
|
-
const He = /* @__PURE__ */ G(
|
|
1860
|
+
const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @__PURE__ */ q({
|
|
1857
1861
|
__name: "aeria-filter-panel",
|
|
1858
1862
|
emits: ["update:modelValue"],
|
|
1859
1863
|
setup(c, { emit: i }) {
|
|
1860
|
-
const t = i, a = ge(), l =
|
|
1864
|
+
const t = i, a = ge(), l = Le(), r = () => {
|
|
1861
1865
|
a.pagination.offset = 0, a.$actions.filter(), t("update:modelValue", !1), l.push({
|
|
1862
|
-
query:
|
|
1866
|
+
query: Mt(a)
|
|
1863
1867
|
});
|
|
1864
1868
|
};
|
|
1865
1869
|
return (u, p) => (o(), $(Ae, {
|
|
@@ -1913,13 +1917,13 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1913
1917
|
_: 1
|
|
1914
1918
|
}, 8, ["title"]));
|
|
1915
1919
|
}
|
|
1916
|
-
}), se =
|
|
1920
|
+
}), se = X(!1), ut = X(!1), ke = X(!1), Be = X((...c) => null), ct = X(), dt = !1, ea = /* @__PURE__ */ q({
|
|
1917
1921
|
__name: "aeria-insert-panel",
|
|
1918
1922
|
setup(c) {
|
|
1919
1923
|
const i = ue("meta"), t = ue(i.view.collection), a = ve("individualActions", []), l = async () => {
|
|
1920
|
-
const p = await t.$actions.deepInsert();
|
|
1921
|
-
|
|
1922
|
-
}, { t: r } =
|
|
1924
|
+
const { error: p } = await t.$actions.deepInsert();
|
|
1925
|
+
p || (se.value = !1);
|
|
1926
|
+
}, { t: r } = St(), u = () => {
|
|
1923
1927
|
i.$actions.ask({
|
|
1924
1928
|
action: () => {
|
|
1925
1929
|
t.$actions.clearItem(), t.validationErrors = {}, se.value = !1;
|
|
@@ -1960,7 +1964,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1960
1964
|
onActionClick: d[2] || (d[2] = (_) => se.value = !1)
|
|
1961
1965
|
}), {
|
|
1962
1966
|
default: v(() => [
|
|
1963
|
-
e(t).item._id ?
|
|
1967
|
+
e(t).item._id ? N((o(), $(P, {
|
|
1964
1968
|
key: 0,
|
|
1965
1969
|
reactive: "",
|
|
1966
1970
|
icon: "dots-three"
|
|
@@ -2018,7 +2022,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2018
2022
|
}, 8, ["modelValue", "loading"]);
|
|
2019
2023
|
};
|
|
2020
2024
|
}
|
|
2021
|
-
}),
|
|
2025
|
+
}), gt = (c, i) => {
|
|
2022
2026
|
if (i) {
|
|
2023
2027
|
if (!c) {
|
|
2024
2028
|
i.filtersPreset = {}, i.preferredTableProperties = [], i.pagination.offset = 0;
|
|
@@ -2026,15 +2030,15 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2026
2030
|
}
|
|
2027
2031
|
i.filtersPreset = c.filters || {}, i.preferredTableProperties = c.table ? Array.from(c.table) : [], i.pagination.offset = 0;
|
|
2028
2032
|
}
|
|
2029
|
-
},
|
|
2033
|
+
}, ta = (c, i = {
|
|
2030
2034
|
persistInQuery: !0
|
|
2031
2035
|
}) => {
|
|
2032
|
-
const a =
|
|
2036
|
+
const a = Le().currentRoute;
|
|
2033
2037
|
return re(() => a.value.query.section, (l) => {
|
|
2034
2038
|
if (c) {
|
|
2035
2039
|
if (c.description.filtersPresets) {
|
|
2036
2040
|
const r = l || Object.keys(c.description.filtersPresets)[0];
|
|
2037
|
-
|
|
2041
|
+
gt(c.description.filtersPresets[r], c);
|
|
2038
2042
|
}
|
|
2039
2043
|
if (i.persistInQuery) {
|
|
2040
2044
|
const r = a.value.query;
|
|
@@ -2047,28 +2051,28 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2047
2051
|
}, {
|
|
2048
2052
|
immediate: !0
|
|
2049
2053
|
});
|
|
2050
|
-
},
|
|
2054
|
+
}, na = (c) => (Fe("data-v-434830ec"), c = c(), qe(), c), oa = {
|
|
2051
2055
|
key: 0,
|
|
2052
2056
|
class: "table aeria-surface"
|
|
2053
|
-
},
|
|
2057
|
+
}, aa = { key: 0 }, la = { key: 1 }, sa = { key: 0 }, ia = ["checked"], ra = {
|
|
2054
2058
|
key: 1,
|
|
2055
2059
|
style: { "text-align": "right" }
|
|
2056
|
-
},
|
|
2060
|
+
}, ua = { key: 2 }, ca = { key: 3 }, da = ["onClick"], pa = { key: 0 }, _a = ["value"], ma = { class: "table__cell-mobile-label" }, fa = {
|
|
2057
2061
|
key: 0,
|
|
2058
2062
|
class: "table__cell-container"
|
|
2059
|
-
},
|
|
2063
|
+
}, va = {
|
|
2060
2064
|
key: 1,
|
|
2061
2065
|
class: "table__cell-container"
|
|
2062
|
-
},
|
|
2066
|
+
}, ya = { class: "table__cell-grid" }, ha = { key: 0 }, $a = { key: 1 }, ba = ["href"], ga = { key: 3 }, ka = { key: 2 }, Va = { key: 0 }, Ca = { key: 1 }, Ia = { key: 2 }, Aa = {
|
|
2063
2067
|
key: 1,
|
|
2064
2068
|
class: "no-print"
|
|
2065
|
-
},
|
|
2069
|
+
}, Oa = { class: "table__cell-actions" }, wa = {
|
|
2066
2070
|
key: 2,
|
|
2067
2071
|
class: "no-print table__mobile-actions"
|
|
2068
|
-
},
|
|
2072
|
+
}, Ba = ["id"], Sa = { key: 1 }, ja = /* @__PURE__ */ na(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
|
|
2069
2073
|
/* @__PURE__ */ g("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
|
|
2070
|
-
], -1)),
|
|
2071
|
-
|
|
2074
|
+
], -1)), Ta = [
|
|
2075
|
+
ja
|
|
2072
2076
|
], La = /* @__PURE__ */ q({
|
|
2073
2077
|
__name: "aeria-table",
|
|
2074
2078
|
props: {
|
|
@@ -2083,84 +2087,84 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2083
2087
|
setup(c, { emit: i }) {
|
|
2084
2088
|
const t = c, a = i, l = je(), r = t.collection || Te(), u = r ? ue(typeof r == "string" ? r : r.value) : null, p = H({
|
|
2085
2089
|
get: () => u == null ? void 0 : u.selected,
|
|
2086
|
-
set: (
|
|
2087
|
-
}), d = (
|
|
2090
|
+
set: (m) => u == null ? void 0 : u.$actions.selectManyItems(m, !0)
|
|
2091
|
+
}), d = (m, k) => m != null && m.button ? typeof m.button == "object" ? Qe(k, m.button).satisfied : m.button : !1, h = (m) => {
|
|
2088
2092
|
var k;
|
|
2089
2093
|
return !l.value.xl || !((k = t.layout) != null && k.actions) || !t.actions ? [] : t.actions.filter((j) => {
|
|
2090
|
-
const
|
|
2091
|
-
return d(
|
|
2094
|
+
const R = t.layout.actions[j.action];
|
|
2095
|
+
return d(R, m);
|
|
2092
2096
|
});
|
|
2093
|
-
}, _ = (
|
|
2097
|
+
}, _ = (m) => {
|
|
2094
2098
|
var k;
|
|
2095
2099
|
return t.actions ? !l.value.xl || !((k = t.layout) != null && k.actions) ? t.actions : t.actions.filter((j) => {
|
|
2096
|
-
const
|
|
2097
|
-
return !d(
|
|
2100
|
+
const R = t.layout.actions[j.action];
|
|
2101
|
+
return !d(R, m);
|
|
2098
2102
|
}) : [];
|
|
2099
|
-
}, n = (
|
|
2100
|
-
var
|
|
2101
|
-
const j = [],
|
|
2102
|
-
return
|
|
2103
|
-
|
|
2104
|
-
|
|
2103
|
+
}, n = (m, k) => {
|
|
2104
|
+
var Y, K;
|
|
2105
|
+
const j = [], R = (K = (Y = t.layout) == null ? void 0 : Y.actions) == null ? void 0 : K[k.action];
|
|
2106
|
+
return R != null && R.if && (Qe(
|
|
2107
|
+
m,
|
|
2108
|
+
R.if
|
|
2105
2109
|
).satisfied || j.push("display: none;")), j.join("");
|
|
2106
2110
|
};
|
|
2107
|
-
return (
|
|
2108
|
-
var
|
|
2111
|
+
return (m, k) => {
|
|
2112
|
+
var R, Y, K;
|
|
2109
2113
|
const j = ne("clickable");
|
|
2110
|
-
return
|
|
2111
|
-
|
|
2112
|
-
I(
|
|
2113
|
-
])) : (o(), s("thead",
|
|
2114
|
+
return m.columns && Object.keys(m.columns).length > 0 || m.$slots.thead ? (o(), s("table", oa, [
|
|
2115
|
+
m.$slots.thead ? (o(), s("thead", aa, [
|
|
2116
|
+
I(m.$slots, "thead", {}, void 0, !0)
|
|
2117
|
+
])) : (o(), s("thead", la, [
|
|
2114
2118
|
g("tr", null, [
|
|
2115
|
-
|
|
2119
|
+
m.checkbox && e(u) && e(l).md ? (o(), s("th", sa, [
|
|
2116
2120
|
g("input", {
|
|
2117
2121
|
type: "checkbox",
|
|
2118
2122
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2119
2123
|
onChange: k[0] || (k[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
|
|
2120
|
-
}, null, 40,
|
|
2124
|
+
}, null, 40, ia)
|
|
2121
2125
|
])) : y("", !0),
|
|
2122
|
-
(o(!0), s(J, null, U(Object.entries(
|
|
2123
|
-
key: `header-${
|
|
2126
|
+
(o(!0), s(J, null, U(Object.entries(m.columns), ([O, M], W) => (o(), s("th", {
|
|
2127
|
+
key: `header-${W}`,
|
|
2124
2128
|
class: "table__header"
|
|
2125
2129
|
}, b(M.description || e(F)(O)), 1))), 128)),
|
|
2126
|
-
(
|
|
2130
|
+
(R = m.actions) != null && R.length ? (o(), s("th", ra)) : y("", !0)
|
|
2127
2131
|
])
|
|
2128
2132
|
])),
|
|
2129
|
-
|
|
2130
|
-
I(
|
|
2131
|
-
])) : (o(), s("tbody",
|
|
2132
|
-
(o(!0), s(J, null, U(
|
|
2133
|
-
var M,
|
|
2133
|
+
m.$slots.tbody ? (o(), s("tbody", ua, [
|
|
2134
|
+
I(m.$slots, "tbody", {}, void 0, !0)
|
|
2135
|
+
])) : (o(), s("tbody", ca, [
|
|
2136
|
+
(o(!0), s(J, null, U(m.rows, (O) => {
|
|
2137
|
+
var M, W;
|
|
2134
2138
|
return o(), s("tr", {
|
|
2135
2139
|
key: O._id,
|
|
2136
2140
|
onClick: (B) => a("itemClick", O)
|
|
2137
2141
|
}, [
|
|
2138
|
-
e(u) &&
|
|
2139
|
-
|
|
2142
|
+
e(u) && m.checkbox && e(l).md ? (o(), s("td", pa, [
|
|
2143
|
+
N(g("input", {
|
|
2140
2144
|
"onUpdate:modelValue": k[1] || (k[1] = (B) => p.value = B),
|
|
2141
2145
|
type: "checkbox",
|
|
2142
2146
|
value: O._id
|
|
2143
|
-
}, null, 8,
|
|
2144
|
-
[
|
|
2147
|
+
}, null, 8, _a), [
|
|
2148
|
+
[Ct, p.value]
|
|
2145
2149
|
])
|
|
2146
2150
|
])) : y("", !0),
|
|
2147
|
-
(o(!0), s(J, null, U(Object.entries(
|
|
2148
|
-
var
|
|
2151
|
+
(o(!0), s(J, null, U(Object.entries(m.columns), ([B, ee], V) => {
|
|
2152
|
+
var L, te, oe, le, f, A;
|
|
2149
2153
|
return o(), s("td", {
|
|
2150
2154
|
key: `column-${O._id}-${V}`
|
|
2151
2155
|
}, [
|
|
2152
|
-
g("div",
|
|
2153
|
-
`row-${B}` in
|
|
2154
|
-
I(
|
|
2156
|
+
g("div", ma, b(ee.description || e(F)(B)), 1),
|
|
2157
|
+
`row-${B}` in m.$slots ? (o(), s("div", fa, [
|
|
2158
|
+
I(m.$slots, `row-${B}`, E({ ref_for: !0 }, {
|
|
2155
2159
|
store: e(u),
|
|
2156
2160
|
column: B,
|
|
2157
2161
|
property: ee,
|
|
2158
2162
|
row: O
|
|
2159
2163
|
}), void 0, !0)
|
|
2160
|
-
])) : (o(), s("div",
|
|
2161
|
-
g("div",
|
|
2162
|
-
"type" in ee && ee.type === "boolean" ? (o(), s("div",
|
|
2163
|
-
O[B] ? (o(), $(
|
|
2164
|
+
])) : (o(), s("div", va, [
|
|
2165
|
+
g("div", ya, [
|
|
2166
|
+
"type" in ee && ee.type === "boolean" ? (o(), s("div", ha, [
|
|
2167
|
+
O[B] ? (o(), $(P, {
|
|
2164
2168
|
key: 0,
|
|
2165
2169
|
icon: "check",
|
|
2166
2170
|
"icon-classes": "aeria-blueish"
|
|
@@ -2169,7 +2173,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2169
2173
|
D(b(e(F)("yes")), 1)
|
|
2170
2174
|
]),
|
|
2171
2175
|
_: 1
|
|
2172
|
-
})) : (o(), $(
|
|
2176
|
+
})) : (o(), $(P, {
|
|
2173
2177
|
key: 1,
|
|
2174
2178
|
icon: "x",
|
|
2175
2179
|
"icon-classes": "aeria-redish"
|
|
@@ -2179,7 +2183,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2179
2183
|
]),
|
|
2180
2184
|
_: 1
|
|
2181
2185
|
}))
|
|
2182
|
-
])) : ((
|
|
2186
|
+
])) : ((L = e(pe)(ee)) == null ? void 0 : L.$ref) === "file" ? (o(), s("div", $a, [
|
|
2183
2187
|
/^image/.test((te = O[B][0]) == null ? void 0 : te.type) && "items" in ee ? (o(), $(Me, {
|
|
2184
2188
|
key: 0,
|
|
2185
2189
|
modelValue: O[B][0].link,
|
|
@@ -2200,16 +2204,16 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2200
2204
|
key: 2,
|
|
2201
2205
|
href: O[B].link,
|
|
2202
2206
|
style: { "font-size": "10pt" }
|
|
2203
|
-
}, b(O[B].filename), 9,
|
|
2204
|
-
])) : (o(), s("div",
|
|
2205
|
-
e(u) ? (o(), s("span",
|
|
2207
|
+
}, b(O[B].filename), 9, ba)) : (o(), s("div", ga, " - "))
|
|
2208
|
+
])) : (o(), s("div", ka, [
|
|
2209
|
+
e(u) ? (o(), s("span", Va, b(e(u).$actions.formatValue({
|
|
2206
2210
|
value: O[B],
|
|
2207
2211
|
key: B,
|
|
2208
2212
|
property: ee
|
|
2209
|
-
})), 1)) : (o(), s("span",
|
|
2210
|
-
((A = (
|
|
2211
|
-
(o(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (w,
|
|
2212
|
-
key: `subvalue-${
|
|
2213
|
+
})), 1)) : (o(), s("span", Ca, b(Array.isArray(O[B]) ? O[B].filter((w) => !!w).join(", ") : [void 0, null].includes(O[B]) ? "-" : O[B]), 1)),
|
|
2214
|
+
((A = (f = e(pe)(ee)) == null ? void 0 : f.indexes) == null ? void 0 : A.length) > 1 ? (o(), s("div", Ia, [
|
|
2215
|
+
(o(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (w, Z) => (o(), s("div", {
|
|
2216
|
+
key: `subvalue-${Z}`,
|
|
2213
2217
|
class: "table__cell-subvalue"
|
|
2214
2218
|
}, b(e(u).$actions.formatValue({
|
|
2215
2219
|
value: O[B],
|
|
@@ -2223,8 +2227,8 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2223
2227
|
]))
|
|
2224
2228
|
]);
|
|
2225
2229
|
}), 128)),
|
|
2226
|
-
(M =
|
|
2227
|
-
g("div",
|
|
2230
|
+
(M = m.actions) != null && M.length && e(l).md ? (o(), s("td", Aa, [
|
|
2231
|
+
g("div", Oa, [
|
|
2228
2232
|
(o(!0), s(J, null, U(h(O), (B) => (o(), $(ie, {
|
|
2229
2233
|
key: `action-${B.action}`,
|
|
2230
2234
|
small: "",
|
|
@@ -2246,7 +2250,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2246
2250
|
actions: _(O)
|
|
2247
2251
|
}), {
|
|
2248
2252
|
default: v(() => [
|
|
2249
|
-
|
|
2253
|
+
N(z(P, {
|
|
2250
2254
|
reactive: "",
|
|
2251
2255
|
icon: "dots-three"
|
|
2252
2256
|
}, null, 512), [
|
|
@@ -2256,7 +2260,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2256
2260
|
_: 2
|
|
2257
2261
|
}, 1040)) : y("", !0)
|
|
2258
2262
|
])
|
|
2259
|
-
])) : (
|
|
2263
|
+
])) : (W = m.actions) != null && W.length ? (o(), s("td", wa, [
|
|
2260
2264
|
g("div", {
|
|
2261
2265
|
class: "table__mobile-actions-grid",
|
|
2262
2266
|
style: $e(`grid-template-columns: repeat(${h(O).length + (_(O).length ? 1 : 0)}, 1fr);`)
|
|
@@ -2267,7 +2271,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2267
2271
|
onClick: (ee) => B.click(O)
|
|
2268
2272
|
}, {
|
|
2269
2273
|
default: v(() => [
|
|
2270
|
-
z(
|
|
2274
|
+
z(P, {
|
|
2271
2275
|
icon: B.icon || "gear"
|
|
2272
2276
|
}, {
|
|
2273
2277
|
default: v(() => [
|
|
@@ -2286,7 +2290,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2286
2290
|
actions: _(O)
|
|
2287
2291
|
}), {
|
|
2288
2292
|
default: v(() => [
|
|
2289
|
-
z(
|
|
2293
|
+
z(P, {
|
|
2290
2294
|
icon: "dots-three",
|
|
2291
2295
|
class: "table__mobile-actions-button"
|
|
2292
2296
|
})
|
|
@@ -2297,18 +2301,18 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2297
2301
|
])) : y("", !0),
|
|
2298
2302
|
g("div", {
|
|
2299
2303
|
id: `dropdown-${O._id}`
|
|
2300
|
-
}, null, 8,
|
|
2301
|
-
], 8,
|
|
2304
|
+
}, null, 8, Ba)
|
|
2305
|
+
], 8, da);
|
|
2302
2306
|
}), 128))
|
|
2303
2307
|
])),
|
|
2304
2308
|
g("tfoot", null, [
|
|
2305
|
-
|
|
2309
|
+
m.$slots.tfoot ? I(m.$slots, "tfoot", { key: 0 }, void 0, !0) : m.columns && !((Y = m.rows) != null && Y.length) && !((K = e(u)) != null && K.loading.getAll) ? (o(), s("tr", Sa, Ta)) : y("", !0)
|
|
2306
2310
|
])
|
|
2307
2311
|
])) : y("", !0);
|
|
2308
2312
|
};
|
|
2309
2313
|
}
|
|
2310
2314
|
});
|
|
2311
|
-
const
|
|
2315
|
+
const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), za = /* @__PURE__ */ q({
|
|
2312
2316
|
__name: "aeria-tabular",
|
|
2313
2317
|
props: {
|
|
2314
2318
|
individualActions: {},
|
|
@@ -2329,7 +2333,7 @@ const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
|
|
|
2329
2333
|
});
|
|
2330
2334
|
return (r, u) => (o(), s("div", null, [
|
|
2331
2335
|
r.$slots.inner ? I(r.$slots, "inner", { key: 0 }) : y("", !0),
|
|
2332
|
-
e(t).properties ? (o(), $(
|
|
2336
|
+
e(t).properties ? (o(), $(Ra, E({ key: 1 }, l.value, {
|
|
2333
2337
|
key: e(t).$id
|
|
2334
2338
|
}), de({ _: 2 }, [
|
|
2335
2339
|
U(Object.keys(r.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
|
|
@@ -2341,7 +2345,7 @@ const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
|
|
|
2341
2345
|
]), 1040)) : y("", !0)
|
|
2342
2346
|
]));
|
|
2343
2347
|
}
|
|
2344
|
-
}),
|
|
2348
|
+
}), Ma = /* @__PURE__ */ q({
|
|
2345
2349
|
__name: "aeria-grid",
|
|
2346
2350
|
props: {
|
|
2347
2351
|
list: { type: Boolean }
|
|
@@ -2357,10 +2361,10 @@ const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
|
|
|
2357
2361
|
], 2));
|
|
2358
2362
|
}
|
|
2359
2363
|
});
|
|
2360
|
-
const
|
|
2364
|
+
const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), qa = { key: 0 }, Ua = {
|
|
2361
2365
|
key: 1,
|
|
2362
2366
|
class: "card__information"
|
|
2363
|
-
},
|
|
2367
|
+
}, Ea = /* @__PURE__ */ q({
|
|
2364
2368
|
__name: "aeria-grid",
|
|
2365
2369
|
props: {
|
|
2366
2370
|
individualActions: {},
|
|
@@ -2372,18 +2376,18 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2372
2376
|
const t = c.layoutOptions, a = ge(), l = (r) => Array.isArray(r) ? r[0] : r;
|
|
2373
2377
|
return (r, u) => {
|
|
2374
2378
|
const p = ne("clickable");
|
|
2375
|
-
return o(), $(
|
|
2379
|
+
return o(), $(Fa, {
|
|
2376
2380
|
list: r.componentName === "list"
|
|
2377
2381
|
}, {
|
|
2378
2382
|
default: v(() => [
|
|
2379
|
-
(o(!0), s(J, null, U(e(a).items, (d) => (o(), $(
|
|
2383
|
+
(o(!0), s(J, null, U(e(a).items, (d) => (o(), $(dn, {
|
|
2380
2384
|
key: d,
|
|
2381
2385
|
inactive: !!(e(t).active && !d[e(t).active]),
|
|
2382
2386
|
horizontal: r.componentName === "list"
|
|
2383
2387
|
}, de({
|
|
2384
2388
|
footer: v(() => [
|
|
2385
|
-
e(t).title ? (o(), s("div",
|
|
2386
|
-
e(t).information ? (o(), s("div",
|
|
2389
|
+
e(t).title ? (o(), s("div", qa, b(d[e(t).title]), 1)) : y("", !0),
|
|
2390
|
+
e(t).information ? (o(), s("div", Ua, b(d[e(t).information]), 1)) : y("", !0)
|
|
2387
2391
|
]),
|
|
2388
2392
|
actions: v(() => [
|
|
2389
2393
|
r.individualActions.length > 0 ? (o(), $(Ce, E({
|
|
@@ -2394,7 +2398,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2394
2398
|
actions: r.individualActions
|
|
2395
2399
|
}), {
|
|
2396
2400
|
default: v(() => [
|
|
2397
|
-
|
|
2401
|
+
N(z(P, {
|
|
2398
2402
|
reactive: "",
|
|
2399
2403
|
icon: "dots-three-vertical"
|
|
2400
2404
|
}, null, 512), [
|
|
@@ -2450,20 +2454,20 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2450
2454
|
};
|
|
2451
2455
|
}
|
|
2452
2456
|
});
|
|
2453
|
-
const pt = /* @__PURE__ */ G(
|
|
2454
|
-
tabular:
|
|
2457
|
+
const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) => ({
|
|
2458
|
+
tabular: za,
|
|
2455
2459
|
grid: pt,
|
|
2456
2460
|
list: pt
|
|
2457
|
-
})[c],
|
|
2461
|
+
})[c], Da = (c) => (Fe("data-v-2cbb3e9f"), c = c(), qe(), c), Qa = {
|
|
2458
2462
|
key: 2,
|
|
2459
2463
|
class: "crud__controls"
|
|
2460
|
-
},
|
|
2464
|
+
}, Ga = {
|
|
2461
2465
|
key: 0,
|
|
2462
2466
|
class: "crud__search"
|
|
2463
|
-
},
|
|
2467
|
+
}, Wa = { class: "crud__actions" }, Xa = { class: "crud__context-badge" }, Ya = /* @__PURE__ */ Da(() => /* @__PURE__ */ g("div", null, "Filtros", -1)), Ja = { key: 0 }, Ka = {
|
|
2464
2468
|
key: 3,
|
|
2465
2469
|
class: "crud__pagination"
|
|
2466
|
-
}, _t = 30,
|
|
2470
|
+
}, _t = 30, Za = /* @__PURE__ */ q({
|
|
2467
2471
|
__name: "aeria-crud",
|
|
2468
2472
|
props: {
|
|
2469
2473
|
collection: {},
|
|
@@ -2479,50 +2483,50 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2479
2483
|
},
|
|
2480
2484
|
emits: ["uiEvent"],
|
|
2481
2485
|
setup(c, { emit: i }) {
|
|
2482
|
-
const t = c, a = i, l =
|
|
2486
|
+
const t = c, a = i, l = Le(), r = ht({
|
|
2483
2487
|
delay: 600
|
|
2484
2488
|
}), u = ue("meta"), p = je(), { reachedEnd: d, detach: h } = We(null, {
|
|
2485
2489
|
antecipate: 600
|
|
2486
2490
|
}), _ = !p.value.md || t.scrollPagination;
|
|
2487
2491
|
_ && re(d, (V) => {
|
|
2488
|
-
V && n.pagination.recordsTotal > n.items.length && j.value < _t && (j.value += 1,
|
|
2492
|
+
V && n.pagination.recordsTotal > n.items.length && j.value < _t && (j.value += 1, Y());
|
|
2489
2493
|
});
|
|
2490
2494
|
const n = ue(t.collection);
|
|
2491
|
-
|
|
2495
|
+
ta(n, {
|
|
2492
2496
|
persistInQuery: !t.noQueryPersistence
|
|
2493
2497
|
});
|
|
2494
|
-
const
|
|
2498
|
+
const m = $t(), k = t.action ? e(t.action) : Ft(n, l, m);
|
|
2495
2499
|
Be.value = k[0], ct.value = k[1];
|
|
2496
|
-
const j =
|
|
2500
|
+
const j = X(0), R = X(!1), Y = async (V) => {
|
|
2497
2501
|
n.activeFilters = Object.assign({}, (V == null ? void 0 : V.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
|
|
2498
|
-
const
|
|
2502
|
+
const L = {
|
|
2499
2503
|
filters: n.activeFilters,
|
|
2500
2504
|
limit: n.pagination.limit,
|
|
2501
2505
|
offset: n.pagination.offset,
|
|
2502
2506
|
project: n.preferredTableProperties.length > 0 ? n.preferredTableProperties : n.description.table || Object.keys(n.properties)
|
|
2503
2507
|
};
|
|
2504
|
-
j.value > 0 && (
|
|
2505
|
-
const { data: te, pagination: oe } = await n.$actions.retrieveItems(
|
|
2506
|
-
n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal, j.value === 0 && n.items.splice(0), n.items.push(...te), n.loading.getAll = !1,
|
|
2507
|
-
},
|
|
2508
|
+
j.value > 0 && (L.limit = 15, L.offset = j.value * L.limit), n.description.tableMeta && (L.project = L.project.concat(n.description.tableMeta)), V && Object.assign(L, V), n.loading.getAll = !0;
|
|
2509
|
+
const { data: te, pagination: oe } = await n.$actions.retrieveItems(L);
|
|
2510
|
+
n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal, j.value === 0 && n.items.splice(0), n.items.push(...te), n.loading.getAll = !1, R.value = !0;
|
|
2511
|
+
}, K = async (V) => {
|
|
2508
2512
|
l.push({
|
|
2509
2513
|
query: {
|
|
2510
2514
|
...l.currentRoute.value.query,
|
|
2511
2515
|
offset: V.offset,
|
|
2512
2516
|
limit: V.limit
|
|
2513
2517
|
}
|
|
2514
|
-
}), n.pagination.offset = V.offset, n.pagination.limit = V.limit,
|
|
2518
|
+
}), n.pagination.offset = V.offset, n.pagination.limit = V.limit, Y();
|
|
2515
2519
|
}, O = ve("noResultsComponent", null);
|
|
2516
2520
|
re(() => [
|
|
2517
2521
|
l.currentRoute.value.path,
|
|
2518
2522
|
l.currentRoute.value.query.section
|
|
2519
|
-
], async (V,
|
|
2520
|
-
if (
|
|
2523
|
+
], async (V, L) => {
|
|
2524
|
+
if (L && L[0] === V[0] && L[1] === V[1])
|
|
2521
2525
|
return;
|
|
2522
2526
|
const te = l.currentRoute.value;
|
|
2523
2527
|
if (u.view.title = t.collection, u.view.collection = t.collection, ut.value = !1, !t.noFetch && !te.query._popstate) {
|
|
2524
|
-
const oe =
|
|
2525
|
-
Object.keys(oe).length > 0 && Object.assign(n.filters, oe), await
|
|
2528
|
+
const oe = qt(n, te);
|
|
2529
|
+
Object.keys(oe).length > 0 && Object.assign(n.filters, oe), await Y();
|
|
2526
2530
|
}
|
|
2527
2531
|
}, {
|
|
2528
2532
|
immediate: !0,
|
|
@@ -2537,51 +2541,51 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2537
2541
|
$search: `"${V}"`,
|
|
2538
2542
|
$caseSensitive: !1
|
|
2539
2543
|
}
|
|
2540
|
-
}),
|
|
2544
|
+
}), Y({
|
|
2541
2545
|
offset: 0
|
|
2542
|
-
})) : (n.filters = Se(n.freshFilters), j.value = 0,
|
|
2546
|
+
})) : (n.filters = Se(n.freshFilters), j.value = 0, Y())));
|
|
2543
2547
|
re(() => n.textQuery, (V) => {
|
|
2544
2548
|
M(V);
|
|
2545
2549
|
});
|
|
2546
|
-
const
|
|
2550
|
+
const W = (V) => {
|
|
2547
2551
|
V.currentLayout = V.currentLayout === "tabular" ? V.description.layout.name : "tabular";
|
|
2548
2552
|
};
|
|
2549
|
-
|
|
2553
|
+
It(() => {
|
|
2550
2554
|
n.$actions.clearFilters(), n.textQuery = "", h();
|
|
2551
2555
|
}), re(() => ct.value, async (V) => {
|
|
2552
2556
|
var oe;
|
|
2553
|
-
const
|
|
2557
|
+
const L = Se(V);
|
|
2554
2558
|
let te;
|
|
2555
|
-
if (
|
|
2559
|
+
if (L)
|
|
2556
2560
|
if ([
|
|
2557
2561
|
"spawnEdit",
|
|
2558
2562
|
"spawnView",
|
|
2559
2563
|
"duplicate"
|
|
2560
|
-
].includes(
|
|
2564
|
+
].includes(L.name) && (te = n.$actions.get({
|
|
2561
2565
|
filters: {
|
|
2562
|
-
_id:
|
|
2566
|
+
_id: L.params._id
|
|
2563
2567
|
}
|
|
2564
|
-
})),
|
|
2565
|
-
n.$actions.clearItem(), (oe =
|
|
2568
|
+
})), L.name === "spawnAdd")
|
|
2569
|
+
n.$actions.clearItem(), (oe = L.params) != null && oe.item && (n.$actions.setItem(L.params.item), Object.keys(L.params.item).forEach((le) => {
|
|
2566
2570
|
delete n.referenceItem[le];
|
|
2567
2571
|
})), se.value = "add";
|
|
2568
|
-
else if (
|
|
2569
|
-
n.$actions.setItem(
|
|
2570
|
-
else if (
|
|
2572
|
+
else if (L.name === "spawnEdit")
|
|
2573
|
+
n.$actions.setItem(L.params), se.value = "edit";
|
|
2574
|
+
else if (L.name === "spawnView")
|
|
2571
2575
|
ut.value = !0, se.value = "view";
|
|
2572
|
-
else if (
|
|
2576
|
+
else if (L.name === "duplicate") {
|
|
2573
2577
|
await te;
|
|
2574
|
-
const le = Object.entries(n.item).reduce((
|
|
2578
|
+
const le = Object.entries(n.item).reduce((f, [A, w]) => {
|
|
2575
2579
|
if (!(A in n.properties))
|
|
2576
2580
|
return {
|
|
2577
|
-
...
|
|
2581
|
+
...f,
|
|
2578
2582
|
[A]: w
|
|
2579
2583
|
};
|
|
2580
|
-
const
|
|
2581
|
-
if (
|
|
2582
|
-
return
|
|
2584
|
+
const Z = n.properties[A];
|
|
2585
|
+
if (Z.readOnly)
|
|
2586
|
+
return f;
|
|
2583
2587
|
const C = (T) => {
|
|
2584
|
-
const S = pe(
|
|
2588
|
+
const S = pe(Z);
|
|
2585
2589
|
if (!S)
|
|
2586
2590
|
return T;
|
|
2587
2591
|
if (S.$ref === "file")
|
|
@@ -2593,13 +2597,13 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2593
2597
|
return T;
|
|
2594
2598
|
};
|
|
2595
2599
|
return w = Array.isArray(w) ? w.map(C) : C(w), {
|
|
2596
|
-
...
|
|
2600
|
+
...f,
|
|
2597
2601
|
[A]: w
|
|
2598
2602
|
};
|
|
2599
2603
|
}, {});
|
|
2600
2604
|
n.$actions.setItem(le), delete n.item._id, n.referenceItem = {}, se.value = "duplicate";
|
|
2601
2605
|
} else
|
|
2602
|
-
a("uiEvent",
|
|
2606
|
+
a("uiEvent", L);
|
|
2603
2607
|
}, {
|
|
2604
2608
|
deep: !0
|
|
2605
2609
|
}), re(() => se, (V) => {
|
|
@@ -2609,16 +2613,16 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2609
2613
|
click: Be.value(V),
|
|
2610
2614
|
...V
|
|
2611
2615
|
}))), ee = H(() => n.actions.filter((V) => !V.button));
|
|
2612
|
-
return ye(Ue, H(() => t.collection)), ye("individualActions", B), (V,
|
|
2613
|
-
var le,
|
|
2616
|
+
return ye(Ue, H(() => t.collection)), ye("individualActions", B), (V, L) => {
|
|
2617
|
+
var le, f, A, w, Z, C, T;
|
|
2614
2618
|
const te = ne("clickable"), oe = ne("loading");
|
|
2615
2619
|
return o(), s(J, null, [
|
|
2616
|
-
e(ke) ? (o(), $(
|
|
2620
|
+
e(ke) ? (o(), $(xo, {
|
|
2617
2621
|
key: e(n).$id,
|
|
2618
2622
|
modelValue: e(ke),
|
|
2619
|
-
"onUpdate:modelValue":
|
|
2623
|
+
"onUpdate:modelValue": L[0] || (L[0] = (S) => vt(ke) ? ke.value = S : null)
|
|
2620
2624
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2621
|
-
e(se) ? (o(), $(
|
|
2625
|
+
e(se) ? (o(), $(ea, { key: 1 }, de({ _: 2 }, [
|
|
2622
2626
|
U(Object.keys(V.$slots).filter((S) => S.startsWith("field-")), (S) => ({
|
|
2623
2627
|
name: S,
|
|
2624
2628
|
fn: v((ae) => [
|
|
@@ -2626,11 +2630,11 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2626
2630
|
])
|
|
2627
2631
|
}))
|
|
2628
2632
|
]), 1024)) : y("", !0),
|
|
2629
|
-
!V.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((le = e(n)) == null ? void 0 : le.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(n).description.layout && ((
|
|
2630
|
-
e(n).description.search ? (o(), s("div",
|
|
2633
|
+
!V.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((le = e(n)) == null ? void 0 : le.actions.length) > 0 || V.$slots.actions || !V.noLayoutToggle && e(n).description.layout && ((f = e(n).description.layout) == null ? void 0 : f.name) !== "tabular") ? (o(), s("div", Qa, [
|
|
2634
|
+
e(n).description.search ? (o(), s("div", Ga, [
|
|
2631
2635
|
z(Ie, E({
|
|
2632
2636
|
modelValue: e(n).textQuery,
|
|
2633
|
-
"onUpdate:modelValue":
|
|
2637
|
+
"onUpdate:modelValue": L[1] || (L[1] = (S) => e(n).textQuery = S)
|
|
2634
2638
|
}, {
|
|
2635
2639
|
property: {
|
|
2636
2640
|
type: "string",
|
|
@@ -2639,7 +2643,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2639
2643
|
}
|
|
2640
2644
|
}), null, 16, ["modelValue"])
|
|
2641
2645
|
])) : y("", !0),
|
|
2642
|
-
g("div",
|
|
2646
|
+
g("div", Wa, [
|
|
2643
2647
|
ee.value.length > 0 || !V.noLayoutToggle && e(n).description.layout && ((A = e(n).description.layout) == null ? void 0 : A.name) !== "tabular" ? (o(), $(Ce, { key: 0 }, de({
|
|
2644
2648
|
default: v(() => [
|
|
2645
2649
|
z(ie, {
|
|
@@ -2662,9 +2666,9 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2662
2666
|
Object.keys(e(n).availableFilters).length > 0 ? {
|
|
2663
2667
|
name: "filter",
|
|
2664
2668
|
fn: v(() => [
|
|
2665
|
-
|
|
2669
|
+
N((o(), $(P, {
|
|
2666
2670
|
icon: "funnel",
|
|
2667
|
-
onClick:
|
|
2671
|
+
onClick: L[2] || (L[2] = (S) => ke.value = !0)
|
|
2668
2672
|
}, {
|
|
2669
2673
|
default: v(() => [
|
|
2670
2674
|
D(b(e(F)("filters", { capitalize: !0 })), 1)
|
|
@@ -2673,7 +2677,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2673
2677
|
})), [
|
|
2674
2678
|
[te]
|
|
2675
2679
|
]),
|
|
2676
|
-
g("div",
|
|
2680
|
+
g("div", Xa, [
|
|
2677
2681
|
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2678
2682
|
default: v(() => [
|
|
2679
2683
|
D(b(e(n).filtersCount), 1)
|
|
@@ -2687,9 +2691,9 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2687
2691
|
!V.noLayoutToggle && e(n).description.layout && ((w = e(n).description.layout) == null ? void 0 : w.name) !== "tabular" ? {
|
|
2688
2692
|
name: "layout-toggle",
|
|
2689
2693
|
fn: v(() => [
|
|
2690
|
-
|
|
2694
|
+
N((o(), $(P, {
|
|
2691
2695
|
icon: "table",
|
|
2692
|
-
onClick:
|
|
2696
|
+
onClick: L[3] || (L[3] = (S) => W(e(n)))
|
|
2693
2697
|
}, {
|
|
2694
2698
|
default: v(() => [
|
|
2695
2699
|
D(b(e(F)("change_layout", { capitalize: !0 })), 1)
|
|
@@ -2704,7 +2708,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2704
2708
|
U(ee.value, (S, ae) => ({
|
|
2705
2709
|
name: `action-${ae}`,
|
|
2706
2710
|
fn: v(() => [
|
|
2707
|
-
S ? (o(), $(
|
|
2711
|
+
S ? (o(), $(P, {
|
|
2708
2712
|
key: 0,
|
|
2709
2713
|
icon: S.icon || "gear",
|
|
2710
2714
|
disabled: e(n).selected.length === 0 && S.selection,
|
|
@@ -2721,10 +2725,10 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2721
2725
|
key: 1,
|
|
2722
2726
|
variant: "alt",
|
|
2723
2727
|
icon: "funnel",
|
|
2724
|
-
onClick:
|
|
2728
|
+
onClick: L[4] || (L[4] = (S) => ke.value = !0)
|
|
2725
2729
|
}, {
|
|
2726
2730
|
default: v(() => [
|
|
2727
|
-
|
|
2731
|
+
Ya,
|
|
2728
2732
|
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2729
2733
|
default: v(() => [
|
|
2730
2734
|
D(b(e(n).filtersCount), 1)
|
|
@@ -2748,8 +2752,8 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2748
2752
|
V.$slots.actions ? I(V.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
|
|
2749
2753
|
])
|
|
2750
2754
|
])) : y("", !0),
|
|
2751
|
-
|
|
2752
|
-
e(n).itemsCount === 0 && !e(n).loading.getAll &&
|
|
2755
|
+
N((o(), s("div", null, [
|
|
2756
|
+
e(n).itemsCount === 0 && !e(n).loading.getAll && R.value && (e(O) || V.$slots.empty) ? (o(), s("div", Ja, [
|
|
2753
2757
|
e(O) ? (o(), $(he(e(O)), ce(E({ key: 0 }, {
|
|
2754
2758
|
collection: e(n).$id
|
|
2755
2759
|
})), {
|
|
@@ -2757,7 +2761,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2757
2761
|
e(n).filtersCount === 0 && e(n).description.actions && "ui:spawnAdd" in e(n).description.actions ? (o(), $(ie, {
|
|
2758
2762
|
key: 0,
|
|
2759
2763
|
icon: "plus",
|
|
2760
|
-
onClick:
|
|
2764
|
+
onClick: L[5] || (L[5] = (S) => e(Be)({
|
|
2761
2765
|
action: "ui:spawnAdd"
|
|
2762
2766
|
})())
|
|
2763
2767
|
}, {
|
|
@@ -2773,7 +2777,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2773
2777
|
})), void 0, !0)
|
|
2774
2778
|
])) : V.$slots.component ? I(V.$slots, "component", ce(E({ key: 1 }, {
|
|
2775
2779
|
store: e(n)
|
|
2776
|
-
})), void 0, !0) : (o(), $(he(e(
|
|
2780
|
+
})), void 0, !0) : (o(), $(he(e(Ha)(((Z = V.layout) == null ? void 0 : Z.name) || e(n).$currentLayout)), E({ key: 2 }, {
|
|
2777
2781
|
individualActions: B.value,
|
|
2778
2782
|
layoutOptions: ((C = V.layout) == null ? void 0 : C.options) || e(n).layout.options,
|
|
2779
2783
|
componentProps: V.componentProps
|
|
@@ -2797,17 +2801,17 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2797
2801
|
])), [
|
|
2798
2802
|
[oe, (!e(_) || j.value === _t) && e(n).loading.getAll]
|
|
2799
2803
|
]),
|
|
2800
|
-
!e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div",
|
|
2801
|
-
z(
|
|
2804
|
+
!e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div", Ka, [
|
|
2805
|
+
z(zn, {
|
|
2802
2806
|
pagination: e(n).pagination,
|
|
2803
|
-
onPaginate:
|
|
2807
|
+
onPaginate: K
|
|
2804
2808
|
}, null, 8, ["pagination"])
|
|
2805
2809
|
])) : y("", !0)
|
|
2806
2810
|
], 64);
|
|
2807
2811
|
};
|
|
2808
2812
|
}
|
|
2809
2813
|
});
|
|
2810
|
-
const
|
|
2814
|
+
const Tl = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-2cbb3e9f"]]), Pa = { class: "prompt" }, Na = /* @__PURE__ */ q({
|
|
2811
2815
|
__name: "aeria-prompt",
|
|
2812
2816
|
props: {
|
|
2813
2817
|
title: {},
|
|
@@ -2844,7 +2848,7 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2844
2848
|
], 4)
|
|
2845
2849
|
]),
|
|
2846
2850
|
default: v(() => [
|
|
2847
|
-
g("div",
|
|
2851
|
+
g("div", Pa, [
|
|
2848
2852
|
I(a.$slots, "default", {}, void 0, !0)
|
|
2849
2853
|
])
|
|
2850
2854
|
]),
|
|
@@ -2860,7 +2864,7 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2860
2864
|
]), 1024));
|
|
2861
2865
|
}
|
|
2862
2866
|
});
|
|
2863
|
-
const
|
|
2867
|
+
const xa = /* @__PURE__ */ G(Na, [["__scopeId", "data-v-5443f297"]]), el = { class: "toast__content" }, tl = { class: "toast__time" }, nl = /* @__PURE__ */ q({
|
|
2864
2868
|
__name: "aeria-toast",
|
|
2865
2869
|
props: {
|
|
2866
2870
|
idx: {},
|
|
@@ -2872,7 +2876,7 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2872
2876
|
const i = ue("meta");
|
|
2873
2877
|
return (t, a) => {
|
|
2874
2878
|
const l = ne("clickable");
|
|
2875
|
-
return
|
|
2879
|
+
return N((o(), s("div", {
|
|
2876
2880
|
class: Q({
|
|
2877
2881
|
toast: !0,
|
|
2878
2882
|
"toast--animate": e(i).toasts[0].itr === t.itr
|
|
@@ -2880,13 +2884,13 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2880
2884
|
onAnimationend: a[0] || (a[0] = (r) => e(i).$actions.popToast()),
|
|
2881
2885
|
onClick: a[1] || (a[1] = (r) => e(i).$actions.popToast(t.itr))
|
|
2882
2886
|
}, [
|
|
2883
|
-
z(
|
|
2887
|
+
z(P, E(
|
|
2884
2888
|
t.icon ? { icon: t.icon } : { icon: "warning-circle" },
|
|
2885
2889
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
2886
2890
|
), null, 16),
|
|
2887
|
-
g("div",
|
|
2891
|
+
g("div", el, [
|
|
2888
2892
|
I(t.$slots, "default", {}, void 0, !0),
|
|
2889
|
-
g("div",
|
|
2893
|
+
g("div", tl, b(t.formatDateTime(t.date, { hoursOnly: !0 })), 1)
|
|
2890
2894
|
])
|
|
2891
2895
|
], 34)), [
|
|
2892
2896
|
[l]
|
|
@@ -2894,12 +2898,12 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2894
2898
|
};
|
|
2895
2899
|
}
|
|
2896
2900
|
});
|
|
2897
|
-
const
|
|
2901
|
+
const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["innerHTML"], ll = { class: "main__toasts" }, sl = ["innerHTML"], il = /* @__PURE__ */ q({
|
|
2898
2902
|
__name: "aeria-main",
|
|
2899
2903
|
setup(c) {
|
|
2900
2904
|
const i = ue("meta"), t = H(() => i.themeOverride || i.theme);
|
|
2901
2905
|
return (a, l) => {
|
|
2902
|
-
const r =
|
|
2906
|
+
const r = At("router-view");
|
|
2903
2907
|
return o(), s("main", {
|
|
2904
2908
|
id: "main",
|
|
2905
2909
|
class: Q(`
|
|
@@ -2908,7 +2912,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2908
2912
|
${t.value === "dark" && "tw-dark"}
|
|
2909
2913
|
`)
|
|
2910
2914
|
}, [
|
|
2911
|
-
(o(), $(
|
|
2915
|
+
(o(), $(Ot, null, {
|
|
2912
2916
|
default: v(() => [
|
|
2913
2917
|
z(r, null, {
|
|
2914
2918
|
default: v(({ Component: u }) => [
|
|
@@ -2941,25 +2945,25 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2941
2945
|
key: 0,
|
|
2942
2946
|
style: { "white-space": "pre-wrap" },
|
|
2943
2947
|
innerHTML: e(i).modal.body
|
|
2944
|
-
}, null, 8,
|
|
2948
|
+
}, null, 8, al)) : y("", !0),
|
|
2945
2949
|
e(i).modal.component ? (o(), $(he(e(i).modal.component), { key: 1 })) : y("", !0)
|
|
2946
2950
|
]),
|
|
2947
2951
|
_: 1
|
|
2948
2952
|
}, 16, ["modelValue"]),
|
|
2949
|
-
e(i).prompt.visible ? (o(), $(
|
|
2953
|
+
e(i).prompt.visible ? (o(), $(xa, ce(E({ key: 0 }, e(i).prompt)), {
|
|
2950
2954
|
default: v(() => [
|
|
2951
2955
|
D(b(e(i).prompt.body), 1)
|
|
2952
2956
|
]),
|
|
2953
2957
|
_: 1
|
|
2954
2958
|
}, 16)) : y("", !0),
|
|
2955
|
-
g("div",
|
|
2956
|
-
(o(!0), s(J, null, U(e(i).toasts, (u) => (o(), $(
|
|
2959
|
+
g("div", ll, [
|
|
2960
|
+
(o(!0), s(J, null, U(e(i).toasts, (u) => (o(), $(ol, E({ ref_for: !0 }, u, {
|
|
2957
2961
|
key: `toast-${u.itr}`
|
|
2958
2962
|
}), {
|
|
2959
2963
|
default: v(() => [
|
|
2960
2964
|
g("div", {
|
|
2961
2965
|
innerHTML: e(F)(u.text)
|
|
2962
|
-
}, null, 8,
|
|
2966
|
+
}, null, 8, sl)
|
|
2963
2967
|
]),
|
|
2964
2968
|
_: 2
|
|
2965
2969
|
}, 1040))), 128))
|
|
@@ -2968,10 +2972,10 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2968
2972
|
};
|
|
2969
2973
|
}
|
|
2970
2974
|
});
|
|
2971
|
-
const Ll = /* @__PURE__ */ G(
|
|
2972
|
-
const
|
|
2973
|
-
function
|
|
2974
|
-
return o(), s("menu",
|
|
2975
|
+
const Ll = /* @__PURE__ */ G(il, [["__scopeId", "data-v-1166be3d"]]);
|
|
2976
|
+
const rl = {}, ul = { class: "menu" };
|
|
2977
|
+
function cl(c, i) {
|
|
2978
|
+
return o(), s("menu", ul, [
|
|
2975
2979
|
(o(!0), s(J, null, U(Object.keys(c.$slots), (t) => (o(), s("div", {
|
|
2976
2980
|
key: t,
|
|
2977
2981
|
class: "menu__entry"
|
|
@@ -2980,16 +2984,16 @@ function dl(c, i) {
|
|
|
2980
2984
|
]))), 128))
|
|
2981
2985
|
]);
|
|
2982
2986
|
}
|
|
2983
|
-
const
|
|
2987
|
+
const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb"]]), dl = { class: "tabs" }, pl = {
|
|
2984
2988
|
key: 0,
|
|
2985
2989
|
class: "tabs__horizontal"
|
|
2986
|
-
},
|
|
2990
|
+
}, _l = {
|
|
2987
2991
|
key: 0,
|
|
2988
2992
|
class: "tabs__tab tabs__tab--info"
|
|
2989
|
-
},
|
|
2993
|
+
}, ml = ["onClick"], fl = {
|
|
2990
2994
|
key: 1,
|
|
2991
2995
|
class: "tabs__context-menu"
|
|
2992
|
-
},
|
|
2996
|
+
}, vl = ["onClick"], yl = /* @__PURE__ */ q({
|
|
2993
2997
|
__name: "aeria-tabs",
|
|
2994
2998
|
props: {
|
|
2995
2999
|
query: {},
|
|
@@ -2997,7 +3001,7 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
2997
3001
|
dropdown: { type: Boolean }
|
|
2998
3002
|
},
|
|
2999
3003
|
setup(c) {
|
|
3000
|
-
const i = c, t =
|
|
3004
|
+
const i = c, t = wt(), a = Le(), l = je(), r = "query" in i && i.query ? "query" : "params", u = H(() => {
|
|
3001
3005
|
const d = a.currentRoute.value[r][i.query || i.param];
|
|
3002
3006
|
return d || Object.keys(t)[0];
|
|
3003
3007
|
}), p = (d) => {
|
|
@@ -3018,25 +3022,25 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3018
3022
|
};
|
|
3019
3023
|
return (d, h) => {
|
|
3020
3024
|
const _ = ne("clickable");
|
|
3021
|
-
return o(), s("div",
|
|
3022
|
-
e(l).md && !d.dropdown ? (o(), s("div",
|
|
3023
|
-
d.$slots.default ? (o(), s("div",
|
|
3025
|
+
return o(), s("div", dl, [
|
|
3026
|
+
e(l).md && !d.dropdown ? (o(), s("div", pl, [
|
|
3027
|
+
d.$slots.default ? (o(), s("div", _l, [
|
|
3024
3028
|
I(d.$slots, "default", {}, void 0, !0)
|
|
3025
3029
|
])) : y("", !0),
|
|
3026
|
-
(o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => n !== "default"), (n,
|
|
3030
|
+
(o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => n !== "default"), (n, m) => (o(), s("div", {
|
|
3027
3031
|
key: n,
|
|
3028
3032
|
class: Q({
|
|
3029
3033
|
tabs__tab: !0,
|
|
3030
|
-
"tabs__tab--current": n === u.value || !u.value &&
|
|
3034
|
+
"tabs__tab--current": n === u.value || !u.value && m === 0
|
|
3031
3035
|
}),
|
|
3032
3036
|
onClick: (k) => p(n)
|
|
3033
3037
|
}, [
|
|
3034
3038
|
I(d.$slots, n, {}, void 0, !0)
|
|
3035
|
-
], 10,
|
|
3036
|
-
])) : (o(), s("div",
|
|
3039
|
+
], 10, ml))), 128))
|
|
3040
|
+
])) : (o(), s("div", fl, [
|
|
3037
3041
|
z(Ce, null, de({
|
|
3038
3042
|
default: v(() => [
|
|
3039
|
-
|
|
3043
|
+
N((o(), $(P, {
|
|
3040
3044
|
"icon-right": "",
|
|
3041
3045
|
icon: "caret-down",
|
|
3042
3046
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
@@ -3056,10 +3060,10 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3056
3060
|
name: n,
|
|
3057
3061
|
fn: v(() => [
|
|
3058
3062
|
g("div", {
|
|
3059
|
-
onClick: (
|
|
3063
|
+
onClick: (m) => p(n)
|
|
3060
3064
|
}, [
|
|
3061
3065
|
I(d.$slots, n, {}, void 0, !0)
|
|
3062
|
-
], 8,
|
|
3066
|
+
], 8, vl)
|
|
3063
3067
|
])
|
|
3064
3068
|
}))
|
|
3065
3069
|
]), 1024)
|
|
@@ -3068,24 +3072,24 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3068
3072
|
};
|
|
3069
3073
|
}
|
|
3070
3074
|
});
|
|
3071
|
-
const
|
|
3075
|
+
const hl = /* @__PURE__ */ G(yl, [["__scopeId", "data-v-4dd516ec"]]), $l = q({
|
|
3072
3076
|
props: {
|
|
3073
3077
|
initialValue: String,
|
|
3074
3078
|
promise: Promise
|
|
3075
3079
|
},
|
|
3076
3080
|
setup(c) {
|
|
3077
|
-
const i =
|
|
3081
|
+
const i = X(c.initialValue);
|
|
3078
3082
|
return c.promise instanceof Promise && c.promise.then((t) => {
|
|
3079
3083
|
i.value = t;
|
|
3080
|
-
}), () =>
|
|
3084
|
+
}), () => Bt("div", i.value);
|
|
3081
3085
|
}
|
|
3082
|
-
}),
|
|
3086
|
+
}), bl = ["onClick"], gl = { key: 1 }, kl = /* @__PURE__ */ q({
|
|
3083
3087
|
__name: "aeria-crud-topbar",
|
|
3084
3088
|
props: {
|
|
3085
3089
|
collection: {}
|
|
3086
3090
|
},
|
|
3087
3091
|
setup(c) {
|
|
3088
|
-
const i = c, a =
|
|
3092
|
+
const i = c, a = Le().currentRoute, l = H(() => {
|
|
3089
3093
|
try {
|
|
3090
3094
|
const r = i.collection ? i.collection : a.value.meta.collection || a.value.params.collection;
|
|
3091
3095
|
return ge(r);
|
|
@@ -3093,7 +3097,7 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3093
3097
|
return null;
|
|
3094
3098
|
}
|
|
3095
3099
|
});
|
|
3096
|
-
return (r, u) => l.value && l.value.description.filtersPresets ? (o(), $(
|
|
3100
|
+
return (r, u) => l.value && l.value.description.filtersPresets ? (o(), $(hl, {
|
|
3097
3101
|
key: 0,
|
|
3098
3102
|
dropdown: "",
|
|
3099
3103
|
query: "section"
|
|
@@ -3103,9 +3107,9 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3103
3107
|
fn: v(() => [
|
|
3104
3108
|
g("div", {
|
|
3105
3109
|
class: "topbar__preset",
|
|
3106
|
-
onClick: (h) => e(
|
|
3110
|
+
onClick: (h) => e(gt)(d, l.value)
|
|
3107
3111
|
}, [
|
|
3108
|
-
d.icon ? (o(), $(
|
|
3112
|
+
d.icon ? (o(), $(P, {
|
|
3109
3113
|
key: 0,
|
|
3110
3114
|
icon: d.icon
|
|
3111
3115
|
}, {
|
|
@@ -3113,26 +3117,26 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3113
3117
|
D(b(d.label || e(F)(p, { plural: !0 })), 1)
|
|
3114
3118
|
]),
|
|
3115
3119
|
_: 2
|
|
3116
|
-
}, 1032, ["icon"])) : (o(), s("div",
|
|
3120
|
+
}, 1032, ["icon"])) : (o(), s("div", gl, b(d.label || e(F)(p, { plural: !0 })), 1)),
|
|
3117
3121
|
d.badgeFunction ? (o(), $(be, { key: 2 }, {
|
|
3118
3122
|
default: v(() => [
|
|
3119
|
-
z(e(
|
|
3123
|
+
z(e($l), {
|
|
3120
3124
|
"initial-value": "0",
|
|
3121
3125
|
promise: l.value.$functions[d.badgeFunction]({ filters: d.filters })
|
|
3122
3126
|
}, null, 8, ["promise"])
|
|
3123
3127
|
]),
|
|
3124
3128
|
_: 2
|
|
3125
3129
|
}, 1024)) : y("", !0)
|
|
3126
|
-
], 8,
|
|
3130
|
+
], 8, bl)
|
|
3127
3131
|
])
|
|
3128
3132
|
}))
|
|
3129
3133
|
]), 1024)) : y("", !0);
|
|
3130
3134
|
}
|
|
3131
3135
|
});
|
|
3132
|
-
const
|
|
3136
|
+
const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3133
3137
|
__proto__: null,
|
|
3134
|
-
default:
|
|
3135
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3138
|
+
default: Vl
|
|
3139
|
+
}, Symbol.toStringTag, { value: "Module" })), zl = /* @__PURE__ */ q({
|
|
3136
3140
|
__name: "aeria-password-form",
|
|
3137
3141
|
props: {
|
|
3138
3142
|
modelValue: {}
|
|
@@ -3141,7 +3145,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3141
3145
|
setup(c) {
|
|
3142
3146
|
const i = c;
|
|
3143
3147
|
ye(Ue, null);
|
|
3144
|
-
const t =
|
|
3148
|
+
const t = Ut(), a = H(() => t(
|
|
3145
3149
|
i.modelValue.password,
|
|
3146
3150
|
i.modelValue.confirmation
|
|
3147
3151
|
));
|
|
@@ -3168,7 +3172,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3168
3172
|
_: 3
|
|
3169
3173
|
}, 8, ["model-value"]));
|
|
3170
3174
|
}
|
|
3171
|
-
}),
|
|
3175
|
+
}), Ml = (c, i = []) => ({
|
|
3172
3176
|
path: "/user",
|
|
3173
3177
|
name: "/builtin:user",
|
|
3174
3178
|
component: c,
|
|
@@ -3186,7 +3190,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3186
3190
|
{
|
|
3187
3191
|
path: "signin",
|
|
3188
3192
|
name: "/user/signin",
|
|
3189
|
-
component: () => import("./signin-
|
|
3193
|
+
component: () => import("./signin-c3838339.js"),
|
|
3190
3194
|
meta: {
|
|
3191
3195
|
title: "Autenticação"
|
|
3192
3196
|
}
|
|
@@ -3194,7 +3198,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3194
3198
|
{
|
|
3195
3199
|
path: "signup",
|
|
3196
3200
|
name: "/user/signup",
|
|
3197
|
-
component: () => import("./signup-
|
|
3201
|
+
component: () => import("./signup-0ec1bb6e.js"),
|
|
3198
3202
|
meta: {
|
|
3199
3203
|
title: "Registro"
|
|
3200
3204
|
}
|
|
@@ -3202,13 +3206,13 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3202
3206
|
{
|
|
3203
3207
|
path: "activation",
|
|
3204
3208
|
name: "/user/activation",
|
|
3205
|
-
component: () => import("./activation-
|
|
3209
|
+
component: () => import("./activation-db795cbd.js"),
|
|
3206
3210
|
meta: {
|
|
3207
3211
|
title: "Ativação"
|
|
3208
3212
|
}
|
|
3209
3213
|
}
|
|
3210
3214
|
])
|
|
3211
|
-
}),
|
|
3215
|
+
}), Fl = (c, i = []) => ({
|
|
3212
3216
|
path: "/dashboard",
|
|
3213
3217
|
name: "/builtin:dashboard",
|
|
3214
3218
|
component: c,
|
|
@@ -3224,8 +3228,8 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3224
3228
|
name: "/dashboard/crud",
|
|
3225
3229
|
props: !0,
|
|
3226
3230
|
components: {
|
|
3227
|
-
default: () => import("./crud-view-
|
|
3228
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3231
|
+
default: () => import("./crud-view-375a71ce.js"),
|
|
3232
|
+
topbar: () => Promise.resolve().then(() => Cl)
|
|
3229
3233
|
},
|
|
3230
3234
|
meta: {
|
|
3231
3235
|
title: "%viewTitle%"
|
|
@@ -3242,7 +3246,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3242
3246
|
children: [
|
|
3243
3247
|
{
|
|
3244
3248
|
path: "profile",
|
|
3245
|
-
component: () => import("./profile-
|
|
3249
|
+
component: () => import("./profile-7d32f24a.js"),
|
|
3246
3250
|
meta: {
|
|
3247
3251
|
title: "Meu perfil",
|
|
3248
3252
|
icon: "user-square"
|
|
@@ -3251,7 +3255,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3251
3255
|
{
|
|
3252
3256
|
path: "changepass",
|
|
3253
3257
|
name: "/dashboard/user/changepass",
|
|
3254
|
-
component: () => import("./password-change-
|
|
3258
|
+
component: () => import("./password-change-85ee1e80.js"),
|
|
3255
3259
|
meta: {
|
|
3256
3260
|
title: "Mudar senha",
|
|
3257
3261
|
icon: "lock"
|
|
@@ -3263,36 +3267,36 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3263
3267
|
});
|
|
3264
3268
|
export {
|
|
3265
3269
|
He as A,
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3270
|
+
xa as B,
|
|
3271
|
+
ol as C,
|
|
3272
|
+
Vl as D,
|
|
3273
|
+
Ml as E,
|
|
3274
|
+
Fl as F,
|
|
3275
|
+
zl as _,
|
|
3272
3276
|
ie as a,
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3277
|
+
P as b,
|
|
3278
|
+
Dn as c,
|
|
3279
|
+
Tl as d,
|
|
3276
3280
|
Me as e,
|
|
3277
|
-
|
|
3281
|
+
Rl as f,
|
|
3278
3282
|
Ae as g,
|
|
3279
3283
|
G as h,
|
|
3280
|
-
|
|
3284
|
+
jl as i,
|
|
3281
3285
|
be as j,
|
|
3282
3286
|
fe as k,
|
|
3283
|
-
|
|
3287
|
+
dn as l,
|
|
3284
3288
|
Ce as m,
|
|
3285
|
-
|
|
3286
|
-
|
|
3289
|
+
Fa as n,
|
|
3290
|
+
hn as o,
|
|
3287
3291
|
Ll as p,
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
+
zn as q,
|
|
3293
|
+
Ra as r,
|
|
3294
|
+
hl as s,
|
|
3295
|
+
ho as t,
|
|
3292
3296
|
Ie as u,
|
|
3293
|
-
|
|
3294
|
-
|
|
3297
|
+
Wn as v,
|
|
3298
|
+
zo as w,
|
|
3295
3299
|
Ee as x,
|
|
3296
|
-
|
|
3297
|
-
|
|
3300
|
+
Nn as y,
|
|
3301
|
+
$l as z
|
|
3298
3302
|
};
|