@aeria-ui/ui 0.0.16 → 0.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{activation-d33a39fa.js → activation-0f4f6ccc.js} +1 -1
- package/dist/components/aeria-panel/aeria-panel.vue.d.ts +0 -1
- package/dist/{crud-view-3045a541.js → crud-view-e1856c90.js} +1 -1
- package/dist/{index-547a109c.js → index-0298408f.js} +513 -516
- package/dist/less/theme.less +2 -0
- package/dist/{password-change-3f889148.js → password-change-88b45c35.js} +1 -1
- package/dist/{profile-4bceb767.js → profile-0b0e4747.js} +1 -1
- package/dist/{signin-9a3c74a0.js → signin-ae2965d5.js} +1 -1
- package/dist/{signup-2eb8e263.js → signup-0828ed0e.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +5 -5
- package/src/index.ts +2 -0
- package/themes/animate.less +17 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as l, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as B, createCommentVNode as
|
|
1
|
+
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as l, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as B, createCommentVNode as f, createTextVNode as Q, unref as t, renderSlot as k, inject as ve, computed as D, createElementVNode as g, mergeProps as G, createBlock as $, resolveDynamicComponent as ye, withCtx as _, useCssVars as bt, Teleport as We, watch as ue, createVNode as M, vModelDynamic as gt, onBeforeMount as vt, normalizeStyle as he, withModifiers as Me, pushScopeId as Ue, popScopeId as Ee, provide as fe, onMounted as kt, isRef as je, normalizeProps as le, guardReactiveProps as be, createSlots as de, vModelCheckbox as Vt, onUnmounted as Ct, resolveComponent as At, Suspense as It, useSlots as Ot, h as wt } from "vue";
|
|
2
2
|
import { t as E } from "@aeria-ui/i18n";
|
|
3
|
-
import { useScrollObserver as Xe, useBreakpoints as Te, useClipboard as Bt, PAGINATION_PER_PAGE_DEFAULTS as St, API_URL as
|
|
3
|
+
import { useScrollObserver as Xe, useBreakpoints as Te, useClipboard as Bt, PAGINATION_PER_PAGE_DEFAULTS as St, API_URL as ft, request as jt, useDebounce as yt, isDocumentComplete as Tt, convertToSearchQuery as it, useAction as Lt, convertFromSearchQuery as Rt, usePasswordPolicy as Ft } from "@aeria-ui/web";
|
|
4
4
|
import { useStore as ce, getStoreId as Le, useParentStore as ge, STORE_ID as ze, getGlobalStateManager as Mt } from "@aeria-ui/state-management";
|
|
5
5
|
import { useRouter as Re } from "vue-router";
|
|
6
6
|
import { getReferenceProperty as pe, convertConditionToQuery as qt, deepClone as Se, freshItem as Ut, isRequired as Et, evaluateCondition as Ge, isLeft as zt } from "@aeriajs/common";
|
|
@@ -33,14 +33,14 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
33
33
|
class: "accordion__header",
|
|
34
34
|
onClick: (m) => u.value === i ? u.value = null : u.value = i
|
|
35
35
|
}, [
|
|
36
|
-
a.enumerate ? (n(), l("span", Qt, B(y + 1) + ". ", 1)) :
|
|
36
|
+
a.enumerate ? (n(), l("span", Qt, B(y + 1) + ". ", 1)) : f("", !0),
|
|
37
37
|
Q(" " + B(a.headers[i] ? e(a.headers[i]) : t(E)(i)), 1)
|
|
38
38
|
], 8, Dt)), [
|
|
39
39
|
[r]
|
|
40
40
|
]),
|
|
41
41
|
u.value === i ? (n(), l("div", Gt, [
|
|
42
42
|
k(a.$slots, i, {}, void 0, !0)
|
|
43
|
-
])) :
|
|
43
|
+
])) : f("", !0)
|
|
44
44
|
]))), 128))
|
|
45
45
|
], 2);
|
|
46
46
|
};
|
|
@@ -51,7 +51,7 @@ const X = (c, u) => {
|
|
|
51
51
|
for (const [a, s] of u)
|
|
52
52
|
e[a] = s;
|
|
53
53
|
return e;
|
|
54
|
-
},
|
|
54
|
+
}, js = /* @__PURE__ */ X(Wt, [["__scopeId", "data-v-3ea933d4"]]), Xt = /* @__PURE__ */ U({
|
|
55
55
|
__name: "aeria-badge",
|
|
56
56
|
props: {
|
|
57
57
|
large: { type: Boolean },
|
|
@@ -69,7 +69,7 @@ const X = (c, u) => {
|
|
|
69
69
|
], 2));
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
const
|
|
72
|
+
const $e = /* @__PURE__ */ X(Xt, [["__scopeId", "data-v-47f92648"]]), Yt = /* @__PURE__ */ U({
|
|
73
73
|
__name: "aeria-bare-button",
|
|
74
74
|
props: {
|
|
75
75
|
disabled: { type: Boolean }
|
|
@@ -104,7 +104,7 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
104
104
|
fill: {}
|
|
105
105
|
},
|
|
106
106
|
setup(c) {
|
|
107
|
-
const u = c, e = typeof u.reactive == "boolean" ? u.reactive :
|
|
107
|
+
const u = c, e = typeof u.reactive == "boolean" ? u.reactive : ve("iconReactive", !1), a = D(() => {
|
|
108
108
|
var s;
|
|
109
109
|
return (s = u.icon) != null && s.includes(":") ? u.icon : `regular:${u.icon}`;
|
|
110
110
|
});
|
|
@@ -137,7 +137,7 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
137
137
|
], 2),
|
|
138
138
|
s.$slots.default ? (n(), l("div", Kt, [
|
|
139
139
|
k(s.$slots, "default", {}, void 0, !0)
|
|
140
|
-
])) :
|
|
140
|
+
])) : f("", !0)
|
|
141
141
|
], 2));
|
|
142
142
|
}
|
|
143
143
|
});
|
|
@@ -155,7 +155,6 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
155
155
|
floating: { type: Boolean },
|
|
156
156
|
loading: { type: Boolean },
|
|
157
157
|
bordered: { type: Boolean },
|
|
158
|
-
animate: { type: Boolean },
|
|
159
158
|
overlay: { type: Boolean },
|
|
160
159
|
invisibleOverlay: { type: Boolean },
|
|
161
160
|
collapsed: { type: Boolean },
|
|
@@ -172,12 +171,12 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
172
171
|
setup(c, { emit: u }) {
|
|
173
172
|
const e = c, a = u, s = D(() => e.floating || e.float), r = Y(e.collapsed), i = Y(null), { reachedEnd: y } = Xe(i), m = () => {
|
|
174
173
|
a("update:modelValue", !1), a("close");
|
|
175
|
-
},
|
|
174
|
+
}, v = () => {
|
|
176
175
|
a("overlayClick");
|
|
177
176
|
}, d = (o) => {
|
|
178
177
|
a("update:collapsed", o), r.value = o;
|
|
179
178
|
};
|
|
180
|
-
return (o,
|
|
179
|
+
return (o, h) => {
|
|
181
180
|
const b = N("clickable"), V = N("loading"), R = N("overlay");
|
|
182
181
|
return o.modelValue ? Z((n(), l("div", {
|
|
183
182
|
key: 0,
|
|
@@ -186,7 +185,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
186
185
|
${o.fixedRight && "panel--fixed"}
|
|
187
186
|
`)
|
|
188
187
|
}, [
|
|
189
|
-
(n(),
|
|
188
|
+
(n(), $(ye(
|
|
190
189
|
s.value ? "dialog" : "div"
|
|
191
190
|
), {
|
|
192
191
|
"data-component": "panel",
|
|
@@ -195,14 +194,13 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
195
194
|
panel__content
|
|
196
195
|
${!(s.value || o.fixedRight) && "panel__content--rounded"}
|
|
197
196
|
${s.value && "panel__content--floating"}
|
|
198
|
-
${o.animate && "panel__content--animate"}
|
|
199
197
|
${o.bordered && "panel__content--bordered-body"}
|
|
200
198
|
${o.fixedRight && "panel__content--fixed-right"}
|
|
201
199
|
${o.transparent && "panel__content--transparent"}
|
|
202
200
|
${o.transparentMobile && "panel__content--transparent-mobile"}
|
|
203
201
|
${o.outerHeader && "panel__content--outer-header"}
|
|
204
202
|
`),
|
|
205
|
-
onClick:
|
|
203
|
+
onClick: h[1] || (h[1] = (j) => j.stopPropagation())
|
|
206
204
|
}, {
|
|
207
205
|
default: _(() => [
|
|
208
206
|
o.$slots.header || o.title ? (n(), l("div", {
|
|
@@ -214,28 +212,28 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
214
212
|
`)
|
|
215
213
|
}, [
|
|
216
214
|
g("div", Pt, [
|
|
217
|
-
o.$slots.header ? k(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), l("div", Nt, B(o.title), 1)) :
|
|
215
|
+
o.$slots.header ? k(o.$slots, "header", { key: 0 }, void 0, !0) : o.title ? (n(), l("div", Nt, B(o.title), 1)) : f("", !0),
|
|
218
216
|
o.$slots.extra ? (n(), l("div", xt, [
|
|
219
217
|
k(o.$slots, "extra", {}, void 0, !0)
|
|
220
|
-
])) :
|
|
218
|
+
])) : f("", !0)
|
|
221
219
|
]),
|
|
222
|
-
o.collapsible ? Z((n(),
|
|
220
|
+
o.collapsible ? Z((n(), $(K, {
|
|
223
221
|
key: 0,
|
|
224
222
|
reactive: "",
|
|
225
223
|
icon: r.value ? "plus" : "minus",
|
|
226
|
-
onClick:
|
|
224
|
+
onClick: h[0] || (h[0] = (j) => d(!r.value))
|
|
227
225
|
}, null, 8, ["icon"])), [
|
|
228
226
|
[b]
|
|
229
|
-
]) : o.closeHint ? Z((n(),
|
|
227
|
+
]) : o.closeHint ? Z((n(), $(K, {
|
|
230
228
|
key: 1,
|
|
231
229
|
reactive: "",
|
|
232
230
|
icon: "x",
|
|
233
231
|
onClick: m
|
|
234
232
|
}, null, 512)), [
|
|
235
233
|
[b]
|
|
236
|
-
]) :
|
|
237
|
-
], 2)) :
|
|
238
|
-
r.value ?
|
|
234
|
+
]) : f("", !0)
|
|
235
|
+
], 2)) : f("", !0),
|
|
236
|
+
r.value ? f("", !0) : Z((n(), l("div", {
|
|
239
237
|
key: 1,
|
|
240
238
|
ref_key: "body",
|
|
241
239
|
ref: i,
|
|
@@ -257,7 +255,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
257
255
|
`)
|
|
258
256
|
}, [
|
|
259
257
|
k(o.$slots, "footer", {}, void 0, !0)
|
|
260
|
-
], 2)) :
|
|
258
|
+
], 2)) : f("", !0)
|
|
261
259
|
]),
|
|
262
260
|
_: 3
|
|
263
261
|
}, 8, ["class"]))
|
|
@@ -265,14 +263,14 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
265
263
|
[R, {
|
|
266
264
|
condition: o.overlay || o.fixedRight || s.value,
|
|
267
265
|
invisible: o.invisibleOverlay,
|
|
268
|
-
click:
|
|
266
|
+
click: v,
|
|
269
267
|
layer: o.overlayLayer || (s.value ? 60 : o.fixedRight ? 50 : 0)
|
|
270
268
|
}]
|
|
271
|
-
]) :
|
|
269
|
+
]) : f("", !0);
|
|
272
270
|
};
|
|
273
271
|
}
|
|
274
272
|
});
|
|
275
|
-
const Ie = /* @__PURE__ */ X(en, [["__scopeId", "data-v-
|
|
273
|
+
const Ie = /* @__PURE__ */ X(en, [["__scopeId", "data-v-729778b1"]]), tn = { class: "button__content" }, nn = {
|
|
276
274
|
key: 1,
|
|
277
275
|
class: "button__content"
|
|
278
276
|
}, on = /* @__PURE__ */ U({
|
|
@@ -287,16 +285,16 @@ const Ie = /* @__PURE__ */ X(en, [["__scopeId", "data-v-2f015982"]]), tn = { cla
|
|
|
287
285
|
loading: { type: Boolean }
|
|
288
286
|
},
|
|
289
287
|
setup(c) {
|
|
290
|
-
const u = c, e =
|
|
288
|
+
const u = c, e = ve("buttonVariant", u.variant) || "primary", a = (() => {
|
|
291
289
|
switch (!0) {
|
|
292
290
|
case u.small:
|
|
293
291
|
return "small";
|
|
294
292
|
case u.large:
|
|
295
293
|
return "large";
|
|
296
294
|
}
|
|
297
|
-
return
|
|
295
|
+
return ve("buttonSize", u.size) || "medium";
|
|
298
296
|
})();
|
|
299
|
-
return (s, r) => (n(),
|
|
297
|
+
return (s, r) => (n(), $(me, {
|
|
300
298
|
class: W(`
|
|
301
299
|
button
|
|
302
300
|
button--${t(e)}
|
|
@@ -306,7 +304,7 @@ const Ie = /* @__PURE__ */ X(en, [["__scopeId", "data-v-2f015982"]]), tn = { cla
|
|
|
306
304
|
disabled: s.disabled
|
|
307
305
|
}, {
|
|
308
306
|
default: _(() => [
|
|
309
|
-
s.icon ? (n(),
|
|
307
|
+
s.icon ? (n(), $(K, {
|
|
310
308
|
key: 0,
|
|
311
309
|
icon: s.icon
|
|
312
310
|
}, {
|
|
@@ -346,7 +344,7 @@ const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { cla
|
|
|
346
344
|
g("div", null, [
|
|
347
345
|
k(u.$slots, "footer", {}, void 0, !0)
|
|
348
346
|
]),
|
|
349
|
-
u.$slots.actions ? k(u.$slots, "actions", { key: 0 }, void 0, !0) :
|
|
347
|
+
u.$slots.actions ? k(u.$slots, "actions", { key: 0 }, void 0, !0) : f("", !0)
|
|
350
348
|
]),
|
|
351
349
|
g("div", rn, [
|
|
352
350
|
k(u.$slots, "badge", {}, void 0, !0)
|
|
@@ -355,10 +353,10 @@ const re = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { cla
|
|
|
355
353
|
], 2));
|
|
356
354
|
}
|
|
357
355
|
});
|
|
358
|
-
const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = {
|
|
356
|
+
const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { class: "content__body" }, pn = {
|
|
359
357
|
key: 0,
|
|
360
358
|
class: "content__section"
|
|
361
|
-
},
|
|
359
|
+
}, _n = { class: "content__item" }, mn = /* @__PURE__ */ U({
|
|
362
360
|
__name: "aeria-context-menu",
|
|
363
361
|
props: {
|
|
364
362
|
actions: {},
|
|
@@ -367,13 +365,13 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = {
|
|
|
367
365
|
},
|
|
368
366
|
emits: ["actionClick"],
|
|
369
367
|
setup(c, { emit: u }) {
|
|
370
|
-
bt((
|
|
371
|
-
"
|
|
372
|
-
"
|
|
368
|
+
bt((v) => ({
|
|
369
|
+
"1053e26a": m.value.x,
|
|
370
|
+
"1053e26b": m.value.y
|
|
373
371
|
}));
|
|
374
|
-
const e = u, a = ce("user"), s = Y(null), r = Y(!1), i = (
|
|
375
|
-
|
|
376
|
-
action:
|
|
372
|
+
const e = u, a = ce("user"), s = Y(null), r = Y(!1), i = (v) => v.filter((d) => d.roles ? d.roles.include(a.currentUser.role) : !!d.click), y = (v, d) => {
|
|
373
|
+
v.click(d), e("actionClick", {
|
|
374
|
+
action: v,
|
|
377
375
|
subject: d
|
|
378
376
|
}), r.value = !1;
|
|
379
377
|
}, m = D(() => {
|
|
@@ -382,18 +380,18 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = {
|
|
|
382
380
|
x: 0,
|
|
383
381
|
y: 0
|
|
384
382
|
};
|
|
385
|
-
const
|
|
383
|
+
const v = s.value.getBoundingClientRect().top, d = s.value.getBoundingClientRect().left, o = s.value.offsetHeight;
|
|
386
384
|
return {
|
|
387
385
|
_: r.value,
|
|
388
386
|
x: Math.floor(d) + "px",
|
|
389
|
-
y: Math.floor(
|
|
387
|
+
y: Math.floor(v + o) + "px"
|
|
390
388
|
};
|
|
391
389
|
});
|
|
392
|
-
return (
|
|
393
|
-
var
|
|
390
|
+
return (v, d) => {
|
|
391
|
+
var h;
|
|
394
392
|
const o = N("overlay");
|
|
395
393
|
return n(), l(J, null, [
|
|
396
|
-
Object.keys(
|
|
394
|
+
Object.keys(v.$slots).some((b) => b !== "default") || ((h = v.actions) == null ? void 0 : h.length) > 0 ? (n(), l("div", {
|
|
397
395
|
key: 0,
|
|
398
396
|
ref_key: "contextmenu",
|
|
399
397
|
ref: s,
|
|
@@ -403,54 +401,53 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = {
|
|
|
403
401
|
class: "contextmenu__trigger",
|
|
404
402
|
onClick: d[0] || (d[0] = (b) => r.value = !0)
|
|
405
403
|
}, [
|
|
406
|
-
k(
|
|
404
|
+
k(v.$slots, "default", {}, void 0, !0)
|
|
407
405
|
])
|
|
408
|
-
], 512)) :
|
|
409
|
-
r.value ? (n(),
|
|
406
|
+
], 512)) : f("", !0),
|
|
407
|
+
r.value ? (n(), $(We, {
|
|
410
408
|
key: 1,
|
|
411
409
|
to: "main"
|
|
412
410
|
}, [
|
|
413
|
-
Z((n(),
|
|
411
|
+
Z((n(), $(Ie, {
|
|
414
412
|
modelValue: r.value,
|
|
415
413
|
"onUpdate:modelValue": d[4] || (d[4] = (b) => r.value = b),
|
|
416
|
-
animate: "",
|
|
417
414
|
fill: "",
|
|
418
415
|
class: "content"
|
|
419
416
|
}, {
|
|
420
417
|
default: _(() => {
|
|
421
418
|
var b;
|
|
422
419
|
return [
|
|
423
|
-
g("div",
|
|
424
|
-
|
|
425
|
-
k(
|
|
426
|
-
])) :
|
|
427
|
-
Object.keys(
|
|
420
|
+
g("div", dn, [
|
|
421
|
+
v.$slots.header ? (n(), l("div", pn, [
|
|
422
|
+
k(v.$slots, "header", {}, void 0, !0)
|
|
423
|
+
])) : f("", !0),
|
|
424
|
+
Object.keys(v.$slots).filter((V) => !["default", "extra", "header"].includes(V)).length > 0 ? (n(), l("div", {
|
|
428
425
|
key: 1,
|
|
429
426
|
class: "content__section",
|
|
430
427
|
onClick: d[1] || (d[1] = (V) => r.value = !1)
|
|
431
428
|
}, [
|
|
432
|
-
(n(!0), l(J, null, H(Object.keys(
|
|
429
|
+
(n(!0), l(J, null, H(Object.keys(v.$slots).filter((V) => !["default", "extra", "header"].includes(V)), (V, R) => (n(), $(me, {
|
|
433
430
|
key: `slot-${R}`,
|
|
434
431
|
class: "content__item content__item--reactive"
|
|
435
432
|
}, {
|
|
436
433
|
default: _(() => [
|
|
437
|
-
k(
|
|
434
|
+
k(v.$slots, V, {}, void 0, !0)
|
|
438
435
|
]),
|
|
439
436
|
_: 2
|
|
440
437
|
}, 1024))), 128))
|
|
441
|
-
])) :
|
|
442
|
-
((b =
|
|
438
|
+
])) : f("", !0),
|
|
439
|
+
((b = v.actions) == null ? void 0 : b.length) > 0 ? (n(), l("div", {
|
|
443
440
|
key: 2,
|
|
444
441
|
class: "content__section",
|
|
445
442
|
onClick: d[2] || (d[2] = (V) => r.value = !1)
|
|
446
443
|
}, [
|
|
447
|
-
(n(!0), l(J, null, H(i(
|
|
444
|
+
(n(!0), l(J, null, H(i(v.actions), (V, R) => (n(), $(me, {
|
|
448
445
|
key: `action-${R}`,
|
|
449
446
|
class: "content__item content__item--reactive",
|
|
450
|
-
onClick: (j) => y(V,
|
|
447
|
+
onClick: (j) => y(V, v.subject)
|
|
451
448
|
}, {
|
|
452
449
|
default: _(() => [
|
|
453
|
-
V.icon ? (n(),
|
|
450
|
+
V.icon ? (n(), $(K, {
|
|
454
451
|
key: 0,
|
|
455
452
|
icon: V.icon
|
|
456
453
|
}, {
|
|
@@ -458,20 +455,20 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = {
|
|
|
458
455
|
Q(B(V.translate ? t(E)(V.name) : V.name), 1)
|
|
459
456
|
]),
|
|
460
457
|
_: 2
|
|
461
|
-
}, 1032, ["icon"])) :
|
|
458
|
+
}, 1032, ["icon"])) : f("", !0)
|
|
462
459
|
]),
|
|
463
460
|
_: 2
|
|
464
461
|
}, 1032, ["onClick"]))), 128))
|
|
465
|
-
])) :
|
|
466
|
-
|
|
462
|
+
])) : f("", !0),
|
|
463
|
+
v.$slots.extra ? (n(), l("div", {
|
|
467
464
|
key: 3,
|
|
468
465
|
class: "content__section",
|
|
469
466
|
onClick: d[3] || (d[3] = (V) => r.value = !1)
|
|
470
467
|
}, [
|
|
471
|
-
g("div",
|
|
472
|
-
|
|
468
|
+
g("div", _n, [
|
|
469
|
+
v.$slots.extra ? k(v.$slots, "extra", { key: 0 }, void 0, !0) : f("", !0)
|
|
473
470
|
])
|
|
474
|
-
])) :
|
|
471
|
+
])) : f("", !0)
|
|
475
472
|
])
|
|
476
473
|
];
|
|
477
474
|
}),
|
|
@@ -480,7 +477,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = {
|
|
|
480
477
|
[
|
|
481
478
|
o,
|
|
482
479
|
{
|
|
483
|
-
layer:
|
|
480
|
+
layer: v.overlayLayer,
|
|
484
481
|
click: () => {
|
|
485
482
|
r.value = !1;
|
|
486
483
|
}
|
|
@@ -489,12 +486,12 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = {
|
|
|
489
486
|
{ invisibleOnLarge: !0 }
|
|
490
487
|
]
|
|
491
488
|
])
|
|
492
|
-
])) :
|
|
489
|
+
])) : f("", !0)
|
|
493
490
|
], 64);
|
|
494
491
|
};
|
|
495
492
|
}
|
|
496
493
|
});
|
|
497
|
-
const Ce = /* @__PURE__ */ X(
|
|
494
|
+
const Ce = /* @__PURE__ */ X(mn, [["__scopeId", "data-v-a5573a52"]]), vn = { class: "info__content" }, fn = /* @__PURE__ */ U({
|
|
498
495
|
__name: "aeria-info",
|
|
499
496
|
props: {
|
|
500
497
|
where: {}
|
|
@@ -513,10 +510,10 @@ const Ce = /* @__PURE__ */ X(_n, [["__scopeId", "data-v-28e185ef"]]), mn = { cla
|
|
|
513
510
|
info__bubble--${t(s)}
|
|
514
511
|
`)
|
|
515
512
|
}, [
|
|
516
|
-
g("div",
|
|
513
|
+
g("div", vn, [
|
|
517
514
|
k(r.$slots, "text", {}, void 0, !0)
|
|
518
515
|
])
|
|
519
|
-
], 2)) :
|
|
516
|
+
], 2)) : f("", !0),
|
|
520
517
|
g("div", {
|
|
521
518
|
onMouseover: i[0] || (i[0] = (y) => a.value = !0)
|
|
522
519
|
}, [
|
|
@@ -525,16 +522,16 @@ const Ce = /* @__PURE__ */ X(_n, [["__scopeId", "data-v-28e185ef"]]), mn = { cla
|
|
|
525
522
|
], 32)) : k(r.$slots, "default", { key: 1 }, void 0, !0);
|
|
526
523
|
}
|
|
527
524
|
});
|
|
528
|
-
const
|
|
525
|
+
const yn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), hn = { class: "input" }, $n = {
|
|
529
526
|
key: 0,
|
|
530
527
|
class: "input__label"
|
|
531
|
-
},
|
|
528
|
+
}, bn = {
|
|
532
529
|
key: 1,
|
|
533
530
|
class: "input__hint"
|
|
534
|
-
},
|
|
531
|
+
}, gn = ["placeholder", "readonly", "value"], kn = ["value", "data-maska"], Vn = {
|
|
535
532
|
key: 1,
|
|
536
533
|
class: "input__clipboard"
|
|
537
|
-
},
|
|
534
|
+
}, Cn = /* @__PURE__ */ U({
|
|
538
535
|
__name: "aeria-input",
|
|
539
536
|
props: {
|
|
540
537
|
modelValue: {},
|
|
@@ -546,7 +543,7 @@ const vn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), yn = { cla
|
|
|
546
543
|
},
|
|
547
544
|
emits: ["update:modelValue", "input", "change"],
|
|
548
545
|
setup(c, { emit: u }) {
|
|
549
|
-
const e = c, a = e.property || {}, s = "icon" in a || "inputType" in a && a.inputType === "search", r =
|
|
546
|
+
const e = c, a = e.property || {}, s = "icon" in a || "inputType" in a && a.inputType === "search", r = ve("searchOnly", !1), i = ve("innerInputLabel", !1), y = !r && a.readOnly, m = Bt(), v = u, d = ve("inputVariant", e.variant) || "normal", o = {
|
|
550
547
|
type: (() => {
|
|
551
548
|
if ("type" in a)
|
|
552
549
|
switch (a.type) {
|
|
@@ -571,7 +568,7 @@ const vn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), yn = { cla
|
|
|
571
568
|
"date",
|
|
572
569
|
"date-time"
|
|
573
570
|
].includes(a.format) && (o.type = !r && a.format === "date-time" ? "datetime-local" : "date")), o.type === "text" && r && (o.type = "search");
|
|
574
|
-
const
|
|
571
|
+
const h = () => {
|
|
575
572
|
try {
|
|
576
573
|
return e.modelValue ? new Date(e.modelValue).toISOString().split("T").shift() : "";
|
|
577
574
|
} catch {
|
|
@@ -580,7 +577,7 @@ const vn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), yn = { cla
|
|
|
580
577
|
}, b = Y([
|
|
581
578
|
"date",
|
|
582
579
|
"date-time"
|
|
583
|
-
].includes(o.type) ?
|
|
580
|
+
].includes(o.type) ? h() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), V = (j) => {
|
|
584
581
|
const q = (() => {
|
|
585
582
|
if (o.type === "number")
|
|
586
583
|
return Number(j);
|
|
@@ -594,7 +591,7 @@ const vn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), yn = { cla
|
|
|
594
591
|
return j;
|
|
595
592
|
}
|
|
596
593
|
})();
|
|
597
|
-
|
|
594
|
+
v("input", q), v("update:modelValue", q);
|
|
598
595
|
}, R = (j, q) => {
|
|
599
596
|
const { masked: O } = q || {}, ae = b.value = j.target.value, x = O ? j.detail.unmasked : ae;
|
|
600
597
|
V(x);
|
|
@@ -603,13 +600,13 @@ const vn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), yn = { cla
|
|
|
603
600
|
j instanceof Date || (q && !j ? b.value = void 0 : j && q === void 0 && (b.value = j));
|
|
604
601
|
}), (j, q) => {
|
|
605
602
|
const O = N("focus"), ae = N("clickable");
|
|
606
|
-
return n(), l("label",
|
|
607
|
-
t(i) ?
|
|
603
|
+
return n(), l("label", hn, [
|
|
604
|
+
t(i) ? f("", !0) : (n(), l("div", $n, [
|
|
608
605
|
j.$slots.default ? k(j.$slots, "default", { key: 0 }, void 0, !0) : k(j.$slots, "description", { key: 1 }, void 0, !0)
|
|
609
606
|
])),
|
|
610
|
-
j.$slots.hint ? (n(), l("div",
|
|
607
|
+
j.$slots.hint ? (n(), l("div", bn, [
|
|
611
608
|
k(j.$slots, "hint", {}, void 0, !0)
|
|
612
|
-
])) :
|
|
609
|
+
])) : f("", !0),
|
|
613
610
|
"element" in t(a) && t(a).element === "textarea" ? (n(), l("div", {
|
|
614
611
|
key: 2,
|
|
615
612
|
class: W(`
|
|
@@ -626,7 +623,7 @@ const vn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), yn = { cla
|
|
|
626
623
|
input__input--${t(d)}
|
|
627
624
|
`),
|
|
628
625
|
onInput: R
|
|
629
|
-
}, null, 42,
|
|
626
|
+
}, null, 42, gn), [
|
|
630
627
|
[O, t(a).focus]
|
|
631
628
|
])
|
|
632
629
|
], 2)) : (n(), l("div", {
|
|
@@ -647,21 +644,21 @@ const vn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), yn = { cla
|
|
|
647
644
|
${t(y) && "input__input--readOnly"}
|
|
648
645
|
`,
|
|
649
646
|
onMaska: q[0] || (q[0] = (x) => R(x, { masked: !0 })),
|
|
650
|
-
onChange: q[1] || (q[1] = (x) =>
|
|
651
|
-
}), null, 16,
|
|
647
|
+
onChange: q[1] || (q[1] = (x) => v("change", x))
|
|
648
|
+
}), null, 16, kn), [
|
|
652
649
|
[t(Ht)],
|
|
653
650
|
[O, t(a).focus]
|
|
654
651
|
]),
|
|
655
|
-
t(s) ? (n(),
|
|
652
|
+
t(s) ? (n(), $(K, {
|
|
656
653
|
key: 0,
|
|
657
654
|
icon: t(a).icon || "magnifying-glass",
|
|
658
655
|
class: W(`
|
|
659
656
|
input__icon
|
|
660
657
|
input__icon--${t(d)}
|
|
661
658
|
`)
|
|
662
|
-
}, null, 8, ["icon", "class"])) :
|
|
663
|
-
t(y) ? (n(), l("div",
|
|
664
|
-
M(
|
|
659
|
+
}, null, 8, ["icon", "class"])) : f("", !0),
|
|
660
|
+
t(y) ? (n(), l("div", Vn, [
|
|
661
|
+
M(yn, null, {
|
|
665
662
|
text: _(() => [
|
|
666
663
|
Q("Copiar")
|
|
667
664
|
]),
|
|
@@ -675,16 +672,16 @@ const vn = /* @__PURE__ */ X(fn, [["__scopeId", "data-v-b4b7dab5"]]), yn = { cla
|
|
|
675
672
|
]),
|
|
676
673
|
_: 1
|
|
677
674
|
})
|
|
678
|
-
])) :
|
|
675
|
+
])) : f("", !0)
|
|
679
676
|
], 2))
|
|
680
677
|
]);
|
|
681
678
|
};
|
|
682
679
|
}
|
|
683
680
|
});
|
|
684
|
-
const Ae = /* @__PURE__ */ X(
|
|
681
|
+
const Ae = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-3e3e8c77"]]), An = ["value"], In = {
|
|
685
682
|
key: 1,
|
|
686
683
|
value: ""
|
|
687
|
-
},
|
|
684
|
+
}, On = ["value", "data-selected"], wn = /* @__PURE__ */ U({
|
|
688
685
|
__name: "aeria-select",
|
|
689
686
|
props: {
|
|
690
687
|
modelValue: {},
|
|
@@ -704,20 +701,20 @@ const Ae = /* @__PURE__ */ X(Vn, [["__scopeId", "data-v-3e3e8c77"]]), Cn = ["val
|
|
|
704
701
|
const d = Y(e.modelValue);
|
|
705
702
|
return D({
|
|
706
703
|
get: () => d.value === "true" ? !0 : d.value === "false" ? !1 : null,
|
|
707
|
-
set: (
|
|
708
|
-
d.value =
|
|
704
|
+
set: (h) => {
|
|
705
|
+
d.value = h;
|
|
709
706
|
}
|
|
710
707
|
});
|
|
711
708
|
})() : D({
|
|
712
709
|
get: () => e.modelValue,
|
|
713
710
|
set: i
|
|
714
|
-
}), m = (d) => Array.isArray(e.modelValue) ? e.modelValue.includes(d) : e.modelValue === d,
|
|
711
|
+
}), m = (d) => Array.isArray(e.modelValue) ? e.modelValue.includes(d) : e.modelValue === d, v = D(() => e.multiple ? typeof e.multiple == "number" ? e.multiple : 5 : 1);
|
|
715
712
|
return e.multiple && ue(() => e.modelValue, (d) => {
|
|
716
|
-
var
|
|
713
|
+
var h;
|
|
717
714
|
if (!s.value)
|
|
718
715
|
return;
|
|
719
716
|
const o = s.value.querySelector('option[data-selected="true"]');
|
|
720
|
-
o && o.removeAttribute("data-selected"), (
|
|
717
|
+
o && o.removeAttribute("data-selected"), (h = s.value.querySelector(`option[value="${d}"]`)) == null || h.setAttribute("data-selected", "true");
|
|
721
718
|
}), (d, o) => (n(), l("div", {
|
|
722
719
|
class: W({
|
|
723
720
|
select: !0,
|
|
@@ -729,30 +726,30 @@ const Ae = /* @__PURE__ */ X(Vn, [["__scopeId", "data-v-3e3e8c77"]]), Cn = ["val
|
|
|
729
726
|
ref: s,
|
|
730
727
|
value: t(y)
|
|
731
728
|
}, {
|
|
732
|
-
size:
|
|
729
|
+
size: v.value
|
|
733
730
|
}, {
|
|
734
731
|
class: {
|
|
735
732
|
select__select: !0,
|
|
736
733
|
"select__select--multiple": !!e.multiple
|
|
737
734
|
},
|
|
738
|
-
onChange: o[0] || (o[0] = (
|
|
735
|
+
onChange: o[0] || (o[0] = (h) => i(h.target.value))
|
|
739
736
|
}), [
|
|
740
|
-
t(r).icon ? (n(),
|
|
737
|
+
t(r).icon ? (n(), $(K, {
|
|
741
738
|
key: 0,
|
|
742
739
|
icon: t(r).icon
|
|
743
|
-
}, null, 8, ["icon"])) :
|
|
744
|
-
e.multiple ?
|
|
745
|
-
(n(!0), l(J, null, H("enum" in t(r) ? t(r).enum : [], (
|
|
746
|
-
key:
|
|
747
|
-
value:
|
|
748
|
-
"data-selected": m(
|
|
749
|
-
}, B(t(r).translate ? t(E)(
|
|
740
|
+
}, null, 8, ["icon"])) : f("", !0),
|
|
741
|
+
e.multiple ? f("", !0) : (n(), l("option", In, B(t(E)("none")), 1)),
|
|
742
|
+
(n(!0), l(J, null, H("enum" in t(r) ? t(r).enum : [], (h) => (n(), l("option", {
|
|
743
|
+
key: h,
|
|
744
|
+
value: h,
|
|
745
|
+
"data-selected": m(h)
|
|
746
|
+
}, B(t(r).translate ? t(E)(h) : h), 9, On))), 128)),
|
|
750
747
|
k(d.$slots, "default", {}, void 0, !0)
|
|
751
|
-
], 16,
|
|
748
|
+
], 16, An)
|
|
752
749
|
], 2));
|
|
753
750
|
}
|
|
754
751
|
});
|
|
755
|
-
const He = /* @__PURE__ */ X(
|
|
752
|
+
const He = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { class: "pagination" }, Sn = ["value"], jn = { class: "pagination__control" }, Tn = { class: "pagination__page-input" }, Ln = /* @__PURE__ */ U({
|
|
756
753
|
__name: "aeria-pagination",
|
|
757
754
|
props: {
|
|
758
755
|
pagination: {}
|
|
@@ -761,26 +758,26 @@ const He = /* @__PURE__ */ X(On, [["__scopeId", "data-v-7a33443b"]]), wn = { cla
|
|
|
761
758
|
setup(c, { emit: u }) {
|
|
762
759
|
const e = c, a = u, s = D({
|
|
763
760
|
get: () => Math.floor(e.pagination.offset / e.pagination.limit),
|
|
764
|
-
set: (
|
|
765
|
-
e.pagination.offset =
|
|
761
|
+
set: (v) => {
|
|
762
|
+
e.pagination.offset = v * e.pagination.limit;
|
|
766
763
|
}
|
|
767
764
|
}), r = D({
|
|
768
765
|
get: () => e.pagination.limit,
|
|
769
|
-
set: (
|
|
770
|
-
e.pagination.limit = Number(
|
|
766
|
+
set: (v) => {
|
|
767
|
+
e.pagination.limit = Number(v);
|
|
771
768
|
}
|
|
772
|
-
}), i = Y(s.value ? s.value + 1 : 1), y = D(() => Math.ceil(e.pagination.recordsTotal / e.pagination.limit)), m = (
|
|
773
|
-
s.value =
|
|
769
|
+
}), i = Y(s.value ? s.value + 1 : 1), y = D(() => Math.ceil(e.pagination.recordsTotal / e.pagination.limit)), m = (v) => {
|
|
770
|
+
s.value = v === "previous" ? s.value - 1 : s.value + 1;
|
|
774
771
|
};
|
|
775
772
|
return ue([
|
|
776
773
|
s,
|
|
777
774
|
r
|
|
778
|
-
], ([
|
|
779
|
-
i.value =
|
|
775
|
+
], ([v]) => {
|
|
776
|
+
i.value = v + 1, a("paginate", {
|
|
780
777
|
offset: s.value * r.value,
|
|
781
778
|
limit: r.value
|
|
782
779
|
});
|
|
783
|
-
}), (
|
|
780
|
+
}), (v, d) => (n(), l("div", Bn, [
|
|
784
781
|
M(He, {
|
|
785
782
|
modelValue: r.value,
|
|
786
783
|
"onUpdate:modelValue": d[0] || (d[0] = (o) => r.value = o),
|
|
@@ -794,11 +791,11 @@ const He = /* @__PURE__ */ X(On, [["__scopeId", "data-v-7a33443b"]]), wn = { cla
|
|
|
794
791
|
(n(!0), l(J, null, H(t(St), (o) => (n(), l("option", {
|
|
795
792
|
key: `limit-${o}`,
|
|
796
793
|
value: o
|
|
797
|
-
}, B(o), 9,
|
|
794
|
+
}, B(o), 9, Sn))), 128))
|
|
798
795
|
]),
|
|
799
796
|
_: 1
|
|
800
797
|
}, 8, ["modelValue"]),
|
|
801
|
-
g("div",
|
|
798
|
+
g("div", jn, [
|
|
802
799
|
M(me, {
|
|
803
800
|
onClick: d[1] || (d[1] = (o) => s.value = 0)
|
|
804
801
|
}, {
|
|
@@ -822,8 +819,8 @@ const He = /* @__PURE__ */ X(On, [["__scopeId", "data-v-7a33443b"]]), wn = { cla
|
|
|
822
819
|
]),
|
|
823
820
|
_: 1
|
|
824
821
|
}, 8, ["disabled"]),
|
|
825
|
-
g("div",
|
|
826
|
-
(n(),
|
|
822
|
+
g("div", Tn, [
|
|
823
|
+
(n(), $(Ae, {
|
|
827
824
|
key: s.value,
|
|
828
825
|
modelValue: i.value,
|
|
829
826
|
"onUpdate:modelValue": d[3] || (d[3] = (o) => i.value = o),
|
|
@@ -864,10 +861,10 @@ const He = /* @__PURE__ */ X(On, [["__scopeId", "data-v-7a33443b"]]), wn = { cla
|
|
|
864
861
|
]));
|
|
865
862
|
}
|
|
866
863
|
});
|
|
867
|
-
const
|
|
864
|
+
const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-7b3fd4da"]]), Fn = { class: "checkbox__text" }, Mn = ["innerHTML"], qn = { class: "checkbox__hint" }, Un = ["innerHTML"], En = {
|
|
868
865
|
inheritAttrs: !1
|
|
869
|
-
},
|
|
870
|
-
...
|
|
866
|
+
}, zn = /* @__PURE__ */ U({
|
|
867
|
+
...En,
|
|
871
868
|
__name: "aeria-checkbox",
|
|
872
869
|
props: {
|
|
873
870
|
modelValue: {},
|
|
@@ -896,7 +893,7 @@ const Ln = /* @__PURE__ */ X(Tn, [["__scopeId", "data-v-7b3fd4da"]]), Rn = { cla
|
|
|
896
893
|
return;
|
|
897
894
|
}
|
|
898
895
|
if ("items" in a) {
|
|
899
|
-
r("update:modelValue", (m = e.modelValue) != null && m.includes(i) ? e.modelValue.filter((
|
|
896
|
+
r("update:modelValue", (m = e.modelValue) != null && m.includes(i) ? e.modelValue.filter((v) => v !== i) : [
|
|
900
897
|
...e.modelValue || [],
|
|
901
898
|
i
|
|
902
899
|
]);
|
|
@@ -906,7 +903,7 @@ const Ln = /* @__PURE__ */ X(Tn, [["__scopeId", "data-v-7b3fd4da"]]), Rn = { cla
|
|
|
906
903
|
}
|
|
907
904
|
}
|
|
908
905
|
});
|
|
909
|
-
return (m,
|
|
906
|
+
return (m, v) => {
|
|
910
907
|
const d = N("clickable");
|
|
911
908
|
return n(), l("label", {
|
|
912
909
|
class: W(`
|
|
@@ -915,7 +912,7 @@ const Ln = /* @__PURE__ */ X(Tn, [["__scopeId", "data-v-7b3fd4da"]]), Rn = { cla
|
|
|
915
912
|
`)
|
|
916
913
|
}, [
|
|
917
914
|
Z(g("input", G({
|
|
918
|
-
"onUpdate:modelValue":
|
|
915
|
+
"onUpdate:modelValue": v[0] || (v[0] = (o) => y.value = o)
|
|
919
916
|
}, {
|
|
920
917
|
type: t(s),
|
|
921
918
|
readOnly: t(a).readOnly,
|
|
@@ -923,18 +920,18 @@ const Ln = /* @__PURE__ */ X(Tn, [["__scopeId", "data-v-7b3fd4da"]]), Rn = { cla
|
|
|
923
920
|
}, { class: "checkbox__input" }), null, 16), [
|
|
924
921
|
[gt, y.value]
|
|
925
922
|
]),
|
|
926
|
-
Z((n(), l("div",
|
|
923
|
+
Z((n(), l("div", Fn, [
|
|
927
924
|
g("div", null, [
|
|
928
925
|
m.$slots.description ? k(m.$slots, "description", { key: 0 }, void 0, !0) : t(i) ? (n(), l("div", {
|
|
929
926
|
key: 1,
|
|
930
927
|
innerHTML: t(a).translate ? t(E)(t(i)) : t(i)
|
|
931
|
-
}, null, 8,
|
|
928
|
+
}, null, 8, Mn)) : k(m.$slots, "default", { key: 2 }, void 0, !0)
|
|
932
929
|
]),
|
|
933
|
-
g("div",
|
|
930
|
+
g("div", qn, [
|
|
934
931
|
m.$slots.hint ? k(m.$slots, "hint", { key: 0 }, void 0, !0) : t(a).hint ? (n(), l("div", {
|
|
935
932
|
key: 1,
|
|
936
933
|
innerHTML: t(a).hint
|
|
937
|
-
}, null, 8,
|
|
934
|
+
}, null, 8, Un)) : f("", !0)
|
|
938
935
|
])
|
|
939
936
|
])), [
|
|
940
937
|
[d]
|
|
@@ -943,10 +940,10 @@ const Ln = /* @__PURE__ */ X(Tn, [["__scopeId", "data-v-7b3fd4da"]]), Rn = { cla
|
|
|
943
940
|
};
|
|
944
941
|
}
|
|
945
942
|
});
|
|
946
|
-
const
|
|
943
|
+
const Hn = /* @__PURE__ */ X(zn, [["__scopeId", "data-v-c0ec1e4a"]]), Dn = {
|
|
947
944
|
inheritAttrs: !1
|
|
948
|
-
},
|
|
949
|
-
...
|
|
945
|
+
}, Qn = /* @__PURE__ */ U({
|
|
946
|
+
...Dn,
|
|
950
947
|
__name: "aeria-options",
|
|
951
948
|
props: {
|
|
952
949
|
modelValue: {},
|
|
@@ -961,14 +958,14 @@ const zn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Hn = {
|
|
|
961
958
|
const e = c, a = u, s = "items" in e.property ? e.property.items.enum : e.property.enum, r = (i) => {
|
|
962
959
|
a("update:modelValue", i);
|
|
963
960
|
};
|
|
964
|
-
return
|
|
961
|
+
return vt(() => {
|
|
965
962
|
e.modelValue || a(
|
|
966
963
|
"update:modelValue",
|
|
967
964
|
"items" in e.property ? [] : ""
|
|
968
965
|
);
|
|
969
966
|
}), (i, y) => (n(), l("div", {
|
|
970
967
|
class: "options",
|
|
971
|
-
style:
|
|
968
|
+
style: he(`
|
|
972
969
|
--columns: ${i.columns};
|
|
973
970
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
974
971
|
`)
|
|
@@ -977,7 +974,7 @@ const zn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Hn = {
|
|
|
977
974
|
key: `option-${m}`,
|
|
978
975
|
class: "options__checkbox"
|
|
979
976
|
}, [
|
|
980
|
-
M(
|
|
977
|
+
M(Hn, G({
|
|
981
978
|
value: m,
|
|
982
979
|
property: i.property
|
|
983
980
|
}, {
|
|
@@ -988,10 +985,10 @@ const zn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-c0ec1e4a"]]), Hn = {
|
|
|
988
985
|
], 4));
|
|
989
986
|
}
|
|
990
987
|
});
|
|
991
|
-
const
|
|
988
|
+
const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) => (Ue("data-v-30f5a5ca"), c = c(), Ee(), c), Xn = { class: "switch-wrapper" }, Yn = /* @__PURE__ */ Wn(() => /* @__PURE__ */ g("div", { class: "switch__slider" }, null, -1)), Jn = { key: 1 }, Kn = {
|
|
992
989
|
inheritAttrs: !1
|
|
993
|
-
},
|
|
994
|
-
...
|
|
990
|
+
}, Zn = /* @__PURE__ */ U({
|
|
991
|
+
...Kn,
|
|
995
992
|
__name: "aeria-switch",
|
|
996
993
|
props: {
|
|
997
994
|
modelValue: {},
|
|
@@ -1007,7 +1004,7 @@ const Qn = /* @__PURE__ */ X(Dn, [["__scopeId", "data-v-43cda372"]]), Gn = (c) =
|
|
|
1007
1004
|
};
|
|
1008
1005
|
return (i, y) => {
|
|
1009
1006
|
const m = N("clickable");
|
|
1010
|
-
return n(), l("div",
|
|
1007
|
+
return n(), l("div", Xn, [
|
|
1011
1008
|
Z((n(), l("a", {
|
|
1012
1009
|
class: W(`
|
|
1013
1010
|
switch
|
|
@@ -1016,7 +1013,7 @@ const Qn = /* @__PURE__ */ X(Dn, [["__scopeId", "data-v-43cda372"]]), Gn = (c) =
|
|
|
1016
1013
|
`),
|
|
1017
1014
|
onClick: Me(r, ["stop"])
|
|
1018
1015
|
}, [
|
|
1019
|
-
|
|
1016
|
+
Yn,
|
|
1020
1017
|
g("div", {
|
|
1021
1018
|
class: W(`
|
|
1022
1019
|
switch__dummy
|
|
@@ -1028,35 +1025,35 @@ const Qn = /* @__PURE__ */ X(Dn, [["__scopeId", "data-v-43cda372"]]), Gn = (c) =
|
|
|
1028
1025
|
blocked: t(s).readOnly
|
|
1029
1026
|
}]
|
|
1030
1027
|
]),
|
|
1031
|
-
i.$slots.default ? k(i.$slots, "default", { key: 0 }, void 0, !0) : (n(), l("div",
|
|
1028
|
+
i.$slots.default ? k(i.$slots, "default", { key: 0 }, void 0, !0) : (n(), l("div", Jn, B(t(s).description || i.propertyName), 1))
|
|
1032
1029
|
]);
|
|
1033
1030
|
};
|
|
1034
1031
|
}
|
|
1035
1032
|
});
|
|
1036
|
-
const
|
|
1033
|
+
const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), ht = (c) => (Ue("data-v-ecfb1379"), c = c(), Ee(), c), Nn = { class: "picture" }, xn = {
|
|
1037
1034
|
key: 0,
|
|
1038
1035
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1039
|
-
},
|
|
1036
|
+
}, eo = ["src"], to = {
|
|
1040
1037
|
key: 0,
|
|
1041
1038
|
class: "picture__meta"
|
|
1042
|
-
},
|
|
1039
|
+
}, no = ["src"], oo = /* @__PURE__ */ ht(() => /* @__PURE__ */ g("line", {
|
|
1043
1040
|
x1: "0",
|
|
1044
1041
|
y1: "0",
|
|
1045
1042
|
x2: "200",
|
|
1046
1043
|
y2: "200",
|
|
1047
1044
|
stroke: "#000",
|
|
1048
1045
|
"vector-effect": "non-scaling-stroke"
|
|
1049
|
-
}, null, -1)),
|
|
1046
|
+
}, null, -1)), ao = /* @__PURE__ */ ht(() => /* @__PURE__ */ g("line", {
|
|
1050
1047
|
x1: "200",
|
|
1051
1048
|
y1: "0",
|
|
1052
1049
|
x2: "0",
|
|
1053
1050
|
y2: "200",
|
|
1054
1051
|
stroke: "#000",
|
|
1055
1052
|
"vector-effect": "non-scaling-stroke"
|
|
1056
|
-
}, null, -1)),
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
],
|
|
1053
|
+
}, null, -1)), so = [
|
|
1054
|
+
oo,
|
|
1055
|
+
ao
|
|
1056
|
+
], lo = { key: 5 }, io = /* @__PURE__ */ U({
|
|
1060
1057
|
__name: "aeria-picture",
|
|
1061
1058
|
props: {
|
|
1062
1059
|
url: {},
|
|
@@ -1070,16 +1067,16 @@ const Zn = /* @__PURE__ */ X(Kn, [["__scopeId", "data-v-30f5a5ca"]]), $t = (c) =
|
|
|
1070
1067
|
meta: {}
|
|
1071
1068
|
},
|
|
1072
1069
|
setup(c) {
|
|
1073
|
-
const u = c, e = D(() => u.fileId ? `${
|
|
1070
|
+
const u = c, e = D(() => u.fileId ? `${ft}/file/${u.fileId}/picture` : u.url || u.modelValue), a = Y(!1);
|
|
1074
1071
|
return (s, r) => {
|
|
1075
1072
|
var y;
|
|
1076
1073
|
const i = N("overlay");
|
|
1077
|
-
return n(), l("figure",
|
|
1078
|
-
e.value ? (n(),
|
|
1074
|
+
return n(), l("figure", Nn, [
|
|
1075
|
+
e.value ? (n(), $(We, {
|
|
1079
1076
|
key: 0,
|
|
1080
1077
|
to: "main"
|
|
1081
1078
|
}, [
|
|
1082
|
-
a.value ? Z((n(), l("div",
|
|
1079
|
+
a.value ? Z((n(), l("div", xn, [
|
|
1083
1080
|
g("img", {
|
|
1084
1081
|
src: e.value,
|
|
1085
1082
|
style: `
|
|
@@ -1087,16 +1084,16 @@ const Zn = /* @__PURE__ */ X(Kn, [["__scopeId", "data-v-30f5a5ca"]]), $t = (c) =
|
|
|
1087
1084
|
object-fit: contain;
|
|
1088
1085
|
`,
|
|
1089
1086
|
onClick: r[0] || (r[0] = (m) => a.value = !0)
|
|
1090
|
-
}, null, 8,
|
|
1091
|
-
(y = s.meta) != null && y.owner ? (n(), l("div",
|
|
1087
|
+
}, null, 8, eo),
|
|
1088
|
+
(y = s.meta) != null && y.owner ? (n(), l("div", to, " Criado por " + B(s.meta.owner.name) + " em " + B(s.formatDateTime(s.meta.created_at, { hours: !0 })), 1)) : f("", !0)
|
|
1092
1089
|
])), [
|
|
1093
1090
|
[i, {
|
|
1094
1091
|
click: () => {
|
|
1095
1092
|
a.value = !1;
|
|
1096
1093
|
}
|
|
1097
1094
|
}]
|
|
1098
|
-
]) :
|
|
1099
|
-
])) :
|
|
1095
|
+
]) : f("", !0)
|
|
1096
|
+
])) : f("", !0),
|
|
1100
1097
|
e.value ? (n(), l("img", {
|
|
1101
1098
|
key: 1,
|
|
1102
1099
|
src: e.value,
|
|
@@ -1105,7 +1102,7 @@ const Zn = /* @__PURE__ */ X(Kn, [["__scopeId", "data-v-30f5a5ca"]]), $t = (c) =
|
|
|
1105
1102
|
${s.bordered && "picture__image--bordered"}
|
|
1106
1103
|
${s.expandable && "picture__image--expandable"}
|
|
1107
1104
|
`),
|
|
1108
|
-
style:
|
|
1105
|
+
style: he(`
|
|
1109
1106
|
object-fit: ${s.objectFit || "cover"};
|
|
1110
1107
|
width: ${s.width || "100%"};
|
|
1111
1108
|
height: ${s.height || "100%"};
|
|
@@ -1113,7 +1110,7 @@ const Zn = /* @__PURE__ */ X(Kn, [["__scopeId", "data-v-30f5a5ca"]]), $t = (c) =
|
|
|
1113
1110
|
onClick: r[1] || (r[1] = () => {
|
|
1114
1111
|
s.expandable && (a.value = !0);
|
|
1115
1112
|
})
|
|
1116
|
-
}, null, 14,
|
|
1113
|
+
}, null, 14, no)) : s.$slots.fallback ? k(s.$slots, "fallback", { key: 2 }, void 0, !0) : s.$slots.default ? k(s.$slots, "default", { key: 3 }, void 0, !0) : (n(), l("svg", {
|
|
1117
1114
|
key: 4,
|
|
1118
1115
|
class: W(["picture__background", `
|
|
1119
1116
|
${s.bordered && "picture__image--bordered"}
|
|
@@ -1121,23 +1118,23 @@ const Zn = /* @__PURE__ */ X(Kn, [["__scopeId", "data-v-30f5a5ca"]]), $t = (c) =
|
|
|
1121
1118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1122
1119
|
viewBox: "0 0 200 200",
|
|
1123
1120
|
preserveAspectRatio: "none",
|
|
1124
|
-
style:
|
|
1121
|
+
style: he(`
|
|
1125
1122
|
object-fit: ${s.objectFit || "cover"};
|
|
1126
1123
|
width: ${s.width || "100%"};
|
|
1127
1124
|
height: ${s.height || "100%"};
|
|
1128
1125
|
`)
|
|
1129
|
-
},
|
|
1130
|
-
s.$slots.caption ? (n(), l("figcaption",
|
|
1126
|
+
}, so, 6)),
|
|
1127
|
+
s.$slots.caption ? (n(), l("figcaption", lo, [
|
|
1131
1128
|
k(s.$slots, "caption", {}, void 0, !0)
|
|
1132
|
-
])) :
|
|
1129
|
+
])) : f("", !0)
|
|
1133
1130
|
]);
|
|
1134
1131
|
};
|
|
1135
1132
|
}
|
|
1136
1133
|
});
|
|
1137
|
-
const qe = /* @__PURE__ */ X(
|
|
1134
|
+
const qe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-ecfb1379"]]), ro = { class: "file" }, uo = { key: 0 }, co = ["href"], po = { class: "file__actions" }, _o = ["accept"], mo = {
|
|
1138
1135
|
key: 0,
|
|
1139
1136
|
class: "file__buttons"
|
|
1140
|
-
},
|
|
1137
|
+
}, vo = {
|
|
1141
1138
|
key: 1,
|
|
1142
1139
|
class: "file__buttons"
|
|
1143
1140
|
}, fo = /* @__PURE__ */ U({
|
|
@@ -1159,16 +1156,16 @@ const qe = /* @__PURE__ */ X(lo, [["__scopeId", "data-v-ecfb1379"]]), io = { cla
|
|
|
1159
1156
|
}), m = D(() => {
|
|
1160
1157
|
var b, V, R;
|
|
1161
1158
|
return /^image\//.test((b = e.modelValue) == null ? void 0 : b.mime) && !((V = i.value) != null && V.type) || /^image\//.test((R = i.value) == null ? void 0 : R.type);
|
|
1162
|
-
}),
|
|
1159
|
+
}), v = (b) => new Promise((V) => {
|
|
1163
1160
|
const R = new FileReader();
|
|
1164
1161
|
R.onload = () => V(R.result), R.readAsArrayBuffer(b);
|
|
1165
1162
|
}), d = () => {
|
|
1166
1163
|
i.value = null;
|
|
1167
1164
|
}, o = async (b) => {
|
|
1168
1165
|
i.value = b.target.files[0];
|
|
1169
|
-
const V = i.value, R = await
|
|
1166
|
+
const V = i.value, R = await v(V);
|
|
1170
1167
|
if (r) {
|
|
1171
|
-
const { data: j } = await jt(`${
|
|
1168
|
+
const { data: j } = await jt(`${ft}/${r.$id}/upload?filename=${V.name}`, R, {
|
|
1172
1169
|
params: {
|
|
1173
1170
|
method: "POST",
|
|
1174
1171
|
headers: {
|
|
@@ -1180,14 +1177,14 @@ const qe = /* @__PURE__ */ X(lo, [["__scopeId", "data-v-ecfb1379"]]), io = { cla
|
|
|
1180
1177
|
a("update:modelValue", j);
|
|
1181
1178
|
}
|
|
1182
1179
|
a("update:content", R), a("change", R);
|
|
1183
|
-
},
|
|
1180
|
+
}, h = async () => {
|
|
1184
1181
|
a("update:modelValue", null);
|
|
1185
1182
|
};
|
|
1186
1183
|
return (b, V) => {
|
|
1187
1184
|
var R, j, q, O, ae, x;
|
|
1188
|
-
return n(), l("div",
|
|
1189
|
-
i.value || (R = b.modelValue) != null && R._id ? (n(), l("div",
|
|
1190
|
-
m.value ? (n(),
|
|
1185
|
+
return n(), l("div", ro, [
|
|
1186
|
+
i.value || (R = b.modelValue) != null && R._id ? (n(), l("div", uo, [
|
|
1187
|
+
m.value ? (n(), $(qe, {
|
|
1191
1188
|
key: 0,
|
|
1192
1189
|
modelValue: y.value,
|
|
1193
1190
|
"onUpdate:modelValue": V[0] || (V[0] = (S) => y.value = S),
|
|
@@ -1195,20 +1192,20 @@ const qe = /* @__PURE__ */ X(lo, [["__scopeId", "data-v-ecfb1379"]]), io = { cla
|
|
|
1195
1192
|
file__image
|
|
1196
1193
|
${!t(r) || ((j = b.modelValue) == null ? void 0 : j._id) || "file__image--unsent"}
|
|
1197
1194
|
`)
|
|
1198
|
-
}, null, 8, ["modelValue", "class"])) :
|
|
1195
|
+
}, null, 8, ["modelValue", "class"])) : f("", !0),
|
|
1199
1196
|
(q = b.modelValue) != null && q._id ? (n(), l("a", {
|
|
1200
1197
|
key: 1,
|
|
1201
1198
|
href: b.modelValue.download_link
|
|
1202
|
-
}, B(b.modelValue.filename), 9,
|
|
1203
|
-
])) :
|
|
1204
|
-
g("div",
|
|
1199
|
+
}, B(b.modelValue.filename), 9, co)) : f("", !0)
|
|
1200
|
+
])) : f("", !0),
|
|
1201
|
+
g("div", po, [
|
|
1205
1202
|
g("input", {
|
|
1206
1203
|
ref: "file",
|
|
1207
1204
|
type: "file",
|
|
1208
1205
|
accept: (ae = (O = b.property) == null ? void 0 : O.accept) == null ? void 0 : ae.join(","),
|
|
1209
1206
|
onChange: o
|
|
1210
|
-
}, null, 40,
|
|
1211
|
-
i.value ? (n(), l("div",
|
|
1207
|
+
}, null, 40, _o),
|
|
1208
|
+
i.value ? (n(), l("div", mo, [
|
|
1212
1209
|
M(re, {
|
|
1213
1210
|
small: "",
|
|
1214
1211
|
onClick: Me(d, ["prevent"])
|
|
@@ -1218,26 +1215,26 @@ const qe = /* @__PURE__ */ X(lo, [["__scopeId", "data-v-ecfb1379"]]), io = { cla
|
|
|
1218
1215
|
]),
|
|
1219
1216
|
_: 1
|
|
1220
1217
|
})
|
|
1221
|
-
])) : (x = b.modelValue) != null && x._id ? (n(), l("div",
|
|
1218
|
+
])) : (x = b.modelValue) != null && x._id ? (n(), l("div", vo, [
|
|
1222
1219
|
M(re, {
|
|
1223
1220
|
small: "",
|
|
1224
|
-
onClick: Me(
|
|
1221
|
+
onClick: Me(h, ["prevent"])
|
|
1225
1222
|
}, {
|
|
1226
1223
|
default: _(() => [
|
|
1227
1224
|
Q(" Remover ")
|
|
1228
1225
|
]),
|
|
1229
1226
|
_: 1
|
|
1230
1227
|
})
|
|
1231
|
-
])) :
|
|
1228
|
+
])) : f("", !0)
|
|
1232
1229
|
])
|
|
1233
1230
|
]);
|
|
1234
1231
|
};
|
|
1235
1232
|
}
|
|
1236
1233
|
});
|
|
1237
|
-
const
|
|
1234
|
+
const yo = /* @__PURE__ */ X(fo, [["__scopeId", "data-v-f3848c9a"]]), ho = { class: "container" }, $o = {
|
|
1238
1235
|
key: 1,
|
|
1239
1236
|
class: "container__footer"
|
|
1240
|
-
},
|
|
1237
|
+
}, bo = /* @__PURE__ */ U({
|
|
1241
1238
|
__name: "aeria-search-container",
|
|
1242
1239
|
props: {
|
|
1243
1240
|
observeScroll: { type: Boolean }
|
|
@@ -1249,7 +1246,7 @@ const vo = /* @__PURE__ */ X(fo, [["__scopeId", "data-v-f3848c9a"]]), yo = { cla
|
|
|
1249
1246
|
}).reachedEnd : null;
|
|
1250
1247
|
return r !== null && ue(r, (i) => {
|
|
1251
1248
|
i && a("endReached", i);
|
|
1252
|
-
}), (i, y) => (n(), l("div",
|
|
1249
|
+
}), (i, y) => (n(), l("div", ho, [
|
|
1253
1250
|
i.$slots.default ? (n(), l("div", {
|
|
1254
1251
|
key: 0,
|
|
1255
1252
|
ref_key: "containerEl",
|
|
@@ -1257,14 +1254,14 @@ const vo = /* @__PURE__ */ X(fo, [["__scopeId", "data-v-f3848c9a"]]), yo = { cla
|
|
|
1257
1254
|
class: "container__content"
|
|
1258
1255
|
}, [
|
|
1259
1256
|
k(i.$slots, "default", {}, void 0, !0)
|
|
1260
|
-
], 512)) :
|
|
1257
|
+
], 512)) : f("", !0),
|
|
1261
1258
|
i.$slots.footer ? (n(), l("div", $o, [
|
|
1262
1259
|
k(i.$slots, "footer", {}, void 0, !0)
|
|
1263
|
-
])) :
|
|
1260
|
+
])) : f("", !0)
|
|
1264
1261
|
]));
|
|
1265
1262
|
}
|
|
1266
1263
|
});
|
|
1267
|
-
const rt = /* @__PURE__ */ X(
|
|
1264
|
+
const rt = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-193f9eed"]]), go = { class: "item__values" }, ko = /* @__PURE__ */ U({
|
|
1268
1265
|
__name: "aeria-search-item",
|
|
1269
1266
|
props: {
|
|
1270
1267
|
item: {},
|
|
@@ -1277,52 +1274,52 @@ const rt = /* @__PURE__ */ X(ho, [["__scopeId", "data-v-193f9eed"]]), bo = { cla
|
|
|
1277
1274
|
const e = c, a = u, s = e.property, r = pe(s), i = ge(), y = D(() => Array.isArray(e.modelValue) ? Array.isArray(e.modelValue) && Object.values(e.modelValue).some(({ _id: d }) => e.item._id === d) : e.modelValue && e.modelValue._id === e.item._id), m = () => {
|
|
1278
1275
|
if (y.value)
|
|
1279
1276
|
return;
|
|
1280
|
-
const d = (
|
|
1277
|
+
const d = (h) => h.filter((b) => !!(b != null && b._id)), o = "items" in s ? d(Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]) : e.modelValue;
|
|
1281
1278
|
a("update:modelValue", Array.isArray(o) ? [
|
|
1282
1279
|
...o,
|
|
1283
1280
|
e.item
|
|
1284
1281
|
] : e.item), a("change", e.item);
|
|
1285
|
-
},
|
|
1282
|
+
}, v = async (d) => {
|
|
1286
1283
|
if (r.purge && (d != null && d.purge)) {
|
|
1287
|
-
const { _id:
|
|
1284
|
+
const { _id: h } = e.item;
|
|
1288
1285
|
await i.$actions.remove({
|
|
1289
1286
|
filters: {
|
|
1290
|
-
_id:
|
|
1287
|
+
_id: h
|
|
1291
1288
|
}
|
|
1292
1289
|
});
|
|
1293
1290
|
}
|
|
1294
1291
|
const o = () => {
|
|
1295
|
-
const
|
|
1296
|
-
return
|
|
1292
|
+
const h = [...e.modelValue], b = h.findIndex((V) => V._id === e.item._id);
|
|
1293
|
+
return h.splice(b, 1), h;
|
|
1297
1294
|
};
|
|
1298
1295
|
a("update:modelValue", "items" in s ? o() : null);
|
|
1299
1296
|
};
|
|
1300
1297
|
return (d, o) => {
|
|
1301
|
-
const
|
|
1298
|
+
const h = N("clickable");
|
|
1302
1299
|
return Z((n(), l("div", {
|
|
1303
1300
|
class: W({
|
|
1304
1301
|
item: !0,
|
|
1305
1302
|
"item--selected": y.value
|
|
1306
1303
|
}),
|
|
1307
|
-
onClick: o[0] || (o[0] = (b) => y.value ?
|
|
1304
|
+
onClick: o[0] || (o[0] = (b) => y.value ? v() : m())
|
|
1308
1305
|
}, [
|
|
1309
1306
|
k(d.$slots, "default", {}, void 0, !0),
|
|
1310
|
-
g("div",
|
|
1307
|
+
g("div", go, [
|
|
1311
1308
|
(n(!0), l(J, null, H(d.indexes, (b, V) => (n(), l("div", {
|
|
1312
1309
|
key: `index-${d.item._id}-${V}`,
|
|
1313
1310
|
class: "item__value"
|
|
1314
1311
|
}, B(d.item[b]), 1))), 128))
|
|
1315
1312
|
])
|
|
1316
1313
|
], 2)), [
|
|
1317
|
-
[
|
|
1314
|
+
[h]
|
|
1318
1315
|
]);
|
|
1319
1316
|
};
|
|
1320
1317
|
}
|
|
1321
1318
|
});
|
|
1322
|
-
const Qe = /* @__PURE__ */ X(
|
|
1319
|
+
const Qe = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { class: "search__panel" }, Co = { class: "search__input" }, Ao = ["value"], Io = { style: { flex: "1" } }, Oo = { key: 1 }, wo = { key: 0 }, Bo = { key: 1 }, So = { class: "search__summary" }, jo = {
|
|
1323
1320
|
key: 1,
|
|
1324
1321
|
class: "search"
|
|
1325
|
-
},
|
|
1322
|
+
}, To = { key: 0 }, Fe = 10, Lo = /* @__PURE__ */ U({
|
|
1326
1323
|
__name: "aeria-search",
|
|
1327
1324
|
props: {
|
|
1328
1325
|
modelValue: {},
|
|
@@ -1335,12 +1332,12 @@ const Qe = /* @__PURE__ */ X(go, [["__scopeId", "data-v-fa7fea9f"]]), ko = { cla
|
|
|
1335
1332
|
},
|
|
1336
1333
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1337
1334
|
setup(c, { emit: u }) {
|
|
1338
|
-
const e = c, a = pe(e.property), s = e.panel !== void 0 ? D(() => e.panel) : Y(!1), r = u, i = ce(pe(e.property).$ref), y = Le(), m = y ? ge() : null,
|
|
1339
|
-
|
|
1335
|
+
const e = c, a = pe(e.property), s = e.panel !== void 0 ? D(() => e.panel) : Y(!1), r = u, i = ce(pe(e.property).$ref), y = Le(), m = y ? ge() : null, v = a.indexes;
|
|
1336
|
+
fe(ze, pe(e.property).$ref), fe("innerInputLabel", !0), fe("omitInputLabels", !0);
|
|
1340
1337
|
const d = Y(e.modelValue), o = Y({
|
|
1341
1338
|
data: [],
|
|
1342
1339
|
pagination: {}
|
|
1343
|
-
}),
|
|
1340
|
+
}), h = D(() => o.value.data), b = D(() => o.value.pagination), V = Y(0), R = Y(v[0]), j = Y(!1), q = Y({}), O = () => {
|
|
1344
1341
|
const C = {};
|
|
1345
1342
|
if (y) {
|
|
1346
1343
|
const L = je(y) ? y.value : y;
|
|
@@ -1348,7 +1345,7 @@ const Qe = /* @__PURE__ */ X(go, [["__scopeId", "data-v-fa7fea9f"]]), ko = { cla
|
|
|
1348
1345
|
}
|
|
1349
1346
|
return a.constraints ? qt(a.constraints, C) : {};
|
|
1350
1347
|
}, ae = () => {
|
|
1351
|
-
|
|
1348
|
+
h.value.length < b.value.recordsTotal && (V.value += 1, S());
|
|
1352
1349
|
}, x = async () => Object.values(q.value).every((C) => !(String(C).length > 0)) ? i.$actions.custom("getAll", {
|
|
1353
1350
|
limit: Fe,
|
|
1354
1351
|
offset: V.value * Fe,
|
|
@@ -1358,7 +1355,7 @@ const Qe = /* @__PURE__ */ X(go, [["__scopeId", "data-v-fa7fea9f"]]), ko = { cla
|
|
|
1358
1355
|
offset: V.value * Fe,
|
|
1359
1356
|
filters: {
|
|
1360
1357
|
...O(),
|
|
1361
|
-
$or:
|
|
1358
|
+
$or: v.filter((C) => {
|
|
1362
1359
|
var L;
|
|
1363
1360
|
return ((L = q.value[C]) == null ? void 0 : L.length) > 0;
|
|
1364
1361
|
}).map((C) => ({
|
|
@@ -1397,7 +1394,7 @@ const Qe = /* @__PURE__ */ X(go, [["__scopeId", "data-v-fa7fea9f"]]), ko = { cla
|
|
|
1397
1394
|
return (C, L) => {
|
|
1398
1395
|
const A = N("clickable");
|
|
1399
1396
|
return n(), l("div", null, [
|
|
1400
|
-
t(s) ? (n(),
|
|
1397
|
+
t(s) ? (n(), $(We, {
|
|
1401
1398
|
key: 0,
|
|
1402
1399
|
to: "main"
|
|
1403
1400
|
}, [
|
|
@@ -1425,24 +1422,24 @@ const Qe = /* @__PURE__ */ X(go, [["__scopeId", "data-v-fa7fea9f"]]), ko = { cla
|
|
|
1425
1422
|
default: _(() => {
|
|
1426
1423
|
var T, ne;
|
|
1427
1424
|
return [
|
|
1428
|
-
g("div",
|
|
1429
|
-
g("div",
|
|
1430
|
-
t(
|
|
1425
|
+
g("div", Vo, [
|
|
1426
|
+
g("div", Co, [
|
|
1427
|
+
t(v).length > 1 ? (n(), $(He, {
|
|
1431
1428
|
key: 0,
|
|
1432
1429
|
modelValue: R.value,
|
|
1433
1430
|
"onUpdate:modelValue": L[0] || (L[0] = (w) => R.value = w),
|
|
1434
1431
|
onChange: L[1] || (L[1] = (w) => q.value = {})
|
|
1435
1432
|
}, {
|
|
1436
1433
|
default: _(() => [
|
|
1437
|
-
(n(!0), l(J, null, H(t(
|
|
1434
|
+
(n(!0), l(J, null, H(t(v), (w) => (n(), l("option", {
|
|
1438
1435
|
key: `searchfield-${w}`,
|
|
1439
1436
|
value: w
|
|
1440
|
-
}, B(t(E)(w)), 9,
|
|
1437
|
+
}, B(t(E)(w)), 9, Ao))), 128))
|
|
1441
1438
|
]),
|
|
1442
1439
|
_: 1
|
|
1443
|
-
}, 8, ["modelValue"])) :
|
|
1444
|
-
g("div",
|
|
1445
|
-
(n(),
|
|
1440
|
+
}, 8, ["modelValue"])) : f("", !0),
|
|
1441
|
+
g("div", Io, [
|
|
1442
|
+
(n(), $(Ae, {
|
|
1446
1443
|
key: `field-${R.value}`,
|
|
1447
1444
|
modelValue: q.value[R.value],
|
|
1448
1445
|
"onUpdate:modelValue": L[2] || (L[2] = (w) => q.value[R.value] = w),
|
|
@@ -1454,15 +1451,15 @@ const Qe = /* @__PURE__ */ X(go, [["__scopeId", "data-v-fa7fea9f"]]), ko = { cla
|
|
|
1454
1451
|
}, null, 8, ["modelValue", "property"]))
|
|
1455
1452
|
])
|
|
1456
1453
|
]),
|
|
1457
|
-
|
|
1454
|
+
h.value.length ? (n(), $(rt, {
|
|
1458
1455
|
key: 0,
|
|
1459
1456
|
"observe-scroll": "",
|
|
1460
1457
|
onEndReached: ae
|
|
1461
1458
|
}, {
|
|
1462
1459
|
default: _(() => [
|
|
1463
|
-
(n(!0), l(J, null, H(
|
|
1460
|
+
(n(!0), l(J, null, H(h.value, (w) => (n(), $(Qe, G({
|
|
1464
1461
|
item: w,
|
|
1465
|
-
indexes: t(
|
|
1462
|
+
indexes: t(v),
|
|
1466
1463
|
property: C.property
|
|
1467
1464
|
}, {
|
|
1468
1465
|
key: `matching-${w._id}`,
|
|
@@ -1471,20 +1468,20 @@ const Qe = /* @__PURE__ */ X(go, [["__scopeId", "data-v-fa7fea9f"]]), ko = { cla
|
|
|
1471
1468
|
}), null, 16, ["modelValue"]))), 128))
|
|
1472
1469
|
]),
|
|
1473
1470
|
_: 1
|
|
1474
|
-
})) : (n(), l("div",
|
|
1475
|
-
j.value ? (n(), l("div",
|
|
1471
|
+
})) : (n(), l("div", Oo, [
|
|
1472
|
+
j.value ? (n(), l("div", wo, " Pesquisando... ")) : !t(i).loading.getAll && Object.values(q.value).filter((w) => !!w).length > 0 && !("items" in C.property && ((T = C.modelValue) != null && T.length) || !Array.isArray(C.modelValue) && ((ne = C.modelValue) != null && ne._id)) ? (n(), l("div", Bo, " Não há resultados ")) : f("", !0)
|
|
1476
1473
|
]))
|
|
1477
1474
|
]),
|
|
1478
|
-
g("div",
|
|
1475
|
+
g("div", So, " Mostrando " + B(h.value.length) + " " + B(t(E)("of")) + " " + B(b.value.recordsTotal), 1)
|
|
1479
1476
|
];
|
|
1480
1477
|
}),
|
|
1481
1478
|
_: 1
|
|
1482
1479
|
}, 8, ["title", "model-value"])
|
|
1483
|
-
])) :
|
|
1484
|
-
C.selectOnly ?
|
|
1480
|
+
])) : f("", !0),
|
|
1481
|
+
C.selectOnly ? f("", !0) : (n(), l("div", jo, [
|
|
1485
1482
|
M(rt, null, {
|
|
1486
1483
|
footer: _(() => [
|
|
1487
|
-
Z((n(),
|
|
1484
|
+
Z((n(), $(K, {
|
|
1488
1485
|
icon: "plus",
|
|
1489
1486
|
onClick: F
|
|
1490
1487
|
}, {
|
|
@@ -1499,22 +1496,22 @@ const Qe = /* @__PURE__ */ X(go, [["__scopeId", "data-v-fa7fea9f"]]), ko = { cla
|
|
|
1499
1496
|
default: _(() => {
|
|
1500
1497
|
var T;
|
|
1501
1498
|
return [
|
|
1502
|
-
"items" in C.property ? (n(), l("div",
|
|
1503
|
-
(n(!0), l(J, null, H(C.modelValue, (ne) => (n(),
|
|
1499
|
+
"items" in C.property ? (n(), l("div", To, [
|
|
1500
|
+
(n(!0), l(J, null, H(C.modelValue, (ne) => (n(), $(Qe, G({
|
|
1504
1501
|
item: ne,
|
|
1505
|
-
indexes: t(
|
|
1502
|
+
indexes: t(v),
|
|
1506
1503
|
property: C.property,
|
|
1507
1504
|
modelValue: C.modelValue
|
|
1508
1505
|
}, {
|
|
1509
1506
|
key: `selected-${ne._id}`,
|
|
1510
1507
|
"onUpdate:modelValue": p
|
|
1511
1508
|
}), null, 16))), 128))
|
|
1512
|
-
])) : (T = C.modelValue) != null && T._id ? (n(),
|
|
1509
|
+
])) : (T = C.modelValue) != null && T._id ? (n(), $(Qe, G({ key: 1 }, {
|
|
1513
1510
|
item: C.modelValue,
|
|
1514
|
-
indexes: t(
|
|
1511
|
+
indexes: t(v),
|
|
1515
1512
|
property: t(a),
|
|
1516
1513
|
modelValue: C.modelValue
|
|
1517
|
-
}, { "onUpdate:modelValue": p }), null, 16)) :
|
|
1514
|
+
}, { "onUpdate:modelValue": p }), null, 16)) : f("", !0)
|
|
1518
1515
|
];
|
|
1519
1516
|
}),
|
|
1520
1517
|
_: 1
|
|
@@ -1524,13 +1521,13 @@ const Qe = /* @__PURE__ */ X(go, [["__scopeId", "data-v-fa7fea9f"]]), ko = { cla
|
|
|
1524
1521
|
};
|
|
1525
1522
|
}
|
|
1526
1523
|
});
|
|
1527
|
-
const
|
|
1524
|
+
const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u) => {
|
|
1528
1525
|
const e = "items" in c ? c.items : c, a = {
|
|
1529
|
-
options:
|
|
1526
|
+
options: Gn,
|
|
1530
1527
|
select: He,
|
|
1531
|
-
switch:
|
|
1532
|
-
file:
|
|
1533
|
-
search:
|
|
1528
|
+
switch: Pn,
|
|
1529
|
+
file: yo,
|
|
1530
|
+
search: Ro,
|
|
1534
1531
|
input: Ae,
|
|
1535
1532
|
form: De
|
|
1536
1533
|
}, s = (() => {
|
|
@@ -1550,7 +1547,7 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1550
1547
|
return r ? r.inline ? "form" : r.$ref === "file" ? "file" : "search" : "items" in c && c.uniqueItems ? "options" : "enum" in e ? "select" : "input";
|
|
1551
1548
|
})();
|
|
1552
1549
|
return u[s] ? u[s] : a[s];
|
|
1553
|
-
},
|
|
1550
|
+
}, Fo = (c, u) => {
|
|
1554
1551
|
c ?? (c = []);
|
|
1555
1552
|
const e = "items" in u ? u.items : u;
|
|
1556
1553
|
if ("$ref" in u) {
|
|
@@ -1558,24 +1555,24 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1558
1555
|
return c.unshift(s);
|
|
1559
1556
|
}
|
|
1560
1557
|
return "properties" in e ? c.unshift(Ut(e)) : "type" in e && e.type === "boolean" ? c.unshift({}) : c.unshift(null);
|
|
1561
|
-
},
|
|
1558
|
+
}, Mo = (c, u) => {
|
|
1562
1559
|
c.splice(u, 1);
|
|
1563
|
-
},
|
|
1560
|
+
}, qo = {
|
|
1564
1561
|
key: 0,
|
|
1565
1562
|
class: "form__header"
|
|
1566
|
-
},
|
|
1563
|
+
}, Uo = {
|
|
1567
1564
|
key: 1,
|
|
1568
1565
|
class: "form__fieldset"
|
|
1569
|
-
},
|
|
1566
|
+
}, Eo = { key: 0 }, zo = ["innerHTML"], Ho = ["onInput"], Do = { key: 4 }, Qo = { value: "true" }, Go = { value: "false" }, Wo = {
|
|
1570
1567
|
key: 5,
|
|
1571
1568
|
style: { display: "grid", "row-gap": ".4rem" }
|
|
1572
|
-
},
|
|
1569
|
+
}, Xo = { style: { "flex-grow": "1" } }, Yo = {
|
|
1573
1570
|
key: 7,
|
|
1574
1571
|
class: "form__validation-error"
|
|
1575
|
-
},
|
|
1572
|
+
}, Jo = { key: 0 }, Ko = { key: 1 }, Zo = {
|
|
1576
1573
|
key: 3,
|
|
1577
1574
|
class: "form__footer"
|
|
1578
|
-
},
|
|
1575
|
+
}, Po = /* @__PURE__ */ U({
|
|
1579
1576
|
__name: "aeria-form",
|
|
1580
1577
|
props: {
|
|
1581
1578
|
modelValue: {},
|
|
@@ -1601,17 +1598,17 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1601
1598
|
emits: ["update:modelValue", "input", "change"],
|
|
1602
1599
|
setup(c, { emit: u }) {
|
|
1603
1600
|
const e = c, a = u;
|
|
1604
|
-
|
|
1601
|
+
vt(() => {
|
|
1605
1602
|
e.modelValue || a("update:modelValue", e.property && "items" in e.property ? [] : {});
|
|
1606
1603
|
});
|
|
1607
1604
|
const s = e.property && pe(e.property), r = s ? s.$ref : e.collection || Le(), i = r ? ce(je(r) ? r.value : r) : null;
|
|
1608
1605
|
!r && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1609
1606
|
collection prop, some features may not work as intended`);
|
|
1610
|
-
const y = Y(!1), m = D(() => !e.form && e.property ? "properties" in e.property ? e.property.properties : i == null ? void 0 : i.properties : e.form),
|
|
1611
|
-
const z =
|
|
1612
|
-
return e[p] &&
|
|
1613
|
-
}, o = D(() => e.validationErrors !== null ? e.validationErrors : i == null ? void 0 : i.validationErrors),
|
|
1614
|
-
r &&
|
|
1607
|
+
const y = Y(!1), m = D(() => !e.form && e.property ? "properties" in e.property ? e.property.properties : i == null ? void 0 : i.properties : e.form), v = D(() => e.layout || (i == null ? void 0 : i.description.formLayout)), d = (p) => {
|
|
1608
|
+
const z = ve(p, e[p]);
|
|
1609
|
+
return e[p] && fe(p, e[p]), z;
|
|
1610
|
+
}, o = D(() => e.validationErrors !== null ? e.validationErrors : i == null ? void 0 : i.validationErrors), h = d("formComponents") || {}, b = d("propertyComponents") || {}, V = d("omitFormHeader"), R = d("omitInputLabels"), j = d("innerInputLabel");
|
|
1611
|
+
r && fe(ze, r), fe("searchOnly", e.searchOnly);
|
|
1615
1612
|
const q = (p) => m.value ? Object.entries(m.value).filter(([z, C]) => !C.noForm && p([
|
|
1616
1613
|
z,
|
|
1617
1614
|
C
|
|
@@ -1623,7 +1620,7 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1623
1620
|
return !z || z.includes(p);
|
|
1624
1621
|
}, ae = q(([p]) => O(p)), x = Te(), S = {}, ee = (p, z) => {
|
|
1625
1622
|
var T, ne, w, se;
|
|
1626
|
-
const C = [], L = ((ne = (T =
|
|
1623
|
+
const C = [], L = ((ne = (T = v.value) == null ? void 0 : T.fields) == null ? void 0 : ne[p]) || ((se = (w = v.value) == null ? void 0 : w.fields) == null ? void 0 : se.$default);
|
|
1627
1624
|
if (!z)
|
|
1628
1625
|
return;
|
|
1629
1626
|
if (L != null && L.if && !e.searchOnly) {
|
|
@@ -1662,21 +1659,21 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1662
1659
|
const C = N("clickable"), L = N("focus");
|
|
1663
1660
|
return n(), l("form", {
|
|
1664
1661
|
class: "form",
|
|
1665
|
-
style:
|
|
1662
|
+
style: he(`row-gap: ${t(V) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1666
1663
|
}, [
|
|
1667
|
-
p.$slots.header && !t(V) ? (n(), l("header",
|
|
1664
|
+
p.$slots.header && !t(V) ? (n(), l("header", qo, [
|
|
1668
1665
|
k(p.$slots, "header", {}, void 0, !0)
|
|
1669
|
-
])) :
|
|
1666
|
+
])) : f("", !0),
|
|
1670
1667
|
k(p.$slots, "default", {}, void 0, !0),
|
|
1671
|
-
p.isReadOnly ?
|
|
1668
|
+
p.isReadOnly ? f("", !0) : (n(), l("fieldset", Uo, [
|
|
1672
1669
|
(n(!0), l(J, null, H(t(ae), ([A, T]) => {
|
|
1673
1670
|
var ne, w, se, _e, ke, Ye, Je, Ke, Ze, Pe, Ne, xe, et;
|
|
1674
1671
|
return n(), l("div", {
|
|
1675
1672
|
key: `field-${A}`,
|
|
1676
|
-
style:
|
|
1673
|
+
style: he(ee(A, T)),
|
|
1677
1674
|
class: "form__field"
|
|
1678
1675
|
}, [
|
|
1679
|
-
(!("type" in T) || T.type !== "boolean" || p.searchOnly) && !T.noLabel && !t(R) && !t(j) ? (n(), l("label",
|
|
1676
|
+
(!("type" in T) || T.type !== "boolean" || p.searchOnly) && !T.noLabel && !t(R) && !t(j) ? (n(), l("label", Eo, [
|
|
1680
1677
|
g("div", {
|
|
1681
1678
|
class: W({
|
|
1682
1679
|
"form__field-label": !0,
|
|
@@ -1687,13 +1684,13 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1687
1684
|
T.hint ? (n(), l("div", {
|
|
1688
1685
|
key: 0,
|
|
1689
1686
|
innerHTML: T.hint
|
|
1690
|
-
}, null, 8,
|
|
1691
|
-
])) :
|
|
1687
|
+
}, null, 8, zo)) : f("", !0)
|
|
1688
|
+
])) : f("", !0),
|
|
1692
1689
|
p.$slots[`field-${A}`] ? k(p.$slots, `field-${A}`, le(G({ key: 1 }, {
|
|
1693
1690
|
propery: T,
|
|
1694
1691
|
properyName: A,
|
|
1695
1692
|
modelValue: p.modelValue
|
|
1696
|
-
})), void 0, !0) : (se = (w = (ne = p.layout) == null ? void 0 : ne.fields) == null ? void 0 : w[A]) != null && se.component && t(b)[p.layout.fields[A].component.name] ? (n(),
|
|
1693
|
+
})), void 0, !0) : (se = (w = (ne = p.layout) == null ? void 0 : ne.fields) == null ? void 0 : w[A]) != null && se.component && t(b)[p.layout.fields[A].component.name] ? (n(), $(ye(t(b)[p.layout.fields[A].component.name]), G({
|
|
1697
1694
|
key: 2,
|
|
1698
1695
|
modelValue: p.modelValue[A],
|
|
1699
1696
|
"onUpdate:modelValue": (P) => p.modelValue[A] = P
|
|
@@ -1724,7 +1721,7 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1724
1721
|
property: T,
|
|
1725
1722
|
propertyName: A
|
|
1726
1723
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1727
|
-
], 40,
|
|
1724
|
+
], 40, Ho)) : "type" in T && T.type === "boolean" && p.searchOnly ? (n(), l("div", Do, [
|
|
1728
1725
|
M(He, G({
|
|
1729
1726
|
property: T,
|
|
1730
1727
|
propertyName: A
|
|
@@ -1737,12 +1734,12 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1737
1734
|
}
|
|
1738
1735
|
}), {
|
|
1739
1736
|
default: _(() => [
|
|
1740
|
-
g("option",
|
|
1741
|
-
g("option",
|
|
1737
|
+
g("option", Qo, B(t(E)("yes")), 1),
|
|
1738
|
+
g("option", Go, B(t(E)("no")), 1)
|
|
1742
1739
|
]),
|
|
1743
1740
|
_: 2
|
|
1744
1741
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1745
|
-
])) : p.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (n(), l("div",
|
|
1742
|
+
])) : p.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (n(), l("div", Wo, [
|
|
1746
1743
|
g("div", null, [
|
|
1747
1744
|
M(re, {
|
|
1748
1745
|
small: "",
|
|
@@ -1750,7 +1747,7 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1750
1747
|
icon: "plus",
|
|
1751
1748
|
disabled: !("inline" in T.items && T.items.inline) && (((_e = p.modelValue[A]) == null ? void 0 : _e.length) >= T.maxItems || I((Ye = p.modelValue[A]) == null ? void 0 : Ye[((ke = p.modelValue[A]) == null ? void 0 : ke.length) - 1])),
|
|
1752
1749
|
onClick: Me((P) => {
|
|
1753
|
-
p.modelValue[A] || (p.modelValue[A] = []), t(
|
|
1750
|
+
p.modelValue[A] || (p.modelValue[A] = []), t(Fo)(p.modelValue[A], T);
|
|
1754
1751
|
}, ["prevent"])
|
|
1755
1752
|
}, {
|
|
1756
1753
|
default: _(() => [
|
|
@@ -1765,8 +1762,8 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1765
1762
|
key: `rep-${A}-${Oe}`,
|
|
1766
1763
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
1767
1764
|
}, [
|
|
1768
|
-
g("div",
|
|
1769
|
-
(n(),
|
|
1765
|
+
g("div", Xo, [
|
|
1766
|
+
(n(), $(ye(t(ut)(T, t(h))), G({
|
|
1770
1767
|
modelValue: p.modelValue[A][Oe],
|
|
1771
1768
|
"onUpdate:modelValue": (we) => p.modelValue[A][Oe] = we
|
|
1772
1769
|
}, {
|
|
@@ -1785,13 +1782,13 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1785
1782
|
Z(M(K, {
|
|
1786
1783
|
reactive: "",
|
|
1787
1784
|
icon: "trash",
|
|
1788
|
-
onClick: (we) => t(
|
|
1785
|
+
onClick: (we) => t(Mo)(p.modelValue[A], Oe)
|
|
1789
1786
|
}, null, 8, ["onClick"]), [
|
|
1790
1787
|
[C]
|
|
1791
1788
|
])
|
|
1792
1789
|
]);
|
|
1793
1790
|
}), 128))
|
|
1794
|
-
])) : p.modelValue ? Z((n(),
|
|
1791
|
+
])) : p.modelValue ? Z((n(), $(ye(t(ut)(T, t(h))), G({
|
|
1795
1792
|
key: 6,
|
|
1796
1793
|
modelValue: p.modelValue[A],
|
|
1797
1794
|
"onUpdate:modelValue": (P) => p.modelValue[A] = P
|
|
@@ -1808,25 +1805,25 @@ const Lo = /* @__PURE__ */ X(To, [["__scopeId", "data-v-26a9c85f"]]), ut = (c, u
|
|
|
1808
1805
|
onChange: z[4] || (z[4] = (P) => a("change", P))
|
|
1809
1806
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1810
1807
|
[L, !y.value && (y.value = !!p.focus)]
|
|
1811
|
-
]) :
|
|
1812
|
-
(et = o.value) != null && et[A] ? (n(), l("div",
|
|
1813
|
-
o.value[A].type ? (n(), l("span",
|
|
1814
|
-
o.value[A].detail ? (n(), l("span",
|
|
1815
|
-
])) :
|
|
1808
|
+
]) : f("", !0),
|
|
1809
|
+
(et = o.value) != null && et[A] ? (n(), l("div", Yo, [
|
|
1810
|
+
o.value[A].type ? (n(), l("span", Jo, B(t(E)(`validation_error.${o.value[A].type}`)), 1)) : f("", !0),
|
|
1811
|
+
o.value[A].detail ? (n(), l("span", Ko, B(t(E)(o.value[A].detail)), 1)) : f("", !0)
|
|
1812
|
+
])) : f("", !0)
|
|
1816
1813
|
], 4);
|
|
1817
1814
|
}), 128))
|
|
1818
1815
|
])),
|
|
1819
|
-
p.$slots.after ? k(p.$slots, "after", { key: 2 }, void 0, !0) :
|
|
1820
|
-
p.$slots.footer ? (n(), l("div",
|
|
1816
|
+
p.$slots.after ? k(p.$slots, "after", { key: 2 }, void 0, !0) : f("", !0),
|
|
1817
|
+
p.$slots.footer ? (n(), l("div", Zo, [
|
|
1821
1818
|
k(p.$slots, "footer", le(be({
|
|
1822
1819
|
isInsertReady: te.value
|
|
1823
1820
|
})), void 0, !0)
|
|
1824
|
-
])) :
|
|
1821
|
+
])) : f("", !0)
|
|
1825
1822
|
], 4);
|
|
1826
1823
|
};
|
|
1827
1824
|
}
|
|
1828
1825
|
});
|
|
1829
|
-
const De = /* @__PURE__ */ X(
|
|
1826
|
+
const De = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-d14d28ec"]]), No = /* @__PURE__ */ U({
|
|
1830
1827
|
__name: "aeria-filter-panel",
|
|
1831
1828
|
emits: ["update:modelValue"],
|
|
1832
1829
|
setup(c, { emit: u }) {
|
|
@@ -1835,7 +1832,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1835
1832
|
query: it(a)
|
|
1836
1833
|
}), console.log(it(a));
|
|
1837
1834
|
};
|
|
1838
|
-
return (i, y) => (n(),
|
|
1835
|
+
return (i, y) => (n(), $(Ie, {
|
|
1839
1836
|
"close-hint": "",
|
|
1840
1837
|
"fixed-right": "",
|
|
1841
1838
|
title: "Filtrar por",
|
|
@@ -1843,7 +1840,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1843
1840
|
onOverlayClick: y[3] || (y[3] = (m) => e("update:modelValue", !1))
|
|
1844
1841
|
}, {
|
|
1845
1842
|
footer: _(() => [
|
|
1846
|
-
t(a).filtersCount > 0 ? (n(),
|
|
1843
|
+
t(a).filtersCount > 0 ? (n(), $(re, {
|
|
1847
1844
|
key: 0,
|
|
1848
1845
|
variant: "transparent",
|
|
1849
1846
|
onClick: y[1] || (y[1] = (m) => {
|
|
@@ -1852,7 +1849,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1852
1849
|
}, {
|
|
1853
1850
|
default: _(() => [
|
|
1854
1851
|
Q(" Limpar "),
|
|
1855
|
-
M(
|
|
1852
|
+
M($e, null, {
|
|
1856
1853
|
default: _(() => [
|
|
1857
1854
|
Q(B(t(a).filtersCount), 1)
|
|
1858
1855
|
]),
|
|
@@ -1860,7 +1857,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1860
1857
|
})
|
|
1861
1858
|
]),
|
|
1862
1859
|
_: 1
|
|
1863
|
-
})) :
|
|
1860
|
+
})) : f("", !0),
|
|
1864
1861
|
M(re, {
|
|
1865
1862
|
large: "",
|
|
1866
1863
|
icon: "funnel",
|
|
@@ -1886,10 +1883,10 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1886
1883
|
_: 1
|
|
1887
1884
|
}));
|
|
1888
1885
|
}
|
|
1889
|
-
}), ie = Y(!1), ct = Y(!1), Ve = Y(!1), Be = Y((...c) => null), dt = Y(), pt = !1,
|
|
1886
|
+
}), ie = Y(!1), ct = Y(!1), Ve = Y(!1), Be = Y((...c) => null), dt = Y(), pt = !1, xo = /* @__PURE__ */ U({
|
|
1890
1887
|
__name: "aeria-insert-panel",
|
|
1891
1888
|
setup(c) {
|
|
1892
|
-
const u = ce("meta"), e = ce(u.view.collection), a =
|
|
1889
|
+
const u = ce("meta"), e = ce(u.view.collection), a = ve("individualActions", []), s = async () => {
|
|
1893
1890
|
const i = await e.$actions.deepInsert();
|
|
1894
1891
|
zt(i) || (ie.value = !1);
|
|
1895
1892
|
}, r = () => {
|
|
@@ -1904,9 +1901,9 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1904
1901
|
i === null && (ie.value = !1);
|
|
1905
1902
|
}), (i, y) => {
|
|
1906
1903
|
const m = N("clickable");
|
|
1907
|
-
return n(),
|
|
1904
|
+
return n(), $(Ie, {
|
|
1908
1905
|
modelValue: t(ie),
|
|
1909
|
-
"onUpdate:modelValue": y[3] || (y[3] = (
|
|
1906
|
+
"onUpdate:modelValue": y[3] || (y[3] = (v) => je(ie) ? ie.value = v : null),
|
|
1910
1907
|
"fixed-right": "",
|
|
1911
1908
|
loading: t(e).loading.get,
|
|
1912
1909
|
onOverlayClick: r
|
|
@@ -1928,18 +1925,18 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1928
1925
|
extra: _(() => [
|
|
1929
1926
|
M(Ce, G({
|
|
1930
1927
|
subject: t(e).item,
|
|
1931
|
-
actions: t(a).filter(({ action:
|
|
1928
|
+
actions: t(a).filter(({ action: v }) => v !== "ui/spawnEdit")
|
|
1932
1929
|
}, {
|
|
1933
|
-
onActionClick: y[2] || (y[2] = (
|
|
1930
|
+
onActionClick: y[2] || (y[2] = (v) => ie.value = !1)
|
|
1934
1931
|
}), {
|
|
1935
1932
|
default: _(() => [
|
|
1936
|
-
t(e).item._id ? Z((n(),
|
|
1933
|
+
t(e).item._id ? Z((n(), $(K, {
|
|
1937
1934
|
key: 0,
|
|
1938
1935
|
reactive: "",
|
|
1939
1936
|
icon: "dots-three"
|
|
1940
1937
|
}, null, 512)), [
|
|
1941
1938
|
[m]
|
|
1942
|
-
]) :
|
|
1939
|
+
]) : f("", !0)
|
|
1943
1940
|
]),
|
|
1944
1941
|
_: 1
|
|
1945
1942
|
}, 16)
|
|
@@ -1969,7 +1966,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1969
1966
|
default: _(() => [
|
|
1970
1967
|
M(De, G({
|
|
1971
1968
|
modelValue: t(e).item,
|
|
1972
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
1969
|
+
"onUpdate:modelValue": y[0] || (y[0] = (v) => t(e).item = v)
|
|
1973
1970
|
}, {
|
|
1974
1971
|
collection: t(u).view.collection,
|
|
1975
1972
|
form: t(e).properties,
|
|
@@ -1977,12 +1974,12 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1977
1974
|
layout: t(e).description.formLayout || {}
|
|
1978
1975
|
}, {
|
|
1979
1976
|
focus: "",
|
|
1980
|
-
onAdd: y[1] || (y[1] = (
|
|
1977
|
+
onAdd: y[1] || (y[1] = (v) => v.preventDefault())
|
|
1981
1978
|
}), de({ _: 2 }, [
|
|
1982
|
-
H(Object.keys(i.$slots).filter((
|
|
1983
|
-
name:
|
|
1979
|
+
H(Object.keys(i.$slots).filter((v) => v.startsWith("field-")), (v) => ({
|
|
1980
|
+
name: v,
|
|
1984
1981
|
fn: _((d) => [
|
|
1985
|
-
k(i.$slots,
|
|
1982
|
+
k(i.$slots, v, le(be(d)))
|
|
1986
1983
|
])
|
|
1987
1984
|
}))
|
|
1988
1985
|
]), 1040, ["modelValue"])
|
|
@@ -1991,7 +1988,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1991
1988
|
}, 8, ["modelValue", "loading"]);
|
|
1992
1989
|
};
|
|
1993
1990
|
}
|
|
1994
|
-
}),
|
|
1991
|
+
}), $t = (c, u) => {
|
|
1995
1992
|
if (u) {
|
|
1996
1993
|
if (!c) {
|
|
1997
1994
|
u.filtersPreset = {}, u.preferredTableProperties = [], u.pagination.offset = 0;
|
|
@@ -1999,7 +1996,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
1999
1996
|
}
|
|
2000
1997
|
u.filtersPreset = c.filters || {}, u.preferredTableProperties = c.table ? Array.from(c.table) : [], u.pagination.offset = 0;
|
|
2001
1998
|
}
|
|
2002
|
-
},
|
|
1999
|
+
}, ea = (c, u = {
|
|
2003
2000
|
persistInQuery: !0
|
|
2004
2001
|
}) => {
|
|
2005
2002
|
const a = Re().currentRoute;
|
|
@@ -2007,7 +2004,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2007
2004
|
if (c) {
|
|
2008
2005
|
if (c.description.filtersPresets) {
|
|
2009
2006
|
const r = s || Object.keys(c.description.filtersPresets)[0];
|
|
2010
|
-
|
|
2007
|
+
$t(c.description.filtersPresets[r], c);
|
|
2011
2008
|
}
|
|
2012
2009
|
if (u.persistInQuery) {
|
|
2013
2010
|
const r = a.value.query;
|
|
@@ -2020,29 +2017,29 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2020
2017
|
}, {
|
|
2021
2018
|
immediate: !0
|
|
2022
2019
|
});
|
|
2023
|
-
},
|
|
2020
|
+
}, ta = (c) => (Ue("data-v-d8e1b8cf"), c = c(), Ee(), c), na = {
|
|
2024
2021
|
key: 0,
|
|
2025
2022
|
class: "table aeria-surface"
|
|
2026
|
-
},
|
|
2023
|
+
}, oa = { key: 0 }, aa = { key: 1 }, sa = { key: 0 }, la = ["checked"], ia = {
|
|
2027
2024
|
key: 1,
|
|
2028
2025
|
style: { "text-align": "right" }
|
|
2029
|
-
},
|
|
2026
|
+
}, ra = { key: 2 }, ua = { key: 3 }, ca = ["onClick"], da = { key: 0 }, pa = ["value"], _a = { class: "table__cell-mobile-label" }, ma = {
|
|
2030
2027
|
key: 0,
|
|
2031
2028
|
class: "table__cell-container"
|
|
2032
|
-
},
|
|
2029
|
+
}, va = {
|
|
2033
2030
|
key: 1,
|
|
2034
2031
|
class: "table__cell-container"
|
|
2035
|
-
}, fa = { class: "table__cell-grid" },
|
|
2032
|
+
}, fa = { class: "table__cell-grid" }, ya = { key: 0 }, ha = { key: 1 }, $a = ["href"], ba = { key: 3 }, ga = { key: 2 }, ka = { key: 0 }, Va = { key: 1 }, Ca = { key: 2 }, Aa = {
|
|
2036
2033
|
key: 1,
|
|
2037
2034
|
class: "no-print"
|
|
2038
|
-
},
|
|
2035
|
+
}, Ia = { class: "table__cell-actions" }, Oa = {
|
|
2039
2036
|
key: 2,
|
|
2040
2037
|
class: "no-print table__mobile-actions"
|
|
2041
|
-
},
|
|
2038
|
+
}, wa = ["id"], Ba = { key: 1 }, Sa = /* @__PURE__ */ ta(() => /* @__PURE__ */ g("td", { colspan: 10 }, [
|
|
2042
2039
|
/* @__PURE__ */ g("div", { class: "table__empty" }, " Não foram encontrados resultados. ")
|
|
2043
|
-
], -1)),
|
|
2044
|
-
|
|
2045
|
-
],
|
|
2040
|
+
], -1)), ja = [
|
|
2041
|
+
Sa
|
|
2042
|
+
], Ta = /* @__PURE__ */ U({
|
|
2046
2043
|
__name: "aeria-table",
|
|
2047
2044
|
props: {
|
|
2048
2045
|
columns: {},
|
|
@@ -2056,84 +2053,84 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2056
2053
|
setup(c, { emit: u }) {
|
|
2057
2054
|
const e = c, a = u, s = Te(), r = e.collection || Le(), i = r ? ce(typeof r == "string" ? r : r.value) : null, y = D({
|
|
2058
2055
|
get: () => i == null ? void 0 : i.selected,
|
|
2059
|
-
set: (
|
|
2060
|
-
}), m = (
|
|
2056
|
+
set: (h) => i == null ? void 0 : i.$actions.selectManyItems(h, !0)
|
|
2057
|
+
}), m = (h, b) => h != null && h.button ? typeof h.button == "object" ? Ge(b, h.button).satisfied : h.button : !1, v = (h) => {
|
|
2061
2058
|
var b;
|
|
2062
2059
|
return !s.value.xl || !((b = e.layout) != null && b.actions) || !e.actions ? [] : e.actions.filter((V) => {
|
|
2063
2060
|
const R = e.layout.actions[V.action];
|
|
2064
|
-
return m(R,
|
|
2061
|
+
return m(R, h);
|
|
2065
2062
|
});
|
|
2066
|
-
}, d = (
|
|
2063
|
+
}, d = (h) => {
|
|
2067
2064
|
var b;
|
|
2068
2065
|
return e.actions ? !s.value.xl || !((b = e.layout) != null && b.actions) ? e.actions : e.actions.filter((V) => {
|
|
2069
2066
|
const R = e.layout.actions[V.action];
|
|
2070
|
-
return !m(R,
|
|
2067
|
+
return !m(R, h);
|
|
2071
2068
|
}) : [];
|
|
2072
|
-
}, o = (
|
|
2069
|
+
}, o = (h, b) => {
|
|
2073
2070
|
var j, q;
|
|
2074
2071
|
const V = [], R = (q = (j = e.layout) == null ? void 0 : j.actions) == null ? void 0 : q[b.action];
|
|
2075
2072
|
return R != null && R.if && (Ge(
|
|
2076
|
-
|
|
2073
|
+
h,
|
|
2077
2074
|
R.if
|
|
2078
2075
|
).satisfied || V.push("display: none;")), V.join("");
|
|
2079
2076
|
};
|
|
2080
|
-
return (
|
|
2077
|
+
return (h, b) => {
|
|
2081
2078
|
var R, j, q;
|
|
2082
2079
|
const V = N("clickable");
|
|
2083
|
-
return
|
|
2084
|
-
|
|
2085
|
-
k(
|
|
2086
|
-
])) : (n(), l("thead",
|
|
2080
|
+
return h.columns && Object.keys(h.columns).length > 0 || h.$slots.thead ? (n(), l("table", na, [
|
|
2081
|
+
h.$slots.thead ? (n(), l("thead", oa, [
|
|
2082
|
+
k(h.$slots, "thead", {}, void 0, !0)
|
|
2083
|
+
])) : (n(), l("thead", aa, [
|
|
2087
2084
|
g("tr", null, [
|
|
2088
|
-
|
|
2085
|
+
h.checkbox && t(i) && t(s).md ? (n(), l("th", sa, [
|
|
2089
2086
|
g("input", {
|
|
2090
2087
|
type: "checkbox",
|
|
2091
2088
|
checked: t(i).selected.length > 0 && t(i).selected.length === t(i).itemsCount,
|
|
2092
2089
|
onChange: b[0] || (b[0] = (O) => t(i).$actions.selectAllItems(O.target.checked))
|
|
2093
|
-
}, null, 40,
|
|
2094
|
-
])) :
|
|
2095
|
-
(n(!0), l(J, null, H(Object.entries(
|
|
2090
|
+
}, null, 40, la)
|
|
2091
|
+
])) : f("", !0),
|
|
2092
|
+
(n(!0), l(J, null, H(Object.entries(h.columns), ([O, ae], x) => (n(), l("th", {
|
|
2096
2093
|
key: `header-${x}`,
|
|
2097
2094
|
class: "table__header"
|
|
2098
2095
|
}, B(ae.description || t(E)(O)), 1))), 128)),
|
|
2099
|
-
(R =
|
|
2096
|
+
(R = h.actions) != null && R.length ? (n(), l("th", ia)) : f("", !0)
|
|
2100
2097
|
])
|
|
2101
2098
|
])),
|
|
2102
|
-
|
|
2103
|
-
k(
|
|
2104
|
-
])) : (n(), l("tbody",
|
|
2105
|
-
(n(!0), l(J, null, H(
|
|
2099
|
+
h.$slots.tbody ? (n(), l("tbody", ra, [
|
|
2100
|
+
k(h.$slots, "tbody", {}, void 0, !0)
|
|
2101
|
+
])) : (n(), l("tbody", ua, [
|
|
2102
|
+
(n(!0), l(J, null, H(h.rows, (O) => {
|
|
2106
2103
|
var ae, x;
|
|
2107
2104
|
return n(), l("tr", {
|
|
2108
2105
|
key: O._id,
|
|
2109
2106
|
onClick: (S) => a("itemClick", O)
|
|
2110
2107
|
}, [
|
|
2111
|
-
t(i) &&
|
|
2108
|
+
t(i) && h.checkbox && t(s).md ? (n(), l("td", da, [
|
|
2112
2109
|
Z(g("input", {
|
|
2113
2110
|
"onUpdate:modelValue": b[1] || (b[1] = (S) => y.value = S),
|
|
2114
2111
|
type: "checkbox",
|
|
2115
2112
|
value: O._id
|
|
2116
|
-
}, null, 8,
|
|
2113
|
+
}, null, 8, pa), [
|
|
2117
2114
|
[Vt, y.value]
|
|
2118
2115
|
])
|
|
2119
|
-
])) :
|
|
2120
|
-
(n(!0), l(J, null, H(Object.entries(
|
|
2116
|
+
])) : f("", !0),
|
|
2117
|
+
(n(!0), l(J, null, H(Object.entries(h.columns), ([S, ee], I) => {
|
|
2121
2118
|
var F, te, oe, p, z, C;
|
|
2122
2119
|
return n(), l("td", {
|
|
2123
2120
|
key: `column-${O._id}-${I}`
|
|
2124
2121
|
}, [
|
|
2125
|
-
g("div",
|
|
2126
|
-
`row-${S}` in
|
|
2127
|
-
k(
|
|
2122
|
+
g("div", _a, B(ee.description || t(E)(S)), 1),
|
|
2123
|
+
`row-${S}` in h.$slots ? (n(), l("div", ma, [
|
|
2124
|
+
k(h.$slots, `row-${S}`, le(be({
|
|
2128
2125
|
store: t(i),
|
|
2129
2126
|
column: S,
|
|
2130
2127
|
property: ee,
|
|
2131
2128
|
row: O
|
|
2132
2129
|
})), void 0, !0)
|
|
2133
|
-
])) : (n(), l("div",
|
|
2130
|
+
])) : (n(), l("div", va, [
|
|
2134
2131
|
g("div", fa, [
|
|
2135
|
-
"type" in ee && ee.type === "boolean" ? (n(), l("div",
|
|
2136
|
-
O[S] ? (n(),
|
|
2132
|
+
"type" in ee && ee.type === "boolean" ? (n(), l("div", ya, [
|
|
2133
|
+
O[S] ? (n(), $(K, {
|
|
2137
2134
|
key: 0,
|
|
2138
2135
|
icon: "check",
|
|
2139
2136
|
"icon-classes": "aeria-blueish"
|
|
@@ -2142,7 +2139,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2142
2139
|
Q(B(t(E)("yes")), 1)
|
|
2143
2140
|
]),
|
|
2144
2141
|
_: 1
|
|
2145
|
-
})) : (n(),
|
|
2142
|
+
})) : (n(), $(K, {
|
|
2146
2143
|
key: 1,
|
|
2147
2144
|
icon: "x",
|
|
2148
2145
|
"icon-classes": "aeria-redish"
|
|
@@ -2152,15 +2149,15 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2152
2149
|
]),
|
|
2153
2150
|
_: 1
|
|
2154
2151
|
}))
|
|
2155
|
-
])) : ((F = t(pe)(ee)) == null ? void 0 : F.$ref) === "file" ? (n(), l("div",
|
|
2156
|
-
/^image/.test((te = O[S][0]) == null ? void 0 : te.mime) && "items" in ee ? (n(),
|
|
2152
|
+
])) : ((F = t(pe)(ee)) == null ? void 0 : F.$ref) === "file" ? (n(), l("div", ha, [
|
|
2153
|
+
/^image/.test((te = O[S][0]) == null ? void 0 : te.mime) && "items" in ee ? (n(), $(qe, {
|
|
2157
2154
|
key: 0,
|
|
2158
2155
|
modelValue: O[S][0].link,
|
|
2159
2156
|
"onUpdate:modelValue": (L) => O[S][0].link = L,
|
|
2160
2157
|
expandable: "",
|
|
2161
2158
|
meta: O[S][0],
|
|
2162
2159
|
class: "table__picture"
|
|
2163
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[S]) == null ? void 0 : oe.mime) ? (n(),
|
|
2160
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((oe = O[S]) == null ? void 0 : oe.mime) ? (n(), $(qe, {
|
|
2164
2161
|
key: 1,
|
|
2165
2162
|
modelValue: O[S].link,
|
|
2166
2163
|
"onUpdate:modelValue": (L) => O[S].link = L,
|
|
@@ -2171,14 +2168,14 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2171
2168
|
key: 2,
|
|
2172
2169
|
href: O[S].link,
|
|
2173
2170
|
style: { "font-size": "10pt" }
|
|
2174
|
-
}, B(O[S].filename), 9, $a)) : (n(), l("div",
|
|
2175
|
-
])) : (n(), l("div",
|
|
2176
|
-
t(i) ? (n(), l("span",
|
|
2171
|
+
}, B(O[S].filename), 9, $a)) : (n(), l("div", ba, " - "))
|
|
2172
|
+
])) : (n(), l("div", ga, [
|
|
2173
|
+
t(i) ? (n(), l("span", ka, B(t(i).$actions.formatValue({
|
|
2177
2174
|
value: O[S],
|
|
2178
2175
|
key: S,
|
|
2179
2176
|
property: ee
|
|
2180
|
-
})), 1)) : (n(), l("span",
|
|
2181
|
-
((C = (z = t(pe)(ee)) == null ? void 0 : z.indexes) == null ? void 0 : C.length) > 1 ? (n(), l("div",
|
|
2177
|
+
})), 1)) : (n(), l("span", Va, B(Array.isArray(O[S]) ? O[S].filter((L) => !!L).join(", ") : [void 0, null].includes(O[S]) ? "-" : O[S]), 1)),
|
|
2178
|
+
((C = (z = t(pe)(ee)) == null ? void 0 : z.indexes) == null ? void 0 : C.length) > 1 ? (n(), l("div", Ca, [
|
|
2182
2179
|
(n(!0), l(J, null, H(t(pe)(ee).indexes.slice(1, 2), (L, A) => (n(), l("div", {
|
|
2183
2180
|
key: `subvalue-${A}`,
|
|
2184
2181
|
class: "table__cell-subvalue"
|
|
@@ -2188,20 +2185,20 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2188
2185
|
property: ee,
|
|
2189
2186
|
index: L
|
|
2190
2187
|
})), 1))), 128))
|
|
2191
|
-
])) :
|
|
2188
|
+
])) : f("", !0)
|
|
2192
2189
|
]))
|
|
2193
2190
|
])
|
|
2194
2191
|
]))
|
|
2195
2192
|
]);
|
|
2196
2193
|
}), 128)),
|
|
2197
|
-
(ae =
|
|
2198
|
-
g("div",
|
|
2199
|
-
(n(!0), l(J, null, H(
|
|
2194
|
+
(ae = h.actions) != null && ae.length && t(s).md ? (n(), l("td", Aa, [
|
|
2195
|
+
g("div", Ia, [
|
|
2196
|
+
(n(!0), l(J, null, H(v(O), (S) => (n(), $(re, {
|
|
2200
2197
|
key: `action-${S.action}`,
|
|
2201
2198
|
small: "",
|
|
2202
2199
|
variant: "transparent",
|
|
2203
2200
|
icon: S.icon,
|
|
2204
|
-
style:
|
|
2201
|
+
style: he(o(O, S)),
|
|
2205
2202
|
onClick: (ee) => S.click(O)
|
|
2206
2203
|
}, {
|
|
2207
2204
|
default: _(() => [
|
|
@@ -2209,7 +2206,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2209
2206
|
]),
|
|
2210
2207
|
_: 2
|
|
2211
2208
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2212
|
-
d(O).length > 0 ? (n(),
|
|
2209
|
+
d(O).length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
|
|
2213
2210
|
subject: O,
|
|
2214
2211
|
actions: d(O)
|
|
2215
2212
|
})), {
|
|
@@ -2222,14 +2219,14 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2222
2219
|
])
|
|
2223
2220
|
]),
|
|
2224
2221
|
_: 2
|
|
2225
|
-
}, 1040)) :
|
|
2222
|
+
}, 1040)) : f("", !0)
|
|
2226
2223
|
])
|
|
2227
|
-
])) : (x =
|
|
2224
|
+
])) : (x = h.actions) != null && x.length ? (n(), l("td", Oa, [
|
|
2228
2225
|
g("div", {
|
|
2229
2226
|
class: "table__mobile-actions-grid",
|
|
2230
|
-
style:
|
|
2227
|
+
style: he(`grid-template-columns: repeat(${v(O).length + (d(O).length ? 1 : 0)}, 1fr);`)
|
|
2231
2228
|
}, [
|
|
2232
|
-
(n(!0), l(J, null, H(
|
|
2229
|
+
(n(!0), l(J, null, H(v(O), (S) => (n(), $(me, {
|
|
2233
2230
|
key: `action-${S.action}`,
|
|
2234
2231
|
class: "table__mobile-actions-button",
|
|
2235
2232
|
onClick: (ee) => S.click(O)
|
|
@@ -2246,7 +2243,7 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2246
2243
|
]),
|
|
2247
2244
|
_: 2
|
|
2248
2245
|
}, 1032, ["onClick"]))), 128)),
|
|
2249
|
-
d(O).length > 0 ? (n(),
|
|
2246
|
+
d(O).length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
|
|
2250
2247
|
subject: O,
|
|
2251
2248
|
actions: d(O)
|
|
2252
2249
|
})), {
|
|
@@ -2257,23 +2254,23 @@ const De = /* @__PURE__ */ X(Zo, [["__scopeId", "data-v-d14d28ec"]]), Po = /* @_
|
|
|
2257
2254
|
})
|
|
2258
2255
|
]),
|
|
2259
2256
|
_: 2
|
|
2260
|
-
}, 1040)) :
|
|
2257
|
+
}, 1040)) : f("", !0)
|
|
2261
2258
|
], 4)
|
|
2262
|
-
])) :
|
|
2259
|
+
])) : f("", !0),
|
|
2263
2260
|
g("div", {
|
|
2264
2261
|
id: `dropdown-${O._id}`
|
|
2265
|
-
}, null, 8,
|
|
2266
|
-
], 8,
|
|
2262
|
+
}, null, 8, wa)
|
|
2263
|
+
], 8, ca);
|
|
2267
2264
|
}), 128))
|
|
2268
2265
|
])),
|
|
2269
2266
|
g("tfoot", null, [
|
|
2270
|
-
|
|
2267
|
+
h.$slots.tfoot ? k(h.$slots, "tfoot", { key: 0 }, void 0, !0) : h.columns && !((j = h.rows) != null && j.length) && !((q = t(i)) != null && q.loading.getAll) ? (n(), l("tr", Ba, ja)) : f("", !0)
|
|
2271
2268
|
])
|
|
2272
|
-
])) :
|
|
2269
|
+
])) : f("", !0);
|
|
2273
2270
|
};
|
|
2274
2271
|
}
|
|
2275
2272
|
});
|
|
2276
|
-
const
|
|
2273
|
+
const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-d8e1b8cf"]]), Ra = /* @__PURE__ */ U({
|
|
2277
2274
|
__name: "aeria-tabular",
|
|
2278
2275
|
props: {
|
|
2279
2276
|
individualActions: {},
|
|
@@ -2293,8 +2290,8 @@ const Ta = /* @__PURE__ */ X(ja, [["__scopeId", "data-v-d8e1b8cf"]]), La = /* @_
|
|
|
2293
2290
|
return Object.assign(r, u.componentProps);
|
|
2294
2291
|
});
|
|
2295
2292
|
return (r, i) => (n(), l("div", null, [
|
|
2296
|
-
r.$slots.inner ? k(r.$slots, "inner", { key: 0 }) :
|
|
2297
|
-
t(e).properties ? (n(),
|
|
2293
|
+
r.$slots.inner ? k(r.$slots, "inner", { key: 0 }) : f("", !0),
|
|
2294
|
+
t(e).properties ? (n(), $(La, G({ key: 1 }, s.value, {
|
|
2298
2295
|
key: t(e).$id
|
|
2299
2296
|
}), de({ _: 2 }, [
|
|
2300
2297
|
H(Object.keys(r.$slots).filter((y) => !["inner"].includes(y)), (y) => ({
|
|
@@ -2303,10 +2300,10 @@ const Ta = /* @__PURE__ */ X(ja, [["__scopeId", "data-v-d8e1b8cf"]]), La = /* @_
|
|
|
2303
2300
|
k(r.$slots, y, le(be(m)))
|
|
2304
2301
|
])
|
|
2305
2302
|
}))
|
|
2306
|
-
]), 1040)) :
|
|
2303
|
+
]), 1040)) : f("", !0)
|
|
2307
2304
|
]));
|
|
2308
2305
|
}
|
|
2309
|
-
}),
|
|
2306
|
+
}), Fa = /* @__PURE__ */ U({
|
|
2310
2307
|
__name: "aeria-grid",
|
|
2311
2308
|
props: {
|
|
2312
2309
|
list: { type: Boolean }
|
|
@@ -2322,10 +2319,10 @@ const Ta = /* @__PURE__ */ X(ja, [["__scopeId", "data-v-d8e1b8cf"]]), La = /* @_
|
|
|
2322
2319
|
], 2));
|
|
2323
2320
|
}
|
|
2324
2321
|
});
|
|
2325
|
-
const
|
|
2322
|
+
const Ma = /* @__PURE__ */ X(Fa, [["__scopeId", "data-v-438c4aed"]]), qa = { key: 0 }, Ua = {
|
|
2326
2323
|
key: 1,
|
|
2327
2324
|
class: "card__information"
|
|
2328
|
-
},
|
|
2325
|
+
}, Ea = /* @__PURE__ */ U({
|
|
2329
2326
|
__name: "aeria-grid",
|
|
2330
2327
|
props: {
|
|
2331
2328
|
individualActions: {},
|
|
@@ -2337,21 +2334,21 @@ const Fa = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2337
2334
|
const e = c.layoutOptions, a = ge(), s = (r) => Array.isArray(r) ? r[0] : r;
|
|
2338
2335
|
return (r, i) => {
|
|
2339
2336
|
const y = N("clickable");
|
|
2340
|
-
return n(),
|
|
2337
|
+
return n(), $(Ma, {
|
|
2341
2338
|
list: r.componentName === "list"
|
|
2342
2339
|
}, {
|
|
2343
2340
|
default: _(() => [
|
|
2344
|
-
(n(!0), l(J, null, H(t(a).items, (m) => (n(),
|
|
2341
|
+
(n(!0), l(J, null, H(t(a).items, (m) => (n(), $(cn, {
|
|
2345
2342
|
key: m,
|
|
2346
2343
|
inactive: !!(t(e).active && !m[t(e).active]),
|
|
2347
2344
|
horizontal: r.componentName === "list"
|
|
2348
2345
|
}, de({
|
|
2349
2346
|
footer: _(() => [
|
|
2350
|
-
t(e).title ? (n(), l("div",
|
|
2351
|
-
t(e).information ? (n(), l("div",
|
|
2347
|
+
t(e).title ? (n(), l("div", qa, B(m[t(e).title]), 1)) : f("", !0),
|
|
2348
|
+
t(e).information ? (n(), l("div", Ua, B(m[t(e).information]), 1)) : f("", !0)
|
|
2352
2349
|
]),
|
|
2353
2350
|
actions: _(() => [
|
|
2354
|
-
r.individualActions.length > 0 ? (n(),
|
|
2351
|
+
r.individualActions.length > 0 ? (n(), $(Ce, le(G({ key: 0 }, {
|
|
2355
2352
|
subject: m,
|
|
2356
2353
|
actions: r.individualActions
|
|
2357
2354
|
})), {
|
|
@@ -2364,14 +2361,14 @@ const Fa = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2364
2361
|
])
|
|
2365
2362
|
]),
|
|
2366
2363
|
_: 2
|
|
2367
|
-
}, 1040)) :
|
|
2364
|
+
}, 1040)) : f("", !0)
|
|
2368
2365
|
]),
|
|
2369
2366
|
default: _(() => {
|
|
2370
|
-
var
|
|
2367
|
+
var v;
|
|
2371
2368
|
return [
|
|
2372
2369
|
M(qe, {
|
|
2373
2370
|
expandable: "",
|
|
2374
|
-
url: (
|
|
2371
|
+
url: (v = s(m[t(e).picture])) == null ? void 0 : v.link,
|
|
2375
2372
|
meta: s(m[t(e).picture])
|
|
2376
2373
|
}, null, 8, ["url", "meta"])
|
|
2377
2374
|
];
|
|
@@ -2381,12 +2378,12 @@ const Fa = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2381
2378
|
t(e).badge && Array.isArray(m[t(e).badge]) ? {
|
|
2382
2379
|
name: "badge",
|
|
2383
2380
|
fn: _(() => [
|
|
2384
|
-
(n(!0), l(J, null, H(m[t(e).badge], (
|
|
2385
|
-
key: `${m._id}-${
|
|
2381
|
+
(n(!0), l(J, null, H(m[t(e).badge], (v) => (n(), $($e, {
|
|
2382
|
+
key: `${m._id}-${v}`,
|
|
2386
2383
|
large: ""
|
|
2387
2384
|
}, {
|
|
2388
2385
|
default: _(() => [
|
|
2389
|
-
Q(B(t(e).translateBadge ? t(E)(
|
|
2386
|
+
Q(B(t(e).translateBadge ? t(E)(v) : v), 1)
|
|
2390
2387
|
]),
|
|
2391
2388
|
_: 2
|
|
2392
2389
|
}, 1024))), 128))
|
|
@@ -2395,7 +2392,7 @@ const Fa = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2395
2392
|
} : t(e).badge ? {
|
|
2396
2393
|
name: "badge",
|
|
2397
2394
|
fn: _(() => [
|
|
2398
|
-
M(
|
|
2395
|
+
M($e, null, {
|
|
2399
2396
|
default: _(() => [
|
|
2400
2397
|
Q(B(t(e).translateBadge ? t(E)(m[t(e).badge]) : m[t(e)[r.badge]]), 1)
|
|
2401
2398
|
]),
|
|
@@ -2411,20 +2408,20 @@ const Fa = /* @__PURE__ */ X(Ra, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2411
2408
|
};
|
|
2412
2409
|
}
|
|
2413
2410
|
});
|
|
2414
|
-
const _t = /* @__PURE__ */ X(
|
|
2415
|
-
tabular:
|
|
2411
|
+
const _t = /* @__PURE__ */ X(Ea, [["__scopeId", "data-v-e4d693b3"]]), za = (c) => ({
|
|
2412
|
+
tabular: Ra,
|
|
2416
2413
|
grid: _t,
|
|
2417
2414
|
list: _t
|
|
2418
|
-
})[c],
|
|
2415
|
+
})[c], Ha = (c) => (Ue("data-v-4fb3e545"), c = c(), Ee(), c), Da = {
|
|
2419
2416
|
key: 2,
|
|
2420
2417
|
class: "crud__controls"
|
|
2421
|
-
},
|
|
2418
|
+
}, Qa = {
|
|
2422
2419
|
key: 0,
|
|
2423
2420
|
class: "crud__search"
|
|
2424
|
-
},
|
|
2421
|
+
}, Ga = { class: "crud__actions" }, Wa = { class: "crud__context-badge" }, Xa = /* @__PURE__ */ Ha(() => /* @__PURE__ */ g("div", null, "Filtros", -1)), Ya = { key: 0 }, Ja = {
|
|
2425
2422
|
key: 3,
|
|
2426
2423
|
class: "crud__pagination"
|
|
2427
|
-
}, mt = 30,
|
|
2424
|
+
}, mt = 30, Ka = /* @__PURE__ */ U({
|
|
2428
2425
|
__name: "aeria-crud",
|
|
2429
2426
|
props: {
|
|
2430
2427
|
collection: {},
|
|
@@ -2442,17 +2439,17 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2442
2439
|
setup(c, { emit: u }) {
|
|
2443
2440
|
const e = c, a = u, s = Re(), r = yt({
|
|
2444
2441
|
delay: 600
|
|
2445
|
-
}), i = ce("meta"), y = Te(), { reachedEnd: m, detach:
|
|
2442
|
+
}), i = ce("meta"), y = Te(), { reachedEnd: m, detach: v } = Xe(null, {
|
|
2446
2443
|
antecipate: 600
|
|
2447
2444
|
}), d = !y.value.md || e.scrollPagination;
|
|
2448
2445
|
d && ue(m, (I) => {
|
|
2449
2446
|
I && o.pagination.recordsTotal > o.items.length && V.value < mt && (V.value += 1, j());
|
|
2450
2447
|
});
|
|
2451
2448
|
const o = ce(e.collection);
|
|
2452
|
-
|
|
2449
|
+
ea(o, {
|
|
2453
2450
|
persistInQuery: !e.noQueryPersistence
|
|
2454
2451
|
});
|
|
2455
|
-
const
|
|
2452
|
+
const h = Mt(), b = e.action ? je(e.action) ? e.action.value : e.action : Lt(o, s, h);
|
|
2456
2453
|
Be.value = b[0], dt.value = b[1];
|
|
2457
2454
|
const V = Y(0), R = Y(!1), j = async (I) => {
|
|
2458
2455
|
o.activeFilters = Object.assign({}, (I == null ? void 0 : I.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
|
|
@@ -2473,7 +2470,7 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2473
2470
|
limit: I.limit
|
|
2474
2471
|
}
|
|
2475
2472
|
}), o.pagination.offset = I.offset, o.pagination.limit = I.limit, j();
|
|
2476
|
-
}, O =
|
|
2473
|
+
}, O = ve("emptyComponent", null);
|
|
2477
2474
|
ue(() => [
|
|
2478
2475
|
s.currentRoute.value.path,
|
|
2479
2476
|
s.currentRoute.value.query.section
|
|
@@ -2508,7 +2505,7 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2508
2505
|
I.currentLayout = I.currentLayout === "tabular" ? I.description.layout.name : "tabular";
|
|
2509
2506
|
};
|
|
2510
2507
|
Ct(() => {
|
|
2511
|
-
o.$actions.clearFilters(), o.textQuery = "",
|
|
2508
|
+
o.$actions.clearFilters(), o.textQuery = "", v();
|
|
2512
2509
|
}), ue(() => dt.value, async (I) => {
|
|
2513
2510
|
var oe;
|
|
2514
2511
|
const F = Se(I);
|
|
@@ -2570,25 +2567,25 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2570
2567
|
click: Be.value(I),
|
|
2571
2568
|
...I
|
|
2572
2569
|
}))), ee = D(() => o.actions.filter((I) => !I.button));
|
|
2573
|
-
return
|
|
2570
|
+
return fe(ze, D(() => e.collection)), fe("individualActions", S), (I, F) => {
|
|
2574
2571
|
var p, z, C, L, A, T, ne;
|
|
2575
2572
|
const te = N("clickable"), oe = N("loading");
|
|
2576
2573
|
return n(), l(J, null, [
|
|
2577
|
-
t(Ve) ? (n(),
|
|
2574
|
+
t(Ve) ? (n(), $(No, {
|
|
2578
2575
|
key: t(o).$id,
|
|
2579
2576
|
modelValue: t(Ve),
|
|
2580
2577
|
"onUpdate:modelValue": F[0] || (F[0] = (w) => je(Ve) ? Ve.value = w : null)
|
|
2581
|
-
}, null, 8, ["modelValue"])) :
|
|
2582
|
-
t(ie) ? (n(),
|
|
2578
|
+
}, null, 8, ["modelValue"])) : f("", !0),
|
|
2579
|
+
t(ie) ? (n(), $(xo, { key: 1 }, de({ _: 2 }, [
|
|
2583
2580
|
H(Object.keys(I.$slots).filter((w) => w.startsWith("field-")), (w) => ({
|
|
2584
2581
|
name: w,
|
|
2585
2582
|
fn: _((se) => [
|
|
2586
2583
|
k(I.$slots, w, le(be(se)), void 0, !0)
|
|
2587
2584
|
])
|
|
2588
2585
|
}))
|
|
2589
|
-
]), 1024)) :
|
|
2590
|
-
!I.noActions && (t(o).description.search || Object.keys(t(o).availableFilters).length > 0 || ((p = t(o)) == null ? void 0 : p.actions.length) > 0 || I.$slots.actions || !I.noLayoutToggle && t(o).description.layout && ((z = t(o).description.layout) == null ? void 0 : z.name) !== "tabular") ? (n(), l("div",
|
|
2591
|
-
t(o).description.search ? (n(), l("div",
|
|
2586
|
+
]), 1024)) : f("", !0),
|
|
2587
|
+
!I.noActions && (t(o).description.search || Object.keys(t(o).availableFilters).length > 0 || ((p = t(o)) == null ? void 0 : p.actions.length) > 0 || I.$slots.actions || !I.noLayoutToggle && t(o).description.layout && ((z = t(o).description.layout) == null ? void 0 : z.name) !== "tabular") ? (n(), l("div", Da, [
|
|
2588
|
+
t(o).description.search ? (n(), l("div", Qa, [
|
|
2592
2589
|
M(Ae, G({
|
|
2593
2590
|
modelValue: t(o).textQuery,
|
|
2594
2591
|
"onUpdate:modelValue": F[1] || (F[1] = (w) => t(o).textQuery = w)
|
|
@@ -2599,21 +2596,21 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2599
2596
|
inputType: "search"
|
|
2600
2597
|
}
|
|
2601
2598
|
}), null, 16, ["modelValue"])
|
|
2602
|
-
])) :
|
|
2603
|
-
g("div",
|
|
2604
|
-
ee.value.length > 0 || !I.noLayoutToggle && t(o).description.layout && ((C = t(o).description.layout) == null ? void 0 : C.name) !== "tabular" ? (n(),
|
|
2599
|
+
])) : f("", !0),
|
|
2600
|
+
g("div", Ga, [
|
|
2601
|
+
ee.value.length > 0 || !I.noLayoutToggle && t(o).description.layout && ((C = t(o).description.layout) == null ? void 0 : C.name) !== "tabular" ? (n(), $(Ce, { key: 0 }, de({
|
|
2605
2602
|
default: _(() => [
|
|
2606
2603
|
M(re, {
|
|
2607
2604
|
variant: "alt",
|
|
2608
2605
|
icon: "sliders"
|
|
2609
2606
|
}, {
|
|
2610
2607
|
default: _(() => [
|
|
2611
|
-
t(o).filtersCount ? (n(),
|
|
2608
|
+
t(o).filtersCount ? (n(), $($e, { key: 0 }, {
|
|
2612
2609
|
default: _(() => [
|
|
2613
2610
|
Q(B(t(o).filtersCount), 1)
|
|
2614
2611
|
]),
|
|
2615
2612
|
_: 1
|
|
2616
|
-
})) :
|
|
2613
|
+
})) : f("", !0)
|
|
2617
2614
|
]),
|
|
2618
2615
|
_: 1
|
|
2619
2616
|
})
|
|
@@ -2623,7 +2620,7 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2623
2620
|
Object.keys(t(o).availableFilters).length > 0 ? {
|
|
2624
2621
|
name: "filter",
|
|
2625
2622
|
fn: _(() => [
|
|
2626
|
-
Z((n(),
|
|
2623
|
+
Z((n(), $(K, {
|
|
2627
2624
|
icon: "funnel",
|
|
2628
2625
|
onClick: F[2] || (F[2] = (w) => Ve.value = !0)
|
|
2629
2626
|
}, {
|
|
@@ -2634,13 +2631,13 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2634
2631
|
})), [
|
|
2635
2632
|
[te]
|
|
2636
2633
|
]),
|
|
2637
|
-
g("div",
|
|
2638
|
-
t(o).filtersCount ? (n(),
|
|
2634
|
+
g("div", Wa, [
|
|
2635
|
+
t(o).filtersCount ? (n(), $($e, { key: 0 }, {
|
|
2639
2636
|
default: _(() => [
|
|
2640
2637
|
Q(B(t(o).filtersCount), 1)
|
|
2641
2638
|
]),
|
|
2642
2639
|
_: 1
|
|
2643
|
-
})) :
|
|
2640
|
+
})) : f("", !0)
|
|
2644
2641
|
])
|
|
2645
2642
|
]),
|
|
2646
2643
|
key: "0"
|
|
@@ -2648,7 +2645,7 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2648
2645
|
!I.noLayoutToggle && t(o).description.layout && ((L = t(o).description.layout) == null ? void 0 : L.name) !== "tabular" ? {
|
|
2649
2646
|
name: "layout-toggle",
|
|
2650
2647
|
fn: _(() => [
|
|
2651
|
-
Z((n(),
|
|
2648
|
+
Z((n(), $(K, {
|
|
2652
2649
|
icon: "table",
|
|
2653
2650
|
onClick: F[3] || (F[3] = (w) => x(t(o)))
|
|
2654
2651
|
}, {
|
|
@@ -2665,7 +2662,7 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2665
2662
|
H(ee.value, (w, se) => ({
|
|
2666
2663
|
name: `action-${se}`,
|
|
2667
2664
|
fn: _(() => [
|
|
2668
|
-
w ? (n(),
|
|
2665
|
+
w ? (n(), $(K, {
|
|
2669
2666
|
key: 0,
|
|
2670
2667
|
icon: w.icon || "gear",
|
|
2671
2668
|
disabled: t(o).selected.length === 0 && w.selection,
|
|
@@ -2675,27 +2672,27 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2675
2672
|
Q(B(t(E)(w.name)), 1)
|
|
2676
2673
|
]),
|
|
2677
2674
|
_: 2
|
|
2678
|
-
}, 1032, ["icon", "disabled", "onClick"])) :
|
|
2675
|
+
}, 1032, ["icon", "disabled", "onClick"])) : f("", !0)
|
|
2679
2676
|
])
|
|
2680
2677
|
}))
|
|
2681
|
-
]), 1024)) : Object.keys(t(o).availableFilters).length > 0 ? (n(),
|
|
2678
|
+
]), 1024)) : Object.keys(t(o).availableFilters).length > 0 ? (n(), $(re, {
|
|
2682
2679
|
key: 1,
|
|
2683
2680
|
variant: "alt",
|
|
2684
2681
|
icon: "funnel",
|
|
2685
2682
|
onClick: F[4] || (F[4] = (w) => Ve.value = !0)
|
|
2686
2683
|
}, {
|
|
2687
2684
|
default: _(() => [
|
|
2688
|
-
|
|
2689
|
-
t(o).filtersCount ? (n(),
|
|
2685
|
+
Xa,
|
|
2686
|
+
t(o).filtersCount ? (n(), $($e, { key: 0 }, {
|
|
2690
2687
|
default: _(() => [
|
|
2691
2688
|
Q(B(t(o).filtersCount), 1)
|
|
2692
2689
|
]),
|
|
2693
2690
|
_: 1
|
|
2694
|
-
})) :
|
|
2691
|
+
})) : f("", !0)
|
|
2695
2692
|
]),
|
|
2696
2693
|
_: 1
|
|
2697
|
-
})) :
|
|
2698
|
-
(n(!0), l(J, null, H(t(o).actions.filter((w) => w.button), (w, se) => (n(),
|
|
2694
|
+
})) : f("", !0),
|
|
2695
|
+
(n(!0), l(J, null, H(t(o).actions.filter((w) => w.button), (w, se) => (n(), $(re, {
|
|
2699
2696
|
key: `action-${se}`,
|
|
2700
2697
|
icon: w.icon,
|
|
2701
2698
|
disabled: t(o).selected.length === 0 && w.selection,
|
|
@@ -2706,16 +2703,16 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2706
2703
|
]),
|
|
2707
2704
|
_: 2
|
|
2708
2705
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2709
|
-
I.$slots.actions ? k(I.$slots, "actions", { key: 2 }, void 0, !0) :
|
|
2706
|
+
I.$slots.actions ? k(I.$slots, "actions", { key: 2 }, void 0, !0) : f("", !0)
|
|
2710
2707
|
])
|
|
2711
|
-
])) :
|
|
2708
|
+
])) : f("", !0),
|
|
2712
2709
|
Z((n(), l("div", null, [
|
|
2713
|
-
t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(O) || I.$slots.empty) ? (n(), l("div",
|
|
2714
|
-
t(O) ? (n(),
|
|
2710
|
+
t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(O) || I.$slots.empty) ? (n(), l("div", Ya, [
|
|
2711
|
+
t(O) ? (n(), $(ye(t(O)), le(G({ key: 0 }, {
|
|
2715
2712
|
collection: t(o).$id
|
|
2716
2713
|
})), {
|
|
2717
2714
|
default: _(() => [
|
|
2718
|
-
t(o).filtersCount === 0 && t(o).description.actions && "ui:spawnAdd" in t(o).description.actions ? (n(),
|
|
2715
|
+
t(o).filtersCount === 0 && t(o).description.actions && "ui:spawnAdd" in t(o).description.actions ? (n(), $(re, {
|
|
2719
2716
|
key: 0,
|
|
2720
2717
|
icon: "plus",
|
|
2721
2718
|
onClick: F[5] || (F[5] = (w) => t(Be)({
|
|
@@ -2726,7 +2723,7 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2726
2723
|
Q(" Adicionar primeiro item ")
|
|
2727
2724
|
]),
|
|
2728
2725
|
_: 1
|
|
2729
|
-
})) :
|
|
2726
|
+
})) : f("", !0)
|
|
2730
2727
|
]),
|
|
2731
2728
|
_: 1
|
|
2732
2729
|
}, 16)) : k(I.$slots, "empty", le(G({ key: 1 }, {
|
|
@@ -2734,7 +2731,7 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2734
2731
|
})), void 0, !0)
|
|
2735
2732
|
])) : I.$slots.component ? k(I.$slots, "component", le(G({ key: 1 }, {
|
|
2736
2733
|
store: t(o)
|
|
2737
|
-
})), void 0, !0) : (n(),
|
|
2734
|
+
})), void 0, !0) : (n(), $(ye(t(za)(((A = I.layout) == null ? void 0 : A.name) || t(o).$currentLayout)), G({ key: 2 }, {
|
|
2738
2735
|
individualActions: S.value,
|
|
2739
2736
|
layoutOptions: ((T = I.layout) == null ? void 0 : T.options) || t(o).layout.options,
|
|
2740
2737
|
componentProps: I.componentProps
|
|
@@ -2758,17 +2755,17 @@ const _t = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-e4d693b3"]]), Ea = (c) =
|
|
|
2758
2755
|
])), [
|
|
2759
2756
|
[oe, (!t(d) || V.value === mt) && t(o).loading.getAll]
|
|
2760
2757
|
]),
|
|
2761
|
-
!t(o).loading.getAll && t(o).itemsCount > 0 ? (n(), l("div",
|
|
2762
|
-
M(
|
|
2758
|
+
!t(o).loading.getAll && t(o).itemsCount > 0 ? (n(), l("div", Ja, [
|
|
2759
|
+
M(Rn, {
|
|
2763
2760
|
pagination: t(o).pagination,
|
|
2764
2761
|
onPaginate: q
|
|
2765
2762
|
}, null, 8, ["pagination"])
|
|
2766
|
-
])) :
|
|
2763
|
+
])) : f("", !0)
|
|
2767
2764
|
], 64);
|
|
2768
2765
|
};
|
|
2769
2766
|
}
|
|
2770
2767
|
});
|
|
2771
|
-
const
|
|
2768
|
+
const Ts = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-4fb3e545"]]), Za = { class: "prompt" }, Pa = /* @__PURE__ */ U({
|
|
2772
2769
|
__name: "aeria-prompt",
|
|
2773
2770
|
props: {
|
|
2774
2771
|
title: {},
|
|
@@ -2778,7 +2775,7 @@ const js = /* @__PURE__ */ X(Ja, [["__scopeId", "data-v-4fb3e545"]]), Ka = { cla
|
|
|
2778
2775
|
const u = ce("meta"), e = (a) => {
|
|
2779
2776
|
u.$actions.fulfillPrompt(a);
|
|
2780
2777
|
};
|
|
2781
|
-
return (a, s) => (n(),
|
|
2778
|
+
return (a, s) => (n(), $(Ie, {
|
|
2782
2779
|
float: "",
|
|
2783
2780
|
"fill-footer": "",
|
|
2784
2781
|
"close-hint": !1,
|
|
@@ -2787,9 +2784,9 @@ const js = /* @__PURE__ */ X(Ja, [["__scopeId", "data-v-4fb3e545"]]), Ka = { cla
|
|
|
2787
2784
|
footer: _(() => [
|
|
2788
2785
|
g("div", {
|
|
2789
2786
|
class: "prompt__actions",
|
|
2790
|
-
style:
|
|
2787
|
+
style: he(`grid-template-columns: repeat(${a.actions.length}, 1fr)`)
|
|
2791
2788
|
}, [
|
|
2792
|
-
(n(!0), l(J, null, H(a.actions, (r, i) => (n(),
|
|
2789
|
+
(n(!0), l(J, null, H(a.actions, (r, i) => (n(), $(me, {
|
|
2793
2790
|
key: `action-${i}`,
|
|
2794
2791
|
class: W(`
|
|
2795
2792
|
prompt__action
|
|
@@ -2805,7 +2802,7 @@ const js = /* @__PURE__ */ X(Ja, [["__scopeId", "data-v-4fb3e545"]]), Ka = { cla
|
|
|
2805
2802
|
], 4)
|
|
2806
2803
|
]),
|
|
2807
2804
|
default: _(() => [
|
|
2808
|
-
g("div",
|
|
2805
|
+
g("div", Za, [
|
|
2809
2806
|
k(a.$slots, "default", {}, void 0, !0)
|
|
2810
2807
|
])
|
|
2811
2808
|
]),
|
|
@@ -2821,7 +2818,7 @@ const js = /* @__PURE__ */ X(Ja, [["__scopeId", "data-v-4fb3e545"]]), Ka = { cla
|
|
|
2821
2818
|
]), 1024));
|
|
2822
2819
|
}
|
|
2823
2820
|
});
|
|
2824
|
-
const
|
|
2821
|
+
const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-73673b07"]]), xa = { class: "toast__content" }, es = { class: "toast__time" }, ts = /* @__PURE__ */ U({
|
|
2825
2822
|
__name: "aeria-toast",
|
|
2826
2823
|
props: {
|
|
2827
2824
|
idx: {},
|
|
@@ -2845,9 +2842,9 @@ const Pa = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-73673b07"]]), Na = { cla
|
|
|
2845
2842
|
e.icon ? { icon: e.icon } : { icon: "warning-circle" },
|
|
2846
2843
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
2847
2844
|
), null, 16),
|
|
2848
|
-
g("div",
|
|
2845
|
+
g("div", xa, [
|
|
2849
2846
|
k(e.$slots, "default", {}, void 0, !0),
|
|
2850
|
-
g("div",
|
|
2847
|
+
g("div", es, B(e.formatDateTime(e.date, { hoursOnly: !0 })), 1)
|
|
2851
2848
|
])
|
|
2852
2849
|
], 34)), [
|
|
2853
2850
|
[s]
|
|
@@ -2855,7 +2852,7 @@ const Pa = /* @__PURE__ */ X(Za, [["__scopeId", "data-v-73673b07"]]), Na = { cla
|
|
|
2855
2852
|
};
|
|
2856
2853
|
}
|
|
2857
2854
|
});
|
|
2858
|
-
const
|
|
2855
|
+
const ns = /* @__PURE__ */ X(ts, [["__scopeId", "data-v-54736bc3"]]), os = ["innerHTML"], as = { class: "main__toasts" }, ss = ["innerHTML"], ls = /* @__PURE__ */ U({
|
|
2859
2856
|
__name: "aeria-main",
|
|
2860
2857
|
setup(c) {
|
|
2861
2858
|
const u = ce("meta"), e = D(() => u.themeOverride || u.theme);
|
|
@@ -2869,11 +2866,11 @@ const ts = /* @__PURE__ */ X(es, [["__scopeId", "data-v-54736bc3"]]), ns = ["inn
|
|
|
2869
2866
|
${e.value === "dark" && "tw-dark"}
|
|
2870
2867
|
`)
|
|
2871
2868
|
}, [
|
|
2872
|
-
(n(),
|
|
2869
|
+
(n(), $(It, null, {
|
|
2873
2870
|
default: _(() => [
|
|
2874
2871
|
M(r, null, {
|
|
2875
2872
|
default: _(({ Component: i }) => [
|
|
2876
|
-
(n(),
|
|
2873
|
+
(n(), $(ye(i), null, de({ _: 2 }, [
|
|
2877
2874
|
H(Object.keys(a.$slots), (y) => ({
|
|
2878
2875
|
name: y,
|
|
2879
2876
|
fn: _(() => [
|
|
@@ -2902,25 +2899,25 @@ const ts = /* @__PURE__ */ X(es, [["__scopeId", "data-v-54736bc3"]]), ns = ["inn
|
|
|
2902
2899
|
key: 0,
|
|
2903
2900
|
style: { "white-space": "pre-wrap" },
|
|
2904
2901
|
innerHTML: t(u).modal.body
|
|
2905
|
-
}, null, 8,
|
|
2906
|
-
t(u).modal.component ? (n(),
|
|
2902
|
+
}, null, 8, os)) : f("", !0),
|
|
2903
|
+
t(u).modal.component ? (n(), $(ye(t(u).modal.component), { key: 1 })) : f("", !0)
|
|
2907
2904
|
]),
|
|
2908
2905
|
_: 1
|
|
2909
2906
|
}, 16, ["modelValue"]),
|
|
2910
|
-
t(u).prompt.visible ? (n(),
|
|
2907
|
+
t(u).prompt.visible ? (n(), $(Na, le(G({ key: 0 }, t(u).prompt)), {
|
|
2911
2908
|
default: _(() => [
|
|
2912
2909
|
Q(B(t(u).prompt.body), 1)
|
|
2913
2910
|
]),
|
|
2914
2911
|
_: 1
|
|
2915
|
-
}, 16)) :
|
|
2916
|
-
g("div",
|
|
2917
|
-
(n(!0), l(J, null, H(t(u).toasts, (i) => (n(),
|
|
2912
|
+
}, 16)) : f("", !0),
|
|
2913
|
+
g("div", as, [
|
|
2914
|
+
(n(!0), l(J, null, H(t(u).toasts, (i) => (n(), $(ns, G(i, {
|
|
2918
2915
|
key: `toast-${i.itr}`
|
|
2919
2916
|
}), {
|
|
2920
2917
|
default: _(() => [
|
|
2921
2918
|
g("div", {
|
|
2922
2919
|
innerHTML: t(E)(i.text)
|
|
2923
|
-
}, null, 8,
|
|
2920
|
+
}, null, 8, ss)
|
|
2924
2921
|
]),
|
|
2925
2922
|
_: 2
|
|
2926
2923
|
}, 1040))), 128))
|
|
@@ -2929,10 +2926,10 @@ const ts = /* @__PURE__ */ X(es, [["__scopeId", "data-v-54736bc3"]]), ns = ["inn
|
|
|
2929
2926
|
};
|
|
2930
2927
|
}
|
|
2931
2928
|
});
|
|
2932
|
-
const
|
|
2933
|
-
const
|
|
2934
|
-
function
|
|
2935
|
-
return n(), l("menu",
|
|
2929
|
+
const Ls = /* @__PURE__ */ X(ls, [["__scopeId", "data-v-1166be3d"]]);
|
|
2930
|
+
const is = {}, rs = { class: "menu" };
|
|
2931
|
+
function us(c, u) {
|
|
2932
|
+
return n(), l("menu", rs, [
|
|
2936
2933
|
(n(!0), l(J, null, H(Object.keys(c.$slots), (e) => (n(), l("div", {
|
|
2937
2934
|
key: e,
|
|
2938
2935
|
class: "menu__entry"
|
|
@@ -2941,16 +2938,16 @@ function rs(c, u) {
|
|
|
2941
2938
|
]))), 128))
|
|
2942
2939
|
]);
|
|
2943
2940
|
}
|
|
2944
|
-
const
|
|
2941
|
+
const Rs = /* @__PURE__ */ X(is, [["render", us], ["__scopeId", "data-v-3cfef7fb"]]), cs = { class: "tabs" }, ds = {
|
|
2945
2942
|
key: 0,
|
|
2946
2943
|
class: "tabs__horizontal"
|
|
2947
|
-
},
|
|
2944
|
+
}, ps = {
|
|
2948
2945
|
key: 0,
|
|
2949
2946
|
class: "tabs__tab tabs__tab--info"
|
|
2950
|
-
},
|
|
2947
|
+
}, _s = ["onClick"], ms = {
|
|
2951
2948
|
key: 1,
|
|
2952
2949
|
class: "tabs__context-menu"
|
|
2953
|
-
},
|
|
2950
|
+
}, vs = ["onClick"], fs = /* @__PURE__ */ U({
|
|
2954
2951
|
__name: "aeria-tabs",
|
|
2955
2952
|
props: {
|
|
2956
2953
|
query: {},
|
|
@@ -2977,27 +2974,27 @@ const Ls = /* @__PURE__ */ X(ls, [["render", rs], ["__scopeId", "data-v-3cfef7fb
|
|
|
2977
2974
|
}
|
|
2978
2975
|
});
|
|
2979
2976
|
};
|
|
2980
|
-
return (m,
|
|
2977
|
+
return (m, v) => {
|
|
2981
2978
|
const d = N("clickable");
|
|
2982
|
-
return n(), l("div",
|
|
2983
|
-
t(s).md && !m.dropdown ? (n(), l("div",
|
|
2984
|
-
m.$slots.default ? (n(), l("div",
|
|
2979
|
+
return n(), l("div", cs, [
|
|
2980
|
+
t(s).md && !m.dropdown ? (n(), l("div", ds, [
|
|
2981
|
+
m.$slots.default ? (n(), l("div", ps, [
|
|
2985
2982
|
k(m.$slots, "default", {}, void 0, !0)
|
|
2986
|
-
])) :
|
|
2987
|
-
(n(!0), l(J, null, H(Object.keys(m.$slots).filter((o) => o !== "default"), (o,
|
|
2983
|
+
])) : f("", !0),
|
|
2984
|
+
(n(!0), l(J, null, H(Object.keys(m.$slots).filter((o) => o !== "default"), (o, h) => (n(), l("div", {
|
|
2988
2985
|
key: o,
|
|
2989
2986
|
class: W({
|
|
2990
2987
|
tabs__tab: !0,
|
|
2991
|
-
"tabs__tab--current": o === i.value || !i.value &&
|
|
2988
|
+
"tabs__tab--current": o === i.value || !i.value && h === 0
|
|
2992
2989
|
}),
|
|
2993
2990
|
onClick: (b) => y(o)
|
|
2994
2991
|
}, [
|
|
2995
2992
|
k(m.$slots, o, {}, void 0, !0)
|
|
2996
|
-
], 10,
|
|
2997
|
-
])) : (n(), l("div",
|
|
2993
|
+
], 10, _s))), 128))
|
|
2994
|
+
])) : (n(), l("div", ms, [
|
|
2998
2995
|
M(Ce, null, de({
|
|
2999
2996
|
default: _(() => [
|
|
3000
|
-
Z((n(),
|
|
2997
|
+
Z((n(), $(K, {
|
|
3001
2998
|
"icon-right": "",
|
|
3002
2999
|
icon: "caret-down",
|
|
3003
3000
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
@@ -3017,10 +3014,10 @@ const Ls = /* @__PURE__ */ X(ls, [["render", rs], ["__scopeId", "data-v-3cfef7fb
|
|
|
3017
3014
|
name: o,
|
|
3018
3015
|
fn: _(() => [
|
|
3019
3016
|
g("div", {
|
|
3020
|
-
onClick: (
|
|
3017
|
+
onClick: (h) => y(o)
|
|
3021
3018
|
}, [
|
|
3022
3019
|
k(m.$slots, o, {}, void 0, !0)
|
|
3023
|
-
], 8,
|
|
3020
|
+
], 8, vs)
|
|
3024
3021
|
])
|
|
3025
3022
|
}))
|
|
3026
3023
|
]), 1024)
|
|
@@ -3029,7 +3026,7 @@ const Ls = /* @__PURE__ */ X(ls, [["render", rs], ["__scopeId", "data-v-3cfef7fb
|
|
|
3029
3026
|
};
|
|
3030
3027
|
}
|
|
3031
3028
|
});
|
|
3032
|
-
const
|
|
3029
|
+
const ys = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), hs = U({
|
|
3033
3030
|
props: {
|
|
3034
3031
|
initialValue: String,
|
|
3035
3032
|
promise: Promise
|
|
@@ -3040,7 +3037,7 @@ const vs = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), ys = U({
|
|
|
3040
3037
|
u.value = e;
|
|
3041
3038
|
}), () => wt("div", u.value);
|
|
3042
3039
|
}
|
|
3043
|
-
}), $s = ["onClick"],
|
|
3040
|
+
}), $s = ["onClick"], bs = { key: 1 }, gs = /* @__PURE__ */ U({
|
|
3044
3041
|
__name: "aeria-crud-topbar",
|
|
3045
3042
|
props: {
|
|
3046
3043
|
collection: {}
|
|
@@ -3054,7 +3051,7 @@ const vs = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), ys = U({
|
|
|
3054
3051
|
return null;
|
|
3055
3052
|
}
|
|
3056
3053
|
});
|
|
3057
|
-
return (r, i) => s.value && s.value.description.filtersPresets ? (n(),
|
|
3054
|
+
return (r, i) => s.value && s.value.description.filtersPresets ? (n(), $(ys, {
|
|
3058
3055
|
key: 0,
|
|
3059
3056
|
dropdown: "",
|
|
3060
3057
|
query: "section"
|
|
@@ -3064,9 +3061,9 @@ const vs = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), ys = U({
|
|
|
3064
3061
|
fn: _(() => [
|
|
3065
3062
|
g("div", {
|
|
3066
3063
|
class: "topbar__preset",
|
|
3067
|
-
onClick: (
|
|
3064
|
+
onClick: (v) => t($t)(m, s.value)
|
|
3068
3065
|
}, [
|
|
3069
|
-
m.icon ? (n(),
|
|
3066
|
+
m.icon ? (n(), $(K, {
|
|
3070
3067
|
key: 0,
|
|
3071
3068
|
icon: m.icon
|
|
3072
3069
|
}, {
|
|
@@ -3074,26 +3071,26 @@ const vs = /* @__PURE__ */ X(fs, [["__scopeId", "data-v-d12cddeb"]]), ys = U({
|
|
|
3074
3071
|
Q(B(m.name || t(E)(y, { plural: !0 })), 1)
|
|
3075
3072
|
]),
|
|
3076
3073
|
_: 2
|
|
3077
|
-
}, 1032, ["icon"])) : (n(), l("div",
|
|
3078
|
-
m.badgeFunction ? (n(),
|
|
3074
|
+
}, 1032, ["icon"])) : (n(), l("div", bs, B(m.name || t(E)(y, { plural: !0 })), 1)),
|
|
3075
|
+
m.badgeFunction ? (n(), $($e, { key: 2 }, {
|
|
3079
3076
|
default: _(() => [
|
|
3080
|
-
M(t(
|
|
3077
|
+
M(t(hs), {
|
|
3081
3078
|
"initial-value": "0",
|
|
3082
3079
|
promise: s.value.$functions[m.badgeFunction]({ filters: m.filters })
|
|
3083
3080
|
}, null, 8, ["promise"])
|
|
3084
3081
|
]),
|
|
3085
3082
|
_: 2
|
|
3086
|
-
}, 1024)) :
|
|
3083
|
+
}, 1024)) : f("", !0)
|
|
3087
3084
|
], 8, $s)
|
|
3088
3085
|
])
|
|
3089
3086
|
}))
|
|
3090
|
-
]), 1024)) :
|
|
3087
|
+
]), 1024)) : f("", !0);
|
|
3091
3088
|
}
|
|
3092
3089
|
});
|
|
3093
|
-
const
|
|
3090
|
+
const ks = /* @__PURE__ */ X(gs, [["__scopeId", "data-v-d0b47fbb"]]), Vs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3094
3091
|
__proto__: null,
|
|
3095
|
-
default:
|
|
3096
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3092
|
+
default: ks
|
|
3093
|
+
}, Symbol.toStringTag, { value: "Module" })), Fs = /* @__PURE__ */ U({
|
|
3097
3094
|
__name: "aeria-password-form",
|
|
3098
3095
|
props: {
|
|
3099
3096
|
modelValue: {}
|
|
@@ -3101,12 +3098,12 @@ const gs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-d0b47fbb"]]), ks = /* @_
|
|
|
3101
3098
|
emits: ["update:modelValue"],
|
|
3102
3099
|
setup(c) {
|
|
3103
3100
|
const u = c;
|
|
3104
|
-
|
|
3101
|
+
fe(ze, null);
|
|
3105
3102
|
const e = Ft(), a = D(() => e(
|
|
3106
3103
|
u.modelValue.password,
|
|
3107
3104
|
u.modelValue.confirmation
|
|
3108
3105
|
));
|
|
3109
|
-
return (s, r) => (n(),
|
|
3106
|
+
return (s, r) => (n(), $(De, {
|
|
3110
3107
|
form: {
|
|
3111
3108
|
password: {
|
|
3112
3109
|
type: "string",
|
|
@@ -3129,7 +3126,7 @@ const gs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-d0b47fbb"]]), ks = /* @_
|
|
|
3129
3126
|
_: 3
|
|
3130
3127
|
}, 8, ["model-value"]));
|
|
3131
3128
|
}
|
|
3132
|
-
}),
|
|
3129
|
+
}), Ms = (c, u = []) => ({
|
|
3133
3130
|
path: "/user",
|
|
3134
3131
|
name: "/builtin:user",
|
|
3135
3132
|
component: c,
|
|
@@ -3147,7 +3144,7 @@ const gs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-d0b47fbb"]]), ks = /* @_
|
|
|
3147
3144
|
{
|
|
3148
3145
|
path: "signin",
|
|
3149
3146
|
name: "/user/signin",
|
|
3150
|
-
component: () => import("./signin-
|
|
3147
|
+
component: () => import("./signin-ae2965d5.js"),
|
|
3151
3148
|
meta: {
|
|
3152
3149
|
title: "Autenticação"
|
|
3153
3150
|
}
|
|
@@ -3155,7 +3152,7 @@ const gs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-d0b47fbb"]]), ks = /* @_
|
|
|
3155
3152
|
{
|
|
3156
3153
|
path: "signup",
|
|
3157
3154
|
name: "/user/signup",
|
|
3158
|
-
component: () => import("./signup-
|
|
3155
|
+
component: () => import("./signup-0828ed0e.js"),
|
|
3159
3156
|
meta: {
|
|
3160
3157
|
title: "Registro"
|
|
3161
3158
|
}
|
|
@@ -3163,13 +3160,13 @@ const gs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-d0b47fbb"]]), ks = /* @_
|
|
|
3163
3160
|
{
|
|
3164
3161
|
path: "activation",
|
|
3165
3162
|
name: "/user/activation",
|
|
3166
|
-
component: () => import("./activation-
|
|
3163
|
+
component: () => import("./activation-0f4f6ccc.js"),
|
|
3167
3164
|
meta: {
|
|
3168
3165
|
title: "Ativação"
|
|
3169
3166
|
}
|
|
3170
3167
|
}
|
|
3171
3168
|
])
|
|
3172
|
-
}),
|
|
3169
|
+
}), qs = (c, u = []) => ({
|
|
3173
3170
|
path: "/dashboard",
|
|
3174
3171
|
name: "/builtin:dashboard",
|
|
3175
3172
|
component: c,
|
|
@@ -3185,8 +3182,8 @@ const gs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-d0b47fbb"]]), ks = /* @_
|
|
|
3185
3182
|
name: "/dashboard/crud",
|
|
3186
3183
|
props: !0,
|
|
3187
3184
|
components: {
|
|
3188
|
-
default: () => import("./crud-view-
|
|
3189
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3185
|
+
default: () => import("./crud-view-e1856c90.js"),
|
|
3186
|
+
topbar: () => Promise.resolve().then(() => Vs)
|
|
3190
3187
|
},
|
|
3191
3188
|
meta: {
|
|
3192
3189
|
title: "%viewTitle%"
|
|
@@ -3203,7 +3200,7 @@ const gs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-d0b47fbb"]]), ks = /* @_
|
|
|
3203
3200
|
children: [
|
|
3204
3201
|
{
|
|
3205
3202
|
path: "profile",
|
|
3206
|
-
component: () => import("./profile-
|
|
3203
|
+
component: () => import("./profile-0b0e4747.js"),
|
|
3207
3204
|
meta: {
|
|
3208
3205
|
title: "Meu perfil",
|
|
3209
3206
|
icon: "user-square"
|
|
@@ -3212,7 +3209,7 @@ const gs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-d0b47fbb"]]), ks = /* @_
|
|
|
3212
3209
|
{
|
|
3213
3210
|
path: "changepass",
|
|
3214
3211
|
name: "/dashboard/user/changepass",
|
|
3215
|
-
component: () => import("./password-change-
|
|
3212
|
+
component: () => import("./password-change-88b45c35.js"),
|
|
3216
3213
|
meta: {
|
|
3217
3214
|
title: "Mudar senha",
|
|
3218
3215
|
icon: "lock"
|
|
@@ -3224,36 +3221,36 @@ const gs = /* @__PURE__ */ X(bs, [["__scopeId", "data-v-d0b47fbb"]]), ks = /* @_
|
|
|
3224
3221
|
});
|
|
3225
3222
|
export {
|
|
3226
3223
|
De as A,
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3224
|
+
Na as B,
|
|
3225
|
+
ns as C,
|
|
3226
|
+
ks as D,
|
|
3227
|
+
Ms as E,
|
|
3228
|
+
qs as F,
|
|
3229
|
+
Fs as _,
|
|
3233
3230
|
re as a,
|
|
3234
3231
|
K as b,
|
|
3235
|
-
|
|
3236
|
-
|
|
3232
|
+
Hn as c,
|
|
3233
|
+
Ts as d,
|
|
3237
3234
|
qe as e,
|
|
3238
|
-
|
|
3235
|
+
Rs as f,
|
|
3239
3236
|
Ie as g,
|
|
3240
3237
|
X as h,
|
|
3241
|
-
|
|
3242
|
-
|
|
3238
|
+
js as i,
|
|
3239
|
+
$e as j,
|
|
3243
3240
|
me as k,
|
|
3244
3241
|
cn as l,
|
|
3245
3242
|
Ce as m,
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3243
|
+
Ma as n,
|
|
3244
|
+
yn as o,
|
|
3245
|
+
Ls as p,
|
|
3246
|
+
Rn as q,
|
|
3247
|
+
La as r,
|
|
3248
|
+
ys as s,
|
|
3249
|
+
yo as t,
|
|
3253
3250
|
Ae as u,
|
|
3254
|
-
|
|
3255
|
-
|
|
3251
|
+
Gn as v,
|
|
3252
|
+
Ro as w,
|
|
3256
3253
|
He as x,
|
|
3257
|
-
|
|
3258
|
-
|
|
3254
|
+
Pn as y,
|
|
3255
|
+
hs as z
|
|
3259
3256
|
};
|