@aeria-ui/ui 0.0.206 → 0.0.208
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_id_-CdyV7SwZ.js → _id_-BO-vt1sw.js} +1 -1
- package/dist/{activation-BwiurFnV.js → activation-srNROdzY.js} +1 -1
- package/dist/components/aeria-tabs/aeria-tabs.vue.d.ts +1 -0
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +2 -1
- package/dist/{index-CtPGU2HF.js → index-3edyOiId.js} +422 -418
- package/dist/{index-DpzEHDq1.js → index-Btoxwrn1.js} +1 -1
- package/dist/{index-DXOUVfPi.js → index-DMX5v03Z.js} +1 -1
- package/dist/{index-BhJJC_vd.js → index-Dzbg_524.js} +1 -1
- package/dist/{redefine-password-c-yGEBQh.js → redefine-password-D56RgpPt.js} +1 -1
- package/dist/{signin-kU-jRbwv.js → signin-DH9qCDxu.js} +1 -1
- package/dist/{signup-DPf3f8kO.js → signup-nPGf9ydg.js} +1 -1
- package/dist/ui.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as M, ref as
|
|
1
|
+
import { defineComponent as M, ref as K, resolveDirective as ee, createElementBlock as s, openBlock as n, normalizeClass as U, Fragment as W, renderList as z, withDirectives as Y, createCommentVNode as h, createTextVNode as D, toDisplayString as V, unref as t, renderSlot as C, withModifiers as Ie, inject as re, computed as G, createElementVNode as O, mergeProps as x, createBlock as $, withCtx as y, resolveDynamicComponent as pe, useCssVars as Ne, normalizeProps as oe, guardReactiveProps as be, Teleport as Fe, createVNode as L, onMounted as Ue, watch as ae, vModelDynamic as et, onBeforeMount as Xe, normalizeStyle as ve, provide as fe, createSlots as ie, vModelCheckbox as tt, onUnmounted as nt, resolveComponent as at, Suspense as ot, useSlots as lt, h as it } from "vue";
|
|
2
2
|
import { t as R, useI18n as st } from "@aeria-ui/i18n";
|
|
3
3
|
import { INSTANCE_VARS_SYMBOL as rt, useScrollObserver as He, useBreakpoints as Se, useMask as ut, PAGINATION_PER_PAGE_DEFAULTS as ct, API_URL as Je, request as dt, useDebounce as Ze, convertToSearchQuery as mt, useParentCollectionStore as Ae, useCollectionStore as pt, useAction as ft, convertFromSearchQuery as vt, usePasswordPolicy as yt } from "@aeria-ui/core";
|
|
4
4
|
import { arraysIntersect as Ee, deepClone as ke, getReferenceProperty as se, convertConditionToQuery as ht, freshItem as bt, isRequired as je, evaluateCondition as qe, deepMerge as Be } from "@aeriajs/common";
|
|
@@ -17,7 +17,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
17
17
|
headers: {}
|
|
18
18
|
},
|
|
19
19
|
setup(e) {
|
|
20
|
-
const
|
|
20
|
+
const r = K(null), o = (a) => typeof a == "string" ? a : a.title;
|
|
21
21
|
return (a, l) => {
|
|
22
22
|
const c = ee("clickable");
|
|
23
23
|
return n(), s("div", {
|
|
@@ -26,29 +26,29 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
26
26
|
"accordion--padded": !e.noPadding
|
|
27
27
|
})
|
|
28
28
|
}, [
|
|
29
|
-
(n(!0), s(
|
|
30
|
-
key:
|
|
29
|
+
(n(!0), s(W, null, z(Object.keys(a.$slots).filter((u) => u !== "default"), (u, p) => (n(), s("div", {
|
|
30
|
+
key: u,
|
|
31
31
|
class: "accordion__slot"
|
|
32
32
|
}, [
|
|
33
|
-
|
|
33
|
+
Y((n(), s("div", {
|
|
34
34
|
class: "accordion__header",
|
|
35
|
-
onClick: (d) =>
|
|
35
|
+
onClick: (d) => r.value === u ? r.value = null : r.value = u
|
|
36
36
|
}, [
|
|
37
37
|
e.enumerate ? (n(), s("span", kt, V(p + 1) + ". ", 1)) : h("", !0),
|
|
38
|
-
D(" " + V(e.headers[
|
|
38
|
+
D(" " + V(e.headers[u] ? o(e.headers[u]) : t(R)(u)), 1)
|
|
39
39
|
], 8, gt)), [
|
|
40
40
|
[c]
|
|
41
41
|
]),
|
|
42
|
-
|
|
43
|
-
C(a.$slots,
|
|
42
|
+
r.value === u ? (n(), s("div", Vt, [
|
|
43
|
+
C(a.$slots, u, {}, void 0, !0)
|
|
44
44
|
])) : h("", !0)
|
|
45
45
|
]))), 128))
|
|
46
46
|
], 2);
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
}), E = (e,
|
|
49
|
+
}), E = (e, r) => {
|
|
50
50
|
const o = e.__vccOpts || e;
|
|
51
|
-
for (const [a, l] of
|
|
51
|
+
for (const [a, l] of r)
|
|
52
52
|
o[a] = l;
|
|
53
53
|
return o;
|
|
54
54
|
}, sl = /* @__PURE__ */ E(Ct, [["__scopeId", "data-v-3ea933d4"]]), Ot = /* @__PURE__ */ M({
|
|
@@ -58,14 +58,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
58
58
|
alt: { type: Boolean }
|
|
59
59
|
},
|
|
60
60
|
setup(e) {
|
|
61
|
-
return (
|
|
61
|
+
return (r, o) => (n(), s("div", {
|
|
62
62
|
class: U([
|
|
63
63
|
"badge",
|
|
64
64
|
{ "badge--large": e.large },
|
|
65
65
|
{ "badge--alt": e.alt }
|
|
66
66
|
])
|
|
67
67
|
}, [
|
|
68
|
-
C(
|
|
68
|
+
C(r.$slots, "default", {}, void 0, !0)
|
|
69
69
|
], 2));
|
|
70
70
|
}
|
|
71
71
|
}), he = /* @__PURE__ */ E(Ot, [["__scopeId", "data-v-4cbce7ef"]]), At = /* @__PURE__ */ M({
|
|
@@ -75,11 +75,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
75
75
|
disabled: { type: Boolean }
|
|
76
76
|
},
|
|
77
77
|
emits: ["click"],
|
|
78
|
-
setup(e, { emit:
|
|
79
|
-
const o = e, a =
|
|
78
|
+
setup(e, { emit: r }) {
|
|
79
|
+
const o = e, a = r, l = (c) => {
|
|
80
80
|
o.disabled || a("click", c);
|
|
81
81
|
};
|
|
82
|
-
return (c,
|
|
82
|
+
return (c, u) => e.dummy ? (n(), s("button", {
|
|
83
83
|
key: 0,
|
|
84
84
|
class: U([
|
|
85
85
|
"barebutton",
|
|
@@ -112,8 +112,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
112
112
|
active: { type: Boolean }
|
|
113
113
|
},
|
|
114
114
|
setup(e) {
|
|
115
|
-
const
|
|
116
|
-
return (c,
|
|
115
|
+
const r = e, o = re(rt, {}), a = typeof r.reactive == "boolean" ? r.reactive : re("iconReactive", !1), l = G(() => r.icon?.includes(":") ? r.icon : `regular:${r.icon}`);
|
|
116
|
+
return (c, u) => (n(), s("a", {
|
|
117
117
|
class: U([
|
|
118
118
|
"icon",
|
|
119
119
|
{ "icon--reactive": t(a) },
|
|
@@ -161,14 +161,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
161
161
|
loading: { type: Boolean }
|
|
162
162
|
},
|
|
163
163
|
setup(e) {
|
|
164
|
-
const
|
|
164
|
+
const r = e, o = re("buttonVariant", r.variant) || "primary", a = (() => {
|
|
165
165
|
switch (!0) {
|
|
166
|
-
case
|
|
166
|
+
case r.small:
|
|
167
167
|
return "small";
|
|
168
|
-
case
|
|
168
|
+
case r.large:
|
|
169
169
|
return "large";
|
|
170
170
|
}
|
|
171
|
-
return re("buttonSize",
|
|
171
|
+
return re("buttonSize", r.size) || "medium";
|
|
172
172
|
})();
|
|
173
173
|
return (l, c) => (n(), $(de, {
|
|
174
174
|
class: U([
|
|
@@ -204,7 +204,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
204
204
|
horizontal: { type: Boolean }
|
|
205
205
|
},
|
|
206
206
|
setup(e) {
|
|
207
|
-
return (
|
|
207
|
+
return (r, o) => (n(), s("div", {
|
|
208
208
|
class: U([
|
|
209
209
|
"card",
|
|
210
210
|
{ "card--inactive": e.inactive },
|
|
@@ -212,19 +212,19 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
212
212
|
])
|
|
213
213
|
}, [
|
|
214
214
|
O("div", jt, [
|
|
215
|
-
C(
|
|
215
|
+
C(r.$slots, "default", {}, void 0, !0)
|
|
216
216
|
]),
|
|
217
217
|
O("div", Rt, [
|
|
218
218
|
O("div", qt, [
|
|
219
219
|
O("div", null, [
|
|
220
|
-
C(
|
|
220
|
+
C(r.$slots, "footer", {}, void 0, !0)
|
|
221
221
|
]),
|
|
222
222
|
O("div", Lt, [
|
|
223
|
-
|
|
223
|
+
r.$slots.actions ? C(r.$slots, "actions", { key: 0 }, void 0, !0) : h("", !0)
|
|
224
224
|
])
|
|
225
225
|
]),
|
|
226
226
|
O("div", xt, [
|
|
227
|
-
C(
|
|
227
|
+
C(r.$slots, "badge", {}, void 0, !0)
|
|
228
228
|
])
|
|
229
229
|
])
|
|
230
230
|
], 2));
|
|
@@ -257,17 +257,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
257
257
|
overlayLayer: {}
|
|
258
258
|
},
|
|
259
259
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
260
|
-
setup(e, { emit:
|
|
261
|
-
const o = e, a =
|
|
260
|
+
setup(e, { emit: r }) {
|
|
261
|
+
const o = e, a = r, l = K(o.collapsed), c = K(null), { reachedEnd: u } = He(c), p = () => {
|
|
262
262
|
a("update:modelValue", !1), a("close");
|
|
263
263
|
}, d = () => {
|
|
264
264
|
a("overlayClick");
|
|
265
|
-
},
|
|
265
|
+
}, f = (m) => {
|
|
266
266
|
a("update:collapsed", m), l.value = m;
|
|
267
267
|
};
|
|
268
268
|
return (m, b) => {
|
|
269
269
|
const _ = ee("clickable"), g = ee("loading"), i = ee("overlay");
|
|
270
|
-
return e.modelValue ?
|
|
270
|
+
return e.modelValue ? Y((n(), s("div", {
|
|
271
271
|
key: 0,
|
|
272
272
|
class: U([
|
|
273
273
|
"panel",
|
|
@@ -305,21 +305,21 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
305
305
|
C(m.$slots, "extra", {}, void 0, !0)
|
|
306
306
|
])) : h("", !0)
|
|
307
307
|
]),
|
|
308
|
-
e.collapsible && l.value ?
|
|
308
|
+
e.collapsible && l.value ? Y((n(), $(H, {
|
|
309
309
|
key: 0,
|
|
310
310
|
reactive: "",
|
|
311
311
|
icon: "plus",
|
|
312
|
-
onClick: b[0] || (b[0] = (T) =>
|
|
312
|
+
onClick: b[0] || (b[0] = (T) => f(!l.value))
|
|
313
313
|
}, null, 512)), [
|
|
314
314
|
[_]
|
|
315
|
-
]) : e.collapsible && !l.value ?
|
|
315
|
+
]) : e.collapsible && !l.value ? Y((n(), $(H, {
|
|
316
316
|
key: 1,
|
|
317
317
|
reactive: "",
|
|
318
318
|
icon: "minus",
|
|
319
|
-
onClick: b[1] || (b[1] = (T) =>
|
|
319
|
+
onClick: b[1] || (b[1] = (T) => f(!l.value))
|
|
320
320
|
}, null, 512)), [
|
|
321
321
|
[_]
|
|
322
|
-
]) : e.closeHint ?
|
|
322
|
+
]) : e.closeHint ? Y((n(), $(H, {
|
|
323
323
|
key: 2,
|
|
324
324
|
reactive: "",
|
|
325
325
|
icon: "x",
|
|
@@ -328,7 +328,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
328
328
|
[_]
|
|
329
329
|
]) : h("", !0)
|
|
330
330
|
], 2)) : h("", !0),
|
|
331
|
-
l.value ? h("", !0) :
|
|
331
|
+
l.value ? h("", !0) : Y((n(), s("div", {
|
|
332
332
|
key: 1,
|
|
333
333
|
ref_key: "body",
|
|
334
334
|
ref: c,
|
|
@@ -347,7 +347,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
347
347
|
class: U([
|
|
348
348
|
"panel__footer",
|
|
349
349
|
{ "panel__footer--padded": !e.fillFooter },
|
|
350
|
-
{ "panel__footer--shadowed": !t(
|
|
350
|
+
{ "panel__footer--shadowed": !t(u) }
|
|
351
351
|
])
|
|
352
352
|
}, [
|
|
353
353
|
C(m.$slots, "footer", {}, void 0, !0)
|
|
@@ -376,19 +376,19 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
376
376
|
overlayLayer: {}
|
|
377
377
|
},
|
|
378
378
|
emits: ["actionClick"],
|
|
379
|
-
setup(e, { emit:
|
|
379
|
+
setup(e, { emit: r }) {
|
|
380
380
|
Ne((d) => ({
|
|
381
381
|
v4078ef85: p.value.x,
|
|
382
382
|
v4078ef86: p.value.y
|
|
383
383
|
}));
|
|
384
|
-
const o =
|
|
385
|
-
if (
|
|
384
|
+
const o = r, a = K(null), l = K(!1), c = (d) => d?.filter((f) => {
|
|
385
|
+
if (f.roles) {
|
|
386
386
|
const m = ne("user");
|
|
387
|
-
return Ee(
|
|
387
|
+
return Ee(f.roles, m.currentUser.roles);
|
|
388
388
|
}
|
|
389
389
|
return !0;
|
|
390
|
-
}),
|
|
391
|
-
const m =
|
|
390
|
+
}), u = (d, f) => {
|
|
391
|
+
const m = f && ke(f);
|
|
392
392
|
d.click && d.click(m), o("actionClick", {
|
|
393
393
|
action: d,
|
|
394
394
|
subject: m
|
|
@@ -399,16 +399,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
399
399
|
x: 0,
|
|
400
400
|
y: 0
|
|
401
401
|
};
|
|
402
|
-
const d = a.value.getBoundingClientRect().top,
|
|
402
|
+
const d = a.value.getBoundingClientRect().top, f = a.value.getBoundingClientRect().left, m = a.value.offsetHeight;
|
|
403
403
|
return {
|
|
404
404
|
_: l.value,
|
|
405
|
-
x: Math.floor(
|
|
405
|
+
x: Math.floor(f) + "px",
|
|
406
406
|
y: Math.floor(d + m) + "px"
|
|
407
407
|
};
|
|
408
408
|
});
|
|
409
|
-
return (d,
|
|
409
|
+
return (d, f) => {
|
|
410
410
|
const m = ee("overlay");
|
|
411
|
-
return n(), s(
|
|
411
|
+
return n(), s(W, null, [
|
|
412
412
|
Object.keys(d.$slots).some((b) => b !== "default") || e.actions !== void 0 && e.actions.length > 0 ? (n(), s("div", {
|
|
413
413
|
key: 0,
|
|
414
414
|
ref_key: "contextmenu",
|
|
@@ -417,7 +417,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
417
417
|
}, [
|
|
418
418
|
O("a", {
|
|
419
419
|
class: "contextmenu__trigger",
|
|
420
|
-
onClick:
|
|
420
|
+
onClick: f[0] || (f[0] = (b) => l.value = !0)
|
|
421
421
|
}, [
|
|
422
422
|
C(d.$slots, "default", oe(be({
|
|
423
423
|
visible: l.value
|
|
@@ -428,9 +428,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
428
428
|
key: 1,
|
|
429
429
|
to: "main"
|
|
430
430
|
}, [
|
|
431
|
-
|
|
431
|
+
Y((n(), $(Oe, {
|
|
432
432
|
modelValue: l.value,
|
|
433
|
-
"onUpdate:modelValue":
|
|
433
|
+
"onUpdate:modelValue": f[4] || (f[4] = (b) => l.value = b),
|
|
434
434
|
fill: "",
|
|
435
435
|
bordered: "",
|
|
436
436
|
class: "content",
|
|
@@ -444,9 +444,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
444
444
|
Object.keys(d.$slots).filter((b) => !["default", "extra", "header"].includes(b)).length > 0 ? (n(), s("div", {
|
|
445
445
|
key: 1,
|
|
446
446
|
class: "content__section",
|
|
447
|
-
onClick:
|
|
447
|
+
onClick: f[1] || (f[1] = (b) => l.value = !1)
|
|
448
448
|
}, [
|
|
449
|
-
(n(!0), s(
|
|
449
|
+
(n(!0), s(W, null, z(Object.keys(d.$slots).filter((b) => !["default", "extra", "header"].includes(b)), (b, _) => (n(), $(de, {
|
|
450
450
|
key: `slot-${_}`,
|
|
451
451
|
class: "content__item content__item--reactive"
|
|
452
452
|
}, {
|
|
@@ -459,12 +459,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
459
459
|
e.actions !== void 0 && e.actions.length > 0 ? (n(), s("div", {
|
|
460
460
|
key: 2,
|
|
461
461
|
class: "content__section",
|
|
462
|
-
onClick:
|
|
462
|
+
onClick: f[2] || (f[2] = (b) => l.value = !1)
|
|
463
463
|
}, [
|
|
464
|
-
(n(!0), s(
|
|
464
|
+
(n(!0), s(W, null, z(c(e.actions), (b, _) => (n(), $(de, {
|
|
465
465
|
key: `action-${_}`,
|
|
466
466
|
class: "content__item content__item--reactive",
|
|
467
|
-
onClick: (g) =>
|
|
467
|
+
onClick: (g) => u(b, e.subject)
|
|
468
468
|
}, {
|
|
469
469
|
default: y(() => [
|
|
470
470
|
L(H, {
|
|
@@ -482,7 +482,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
482
482
|
d.$slots.extra ? (n(), s("div", {
|
|
483
483
|
key: 3,
|
|
484
484
|
class: "content__section",
|
|
485
|
-
onClick:
|
|
485
|
+
onClick: f[3] || (f[3] = (b) => l.value = !1)
|
|
486
486
|
}, [
|
|
487
487
|
O("div", Gt, [
|
|
488
488
|
d.$slots.extra ? C(d.$slots, "extra", { key: 0 }, void 0, !0) : h("", !0)
|
|
@@ -514,8 +514,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
514
514
|
where: { default: "top" }
|
|
515
515
|
},
|
|
516
516
|
setup(e) {
|
|
517
|
-
const
|
|
518
|
-
return (a, l) => t(
|
|
517
|
+
const r = Se(), o = K(!1);
|
|
518
|
+
return (a, l) => t(r).md ? (n(), s("div", {
|
|
519
519
|
key: 0,
|
|
520
520
|
class: "info",
|
|
521
521
|
onMouseleave: l[1] || (l[1] = (c) => o.value = !1)
|
|
@@ -560,9 +560,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
560
560
|
variant: {}
|
|
561
561
|
},
|
|
562
562
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
563
|
-
setup(e, { emit:
|
|
564
|
-
const o = e, a =
|
|
565
|
-
await navigator.clipboard.writeText(w), a("clipboardCopy", w),
|
|
563
|
+
setup(e, { emit: r }) {
|
|
564
|
+
const o = e, a = r, l = o.property || {}, c = l.icon || "inputType" in l && l.inputType === "search", u = re("searchOnly", !1), p = re("innerInputLabel", !1), d = !u && (o.readOnly || l.readOnly), f = K(!1), m = async (w) => {
|
|
565
|
+
await navigator.clipboard.writeText(w), a("clipboardCopy", w), f.value = !0;
|
|
566
566
|
}, b = re("inputVariant", o.variant) || "normal", _ = Object.assign(Object.assign({}, o), {
|
|
567
567
|
name: o.propertyName,
|
|
568
568
|
readonly: d,
|
|
@@ -586,7 +586,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
586
586
|
})(),
|
|
587
587
|
placeholder: p ? l.description || o.propertyName : l.placeholder
|
|
588
588
|
});
|
|
589
|
-
"type" in l && ((l.type === "number" || l.type === "integer") && (l.minimum && (_.min = l.minimum), l.exclusiveMinimum && (_.min = l.exclusiveMinimum + 1), l.maximum && (_.max = l.maximum), l.exclusiveMaximum && (_.max = l.exclusiveMaximum - 1)), l.type === "string" && ((l.format === "date" || l.format === "date-time") && (_.type = !
|
|
589
|
+
"type" in l && ((l.type === "number" || l.type === "integer") && (l.minimum && (_.min = l.minimum), l.exclusiveMinimum && (_.min = l.exclusiveMinimum + 1), l.maximum && (_.max = l.maximum), l.exclusiveMaximum && (_.max = l.exclusiveMaximum - 1)), l.type === "string" && ((l.format === "date" || l.format === "date-time") && (_.type = !u && l.format === "date-time" ? "datetime-local" : "date"), _.minlength = l.minLength, _.maxlength = l.maxLength)), _.type === "text" && u && (_.type = "search"), Ue(() => {
|
|
590
590
|
o.modelValue !== null && F(o.modelValue);
|
|
591
591
|
});
|
|
592
592
|
const g = (w) => {
|
|
@@ -605,7 +605,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
605
605
|
default:
|
|
606
606
|
throw new Error();
|
|
607
607
|
}
|
|
608
|
-
}, i =
|
|
608
|
+
}, i = K(""), T = o.property?.type === "string" && o.property.mask ? ut(o.property.mask) : null;
|
|
609
609
|
ae(() => o.modelValue, (w) => {
|
|
610
610
|
i.value = (() => {
|
|
611
611
|
if (T)
|
|
@@ -667,7 +667,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
667
667
|
`input__container--${t(b)}`
|
|
668
668
|
])
|
|
669
669
|
}, [
|
|
670
|
-
|
|
670
|
+
Y(O("textarea", {
|
|
671
671
|
placeholder: t(_).placeholder,
|
|
672
672
|
readonly: t(_).readonly,
|
|
673
673
|
value: e.modelValue,
|
|
@@ -686,7 +686,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
686
686
|
`input__container--${t(b)}`
|
|
687
687
|
])
|
|
688
688
|
}, [
|
|
689
|
-
|
|
689
|
+
Y(O("input", x(t(_), {
|
|
690
690
|
value: i.value,
|
|
691
691
|
"data-component": "input",
|
|
692
692
|
class: [
|
|
@@ -714,11 +714,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
714
714
|
D("Copiar", -1)
|
|
715
715
|
])]),
|
|
716
716
|
default: y(() => [
|
|
717
|
-
|
|
717
|
+
f.value ? (n(), $(H, {
|
|
718
718
|
key: 0,
|
|
719
719
|
reactive: "",
|
|
720
720
|
icon: "check"
|
|
721
|
-
})) :
|
|
721
|
+
})) : Y((n(), $(H, {
|
|
722
722
|
key: 1,
|
|
723
723
|
reactive: "",
|
|
724
724
|
icon: "clipboard",
|
|
@@ -752,12 +752,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
752
752
|
noOutline: { type: Boolean }
|
|
753
753
|
},
|
|
754
754
|
emits: ["update:modelValue", "change"],
|
|
755
|
-
setup(e, { emit:
|
|
756
|
-
const o = e, a =
|
|
755
|
+
setup(e, { emit: r }) {
|
|
756
|
+
const o = e, a = r, l = K(null), c = o.property, u = (m) => {
|
|
757
757
|
a("update:modelValue", m), a("change", m);
|
|
758
758
|
}, p = (m) => {
|
|
759
|
-
m === "" || m === null ?
|
|
760
|
-
}, d = (m) => Array.isArray(o.modelValue) ? o.modelValue.includes(m) : o.modelValue === m,
|
|
759
|
+
m === "" || m === null ? u(null) : o.booleanRef ? u(m === "true") : u(m);
|
|
760
|
+
}, d = (m) => Array.isArray(o.modelValue) ? o.modelValue.includes(m) : o.modelValue === m, f = G(() => o.multiple ? typeof o.multiple == "number" ? o.multiple : 5 : 1);
|
|
761
761
|
return ae(l, (m) => {
|
|
762
762
|
if (m && o.required && !o.modelValue) {
|
|
763
763
|
const b = m.querySelector("option")?.value;
|
|
@@ -773,14 +773,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
773
773
|
"read-only": "",
|
|
774
774
|
"model-value": e.modelValue
|
|
775
775
|
}, null, 8, ["model-value"])) : (n(), s("select", x({ key: 0 }, {
|
|
776
|
-
size:
|
|
776
|
+
size: f.value,
|
|
777
777
|
value: e.modelValue
|
|
778
778
|
}, {
|
|
779
779
|
ref_key: "select",
|
|
780
780
|
ref: l,
|
|
781
781
|
class: {
|
|
782
782
|
select: !0,
|
|
783
|
-
"select--multiple": !!
|
|
783
|
+
"select--multiple": !!f.value,
|
|
784
784
|
"select--outline": !e.noOutline
|
|
785
785
|
},
|
|
786
786
|
onChange: b[0] || (b[0] = (_) => p(_.target.value))
|
|
@@ -790,7 +790,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
790
790
|
icon: t(c).icon
|
|
791
791
|
}, null, 8, ["icon"])) : h("", !0),
|
|
792
792
|
!o.multiple && !e.required ? (n(), s("option", an, V(t(R)("none")), 1)) : h("", !0),
|
|
793
|
-
(n(!0), s(
|
|
793
|
+
(n(!0), s(W, null, z(t(c) && "enum" in t(c) ? t(c).enum : [], (_) => (n(), s("option", {
|
|
794
794
|
key: String(_),
|
|
795
795
|
value: _,
|
|
796
796
|
"data-selected": d(_)
|
|
@@ -808,8 +808,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
808
808
|
noSummary: { type: Boolean }
|
|
809
809
|
},
|
|
810
810
|
emits: ["paginate"],
|
|
811
|
-
setup(e, { emit:
|
|
812
|
-
const o = e, a =
|
|
811
|
+
setup(e, { emit: r }) {
|
|
812
|
+
const o = e, a = r, l = G({
|
|
813
813
|
get: () => Math.floor(o.pagination.offset / o.pagination.limit),
|
|
814
814
|
set: (d) => {
|
|
815
815
|
o.pagination.offset = d * o.pagination.limit;
|
|
@@ -819,20 +819,20 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
819
819
|
set: (d) => {
|
|
820
820
|
o.pagination.limit = Number(d);
|
|
821
821
|
}
|
|
822
|
-
}),
|
|
822
|
+
}), u = K(l.value ? l.value + 1 : 1), p = G(() => Math.ceil(o.pagination.recordsTotal / o.pagination.limit));
|
|
823
823
|
return ae([
|
|
824
824
|
l,
|
|
825
825
|
c
|
|
826
826
|
], ([d]) => {
|
|
827
|
-
|
|
827
|
+
u.value = d + 1, a("paginate", {
|
|
828
828
|
offset: l.value * c.value,
|
|
829
829
|
limit: c.value
|
|
830
830
|
});
|
|
831
|
-
}), (d,
|
|
831
|
+
}), (d, f) => (n(), s("div", sn, [
|
|
832
832
|
O("div", rn, [
|
|
833
833
|
L(de, {
|
|
834
834
|
disabled: l.value === 0,
|
|
835
|
-
onClick:
|
|
835
|
+
onClick: f[0] || (f[0] = (m) => l.value = 0)
|
|
836
836
|
}, {
|
|
837
837
|
default: y(() => [
|
|
838
838
|
L(H, { icon: "caret-double-left" })
|
|
@@ -841,7 +841,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
841
841
|
}, 8, ["disabled"]),
|
|
842
842
|
L(de, {
|
|
843
843
|
disabled: l.value === 0,
|
|
844
|
-
onClick:
|
|
844
|
+
onClick: f[1] || (f[1] = (m) => l.value -= 1)
|
|
845
845
|
}, {
|
|
846
846
|
default: y(() => [
|
|
847
847
|
L(H, { icon: "caret-left" })
|
|
@@ -850,7 +850,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
850
850
|
}, 8, ["disabled"]),
|
|
851
851
|
L(de, {
|
|
852
852
|
disabled: l.value === p.value - 1,
|
|
853
|
-
onClick:
|
|
853
|
+
onClick: f[2] || (f[2] = (m) => l.value += 1)
|
|
854
854
|
}, {
|
|
855
855
|
default: y(() => [
|
|
856
856
|
L(H, { icon: "caret-right" })
|
|
@@ -859,7 +859,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
859
859
|
}, 8, ["disabled"]),
|
|
860
860
|
L(de, {
|
|
861
861
|
disabled: l.value === p.value - 1,
|
|
862
|
-
onClick:
|
|
862
|
+
onClick: f[3] || (f[3] = (m) => l.value = p.value - 1)
|
|
863
863
|
}, {
|
|
864
864
|
default: y(() => [
|
|
865
865
|
L(H, { icon: "caret-double-right" })
|
|
@@ -868,7 +868,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
868
868
|
}, 8, ["disabled"]),
|
|
869
869
|
L(Qe, {
|
|
870
870
|
modelValue: c.value,
|
|
871
|
-
"onUpdate:modelValue":
|
|
871
|
+
"onUpdate:modelValue": f[4] || (f[4] = (m) => c.value = m),
|
|
872
872
|
property: {
|
|
873
873
|
enum: [],
|
|
874
874
|
icon: "list"
|
|
@@ -876,7 +876,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
876
876
|
class: "pagination__control"
|
|
877
877
|
}, {
|
|
878
878
|
default: y(() => [
|
|
879
|
-
(n(!0), s(
|
|
879
|
+
(n(!0), s(W, null, z(t(ct), (m) => (n(), s("option", {
|
|
880
880
|
key: `limit-${m}`,
|
|
881
881
|
value: m
|
|
882
882
|
}, V(m), 9, un))), 128))
|
|
@@ -888,15 +888,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
888
888
|
D(V(t(R)("Page")) + " ", 1),
|
|
889
889
|
(n(), $(_e, {
|
|
890
890
|
key: l.value,
|
|
891
|
-
modelValue:
|
|
892
|
-
"onUpdate:modelValue":
|
|
891
|
+
modelValue: u.value,
|
|
892
|
+
"onUpdate:modelValue": f[5] || (f[5] = (m) => u.value = m),
|
|
893
893
|
property: {
|
|
894
894
|
type: "number",
|
|
895
895
|
minimum: 1
|
|
896
896
|
},
|
|
897
897
|
style: { height: "100%" },
|
|
898
|
-
onChange:
|
|
899
|
-
l.value =
|
|
898
|
+
onChange: f[6] || (f[6] = (m) => {
|
|
899
|
+
l.value = u.value === 0 ? 0 : u.value - 1;
|
|
900
900
|
})
|
|
901
901
|
}, null, 8, ["modelValue"])),
|
|
902
902
|
O("span", null, V(t(R)("of")) + " " + V(p.value), 1)
|
|
@@ -920,7 +920,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
920
920
|
variant: {}
|
|
921
921
|
},
|
|
922
922
|
emits: ["update:modelValue", "change"],
|
|
923
|
-
setup(e, { emit:
|
|
923
|
+
setup(e, { emit: r }) {
|
|
924
924
|
const o = e, a = o.property, l = o.readOnly || a?.readOnly, c = (() => {
|
|
925
925
|
if (a && "type" in a)
|
|
926
926
|
switch (a.type) {
|
|
@@ -929,7 +929,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
929
929
|
return "checkbox";
|
|
930
930
|
}
|
|
931
931
|
return "radio";
|
|
932
|
-
})(),
|
|
932
|
+
})(), u = r, p = o.value || !1, d = G({
|
|
933
933
|
get: () => {
|
|
934
934
|
if (a) {
|
|
935
935
|
if ("type" in a && a.type === "boolean")
|
|
@@ -943,33 +943,33 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
943
943
|
if (!l) {
|
|
944
944
|
if (a) {
|
|
945
945
|
if ("type" in a && a.type === "boolean") {
|
|
946
|
-
|
|
946
|
+
u("update:modelValue", !o.modelValue);
|
|
947
947
|
return;
|
|
948
948
|
}
|
|
949
949
|
if ("items" in a) {
|
|
950
950
|
if (o.modelValue?.includes(p)) {
|
|
951
|
-
|
|
951
|
+
u("update:modelValue", o.modelValue.filter((m) => m !== p));
|
|
952
952
|
return;
|
|
953
953
|
}
|
|
954
|
-
|
|
954
|
+
u("update:modelValue", [p].concat(o.modelValue || []));
|
|
955
955
|
return;
|
|
956
956
|
}
|
|
957
957
|
}
|
|
958
|
-
|
|
958
|
+
u("update:modelValue", o.value);
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
}),
|
|
961
|
+
}), f = (m) => {
|
|
962
962
|
l && m.preventDefault();
|
|
963
963
|
};
|
|
964
964
|
return (m, b) => {
|
|
965
965
|
const _ = ee("clickable");
|
|
966
|
-
return
|
|
966
|
+
return Y((n(), s("label", {
|
|
967
967
|
class: U([
|
|
968
968
|
"checkbox",
|
|
969
969
|
{ "checkbox--readOnly": t(l) }
|
|
970
970
|
])
|
|
971
971
|
}, [
|
|
972
|
-
|
|
972
|
+
Y(O("input", x({
|
|
973
973
|
"onUpdate:modelValue": b[0] || (b[0] = (g) => d.value = g)
|
|
974
974
|
}, {
|
|
975
975
|
type: t(c),
|
|
@@ -977,7 +977,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
977
977
|
checked: d.value
|
|
978
978
|
}, {
|
|
979
979
|
class: "checkbox__input",
|
|
980
|
-
onClick:
|
|
980
|
+
onClick: f
|
|
981
981
|
}), null, 16), [
|
|
982
982
|
[et, d.value]
|
|
983
983
|
]),
|
|
@@ -1016,8 +1016,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1016
1016
|
columns: { default: 1 }
|
|
1017
1017
|
},
|
|
1018
1018
|
emits: ["update:modelValue"],
|
|
1019
|
-
setup(e, { emit:
|
|
1020
|
-
const o = e, a =
|
|
1019
|
+
setup(e, { emit: r }) {
|
|
1020
|
+
const o = e, a = r, l = o.readOnly || o.property.readOnly, c = "items" in o.property ? o.property.items.enum : o.property.enum, u = (p) => {
|
|
1021
1021
|
a("update:modelValue", p);
|
|
1022
1022
|
};
|
|
1023
1023
|
return Xe(() => {
|
|
@@ -1032,17 +1032,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1032
1032
|
"grid-template-columns": "repeat(var(--columns), 1fr)"
|
|
1033
1033
|
})
|
|
1034
1034
|
}, [
|
|
1035
|
-
(n(!0), s(
|
|
1036
|
-
key: `option-${
|
|
1035
|
+
(n(!0), s(W, null, z(t(c), (f) => (n(), s("div", {
|
|
1036
|
+
key: `option-${f}`,
|
|
1037
1037
|
class: "options__checkbox"
|
|
1038
1038
|
}, [
|
|
1039
1039
|
L(_n, x({ ref_for: !0 }, {
|
|
1040
|
-
value:
|
|
1040
|
+
value: f,
|
|
1041
1041
|
readOnly: t(l),
|
|
1042
1042
|
property: e.property
|
|
1043
1043
|
}, {
|
|
1044
1044
|
"model-value": e.modelValue,
|
|
1045
|
-
"onUpdate:modelValue":
|
|
1045
|
+
"onUpdate:modelValue": u
|
|
1046
1046
|
}), null, 16, ["model-value"])
|
|
1047
1047
|
]))), 128))
|
|
1048
1048
|
], 4));
|
|
@@ -1062,20 +1062,20 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1062
1062
|
required: { type: Boolean }
|
|
1063
1063
|
},
|
|
1064
1064
|
emits: ["update:modelValue", "change"],
|
|
1065
|
-
setup(e, { emit:
|
|
1066
|
-
const o = e, a =
|
|
1065
|
+
setup(e, { emit: r }) {
|
|
1066
|
+
const o = e, a = r, l = o.property, c = o.readOnly || l?.readOnly, u = () => {
|
|
1067
1067
|
c || (a("change", !o.modelValue), a("update:modelValue", !o.modelValue));
|
|
1068
1068
|
};
|
|
1069
1069
|
return (p, d) => {
|
|
1070
|
-
const
|
|
1070
|
+
const f = ee("clickable");
|
|
1071
1071
|
return n(), s("div", Vn, [
|
|
1072
|
-
|
|
1072
|
+
Y((n(), s("a", {
|
|
1073
1073
|
class: U([
|
|
1074
1074
|
"switch",
|
|
1075
1075
|
{ "switch--active": e.modelValue },
|
|
1076
1076
|
{ "switch--readOnly": t(c) }
|
|
1077
1077
|
]),
|
|
1078
|
-
onClick: Ie(
|
|
1078
|
+
onClick: Ie(u, ["stop"])
|
|
1079
1079
|
}, [
|
|
1080
1080
|
d[0] || (d[0] = O("div", { class: "switch__slider" }, null, -1)),
|
|
1081
1081
|
O("div", {
|
|
@@ -1085,7 +1085,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1085
1085
|
])
|
|
1086
1086
|
}, null, 2)
|
|
1087
1087
|
], 2)), [
|
|
1088
|
-
[
|
|
1088
|
+
[f, {
|
|
1089
1089
|
blocked: t(c)
|
|
1090
1090
|
}]
|
|
1091
1091
|
]),
|
|
@@ -1111,15 +1111,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1111
1111
|
height: { default: "100%" }
|
|
1112
1112
|
},
|
|
1113
1113
|
setup(e) {
|
|
1114
|
-
const
|
|
1114
|
+
const r = e, o = G(() => r.fileId ? `${Je}/file/${r.fileId}/picture` : r.url || r.modelValue), a = K(!1);
|
|
1115
1115
|
return (l, c) => {
|
|
1116
|
-
const
|
|
1116
|
+
const u = ee("overlay");
|
|
1117
1117
|
return n(), s("figure", Bn, [
|
|
1118
1118
|
o.value && a.value ? (n(), $(Fe, {
|
|
1119
1119
|
key: 0,
|
|
1120
1120
|
to: "main"
|
|
1121
1121
|
}, [
|
|
1122
|
-
|
|
1122
|
+
Y((n(), s("div", Sn, [
|
|
1123
1123
|
O("img", {
|
|
1124
1124
|
src: o.value,
|
|
1125
1125
|
alt: e.alt,
|
|
@@ -1131,7 +1131,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1131
1131
|
}, null, 8, wn),
|
|
1132
1132
|
e.meta?.owner ? (n(), s("div", Tn, V(l.t("created_by")) + " " + V(e.meta.owner.name) + " em " + V(l.formatDateTime(e.meta.created_at, { hours: !0 })), 1)) : h("", !0)
|
|
1133
1133
|
])), [
|
|
1134
|
-
[
|
|
1134
|
+
[u, {
|
|
1135
1135
|
layer: 60,
|
|
1136
1136
|
click: () => {
|
|
1137
1137
|
a.value = !1;
|
|
@@ -1201,7 +1201,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1201
1201
|
modelValue: {}
|
|
1202
1202
|
},
|
|
1203
1203
|
setup(e) {
|
|
1204
|
-
const
|
|
1204
|
+
const r = e, o = "_id" in r.modelValue ? r.modelValue : r.modelValue.file, a = (l) => {
|
|
1205
1205
|
const c = l === 0 ? 0 : Math.floor(Math.log(l) / Math.log(1024));
|
|
1206
1206
|
return `${(l / Math.pow(1024, c)).toFixed(2)} ${[
|
|
1207
1207
|
"B",
|
|
@@ -1258,11 +1258,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1258
1258
|
multiple: { type: Boolean }
|
|
1259
1259
|
},
|
|
1260
1260
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1261
|
-
setup(e, { emit:
|
|
1262
|
-
const o = e, a = o.property && se(o.property), l =
|
|
1261
|
+
setup(e, { emit: r }) {
|
|
1262
|
+
const o = e, a = o.property && se(o.property), l = r, u = we() ? xe() : null, p = o.multiple || o.property && "type" in o.property && o.property.type === "array", d = G(() => {
|
|
1263
1263
|
if (o.modelValue)
|
|
1264
1264
|
return Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue];
|
|
1265
|
-
}),
|
|
1265
|
+
}), f = (_) => new Promise((g) => {
|
|
1266
1266
|
const i = new FileReader();
|
|
1267
1267
|
i.onload = () => g(i.result), i.readAsArrayBuffer(_);
|
|
1268
1268
|
}), m = async (_) => {
|
|
@@ -1271,9 +1271,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1271
1271
|
return;
|
|
1272
1272
|
const i = [];
|
|
1273
1273
|
for (const T of g) {
|
|
1274
|
-
const k = await
|
|
1275
|
-
if (
|
|
1276
|
-
const { data: { error: F, result: I } } = await dt(`${Je}/${
|
|
1274
|
+
const k = await f(T);
|
|
1275
|
+
if (u) {
|
|
1276
|
+
const { data: { error: F, result: I } } = await dt(`${Je}/${u.$id}/upload?name=${T.name}`, k, {
|
|
1277
1277
|
params: {
|
|
1278
1278
|
method: "POST",
|
|
1279
1279
|
headers: {
|
|
@@ -1312,12 +1312,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1312
1312
|
onChange: m
|
|
1313
1313
|
}, null, 40, Hn)),
|
|
1314
1314
|
d.value && d.value.length > 0 ? (n(), s("div", Dn, [
|
|
1315
|
-
(n(!0), s(
|
|
1315
|
+
(n(!0), s(W, null, z(d.value, (T, k) => (n(), $(Fn, {
|
|
1316
1316
|
key: "_id" in T ? String(T._id) : T.file.name,
|
|
1317
1317
|
"model-value": T
|
|
1318
1318
|
}, {
|
|
1319
1319
|
default: y(() => [
|
|
1320
|
-
e.readOnly ? h("", !0) :
|
|
1320
|
+
e.readOnly ? h("", !0) : Y((n(), $(H, {
|
|
1321
1321
|
key: 0,
|
|
1322
1322
|
reactive: "",
|
|
1323
1323
|
icon: "trash",
|
|
@@ -1341,23 +1341,23 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1341
1341
|
observeScroll: { type: Boolean }
|
|
1342
1342
|
},
|
|
1343
1343
|
emits: ["endReached"],
|
|
1344
|
-
setup(e, { emit:
|
|
1345
|
-
const o = e, a =
|
|
1344
|
+
setup(e, { emit: r }) {
|
|
1345
|
+
const o = e, a = r, l = K(null), c = o.observeScroll ? He(l, {
|
|
1346
1346
|
antecipate: 100
|
|
1347
1347
|
}).reachedEnd : null;
|
|
1348
|
-
return c !== null && ae(c, (
|
|
1349
|
-
|
|
1350
|
-
}), (
|
|
1351
|
-
|
|
1348
|
+
return c !== null && ae(c, (u) => {
|
|
1349
|
+
u && a("endReached", u);
|
|
1350
|
+
}), (u, p) => (n(), s("div", Wn, [
|
|
1351
|
+
u.$slots.default ? (n(), s("div", {
|
|
1352
1352
|
key: 0,
|
|
1353
1353
|
ref_key: "containerEl",
|
|
1354
1354
|
ref: l,
|
|
1355
1355
|
class: "container__content"
|
|
1356
1356
|
}, [
|
|
1357
|
-
C(
|
|
1357
|
+
C(u.$slots, "default", {}, void 0, !0)
|
|
1358
1358
|
], 512)) : h("", !0),
|
|
1359
|
-
|
|
1360
|
-
C(
|
|
1359
|
+
u.$slots.footer ? (n(), s("div", Yn, [
|
|
1360
|
+
C(u.$slots, "footer", {}, void 0, !0)
|
|
1361
1361
|
])) : h("", !0)
|
|
1362
1362
|
]));
|
|
1363
1363
|
}
|
|
@@ -1371,8 +1371,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1371
1371
|
readOnly: { type: Boolean }
|
|
1372
1372
|
},
|
|
1373
1373
|
emits: ["update:modelValue", "change"],
|
|
1374
|
-
setup(e, { emit:
|
|
1375
|
-
const o = Ce(), a = e, l =
|
|
1374
|
+
setup(e, { emit: r }) {
|
|
1375
|
+
const o = Ce(), a = e, l = r, c = a.property, u = se(c);
|
|
1376
1376
|
xe();
|
|
1377
1377
|
const p = G(() => a.modelValue ? Array.isArray(a.modelValue) ? Array.isArray(a.modelValue) && Object.values(a.modelValue).some(({ _id: b }) => a.item._id === b) : a.modelValue._id === a.item._id : !1), d = () => {
|
|
1378
1378
|
if (p.value)
|
|
@@ -1380,8 +1380,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1380
1380
|
const b = (g) => g.filter((i) => !!i._id);
|
|
1381
1381
|
let _;
|
|
1382
1382
|
"items" in c ? a.modelValue ? _ = b(Array.isArray(a.modelValue) ? a.modelValue : [a.modelValue]) : _ = [] : _ = a.modelValue, Array.isArray(_) ? l("update:modelValue", _.concat([a.item])) : l("update:modelValue", a.item), l("change", a.item);
|
|
1383
|
-
},
|
|
1384
|
-
|
|
1383
|
+
}, f = async (b) => {
|
|
1384
|
+
u.purge && b?.purge;
|
|
1385
1385
|
const _ = () => {
|
|
1386
1386
|
const g = Array.isArray(a.modelValue) ? Array.from(a.modelValue) : [], i = g.findIndex((T) => T._id === a.item._id);
|
|
1387
1387
|
return g.splice(i, 1), g;
|
|
@@ -1390,15 +1390,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1390
1390
|
}, m = () => {
|
|
1391
1391
|
if (a.readOnly) {
|
|
1392
1392
|
o.push({
|
|
1393
|
-
path: `/dashboard/c/${
|
|
1393
|
+
path: `/dashboard/c/${u.$ref}/${a.item._id}`
|
|
1394
1394
|
});
|
|
1395
1395
|
return;
|
|
1396
1396
|
}
|
|
1397
|
-
return p.value ?
|
|
1397
|
+
return p.value ? f() : d();
|
|
1398
1398
|
};
|
|
1399
1399
|
return (b, _) => {
|
|
1400
1400
|
const g = ee("clickable");
|
|
1401
|
-
return
|
|
1401
|
+
return Y((n(), s("div", {
|
|
1402
1402
|
class: U({
|
|
1403
1403
|
item: !0,
|
|
1404
1404
|
"item--selected": p.value
|
|
@@ -1407,7 +1407,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1407
1407
|
}, [
|
|
1408
1408
|
C(b.$slots, "default", {}, void 0, !0),
|
|
1409
1409
|
O("div", Xn, [
|
|
1410
|
-
(n(!0), s(
|
|
1410
|
+
(n(!0), s(W, null, z(e.indexes, (i, T) => (n(), s("div", {
|
|
1411
1411
|
key: `index-${e.item._id}-${T}`,
|
|
1412
1412
|
class: "item__value"
|
|
1413
1413
|
}, V(e.item[i]), 1))), 128))
|
|
@@ -1439,17 +1439,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1439
1439
|
panel: { default: void 0 }
|
|
1440
1440
|
},
|
|
1441
1441
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1442
|
-
setup(e, { emit:
|
|
1443
|
-
const o = e, a = ne("meta"), l = se(o.property), c = o.panel !== void 0 ? G(() => o.panel) :
|
|
1442
|
+
setup(e, { emit: r }) {
|
|
1443
|
+
const o = e, a = ne("meta"), l = se(o.property), c = o.panel !== void 0 ? G(() => o.panel) : K(!1), u = r, p = ne(se(o.property).$ref), d = we(), f = d ? xe() : null, m = l.indexes;
|
|
1444
1444
|
fe(Te, se(o.property).$ref), fe("innerInputLabel", !0), fe("omitInputLabels", !0);
|
|
1445
|
-
const b =
|
|
1445
|
+
const b = K(o.modelValue), _ = K({
|
|
1446
1446
|
data: [],
|
|
1447
1447
|
pagination: {}
|
|
1448
|
-
}), g = G(() => _.value.data), i = G(() => _.value.pagination), T =
|
|
1448
|
+
}), g = G(() => _.value.data), i = G(() => _.value.pagination), T = K(0), k = K(!1), F = K(""), I = () => {
|
|
1449
1449
|
const Z = {};
|
|
1450
1450
|
if (d) {
|
|
1451
1451
|
const P = t(d);
|
|
1452
|
-
Z[P] =
|
|
1452
|
+
Z[P] = f;
|
|
1453
1453
|
}
|
|
1454
1454
|
return l.constraints ? ht(l.constraints, Z) : {};
|
|
1455
1455
|
}, w = () => {
|
|
@@ -1487,9 +1487,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1487
1487
|
}), ce = () => {
|
|
1488
1488
|
k.value = !0, ue();
|
|
1489
1489
|
}, $e = () => {
|
|
1490
|
-
"effect" in c ?
|
|
1490
|
+
"effect" in c ? u("update:panel", !0) : c.value = !0, N();
|
|
1491
1491
|
}, me = () => {
|
|
1492
|
-
T.value = 0, _.value.data.splice(0), "effect" in c ?
|
|
1492
|
+
T.value = 0, _.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
|
|
1493
1493
|
};
|
|
1494
1494
|
ae(() => F.value.length, (Z, P) => {
|
|
1495
1495
|
Z && !P && N();
|
|
@@ -1497,12 +1497,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1497
1497
|
o.selectOnly && N();
|
|
1498
1498
|
});
|
|
1499
1499
|
const A = (Z) => {
|
|
1500
|
-
b.value = Z, o.selectOnly ||
|
|
1500
|
+
b.value = Z, o.selectOnly || u("update:modelValue", Z);
|
|
1501
1501
|
}, j = () => {
|
|
1502
|
-
me(),
|
|
1502
|
+
me(), u("update:modelValue", b.value);
|
|
1503
1503
|
};
|
|
1504
1504
|
return (Z, P) => {
|
|
1505
|
-
const
|
|
1505
|
+
const v = ee("clickable");
|
|
1506
1506
|
return n(), s("div", null, [
|
|
1507
1507
|
t(c) ? (n(), $(Fe, {
|
|
1508
1508
|
key: 0,
|
|
@@ -1547,14 +1547,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1547
1547
|
onEndReached: w
|
|
1548
1548
|
}, {
|
|
1549
1549
|
default: y(() => [
|
|
1550
|
-
(n(!0), s(
|
|
1550
|
+
(n(!0), s(W, null, z(g.value, (B) => (n(), $(ze, x({ ref_for: !0 }, {
|
|
1551
1551
|
item: B,
|
|
1552
1552
|
indexes: t(m),
|
|
1553
1553
|
property: e.property
|
|
1554
1554
|
}, {
|
|
1555
1555
|
key: `matching-${B._id}`,
|
|
1556
1556
|
modelValue: b.value,
|
|
1557
|
-
"onUpdate:modelValue": P[1] || (P[1] = (
|
|
1557
|
+
"onUpdate:modelValue": P[1] || (P[1] = (X) => b.value = X)
|
|
1558
1558
|
}), null, 16, ["modelValue"]))), 128))
|
|
1559
1559
|
]),
|
|
1560
1560
|
_: 1
|
|
@@ -1571,7 +1571,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1571
1571
|
L(Ge, null, ie({
|
|
1572
1572
|
default: y(() => [
|
|
1573
1573
|
"items" in e.property ? (n(), s("div", aa, [
|
|
1574
|
-
(n(!0), s(
|
|
1574
|
+
(n(!0), s(W, null, z(e.modelValue, (B) => (n(), $(ze, x({ ref_for: !0 }, {
|
|
1575
1575
|
item: B,
|
|
1576
1576
|
indexes: t(m),
|
|
1577
1577
|
property: e.property,
|
|
@@ -1594,7 +1594,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1594
1594
|
e.readOnly ? void 0 : {
|
|
1595
1595
|
name: "footer",
|
|
1596
1596
|
fn: y(() => [
|
|
1597
|
-
|
|
1597
|
+
Y((n(), $(H, {
|
|
1598
1598
|
icon: "plus",
|
|
1599
1599
|
onClick: $e
|
|
1600
1600
|
}, {
|
|
@@ -1603,7 +1603,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1603
1603
|
]),
|
|
1604
1604
|
_: 1
|
|
1605
1605
|
})), [
|
|
1606
|
-
[
|
|
1606
|
+
[v]
|
|
1607
1607
|
])
|
|
1608
1608
|
]),
|
|
1609
1609
|
key: "0"
|
|
@@ -1613,7 +1613,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1613
1613
|
]);
|
|
1614
1614
|
};
|
|
1615
1615
|
}
|
|
1616
|
-
}), la = /* @__PURE__ */ E(oa, [["__scopeId", "data-v-7a35daa0"]]), We = (e,
|
|
1616
|
+
}), la = /* @__PURE__ */ E(oa, [["__scopeId", "data-v-7a35daa0"]]), We = (e, r) => {
|
|
1617
1617
|
const o = "items" in e ? e.items : e, a = {
|
|
1618
1618
|
options: kn,
|
|
1619
1619
|
select: Qe,
|
|
@@ -1638,17 +1638,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1638
1638
|
const c = se(e);
|
|
1639
1639
|
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in e && e.uniqueItems ? "options" : "enum" in o ? "select" : "input";
|
|
1640
1640
|
})();
|
|
1641
|
-
return
|
|
1642
|
-
}, ia = (e,
|
|
1641
|
+
return r[l] ? r[l] : a[l];
|
|
1642
|
+
}, ia = (e, r, o) => {
|
|
1643
1643
|
e ??= [];
|
|
1644
|
-
const a = "items" in
|
|
1644
|
+
const a = "items" in r ? r.items : r;
|
|
1645
1645
|
if ("$ref" in a) {
|
|
1646
1646
|
const l = ne(a.$ref, o), c = ke(l.$freshItem);
|
|
1647
1647
|
return e.push(c);
|
|
1648
1648
|
}
|
|
1649
1649
|
return "properties" in a ? e.push(bt(a)) : "type" in a && a.type === "boolean" ? e.push({}) : e.push(null);
|
|
1650
|
-
}, sa = (e,
|
|
1651
|
-
e.splice(
|
|
1650
|
+
}, sa = (e, r) => {
|
|
1651
|
+
e.splice(r, 1);
|
|
1652
1652
|
}, ra = {
|
|
1653
1653
|
key: 0,
|
|
1654
1654
|
class: "form__header"
|
|
@@ -1687,49 +1687,50 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1687
1687
|
highlightRequired: { type: Boolean, default: !0 },
|
|
1688
1688
|
focus: { type: Boolean },
|
|
1689
1689
|
includeId: { type: Boolean },
|
|
1690
|
-
includeTimestamps: { type: Boolean }
|
|
1690
|
+
includeTimestamps: { type: Boolean },
|
|
1691
|
+
includeReadOnly: { type: Boolean }
|
|
1691
1692
|
},
|
|
1692
1693
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
1693
|
-
setup(e, { emit:
|
|
1694
|
-
const o = De(), a = e, l =
|
|
1694
|
+
setup(e, { emit: r }) {
|
|
1695
|
+
const o = De(), a = e, l = r;
|
|
1695
1696
|
Xe(() => {
|
|
1696
1697
|
a.modelValue || l("update:modelValue", a.property && "items" in a.property ? [] : {});
|
|
1697
1698
|
});
|
|
1698
|
-
const c = a.property && se(a.property),
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1699
|
+
const c = a.property && se(a.property), u = c ? c.$ref : a.collection || we();
|
|
1700
|
+
let p;
|
|
1701
|
+
a.readOnly ? p = a.readOnly : a.property && typeof a.property.readOnly == "boolean" ? p = a.property.readOnly : p = !1;
|
|
1702
|
+
const d = u ? ne(t(u)) : null;
|
|
1703
|
+
!u && process.env.NODE_ENV !== "production" && console.warn("aeria-form was used without providing storeId or specifying collection prop, some features may not work as intended");
|
|
1704
|
+
const f = K(!1), m = G(() => {
|
|
1705
|
+
const v = !a.form && a.property ? "type" in a.property && a.property.type === "object" ? "properties" in a.property ? a.property.properties : void 0 : d?.properties : a.form;
|
|
1706
|
+
if (!v)
|
|
1703
1707
|
return;
|
|
1704
1708
|
const B = {};
|
|
1705
1709
|
if (a.includeId && (B._id = {
|
|
1706
1710
|
type: "string",
|
|
1707
1711
|
readOnly: !0
|
|
1708
1712
|
}), a.includeTimestamps) {
|
|
1709
|
-
const
|
|
1713
|
+
const X = {
|
|
1710
1714
|
type: "string",
|
|
1711
1715
|
format: "date-time",
|
|
1712
1716
|
readOnly: !0,
|
|
1713
1717
|
isTimestamp: !0
|
|
1714
1718
|
};
|
|
1715
|
-
|
|
1719
|
+
v.created_at || (B.created_at = X), v.created_at || (B.updated_at = X);
|
|
1716
1720
|
}
|
|
1717
|
-
return Object.assign(B,
|
|
1718
|
-
}), b = G(() => a.layout || d?.description.formLayout), _ = (
|
|
1719
|
-
const B = re(
|
|
1720
|
-
return a[
|
|
1721
|
+
return Object.assign(B, v), B;
|
|
1722
|
+
}), b = G(() => a.layout || d?.description.formLayout), _ = (v) => {
|
|
1723
|
+
const B = re(v, a[v]);
|
|
1724
|
+
return a[v] && fe(v, a[v]), B;
|
|
1721
1725
|
}, g = G(() => a.validationErrors !== null ? a.validationErrors : d?.validationErrors), i = _("formComponents") || {}, T = _("propertyComponents") || {}, k = _("omitFormHeader"), F = _("omitInputLabels"), I = _("innerInputLabel");
|
|
1722
|
-
|
|
1723
|
-
const w = (
|
|
1724
|
-
B
|
|
1725
|
-
W
|
|
1726
|
-
])) : null, J = (f, B) => {
|
|
1727
|
-
if (a.searchOnly || !r || a.includeId && f === "_id" || a.includeTimestamps && B.isTimestamp)
|
|
1726
|
+
u && fe(Te, u), fe("searchOnly", a.searchOnly);
|
|
1727
|
+
const w = (v, B) => {
|
|
1728
|
+
if (a.searchOnly || !u || a.includeId && v === "_id" || a.includeTimestamps && B.isTimestamp)
|
|
1728
1729
|
return !0;
|
|
1729
|
-
const
|
|
1730
|
-
return !
|
|
1731
|
-
}, N =
|
|
1732
|
-
const
|
|
1730
|
+
const X = a.property && "properties" in a.property ? a.property.form : d?.description?.form;
|
|
1731
|
+
return !X || X.includes(v);
|
|
1732
|
+
}, N = m.value ? Object.entries(m.value).filter(([v, B]) => w(v, B) && !B.noForm && (!B.readOnly || a.readOnly || a.includeReadOnly)) : null, ue = Se(), ce = {}, $e = (v, B) => {
|
|
1733
|
+
const X = [], te = b.value?.fields?.[v];
|
|
1733
1734
|
if (!B)
|
|
1734
1735
|
return;
|
|
1735
1736
|
if (te?.if && !a.searchOnly) {
|
|
@@ -1737,22 +1738,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1737
1738
|
a.modelValue,
|
|
1738
1739
|
te.if
|
|
1739
1740
|
);
|
|
1740
|
-
q.satisfied || (ce[
|
|
1741
|
+
q.satisfied || (ce[v] && (d ? a.modelValue[v] = typeof d.$freshItem[v] == "object" ? ke(d.$freshItem[v]) : d.$freshItem[v] : a.modelValue[v] = [
|
|
1741
1742
|
void 0,
|
|
1742
1743
|
null
|
|
1743
|
-
].includes(a.modelValue[
|
|
1744
|
+
].includes(a.modelValue[v]) ? null : a.modelValue[v].constructor()), X.push("display: none")), ce[v] = q.satisfied;
|
|
1744
1745
|
}
|
|
1745
1746
|
const S = ue.value.md && te?.span || 6;
|
|
1746
|
-
return
|
|
1747
|
+
return X.push(`--field-span: ${S}`, "grid-column: span var(--field-span) / span var(--field-span)"), te && (te.verticalSpacing && X.push([
|
|
1747
1748
|
`--vertical-spacing: ${te.verticalSpacing}`,
|
|
1748
1749
|
"padding: var(--vertical-spacing) 0"
|
|
1749
|
-
]), te.separator &&
|
|
1750
|
+
]), te.separator && X.push([
|
|
1750
1751
|
"border-top: 1px solid var(--theme-border-color)",
|
|
1751
1752
|
"border-width: 1px 0 1px 0",
|
|
1752
1753
|
"padding: 1rem 0",
|
|
1753
1754
|
"margin: 1rem 0"
|
|
1754
|
-
])),
|
|
1755
|
-
}, me = (
|
|
1755
|
+
])), X.join(";");
|
|
1756
|
+
}, me = (v) => v === null || v instanceof Object && !Object.keys(v).length, A = G(() => {
|
|
1756
1757
|
if (typeof a.required < "u")
|
|
1757
1758
|
switch (a.required) {
|
|
1758
1759
|
case !0:
|
|
@@ -1764,40 +1765,40 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1764
1765
|
}
|
|
1765
1766
|
return a.property && "required" in a.property ? a.property.required : a.collection ? d.description.required : void 0;
|
|
1766
1767
|
}), j = G(() => {
|
|
1767
|
-
let
|
|
1768
|
+
let v;
|
|
1768
1769
|
if (a.form)
|
|
1769
|
-
|
|
1770
|
+
v = a.form;
|
|
1770
1771
|
else if (a.property && "properties" in a.property)
|
|
1771
|
-
|
|
1772
|
+
v = a.property.properties;
|
|
1772
1773
|
else
|
|
1773
1774
|
return !0;
|
|
1774
1775
|
const { error: B } = _t(a.modelValue, {
|
|
1775
1776
|
type: "object",
|
|
1776
1777
|
required: A.value,
|
|
1777
|
-
properties:
|
|
1778
|
+
properties: v
|
|
1778
1779
|
}, {
|
|
1779
1780
|
coerce: !0,
|
|
1780
1781
|
tolerateExtraneous: !0
|
|
1781
1782
|
});
|
|
1782
1783
|
return !B;
|
|
1783
|
-
}), Z = (
|
|
1784
|
-
if (!a.focus || p ||
|
|
1784
|
+
}), Z = (v, B) => g.value?.[v] && (typeof g.value[v].index != "number" || g.value[v].index === B) ? g.value[v].errors : null, P = (v) => {
|
|
1785
|
+
if (!a.focus || p || v.readOnly)
|
|
1785
1786
|
return !1;
|
|
1786
|
-
if (!a.parentPropertyName && !a.parentCollection && !
|
|
1787
|
-
return
|
|
1787
|
+
if (!a.parentPropertyName && !a.parentCollection && !f.value)
|
|
1788
|
+
return f.value = !0, !0;
|
|
1788
1789
|
};
|
|
1789
|
-
return (
|
|
1790
|
-
const
|
|
1790
|
+
return (v, B) => {
|
|
1791
|
+
const X = ee("clickable"), te = ee("focus");
|
|
1791
1792
|
return n(), s("form", {
|
|
1792
1793
|
class: "form",
|
|
1793
1794
|
style: ve(`row-gap: ${t(k) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1794
1795
|
}, [
|
|
1795
|
-
|
|
1796
|
-
C(
|
|
1796
|
+
v.$slots.header && !t(k) ? (n(), s("header", ra, [
|
|
1797
|
+
C(v.$slots, "header", {}, void 0, !0)
|
|
1797
1798
|
])) : h("", !0),
|
|
1798
|
-
C(
|
|
1799
|
+
C(v.$slots, "default", {}, void 0, !0),
|
|
1799
1800
|
O("fieldset", ua, [
|
|
1800
|
-
(n(!0), s(
|
|
1801
|
+
(n(!0), s(W, null, z(t(N), ([S, q]) => (n(), s("div", {
|
|
1801
1802
|
key: `field-${S}`,
|
|
1802
1803
|
style: ve($e(S, q)),
|
|
1803
1804
|
class: U({
|
|
@@ -1818,7 +1819,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1818
1819
|
innerHTML: q.hint
|
|
1819
1820
|
}, null, 8, da)) : h("", !0)
|
|
1820
1821
|
])) : h("", !0),
|
|
1821
|
-
|
|
1822
|
+
v.$slots[`field-${S}`] ? C(v.$slots, `field-${S}`, x({
|
|
1822
1823
|
key: 1,
|
|
1823
1824
|
ref_for: !0
|
|
1824
1825
|
}, {
|
|
@@ -1895,11 +1896,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1895
1896
|
}, 8, ["disabled", "onClick"])
|
|
1896
1897
|
])),
|
|
1897
1898
|
e.modelValue[S]?.length > 0 ? (n(), s("div", ba, [
|
|
1898
|
-
(n(!0), s(
|
|
1899
|
+
(n(!0), s(W, null, z(e.modelValue[S], (Q, ge) => (n(), s("div", {
|
|
1899
1900
|
key: `rep-${S}-${t($t)(Q, ge)}`,
|
|
1900
1901
|
class: "form__array-item"
|
|
1901
1902
|
}, [
|
|
1902
|
-
t(p) ? h("", !0) :
|
|
1903
|
+
t(p) ? h("", !0) : Y((n(), $(H, {
|
|
1903
1904
|
key: 0,
|
|
1904
1905
|
icon: "trash",
|
|
1905
1906
|
class: "form__array-remove",
|
|
@@ -1910,7 +1911,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1910
1911
|
]),
|
|
1911
1912
|
_: 1
|
|
1912
1913
|
}, 8, ["onClick"])), [
|
|
1913
|
-
[
|
|
1914
|
+
[X]
|
|
1914
1915
|
]),
|
|
1915
1916
|
(n(), $(pe(t(We)(q, t(i))), x({
|
|
1916
1917
|
modelValue: e.modelValue[S][ge],
|
|
@@ -1919,7 +1920,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1919
1920
|
readOnly: t(p),
|
|
1920
1921
|
property: q.items,
|
|
1921
1922
|
propertyName: S,
|
|
1922
|
-
parentCollection: t(
|
|
1923
|
+
parentCollection: t(u),
|
|
1923
1924
|
parentPropertyName: e.parentPropertyName,
|
|
1924
1925
|
required: !e.searchOnly && (!A.value || t(je)(S, A.value, e.modelValue)),
|
|
1925
1926
|
validationErrors: Z(S, ge),
|
|
@@ -1930,7 +1931,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1930
1931
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1931
1932
|
]))), 128))
|
|
1932
1933
|
])) : h("", !0)
|
|
1933
|
-
])) : e.modelValue ?
|
|
1934
|
+
])) : e.modelValue ? Y((n(), $(pe(t(We)(q, t(i))), x({
|
|
1934
1935
|
key: 6,
|
|
1935
1936
|
modelValue: e.modelValue[S],
|
|
1936
1937
|
"onUpdate:modelValue": (Q) => e.modelValue[S] = Q
|
|
@@ -1939,7 +1940,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1939
1940
|
property: q,
|
|
1940
1941
|
propertyName: S,
|
|
1941
1942
|
parentPropertyName: e.parentPropertyName,
|
|
1942
|
-
parentCollection: t(
|
|
1943
|
+
parentCollection: t(u),
|
|
1943
1944
|
required: !e.searchOnly && (!A.value || t(je)(S, A.value, e.modelValue)),
|
|
1944
1945
|
...q.componentProps || {},
|
|
1945
1946
|
validationErrors: Z(S)
|
|
@@ -1956,24 +1957,24 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1956
1957
|
])) : h("", !0)
|
|
1957
1958
|
], 6))), 128))
|
|
1958
1959
|
]),
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
C(
|
|
1960
|
+
v.$slots.after ? C(v.$slots, "after", { key: 1 }, void 0, !0) : h("", !0),
|
|
1961
|
+
v.$slots.footer ? (n(), s("div", ka, [
|
|
1962
|
+
C(v.$slots, "footer", oe(be({
|
|
1962
1963
|
isInsertReady: j.value
|
|
1963
1964
|
})), void 0, !0)
|
|
1964
1965
|
])) : h("", !0)
|
|
1965
1966
|
], 4);
|
|
1966
1967
|
};
|
|
1967
1968
|
}
|
|
1968
|
-
}), Me = /* @__PURE__ */ E(Va, [["__scopeId", "data-v-
|
|
1969
|
+
}), Me = /* @__PURE__ */ E(Va, [["__scopeId", "data-v-017664ad"]]), Ca = /* @__PURE__ */ M({
|
|
1969
1970
|
__name: "aeria-filter-panel",
|
|
1970
1971
|
emits: ["update:modelValue"],
|
|
1971
|
-
setup(e, { emit:
|
|
1972
|
-
const o =
|
|
1972
|
+
setup(e, { emit: r }) {
|
|
1973
|
+
const o = r, a = xe(), l = Ce(), c = t(re(Te)), u = () => {
|
|
1973
1974
|
if (a.pagination.offset = 0, a.$actions.filter(), o("update:modelValue", !1), "query" in l.currentRoute && l.currentRoute.query && typeof l.currentRoute.query == "object") {
|
|
1974
|
-
const
|
|
1975
|
-
for (const m of Object.keys(
|
|
1976
|
-
m.startsWith(`${c}.`) && delete
|
|
1975
|
+
const f = l.currentRoute.query;
|
|
1976
|
+
for (const m of Object.keys(f))
|
|
1977
|
+
m.startsWith(`${c}.`) && delete f[m];
|
|
1977
1978
|
}
|
|
1978
1979
|
const { query: p, ...d } = l.currentRoute.value;
|
|
1979
1980
|
l.push(Be(d, {
|
|
@@ -1984,15 +1985,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1984
1985
|
"close-hint": "",
|
|
1985
1986
|
"fixed-right": "",
|
|
1986
1987
|
title: p.t("filter_by", { capitalize: !0 }),
|
|
1987
|
-
onClose: d[2] || (d[2] = (
|
|
1988
|
-
onOverlayClick: d[3] || (d[3] = (
|
|
1988
|
+
onClose: d[2] || (d[2] = (f) => o("update:modelValue", !1)),
|
|
1989
|
+
onOverlayClick: d[3] || (d[3] = (f) => o("update:modelValue", !1))
|
|
1989
1990
|
}, {
|
|
1990
1991
|
footer: y(() => [
|
|
1991
1992
|
t(a).filtersCount > 0 ? (n(), $(le, {
|
|
1992
1993
|
key: 0,
|
|
1993
1994
|
variant: "transparent",
|
|
1994
|
-
onClick: d[1] || (d[1] = (
|
|
1995
|
-
t(a).$actions.clearFilters(),
|
|
1995
|
+
onClick: d[1] || (d[1] = (f) => {
|
|
1996
|
+
t(a).$actions.clearFilters(), u(), o("update:modelValue", !1);
|
|
1996
1997
|
})
|
|
1997
1998
|
}, {
|
|
1998
1999
|
default: y(() => [
|
|
@@ -2010,7 +2011,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2010
2011
|
large: "",
|
|
2011
2012
|
icon: "funnel",
|
|
2012
2013
|
disabled: !t(a).hasActiveFilters,
|
|
2013
|
-
onClick:
|
|
2014
|
+
onClick: u
|
|
2014
2015
|
}, {
|
|
2015
2016
|
default: y(() => [
|
|
2016
2017
|
D(V(p.t("action.filter", { capitalize: !0 })), 1)
|
|
@@ -2021,7 +2022,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2021
2022
|
default: y(() => [
|
|
2022
2023
|
L(Me, x({
|
|
2023
2024
|
modelValue: t(a).filters,
|
|
2024
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2025
|
+
"onUpdate:modelValue": d[0] || (d[0] = (f) => t(a).filters = f)
|
|
2025
2026
|
}, {
|
|
2026
2027
|
form: t(a).$actions.useProperties(
|
|
2027
2028
|
Array.isArray(t(a).description.filters) ? t(a).description.filters : Object.keys(t(a).description.filters)
|
|
@@ -2050,13 +2051,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2050
2051
|
includeTimestamps: { type: Boolean }
|
|
2051
2052
|
},
|
|
2052
2053
|
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2053
|
-
setup(e, { emit:
|
|
2054
|
-
const o = e, a =
|
|
2054
|
+
setup(e, { emit: r }) {
|
|
2055
|
+
const o = e, a = r, l = ne("meta"), c = o.collection, u = ne(c);
|
|
2055
2056
|
Ue(() => {
|
|
2056
|
-
o.modelValue &&
|
|
2057
|
+
o.modelValue && u.$actions.setItem(o.modelValue);
|
|
2057
2058
|
});
|
|
2058
|
-
const p = G(() => o.form ?
|
|
2059
|
-
const { error: b, result: _ } = await
|
|
2059
|
+
const p = G(() => o.form ? u.$actions.useProperties(o.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
|
|
2060
|
+
const { error: b, result: _ } = await u.$actions.deepInsert();
|
|
2060
2061
|
if (b) {
|
|
2061
2062
|
if ("code" in b)
|
|
2062
2063
|
switch (b.code) {
|
|
@@ -2064,10 +2065,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2064
2065
|
case "MISSING_PROPERTIES":
|
|
2065
2066
|
return;
|
|
2066
2067
|
default: {
|
|
2067
|
-
let g =
|
|
2068
|
+
let g = f("error", {
|
|
2068
2069
|
capitalize: !0
|
|
2069
2070
|
});
|
|
2070
|
-
b.message && (g += `: ${
|
|
2071
|
+
b.message && (g += `: ${f(b.message)}`), g += ` (${f(b.code)})`, l.$actions.spawnToast({
|
|
2071
2072
|
text: g,
|
|
2072
2073
|
icon: "warning"
|
|
2073
2074
|
});
|
|
@@ -2075,28 +2076,28 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2075
2076
|
}
|
|
2076
2077
|
return;
|
|
2077
2078
|
}
|
|
2078
|
-
a("update:visible", !1), a("update:modelValue", _), a("insert", _),
|
|
2079
|
-
}, { t:
|
|
2079
|
+
a("update:visible", !1), a("update:modelValue", _), a("insert", _), u.$actions.clearItem();
|
|
2080
|
+
}, { t: f } = st(), m = () => {
|
|
2080
2081
|
l.$actions.ask({
|
|
2081
2082
|
action: () => {
|
|
2082
|
-
|
|
2083
|
+
u.$actions.clearItem(), u.validationErrors = {}, a("cancel");
|
|
2083
2084
|
},
|
|
2084
|
-
body:
|
|
2085
|
+
body: f("prompt.close_panel")
|
|
2085
2086
|
});
|
|
2086
2087
|
};
|
|
2087
|
-
return ae(() =>
|
|
2088
|
+
return ae(() => u.item._id, (b) => {
|
|
2088
2089
|
b === null && a("update:visible", !1);
|
|
2089
2090
|
}), (b, _) => {
|
|
2090
2091
|
const g = ee("clickable");
|
|
2091
2092
|
return n(), $(Oe, x({
|
|
2092
2093
|
modelValue: e.visible,
|
|
2093
|
-
loading: t(
|
|
2094
|
+
loading: t(u).loading.get,
|
|
2094
2095
|
float: e.float,
|
|
2095
2096
|
fixedRight: e.fixedRight
|
|
2096
2097
|
}, { onOverlayClick: m }), ie({
|
|
2097
2098
|
extra: y(() => [
|
|
2098
2099
|
e.individualActions ? (n(), $(Ve, x({ key: 0 }, {
|
|
2099
|
-
subject: t(
|
|
2100
|
+
subject: t(u).item,
|
|
2100
2101
|
actions: e.individualActions.filter(({ action: i }) => i !== "spawnEdit"),
|
|
2101
2102
|
overlayLayer: 60
|
|
2102
2103
|
}, {
|
|
@@ -2105,7 +2106,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2105
2106
|
default: y(({
|
|
2106
2107
|
visible: i
|
|
2107
2108
|
}) => [
|
|
2108
|
-
t(
|
|
2109
|
+
t(u).item._id ? Y((n(), $(H, {
|
|
2109
2110
|
key: 0,
|
|
2110
2111
|
reactive: "",
|
|
2111
2112
|
active: i,
|
|
@@ -2119,15 +2120,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2119
2120
|
]),
|
|
2120
2121
|
default: y(() => [
|
|
2121
2122
|
L(Me, x({
|
|
2122
|
-
modelValue: t(
|
|
2123
|
-
"onUpdate:modelValue": _[0] || (_[0] = (i) => t(
|
|
2123
|
+
modelValue: t(u).item,
|
|
2124
|
+
"onUpdate:modelValue": _[0] || (_[0] = (i) => t(u).item = i)
|
|
2124
2125
|
}, {
|
|
2125
2126
|
collection: t(c),
|
|
2126
2127
|
readOnly: e.readOnly,
|
|
2127
2128
|
includeId: e.includeId,
|
|
2128
2129
|
includeTimestamps: e.includeTimestamps,
|
|
2129
2130
|
form: p.value,
|
|
2130
|
-
layout: t(
|
|
2131
|
+
layout: t(u).description.formLayout || {}
|
|
2131
2132
|
}, {
|
|
2132
2133
|
focus: "",
|
|
2133
2134
|
onAdd: _[1] || (_[1] = (i) => i.preventDefault())
|
|
@@ -2158,18 +2159,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2158
2159
|
onClick: m
|
|
2159
2160
|
}, {
|
|
2160
2161
|
default: y(() => [
|
|
2161
|
-
D(V(t(
|
|
2162
|
+
D(V(t(f)("action.cancel", { capitalize: !0 })), 1)
|
|
2162
2163
|
]),
|
|
2163
2164
|
_: 1
|
|
2164
2165
|
})) : h("", !0),
|
|
2165
2166
|
L(le, {
|
|
2166
2167
|
large: "",
|
|
2167
|
-
disabled: !t(
|
|
2168
|
-
loading: t(
|
|
2168
|
+
disabled: !t(u).isInsertReady || t(u).loading.get,
|
|
2169
|
+
loading: t(u).loading.insert,
|
|
2169
2170
|
onClick: d
|
|
2170
2171
|
}, {
|
|
2171
2172
|
default: y(() => [
|
|
2172
|
-
D(V(t(
|
|
2173
|
+
D(V(t(f)("action.insert", { capitalize: !0 })), 1)
|
|
2173
2174
|
]),
|
|
2174
2175
|
_: 1
|
|
2175
2176
|
}, 8, ["disabled", "loading"])
|
|
@@ -2179,15 +2180,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2179
2180
|
]), 1040);
|
|
2180
2181
|
};
|
|
2181
2182
|
}
|
|
2182
|
-
}), Pe = (e,
|
|
2183
|
-
if (
|
|
2183
|
+
}), Pe = (e, r) => {
|
|
2184
|
+
if (r) {
|
|
2184
2185
|
if (!e) {
|
|
2185
|
-
|
|
2186
|
+
r.filtersPreset = {}, r.preferredTableProperties = [], r.pagination.offset = 0;
|
|
2186
2187
|
return;
|
|
2187
2188
|
}
|
|
2188
|
-
|
|
2189
|
+
r.filtersPreset = e.filters || {}, r.preferredTableProperties = e.table ? Array.from(e.table) : [], r.pagination.offset = 0;
|
|
2189
2190
|
}
|
|
2190
|
-
}, Aa = (e,
|
|
2191
|
+
}, Aa = (e, r = {
|
|
2191
2192
|
persistInQuery: !0
|
|
2192
2193
|
}) => {
|
|
2193
2194
|
const a = Ce().currentRoute;
|
|
@@ -2197,7 +2198,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2197
2198
|
const c = l || Object.keys(e.description.filtersPresets)[0];
|
|
2198
2199
|
Pe(e.description.filtersPresets[c], e);
|
|
2199
2200
|
}
|
|
2200
|
-
if (
|
|
2201
|
+
if (r.persistInQuery) {
|
|
2201
2202
|
const c = a.value.query;
|
|
2202
2203
|
c.offset && (e.pagination.offset = +c.offset), c.limit && (e.pagination.limit = +c.limit), c.search && (e.textQuery = c.search, e.filters.$text = {
|
|
2203
2204
|
$search: `"${c.search}"`,
|
|
@@ -2237,11 +2238,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2237
2238
|
layout: {}
|
|
2238
2239
|
},
|
|
2239
2240
|
emits: ["itemClick"],
|
|
2240
|
-
setup(e, { emit:
|
|
2241
|
-
const o = e, a =
|
|
2242
|
-
get: () =>
|
|
2243
|
-
set: (g) =>
|
|
2244
|
-
}), d = G(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0),
|
|
2241
|
+
setup(e, { emit: r }) {
|
|
2242
|
+
const o = e, a = r, l = Se(), c = o.collection || we(), u = c ? ne(typeof c == "string" ? c : c.value) : null, p = G({
|
|
2243
|
+
get: () => u?.selected,
|
|
2244
|
+
set: (g) => u?.$actions.selectManyItems(g, !0)
|
|
2245
|
+
}), d = G(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), f = (g, i) => g.button ? typeof g.button == "object" ? qe(i, g.button).satisfied : g.button : !1, m = (g) => {
|
|
2245
2246
|
const i = o.layout?.actions;
|
|
2246
2247
|
return !l.value.xl || !i || !o.actions ? [] : o.actions.filter((T) => {
|
|
2247
2248
|
if (T.roles) {
|
|
@@ -2250,7 +2251,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2250
2251
|
return !1;
|
|
2251
2252
|
}
|
|
2252
2253
|
const k = i[T.action];
|
|
2253
|
-
return k &&
|
|
2254
|
+
return k && f(k, g);
|
|
2254
2255
|
});
|
|
2255
2256
|
}, b = (g) => {
|
|
2256
2257
|
if (!o.actions)
|
|
@@ -2266,7 +2267,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2266
2267
|
return k ? k.if ? qe(
|
|
2267
2268
|
g,
|
|
2268
2269
|
k.if
|
|
2269
|
-
).satisfied : !
|
|
2270
|
+
).satisfied : !f(k, g) : !0;
|
|
2270
2271
|
});
|
|
2271
2272
|
}, _ = (g, i) => {
|
|
2272
2273
|
const T = [], k = o.layout?.actions?.[i.action];
|
|
@@ -2282,14 +2283,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2282
2283
|
C(g.$slots, "thead", {}, void 0, !0)
|
|
2283
2284
|
])) : (n(), s("thead", Sa, [
|
|
2284
2285
|
O("tr", null, [
|
|
2285
|
-
e.checkbox && t(
|
|
2286
|
+
e.checkbox && t(u) && t(l).md ? (n(), s("th", wa, [
|
|
2286
2287
|
O("input", {
|
|
2287
2288
|
type: "checkbox",
|
|
2288
|
-
checked: t(
|
|
2289
|
-
onChange: i[0] || (i[0] = (k) => t(
|
|
2289
|
+
checked: t(u).selected.length > 0 && t(u).selected.length === t(u).itemsCount,
|
|
2290
|
+
onChange: i[0] || (i[0] = (k) => t(u).$actions.selectAllItems(k.target.checked))
|
|
2290
2291
|
}, null, 40, Ta)
|
|
2291
2292
|
])) : h("", !0),
|
|
2292
|
-
(n(!0), s(
|
|
2293
|
+
(n(!0), s(W, null, z(Object.entries(e.columns), ([k, F], I) => (n(), s("th", {
|
|
2293
2294
|
key: `header-${I}`,
|
|
2294
2295
|
class: "table__header"
|
|
2295
2296
|
}, V(F.description || t(R)(k)), 1))), 128)),
|
|
@@ -2299,12 +2300,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2299
2300
|
g.$slots.tbody ? (n(), s("tbody", Ra, [
|
|
2300
2301
|
C(g.$slots, "tbody", {}, void 0, !0)
|
|
2301
2302
|
])) : (n(), s("tbody", qa, [
|
|
2302
|
-
(n(!0), s(
|
|
2303
|
+
(n(!0), s(W, null, z(e.rows, (k, F) => (n(), s("tr", {
|
|
2303
2304
|
key: k._id,
|
|
2304
2305
|
onClick: (I) => a("itemClick", k)
|
|
2305
2306
|
}, [
|
|
2306
|
-
t(
|
|
2307
|
-
|
|
2307
|
+
t(u) && e.checkbox && t(l).md ? (n(), s("td", xa, [
|
|
2308
|
+
Y(O("input", {
|
|
2308
2309
|
"onUpdate:modelValue": i[1] || (i[1] = (I) => p.value = I),
|
|
2309
2310
|
type: "checkbox",
|
|
2310
2311
|
value: k._id
|
|
@@ -2312,13 +2313,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2312
2313
|
[tt, p.value]
|
|
2313
2314
|
])
|
|
2314
2315
|
])) : h("", !0),
|
|
2315
|
-
(n(!0), s(
|
|
2316
|
+
(n(!0), s(W, null, z(Object.entries(e.columns), ([I, w], J) => (n(), s("td", {
|
|
2316
2317
|
key: `column-${k._id}-${J}`
|
|
2317
2318
|
}, [
|
|
2318
2319
|
O("div", za, V(w.description || t(R)(I)), 1),
|
|
2319
2320
|
`row-${I}` in g.$slots ? (n(), s("div", Ea, [
|
|
2320
2321
|
C(g.$slots, `row-${I}`, x({ ref_for: !0 }, {
|
|
2321
|
-
store: t(
|
|
2322
|
+
store: t(u),
|
|
2322
2323
|
column: I,
|
|
2323
2324
|
property: w,
|
|
2324
2325
|
row: k,
|
|
@@ -2371,16 +2372,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2371
2372
|
}, V(k[I].filename), 9, Ga)) : (n(), s("div", Wa, " - "))
|
|
2372
2373
|
])) : (n(), s("div", Ya, " - "))
|
|
2373
2374
|
])) : (n(), s("div", Ka, [
|
|
2374
|
-
t(
|
|
2375
|
+
t(u) ? (n(), s("span", Xa, V(t(u).$actions.formatValue({
|
|
2375
2376
|
value: k[I],
|
|
2376
2377
|
key: I,
|
|
2377
2378
|
property: w
|
|
2378
2379
|
})), 1)) : (n(), s("span", Ja, V(Array.isArray(k[I]) ? k[I].filter((N) => !!N).join(", ") : [void 0, null].includes(k[I]) ? "-" : k[I]), 1)),
|
|
2379
2380
|
t(se)(w)?.indexes?.length > 1 ? (n(), s("div", Za, [
|
|
2380
|
-
(n(!0), s(
|
|
2381
|
+
(n(!0), s(W, null, z(t(se)(w).indexes.slice(1, 2), (N, ue) => (n(), s("div", {
|
|
2381
2382
|
key: `subvalue-${ue}`,
|
|
2382
2383
|
class: "table__cell-subvalue"
|
|
2383
|
-
}, V(t(
|
|
2384
|
+
}, V(t(u).$actions.formatValue({
|
|
2384
2385
|
value: k[I],
|
|
2385
2386
|
key: I,
|
|
2386
2387
|
property: w,
|
|
@@ -2393,7 +2394,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2393
2394
|
]))), 128)),
|
|
2394
2395
|
e.actions?.length && t(l).md ? (n(), s("td", Pa, [
|
|
2395
2396
|
O("div", Na, [
|
|
2396
|
-
(n(!0), s(
|
|
2397
|
+
(n(!0), s(W, null, z(m(k), (I) => (n(), $(le, {
|
|
2397
2398
|
key: `action-${I.action}`,
|
|
2398
2399
|
small: "",
|
|
2399
2400
|
variant: "alt",
|
|
@@ -2416,7 +2417,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2416
2417
|
default: y(({
|
|
2417
2418
|
visible: I
|
|
2418
2419
|
}) => [
|
|
2419
|
-
|
|
2420
|
+
Y(L(H, {
|
|
2420
2421
|
reactive: "",
|
|
2421
2422
|
active: I,
|
|
2422
2423
|
icon: "dots-three"
|
|
@@ -2432,7 +2433,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2432
2433
|
class: "table__mobile-actions-grid",
|
|
2433
2434
|
style: ve(`grid-template-columns: repeat(${m(k).length + (b(k).length ? 1 : 0)}, 1fr);`)
|
|
2434
2435
|
}, [
|
|
2435
|
-
(n(!0), s(
|
|
2436
|
+
(n(!0), s(W, null, z(m(k), (I) => (n(), $(de, {
|
|
2436
2437
|
key: `action-${I.action}`,
|
|
2437
2438
|
class: "table__mobile-actions-button",
|
|
2438
2439
|
onClick: (w) => I.click(k)
|
|
@@ -2472,7 +2473,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2472
2473
|
], 8, La))), 128))
|
|
2473
2474
|
])),
|
|
2474
2475
|
O("tfoot", null, [
|
|
2475
|
-
g.$slots.tfoot ? C(g.$slots, "tfoot", { key: 0 }, void 0, !0) : e.columns && !e.rows?.length && !t(
|
|
2476
|
+
g.$slots.tfoot ? C(g.$slots, "tfoot", { key: 0 }, void 0, !0) : e.columns && !e.rows?.length && !t(u)?.loading.getAll ? (n(), s("tr", no, [
|
|
2476
2477
|
O("td", {
|
|
2477
2478
|
colspan: d.value + 1
|
|
2478
2479
|
}, [
|
|
@@ -2491,18 +2492,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2491
2492
|
componentProps: {}
|
|
2492
2493
|
},
|
|
2493
2494
|
setup(e) {
|
|
2494
|
-
const
|
|
2495
|
+
const r = e, o = Ae(), a = we(), l = G(() => {
|
|
2495
2496
|
const c = {
|
|
2496
2497
|
collection: a,
|
|
2497
2498
|
checkbox: o.hasSelectionActions,
|
|
2498
2499
|
columns: o.tableProperties,
|
|
2499
2500
|
rows: o.items,
|
|
2500
|
-
actions:
|
|
2501
|
+
actions: r.individualActions,
|
|
2501
2502
|
layout: o.tableLayout
|
|
2502
2503
|
};
|
|
2503
|
-
return Object.assign(c,
|
|
2504
|
+
return Object.assign(c, r.componentProps);
|
|
2504
2505
|
});
|
|
2505
|
-
return (c,
|
|
2506
|
+
return (c, u) => (n(), s("div", null, [
|
|
2506
2507
|
c.$slots.inner ? C(c.$slots, "inner", { key: 0 }) : h("", !0),
|
|
2507
2508
|
t(o).properties ? (n(), $(io, x({ key: 1 }, l.value, {
|
|
2508
2509
|
key: t(o).$id
|
|
@@ -2522,13 +2523,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2522
2523
|
list: { type: Boolean }
|
|
2523
2524
|
},
|
|
2524
2525
|
setup(e) {
|
|
2525
|
-
return (
|
|
2526
|
+
return (r, o) => (n(), s("div", {
|
|
2526
2527
|
class: U([
|
|
2527
2528
|
"grid",
|
|
2528
2529
|
{ "grid--list": e.list }
|
|
2529
2530
|
])
|
|
2530
2531
|
}, [
|
|
2531
|
-
C(
|
|
2532
|
+
C(r.$slots, "default", {}, void 0, !0)
|
|
2532
2533
|
], 2));
|
|
2533
2534
|
}
|
|
2534
2535
|
}), uo = /* @__PURE__ */ E(ro, [["__scopeId", "data-v-4839c834"]]), co = { key: 0 }, mo = {
|
|
@@ -2547,13 +2548,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2547
2548
|
},
|
|
2548
2549
|
setup(e) {
|
|
2549
2550
|
const o = e.layoutOptions, a = Ae(), l = (c) => Array.isArray(c) ? c[0] : c;
|
|
2550
|
-
return (c,
|
|
2551
|
+
return (c, u) => {
|
|
2551
2552
|
const p = ee("clickable");
|
|
2552
2553
|
return n(), $(uo, {
|
|
2553
2554
|
list: e.componentName === "list"
|
|
2554
2555
|
}, {
|
|
2555
2556
|
default: y(() => [
|
|
2556
|
-
(n(!0), s(
|
|
2557
|
+
(n(!0), s(W, null, z(t(a).items, (d) => (n(), $(zt, {
|
|
2557
2558
|
key: d._id,
|
|
2558
2559
|
inactive: !!(t(o).active && !d[t(o).active]),
|
|
2559
2560
|
horizontal: e.componentName === "list"
|
|
@@ -2561,9 +2562,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2561
2562
|
footer: y(() => [
|
|
2562
2563
|
t(o).title ? (n(), s("div", co, V(d[t(o).title]), 1)) : h("", !0),
|
|
2563
2564
|
Array.isArray(t(o).information) ? (n(), s("div", mo, [
|
|
2564
|
-
(n(!0), s(
|
|
2565
|
-
key: `info-${
|
|
2566
|
-
}, V(d[
|
|
2565
|
+
(n(!0), s(W, null, z(t(o).information, (f) => (n(), s("div", {
|
|
2566
|
+
key: `info-${f}`
|
|
2567
|
+
}, V(d[f]), 1))), 128))
|
|
2567
2568
|
])) : t(o).information ? (n(), s("div", po, V(d[t(o).information]), 1)) : h("", !0)
|
|
2568
2569
|
]),
|
|
2569
2570
|
actions: y(() => [
|
|
@@ -2575,11 +2576,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2575
2576
|
actions: e.individualActions
|
|
2576
2577
|
}), {
|
|
2577
2578
|
default: y(({
|
|
2578
|
-
visible:
|
|
2579
|
+
visible: f
|
|
2579
2580
|
}) => [
|
|
2580
|
-
|
|
2581
|
+
Y(L(H, {
|
|
2581
2582
|
reactive: "",
|
|
2582
|
-
active:
|
|
2583
|
+
active: f,
|
|
2583
2584
|
icon: "dots-three-vertical"
|
|
2584
2585
|
}, null, 8, ["active"]), [
|
|
2585
2586
|
[p]
|
|
@@ -2601,12 +2602,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2601
2602
|
t(o).badge && Array.isArray(d[t(o).badge]) ? {
|
|
2602
2603
|
name: "badge",
|
|
2603
2604
|
fn: y(() => [
|
|
2604
|
-
(n(!0), s(
|
|
2605
|
-
key: `${d._id}-${
|
|
2605
|
+
(n(!0), s(W, null, z(d[t(o).badge], (f) => (n(), $(he, {
|
|
2606
|
+
key: `${d._id}-${f}`,
|
|
2606
2607
|
large: ""
|
|
2607
2608
|
}, {
|
|
2608
2609
|
default: y(() => [
|
|
2609
|
-
D(V(t(o).translateBadge ? t(R)(
|
|
2610
|
+
D(V(t(o).translateBadge ? t(R)(f) : f), 1)
|
|
2610
2611
|
]),
|
|
2611
2612
|
_: 2
|
|
2612
2613
|
}, 1024))), 128))
|
|
@@ -2658,20 +2659,20 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2658
2659
|
noQueryPersistence: { type: Boolean }
|
|
2659
2660
|
},
|
|
2660
2661
|
emits: ["uiEvent"],
|
|
2661
|
-
setup(e, { emit:
|
|
2662
|
-
const o =
|
|
2662
|
+
setup(e, { emit: r }) {
|
|
2663
|
+
const o = K(!1), a = K(!1), l = K((...A) => null), c = K(), u = e, p = r, d = Ce(), f = ne("meta"), m = Se(), { reachedEnd: b, detach: _ } = He(null, {
|
|
2663
2664
|
antecipate: 600
|
|
2664
|
-
}), g = !m.value.md ||
|
|
2665
|
+
}), g = !m.value.md || u.scrollPagination;
|
|
2665
2666
|
g && ae(b, (A) => {
|
|
2666
2667
|
A && i.pagination.recordsTotal > i.items.length && F.value < Ke && (F.value += 1, w());
|
|
2667
2668
|
});
|
|
2668
|
-
const i = pt(
|
|
2669
|
+
const i = pt(u.collection);
|
|
2669
2670
|
Aa(i, {
|
|
2670
|
-
persistInQuery: !
|
|
2671
|
+
persistInQuery: !u.noQueryPersistence
|
|
2671
2672
|
});
|
|
2672
|
-
const T = De(), k =
|
|
2673
|
+
const T = De(), k = u.action ? t(u.action) : ft(i, d, T);
|
|
2673
2674
|
l.value = k[0], c.value = k[1];
|
|
2674
|
-
const F =
|
|
2675
|
+
const F = K(0), I = K(!1), w = async (A) => {
|
|
2675
2676
|
i.activeFilters = Object.assign({}, A?.filters || i.$filters), Object.assign(i.activeFilters, i.filtersPreset);
|
|
2676
2677
|
const j = {
|
|
2677
2678
|
filters: i.activeFilters,
|
|
@@ -2683,8 +2684,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2683
2684
|
const { error: Z, result: P } = await i.$actions.retrieveItems(j);
|
|
2684
2685
|
if (Z)
|
|
2685
2686
|
return;
|
|
2686
|
-
const { data:
|
|
2687
|
-
i.pagination.recordsCount = B.recordsCount, i.pagination.recordsTotal = B.recordsTotal, F.value === 0 && i.items.splice(0), i.items.push(...
|
|
2687
|
+
const { data: v, pagination: B } = P;
|
|
2688
|
+
i.pagination.recordsCount = B.recordsCount, i.pagination.recordsTotal = B.recordsTotal, F.value === 0 && i.items.splice(0), i.items.push(...v), i.loading.getAll = !1, I.value = !0;
|
|
2688
2689
|
}, J = async (A) => {
|
|
2689
2690
|
d.push(Be(d.currentRoute.value, {
|
|
2690
2691
|
query: {
|
|
@@ -2700,7 +2701,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2700
2701
|
if (j && j[0] === A[0] && j[1] === A[1])
|
|
2701
2702
|
return;
|
|
2702
2703
|
const Z = d.currentRoute.value;
|
|
2703
|
-
if (
|
|
2704
|
+
if (f.view.title = u.collection, !u.noFetch && (!Z.query._popstate || i.itemsCount === 0)) {
|
|
2704
2705
|
const P = vt(i, Z.query);
|
|
2705
2706
|
Object.keys(P).length > 0 && Object.assign(i.filters, P), await w();
|
|
2706
2707
|
}
|
|
@@ -2746,15 +2747,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2746
2747
|
i.$actions.setItem(j.params), o.value = "edit";
|
|
2747
2748
|
else if (j.name === "duplicate") {
|
|
2748
2749
|
await Z;
|
|
2749
|
-
const P = Object.entries(i.item).reduce((
|
|
2750
|
+
const P = Object.entries(i.item).reduce((v, [B, X]) => {
|
|
2750
2751
|
if (!(B in i.properties))
|
|
2751
2752
|
return {
|
|
2752
|
-
...
|
|
2753
|
-
[B]:
|
|
2753
|
+
...v,
|
|
2754
|
+
[B]: X
|
|
2754
2755
|
};
|
|
2755
2756
|
const te = i.properties[B];
|
|
2756
2757
|
if (te.readOnly)
|
|
2757
|
-
return
|
|
2758
|
+
return v;
|
|
2758
2759
|
const S = (q) => {
|
|
2759
2760
|
const Q = se(te);
|
|
2760
2761
|
if (!Q)
|
|
@@ -2767,9 +2768,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2767
2768
|
}
|
|
2768
2769
|
return q;
|
|
2769
2770
|
};
|
|
2770
|
-
return
|
|
2771
|
-
...
|
|
2772
|
-
[B]:
|
|
2771
|
+
return X = Array.isArray(X) ? X.map(S) : S(X), {
|
|
2772
|
+
...v,
|
|
2773
|
+
[B]: X
|
|
2773
2774
|
};
|
|
2774
2775
|
}, {
|
|
2775
2776
|
_id: void 0
|
|
@@ -2785,30 +2786,30 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2785
2786
|
A === !1 && i.$actions.clearItem();
|
|
2786
2787
|
});
|
|
2787
2788
|
const $e = G(() => {
|
|
2788
|
-
if (!
|
|
2789
|
+
if (!u.noActions)
|
|
2789
2790
|
return i.individualActions.map((A) => ({
|
|
2790
2791
|
click: l.value(A),
|
|
2791
2792
|
...A
|
|
2792
2793
|
}));
|
|
2793
2794
|
}), me = G(() => i.actions.filter((A) => !A.button));
|
|
2794
|
-
return fe(Te, G(() =>
|
|
2795
|
+
return fe(Te, G(() => u.collection)), (A, j) => {
|
|
2795
2796
|
const Z = ee("clickable"), P = ee("loading");
|
|
2796
|
-
return n(), s(
|
|
2797
|
+
return n(), s(W, null, [
|
|
2797
2798
|
a.value ? (n(), $(Ca, {
|
|
2798
2799
|
key: t(i).$id,
|
|
2799
2800
|
modelValue: a.value,
|
|
2800
|
-
"onUpdate:modelValue": j[0] || (j[0] = (
|
|
2801
|
+
"onUpdate:modelValue": j[0] || (j[0] = (v) => a.value = v)
|
|
2801
2802
|
}, null, 8, ["modelValue"])) : h("", !0),
|
|
2802
2803
|
o.value ? (n(), $(Oa, x({
|
|
2803
2804
|
key: 1,
|
|
2804
2805
|
visible: o.value,
|
|
2805
|
-
"onUpdate:visible": j[1] || (j[1] = (
|
|
2806
|
+
"onUpdate:visible": j[1] || (j[1] = (v) => o.value = v),
|
|
2806
2807
|
"fixed-right": ""
|
|
2807
2808
|
}, {
|
|
2808
2809
|
collection: e.collection,
|
|
2809
2810
|
individualActions: $e.value
|
|
2810
2811
|
}, {
|
|
2811
|
-
onCancel: j[2] || (j[2] = (
|
|
2812
|
+
onCancel: j[2] || (j[2] = (v) => o.value = !1)
|
|
2812
2813
|
}), ie({
|
|
2813
2814
|
header: y(() => [
|
|
2814
2815
|
O("span", null, V((() => {
|
|
@@ -2825,10 +2826,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2825
2826
|
]),
|
|
2826
2827
|
_: 2
|
|
2827
2828
|
}, [
|
|
2828
|
-
z(Object.keys(A.$slots).filter((
|
|
2829
|
-
name:
|
|
2829
|
+
z(Object.keys(A.$slots).filter((v) => v.startsWith("field-")), (v) => ({
|
|
2830
|
+
name: v,
|
|
2830
2831
|
fn: y((B) => [
|
|
2831
|
-
C(A.$slots,
|
|
2832
|
+
C(A.$slots, v, oe(be(B)), void 0, !0)
|
|
2832
2833
|
])
|
|
2833
2834
|
}))
|
|
2834
2835
|
]), 1040, ["visible"])) : h("", !0),
|
|
@@ -2836,7 +2837,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2836
2837
|
t(i).description.search ? (n(), s("div", ho, [
|
|
2837
2838
|
L(_e, x({
|
|
2838
2839
|
modelValue: t(i).textQuery,
|
|
2839
|
-
"onUpdate:modelValue": j[3] || (j[3] = (
|
|
2840
|
+
"onUpdate:modelValue": j[3] || (j[3] = (v) => t(i).textQuery = v)
|
|
2840
2841
|
}, {
|
|
2841
2842
|
property: {
|
|
2842
2843
|
type: "string",
|
|
@@ -2868,9 +2869,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2868
2869
|
Object.keys(t(i).description.filters || {}).length > 0 ? {
|
|
2869
2870
|
name: "filter",
|
|
2870
2871
|
fn: y(() => [
|
|
2871
|
-
|
|
2872
|
+
Y((n(), $(H, {
|
|
2872
2873
|
icon: "funnel",
|
|
2873
|
-
onClick: j[4] || (j[4] = (
|
|
2874
|
+
onClick: j[4] || (j[4] = (v) => a.value = !0)
|
|
2874
2875
|
}, {
|
|
2875
2876
|
default: y(() => [
|
|
2876
2877
|
D(V(t(R)("filters", { capitalize: !0 })), 1)
|
|
@@ -2893,9 +2894,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2893
2894
|
!e.noLayoutToggle && t(i).description.layout && t(i).description.layout?.name !== "tabular" ? {
|
|
2894
2895
|
name: "layout-toggle",
|
|
2895
2896
|
fn: y(() => [
|
|
2896
|
-
|
|
2897
|
+
Y((n(), $(H, {
|
|
2897
2898
|
icon: "table",
|
|
2898
|
-
onClick: j[5] || (j[5] = (
|
|
2899
|
+
onClick: j[5] || (j[5] = (v) => ce(t(i)))
|
|
2899
2900
|
}, {
|
|
2900
2901
|
default: y(() => [
|
|
2901
2902
|
D(V(t(R)("change_layout", { capitalize: !0 })), 1)
|
|
@@ -2907,17 +2908,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2907
2908
|
]),
|
|
2908
2909
|
key: "1"
|
|
2909
2910
|
} : void 0,
|
|
2910
|
-
z(me.value, (
|
|
2911
|
+
z(me.value, (v, B) => ({
|
|
2911
2912
|
name: `action-${B}`,
|
|
2912
2913
|
fn: y(() => [
|
|
2913
|
-
|
|
2914
|
+
v ? (n(), $(H, {
|
|
2914
2915
|
key: 0,
|
|
2915
|
-
icon:
|
|
2916
|
-
disabled: t(i).selected.length === 0 && "selection" in
|
|
2917
|
-
onClick: (
|
|
2916
|
+
icon: v.icon || "gear",
|
|
2917
|
+
disabled: t(i).selected.length === 0 && "selection" in v && v.selection,
|
|
2918
|
+
onClick: (X) => l.value(v)({ _id: t(i).selected.map((te) => typeof te == "string" || te._id) })
|
|
2918
2919
|
}, {
|
|
2919
2920
|
default: y(() => [
|
|
2920
|
-
D(V(t(R)(
|
|
2921
|
+
D(V(t(R)(v.label, { capitalize: !0 })), 1)
|
|
2921
2922
|
]),
|
|
2922
2923
|
_: 2
|
|
2923
2924
|
}, 1032, ["icon", "disabled", "onClick"])) : h("", !0)
|
|
@@ -2927,7 +2928,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2927
2928
|
key: 1,
|
|
2928
2929
|
variant: "alt",
|
|
2929
2930
|
icon: "funnel",
|
|
2930
|
-
onClick: j[6] || (j[6] = (
|
|
2931
|
+
onClick: j[6] || (j[6] = (v) => a.value = !0)
|
|
2931
2932
|
}, {
|
|
2932
2933
|
default: y(() => [
|
|
2933
2934
|
O("div", null, V(t(R)("Filters")), 1),
|
|
@@ -2940,21 +2941,21 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2940
2941
|
]),
|
|
2941
2942
|
_: 1
|
|
2942
2943
|
})) : h("", !0),
|
|
2943
|
-
(n(!0), s(
|
|
2944
|
+
(n(!0), s(W, null, z(t(i).actions.filter((v) => v.button), (v, B) => (n(), $(le, {
|
|
2944
2945
|
key: `action-${B}`,
|
|
2945
|
-
icon:
|
|
2946
|
-
disabled: t(i).selected.length === 0 && "selection" in
|
|
2947
|
-
onClick: (
|
|
2946
|
+
icon: v.icon,
|
|
2947
|
+
disabled: t(i).selected.length === 0 && "selection" in v && v.selection,
|
|
2948
|
+
onClick: (X) => l.value(v)({ _id: t(i).selected.map((te) => typeof te == "string" || te._id) })
|
|
2948
2949
|
}, {
|
|
2949
2950
|
default: y(() => [
|
|
2950
|
-
D(V(t(R)(
|
|
2951
|
+
D(V(t(R)(v.label, { capitalize: !0 })), 1)
|
|
2951
2952
|
]),
|
|
2952
2953
|
_: 2
|
|
2953
2954
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2954
2955
|
A.$slots.actions ? C(A.$slots, "actions", { key: 2 }, void 0, !0) : h("", !0)
|
|
2955
2956
|
])
|
|
2956
2957
|
])) : h("", !0),
|
|
2957
|
-
|
|
2958
|
+
Y((n(), s("div", $o, [
|
|
2958
2959
|
t(i).itemsCount === 0 && !t(i).loading.getAll && I.value && (t(N) || A.$slots.empty) ? (n(), s("div", go, [
|
|
2959
2960
|
t(N) ? (n(), $(pe(t(N)), oe(x({ key: 0 }, {
|
|
2960
2961
|
collection: t(i).$id
|
|
@@ -2963,7 +2964,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2963
2964
|
t(i).filtersCount === 0 && t(i).description.actions && "spawnAdd" in t(i).description.actions ? (n(), $(le, {
|
|
2964
2965
|
key: 0,
|
|
2965
2966
|
icon: "plus",
|
|
2966
|
-
onClick: j[7] || (j[7] = (
|
|
2967
|
+
onClick: j[7] || (j[7] = (v) => l.value({
|
|
2967
2968
|
action: "spawnAdd",
|
|
2968
2969
|
event: "spawnAdd"
|
|
2969
2970
|
})())
|
|
@@ -2987,10 +2988,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2987
2988
|
}, {
|
|
2988
2989
|
"component-name": e.layout?.name || t(i).$currentLayout
|
|
2989
2990
|
}), ie({ _: 2 }, [
|
|
2990
|
-
z(Object.keys(A.$slots).filter((
|
|
2991
|
-
name:
|
|
2991
|
+
z(Object.keys(A.$slots).filter((v) => v.startsWith("row-")), (v) => ({
|
|
2992
|
+
name: v,
|
|
2992
2993
|
fn: y((B) => [
|
|
2993
|
-
C(A.$slots,
|
|
2994
|
+
C(A.$slots, v, oe(be(B)), void 0, !0)
|
|
2994
2995
|
])
|
|
2995
2996
|
})),
|
|
2996
2997
|
A.$slots.tfoot ? {
|
|
@@ -3020,8 +3021,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3020
3021
|
options: {}
|
|
3021
3022
|
},
|
|
3022
3023
|
setup(e) {
|
|
3023
|
-
const
|
|
3024
|
-
|
|
3024
|
+
const r = ne("meta"), o = (a, l) => {
|
|
3025
|
+
r.$actions.fulfillPrompt(a, l);
|
|
3025
3026
|
};
|
|
3026
3027
|
return (a, l) => (n(), $(Oe, {
|
|
3027
3028
|
float: "",
|
|
@@ -3035,16 +3036,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3035
3036
|
class: "prompt__options",
|
|
3036
3037
|
style: ve(`grid-template-columns: repeat(${Object.keys(e.options).length}, 1fr)`)
|
|
3037
3038
|
}, [
|
|
3038
|
-
(n(!0), s(
|
|
3039
|
+
(n(!0), s(W, null, z(Object.entries(e.options), ([c, u], p) => (n(), $(de, {
|
|
3039
3040
|
key: `option-${p}`,
|
|
3040
3041
|
class: U([
|
|
3041
3042
|
"prompt__option",
|
|
3042
|
-
`prompt__option--${
|
|
3043
|
+
`prompt__option--${u.variant || "primary"}`
|
|
3043
3044
|
]),
|
|
3044
|
-
onClick: (d) =>
|
|
3045
|
+
onClick: (d) => u.click ? u.click(c, u) : o(c, u)
|
|
3045
3046
|
}, {
|
|
3046
3047
|
default: y(() => [
|
|
3047
|
-
D(V(
|
|
3048
|
+
D(V(u.title), 1)
|
|
3048
3049
|
]),
|
|
3049
3050
|
_: 2
|
|
3050
3051
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -3067,16 +3068,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3067
3068
|
icon: {}
|
|
3068
3069
|
},
|
|
3069
3070
|
setup(e) {
|
|
3070
|
-
const
|
|
3071
|
+
const r = ne("meta");
|
|
3071
3072
|
return (o, a) => {
|
|
3072
3073
|
const l = ee("clickable");
|
|
3073
|
-
return
|
|
3074
|
+
return Y((n(), s("div", {
|
|
3074
3075
|
class: U({
|
|
3075
3076
|
toast: !0,
|
|
3076
|
-
"toast--animate": t(
|
|
3077
|
+
"toast--animate": t(r).toasts[0].itr === e.itr
|
|
3077
3078
|
}),
|
|
3078
|
-
onAnimationend: a[0] || (a[0] = (c) => t(
|
|
3079
|
-
onClick: a[1] || (a[1] = (c) => t(
|
|
3079
|
+
onAnimationend: a[0] || (a[0] = (c) => t(r).$actions.popToast()),
|
|
3080
|
+
onClick: a[1] || (a[1] = (c) => t(r).$actions.popToast(e.itr))
|
|
3080
3081
|
}, [
|
|
3081
3082
|
L(H, x(
|
|
3082
3083
|
e.icon ? { icon: e.icon } : { icon: "warning-circle" },
|
|
@@ -3094,7 +3095,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3094
3095
|
}), wo = /* @__PURE__ */ E(So, [["__scopeId", "data-v-606d47bf"]]), To = ["innerHTML"], jo = ["innerHTML"], Ro = { class: "main__toasts" }, qo = ["innerHTML"], Lo = /* @__PURE__ */ M({
|
|
3095
3096
|
__name: "aeria-main",
|
|
3096
3097
|
setup(e) {
|
|
3097
|
-
const
|
|
3098
|
+
const r = ne("meta"), o = G(() => r.themeOverride || r.theme);
|
|
3098
3099
|
return (a, l) => {
|
|
3099
3100
|
const c = at("router-view");
|
|
3100
3101
|
return n(), s("main", {
|
|
@@ -3108,8 +3109,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3108
3109
|
(n(), $(ot, null, {
|
|
3109
3110
|
default: y(() => [
|
|
3110
3111
|
a.$slots.default ? C(a.$slots, "default", { key: 0 }, void 0, !0) : (n(), $(c, { key: 1 }, {
|
|
3111
|
-
default: y(({ Component:
|
|
3112
|
-
(n(), $(pe(
|
|
3112
|
+
default: y(({ Component: u }) => [
|
|
3113
|
+
(n(), $(pe(u), null, ie({ _: 2 }, [
|
|
3113
3114
|
z(Object.keys(a.$slots), (p) => ({
|
|
3114
3115
|
name: p,
|
|
3115
3116
|
fn: y(() => [
|
|
@@ -3124,39 +3125,39 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3124
3125
|
_: 3
|
|
3125
3126
|
})),
|
|
3126
3127
|
L(Oe, x({
|
|
3127
|
-
modelValue: t(
|
|
3128
|
-
"onUpdate:modelValue": l[0] || (l[0] = (
|
|
3128
|
+
modelValue: t(r).modal.visible,
|
|
3129
|
+
"onUpdate:modelValue": l[0] || (l[0] = (u) => t(r).modal.visible = u),
|
|
3129
3130
|
float: "",
|
|
3130
3131
|
"close-hint": ""
|
|
3131
|
-
}, t(
|
|
3132
|
+
}, t(r).modal, {
|
|
3132
3133
|
"overlay-layer": 70,
|
|
3133
|
-
onOverlayClick: l[1] || (l[1] = (
|
|
3134
|
+
onOverlayClick: l[1] || (l[1] = (u) => t(r).modal.visible = !1)
|
|
3134
3135
|
}), {
|
|
3135
3136
|
default: y(() => [
|
|
3136
|
-
t(
|
|
3137
|
+
t(r).modal.body ? (n(), s("div", {
|
|
3137
3138
|
key: 0,
|
|
3138
3139
|
style: { "white-space": "pre-wrap" },
|
|
3139
|
-
innerHTML: t(
|
|
3140
|
+
innerHTML: t(r).modal.body
|
|
3140
3141
|
}, null, 8, To)) : h("", !0),
|
|
3141
|
-
t(
|
|
3142
|
+
t(r).modal.component ? (n(), $(pe(t(r).modal.component), { key: 1 })) : h("", !0)
|
|
3142
3143
|
]),
|
|
3143
3144
|
_: 1
|
|
3144
3145
|
}, 16, ["modelValue"]),
|
|
3145
|
-
t(
|
|
3146
|
+
t(r).prompt.visible ? (n(), $(Ao, oe(x({ key: 0 }, t(r).prompt)), {
|
|
3146
3147
|
default: y(() => [
|
|
3147
3148
|
O("div", {
|
|
3148
|
-
innerHTML: t(
|
|
3149
|
+
innerHTML: t(r).prompt.body
|
|
3149
3150
|
}, null, 8, jo)
|
|
3150
3151
|
]),
|
|
3151
3152
|
_: 1
|
|
3152
3153
|
}, 16)) : h("", !0),
|
|
3153
3154
|
O("div", Ro, [
|
|
3154
|
-
(n(!0), s(
|
|
3155
|
-
key: `toast-${
|
|
3155
|
+
(n(!0), s(W, null, z(t(r).toasts, (u) => (n(), $(wo, x({ ref_for: !0 }, u, {
|
|
3156
|
+
key: `toast-${u.itr}`
|
|
3156
3157
|
}), {
|
|
3157
3158
|
default: y(() => [
|
|
3158
3159
|
O("div", {
|
|
3159
|
-
innerHTML: t(R)(
|
|
3160
|
+
innerHTML: t(R)(u.text)
|
|
3160
3161
|
}, null, 8, qo)
|
|
3161
3162
|
]),
|
|
3162
3163
|
_: 2
|
|
@@ -3166,9 +3167,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3166
3167
|
};
|
|
3167
3168
|
}
|
|
3168
3169
|
}), ul = /* @__PURE__ */ E(Lo, [["__scopeId", "data-v-19b147ab"]]), xo = {}, Mo = { class: "menu" };
|
|
3169
|
-
function zo(e,
|
|
3170
|
+
function zo(e, r) {
|
|
3170
3171
|
return n(), s("menu", Mo, [
|
|
3171
|
-
(n(!0), s(
|
|
3172
|
+
(n(!0), s(W, null, z(Object.keys(e.$slots), (o) => (n(), s("div", {
|
|
3172
3173
|
key: o,
|
|
3173
3174
|
class: "menu__entry"
|
|
3174
3175
|
}, [
|
|
@@ -3190,52 +3191,55 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3190
3191
|
props: {
|
|
3191
3192
|
query: {},
|
|
3192
3193
|
param: {},
|
|
3193
|
-
dropdown: { type: Boolean }
|
|
3194
|
+
dropdown: { type: Boolean },
|
|
3195
|
+
currentTab: { type: Function }
|
|
3194
3196
|
},
|
|
3195
3197
|
setup(e) {
|
|
3196
|
-
const
|
|
3197
|
-
if (
|
|
3198
|
-
|
|
3198
|
+
const r = e, o = lt(), a = Ce(), l = Se(), c = G(() => {
|
|
3199
|
+
if (r.currentTab)
|
|
3200
|
+
return r.currentTab();
|
|
3201
|
+
if (r.query) {
|
|
3202
|
+
const p = a.currentRoute.value.query[r.query];
|
|
3199
3203
|
if (p)
|
|
3200
3204
|
return p;
|
|
3201
|
-
} else if (
|
|
3202
|
-
const p = a.currentRoute.value.params[
|
|
3205
|
+
} else if (r.param) {
|
|
3206
|
+
const p = a.currentRoute.value.params[r.param];
|
|
3203
3207
|
if (p)
|
|
3204
3208
|
return p;
|
|
3205
3209
|
}
|
|
3206
3210
|
return Object.keys(o)[0];
|
|
3207
|
-
}),
|
|
3208
|
-
|
|
3211
|
+
}), u = (p) => {
|
|
3212
|
+
r.query && a.push(Be(a.currentRoute.value, {
|
|
3209
3213
|
query: {
|
|
3210
|
-
[
|
|
3214
|
+
[r.query]: p
|
|
3211
3215
|
}
|
|
3212
|
-
})),
|
|
3216
|
+
})), r.param && a.push(Be(a.currentRoute.value, {
|
|
3213
3217
|
params: {
|
|
3214
|
-
[
|
|
3218
|
+
[r.param]: p
|
|
3215
3219
|
}
|
|
3216
3220
|
}));
|
|
3217
3221
|
};
|
|
3218
3222
|
return (p, d) => {
|
|
3219
|
-
const
|
|
3223
|
+
const f = ee("clickable");
|
|
3220
3224
|
return n(), s("div", Eo, [
|
|
3221
3225
|
t(l).md && !e.dropdown ? (n(), s("div", Fo, [
|
|
3222
3226
|
p.$slots.default ? (n(), s("div", Uo, [
|
|
3223
3227
|
C(p.$slots, "default", {}, void 0, !0)
|
|
3224
3228
|
])) : h("", !0),
|
|
3225
|
-
(n(!0), s(
|
|
3229
|
+
(n(!0), s(W, null, z(Object.keys(p.$slots).filter((m) => m !== "default"), (m, b) => (n(), s("div", {
|
|
3226
3230
|
key: m,
|
|
3227
3231
|
class: U({
|
|
3228
3232
|
tabs__tab: !0,
|
|
3229
3233
|
"tabs__tab--current": m === c.value || !c.value && b === 0
|
|
3230
3234
|
}),
|
|
3231
|
-
onClick: (_) =>
|
|
3235
|
+
onClick: (_) => u(m)
|
|
3232
3236
|
}, [
|
|
3233
3237
|
C(p.$slots, m, {}, void 0, !0)
|
|
3234
3238
|
], 10, Ho))), 128))
|
|
3235
3239
|
])) : (n(), s("div", Do, [
|
|
3236
3240
|
L(Ve, null, ie({
|
|
3237
3241
|
default: y(({ visible: m }) => [
|
|
3238
|
-
|
|
3242
|
+
Y((n(), $(H, {
|
|
3239
3243
|
"icon-right": "",
|
|
3240
3244
|
active: m,
|
|
3241
3245
|
icon: "caret-down",
|
|
@@ -3247,7 +3251,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3247
3251
|
]),
|
|
3248
3252
|
_: 3
|
|
3249
3253
|
}, 8, ["active"])), [
|
|
3250
|
-
[
|
|
3254
|
+
[f]
|
|
3251
3255
|
])
|
|
3252
3256
|
]),
|
|
3253
3257
|
_: 2
|
|
@@ -3256,7 +3260,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3256
3260
|
name: m,
|
|
3257
3261
|
fn: y(() => [
|
|
3258
3262
|
O("div", {
|
|
3259
|
-
onClick: (b) =>
|
|
3263
|
+
onClick: (b) => u(m)
|
|
3260
3264
|
}, [
|
|
3261
3265
|
C(p.$slots, m, {}, void 0, !0)
|
|
3262
3266
|
], 8, Qo)
|
|
@@ -3267,16 +3271,16 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3267
3271
|
]);
|
|
3268
3272
|
};
|
|
3269
3273
|
}
|
|
3270
|
-
}), Wo = /* @__PURE__ */ E(Go, [["__scopeId", "data-v-
|
|
3274
|
+
}), Wo = /* @__PURE__ */ E(Go, [["__scopeId", "data-v-fb8920cf"]]), Yo = M({
|
|
3271
3275
|
props: {
|
|
3272
3276
|
initialValue: String,
|
|
3273
3277
|
promise: Promise
|
|
3274
3278
|
},
|
|
3275
3279
|
setup(e) {
|
|
3276
|
-
const
|
|
3280
|
+
const r = K(e.initialValue);
|
|
3277
3281
|
return e.promise instanceof Promise && e.promise.then((o) => {
|
|
3278
|
-
|
|
3279
|
-
}), () => it("div", String(
|
|
3282
|
+
r.value = o;
|
|
3283
|
+
}), () => it("div", String(r.value));
|
|
3280
3284
|
}
|
|
3281
3285
|
}), Ko = ["onClick"], Xo = { key: 1 }, Jo = /* @__PURE__ */ M({
|
|
3282
3286
|
__name: "aeria-crud-topbar",
|
|
@@ -3284,19 +3288,19 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3284
3288
|
collection: {}
|
|
3285
3289
|
},
|
|
3286
3290
|
setup(e) {
|
|
3287
|
-
const
|
|
3288
|
-
const { error:
|
|
3291
|
+
const r = e, a = Ce().currentRoute, l = De(), c = G(() => r.collection ? Ae(r.collection, l) : typeof a.value.meta.collection == "string" ? Ae(a.value.meta.collection, l) : typeof a.value.params.collection == "string" ? Ae(a.value.params.collection, l) : null), u = async (p, d) => {
|
|
3292
|
+
const { error: f, result: m } = await d.$functions[p.badgeFunction]({
|
|
3289
3293
|
filters: p.filters
|
|
3290
3294
|
});
|
|
3291
|
-
return
|
|
3295
|
+
return f ? 0 : m;
|
|
3292
3296
|
};
|
|
3293
3297
|
return (p, d) => c.value && c.value.description.filtersPresets ? (n(), $(Wo, {
|
|
3294
3298
|
key: 0,
|
|
3295
3299
|
dropdown: "",
|
|
3296
3300
|
query: "section"
|
|
3297
3301
|
}, ie({ _: 2 }, [
|
|
3298
|
-
z(Object.entries(c.value.description.filtersPresets), ([
|
|
3299
|
-
name:
|
|
3302
|
+
z(Object.entries(c.value.description.filtersPresets), ([f, m]) => ({
|
|
3303
|
+
name: f,
|
|
3300
3304
|
fn: y(() => [
|
|
3301
3305
|
O("div", {
|
|
3302
3306
|
class: "topbar__preset",
|
|
@@ -3307,15 +3311,15 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3307
3311
|
icon: m.icon
|
|
3308
3312
|
}, {
|
|
3309
3313
|
default: y(() => [
|
|
3310
|
-
D(V(m.label || t(R)(
|
|
3314
|
+
D(V(m.label || t(R)(f, { plural: !0 })), 1)
|
|
3311
3315
|
]),
|
|
3312
3316
|
_: 2
|
|
3313
|
-
}, 1032, ["icon"])) : (n(), s("div", Xo, V(m.label || t(R)(
|
|
3317
|
+
}, 1032, ["icon"])) : (n(), s("div", Xo, V(m.label || t(R)(f, { plural: !0 })), 1)),
|
|
3314
3318
|
m.badgeFunction ? (n(), $(he, { key: 2 }, {
|
|
3315
3319
|
default: y(() => [
|
|
3316
3320
|
L(t(Yo), {
|
|
3317
3321
|
"initial-value": "0",
|
|
3318
|
-
promise:
|
|
3322
|
+
promise: u(m, c.value)
|
|
3319
3323
|
}, null, 8, ["promise"])
|
|
3320
3324
|
]),
|
|
3321
3325
|
_: 2
|
|
@@ -3335,11 +3339,11 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3335
3339
|
},
|
|
3336
3340
|
emits: ["update:modelValue"],
|
|
3337
3341
|
setup(e) {
|
|
3338
|
-
const
|
|
3342
|
+
const r = e;
|
|
3339
3343
|
fe(Te, null);
|
|
3340
3344
|
const o = yt(), a = G(() => o(
|
|
3341
|
-
|
|
3342
|
-
|
|
3345
|
+
r.modelValue.password,
|
|
3346
|
+
r.modelValue.confirmation
|
|
3343
3347
|
));
|
|
3344
3348
|
return (l, c) => (n(), $(Me, {
|
|
3345
3349
|
form: {
|
|
@@ -3355,7 +3359,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3355
3359
|
}
|
|
3356
3360
|
},
|
|
3357
3361
|
"model-value": e.modelValue,
|
|
3358
|
-
"onUpdate:modelValue": c[0] || (c[0] = (
|
|
3362
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => l.$emit("update:modelValue", u))
|
|
3359
3363
|
}, {
|
|
3360
3364
|
after: y(() => [
|
|
3361
3365
|
O("div", null, V(a.value || "Senhas conferem"), 1),
|
|
@@ -3364,11 +3368,11 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3364
3368
|
_: 3
|
|
3365
3369
|
}, 8, ["model-value"]));
|
|
3366
3370
|
}
|
|
3367
|
-
}), ml = (e,
|
|
3371
|
+
}), ml = (e, r = []) => ({
|
|
3368
3372
|
path: "/user",
|
|
3369
3373
|
name: "/builtin:user",
|
|
3370
3374
|
component: e,
|
|
3371
|
-
children:
|
|
3375
|
+
children: r.concat([
|
|
3372
3376
|
{
|
|
3373
3377
|
path: "invite/:id",
|
|
3374
3378
|
name: "/user/invite/:id",
|
|
@@ -3382,7 +3386,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3382
3386
|
{
|
|
3383
3387
|
path: "signin",
|
|
3384
3388
|
name: "/user/signin",
|
|
3385
|
-
component: () => import("./signin-
|
|
3389
|
+
component: () => import("./signin-DH9qCDxu.js"),
|
|
3386
3390
|
meta: {
|
|
3387
3391
|
title: "Sign in"
|
|
3388
3392
|
}
|
|
@@ -3390,7 +3394,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3390
3394
|
{
|
|
3391
3395
|
path: "signup",
|
|
3392
3396
|
name: "/user/signup",
|
|
3393
|
-
component: () => import("./signup-
|
|
3397
|
+
component: () => import("./signup-nPGf9ydg.js"),
|
|
3394
3398
|
meta: {
|
|
3395
3399
|
title: "Sign up"
|
|
3396
3400
|
}
|
|
@@ -3398,7 +3402,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3398
3402
|
{
|
|
3399
3403
|
path: "redefine-password",
|
|
3400
3404
|
name: "/user/redefine-password",
|
|
3401
|
-
component: () => import("./redefine-password-
|
|
3405
|
+
component: () => import("./redefine-password-D56RgpPt.js"),
|
|
3402
3406
|
meta: {
|
|
3403
3407
|
title: "Redefine password"
|
|
3404
3408
|
}
|
|
@@ -3406,13 +3410,13 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3406
3410
|
{
|
|
3407
3411
|
path: "activation",
|
|
3408
3412
|
name: "/user/activation",
|
|
3409
|
-
component: () => import("./activation-
|
|
3413
|
+
component: () => import("./activation-srNROdzY.js"),
|
|
3410
3414
|
meta: {
|
|
3411
3415
|
title: "Activate user"
|
|
3412
3416
|
}
|
|
3413
3417
|
}
|
|
3414
3418
|
])
|
|
3415
|
-
}), pl = (e,
|
|
3419
|
+
}), pl = (e, r = []) => ({
|
|
3416
3420
|
path: "/dashboard",
|
|
3417
3421
|
name: "/builtin:dashboard",
|
|
3418
3422
|
component: e,
|
|
@@ -3422,13 +3426,13 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3422
3426
|
meta: {
|
|
3423
3427
|
title: "Dashboard"
|
|
3424
3428
|
},
|
|
3425
|
-
children:
|
|
3429
|
+
children: r.concat([
|
|
3426
3430
|
{
|
|
3427
3431
|
path: "c/:collection",
|
|
3428
3432
|
name: "/dashboard/:collection",
|
|
3429
3433
|
props: !0,
|
|
3430
3434
|
components: {
|
|
3431
|
-
default: () => import("./index-
|
|
3435
|
+
default: () => import("./index-Btoxwrn1.js"),
|
|
3432
3436
|
topbar: () => Promise.resolve().then(() => Po)
|
|
3433
3437
|
},
|
|
3434
3438
|
meta: {
|
|
@@ -3442,7 +3446,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3442
3446
|
name: "/dashboard/:collection/:id",
|
|
3443
3447
|
props: !0,
|
|
3444
3448
|
components: {
|
|
3445
|
-
default: () => import("./_id_-
|
|
3449
|
+
default: () => import("./_id_-BO-vt1sw.js")
|
|
3446
3450
|
},
|
|
3447
3451
|
meta: {
|
|
3448
3452
|
title: ({ collectionName: o, t: a }) => a(o, {
|
|
@@ -3462,7 +3466,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3462
3466
|
children: [
|
|
3463
3467
|
{
|
|
3464
3468
|
path: "profile",
|
|
3465
|
-
component: () => import("./index-
|
|
3469
|
+
component: () => import("./index-DMX5v03Z.js"),
|
|
3466
3470
|
meta: {
|
|
3467
3471
|
title: "User profile",
|
|
3468
3472
|
icon: "user-square"
|
|
@@ -3471,7 +3475,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3471
3475
|
{
|
|
3472
3476
|
path: "changepass",
|
|
3473
3477
|
name: "/dashboard/user/changepass",
|
|
3474
|
-
component: () => import("./index-
|
|
3478
|
+
component: () => import("./index-Dzbg_524.js"),
|
|
3475
3479
|
meta: {
|
|
3476
3480
|
title: "Change password",
|
|
3477
3481
|
icon: "lock"
|