@aeria-ui/ui 0.0.195 → 0.0.196
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_-DTlA6sO1.js → _id_-V0WfA8Ww.js} +1 -1
- package/dist/{activation-BPpBit2O.js → activation-BENU4jjl.js} +1 -1
- package/dist/components/aeria-button/aeria-button.vue.d.ts +1 -0
- package/dist/{index-CZ4f1hEL.js → index-BAIhMlNj.js} +572 -554
- package/dist/{index-BYbAQVTM.js → index-Bs_rSdPH.js} +1 -1
- package/dist/{index-C8PSaMFh.js → index-Cw0EFXRg.js} +1 -1
- package/dist/{index-jxFbXVI9.js → index-DNqnA0oj.js} +1 -1
- package/dist/{redefine-password-CKEXxqNc.js → redefine-password-B4omIHya.js} +1 -1
- package/dist/{signin-C7ZalReB.js → signin-Dava-b0C.js} +1 -1
- package/dist/{signup-CejLK18q.js → signup-C9kajyM_.js} +1 -1
- package/dist/ui.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +6 -6
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { defineComponent as M, ref as X, resolveDirective as ee, createElementBlock as s, openBlock as n, normalizeClass as U, Fragment as Y, renderList as z, withDirectives as K, 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
|
|
1
|
+
import { defineComponent as M, ref as X, resolveDirective as ee, createElementBlock as s, openBlock as n, normalizeClass as U, Fragment as Y, renderList as z, withDirectives as K, 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
|
-
import { arraysIntersect as
|
|
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";
|
|
5
5
|
import { useStore as ne, getStoreId as we, useParentStore as xe, STORE_ID as Te, getGlobalStateManager as De } from "@aeria-ui/state-management";
|
|
6
6
|
import { useRouter as Ce } from "vue-router";
|
|
7
|
-
import {
|
|
7
|
+
import { validate as _t } from "@aeriajs/validation";
|
|
8
|
+
import { getObjectKey as $t } from "@aeria-ui/utils";
|
|
8
9
|
const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
9
10
|
key: 0,
|
|
10
11
|
class: "accordion__content"
|
|
@@ -16,8 +17,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
16
17
|
headers: {}
|
|
17
18
|
},
|
|
18
19
|
setup(e) {
|
|
19
|
-
const u = X(null),
|
|
20
|
-
return (
|
|
20
|
+
const u = X(null), o = (a) => typeof a == "string" ? a : a.title;
|
|
21
|
+
return (a, l) => {
|
|
21
22
|
const c = ee("clickable");
|
|
22
23
|
return n(), s("div", {
|
|
23
24
|
class: U({
|
|
@@ -25,7 +26,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
25
26
|
"accordion--padded": !e.noPadding
|
|
26
27
|
})
|
|
27
28
|
}, [
|
|
28
|
-
(n(!0), s(Y, null, z(Object.keys(
|
|
29
|
+
(n(!0), s(Y, null, z(Object.keys(a.$slots).filter((r) => r !== "default"), (r, p) => (n(), s("div", {
|
|
29
30
|
key: r,
|
|
30
31
|
class: "accordion__slot"
|
|
31
32
|
}, [
|
|
@@ -34,30 +35,30 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
34
35
|
onClick: (d) => u.value === r ? u.value = null : u.value = r
|
|
35
36
|
}, [
|
|
36
37
|
e.enumerate ? (n(), s("span", kt, V(p + 1) + ". ", 1)) : h("", !0),
|
|
37
|
-
D(" " + V(e.headers[r] ?
|
|
38
|
+
D(" " + V(e.headers[r] ? o(e.headers[r]) : t(R)(r)), 1)
|
|
38
39
|
], 8, gt)), [
|
|
39
40
|
[c]
|
|
40
41
|
]),
|
|
41
42
|
u.value === r ? (n(), s("div", Vt, [
|
|
42
|
-
C(
|
|
43
|
+
C(a.$slots, r, {}, void 0, !0)
|
|
43
44
|
])) : h("", !0)
|
|
44
45
|
]))), 128))
|
|
45
46
|
], 2);
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
}),
|
|
49
|
-
const
|
|
50
|
-
for (const [
|
|
51
|
-
a
|
|
52
|
-
return
|
|
53
|
-
},
|
|
49
|
+
}), E = (e, u) => {
|
|
50
|
+
const o = e.__vccOpts || e;
|
|
51
|
+
for (const [a, l] of u)
|
|
52
|
+
o[a] = l;
|
|
53
|
+
return o;
|
|
54
|
+
}, rl = /* @__PURE__ */ E(Ct, [["__scopeId", "data-v-3ea933d4"]]), Ot = /* @__PURE__ */ M({
|
|
54
55
|
__name: "aeria-badge",
|
|
55
56
|
props: {
|
|
56
57
|
large: { type: Boolean },
|
|
57
58
|
alt: { type: Boolean }
|
|
58
59
|
},
|
|
59
60
|
setup(e) {
|
|
60
|
-
return (u,
|
|
61
|
+
return (u, o) => (n(), s("div", {
|
|
61
62
|
class: U([
|
|
62
63
|
"badge",
|
|
63
64
|
{ "badge--large": e.large },
|
|
@@ -67,7 +68,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
67
68
|
C(u.$slots, "default", {}, void 0, !0)
|
|
68
69
|
], 2));
|
|
69
70
|
}
|
|
70
|
-
}), he = /* @__PURE__ */
|
|
71
|
+
}), he = /* @__PURE__ */ E(Ot, [["__scopeId", "data-v-4cbce7ef"]]), At = /* @__PURE__ */ M({
|
|
71
72
|
__name: "aeria-bare-button",
|
|
72
73
|
props: {
|
|
73
74
|
dummy: { type: Boolean },
|
|
@@ -75,8 +76,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
75
76
|
},
|
|
76
77
|
emits: ["click"],
|
|
77
78
|
setup(e, { emit: u }) {
|
|
78
|
-
const
|
|
79
|
-
|
|
79
|
+
const o = e, a = u, l = (c) => {
|
|
80
|
+
o.disabled || a("click", c);
|
|
80
81
|
};
|
|
81
82
|
return (c, r) => e.dummy ? (n(), s("button", {
|
|
82
83
|
key: 0,
|
|
@@ -97,7 +98,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
97
98
|
C(c.$slots, "default", {}, void 0, !0)
|
|
98
99
|
], 2));
|
|
99
100
|
}
|
|
100
|
-
}), de = /* @__PURE__ */
|
|
101
|
+
}), de = /* @__PURE__ */ E(At, [["__scopeId", "data-v-51833bfd"]]), It = ["href"], Bt = {
|
|
101
102
|
key: 0,
|
|
102
103
|
"data-component": "icon-label"
|
|
103
104
|
}, St = /* @__PURE__ */ M({
|
|
@@ -111,11 +112,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
111
112
|
active: { type: Boolean }
|
|
112
113
|
},
|
|
113
114
|
setup(e) {
|
|
114
|
-
const u = e,
|
|
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}`);
|
|
115
116
|
return (c, r) => (n(), s("a", {
|
|
116
117
|
class: U([
|
|
117
118
|
"icon",
|
|
118
|
-
{ "icon--reactive": t(
|
|
119
|
+
{ "icon--reactive": t(a) },
|
|
119
120
|
{ "icon--active": e.active },
|
|
120
121
|
c.$slots.default ? "icon--centered" : "icon--standalone"
|
|
121
122
|
])
|
|
@@ -135,7 +136,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
135
136
|
...e.fill ? { fill: e.fill } : {}
|
|
136
137
|
}), [
|
|
137
138
|
O("use", {
|
|
138
|
-
href: `${t(
|
|
139
|
+
href: `${t(o).base || "/"}assets/icons.svg#${l.value}`
|
|
139
140
|
}, null, 8, It)
|
|
140
141
|
], 16))
|
|
141
142
|
], 2),
|
|
@@ -144,7 +145,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
144
145
|
])) : h("", !0)
|
|
145
146
|
], 2));
|
|
146
147
|
}
|
|
147
|
-
}), H = /* @__PURE__ */
|
|
148
|
+
}), H = /* @__PURE__ */ E(St, [["__scopeId", "data-v-263a2782"]]), wt = { class: "button__content" }, Tt = {
|
|
148
149
|
key: 1,
|
|
149
150
|
class: "button__content"
|
|
150
151
|
}, jt = /* @__PURE__ */ M({
|
|
@@ -155,11 +156,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
155
156
|
small: { type: Boolean },
|
|
156
157
|
large: { type: Boolean },
|
|
157
158
|
icon: {},
|
|
159
|
+
dummy: { type: Boolean },
|
|
158
160
|
disabled: { type: Boolean },
|
|
159
161
|
loading: { type: Boolean }
|
|
160
162
|
},
|
|
161
163
|
setup(e) {
|
|
162
|
-
const u = e,
|
|
164
|
+
const u = e, o = re("buttonVariant", u.variant) || "primary", a = (() => {
|
|
163
165
|
switch (!0) {
|
|
164
166
|
case u.small:
|
|
165
167
|
return "small";
|
|
@@ -171,10 +173,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
171
173
|
return (l, c) => (n(), $(de, {
|
|
172
174
|
class: U([
|
|
173
175
|
"button",
|
|
174
|
-
`button--${t(a)}`,
|
|
175
176
|
`button--${t(o)}`,
|
|
177
|
+
`button--${t(a)}`,
|
|
176
178
|
{ "button--loading": e.loading }
|
|
177
179
|
]),
|
|
180
|
+
dummy: e.dummy,
|
|
178
181
|
disabled: e.disabled || e.loading
|
|
179
182
|
}, {
|
|
180
183
|
default: y(() => [
|
|
@@ -193,16 +196,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
193
196
|
]))
|
|
194
197
|
]),
|
|
195
198
|
_: 3
|
|
196
|
-
}, 8, ["class", "disabled"]));
|
|
199
|
+
}, 8, ["class", "dummy", "disabled"]));
|
|
197
200
|
}
|
|
198
|
-
}), le = /* @__PURE__ */
|
|
201
|
+
}), le = /* @__PURE__ */ E(jt, [["__scopeId", "data-v-cef119a2"]]), Rt = { class: "card__picture" }, qt = { class: "card__footer" }, Lt = { class: "card__footer-upper" }, xt = { class: "card__actions" }, Mt = { class: "card__badge" }, zt = /* @__PURE__ */ M({
|
|
199
202
|
__name: "aeria-card",
|
|
200
203
|
props: {
|
|
201
204
|
inactive: { type: Boolean },
|
|
202
205
|
horizontal: { type: Boolean }
|
|
203
206
|
},
|
|
204
207
|
setup(e) {
|
|
205
|
-
return (u,
|
|
208
|
+
return (u, o) => (n(), s("div", {
|
|
206
209
|
class: U([
|
|
207
210
|
"card",
|
|
208
211
|
{ "card--inactive": e.inactive },
|
|
@@ -227,7 +230,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
227
230
|
])
|
|
228
231
|
], 2));
|
|
229
232
|
}
|
|
230
|
-
}),
|
|
233
|
+
}), Et = /* @__PURE__ */ E(zt, [["__scopeId", "data-v-e7d2c665"]]), Ft = { class: "panel__header-left" }, Ut = {
|
|
231
234
|
key: 1,
|
|
232
235
|
class: "panel__header-title"
|
|
233
236
|
}, Ht = {
|
|
@@ -256,12 +259,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
256
259
|
},
|
|
257
260
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
258
261
|
setup(e, { emit: u }) {
|
|
259
|
-
const
|
|
260
|
-
|
|
262
|
+
const o = e, a = u, l = X(o.collapsed), c = X(null), { reachedEnd: r } = He(c), p = () => {
|
|
263
|
+
a("update:modelValue", !1), a("close");
|
|
261
264
|
}, d = () => {
|
|
262
|
-
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
+
a("overlayClick");
|
|
266
|
+
}, v = (m) => {
|
|
267
|
+
a("update:collapsed", m), l.value = m;
|
|
265
268
|
};
|
|
266
269
|
return (m, b) => {
|
|
267
270
|
const _ = ee("clickable"), g = ee("loading"), i = ee("overlay");
|
|
@@ -297,7 +300,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
297
300
|
{ "panel__header--outer": e.outerHeader }
|
|
298
301
|
])
|
|
299
302
|
}, [
|
|
300
|
-
O("div",
|
|
303
|
+
O("div", Ft, [
|
|
301
304
|
m.$slots.header ? C(m.$slots, "header", { key: 0 }, void 0, !0) : e.title ? (n(), s("div", Ut, V(e.title), 1)) : h("", !0),
|
|
302
305
|
m.$slots.extra ? (n(), s("div", Ht, [
|
|
303
306
|
C(m.$slots, "extra", {}, void 0, !0)
|
|
@@ -307,14 +310,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
307
310
|
key: 0,
|
|
308
311
|
reactive: "",
|
|
309
312
|
icon: "plus",
|
|
310
|
-
onClick: b[0] || (b[0] = (T) =>
|
|
313
|
+
onClick: b[0] || (b[0] = (T) => v(!l.value))
|
|
311
314
|
}, null, 512)), [
|
|
312
315
|
[_]
|
|
313
316
|
]) : e.collapsible && !l.value ? K((n(), $(H, {
|
|
314
317
|
key: 1,
|
|
315
318
|
reactive: "",
|
|
316
319
|
icon: "minus",
|
|
317
|
-
onClick: b[1] || (b[1] = (T) =>
|
|
320
|
+
onClick: b[1] || (b[1] = (T) => v(!l.value))
|
|
318
321
|
}, null, 512)), [
|
|
319
322
|
[_]
|
|
320
323
|
]) : e.closeHint ? K((n(), $(H, {
|
|
@@ -363,7 +366,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
363
366
|
]) : h("", !0);
|
|
364
367
|
};
|
|
365
368
|
}
|
|
366
|
-
}), Oe = /* @__PURE__ */
|
|
369
|
+
}), Oe = /* @__PURE__ */ E(Dt, [["__scopeId", "data-v-8463f8df"]]), Qt = { class: "content__body" }, Gt = {
|
|
367
370
|
key: 0,
|
|
368
371
|
class: "content__section"
|
|
369
372
|
}, Wt = { class: "content__item" }, Yt = /* @__PURE__ */ M({
|
|
@@ -379,56 +382,56 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
379
382
|
v4078ef85: p.value.x,
|
|
380
383
|
v4078ef86: p.value.y
|
|
381
384
|
}));
|
|
382
|
-
const
|
|
383
|
-
if (
|
|
385
|
+
const o = u, a = X(null), l = X(!1), c = (d) => d?.filter((v) => {
|
|
386
|
+
if (v.roles) {
|
|
384
387
|
const m = ne("user");
|
|
385
|
-
return
|
|
388
|
+
return Ee(v.roles, m.currentUser.roles);
|
|
386
389
|
}
|
|
387
390
|
return !0;
|
|
388
|
-
}), r = (d,
|
|
389
|
-
const m =
|
|
390
|
-
d.click && d.click(m),
|
|
391
|
+
}), r = (d, v) => {
|
|
392
|
+
const m = v && ke(v);
|
|
393
|
+
d.click && d.click(m), o("actionClick", {
|
|
391
394
|
action: d,
|
|
392
395
|
subject: m
|
|
393
396
|
}), l.value = !1;
|
|
394
397
|
}, p = G(() => {
|
|
395
|
-
if (!
|
|
398
|
+
if (!a.value)
|
|
396
399
|
return {
|
|
397
400
|
x: 0,
|
|
398
401
|
y: 0
|
|
399
402
|
};
|
|
400
|
-
const d =
|
|
403
|
+
const d = a.value.getBoundingClientRect().top, v = a.value.getBoundingClientRect().left, m = a.value.offsetHeight;
|
|
401
404
|
return {
|
|
402
405
|
_: l.value,
|
|
403
|
-
x: Math.floor(
|
|
406
|
+
x: Math.floor(v) + "px",
|
|
404
407
|
y: Math.floor(d + m) + "px"
|
|
405
408
|
};
|
|
406
409
|
});
|
|
407
|
-
return (d,
|
|
410
|
+
return (d, v) => {
|
|
408
411
|
const m = ee("overlay");
|
|
409
412
|
return n(), s(Y, null, [
|
|
410
413
|
Object.keys(d.$slots).some((b) => b !== "default") || e.actions !== void 0 && e.actions.length > 0 ? (n(), s("div", {
|
|
411
414
|
key: 0,
|
|
412
415
|
ref_key: "contextmenu",
|
|
413
|
-
ref:
|
|
416
|
+
ref: a,
|
|
414
417
|
class: "contextmenu"
|
|
415
418
|
}, [
|
|
416
419
|
O("a", {
|
|
417
420
|
class: "contextmenu__trigger",
|
|
418
|
-
onClick:
|
|
421
|
+
onClick: v[0] || (v[0] = (b) => l.value = !0)
|
|
419
422
|
}, [
|
|
420
423
|
C(d.$slots, "default", oe(be({
|
|
421
424
|
visible: l.value
|
|
422
425
|
})), void 0, !0)
|
|
423
426
|
])
|
|
424
427
|
], 512)) : h("", !0),
|
|
425
|
-
l.value ? (n(), $(
|
|
428
|
+
l.value ? (n(), $(Fe, {
|
|
426
429
|
key: 1,
|
|
427
430
|
to: "main"
|
|
428
431
|
}, [
|
|
429
432
|
K((n(), $(Oe, {
|
|
430
433
|
modelValue: l.value,
|
|
431
|
-
"onUpdate:modelValue":
|
|
434
|
+
"onUpdate:modelValue": v[4] || (v[4] = (b) => l.value = b),
|
|
432
435
|
fill: "",
|
|
433
436
|
bordered: "",
|
|
434
437
|
class: "content",
|
|
@@ -442,7 +445,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
442
445
|
Object.keys(d.$slots).filter((b) => !["default", "extra", "header"].includes(b)).length > 0 ? (n(), s("div", {
|
|
443
446
|
key: 1,
|
|
444
447
|
class: "content__section",
|
|
445
|
-
onClick:
|
|
448
|
+
onClick: v[1] || (v[1] = (b) => l.value = !1)
|
|
446
449
|
}, [
|
|
447
450
|
(n(!0), s(Y, null, z(Object.keys(d.$slots).filter((b) => !["default", "extra", "header"].includes(b)), (b, _) => (n(), $(de, {
|
|
448
451
|
key: `slot-${_}`,
|
|
@@ -457,7 +460,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
457
460
|
e.actions !== void 0 && e.actions.length > 0 ? (n(), s("div", {
|
|
458
461
|
key: 2,
|
|
459
462
|
class: "content__section",
|
|
460
|
-
onClick:
|
|
463
|
+
onClick: v[2] || (v[2] = (b) => l.value = !1)
|
|
461
464
|
}, [
|
|
462
465
|
(n(!0), s(Y, null, z(c(e.actions), (b, _) => (n(), $(de, {
|
|
463
466
|
key: `action-${_}`,
|
|
@@ -480,7 +483,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
480
483
|
d.$slots.extra ? (n(), s("div", {
|
|
481
484
|
key: 3,
|
|
482
485
|
class: "content__section",
|
|
483
|
-
onClick:
|
|
486
|
+
onClick: v[3] || (v[3] = (b) => l.value = !1)
|
|
484
487
|
}, [
|
|
485
488
|
O("div", Wt, [
|
|
486
489
|
d.$slots.extra ? C(d.$slots, "extra", { key: 0 }, void 0, !0) : h("", !0)
|
|
@@ -506,19 +509,19 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
506
509
|
], 64);
|
|
507
510
|
};
|
|
508
511
|
}
|
|
509
|
-
}), Ve = /* @__PURE__ */
|
|
512
|
+
}), Ve = /* @__PURE__ */ E(Yt, [["__scopeId", "data-v-ee3ea72f"]]), Kt = { class: "info__content" }, Xt = /* @__PURE__ */ M({
|
|
510
513
|
__name: "aeria-info",
|
|
511
514
|
props: {
|
|
512
515
|
where: { default: "top" }
|
|
513
516
|
},
|
|
514
517
|
setup(e) {
|
|
515
|
-
const u = Se(),
|
|
516
|
-
return (
|
|
518
|
+
const u = Se(), o = X(!1);
|
|
519
|
+
return (a, l) => t(u).md ? (n(), s("div", {
|
|
517
520
|
key: 0,
|
|
518
521
|
class: "info",
|
|
519
|
-
onMouseleave: l[1] || (l[1] = (c) =>
|
|
522
|
+
onMouseleave: l[1] || (l[1] = (c) => o.value = !1)
|
|
520
523
|
}, [
|
|
521
|
-
|
|
524
|
+
o.value ? (n(), s("div", {
|
|
522
525
|
key: 0,
|
|
523
526
|
class: U([
|
|
524
527
|
"info__bubble",
|
|
@@ -526,17 +529,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
526
529
|
])
|
|
527
530
|
}, [
|
|
528
531
|
O("div", Kt, [
|
|
529
|
-
C(
|
|
532
|
+
C(a.$slots, "text", {}, void 0, !0)
|
|
530
533
|
])
|
|
531
534
|
], 2)) : h("", !0),
|
|
532
535
|
O("div", {
|
|
533
|
-
onMouseover: l[0] || (l[0] = (c) =>
|
|
536
|
+
onMouseover: l[0] || (l[0] = (c) => o.value = !0)
|
|
534
537
|
}, [
|
|
535
|
-
C(
|
|
538
|
+
C(a.$slots, "default", {}, void 0, !0)
|
|
536
539
|
], 32)
|
|
537
|
-
], 32)) : C(
|
|
540
|
+
], 32)) : C(a.$slots, "default", { key: 1 }, void 0, !0);
|
|
538
541
|
}
|
|
539
|
-
}), Jt = /* @__PURE__ */
|
|
542
|
+
}), Jt = /* @__PURE__ */ E(Xt, [["__scopeId", "data-v-15a38847"]]), Zt = { class: "input" }, Pt = {
|
|
540
543
|
key: 0,
|
|
541
544
|
class: "input__label"
|
|
542
545
|
}, Nt = {
|
|
@@ -559,10 +562,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
559
562
|
},
|
|
560
563
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
561
564
|
setup(e, { emit: u }) {
|
|
562
|
-
const
|
|
563
|
-
await navigator.clipboard.writeText(w),
|
|
564
|
-
}, b = re("inputVariant",
|
|
565
|
-
name:
|
|
565
|
+
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), v = X(!1), m = async (w) => {
|
|
566
|
+
await navigator.clipboard.writeText(w), a("clipboardCopy", w), v.value = !0;
|
|
567
|
+
}, b = re("inputVariant", o.variant) || "normal", _ = Object.assign(Object.assign({}, o), {
|
|
568
|
+
name: o.propertyName,
|
|
566
569
|
readonly: d,
|
|
567
570
|
type: (() => {
|
|
568
571
|
if ("type" in l)
|
|
@@ -573,7 +576,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
573
576
|
}
|
|
574
577
|
if (l.inputType)
|
|
575
578
|
return l.inputType;
|
|
576
|
-
switch (typeof
|
|
579
|
+
switch (typeof o.modelValue) {
|
|
577
580
|
case "string":
|
|
578
581
|
return "text";
|
|
579
582
|
case "number":
|
|
@@ -582,10 +585,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
582
585
|
return "text";
|
|
583
586
|
}
|
|
584
587
|
})(),
|
|
585
|
-
placeholder: p ? l.description ||
|
|
588
|
+
placeholder: p ? l.description || o.propertyName : l.placeholder
|
|
586
589
|
});
|
|
587
590
|
"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 = !r && l.format === "date-time" ? "datetime-local" : "date"), _.minlength = l.minLength, _.maxlength = l.maxLength)), _.type === "text" && r && (_.type = "search"), Ue(() => {
|
|
588
|
-
|
|
591
|
+
o.modelValue !== null && F(o.modelValue);
|
|
589
592
|
});
|
|
590
593
|
const g = (w) => {
|
|
591
594
|
let J;
|
|
@@ -603,8 +606,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
603
606
|
default:
|
|
604
607
|
throw new Error();
|
|
605
608
|
}
|
|
606
|
-
}, i = X(""), T =
|
|
607
|
-
ae(() =>
|
|
609
|
+
}, i = X(""), T = o.property?.type === "string" && o.property.mask ? ut(o.property.mask) : null;
|
|
610
|
+
ae(() => o.modelValue, (w) => {
|
|
608
611
|
i.value = (() => {
|
|
609
612
|
if (T)
|
|
610
613
|
return w ? T.enmask(String(w), void 0, {
|
|
@@ -626,9 +629,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
626
629
|
}, {
|
|
627
630
|
immediate: !0
|
|
628
631
|
});
|
|
629
|
-
const k = (w) => typeof i.value == "string" &&
|
|
632
|
+
const k = (w) => typeof i.value == "string" && o.property?.type === "string" && T !== null ? (i.value = T.enmask(i.value, void 0, {
|
|
630
633
|
defaultValue: !0
|
|
631
|
-
}),
|
|
634
|
+
}), o.property.maskedValue === !0 ? i.value : T.unmask(i.value)) : w, F = (w) => {
|
|
632
635
|
const J = (() => {
|
|
633
636
|
if (typeof w != "string")
|
|
634
637
|
return w;
|
|
@@ -643,10 +646,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
643
646
|
return k(w);
|
|
644
647
|
}
|
|
645
648
|
})();
|
|
646
|
-
|
|
649
|
+
a("input", J), a("update:modelValue", J);
|
|
647
650
|
}, I = (w) => {
|
|
648
651
|
const J = w.target.value;
|
|
649
|
-
i.value = J,
|
|
652
|
+
i.value = J, F(J);
|
|
650
653
|
};
|
|
651
654
|
return (w, J) => {
|
|
652
655
|
const N = ee("focus"), ue = ee("clickable");
|
|
@@ -694,7 +697,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
694
697
|
{ "input__input--readOnly": t(d) }
|
|
695
698
|
],
|
|
696
699
|
onInput: I,
|
|
697
|
-
onChange: J[0] || (J[0] = (ce) =>
|
|
700
|
+
onChange: J[0] || (J[0] = (ce) => a("change", ce))
|
|
698
701
|
}), null, 16, tn), [
|
|
699
702
|
[N, t(l).focus]
|
|
700
703
|
]),
|
|
@@ -712,7 +715,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
712
715
|
D("Copiar", -1)
|
|
713
716
|
])]),
|
|
714
717
|
default: y(() => [
|
|
715
|
-
|
|
718
|
+
v.value ? (n(), $(H, {
|
|
716
719
|
key: 0,
|
|
717
720
|
reactive: "",
|
|
718
721
|
icon: "check"
|
|
@@ -732,7 +735,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
732
735
|
]);
|
|
733
736
|
};
|
|
734
737
|
}
|
|
735
|
-
}), _e = /* @__PURE__ */
|
|
738
|
+
}), _e = /* @__PURE__ */ E(an, [["__scopeId", "data-v-6e5fdbe7"]]), on = {
|
|
736
739
|
key: 1,
|
|
737
740
|
value: ""
|
|
738
741
|
}, ln = ["value", "data-selected"], sn = /* @__PURE__ */ M({
|
|
@@ -751,17 +754,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
751
754
|
},
|
|
752
755
|
emits: ["update:modelValue", "change"],
|
|
753
756
|
setup(e, { emit: u }) {
|
|
754
|
-
const
|
|
755
|
-
|
|
757
|
+
const o = e, a = u, l = X(null), c = o.property, r = (m) => {
|
|
758
|
+
a("update:modelValue", m), a("change", m);
|
|
756
759
|
}, p = (m) => {
|
|
757
|
-
m === "" || m === null ? r(null) :
|
|
758
|
-
}, d = (m) => Array.isArray(
|
|
760
|
+
m === "" || m === null ? r(null) : o.booleanRef ? r(m === "true") : r(m);
|
|
761
|
+
}, d = (m) => Array.isArray(o.modelValue) ? o.modelValue.includes(m) : o.modelValue === m, v = G(() => o.multiple ? typeof o.multiple == "number" ? o.multiple : 5 : 1);
|
|
759
762
|
return ae(l, (m) => {
|
|
760
|
-
if (m &&
|
|
763
|
+
if (m && o.required && !o.modelValue) {
|
|
761
764
|
const b = m.querySelector("option")?.value;
|
|
762
|
-
b &&
|
|
765
|
+
b && a("update:modelValue", b);
|
|
763
766
|
}
|
|
764
|
-
}),
|
|
767
|
+
}), o.multiple && ae(() => o.modelValue, (m) => {
|
|
765
768
|
if (!l.value)
|
|
766
769
|
return;
|
|
767
770
|
const b = l.value.querySelector('option[data-selected="true"]');
|
|
@@ -771,14 +774,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
771
774
|
"read-only": "",
|
|
772
775
|
"model-value": e.modelValue
|
|
773
776
|
}, null, 8, ["model-value"])) : (n(), s("select", x({ key: 0 }, {
|
|
774
|
-
size:
|
|
777
|
+
size: v.value,
|
|
775
778
|
value: e.modelValue
|
|
776
779
|
}, {
|
|
777
780
|
ref_key: "select",
|
|
778
781
|
ref: l,
|
|
779
782
|
class: {
|
|
780
783
|
select: !0,
|
|
781
|
-
"select--multiple": !!
|
|
784
|
+
"select--multiple": !!v.value,
|
|
782
785
|
"select--outline": !e.noOutline
|
|
783
786
|
},
|
|
784
787
|
onChange: b[0] || (b[0] = (_) => p(_.target.value))
|
|
@@ -787,7 +790,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
787
790
|
key: 0,
|
|
788
791
|
icon: t(c).icon
|
|
789
792
|
}, null, 8, ["icon"])) : h("", !0),
|
|
790
|
-
!
|
|
793
|
+
!o.multiple && !e.required ? (n(), s("option", on, V(t(R)("none")), 1)) : h("", !0),
|
|
791
794
|
(n(!0), s(Y, null, z(t(c) && "enum" in t(c) ? t(c).enum : [], (_) => (n(), s("option", {
|
|
792
795
|
key: String(_),
|
|
793
796
|
value: _,
|
|
@@ -796,7 +799,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
796
799
|
C(m.$slots, "default", {}, void 0, !0)
|
|
797
800
|
], 16));
|
|
798
801
|
}
|
|
799
|
-
}), Qe = /* @__PURE__ */
|
|
802
|
+
}), Qe = /* @__PURE__ */ E(sn, [["__scopeId", "data-v-6294bdce"]]), rn = { class: "pagination" }, un = { class: "pagination__arrows" }, cn = ["value"], dn = {
|
|
800
803
|
key: 0,
|
|
801
804
|
class: "pagination__summary"
|
|
802
805
|
}, mn = /* @__PURE__ */ M({
|
|
@@ -807,30 +810,30 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
807
810
|
},
|
|
808
811
|
emits: ["paginate"],
|
|
809
812
|
setup(e, { emit: u }) {
|
|
810
|
-
const
|
|
811
|
-
get: () => Math.floor(
|
|
813
|
+
const o = e, a = u, l = G({
|
|
814
|
+
get: () => Math.floor(o.pagination.offset / o.pagination.limit),
|
|
812
815
|
set: (d) => {
|
|
813
|
-
|
|
816
|
+
o.pagination.offset = d * o.pagination.limit;
|
|
814
817
|
}
|
|
815
818
|
}), c = G({
|
|
816
|
-
get: () =>
|
|
819
|
+
get: () => o.pagination.limit,
|
|
817
820
|
set: (d) => {
|
|
818
|
-
|
|
821
|
+
o.pagination.limit = Number(d);
|
|
819
822
|
}
|
|
820
|
-
}), r = X(l.value ? l.value + 1 : 1), p = G(() => Math.ceil(
|
|
823
|
+
}), r = X(l.value ? l.value + 1 : 1), p = G(() => Math.ceil(o.pagination.recordsTotal / o.pagination.limit));
|
|
821
824
|
return ae([
|
|
822
825
|
l,
|
|
823
826
|
c
|
|
824
827
|
], ([d]) => {
|
|
825
|
-
r.value = d + 1,
|
|
828
|
+
r.value = d + 1, a("paginate", {
|
|
826
829
|
offset: l.value * c.value,
|
|
827
830
|
limit: c.value
|
|
828
831
|
});
|
|
829
|
-
}), (d,
|
|
832
|
+
}), (d, v) => (n(), s("div", rn, [
|
|
830
833
|
O("div", un, [
|
|
831
834
|
L(de, {
|
|
832
835
|
disabled: l.value === 0,
|
|
833
|
-
onClick:
|
|
836
|
+
onClick: v[0] || (v[0] = (m) => l.value = 0)
|
|
834
837
|
}, {
|
|
835
838
|
default: y(() => [
|
|
836
839
|
L(H, { icon: "caret-double-left" })
|
|
@@ -839,7 +842,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
839
842
|
}, 8, ["disabled"]),
|
|
840
843
|
L(de, {
|
|
841
844
|
disabled: l.value === 0,
|
|
842
|
-
onClick:
|
|
845
|
+
onClick: v[1] || (v[1] = (m) => l.value -= 1)
|
|
843
846
|
}, {
|
|
844
847
|
default: y(() => [
|
|
845
848
|
L(H, { icon: "caret-left" })
|
|
@@ -848,7 +851,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
848
851
|
}, 8, ["disabled"]),
|
|
849
852
|
L(de, {
|
|
850
853
|
disabled: l.value === p.value - 1,
|
|
851
|
-
onClick:
|
|
854
|
+
onClick: v[2] || (v[2] = (m) => l.value += 1)
|
|
852
855
|
}, {
|
|
853
856
|
default: y(() => [
|
|
854
857
|
L(H, { icon: "caret-right" })
|
|
@@ -857,7 +860,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
857
860
|
}, 8, ["disabled"]),
|
|
858
861
|
L(de, {
|
|
859
862
|
disabled: l.value === p.value - 1,
|
|
860
|
-
onClick:
|
|
863
|
+
onClick: v[3] || (v[3] = (m) => l.value = p.value - 1)
|
|
861
864
|
}, {
|
|
862
865
|
default: y(() => [
|
|
863
866
|
L(H, { icon: "caret-double-right" })
|
|
@@ -866,7 +869,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
866
869
|
}, 8, ["disabled"]),
|
|
867
870
|
L(Qe, {
|
|
868
871
|
modelValue: c.value,
|
|
869
|
-
"onUpdate:modelValue":
|
|
872
|
+
"onUpdate:modelValue": v[4] || (v[4] = (m) => c.value = m),
|
|
870
873
|
property: {
|
|
871
874
|
enum: [],
|
|
872
875
|
icon: "list"
|
|
@@ -887,13 +890,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
887
890
|
(n(), $(_e, {
|
|
888
891
|
key: l.value,
|
|
889
892
|
modelValue: r.value,
|
|
890
|
-
"onUpdate:modelValue":
|
|
893
|
+
"onUpdate:modelValue": v[5] || (v[5] = (m) => r.value = m),
|
|
891
894
|
property: {
|
|
892
895
|
type: "number",
|
|
893
896
|
minimum: 1
|
|
894
897
|
},
|
|
895
898
|
style: { height: "100%" },
|
|
896
|
-
onChange:
|
|
899
|
+
onChange: v[6] || (v[6] = (m) => {
|
|
897
900
|
l.value = r.value === 0 ? 0 : r.value - 1;
|
|
898
901
|
})
|
|
899
902
|
}, null, 8, ["modelValue"])),
|
|
@@ -901,7 +904,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
901
904
|
]))
|
|
902
905
|
]));
|
|
903
906
|
}
|
|
904
|
-
}), pn = /* @__PURE__ */
|
|
907
|
+
}), pn = /* @__PURE__ */ E(mn, [["__scopeId", "data-v-8cd299be"]]), fn = { class: "checkbox__text" }, vn = ["innerHTML"], yn = { class: "checkbox__hint" }, hn = ["innerHTML"], bn = {
|
|
905
908
|
inheritAttrs: !1
|
|
906
909
|
}, _n = /* @__PURE__ */ M({
|
|
907
910
|
...bn,
|
|
@@ -919,44 +922,44 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
919
922
|
},
|
|
920
923
|
emits: ["update:modelValue", "change"],
|
|
921
924
|
setup(e, { emit: u }) {
|
|
922
|
-
const
|
|
923
|
-
if (
|
|
924
|
-
switch (
|
|
925
|
+
const o = e, a = o.property, l = o.readOnly || a?.readOnly, c = (() => {
|
|
926
|
+
if (a && "type" in a)
|
|
927
|
+
switch (a.type) {
|
|
925
928
|
case "array":
|
|
926
929
|
case "boolean":
|
|
927
930
|
return "checkbox";
|
|
928
931
|
}
|
|
929
932
|
return "radio";
|
|
930
|
-
})(), r = u, p =
|
|
933
|
+
})(), r = u, p = o.value || !1, d = G({
|
|
931
934
|
get: () => {
|
|
932
|
-
if (
|
|
933
|
-
if ("type" in
|
|
934
|
-
return !!
|
|
935
|
-
if ("items" in
|
|
936
|
-
return
|
|
935
|
+
if (a) {
|
|
936
|
+
if ("type" in a && a.type === "boolean")
|
|
937
|
+
return !!o.value;
|
|
938
|
+
if ("items" in a)
|
|
939
|
+
return o.modelValue?.includes(o.value);
|
|
937
940
|
}
|
|
938
|
-
return
|
|
941
|
+
return o.modelValue === o.value;
|
|
939
942
|
},
|
|
940
943
|
set: () => {
|
|
941
944
|
if (!l) {
|
|
942
|
-
if (
|
|
943
|
-
if ("type" in
|
|
944
|
-
r("update:modelValue", !
|
|
945
|
+
if (a) {
|
|
946
|
+
if ("type" in a && a.type === "boolean") {
|
|
947
|
+
r("update:modelValue", !o.modelValue);
|
|
945
948
|
return;
|
|
946
949
|
}
|
|
947
|
-
if ("items" in
|
|
948
|
-
if (
|
|
949
|
-
r("update:modelValue",
|
|
950
|
+
if ("items" in a) {
|
|
951
|
+
if (o.modelValue?.includes(p)) {
|
|
952
|
+
r("update:modelValue", o.modelValue.filter((m) => m !== p));
|
|
950
953
|
return;
|
|
951
954
|
}
|
|
952
|
-
r("update:modelValue", [p].concat(
|
|
955
|
+
r("update:modelValue", [p].concat(o.modelValue || []));
|
|
953
956
|
return;
|
|
954
957
|
}
|
|
955
958
|
}
|
|
956
|
-
r("update:modelValue",
|
|
959
|
+
r("update:modelValue", o.value);
|
|
957
960
|
}
|
|
958
961
|
}
|
|
959
|
-
}),
|
|
962
|
+
}), v = (m) => {
|
|
960
963
|
l && m.preventDefault();
|
|
961
964
|
};
|
|
962
965
|
return (m, b) => {
|
|
@@ -975,7 +978,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
975
978
|
checked: d.value
|
|
976
979
|
}, {
|
|
977
980
|
class: "checkbox__input",
|
|
978
|
-
onClick:
|
|
981
|
+
onClick: v
|
|
979
982
|
}), null, 16), [
|
|
980
983
|
[et, d.value]
|
|
981
984
|
]),
|
|
@@ -983,13 +986,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
983
986
|
O("div", null, [
|
|
984
987
|
m.$slots.description ? C(m.$slots, "description", { key: 0 }, void 0, !0) : t(p) ? (n(), s("div", {
|
|
985
988
|
key: 1,
|
|
986
|
-
innerHTML: t(
|
|
989
|
+
innerHTML: t(a)?.translate && typeof t(p) == "string" ? t(R)(t(p)) : t(p)
|
|
987
990
|
}, null, 8, vn)) : C(m.$slots, "default", { key: 2 }, void 0, !0)
|
|
988
991
|
]),
|
|
989
992
|
O("div", yn, [
|
|
990
|
-
m.$slots.hint ? C(m.$slots, "hint", { key: 0 }, void 0, !0) : t(
|
|
993
|
+
m.$slots.hint ? C(m.$slots, "hint", { key: 0 }, void 0, !0) : t(a)?.hint ? (n(), s("div", {
|
|
991
994
|
key: 1,
|
|
992
|
-
innerHTML: t(
|
|
995
|
+
innerHTML: t(a).hint
|
|
993
996
|
}, null, 8, hn)) : h("", !0)
|
|
994
997
|
])
|
|
995
998
|
])
|
|
@@ -998,7 +1001,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
998
1001
|
]);
|
|
999
1002
|
};
|
|
1000
1003
|
}
|
|
1001
|
-
}), $n = /* @__PURE__ */
|
|
1004
|
+
}), $n = /* @__PURE__ */ E(_n, [["__scopeId", "data-v-5ef340be"]]), gn = {
|
|
1002
1005
|
inheritAttrs: !1
|
|
1003
1006
|
}, kn = /* @__PURE__ */ M({
|
|
1004
1007
|
...gn,
|
|
@@ -1015,13 +1018,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1015
1018
|
},
|
|
1016
1019
|
emits: ["update:modelValue"],
|
|
1017
1020
|
setup(e, { emit: u }) {
|
|
1018
|
-
const
|
|
1019
|
-
|
|
1021
|
+
const o = e, a = u, l = o.readOnly || o.property.readOnly, c = "items" in o.property ? o.property.items.enum : o.property.enum, r = (p) => {
|
|
1022
|
+
a("update:modelValue", p);
|
|
1020
1023
|
};
|
|
1021
1024
|
return Xe(() => {
|
|
1022
|
-
|
|
1025
|
+
o.modelValue || a(
|
|
1023
1026
|
"update:modelValue",
|
|
1024
|
-
"items" in
|
|
1027
|
+
"items" in o.property ? [] : ""
|
|
1025
1028
|
);
|
|
1026
1029
|
}), (p, d) => (n(), s("div", {
|
|
1027
1030
|
class: "options",
|
|
@@ -1030,12 +1033,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1030
1033
|
"grid-template-columns": "repeat(var(--columns), 1fr)"
|
|
1031
1034
|
})
|
|
1032
1035
|
}, [
|
|
1033
|
-
(n(!0), s(Y, null, z(t(c), (
|
|
1034
|
-
key: `option-${
|
|
1036
|
+
(n(!0), s(Y, null, z(t(c), (v) => (n(), s("div", {
|
|
1037
|
+
key: `option-${v}`,
|
|
1035
1038
|
class: "options__checkbox"
|
|
1036
1039
|
}, [
|
|
1037
1040
|
L($n, x({ ref_for: !0 }, {
|
|
1038
|
-
value:
|
|
1041
|
+
value: v,
|
|
1039
1042
|
readOnly: t(l),
|
|
1040
1043
|
property: e.property
|
|
1041
1044
|
}, {
|
|
@@ -1045,7 +1048,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1045
1048
|
]))), 128))
|
|
1046
1049
|
], 4));
|
|
1047
1050
|
}
|
|
1048
|
-
}), Vn = /* @__PURE__ */
|
|
1051
|
+
}), Vn = /* @__PURE__ */ E(kn, [["__scopeId", "data-v-b22b359b"]]), Cn = { class: "switch-wrapper" }, On = { key: 1 }, An = {
|
|
1049
1052
|
inheritAttrs: !1
|
|
1050
1053
|
}, In = /* @__PURE__ */ M({
|
|
1051
1054
|
...An,
|
|
@@ -1061,11 +1064,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1061
1064
|
},
|
|
1062
1065
|
emits: ["update:modelValue", "change"],
|
|
1063
1066
|
setup(e, { emit: u }) {
|
|
1064
|
-
const
|
|
1065
|
-
c || (
|
|
1067
|
+
const o = e, a = u, l = o.property, c = o.readOnly || l?.readOnly, r = () => {
|
|
1068
|
+
c || (a("change", !o.modelValue), a("update:modelValue", !o.modelValue));
|
|
1066
1069
|
};
|
|
1067
1070
|
return (p, d) => {
|
|
1068
|
-
const
|
|
1071
|
+
const v = ee("clickable");
|
|
1069
1072
|
return n(), s("div", Cn, [
|
|
1070
1073
|
K((n(), s("a", {
|
|
1071
1074
|
class: U([
|
|
@@ -1083,7 +1086,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1083
1086
|
])
|
|
1084
1087
|
}, null, 2)
|
|
1085
1088
|
], 2)), [
|
|
1086
|
-
[
|
|
1089
|
+
[v, {
|
|
1087
1090
|
blocked: t(c)
|
|
1088
1091
|
}]
|
|
1089
1092
|
]),
|
|
@@ -1091,7 +1094,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1091
1094
|
]);
|
|
1092
1095
|
};
|
|
1093
1096
|
}
|
|
1094
|
-
}), Bn = /* @__PURE__ */
|
|
1097
|
+
}), Bn = /* @__PURE__ */ E(In, [["__scopeId", "data-v-ae45597d"]]), Sn = { class: "picture" }, wn = { style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" } }, Tn = ["src", "alt"], jn = {
|
|
1095
1098
|
key: 0,
|
|
1096
1099
|
class: "picture__meta"
|
|
1097
1100
|
}, Rn = ["src"], qn = { key: 5 }, Ln = /* @__PURE__ */ M({
|
|
@@ -1109,37 +1112,37 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1109
1112
|
height: { default: "100%" }
|
|
1110
1113
|
},
|
|
1111
1114
|
setup(e) {
|
|
1112
|
-
const u = e,
|
|
1115
|
+
const u = e, o = G(() => u.fileId ? `${Je}/file/${u.fileId}/picture` : u.url || u.modelValue), a = X(!1);
|
|
1113
1116
|
return (l, c) => {
|
|
1114
1117
|
const r = ee("overlay");
|
|
1115
1118
|
return n(), s("figure", Sn, [
|
|
1116
|
-
|
|
1119
|
+
o.value && a.value ? (n(), $(Fe, {
|
|
1117
1120
|
key: 0,
|
|
1118
1121
|
to: "main"
|
|
1119
1122
|
}, [
|
|
1120
1123
|
K((n(), s("div", wn, [
|
|
1121
1124
|
O("img", {
|
|
1122
|
-
src:
|
|
1125
|
+
src: o.value,
|
|
1123
1126
|
alt: e.alt,
|
|
1124
1127
|
style: {
|
|
1125
1128
|
maxHeight: "60vh",
|
|
1126
1129
|
objectFit: "contain"
|
|
1127
1130
|
},
|
|
1128
|
-
onClick: c[0] || (c[0] = (p) =>
|
|
1131
|
+
onClick: c[0] || (c[0] = (p) => a.value = !0)
|
|
1129
1132
|
}, null, 8, Tn),
|
|
1130
1133
|
e.meta?.owner ? (n(), s("div", jn, V(l.t("created_by")) + " " + V(e.meta.owner.name) + " em " + V(l.formatDateTime(e.meta.created_at, { hours: !0 })), 1)) : h("", !0)
|
|
1131
1134
|
])), [
|
|
1132
1135
|
[r, {
|
|
1133
1136
|
layer: 60,
|
|
1134
1137
|
click: () => {
|
|
1135
|
-
|
|
1138
|
+
a.value = !1;
|
|
1136
1139
|
}
|
|
1137
1140
|
}]
|
|
1138
1141
|
])
|
|
1139
1142
|
])) : h("", !0),
|
|
1140
|
-
|
|
1143
|
+
o.value ? (n(), s("img", {
|
|
1141
1144
|
key: 1,
|
|
1142
|
-
src:
|
|
1145
|
+
src: o.value,
|
|
1143
1146
|
class: U([
|
|
1144
1147
|
"picture__image",
|
|
1145
1148
|
{ "picture__image--bordered": e.bordered },
|
|
@@ -1151,7 +1154,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1151
1154
|
height: e.height
|
|
1152
1155
|
}),
|
|
1153
1156
|
onClick: c[1] || (c[1] = () => {
|
|
1154
|
-
e.expandable && (
|
|
1157
|
+
e.expandable && (a.value = !0);
|
|
1155
1158
|
})
|
|
1156
1159
|
}, null, 14, Rn)) : 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", {
|
|
1157
1160
|
key: 4,
|
|
@@ -1190,16 +1193,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1190
1193
|
]);
|
|
1191
1194
|
};
|
|
1192
1195
|
}
|
|
1193
|
-
}), Le = /* @__PURE__ */
|
|
1196
|
+
}), Le = /* @__PURE__ */ E(Ln, [["__scopeId", "data-v-6705b19f"]]), xn = { class: "item" }, Mn = { class: "item__presentation" }, zn = {
|
|
1194
1197
|
key: 1,
|
|
1195
1198
|
class: "item__name"
|
|
1196
|
-
},
|
|
1199
|
+
}, En = { class: "item__size" }, Fn = /* @__PURE__ */ M({
|
|
1197
1200
|
__name: "aeria-file-item",
|
|
1198
1201
|
props: {
|
|
1199
1202
|
modelValue: {}
|
|
1200
1203
|
},
|
|
1201
1204
|
setup(e) {
|
|
1202
|
-
const u = e,
|
|
1205
|
+
const u = e, o = "_id" in u.modelValue ? u.modelValue : u.modelValue.file, a = (l) => {
|
|
1203
1206
|
const c = l === 0 ? 0 : Math.floor(Math.log(l) / Math.log(1024));
|
|
1204
1207
|
return `${(l / Math.pow(1024, c)).toFixed(2)} ${[
|
|
1205
1208
|
"B",
|
|
@@ -1210,35 +1213,35 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1210
1213
|
][c]}`;
|
|
1211
1214
|
};
|
|
1212
1215
|
return (l, c) => (n(), s("div", xn, [
|
|
1213
|
-
"_id" in t(
|
|
1216
|
+
"_id" in t(o) && t(o).type.startsWith("image/") ? (n(), $(Le, {
|
|
1214
1217
|
key: 0,
|
|
1215
1218
|
bordered: "",
|
|
1216
1219
|
expandable: "",
|
|
1217
|
-
alt: t(
|
|
1218
|
-
url: t(
|
|
1220
|
+
alt: t(o).name,
|
|
1221
|
+
url: t(o).link,
|
|
1219
1222
|
class: "item__picture"
|
|
1220
1223
|
}, null, 8, ["alt", "url"])) : h("", !0),
|
|
1221
1224
|
O("div", Mn, [
|
|
1222
|
-
"_id" in t(
|
|
1225
|
+
"_id" in t(o) ? (n(), $(H, {
|
|
1223
1226
|
key: 0,
|
|
1224
1227
|
icon: "arrow-square-out",
|
|
1225
|
-
href: t(
|
|
1228
|
+
href: t(o).link,
|
|
1226
1229
|
target: "_blank",
|
|
1227
1230
|
class: "item__name item__name--link"
|
|
1228
1231
|
}, {
|
|
1229
1232
|
default: y(() => [
|
|
1230
|
-
D(V(t(
|
|
1233
|
+
D(V(t(o).name), 1)
|
|
1231
1234
|
]),
|
|
1232
1235
|
_: 1
|
|
1233
|
-
}, 8, ["href"])) : (n(), s("div", zn, V(t(
|
|
1234
|
-
O("div",
|
|
1236
|
+
}, 8, ["href"])) : (n(), s("div", zn, V(t(o).name), 1)),
|
|
1237
|
+
O("div", En, V(a(t(o).size)), 1)
|
|
1235
1238
|
]),
|
|
1236
1239
|
O("div", null, [
|
|
1237
1240
|
C(l.$slots, "default", {}, void 0, !0)
|
|
1238
1241
|
])
|
|
1239
1242
|
]));
|
|
1240
1243
|
}
|
|
1241
|
-
}), Un = /* @__PURE__ */
|
|
1244
|
+
}), Un = /* @__PURE__ */ E(Fn, [["__scopeId", "data-v-85a82246"]]), Hn = { class: "file" }, Dn = ["accept", "multiple"], Qn = {
|
|
1242
1245
|
key: 1,
|
|
1243
1246
|
class: "file__list"
|
|
1244
1247
|
}, Gn = /* @__PURE__ */ M({
|
|
@@ -1257,10 +1260,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1257
1260
|
},
|
|
1258
1261
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1259
1262
|
setup(e, { emit: u }) {
|
|
1260
|
-
const
|
|
1261
|
-
if (
|
|
1262
|
-
return Array.isArray(
|
|
1263
|
-
}),
|
|
1263
|
+
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(() => {
|
|
1264
|
+
if (o.modelValue)
|
|
1265
|
+
return Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue];
|
|
1266
|
+
}), v = (_) => new Promise((g) => {
|
|
1264
1267
|
const i = new FileReader();
|
|
1265
1268
|
i.onload = () => g(i.result), i.readAsArrayBuffer(_);
|
|
1266
1269
|
}), m = async (_) => {
|
|
@@ -1269,9 +1272,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1269
1272
|
return;
|
|
1270
1273
|
const i = [];
|
|
1271
1274
|
for (const T of g) {
|
|
1272
|
-
const k = await
|
|
1275
|
+
const k = await v(T);
|
|
1273
1276
|
if (r) {
|
|
1274
|
-
const { data: { error:
|
|
1277
|
+
const { data: { error: F, result: I } } = await dt(`${Je}/${r.$id}/upload?name=${T.name}`, k, {
|
|
1275
1278
|
params: {
|
|
1276
1279
|
method: "POST",
|
|
1277
1280
|
headers: {
|
|
@@ -1280,7 +1283,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1280
1283
|
}
|
|
1281
1284
|
}
|
|
1282
1285
|
});
|
|
1283
|
-
if (
|
|
1286
|
+
if (F)
|
|
1284
1287
|
return;
|
|
1285
1288
|
i.unshift({
|
|
1286
1289
|
tempId: I.tempId,
|
|
@@ -1291,11 +1294,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1291
1294
|
file: T
|
|
1292
1295
|
});
|
|
1293
1296
|
}
|
|
1294
|
-
p ? l("update:modelValue", Array.isArray(
|
|
1297
|
+
p ? l("update:modelValue", Array.isArray(o.modelValue) ? i.concat(o.modelValue) : i) : l("update:modelValue", i[0]), l("update:content", i), l("change", i);
|
|
1295
1298
|
}, b = async (_) => {
|
|
1296
|
-
if (!
|
|
1299
|
+
if (!o.modelValue)
|
|
1297
1300
|
throw new Error();
|
|
1298
|
-
const g = Array.isArray(
|
|
1301
|
+
const g = Array.isArray(o.modelValue) ? o.modelValue.filter((i, T) => T !== _) : [];
|
|
1299
1302
|
p ? l("update:modelValue", g) : l("update:modelValue", null), l("update:content", g), l("change", g);
|
|
1300
1303
|
};
|
|
1301
1304
|
return (_, g) => {
|
|
@@ -1305,7 +1308,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1305
1308
|
key: 0,
|
|
1306
1309
|
ref: "file",
|
|
1307
1310
|
type: "file",
|
|
1308
|
-
accept: t(
|
|
1311
|
+
accept: t(a)?.accept?.join(","),
|
|
1309
1312
|
multiple: t(p),
|
|
1310
1313
|
onChange: m
|
|
1311
1314
|
}, null, 40, Dn)),
|
|
@@ -1319,7 +1322,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1319
1322
|
key: 0,
|
|
1320
1323
|
reactive: "",
|
|
1321
1324
|
icon: "trash",
|
|
1322
|
-
onClick: (
|
|
1325
|
+
onClick: (F) => b(k)
|
|
1323
1326
|
}, null, 8, ["onClick"])), [
|
|
1324
1327
|
[i]
|
|
1325
1328
|
])
|
|
@@ -1330,7 +1333,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1330
1333
|
]);
|
|
1331
1334
|
};
|
|
1332
1335
|
}
|
|
1333
|
-
}), Wn = /* @__PURE__ */
|
|
1336
|
+
}), Wn = /* @__PURE__ */ E(Gn, [["__scopeId", "data-v-9950a715"]]), Yn = { class: "container" }, Kn = {
|
|
1334
1337
|
key: 1,
|
|
1335
1338
|
class: "container__footer"
|
|
1336
1339
|
}, Xn = /* @__PURE__ */ M({
|
|
@@ -1340,11 +1343,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1340
1343
|
},
|
|
1341
1344
|
emits: ["endReached"],
|
|
1342
1345
|
setup(e, { emit: u }) {
|
|
1343
|
-
const
|
|
1346
|
+
const o = e, a = u, l = X(null), c = o.observeScroll ? He(l, {
|
|
1344
1347
|
antecipate: 100
|
|
1345
1348
|
}).reachedEnd : null;
|
|
1346
1349
|
return c !== null && ae(c, (r) => {
|
|
1347
|
-
r &&
|
|
1350
|
+
r && a("endReached", r);
|
|
1348
1351
|
}), (r, p) => (n(), s("div", Yn, [
|
|
1349
1352
|
r.$slots.default ? (n(), s("div", {
|
|
1350
1353
|
key: 0,
|
|
@@ -1359,7 +1362,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1359
1362
|
])) : h("", !0)
|
|
1360
1363
|
]));
|
|
1361
1364
|
}
|
|
1362
|
-
}), Ge = /* @__PURE__ */
|
|
1365
|
+
}), Ge = /* @__PURE__ */ E(Xn, [["__scopeId", "data-v-c86e2d2a"]]), Jn = { class: "item__values" }, Zn = /* @__PURE__ */ M({
|
|
1363
1366
|
__name: "aeria-search-item",
|
|
1364
1367
|
props: {
|
|
1365
1368
|
item: {},
|
|
@@ -1370,29 +1373,29 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1370
1373
|
},
|
|
1371
1374
|
emits: ["update:modelValue", "change"],
|
|
1372
1375
|
setup(e, { emit: u }) {
|
|
1373
|
-
const
|
|
1376
|
+
const o = Ce(), a = e, l = u, c = a.property, r = se(c);
|
|
1374
1377
|
xe();
|
|
1375
|
-
const p = G(() =>
|
|
1378
|
+
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 = () => {
|
|
1376
1379
|
if (p.value)
|
|
1377
1380
|
return;
|
|
1378
1381
|
const b = (g) => g.filter((i) => !!i._id);
|
|
1379
1382
|
let _;
|
|
1380
|
-
"items" in c ?
|
|
1381
|
-
},
|
|
1383
|
+
"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);
|
|
1384
|
+
}, v = async (b) => {
|
|
1382
1385
|
r.purge && b?.purge;
|
|
1383
1386
|
const _ = () => {
|
|
1384
|
-
const g = Array.isArray(
|
|
1387
|
+
const g = Array.isArray(a.modelValue) ? Array.from(a.modelValue) : [], i = g.findIndex((T) => T._id === a.item._id);
|
|
1385
1388
|
return g.splice(i, 1), g;
|
|
1386
1389
|
};
|
|
1387
1390
|
l("update:modelValue", "items" in c ? _() : null);
|
|
1388
1391
|
}, m = () => {
|
|
1389
|
-
if (
|
|
1390
|
-
|
|
1391
|
-
path: `/dashboard/c/${r.$ref}/${
|
|
1392
|
+
if (a.readOnly) {
|
|
1393
|
+
o.push({
|
|
1394
|
+
path: `/dashboard/c/${r.$ref}/${a.item._id}`
|
|
1392
1395
|
});
|
|
1393
1396
|
return;
|
|
1394
1397
|
}
|
|
1395
|
-
return p.value ?
|
|
1398
|
+
return p.value ? v() : d();
|
|
1396
1399
|
};
|
|
1397
1400
|
return (b, _) => {
|
|
1398
1401
|
const g = ee("clickable");
|
|
@@ -1420,7 +1423,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1420
1423
|
]);
|
|
1421
1424
|
};
|
|
1422
1425
|
}
|
|
1423
|
-
}), ze = /* @__PURE__ */
|
|
1426
|
+
}), ze = /* @__PURE__ */ E(Zn, [["__scopeId", "data-v-63761718"]]), Pn = { class: "search__panel" }, Nn = { key: 1 }, ea = { key: 0 }, ta = { key: 1 }, na = { class: "search__summary" }, aa = {
|
|
1424
1427
|
key: 1,
|
|
1425
1428
|
class: "search"
|
|
1426
1429
|
}, oa = { key: 0 }, Re = 10, la = /* @__PURE__ */ M({
|
|
@@ -1438,21 +1441,21 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1438
1441
|
},
|
|
1439
1442
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1440
1443
|
setup(e, { emit: u }) {
|
|
1441
|
-
const
|
|
1442
|
-
fe(Te, se(
|
|
1443
|
-
const b = X(
|
|
1444
|
+
const o = e, a = ne("meta"), l = se(o.property), c = o.panel !== void 0 ? G(() => o.panel) : X(!1), r = u, p = ne(se(o.property).$ref), d = we(), v = d ? xe() : null, m = l.indexes;
|
|
1445
|
+
fe(Te, se(o.property).$ref), fe("innerInputLabel", !0), fe("omitInputLabels", !0);
|
|
1446
|
+
const b = X(o.modelValue), _ = X({
|
|
1444
1447
|
data: [],
|
|
1445
1448
|
pagination: {}
|
|
1446
|
-
}), g = G(() => _.value.data), i = G(() => _.value.pagination), T = X(0), k = X(!1),
|
|
1449
|
+
}), g = G(() => _.value.data), i = G(() => _.value.pagination), T = X(0), k = X(!1), F = X(""), I = () => {
|
|
1447
1450
|
const Z = {};
|
|
1448
1451
|
if (d) {
|
|
1449
1452
|
const P = t(d);
|
|
1450
|
-
Z[P] =
|
|
1453
|
+
Z[P] = v;
|
|
1451
1454
|
}
|
|
1452
1455
|
return l.constraints ? ht(l.constraints, Z) : {};
|
|
1453
1456
|
}, w = () => {
|
|
1454
1457
|
g.value.length < i.value.recordsTotal && (T.value += 1, N());
|
|
1455
|
-
}, J = async () =>
|
|
1458
|
+
}, J = async () => F.value.length === 0 ? p.$actions.custom("getAll", {
|
|
1456
1459
|
limit: Re,
|
|
1457
1460
|
offset: T.value * Re,
|
|
1458
1461
|
filters: I()
|
|
@@ -1461,7 +1464,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1461
1464
|
offset: T.value * Re,
|
|
1462
1465
|
filters: {
|
|
1463
1466
|
$text: {
|
|
1464
|
-
$search: `"${
|
|
1467
|
+
$search: `"${F.value}"`,
|
|
1465
1468
|
$caseSensitive: !1
|
|
1466
1469
|
},
|
|
1467
1470
|
...I()
|
|
@@ -1471,7 +1474,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1471
1474
|
return;
|
|
1472
1475
|
const { error: Z, result: P } = await J();
|
|
1473
1476
|
if (Z) {
|
|
1474
|
-
|
|
1477
|
+
a.$actions.spawnToast({
|
|
1475
1478
|
text: "Request failed",
|
|
1476
1479
|
icon: "warning"
|
|
1477
1480
|
});
|
|
@@ -1489,20 +1492,20 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1489
1492
|
}, me = () => {
|
|
1490
1493
|
T.value = 0, _.value.data.splice(0), "effect" in c ? r("update:panel", !1) : c.value = !1;
|
|
1491
1494
|
};
|
|
1492
|
-
ae(() =>
|
|
1495
|
+
ae(() => F.value.length, (Z, P) => {
|
|
1493
1496
|
Z && !P && N();
|
|
1494
1497
|
}), Ue(() => {
|
|
1495
|
-
|
|
1498
|
+
o.selectOnly && N();
|
|
1496
1499
|
});
|
|
1497
1500
|
const A = (Z) => {
|
|
1498
|
-
b.value = Z,
|
|
1501
|
+
b.value = Z, o.selectOnly || r("update:modelValue", Z);
|
|
1499
1502
|
}, j = () => {
|
|
1500
1503
|
me(), r("update:modelValue", b.value);
|
|
1501
1504
|
};
|
|
1502
1505
|
return (Z, P) => {
|
|
1503
|
-
const
|
|
1506
|
+
const f = ee("clickable");
|
|
1504
1507
|
return n(), s("div", null, [
|
|
1505
|
-
t(c) ? (n(), $(
|
|
1508
|
+
t(c) ? (n(), $(Fe, {
|
|
1506
1509
|
key: 0,
|
|
1507
1510
|
to: "main"
|
|
1508
1511
|
}, [
|
|
@@ -1530,8 +1533,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1530
1533
|
default: y(() => [
|
|
1531
1534
|
O("div", Pn, [
|
|
1532
1535
|
L(_e, x({
|
|
1533
|
-
modelValue:
|
|
1534
|
-
"onUpdate:modelValue": P[0] || (P[0] = (
|
|
1536
|
+
modelValue: F.value,
|
|
1537
|
+
"onUpdate:modelValue": P[0] || (P[0] = (B) => F.value = B)
|
|
1535
1538
|
}, {
|
|
1536
1539
|
property: {
|
|
1537
1540
|
type: "string",
|
|
@@ -1545,19 +1548,19 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1545
1548
|
onEndReached: w
|
|
1546
1549
|
}, {
|
|
1547
1550
|
default: y(() => [
|
|
1548
|
-
(n(!0), s(Y, null, z(g.value, (
|
|
1549
|
-
item:
|
|
1551
|
+
(n(!0), s(Y, null, z(g.value, (B) => (n(), $(ze, x({ ref_for: !0 }, {
|
|
1552
|
+
item: B,
|
|
1550
1553
|
indexes: t(m),
|
|
1551
1554
|
property: e.property
|
|
1552
1555
|
}, {
|
|
1553
|
-
key: `matching-${
|
|
1556
|
+
key: `matching-${B._id}`,
|
|
1554
1557
|
modelValue: b.value,
|
|
1555
1558
|
"onUpdate:modelValue": P[1] || (P[1] = (W) => b.value = W)
|
|
1556
1559
|
}), null, 16, ["modelValue"]))), 128))
|
|
1557
1560
|
]),
|
|
1558
1561
|
_: 1
|
|
1559
1562
|
})) : (n(), s("div", Nn, [
|
|
1560
|
-
k.value ? (n(), s("div", ea, V(t(R)("searching", { capitalize: !0 })) + "... ", 1)) : !t(p).loading.getAll && Object.values(
|
|
1563
|
+
k.value ? (n(), s("div", ea, V(t(R)("searching", { capitalize: !0 })) + "... ", 1)) : !t(p).loading.getAll && Object.values(F.value).filter((B) => !!B).length > 0 && !("items" in e.property && e.modelValue?.length || !Array.isArray(e.modelValue) && e.modelValue?._id) ? (n(), s("div", ta, V(t(R)("no_results", { capitalize: !0 })), 1)) : h("", !0)
|
|
1561
1564
|
]))
|
|
1562
1565
|
]),
|
|
1563
1566
|
O("div", na, V(t(R)("showing", { capitalize: !0 })) + " " + V(g.value.length) + " " + V(t(R)("of")) + " " + V(i.value.recordsTotal), 1)
|
|
@@ -1569,14 +1572,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1569
1572
|
L(Ge, null, ie({
|
|
1570
1573
|
default: y(() => [
|
|
1571
1574
|
"items" in e.property ? (n(), s("div", oa, [
|
|
1572
|
-
(n(!0), s(Y, null, z(e.modelValue, (
|
|
1573
|
-
item:
|
|
1575
|
+
(n(!0), s(Y, null, z(e.modelValue, (B) => (n(), $(ze, x({ ref_for: !0 }, {
|
|
1576
|
+
item: B,
|
|
1574
1577
|
indexes: t(m),
|
|
1575
1578
|
property: e.property,
|
|
1576
1579
|
readOnly: e.readOnly,
|
|
1577
1580
|
modelValue: e.modelValue
|
|
1578
1581
|
}, {
|
|
1579
|
-
key: `selected-${
|
|
1582
|
+
key: `selected-${B._id}`,
|
|
1580
1583
|
"onUpdate:modelValue": A
|
|
1581
1584
|
}), null, 16))), 128))
|
|
1582
1585
|
])) : e.modelValue?._id ? (n(), $(ze, x({ key: 1 }, {
|
|
@@ -1601,7 +1604,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1601
1604
|
]),
|
|
1602
1605
|
_: 1
|
|
1603
1606
|
})), [
|
|
1604
|
-
[
|
|
1607
|
+
[f]
|
|
1605
1608
|
])
|
|
1606
1609
|
]),
|
|
1607
1610
|
key: "0"
|
|
@@ -1611,8 +1614,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1611
1614
|
]);
|
|
1612
1615
|
};
|
|
1613
1616
|
}
|
|
1614
|
-
}), ia = /* @__PURE__ */
|
|
1615
|
-
const
|
|
1617
|
+
}), ia = /* @__PURE__ */ E(la, [["__scopeId", "data-v-7a35daa0"]]), We = (e, u) => {
|
|
1618
|
+
const o = "items" in e ? e.items : e, a = {
|
|
1616
1619
|
options: Vn,
|
|
1617
1620
|
select: Qe,
|
|
1618
1621
|
switch: Bn,
|
|
@@ -1621,10 +1624,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1621
1624
|
input: _e,
|
|
1622
1625
|
form: Me
|
|
1623
1626
|
}, l = (() => {
|
|
1624
|
-
if ("type" in
|
|
1625
|
-
if (
|
|
1627
|
+
if ("type" in o) {
|
|
1628
|
+
if (o.type === "object")
|
|
1626
1629
|
return "form";
|
|
1627
|
-
if (
|
|
1630
|
+
if (o.type === "boolean")
|
|
1628
1631
|
return "switch";
|
|
1629
1632
|
}
|
|
1630
1633
|
if ("element" in e) {
|
|
@@ -1634,17 +1637,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1634
1637
|
return "select";
|
|
1635
1638
|
}
|
|
1636
1639
|
const c = se(e);
|
|
1637
|
-
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in e && e.uniqueItems ? "options" : "enum" in
|
|
1640
|
+
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in e && e.uniqueItems ? "options" : "enum" in o ? "select" : "input";
|
|
1638
1641
|
})();
|
|
1639
|
-
return u[l] ? u[l] :
|
|
1640
|
-
}, sa = (e, u,
|
|
1642
|
+
return u[l] ? u[l] : a[l];
|
|
1643
|
+
}, sa = (e, u, o) => {
|
|
1641
1644
|
e ??= [];
|
|
1642
|
-
const
|
|
1643
|
-
if ("$ref" in
|
|
1644
|
-
const l = ne(
|
|
1645
|
+
const a = "items" in u ? u.items : u;
|
|
1646
|
+
if ("$ref" in a) {
|
|
1647
|
+
const l = ne(a.$ref, o), c = ke(l.$freshItem);
|
|
1645
1648
|
return e.push(c);
|
|
1646
1649
|
}
|
|
1647
|
-
return "properties" in
|
|
1650
|
+
return "properties" in a ? e.push(bt(a)) : "type" in a && a.type === "boolean" ? e.push({}) : e.push(null);
|
|
1648
1651
|
}, ra = (e, u) => {
|
|
1649
1652
|
e.splice(u, 1);
|
|
1650
1653
|
}, ua = {
|
|
@@ -1689,59 +1692,59 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1689
1692
|
},
|
|
1690
1693
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
1691
1694
|
setup(e, { emit: u }) {
|
|
1692
|
-
const
|
|
1695
|
+
const o = De(), a = e, l = u;
|
|
1693
1696
|
Xe(() => {
|
|
1694
|
-
|
|
1697
|
+
a.modelValue || l("update:modelValue", a.property && "items" in a.property ? [] : {});
|
|
1695
1698
|
});
|
|
1696
|
-
const c =
|
|
1699
|
+
const c = a.property && se(a.property), r = c ? c.$ref : a.collection || we(), p = a.readOnly || a.property?.readOnly, d = r ? ne(t(r)) : null;
|
|
1697
1700
|
!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");
|
|
1698
|
-
const
|
|
1699
|
-
const
|
|
1700
|
-
if (!
|
|
1701
|
+
const v = X(!1), m = G(() => {
|
|
1702
|
+
const f = !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;
|
|
1703
|
+
if (!f)
|
|
1701
1704
|
return;
|
|
1702
|
-
const
|
|
1703
|
-
if (
|
|
1705
|
+
const B = {};
|
|
1706
|
+
if (a.includeId && (B._id = {
|
|
1704
1707
|
type: "string",
|
|
1705
1708
|
readOnly: !0
|
|
1706
|
-
}),
|
|
1709
|
+
}), a.includeTimestamps) {
|
|
1707
1710
|
const W = {
|
|
1708
1711
|
type: "string",
|
|
1709
1712
|
format: "date-time",
|
|
1710
1713
|
readOnly: !0,
|
|
1711
1714
|
isTimestamp: !0
|
|
1712
1715
|
};
|
|
1713
|
-
|
|
1716
|
+
f.created_at || (B.created_at = W), f.created_at || (B.updated_at = W);
|
|
1714
1717
|
}
|
|
1715
|
-
return Object.assign(
|
|
1716
|
-
}), b = G(() =>
|
|
1717
|
-
const
|
|
1718
|
-
return
|
|
1719
|
-
}, g = G(() =>
|
|
1720
|
-
r && fe(Te, r), fe("searchOnly",
|
|
1721
|
-
const w = (
|
|
1722
|
-
|
|
1718
|
+
return Object.assign(B, f), B;
|
|
1719
|
+
}), b = G(() => a.layout || d?.description.formLayout), _ = (f) => {
|
|
1720
|
+
const B = re(f, a[f]);
|
|
1721
|
+
return a[f] && fe(f, a[f]), B;
|
|
1722
|
+
}, g = G(() => a.validationErrors !== null ? a.validationErrors : d?.validationErrors), i = _("formComponents") || {}, T = _("propertyComponents") || {}, k = _("omitFormHeader"), F = _("omitInputLabels"), I = _("innerInputLabel");
|
|
1723
|
+
r && fe(Te, r), fe("searchOnly", a.searchOnly);
|
|
1724
|
+
const w = (f) => m.value ? Object.entries(m.value).filter(([B, W]) => !W.noForm && f([
|
|
1725
|
+
B,
|
|
1723
1726
|
W
|
|
1724
|
-
])) : null, J = (
|
|
1725
|
-
if (
|
|
1727
|
+
])) : null, J = (f, B) => {
|
|
1728
|
+
if (a.searchOnly || !r || a.includeId && f === "_id" || a.includeTimestamps && B.isTimestamp)
|
|
1726
1729
|
return !0;
|
|
1727
|
-
const W =
|
|
1728
|
-
return !W || W.includes(
|
|
1729
|
-
}, N = w(([
|
|
1730
|
-
const W = [], te = b.value?.fields?.[
|
|
1731
|
-
if (!
|
|
1730
|
+
const W = a.property && "properties" in a.property ? a.property.form : d?.description?.form;
|
|
1731
|
+
return !W || W.includes(f);
|
|
1732
|
+
}, N = w(([f, B]) => J(f, B) && (!B.readOnly || a.readOnly)), ue = Se(), ce = {}, $e = (f, B) => {
|
|
1733
|
+
const W = [], te = b.value?.fields?.[f];
|
|
1734
|
+
if (!B)
|
|
1732
1735
|
return;
|
|
1733
|
-
if (te?.if && !
|
|
1736
|
+
if (te?.if && !a.searchOnly) {
|
|
1734
1737
|
const q = qe(
|
|
1735
|
-
|
|
1738
|
+
a.modelValue,
|
|
1736
1739
|
te.if
|
|
1737
1740
|
);
|
|
1738
|
-
q.satisfied || (ce[
|
|
1741
|
+
q.satisfied || (ce[f] && (d ? a.modelValue[f] = typeof d.$freshItem[f] == "object" ? ke(d.$freshItem[f]) : d.$freshItem[f] : a.modelValue[f] = [
|
|
1739
1742
|
void 0,
|
|
1740
1743
|
null
|
|
1741
|
-
].includes(
|
|
1744
|
+
].includes(a.modelValue[f]) ? null : a.modelValue[f].constructor()), W.push("display: none")), ce[f] = q.satisfied;
|
|
1742
1745
|
}
|
|
1743
|
-
const
|
|
1744
|
-
return W.push(`--field-span: ${
|
|
1746
|
+
const S = ue.value.md && te?.span || 6;
|
|
1747
|
+
return W.push(`--field-span: ${S}`, "grid-column: span var(--field-span) / span var(--field-span)"), te && (te.verticalSpacing && W.push([
|
|
1745
1748
|
`--vertical-spacing: ${te.verticalSpacing}`,
|
|
1746
1749
|
"padding: var(--vertical-spacing) 0"
|
|
1747
1750
|
]), te.separator && W.push([
|
|
@@ -1750,111 +1753,123 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1750
1753
|
"padding: 1rem 0",
|
|
1751
1754
|
"margin: 1rem 0"
|
|
1752
1755
|
])), W.join(";");
|
|
1753
|
-
}, me = (
|
|
1754
|
-
if (typeof
|
|
1755
|
-
switch (
|
|
1756
|
+
}, me = (f) => f === null || f instanceof Object && !Object.keys(f).length, A = G(() => {
|
|
1757
|
+
if (typeof a.required < "u")
|
|
1758
|
+
switch (a.required) {
|
|
1756
1759
|
case !0:
|
|
1757
1760
|
return;
|
|
1758
1761
|
case !1:
|
|
1759
1762
|
return [];
|
|
1760
1763
|
default:
|
|
1761
|
-
return
|
|
1764
|
+
return a.required;
|
|
1762
1765
|
}
|
|
1763
|
-
return
|
|
1764
|
-
}), j = G(() =>
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1766
|
+
return a.property && "required" in a.property ? a.property.required : a.collection ? d.description.required : void 0;
|
|
1767
|
+
}), j = G(() => {
|
|
1768
|
+
let f;
|
|
1769
|
+
if (a.form)
|
|
1770
|
+
f = a.form;
|
|
1771
|
+
else if (a.property && "properties" in a.property)
|
|
1772
|
+
f = a.property.properties;
|
|
1773
|
+
else
|
|
1774
|
+
return !0;
|
|
1775
|
+
const { error: B } = _t(a.modelValue, {
|
|
1776
|
+
type: "object",
|
|
1777
|
+
required: A.value,
|
|
1778
|
+
properties: f
|
|
1779
|
+
}, {
|
|
1780
|
+
coerce: !0,
|
|
1781
|
+
tolerateExtraneous: !0
|
|
1782
|
+
});
|
|
1783
|
+
return !B;
|
|
1784
|
+
}), Z = (f, B) => g.value?.[f] && (typeof g.value[f].index != "number" || g.value[f].index === B) ? g.value[f].errors : null, P = (f) => {
|
|
1785
|
+
if (!a.focus || p || f.readOnly)
|
|
1771
1786
|
return !1;
|
|
1772
|
-
if (!
|
|
1773
|
-
return
|
|
1787
|
+
if (!a.parentPropertyName && !a.parentCollection && !v.value)
|
|
1788
|
+
return v.value = !0, !0;
|
|
1774
1789
|
};
|
|
1775
|
-
return (
|
|
1790
|
+
return (f, B) => {
|
|
1776
1791
|
const W = ee("clickable"), te = ee("focus");
|
|
1777
1792
|
return n(), s("form", {
|
|
1778
1793
|
class: "form",
|
|
1779
1794
|
style: ve(`row-gap: ${t(k) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1780
1795
|
}, [
|
|
1781
|
-
|
|
1782
|
-
C(
|
|
1796
|
+
f.$slots.header && !t(k) ? (n(), s("header", ua, [
|
|
1797
|
+
C(f.$slots, "header", {}, void 0, !0)
|
|
1783
1798
|
])) : h("", !0),
|
|
1784
|
-
C(
|
|
1799
|
+
C(f.$slots, "default", {}, void 0, !0),
|
|
1785
1800
|
O("fieldset", ca, [
|
|
1786
|
-
(n(!0), s(Y, null, z(t(N), ([
|
|
1787
|
-
key: `field-${
|
|
1788
|
-
style: ve($e(
|
|
1801
|
+
(n(!0), s(Y, null, z(t(N), ([S, q]) => (n(), s("div", {
|
|
1802
|
+
key: `field-${S}`,
|
|
1803
|
+
style: ve($e(S, q)),
|
|
1789
1804
|
class: U({
|
|
1790
1805
|
form__field: !0,
|
|
1791
1806
|
"form__field--form": "properties" in q
|
|
1792
1807
|
})
|
|
1793
1808
|
}, [
|
|
1794
|
-
(!("type" in q) || q.type !== "boolean" || e.searchOnly) && !q.noLabel && !t(
|
|
1809
|
+
(!("type" in q) || q.type !== "boolean" || e.searchOnly) && !q.noLabel && !t(F) && !t(I) ? (n(), s("label", da, [
|
|
1795
1810
|
O("div", {
|
|
1796
1811
|
class: U({
|
|
1797
1812
|
"form__field-label": !0,
|
|
1798
1813
|
"form__field-label--section": "items" in q ? "properties" in q.items : "properties" in q,
|
|
1799
|
-
"form__field-required-hint": e.highlightRequired && !t(p) && !e.searchOnly && (!A.value || t(je)(
|
|
1814
|
+
"form__field-required-hint": e.highlightRequired && !t(p) && !e.searchOnly && (!A.value || t(je)(S, A.value, e.modelValue))
|
|
1800
1815
|
})
|
|
1801
|
-
}, V(q.description || t(R)(
|
|
1816
|
+
}, V(q.description || t(R)(S)), 3),
|
|
1802
1817
|
q.hint ? (n(), s("div", {
|
|
1803
1818
|
key: 0,
|
|
1804
1819
|
innerHTML: q.hint
|
|
1805
1820
|
}, null, 8, ma)) : h("", !0)
|
|
1806
1821
|
])) : h("", !0),
|
|
1807
|
-
|
|
1822
|
+
f.$slots[`field-${S}`] ? C(f.$slots, `field-${S}`, x({
|
|
1808
1823
|
key: 1,
|
|
1809
1824
|
ref_for: !0
|
|
1810
1825
|
}, {
|
|
1811
1826
|
readOnly: t(p),
|
|
1812
1827
|
property: q,
|
|
1813
|
-
propertyName:
|
|
1828
|
+
propertyName: S,
|
|
1814
1829
|
modelValue: e.modelValue
|
|
1815
|
-
}), void 0, !0) : e.layout?.fields?.[
|
|
1830
|
+
}), void 0, !0) : e.layout?.fields?.[S]?.component && t(T)[e.layout.fields[S].component.name] ? (n(), $(pe(t(T)[e.layout.fields[S].component.name]), x({
|
|
1816
1831
|
key: 2,
|
|
1817
|
-
modelValue: e.modelValue[
|
|
1818
|
-
"onUpdate:modelValue": (Q) => e.modelValue[
|
|
1832
|
+
modelValue: e.modelValue[S],
|
|
1833
|
+
"onUpdate:modelValue": (Q) => e.modelValue[S] = Q
|
|
1819
1834
|
}, { ref_for: !0 }, {
|
|
1820
1835
|
readOnly: t(p),
|
|
1821
1836
|
property: q,
|
|
1822
|
-
propertyName:
|
|
1823
|
-
required: !e.searchOnly && (!A.value || t(je)(
|
|
1824
|
-
...e.layout.fields[
|
|
1837
|
+
propertyName: S,
|
|
1838
|
+
required: !e.searchOnly && (!A.value || t(je)(S, A.value, e.modelValue)),
|
|
1839
|
+
...e.layout.fields[S].component.props || {}
|
|
1825
1840
|
}, {
|
|
1826
|
-
onInput: (Q) => l("input",
|
|
1827
|
-
onChange:
|
|
1841
|
+
onInput: (Q) => l("input", S),
|
|
1842
|
+
onChange: B[0] || (B[0] = (Q) => l("change", Q))
|
|
1828
1843
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in q && ["date", "date-time"].includes(q.format) && e.searchOnly ? (n(), s("div", {
|
|
1829
1844
|
key: 3,
|
|
1830
1845
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1831
|
-
onInput: (Q) => l("input",
|
|
1832
|
-
onChange:
|
|
1846
|
+
onInput: (Q) => l("input", S),
|
|
1847
|
+
onChange: B[1] || (B[1] = (Q) => l("change", Q))
|
|
1833
1848
|
}, [
|
|
1834
1849
|
L(_e, x({
|
|
1835
|
-
modelValue: e.modelValue[
|
|
1836
|
-
"onUpdate:modelValue": (Q) => e.modelValue[
|
|
1850
|
+
modelValue: e.modelValue[S].$gte,
|
|
1851
|
+
"onUpdate:modelValue": (Q) => e.modelValue[S].$gte = Q
|
|
1837
1852
|
}, { ref_for: !0 }, {
|
|
1838
1853
|
property: q,
|
|
1839
|
-
propertyName:
|
|
1854
|
+
propertyName: S
|
|
1840
1855
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1841
1856
|
L(_e, x({
|
|
1842
|
-
modelValue: e.modelValue[
|
|
1843
|
-
"onUpdate:modelValue": (Q) => e.modelValue[
|
|
1857
|
+
modelValue: e.modelValue[S].$lte,
|
|
1858
|
+
"onUpdate:modelValue": (Q) => e.modelValue[S].$lte = Q
|
|
1844
1859
|
}, { ref_for: !0 }, {
|
|
1845
1860
|
property: q,
|
|
1846
|
-
propertyName:
|
|
1861
|
+
propertyName: S
|
|
1847
1862
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1848
1863
|
], 40, pa)) : "type" in q && q.type === "boolean" && e.searchOnly ? (n(), s("div", fa, [
|
|
1849
1864
|
L(Qe, x({ ref_for: !0 }, {
|
|
1850
1865
|
property: q,
|
|
1851
|
-
propertyName:
|
|
1866
|
+
propertyName: S
|
|
1852
1867
|
}, {
|
|
1853
1868
|
"boolean-ref": "",
|
|
1854
|
-
"model-value": e.modelValue[
|
|
1855
|
-
onChange:
|
|
1869
|
+
"model-value": e.modelValue[S],
|
|
1870
|
+
onChange: B[2] || (B[2] = (Q) => l("change", Q)),
|
|
1856
1871
|
"onUpdate:modelValue": (Q) => {
|
|
1857
|
-
e.modelValue[
|
|
1872
|
+
e.modelValue[S] = Q;
|
|
1858
1873
|
}
|
|
1859
1874
|
}), {
|
|
1860
1875
|
default: y(() => [
|
|
@@ -1869,9 +1884,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1869
1884
|
small: "",
|
|
1870
1885
|
variant: "alt",
|
|
1871
1886
|
icon: "plus",
|
|
1872
|
-
disabled: !("inline" in q.items && q.items.inline) && (e.modelValue[
|
|
1887
|
+
disabled: !("inline" in q.items && q.items.inline) && (e.modelValue[S]?.length >= q.maxItems || me(e.modelValue[S]?.[e.modelValue[S]?.length - 1])),
|
|
1873
1888
|
onClick: Ie((Q) => {
|
|
1874
|
-
e.modelValue[
|
|
1889
|
+
e.modelValue[S] || (e.modelValue[S] = []), t(sa)(e.modelValue[S], q, t(o));
|
|
1875
1890
|
}, ["prevent"])
|
|
1876
1891
|
}, {
|
|
1877
1892
|
default: y(() => [
|
|
@@ -1880,16 +1895,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1880
1895
|
_: 1
|
|
1881
1896
|
}, 8, ["disabled", "onClick"])
|
|
1882
1897
|
])),
|
|
1883
|
-
e.modelValue[
|
|
1884
|
-
(n(!0), s(Y, null, z(e.modelValue[
|
|
1885
|
-
key: `rep-${
|
|
1898
|
+
e.modelValue[S]?.length > 0 ? (n(), s("div", _a, [
|
|
1899
|
+
(n(!0), s(Y, null, z(e.modelValue[S], (Q, ge) => (n(), s("div", {
|
|
1900
|
+
key: `rep-${S}-${t($t)(Q, ge)}`,
|
|
1886
1901
|
class: "form__array-item"
|
|
1887
1902
|
}, [
|
|
1888
1903
|
t(p) ? h("", !0) : K((n(), $(H, {
|
|
1889
1904
|
key: 0,
|
|
1890
1905
|
icon: "trash",
|
|
1891
1906
|
class: "form__array-remove",
|
|
1892
|
-
onClick: Ie((ye) => t(ra)(e.modelValue[
|
|
1907
|
+
onClick: Ie((ye) => t(ra)(e.modelValue[S], ge), ["prevent"])
|
|
1893
1908
|
}, {
|
|
1894
1909
|
default: y(() => [
|
|
1895
1910
|
D(V(t(R)("action.remove", { capitalize: !0 })), 1)
|
|
@@ -1899,93 +1914,93 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1899
1914
|
[W]
|
|
1900
1915
|
]),
|
|
1901
1916
|
(n(), $(pe(t(We)(q, t(i))), x({
|
|
1902
|
-
modelValue: e.modelValue[
|
|
1903
|
-
"onUpdate:modelValue": (ye) => e.modelValue[
|
|
1917
|
+
modelValue: e.modelValue[S][ge],
|
|
1918
|
+
"onUpdate:modelValue": (ye) => e.modelValue[S][ge] = ye
|
|
1904
1919
|
}, { ref_for: !0 }, {
|
|
1905
1920
|
readOnly: t(p),
|
|
1906
1921
|
property: q.items,
|
|
1907
|
-
propertyName:
|
|
1922
|
+
propertyName: S,
|
|
1908
1923
|
parentCollection: t(r),
|
|
1909
1924
|
parentPropertyName: e.parentPropertyName,
|
|
1910
|
-
required: !e.searchOnly && (!A.value || t(je)(
|
|
1911
|
-
validationErrors: Z(
|
|
1925
|
+
required: !e.searchOnly && (!A.value || t(je)(S, A.value, e.modelValue)),
|
|
1926
|
+
validationErrors: Z(S, ge),
|
|
1912
1927
|
...q.componentProps || {}
|
|
1913
1928
|
}, {
|
|
1914
|
-
onInput: (ye) => l("input",
|
|
1915
|
-
onChange:
|
|
1929
|
+
onInput: (ye) => l("input", S),
|
|
1930
|
+
onChange: B[3] || (B[3] = (ye) => l("change", ye))
|
|
1916
1931
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1917
1932
|
]))), 128))
|
|
1918
1933
|
])) : h("", !0)
|
|
1919
1934
|
])) : e.modelValue ? K((n(), $(pe(t(We)(q, t(i))), x({
|
|
1920
1935
|
key: 6,
|
|
1921
|
-
modelValue: e.modelValue[
|
|
1922
|
-
"onUpdate:modelValue": (Q) => e.modelValue[
|
|
1936
|
+
modelValue: e.modelValue[S],
|
|
1937
|
+
"onUpdate:modelValue": (Q) => e.modelValue[S] = Q
|
|
1923
1938
|
}, { ref_for: !0 }, {
|
|
1924
1939
|
readOnly: t(p),
|
|
1925
1940
|
property: q,
|
|
1926
|
-
propertyName:
|
|
1941
|
+
propertyName: S,
|
|
1927
1942
|
parentPropertyName: e.parentPropertyName,
|
|
1928
1943
|
parentCollection: t(r),
|
|
1929
|
-
required: !e.searchOnly && (!A.value || t(je)(
|
|
1944
|
+
required: !e.searchOnly && (!A.value || t(je)(S, A.value, e.modelValue)),
|
|
1930
1945
|
...q.componentProps || {},
|
|
1931
|
-
validationErrors: Z(
|
|
1946
|
+
validationErrors: Z(S)
|
|
1932
1947
|
}, {
|
|
1933
|
-
onInput: (Q) => l("input",
|
|
1934
|
-
onChange:
|
|
1935
|
-
onClipboardCopy:
|
|
1948
|
+
onInput: (Q) => l("input", S),
|
|
1949
|
+
onChange: B[4] || (B[4] = (Q) => l("change", Q)),
|
|
1950
|
+
onClipboardCopy: B[5] || (B[5] = (Q) => l("clipboardCopy", Q))
|
|
1936
1951
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1937
1952
|
[te, P(q)]
|
|
1938
1953
|
]) : h("", !0),
|
|
1939
|
-
g.value?.[
|
|
1940
|
-
g.value[
|
|
1941
|
-
g.value[
|
|
1954
|
+
g.value?.[S] ? (n(), s("div", $a, [
|
|
1955
|
+
g.value[S].type ? (n(), s("span", ga, V(t(R)(`validation_error.${g.value[S].type}`)), 1)) : h("", !0),
|
|
1956
|
+
g.value[S].detail ? (n(), s("span", ka, V(t(R)(g.value[S].detail)), 1)) : h("", !0)
|
|
1942
1957
|
])) : h("", !0)
|
|
1943
1958
|
], 6))), 128))
|
|
1944
1959
|
]),
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
C(
|
|
1960
|
+
f.$slots.after ? C(f.$slots, "after", { key: 1 }, void 0, !0) : h("", !0),
|
|
1961
|
+
f.$slots.footer ? (n(), s("div", Va, [
|
|
1962
|
+
C(f.$slots, "footer", oe(be({
|
|
1948
1963
|
isInsertReady: j.value
|
|
1949
1964
|
})), void 0, !0)
|
|
1950
1965
|
])) : h("", !0)
|
|
1951
1966
|
], 4);
|
|
1952
1967
|
};
|
|
1953
1968
|
}
|
|
1954
|
-
}), Me = /* @__PURE__ */
|
|
1969
|
+
}), Me = /* @__PURE__ */ E(Ca, [["__scopeId", "data-v-a4afcd70"]]), Oa = /* @__PURE__ */ M({
|
|
1955
1970
|
__name: "aeria-filter-panel",
|
|
1956
1971
|
emits: ["update:modelValue"],
|
|
1957
1972
|
setup(e, { emit: u }) {
|
|
1958
|
-
const
|
|
1959
|
-
if (
|
|
1960
|
-
const
|
|
1961
|
-
for (const m of Object.keys(
|
|
1962
|
-
m.startsWith(`${c}.`) && delete
|
|
1973
|
+
const o = u, a = xe(), l = Ce(), c = t(re(Te)), r = () => {
|
|
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") {
|
|
1975
|
+
const v = l.currentRoute.query;
|
|
1976
|
+
for (const m of Object.keys(v))
|
|
1977
|
+
m.startsWith(`${c}.`) && delete v[m];
|
|
1963
1978
|
}
|
|
1964
1979
|
const { query: p, ...d } = l.currentRoute.value;
|
|
1965
1980
|
l.push(Be(d, {
|
|
1966
|
-
query: mt(
|
|
1981
|
+
query: mt(a)
|
|
1967
1982
|
}));
|
|
1968
1983
|
};
|
|
1969
1984
|
return (p, d) => (n(), $(Oe, {
|
|
1970
1985
|
"close-hint": "",
|
|
1971
1986
|
"fixed-right": "",
|
|
1972
1987
|
title: p.t("filter_by", { capitalize: !0 }),
|
|
1973
|
-
onClose: d[2] || (d[2] = (
|
|
1974
|
-
onOverlayClick: d[3] || (d[3] = (
|
|
1988
|
+
onClose: d[2] || (d[2] = (v) => o("update:modelValue", !1)),
|
|
1989
|
+
onOverlayClick: d[3] || (d[3] = (v) => o("update:modelValue", !1))
|
|
1975
1990
|
}, {
|
|
1976
1991
|
footer: y(() => [
|
|
1977
|
-
t(
|
|
1992
|
+
t(a).filtersCount > 0 ? (n(), $(le, {
|
|
1978
1993
|
key: 0,
|
|
1979
1994
|
variant: "transparent",
|
|
1980
|
-
onClick: d[1] || (d[1] = (
|
|
1981
|
-
t(
|
|
1995
|
+
onClick: d[1] || (d[1] = (v) => {
|
|
1996
|
+
t(a).$actions.clearFilters(), r(), o("update:modelValue", !1);
|
|
1982
1997
|
})
|
|
1983
1998
|
}, {
|
|
1984
1999
|
default: y(() => [
|
|
1985
2000
|
D(V(p.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1986
2001
|
L(he, null, {
|
|
1987
2002
|
default: y(() => [
|
|
1988
|
-
D(V(t(
|
|
2003
|
+
D(V(t(a).filtersCount), 1)
|
|
1989
2004
|
]),
|
|
1990
2005
|
_: 1
|
|
1991
2006
|
})
|
|
@@ -1995,7 +2010,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1995
2010
|
L(le, {
|
|
1996
2011
|
large: "",
|
|
1997
2012
|
icon: "funnel",
|
|
1998
|
-
disabled: !t(
|
|
2013
|
+
disabled: !t(a).hasActiveFilters,
|
|
1999
2014
|
onClick: r
|
|
2000
2015
|
}, {
|
|
2001
2016
|
default: y(() => [
|
|
@@ -2006,13 +2021,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2006
2021
|
]),
|
|
2007
2022
|
default: y(() => [
|
|
2008
2023
|
L(Me, x({
|
|
2009
|
-
modelValue: t(
|
|
2010
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2024
|
+
modelValue: t(a).filters,
|
|
2025
|
+
"onUpdate:modelValue": d[0] || (d[0] = (v) => t(a).filters = v)
|
|
2026
|
+
}, {
|
|
2027
|
+
form: t(a).$actions.useProperties(
|
|
2028
|
+
Array.isArray(t(a).description.filters) ? t(a).description.filters : Object.keys(t(a).description.filters)
|
|
2029
|
+
),
|
|
2030
|
+
layout: t(a).description.formLayout
|
|
2011
2031
|
}, {
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
}, { focus: "" }), null, 16, ["modelValue"])
|
|
2032
|
+
focus: "",
|
|
2033
|
+
"search-only": ""
|
|
2034
|
+
}), null, 16, ["modelValue"])
|
|
2016
2035
|
]),
|
|
2017
2036
|
_: 1
|
|
2018
2037
|
}, 8, ["title"]));
|
|
@@ -2033,11 +2052,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2033
2052
|
},
|
|
2034
2053
|
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2035
2054
|
setup(e, { emit: u }) {
|
|
2036
|
-
const
|
|
2055
|
+
const o = e, a = u, l = ne("meta"), c = o.collection, r = ne(c);
|
|
2037
2056
|
Ue(() => {
|
|
2038
|
-
|
|
2057
|
+
o.modelValue && r.$actions.setItem(o.modelValue);
|
|
2039
2058
|
});
|
|
2040
|
-
const p = G(() =>
|
|
2059
|
+
const p = G(() => o.form ? r.$actions.useProperties(o.form) : r.description.form ? r.$actions.useProperties(r.description.form) : r.properties), d = async () => {
|
|
2041
2060
|
const { error: b, result: _ } = await r.$actions.deepInsert();
|
|
2042
2061
|
if (b) {
|
|
2043
2062
|
if ("code" in b)
|
|
@@ -2046,10 +2065,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2046
2065
|
case "MISSING_PROPERTIES":
|
|
2047
2066
|
return;
|
|
2048
2067
|
default: {
|
|
2049
|
-
let g =
|
|
2068
|
+
let g = v("error", {
|
|
2050
2069
|
capitalize: !0
|
|
2051
2070
|
});
|
|
2052
|
-
b.message && (g += `: ${
|
|
2071
|
+
b.message && (g += `: ${v(b.message)}`), g += ` (${v(b.code)})`, l.$actions.spawnToast({
|
|
2053
2072
|
text: g,
|
|
2054
2073
|
icon: "warning"
|
|
2055
2074
|
});
|
|
@@ -2057,17 +2076,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2057
2076
|
}
|
|
2058
2077
|
return;
|
|
2059
2078
|
}
|
|
2060
|
-
|
|
2061
|
-
}, { t:
|
|
2079
|
+
a("update:visible", !1), a("update:modelValue", _), a("insert", _), r.$actions.clearItem();
|
|
2080
|
+
}, { t: v } = st(), m = () => {
|
|
2062
2081
|
l.$actions.ask({
|
|
2063
2082
|
action: () => {
|
|
2064
|
-
r.$actions.clearItem(), r.validationErrors = {},
|
|
2083
|
+
r.$actions.clearItem(), r.validationErrors = {}, a("cancel");
|
|
2065
2084
|
},
|
|
2066
|
-
body:
|
|
2085
|
+
body: v("prompt.close_panel")
|
|
2067
2086
|
});
|
|
2068
2087
|
};
|
|
2069
2088
|
return ae(() => r.item._id, (b) => {
|
|
2070
|
-
b === null &&
|
|
2089
|
+
b === null && a("update:visible", !1);
|
|
2071
2090
|
}), (b, _) => {
|
|
2072
2091
|
const g = ee("clickable");
|
|
2073
2092
|
return n(), $(Oe, x({
|
|
@@ -2082,7 +2101,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2082
2101
|
actions: e.individualActions.filter(({ action: i }) => i !== "spawnEdit"),
|
|
2083
2102
|
overlayLayer: 60
|
|
2084
2103
|
}, {
|
|
2085
|
-
onActionClick: _[2] || (_[2] = (i) =>
|
|
2104
|
+
onActionClick: _[2] || (_[2] = (i) => a("update:visible", !1))
|
|
2086
2105
|
}), {
|
|
2087
2106
|
default: y(({
|
|
2088
2107
|
visible: i
|
|
@@ -2140,7 +2159,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2140
2159
|
onClick: m
|
|
2141
2160
|
}, {
|
|
2142
2161
|
default: y(() => [
|
|
2143
|
-
D(V(t(
|
|
2162
|
+
D(V(t(v)("action.cancel", { capitalize: !0 })), 1)
|
|
2144
2163
|
]),
|
|
2145
2164
|
_: 1
|
|
2146
2165
|
})) : h("", !0),
|
|
@@ -2151,7 +2170,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2151
2170
|
onClick: d
|
|
2152
2171
|
}, {
|
|
2153
2172
|
default: y(() => [
|
|
2154
|
-
D(V(t(
|
|
2173
|
+
D(V(t(v)("action.insert", { capitalize: !0 })), 1)
|
|
2155
2174
|
]),
|
|
2156
2175
|
_: 1
|
|
2157
2176
|
}, 8, ["disabled", "loading"])
|
|
@@ -2172,15 +2191,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2172
2191
|
}, Ia = (e, u = {
|
|
2173
2192
|
persistInQuery: !0
|
|
2174
2193
|
}) => {
|
|
2175
|
-
const
|
|
2176
|
-
return ae(() =>
|
|
2194
|
+
const a = Ce().currentRoute;
|
|
2195
|
+
return ae(() => a.value.query.section, (l) => {
|
|
2177
2196
|
if (e) {
|
|
2178
2197
|
if (e.description.filtersPresets) {
|
|
2179
2198
|
const c = l || Object.keys(e.description.filtersPresets)[0];
|
|
2180
2199
|
Pe(e.description.filtersPresets[c], e);
|
|
2181
2200
|
}
|
|
2182
2201
|
if (u.persistInQuery) {
|
|
2183
|
-
const c =
|
|
2202
|
+
const c = a.value.query;
|
|
2184
2203
|
c.offset && (e.pagination.offset = +c.offset), c.limit && (e.pagination.limit = +c.limit), c.search && (e.textQuery = c.search, e.filters.$text = {
|
|
2185
2204
|
$search: `"${c.search}"`,
|
|
2186
2205
|
$caseSensitive: !1
|
|
@@ -2196,7 +2215,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2196
2215
|
}, Sa = { key: 0 }, wa = { key: 1 }, Ta = { key: 0 }, ja = ["checked"], Ra = {
|
|
2197
2216
|
key: 1,
|
|
2198
2217
|
style: { "text-align": "right" }
|
|
2199
|
-
}, qa = { key: 2 }, La = { key: 3 }, xa = ["onClick"], Ma = { key: 0 }, za = ["value"],
|
|
2218
|
+
}, qa = { key: 2 }, La = { key: 3 }, xa = ["onClick"], Ma = { key: 0 }, za = ["value"], Ea = { class: "table__cell-mobile-label" }, Fa = {
|
|
2200
2219
|
key: 0,
|
|
2201
2220
|
class: "table__cell-container"
|
|
2202
2221
|
}, Ua = {
|
|
@@ -2220,38 +2239,38 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2220
2239
|
},
|
|
2221
2240
|
emits: ["itemClick"],
|
|
2222
2241
|
setup(e, { emit: u }) {
|
|
2223
|
-
const
|
|
2242
|
+
const o = e, a = u, l = Se(), c = o.collection || we(), r = c ? ne(typeof c == "string" ? c : c.value) : null, p = G({
|
|
2224
2243
|
get: () => r?.selected,
|
|
2225
2244
|
set: (g) => r?.$actions.selectManyItems(g, !0)
|
|
2226
|
-
}), d = G(() =>
|
|
2227
|
-
const i =
|
|
2228
|
-
return !l.value.xl || !i || !
|
|
2245
|
+
}), d = G(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), v = (g, i) => g.button ? typeof g.button == "object" ? qe(i, g.button).satisfied : g.button : !1, m = (g) => {
|
|
2246
|
+
const i = o.layout?.actions;
|
|
2247
|
+
return !l.value.xl || !i || !o.actions ? [] : o.actions.filter((T) => {
|
|
2229
2248
|
if (T.roles) {
|
|
2230
|
-
const
|
|
2231
|
-
if (!
|
|
2249
|
+
const F = ne("user");
|
|
2250
|
+
if (!Ee(T.roles, F.currentUser.roles))
|
|
2232
2251
|
return !1;
|
|
2233
2252
|
}
|
|
2234
2253
|
const k = i[T.action];
|
|
2235
|
-
return k &&
|
|
2254
|
+
return k && v(k, g);
|
|
2236
2255
|
});
|
|
2237
2256
|
}, b = (g) => {
|
|
2238
|
-
if (!
|
|
2257
|
+
if (!o.actions)
|
|
2239
2258
|
return [];
|
|
2240
|
-
const i =
|
|
2241
|
-
return !l.value.xl || !i ?
|
|
2259
|
+
const i = o.layout?.actions;
|
|
2260
|
+
return !l.value.xl || !i ? o.actions : o.actions.filter((T) => {
|
|
2242
2261
|
const k = i[T.action];
|
|
2243
2262
|
if (T.roles) {
|
|
2244
|
-
const
|
|
2245
|
-
if (!
|
|
2263
|
+
const F = ne("user");
|
|
2264
|
+
if (!Ee(T.roles, F.currentUser.roles))
|
|
2246
2265
|
return !1;
|
|
2247
2266
|
}
|
|
2248
2267
|
return k ? k.if ? qe(
|
|
2249
2268
|
g,
|
|
2250
2269
|
k.if
|
|
2251
|
-
).satisfied : !
|
|
2270
|
+
).satisfied : !v(k, g) : !0;
|
|
2252
2271
|
});
|
|
2253
2272
|
}, _ = (g, i) => {
|
|
2254
|
-
const T = [], k =
|
|
2273
|
+
const T = [], k = o.layout?.actions?.[i.action];
|
|
2255
2274
|
return k?.if && (qe(
|
|
2256
2275
|
g,
|
|
2257
2276
|
k.if
|
|
@@ -2271,19 +2290,19 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2271
2290
|
onChange: i[0] || (i[0] = (k) => t(r).$actions.selectAllItems(k.target.checked))
|
|
2272
2291
|
}, null, 40, ja)
|
|
2273
2292
|
])) : h("", !0),
|
|
2274
|
-
(n(!0), s(Y, null, z(Object.entries(e.columns), ([k,
|
|
2293
|
+
(n(!0), s(Y, null, z(Object.entries(e.columns), ([k, F], I) => (n(), s("th", {
|
|
2275
2294
|
key: `header-${I}`,
|
|
2276
2295
|
class: "table__header"
|
|
2277
|
-
}, V(
|
|
2296
|
+
}, V(F.description || t(R)(k)), 1))), 128)),
|
|
2278
2297
|
e.actions?.length ? (n(), s("th", Ra)) : h("", !0)
|
|
2279
2298
|
])
|
|
2280
2299
|
])),
|
|
2281
2300
|
g.$slots.tbody ? (n(), s("tbody", qa, [
|
|
2282
2301
|
C(g.$slots, "tbody", {}, void 0, !0)
|
|
2283
2302
|
])) : (n(), s("tbody", La, [
|
|
2284
|
-
(n(!0), s(Y, null, z(e.rows, (k,
|
|
2303
|
+
(n(!0), s(Y, null, z(e.rows, (k, F) => (n(), s("tr", {
|
|
2285
2304
|
key: k._id,
|
|
2286
|
-
onClick: (I) =>
|
|
2305
|
+
onClick: (I) => a("itemClick", k)
|
|
2287
2306
|
}, [
|
|
2288
2307
|
t(r) && e.checkbox && t(l).md ? (n(), s("td", Ma, [
|
|
2289
2308
|
K(O("input", {
|
|
@@ -2297,14 +2316,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2297
2316
|
(n(!0), s(Y, null, z(Object.entries(e.columns), ([I, w], J) => (n(), s("td", {
|
|
2298
2317
|
key: `column-${k._id}-${J}`
|
|
2299
2318
|
}, [
|
|
2300
|
-
O("div",
|
|
2301
|
-
`row-${I}` in g.$slots ? (n(), s("div",
|
|
2319
|
+
O("div", Ea, V(w.description || t(R)(I)), 1),
|
|
2320
|
+
`row-${I}` in g.$slots ? (n(), s("div", Fa, [
|
|
2302
2321
|
C(g.$slots, `row-${I}`, x({ ref_for: !0 }, {
|
|
2303
2322
|
store: t(r),
|
|
2304
2323
|
column: I,
|
|
2305
2324
|
property: w,
|
|
2306
2325
|
row: k,
|
|
2307
|
-
rowIndex:
|
|
2326
|
+
rowIndex: F
|
|
2308
2327
|
}), void 0, !0)
|
|
2309
2328
|
])) : (n(), s("div", Ua, [
|
|
2310
2329
|
O("div", Ha, [
|
|
@@ -2465,7 +2484,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2465
2484
|
])) : h("", !0);
|
|
2466
2485
|
};
|
|
2467
2486
|
}
|
|
2468
|
-
}), so = /* @__PURE__ */
|
|
2487
|
+
}), so = /* @__PURE__ */ E(io, [["__scopeId", "data-v-e01a149a"]]), ro = /* @__PURE__ */ M({
|
|
2469
2488
|
__name: "aeria-tabular",
|
|
2470
2489
|
props: {
|
|
2471
2490
|
individualActions: {},
|
|
@@ -2473,21 +2492,21 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2473
2492
|
componentProps: {}
|
|
2474
2493
|
},
|
|
2475
2494
|
setup(e) {
|
|
2476
|
-
const u = e,
|
|
2495
|
+
const u = e, o = Ae(), a = we(), l = G(() => {
|
|
2477
2496
|
const c = {
|
|
2478
|
-
collection:
|
|
2479
|
-
checkbox:
|
|
2480
|
-
columns:
|
|
2481
|
-
rows:
|
|
2497
|
+
collection: a,
|
|
2498
|
+
checkbox: o.hasSelectionActions,
|
|
2499
|
+
columns: o.tableProperties,
|
|
2500
|
+
rows: o.items,
|
|
2482
2501
|
actions: u.individualActions,
|
|
2483
|
-
layout:
|
|
2502
|
+
layout: o.tableLayout
|
|
2484
2503
|
};
|
|
2485
2504
|
return Object.assign(c, u.componentProps);
|
|
2486
2505
|
});
|
|
2487
2506
|
return (c, r) => (n(), s("div", null, [
|
|
2488
2507
|
c.$slots.inner ? C(c.$slots, "inner", { key: 0 }) : h("", !0),
|
|
2489
|
-
t(
|
|
2490
|
-
key: t(
|
|
2508
|
+
t(o).properties ? (n(), $(so, x({ key: 1 }, l.value, {
|
|
2509
|
+
key: t(o).$id
|
|
2491
2510
|
}), ie({ _: 2 }, [
|
|
2492
2511
|
z(Object.keys(c.$slots).filter((p) => !["inner"].includes(p)), (p) => ({
|
|
2493
2512
|
name: p,
|
|
@@ -2504,7 +2523,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2504
2523
|
list: { type: Boolean }
|
|
2505
2524
|
},
|
|
2506
2525
|
setup(e) {
|
|
2507
|
-
return (u,
|
|
2526
|
+
return (u, o) => (n(), s("div", {
|
|
2508
2527
|
class: U([
|
|
2509
2528
|
"grid",
|
|
2510
2529
|
{ "grid--list": e.list }
|
|
@@ -2513,7 +2532,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2513
2532
|
C(u.$slots, "default", {}, void 0, !0)
|
|
2514
2533
|
], 2));
|
|
2515
2534
|
}
|
|
2516
|
-
}), co = /* @__PURE__ */
|
|
2535
|
+
}), co = /* @__PURE__ */ E(uo, [["__scopeId", "data-v-4839c834"]]), mo = { key: 0 }, po = {
|
|
2517
2536
|
key: 1,
|
|
2518
2537
|
class: "card__information"
|
|
2519
2538
|
}, fo = {
|
|
@@ -2528,25 +2547,25 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2528
2547
|
componentName: {}
|
|
2529
2548
|
},
|
|
2530
2549
|
setup(e) {
|
|
2531
|
-
const
|
|
2550
|
+
const o = e.layoutOptions, a = Ae(), l = (c) => Array.isArray(c) ? c[0] : c;
|
|
2532
2551
|
return (c, r) => {
|
|
2533
2552
|
const p = ee("clickable");
|
|
2534
2553
|
return n(), $(co, {
|
|
2535
2554
|
list: e.componentName === "list"
|
|
2536
2555
|
}, {
|
|
2537
2556
|
default: y(() => [
|
|
2538
|
-
(n(!0), s(Y, null, z(t(
|
|
2557
|
+
(n(!0), s(Y, null, z(t(a).items, (d) => (n(), $(Et, {
|
|
2539
2558
|
key: d._id,
|
|
2540
|
-
inactive: !!(t(
|
|
2559
|
+
inactive: !!(t(o).active && !d[t(o).active]),
|
|
2541
2560
|
horizontal: e.componentName === "list"
|
|
2542
2561
|
}, ie({
|
|
2543
2562
|
footer: y(() => [
|
|
2544
|
-
t(
|
|
2545
|
-
Array.isArray(t(
|
|
2546
|
-
(n(!0), s(Y, null, z(t(
|
|
2547
|
-
key: `info-${
|
|
2548
|
-
}, V(d[
|
|
2549
|
-
])) : t(
|
|
2563
|
+
t(o).title ? (n(), s("div", mo, V(d[t(o).title]), 1)) : h("", !0),
|
|
2564
|
+
Array.isArray(t(o).information) ? (n(), s("div", po, [
|
|
2565
|
+
(n(!0), s(Y, null, z(t(o).information, (v) => (n(), s("div", {
|
|
2566
|
+
key: `info-${v}`
|
|
2567
|
+
}, V(d[v]), 1))), 128))
|
|
2568
|
+
])) : t(o).information ? (n(), s("div", fo, V(d[t(o).information]), 1)) : h("", !0)
|
|
2550
2569
|
]),
|
|
2551
2570
|
actions: y(() => [
|
|
2552
2571
|
e.individualActions?.length ? (n(), $(Ve, x({
|
|
@@ -2557,11 +2576,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2557
2576
|
actions: e.individualActions
|
|
2558
2577
|
}), {
|
|
2559
2578
|
default: y(({
|
|
2560
|
-
visible:
|
|
2579
|
+
visible: v
|
|
2561
2580
|
}) => [
|
|
2562
2581
|
K(L(H, {
|
|
2563
2582
|
reactive: "",
|
|
2564
|
-
active:
|
|
2583
|
+
active: v,
|
|
2565
2584
|
icon: "dots-three-vertical"
|
|
2566
2585
|
}, null, 8, ["active"]), [
|
|
2567
2586
|
[p]
|
|
@@ -2572,34 +2591,34 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2572
2591
|
]),
|
|
2573
2592
|
default: y(() => [
|
|
2574
2593
|
L(Le, x({ expandable: "" }, { ref_for: !0 }, {
|
|
2575
|
-
url: l(d[t(
|
|
2576
|
-
meta: l(d[t(
|
|
2594
|
+
url: l(d[t(o).picture])?.link,
|
|
2595
|
+
meta: l(d[t(o).picture]),
|
|
2577
2596
|
height: "16rem",
|
|
2578
|
-
alt: t(
|
|
2597
|
+
alt: t(o).title ? l(d[t(o).title])?.link : "Item picture"
|
|
2579
2598
|
}), null, 16)
|
|
2580
2599
|
]),
|
|
2581
2600
|
_: 2
|
|
2582
2601
|
}, [
|
|
2583
|
-
t(
|
|
2602
|
+
t(o).badge && Array.isArray(d[t(o).badge]) ? {
|
|
2584
2603
|
name: "badge",
|
|
2585
2604
|
fn: y(() => [
|
|
2586
|
-
(n(!0), s(Y, null, z(d[t(
|
|
2587
|
-
key: `${d._id}-${
|
|
2605
|
+
(n(!0), s(Y, null, z(d[t(o).badge], (v) => (n(), $(he, {
|
|
2606
|
+
key: `${d._id}-${v}`,
|
|
2588
2607
|
large: ""
|
|
2589
2608
|
}, {
|
|
2590
2609
|
default: y(() => [
|
|
2591
|
-
D(V(t(
|
|
2610
|
+
D(V(t(o).translateBadge ? t(R)(v) : v), 1)
|
|
2592
2611
|
]),
|
|
2593
2612
|
_: 2
|
|
2594
2613
|
}, 1024))), 128))
|
|
2595
2614
|
]),
|
|
2596
2615
|
key: "0"
|
|
2597
|
-
} : t(
|
|
2616
|
+
} : t(o).badge ? {
|
|
2598
2617
|
name: "badge",
|
|
2599
2618
|
fn: y(() => [
|
|
2600
2619
|
L(he, null, {
|
|
2601
2620
|
default: y(() => [
|
|
2602
|
-
D(V(t(
|
|
2621
|
+
D(V(t(o).translateBadge && typeof d[t(o).badge] == "string" ? t(R)(d[t(o).badge]) : d[t(o).badge]), 1)
|
|
2603
2622
|
]),
|
|
2604
2623
|
_: 2
|
|
2605
2624
|
}, 1024)
|
|
@@ -2612,7 +2631,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2612
2631
|
}, 8, ["list"]);
|
|
2613
2632
|
};
|
|
2614
2633
|
}
|
|
2615
|
-
}), Ye = /* @__PURE__ */
|
|
2634
|
+
}), Ye = /* @__PURE__ */ E(vo, [["__scopeId", "data-v-ce6f7461"]]), yo = (e) => ({
|
|
2616
2635
|
tabular: ro,
|
|
2617
2636
|
grid: Ye,
|
|
2618
2637
|
list: Ye
|
|
@@ -2641,11 +2660,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2641
2660
|
},
|
|
2642
2661
|
emits: ["uiEvent"],
|
|
2643
2662
|
setup(e, { emit: u }) {
|
|
2644
|
-
const
|
|
2663
|
+
const o = X(!1), a = X(!1), l = X((...A) => null), c = X(), r = e, p = u, d = Ce(), v = ne("meta"), m = Se(), { reachedEnd: b, detach: _ } = He(null, {
|
|
2645
2664
|
antecipate: 600
|
|
2646
2665
|
}), g = !m.value.md || r.scrollPagination;
|
|
2647
2666
|
g && ae(b, (A) => {
|
|
2648
|
-
A && i.pagination.recordsTotal > i.items.length &&
|
|
2667
|
+
A && i.pagination.recordsTotal > i.items.length && F.value < Ke && (F.value += 1, w());
|
|
2649
2668
|
});
|
|
2650
2669
|
const i = pt(r.collection);
|
|
2651
2670
|
Ia(i, {
|
|
@@ -2653,7 +2672,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2653
2672
|
});
|
|
2654
2673
|
const T = De(), k = r.action ? t(r.action) : ft(i, d, T);
|
|
2655
2674
|
l.value = k[0], c.value = k[1];
|
|
2656
|
-
const
|
|
2675
|
+
const F = X(0), I = X(!1), w = async (A) => {
|
|
2657
2676
|
i.activeFilters = Object.assign({}, A?.filters || i.$filters), Object.assign(i.activeFilters, i.filtersPreset);
|
|
2658
2677
|
const j = {
|
|
2659
2678
|
filters: i.activeFilters,
|
|
@@ -2661,12 +2680,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2661
2680
|
offset: i.pagination.offset,
|
|
2662
2681
|
project: i.preferredTableProperties.length > 0 ? i.preferredTableProperties : i.description.table || Object.keys(i.properties)
|
|
2663
2682
|
};
|
|
2664
|
-
|
|
2683
|
+
F.value > 0 && (j.limit = 15, j.offset = F.value * j.limit), i.description.tableMeta && (j.project = j.project.concat(i.description.tableMeta)), A && Object.assign(j, A), i.loading.getAll = !0;
|
|
2665
2684
|
const { error: Z, result: P } = await i.$actions.retrieveItems(j);
|
|
2666
2685
|
if (Z)
|
|
2667
2686
|
return;
|
|
2668
|
-
const { data:
|
|
2669
|
-
i.pagination.recordsCount =
|
|
2687
|
+
const { data: f, pagination: B } = P;
|
|
2688
|
+
i.pagination.recordsCount = B.recordsCount, i.pagination.recordsTotal = B.recordsTotal, F.value === 0 && i.items.splice(0), i.items.push(...f), i.loading.getAll = !1, I.value = !0;
|
|
2670
2689
|
}, J = async (A) => {
|
|
2671
2690
|
d.push(Be(d.currentRoute.value, {
|
|
2672
2691
|
query: {
|
|
@@ -2682,7 +2701,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2682
2701
|
if (j && j[0] === A[0] && j[1] === A[1])
|
|
2683
2702
|
return;
|
|
2684
2703
|
const Z = d.currentRoute.value;
|
|
2685
|
-
if (
|
|
2704
|
+
if (v.view.title = r.collection, !r.noFetch && (!Z.query._popstate || i.itemsCount === 0)) {
|
|
2686
2705
|
const P = vt(i, Z.query);
|
|
2687
2706
|
Object.keys(P).length > 0 && Object.assign(i.filters, P), await w();
|
|
2688
2707
|
}
|
|
@@ -2703,7 +2722,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2703
2722
|
}
|
|
2704
2723
|
}), w({
|
|
2705
2724
|
offset: 0
|
|
2706
|
-
})) : (i.filters = ke(i.freshFilters),
|
|
2725
|
+
})) : (i.filters = ke(i.freshFilters), F.value = 0, w())));
|
|
2707
2726
|
ae(() => i.textQuery, (A) => {
|
|
2708
2727
|
ue(A);
|
|
2709
2728
|
});
|
|
@@ -2723,21 +2742,21 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2723
2742
|
})), j.name === "spawnAdd")
|
|
2724
2743
|
i.$actions.clearItem(), j.params?.item && (i.$actions.setItem(j.params.item), Object.keys(j.params.item).forEach((P) => {
|
|
2725
2744
|
delete i.referenceItem[P];
|
|
2726
|
-
})),
|
|
2745
|
+
})), o.value = "add";
|
|
2727
2746
|
else if (j.name === "spawnEdit")
|
|
2728
|
-
i.$actions.setItem(j.params),
|
|
2747
|
+
i.$actions.setItem(j.params), o.value = "edit";
|
|
2729
2748
|
else if (j.name === "duplicate") {
|
|
2730
2749
|
await Z;
|
|
2731
|
-
const P = Object.entries(i.item).reduce((
|
|
2732
|
-
if (!(
|
|
2750
|
+
const P = Object.entries(i.item).reduce((f, [B, W]) => {
|
|
2751
|
+
if (!(B in i.properties))
|
|
2733
2752
|
return {
|
|
2734
|
-
...
|
|
2735
|
-
[
|
|
2753
|
+
...f,
|
|
2754
|
+
[B]: W
|
|
2736
2755
|
};
|
|
2737
|
-
const te = i.properties[
|
|
2756
|
+
const te = i.properties[B];
|
|
2738
2757
|
if (te.readOnly)
|
|
2739
|
-
return
|
|
2740
|
-
const
|
|
2758
|
+
return f;
|
|
2759
|
+
const S = (q) => {
|
|
2741
2760
|
const Q = se(te);
|
|
2742
2761
|
if (!Q)
|
|
2743
2762
|
return q;
|
|
@@ -2749,21 +2768,21 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2749
2768
|
}
|
|
2750
2769
|
return q;
|
|
2751
2770
|
};
|
|
2752
|
-
return W = Array.isArray(W) ? W.map(
|
|
2753
|
-
...
|
|
2754
|
-
[
|
|
2771
|
+
return W = Array.isArray(W) ? W.map(S) : S(W), {
|
|
2772
|
+
...f,
|
|
2773
|
+
[B]: W
|
|
2755
2774
|
};
|
|
2756
2775
|
}, {
|
|
2757
2776
|
_id: void 0
|
|
2758
2777
|
});
|
|
2759
2778
|
i.$actions.setItem(P), delete i.item._id, i.referenceItem = {
|
|
2760
2779
|
_id: void 0
|
|
2761
|
-
},
|
|
2780
|
+
}, o.value = "duplicate";
|
|
2762
2781
|
} else
|
|
2763
2782
|
p("uiEvent", j);
|
|
2764
2783
|
}, {
|
|
2765
2784
|
deep: !0
|
|
2766
|
-
}), ae(() =>
|
|
2785
|
+
}), ae(() => o, ({ value: A }) => {
|
|
2767
2786
|
A === !1 && i.$actions.clearItem();
|
|
2768
2787
|
});
|
|
2769
2788
|
const $e = G(() => {
|
|
@@ -2776,30 +2795,29 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2776
2795
|
return fe(Te, G(() => r.collection)), (A, j) => {
|
|
2777
2796
|
const Z = ee("clickable"), P = ee("loading");
|
|
2778
2797
|
return n(), s(Y, null, [
|
|
2779
|
-
|
|
2798
|
+
a.value ? (n(), $(Oa, {
|
|
2780
2799
|
key: t(i).$id,
|
|
2781
|
-
modelValue:
|
|
2782
|
-
"onUpdate:modelValue": j[0] || (j[0] = (
|
|
2800
|
+
modelValue: a.value,
|
|
2801
|
+
"onUpdate:modelValue": j[0] || (j[0] = (f) => a.value = f)
|
|
2783
2802
|
}, null, 8, ["modelValue"])) : h("", !0),
|
|
2784
|
-
|
|
2803
|
+
o.value ? (n(), $(Aa, x({
|
|
2785
2804
|
key: 1,
|
|
2786
|
-
visible:
|
|
2787
|
-
"onUpdate:visible": j[1] || (j[1] = (
|
|
2805
|
+
visible: o.value,
|
|
2806
|
+
"onUpdate:visible": j[1] || (j[1] = (f) => o.value = f),
|
|
2788
2807
|
"fixed-right": ""
|
|
2789
2808
|
}, {
|
|
2790
2809
|
collection: e.collection,
|
|
2791
2810
|
individualActions: $e.value
|
|
2792
2811
|
}, {
|
|
2793
|
-
onCancel: j[2] || (j[2] = (
|
|
2812
|
+
onCancel: j[2] || (j[2] = (f) => o.value = !1)
|
|
2794
2813
|
}), ie({
|
|
2795
2814
|
header: y(() => [
|
|
2796
2815
|
O("span", null, V((() => {
|
|
2797
|
-
switch (
|
|
2816
|
+
switch (o.value) {
|
|
2798
2817
|
case "add":
|
|
2799
2818
|
return t(R)("action.add", { capitalize: !0 });
|
|
2800
2819
|
case "duplicate":
|
|
2801
2820
|
return t(R)("action.duplicate", { capitalize: !0 });
|
|
2802
|
-
case "edit":
|
|
2803
2821
|
default:
|
|
2804
2822
|
return t(R)("action.edit", { capitalize: !0 });
|
|
2805
2823
|
}
|
|
@@ -2808,18 +2826,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2808
2826
|
]),
|
|
2809
2827
|
_: 2
|
|
2810
2828
|
}, [
|
|
2811
|
-
z(Object.keys(A.$slots).filter((
|
|
2812
|
-
name:
|
|
2813
|
-
fn: y((
|
|
2814
|
-
C(A.$slots,
|
|
2829
|
+
z(Object.keys(A.$slots).filter((f) => f.startsWith("field-")), (f) => ({
|
|
2830
|
+
name: f,
|
|
2831
|
+
fn: y((B) => [
|
|
2832
|
+
C(A.$slots, f, oe(be(B)), void 0, !0)
|
|
2815
2833
|
])
|
|
2816
2834
|
}))
|
|
2817
2835
|
]), 1040, ["visible"])) : h("", !0),
|
|
2818
|
-
!e.noActions && (t(i).description.search || Object.keys(t(i).
|
|
2836
|
+
!e.noActions && (t(i).description.search || Object.keys(t(i).description.filters || {}).length > 0 || t(i)?.actions.length > 0 || A.$slots.actions || !e.noLayoutToggle && t(i).description.layout && t(i).description.layout?.name !== "tabular") ? (n(), s("div", ho, [
|
|
2819
2837
|
t(i).description.search ? (n(), s("div", bo, [
|
|
2820
2838
|
L(_e, x({
|
|
2821
2839
|
modelValue: t(i).textQuery,
|
|
2822
|
-
"onUpdate:modelValue": j[3] || (j[3] = (
|
|
2840
|
+
"onUpdate:modelValue": j[3] || (j[3] = (f) => t(i).textQuery = f)
|
|
2823
2841
|
}, {
|
|
2824
2842
|
property: {
|
|
2825
2843
|
type: "string",
|
|
@@ -2848,12 +2866,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2848
2866
|
]),
|
|
2849
2867
|
_: 2
|
|
2850
2868
|
}, [
|
|
2851
|
-
Object.keys(t(i).
|
|
2869
|
+
Object.keys(t(i).description.filters || {}).length > 0 ? {
|
|
2852
2870
|
name: "filter",
|
|
2853
2871
|
fn: y(() => [
|
|
2854
2872
|
K((n(), $(H, {
|
|
2855
2873
|
icon: "funnel",
|
|
2856
|
-
onClick: j[4] || (j[4] = (
|
|
2874
|
+
onClick: j[4] || (j[4] = (f) => a.value = !0)
|
|
2857
2875
|
}, {
|
|
2858
2876
|
default: y(() => [
|
|
2859
2877
|
D(V(t(R)("filters", { capitalize: !0 })), 1)
|
|
@@ -2878,7 +2896,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2878
2896
|
fn: y(() => [
|
|
2879
2897
|
K((n(), $(H, {
|
|
2880
2898
|
icon: "table",
|
|
2881
|
-
onClick: j[5] || (j[5] = (
|
|
2899
|
+
onClick: j[5] || (j[5] = (f) => ce(t(i)))
|
|
2882
2900
|
}, {
|
|
2883
2901
|
default: y(() => [
|
|
2884
2902
|
D(V(t(R)("change_layout", { capitalize: !0 })), 1)
|
|
@@ -2890,27 +2908,27 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2890
2908
|
]),
|
|
2891
2909
|
key: "1"
|
|
2892
2910
|
} : void 0,
|
|
2893
|
-
z(me.value, (
|
|
2894
|
-
name: `action-${
|
|
2911
|
+
z(me.value, (f, B) => ({
|
|
2912
|
+
name: `action-${B}`,
|
|
2895
2913
|
fn: y(() => [
|
|
2896
|
-
|
|
2914
|
+
f ? (n(), $(H, {
|
|
2897
2915
|
key: 0,
|
|
2898
|
-
icon:
|
|
2899
|
-
disabled: t(i).selected.length === 0 && "selection" in
|
|
2900
|
-
onClick: (W) => l.value(
|
|
2916
|
+
icon: f.icon || "gear",
|
|
2917
|
+
disabled: t(i).selected.length === 0 && "selection" in f && f.selection,
|
|
2918
|
+
onClick: (W) => l.value(f)({ _id: t(i).selected.map((te) => typeof te == "string" || te._id) })
|
|
2901
2919
|
}, {
|
|
2902
2920
|
default: y(() => [
|
|
2903
|
-
D(V(t(R)(
|
|
2921
|
+
D(V(t(R)(f.label, { capitalize: !0 })), 1)
|
|
2904
2922
|
]),
|
|
2905
2923
|
_: 2
|
|
2906
2924
|
}, 1032, ["icon", "disabled", "onClick"])) : h("", !0)
|
|
2907
2925
|
])
|
|
2908
2926
|
}))
|
|
2909
|
-
]), 1024)) : Object.keys(t(i).
|
|
2927
|
+
]), 1024)) : Object.keys(t(i).description.filters || {}).length > 0 ? (n(), $(le, {
|
|
2910
2928
|
key: 1,
|
|
2911
2929
|
variant: "alt",
|
|
2912
2930
|
icon: "funnel",
|
|
2913
|
-
onClick: j[6] || (j[6] = (
|
|
2931
|
+
onClick: j[6] || (j[6] = (f) => a.value = !0)
|
|
2914
2932
|
}, {
|
|
2915
2933
|
default: y(() => [
|
|
2916
2934
|
O("div", null, V(t(R)("Filters")), 1),
|
|
@@ -2923,14 +2941,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2923
2941
|
]),
|
|
2924
2942
|
_: 1
|
|
2925
2943
|
})) : h("", !0),
|
|
2926
|
-
(n(!0), s(Y, null, z(t(i).actions.filter((
|
|
2927
|
-
key: `action-${
|
|
2928
|
-
icon:
|
|
2929
|
-
disabled: t(i).selected.length === 0 && "selection" in
|
|
2930
|
-
onClick: (W) => l.value(
|
|
2944
|
+
(n(!0), s(Y, null, z(t(i).actions.filter((f) => f.button), (f, B) => (n(), $(le, {
|
|
2945
|
+
key: `action-${B}`,
|
|
2946
|
+
icon: f.icon,
|
|
2947
|
+
disabled: t(i).selected.length === 0 && "selection" in f && f.selection,
|
|
2948
|
+
onClick: (W) => l.value(f)({ _id: t(i).selected.map((te) => typeof te == "string" || te._id) })
|
|
2931
2949
|
}, {
|
|
2932
2950
|
default: y(() => [
|
|
2933
|
-
D(V(t(R)(
|
|
2951
|
+
D(V(t(R)(f.label, { capitalize: !0 })), 1)
|
|
2934
2952
|
]),
|
|
2935
2953
|
_: 2
|
|
2936
2954
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
@@ -2946,7 +2964,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2946
2964
|
t(i).filtersCount === 0 && t(i).description.actions && "spawnAdd" in t(i).description.actions ? (n(), $(le, {
|
|
2947
2965
|
key: 0,
|
|
2948
2966
|
icon: "plus",
|
|
2949
|
-
onClick: j[7] || (j[7] = (
|
|
2967
|
+
onClick: j[7] || (j[7] = (f) => l.value({
|
|
2950
2968
|
action: "spawnAdd",
|
|
2951
2969
|
event: "spawnAdd"
|
|
2952
2970
|
})())
|
|
@@ -2970,10 +2988,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2970
2988
|
}, {
|
|
2971
2989
|
"component-name": e.layout?.name || t(i).$currentLayout
|
|
2972
2990
|
}), ie({ _: 2 }, [
|
|
2973
|
-
z(Object.keys(A.$slots).filter((
|
|
2974
|
-
name:
|
|
2975
|
-
fn: y((
|
|
2976
|
-
C(A.$slots,
|
|
2991
|
+
z(Object.keys(A.$slots).filter((f) => f.startsWith("row-")), (f) => ({
|
|
2992
|
+
name: f,
|
|
2993
|
+
fn: y((B) => [
|
|
2994
|
+
C(A.$slots, f, oe(be(B)), void 0, !0)
|
|
2977
2995
|
])
|
|
2978
2996
|
})),
|
|
2979
2997
|
A.$slots.tfoot ? {
|
|
@@ -2985,7 +3003,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2985
3003
|
} : void 0
|
|
2986
3004
|
]), 1040, ["component-name"]))
|
|
2987
3005
|
])), [
|
|
2988
|
-
[P, (!t(g) ||
|
|
3006
|
+
[P, (!t(g) || F.value === Ke) && t(i).loading.getAll]
|
|
2989
3007
|
]),
|
|
2990
3008
|
!t(g) && !e.noControls && !t(i).loading.getAll && t(i).itemsCount > 0 ? (n(), s("div", Vo, [
|
|
2991
3009
|
L(pn, {
|
|
@@ -2996,17 +3014,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2996
3014
|
], 64);
|
|
2997
3015
|
};
|
|
2998
3016
|
}
|
|
2999
|
-
}),
|
|
3017
|
+
}), ul = /* @__PURE__ */ E(Co, [["__scopeId", "data-v-a8b515b9"]]), Oo = { class: "prompt" }, Ao = /* @__PURE__ */ M({
|
|
3000
3018
|
__name: "aeria-prompt",
|
|
3001
3019
|
props: {
|
|
3002
3020
|
title: {},
|
|
3003
3021
|
options: {}
|
|
3004
3022
|
},
|
|
3005
3023
|
setup(e) {
|
|
3006
|
-
const u = ne("meta"),
|
|
3007
|
-
u.$actions.fulfillPrompt(
|
|
3024
|
+
const u = ne("meta"), o = (a, l) => {
|
|
3025
|
+
u.$actions.fulfillPrompt(a, l);
|
|
3008
3026
|
};
|
|
3009
|
-
return (
|
|
3027
|
+
return (a, l) => (n(), $(Oe, {
|
|
3010
3028
|
float: "",
|
|
3011
3029
|
"fill-footer": "",
|
|
3012
3030
|
"close-hint": !1,
|
|
@@ -3024,7 +3042,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3024
3042
|
"prompt__option",
|
|
3025
3043
|
`prompt__option--${r.variant || "primary"}`
|
|
3026
3044
|
]),
|
|
3027
|
-
onClick: (d) => r.click ? r.click(c, r) :
|
|
3045
|
+
onClick: (d) => r.click ? r.click(c, r) : o(c, r)
|
|
3028
3046
|
}, {
|
|
3029
3047
|
default: y(() => [
|
|
3030
3048
|
D(V(r.title), 1)
|
|
@@ -3035,13 +3053,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3035
3053
|
]),
|
|
3036
3054
|
default: y(() => [
|
|
3037
3055
|
O("div", Oo, [
|
|
3038
|
-
C(
|
|
3056
|
+
C(a.$slots, "default", {}, void 0, !0)
|
|
3039
3057
|
])
|
|
3040
3058
|
]),
|
|
3041
3059
|
_: 3
|
|
3042
3060
|
}, 8, ["title"]));
|
|
3043
3061
|
}
|
|
3044
|
-
}), Io = /* @__PURE__ */
|
|
3062
|
+
}), Io = /* @__PURE__ */ E(Ao, [["__scopeId", "data-v-4cbfd28f"]]), Bo = { class: "toast__content" }, So = { class: "toast__time" }, wo = /* @__PURE__ */ M({
|
|
3045
3063
|
__name: "aeria-toast",
|
|
3046
3064
|
props: {
|
|
3047
3065
|
idx: {},
|
|
@@ -3051,41 +3069,41 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3051
3069
|
},
|
|
3052
3070
|
setup(e) {
|
|
3053
3071
|
const u = ne("meta");
|
|
3054
|
-
return (
|
|
3072
|
+
return (o, a) => {
|
|
3055
3073
|
const l = ee("clickable");
|
|
3056
3074
|
return K((n(), s("div", {
|
|
3057
3075
|
class: U({
|
|
3058
3076
|
toast: !0,
|
|
3059
3077
|
"toast--animate": t(u).toasts[0].itr === e.itr
|
|
3060
3078
|
}),
|
|
3061
|
-
onAnimationend:
|
|
3062
|
-
onClick:
|
|
3079
|
+
onAnimationend: a[0] || (a[0] = (c) => t(u).$actions.popToast()),
|
|
3080
|
+
onClick: a[1] || (a[1] = (c) => t(u).$actions.popToast(e.itr))
|
|
3063
3081
|
}, [
|
|
3064
3082
|
L(H, x(
|
|
3065
3083
|
e.icon ? { icon: e.icon } : { icon: "warning-circle" },
|
|
3066
3084
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3067
3085
|
), null, 16),
|
|
3068
3086
|
O("div", Bo, [
|
|
3069
|
-
C(
|
|
3070
|
-
O("div", So, V(
|
|
3087
|
+
C(o.$slots, "default", {}, void 0, !0),
|
|
3088
|
+
O("div", So, V(o.formatDateTime(e.date, { hoursOnly: !0 })), 1)
|
|
3071
3089
|
])
|
|
3072
3090
|
], 34)), [
|
|
3073
3091
|
[l]
|
|
3074
3092
|
]);
|
|
3075
3093
|
};
|
|
3076
3094
|
}
|
|
3077
|
-
}), To = /* @__PURE__ */
|
|
3095
|
+
}), To = /* @__PURE__ */ E(wo, [["__scopeId", "data-v-606d47bf"]]), jo = ["innerHTML"], Ro = ["innerHTML"], qo = { class: "main__toasts" }, Lo = ["innerHTML"], xo = /* @__PURE__ */ M({
|
|
3078
3096
|
__name: "aeria-main",
|
|
3079
3097
|
setup(e) {
|
|
3080
|
-
const u = ne("meta"),
|
|
3081
|
-
return (
|
|
3098
|
+
const u = ne("meta"), o = G(() => u.themeOverride || u.theme);
|
|
3099
|
+
return (a, l) => {
|
|
3082
3100
|
const c = at("router-view");
|
|
3083
3101
|
return n(), s("main", {
|
|
3084
3102
|
id: "main",
|
|
3085
3103
|
class: U([
|
|
3086
3104
|
"main",
|
|
3087
|
-
`main--${
|
|
3088
|
-
{ dark:
|
|
3105
|
+
`main--${o.value}`,
|
|
3106
|
+
{ dark: o.value === "dark" }
|
|
3089
3107
|
])
|
|
3090
3108
|
}, [
|
|
3091
3109
|
(n(), $(ot, null, {
|
|
@@ -3093,10 +3111,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3093
3111
|
L(c, null, {
|
|
3094
3112
|
default: y(({ Component: r }) => [
|
|
3095
3113
|
(n(), $(pe(r), null, ie({ _: 2 }, [
|
|
3096
|
-
z(Object.keys(
|
|
3114
|
+
z(Object.keys(a.$slots), (p) => ({
|
|
3097
3115
|
name: p,
|
|
3098
3116
|
fn: y(() => [
|
|
3099
|
-
C(
|
|
3117
|
+
C(a.$slots, p, {}, void 0, !0)
|
|
3100
3118
|
])
|
|
3101
3119
|
}))
|
|
3102
3120
|
]), 1024))
|
|
@@ -3106,7 +3124,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3106
3124
|
]),
|
|
3107
3125
|
_: 3
|
|
3108
3126
|
})),
|
|
3109
|
-
C(
|
|
3127
|
+
C(a.$slots, "default", {}, void 0, !0),
|
|
3110
3128
|
L(Oe, x({
|
|
3111
3129
|
modelValue: t(u).modal.visible,
|
|
3112
3130
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => t(u).modal.visible = r),
|
|
@@ -3149,18 +3167,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3149
3167
|
], 2);
|
|
3150
3168
|
};
|
|
3151
3169
|
}
|
|
3152
|
-
}),
|
|
3153
|
-
function
|
|
3170
|
+
}), cl = /* @__PURE__ */ E(xo, [["__scopeId", "data-v-8de8a4eb"]]), Mo = {}, zo = { class: "menu" };
|
|
3171
|
+
function Eo(e, u) {
|
|
3154
3172
|
return n(), s("menu", zo, [
|
|
3155
|
-
(n(!0), s(Y, null, z(Object.keys(e.$slots), (
|
|
3156
|
-
key:
|
|
3173
|
+
(n(!0), s(Y, null, z(Object.keys(e.$slots), (o) => (n(), s("div", {
|
|
3174
|
+
key: o,
|
|
3157
3175
|
class: "menu__entry"
|
|
3158
3176
|
}, [
|
|
3159
|
-
C(e.$slots,
|
|
3177
|
+
C(e.$slots, o, {}, void 0, !0)
|
|
3160
3178
|
]))), 128))
|
|
3161
3179
|
]);
|
|
3162
3180
|
}
|
|
3163
|
-
const
|
|
3181
|
+
const dl = /* @__PURE__ */ E(Mo, [["render", Eo], ["__scopeId", "data-v-3cfef7fb"]]), Fo = { class: "tabs" }, Uo = {
|
|
3164
3182
|
key: 0,
|
|
3165
3183
|
class: "tabs__horizontal"
|
|
3166
3184
|
}, Ho = {
|
|
@@ -3177,31 +3195,31 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3177
3195
|
dropdown: { type: Boolean }
|
|
3178
3196
|
},
|
|
3179
3197
|
setup(e) {
|
|
3180
|
-
const u = e,
|
|
3198
|
+
const u = e, o = lt(), a = Ce(), l = Se(), c = G(() => {
|
|
3181
3199
|
if (u.query) {
|
|
3182
|
-
const p =
|
|
3200
|
+
const p = a.currentRoute.value.query[u.query];
|
|
3183
3201
|
if (p)
|
|
3184
3202
|
return p;
|
|
3185
3203
|
} else if (u.param) {
|
|
3186
|
-
const p =
|
|
3204
|
+
const p = a.currentRoute.value.params[u.param];
|
|
3187
3205
|
if (p)
|
|
3188
3206
|
return p;
|
|
3189
3207
|
}
|
|
3190
|
-
return Object.keys(
|
|
3208
|
+
return Object.keys(o)[0];
|
|
3191
3209
|
}), r = (p) => {
|
|
3192
|
-
u.query &&
|
|
3210
|
+
u.query && a.push(Be(a.currentRoute.value, {
|
|
3193
3211
|
query: {
|
|
3194
3212
|
[u.query]: p
|
|
3195
3213
|
}
|
|
3196
|
-
})), u.param &&
|
|
3214
|
+
})), u.param && a.push(Be(a.currentRoute.value, {
|
|
3197
3215
|
params: {
|
|
3198
3216
|
[u.param]: p
|
|
3199
3217
|
}
|
|
3200
3218
|
}));
|
|
3201
3219
|
};
|
|
3202
3220
|
return (p, d) => {
|
|
3203
|
-
const
|
|
3204
|
-
return n(), s("div",
|
|
3221
|
+
const v = ee("clickable");
|
|
3222
|
+
return n(), s("div", Fo, [
|
|
3205
3223
|
t(l).md && !e.dropdown ? (n(), s("div", Uo, [
|
|
3206
3224
|
p.$slots.default ? (n(), s("div", Ho, [
|
|
3207
3225
|
C(p.$slots, "default", {}, void 0, !0)
|
|
@@ -3231,7 +3249,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3231
3249
|
]),
|
|
3232
3250
|
_: 3
|
|
3233
3251
|
}, 8, ["active"])), [
|
|
3234
|
-
[
|
|
3252
|
+
[v]
|
|
3235
3253
|
])
|
|
3236
3254
|
]),
|
|
3237
3255
|
_: 2
|
|
@@ -3251,15 +3269,15 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3251
3269
|
]);
|
|
3252
3270
|
};
|
|
3253
3271
|
}
|
|
3254
|
-
}), Yo = /* @__PURE__ */
|
|
3272
|
+
}), Yo = /* @__PURE__ */ E(Wo, [["__scopeId", "data-v-a20914ab"]]), Ko = M({
|
|
3255
3273
|
props: {
|
|
3256
3274
|
initialValue: String,
|
|
3257
3275
|
promise: Promise
|
|
3258
3276
|
},
|
|
3259
3277
|
setup(e) {
|
|
3260
3278
|
const u = X(e.initialValue);
|
|
3261
|
-
return e.promise instanceof Promise && e.promise.then((
|
|
3262
|
-
u.value =
|
|
3279
|
+
return e.promise instanceof Promise && e.promise.then((o) => {
|
|
3280
|
+
u.value = o;
|
|
3263
3281
|
}), () => it("div", String(u.value));
|
|
3264
3282
|
}
|
|
3265
3283
|
}), Xo = ["onClick"], Jo = { key: 1 }, Zo = /* @__PURE__ */ M({
|
|
@@ -3268,19 +3286,19 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3268
3286
|
collection: {}
|
|
3269
3287
|
},
|
|
3270
3288
|
setup(e) {
|
|
3271
|
-
const u = e,
|
|
3272
|
-
const { error:
|
|
3289
|
+
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) => {
|
|
3290
|
+
const { error: v, result: m } = await d.$functions[p.badgeFunction]({
|
|
3273
3291
|
filters: p.filters
|
|
3274
3292
|
});
|
|
3275
|
-
return
|
|
3293
|
+
return v ? 0 : m;
|
|
3276
3294
|
};
|
|
3277
3295
|
return (p, d) => c.value && c.value.description.filtersPresets ? (n(), $(Yo, {
|
|
3278
3296
|
key: 0,
|
|
3279
3297
|
dropdown: "",
|
|
3280
3298
|
query: "section"
|
|
3281
3299
|
}, ie({ _: 2 }, [
|
|
3282
|
-
z(Object.entries(c.value.description.filtersPresets), ([
|
|
3283
|
-
name:
|
|
3300
|
+
z(Object.entries(c.value.description.filtersPresets), ([v, m]) => ({
|
|
3301
|
+
name: v,
|
|
3284
3302
|
fn: y(() => [
|
|
3285
3303
|
O("div", {
|
|
3286
3304
|
class: "topbar__preset",
|
|
@@ -3291,10 +3309,10 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3291
3309
|
icon: m.icon
|
|
3292
3310
|
}, {
|
|
3293
3311
|
default: y(() => [
|
|
3294
|
-
D(V(m.label || t(R)(
|
|
3312
|
+
D(V(m.label || t(R)(v, { plural: !0 })), 1)
|
|
3295
3313
|
]),
|
|
3296
3314
|
_: 2
|
|
3297
|
-
}, 1032, ["icon"])) : (n(), s("div", Jo, V(m.label || t(R)(
|
|
3315
|
+
}, 1032, ["icon"])) : (n(), s("div", Jo, V(m.label || t(R)(v, { plural: !0 })), 1)),
|
|
3298
3316
|
m.badgeFunction ? (n(), $(he, { key: 2 }, {
|
|
3299
3317
|
default: y(() => [
|
|
3300
3318
|
L(t(Ko), {
|
|
@@ -3309,10 +3327,10 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3309
3327
|
}))
|
|
3310
3328
|
]), 1024)) : h("", !0);
|
|
3311
3329
|
}
|
|
3312
|
-
}), Po = /* @__PURE__ */
|
|
3330
|
+
}), Po = /* @__PURE__ */ E(Zo, [["__scopeId", "data-v-f0a45677"]]), No = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3313
3331
|
__proto__: null,
|
|
3314
3332
|
default: Po
|
|
3315
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3333
|
+
}, Symbol.toStringTag, { value: "Module" })), ml = /* @__PURE__ */ M({
|
|
3316
3334
|
__name: "aeria-password-form",
|
|
3317
3335
|
props: {
|
|
3318
3336
|
modelValue: {}
|
|
@@ -3321,7 +3339,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3321
3339
|
setup(e) {
|
|
3322
3340
|
const u = e;
|
|
3323
3341
|
fe(Te, null);
|
|
3324
|
-
const
|
|
3342
|
+
const o = yt(), a = G(() => o(
|
|
3325
3343
|
u.modelValue.password,
|
|
3326
3344
|
u.modelValue.confirmation
|
|
3327
3345
|
));
|
|
@@ -3342,13 +3360,13 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3342
3360
|
"onUpdate:modelValue": c[0] || (c[0] = (r) => l.$emit("update:modelValue", r))
|
|
3343
3361
|
}, {
|
|
3344
3362
|
after: y(() => [
|
|
3345
|
-
O("div", null, V(
|
|
3346
|
-
C(l.$slots, "default", oe(be({ passwordError:
|
|
3363
|
+
O("div", null, V(a.value || "Senhas conferem"), 1),
|
|
3364
|
+
C(l.$slots, "default", oe(be({ passwordError: a.value })))
|
|
3347
3365
|
]),
|
|
3348
3366
|
_: 3
|
|
3349
3367
|
}, 8, ["model-value"]));
|
|
3350
3368
|
}
|
|
3351
|
-
}),
|
|
3369
|
+
}), pl = (e, u = []) => ({
|
|
3352
3370
|
path: "/user",
|
|
3353
3371
|
name: "/builtin:user",
|
|
3354
3372
|
component: e,
|
|
@@ -3356,17 +3374,17 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3356
3374
|
{
|
|
3357
3375
|
path: "invite/:id",
|
|
3358
3376
|
name: "/user/invite/:id",
|
|
3359
|
-
redirect: (
|
|
3377
|
+
redirect: (o) => ({
|
|
3360
3378
|
path: "/user/signup",
|
|
3361
3379
|
params: {
|
|
3362
|
-
inviteId:
|
|
3380
|
+
inviteId: o.params.id
|
|
3363
3381
|
}
|
|
3364
3382
|
})
|
|
3365
3383
|
},
|
|
3366
3384
|
{
|
|
3367
3385
|
path: "signin",
|
|
3368
3386
|
name: "/user/signin",
|
|
3369
|
-
component: () => import("./signin-
|
|
3387
|
+
component: () => import("./signin-Dava-b0C.js"),
|
|
3370
3388
|
meta: {
|
|
3371
3389
|
title: "Sign in"
|
|
3372
3390
|
}
|
|
@@ -3374,7 +3392,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3374
3392
|
{
|
|
3375
3393
|
path: "signup",
|
|
3376
3394
|
name: "/user/signup",
|
|
3377
|
-
component: () => import("./signup-
|
|
3395
|
+
component: () => import("./signup-C9kajyM_.js"),
|
|
3378
3396
|
meta: {
|
|
3379
3397
|
title: "Sign up"
|
|
3380
3398
|
}
|
|
@@ -3382,7 +3400,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3382
3400
|
{
|
|
3383
3401
|
path: "redefine-password",
|
|
3384
3402
|
name: "/user/redefine-password",
|
|
3385
|
-
component: () => import("./redefine-password-
|
|
3403
|
+
component: () => import("./redefine-password-B4omIHya.js"),
|
|
3386
3404
|
meta: {
|
|
3387
3405
|
title: "Redefine password"
|
|
3388
3406
|
}
|
|
@@ -3390,13 +3408,13 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3390
3408
|
{
|
|
3391
3409
|
path: "activation",
|
|
3392
3410
|
name: "/user/activation",
|
|
3393
|
-
component: () => import("./activation-
|
|
3411
|
+
component: () => import("./activation-BENU4jjl.js"),
|
|
3394
3412
|
meta: {
|
|
3395
3413
|
title: "Activate user"
|
|
3396
3414
|
}
|
|
3397
3415
|
}
|
|
3398
3416
|
])
|
|
3399
|
-
}),
|
|
3417
|
+
}), fl = (e, u = []) => ({
|
|
3400
3418
|
path: "/dashboard",
|
|
3401
3419
|
name: "/builtin:dashboard",
|
|
3402
3420
|
component: e,
|
|
@@ -3412,11 +3430,11 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3412
3430
|
name: "/dashboard/:collection",
|
|
3413
3431
|
props: !0,
|
|
3414
3432
|
components: {
|
|
3415
|
-
default: () => import("./index-
|
|
3433
|
+
default: () => import("./index-Bs_rSdPH.js"),
|
|
3416
3434
|
topbar: () => Promise.resolve().then(() => No)
|
|
3417
3435
|
},
|
|
3418
3436
|
meta: {
|
|
3419
|
-
title: ({ collectionName:
|
|
3437
|
+
title: ({ collectionName: o, t: a }) => a(o, {
|
|
3420
3438
|
plural: !0
|
|
3421
3439
|
})
|
|
3422
3440
|
}
|
|
@@ -3426,10 +3444,10 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3426
3444
|
name: "/dashboard/:collection/:id",
|
|
3427
3445
|
props: !0,
|
|
3428
3446
|
components: {
|
|
3429
|
-
default: () => import("./_id_-
|
|
3447
|
+
default: () => import("./_id_-V0WfA8Ww.js")
|
|
3430
3448
|
},
|
|
3431
3449
|
meta: {
|
|
3432
|
-
title: ({ collectionName:
|
|
3450
|
+
title: ({ collectionName: o, t: a }) => a(o, {
|
|
3433
3451
|
plural: !0
|
|
3434
3452
|
})
|
|
3435
3453
|
}
|
|
@@ -3446,7 +3464,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3446
3464
|
children: [
|
|
3447
3465
|
{
|
|
3448
3466
|
path: "profile",
|
|
3449
|
-
component: () => import("./index-
|
|
3467
|
+
component: () => import("./index-Cw0EFXRg.js"),
|
|
3450
3468
|
meta: {
|
|
3451
3469
|
title: "User profile",
|
|
3452
3470
|
icon: "user-square"
|
|
@@ -3455,7 +3473,7 @@ const cl = /* @__PURE__ */ F(Mo, [["render", Fo], ["__scopeId", "data-v-3cfef7fb
|
|
|
3455
3473
|
{
|
|
3456
3474
|
path: "changepass",
|
|
3457
3475
|
name: "/dashboard/user/changepass",
|
|
3458
|
-
component: () => import("./index-
|
|
3476
|
+
component: () => import("./index-DNqnA0oj.js"),
|
|
3459
3477
|
meta: {
|
|
3460
3478
|
title: "Change password",
|
|
3461
3479
|
icon: "lock"
|
|
@@ -3472,27 +3490,27 @@ export {
|
|
|
3472
3490
|
Io as D,
|
|
3473
3491
|
To as E,
|
|
3474
3492
|
Po as F,
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3493
|
+
pl as G,
|
|
3494
|
+
fl as H,
|
|
3495
|
+
E as _,
|
|
3478
3496
|
le as a,
|
|
3479
3497
|
H as b,
|
|
3480
|
-
|
|
3498
|
+
ml as c,
|
|
3481
3499
|
$n as d,
|
|
3482
|
-
|
|
3500
|
+
ul as e,
|
|
3483
3501
|
Aa as f,
|
|
3484
3502
|
Le as g,
|
|
3485
|
-
|
|
3503
|
+
dl as h,
|
|
3486
3504
|
Oe as i,
|
|
3487
|
-
|
|
3505
|
+
rl as j,
|
|
3488
3506
|
he as k,
|
|
3489
3507
|
de as l,
|
|
3490
|
-
|
|
3508
|
+
Et as m,
|
|
3491
3509
|
Ve as n,
|
|
3492
3510
|
co as o,
|
|
3493
3511
|
Oa as p,
|
|
3494
3512
|
Jt as q,
|
|
3495
|
-
|
|
3513
|
+
cl as r,
|
|
3496
3514
|
pn as s,
|
|
3497
3515
|
so as t,
|
|
3498
3516
|
Yo as u,
|