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