@aeria-ui/ui 0.0.48 → 0.0.50
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-73d0823e.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-543eb1a6.js → crud-view-375a71ce.js} +1 -1
- package/dist/{index-37dc84d1.js → index-74fbfb08.js} +871 -860
- package/dist/{password-change-83650bca.js → password-change-85ee1e80.js} +1 -1
- package/dist/{profile-c3166c73.js → profile-7d32f24a.js} +14 -14
- package/dist/{signin-f49f8090.js → signin-c3838339.js} +12 -12
- package/dist/{signup-25160b53.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,17 +28,17 @@ 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",
|
|
36
|
-
D(" " +
|
|
37
|
-
], 8,
|
|
35
|
+
a.enumerate ? (o(), s("span", Gt, b(p + 1) + ". ", 1)) : y("", !0),
|
|
36
|
+
D(" " + b(a.headers[u] ? t(a.headers[u]) : e(F)(u)), 1)
|
|
37
|
+
], 8, Qt)), [
|
|
38
38
|
[r]
|
|
39
39
|
]),
|
|
40
|
-
i.value === u ? (o(), s("div",
|
|
41
|
-
|
|
40
|
+
i.value === u ? (o(), s("div", Wt, [
|
|
41
|
+
I(a.$slots, u, {}, void 0, !0)
|
|
42
42
|
])) : y("", !0)
|
|
43
43
|
]))), 128))
|
|
44
44
|
], 2);
|
|
@@ -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 },
|
|
@@ -64,11 +64,11 @@ const G = (c, i) => {
|
|
|
64
64
|
${i.alt && "badge--alt"}
|
|
65
65
|
`)
|
|
66
66
|
}, [
|
|
67
|
-
|
|
67
|
+
I(i.$slots, "default", {}, void 0, !0)
|
|
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 }
|
|
@@ -85,14 +85,14 @@ const be = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-47f92648"]]), Kt = /* @_
|
|
|
85
85
|
`),
|
|
86
86
|
onClick: l
|
|
87
87
|
}, [
|
|
88
|
-
|
|
88
|
+
I(r.$slots, "default", {}, void 0, !0)
|
|
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: {},
|
|
@@ -114,7 +114,7 @@ const fe = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["hre
|
|
|
114
114
|
${l.$slots.default ? "icon--centered" : "icon--standalone"}
|
|
115
115
|
`)
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
g("div", {
|
|
118
118
|
class: Q(`
|
|
119
119
|
icon__icon
|
|
120
120
|
${l.size && `icon__icon--${l.size}`}
|
|
@@ -129,21 +129,21 @@ const fe = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["hre
|
|
|
129
129
|
}, {
|
|
130
130
|
...l.fill ? { fill: l.fill } : {}
|
|
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",
|
|
138
|
-
|
|
137
|
+
l.$slots.default ? (o(), s("div", Zt, [
|
|
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 K = /* @__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
|
|
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 K = /* @__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,29 +209,29 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
209
209
|
${n.outerHeader && "panel__header--outer"}
|
|
210
210
|
`)
|
|
211
211
|
}, [
|
|
212
|
-
|
|
213
|
-
n.$slots.header ?
|
|
214
|
-
n.$slots.extra ? (o(), s("div",
|
|
215
|
-
|
|
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
|
+
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
|
-
[
|
|
225
|
-
]) : n.closeHint ?
|
|
224
|
+
[k]
|
|
225
|
+
]) : n.closeHint ? N((o(), $(P, {
|
|
226
226
|
key: 1,
|
|
227
227
|
reactive: "",
|
|
228
228
|
icon: "x",
|
|
229
229
|
onClick: d
|
|
230
230
|
}, null, 512)), [
|
|
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,
|
|
@@ -240,9 +240,9 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
240
240
|
${n.fill || "panel__body--padded"}
|
|
241
241
|
`)
|
|
242
242
|
}, [
|
|
243
|
-
|
|
243
|
+
I(n.$slots, "default", {}, void 0, !0)
|
|
244
244
|
], 2)), [
|
|
245
|
-
[
|
|
245
|
+
[j, n.loading]
|
|
246
246
|
]),
|
|
247
247
|
n.$slots.footer ? (o(), s("div", {
|
|
248
248
|
key: 2,
|
|
@@ -252,13 +252,13 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
252
252
|
${e(p) || "panel__footer--shadowed"}
|
|
253
253
|
`)
|
|
254
254
|
}, [
|
|
255
|
-
|
|
255
|
+
I(n.$slots, "footer", {}, void 0, !0)
|
|
256
256
|
], 2)) : y("", !0)
|
|
257
257
|
]),
|
|
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 K = /* @__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,25 +302,25 @@ 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
|
-
|
|
311
|
-
|
|
310
|
+
g("div", nn, [
|
|
311
|
+
I(l.$slots, "default", {}, void 0, !0)
|
|
312
312
|
])
|
|
313
313
|
]),
|
|
314
314
|
_: 3
|
|
315
|
-
}, 8, ["icon"])) : (o(), s("div",
|
|
316
|
-
|
|
315
|
+
}, 8, ["icon"])) : (o(), s("div", on, [
|
|
316
|
+
I(l.$slots, "default", {}, void 0, !0)
|
|
317
317
|
]))
|
|
318
318
|
]),
|
|
319
319
|
_: 3
|
|
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
|
-
|
|
338
|
-
|
|
337
|
+
g("div", ln, [
|
|
338
|
+
I(i.$slots, "default", {}, void 0, !0)
|
|
339
339
|
]),
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
340
|
+
g("div", sn, [
|
|
341
|
+
g("div", rn, [
|
|
342
|
+
g("div", null, [
|
|
343
|
+
I(i.$slots, "footer", {}, void 0, !0)
|
|
344
344
|
]),
|
|
345
|
-
i.$slots.actions ?
|
|
345
|
+
i.$slots.actions ? I(i.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
|
|
346
346
|
]),
|
|
347
|
-
|
|
348
|
-
|
|
347
|
+
g("div", un, [
|
|
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) => {
|
|
@@ -400,39 +403,39 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
400
403
|
ref: a,
|
|
401
404
|
class: "contextmenu"
|
|
402
405
|
}, [
|
|
403
|
-
|
|
406
|
+
g("a", {
|
|
404
407
|
class: "contextmenu__trigger",
|
|
405
408
|
onClick: h[0] || (h[0] = (n) => l.value = !0)
|
|
406
409
|
}, [
|
|
407
|
-
|
|
410
|
+
I(d.$slots, "default", {}, void 0, !0)
|
|
408
411
|
])
|
|
409
412
|
], 512)) : y("", !0),
|
|
410
413
|
l.value ? (o(), $(Ge, {
|
|
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
|
-
|
|
422
|
-
d.$slots.header ? (o(), s("div",
|
|
423
|
-
|
|
424
|
+
g("div", pn, [
|
|
425
|
+
d.$slots.header ? (o(), s("div", _n, [
|
|
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", {
|
|
426
429
|
key: 1,
|
|
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(() => [
|
|
435
|
-
|
|
438
|
+
I(d.$slots, n, {}, void 0, !0)
|
|
436
439
|
]),
|
|
437
440
|
_: 2
|
|
438
441
|
}, 1024))), 128))
|
|
@@ -442,18 +445,18 @@ 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
|
-
onClick: (
|
|
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
|
}, {
|
|
455
458
|
default: v(() => [
|
|
456
|
-
D(
|
|
459
|
+
D(b(n.translate ? e(F)(n.label, { capitalize: !0 }) : n.label), 1)
|
|
457
460
|
]),
|
|
458
461
|
_: 2
|
|
459
462
|
}, 1032, ["icon"])) : y("", !0)
|
|
@@ -466,8 +469,8 @@ 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
|
-
|
|
470
|
-
d.$slots.extra ?
|
|
472
|
+
g("div", mn, [
|
|
473
|
+
d.$slots.extra ? I(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
|
|
471
474
|
])
|
|
472
475
|
])) : y("", !0)
|
|
473
476
|
])
|
|
@@ -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,28 +513,28 @@ const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-5ad42e0b"]]), yn = { cla
|
|
|
510
513
|
info__bubble--${e(l)}
|
|
511
514
|
`)
|
|
512
515
|
}, [
|
|
513
|
-
|
|
514
|
-
|
|
516
|
+
g("div", vn, [
|
|
517
|
+
I(r.$slots, "text", {}, void 0, !0)
|
|
515
518
|
])
|
|
516
519
|
], 2)) : y("", !0),
|
|
517
|
-
|
|
520
|
+
g("div", {
|
|
518
521
|
onMouseover: u[0] || (u[0] = (p) => a.value = !0)
|
|
519
522
|
}, [
|
|
520
|
-
|
|
523
|
+
I(r.$slots, "default", {}, void 0, !0)
|
|
521
524
|
], 32)
|
|
522
|
-
], 32)) :
|
|
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,55 +571,55 @@ 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
|
-
},
|
|
582
|
+
}, k = X([
|
|
580
583
|
"date",
|
|
581
584
|
"date-time"
|
|
582
|
-
].includes(n.type) ?
|
|
583
|
-
var
|
|
584
|
-
return typeof
|
|
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
|
-
}), t.property.maskedValue === !0 ?
|
|
587
|
-
},
|
|
588
|
-
const
|
|
589
|
+
}), t.property.maskedValue === !0 ? k.value : j.unmask(k.value)) : M;
|
|
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
|
-
|
|
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,
|
|
613
|
-
const
|
|
614
|
-
return o(), s("label",
|
|
615
|
-
e(u) ? y("", !0) : (o(), s("div",
|
|
616
|
-
M.$slots.default ?
|
|
615
|
+
}), (M, W) => {
|
|
616
|
+
const B = ne("focus"), ee = ne("clickable");
|
|
617
|
+
return o(), s("label", $n, [
|
|
618
|
+
e(u) ? y("", !0) : (o(), s("div", bn, [
|
|
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",
|
|
619
|
-
|
|
621
|
+
M.$slots.hint ? (o(), s("div", gn, [
|
|
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", {
|
|
622
625
|
key: 2,
|
|
@@ -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,9 +636,9 @@ 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,
|
|
638
|
-
[
|
|
639
|
+
onInput: K
|
|
640
|
+
}, null, 42, kn), [
|
|
641
|
+
[B, e(a).focus]
|
|
639
642
|
])
|
|
640
643
|
], 2)) : (o(), s("div", {
|
|
641
644
|
key: 3,
|
|
@@ -644,8 +647,8 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
644
647
|
input__container--${e(_)}
|
|
645
648
|
`)
|
|
646
649
|
}, [
|
|
647
|
-
|
|
648
|
-
value:
|
|
650
|
+
N(g("input", E(n, {
|
|
651
|
+
value: k.value,
|
|
649
652
|
"data-component": "input",
|
|
650
653
|
class: `
|
|
651
654
|
input__input
|
|
@@ -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
|
-
[
|
|
659
|
+
onInput: K,
|
|
660
|
+
onChange: W[0] || (W[0] = (V) => h("change", V))
|
|
661
|
+
}), null, 16, Vn), [
|
|
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,18 +722,18 @@ 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,
|
|
730
733
|
"select--outline": !_.noOutline
|
|
731
734
|
})
|
|
732
735
|
}, [
|
|
733
|
-
|
|
736
|
+
g("select", E({
|
|
734
737
|
ref_key: "select",
|
|
735
738
|
ref: l,
|
|
736
739
|
value: e(p)
|
|
@@ -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
|
-
},
|
|
756
|
-
|
|
757
|
-
], 16,
|
|
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)),
|
|
759
|
+
I(_.$slots, "default", {}, void 0, !0)
|
|
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
|
-
},
|
|
806
|
+
}, b(n), 9, jn))), 128))
|
|
804
807
|
]),
|
|
805
808
|
_: 1
|
|
806
809
|
}, 8, ["modelValue"]),
|
|
807
|
-
|
|
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,14 +824,14 @@ 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
|
})
|
|
828
831
|
]),
|
|
829
832
|
_: 1
|
|
830
833
|
}, 8, ["disabled"]),
|
|
831
|
-
|
|
834
|
+
g("div", Ln, [
|
|
832
835
|
(o(), $(Ie, {
|
|
833
836
|
key: l.value,
|
|
834
837
|
modelValue: u.value,
|
|
@@ -841,14 +844,14 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
841
844
|
l.value = u.value === 0 ? 0 : u.value - 1;
|
|
842
845
|
})
|
|
843
846
|
}, null, 8, ["modelValue"])),
|
|
844
|
-
|
|
847
|
+
g("span", null, b(e(F)("of")) + " " + b(p.value), 1)
|
|
845
848
|
]),
|
|
846
849
|
z(fe, {
|
|
847
850
|
disabled: l.value === p.value - 1,
|
|
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
|
-
|
|
933
|
-
|
|
934
|
-
d.$slots.description ?
|
|
935
|
+
g("div", Mn, [
|
|
936
|
+
g("div", null, [
|
|
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
|
-
|
|
940
|
-
d.$slots.hint ?
|
|
942
|
+
g("div", qn, [
|
|
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,8 +1025,8 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
1022
1025
|
`),
|
|
1023
1026
|
onClick: ze(r, ["stop"])
|
|
1024
1027
|
}, [
|
|
1025
|
-
|
|
1026
|
-
|
|
1028
|
+
Jn,
|
|
1029
|
+
g("div", {
|
|
1027
1030
|
class: Q(`
|
|
1028
1031
|
switch__dummy
|
|
1029
1032
|
${!u.modelValue && "switch__dummy--flex"}
|
|
@@ -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 ?
|
|
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,17 +1080,17 @@ 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 ?
|
|
1090
|
-
|
|
1092
|
+
a.value ? N((o(), s("div", eo, [
|
|
1093
|
+
g("img", {
|
|
1091
1094
|
src: t.value,
|
|
1092
1095
|
alt: l.alt,
|
|
1093
1096
|
style: `
|
|
@@ -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",
|
|
1139
|
-
|
|
1140
|
+
}, so, 6)),
|
|
1141
|
+
l.$slots.caption ? (o(), s("figcaption", io, [
|
|
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,82 +1164,82 @@ 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 =
|
|
1165
|
-
var
|
|
1166
|
-
return u.value ? URL.createObjectURL(u.value) : (
|
|
1167
|
+
const t = c, a = i, r = Te() ? ge() : null, u = X(null), p = H(() => {
|
|
1168
|
+
var k;
|
|
1169
|
+
return u.value ? URL.createObjectURL(u.value) : (k = t.modelValue) == null ? void 0 : k.link;
|
|
1167
1170
|
}), d = H(() => {
|
|
1168
|
-
var
|
|
1169
|
-
return /^image\//.test((
|
|
1170
|
-
}), h = (
|
|
1171
|
-
const
|
|
1172
|
-
|
|
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);
|
|
1173
|
+
}), h = (k) => new Promise((j) => {
|
|
1174
|
+
const R = new FileReader();
|
|
1175
|
+
R.onload = () => j(R.result), R.readAsArrayBuffer(k);
|
|
1173
1176
|
}), _ = () => {
|
|
1174
1177
|
u.value = null;
|
|
1175
|
-
}, n = async (
|
|
1176
|
-
u.value =
|
|
1177
|
-
const
|
|
1178
|
+
}, n = async (k) => {
|
|
1179
|
+
u.value = k.target.files[0];
|
|
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: {
|
|
1183
|
-
"content-type":
|
|
1186
|
+
"content-type": j.type || "application/octet-stream",
|
|
1184
1187
|
"x-stream-request": "1"
|
|
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
|
-
a("update:modelValue",
|
|
1193
|
-
a("update:content",
|
|
1194
|
-
},
|
|
1195
|
+
a("update:modelValue", j);
|
|
1196
|
+
a("update:content", R), a("change", R);
|
|
1197
|
+
}, m = async () => {
|
|
1195
1198
|
a("update:modelValue", null);
|
|
1196
1199
|
};
|
|
1197
|
-
return (
|
|
1198
|
-
var
|
|
1199
|
-
return o(), s("div",
|
|
1200
|
-
u.value || (
|
|
1200
|
+
return (k, j) => {
|
|
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,
|
|
1204
|
-
"onUpdate:modelValue":
|
|
1207
|
+
"onUpdate:modelValue": j[0] || (j[0] = (B) => p.value = B),
|
|
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
|
-
href:
|
|
1214
|
-
},
|
|
1216
|
+
href: k.modelValue.download_link
|
|
1217
|
+
}, b(k.modelValue.filename), 9, po)) : y("", !0)
|
|
1215
1218
|
])) : y("", !0),
|
|
1216
|
-
|
|
1217
|
-
|
|
1219
|
+
g("div", _o, [
|
|
1220
|
+
g("input", {
|
|
1218
1221
|
ref: "file",
|
|
1219
1222
|
type: "file",
|
|
1220
|
-
accept: (M = (O =
|
|
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"])
|
|
1227
1230
|
}, {
|
|
1228
1231
|
default: v(() => [
|
|
1229
|
-
D(
|
|
1232
|
+
D(b(e(F)("action.clear", { capitalize: !0 })), 1)
|
|
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
|
-
D(
|
|
1242
|
+
D(b(e(F)("action.remove", { capitalize: !0 })), 1)
|
|
1240
1243
|
]),
|
|
1241
1244
|
_: 1
|
|
1242
1245
|
})
|
|
@@ -1246,37 +1249,37 @@ 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",
|
|
1268
1271
|
ref: l,
|
|
1269
1272
|
class: "container__content"
|
|
1270
1273
|
}, [
|
|
1271
|
-
|
|
1274
|
+
I(u.$slots, "default", {}, void 0, !0)
|
|
1272
1275
|
], 512)) : y("", !0),
|
|
1273
|
-
u.$slots.footer ? (o(), s("div",
|
|
1274
|
-
|
|
1276
|
+
u.$slots.footer ? (o(), s("div", bo, [
|
|
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,52 +1292,52 @@ 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
|
|
1318
1321
|
}),
|
|
1319
|
-
onClick: n[0] || (n[0] = (
|
|
1322
|
+
onClick: n[0] || (n[0] = (k) => p.value ? h() : d())
|
|
1320
1323
|
}, [
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
(o(!0), s(J, null, U(_.indexes, (
|
|
1324
|
-
key: `index-${_.item._id}-${
|
|
1324
|
+
I(_.$slots, "default", {}, void 0, !0),
|
|
1325
|
+
g("div", ko, [
|
|
1326
|
+
(o(!0), s(J, null, U(_.indexes, (k, j) => (o(), s("div", {
|
|
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,67 +1350,74 @@ 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
|
-
}),
|
|
1356
|
-
const
|
|
1358
|
+
}), m = H(() => n.value.data), k = H(() => n.value.pagination), j = X(0), R = X(h[0]), Y = X(!1), K = X({}), O = () => {
|
|
1359
|
+
const A = {};
|
|
1357
1360
|
if (p) {
|
|
1358
|
-
const
|
|
1359
|
-
|
|
1361
|
+
const w = e(p);
|
|
1362
|
+
A[w] = d;
|
|
1360
1363
|
}
|
|
1361
|
-
return a.constraints ?
|
|
1364
|
+
return a.constraints ? Et(a.constraints, A) : {};
|
|
1362
1365
|
}, M = () => {
|
|
1363
|
-
|
|
1364
|
-
},
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
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)))
|
|
1369
|
+
return u.$actions.custom("getAll", {
|
|
1370
|
+
limit: Re,
|
|
1371
|
+
offset: j.value * Re,
|
|
1372
|
+
filters: O()
|
|
1373
|
+
});
|
|
1374
|
+
const A = h.filter((w) => {
|
|
1375
|
+
var Z;
|
|
1376
|
+
return ((Z = K.value[w]) == null ? void 0 : Z.length) > 0;
|
|
1377
|
+
}).map((w) => ({
|
|
1378
|
+
[w]: {
|
|
1379
|
+
$regex: K.value[w].trim().replace("(", "\\(").replace(")", "\\)"),
|
|
1380
|
+
$options: "i"
|
|
1381
|
+
}
|
|
1382
|
+
}));
|
|
1383
|
+
return u.$actions.custom("getAll", {
|
|
1384
|
+
limit: Re,
|
|
1385
|
+
offset: j.value * Re,
|
|
1386
|
+
filters: {
|
|
1387
|
+
...O(),
|
|
1388
|
+
...A.length > 0 && {
|
|
1389
|
+
$or: A
|
|
1380
1390
|
}
|
|
1381
|
-
}
|
|
1382
|
-
}
|
|
1383
|
-
}
|
|
1391
|
+
}
|
|
1392
|
+
});
|
|
1393
|
+
}, B = async () => {
|
|
1384
1394
|
if (u.loading.getAll)
|
|
1385
1395
|
return;
|
|
1386
|
-
const
|
|
1387
|
-
n.value.pagination =
|
|
1396
|
+
const A = await W();
|
|
1397
|
+
n.value.pagination = A.pagination, j.value === 0 && n.value.data.splice(0), n.value.data.push(...A.data);
|
|
1388
1398
|
}, [ee] = ht({
|
|
1389
1399
|
delay: 800
|
|
1390
1400
|
})(() => {
|
|
1391
|
-
|
|
1392
|
-
}),
|
|
1393
|
-
|
|
1394
|
-
},
|
|
1395
|
-
"effect" in l ? r("update:panel", !0) : l.value = !0,
|
|
1401
|
+
j.value = 0, B(), Y.value = !1;
|
|
1402
|
+
}), V = () => {
|
|
1403
|
+
Y.value = !0, ee();
|
|
1404
|
+
}, L = () => {
|
|
1405
|
+
"effect" in l ? r("update:panel", !0) : l.value = !0, B();
|
|
1396
1406
|
}, te = () => {
|
|
1397
|
-
|
|
1398
|
-
}, oe = H(() => !Object.values(
|
|
1399
|
-
re(oe, (
|
|
1400
|
-
|
|
1407
|
+
j.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
|
|
1408
|
+
}, oe = H(() => !Object.values(K.value).some((A) => !!A));
|
|
1409
|
+
re(oe, (A, w) => {
|
|
1410
|
+
A && !w && B();
|
|
1401
1411
|
}), mt(() => {
|
|
1402
|
-
t.selectOnly &&
|
|
1412
|
+
t.selectOnly && B();
|
|
1403
1413
|
});
|
|
1404
|
-
const le = (
|
|
1405
|
-
_.value =
|
|
1406
|
-
},
|
|
1414
|
+
const le = (A) => {
|
|
1415
|
+
_.value = A, t.selectOnly || r("update:modelValue", A);
|
|
1416
|
+
}, f = () => {
|
|
1407
1417
|
te(), r("update:modelValue", _.value);
|
|
1408
1418
|
};
|
|
1409
|
-
return (
|
|
1410
|
-
const
|
|
1419
|
+
return (A, w) => {
|
|
1420
|
+
const Z = ne("clickable");
|
|
1411
1421
|
return o(), s("div", null, [
|
|
1412
1422
|
e(l) ? (o(), $(Ge, {
|
|
1413
1423
|
key: 0,
|
|
@@ -1416,7 +1426,7 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1416
1426
|
z(Ae, {
|
|
1417
1427
|
float: "",
|
|
1418
1428
|
"close-hint": "",
|
|
1419
|
-
title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(
|
|
1429
|
+
title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(A.propertyName)}`,
|
|
1420
1430
|
"overlay-layer": 65,
|
|
1421
1431
|
"model-value": e(l),
|
|
1422
1432
|
style: { "--panel-max-width": "36rem" },
|
|
@@ -1426,106 +1436,106 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1426
1436
|
footer: v(() => [
|
|
1427
1437
|
z(ie, {
|
|
1428
1438
|
large: "",
|
|
1429
|
-
onClick:
|
|
1439
|
+
onClick: f
|
|
1430
1440
|
}, {
|
|
1431
1441
|
default: v(() => [
|
|
1432
|
-
D(
|
|
1442
|
+
D(b(e(F)("action.save", { capitalize: !0 })), 1)
|
|
1433
1443
|
]),
|
|
1434
1444
|
_: 1
|
|
1435
1445
|
})
|
|
1436
1446
|
]),
|
|
1437
1447
|
default: v(() => {
|
|
1438
|
-
var
|
|
1448
|
+
var C, T;
|
|
1439
1449
|
return [
|
|
1440
|
-
|
|
1441
|
-
|
|
1450
|
+
g("div", Co, [
|
|
1451
|
+
g("div", Io, [
|
|
1442
1452
|
e(h).length > 1 ? (o(), $(Ee, {
|
|
1443
1453
|
key: 0,
|
|
1444
|
-
modelValue:
|
|
1445
|
-
"onUpdate:modelValue":
|
|
1446
|
-
onChange:
|
|
1454
|
+
modelValue: R.value,
|
|
1455
|
+
"onUpdate:modelValue": w[0] || (w[0] = (S) => R.value = S),
|
|
1456
|
+
onChange: w[1] || (w[1] = (S) => K.value = {})
|
|
1447
1457
|
}, {
|
|
1448
1458
|
default: v(() => [
|
|
1449
|
-
(o(!0), s(J, null, U(e(h), (
|
|
1450
|
-
key: `searchfield-${
|
|
1451
|
-
value:
|
|
1452
|
-
},
|
|
1459
|
+
(o(!0), s(J, null, U(e(h), (S) => (o(), s("option", {
|
|
1460
|
+
key: `searchfield-${S}`,
|
|
1461
|
+
value: S
|
|
1462
|
+
}, b(e(F)(S)), 9, Ao))), 128))
|
|
1453
1463
|
]),
|
|
1454
1464
|
_: 1
|
|
1455
1465
|
}, 8, ["modelValue"])) : y("", !0),
|
|
1456
|
-
|
|
1466
|
+
g("div", Oo, [
|
|
1457
1467
|
(o(), $(Ie, {
|
|
1458
|
-
key: `field-${
|
|
1459
|
-
modelValue:
|
|
1460
|
-
"onUpdate:modelValue":
|
|
1468
|
+
key: `field-${R.value}`,
|
|
1469
|
+
modelValue: K.value[R.value],
|
|
1470
|
+
"onUpdate:modelValue": w[2] || (w[2] = (S) => K.value[R.value] = S),
|
|
1461
1471
|
property: {
|
|
1462
|
-
...e(u).properties[
|
|
1472
|
+
...e(u).properties[R.value],
|
|
1463
1473
|
inputType: "search"
|
|
1464
1474
|
},
|
|
1465
|
-
onInput:
|
|
1475
|
+
onInput: V
|
|
1466
1476
|
}, null, 8, ["modelValue", "property"]))
|
|
1467
1477
|
])
|
|
1468
1478
|
]),
|
|
1469
|
-
|
|
1479
|
+
m.value.length ? (o(), $(it, {
|
|
1470
1480
|
key: 0,
|
|
1471
1481
|
"observe-scroll": "",
|
|
1472
1482
|
onEndReached: M
|
|
1473
1483
|
}, {
|
|
1474
1484
|
default: v(() => [
|
|
1475
|
-
(o(!0), s(J, null, U(
|
|
1476
|
-
item:
|
|
1485
|
+
(o(!0), s(J, null, U(m.value, (S) => (o(), $(De, E({ ref_for: !0 }, {
|
|
1486
|
+
item: S,
|
|
1477
1487
|
indexes: e(h),
|
|
1478
|
-
property:
|
|
1488
|
+
property: A.property
|
|
1479
1489
|
}, {
|
|
1480
|
-
key: `matching-${
|
|
1490
|
+
key: `matching-${S._id}`,
|
|
1481
1491
|
modelValue: _.value,
|
|
1482
|
-
"onUpdate:modelValue":
|
|
1492
|
+
"onUpdate:modelValue": w[3] || (w[3] = (ae) => _.value = ae)
|
|
1483
1493
|
}), null, 16, ["modelValue"]))), 128))
|
|
1484
1494
|
]),
|
|
1485
1495
|
_: 1
|
|
1486
|
-
})) : (o(), s("div",
|
|
1487
|
-
|
|
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)
|
|
1488
1498
|
]))
|
|
1489
1499
|
]),
|
|
1490
|
-
|
|
1500
|
+
g("div", jo, b(e(F)("showing", { capitalize: !0 })) + " " + b(m.value.length) + " " + b(e(F)("of")) + " " + b(k.value.recordsTotal), 1)
|
|
1491
1501
|
];
|
|
1492
1502
|
}),
|
|
1493
1503
|
_: 1
|
|
1494
1504
|
}, 8, ["title", "model-value"])
|
|
1495
1505
|
])) : y("", !0),
|
|
1496
|
-
|
|
1506
|
+
A.selectOnly ? y("", !0) : (o(), s("div", To, [
|
|
1497
1507
|
z(it, null, {
|
|
1498
1508
|
footer: v(() => [
|
|
1499
|
-
|
|
1509
|
+
N((o(), $(P, {
|
|
1500
1510
|
icon: "plus",
|
|
1501
|
-
onClick:
|
|
1511
|
+
onClick: L
|
|
1502
1512
|
}, {
|
|
1503
1513
|
default: v(() => [
|
|
1504
|
-
D(
|
|
1514
|
+
D(b(e(F)("action.select", { capitalize: !0 })), 1)
|
|
1505
1515
|
]),
|
|
1506
1516
|
_: 1
|
|
1507
1517
|
})), [
|
|
1508
|
-
[
|
|
1518
|
+
[Z]
|
|
1509
1519
|
])
|
|
1510
1520
|
]),
|
|
1511
1521
|
default: v(() => {
|
|
1512
|
-
var
|
|
1522
|
+
var C;
|
|
1513
1523
|
return [
|
|
1514
|
-
"items" in
|
|
1515
|
-
(o(!0), s(J, null, U(
|
|
1524
|
+
"items" in A.property ? (o(), s("div", Lo, [
|
|
1525
|
+
(o(!0), s(J, null, U(A.modelValue, (T) => (o(), $(De, E({ ref_for: !0 }, {
|
|
1516
1526
|
item: T,
|
|
1517
1527
|
indexes: e(h),
|
|
1518
|
-
property:
|
|
1519
|
-
modelValue:
|
|
1528
|
+
property: A.property,
|
|
1529
|
+
modelValue: A.modelValue
|
|
1520
1530
|
}, {
|
|
1521
1531
|
key: `selected-${T._id}`,
|
|
1522
1532
|
"onUpdate:modelValue": le
|
|
1523
1533
|
}), null, 16))), 128))
|
|
1524
|
-
])) : (
|
|
1525
|
-
item:
|
|
1534
|
+
])) : (C = A.modelValue) != null && C._id ? (o(), $(De, E({ key: 1 }, {
|
|
1535
|
+
item: A.modelValue,
|
|
1526
1536
|
indexes: e(h),
|
|
1527
1537
|
property: e(a),
|
|
1528
|
-
modelValue:
|
|
1538
|
+
modelValue: A.modelValue
|
|
1529
1539
|
}, { "onUpdate:modelValue": le }), null, 16)) : y("", !0)
|
|
1530
1540
|
];
|
|
1531
1541
|
}),
|
|
@@ -1536,13 +1546,13 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1536
1546
|
};
|
|
1537
1547
|
}
|
|
1538
1548
|
});
|
|
1539
|
-
const
|
|
1549
|
+
const zo = /* @__PURE__ */ G(Ro, [["__scopeId", "data-v-d1967e9e"]]), rt = (c, i) => {
|
|
1540
1550
|
const t = "items" in c ? c.items : c, a = {
|
|
1541
|
-
options:
|
|
1551
|
+
options: Wn,
|
|
1542
1552
|
select: Ee,
|
|
1543
|
-
switch:
|
|
1544
|
-
file:
|
|
1545
|
-
search:
|
|
1553
|
+
switch: Nn,
|
|
1554
|
+
file: ho,
|
|
1555
|
+
search: zo,
|
|
1546
1556
|
input: Ie,
|
|
1547
1557
|
form: He
|
|
1548
1558
|
}, l = (() => {
|
|
@@ -1562,32 +1572,32 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, i
|
|
|
1562
1572
|
return r ? r.inline ? "form" : r.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in t ? "select" : "input";
|
|
1563
1573
|
})();
|
|
1564
1574
|
return i[l] ? i[l] : a[l];
|
|
1565
|
-
},
|
|
1575
|
+
}, Mo = (c, i, t) => {
|
|
1566
1576
|
c ?? (c = []);
|
|
1567
1577
|
const a = "items" in i ? i.items : i;
|
|
1568
1578
|
if ("$ref" in a) {
|
|
1569
1579
|
const l = ue(a.$ref, t), r = Se(l.$freshItem);
|
|
1570
1580
|
return c.unshift(r);
|
|
1571
1581
|
}
|
|
1572
|
-
return "properties" in a ? c.unshift(
|
|
1573
|
-
},
|
|
1582
|
+
return "properties" in a ? c.unshift(Ht(a)) : "type" in a && a.type === "boolean" ? c.unshift({}) : c.unshift(null);
|
|
1583
|
+
}, Fo = (c, i) => {
|
|
1574
1584
|
c.splice(i, 1);
|
|
1575
|
-
},
|
|
1585
|
+
}, qo = {
|
|
1576
1586
|
key: 0,
|
|
1577
1587
|
class: "form__header"
|
|
1578
|
-
},
|
|
1588
|
+
}, Uo = {
|
|
1579
1589
|
key: 1,
|
|
1580
1590
|
class: "form__fieldset"
|
|
1581
|
-
},
|
|
1591
|
+
}, Eo = { key: 0 }, Ho = ["innerHTML"], Do = ["onInput"], Qo = { key: 4 }, Go = { value: "true" }, Wo = { value: "false" }, Xo = {
|
|
1582
1592
|
key: 5,
|
|
1583
1593
|
style: { display: "grid", "row-gap": ".4rem" }
|
|
1584
|
-
},
|
|
1594
|
+
}, Yo = { style: { "flex-grow": "1" } }, Jo = {
|
|
1585
1595
|
key: 7,
|
|
1586
1596
|
class: "form__validation-error"
|
|
1587
|
-
},
|
|
1597
|
+
}, Ko = { key: 0 }, Zo = { key: 1 }, Po = {
|
|
1588
1598
|
key: 3,
|
|
1589
1599
|
class: "form__footer"
|
|
1590
|
-
},
|
|
1600
|
+
}, No = /* @__PURE__ */ q({
|
|
1591
1601
|
__name: "aeria-form",
|
|
1592
1602
|
props: {
|
|
1593
1603
|
modelValue: {},
|
|
@@ -1600,6 +1610,7 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, i
|
|
|
1600
1610
|
isReadOnly: { type: Boolean, default: !1 },
|
|
1601
1611
|
searchOnly: { type: Boolean },
|
|
1602
1612
|
layout: {},
|
|
1613
|
+
formLayout: {},
|
|
1603
1614
|
required: {},
|
|
1604
1615
|
formComponents: {},
|
|
1605
1616
|
propertyComponents: {},
|
|
@@ -1619,226 +1630,226 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, i
|
|
|
1619
1630
|
const r = a.property && pe(a.property), u = r ? r.$ref : a.collection || Te(), p = u ? ue(e(u)) : null;
|
|
1620
1631
|
!u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1621
1632
|
collection prop, some features may not work as intended`);
|
|
1622
|
-
const d =
|
|
1623
|
-
const
|
|
1624
|
-
return a[
|
|
1625
|
-
},
|
|
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");
|
|
1626
1637
|
u && ye(Ue, u), ye("searchOnly", a.searchOnly);
|
|
1627
|
-
const O = (
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
])) : null, M = (
|
|
1631
|
-
var
|
|
1638
|
+
const O = (f) => h.value ? Object.entries(h.value).filter(([A, w]) => !w.noForm && f([
|
|
1639
|
+
A,
|
|
1640
|
+
w
|
|
1641
|
+
])) : null, M = (f) => {
|
|
1642
|
+
var w;
|
|
1632
1643
|
if (a.searchOnly || !u)
|
|
1633
1644
|
return !0;
|
|
1634
|
-
const
|
|
1635
|
-
return !
|
|
1636
|
-
},
|
|
1637
|
-
var T,
|
|
1638
|
-
const
|
|
1639
|
-
if (!
|
|
1645
|
+
const A = a.property && "properties" in a.property ? a.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
|
|
1646
|
+
return !A || A.includes(f);
|
|
1647
|
+
}, W = O(([f]) => M(f)), B = je(), ee = {}, V = (f, A) => {
|
|
1648
|
+
var T, S, ae, _e;
|
|
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);
|
|
1650
|
+
if (!A)
|
|
1640
1651
|
return;
|
|
1641
|
-
if (
|
|
1652
|
+
if (Z != null && Z.if && !a.searchOnly) {
|
|
1642
1653
|
const me = Qe(
|
|
1643
1654
|
a.modelValue,
|
|
1644
|
-
|
|
1655
|
+
Z.if
|
|
1645
1656
|
);
|
|
1646
|
-
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] = [
|
|
1647
1658
|
void 0,
|
|
1648
1659
|
null
|
|
1649
|
-
].includes(a.modelValue[
|
|
1660
|
+
].includes(a.modelValue[f]) ? null : a.modelValue[f].constructor()), w.push("display: none;")), ee[f] = me.satisfied;
|
|
1650
1661
|
}
|
|
1651
|
-
const
|
|
1652
|
-
return
|
|
1653
|
-
--field-span: ${
|
|
1662
|
+
const C = B.value.md && (Z == null ? void 0 : Z.span) || 6;
|
|
1663
|
+
return w.push(`
|
|
1664
|
+
--field-span: ${C};
|
|
1654
1665
|
grid-column: span var(--field-span) / span var(--field-span);
|
|
1655
|
-
`),
|
|
1656
|
-
--vertical-spacing: ${
|
|
1666
|
+
`), Z && (Z.verticalSpacing && w.push(`
|
|
1667
|
+
--vertical-spacing: ${Z.verticalSpacing};
|
|
1657
1668
|
padding: var(--vertical-spacing) 0;
|
|
1658
|
-
`),
|
|
1669
|
+
`), Z.separator && w.push(`
|
|
1659
1670
|
border-top: 1px solid var(--theme-border-color);
|
|
1660
1671
|
border-width: 1px 0 1px 0;
|
|
1661
1672
|
padding: 1rem 0;
|
|
1662
1673
|
margin: 1rem 0;
|
|
1663
|
-
`)),
|
|
1664
|
-
},
|
|
1674
|
+
`)), w.join("");
|
|
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(
|
|
1665
1676
|
a.modelValue,
|
|
1666
1677
|
a.form,
|
|
1667
1678
|
te.value,
|
|
1668
1679
|
p == null ? void 0 : p.description
|
|
1669
|
-
) : !0), le = (
|
|
1670
|
-
var
|
|
1671
|
-
return (
|
|
1680
|
+
) : !0), le = (f, A) => {
|
|
1681
|
+
var 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;
|
|
1672
1683
|
};
|
|
1673
|
-
return (
|
|
1674
|
-
const
|
|
1684
|
+
return (f, A) => {
|
|
1685
|
+
const w = ne("clickable"), Z = ne("focus");
|
|
1675
1686
|
return o(), s("form", {
|
|
1676
1687
|
class: "form",
|
|
1677
|
-
style: $e(`row-gap: ${e(
|
|
1688
|
+
style: $e(`row-gap: ${e(R) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1678
1689
|
}, [
|
|
1679
|
-
|
|
1680
|
-
|
|
1690
|
+
f.$slots.header && !e(R) ? (o(), s("header", qo, [
|
|
1691
|
+
I(f.$slots, "header", {}, void 0, !0)
|
|
1681
1692
|
])) : y("", !0),
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
(o(!0), s(J, null, U(e(
|
|
1685
|
-
var
|
|
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]) => {
|
|
1696
|
+
var S, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
|
|
1686
1697
|
return o(), s("div", {
|
|
1687
|
-
key: `field-${
|
|
1688
|
-
style: $e(C
|
|
1698
|
+
key: `field-${C}`,
|
|
1699
|
+
style: $e(V(C, T)),
|
|
1689
1700
|
class: "form__field"
|
|
1690
1701
|
}, [
|
|
1691
|
-
(!("type" in T) || T.type !== "boolean" ||
|
|
1692
|
-
|
|
1702
|
+
(!("type" in T) || T.type !== "boolean" || f.searchOnly) && !T.noLabel && !e(Y) && !e(K) ? (o(), s("label", Eo, [
|
|
1703
|
+
g("div", {
|
|
1693
1704
|
class: Q({
|
|
1694
1705
|
"form__field-label": !0,
|
|
1695
1706
|
"form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
|
|
1696
|
-
"form__field-required-hint":
|
|
1707
|
+
"form__field-required-hint": f.highlightRequired && !f.searchOnly && (!te.value || e(Dt)(C, te.value, f.modelValue))
|
|
1697
1708
|
})
|
|
1698
|
-
},
|
|
1709
|
+
}, b(T.description || e(F)(C)), 3),
|
|
1699
1710
|
T.hint ? (o(), s("div", {
|
|
1700
1711
|
key: 0,
|
|
1701
1712
|
innerHTML: T.hint
|
|
1702
|
-
}, null, 8,
|
|
1713
|
+
}, null, 8, Ho)) : y("", !0)
|
|
1703
1714
|
])) : y("", !0),
|
|
1704
|
-
|
|
1715
|
+
f.$slots[`field-${C}`] ? I(f.$slots, `field-${C}`, E({
|
|
1705
1716
|
key: 1,
|
|
1706
1717
|
ref_for: !0
|
|
1707
1718
|
}, {
|
|
1708
1719
|
propery: T,
|
|
1709
|
-
properyName:
|
|
1710
|
-
modelValue:
|
|
1711
|
-
}), void 0, !0) : (_e = (ae = (
|
|
1720
|
+
properyName: C,
|
|
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({
|
|
1712
1723
|
key: 2,
|
|
1713
|
-
modelValue:
|
|
1714
|
-
"onUpdate:modelValue": (x) =>
|
|
1724
|
+
modelValue: f.modelValue[C],
|
|
1725
|
+
"onUpdate:modelValue": (x) => f.modelValue[C] = x,
|
|
1715
1726
|
ref_for: !0
|
|
1716
1727
|
}, {
|
|
1717
1728
|
property: T,
|
|
1718
|
-
propertyName:
|
|
1719
|
-
...
|
|
1729
|
+
propertyName: C,
|
|
1730
|
+
...f.layout.fields[C].component.props || {}
|
|
1720
1731
|
}, {
|
|
1721
|
-
onInput: (x) => l("input",
|
|
1722
|
-
onChange:
|
|
1723
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) &&
|
|
1732
|
+
onInput: (x) => l("input", C),
|
|
1733
|
+
onChange: A[0] || (A[0] = (x) => l("change", x))
|
|
1734
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && f.searchOnly ? (o(), s("div", {
|
|
1724
1735
|
key: 3,
|
|
1725
1736
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1726
|
-
onInput: (x) => l("input",
|
|
1727
|
-
onChange:
|
|
1737
|
+
onInput: (x) => l("input", C),
|
|
1738
|
+
onChange: A[1] || (A[1] = (x) => l("change", x))
|
|
1728
1739
|
}, [
|
|
1729
1740
|
z(Ie, E({
|
|
1730
|
-
modelValue:
|
|
1731
|
-
"onUpdate:modelValue": (x) =>
|
|
1741
|
+
modelValue: f.modelValue[C].$gte,
|
|
1742
|
+
"onUpdate:modelValue": (x) => f.modelValue[C].$gte = x,
|
|
1732
1743
|
ref_for: !0
|
|
1733
1744
|
}, {
|
|
1734
1745
|
property: T,
|
|
1735
|
-
propertyName:
|
|
1746
|
+
propertyName: C
|
|
1736
1747
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1737
1748
|
z(Ie, E({
|
|
1738
|
-
modelValue:
|
|
1739
|
-
"onUpdate:modelValue": (x) =>
|
|
1749
|
+
modelValue: f.modelValue[C].$lte,
|
|
1750
|
+
"onUpdate:modelValue": (x) => f.modelValue[C].$lte = x,
|
|
1740
1751
|
ref_for: !0
|
|
1741
1752
|
}, {
|
|
1742
1753
|
property: T,
|
|
1743
|
-
propertyName:
|
|
1754
|
+
propertyName: C
|
|
1744
1755
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1745
|
-
], 40,
|
|
1756
|
+
], 40, Do)) : "type" in T && T.type === "boolean" && f.searchOnly ? (o(), s("div", Qo, [
|
|
1746
1757
|
z(Ee, E({ ref_for: !0 }, {
|
|
1747
1758
|
property: T,
|
|
1748
|
-
propertyName:
|
|
1759
|
+
propertyName: C
|
|
1749
1760
|
}, {
|
|
1750
1761
|
"boolean-ref": "",
|
|
1751
|
-
"model-value":
|
|
1752
|
-
onChange:
|
|
1762
|
+
"model-value": f.modelValue[C],
|
|
1763
|
+
onChange: A[2] || (A[2] = (x) => l("change", x)),
|
|
1753
1764
|
"onUpdate:modelValue": (x) => {
|
|
1754
|
-
|
|
1765
|
+
f.modelValue[C] = x == "true" ? !0 : x == "false" ? !1 : null;
|
|
1755
1766
|
}
|
|
1756
1767
|
}), {
|
|
1757
1768
|
default: v(() => [
|
|
1758
|
-
|
|
1759
|
-
|
|
1769
|
+
g("option", Go, b(e(F)("yes")), 1),
|
|
1770
|
+
g("option", Wo, b(e(F)("no")), 1)
|
|
1760
1771
|
]),
|
|
1761
1772
|
_: 2
|
|
1762
1773
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1763
|
-
])) :
|
|
1764
|
-
|
|
1774
|
+
])) : f.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (o(), s("div", Xo, [
|
|
1775
|
+
g("div", null, [
|
|
1765
1776
|
z(ie, {
|
|
1766
1777
|
small: "",
|
|
1767
1778
|
variant: "alt",
|
|
1768
1779
|
icon: "plus",
|
|
1769
|
-
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])),
|
|
1770
1781
|
onClick: ze((x) => {
|
|
1771
|
-
|
|
1782
|
+
f.modelValue[C] || (f.modelValue[C] = []), e(Mo)(f.modelValue[C], T, e(t));
|
|
1772
1783
|
}, ["prevent"])
|
|
1773
1784
|
}, {
|
|
1774
1785
|
default: v(() => [
|
|
1775
|
-
D(
|
|
1786
|
+
D(b(e(F)("action.add", { capitalize: !0 })), 1)
|
|
1776
1787
|
]),
|
|
1777
1788
|
_: 2
|
|
1778
1789
|
}, 1032, ["disabled", "onClick"])
|
|
1779
1790
|
]),
|
|
1780
|
-
(o(!0), s(J, null, U(
|
|
1791
|
+
(o(!0), s(J, null, U(f.modelValue[C], (x, Oe) => {
|
|
1781
1792
|
var tt, nt, ot, at, lt, st;
|
|
1782
1793
|
return o(), s("div", {
|
|
1783
|
-
key: `rep-${
|
|
1794
|
+
key: `rep-${C}-${Oe}`,
|
|
1784
1795
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
1785
1796
|
}, [
|
|
1786
|
-
|
|
1787
|
-
(o(), $(he(e(rt)(T, e(
|
|
1788
|
-
modelValue:
|
|
1789
|
-
"onUpdate:modelValue": (we) =>
|
|
1797
|
+
g("div", Yo, [
|
|
1798
|
+
(o(), $(he(e(rt)(T, e(k))), E({
|
|
1799
|
+
modelValue: f.modelValue[C][Oe],
|
|
1800
|
+
"onUpdate:modelValue": (we) => f.modelValue[C][Oe] = we,
|
|
1790
1801
|
ref_for: !0
|
|
1791
1802
|
}, {
|
|
1792
1803
|
property: T.items,
|
|
1793
|
-
propertyName:
|
|
1804
|
+
propertyName: C,
|
|
1794
1805
|
parentCollection: e(u),
|
|
1795
|
-
parentPropertyName:
|
|
1796
|
-
columns: ((ot = (nt = (tt =
|
|
1797
|
-
validationErrors: le(
|
|
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),
|
|
1808
|
+
validationErrors: le(C, Oe),
|
|
1798
1809
|
...T.componentProps || {}
|
|
1799
1810
|
}, {
|
|
1800
|
-
onInput: (we) => l("input",
|
|
1801
|
-
onChange:
|
|
1811
|
+
onInput: (we) => l("input", C),
|
|
1812
|
+
onChange: A[3] || (A[3] = (we) => l("change", we))
|
|
1802
1813
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1803
1814
|
]),
|
|
1804
|
-
|
|
1815
|
+
N(z(P, {
|
|
1805
1816
|
reactive: "",
|
|
1806
1817
|
icon: "trash",
|
|
1807
|
-
onClick: (we) => e(
|
|
1818
|
+
onClick: (we) => e(Fo)(f.modelValue[C], Oe)
|
|
1808
1819
|
}, null, 8, ["onClick"]), [
|
|
1809
|
-
[
|
|
1820
|
+
[w]
|
|
1810
1821
|
])
|
|
1811
1822
|
]);
|
|
1812
1823
|
}), 128))
|
|
1813
|
-
])) :
|
|
1824
|
+
])) : f.modelValue ? N((o(), $(he(e(rt)(T, e(k))), E({
|
|
1814
1825
|
key: 6,
|
|
1815
|
-
modelValue:
|
|
1816
|
-
"onUpdate:modelValue": (x) =>
|
|
1826
|
+
modelValue: f.modelValue[C],
|
|
1827
|
+
"onUpdate:modelValue": (x) => f.modelValue[C] = x,
|
|
1817
1828
|
ref_for: !0
|
|
1818
1829
|
}, {
|
|
1819
1830
|
property: T,
|
|
1820
|
-
propertyName:
|
|
1821
|
-
parentPropertyName:
|
|
1831
|
+
propertyName: C,
|
|
1832
|
+
parentPropertyName: f.parentPropertyName,
|
|
1822
1833
|
parentCollection: e(u),
|
|
1823
|
-
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),
|
|
1824
1835
|
...T.componentProps || {},
|
|
1825
|
-
validationErrors: le(
|
|
1836
|
+
validationErrors: le(C)
|
|
1826
1837
|
}, {
|
|
1827
|
-
onInput: (x) => l("input",
|
|
1828
|
-
onChange:
|
|
1838
|
+
onInput: (x) => l("input", C),
|
|
1839
|
+
onChange: A[4] || (A[4] = (x) => l("change", x))
|
|
1829
1840
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1830
|
-
[
|
|
1841
|
+
[Z, !d.value && (d.value = !!f.focus)]
|
|
1831
1842
|
]) : y("", !0),
|
|
1832
|
-
(et =
|
|
1833
|
-
|
|
1834
|
-
|
|
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)
|
|
1835
1846
|
])) : y("", !0)
|
|
1836
1847
|
], 4);
|
|
1837
1848
|
}), 128))
|
|
1838
1849
|
])),
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
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({
|
|
1842
1853
|
isInsertReady: oe.value
|
|
1843
1854
|
})), void 0, !0)
|
|
1844
1855
|
])) : y("", !0)
|
|
@@ -1846,13 +1857,13 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, i
|
|
|
1846
1857
|
};
|
|
1847
1858
|
}
|
|
1848
1859
|
});
|
|
1849
|
-
const He = /* @__PURE__ */ G(
|
|
1860
|
+
const He = /* @__PURE__ */ G(No, [["__scopeId", "data-v-20423d9b"]]), xo = /* @__PURE__ */ q({
|
|
1850
1861
|
__name: "aeria-filter-panel",
|
|
1851
1862
|
emits: ["update:modelValue"],
|
|
1852
1863
|
setup(c, { emit: i }) {
|
|
1853
|
-
const t = i, a = ge(), l =
|
|
1864
|
+
const t = i, a = ge(), l = Le(), r = () => {
|
|
1854
1865
|
a.pagination.offset = 0, a.$actions.filter(), t("update:modelValue", !1), l.push({
|
|
1855
|
-
query:
|
|
1866
|
+
query: Mt(a)
|
|
1856
1867
|
});
|
|
1857
1868
|
};
|
|
1858
1869
|
return (u, p) => (o(), $(Ae, {
|
|
@@ -1871,10 +1882,10 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1871
1882
|
})
|
|
1872
1883
|
}, {
|
|
1873
1884
|
default: v(() => [
|
|
1874
|
-
D(
|
|
1885
|
+
D(b(u.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1875
1886
|
z(be, null, {
|
|
1876
1887
|
default: v(() => [
|
|
1877
|
-
D(
|
|
1888
|
+
D(b(e(a).filtersCount), 1)
|
|
1878
1889
|
]),
|
|
1879
1890
|
_: 1
|
|
1880
1891
|
})
|
|
@@ -1888,7 +1899,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1888
1899
|
onClick: r
|
|
1889
1900
|
}, {
|
|
1890
1901
|
default: v(() => [
|
|
1891
|
-
D(
|
|
1902
|
+
D(b(u.t("action.filter", { capitalize: !0 })), 1)
|
|
1892
1903
|
]),
|
|
1893
1904
|
_: 1
|
|
1894
1905
|
}, 8, ["disabled"])
|
|
@@ -1906,13 +1917,13 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1906
1917
|
_: 1
|
|
1907
1918
|
}, 8, ["title"]));
|
|
1908
1919
|
}
|
|
1909
|
-
}), se =
|
|
1920
|
+
}), se = X(!1), ut = X(!1), ke = X(!1), Be = X((...c) => null), ct = X(), dt = !1, ea = /* @__PURE__ */ q({
|
|
1910
1921
|
__name: "aeria-insert-panel",
|
|
1911
1922
|
setup(c) {
|
|
1912
1923
|
const i = ue("meta"), t = ue(i.view.collection), a = ve("individualActions", []), l = async () => {
|
|
1913
|
-
const p = await t.$actions.deepInsert();
|
|
1914
|
-
|
|
1915
|
-
}, { t: r } =
|
|
1924
|
+
const { error: p } = await t.$actions.deepInsert();
|
|
1925
|
+
p || (se.value = !1);
|
|
1926
|
+
}, { t: r } = St(), u = () => {
|
|
1916
1927
|
i.$actions.ask({
|
|
1917
1928
|
action: () => {
|
|
1918
1929
|
t.$actions.clearItem(), t.validationErrors = {}, se.value = !1;
|
|
@@ -1932,7 +1943,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1932
1943
|
onOverlayClick: u
|
|
1933
1944
|
}, {
|
|
1934
1945
|
header: v(() => [
|
|
1935
|
-
|
|
1946
|
+
g("span", null, b((() => {
|
|
1936
1947
|
switch (e(se)) {
|
|
1937
1948
|
case "add":
|
|
1938
1949
|
return e(r)("action.add", { capitalize: !0 });
|
|
@@ -1943,7 +1954,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1943
1954
|
return e(r)("action.edit", { capitalize: !0 });
|
|
1944
1955
|
}
|
|
1945
1956
|
})()), 1),
|
|
1946
|
-
|
|
1957
|
+
g("span", null, " " + b(e(r)(e(i).view.collection)), 1)
|
|
1947
1958
|
]),
|
|
1948
1959
|
extra: v(() => [
|
|
1949
1960
|
z(Ce, E({
|
|
@@ -1953,7 +1964,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1953
1964
|
onActionClick: d[2] || (d[2] = (_) => se.value = !1)
|
|
1954
1965
|
}), {
|
|
1955
1966
|
default: v(() => [
|
|
1956
|
-
e(t).item._id ?
|
|
1967
|
+
e(t).item._id ? N((o(), $(P, {
|
|
1957
1968
|
key: 0,
|
|
1958
1969
|
reactive: "",
|
|
1959
1970
|
icon: "dots-three"
|
|
@@ -1970,7 +1981,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1970
1981
|
onClick: u
|
|
1971
1982
|
}, {
|
|
1972
1983
|
default: v(() => [
|
|
1973
|
-
D(
|
|
1984
|
+
D(b(e(r)("action.cancel", { capitalize: !0 })), 1)
|
|
1974
1985
|
]),
|
|
1975
1986
|
_: 1
|
|
1976
1987
|
}),
|
|
@@ -1981,7 +1992,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1981
1992
|
onClick: l
|
|
1982
1993
|
}, {
|
|
1983
1994
|
default: v(() => [
|
|
1984
|
-
D(
|
|
1995
|
+
D(b(e(r)("action.insert", { capitalize: !0 })), 1)
|
|
1985
1996
|
]),
|
|
1986
1997
|
_: 1
|
|
1987
1998
|
}, 8, ["disabled", "loading"])
|
|
@@ -2002,7 +2013,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2002
2013
|
U(Object.keys(p.$slots).filter((_) => _.startsWith("field-")), (_) => ({
|
|
2003
2014
|
name: _,
|
|
2004
2015
|
fn: v((n) => [
|
|
2005
|
-
|
|
2016
|
+
I(p.$slots, _, ce(Ve(n)))
|
|
2006
2017
|
])
|
|
2007
2018
|
}))
|
|
2008
2019
|
]), 1040, ["modelValue"])
|
|
@@ -2011,7 +2022,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2011
2022
|
}, 8, ["modelValue", "loading"]);
|
|
2012
2023
|
};
|
|
2013
2024
|
}
|
|
2014
|
-
}),
|
|
2025
|
+
}), gt = (c, i) => {
|
|
2015
2026
|
if (i) {
|
|
2016
2027
|
if (!c) {
|
|
2017
2028
|
i.filtersPreset = {}, i.preferredTableProperties = [], i.pagination.offset = 0;
|
|
@@ -2019,15 +2030,15 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2019
2030
|
}
|
|
2020
2031
|
i.filtersPreset = c.filters || {}, i.preferredTableProperties = c.table ? Array.from(c.table) : [], i.pagination.offset = 0;
|
|
2021
2032
|
}
|
|
2022
|
-
},
|
|
2033
|
+
}, ta = (c, i = {
|
|
2023
2034
|
persistInQuery: !0
|
|
2024
2035
|
}) => {
|
|
2025
|
-
const a =
|
|
2036
|
+
const a = Le().currentRoute;
|
|
2026
2037
|
return re(() => a.value.query.section, (l) => {
|
|
2027
2038
|
if (c) {
|
|
2028
2039
|
if (c.description.filtersPresets) {
|
|
2029
2040
|
const r = l || Object.keys(c.description.filtersPresets)[0];
|
|
2030
|
-
|
|
2041
|
+
gt(c.description.filtersPresets[r], c);
|
|
2031
2042
|
}
|
|
2032
2043
|
if (i.persistInQuery) {
|
|
2033
2044
|
const r = a.value.query;
|
|
@@ -2040,28 +2051,28 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2040
2051
|
}, {
|
|
2041
2052
|
immediate: !0
|
|
2042
2053
|
});
|
|
2043
|
-
},
|
|
2054
|
+
}, na = (c) => (Fe("data-v-434830ec"), c = c(), qe(), c), oa = {
|
|
2044
2055
|
key: 0,
|
|
2045
2056
|
class: "table aeria-surface"
|
|
2046
|
-
},
|
|
2057
|
+
}, aa = { key: 0 }, la = { key: 1 }, sa = { key: 0 }, ia = ["checked"], ra = {
|
|
2047
2058
|
key: 1,
|
|
2048
2059
|
style: { "text-align": "right" }
|
|
2049
|
-
},
|
|
2060
|
+
}, ua = { key: 2 }, ca = { key: 3 }, da = ["onClick"], pa = { key: 0 }, _a = ["value"], ma = { class: "table__cell-mobile-label" }, fa = {
|
|
2050
2061
|
key: 0,
|
|
2051
2062
|
class: "table__cell-container"
|
|
2052
|
-
},
|
|
2063
|
+
}, va = {
|
|
2053
2064
|
key: 1,
|
|
2054
2065
|
class: "table__cell-container"
|
|
2055
|
-
},
|
|
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 = {
|
|
2056
2067
|
key: 1,
|
|
2057
2068
|
class: "no-print"
|
|
2058
|
-
},
|
|
2069
|
+
}, Oa = { class: "table__cell-actions" }, wa = {
|
|
2059
2070
|
key: 2,
|
|
2060
2071
|
class: "no-print table__mobile-actions"
|
|
2061
|
-
},
|
|
2062
|
-
/* @__PURE__ */
|
|
2063
|
-
], -1)),
|
|
2064
|
-
|
|
2072
|
+
}, Ba = ["id"], Sa = { key: 1 }, ja = /* @__PURE__ */ na(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
|
|
2073
|
+
/* @__PURE__ */ g("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
|
|
2074
|
+
], -1)), Ta = [
|
|
2075
|
+
ja
|
|
2065
2076
|
], La = /* @__PURE__ */ q({
|
|
2066
2077
|
__name: "aeria-table",
|
|
2067
2078
|
props: {
|
|
@@ -2076,139 +2087,139 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2076
2087
|
setup(c, { emit: i }) {
|
|
2077
2088
|
const t = c, a = i, l = je(), r = t.collection || Te(), u = r ? ue(typeof r == "string" ? r : r.value) : null, p = H({
|
|
2078
2089
|
get: () => u == null ? void 0 : u.selected,
|
|
2079
|
-
set: (
|
|
2080
|
-
}), d = (
|
|
2081
|
-
var
|
|
2082
|
-
return !l.value.xl || !((
|
|
2083
|
-
const
|
|
2084
|
-
return 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) => {
|
|
2092
|
+
var k;
|
|
2093
|
+
return !l.value.xl || !((k = t.layout) != null && k.actions) || !t.actions ? [] : t.actions.filter((j) => {
|
|
2094
|
+
const R = t.layout.actions[j.action];
|
|
2095
|
+
return d(R, m);
|
|
2085
2096
|
});
|
|
2086
|
-
}, _ = (
|
|
2087
|
-
var
|
|
2088
|
-
return t.actions ? !l.value.xl || !((
|
|
2089
|
-
const
|
|
2090
|
-
return !d(
|
|
2097
|
+
}, _ = (m) => {
|
|
2098
|
+
var k;
|
|
2099
|
+
return t.actions ? !l.value.xl || !((k = t.layout) != null && k.actions) ? t.actions : t.actions.filter((j) => {
|
|
2100
|
+
const R = t.layout.actions[j.action];
|
|
2101
|
+
return !d(R, m);
|
|
2091
2102
|
}) : [];
|
|
2092
|
-
}, n = (
|
|
2093
|
-
var
|
|
2094
|
-
const
|
|
2095
|
-
return
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
).satisfied ||
|
|
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
|
|
2109
|
+
).satisfied || j.push("display: none;")), j.join("");
|
|
2099
2110
|
};
|
|
2100
|
-
return (
|
|
2101
|
-
var
|
|
2102
|
-
const
|
|
2103
|
-
return
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
])) : (o(), s("thead",
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2111
|
+
return (m, k) => {
|
|
2112
|
+
var R, Y, K;
|
|
2113
|
+
const j = ne("clickable");
|
|
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, [
|
|
2118
|
+
g("tr", null, [
|
|
2119
|
+
m.checkbox && e(u) && e(l).md ? (o(), s("th", sa, [
|
|
2120
|
+
g("input", {
|
|
2110
2121
|
type: "checkbox",
|
|
2111
2122
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2112
|
-
onChange:
|
|
2113
|
-
}, null, 40,
|
|
2123
|
+
onChange: k[0] || (k[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
|
|
2124
|
+
}, null, 40, ia)
|
|
2114
2125
|
])) : y("", !0),
|
|
2115
|
-
(o(!0), s(J, null, U(Object.entries(
|
|
2116
|
-
key: `header-${
|
|
2126
|
+
(o(!0), s(J, null, U(Object.entries(m.columns), ([O, M], W) => (o(), s("th", {
|
|
2127
|
+
key: `header-${W}`,
|
|
2117
2128
|
class: "table__header"
|
|
2118
|
-
},
|
|
2119
|
-
(
|
|
2129
|
+
}, b(M.description || e(F)(O)), 1))), 128)),
|
|
2130
|
+
(R = m.actions) != null && R.length ? (o(), s("th", ra)) : y("", !0)
|
|
2120
2131
|
])
|
|
2121
2132
|
])),
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
])) : (o(), s("tbody",
|
|
2125
|
-
(o(!0), s(J, null, U(
|
|
2126
|
-
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;
|
|
2127
2138
|
return o(), s("tr", {
|
|
2128
2139
|
key: O._id,
|
|
2129
|
-
onClick: (
|
|
2140
|
+
onClick: (B) => a("itemClick", O)
|
|
2130
2141
|
}, [
|
|
2131
|
-
e(u) &&
|
|
2132
|
-
|
|
2133
|
-
"onUpdate:modelValue":
|
|
2142
|
+
e(u) && m.checkbox && e(l).md ? (o(), s("td", pa, [
|
|
2143
|
+
N(g("input", {
|
|
2144
|
+
"onUpdate:modelValue": k[1] || (k[1] = (B) => p.value = B),
|
|
2134
2145
|
type: "checkbox",
|
|
2135
2146
|
value: O._id
|
|
2136
|
-
}, null, 8,
|
|
2137
|
-
[
|
|
2147
|
+
}, null, 8, _a), [
|
|
2148
|
+
[Ct, p.value]
|
|
2138
2149
|
])
|
|
2139
2150
|
])) : y("", !0),
|
|
2140
|
-
(o(!0), s(J, null, U(Object.entries(
|
|
2141
|
-
var
|
|
2151
|
+
(o(!0), s(J, null, U(Object.entries(m.columns), ([B, ee], V) => {
|
|
2152
|
+
var L, te, oe, le, f, A;
|
|
2142
2153
|
return o(), s("td", {
|
|
2143
|
-
key: `column-${O._id}-${
|
|
2154
|
+
key: `column-${O._id}-${V}`
|
|
2144
2155
|
}, [
|
|
2145
|
-
|
|
2146
|
-
`row-${
|
|
2147
|
-
|
|
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 }, {
|
|
2148
2159
|
store: e(u),
|
|
2149
|
-
column:
|
|
2160
|
+
column: B,
|
|
2150
2161
|
property: ee,
|
|
2151
2162
|
row: O
|
|
2152
2163
|
}), void 0, !0)
|
|
2153
|
-
])) : (o(), s("div",
|
|
2154
|
-
|
|
2155
|
-
"type" in ee && ee.type === "boolean" ? (o(), s("div",
|
|
2156
|
-
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, {
|
|
2157
2168
|
key: 0,
|
|
2158
2169
|
icon: "check",
|
|
2159
2170
|
"icon-classes": "aeria-blueish"
|
|
2160
2171
|
}, {
|
|
2161
2172
|
default: v(() => [
|
|
2162
|
-
D(
|
|
2173
|
+
D(b(e(F)("yes")), 1)
|
|
2163
2174
|
]),
|
|
2164
2175
|
_: 1
|
|
2165
|
-
})) : (o(), $(
|
|
2176
|
+
})) : (o(), $(P, {
|
|
2166
2177
|
key: 1,
|
|
2167
2178
|
icon: "x",
|
|
2168
2179
|
"icon-classes": "aeria-redish"
|
|
2169
2180
|
}, {
|
|
2170
2181
|
default: v(() => [
|
|
2171
|
-
D(
|
|
2182
|
+
D(b(e(F)("no")), 1)
|
|
2172
2183
|
]),
|
|
2173
2184
|
_: 1
|
|
2174
2185
|
}))
|
|
2175
|
-
])) : ((
|
|
2176
|
-
/^image/.test((te = O[
|
|
2186
|
+
])) : ((L = e(pe)(ee)) == null ? void 0 : L.$ref) === "file" ? (o(), s("div", $a, [
|
|
2187
|
+
/^image/.test((te = O[B][0]) == null ? void 0 : te.type) && "items" in ee ? (o(), $(Me, {
|
|
2177
2188
|
key: 0,
|
|
2178
|
-
modelValue: O[
|
|
2179
|
-
"onUpdate:modelValue": (
|
|
2189
|
+
modelValue: O[B][0].link,
|
|
2190
|
+
"onUpdate:modelValue": (w) => O[B][0].link = w,
|
|
2180
2191
|
expandable: "",
|
|
2181
|
-
meta: O[
|
|
2192
|
+
meta: O[B][0],
|
|
2182
2193
|
alt: "Row image",
|
|
2183
2194
|
class: "table__picture"
|
|
2184
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[
|
|
2195
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[B]) == null ? void 0 : oe.type) ? (o(), $(Me, {
|
|
2185
2196
|
key: 1,
|
|
2186
|
-
modelValue: O[
|
|
2187
|
-
"onUpdate:modelValue": (
|
|
2197
|
+
modelValue: O[B].link,
|
|
2198
|
+
"onUpdate:modelValue": (w) => O[B].link = w,
|
|
2188
2199
|
expandable: "",
|
|
2189
|
-
meta: O[
|
|
2200
|
+
meta: O[B],
|
|
2190
2201
|
alt: "Row image",
|
|
2191
2202
|
class: "table__picture"
|
|
2192
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[
|
|
2203
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[B]) != null && le.link ? (o(), s("a", {
|
|
2193
2204
|
key: 2,
|
|
2194
|
-
href: O[
|
|
2205
|
+
href: O[B].link,
|
|
2195
2206
|
style: { "font-size": "10pt" }
|
|
2196
|
-
},
|
|
2197
|
-
])) : (o(), s("div",
|
|
2198
|
-
e(u) ? (o(), s("span",
|
|
2199
|
-
value: O[
|
|
2200
|
-
key:
|
|
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({
|
|
2210
|
+
value: O[B],
|
|
2211
|
+
key: B,
|
|
2201
2212
|
property: ee
|
|
2202
|
-
})), 1)) : (o(), s("span",
|
|
2203
|
-
((
|
|
2204
|
-
(o(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (
|
|
2205
|
-
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}`,
|
|
2206
2217
|
class: "table__cell-subvalue"
|
|
2207
|
-
},
|
|
2208
|
-
value: O[
|
|
2209
|
-
key:
|
|
2218
|
+
}, b(e(u).$actions.formatValue({
|
|
2219
|
+
value: O[B],
|
|
2220
|
+
key: B,
|
|
2210
2221
|
property: ee,
|
|
2211
|
-
index:
|
|
2222
|
+
index: w
|
|
2212
2223
|
})), 1))), 128))
|
|
2213
2224
|
])) : y("", !0)
|
|
2214
2225
|
]))
|
|
@@ -2216,18 +2227,18 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2216
2227
|
]))
|
|
2217
2228
|
]);
|
|
2218
2229
|
}), 128)),
|
|
2219
|
-
(M =
|
|
2220
|
-
|
|
2221
|
-
(o(!0), s(J, null, U(h(O), (
|
|
2222
|
-
key: `action-${
|
|
2230
|
+
(M = m.actions) != null && M.length && e(l).md ? (o(), s("td", Aa, [
|
|
2231
|
+
g("div", Oa, [
|
|
2232
|
+
(o(!0), s(J, null, U(h(O), (B) => (o(), $(ie, {
|
|
2233
|
+
key: `action-${B.action}`,
|
|
2223
2234
|
small: "",
|
|
2224
2235
|
variant: "transparent",
|
|
2225
|
-
icon:
|
|
2226
|
-
style: $e(n(O,
|
|
2227
|
-
onClick: (ee) =>
|
|
2236
|
+
icon: B.icon,
|
|
2237
|
+
style: $e(n(O, B)),
|
|
2238
|
+
onClick: (ee) => B.click(O)
|
|
2228
2239
|
}, {
|
|
2229
2240
|
default: v(() => [
|
|
2230
|
-
D(
|
|
2241
|
+
D(b(e(F)(B.label)), 1)
|
|
2231
2242
|
]),
|
|
2232
2243
|
_: 2
|
|
2233
2244
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
@@ -2239,32 +2250,32 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2239
2250
|
actions: _(O)
|
|
2240
2251
|
}), {
|
|
2241
2252
|
default: v(() => [
|
|
2242
|
-
|
|
2253
|
+
N(z(P, {
|
|
2243
2254
|
reactive: "",
|
|
2244
2255
|
icon: "dots-three"
|
|
2245
2256
|
}, null, 512), [
|
|
2246
|
-
[
|
|
2257
|
+
[j]
|
|
2247
2258
|
])
|
|
2248
2259
|
]),
|
|
2249
2260
|
_: 2
|
|
2250
2261
|
}, 1040)) : y("", !0)
|
|
2251
2262
|
])
|
|
2252
|
-
])) : (
|
|
2253
|
-
|
|
2263
|
+
])) : (W = m.actions) != null && W.length ? (o(), s("td", wa, [
|
|
2264
|
+
g("div", {
|
|
2254
2265
|
class: "table__mobile-actions-grid",
|
|
2255
2266
|
style: $e(`grid-template-columns: repeat(${h(O).length + (_(O).length ? 1 : 0)}, 1fr);`)
|
|
2256
2267
|
}, [
|
|
2257
|
-
(o(!0), s(J, null, U(h(O), (
|
|
2258
|
-
key: `action-${
|
|
2268
|
+
(o(!0), s(J, null, U(h(O), (B) => (o(), $(fe, {
|
|
2269
|
+
key: `action-${B.action}`,
|
|
2259
2270
|
class: "table__mobile-actions-button",
|
|
2260
|
-
onClick: (ee) =>
|
|
2271
|
+
onClick: (ee) => B.click(O)
|
|
2261
2272
|
}, {
|
|
2262
2273
|
default: v(() => [
|
|
2263
|
-
z(
|
|
2264
|
-
icon:
|
|
2274
|
+
z(P, {
|
|
2275
|
+
icon: B.icon || "gear"
|
|
2265
2276
|
}, {
|
|
2266
2277
|
default: v(() => [
|
|
2267
|
-
D(
|
|
2278
|
+
D(b(e(F)(B.label)), 1)
|
|
2268
2279
|
]),
|
|
2269
2280
|
_: 2
|
|
2270
2281
|
}, 1032, ["icon"])
|
|
@@ -2279,7 +2290,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2279
2290
|
actions: _(O)
|
|
2280
2291
|
}), {
|
|
2281
2292
|
default: v(() => [
|
|
2282
|
-
z(
|
|
2293
|
+
z(P, {
|
|
2283
2294
|
icon: "dots-three",
|
|
2284
2295
|
class: "table__mobile-actions-button"
|
|
2285
2296
|
})
|
|
@@ -2288,20 +2299,20 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2288
2299
|
}, 1040)) : y("", !0)
|
|
2289
2300
|
], 4)
|
|
2290
2301
|
])) : y("", !0),
|
|
2291
|
-
|
|
2302
|
+
g("div", {
|
|
2292
2303
|
id: `dropdown-${O._id}`
|
|
2293
|
-
}, null, 8,
|
|
2294
|
-
], 8,
|
|
2304
|
+
}, null, 8, Ba)
|
|
2305
|
+
], 8, da);
|
|
2295
2306
|
}), 128))
|
|
2296
2307
|
])),
|
|
2297
|
-
|
|
2298
|
-
|
|
2308
|
+
g("tfoot", null, [
|
|
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)
|
|
2299
2310
|
])
|
|
2300
2311
|
])) : y("", !0);
|
|
2301
2312
|
};
|
|
2302
2313
|
}
|
|
2303
2314
|
});
|
|
2304
|
-
const
|
|
2315
|
+
const Ra = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), za = /* @__PURE__ */ q({
|
|
2305
2316
|
__name: "aeria-tabular",
|
|
2306
2317
|
props: {
|
|
2307
2318
|
individualActions: {},
|
|
@@ -2321,20 +2332,20 @@ const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
|
|
|
2321
2332
|
return Object.assign(r, i.componentProps);
|
|
2322
2333
|
});
|
|
2323
2334
|
return (r, u) => (o(), s("div", null, [
|
|
2324
|
-
r.$slots.inner ?
|
|
2325
|
-
e(t).properties ? (o(), $(
|
|
2335
|
+
r.$slots.inner ? I(r.$slots, "inner", { key: 0 }) : y("", !0),
|
|
2336
|
+
e(t).properties ? (o(), $(Ra, E({ key: 1 }, l.value, {
|
|
2326
2337
|
key: e(t).$id
|
|
2327
2338
|
}), de({ _: 2 }, [
|
|
2328
2339
|
U(Object.keys(r.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
|
|
2329
2340
|
name: p,
|
|
2330
2341
|
fn: v((d) => [
|
|
2331
|
-
|
|
2342
|
+
I(r.$slots, p, ce(Ve(d)))
|
|
2332
2343
|
])
|
|
2333
2344
|
}))
|
|
2334
2345
|
]), 1040)) : y("", !0)
|
|
2335
2346
|
]));
|
|
2336
2347
|
}
|
|
2337
|
-
}),
|
|
2348
|
+
}), Ma = /* @__PURE__ */ q({
|
|
2338
2349
|
__name: "aeria-grid",
|
|
2339
2350
|
props: {
|
|
2340
2351
|
list: { type: Boolean }
|
|
@@ -2346,14 +2357,14 @@ const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
|
|
|
2346
2357
|
${i.list && "grid--list"}
|
|
2347
2358
|
`)
|
|
2348
2359
|
}, [
|
|
2349
|
-
|
|
2360
|
+
I(i.$slots, "default", {}, void 0, !0)
|
|
2350
2361
|
], 2));
|
|
2351
2362
|
}
|
|
2352
2363
|
});
|
|
2353
|
-
const
|
|
2364
|
+
const Fa = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-438c4aed"]]), qa = { key: 0 }, Ua = {
|
|
2354
2365
|
key: 1,
|
|
2355
2366
|
class: "card__information"
|
|
2356
|
-
},
|
|
2367
|
+
}, Ea = /* @__PURE__ */ q({
|
|
2357
2368
|
__name: "aeria-grid",
|
|
2358
2369
|
props: {
|
|
2359
2370
|
individualActions: {},
|
|
@@ -2365,18 +2376,18 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2365
2376
|
const t = c.layoutOptions, a = ge(), l = (r) => Array.isArray(r) ? r[0] : r;
|
|
2366
2377
|
return (r, u) => {
|
|
2367
2378
|
const p = ne("clickable");
|
|
2368
|
-
return o(), $(
|
|
2379
|
+
return o(), $(Fa, {
|
|
2369
2380
|
list: r.componentName === "list"
|
|
2370
2381
|
}, {
|
|
2371
2382
|
default: v(() => [
|
|
2372
|
-
(o(!0), s(J, null, U(e(a).items, (d) => (o(), $(
|
|
2383
|
+
(o(!0), s(J, null, U(e(a).items, (d) => (o(), $(dn, {
|
|
2373
2384
|
key: d,
|
|
2374
2385
|
inactive: !!(e(t).active && !d[e(t).active]),
|
|
2375
2386
|
horizontal: r.componentName === "list"
|
|
2376
2387
|
}, de({
|
|
2377
2388
|
footer: v(() => [
|
|
2378
|
-
e(t).title ? (o(), s("div",
|
|
2379
|
-
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)
|
|
2380
2391
|
]),
|
|
2381
2392
|
actions: v(() => [
|
|
2382
2393
|
r.individualActions.length > 0 ? (o(), $(Ce, E({
|
|
@@ -2387,7 +2398,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2387
2398
|
actions: r.individualActions
|
|
2388
2399
|
}), {
|
|
2389
2400
|
default: v(() => [
|
|
2390
|
-
|
|
2401
|
+
N(z(P, {
|
|
2391
2402
|
reactive: "",
|
|
2392
2403
|
icon: "dots-three-vertical"
|
|
2393
2404
|
}, null, 512), [
|
|
@@ -2418,7 +2429,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2418
2429
|
large: ""
|
|
2419
2430
|
}, {
|
|
2420
2431
|
default: v(() => [
|
|
2421
|
-
D(
|
|
2432
|
+
D(b(e(t).translateBadge ? e(F)(h) : h), 1)
|
|
2422
2433
|
]),
|
|
2423
2434
|
_: 2
|
|
2424
2435
|
}, 1024))), 128))
|
|
@@ -2429,7 +2440,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2429
2440
|
fn: v(() => [
|
|
2430
2441
|
z(be, null, {
|
|
2431
2442
|
default: v(() => [
|
|
2432
|
-
D(
|
|
2443
|
+
D(b(e(t).translateBadge ? e(F)(d[e(t).badge]) : d[e(t)[r.badge]]), 1)
|
|
2433
2444
|
]),
|
|
2434
2445
|
_: 2
|
|
2435
2446
|
}, 1024)
|
|
@@ -2443,20 +2454,20 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2443
2454
|
};
|
|
2444
2455
|
}
|
|
2445
2456
|
});
|
|
2446
|
-
const pt = /* @__PURE__ */ G(
|
|
2447
|
-
tabular:
|
|
2457
|
+
const pt = /* @__PURE__ */ G(Ea, [["__scopeId", "data-v-a5c79d91"]]), Ha = (c) => ({
|
|
2458
|
+
tabular: za,
|
|
2448
2459
|
grid: pt,
|
|
2449
2460
|
list: pt
|
|
2450
|
-
})[c],
|
|
2461
|
+
})[c], Da = (c) => (Fe("data-v-2cbb3e9f"), c = c(), qe(), c), Qa = {
|
|
2451
2462
|
key: 2,
|
|
2452
2463
|
class: "crud__controls"
|
|
2453
|
-
},
|
|
2464
|
+
}, Ga = {
|
|
2454
2465
|
key: 0,
|
|
2455
2466
|
class: "crud__search"
|
|
2456
|
-
},
|
|
2467
|
+
}, Wa = { class: "crud__actions" }, Xa = { class: "crud__context-badge" }, Ya = /* @__PURE__ */ Da(() => /* @__PURE__ */ g("div", null, "Filtros", -1)), Ja = { key: 0 }, Ka = {
|
|
2457
2468
|
key: 3,
|
|
2458
2469
|
class: "crud__pagination"
|
|
2459
|
-
}, _t = 30,
|
|
2470
|
+
}, _t = 30, Za = /* @__PURE__ */ q({
|
|
2460
2471
|
__name: "aeria-crud",
|
|
2461
2472
|
props: {
|
|
2462
2473
|
collection: {},
|
|
@@ -2472,158 +2483,158 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2472
2483
|
},
|
|
2473
2484
|
emits: ["uiEvent"],
|
|
2474
2485
|
setup(c, { emit: i }) {
|
|
2475
|
-
const t = c, a = i, l =
|
|
2486
|
+
const t = c, a = i, l = Le(), r = ht({
|
|
2476
2487
|
delay: 600
|
|
2477
2488
|
}), u = ue("meta"), p = je(), { reachedEnd: d, detach: h } = We(null, {
|
|
2478
2489
|
antecipate: 600
|
|
2479
2490
|
}), _ = !p.value.md || t.scrollPagination;
|
|
2480
|
-
_ && re(d, (
|
|
2481
|
-
|
|
2491
|
+
_ && re(d, (V) => {
|
|
2492
|
+
V && n.pagination.recordsTotal > n.items.length && j.value < _t && (j.value += 1, Y());
|
|
2482
2493
|
});
|
|
2483
2494
|
const n = ue(t.collection);
|
|
2484
|
-
|
|
2495
|
+
ta(n, {
|
|
2485
2496
|
persistInQuery: !t.noQueryPersistence
|
|
2486
2497
|
});
|
|
2487
|
-
const
|
|
2488
|
-
Be.value =
|
|
2489
|
-
const
|
|
2490
|
-
n.activeFilters = Object.assign({}, (
|
|
2491
|
-
const
|
|
2498
|
+
const m = $t(), k = t.action ? e(t.action) : Ft(n, l, m);
|
|
2499
|
+
Be.value = k[0], ct.value = k[1];
|
|
2500
|
+
const j = X(0), R = X(!1), Y = async (V) => {
|
|
2501
|
+
n.activeFilters = Object.assign({}, (V == null ? void 0 : V.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
|
|
2502
|
+
const L = {
|
|
2492
2503
|
filters: n.activeFilters,
|
|
2493
2504
|
limit: n.pagination.limit,
|
|
2494
2505
|
offset: n.pagination.offset,
|
|
2495
2506
|
project: n.preferredTableProperties.length > 0 ? n.preferredTableProperties : n.description.table || Object.keys(n.properties)
|
|
2496
2507
|
};
|
|
2497
|
-
|
|
2498
|
-
const { data: te, pagination: oe } = await n.$actions.retrieveItems(
|
|
2499
|
-
n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal,
|
|
2500
|
-
},
|
|
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) => {
|
|
2501
2512
|
l.push({
|
|
2502
2513
|
query: {
|
|
2503
2514
|
...l.currentRoute.value.query,
|
|
2504
|
-
offset:
|
|
2505
|
-
limit:
|
|
2515
|
+
offset: V.offset,
|
|
2516
|
+
limit: V.limit
|
|
2506
2517
|
}
|
|
2507
|
-
}), n.pagination.offset =
|
|
2518
|
+
}), n.pagination.offset = V.offset, n.pagination.limit = V.limit, Y();
|
|
2508
2519
|
}, O = ve("noResultsComponent", null);
|
|
2509
2520
|
re(() => [
|
|
2510
2521
|
l.currentRoute.value.path,
|
|
2511
2522
|
l.currentRoute.value.query.section
|
|
2512
|
-
], async (
|
|
2513
|
-
if (
|
|
2523
|
+
], async (V, L) => {
|
|
2524
|
+
if (L && L[0] === V[0] && L[1] === V[1])
|
|
2514
2525
|
return;
|
|
2515
2526
|
const te = l.currentRoute.value;
|
|
2516
2527
|
if (u.view.title = t.collection, u.view.collection = t.collection, ut.value = !1, !t.noFetch && !te.query._popstate) {
|
|
2517
|
-
const oe =
|
|
2518
|
-
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();
|
|
2519
2530
|
}
|
|
2520
2531
|
}, {
|
|
2521
2532
|
immediate: !0,
|
|
2522
2533
|
flush: "post"
|
|
2523
2534
|
});
|
|
2524
|
-
const [M] = r((
|
|
2535
|
+
const [M] = r((V) => (l.push({
|
|
2525
2536
|
query: {
|
|
2526
|
-
search:
|
|
2537
|
+
search: V || void 0
|
|
2527
2538
|
}
|
|
2528
|
-
}),
|
|
2539
|
+
}), V ? (n.filters = Object.assign(Se(n.freshFilters), {
|
|
2529
2540
|
$text: {
|
|
2530
|
-
$search: `"${
|
|
2541
|
+
$search: `"${V}"`,
|
|
2531
2542
|
$caseSensitive: !1
|
|
2532
2543
|
}
|
|
2533
|
-
}),
|
|
2544
|
+
}), Y({
|
|
2534
2545
|
offset: 0
|
|
2535
|
-
})) : (n.filters = Se(n.freshFilters),
|
|
2536
|
-
re(() => n.textQuery, (
|
|
2537
|
-
M(
|
|
2546
|
+
})) : (n.filters = Se(n.freshFilters), j.value = 0, Y())));
|
|
2547
|
+
re(() => n.textQuery, (V) => {
|
|
2548
|
+
M(V);
|
|
2538
2549
|
});
|
|
2539
|
-
const
|
|
2540
|
-
|
|
2550
|
+
const W = (V) => {
|
|
2551
|
+
V.currentLayout = V.currentLayout === "tabular" ? V.description.layout.name : "tabular";
|
|
2541
2552
|
};
|
|
2542
|
-
|
|
2553
|
+
It(() => {
|
|
2543
2554
|
n.$actions.clearFilters(), n.textQuery = "", h();
|
|
2544
|
-
}), re(() => ct.value, async (
|
|
2555
|
+
}), re(() => ct.value, async (V) => {
|
|
2545
2556
|
var oe;
|
|
2546
|
-
const
|
|
2557
|
+
const L = Se(V);
|
|
2547
2558
|
let te;
|
|
2548
|
-
if (
|
|
2559
|
+
if (L)
|
|
2549
2560
|
if ([
|
|
2550
2561
|
"spawnEdit",
|
|
2551
2562
|
"spawnView",
|
|
2552
2563
|
"duplicate"
|
|
2553
|
-
].includes(
|
|
2564
|
+
].includes(L.name) && (te = n.$actions.get({
|
|
2554
2565
|
filters: {
|
|
2555
|
-
_id:
|
|
2566
|
+
_id: L.params._id
|
|
2556
2567
|
}
|
|
2557
|
-
})),
|
|
2558
|
-
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) => {
|
|
2559
2570
|
delete n.referenceItem[le];
|
|
2560
2571
|
})), se.value = "add";
|
|
2561
|
-
else if (
|
|
2562
|
-
n.$actions.setItem(
|
|
2563
|
-
else if (
|
|
2572
|
+
else if (L.name === "spawnEdit")
|
|
2573
|
+
n.$actions.setItem(L.params), se.value = "edit";
|
|
2574
|
+
else if (L.name === "spawnView")
|
|
2564
2575
|
ut.value = !0, se.value = "view";
|
|
2565
|
-
else if (
|
|
2576
|
+
else if (L.name === "duplicate") {
|
|
2566
2577
|
await te;
|
|
2567
|
-
const le = Object.entries(n.item).reduce((
|
|
2568
|
-
if (!(
|
|
2578
|
+
const le = Object.entries(n.item).reduce((f, [A, w]) => {
|
|
2579
|
+
if (!(A in n.properties))
|
|
2569
2580
|
return {
|
|
2570
|
-
...
|
|
2571
|
-
[
|
|
2581
|
+
...f,
|
|
2582
|
+
[A]: w
|
|
2572
2583
|
};
|
|
2573
|
-
const
|
|
2574
|
-
if (
|
|
2575
|
-
return
|
|
2576
|
-
const
|
|
2577
|
-
const
|
|
2578
|
-
if (!
|
|
2584
|
+
const Z = n.properties[A];
|
|
2585
|
+
if (Z.readOnly)
|
|
2586
|
+
return f;
|
|
2587
|
+
const C = (T) => {
|
|
2588
|
+
const S = pe(Z);
|
|
2589
|
+
if (!S)
|
|
2579
2590
|
return T;
|
|
2580
|
-
if (
|
|
2591
|
+
if (S.$ref === "file")
|
|
2581
2592
|
return {};
|
|
2582
|
-
if (
|
|
2593
|
+
if (S.inline && T) {
|
|
2583
2594
|
const { _id: ae, ..._e } = T;
|
|
2584
2595
|
return _e;
|
|
2585
2596
|
}
|
|
2586
2597
|
return T;
|
|
2587
2598
|
};
|
|
2588
|
-
return
|
|
2589
|
-
...
|
|
2590
|
-
[
|
|
2599
|
+
return w = Array.isArray(w) ? w.map(C) : C(w), {
|
|
2600
|
+
...f,
|
|
2601
|
+
[A]: w
|
|
2591
2602
|
};
|
|
2592
2603
|
}, {});
|
|
2593
2604
|
n.$actions.setItem(le), delete n.item._id, n.referenceItem = {}, se.value = "duplicate";
|
|
2594
2605
|
} else
|
|
2595
|
-
a("uiEvent",
|
|
2606
|
+
a("uiEvent", L);
|
|
2596
2607
|
}, {
|
|
2597
2608
|
deep: !0
|
|
2598
|
-
}), re(() => se, (
|
|
2599
|
-
|
|
2609
|
+
}), re(() => se, (V) => {
|
|
2610
|
+
V.value === !1 && (u.view.collection = t.collection, n.$actions.clearItem());
|
|
2600
2611
|
});
|
|
2601
|
-
const
|
|
2602
|
-
click: Be.value(
|
|
2603
|
-
...
|
|
2604
|
-
}))), ee = H(() => n.actions.filter((
|
|
2605
|
-
return ye(Ue, H(() => t.collection)), ye("individualActions",
|
|
2606
|
-
var le,
|
|
2612
|
+
const B = H(() => n.individualActions.map((V) => ({
|
|
2613
|
+
click: Be.value(V),
|
|
2614
|
+
...V
|
|
2615
|
+
}))), ee = H(() => n.actions.filter((V) => !V.button));
|
|
2616
|
+
return ye(Ue, H(() => t.collection)), ye("individualActions", B), (V, L) => {
|
|
2617
|
+
var le, f, A, w, Z, C, T;
|
|
2607
2618
|
const te = ne("clickable"), oe = ne("loading");
|
|
2608
2619
|
return o(), s(J, null, [
|
|
2609
|
-
e(ke) ? (o(), $(
|
|
2620
|
+
e(ke) ? (o(), $(xo, {
|
|
2610
2621
|
key: e(n).$id,
|
|
2611
2622
|
modelValue: e(ke),
|
|
2612
|
-
"onUpdate:modelValue":
|
|
2623
|
+
"onUpdate:modelValue": L[0] || (L[0] = (S) => vt(ke) ? ke.value = S : null)
|
|
2613
2624
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2614
|
-
e(se) ? (o(), $(
|
|
2615
|
-
U(Object.keys(
|
|
2616
|
-
name:
|
|
2625
|
+
e(se) ? (o(), $(ea, { key: 1 }, de({ _: 2 }, [
|
|
2626
|
+
U(Object.keys(V.$slots).filter((S) => S.startsWith("field-")), (S) => ({
|
|
2627
|
+
name: S,
|
|
2617
2628
|
fn: v((ae) => [
|
|
2618
|
-
|
|
2629
|
+
I(V.$slots, S, ce(Ve(ae)), void 0, !0)
|
|
2619
2630
|
])
|
|
2620
2631
|
}))
|
|
2621
2632
|
]), 1024)) : y("", !0),
|
|
2622
|
-
!
|
|
2623
|
-
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, [
|
|
2624
2635
|
z(Ie, E({
|
|
2625
2636
|
modelValue: e(n).textQuery,
|
|
2626
|
-
"onUpdate:modelValue":
|
|
2637
|
+
"onUpdate:modelValue": L[1] || (L[1] = (S) => e(n).textQuery = S)
|
|
2627
2638
|
}, {
|
|
2628
2639
|
property: {
|
|
2629
2640
|
type: "string",
|
|
@@ -2632,8 +2643,8 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2632
2643
|
}
|
|
2633
2644
|
}), null, 16, ["modelValue"])
|
|
2634
2645
|
])) : y("", !0),
|
|
2635
|
-
|
|
2636
|
-
ee.value.length > 0 || !
|
|
2646
|
+
g("div", Wa, [
|
|
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({
|
|
2637
2648
|
default: v(() => [
|
|
2638
2649
|
z(ie, {
|
|
2639
2650
|
variant: "alt",
|
|
@@ -2642,7 +2653,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2642
2653
|
default: v(() => [
|
|
2643
2654
|
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2644
2655
|
default: v(() => [
|
|
2645
|
-
D(
|
|
2656
|
+
D(b(e(n).filtersCount), 1)
|
|
2646
2657
|
]),
|
|
2647
2658
|
_: 1
|
|
2648
2659
|
})) : y("", !0)
|
|
@@ -2655,21 +2666,21 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2655
2666
|
Object.keys(e(n).availableFilters).length > 0 ? {
|
|
2656
2667
|
name: "filter",
|
|
2657
2668
|
fn: v(() => [
|
|
2658
|
-
|
|
2669
|
+
N((o(), $(P, {
|
|
2659
2670
|
icon: "funnel",
|
|
2660
|
-
onClick:
|
|
2671
|
+
onClick: L[2] || (L[2] = (S) => ke.value = !0)
|
|
2661
2672
|
}, {
|
|
2662
2673
|
default: v(() => [
|
|
2663
|
-
D(
|
|
2674
|
+
D(b(e(F)("filters", { capitalize: !0 })), 1)
|
|
2664
2675
|
]),
|
|
2665
2676
|
_: 1
|
|
2666
2677
|
})), [
|
|
2667
2678
|
[te]
|
|
2668
2679
|
]),
|
|
2669
|
-
|
|
2680
|
+
g("div", Xa, [
|
|
2670
2681
|
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2671
2682
|
default: v(() => [
|
|
2672
|
-
D(
|
|
2683
|
+
D(b(e(n).filtersCount), 1)
|
|
2673
2684
|
]),
|
|
2674
2685
|
_: 1
|
|
2675
2686
|
})) : y("", !0)
|
|
@@ -2677,15 +2688,15 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2677
2688
|
]),
|
|
2678
2689
|
key: "0"
|
|
2679
2690
|
} : void 0,
|
|
2680
|
-
!
|
|
2691
|
+
!V.noLayoutToggle && e(n).description.layout && ((w = e(n).description.layout) == null ? void 0 : w.name) !== "tabular" ? {
|
|
2681
2692
|
name: "layout-toggle",
|
|
2682
2693
|
fn: v(() => [
|
|
2683
|
-
|
|
2694
|
+
N((o(), $(P, {
|
|
2684
2695
|
icon: "table",
|
|
2685
|
-
onClick:
|
|
2696
|
+
onClick: L[3] || (L[3] = (S) => W(e(n)))
|
|
2686
2697
|
}, {
|
|
2687
2698
|
default: v(() => [
|
|
2688
|
-
D(
|
|
2699
|
+
D(b(e(F)("change_layout", { capitalize: !0 })), 1)
|
|
2689
2700
|
]),
|
|
2690
2701
|
_: 1
|
|
2691
2702
|
})), [
|
|
@@ -2694,17 +2705,17 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2694
2705
|
]),
|
|
2695
2706
|
key: "1"
|
|
2696
2707
|
} : void 0,
|
|
2697
|
-
U(ee.value, (
|
|
2708
|
+
U(ee.value, (S, ae) => ({
|
|
2698
2709
|
name: `action-${ae}`,
|
|
2699
2710
|
fn: v(() => [
|
|
2700
|
-
|
|
2711
|
+
S ? (o(), $(P, {
|
|
2701
2712
|
key: 0,
|
|
2702
|
-
icon:
|
|
2703
|
-
disabled: e(n).selected.length === 0 &&
|
|
2704
|
-
onClick: (_e) => e(Be)(
|
|
2713
|
+
icon: S.icon || "gear",
|
|
2714
|
+
disabled: e(n).selected.length === 0 && S.selection,
|
|
2715
|
+
onClick: (_e) => e(Be)(S)({ _id: e(n).selected.map((me) => me._id) })
|
|
2705
2716
|
}, {
|
|
2706
2717
|
default: v(() => [
|
|
2707
|
-
D(
|
|
2718
|
+
D(b(e(F)(S.label, { capitalize: !0 })), 1)
|
|
2708
2719
|
]),
|
|
2709
2720
|
_: 2
|
|
2710
2721
|
}, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
|
|
@@ -2714,35 +2725,35 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2714
2725
|
key: 1,
|
|
2715
2726
|
variant: "alt",
|
|
2716
2727
|
icon: "funnel",
|
|
2717
|
-
onClick:
|
|
2728
|
+
onClick: L[4] || (L[4] = (S) => ke.value = !0)
|
|
2718
2729
|
}, {
|
|
2719
2730
|
default: v(() => [
|
|
2720
|
-
|
|
2731
|
+
Ya,
|
|
2721
2732
|
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2722
2733
|
default: v(() => [
|
|
2723
|
-
D(
|
|
2734
|
+
D(b(e(n).filtersCount), 1)
|
|
2724
2735
|
]),
|
|
2725
2736
|
_: 1
|
|
2726
2737
|
})) : y("", !0)
|
|
2727
2738
|
]),
|
|
2728
2739
|
_: 1
|
|
2729
2740
|
})) : y("", !0),
|
|
2730
|
-
(o(!0), s(J, null, U(e(n).actions.filter((
|
|
2741
|
+
(o(!0), s(J, null, U(e(n).actions.filter((S) => S.button), (S, ae) => (o(), $(ie, {
|
|
2731
2742
|
key: `action-${ae}`,
|
|
2732
|
-
icon:
|
|
2733
|
-
disabled: e(n).selected.length === 0 &&
|
|
2734
|
-
onClick: (_e) => e(Be)(
|
|
2743
|
+
icon: S.icon,
|
|
2744
|
+
disabled: e(n).selected.length === 0 && S.selection,
|
|
2745
|
+
onClick: (_e) => e(Be)(S)({ _id: e(n).selected.map((me) => me._id) })
|
|
2735
2746
|
}, {
|
|
2736
2747
|
default: v(() => [
|
|
2737
|
-
D(
|
|
2748
|
+
D(b(e(F)(S.label, { capitalize: !0 })), 1)
|
|
2738
2749
|
]),
|
|
2739
2750
|
_: 2
|
|
2740
2751
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2741
|
-
|
|
2752
|
+
V.$slots.actions ? I(V.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
|
|
2742
2753
|
])
|
|
2743
2754
|
])) : y("", !0),
|
|
2744
|
-
|
|
2745
|
-
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, [
|
|
2746
2757
|
e(O) ? (o(), $(he(e(O)), ce(E({ key: 0 }, {
|
|
2747
2758
|
collection: e(n).$id
|
|
2748
2759
|
})), {
|
|
@@ -2750,57 +2761,57 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) =
|
|
|
2750
2761
|
e(n).filtersCount === 0 && e(n).description.actions && "ui:spawnAdd" in e(n).description.actions ? (o(), $(ie, {
|
|
2751
2762
|
key: 0,
|
|
2752
2763
|
icon: "plus",
|
|
2753
|
-
onClick:
|
|
2764
|
+
onClick: L[5] || (L[5] = (S) => e(Be)({
|
|
2754
2765
|
action: "ui:spawnAdd"
|
|
2755
2766
|
})())
|
|
2756
2767
|
}, {
|
|
2757
2768
|
default: v(() => [
|
|
2758
|
-
D(
|
|
2769
|
+
D(b(e(F)("add_first_item", { capitalize: !0 })), 1)
|
|
2759
2770
|
]),
|
|
2760
2771
|
_: 1
|
|
2761
2772
|
})) : y("", !0)
|
|
2762
2773
|
]),
|
|
2763
2774
|
_: 1
|
|
2764
|
-
}, 16)) :
|
|
2775
|
+
}, 16)) : I(V.$slots, "empty", ce(E({ key: 1 }, {
|
|
2765
2776
|
collection: e(n).$id
|
|
2766
2777
|
})), void 0, !0)
|
|
2767
|
-
])) :
|
|
2778
|
+
])) : V.$slots.component ? I(V.$slots, "component", ce(E({ key: 1 }, {
|
|
2768
2779
|
store: e(n)
|
|
2769
|
-
})), void 0, !0) : (o(), $(he(e(
|
|
2770
|
-
individualActions:
|
|
2771
|
-
layoutOptions: ((
|
|
2772
|
-
componentProps:
|
|
2780
|
+
})), void 0, !0) : (o(), $(he(e(Ha)(((Z = V.layout) == null ? void 0 : Z.name) || e(n).$currentLayout)), E({ key: 2 }, {
|
|
2781
|
+
individualActions: B.value,
|
|
2782
|
+
layoutOptions: ((C = V.layout) == null ? void 0 : C.options) || e(n).layout.options,
|
|
2783
|
+
componentProps: V.componentProps
|
|
2773
2784
|
}, {
|
|
2774
|
-
"component-name": ((T =
|
|
2785
|
+
"component-name": ((T = V.layout) == null ? void 0 : T.name) || e(n).$currentLayout
|
|
2775
2786
|
}), de({ _: 2 }, [
|
|
2776
|
-
U(Object.keys(
|
|
2777
|
-
name:
|
|
2787
|
+
U(Object.keys(V.$slots).filter((S) => S.startsWith("row-")), (S) => ({
|
|
2788
|
+
name: S,
|
|
2778
2789
|
fn: v((ae) => [
|
|
2779
|
-
|
|
2790
|
+
I(V.$slots, S, ce(Ve(ae)), void 0, !0)
|
|
2780
2791
|
])
|
|
2781
2792
|
})),
|
|
2782
|
-
|
|
2793
|
+
V.$slots.tfoot ? {
|
|
2783
2794
|
name: "tfoot",
|
|
2784
2795
|
fn: v(() => [
|
|
2785
|
-
|
|
2796
|
+
I(V.$slots, "tfoot", {}, void 0, !0)
|
|
2786
2797
|
]),
|
|
2787
2798
|
key: "0"
|
|
2788
2799
|
} : void 0
|
|
2789
2800
|
]), 1040, ["component-name"]))
|
|
2790
2801
|
])), [
|
|
2791
|
-
[oe, (!e(_) ||
|
|
2802
|
+
[oe, (!e(_) || j.value === _t) && e(n).loading.getAll]
|
|
2792
2803
|
]),
|
|
2793
|
-
!e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div",
|
|
2794
|
-
z(
|
|
2804
|
+
!e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div", Ka, [
|
|
2805
|
+
z(zn, {
|
|
2795
2806
|
pagination: e(n).pagination,
|
|
2796
|
-
onPaginate:
|
|
2807
|
+
onPaginate: K
|
|
2797
2808
|
}, null, 8, ["pagination"])
|
|
2798
2809
|
])) : y("", !0)
|
|
2799
2810
|
], 64);
|
|
2800
2811
|
};
|
|
2801
2812
|
}
|
|
2802
2813
|
});
|
|
2803
|
-
const
|
|
2814
|
+
const Tl = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-2cbb3e9f"]]), Pa = { class: "prompt" }, Na = /* @__PURE__ */ q({
|
|
2804
2815
|
__name: "aeria-prompt",
|
|
2805
2816
|
props: {
|
|
2806
2817
|
title: {},
|
|
@@ -2817,7 +2828,7 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2817
2828
|
style: { "--panel-min-width": "32rem" }
|
|
2818
2829
|
}, de({
|
|
2819
2830
|
footer: v(() => [
|
|
2820
|
-
|
|
2831
|
+
g("div", {
|
|
2821
2832
|
class: "prompt__actions",
|
|
2822
2833
|
style: $e(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
|
|
2823
2834
|
}, [
|
|
@@ -2830,15 +2841,15 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2830
2841
|
onClick: (p) => r.click ? r.click(r) : t(r)
|
|
2831
2842
|
}, {
|
|
2832
2843
|
default: v(() => [
|
|
2833
|
-
D(
|
|
2844
|
+
D(b(r.title || r.name), 1)
|
|
2834
2845
|
]),
|
|
2835
2846
|
_: 2
|
|
2836
2847
|
}, 1032, ["class", "onClick"]))), 128))
|
|
2837
2848
|
], 4)
|
|
2838
2849
|
]),
|
|
2839
2850
|
default: v(() => [
|
|
2840
|
-
|
|
2841
|
-
|
|
2851
|
+
g("div", Pa, [
|
|
2852
|
+
I(a.$slots, "default", {}, void 0, !0)
|
|
2842
2853
|
])
|
|
2843
2854
|
]),
|
|
2844
2855
|
_: 2
|
|
@@ -2846,14 +2857,14 @@ const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { cla
|
|
|
2846
2857
|
a.title ? {
|
|
2847
2858
|
name: "title",
|
|
2848
2859
|
fn: v(() => [
|
|
2849
|
-
D(
|
|
2860
|
+
D(b(a.title), 1)
|
|
2850
2861
|
]),
|
|
2851
2862
|
key: "0"
|
|
2852
2863
|
} : void 0
|
|
2853
2864
|
]), 1024));
|
|
2854
2865
|
}
|
|
2855
2866
|
});
|
|
2856
|
-
const
|
|
2867
|
+
const xa = /* @__PURE__ */ G(Na, [["__scopeId", "data-v-5443f297"]]), el = { class: "toast__content" }, tl = { class: "toast__time" }, nl = /* @__PURE__ */ q({
|
|
2857
2868
|
__name: "aeria-toast",
|
|
2858
2869
|
props: {
|
|
2859
2870
|
idx: {},
|
|
@@ -2865,7 +2876,7 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2865
2876
|
const i = ue("meta");
|
|
2866
2877
|
return (t, a) => {
|
|
2867
2878
|
const l = ne("clickable");
|
|
2868
|
-
return
|
|
2879
|
+
return N((o(), s("div", {
|
|
2869
2880
|
class: Q({
|
|
2870
2881
|
toast: !0,
|
|
2871
2882
|
"toast--animate": e(i).toasts[0].itr === t.itr
|
|
@@ -2873,13 +2884,13 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2873
2884
|
onAnimationend: a[0] || (a[0] = (r) => e(i).$actions.popToast()),
|
|
2874
2885
|
onClick: a[1] || (a[1] = (r) => e(i).$actions.popToast(t.itr))
|
|
2875
2886
|
}, [
|
|
2876
|
-
z(
|
|
2887
|
+
z(P, E(
|
|
2877
2888
|
t.icon ? { icon: t.icon } : { icon: "warning-circle" },
|
|
2878
2889
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
2879
2890
|
), null, 16),
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2891
|
+
g("div", el, [
|
|
2892
|
+
I(t.$slots, "default", {}, void 0, !0),
|
|
2893
|
+
g("div", tl, b(t.formatDateTime(t.date, { hoursOnly: !0 })), 1)
|
|
2883
2894
|
])
|
|
2884
2895
|
], 34)), [
|
|
2885
2896
|
[l]
|
|
@@ -2887,12 +2898,12 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2887
2898
|
};
|
|
2888
2899
|
}
|
|
2889
2900
|
});
|
|
2890
|
-
const
|
|
2901
|
+
const ol = /* @__PURE__ */ G(nl, [["__scopeId", "data-v-21bbe178"]]), al = ["innerHTML"], ll = { class: "main__toasts" }, sl = ["innerHTML"], il = /* @__PURE__ */ q({
|
|
2891
2902
|
__name: "aeria-main",
|
|
2892
2903
|
setup(c) {
|
|
2893
2904
|
const i = ue("meta"), t = H(() => i.themeOverride || i.theme);
|
|
2894
2905
|
return (a, l) => {
|
|
2895
|
-
const r =
|
|
2906
|
+
const r = At("router-view");
|
|
2896
2907
|
return o(), s("main", {
|
|
2897
2908
|
id: "main",
|
|
2898
2909
|
class: Q(`
|
|
@@ -2901,7 +2912,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2901
2912
|
${t.value === "dark" && "tw-dark"}
|
|
2902
2913
|
`)
|
|
2903
2914
|
}, [
|
|
2904
|
-
(o(), $(
|
|
2915
|
+
(o(), $(Ot, null, {
|
|
2905
2916
|
default: v(() => [
|
|
2906
2917
|
z(r, null, {
|
|
2907
2918
|
default: v(({ Component: u }) => [
|
|
@@ -2909,7 +2920,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2909
2920
|
U(Object.keys(a.$slots), (p) => ({
|
|
2910
2921
|
name: p,
|
|
2911
2922
|
fn: v(() => [
|
|
2912
|
-
|
|
2923
|
+
I(a.$slots, p, {}, void 0, !0)
|
|
2913
2924
|
])
|
|
2914
2925
|
}))
|
|
2915
2926
|
]), 1024))
|
|
@@ -2919,7 +2930,7 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2919
2930
|
]),
|
|
2920
2931
|
_: 3
|
|
2921
2932
|
})),
|
|
2922
|
-
|
|
2933
|
+
I(a.$slots, "default", {}, void 0, !0),
|
|
2923
2934
|
z(Ae, E({
|
|
2924
2935
|
modelValue: e(i).modal.visible,
|
|
2925
2936
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => e(i).modal.visible = u),
|
|
@@ -2934,25 +2945,25 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2934
2945
|
key: 0,
|
|
2935
2946
|
style: { "white-space": "pre-wrap" },
|
|
2936
2947
|
innerHTML: e(i).modal.body
|
|
2937
|
-
}, null, 8,
|
|
2948
|
+
}, null, 8, al)) : y("", !0),
|
|
2938
2949
|
e(i).modal.component ? (o(), $(he(e(i).modal.component), { key: 1 })) : y("", !0)
|
|
2939
2950
|
]),
|
|
2940
2951
|
_: 1
|
|
2941
2952
|
}, 16, ["modelValue"]),
|
|
2942
|
-
e(i).prompt.visible ? (o(), $(
|
|
2953
|
+
e(i).prompt.visible ? (o(), $(xa, ce(E({ key: 0 }, e(i).prompt)), {
|
|
2943
2954
|
default: v(() => [
|
|
2944
|
-
D(
|
|
2955
|
+
D(b(e(i).prompt.body), 1)
|
|
2945
2956
|
]),
|
|
2946
2957
|
_: 1
|
|
2947
2958
|
}, 16)) : y("", !0),
|
|
2948
|
-
|
|
2949
|
-
(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, {
|
|
2950
2961
|
key: `toast-${u.itr}`
|
|
2951
2962
|
}), {
|
|
2952
2963
|
default: v(() => [
|
|
2953
|
-
|
|
2964
|
+
g("div", {
|
|
2954
2965
|
innerHTML: e(F)(u.text)
|
|
2955
|
-
}, null, 8,
|
|
2966
|
+
}, null, 8, sl)
|
|
2956
2967
|
]),
|
|
2957
2968
|
_: 2
|
|
2958
2969
|
}, 1040))), 128))
|
|
@@ -2961,28 +2972,28 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2961
2972
|
};
|
|
2962
2973
|
}
|
|
2963
2974
|
});
|
|
2964
|
-
const Ll = /* @__PURE__ */ G(
|
|
2965
|
-
const
|
|
2966
|
-
function
|
|
2967
|
-
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, [
|
|
2968
2979
|
(o(!0), s(J, null, U(Object.keys(c.$slots), (t) => (o(), s("div", {
|
|
2969
2980
|
key: t,
|
|
2970
2981
|
class: "menu__entry"
|
|
2971
2982
|
}, [
|
|
2972
|
-
|
|
2983
|
+
I(c.$slots, t, {}, void 0, !0)
|
|
2973
2984
|
]))), 128))
|
|
2974
2985
|
]);
|
|
2975
2986
|
}
|
|
2976
|
-
const
|
|
2987
|
+
const Rl = /* @__PURE__ */ G(rl, [["render", cl], ["__scopeId", "data-v-3cfef7fb"]]), dl = { class: "tabs" }, pl = {
|
|
2977
2988
|
key: 0,
|
|
2978
2989
|
class: "tabs__horizontal"
|
|
2979
|
-
},
|
|
2990
|
+
}, _l = {
|
|
2980
2991
|
key: 0,
|
|
2981
2992
|
class: "tabs__tab tabs__tab--info"
|
|
2982
|
-
},
|
|
2993
|
+
}, ml = ["onClick"], fl = {
|
|
2983
2994
|
key: 1,
|
|
2984
2995
|
class: "tabs__context-menu"
|
|
2985
|
-
},
|
|
2996
|
+
}, vl = ["onClick"], yl = /* @__PURE__ */ q({
|
|
2986
2997
|
__name: "aeria-tabs",
|
|
2987
2998
|
props: {
|
|
2988
2999
|
query: {},
|
|
@@ -2990,7 +3001,7 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
2990
3001
|
dropdown: { type: Boolean }
|
|
2991
3002
|
},
|
|
2992
3003
|
setup(c) {
|
|
2993
|
-
const i = c, t =
|
|
3004
|
+
const i = c, t = wt(), a = Le(), l = je(), r = "query" in i && i.query ? "query" : "params", u = H(() => {
|
|
2994
3005
|
const d = a.currentRoute.value[r][i.query || i.param];
|
|
2995
3006
|
return d || Object.keys(t)[0];
|
|
2996
3007
|
}), p = (d) => {
|
|
@@ -3011,32 +3022,32 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3011
3022
|
};
|
|
3012
3023
|
return (d, h) => {
|
|
3013
3024
|
const _ = ne("clickable");
|
|
3014
|
-
return o(), s("div",
|
|
3015
|
-
e(l).md && !d.dropdown ? (o(), s("div",
|
|
3016
|
-
d.$slots.default ? (o(), s("div",
|
|
3017
|
-
|
|
3025
|
+
return o(), s("div", dl, [
|
|
3026
|
+
e(l).md && !d.dropdown ? (o(), s("div", pl, [
|
|
3027
|
+
d.$slots.default ? (o(), s("div", _l, [
|
|
3028
|
+
I(d.$slots, "default", {}, void 0, !0)
|
|
3018
3029
|
])) : y("", !0),
|
|
3019
|
-
(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", {
|
|
3020
3031
|
key: n,
|
|
3021
3032
|
class: Q({
|
|
3022
3033
|
tabs__tab: !0,
|
|
3023
|
-
"tabs__tab--current": n === u.value || !u.value &&
|
|
3034
|
+
"tabs__tab--current": n === u.value || !u.value && m === 0
|
|
3024
3035
|
}),
|
|
3025
|
-
onClick: (
|
|
3036
|
+
onClick: (k) => p(n)
|
|
3026
3037
|
}, [
|
|
3027
|
-
|
|
3028
|
-
], 10,
|
|
3029
|
-
])) : (o(), s("div",
|
|
3038
|
+
I(d.$slots, n, {}, void 0, !0)
|
|
3039
|
+
], 10, ml))), 128))
|
|
3040
|
+
])) : (o(), s("div", fl, [
|
|
3030
3041
|
z(Ce, null, de({
|
|
3031
3042
|
default: v(() => [
|
|
3032
|
-
|
|
3043
|
+
N((o(), $(P, {
|
|
3033
3044
|
"icon-right": "",
|
|
3034
3045
|
icon: "caret-down",
|
|
3035
3046
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
3036
3047
|
class: "tabs__context-menu-icon"
|
|
3037
3048
|
}, {
|
|
3038
3049
|
default: v(() => [
|
|
3039
|
-
|
|
3050
|
+
I(d.$slots, u.value, {}, void 0, !0)
|
|
3040
3051
|
]),
|
|
3041
3052
|
_: 3
|
|
3042
3053
|
})), [
|
|
@@ -3048,11 +3059,11 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3048
3059
|
U(Object.keys(d.$slots).filter((n) => n !== "default"), (n) => ({
|
|
3049
3060
|
name: n,
|
|
3050
3061
|
fn: v(() => [
|
|
3051
|
-
|
|
3052
|
-
onClick: (
|
|
3062
|
+
g("div", {
|
|
3063
|
+
onClick: (m) => p(n)
|
|
3053
3064
|
}, [
|
|
3054
|
-
|
|
3055
|
-
], 8,
|
|
3065
|
+
I(d.$slots, n, {}, void 0, !0)
|
|
3066
|
+
], 8, vl)
|
|
3056
3067
|
])
|
|
3057
3068
|
}))
|
|
3058
3069
|
]), 1024)
|
|
@@ -3061,24 +3072,24 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3061
3072
|
};
|
|
3062
3073
|
}
|
|
3063
3074
|
});
|
|
3064
|
-
const
|
|
3075
|
+
const hl = /* @__PURE__ */ G(yl, [["__scopeId", "data-v-4dd516ec"]]), $l = q({
|
|
3065
3076
|
props: {
|
|
3066
3077
|
initialValue: String,
|
|
3067
3078
|
promise: Promise
|
|
3068
3079
|
},
|
|
3069
3080
|
setup(c) {
|
|
3070
|
-
const i =
|
|
3081
|
+
const i = X(c.initialValue);
|
|
3071
3082
|
return c.promise instanceof Promise && c.promise.then((t) => {
|
|
3072
3083
|
i.value = t;
|
|
3073
|
-
}), () =>
|
|
3084
|
+
}), () => Bt("div", i.value);
|
|
3074
3085
|
}
|
|
3075
|
-
}),
|
|
3086
|
+
}), bl = ["onClick"], gl = { key: 1 }, kl = /* @__PURE__ */ q({
|
|
3076
3087
|
__name: "aeria-crud-topbar",
|
|
3077
3088
|
props: {
|
|
3078
3089
|
collection: {}
|
|
3079
3090
|
},
|
|
3080
3091
|
setup(c) {
|
|
3081
|
-
const i = c, a =
|
|
3092
|
+
const i = c, a = Le().currentRoute, l = H(() => {
|
|
3082
3093
|
try {
|
|
3083
3094
|
const r = i.collection ? i.collection : a.value.meta.collection || a.value.params.collection;
|
|
3084
3095
|
return ge(r);
|
|
@@ -3086,7 +3097,7 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3086
3097
|
return null;
|
|
3087
3098
|
}
|
|
3088
3099
|
});
|
|
3089
|
-
return (r, u) => l.value && l.value.description.filtersPresets ? (o(), $(
|
|
3100
|
+
return (r, u) => l.value && l.value.description.filtersPresets ? (o(), $(hl, {
|
|
3090
3101
|
key: 0,
|
|
3091
3102
|
dropdown: "",
|
|
3092
3103
|
query: "section"
|
|
@@ -3094,38 +3105,38 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3094
3105
|
U(Object.entries(l.value.description.filtersPresets), ([p, d]) => ({
|
|
3095
3106
|
name: p,
|
|
3096
3107
|
fn: v(() => [
|
|
3097
|
-
|
|
3108
|
+
g("div", {
|
|
3098
3109
|
class: "topbar__preset",
|
|
3099
|
-
onClick: (h) => e(
|
|
3110
|
+
onClick: (h) => e(gt)(d, l.value)
|
|
3100
3111
|
}, [
|
|
3101
|
-
d.icon ? (o(), $(
|
|
3112
|
+
d.icon ? (o(), $(P, {
|
|
3102
3113
|
key: 0,
|
|
3103
3114
|
icon: d.icon
|
|
3104
3115
|
}, {
|
|
3105
3116
|
default: v(() => [
|
|
3106
|
-
D(
|
|
3117
|
+
D(b(d.label || e(F)(p, { plural: !0 })), 1)
|
|
3107
3118
|
]),
|
|
3108
3119
|
_: 2
|
|
3109
|
-
}, 1032, ["icon"])) : (o(), s("div",
|
|
3120
|
+
}, 1032, ["icon"])) : (o(), s("div", gl, b(d.label || e(F)(p, { plural: !0 })), 1)),
|
|
3110
3121
|
d.badgeFunction ? (o(), $(be, { key: 2 }, {
|
|
3111
3122
|
default: v(() => [
|
|
3112
|
-
z(e(
|
|
3123
|
+
z(e($l), {
|
|
3113
3124
|
"initial-value": "0",
|
|
3114
3125
|
promise: l.value.$functions[d.badgeFunction]({ filters: d.filters })
|
|
3115
3126
|
}, null, 8, ["promise"])
|
|
3116
3127
|
]),
|
|
3117
3128
|
_: 2
|
|
3118
3129
|
}, 1024)) : y("", !0)
|
|
3119
|
-
], 8,
|
|
3130
|
+
], 8, bl)
|
|
3120
3131
|
])
|
|
3121
3132
|
}))
|
|
3122
3133
|
]), 1024)) : y("", !0);
|
|
3123
3134
|
}
|
|
3124
3135
|
});
|
|
3125
|
-
const
|
|
3136
|
+
const Vl = /* @__PURE__ */ G(kl, [["__scopeId", "data-v-326eee9d"]]), Cl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3126
3137
|
__proto__: null,
|
|
3127
|
-
default:
|
|
3128
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3138
|
+
default: Vl
|
|
3139
|
+
}, Symbol.toStringTag, { value: "Module" })), zl = /* @__PURE__ */ q({
|
|
3129
3140
|
__name: "aeria-password-form",
|
|
3130
3141
|
props: {
|
|
3131
3142
|
modelValue: {}
|
|
@@ -3134,7 +3145,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3134
3145
|
setup(c) {
|
|
3135
3146
|
const i = c;
|
|
3136
3147
|
ye(Ue, null);
|
|
3137
|
-
const t =
|
|
3148
|
+
const t = Ut(), a = H(() => t(
|
|
3138
3149
|
i.modelValue.password,
|
|
3139
3150
|
i.modelValue.confirmation
|
|
3140
3151
|
));
|
|
@@ -3155,13 +3166,13 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3155
3166
|
"onUpdate:modelValue": r[0] || (r[0] = (u) => l.$emit("update:modelValue", u))
|
|
3156
3167
|
}, {
|
|
3157
3168
|
after: v(() => [
|
|
3158
|
-
|
|
3159
|
-
|
|
3169
|
+
g("div", null, b(a.value || "Senhas conferem"), 1),
|
|
3170
|
+
I(l.$slots, "default", ce(Ve({ passwordError: a.value })))
|
|
3160
3171
|
]),
|
|
3161
3172
|
_: 3
|
|
3162
3173
|
}, 8, ["model-value"]));
|
|
3163
3174
|
}
|
|
3164
|
-
}),
|
|
3175
|
+
}), Ml = (c, i = []) => ({
|
|
3165
3176
|
path: "/user",
|
|
3166
3177
|
name: "/builtin:user",
|
|
3167
3178
|
component: c,
|
|
@@ -3179,7 +3190,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3179
3190
|
{
|
|
3180
3191
|
path: "signin",
|
|
3181
3192
|
name: "/user/signin",
|
|
3182
|
-
component: () => import("./signin-
|
|
3193
|
+
component: () => import("./signin-c3838339.js"),
|
|
3183
3194
|
meta: {
|
|
3184
3195
|
title: "Autenticação"
|
|
3185
3196
|
}
|
|
@@ -3187,7 +3198,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3187
3198
|
{
|
|
3188
3199
|
path: "signup",
|
|
3189
3200
|
name: "/user/signup",
|
|
3190
|
-
component: () => import("./signup-
|
|
3201
|
+
component: () => import("./signup-0ec1bb6e.js"),
|
|
3191
3202
|
meta: {
|
|
3192
3203
|
title: "Registro"
|
|
3193
3204
|
}
|
|
@@ -3195,13 +3206,13 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3195
3206
|
{
|
|
3196
3207
|
path: "activation",
|
|
3197
3208
|
name: "/user/activation",
|
|
3198
|
-
component: () => import("./activation-
|
|
3209
|
+
component: () => import("./activation-db795cbd.js"),
|
|
3199
3210
|
meta: {
|
|
3200
3211
|
title: "Ativação"
|
|
3201
3212
|
}
|
|
3202
3213
|
}
|
|
3203
3214
|
])
|
|
3204
|
-
}),
|
|
3215
|
+
}), Fl = (c, i = []) => ({
|
|
3205
3216
|
path: "/dashboard",
|
|
3206
3217
|
name: "/builtin:dashboard",
|
|
3207
3218
|
component: c,
|
|
@@ -3217,8 +3228,8 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3217
3228
|
name: "/dashboard/crud",
|
|
3218
3229
|
props: !0,
|
|
3219
3230
|
components: {
|
|
3220
|
-
default: () => import("./crud-view-
|
|
3221
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3231
|
+
default: () => import("./crud-view-375a71ce.js"),
|
|
3232
|
+
topbar: () => Promise.resolve().then(() => Cl)
|
|
3222
3233
|
},
|
|
3223
3234
|
meta: {
|
|
3224
3235
|
title: "%viewTitle%"
|
|
@@ -3235,7 +3246,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3235
3246
|
children: [
|
|
3236
3247
|
{
|
|
3237
3248
|
path: "profile",
|
|
3238
|
-
component: () => import("./profile-
|
|
3249
|
+
component: () => import("./profile-7d32f24a.js"),
|
|
3239
3250
|
meta: {
|
|
3240
3251
|
title: "Meu perfil",
|
|
3241
3252
|
icon: "user-square"
|
|
@@ -3244,7 +3255,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3244
3255
|
{
|
|
3245
3256
|
path: "changepass",
|
|
3246
3257
|
name: "/dashboard/user/changepass",
|
|
3247
|
-
component: () => import("./password-change-
|
|
3258
|
+
component: () => import("./password-change-85ee1e80.js"),
|
|
3248
3259
|
meta: {
|
|
3249
3260
|
title: "Mudar senha",
|
|
3250
3261
|
icon: "lock"
|
|
@@ -3256,36 +3267,36 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @_
|
|
|
3256
3267
|
});
|
|
3257
3268
|
export {
|
|
3258
3269
|
He as A,
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3270
|
+
xa as B,
|
|
3271
|
+
ol as C,
|
|
3272
|
+
Vl as D,
|
|
3273
|
+
Ml as E,
|
|
3274
|
+
Fl as F,
|
|
3275
|
+
zl as _,
|
|
3265
3276
|
ie as a,
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3277
|
+
P as b,
|
|
3278
|
+
Dn as c,
|
|
3279
|
+
Tl as d,
|
|
3269
3280
|
Me as e,
|
|
3270
|
-
|
|
3281
|
+
Rl as f,
|
|
3271
3282
|
Ae as g,
|
|
3272
3283
|
G as h,
|
|
3273
|
-
|
|
3284
|
+
jl as i,
|
|
3274
3285
|
be as j,
|
|
3275
3286
|
fe as k,
|
|
3276
|
-
|
|
3287
|
+
dn as l,
|
|
3277
3288
|
Ce as m,
|
|
3278
|
-
|
|
3279
|
-
|
|
3289
|
+
Fa as n,
|
|
3290
|
+
hn as o,
|
|
3280
3291
|
Ll as p,
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3292
|
+
zn as q,
|
|
3293
|
+
Ra as r,
|
|
3294
|
+
hl as s,
|
|
3295
|
+
ho as t,
|
|
3285
3296
|
Ie as u,
|
|
3286
|
-
|
|
3287
|
-
|
|
3297
|
+
Wn as v,
|
|
3298
|
+
zo as w,
|
|
3288
3299
|
Ee as x,
|
|
3289
|
-
|
|
3290
|
-
|
|
3300
|
+
Nn as y,
|
|
3301
|
+
$l as z
|
|
3291
3302
|
};
|