@aeria-ui/ui 0.0.180 → 0.0.182
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_-CBQqbBE4.js → _id_-DBVHGBVR.js} +1 -1
- package/dist/{activation-ChmEewzZ.js → activation-Drd0rAfb.js} +1 -1
- package/dist/{index-vcOSY3aB.js → index-CA81DC9P.js} +1 -1
- package/dist/{index-ei5mv_7-.js → index-DGcdj60_.js} +401 -392
- package/dist/{index-D2KODXsS.js → index-jd_rhIst.js} +1 -1
- package/dist/{index-CIuAGo8j.js → index-yA_qrREO.js} +1 -1
- package/dist/{redefine-password-CwNZDj70.js → redefine-password-D-kCtU72.js} +1 -1
- package/dist/{signin-DZC0Ur3y.js → signin-C6epQRo8.js} +3 -3
- package/dist/{signup-CfYnkr_V.js → signup-jGgkPebj.js} +1 -1
- package/dist/ui.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as F, ref as Z, resolveDirective as N, createElementBlock as l, openBlock as t, normalizeClass as Q, Fragment as X, renderList as E, withDirectives as J, createCommentVNode as
|
|
1
|
+
import { defineComponent as F, ref as Z, resolveDirective as N, createElementBlock as l, openBlock as t, normalizeClass as Q, Fragment as X, renderList as E, withDirectives as J, createCommentVNode as $, createTextVNode as D, toDisplayString as O, unref as e, renderSlot as A, withModifiers as Ie, inject as ue, computed as Y, createElementVNode as I, mergeProps as z, createBlock as k, withCtx as h, resolveDynamicComponent as pe, useCssVars as xe, normalizeProps as ne, guardReactiveProps as _e, Teleport as Ue, createVNode as M, onMounted as He, watch as oe, vModelDynamic as et, onBeforeMount as Je, normalizeStyle as fe, provide as me, createSlots as le, vModelCheckbox as tt, onUnmounted as ot, resolveComponent as nt, Suspense as at, useSlots as lt, h as st } from "vue";
|
|
2
2
|
import { t as j, useI18n as it } from "@aeria-ui/i18n";
|
|
3
|
-
import { INSTANCE_VARS_SYMBOL as rt, useScrollObserver as
|
|
4
|
-
import { arraysIntersect as
|
|
5
|
-
import { useStore as te, getStoreId as we, useParentStore as
|
|
3
|
+
import { INSTANCE_VARS_SYMBOL as rt, useScrollObserver as De, useBreakpoints as Se, useMask as ut, PAGINATION_PER_PAGE_DEFAULTS as dt, API_URL as Ze, request as ct, useDebounce as Pe, convertToSearchQuery as pt, useParentCollectionStore as Ae, useCollectionStore as mt, useAction as ft, convertFromSearchQuery as vt, usePasswordPolicy as yt } from "@aeria-ui/core";
|
|
4
|
+
import { arraysIntersect as Ee, deepClone as ke, getReferenceProperty as se, convertConditionToQuery as _t, freshItem as ht, isRequired as je, evaluateCondition as qe, deepMerge as Be } from "@aeriajs/common";
|
|
5
|
+
import { useStore as te, getStoreId as we, useParentStore as Me, STORE_ID as Te, getGlobalStateManager as Qe } from "@aeria-ui/state-management";
|
|
6
6
|
import { useRouter as Ce } from "vue-router";
|
|
7
7
|
import { isDocumentComplete as bt, getObjectKey as $t } from "@aeria-ui/utils";
|
|
8
8
|
const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
@@ -33,14 +33,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
33
33
|
class: "accordion__header",
|
|
34
34
|
onClick: (p) => i.value === u ? i.value = null : i.value = u
|
|
35
35
|
}, [
|
|
36
|
-
n.enumerate ? (t(), l("span", kt,
|
|
37
|
-
D(" " +
|
|
36
|
+
n.enumerate ? (t(), l("span", kt, O(f + 1) + ". ", 1)) : $("", !0),
|
|
37
|
+
D(" " + O(n.headers[u] ? o(n.headers[u]) : e(j)(u)), 1)
|
|
38
38
|
], 8, gt)), [
|
|
39
39
|
[d]
|
|
40
40
|
]),
|
|
41
41
|
i.value === u ? (t(), l("div", Vt, [
|
|
42
42
|
A(n.$slots, u, {}, void 0, !0)
|
|
43
|
-
])) :
|
|
43
|
+
])) : $("", !0)
|
|
44
44
|
]))), 128))
|
|
45
45
|
], 2);
|
|
46
46
|
};
|
|
@@ -131,7 +131,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
131
131
|
], 2),
|
|
132
132
|
d.$slots.default ? (t(), l("div", Bt, [
|
|
133
133
|
A(d.$slots, "default", {}, void 0, !0)
|
|
134
|
-
])) :
|
|
134
|
+
])) : $("", !0)
|
|
135
135
|
], 2));
|
|
136
136
|
}
|
|
137
137
|
}), G = /* @__PURE__ */ U(St, [["__scopeId", "data-v-263a2782"]]), wt = { class: "button__content" }, Tt = {
|
|
@@ -185,7 +185,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
185
185
|
_: 3
|
|
186
186
|
}, 8, ["class", "disabled"]));
|
|
187
187
|
}
|
|
188
|
-
}), ae = /* @__PURE__ */ U(jt, [["__scopeId", "data-v-e9f582db"]]), Rt = { class: "card__picture" },
|
|
188
|
+
}), ae = /* @__PURE__ */ U(jt, [["__scopeId", "data-v-e9f582db"]]), Rt = { class: "card__picture" }, qt = { class: "card__footer" }, Lt = { class: "card__footer-upper" }, Mt = { class: "card__actions" }, zt = { class: "card__badge" }, Ft = /* @__PURE__ */ F({
|
|
189
189
|
__name: "aeria-card",
|
|
190
190
|
props: {
|
|
191
191
|
inactive: { type: Boolean },
|
|
@@ -202,13 +202,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
202
202
|
I("div", Rt, [
|
|
203
203
|
A(i.$slots, "default", {}, void 0, !0)
|
|
204
204
|
]),
|
|
205
|
-
I("div",
|
|
206
|
-
I("div",
|
|
205
|
+
I("div", qt, [
|
|
206
|
+
I("div", Lt, [
|
|
207
207
|
I("div", null, [
|
|
208
208
|
A(i.$slots, "footer", {}, void 0, !0)
|
|
209
209
|
]),
|
|
210
210
|
I("div", Mt, [
|
|
211
|
-
i.$slots.actions ? A(i.$slots, "actions", { key: 0 }, void 0, !0) :
|
|
211
|
+
i.$slots.actions ? A(i.$slots, "actions", { key: 0 }, void 0, !0) : $("", !0)
|
|
212
212
|
])
|
|
213
213
|
]),
|
|
214
214
|
I("div", zt, [
|
|
@@ -246,14 +246,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
246
246
|
},
|
|
247
247
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
248
248
|
setup(m, { emit: i }) {
|
|
249
|
-
const o = m, n = i, a = Z(o.collapsed), d = Z(null), { reachedEnd: u } =
|
|
249
|
+
const o = m, n = i, a = Z(o.collapsed), d = Z(null), { reachedEnd: u } = De(d), f = () => {
|
|
250
250
|
n("update:modelValue", !1), n("close");
|
|
251
251
|
}, p = () => {
|
|
252
252
|
n("overlayClick");
|
|
253
253
|
}, v = (r) => {
|
|
254
254
|
n("update:collapsed", r), a.value = r;
|
|
255
255
|
};
|
|
256
|
-
return (r,
|
|
256
|
+
return (r, b) => {
|
|
257
257
|
const g = N("clickable"), y = N("loading"), s = N("overlay");
|
|
258
258
|
return r.modelValue ? J((t(), l("div", {
|
|
259
259
|
key: 0,
|
|
@@ -276,7 +276,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
276
276
|
{ "panel__content--transparent-mobile": r.transparentMobile },
|
|
277
277
|
{ "panel__content--outer-header": r.outerHeader }
|
|
278
278
|
]),
|
|
279
|
-
onClick:
|
|
279
|
+
onClick: b[2] || (b[2] = (B) => B.stopPropagation())
|
|
280
280
|
}, {
|
|
281
281
|
default: h(() => [
|
|
282
282
|
r.$slots.header || r.title ? (t(), l("div", {
|
|
@@ -288,23 +288,23 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
288
288
|
])
|
|
289
289
|
}, [
|
|
290
290
|
I("div", Ut, [
|
|
291
|
-
r.$slots.header ? A(r.$slots, "header", { key: 0 }, void 0, !0) : r.title ? (t(), l("div", Ht,
|
|
291
|
+
r.$slots.header ? A(r.$slots, "header", { key: 0 }, void 0, !0) : r.title ? (t(), l("div", Ht, O(r.title), 1)) : $("", !0),
|
|
292
292
|
r.$slots.extra ? (t(), l("div", Dt, [
|
|
293
293
|
A(r.$slots, "extra", {}, void 0, !0)
|
|
294
|
-
])) :
|
|
294
|
+
])) : $("", !0)
|
|
295
295
|
]),
|
|
296
296
|
r.collapsible && a.value ? J((t(), k(G, {
|
|
297
297
|
key: 0,
|
|
298
298
|
reactive: "",
|
|
299
299
|
icon: "plus",
|
|
300
|
-
onClick:
|
|
300
|
+
onClick: b[0] || (b[0] = (B) => v(!a.value))
|
|
301
301
|
}, null, 512)), [
|
|
302
302
|
[g]
|
|
303
303
|
]) : r.collapsible && !a.value ? J((t(), k(G, {
|
|
304
304
|
key: 1,
|
|
305
305
|
reactive: "",
|
|
306
306
|
icon: "minus",
|
|
307
|
-
onClick:
|
|
307
|
+
onClick: b[1] || (b[1] = (B) => v(!a.value))
|
|
308
308
|
}, null, 512)), [
|
|
309
309
|
[g]
|
|
310
310
|
]) : r.closeHint ? J((t(), k(G, {
|
|
@@ -314,9 +314,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
314
314
|
onClick: f
|
|
315
315
|
}, null, 512)), [
|
|
316
316
|
[g]
|
|
317
|
-
]) :
|
|
318
|
-
], 2)) :
|
|
319
|
-
a.value ?
|
|
317
|
+
]) : $("", !0)
|
|
318
|
+
], 2)) : $("", !0),
|
|
319
|
+
a.value ? $("", !0) : J((t(), l("div", {
|
|
320
320
|
key: 1,
|
|
321
321
|
ref_key: "body",
|
|
322
322
|
ref: d,
|
|
@@ -339,7 +339,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
339
339
|
])
|
|
340
340
|
}, [
|
|
341
341
|
A(r.$slots, "footer", {}, void 0, !0)
|
|
342
|
-
], 2)) :
|
|
342
|
+
], 2)) : $("", !0)
|
|
343
343
|
]),
|
|
344
344
|
_: 3
|
|
345
345
|
}, 8, ["class"]))
|
|
@@ -350,7 +350,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
350
350
|
click: p,
|
|
351
351
|
layer: r.overlayLayer || (r.float ? 60 : r.fixedRight ? 50 : 0)
|
|
352
352
|
}]
|
|
353
|
-
]) :
|
|
353
|
+
]) : $("", !0);
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
356
|
}), Oe = /* @__PURE__ */ U(Qt, [["__scopeId", "data-v-8463f8df"]]), Gt = { class: "content__body" }, Wt = {
|
|
@@ -372,7 +372,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
372
372
|
const o = i, n = Z(null), a = Z(!1), d = (p) => p?.filter((v) => {
|
|
373
373
|
if (v.roles) {
|
|
374
374
|
const r = te("user");
|
|
375
|
-
return
|
|
375
|
+
return Ee(v.roles, r.currentUser.roles);
|
|
376
376
|
}
|
|
377
377
|
return !0;
|
|
378
378
|
}), u = (p, v) => {
|
|
@@ -397,7 +397,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
397
397
|
return (p, v) => {
|
|
398
398
|
const r = N("overlay");
|
|
399
399
|
return t(), l(X, null, [
|
|
400
|
-
Object.keys(p.$slots).some((
|
|
400
|
+
Object.keys(p.$slots).some((b) => b !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (t(), l("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
ref_key: "contextmenu",
|
|
403
403
|
ref: n,
|
|
@@ -405,20 +405,20 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
405
405
|
}, [
|
|
406
406
|
I("a", {
|
|
407
407
|
class: "contextmenu__trigger",
|
|
408
|
-
onClick: v[0] || (v[0] = (
|
|
408
|
+
onClick: v[0] || (v[0] = (b) => a.value = !0)
|
|
409
409
|
}, [
|
|
410
410
|
A(p.$slots, "default", ne(_e({
|
|
411
411
|
visible: a.value
|
|
412
412
|
})), void 0, !0)
|
|
413
413
|
])
|
|
414
|
-
], 512)) :
|
|
415
|
-
a.value ? (t(), k(
|
|
414
|
+
], 512)) : $("", !0),
|
|
415
|
+
a.value ? (t(), k(Ue, {
|
|
416
416
|
key: 1,
|
|
417
417
|
to: "main"
|
|
418
418
|
}, [
|
|
419
419
|
J((t(), k(Oe, {
|
|
420
420
|
modelValue: a.value,
|
|
421
|
-
"onUpdate:modelValue": v[4] || (v[4] = (
|
|
421
|
+
"onUpdate:modelValue": v[4] || (v[4] = (b) => a.value = b),
|
|
422
422
|
fill: "",
|
|
423
423
|
bordered: "",
|
|
424
424
|
class: "content",
|
|
@@ -428,54 +428,54 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
428
428
|
I("div", Gt, [
|
|
429
429
|
p.$slots.header ? (t(), l("div", Wt, [
|
|
430
430
|
A(p.$slots, "header", {}, void 0, !0)
|
|
431
|
-
])) :
|
|
432
|
-
Object.keys(p.$slots).filter((
|
|
431
|
+
])) : $("", !0),
|
|
432
|
+
Object.keys(p.$slots).filter((b) => !["default", "extra", "header"].includes(b)).length > 0 ? (t(), l("div", {
|
|
433
433
|
key: 1,
|
|
434
434
|
class: "content__section",
|
|
435
|
-
onClick: v[1] || (v[1] = (
|
|
435
|
+
onClick: v[1] || (v[1] = (b) => a.value = !1)
|
|
436
436
|
}, [
|
|
437
|
-
(t(!0), l(X, null, E(Object.keys(p.$slots).filter((
|
|
437
|
+
(t(!0), l(X, null, E(Object.keys(p.$slots).filter((b) => !["default", "extra", "header"].includes(b)), (b, g) => (t(), k(de, {
|
|
438
438
|
key: `slot-${g}`,
|
|
439
439
|
class: "content__item content__item--reactive"
|
|
440
440
|
}, {
|
|
441
441
|
default: h(() => [
|
|
442
|
-
A(p.$slots,
|
|
442
|
+
A(p.$slots, b, {}, void 0, !0)
|
|
443
443
|
]),
|
|
444
444
|
_: 2
|
|
445
445
|
}, 1024))), 128))
|
|
446
|
-
])) :
|
|
446
|
+
])) : $("", !0),
|
|
447
447
|
p.actions !== void 0 && p.actions.length > 0 ? (t(), l("div", {
|
|
448
448
|
key: 2,
|
|
449
449
|
class: "content__section",
|
|
450
|
-
onClick: v[2] || (v[2] = (
|
|
450
|
+
onClick: v[2] || (v[2] = (b) => a.value = !1)
|
|
451
451
|
}, [
|
|
452
|
-
(t(!0), l(X, null, E(d(p.actions), (
|
|
452
|
+
(t(!0), l(X, null, E(d(p.actions), (b, g) => (t(), k(de, {
|
|
453
453
|
key: `action-${g}`,
|
|
454
454
|
class: "content__item content__item--reactive",
|
|
455
|
-
onClick: (y) => u(
|
|
455
|
+
onClick: (y) => u(b, p.subject)
|
|
456
456
|
}, {
|
|
457
457
|
default: h(() => [
|
|
458
458
|
M(G, {
|
|
459
|
-
icon:
|
|
459
|
+
icon: b.icon || "gear"
|
|
460
460
|
}, {
|
|
461
461
|
default: h(() => [
|
|
462
|
-
D(
|
|
462
|
+
D(O(b.translate ? e(j)(b.label, { capitalize: !0 }) : b.label), 1)
|
|
463
463
|
]),
|
|
464
464
|
_: 2
|
|
465
465
|
}, 1032, ["icon"])
|
|
466
466
|
]),
|
|
467
467
|
_: 2
|
|
468
468
|
}, 1032, ["onClick"]))), 128))
|
|
469
|
-
])) :
|
|
469
|
+
])) : $("", !0),
|
|
470
470
|
p.$slots.extra ? (t(), l("div", {
|
|
471
471
|
key: 3,
|
|
472
472
|
class: "content__section",
|
|
473
|
-
onClick: v[3] || (v[3] = (
|
|
473
|
+
onClick: v[3] || (v[3] = (b) => a.value = !1)
|
|
474
474
|
}, [
|
|
475
475
|
I("div", Yt, [
|
|
476
|
-
p.$slots.extra ? A(p.$slots, "extra", { key: 0 }, void 0, !0) :
|
|
476
|
+
p.$slots.extra ? A(p.$slots, "extra", { key: 0 }, void 0, !0) : $("", !0)
|
|
477
477
|
])
|
|
478
|
-
])) :
|
|
478
|
+
])) : $("", !0)
|
|
479
479
|
])
|
|
480
480
|
]),
|
|
481
481
|
_: 3
|
|
@@ -492,7 +492,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
492
492
|
{ invisibleOnLarge: !0 }
|
|
493
493
|
]
|
|
494
494
|
])
|
|
495
|
-
])) :
|
|
495
|
+
])) : $("", !0)
|
|
496
496
|
], 64);
|
|
497
497
|
};
|
|
498
498
|
}
|
|
@@ -518,7 +518,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
518
518
|
I("div", Xt, [
|
|
519
519
|
A(n.$slots, "text", {}, void 0, !0)
|
|
520
520
|
])
|
|
521
|
-
], 2)) :
|
|
521
|
+
], 2)) : $("", !0),
|
|
522
522
|
I("div", {
|
|
523
523
|
onMouseover: a[0] || (a[0] = (d) => o.value = !0)
|
|
524
524
|
}, [
|
|
@@ -549,7 +549,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
549
549
|
},
|
|
550
550
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
551
551
|
setup(m, { emit: i }) {
|
|
552
|
-
const o = m, n = i, a = o.property || {}, d = "icon" in a || "inputType" in a && a.inputType === "search", u = ue("searchOnly", !1), f = ue("innerInputLabel", !1), p = !u && (o.readOnly || a.readOnly), v = (_) => (n("clipboardCopy", _), navigator.clipboard.writeText(_)), r = ue("inputVariant", o.variant) || "normal",
|
|
552
|
+
const o = m, n = i, a = o.property || {}, d = "icon" in a || "inputType" in a && a.inputType === "search", u = ue("searchOnly", !1), f = ue("innerInputLabel", !1), p = !u && (o.readOnly || a.readOnly), v = (_) => (n("clipboardCopy", _), navigator.clipboard.writeText(_)), r = ue("inputVariant", o.variant) || "normal", b = Object.assign(Object.assign({}, o), {
|
|
553
553
|
name: o.propertyName,
|
|
554
554
|
readonly: p,
|
|
555
555
|
type: (() => {
|
|
@@ -572,22 +572,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
572
572
|
})(),
|
|
573
573
|
placeholder: f ? a.description || o.propertyName : a.placeholder
|
|
574
574
|
});
|
|
575
|
-
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (
|
|
575
|
+
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (b.min = a.minimum), a.exclusiveMinimum && (b.min = a.exclusiveMinimum + 1), a.maximum && (b.max = a.maximum), a.exclusiveMaximum && (b.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (b.type = !u && a.format === "date-time" ? "datetime-local" : "date"), b.minlength = a.minLength, b.maxlength = a.maxLength)), b.type === "text" && u && (b.type = "search"), He(() => {
|
|
576
576
|
o.modelValue !== null && V(o.modelValue);
|
|
577
577
|
});
|
|
578
578
|
const g = (_) => {
|
|
579
|
-
let
|
|
579
|
+
let L;
|
|
580
580
|
if (typeof _ == "string")
|
|
581
|
-
|
|
581
|
+
L = _;
|
|
582
582
|
else if (_ instanceof Date)
|
|
583
|
-
|
|
583
|
+
L = _.toISOString();
|
|
584
584
|
else
|
|
585
585
|
return "";
|
|
586
|
-
switch (
|
|
586
|
+
switch (b.type) {
|
|
587
587
|
case "date":
|
|
588
|
-
return
|
|
588
|
+
return L.slice(0, 10);
|
|
589
589
|
case "datetime-local":
|
|
590
|
-
return
|
|
590
|
+
return L.slice(0, 19);
|
|
591
591
|
default:
|
|
592
592
|
throw new Error();
|
|
593
593
|
}
|
|
@@ -598,7 +598,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
598
598
|
return _ ? s.enmask(String(_), void 0, {
|
|
599
599
|
defaultValue: !0
|
|
600
600
|
}) : "";
|
|
601
|
-
switch (
|
|
601
|
+
switch (b.type) {
|
|
602
602
|
case "date":
|
|
603
603
|
case "datetime-local":
|
|
604
604
|
return g(_);
|
|
@@ -617,10 +617,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
617
617
|
const B = (_) => typeof y.value == "string" && o.property?.type === "string" && s !== null ? (y.value = s.enmask(y.value, void 0, {
|
|
618
618
|
defaultValue: !0
|
|
619
619
|
}), o.property.maskedValue === !0 ? y.value : s.unmask(y.value)) : _, V = (_) => {
|
|
620
|
-
const
|
|
620
|
+
const L = (() => {
|
|
621
621
|
if (typeof _ != "string")
|
|
622
622
|
return _;
|
|
623
|
-
switch (
|
|
623
|
+
switch (b.type) {
|
|
624
624
|
case "number":
|
|
625
625
|
case "integer":
|
|
626
626
|
return _ === "" ? null : Number(_);
|
|
@@ -631,20 +631,20 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
631
631
|
return B(_);
|
|
632
632
|
}
|
|
633
633
|
})();
|
|
634
|
-
n("input",
|
|
634
|
+
n("input", L), n("update:modelValue", L);
|
|
635
635
|
}, H = (_) => {
|
|
636
|
-
const
|
|
637
|
-
y.value =
|
|
636
|
+
const L = _.target.value;
|
|
637
|
+
y.value = L, V(L);
|
|
638
638
|
};
|
|
639
|
-
return (_,
|
|
639
|
+
return (_, L) => {
|
|
640
640
|
const ie = N("focus"), x = N("clickable");
|
|
641
641
|
return t(), l("label", Pt, [
|
|
642
|
-
e(f) ?
|
|
642
|
+
e(f) ? $("", !0) : (t(), l("div", Nt, [
|
|
643
643
|
_.$slots.default ? A(_.$slots, "default", { key: 0 }, void 0, !0) : A(_.$slots, "description", { key: 1 }, void 0, !0)
|
|
644
644
|
])),
|
|
645
645
|
_.$slots.hint ? (t(), l("div", xt, [
|
|
646
646
|
A(_.$slots, "hint", {}, void 0, !0)
|
|
647
|
-
])) :
|
|
647
|
+
])) : $("", !0),
|
|
648
648
|
"element" in e(a) && e(a).element === "textarea" ? (t(), l("div", {
|
|
649
649
|
key: 2,
|
|
650
650
|
class: Q([
|
|
@@ -654,8 +654,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
654
654
|
])
|
|
655
655
|
}, [
|
|
656
656
|
J(I("textarea", {
|
|
657
|
-
placeholder: e(
|
|
658
|
-
readonly: e(
|
|
657
|
+
placeholder: e(b).placeholder,
|
|
658
|
+
readonly: e(b).readonly,
|
|
659
659
|
value: _.modelValue,
|
|
660
660
|
class: Q([
|
|
661
661
|
"input__textarea",
|
|
@@ -672,7 +672,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
672
672
|
`input__container--${e(r)}`
|
|
673
673
|
])
|
|
674
674
|
}, [
|
|
675
|
-
J(I("input", z(e(
|
|
675
|
+
J(I("input", z(e(b), {
|
|
676
676
|
value: y.value,
|
|
677
677
|
"data-component": "input",
|
|
678
678
|
class: [
|
|
@@ -682,7 +682,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
682
682
|
{ "input__input--readOnly": e(p) }
|
|
683
683
|
],
|
|
684
684
|
onInput: H,
|
|
685
|
-
onChange:
|
|
685
|
+
onChange: L[0] || (L[0] = (re) => n("change", re))
|
|
686
686
|
}), null, 16, to), [
|
|
687
687
|
[ie, e(a).focus]
|
|
688
688
|
]),
|
|
@@ -693,24 +693,24 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
693
693
|
"input__icon",
|
|
694
694
|
`input__icon--${e(r)}`
|
|
695
695
|
])
|
|
696
|
-
}, null, 8, ["icon", "class"])) :
|
|
696
|
+
}, null, 8, ["icon", "class"])) : $("", !0),
|
|
697
697
|
e(p) ? (t(), l("div", oo, [
|
|
698
698
|
M(Zt, null, {
|
|
699
|
-
text: h(() =>
|
|
699
|
+
text: h(() => L[2] || (L[2] = [
|
|
700
700
|
D("Copiar")
|
|
701
701
|
])),
|
|
702
702
|
default: h(() => [
|
|
703
703
|
J(M(G, {
|
|
704
704
|
reactive: "",
|
|
705
705
|
icon: "clipboard",
|
|
706
|
-
onClick:
|
|
706
|
+
onClick: L[1] || (L[1] = Ie((re) => v(String(_.modelValue || "")), ["prevent"]))
|
|
707
707
|
}, null, 512), [
|
|
708
708
|
[x]
|
|
709
709
|
])
|
|
710
710
|
]),
|
|
711
711
|
_: 1
|
|
712
712
|
})
|
|
713
|
-
])) :
|
|
713
|
+
])) : $("", !0)
|
|
714
714
|
], 2))
|
|
715
715
|
]);
|
|
716
716
|
};
|
|
@@ -739,12 +739,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
739
739
|
}, f = (r) => {
|
|
740
740
|
r === "" || r === null ? u(null) : o.booleanRef ? u(r === "true") : u(r);
|
|
741
741
|
}, p = (r) => Array.isArray(o.modelValue) ? o.modelValue.includes(r) : o.modelValue === r, v = Y(() => o.multiple ? typeof o.multiple == "number" ? o.multiple : 5 : 1);
|
|
742
|
-
return
|
|
742
|
+
return oe(a, (r) => {
|
|
743
|
+
if (r && o.required && !o.modelValue) {
|
|
744
|
+
const b = r.querySelector("option")?.value;
|
|
745
|
+
b && n("update:modelValue", b);
|
|
746
|
+
}
|
|
747
|
+
}), o.multiple && oe(() => o.modelValue, (r) => {
|
|
743
748
|
if (!a.value)
|
|
744
749
|
return;
|
|
745
|
-
const
|
|
746
|
-
|
|
747
|
-
}), (r,
|
|
750
|
+
const b = a.value.querySelector('option[data-selected="true"]');
|
|
751
|
+
b && b.removeAttribute("data-selected"), a.value.querySelector(`option[value="${r}"]`)?.setAttribute("data-selected", "true");
|
|
752
|
+
}), (r, b) => r.readOnly ? (t(), k(he, {
|
|
748
753
|
key: 1,
|
|
749
754
|
"read-only": "",
|
|
750
755
|
"model-value": r.modelValue
|
|
@@ -759,22 +764,22 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
759
764
|
"select--multiple": !!v.value,
|
|
760
765
|
"select--outline": !r.noOutline
|
|
761
766
|
},
|
|
762
|
-
onChange:
|
|
767
|
+
onChange: b[0] || (b[0] = (g) => f(g.target.value))
|
|
763
768
|
}), [
|
|
764
769
|
e(d) && e(d).icon ? (t(), k(G, {
|
|
765
770
|
key: 0,
|
|
766
771
|
icon: e(d).icon
|
|
767
|
-
}, null, 8, ["icon"])) :
|
|
768
|
-
!o.multiple && !r.required ? (t(), l("option", ao,
|
|
772
|
+
}, null, 8, ["icon"])) : $("", !0),
|
|
773
|
+
!o.multiple && !r.required ? (t(), l("option", ao, O(e(j)("none")), 1)) : $("", !0),
|
|
769
774
|
(t(!0), l(X, null, E(e(d) && "enum" in e(d) ? e(d).enum : [], (g) => (t(), l("option", {
|
|
770
775
|
key: String(g),
|
|
771
776
|
value: g,
|
|
772
777
|
"data-selected": p(g)
|
|
773
|
-
},
|
|
778
|
+
}, O(e(d)?.translate ? e(j)(g) : g), 9, lo))), 128)),
|
|
774
779
|
A(r.$slots, "default", {}, void 0, !0)
|
|
775
780
|
], 16));
|
|
776
781
|
}
|
|
777
|
-
}),
|
|
782
|
+
}), Ge = /* @__PURE__ */ U(so, [["__scopeId", "data-v-0c1bbf94"]]), io = { class: "pagination" }, ro = { class: "pagination__arrows" }, uo = ["value"], co = {
|
|
778
783
|
key: 0,
|
|
779
784
|
class: "pagination__summary"
|
|
780
785
|
}, po = /* @__PURE__ */ F({
|
|
@@ -842,7 +847,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
842
847
|
]),
|
|
843
848
|
_: 1
|
|
844
849
|
}, 8, ["disabled"]),
|
|
845
|
-
M(
|
|
850
|
+
M(Ge, {
|
|
846
851
|
modelValue: d.value,
|
|
847
852
|
"onUpdate:modelValue": v[4] || (v[4] = (r) => d.value = r),
|
|
848
853
|
property: {
|
|
@@ -855,13 +860,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
855
860
|
(t(!0), l(X, null, E(e(dt), (r) => (t(), l("option", {
|
|
856
861
|
key: `limit-${r}`,
|
|
857
862
|
value: r
|
|
858
|
-
},
|
|
863
|
+
}, O(r), 9, uo))), 128))
|
|
859
864
|
]),
|
|
860
865
|
_: 1
|
|
861
866
|
}, 8, ["modelValue"])
|
|
862
867
|
]),
|
|
863
|
-
p.noSummary ?
|
|
864
|
-
D(
|
|
868
|
+
p.noSummary ? $("", !0) : (t(), l("div", co, [
|
|
869
|
+
D(O(e(j)("Page")) + " ", 1),
|
|
865
870
|
(t(), k(he, {
|
|
866
871
|
key: a.value,
|
|
867
872
|
modelValue: u.value,
|
|
@@ -875,7 +880,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
875
880
|
a.value = u.value === 0 ? 0 : u.value - 1;
|
|
876
881
|
})
|
|
877
882
|
}, null, 8, ["modelValue"])),
|
|
878
|
-
I("span", null,
|
|
883
|
+
I("span", null, O(e(j)("of")) + " " + O(f.value), 1)
|
|
879
884
|
]))
|
|
880
885
|
]));
|
|
881
886
|
}
|
|
@@ -937,7 +942,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
937
942
|
}), v = (r) => {
|
|
938
943
|
a && r.preventDefault();
|
|
939
944
|
};
|
|
940
|
-
return (r,
|
|
945
|
+
return (r, b) => {
|
|
941
946
|
const g = N("clickable");
|
|
942
947
|
return J((t(), l("label", {
|
|
943
948
|
class: Q([
|
|
@@ -946,7 +951,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
946
951
|
])
|
|
947
952
|
}, [
|
|
948
953
|
J(I("input", z({
|
|
949
|
-
"onUpdate:modelValue":
|
|
954
|
+
"onUpdate:modelValue": b[0] || (b[0] = (y) => p.value = y)
|
|
950
955
|
}, {
|
|
951
956
|
type: e(d),
|
|
952
957
|
readOnly: e(a),
|
|
@@ -968,7 +973,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
968
973
|
r.$slots.hint ? A(r.$slots, "hint", { key: 0 }, void 0, !0) : e(n)?.hint ? (t(), l("div", {
|
|
969
974
|
key: 1,
|
|
970
975
|
innerHTML: e(n).hint
|
|
971
|
-
}, null, 8, _o)) :
|
|
976
|
+
}, null, 8, _o)) : $("", !0)
|
|
972
977
|
])
|
|
973
978
|
])
|
|
974
979
|
], 2)), [
|
|
@@ -1003,10 +1008,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1003
1008
|
);
|
|
1004
1009
|
}), (f, p) => (t(), l("div", {
|
|
1005
1010
|
class: "options",
|
|
1006
|
-
style: fe(
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1011
|
+
style: fe({
|
|
1012
|
+
"--columns": f.columns,
|
|
1013
|
+
"grid-template-columns": "repeat(var(--columns), 1fr)"
|
|
1014
|
+
})
|
|
1010
1015
|
}, [
|
|
1011
1016
|
(t(!0), l(X, null, E(e(d), (v) => (t(), l("div", {
|
|
1012
1017
|
key: `option-${v}`,
|
|
@@ -1023,7 +1028,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1023
1028
|
]))), 128))
|
|
1024
1029
|
], 4));
|
|
1025
1030
|
}
|
|
1026
|
-
}), Vo = /* @__PURE__ */ U(ko, [["__scopeId", "data-v-
|
|
1031
|
+
}), Vo = /* @__PURE__ */ U(ko, [["__scopeId", "data-v-b22b359b"]]), Co = { class: "switch-wrapper" }, Oo = { key: 1 }, Ao = {
|
|
1027
1032
|
inheritAttrs: !1
|
|
1028
1033
|
}, Io = /* @__PURE__ */ F({
|
|
1029
1034
|
...Ao,
|
|
@@ -1065,14 +1070,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1065
1070
|
blocked: e(d)
|
|
1066
1071
|
}]
|
|
1067
1072
|
]),
|
|
1068
|
-
f.$slots.default ? A(f.$slots, "default", { key: 0 }, void 0, !0) : (t(), l("div", Oo,
|
|
1073
|
+
f.$slots.default ? A(f.$slots, "default", { key: 0 }, void 0, !0) : (t(), l("div", Oo, O(e(a)?.description || f.propertyName), 1))
|
|
1069
1074
|
]);
|
|
1070
1075
|
};
|
|
1071
1076
|
}
|
|
1072
1077
|
}), Bo = /* @__PURE__ */ U(Io, [["__scopeId", "data-v-ae45597d"]]), So = { class: "picture" }, wo = { style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" } }, To = ["src", "alt"], jo = {
|
|
1073
1078
|
key: 0,
|
|
1074
1079
|
class: "picture__meta"
|
|
1075
|
-
}, Ro = ["src"],
|
|
1080
|
+
}, Ro = ["src"], qo = { key: 5 }, Lo = /* @__PURE__ */ F({
|
|
1076
1081
|
__name: "aeria-picture",
|
|
1077
1082
|
props: {
|
|
1078
1083
|
url: {},
|
|
@@ -1091,7 +1096,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1091
1096
|
return (a, d) => {
|
|
1092
1097
|
const u = N("overlay");
|
|
1093
1098
|
return t(), l("figure", So, [
|
|
1094
|
-
o.value && n.value ? (t(), k(
|
|
1099
|
+
o.value && n.value ? (t(), k(Ue, {
|
|
1095
1100
|
key: 0,
|
|
1096
1101
|
to: "main"
|
|
1097
1102
|
}, [
|
|
@@ -1105,7 +1110,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1105
1110
|
},
|
|
1106
1111
|
onClick: d[0] || (d[0] = (f) => n.value = !0)
|
|
1107
1112
|
}, null, 8, To),
|
|
1108
|
-
a.meta?.owner ? (t(), l("div", jo,
|
|
1113
|
+
a.meta?.owner ? (t(), l("div", jo, O(a.t("created_by")) + " " + O(a.meta.owner.name) + " em " + O(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : $("", !0)
|
|
1109
1114
|
])), [
|
|
1110
1115
|
[u, {
|
|
1111
1116
|
layer: 60,
|
|
@@ -1114,7 +1119,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1114
1119
|
}
|
|
1115
1120
|
}]
|
|
1116
1121
|
])
|
|
1117
|
-
])) :
|
|
1122
|
+
])) : $("", !0),
|
|
1118
1123
|
o.value ? (t(), l("img", {
|
|
1119
1124
|
key: 1,
|
|
1120
1125
|
src: o.value,
|
|
@@ -1162,13 +1167,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1162
1167
|
"vector-effect": "non-scaling-stroke"
|
|
1163
1168
|
}, null, -1)
|
|
1164
1169
|
]), 6)),
|
|
1165
|
-
a.$slots.caption ? (t(), l("figcaption",
|
|
1170
|
+
a.$slots.caption ? (t(), l("figcaption", qo, [
|
|
1166
1171
|
A(a.$slots, "caption", {}, void 0, !0)
|
|
1167
|
-
])) :
|
|
1172
|
+
])) : $("", !0)
|
|
1168
1173
|
]);
|
|
1169
1174
|
};
|
|
1170
1175
|
}
|
|
1171
|
-
}), Le = /* @__PURE__ */ U(
|
|
1176
|
+
}), Le = /* @__PURE__ */ U(Lo, [["__scopeId", "data-v-6705b19f"]]), Mo = { class: "item" }, zo = { class: "item__presentation" }, Fo = {
|
|
1172
1177
|
key: 1,
|
|
1173
1178
|
class: "item__name"
|
|
1174
1179
|
}, Eo = { class: "item__size" }, Uo = /* @__PURE__ */ F({
|
|
@@ -1195,7 +1200,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1195
1200
|
alt: e(o).name,
|
|
1196
1201
|
url: e(o).link,
|
|
1197
1202
|
class: "item__picture"
|
|
1198
|
-
}, null, 8, ["alt", "url"])) :
|
|
1203
|
+
}, null, 8, ["alt", "url"])) : $("", !0),
|
|
1199
1204
|
I("div", zo, [
|
|
1200
1205
|
"_id" in e(o) ? (t(), k(G, {
|
|
1201
1206
|
key: 0,
|
|
@@ -1205,11 +1210,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1205
1210
|
class: "item__name item__name--link"
|
|
1206
1211
|
}, {
|
|
1207
1212
|
default: h(() => [
|
|
1208
|
-
D(
|
|
1213
|
+
D(O(e(o).name), 1)
|
|
1209
1214
|
]),
|
|
1210
1215
|
_: 1
|
|
1211
|
-
}, 8, ["href"])) : (t(), l("div", Fo,
|
|
1212
|
-
I("div", Eo,
|
|
1216
|
+
}, 8, ["href"])) : (t(), l("div", Fo, O(e(o).name), 1)),
|
|
1217
|
+
I("div", Eo, O(n(e(o).size)), 1)
|
|
1213
1218
|
]),
|
|
1214
1219
|
I("div", null, [
|
|
1215
1220
|
A(a.$slots, "default", {}, void 0, !0)
|
|
@@ -1235,7 +1240,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1235
1240
|
},
|
|
1236
1241
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1237
1242
|
setup(m, { emit: i }) {
|
|
1238
|
-
const o = m, n = o.property && se(o.property), a = i, u = we() ?
|
|
1243
|
+
const o = m, n = o.property && se(o.property), a = i, u = we() ? Me() : null, f = o.multiple || o.property && "type" in o.property && o.property.type === "array", p = Y(() => {
|
|
1239
1244
|
if (o.modelValue)
|
|
1240
1245
|
return Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue];
|
|
1241
1246
|
}), v = (g) => new Promise((y) => {
|
|
@@ -1270,7 +1275,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1270
1275
|
});
|
|
1271
1276
|
}
|
|
1272
1277
|
f ? a("update:modelValue", Array.isArray(o.modelValue) ? s.concat(o.modelValue) : s) : a("update:modelValue", s[0]), a("update:content", s), a("change", s);
|
|
1273
|
-
},
|
|
1278
|
+
}, b = async (g) => {
|
|
1274
1279
|
if (!o.modelValue)
|
|
1275
1280
|
throw new Error();
|
|
1276
1281
|
const y = Array.isArray(o.modelValue) ? o.modelValue.filter((s, B) => B !== g) : [];
|
|
@@ -1279,7 +1284,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1279
1284
|
return (g, y) => {
|
|
1280
1285
|
const s = N("clickable");
|
|
1281
1286
|
return t(), l("div", Do, [
|
|
1282
|
-
g.readOnly ?
|
|
1287
|
+
g.readOnly ? $("", !0) : (t(), l("input", {
|
|
1283
1288
|
key: 0,
|
|
1284
1289
|
ref: "file",
|
|
1285
1290
|
type: "file",
|
|
@@ -1293,18 +1298,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1293
1298
|
"model-value": B
|
|
1294
1299
|
}, {
|
|
1295
1300
|
default: h(() => [
|
|
1296
|
-
g.readOnly ?
|
|
1301
|
+
g.readOnly ? $("", !0) : J((t(), k(G, {
|
|
1297
1302
|
key: 0,
|
|
1298
1303
|
reactive: "",
|
|
1299
1304
|
icon: "trash",
|
|
1300
|
-
onClick: (H) =>
|
|
1305
|
+
onClick: (H) => b(V)
|
|
1301
1306
|
}, null, 8, ["onClick"])), [
|
|
1302
1307
|
[s]
|
|
1303
1308
|
])
|
|
1304
1309
|
]),
|
|
1305
1310
|
_: 2
|
|
1306
1311
|
}, 1032, ["model-value"]))), 128))
|
|
1307
|
-
])) :
|
|
1312
|
+
])) : $("", !0)
|
|
1308
1313
|
]);
|
|
1309
1314
|
};
|
|
1310
1315
|
}
|
|
@@ -1318,7 +1323,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1318
1323
|
},
|
|
1319
1324
|
emits: ["endReached"],
|
|
1320
1325
|
setup(m, { emit: i }) {
|
|
1321
|
-
const o = m, n = i, a = Z(null), d = o.observeScroll ?
|
|
1326
|
+
const o = m, n = i, a = Z(null), d = o.observeScroll ? De(a, {
|
|
1322
1327
|
antecipate: 100
|
|
1323
1328
|
}).reachedEnd : null;
|
|
1324
1329
|
return d !== null && oe(d, (u) => {
|
|
@@ -1331,10 +1336,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1331
1336
|
class: "container__content"
|
|
1332
1337
|
}, [
|
|
1333
1338
|
A(u.$slots, "default", {}, void 0, !0)
|
|
1334
|
-
], 512)) :
|
|
1339
|
+
], 512)) : $("", !0),
|
|
1335
1340
|
u.$slots.footer ? (t(), l("div", Xo, [
|
|
1336
1341
|
A(u.$slots, "footer", {}, void 0, !0)
|
|
1337
|
-
])) :
|
|
1342
|
+
])) : $("", !0)
|
|
1338
1343
|
]));
|
|
1339
1344
|
}
|
|
1340
1345
|
}), We = /* @__PURE__ */ U(Jo, [["__scopeId", "data-v-c86e2d2a"]]), Zo = { class: "item__values" }, Po = /* @__PURE__ */ F({
|
|
@@ -1349,15 +1354,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1349
1354
|
emits: ["update:modelValue", "change"],
|
|
1350
1355
|
setup(m, { emit: i }) {
|
|
1351
1356
|
const o = Ce(), n = m, a = i, d = n.property, u = se(d);
|
|
1352
|
-
|
|
1353
|
-
const f = Y(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id:
|
|
1357
|
+
Me();
|
|
1358
|
+
const f = Y(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: b }) => n.item._id === b) : n.modelValue._id === n.item._id : !1), p = () => {
|
|
1354
1359
|
if (f.value)
|
|
1355
1360
|
return;
|
|
1356
|
-
const
|
|
1361
|
+
const b = (y) => y.filter((s) => !!s._id);
|
|
1357
1362
|
let g;
|
|
1358
|
-
"items" in d ? n.modelValue ? g =
|
|
1359
|
-
}, v = async (
|
|
1360
|
-
u.purge &&
|
|
1363
|
+
"items" in d ? n.modelValue ? g = b(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : g = [] : g = n.modelValue, Array.isArray(g) ? a("update:modelValue", g.concat([n.item])) : a("update:modelValue", n.item), a("change", n.item);
|
|
1364
|
+
}, v = async (b) => {
|
|
1365
|
+
u.purge && b?.purge;
|
|
1361
1366
|
const g = () => {
|
|
1362
1367
|
const y = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [], s = y.findIndex((B) => B._id === n.item._id);
|
|
1363
1368
|
return y.splice(s, 1), y;
|
|
@@ -1372,7 +1377,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1372
1377
|
}
|
|
1373
1378
|
return f.value ? v() : p();
|
|
1374
1379
|
};
|
|
1375
|
-
return (
|
|
1380
|
+
return (b, g) => {
|
|
1376
1381
|
const y = N("clickable");
|
|
1377
1382
|
return J((t(), l("div", {
|
|
1378
1383
|
class: Q({
|
|
@@ -1381,27 +1386,27 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1381
1386
|
}),
|
|
1382
1387
|
onClick: r
|
|
1383
1388
|
}, [
|
|
1384
|
-
A(
|
|
1389
|
+
A(b.$slots, "default", {}, void 0, !0),
|
|
1385
1390
|
I("div", Zo, [
|
|
1386
|
-
(t(!0), l(X, null, E(
|
|
1387
|
-
key: `index-${
|
|
1391
|
+
(t(!0), l(X, null, E(b.indexes, (s, B) => (t(), l("div", {
|
|
1392
|
+
key: `index-${b.item._id}-${B}`,
|
|
1388
1393
|
class: "item__value"
|
|
1389
|
-
},
|
|
1394
|
+
}, O(b.item[s]), 1))), 128))
|
|
1390
1395
|
]),
|
|
1391
|
-
|
|
1396
|
+
b.readOnly ? (t(), k(G, {
|
|
1392
1397
|
key: 0,
|
|
1393
1398
|
icon: "arrow-square-out",
|
|
1394
1399
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
1395
|
-
})) :
|
|
1400
|
+
})) : $("", !0)
|
|
1396
1401
|
], 2)), [
|
|
1397
1402
|
[y]
|
|
1398
1403
|
]);
|
|
1399
1404
|
};
|
|
1400
1405
|
}
|
|
1401
|
-
}),
|
|
1406
|
+
}), Fe = /* @__PURE__ */ U(Po, [["__scopeId", "data-v-63761718"]]), No = { class: "search__panel" }, xo = { key: 1 }, en = { key: 0 }, tn = { key: 1 }, on = { class: "search__summary" }, nn = {
|
|
1402
1407
|
key: 1,
|
|
1403
1408
|
class: "search"
|
|
1404
|
-
}, an = { key: 0 },
|
|
1409
|
+
}, an = { key: 0 }, Re = 10, ln = /* @__PURE__ */ F({
|
|
1405
1410
|
__name: "aeria-search",
|
|
1406
1411
|
props: {
|
|
1407
1412
|
modelValue: {},
|
|
@@ -1416,27 +1421,27 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1416
1421
|
},
|
|
1417
1422
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1418
1423
|
setup(m, { emit: i }) {
|
|
1419
|
-
const o = m, n = te("meta"), a = se(o.property), d = o.panel !== void 0 ? Y(() => o.panel) : Z(!1), u = i, f = te(se(o.property).$ref), p = we(), v = p ?
|
|
1424
|
+
const o = m, n = te("meta"), a = se(o.property), d = o.panel !== void 0 ? Y(() => o.panel) : Z(!1), u = i, f = te(se(o.property).$ref), p = we(), v = p ? Me() : null, r = a.indexes;
|
|
1420
1425
|
me(Te, se(o.property).$ref), me("innerInputLabel", !0), me("omitInputLabels", !0);
|
|
1421
|
-
const
|
|
1426
|
+
const b = Z(o.modelValue), g = Z({
|
|
1422
1427
|
data: [],
|
|
1423
1428
|
pagination: {}
|
|
1424
1429
|
}), y = Y(() => g.value.data), s = Y(() => g.value.pagination), B = Z(0), V = Z(!1), H = Z(""), _ = () => {
|
|
1425
|
-
const
|
|
1430
|
+
const q = {};
|
|
1426
1431
|
if (p) {
|
|
1427
1432
|
const P = e(p);
|
|
1428
|
-
|
|
1433
|
+
q[P] = v;
|
|
1429
1434
|
}
|
|
1430
|
-
return a.constraints ? _t(a.constraints,
|
|
1431
|
-
},
|
|
1435
|
+
return a.constraints ? _t(a.constraints, q) : {};
|
|
1436
|
+
}, L = () => {
|
|
1432
1437
|
y.value.length < s.value.recordsTotal && (B.value += 1, x());
|
|
1433
1438
|
}, ie = async () => H.value.length === 0 ? f.$actions.custom("getAll", {
|
|
1434
|
-
limit:
|
|
1435
|
-
offset: B.value *
|
|
1439
|
+
limit: Re,
|
|
1440
|
+
offset: B.value * Re,
|
|
1436
1441
|
filters: _()
|
|
1437
1442
|
}) : f.$actions.custom("getAll", {
|
|
1438
|
-
limit:
|
|
1439
|
-
offset: B.value *
|
|
1443
|
+
limit: Re,
|
|
1444
|
+
offset: B.value * Re,
|
|
1440
1445
|
filters: {
|
|
1441
1446
|
$text: {
|
|
1442
1447
|
$search: `"${H.value}"`,
|
|
@@ -1447,8 +1452,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1447
1452
|
}), x = async () => {
|
|
1448
1453
|
if (f.loading.getAll)
|
|
1449
1454
|
return;
|
|
1450
|
-
const { error:
|
|
1451
|
-
if (
|
|
1455
|
+
const { error: q, result: P } = await ie();
|
|
1456
|
+
if (q) {
|
|
1452
1457
|
n.$actions.spawnToast({
|
|
1453
1458
|
text: "Request failed",
|
|
1454
1459
|
icon: "warning"
|
|
@@ -1467,27 +1472,27 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1467
1472
|
}, ce = () => {
|
|
1468
1473
|
B.value = 0, g.value.data.splice(0), "effect" in d ? u("update:panel", !1) : d.value = !1;
|
|
1469
1474
|
};
|
|
1470
|
-
oe(() => H.value.length, (
|
|
1471
|
-
|
|
1472
|
-
}),
|
|
1475
|
+
oe(() => H.value.length, (q, P) => {
|
|
1476
|
+
q && !P && x();
|
|
1477
|
+
}), He(() => {
|
|
1473
1478
|
o.selectOnly && x();
|
|
1474
1479
|
});
|
|
1475
|
-
const
|
|
1476
|
-
|
|
1480
|
+
const C = (q) => {
|
|
1481
|
+
b.value = q, o.selectOnly || u("update:modelValue", q);
|
|
1477
1482
|
}, T = () => {
|
|
1478
|
-
ce(), u("update:modelValue",
|
|
1483
|
+
ce(), u("update:modelValue", b.value);
|
|
1479
1484
|
};
|
|
1480
|
-
return (
|
|
1485
|
+
return (q, P) => {
|
|
1481
1486
|
const c = N("clickable");
|
|
1482
1487
|
return t(), l("div", null, [
|
|
1483
|
-
e(d) ? (t(), k(
|
|
1488
|
+
e(d) ? (t(), k(Ue, {
|
|
1484
1489
|
key: 0,
|
|
1485
1490
|
to: "main"
|
|
1486
1491
|
}, [
|
|
1487
1492
|
M(Oe, {
|
|
1488
1493
|
float: "",
|
|
1489
1494
|
"close-hint": "",
|
|
1490
|
-
title: `${e(j)("action.select", { capitalize: !0 })} ${e(j)(
|
|
1495
|
+
title: `${e(j)("action.select", { capitalize: !0 })} ${e(j)(q.propertyName)}`,
|
|
1491
1496
|
"overlay-layer": 65,
|
|
1492
1497
|
"model-value": e(d),
|
|
1493
1498
|
style: { "--panel-max-width": "36rem" },
|
|
@@ -1500,7 +1505,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1500
1505
|
onClick: T
|
|
1501
1506
|
}, {
|
|
1502
1507
|
default: h(() => [
|
|
1503
|
-
D(
|
|
1508
|
+
D(O(e(j)("action.save", { capitalize: !0 })), 1)
|
|
1504
1509
|
]),
|
|
1505
1510
|
_: 1
|
|
1506
1511
|
})
|
|
@@ -1520,54 +1525,54 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1520
1525
|
y.value.length ? (t(), k(We, {
|
|
1521
1526
|
key: 0,
|
|
1522
1527
|
"observe-scroll": "",
|
|
1523
|
-
onEndReached:
|
|
1528
|
+
onEndReached: L
|
|
1524
1529
|
}, {
|
|
1525
1530
|
default: h(() => [
|
|
1526
|
-
(t(!0), l(X, null, E(y.value, (w) => (t(), k(
|
|
1531
|
+
(t(!0), l(X, null, E(y.value, (w) => (t(), k(Fe, z({ ref_for: !0 }, {
|
|
1527
1532
|
item: w,
|
|
1528
1533
|
indexes: e(r),
|
|
1529
|
-
property:
|
|
1534
|
+
property: q.property
|
|
1530
1535
|
}, {
|
|
1531
1536
|
key: `matching-${w._id}`,
|
|
1532
|
-
modelValue:
|
|
1533
|
-
"onUpdate:modelValue": P[1] || (P[1] = (K) =>
|
|
1537
|
+
modelValue: b.value,
|
|
1538
|
+
"onUpdate:modelValue": P[1] || (P[1] = (K) => b.value = K)
|
|
1534
1539
|
}), null, 16, ["modelValue"]))), 128))
|
|
1535
1540
|
]),
|
|
1536
1541
|
_: 1
|
|
1537
1542
|
})) : (t(), l("div", xo, [
|
|
1538
|
-
V.value ? (t(), l("div", en,
|
|
1543
|
+
V.value ? (t(), l("div", en, O(e(j)("searching", { capitalize: !0 })) + "... ", 1)) : !e(f).loading.getAll && Object.values(H.value).filter((w) => !!w).length > 0 && !("items" in q.property && q.modelValue?.length || !Array.isArray(q.modelValue) && q.modelValue?._id) ? (t(), l("div", tn, O(e(j)("no_results", { capitalize: !0 })), 1)) : $("", !0)
|
|
1539
1544
|
]))
|
|
1540
1545
|
]),
|
|
1541
|
-
I("div", on,
|
|
1546
|
+
I("div", on, O(e(j)("showing", { capitalize: !0 })) + " " + O(y.value.length) + " " + O(e(j)("of")) + " " + O(s.value.recordsTotal), 1)
|
|
1542
1547
|
]),
|
|
1543
1548
|
_: 1
|
|
1544
1549
|
}, 8, ["title", "model-value"])
|
|
1545
|
-
])) :
|
|
1546
|
-
|
|
1550
|
+
])) : $("", !0),
|
|
1551
|
+
q.selectOnly ? $("", !0) : (t(), l("div", nn, [
|
|
1547
1552
|
M(We, null, le({
|
|
1548
1553
|
default: h(() => [
|
|
1549
|
-
"items" in
|
|
1550
|
-
(t(!0), l(X, null, E(
|
|
1554
|
+
"items" in q.property ? (t(), l("div", an, [
|
|
1555
|
+
(t(!0), l(X, null, E(q.modelValue, (w) => (t(), k(Fe, z({ ref_for: !0 }, {
|
|
1551
1556
|
item: w,
|
|
1552
1557
|
indexes: e(r),
|
|
1553
|
-
property:
|
|
1554
|
-
readOnly:
|
|
1555
|
-
modelValue:
|
|
1558
|
+
property: q.property,
|
|
1559
|
+
readOnly: q.readOnly,
|
|
1560
|
+
modelValue: q.modelValue
|
|
1556
1561
|
}, {
|
|
1557
1562
|
key: `selected-${w._id}`,
|
|
1558
|
-
"onUpdate:modelValue":
|
|
1563
|
+
"onUpdate:modelValue": C
|
|
1559
1564
|
}), null, 16))), 128))
|
|
1560
|
-
])) :
|
|
1561
|
-
item:
|
|
1565
|
+
])) : q.modelValue?._id ? (t(), k(Fe, z({ key: 1 }, {
|
|
1566
|
+
item: q.modelValue,
|
|
1562
1567
|
indexes: e(r),
|
|
1563
1568
|
property: e(a),
|
|
1564
|
-
readOnly:
|
|
1565
|
-
modelValue:
|
|
1566
|
-
}, { "onUpdate:modelValue":
|
|
1569
|
+
readOnly: q.readOnly,
|
|
1570
|
+
modelValue: q.modelValue
|
|
1571
|
+
}, { "onUpdate:modelValue": C }), null, 16)) : $("", !0)
|
|
1567
1572
|
]),
|
|
1568
1573
|
_: 2
|
|
1569
1574
|
}, [
|
|
1570
|
-
|
|
1575
|
+
q.readOnly ? void 0 : {
|
|
1571
1576
|
name: "footer",
|
|
1572
1577
|
fn: h(() => [
|
|
1573
1578
|
J((t(), k(G, {
|
|
@@ -1575,7 +1580,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1575
1580
|
onClick: $e
|
|
1576
1581
|
}, {
|
|
1577
1582
|
default: h(() => [
|
|
1578
|
-
D(
|
|
1583
|
+
D(O(e(j)("action.select", { capitalize: !0 })), 1)
|
|
1579
1584
|
]),
|
|
1580
1585
|
_: 1
|
|
1581
1586
|
})), [
|
|
@@ -1592,12 +1597,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1592
1597
|
}), sn = /* @__PURE__ */ U(ln, [["__scopeId", "data-v-7a35daa0"]]), Ye = (m, i) => {
|
|
1593
1598
|
const o = "items" in m ? m.items : m, n = {
|
|
1594
1599
|
options: Vo,
|
|
1595
|
-
select:
|
|
1600
|
+
select: Ge,
|
|
1596
1601
|
switch: Bo,
|
|
1597
1602
|
file: Yo,
|
|
1598
1603
|
search: sn,
|
|
1599
1604
|
input: he,
|
|
1600
|
-
form:
|
|
1605
|
+
form: ze
|
|
1601
1606
|
}, a = (() => {
|
|
1602
1607
|
if ("type" in o) {
|
|
1603
1608
|
if (o.type === "object")
|
|
@@ -1668,7 +1673,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1668
1673
|
},
|
|
1669
1674
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
1670
1675
|
setup(m, { emit: i }) {
|
|
1671
|
-
const o =
|
|
1676
|
+
const o = Qe(), n = m, a = i;
|
|
1672
1677
|
Je(() => {
|
|
1673
1678
|
n.modelValue || a("update:modelValue", n.property && "items" in n.property ? [] : {});
|
|
1674
1679
|
});
|
|
@@ -1692,12 +1697,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1692
1697
|
c.created_at || (w.created_at = K), c.created_at || (w.updated_at = K);
|
|
1693
1698
|
}
|
|
1694
1699
|
return Object.assign(w, c), w;
|
|
1695
|
-
}),
|
|
1700
|
+
}), b = Y(() => n.layout || p?.description.formLayout), g = (c) => {
|
|
1696
1701
|
const w = ue(c, n[c]);
|
|
1697
1702
|
return n[c] && me(c, n[c]), w;
|
|
1698
1703
|
}, y = Y(() => n.validationErrors !== null ? n.validationErrors : p?.validationErrors), s = g("formComponents") || {}, B = g("propertyComponents") || {}, V = g("omitFormHeader"), H = g("omitInputLabels"), _ = g("innerInputLabel");
|
|
1699
1704
|
u && me(Te, u), me("searchOnly", n.searchOnly);
|
|
1700
|
-
const
|
|
1705
|
+
const L = (c) => r.value ? Object.entries(r.value).filter(([w, K]) => !K.noForm && c([
|
|
1701
1706
|
w,
|
|
1702
1707
|
K
|
|
1703
1708
|
])) : null, ie = (c, w) => {
|
|
@@ -1705,12 +1710,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1705
1710
|
return !0;
|
|
1706
1711
|
const K = n.property && "properties" in n.property ? n.property.form : p?.description?.form;
|
|
1707
1712
|
return !K || K.includes(c);
|
|
1708
|
-
}, x =
|
|
1709
|
-
const K = [], ee =
|
|
1713
|
+
}, x = L(([c, w]) => ie(c, w)), re = Se(), be = {}, $e = (c, w) => {
|
|
1714
|
+
const K = [], ee = b.value?.fields?.[c] || b.value?.fields?.$default;
|
|
1710
1715
|
if (!w)
|
|
1711
1716
|
return;
|
|
1712
1717
|
if (ee?.if && !n.searchOnly) {
|
|
1713
|
-
const R =
|
|
1718
|
+
const R = qe(
|
|
1714
1719
|
n.modelValue,
|
|
1715
1720
|
ee.if
|
|
1716
1721
|
);
|
|
@@ -1729,13 +1734,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1729
1734
|
"padding: 1rem 0",
|
|
1730
1735
|
"margin: 1rem 0"
|
|
1731
1736
|
])), K.join(";");
|
|
1732
|
-
}, ce = (c) => c === null || c instanceof Object && !Object.keys(c).length,
|
|
1737
|
+
}, ce = (c) => c === null || c instanceof Object && !Object.keys(c).length, C = Y(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : n.collection ? p.description.required : void 0), T = Y(() => n.form ? bt(
|
|
1733
1738
|
n.modelValue,
|
|
1734
1739
|
n.form,
|
|
1735
|
-
|
|
1740
|
+
C.value,
|
|
1736
1741
|
p?.description
|
|
1737
|
-
) : !0),
|
|
1738
|
-
if (!
|
|
1742
|
+
) : !0), q = (c, w) => y.value?.[c] && (typeof y.value[c].index != "number" || y.value[c].index === w) ? y.value[c].errors : null, P = (c) => {
|
|
1743
|
+
if (!n.focus || f || c.readOnly)
|
|
1744
|
+
return !1;
|
|
1745
|
+
if (!n.parentPropertyName && !n.parentCollection && !v.value)
|
|
1739
1746
|
return v.value = !0, !0;
|
|
1740
1747
|
};
|
|
1741
1748
|
return (c, w) => {
|
|
@@ -1746,7 +1753,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1746
1753
|
}, [
|
|
1747
1754
|
c.$slots.header && !e(V) ? (t(), l("header", dn, [
|
|
1748
1755
|
A(c.$slots, "header", {}, void 0, !0)
|
|
1749
|
-
])) :
|
|
1756
|
+
])) : $("", !0),
|
|
1750
1757
|
A(c.$slots, "default", {}, void 0, !0),
|
|
1751
1758
|
I("fieldset", cn, [
|
|
1752
1759
|
(t(!0), l(X, null, E(e(x), ([S, R]) => (t(), l("div", {
|
|
@@ -1762,14 +1769,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1762
1769
|
class: Q({
|
|
1763
1770
|
"form__field-label": !0,
|
|
1764
1771
|
"form__field-label--section": "items" in R ? "properties" in R.items : "properties" in R,
|
|
1765
|
-
"form__field-required-hint": c.highlightRequired && !e(f) && !c.searchOnly && (!
|
|
1772
|
+
"form__field-required-hint": c.highlightRequired && !e(f) && !c.searchOnly && (!C.value || e(je)(S, C.value, c.modelValue))
|
|
1766
1773
|
})
|
|
1767
|
-
},
|
|
1774
|
+
}, O(R.description || e(j)(S)), 3),
|
|
1768
1775
|
R.hint ? (t(), l("div", {
|
|
1769
1776
|
key: 0,
|
|
1770
1777
|
innerHTML: R.hint
|
|
1771
|
-
}, null, 8, mn)) :
|
|
1772
|
-
])) :
|
|
1778
|
+
}, null, 8, mn)) : $("", !0)
|
|
1779
|
+
])) : $("", !0),
|
|
1773
1780
|
c.$slots[`field-${S}`] ? A(c.$slots, `field-${S}`, z({
|
|
1774
1781
|
key: 1,
|
|
1775
1782
|
ref_for: !0
|
|
@@ -1786,7 +1793,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1786
1793
|
readOnly: e(f),
|
|
1787
1794
|
property: R,
|
|
1788
1795
|
propertyName: S,
|
|
1789
|
-
required: !c.searchOnly && (!
|
|
1796
|
+
required: !c.searchOnly && (!C.value || e(je)(S, C.value, c.modelValue)),
|
|
1790
1797
|
...c.layout.fields[S].component.props || {}
|
|
1791
1798
|
}, {
|
|
1792
1799
|
onInput: (W) => a("input", S),
|
|
@@ -1812,7 +1819,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1812
1819
|
propertyName: S
|
|
1813
1820
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1814
1821
|
], 40, fn)) : "type" in R && R.type === "boolean" && c.searchOnly ? (t(), l("div", vn, [
|
|
1815
|
-
M(
|
|
1822
|
+
M(Ge, z({ ref_for: !0 }, {
|
|
1816
1823
|
property: R,
|
|
1817
1824
|
propertyName: S
|
|
1818
1825
|
}, {
|
|
@@ -1824,13 +1831,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1824
1831
|
}
|
|
1825
1832
|
}), {
|
|
1826
1833
|
default: h(() => [
|
|
1827
|
-
I("option", yn,
|
|
1828
|
-
I("option", _n,
|
|
1834
|
+
I("option", yn, O(e(j)("yes")), 1),
|
|
1835
|
+
I("option", _n, O(e(j)("no")), 1)
|
|
1829
1836
|
]),
|
|
1830
1837
|
_: 2
|
|
1831
1838
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1832
1839
|
])) : c.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), l("div", hn, [
|
|
1833
|
-
e(f) ?
|
|
1840
|
+
e(f) ? $("", !0) : (t(), l("div", bn, [
|
|
1834
1841
|
M(ae, {
|
|
1835
1842
|
small: "",
|
|
1836
1843
|
variant: "alt",
|
|
@@ -1841,7 +1848,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1841
1848
|
}, ["prevent"])
|
|
1842
1849
|
}, {
|
|
1843
1850
|
default: h(() => [
|
|
1844
|
-
D(
|
|
1851
|
+
D(O(e(j)("action.add", { capitalize: !0 })), 1)
|
|
1845
1852
|
]),
|
|
1846
1853
|
_: 2
|
|
1847
1854
|
}, 1032, ["disabled", "onClick"])
|
|
@@ -1851,14 +1858,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1851
1858
|
key: `rep-${S}-${e($t)(W, ge)}`,
|
|
1852
1859
|
class: "form__array-item"
|
|
1853
1860
|
}, [
|
|
1854
|
-
e(f) ?
|
|
1861
|
+
e(f) ? $("", !0) : J((t(), k(G, {
|
|
1855
1862
|
key: 0,
|
|
1856
1863
|
icon: "trash",
|
|
1857
1864
|
class: "form__array-remove",
|
|
1858
1865
|
onClick: Ie((ve) => e(un)(c.modelValue[S], ge), ["prevent"])
|
|
1859
1866
|
}, {
|
|
1860
1867
|
default: h(() => [
|
|
1861
|
-
D(
|
|
1868
|
+
D(O(e(j)("action.remove", { capitalize: !0 })), 1)
|
|
1862
1869
|
]),
|
|
1863
1870
|
_: 2
|
|
1864
1871
|
}, 1032, ["onClick"])), [
|
|
@@ -1873,15 +1880,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1873
1880
|
propertyName: S,
|
|
1874
1881
|
parentCollection: e(u),
|
|
1875
1882
|
parentPropertyName: c.parentPropertyName,
|
|
1883
|
+
required: !c.searchOnly && (!C.value || e(je)(S, C.value, c.modelValue)),
|
|
1876
1884
|
columns: c.layout?.fields?.[S]?.optionsColumns || c.layout?.fields?.$default?.optionsColumns,
|
|
1877
|
-
validationErrors:
|
|
1885
|
+
validationErrors: q(S, ge),
|
|
1878
1886
|
...R.componentProps || {}
|
|
1879
1887
|
}, {
|
|
1880
1888
|
onInput: (ve) => a("input", S),
|
|
1881
1889
|
onChange: w[3] || (w[3] = (ve) => a("change", ve))
|
|
1882
1890
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1883
1891
|
]))), 128))
|
|
1884
|
-
])) :
|
|
1892
|
+
])) : $("", !0)
|
|
1885
1893
|
])) : c.modelValue ? J((t(), k(pe(e(Ye)(R, e(s))), z({
|
|
1886
1894
|
key: 6,
|
|
1887
1895
|
modelValue: c.modelValue[S],
|
|
@@ -1892,36 +1900,37 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1892
1900
|
propertyName: S,
|
|
1893
1901
|
parentPropertyName: c.parentPropertyName,
|
|
1894
1902
|
parentCollection: e(u),
|
|
1903
|
+
required: !c.searchOnly && (!C.value || e(je)(S, C.value, c.modelValue)),
|
|
1895
1904
|
columns: c.layout?.fields?.[S]?.optionsColumns || c.layout?.fields?.$default?.optionsColumns,
|
|
1896
1905
|
...R.componentProps || {},
|
|
1897
|
-
validationErrors:
|
|
1906
|
+
validationErrors: q(S)
|
|
1898
1907
|
}, {
|
|
1899
1908
|
onInput: (W) => a("input", S),
|
|
1900
1909
|
onChange: w[4] || (w[4] = (W) => a("change", W)),
|
|
1901
1910
|
onClipboardCopy: w[5] || (w[5] = (W) => a("clipboardCopy", W))
|
|
1902
1911
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1903
1912
|
[ee, P(R)]
|
|
1904
|
-
]) :
|
|
1913
|
+
]) : $("", !0),
|
|
1905
1914
|
y.value?.[S] ? (t(), l("div", gn, [
|
|
1906
|
-
y.value[S].type ? (t(), l("span", kn,
|
|
1907
|
-
y.value[S].detail ? (t(), l("span", Vn,
|
|
1908
|
-
])) :
|
|
1915
|
+
y.value[S].type ? (t(), l("span", kn, O(e(j)(`validation_error.${y.value[S].type}`)), 1)) : $("", !0),
|
|
1916
|
+
y.value[S].detail ? (t(), l("span", Vn, O(e(j)(y.value[S].detail)), 1)) : $("", !0)
|
|
1917
|
+
])) : $("", !0)
|
|
1909
1918
|
], 6))), 128))
|
|
1910
1919
|
]),
|
|
1911
|
-
c.$slots.after ? A(c.$slots, "after", { key: 1 }, void 0, !0) :
|
|
1920
|
+
c.$slots.after ? A(c.$slots, "after", { key: 1 }, void 0, !0) : $("", !0),
|
|
1912
1921
|
c.$slots.footer ? (t(), l("div", Cn, [
|
|
1913
1922
|
A(c.$slots, "footer", ne(_e({
|
|
1914
1923
|
isInsertReady: T.value
|
|
1915
1924
|
})), void 0, !0)
|
|
1916
|
-
])) :
|
|
1925
|
+
])) : $("", !0)
|
|
1917
1926
|
], 4);
|
|
1918
1927
|
};
|
|
1919
1928
|
}
|
|
1920
|
-
}),
|
|
1929
|
+
}), ze = /* @__PURE__ */ U(On, [["__scopeId", "data-v-9360374a"]]), An = /* @__PURE__ */ F({
|
|
1921
1930
|
__name: "aeria-filter-panel",
|
|
1922
1931
|
emits: ["update:modelValue"],
|
|
1923
1932
|
setup(m, { emit: i }) {
|
|
1924
|
-
const o = i, n =
|
|
1933
|
+
const o = i, n = Me(), a = Ce(), d = e(ue(Te)), u = () => {
|
|
1925
1934
|
if (n.pagination.offset = 0, n.$actions.filter(), o("update:modelValue", !1), "query" in a.currentRoute && a.currentRoute.query && typeof a.currentRoute.query == "object") {
|
|
1926
1935
|
const v = a.currentRoute.query;
|
|
1927
1936
|
for (const r of Object.keys(v))
|
|
@@ -1948,16 +1957,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1948
1957
|
})
|
|
1949
1958
|
}, {
|
|
1950
1959
|
default: h(() => [
|
|
1951
|
-
D(
|
|
1960
|
+
D(O(f.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1952
1961
|
M(ye, null, {
|
|
1953
1962
|
default: h(() => [
|
|
1954
|
-
D(
|
|
1963
|
+
D(O(e(n).filtersCount), 1)
|
|
1955
1964
|
]),
|
|
1956
1965
|
_: 1
|
|
1957
1966
|
})
|
|
1958
1967
|
]),
|
|
1959
1968
|
_: 1
|
|
1960
|
-
})) :
|
|
1969
|
+
})) : $("", !0),
|
|
1961
1970
|
M(ae, {
|
|
1962
1971
|
large: "",
|
|
1963
1972
|
icon: "funnel",
|
|
@@ -1965,13 +1974,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
1965
1974
|
onClick: u
|
|
1966
1975
|
}, {
|
|
1967
1976
|
default: h(() => [
|
|
1968
|
-
D(
|
|
1977
|
+
D(O(f.t("action.filter", { capitalize: !0 })), 1)
|
|
1969
1978
|
]),
|
|
1970
1979
|
_: 1
|
|
1971
1980
|
}, 8, ["disabled"])
|
|
1972
1981
|
]),
|
|
1973
1982
|
default: h(() => [
|
|
1974
|
-
M(
|
|
1983
|
+
M(ze, z({
|
|
1975
1984
|
modelValue: e(n).filters,
|
|
1976
1985
|
"onUpdate:modelValue": p[0] || (p[0] = (v) => e(n).filters = v)
|
|
1977
1986
|
}, {
|
|
@@ -2000,7 +2009,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2000
2009
|
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2001
2010
|
setup(m, { emit: i }) {
|
|
2002
2011
|
const o = m, n = i, a = te("meta"), d = o.collection, u = te(d);
|
|
2003
|
-
|
|
2012
|
+
He(() => {
|
|
2004
2013
|
o.modelValue && u.$actions.setItem(o.modelValue);
|
|
2005
2014
|
});
|
|
2006
2015
|
const f = Y(() => o.form ? u.$actions.useProperties(o.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), p = async () => {
|
|
@@ -2031,7 +2040,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2031
2040
|
},
|
|
2032
2041
|
body: v("prompt.close_panel")
|
|
2033
2042
|
});
|
|
2034
|
-
},
|
|
2043
|
+
}, b = () => a.$actions.spawnToast({
|
|
2035
2044
|
icon: "info",
|
|
2036
2045
|
text: v("copied_to_clipboard")
|
|
2037
2046
|
});
|
|
@@ -2063,13 +2072,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2063
2072
|
icon: "dots-three"
|
|
2064
2073
|
}, null, 8, ["active"])), [
|
|
2065
2074
|
[s]
|
|
2066
|
-
]) :
|
|
2075
|
+
]) : $("", !0)
|
|
2067
2076
|
]),
|
|
2068
2077
|
_: 1
|
|
2069
|
-
}, 16)) :
|
|
2078
|
+
}, 16)) : $("", !0)
|
|
2070
2079
|
]),
|
|
2071
2080
|
default: h(() => [
|
|
2072
|
-
M(
|
|
2081
|
+
M(ze, z({
|
|
2073
2082
|
modelValue: e(u).item,
|
|
2074
2083
|
"onUpdate:modelValue": y[0] || (y[0] = (B) => e(u).item = B)
|
|
2075
2084
|
}, {
|
|
@@ -2081,7 +2090,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2081
2090
|
layout: e(u).description.formLayout || {}
|
|
2082
2091
|
}, {
|
|
2083
2092
|
focus: "",
|
|
2084
|
-
onClipboardCopy:
|
|
2093
|
+
onClipboardCopy: b,
|
|
2085
2094
|
onAdd: y[1] || (y[1] = (B) => B.preventDefault())
|
|
2086
2095
|
}), le({ _: 2 }, [
|
|
2087
2096
|
E(Object.keys(g.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
@@ -2110,10 +2119,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2110
2119
|
onClick: r
|
|
2111
2120
|
}, {
|
|
2112
2121
|
default: h(() => [
|
|
2113
|
-
D(
|
|
2122
|
+
D(O(e(v)("action.cancel", { capitalize: !0 })), 1)
|
|
2114
2123
|
]),
|
|
2115
2124
|
_: 1
|
|
2116
|
-
})) :
|
|
2125
|
+
})) : $("", !0),
|
|
2117
2126
|
M(ae, {
|
|
2118
2127
|
large: "",
|
|
2119
2128
|
disabled: !e(u).isInsertReady || e(u).loading.get,
|
|
@@ -2121,7 +2130,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2121
2130
|
onClick: p
|
|
2122
2131
|
}, {
|
|
2123
2132
|
default: h(() => [
|
|
2124
|
-
D(
|
|
2133
|
+
D(O(e(v)("action.insert", { capitalize: !0 })), 1)
|
|
2125
2134
|
]),
|
|
2126
2135
|
_: 1
|
|
2127
2136
|
}, 8, ["disabled", "loading"])
|
|
@@ -2163,10 +2172,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2163
2172
|
}, Sn = {
|
|
2164
2173
|
key: 0,
|
|
2165
2174
|
class: "table aeria-surface"
|
|
2166
|
-
}, wn = { key: 0 }, Tn = { key: 1 }, jn = { key: 0 }, Rn = ["checked"],
|
|
2175
|
+
}, wn = { key: 0 }, Tn = { key: 1 }, jn = { key: 0 }, Rn = ["checked"], qn = {
|
|
2167
2176
|
key: 1,
|
|
2168
2177
|
style: { "text-align": "right" }
|
|
2169
|
-
},
|
|
2178
|
+
}, Ln = { key: 2 }, Mn = { key: 3 }, zn = ["onClick"], Fn = { key: 0 }, En = ["value"], Un = { class: "table__cell-mobile-label" }, Hn = {
|
|
2170
2179
|
key: 0,
|
|
2171
2180
|
class: "table__cell-container"
|
|
2172
2181
|
}, Dn = {
|
|
@@ -2193,18 +2202,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2193
2202
|
const o = m, n = i, a = Se(), d = o.collection || we(), u = d ? te(typeof d == "string" ? d : d.value) : null, f = Y({
|
|
2194
2203
|
get: () => u?.selected,
|
|
2195
2204
|
set: (y) => u?.$actions.selectManyItems(y, !0)
|
|
2196
|
-
}), p = Y(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), v = (y, s) => y.button ? typeof y.button == "object" ?
|
|
2205
|
+
}), p = Y(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), v = (y, s) => y.button ? typeof y.button == "object" ? qe(s, y.button).satisfied : y.button : !1, r = (y) => {
|
|
2197
2206
|
const s = o.layout?.actions;
|
|
2198
2207
|
return !a.value.xl || !s || !o.actions ? [] : o.actions.filter((B) => {
|
|
2199
2208
|
if (B.roles) {
|
|
2200
2209
|
const H = te("user");
|
|
2201
|
-
if (!
|
|
2210
|
+
if (!Ee(B.roles, H.currentUser.roles))
|
|
2202
2211
|
return !1;
|
|
2203
2212
|
}
|
|
2204
2213
|
const V = s[B.action];
|
|
2205
2214
|
return V && v(V, y);
|
|
2206
2215
|
});
|
|
2207
|
-
},
|
|
2216
|
+
}, b = (y) => {
|
|
2208
2217
|
if (!o.actions)
|
|
2209
2218
|
return [];
|
|
2210
2219
|
const s = o.layout?.actions;
|
|
@@ -2212,17 +2221,17 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2212
2221
|
const V = s[B.action];
|
|
2213
2222
|
if (B.roles) {
|
|
2214
2223
|
const H = te("user");
|
|
2215
|
-
if (!
|
|
2224
|
+
if (!Ee(B.roles, H.currentUser.roles))
|
|
2216
2225
|
return !1;
|
|
2217
2226
|
}
|
|
2218
|
-
return V ? V.if ?
|
|
2227
|
+
return V ? V.if ? qe(
|
|
2219
2228
|
y,
|
|
2220
2229
|
V.if
|
|
2221
2230
|
).satisfied : !v(V, y) : !0;
|
|
2222
2231
|
});
|
|
2223
2232
|
}, g = (y, s) => {
|
|
2224
2233
|
const B = [], V = o.layout?.actions?.[s.action];
|
|
2225
|
-
return V?.if && (
|
|
2234
|
+
return V?.if && (qe(
|
|
2226
2235
|
y,
|
|
2227
2236
|
V.if
|
|
2228
2237
|
).satisfied || B.push("display: none;")), B.join("");
|
|
@@ -2240,15 +2249,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2240
2249
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2241
2250
|
onChange: s[0] || (s[0] = (V) => e(u).$actions.selectAllItems(V.target.checked))
|
|
2242
2251
|
}, null, 40, Rn)
|
|
2243
|
-
])) :
|
|
2252
|
+
])) : $("", !0),
|
|
2244
2253
|
(t(!0), l(X, null, E(Object.entries(y.columns), ([V, H], _) => (t(), l("th", {
|
|
2245
2254
|
key: `header-${_}`,
|
|
2246
2255
|
class: "table__header"
|
|
2247
|
-
},
|
|
2248
|
-
y.actions?.length ? (t(), l("th",
|
|
2256
|
+
}, O(H.description || e(j)(V)), 1))), 128)),
|
|
2257
|
+
y.actions?.length ? (t(), l("th", qn)) : $("", !0)
|
|
2249
2258
|
])
|
|
2250
2259
|
])),
|
|
2251
|
-
y.$slots.tbody ? (t(), l("tbody",
|
|
2260
|
+
y.$slots.tbody ? (t(), l("tbody", Ln, [
|
|
2252
2261
|
A(y.$slots, "tbody", {}, void 0, !0)
|
|
2253
2262
|
])) : (t(), l("tbody", Mn, [
|
|
2254
2263
|
(t(!0), l(X, null, E(y.rows, (V, H) => (t(), l("tr", {
|
|
@@ -2263,29 +2272,29 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2263
2272
|
}, null, 8, En), [
|
|
2264
2273
|
[tt, f.value]
|
|
2265
2274
|
])
|
|
2266
|
-
])) :
|
|
2267
|
-
(t(!0), l(X, null, E(Object.entries(y.columns), ([_,
|
|
2275
|
+
])) : $("", !0),
|
|
2276
|
+
(t(!0), l(X, null, E(Object.entries(y.columns), ([_, L], ie) => (t(), l("td", {
|
|
2268
2277
|
key: `column-${V._id}-${ie}`
|
|
2269
2278
|
}, [
|
|
2270
|
-
I("div", Un,
|
|
2279
|
+
I("div", Un, O(L.description || e(j)(_)), 1),
|
|
2271
2280
|
`row-${_}` in y.$slots ? (t(), l("div", Hn, [
|
|
2272
2281
|
A(y.$slots, `row-${_}`, z({ ref_for: !0 }, {
|
|
2273
2282
|
store: e(u),
|
|
2274
2283
|
column: _,
|
|
2275
|
-
property:
|
|
2284
|
+
property: L,
|
|
2276
2285
|
row: V,
|
|
2277
2286
|
rowIndex: H
|
|
2278
2287
|
}), void 0, !0)
|
|
2279
2288
|
])) : (t(), l("div", Dn, [
|
|
2280
2289
|
I("div", Qn, [
|
|
2281
|
-
"type" in
|
|
2290
|
+
"type" in L && L.type === "boolean" ? (t(), l("div", Gn, [
|
|
2282
2291
|
V[_] ? (t(), k(G, {
|
|
2283
2292
|
key: 0,
|
|
2284
2293
|
icon: "check",
|
|
2285
2294
|
"icon-classes": "aeria-blueish"
|
|
2286
2295
|
}, {
|
|
2287
2296
|
default: h(() => [
|
|
2288
|
-
D(
|
|
2297
|
+
D(O(e(j)("yes")), 1)
|
|
2289
2298
|
]),
|
|
2290
2299
|
_: 1
|
|
2291
2300
|
})) : (t(), k(G, {
|
|
@@ -2294,13 +2303,13 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2294
2303
|
"icon-classes": "aeria-redish"
|
|
2295
2304
|
}, {
|
|
2296
2305
|
default: h(() => [
|
|
2297
|
-
D(
|
|
2306
|
+
D(O(e(j)("no")), 1)
|
|
2298
2307
|
]),
|
|
2299
2308
|
_: 1
|
|
2300
2309
|
}))
|
|
2301
|
-
])) : e(se)(
|
|
2310
|
+
])) : e(se)(L)?.$ref === "file" ? (t(), l("div", Wn, [
|
|
2302
2311
|
V[_] ? (t(), l("div", Yn, [
|
|
2303
|
-
"items" in
|
|
2312
|
+
"items" in L && V[_][0] && /^image/.test(V[_][0].type) ? (t(), k(Le, {
|
|
2304
2313
|
key: 0,
|
|
2305
2314
|
modelValue: V[_][0].link,
|
|
2306
2315
|
"onUpdate:modelValue": (x) => V[_][0].link = x,
|
|
@@ -2320,25 +2329,25 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2320
2329
|
key: 2,
|
|
2321
2330
|
href: V[_].link,
|
|
2322
2331
|
style: { "font-size": "10pt" }
|
|
2323
|
-
},
|
|
2332
|
+
}, O(V[_].filename), 9, Kn)) : (t(), l("div", Xn, " - "))
|
|
2324
2333
|
])) : (t(), l("div", Jn, " - "))
|
|
2325
2334
|
])) : (t(), l("div", Zn, [
|
|
2326
|
-
e(u) ? (t(), l("span", Pn,
|
|
2335
|
+
e(u) ? (t(), l("span", Pn, O(e(u).$actions.formatValue({
|
|
2327
2336
|
value: V[_],
|
|
2328
2337
|
key: _,
|
|
2329
|
-
property:
|
|
2330
|
-
})), 1)) : (t(), l("span", Nn,
|
|
2331
|
-
e(se)(
|
|
2332
|
-
(t(!0), l(X, null, E(e(se)(
|
|
2338
|
+
property: L
|
|
2339
|
+
})), 1)) : (t(), l("span", Nn, O(Array.isArray(V[_]) ? V[_].filter((x) => !!x).join(", ") : [void 0, null].includes(V[_]) ? "-" : V[_]), 1)),
|
|
2340
|
+
e(se)(L)?.indexes?.length > 1 ? (t(), l("div", xn, [
|
|
2341
|
+
(t(!0), l(X, null, E(e(se)(L).indexes.slice(1, 2), (x, re) => (t(), l("div", {
|
|
2333
2342
|
key: `subvalue-${re}`,
|
|
2334
2343
|
class: "table__cell-subvalue"
|
|
2335
|
-
},
|
|
2344
|
+
}, O(e(u).$actions.formatValue({
|
|
2336
2345
|
value: V[_],
|
|
2337
2346
|
key: _,
|
|
2338
|
-
property:
|
|
2347
|
+
property: L,
|
|
2339
2348
|
index: x
|
|
2340
2349
|
})), 1))), 128))
|
|
2341
|
-
])) :
|
|
2350
|
+
])) : $("", !0)
|
|
2342
2351
|
]))
|
|
2343
2352
|
])
|
|
2344
2353
|
]))
|
|
@@ -2351,19 +2360,19 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2351
2360
|
variant: "alt",
|
|
2352
2361
|
icon: _.icon,
|
|
2353
2362
|
style: fe(g(V, _)),
|
|
2354
|
-
onClick: (
|
|
2363
|
+
onClick: (L) => _.click(V)
|
|
2355
2364
|
}, {
|
|
2356
2365
|
default: h(() => [
|
|
2357
|
-
D(
|
|
2366
|
+
D(O(e(j)(_.label)), 1)
|
|
2358
2367
|
]),
|
|
2359
2368
|
_: 2
|
|
2360
2369
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2361
|
-
|
|
2370
|
+
b(V).length > 0 ? (t(), k(Ve, z({
|
|
2362
2371
|
key: 0,
|
|
2363
2372
|
ref_for: !0
|
|
2364
2373
|
}, {
|
|
2365
2374
|
subject: V,
|
|
2366
|
-
actions:
|
|
2375
|
+
actions: b(V)
|
|
2367
2376
|
}), {
|
|
2368
2377
|
default: h(({
|
|
2369
2378
|
visible: _
|
|
@@ -2377,36 +2386,36 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2377
2386
|
])
|
|
2378
2387
|
]),
|
|
2379
2388
|
_: 2
|
|
2380
|
-
}, 1040)) :
|
|
2389
|
+
}, 1040)) : $("", !0)
|
|
2381
2390
|
])
|
|
2382
2391
|
])) : y.actions?.length ? (t(), l("td", oa, [
|
|
2383
2392
|
I("div", {
|
|
2384
2393
|
class: "table__mobile-actions-grid",
|
|
2385
|
-
style: fe(`grid-template-columns: repeat(${r(V).length + (
|
|
2394
|
+
style: fe(`grid-template-columns: repeat(${r(V).length + (b(V).length ? 1 : 0)}, 1fr);`)
|
|
2386
2395
|
}, [
|
|
2387
2396
|
(t(!0), l(X, null, E(r(V), (_) => (t(), k(de, {
|
|
2388
2397
|
key: `action-${_.action}`,
|
|
2389
2398
|
class: "table__mobile-actions-button",
|
|
2390
|
-
onClick: (
|
|
2399
|
+
onClick: (L) => _.click(V)
|
|
2391
2400
|
}, {
|
|
2392
2401
|
default: h(() => [
|
|
2393
2402
|
M(G, {
|
|
2394
2403
|
icon: _.icon || "gear"
|
|
2395
2404
|
}, {
|
|
2396
2405
|
default: h(() => [
|
|
2397
|
-
D(
|
|
2406
|
+
D(O(e(j)(_.label)), 1)
|
|
2398
2407
|
]),
|
|
2399
2408
|
_: 2
|
|
2400
2409
|
}, 1032, ["icon"])
|
|
2401
2410
|
]),
|
|
2402
2411
|
_: 2
|
|
2403
2412
|
}, 1032, ["onClick"]))), 128)),
|
|
2404
|
-
|
|
2413
|
+
b(V).length > 0 ? (t(), k(Ve, z({
|
|
2405
2414
|
key: 0,
|
|
2406
2415
|
ref_for: !0
|
|
2407
2416
|
}, {
|
|
2408
2417
|
subject: V,
|
|
2409
|
-
actions:
|
|
2418
|
+
actions: b(V)
|
|
2410
2419
|
}), {
|
|
2411
2420
|
default: h(() => [
|
|
2412
2421
|
M(G, {
|
|
@@ -2415,12 +2424,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2415
2424
|
})
|
|
2416
2425
|
]),
|
|
2417
2426
|
_: 2
|
|
2418
|
-
}, 1040)) :
|
|
2427
|
+
}, 1040)) : $("", !0)
|
|
2419
2428
|
], 4),
|
|
2420
2429
|
I("div", {
|
|
2421
2430
|
id: `dropdown-${V._id}`
|
|
2422
2431
|
}, null, 8, na)
|
|
2423
|
-
])) :
|
|
2432
|
+
])) : $("", !0)
|
|
2424
2433
|
], 8, zn))), 128))
|
|
2425
2434
|
])),
|
|
2426
2435
|
I("tfoot", null, [
|
|
@@ -2428,11 +2437,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2428
2437
|
I("td", {
|
|
2429
2438
|
colspan: p.value + 1
|
|
2430
2439
|
}, [
|
|
2431
|
-
I("div", sa,
|
|
2440
|
+
I("div", sa, O(e(j)("no_results", { capitalize: !0 })) + ". ", 1)
|
|
2432
2441
|
], 8, la)
|
|
2433
|
-
])) :
|
|
2442
|
+
])) : $("", !0)
|
|
2434
2443
|
])
|
|
2435
|
-
])) :
|
|
2444
|
+
])) : $("", !0);
|
|
2436
2445
|
};
|
|
2437
2446
|
}
|
|
2438
2447
|
}), ra = /* @__PURE__ */ U(ia, [["__scopeId", "data-v-e01a149a"]]), ua = /* @__PURE__ */ F({
|
|
@@ -2455,7 +2464,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2455
2464
|
return Object.assign(d, i.componentProps);
|
|
2456
2465
|
});
|
|
2457
2466
|
return (d, u) => (t(), l("div", null, [
|
|
2458
|
-
d.$slots.inner ? A(d.$slots, "inner", { key: 0 }) :
|
|
2467
|
+
d.$slots.inner ? A(d.$slots, "inner", { key: 0 }) : $("", !0),
|
|
2459
2468
|
e(o).properties ? (t(), k(ra, z({ key: 1 }, a.value, {
|
|
2460
2469
|
key: e(o).$id
|
|
2461
2470
|
}), le({ _: 2 }, [
|
|
@@ -2465,7 +2474,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2465
2474
|
A(d.$slots, f, ne(_e(p)))
|
|
2466
2475
|
])
|
|
2467
2476
|
}))
|
|
2468
|
-
]), 1040)) :
|
|
2477
|
+
]), 1040)) : $("", !0)
|
|
2469
2478
|
]));
|
|
2470
2479
|
}
|
|
2471
2480
|
}), da = /* @__PURE__ */ F({
|
|
@@ -2511,12 +2520,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2511
2520
|
horizontal: d.componentName === "list"
|
|
2512
2521
|
}, le({
|
|
2513
2522
|
footer: h(() => [
|
|
2514
|
-
e(o).title ? (t(), l("div", pa,
|
|
2523
|
+
e(o).title ? (t(), l("div", pa, O(p[e(o).title]), 1)) : $("", !0),
|
|
2515
2524
|
Array.isArray(e(o).information) ? (t(), l("div", ma, [
|
|
2516
2525
|
(t(!0), l(X, null, E(e(o).information, (v) => (t(), l("div", {
|
|
2517
2526
|
key: `info-${v}`
|
|
2518
|
-
},
|
|
2519
|
-
])) : e(o).information ? (t(), l("div", fa,
|
|
2527
|
+
}, O(p[v]), 1))), 128))
|
|
2528
|
+
])) : e(o).information ? (t(), l("div", fa, O(p[e(o).information]), 1)) : $("", !0)
|
|
2520
2529
|
]),
|
|
2521
2530
|
actions: h(() => [
|
|
2522
2531
|
d.individualActions?.length ? (t(), k(Ve, z({
|
|
@@ -2538,7 +2547,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2538
2547
|
])
|
|
2539
2548
|
]),
|
|
2540
2549
|
_: 2
|
|
2541
|
-
}, 1040)) :
|
|
2550
|
+
}, 1040)) : $("", !0)
|
|
2542
2551
|
]),
|
|
2543
2552
|
default: h(() => [
|
|
2544
2553
|
M(Le, z({ expandable: "" }, { ref_for: !0 }, {
|
|
@@ -2558,7 +2567,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2558
2567
|
large: ""
|
|
2559
2568
|
}, {
|
|
2560
2569
|
default: h(() => [
|
|
2561
|
-
D(
|
|
2570
|
+
D(O(e(o).translateBadge ? e(j)(v) : v), 1)
|
|
2562
2571
|
]),
|
|
2563
2572
|
_: 2
|
|
2564
2573
|
}, 1024))), 128))
|
|
@@ -2569,7 +2578,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2569
2578
|
fn: h(() => [
|
|
2570
2579
|
M(ye, null, {
|
|
2571
2580
|
default: h(() => [
|
|
2572
|
-
D(
|
|
2581
|
+
D(O(e(o).translateBadge ? e(j)(p[e(o).badge]) : p[e(o).badge]), 1)
|
|
2573
2582
|
]),
|
|
2574
2583
|
_: 2
|
|
2575
2584
|
}, 1024)
|
|
@@ -2611,50 +2620,50 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2611
2620
|
},
|
|
2612
2621
|
emits: ["uiEvent"],
|
|
2613
2622
|
setup(m, { emit: i }) {
|
|
2614
|
-
const o = Z(!1), n = Z(!1), a = Z((...
|
|
2623
|
+
const o = Z(!1), n = Z(!1), a = Z((...C) => null), d = Z(), u = m, f = i, p = Ce(), v = te("meta"), r = Se(), { reachedEnd: b, detach: g } = De(null, {
|
|
2615
2624
|
antecipate: 600
|
|
2616
2625
|
}), y = !r.value.md || u.scrollPagination;
|
|
2617
|
-
y && oe(
|
|
2618
|
-
|
|
2626
|
+
y && oe(b, (C) => {
|
|
2627
|
+
C && s.pagination.recordsTotal > s.items.length && H.value < Xe && (H.value += 1, L());
|
|
2619
2628
|
});
|
|
2620
2629
|
const s = mt(u.collection);
|
|
2621
2630
|
Bn(s, {
|
|
2622
2631
|
persistInQuery: !u.noQueryPersistence
|
|
2623
2632
|
});
|
|
2624
|
-
const B =
|
|
2633
|
+
const B = Qe(), V = u.action ? e(u.action) : ft(s, p, B);
|
|
2625
2634
|
a.value = V[0], d.value = V[1];
|
|
2626
|
-
const H = Z(0), _ = Z(!1),
|
|
2627
|
-
s.activeFilters = Object.assign({},
|
|
2635
|
+
const H = Z(0), _ = Z(!1), L = async (C) => {
|
|
2636
|
+
s.activeFilters = Object.assign({}, C?.filters || s.$filters), Object.assign(s.activeFilters, s.filtersPreset);
|
|
2628
2637
|
const T = {
|
|
2629
2638
|
filters: s.activeFilters,
|
|
2630
2639
|
limit: s.pagination.limit,
|
|
2631
2640
|
offset: s.pagination.offset,
|
|
2632
2641
|
project: s.preferredTableProperties.length > 0 ? s.preferredTableProperties : s.description.table || Object.keys(s.properties)
|
|
2633
2642
|
};
|
|
2634
|
-
H.value > 0 && (T.limit = 15, T.offset = H.value * T.limit), s.description.tableMeta && (T.project = T.project.concat(s.description.tableMeta)),
|
|
2635
|
-
const { error:
|
|
2636
|
-
if (
|
|
2643
|
+
H.value > 0 && (T.limit = 15, T.offset = H.value * T.limit), s.description.tableMeta && (T.project = T.project.concat(s.description.tableMeta)), C && Object.assign(T, C), s.loading.getAll = !0;
|
|
2644
|
+
const { error: q, result: P } = await s.$actions.retrieveItems(T);
|
|
2645
|
+
if (q)
|
|
2637
2646
|
return;
|
|
2638
2647
|
const { data: c, pagination: w } = P;
|
|
2639
2648
|
s.pagination.recordsCount = w.recordsCount, s.pagination.recordsTotal = w.recordsTotal, H.value === 0 && s.items.splice(0), s.items.push(...c), s.loading.getAll = !1, _.value = !0;
|
|
2640
|
-
}, ie = async (
|
|
2649
|
+
}, ie = async (C) => {
|
|
2641
2650
|
p.push(Be(p.currentRoute.value, {
|
|
2642
2651
|
query: {
|
|
2643
|
-
offset:
|
|
2644
|
-
limit:
|
|
2652
|
+
offset: C.offset,
|
|
2653
|
+
limit: C.limit
|
|
2645
2654
|
}
|
|
2646
|
-
})), s.pagination.offset =
|
|
2655
|
+
})), s.pagination.offset = C.offset, s.pagination.limit = C.limit, L();
|
|
2647
2656
|
}, x = ue("noResultsComponent", null);
|
|
2648
2657
|
oe(() => [
|
|
2649
2658
|
p.currentRoute.value.path,
|
|
2650
2659
|
p.currentRoute.value.query.section
|
|
2651
|
-
], async (
|
|
2652
|
-
if (T && T[0] ===
|
|
2660
|
+
], async (C, T) => {
|
|
2661
|
+
if (T && T[0] === C[0] && T[1] === C[1])
|
|
2653
2662
|
return;
|
|
2654
|
-
const
|
|
2655
|
-
if (v.view.title = u.collection, !u.noFetch && (!
|
|
2656
|
-
const P = vt(s,
|
|
2657
|
-
Object.keys(P).length > 0 && Object.assign(s.filters, P), await
|
|
2663
|
+
const q = p.currentRoute.value;
|
|
2664
|
+
if (v.view.title = u.collection, !u.noFetch && (!q.query._popstate || s.itemsCount === 0)) {
|
|
2665
|
+
const P = vt(s, q.query);
|
|
2666
|
+
Object.keys(P).length > 0 && Object.assign(s.filters, P), await L();
|
|
2658
2667
|
}
|
|
2659
2668
|
}, {
|
|
2660
2669
|
immediate: !0,
|
|
@@ -2662,31 +2671,31 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2662
2671
|
});
|
|
2663
2672
|
const [re] = Pe({
|
|
2664
2673
|
delay: 600
|
|
2665
|
-
})((
|
|
2674
|
+
})((C) => (p.push(Be(p.currentRoute.value, {
|
|
2666
2675
|
query: {
|
|
2667
|
-
search:
|
|
2676
|
+
search: C || void 0
|
|
2668
2677
|
}
|
|
2669
|
-
})),
|
|
2678
|
+
})), C ? (s.filters = Object.assign(ke(s.freshFilters), {
|
|
2670
2679
|
$text: {
|
|
2671
|
-
$search: `"${
|
|
2680
|
+
$search: `"${C}"`,
|
|
2672
2681
|
$caseSensitive: !1
|
|
2673
2682
|
}
|
|
2674
|
-
}),
|
|
2683
|
+
}), L({
|
|
2675
2684
|
offset: 0
|
|
2676
|
-
})) : (s.filters = ke(s.freshFilters), H.value = 0,
|
|
2677
|
-
oe(() => s.textQuery, (
|
|
2678
|
-
re(
|
|
2685
|
+
})) : (s.filters = ke(s.freshFilters), H.value = 0, L())));
|
|
2686
|
+
oe(() => s.textQuery, (C) => {
|
|
2687
|
+
re(C);
|
|
2679
2688
|
});
|
|
2680
|
-
const be = (
|
|
2681
|
-
|
|
2689
|
+
const be = (C) => {
|
|
2690
|
+
C.currentLayout = C.currentLayout === "tabular" ? C.description.layout.name : "tabular";
|
|
2682
2691
|
};
|
|
2683
2692
|
ot(() => {
|
|
2684
2693
|
s.$actions.clearFilters(), s.textQuery = "", g();
|
|
2685
|
-
}), oe(() => d.value, async (
|
|
2686
|
-
const T = ke(
|
|
2687
|
-
let
|
|
2694
|
+
}), oe(() => d.value, async (C) => {
|
|
2695
|
+
const T = ke(C);
|
|
2696
|
+
let q;
|
|
2688
2697
|
if (T)
|
|
2689
|
-
if ((T.name === "spawnEdit" || T.name === "duplicate") && (
|
|
2698
|
+
if ((T.name === "spawnEdit" || T.name === "duplicate") && (q = s.$actions.get({
|
|
2690
2699
|
filters: {
|
|
2691
2700
|
_id: T.params._id
|
|
2692
2701
|
}
|
|
@@ -2697,7 +2706,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2697
2706
|
else if (T.name === "spawnEdit")
|
|
2698
2707
|
s.$actions.setItem(T.params), o.value = "edit";
|
|
2699
2708
|
else if (T.name === "duplicate") {
|
|
2700
|
-
await
|
|
2709
|
+
await q;
|
|
2701
2710
|
const P = Object.entries(s.item).reduce((c, [w, K]) => {
|
|
2702
2711
|
if (!(w in s.properties))
|
|
2703
2712
|
return {
|
|
@@ -2733,37 +2742,37 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2733
2742
|
f("uiEvent", T);
|
|
2734
2743
|
}, {
|
|
2735
2744
|
deep: !0
|
|
2736
|
-
}), oe(() => o, ({ value:
|
|
2737
|
-
|
|
2745
|
+
}), oe(() => o, ({ value: C }) => {
|
|
2746
|
+
C === !1 && s.$actions.clearItem();
|
|
2738
2747
|
});
|
|
2739
2748
|
const $e = Y(() => {
|
|
2740
2749
|
if (!u.noActions)
|
|
2741
|
-
return s.individualActions.map((
|
|
2742
|
-
click: a.value(
|
|
2743
|
-
...
|
|
2750
|
+
return s.individualActions.map((C) => ({
|
|
2751
|
+
click: a.value(C),
|
|
2752
|
+
...C
|
|
2744
2753
|
}));
|
|
2745
|
-
}), ce = Y(() => s.actions.filter((
|
|
2746
|
-
return me(Te, Y(() => u.collection)), (
|
|
2747
|
-
const
|
|
2754
|
+
}), ce = Y(() => s.actions.filter((C) => !C.button));
|
|
2755
|
+
return me(Te, Y(() => u.collection)), (C, T) => {
|
|
2756
|
+
const q = N("clickable"), P = N("loading");
|
|
2748
2757
|
return t(), l(X, null, [
|
|
2749
2758
|
n.value ? (t(), k(An, {
|
|
2750
2759
|
key: e(s).$id,
|
|
2751
2760
|
modelValue: n.value,
|
|
2752
2761
|
"onUpdate:modelValue": T[0] || (T[0] = (c) => n.value = c)
|
|
2753
|
-
}, null, 8, ["modelValue"])) :
|
|
2762
|
+
}, null, 8, ["modelValue"])) : $("", !0),
|
|
2754
2763
|
o.value ? (t(), k(In, z({
|
|
2755
2764
|
key: 1,
|
|
2756
2765
|
visible: o.value,
|
|
2757
2766
|
"onUpdate:visible": T[1] || (T[1] = (c) => o.value = c),
|
|
2758
2767
|
"fixed-right": ""
|
|
2759
2768
|
}, {
|
|
2760
|
-
collection:
|
|
2769
|
+
collection: C.collection,
|
|
2761
2770
|
individualActions: $e.value
|
|
2762
2771
|
}, {
|
|
2763
2772
|
onCancel: T[2] || (T[2] = (c) => o.value = !1)
|
|
2764
2773
|
}), le({
|
|
2765
2774
|
header: h(() => [
|
|
2766
|
-
I("span", null,
|
|
2775
|
+
I("span", null, O((() => {
|
|
2767
2776
|
switch (o.value) {
|
|
2768
2777
|
case "add":
|
|
2769
2778
|
return e(j)("action.add", { capitalize: !0 });
|
|
@@ -2774,18 +2783,18 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2774
2783
|
return e(j)("action.edit", { capitalize: !0 });
|
|
2775
2784
|
}
|
|
2776
2785
|
})()), 1),
|
|
2777
|
-
I("span", null, " " +
|
|
2786
|
+
I("span", null, " " + O(e(j)(C.collection)), 1)
|
|
2778
2787
|
]),
|
|
2779
2788
|
_: 2
|
|
2780
2789
|
}, [
|
|
2781
|
-
E(Object.keys(
|
|
2790
|
+
E(Object.keys(C.$slots).filter((c) => c.startsWith("field-")), (c) => ({
|
|
2782
2791
|
name: c,
|
|
2783
2792
|
fn: h((w) => [
|
|
2784
|
-
A(
|
|
2793
|
+
A(C.$slots, c, ne(_e(w)), void 0, !0)
|
|
2785
2794
|
])
|
|
2786
2795
|
}))
|
|
2787
|
-
]), 1040, ["visible"])) :
|
|
2788
|
-
!
|
|
2796
|
+
]), 1040, ["visible"])) : $("", !0),
|
|
2797
|
+
!C.noActions && (e(s).description.search || Object.keys(e(s).availableFilters).length > 0 || e(s)?.actions.length > 0 || C.$slots.actions || !C.noLayoutToggle && e(s).description.layout && e(s).description.layout?.name !== "tabular") ? (t(), l("div", _a, [
|
|
2789
2798
|
e(s).description.search ? (t(), l("div", ha, [
|
|
2790
2799
|
M(he, z({
|
|
2791
2800
|
modelValue: e(s).textQuery,
|
|
@@ -2797,9 +2806,9 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2797
2806
|
inputType: "search"
|
|
2798
2807
|
}
|
|
2799
2808
|
}), null, 16, ["modelValue"])
|
|
2800
|
-
])) :
|
|
2809
|
+
])) : $("", !0),
|
|
2801
2810
|
I("div", ba, [
|
|
2802
|
-
ce.value.length > 0 || !
|
|
2811
|
+
ce.value.length > 0 || !C.noLayoutToggle && e(s).description.layout && e(s).description.layout?.name !== "tabular" ? (t(), k(Ve, { key: 0 }, le({
|
|
2803
2812
|
default: h(() => [
|
|
2804
2813
|
M(ae, {
|
|
2805
2814
|
variant: "alt",
|
|
@@ -2808,10 +2817,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2808
2817
|
default: h(() => [
|
|
2809
2818
|
e(s).filtersCount ? (t(), k(ye, { key: 0 }, {
|
|
2810
2819
|
default: h(() => [
|
|
2811
|
-
D(
|
|
2820
|
+
D(O(e(s).filtersCount), 1)
|
|
2812
2821
|
]),
|
|
2813
2822
|
_: 1
|
|
2814
|
-
})) :
|
|
2823
|
+
})) : $("", !0)
|
|
2815
2824
|
]),
|
|
2816
2825
|
_: 1
|
|
2817
2826
|
})
|
|
@@ -2826,24 +2835,24 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2826
2835
|
onClick: T[4] || (T[4] = (c) => n.value = !0)
|
|
2827
2836
|
}, {
|
|
2828
2837
|
default: h(() => [
|
|
2829
|
-
D(
|
|
2838
|
+
D(O(e(j)("filters", { capitalize: !0 })), 1)
|
|
2830
2839
|
]),
|
|
2831
2840
|
_: 1
|
|
2832
2841
|
})), [
|
|
2833
|
-
[
|
|
2842
|
+
[q]
|
|
2834
2843
|
]),
|
|
2835
2844
|
I("div", $a, [
|
|
2836
2845
|
e(s).filtersCount ? (t(), k(ye, { key: 0 }, {
|
|
2837
2846
|
default: h(() => [
|
|
2838
|
-
D(
|
|
2847
|
+
D(O(e(s).filtersCount), 1)
|
|
2839
2848
|
]),
|
|
2840
2849
|
_: 1
|
|
2841
|
-
})) :
|
|
2850
|
+
})) : $("", !0)
|
|
2842
2851
|
])
|
|
2843
2852
|
]),
|
|
2844
2853
|
key: "0"
|
|
2845
2854
|
} : void 0,
|
|
2846
|
-
!
|
|
2855
|
+
!C.noLayoutToggle && e(s).description.layout && e(s).description.layout?.name !== "tabular" ? {
|
|
2847
2856
|
name: "layout-toggle",
|
|
2848
2857
|
fn: h(() => [
|
|
2849
2858
|
J((t(), k(G, {
|
|
@@ -2851,11 +2860,11 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2851
2860
|
onClick: T[5] || (T[5] = (c) => be(e(s)))
|
|
2852
2861
|
}, {
|
|
2853
2862
|
default: h(() => [
|
|
2854
|
-
D(
|
|
2863
|
+
D(O(e(j)("change_layout", { capitalize: !0 })), 1)
|
|
2855
2864
|
]),
|
|
2856
2865
|
_: 1
|
|
2857
2866
|
})), [
|
|
2858
|
-
[
|
|
2867
|
+
[q]
|
|
2859
2868
|
])
|
|
2860
2869
|
]),
|
|
2861
2870
|
key: "1"
|
|
@@ -2870,10 +2879,10 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2870
2879
|
onClick: (K) => a.value(c)({ _id: e(s).selected.map((ee) => typeof ee == "string" || ee._id) })
|
|
2871
2880
|
}, {
|
|
2872
2881
|
default: h(() => [
|
|
2873
|
-
D(
|
|
2882
|
+
D(O(e(j)(c.label, { capitalize: !0 })), 1)
|
|
2874
2883
|
]),
|
|
2875
2884
|
_: 2
|
|
2876
|
-
}, 1032, ["icon", "disabled", "onClick"])) :
|
|
2885
|
+
}, 1032, ["icon", "disabled", "onClick"])) : $("", !0)
|
|
2877
2886
|
])
|
|
2878
2887
|
}))
|
|
2879
2888
|
]), 1024)) : Object.keys(e(s).availableFilters).length > 0 ? (t(), k(ae, {
|
|
@@ -2883,16 +2892,16 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2883
2892
|
onClick: T[6] || (T[6] = (c) => n.value = !0)
|
|
2884
2893
|
}, {
|
|
2885
2894
|
default: h(() => [
|
|
2886
|
-
I("div", null,
|
|
2895
|
+
I("div", null, O(e(j)("Filters")), 1),
|
|
2887
2896
|
e(s).filtersCount ? (t(), k(ye, { key: 0 }, {
|
|
2888
2897
|
default: h(() => [
|
|
2889
|
-
D(
|
|
2898
|
+
D(O(e(s).filtersCount), 1)
|
|
2890
2899
|
]),
|
|
2891
2900
|
_: 1
|
|
2892
|
-
})) :
|
|
2901
|
+
})) : $("", !0)
|
|
2893
2902
|
]),
|
|
2894
2903
|
_: 1
|
|
2895
|
-
})) :
|
|
2904
|
+
})) : $("", !0),
|
|
2896
2905
|
(t(!0), l(X, null, E(e(s).actions.filter((c) => c.button), (c, w) => (t(), k(ae, {
|
|
2897
2906
|
key: `action-${w}`,
|
|
2898
2907
|
icon: c.icon,
|
|
@@ -2900,15 +2909,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2900
2909
|
onClick: (K) => a.value(c)({ _id: e(s).selected.map((ee) => typeof ee == "string" || ee._id) })
|
|
2901
2910
|
}, {
|
|
2902
2911
|
default: h(() => [
|
|
2903
|
-
D(
|
|
2912
|
+
D(O(e(j)(c.label, { capitalize: !0 })), 1)
|
|
2904
2913
|
]),
|
|
2905
2914
|
_: 2
|
|
2906
2915
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2907
|
-
|
|
2916
|
+
C.$slots.actions ? A(C.$slots, "actions", { key: 2 }, void 0, !0) : $("", !0)
|
|
2908
2917
|
])
|
|
2909
|
-
])) :
|
|
2918
|
+
])) : $("", !0),
|
|
2910
2919
|
J((t(), l("div", ga, [
|
|
2911
|
-
e(s).itemsCount === 0 && !e(s).loading.getAll && _.value && (e(x) ||
|
|
2920
|
+
e(s).itemsCount === 0 && !e(s).loading.getAll && _.value && (e(x) || C.$slots.empty) ? (t(), l("div", ka, [
|
|
2912
2921
|
e(x) ? (t(), k(pe(e(x)), ne(z({ key: 0 }, {
|
|
2913
2922
|
collection: e(s).$id
|
|
2914
2923
|
})), {
|
|
@@ -2922,34 +2931,34 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2922
2931
|
})())
|
|
2923
2932
|
}, {
|
|
2924
2933
|
default: h(() => [
|
|
2925
|
-
D(
|
|
2934
|
+
D(O(e(j)("add_first_item", { capitalize: !0 })), 1)
|
|
2926
2935
|
]),
|
|
2927
2936
|
_: 1
|
|
2928
|
-
})) :
|
|
2937
|
+
})) : $("", !0)
|
|
2929
2938
|
]),
|
|
2930
2939
|
_: 1
|
|
2931
|
-
}, 16)) : A(
|
|
2940
|
+
}, 16)) : A(C.$slots, "empty", ne(z({ key: 1 }, {
|
|
2932
2941
|
collection: e(s).$id
|
|
2933
2942
|
})), void 0, !0)
|
|
2934
|
-
])) :
|
|
2943
|
+
])) : C.$slots.component ? A(C.$slots, "component", ne(z({ key: 1 }, {
|
|
2935
2944
|
store: e(s)
|
|
2936
|
-
})), void 0, !0) : (t(), k(pe(e(ya)(
|
|
2945
|
+
})), void 0, !0) : (t(), k(pe(e(ya)(C.layout?.name || e(s).$currentLayout)), z({ key: 2 }, {
|
|
2937
2946
|
individualActions: $e.value,
|
|
2938
|
-
layoutOptions:
|
|
2939
|
-
componentProps:
|
|
2947
|
+
layoutOptions: C.layout?.options || e(s).layout.options,
|
|
2948
|
+
componentProps: C.componentProps
|
|
2940
2949
|
}, {
|
|
2941
|
-
"component-name":
|
|
2950
|
+
"component-name": C.layout?.name || e(s).$currentLayout
|
|
2942
2951
|
}), le({ _: 2 }, [
|
|
2943
|
-
E(Object.keys(
|
|
2952
|
+
E(Object.keys(C.$slots).filter((c) => c.startsWith("row-")), (c) => ({
|
|
2944
2953
|
name: c,
|
|
2945
2954
|
fn: h((w) => [
|
|
2946
|
-
A(
|
|
2955
|
+
A(C.$slots, c, ne(_e(w)), void 0, !0)
|
|
2947
2956
|
])
|
|
2948
2957
|
})),
|
|
2949
|
-
|
|
2958
|
+
C.$slots.tfoot ? {
|
|
2950
2959
|
name: "tfoot",
|
|
2951
2960
|
fn: h(() => [
|
|
2952
|
-
A(
|
|
2961
|
+
A(C.$slots, "tfoot", {}, void 0, !0)
|
|
2953
2962
|
]),
|
|
2954
2963
|
key: "0"
|
|
2955
2964
|
} : void 0
|
|
@@ -2957,12 +2966,12 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2957
2966
|
])), [
|
|
2958
2967
|
[P, (!e(y) || H.value === Xe) && e(s).loading.getAll]
|
|
2959
2968
|
]),
|
|
2960
|
-
!e(y) && !
|
|
2969
|
+
!e(y) && !C.noControls && !e(s).loading.getAll && e(s).itemsCount > 0 ? (t(), l("div", Va, [
|
|
2961
2970
|
M(mo, {
|
|
2962
2971
|
pagination: e(s).pagination,
|
|
2963
2972
|
onPaginate: ie
|
|
2964
2973
|
}, null, 8, ["pagination"])
|
|
2965
|
-
])) :
|
|
2974
|
+
])) : $("", !0)
|
|
2966
2975
|
], 64);
|
|
2967
2976
|
};
|
|
2968
2977
|
}
|
|
@@ -2997,7 +3006,7 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
2997
3006
|
onClick: (p) => u.click ? u.click(d, u) : o(d, u)
|
|
2998
3007
|
}, {
|
|
2999
3008
|
default: h(() => [
|
|
3000
|
-
D(
|
|
3009
|
+
D(O(u.title), 1)
|
|
3001
3010
|
]),
|
|
3002
3011
|
_: 2
|
|
3003
3012
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -3037,14 +3046,14 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3037
3046
|
), null, 16),
|
|
3038
3047
|
I("div", Ba, [
|
|
3039
3048
|
A(o.$slots, "default", {}, void 0, !0),
|
|
3040
|
-
I("div", Sa,
|
|
3049
|
+
I("div", Sa, O(o.formatDateTime(o.date, { hoursOnly: !0 })), 1)
|
|
3041
3050
|
])
|
|
3042
3051
|
], 34)), [
|
|
3043
3052
|
[a]
|
|
3044
3053
|
]);
|
|
3045
3054
|
};
|
|
3046
3055
|
}
|
|
3047
|
-
}), Ta = /* @__PURE__ */ U(wa, [["__scopeId", "data-v-606d47bf"]]), ja = ["innerHTML"], Ra = ["innerHTML"],
|
|
3056
|
+
}), Ta = /* @__PURE__ */ U(wa, [["__scopeId", "data-v-606d47bf"]]), ja = ["innerHTML"], Ra = ["innerHTML"], qa = { class: "main__toasts" }, La = ["innerHTML"], Ma = /* @__PURE__ */ F({
|
|
3048
3057
|
__name: "aeria-main",
|
|
3049
3058
|
setup(m) {
|
|
3050
3059
|
const i = te("meta"), o = Y(() => i.themeOverride || i.theme);
|
|
@@ -3091,8 +3100,8 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3091
3100
|
key: 0,
|
|
3092
3101
|
style: { "white-space": "pre-wrap" },
|
|
3093
3102
|
innerHTML: e(i).modal.body
|
|
3094
|
-
}, null, 8, ja)) :
|
|
3095
|
-
e(i).modal.component ? (t(), k(pe(e(i).modal.component), { key: 1 })) :
|
|
3103
|
+
}, null, 8, ja)) : $("", !0),
|
|
3104
|
+
e(i).modal.component ? (t(), k(pe(e(i).modal.component), { key: 1 })) : $("", !0)
|
|
3096
3105
|
]),
|
|
3097
3106
|
_: 1
|
|
3098
3107
|
}, 16, ["modelValue"]),
|
|
@@ -3103,15 +3112,15 @@ const gt = ["onClick"], kt = { key: 0 }, Vt = {
|
|
|
3103
3112
|
}, null, 8, Ra)
|
|
3104
3113
|
]),
|
|
3105
3114
|
_: 1
|
|
3106
|
-
}, 16)) :
|
|
3107
|
-
I("div",
|
|
3115
|
+
}, 16)) : $("", !0),
|
|
3116
|
+
I("div", qa, [
|
|
3108
3117
|
(t(!0), l(X, null, E(e(i).toasts, (u) => (t(), k(Ta, z({ ref_for: !0 }, u, {
|
|
3109
3118
|
key: `toast-${u.itr}`
|
|
3110
3119
|
}), {
|
|
3111
3120
|
default: h(() => [
|
|
3112
3121
|
I("div", {
|
|
3113
3122
|
innerHTML: e(j)(u.text)
|
|
3114
|
-
}, null, 8,
|
|
3123
|
+
}, null, 8, La)
|
|
3115
3124
|
]),
|
|
3116
3125
|
_: 2
|
|
3117
3126
|
}, 1040))), 128))
|
|
@@ -3175,12 +3184,12 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3175
3184
|
e(a).md && !f.dropdown ? (t(), l("div", Ha, [
|
|
3176
3185
|
f.$slots.default ? (t(), l("div", Da, [
|
|
3177
3186
|
A(f.$slots, "default", {}, void 0, !0)
|
|
3178
|
-
])) :
|
|
3179
|
-
(t(!0), l(X, null, E(Object.keys(f.$slots).filter((r) => r !== "default"), (r,
|
|
3187
|
+
])) : $("", !0),
|
|
3188
|
+
(t(!0), l(X, null, E(Object.keys(f.$slots).filter((r) => r !== "default"), (r, b) => (t(), l("div", {
|
|
3180
3189
|
key: r,
|
|
3181
3190
|
class: Q({
|
|
3182
3191
|
tabs__tab: !0,
|
|
3183
|
-
"tabs__tab--current": r === d.value || !d.value &&
|
|
3192
|
+
"tabs__tab--current": r === d.value || !d.value && b === 0
|
|
3184
3193
|
}),
|
|
3185
3194
|
onClick: (g) => u(r)
|
|
3186
3195
|
}, [
|
|
@@ -3210,7 +3219,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3210
3219
|
name: r,
|
|
3211
3220
|
fn: h(() => [
|
|
3212
3221
|
I("div", {
|
|
3213
|
-
onClick: (
|
|
3222
|
+
onClick: (b) => u(r)
|
|
3214
3223
|
}, [
|
|
3215
3224
|
A(f.$slots, r, {}, void 0, !0)
|
|
3216
3225
|
], 8, Wa)
|
|
@@ -3238,7 +3247,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3238
3247
|
collection: {}
|
|
3239
3248
|
},
|
|
3240
3249
|
setup(m) {
|
|
3241
|
-
const i = m, n = Ce().currentRoute, a =
|
|
3250
|
+
const i = m, n = Ce().currentRoute, a = Qe(), d = Y(() => i.collection ? Ae(i.collection, a) : typeof n.value.meta.collection == "string" ? Ae(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? Ae(n.value.params.collection, a) : null), u = async (f, p) => {
|
|
3242
3251
|
const { error: v, result: r } = await p.$functions[f.badgeFunction]({
|
|
3243
3252
|
filters: f.filters
|
|
3244
3253
|
});
|
|
@@ -3254,17 +3263,17 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3254
3263
|
fn: h(() => [
|
|
3255
3264
|
I("div", {
|
|
3256
3265
|
class: "topbar__preset",
|
|
3257
|
-
onClick: (
|
|
3266
|
+
onClick: (b) => e(Ne)(r, d.value)
|
|
3258
3267
|
}, [
|
|
3259
3268
|
r.icon ? (t(), k(G, {
|
|
3260
3269
|
key: 0,
|
|
3261
3270
|
icon: r.icon
|
|
3262
3271
|
}, {
|
|
3263
3272
|
default: h(() => [
|
|
3264
|
-
D(
|
|
3273
|
+
D(O(r.label || e(j)(v, { plural: !0 })), 1)
|
|
3265
3274
|
]),
|
|
3266
3275
|
_: 2
|
|
3267
|
-
}, 1032, ["icon"])) : (t(), l("div", Za,
|
|
3276
|
+
}, 1032, ["icon"])) : (t(), l("div", Za, O(r.label || e(j)(v, { plural: !0 })), 1)),
|
|
3268
3277
|
r.badgeFunction ? (t(), k(ye, { key: 2 }, {
|
|
3269
3278
|
default: h(() => [
|
|
3270
3279
|
M(e(Xa), {
|
|
@@ -3273,11 +3282,11 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3273
3282
|
}, null, 8, ["promise"])
|
|
3274
3283
|
]),
|
|
3275
3284
|
_: 2
|
|
3276
|
-
}, 1024)) :
|
|
3285
|
+
}, 1024)) : $("", !0)
|
|
3277
3286
|
], 8, Ja)
|
|
3278
3287
|
])
|
|
3279
3288
|
}))
|
|
3280
|
-
]), 1024)) :
|
|
3289
|
+
]), 1024)) : $("", !0);
|
|
3281
3290
|
}
|
|
3282
3291
|
}), Na = /* @__PURE__ */ U(Pa, [["__scopeId", "data-v-f0a45677"]]), xa = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3283
3292
|
__proto__: null,
|
|
@@ -3295,7 +3304,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3295
3304
|
i.modelValue.password,
|
|
3296
3305
|
i.modelValue.confirmation
|
|
3297
3306
|
));
|
|
3298
|
-
return (a, d) => (t(), k(
|
|
3307
|
+
return (a, d) => (t(), k(ze, {
|
|
3299
3308
|
form: {
|
|
3300
3309
|
password: {
|
|
3301
3310
|
type: "string",
|
|
@@ -3312,7 +3321,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3312
3321
|
"onUpdate:modelValue": d[0] || (d[0] = (u) => a.$emit("update:modelValue", u))
|
|
3313
3322
|
}, {
|
|
3314
3323
|
after: h(() => [
|
|
3315
|
-
I("div", null,
|
|
3324
|
+
I("div", null, O(n.value || "Senhas conferem"), 1),
|
|
3316
3325
|
A(a.$slots, "default", ne(_e({ passwordError: n.value })))
|
|
3317
3326
|
]),
|
|
3318
3327
|
_: 3
|
|
@@ -3336,7 +3345,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3336
3345
|
{
|
|
3337
3346
|
path: "signin",
|
|
3338
3347
|
name: "/user/signin",
|
|
3339
|
-
component: () => import("./signin-
|
|
3348
|
+
component: () => import("./signin-C6epQRo8.js"),
|
|
3340
3349
|
meta: {
|
|
3341
3350
|
title: "Sign in"
|
|
3342
3351
|
}
|
|
@@ -3344,7 +3353,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3344
3353
|
{
|
|
3345
3354
|
path: "signup",
|
|
3346
3355
|
name: "/user/signup",
|
|
3347
|
-
component: () => import("./signup-
|
|
3356
|
+
component: () => import("./signup-jGgkPebj.js"),
|
|
3348
3357
|
meta: {
|
|
3349
3358
|
title: "Sign up"
|
|
3350
3359
|
}
|
|
@@ -3352,7 +3361,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3352
3361
|
{
|
|
3353
3362
|
path: "redefine-password",
|
|
3354
3363
|
name: "/user/redefine-password",
|
|
3355
|
-
component: () => import("./redefine-password-
|
|
3364
|
+
component: () => import("./redefine-password-D-kCtU72.js"),
|
|
3356
3365
|
meta: {
|
|
3357
3366
|
title: "Redefine password"
|
|
3358
3367
|
}
|
|
@@ -3360,7 +3369,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3360
3369
|
{
|
|
3361
3370
|
path: "activation",
|
|
3362
3371
|
name: "/user/activation",
|
|
3363
|
-
component: () => import("./activation-
|
|
3372
|
+
component: () => import("./activation-Drd0rAfb.js"),
|
|
3364
3373
|
meta: {
|
|
3365
3374
|
title: "Activate user"
|
|
3366
3375
|
}
|
|
@@ -3382,7 +3391,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3382
3391
|
name: "/dashboard/:collection",
|
|
3383
3392
|
props: !0,
|
|
3384
3393
|
components: {
|
|
3385
|
-
default: () => import("./index-
|
|
3394
|
+
default: () => import("./index-CA81DC9P.js"),
|
|
3386
3395
|
topbar: () => Promise.resolve().then(() => xa)
|
|
3387
3396
|
},
|
|
3388
3397
|
meta: {
|
|
@@ -3396,7 +3405,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3396
3405
|
name: "/dashboard/:collection/:id",
|
|
3397
3406
|
props: !0,
|
|
3398
3407
|
components: {
|
|
3399
|
-
default: () => import("./_id_-
|
|
3408
|
+
default: () => import("./_id_-DBVHGBVR.js")
|
|
3400
3409
|
},
|
|
3401
3410
|
meta: {
|
|
3402
3411
|
title: ({ collectionName: o, t: n }) => n(o, {
|
|
@@ -3416,7 +3425,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3416
3425
|
children: [
|
|
3417
3426
|
{
|
|
3418
3427
|
path: "profile",
|
|
3419
|
-
component: () => import("./index-
|
|
3428
|
+
component: () => import("./index-yA_qrREO.js"),
|
|
3420
3429
|
meta: {
|
|
3421
3430
|
title: "User profile",
|
|
3422
3431
|
icon: "user-square"
|
|
@@ -3425,7 +3434,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3425
3434
|
{
|
|
3426
3435
|
path: "changepass",
|
|
3427
3436
|
name: "/dashboard/user/changepass",
|
|
3428
|
-
component: () => import("./index-
|
|
3437
|
+
component: () => import("./index-jd_rhIst.js"),
|
|
3429
3438
|
meta: {
|
|
3430
3439
|
title: "Change password",
|
|
3431
3440
|
icon: "lock"
|
|
@@ -3436,7 +3445,7 @@ const dl = /* @__PURE__ */ U(za, [["render", Ea], ["__scopeId", "data-v-3cfef7fb
|
|
|
3436
3445
|
])
|
|
3437
3446
|
});
|
|
3438
3447
|
export {
|
|
3439
|
-
|
|
3448
|
+
ze as A,
|
|
3440
3449
|
Bo as B,
|
|
3441
3450
|
Xa as C,
|
|
3442
3451
|
Ia as D,
|
|
@@ -3470,5 +3479,5 @@ export {
|
|
|
3470
3479
|
he as w,
|
|
3471
3480
|
Vo as x,
|
|
3472
3481
|
sn as y,
|
|
3473
|
-
|
|
3482
|
+
Ge as z
|
|
3474
3483
|
};
|