@aeria-ui/ui 0.0.205 → 0.0.207
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_-DYaLEoj1.js → _id_-1SbaGrdM.js} +1 -1
- package/dist/{activation-DWnv4YYM.js → activation-7SslzLP5.js} +1 -1
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +2 -1
- package/dist/{index-CVB9yudm.js → index-BQDMBiX5.js} +307 -307
- package/dist/{index-Ca0UCFPf.js → index-CeZ1Y1LN.js} +1 -1
- package/dist/{index-BpLcvVdU.js → index-D3fxLWDD.js} +1 -1
- package/dist/{index-D8Jk3vxU.js → index-DZLVdsTE.js} +1 -1
- package/dist/{redefine-password-qAgn9kbE.js → redefine-password-CJAyfalJ.js} +1 -1
- package/dist/{signin-Gx25b2IX.js → signin-B75Qkv31.js} +1 -1
- package/dist/{signup-DadDQtJQ.js → signup-r_Cg8wlh.js} +1 -1
- package/dist/ui.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -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,25 +17,25 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
17
17
|
headers: {}
|
|
18
18
|
},
|
|
19
19
|
setup(e) {
|
|
20
|
-
const u =
|
|
20
|
+
const u = 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", {
|
|
24
|
-
class:
|
|
24
|
+
class: U({
|
|
25
25
|
accordion: !0,
|
|
26
26
|
"accordion--padded": !e.noPadding
|
|
27
27
|
})
|
|
28
28
|
}, [
|
|
29
|
-
(n(!0), s(
|
|
29
|
+
(n(!0), s(W, null, z(Object.keys(a.$slots).filter((r) => r !== "default"), (r, p) => (n(), s("div", {
|
|
30
30
|
key: r,
|
|
31
31
|
class: "accordion__slot"
|
|
32
32
|
}, [
|
|
33
|
-
|
|
33
|
+
Y((n(), s("div", {
|
|
34
34
|
class: "accordion__header",
|
|
35
35
|
onClick: (d) => u.value === r ? u.value = null : u.value = r
|
|
36
36
|
}, [
|
|
37
37
|
e.enumerate ? (n(), s("span", kt, V(p + 1) + ". ", 1)) : h("", !0),
|
|
38
|
-
|
|
38
|
+
D(" " + V(e.headers[r] ? o(e.headers[r]) : t(R)(r)), 1)
|
|
39
39
|
], 8, gt)), [
|
|
40
40
|
[c]
|
|
41
41
|
]),
|
|
@@ -59,7 +59,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
59
59
|
},
|
|
60
60
|
setup(e) {
|
|
61
61
|
return (u, o) => (n(), s("div", {
|
|
62
|
-
class:
|
|
62
|
+
class: U([
|
|
63
63
|
"badge",
|
|
64
64
|
{ "badge--large": e.large },
|
|
65
65
|
{ "badge--alt": e.alt }
|
|
@@ -81,7 +81,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
81
81
|
};
|
|
82
82
|
return (c, r) => e.dummy ? (n(), s("button", {
|
|
83
83
|
key: 0,
|
|
84
|
-
class:
|
|
84
|
+
class: U([
|
|
85
85
|
"barebutton",
|
|
86
86
|
`barebutton--${e.disabled ? "disabled" : "enabled"}`
|
|
87
87
|
])
|
|
@@ -89,7 +89,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
89
89
|
C(c.$slots, "default", {}, void 0, !0)
|
|
90
90
|
], 2)) : (n(), s("button", {
|
|
91
91
|
key: 1,
|
|
92
|
-
class:
|
|
92
|
+
class: U([
|
|
93
93
|
"barebutton",
|
|
94
94
|
`barebutton--${e.disabled ? "disabled" : "enabled"}`
|
|
95
95
|
]),
|
|
@@ -114,7 +114,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
114
114
|
setup(e) {
|
|
115
115
|
const u = e, o = re(rt, {}), a = typeof u.reactive == "boolean" ? u.reactive : re("iconReactive", !1), l = G(() => u.icon?.includes(":") ? u.icon : `regular:${u.icon}`);
|
|
116
116
|
return (c, r) => (n(), s("a", {
|
|
117
|
-
class:
|
|
117
|
+
class: U([
|
|
118
118
|
"icon",
|
|
119
119
|
{ "icon--reactive": t(a) },
|
|
120
120
|
{ "icon--active": e.active },
|
|
@@ -122,7 +122,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
122
122
|
])
|
|
123
123
|
}, [
|
|
124
124
|
O("div", {
|
|
125
|
-
class:
|
|
125
|
+
class: U([
|
|
126
126
|
"icon__icon",
|
|
127
127
|
{ "icon__icon--right": e.iconRight }
|
|
128
128
|
])
|
|
@@ -145,7 +145,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
145
145
|
])) : h("", !0)
|
|
146
146
|
], 2));
|
|
147
147
|
}
|
|
148
|
-
}),
|
|
148
|
+
}), H = /* @__PURE__ */ E(St, [["__scopeId", "data-v-263a2782"]]), wt = {
|
|
149
149
|
key: 1,
|
|
150
150
|
class: "button__content"
|
|
151
151
|
}, Tt = /* @__PURE__ */ M({
|
|
@@ -171,7 +171,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
171
171
|
return re("buttonSize", u.size) || "medium";
|
|
172
172
|
})();
|
|
173
173
|
return (l, c) => (n(), $(de, {
|
|
174
|
-
class:
|
|
174
|
+
class: U([
|
|
175
175
|
"button",
|
|
176
176
|
`button--${t(o)}`,
|
|
177
177
|
`button--${t(a)}`,
|
|
@@ -181,7 +181,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
181
181
|
disabled: e.disabled || e.loading
|
|
182
182
|
}, {
|
|
183
183
|
default: y(() => [
|
|
184
|
-
e.icon ? (n(), $(
|
|
184
|
+
e.icon ? (n(), $(H, {
|
|
185
185
|
key: 0,
|
|
186
186
|
icon: e.icon,
|
|
187
187
|
class: "button__content"
|
|
@@ -205,7 +205,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
205
205
|
},
|
|
206
206
|
setup(e) {
|
|
207
207
|
return (u, o) => (n(), s("div", {
|
|
208
|
-
class:
|
|
208
|
+
class: U([
|
|
209
209
|
"card",
|
|
210
210
|
{ "card--inactive": e.inactive },
|
|
211
211
|
{ "card--horizontal": e.horizontal }
|
|
@@ -258,18 +258,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
258
258
|
},
|
|
259
259
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
260
260
|
setup(e, { emit: u }) {
|
|
261
|
-
const o = e, a = u, l =
|
|
261
|
+
const o = e, a = u, l = K(o.collapsed), c = K(null), { reachedEnd: r } = 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
|
-
class:
|
|
272
|
+
class: U([
|
|
273
273
|
"panel",
|
|
274
274
|
{ "panel--fixed": e.fixedRight }
|
|
275
275
|
])
|
|
@@ -278,7 +278,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
278
278
|
e.float || e.fixedRight ? "dialog" : "div"
|
|
279
279
|
), {
|
|
280
280
|
"data-component": "panel",
|
|
281
|
-
class:
|
|
281
|
+
class: U([
|
|
282
282
|
"aeria-surface",
|
|
283
283
|
"panel__content",
|
|
284
284
|
{ "panel__content--float": e.float },
|
|
@@ -293,7 +293,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
293
293
|
default: y(() => [
|
|
294
294
|
m.$slots.header || e.title ? (n(), s("div", {
|
|
295
295
|
key: 0,
|
|
296
|
-
class:
|
|
296
|
+
class: U([
|
|
297
297
|
"panel__header",
|
|
298
298
|
{ "panel__header--collapsed": l.value },
|
|
299
299
|
{ "panel__header--outer": e.outerHeader }
|
|
@@ -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,12 +328,12 @@ 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,
|
|
335
335
|
tabindex: "0",
|
|
336
|
-
class:
|
|
336
|
+
class: U([
|
|
337
337
|
"panel__body",
|
|
338
338
|
{ "panel__body--padded": !e.fill }
|
|
339
339
|
])
|
|
@@ -344,7 +344,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
344
344
|
]),
|
|
345
345
|
m.$slots.footer ? (n(), s("div", {
|
|
346
346
|
key: 2,
|
|
347
|
-
class:
|
|
347
|
+
class: U([
|
|
348
348
|
"panel__footer",
|
|
349
349
|
{ "panel__footer--padded": !e.fillFooter },
|
|
350
350
|
{ "panel__footer--shadowed": !t(r) }
|
|
@@ -381,14 +381,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
381
381
|
v4078ef85: p.value.x,
|
|
382
382
|
v4078ef86: p.value.y
|
|
383
383
|
}));
|
|
384
|
-
const o = u, a =
|
|
385
|
-
if (
|
|
384
|
+
const o = u, 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
|
-
}), r = (d,
|
|
391
|
-
const m =
|
|
390
|
+
}), r = (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,19 +459,19 @@ 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
467
|
onClick: (g) => r(b, e.subject)
|
|
468
468
|
}, {
|
|
469
469
|
default: y(() => [
|
|
470
|
-
L(
|
|
470
|
+
L(H, {
|
|
471
471
|
icon: b.icon || "gear"
|
|
472
472
|
}, {
|
|
473
473
|
default: y(() => [
|
|
474
|
-
|
|
474
|
+
D(V(b.translate ? t(R)(b.label, { capitalize: !0 }) : b.label), 1)
|
|
475
475
|
]),
|
|
476
476
|
_: 2
|
|
477
477
|
}, 1032, ["icon"])
|
|
@@ -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,7 +514,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
514
514
|
where: { default: "top" }
|
|
515
515
|
},
|
|
516
516
|
setup(e) {
|
|
517
|
-
const u = Se(), o =
|
|
517
|
+
const u = Se(), o = K(!1);
|
|
518
518
|
return (a, l) => t(u).md ? (n(), s("div", {
|
|
519
519
|
key: 0,
|
|
520
520
|
class: "info",
|
|
@@ -522,7 +522,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
522
522
|
}, [
|
|
523
523
|
o.value ? (n(), s("div", {
|
|
524
524
|
key: 0,
|
|
525
|
-
class:
|
|
525
|
+
class: U([
|
|
526
526
|
"info__bubble",
|
|
527
527
|
`info__bubble--${e.where}`
|
|
528
528
|
])
|
|
@@ -561,8 +561,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
561
561
|
},
|
|
562
562
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
563
563
|
setup(e, { emit: u }) {
|
|
564
|
-
const o = e, a = u, l = o.property || {}, c = l.icon || "inputType" in l && l.inputType === "search", r = re("searchOnly", !1), p = re("innerInputLabel", !1), d = !r && (o.readOnly || l.readOnly),
|
|
565
|
-
await navigator.clipboard.writeText(w), a("clipboardCopy", w),
|
|
564
|
+
const o = e, a = u, l = o.property || {}, c = l.icon || "inputType" in l && l.inputType === "search", r = re("searchOnly", !1), p = re("innerInputLabel", !1), d = !r && (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,
|
|
@@ -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)
|
|
@@ -661,17 +661,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
661
661
|
])) : h("", !0),
|
|
662
662
|
"element" in t(l) && t(l).element === "textarea" ? (n(), s("div", {
|
|
663
663
|
key: 2,
|
|
664
|
-
class:
|
|
664
|
+
class: U([
|
|
665
665
|
"input__container",
|
|
666
666
|
"input__container--textarea",
|
|
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,
|
|
674
|
-
class:
|
|
674
|
+
class: U([
|
|
675
675
|
"input__textarea",
|
|
676
676
|
`input__input--${t(b)}`
|
|
677
677
|
]),
|
|
@@ -681,12 +681,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
681
681
|
])
|
|
682
682
|
], 2)) : (n(), s("div", {
|
|
683
683
|
key: 3,
|
|
684
|
-
class:
|
|
684
|
+
class: U([
|
|
685
685
|
"input__container",
|
|
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: [
|
|
@@ -700,10 +700,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
700
700
|
}), null, 16, en), [
|
|
701
701
|
[N, t(l).focus]
|
|
702
702
|
]),
|
|
703
|
-
t(c) ? (n(), $(
|
|
703
|
+
t(c) ? (n(), $(H, {
|
|
704
704
|
key: 0,
|
|
705
705
|
icon: t(l).icon || "magnifying-glass",
|
|
706
|
-
class:
|
|
706
|
+
class: U([
|
|
707
707
|
"input__icon",
|
|
708
708
|
`input__icon--${t(b)}`
|
|
709
709
|
])
|
|
@@ -711,14 +711,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
711
711
|
t(d) ? (n(), s("div", tn, [
|
|
712
712
|
L(Xt, null, {
|
|
713
713
|
text: y(() => [...J[2] || (J[2] = [
|
|
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",
|
|
@@ -753,11 +753,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
753
753
|
},
|
|
754
754
|
emits: ["update:modelValue", "change"],
|
|
755
755
|
setup(e, { emit: u }) {
|
|
756
|
-
const o = e, a = u, l =
|
|
756
|
+
const o = e, a = u, l = K(null), c = o.property, r = (m) => {
|
|
757
757
|
a("update:modelValue", m), a("change", m);
|
|
758
758
|
}, p = (m) => {
|
|
759
759
|
m === "" || m === null ? r(null) : o.booleanRef ? r(m === "true") : r(m);
|
|
760
|
-
}, d = (m) => Array.isArray(o.modelValue) ? o.modelValue.includes(m) : o.modelValue === 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,24 +773,24 @@ 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))
|
|
787
787
|
}), [
|
|
788
|
-
t(c) && t(c).icon ? (n(), $(
|
|
788
|
+
t(c) && t(c).icon ? (n(), $(H, {
|
|
789
789
|
key: 0,
|
|
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(_)
|
|
@@ -819,7 +819,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
819
819
|
set: (d) => {
|
|
820
820
|
o.pagination.limit = Number(d);
|
|
821
821
|
}
|
|
822
|
-
}), r =
|
|
822
|
+
}), r = 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
|
|
@@ -828,47 +828,47 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
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
|
-
L(
|
|
838
|
+
L(H, { icon: "caret-double-left" })
|
|
839
839
|
]),
|
|
840
840
|
_: 1
|
|
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
|
-
L(
|
|
847
|
+
L(H, { icon: "caret-left" })
|
|
848
848
|
]),
|
|
849
849
|
_: 1
|
|
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
|
-
L(
|
|
856
|
+
L(H, { icon: "caret-right" })
|
|
857
857
|
]),
|
|
858
858
|
_: 1
|
|
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
|
-
L(
|
|
865
|
+
L(H, { icon: "caret-double-right" })
|
|
866
866
|
]),
|
|
867
867
|
_: 1
|
|
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))
|
|
@@ -885,17 +885,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
885
885
|
}, 8, ["modelValue"])
|
|
886
886
|
]),
|
|
887
887
|
e.noSummary ? h("", !0) : (n(), s("div", cn, [
|
|
888
|
-
|
|
888
|
+
D(V(t(R)("Page")) + " ", 1),
|
|
889
889
|
(n(), $(_e, {
|
|
890
890
|
key: l.value,
|
|
891
891
|
modelValue: r.value,
|
|
892
|
-
"onUpdate:modelValue":
|
|
892
|
+
"onUpdate:modelValue": f[5] || (f[5] = (m) => r.value = m),
|
|
893
893
|
property: {
|
|
894
894
|
type: "number",
|
|
895
895
|
minimum: 1
|
|
896
896
|
},
|
|
897
897
|
style: { height: "100%" },
|
|
898
|
-
onChange:
|
|
898
|
+
onChange: f[6] || (f[6] = (m) => {
|
|
899
899
|
l.value = r.value === 0 ? 0 : r.value - 1;
|
|
900
900
|
})
|
|
901
901
|
}, null, 8, ["modelValue"])),
|
|
@@ -958,18 +958,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
958
958
|
r("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
|
|
967
|
-
class:
|
|
966
|
+
return Y((n(), s("label", {
|
|
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
|
]),
|
|
@@ -1032,12 +1032,12 @@ 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
|
}, {
|
|
@@ -1067,10 +1067,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
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
|
-
|
|
1073
|
-
class:
|
|
1072
|
+
Y((n(), s("a", {
|
|
1073
|
+
class: U([
|
|
1074
1074
|
"switch",
|
|
1075
1075
|
{ "switch--active": e.modelValue },
|
|
1076
1076
|
{ "switch--readOnly": t(c) }
|
|
@@ -1079,13 +1079,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1079
1079
|
}, [
|
|
1080
1080
|
d[0] || (d[0] = O("div", { class: "switch__slider" }, null, -1)),
|
|
1081
1081
|
O("div", {
|
|
1082
|
-
class:
|
|
1082
|
+
class: U([
|
|
1083
1083
|
"switch__dummy",
|
|
1084
1084
|
{ "switch__dummy--flex": !e.modelValue }
|
|
1085
1085
|
])
|
|
1086
1086
|
}, null, 2)
|
|
1087
1087
|
], 2)), [
|
|
1088
|
-
[
|
|
1088
|
+
[f, {
|
|
1089
1089
|
blocked: t(c)
|
|
1090
1090
|
}]
|
|
1091
1091
|
]),
|
|
@@ -1111,7 +1111,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1111
1111
|
height: { default: "100%" }
|
|
1112
1112
|
},
|
|
1113
1113
|
setup(e) {
|
|
1114
|
-
const u = e, o = G(() => u.fileId ? `${Je}/file/${u.fileId}/picture` : u.url || u.modelValue), a =
|
|
1114
|
+
const u = e, o = G(() => u.fileId ? `${Je}/file/${u.fileId}/picture` : u.url || u.modelValue), a = K(!1);
|
|
1115
1115
|
return (l, c) => {
|
|
1116
1116
|
const r = ee("overlay");
|
|
1117
1117
|
return n(), s("figure", Bn, [
|
|
@@ -1119,7 +1119,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
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,
|
|
@@ -1142,7 +1142,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1142
1142
|
o.value ? (n(), s("img", {
|
|
1143
1143
|
key: 1,
|
|
1144
1144
|
src: o.value,
|
|
1145
|
-
class:
|
|
1145
|
+
class: U([
|
|
1146
1146
|
"picture__image",
|
|
1147
1147
|
{ "picture__image--bordered": e.bordered },
|
|
1148
1148
|
{ "picture__image--expandable": e.expandable }
|
|
@@ -1157,7 +1157,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1157
1157
|
})
|
|
1158
1158
|
}, null, 14, jn)) : l.$slots.fallback ? C(l.$slots, "fallback", { key: 2 }, void 0, !0) : l.$slots.default ? C(l.$slots, "default", { key: 3 }, void 0, !0) : (n(), s("svg", {
|
|
1159
1159
|
key: 4,
|
|
1160
|
-
class:
|
|
1160
|
+
class: U(["picture__background", [
|
|
1161
1161
|
{ "picture__image--bordered": e.bordered }
|
|
1162
1162
|
]]),
|
|
1163
1163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -1221,7 +1221,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1221
1221
|
class: "item__picture"
|
|
1222
1222
|
}, null, 8, ["alt", "url"])) : h("", !0),
|
|
1223
1223
|
O("div", xn, [
|
|
1224
|
-
"_id" in t(o) ? (n(), $(
|
|
1224
|
+
"_id" in t(o) ? (n(), $(H, {
|
|
1225
1225
|
key: 0,
|
|
1226
1226
|
icon: "arrow-square-out",
|
|
1227
1227
|
href: t(o).link,
|
|
@@ -1229,7 +1229,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1229
1229
|
class: "item__name item__name--link"
|
|
1230
1230
|
}, {
|
|
1231
1231
|
default: y(() => [
|
|
1232
|
-
|
|
1232
|
+
D(V(t(o).name), 1)
|
|
1233
1233
|
]),
|
|
1234
1234
|
_: 1
|
|
1235
1235
|
}, 8, ["href"])) : (n(), s("div", Mn, V(t(o).name), 1)),
|
|
@@ -1262,7 +1262,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1262
1262
|
const o = e, a = o.property && se(o.property), l = u, r = 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,7 +1271,7 @@ 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
|
|
1274
|
+
const k = await f(T);
|
|
1275
1275
|
if (r) {
|
|
1276
1276
|
const { data: { error: F, result: I } } = await dt(`${Je}/${r.$id}/upload?name=${T.name}`, k, {
|
|
1277
1277
|
params: {
|
|
@@ -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",
|
|
@@ -1342,7 +1342,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1342
1342
|
},
|
|
1343
1343
|
emits: ["endReached"],
|
|
1344
1344
|
setup(e, { emit: u }) {
|
|
1345
|
-
const o = e, a = u, l =
|
|
1345
|
+
const o = e, a = u, l = K(null), c = o.observeScroll ? He(l, {
|
|
1346
1346
|
antecipate: 100
|
|
1347
1347
|
}).reachedEnd : null;
|
|
1348
1348
|
return c !== null && ae(c, (r) => {
|
|
@@ -1380,7 +1380,7 @@ 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
|
-
},
|
|
1383
|
+
}, f = async (b) => {
|
|
1384
1384
|
r.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);
|
|
@@ -1394,12 +1394,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
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
|
|
1402
|
-
class:
|
|
1401
|
+
return Y((n(), s("div", {
|
|
1402
|
+
class: U({
|
|
1403
1403
|
item: !0,
|
|
1404
1404
|
"item--selected": p.value
|
|
1405
1405
|
}),
|
|
@@ -1407,12 +1407,12 @@ 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))
|
|
1414
1414
|
]),
|
|
1415
|
-
e.readOnly ? (n(), $(
|
|
1415
|
+
e.readOnly ? (n(), $(H, {
|
|
1416
1416
|
key: 0,
|
|
1417
1417
|
icon: "arrow-square-out",
|
|
1418
1418
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
@@ -1440,16 +1440,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1440
1440
|
},
|
|
1441
1441
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1442
1442
|
setup(e, { emit: u }) {
|
|
1443
|
-
const o = e, a = ne("meta"), l = se(o.property), c = o.panel !== void 0 ? G(() => o.panel) :
|
|
1443
|
+
const o = e, a = ne("meta"), l = se(o.property), c = o.panel !== void 0 ? G(() => o.panel) : K(!1), r = u, 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 = () => {
|
|
@@ -1502,7 +1502,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1502
1502
|
me(), r("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,
|
|
@@ -1524,7 +1524,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1524
1524
|
onClick: j
|
|
1525
1525
|
}, {
|
|
1526
1526
|
default: y(() => [
|
|
1527
|
-
|
|
1527
|
+
D(V(t(R)("action.save", { capitalize: !0 })), 1)
|
|
1528
1528
|
]),
|
|
1529
1529
|
_: 1
|
|
1530
1530
|
})
|
|
@@ -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,16 +1594,16 @@ 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
|
}, {
|
|
1601
1601
|
default: y(() => [
|
|
1602
|
-
|
|
1602
|
+
D(V(t(R)("action.select", { capitalize: !0 })), 1)
|
|
1603
1603
|
]),
|
|
1604
1604
|
_: 1
|
|
1605
1605
|
})), [
|
|
1606
|
-
[
|
|
1606
|
+
[v]
|
|
1607
1607
|
])
|
|
1608
1608
|
]),
|
|
1609
1609
|
key: "0"
|
|
@@ -1687,7 +1687,8 @@ 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
1694
|
setup(e, { emit: u }) {
|
|
@@ -1695,41 +1696,41 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
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), r = c ? c.$ref : a.collection || we()
|
|
1699
|
+
const c = a.property && se(a.property), r = 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 = r ? ne(t(r)) : null;
|
|
1699
1703
|
!r && 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");
|
|
1700
|
-
const
|
|
1701
|
-
const
|
|
1702
|
-
if (!
|
|
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
1726
|
r && fe(Te, r), fe("searchOnly", a.searchOnly);
|
|
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)
|
|
1727
|
+
const w = (v, B) => {
|
|
1728
|
+
if (a.searchOnly || !r || 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,50 +1765,50 @@ 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
|
-
class:
|
|
1804
|
+
class: U({
|
|
1804
1805
|
form__field: !0,
|
|
1805
1806
|
"form__field--form": "properties" in q
|
|
1806
1807
|
})
|
|
1807
1808
|
}, [
|
|
1808
1809
|
(!("type" in q) || q.type !== "boolean" || e.searchOnly) && !q.noLabel && !t(F) && !t(I) ? (n(), s("label", ca, [
|
|
1809
1810
|
O("div", {
|
|
1810
|
-
class:
|
|
1811
|
+
class: U({
|
|
1811
1812
|
"form__field-label": !0,
|
|
1812
1813
|
"form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
|
|
1813
1814
|
"form__field-required-hint": e.highlightRequired && !t(p) && !e.searchOnly && (!A.value || t(je)(S, A.value, e.modelValue))
|
|
@@ -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
|
}, {
|
|
@@ -1889,28 +1890,28 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1889
1890
|
}, ["prevent"])
|
|
1890
1891
|
}, {
|
|
1891
1892
|
default: y(() => [
|
|
1892
|
-
|
|
1893
|
+
D(V(t(R)("action.add", { capitalize: !0 })), 1)
|
|
1893
1894
|
]),
|
|
1894
1895
|
_: 1
|
|
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",
|
|
1906
1907
|
onClick: Ie((ye) => t(sa)(e.modelValue[S], ge), ["prevent"])
|
|
1907
1908
|
}, {
|
|
1908
1909
|
default: y(() => [
|
|
1909
|
-
|
|
1910
|
+
D(V(t(R)("action.remove", { capitalize: !0 })), 1)
|
|
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],
|
|
@@ -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
|
|
@@ -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
1972
|
setup(e, { emit: u }) {
|
|
1972
1973
|
const o = u, a = xe(), l = Ce(), c = t(re(Te)), r = () => {
|
|
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,22 +1985,22 @@ 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
|
+
onClick: d[1] || (d[1] = (f) => {
|
|
1995
1996
|
t(a).$actions.clearFilters(), r(), o("update:modelValue", !1);
|
|
1996
1997
|
})
|
|
1997
1998
|
}, {
|
|
1998
1999
|
default: y(() => [
|
|
1999
|
-
|
|
2000
|
+
D(V(p.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
2000
2001
|
L(he, null, {
|
|
2001
2002
|
default: y(() => [
|
|
2002
|
-
|
|
2003
|
+
D(V(t(a).filtersCount), 1)
|
|
2003
2004
|
]),
|
|
2004
2005
|
_: 1
|
|
2005
2006
|
})
|
|
@@ -2013,7 +2014,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2013
2014
|
onClick: r
|
|
2014
2015
|
}, {
|
|
2015
2016
|
default: y(() => [
|
|
2016
|
-
|
|
2017
|
+
D(V(p.t("action.filter", { capitalize: !0 })), 1)
|
|
2017
2018
|
]),
|
|
2018
2019
|
_: 1
|
|
2019
2020
|
}, 8, ["disabled"])
|
|
@@ -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)
|
|
@@ -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
|
});
|
|
@@ -2076,12 +2077,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2076
2077
|
return;
|
|
2077
2078
|
}
|
|
2078
2079
|
a("update:visible", !1), a("update:modelValue", _), a("insert", _), r.$actions.clearItem();
|
|
2079
|
-
}, { t:
|
|
2080
|
+
}, { t: f } = st(), m = () => {
|
|
2080
2081
|
l.$actions.ask({
|
|
2081
2082
|
action: () => {
|
|
2082
2083
|
r.$actions.clearItem(), r.validationErrors = {}, a("cancel");
|
|
2083
2084
|
},
|
|
2084
|
-
body:
|
|
2085
|
+
body: f("prompt.close_panel")
|
|
2085
2086
|
});
|
|
2086
2087
|
};
|
|
2087
2088
|
return ae(() => r.item._id, (b) => {
|
|
@@ -2105,7 +2106,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2105
2106
|
default: y(({
|
|
2106
2107
|
visible: i
|
|
2107
2108
|
}) => [
|
|
2108
|
-
t(r).item._id ?
|
|
2109
|
+
t(r).item._id ? Y((n(), $(H, {
|
|
2109
2110
|
key: 0,
|
|
2110
2111
|
reactive: "",
|
|
2111
2112
|
active: i,
|
|
@@ -2158,7 +2159,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2158
2159
|
onClick: m
|
|
2159
2160
|
}, {
|
|
2160
2161
|
default: y(() => [
|
|
2161
|
-
|
|
2162
|
+
D(V(t(f)("action.cancel", { capitalize: !0 })), 1)
|
|
2162
2163
|
]),
|
|
2163
2164
|
_: 1
|
|
2164
2165
|
})) : h("", !0),
|
|
@@ -2169,7 +2170,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2169
2170
|
onClick: d
|
|
2170
2171
|
}, {
|
|
2171
2172
|
default: y(() => [
|
|
2172
|
-
|
|
2173
|
+
D(V(t(f)("action.insert", { capitalize: !0 })), 1)
|
|
2173
2174
|
]),
|
|
2174
2175
|
_: 1
|
|
2175
2176
|
}, 8, ["disabled", "loading"])
|
|
@@ -2241,7 +2242,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2241
2242
|
const o = e, a = u, l = Se(), c = o.collection || we(), r = c ? ne(typeof c == "string" ? c : c.value) : null, p = G({
|
|
2242
2243
|
get: () => r?.selected,
|
|
2243
2244
|
set: (g) => r?.$actions.selectManyItems(g, !0)
|
|
2244
|
-
}), d = G(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 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];
|
|
@@ -2289,7 +2290,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2289
2290
|
onChange: i[0] || (i[0] = (k) => t(r).$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
2307
|
t(r) && e.checkbox && t(l).md ? (n(), s("td", xa, [
|
|
2307
|
-
|
|
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,7 +2313,7 @@ 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),
|
|
@@ -2327,22 +2328,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2327
2328
|
])) : (n(), s("div", Fa, [
|
|
2328
2329
|
O("div", Ua, [
|
|
2329
2330
|
"type" in w && w.type === "boolean" ? (n(), s("div", Ha, [
|
|
2330
|
-
k[I] ? (n(), $(
|
|
2331
|
+
k[I] ? (n(), $(H, {
|
|
2331
2332
|
key: 0,
|
|
2332
2333
|
icon: "check",
|
|
2333
2334
|
"icon-classes": "aeria-blueish"
|
|
2334
2335
|
}, {
|
|
2335
2336
|
default: y(() => [
|
|
2336
|
-
|
|
2337
|
+
D(V(t(R)("yes")), 1)
|
|
2337
2338
|
]),
|
|
2338
2339
|
_: 1
|
|
2339
|
-
})) : (n(), $(
|
|
2340
|
+
})) : (n(), $(H, {
|
|
2340
2341
|
key: 1,
|
|
2341
2342
|
icon: "x",
|
|
2342
2343
|
"icon-classes": "aeria-redish"
|
|
2343
2344
|
}, {
|
|
2344
2345
|
default: y(() => [
|
|
2345
|
-
|
|
2346
|
+
D(V(t(R)("no")), 1)
|
|
2346
2347
|
]),
|
|
2347
2348
|
_: 1
|
|
2348
2349
|
}))
|
|
@@ -2377,7 +2378,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
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
2384
|
}, V(t(r).$actions.formatValue({
|
|
@@ -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",
|
|
@@ -2402,7 +2403,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2402
2403
|
onClick: (w) => I.click(k)
|
|
2403
2404
|
}, {
|
|
2404
2405
|
default: y(() => [
|
|
2405
|
-
|
|
2406
|
+
D(V(t(R)(I.label)), 1)
|
|
2406
2407
|
]),
|
|
2407
2408
|
_: 2
|
|
2408
2409
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
@@ -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,17 +2433,17 @@ 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)
|
|
2439
2440
|
}, {
|
|
2440
2441
|
default: y(() => [
|
|
2441
|
-
L(
|
|
2442
|
+
L(H, {
|
|
2442
2443
|
icon: I.icon || "gear"
|
|
2443
2444
|
}, {
|
|
2444
2445
|
default: y(() => [
|
|
2445
|
-
|
|
2446
|
+
D(V(t(R)(I.label)), 1)
|
|
2446
2447
|
]),
|
|
2447
2448
|
_: 2
|
|
2448
2449
|
}, 1032, ["icon"])
|
|
@@ -2457,7 +2458,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2457
2458
|
actions: b(k)
|
|
2458
2459
|
}), {
|
|
2459
2460
|
default: y(() => [
|
|
2460
|
-
L(
|
|
2461
|
+
L(H, {
|
|
2461
2462
|
icon: "dots-three",
|
|
2462
2463
|
class: "table__mobile-actions-button"
|
|
2463
2464
|
})
|
|
@@ -2523,7 +2524,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2523
2524
|
},
|
|
2524
2525
|
setup(e) {
|
|
2525
2526
|
return (u, o) => (n(), s("div", {
|
|
2526
|
-
class:
|
|
2527
|
+
class: U([
|
|
2527
2528
|
"grid",
|
|
2528
2529
|
{ "grid--list": e.list }
|
|
2529
2530
|
])
|
|
@@ -2553,7 +2554,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
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
|
-
|
|
2610
|
+
D(V(t(o).translateBadge ? t(R)(f) : f), 1)
|
|
2610
2611
|
]),
|
|
2611
2612
|
_: 2
|
|
2612
2613
|
}, 1024))), 128))
|
|
@@ -2617,7 +2618,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2617
2618
|
fn: y(() => [
|
|
2618
2619
|
L(he, null, {
|
|
2619
2620
|
default: y(() => [
|
|
2620
|
-
|
|
2621
|
+
D(V(t(o).translateBadge && typeof d[t(o).badge] == "string" ? t(R)(d[t(o).badge]) : d[t(o).badge]), 1)
|
|
2621
2622
|
]),
|
|
2622
2623
|
_: 2
|
|
2623
2624
|
}, 1024)
|
|
@@ -2659,7 +2660,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2659
2660
|
},
|
|
2660
2661
|
emits: ["uiEvent"],
|
|
2661
2662
|
setup(e, { emit: u }) {
|
|
2662
|
-
const o =
|
|
2663
|
+
const o = K(!1), a = K(!1), l = K((...A) => null), c = K(), r = e, p = u, d = Ce(), f = ne("meta"), m = Se(), { reachedEnd: b, detach: _ } = He(null, {
|
|
2663
2664
|
antecipate: 600
|
|
2664
2665
|
}), g = !m.value.md || r.scrollPagination;
|
|
2665
2666
|
g && ae(b, (A) => {
|
|
@@ -2671,7 +2672,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2671
2672
|
});
|
|
2672
2673
|
const T = De(), k = r.action ? t(r.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 = r.collection, !r.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
|
|
@@ -2793,22 +2794,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2793
2794
|
}), me = G(() => i.actions.filter((A) => !A.button));
|
|
2794
2795
|
return fe(Te, G(() => r.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",
|
|
@@ -2855,7 +2856,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2855
2856
|
default: y(() => [
|
|
2856
2857
|
t(i).filtersCount ? (n(), $(he, { key: 0 }, {
|
|
2857
2858
|
default: y(() => [
|
|
2858
|
-
|
|
2859
|
+
D(V(t(i).filtersCount), 1)
|
|
2859
2860
|
]),
|
|
2860
2861
|
_: 1
|
|
2861
2862
|
})) : h("", !0)
|
|
@@ -2868,12 +2869,12 @@ 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)
|
|
2877
2878
|
]),
|
|
2878
2879
|
_: 1
|
|
2879
2880
|
})), [
|
|
@@ -2882,7 +2883,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2882
2883
|
O("div", _o, [
|
|
2883
2884
|
t(i).filtersCount ? (n(), $(he, { key: 0 }, {
|
|
2884
2885
|
default: y(() => [
|
|
2885
|
-
|
|
2886
|
+
D(V(t(i).filtersCount), 1)
|
|
2886
2887
|
]),
|
|
2887
2888
|
_: 1
|
|
2888
2889
|
})) : h("", !0)
|
|
@@ -2893,12 +2894,12 @@ 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)
|
|
2902
2903
|
]),
|
|
2903
2904
|
_: 1
|
|
2904
2905
|
})), [
|
|
@@ -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
|
-
|
|
2921
|
+
D(V(t(R)(v.label, { capitalize: !0 })), 1)
|
|
2921
2922
|
]),
|
|
2922
2923
|
_: 2
|
|
2923
2924
|
}, 1032, ["icon", "disabled", "onClick"])) : h("", !0)
|
|
@@ -2927,34 +2928,34 @@ 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),
|
|
2934
2935
|
t(i).filtersCount ? (n(), $(he, { key: 0 }, {
|
|
2935
2936
|
default: y(() => [
|
|
2936
|
-
|
|
2937
|
+
D(V(t(i).filtersCount), 1)
|
|
2937
2938
|
]),
|
|
2938
2939
|
_: 1
|
|
2939
2940
|
})) : h("", !0)
|
|
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
|
-
|
|
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,13 +2964,13 @@ 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
|
})())
|
|
2970
2971
|
}, {
|
|
2971
2972
|
default: y(() => [
|
|
2972
|
-
|
|
2973
|
+
D(V(t(R)("add_first_item", { capitalize: !0 })), 1)
|
|
2973
2974
|
]),
|
|
2974
2975
|
_: 1
|
|
2975
2976
|
})) : h("", !0)
|
|
@@ -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 ? {
|
|
@@ -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, r], p) => (n(), $(de, {
|
|
3039
3040
|
key: `option-${p}`,
|
|
3040
|
-
class:
|
|
3041
|
+
class: U([
|
|
3041
3042
|
"prompt__option",
|
|
3042
3043
|
`prompt__option--${r.variant || "primary"}`
|
|
3043
3044
|
]),
|
|
3044
3045
|
onClick: (d) => r.click ? r.click(c, r) : o(c, r)
|
|
3045
3046
|
}, {
|
|
3046
3047
|
default: y(() => [
|
|
3047
|
-
|
|
3048
|
+
D(V(r.title), 1)
|
|
3048
3049
|
]),
|
|
3049
3050
|
_: 2
|
|
3050
3051
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -3070,15 +3071,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3070
3071
|
const u = ne("meta");
|
|
3071
3072
|
return (o, a) => {
|
|
3072
3073
|
const l = ee("clickable");
|
|
3073
|
-
return
|
|
3074
|
-
class:
|
|
3074
|
+
return Y((n(), s("div", {
|
|
3075
|
+
class: U({
|
|
3075
3076
|
toast: !0,
|
|
3076
3077
|
"toast--animate": t(u).toasts[0].itr === e.itr
|
|
3077
3078
|
}),
|
|
3078
3079
|
onAnimationend: a[0] || (a[0] = (c) => t(u).$actions.popToast()),
|
|
3079
3080
|
onClick: a[1] || (a[1] = (c) => t(u).$actions.popToast(e.itr))
|
|
3080
3081
|
}, [
|
|
3081
|
-
L(
|
|
3082
|
+
L(H, x(
|
|
3082
3083
|
e.icon ? { icon: e.icon } : { icon: "warning-circle" },
|
|
3083
3084
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3084
3085
|
), null, 16),
|
|
@@ -3099,13 +3100,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3099
3100
|
const c = at("router-view");
|
|
3100
3101
|
return n(), s("main", {
|
|
3101
3102
|
id: "main",
|
|
3102
|
-
class:
|
|
3103
|
+
class: U([
|
|
3103
3104
|
"main",
|
|
3104
3105
|
`main--${o.value}`,
|
|
3105
3106
|
{ dark: o.value === "dark" }
|
|
3106
3107
|
])
|
|
3107
3108
|
}, [
|
|
3108
|
-
l[2] || (l[2] = U(" ] ", -1)),
|
|
3109
3109
|
(n(), $(ot, null, {
|
|
3110
3110
|
default: y(() => [
|
|
3111
3111
|
a.$slots.default ? C(a.$slots, "default", { key: 0 }, void 0, !0) : (n(), $(c, { key: 1 }, {
|
|
@@ -3152,7 +3152,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3152
3152
|
_: 1
|
|
3153
3153
|
}, 16)) : h("", !0),
|
|
3154
3154
|
O("div", Ro, [
|
|
3155
|
-
(n(!0), s(
|
|
3155
|
+
(n(!0), s(W, null, z(t(u).toasts, (r) => (n(), $(wo, x({ ref_for: !0 }, r, {
|
|
3156
3156
|
key: `toast-${r.itr}`
|
|
3157
3157
|
}), {
|
|
3158
3158
|
default: y(() => [
|
|
@@ -3166,10 +3166,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3166
3166
|
], 2);
|
|
3167
3167
|
};
|
|
3168
3168
|
}
|
|
3169
|
-
}), ul = /* @__PURE__ */ E(Lo, [["__scopeId", "data-v-
|
|
3169
|
+
}), ul = /* @__PURE__ */ E(Lo, [["__scopeId", "data-v-19b147ab"]]), xo = {}, Mo = { class: "menu" };
|
|
3170
3170
|
function zo(e, u) {
|
|
3171
3171
|
return n(), s("menu", Mo, [
|
|
3172
|
-
(n(!0), s(
|
|
3172
|
+
(n(!0), s(W, null, z(Object.keys(e.$slots), (o) => (n(), s("div", {
|
|
3173
3173
|
key: o,
|
|
3174
3174
|
class: "menu__entry"
|
|
3175
3175
|
}, [
|
|
@@ -3217,15 +3217,15 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3217
3217
|
}));
|
|
3218
3218
|
};
|
|
3219
3219
|
return (p, d) => {
|
|
3220
|
-
const
|
|
3220
|
+
const f = ee("clickable");
|
|
3221
3221
|
return n(), s("div", Eo, [
|
|
3222
3222
|
t(l).md && !e.dropdown ? (n(), s("div", Fo, [
|
|
3223
3223
|
p.$slots.default ? (n(), s("div", Uo, [
|
|
3224
3224
|
C(p.$slots, "default", {}, void 0, !0)
|
|
3225
3225
|
])) : h("", !0),
|
|
3226
|
-
(n(!0), s(
|
|
3226
|
+
(n(!0), s(W, null, z(Object.keys(p.$slots).filter((m) => m !== "default"), (m, b) => (n(), s("div", {
|
|
3227
3227
|
key: m,
|
|
3228
|
-
class:
|
|
3228
|
+
class: U({
|
|
3229
3229
|
tabs__tab: !0,
|
|
3230
3230
|
"tabs__tab--current": m === c.value || !c.value && b === 0
|
|
3231
3231
|
}),
|
|
@@ -3236,7 +3236,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3236
3236
|
])) : (n(), s("div", Do, [
|
|
3237
3237
|
L(Ve, null, ie({
|
|
3238
3238
|
default: y(({ visible: m }) => [
|
|
3239
|
-
|
|
3239
|
+
Y((n(), $(H, {
|
|
3240
3240
|
"icon-right": "",
|
|
3241
3241
|
active: m,
|
|
3242
3242
|
icon: "caret-down",
|
|
@@ -3248,7 +3248,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3248
3248
|
]),
|
|
3249
3249
|
_: 3
|
|
3250
3250
|
}, 8, ["active"])), [
|
|
3251
|
-
[
|
|
3251
|
+
[f]
|
|
3252
3252
|
])
|
|
3253
3253
|
]),
|
|
3254
3254
|
_: 2
|
|
@@ -3274,7 +3274,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3274
3274
|
promise: Promise
|
|
3275
3275
|
},
|
|
3276
3276
|
setup(e) {
|
|
3277
|
-
const u =
|
|
3277
|
+
const u = K(e.initialValue);
|
|
3278
3278
|
return e.promise instanceof Promise && e.promise.then((o) => {
|
|
3279
3279
|
u.value = o;
|
|
3280
3280
|
}), () => it("div", String(u.value));
|
|
@@ -3286,32 +3286,32 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3286
3286
|
},
|
|
3287
3287
|
setup(e) {
|
|
3288
3288
|
const u = e, a = Ce().currentRoute, l = De(), c = G(() => u.collection ? Ae(u.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), r = async (p, d) => {
|
|
3289
|
-
const { error:
|
|
3289
|
+
const { error: f, result: m } = await d.$functions[p.badgeFunction]({
|
|
3290
3290
|
filters: p.filters
|
|
3291
3291
|
});
|
|
3292
|
-
return
|
|
3292
|
+
return f ? 0 : m;
|
|
3293
3293
|
};
|
|
3294
3294
|
return (p, d) => c.value && c.value.description.filtersPresets ? (n(), $(Wo, {
|
|
3295
3295
|
key: 0,
|
|
3296
3296
|
dropdown: "",
|
|
3297
3297
|
query: "section"
|
|
3298
3298
|
}, ie({ _: 2 }, [
|
|
3299
|
-
z(Object.entries(c.value.description.filtersPresets), ([
|
|
3300
|
-
name:
|
|
3299
|
+
z(Object.entries(c.value.description.filtersPresets), ([f, m]) => ({
|
|
3300
|
+
name: f,
|
|
3301
3301
|
fn: y(() => [
|
|
3302
3302
|
O("div", {
|
|
3303
3303
|
class: "topbar__preset",
|
|
3304
3304
|
onClick: (b) => t(Pe)(m, c.value)
|
|
3305
3305
|
}, [
|
|
3306
|
-
m.icon ? (n(), $(
|
|
3306
|
+
m.icon ? (n(), $(H, {
|
|
3307
3307
|
key: 0,
|
|
3308
3308
|
icon: m.icon
|
|
3309
3309
|
}, {
|
|
3310
3310
|
default: y(() => [
|
|
3311
|
-
|
|
3311
|
+
D(V(m.label || t(R)(f, { plural: !0 })), 1)
|
|
3312
3312
|
]),
|
|
3313
3313
|
_: 2
|
|
3314
|
-
}, 1032, ["icon"])) : (n(), s("div", Xo, V(m.label || t(R)(
|
|
3314
|
+
}, 1032, ["icon"])) : (n(), s("div", Xo, V(m.label || t(R)(f, { plural: !0 })), 1)),
|
|
3315
3315
|
m.badgeFunction ? (n(), $(he, { key: 2 }, {
|
|
3316
3316
|
default: y(() => [
|
|
3317
3317
|
L(t(Yo), {
|
|
@@ -3383,7 +3383,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3383
3383
|
{
|
|
3384
3384
|
path: "signin",
|
|
3385
3385
|
name: "/user/signin",
|
|
3386
|
-
component: () => import("./signin-
|
|
3386
|
+
component: () => import("./signin-B75Qkv31.js"),
|
|
3387
3387
|
meta: {
|
|
3388
3388
|
title: "Sign in"
|
|
3389
3389
|
}
|
|
@@ -3391,7 +3391,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3391
3391
|
{
|
|
3392
3392
|
path: "signup",
|
|
3393
3393
|
name: "/user/signup",
|
|
3394
|
-
component: () => import("./signup-
|
|
3394
|
+
component: () => import("./signup-r_Cg8wlh.js"),
|
|
3395
3395
|
meta: {
|
|
3396
3396
|
title: "Sign up"
|
|
3397
3397
|
}
|
|
@@ -3399,7 +3399,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3399
3399
|
{
|
|
3400
3400
|
path: "redefine-password",
|
|
3401
3401
|
name: "/user/redefine-password",
|
|
3402
|
-
component: () => import("./redefine-password-
|
|
3402
|
+
component: () => import("./redefine-password-CJAyfalJ.js"),
|
|
3403
3403
|
meta: {
|
|
3404
3404
|
title: "Redefine password"
|
|
3405
3405
|
}
|
|
@@ -3407,7 +3407,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3407
3407
|
{
|
|
3408
3408
|
path: "activation",
|
|
3409
3409
|
name: "/user/activation",
|
|
3410
|
-
component: () => import("./activation-
|
|
3410
|
+
component: () => import("./activation-7SslzLP5.js"),
|
|
3411
3411
|
meta: {
|
|
3412
3412
|
title: "Activate user"
|
|
3413
3413
|
}
|
|
@@ -3429,7 +3429,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3429
3429
|
name: "/dashboard/:collection",
|
|
3430
3430
|
props: !0,
|
|
3431
3431
|
components: {
|
|
3432
|
-
default: () => import("./index-
|
|
3432
|
+
default: () => import("./index-DZLVdsTE.js"),
|
|
3433
3433
|
topbar: () => Promise.resolve().then(() => Po)
|
|
3434
3434
|
},
|
|
3435
3435
|
meta: {
|
|
@@ -3443,7 +3443,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3443
3443
|
name: "/dashboard/:collection/:id",
|
|
3444
3444
|
props: !0,
|
|
3445
3445
|
components: {
|
|
3446
|
-
default: () => import("./_id_-
|
|
3446
|
+
default: () => import("./_id_-1SbaGrdM.js")
|
|
3447
3447
|
},
|
|
3448
3448
|
meta: {
|
|
3449
3449
|
title: ({ collectionName: o, t: a }) => a(o, {
|
|
@@ -3463,7 +3463,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3463
3463
|
children: [
|
|
3464
3464
|
{
|
|
3465
3465
|
path: "profile",
|
|
3466
|
-
component: () => import("./index-
|
|
3466
|
+
component: () => import("./index-D3fxLWDD.js"),
|
|
3467
3467
|
meta: {
|
|
3468
3468
|
title: "User profile",
|
|
3469
3469
|
icon: "user-square"
|
|
@@ -3472,7 +3472,7 @@ const cl = /* @__PURE__ */ E(xo, [["render", zo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3472
3472
|
{
|
|
3473
3473
|
path: "changepass",
|
|
3474
3474
|
name: "/dashboard/user/changepass",
|
|
3475
|
-
component: () => import("./index-
|
|
3475
|
+
component: () => import("./index-CeZ1Y1LN.js"),
|
|
3476
3476
|
meta: {
|
|
3477
3477
|
title: "Change password",
|
|
3478
3478
|
icon: "lock"
|
|
@@ -3493,7 +3493,7 @@ export {
|
|
|
3493
3493
|
pl as H,
|
|
3494
3494
|
E as _,
|
|
3495
3495
|
le as a,
|
|
3496
|
-
|
|
3496
|
+
H as b,
|
|
3497
3497
|
dl as c,
|
|
3498
3498
|
_n as d,
|
|
3499
3499
|
rl as e,
|