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