@aeria-ui/ui 0.0.32 → 0.0.34
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/{activation-b2a947e0.js → activation-d238ff2c.js} +1 -1
- package/dist/components/aeria-accordion/aeria-accordion.vue.d.ts +1 -1
- package/dist/components/aeria-badge/aeria-badge.vue.d.ts +1 -1
- package/dist/components/aeria-bare-button/aeria-bare-button.vue.d.ts +2 -2
- package/dist/components/aeria-button/aeria-button.vue.d.ts +3 -2
- package/dist/components/aeria-card/aeria-card.vue.d.ts +1 -1
- package/dist/components/aeria-context-menu/aeria-context-menu.vue.d.ts +2 -2
- package/dist/components/aeria-crud/_internals/components/aeria-filter-panel/aeria-filter-panel.vue.d.ts +2 -2
- package/dist/components/aeria-crud/_internals/components/aeria-insert-panel/aeria-insert-panel.vue.d.ts +1 -1
- package/dist/components/aeria-crud/_internals/helpers.d.ts +4 -3
- package/dist/components/aeria-crud/_internals/layouts/aeria-grid/aeria-grid.vue.d.ts +3 -2
- package/dist/components/aeria-crud/_internals/layouts/aeria-tabular/aeria-tabular.vue.d.ts +3 -2
- package/dist/components/aeria-crud/_internals/layouts/index.d.ts +29 -28
- package/dist/components/aeria-crud/_internals/store.d.ts +9 -8
- package/dist/components/aeria-crud/aeria-crud.vue.d.ts +6 -6
- package/dist/components/aeria-grid/aeria-grid.vue.d.ts +1 -1
- package/dist/components/aeria-icon/aeria-icon.vue.d.ts +3 -2
- package/dist/components/aeria-info/aeria-info.vue.d.ts +1 -1
- package/dist/components/aeria-main/aeria-main.vue.d.ts +1 -1
- package/dist/components/aeria-menu/aeria-menu.vue.d.ts +1 -1
- package/dist/components/aeria-pagination/aeria-pagination.vue.d.ts +4 -3
- package/dist/components/aeria-panel/aeria-panel.vue.d.ts +3 -3
- package/dist/components/aeria-picture/aeria-picture.vue.d.ts +1 -1
- package/dist/components/aeria-table/aeria-table.vue.d.ts +6 -5
- package/dist/components/aeria-tabs/aeria-tabs.vue.d.ts +1 -1
- package/dist/components/dashboard/aeria-crud-topbar/aeria-crud-topbar.vue.d.ts +1 -1
- package/dist/components/dashboard/aeria-password-form/aeria-password-form.vue.d.ts +2 -2
- package/dist/components/dashboard/aeria-prompt/aeria-prompt.vue.d.ts +3 -2
- package/dist/components/dashboard/aeria-toast/aeria-toast.vue.d.ts +3 -2
- package/dist/components/form/aeria-checkbox/aeria-checkbox.vue.d.ts +18 -17
- package/dist/components/form/aeria-file/aeria-file.vue.d.ts +5 -4
- package/dist/components/form/aeria-form/_internals/helpers.d.ts +2 -1
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +7 -6
- package/dist/components/form/aeria-input/aeria-input.vue.d.ts +5 -4
- package/dist/components/form/aeria-options/aeria-options.vue.d.ts +6 -5
- package/dist/components/form/aeria-search/_internals/components/aeria-search-container/aeria-search-container.vue.d.ts +2 -2
- package/dist/components/form/aeria-search/_internals/components/aeria-search-item/aeria-search-item.vue.d.ts +4 -3
- package/dist/components/form/aeria-search/aeria-search.vue.d.ts +5 -4
- package/dist/components/form/aeria-select/aeria-select.vue.d.ts +5 -4
- package/dist/components/form/aeria-switch/aeria-switch.vue.d.ts +7 -6
- package/dist/components/form/types.d.ts +2 -1
- package/dist/components/utils/aeria-async.d.ts +3 -3
- package/dist/{crud-view-232aa79c.js → crud-view-1bbc1387.js} +1 -1
- package/dist/{index-0c058b56.js → index-75991f90.js} +288 -269
- package/dist/{password-change-f12b3652.js → password-change-6277346e.js} +1 -1
- package/dist/{profile-d956dbdb.js → profile-1660e4f2.js} +1 -1
- package/dist/routes.d.ts +3 -2
- package/dist/{signin-72b3b697.js → signin-0db1eb4f.js} +1 -1
- package/dist/{signup-0257e6aa.js → signup-57507eb3.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/dist/views/dashboard/crud-view/crud-view.vue.d.ts +1 -1
- package/dist/views/dashboard/user/password-change/password-change.vue.d.ts +1 -1
- package/dist/views/dashboard/user/profile/profile.vue.d.ts +1 -1
- package/dist/views/user/activation.vue.d.ts +1 -1
- package/dist/views/user/signin.vue.d.ts +1 -1
- package/dist/views/user/signup.vue.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as s, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as g, createCommentVNode as f, createTextVNode as
|
|
2
|
-
import { t as M, useI18n as
|
|
3
|
-
import { useScrollObserver as We, useBreakpoints as je, useClipboard as
|
|
4
|
-
import { useStore as
|
|
1
|
+
import { defineComponent as U, ref as Y, resolveDirective as N, openBlock as n, createElementBlock as s, normalizeClass as W, Fragment as J, renderList as H, withDirectives as Z, toDisplayString as g, createCommentVNode as f, createTextVNode as G, unref as t, renderSlot as C, inject as fe, computed as Q, createElementVNode as k, mergeProps as D, createBlock as $, resolveDynamicComponent as ye, withCtx as m, useCssVars as bt, Teleport as Ge, watch as re, createVNode as F, vModelDynamic as gt, onBeforeMount as _t, normalizeStyle as he, withModifiers as ze, pushScopeId as Me, popScopeId as qe, provide as ve, onMounted as kt, normalizeProps as ce, guardReactiveProps as Ve, isRef as mt, createSlots as de, vModelCheckbox as Vt, onUnmounted as Ct, resolveComponent as It, Suspense as At, useSlots as Ot, h as wt } from "vue";
|
|
2
|
+
import { t as M, useI18n as Bt } from "@aeria-ui/i18n";
|
|
3
|
+
import { useScrollObserver as We, useBreakpoints as je, useClipboard as St, PAGINATION_PER_PAGE_DEFAULTS as jt, API_URL as ft, request as Tt, useDebounce as vt, isDocumentComplete as Lt, convertToSearchQuery as Rt, useAction as zt, convertFromSearchQuery as Ft, usePasswordPolicy as Mt } from "@aeria-ui/core";
|
|
4
|
+
import { useStore as ue, getStoreId as Te, useParentStore as be, STORE_ID as Ue, getGlobalStateManager as qt } from "@aeria-ui/state-management";
|
|
5
5
|
import { useRouter as Le } from "vue-router";
|
|
6
|
-
import { getReferenceProperty as pe, convertConditionToQuery as
|
|
6
|
+
import { isLeft as yt, getReferenceProperty as pe, convertConditionToQuery as Ut, deepClone as Se, freshItem as Et, isRequired as Ht, evaluateCondition as Qe } from "@aeriajs/common";
|
|
7
7
|
const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
8
8
|
key: 0,
|
|
9
9
|
class: "accordion__content"
|
|
@@ -33,7 +33,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
33
33
|
onClick: (p) => u.value === r ? u.value = null : u.value = r
|
|
34
34
|
}, [
|
|
35
35
|
a.enumerate ? (n(), s("span", Qt, g(y + 1) + ". ", 1)) : f("", !0),
|
|
36
|
-
|
|
36
|
+
G(" " + g(a.headers[r] ? e(a.headers[r]) : t(M)(r)), 1)
|
|
37
37
|
], 8, Dt)), [
|
|
38
38
|
[i]
|
|
39
39
|
]),
|
|
@@ -103,7 +103,7 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
103
103
|
fill: {}
|
|
104
104
|
},
|
|
105
105
|
setup(c) {
|
|
106
|
-
const u = c, e = typeof u.reactive == "boolean" ? u.reactive : fe("iconReactive", !1), a =
|
|
106
|
+
const u = c, e = typeof u.reactive == "boolean" ? u.reactive : fe("iconReactive", !1), a = Q(() => {
|
|
107
107
|
var l;
|
|
108
108
|
return (l = u.icon) != null && l.includes(":") ? u.icon : `regular:${u.icon}`;
|
|
109
109
|
});
|
|
@@ -121,7 +121,7 @@ const me = /* @__PURE__ */ X(Yt, [["__scopeId", "data-v-35bc81ae"]]), Jt = ["hre
|
|
|
121
121
|
${l.iconRight && "icon__icon--right"}
|
|
122
122
|
`)
|
|
123
123
|
}, [
|
|
124
|
-
(n(), s("svg",
|
|
124
|
+
(n(), s("svg", D({
|
|
125
125
|
width: "24",
|
|
126
126
|
height: "24",
|
|
127
127
|
viewBox: "0 0 256 256",
|
|
@@ -167,7 +167,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
167
167
|
},
|
|
168
168
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
169
169
|
setup(c, { emit: u }) {
|
|
170
|
-
const e = c, a = u, l =
|
|
170
|
+
const e = c, a = u, l = Q(() => e.floating || e.float), i = Y(e.collapsed), r = Y(null), { reachedEnd: y } = We(r), p = () => {
|
|
171
171
|
a("update:modelValue", !1), a("close");
|
|
172
172
|
}, h = () => {
|
|
173
173
|
a("overlayClick");
|
|
@@ -198,7 +198,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
198
198
|
${o.transparentMobile && "panel__content--transparent-mobile"}
|
|
199
199
|
${o.outerHeader && "panel__content--outer-header"}
|
|
200
200
|
`),
|
|
201
|
-
onClick: v[1] || (v[1] = (
|
|
201
|
+
onClick: v[1] || (v[1] = (j) => j.stopPropagation())
|
|
202
202
|
}, {
|
|
203
203
|
default: m(() => [
|
|
204
204
|
o.$slots.header || o.title ? (n(), s("div", {
|
|
@@ -219,7 +219,7 @@ const K = /* @__PURE__ */ X(Zt, [["__scopeId", "data-v-4b763bd3"]]), Pt = { clas
|
|
|
219
219
|
key: 0,
|
|
220
220
|
reactive: "",
|
|
221
221
|
icon: i.value ? "plus" : "minus",
|
|
222
|
-
onClick: v[0] || (v[0] = (
|
|
222
|
+
onClick: v[0] || (v[0] = (j) => d(!i.value))
|
|
223
223
|
}, null, 8, ["icon"])), [
|
|
224
224
|
[b]
|
|
225
225
|
]) : o.closeHint ? Z((n(), $(K, {
|
|
@@ -320,7 +320,7 @@ const Ae = /* @__PURE__ */ X(en, [["__scopeId", "data-v-6fdc75a0"]]), tn = { cla
|
|
|
320
320
|
}, 8, ["class", "disabled"]));
|
|
321
321
|
}
|
|
322
322
|
});
|
|
323
|
-
const
|
|
323
|
+
const ie = /* @__PURE__ */ X(on, [["__scopeId", "data-v-c328251b"]]), an = { class: "card__picture" }, ln = { class: "card__footer" }, sn = { class: "card__footer-upper" }, rn = { class: "card__badge" }, un = /* @__PURE__ */ U({
|
|
324
324
|
__name: "aeria-card",
|
|
325
325
|
props: {
|
|
326
326
|
inactive: { type: Boolean },
|
|
@@ -363,16 +363,16 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
363
363
|
},
|
|
364
364
|
emits: ["actionClick"],
|
|
365
365
|
setup(c, { emit: u }) {
|
|
366
|
-
|
|
366
|
+
bt((h) => ({
|
|
367
367
|
fae20070: p.value.x,
|
|
368
368
|
fae2006e: p.value.y
|
|
369
369
|
}));
|
|
370
|
-
const e = u, a =
|
|
370
|
+
const e = u, a = ue("user"), l = Y(null), i = Y(!1), r = (h) => h.filter((d) => d.roles ? d.roles.include(a.currentUser.role) : !!d.click), y = (h, d) => {
|
|
371
371
|
h.click(d), e("actionClick", {
|
|
372
372
|
action: h,
|
|
373
373
|
subject: d
|
|
374
374
|
}), i.value = !1;
|
|
375
|
-
}, p =
|
|
375
|
+
}, p = Q(() => {
|
|
376
376
|
if (!l.value)
|
|
377
377
|
return {
|
|
378
378
|
x: 0,
|
|
@@ -442,7 +442,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
442
442
|
(n(!0), s(J, null, H(r(h.actions), (V, R) => (n(), $(me, {
|
|
443
443
|
key: `action-${R}`,
|
|
444
444
|
class: "content__item content__item--reactive",
|
|
445
|
-
onClick: (
|
|
445
|
+
onClick: (j) => y(V, h.subject)
|
|
446
446
|
}, {
|
|
447
447
|
default: m(() => [
|
|
448
448
|
V.icon ? (n(), $(K, {
|
|
@@ -450,7 +450,7 @@ const cn = /* @__PURE__ */ X(un, [["__scopeId", "data-v-c1a322df"]]), dn = { cla
|
|
|
450
450
|
icon: V.icon
|
|
451
451
|
}, {
|
|
452
452
|
default: m(() => [
|
|
453
|
-
|
|
453
|
+
G(g(V.translate ? t(M)(V.name, { capitalize: !0 }) : V.name), 1)
|
|
454
454
|
]),
|
|
455
455
|
_: 2
|
|
456
456
|
}, 1032, ["icon"])) : f("", !0)
|
|
@@ -541,7 +541,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-76defa0b"]]), hn = { cla
|
|
|
541
541
|
},
|
|
542
542
|
emits: ["update:modelValue", "input", "change"],
|
|
543
543
|
setup(c, { emit: u }) {
|
|
544
|
-
const e = c, a = e.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", i = fe("searchOnly", !1), r = fe("innerInputLabel", !1), y = !i && a.readOnly, p =
|
|
544
|
+
const e = c, a = e.property || {}, l = "icon" in a || "inputType" in a && a.inputType === "search", i = fe("searchOnly", !1), r = fe("innerInputLabel", !1), y = !i && a.readOnly, p = St(), h = u, d = fe("inputVariant", e.variant) || "normal", o = {
|
|
545
545
|
name: e.propertyName,
|
|
546
546
|
readonly: y,
|
|
547
547
|
type: (() => {
|
|
@@ -574,35 +574,35 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-76defa0b"]]), hn = { cla
|
|
|
574
574
|
}, b = Y([
|
|
575
575
|
"date",
|
|
576
576
|
"date-time"
|
|
577
|
-
].includes(o.type) ? v() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), V = (
|
|
577
|
+
].includes(o.type) ? v() : e.modelValue === null || e.modelValue === void 0 ? "" : e.modelValue), V = (j) => {
|
|
578
578
|
const q = (() => {
|
|
579
579
|
if (o.type === "number" || o.type === "integer")
|
|
580
|
-
return Number(
|
|
580
|
+
return Number(j);
|
|
581
581
|
if (!("type" in a && a.type === "string"))
|
|
582
|
-
return
|
|
582
|
+
return j;
|
|
583
583
|
switch (a.format) {
|
|
584
584
|
case "date":
|
|
585
585
|
case "date-time":
|
|
586
|
-
return new Date(
|
|
586
|
+
return new Date(j);
|
|
587
587
|
default:
|
|
588
|
-
return
|
|
588
|
+
return j;
|
|
589
589
|
}
|
|
590
590
|
})();
|
|
591
591
|
h("input", q), h("update:modelValue", q);
|
|
592
|
-
}, R = (
|
|
593
|
-
const q =
|
|
592
|
+
}, R = (j) => {
|
|
593
|
+
const q = j.target.value;
|
|
594
594
|
b.value = q, V(q);
|
|
595
595
|
};
|
|
596
|
-
return
|
|
597
|
-
|
|
598
|
-
}), (
|
|
596
|
+
return re(() => e.modelValue, (j, q) => {
|
|
597
|
+
j instanceof Date || (q && !j ? b.value = void 0 : j && q === void 0 && (b.value = j));
|
|
598
|
+
}), (j, q) => {
|
|
599
599
|
const w = N("focus"), le = N("clickable");
|
|
600
600
|
return n(), s("label", hn, [
|
|
601
601
|
t(r) ? f("", !0) : (n(), s("div", $n, [
|
|
602
|
-
|
|
602
|
+
j.$slots.default ? C(j.$slots, "default", { key: 0 }, void 0, !0) : C(j.$slots, "description", { key: 1 }, void 0, !0)
|
|
603
603
|
])),
|
|
604
|
-
|
|
605
|
-
C(
|
|
604
|
+
j.$slots.hint ? (n(), s("div", bn, [
|
|
605
|
+
C(j.$slots, "hint", {}, void 0, !0)
|
|
606
606
|
])) : f("", !0),
|
|
607
607
|
"element" in t(a) && t(a).element === "textarea" ? (n(), s("div", {
|
|
608
608
|
key: 2,
|
|
@@ -614,7 +614,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-76defa0b"]]), hn = { cla
|
|
|
614
614
|
Z(k("textarea", {
|
|
615
615
|
placeholder: o.placeholder,
|
|
616
616
|
readonly: o.readonly,
|
|
617
|
-
value:
|
|
617
|
+
value: j.modelValue,
|
|
618
618
|
class: W(`
|
|
619
619
|
input__textarea
|
|
620
620
|
input__input--${t(d)}
|
|
@@ -630,7 +630,7 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-76defa0b"]]), hn = { cla
|
|
|
630
630
|
input__container--${t(d)}
|
|
631
631
|
`)
|
|
632
632
|
}, [
|
|
633
|
-
Z(k("input",
|
|
633
|
+
Z(k("input", D(o, {
|
|
634
634
|
value: b.value,
|
|
635
635
|
"data-component": "input",
|
|
636
636
|
class: `
|
|
@@ -655,12 +655,12 @@ const yn = /* @__PURE__ */ X(vn, [["__scopeId", "data-v-76defa0b"]]), hn = { cla
|
|
|
655
655
|
t(y) ? (n(), s("div", Vn, [
|
|
656
656
|
F(yn, null, {
|
|
657
657
|
text: m(() => [
|
|
658
|
-
|
|
658
|
+
G("Copiar")
|
|
659
659
|
]),
|
|
660
660
|
default: m(() => [
|
|
661
661
|
Z(F(K, {
|
|
662
662
|
icon: "clipboard",
|
|
663
|
-
onClick: q[1] || (q[1] = (oe) => t(p)(String(
|
|
663
|
+
onClick: q[1] || (q[1] = (oe) => t(p)(String(j.modelValue || "")))
|
|
664
664
|
}, null, 512), [
|
|
665
665
|
[le]
|
|
666
666
|
])
|
|
@@ -694,17 +694,17 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-fea1d6e5"]]), In = ["val
|
|
|
694
694
|
e.booleanRef && (y.value = d), a("update:modelValue", (d == null ? void 0 : d._id) || d), a("change", (d == null ? void 0 : d._id) || d);
|
|
695
695
|
}, y = e.booleanRef ? (() => {
|
|
696
696
|
const d = Y(e.modelValue);
|
|
697
|
-
return
|
|
697
|
+
return Q({
|
|
698
698
|
get: () => d.value === "true" ? !0 : d.value === "false" ? !1 : null,
|
|
699
699
|
set: (v) => {
|
|
700
700
|
d.value = v;
|
|
701
701
|
}
|
|
702
702
|
});
|
|
703
|
-
})() :
|
|
703
|
+
})() : Q({
|
|
704
704
|
get: () => e.modelValue,
|
|
705
705
|
set: r
|
|
706
|
-
}), p = (d) => Array.isArray(e.modelValue) ? e.modelValue.includes(d) : e.modelValue === d, h =
|
|
707
|
-
return e.multiple &&
|
|
706
|
+
}), p = (d) => Array.isArray(e.modelValue) ? e.modelValue.includes(d) : e.modelValue === d, h = Q(() => e.multiple ? typeof e.multiple == "number" ? e.multiple : 5 : 1);
|
|
707
|
+
return e.multiple && re(() => e.modelValue, (d) => {
|
|
708
708
|
var v;
|
|
709
709
|
if (!l.value)
|
|
710
710
|
return;
|
|
@@ -716,7 +716,7 @@ const Ie = /* @__PURE__ */ X(Cn, [["__scopeId", "data-v-fea1d6e5"]]), In = ["val
|
|
|
716
716
|
"select--outline": !d.noOutline
|
|
717
717
|
})
|
|
718
718
|
}, [
|
|
719
|
-
k("select",
|
|
719
|
+
k("select", D({
|
|
720
720
|
ref_key: "select",
|
|
721
721
|
ref: l,
|
|
722
722
|
value: t(y)
|
|
@@ -751,20 +751,20 @@ const Ee = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
751
751
|
},
|
|
752
752
|
emits: ["paginate"],
|
|
753
753
|
setup(c, { emit: u }) {
|
|
754
|
-
const e = c, a = u, l =
|
|
754
|
+
const e = c, a = u, l = Q({
|
|
755
755
|
get: () => Math.floor(e.pagination.offset / e.pagination.limit),
|
|
756
756
|
set: (h) => {
|
|
757
757
|
e.pagination.offset = h * e.pagination.limit;
|
|
758
758
|
}
|
|
759
|
-
}), i =
|
|
759
|
+
}), i = Q({
|
|
760
760
|
get: () => e.pagination.limit,
|
|
761
761
|
set: (h) => {
|
|
762
762
|
e.pagination.limit = Number(h);
|
|
763
763
|
}
|
|
764
|
-
}), r = Y(l.value ? l.value + 1 : 1), y =
|
|
764
|
+
}), r = Y(l.value ? l.value + 1 : 1), y = Q(() => Math.ceil(e.pagination.recordsTotal / e.pagination.limit)), p = (h) => {
|
|
765
765
|
l.value = h === "previous" ? l.value - 1 : l.value + 1;
|
|
766
766
|
};
|
|
767
|
-
return
|
|
767
|
+
return re([
|
|
768
768
|
l,
|
|
769
769
|
i
|
|
770
770
|
], ([h]) => {
|
|
@@ -783,7 +783,7 @@ const Ee = /* @__PURE__ */ X(wn, [["__scopeId", "data-v-7a33443b"]]), Bn = { cla
|
|
|
783
783
|
class: "pagination__control"
|
|
784
784
|
}, {
|
|
785
785
|
default: m(() => [
|
|
786
|
-
(n(!0), s(J, null, H(t(
|
|
786
|
+
(n(!0), s(J, null, H(t(jt), (o) => (n(), s("option", {
|
|
787
787
|
key: `limit-${o}`,
|
|
788
788
|
value: o
|
|
789
789
|
}, g(o), 9, Sn))), 128))
|
|
@@ -875,7 +875,7 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-41aa1ffc"]]), zn = { cla
|
|
|
875
875
|
const e = c, a = e.property || {}, l = !("enum" in a) && [
|
|
876
876
|
"array",
|
|
877
877
|
"boolean"
|
|
878
|
-
].includes(a.type) ? "checkbox" : "radio", i = u, r = e.value || !1, y =
|
|
878
|
+
].includes(a.type) ? "checkbox" : "radio", i = u, r = e.value || !1, y = Q({
|
|
879
879
|
get: () => {
|
|
880
880
|
var p;
|
|
881
881
|
return "type" in a && a.type === "boolean" ? !!e.value : "items" in a ? (p = e.modelValue) == null ? void 0 : p.includes(e.value) : e.modelValue === e.value;
|
|
@@ -906,14 +906,14 @@ const Rn = /* @__PURE__ */ X(Ln, [["__scopeId", "data-v-41aa1ffc"]]), zn = { cla
|
|
|
906
906
|
${t(a).readOnly && "checkbox--readOnly"}
|
|
907
907
|
`)
|
|
908
908
|
}, [
|
|
909
|
-
Z(k("input",
|
|
909
|
+
Z(k("input", D({
|
|
910
910
|
"onUpdate:modelValue": h[0] || (h[0] = (o) => y.value = o)
|
|
911
911
|
}, {
|
|
912
912
|
type: t(l),
|
|
913
913
|
readOnly: t(a).readOnly,
|
|
914
914
|
checked: y.value
|
|
915
915
|
}, { class: "checkbox__input" }), null, 16), [
|
|
916
|
-
[
|
|
916
|
+
[gt, y.value]
|
|
917
917
|
]),
|
|
918
918
|
k("div", zn, [
|
|
919
919
|
k("div", null, [
|
|
@@ -969,7 +969,7 @@ const Hn = /* @__PURE__ */ X(En, [["__scopeId", "data-v-256eb557"]]), Dn = {
|
|
|
969
969
|
key: `option-${p}`,
|
|
970
970
|
class: "options__checkbox"
|
|
971
971
|
}, [
|
|
972
|
-
F(Hn,
|
|
972
|
+
F(Hn, D({ ref_for: !0 }, {
|
|
973
973
|
value: p,
|
|
974
974
|
property: r.property
|
|
975
975
|
}, {
|
|
@@ -1025,20 +1025,20 @@ const Gn = /* @__PURE__ */ X(Qn, [["__scopeId", "data-v-43cda372"]]), Wn = (c) =
|
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
1027
|
});
|
|
1028
|
-
const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]),
|
|
1028
|
+
const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), ht = (c) => (Me("data-v-153a2e0f"), c = c(), qe(), c), Nn = { class: "picture" }, xn = {
|
|
1029
1029
|
key: 0,
|
|
1030
1030
|
style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" }
|
|
1031
1031
|
}, eo = ["src", "alt"], to = {
|
|
1032
1032
|
key: 0,
|
|
1033
1033
|
class: "picture__meta"
|
|
1034
|
-
}, no = ["src"], oo = /* @__PURE__ */
|
|
1034
|
+
}, no = ["src"], oo = /* @__PURE__ */ ht(() => /* @__PURE__ */ k("line", {
|
|
1035
1035
|
x1: "0",
|
|
1036
1036
|
y1: "0",
|
|
1037
1037
|
x2: "200",
|
|
1038
1038
|
y2: "200",
|
|
1039
1039
|
stroke: "#000",
|
|
1040
1040
|
"vector-effect": "non-scaling-stroke"
|
|
1041
|
-
}, null, -1)), ao = /* @__PURE__ */
|
|
1041
|
+
}, null, -1)), ao = /* @__PURE__ */ ht(() => /* @__PURE__ */ k("line", {
|
|
1042
1042
|
x1: "200",
|
|
1043
1043
|
y1: "0",
|
|
1044
1044
|
x2: "0",
|
|
@@ -1063,7 +1063,7 @@ const Pn = /* @__PURE__ */ X(Zn, [["__scopeId", "data-v-30f5a5ca"]]), yt = (c) =
|
|
|
1063
1063
|
meta: {}
|
|
1064
1064
|
},
|
|
1065
1065
|
setup(c) {
|
|
1066
|
-
const u = c, e =
|
|
1066
|
+
const u = c, e = Q(() => u.fileId ? `${ft}/file/${u.fileId}/picture` : u.url || u.modelValue), a = Y(!1);
|
|
1067
1067
|
return (l, i) => {
|
|
1068
1068
|
var y;
|
|
1069
1069
|
const r = N("overlay");
|
|
@@ -1147,12 +1147,12 @@ const Fe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-153a2e0f"]]), ro = { cla
|
|
|
1147
1147
|
},
|
|
1148
1148
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1149
1149
|
setup(c, { emit: u }) {
|
|
1150
|
-
const e = c, a = u, i = Te() ?
|
|
1150
|
+
const e = c, a = u, i = Te() ? be() : null, r = Y(null), y = Q(() => {
|
|
1151
1151
|
var b;
|
|
1152
1152
|
return r.value ? URL.createObjectURL(r.value) : (b = e.modelValue) == null ? void 0 : b.link;
|
|
1153
|
-
}), p =
|
|
1153
|
+
}), p = Q(() => {
|
|
1154
1154
|
var b, V, R;
|
|
1155
|
-
return /^image\//.test((b = e.modelValue) == null ? void 0 : b.
|
|
1155
|
+
return /^image\//.test((b = e.modelValue) == null ? void 0 : b.type) && !((V = r.value) != null && V.type) || /^image\//.test((R = r.value) == null ? void 0 : R.type);
|
|
1156
1156
|
}), h = (b) => new Promise((V) => {
|
|
1157
1157
|
const R = new FileReader();
|
|
1158
1158
|
R.onload = () => V(R.result), R.readAsArrayBuffer(b);
|
|
@@ -1162,7 +1162,7 @@ const Fe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-153a2e0f"]]), ro = { cla
|
|
|
1162
1162
|
r.value = b.target.files[0];
|
|
1163
1163
|
const V = r.value, R = await h(V);
|
|
1164
1164
|
if (i) {
|
|
1165
|
-
const { data:
|
|
1165
|
+
const { data: j } = await Tt(`${ft}/${i.$id}/upload?name=${V.name}`, R, {
|
|
1166
1166
|
params: {
|
|
1167
1167
|
method: "POST",
|
|
1168
1168
|
headers: {
|
|
@@ -1171,7 +1171,9 @@ const Fe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-153a2e0f"]]), ro = { cla
|
|
|
1171
1171
|
}
|
|
1172
1172
|
}
|
|
1173
1173
|
});
|
|
1174
|
-
|
|
1174
|
+
if (yt(j))
|
|
1175
|
+
return;
|
|
1176
|
+
a("update:modelValue", j);
|
|
1175
1177
|
} else
|
|
1176
1178
|
a("update:modelValue", V);
|
|
1177
1179
|
a("update:content", R), a("change", R);
|
|
@@ -1179,7 +1181,7 @@ const Fe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-153a2e0f"]]), ro = { cla
|
|
|
1179
1181
|
a("update:modelValue", null);
|
|
1180
1182
|
};
|
|
1181
1183
|
return (b, V) => {
|
|
1182
|
-
var R,
|
|
1184
|
+
var R, j, q, w, le, oe;
|
|
1183
1185
|
return n(), s("div", ro, [
|
|
1184
1186
|
r.value || (R = b.modelValue) != null && R._id ? (n(), s("div", uo, [
|
|
1185
1187
|
p.value ? (n(), $(Fe, {
|
|
@@ -1189,7 +1191,7 @@ const Fe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-153a2e0f"]]), ro = { cla
|
|
|
1189
1191
|
alt: "Image preview",
|
|
1190
1192
|
class: W(`
|
|
1191
1193
|
file__image
|
|
1192
|
-
${!t(i) || ((
|
|
1194
|
+
${!t(i) || ((j = b.modelValue) == null ? void 0 : j._id) || "file__image--unsent"}
|
|
1193
1195
|
`)
|
|
1194
1196
|
}, null, 8, ["modelValue", "class"])) : f("", !0),
|
|
1195
1197
|
(q = b.modelValue) != null && q._id ? (n(), s("a", {
|
|
@@ -1205,22 +1207,22 @@ const Fe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-153a2e0f"]]), ro = { cla
|
|
|
1205
1207
|
onChange: o
|
|
1206
1208
|
}, null, 40, _o),
|
|
1207
1209
|
r.value ? (n(), s("div", mo, [
|
|
1208
|
-
F(
|
|
1210
|
+
F(ie, {
|
|
1209
1211
|
small: "",
|
|
1210
1212
|
onClick: ze(d, ["prevent"])
|
|
1211
1213
|
}, {
|
|
1212
1214
|
default: m(() => [
|
|
1213
|
-
|
|
1215
|
+
G(g(t(M)("action.clear", { capitalize: !0 })), 1)
|
|
1214
1216
|
]),
|
|
1215
1217
|
_: 1
|
|
1216
1218
|
})
|
|
1217
1219
|
])) : (oe = b.modelValue) != null && oe._id ? (n(), s("div", fo, [
|
|
1218
|
-
F(
|
|
1220
|
+
F(ie, {
|
|
1219
1221
|
small: "",
|
|
1220
1222
|
onClick: ze(v, ["prevent"])
|
|
1221
1223
|
}, {
|
|
1222
1224
|
default: m(() => [
|
|
1223
|
-
|
|
1225
|
+
G(g(t(M)("action.remove", { capitalize: !0 })), 1)
|
|
1224
1226
|
]),
|
|
1225
1227
|
_: 1
|
|
1226
1228
|
})
|
|
@@ -1230,7 +1232,7 @@ const Fe = /* @__PURE__ */ X(io, [["__scopeId", "data-v-153a2e0f"]]), ro = { cla
|
|
|
1230
1232
|
};
|
|
1231
1233
|
}
|
|
1232
1234
|
});
|
|
1233
|
-
const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-
|
|
1235
|
+
const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-5fa55625"]]), ho = { class: "container" }, $o = {
|
|
1234
1236
|
key: 1,
|
|
1235
1237
|
class: "container__footer"
|
|
1236
1238
|
}, bo = /* @__PURE__ */ U({
|
|
@@ -1243,7 +1245,7 @@ const yo = /* @__PURE__ */ X(vo, [["__scopeId", "data-v-38fc243c"]]), ho = { cla
|
|
|
1243
1245
|
const e = c, a = u, l = Y(null), i = e.observeScroll ? We(l, {
|
|
1244
1246
|
antecipate: 100
|
|
1245
1247
|
}).reachedEnd : null;
|
|
1246
|
-
return i !== null &&
|
|
1248
|
+
return i !== null && re(i, (r) => {
|
|
1247
1249
|
r && a("endReached", r);
|
|
1248
1250
|
}), (r, y) => (n(), s("div", ho, [
|
|
1249
1251
|
r.$slots.default ? (n(), s("div", {
|
|
@@ -1270,7 +1272,7 @@ const st = /* @__PURE__ */ X(bo, [["__scopeId", "data-v-c86e2d2a"]]), go = { cla
|
|
|
1270
1272
|
},
|
|
1271
1273
|
emits: ["update:modelValue", "change"],
|
|
1272
1274
|
setup(c, { emit: u }) {
|
|
1273
|
-
const e = c, a = u, l = e.property, i = pe(l), r =
|
|
1275
|
+
const e = c, a = u, l = e.property, i = pe(l), r = be(), y = Q(() => Array.isArray(e.modelValue) ? Array.isArray(e.modelValue) && Object.values(e.modelValue).some(({ _id: d }) => e.item._id === d) : e.modelValue && e.modelValue._id === e.item._id), p = () => {
|
|
1274
1276
|
if (y.value)
|
|
1275
1277
|
return;
|
|
1276
1278
|
const d = (v) => v.filter((b) => !!(b != null && b._id)), o = "items" in l ? d(Array.isArray(e.modelValue) ? e.modelValue : [e.modelValue]) : e.modelValue;
|
|
@@ -1331,18 +1333,18 @@ const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1331
1333
|
},
|
|
1332
1334
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1333
1335
|
setup(c, { emit: u }) {
|
|
1334
|
-
const e = c, a = pe(e.property), l = e.panel !== void 0 ?
|
|
1336
|
+
const e = c, a = pe(e.property), l = e.panel !== void 0 ? Q(() => e.panel) : Y(!1), i = u, r = ue(pe(e.property).$ref), y = Te(), p = y ? be() : null, h = a.indexes;
|
|
1335
1337
|
ve(Ue, pe(e.property).$ref), ve("innerInputLabel", !0), ve("omitInputLabels", !0);
|
|
1336
1338
|
const d = Y(e.modelValue), o = Y({
|
|
1337
1339
|
data: [],
|
|
1338
1340
|
pagination: {}
|
|
1339
|
-
}), v =
|
|
1341
|
+
}), v = Q(() => o.value.data), b = Q(() => o.value.pagination), V = Y(0), R = Y(h[0]), j = Y(!1), q = Y({}), w = () => {
|
|
1340
1342
|
const I = {};
|
|
1341
1343
|
if (y) {
|
|
1342
1344
|
const L = t(y);
|
|
1343
1345
|
I[L] = p;
|
|
1344
1346
|
}
|
|
1345
|
-
return a.constraints ?
|
|
1347
|
+
return a.constraints ? Ut(a.constraints, I) : {};
|
|
1346
1348
|
}, le = () => {
|
|
1347
1349
|
v.value.length < b.value.recordsTotal && (V.value += 1, S());
|
|
1348
1350
|
}, oe = async () => Object.values(q.value).every((I) => !(String(I).length > 0)) ? r.$actions.custom("getAll", {
|
|
@@ -1372,17 +1374,17 @@ const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1372
1374
|
}, [x] = vt({
|
|
1373
1375
|
delay: 800
|
|
1374
1376
|
})(() => {
|
|
1375
|
-
V.value = 0, S(),
|
|
1377
|
+
V.value = 0, S(), j.value = !1;
|
|
1376
1378
|
}), O = () => {
|
|
1377
|
-
|
|
1379
|
+
j.value = !0, x();
|
|
1378
1380
|
}, z = () => {
|
|
1379
1381
|
"effect" in l ? i("update:panel", !0) : l.value = !0, S();
|
|
1380
1382
|
}, ee = () => {
|
|
1381
1383
|
V.value = 0, o.value.data.splice(0), "effect" in l ? i("update:panel", !1) : l.value = !1;
|
|
1382
|
-
}, ne =
|
|
1383
|
-
|
|
1384
|
+
}, ne = Q(() => !Object.values(q.value).some((I) => !!I));
|
|
1385
|
+
re(ne, (I, L) => {
|
|
1384
1386
|
I && !L && S();
|
|
1385
|
-
}),
|
|
1387
|
+
}), kt(() => {
|
|
1386
1388
|
e.selectOnly && S();
|
|
1387
1389
|
});
|
|
1388
1390
|
const _ = (I) => {
|
|
@@ -1408,18 +1410,18 @@ const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1408
1410
|
onOverlayClick: ee
|
|
1409
1411
|
}, {
|
|
1410
1412
|
footer: m(() => [
|
|
1411
|
-
F(
|
|
1413
|
+
F(ie, {
|
|
1412
1414
|
large: "",
|
|
1413
1415
|
onClick: E
|
|
1414
1416
|
}, {
|
|
1415
1417
|
default: m(() => [
|
|
1416
|
-
|
|
1418
|
+
G(g(t(M)("action.save", { capitalize: !0 })), 1)
|
|
1417
1419
|
]),
|
|
1418
1420
|
_: 1
|
|
1419
1421
|
})
|
|
1420
1422
|
]),
|
|
1421
1423
|
default: m(() => {
|
|
1422
|
-
var
|
|
1424
|
+
var T, te;
|
|
1423
1425
|
return [
|
|
1424
1426
|
k("div", Vo, [
|
|
1425
1427
|
k("div", Co, [
|
|
@@ -1456,7 +1458,7 @@ const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1456
1458
|
onEndReached: le
|
|
1457
1459
|
}, {
|
|
1458
1460
|
default: m(() => [
|
|
1459
|
-
(n(!0), s(J, null, H(v.value, (B) => (n(), $(De,
|
|
1461
|
+
(n(!0), s(J, null, H(v.value, (B) => (n(), $(De, D({ ref_for: !0 }, {
|
|
1460
1462
|
item: B,
|
|
1461
1463
|
indexes: t(h),
|
|
1462
1464
|
property: I.property
|
|
@@ -1468,7 +1470,7 @@ const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1468
1470
|
]),
|
|
1469
1471
|
_: 1
|
|
1470
1472
|
})) : (n(), s("div", Oo, [
|
|
1471
|
-
|
|
1473
|
+
j.value ? (n(), s("div", wo, g(t(M)("searching", { capitalize: !0 })) + "... ", 1)) : !t(r).loading.getAll && Object.values(q.value).filter((B) => !!B).length > 0 && !("items" in I.property && ((T = I.modelValue) != null && T.length) || !Array.isArray(I.modelValue) && ((te = I.modelValue) != null && te._id)) ? (n(), s("div", Bo, g(t(M)("no_results", { capitalize: !0 })), 1)) : f("", !0)
|
|
1472
1474
|
]))
|
|
1473
1475
|
]),
|
|
1474
1476
|
k("div", So, g(t(M)("showing", { capitalize: !0 })) + " " + g(v.value.length) + " " + g(t(M)("of")) + " " + g(b.value.recordsTotal), 1)
|
|
@@ -1485,7 +1487,7 @@ const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1485
1487
|
onClick: z
|
|
1486
1488
|
}, {
|
|
1487
1489
|
default: m(() => [
|
|
1488
|
-
|
|
1490
|
+
G(g(t(M)("action.select", { capitalize: !0 })), 1)
|
|
1489
1491
|
]),
|
|
1490
1492
|
_: 1
|
|
1491
1493
|
})), [
|
|
@@ -1493,10 +1495,10 @@ const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1493
1495
|
])
|
|
1494
1496
|
]),
|
|
1495
1497
|
default: m(() => {
|
|
1496
|
-
var
|
|
1498
|
+
var T;
|
|
1497
1499
|
return [
|
|
1498
1500
|
"items" in I.property ? (n(), s("div", To, [
|
|
1499
|
-
(n(!0), s(J, null, H(I.modelValue, (te) => (n(), $(De,
|
|
1501
|
+
(n(!0), s(J, null, H(I.modelValue, (te) => (n(), $(De, D({ ref_for: !0 }, {
|
|
1500
1502
|
item: te,
|
|
1501
1503
|
indexes: t(h),
|
|
1502
1504
|
property: I.property,
|
|
@@ -1505,7 +1507,7 @@ const De = /* @__PURE__ */ X(ko, [["__scopeId", "data-v-fa7fea9f"]]), Vo = { cla
|
|
|
1505
1507
|
key: `selected-${te._id}`,
|
|
1506
1508
|
"onUpdate:modelValue": _
|
|
1507
1509
|
}), null, 16))), 128))
|
|
1508
|
-
])) : (
|
|
1510
|
+
])) : (T = I.modelValue) != null && T._id ? (n(), $(De, D({ key: 1 }, {
|
|
1509
1511
|
item: I.modelValue,
|
|
1510
1512
|
indexes: t(h),
|
|
1511
1513
|
property: t(a),
|
|
@@ -1550,10 +1552,10 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u
|
|
|
1550
1552
|
c ?? (c = []);
|
|
1551
1553
|
const e = "items" in u ? u.items : u;
|
|
1552
1554
|
if ("$ref" in u) {
|
|
1553
|
-
const a =
|
|
1555
|
+
const a = ue(u.$ref), l = Se(a.$freshItem);
|
|
1554
1556
|
return c.unshift(l);
|
|
1555
1557
|
}
|
|
1556
|
-
return "properties" in e ? c.unshift(
|
|
1558
|
+
return "properties" in e ? c.unshift(Et(e)) : "type" in e && e.type === "boolean" ? c.unshift({}) : c.unshift(null);
|
|
1557
1559
|
}, Fo = (c, u) => {
|
|
1558
1560
|
c.splice(u, 1);
|
|
1559
1561
|
}, Mo = {
|
|
@@ -1600,13 +1602,13 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u
|
|
|
1600
1602
|
_t(() => {
|
|
1601
1603
|
e.modelValue || a("update:modelValue", e.property && "items" in e.property ? [] : {});
|
|
1602
1604
|
});
|
|
1603
|
-
const l = e.property && pe(e.property), i = l ? l.$ref : e.collection || Te(), r = i ?
|
|
1605
|
+
const l = e.property && pe(e.property), i = l ? l.$ref : e.collection || Te(), r = i ? ue(t(i)) : null;
|
|
1604
1606
|
!i && process.env.NODE_ENV !== "production" && console.warn(`aeria-form was used without providing storeId or specifying
|
|
1605
1607
|
collection prop, some features may not work as intended`);
|
|
1606
|
-
const y = Y(!1), p =
|
|
1608
|
+
const y = Y(!1), p = Q(() => !e.form && e.property ? "properties" in e.property ? e.property.properties : r == null ? void 0 : r.properties : e.form), h = Q(() => e.layout || (r == null ? void 0 : r.description.formLayout)), d = (_) => {
|
|
1607
1609
|
const E = fe(_, e[_]);
|
|
1608
1610
|
return e[_] && ve(_, e[_]), E;
|
|
1609
|
-
}, o =
|
|
1611
|
+
}, o = Q(() => e.validationErrors !== null ? e.validationErrors : r == null ? void 0 : r.validationErrors), v = d("formComponents") || {}, b = d("propertyComponents") || {}, V = d("omitFormHeader"), R = d("omitInputLabels"), j = d("innerInputLabel");
|
|
1610
1612
|
i && ve(Ue, i), ve("searchOnly", e.searchOnly);
|
|
1611
1613
|
const q = (_) => p.value ? Object.entries(p.value).filter(([E, I]) => !I.noForm && _([
|
|
1612
1614
|
E,
|
|
@@ -1618,8 +1620,8 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u
|
|
|
1618
1620
|
const E = e.property && "properties" in e.property ? e.property.form : (I = r == null ? void 0 : r.description) == null ? void 0 : I.form;
|
|
1619
1621
|
return !E || E.includes(_);
|
|
1620
1622
|
}, le = q(([_]) => w(_)), oe = je(), S = {}, x = (_, E) => {
|
|
1621
|
-
var
|
|
1622
|
-
const I = [], L = ((te = (
|
|
1623
|
+
var T, te, B, ae;
|
|
1624
|
+
const I = [], L = ((te = (T = h.value) == null ? void 0 : T.fields) == null ? void 0 : te[_]) || ((ae = (B = h.value) == null ? void 0 : B.fields) == null ? void 0 : ae.$default);
|
|
1623
1625
|
if (!E)
|
|
1624
1626
|
return;
|
|
1625
1627
|
if (L != null && L.if && !e.searchOnly) {
|
|
@@ -1645,7 +1647,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u
|
|
|
1645
1647
|
padding: 1rem 0;
|
|
1646
1648
|
margin: 1rem 0;
|
|
1647
1649
|
`)), I.join("");
|
|
1648
|
-
}, O = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, z =
|
|
1650
|
+
}, O = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, z = Q(() => e.required ? e.required : e.property && "required" in e.property ? e.property.required : r == null ? void 0 : r.description.required), ee = Q(() => e.form ? Lt(
|
|
1649
1651
|
e.modelValue,
|
|
1650
1652
|
e.form,
|
|
1651
1653
|
z.value,
|
|
@@ -1665,64 +1667,70 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u
|
|
|
1665
1667
|
])) : f("", !0),
|
|
1666
1668
|
C(_.$slots, "default", {}, void 0, !0),
|
|
1667
1669
|
_.isReadOnly ? f("", !0) : (n(), s("fieldset", qo, [
|
|
1668
|
-
(n(!0), s(J, null, H(t(le), ([A,
|
|
1669
|
-
var te, B, ae, _e,
|
|
1670
|
+
(n(!0), s(J, null, H(t(le), ([A, T]) => {
|
|
1671
|
+
var te, B, ae, _e, ge, Xe, Ye, Je, Ke, Ze, Pe, Ne, xe;
|
|
1670
1672
|
return n(), s("div", {
|
|
1671
1673
|
key: `field-${A}`,
|
|
1672
|
-
style: he(x(A,
|
|
1674
|
+
style: he(x(A, T)),
|
|
1673
1675
|
class: "form__field"
|
|
1674
1676
|
}, [
|
|
1675
|
-
(!("type" in
|
|
1677
|
+
(!("type" in T) || T.type !== "boolean" || _.searchOnly) && !T.noLabel && !t(R) && !t(j) ? (n(), s("label", Uo, [
|
|
1676
1678
|
k("div", {
|
|
1677
1679
|
class: W({
|
|
1678
1680
|
"form__field-label": !0,
|
|
1679
|
-
"form__field-label--section": "items" in
|
|
1680
|
-
"form__field-required-hint": _.highlightRequired && !_.searchOnly && (!z.value || t(
|
|
1681
|
+
"form__field-label--section": "items" in T ? "properties" in T.items : "properties" in T,
|
|
1682
|
+
"form__field-required-hint": _.highlightRequired && !_.searchOnly && (!z.value || t(Ht)(A, z.value, _.modelValue))
|
|
1681
1683
|
})
|
|
1682
|
-
}, g(
|
|
1683
|
-
|
|
1684
|
+
}, g(T.description || t(M)(A)), 3),
|
|
1685
|
+
T.hint ? (n(), s("div", {
|
|
1684
1686
|
key: 0,
|
|
1685
|
-
innerHTML:
|
|
1687
|
+
innerHTML: T.hint
|
|
1686
1688
|
}, null, 8, Eo)) : f("", !0)
|
|
1687
1689
|
])) : f("", !0),
|
|
1688
|
-
_.$slots[`field-${A}`] ? C(_.$slots, `field-${A}`,
|
|
1689
|
-
|
|
1690
|
+
_.$slots[`field-${A}`] ? C(_.$slots, `field-${A}`, D({
|
|
1691
|
+
key: 1,
|
|
1692
|
+
ref_for: !0
|
|
1693
|
+
}, {
|
|
1694
|
+
propery: T,
|
|
1690
1695
|
properyName: A,
|
|
1691
1696
|
modelValue: _.modelValue
|
|
1692
|
-
})
|
|
1697
|
+
}), void 0, !0) : (ae = (B = (te = _.layout) == null ? void 0 : te.fields) == null ? void 0 : B[A]) != null && ae.component && t(b)[_.layout.fields[A].component.name] ? (n(), $(ye(t(b)[_.layout.fields[A].component.name]), D({
|
|
1693
1698
|
key: 2,
|
|
1694
1699
|
modelValue: _.modelValue[A],
|
|
1695
|
-
"onUpdate:modelValue": (P) => _.modelValue[A] = P
|
|
1700
|
+
"onUpdate:modelValue": (P) => _.modelValue[A] = P,
|
|
1701
|
+
ref_for: !0
|
|
1696
1702
|
}, {
|
|
1697
|
-
property:
|
|
1703
|
+
property: T,
|
|
1698
1704
|
propertyName: A,
|
|
1699
1705
|
..._.layout.fields[A].component.props || {}
|
|
1700
1706
|
}, {
|
|
1701
1707
|
onInput: (P) => a("input", A),
|
|
1702
1708
|
onChange: E[0] || (E[0] = (P) => a("change", P))
|
|
1703
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in
|
|
1709
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in T && ["date", "date-time"].includes(T.format) && _.searchOnly ? (n(), s("div", {
|
|
1704
1710
|
key: 3,
|
|
1705
1711
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1706
1712
|
onInput: (P) => a("input", A),
|
|
1707
1713
|
onChange: E[1] || (E[1] = (P) => a("change", P))
|
|
1708
1714
|
}, [
|
|
1709
|
-
F(Ie,
|
|
1715
|
+
F(Ie, D({
|
|
1710
1716
|
modelValue: _.modelValue[A].$gte,
|
|
1711
|
-
"onUpdate:modelValue": (P) => _.modelValue[A].$gte = P
|
|
1717
|
+
"onUpdate:modelValue": (P) => _.modelValue[A].$gte = P,
|
|
1718
|
+
ref_for: !0
|
|
1712
1719
|
}, {
|
|
1713
|
-
property:
|
|
1720
|
+
property: T,
|
|
1714
1721
|
propertyName: A
|
|
1715
1722
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1716
|
-
F(Ie,
|
|
1723
|
+
F(Ie, D({
|
|
1717
1724
|
modelValue: _.modelValue[A].$lte,
|
|
1718
|
-
"onUpdate:modelValue": (P) => _.modelValue[A].$lte = P
|
|
1725
|
+
"onUpdate:modelValue": (P) => _.modelValue[A].$lte = P,
|
|
1726
|
+
ref_for: !0
|
|
1719
1727
|
}, {
|
|
1720
|
-
property:
|
|
1728
|
+
property: T,
|
|
1721
1729
|
propertyName: A
|
|
1722
1730
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1723
|
-
], 40, Ho)) : "type" in
|
|
1724
|
-
F(Ee,
|
|
1725
|
-
property:
|
|
1731
|
+
], 40, Ho)) : "type" in T && T.type === "boolean" && _.searchOnly ? (n(), s("div", Do, [
|
|
1732
|
+
F(Ee, D({ ref_for: !0 }, {
|
|
1733
|
+
property: T,
|
|
1726
1734
|
propertyName: A
|
|
1727
1735
|
}, {
|
|
1728
1736
|
"boolean-ref": "",
|
|
@@ -1738,19 +1746,19 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u
|
|
|
1738
1746
|
]),
|
|
1739
1747
|
_: 2
|
|
1740
1748
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1741
|
-
])) : _.modelValue && "items" in
|
|
1749
|
+
])) : _.modelValue && "items" in T && !T.uniqueItems && (!("$ref" in T.items) || T.items.inline || T.items.$ref === "file") ? (n(), s("div", Wo, [
|
|
1742
1750
|
k("div", null, [
|
|
1743
|
-
F(
|
|
1751
|
+
F(ie, {
|
|
1744
1752
|
small: "",
|
|
1745
1753
|
variant: "alt",
|
|
1746
1754
|
icon: "plus",
|
|
1747
|
-
disabled: !("inline" in
|
|
1755
|
+
disabled: !("inline" in T.items && T.items.inline) && (((_e = _.modelValue[A]) == null ? void 0 : _e.length) >= T.maxItems || O((Xe = _.modelValue[A]) == null ? void 0 : Xe[((ge = _.modelValue[A]) == null ? void 0 : ge.length) - 1])),
|
|
1748
1756
|
onClick: ze((P) => {
|
|
1749
|
-
_.modelValue[A] || (_.modelValue[A] = []), t(zo)(_.modelValue[A],
|
|
1757
|
+
_.modelValue[A] || (_.modelValue[A] = []), t(zo)(_.modelValue[A], T);
|
|
1750
1758
|
}, ["prevent"])
|
|
1751
1759
|
}, {
|
|
1752
1760
|
default: m(() => [
|
|
1753
|
-
|
|
1761
|
+
G(g(t(M)("action.add", { capitalize: !0 })), 1)
|
|
1754
1762
|
]),
|
|
1755
1763
|
_: 2
|
|
1756
1764
|
}, 1032, ["disabled", "onClick"])
|
|
@@ -1762,17 +1770,18 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u
|
|
|
1762
1770
|
style: { display: "flex", "column-gap": ".6rem", "align-items": "center" }
|
|
1763
1771
|
}, [
|
|
1764
1772
|
k("div", Xo, [
|
|
1765
|
-
(n(), $(ye(t(it)(
|
|
1773
|
+
(n(), $(ye(t(it)(T, t(v))), D({
|
|
1766
1774
|
modelValue: _.modelValue[A][Oe],
|
|
1767
|
-
"onUpdate:modelValue": (we) => _.modelValue[A][Oe] = we
|
|
1775
|
+
"onUpdate:modelValue": (we) => _.modelValue[A][Oe] = we,
|
|
1776
|
+
ref_for: !0
|
|
1768
1777
|
}, {
|
|
1769
|
-
property:
|
|
1778
|
+
property: T.items,
|
|
1770
1779
|
propertyName: A,
|
|
1771
1780
|
parentCollection: t(i),
|
|
1772
1781
|
parentPropertyName: _.parentPropertyName,
|
|
1773
1782
|
columns: ((nt = (tt = (et = _.layout) == null ? void 0 : et.fields) == null ? void 0 : tt[A]) == null ? void 0 : nt.optionsColumns) || ((lt = (at = (ot = _.layout) == null ? void 0 : ot.fields) == null ? void 0 : at.$default) == null ? void 0 : lt.optionsColumns),
|
|
1774
1783
|
validationErrors: ne(A, Oe),
|
|
1775
|
-
...
|
|
1784
|
+
...T.componentProps || {}
|
|
1776
1785
|
}, {
|
|
1777
1786
|
onInput: (we) => a("input", A),
|
|
1778
1787
|
onChange: E[3] || (E[3] = (we) => a("change", we))
|
|
@@ -1787,17 +1796,18 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u
|
|
|
1787
1796
|
])
|
|
1788
1797
|
]);
|
|
1789
1798
|
}), 128))
|
|
1790
|
-
])) : _.modelValue ? Z((n(), $(ye(t(it)(
|
|
1799
|
+
])) : _.modelValue ? Z((n(), $(ye(t(it)(T, t(v))), D({
|
|
1791
1800
|
key: 6,
|
|
1792
1801
|
modelValue: _.modelValue[A],
|
|
1793
|
-
"onUpdate:modelValue": (P) => _.modelValue[A] = P
|
|
1802
|
+
"onUpdate:modelValue": (P) => _.modelValue[A] = P,
|
|
1803
|
+
ref_for: !0
|
|
1794
1804
|
}, {
|
|
1795
|
-
property:
|
|
1805
|
+
property: T,
|
|
1796
1806
|
propertyName: A,
|
|
1797
1807
|
parentPropertyName: _.parentPropertyName,
|
|
1798
1808
|
parentCollection: t(i),
|
|
1799
1809
|
columns: ((Ke = (Je = (Ye = _.layout) == null ? void 0 : Ye.fields) == null ? void 0 : Je[A]) == null ? void 0 : Ke.optionsColumns) || ((Ne = (Pe = (Ze = _.layout) == null ? void 0 : Ze.fields) == null ? void 0 : Pe.$default) == null ? void 0 : Ne.optionsColumns),
|
|
1800
|
-
...
|
|
1810
|
+
...T.componentProps || {},
|
|
1801
1811
|
validationErrors: ne(A)
|
|
1802
1812
|
}, {
|
|
1803
1813
|
onInput: (P) => a("input", A),
|
|
@@ -1814,7 +1824,7 @@ const Ro = /* @__PURE__ */ X(Lo, [["__scopeId", "data-v-d9d768a1"]]), it = (c, u
|
|
|
1814
1824
|
])),
|
|
1815
1825
|
_.$slots.after ? C(_.$slots, "after", { key: 2 }, void 0, !0) : f("", !0),
|
|
1816
1826
|
_.$slots.footer ? (n(), s("div", Zo, [
|
|
1817
|
-
C(_.$slots, "footer",
|
|
1827
|
+
C(_.$slots, "footer", ce(Ve({
|
|
1818
1828
|
isInsertReady: ee.value
|
|
1819
1829
|
})), void 0, !0)
|
|
1820
1830
|
])) : f("", !0)
|
|
@@ -1826,9 +1836,9 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
1826
1836
|
__name: "aeria-filter-panel",
|
|
1827
1837
|
emits: ["update:modelValue"],
|
|
1828
1838
|
setup(c, { emit: u }) {
|
|
1829
|
-
const e = u, a =
|
|
1839
|
+
const e = u, a = be(), l = Le(), i = () => {
|
|
1830
1840
|
a.pagination.offset = 0, a.$actions.filter(), e("update:modelValue", !1), l.push({
|
|
1831
|
-
query:
|
|
1841
|
+
query: Rt(a)
|
|
1832
1842
|
});
|
|
1833
1843
|
};
|
|
1834
1844
|
return (r, y) => (n(), $(Ae, {
|
|
@@ -1839,7 +1849,7 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
1839
1849
|
onOverlayClick: y[3] || (y[3] = (p) => e("update:modelValue", !1))
|
|
1840
1850
|
}, {
|
|
1841
1851
|
footer: m(() => [
|
|
1842
|
-
t(a).filtersCount > 0 ? (n(), $(
|
|
1852
|
+
t(a).filtersCount > 0 ? (n(), $(ie, {
|
|
1843
1853
|
key: 0,
|
|
1844
1854
|
variant: "transparent",
|
|
1845
1855
|
onClick: y[1] || (y[1] = (p) => {
|
|
@@ -1847,30 +1857,30 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
1847
1857
|
})
|
|
1848
1858
|
}, {
|
|
1849
1859
|
default: m(() => [
|
|
1850
|
-
|
|
1860
|
+
G(g(r.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1851
1861
|
F($e, null, {
|
|
1852
1862
|
default: m(() => [
|
|
1853
|
-
|
|
1863
|
+
G(g(t(a).filtersCount), 1)
|
|
1854
1864
|
]),
|
|
1855
1865
|
_: 1
|
|
1856
1866
|
})
|
|
1857
1867
|
]),
|
|
1858
1868
|
_: 1
|
|
1859
1869
|
})) : f("", !0),
|
|
1860
|
-
F(
|
|
1870
|
+
F(ie, {
|
|
1861
1871
|
large: "",
|
|
1862
1872
|
icon: "funnel",
|
|
1863
1873
|
disabled: !t(a).hasActiveFilters,
|
|
1864
1874
|
onClick: i
|
|
1865
1875
|
}, {
|
|
1866
1876
|
default: m(() => [
|
|
1867
|
-
|
|
1877
|
+
G(g(r.t("action.filter", { capitalize: !0 })), 1)
|
|
1868
1878
|
]),
|
|
1869
1879
|
_: 1
|
|
1870
1880
|
}, 8, ["disabled"])
|
|
1871
1881
|
]),
|
|
1872
1882
|
default: m(() => [
|
|
1873
|
-
F(He,
|
|
1883
|
+
F(He, D({
|
|
1874
1884
|
modelValue: t(a).filters,
|
|
1875
1885
|
"onUpdate:modelValue": y[0] || (y[0] = (p) => t(a).filters = p)
|
|
1876
1886
|
}, {
|
|
@@ -1882,34 +1892,34 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
1882
1892
|
_: 1
|
|
1883
1893
|
}, 8, ["title"]));
|
|
1884
1894
|
}
|
|
1885
|
-
}),
|
|
1895
|
+
}), se = Y(!1), rt = Y(!1), ke = Y(!1), Be = Y((...c) => null), ut = Y(), ct = !1, xo = /* @__PURE__ */ U({
|
|
1886
1896
|
__name: "aeria-insert-panel",
|
|
1887
1897
|
setup(c) {
|
|
1888
|
-
const u =
|
|
1898
|
+
const u = ue("meta"), e = ue(u.view.collection), a = fe("individualActions", []), l = async () => {
|
|
1889
1899
|
const y = await e.$actions.deepInsert();
|
|
1890
|
-
|
|
1891
|
-
}, { t: i } =
|
|
1900
|
+
yt(y) || (se.value = !1);
|
|
1901
|
+
}, { t: i } = Bt(), r = () => {
|
|
1892
1902
|
u.$actions.ask({
|
|
1893
1903
|
action: () => {
|
|
1894
|
-
e.$actions.clearItem(), e.validationErrors = {},
|
|
1904
|
+
e.$actions.clearItem(), e.validationErrors = {}, se.value = !1;
|
|
1895
1905
|
},
|
|
1896
1906
|
body: i("prompt.close_panel")
|
|
1897
1907
|
});
|
|
1898
1908
|
};
|
|
1899
|
-
return
|
|
1900
|
-
y === null && (
|
|
1909
|
+
return re(() => e.item._id, (y) => {
|
|
1910
|
+
y === null && (se.value = !1);
|
|
1901
1911
|
}), (y, p) => {
|
|
1902
1912
|
const h = N("clickable");
|
|
1903
1913
|
return n(), $(Ae, {
|
|
1904
|
-
modelValue: t(
|
|
1905
|
-
"onUpdate:modelValue": p[3] || (p[3] = (d) => mt(
|
|
1914
|
+
modelValue: t(se),
|
|
1915
|
+
"onUpdate:modelValue": p[3] || (p[3] = (d) => mt(se) ? se.value = d : null),
|
|
1906
1916
|
"fixed-right": "",
|
|
1907
1917
|
loading: t(e).loading.get,
|
|
1908
1918
|
onOverlayClick: r
|
|
1909
1919
|
}, {
|
|
1910
1920
|
header: m(() => [
|
|
1911
1921
|
k("span", null, g((() => {
|
|
1912
|
-
switch (t(
|
|
1922
|
+
switch (t(se)) {
|
|
1913
1923
|
case "add":
|
|
1914
1924
|
return t(i)("action.add", { capitalize: !0 });
|
|
1915
1925
|
case "duplicate":
|
|
@@ -1922,11 +1932,11 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
1922
1932
|
k("span", null, " " + g(t(i)(t(u).view.collection)), 1)
|
|
1923
1933
|
]),
|
|
1924
1934
|
extra: m(() => [
|
|
1925
|
-
F(Ce,
|
|
1935
|
+
F(Ce, D({
|
|
1926
1936
|
subject: t(e).item,
|
|
1927
1937
|
actions: t(a).filter(({ action: d }) => d !== "ui/spawnEdit")
|
|
1928
1938
|
}, {
|
|
1929
|
-
onActionClick: p[2] || (p[2] = (d) =>
|
|
1939
|
+
onActionClick: p[2] || (p[2] = (d) => se.value = !1)
|
|
1930
1940
|
}), {
|
|
1931
1941
|
default: m(() => [
|
|
1932
1942
|
t(e).item._id ? Z((n(), $(K, {
|
|
@@ -1941,29 +1951,29 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
1941
1951
|
}, 16)
|
|
1942
1952
|
]),
|
|
1943
1953
|
footer: m(() => [
|
|
1944
|
-
F(
|
|
1954
|
+
F(ie, {
|
|
1945
1955
|
variant: "transparent",
|
|
1946
1956
|
onClick: r
|
|
1947
1957
|
}, {
|
|
1948
1958
|
default: m(() => [
|
|
1949
|
-
|
|
1959
|
+
G(g(t(i)("action.cancel", { capitalize: !0 })), 1)
|
|
1950
1960
|
]),
|
|
1951
1961
|
_: 1
|
|
1952
1962
|
}),
|
|
1953
|
-
F(
|
|
1963
|
+
F(ie, {
|
|
1954
1964
|
large: "",
|
|
1955
1965
|
disabled: !t(e).isInsertReady || ct || t(e).loading.get,
|
|
1956
1966
|
loading: t(e).loading.insert,
|
|
1957
1967
|
onClick: l
|
|
1958
1968
|
}, {
|
|
1959
1969
|
default: m(() => [
|
|
1960
|
-
|
|
1970
|
+
G(g(t(i)("action.insert", { capitalize: !0 })), 1)
|
|
1961
1971
|
]),
|
|
1962
1972
|
_: 1
|
|
1963
1973
|
}, 8, ["disabled", "loading"])
|
|
1964
1974
|
]),
|
|
1965
1975
|
default: m(() => [
|
|
1966
|
-
F(He,
|
|
1976
|
+
F(He, D({
|
|
1967
1977
|
modelValue: t(e).item,
|
|
1968
1978
|
"onUpdate:modelValue": p[0] || (p[0] = (d) => t(e).item = d)
|
|
1969
1979
|
}, {
|
|
@@ -1978,7 +1988,7 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
1978
1988
|
H(Object.keys(y.$slots).filter((d) => d.startsWith("field-")), (d) => ({
|
|
1979
1989
|
name: d,
|
|
1980
1990
|
fn: m((o) => [
|
|
1981
|
-
C(y.$slots, d,
|
|
1991
|
+
C(y.$slots, d, ce(Ve(o)))
|
|
1982
1992
|
])
|
|
1983
1993
|
}))
|
|
1984
1994
|
]), 1040, ["modelValue"])
|
|
@@ -1987,7 +1997,7 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
1987
1997
|
}, 8, ["modelValue", "loading"]);
|
|
1988
1998
|
};
|
|
1989
1999
|
}
|
|
1990
|
-
}),
|
|
2000
|
+
}), $t = (c, u) => {
|
|
1991
2001
|
if (u) {
|
|
1992
2002
|
if (!c) {
|
|
1993
2003
|
u.filtersPreset = {}, u.preferredTableProperties = [], u.pagination.offset = 0;
|
|
@@ -1999,11 +2009,11 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
1999
2009
|
persistInQuery: !0
|
|
2000
2010
|
}) => {
|
|
2001
2011
|
const a = Le().currentRoute;
|
|
2002
|
-
return
|
|
2012
|
+
return re(() => a.value.query.section, (l) => {
|
|
2003
2013
|
if (c) {
|
|
2004
2014
|
if (c.description.filtersPresets) {
|
|
2005
2015
|
const i = l || Object.keys(c.description.filtersPresets)[0];
|
|
2006
|
-
|
|
2016
|
+
$t(c.description.filtersPresets[i], c);
|
|
2007
2017
|
}
|
|
2008
2018
|
if (u.persistInQuery) {
|
|
2009
2019
|
const i = a.value.query;
|
|
@@ -2016,7 +2026,7 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2016
2026
|
}, {
|
|
2017
2027
|
immediate: !0
|
|
2018
2028
|
});
|
|
2019
|
-
}, ta = (c) => (Me("data-v-
|
|
2029
|
+
}, ta = (c) => (Me("data-v-b6b6dff5"), c = c(), qe(), c), na = {
|
|
2020
2030
|
key: 0,
|
|
2021
2031
|
class: "table aeria-surface"
|
|
2022
2032
|
}, oa = { key: 0 }, aa = { key: 1 }, la = { key: 0 }, sa = ["checked"], ia = {
|
|
@@ -2050,7 +2060,7 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2050
2060
|
},
|
|
2051
2061
|
emits: ["itemClick"],
|
|
2052
2062
|
setup(c, { emit: u }) {
|
|
2053
|
-
const e = c, a = u, l = je(), i = e.collection || Te(), r = i ?
|
|
2063
|
+
const e = c, a = u, l = je(), i = e.collection || Te(), r = i ? ue(typeof i == "string" ? i : i.value) : null, y = Q({
|
|
2054
2064
|
get: () => r == null ? void 0 : r.selected,
|
|
2055
2065
|
set: (v) => r == null ? void 0 : r.$actions.selectManyItems(v, !0)
|
|
2056
2066
|
}), p = (v, b) => v != null && v.button ? typeof v.button == "object" ? Qe(b, v.button).satisfied : v.button : !1, h = (v) => {
|
|
@@ -2066,15 +2076,15 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2066
2076
|
return !p(R, v);
|
|
2067
2077
|
}) : [];
|
|
2068
2078
|
}, o = (v, b) => {
|
|
2069
|
-
var
|
|
2070
|
-
const V = [], R = (q = (
|
|
2079
|
+
var j, q;
|
|
2080
|
+
const V = [], R = (q = (j = e.layout) == null ? void 0 : j.actions) == null ? void 0 : q[b.action];
|
|
2071
2081
|
return R != null && R.if && (Qe(
|
|
2072
2082
|
v,
|
|
2073
2083
|
R.if
|
|
2074
2084
|
).satisfied || V.push("display: none;")), V.join("");
|
|
2075
2085
|
};
|
|
2076
2086
|
return (v, b) => {
|
|
2077
|
-
var R,
|
|
2087
|
+
var R, j, q;
|
|
2078
2088
|
const V = N("clickable");
|
|
2079
2089
|
return v.columns && Object.keys(v.columns).length > 0 || v.$slots.thead ? (n(), s("table", na, [
|
|
2080
2090
|
v.$slots.thead ? (n(), s("thead", oa, [
|
|
@@ -2110,7 +2120,7 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2110
2120
|
type: "checkbox",
|
|
2111
2121
|
value: w._id
|
|
2112
2122
|
}, null, 8, pa), [
|
|
2113
|
-
[
|
|
2123
|
+
[Vt, y.value]
|
|
2114
2124
|
])
|
|
2115
2125
|
])) : f("", !0),
|
|
2116
2126
|
(n(!0), s(J, null, H(Object.entries(v.columns), ([S, x], O) => {
|
|
@@ -2120,12 +2130,12 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2120
2130
|
}, [
|
|
2121
2131
|
k("div", _a, g(x.description || t(M)(S)), 1),
|
|
2122
2132
|
`row-${S}` in v.$slots ? (n(), s("div", ma, [
|
|
2123
|
-
C(v.$slots, `row-${S}`,
|
|
2133
|
+
C(v.$slots, `row-${S}`, D({ ref_for: !0 }, {
|
|
2124
2134
|
store: t(r),
|
|
2125
2135
|
column: S,
|
|
2126
2136
|
property: x,
|
|
2127
2137
|
row: w
|
|
2128
|
-
})
|
|
2138
|
+
}), void 0, !0)
|
|
2129
2139
|
])) : (n(), s("div", fa, [
|
|
2130
2140
|
k("div", va, [
|
|
2131
2141
|
"type" in x && x.type === "boolean" ? (n(), s("div", ya, [
|
|
@@ -2135,7 +2145,7 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2135
2145
|
"icon-classes": "aeria-blueish"
|
|
2136
2146
|
}, {
|
|
2137
2147
|
default: m(() => [
|
|
2138
|
-
|
|
2148
|
+
G(g(t(M)("yes")), 1)
|
|
2139
2149
|
]),
|
|
2140
2150
|
_: 1
|
|
2141
2151
|
})) : (n(), $(K, {
|
|
@@ -2144,12 +2154,12 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2144
2154
|
"icon-classes": "aeria-redish"
|
|
2145
2155
|
}, {
|
|
2146
2156
|
default: m(() => [
|
|
2147
|
-
|
|
2157
|
+
G(g(t(M)("no")), 1)
|
|
2148
2158
|
]),
|
|
2149
2159
|
_: 1
|
|
2150
2160
|
}))
|
|
2151
2161
|
])) : ((z = t(pe)(x)) == null ? void 0 : z.$ref) === "file" ? (n(), s("div", ha, [
|
|
2152
|
-
/^image/.test((ee = w[S][0]) == null ? void 0 : ee.
|
|
2162
|
+
/^image/.test((ee = w[S][0]) == null ? void 0 : ee.type) && "items" in x ? (n(), $(Fe, {
|
|
2153
2163
|
key: 0,
|
|
2154
2164
|
modelValue: w[S][0].link,
|
|
2155
2165
|
"onUpdate:modelValue": (L) => w[S][0].link = L,
|
|
@@ -2157,7 +2167,7 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2157
2167
|
meta: w[S][0],
|
|
2158
2168
|
alt: "Row image",
|
|
2159
2169
|
class: "table__picture"
|
|
2160
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((ne = w[S]) == null ? void 0 : ne.
|
|
2170
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test((ne = w[S]) == null ? void 0 : ne.type) ? (n(), $(Fe, {
|
|
2161
2171
|
key: 1,
|
|
2162
2172
|
modelValue: w[S].link,
|
|
2163
2173
|
"onUpdate:modelValue": (L) => w[S].link = L,
|
|
@@ -2194,7 +2204,7 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2194
2204
|
}), 128)),
|
|
2195
2205
|
(le = v.actions) != null && le.length && t(l).md ? (n(), s("td", Ia, [
|
|
2196
2206
|
k("div", Aa, [
|
|
2197
|
-
(n(!0), s(J, null, H(h(w), (S) => (n(), $(
|
|
2207
|
+
(n(!0), s(J, null, H(h(w), (S) => (n(), $(ie, {
|
|
2198
2208
|
key: `action-${S.action}`,
|
|
2199
2209
|
small: "",
|
|
2200
2210
|
variant: "transparent",
|
|
@@ -2203,14 +2213,17 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2203
2213
|
onClick: (x) => S.click(w)
|
|
2204
2214
|
}, {
|
|
2205
2215
|
default: m(() => [
|
|
2206
|
-
|
|
2216
|
+
G(g(t(M)(S.name)), 1)
|
|
2207
2217
|
]),
|
|
2208
2218
|
_: 2
|
|
2209
2219
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2210
|
-
d(w).length > 0 ? (n(), $(Ce,
|
|
2220
|
+
d(w).length > 0 ? (n(), $(Ce, D({
|
|
2221
|
+
key: 0,
|
|
2222
|
+
ref_for: !0
|
|
2223
|
+
}, {
|
|
2211
2224
|
subject: w,
|
|
2212
2225
|
actions: d(w)
|
|
2213
|
-
})
|
|
2226
|
+
}), {
|
|
2214
2227
|
default: m(() => [
|
|
2215
2228
|
Z(F(K, {
|
|
2216
2229
|
reactive: "",
|
|
@@ -2237,17 +2250,20 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2237
2250
|
icon: S.icon || "gear"
|
|
2238
2251
|
}, {
|
|
2239
2252
|
default: m(() => [
|
|
2240
|
-
|
|
2253
|
+
G(g(t(M)(S.name)), 1)
|
|
2241
2254
|
]),
|
|
2242
2255
|
_: 2
|
|
2243
2256
|
}, 1032, ["icon"])
|
|
2244
2257
|
]),
|
|
2245
2258
|
_: 2
|
|
2246
2259
|
}, 1032, ["onClick"]))), 128)),
|
|
2247
|
-
d(w).length > 0 ? (n(), $(Ce,
|
|
2260
|
+
d(w).length > 0 ? (n(), $(Ce, D({
|
|
2261
|
+
key: 0,
|
|
2262
|
+
ref_for: !0
|
|
2263
|
+
}, {
|
|
2248
2264
|
subject: w,
|
|
2249
2265
|
actions: d(w)
|
|
2250
|
-
})
|
|
2266
|
+
}), {
|
|
2251
2267
|
default: m(() => [
|
|
2252
2268
|
F(K, {
|
|
2253
2269
|
icon: "dots-three",
|
|
@@ -2265,13 +2281,13 @@ const He = /* @__PURE__ */ X(Po, [["__scopeId", "data-v-1960a932"]]), No = /* @_
|
|
|
2265
2281
|
}), 128))
|
|
2266
2282
|
])),
|
|
2267
2283
|
k("tfoot", null, [
|
|
2268
|
-
v.$slots.tfoot ? C(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((
|
|
2284
|
+
v.$slots.tfoot ? C(v.$slots, "tfoot", { key: 0 }, void 0, !0) : v.columns && !((j = v.rows) != null && j.length) && !((q = t(r)) != null && q.loading.getAll) ? (n(), s("tr", Ba, ja)) : f("", !0)
|
|
2269
2285
|
])
|
|
2270
2286
|
])) : f("", !0);
|
|
2271
2287
|
};
|
|
2272
2288
|
}
|
|
2273
2289
|
});
|
|
2274
|
-
const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-
|
|
2290
|
+
const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-b6b6dff5"]]), Ra = /* @__PURE__ */ U({
|
|
2275
2291
|
__name: "aeria-tabular",
|
|
2276
2292
|
props: {
|
|
2277
2293
|
individualActions: {},
|
|
@@ -2279,7 +2295,7 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-51392b44"]]), Ra = /* @_
|
|
|
2279
2295
|
componentProps: {}
|
|
2280
2296
|
},
|
|
2281
2297
|
setup(c) {
|
|
2282
|
-
const u = c, e =
|
|
2298
|
+
const u = c, e = be(), a = Te(), l = Q(() => {
|
|
2283
2299
|
const i = {
|
|
2284
2300
|
collection: a,
|
|
2285
2301
|
checkbox: e.hasSelectionActions,
|
|
@@ -2292,13 +2308,13 @@ const La = /* @__PURE__ */ X(Ta, [["__scopeId", "data-v-51392b44"]]), Ra = /* @_
|
|
|
2292
2308
|
});
|
|
2293
2309
|
return (i, r) => (n(), s("div", null, [
|
|
2294
2310
|
i.$slots.inner ? C(i.$slots, "inner", { key: 0 }) : f("", !0),
|
|
2295
|
-
t(e).properties ? (n(), $(La,
|
|
2311
|
+
t(e).properties ? (n(), $(La, D({ key: 1 }, l.value, {
|
|
2296
2312
|
key: t(e).$id
|
|
2297
2313
|
}), de({ _: 2 }, [
|
|
2298
2314
|
H(Object.keys(i.$slots).filter((y) => !["inner"].includes(y)), (y) => ({
|
|
2299
2315
|
name: y,
|
|
2300
2316
|
fn: m((p) => [
|
|
2301
|
-
C(i.$slots, y,
|
|
2317
|
+
C(i.$slots, y, ce(Ve(p)))
|
|
2302
2318
|
])
|
|
2303
2319
|
}))
|
|
2304
2320
|
]), 1040)) : f("", !0)
|
|
@@ -2332,7 +2348,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2332
2348
|
componentName: {}
|
|
2333
2349
|
},
|
|
2334
2350
|
setup(c) {
|
|
2335
|
-
const e = c.layoutOptions, a =
|
|
2351
|
+
const e = c.layoutOptions, a = be(), l = (i) => Array.isArray(i) ? i[0] : i;
|
|
2336
2352
|
return (i, r) => {
|
|
2337
2353
|
const y = N("clickable");
|
|
2338
2354
|
return n(), $(Fa, {
|
|
@@ -2349,10 +2365,13 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2349
2365
|
t(e).information ? (n(), s("div", qa, g(p[t(e).information]), 1)) : f("", !0)
|
|
2350
2366
|
]),
|
|
2351
2367
|
actions: m(() => [
|
|
2352
|
-
i.individualActions.length > 0 ? (n(), $(Ce,
|
|
2368
|
+
i.individualActions.length > 0 ? (n(), $(Ce, D({
|
|
2369
|
+
key: 0,
|
|
2370
|
+
ref_for: !0
|
|
2371
|
+
}, {
|
|
2353
2372
|
subject: p,
|
|
2354
2373
|
actions: i.individualActions
|
|
2355
|
-
})
|
|
2374
|
+
}), {
|
|
2356
2375
|
default: m(() => [
|
|
2357
2376
|
Z(F(K, {
|
|
2358
2377
|
reactive: "",
|
|
@@ -2385,7 +2404,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2385
2404
|
large: ""
|
|
2386
2405
|
}, {
|
|
2387
2406
|
default: m(() => [
|
|
2388
|
-
|
|
2407
|
+
G(g(t(e).translateBadge ? t(M)(h) : h), 1)
|
|
2389
2408
|
]),
|
|
2390
2409
|
_: 2
|
|
2391
2410
|
}, 1024))), 128))
|
|
@@ -2396,7 +2415,7 @@ const Fa = /* @__PURE__ */ X(za, [["__scopeId", "data-v-438c4aed"]]), Ma = { key
|
|
|
2396
2415
|
fn: m(() => [
|
|
2397
2416
|
F($e, null, {
|
|
2398
2417
|
default: m(() => [
|
|
2399
|
-
|
|
2418
|
+
G(g(t(e).translateBadge ? t(M)(p[t(e).badge]) : p[t(e)[i.badge]]), 1)
|
|
2400
2419
|
]),
|
|
2401
2420
|
_: 2
|
|
2402
2421
|
}, 1024)
|
|
@@ -2441,19 +2460,19 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2441
2460
|
setup(c, { emit: u }) {
|
|
2442
2461
|
const e = c, a = u, l = Le(), i = vt({
|
|
2443
2462
|
delay: 600
|
|
2444
|
-
}), r =
|
|
2463
|
+
}), r = ue("meta"), y = je(), { reachedEnd: p, detach: h } = We(null, {
|
|
2445
2464
|
antecipate: 600
|
|
2446
2465
|
}), d = !y.value.md || e.scrollPagination;
|
|
2447
|
-
d &&
|
|
2448
|
-
O && o.pagination.recordsTotal > o.items.length && V.value < pt && (V.value += 1,
|
|
2466
|
+
d && re(p, (O) => {
|
|
2467
|
+
O && o.pagination.recordsTotal > o.items.length && V.value < pt && (V.value += 1, j());
|
|
2449
2468
|
});
|
|
2450
|
-
const o =
|
|
2469
|
+
const o = ue(e.collection);
|
|
2451
2470
|
ea(o, {
|
|
2452
2471
|
persistInQuery: !e.noQueryPersistence
|
|
2453
2472
|
});
|
|
2454
|
-
const v =
|
|
2473
|
+
const v = qt(), b = e.action ? t(e.action) : zt(o, l, v);
|
|
2455
2474
|
Be.value = b[0], ut.value = b[1];
|
|
2456
|
-
const V = Y(0), R = Y(!1),
|
|
2475
|
+
const V = Y(0), R = Y(!1), j = async (O) => {
|
|
2457
2476
|
o.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || o.$filters), Object.assign(o.activeFilters, o.filtersPreset);
|
|
2458
2477
|
const z = {
|
|
2459
2478
|
filters: o.activeFilters,
|
|
@@ -2471,9 +2490,9 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2471
2490
|
offset: O.offset,
|
|
2472
2491
|
limit: O.limit
|
|
2473
2492
|
}
|
|
2474
|
-
}), o.pagination.offset = O.offset, o.pagination.limit = O.limit,
|
|
2493
|
+
}), o.pagination.offset = O.offset, o.pagination.limit = O.limit, j();
|
|
2475
2494
|
}, w = fe("noResultsComponent", null);
|
|
2476
|
-
|
|
2495
|
+
re(() => [
|
|
2477
2496
|
l.currentRoute.value.path,
|
|
2478
2497
|
l.currentRoute.value.query.section
|
|
2479
2498
|
], async (O, z) => {
|
|
@@ -2481,8 +2500,8 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2481
2500
|
return;
|
|
2482
2501
|
const ee = l.currentRoute.value;
|
|
2483
2502
|
if (r.view.title = e.collection, r.view.collection = e.collection, rt.value = !1, !e.noFetch && !ee.query._popstate) {
|
|
2484
|
-
const ne =
|
|
2485
|
-
Object.keys(ne).length > 0 && Object.assign(o.filters, ne), await
|
|
2503
|
+
const ne = Ft(o, ee);
|
|
2504
|
+
Object.keys(ne).length > 0 && Object.assign(o.filters, ne), await j();
|
|
2486
2505
|
}
|
|
2487
2506
|
}, {
|
|
2488
2507
|
immediate: !0,
|
|
@@ -2497,18 +2516,18 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2497
2516
|
$search: `"${O}"`,
|
|
2498
2517
|
$caseSensitive: !1
|
|
2499
2518
|
}
|
|
2500
|
-
}),
|
|
2519
|
+
}), j({
|
|
2501
2520
|
offset: 0
|
|
2502
|
-
})) : (o.filters = Se(o.freshFilters), V.value = 0,
|
|
2503
|
-
|
|
2521
|
+
})) : (o.filters = Se(o.freshFilters), V.value = 0, j())));
|
|
2522
|
+
re(() => o.textQuery, (O) => {
|
|
2504
2523
|
le(O);
|
|
2505
2524
|
});
|
|
2506
2525
|
const oe = (O) => {
|
|
2507
2526
|
O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
|
|
2508
2527
|
};
|
|
2509
|
-
|
|
2528
|
+
Ct(() => {
|
|
2510
2529
|
o.$actions.clearFilters(), o.textQuery = "", h();
|
|
2511
|
-
}),
|
|
2530
|
+
}), re(() => ut.value, async (O) => {
|
|
2512
2531
|
var ne;
|
|
2513
2532
|
const z = Se(O);
|
|
2514
2533
|
let ee;
|
|
@@ -2524,11 +2543,11 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2524
2543
|
})), z.name === "spawnAdd")
|
|
2525
2544
|
o.$actions.clearItem(), (ne = z.params) != null && ne.item && (o.$actions.setItem(z.params.item), Object.keys(z.params.item).forEach((_) => {
|
|
2526
2545
|
delete o.referenceItem[_];
|
|
2527
|
-
})),
|
|
2546
|
+
})), se.value = "add";
|
|
2528
2547
|
else if (z.name === "spawnEdit")
|
|
2529
|
-
o.$actions.setItem(z.params),
|
|
2548
|
+
o.$actions.setItem(z.params), se.value = "edit";
|
|
2530
2549
|
else if (z.name === "spawnView")
|
|
2531
|
-
rt.value = !0,
|
|
2550
|
+
rt.value = !0, se.value = "view";
|
|
2532
2551
|
else if (z.name === "duplicate") {
|
|
2533
2552
|
await ee;
|
|
2534
2553
|
const _ = Object.entries(o.item).reduce((E, [I, L]) => {
|
|
@@ -2540,7 +2559,7 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2540
2559
|
const A = o.properties[I];
|
|
2541
2560
|
if (A.readOnly)
|
|
2542
2561
|
return E;
|
|
2543
|
-
const
|
|
2562
|
+
const T = (te) => {
|
|
2544
2563
|
const B = pe(A);
|
|
2545
2564
|
if (!B)
|
|
2546
2565
|
return te;
|
|
@@ -2552,43 +2571,43 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2552
2571
|
}
|
|
2553
2572
|
return te;
|
|
2554
2573
|
};
|
|
2555
|
-
return L = Array.isArray(L) ? L.map(
|
|
2574
|
+
return L = Array.isArray(L) ? L.map(T) : T(L), {
|
|
2556
2575
|
...E,
|
|
2557
2576
|
[I]: L
|
|
2558
2577
|
};
|
|
2559
2578
|
}, {});
|
|
2560
|
-
o.$actions.setItem(_), delete o.item._id, o.referenceItem = {},
|
|
2579
|
+
o.$actions.setItem(_), delete o.item._id, o.referenceItem = {}, se.value = "duplicate";
|
|
2561
2580
|
} else
|
|
2562
2581
|
a("uiEvent", z);
|
|
2563
2582
|
}, {
|
|
2564
2583
|
deep: !0
|
|
2565
|
-
}),
|
|
2584
|
+
}), re(() => se, (O) => {
|
|
2566
2585
|
O.value === !1 && (r.view.collection = e.collection, o.$actions.clearItem());
|
|
2567
2586
|
});
|
|
2568
|
-
const S =
|
|
2587
|
+
const S = Q(() => o.individualActions.map((O) => ({
|
|
2569
2588
|
click: Be.value(O),
|
|
2570
2589
|
...O
|
|
2571
|
-
}))), x =
|
|
2572
|
-
return ve(Ue,
|
|
2573
|
-
var _, E, I, L, A,
|
|
2590
|
+
}))), x = Q(() => o.actions.filter((O) => !O.button));
|
|
2591
|
+
return ve(Ue, Q(() => e.collection)), ve("individualActions", S), (O, z) => {
|
|
2592
|
+
var _, E, I, L, A, T, te;
|
|
2574
2593
|
const ee = N("clickable"), ne = N("loading");
|
|
2575
2594
|
return n(), s(J, null, [
|
|
2576
|
-
t(
|
|
2595
|
+
t(ke) ? (n(), $(No, {
|
|
2577
2596
|
key: t(o).$id,
|
|
2578
|
-
modelValue: t(
|
|
2579
|
-
"onUpdate:modelValue": z[0] || (z[0] = (B) => mt(
|
|
2597
|
+
modelValue: t(ke),
|
|
2598
|
+
"onUpdate:modelValue": z[0] || (z[0] = (B) => mt(ke) ? ke.value = B : null)
|
|
2580
2599
|
}, null, 8, ["modelValue"])) : f("", !0),
|
|
2581
|
-
t(
|
|
2600
|
+
t(se) ? (n(), $(xo, { key: 1 }, de({ _: 2 }, [
|
|
2582
2601
|
H(Object.keys(O.$slots).filter((B) => B.startsWith("field-")), (B) => ({
|
|
2583
2602
|
name: B,
|
|
2584
2603
|
fn: m((ae) => [
|
|
2585
|
-
C(O.$slots, B,
|
|
2604
|
+
C(O.$slots, B, ce(Ve(ae)), void 0, !0)
|
|
2586
2605
|
])
|
|
2587
2606
|
}))
|
|
2588
2607
|
]), 1024)) : f("", !0),
|
|
2589
2608
|
!O.noActions && (t(o).description.search || Object.keys(t(o).availableFilters).length > 0 || ((_ = t(o)) == null ? void 0 : _.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && t(o).description.layout && ((E = t(o).description.layout) == null ? void 0 : E.name) !== "tabular") ? (n(), s("div", Da, [
|
|
2590
2609
|
t(o).description.search ? (n(), s("div", Qa, [
|
|
2591
|
-
F(Ie,
|
|
2610
|
+
F(Ie, D({
|
|
2592
2611
|
modelValue: t(o).textQuery,
|
|
2593
2612
|
"onUpdate:modelValue": z[1] || (z[1] = (B) => t(o).textQuery = B)
|
|
2594
2613
|
}, {
|
|
@@ -2602,14 +2621,14 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2602
2621
|
k("div", Ga, [
|
|
2603
2622
|
x.value.length > 0 || !O.noLayoutToggle && t(o).description.layout && ((I = t(o).description.layout) == null ? void 0 : I.name) !== "tabular" ? (n(), $(Ce, { key: 0 }, de({
|
|
2604
2623
|
default: m(() => [
|
|
2605
|
-
F(
|
|
2624
|
+
F(ie, {
|
|
2606
2625
|
variant: "alt",
|
|
2607
2626
|
icon: "sliders"
|
|
2608
2627
|
}, {
|
|
2609
2628
|
default: m(() => [
|
|
2610
2629
|
t(o).filtersCount ? (n(), $($e, { key: 0 }, {
|
|
2611
2630
|
default: m(() => [
|
|
2612
|
-
|
|
2631
|
+
G(g(t(o).filtersCount), 1)
|
|
2613
2632
|
]),
|
|
2614
2633
|
_: 1
|
|
2615
2634
|
})) : f("", !0)
|
|
@@ -2624,10 +2643,10 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2624
2643
|
fn: m(() => [
|
|
2625
2644
|
Z((n(), $(K, {
|
|
2626
2645
|
icon: "funnel",
|
|
2627
|
-
onClick: z[2] || (z[2] = (B) =>
|
|
2646
|
+
onClick: z[2] || (z[2] = (B) => ke.value = !0)
|
|
2628
2647
|
}, {
|
|
2629
2648
|
default: m(() => [
|
|
2630
|
-
|
|
2649
|
+
G(g(t(M)("filters", { capitalize: !0 })), 1)
|
|
2631
2650
|
]),
|
|
2632
2651
|
_: 1
|
|
2633
2652
|
})), [
|
|
@@ -2636,7 +2655,7 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2636
2655
|
k("div", Wa, [
|
|
2637
2656
|
t(o).filtersCount ? (n(), $($e, { key: 0 }, {
|
|
2638
2657
|
default: m(() => [
|
|
2639
|
-
|
|
2658
|
+
G(g(t(o).filtersCount), 1)
|
|
2640
2659
|
]),
|
|
2641
2660
|
_: 1
|
|
2642
2661
|
})) : f("", !0)
|
|
@@ -2652,7 +2671,7 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2652
2671
|
onClick: z[3] || (z[3] = (B) => oe(t(o)))
|
|
2653
2672
|
}, {
|
|
2654
2673
|
default: m(() => [
|
|
2655
|
-
|
|
2674
|
+
G(g(t(M)("change_layout", { capitalize: !0 })), 1)
|
|
2656
2675
|
]),
|
|
2657
2676
|
_: 1
|
|
2658
2677
|
})), [
|
|
@@ -2668,40 +2687,40 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2668
2687
|
key: 0,
|
|
2669
2688
|
icon: B.icon || "gear",
|
|
2670
2689
|
disabled: t(o).selected.length === 0 && B.selection,
|
|
2671
|
-
onClick: (_e) => t(Be)(B)({ _id: t(o).selected.map((
|
|
2690
|
+
onClick: (_e) => t(Be)(B)({ _id: t(o).selected.map((ge) => ge._id) })
|
|
2672
2691
|
}, {
|
|
2673
2692
|
default: m(() => [
|
|
2674
|
-
|
|
2693
|
+
G(g(t(M)(B.name, { capitalize: !0 })), 1)
|
|
2675
2694
|
]),
|
|
2676
2695
|
_: 2
|
|
2677
2696
|
}, 1032, ["icon", "disabled", "onClick"])) : f("", !0)
|
|
2678
2697
|
])
|
|
2679
2698
|
}))
|
|
2680
|
-
]), 1024)) : Object.keys(t(o).availableFilters).length > 0 ? (n(), $(
|
|
2699
|
+
]), 1024)) : Object.keys(t(o).availableFilters).length > 0 ? (n(), $(ie, {
|
|
2681
2700
|
key: 1,
|
|
2682
2701
|
variant: "alt",
|
|
2683
2702
|
icon: "funnel",
|
|
2684
|
-
onClick: z[4] || (z[4] = (B) =>
|
|
2703
|
+
onClick: z[4] || (z[4] = (B) => ke.value = !0)
|
|
2685
2704
|
}, {
|
|
2686
2705
|
default: m(() => [
|
|
2687
2706
|
Xa,
|
|
2688
2707
|
t(o).filtersCount ? (n(), $($e, { key: 0 }, {
|
|
2689
2708
|
default: m(() => [
|
|
2690
|
-
|
|
2709
|
+
G(g(t(o).filtersCount), 1)
|
|
2691
2710
|
]),
|
|
2692
2711
|
_: 1
|
|
2693
2712
|
})) : f("", !0)
|
|
2694
2713
|
]),
|
|
2695
2714
|
_: 1
|
|
2696
2715
|
})) : f("", !0),
|
|
2697
|
-
(n(!0), s(J, null, H(t(o).actions.filter((B) => B.button), (B, ae) => (n(), $(
|
|
2716
|
+
(n(!0), s(J, null, H(t(o).actions.filter((B) => B.button), (B, ae) => (n(), $(ie, {
|
|
2698
2717
|
key: `action-${ae}`,
|
|
2699
2718
|
icon: B.icon,
|
|
2700
2719
|
disabled: t(o).selected.length === 0 && B.selection,
|
|
2701
|
-
onClick: (_e) => t(Be)(B)({ _id: t(o).selected.map((
|
|
2720
|
+
onClick: (_e) => t(Be)(B)({ _id: t(o).selected.map((ge) => ge._id) })
|
|
2702
2721
|
}, {
|
|
2703
2722
|
default: m(() => [
|
|
2704
|
-
|
|
2723
|
+
G(g(t(M)(B.name, { capitalize: !0 })), 1)
|
|
2705
2724
|
]),
|
|
2706
2725
|
_: 2
|
|
2707
2726
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
@@ -2710,11 +2729,11 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2710
2729
|
])) : f("", !0),
|
|
2711
2730
|
Z((n(), s("div", null, [
|
|
2712
2731
|
t(o).itemsCount === 0 && !t(o).loading.getAll && R.value && (t(w) || O.$slots.empty) ? (n(), s("div", Ya, [
|
|
2713
|
-
t(w) ? (n(), $(ye(t(w)),
|
|
2732
|
+
t(w) ? (n(), $(ye(t(w)), ce(D({ key: 0 }, {
|
|
2714
2733
|
collection: t(o).$id
|
|
2715
2734
|
})), {
|
|
2716
2735
|
default: m(() => [
|
|
2717
|
-
t(o).filtersCount === 0 && t(o).description.actions && "ui:spawnAdd" in t(o).description.actions ? (n(), $(
|
|
2736
|
+
t(o).filtersCount === 0 && t(o).description.actions && "ui:spawnAdd" in t(o).description.actions ? (n(), $(ie, {
|
|
2718
2737
|
key: 0,
|
|
2719
2738
|
icon: "plus",
|
|
2720
2739
|
onClick: z[5] || (z[5] = (B) => t(Be)({
|
|
@@ -2722,20 +2741,20 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2722
2741
|
})())
|
|
2723
2742
|
}, {
|
|
2724
2743
|
default: m(() => [
|
|
2725
|
-
|
|
2744
|
+
G(g(t(M)("add_first_item", { capitalize: !0 })), 1)
|
|
2726
2745
|
]),
|
|
2727
2746
|
_: 1
|
|
2728
2747
|
})) : f("", !0)
|
|
2729
2748
|
]),
|
|
2730
2749
|
_: 1
|
|
2731
|
-
}, 16)) : C(O.$slots, "empty",
|
|
2750
|
+
}, 16)) : C(O.$slots, "empty", ce(D({ key: 1 }, {
|
|
2732
2751
|
collection: t(o).$id
|
|
2733
2752
|
})), void 0, !0)
|
|
2734
|
-
])) : O.$slots.component ? C(O.$slots, "component",
|
|
2753
|
+
])) : O.$slots.component ? C(O.$slots, "component", ce(D({ key: 1 }, {
|
|
2735
2754
|
store: t(o)
|
|
2736
|
-
})), void 0, !0) : (n(), $(ye(t(Ea)(((A = O.layout) == null ? void 0 : A.name) || t(o).$currentLayout)),
|
|
2755
|
+
})), void 0, !0) : (n(), $(ye(t(Ea)(((A = O.layout) == null ? void 0 : A.name) || t(o).$currentLayout)), D({ key: 2 }, {
|
|
2737
2756
|
individualActions: S.value,
|
|
2738
|
-
layoutOptions: ((
|
|
2757
|
+
layoutOptions: ((T = O.layout) == null ? void 0 : T.options) || t(o).layout.options,
|
|
2739
2758
|
componentProps: O.componentProps
|
|
2740
2759
|
}, {
|
|
2741
2760
|
"component-name": ((te = O.layout) == null ? void 0 : te.name) || t(o).$currentLayout
|
|
@@ -2743,7 +2762,7 @@ const dt = /* @__PURE__ */ X(Ua, [["__scopeId", "data-v-71a3bd40"]]), Ea = (c) =
|
|
|
2743
2762
|
H(Object.keys(O.$slots).filter((B) => B.startsWith("row-")), (B) => ({
|
|
2744
2763
|
name: B,
|
|
2745
2764
|
fn: m((ae) => [
|
|
2746
|
-
C(O.$slots, B,
|
|
2765
|
+
C(O.$slots, B, ce(Ve(ae)), void 0, !0)
|
|
2747
2766
|
])
|
|
2748
2767
|
})),
|
|
2749
2768
|
O.$slots.tfoot ? {
|
|
@@ -2774,7 +2793,7 @@ const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-9c163d4e"]]), Za = { cla
|
|
|
2774
2793
|
actions: {}
|
|
2775
2794
|
},
|
|
2776
2795
|
setup(c) {
|
|
2777
|
-
const u =
|
|
2796
|
+
const u = ue("meta"), e = (a) => {
|
|
2778
2797
|
u.$actions.fulfillPrompt(a);
|
|
2779
2798
|
};
|
|
2780
2799
|
return (a, l) => (n(), $(Ae, {
|
|
@@ -2797,7 +2816,7 @@ const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-9c163d4e"]]), Za = { cla
|
|
|
2797
2816
|
onClick: (y) => i.click ? i.click(i) : e(i)
|
|
2798
2817
|
}, {
|
|
2799
2818
|
default: m(() => [
|
|
2800
|
-
|
|
2819
|
+
G(g(i.title || i.name), 1)
|
|
2801
2820
|
]),
|
|
2802
2821
|
_: 2
|
|
2803
2822
|
}, 1032, ["class", "onClick"]))), 128))
|
|
@@ -2813,7 +2832,7 @@ const jl = /* @__PURE__ */ X(Ka, [["__scopeId", "data-v-9c163d4e"]]), Za = { cla
|
|
|
2813
2832
|
a.title ? {
|
|
2814
2833
|
name: "title",
|
|
2815
2834
|
fn: m(() => [
|
|
2816
|
-
|
|
2835
|
+
G(g(a.title), 1)
|
|
2817
2836
|
]),
|
|
2818
2837
|
key: "0"
|
|
2819
2838
|
} : void 0
|
|
@@ -2829,7 +2848,7 @@ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-5443f297"]]), xa = { cla
|
|
|
2829
2848
|
icon: {}
|
|
2830
2849
|
},
|
|
2831
2850
|
setup(c) {
|
|
2832
|
-
const u =
|
|
2851
|
+
const u = ue("meta");
|
|
2833
2852
|
return (e, a) => {
|
|
2834
2853
|
const l = N("clickable");
|
|
2835
2854
|
return Z((n(), s("div", {
|
|
@@ -2840,7 +2859,7 @@ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-5443f297"]]), xa = { cla
|
|
|
2840
2859
|
onAnimationend: a[0] || (a[0] = (i) => t(u).$actions.popToast()),
|
|
2841
2860
|
onClick: a[1] || (a[1] = (i) => t(u).$actions.popToast(e.itr))
|
|
2842
2861
|
}, [
|
|
2843
|
-
F(K,
|
|
2862
|
+
F(K, D(
|
|
2844
2863
|
e.icon ? { icon: e.icon } : { icon: "warning-circle" },
|
|
2845
2864
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
2846
2865
|
), null, 16),
|
|
@@ -2857,9 +2876,9 @@ const Na = /* @__PURE__ */ X(Pa, [["__scopeId", "data-v-5443f297"]]), xa = { cla
|
|
|
2857
2876
|
const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["innerHTML"], al = { class: "main__toasts" }, ll = ["innerHTML"], sl = /* @__PURE__ */ U({
|
|
2858
2877
|
__name: "aeria-main",
|
|
2859
2878
|
setup(c) {
|
|
2860
|
-
const u =
|
|
2879
|
+
const u = ue("meta"), e = Q(() => u.themeOverride || u.theme);
|
|
2861
2880
|
return (a, l) => {
|
|
2862
|
-
const i =
|
|
2881
|
+
const i = It("router-view");
|
|
2863
2882
|
return n(), s("main", {
|
|
2864
2883
|
id: "main",
|
|
2865
2884
|
class: W(`
|
|
@@ -2868,7 +2887,7 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["inn
|
|
|
2868
2887
|
${e.value === "dark" && "tw-dark"}
|
|
2869
2888
|
`)
|
|
2870
2889
|
}, [
|
|
2871
|
-
(n(), $(
|
|
2890
|
+
(n(), $(At, null, {
|
|
2872
2891
|
default: m(() => [
|
|
2873
2892
|
F(i, null, {
|
|
2874
2893
|
default: m(({ Component: r }) => [
|
|
@@ -2887,7 +2906,7 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["inn
|
|
|
2887
2906
|
_: 3
|
|
2888
2907
|
})),
|
|
2889
2908
|
C(a.$slots, "default", {}, void 0, !0),
|
|
2890
|
-
F(Ae,
|
|
2909
|
+
F(Ae, D({
|
|
2891
2910
|
modelValue: t(u).modal.visible,
|
|
2892
2911
|
"onUpdate:modelValue": l[0] || (l[0] = (r) => t(u).modal.visible = r),
|
|
2893
2912
|
float: "",
|
|
@@ -2906,14 +2925,14 @@ const nl = /* @__PURE__ */ X(tl, [["__scopeId", "data-v-54736bc3"]]), ol = ["inn
|
|
|
2906
2925
|
]),
|
|
2907
2926
|
_: 1
|
|
2908
2927
|
}, 16, ["modelValue"]),
|
|
2909
|
-
t(u).prompt.visible ? (n(), $(Na,
|
|
2928
|
+
t(u).prompt.visible ? (n(), $(Na, ce(D({ key: 0 }, t(u).prompt)), {
|
|
2910
2929
|
default: m(() => [
|
|
2911
|
-
|
|
2930
|
+
G(g(t(u).prompt.body), 1)
|
|
2912
2931
|
]),
|
|
2913
2932
|
_: 1
|
|
2914
2933
|
}, 16)) : f("", !0),
|
|
2915
2934
|
k("div", al, [
|
|
2916
|
-
(n(!0), s(J, null, H(t(u).toasts, (r) => (n(), $(nl,
|
|
2935
|
+
(n(!0), s(J, null, H(t(u).toasts, (r) => (n(), $(nl, D({ ref_for: !0 }, r, {
|
|
2917
2936
|
key: `toast-${r.itr}`
|
|
2918
2937
|
}), {
|
|
2919
2938
|
default: m(() => [
|
|
@@ -2957,7 +2976,7 @@ const Ll = /* @__PURE__ */ X(il, [["render", ul], ["__scopeId", "data-v-3cfef7fb
|
|
|
2957
2976
|
dropdown: { type: Boolean }
|
|
2958
2977
|
},
|
|
2959
2978
|
setup(c) {
|
|
2960
|
-
const u = c, e =
|
|
2979
|
+
const u = c, e = Ot(), a = Le(), l = je(), i = "query" in u && u.query ? "query" : "params", r = Q(() => {
|
|
2961
2980
|
const p = a.currentRoute.value[i][u.query || u.param];
|
|
2962
2981
|
return p || Object.keys(e)[0];
|
|
2963
2982
|
}), y = (p) => {
|
|
@@ -3037,7 +3056,7 @@ const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-4dd516ec"]]), hl = U({
|
|
|
3037
3056
|
const u = Y(c.initialValue);
|
|
3038
3057
|
return c.promise instanceof Promise && c.promise.then((e) => {
|
|
3039
3058
|
u.value = e;
|
|
3040
|
-
}), () =>
|
|
3059
|
+
}), () => wt("div", u.value);
|
|
3041
3060
|
}
|
|
3042
3061
|
}), $l = ["onClick"], bl = { key: 1 }, gl = /* @__PURE__ */ U({
|
|
3043
3062
|
__name: "aeria-crud-topbar",
|
|
@@ -3045,10 +3064,10 @@ const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-4dd516ec"]]), hl = U({
|
|
|
3045
3064
|
collection: {}
|
|
3046
3065
|
},
|
|
3047
3066
|
setup(c) {
|
|
3048
|
-
const u = c, a = Le().currentRoute, l =
|
|
3067
|
+
const u = c, a = Le().currentRoute, l = Q(() => {
|
|
3049
3068
|
try {
|
|
3050
3069
|
const i = u.collection ? u.collection : a.value.meta.collection || a.value.params.collection;
|
|
3051
|
-
return
|
|
3070
|
+
return be(i);
|
|
3052
3071
|
} catch {
|
|
3053
3072
|
return null;
|
|
3054
3073
|
}
|
|
@@ -3063,14 +3082,14 @@ const yl = /* @__PURE__ */ X(vl, [["__scopeId", "data-v-4dd516ec"]]), hl = U({
|
|
|
3063
3082
|
fn: m(() => [
|
|
3064
3083
|
k("div", {
|
|
3065
3084
|
class: "topbar__preset",
|
|
3066
|
-
onClick: (h) => t(
|
|
3085
|
+
onClick: (h) => t($t)(p, l.value)
|
|
3067
3086
|
}, [
|
|
3068
3087
|
p.icon ? (n(), $(K, {
|
|
3069
3088
|
key: 0,
|
|
3070
3089
|
icon: p.icon
|
|
3071
3090
|
}, {
|
|
3072
3091
|
default: m(() => [
|
|
3073
|
-
|
|
3092
|
+
G(g(p.name || t(M)(y, { plural: !0 })), 1)
|
|
3074
3093
|
]),
|
|
3075
3094
|
_: 2
|
|
3076
3095
|
}, 1032, ["icon"])) : (n(), s("div", bl, g(p.name || t(M)(y, { plural: !0 })), 1)),
|
|
@@ -3101,7 +3120,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @_
|
|
|
3101
3120
|
setup(c) {
|
|
3102
3121
|
const u = c;
|
|
3103
3122
|
ve(Ue, null);
|
|
3104
|
-
const e =
|
|
3123
|
+
const e = Mt(), a = Q(() => e(
|
|
3105
3124
|
u.modelValue.password,
|
|
3106
3125
|
u.modelValue.confirmation
|
|
3107
3126
|
));
|
|
@@ -3123,7 +3142,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @_
|
|
|
3123
3142
|
}, {
|
|
3124
3143
|
after: m(() => [
|
|
3125
3144
|
k("div", null, g(a.value || "Senhas conferem"), 1),
|
|
3126
|
-
C(l.$slots, "default",
|
|
3145
|
+
C(l.$slots, "default", ce(Ve({ passwordError: a.value })))
|
|
3127
3146
|
]),
|
|
3128
3147
|
_: 3
|
|
3129
3148
|
}, 8, ["model-value"]));
|
|
@@ -3146,7 +3165,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @_
|
|
|
3146
3165
|
{
|
|
3147
3166
|
path: "signin",
|
|
3148
3167
|
name: "/user/signin",
|
|
3149
|
-
component: () => import("./signin-
|
|
3168
|
+
component: () => import("./signin-0db1eb4f.js"),
|
|
3150
3169
|
meta: {
|
|
3151
3170
|
title: "Autenticação"
|
|
3152
3171
|
}
|
|
@@ -3154,7 +3173,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @_
|
|
|
3154
3173
|
{
|
|
3155
3174
|
path: "signup",
|
|
3156
3175
|
name: "/user/signup",
|
|
3157
|
-
component: () => import("./signup-
|
|
3176
|
+
component: () => import("./signup-57507eb3.js"),
|
|
3158
3177
|
meta: {
|
|
3159
3178
|
title: "Registro"
|
|
3160
3179
|
}
|
|
@@ -3162,7 +3181,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @_
|
|
|
3162
3181
|
{
|
|
3163
3182
|
path: "activation",
|
|
3164
3183
|
name: "/user/activation",
|
|
3165
|
-
component: () => import("./activation-
|
|
3184
|
+
component: () => import("./activation-d238ff2c.js"),
|
|
3166
3185
|
meta: {
|
|
3167
3186
|
title: "Ativação"
|
|
3168
3187
|
}
|
|
@@ -3184,7 +3203,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @_
|
|
|
3184
3203
|
name: "/dashboard/crud",
|
|
3185
3204
|
props: !0,
|
|
3186
3205
|
components: {
|
|
3187
|
-
default: () => import("./crud-view-
|
|
3206
|
+
default: () => import("./crud-view-1bbc1387.js"),
|
|
3188
3207
|
topbar: () => Promise.resolve().then(() => Vl)
|
|
3189
3208
|
},
|
|
3190
3209
|
meta: {
|
|
@@ -3202,7 +3221,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @_
|
|
|
3202
3221
|
children: [
|
|
3203
3222
|
{
|
|
3204
3223
|
path: "profile",
|
|
3205
|
-
component: () => import("./profile-
|
|
3224
|
+
component: () => import("./profile-1660e4f2.js"),
|
|
3206
3225
|
meta: {
|
|
3207
3226
|
title: "Meu perfil",
|
|
3208
3227
|
icon: "user-square"
|
|
@@ -3211,7 +3230,7 @@ const kl = /* @__PURE__ */ X(gl, [["__scopeId", "data-v-57d3d562"]]), Vl = /* @_
|
|
|
3211
3230
|
{
|
|
3212
3231
|
path: "changepass",
|
|
3213
3232
|
name: "/dashboard/user/changepass",
|
|
3214
|
-
component: () => import("./password-change-
|
|
3233
|
+
component: () => import("./password-change-6277346e.js"),
|
|
3215
3234
|
meta: {
|
|
3216
3235
|
title: "Mudar senha",
|
|
3217
3236
|
icon: "lock"
|
|
@@ -3229,7 +3248,7 @@ export {
|
|
|
3229
3248
|
zl as E,
|
|
3230
3249
|
Fl as F,
|
|
3231
3250
|
Rl as _,
|
|
3232
|
-
|
|
3251
|
+
ie as a,
|
|
3233
3252
|
K as b,
|
|
3234
3253
|
Hn as c,
|
|
3235
3254
|
jl as d,
|