@aeria-ui/ui 0.0.93 → 0.0.94
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/{_id_-3933cd2c.js → _id_-a8ae712c.js} +1 -1
- package/dist/{activation-f7b703c9.js → activation-6cf8f626.js} +1 -1
- package/dist/components/aeria-crud/_internals/store.d.ts +1 -1
- package/dist/components/aeria-crud/aeria-crud.vue.d.ts +1 -1
- package/dist/components/aeria-table/aeria-table.vue.d.ts +6 -6
- package/dist/components/dashboard/aeria-password-form/aeria-password-form.vue.d.ts +3 -3
- package/dist/components/form/aeria-checkbox/aeria-checkbox.vue.d.ts +2 -2
- package/dist/components/form/aeria-file/aeria-file.vue.d.ts +3 -3
- package/dist/components/form/aeria-form/_internals/helpers.d.ts +3 -3
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +4 -4
- package/dist/components/form/aeria-search/_internals/components/aeria-search-item/aeria-search-item.vue.d.ts +7 -6
- package/dist/{index-834aa033.js → index-1e076d31.js} +42 -42
- package/dist/{index-64c42dec.js → index-45a3b598.js} +1 -1
- package/dist/{index-8de82e26.js → index-7832f3b8.js} +1 -1
- package/dist/{index-38b20f7b.js → index-a0c7fa8e.js} +630 -625
- package/dist/{signin-684a2b37.js → signin-e3038c7b.js} +1 -1
- package/dist/{signup-509c4eeb.js → signup-4beb1e83.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as U, ref as J, resolveDirective as te, openBlock as n, createElementBlock as s, normalizeClass as X, Fragment as x, renderList as G, withDirectives as P, toDisplayString as C, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as D, createElementVNode as A, mergeProps as E, createBlock as k, withCtx as v, resolveDynamicComponent as he, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Ke, onMounted as Xe, watch as ue, createVNode as z, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as be, pushScopeId as Ye, popScopeId as Je, provide as ye, createSlots as ce, vModelCheckbox as Bt, onUnmounted as wt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
|
|
2
2
|
import { t as R, useI18n as Lt } from "@aeria-ui/i18n";
|
|
3
3
|
import { arraysIntersect as gt, deepClone as Ce, getReferenceProperty as me, convertConditionToQuery as zt, freshItem as qt, isRequired as Mt, evaluateCondition as We, deepMerge as qe } from "@aeriajs/common";
|
|
4
|
-
import { useStore as
|
|
5
|
-
import { useScrollObserver as Pe, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
const
|
|
4
|
+
import { useStore as re, getStoreId as Me, useParentStore as He, STORE_ID as Fe, getGlobalStateManager as Ze } from "@aeria-ui/state-management";
|
|
5
|
+
import { useScrollObserver as Pe, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as Dt, getObjectKey as Ht, convertToSearchQuery as Qt, useParentCollectionStore as Le, useCollectionStore as Gt, useAction as Wt, convertFromSearchQuery as Kt, usePasswordPolicy as Xt } from "@aeria-ui/core";
|
|
6
|
+
import { useRouter as Ie } from "vue-router";
|
|
7
|
+
const Yt = ["onClick"], Jt = { key: 0 }, Zt = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "accordion__content"
|
|
10
|
-
},
|
|
10
|
+
}, Pt = /* @__PURE__ */ U({
|
|
11
11
|
__name: "aeria-accordion",
|
|
12
12
|
props: {
|
|
13
13
|
enumerate: { type: Boolean },
|
|
@@ -15,7 +15,7 @@ const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
|
|
|
15
15
|
headers: {}
|
|
16
16
|
},
|
|
17
17
|
setup(c) {
|
|
18
|
-
const r =
|
|
18
|
+
const r = J(null), l = (t) => typeof t == "string" ? t : t.title;
|
|
19
19
|
return (t, o) => {
|
|
20
20
|
const u = te("clickable");
|
|
21
21
|
return n(), s("div", {
|
|
@@ -24,20 +24,20 @@ const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
|
|
|
24
24
|
"accordion--padded": !t.noPadding
|
|
25
25
|
})
|
|
26
26
|
}, [
|
|
27
|
-
(n(!0), s(
|
|
27
|
+
(n(!0), s(x, null, G(Object.keys(t.$slots).filter((i) => i !== "default"), (i, _) => (n(), s("div", {
|
|
28
28
|
key: i,
|
|
29
29
|
class: "accordion__slot"
|
|
30
30
|
}, [
|
|
31
|
-
|
|
31
|
+
P((n(), s("div", {
|
|
32
32
|
class: "accordion__header",
|
|
33
33
|
onClick: (p) => r.value === i ? r.value = null : r.value = i
|
|
34
34
|
}, [
|
|
35
|
-
t.enumerate ? (n(), s("span",
|
|
36
|
-
Q(" " +
|
|
37
|
-
], 8,
|
|
35
|
+
t.enumerate ? (n(), s("span", Jt, C(_ + 1) + ". ", 1)) : y("", !0),
|
|
36
|
+
Q(" " + C(t.headers[i] ? l(t.headers[i]) : e(R)(i)), 1)
|
|
37
|
+
], 8, Yt)), [
|
|
38
38
|
[u]
|
|
39
39
|
]),
|
|
40
|
-
r.value === i ? (n(), s("div",
|
|
40
|
+
r.value === i ? (n(), s("div", Zt, [
|
|
41
41
|
O(t.$slots, i, {}, void 0, !0)
|
|
42
42
|
])) : y("", !0)
|
|
43
43
|
]))), 128))
|
|
@@ -50,7 +50,7 @@ const W = (c, r) => {
|
|
|
50
50
|
for (const [t, o] of r)
|
|
51
51
|
l[t] = o;
|
|
52
52
|
return l;
|
|
53
|
-
},
|
|
53
|
+
}, zl = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-3ea933d4"]]), Nt = /* @__PURE__ */ U({
|
|
54
54
|
__name: "aeria-badge",
|
|
55
55
|
props: {
|
|
56
56
|
large: { type: Boolean },
|
|
@@ -68,7 +68,7 @@ const W = (c, r) => {
|
|
|
68
68
|
], 2));
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
-
const $e = /* @__PURE__ */ W(
|
|
71
|
+
const $e = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-47f92648"]]), xt = /* @__PURE__ */ U({
|
|
72
72
|
__name: "aeria-bare-button",
|
|
73
73
|
props: {
|
|
74
74
|
disabled: { type: Boolean }
|
|
@@ -89,10 +89,10 @@ const $e = /* @__PURE__ */ W(Pt, [["__scopeId", "data-v-47f92648"]]), Nt = /* @_
|
|
|
89
89
|
], 2));
|
|
90
90
|
}
|
|
91
91
|
});
|
|
92
|
-
const ve = /* @__PURE__ */ W(
|
|
92
|
+
const ve = /* @__PURE__ */ W(xt, [["__scopeId", "data-v-35bc81ae"]]), en = ["href"], tn = {
|
|
93
93
|
key: 0,
|
|
94
94
|
"data-component": "icon-label"
|
|
95
|
-
},
|
|
95
|
+
}, nn = /* @__PURE__ */ U({
|
|
96
96
|
__name: "aeria-icon",
|
|
97
97
|
props: {
|
|
98
98
|
icon: {},
|
|
@@ -104,7 +104,7 @@ const ve = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
|
|
|
104
104
|
active: { type: Boolean }
|
|
105
105
|
},
|
|
106
106
|
setup(c) {
|
|
107
|
-
const r = c, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), t =
|
|
107
|
+
const r = c, l = typeof r.reactive == "boolean" ? r.reactive : _e("iconReactive", !1), t = D(() => {
|
|
108
108
|
var o;
|
|
109
109
|
return (o = r.icon) != null && o.includes(":") ? r.icon : `regular:${r.icon}`;
|
|
110
110
|
});
|
|
@@ -123,7 +123,7 @@ const ve = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
|
|
|
123
123
|
${o.iconRight && "icon__icon--right"}
|
|
124
124
|
`)
|
|
125
125
|
}, [
|
|
126
|
-
(n(), s("svg",
|
|
126
|
+
(n(), s("svg", E({
|
|
127
127
|
width: "24",
|
|
128
128
|
height: "24",
|
|
129
129
|
viewBox: "0 0 256 256",
|
|
@@ -133,19 +133,19 @@ const ve = /* @__PURE__ */ W(Nt, [["__scopeId", "data-v-35bc81ae"]]), xt = ["hre
|
|
|
133
133
|
}), [
|
|
134
134
|
A("use", {
|
|
135
135
|
href: `/assets/icons.svg#${t.value}`
|
|
136
|
-
}, null, 8,
|
|
136
|
+
}, null, 8, en)
|
|
137
137
|
], 16))
|
|
138
138
|
], 2),
|
|
139
|
-
o.$slots.default ? (n(), s("div",
|
|
139
|
+
o.$slots.default ? (n(), s("div", tn, [
|
|
140
140
|
O(o.$slots, "default", {}, void 0, !0)
|
|
141
141
|
])) : y("", !0)
|
|
142
142
|
], 2));
|
|
143
143
|
}
|
|
144
144
|
});
|
|
145
|
-
const
|
|
145
|
+
const Z = /* @__PURE__ */ W(nn, [["__scopeId", "data-v-6d36de33"]]), on = { class: "button__content" }, an = {
|
|
146
146
|
key: 1,
|
|
147
147
|
class: "button__content"
|
|
148
|
-
},
|
|
148
|
+
}, ln = /* @__PURE__ */ U({
|
|
149
149
|
__name: "aeria-button",
|
|
150
150
|
props: {
|
|
151
151
|
size: {},
|
|
@@ -176,17 +176,17 @@ const J = /* @__PURE__ */ W(tn, [["__scopeId", "data-v-6d36de33"]]), nn = { clas
|
|
|
176
176
|
disabled: o.disabled
|
|
177
177
|
}, {
|
|
178
178
|
default: v(() => [
|
|
179
|
-
o.icon ? (n(), k(
|
|
179
|
+
o.icon ? (n(), k(Z, {
|
|
180
180
|
key: 0,
|
|
181
181
|
icon: o.icon
|
|
182
182
|
}, {
|
|
183
183
|
default: v(() => [
|
|
184
|
-
A("div",
|
|
184
|
+
A("div", on, [
|
|
185
185
|
O(o.$slots, "default", {}, void 0, !0)
|
|
186
186
|
])
|
|
187
187
|
]),
|
|
188
188
|
_: 3
|
|
189
|
-
}, 8, ["icon"])) : (n(), s("div",
|
|
189
|
+
}, 8, ["icon"])) : (n(), s("div", an, [
|
|
190
190
|
O(o.$slots, "default", {}, void 0, !0)
|
|
191
191
|
]))
|
|
192
192
|
]),
|
|
@@ -194,7 +194,7 @@ const J = /* @__PURE__ */ W(tn, [["__scopeId", "data-v-6d36de33"]]), nn = { clas
|
|
|
194
194
|
}, 8, ["class", "disabled"]));
|
|
195
195
|
}
|
|
196
196
|
});
|
|
197
|
-
const
|
|
197
|
+
const ie = /* @__PURE__ */ W(ln, [["__scopeId", "data-v-c328251b"]]), sn = { class: "card__picture" }, rn = { class: "card__footer" }, un = { class: "card__footer-upper" }, cn = { class: "card__badge" }, dn = /* @__PURE__ */ U({
|
|
198
198
|
__name: "aeria-card",
|
|
199
199
|
props: {
|
|
200
200
|
inactive: { type: Boolean },
|
|
@@ -208,27 +208,27 @@ const re = /* @__PURE__ */ W(an, [["__scopeId", "data-v-c328251b"]]), ln = { cla
|
|
|
208
208
|
${r.horizontal && "card--horizontal"}
|
|
209
209
|
`)
|
|
210
210
|
}, [
|
|
211
|
-
A("div",
|
|
211
|
+
A("div", sn, [
|
|
212
212
|
O(r.$slots, "default", {}, void 0, !0)
|
|
213
213
|
]),
|
|
214
|
-
A("div",
|
|
215
|
-
A("div",
|
|
214
|
+
A("div", rn, [
|
|
215
|
+
A("div", un, [
|
|
216
216
|
A("div", null, [
|
|
217
217
|
O(r.$slots, "footer", {}, void 0, !0)
|
|
218
218
|
]),
|
|
219
219
|
r.$slots.actions ? O(r.$slots, "actions", { key: 0 }, void 0, !0) : y("", !0)
|
|
220
220
|
]),
|
|
221
|
-
A("div",
|
|
221
|
+
A("div", cn, [
|
|
222
222
|
O(r.$slots, "badge", {}, void 0, !0)
|
|
223
223
|
])
|
|
224
224
|
])
|
|
225
225
|
], 2));
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
|
-
const
|
|
228
|
+
const pn = /* @__PURE__ */ W(dn, [["__scopeId", "data-v-c1a322df"]]), _n = { class: "panel__header-left" }, mn = { key: 1 }, fn = {
|
|
229
229
|
key: 2,
|
|
230
230
|
style: { "margin-left": "auto" }
|
|
231
|
-
},
|
|
231
|
+
}, vn = /* @__PURE__ */ U({
|
|
232
232
|
__name: "aeria-panel",
|
|
233
233
|
props: {
|
|
234
234
|
closeHint: { type: Boolean, default: !1 },
|
|
@@ -252,7 +252,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
252
252
|
},
|
|
253
253
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
254
254
|
setup(c, { emit: r }) {
|
|
255
|
-
const l = c, t = r, o =
|
|
255
|
+
const l = c, t = r, o = D(() => l.floating || l.float), u = J(l.collapsed), i = J(null), { reachedEnd: _ } = Pe(i), p = () => {
|
|
256
256
|
t("update:modelValue", !1), t("close");
|
|
257
257
|
}, b = () => {
|
|
258
258
|
t("overlayClick");
|
|
@@ -261,7 +261,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
261
261
|
};
|
|
262
262
|
return (a, B) => {
|
|
263
263
|
const f = te("clickable"), $ = te("loading"), T = te("overlay");
|
|
264
|
-
return a.modelValue ?
|
|
264
|
+
return a.modelValue ? P((n(), s("div", {
|
|
265
265
|
key: 0,
|
|
266
266
|
class: X(`
|
|
267
267
|
panel
|
|
@@ -282,7 +282,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
282
282
|
${a.transparentMobile && "panel__content--transparent-mobile"}
|
|
283
283
|
${a.outerHeader && "panel__content--outer-header"}
|
|
284
284
|
`),
|
|
285
|
-
onClick: B[2] || (B[2] = (
|
|
285
|
+
onClick: B[2] || (B[2] = (V) => V.stopPropagation())
|
|
286
286
|
}, {
|
|
287
287
|
default: v(() => [
|
|
288
288
|
a.$slots.header || a.title ? (n(), s("div", {
|
|
@@ -293,27 +293,27 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
293
293
|
${a.outerHeader && "panel__header--outer"}
|
|
294
294
|
`)
|
|
295
295
|
}, [
|
|
296
|
-
A("div",
|
|
297
|
-
a.$slots.header ? O(a.$slots, "header", { key: 0 }, void 0, !0) : a.title ? (n(), s("div",
|
|
298
|
-
a.$slots.extra ? (n(), s("div",
|
|
296
|
+
A("div", _n, [
|
|
297
|
+
a.$slots.header ? O(a.$slots, "header", { key: 0 }, void 0, !0) : a.title ? (n(), s("div", mn, C(a.title), 1)) : y("", !0),
|
|
298
|
+
a.$slots.extra ? (n(), s("div", fn, [
|
|
299
299
|
O(a.$slots, "extra", {}, void 0, !0)
|
|
300
300
|
])) : y("", !0)
|
|
301
301
|
]),
|
|
302
|
-
a.collapsible && u.value ?
|
|
302
|
+
a.collapsible && u.value ? P((n(), k(Z, {
|
|
303
303
|
key: 0,
|
|
304
304
|
reactive: "",
|
|
305
305
|
icon: "plus",
|
|
306
|
-
onClick: B[0] || (B[0] = (
|
|
306
|
+
onClick: B[0] || (B[0] = (V) => d(!u.value))
|
|
307
307
|
}, null, 512)), [
|
|
308
308
|
[f]
|
|
309
|
-
]) : a.collapsible && !u.value ?
|
|
309
|
+
]) : a.collapsible && !u.value ? P((n(), k(Z, {
|
|
310
310
|
key: 1,
|
|
311
311
|
reactive: "",
|
|
312
312
|
icon: "minus",
|
|
313
|
-
onClick: B[1] || (B[1] = (
|
|
313
|
+
onClick: B[1] || (B[1] = (V) => d(!u.value))
|
|
314
314
|
}, null, 512)), [
|
|
315
315
|
[f]
|
|
316
|
-
]) : a.closeHint ?
|
|
316
|
+
]) : a.closeHint ? P((n(), k(Z, {
|
|
317
317
|
key: 2,
|
|
318
318
|
reactive: "",
|
|
319
319
|
icon: "x",
|
|
@@ -322,7 +322,7 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
322
322
|
[f]
|
|
323
323
|
]) : y("", !0)
|
|
324
324
|
], 2)) : y("", !0),
|
|
325
|
-
u.value ? y("", !0) :
|
|
325
|
+
u.value ? y("", !0) : P((n(), s("div", {
|
|
326
326
|
key: 1,
|
|
327
327
|
ref_key: "body",
|
|
328
328
|
ref: i,
|
|
@@ -359,10 +359,10 @@ const dn = /* @__PURE__ */ W(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
359
359
|
};
|
|
360
360
|
}
|
|
361
361
|
});
|
|
362
|
-
const
|
|
362
|
+
const Ae = /* @__PURE__ */ W(vn, [["__scopeId", "data-v-73b47cf0"]]), yn = { class: "content__body" }, hn = {
|
|
363
363
|
key: 0,
|
|
364
364
|
class: "content__section"
|
|
365
|
-
},
|
|
365
|
+
}, bn = { class: "content__item" }, $n = /* @__PURE__ */ U({
|
|
366
366
|
__name: "aeria-context-menu",
|
|
367
367
|
props: {
|
|
368
368
|
actions: {},
|
|
@@ -375,9 +375,9 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
375
375
|
"036683e2": _.value.x,
|
|
376
376
|
"036683e0": _.value.y
|
|
377
377
|
}));
|
|
378
|
-
const l = r, t =
|
|
378
|
+
const l = r, t = J(null), o = J(!1), u = (p) => p == null ? void 0 : p.filter((b) => {
|
|
379
379
|
if (b.roles) {
|
|
380
|
-
const d =
|
|
380
|
+
const d = re("user");
|
|
381
381
|
return gt(b.roles, d.currentUser.roles);
|
|
382
382
|
}
|
|
383
383
|
return !0;
|
|
@@ -387,7 +387,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
387
387
|
action: p,
|
|
388
388
|
subject: d
|
|
389
389
|
}), o.value = !1;
|
|
390
|
-
}, _ =
|
|
390
|
+
}, _ = D(() => {
|
|
391
391
|
if (!t.value)
|
|
392
392
|
return {
|
|
393
393
|
x: 0,
|
|
@@ -402,7 +402,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
402
402
|
});
|
|
403
403
|
return (p, b) => {
|
|
404
404
|
const d = te("overlay");
|
|
405
|
-
return n(), s(
|
|
405
|
+
return n(), s(x, null, [
|
|
406
406
|
Object.keys(p.$slots).some((a) => a !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (n(), s("div", {
|
|
407
407
|
key: 0,
|
|
408
408
|
ref_key: "contextmenu",
|
|
@@ -422,7 +422,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
422
422
|
key: 1,
|
|
423
423
|
to: "main"
|
|
424
424
|
}, [
|
|
425
|
-
|
|
425
|
+
P((n(), k(Ae, {
|
|
426
426
|
modelValue: o.value,
|
|
427
427
|
"onUpdate:modelValue": b[4] || (b[4] = (a) => o.value = a),
|
|
428
428
|
fill: "",
|
|
@@ -431,8 +431,8 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
431
431
|
style: { "--panel-min-width": "0" }
|
|
432
432
|
}, {
|
|
433
433
|
default: v(() => [
|
|
434
|
-
A("div",
|
|
435
|
-
p.$slots.header ? (n(), s("div",
|
|
434
|
+
A("div", yn, [
|
|
435
|
+
p.$slots.header ? (n(), s("div", hn, [
|
|
436
436
|
O(p.$slots, "header", {}, void 0, !0)
|
|
437
437
|
])) : y("", !0),
|
|
438
438
|
Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)).length > 0 ? (n(), s("div", {
|
|
@@ -440,7 +440,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
440
440
|
class: "content__section",
|
|
441
441
|
onClick: b[1] || (b[1] = (a) => o.value = !1)
|
|
442
442
|
}, [
|
|
443
|
-
(n(!0), s(
|
|
443
|
+
(n(!0), s(x, null, G(Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)), (a, B) => (n(), k(ve, {
|
|
444
444
|
key: `slot-${B}`,
|
|
445
445
|
class: "content__item content__item--reactive"
|
|
446
446
|
}, {
|
|
@@ -455,18 +455,18 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
455
455
|
class: "content__section",
|
|
456
456
|
onClick: b[2] || (b[2] = (a) => o.value = !1)
|
|
457
457
|
}, [
|
|
458
|
-
(n(!0), s(
|
|
458
|
+
(n(!0), s(x, null, G(u(p.actions), (a, B) => (n(), k(ve, {
|
|
459
459
|
key: `action-${B}`,
|
|
460
460
|
class: "content__item content__item--reactive",
|
|
461
461
|
onClick: (f) => i(a, p.subject)
|
|
462
462
|
}, {
|
|
463
463
|
default: v(() => [
|
|
464
|
-
a.icon ? (n(), k(
|
|
464
|
+
a.icon ? (n(), k(Z, {
|
|
465
465
|
key: 0,
|
|
466
466
|
icon: a.icon
|
|
467
467
|
}, {
|
|
468
468
|
default: v(() => [
|
|
469
|
-
Q(
|
|
469
|
+
Q(C(a.translate ? e(R)(a.label, { capitalize: !0 }) : a.label), 1)
|
|
470
470
|
]),
|
|
471
471
|
_: 2
|
|
472
472
|
}, 1032, ["icon"])) : y("", !0)
|
|
@@ -479,7 +479,7 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
479
479
|
class: "content__section",
|
|
480
480
|
onClick: b[3] || (b[3] = (a) => o.value = !1)
|
|
481
481
|
}, [
|
|
482
|
-
A("div",
|
|
482
|
+
A("div", bn, [
|
|
483
483
|
p.$slots.extra ? O(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
|
|
484
484
|
])
|
|
485
485
|
])) : y("", !0)
|
|
@@ -504,13 +504,13 @@ const Be = /* @__PURE__ */ W(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
|
-
const Oe = /* @__PURE__ */ W(
|
|
507
|
+
const Oe = /* @__PURE__ */ W($n, [["__scopeId", "data-v-a03802b2"]]), gn = { class: "info__content" }, kn = /* @__PURE__ */ U({
|
|
508
508
|
__name: "aeria-info",
|
|
509
509
|
props: {
|
|
510
510
|
where: { default: "top" }
|
|
511
511
|
},
|
|
512
512
|
setup(c) {
|
|
513
|
-
const r = Ue(), l =
|
|
513
|
+
const r = Ue(), l = J(!1);
|
|
514
514
|
return (t, o) => e(r).md ? (n(), s("div", {
|
|
515
515
|
key: 0,
|
|
516
516
|
class: "info",
|
|
@@ -523,7 +523,7 @@ const Oe = /* @__PURE__ */ W(bn, [["__scopeId", "data-v-a03802b2"]]), $n = { cla
|
|
|
523
523
|
info__bubble--${t.where}
|
|
524
524
|
`)
|
|
525
525
|
}, [
|
|
526
|
-
A("div",
|
|
526
|
+
A("div", gn, [
|
|
527
527
|
O(t.$slots, "text", {}, void 0, !0)
|
|
528
528
|
])
|
|
529
529
|
], 2)) : y("", !0),
|
|
@@ -535,16 +535,16 @@ const Oe = /* @__PURE__ */ W(bn, [["__scopeId", "data-v-a03802b2"]]), $n = { cla
|
|
|
535
535
|
], 32)) : O(t.$slots, "default", { key: 1 }, void 0, !0);
|
|
536
536
|
}
|
|
537
537
|
});
|
|
538
|
-
const
|
|
538
|
+
const Vn = /* @__PURE__ */ W(kn, [["__scopeId", "data-v-7e2a5440"]]), Cn = { class: "input" }, On = {
|
|
539
539
|
key: 0,
|
|
540
540
|
class: "input__label"
|
|
541
|
-
},
|
|
541
|
+
}, In = {
|
|
542
542
|
key: 1,
|
|
543
543
|
class: "input__hint"
|
|
544
|
-
},
|
|
544
|
+
}, An = ["placeholder", "readonly", "value"], Bn = ["value"], wn = {
|
|
545
545
|
key: 1,
|
|
546
546
|
class: "input__clipboard"
|
|
547
|
-
},
|
|
547
|
+
}, Sn = /* @__PURE__ */ U({
|
|
548
548
|
__name: "aeria-input",
|
|
549
549
|
props: {
|
|
550
550
|
modelValue: {},
|
|
@@ -582,24 +582,25 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
582
582
|
placeholder: _ ? o.description || l.propertyName : o.placeholder
|
|
583
583
|
});
|
|
584
584
|
"type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (a.min = o.minimum), o.exclusiveMinimum && (a.min = o.exclusiveMinimum + 1), o.maximum && (a.max = o.maximum), o.exclusiveMaximum && (a.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (a.type = !i && o.format === "date-time" ? "datetime-local" : "date"), a.minlength = o.minLength, a.maxlength = o.maxLength)), a.type === "text" && i && (a.type = "search"), Xe(() => {
|
|
585
|
-
l.modelValue !== null &&
|
|
585
|
+
l.modelValue !== null && V(l.modelValue);
|
|
586
586
|
});
|
|
587
587
|
const B = (h) => {
|
|
588
588
|
try {
|
|
589
589
|
if (!(h instanceof Date))
|
|
590
590
|
return h;
|
|
591
|
+
const F = h instanceof Date ? h : new Date(h);
|
|
591
592
|
switch (a.type) {
|
|
592
593
|
case "date":
|
|
593
|
-
return
|
|
594
|
+
return F.toISOString().slice(0, 10);
|
|
594
595
|
case "datetime-local":
|
|
595
|
-
return
|
|
596
|
+
return F.toISOString().slice(0, 19);
|
|
596
597
|
default:
|
|
597
598
|
throw new Error();
|
|
598
599
|
}
|
|
599
600
|
} catch {
|
|
600
601
|
return "";
|
|
601
602
|
}
|
|
602
|
-
}, f =
|
|
603
|
+
}, f = J(""), $ = ((ee = l.property) == null ? void 0 : ee.type) === "string" && l.property.mask ? Ft(l.property.mask) : null;
|
|
603
604
|
ue(() => l.modelValue, (h) => {
|
|
604
605
|
f.value = (() => {
|
|
605
606
|
if ($)
|
|
@@ -623,12 +624,12 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
623
624
|
immediate: !0
|
|
624
625
|
});
|
|
625
626
|
const T = (h) => {
|
|
626
|
-
var
|
|
627
|
-
return typeof f.value == "string" && ((
|
|
627
|
+
var F;
|
|
628
|
+
return typeof f.value == "string" && ((F = l.property) == null ? void 0 : F.type) === "string" && $ !== null ? (f.value = $.enmask(f.value, void 0, {
|
|
628
629
|
defaultValue: !0
|
|
629
630
|
}), l.property.maskedValue === !0 ? f.value : $.unmask(f.value)) : h;
|
|
630
|
-
},
|
|
631
|
-
const
|
|
631
|
+
}, V = (h) => {
|
|
632
|
+
const F = (() => {
|
|
632
633
|
if (!h || typeof h != "string")
|
|
633
634
|
return h;
|
|
634
635
|
switch (a.type) {
|
|
@@ -642,18 +643,18 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
642
643
|
return T(h);
|
|
643
644
|
}
|
|
644
645
|
})();
|
|
645
|
-
t("input",
|
|
646
|
-
},
|
|
647
|
-
const
|
|
648
|
-
f.value =
|
|
646
|
+
t("input", F), t("update:modelValue", F);
|
|
647
|
+
}, Y = (h) => {
|
|
648
|
+
const F = h.target.value;
|
|
649
|
+
f.value = F, V(F);
|
|
649
650
|
};
|
|
650
|
-
return (h,
|
|
651
|
+
return (h, F) => {
|
|
651
652
|
const le = te("focus"), S = te("clickable");
|
|
652
|
-
return n(), s("label",
|
|
653
|
-
e(_) ? y("", !0) : (n(), s("div",
|
|
653
|
+
return n(), s("label", Cn, [
|
|
654
|
+
e(_) ? y("", !0) : (n(), s("div", On, [
|
|
654
655
|
h.$slots.default ? O(h.$slots, "default", { key: 0 }, void 0, !0) : O(h.$slots, "description", { key: 1 }, void 0, !0)
|
|
655
656
|
])),
|
|
656
|
-
h.$slots.hint ? (n(), s("div",
|
|
657
|
+
h.$slots.hint ? (n(), s("div", In, [
|
|
657
658
|
O(h.$slots, "hint", {}, void 0, !0)
|
|
658
659
|
])) : y("", !0),
|
|
659
660
|
"element" in e(o) && e(o).element === "textarea" ? (n(), s("div", {
|
|
@@ -664,7 +665,7 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
664
665
|
input__container--${e(d)}
|
|
665
666
|
`)
|
|
666
667
|
}, [
|
|
667
|
-
|
|
668
|
+
P(A("textarea", {
|
|
668
669
|
placeholder: e(a).placeholder,
|
|
669
670
|
readonly: e(a).readonly,
|
|
670
671
|
value: h.modelValue,
|
|
@@ -672,8 +673,8 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
672
673
|
input__textarea
|
|
673
674
|
input__input--${e(d)}
|
|
674
675
|
`),
|
|
675
|
-
onInput:
|
|
676
|
-
}, null, 42,
|
|
676
|
+
onInput: Y
|
|
677
|
+
}, null, 42, An), [
|
|
677
678
|
[le, e(o).focus]
|
|
678
679
|
])
|
|
679
680
|
], 2)) : (n(), s("div", {
|
|
@@ -683,7 +684,7 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
683
684
|
input__container--${e(d)}
|
|
684
685
|
`)
|
|
685
686
|
}, [
|
|
686
|
-
|
|
687
|
+
P(A("input", E(e(a), {
|
|
687
688
|
value: f.value,
|
|
688
689
|
"data-component": "input",
|
|
689
690
|
class: `
|
|
@@ -692,12 +693,12 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
692
693
|
${e(u) && "input__input--icon"}
|
|
693
694
|
${e(p) && "input__input--readOnly"}
|
|
694
695
|
`,
|
|
695
|
-
onInput:
|
|
696
|
-
onChange:
|
|
697
|
-
}), null, 16,
|
|
696
|
+
onInput: Y,
|
|
697
|
+
onChange: F[0] || (F[0] = (g) => t("change", g))
|
|
698
|
+
}), null, 16, Bn), [
|
|
698
699
|
[le, e(o).focus]
|
|
699
700
|
]),
|
|
700
|
-
e(u) ? (n(), k(
|
|
701
|
+
e(u) ? (n(), k(Z, {
|
|
701
702
|
key: 0,
|
|
702
703
|
icon: e(o).icon || "magnifying-glass",
|
|
703
704
|
class: X(`
|
|
@@ -705,16 +706,16 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
705
706
|
input__icon--${e(d)}
|
|
706
707
|
`)
|
|
707
708
|
}, null, 8, ["icon", "class"])) : y("", !0),
|
|
708
|
-
e(p) ? (n(), s("div",
|
|
709
|
-
z(
|
|
709
|
+
e(p) ? (n(), s("div", wn, [
|
|
710
|
+
z(Vn, null, {
|
|
710
711
|
text: v(() => [
|
|
711
712
|
Q("Copiar")
|
|
712
713
|
]),
|
|
713
714
|
default: v(() => [
|
|
714
|
-
|
|
715
|
+
P(z(Z, {
|
|
715
716
|
reactive: "",
|
|
716
717
|
icon: "clipboard",
|
|
717
|
-
onClick:
|
|
718
|
+
onClick: F[1] || (F[1] = ze((g) => b(String(h.modelValue || "")), ["prevent"]))
|
|
718
719
|
}, null, 512), [
|
|
719
720
|
[S]
|
|
720
721
|
])
|
|
@@ -727,10 +728,10 @@ const kn = /* @__PURE__ */ W(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
727
728
|
};
|
|
728
729
|
}
|
|
729
730
|
});
|
|
730
|
-
const ke = /* @__PURE__ */ W(
|
|
731
|
+
const ke = /* @__PURE__ */ W(Sn, [["__scopeId", "data-v-12b13e76"]]), Tn = {
|
|
731
732
|
key: 1,
|
|
732
733
|
value: ""
|
|
733
|
-
},
|
|
734
|
+
}, jn = ["value", "data-selected"], Rn = /* @__PURE__ */ U({
|
|
734
735
|
__name: "aeria-select",
|
|
735
736
|
props: {
|
|
736
737
|
modelValue: {},
|
|
@@ -745,11 +746,11 @@ const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
|
|
|
745
746
|
},
|
|
746
747
|
emits: ["update:modelValue", "change"],
|
|
747
748
|
setup(c, { emit: r }) {
|
|
748
|
-
const l = c, t = r, o =
|
|
749
|
+
const l = c, t = r, o = J(null), u = l.property, i = (d) => {
|
|
749
750
|
l.booleanRef && (_.value = d), t("update:modelValue", (d == null ? void 0 : d._id) || d), t("change", (d == null ? void 0 : d._id) || d);
|
|
750
751
|
}, _ = l.booleanRef ? (() => {
|
|
751
|
-
const d =
|
|
752
|
-
return
|
|
752
|
+
const d = J(l.modelValue);
|
|
753
|
+
return D({
|
|
753
754
|
get: () => {
|
|
754
755
|
switch (d.value) {
|
|
755
756
|
case "true":
|
|
@@ -764,10 +765,10 @@ const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
|
|
|
764
765
|
d.value = B;
|
|
765
766
|
}
|
|
766
767
|
});
|
|
767
|
-
})() :
|
|
768
|
+
})() : D({
|
|
768
769
|
get: () => l.modelValue,
|
|
769
770
|
set: i
|
|
770
|
-
}), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b =
|
|
771
|
+
}), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b = D(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
|
|
771
772
|
return l.multiple && ue(() => l.modelValue, (d) => {
|
|
772
773
|
var B;
|
|
773
774
|
if (!o.value)
|
|
@@ -778,7 +779,7 @@ const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
|
|
|
778
779
|
key: 1,
|
|
779
780
|
"read-only": "",
|
|
780
781
|
"model-value": e(_)
|
|
781
|
-
}, null, 8, ["model-value"])) : (n(), s("select",
|
|
782
|
+
}, null, 8, ["model-value"])) : (n(), s("select", E({ key: 0 }, {
|
|
782
783
|
size: b.value,
|
|
783
784
|
value: e(_)
|
|
784
785
|
}, {
|
|
@@ -791,27 +792,27 @@ const ke = /* @__PURE__ */ W(wn, [["__scopeId", "data-v-d443b387"]]), Sn = {
|
|
|
791
792
|
},
|
|
792
793
|
onChange: a[0] || (a[0] = (B) => i(B.target.value))
|
|
793
794
|
}), [
|
|
794
|
-
e(u) && e(u).icon ? (n(), k(
|
|
795
|
+
e(u) && e(u).icon ? (n(), k(Z, {
|
|
795
796
|
key: 0,
|
|
796
797
|
icon: e(u).icon
|
|
797
798
|
}, null, 8, ["icon"])) : y("", !0),
|
|
798
|
-
l.multiple ? y("", !0) : (n(), s("option",
|
|
799
|
-
(n(!0), s(
|
|
799
|
+
l.multiple ? y("", !0) : (n(), s("option", Tn, C(e(R)("none")), 1)),
|
|
800
|
+
(n(!0), s(x, null, G(e(u) && "enum" in e(u) ? e(u).enum : [], (B) => {
|
|
800
801
|
var f;
|
|
801
802
|
return n(), s("option", {
|
|
802
803
|
key: B,
|
|
803
804
|
value: B,
|
|
804
805
|
"data-selected": p(B)
|
|
805
|
-
},
|
|
806
|
+
}, C((f = e(u)) != null && f.translate ? e(R)(B) : B), 9, jn);
|
|
806
807
|
}), 128)),
|
|
807
808
|
O(d.$slots, "default", {}, void 0, !0)
|
|
808
809
|
], 16));
|
|
809
810
|
}
|
|
810
811
|
});
|
|
811
|
-
const Ne = /* @__PURE__ */ W(
|
|
812
|
+
const Ne = /* @__PURE__ */ W(Rn, [["__scopeId", "data-v-1c0432ab"]]), Ln = { class: "pagination" }, zn = { class: "pagination__arrows" }, qn = ["value"], Mn = {
|
|
812
813
|
key: 0,
|
|
813
814
|
class: "pagination__summary"
|
|
814
|
-
},
|
|
815
|
+
}, Fn = /* @__PURE__ */ U({
|
|
815
816
|
__name: "aeria-pagination",
|
|
816
817
|
props: {
|
|
817
818
|
pagination: {},
|
|
@@ -819,17 +820,17 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
|
|
|
819
820
|
},
|
|
820
821
|
emits: ["paginate"],
|
|
821
822
|
setup(c, { emit: r }) {
|
|
822
|
-
const l = c, t = r, o =
|
|
823
|
+
const l = c, t = r, o = D({
|
|
823
824
|
get: () => Math.floor(l.pagination.offset / l.pagination.limit),
|
|
824
825
|
set: (b) => {
|
|
825
826
|
l.pagination.offset = b * l.pagination.limit;
|
|
826
827
|
}
|
|
827
|
-
}), u =
|
|
828
|
+
}), u = D({
|
|
828
829
|
get: () => l.pagination.limit,
|
|
829
830
|
set: (b) => {
|
|
830
831
|
l.pagination.limit = Number(b);
|
|
831
832
|
}
|
|
832
|
-
}), i =
|
|
833
|
+
}), i = J(o.value ? o.value + 1 : 1), _ = D(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (b) => {
|
|
833
834
|
o.value = b === "previous" ? o.value - 1 : o.value + 1;
|
|
834
835
|
};
|
|
835
836
|
return ue([
|
|
@@ -840,14 +841,14 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
|
|
|
840
841
|
offset: o.value * u.value,
|
|
841
842
|
limit: u.value
|
|
842
843
|
});
|
|
843
|
-
}), (b, d) => (n(), s("div",
|
|
844
|
-
A("div",
|
|
844
|
+
}), (b, d) => (n(), s("div", Ln, [
|
|
845
|
+
A("div", zn, [
|
|
845
846
|
z(ve, {
|
|
846
847
|
disabled: o.value === 0,
|
|
847
848
|
onClick: d[0] || (d[0] = (a) => o.value = 0)
|
|
848
849
|
}, {
|
|
849
850
|
default: v(() => [
|
|
850
|
-
z(
|
|
851
|
+
z(Z, { icon: "caret-double-left" })
|
|
851
852
|
]),
|
|
852
853
|
_: 1
|
|
853
854
|
}, 8, ["disabled"]),
|
|
@@ -856,7 +857,7 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
|
|
|
856
857
|
onClick: d[1] || (d[1] = (a) => p("previous"))
|
|
857
858
|
}, {
|
|
858
859
|
default: v(() => [
|
|
859
|
-
z(
|
|
860
|
+
z(Z, { icon: "caret-left" })
|
|
860
861
|
]),
|
|
861
862
|
_: 1
|
|
862
863
|
}, 8, ["disabled"]),
|
|
@@ -865,7 +866,7 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
|
|
|
865
866
|
onClick: d[2] || (d[2] = (a) => p("next"))
|
|
866
867
|
}, {
|
|
867
868
|
default: v(() => [
|
|
868
|
-
z(
|
|
869
|
+
z(Z, { icon: "caret-right" })
|
|
869
870
|
]),
|
|
870
871
|
_: 1
|
|
871
872
|
}, 8, ["disabled"]),
|
|
@@ -874,7 +875,7 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
|
|
|
874
875
|
onClick: d[3] || (d[3] = (a) => o.value = _.value - 1)
|
|
875
876
|
}, {
|
|
876
877
|
default: v(() => [
|
|
877
|
-
z(
|
|
878
|
+
z(Z, { icon: "caret-double-right" })
|
|
878
879
|
]),
|
|
879
880
|
_: 1
|
|
880
881
|
}, 8, ["disabled"]),
|
|
@@ -888,16 +889,16 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
|
|
|
888
889
|
class: "pagination__control"
|
|
889
890
|
}, {
|
|
890
891
|
default: v(() => [
|
|
891
|
-
(n(!0), s(
|
|
892
|
+
(n(!0), s(x, null, G(e(Ut), (a) => (n(), s("option", {
|
|
892
893
|
key: `limit-${a}`,
|
|
893
894
|
value: a
|
|
894
|
-
},
|
|
895
|
+
}, C(a), 9, qn))), 128))
|
|
895
896
|
]),
|
|
896
897
|
_: 1
|
|
897
898
|
}, 8, ["modelValue"])
|
|
898
899
|
]),
|
|
899
|
-
b.noSummary ? y("", !0) : (n(), s("div",
|
|
900
|
-
Q(
|
|
900
|
+
b.noSummary ? y("", !0) : (n(), s("div", Mn, [
|
|
901
|
+
Q(C(e(R)("Page")) + " ", 1),
|
|
901
902
|
(n(), k(ke, {
|
|
902
903
|
key: o.value,
|
|
903
904
|
modelValue: i.value,
|
|
@@ -911,15 +912,15 @@ const Ne = /* @__PURE__ */ W(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
|
|
|
911
912
|
o.value = i.value === 0 ? 0 : i.value - 1;
|
|
912
913
|
})
|
|
913
914
|
}, null, 8, ["modelValue"])),
|
|
914
|
-
A("span", null,
|
|
915
|
+
A("span", null, C(e(R)("of")) + " " + C(_.value), 1)
|
|
915
916
|
]))
|
|
916
917
|
]));
|
|
917
918
|
}
|
|
918
919
|
});
|
|
919
|
-
const
|
|
920
|
+
const Un = /* @__PURE__ */ W(Fn, [["__scopeId", "data-v-ae7235de"]]), En = { class: "checkbox__text" }, Dn = ["innerHTML"], Hn = { class: "checkbox__hint" }, Qn = ["innerHTML"], Gn = {
|
|
920
921
|
inheritAttrs: !1
|
|
921
|
-
},
|
|
922
|
-
...
|
|
922
|
+
}, Wn = /* @__PURE__ */ U({
|
|
923
|
+
...Gn,
|
|
923
924
|
__name: "aeria-checkbox",
|
|
924
925
|
props: {
|
|
925
926
|
modelValue: {},
|
|
@@ -941,7 +942,7 @@ const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
|
|
|
941
942
|
return "checkbox";
|
|
942
943
|
}
|
|
943
944
|
return "radio";
|
|
944
|
-
})(), i = r, _ = l.value || !1, p =
|
|
945
|
+
})(), i = r, _ = l.value || !1, p = D({
|
|
945
946
|
get: () => {
|
|
946
947
|
var d;
|
|
947
948
|
if (t) {
|
|
@@ -978,13 +979,13 @@ const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
|
|
|
978
979
|
return (d, a) => {
|
|
979
980
|
var f, $;
|
|
980
981
|
const B = te("clickable");
|
|
981
|
-
return
|
|
982
|
+
return P((n(), s("label", {
|
|
982
983
|
class: X(`
|
|
983
984
|
checkbox
|
|
984
985
|
${e(o) && "checkbox--readOnly"}
|
|
985
986
|
`)
|
|
986
987
|
}, [
|
|
987
|
-
|
|
988
|
+
P(A("input", E({
|
|
988
989
|
"onUpdate:modelValue": a[0] || (a[0] = (T) => p.value = T)
|
|
989
990
|
}, {
|
|
990
991
|
type: e(u),
|
|
@@ -996,18 +997,18 @@ const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
|
|
|
996
997
|
}), null, 16), [
|
|
997
998
|
[At, p.value]
|
|
998
999
|
]),
|
|
999
|
-
A("div",
|
|
1000
|
+
A("div", En, [
|
|
1000
1001
|
A("div", null, [
|
|
1001
1002
|
d.$slots.description ? O(d.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (n(), s("div", {
|
|
1002
1003
|
key: 1,
|
|
1003
1004
|
innerHTML: (f = e(t)) != null && f.translate ? e(R)(e(_)) : e(_)
|
|
1004
|
-
}, null, 8,
|
|
1005
|
+
}, null, 8, Dn)) : O(d.$slots, "default", { key: 2 }, void 0, !0)
|
|
1005
1006
|
]),
|
|
1006
1007
|
A("div", Hn, [
|
|
1007
1008
|
d.$slots.hint ? O(d.$slots, "hint", { key: 0 }, void 0, !0) : ($ = e(t)) != null && $.hint ? (n(), s("div", {
|
|
1008
1009
|
key: 1,
|
|
1009
1010
|
innerHTML: e(t).hint
|
|
1010
|
-
}, null, 8,
|
|
1011
|
+
}, null, 8, Qn)) : y("", !0)
|
|
1011
1012
|
])
|
|
1012
1013
|
])
|
|
1013
1014
|
], 2)), [
|
|
@@ -1016,10 +1017,10 @@ const Fn = /* @__PURE__ */ W(Mn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
|
|
|
1016
1017
|
};
|
|
1017
1018
|
}
|
|
1018
1019
|
});
|
|
1019
|
-
const
|
|
1020
|
+
const Kn = /* @__PURE__ */ W(Wn, [["__scopeId", "data-v-b9da4354"]]), Xn = {
|
|
1020
1021
|
inheritAttrs: !1
|
|
1021
|
-
},
|
|
1022
|
-
...
|
|
1022
|
+
}, Yn = /* @__PURE__ */ U({
|
|
1023
|
+
...Xn,
|
|
1023
1024
|
__name: "aeria-options",
|
|
1024
1025
|
props: {
|
|
1025
1026
|
modelValue: {},
|
|
@@ -1047,11 +1048,11 @@ const Wn = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
|
|
|
1047
1048
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1048
1049
|
`)
|
|
1049
1050
|
}, [
|
|
1050
|
-
(n(!0), s(
|
|
1051
|
+
(n(!0), s(x, null, G(e(u), (b) => (n(), s("div", {
|
|
1051
1052
|
key: `option-${b}`,
|
|
1052
1053
|
class: "options__checkbox"
|
|
1053
1054
|
}, [
|
|
1054
|
-
z(
|
|
1055
|
+
z(Kn, E({ ref_for: !0 }, {
|
|
1055
1056
|
value: b,
|
|
1056
1057
|
readOnly: e(o),
|
|
1057
1058
|
property: _.property
|
|
@@ -1063,10 +1064,10 @@ const Wn = /* @__PURE__ */ W(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
|
|
|
1063
1064
|
], 4));
|
|
1064
1065
|
}
|
|
1065
1066
|
});
|
|
1066
|
-
const
|
|
1067
|
+
const Jn = /* @__PURE__ */ W(Yn, [["__scopeId", "data-v-4aed0c5c"]]), Zn = (c) => (Ye("data-v-0e3564b6"), c = c(), Je(), c), Pn = { class: "switch-wrapper" }, Nn = /* @__PURE__ */ Zn(() => /* @__PURE__ */ A("div", { class: "switch__slider" }, null, -1)), xn = { key: 1 }, eo = {
|
|
1067
1068
|
inheritAttrs: !1
|
|
1068
|
-
},
|
|
1069
|
-
...
|
|
1069
|
+
}, to = /* @__PURE__ */ U({
|
|
1070
|
+
...eo,
|
|
1070
1071
|
__name: "aeria-switch",
|
|
1071
1072
|
props: {
|
|
1072
1073
|
modelValue: {},
|
|
@@ -1084,8 +1085,8 @@ const Yn = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
|
|
|
1084
1085
|
return (_, p) => {
|
|
1085
1086
|
var d;
|
|
1086
1087
|
const b = te("clickable");
|
|
1087
|
-
return n(), s("div",
|
|
1088
|
-
|
|
1088
|
+
return n(), s("div", Pn, [
|
|
1089
|
+
P((n(), s("a", {
|
|
1089
1090
|
class: X(`
|
|
1090
1091
|
switch
|
|
1091
1092
|
${_.modelValue && "switch--active"}
|
|
@@ -1093,7 +1094,7 @@ const Yn = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
|
|
|
1093
1094
|
`),
|
|
1094
1095
|
onClick: ze(i, ["stop"])
|
|
1095
1096
|
}, [
|
|
1096
|
-
|
|
1097
|
+
Nn,
|
|
1097
1098
|
A("div", {
|
|
1098
1099
|
class: X(`
|
|
1099
1100
|
switch__dummy
|
|
@@ -1105,35 +1106,35 @@ const Yn = /* @__PURE__ */ W(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
|
|
|
1105
1106
|
blocked: e(u)
|
|
1106
1107
|
}]
|
|
1107
1108
|
]),
|
|
1108
|
-
_.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div",
|
|
1109
|
+
_.$slots.default ? O(_.$slots, "default", { key: 0 }, void 0, !0) : (n(), s("div", xn, C(((d = e(o)) == null ? void 0 : d.description) || _.propertyName), 1))
|
|
1109
1110
|
]);
|
|
1110
1111
|
};
|
|
1111
1112
|
}
|
|
1112
1113
|
});
|
|
1113
|
-
const
|
|
1114
|
+
const no = /* @__PURE__ */ W(to, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) => (Ye("data-v-153a2e0f"), c = c(), Je(), c), oo = { class: "picture" }, ao = {
|
|
1114
1115
|
key: 0,
|
|
1115
1116
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1116
|
-
},
|
|
1117
|
+
}, lo = ["src", "alt"], so = {
|
|
1117
1118
|
key: 0,
|
|
1118
1119
|
class: "picture__meta"
|
|
1119
|
-
},
|
|
1120
|
+
}, io = ["src"], ro = /* @__PURE__ */ Ct(() => /* @__PURE__ */ A("line", {
|
|
1120
1121
|
x1: "0",
|
|
1121
1122
|
y1: "0",
|
|
1122
1123
|
x2: "200",
|
|
1123
1124
|
y2: "200",
|
|
1124
1125
|
stroke: "#000",
|
|
1125
1126
|
"vector-effect": "non-scaling-stroke"
|
|
1126
|
-
}, null, -1)),
|
|
1127
|
+
}, null, -1)), uo = /* @__PURE__ */ Ct(() => /* @__PURE__ */ A("line", {
|
|
1127
1128
|
x1: "200",
|
|
1128
1129
|
y1: "0",
|
|
1129
1130
|
x2: "0",
|
|
1130
1131
|
y2: "200",
|
|
1131
1132
|
stroke: "#000",
|
|
1132
1133
|
"vector-effect": "non-scaling-stroke"
|
|
1133
|
-
}, null, -1)),
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
],
|
|
1134
|
+
}, null, -1)), co = [
|
|
1135
|
+
ro,
|
|
1136
|
+
uo
|
|
1137
|
+
], po = { key: 5 }, _o = /* @__PURE__ */ U({
|
|
1137
1138
|
__name: "aeria-picture",
|
|
1138
1139
|
props: {
|
|
1139
1140
|
url: {},
|
|
@@ -1148,16 +1149,16 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1148
1149
|
meta: {}
|
|
1149
1150
|
},
|
|
1150
1151
|
setup(c) {
|
|
1151
|
-
const r = c, l =
|
|
1152
|
+
const r = c, l = D(() => r.fileId ? `${kt}/file/${r.fileId}/picture` : r.url || r.modelValue), t = J(!1);
|
|
1152
1153
|
return (o, u) => {
|
|
1153
1154
|
var _;
|
|
1154
1155
|
const i = te("overlay");
|
|
1155
|
-
return n(), s("figure",
|
|
1156
|
+
return n(), s("figure", oo, [
|
|
1156
1157
|
l.value ? (n(), k(Ke, {
|
|
1157
1158
|
key: 0,
|
|
1158
1159
|
to: "main"
|
|
1159
1160
|
}, [
|
|
1160
|
-
t.value ?
|
|
1161
|
+
t.value ? P((n(), s("div", ao, [
|
|
1161
1162
|
A("img", {
|
|
1162
1163
|
src: l.value,
|
|
1163
1164
|
alt: o.alt,
|
|
@@ -1166,8 +1167,8 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1166
1167
|
object-fit: contain;
|
|
1167
1168
|
`,
|
|
1168
1169
|
onClick: u[0] || (u[0] = (p) => t.value = !0)
|
|
1169
|
-
}, null, 8,
|
|
1170
|
-
(_ = o.meta) != null && _.owner ? (n(), s("div",
|
|
1170
|
+
}, null, 8, lo),
|
|
1171
|
+
(_ = o.meta) != null && _.owner ? (n(), s("div", so, " Criado por " + C(o.meta.owner.name) + " em " + C(o.formatDateTime(o.meta.created_at, { hours: !0 })), 1)) : y("", !0)
|
|
1171
1172
|
])), [
|
|
1172
1173
|
[i, {
|
|
1173
1174
|
click: () => {
|
|
@@ -1192,7 +1193,7 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1192
1193
|
onClick: u[1] || (u[1] = () => {
|
|
1193
1194
|
o.expandable && (t.value = !0);
|
|
1194
1195
|
})
|
|
1195
|
-
}, null, 14,
|
|
1196
|
+
}, null, 14, io)) : o.$slots.fallback ? O(o.$slots, "fallback", { key: 2 }, void 0, !0) : o.$slots.default ? O(o.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
|
|
1196
1197
|
key: 4,
|
|
1197
1198
|
class: X(["picture__background", `
|
|
1198
1199
|
${o.bordered && "picture__image--bordered"}
|
|
@@ -1205,24 +1206,24 @@ const to = /* @__PURE__ */ W(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1205
1206
|
width: ${o.width || "100%"};
|
|
1206
1207
|
height: ${o.height || "100%"};
|
|
1207
1208
|
`)
|
|
1208
|
-
},
|
|
1209
|
-
o.$slots.caption ? (n(), s("figcaption",
|
|
1209
|
+
}, co, 6)),
|
|
1210
|
+
o.$slots.caption ? (n(), s("figcaption", po, [
|
|
1210
1211
|
O(o.$slots, "caption", {}, void 0, !0)
|
|
1211
1212
|
])) : y("", !0)
|
|
1212
1213
|
]);
|
|
1213
1214
|
};
|
|
1214
1215
|
}
|
|
1215
1216
|
});
|
|
1216
|
-
const
|
|
1217
|
+
const De = /* @__PURE__ */ W(_o, [["__scopeId", "data-v-153a2e0f"]]), mo = { class: "file" }, fo = { key: 0 }, vo = ["href"], yo = {
|
|
1217
1218
|
key: 1,
|
|
1218
1219
|
class: "file__actions"
|
|
1219
|
-
},
|
|
1220
|
+
}, ho = ["accept"], bo = {
|
|
1220
1221
|
key: 0,
|
|
1221
1222
|
class: "file__buttons"
|
|
1222
|
-
},
|
|
1223
|
+
}, $o = {
|
|
1223
1224
|
key: 1,
|
|
1224
1225
|
class: "file__buttons"
|
|
1225
|
-
},
|
|
1226
|
+
}, go = /* @__PURE__ */ U({
|
|
1226
1227
|
__name: "aeria-file",
|
|
1227
1228
|
props: {
|
|
1228
1229
|
modelValue: {},
|
|
@@ -1237,22 +1238,22 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1237
1238
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1238
1239
|
setup(c, { emit: r }) {
|
|
1239
1240
|
var f;
|
|
1240
|
-
const l = c, t = r, u = Me() ?
|
|
1241
|
+
const l = c, t = r, u = Me() ? He() : null, i = J(((f = l.modelValue) == null ? void 0 : f.file) || null), _ = D(() => {
|
|
1241
1242
|
var $;
|
|
1242
1243
|
return i.value ? URL.createObjectURL(i.value) : ($ = l.modelValue) == null ? void 0 : $.link;
|
|
1243
|
-
}), p =
|
|
1244
|
-
var $, T,
|
|
1245
|
-
return /^image\//.test(($ = l.modelValue) == null ? void 0 : $.type) && !((T = i.value) != null && T.type) || /^image\//.test((
|
|
1244
|
+
}), p = D(() => {
|
|
1245
|
+
var $, T, V;
|
|
1246
|
+
return /^image\//.test(($ = l.modelValue) == null ? void 0 : $.type) && !((T = i.value) != null && T.type) || /^image\//.test((V = i.value) == null ? void 0 : V.type);
|
|
1246
1247
|
}), b = ($) => new Promise((T) => {
|
|
1247
|
-
const
|
|
1248
|
-
|
|
1248
|
+
const V = new FileReader();
|
|
1249
|
+
V.onload = () => T(V.result), V.readAsArrayBuffer($);
|
|
1249
1250
|
}), d = () => {
|
|
1250
1251
|
l.modelValue.tempId && t("update:modelValue", null), i.value = null;
|
|
1251
1252
|
}, a = async ($) => {
|
|
1252
1253
|
i.value = $.target.files[0];
|
|
1253
|
-
const T = i.value,
|
|
1254
|
+
const T = i.value, V = await b(T);
|
|
1254
1255
|
if (u) {
|
|
1255
|
-
const { data: { error:
|
|
1256
|
+
const { data: { error: Y, result: ee } } = await Et(`${kt}/${u.$id}/upload?name=${T.name}`, V, {
|
|
1256
1257
|
params: {
|
|
1257
1258
|
method: "POST",
|
|
1258
1259
|
headers: {
|
|
@@ -1261,7 +1262,7 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1261
1262
|
}
|
|
1262
1263
|
}
|
|
1263
1264
|
});
|
|
1264
|
-
if (
|
|
1265
|
+
if (Y)
|
|
1265
1266
|
return;
|
|
1266
1267
|
t("update:modelValue", {
|
|
1267
1268
|
tempId: ee.tempId,
|
|
@@ -1269,15 +1270,15 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1269
1270
|
});
|
|
1270
1271
|
} else
|
|
1271
1272
|
t("update:modelValue", T);
|
|
1272
|
-
t("update:content",
|
|
1273
|
+
t("update:content", V), t("change", V);
|
|
1273
1274
|
}, B = async () => {
|
|
1274
1275
|
t("update:modelValue", null);
|
|
1275
1276
|
};
|
|
1276
1277
|
return ($, T) => {
|
|
1277
|
-
var
|
|
1278
|
-
return n(), s("div",
|
|
1279
|
-
i.value || (
|
|
1280
|
-
p.value ? (n(), k(
|
|
1278
|
+
var V, Y, ee, h, F, le;
|
|
1279
|
+
return n(), s("div", mo, [
|
|
1280
|
+
i.value || (V = $.modelValue) != null && V._id ? (n(), s("div", fo, [
|
|
1281
|
+
p.value ? (n(), k(De, {
|
|
1281
1282
|
key: 0,
|
|
1282
1283
|
modelValue: _.value,
|
|
1283
1284
|
"onUpdate:modelValue": T[0] || (T[0] = (S) => _.value = S),
|
|
@@ -1285,38 +1286,38 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1285
1286
|
expandable: $.readOnly,
|
|
1286
1287
|
class: X(`
|
|
1287
1288
|
file__image
|
|
1288
|
-
${!e(u) || ((
|
|
1289
|
+
${!e(u) || ((Y = $.modelValue) == null ? void 0 : Y._id) || "file__image--unsent"}
|
|
1289
1290
|
`)
|
|
1290
1291
|
}, null, 8, ["modelValue", "expandable", "class"])) : y("", !0),
|
|
1291
1292
|
(ee = $.modelValue) != null && ee._id ? (n(), s("a", {
|
|
1292
1293
|
key: 1,
|
|
1293
1294
|
href: $.modelValue.download_link
|
|
1294
|
-
},
|
|
1295
|
+
}, C($.modelValue.name), 9, vo)) : y("", !0)
|
|
1295
1296
|
])) : y("", !0),
|
|
1296
|
-
$.readOnly ? y("", !0) : (n(), s("div",
|
|
1297
|
+
$.readOnly ? y("", !0) : (n(), s("div", yo, [
|
|
1297
1298
|
A("input", {
|
|
1298
1299
|
ref: "file",
|
|
1299
1300
|
type: "file",
|
|
1300
|
-
accept: (
|
|
1301
|
+
accept: (F = (h = $.property) == null ? void 0 : h.accept) == null ? void 0 : F.join(","),
|
|
1301
1302
|
onChange: a
|
|
1302
|
-
}, null, 40,
|
|
1303
|
-
i.value ? (n(), s("div",
|
|
1304
|
-
z(
|
|
1303
|
+
}, null, 40, ho),
|
|
1304
|
+
i.value ? (n(), s("div", bo, [
|
|
1305
|
+
z(ie, {
|
|
1305
1306
|
small: "",
|
|
1306
1307
|
onClick: ze(d, ["prevent"])
|
|
1307
1308
|
}, {
|
|
1308
1309
|
default: v(() => [
|
|
1309
|
-
Q(
|
|
1310
|
+
Q(C(e(R)("action.clear", { capitalize: !0 })), 1)
|
|
1310
1311
|
]),
|
|
1311
1312
|
_: 1
|
|
1312
1313
|
})
|
|
1313
|
-
])) : (le = $.modelValue) != null && le._id ? (n(), s("div",
|
|
1314
|
-
z(
|
|
1314
|
+
])) : (le = $.modelValue) != null && le._id ? (n(), s("div", $o, [
|
|
1315
|
+
z(ie, {
|
|
1315
1316
|
small: "",
|
|
1316
1317
|
onClick: ze(B, ["prevent"])
|
|
1317
1318
|
}, {
|
|
1318
1319
|
default: v(() => [
|
|
1319
|
-
Q(
|
|
1320
|
+
Q(C(e(R)("action.remove", { capitalize: !0 })), 1)
|
|
1320
1321
|
]),
|
|
1321
1322
|
_: 1
|
|
1322
1323
|
})
|
|
@@ -1326,22 +1327,22 @@ const He = /* @__PURE__ */ W(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1326
1327
|
};
|
|
1327
1328
|
}
|
|
1328
1329
|
});
|
|
1329
|
-
const
|
|
1330
|
+
const ko = /* @__PURE__ */ W(go, [["__scopeId", "data-v-d491b7ce"]]), Vo = { class: "container" }, Co = {
|
|
1330
1331
|
key: 1,
|
|
1331
1332
|
class: "container__footer"
|
|
1332
|
-
},
|
|
1333
|
+
}, Oo = /* @__PURE__ */ U({
|
|
1333
1334
|
__name: "aeria-search-container",
|
|
1334
1335
|
props: {
|
|
1335
1336
|
observeScroll: { type: Boolean }
|
|
1336
1337
|
},
|
|
1337
1338
|
emits: ["endReached"],
|
|
1338
1339
|
setup(c, { emit: r }) {
|
|
1339
|
-
const l = c, t = r, o =
|
|
1340
|
+
const l = c, t = r, o = J(null), u = l.observeScroll ? Pe(o, {
|
|
1340
1341
|
antecipate: 100
|
|
1341
1342
|
}).reachedEnd : null;
|
|
1342
1343
|
return u !== null && ue(u, (i) => {
|
|
1343
1344
|
i && t("endReached", i);
|
|
1344
|
-
}), (i, _) => (n(), s("div",
|
|
1345
|
+
}), (i, _) => (n(), s("div", Vo, [
|
|
1345
1346
|
i.$slots.default ? (n(), s("div", {
|
|
1346
1347
|
key: 0,
|
|
1347
1348
|
ref_key: "containerEl",
|
|
@@ -1350,13 +1351,13 @@ const go = /* @__PURE__ */ W($o, [["__scopeId", "data-v-e6cdde77"]]), ko = { cla
|
|
|
1350
1351
|
}, [
|
|
1351
1352
|
O(i.$slots, "default", {}, void 0, !0)
|
|
1352
1353
|
], 512)) : y("", !0),
|
|
1353
|
-
i.$slots.footer ? (n(), s("div",
|
|
1354
|
+
i.$slots.footer ? (n(), s("div", Co, [
|
|
1354
1355
|
O(i.$slots, "footer", {}, void 0, !0)
|
|
1355
1356
|
])) : y("", !0)
|
|
1356
1357
|
]));
|
|
1357
1358
|
}
|
|
1358
1359
|
});
|
|
1359
|
-
const ft = /* @__PURE__ */ W(
|
|
1360
|
+
const ft = /* @__PURE__ */ W(Oo, [["__scopeId", "data-v-c86e2d2a"]]), Io = { class: "item__values" }, Ao = /* @__PURE__ */ U({
|
|
1360
1361
|
__name: "aeria-search-item",
|
|
1361
1362
|
props: {
|
|
1362
1363
|
item: {},
|
|
@@ -1367,7 +1368,7 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
|
|
|
1367
1368
|
},
|
|
1368
1369
|
emits: ["update:modelValue", "change"],
|
|
1369
1370
|
setup(c, { emit: r }) {
|
|
1370
|
-
const l =
|
|
1371
|
+
const l = Ie(), t = c, o = r, u = t.property, i = me(u), _ = He(), p = D(() => Array.isArray(t.modelValue) ? Array.isArray(t.modelValue) && Object.values(t.modelValue).some(({ _id: B }) => t.item._id === B) : t.modelValue && t.modelValue._id === t.item._id), b = () => {
|
|
1371
1372
|
if (p.value)
|
|
1372
1373
|
return;
|
|
1373
1374
|
const B = ($) => $.filter((T) => !!(T != null && T._id)), f = "items" in u ? B(Array.isArray(t.modelValue) ? t.modelValue : [t.modelValue]) : t.modelValue;
|
|
@@ -1382,7 +1383,7 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
|
|
|
1382
1383
|
});
|
|
1383
1384
|
}
|
|
1384
1385
|
const f = () => {
|
|
1385
|
-
const $ =
|
|
1386
|
+
const $ = Array.isArray(t.modelValue) ? Array.from(t.modelValue) : [], T = $.findIndex((V) => V._id === t.item._id);
|
|
1386
1387
|
return $.splice(T, 1), $;
|
|
1387
1388
|
};
|
|
1388
1389
|
o("update:modelValue", "items" in u ? f() : null);
|
|
@@ -1397,7 +1398,7 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
|
|
|
1397
1398
|
};
|
|
1398
1399
|
return (B, f) => {
|
|
1399
1400
|
const $ = te("clickable");
|
|
1400
|
-
return
|
|
1401
|
+
return P((n(), s("div", {
|
|
1401
1402
|
class: X({
|
|
1402
1403
|
item: !0,
|
|
1403
1404
|
"item--selected": p.value
|
|
@@ -1405,13 +1406,13 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
|
|
|
1405
1406
|
onClick: a
|
|
1406
1407
|
}, [
|
|
1407
1408
|
O(B.$slots, "default", {}, void 0, !0),
|
|
1408
|
-
A("div",
|
|
1409
|
-
(n(!0), s(
|
|
1410
|
-
key: `index-${B.item._id}-${
|
|
1409
|
+
A("div", Io, [
|
|
1410
|
+
(n(!0), s(x, null, G(B.indexes, (T, V) => (n(), s("div", {
|
|
1411
|
+
key: `index-${B.item._id}-${V}`,
|
|
1411
1412
|
class: "item__value"
|
|
1412
|
-
},
|
|
1413
|
+
}, C(B.item[T]), 1))), 128))
|
|
1413
1414
|
]),
|
|
1414
|
-
B.readOnly ? (n(), k(
|
|
1415
|
+
B.readOnly ? (n(), k(Z, {
|
|
1415
1416
|
key: 0,
|
|
1416
1417
|
icon: "arrow-square-out",
|
|
1417
1418
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
@@ -1422,10 +1423,10 @@ const ft = /* @__PURE__ */ W(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
|
|
|
1422
1423
|
};
|
|
1423
1424
|
}
|
|
1424
1425
|
});
|
|
1425
|
-
const Ge = /* @__PURE__ */ W(
|
|
1426
|
+
const Ge = /* @__PURE__ */ W(Ao, [["__scopeId", "data-v-3b5a7221"]]), Bo = { class: "search__panel" }, wo = { key: 1 }, So = { key: 0 }, To = { key: 1 }, jo = { class: "search__summary" }, Ro = {
|
|
1426
1427
|
key: 1,
|
|
1427
1428
|
class: "search"
|
|
1428
|
-
},
|
|
1429
|
+
}, Lo = { key: 0 }, Ee = 10, zo = /* @__PURE__ */ U({
|
|
1429
1430
|
__name: "aeria-search",
|
|
1430
1431
|
props: {
|
|
1431
1432
|
modelValue: {},
|
|
@@ -1439,75 +1440,75 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1439
1440
|
},
|
|
1440
1441
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1441
1442
|
setup(c, { emit: r }) {
|
|
1442
|
-
const l = c, t = me(l.property), o = l.panel !== void 0 ?
|
|
1443
|
+
const l = c, t = me(l.property), o = l.panel !== void 0 ? D(() => l.panel) : J(!1), u = r, i = re(me(l.property).$ref), _ = Me(), p = _ ? He() : null, b = t.indexes;
|
|
1443
1444
|
ye(Fe, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
|
|
1444
|
-
const d =
|
|
1445
|
+
const d = J(l.modelValue), a = J({
|
|
1445
1446
|
data: [],
|
|
1446
1447
|
pagination: {}
|
|
1447
|
-
}), B =
|
|
1448
|
+
}), B = D(() => a.value.data), f = D(() => a.value.pagination), $ = J(0), T = J(!1), V = J(""), Y = () => {
|
|
1448
1449
|
const M = {};
|
|
1449
1450
|
if (_) {
|
|
1450
|
-
const
|
|
1451
|
-
M[
|
|
1451
|
+
const H = e(_);
|
|
1452
|
+
M[H] = p;
|
|
1452
1453
|
}
|
|
1453
1454
|
return t.constraints ? zt(t.constraints, M) : {};
|
|
1454
1455
|
}, ee = () => {
|
|
1455
|
-
B.value.length < f.value.recordsTotal && ($.value += 1,
|
|
1456
|
-
}, h = async () =>
|
|
1456
|
+
B.value.length < f.value.recordsTotal && ($.value += 1, F());
|
|
1457
|
+
}, h = async () => V.value.length === 0 ? i.$actions.custom("getAll", {
|
|
1457
1458
|
limit: Ee,
|
|
1458
1459
|
offset: $.value * Ee,
|
|
1459
|
-
filters:
|
|
1460
|
+
filters: Y()
|
|
1460
1461
|
}) : i.$actions.custom("getAll", {
|
|
1461
1462
|
limit: Ee,
|
|
1462
1463
|
offset: $.value * Ee,
|
|
1463
1464
|
filters: {
|
|
1464
1465
|
$text: {
|
|
1465
|
-
$search: `"${
|
|
1466
|
+
$search: `"${V.value}"`,
|
|
1466
1467
|
$caseSensitive: !1
|
|
1467
1468
|
},
|
|
1468
|
-
...
|
|
1469
|
+
...Y()
|
|
1469
1470
|
}
|
|
1470
|
-
}),
|
|
1471
|
+
}), F = async () => {
|
|
1471
1472
|
if (i.loading.getAll)
|
|
1472
1473
|
return;
|
|
1473
|
-
const { error: M, result:
|
|
1474
|
+
const { error: M, result: H } = await h();
|
|
1474
1475
|
if (M) {
|
|
1475
|
-
|
|
1476
|
+
re("meta").$actions.spawnToast({
|
|
1476
1477
|
text: "Request failed",
|
|
1477
1478
|
icon: "warning"
|
|
1478
1479
|
});
|
|
1479
1480
|
return;
|
|
1480
1481
|
}
|
|
1481
|
-
a.value.pagination =
|
|
1482
|
+
a.value.pagination = H.pagination, $.value === 0 && a.value.data.splice(0), a.value.data.push(...H.data);
|
|
1482
1483
|
}, [le] = Vt({
|
|
1483
1484
|
delay: 800
|
|
1484
1485
|
})(() => {
|
|
1485
|
-
$.value = 0,
|
|
1486
|
+
$.value = 0, F(), T.value = !1;
|
|
1486
1487
|
}), S = () => {
|
|
1487
1488
|
T.value = !0, le();
|
|
1488
1489
|
}, g = () => {
|
|
1489
|
-
"effect" in o ? u("update:panel", !0) : o.value = !0,
|
|
1490
|
+
"effect" in o ? u("update:panel", !0) : o.value = !0, F();
|
|
1490
1491
|
}, j = () => {
|
|
1491
1492
|
$.value = 0, a.value.data.splice(0), "effect" in o ? u("update:panel", !1) : o.value = !1;
|
|
1492
1493
|
};
|
|
1493
|
-
ue(() =>
|
|
1494
|
-
M && !
|
|
1494
|
+
ue(() => V.value.length, (M, H) => {
|
|
1495
|
+
M && !H && F();
|
|
1495
1496
|
}), Xe(() => {
|
|
1496
|
-
l.selectOnly &&
|
|
1497
|
+
l.selectOnly && F();
|
|
1497
1498
|
});
|
|
1498
1499
|
const ne = (M) => {
|
|
1499
1500
|
d.value = M, l.selectOnly || u("update:modelValue", M);
|
|
1500
1501
|
}, oe = () => {
|
|
1501
1502
|
j(), u("update:modelValue", d.value);
|
|
1502
1503
|
};
|
|
1503
|
-
return (M,
|
|
1504
|
+
return (M, H) => {
|
|
1504
1505
|
const se = te("clickable");
|
|
1505
1506
|
return n(), s("div", null, [
|
|
1506
1507
|
e(o) ? (n(), k(Ke, {
|
|
1507
1508
|
key: 0,
|
|
1508
1509
|
to: "main"
|
|
1509
1510
|
}, [
|
|
1510
|
-
z(
|
|
1511
|
+
z(Ae, {
|
|
1511
1512
|
float: "",
|
|
1512
1513
|
"close-hint": "",
|
|
1513
1514
|
title: `${e(R)("action.select", { capitalize: !0 })} ${e(R)(M.propertyName)}`,
|
|
@@ -1518,12 +1519,12 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1518
1519
|
onOverlayClick: j
|
|
1519
1520
|
}, {
|
|
1520
1521
|
footer: v(() => [
|
|
1521
|
-
z(
|
|
1522
|
+
z(ie, {
|
|
1522
1523
|
large: "",
|
|
1523
1524
|
onClick: oe
|
|
1524
1525
|
}, {
|
|
1525
1526
|
default: v(() => [
|
|
1526
|
-
Q(
|
|
1527
|
+
Q(C(e(R)("action.save", { capitalize: !0 })), 1)
|
|
1527
1528
|
]),
|
|
1528
1529
|
_: 1
|
|
1529
1530
|
})
|
|
@@ -1531,10 +1532,10 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1531
1532
|
default: v(() => {
|
|
1532
1533
|
var ae, m;
|
|
1533
1534
|
return [
|
|
1534
|
-
A("div",
|
|
1535
|
-
z(ke,
|
|
1536
|
-
modelValue:
|
|
1537
|
-
"onUpdate:modelValue":
|
|
1535
|
+
A("div", Bo, [
|
|
1536
|
+
z(ke, E({
|
|
1537
|
+
modelValue: V.value,
|
|
1538
|
+
"onUpdate:modelValue": H[0] || (H[0] = (L) => V.value = L)
|
|
1538
1539
|
}, {
|
|
1539
1540
|
property: {
|
|
1540
1541
|
type: "string",
|
|
@@ -1548,34 +1549,34 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1548
1549
|
onEndReached: ee
|
|
1549
1550
|
}, {
|
|
1550
1551
|
default: v(() => [
|
|
1551
|
-
(n(!0), s(
|
|
1552
|
+
(n(!0), s(x, null, G(B.value, (L) => (n(), k(Ge, E({ ref_for: !0 }, {
|
|
1552
1553
|
item: L,
|
|
1553
1554
|
indexes: e(b),
|
|
1554
1555
|
property: M.property
|
|
1555
1556
|
}, {
|
|
1556
1557
|
key: `matching-${L._id}`,
|
|
1557
1558
|
modelValue: d.value,
|
|
1558
|
-
"onUpdate:modelValue":
|
|
1559
|
+
"onUpdate:modelValue": H[1] || (H[1] = (K) => d.value = K)
|
|
1559
1560
|
}), null, 16, ["modelValue"]))), 128))
|
|
1560
1561
|
]),
|
|
1561
1562
|
_: 1
|
|
1562
|
-
})) : (n(), s("div",
|
|
1563
|
-
T.value ? (n(), s("div",
|
|
1563
|
+
})) : (n(), s("div", wo, [
|
|
1564
|
+
T.value ? (n(), s("div", So, C(e(R)("searching", { capitalize: !0 })) + "... ", 1)) : !e(i).loading.getAll && Object.values(V.value).filter((L) => !!L).length > 0 && !("items" in M.property && ((ae = M.modelValue) != null && ae.length) || !Array.isArray(M.modelValue) && ((m = M.modelValue) != null && m._id)) ? (n(), s("div", To, C(e(R)("no_results", { capitalize: !0 })), 1)) : y("", !0)
|
|
1564
1565
|
]))
|
|
1565
1566
|
]),
|
|
1566
|
-
A("div",
|
|
1567
|
+
A("div", jo, C(e(R)("showing", { capitalize: !0 })) + " " + C(B.value.length) + " " + C(e(R)("of")) + " " + C(f.value.recordsTotal), 1)
|
|
1567
1568
|
];
|
|
1568
1569
|
}),
|
|
1569
1570
|
_: 1
|
|
1570
1571
|
}, 8, ["title", "model-value"])
|
|
1571
1572
|
])) : y("", !0),
|
|
1572
|
-
M.selectOnly ? y("", !0) : (n(), s("div",
|
|
1573
|
+
M.selectOnly ? y("", !0) : (n(), s("div", Ro, [
|
|
1573
1574
|
z(ft, null, ce({
|
|
1574
1575
|
default: v(() => {
|
|
1575
1576
|
var ae;
|
|
1576
1577
|
return [
|
|
1577
|
-
"items" in M.property ? (n(), s("div",
|
|
1578
|
-
(n(!0), s(
|
|
1578
|
+
"items" in M.property ? (n(), s("div", Lo, [
|
|
1579
|
+
(n(!0), s(x, null, G(M.modelValue, (m) => (n(), k(Ge, E({ ref_for: !0 }, {
|
|
1579
1580
|
item: m,
|
|
1580
1581
|
indexes: e(b),
|
|
1581
1582
|
property: M.property,
|
|
@@ -1585,7 +1586,7 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1585
1586
|
key: `selected-${m._id}`,
|
|
1586
1587
|
"onUpdate:modelValue": ne
|
|
1587
1588
|
}), null, 16))), 128))
|
|
1588
|
-
])) : (ae = M.modelValue) != null && ae._id ? (n(), k(Ge,
|
|
1589
|
+
])) : (ae = M.modelValue) != null && ae._id ? (n(), k(Ge, E({ key: 1 }, {
|
|
1589
1590
|
item: M.modelValue,
|
|
1590
1591
|
indexes: e(b),
|
|
1591
1592
|
property: e(t),
|
|
@@ -1599,12 +1600,12 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1599
1600
|
M.readOnly ? void 0 : {
|
|
1600
1601
|
name: "footer",
|
|
1601
1602
|
fn: v(() => [
|
|
1602
|
-
|
|
1603
|
+
P((n(), k(Z, {
|
|
1603
1604
|
icon: "plus",
|
|
1604
1605
|
onClick: g
|
|
1605
1606
|
}, {
|
|
1606
1607
|
default: v(() => [
|
|
1607
|
-
Q(
|
|
1608
|
+
Q(C(e(R)("action.select", { capitalize: !0 })), 1)
|
|
1608
1609
|
]),
|
|
1609
1610
|
_: 1
|
|
1610
1611
|
})), [
|
|
@@ -1619,15 +1620,15 @@ const Ge = /* @__PURE__ */ W(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1619
1620
|
};
|
|
1620
1621
|
}
|
|
1621
1622
|
});
|
|
1622
|
-
const
|
|
1623
|
+
const qo = /* @__PURE__ */ W(zo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r) => {
|
|
1623
1624
|
const l = "items" in c ? c.items : c, t = {
|
|
1624
|
-
options:
|
|
1625
|
+
options: Jn,
|
|
1625
1626
|
select: Ne,
|
|
1626
|
-
switch:
|
|
1627
|
-
file:
|
|
1628
|
-
search:
|
|
1627
|
+
switch: no,
|
|
1628
|
+
file: ko,
|
|
1629
|
+
search: qo,
|
|
1629
1630
|
input: ke,
|
|
1630
|
-
form:
|
|
1631
|
+
form: Qe
|
|
1631
1632
|
}, o = (() => {
|
|
1632
1633
|
if ("type" in l) {
|
|
1633
1634
|
if (l.type === "object")
|
|
@@ -1645,29 +1646,29 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1645
1646
|
return u ? u.inline ? "form" : u.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in l ? "select" : "input";
|
|
1646
1647
|
})();
|
|
1647
1648
|
return r[o] ? r[o] : t[o];
|
|
1648
|
-
},
|
|
1649
|
+
}, Mo = (c, r, l) => {
|
|
1649
1650
|
c ?? (c = []);
|
|
1650
1651
|
const t = "items" in r ? r.items : r;
|
|
1651
1652
|
if ("$ref" in t) {
|
|
1652
|
-
const o =
|
|
1653
|
+
const o = re(t.$ref, l), u = Ce(o.$freshItem);
|
|
1653
1654
|
return c.push(u);
|
|
1654
1655
|
}
|
|
1655
1656
|
return "properties" in t ? c.push(qt(t)) : "type" in t && t.type === "boolean" ? c.push({}) : c.push(null);
|
|
1656
|
-
},
|
|
1657
|
+
}, Fo = (c, r) => {
|
|
1657
1658
|
c.splice(r, 1);
|
|
1658
|
-
},
|
|
1659
|
+
}, Uo = {
|
|
1659
1660
|
key: 0,
|
|
1660
1661
|
class: "form__header"
|
|
1661
|
-
},
|
|
1662
|
+
}, Eo = { class: "form__fieldset" }, Do = { key: 0 }, Ho = ["innerHTML"], Qo = ["onInput"], Go = { key: 4 }, Wo = { value: "true" }, Ko = { value: "false" }, Xo = {
|
|
1662
1663
|
key: 5,
|
|
1663
1664
|
style: { display: "grid", "row-gap": ".4rem" }
|
|
1664
|
-
},
|
|
1665
|
+
}, Yo = { key: 0 }, Jo = { class: "form__array" }, Zo = { style: { "flex-grow": "1" } }, Po = {
|
|
1665
1666
|
key: 7,
|
|
1666
1667
|
class: "form__validation-error"
|
|
1667
|
-
},
|
|
1668
|
+
}, No = { key: 0 }, xo = { key: 1 }, ea = {
|
|
1668
1669
|
key: 2,
|
|
1669
1670
|
class: "form__footer"
|
|
1670
|
-
},
|
|
1671
|
+
}, ta = /* @__PURE__ */ U({
|
|
1671
1672
|
__name: "aeria-form",
|
|
1672
1673
|
props: {
|
|
1673
1674
|
modelValue: {},
|
|
@@ -1700,10 +1701,10 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1700
1701
|
$t(() => {
|
|
1701
1702
|
t.modelValue || o("update:modelValue", t.property && "items" in t.property ? [] : {});
|
|
1702
1703
|
});
|
|
1703
|
-
const u = t.property && me(t.property), i = u ? u.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = i ?
|
|
1704
|
+
const u = t.property && me(t.property), i = u ? u.$ref : t.collection || Me(), _ = t.readOnly || ((ae = t.property) == null ? void 0 : ae.readOnly), p = i ? re(e(i)) : null;
|
|
1704
1705
|
!i && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1705
1706
|
collection prop, some features may not work as intended`);
|
|
1706
|
-
const b =
|
|
1707
|
+
const b = J(!1), d = D(() => {
|
|
1707
1708
|
const m = (() => !t.form && t.property ? "type" in t.property && t.property.type === "object" ? "properties" in t.property ? t.property.properties : void 0 : p == null ? void 0 : p.properties : t.form)();
|
|
1708
1709
|
if (!m)
|
|
1709
1710
|
return;
|
|
@@ -1721,34 +1722,34 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1721
1722
|
m.created_at || (L.created_at = K), m.created_at || (L.updated_at = K);
|
|
1722
1723
|
}
|
|
1723
1724
|
return Object.assign(L, m), L;
|
|
1724
|
-
}), a =
|
|
1725
|
+
}), a = D(() => t.layout || (p == null ? void 0 : p.description.formLayout)), B = (m) => {
|
|
1725
1726
|
const L = _e(m, t[m]);
|
|
1726
1727
|
return t[m] && ye(m, t[m]), L;
|
|
1727
|
-
}, f =
|
|
1728
|
+
}, f = D(() => t.validationErrors !== null ? t.validationErrors : p == null ? void 0 : p.validationErrors), $ = B("formComponents") || {}, T = B("propertyComponents") || {}, V = B("omitFormHeader"), Y = B("omitInputLabels"), ee = B("innerInputLabel");
|
|
1728
1729
|
i && ye(Fe, i), ye("searchOnly", t.searchOnly);
|
|
1729
1730
|
const h = (m) => d.value ? Object.entries(d.value).filter(([L, K]) => !K.noForm && m([
|
|
1730
1731
|
L,
|
|
1731
1732
|
K
|
|
1732
|
-
])) : null,
|
|
1733
|
+
])) : null, F = (m, L) => {
|
|
1733
1734
|
var w;
|
|
1734
1735
|
if (t.searchOnly || !i || t.includeId && m === "_id" || t.includeTimestamps && L.isTimestamp)
|
|
1735
1736
|
return !0;
|
|
1736
1737
|
const K = t.property && "properties" in t.property ? t.property.form : (w = p == null ? void 0 : p.description) == null ? void 0 : w.form;
|
|
1737
1738
|
return !K || K.includes(m);
|
|
1738
|
-
}, le = h(([m, L]) =>
|
|
1739
|
-
var q, fe,
|
|
1740
|
-
const K = [], w = ((fe = (q = a.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((
|
|
1739
|
+
}, le = h(([m, L]) => F(m, L)), S = Ue(), g = {}, j = (m, L) => {
|
|
1740
|
+
var q, fe, Be, we;
|
|
1741
|
+
const K = [], w = ((fe = (q = a.value) == null ? void 0 : q.fields) == null ? void 0 : fe[m]) || ((we = (Be = a.value) == null ? void 0 : Be.fields) == null ? void 0 : we.$default);
|
|
1741
1742
|
if (!L)
|
|
1742
1743
|
return;
|
|
1743
1744
|
if (w != null && w.if && !t.searchOnly) {
|
|
1744
|
-
const
|
|
1745
|
+
const Se = We(
|
|
1745
1746
|
t.modelValue,
|
|
1746
1747
|
w.if
|
|
1747
1748
|
);
|
|
1748
|
-
|
|
1749
|
+
Se.satisfied || (g[m] && (p ? t.modelValue[m] = typeof p.$freshItem[m] == "object" ? Ce(p.$freshItem[m]) : p.$freshItem[m] : t.modelValue[m] = [
|
|
1749
1750
|
void 0,
|
|
1750
1751
|
null
|
|
1751
|
-
].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), K.push("display: none;")), g[m] =
|
|
1752
|
+
].includes(t.modelValue[m]) ? null : t.modelValue[m].constructor()), K.push("display: none;")), g[m] = Se.satisfied;
|
|
1752
1753
|
}
|
|
1753
1754
|
const I = S.value.md && (w == null ? void 0 : w.span) || 6;
|
|
1754
1755
|
return K.push(`
|
|
@@ -1763,12 +1764,12 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1763
1764
|
padding: 1rem 0;
|
|
1764
1765
|
margin: 1rem 0;
|
|
1765
1766
|
`)), K.join("");
|
|
1766
|
-
}, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe =
|
|
1767
|
+
}, ne = (m) => m === null || m instanceof Object && !Object.keys(m).length, oe = D(() => t.required ? t.required : t.property && "required" in t.property ? t.property.required : p == null ? void 0 : p.description.required), M = D(() => t.form ? Dt(
|
|
1767
1768
|
t.modelValue,
|
|
1768
1769
|
t.form,
|
|
1769
1770
|
oe.value,
|
|
1770
1771
|
p == null ? void 0 : p.description
|
|
1771
|
-
) : !0),
|
|
1772
|
+
) : !0), H = (m, L) => {
|
|
1772
1773
|
var K;
|
|
1773
1774
|
return (K = f.value) != null && K[m] && (typeof f.value[m].index != "number" || f.value[m].index === L) ? f.value[m].errors : null;
|
|
1774
1775
|
}, se = (m) => {
|
|
@@ -1779,34 +1780,34 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1779
1780
|
const K = te("clickable"), w = te("focus");
|
|
1780
1781
|
return n(), s("form", {
|
|
1781
1782
|
class: "form",
|
|
1782
|
-
style: be(`row-gap: ${e(
|
|
1783
|
+
style: be(`row-gap: ${e(V) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1783
1784
|
}, [
|
|
1784
|
-
m.$slots.header && !e(
|
|
1785
|
+
m.$slots.header && !e(V) ? (n(), s("header", Uo, [
|
|
1785
1786
|
O(m.$slots, "header", {}, void 0, !0)
|
|
1786
1787
|
])) : y("", !0),
|
|
1787
1788
|
O(m.$slots, "default", {}, void 0, !0),
|
|
1788
|
-
A("fieldset",
|
|
1789
|
-
(n(!0), s(
|
|
1790
|
-
var fe, we, Se,
|
|
1789
|
+
A("fieldset", Eo, [
|
|
1790
|
+
(n(!0), s(x, null, G(e(le), ([I, q]) => {
|
|
1791
|
+
var fe, Be, we, Se, xe, et, tt, nt, ot, at, lt, st, it;
|
|
1791
1792
|
return n(), s("div", {
|
|
1792
1793
|
key: `field-${I}`,
|
|
1793
1794
|
style: be(j(I, q)),
|
|
1794
1795
|
class: "form__field"
|
|
1795
1796
|
}, [
|
|
1796
|
-
(!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(
|
|
1797
|
+
(!("type" in q) || q.type !== "boolean" || m.searchOnly) && !q.noLabel && !e(Y) && !e(ee) ? (n(), s("label", Do, [
|
|
1797
1798
|
A("div", {
|
|
1798
1799
|
class: X({
|
|
1799
1800
|
"form__field-label": !0,
|
|
1800
1801
|
"form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
|
|
1801
1802
|
"form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!oe.value || e(Mt)(I, oe.value, m.modelValue))
|
|
1802
1803
|
})
|
|
1803
|
-
},
|
|
1804
|
+
}, C(q.description || e(R)(I)), 3),
|
|
1804
1805
|
q.hint ? (n(), s("div", {
|
|
1805
1806
|
key: 0,
|
|
1806
1807
|
innerHTML: q.hint
|
|
1807
1808
|
}, null, 8, Ho)) : y("", !0)
|
|
1808
1809
|
])) : y("", !0),
|
|
1809
|
-
m.$slots[`field-${I}`] ? O(m.$slots, `field-${I}`,
|
|
1810
|
+
m.$slots[`field-${I}`] ? O(m.$slots, `field-${I}`, E({
|
|
1810
1811
|
key: 1,
|
|
1811
1812
|
ref_for: !0
|
|
1812
1813
|
}, {
|
|
@@ -1814,10 +1815,10 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1814
1815
|
property: q,
|
|
1815
1816
|
propertyName: I,
|
|
1816
1817
|
modelValue: m.modelValue
|
|
1817
|
-
}), void 0, !0) : (
|
|
1818
|
+
}), void 0, !0) : (we = (Be = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : Be[I]) != null && we.component && e(T)[m.layout.fields[I].component.name] ? (n(), k(he(e(T)[m.layout.fields[I].component.name]), E({
|
|
1818
1819
|
key: 2,
|
|
1819
1820
|
modelValue: m.modelValue[I],
|
|
1820
|
-
"onUpdate:modelValue": (
|
|
1821
|
+
"onUpdate:modelValue": (N) => m.modelValue[I] = N,
|
|
1821
1822
|
ref_for: !0
|
|
1822
1823
|
}, {
|
|
1823
1824
|
readOnly: e(_),
|
|
@@ -1825,76 +1826,76 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1825
1826
|
propertyName: I,
|
|
1826
1827
|
...m.layout.fields[I].component.props || {}
|
|
1827
1828
|
}, {
|
|
1828
|
-
onInput: (
|
|
1829
|
-
onChange: L[0] || (L[0] = (
|
|
1829
|
+
onInput: (N) => o("input", I),
|
|
1830
|
+
onChange: L[0] || (L[0] = (N) => o("change", N))
|
|
1830
1831
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && m.searchOnly ? (n(), s("div", {
|
|
1831
1832
|
key: 3,
|
|
1832
1833
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1833
|
-
onInput: (
|
|
1834
|
-
onChange: L[1] || (L[1] = (
|
|
1834
|
+
onInput: (N) => o("input", I),
|
|
1835
|
+
onChange: L[1] || (L[1] = (N) => o("change", N))
|
|
1835
1836
|
}, [
|
|
1836
|
-
z(ke,
|
|
1837
|
+
z(ke, E({
|
|
1837
1838
|
modelValue: m.modelValue[I].$gte,
|
|
1838
|
-
"onUpdate:modelValue": (
|
|
1839
|
+
"onUpdate:modelValue": (N) => m.modelValue[I].$gte = N,
|
|
1839
1840
|
ref_for: !0
|
|
1840
1841
|
}, {
|
|
1841
1842
|
property: q,
|
|
1842
1843
|
propertyName: I
|
|
1843
1844
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1844
|
-
z(ke,
|
|
1845
|
+
z(ke, E({
|
|
1845
1846
|
modelValue: m.modelValue[I].$lte,
|
|
1846
|
-
"onUpdate:modelValue": (
|
|
1847
|
+
"onUpdate:modelValue": (N) => m.modelValue[I].$lte = N,
|
|
1847
1848
|
ref_for: !0
|
|
1848
1849
|
}, {
|
|
1849
1850
|
property: q,
|
|
1850
1851
|
propertyName: I
|
|
1851
1852
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1852
|
-
], 40,
|
|
1853
|
-
z(Ne,
|
|
1853
|
+
], 40, Qo)) : "type" in q && q.type === "boolean" && m.searchOnly ? (n(), s("div", Go, [
|
|
1854
|
+
z(Ne, E({ ref_for: !0 }, {
|
|
1854
1855
|
property: q,
|
|
1855
1856
|
propertyName: I
|
|
1856
1857
|
}, {
|
|
1857
1858
|
"boolean-ref": "",
|
|
1858
1859
|
"model-value": m.modelValue[I],
|
|
1859
|
-
onChange: L[2] || (L[2] = (
|
|
1860
|
-
"onUpdate:modelValue": (
|
|
1861
|
-
m.modelValue[I] =
|
|
1860
|
+
onChange: L[2] || (L[2] = (N) => o("change", N)),
|
|
1861
|
+
"onUpdate:modelValue": (N) => {
|
|
1862
|
+
m.modelValue[I] = N == "true" ? !0 : N == "false" ? !1 : null;
|
|
1862
1863
|
}
|
|
1863
1864
|
}), {
|
|
1864
1865
|
default: v(() => [
|
|
1865
|
-
A("option",
|
|
1866
|
-
A("option",
|
|
1866
|
+
A("option", Wo, C(e(R)("yes")), 1),
|
|
1867
|
+
A("option", Ko, C(e(R)("no")), 1)
|
|
1867
1868
|
]),
|
|
1868
1869
|
_: 2
|
|
1869
1870
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1870
|
-
])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), s("div",
|
|
1871
|
-
e(_) ? y("", !0) : (n(), s("div",
|
|
1872
|
-
z(
|
|
1871
|
+
])) : m.modelValue && "items" in q && !q.uniqueItems && (!("$ref" in q.items) || q.items.inline || q.items.$ref === "file") ? (n(), s("div", Xo, [
|
|
1872
|
+
e(_) ? y("", !0) : (n(), s("div", Yo, [
|
|
1873
|
+
z(ie, {
|
|
1873
1874
|
small: "",
|
|
1874
1875
|
variant: "alt",
|
|
1875
1876
|
icon: "plus",
|
|
1876
|
-
disabled: !("inline" in q.items && q.items.inline) && (((
|
|
1877
|
-
onClick: ze((
|
|
1878
|
-
m.modelValue[I] || (m.modelValue[I] = []), e(
|
|
1877
|
+
disabled: !("inline" in q.items && q.items.inline) && (((Se = m.modelValue[I]) == null ? void 0 : Se.length) >= q.maxItems || ne((et = m.modelValue[I]) == null ? void 0 : et[((xe = m.modelValue[I]) == null ? void 0 : xe.length) - 1])),
|
|
1878
|
+
onClick: ze((N) => {
|
|
1879
|
+
m.modelValue[I] || (m.modelValue[I] = []), e(Mo)(m.modelValue[I], q, e(l));
|
|
1879
1880
|
}, ["prevent"])
|
|
1880
1881
|
}, {
|
|
1881
1882
|
default: v(() => [
|
|
1882
|
-
Q(
|
|
1883
|
+
Q(C(e(R)("action.add", { capitalize: !0 })), 1)
|
|
1883
1884
|
]),
|
|
1884
1885
|
_: 2
|
|
1885
1886
|
}, 1032, ["disabled", "onClick"])
|
|
1886
1887
|
])),
|
|
1887
|
-
A("div",
|
|
1888
|
-
(n(!0), s(
|
|
1888
|
+
A("div", Jo, [
|
|
1889
|
+
(n(!0), s(x, null, G(m.modelValue[I], (N, Te) => {
|
|
1889
1890
|
var rt, ut, ct, dt, pt, _t;
|
|
1890
1891
|
return n(), s("div", {
|
|
1891
|
-
key: `rep-${I}-${e(
|
|
1892
|
+
key: `rep-${I}-${e(Ht)(N, Te)}`,
|
|
1892
1893
|
class: "form__array-item"
|
|
1893
1894
|
}, [
|
|
1894
|
-
A("div",
|
|
1895
|
-
(n(), k(he(e(vt)(q, e($))),
|
|
1896
|
-
modelValue: m.modelValue[I][
|
|
1897
|
-
"onUpdate:modelValue": (
|
|
1895
|
+
A("div", Zo, [
|
|
1896
|
+
(n(), k(he(e(vt)(q, e($))), E({
|
|
1897
|
+
modelValue: m.modelValue[I][Te],
|
|
1898
|
+
"onUpdate:modelValue": (je) => m.modelValue[I][Te] = je,
|
|
1898
1899
|
ref_for: !0
|
|
1899
1900
|
}, {
|
|
1900
1901
|
readOnly: e(_),
|
|
@@ -1903,28 +1904,28 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1903
1904
|
parentCollection: e(i),
|
|
1904
1905
|
parentPropertyName: m.parentPropertyName,
|
|
1905
1906
|
columns: ((ct = (ut = (rt = m.layout) == null ? void 0 : rt.fields) == null ? void 0 : ut[I]) == null ? void 0 : ct.optionsColumns) || ((_t = (pt = (dt = m.layout) == null ? void 0 : dt.fields) == null ? void 0 : pt.$default) == null ? void 0 : _t.optionsColumns),
|
|
1906
|
-
validationErrors:
|
|
1907
|
+
validationErrors: H(I, Te),
|
|
1907
1908
|
...q.componentProps || {}
|
|
1908
1909
|
}, {
|
|
1909
|
-
onInput: (
|
|
1910
|
-
onChange: L[3] || (L[3] = (
|
|
1910
|
+
onInput: (je) => o("input", I),
|
|
1911
|
+
onChange: L[3] || (L[3] = (je) => o("change", je))
|
|
1911
1912
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1912
1913
|
]),
|
|
1913
|
-
e(_) ? y("", !0) :
|
|
1914
|
+
e(_) ? y("", !0) : P((n(), k(Z, {
|
|
1914
1915
|
key: 0,
|
|
1915
1916
|
reactive: "",
|
|
1916
1917
|
icon: "trash",
|
|
1917
|
-
onClick: (
|
|
1918
|
+
onClick: (je) => e(Fo)(m.modelValue[I], Te)
|
|
1918
1919
|
}, null, 8, ["onClick"])), [
|
|
1919
1920
|
[K]
|
|
1920
1921
|
])
|
|
1921
1922
|
]);
|
|
1922
1923
|
}), 128))
|
|
1923
1924
|
])
|
|
1924
|
-
])) : m.modelValue ?
|
|
1925
|
+
])) : m.modelValue ? P((n(), k(he(e(vt)(q, e($))), E({
|
|
1925
1926
|
key: 6,
|
|
1926
1927
|
modelValue: m.modelValue[I],
|
|
1927
|
-
"onUpdate:modelValue": (
|
|
1928
|
+
"onUpdate:modelValue": (N) => m.modelValue[I] = N,
|
|
1928
1929
|
ref_for: !0
|
|
1929
1930
|
}, {
|
|
1930
1931
|
readOnly: e(_),
|
|
@@ -1934,23 +1935,23 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1934
1935
|
parentCollection: e(i),
|
|
1935
1936
|
columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[I]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
|
|
1936
1937
|
...q.componentProps || {},
|
|
1937
|
-
validationErrors:
|
|
1938
|
+
validationErrors: H(I)
|
|
1938
1939
|
}, {
|
|
1939
|
-
onInput: (
|
|
1940
|
-
onChange: L[4] || (L[4] = (
|
|
1941
|
-
onClipboardCopy: L[5] || (L[5] = (
|
|
1940
|
+
onInput: (N) => o("input", I),
|
|
1941
|
+
onChange: L[4] || (L[4] = (N) => o("change", N)),
|
|
1942
|
+
onClipboardCopy: L[5] || (L[5] = (N) => o("clipboardCopy", N))
|
|
1942
1943
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1943
1944
|
[w, se(q)]
|
|
1944
1945
|
]) : y("", !0),
|
|
1945
|
-
(it = f.value) != null && it[I] ? (n(), s("div",
|
|
1946
|
-
f.value[I].type ? (n(), s("span",
|
|
1947
|
-
f.value[I].detail ? (n(), s("span",
|
|
1946
|
+
(it = f.value) != null && it[I] ? (n(), s("div", Po, [
|
|
1947
|
+
f.value[I].type ? (n(), s("span", No, C(e(R)(`validation_error.${f.value[I].type}`)), 1)) : y("", !0),
|
|
1948
|
+
f.value[I].detail ? (n(), s("span", xo, C(e(R)(f.value[I].detail)), 1)) : y("", !0)
|
|
1948
1949
|
])) : y("", !0)
|
|
1949
1950
|
], 4);
|
|
1950
1951
|
}), 128))
|
|
1951
1952
|
]),
|
|
1952
1953
|
m.$slots.after ? O(m.$slots, "after", { key: 1 }, void 0, !0) : y("", !0),
|
|
1953
|
-
m.$slots.footer ? (n(), s("div",
|
|
1954
|
+
m.$slots.footer ? (n(), s("div", ea, [
|
|
1954
1955
|
O(m.$slots, "footer", de(ge({
|
|
1955
1956
|
isInsertReady: M.value
|
|
1956
1957
|
})), void 0, !0)
|
|
@@ -1959,11 +1960,11 @@ const zo = /* @__PURE__ */ W(Lo, [["__scopeId", "data-v-87145ef5"]]), vt = (c, r
|
|
|
1959
1960
|
};
|
|
1960
1961
|
}
|
|
1961
1962
|
});
|
|
1962
|
-
const
|
|
1963
|
+
const Qe = /* @__PURE__ */ W(ta, [["__scopeId", "data-v-d4645a62"]]), na = /* @__PURE__ */ U({
|
|
1963
1964
|
__name: "aeria-filter-panel",
|
|
1964
1965
|
emits: ["update:modelValue"],
|
|
1965
1966
|
setup(c, { emit: r }) {
|
|
1966
|
-
const l = r, t =
|
|
1967
|
+
const l = r, t = He(), o = Ie(), u = e(_e(Fe)), i = () => {
|
|
1967
1968
|
t.pagination.offset = 0, t.$actions.filter(), l("update:modelValue", !1);
|
|
1968
1969
|
const _ = Object.assign({
|
|
1969
1970
|
query: {}
|
|
@@ -1974,7 +1975,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
1974
1975
|
query: Qt(t)
|
|
1975
1976
|
}));
|
|
1976
1977
|
};
|
|
1977
|
-
return (_, p) => (n(), k(
|
|
1978
|
+
return (_, p) => (n(), k(Ae, {
|
|
1978
1979
|
"close-hint": "",
|
|
1979
1980
|
"fixed-right": "",
|
|
1980
1981
|
title: _.t("filter_by", { capitalize: !0 }),
|
|
@@ -1982,7 +1983,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
1982
1983
|
onOverlayClick: p[3] || (p[3] = (b) => l("update:modelValue", !1))
|
|
1983
1984
|
}, {
|
|
1984
1985
|
footer: v(() => [
|
|
1985
|
-
e(t).filtersCount > 0 ? (n(), k(
|
|
1986
|
+
e(t).filtersCount > 0 ? (n(), k(ie, {
|
|
1986
1987
|
key: 0,
|
|
1987
1988
|
variant: "transparent",
|
|
1988
1989
|
onClick: p[1] || (p[1] = (b) => {
|
|
@@ -1990,30 +1991,30 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
1990
1991
|
})
|
|
1991
1992
|
}, {
|
|
1992
1993
|
default: v(() => [
|
|
1993
|
-
Q(
|
|
1994
|
+
Q(C(_.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1994
1995
|
z($e, null, {
|
|
1995
1996
|
default: v(() => [
|
|
1996
|
-
Q(
|
|
1997
|
+
Q(C(e(t).filtersCount), 1)
|
|
1997
1998
|
]),
|
|
1998
1999
|
_: 1
|
|
1999
2000
|
})
|
|
2000
2001
|
]),
|
|
2001
2002
|
_: 1
|
|
2002
2003
|
})) : y("", !0),
|
|
2003
|
-
z(
|
|
2004
|
+
z(ie, {
|
|
2004
2005
|
large: "",
|
|
2005
2006
|
icon: "funnel",
|
|
2006
2007
|
disabled: !e(t).hasActiveFilters,
|
|
2007
2008
|
onClick: i
|
|
2008
2009
|
}, {
|
|
2009
2010
|
default: v(() => [
|
|
2010
|
-
Q(
|
|
2011
|
+
Q(C(_.t("action.filter", { capitalize: !0 })), 1)
|
|
2011
2012
|
]),
|
|
2012
2013
|
_: 1
|
|
2013
2014
|
}, 8, ["disabled"])
|
|
2014
2015
|
]),
|
|
2015
2016
|
default: v(() => [
|
|
2016
|
-
z(
|
|
2017
|
+
z(Qe, E({
|
|
2017
2018
|
modelValue: e(t).filters,
|
|
2018
2019
|
"onUpdate:modelValue": p[0] || (p[0] = (b) => e(t).filters = b)
|
|
2019
2020
|
}, {
|
|
@@ -2025,7 +2026,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2025
2026
|
_: 1
|
|
2026
2027
|
}, 8, ["title"]));
|
|
2027
2028
|
}
|
|
2028
|
-
}),
|
|
2029
|
+
}), oa = /* @__PURE__ */ U({
|
|
2029
2030
|
__name: "aeria-insert-panel",
|
|
2030
2031
|
props: {
|
|
2031
2032
|
collection: {},
|
|
@@ -2038,11 +2039,11 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2038
2039
|
},
|
|
2039
2040
|
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2040
2041
|
setup(c, { emit: r }) {
|
|
2041
|
-
const l = c, t = r, o =
|
|
2042
|
+
const l = c, t = r, o = re("meta"), u = l.collection || o.view.collection, i = re(u), _ = _e("individualActions", []);
|
|
2042
2043
|
Xe(() => {
|
|
2043
2044
|
l.modelValue && i.$actions.setItem(l.modelValue);
|
|
2044
2045
|
});
|
|
2045
|
-
const p =
|
|
2046
|
+
const p = D(() => l.form ? i.$actions.useProperties(l.form) : i.description.form ? i.$actions.useProperties(i.description.form) : i.properties), b = async () => {
|
|
2046
2047
|
const { error: f, result: $ } = await i.$actions.deepInsert();
|
|
2047
2048
|
f || (t("update:visible", !1), t("update:modelValue", $), t("insert", $), i.$actions.clearItem());
|
|
2048
2049
|
}, { t: d } = Lt(), a = () => {
|
|
@@ -2060,26 +2061,26 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2060
2061
|
f === null && t("update:visible", !1);
|
|
2061
2062
|
}), (f, $) => {
|
|
2062
2063
|
const T = te("clickable");
|
|
2063
|
-
return n(), k(
|
|
2064
|
+
return n(), k(Ae, {
|
|
2064
2065
|
"model-value": f.visible,
|
|
2065
2066
|
loading: e(i).loading.get,
|
|
2066
2067
|
onOverlayClick: a
|
|
2067
2068
|
}, ce({
|
|
2068
2069
|
extra: v(() => [
|
|
2069
|
-
z(Oe,
|
|
2070
|
+
z(Oe, E({
|
|
2070
2071
|
subject: e(i).item,
|
|
2071
|
-
actions: e(_).filter(({ action:
|
|
2072
|
+
actions: e(_).filter(({ action: V }) => V !== "spawnEdit"),
|
|
2072
2073
|
overlayLayer: 60
|
|
2073
2074
|
}, {
|
|
2074
|
-
onActionClick: $[2] || ($[2] = (
|
|
2075
|
+
onActionClick: $[2] || ($[2] = (V) => t("update:visible", !1))
|
|
2075
2076
|
}), {
|
|
2076
2077
|
default: v(({
|
|
2077
|
-
visible:
|
|
2078
|
+
visible: V
|
|
2078
2079
|
}) => [
|
|
2079
|
-
e(i).item._id ?
|
|
2080
|
+
e(i).item._id ? P((n(), k(Z, {
|
|
2080
2081
|
key: 0,
|
|
2081
2082
|
reactive: "",
|
|
2082
|
-
active:
|
|
2083
|
+
active: V,
|
|
2083
2084
|
icon: "dots-three"
|
|
2084
2085
|
}, null, 8, ["active"])), [
|
|
2085
2086
|
[T]
|
|
@@ -2089,9 +2090,9 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2089
2090
|
}, 16)
|
|
2090
2091
|
]),
|
|
2091
2092
|
default: v(() => [
|
|
2092
|
-
z(
|
|
2093
|
+
z(Qe, E({
|
|
2093
2094
|
modelValue: e(i).item,
|
|
2094
|
-
"onUpdate:modelValue": $[0] || ($[0] = (
|
|
2095
|
+
"onUpdate:modelValue": $[0] || ($[0] = (V) => e(i).item = V)
|
|
2095
2096
|
}, {
|
|
2096
2097
|
collection: e(u),
|
|
2097
2098
|
readOnly: f.readOnly,
|
|
@@ -2102,12 +2103,12 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2102
2103
|
}, {
|
|
2103
2104
|
focus: "",
|
|
2104
2105
|
onClipboardCopy: B,
|
|
2105
|
-
onAdd: $[1] || ($[1] = (
|
|
2106
|
+
onAdd: $[1] || ($[1] = (V) => V.preventDefault())
|
|
2106
2107
|
}), ce({ _: 2 }, [
|
|
2107
|
-
G(Object.keys(f.$slots).filter((
|
|
2108
|
-
name:
|
|
2109
|
-
fn: v((
|
|
2110
|
-
O(f.$slots,
|
|
2108
|
+
G(Object.keys(f.$slots).filter((V) => V.startsWith("field-")), (V) => ({
|
|
2109
|
+
name: V,
|
|
2110
|
+
fn: v((Y) => [
|
|
2111
|
+
O(f.$slots, V, de(ge(Y)))
|
|
2111
2112
|
])
|
|
2112
2113
|
}))
|
|
2113
2114
|
]), 1040, ["modelValue"])
|
|
@@ -2124,23 +2125,23 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2124
2125
|
f.readOnly ? void 0 : {
|
|
2125
2126
|
name: "footer",
|
|
2126
2127
|
fn: v(() => [
|
|
2127
|
-
z(
|
|
2128
|
+
z(ie, {
|
|
2128
2129
|
variant: "transparent",
|
|
2129
2130
|
onClick: a
|
|
2130
2131
|
}, {
|
|
2131
2132
|
default: v(() => [
|
|
2132
|
-
Q(
|
|
2133
|
+
Q(C(e(d)("action.cancel", { capitalize: !0 })), 1)
|
|
2133
2134
|
]),
|
|
2134
2135
|
_: 1
|
|
2135
2136
|
}),
|
|
2136
|
-
z(
|
|
2137
|
+
z(ie, {
|
|
2137
2138
|
large: "",
|
|
2138
2139
|
disabled: !e(i).isInsertReady || e(i).loading.get,
|
|
2139
2140
|
loading: e(i).loading.insert,
|
|
2140
2141
|
onClick: b
|
|
2141
2142
|
}, {
|
|
2142
2143
|
default: v(() => [
|
|
2143
|
-
Q(
|
|
2144
|
+
Q(C(e(d)("action.insert", { capitalize: !0 })), 1)
|
|
2144
2145
|
]),
|
|
2145
2146
|
_: 1
|
|
2146
2147
|
}, 8, ["disabled", "loading"])
|
|
@@ -2158,10 +2159,10 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2158
2159
|
}
|
|
2159
2160
|
r.filtersPreset = c.filters || {}, r.preferredTableProperties = c.table ? Array.from(c.table) : [], r.pagination.offset = 0;
|
|
2160
2161
|
}
|
|
2161
|
-
},
|
|
2162
|
+
}, aa = (c, r = {
|
|
2162
2163
|
persistInQuery: !0
|
|
2163
2164
|
}) => {
|
|
2164
|
-
const t =
|
|
2165
|
+
const t = Ie().currentRoute;
|
|
2165
2166
|
return ue(() => t.value.query.section, (o) => {
|
|
2166
2167
|
if (c) {
|
|
2167
2168
|
if (c.description.filtersPresets) {
|
|
@@ -2179,25 +2180,25 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2179
2180
|
}, {
|
|
2180
2181
|
immediate: !0
|
|
2181
2182
|
});
|
|
2182
|
-
},
|
|
2183
|
+
}, la = {
|
|
2183
2184
|
key: 0,
|
|
2184
2185
|
class: "table aeria-surface"
|
|
2185
|
-
},
|
|
2186
|
+
}, sa = { key: 0 }, ia = { key: 1 }, ra = { key: 0 }, ua = ["checked"], ca = {
|
|
2186
2187
|
key: 1,
|
|
2187
2188
|
style: { "text-align": "right" }
|
|
2188
|
-
},
|
|
2189
|
+
}, da = { key: 2 }, pa = { key: 3 }, _a = ["onClick"], ma = { key: 0 }, fa = ["value"], va = { class: "table__cell-mobile-label" }, ya = {
|
|
2189
2190
|
key: 0,
|
|
2190
2191
|
class: "table__cell-container"
|
|
2191
|
-
},
|
|
2192
|
+
}, ha = {
|
|
2192
2193
|
key: 1,
|
|
2193
2194
|
class: "table__cell-container"
|
|
2194
|
-
},
|
|
2195
|
+
}, ba = { class: "table__cell-grid" }, $a = { key: 0 }, ga = { key: 1 }, ka = { key: 0 }, Va = ["href"], Ca = { key: 3 }, Oa = { key: 1 }, Ia = { key: 2 }, Aa = { key: 0 }, Ba = { key: 1 }, wa = { key: 2 }, Sa = {
|
|
2195
2196
|
key: 1,
|
|
2196
2197
|
class: "no-print"
|
|
2197
|
-
},
|
|
2198
|
+
}, Ta = { class: "table__cell-actions" }, ja = {
|
|
2198
2199
|
key: 2,
|
|
2199
2200
|
class: "no-print table__mobile-actions"
|
|
2200
|
-
},
|
|
2201
|
+
}, Ra = ["id"], La = { key: 1 }, za = ["colspan"], qa = { class: "table__empty" }, Ma = /* @__PURE__ */ U({
|
|
2201
2202
|
__name: "aeria-table",
|
|
2202
2203
|
props: {
|
|
2203
2204
|
columns: {},
|
|
@@ -2209,123 +2210,127 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2209
2210
|
},
|
|
2210
2211
|
emits: ["itemClick"],
|
|
2211
2212
|
setup(c, { emit: r }) {
|
|
2212
|
-
const l = c, t = r, o = Ue(), u = l.collection || Me(), i = u ?
|
|
2213
|
+
const l = c, t = r, o = Ue(), u = l.collection || Me(), i = u ? re(typeof u == "string" ? u : u.value) : null, _ = D({
|
|
2213
2214
|
get: () => i == null ? void 0 : i.selected,
|
|
2214
2215
|
set: (f) => i == null ? void 0 : i.$actions.selectManyItems(f, !0)
|
|
2215
|
-
}), p =
|
|
2216
|
-
var
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2216
|
+
}), p = D(() => l.columns ? Object.keys(l.columns).length + Number(l.checkbox) : 0), b = (f, $) => f.button ? typeof f.button == "object" ? We($, f.button).satisfied : f.button : !1, d = (f) => {
|
|
2217
|
+
var T;
|
|
2218
|
+
const $ = (T = l.layout) == null ? void 0 : T.actions;
|
|
2219
|
+
return !o.value.xl || !$ || !l.actions ? [] : l.actions.filter((V) => {
|
|
2220
|
+
const Y = $[V.action];
|
|
2221
|
+
return Y && b(Y, f);
|
|
2220
2222
|
});
|
|
2221
2223
|
}, a = (f) => {
|
|
2222
|
-
var
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2224
|
+
var T;
|
|
2225
|
+
if (!l.actions)
|
|
2226
|
+
return [];
|
|
2227
|
+
const $ = (T = l.layout) == null ? void 0 : T.actions;
|
|
2228
|
+
return !o.value.xl || !$ ? l.actions : l.actions.filter((V) => {
|
|
2229
|
+
const Y = $[V.action];
|
|
2230
|
+
if (V.roles) {
|
|
2231
|
+
const ee = re("user");
|
|
2232
|
+
if (!gt(V.roles, ee.currentUser.roles))
|
|
2228
2233
|
return !1;
|
|
2229
2234
|
}
|
|
2230
|
-
return !b(
|
|
2231
|
-
})
|
|
2235
|
+
return !Y || !b(Y, f);
|
|
2236
|
+
});
|
|
2232
2237
|
}, B = (f, $) => {
|
|
2233
|
-
var
|
|
2234
|
-
const T = [],
|
|
2235
|
-
return
|
|
2238
|
+
var Y, ee;
|
|
2239
|
+
const T = [], V = (ee = (Y = l.layout) == null ? void 0 : Y.actions) == null ? void 0 : ee[$.action];
|
|
2240
|
+
return V != null && V.if && (We(
|
|
2236
2241
|
f,
|
|
2237
|
-
|
|
2242
|
+
V.if
|
|
2238
2243
|
).satisfied || T.push("display: none;")), T.join("");
|
|
2239
2244
|
};
|
|
2240
2245
|
return (f, $) => {
|
|
2241
|
-
var
|
|
2246
|
+
var V, Y, ee;
|
|
2242
2247
|
const T = te("clickable");
|
|
2243
|
-
return p.value > 0 || f.$slots.thead ? (n(), s("table",
|
|
2244
|
-
f.$slots.thead ? (n(), s("thead",
|
|
2248
|
+
return p.value > 0 || f.$slots.thead ? (n(), s("table", la, [
|
|
2249
|
+
f.$slots.thead ? (n(), s("thead", sa, [
|
|
2245
2250
|
O(f.$slots, "thead", {}, void 0, !0)
|
|
2246
|
-
])) : (n(), s("thead",
|
|
2251
|
+
])) : (n(), s("thead", ia, [
|
|
2247
2252
|
A("tr", null, [
|
|
2248
|
-
f.checkbox && e(i) && e(o).md ? (n(), s("th",
|
|
2253
|
+
f.checkbox && e(i) && e(o).md ? (n(), s("th", ra, [
|
|
2249
2254
|
A("input", {
|
|
2250
2255
|
type: "checkbox",
|
|
2251
2256
|
checked: e(i).selected.length > 0 && e(i).selected.length === e(i).itemsCount,
|
|
2252
2257
|
onChange: $[0] || ($[0] = (h) => e(i).$actions.selectAllItems(h.target.checked))
|
|
2253
|
-
}, null, 40,
|
|
2258
|
+
}, null, 40, ua)
|
|
2254
2259
|
])) : y("", !0),
|
|
2255
|
-
(n(!0), s(
|
|
2260
|
+
(n(!0), s(x, null, G(Object.entries(f.columns), ([h, F], le) => (n(), s("th", {
|
|
2256
2261
|
key: `header-${le}`,
|
|
2257
2262
|
class: "table__header"
|
|
2258
|
-
},
|
|
2259
|
-
(
|
|
2263
|
+
}, C(F.description || e(R)(h)), 1))), 128)),
|
|
2264
|
+
(V = f.actions) != null && V.length ? (n(), s("th", ca)) : y("", !0)
|
|
2260
2265
|
])
|
|
2261
2266
|
])),
|
|
2262
|
-
f.$slots.tbody ? (n(), s("tbody",
|
|
2267
|
+
f.$slots.tbody ? (n(), s("tbody", da, [
|
|
2263
2268
|
O(f.$slots, "tbody", {}, void 0, !0)
|
|
2264
|
-
])) : (n(), s("tbody",
|
|
2265
|
-
(n(!0), s(
|
|
2266
|
-
var
|
|
2269
|
+
])) : (n(), s("tbody", pa, [
|
|
2270
|
+
(n(!0), s(x, null, G(f.rows, (h) => {
|
|
2271
|
+
var F, le;
|
|
2267
2272
|
return n(), s("tr", {
|
|
2268
2273
|
key: h._id,
|
|
2269
2274
|
onClick: (S) => t("itemClick", h)
|
|
2270
2275
|
}, [
|
|
2271
|
-
e(i) && f.checkbox && e(o).md ? (n(), s("td",
|
|
2272
|
-
|
|
2276
|
+
e(i) && f.checkbox && e(o).md ? (n(), s("td", ma, [
|
|
2277
|
+
P(A("input", {
|
|
2273
2278
|
"onUpdate:modelValue": $[1] || ($[1] = (S) => _.value = S),
|
|
2274
2279
|
type: "checkbox",
|
|
2275
2280
|
value: h._id
|
|
2276
|
-
}, null, 8,
|
|
2281
|
+
}, null, 8, fa), [
|
|
2277
2282
|
[Bt, _.value]
|
|
2278
2283
|
])
|
|
2279
2284
|
])) : y("", !0),
|
|
2280
|
-
(n(!0), s(
|
|
2285
|
+
(n(!0), s(x, null, G(Object.entries(f.columns), ([S, g], j) => {
|
|
2281
2286
|
var ne, oe, M;
|
|
2282
2287
|
return n(), s("td", {
|
|
2283
2288
|
key: `column-${h._id}-${j}`
|
|
2284
2289
|
}, [
|
|
2285
|
-
A("div",
|
|
2286
|
-
`row-${S}` in f.$slots ? (n(), s("div",
|
|
2287
|
-
O(f.$slots, `row-${S}`,
|
|
2290
|
+
A("div", va, C(g.description || e(R)(S)), 1),
|
|
2291
|
+
`row-${S}` in f.$slots ? (n(), s("div", ya, [
|
|
2292
|
+
O(f.$slots, `row-${S}`, E({ ref_for: !0 }, {
|
|
2288
2293
|
store: e(i),
|
|
2289
2294
|
column: S,
|
|
2290
2295
|
property: g,
|
|
2291
2296
|
row: h
|
|
2292
2297
|
}), void 0, !0)
|
|
2293
|
-
])) : (n(), s("div",
|
|
2294
|
-
A("div",
|
|
2295
|
-
"type" in g && g.type === "boolean" ? (n(), s("div",
|
|
2296
|
-
h[S] ? (n(), k(
|
|
2298
|
+
])) : (n(), s("div", ha, [
|
|
2299
|
+
A("div", ba, [
|
|
2300
|
+
"type" in g && g.type === "boolean" ? (n(), s("div", $a, [
|
|
2301
|
+
h[S] ? (n(), k(Z, {
|
|
2297
2302
|
key: 0,
|
|
2298
2303
|
icon: "check",
|
|
2299
2304
|
"icon-classes": "aeria-blueish"
|
|
2300
2305
|
}, {
|
|
2301
2306
|
default: v(() => [
|
|
2302
|
-
Q(
|
|
2307
|
+
Q(C(e(R)("yes")), 1)
|
|
2303
2308
|
]),
|
|
2304
2309
|
_: 1
|
|
2305
|
-
})) : (n(), k(
|
|
2310
|
+
})) : (n(), k(Z, {
|
|
2306
2311
|
key: 1,
|
|
2307
2312
|
icon: "x",
|
|
2308
2313
|
"icon-classes": "aeria-redish"
|
|
2309
2314
|
}, {
|
|
2310
2315
|
default: v(() => [
|
|
2311
|
-
Q(
|
|
2316
|
+
Q(C(e(R)("no")), 1)
|
|
2312
2317
|
]),
|
|
2313
2318
|
_: 1
|
|
2314
2319
|
}))
|
|
2315
|
-
])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), s("div",
|
|
2316
|
-
h[S] ? (n(), s("div",
|
|
2317
|
-
"items" in g && h[S][0] && /^image/.test(h[S][0].type) ? (n(), k(
|
|
2320
|
+
])) : ((ne = e(me)(g)) == null ? void 0 : ne.$ref) === "file" ? (n(), s("div", ga, [
|
|
2321
|
+
h[S] ? (n(), s("div", ka, [
|
|
2322
|
+
"items" in g && h[S][0] && /^image/.test(h[S][0].type) ? (n(), k(De, {
|
|
2318
2323
|
key: 0,
|
|
2319
2324
|
modelValue: h[S][0].link,
|
|
2320
|
-
"onUpdate:modelValue": (
|
|
2325
|
+
"onUpdate:modelValue": (H) => h[S][0].link = H,
|
|
2321
2326
|
expandable: "",
|
|
2322
2327
|
meta: h[S][0],
|
|
2323
2328
|
alt: "Row image",
|
|
2324
2329
|
class: "table__picture"
|
|
2325
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[S].type) ? (n(), k(
|
|
2330
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[S].type) ? (n(), k(De, {
|
|
2326
2331
|
key: 1,
|
|
2327
2332
|
modelValue: h[S].link,
|
|
2328
|
-
"onUpdate:modelValue": (
|
|
2333
|
+
"onUpdate:modelValue": (H) => h[S].link = H,
|
|
2329
2334
|
expandable: "",
|
|
2330
2335
|
meta: h[S],
|
|
2331
2336
|
alt: "Row image",
|
|
@@ -2334,23 +2339,23 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2334
2339
|
key: 2,
|
|
2335
2340
|
href: h[S].link,
|
|
2336
2341
|
style: { "font-size": "10pt" }
|
|
2337
|
-
},
|
|
2338
|
-
])) : (n(), s("div",
|
|
2339
|
-
])) : (n(), s("div",
|
|
2340
|
-
e(i) ? (n(), s("span",
|
|
2342
|
+
}, C(h[S].filename), 9, Va)) : (n(), s("div", Ca, " - "))
|
|
2343
|
+
])) : (n(), s("div", Oa, " - "))
|
|
2344
|
+
])) : (n(), s("div", Ia, [
|
|
2345
|
+
e(i) ? (n(), s("span", Aa, C(e(i).$actions.formatValue({
|
|
2341
2346
|
value: h[S],
|
|
2342
2347
|
key: S,
|
|
2343
2348
|
property: g
|
|
2344
|
-
})), 1)) : (n(), s("span",
|
|
2345
|
-
((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), s("div",
|
|
2346
|
-
(n(!0), s(
|
|
2349
|
+
})), 1)) : (n(), s("span", Ba, C(Array.isArray(h[S]) ? h[S].filter((H) => !!H).join(", ") : [void 0, null].includes(h[S]) ? "-" : h[S]), 1)),
|
|
2350
|
+
((M = (oe = e(me)(g)) == null ? void 0 : oe.indexes) == null ? void 0 : M.length) > 1 ? (n(), s("div", wa, [
|
|
2351
|
+
(n(!0), s(x, null, G(e(me)(g).indexes.slice(1, 2), (H, se) => (n(), s("div", {
|
|
2347
2352
|
key: `subvalue-${se}`,
|
|
2348
2353
|
class: "table__cell-subvalue"
|
|
2349
|
-
},
|
|
2354
|
+
}, C(e(i).$actions.formatValue({
|
|
2350
2355
|
value: h[S],
|
|
2351
2356
|
key: S,
|
|
2352
2357
|
property: g,
|
|
2353
|
-
index:
|
|
2358
|
+
index: H
|
|
2354
2359
|
})), 1))), 128))
|
|
2355
2360
|
])) : y("", !0)
|
|
2356
2361
|
]))
|
|
@@ -2358,9 +2363,9 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2358
2363
|
]))
|
|
2359
2364
|
]);
|
|
2360
2365
|
}), 128)),
|
|
2361
|
-
(
|
|
2362
|
-
A("div",
|
|
2363
|
-
(n(!0), s(
|
|
2366
|
+
(F = f.actions) != null && F.length && e(o).md ? (n(), s("td", Sa, [
|
|
2367
|
+
A("div", Ta, [
|
|
2368
|
+
(n(!0), s(x, null, G(d(h), (S) => (n(), k(ie, {
|
|
2364
2369
|
key: `action-${S.action}`,
|
|
2365
2370
|
small: "",
|
|
2366
2371
|
variant: "alt",
|
|
@@ -2369,11 +2374,11 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2369
2374
|
onClick: (g) => S.click(h)
|
|
2370
2375
|
}, {
|
|
2371
2376
|
default: v(() => [
|
|
2372
|
-
Q(
|
|
2377
|
+
Q(C(e(R)(S.label)), 1)
|
|
2373
2378
|
]),
|
|
2374
2379
|
_: 2
|
|
2375
2380
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2376
|
-
a(h).length > 0 ? (n(), k(Oe,
|
|
2381
|
+
a(h).length > 0 ? (n(), k(Oe, E({
|
|
2377
2382
|
key: 0,
|
|
2378
2383
|
ref_for: !0
|
|
2379
2384
|
}, {
|
|
@@ -2383,7 +2388,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2383
2388
|
default: v(({
|
|
2384
2389
|
visible: S
|
|
2385
2390
|
}) => [
|
|
2386
|
-
|
|
2391
|
+
P(z(Z, {
|
|
2387
2392
|
reactive: "",
|
|
2388
2393
|
active: S,
|
|
2389
2394
|
icon: "dots-three"
|
|
@@ -2394,29 +2399,29 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2394
2399
|
_: 2
|
|
2395
2400
|
}, 1040)) : y("", !0)
|
|
2396
2401
|
])
|
|
2397
|
-
])) : (le = f.actions) != null && le.length ? (n(), s("td",
|
|
2402
|
+
])) : (le = f.actions) != null && le.length ? (n(), s("td", ja, [
|
|
2398
2403
|
A("div", {
|
|
2399
2404
|
class: "table__mobile-actions-grid",
|
|
2400
2405
|
style: be(`grid-template-columns: repeat(${d(h).length + (a(h).length ? 1 : 0)}, 1fr);`)
|
|
2401
2406
|
}, [
|
|
2402
|
-
(n(!0), s(
|
|
2407
|
+
(n(!0), s(x, null, G(d(h), (S) => (n(), k(ve, {
|
|
2403
2408
|
key: `action-${S.action}`,
|
|
2404
2409
|
class: "table__mobile-actions-button",
|
|
2405
2410
|
onClick: (g) => S.click(h)
|
|
2406
2411
|
}, {
|
|
2407
2412
|
default: v(() => [
|
|
2408
|
-
z(
|
|
2413
|
+
z(Z, {
|
|
2409
2414
|
icon: S.icon || "gear"
|
|
2410
2415
|
}, {
|
|
2411
2416
|
default: v(() => [
|
|
2412
|
-
Q(
|
|
2417
|
+
Q(C(e(R)(S.label)), 1)
|
|
2413
2418
|
]),
|
|
2414
2419
|
_: 2
|
|
2415
2420
|
}, 1032, ["icon"])
|
|
2416
2421
|
]),
|
|
2417
2422
|
_: 2
|
|
2418
2423
|
}, 1032, ["onClick"]))), 128)),
|
|
2419
|
-
a(h).length > 0 ? (n(), k(Oe,
|
|
2424
|
+
a(h).length > 0 ? (n(), k(Oe, E({
|
|
2420
2425
|
key: 0,
|
|
2421
2426
|
ref_for: !0
|
|
2422
2427
|
}, {
|
|
@@ -2424,7 +2429,7 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2424
2429
|
actions: a(h)
|
|
2425
2430
|
}), {
|
|
2426
2431
|
default: v(() => [
|
|
2427
|
-
z(
|
|
2432
|
+
z(Z, {
|
|
2428
2433
|
icon: "dots-three",
|
|
2429
2434
|
class: "table__mobile-actions-button"
|
|
2430
2435
|
})
|
|
@@ -2435,24 +2440,24 @@ const De = /* @__PURE__ */ W(ea, [["__scopeId", "data-v-e02fe7fe"]]), ta = /* @_
|
|
|
2435
2440
|
])) : y("", !0),
|
|
2436
2441
|
A("div", {
|
|
2437
2442
|
id: `dropdown-${h._id}`
|
|
2438
|
-
}, null, 8,
|
|
2439
|
-
], 8,
|
|
2443
|
+
}, null, 8, Ra)
|
|
2444
|
+
], 8, _a);
|
|
2440
2445
|
}), 128))
|
|
2441
2446
|
])),
|
|
2442
2447
|
A("tfoot", null, [
|
|
2443
|
-
f.$slots.tfoot ? O(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((
|
|
2448
|
+
f.$slots.tfoot ? O(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((Y = f.rows) != null && Y.length) && !((ee = e(i)) != null && ee.loading.getAll) ? (n(), s("tr", La, [
|
|
2444
2449
|
A("td", {
|
|
2445
2450
|
colspan: p.value + 1
|
|
2446
2451
|
}, [
|
|
2447
|
-
A("div",
|
|
2448
|
-
], 8,
|
|
2452
|
+
A("div", qa, C(e(R)("no_results", { capitalize: !0 })) + ". ", 1)
|
|
2453
|
+
], 8, za)
|
|
2449
2454
|
])) : y("", !0)
|
|
2450
2455
|
])
|
|
2451
2456
|
])) : y("", !0);
|
|
2452
2457
|
};
|
|
2453
2458
|
}
|
|
2454
2459
|
});
|
|
2455
|
-
const
|
|
2460
|
+
const Fa = /* @__PURE__ */ W(Ma, [["__scopeId", "data-v-0adf61ce"]]), Ua = /* @__PURE__ */ U({
|
|
2456
2461
|
__name: "aeria-tabular",
|
|
2457
2462
|
props: {
|
|
2458
2463
|
individualActions: {},
|
|
@@ -2460,7 +2465,7 @@ const Ma = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-5cd758ff"]]), Fa = /* @_
|
|
|
2460
2465
|
componentProps: {}
|
|
2461
2466
|
},
|
|
2462
2467
|
setup(c) {
|
|
2463
|
-
const r = c, l =
|
|
2468
|
+
const r = c, l = Le(), t = Me(), o = D(() => {
|
|
2464
2469
|
const u = {
|
|
2465
2470
|
collection: t,
|
|
2466
2471
|
checkbox: l.hasSelectionActions,
|
|
@@ -2473,7 +2478,7 @@ const Ma = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-5cd758ff"]]), Fa = /* @_
|
|
|
2473
2478
|
});
|
|
2474
2479
|
return (u, i) => (n(), s("div", null, [
|
|
2475
2480
|
u.$slots.inner ? O(u.$slots, "inner", { key: 0 }) : y("", !0),
|
|
2476
|
-
e(l).properties ? (n(), k(
|
|
2481
|
+
e(l).properties ? (n(), k(Fa, E({ key: 1 }, o.value, {
|
|
2477
2482
|
key: e(l).$id
|
|
2478
2483
|
}), ce({ _: 2 }, [
|
|
2479
2484
|
G(Object.keys(u.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
|
|
@@ -2485,7 +2490,7 @@ const Ma = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-5cd758ff"]]), Fa = /* @_
|
|
|
2485
2490
|
]), 1040)) : y("", !0)
|
|
2486
2491
|
]));
|
|
2487
2492
|
}
|
|
2488
|
-
}),
|
|
2493
|
+
}), Ea = /* @__PURE__ */ U({
|
|
2489
2494
|
__name: "aeria-grid",
|
|
2490
2495
|
props: {
|
|
2491
2496
|
list: { type: Boolean }
|
|
@@ -2501,10 +2506,10 @@ const Ma = /* @__PURE__ */ W(qa, [["__scopeId", "data-v-5cd758ff"]]), Fa = /* @_
|
|
|
2501
2506
|
], 2));
|
|
2502
2507
|
}
|
|
2503
2508
|
});
|
|
2504
|
-
const
|
|
2509
|
+
const Da = /* @__PURE__ */ W(Ea, [["__scopeId", "data-v-438c4aed"]]), Ha = { key: 0 }, Qa = {
|
|
2505
2510
|
key: 1,
|
|
2506
2511
|
class: "card__information"
|
|
2507
|
-
},
|
|
2512
|
+
}, Ga = /* @__PURE__ */ U({
|
|
2508
2513
|
__name: "aeria-grid",
|
|
2509
2514
|
props: {
|
|
2510
2515
|
individualActions: {},
|
|
@@ -2513,24 +2518,24 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
|
|
|
2513
2518
|
componentName: {}
|
|
2514
2519
|
},
|
|
2515
2520
|
setup(c) {
|
|
2516
|
-
const l = c.layoutOptions, t =
|
|
2521
|
+
const l = c.layoutOptions, t = Le(), o = (u) => Array.isArray(u) ? u[0] : u;
|
|
2517
2522
|
return (u, i) => {
|
|
2518
2523
|
const _ = te("clickable");
|
|
2519
|
-
return n(), k(
|
|
2524
|
+
return n(), k(Da, {
|
|
2520
2525
|
list: u.componentName === "list"
|
|
2521
2526
|
}, {
|
|
2522
2527
|
default: v(() => [
|
|
2523
|
-
(n(!0), s(
|
|
2528
|
+
(n(!0), s(x, null, G(e(t).items, (p) => (n(), k(pn, {
|
|
2524
2529
|
key: p,
|
|
2525
2530
|
inactive: !!(e(l).active && !p[e(l).active]),
|
|
2526
2531
|
horizontal: u.componentName === "list"
|
|
2527
2532
|
}, ce({
|
|
2528
2533
|
footer: v(() => [
|
|
2529
|
-
e(l).title ? (n(), s("div", Ha,
|
|
2530
|
-
e(l).information ? (n(), s("div",
|
|
2534
|
+
e(l).title ? (n(), s("div", Ha, C(p[e(l).title]), 1)) : y("", !0),
|
|
2535
|
+
e(l).information ? (n(), s("div", Qa, C(p[e(l).information]), 1)) : y("", !0)
|
|
2531
2536
|
]),
|
|
2532
2537
|
actions: v(() => [
|
|
2533
|
-
u.individualActions.length > 0 ? (n(), k(Oe,
|
|
2538
|
+
u.individualActions.length > 0 ? (n(), k(Oe, E({
|
|
2534
2539
|
key: 0,
|
|
2535
2540
|
ref_for: !0
|
|
2536
2541
|
}, {
|
|
@@ -2540,7 +2545,7 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
|
|
|
2540
2545
|
default: v(({
|
|
2541
2546
|
visible: b
|
|
2542
2547
|
}) => [
|
|
2543
|
-
|
|
2548
|
+
P(z(Z, {
|
|
2544
2549
|
reactive: "",
|
|
2545
2550
|
active: b,
|
|
2546
2551
|
icon: "dots-three-vertical"
|
|
@@ -2554,7 +2559,7 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
|
|
|
2554
2559
|
default: v(() => {
|
|
2555
2560
|
var b;
|
|
2556
2561
|
return [
|
|
2557
|
-
z(
|
|
2562
|
+
z(De, {
|
|
2558
2563
|
alt: "Item picture",
|
|
2559
2564
|
expandable: "",
|
|
2560
2565
|
url: (b = o(p[e(l).picture])) == null ? void 0 : b.link,
|
|
@@ -2567,12 +2572,12 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
|
|
|
2567
2572
|
e(l).badge && Array.isArray(p[e(l).badge]) ? {
|
|
2568
2573
|
name: "badge",
|
|
2569
2574
|
fn: v(() => [
|
|
2570
|
-
(n(!0), s(
|
|
2575
|
+
(n(!0), s(x, null, G(p[e(l).badge], (b) => (n(), k($e, {
|
|
2571
2576
|
key: `${p._id}-${b}`,
|
|
2572
2577
|
large: ""
|
|
2573
2578
|
}, {
|
|
2574
2579
|
default: v(() => [
|
|
2575
|
-
Q(
|
|
2580
|
+
Q(C(e(l).translateBadge ? e(R)(b) : b), 1)
|
|
2576
2581
|
]),
|
|
2577
2582
|
_: 2
|
|
2578
2583
|
}, 1024))), 128))
|
|
@@ -2583,7 +2588,7 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
|
|
|
2583
2588
|
fn: v(() => [
|
|
2584
2589
|
z($e, null, {
|
|
2585
2590
|
default: v(() => [
|
|
2586
|
-
Q(
|
|
2591
|
+
Q(C(e(l).translateBadge ? e(R)(p[e(l).badge]) : p[e(l).badge]), 1)
|
|
2587
2592
|
]),
|
|
2588
2593
|
_: 2
|
|
2589
2594
|
}, 1024)
|
|
@@ -2597,22 +2602,22 @@ const Ea = /* @__PURE__ */ W(Ua, [["__scopeId", "data-v-438c4aed"]]), Ha = { key
|
|
|
2597
2602
|
};
|
|
2598
2603
|
}
|
|
2599
2604
|
});
|
|
2600
|
-
const yt = /* @__PURE__ */ W(
|
|
2601
|
-
tabular:
|
|
2605
|
+
const yt = /* @__PURE__ */ W(Ga, [["__scopeId", "data-v-6ea2d642"]]), Wa = (c) => ({
|
|
2606
|
+
tabular: Ua,
|
|
2602
2607
|
grid: yt,
|
|
2603
2608
|
list: yt
|
|
2604
|
-
})[c], pe =
|
|
2605
|
-
|
|
2606
|
-
const Ve =
|
|
2609
|
+
})[c], pe = J(!1);
|
|
2610
|
+
J(!1);
|
|
2611
|
+
const Ve = J(!1), Re = J((...c) => null), ht = J(), Ka = (c) => (Ye("data-v-d5684d74"), c = c(), Je(), c), Xa = {
|
|
2607
2612
|
key: 2,
|
|
2608
2613
|
class: "crud__controls"
|
|
2609
|
-
},
|
|
2614
|
+
}, Ya = {
|
|
2610
2615
|
key: 0,
|
|
2611
2616
|
class: "crud__search"
|
|
2612
|
-
},
|
|
2617
|
+
}, Ja = { class: "crud__actions" }, Za = { class: "crud__context-badge" }, Pa = /* @__PURE__ */ Ka(() => /* @__PURE__ */ A("div", null, "Filtros", -1)), Na = { key: 0 }, xa = {
|
|
2613
2618
|
key: 3,
|
|
2614
2619
|
class: "crud__pagination"
|
|
2615
|
-
}, bt = 30,
|
|
2620
|
+
}, bt = 30, el = /* @__PURE__ */ U({
|
|
2616
2621
|
__name: "aeria-crud",
|
|
2617
2622
|
props: {
|
|
2618
2623
|
collection: {},
|
|
@@ -2628,21 +2633,21 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2628
2633
|
},
|
|
2629
2634
|
emits: ["uiEvent"],
|
|
2630
2635
|
setup(c, { emit: r }) {
|
|
2631
|
-
const l = c, t = r, o =
|
|
2636
|
+
const l = c, t = r, o = Ie(), u = Vt({
|
|
2632
2637
|
delay: 600
|
|
2633
|
-
}), i =
|
|
2638
|
+
}), i = re("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Pe(null, {
|
|
2634
2639
|
antecipate: 600
|
|
2635
2640
|
}), d = !_.value.md || l.scrollPagination;
|
|
2636
2641
|
d && ue(p, (g) => {
|
|
2637
|
-
g && a.pagination.recordsTotal > a.items.length && $.value < bt && ($.value += 1,
|
|
2642
|
+
g && a.pagination.recordsTotal > a.items.length && $.value < bt && ($.value += 1, V());
|
|
2638
2643
|
});
|
|
2639
|
-
const a =
|
|
2640
|
-
|
|
2644
|
+
const a = Gt(l.collection);
|
|
2645
|
+
aa(a, {
|
|
2641
2646
|
persistInQuery: !l.noQueryPersistence
|
|
2642
2647
|
});
|
|
2643
|
-
const B = Ze(), f = l.action ? e(l.action) :
|
|
2644
|
-
|
|
2645
|
-
const $ =
|
|
2648
|
+
const B = Ze(), f = l.action ? e(l.action) : Wt(a, o, B);
|
|
2649
|
+
Re.value = f[0], ht.value = f[1];
|
|
2650
|
+
const $ = J(0), T = J(!1), V = async (g) => {
|
|
2646
2651
|
a.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || a.$filters), Object.assign(a.activeFilters, a.filtersPreset);
|
|
2647
2652
|
const j = {
|
|
2648
2653
|
filters: a.activeFilters,
|
|
@@ -2654,15 +2659,15 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2654
2659
|
const { error: ne, result: oe } = await a.$actions.retrieveItems(j);
|
|
2655
2660
|
if (ne)
|
|
2656
2661
|
return;
|
|
2657
|
-
const { data: M, pagination:
|
|
2658
|
-
a.pagination.recordsCount =
|
|
2659
|
-
},
|
|
2662
|
+
const { data: M, pagination: H } = oe;
|
|
2663
|
+
a.pagination.recordsCount = H.recordsCount, a.pagination.recordsTotal = H.recordsTotal, $.value === 0 && a.items.splice(0), a.items.push(...M), a.loading.getAll = !1, T.value = !0;
|
|
2664
|
+
}, Y = async (g) => {
|
|
2660
2665
|
o.push(qe(o.currentRoute.value, {
|
|
2661
2666
|
query: {
|
|
2662
2667
|
offset: g.offset,
|
|
2663
2668
|
limit: g.limit
|
|
2664
2669
|
}
|
|
2665
|
-
})), a.pagination.offset = g.offset, a.pagination.limit = g.limit,
|
|
2670
|
+
})), a.pagination.offset = g.offset, a.pagination.limit = g.limit, V();
|
|
2666
2671
|
}, ee = _e("noResultsComponent", null);
|
|
2667
2672
|
ue(() => [
|
|
2668
2673
|
o.currentRoute.value.path,
|
|
@@ -2672,8 +2677,8 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2672
2677
|
return;
|
|
2673
2678
|
const ne = o.currentRoute.value;
|
|
2674
2679
|
if (i.view.title = l.collection, i.view.collection = l.collection, !l.noFetch && (!ne.query._popstate || a.itemsCount === 0)) {
|
|
2675
|
-
const oe =
|
|
2676
|
-
Object.keys(oe).length > 0 && Object.assign(a.filters, oe), await
|
|
2680
|
+
const oe = Kt(a, ne);
|
|
2681
|
+
Object.keys(oe).length > 0 && Object.assign(a.filters, oe), await V();
|
|
2677
2682
|
}
|
|
2678
2683
|
}, {
|
|
2679
2684
|
immediate: !0,
|
|
@@ -2688,13 +2693,13 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2688
2693
|
$search: `"${g}"`,
|
|
2689
2694
|
$caseSensitive: !1
|
|
2690
2695
|
}
|
|
2691
|
-
}),
|
|
2696
|
+
}), V({
|
|
2692
2697
|
offset: 0
|
|
2693
|
-
})) : (a.filters = Ce(a.freshFilters), $.value = 0,
|
|
2698
|
+
})) : (a.filters = Ce(a.freshFilters), $.value = 0, V())));
|
|
2694
2699
|
ue(() => a.textQuery, (g) => {
|
|
2695
2700
|
h(g);
|
|
2696
2701
|
});
|
|
2697
|
-
const
|
|
2702
|
+
const F = (g) => {
|
|
2698
2703
|
g.currentLayout = g.currentLayout === "tabular" ? g.description.layout.name : "tabular";
|
|
2699
2704
|
};
|
|
2700
2705
|
wt(() => {
|
|
@@ -2716,15 +2721,15 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2716
2721
|
a.$actions.setItem(j.params), pe.value = "edit";
|
|
2717
2722
|
else if (j.name === "duplicate") {
|
|
2718
2723
|
await ne;
|
|
2719
|
-
const M = Object.entries(a.item).reduce((
|
|
2724
|
+
const M = Object.entries(a.item).reduce((H, [se, ae]) => {
|
|
2720
2725
|
if (!(se in a.properties))
|
|
2721
2726
|
return {
|
|
2722
|
-
...
|
|
2727
|
+
...H,
|
|
2723
2728
|
[se]: ae
|
|
2724
2729
|
};
|
|
2725
2730
|
const m = a.properties[se];
|
|
2726
2731
|
if (m.readOnly)
|
|
2727
|
-
return
|
|
2732
|
+
return H;
|
|
2728
2733
|
const L = (K) => {
|
|
2729
2734
|
const w = me(m);
|
|
2730
2735
|
if (!w)
|
|
@@ -2738,7 +2743,7 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2738
2743
|
return K;
|
|
2739
2744
|
};
|
|
2740
2745
|
return ae = Array.isArray(ae) ? ae.map(L) : L(ae), {
|
|
2741
|
-
...
|
|
2746
|
+
...H,
|
|
2742
2747
|
[se]: ae
|
|
2743
2748
|
};
|
|
2744
2749
|
}, {});
|
|
@@ -2750,20 +2755,20 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2750
2755
|
}), ue(() => pe, ({ value: g }) => {
|
|
2751
2756
|
g === !1 && (i.view.collection = l.collection, a.$actions.clearItem());
|
|
2752
2757
|
});
|
|
2753
|
-
const le =
|
|
2754
|
-
click:
|
|
2758
|
+
const le = D(() => a.individualActions.map((g) => ({
|
|
2759
|
+
click: Re.value(g),
|
|
2755
2760
|
...g
|
|
2756
|
-
}))), S =
|
|
2757
|
-
return ye(Fe,
|
|
2758
|
-
var M,
|
|
2761
|
+
}))), S = D(() => a.actions.filter((g) => !g.button));
|
|
2762
|
+
return ye(Fe, D(() => l.collection)), ye("individualActions", le), (g, j) => {
|
|
2763
|
+
var M, H, se, ae, m, L, K;
|
|
2759
2764
|
const ne = te("clickable"), oe = te("loading");
|
|
2760
|
-
return n(), s(
|
|
2761
|
-
e(Ve) ? (n(), k(
|
|
2765
|
+
return n(), s(x, null, [
|
|
2766
|
+
e(Ve) ? (n(), k(na, {
|
|
2762
2767
|
key: e(a).$id,
|
|
2763
2768
|
modelValue: e(Ve),
|
|
2764
2769
|
"onUpdate:modelValue": j[0] || (j[0] = (w) => mt(Ve) ? Ve.value = w : null)
|
|
2765
2770
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2766
|
-
e(pe) ? (n(), k(
|
|
2771
|
+
e(pe) ? (n(), k(oa, {
|
|
2767
2772
|
key: 1,
|
|
2768
2773
|
visible: e(pe),
|
|
2769
2774
|
"onUpdate:visible": j[1] || (j[1] = (w) => mt(pe) ? pe.value = w : null),
|
|
@@ -2771,7 +2776,7 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2771
2776
|
onCancel: j[2] || (j[2] = (w) => pe.value = !1)
|
|
2772
2777
|
}, ce({
|
|
2773
2778
|
header: v(() => [
|
|
2774
|
-
A("span", null,
|
|
2779
|
+
A("span", null, C((() => {
|
|
2775
2780
|
switch (e(pe)) {
|
|
2776
2781
|
case "add":
|
|
2777
2782
|
return e(R)("action.add", { capitalize: !0 });
|
|
@@ -2782,7 +2787,7 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2782
2787
|
return e(R)("action.edit", { capitalize: !0 });
|
|
2783
2788
|
}
|
|
2784
2789
|
})()), 1),
|
|
2785
|
-
A("span", null, " " +
|
|
2790
|
+
A("span", null, " " + C(e(R)(e(i).view.collection)), 1)
|
|
2786
2791
|
]),
|
|
2787
2792
|
_: 2
|
|
2788
2793
|
}, [
|
|
@@ -2793,9 +2798,9 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2793
2798
|
])
|
|
2794
2799
|
}))
|
|
2795
2800
|
]), 1032, ["visible"])) : y("", !0),
|
|
2796
|
-
!g.noActions && (e(a).description.search || Object.keys(e(a).availableFilters).length > 0 || ((M = e(a)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(a).description.layout && ((
|
|
2797
|
-
e(a).description.search ? (n(), s("div",
|
|
2798
|
-
z(ke,
|
|
2801
|
+
!g.noActions && (e(a).description.search || Object.keys(e(a).availableFilters).length > 0 || ((M = e(a)) == null ? void 0 : M.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(a).description.layout && ((H = e(a).description.layout) == null ? void 0 : H.name) !== "tabular") ? (n(), s("div", Xa, [
|
|
2802
|
+
e(a).description.search ? (n(), s("div", Ya, [
|
|
2803
|
+
z(ke, E({
|
|
2799
2804
|
modelValue: e(a).textQuery,
|
|
2800
2805
|
"onUpdate:modelValue": j[3] || (j[3] = (w) => e(a).textQuery = w)
|
|
2801
2806
|
}, {
|
|
@@ -2806,17 +2811,17 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2806
2811
|
}
|
|
2807
2812
|
}), null, 16, ["modelValue"])
|
|
2808
2813
|
])) : y("", !0),
|
|
2809
|
-
A("div",
|
|
2814
|
+
A("div", Ja, [
|
|
2810
2815
|
S.value.length > 0 || !g.noLayoutToggle && e(a).description.layout && ((se = e(a).description.layout) == null ? void 0 : se.name) !== "tabular" ? (n(), k(Oe, { key: 0 }, ce({
|
|
2811
2816
|
default: v(() => [
|
|
2812
|
-
z(
|
|
2817
|
+
z(ie, {
|
|
2813
2818
|
variant: "alt",
|
|
2814
2819
|
icon: "sliders"
|
|
2815
2820
|
}, {
|
|
2816
2821
|
default: v(() => [
|
|
2817
2822
|
e(a).filtersCount ? (n(), k($e, { key: 0 }, {
|
|
2818
2823
|
default: v(() => [
|
|
2819
|
-
Q(
|
|
2824
|
+
Q(C(e(a).filtersCount), 1)
|
|
2820
2825
|
]),
|
|
2821
2826
|
_: 1
|
|
2822
2827
|
})) : y("", !0)
|
|
@@ -2829,21 +2834,21 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2829
2834
|
Object.keys(e(a).availableFilters).length > 0 ? {
|
|
2830
2835
|
name: "filter",
|
|
2831
2836
|
fn: v(() => [
|
|
2832
|
-
|
|
2837
|
+
P((n(), k(Z, {
|
|
2833
2838
|
icon: "funnel",
|
|
2834
2839
|
onClick: j[4] || (j[4] = (w) => Ve.value = !0)
|
|
2835
2840
|
}, {
|
|
2836
2841
|
default: v(() => [
|
|
2837
|
-
Q(
|
|
2842
|
+
Q(C(e(R)("filters", { capitalize: !0 })), 1)
|
|
2838
2843
|
]),
|
|
2839
2844
|
_: 1
|
|
2840
2845
|
})), [
|
|
2841
2846
|
[ne]
|
|
2842
2847
|
]),
|
|
2843
|
-
A("div",
|
|
2848
|
+
A("div", Za, [
|
|
2844
2849
|
e(a).filtersCount ? (n(), k($e, { key: 0 }, {
|
|
2845
2850
|
default: v(() => [
|
|
2846
|
-
Q(
|
|
2851
|
+
Q(C(e(a).filtersCount), 1)
|
|
2847
2852
|
]),
|
|
2848
2853
|
_: 1
|
|
2849
2854
|
})) : y("", !0)
|
|
@@ -2854,12 +2859,12 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2854
2859
|
!g.noLayoutToggle && e(a).description.layout && ((ae = e(a).description.layout) == null ? void 0 : ae.name) !== "tabular" ? {
|
|
2855
2860
|
name: "layout-toggle",
|
|
2856
2861
|
fn: v(() => [
|
|
2857
|
-
|
|
2862
|
+
P((n(), k(Z, {
|
|
2858
2863
|
icon: "table",
|
|
2859
|
-
onClick: j[5] || (j[5] = (w) =>
|
|
2864
|
+
onClick: j[5] || (j[5] = (w) => F(e(a)))
|
|
2860
2865
|
}, {
|
|
2861
2866
|
default: v(() => [
|
|
2862
|
-
Q(
|
|
2867
|
+
Q(C(e(R)("change_layout", { capitalize: !0 })), 1)
|
|
2863
2868
|
]),
|
|
2864
2869
|
_: 1
|
|
2865
2870
|
})), [
|
|
@@ -2871,77 +2876,77 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2871
2876
|
G(S.value, (w, I) => ({
|
|
2872
2877
|
name: `action-${I}`,
|
|
2873
2878
|
fn: v(() => [
|
|
2874
|
-
w ? (n(), k(
|
|
2879
|
+
w ? (n(), k(Z, {
|
|
2875
2880
|
key: 0,
|
|
2876
2881
|
icon: w.icon || "gear",
|
|
2877
2882
|
disabled: e(a).selected.length === 0 && "selection" in w && w.selection,
|
|
2878
|
-
onClick: (q) => e(
|
|
2883
|
+
onClick: (q) => e(Re)(w)({ _id: e(a).selected.map((fe) => fe._id) })
|
|
2879
2884
|
}, {
|
|
2880
2885
|
default: v(() => [
|
|
2881
|
-
Q(
|
|
2886
|
+
Q(C(e(R)(w.label, { capitalize: !0 })), 1)
|
|
2882
2887
|
]),
|
|
2883
2888
|
_: 2
|
|
2884
2889
|
}, 1032, ["icon", "disabled", "onClick"])) : y("", !0)
|
|
2885
2890
|
])
|
|
2886
2891
|
}))
|
|
2887
|
-
]), 1024)) : Object.keys(e(a).availableFilters).length > 0 ? (n(), k(
|
|
2892
|
+
]), 1024)) : Object.keys(e(a).availableFilters).length > 0 ? (n(), k(ie, {
|
|
2888
2893
|
key: 1,
|
|
2889
2894
|
variant: "alt",
|
|
2890
2895
|
icon: "funnel",
|
|
2891
2896
|
onClick: j[6] || (j[6] = (w) => Ve.value = !0)
|
|
2892
2897
|
}, {
|
|
2893
2898
|
default: v(() => [
|
|
2894
|
-
|
|
2899
|
+
Pa,
|
|
2895
2900
|
e(a).filtersCount ? (n(), k($e, { key: 0 }, {
|
|
2896
2901
|
default: v(() => [
|
|
2897
|
-
Q(
|
|
2902
|
+
Q(C(e(a).filtersCount), 1)
|
|
2898
2903
|
]),
|
|
2899
2904
|
_: 1
|
|
2900
2905
|
})) : y("", !0)
|
|
2901
2906
|
]),
|
|
2902
2907
|
_: 1
|
|
2903
2908
|
})) : y("", !0),
|
|
2904
|
-
(n(!0), s(
|
|
2909
|
+
(n(!0), s(x, null, G(e(a).actions.filter((w) => w.button), (w, I) => (n(), k(ie, {
|
|
2905
2910
|
key: `action-${I}`,
|
|
2906
2911
|
icon: w.icon,
|
|
2907
2912
|
disabled: e(a).selected.length === 0 && "selection" in w && w.selection,
|
|
2908
|
-
onClick: (q) => e(
|
|
2913
|
+
onClick: (q) => e(Re)(w)({ _id: e(a).selected.map((fe) => fe._id) })
|
|
2909
2914
|
}, {
|
|
2910
2915
|
default: v(() => [
|
|
2911
|
-
Q(
|
|
2916
|
+
Q(C(e(R)(w.label, { capitalize: !0 })), 1)
|
|
2912
2917
|
]),
|
|
2913
2918
|
_: 2
|
|
2914
2919
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2915
2920
|
g.$slots.actions ? O(g.$slots, "actions", { key: 2 }, void 0, !0) : y("", !0)
|
|
2916
2921
|
])
|
|
2917
2922
|
])) : y("", !0),
|
|
2918
|
-
|
|
2919
|
-
e(a).itemsCount === 0 && !e(a).loading.getAll && T.value && (e(ee) || g.$slots.empty) ? (n(), s("div",
|
|
2920
|
-
e(ee) ? (n(), k(he(e(ee)), de(
|
|
2923
|
+
P((n(), s("div", null, [
|
|
2924
|
+
e(a).itemsCount === 0 && !e(a).loading.getAll && T.value && (e(ee) || g.$slots.empty) ? (n(), s("div", Na, [
|
|
2925
|
+
e(ee) ? (n(), k(he(e(ee)), de(E({ key: 0 }, {
|
|
2921
2926
|
collection: e(a).$id
|
|
2922
2927
|
})), {
|
|
2923
2928
|
default: v(() => [
|
|
2924
|
-
e(a).filtersCount === 0 && e(a).description.actions && "spawnAdd" in e(a).description.actions ? (n(), k(
|
|
2929
|
+
e(a).filtersCount === 0 && e(a).description.actions && "spawnAdd" in e(a).description.actions ? (n(), k(ie, {
|
|
2925
2930
|
key: 0,
|
|
2926
2931
|
icon: "plus",
|
|
2927
|
-
onClick: j[7] || (j[7] = (w) => e(
|
|
2932
|
+
onClick: j[7] || (j[7] = (w) => e(Re)({
|
|
2928
2933
|
action: "spawnAdd",
|
|
2929
2934
|
event: "spawnAdd"
|
|
2930
2935
|
})())
|
|
2931
2936
|
}, {
|
|
2932
2937
|
default: v(() => [
|
|
2933
|
-
Q(
|
|
2938
|
+
Q(C(e(R)("add_first_item", { capitalize: !0 })), 1)
|
|
2934
2939
|
]),
|
|
2935
2940
|
_: 1
|
|
2936
2941
|
})) : y("", !0)
|
|
2937
2942
|
]),
|
|
2938
2943
|
_: 1
|
|
2939
|
-
}, 16)) : O(g.$slots, "empty", de(
|
|
2944
|
+
}, 16)) : O(g.$slots, "empty", de(E({ key: 1 }, {
|
|
2940
2945
|
collection: e(a).$id
|
|
2941
2946
|
})), void 0, !0)
|
|
2942
|
-
])) : g.$slots.component ? O(g.$slots, "component", de(
|
|
2947
|
+
])) : g.$slots.component ? O(g.$slots, "component", de(E({ key: 1 }, {
|
|
2943
2948
|
store: e(a)
|
|
2944
|
-
})), void 0, !0) : (n(), k(he(e(
|
|
2949
|
+
})), void 0, !0) : (n(), k(he(e(Wa)(((m = g.layout) == null ? void 0 : m.name) || e(a).$currentLayout)), E({ key: 2 }, {
|
|
2945
2950
|
individualActions: le.value,
|
|
2946
2951
|
layoutOptions: ((L = g.layout) == null ? void 0 : L.options) || e(a).layout.options,
|
|
2947
2952
|
componentProps: g.componentProps
|
|
@@ -2965,27 +2970,27 @@ const Ve = Y(!1), Le = Y((...c) => null), ht = Y(), Wa = (c) => (Ye("data-v-ece8
|
|
|
2965
2970
|
])), [
|
|
2966
2971
|
[oe, (!e(d) || $.value === bt) && e(a).loading.getAll]
|
|
2967
2972
|
]),
|
|
2968
|
-
!e(a).loading.getAll && e(a).itemsCount > 0 ? (n(), s("div",
|
|
2969
|
-
z(
|
|
2973
|
+
!e(a).loading.getAll && e(a).itemsCount > 0 ? (n(), s("div", xa, [
|
|
2974
|
+
z(Un, {
|
|
2970
2975
|
pagination: e(a).pagination,
|
|
2971
|
-
onPaginate:
|
|
2976
|
+
onPaginate: Y
|
|
2972
2977
|
}, null, 8, ["pagination"])
|
|
2973
2978
|
])) : y("", !0)
|
|
2974
2979
|
], 64);
|
|
2975
2980
|
};
|
|
2976
2981
|
}
|
|
2977
2982
|
});
|
|
2978
|
-
const
|
|
2983
|
+
const ql = /* @__PURE__ */ W(el, [["__scopeId", "data-v-d5684d74"]]), tl = { class: "prompt" }, nl = /* @__PURE__ */ U({
|
|
2979
2984
|
__name: "aeria-prompt",
|
|
2980
2985
|
props: {
|
|
2981
2986
|
title: {},
|
|
2982
2987
|
options: {}
|
|
2983
2988
|
},
|
|
2984
2989
|
setup(c) {
|
|
2985
|
-
const r =
|
|
2990
|
+
const r = re("meta"), l = (t, o) => {
|
|
2986
2991
|
r.$actions.fulfillPrompt(t, o);
|
|
2987
2992
|
};
|
|
2988
|
-
return (t, o) => (n(), k(
|
|
2993
|
+
return (t, o) => (n(), k(Ae, {
|
|
2989
2994
|
float: "",
|
|
2990
2995
|
"fill-footer": "",
|
|
2991
2996
|
"close-hint": !1,
|
|
@@ -2996,7 +3001,7 @@ const zl = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-ece8263c"]]), el = { cla
|
|
|
2996
3001
|
class: "prompt__options",
|
|
2997
3002
|
style: be(`grid-template-columns: repeat(${Object.keys(t.options).length}, 1fr)`)
|
|
2998
3003
|
}, [
|
|
2999
|
-
(n(!0), s(
|
|
3004
|
+
(n(!0), s(x, null, G(Object.entries(t.options), ([u, i], _) => (n(), k(ve, {
|
|
3000
3005
|
key: `option-${_}`,
|
|
3001
3006
|
class: X(`
|
|
3002
3007
|
prompt__option
|
|
@@ -3005,14 +3010,14 @@ const zl = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-ece8263c"]]), el = { cla
|
|
|
3005
3010
|
onClick: (p) => i.click ? i.click(u, i) : l(u, i)
|
|
3006
3011
|
}, {
|
|
3007
3012
|
default: v(() => [
|
|
3008
|
-
Q(
|
|
3013
|
+
Q(C(i.title), 1)
|
|
3009
3014
|
]),
|
|
3010
3015
|
_: 2
|
|
3011
3016
|
}, 1032, ["class", "onClick"]))), 128))
|
|
3012
3017
|
], 4)
|
|
3013
3018
|
]),
|
|
3014
3019
|
default: v(() => [
|
|
3015
|
-
A("div",
|
|
3020
|
+
A("div", tl, [
|
|
3016
3021
|
O(t.$slots, "default", {}, void 0, !0)
|
|
3017
3022
|
])
|
|
3018
3023
|
]),
|
|
@@ -3021,14 +3026,14 @@ const zl = /* @__PURE__ */ W(xa, [["__scopeId", "data-v-ece8263c"]]), el = { cla
|
|
|
3021
3026
|
t.title ? {
|
|
3022
3027
|
name: "title",
|
|
3023
3028
|
fn: v(() => [
|
|
3024
|
-
Q(
|
|
3029
|
+
Q(C(t.title), 1)
|
|
3025
3030
|
]),
|
|
3026
3031
|
key: "0"
|
|
3027
3032
|
} : void 0
|
|
3028
3033
|
]), 1024));
|
|
3029
3034
|
}
|
|
3030
3035
|
});
|
|
3031
|
-
const
|
|
3036
|
+
const ol = /* @__PURE__ */ W(nl, [["__scopeId", "data-v-c069c1ef"]]), al = { class: "toast__content" }, ll = { class: "toast__time" }, sl = /* @__PURE__ */ U({
|
|
3032
3037
|
__name: "aeria-toast",
|
|
3033
3038
|
props: {
|
|
3034
3039
|
idx: {},
|
|
@@ -3037,10 +3042,10 @@ const nl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-c069c1ef"]]), ol = { cla
|
|
|
3037
3042
|
icon: {}
|
|
3038
3043
|
},
|
|
3039
3044
|
setup(c) {
|
|
3040
|
-
const r =
|
|
3045
|
+
const r = re("meta");
|
|
3041
3046
|
return (l, t) => {
|
|
3042
3047
|
const o = te("clickable");
|
|
3043
|
-
return
|
|
3048
|
+
return P((n(), s("div", {
|
|
3044
3049
|
class: X({
|
|
3045
3050
|
toast: !0,
|
|
3046
3051
|
"toast--animate": e(r).toasts[0].itr === l.itr
|
|
@@ -3048,13 +3053,13 @@ const nl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-c069c1ef"]]), ol = { cla
|
|
|
3048
3053
|
onAnimationend: t[0] || (t[0] = (u) => e(r).$actions.popToast()),
|
|
3049
3054
|
onClick: t[1] || (t[1] = (u) => e(r).$actions.popToast(l.itr))
|
|
3050
3055
|
}, [
|
|
3051
|
-
z(
|
|
3056
|
+
z(Z, E(
|
|
3052
3057
|
l.icon ? { icon: l.icon } : { icon: "warning-circle" },
|
|
3053
3058
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3054
3059
|
), null, 16),
|
|
3055
|
-
A("div",
|
|
3060
|
+
A("div", al, [
|
|
3056
3061
|
O(l.$slots, "default", {}, void 0, !0),
|
|
3057
|
-
A("div",
|
|
3062
|
+
A("div", ll, C(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
|
|
3058
3063
|
])
|
|
3059
3064
|
], 34)), [
|
|
3060
3065
|
[o]
|
|
@@ -3062,10 +3067,10 @@ const nl = /* @__PURE__ */ W(tl, [["__scopeId", "data-v-c069c1ef"]]), ol = { cla
|
|
|
3062
3067
|
};
|
|
3063
3068
|
}
|
|
3064
3069
|
});
|
|
3065
|
-
const
|
|
3070
|
+
const il = /* @__PURE__ */ W(sl, [["__scopeId", "data-v-21bbe178"]]), rl = ["innerHTML"], ul = { class: "main__toasts" }, cl = ["innerHTML"], dl = /* @__PURE__ */ U({
|
|
3066
3071
|
__name: "aeria-main",
|
|
3067
3072
|
setup(c) {
|
|
3068
|
-
const r =
|
|
3073
|
+
const r = re("meta"), l = D(() => r.themeOverride || r.theme);
|
|
3069
3074
|
return (t, o) => {
|
|
3070
3075
|
const u = St("router-view");
|
|
3071
3076
|
return n(), s("main", {
|
|
@@ -3095,7 +3100,7 @@ const sl = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
|
|
|
3095
3100
|
_: 3
|
|
3096
3101
|
})),
|
|
3097
3102
|
O(t.$slots, "default", {}, void 0, !0),
|
|
3098
|
-
z(
|
|
3103
|
+
z(Ae, E({
|
|
3099
3104
|
modelValue: e(r).modal.visible,
|
|
3100
3105
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => e(r).modal.visible = i),
|
|
3101
3106
|
float: "",
|
|
@@ -3109,25 +3114,25 @@ const sl = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
|
|
|
3109
3114
|
key: 0,
|
|
3110
3115
|
style: { "white-space": "pre-wrap" },
|
|
3111
3116
|
innerHTML: e(r).modal.body
|
|
3112
|
-
}, null, 8,
|
|
3117
|
+
}, null, 8, rl)) : y("", !0),
|
|
3113
3118
|
e(r).modal.component ? (n(), k(he(e(r).modal.component), { key: 1 })) : y("", !0)
|
|
3114
3119
|
]),
|
|
3115
3120
|
_: 1
|
|
3116
3121
|
}, 16, ["modelValue"]),
|
|
3117
|
-
e(r).prompt.visible ? (n(), k(
|
|
3122
|
+
e(r).prompt.visible ? (n(), k(ol, de(E({ key: 0 }, e(r).prompt)), {
|
|
3118
3123
|
default: v(() => [
|
|
3119
|
-
Q(
|
|
3124
|
+
Q(C(e(r).prompt.body), 1)
|
|
3120
3125
|
]),
|
|
3121
3126
|
_: 1
|
|
3122
3127
|
}, 16)) : y("", !0),
|
|
3123
|
-
A("div",
|
|
3124
|
-
(n(!0), s(
|
|
3128
|
+
A("div", ul, [
|
|
3129
|
+
(n(!0), s(x, null, G(e(r).toasts, (i) => (n(), k(il, E({ ref_for: !0 }, i, {
|
|
3125
3130
|
key: `toast-${i.itr}`
|
|
3126
3131
|
}), {
|
|
3127
3132
|
default: v(() => [
|
|
3128
3133
|
A("div", {
|
|
3129
3134
|
innerHTML: e(R)(i.text)
|
|
3130
|
-
}, null, 8,
|
|
3135
|
+
}, null, 8, cl)
|
|
3131
3136
|
]),
|
|
3132
3137
|
_: 2
|
|
3133
3138
|
}, 1040))), 128))
|
|
@@ -3136,11 +3141,11 @@ const sl = /* @__PURE__ */ W(ll, [["__scopeId", "data-v-21bbe178"]]), il = ["inn
|
|
|
3136
3141
|
};
|
|
3137
3142
|
}
|
|
3138
3143
|
});
|
|
3139
|
-
const
|
|
3140
|
-
const
|
|
3141
|
-
function
|
|
3142
|
-
return n(), s("menu",
|
|
3143
|
-
(n(!0), s(
|
|
3144
|
+
const Ml = /* @__PURE__ */ W(dl, [["__scopeId", "data-v-1166be3d"]]);
|
|
3145
|
+
const pl = {}, _l = { class: "menu" };
|
|
3146
|
+
function ml(c, r) {
|
|
3147
|
+
return n(), s("menu", _l, [
|
|
3148
|
+
(n(!0), s(x, null, G(Object.keys(c.$slots), (l) => (n(), s("div", {
|
|
3144
3149
|
key: l,
|
|
3145
3150
|
class: "menu__entry"
|
|
3146
3151
|
}, [
|
|
@@ -3148,16 +3153,16 @@ function _l(c, r) {
|
|
|
3148
3153
|
]))), 128))
|
|
3149
3154
|
]);
|
|
3150
3155
|
}
|
|
3151
|
-
const
|
|
3156
|
+
const Fl = /* @__PURE__ */ W(pl, [["render", ml], ["__scopeId", "data-v-3cfef7fb"]]), fl = { class: "tabs" }, vl = {
|
|
3152
3157
|
key: 0,
|
|
3153
3158
|
class: "tabs__horizontal"
|
|
3154
|
-
},
|
|
3159
|
+
}, yl = {
|
|
3155
3160
|
key: 0,
|
|
3156
3161
|
class: "tabs__tab tabs__tab--info"
|
|
3157
|
-
},
|
|
3162
|
+
}, hl = ["onClick"], bl = {
|
|
3158
3163
|
key: 1,
|
|
3159
3164
|
class: "tabs__context-menu"
|
|
3160
|
-
},
|
|
3165
|
+
}, $l = ["onClick"], gl = /* @__PURE__ */ U({
|
|
3161
3166
|
__name: "aeria-tabs",
|
|
3162
3167
|
props: {
|
|
3163
3168
|
query: {},
|
|
@@ -3165,7 +3170,7 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
|
|
|
3165
3170
|
dropdown: { type: Boolean }
|
|
3166
3171
|
},
|
|
3167
3172
|
setup(c) {
|
|
3168
|
-
const r = c, l = jt(), t =
|
|
3173
|
+
const r = c, l = jt(), t = Ie(), o = Ue(), u = D(() => {
|
|
3169
3174
|
if (r.query) {
|
|
3170
3175
|
const _ = t.currentRoute.value.query[r.query];
|
|
3171
3176
|
if (_)
|
|
@@ -3189,12 +3194,12 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
|
|
|
3189
3194
|
};
|
|
3190
3195
|
return (_, p) => {
|
|
3191
3196
|
const b = te("clickable");
|
|
3192
|
-
return n(), s("div",
|
|
3193
|
-
e(o).md && !_.dropdown ? (n(), s("div",
|
|
3194
|
-
_.$slots.default ? (n(), s("div",
|
|
3197
|
+
return n(), s("div", fl, [
|
|
3198
|
+
e(o).md && !_.dropdown ? (n(), s("div", vl, [
|
|
3199
|
+
_.$slots.default ? (n(), s("div", yl, [
|
|
3195
3200
|
O(_.$slots, "default", {}, void 0, !0)
|
|
3196
3201
|
])) : y("", !0),
|
|
3197
|
-
(n(!0), s(
|
|
3202
|
+
(n(!0), s(x, null, G(Object.keys(_.$slots).filter((d) => d !== "default"), (d, a) => (n(), s("div", {
|
|
3198
3203
|
key: d,
|
|
3199
3204
|
class: X({
|
|
3200
3205
|
tabs__tab: !0,
|
|
@@ -3203,11 +3208,11 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
|
|
|
3203
3208
|
onClick: (B) => i(d)
|
|
3204
3209
|
}, [
|
|
3205
3210
|
O(_.$slots, d, {}, void 0, !0)
|
|
3206
|
-
], 10,
|
|
3207
|
-
])) : (n(), s("div",
|
|
3211
|
+
], 10, hl))), 128))
|
|
3212
|
+
])) : (n(), s("div", bl, [
|
|
3208
3213
|
z(Oe, null, ce({
|
|
3209
3214
|
default: v(({ visible: d }) => [
|
|
3210
|
-
|
|
3215
|
+
P((n(), k(Z, {
|
|
3211
3216
|
"icon-right": "",
|
|
3212
3217
|
active: d,
|
|
3213
3218
|
icon: "caret-down",
|
|
@@ -3231,7 +3236,7 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
|
|
|
3231
3236
|
onClick: (a) => i(d)
|
|
3232
3237
|
}, [
|
|
3233
3238
|
O(_.$slots, d, {}, void 0, !0)
|
|
3234
|
-
], 8,
|
|
3239
|
+
], 8, $l)
|
|
3235
3240
|
])
|
|
3236
3241
|
}))
|
|
3237
3242
|
]), 1024)
|
|
@@ -3240,30 +3245,30 @@ const Ml = /* @__PURE__ */ W(dl, [["render", _l], ["__scopeId", "data-v-3cfef7fb
|
|
|
3240
3245
|
};
|
|
3241
3246
|
}
|
|
3242
3247
|
});
|
|
3243
|
-
const
|
|
3248
|
+
const kl = /* @__PURE__ */ W(gl, [["__scopeId", "data-v-a20914ab"]]), Vl = U({
|
|
3244
3249
|
props: {
|
|
3245
3250
|
initialValue: String,
|
|
3246
3251
|
promise: Promise
|
|
3247
3252
|
},
|
|
3248
3253
|
setup(c) {
|
|
3249
|
-
const r =
|
|
3254
|
+
const r = J(c.initialValue);
|
|
3250
3255
|
return c.promise instanceof Promise && c.promise.then((l) => {
|
|
3251
3256
|
r.value = l;
|
|
3252
3257
|
}), () => Rt("div", r.value);
|
|
3253
3258
|
}
|
|
3254
|
-
}),
|
|
3259
|
+
}), Cl = ["onClick"], Ol = { key: 1 }, Il = /* @__PURE__ */ U({
|
|
3255
3260
|
__name: "aeria-crud-topbar",
|
|
3256
3261
|
props: {
|
|
3257
3262
|
collection: {}
|
|
3258
3263
|
},
|
|
3259
3264
|
setup(c) {
|
|
3260
|
-
const r = c, t =
|
|
3265
|
+
const r = c, t = Ie().currentRoute, o = Ze(), u = D(() => r.collection ? Le(r.collection, o) : typeof t.value.meta.collection == "string" ? Le(t.value.meta.collection, o) : typeof t.value.params.collection == "string" ? Le(t.value.params.collection, o) : null), i = async (_, p) => {
|
|
3261
3266
|
const { error: b, result: d } = await p.$functions[_.badgeFunction]({
|
|
3262
3267
|
filters: _.filters
|
|
3263
3268
|
});
|
|
3264
3269
|
return b ? 0 : d;
|
|
3265
3270
|
};
|
|
3266
|
-
return (_, p) => u.value && u.value.description.filtersPresets ? (n(), k(
|
|
3271
|
+
return (_, p) => u.value && u.value.description.filtersPresets ? (n(), k(kl, {
|
|
3267
3272
|
key: 0,
|
|
3268
3273
|
dropdown: "",
|
|
3269
3274
|
query: "section"
|
|
@@ -3275,34 +3280,34 @@ const gl = /* @__PURE__ */ W($l, [["__scopeId", "data-v-a20914ab"]]), kl = F({
|
|
|
3275
3280
|
class: "topbar__preset",
|
|
3276
3281
|
onClick: (a) => e(Ot)(d, u.value)
|
|
3277
3282
|
}, [
|
|
3278
|
-
d.icon ? (n(), k(
|
|
3283
|
+
d.icon ? (n(), k(Z, {
|
|
3279
3284
|
key: 0,
|
|
3280
3285
|
icon: d.icon
|
|
3281
3286
|
}, {
|
|
3282
3287
|
default: v(() => [
|
|
3283
|
-
Q(
|
|
3288
|
+
Q(C(d.label || e(R)(b, { plural: !0 })), 1)
|
|
3284
3289
|
]),
|
|
3285
3290
|
_: 2
|
|
3286
|
-
}, 1032, ["icon"])) : (n(), s("div",
|
|
3291
|
+
}, 1032, ["icon"])) : (n(), s("div", Ol, C(d.label || e(R)(b, { plural: !0 })), 1)),
|
|
3287
3292
|
d.badgeFunction ? (n(), k($e, { key: 2 }, {
|
|
3288
3293
|
default: v(() => [
|
|
3289
|
-
z(e(
|
|
3294
|
+
z(e(Vl), {
|
|
3290
3295
|
"initial-value": "0",
|
|
3291
|
-
promise: i(d, u.value)
|
|
3296
|
+
promise: async () => String(i(d, u.value))
|
|
3292
3297
|
}, null, 8, ["promise"])
|
|
3293
3298
|
]),
|
|
3294
3299
|
_: 2
|
|
3295
3300
|
}, 1024)) : y("", !0)
|
|
3296
|
-
], 8,
|
|
3301
|
+
], 8, Cl)
|
|
3297
3302
|
])
|
|
3298
3303
|
}))
|
|
3299
3304
|
]), 1024)) : y("", !0);
|
|
3300
3305
|
}
|
|
3301
3306
|
});
|
|
3302
|
-
const
|
|
3307
|
+
const Al = /* @__PURE__ */ W(Il, [["__scopeId", "data-v-5f3141a5"]]), Bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3303
3308
|
__proto__: null,
|
|
3304
|
-
default:
|
|
3305
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3309
|
+
default: Al
|
|
3310
|
+
}, Symbol.toStringTag, { value: "Module" })), Ul = /* @__PURE__ */ U({
|
|
3306
3311
|
__name: "aeria-password-form",
|
|
3307
3312
|
props: {
|
|
3308
3313
|
modelValue: {}
|
|
@@ -3311,11 +3316,11 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3311
3316
|
setup(c) {
|
|
3312
3317
|
const r = c;
|
|
3313
3318
|
ye(Fe, null);
|
|
3314
|
-
const l =
|
|
3319
|
+
const l = Xt(), t = D(() => l(
|
|
3315
3320
|
r.modelValue.password,
|
|
3316
3321
|
r.modelValue.confirmation
|
|
3317
3322
|
));
|
|
3318
|
-
return (o, u) => (n(), k(
|
|
3323
|
+
return (o, u) => (n(), k(Qe, {
|
|
3319
3324
|
form: {
|
|
3320
3325
|
password: {
|
|
3321
3326
|
type: "string",
|
|
@@ -3332,13 +3337,13 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3332
3337
|
"onUpdate:modelValue": u[0] || (u[0] = (i) => o.$emit("update:modelValue", i))
|
|
3333
3338
|
}, {
|
|
3334
3339
|
after: v(() => [
|
|
3335
|
-
A("div", null,
|
|
3340
|
+
A("div", null, C(t.value || "Senhas conferem"), 1),
|
|
3336
3341
|
O(o.$slots, "default", de(ge({ passwordError: t.value })))
|
|
3337
3342
|
]),
|
|
3338
3343
|
_: 3
|
|
3339
3344
|
}, 8, ["model-value"]));
|
|
3340
3345
|
}
|
|
3341
|
-
}),
|
|
3346
|
+
}), El = (c, r = []) => ({
|
|
3342
3347
|
path: "/user",
|
|
3343
3348
|
name: "/builtin:user",
|
|
3344
3349
|
component: c,
|
|
@@ -3356,7 +3361,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3356
3361
|
{
|
|
3357
3362
|
path: "signin",
|
|
3358
3363
|
name: "/user/signin",
|
|
3359
|
-
component: () => import("./signin-
|
|
3364
|
+
component: () => import("./signin-e3038c7b.js"),
|
|
3360
3365
|
meta: {
|
|
3361
3366
|
title: "Autenticação"
|
|
3362
3367
|
}
|
|
@@ -3364,7 +3369,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3364
3369
|
{
|
|
3365
3370
|
path: "signup",
|
|
3366
3371
|
name: "/user/signup",
|
|
3367
|
-
component: () => import("./signup-
|
|
3372
|
+
component: () => import("./signup-4beb1e83.js"),
|
|
3368
3373
|
meta: {
|
|
3369
3374
|
title: "Registro"
|
|
3370
3375
|
}
|
|
@@ -3372,13 +3377,13 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3372
3377
|
{
|
|
3373
3378
|
path: "activation",
|
|
3374
3379
|
name: "/user/activation",
|
|
3375
|
-
component: () => import("./activation-
|
|
3380
|
+
component: () => import("./activation-6cf8f626.js"),
|
|
3376
3381
|
meta: {
|
|
3377
3382
|
title: "Ativação"
|
|
3378
3383
|
}
|
|
3379
3384
|
}
|
|
3380
3385
|
])
|
|
3381
|
-
}),
|
|
3386
|
+
}), Dl = (c, r = []) => ({
|
|
3382
3387
|
path: "/dashboard",
|
|
3383
3388
|
name: "/builtin:dashboard",
|
|
3384
3389
|
component: c,
|
|
@@ -3394,8 +3399,8 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3394
3399
|
name: "/dashboard/:collection",
|
|
3395
3400
|
props: !0,
|
|
3396
3401
|
components: {
|
|
3397
|
-
default: () => import("./index-
|
|
3398
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3402
|
+
default: () => import("./index-7832f3b8.js"),
|
|
3403
|
+
topbar: () => Promise.resolve().then(() => Bl)
|
|
3399
3404
|
},
|
|
3400
3405
|
meta: {
|
|
3401
3406
|
title: "%viewTitle%"
|
|
@@ -3406,7 +3411,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3406
3411
|
name: "/dashboard/:collection/:id",
|
|
3407
3412
|
props: !0,
|
|
3408
3413
|
components: {
|
|
3409
|
-
default: () => import("./_id_-
|
|
3414
|
+
default: () => import("./_id_-a8ae712c.js")
|
|
3410
3415
|
},
|
|
3411
3416
|
meta: {
|
|
3412
3417
|
title: "%viewTitle%"
|
|
@@ -3424,7 +3429,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3424
3429
|
children: [
|
|
3425
3430
|
{
|
|
3426
3431
|
path: "profile",
|
|
3427
|
-
component: () => import("./index-
|
|
3432
|
+
component: () => import("./index-1e076d31.js"),
|
|
3428
3433
|
meta: {
|
|
3429
3434
|
title: "Meu perfil",
|
|
3430
3435
|
icon: "user-square"
|
|
@@ -3433,7 +3438,7 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3433
3438
|
{
|
|
3434
3439
|
path: "changepass",
|
|
3435
3440
|
name: "/dashboard/user/changepass",
|
|
3436
|
-
component: () => import("./index-
|
|
3441
|
+
component: () => import("./index-45a3b598.js"),
|
|
3437
3442
|
meta: {
|
|
3438
3443
|
title: "Mudar senha",
|
|
3439
3444
|
icon: "lock"
|
|
@@ -3444,39 +3449,39 @@ const Il = /* @__PURE__ */ W(Ol, [["__scopeId", "data-v-85c3b087"]]), Al = /* @_
|
|
|
3444
3449
|
])
|
|
3445
3450
|
});
|
|
3446
3451
|
export {
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
|
|
3456
|
-
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3452
|
+
Qe as A,
|
|
3453
|
+
no as B,
|
|
3454
|
+
Vl as C,
|
|
3455
|
+
ol as D,
|
|
3456
|
+
il as E,
|
|
3457
|
+
Al as F,
|
|
3458
|
+
El as G,
|
|
3459
|
+
Dl as H,
|
|
3460
|
+
Ul as _,
|
|
3461
|
+
ie as a,
|
|
3462
|
+
Z as b,
|
|
3463
|
+
Kn as c,
|
|
3464
|
+
ql as d,
|
|
3465
|
+
oa as e,
|
|
3466
|
+
De as f,
|
|
3467
|
+
Fl as g,
|
|
3468
|
+
Ae as h,
|
|
3464
3469
|
W as i,
|
|
3465
|
-
|
|
3470
|
+
zl as j,
|
|
3466
3471
|
$e as k,
|
|
3467
3472
|
ve as l,
|
|
3468
|
-
|
|
3473
|
+
pn as m,
|
|
3469
3474
|
Oe as n,
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3475
|
+
Da as o,
|
|
3476
|
+
na as p,
|
|
3477
|
+
Vn as q,
|
|
3478
|
+
Ml as r,
|
|
3479
|
+
Un as s,
|
|
3480
|
+
Fa as t,
|
|
3481
|
+
kl as u,
|
|
3482
|
+
ko as v,
|
|
3478
3483
|
ke as w,
|
|
3479
|
-
|
|
3480
|
-
|
|
3484
|
+
Jn as x,
|
|
3485
|
+
qo as y,
|
|
3481
3486
|
Ne as z
|
|
3482
3487
|
};
|