@aeria-ui/ui 0.0.43 → 0.0.45
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-309d46c7.js → activation-48da470d.js} +21 -21
- package/dist/{crud-view-86988807.js → crud-view-63769c42.js} +1 -1
- package/dist/{index-82deba70.js → index-b1a603e9.js} +1026 -1014
- package/dist/{password-change-09610509.js → password-change-ab424d59.js} +1 -1
- package/dist/{profile-28afeeaa.js → profile-090ce0f0.js} +1 -1
- package/dist/{signin-12da0ca0.js → signin-98b7bf3a.js} +10 -10
- package/dist/{signup-db7595de.js → signup-a12b576e.js} +37 -37
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as q, ref as
|
|
1
|
+
import { defineComponent as q, ref as Y, resolveDirective as ne, openBlock as o, createElementBlock as s, normalizeClass as Q, Fragment as J, renderList as U, withDirectives as Z, toDisplayString as g, createCommentVNode as y, createTextVNode as D, unref as e, renderSlot as A, inject as ve, computed as H, createElementVNode as k, mergeProps as E, createBlock as $, resolveDynamicComponent as he, withCtx as v, useCssVars as Vt, Teleport as Ge, onMounted as mt, watch as re, createVNode as z, vModelDynamic as Ct, 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 It, onUnmounted as At, resolveComponent as Ot, Suspense as wt, useSlots as Bt, h as St } from "vue";
|
|
2
2
|
import { t as F, useI18n as jt } from "@aeria-ui/i18n";
|
|
3
|
-
import { useScrollObserver as We, useBreakpoints as je, useClipboard as Tt, useMask as
|
|
4
|
-
import { useStore as ue, getStoreId as Te, useParentStore as ge, STORE_ID as Ue, getGlobalStateManager as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import {
|
|
3
|
+
import { useScrollObserver as We, useBreakpoints as je, useClipboard as Tt, useMask as Rt, PAGINATION_PER_PAGE_DEFAULTS as Lt, API_URL as yt, request as zt, useDebounce as ht, isDocumentComplete as Mt, convertToSearchQuery as Ft, useAction as qt, convertFromSearchQuery as Ut, usePasswordPolicy as Et } from "@aeria-ui/core";
|
|
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 Re } from "vue-router";
|
|
6
|
+
import { isError as bt, getReferenceProperty as pe, convertConditionToQuery as Ht, deepClone as Se, freshItem as Dt, isRequired as Qt, evaluateCondition as Qe } from "@aeriajs/common";
|
|
7
7
|
const Gt = ["onClick"], Wt = { key: 0 }, Xt = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "accordion__content"
|
|
@@ -15,40 +15,40 @@ const Gt = ["onClick"], Wt = { key: 0 }, Xt = {
|
|
|
15
15
|
headers: {}
|
|
16
16
|
},
|
|
17
17
|
setup(c) {
|
|
18
|
-
const
|
|
19
|
-
return (
|
|
20
|
-
const
|
|
21
|
-
return
|
|
18
|
+
const i = Y(null), t = (a) => typeof a == "string" ? a : a.title;
|
|
19
|
+
return (a, l) => {
|
|
20
|
+
const r = ne("clickable");
|
|
21
|
+
return o(), s("div", {
|
|
22
22
|
class: Q({
|
|
23
23
|
accordion: !0,
|
|
24
|
-
"accordion--padded": !
|
|
24
|
+
"accordion--padded": !a.noPadding
|
|
25
25
|
})
|
|
26
26
|
}, [
|
|
27
|
-
(
|
|
27
|
+
(o(!0), s(J, null, U(Object.keys(a.$slots).filter((u) => u !== "default"), (u, p) => (o(), s("div", {
|
|
28
28
|
key: u,
|
|
29
29
|
class: "accordion__slot"
|
|
30
30
|
}, [
|
|
31
|
-
Z((
|
|
31
|
+
Z((o(), s("div", {
|
|
32
32
|
class: "accordion__header",
|
|
33
|
-
onClick: (
|
|
33
|
+
onClick: (d) => i.value === u ? i.value = null : i.value = u
|
|
34
34
|
}, [
|
|
35
|
-
|
|
36
|
-
D(" " +
|
|
35
|
+
a.enumerate ? (o(), s("span", Wt, g(p + 1) + ". ", 1)) : y("", !0),
|
|
36
|
+
D(" " + g(a.headers[u] ? t(a.headers[u]) : e(F)(u)), 1)
|
|
37
37
|
], 8, Gt)), [
|
|
38
|
-
[
|
|
38
|
+
[r]
|
|
39
39
|
]),
|
|
40
|
-
|
|
41
|
-
A(
|
|
40
|
+
i.value === u ? (o(), s("div", Xt, [
|
|
41
|
+
A(a.$slots, u, {}, void 0, !0)
|
|
42
42
|
])) : y("", !0)
|
|
43
43
|
]))), 128))
|
|
44
44
|
], 2);
|
|
45
45
|
};
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
|
-
const G = (c,
|
|
48
|
+
const G = (c, i) => {
|
|
49
49
|
const t = c.__vccOpts || c;
|
|
50
|
-
for (const [
|
|
51
|
-
t[
|
|
50
|
+
for (const [a, l] of i)
|
|
51
|
+
t[a] = l;
|
|
52
52
|
return t;
|
|
53
53
|
}, Tl = /* @__PURE__ */ G(Yt, [["__scopeId", "data-v-3ea933d4"]]), Jt = /* @__PURE__ */ q({
|
|
54
54
|
__name: "aeria-badge",
|
|
@@ -57,14 +57,14 @@ const G = (c, r) => {
|
|
|
57
57
|
alt: { type: Boolean }
|
|
58
58
|
},
|
|
59
59
|
setup(c) {
|
|
60
|
-
return (
|
|
60
|
+
return (i, t) => (o(), s("div", {
|
|
61
61
|
class: Q(`
|
|
62
62
|
badge
|
|
63
|
-
${
|
|
64
|
-
${
|
|
63
|
+
${i.large && "badge--large"}
|
|
64
|
+
${i.alt && "badge--alt"}
|
|
65
65
|
`)
|
|
66
66
|
}, [
|
|
67
|
-
A(
|
|
67
|
+
A(i.$slots, "default", {}, void 0, !0)
|
|
68
68
|
], 2));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
@@ -74,18 +74,18 @@ const be = /* @__PURE__ */ G(Jt, [["__scopeId", "data-v-47f92648"]]), Kt = /* @_
|
|
|
74
74
|
disabled: { type: Boolean }
|
|
75
75
|
},
|
|
76
76
|
emits: ["click"],
|
|
77
|
-
setup(c, { emit:
|
|
78
|
-
const t = c,
|
|
79
|
-
t.disabled ||
|
|
77
|
+
setup(c, { emit: i }) {
|
|
78
|
+
const t = c, a = i, l = (r) => {
|
|
79
|
+
t.disabled || a("click", r);
|
|
80
80
|
};
|
|
81
|
-
return (
|
|
81
|
+
return (r, u) => (o(), s("button", {
|
|
82
82
|
class: Q(`
|
|
83
83
|
barebutton
|
|
84
|
-
barebutton--${
|
|
84
|
+
barebutton--${r.disabled ? "disabled" : "enabled"}
|
|
85
85
|
`),
|
|
86
86
|
onClick: l
|
|
87
87
|
}, [
|
|
88
|
-
A(
|
|
88
|
+
A(r.$slots, "default", {}, void 0, !0)
|
|
89
89
|
], 2));
|
|
90
90
|
}
|
|
91
91
|
});
|
|
@@ -103,25 +103,25 @@ const fe = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["hre
|
|
|
103
103
|
fill: {}
|
|
104
104
|
},
|
|
105
105
|
setup(c) {
|
|
106
|
-
const
|
|
106
|
+
const i = c, t = typeof i.reactive == "boolean" ? i.reactive : ve("iconReactive", !1), a = H(() => {
|
|
107
107
|
var l;
|
|
108
|
-
return (l =
|
|
108
|
+
return (l = i.icon) != null && l.includes(":") ? i.icon : `regular:${i.icon}`;
|
|
109
109
|
});
|
|
110
|
-
return (l,
|
|
110
|
+
return (l, r) => (o(), s("a", {
|
|
111
111
|
class: Q(`
|
|
112
112
|
icon
|
|
113
113
|
${e(t) && "icon--reactive"}
|
|
114
114
|
${l.$slots.default ? "icon--centered" : "icon--standalone"}
|
|
115
115
|
`)
|
|
116
116
|
}, [
|
|
117
|
-
|
|
117
|
+
k("div", {
|
|
118
118
|
class: Q(`
|
|
119
119
|
icon__icon
|
|
120
120
|
${l.size && `icon__icon--${l.size}`}
|
|
121
121
|
${l.iconRight && "icon__icon--right"}
|
|
122
122
|
`)
|
|
123
123
|
}, [
|
|
124
|
-
(
|
|
124
|
+
(o(), s("svg", E({
|
|
125
125
|
width: "24",
|
|
126
126
|
height: "24",
|
|
127
127
|
viewBox: "0 0 256 256",
|
|
@@ -129,12 +129,12 @@ const fe = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-35bc81ae"]]), Zt = ["hre
|
|
|
129
129
|
}, {
|
|
130
130
|
...l.fill ? { fill: l.fill } : {}
|
|
131
131
|
}), [
|
|
132
|
-
|
|
133
|
-
href: `/assets/icons.svg#${
|
|
132
|
+
k("use", {
|
|
133
|
+
href: `/assets/icons.svg#${a.value}`
|
|
134
134
|
}, null, 8, Zt)
|
|
135
135
|
], 16))
|
|
136
136
|
], 2),
|
|
137
|
-
l.$slots.default ? (
|
|
137
|
+
l.$slots.default ? (o(), s("div", Pt, [
|
|
138
138
|
A(l.$slots, "default", {}, void 0, !0)
|
|
139
139
|
])) : y("", !0)
|
|
140
140
|
], 2));
|
|
@@ -166,103 +166,103 @@ const K = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4b763bd3"]]), xt = { clas
|
|
|
166
166
|
overlayLayer: {}
|
|
167
167
|
},
|
|
168
168
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
169
|
-
setup(c, { emit:
|
|
170
|
-
const t = c,
|
|
171
|
-
|
|
169
|
+
setup(c, { emit: i }) {
|
|
170
|
+
const t = c, a = i, l = H(() => t.floating || t.float), r = Y(t.collapsed), u = Y(null), { reachedEnd: p } = We(u), d = () => {
|
|
171
|
+
a("update:modelValue", !1), a("close");
|
|
172
172
|
}, h = () => {
|
|
173
|
-
|
|
174
|
-
},
|
|
175
|
-
|
|
173
|
+
a("overlayClick");
|
|
174
|
+
}, _ = (n) => {
|
|
175
|
+
a("update:collapsed", n), r.value = n;
|
|
176
176
|
};
|
|
177
|
-
return (
|
|
178
|
-
const
|
|
179
|
-
return
|
|
177
|
+
return (n, f) => {
|
|
178
|
+
const V = ne("clickable"), S = ne("loading"), L = ne("overlay");
|
|
179
|
+
return n.modelValue ? Z((o(), s("div", {
|
|
180
180
|
key: 0,
|
|
181
181
|
class: Q(`
|
|
182
182
|
panel
|
|
183
|
-
${
|
|
183
|
+
${n.fixedRight && "panel--fixed"}
|
|
184
184
|
`)
|
|
185
185
|
}, [
|
|
186
|
-
(
|
|
186
|
+
(o(), $(he(
|
|
187
187
|
l.value ? "dialog" : "div"
|
|
188
188
|
), {
|
|
189
189
|
"data-component": "panel",
|
|
190
190
|
class: Q(`
|
|
191
191
|
aeria-surface
|
|
192
192
|
panel__content
|
|
193
|
-
${!(l.value ||
|
|
193
|
+
${!(l.value || n.fixedRight) && "panel__content--rounded"}
|
|
194
194
|
${l.value && "panel__content--floating"}
|
|
195
|
-
${
|
|
196
|
-
${
|
|
197
|
-
${
|
|
198
|
-
${
|
|
199
|
-
${
|
|
195
|
+
${n.bordered && "panel__content--bordered-body"}
|
|
196
|
+
${n.fixedRight && "panel__content--fixed-right"}
|
|
197
|
+
${n.transparent && "panel__content--transparent"}
|
|
198
|
+
${n.transparentMobile && "panel__content--transparent-mobile"}
|
|
199
|
+
${n.outerHeader && "panel__content--outer-header"}
|
|
200
200
|
`),
|
|
201
|
-
onClick:
|
|
201
|
+
onClick: f[1] || (f[1] = (W) => W.stopPropagation())
|
|
202
202
|
}, {
|
|
203
203
|
default: v(() => [
|
|
204
|
-
|
|
204
|
+
n.$slots.header || n.title ? (o(), s("div", {
|
|
205
205
|
key: 0,
|
|
206
206
|
class: Q(`
|
|
207
207
|
panel__header
|
|
208
|
-
${
|
|
209
|
-
${
|
|
208
|
+
${r.value && "panel__header--collapsed"}
|
|
209
|
+
${n.outerHeader && "panel__header--outer"}
|
|
210
210
|
`)
|
|
211
211
|
}, [
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
A(
|
|
212
|
+
k("div", xt, [
|
|
213
|
+
n.$slots.header ? A(n.$slots, "header", { key: 0 }, void 0, !0) : n.title ? (o(), s("div", en, g(n.title), 1)) : y("", !0),
|
|
214
|
+
n.$slots.extra ? (o(), s("div", tn, [
|
|
215
|
+
A(n.$slots, "extra", {}, void 0, !0)
|
|
216
216
|
])) : y("", !0)
|
|
217
217
|
]),
|
|
218
|
-
|
|
218
|
+
n.collapsible ? Z((o(), $(K, {
|
|
219
219
|
key: 0,
|
|
220
220
|
reactive: "",
|
|
221
|
-
icon:
|
|
222
|
-
onClick:
|
|
221
|
+
icon: r.value ? "plus" : "minus",
|
|
222
|
+
onClick: f[0] || (f[0] = (W) => _(!r.value))
|
|
223
223
|
}, null, 8, ["icon"])), [
|
|
224
|
-
[
|
|
225
|
-
]) :
|
|
224
|
+
[V]
|
|
225
|
+
]) : n.closeHint ? Z((o(), $(K, {
|
|
226
226
|
key: 1,
|
|
227
227
|
reactive: "",
|
|
228
228
|
icon: "x",
|
|
229
|
-
onClick:
|
|
229
|
+
onClick: d
|
|
230
230
|
}, null, 512)), [
|
|
231
|
-
[
|
|
231
|
+
[V]
|
|
232
232
|
]) : y("", !0)
|
|
233
233
|
], 2)) : y("", !0),
|
|
234
|
-
|
|
234
|
+
r.value ? y("", !0) : Z((o(), s("div", {
|
|
235
235
|
key: 1,
|
|
236
236
|
ref_key: "body",
|
|
237
237
|
ref: u,
|
|
238
238
|
class: Q(`
|
|
239
239
|
panel__body
|
|
240
|
-
${
|
|
240
|
+
${n.fill || "panel__body--padded"}
|
|
241
241
|
`)
|
|
242
242
|
}, [
|
|
243
|
-
A(
|
|
243
|
+
A(n.$slots, "default", {}, void 0, !0)
|
|
244
244
|
], 2)), [
|
|
245
|
-
[S,
|
|
245
|
+
[S, n.loading]
|
|
246
246
|
]),
|
|
247
|
-
|
|
247
|
+
n.$slots.footer ? (o(), s("div", {
|
|
248
248
|
key: 2,
|
|
249
249
|
class: Q(`
|
|
250
250
|
panel__footer
|
|
251
|
-
${
|
|
252
|
-
${e(
|
|
251
|
+
${n.fillFooter || "panel__footer--padded"}
|
|
252
|
+
${e(p) || "panel__footer--shadowed"}
|
|
253
253
|
`)
|
|
254
254
|
}, [
|
|
255
|
-
A(
|
|
255
|
+
A(n.$slots, "footer", {}, void 0, !0)
|
|
256
256
|
], 2)) : y("", !0)
|
|
257
257
|
]),
|
|
258
258
|
_: 3
|
|
259
259
|
}, 8, ["class"]))
|
|
260
260
|
], 2)), [
|
|
261
|
-
[
|
|
262
|
-
condition:
|
|
263
|
-
invisible:
|
|
261
|
+
[L, {
|
|
262
|
+
condition: n.overlay || n.fixedRight || l.value,
|
|
263
|
+
invisible: n.invisibleOverlay,
|
|
264
264
|
click: h,
|
|
265
|
-
layer:
|
|
265
|
+
layer: n.overlayLayer || (l.value ? 60 : n.fixedRight ? 50 : 0)
|
|
266
266
|
}]
|
|
267
267
|
]) : y("", !0);
|
|
268
268
|
};
|
|
@@ -283,36 +283,36 @@ const Ae = /* @__PURE__ */ G(nn, [["__scopeId", "data-v-6fdc75a0"]]), on = { cla
|
|
|
283
283
|
loading: { type: Boolean }
|
|
284
284
|
},
|
|
285
285
|
setup(c) {
|
|
286
|
-
const
|
|
286
|
+
const i = c, t = ve("buttonVariant", i.variant) || "primary", a = (() => {
|
|
287
287
|
switch (!0) {
|
|
288
|
-
case
|
|
288
|
+
case i.small:
|
|
289
289
|
return "small";
|
|
290
|
-
case
|
|
290
|
+
case i.large:
|
|
291
291
|
return "large";
|
|
292
292
|
}
|
|
293
|
-
return ve("buttonSize",
|
|
293
|
+
return ve("buttonSize", i.size) || "medium";
|
|
294
294
|
})();
|
|
295
|
-
return (l,
|
|
295
|
+
return (l, r) => (o(), $(fe, {
|
|
296
296
|
class: Q(`
|
|
297
297
|
button
|
|
298
298
|
button--${e(t)}
|
|
299
|
-
button--${e(
|
|
299
|
+
button--${e(a)}
|
|
300
300
|
${l.loading && "button--loading"}
|
|
301
301
|
`),
|
|
302
302
|
disabled: l.disabled
|
|
303
303
|
}, {
|
|
304
304
|
default: v(() => [
|
|
305
|
-
l.icon ? (
|
|
305
|
+
l.icon ? (o(), $(K, {
|
|
306
306
|
key: 0,
|
|
307
307
|
icon: l.icon
|
|
308
308
|
}, {
|
|
309
309
|
default: v(() => [
|
|
310
|
-
|
|
310
|
+
k("div", on, [
|
|
311
311
|
A(l.$slots, "default", {}, void 0, !0)
|
|
312
312
|
])
|
|
313
313
|
]),
|
|
314
314
|
_: 3
|
|
315
|
-
}, 8, ["icon"])) : (
|
|
315
|
+
}, 8, ["icon"])) : (o(), s("div", an, [
|
|
316
316
|
A(l.$slots, "default", {}, void 0, !0)
|
|
317
317
|
]))
|
|
318
318
|
]),
|
|
@@ -327,25 +327,25 @@ const ie = /* @__PURE__ */ G(ln, [["__scopeId", "data-v-c328251b"]]), sn = { cla
|
|
|
327
327
|
horizontal: { type: Boolean }
|
|
328
328
|
},
|
|
329
329
|
setup(c) {
|
|
330
|
-
return (
|
|
330
|
+
return (i, t) => (o(), s("div", {
|
|
331
331
|
class: Q(`
|
|
332
332
|
card
|
|
333
|
-
${
|
|
334
|
-
${
|
|
333
|
+
${i.inactive && "card--inactive"}
|
|
334
|
+
${i.horizontal && "card--horizontal"}
|
|
335
335
|
`)
|
|
336
336
|
}, [
|
|
337
|
-
|
|
338
|
-
A(
|
|
337
|
+
k("div", sn, [
|
|
338
|
+
A(i.$slots, "default", {}, void 0, !0)
|
|
339
339
|
]),
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
A(
|
|
340
|
+
k("div", rn, [
|
|
341
|
+
k("div", un, [
|
|
342
|
+
k("div", null, [
|
|
343
|
+
A(i.$slots, "footer", {}, void 0, !0)
|
|
344
344
|
]),
|
|
345
|
-
|
|
345
|
+
i.$slots.actions ? A(i.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
|
|
346
346
|
]),
|
|
347
|
-
|
|
348
|
-
A(
|
|
347
|
+
k("div", cn, [
|
|
348
|
+
A(i.$slots, "badge", {}, void 0, !0)
|
|
349
349
|
])
|
|
350
350
|
])
|
|
351
351
|
], 2));
|
|
@@ -362,92 +362,98 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
362
362
|
overlayLayer: {}
|
|
363
363
|
},
|
|
364
364
|
emits: ["actionClick"],
|
|
365
|
-
setup(c, { emit:
|
|
366
|
-
|
|
367
|
-
"
|
|
368
|
-
"
|
|
365
|
+
setup(c, { emit: i }) {
|
|
366
|
+
Vt((d) => ({
|
|
367
|
+
"5bf89080": p.value.x,
|
|
368
|
+
"5bf8907e": p.value.y
|
|
369
369
|
}));
|
|
370
|
-
const t =
|
|
371
|
-
h.
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
}
|
|
375
|
-
|
|
376
|
-
|
|
370
|
+
const t = i, a = Y(null), l = Y(!1), r = (d) => d == null ? void 0 : d.filter((h) => {
|
|
371
|
+
if (h.roles) {
|
|
372
|
+
const _ = ue("user");
|
|
373
|
+
return h.roles.include(_.currentUser.role);
|
|
374
|
+
}
|
|
375
|
+
return !!h.click;
|
|
376
|
+
}), u = (d, h) => {
|
|
377
|
+
d.click(h), t("actionClick", {
|
|
378
|
+
action: d,
|
|
379
|
+
subject: h
|
|
380
|
+
}), l.value = !1;
|
|
381
|
+
}, p = H(() => {
|
|
382
|
+
if (!a.value)
|
|
377
383
|
return {
|
|
378
384
|
x: 0,
|
|
379
385
|
y: 0
|
|
380
386
|
};
|
|
381
|
-
const
|
|
387
|
+
const d = a.value.getBoundingClientRect().top, h = a.value.getBoundingClientRect().left, _ = a.value.offsetHeight;
|
|
382
388
|
return {
|
|
383
|
-
_:
|
|
384
|
-
x: Math.floor(
|
|
385
|
-
y: Math.floor(
|
|
389
|
+
_: l.value,
|
|
390
|
+
x: Math.floor(h) + "px",
|
|
391
|
+
y: Math.floor(d + _) + "px"
|
|
386
392
|
};
|
|
387
393
|
});
|
|
388
|
-
return (
|
|
389
|
-
const
|
|
390
|
-
return
|
|
391
|
-
Object.keys(
|
|
394
|
+
return (d, h) => {
|
|
395
|
+
const _ = ne("overlay");
|
|
396
|
+
return o(), s(J, null, [
|
|
397
|
+
Object.keys(d.$slots).some((n) => n !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (o(), s("div", {
|
|
392
398
|
key: 0,
|
|
393
399
|
ref_key: "contextmenu",
|
|
394
|
-
ref:
|
|
400
|
+
ref: a,
|
|
395
401
|
class: "contextmenu"
|
|
396
402
|
}, [
|
|
397
|
-
|
|
403
|
+
k("a", {
|
|
398
404
|
class: "contextmenu__trigger",
|
|
399
|
-
onClick:
|
|
405
|
+
onClick: h[0] || (h[0] = (n) => l.value = !0)
|
|
400
406
|
}, [
|
|
401
|
-
A(
|
|
407
|
+
A(d.$slots, "default", {}, void 0, !0)
|
|
402
408
|
])
|
|
403
409
|
], 512)) : y("", !0),
|
|
404
|
-
|
|
410
|
+
l.value ? (o(), $(Ge, {
|
|
405
411
|
key: 1,
|
|
406
412
|
to: "main"
|
|
407
413
|
}, [
|
|
408
|
-
Z((
|
|
409
|
-
modelValue:
|
|
410
|
-
"onUpdate:modelValue":
|
|
414
|
+
Z((o(), $(Ae, {
|
|
415
|
+
modelValue: l.value,
|
|
416
|
+
"onUpdate:modelValue": h[4] || (h[4] = (n) => l.value = n),
|
|
411
417
|
fill: "",
|
|
412
418
|
class: "content"
|
|
413
419
|
}, {
|
|
414
420
|
default: v(() => [
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
A(
|
|
421
|
+
k("div", _n, [
|
|
422
|
+
d.$slots.header ? (o(), s("div", mn, [
|
|
423
|
+
A(d.$slots, "header", {}, void 0, !0)
|
|
418
424
|
])) : y("", !0),
|
|
419
|
-
Object.keys(
|
|
425
|
+
Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)).length > 0 ? (o(), s("div", {
|
|
420
426
|
key: 1,
|
|
421
427
|
class: "content__section",
|
|
422
|
-
onClick:
|
|
428
|
+
onClick: h[1] || (h[1] = (n) => l.value = !1)
|
|
423
429
|
}, [
|
|
424
|
-
(
|
|
425
|
-
key: `slot-${
|
|
430
|
+
(o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => !["default", "extra", "header"].includes(n)), (n, f) => (o(), $(fe, {
|
|
431
|
+
key: `slot-${f}`,
|
|
426
432
|
class: "content__item content__item--reactive"
|
|
427
433
|
}, {
|
|
428
434
|
default: v(() => [
|
|
429
|
-
A(
|
|
435
|
+
A(d.$slots, n, {}, void 0, !0)
|
|
430
436
|
]),
|
|
431
437
|
_: 2
|
|
432
438
|
}, 1024))), 128))
|
|
433
439
|
])) : y("", !0),
|
|
434
|
-
|
|
440
|
+
d.actions !== void 0 && d.actions.length > 0 ? (o(), s("div", {
|
|
435
441
|
key: 2,
|
|
436
442
|
class: "content__section",
|
|
437
|
-
onClick:
|
|
443
|
+
onClick: h[2] || (h[2] = (n) => l.value = !1)
|
|
438
444
|
}, [
|
|
439
|
-
(
|
|
440
|
-
key: `action-${
|
|
445
|
+
(o(!0), s(J, null, U(r(d.actions), (n, f) => (o(), $(fe, {
|
|
446
|
+
key: `action-${f}`,
|
|
441
447
|
class: "content__item content__item--reactive",
|
|
442
|
-
onClick: (
|
|
448
|
+
onClick: (V) => u(n, d.subject)
|
|
443
449
|
}, {
|
|
444
450
|
default: v(() => [
|
|
445
|
-
|
|
451
|
+
n.icon ? (o(), $(K, {
|
|
446
452
|
key: 0,
|
|
447
|
-
icon:
|
|
453
|
+
icon: n.icon
|
|
448
454
|
}, {
|
|
449
455
|
default: v(() => [
|
|
450
|
-
D(
|
|
456
|
+
D(g(n.translate ? e(F)(n.label, { capitalize: !0 }) : n.label), 1)
|
|
451
457
|
]),
|
|
452
458
|
_: 2
|
|
453
459
|
}, 1032, ["icon"])) : y("", !0)
|
|
@@ -455,13 +461,13 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
455
461
|
_: 2
|
|
456
462
|
}, 1032, ["onClick"]))), 128))
|
|
457
463
|
])) : y("", !0),
|
|
458
|
-
|
|
464
|
+
d.$slots.extra ? (o(), s("div", {
|
|
459
465
|
key: 3,
|
|
460
466
|
class: "content__section",
|
|
461
|
-
onClick:
|
|
467
|
+
onClick: h[3] || (h[3] = (n) => l.value = !1)
|
|
462
468
|
}, [
|
|
463
|
-
|
|
464
|
-
|
|
469
|
+
k("div", fn, [
|
|
470
|
+
d.$slots.extra ? A(d.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
|
|
465
471
|
])
|
|
466
472
|
])) : y("", !0)
|
|
467
473
|
])
|
|
@@ -469,11 +475,11 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
469
475
|
_: 3
|
|
470
476
|
}, 8, ["modelValue"])), [
|
|
471
477
|
[
|
|
472
|
-
|
|
478
|
+
_,
|
|
473
479
|
{
|
|
474
|
-
layer:
|
|
480
|
+
layer: d.overlayLayer,
|
|
475
481
|
click: () => {
|
|
476
|
-
|
|
482
|
+
l.value = !1;
|
|
477
483
|
}
|
|
478
484
|
},
|
|
479
485
|
void 0,
|
|
@@ -485,35 +491,35 @@ const pn = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { cla
|
|
|
485
491
|
};
|
|
486
492
|
}
|
|
487
493
|
});
|
|
488
|
-
const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-
|
|
494
|
+
const Ce = /* @__PURE__ */ G(vn, [["__scopeId", "data-v-a2accb16"]]), yn = { class: "info__content" }, hn = /* @__PURE__ */ q({
|
|
489
495
|
__name: "aeria-info",
|
|
490
496
|
props: {
|
|
491
497
|
where: {}
|
|
492
498
|
},
|
|
493
499
|
setup(c) {
|
|
494
|
-
const
|
|
495
|
-
return (
|
|
500
|
+
const i = c, t = je(), a = Y(!1), l = i.where || "top";
|
|
501
|
+
return (r, u) => e(t).md ? (o(), s("div", {
|
|
496
502
|
key: 0,
|
|
497
503
|
class: "info",
|
|
498
|
-
onMouseleave: u[1] || (u[1] = (
|
|
504
|
+
onMouseleave: u[1] || (u[1] = (p) => a.value = !1)
|
|
499
505
|
}, [
|
|
500
|
-
|
|
506
|
+
a.value ? (o(), s("div", {
|
|
501
507
|
key: 0,
|
|
502
508
|
class: Q(`
|
|
503
509
|
info__bubble
|
|
504
510
|
info__bubble--${e(l)}
|
|
505
511
|
`)
|
|
506
512
|
}, [
|
|
507
|
-
|
|
508
|
-
A(
|
|
513
|
+
k("div", yn, [
|
|
514
|
+
A(r.$slots, "text", {}, void 0, !0)
|
|
509
515
|
])
|
|
510
516
|
], 2)) : y("", !0),
|
|
511
|
-
|
|
512
|
-
onMouseover: u[0] || (u[0] = (
|
|
517
|
+
k("div", {
|
|
518
|
+
onMouseover: u[0] || (u[0] = (p) => a.value = !0)
|
|
513
519
|
}, [
|
|
514
|
-
A(
|
|
520
|
+
A(r.$slots, "default", {}, void 0, !0)
|
|
515
521
|
], 32)
|
|
516
|
-
], 32)) : A(
|
|
522
|
+
], 32)) : A(r.$slots, "default", { key: 1 }, void 0, !0);
|
|
517
523
|
}
|
|
518
524
|
});
|
|
519
525
|
const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { class: "input" }, gn = {
|
|
@@ -536,20 +542,20 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
536
542
|
variant: {}
|
|
537
543
|
},
|
|
538
544
|
emits: ["update:modelValue", "input", "change"],
|
|
539
|
-
setup(c, { emit:
|
|
545
|
+
setup(c, { emit: i }) {
|
|
540
546
|
var O;
|
|
541
|
-
const t = c,
|
|
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 = Tt(), h = i, _ = ve("inputVariant", t.variant) || "normal", n = {
|
|
542
548
|
name: t.propertyName,
|
|
543
|
-
readonly:
|
|
549
|
+
readonly: p,
|
|
544
550
|
type: (() => {
|
|
545
|
-
if ("type" in
|
|
546
|
-
switch (
|
|
551
|
+
if ("type" in a)
|
|
552
|
+
switch (a.type) {
|
|
547
553
|
case "number":
|
|
548
554
|
case "integer":
|
|
549
555
|
return "number";
|
|
550
556
|
}
|
|
551
|
-
if (
|
|
552
|
-
return
|
|
557
|
+
if (a.inputType)
|
|
558
|
+
return a.inputType;
|
|
553
559
|
switch (typeof t.modelValue) {
|
|
554
560
|
case "string":
|
|
555
561
|
return "text";
|
|
@@ -559,102 +565,108 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
559
565
|
return "text";
|
|
560
566
|
}
|
|
561
567
|
})(),
|
|
562
|
-
placeholder: u ?
|
|
568
|
+
placeholder: u ? a.description || t.propertyName : a.placeholder
|
|
563
569
|
};
|
|
564
|
-
"type" in
|
|
565
|
-
|
|
570
|
+
"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 && W(t.modelValue);
|
|
572
|
+
});
|
|
573
|
+
const f = () => {
|
|
566
574
|
try {
|
|
567
575
|
return t.modelValue ? new Date(t.modelValue).toISOString().split("T").shift() : "";
|
|
568
576
|
} catch {
|
|
569
577
|
return "";
|
|
570
578
|
}
|
|
571
|
-
},
|
|
579
|
+
}, V = Y([
|
|
572
580
|
"date",
|
|
573
581
|
"date-time"
|
|
574
|
-
].includes(
|
|
575
|
-
var
|
|
576
|
-
return typeof
|
|
577
|
-
|
|
578
|
-
|
|
582
|
+
].includes(n.type) ? f() : t.modelValue === null || t.modelValue === void 0 ? "" : t.modelValue), S = ((O = t.property) == null ? void 0 : O.type) === "string" && t.property.mask ? Rt(t.property.mask) : null, L = (M) => {
|
|
583
|
+
var X;
|
|
584
|
+
return typeof V.value == "string" && ((X = t.property) == null ? void 0 : X.type) === "string" && S !== null ? (V.value = S.enmask(V.value, void 0, {
|
|
585
|
+
defaultValue: !0
|
|
586
|
+
}), t.property.maskedValue === !0 ? V.value : S.unmask(V.value)) : M;
|
|
587
|
+
}, W = (M) => {
|
|
588
|
+
const X = (() => {
|
|
579
589
|
if (!M || typeof M != "string")
|
|
580
590
|
return M;
|
|
581
|
-
if (
|
|
591
|
+
if (n.type === "number" || n.type === "integer")
|
|
582
592
|
return Number(M);
|
|
583
|
-
if (!("type" in
|
|
584
|
-
return
|
|
585
|
-
switch (
|
|
593
|
+
if (!("type" in a && a.type === "string"))
|
|
594
|
+
return L(M);
|
|
595
|
+
switch (a.format) {
|
|
586
596
|
case "date":
|
|
587
597
|
case "date-time":
|
|
588
598
|
return new Date(M);
|
|
589
599
|
default:
|
|
590
|
-
return
|
|
600
|
+
return L(M);
|
|
591
601
|
}
|
|
592
602
|
})();
|
|
593
|
-
h("input",
|
|
603
|
+
h("input", X), h("update:modelValue", X);
|
|
594
604
|
}, P = (M) => {
|
|
595
|
-
const
|
|
596
|
-
|
|
605
|
+
const X = M.target.value;
|
|
606
|
+
V.value = X, W(X);
|
|
597
607
|
};
|
|
598
|
-
return re(() => t.modelValue, (M,
|
|
599
|
-
M instanceof Date || (
|
|
600
|
-
|
|
608
|
+
return re(() => t.modelValue, (M, X) => {
|
|
609
|
+
M instanceof Date || (X && !M ? V.value = void 0 : V.value = S ? S.enmask(String(M), void 0, {
|
|
610
|
+
defaultValue: !0
|
|
611
|
+
}) : String(M));
|
|
612
|
+
}), (M, X) => {
|
|
601
613
|
const w = ne("focus"), ee = ne("clickable");
|
|
602
|
-
return
|
|
603
|
-
e(u) ? y("", !0) : (
|
|
614
|
+
return o(), s("label", bn, [
|
|
615
|
+
e(u) ? y("", !0) : (o(), s("div", gn, [
|
|
604
616
|
M.$slots.default ? A(M.$slots, "default", { key: 0 }, void 0, !0) : A(M.$slots, "description", { key: 1 }, void 0, !0)
|
|
605
617
|
])),
|
|
606
|
-
M.$slots.hint ? (
|
|
618
|
+
M.$slots.hint ? (o(), s("div", kn, [
|
|
607
619
|
A(M.$slots, "hint", {}, void 0, !0)
|
|
608
620
|
])) : y("", !0),
|
|
609
|
-
"element" in e(
|
|
621
|
+
"element" in e(a) && e(a).element === "textarea" ? (o(), s("div", {
|
|
610
622
|
key: 2,
|
|
611
623
|
class: Q(`
|
|
612
624
|
input__container
|
|
613
|
-
input__container--${e(
|
|
625
|
+
input__container--${e(_)}
|
|
614
626
|
`)
|
|
615
627
|
}, [
|
|
616
|
-
Z(
|
|
617
|
-
placeholder:
|
|
618
|
-
readonly:
|
|
628
|
+
Z(k("textarea", {
|
|
629
|
+
placeholder: n.placeholder,
|
|
630
|
+
readonly: n.readonly,
|
|
619
631
|
value: M.modelValue,
|
|
620
632
|
class: Q(`
|
|
621
633
|
input__textarea
|
|
622
|
-
input__input--${e(
|
|
634
|
+
input__input--${e(_)}
|
|
623
635
|
`),
|
|
624
636
|
onInput: P
|
|
625
637
|
}, null, 42, Vn), [
|
|
626
|
-
[w, e(
|
|
638
|
+
[w, e(a).focus]
|
|
627
639
|
])
|
|
628
|
-
], 2)) : (
|
|
640
|
+
], 2)) : (o(), s("div", {
|
|
629
641
|
key: 3,
|
|
630
642
|
class: Q(`
|
|
631
643
|
input__container
|
|
632
|
-
input__container--${e(
|
|
644
|
+
input__container--${e(_)}
|
|
633
645
|
`)
|
|
634
646
|
}, [
|
|
635
|
-
Z(
|
|
636
|
-
value:
|
|
647
|
+
Z(k("input", E(n, {
|
|
648
|
+
value: V.value,
|
|
637
649
|
"data-component": "input",
|
|
638
650
|
class: `
|
|
639
651
|
input__input
|
|
640
|
-
input__input--${e(
|
|
652
|
+
input__input--${e(_)}
|
|
641
653
|
${e(l) && "input__input--icon"}
|
|
642
|
-
${e(
|
|
654
|
+
${e(p) && "input__input--readOnly"}
|
|
643
655
|
`,
|
|
644
656
|
onInput: P,
|
|
645
|
-
onChange:
|
|
657
|
+
onChange: X[0] || (X[0] = (C) => h("change", C))
|
|
646
658
|
}), null, 16, Cn), [
|
|
647
|
-
[w, e(
|
|
659
|
+
[w, e(a).focus]
|
|
648
660
|
]),
|
|
649
|
-
e(l) ? (
|
|
661
|
+
e(l) ? (o(), $(K, {
|
|
650
662
|
key: 0,
|
|
651
|
-
icon: e(
|
|
663
|
+
icon: e(a).icon || "magnifying-glass",
|
|
652
664
|
class: Q(`
|
|
653
665
|
input__icon
|
|
654
|
-
input__icon--${e(
|
|
666
|
+
input__icon--${e(_)}
|
|
655
667
|
`)
|
|
656
668
|
}, null, 8, ["icon", "class"])) : y("", !0),
|
|
657
|
-
e(
|
|
669
|
+
e(p) ? (o(), s("div", In, [
|
|
658
670
|
z($n, null, {
|
|
659
671
|
text: v(() => [
|
|
660
672
|
D("Copiar")
|
|
@@ -662,7 +674,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
662
674
|
default: v(() => [
|
|
663
675
|
Z(z(K, {
|
|
664
676
|
icon: "clipboard",
|
|
665
|
-
onClick:
|
|
677
|
+
onClick: X[1] || (X[1] = (C) => e(d)(String(M.modelValue || "")))
|
|
666
678
|
}, null, 512), [
|
|
667
679
|
[ee]
|
|
668
680
|
])
|
|
@@ -675,7 +687,7 @@ const $n = /* @__PURE__ */ G(hn, [["__scopeId", "data-v-76defa0b"]]), bn = { cla
|
|
|
675
687
|
};
|
|
676
688
|
}
|
|
677
689
|
});
|
|
678
|
-
const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-
|
|
690
|
+
const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-4bdda204"]]), On = ["value"], wn = {
|
|
679
691
|
key: 1,
|
|
680
692
|
value: ""
|
|
681
693
|
}, Bn = ["value", "data-selected"], Sn = /* @__PURE__ */ q({
|
|
@@ -691,37 +703,37 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-470ff8e4"]]), On = ["val
|
|
|
691
703
|
noOutline: { type: Boolean }
|
|
692
704
|
},
|
|
693
705
|
emits: ["update:modelValue", "change"],
|
|
694
|
-
setup(c, { emit:
|
|
695
|
-
const t = c,
|
|
696
|
-
t.booleanRef && (
|
|
697
|
-
},
|
|
698
|
-
const
|
|
706
|
+
setup(c, { emit: i }) {
|
|
707
|
+
const t = c, a = i, l = Y(null), r = t.property || {}, u = (_) => {
|
|
708
|
+
t.booleanRef && (p.value = _), a("update:modelValue", (_ == null ? void 0 : _._id) || _), a("change", (_ == null ? void 0 : _._id) || _);
|
|
709
|
+
}, p = t.booleanRef ? (() => {
|
|
710
|
+
const _ = Y(t.modelValue);
|
|
699
711
|
return H({
|
|
700
|
-
get: () =>
|
|
701
|
-
set: (
|
|
702
|
-
|
|
712
|
+
get: () => _.value === "true" ? !0 : _.value === "false" ? !1 : null,
|
|
713
|
+
set: (f) => {
|
|
714
|
+
_.value = f;
|
|
703
715
|
}
|
|
704
716
|
});
|
|
705
717
|
})() : H({
|
|
706
718
|
get: () => t.modelValue,
|
|
707
719
|
set: u
|
|
708
|
-
}),
|
|
709
|
-
return t.multiple && re(() => t.modelValue, (
|
|
710
|
-
var
|
|
720
|
+
}), d = (_) => Array.isArray(t.modelValue) ? t.modelValue.includes(_) : t.modelValue === _, h = H(() => t.multiple ? typeof t.multiple == "number" ? t.multiple : 5 : 1);
|
|
721
|
+
return t.multiple && re(() => t.modelValue, (_) => {
|
|
722
|
+
var f;
|
|
711
723
|
if (!l.value)
|
|
712
724
|
return;
|
|
713
|
-
const
|
|
714
|
-
|
|
715
|
-
}), (
|
|
725
|
+
const n = l.value.querySelector('option[data-selected="true"]');
|
|
726
|
+
n && n.removeAttribute("data-selected"), (f = l.value.querySelector(`option[value="${_}"]`)) == null || f.setAttribute("data-selected", "true");
|
|
727
|
+
}), (_, n) => (o(), s("div", {
|
|
716
728
|
class: Q({
|
|
717
729
|
select: !0,
|
|
718
|
-
"select--outline": !
|
|
730
|
+
"select--outline": !_.noOutline
|
|
719
731
|
})
|
|
720
732
|
}, [
|
|
721
|
-
|
|
733
|
+
k("select", E({
|
|
722
734
|
ref_key: "select",
|
|
723
735
|
ref: l,
|
|
724
|
-
value: e(
|
|
736
|
+
value: e(p)
|
|
725
737
|
}, {
|
|
726
738
|
size: h.value
|
|
727
739
|
}, {
|
|
@@ -729,55 +741,55 @@ const Ie = /* @__PURE__ */ G(An, [["__scopeId", "data-v-470ff8e4"]]), On = ["val
|
|
|
729
741
|
select__select: !0,
|
|
730
742
|
"select__select--multiple": !!t.multiple
|
|
731
743
|
},
|
|
732
|
-
onChange:
|
|
744
|
+
onChange: n[0] || (n[0] = (f) => u(f.target.value))
|
|
733
745
|
}), [
|
|
734
|
-
e(
|
|
746
|
+
e(r).icon ? (o(), $(K, {
|
|
735
747
|
key: 0,
|
|
736
|
-
icon: e(
|
|
748
|
+
icon: e(r).icon
|
|
737
749
|
}, null, 8, ["icon"])) : y("", !0),
|
|
738
|
-
t.multiple ? y("", !0) : (
|
|
739
|
-
(
|
|
740
|
-
key:
|
|
741
|
-
value:
|
|
742
|
-
"data-selected":
|
|
743
|
-
},
|
|
744
|
-
A(
|
|
750
|
+
t.multiple ? y("", !0) : (o(), s("option", wn, g(e(F)("none")), 1)),
|
|
751
|
+
(o(!0), s(J, null, U("enum" in e(r) ? e(r).enum : [], (f) => (o(), s("option", {
|
|
752
|
+
key: f,
|
|
753
|
+
value: f,
|
|
754
|
+
"data-selected": d(f)
|
|
755
|
+
}, g(e(r).translate ? e(F)(f) : f), 9, Bn))), 128)),
|
|
756
|
+
A(_.$slots, "default", {}, void 0, !0)
|
|
745
757
|
], 16, On)
|
|
746
758
|
], 2));
|
|
747
759
|
}
|
|
748
760
|
});
|
|
749
|
-
const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { class: "pagination" }, Tn = ["value"],
|
|
761
|
+
const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { class: "pagination" }, Tn = ["value"], Rn = { class: "pagination__control" }, Ln = { class: "pagination__page-input" }, zn = /* @__PURE__ */ q({
|
|
750
762
|
__name: "aeria-pagination",
|
|
751
763
|
props: {
|
|
752
764
|
pagination: {}
|
|
753
765
|
},
|
|
754
766
|
emits: ["paginate"],
|
|
755
|
-
setup(c, { emit:
|
|
756
|
-
const t = c,
|
|
767
|
+
setup(c, { emit: i }) {
|
|
768
|
+
const t = c, a = i, l = H({
|
|
757
769
|
get: () => Math.floor(t.pagination.offset / t.pagination.limit),
|
|
758
770
|
set: (h) => {
|
|
759
771
|
t.pagination.offset = h * t.pagination.limit;
|
|
760
772
|
}
|
|
761
|
-
}),
|
|
773
|
+
}), r = H({
|
|
762
774
|
get: () => t.pagination.limit,
|
|
763
775
|
set: (h) => {
|
|
764
776
|
t.pagination.limit = Number(h);
|
|
765
777
|
}
|
|
766
|
-
}), u =
|
|
778
|
+
}), u = Y(l.value ? l.value + 1 : 1), p = H(() => Math.ceil(t.pagination.recordsTotal / t.pagination.limit)), d = (h) => {
|
|
767
779
|
l.value = h === "previous" ? l.value - 1 : l.value + 1;
|
|
768
780
|
};
|
|
769
781
|
return re([
|
|
770
782
|
l,
|
|
771
|
-
|
|
783
|
+
r
|
|
772
784
|
], ([h]) => {
|
|
773
|
-
u.value = h + 1,
|
|
774
|
-
offset: l.value *
|
|
775
|
-
limit:
|
|
785
|
+
u.value = h + 1, a("paginate", {
|
|
786
|
+
offset: l.value * r.value,
|
|
787
|
+
limit: r.value
|
|
776
788
|
});
|
|
777
|
-
}), (h,
|
|
789
|
+
}), (h, _) => (o(), s("div", jn, [
|
|
778
790
|
z(Ee, {
|
|
779
|
-
modelValue:
|
|
780
|
-
"onUpdate:modelValue":
|
|
791
|
+
modelValue: r.value,
|
|
792
|
+
"onUpdate:modelValue": _[0] || (_[0] = (n) => r.value = n),
|
|
781
793
|
property: {
|
|
782
794
|
enum: [],
|
|
783
795
|
icon: "list"
|
|
@@ -785,16 +797,16 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
785
797
|
class: "pagination__control"
|
|
786
798
|
}, {
|
|
787
799
|
default: v(() => [
|
|
788
|
-
(
|
|
789
|
-
key: `limit-${
|
|
790
|
-
value:
|
|
791
|
-
},
|
|
800
|
+
(o(!0), s(J, null, U(e(Lt), (n) => (o(), s("option", {
|
|
801
|
+
key: `limit-${n}`,
|
|
802
|
+
value: n
|
|
803
|
+
}, g(n), 9, Tn))), 128))
|
|
792
804
|
]),
|
|
793
805
|
_: 1
|
|
794
806
|
}, 8, ["modelValue"]),
|
|
795
|
-
|
|
807
|
+
k("div", Rn, [
|
|
796
808
|
z(fe, {
|
|
797
|
-
onClick:
|
|
809
|
+
onClick: _[1] || (_[1] = (n) => l.value = 0)
|
|
798
810
|
}, {
|
|
799
811
|
default: v(() => [
|
|
800
812
|
z(K, {
|
|
@@ -806,7 +818,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
806
818
|
}),
|
|
807
819
|
z(fe, {
|
|
808
820
|
disabled: l.value === 0,
|
|
809
|
-
onClick:
|
|
821
|
+
onClick: _[2] || (_[2] = (n) => d("previous"))
|
|
810
822
|
}, {
|
|
811
823
|
default: v(() => [
|
|
812
824
|
z(K, {
|
|
@@ -816,24 +828,24 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
816
828
|
]),
|
|
817
829
|
_: 1
|
|
818
830
|
}, 8, ["disabled"]),
|
|
819
|
-
|
|
820
|
-
(
|
|
831
|
+
k("div", Ln, [
|
|
832
|
+
(o(), $(Ie, {
|
|
821
833
|
key: l.value,
|
|
822
834
|
modelValue: u.value,
|
|
823
|
-
"onUpdate:modelValue":
|
|
835
|
+
"onUpdate:modelValue": _[3] || (_[3] = (n) => u.value = n),
|
|
824
836
|
property: {
|
|
825
837
|
type: "number",
|
|
826
838
|
minimum: 1
|
|
827
839
|
},
|
|
828
|
-
onChange:
|
|
840
|
+
onChange: _[4] || (_[4] = (n) => {
|
|
829
841
|
l.value = u.value === 0 ? 0 : u.value - 1;
|
|
830
842
|
})
|
|
831
843
|
}, null, 8, ["modelValue"])),
|
|
832
|
-
|
|
844
|
+
k("span", null, g(e(F)("of")) + " " + g(p.value), 1)
|
|
833
845
|
]),
|
|
834
846
|
z(fe, {
|
|
835
|
-
disabled: l.value ===
|
|
836
|
-
onClick:
|
|
847
|
+
disabled: l.value === p.value - 1,
|
|
848
|
+
onClick: _[5] || (_[5] = (n) => d("next"))
|
|
837
849
|
}, {
|
|
838
850
|
default: v(() => [
|
|
839
851
|
z(K, {
|
|
@@ -844,7 +856,7 @@ const Ee = /* @__PURE__ */ G(Sn, [["__scopeId", "data-v-7a33443b"]]), jn = { cla
|
|
|
844
856
|
_: 1
|
|
845
857
|
}, 8, ["disabled"]),
|
|
846
858
|
z(fe, {
|
|
847
|
-
onClick:
|
|
859
|
+
onClick: _[6] || (_[6] = (n) => l.value = p.value - 1)
|
|
848
860
|
}, {
|
|
849
861
|
default: v(() => [
|
|
850
862
|
z(K, {
|
|
@@ -873,66 +885,66 @@ const Mn = /* @__PURE__ */ G(zn, [["__scopeId", "data-v-41aa1ffc"]]), Fn = { cla
|
|
|
873
885
|
variant: {}
|
|
874
886
|
},
|
|
875
887
|
emits: ["update:modelValue", "change"],
|
|
876
|
-
setup(c, { emit:
|
|
877
|
-
const t = c,
|
|
888
|
+
setup(c, { emit: i }) {
|
|
889
|
+
const t = c, a = t.property || {}, l = !("enum" in a) && [
|
|
878
890
|
"array",
|
|
879
891
|
"boolean"
|
|
880
|
-
].includes(
|
|
892
|
+
].includes(a.type) ? "checkbox" : "radio", r = i, u = t.value || !1, p = H({
|
|
881
893
|
get: () => {
|
|
882
|
-
var
|
|
883
|
-
return "type" in
|
|
894
|
+
var d;
|
|
895
|
+
return "type" in a && a.type === "boolean" ? !!t.value : "items" in a ? (d = t.modelValue) == null ? void 0 : d.includes(t.value) : t.modelValue === t.value;
|
|
884
896
|
},
|
|
885
897
|
set: () => {
|
|
886
|
-
var
|
|
887
|
-
if (!
|
|
888
|
-
if ("type" in
|
|
889
|
-
|
|
898
|
+
var d;
|
|
899
|
+
if (!a.readOnly) {
|
|
900
|
+
if ("type" in a && a.type === "boolean") {
|
|
901
|
+
r("update:modelValue", !t.modelValue);
|
|
890
902
|
return;
|
|
891
903
|
}
|
|
892
|
-
if ("items" in
|
|
893
|
-
|
|
904
|
+
if ("items" in a) {
|
|
905
|
+
r("update:modelValue", (d = t.modelValue) != null && d.includes(u) ? t.modelValue.filter((h) => h !== u) : [
|
|
894
906
|
...t.modelValue || [],
|
|
895
907
|
u
|
|
896
908
|
]);
|
|
897
909
|
return;
|
|
898
910
|
}
|
|
899
|
-
|
|
911
|
+
r("update:modelValue", t.value);
|
|
900
912
|
}
|
|
901
913
|
}
|
|
902
914
|
});
|
|
903
|
-
return (
|
|
904
|
-
const
|
|
905
|
-
return Z((
|
|
915
|
+
return (d, h) => {
|
|
916
|
+
const _ = ne("clickable");
|
|
917
|
+
return Z((o(), s("label", {
|
|
906
918
|
class: Q(`
|
|
907
919
|
checkbox
|
|
908
|
-
${e(
|
|
920
|
+
${e(a).readOnly && "checkbox--readOnly"}
|
|
909
921
|
`)
|
|
910
922
|
}, [
|
|
911
|
-
Z(
|
|
912
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
923
|
+
Z(k("input", E({
|
|
924
|
+
"onUpdate:modelValue": h[0] || (h[0] = (n) => p.value = n)
|
|
913
925
|
}, {
|
|
914
926
|
type: e(l),
|
|
915
|
-
readOnly: e(
|
|
916
|
-
checked:
|
|
927
|
+
readOnly: e(a).readOnly,
|
|
928
|
+
checked: p.value
|
|
917
929
|
}, { class: "checkbox__input" }), null, 16), [
|
|
918
|
-
[
|
|
930
|
+
[Ct, p.value]
|
|
919
931
|
]),
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
932
|
+
k("div", Fn, [
|
|
933
|
+
k("div", null, [
|
|
934
|
+
d.$slots.description ? A(d.$slots, "description", { key: 0 }, void 0, !0) : e(u) ? (o(), s("div", {
|
|
923
935
|
key: 1,
|
|
924
|
-
innerHTML: e(
|
|
925
|
-
}, null, 8, qn)) : A(
|
|
936
|
+
innerHTML: e(a).translate ? e(F)(e(u)) : e(u)
|
|
937
|
+
}, null, 8, qn)) : A(d.$slots, "default", { key: 2 }, void 0, !0)
|
|
926
938
|
]),
|
|
927
|
-
|
|
928
|
-
|
|
939
|
+
k("div", Un, [
|
|
940
|
+
d.$slots.hint ? A(d.$slots, "hint", { key: 0 }, void 0, !0) : e(a).hint ? (o(), s("div", {
|
|
929
941
|
key: 1,
|
|
930
|
-
innerHTML: e(
|
|
942
|
+
innerHTML: e(a).hint
|
|
931
943
|
}, null, 8, En)) : y("", !0)
|
|
932
944
|
])
|
|
933
945
|
])
|
|
934
946
|
], 2)), [
|
|
935
|
-
[
|
|
947
|
+
[_]
|
|
936
948
|
]);
|
|
937
949
|
};
|
|
938
950
|
}
|
|
@@ -951,38 +963,38 @@ const Qn = /* @__PURE__ */ G(Dn, [["__scopeId", "data-v-256eb557"]]), Gn = {
|
|
|
951
963
|
columns: { default: 1 }
|
|
952
964
|
},
|
|
953
965
|
emits: ["update:modelValue"],
|
|
954
|
-
setup(c, { emit:
|
|
955
|
-
const t = c,
|
|
956
|
-
|
|
966
|
+
setup(c, { emit: i }) {
|
|
967
|
+
const t = c, a = i, l = "items" in t.property ? t.property.items.enum : t.property.enum, r = (u) => {
|
|
968
|
+
a("update:modelValue", u);
|
|
957
969
|
};
|
|
958
|
-
return
|
|
959
|
-
t.modelValue ||
|
|
970
|
+
return ft(() => {
|
|
971
|
+
t.modelValue || a(
|
|
960
972
|
"update:modelValue",
|
|
961
973
|
"items" in t.property ? [] : ""
|
|
962
974
|
);
|
|
963
|
-
}), (u,
|
|
975
|
+
}), (u, p) => (o(), s("div", {
|
|
964
976
|
class: "options",
|
|
965
977
|
style: $e(`
|
|
966
978
|
--columns: ${u.columns};
|
|
967
979
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
968
980
|
`)
|
|
969
981
|
}, [
|
|
970
|
-
(
|
|
971
|
-
key: `option-${
|
|
982
|
+
(o(!0), s(J, null, U(e(l), (d) => (o(), s("div", {
|
|
983
|
+
key: `option-${d}`,
|
|
972
984
|
class: "options__checkbox"
|
|
973
985
|
}, [
|
|
974
986
|
z(Qn, E({ ref_for: !0 }, {
|
|
975
|
-
value:
|
|
987
|
+
value: d,
|
|
976
988
|
property: u.property
|
|
977
989
|
}, {
|
|
978
990
|
"model-value": u.modelValue,
|
|
979
|
-
"onUpdate:modelValue":
|
|
991
|
+
"onUpdate:modelValue": r
|
|
980
992
|
}), null, 16, ["model-value"])
|
|
981
993
|
]))), 128))
|
|
982
994
|
], 4));
|
|
983
995
|
}
|
|
984
996
|
});
|
|
985
|
-
const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) => (Fe("data-v-30f5a5ca"), c = c(), qe(), c), Jn = { class: "switch-wrapper" }, Kn = /* @__PURE__ */ Yn(() => /* @__PURE__ */
|
|
997
|
+
const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) => (Fe("data-v-30f5a5ca"), c = c(), qe(), c), Jn = { class: "switch-wrapper" }, Kn = /* @__PURE__ */ Yn(() => /* @__PURE__ */ k("div", { class: "switch__slider" }, null, -1)), Zn = { key: 1 }, Pn = {
|
|
986
998
|
inheritAttrs: !1
|
|
987
999
|
}, Nn = /* @__PURE__ */ q({
|
|
988
1000
|
...Pn,
|
|
@@ -995,52 +1007,52 @@ const Xn = /* @__PURE__ */ G(Wn, [["__scopeId", "data-v-43cda372"]]), Yn = (c) =
|
|
|
995
1007
|
parentCollection: {}
|
|
996
1008
|
},
|
|
997
1009
|
emits: ["update:modelValue", "change"],
|
|
998
|
-
setup(c, { emit:
|
|
999
|
-
const t = c,
|
|
1000
|
-
l.readOnly || (
|
|
1010
|
+
setup(c, { emit: i }) {
|
|
1011
|
+
const t = c, a = i, l = t.property || {}, r = () => {
|
|
1012
|
+
l.readOnly || (a("change", !t.modelValue), a("update:modelValue", !t.modelValue));
|
|
1001
1013
|
};
|
|
1002
|
-
return (u,
|
|
1003
|
-
const
|
|
1004
|
-
return
|
|
1005
|
-
Z((
|
|
1014
|
+
return (u, p) => {
|
|
1015
|
+
const d = ne("clickable");
|
|
1016
|
+
return o(), s("div", Jn, [
|
|
1017
|
+
Z((o(), s("a", {
|
|
1006
1018
|
class: Q(`
|
|
1007
1019
|
switch
|
|
1008
1020
|
${u.modelValue && "switch--active"}
|
|
1009
1021
|
${e(l).readOnly && "switch--readOnly"}
|
|
1010
1022
|
`),
|
|
1011
|
-
onClick: ze(
|
|
1023
|
+
onClick: ze(r, ["stop"])
|
|
1012
1024
|
}, [
|
|
1013
1025
|
Kn,
|
|
1014
|
-
|
|
1026
|
+
k("div", {
|
|
1015
1027
|
class: Q(`
|
|
1016
1028
|
switch__dummy
|
|
1017
1029
|
${!u.modelValue && "switch__dummy--flex"}
|
|
1018
1030
|
`)
|
|
1019
1031
|
}, null, 2)
|
|
1020
1032
|
], 2)), [
|
|
1021
|
-
[
|
|
1033
|
+
[d, {
|
|
1022
1034
|
blocked: e(l).readOnly
|
|
1023
1035
|
}]
|
|
1024
1036
|
]),
|
|
1025
|
-
u.$slots.default ? A(u.$slots, "default", { key: 0 }, void 0, !0) : (
|
|
1037
|
+
u.$slots.default ? A(u.$slots, "default", { key: 0 }, void 0, !0) : (o(), s("div", Zn, g(e(l).description || u.propertyName), 1))
|
|
1026
1038
|
]);
|
|
1027
1039
|
};
|
|
1028
1040
|
}
|
|
1029
1041
|
});
|
|
1030
|
-
const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]),
|
|
1042
|
+
const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), gt = (c) => (Fe("data-v-153a2e0f"), c = c(), qe(), c), eo = { class: "picture" }, to = {
|
|
1031
1043
|
key: 0,
|
|
1032
1044
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1033
1045
|
}, no = ["src", "alt"], oo = {
|
|
1034
1046
|
key: 0,
|
|
1035
1047
|
class: "picture__meta"
|
|
1036
|
-
}, ao = ["src"], lo = /* @__PURE__ */
|
|
1048
|
+
}, ao = ["src"], lo = /* @__PURE__ */ gt(() => /* @__PURE__ */ k("line", {
|
|
1037
1049
|
x1: "0",
|
|
1038
1050
|
y1: "0",
|
|
1039
1051
|
x2: "200",
|
|
1040
1052
|
y2: "200",
|
|
1041
1053
|
stroke: "#000",
|
|
1042
1054
|
"vector-effect": "non-scaling-stroke"
|
|
1043
|
-
}, null, -1)), so = /* @__PURE__ */
|
|
1055
|
+
}, null, -1)), so = /* @__PURE__ */ gt(() => /* @__PURE__ */ k("line", {
|
|
1044
1056
|
x1: "200",
|
|
1045
1057
|
y1: "0",
|
|
1046
1058
|
x2: "0",
|
|
@@ -1065,35 +1077,35 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), bt = (c) =
|
|
|
1065
1077
|
meta: {}
|
|
1066
1078
|
},
|
|
1067
1079
|
setup(c) {
|
|
1068
|
-
const
|
|
1069
|
-
return (l,
|
|
1070
|
-
var
|
|
1080
|
+
const i = c, t = H(() => i.fileId ? `${yt}/file/${i.fileId}/picture` : i.url || i.modelValue), a = Y(!1);
|
|
1081
|
+
return (l, r) => {
|
|
1082
|
+
var p;
|
|
1071
1083
|
const u = ne("overlay");
|
|
1072
|
-
return
|
|
1073
|
-
t.value ? (
|
|
1084
|
+
return o(), s("figure", eo, [
|
|
1085
|
+
t.value ? (o(), $(Ge, {
|
|
1074
1086
|
key: 0,
|
|
1075
1087
|
to: "main"
|
|
1076
1088
|
}, [
|
|
1077
|
-
|
|
1078
|
-
|
|
1089
|
+
a.value ? Z((o(), s("div", to, [
|
|
1090
|
+
k("img", {
|
|
1079
1091
|
src: t.value,
|
|
1080
1092
|
alt: l.alt,
|
|
1081
1093
|
style: `
|
|
1082
1094
|
max-height: 60vh;
|
|
1083
1095
|
object-fit: contain;
|
|
1084
1096
|
`,
|
|
1085
|
-
onClick:
|
|
1097
|
+
onClick: r[0] || (r[0] = (d) => a.value = !0)
|
|
1086
1098
|
}, null, 8, no),
|
|
1087
|
-
(
|
|
1099
|
+
(p = l.meta) != null && p.owner ? (o(), s("div", oo, " Criado por " + g(l.meta.owner.name) + " em " + g(l.formatDateTime(l.meta.created_at, { hours: !0 })), 1)) : y("", !0)
|
|
1088
1100
|
])), [
|
|
1089
1101
|
[u, {
|
|
1090
1102
|
click: () => {
|
|
1091
|
-
|
|
1103
|
+
a.value = !1;
|
|
1092
1104
|
}
|
|
1093
1105
|
}]
|
|
1094
1106
|
]) : y("", !0)
|
|
1095
1107
|
])) : y("", !0),
|
|
1096
|
-
t.value ? (
|
|
1108
|
+
t.value ? (o(), s("img", {
|
|
1097
1109
|
key: 1,
|
|
1098
1110
|
src: t.value,
|
|
1099
1111
|
class: Q(`
|
|
@@ -1106,10 +1118,10 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), bt = (c) =
|
|
|
1106
1118
|
width: ${l.width || "100%"};
|
|
1107
1119
|
height: ${l.height || "100%"};
|
|
1108
1120
|
`),
|
|
1109
|
-
onClick:
|
|
1110
|
-
l.expandable && (
|
|
1121
|
+
onClick: r[1] || (r[1] = () => {
|
|
1122
|
+
l.expandable && (a.value = !0);
|
|
1111
1123
|
})
|
|
1112
|
-
}, null, 14, ao)) : l.$slots.fallback ? A(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? A(l.$slots, "default", { key: 3 }, void 0, !0) : (
|
|
1124
|
+
}, null, 14, ao)) : l.$slots.fallback ? A(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? A(l.$slots, "default", { key: 3 }, void 0, !0) : (o(), s("svg", {
|
|
1113
1125
|
key: 4,
|
|
1114
1126
|
class: Q(["picture__background", `
|
|
1115
1127
|
${l.bordered && "picture__image--bordered"}
|
|
@@ -1123,7 +1135,7 @@ const xn = /* @__PURE__ */ G(Nn, [["__scopeId", "data-v-30f5a5ca"]]), bt = (c) =
|
|
|
1123
1135
|
height: ${l.height || "100%"};
|
|
1124
1136
|
`)
|
|
1125
1137
|
}, io, 6)),
|
|
1126
|
-
l.$slots.caption ? (
|
|
1138
|
+
l.$slots.caption ? (o(), s("figcaption", ro, [
|
|
1127
1139
|
A(l.$slots, "caption", {}, void 0, !0)
|
|
1128
1140
|
])) : y("", !0)
|
|
1129
1141
|
]);
|
|
@@ -1148,23 +1160,23 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1148
1160
|
content: {}
|
|
1149
1161
|
},
|
|
1150
1162
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1151
|
-
setup(c, { emit:
|
|
1152
|
-
const t = c,
|
|
1153
|
-
var
|
|
1154
|
-
return u.value ? URL.createObjectURL(u.value) : (
|
|
1155
|
-
}),
|
|
1156
|
-
var
|
|
1157
|
-
return /^image\//.test((
|
|
1158
|
-
}), h = (
|
|
1159
|
-
const
|
|
1160
|
-
|
|
1161
|
-
}),
|
|
1163
|
+
setup(c, { emit: i }) {
|
|
1164
|
+
const t = c, a = i, r = Te() ? ge() : null, u = Y(null), p = H(() => {
|
|
1165
|
+
var V;
|
|
1166
|
+
return u.value ? URL.createObjectURL(u.value) : (V = t.modelValue) == null ? void 0 : V.link;
|
|
1167
|
+
}), d = H(() => {
|
|
1168
|
+
var V, S, L;
|
|
1169
|
+
return /^image\//.test((V = t.modelValue) == null ? void 0 : V.type) && !((S = u.value) != null && S.type) || /^image\//.test((L = u.value) == null ? void 0 : L.type);
|
|
1170
|
+
}), h = (V) => new Promise((S) => {
|
|
1171
|
+
const L = new FileReader();
|
|
1172
|
+
L.onload = () => S(L.result), L.readAsArrayBuffer(V);
|
|
1173
|
+
}), _ = () => {
|
|
1162
1174
|
u.value = null;
|
|
1163
|
-
},
|
|
1164
|
-
u.value =
|
|
1165
|
-
const S = u.value,
|
|
1166
|
-
if (
|
|
1167
|
-
const { data:
|
|
1175
|
+
}, n = async (V) => {
|
|
1176
|
+
u.value = V.target.files[0];
|
|
1177
|
+
const S = u.value, L = await h(S);
|
|
1178
|
+
if (r) {
|
|
1179
|
+
const { data: W } = await zt(`${yt}/${r.$id}/upload?name=${S.name}`, L, {
|
|
1168
1180
|
params: {
|
|
1169
1181
|
method: "POST",
|
|
1170
1182
|
headers: {
|
|
@@ -1173,58 +1185,58 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1173
1185
|
}
|
|
1174
1186
|
}
|
|
1175
1187
|
});
|
|
1176
|
-
if (
|
|
1188
|
+
if (bt(W))
|
|
1177
1189
|
return;
|
|
1178
|
-
|
|
1190
|
+
a("update:modelValue", W);
|
|
1179
1191
|
} else
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
},
|
|
1183
|
-
|
|
1192
|
+
a("update:modelValue", S);
|
|
1193
|
+
a("update:content", L), a("change", L);
|
|
1194
|
+
}, f = async () => {
|
|
1195
|
+
a("update:modelValue", null);
|
|
1184
1196
|
};
|
|
1185
|
-
return (
|
|
1186
|
-
var
|
|
1187
|
-
return
|
|
1188
|
-
u.value || (
|
|
1189
|
-
|
|
1197
|
+
return (V, S) => {
|
|
1198
|
+
var L, W, P, O, M, X;
|
|
1199
|
+
return o(), s("div", co, [
|
|
1200
|
+
u.value || (L = V.modelValue) != null && L._id ? (o(), s("div", po, [
|
|
1201
|
+
d.value ? (o(), $(Me, {
|
|
1190
1202
|
key: 0,
|
|
1191
|
-
modelValue:
|
|
1192
|
-
"onUpdate:modelValue": S[0] || (S[0] = (w) =>
|
|
1203
|
+
modelValue: p.value,
|
|
1204
|
+
"onUpdate:modelValue": S[0] || (S[0] = (w) => p.value = w),
|
|
1193
1205
|
alt: "Image preview",
|
|
1194
1206
|
class: Q(`
|
|
1195
1207
|
file__image
|
|
1196
|
-
${!e(
|
|
1208
|
+
${!e(r) || ((W = V.modelValue) == null ? void 0 : W._id) || "file__image--unsent"}
|
|
1197
1209
|
`)
|
|
1198
1210
|
}, null, 8, ["modelValue", "class"])) : y("", !0),
|
|
1199
|
-
(P =
|
|
1211
|
+
(P = V.modelValue) != null && P._id ? (o(), s("a", {
|
|
1200
1212
|
key: 1,
|
|
1201
|
-
href:
|
|
1202
|
-
},
|
|
1213
|
+
href: V.modelValue.download_link
|
|
1214
|
+
}, g(V.modelValue.filename), 9, _o)) : y("", !0)
|
|
1203
1215
|
])) : y("", !0),
|
|
1204
|
-
|
|
1205
|
-
|
|
1216
|
+
k("div", mo, [
|
|
1217
|
+
k("input", {
|
|
1206
1218
|
ref: "file",
|
|
1207
1219
|
type: "file",
|
|
1208
|
-
accept: (M = (O =
|
|
1209
|
-
onChange:
|
|
1220
|
+
accept: (M = (O = V.property) == null ? void 0 : O.accept) == null ? void 0 : M.join(","),
|
|
1221
|
+
onChange: n
|
|
1210
1222
|
}, null, 40, fo),
|
|
1211
|
-
u.value ? (
|
|
1223
|
+
u.value ? (o(), s("div", vo, [
|
|
1212
1224
|
z(ie, {
|
|
1213
1225
|
small: "",
|
|
1214
|
-
onClick: ze(
|
|
1226
|
+
onClick: ze(_, ["prevent"])
|
|
1215
1227
|
}, {
|
|
1216
1228
|
default: v(() => [
|
|
1217
|
-
D(
|
|
1229
|
+
D(g(e(F)("action.clear", { capitalize: !0 })), 1)
|
|
1218
1230
|
]),
|
|
1219
1231
|
_: 1
|
|
1220
1232
|
})
|
|
1221
|
-
])) : (
|
|
1233
|
+
])) : (X = V.modelValue) != null && X._id ? (o(), s("div", yo, [
|
|
1222
1234
|
z(ie, {
|
|
1223
1235
|
small: "",
|
|
1224
|
-
onClick: ze(
|
|
1236
|
+
onClick: ze(f, ["prevent"])
|
|
1225
1237
|
}, {
|
|
1226
1238
|
default: v(() => [
|
|
1227
|
-
D(
|
|
1239
|
+
D(g(e(F)("action.remove", { capitalize: !0 })), 1)
|
|
1228
1240
|
]),
|
|
1229
1241
|
_: 1
|
|
1230
1242
|
})
|
|
@@ -1234,7 +1246,7 @@ const Me = /* @__PURE__ */ G(uo, [["__scopeId", "data-v-153a2e0f"]]), co = { cla
|
|
|
1234
1246
|
};
|
|
1235
1247
|
}
|
|
1236
1248
|
});
|
|
1237
|
-
const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-
|
|
1249
|
+
const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-69b23965"]]), bo = { class: "container" }, go = {
|
|
1238
1250
|
key: 1,
|
|
1239
1251
|
class: "container__footer"
|
|
1240
1252
|
}, ko = /* @__PURE__ */ q({
|
|
@@ -1243,14 +1255,14 @@ const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-5fa55625"]]), bo = { cla
|
|
|
1243
1255
|
observeScroll: { type: Boolean }
|
|
1244
1256
|
},
|
|
1245
1257
|
emits: ["endReached"],
|
|
1246
|
-
setup(c, { emit:
|
|
1247
|
-
const t = c,
|
|
1258
|
+
setup(c, { emit: i }) {
|
|
1259
|
+
const t = c, a = i, l = Y(null), r = t.observeScroll ? We(l, {
|
|
1248
1260
|
antecipate: 100
|
|
1249
1261
|
}).reachedEnd : null;
|
|
1250
|
-
return
|
|
1251
|
-
u &&
|
|
1252
|
-
}), (u,
|
|
1253
|
-
u.$slots.default ? (
|
|
1262
|
+
return r !== null && re(r, (u) => {
|
|
1263
|
+
u && a("endReached", u);
|
|
1264
|
+
}), (u, p) => (o(), s("div", bo, [
|
|
1265
|
+
u.$slots.default ? (o(), s("div", {
|
|
1254
1266
|
key: 0,
|
|
1255
1267
|
ref_key: "containerEl",
|
|
1256
1268
|
ref: l,
|
|
@@ -1258,7 +1270,7 @@ const $o = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-5fa55625"]]), bo = { cla
|
|
|
1258
1270
|
}, [
|
|
1259
1271
|
A(u.$slots, "default", {}, void 0, !0)
|
|
1260
1272
|
], 512)) : y("", !0),
|
|
1261
|
-
u.$slots.footer ? (
|
|
1273
|
+
u.$slots.footer ? (o(), s("div", go, [
|
|
1262
1274
|
A(u.$slots, "footer", {}, void 0, !0)
|
|
1263
1275
|
])) : y("", !0)
|
|
1264
1276
|
]));
|
|
@@ -1273,56 +1285,56 @@ const it = /* @__PURE__ */ G(ko, [["__scopeId", "data-v-c86e2d2a"]]), Vo = { cla
|
|
|
1273
1285
|
property: {}
|
|
1274
1286
|
},
|
|
1275
1287
|
emits: ["update:modelValue", "change"],
|
|
1276
|
-
setup(c, { emit:
|
|
1277
|
-
const t = c,
|
|
1278
|
-
if (
|
|
1288
|
+
setup(c, { emit: i }) {
|
|
1289
|
+
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
|
+
if (p.value)
|
|
1279
1291
|
return;
|
|
1280
|
-
const
|
|
1281
|
-
|
|
1282
|
-
...
|
|
1292
|
+
const _ = (f) => f.filter((V) => !!(V != null && V._id)), n = "items" in l ? _(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
|
|
1293
|
+
a("update:modelValue", Array.isArray(n) ? [
|
|
1294
|
+
...n,
|
|
1283
1295
|
t.item
|
|
1284
|
-
] : t.item),
|
|
1285
|
-
}, h = async (
|
|
1286
|
-
if (
|
|
1287
|
-
const { _id:
|
|
1296
|
+
] : t.item), a("change", t.item);
|
|
1297
|
+
}, h = async (_) => {
|
|
1298
|
+
if (r.purge && (_ != null && _.purge)) {
|
|
1299
|
+
const { _id: f } = t.item;
|
|
1288
1300
|
await u.$actions.remove({
|
|
1289
1301
|
filters: {
|
|
1290
|
-
_id:
|
|
1302
|
+
_id: f
|
|
1291
1303
|
}
|
|
1292
1304
|
});
|
|
1293
1305
|
}
|
|
1294
|
-
const
|
|
1295
|
-
const
|
|
1296
|
-
return
|
|
1306
|
+
const n = () => {
|
|
1307
|
+
const f = [...t.modelValue], V = f.findIndex((S) => S._id === t.item._id);
|
|
1308
|
+
return f.splice(V, 1), f;
|
|
1297
1309
|
};
|
|
1298
|
-
|
|
1310
|
+
a("update:modelValue", "items" in l ? n() : null);
|
|
1299
1311
|
};
|
|
1300
|
-
return (
|
|
1301
|
-
const
|
|
1302
|
-
return Z((
|
|
1312
|
+
return (_, n) => {
|
|
1313
|
+
const f = ne("clickable");
|
|
1314
|
+
return Z((o(), s("div", {
|
|
1303
1315
|
class: Q({
|
|
1304
1316
|
item: !0,
|
|
1305
|
-
"item--selected":
|
|
1317
|
+
"item--selected": p.value
|
|
1306
1318
|
}),
|
|
1307
|
-
onClick:
|
|
1319
|
+
onClick: n[0] || (n[0] = (V) => p.value ? h() : d())
|
|
1308
1320
|
}, [
|
|
1309
|
-
A(
|
|
1310
|
-
|
|
1311
|
-
(
|
|
1312
|
-
key: `index-${
|
|
1321
|
+
A(_.$slots, "default", {}, void 0, !0),
|
|
1322
|
+
k("div", Vo, [
|
|
1323
|
+
(o(!0), s(J, null, U(_.indexes, (V, S) => (o(), s("div", {
|
|
1324
|
+
key: `index-${_.item._id}-${S}`,
|
|
1313
1325
|
class: "item__value"
|
|
1314
|
-
},
|
|
1326
|
+
}, g(_.item[V]), 1))), 128))
|
|
1315
1327
|
])
|
|
1316
1328
|
], 2)), [
|
|
1317
|
-
[
|
|
1329
|
+
[f]
|
|
1318
1330
|
]);
|
|
1319
1331
|
};
|
|
1320
1332
|
}
|
|
1321
1333
|
});
|
|
1322
|
-
const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { class: "search__panel" }, Ao = { class: "search__input" }, Oo = ["value"], wo = { style: { flex: "1" } }, Bo = { key: 1 }, So = { key: 0 }, jo = { key: 1 }, To = { class: "search__summary" },
|
|
1334
|
+
const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { class: "search__panel" }, Ao = { class: "search__input" }, Oo = ["value"], wo = { style: { flex: "1" } }, Bo = { key: 1 }, So = { key: 0 }, jo = { key: 1 }, To = { class: "search__summary" }, Ro = {
|
|
1323
1335
|
key: 1,
|
|
1324
1336
|
class: "search"
|
|
1325
|
-
},
|
|
1337
|
+
}, Lo = { key: 0 }, Le = 10, zo = /* @__PURE__ */ q({
|
|
1326
1338
|
__name: "aeria-search",
|
|
1327
1339
|
props: {
|
|
1328
1340
|
modelValue: {},
|
|
@@ -1334,36 +1346,36 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1334
1346
|
panel: { default: void 0 }
|
|
1335
1347
|
},
|
|
1336
1348
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1337
|
-
setup(c, { emit:
|
|
1338
|
-
const t = c,
|
|
1349
|
+
setup(c, { emit: i }) {
|
|
1350
|
+
const t = c, a = pe(t.property), l = t.panel !== void 0 ? H(() => t.panel) : Y(!1), r = i, u = ue(pe(t.property).$ref), p = Te(), d = p ? ge() : null, h = a.indexes;
|
|
1339
1351
|
ye(Ue, pe(t.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
|
|
1340
|
-
const
|
|
1352
|
+
const _ = Y(t.modelValue), n = Y({
|
|
1341
1353
|
data: [],
|
|
1342
1354
|
pagination: {}
|
|
1343
|
-
}),
|
|
1344
|
-
const
|
|
1345
|
-
if (
|
|
1346
|
-
const j = e(
|
|
1347
|
-
|
|
1355
|
+
}), f = H(() => n.value.data), V = H(() => n.value.pagination), S = Y(0), L = Y(h[0]), W = Y(!1), P = Y({}), O = () => {
|
|
1356
|
+
const b = {};
|
|
1357
|
+
if (p) {
|
|
1358
|
+
const j = e(p);
|
|
1359
|
+
b[j] = d;
|
|
1348
1360
|
}
|
|
1349
|
-
return
|
|
1361
|
+
return a.constraints ? Ht(a.constraints, b) : {};
|
|
1350
1362
|
}, M = () => {
|
|
1351
|
-
|
|
1352
|
-
},
|
|
1353
|
-
limit:
|
|
1354
|
-
offset: S.value *
|
|
1363
|
+
f.value.length < V.value.recordsTotal && (S.value += 1, w());
|
|
1364
|
+
}, X = async () => Object.values(P.value).every((b) => !(String(b).length > 0)) ? u.$actions.custom("getAll", {
|
|
1365
|
+
limit: Le,
|
|
1366
|
+
offset: S.value * Le,
|
|
1355
1367
|
filters: O()
|
|
1356
1368
|
}) : u.$actions.custom("getAll", {
|
|
1357
|
-
limit:
|
|
1358
|
-
offset: S.value *
|
|
1369
|
+
limit: Le,
|
|
1370
|
+
offset: S.value * Le,
|
|
1359
1371
|
filters: {
|
|
1360
1372
|
...O(),
|
|
1361
|
-
$or: h.filter((
|
|
1373
|
+
$or: h.filter((b) => {
|
|
1362
1374
|
var j;
|
|
1363
|
-
return ((j = P.value[
|
|
1364
|
-
}).map((
|
|
1365
|
-
[
|
|
1366
|
-
$regex: P.value[
|
|
1375
|
+
return ((j = P.value[b]) == null ? void 0 : j.length) > 0;
|
|
1376
|
+
}).map((b) => ({
|
|
1377
|
+
[b]: {
|
|
1378
|
+
$regex: P.value[b].trim().replace("(", "\\(").replace(")", "\\)"),
|
|
1367
1379
|
$options: "i"
|
|
1368
1380
|
}
|
|
1369
1381
|
}))
|
|
@@ -1371,40 +1383,40 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1371
1383
|
}), w = async () => {
|
|
1372
1384
|
if (u.loading.getAll)
|
|
1373
1385
|
return;
|
|
1374
|
-
const
|
|
1375
|
-
|
|
1376
|
-
}, [ee] =
|
|
1386
|
+
const b = await X();
|
|
1387
|
+
n.value.pagination = b.pagination, S.value === 0 && n.value.data.splice(0), n.value.data.push(...b.data);
|
|
1388
|
+
}, [ee] = ht({
|
|
1377
1389
|
delay: 800
|
|
1378
1390
|
})(() => {
|
|
1379
|
-
S.value = 0, w(),
|
|
1391
|
+
S.value = 0, w(), W.value = !1;
|
|
1380
1392
|
}), C = () => {
|
|
1381
|
-
|
|
1382
|
-
},
|
|
1383
|
-
"effect" in l ?
|
|
1393
|
+
W.value = !0, ee();
|
|
1394
|
+
}, R = () => {
|
|
1395
|
+
"effect" in l ? r("update:panel", !0) : l.value = !0, w();
|
|
1384
1396
|
}, te = () => {
|
|
1385
|
-
S.value = 0,
|
|
1386
|
-
}, oe = H(() => !Object.values(P.value).some((
|
|
1387
|
-
re(oe, (
|
|
1388
|
-
|
|
1389
|
-
}),
|
|
1397
|
+
S.value = 0, n.value.data.splice(0), "effect" in l ? r("update:panel", !1) : l.value = !1;
|
|
1398
|
+
}, oe = H(() => !Object.values(P.value).some((b) => !!b));
|
|
1399
|
+
re(oe, (b, j) => {
|
|
1400
|
+
b && !j && w();
|
|
1401
|
+
}), mt(() => {
|
|
1390
1402
|
t.selectOnly && w();
|
|
1391
1403
|
});
|
|
1392
|
-
const le = (
|
|
1393
|
-
|
|
1394
|
-
},
|
|
1395
|
-
te(),
|
|
1404
|
+
const le = (b) => {
|
|
1405
|
+
_.value = b, t.selectOnly || r("update:modelValue", b);
|
|
1406
|
+
}, m = () => {
|
|
1407
|
+
te(), r("update:modelValue", _.value);
|
|
1396
1408
|
};
|
|
1397
|
-
return (
|
|
1409
|
+
return (b, j) => {
|
|
1398
1410
|
const N = ne("clickable");
|
|
1399
|
-
return
|
|
1400
|
-
e(l) ? (
|
|
1411
|
+
return o(), s("div", null, [
|
|
1412
|
+
e(l) ? (o(), $(Ge, {
|
|
1401
1413
|
key: 0,
|
|
1402
1414
|
to: "main"
|
|
1403
1415
|
}, [
|
|
1404
1416
|
z(Ae, {
|
|
1405
1417
|
float: "",
|
|
1406
1418
|
"close-hint": "",
|
|
1407
|
-
title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(
|
|
1419
|
+
title: `${e(F)("action.select", { capitalize: !0 })} ${e(F)(b.propertyName)}`,
|
|
1408
1420
|
"overlay-layer": 65,
|
|
1409
1421
|
"model-value": e(l),
|
|
1410
1422
|
style: { "--panel-max-width": "36rem" },
|
|
@@ -1414,10 +1426,10 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1414
1426
|
footer: v(() => [
|
|
1415
1427
|
z(ie, {
|
|
1416
1428
|
large: "",
|
|
1417
|
-
onClick:
|
|
1429
|
+
onClick: m
|
|
1418
1430
|
}, {
|
|
1419
1431
|
default: v(() => [
|
|
1420
|
-
D(
|
|
1432
|
+
D(g(e(F)("action.save", { capitalize: !0 })), 1)
|
|
1421
1433
|
]),
|
|
1422
1434
|
_: 1
|
|
1423
1435
|
})
|
|
@@ -1425,71 +1437,71 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1425
1437
|
default: v(() => {
|
|
1426
1438
|
var I, T;
|
|
1427
1439
|
return [
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
e(h).length > 1 ? (
|
|
1440
|
+
k("div", Io, [
|
|
1441
|
+
k("div", Ao, [
|
|
1442
|
+
e(h).length > 1 ? (o(), $(Ee, {
|
|
1431
1443
|
key: 0,
|
|
1432
|
-
modelValue:
|
|
1433
|
-
"onUpdate:modelValue": j[0] || (j[0] = (B) =>
|
|
1444
|
+
modelValue: L.value,
|
|
1445
|
+
"onUpdate:modelValue": j[0] || (j[0] = (B) => L.value = B),
|
|
1434
1446
|
onChange: j[1] || (j[1] = (B) => P.value = {})
|
|
1435
1447
|
}, {
|
|
1436
1448
|
default: v(() => [
|
|
1437
|
-
(
|
|
1449
|
+
(o(!0), s(J, null, U(e(h), (B) => (o(), s("option", {
|
|
1438
1450
|
key: `searchfield-${B}`,
|
|
1439
1451
|
value: B
|
|
1440
|
-
},
|
|
1452
|
+
}, g(e(F)(B)), 9, Oo))), 128))
|
|
1441
1453
|
]),
|
|
1442
1454
|
_: 1
|
|
1443
1455
|
}, 8, ["modelValue"])) : y("", !0),
|
|
1444
|
-
|
|
1445
|
-
(
|
|
1446
|
-
key: `field-${
|
|
1447
|
-
modelValue: P.value[
|
|
1448
|
-
"onUpdate:modelValue": j[2] || (j[2] = (B) => P.value[
|
|
1456
|
+
k("div", wo, [
|
|
1457
|
+
(o(), $(Ie, {
|
|
1458
|
+
key: `field-${L.value}`,
|
|
1459
|
+
modelValue: P.value[L.value],
|
|
1460
|
+
"onUpdate:modelValue": j[2] || (j[2] = (B) => P.value[L.value] = B),
|
|
1449
1461
|
property: {
|
|
1450
|
-
...e(u).properties[
|
|
1462
|
+
...e(u).properties[L.value],
|
|
1451
1463
|
inputType: "search"
|
|
1452
1464
|
},
|
|
1453
1465
|
onInput: C
|
|
1454
1466
|
}, null, 8, ["modelValue", "property"]))
|
|
1455
1467
|
])
|
|
1456
1468
|
]),
|
|
1457
|
-
|
|
1469
|
+
f.value.length ? (o(), $(it, {
|
|
1458
1470
|
key: 0,
|
|
1459
1471
|
"observe-scroll": "",
|
|
1460
1472
|
onEndReached: M
|
|
1461
1473
|
}, {
|
|
1462
1474
|
default: v(() => [
|
|
1463
|
-
(
|
|
1475
|
+
(o(!0), s(J, null, U(f.value, (B) => (o(), $(De, E({ ref_for: !0 }, {
|
|
1464
1476
|
item: B,
|
|
1465
1477
|
indexes: e(h),
|
|
1466
|
-
property:
|
|
1478
|
+
property: b.property
|
|
1467
1479
|
}, {
|
|
1468
1480
|
key: `matching-${B._id}`,
|
|
1469
|
-
modelValue:
|
|
1470
|
-
"onUpdate:modelValue": j[3] || (j[3] = (ae) =>
|
|
1481
|
+
modelValue: _.value,
|
|
1482
|
+
"onUpdate:modelValue": j[3] || (j[3] = (ae) => _.value = ae)
|
|
1471
1483
|
}), null, 16, ["modelValue"]))), 128))
|
|
1472
1484
|
]),
|
|
1473
1485
|
_: 1
|
|
1474
|
-
})) : (
|
|
1475
|
-
|
|
1486
|
+
})) : (o(), s("div", Bo, [
|
|
1487
|
+
W.value ? (o(), s("div", So, g(e(F)("searching", { capitalize: !0 })) + "... ", 1)) : !e(u).loading.getAll && Object.values(P.value).filter((B) => !!B).length > 0 && !("items" in b.property && ((I = b.modelValue) != null && I.length) || !Array.isArray(b.modelValue) && ((T = b.modelValue) != null && T._id)) ? (o(), s("div", jo, g(e(F)("no_results", { capitalize: !0 })), 1)) : y("", !0)
|
|
1476
1488
|
]))
|
|
1477
1489
|
]),
|
|
1478
|
-
|
|
1490
|
+
k("div", To, g(e(F)("showing", { capitalize: !0 })) + " " + g(f.value.length) + " " + g(e(F)("of")) + " " + g(V.value.recordsTotal), 1)
|
|
1479
1491
|
];
|
|
1480
1492
|
}),
|
|
1481
1493
|
_: 1
|
|
1482
1494
|
}, 8, ["title", "model-value"])
|
|
1483
1495
|
])) : y("", !0),
|
|
1484
|
-
|
|
1496
|
+
b.selectOnly ? y("", !0) : (o(), s("div", Ro, [
|
|
1485
1497
|
z(it, null, {
|
|
1486
1498
|
footer: v(() => [
|
|
1487
|
-
Z((
|
|
1499
|
+
Z((o(), $(K, {
|
|
1488
1500
|
icon: "plus",
|
|
1489
|
-
onClick:
|
|
1501
|
+
onClick: R
|
|
1490
1502
|
}, {
|
|
1491
1503
|
default: v(() => [
|
|
1492
|
-
D(
|
|
1504
|
+
D(g(e(F)("action.select", { capitalize: !0 })), 1)
|
|
1493
1505
|
]),
|
|
1494
1506
|
_: 1
|
|
1495
1507
|
})), [
|
|
@@ -1499,21 +1511,21 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1499
1511
|
default: v(() => {
|
|
1500
1512
|
var I;
|
|
1501
1513
|
return [
|
|
1502
|
-
"items" in
|
|
1503
|
-
(
|
|
1514
|
+
"items" in b.property ? (o(), s("div", Lo, [
|
|
1515
|
+
(o(!0), s(J, null, U(b.modelValue, (T) => (o(), $(De, E({ ref_for: !0 }, {
|
|
1504
1516
|
item: T,
|
|
1505
1517
|
indexes: e(h),
|
|
1506
|
-
property:
|
|
1507
|
-
modelValue:
|
|
1518
|
+
property: b.property,
|
|
1519
|
+
modelValue: b.modelValue
|
|
1508
1520
|
}, {
|
|
1509
1521
|
key: `selected-${T._id}`,
|
|
1510
1522
|
"onUpdate:modelValue": le
|
|
1511
1523
|
}), null, 16))), 128))
|
|
1512
|
-
])) : (I =
|
|
1513
|
-
item:
|
|
1524
|
+
])) : (I = b.modelValue) != null && I._id ? (o(), $(De, E({ key: 1 }, {
|
|
1525
|
+
item: b.modelValue,
|
|
1514
1526
|
indexes: e(h),
|
|
1515
|
-
property: e(
|
|
1516
|
-
modelValue:
|
|
1527
|
+
property: e(a),
|
|
1528
|
+
modelValue: b.modelValue
|
|
1517
1529
|
}, { "onUpdate:modelValue": le }), null, 16)) : y("", !0)
|
|
1518
1530
|
];
|
|
1519
1531
|
}),
|
|
@@ -1524,8 +1536,8 @@ const De = /* @__PURE__ */ G(Co, [["__scopeId", "data-v-fa7fea9f"]]), Io = { cla
|
|
|
1524
1536
|
};
|
|
1525
1537
|
}
|
|
1526
1538
|
});
|
|
1527
|
-
const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c,
|
|
1528
|
-
const t = "items" in c ? c.items : c,
|
|
1539
|
+
const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, i) => {
|
|
1540
|
+
const t = "items" in c ? c.items : c, a = {
|
|
1529
1541
|
options: Xn,
|
|
1530
1542
|
select: Ee,
|
|
1531
1543
|
switch: xn,
|
|
@@ -1546,20 +1558,20 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1546
1558
|
if (c.element === "select")
|
|
1547
1559
|
return "select";
|
|
1548
1560
|
}
|
|
1549
|
-
const
|
|
1550
|
-
return
|
|
1561
|
+
const r = pe(c);
|
|
1562
|
+
return r ? r.inline ? "form" : r.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in t ? "select" : "input";
|
|
1551
1563
|
})();
|
|
1552
|
-
return
|
|
1553
|
-
}, Fo = (c,
|
|
1564
|
+
return i[l] ? i[l] : a[l];
|
|
1565
|
+
}, Fo = (c, i, t) => {
|
|
1554
1566
|
c ?? (c = []);
|
|
1555
|
-
const
|
|
1556
|
-
if ("$ref" in
|
|
1557
|
-
const l = ue(
|
|
1558
|
-
return c.unshift(
|
|
1567
|
+
const a = "items" in i ? i.items : i;
|
|
1568
|
+
if ("$ref" in a) {
|
|
1569
|
+
const l = ue(a.$ref, t), r = Se(l.$freshItem);
|
|
1570
|
+
return c.unshift(r);
|
|
1559
1571
|
}
|
|
1560
|
-
return "properties" in
|
|
1561
|
-
}, qo = (c,
|
|
1562
|
-
c.splice(
|
|
1572
|
+
return "properties" in a ? c.unshift(Dt(a)) : "type" in a && a.type === "boolean" ? c.unshift({}) : c.unshift(null);
|
|
1573
|
+
}, qo = (c, i) => {
|
|
1574
|
+
c.splice(i, 1);
|
|
1563
1575
|
}, Uo = {
|
|
1564
1576
|
key: 0,
|
|
1565
1577
|
class: "form__header"
|
|
@@ -1599,42 +1611,42 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1599
1611
|
focus: { type: Boolean }
|
|
1600
1612
|
},
|
|
1601
1613
|
emits: ["update:modelValue", "input", "change"],
|
|
1602
|
-
setup(c, { emit:
|
|
1603
|
-
const t =
|
|
1604
|
-
|
|
1605
|
-
|
|
1614
|
+
setup(c, { emit: i }) {
|
|
1615
|
+
const t = $t(), a = c, l = i;
|
|
1616
|
+
ft(() => {
|
|
1617
|
+
a.modelValue || l("update:modelValue", a.property && "items" in a.property ? [] : {});
|
|
1606
1618
|
});
|
|
1607
|
-
const
|
|
1619
|
+
const r = a.property && pe(a.property), u = r ? r.$ref : a.collection || Te(), p = u ? ue(e(u)) : null;
|
|
1608
1620
|
!u && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1609
1621
|
collection prop, some features may not work as intended`);
|
|
1610
|
-
const
|
|
1611
|
-
const
|
|
1612
|
-
return
|
|
1613
|
-
},
|
|
1614
|
-
u && ye(Ue, u), ye("searchOnly",
|
|
1615
|
-
const O = (
|
|
1616
|
-
|
|
1622
|
+
const d = Y(!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 = (m) => {
|
|
1623
|
+
const b = ve(m, a[m]);
|
|
1624
|
+
return a[m] && ye(m, a[m]), b;
|
|
1625
|
+
}, f = H(() => a.validationErrors !== null ? a.validationErrors : p == null ? void 0 : p.validationErrors), V = n("formComponents") || {}, S = n("propertyComponents") || {}, L = n("omitFormHeader"), W = n("omitInputLabels"), P = n("innerInputLabel");
|
|
1626
|
+
u && ye(Ue, u), ye("searchOnly", a.searchOnly);
|
|
1627
|
+
const O = (m) => h.value ? Object.entries(h.value).filter(([b, j]) => !j.noForm && m([
|
|
1628
|
+
b,
|
|
1617
1629
|
j
|
|
1618
|
-
])) : null, M = (
|
|
1630
|
+
])) : null, M = (m) => {
|
|
1619
1631
|
var j;
|
|
1620
|
-
if (
|
|
1632
|
+
if (a.searchOnly || !u)
|
|
1621
1633
|
return !0;
|
|
1622
|
-
const
|
|
1623
|
-
return !
|
|
1624
|
-
},
|
|
1634
|
+
const b = a.property && "properties" in a.property ? a.property.form : (j = p == null ? void 0 : p.description) == null ? void 0 : j.form;
|
|
1635
|
+
return !b || b.includes(m);
|
|
1636
|
+
}, X = O(([m]) => M(m)), w = je(), ee = {}, C = (m, b) => {
|
|
1625
1637
|
var T, B, ae, _e;
|
|
1626
|
-
const j = [], N = ((B = (T =
|
|
1627
|
-
if (!
|
|
1638
|
+
const j = [], N = ((B = (T = _.value) == null ? void 0 : T.fields) == null ? void 0 : B[m]) || ((_e = (ae = _.value) == null ? void 0 : ae.fields) == null ? void 0 : _e.$default);
|
|
1639
|
+
if (!b)
|
|
1628
1640
|
return;
|
|
1629
|
-
if (N != null && N.if && !
|
|
1641
|
+
if (N != null && N.if && !a.searchOnly) {
|
|
1630
1642
|
const me = Qe(
|
|
1631
|
-
|
|
1643
|
+
a.modelValue,
|
|
1632
1644
|
N.if
|
|
1633
1645
|
);
|
|
1634
|
-
me.satisfied || (ee[
|
|
1646
|
+
me.satisfied || (ee[m] && (p ? a.modelValue[m] = typeof p.$freshItem[m] == "object" ? Se(p.$freshItem[m]) : p.$freshItem[m] : a.modelValue[m] = [
|
|
1635
1647
|
void 0,
|
|
1636
1648
|
null
|
|
1637
|
-
].includes(
|
|
1649
|
+
].includes(a.modelValue[m]) ? null : a.modelValue[m].constructor()), j.push("display: none;")), ee[m] = me.satisfied;
|
|
1638
1650
|
}
|
|
1639
1651
|
const I = w.value.md && (N == null ? void 0 : N.span) || 6;
|
|
1640
1652
|
return j.push(`
|
|
@@ -1649,184 +1661,184 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1649
1661
|
padding: 1rem 0;
|
|
1650
1662
|
margin: 1rem 0;
|
|
1651
1663
|
`)), j.join("");
|
|
1652
|
-
},
|
|
1653
|
-
|
|
1654
|
-
|
|
1664
|
+
}, R = (m) => m === null || m instanceof Object && !Object.keys(m).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 ? Mt(
|
|
1665
|
+
a.modelValue,
|
|
1666
|
+
a.form,
|
|
1655
1667
|
te.value,
|
|
1656
|
-
|
|
1657
|
-
) : !0), le = (
|
|
1668
|
+
p == null ? void 0 : p.description
|
|
1669
|
+
) : !0), le = (m, b) => {
|
|
1658
1670
|
var j;
|
|
1659
|
-
return (j =
|
|
1671
|
+
return (j = f.value) != null && j[m] && (typeof f.value[m].index != "number" || f.value[m].index === b) ? f.value[m].errors : null;
|
|
1660
1672
|
};
|
|
1661
|
-
return (
|
|
1673
|
+
return (m, b) => {
|
|
1662
1674
|
const j = ne("clickable"), N = ne("focus");
|
|
1663
|
-
return
|
|
1675
|
+
return o(), s("form", {
|
|
1664
1676
|
class: "form",
|
|
1665
|
-
style: $e(`row-gap: ${e(
|
|
1677
|
+
style: $e(`row-gap: ${e(L) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1666
1678
|
}, [
|
|
1667
|
-
|
|
1668
|
-
A(
|
|
1679
|
+
m.$slots.header && !e(L) ? (o(), s("header", Uo, [
|
|
1680
|
+
A(m.$slots, "header", {}, void 0, !0)
|
|
1669
1681
|
])) : y("", !0),
|
|
1670
|
-
A(
|
|
1671
|
-
|
|
1672
|
-
(
|
|
1682
|
+
A(m.$slots, "default", {}, void 0, !0),
|
|
1683
|
+
m.isReadOnly ? y("", !0) : (o(), s("fieldset", Eo, [
|
|
1684
|
+
(o(!0), s(J, null, U(e(X), ([I, T]) => {
|
|
1673
1685
|
var B, ae, _e, me, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
|
|
1674
|
-
return
|
|
1686
|
+
return o(), s("div", {
|
|
1675
1687
|
key: `field-${I}`,
|
|
1676
1688
|
style: $e(C(I, T)),
|
|
1677
1689
|
class: "form__field"
|
|
1678
1690
|
}, [
|
|
1679
|
-
(!("type" in T) || T.type !== "boolean" ||
|
|
1680
|
-
|
|
1691
|
+
(!("type" in T) || T.type !== "boolean" || m.searchOnly) && !T.noLabel && !e(W) && !e(P) ? (o(), s("label", Ho, [
|
|
1692
|
+
k("div", {
|
|
1681
1693
|
class: Q({
|
|
1682
1694
|
"form__field-label": !0,
|
|
1683
1695
|
"form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
|
|
1684
|
-
"form__field-required-hint":
|
|
1696
|
+
"form__field-required-hint": m.highlightRequired && !m.searchOnly && (!te.value || e(Qt)(I, te.value, m.modelValue))
|
|
1685
1697
|
})
|
|
1686
|
-
},
|
|
1687
|
-
T.hint ? (
|
|
1698
|
+
}, g(T.description || e(F)(I)), 3),
|
|
1699
|
+
T.hint ? (o(), s("div", {
|
|
1688
1700
|
key: 0,
|
|
1689
1701
|
innerHTML: T.hint
|
|
1690
1702
|
}, null, 8, Do)) : y("", !0)
|
|
1691
1703
|
])) : y("", !0),
|
|
1692
|
-
|
|
1704
|
+
m.$slots[`field-${I}`] ? A(m.$slots, `field-${I}`, E({
|
|
1693
1705
|
key: 1,
|
|
1694
1706
|
ref_for: !0
|
|
1695
1707
|
}, {
|
|
1696
1708
|
propery: T,
|
|
1697
1709
|
properyName: I,
|
|
1698
|
-
modelValue:
|
|
1699
|
-
}), void 0, !0) : (_e = (ae = (B =
|
|
1710
|
+
modelValue: m.modelValue
|
|
1711
|
+
}), void 0, !0) : (_e = (ae = (B = m.layout) == null ? void 0 : B.fields) == null ? void 0 : ae[I]) != null && _e.component && e(S)[m.layout.fields[I].component.name] ? (o(), $(he(e(S)[m.layout.fields[I].component.name]), E({
|
|
1700
1712
|
key: 2,
|
|
1701
|
-
modelValue:
|
|
1702
|
-
"onUpdate:modelValue": (x) =>
|
|
1713
|
+
modelValue: m.modelValue[I],
|
|
1714
|
+
"onUpdate:modelValue": (x) => m.modelValue[I] = x,
|
|
1703
1715
|
ref_for: !0
|
|
1704
1716
|
}, {
|
|
1705
1717
|
property: T,
|
|
1706
1718
|
propertyName: I,
|
|
1707
|
-
...
|
|
1719
|
+
...m.layout.fields[I].component.props || {}
|
|
1708
1720
|
}, {
|
|
1709
1721
|
onInput: (x) => l("input", I),
|
|
1710
|
-
onChange:
|
|
1711
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) &&
|
|
1722
|
+
onChange: b[0] || (b[0] = (x) => l("change", x))
|
|
1723
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && m.searchOnly ? (o(), s("div", {
|
|
1712
1724
|
key: 3,
|
|
1713
1725
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1714
1726
|
onInput: (x) => l("input", I),
|
|
1715
|
-
onChange:
|
|
1727
|
+
onChange: b[1] || (b[1] = (x) => l("change", x))
|
|
1716
1728
|
}, [
|
|
1717
1729
|
z(Ie, E({
|
|
1718
|
-
modelValue:
|
|
1719
|
-
"onUpdate:modelValue": (x) =>
|
|
1730
|
+
modelValue: m.modelValue[I].$gte,
|
|
1731
|
+
"onUpdate:modelValue": (x) => m.modelValue[I].$gte = x,
|
|
1720
1732
|
ref_for: !0
|
|
1721
1733
|
}, {
|
|
1722
1734
|
property: T,
|
|
1723
1735
|
propertyName: I
|
|
1724
1736
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1725
1737
|
z(Ie, E({
|
|
1726
|
-
modelValue:
|
|
1727
|
-
"onUpdate:modelValue": (x) =>
|
|
1738
|
+
modelValue: m.modelValue[I].$lte,
|
|
1739
|
+
"onUpdate:modelValue": (x) => m.modelValue[I].$lte = x,
|
|
1728
1740
|
ref_for: !0
|
|
1729
1741
|
}, {
|
|
1730
1742
|
property: T,
|
|
1731
1743
|
propertyName: I
|
|
1732
1744
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1733
|
-
], 40, Qo)) : "type" in T && T.type === "boolean" &&
|
|
1745
|
+
], 40, Qo)) : "type" in T && T.type === "boolean" && m.searchOnly ? (o(), s("div", Go, [
|
|
1734
1746
|
z(Ee, E({ ref_for: !0 }, {
|
|
1735
1747
|
property: T,
|
|
1736
1748
|
propertyName: I
|
|
1737
1749
|
}, {
|
|
1738
1750
|
"boolean-ref": "",
|
|
1739
|
-
"model-value":
|
|
1740
|
-
onChange:
|
|
1751
|
+
"model-value": m.modelValue[I],
|
|
1752
|
+
onChange: b[2] || (b[2] = (x) => l("change", x)),
|
|
1741
1753
|
"onUpdate:modelValue": (x) => {
|
|
1742
|
-
|
|
1754
|
+
m.modelValue[I] = x == "true" ? !0 : x == "false" ? !1 : null;
|
|
1743
1755
|
}
|
|
1744
1756
|
}), {
|
|
1745
1757
|
default: v(() => [
|
|
1746
|
-
|
|
1747
|
-
|
|
1758
|
+
k("option", Wo, g(e(F)("yes")), 1),
|
|
1759
|
+
k("option", Xo, g(e(F)("no")), 1)
|
|
1748
1760
|
]),
|
|
1749
1761
|
_: 2
|
|
1750
1762
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1751
|
-
])) :
|
|
1752
|
-
|
|
1763
|
+
])) : m.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (o(), s("div", Yo, [
|
|
1764
|
+
k("div", null, [
|
|
1753
1765
|
z(ie, {
|
|
1754
1766
|
small: "",
|
|
1755
1767
|
variant: "alt",
|
|
1756
1768
|
icon: "plus",
|
|
1757
|
-
disabled: !("inline" in T.items && T.items.inline) && (((me =
|
|
1769
|
+
disabled: !("inline" in T.items && T.items.inline) && (((me = m.modelValue[I]) == null ? void 0 : me.length) >= T.maxItems || R((Ye = m.modelValue[I]) == null ? void 0 : Ye[((Xe = m.modelValue[I]) == null ? void 0 : Xe.length) - 1])),
|
|
1758
1770
|
onClick: ze((x) => {
|
|
1759
|
-
|
|
1771
|
+
m.modelValue[I] || (m.modelValue[I] = []), e(Fo)(m.modelValue[I], T, e(t));
|
|
1760
1772
|
}, ["prevent"])
|
|
1761
1773
|
}, {
|
|
1762
1774
|
default: v(() => [
|
|
1763
|
-
D(
|
|
1775
|
+
D(g(e(F)("action.add", { capitalize: !0 })), 1)
|
|
1764
1776
|
]),
|
|
1765
1777
|
_: 2
|
|
1766
1778
|
}, 1032, ["disabled", "onClick"])
|
|
1767
1779
|
]),
|
|
1768
|
-
(
|
|
1780
|
+
(o(!0), s(J, null, U(m.modelValue[I], (x, Oe) => {
|
|
1769
1781
|
var tt, nt, ot, at, lt, st;
|
|
1770
|
-
return
|
|
1782
|
+
return o(), s("div", {
|
|
1771
1783
|
key: `rep-${I}-${Oe}`,
|
|
1772
1784
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
1773
1785
|
}, [
|
|
1774
|
-
|
|
1775
|
-
(
|
|
1776
|
-
modelValue:
|
|
1777
|
-
"onUpdate:modelValue": (we) =>
|
|
1786
|
+
k("div", Jo, [
|
|
1787
|
+
(o(), $(he(e(rt)(T, e(V))), E({
|
|
1788
|
+
modelValue: m.modelValue[I][Oe],
|
|
1789
|
+
"onUpdate:modelValue": (we) => m.modelValue[I][Oe] = we,
|
|
1778
1790
|
ref_for: !0
|
|
1779
1791
|
}, {
|
|
1780
1792
|
property: T.items,
|
|
1781
1793
|
propertyName: I,
|
|
1782
1794
|
parentCollection: e(u),
|
|
1783
|
-
parentPropertyName:
|
|
1784
|
-
columns: ((ot = (nt = (tt =
|
|
1795
|
+
parentPropertyName: m.parentPropertyName,
|
|
1796
|
+
columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[I]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
|
|
1785
1797
|
validationErrors: le(I, Oe),
|
|
1786
1798
|
...T.componentProps || {}
|
|
1787
1799
|
}, {
|
|
1788
1800
|
onInput: (we) => l("input", I),
|
|
1789
|
-
onChange:
|
|
1801
|
+
onChange: b[3] || (b[3] = (we) => l("change", we))
|
|
1790
1802
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1791
1803
|
]),
|
|
1792
1804
|
Z(z(K, {
|
|
1793
1805
|
reactive: "",
|
|
1794
1806
|
icon: "trash",
|
|
1795
|
-
onClick: (we) => e(qo)(
|
|
1807
|
+
onClick: (we) => e(qo)(m.modelValue[I], Oe)
|
|
1796
1808
|
}, null, 8, ["onClick"]), [
|
|
1797
1809
|
[j]
|
|
1798
1810
|
])
|
|
1799
1811
|
]);
|
|
1800
1812
|
}), 128))
|
|
1801
|
-
])) :
|
|
1813
|
+
])) : m.modelValue ? Z((o(), $(he(e(rt)(T, e(V))), E({
|
|
1802
1814
|
key: 6,
|
|
1803
|
-
modelValue:
|
|
1804
|
-
"onUpdate:modelValue": (x) =>
|
|
1815
|
+
modelValue: m.modelValue[I],
|
|
1816
|
+
"onUpdate:modelValue": (x) => m.modelValue[I] = x,
|
|
1805
1817
|
ref_for: !0
|
|
1806
1818
|
}, {
|
|
1807
1819
|
property: T,
|
|
1808
1820
|
propertyName: I,
|
|
1809
|
-
parentPropertyName:
|
|
1821
|
+
parentPropertyName: m.parentPropertyName,
|
|
1810
1822
|
parentCollection: e(u),
|
|
1811
|
-
columns: ((Ze = (Ke = (Je =
|
|
1823
|
+
columns: ((Ze = (Ke = (Je = m.layout) == null ? void 0 : Je.fields) == null ? void 0 : Ke[I]) == null ? void 0 : Ze.optionsColumns) || ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne.$default) == null ? void 0 : xe.optionsColumns),
|
|
1812
1824
|
...T.componentProps || {},
|
|
1813
1825
|
validationErrors: le(I)
|
|
1814
1826
|
}, {
|
|
1815
1827
|
onInput: (x) => l("input", I),
|
|
1816
|
-
onChange:
|
|
1828
|
+
onChange: b[4] || (b[4] = (x) => l("change", x))
|
|
1817
1829
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1818
|
-
[N, !
|
|
1830
|
+
[N, !d.value && (d.value = !!m.focus)]
|
|
1819
1831
|
]) : y("", !0),
|
|
1820
|
-
(et =
|
|
1821
|
-
|
|
1822
|
-
|
|
1832
|
+
(et = f.value) != null && et[I] ? (o(), s("div", Ko, [
|
|
1833
|
+
f.value[I].type ? (o(), s("span", Zo, g(e(F)(`validation_error.${f.value[I].type}`)), 1)) : y("", !0),
|
|
1834
|
+
f.value[I].detail ? (o(), s("span", Po, g(e(F)(f.value[I].detail)), 1)) : y("", !0)
|
|
1823
1835
|
])) : y("", !0)
|
|
1824
1836
|
], 4);
|
|
1825
1837
|
}), 128))
|
|
1826
1838
|
])),
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
A(
|
|
1839
|
+
m.$slots.after ? A(m.$slots, "after", { key: 2 }, void 0, !0) : y("", !0),
|
|
1840
|
+
m.$slots.footer ? (o(), s("div", No, [
|
|
1841
|
+
A(m.$slots, "footer", ce(Ve({
|
|
1830
1842
|
isInsertReady: oe.value
|
|
1831
1843
|
})), void 0, !0)
|
|
1832
1844
|
])) : y("", !0)
|
|
@@ -1837,32 +1849,32 @@ const Mo = /* @__PURE__ */ G(zo, [["__scopeId", "data-v-d9d768a1"]]), rt = (c, r
|
|
|
1837
1849
|
const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @__PURE__ */ q({
|
|
1838
1850
|
__name: "aeria-filter-panel",
|
|
1839
1851
|
emits: ["update:modelValue"],
|
|
1840
|
-
setup(c, { emit:
|
|
1841
|
-
const t =
|
|
1842
|
-
|
|
1843
|
-
query: Ft(
|
|
1852
|
+
setup(c, { emit: i }) {
|
|
1853
|
+
const t = i, a = ge(), l = Re(), r = () => {
|
|
1854
|
+
a.pagination.offset = 0, a.$actions.filter(), t("update:modelValue", !1), l.push({
|
|
1855
|
+
query: Ft(a)
|
|
1844
1856
|
});
|
|
1845
1857
|
};
|
|
1846
|
-
return (u,
|
|
1858
|
+
return (u, p) => (o(), $(Ae, {
|
|
1847
1859
|
"close-hint": "",
|
|
1848
1860
|
"fixed-right": "",
|
|
1849
1861
|
title: u.t("filter_by", { capitalize: !0 }),
|
|
1850
|
-
onClose:
|
|
1851
|
-
onOverlayClick:
|
|
1862
|
+
onClose: p[2] || (p[2] = (d) => t("update:modelValue", !1)),
|
|
1863
|
+
onOverlayClick: p[3] || (p[3] = (d) => t("update:modelValue", !1))
|
|
1852
1864
|
}, {
|
|
1853
1865
|
footer: v(() => [
|
|
1854
|
-
e(
|
|
1866
|
+
e(a).filtersCount > 0 ? (o(), $(ie, {
|
|
1855
1867
|
key: 0,
|
|
1856
1868
|
variant: "transparent",
|
|
1857
|
-
onClick:
|
|
1858
|
-
e(
|
|
1869
|
+
onClick: p[1] || (p[1] = (d) => {
|
|
1870
|
+
e(a).$actions.clearFilters(), r(), t("update:modelValue", !1);
|
|
1859
1871
|
})
|
|
1860
1872
|
}, {
|
|
1861
1873
|
default: v(() => [
|
|
1862
|
-
D(
|
|
1874
|
+
D(g(u.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1863
1875
|
z(be, null, {
|
|
1864
1876
|
default: v(() => [
|
|
1865
|
-
D(
|
|
1877
|
+
D(g(e(a).filtersCount), 1)
|
|
1866
1878
|
]),
|
|
1867
1879
|
_: 1
|
|
1868
1880
|
})
|
|
@@ -1872,76 +1884,76 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1872
1884
|
z(ie, {
|
|
1873
1885
|
large: "",
|
|
1874
1886
|
icon: "funnel",
|
|
1875
|
-
disabled: !e(
|
|
1876
|
-
onClick:
|
|
1887
|
+
disabled: !e(a).hasActiveFilters,
|
|
1888
|
+
onClick: r
|
|
1877
1889
|
}, {
|
|
1878
1890
|
default: v(() => [
|
|
1879
|
-
D(
|
|
1891
|
+
D(g(u.t("action.filter", { capitalize: !0 })), 1)
|
|
1880
1892
|
]),
|
|
1881
1893
|
_: 1
|
|
1882
1894
|
}, 8, ["disabled"])
|
|
1883
1895
|
]),
|
|
1884
1896
|
default: v(() => [
|
|
1885
1897
|
z(He, E({
|
|
1886
|
-
modelValue: e(
|
|
1887
|
-
"onUpdate:modelValue":
|
|
1898
|
+
modelValue: e(a).filters,
|
|
1899
|
+
"onUpdate:modelValue": p[0] || (p[0] = (d) => e(a).filters = d)
|
|
1888
1900
|
}, {
|
|
1889
1901
|
searchOnly: !0,
|
|
1890
|
-
form: e(
|
|
1891
|
-
layout: e(
|
|
1902
|
+
form: e(a).availableFilters,
|
|
1903
|
+
layout: e(a).description.formLayout || {}
|
|
1892
1904
|
}, { focus: "" }), null, 16, ["modelValue"])
|
|
1893
1905
|
]),
|
|
1894
1906
|
_: 1
|
|
1895
1907
|
}, 8, ["title"]));
|
|
1896
1908
|
}
|
|
1897
|
-
}), se =
|
|
1909
|
+
}), se = Y(!1), ut = Y(!1), ke = Y(!1), Be = Y((...c) => null), ct = Y(), dt = !1, ta = /* @__PURE__ */ q({
|
|
1898
1910
|
__name: "aeria-insert-panel",
|
|
1899
1911
|
setup(c) {
|
|
1900
|
-
const
|
|
1901
|
-
const
|
|
1902
|
-
|
|
1903
|
-
}, { t:
|
|
1904
|
-
|
|
1912
|
+
const i = ue("meta"), t = ue(i.view.collection), a = ve("individualActions", []), l = async () => {
|
|
1913
|
+
const p = await t.$actions.deepInsert();
|
|
1914
|
+
bt(p) || (se.value = !1);
|
|
1915
|
+
}, { t: r } = jt(), u = () => {
|
|
1916
|
+
i.$actions.ask({
|
|
1905
1917
|
action: () => {
|
|
1906
1918
|
t.$actions.clearItem(), t.validationErrors = {}, se.value = !1;
|
|
1907
1919
|
},
|
|
1908
|
-
body:
|
|
1920
|
+
body: r("prompt.close_panel")
|
|
1909
1921
|
});
|
|
1910
1922
|
};
|
|
1911
|
-
return re(() => t.item._id, (
|
|
1912
|
-
|
|
1913
|
-
}), (
|
|
1923
|
+
return re(() => t.item._id, (p) => {
|
|
1924
|
+
p === null && (se.value = !1);
|
|
1925
|
+
}), (p, d) => {
|
|
1914
1926
|
const h = ne("clickable");
|
|
1915
|
-
return
|
|
1927
|
+
return o(), $(Ae, {
|
|
1916
1928
|
modelValue: e(se),
|
|
1917
|
-
"onUpdate:modelValue":
|
|
1929
|
+
"onUpdate:modelValue": d[3] || (d[3] = (_) => vt(se) ? se.value = _ : null),
|
|
1918
1930
|
"fixed-right": "",
|
|
1919
1931
|
loading: e(t).loading.get,
|
|
1920
1932
|
onOverlayClick: u
|
|
1921
1933
|
}, {
|
|
1922
1934
|
header: v(() => [
|
|
1923
|
-
|
|
1935
|
+
k("span", null, g((() => {
|
|
1924
1936
|
switch (e(se)) {
|
|
1925
1937
|
case "add":
|
|
1926
|
-
return e(
|
|
1938
|
+
return e(r)("action.add", { capitalize: !0 });
|
|
1927
1939
|
case "duplicate":
|
|
1928
|
-
return e(
|
|
1940
|
+
return e(r)("action.duplicate", { capitalize: !0 });
|
|
1929
1941
|
case "edit":
|
|
1930
1942
|
default:
|
|
1931
|
-
return e(
|
|
1943
|
+
return e(r)("action.edit", { capitalize: !0 });
|
|
1932
1944
|
}
|
|
1933
1945
|
})()), 1),
|
|
1934
|
-
|
|
1946
|
+
k("span", null, " " + g(e(r)(e(i).view.collection)), 1)
|
|
1935
1947
|
]),
|
|
1936
1948
|
extra: v(() => [
|
|
1937
1949
|
z(Ce, E({
|
|
1938
1950
|
subject: e(t).item,
|
|
1939
|
-
actions: e(
|
|
1951
|
+
actions: e(a).filter(({ action: _ }) => _ !== "ui/spawnEdit")
|
|
1940
1952
|
}, {
|
|
1941
|
-
onActionClick:
|
|
1953
|
+
onActionClick: d[2] || (d[2] = (_) => se.value = !1)
|
|
1942
1954
|
}), {
|
|
1943
1955
|
default: v(() => [
|
|
1944
|
-
e(t).item._id ? Z((
|
|
1956
|
+
e(t).item._id ? Z((o(), $(K, {
|
|
1945
1957
|
key: 0,
|
|
1946
1958
|
reactive: "",
|
|
1947
1959
|
icon: "dots-three"
|
|
@@ -1958,7 +1970,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1958
1970
|
onClick: u
|
|
1959
1971
|
}, {
|
|
1960
1972
|
default: v(() => [
|
|
1961
|
-
D(
|
|
1973
|
+
D(g(e(r)("action.cancel", { capitalize: !0 })), 1)
|
|
1962
1974
|
]),
|
|
1963
1975
|
_: 1
|
|
1964
1976
|
}),
|
|
@@ -1969,7 +1981,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1969
1981
|
onClick: l
|
|
1970
1982
|
}, {
|
|
1971
1983
|
default: v(() => [
|
|
1972
|
-
D(
|
|
1984
|
+
D(g(e(r)("action.insert", { capitalize: !0 })), 1)
|
|
1973
1985
|
]),
|
|
1974
1986
|
_: 1
|
|
1975
1987
|
}, 8, ["disabled", "loading"])
|
|
@@ -1977,20 +1989,20 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1977
1989
|
default: v(() => [
|
|
1978
1990
|
z(He, E({
|
|
1979
1991
|
modelValue: e(t).item,
|
|
1980
|
-
"onUpdate:modelValue":
|
|
1992
|
+
"onUpdate:modelValue": d[0] || (d[0] = (_) => e(t).item = _)
|
|
1981
1993
|
}, {
|
|
1982
|
-
collection: e(
|
|
1994
|
+
collection: e(i).view.collection,
|
|
1983
1995
|
form: e(t).properties,
|
|
1984
1996
|
isReadOnly: dt,
|
|
1985
1997
|
layout: e(t).description.formLayout || {}
|
|
1986
1998
|
}, {
|
|
1987
1999
|
focus: "",
|
|
1988
|
-
onAdd:
|
|
2000
|
+
onAdd: d[1] || (d[1] = (_) => _.preventDefault())
|
|
1989
2001
|
}), de({ _: 2 }, [
|
|
1990
|
-
U(Object.keys(
|
|
1991
|
-
name:
|
|
1992
|
-
fn: v((
|
|
1993
|
-
A(
|
|
2002
|
+
U(Object.keys(p.$slots).filter((_) => _.startsWith("field-")), (_) => ({
|
|
2003
|
+
name: _,
|
|
2004
|
+
fn: v((n) => [
|
|
2005
|
+
A(p.$slots, _, ce(Ve(n)))
|
|
1994
2006
|
])
|
|
1995
2007
|
}))
|
|
1996
2008
|
]), 1040, ["modelValue"])
|
|
@@ -1999,28 +2011,28 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
1999
2011
|
}, 8, ["modelValue", "loading"]);
|
|
2000
2012
|
};
|
|
2001
2013
|
}
|
|
2002
|
-
}),
|
|
2003
|
-
if (
|
|
2014
|
+
}), kt = (c, i) => {
|
|
2015
|
+
if (i) {
|
|
2004
2016
|
if (!c) {
|
|
2005
|
-
|
|
2017
|
+
i.filtersPreset = {}, i.preferredTableProperties = [], i.pagination.offset = 0;
|
|
2006
2018
|
return;
|
|
2007
2019
|
}
|
|
2008
|
-
|
|
2020
|
+
i.filtersPreset = c.filters || {}, i.preferredTableProperties = c.table ? Array.from(c.table) : [], i.pagination.offset = 0;
|
|
2009
2021
|
}
|
|
2010
|
-
}, na = (c,
|
|
2022
|
+
}, na = (c, i = {
|
|
2011
2023
|
persistInQuery: !0
|
|
2012
2024
|
}) => {
|
|
2013
|
-
const
|
|
2014
|
-
return re(() =>
|
|
2025
|
+
const a = Re().currentRoute;
|
|
2026
|
+
return re(() => a.value.query.section, (l) => {
|
|
2015
2027
|
if (c) {
|
|
2016
2028
|
if (c.description.filtersPresets) {
|
|
2017
|
-
const
|
|
2018
|
-
|
|
2029
|
+
const r = l || Object.keys(c.description.filtersPresets)[0];
|
|
2030
|
+
kt(c.description.filtersPresets[r], c);
|
|
2019
2031
|
}
|
|
2020
|
-
if (
|
|
2021
|
-
const
|
|
2022
|
-
|
|
2023
|
-
$search: `"${
|
|
2032
|
+
if (i.persistInQuery) {
|
|
2033
|
+
const r = a.value.query;
|
|
2034
|
+
r.offset && (c.pagination.offset = +r.offset), r.limit && (c.pagination.limit = +r.limit), r.search && (c.textQuery = r.search, c.filters.$text = {
|
|
2035
|
+
$search: `"${r.search}"`,
|
|
2024
2036
|
$caseSensitive: !1
|
|
2025
2037
|
});
|
|
2026
2038
|
}
|
|
@@ -2046,11 +2058,11 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2046
2058
|
}, wa = { class: "table__cell-actions" }, Ba = {
|
|
2047
2059
|
key: 2,
|
|
2048
2060
|
class: "no-print table__mobile-actions"
|
|
2049
|
-
}, Sa = ["id"], ja = { key: 1 }, Ta = /* @__PURE__ */ oa(() => /* @__PURE__ */
|
|
2050
|
-
/* @__PURE__ */
|
|
2051
|
-
], -1)),
|
|
2061
|
+
}, Sa = ["id"], ja = { key: 1 }, Ta = /* @__PURE__ */ oa(() => /* @__PURE__ */ k("td", { colspan: 10 }, [
|
|
2062
|
+
/* @__PURE__ */ k("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
|
|
2063
|
+
], -1)), Ra = [
|
|
2052
2064
|
Ta
|
|
2053
|
-
],
|
|
2065
|
+
], La = /* @__PURE__ */ q({
|
|
2054
2066
|
__name: "aeria-table",
|
|
2055
2067
|
props: {
|
|
2056
2068
|
columns: {},
|
|
@@ -2061,107 +2073,107 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2061
2073
|
layout: {}
|
|
2062
2074
|
},
|
|
2063
2075
|
emits: ["itemClick"],
|
|
2064
|
-
setup(c, { emit:
|
|
2065
|
-
const t = c,
|
|
2076
|
+
setup(c, { emit: i }) {
|
|
2077
|
+
const t = c, a = i, l = je(), r = t.collection || Te(), u = r ? ue(typeof r == "string" ? r : r.value) : null, p = H({
|
|
2066
2078
|
get: () => u == null ? void 0 : u.selected,
|
|
2067
|
-
set: (
|
|
2068
|
-
}),
|
|
2069
|
-
var
|
|
2070
|
-
return !l.value.xl || !((
|
|
2071
|
-
const
|
|
2072
|
-
return
|
|
2079
|
+
set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
|
|
2080
|
+
}), d = (f, V) => f != null && f.button ? typeof f.button == "object" ? Qe(V, f.button).satisfied : f.button : !1, h = (f) => {
|
|
2081
|
+
var V;
|
|
2082
|
+
return !l.value.xl || !((V = t.layout) != null && V.actions) || !t.actions ? [] : t.actions.filter((S) => {
|
|
2083
|
+
const L = t.layout.actions[S.action];
|
|
2084
|
+
return d(L, f);
|
|
2073
2085
|
});
|
|
2074
|
-
},
|
|
2075
|
-
var
|
|
2076
|
-
return t.actions ? !l.value.xl || !((
|
|
2077
|
-
const
|
|
2078
|
-
return !
|
|
2086
|
+
}, _ = (f) => {
|
|
2087
|
+
var V;
|
|
2088
|
+
return t.actions ? !l.value.xl || !((V = t.layout) != null && V.actions) ? t.actions : t.actions.filter((S) => {
|
|
2089
|
+
const L = t.layout.actions[S.action];
|
|
2090
|
+
return !d(L, f);
|
|
2079
2091
|
}) : [];
|
|
2080
|
-
},
|
|
2081
|
-
var
|
|
2082
|
-
const S = [],
|
|
2083
|
-
return
|
|
2084
|
-
|
|
2085
|
-
|
|
2092
|
+
}, n = (f, V) => {
|
|
2093
|
+
var W, P;
|
|
2094
|
+
const S = [], L = (P = (W = t.layout) == null ? void 0 : W.actions) == null ? void 0 : P[V.action];
|
|
2095
|
+
return L != null && L.if && (Qe(
|
|
2096
|
+
f,
|
|
2097
|
+
L.if
|
|
2086
2098
|
).satisfied || S.push("display: none;")), S.join("");
|
|
2087
2099
|
};
|
|
2088
|
-
return (
|
|
2089
|
-
var
|
|
2100
|
+
return (f, V) => {
|
|
2101
|
+
var L, W, P;
|
|
2090
2102
|
const S = ne("clickable");
|
|
2091
|
-
return
|
|
2092
|
-
|
|
2093
|
-
A(
|
|
2094
|
-
])) : (
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2103
|
+
return f.columns && Object.keys(f.columns).length > 0 || f.$slots.thead ? (o(), s("table", aa, [
|
|
2104
|
+
f.$slots.thead ? (o(), s("thead", la, [
|
|
2105
|
+
A(f.$slots, "thead", {}, void 0, !0)
|
|
2106
|
+
])) : (o(), s("thead", sa, [
|
|
2107
|
+
k("tr", null, [
|
|
2108
|
+
f.checkbox && e(u) && e(l).md ? (o(), s("th", ia, [
|
|
2109
|
+
k("input", {
|
|
2098
2110
|
type: "checkbox",
|
|
2099
2111
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2100
|
-
onChange:
|
|
2112
|
+
onChange: V[0] || (V[0] = (O) => e(u).$actions.selectAllItems(O.target.checked))
|
|
2101
2113
|
}, null, 40, ra)
|
|
2102
2114
|
])) : y("", !0),
|
|
2103
|
-
(
|
|
2104
|
-
key: `header-${
|
|
2115
|
+
(o(!0), s(J, null, U(Object.entries(f.columns), ([O, M], X) => (o(), s("th", {
|
|
2116
|
+
key: `header-${X}`,
|
|
2105
2117
|
class: "table__header"
|
|
2106
|
-
},
|
|
2107
|
-
(
|
|
2118
|
+
}, g(M.description || e(F)(O)), 1))), 128)),
|
|
2119
|
+
(L = f.actions) != null && L.length ? (o(), s("th", ua)) : y("", !0)
|
|
2108
2120
|
])
|
|
2109
2121
|
])),
|
|
2110
|
-
|
|
2111
|
-
A(
|
|
2112
|
-
])) : (
|
|
2113
|
-
(
|
|
2114
|
-
var M,
|
|
2115
|
-
return
|
|
2122
|
+
f.$slots.tbody ? (o(), s("tbody", ca, [
|
|
2123
|
+
A(f.$slots, "tbody", {}, void 0, !0)
|
|
2124
|
+
])) : (o(), s("tbody", da, [
|
|
2125
|
+
(o(!0), s(J, null, U(f.rows, (O) => {
|
|
2126
|
+
var M, X;
|
|
2127
|
+
return o(), s("tr", {
|
|
2116
2128
|
key: O._id,
|
|
2117
|
-
onClick: (w) =>
|
|
2129
|
+
onClick: (w) => a("itemClick", O)
|
|
2118
2130
|
}, [
|
|
2119
|
-
e(u) &&
|
|
2120
|
-
Z(
|
|
2121
|
-
"onUpdate:modelValue":
|
|
2131
|
+
e(u) && f.checkbox && e(l).md ? (o(), s("td", _a, [
|
|
2132
|
+
Z(k("input", {
|
|
2133
|
+
"onUpdate:modelValue": V[1] || (V[1] = (w) => p.value = w),
|
|
2122
2134
|
type: "checkbox",
|
|
2123
2135
|
value: O._id
|
|
2124
2136
|
}, null, 8, ma), [
|
|
2125
|
-
[It,
|
|
2137
|
+
[It, p.value]
|
|
2126
2138
|
])
|
|
2127
2139
|
])) : y("", !0),
|
|
2128
|
-
(
|
|
2129
|
-
var
|
|
2130
|
-
return
|
|
2140
|
+
(o(!0), s(J, null, U(Object.entries(f.columns), ([w, ee], C) => {
|
|
2141
|
+
var R, te, oe, le, m, b;
|
|
2142
|
+
return o(), s("td", {
|
|
2131
2143
|
key: `column-${O._id}-${C}`
|
|
2132
2144
|
}, [
|
|
2133
|
-
|
|
2134
|
-
`row-${w}` in
|
|
2135
|
-
A(
|
|
2145
|
+
k("div", fa, g(ee.description || e(F)(w)), 1),
|
|
2146
|
+
`row-${w}` in f.$slots ? (o(), s("div", va, [
|
|
2147
|
+
A(f.$slots, `row-${w}`, E({ ref_for: !0 }, {
|
|
2136
2148
|
store: e(u),
|
|
2137
2149
|
column: w,
|
|
2138
2150
|
property: ee,
|
|
2139
2151
|
row: O
|
|
2140
2152
|
}), void 0, !0)
|
|
2141
|
-
])) : (
|
|
2142
|
-
|
|
2143
|
-
"type" in ee && ee.type === "boolean" ? (
|
|
2144
|
-
O[w] ? (
|
|
2153
|
+
])) : (o(), s("div", ya, [
|
|
2154
|
+
k("div", ha, [
|
|
2155
|
+
"type" in ee && ee.type === "boolean" ? (o(), s("div", $a, [
|
|
2156
|
+
O[w] ? (o(), $(K, {
|
|
2145
2157
|
key: 0,
|
|
2146
2158
|
icon: "check",
|
|
2147
2159
|
"icon-classes": "aeria-blueish"
|
|
2148
2160
|
}, {
|
|
2149
2161
|
default: v(() => [
|
|
2150
|
-
D(
|
|
2162
|
+
D(g(e(F)("yes")), 1)
|
|
2151
2163
|
]),
|
|
2152
2164
|
_: 1
|
|
2153
|
-
})) : (
|
|
2165
|
+
})) : (o(), $(K, {
|
|
2154
2166
|
key: 1,
|
|
2155
2167
|
icon: "x",
|
|
2156
2168
|
"icon-classes": "aeria-redish"
|
|
2157
2169
|
}, {
|
|
2158
2170
|
default: v(() => [
|
|
2159
|
-
D(
|
|
2171
|
+
D(g(e(F)("no")), 1)
|
|
2160
2172
|
]),
|
|
2161
2173
|
_: 1
|
|
2162
2174
|
}))
|
|
2163
|
-
])) : ((
|
|
2164
|
-
/^image/.test((te = O[w][0]) == null ? void 0 : te.type) && "items" in ee ? (
|
|
2175
|
+
])) : ((R = e(pe)(ee)) == null ? void 0 : R.$ref) === "file" ? (o(), s("div", ba, [
|
|
2176
|
+
/^image/.test((te = O[w][0]) == null ? void 0 : te.type) && "items" in ee ? (o(), $(Me, {
|
|
2165
2177
|
key: 0,
|
|
2166
2178
|
modelValue: O[w][0].link,
|
|
2167
2179
|
"onUpdate:modelValue": (j) => O[w][0].link = j,
|
|
@@ -2169,7 +2181,7 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2169
2181
|
meta: O[w][0],
|
|
2170
2182
|
alt: "Row image",
|
|
2171
2183
|
class: "table__picture"
|
|
2172
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[w]) == null ? void 0 : oe.type) ? (
|
|
2184
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[w]) == null ? void 0 : oe.type) ? (o(), $(Me, {
|
|
2173
2185
|
key: 1,
|
|
2174
2186
|
modelValue: O[w].link,
|
|
2175
2187
|
"onUpdate:modelValue": (j) => O[w].link = j,
|
|
@@ -2177,22 +2189,22 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2177
2189
|
meta: O[w],
|
|
2178
2190
|
alt: "Row image",
|
|
2179
2191
|
class: "table__picture"
|
|
2180
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[w]) != null && le.link ? (
|
|
2192
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : (le = O[w]) != null && le.link ? (o(), s("a", {
|
|
2181
2193
|
key: 2,
|
|
2182
2194
|
href: O[w].link,
|
|
2183
2195
|
style: { "font-size": "10pt" }
|
|
2184
|
-
},
|
|
2185
|
-
])) : (
|
|
2186
|
-
e(u) ? (
|
|
2196
|
+
}, g(O[w].filename), 9, ga)) : (o(), s("div", ka, " - "))
|
|
2197
|
+
])) : (o(), s("div", Va, [
|
|
2198
|
+
e(u) ? (o(), s("span", Ca, g(e(u).$actions.formatValue({
|
|
2187
2199
|
value: O[w],
|
|
2188
2200
|
key: w,
|
|
2189
2201
|
property: ee
|
|
2190
|
-
})), 1)) : (
|
|
2191
|
-
((
|
|
2192
|
-
(
|
|
2202
|
+
})), 1)) : (o(), s("span", Ia, g(Array.isArray(O[w]) ? O[w].filter((j) => !!j).join(", ") : [void 0, null].includes(O[w]) ? "-" : O[w]), 1)),
|
|
2203
|
+
((b = (m = e(pe)(ee)) == null ? void 0 : m.indexes) == null ? void 0 : b.length) > 1 ? (o(), s("div", Aa, [
|
|
2204
|
+
(o(!0), s(J, null, U(e(pe)(ee).indexes.slice(1, 2), (j, N) => (o(), s("div", {
|
|
2193
2205
|
key: `subvalue-${N}`,
|
|
2194
2206
|
class: "table__cell-subvalue"
|
|
2195
|
-
},
|
|
2207
|
+
}, g(e(u).$actions.formatValue({
|
|
2196
2208
|
value: O[w],
|
|
2197
2209
|
key: w,
|
|
2198
2210
|
property: ee,
|
|
@@ -2204,27 +2216,27 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2204
2216
|
]))
|
|
2205
2217
|
]);
|
|
2206
2218
|
}), 128)),
|
|
2207
|
-
(M =
|
|
2208
|
-
|
|
2209
|
-
(
|
|
2219
|
+
(M = f.actions) != null && M.length && e(l).md ? (o(), s("td", Oa, [
|
|
2220
|
+
k("div", wa, [
|
|
2221
|
+
(o(!0), s(J, null, U(h(O), (w) => (o(), $(ie, {
|
|
2210
2222
|
key: `action-${w.action}`,
|
|
2211
2223
|
small: "",
|
|
2212
2224
|
variant: "transparent",
|
|
2213
2225
|
icon: w.icon,
|
|
2214
|
-
style: $e(
|
|
2226
|
+
style: $e(n(O, w)),
|
|
2215
2227
|
onClick: (ee) => w.click(O)
|
|
2216
2228
|
}, {
|
|
2217
2229
|
default: v(() => [
|
|
2218
|
-
D(
|
|
2230
|
+
D(g(e(F)(w.label)), 1)
|
|
2219
2231
|
]),
|
|
2220
2232
|
_: 2
|
|
2221
2233
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2222
|
-
|
|
2234
|
+
_(O).length > 0 ? (o(), $(Ce, E({
|
|
2223
2235
|
key: 0,
|
|
2224
2236
|
ref_for: !0
|
|
2225
2237
|
}, {
|
|
2226
2238
|
subject: O,
|
|
2227
|
-
actions:
|
|
2239
|
+
actions: _(O)
|
|
2228
2240
|
}), {
|
|
2229
2241
|
default: v(() => [
|
|
2230
2242
|
Z(z(K, {
|
|
@@ -2237,12 +2249,12 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2237
2249
|
_: 2
|
|
2238
2250
|
}, 1040)) : y("", !0)
|
|
2239
2251
|
])
|
|
2240
|
-
])) : (
|
|
2241
|
-
|
|
2252
|
+
])) : (X = f.actions) != null && X.length ? (o(), s("td", Ba, [
|
|
2253
|
+
k("div", {
|
|
2242
2254
|
class: "table__mobile-actions-grid",
|
|
2243
|
-
style: $e(`grid-template-columns: repeat(${h(O).length + (
|
|
2255
|
+
style: $e(`grid-template-columns: repeat(${h(O).length + (_(O).length ? 1 : 0)}, 1fr);`)
|
|
2244
2256
|
}, [
|
|
2245
|
-
(
|
|
2257
|
+
(o(!0), s(J, null, U(h(O), (w) => (o(), $(fe, {
|
|
2246
2258
|
key: `action-${w.action}`,
|
|
2247
2259
|
class: "table__mobile-actions-button",
|
|
2248
2260
|
onClick: (ee) => w.click(O)
|
|
@@ -2252,19 +2264,19 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2252
2264
|
icon: w.icon || "gear"
|
|
2253
2265
|
}, {
|
|
2254
2266
|
default: v(() => [
|
|
2255
|
-
D(
|
|
2267
|
+
D(g(e(F)(w.label)), 1)
|
|
2256
2268
|
]),
|
|
2257
2269
|
_: 2
|
|
2258
2270
|
}, 1032, ["icon"])
|
|
2259
2271
|
]),
|
|
2260
2272
|
_: 2
|
|
2261
2273
|
}, 1032, ["onClick"]))), 128)),
|
|
2262
|
-
|
|
2274
|
+
_(O).length > 0 ? (o(), $(Ce, E({
|
|
2263
2275
|
key: 0,
|
|
2264
2276
|
ref_for: !0
|
|
2265
2277
|
}, {
|
|
2266
2278
|
subject: O,
|
|
2267
|
-
actions:
|
|
2279
|
+
actions: _(O)
|
|
2268
2280
|
}), {
|
|
2269
2281
|
default: v(() => [
|
|
2270
2282
|
z(K, {
|
|
@@ -2276,20 +2288,20 @@ const He = /* @__PURE__ */ G(xo, [["__scopeId", "data-v-4fa79d79"]]), ea = /* @_
|
|
|
2276
2288
|
}, 1040)) : y("", !0)
|
|
2277
2289
|
], 4)
|
|
2278
2290
|
])) : y("", !0),
|
|
2279
|
-
|
|
2291
|
+
k("div", {
|
|
2280
2292
|
id: `dropdown-${O._id}`
|
|
2281
2293
|
}, null, 8, Sa)
|
|
2282
2294
|
], 8, pa);
|
|
2283
2295
|
}), 128))
|
|
2284
2296
|
])),
|
|
2285
|
-
|
|
2286
|
-
|
|
2297
|
+
k("tfoot", null, [
|
|
2298
|
+
f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((W = f.rows) != null && W.length) && !((P = e(u)) != null && P.loading.getAll) ? (o(), s("tr", ja, Ra)) : y("", !0)
|
|
2287
2299
|
])
|
|
2288
2300
|
])) : y("", !0);
|
|
2289
2301
|
};
|
|
2290
2302
|
}
|
|
2291
2303
|
});
|
|
2292
|
-
const za = /* @__PURE__ */ G(
|
|
2304
|
+
const za = /* @__PURE__ */ G(La, [["__scopeId", "data-v-434830ec"]]), Ma = /* @__PURE__ */ q({
|
|
2293
2305
|
__name: "aeria-tabular",
|
|
2294
2306
|
props: {
|
|
2295
2307
|
individualActions: {},
|
|
@@ -2297,26 +2309,26 @@ const za = /* @__PURE__ */ G(Ra, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
|
|
|
2297
2309
|
componentProps: {}
|
|
2298
2310
|
},
|
|
2299
2311
|
setup(c) {
|
|
2300
|
-
const
|
|
2301
|
-
const
|
|
2302
|
-
collection:
|
|
2312
|
+
const i = c, t = ge(), a = Te(), l = H(() => {
|
|
2313
|
+
const r = {
|
|
2314
|
+
collection: a,
|
|
2303
2315
|
checkbox: t.hasSelectionActions,
|
|
2304
2316
|
columns: t.tableProperties,
|
|
2305
2317
|
rows: t.items,
|
|
2306
|
-
actions:
|
|
2318
|
+
actions: i.individualActions,
|
|
2307
2319
|
layout: t.tableLayout
|
|
2308
2320
|
};
|
|
2309
|
-
return Object.assign(
|
|
2321
|
+
return Object.assign(r, i.componentProps);
|
|
2310
2322
|
});
|
|
2311
|
-
return (
|
|
2312
|
-
|
|
2313
|
-
e(t).properties ? (
|
|
2323
|
+
return (r, u) => (o(), s("div", null, [
|
|
2324
|
+
r.$slots.inner ? A(r.$slots, "inner", { key: 0 }) : y("", !0),
|
|
2325
|
+
e(t).properties ? (o(), $(za, E({ key: 1 }, l.value, {
|
|
2314
2326
|
key: e(t).$id
|
|
2315
2327
|
}), de({ _: 2 }, [
|
|
2316
|
-
U(Object.keys(
|
|
2317
|
-
name:
|
|
2318
|
-
fn: v((
|
|
2319
|
-
A(
|
|
2328
|
+
U(Object.keys(r.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
|
|
2329
|
+
name: p,
|
|
2330
|
+
fn: v((d) => [
|
|
2331
|
+
A(r.$slots, p, ce(Ve(d)))
|
|
2320
2332
|
])
|
|
2321
2333
|
}))
|
|
2322
2334
|
]), 1040)) : y("", !0)
|
|
@@ -2328,13 +2340,13 @@ const za = /* @__PURE__ */ G(Ra, [["__scopeId", "data-v-434830ec"]]), Ma = /* @_
|
|
|
2328
2340
|
list: { type: Boolean }
|
|
2329
2341
|
},
|
|
2330
2342
|
setup(c) {
|
|
2331
|
-
return (
|
|
2343
|
+
return (i, t) => (o(), s("div", {
|
|
2332
2344
|
class: Q(`
|
|
2333
2345
|
grid
|
|
2334
|
-
${
|
|
2346
|
+
${i.list && "grid--list"}
|
|
2335
2347
|
`)
|
|
2336
2348
|
}, [
|
|
2337
|
-
A(
|
|
2349
|
+
A(i.$slots, "default", {}, void 0, !0)
|
|
2338
2350
|
], 2));
|
|
2339
2351
|
}
|
|
2340
2352
|
});
|
|
@@ -2350,36 +2362,36 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2350
2362
|
componentName: {}
|
|
2351
2363
|
},
|
|
2352
2364
|
setup(c) {
|
|
2353
|
-
const t = c.layoutOptions,
|
|
2354
|
-
return (
|
|
2355
|
-
const
|
|
2356
|
-
return
|
|
2357
|
-
list:
|
|
2365
|
+
const t = c.layoutOptions, a = ge(), l = (r) => Array.isArray(r) ? r[0] : r;
|
|
2366
|
+
return (r, u) => {
|
|
2367
|
+
const p = ne("clickable");
|
|
2368
|
+
return o(), $(qa, {
|
|
2369
|
+
list: r.componentName === "list"
|
|
2358
2370
|
}, {
|
|
2359
2371
|
default: v(() => [
|
|
2360
|
-
(
|
|
2361
|
-
key:
|
|
2362
|
-
inactive: !!(e(t).active && !
|
|
2363
|
-
horizontal:
|
|
2372
|
+
(o(!0), s(J, null, U(e(a).items, (d) => (o(), $(pn, {
|
|
2373
|
+
key: d,
|
|
2374
|
+
inactive: !!(e(t).active && !d[e(t).active]),
|
|
2375
|
+
horizontal: r.componentName === "list"
|
|
2364
2376
|
}, de({
|
|
2365
2377
|
footer: v(() => [
|
|
2366
|
-
e(t).title ? (
|
|
2367
|
-
e(t).information ? (
|
|
2378
|
+
e(t).title ? (o(), s("div", Ua, g(d[e(t).title]), 1)) : y("", !0),
|
|
2379
|
+
e(t).information ? (o(), s("div", Ea, g(d[e(t).information]), 1)) : y("", !0)
|
|
2368
2380
|
]),
|
|
2369
2381
|
actions: v(() => [
|
|
2370
|
-
|
|
2382
|
+
r.individualActions.length > 0 ? (o(), $(Ce, E({
|
|
2371
2383
|
key: 0,
|
|
2372
2384
|
ref_for: !0
|
|
2373
2385
|
}, {
|
|
2374
|
-
subject:
|
|
2375
|
-
actions:
|
|
2386
|
+
subject: d,
|
|
2387
|
+
actions: r.individualActions
|
|
2376
2388
|
}), {
|
|
2377
2389
|
default: v(() => [
|
|
2378
2390
|
Z(z(K, {
|
|
2379
2391
|
reactive: "",
|
|
2380
2392
|
icon: "dots-three-vertical"
|
|
2381
2393
|
}, null, 512), [
|
|
2382
|
-
[
|
|
2394
|
+
[p]
|
|
2383
2395
|
])
|
|
2384
2396
|
]),
|
|
2385
2397
|
_: 2
|
|
@@ -2391,22 +2403,22 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2391
2403
|
z(Me, {
|
|
2392
2404
|
alt: "Item picture",
|
|
2393
2405
|
expandable: "",
|
|
2394
|
-
url: (h = l(
|
|
2395
|
-
meta: l(
|
|
2406
|
+
url: (h = l(d[e(t).picture])) == null ? void 0 : h.link,
|
|
2407
|
+
meta: l(d[e(t).picture])
|
|
2396
2408
|
}, null, 8, ["url", "meta"])
|
|
2397
2409
|
];
|
|
2398
2410
|
}),
|
|
2399
2411
|
_: 2
|
|
2400
2412
|
}, [
|
|
2401
|
-
e(t).badge && Array.isArray(
|
|
2413
|
+
e(t).badge && Array.isArray(d[e(t).badge]) ? {
|
|
2402
2414
|
name: "badge",
|
|
2403
2415
|
fn: v(() => [
|
|
2404
|
-
(
|
|
2405
|
-
key: `${
|
|
2416
|
+
(o(!0), s(J, null, U(d[e(t).badge], (h) => (o(), $(be, {
|
|
2417
|
+
key: `${d._id}-${h}`,
|
|
2406
2418
|
large: ""
|
|
2407
2419
|
}, {
|
|
2408
2420
|
default: v(() => [
|
|
2409
|
-
D(
|
|
2421
|
+
D(g(e(t).translateBadge ? e(F)(h) : h), 1)
|
|
2410
2422
|
]),
|
|
2411
2423
|
_: 2
|
|
2412
2424
|
}, 1024))), 128))
|
|
@@ -2417,7 +2429,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2417
2429
|
fn: v(() => [
|
|
2418
2430
|
z(be, null, {
|
|
2419
2431
|
default: v(() => [
|
|
2420
|
-
D(
|
|
2432
|
+
D(g(e(t).translateBadge ? e(F)(d[e(t).badge]) : d[e(t)[r.badge]]), 1)
|
|
2421
2433
|
]),
|
|
2422
2434
|
_: 2
|
|
2423
2435
|
}, 1024)
|
|
@@ -2431,7 +2443,7 @@ const qa = /* @__PURE__ */ G(Fa, [["__scopeId", "data-v-438c4aed"]]), Ua = { key
|
|
|
2431
2443
|
};
|
|
2432
2444
|
}
|
|
2433
2445
|
});
|
|
2434
|
-
const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-
|
|
2446
|
+
const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-a5c79d91"]]), Da = (c) => ({
|
|
2435
2447
|
tabular: Ma,
|
|
2436
2448
|
grid: pt,
|
|
2437
2449
|
list: pt
|
|
@@ -2441,7 +2453,7 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2441
2453
|
}, Wa = {
|
|
2442
2454
|
key: 0,
|
|
2443
2455
|
class: "crud__search"
|
|
2444
|
-
}, Xa = { class: "crud__actions" }, Ya = { class: "crud__context-badge" }, Ja = /* @__PURE__ */ Qa(() => /* @__PURE__ */
|
|
2456
|
+
}, Xa = { class: "crud__actions" }, Ya = { class: "crud__context-badge" }, Ja = /* @__PURE__ */ Qa(() => /* @__PURE__ */ k("div", null, "Filtros", -1)), Ka = { key: 0 }, Za = {
|
|
2445
2457
|
key: 3,
|
|
2446
2458
|
class: "crud__pagination"
|
|
2447
2459
|
}, _t = 30, Pa = /* @__PURE__ */ q({
|
|
@@ -2459,32 +2471,32 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2459
2471
|
noQueryPersistence: { type: Boolean }
|
|
2460
2472
|
},
|
|
2461
2473
|
emits: ["uiEvent"],
|
|
2462
|
-
setup(c, { emit:
|
|
2463
|
-
const t = c,
|
|
2474
|
+
setup(c, { emit: i }) {
|
|
2475
|
+
const t = c, a = i, l = Re(), r = ht({
|
|
2464
2476
|
delay: 600
|
|
2465
|
-
}), u = ue("meta"),
|
|
2477
|
+
}), u = ue("meta"), p = je(), { reachedEnd: d, detach: h } = We(null, {
|
|
2466
2478
|
antecipate: 600
|
|
2467
|
-
}),
|
|
2468
|
-
|
|
2469
|
-
C &&
|
|
2479
|
+
}), _ = !p.value.md || t.scrollPagination;
|
|
2480
|
+
_ && re(d, (C) => {
|
|
2481
|
+
C && n.pagination.recordsTotal > n.items.length && S.value < _t && (S.value += 1, W());
|
|
2470
2482
|
});
|
|
2471
|
-
const
|
|
2472
|
-
na(
|
|
2483
|
+
const n = ue(t.collection);
|
|
2484
|
+
na(n, {
|
|
2473
2485
|
persistInQuery: !t.noQueryPersistence
|
|
2474
2486
|
});
|
|
2475
|
-
const
|
|
2476
|
-
Be.value =
|
|
2477
|
-
const S =
|
|
2478
|
-
|
|
2479
|
-
const
|
|
2480
|
-
filters:
|
|
2481
|
-
limit:
|
|
2482
|
-
offset:
|
|
2483
|
-
project:
|
|
2487
|
+
const f = $t(), V = t.action ? e(t.action) : qt(n, l, f);
|
|
2488
|
+
Be.value = V[0], ct.value = V[1];
|
|
2489
|
+
const S = Y(0), L = Y(!1), W = async (C) => {
|
|
2490
|
+
n.activeFilters = Object.assign({}, (C == null ? void 0 : C.filters) || n.$filters), Object.assign(n.activeFilters, n.filtersPreset);
|
|
2491
|
+
const R = {
|
|
2492
|
+
filters: n.activeFilters,
|
|
2493
|
+
limit: n.pagination.limit,
|
|
2494
|
+
offset: n.pagination.offset,
|
|
2495
|
+
project: n.preferredTableProperties.length > 0 ? n.preferredTableProperties : n.description.table || Object.keys(n.properties)
|
|
2484
2496
|
};
|
|
2485
|
-
S.value > 0 && (
|
|
2486
|
-
const { data: te, pagination: oe } = await
|
|
2487
|
-
|
|
2497
|
+
S.value > 0 && (R.limit = 15, R.offset = S.value * R.limit), n.description.tableMeta && (R.project = R.project.concat(n.description.tableMeta)), C && Object.assign(R, C), n.loading.getAll = !0;
|
|
2498
|
+
const { data: te, pagination: oe } = await n.$actions.retrieveItems(R);
|
|
2499
|
+
n.pagination.recordsCount = oe.recordsCount, n.pagination.recordsTotal = oe.recordsTotal, S.value === 0 && n.items.splice(0), n.items.push(...te), n.loading.getAll = !1, L.value = !0;
|
|
2488
2500
|
}, P = async (C) => {
|
|
2489
2501
|
l.push({
|
|
2490
2502
|
query: {
|
|
@@ -2492,75 +2504,75 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2492
2504
|
offset: C.offset,
|
|
2493
2505
|
limit: C.limit
|
|
2494
2506
|
}
|
|
2495
|
-
}),
|
|
2507
|
+
}), n.pagination.offset = C.offset, n.pagination.limit = C.limit, W();
|
|
2496
2508
|
}, O = ve("noResultsComponent", null);
|
|
2497
2509
|
re(() => [
|
|
2498
2510
|
l.currentRoute.value.path,
|
|
2499
2511
|
l.currentRoute.value.query.section
|
|
2500
|
-
], async (C,
|
|
2501
|
-
if (
|
|
2512
|
+
], async (C, R) => {
|
|
2513
|
+
if (R && R[0] === C[0] && R[1] === C[1])
|
|
2502
2514
|
return;
|
|
2503
2515
|
const te = l.currentRoute.value;
|
|
2504
2516
|
if (u.view.title = t.collection, u.view.collection = t.collection, ut.value = !1, !t.noFetch && !te.query._popstate) {
|
|
2505
|
-
const oe = Ut(
|
|
2506
|
-
Object.keys(oe).length > 0 && Object.assign(
|
|
2517
|
+
const oe = Ut(n, te);
|
|
2518
|
+
Object.keys(oe).length > 0 && Object.assign(n.filters, oe), await W();
|
|
2507
2519
|
}
|
|
2508
2520
|
}, {
|
|
2509
2521
|
immediate: !0,
|
|
2510
2522
|
flush: "post"
|
|
2511
2523
|
});
|
|
2512
|
-
const [M] =
|
|
2524
|
+
const [M] = r((C) => (l.push({
|
|
2513
2525
|
query: {
|
|
2514
2526
|
search: C || void 0
|
|
2515
2527
|
}
|
|
2516
|
-
}), C ? (
|
|
2528
|
+
}), C ? (n.filters = Object.assign(Se(n.freshFilters), {
|
|
2517
2529
|
$text: {
|
|
2518
2530
|
$search: `"${C}"`,
|
|
2519
2531
|
$caseSensitive: !1
|
|
2520
2532
|
}
|
|
2521
|
-
}),
|
|
2533
|
+
}), W({
|
|
2522
2534
|
offset: 0
|
|
2523
|
-
})) : (
|
|
2524
|
-
re(() =>
|
|
2535
|
+
})) : (n.filters = Se(n.freshFilters), S.value = 0, W())));
|
|
2536
|
+
re(() => n.textQuery, (C) => {
|
|
2525
2537
|
M(C);
|
|
2526
2538
|
});
|
|
2527
|
-
const
|
|
2539
|
+
const X = (C) => {
|
|
2528
2540
|
C.currentLayout = C.currentLayout === "tabular" ? C.description.layout.name : "tabular";
|
|
2529
2541
|
};
|
|
2530
2542
|
At(() => {
|
|
2531
|
-
|
|
2543
|
+
n.$actions.clearFilters(), n.textQuery = "", h();
|
|
2532
2544
|
}), re(() => ct.value, async (C) => {
|
|
2533
2545
|
var oe;
|
|
2534
|
-
const
|
|
2546
|
+
const R = Se(C);
|
|
2535
2547
|
let te;
|
|
2536
|
-
if (
|
|
2548
|
+
if (R)
|
|
2537
2549
|
if ([
|
|
2538
2550
|
"spawnEdit",
|
|
2539
2551
|
"spawnView",
|
|
2540
2552
|
"duplicate"
|
|
2541
|
-
].includes(
|
|
2553
|
+
].includes(R.name) && (te = n.$actions.get({
|
|
2542
2554
|
filters: {
|
|
2543
|
-
_id:
|
|
2555
|
+
_id: R.params._id
|
|
2544
2556
|
}
|
|
2545
|
-
})),
|
|
2546
|
-
|
|
2547
|
-
delete
|
|
2557
|
+
})), R.name === "spawnAdd")
|
|
2558
|
+
n.$actions.clearItem(), (oe = R.params) != null && oe.item && (n.$actions.setItem(R.params.item), Object.keys(R.params.item).forEach((le) => {
|
|
2559
|
+
delete n.referenceItem[le];
|
|
2548
2560
|
})), se.value = "add";
|
|
2549
|
-
else if (
|
|
2550
|
-
|
|
2551
|
-
else if (
|
|
2561
|
+
else if (R.name === "spawnEdit")
|
|
2562
|
+
n.$actions.setItem(R.params), se.value = "edit";
|
|
2563
|
+
else if (R.name === "spawnView")
|
|
2552
2564
|
ut.value = !0, se.value = "view";
|
|
2553
|
-
else if (
|
|
2565
|
+
else if (R.name === "duplicate") {
|
|
2554
2566
|
await te;
|
|
2555
|
-
const le = Object.entries(
|
|
2556
|
-
if (!(
|
|
2567
|
+
const le = Object.entries(n.item).reduce((m, [b, j]) => {
|
|
2568
|
+
if (!(b in n.properties))
|
|
2557
2569
|
return {
|
|
2558
|
-
...
|
|
2559
|
-
[
|
|
2570
|
+
...m,
|
|
2571
|
+
[b]: j
|
|
2560
2572
|
};
|
|
2561
|
-
const N =
|
|
2573
|
+
const N = n.properties[b];
|
|
2562
2574
|
if (N.readOnly)
|
|
2563
|
-
return
|
|
2575
|
+
return m;
|
|
2564
2576
|
const I = (T) => {
|
|
2565
2577
|
const B = pe(N);
|
|
2566
2578
|
if (!B)
|
|
@@ -2574,32 +2586,32 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2574
2586
|
return T;
|
|
2575
2587
|
};
|
|
2576
2588
|
return j = Array.isArray(j) ? j.map(I) : I(j), {
|
|
2577
|
-
...
|
|
2578
|
-
[
|
|
2589
|
+
...m,
|
|
2590
|
+
[b]: j
|
|
2579
2591
|
};
|
|
2580
2592
|
}, {});
|
|
2581
|
-
|
|
2593
|
+
n.$actions.setItem(le), delete n.item._id, n.referenceItem = {}, se.value = "duplicate";
|
|
2582
2594
|
} else
|
|
2583
|
-
|
|
2595
|
+
a("uiEvent", R);
|
|
2584
2596
|
}, {
|
|
2585
2597
|
deep: !0
|
|
2586
2598
|
}), re(() => se, (C) => {
|
|
2587
|
-
C.value === !1 && (u.view.collection = t.collection,
|
|
2599
|
+
C.value === !1 && (u.view.collection = t.collection, n.$actions.clearItem());
|
|
2588
2600
|
});
|
|
2589
|
-
const w = H(() =>
|
|
2601
|
+
const w = H(() => n.individualActions.map((C) => ({
|
|
2590
2602
|
click: Be.value(C),
|
|
2591
2603
|
...C
|
|
2592
|
-
}))), ee = H(() =>
|
|
2593
|
-
return ye(Ue, H(() => t.collection)), ye("individualActions", w), (C,
|
|
2594
|
-
var le,
|
|
2604
|
+
}))), ee = H(() => n.actions.filter((C) => !C.button));
|
|
2605
|
+
return ye(Ue, H(() => t.collection)), ye("individualActions", w), (C, R) => {
|
|
2606
|
+
var le, m, b, j, N, I, T;
|
|
2595
2607
|
const te = ne("clickable"), oe = ne("loading");
|
|
2596
|
-
return
|
|
2597
|
-
e(ke) ? (
|
|
2598
|
-
key: e(
|
|
2608
|
+
return o(), s(J, null, [
|
|
2609
|
+
e(ke) ? (o(), $(ea, {
|
|
2610
|
+
key: e(n).$id,
|
|
2599
2611
|
modelValue: e(ke),
|
|
2600
|
-
"onUpdate:modelValue":
|
|
2612
|
+
"onUpdate:modelValue": R[0] || (R[0] = (B) => vt(ke) ? ke.value = B : null)
|
|
2601
2613
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2602
|
-
e(se) ? (
|
|
2614
|
+
e(se) ? (o(), $(ta, { key: 1 }, de({ _: 2 }, [
|
|
2603
2615
|
U(Object.keys(C.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
2604
2616
|
name: B,
|
|
2605
2617
|
fn: v((ae) => [
|
|
@@ -2607,30 +2619,30 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2607
2619
|
])
|
|
2608
2620
|
}))
|
|
2609
2621
|
]), 1024)) : y("", !0),
|
|
2610
|
-
!C.noActions && (e(
|
|
2611
|
-
e(
|
|
2622
|
+
!C.noActions && (e(n).description.search || Object.keys(e(n).availableFilters).length > 0 || ((le = e(n)) == null ? void 0 : le.actions.length) > 0 || C.$slots.actions || !C.noLayoutToggle && e(n).description.layout && ((m = e(n).description.layout) == null ? void 0 : m.name) !== "tabular") ? (o(), s("div", Ga, [
|
|
2623
|
+
e(n).description.search ? (o(), s("div", Wa, [
|
|
2612
2624
|
z(Ie, E({
|
|
2613
|
-
modelValue: e(
|
|
2614
|
-
"onUpdate:modelValue":
|
|
2625
|
+
modelValue: e(n).textQuery,
|
|
2626
|
+
"onUpdate:modelValue": R[1] || (R[1] = (B) => e(n).textQuery = B)
|
|
2615
2627
|
}, {
|
|
2616
2628
|
property: {
|
|
2617
2629
|
type: "string",
|
|
2618
|
-
placeholder: e(
|
|
2630
|
+
placeholder: e(n).description.search.placeholder || "Pesquise aqui",
|
|
2619
2631
|
inputType: "search"
|
|
2620
2632
|
}
|
|
2621
2633
|
}), null, 16, ["modelValue"])
|
|
2622
2634
|
])) : y("", !0),
|
|
2623
|
-
|
|
2624
|
-
ee.value.length > 0 || !C.noLayoutToggle && e(
|
|
2635
|
+
k("div", Xa, [
|
|
2636
|
+
ee.value.length > 0 || !C.noLayoutToggle && e(n).description.layout && ((b = e(n).description.layout) == null ? void 0 : b.name) !== "tabular" ? (o(), $(Ce, { key: 0 }, de({
|
|
2625
2637
|
default: v(() => [
|
|
2626
2638
|
z(ie, {
|
|
2627
2639
|
variant: "alt",
|
|
2628
2640
|
icon: "sliders"
|
|
2629
2641
|
}, {
|
|
2630
2642
|
default: v(() => [
|
|
2631
|
-
e(
|
|
2643
|
+
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2632
2644
|
default: v(() => [
|
|
2633
|
-
D(
|
|
2645
|
+
D(g(e(n).filtersCount), 1)
|
|
2634
2646
|
]),
|
|
2635
2647
|
_: 1
|
|
2636
2648
|
})) : y("", !0)
|
|
@@ -2640,24 +2652,24 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2640
2652
|
]),
|
|
2641
2653
|
_: 2
|
|
2642
2654
|
}, [
|
|
2643
|
-
Object.keys(e(
|
|
2655
|
+
Object.keys(e(n).availableFilters).length > 0 ? {
|
|
2644
2656
|
name: "filter",
|
|
2645
2657
|
fn: v(() => [
|
|
2646
|
-
Z((
|
|
2658
|
+
Z((o(), $(K, {
|
|
2647
2659
|
icon: "funnel",
|
|
2648
|
-
onClick:
|
|
2660
|
+
onClick: R[2] || (R[2] = (B) => ke.value = !0)
|
|
2649
2661
|
}, {
|
|
2650
2662
|
default: v(() => [
|
|
2651
|
-
D(
|
|
2663
|
+
D(g(e(F)("filters", { capitalize: !0 })), 1)
|
|
2652
2664
|
]),
|
|
2653
2665
|
_: 1
|
|
2654
2666
|
})), [
|
|
2655
2667
|
[te]
|
|
2656
2668
|
]),
|
|
2657
|
-
|
|
2658
|
-
e(
|
|
2669
|
+
k("div", Ya, [
|
|
2670
|
+
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2659
2671
|
default: v(() => [
|
|
2660
|
-
D(
|
|
2672
|
+
D(g(e(n).filtersCount), 1)
|
|
2661
2673
|
]),
|
|
2662
2674
|
_: 1
|
|
2663
2675
|
})) : y("", !0)
|
|
@@ -2665,15 +2677,15 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2665
2677
|
]),
|
|
2666
2678
|
key: "0"
|
|
2667
2679
|
} : void 0,
|
|
2668
|
-
!C.noLayoutToggle && e(
|
|
2680
|
+
!C.noLayoutToggle && e(n).description.layout && ((j = e(n).description.layout) == null ? void 0 : j.name) !== "tabular" ? {
|
|
2669
2681
|
name: "layout-toggle",
|
|
2670
2682
|
fn: v(() => [
|
|
2671
|
-
Z((
|
|
2683
|
+
Z((o(), $(K, {
|
|
2672
2684
|
icon: "table",
|
|
2673
|
-
onClick:
|
|
2685
|
+
onClick: R[3] || (R[3] = (B) => X(e(n)))
|
|
2674
2686
|
}, {
|
|
2675
2687
|
default: v(() => [
|
|
2676
|
-
D(
|
|
2688
|
+
D(g(e(F)("change_layout", { capitalize: !0 })), 1)
|
|
2677
2689
|
]),
|
|
2678
2690
|
_: 1
|
|
2679
2691
|
})), [
|
|
@@ -2685,81 +2697,81 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2685
2697
|
U(ee.value, (B, ae) => ({
|
|
2686
2698
|
name: `action-${ae}`,
|
|
2687
2699
|
fn: v(() => [
|
|
2688
|
-
B ? (
|
|
2700
|
+
B ? (o(), $(K, {
|
|
2689
2701
|
key: 0,
|
|
2690
2702
|
icon: B.icon || "gear",
|
|
2691
|
-
disabled: e(
|
|
2692
|
-
onClick: (_e) => e(Be)(B)({ _id: e(
|
|
2703
|
+
disabled: e(n).selected.length === 0 && B.selection,
|
|
2704
|
+
onClick: (_e) => e(Be)(B)({ _id: e(n).selected.map((me) => me._id) })
|
|
2693
2705
|
}, {
|
|
2694
2706
|
default: v(() => [
|
|
2695
|
-
D(
|
|
2707
|
+
D(g(e(F)(B.label, { capitalize: !0 })), 1)
|
|
2696
2708
|
]),
|
|
2697
2709
|
_: 2
|
|
2698
2710
|
}, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
|
|
2699
2711
|
])
|
|
2700
2712
|
}))
|
|
2701
|
-
]), 1024)) : Object.keys(e(
|
|
2713
|
+
]), 1024)) : Object.keys(e(n).availableFilters).length > 0 ? (o(), $(ie, {
|
|
2702
2714
|
key: 1,
|
|
2703
2715
|
variant: "alt",
|
|
2704
2716
|
icon: "funnel",
|
|
2705
|
-
onClick:
|
|
2717
|
+
onClick: R[4] || (R[4] = (B) => ke.value = !0)
|
|
2706
2718
|
}, {
|
|
2707
2719
|
default: v(() => [
|
|
2708
2720
|
Ja,
|
|
2709
|
-
e(
|
|
2721
|
+
e(n).filtersCount ? (o(), $(be, { key: 0 }, {
|
|
2710
2722
|
default: v(() => [
|
|
2711
|
-
D(
|
|
2723
|
+
D(g(e(n).filtersCount), 1)
|
|
2712
2724
|
]),
|
|
2713
2725
|
_: 1
|
|
2714
2726
|
})) : y("", !0)
|
|
2715
2727
|
]),
|
|
2716
2728
|
_: 1
|
|
2717
2729
|
})) : y("", !0),
|
|
2718
|
-
(
|
|
2730
|
+
(o(!0), s(J, null, U(e(n).actions.filter((B) => B.button), (B, ae) => (o(), $(ie, {
|
|
2719
2731
|
key: `action-${ae}`,
|
|
2720
2732
|
icon: B.icon,
|
|
2721
|
-
disabled: e(
|
|
2722
|
-
onClick: (_e) => e(Be)(B)({ _id: e(
|
|
2733
|
+
disabled: e(n).selected.length === 0 && B.selection,
|
|
2734
|
+
onClick: (_e) => e(Be)(B)({ _id: e(n).selected.map((me) => me._id) })
|
|
2723
2735
|
}, {
|
|
2724
2736
|
default: v(() => [
|
|
2725
|
-
D(
|
|
2737
|
+
D(g(e(F)(B.label, { capitalize: !0 })), 1)
|
|
2726
2738
|
]),
|
|
2727
2739
|
_: 2
|
|
2728
2740
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2729
2741
|
C.$slots.actions ? A(C.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
|
|
2730
2742
|
])
|
|
2731
2743
|
])) : y("", !0),
|
|
2732
|
-
Z((
|
|
2733
|
-
e(
|
|
2734
|
-
e(O) ? (
|
|
2735
|
-
collection: e(
|
|
2744
|
+
Z((o(), s("div", null, [
|
|
2745
|
+
e(n).itemsCount === 0 && !e(n).loading.getAll && L.value && (e(O) || C.$slots.empty) ? (o(), s("div", Ka, [
|
|
2746
|
+
e(O) ? (o(), $(he(e(O)), ce(E({ key: 0 }, {
|
|
2747
|
+
collection: e(n).$id
|
|
2736
2748
|
})), {
|
|
2737
2749
|
default: v(() => [
|
|
2738
|
-
e(
|
|
2750
|
+
e(n).filtersCount === 0 && e(n).description.actions && "ui:spawnAdd" in e(n).description.actions ? (o(), $(ie, {
|
|
2739
2751
|
key: 0,
|
|
2740
2752
|
icon: "plus",
|
|
2741
|
-
onClick:
|
|
2753
|
+
onClick: R[5] || (R[5] = (B) => e(Be)({
|
|
2742
2754
|
action: "ui:spawnAdd"
|
|
2743
2755
|
})())
|
|
2744
2756
|
}, {
|
|
2745
2757
|
default: v(() => [
|
|
2746
|
-
D(
|
|
2758
|
+
D(g(e(F)("add_first_item", { capitalize: !0 })), 1)
|
|
2747
2759
|
]),
|
|
2748
2760
|
_: 1
|
|
2749
2761
|
})) : y("", !0)
|
|
2750
2762
|
]),
|
|
2751
2763
|
_: 1
|
|
2752
2764
|
}, 16)) : A(C.$slots, "empty", ce(E({ key: 1 }, {
|
|
2753
|
-
collection: e(
|
|
2765
|
+
collection: e(n).$id
|
|
2754
2766
|
})), void 0, !0)
|
|
2755
2767
|
])) : C.$slots.component ? A(C.$slots, "component", ce(E({ key: 1 }, {
|
|
2756
|
-
store: e(
|
|
2757
|
-
})), void 0, !0) : (
|
|
2768
|
+
store: e(n)
|
|
2769
|
+
})), void 0, !0) : (o(), $(he(e(Da)(((N = C.layout) == null ? void 0 : N.name) || e(n).$currentLayout)), E({ key: 2 }, {
|
|
2758
2770
|
individualActions: w.value,
|
|
2759
|
-
layoutOptions: ((I = C.layout) == null ? void 0 : I.options) || e(
|
|
2771
|
+
layoutOptions: ((I = C.layout) == null ? void 0 : I.options) || e(n).layout.options,
|
|
2760
2772
|
componentProps: C.componentProps
|
|
2761
2773
|
}, {
|
|
2762
|
-
"component-name": ((T = C.layout) == null ? void 0 : T.name) || e(
|
|
2774
|
+
"component-name": ((T = C.layout) == null ? void 0 : T.name) || e(n).$currentLayout
|
|
2763
2775
|
}), de({ _: 2 }, [
|
|
2764
2776
|
U(Object.keys(C.$slots).filter((B) => B.startsWith("row-")), (B) => ({
|
|
2765
2777
|
name: B,
|
|
@@ -2776,11 +2788,11 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2776
2788
|
} : void 0
|
|
2777
2789
|
]), 1040, ["component-name"]))
|
|
2778
2790
|
])), [
|
|
2779
|
-
[oe, (!e(
|
|
2791
|
+
[oe, (!e(_) || S.value === _t) && e(n).loading.getAll]
|
|
2780
2792
|
]),
|
|
2781
|
-
!e(
|
|
2793
|
+
!e(n).loading.getAll && e(n).itemsCount > 0 ? (o(), s("div", Za, [
|
|
2782
2794
|
z(Mn, {
|
|
2783
|
-
pagination: e(
|
|
2795
|
+
pagination: e(n).pagination,
|
|
2784
2796
|
onPaginate: P
|
|
2785
2797
|
}, null, 8, ["pagination"])
|
|
2786
2798
|
])) : y("", !0)
|
|
@@ -2788,53 +2800,53 @@ const pt = /* @__PURE__ */ G(Ha, [["__scopeId", "data-v-71a3bd40"]]), Da = (c) =
|
|
|
2788
2800
|
};
|
|
2789
2801
|
}
|
|
2790
2802
|
});
|
|
2791
|
-
const
|
|
2803
|
+
const Rl = /* @__PURE__ */ G(Pa, [["__scopeId", "data-v-2cbb3e9f"]]), Na = { class: "prompt" }, xa = /* @__PURE__ */ q({
|
|
2792
2804
|
__name: "aeria-prompt",
|
|
2793
2805
|
props: {
|
|
2794
2806
|
title: {},
|
|
2795
2807
|
actions: {}
|
|
2796
2808
|
},
|
|
2797
2809
|
setup(c) {
|
|
2798
|
-
const
|
|
2799
|
-
|
|
2810
|
+
const i = ue("meta"), t = (a) => {
|
|
2811
|
+
i.$actions.fulfillPrompt(a);
|
|
2800
2812
|
};
|
|
2801
|
-
return (
|
|
2813
|
+
return (a, l) => (o(), $(Ae, {
|
|
2802
2814
|
float: "",
|
|
2803
2815
|
"fill-footer": "",
|
|
2804
2816
|
"close-hint": !1,
|
|
2805
2817
|
style: { "--panel-min-width": "32rem" }
|
|
2806
2818
|
}, de({
|
|
2807
2819
|
footer: v(() => [
|
|
2808
|
-
|
|
2820
|
+
k("div", {
|
|
2809
2821
|
class: "prompt__actions",
|
|
2810
|
-
style: $e(`grid-template-columns: repeat(${
|
|
2822
|
+
style: $e(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
|
|
2811
2823
|
}, [
|
|
2812
|
-
(
|
|
2824
|
+
(o(!0), s(J, null, U(a.actions, (r, u) => (o(), $(fe, {
|
|
2813
2825
|
key: `action-${u}`,
|
|
2814
2826
|
class: Q(`
|
|
2815
2827
|
prompt__action
|
|
2816
|
-
prompt__action--${
|
|
2828
|
+
prompt__action--${r.variant || "primary"}
|
|
2817
2829
|
`),
|
|
2818
|
-
onClick: (
|
|
2830
|
+
onClick: (p) => r.click ? r.click(r) : t(r)
|
|
2819
2831
|
}, {
|
|
2820
2832
|
default: v(() => [
|
|
2821
|
-
D(
|
|
2833
|
+
D(g(r.title || r.name), 1)
|
|
2822
2834
|
]),
|
|
2823
2835
|
_: 2
|
|
2824
2836
|
}, 1032, ["class", "onClick"]))), 128))
|
|
2825
2837
|
], 4)
|
|
2826
2838
|
]),
|
|
2827
2839
|
default: v(() => [
|
|
2828
|
-
|
|
2829
|
-
A(
|
|
2840
|
+
k("div", Na, [
|
|
2841
|
+
A(a.$slots, "default", {}, void 0, !0)
|
|
2830
2842
|
])
|
|
2831
2843
|
]),
|
|
2832
2844
|
_: 2
|
|
2833
2845
|
}, [
|
|
2834
|
-
|
|
2846
|
+
a.title ? {
|
|
2835
2847
|
name: "title",
|
|
2836
2848
|
fn: v(() => [
|
|
2837
|
-
D(
|
|
2849
|
+
D(g(a.title), 1)
|
|
2838
2850
|
]),
|
|
2839
2851
|
key: "0"
|
|
2840
2852
|
} : void 0
|
|
@@ -2850,24 +2862,24 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2850
2862
|
icon: {}
|
|
2851
2863
|
},
|
|
2852
2864
|
setup(c) {
|
|
2853
|
-
const
|
|
2854
|
-
return (t,
|
|
2865
|
+
const i = ue("meta");
|
|
2866
|
+
return (t, a) => {
|
|
2855
2867
|
const l = ne("clickable");
|
|
2856
|
-
return Z((
|
|
2868
|
+
return Z((o(), s("div", {
|
|
2857
2869
|
class: Q({
|
|
2858
2870
|
toast: !0,
|
|
2859
|
-
"toast--animate": e(
|
|
2871
|
+
"toast--animate": e(i).toasts[0].itr === t.itr
|
|
2860
2872
|
}),
|
|
2861
|
-
onAnimationend:
|
|
2862
|
-
onClick:
|
|
2873
|
+
onAnimationend: a[0] || (a[0] = (r) => e(i).$actions.popToast()),
|
|
2874
|
+
onClick: a[1] || (a[1] = (r) => e(i).$actions.popToast(t.itr))
|
|
2863
2875
|
}, [
|
|
2864
2876
|
z(K, E(
|
|
2865
2877
|
t.icon ? { icon: t.icon } : { icon: "warning-circle" },
|
|
2866
2878
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
2867
2879
|
), null, 16),
|
|
2868
|
-
|
|
2880
|
+
k("div", tl, [
|
|
2869
2881
|
A(t.$slots, "default", {}, void 0, !0),
|
|
2870
|
-
|
|
2882
|
+
k("div", nl, g(t.formatDateTime(t.date, { hoursOnly: !0 })), 1)
|
|
2871
2883
|
])
|
|
2872
2884
|
], 34)), [
|
|
2873
2885
|
[l]
|
|
@@ -2878,10 +2890,10 @@ const el = /* @__PURE__ */ G(xa, [["__scopeId", "data-v-5443f297"]]), tl = { cla
|
|
|
2878
2890
|
const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["innerHTML"], sl = { class: "main__toasts" }, il = ["innerHTML"], rl = /* @__PURE__ */ q({
|
|
2879
2891
|
__name: "aeria-main",
|
|
2880
2892
|
setup(c) {
|
|
2881
|
-
const
|
|
2882
|
-
return (
|
|
2883
|
-
const
|
|
2884
|
-
return
|
|
2893
|
+
const i = ue("meta"), t = H(() => i.themeOverride || i.theme);
|
|
2894
|
+
return (a, l) => {
|
|
2895
|
+
const r = Ot("router-view");
|
|
2896
|
+
return o(), s("main", {
|
|
2885
2897
|
id: "main",
|
|
2886
2898
|
class: Q(`
|
|
2887
2899
|
main
|
|
@@ -2889,15 +2901,15 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2889
2901
|
${t.value === "dark" && "tw-dark"}
|
|
2890
2902
|
`)
|
|
2891
2903
|
}, [
|
|
2892
|
-
(
|
|
2904
|
+
(o(), $(wt, null, {
|
|
2893
2905
|
default: v(() => [
|
|
2894
|
-
z(
|
|
2906
|
+
z(r, null, {
|
|
2895
2907
|
default: v(({ Component: u }) => [
|
|
2896
|
-
(
|
|
2897
|
-
U(Object.keys(
|
|
2898
|
-
name:
|
|
2908
|
+
(o(), $(he(u), null, de({ _: 2 }, [
|
|
2909
|
+
U(Object.keys(a.$slots), (p) => ({
|
|
2910
|
+
name: p,
|
|
2899
2911
|
fn: v(() => [
|
|
2900
|
-
A(
|
|
2912
|
+
A(a.$slots, p, {}, void 0, !0)
|
|
2901
2913
|
])
|
|
2902
2914
|
}))
|
|
2903
2915
|
]), 1024))
|
|
@@ -2907,38 +2919,38 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2907
2919
|
]),
|
|
2908
2920
|
_: 3
|
|
2909
2921
|
})),
|
|
2910
|
-
A(
|
|
2922
|
+
A(a.$slots, "default", {}, void 0, !0),
|
|
2911
2923
|
z(Ae, E({
|
|
2912
|
-
modelValue: e(
|
|
2913
|
-
"onUpdate:modelValue": l[0] || (l[0] = (u) => e(
|
|
2924
|
+
modelValue: e(i).modal.visible,
|
|
2925
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => e(i).modal.visible = u),
|
|
2914
2926
|
float: "",
|
|
2915
2927
|
"close-hint": ""
|
|
2916
|
-
}, e(
|
|
2928
|
+
}, e(i).modal, {
|
|
2917
2929
|
"overlay-layer": 70,
|
|
2918
|
-
onOverlayClick: l[1] || (l[1] = (u) => e(
|
|
2930
|
+
onOverlayClick: l[1] || (l[1] = (u) => e(i).modal.visible = !1)
|
|
2919
2931
|
}), {
|
|
2920
2932
|
default: v(() => [
|
|
2921
|
-
e(
|
|
2933
|
+
e(i).modal.body ? (o(), s("div", {
|
|
2922
2934
|
key: 0,
|
|
2923
2935
|
style: { "white-space": "pre-wrap" },
|
|
2924
|
-
innerHTML: e(
|
|
2936
|
+
innerHTML: e(i).modal.body
|
|
2925
2937
|
}, null, 8, ll)) : y("", !0),
|
|
2926
|
-
e(
|
|
2938
|
+
e(i).modal.component ? (o(), $(he(e(i).modal.component), { key: 1 })) : y("", !0)
|
|
2927
2939
|
]),
|
|
2928
2940
|
_: 1
|
|
2929
2941
|
}, 16, ["modelValue"]),
|
|
2930
|
-
e(
|
|
2942
|
+
e(i).prompt.visible ? (o(), $(el, ce(E({ key: 0 }, e(i).prompt)), {
|
|
2931
2943
|
default: v(() => [
|
|
2932
|
-
D(
|
|
2944
|
+
D(g(e(i).prompt.body), 1)
|
|
2933
2945
|
]),
|
|
2934
2946
|
_: 1
|
|
2935
2947
|
}, 16)) : y("", !0),
|
|
2936
|
-
|
|
2937
|
-
(
|
|
2948
|
+
k("div", sl, [
|
|
2949
|
+
(o(!0), s(J, null, U(e(i).toasts, (u) => (o(), $(al, E({ ref_for: !0 }, u, {
|
|
2938
2950
|
key: `toast-${u.itr}`
|
|
2939
2951
|
}), {
|
|
2940
2952
|
default: v(() => [
|
|
2941
|
-
|
|
2953
|
+
k("div", {
|
|
2942
2954
|
innerHTML: e(F)(u.text)
|
|
2943
2955
|
}, null, 8, il)
|
|
2944
2956
|
]),
|
|
@@ -2949,11 +2961,11 @@ const al = /* @__PURE__ */ G(ol, [["__scopeId", "data-v-54736bc3"]]), ll = ["inn
|
|
|
2949
2961
|
};
|
|
2950
2962
|
}
|
|
2951
2963
|
});
|
|
2952
|
-
const
|
|
2964
|
+
const Ll = /* @__PURE__ */ G(rl, [["__scopeId", "data-v-1166be3d"]]);
|
|
2953
2965
|
const ul = {}, cl = { class: "menu" };
|
|
2954
|
-
function dl(c,
|
|
2955
|
-
return
|
|
2956
|
-
(
|
|
2966
|
+
function dl(c, i) {
|
|
2967
|
+
return o(), s("menu", cl, [
|
|
2968
|
+
(o(!0), s(J, null, U(Object.keys(c.$slots), (t) => (o(), s("div", {
|
|
2957
2969
|
key: t,
|
|
2958
2970
|
class: "menu__entry"
|
|
2959
2971
|
}, [
|
|
@@ -2978,68 +2990,68 @@ const zl = /* @__PURE__ */ G(ul, [["render", dl], ["__scopeId", "data-v-3cfef7fb
|
|
|
2978
2990
|
dropdown: { type: Boolean }
|
|
2979
2991
|
},
|
|
2980
2992
|
setup(c) {
|
|
2981
|
-
const
|
|
2982
|
-
const
|
|
2983
|
-
return
|
|
2984
|
-
}),
|
|
2985
|
-
if (
|
|
2986
|
-
|
|
2993
|
+
const i = c, t = Bt(), a = Re(), l = je(), r = "query" in i && i.query ? "query" : "params", u = H(() => {
|
|
2994
|
+
const d = a.currentRoute.value[r][i.query || i.param];
|
|
2995
|
+
return d || Object.keys(t)[0];
|
|
2996
|
+
}), p = (d) => {
|
|
2997
|
+
if (r === "query") {
|
|
2998
|
+
a.push({
|
|
2987
2999
|
query: {
|
|
2988
|
-
...
|
|
2989
|
-
[
|
|
3000
|
+
...a.currentRoute.value.query,
|
|
3001
|
+
[i.query]: d
|
|
2990
3002
|
}
|
|
2991
3003
|
});
|
|
2992
3004
|
return;
|
|
2993
3005
|
}
|
|
2994
|
-
|
|
3006
|
+
a.push({
|
|
2995
3007
|
params: {
|
|
2996
|
-
[
|
|
3008
|
+
[i.param]: d
|
|
2997
3009
|
}
|
|
2998
3010
|
});
|
|
2999
3011
|
};
|
|
3000
|
-
return (
|
|
3001
|
-
const
|
|
3002
|
-
return
|
|
3003
|
-
e(l).md && !
|
|
3004
|
-
|
|
3005
|
-
A(
|
|
3012
|
+
return (d, h) => {
|
|
3013
|
+
const _ = ne("clickable");
|
|
3014
|
+
return o(), s("div", pl, [
|
|
3015
|
+
e(l).md && !d.dropdown ? (o(), s("div", _l, [
|
|
3016
|
+
d.$slots.default ? (o(), s("div", ml, [
|
|
3017
|
+
A(d.$slots, "default", {}, void 0, !0)
|
|
3006
3018
|
])) : y("", !0),
|
|
3007
|
-
(
|
|
3008
|
-
key:
|
|
3019
|
+
(o(!0), s(J, null, U(Object.keys(d.$slots).filter((n) => n !== "default"), (n, f) => (o(), s("div", {
|
|
3020
|
+
key: n,
|
|
3009
3021
|
class: Q({
|
|
3010
3022
|
tabs__tab: !0,
|
|
3011
|
-
"tabs__tab--current":
|
|
3023
|
+
"tabs__tab--current": n === u.value || !u.value && f === 0
|
|
3012
3024
|
}),
|
|
3013
|
-
onClick: (
|
|
3025
|
+
onClick: (V) => p(n)
|
|
3014
3026
|
}, [
|
|
3015
|
-
A(
|
|
3027
|
+
A(d.$slots, n, {}, void 0, !0)
|
|
3016
3028
|
], 10, fl))), 128))
|
|
3017
|
-
])) : (
|
|
3029
|
+
])) : (o(), s("div", vl, [
|
|
3018
3030
|
z(Ce, null, de({
|
|
3019
3031
|
default: v(() => [
|
|
3020
|
-
Z((
|
|
3032
|
+
Z((o(), $(K, {
|
|
3021
3033
|
"icon-right": "",
|
|
3022
3034
|
icon: "caret-down",
|
|
3023
3035
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
3024
3036
|
class: "tabs__context-menu-icon"
|
|
3025
3037
|
}, {
|
|
3026
3038
|
default: v(() => [
|
|
3027
|
-
A(
|
|
3039
|
+
A(d.$slots, u.value, {}, void 0, !0)
|
|
3028
3040
|
]),
|
|
3029
3041
|
_: 3
|
|
3030
3042
|
})), [
|
|
3031
|
-
[
|
|
3043
|
+
[_]
|
|
3032
3044
|
])
|
|
3033
3045
|
]),
|
|
3034
3046
|
_: 2
|
|
3035
3047
|
}, [
|
|
3036
|
-
U(Object.keys(
|
|
3037
|
-
name:
|
|
3048
|
+
U(Object.keys(d.$slots).filter((n) => n !== "default"), (n) => ({
|
|
3049
|
+
name: n,
|
|
3038
3050
|
fn: v(() => [
|
|
3039
|
-
|
|
3040
|
-
onClick: (
|
|
3051
|
+
k("div", {
|
|
3052
|
+
onClick: (f) => p(n)
|
|
3041
3053
|
}, [
|
|
3042
|
-
A(
|
|
3054
|
+
A(d.$slots, n, {}, void 0, !0)
|
|
3043
3055
|
], 8, yl)
|
|
3044
3056
|
])
|
|
3045
3057
|
}))
|
|
@@ -3055,10 +3067,10 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3055
3067
|
promise: Promise
|
|
3056
3068
|
},
|
|
3057
3069
|
setup(c) {
|
|
3058
|
-
const
|
|
3070
|
+
const i = Y(c.initialValue);
|
|
3059
3071
|
return c.promise instanceof Promise && c.promise.then((t) => {
|
|
3060
|
-
|
|
3061
|
-
}), () => St("div",
|
|
3072
|
+
i.value = t;
|
|
3073
|
+
}), () => St("div", i.value);
|
|
3062
3074
|
}
|
|
3063
3075
|
}), gl = ["onClick"], kl = { key: 1 }, Vl = /* @__PURE__ */ q({
|
|
3064
3076
|
__name: "aeria-crud-topbar",
|
|
@@ -3066,40 +3078,40 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3066
3078
|
collection: {}
|
|
3067
3079
|
},
|
|
3068
3080
|
setup(c) {
|
|
3069
|
-
const
|
|
3081
|
+
const i = c, a = Re().currentRoute, l = H(() => {
|
|
3070
3082
|
try {
|
|
3071
|
-
const
|
|
3072
|
-
return ge(
|
|
3083
|
+
const r = i.collection ? i.collection : a.value.meta.collection || a.value.params.collection;
|
|
3084
|
+
return ge(r);
|
|
3073
3085
|
} catch {
|
|
3074
3086
|
return null;
|
|
3075
3087
|
}
|
|
3076
3088
|
});
|
|
3077
|
-
return (
|
|
3089
|
+
return (r, u) => l.value && l.value.description.filtersPresets ? (o(), $($l, {
|
|
3078
3090
|
key: 0,
|
|
3079
3091
|
dropdown: "",
|
|
3080
3092
|
query: "section"
|
|
3081
3093
|
}, de({ _: 2 }, [
|
|
3082
|
-
U(Object.entries(l.value.description.filtersPresets), ([
|
|
3083
|
-
name:
|
|
3094
|
+
U(Object.entries(l.value.description.filtersPresets), ([p, d]) => ({
|
|
3095
|
+
name: p,
|
|
3084
3096
|
fn: v(() => [
|
|
3085
|
-
|
|
3097
|
+
k("div", {
|
|
3086
3098
|
class: "topbar__preset",
|
|
3087
|
-
onClick: (h) => e(
|
|
3099
|
+
onClick: (h) => e(kt)(d, l.value)
|
|
3088
3100
|
}, [
|
|
3089
|
-
|
|
3101
|
+
d.icon ? (o(), $(K, {
|
|
3090
3102
|
key: 0,
|
|
3091
|
-
icon:
|
|
3103
|
+
icon: d.icon
|
|
3092
3104
|
}, {
|
|
3093
3105
|
default: v(() => [
|
|
3094
|
-
D(
|
|
3106
|
+
D(g(d.label || e(F)(p, { plural: !0 })), 1)
|
|
3095
3107
|
]),
|
|
3096
3108
|
_: 2
|
|
3097
|
-
}, 1032, ["icon"])) : (
|
|
3098
|
-
|
|
3109
|
+
}, 1032, ["icon"])) : (o(), s("div", kl, g(d.label || e(F)(p, { plural: !0 })), 1)),
|
|
3110
|
+
d.badgeFunction ? (o(), $(be, { key: 2 }, {
|
|
3099
3111
|
default: v(() => [
|
|
3100
3112
|
z(e(bl), {
|
|
3101
3113
|
"initial-value": "0",
|
|
3102
|
-
promise: l.value.$functions[
|
|
3114
|
+
promise: l.value.$functions[d.badgeFunction]({ filters: d.filters })
|
|
3103
3115
|
}, null, 8, ["promise"])
|
|
3104
3116
|
]),
|
|
3105
3117
|
_: 2
|
|
@@ -3110,7 +3122,7 @@ const $l = /* @__PURE__ */ G(hl, [["__scopeId", "data-v-4dd516ec"]]), bl = q({
|
|
|
3110
3122
|
]), 1024)) : y("", !0);
|
|
3111
3123
|
}
|
|
3112
3124
|
});
|
|
3113
|
-
const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-
|
|
3125
|
+
const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-326eee9d"]]), Il = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3114
3126
|
__proto__: null,
|
|
3115
3127
|
default: Cl
|
|
3116
3128
|
}, Symbol.toStringTag, { value: "Module" })), Ml = /* @__PURE__ */ q({
|
|
@@ -3120,13 +3132,13 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3120
3132
|
},
|
|
3121
3133
|
emits: ["update:modelValue"],
|
|
3122
3134
|
setup(c) {
|
|
3123
|
-
const
|
|
3135
|
+
const i = c;
|
|
3124
3136
|
ye(Ue, null);
|
|
3125
|
-
const t = Et(),
|
|
3126
|
-
|
|
3127
|
-
|
|
3137
|
+
const t = Et(), a = H(() => t(
|
|
3138
|
+
i.modelValue.password,
|
|
3139
|
+
i.modelValue.confirmation
|
|
3128
3140
|
));
|
|
3129
|
-
return (l,
|
|
3141
|
+
return (l, r) => (o(), $(He, {
|
|
3130
3142
|
form: {
|
|
3131
3143
|
password: {
|
|
3132
3144
|
type: "string",
|
|
@@ -3140,20 +3152,20 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3140
3152
|
}
|
|
3141
3153
|
},
|
|
3142
3154
|
"model-value": l.modelValue,
|
|
3143
|
-
"onUpdate:modelValue":
|
|
3155
|
+
"onUpdate:modelValue": r[0] || (r[0] = (u) => l.$emit("update:modelValue", u))
|
|
3144
3156
|
}, {
|
|
3145
3157
|
after: v(() => [
|
|
3146
|
-
|
|
3147
|
-
A(l.$slots, "default", ce(Ve({ passwordError:
|
|
3158
|
+
k("div", null, g(a.value || "Senhas conferem"), 1),
|
|
3159
|
+
A(l.$slots, "default", ce(Ve({ passwordError: a.value })))
|
|
3148
3160
|
]),
|
|
3149
3161
|
_: 3
|
|
3150
3162
|
}, 8, ["model-value"]));
|
|
3151
3163
|
}
|
|
3152
|
-
}), Fl = (c,
|
|
3164
|
+
}), Fl = (c, i = []) => ({
|
|
3153
3165
|
path: "/user",
|
|
3154
3166
|
name: "/builtin:user",
|
|
3155
3167
|
component: c,
|
|
3156
|
-
children:
|
|
3168
|
+
children: i.concat([
|
|
3157
3169
|
{
|
|
3158
3170
|
path: "invite/:id",
|
|
3159
3171
|
name: "/user/invite/:id",
|
|
@@ -3167,7 +3179,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3167
3179
|
{
|
|
3168
3180
|
path: "signin",
|
|
3169
3181
|
name: "/user/signin",
|
|
3170
|
-
component: () => import("./signin-
|
|
3182
|
+
component: () => import("./signin-98b7bf3a.js"),
|
|
3171
3183
|
meta: {
|
|
3172
3184
|
title: "Autenticação"
|
|
3173
3185
|
}
|
|
@@ -3175,7 +3187,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3175
3187
|
{
|
|
3176
3188
|
path: "signup",
|
|
3177
3189
|
name: "/user/signup",
|
|
3178
|
-
component: () => import("./signup-
|
|
3190
|
+
component: () => import("./signup-a12b576e.js"),
|
|
3179
3191
|
meta: {
|
|
3180
3192
|
title: "Registro"
|
|
3181
3193
|
}
|
|
@@ -3183,13 +3195,13 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3183
3195
|
{
|
|
3184
3196
|
path: "activation",
|
|
3185
3197
|
name: "/user/activation",
|
|
3186
|
-
component: () => import("./activation-
|
|
3198
|
+
component: () => import("./activation-48da470d.js"),
|
|
3187
3199
|
meta: {
|
|
3188
3200
|
title: "Ativação"
|
|
3189
3201
|
}
|
|
3190
3202
|
}
|
|
3191
3203
|
])
|
|
3192
|
-
}), ql = (c,
|
|
3204
|
+
}), ql = (c, i = []) => ({
|
|
3193
3205
|
path: "/dashboard",
|
|
3194
3206
|
name: "/builtin:dashboard",
|
|
3195
3207
|
component: c,
|
|
@@ -3199,13 +3211,13 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3199
3211
|
meta: {
|
|
3200
3212
|
title: "Dashboard"
|
|
3201
3213
|
},
|
|
3202
|
-
children:
|
|
3214
|
+
children: i.concat([
|
|
3203
3215
|
{
|
|
3204
3216
|
path: "c/:collection?",
|
|
3205
3217
|
name: "/dashboard/crud",
|
|
3206
3218
|
props: !0,
|
|
3207
3219
|
components: {
|
|
3208
|
-
default: () => import("./crud-view-
|
|
3220
|
+
default: () => import("./crud-view-63769c42.js"),
|
|
3209
3221
|
topbar: () => Promise.resolve().then(() => Il)
|
|
3210
3222
|
},
|
|
3211
3223
|
meta: {
|
|
@@ -3223,7 +3235,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3223
3235
|
children: [
|
|
3224
3236
|
{
|
|
3225
3237
|
path: "profile",
|
|
3226
|
-
component: () => import("./profile-
|
|
3238
|
+
component: () => import("./profile-090ce0f0.js"),
|
|
3227
3239
|
meta: {
|
|
3228
3240
|
title: "Meu perfil",
|
|
3229
3241
|
icon: "user-square"
|
|
@@ -3232,7 +3244,7 @@ const Cl = /* @__PURE__ */ G(Vl, [["__scopeId", "data-v-57d3d562"]]), Il = /* @_
|
|
|
3232
3244
|
{
|
|
3233
3245
|
path: "changepass",
|
|
3234
3246
|
name: "/dashboard/user/changepass",
|
|
3235
|
-
component: () => import("./password-change-
|
|
3247
|
+
component: () => import("./password-change-ab424d59.js"),
|
|
3236
3248
|
meta: {
|
|
3237
3249
|
title: "Mudar senha",
|
|
3238
3250
|
icon: "lock"
|
|
@@ -3253,7 +3265,7 @@ export {
|
|
|
3253
3265
|
ie as a,
|
|
3254
3266
|
K as b,
|
|
3255
3267
|
Qn as c,
|
|
3256
|
-
|
|
3268
|
+
Rl as d,
|
|
3257
3269
|
Me as e,
|
|
3258
3270
|
zl as f,
|
|
3259
3271
|
Ae as g,
|
|
@@ -3265,7 +3277,7 @@ export {
|
|
|
3265
3277
|
Ce as m,
|
|
3266
3278
|
qa as n,
|
|
3267
3279
|
$n as o,
|
|
3268
|
-
|
|
3280
|
+
Ll as p,
|
|
3269
3281
|
Mn as q,
|
|
3270
3282
|
za as r,
|
|
3271
3283
|
$l as s,
|