@aeria-ui/ui 0.0.88 → 0.0.89
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_-97157209.js → _id_-37c83f35.js} +1 -1
- package/dist/{activation-ccb6dd5d.js → activation-46990c40.js} +1 -1
- package/dist/components/aeria-insert-panel/aeria-insert-panel.vue.d.ts +10 -5
- package/dist/{index-fe463489.js → index-4ba787c5.js} +1 -1
- package/dist/{index-6ddef4a5.js → index-4fc7259a.js} +1 -1
- package/dist/{index-46a49b51.js → index-61a4a8b7.js} +1 -1
- package/dist/{index-e9ceb976.js → index-fb9f4da7.js} +228 -223
- package/dist/{signin-cfb834eb.js → signin-277485f6.js} +1 -1
- package/dist/{signup-6acc7f50.js → signup-c87489a0.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as U, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as Y, Fragment as P, renderList as D, withDirectives as N, toDisplayString as C, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as H, createElementVNode as A, mergeProps as G, createBlock as k, withCtx as v, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as U, ref as J, resolveDirective as oe, openBlock as t, createElementBlock as s, normalizeClass as Y, Fragment as P, renderList as D, withDirectives as N, toDisplayString as C, createCommentVNode as y, createTextVNode as Q, unref as e, renderSlot as O, inject as _e, computed as H, createElementVNode as A, mergeProps as G, createBlock as k, withCtx as v, resolveDynamicComponent as be, useCssVars as It, normalizeProps as de, guardReactiveProps as ge, Teleport as Xe, onMounted as Ye, watch as ue, createVNode as q, withModifiers as ze, vModelDynamic as At, onBeforeMount as $t, normalizeStyle as he, pushScopeId as Je, popScopeId as Ze, provide as ye, createSlots as ce, vModelCheckbox as Bt, onUnmounted as wt, isRef as mt, resolveComponent as St, Suspense as Tt, useSlots as jt, h as Rt } from "vue";
|
|
2
2
|
import { t as R, useI18n as Lt } from "@aeria-ui/i18n";
|
|
3
3
|
import { arraysIntersect as gt, deepClone as Ce, getReferenceProperty as me, convertConditionToQuery as zt, freshItem as Mt, isRequired as qt, evaluateCondition as Ke, deepMerge as Me } from "@aeriajs/common";
|
|
4
|
-
import { useStore as ie, getStoreId as qe, useParentStore as Ie, STORE_ID as Fe, getGlobalStateManager as
|
|
5
|
-
import { useScrollObserver as
|
|
4
|
+
import { useStore as ie, getStoreId as qe, useParentStore as Ie, STORE_ID as Fe, getGlobalStateManager as Pe } from "@aeria-ui/state-management";
|
|
5
|
+
import { useScrollObserver as Ne, useBreakpoints as Ue, useMask as Ft, PAGINATION_PER_PAGE_DEFAULTS as Ut, API_URL as kt, request as Et, useDebounce as Vt, isDocumentComplete as Ht, getObjectKey as Dt, convertToSearchQuery as Qt, useAction as Gt, convertFromSearchQuery as Wt, useParentCollectionStore as Ge, usePasswordPolicy as Kt } from "@aeria-ui/core";
|
|
6
6
|
import { useRouter as Ae } from "vue-router";
|
|
7
7
|
const Xt = ["onClick"], Yt = { key: 0 }, Jt = {
|
|
8
8
|
key: 0,
|
|
@@ -252,9 +252,9 @@ const dn = /* @__PURE__ */ K(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
252
252
|
},
|
|
253
253
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
254
254
|
setup(c, { emit: r }) {
|
|
255
|
-
const l = c, n = r, o = H(() => l.floating || l.float), u = J(l.collapsed), i = J(null), { reachedEnd: _ } =
|
|
255
|
+
const l = c, n = r, o = H(() => l.floating || l.float), u = J(l.collapsed), i = J(null), { reachedEnd: _ } = Ne(i), p = () => {
|
|
256
256
|
n("update:modelValue", !1), n("close");
|
|
257
|
-
},
|
|
257
|
+
}, b = () => {
|
|
258
258
|
n("overlayClick");
|
|
259
259
|
}, d = (a) => {
|
|
260
260
|
n("update:collapsed", a), u.value = a;
|
|
@@ -268,7 +268,7 @@ const dn = /* @__PURE__ */ K(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
268
268
|
${a.fixedRight && "panel--fixed"}
|
|
269
269
|
`)
|
|
270
270
|
}, [
|
|
271
|
-
(t(), k(
|
|
271
|
+
(t(), k(be(
|
|
272
272
|
o.value ? "dialog" : "div"
|
|
273
273
|
), {
|
|
274
274
|
"data-component": "panel",
|
|
@@ -352,7 +352,7 @@ const dn = /* @__PURE__ */ K(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
352
352
|
[S, {
|
|
353
353
|
condition: a.overlay || a.fixedRight || o.value,
|
|
354
354
|
invisible: a.invisibleOverlay,
|
|
355
|
-
click:
|
|
355
|
+
click: b,
|
|
356
356
|
layer: a.overlayLayer || (o.value ? 60 : a.fixedRight ? 50 : 0)
|
|
357
357
|
}]
|
|
358
358
|
]) : y("", !0);
|
|
@@ -362,7 +362,7 @@ const dn = /* @__PURE__ */ K(cn, [["__scopeId", "data-v-c1a322df"]]), pn = { cla
|
|
|
362
362
|
const Be = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { class: "content__body" }, yn = {
|
|
363
363
|
key: 0,
|
|
364
364
|
class: "content__section"
|
|
365
|
-
},
|
|
365
|
+
}, bn = { class: "content__item" }, hn = /* @__PURE__ */ U({
|
|
366
366
|
__name: "aeria-context-menu",
|
|
367
367
|
props: {
|
|
368
368
|
actions: {},
|
|
@@ -375,14 +375,14 @@ const Be = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
375
375
|
"036683e2": _.value.x,
|
|
376
376
|
"036683e0": _.value.y
|
|
377
377
|
}));
|
|
378
|
-
const l = r, n = J(null), o = J(!1), u = (p) => p == null ? void 0 : p.filter((
|
|
379
|
-
if (
|
|
378
|
+
const l = r, n = J(null), o = J(!1), u = (p) => p == null ? void 0 : p.filter((b) => {
|
|
379
|
+
if (b.roles) {
|
|
380
380
|
const d = ie("user");
|
|
381
|
-
return gt(
|
|
381
|
+
return gt(b.roles, d.currentUser.roles);
|
|
382
382
|
}
|
|
383
383
|
return !0;
|
|
384
|
-
}), i = (p,
|
|
385
|
-
const d =
|
|
384
|
+
}), i = (p, b) => {
|
|
385
|
+
const d = b && Ce(b);
|
|
386
386
|
p.click && p.click(d), l("actionClick", {
|
|
387
387
|
action: p,
|
|
388
388
|
subject: d
|
|
@@ -393,14 +393,14 @@ const Be = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
393
393
|
x: 0,
|
|
394
394
|
y: 0
|
|
395
395
|
};
|
|
396
|
-
const p = n.value.getBoundingClientRect().top,
|
|
396
|
+
const p = n.value.getBoundingClientRect().top, b = n.value.getBoundingClientRect().left, d = n.value.offsetHeight;
|
|
397
397
|
return {
|
|
398
398
|
_: o.value,
|
|
399
|
-
x: Math.floor(
|
|
399
|
+
x: Math.floor(b) + "px",
|
|
400
400
|
y: Math.floor(p + d) + "px"
|
|
401
401
|
};
|
|
402
402
|
});
|
|
403
|
-
return (p,
|
|
403
|
+
return (p, b) => {
|
|
404
404
|
const d = oe("overlay");
|
|
405
405
|
return t(), s(P, null, [
|
|
406
406
|
Object.keys(p.$slots).some((a) => a !== "default") || p.actions !== void 0 && p.actions.length > 0 ? (t(), s("div", {
|
|
@@ -411,7 +411,7 @@ const Be = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
411
411
|
}, [
|
|
412
412
|
A("a", {
|
|
413
413
|
class: "contextmenu__trigger",
|
|
414
|
-
onClick:
|
|
414
|
+
onClick: b[0] || (b[0] = (a) => o.value = !0)
|
|
415
415
|
}, [
|
|
416
416
|
O(p.$slots, "default", de(ge({
|
|
417
417
|
visible: o.value
|
|
@@ -424,7 +424,7 @@ const Be = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
424
424
|
}, [
|
|
425
425
|
N((t(), k(Be, {
|
|
426
426
|
modelValue: o.value,
|
|
427
|
-
"onUpdate:modelValue":
|
|
427
|
+
"onUpdate:modelValue": b[4] || (b[4] = (a) => o.value = a),
|
|
428
428
|
fill: "",
|
|
429
429
|
bordered: "",
|
|
430
430
|
class: "content",
|
|
@@ -438,7 +438,7 @@ const Be = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
438
438
|
Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)).length > 0 ? (t(), s("div", {
|
|
439
439
|
key: 1,
|
|
440
440
|
class: "content__section",
|
|
441
|
-
onClick:
|
|
441
|
+
onClick: b[1] || (b[1] = (a) => o.value = !1)
|
|
442
442
|
}, [
|
|
443
443
|
(t(!0), s(P, null, D(Object.keys(p.$slots).filter((a) => !["default", "extra", "header"].includes(a)), (a, w) => (t(), k(ve, {
|
|
444
444
|
key: `slot-${w}`,
|
|
@@ -453,7 +453,7 @@ const Be = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
453
453
|
p.actions !== void 0 && p.actions.length > 0 ? (t(), s("div", {
|
|
454
454
|
key: 2,
|
|
455
455
|
class: "content__section",
|
|
456
|
-
onClick:
|
|
456
|
+
onClick: b[2] || (b[2] = (a) => o.value = !1)
|
|
457
457
|
}, [
|
|
458
458
|
(t(!0), s(P, null, D(u(p.actions), (a, w) => (t(), k(ve, {
|
|
459
459
|
key: `action-${w}`,
|
|
@@ -477,9 +477,9 @@ const Be = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
477
477
|
p.$slots.extra ? (t(), s("div", {
|
|
478
478
|
key: 3,
|
|
479
479
|
class: "content__section",
|
|
480
|
-
onClick:
|
|
480
|
+
onClick: b[3] || (b[3] = (a) => o.value = !1)
|
|
481
481
|
}, [
|
|
482
|
-
A("div",
|
|
482
|
+
A("div", bn, [
|
|
483
483
|
p.$slots.extra ? O(p.$slots, "extra", { key: 0 }, void 0, !0) : y("", !0)
|
|
484
484
|
])
|
|
485
485
|
])) : y("", !0)
|
|
@@ -504,7 +504,7 @@ const Be = /* @__PURE__ */ K(fn, [["__scopeId", "data-v-73b47cf0"]]), vn = { cla
|
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
|
-
const Oe = /* @__PURE__ */ K(
|
|
507
|
+
const Oe = /* @__PURE__ */ K(hn, [["__scopeId", "data-v-a03802b2"]]), $n = { class: "info__content" }, gn = /* @__PURE__ */ U({
|
|
508
508
|
__name: "aeria-info",
|
|
509
509
|
props: {
|
|
510
510
|
where: { default: "top" }
|
|
@@ -558,7 +558,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
558
558
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
559
559
|
setup(c, { emit: r }) {
|
|
560
560
|
var ee;
|
|
561
|
-
const l = c, n = r, o = l.property || {}, u = "icon" in o || "inputType" in o && o.inputType === "search", i = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !i && (l.readOnly || o.readOnly),
|
|
561
|
+
const l = c, n = r, o = l.property || {}, u = "icon" in o || "inputType" in o && o.inputType === "search", i = _e("searchOnly", !1), _ = _e("innerInputLabel", !1), p = !i && (l.readOnly || o.readOnly), b = (h) => (n("clipboardCopy", h), navigator.clipboard.writeText(h)), d = _e("inputVariant", l.variant) || "normal", a = Object.assign(Object.assign({}, l), {
|
|
562
562
|
name: l.propertyName,
|
|
563
563
|
readonly: p,
|
|
564
564
|
type: (() => {
|
|
@@ -581,14 +581,14 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
581
581
|
})(),
|
|
582
582
|
placeholder: _ ? o.description || l.propertyName : o.placeholder
|
|
583
583
|
});
|
|
584
|
-
"type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (a.min = o.minimum), o.exclusiveMinimum && (a.min = o.exclusiveMinimum + 1), o.maximum && (a.max = o.maximum), o.exclusiveMaximum && (a.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (a.type = !i && o.format === "date-time" ? "datetime-local" : "date"), a.minlength = o.minLength, a.maxlength = o.maxLength)), a.type === "text" && i && (a.type = "search"),
|
|
584
|
+
"type" in o && ((o.type === "number" || o.type === "integer") && (o.minimum && (a.min = o.minimum), o.exclusiveMinimum && (a.min = o.exclusiveMinimum + 1), o.maximum && (a.max = o.maximum), o.exclusiveMaximum && (a.max = o.exclusiveMaximum - 1)), o.type === "string" && ((o.format === "date" || o.format === "date-time") && (a.type = !i && o.format === "date-time" ? "datetime-local" : "date"), a.minlength = o.minLength, a.maxlength = o.maxLength)), a.type === "text" && i && (a.type = "search"), Ye(() => {
|
|
585
585
|
l.modelValue !== null && B(l.modelValue);
|
|
586
586
|
});
|
|
587
|
-
const w = (
|
|
587
|
+
const w = (h) => {
|
|
588
588
|
try {
|
|
589
|
-
if (!
|
|
589
|
+
if (!h)
|
|
590
590
|
return "";
|
|
591
|
-
const W =
|
|
591
|
+
const W = h instanceof Date ? h : new Date(h);
|
|
592
592
|
switch (a.type) {
|
|
593
593
|
case "date":
|
|
594
594
|
return W.toISOString().slice(0, 10);
|
|
@@ -601,62 +601,62 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
601
601
|
return "";
|
|
602
602
|
}
|
|
603
603
|
}, f = J(""), $ = ((ee = l.property) == null ? void 0 : ee.type) === "string" && l.property.mask ? Ft(l.property.mask) : null;
|
|
604
|
-
ue(() => l.modelValue, (
|
|
604
|
+
ue(() => l.modelValue, (h) => {
|
|
605
605
|
f.value = (() => {
|
|
606
606
|
if ($)
|
|
607
|
-
return
|
|
607
|
+
return h ? $.enmask(String(h), void 0, {
|
|
608
608
|
defaultValue: !0
|
|
609
609
|
}) : "";
|
|
610
610
|
switch (a.type) {
|
|
611
611
|
case "date":
|
|
612
612
|
case "datetime-local":
|
|
613
|
-
return w(
|
|
613
|
+
return w(h);
|
|
614
614
|
}
|
|
615
|
-
switch (
|
|
615
|
+
switch (h) {
|
|
616
616
|
case null:
|
|
617
617
|
case void 0:
|
|
618
618
|
return "";
|
|
619
619
|
default:
|
|
620
|
-
return
|
|
620
|
+
return h;
|
|
621
621
|
}
|
|
622
622
|
})();
|
|
623
623
|
}, {
|
|
624
624
|
immediate: !0
|
|
625
625
|
});
|
|
626
|
-
const S = (
|
|
626
|
+
const S = (h) => {
|
|
627
627
|
var W;
|
|
628
628
|
return typeof f.value == "string" && ((W = l.property) == null ? void 0 : W.type) === "string" && $ !== null ? (f.value = $.enmask(f.value, void 0, {
|
|
629
629
|
defaultValue: !0
|
|
630
|
-
}), l.property.maskedValue === !0 ? f.value : $.unmask(f.value)) :
|
|
631
|
-
}, B = (
|
|
630
|
+
}), l.property.maskedValue === !0 ? f.value : $.unmask(f.value)) : h;
|
|
631
|
+
}, B = (h) => {
|
|
632
632
|
const W = (() => {
|
|
633
|
-
if (!
|
|
634
|
-
return
|
|
633
|
+
if (!h || typeof h != "string")
|
|
634
|
+
return h;
|
|
635
635
|
if (a.type === "number" || a.type === "integer")
|
|
636
|
-
return Number(
|
|
636
|
+
return Number(h);
|
|
637
637
|
if (!("type" in o && o.type === "string"))
|
|
638
|
-
return S(
|
|
638
|
+
return S(h);
|
|
639
639
|
switch (o.format) {
|
|
640
640
|
case "date":
|
|
641
641
|
case "date-time":
|
|
642
|
-
return new Date(
|
|
642
|
+
return new Date(h);
|
|
643
643
|
default:
|
|
644
|
-
return S(
|
|
644
|
+
return S(h);
|
|
645
645
|
}
|
|
646
646
|
})();
|
|
647
647
|
n("input", W), n("update:modelValue", W);
|
|
648
|
-
}, X = (
|
|
649
|
-
const W =
|
|
648
|
+
}, X = (h) => {
|
|
649
|
+
const W = h.target.value;
|
|
650
650
|
f.value = W, B(W);
|
|
651
651
|
};
|
|
652
|
-
return (
|
|
652
|
+
return (h, W) => {
|
|
653
653
|
const ne = oe("focus"), T = oe("clickable");
|
|
654
654
|
return t(), s("label", Vn, [
|
|
655
655
|
e(_) ? y("", !0) : (t(), s("div", Cn, [
|
|
656
|
-
|
|
656
|
+
h.$slots.default ? O(h.$slots, "default", { key: 0 }, void 0, !0) : O(h.$slots, "description", { key: 1 }, void 0, !0)
|
|
657
657
|
])),
|
|
658
|
-
|
|
659
|
-
O(
|
|
658
|
+
h.$slots.hint ? (t(), s("div", On, [
|
|
659
|
+
O(h.$slots, "hint", {}, void 0, !0)
|
|
660
660
|
])) : y("", !0),
|
|
661
661
|
"element" in e(o) && e(o).element === "textarea" ? (t(), s("div", {
|
|
662
662
|
key: 2,
|
|
@@ -669,7 +669,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
669
669
|
N(A("textarea", {
|
|
670
670
|
placeholder: e(a).placeholder,
|
|
671
671
|
readonly: e(a).readonly,
|
|
672
|
-
value:
|
|
672
|
+
value: h.modelValue,
|
|
673
673
|
class: Y(`
|
|
674
674
|
input__textarea
|
|
675
675
|
input__input--${e(d)}
|
|
@@ -716,7 +716,7 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
716
716
|
N(q(Z, {
|
|
717
717
|
reactive: "",
|
|
718
718
|
icon: "clipboard",
|
|
719
|
-
onClick: W[1] || (W[1] = ze((g) =>
|
|
719
|
+
onClick: W[1] || (W[1] = ze((g) => b(String(h.modelValue || "")), ["prevent"]))
|
|
720
720
|
}, null, 512), [
|
|
721
721
|
[T]
|
|
722
722
|
])
|
|
@@ -769,7 +769,7 @@ const ke = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-7817bd05"]]), Sn = {
|
|
|
769
769
|
})() : H({
|
|
770
770
|
get: () => l.modelValue,
|
|
771
771
|
set: i
|
|
772
|
-
}), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d,
|
|
772
|
+
}), p = (d) => Array.isArray(l.modelValue) ? l.modelValue.includes(d) : l.modelValue === d, b = H(() => l.multiple ? typeof l.multiple == "number" ? l.multiple : 5 : 1);
|
|
773
773
|
return l.multiple && ue(() => l.modelValue, (d) => {
|
|
774
774
|
var w;
|
|
775
775
|
if (!o.value)
|
|
@@ -781,14 +781,14 @@ const ke = /* @__PURE__ */ K(wn, [["__scopeId", "data-v-7817bd05"]]), Sn = {
|
|
|
781
781
|
"read-only": "",
|
|
782
782
|
"model-value": e(_)
|
|
783
783
|
}, null, 8, ["model-value"])) : (t(), s("select", G({ key: 0 }, {
|
|
784
|
-
size:
|
|
784
|
+
size: b.value,
|
|
785
785
|
value: e(_)
|
|
786
786
|
}, {
|
|
787
787
|
ref_key: "select",
|
|
788
788
|
ref: o,
|
|
789
789
|
class: {
|
|
790
790
|
select: !0,
|
|
791
|
-
"select--multiple": !!
|
|
791
|
+
"select--multiple": !!b.value,
|
|
792
792
|
"select--outline": !d.noOutline
|
|
793
793
|
},
|
|
794
794
|
onChange: a[0] || (a[0] = (w) => i(w.target.value))
|
|
@@ -823,26 +823,26 @@ const De = /* @__PURE__ */ K(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
|
|
|
823
823
|
setup(c, { emit: r }) {
|
|
824
824
|
const l = c, n = r, o = H({
|
|
825
825
|
get: () => Math.floor(l.pagination.offset / l.pagination.limit),
|
|
826
|
-
set: (
|
|
827
|
-
l.pagination.offset =
|
|
826
|
+
set: (b) => {
|
|
827
|
+
l.pagination.offset = b * l.pagination.limit;
|
|
828
828
|
}
|
|
829
829
|
}), u = H({
|
|
830
830
|
get: () => l.pagination.limit,
|
|
831
|
-
set: (
|
|
832
|
-
l.pagination.limit = Number(
|
|
831
|
+
set: (b) => {
|
|
832
|
+
l.pagination.limit = Number(b);
|
|
833
833
|
}
|
|
834
|
-
}), i = J(o.value ? o.value + 1 : 1), _ = H(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (
|
|
835
|
-
o.value =
|
|
834
|
+
}), i = J(o.value ? o.value + 1 : 1), _ = H(() => Math.ceil(l.pagination.recordsTotal / l.pagination.limit)), p = (b) => {
|
|
835
|
+
o.value = b === "previous" ? o.value - 1 : o.value + 1;
|
|
836
836
|
};
|
|
837
837
|
return ue([
|
|
838
838
|
o,
|
|
839
839
|
u
|
|
840
|
-
], ([
|
|
841
|
-
i.value =
|
|
840
|
+
], ([b]) => {
|
|
841
|
+
i.value = b + 1, n("paginate", {
|
|
842
842
|
offset: o.value * u.value,
|
|
843
843
|
limit: u.value
|
|
844
844
|
});
|
|
845
|
-
}), (
|
|
845
|
+
}), (b, d) => (t(), s("div", Rn, [
|
|
846
846
|
A("div", Ln, [
|
|
847
847
|
q(ve, {
|
|
848
848
|
disabled: o.value === 0,
|
|
@@ -898,7 +898,7 @@ const De = /* @__PURE__ */ K(jn, [["__scopeId", "data-v-1c0432ab"]]), Rn = { cla
|
|
|
898
898
|
_: 1
|
|
899
899
|
}, 8, ["modelValue"])
|
|
900
900
|
]),
|
|
901
|
-
|
|
901
|
+
b.noSummary ? y("", !0) : (t(), s("div", Mn, [
|
|
902
902
|
Q(C(e(R)("Page")) + " ", 1),
|
|
903
903
|
(t(), k(ke, {
|
|
904
904
|
key: o.value,
|
|
@@ -974,7 +974,7 @@ const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
|
|
|
974
974
|
i("update:modelValue", l.value);
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
}),
|
|
977
|
+
}), b = (d) => {
|
|
978
978
|
o && d.preventDefault();
|
|
979
979
|
};
|
|
980
980
|
return (d, a) => {
|
|
@@ -994,7 +994,7 @@ const Fn = /* @__PURE__ */ K(qn, [["__scopeId", "data-v-ae7235de"]]), Un = { cla
|
|
|
994
994
|
checked: p.value
|
|
995
995
|
}, {
|
|
996
996
|
class: "checkbox__input",
|
|
997
|
-
onClick:
|
|
997
|
+
onClick: b
|
|
998
998
|
}), null, 16), [
|
|
999
999
|
[At, p.value]
|
|
1000
1000
|
]),
|
|
@@ -1044,17 +1044,17 @@ const Wn = /* @__PURE__ */ K(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
|
|
|
1044
1044
|
);
|
|
1045
1045
|
}), (_, p) => (t(), s("div", {
|
|
1046
1046
|
class: "options",
|
|
1047
|
-
style:
|
|
1047
|
+
style: he(`
|
|
1048
1048
|
--columns: ${_.columns};
|
|
1049
1049
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1050
1050
|
`)
|
|
1051
1051
|
}, [
|
|
1052
|
-
(t(!0), s(P, null, D(e(u), (
|
|
1053
|
-
key: `option-${
|
|
1052
|
+
(t(!0), s(P, null, D(e(u), (b) => (t(), s("div", {
|
|
1053
|
+
key: `option-${b}`,
|
|
1054
1054
|
class: "options__checkbox"
|
|
1055
1055
|
}, [
|
|
1056
1056
|
q(Wn, G({ ref_for: !0 }, {
|
|
1057
|
-
value:
|
|
1057
|
+
value: b,
|
|
1058
1058
|
readOnly: e(o),
|
|
1059
1059
|
property: _.property
|
|
1060
1060
|
}, {
|
|
@@ -1065,7 +1065,7 @@ const Wn = /* @__PURE__ */ K(Gn, [["__scopeId", "data-v-b9da4354"]]), Kn = {
|
|
|
1065
1065
|
], 4));
|
|
1066
1066
|
}
|
|
1067
1067
|
});
|
|
1068
|
-
const Yn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) => (
|
|
1068
|
+
const Yn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) => (Je("data-v-0e3564b6"), c = c(), Ze(), c), Zn = { class: "switch-wrapper" }, Pn = /* @__PURE__ */ Jn(() => /* @__PURE__ */ A("div", { class: "switch__slider" }, null, -1)), Nn = { key: 1 }, xn = {
|
|
1069
1069
|
inheritAttrs: !1
|
|
1070
1070
|
}, eo = /* @__PURE__ */ U({
|
|
1071
1071
|
...xn,
|
|
@@ -1085,7 +1085,7 @@ const Yn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
|
|
|
1085
1085
|
};
|
|
1086
1086
|
return (_, p) => {
|
|
1087
1087
|
var d;
|
|
1088
|
-
const
|
|
1088
|
+
const b = oe("clickable");
|
|
1089
1089
|
return t(), s("div", Zn, [
|
|
1090
1090
|
N((t(), s("a", {
|
|
1091
1091
|
class: Y(`
|
|
@@ -1103,7 +1103,7 @@ const Yn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
|
|
|
1103
1103
|
`)
|
|
1104
1104
|
}, null, 2)
|
|
1105
1105
|
], 2)), [
|
|
1106
|
-
[
|
|
1106
|
+
[b, {
|
|
1107
1107
|
blocked: e(u)
|
|
1108
1108
|
}]
|
|
1109
1109
|
]),
|
|
@@ -1112,7 +1112,7 @@ const Yn = /* @__PURE__ */ K(Xn, [["__scopeId", "data-v-4aed0c5c"]]), Jn = (c) =
|
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
1114
|
});
|
|
1115
|
-
const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) => (
|
|
1115
|
+
const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) => (Je("data-v-153a2e0f"), c = c(), Ze(), c), no = { class: "picture" }, oo = {
|
|
1116
1116
|
key: 0,
|
|
1117
1117
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1118
1118
|
}, ao = ["src", "alt"], lo = {
|
|
@@ -1186,7 +1186,7 @@ const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1186
1186
|
${o.bordered && "picture__image--bordered"}
|
|
1187
1187
|
${o.expandable && "picture__image--expandable"}
|
|
1188
1188
|
`),
|
|
1189
|
-
style:
|
|
1189
|
+
style: he(`
|
|
1190
1190
|
object-fit: ${o.objectFit || "cover"};
|
|
1191
1191
|
width: ${o.width || "100%"};
|
|
1192
1192
|
height: ${o.height || "100%"};
|
|
@@ -1202,7 +1202,7 @@ const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1202
1202
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1203
1203
|
viewBox: "0 0 200 200",
|
|
1204
1204
|
preserveAspectRatio: "none",
|
|
1205
|
-
style:
|
|
1205
|
+
style: he(`
|
|
1206
1206
|
object-fit: ${o.objectFit || "cover"};
|
|
1207
1207
|
width: ${o.width || "100%"};
|
|
1208
1208
|
height: ${o.height || "100%"};
|
|
@@ -1218,10 +1218,10 @@ const to = /* @__PURE__ */ K(eo, [["__scopeId", "data-v-0e3564b6"]]), Ct = (c) =
|
|
|
1218
1218
|
const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { class: "file" }, mo = { key: 0 }, fo = ["href"], vo = {
|
|
1219
1219
|
key: 1,
|
|
1220
1220
|
class: "file__actions"
|
|
1221
|
-
}, yo = ["accept"],
|
|
1221
|
+
}, yo = ["accept"], bo = {
|
|
1222
1222
|
key: 0,
|
|
1223
1223
|
class: "file__buttons"
|
|
1224
|
-
},
|
|
1224
|
+
}, ho = {
|
|
1225
1225
|
key: 1,
|
|
1226
1226
|
class: "file__buttons"
|
|
1227
1227
|
}, $o = /* @__PURE__ */ U({
|
|
@@ -1245,14 +1245,14 @@ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1245
1245
|
}), p = H(() => {
|
|
1246
1246
|
var $, S, B;
|
|
1247
1247
|
return /^image\//.test(($ = l.modelValue) == null ? void 0 : $.type) && !((S = i.value) != null && S.type) || /^image\//.test((B = i.value) == null ? void 0 : B.type);
|
|
1248
|
-
}),
|
|
1248
|
+
}), b = ($) => new Promise((S) => {
|
|
1249
1249
|
const B = new FileReader();
|
|
1250
1250
|
B.onload = () => S(B.result), B.readAsArrayBuffer($);
|
|
1251
1251
|
}), d = () => {
|
|
1252
1252
|
l.modelValue.tempId && n("update:modelValue", null), i.value = null;
|
|
1253
1253
|
}, a = async ($) => {
|
|
1254
1254
|
i.value = $.target.files[0];
|
|
1255
|
-
const S = i.value, B = await
|
|
1255
|
+
const S = i.value, B = await b(S);
|
|
1256
1256
|
if (u) {
|
|
1257
1257
|
const { data: { error: X, result: ee } } = await Et(`${kt}/${u.$id}/upload?name=${S.name}`, B, {
|
|
1258
1258
|
params: {
|
|
@@ -1276,7 +1276,7 @@ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1276
1276
|
n("update:modelValue", null);
|
|
1277
1277
|
};
|
|
1278
1278
|
return ($, S) => {
|
|
1279
|
-
var B, X, ee,
|
|
1279
|
+
var B, X, ee, h, W, ne;
|
|
1280
1280
|
return t(), s("div", _o, [
|
|
1281
1281
|
i.value || (B = $.modelValue) != null && B._id ? (t(), s("div", mo, [
|
|
1282
1282
|
p.value ? (t(), k(He, {
|
|
@@ -1299,10 +1299,10 @@ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1299
1299
|
A("input", {
|
|
1300
1300
|
ref: "file",
|
|
1301
1301
|
type: "file",
|
|
1302
|
-
accept: (W = (
|
|
1302
|
+
accept: (W = (h = $.property) == null ? void 0 : h.accept) == null ? void 0 : W.join(","),
|
|
1303
1303
|
onChange: a
|
|
1304
1304
|
}, null, 40, yo),
|
|
1305
|
-
i.value ? (t(), s("div",
|
|
1305
|
+
i.value ? (t(), s("div", bo, [
|
|
1306
1306
|
q(re, {
|
|
1307
1307
|
small: "",
|
|
1308
1308
|
onClick: ze(d, ["prevent"])
|
|
@@ -1312,7 +1312,7 @@ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1312
1312
|
]),
|
|
1313
1313
|
_: 1
|
|
1314
1314
|
})
|
|
1315
|
-
])) : (ne = $.modelValue) != null && ne._id ? (t(), s("div",
|
|
1315
|
+
])) : (ne = $.modelValue) != null && ne._id ? (t(), s("div", ho, [
|
|
1316
1316
|
q(re, {
|
|
1317
1317
|
small: "",
|
|
1318
1318
|
onClick: ze(w, ["prevent"])
|
|
@@ -1338,7 +1338,7 @@ const go = /* @__PURE__ */ K($o, [["__scopeId", "data-v-e6cdde77"]]), ko = { cla
|
|
|
1338
1338
|
},
|
|
1339
1339
|
emits: ["endReached"],
|
|
1340
1340
|
setup(c, { emit: r }) {
|
|
1341
|
-
const l = c, n = r, o = J(null), u = l.observeScroll ?
|
|
1341
|
+
const l = c, n = r, o = J(null), u = l.observeScroll ? Ne(o, {
|
|
1342
1342
|
antecipate: 100
|
|
1343
1343
|
}).reachedEnd : null;
|
|
1344
1344
|
return u !== null && ue(u, (i) => {
|
|
@@ -1358,7 +1358,7 @@ const go = /* @__PURE__ */ K($o, [["__scopeId", "data-v-e6cdde77"]]), ko = { cla
|
|
|
1358
1358
|
]));
|
|
1359
1359
|
}
|
|
1360
1360
|
});
|
|
1361
|
-
const
|
|
1361
|
+
const ft = /* @__PURE__ */ K(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { class: "item__values" }, Io = /* @__PURE__ */ U({
|
|
1362
1362
|
__name: "aeria-search-item",
|
|
1363
1363
|
props: {
|
|
1364
1364
|
item: {},
|
|
@@ -1369,7 +1369,7 @@ const mt = /* @__PURE__ */ K(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
|
|
|
1369
1369
|
},
|
|
1370
1370
|
emits: ["update:modelValue", "change"],
|
|
1371
1371
|
setup(c, { emit: r }) {
|
|
1372
|
-
const l = Ae(), n = c, o = r, u = n.property, i = me(u), _ = Ie(), p = H(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: w }) => n.item._id === w) : n.modelValue && n.modelValue._id === n.item._id),
|
|
1372
|
+
const l = Ae(), n = c, o = r, u = n.property, i = me(u), _ = Ie(), p = H(() => Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: w }) => n.item._id === w) : n.modelValue && n.modelValue._id === n.item._id), b = () => {
|
|
1373
1373
|
if (p.value)
|
|
1374
1374
|
return;
|
|
1375
1375
|
const w = ($) => $.filter((S) => !!(S != null && S._id)), f = "items" in u ? w(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : n.modelValue;
|
|
@@ -1395,7 +1395,7 @@ const mt = /* @__PURE__ */ K(Co, [["__scopeId", "data-v-c86e2d2a"]]), Oo = { cla
|
|
|
1395
1395
|
});
|
|
1396
1396
|
return;
|
|
1397
1397
|
}
|
|
1398
|
-
return p.value ? d() :
|
|
1398
|
+
return p.value ? d() : b();
|
|
1399
1399
|
};
|
|
1400
1400
|
return (w, f) => {
|
|
1401
1401
|
const $ = oe("clickable");
|
|
@@ -1441,19 +1441,19 @@ const We = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1441
1441
|
},
|
|
1442
1442
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1443
1443
|
setup(c, { emit: r }) {
|
|
1444
|
-
const l = c, n = me(l.property), o = l.panel !== void 0 ? H(() => l.panel) : J(!1), u = r, i = ie(me(l.property).$ref), _ = qe(), p = _ ? Ie() : null,
|
|
1444
|
+
const l = c, n = me(l.property), o = l.panel !== void 0 ? H(() => l.panel) : J(!1), u = r, i = ie(me(l.property).$ref), _ = qe(), p = _ ? Ie() : null, b = n.indexes;
|
|
1445
1445
|
ye(Fe, me(l.property).$ref), ye("innerInputLabel", !0), ye("omitInputLabels", !0);
|
|
1446
1446
|
const d = J(l.modelValue), a = J({
|
|
1447
1447
|
data: [],
|
|
1448
1448
|
pagination: {}
|
|
1449
|
-
}), w = H(() => a.value.data), f = H(() => a.value.pagination), $ = J(0), S = J(
|
|
1449
|
+
}), w = H(() => a.value.data), f = H(() => a.value.pagination), $ = J(0), S = J(b[0]), B = J(!1), X = J({}), ee = () => {
|
|
1450
1450
|
const L = {};
|
|
1451
1451
|
if (_) {
|
|
1452
1452
|
const F = e(_);
|
|
1453
1453
|
L[F] = p;
|
|
1454
1454
|
}
|
|
1455
1455
|
return n.constraints ? zt(n.constraints, L) : {};
|
|
1456
|
-
},
|
|
1456
|
+
}, h = () => {
|
|
1457
1457
|
w.value.length < f.value.recordsTotal && ($.value += 1, ne());
|
|
1458
1458
|
}, W = async () => {
|
|
1459
1459
|
if (Object.values(X.value).every((F) => !(String(F).length > 0)))
|
|
@@ -1462,7 +1462,7 @@ const We = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1462
1462
|
offset: $.value * Ee,
|
|
1463
1463
|
filters: ee()
|
|
1464
1464
|
});
|
|
1465
|
-
const L =
|
|
1465
|
+
const L = b.filter((F) => {
|
|
1466
1466
|
var m;
|
|
1467
1467
|
return ((m = X.value[F]) == null ? void 0 : m.length) > 0;
|
|
1468
1468
|
}).map((F) => ({
|
|
@@ -1506,7 +1506,7 @@ const We = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1506
1506
|
}, le = H(() => !Object.values(X.value).some((L) => !!L));
|
|
1507
1507
|
ue(le, (L, F) => {
|
|
1508
1508
|
L && !F && ne();
|
|
1509
|
-
}),
|
|
1509
|
+
}), Ye(() => {
|
|
1510
1510
|
l.selectOnly && ne();
|
|
1511
1511
|
});
|
|
1512
1512
|
const se = (L) => {
|
|
@@ -1547,7 +1547,7 @@ const We = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1547
1547
|
return [
|
|
1548
1548
|
A("div", Ao, [
|
|
1549
1549
|
A("div", Bo, [
|
|
1550
|
-
e(
|
|
1550
|
+
e(b).length > 1 ? (t(), k(De, {
|
|
1551
1551
|
key: 0,
|
|
1552
1552
|
modelValue: S.value,
|
|
1553
1553
|
"onUpdate:modelValue": F[0] || (F[0] = (V) => S.value = V),
|
|
@@ -1555,7 +1555,7 @@ const We = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1555
1555
|
onChange: F[1] || (F[1] = (V) => X.value = {})
|
|
1556
1556
|
}, {
|
|
1557
1557
|
default: v(() => [
|
|
1558
|
-
(t(!0), s(P, null, D(e(
|
|
1558
|
+
(t(!0), s(P, null, D(e(b), (V) => (t(), s("option", {
|
|
1559
1559
|
key: `searchfield-${V}`,
|
|
1560
1560
|
value: V
|
|
1561
1561
|
}, C(e(R)(V)), 9, wo))), 128))
|
|
@@ -1575,15 +1575,15 @@ const We = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1575
1575
|
}, null, 8, ["modelValue", "property"]))
|
|
1576
1576
|
])
|
|
1577
1577
|
]),
|
|
1578
|
-
w.value.length ? (t(), k(
|
|
1578
|
+
w.value.length ? (t(), k(ft, {
|
|
1579
1579
|
key: 0,
|
|
1580
1580
|
"observe-scroll": "",
|
|
1581
|
-
onEndReached:
|
|
1581
|
+
onEndReached: h
|
|
1582
1582
|
}, {
|
|
1583
1583
|
default: v(() => [
|
|
1584
1584
|
(t(!0), s(P, null, D(w.value, (V) => (t(), k(We, G({ ref_for: !0 }, {
|
|
1585
1585
|
item: V,
|
|
1586
|
-
indexes: e(
|
|
1586
|
+
indexes: e(b),
|
|
1587
1587
|
property: L.property
|
|
1588
1588
|
}, {
|
|
1589
1589
|
key: `matching-${V._id}`,
|
|
@@ -1603,14 +1603,14 @@ const We = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1603
1603
|
}, 8, ["title", "model-value"])
|
|
1604
1604
|
])) : y("", !0),
|
|
1605
1605
|
L.selectOnly ? y("", !0) : (t(), s("div", zo, [
|
|
1606
|
-
q(
|
|
1606
|
+
q(ft, null, ce({
|
|
1607
1607
|
default: v(() => {
|
|
1608
1608
|
var z;
|
|
1609
1609
|
return [
|
|
1610
1610
|
"items" in L.property ? (t(), s("div", Mo, [
|
|
1611
1611
|
(t(!0), s(P, null, D(L.modelValue, (E) => (t(), k(We, G({ ref_for: !0 }, {
|
|
1612
1612
|
item: E,
|
|
1613
|
-
indexes: e(
|
|
1613
|
+
indexes: e(b),
|
|
1614
1614
|
property: L.property,
|
|
1615
1615
|
readOnly: L.readOnly,
|
|
1616
1616
|
modelValue: L.modelValue
|
|
@@ -1620,7 +1620,7 @@ const We = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1620
1620
|
}), null, 16))), 128))
|
|
1621
1621
|
])) : (z = L.modelValue) != null && z._id ? (t(), k(We, G({ key: 1 }, {
|
|
1622
1622
|
item: L.modelValue,
|
|
1623
|
-
indexes: e(
|
|
1623
|
+
indexes: e(b),
|
|
1624
1624
|
property: e(n),
|
|
1625
1625
|
readOnly: L.readOnly,
|
|
1626
1626
|
modelValue: L.modelValue
|
|
@@ -1652,7 +1652,7 @@ const We = /* @__PURE__ */ K(Io, [["__scopeId", "data-v-e8413b98"]]), Ao = { cla
|
|
|
1652
1652
|
};
|
|
1653
1653
|
}
|
|
1654
1654
|
});
|
|
1655
|
-
const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]),
|
|
1655
|
+
const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), vt = (c, r) => {
|
|
1656
1656
|
const l = "items" in c ? c.items : c, n = {
|
|
1657
1657
|
options: Yn,
|
|
1658
1658
|
select: De,
|
|
@@ -1729,14 +1729,14 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1729
1729
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
1730
1730
|
setup(c, { emit: r }) {
|
|
1731
1731
|
var F;
|
|
1732
|
-
const l =
|
|
1732
|
+
const l = Pe(), n = c, o = r;
|
|
1733
1733
|
$t(() => {
|
|
1734
1734
|
n.modelValue || o("update:modelValue", n.property && "items" in n.property ? [] : {});
|
|
1735
1735
|
});
|
|
1736
1736
|
const u = n.property && me(n.property), i = u ? u.$ref : n.collection || qe(), _ = n.readOnly || ((F = n.property) == null ? void 0 : F.readOnly), p = i ? ie(e(i)) : null;
|
|
1737
1737
|
!i && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1738
1738
|
collection prop, some features may not work as intended`);
|
|
1739
|
-
const
|
|
1739
|
+
const b = J(!1), d = H(() => {
|
|
1740
1740
|
const m = (() => !n.form && n.property ? "type" in n.property && n.property.type === "object" ? "properties" in n.property ? n.property.properties : void 0 : p == null ? void 0 : p.properties : n.form)();
|
|
1741
1741
|
if (!m)
|
|
1742
1742
|
return;
|
|
@@ -1759,7 +1759,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1759
1759
|
return n[m] && ye(m, n[m]), z;
|
|
1760
1760
|
}, f = H(() => n.validationErrors !== null ? n.validationErrors : p == null ? void 0 : p.validationErrors), $ = w("formComponents") || {}, S = w("propertyComponents") || {}, B = w("omitFormHeader"), X = w("omitInputLabels"), ee = w("innerInputLabel");
|
|
1761
1761
|
i && ye(Fe, i), ye("searchOnly", n.searchOnly);
|
|
1762
|
-
const
|
|
1762
|
+
const h = (m) => d.value ? Object.entries(d.value).filter(([z, E]) => !E.noForm && m([
|
|
1763
1763
|
z,
|
|
1764
1764
|
E
|
|
1765
1765
|
])) : null, W = (m, z) => {
|
|
@@ -1768,7 +1768,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1768
1768
|
return !0;
|
|
1769
1769
|
const E = n.property && "properties" in n.property ? n.property.form : (V = p == null ? void 0 : p.description) == null ? void 0 : V.form;
|
|
1770
1770
|
return !E || E.includes(m);
|
|
1771
|
-
}, ne =
|
|
1771
|
+
}, ne = h(([m, z]) => W(m, z)), T = Ue(), g = {}, j = (m, z) => {
|
|
1772
1772
|
var M, fe, we, Se;
|
|
1773
1773
|
const E = [], V = ((fe = (M = a.value) == null ? void 0 : M.fields) == null ? void 0 : fe[m]) || ((Se = (we = a.value) == null ? void 0 : we.fields) == null ? void 0 : Se.$default);
|
|
1774
1774
|
if (!z)
|
|
@@ -1805,14 +1805,14 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1805
1805
|
var E;
|
|
1806
1806
|
return (E = f.value) != null && E[m] && (typeof f.value[m].index != "number" || f.value[m].index === z) ? f.value[m].errors : null;
|
|
1807
1807
|
}, L = (m) => {
|
|
1808
|
-
if (!(_ || m.readOnly) && !n.parentPropertyName && !n.parentCollection && !
|
|
1809
|
-
return
|
|
1808
|
+
if (!(_ || m.readOnly) && !n.parentPropertyName && !n.parentCollection && !b.value)
|
|
1809
|
+
return b.value = !0, !0;
|
|
1810
1810
|
};
|
|
1811
1811
|
return (m, z) => {
|
|
1812
1812
|
const E = oe("clickable"), V = oe("focus");
|
|
1813
1813
|
return t(), s("form", {
|
|
1814
1814
|
class: "form",
|
|
1815
|
-
style:
|
|
1815
|
+
style: he(`row-gap: ${e(B) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1816
1816
|
}, [
|
|
1817
1817
|
m.$slots.header && !e(B) ? (t(), s("header", Ho, [
|
|
1818
1818
|
O(m.$slots, "header", {}, void 0, !0)
|
|
@@ -1820,10 +1820,10 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1820
1820
|
O(m.$slots, "default", {}, void 0, !0),
|
|
1821
1821
|
A("fieldset", Do, [
|
|
1822
1822
|
(t(!0), s(P, null, D(e(ne), ([I, M]) => {
|
|
1823
|
-
var fe, we, Se, Te,
|
|
1823
|
+
var fe, we, Se, Te, xe, et, tt, nt, ot, at, lt, st, it;
|
|
1824
1824
|
return t(), s("div", {
|
|
1825
1825
|
key: `field-${I}`,
|
|
1826
|
-
style:
|
|
1826
|
+
style: he(j(I, M)),
|
|
1827
1827
|
class: "form__field"
|
|
1828
1828
|
}, [
|
|
1829
1829
|
(!("type" in M) || M.type !== "boolean" || m.searchOnly) && !M.noLabel && !e(X) && !e(ee) ? (t(), s("label", Qo, [
|
|
@@ -1847,7 +1847,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1847
1847
|
property: M,
|
|
1848
1848
|
propertyName: I,
|
|
1849
1849
|
modelValue: m.modelValue
|
|
1850
|
-
}), void 0, !0) : (Se = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(S)[m.layout.fields[I].component.name] ? (t(), k(
|
|
1850
|
+
}), void 0, !0) : (Se = (we = (fe = m.layout) == null ? void 0 : fe.fields) == null ? void 0 : we[I]) != null && Se.component && e(S)[m.layout.fields[I].component.name] ? (t(), k(be(e(S)[m.layout.fields[I].component.name]), G({
|
|
1851
1851
|
key: 2,
|
|
1852
1852
|
modelValue: m.modelValue[I],
|
|
1853
1853
|
"onUpdate:modelValue": (x) => m.modelValue[I] = x,
|
|
@@ -1906,7 +1906,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1906
1906
|
small: "",
|
|
1907
1907
|
variant: "alt",
|
|
1908
1908
|
icon: "plus",
|
|
1909
|
-
disabled: !("inline" in M.items && M.items.inline) && (((Te = m.modelValue[I]) == null ? void 0 : Te.length) >= M.maxItems || ae((
|
|
1909
|
+
disabled: !("inline" in M.items && M.items.inline) && (((Te = m.modelValue[I]) == null ? void 0 : Te.length) >= M.maxItems || ae((et = m.modelValue[I]) == null ? void 0 : et[((xe = m.modelValue[I]) == null ? void 0 : xe.length) - 1])),
|
|
1910
1910
|
onClick: ze((x) => {
|
|
1911
1911
|
m.modelValue[I] || (m.modelValue[I] = []), e(Uo)(m.modelValue[I], M, e(l));
|
|
1912
1912
|
}, ["prevent"])
|
|
@@ -1919,13 +1919,13 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1919
1919
|
])),
|
|
1920
1920
|
A("div", Po, [
|
|
1921
1921
|
(t(!0), s(P, null, D(m.modelValue[I], (x, je) => {
|
|
1922
|
-
var
|
|
1922
|
+
var rt, ut, ct, dt, pt, _t;
|
|
1923
1923
|
return t(), s("div", {
|
|
1924
1924
|
key: `rep-${I}-${e(Dt)(x, je)}`,
|
|
1925
1925
|
class: "form__array-item"
|
|
1926
1926
|
}, [
|
|
1927
1927
|
A("div", No, [
|
|
1928
|
-
(t(), k(
|
|
1928
|
+
(t(), k(be(e(vt)(M, e($))), G({
|
|
1929
1929
|
modelValue: m.modelValue[I][je],
|
|
1930
1930
|
"onUpdate:modelValue": (Re) => m.modelValue[I][je] = Re,
|
|
1931
1931
|
ref_for: !0
|
|
@@ -1935,7 +1935,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1935
1935
|
propertyName: I,
|
|
1936
1936
|
parentCollection: e(i),
|
|
1937
1937
|
parentPropertyName: m.parentPropertyName,
|
|
1938
|
-
columns: ((
|
|
1938
|
+
columns: ((ct = (ut = (rt = m.layout) == null ? void 0 : rt.fields) == null ? void 0 : ut[I]) == null ? void 0 : ct.optionsColumns) || ((_t = (pt = (dt = m.layout) == null ? void 0 : dt.fields) == null ? void 0 : pt.$default) == null ? void 0 : _t.optionsColumns),
|
|
1939
1939
|
validationErrors: te(I, je),
|
|
1940
1940
|
...M.componentProps || {}
|
|
1941
1941
|
}, {
|
|
@@ -1954,7 +1954,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1954
1954
|
]);
|
|
1955
1955
|
}), 128))
|
|
1956
1956
|
])
|
|
1957
|
-
])) : m.modelValue ? N((t(), k(
|
|
1957
|
+
])) : m.modelValue ? N((t(), k(be(e(vt)(M, e($))), G({
|
|
1958
1958
|
key: 6,
|
|
1959
1959
|
modelValue: m.modelValue[I],
|
|
1960
1960
|
"onUpdate:modelValue": (x) => m.modelValue[I] = x,
|
|
@@ -1965,7 +1965,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1965
1965
|
propertyName: I,
|
|
1966
1966
|
parentPropertyName: m.parentPropertyName,
|
|
1967
1967
|
parentCollection: e(i),
|
|
1968
|
-
columns: ((
|
|
1968
|
+
columns: ((ot = (nt = (tt = m.layout) == null ? void 0 : tt.fields) == null ? void 0 : nt[I]) == null ? void 0 : ot.optionsColumns) || ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt.$default) == null ? void 0 : st.optionsColumns),
|
|
1969
1969
|
...M.componentProps || {},
|
|
1970
1970
|
validationErrors: te(I)
|
|
1971
1971
|
}, {
|
|
@@ -1975,7 +1975,7 @@ const Fo = /* @__PURE__ */ K(qo, [["__scopeId", "data-v-15bbe202"]]), ft = (c, r
|
|
|
1975
1975
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1976
1976
|
[V, L(M)]
|
|
1977
1977
|
]) : y("", !0),
|
|
1978
|
-
(
|
|
1978
|
+
(it = f.value) != null && it[I] ? (t(), s("div", xo, [
|
|
1979
1979
|
f.value[I].type ? (t(), s("span", ea, C(e(R)(`validation_error.${f.value[I].type}`)), 1)) : y("", !0),
|
|
1980
1980
|
f.value[I].detail ? (t(), s("span", ta, C(e(R)(f.value[I].detail)), 1)) : y("", !0)
|
|
1981
1981
|
])) : y("", !0)
|
|
@@ -2011,14 +2011,14 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2011
2011
|
"close-hint": "",
|
|
2012
2012
|
"fixed-right": "",
|
|
2013
2013
|
title: _.t("filter_by", { capitalize: !0 }),
|
|
2014
|
-
onClose: p[2] || (p[2] = (
|
|
2015
|
-
onOverlayClick: p[3] || (p[3] = (
|
|
2014
|
+
onClose: p[2] || (p[2] = (b) => l("update:modelValue", !1)),
|
|
2015
|
+
onOverlayClick: p[3] || (p[3] = (b) => l("update:modelValue", !1))
|
|
2016
2016
|
}, {
|
|
2017
2017
|
footer: v(() => [
|
|
2018
2018
|
e(n).filtersCount > 0 ? (t(), k(re, {
|
|
2019
2019
|
key: 0,
|
|
2020
2020
|
variant: "transparent",
|
|
2021
|
-
onClick: p[1] || (p[1] = (
|
|
2021
|
+
onClick: p[1] || (p[1] = (b) => {
|
|
2022
2022
|
e(n).$actions.clearFilters(), i(), l("update:modelValue", !1);
|
|
2023
2023
|
})
|
|
2024
2024
|
}, {
|
|
@@ -2048,7 +2048,7 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2048
2048
|
default: v(() => [
|
|
2049
2049
|
q(Qe, G({
|
|
2050
2050
|
modelValue: e(n).filters,
|
|
2051
|
-
"onUpdate:modelValue": p[0] || (p[0] = (
|
|
2051
|
+
"onUpdate:modelValue": p[0] || (p[0] = (b) => e(n).filters = b)
|
|
2052
2052
|
}, {
|
|
2053
2053
|
searchOnly: !0,
|
|
2054
2054
|
form: e(n).availableFilters,
|
|
@@ -2063,16 +2063,21 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2063
2063
|
props: {
|
|
2064
2064
|
collection: {},
|
|
2065
2065
|
form: {},
|
|
2066
|
-
|
|
2066
|
+
visible: { default: !0 },
|
|
2067
|
+
modelValue: {},
|
|
2067
2068
|
readOnly: { type: Boolean },
|
|
2068
2069
|
includeId: { type: Boolean },
|
|
2069
2070
|
includeTimestamps: { type: Boolean }
|
|
2070
2071
|
},
|
|
2071
|
-
emits: ["update:modelValue", "cancel"],
|
|
2072
|
+
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2072
2073
|
setup(c, { emit: r }) {
|
|
2073
|
-
const l = c, n = r, o = ie("meta"), u = l.collection || o.view.collection, i = ie(u), _ = _e("individualActions", [])
|
|
2074
|
-
|
|
2075
|
-
|
|
2074
|
+
const l = c, n = r, o = ie("meta"), u = l.collection || o.view.collection, i = ie(u), _ = _e("individualActions", []);
|
|
2075
|
+
Ye(() => {
|
|
2076
|
+
l.modelValue && i.$actions.setItem(l.modelValue);
|
|
2077
|
+
});
|
|
2078
|
+
const p = H(() => l.form ? i.$actions.useProperties(l.form) : i.description.form ? i.$actions.useProperties(i.description.form) : i.properties), b = async () => {
|
|
2079
|
+
const { error: f, result: $ } = await i.$actions.deepInsert();
|
|
2080
|
+
f || (n("update:visible", !1), n("update:modelValue", $), n("insert", $), i.$actions.clearItem());
|
|
2076
2081
|
}, { t: d } = Lt(), a = () => {
|
|
2077
2082
|
o.$actions.ask({
|
|
2078
2083
|
action: () => {
|
|
@@ -2085,11 +2090,11 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2085
2090
|
text: d("copied_to_clipboard")
|
|
2086
2091
|
});
|
|
2087
2092
|
return ue(() => i.item._id, (f) => {
|
|
2088
|
-
f === null && n("update:
|
|
2093
|
+
f === null && n("update:visible", !1);
|
|
2089
2094
|
}), (f, $) => {
|
|
2090
2095
|
const S = oe("clickable");
|
|
2091
2096
|
return t(), k(Be, {
|
|
2092
|
-
"model-value": f.
|
|
2097
|
+
"model-value": f.visible,
|
|
2093
2098
|
loading: e(i).loading.get,
|
|
2094
2099
|
onOverlayClick: a
|
|
2095
2100
|
}, ce({
|
|
@@ -2099,7 +2104,7 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2099
2104
|
actions: e(_).filter(({ action: B }) => B !== "spawnEdit"),
|
|
2100
2105
|
overlayLayer: 60
|
|
2101
2106
|
}, {
|
|
2102
|
-
onActionClick: $[2] || ($[2] = (B) => n("update:
|
|
2107
|
+
onActionClick: $[2] || ($[2] = (B) => n("update:visible", !1))
|
|
2103
2108
|
}), {
|
|
2104
2109
|
default: v(({
|
|
2105
2110
|
visible: B
|
|
@@ -2165,7 +2170,7 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2165
2170
|
large: "",
|
|
2166
2171
|
disabled: !e(i).isInsertReady || e(i).loading.get,
|
|
2167
2172
|
loading: e(i).loading.insert,
|
|
2168
|
-
onClick:
|
|
2173
|
+
onClick: b
|
|
2169
2174
|
}, {
|
|
2170
2175
|
default: v(() => [
|
|
2171
2176
|
Q(C(e(d)("action.insert", { capitalize: !0 })), 1)
|
|
@@ -2213,7 +2218,7 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2213
2218
|
}, ra = { key: 0 }, ua = { key: 1 }, ca = { key: 0 }, da = ["checked"], pa = {
|
|
2214
2219
|
key: 1,
|
|
2215
2220
|
style: { "text-align": "right" }
|
|
2216
|
-
}, _a = { key: 2 }, ma = { key: 3 }, fa = ["onClick"], va = { key: 0 }, ya = ["value"],
|
|
2221
|
+
}, _a = { key: 2 }, ma = { key: 3 }, fa = ["onClick"], va = { key: 0 }, ya = ["value"], ba = { class: "table__cell-mobile-label" }, ha = {
|
|
2217
2222
|
key: 0,
|
|
2218
2223
|
class: "table__cell-container"
|
|
2219
2224
|
}, $a = {
|
|
@@ -2240,11 +2245,11 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2240
2245
|
const l = c, n = r, o = Ue(), u = l.collection || qe(), i = u ? ie(typeof u == "string" ? u : u.value) : null, _ = H({
|
|
2241
2246
|
get: () => i == null ? void 0 : i.selected,
|
|
2242
2247
|
set: (f) => i == null ? void 0 : i.$actions.selectManyItems(f, !0)
|
|
2243
|
-
}), p = H(() => l.columns ? Object.keys(l.columns).length + Number(l.checkbox) : 0),
|
|
2248
|
+
}), p = H(() => l.columns ? Object.keys(l.columns).length + Number(l.checkbox) : 0), b = (f, $) => f != null && f.button ? typeof f.button == "object" ? Ke($, f.button).satisfied : f.button : !1, d = (f) => {
|
|
2244
2249
|
var $;
|
|
2245
2250
|
return !o.value.xl || !(($ = l.layout) != null && $.actions) || !l.actions ? [] : l.actions.filter((S) => {
|
|
2246
2251
|
const B = l.layout.actions[S.action];
|
|
2247
|
-
return
|
|
2252
|
+
return b(B, f);
|
|
2248
2253
|
});
|
|
2249
2254
|
}, a = (f) => {
|
|
2250
2255
|
var $;
|
|
@@ -2255,7 +2260,7 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2255
2260
|
if (!gt(S.roles, X.currentUser.roles))
|
|
2256
2261
|
return !1;
|
|
2257
2262
|
}
|
|
2258
|
-
return !
|
|
2263
|
+
return !b(B, f);
|
|
2259
2264
|
}) : [];
|
|
2260
2265
|
}, w = (f, $) => {
|
|
2261
2266
|
var X, ee;
|
|
@@ -2277,30 +2282,30 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2277
2282
|
A("input", {
|
|
2278
2283
|
type: "checkbox",
|
|
2279
2284
|
checked: e(i).selected.length > 0 && e(i).selected.length === e(i).itemsCount,
|
|
2280
|
-
onChange: $[0] || ($[0] = (
|
|
2285
|
+
onChange: $[0] || ($[0] = (h) => e(i).$actions.selectAllItems(h.target.checked))
|
|
2281
2286
|
}, null, 40, da)
|
|
2282
2287
|
])) : y("", !0),
|
|
2283
|
-
(t(!0), s(P, null, D(Object.entries(f.columns), ([
|
|
2288
|
+
(t(!0), s(P, null, D(Object.entries(f.columns), ([h, W], ne) => (t(), s("th", {
|
|
2284
2289
|
key: `header-${ne}`,
|
|
2285
2290
|
class: "table__header"
|
|
2286
|
-
}, C(W.description || e(R)(
|
|
2291
|
+
}, C(W.description || e(R)(h)), 1))), 128)),
|
|
2287
2292
|
(B = f.actions) != null && B.length ? (t(), s("th", pa)) : y("", !0)
|
|
2288
2293
|
])
|
|
2289
2294
|
])),
|
|
2290
2295
|
f.$slots.tbody ? (t(), s("tbody", _a, [
|
|
2291
2296
|
O(f.$slots, "tbody", {}, void 0, !0)
|
|
2292
2297
|
])) : (t(), s("tbody", ma, [
|
|
2293
|
-
(t(!0), s(P, null, D(f.rows, (
|
|
2298
|
+
(t(!0), s(P, null, D(f.rows, (h) => {
|
|
2294
2299
|
var W, ne;
|
|
2295
2300
|
return t(), s("tr", {
|
|
2296
|
-
key:
|
|
2297
|
-
onClick: (T) => n("itemClick",
|
|
2301
|
+
key: h._id,
|
|
2302
|
+
onClick: (T) => n("itemClick", h)
|
|
2298
2303
|
}, [
|
|
2299
2304
|
e(i) && f.checkbox && e(o).md ? (t(), s("td", va, [
|
|
2300
2305
|
N(A("input", {
|
|
2301
2306
|
"onUpdate:modelValue": $[1] || ($[1] = (T) => _.value = T),
|
|
2302
2307
|
type: "checkbox",
|
|
2303
|
-
value:
|
|
2308
|
+
value: h._id
|
|
2304
2309
|
}, null, 8, ya), [
|
|
2305
2310
|
[Bt, _.value]
|
|
2306
2311
|
])
|
|
@@ -2308,20 +2313,20 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2308
2313
|
(t(!0), s(P, null, D(Object.entries(f.columns), ([T, g], j) => {
|
|
2309
2314
|
var ae, le, se;
|
|
2310
2315
|
return t(), s("td", {
|
|
2311
|
-
key: `column-${
|
|
2316
|
+
key: `column-${h._id}-${j}`
|
|
2312
2317
|
}, [
|
|
2313
|
-
A("div",
|
|
2314
|
-
`row-${T}` in f.$slots ? (t(), s("div",
|
|
2318
|
+
A("div", ba, C(g.description || e(R)(T)), 1),
|
|
2319
|
+
`row-${T}` in f.$slots ? (t(), s("div", ha, [
|
|
2315
2320
|
O(f.$slots, `row-${T}`, G({ ref_for: !0 }, {
|
|
2316
2321
|
store: e(i),
|
|
2317
2322
|
column: T,
|
|
2318
2323
|
property: g,
|
|
2319
|
-
row:
|
|
2324
|
+
row: h
|
|
2320
2325
|
}), void 0, !0)
|
|
2321
2326
|
])) : (t(), s("div", $a, [
|
|
2322
2327
|
A("div", ga, [
|
|
2323
2328
|
"type" in g && g.type === "boolean" ? (t(), s("div", ka, [
|
|
2324
|
-
|
|
2329
|
+
h[T] ? (t(), k(Z, {
|
|
2325
2330
|
key: 0,
|
|
2326
2331
|
icon: "check",
|
|
2327
2332
|
"icon-classes": "aeria-blueish"
|
|
@@ -2341,41 +2346,41 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2341
2346
|
_: 1
|
|
2342
2347
|
}))
|
|
2343
2348
|
])) : ((ae = e(me)(g)) == null ? void 0 : ae.$ref) === "file" ? (t(), s("div", Va, [
|
|
2344
|
-
|
|
2345
|
-
"items" in g &&
|
|
2349
|
+
h[T] ? (t(), s("div", Ca, [
|
|
2350
|
+
"items" in g && h[T][0] && /^image/.test(h[T][0].type) ? (t(), k(He, {
|
|
2346
2351
|
key: 0,
|
|
2347
|
-
modelValue:
|
|
2348
|
-
"onUpdate:modelValue": (te) =>
|
|
2352
|
+
modelValue: h[T][0].link,
|
|
2353
|
+
"onUpdate:modelValue": (te) => h[T][0].link = te,
|
|
2349
2354
|
expandable: "",
|
|
2350
|
-
meta:
|
|
2355
|
+
meta: h[T][0],
|
|
2351
2356
|
alt: "Row image",
|
|
2352
2357
|
class: "table__picture"
|
|
2353
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(
|
|
2358
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[T].type) ? (t(), k(He, {
|
|
2354
2359
|
key: 1,
|
|
2355
|
-
modelValue:
|
|
2356
|
-
"onUpdate:modelValue": (te) =>
|
|
2360
|
+
modelValue: h[T].link,
|
|
2361
|
+
"onUpdate:modelValue": (te) => h[T].link = te,
|
|
2357
2362
|
expandable: "",
|
|
2358
|
-
meta:
|
|
2363
|
+
meta: h[T],
|
|
2359
2364
|
alt: "Row image",
|
|
2360
2365
|
class: "table__picture"
|
|
2361
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) :
|
|
2366
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[T].link ? (t(), s("a", {
|
|
2362
2367
|
key: 2,
|
|
2363
|
-
href:
|
|
2368
|
+
href: h[T].link,
|
|
2364
2369
|
style: { "font-size": "10pt" }
|
|
2365
|
-
}, C(
|
|
2370
|
+
}, C(h[T].filename), 9, Oa)) : (t(), s("div", Ia, " - "))
|
|
2366
2371
|
])) : (t(), s("div", Aa, " - "))
|
|
2367
2372
|
])) : (t(), s("div", Ba, [
|
|
2368
2373
|
e(i) ? (t(), s("span", wa, C(e(i).$actions.formatValue({
|
|
2369
|
-
value:
|
|
2374
|
+
value: h[T],
|
|
2370
2375
|
key: T,
|
|
2371
2376
|
property: g
|
|
2372
|
-
})), 1)) : (t(), s("span", Sa, C(Array.isArray(
|
|
2377
|
+
})), 1)) : (t(), s("span", Sa, C(Array.isArray(h[T]) ? h[T].filter((te) => !!te).join(", ") : [void 0, null].includes(h[T]) ? "-" : h[T]), 1)),
|
|
2373
2378
|
((se = (le = e(me)(g)) == null ? void 0 : le.indexes) == null ? void 0 : se.length) > 1 ? (t(), s("div", Ta, [
|
|
2374
2379
|
(t(!0), s(P, null, D(e(me)(g).indexes.slice(1, 2), (te, L) => (t(), s("div", {
|
|
2375
2380
|
key: `subvalue-${L}`,
|
|
2376
2381
|
class: "table__cell-subvalue"
|
|
2377
2382
|
}, C(e(i).$actions.formatValue({
|
|
2378
|
-
value:
|
|
2383
|
+
value: h[T],
|
|
2379
2384
|
key: T,
|
|
2380
2385
|
property: g,
|
|
2381
2386
|
index: te
|
|
@@ -2388,25 +2393,25 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2388
2393
|
}), 128)),
|
|
2389
2394
|
(W = f.actions) != null && W.length && e(o).md ? (t(), s("td", ja, [
|
|
2390
2395
|
A("div", Ra, [
|
|
2391
|
-
(t(!0), s(P, null, D(d(
|
|
2396
|
+
(t(!0), s(P, null, D(d(h), (T) => (t(), k(re, {
|
|
2392
2397
|
key: `action-${T.action}`,
|
|
2393
2398
|
small: "",
|
|
2394
2399
|
variant: "alt",
|
|
2395
2400
|
icon: T.icon,
|
|
2396
|
-
style:
|
|
2397
|
-
onClick: (g) => T.click(
|
|
2401
|
+
style: he(w(h, T)),
|
|
2402
|
+
onClick: (g) => T.click(h)
|
|
2398
2403
|
}, {
|
|
2399
2404
|
default: v(() => [
|
|
2400
2405
|
Q(C(e(R)(T.label)), 1)
|
|
2401
2406
|
]),
|
|
2402
2407
|
_: 2
|
|
2403
2408
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2404
|
-
a(
|
|
2409
|
+
a(h).length > 0 ? (t(), k(Oe, G({
|
|
2405
2410
|
key: 0,
|
|
2406
2411
|
ref_for: !0
|
|
2407
2412
|
}, {
|
|
2408
|
-
subject:
|
|
2409
|
-
actions: a(
|
|
2413
|
+
subject: h,
|
|
2414
|
+
actions: a(h)
|
|
2410
2415
|
}), {
|
|
2411
2416
|
default: v(({
|
|
2412
2417
|
visible: T
|
|
@@ -2425,12 +2430,12 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2425
2430
|
])) : (ne = f.actions) != null && ne.length ? (t(), s("td", La, [
|
|
2426
2431
|
A("div", {
|
|
2427
2432
|
class: "table__mobile-actions-grid",
|
|
2428
|
-
style:
|
|
2433
|
+
style: he(`grid-template-columns: repeat(${d(h).length + (a(h).length ? 1 : 0)}, 1fr);`)
|
|
2429
2434
|
}, [
|
|
2430
|
-
(t(!0), s(P, null, D(d(
|
|
2435
|
+
(t(!0), s(P, null, D(d(h), (T) => (t(), k(ve, {
|
|
2431
2436
|
key: `action-${T.action}`,
|
|
2432
2437
|
class: "table__mobile-actions-button",
|
|
2433
|
-
onClick: (g) => T.click(
|
|
2438
|
+
onClick: (g) => T.click(h)
|
|
2434
2439
|
}, {
|
|
2435
2440
|
default: v(() => [
|
|
2436
2441
|
q(Z, {
|
|
@@ -2444,12 +2449,12 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2444
2449
|
]),
|
|
2445
2450
|
_: 2
|
|
2446
2451
|
}, 1032, ["onClick"]))), 128)),
|
|
2447
|
-
a(
|
|
2452
|
+
a(h).length > 0 ? (t(), k(Oe, G({
|
|
2448
2453
|
key: 0,
|
|
2449
2454
|
ref_for: !0
|
|
2450
2455
|
}, {
|
|
2451
|
-
subject:
|
|
2452
|
-
actions: a(
|
|
2456
|
+
subject: h,
|
|
2457
|
+
actions: a(h)
|
|
2453
2458
|
}), {
|
|
2454
2459
|
default: v(() => [
|
|
2455
2460
|
q(Z, {
|
|
@@ -2462,7 +2467,7 @@ const Qe = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2462
2467
|
], 4)
|
|
2463
2468
|
])) : y("", !0),
|
|
2464
2469
|
A("div", {
|
|
2465
|
-
id: `dropdown-${
|
|
2470
|
+
id: `dropdown-${h._id}`
|
|
2466
2471
|
}, null, 8, za)
|
|
2467
2472
|
], 8, fa);
|
|
2468
2473
|
}), 128))
|
|
@@ -2566,11 +2571,11 @@ const Qa = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-438c4aed"]]), Ga = { key
|
|
|
2566
2571
|
actions: u.individualActions
|
|
2567
2572
|
}), {
|
|
2568
2573
|
default: v(({
|
|
2569
|
-
visible:
|
|
2574
|
+
visible: b
|
|
2570
2575
|
}) => [
|
|
2571
2576
|
N(q(Z, {
|
|
2572
2577
|
reactive: "",
|
|
2573
|
-
active:
|
|
2578
|
+
active: b,
|
|
2574
2579
|
icon: "dots-three-vertical"
|
|
2575
2580
|
}, null, 8, ["active"]), [
|
|
2576
2581
|
[_]
|
|
@@ -2580,12 +2585,12 @@ const Qa = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-438c4aed"]]), Ga = { key
|
|
|
2580
2585
|
}, 1040)) : y("", !0)
|
|
2581
2586
|
]),
|
|
2582
2587
|
default: v(() => {
|
|
2583
|
-
var
|
|
2588
|
+
var b;
|
|
2584
2589
|
return [
|
|
2585
2590
|
q(He, {
|
|
2586
2591
|
alt: "Item picture",
|
|
2587
2592
|
expandable: "",
|
|
2588
|
-
url: (
|
|
2593
|
+
url: (b = o(p[e(l).picture])) == null ? void 0 : b.link,
|
|
2589
2594
|
meta: o(p[e(l).picture])
|
|
2590
2595
|
}, null, 8, ["url", "meta"])
|
|
2591
2596
|
];
|
|
@@ -2595,12 +2600,12 @@ const Qa = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-438c4aed"]]), Ga = { key
|
|
|
2595
2600
|
e(l).badge && Array.isArray(p[e(l).badge]) ? {
|
|
2596
2601
|
name: "badge",
|
|
2597
2602
|
fn: v(() => [
|
|
2598
|
-
(t(!0), s(P, null, D(p[e(l).badge], (
|
|
2599
|
-
key: `${p._id}-${
|
|
2603
|
+
(t(!0), s(P, null, D(p[e(l).badge], (b) => (t(), k($e, {
|
|
2604
|
+
key: `${p._id}-${b}`,
|
|
2600
2605
|
large: ""
|
|
2601
2606
|
}, {
|
|
2602
2607
|
default: v(() => [
|
|
2603
|
-
Q(C(e(l).translateBadge ? e(R)(
|
|
2608
|
+
Q(C(e(l).translateBadge ? e(R)(b) : b), 1)
|
|
2604
2609
|
]),
|
|
2605
2610
|
_: 2
|
|
2606
2611
|
}, 1024))), 128))
|
|
@@ -2625,13 +2630,13 @@ const Qa = /* @__PURE__ */ K(Da, [["__scopeId", "data-v-438c4aed"]]), Ga = { key
|
|
|
2625
2630
|
};
|
|
2626
2631
|
}
|
|
2627
2632
|
});
|
|
2628
|
-
const
|
|
2633
|
+
const yt = /* @__PURE__ */ K(Ka, [["__scopeId", "data-v-ccbced12"]]), Xa = (c) => ({
|
|
2629
2634
|
tabular: Ha,
|
|
2630
|
-
grid:
|
|
2631
|
-
list:
|
|
2635
|
+
grid: yt,
|
|
2636
|
+
list: yt
|
|
2632
2637
|
})[c], pe = J(!1);
|
|
2633
2638
|
J(!1);
|
|
2634
|
-
const Ve = J(!1), Le = J((...c) => null),
|
|
2639
|
+
const Ve = J(!1), Le = J((...c) => null), bt = J(), Ya = (c) => (Je("data-v-ece8263c"), c = c(), Ze(), c), Ja = {
|
|
2635
2640
|
key: 2,
|
|
2636
2641
|
class: "crud__controls"
|
|
2637
2642
|
}, Za = {
|
|
@@ -2658,7 +2663,7 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ya = (c) => (Ye("data-v-24d3
|
|
|
2658
2663
|
setup(c, { emit: r }) {
|
|
2659
2664
|
const l = c, n = r, o = Ae(), u = Vt({
|
|
2660
2665
|
delay: 600
|
|
2661
|
-
}), i = ie("meta"), _ = Ue(), { reachedEnd: p, detach:
|
|
2666
|
+
}), i = ie("meta"), _ = Ue(), { reachedEnd: p, detach: b } = Ne(null, {
|
|
2662
2667
|
antecipate: 600
|
|
2663
2668
|
}), d = !_.value.md || l.scrollPagination;
|
|
2664
2669
|
d && ue(p, (g) => {
|
|
@@ -2668,8 +2673,8 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ya = (c) => (Ye("data-v-24d3
|
|
|
2668
2673
|
sa(a, {
|
|
2669
2674
|
persistInQuery: !l.noQueryPersistence
|
|
2670
2675
|
});
|
|
2671
|
-
const w =
|
|
2672
|
-
Le.value = f[0],
|
|
2676
|
+
const w = Pe(), f = l.action ? e(l.action) : Gt(a, o, w);
|
|
2677
|
+
Le.value = f[0], bt.value = f[1];
|
|
2673
2678
|
const $ = J(0), S = J(!1), B = async (g) => {
|
|
2674
2679
|
a.activeFilters = Object.assign({}, (g == null ? void 0 : g.filters) || a.$filters), Object.assign(a.activeFilters, a.filtersPreset);
|
|
2675
2680
|
const j = {
|
|
@@ -2707,7 +2712,7 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ya = (c) => (Ye("data-v-24d3
|
|
|
2707
2712
|
immediate: !0,
|
|
2708
2713
|
flush: "post"
|
|
2709
2714
|
});
|
|
2710
|
-
const [
|
|
2715
|
+
const [h] = u((g) => (o.push(Me(o.currentRoute.value, {
|
|
2711
2716
|
query: {
|
|
2712
2717
|
search: g || void 0
|
|
2713
2718
|
}
|
|
@@ -2720,14 +2725,14 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ya = (c) => (Ye("data-v-24d3
|
|
|
2720
2725
|
offset: 0
|
|
2721
2726
|
})) : (a.filters = Ce(a.freshFilters), $.value = 0, B())));
|
|
2722
2727
|
ue(() => a.textQuery, (g) => {
|
|
2723
|
-
|
|
2728
|
+
h(g);
|
|
2724
2729
|
});
|
|
2725
2730
|
const W = (g) => {
|
|
2726
2731
|
g.currentLayout = g.currentLayout === "tabular" ? g.description.layout.name : "tabular";
|
|
2727
2732
|
};
|
|
2728
2733
|
wt(() => {
|
|
2729
|
-
a.$actions.clearFilters(), a.textQuery = "",
|
|
2730
|
-
}), ue(() =>
|
|
2734
|
+
a.$actions.clearFilters(), a.textQuery = "", b();
|
|
2735
|
+
}), ue(() => bt.value, async (g) => {
|
|
2731
2736
|
var le;
|
|
2732
2737
|
const j = Ce(g);
|
|
2733
2738
|
let ae;
|
|
@@ -2789,12 +2794,12 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ya = (c) => (Ye("data-v-24d3
|
|
|
2789
2794
|
e(Ve) ? (t(), k(aa, {
|
|
2790
2795
|
key: e(a).$id,
|
|
2791
2796
|
modelValue: e(Ve),
|
|
2792
|
-
"onUpdate:modelValue": j[0] || (j[0] = (V) =>
|
|
2797
|
+
"onUpdate:modelValue": j[0] || (j[0] = (V) => mt(Ve) ? Ve.value = V : null)
|
|
2793
2798
|
}, null, 8, ["modelValue"])) : y("", !0),
|
|
2794
2799
|
e(pe) ? (t(), k(la, {
|
|
2795
2800
|
key: 1,
|
|
2796
|
-
|
|
2797
|
-
"onUpdate:
|
|
2801
|
+
visible: e(pe),
|
|
2802
|
+
"onUpdate:visible": j[1] || (j[1] = (V) => mt(pe) ? pe.value = V : null),
|
|
2798
2803
|
"fixed-right": "",
|
|
2799
2804
|
onCancel: j[2] || (j[2] = (V) => pe.value = !1)
|
|
2800
2805
|
}, ce({
|
|
@@ -2820,7 +2825,7 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ya = (c) => (Ye("data-v-24d3
|
|
|
2820
2825
|
O(g.$slots, V, de(ge(I)), void 0, !0)
|
|
2821
2826
|
])
|
|
2822
2827
|
}))
|
|
2823
|
-
]), 1032, ["
|
|
2828
|
+
]), 1032, ["visible"])) : y("", !0),
|
|
2824
2829
|
!g.noActions && (e(a).description.search || Object.keys(e(a).availableFilters).length > 0 || ((se = e(a)) == null ? void 0 : se.actions.length) > 0 || g.$slots.actions || !g.noLayoutToggle && e(a).description.layout && ((te = e(a).description.layout) == null ? void 0 : te.name) !== "tabular") ? (t(), s("div", Ja, [
|
|
2825
2830
|
e(a).description.search ? (t(), s("div", Za, [
|
|
2826
2831
|
q(ke, G({
|
|
@@ -2945,7 +2950,7 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ya = (c) => (Ye("data-v-24d3
|
|
|
2945
2950
|
])) : y("", !0),
|
|
2946
2951
|
N((t(), s("div", null, [
|
|
2947
2952
|
e(a).itemsCount === 0 && !e(a).loading.getAll && S.value && (e(ee) || g.$slots.empty) ? (t(), s("div", el, [
|
|
2948
|
-
e(ee) ? (t(), k(
|
|
2953
|
+
e(ee) ? (t(), k(be(e(ee)), de(G({ key: 0 }, {
|
|
2949
2954
|
collection: e(a).$id
|
|
2950
2955
|
})), {
|
|
2951
2956
|
default: v(() => [
|
|
@@ -2969,7 +2974,7 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ya = (c) => (Ye("data-v-24d3
|
|
|
2969
2974
|
})), void 0, !0)
|
|
2970
2975
|
])) : g.$slots.component ? O(g.$slots, "component", de(G({ key: 1 }, {
|
|
2971
2976
|
store: e(a)
|
|
2972
|
-
})), void 0, !0) : (t(), k(
|
|
2977
|
+
})), void 0, !0) : (t(), k(be(e(Xa)(((m = g.layout) == null ? void 0 : m.name) || e(a).$currentLayout)), G({ key: 2 }, {
|
|
2973
2978
|
individualActions: ne.value,
|
|
2974
2979
|
layoutOptions: ((z = g.layout) == null ? void 0 : z.options) || e(a).layout.options,
|
|
2975
2980
|
componentProps: g.componentProps
|
|
@@ -3003,7 +3008,7 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ya = (c) => (Ye("data-v-24d3
|
|
|
3003
3008
|
};
|
|
3004
3009
|
}
|
|
3005
3010
|
});
|
|
3006
|
-
const Fl = /* @__PURE__ */ K(nl, [["__scopeId", "data-v-
|
|
3011
|
+
const Fl = /* @__PURE__ */ K(nl, [["__scopeId", "data-v-ece8263c"]]), ol = { class: "prompt" }, al = /* @__PURE__ */ U({
|
|
3007
3012
|
__name: "aeria-prompt",
|
|
3008
3013
|
props: {
|
|
3009
3014
|
title: {},
|
|
@@ -3022,7 +3027,7 @@ const Fl = /* @__PURE__ */ K(nl, [["__scopeId", "data-v-24d396f4"]]), ol = { cla
|
|
|
3022
3027
|
footer: v(() => [
|
|
3023
3028
|
A("div", {
|
|
3024
3029
|
class: "prompt__options",
|
|
3025
|
-
style:
|
|
3030
|
+
style: he(`grid-template-columns: repeat(${Object.keys(n.options).length}, 1fr)`)
|
|
3026
3031
|
}, [
|
|
3027
3032
|
(t(!0), s(P, null, D(Object.entries(n.options), ([u, i], _) => (t(), k(ve, {
|
|
3028
3033
|
key: `option-${_}`,
|
|
@@ -3108,7 +3113,7 @@ const ul = /* @__PURE__ */ K(rl, [["__scopeId", "data-v-21bbe178"]]), cl = ["inn
|
|
|
3108
3113
|
default: v(() => [
|
|
3109
3114
|
q(u, null, {
|
|
3110
3115
|
default: v(({ Component: i }) => [
|
|
3111
|
-
(t(), k(
|
|
3116
|
+
(t(), k(be(i), null, ce({ _: 2 }, [
|
|
3112
3117
|
D(Object.keys(n.$slots), (_) => ({
|
|
3113
3118
|
name: _,
|
|
3114
3119
|
fn: v(() => [
|
|
@@ -3138,7 +3143,7 @@ const ul = /* @__PURE__ */ K(rl, [["__scopeId", "data-v-21bbe178"]]), cl = ["inn
|
|
|
3138
3143
|
style: { "white-space": "pre-wrap" },
|
|
3139
3144
|
innerHTML: e(r).modal.body
|
|
3140
3145
|
}, null, 8, cl)) : y("", !0),
|
|
3141
|
-
e(r).modal.component ? (t(), k(
|
|
3146
|
+
e(r).modal.component ? (t(), k(be(e(r).modal.component), { key: 1 })) : y("", !0)
|
|
3142
3147
|
]),
|
|
3143
3148
|
_: 1
|
|
3144
3149
|
}, 16, ["modelValue"]),
|
|
@@ -3176,10 +3181,10 @@ function vl(c, r) {
|
|
|
3176
3181
|
]))), 128))
|
|
3177
3182
|
]);
|
|
3178
3183
|
}
|
|
3179
|
-
const El = /* @__PURE__ */ K(ml, [["render", vl], ["__scopeId", "data-v-3cfef7fb"]]), yl = { class: "tabs" },
|
|
3184
|
+
const El = /* @__PURE__ */ K(ml, [["render", vl], ["__scopeId", "data-v-3cfef7fb"]]), yl = { class: "tabs" }, bl = {
|
|
3180
3185
|
key: 0,
|
|
3181
3186
|
class: "tabs__horizontal"
|
|
3182
|
-
},
|
|
3187
|
+
}, hl = {
|
|
3183
3188
|
key: 0,
|
|
3184
3189
|
class: "tabs__tab tabs__tab--info"
|
|
3185
3190
|
}, $l = ["onClick"], gl = {
|
|
@@ -3216,10 +3221,10 @@ const El = /* @__PURE__ */ K(ml, [["render", vl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3216
3221
|
}));
|
|
3217
3222
|
};
|
|
3218
3223
|
return (_, p) => {
|
|
3219
|
-
const
|
|
3224
|
+
const b = oe("clickable");
|
|
3220
3225
|
return t(), s("div", yl, [
|
|
3221
|
-
e(o).md && !_.dropdown ? (t(), s("div",
|
|
3222
|
-
_.$slots.default ? (t(), s("div",
|
|
3226
|
+
e(o).md && !_.dropdown ? (t(), s("div", bl, [
|
|
3227
|
+
_.$slots.default ? (t(), s("div", hl, [
|
|
3223
3228
|
O(_.$slots, "default", {}, void 0, !0)
|
|
3224
3229
|
])) : y("", !0),
|
|
3225
3230
|
(t(!0), s(P, null, D(Object.keys(_.$slots).filter((d) => d !== "default"), (d, a) => (t(), s("div", {
|
|
@@ -3247,7 +3252,7 @@ const El = /* @__PURE__ */ K(ml, [["render", vl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3247
3252
|
]),
|
|
3248
3253
|
_: 2
|
|
3249
3254
|
}, 1032, ["active"])), [
|
|
3250
|
-
[
|
|
3255
|
+
[b]
|
|
3251
3256
|
])
|
|
3252
3257
|
]),
|
|
3253
3258
|
_: 2
|
|
@@ -3285,19 +3290,19 @@ const Cl = /* @__PURE__ */ K(Vl, [["__scopeId", "data-v-a20914ab"]]), Ol = U({
|
|
|
3285
3290
|
collection: {}
|
|
3286
3291
|
},
|
|
3287
3292
|
setup(c) {
|
|
3288
|
-
const r = c, n = Ae().currentRoute, o =
|
|
3289
|
-
const { error:
|
|
3293
|
+
const r = c, n = Ae().currentRoute, o = Pe(), u = H(() => r.collection ? Ge(r.collection, o) : typeof n.value.meta.collection == "string" ? Ge(n.value.meta.collection, o) : typeof n.value.params.collection == "string" ? Ge(n.value.params.collection, o) : null), i = async (_, p) => {
|
|
3294
|
+
const { error: b, result: d } = await p.$functions[_.badgeFunction]({
|
|
3290
3295
|
filters: _.filters
|
|
3291
3296
|
});
|
|
3292
|
-
return
|
|
3297
|
+
return b ? 0 : d;
|
|
3293
3298
|
};
|
|
3294
3299
|
return (_, p) => u.value && u.value.description.filtersPresets ? (t(), k(Cl, {
|
|
3295
3300
|
key: 0,
|
|
3296
3301
|
dropdown: "",
|
|
3297
3302
|
query: "section"
|
|
3298
3303
|
}, ce({ _: 2 }, [
|
|
3299
|
-
D(Object.entries(u.value.description.filtersPresets), ([
|
|
3300
|
-
name:
|
|
3304
|
+
D(Object.entries(u.value.description.filtersPresets), ([b, d]) => ({
|
|
3305
|
+
name: b,
|
|
3301
3306
|
fn: v(() => [
|
|
3302
3307
|
A("div", {
|
|
3303
3308
|
class: "topbar__preset",
|
|
@@ -3308,10 +3313,10 @@ const Cl = /* @__PURE__ */ K(Vl, [["__scopeId", "data-v-a20914ab"]]), Ol = U({
|
|
|
3308
3313
|
icon: d.icon
|
|
3309
3314
|
}, {
|
|
3310
3315
|
default: v(() => [
|
|
3311
|
-
Q(C(d.label || e(R)(
|
|
3316
|
+
Q(C(d.label || e(R)(b, { plural: !0 })), 1)
|
|
3312
3317
|
]),
|
|
3313
3318
|
_: 2
|
|
3314
|
-
}, 1032, ["icon"])) : (t(), s("div", Al, C(d.label || e(R)(
|
|
3319
|
+
}, 1032, ["icon"])) : (t(), s("div", Al, C(d.label || e(R)(b, { plural: !0 })), 1)),
|
|
3315
3320
|
d.badgeFunction ? (t(), k($e, { key: 2 }, {
|
|
3316
3321
|
default: v(() => [
|
|
3317
3322
|
q(e(Ol), {
|
|
@@ -3384,7 +3389,7 @@ const wl = /* @__PURE__ */ K(Bl, [["__scopeId", "data-v-85c3b087"]]), Sl = /* @_
|
|
|
3384
3389
|
{
|
|
3385
3390
|
path: "signin",
|
|
3386
3391
|
name: "/user/signin",
|
|
3387
|
-
component: () => import("./signin-
|
|
3392
|
+
component: () => import("./signin-277485f6.js"),
|
|
3388
3393
|
meta: {
|
|
3389
3394
|
title: "Autenticação"
|
|
3390
3395
|
}
|
|
@@ -3392,7 +3397,7 @@ const wl = /* @__PURE__ */ K(Bl, [["__scopeId", "data-v-85c3b087"]]), Sl = /* @_
|
|
|
3392
3397
|
{
|
|
3393
3398
|
path: "signup",
|
|
3394
3399
|
name: "/user/signup",
|
|
3395
|
-
component: () => import("./signup-
|
|
3400
|
+
component: () => import("./signup-c87489a0.js"),
|
|
3396
3401
|
meta: {
|
|
3397
3402
|
title: "Registro"
|
|
3398
3403
|
}
|
|
@@ -3400,7 +3405,7 @@ const wl = /* @__PURE__ */ K(Bl, [["__scopeId", "data-v-85c3b087"]]), Sl = /* @_
|
|
|
3400
3405
|
{
|
|
3401
3406
|
path: "activation",
|
|
3402
3407
|
name: "/user/activation",
|
|
3403
|
-
component: () => import("./activation-
|
|
3408
|
+
component: () => import("./activation-46990c40.js"),
|
|
3404
3409
|
meta: {
|
|
3405
3410
|
title: "Ativação"
|
|
3406
3411
|
}
|
|
@@ -3422,7 +3427,7 @@ const wl = /* @__PURE__ */ K(Bl, [["__scopeId", "data-v-85c3b087"]]), Sl = /* @_
|
|
|
3422
3427
|
name: "/dashboard/:collection",
|
|
3423
3428
|
props: !0,
|
|
3424
3429
|
components: {
|
|
3425
|
-
default: () => import("./index-
|
|
3430
|
+
default: () => import("./index-61a4a8b7.js"),
|
|
3426
3431
|
topbar: () => Promise.resolve().then(() => Sl)
|
|
3427
3432
|
},
|
|
3428
3433
|
meta: {
|
|
@@ -3434,7 +3439,7 @@ const wl = /* @__PURE__ */ K(Bl, [["__scopeId", "data-v-85c3b087"]]), Sl = /* @_
|
|
|
3434
3439
|
name: "/dashboard/:collection/:id",
|
|
3435
3440
|
props: !0,
|
|
3436
3441
|
components: {
|
|
3437
|
-
default: () => import("./_id_-
|
|
3442
|
+
default: () => import("./_id_-37c83f35.js")
|
|
3438
3443
|
},
|
|
3439
3444
|
meta: {
|
|
3440
3445
|
title: "%viewTitle%"
|
|
@@ -3452,7 +3457,7 @@ const wl = /* @__PURE__ */ K(Bl, [["__scopeId", "data-v-85c3b087"]]), Sl = /* @_
|
|
|
3452
3457
|
children: [
|
|
3453
3458
|
{
|
|
3454
3459
|
path: "profile",
|
|
3455
|
-
component: () => import("./index-
|
|
3460
|
+
component: () => import("./index-4ba787c5.js"),
|
|
3456
3461
|
meta: {
|
|
3457
3462
|
title: "Meu perfil",
|
|
3458
3463
|
icon: "user-square"
|
|
@@ -3461,7 +3466,7 @@ const wl = /* @__PURE__ */ K(Bl, [["__scopeId", "data-v-85c3b087"]]), Sl = /* @_
|
|
|
3461
3466
|
{
|
|
3462
3467
|
path: "changepass",
|
|
3463
3468
|
name: "/dashboard/user/changepass",
|
|
3464
|
-
component: () => import("./index-
|
|
3469
|
+
component: () => import("./index-4fc7259a.js"),
|
|
3465
3470
|
meta: {
|
|
3466
3471
|
title: "Mudar senha",
|
|
3467
3472
|
icon: "lock"
|