@aeria-ui/ui 0.0.146 → 0.0.147
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_-4dIZ-pe0.js → _id_-35671aff.js} +14 -9
- package/dist/{activation-DqwN6Fxz.js → activation-9b511196.js} +15 -13
- package/dist/components/aeria-accordion/aeria-accordion.vue.d.ts +12 -8
- package/dist/components/aeria-badge/aeria-badge.vue.d.ts +12 -8
- package/dist/components/aeria-bare-button/aeria-bare-button.vue.d.ts +15 -11
- package/dist/components/aeria-button/aeria-button.vue.d.ts +14 -10
- package/dist/components/aeria-card/aeria-card.vue.d.ts +15 -11
- package/dist/components/aeria-context-menu/aeria-context-menu.vue.d.ts +22 -19
- package/dist/components/aeria-crud/_internals/helpers.d.ts +3 -2
- package/dist/components/aeria-crud/_internals/layouts/aeria-grid/aeria-grid.vue.d.ts +12 -2
- package/dist/components/aeria-crud/_internals/layouts/aeria-tabular/aeria-tabular.vue.d.ts +15 -10
- package/dist/components/aeria-crud/_internals/layouts/index.d.ts +82 -40
- package/dist/components/aeria-crud/aeria-crud.vue.d.ts +26 -21
- package/dist/components/aeria-filter-panel/aeria-filter-panel.vue.d.ts +2 -2
- package/dist/components/aeria-grid/aeria-grid.vue.d.ts +12 -8
- package/dist/components/aeria-icon/aeria-icon.vue.d.ts +14 -9
- package/dist/components/aeria-info/aeria-info.vue.d.ts +26 -11
- package/dist/components/aeria-insert-panel/aeria-insert-panel.vue.d.ts +33 -16
- package/dist/components/aeria-main/aeria-main.vue.d.ts +3 -8
- package/dist/components/aeria-menu/aeria-menu.vue.d.ts +2 -7
- package/dist/components/aeria-pagination/aeria-pagination.vue.d.ts +15 -5
- package/dist/components/aeria-panel/aeria-panel.vue.d.ts +33 -15
- package/dist/components/aeria-picture/aeria-picture.vue.d.ts +14 -10
- package/dist/components/aeria-table/aeria-table.vue.d.ts +25 -20
- package/dist/components/aeria-tabs/aeria-tabs.vue.d.ts +13 -9
- package/dist/components/dashboard/aeria-crud-topbar/aeria-crud-topbar.vue.d.ts +10 -1
- package/dist/components/dashboard/aeria-password-form/aeria-password-form.vue.d.ts +17 -13
- package/dist/components/dashboard/aeria-prompt/aeria-prompt.vue.d.ts +14 -9
- package/dist/components/dashboard/aeria-toast/aeria-toast.vue.d.ts +14 -9
- package/dist/components/form/aeria-checkbox/aeria-checkbox.vue.d.ts +26 -16
- package/dist/components/form/aeria-file/_internals/components/aeria-file-item.vue.d.ts +13 -8
- package/dist/components/form/aeria-file/aeria-file.vue.d.ts +22 -12
- package/dist/components/form/aeria-form/_internals/helpers.d.ts +3 -2
- package/dist/components/form/aeria-form/aeria-form.vue.d.ts +47 -26
- package/dist/components/form/aeria-input/aeria-input.vue.d.ts +22 -17
- package/dist/components/form/aeria-options/aeria-options.vue.d.ts +29 -7
- package/dist/components/form/aeria-search/_internals/components/aeria-search-container/aeria-search-container.vue.d.ts +16 -14
- package/dist/components/form/aeria-search/_internals/components/aeria-search-item/aeria-search-item.vue.d.ts +18 -13
- package/dist/components/form/aeria-search/aeria-search.vue.d.ts +25 -3
- package/dist/components/form/aeria-select/aeria-select.vue.d.ts +18 -15
- package/dist/components/form/aeria-switch/aeria-switch.vue.d.ts +18 -8
- package/dist/components/form/types.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index-13f71246.js +31 -0
- package/dist/index-17786102.js +144 -0
- package/dist/index-54fc64aa.js +66 -0
- package/dist/{index-Cvpf_fcw.js → index-da006cde.js} +1162 -1137
- package/dist/{redefine-password-CIRVr_YH.js → redefine-password-a556ab1e.js} +10 -8
- package/dist/routes.d.ts +2 -1
- package/dist/{signin-Wx4U5tkL.js → signin-80046a53.js} +6 -3
- package/dist/{signup-B0VMikWK.js → signup-2b9cbf2c.js} +28 -24
- package/dist/{ui.css → style.css} +1 -1
- package/dist/ui.js +42 -35
- package/dist/views/dashboard/[collection]/[id].vue.d.ts +10 -1
- package/dist/views/dashboard/[collection]/index.vue.d.ts +12 -8
- package/dist/views/dashboard/user/profile/index.vue.d.ts +2 -7
- package/package.json +2 -2
- package/dist/index-BHya3orU.js +0 -25
- package/dist/index-DJGV3KfN.js +0 -57
- package/dist/index-DUoAgL9p.js +0 -130
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as z, ref as ee, resolveDirective as ne, openBlock as t, createElementBlock as l, normalizeClass as W, Fragment as P, renderList as H, withDirectives as J, toDisplayString as C, createCommentVNode as b, createTextVNode as Q, unref as e, renderSlot as A, withModifiers as Re, inject as fe, computed as K, createElementVNode as I, mergeProps as U, createBlock as V, withCtx as y, resolveDynamicComponent as he, useCssVars as gt, normalizeProps as de, guardReactiveProps as Ce, Teleport as Ge, createVNode as L, onMounted as We, watch as ue, vModelDynamic as $t, onBeforeMount as ft, normalizeStyle as $e, provide as ge, createSlots as _e, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as Ot, useSlots as At, h as It } from "vue";
|
|
2
2
|
import { t as q, useI18n as Bt } from "@aeria-ui/i18n";
|
|
3
|
-
import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ye, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as
|
|
4
|
-
import { arraysIntersect as
|
|
5
|
-
import { useStore as re, getStoreId as
|
|
3
|
+
import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ye, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as vt, request as jt, useDebounce as yt, convertToSearchQuery as Rt, useParentCollectionStore as je, useCollectionStore as qt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as zt } from "@aeria-ui/core";
|
|
4
|
+
import { arraysIntersect as bt, deepClone as Ae, getReferenceProperty as me, freshItem as Ft, isRequired as ct, evaluateCondition as Qe, deepMerge as qe } from "@aeriajs/common";
|
|
5
|
+
import { useStore as re, getStoreId as Me, useParentStore as Ee, STORE_ID as ze, getGlobalStateManager as Ke } from "@aeria-ui/state-management";
|
|
6
6
|
import { useRouter as Be } from "vue-router";
|
|
7
7
|
import { convertConditionToQuery as Ut, isDocumentComplete as Et, getObjectKey as Ht } from "@aeria-ui/utils";
|
|
8
8
|
const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "accordion__content"
|
|
11
|
-
}, Wt = /* @__PURE__ */
|
|
11
|
+
}, Wt = /* @__PURE__ */ z({
|
|
12
12
|
__name: "aeria-accordion",
|
|
13
13
|
props: {
|
|
14
14
|
enumerate: { type: Boolean },
|
|
@@ -18,39 +18,40 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
18
18
|
setup(p) {
|
|
19
19
|
const r = ee(null), o = (n) => typeof n == "string" ? n : n.title;
|
|
20
20
|
return (n, a) => {
|
|
21
|
-
const
|
|
21
|
+
const c = ne("clickable");
|
|
22
22
|
return t(), l("div", {
|
|
23
23
|
class: W({
|
|
24
24
|
accordion: !0,
|
|
25
25
|
"accordion--padded": !n.noPadding
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
|
-
(t(!0), l(P, null, H(Object.keys(n.$slots).filter((u) => u !== "default"), (u,
|
|
28
|
+
(t(!0), l(P, null, H(Object.keys(n.$slots).filter((u) => u !== "default"), (u, _) => (t(), l("div", {
|
|
29
29
|
key: u,
|
|
30
30
|
class: "accordion__slot"
|
|
31
31
|
}, [
|
|
32
32
|
J((t(), l("div", {
|
|
33
33
|
class: "accordion__header",
|
|
34
|
-
onClick: (
|
|
34
|
+
onClick: (d) => r.value === u ? r.value = null : r.value = u
|
|
35
35
|
}, [
|
|
36
|
-
n.enumerate ? (t(), l("span", Qt, C(
|
|
37
|
-
|
|
36
|
+
n.enumerate ? (t(), l("span", Qt, C(_ + 1) + ". ", 1)) : b("", !0),
|
|
37
|
+
Q(" " + C(n.headers[u] ? o(n.headers[u]) : e(q)(u)), 1)
|
|
38
38
|
], 8, Dt)), [
|
|
39
|
-
[
|
|
39
|
+
[c]
|
|
40
40
|
]),
|
|
41
41
|
r.value === u ? (t(), l("div", Gt, [
|
|
42
42
|
A(n.$slots, u, {}, void 0, !0)
|
|
43
|
-
])) :
|
|
43
|
+
])) : b("", !0)
|
|
44
44
|
]))), 128))
|
|
45
45
|
], 2);
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
})
|
|
48
|
+
});
|
|
49
|
+
const D = (p, r) => {
|
|
49
50
|
const o = p.__vccOpts || p;
|
|
50
51
|
for (const [n, a] of r)
|
|
51
52
|
o[n] = a;
|
|
52
53
|
return o;
|
|
53
|
-
}, Ol = /* @__PURE__ */
|
|
54
|
+
}, Ol = /* @__PURE__ */ D(Wt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ z({
|
|
54
55
|
__name: "aeria-badge",
|
|
55
56
|
props: {
|
|
56
57
|
large: { type: Boolean },
|
|
@@ -67,30 +68,32 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
67
68
|
A(r.$slots, "default", {}, void 0, !0)
|
|
68
69
|
], 2));
|
|
69
70
|
}
|
|
70
|
-
})
|
|
71
|
+
});
|
|
72
|
+
const Ve = /* @__PURE__ */ D(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @__PURE__ */ z({
|
|
71
73
|
__name: "aeria-bare-button",
|
|
72
74
|
props: {
|
|
73
75
|
disabled: { type: Boolean }
|
|
74
76
|
},
|
|
75
77
|
emits: ["click"],
|
|
76
78
|
setup(p, { emit: r }) {
|
|
77
|
-
const o = p, n = r, a = (
|
|
78
|
-
o.disabled || n("click",
|
|
79
|
+
const o = p, n = r, a = (c) => {
|
|
80
|
+
o.disabled || n("click", c);
|
|
79
81
|
};
|
|
80
|
-
return (
|
|
82
|
+
return (c, u) => (t(), l("button", {
|
|
81
83
|
class: W([
|
|
82
84
|
"barebutton",
|
|
83
|
-
`barebutton--${
|
|
85
|
+
`barebutton--${c.disabled ? "disabled" : "enabled"}`
|
|
84
86
|
]),
|
|
85
87
|
onClick: Re(a, ["prevent"])
|
|
86
88
|
}, [
|
|
87
|
-
A(
|
|
89
|
+
A(c.$slots, "default", {}, void 0, !0)
|
|
88
90
|
], 2));
|
|
89
91
|
}
|
|
90
|
-
})
|
|
92
|
+
});
|
|
93
|
+
const ye = /* @__PURE__ */ D(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["href"], Jt = {
|
|
91
94
|
key: 0,
|
|
92
95
|
"data-component": "icon-label"
|
|
93
|
-
}, Zt = /* @__PURE__ */
|
|
96
|
+
}, Zt = /* @__PURE__ */ z({
|
|
94
97
|
__name: "aeria-icon",
|
|
95
98
|
props: {
|
|
96
99
|
icon: {},
|
|
@@ -102,23 +105,23 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
102
105
|
active: { type: Boolean }
|
|
103
106
|
},
|
|
104
107
|
setup(p) {
|
|
105
|
-
const r = p, o =
|
|
106
|
-
var
|
|
107
|
-
return (
|
|
108
|
+
const r = p, o = fe(St, {}), n = typeof r.reactive == "boolean" ? r.reactive : fe("iconReactive", !1), a = K(() => {
|
|
109
|
+
var c;
|
|
110
|
+
return (c = r.icon) != null && c.includes(":") ? r.icon : `regular:${r.icon}`;
|
|
108
111
|
});
|
|
109
|
-
return (
|
|
112
|
+
return (c, u) => (t(), l("a", {
|
|
110
113
|
class: W([
|
|
111
114
|
"icon",
|
|
112
115
|
{ "icon--reactive": e(n) },
|
|
113
|
-
{ "icon--active":
|
|
114
|
-
|
|
116
|
+
{ "icon--active": c.active },
|
|
117
|
+
c.$slots.default ? "icon--centered" : "icon--standalone"
|
|
115
118
|
])
|
|
116
119
|
}, [
|
|
117
120
|
I("div", {
|
|
118
121
|
class: W([
|
|
119
122
|
"icon__icon",
|
|
120
|
-
{ "icon__icon--${size}": !!
|
|
121
|
-
{ "icon__icon--right":
|
|
123
|
+
{ "icon__icon--${size}": !!c.size },
|
|
124
|
+
{ "icon__icon--right": c.iconRight }
|
|
122
125
|
])
|
|
123
126
|
}, [
|
|
124
127
|
(t(), l("svg", U({
|
|
@@ -127,22 +130,23 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
127
130
|
viewBox: "0 0 256 256",
|
|
128
131
|
"data-component": "icon"
|
|
129
132
|
}, {
|
|
130
|
-
...
|
|
133
|
+
...c.fill ? { fill: c.fill } : {}
|
|
131
134
|
}), [
|
|
132
135
|
I("use", {
|
|
133
136
|
href: `${e(o).base || "/"}assets/icons.svg#${a.value}`
|
|
134
137
|
}, null, 8, Xt)
|
|
135
138
|
], 16))
|
|
136
139
|
], 2),
|
|
137
|
-
|
|
138
|
-
A(
|
|
139
|
-
])) :
|
|
140
|
+
c.$slots.default ? (t(), l("div", Jt, [
|
|
141
|
+
A(c.$slots, "default", {}, void 0, !0)
|
|
142
|
+
])) : b("", !0)
|
|
140
143
|
], 2));
|
|
141
144
|
}
|
|
142
|
-
})
|
|
145
|
+
});
|
|
146
|
+
const Y = /* @__PURE__ */ D(Zt, [["__scopeId", "data-v-ab19820c"]]), Pt = { class: "button__content" }, Nt = {
|
|
143
147
|
key: 1,
|
|
144
148
|
class: "button__content"
|
|
145
|
-
}, xt = /* @__PURE__ */
|
|
149
|
+
}, xt = /* @__PURE__ */ z({
|
|
146
150
|
__name: "aeria-button",
|
|
147
151
|
props: {
|
|
148
152
|
size: {},
|
|
@@ -154,16 +158,16 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
154
158
|
loading: { type: Boolean }
|
|
155
159
|
},
|
|
156
160
|
setup(p) {
|
|
157
|
-
const r = p, o =
|
|
161
|
+
const r = p, o = fe("buttonVariant", r.variant) || "primary", n = (() => {
|
|
158
162
|
switch (!0) {
|
|
159
163
|
case r.small:
|
|
160
164
|
return "small";
|
|
161
165
|
case r.large:
|
|
162
166
|
return "large";
|
|
163
167
|
}
|
|
164
|
-
return
|
|
168
|
+
return fe("buttonSize", r.size) || "medium";
|
|
165
169
|
})();
|
|
166
|
-
return (a,
|
|
170
|
+
return (a, c) => (t(), V(ye, {
|
|
167
171
|
class: W([
|
|
168
172
|
"button",
|
|
169
173
|
`button--${e(o)}`,
|
|
@@ -172,12 +176,12 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
172
176
|
]),
|
|
173
177
|
disabled: a.disabled || a.loading
|
|
174
178
|
}, {
|
|
175
|
-
default:
|
|
179
|
+
default: y(() => [
|
|
176
180
|
a.icon ? (t(), V(Y, {
|
|
177
181
|
key: 0,
|
|
178
182
|
icon: a.icon
|
|
179
183
|
}, {
|
|
180
|
-
default:
|
|
184
|
+
default: y(() => [
|
|
181
185
|
I("div", Pt, [
|
|
182
186
|
A(a.$slots, "default", {}, void 0, !0)
|
|
183
187
|
])
|
|
@@ -190,7 +194,8 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
190
194
|
_: 3
|
|
191
195
|
}, 8, ["class", "disabled"]));
|
|
192
196
|
}
|
|
193
|
-
})
|
|
197
|
+
});
|
|
198
|
+
const pe = /* @__PURE__ */ D(xt, [["__scopeId", "data-v-e9f582db"]]), en = { class: "card__picture" }, tn = { class: "card__footer" }, nn = { class: "card__footer-upper" }, on = { class: "card__actions" }, an = { class: "card__badge" }, ln = /* @__PURE__ */ z({
|
|
194
199
|
__name: "aeria-card",
|
|
195
200
|
props: {
|
|
196
201
|
inactive: { type: Boolean },
|
|
@@ -213,7 +218,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
213
218
|
A(r.$slots, "footer", {}, void 0, !0)
|
|
214
219
|
]),
|
|
215
220
|
I("div", on, [
|
|
216
|
-
r.$slots.actions ? A(r.$slots, "actions", { key: 0 }, void 0, !0) :
|
|
221
|
+
r.$slots.actions ? A(r.$slots, "actions", { key: 0 }, void 0, !0) : b("", !0)
|
|
217
222
|
])
|
|
218
223
|
]),
|
|
219
224
|
I("div", an, [
|
|
@@ -222,10 +227,11 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
222
227
|
])
|
|
223
228
|
], 2));
|
|
224
229
|
}
|
|
225
|
-
})
|
|
230
|
+
});
|
|
231
|
+
const sn = /* @__PURE__ */ D(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { class: "panel__header-left" }, un = { key: 1 }, cn = {
|
|
226
232
|
key: 2,
|
|
227
233
|
style: { "margin-left": "auto" }
|
|
228
|
-
},
|
|
234
|
+
}, dn = /* @__PURE__ */ z({
|
|
229
235
|
__name: "aeria-panel",
|
|
230
236
|
props: {
|
|
231
237
|
closeHint: { type: Boolean, default: !1 },
|
|
@@ -248,117 +254,118 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
248
254
|
},
|
|
249
255
|
emits: ["update:modelValue", "update:collapsed", "update:closeHint", "overlayClick", "close"],
|
|
250
256
|
setup(p, { emit: r }) {
|
|
251
|
-
const o = p, n = r, a = ee(o.collapsed),
|
|
257
|
+
const o = p, n = r, a = ee(o.collapsed), c = ee(null), { reachedEnd: u } = Ye(c), _ = () => {
|
|
252
258
|
n("update:modelValue", !1), n("close");
|
|
253
|
-
},
|
|
259
|
+
}, d = () => {
|
|
254
260
|
n("overlayClick");
|
|
255
|
-
},
|
|
256
|
-
n("update:collapsed",
|
|
261
|
+
}, g = (i) => {
|
|
262
|
+
n("update:collapsed", i), a.value = i;
|
|
257
263
|
};
|
|
258
|
-
return (
|
|
259
|
-
const
|
|
260
|
-
return
|
|
264
|
+
return (i, v) => {
|
|
265
|
+
const $ = ne("clickable"), f = ne("loading"), B = ne("overlay");
|
|
266
|
+
return i.modelValue ? J((t(), l("div", {
|
|
261
267
|
key: 0,
|
|
262
268
|
class: W([
|
|
263
269
|
"panel",
|
|
264
|
-
{ "panel--fixed":
|
|
270
|
+
{ "panel--fixed": i.fixedRight }
|
|
265
271
|
])
|
|
266
272
|
}, [
|
|
267
|
-
(t(), V(
|
|
268
|
-
|
|
273
|
+
(t(), V(he(
|
|
274
|
+
i.float || i.fixedRight ? "dialog" : "div"
|
|
269
275
|
), {
|
|
270
276
|
"data-component": "panel",
|
|
271
277
|
class: W([
|
|
272
278
|
"aeria-surface",
|
|
273
279
|
"panel__content",
|
|
274
|
-
{ "panel__content--float":
|
|
275
|
-
{ "panel__content--bordered":
|
|
276
|
-
{ "panel__content--fixed-right":
|
|
277
|
-
{ "panel__content--transparent":
|
|
278
|
-
{ "panel__content--transparent-mobile":
|
|
279
|
-
{ "panel__content--outer-header":
|
|
280
|
+
{ "panel__content--float": i.float },
|
|
281
|
+
{ "panel__content--bordered": i.bordered },
|
|
282
|
+
{ "panel__content--fixed-right": i.fixedRight },
|
|
283
|
+
{ "panel__content--transparent": i.transparent },
|
|
284
|
+
{ "panel__content--transparent-mobile": i.transparentMobile },
|
|
285
|
+
{ "panel__content--outer-header": i.outerHeader }
|
|
280
286
|
]),
|
|
281
|
-
onClick:
|
|
287
|
+
onClick: v[2] || (v[2] = (s) => s.stopPropagation())
|
|
282
288
|
}, {
|
|
283
|
-
default:
|
|
284
|
-
|
|
289
|
+
default: y(() => [
|
|
290
|
+
i.$slots.header || i.title ? (t(), l("div", {
|
|
285
291
|
key: 0,
|
|
286
292
|
class: W([
|
|
287
293
|
"panel__header",
|
|
288
294
|
{ "panel__header--collapsed": a.value },
|
|
289
|
-
{ "panel__header--outer":
|
|
295
|
+
{ "panel__header--outer": i.outerHeader }
|
|
290
296
|
])
|
|
291
297
|
}, [
|
|
292
298
|
I("div", rn, [
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
A(
|
|
296
|
-
])) :
|
|
299
|
+
i.$slots.header ? A(i.$slots, "header", { key: 0 }, void 0, !0) : i.title ? (t(), l("div", un, C(i.title), 1)) : b("", !0),
|
|
300
|
+
i.$slots.extra ? (t(), l("div", cn, [
|
|
301
|
+
A(i.$slots, "extra", {}, void 0, !0)
|
|
302
|
+
])) : b("", !0)
|
|
297
303
|
]),
|
|
298
|
-
|
|
304
|
+
i.collapsible && a.value ? J((t(), V(Y, {
|
|
299
305
|
key: 0,
|
|
300
306
|
reactive: "",
|
|
301
307
|
icon: "plus",
|
|
302
|
-
onClick:
|
|
308
|
+
onClick: v[0] || (v[0] = (s) => g(!a.value))
|
|
303
309
|
}, null, 512)), [
|
|
304
|
-
[
|
|
305
|
-
]) :
|
|
310
|
+
[$]
|
|
311
|
+
]) : i.collapsible && !a.value ? J((t(), V(Y, {
|
|
306
312
|
key: 1,
|
|
307
313
|
reactive: "",
|
|
308
314
|
icon: "minus",
|
|
309
|
-
onClick:
|
|
315
|
+
onClick: v[1] || (v[1] = (s) => g(!a.value))
|
|
310
316
|
}, null, 512)), [
|
|
311
|
-
[
|
|
312
|
-
]) :
|
|
317
|
+
[$]
|
|
318
|
+
]) : i.closeHint ? J((t(), V(Y, {
|
|
313
319
|
key: 2,
|
|
314
320
|
reactive: "",
|
|
315
321
|
icon: "x",
|
|
316
|
-
onClick:
|
|
322
|
+
onClick: _
|
|
317
323
|
}, null, 512)), [
|
|
318
|
-
[
|
|
319
|
-
]) :
|
|
320
|
-
], 2)) :
|
|
321
|
-
a.value ?
|
|
324
|
+
[$]
|
|
325
|
+
]) : b("", !0)
|
|
326
|
+
], 2)) : b("", !0),
|
|
327
|
+
a.value ? b("", !0) : J((t(), l("div", {
|
|
322
328
|
key: 1,
|
|
323
329
|
ref_key: "body",
|
|
324
|
-
ref:
|
|
330
|
+
ref: c,
|
|
325
331
|
tabindex: "0",
|
|
326
332
|
class: W([
|
|
327
333
|
"panel__body",
|
|
328
|
-
{ "panel__body--padded": !
|
|
334
|
+
{ "panel__body--padded": !i.fill }
|
|
329
335
|
])
|
|
330
336
|
}, [
|
|
331
|
-
A(
|
|
337
|
+
A(i.$slots, "default", {}, void 0, !0)
|
|
332
338
|
], 2)), [
|
|
333
|
-
[
|
|
339
|
+
[f, i.loading]
|
|
334
340
|
]),
|
|
335
|
-
|
|
341
|
+
i.$slots.footer ? (t(), l("div", {
|
|
336
342
|
key: 2,
|
|
337
343
|
class: W([
|
|
338
344
|
"panel__footer",
|
|
339
|
-
{ "panel__footer--padded": !
|
|
345
|
+
{ "panel__footer--padded": !i.fillFooter },
|
|
340
346
|
{ "panel__footer--shadowed": !e(u) }
|
|
341
347
|
])
|
|
342
348
|
}, [
|
|
343
|
-
A(
|
|
344
|
-
], 2)) :
|
|
349
|
+
A(i.$slots, "footer", {}, void 0, !0)
|
|
350
|
+
], 2)) : b("", !0)
|
|
345
351
|
]),
|
|
346
352
|
_: 3
|
|
347
353
|
}, 8, ["class"]))
|
|
348
354
|
], 2)), [
|
|
349
355
|
[B, {
|
|
350
|
-
condition:
|
|
351
|
-
invisible:
|
|
352
|
-
click:
|
|
353
|
-
layer:
|
|
356
|
+
condition: i.overlay || i.fixedRight || i.float,
|
|
357
|
+
invisible: i.invisibleOverlay,
|
|
358
|
+
click: d,
|
|
359
|
+
layer: i.overlayLayer || (i.float ? 60 : i.fixedRight ? 50 : 0)
|
|
354
360
|
}]
|
|
355
|
-
]) :
|
|
361
|
+
]) : b("", !0);
|
|
356
362
|
};
|
|
357
363
|
}
|
|
358
|
-
})
|
|
364
|
+
});
|
|
365
|
+
const Se = /* @__PURE__ */ D(dn, [["__scopeId", "data-v-84cde0d8"]]), pn = { class: "content__body" }, _n = {
|
|
359
366
|
key: 0,
|
|
360
367
|
class: "content__section"
|
|
361
|
-
},
|
|
368
|
+
}, mn = { class: "content__item" }, fn = /* @__PURE__ */ z({
|
|
362
369
|
__name: "aeria-context-menu",
|
|
363
370
|
props: {
|
|
364
371
|
actions: {},
|
|
@@ -367,39 +374,39 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
367
374
|
},
|
|
368
375
|
emits: ["actionClick"],
|
|
369
376
|
setup(p, { emit: r }) {
|
|
370
|
-
|
|
371
|
-
"4393a358":
|
|
372
|
-
"4393a359":
|
|
377
|
+
gt((d) => ({
|
|
378
|
+
"4393a358": _.value.x,
|
|
379
|
+
"4393a359": _.value.y
|
|
373
380
|
}));
|
|
374
|
-
const o = r, n = ee(null), a = ee(!1),
|
|
375
|
-
if (
|
|
376
|
-
const
|
|
377
|
-
return
|
|
381
|
+
const o = r, n = ee(null), a = ee(!1), c = (d) => d == null ? void 0 : d.filter((g) => {
|
|
382
|
+
if (g.roles) {
|
|
383
|
+
const i = re("user");
|
|
384
|
+
return bt(g.roles, i.currentUser.roles);
|
|
378
385
|
}
|
|
379
386
|
return !0;
|
|
380
|
-
}), u = (
|
|
381
|
-
const
|
|
382
|
-
|
|
383
|
-
action:
|
|
384
|
-
subject:
|
|
387
|
+
}), u = (d, g) => {
|
|
388
|
+
const i = g && Ae(g);
|
|
389
|
+
d.click && d.click(i), o("actionClick", {
|
|
390
|
+
action: d,
|
|
391
|
+
subject: i
|
|
385
392
|
}), a.value = !1;
|
|
386
|
-
},
|
|
393
|
+
}, _ = K(() => {
|
|
387
394
|
if (!n.value)
|
|
388
395
|
return {
|
|
389
396
|
x: 0,
|
|
390
397
|
y: 0
|
|
391
398
|
};
|
|
392
|
-
const
|
|
399
|
+
const d = n.value.getBoundingClientRect().top, g = n.value.getBoundingClientRect().left, i = n.value.offsetHeight;
|
|
393
400
|
return {
|
|
394
401
|
_: a.value,
|
|
395
|
-
x: Math.floor(
|
|
396
|
-
y: Math.floor(
|
|
402
|
+
x: Math.floor(g) + "px",
|
|
403
|
+
y: Math.floor(d + i) + "px"
|
|
397
404
|
};
|
|
398
405
|
});
|
|
399
|
-
return (
|
|
400
|
-
const
|
|
406
|
+
return (d, g) => {
|
|
407
|
+
const i = ne("overlay");
|
|
401
408
|
return t(), l(P, null, [
|
|
402
|
-
Object.keys(
|
|
409
|
+
Object.keys(d.$slots).some((v) => v !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
|
|
403
410
|
key: 0,
|
|
404
411
|
ref_key: "contextmenu",
|
|
405
412
|
ref: n,
|
|
@@ -407,85 +414,85 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
407
414
|
}, [
|
|
408
415
|
I("a", {
|
|
409
416
|
class: "contextmenu__trigger",
|
|
410
|
-
onClick:
|
|
417
|
+
onClick: g[0] || (g[0] = (v) => a.value = !0)
|
|
411
418
|
}, [
|
|
412
|
-
A(
|
|
419
|
+
A(d.$slots, "default", de(Ce({
|
|
413
420
|
visible: a.value
|
|
414
421
|
})), void 0, !0)
|
|
415
422
|
])
|
|
416
|
-
], 512)) :
|
|
423
|
+
], 512)) : b("", !0),
|
|
417
424
|
a.value ? (t(), V(Ge, {
|
|
418
425
|
key: 1,
|
|
419
426
|
to: "main"
|
|
420
427
|
}, [
|
|
421
428
|
J((t(), V(Se, {
|
|
422
429
|
modelValue: a.value,
|
|
423
|
-
"onUpdate:modelValue":
|
|
430
|
+
"onUpdate:modelValue": g[4] || (g[4] = (v) => a.value = v),
|
|
424
431
|
fill: "",
|
|
425
432
|
bordered: "",
|
|
426
433
|
class: "content",
|
|
427
434
|
style: { "--panel-min-width": "0" }
|
|
428
435
|
}, {
|
|
429
|
-
default:
|
|
436
|
+
default: y(() => [
|
|
430
437
|
I("div", pn, [
|
|
431
|
-
|
|
432
|
-
A(
|
|
433
|
-
])) :
|
|
434
|
-
Object.keys(
|
|
438
|
+
d.$slots.header ? (t(), l("div", _n, [
|
|
439
|
+
A(d.$slots, "header", {}, void 0, !0)
|
|
440
|
+
])) : b("", !0),
|
|
441
|
+
Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)).length > 0 ? (t(), l("div", {
|
|
435
442
|
key: 1,
|
|
436
443
|
class: "content__section",
|
|
437
|
-
onClick:
|
|
444
|
+
onClick: g[1] || (g[1] = (v) => a.value = !1)
|
|
438
445
|
}, [
|
|
439
|
-
(t(!0), l(P, null, H(Object.keys(
|
|
440
|
-
key: `slot-${
|
|
446
|
+
(t(!0), l(P, null, H(Object.keys(d.$slots).filter((v) => !["default", "extra", "header"].includes(v)), (v, $) => (t(), V(ye, {
|
|
447
|
+
key: `slot-${$}`,
|
|
441
448
|
class: "content__item content__item--reactive"
|
|
442
449
|
}, {
|
|
443
|
-
default:
|
|
444
|
-
A(
|
|
450
|
+
default: y(() => [
|
|
451
|
+
A(d.$slots, v, {}, void 0, !0)
|
|
445
452
|
]),
|
|
446
453
|
_: 2
|
|
447
454
|
}, 1024))), 128))
|
|
448
|
-
])) :
|
|
449
|
-
|
|
455
|
+
])) : b("", !0),
|
|
456
|
+
d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
|
|
450
457
|
key: 2,
|
|
451
458
|
class: "content__section",
|
|
452
|
-
onClick:
|
|
459
|
+
onClick: g[2] || (g[2] = (v) => a.value = !1)
|
|
453
460
|
}, [
|
|
454
|
-
(t(!0), l(P, null, H(d
|
|
455
|
-
key: `action-${
|
|
461
|
+
(t(!0), l(P, null, H(c(d.actions), (v, $) => (t(), V(ye, {
|
|
462
|
+
key: `action-${$}`,
|
|
456
463
|
class: "content__item content__item--reactive",
|
|
457
|
-
onClick: (
|
|
464
|
+
onClick: (f) => u(v, d.subject)
|
|
458
465
|
}, {
|
|
459
|
-
default:
|
|
466
|
+
default: y(() => [
|
|
460
467
|
L(Y, {
|
|
461
|
-
icon:
|
|
468
|
+
icon: v.icon || "gear"
|
|
462
469
|
}, {
|
|
463
|
-
default:
|
|
464
|
-
|
|
470
|
+
default: y(() => [
|
|
471
|
+
Q(C(v.translate ? e(q)(v.label, { capitalize: !0 }) : v.label), 1)
|
|
465
472
|
]),
|
|
466
473
|
_: 2
|
|
467
474
|
}, 1032, ["icon"])
|
|
468
475
|
]),
|
|
469
476
|
_: 2
|
|
470
477
|
}, 1032, ["onClick"]))), 128))
|
|
471
|
-
])) :
|
|
472
|
-
|
|
478
|
+
])) : b("", !0),
|
|
479
|
+
d.$slots.extra ? (t(), l("div", {
|
|
473
480
|
key: 3,
|
|
474
481
|
class: "content__section",
|
|
475
|
-
onClick:
|
|
482
|
+
onClick: g[3] || (g[3] = (v) => a.value = !1)
|
|
476
483
|
}, [
|
|
477
|
-
I("div",
|
|
478
|
-
|
|
484
|
+
I("div", mn, [
|
|
485
|
+
d.$slots.extra ? A(d.$slots, "extra", { key: 0 }, void 0, !0) : b("", !0)
|
|
479
486
|
])
|
|
480
|
-
])) :
|
|
487
|
+
])) : b("", !0)
|
|
481
488
|
])
|
|
482
489
|
]),
|
|
483
490
|
_: 3
|
|
484
491
|
}, 8, ["modelValue"])), [
|
|
485
492
|
[
|
|
486
|
-
|
|
493
|
+
i,
|
|
487
494
|
{
|
|
488
|
-
layer:
|
|
495
|
+
layer: d.overlayLayer,
|
|
489
496
|
click: () => {
|
|
490
497
|
a.value = !1;
|
|
491
498
|
}
|
|
@@ -494,11 +501,12 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
494
501
|
{ invisibleOnLarge: !0 }
|
|
495
502
|
]
|
|
496
503
|
])
|
|
497
|
-
])) :
|
|
504
|
+
])) : b("", !0)
|
|
498
505
|
], 64);
|
|
499
506
|
};
|
|
500
507
|
}
|
|
501
|
-
})
|
|
508
|
+
});
|
|
509
|
+
const Ie = /* @__PURE__ */ D(fn, [["__scopeId", "data-v-34fb8e38"]]), vn = { class: "info__content" }, yn = /* @__PURE__ */ z({
|
|
502
510
|
__name: "aeria-info",
|
|
503
511
|
props: {
|
|
504
512
|
where: { default: "top" }
|
|
@@ -508,7 +516,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
508
516
|
return (n, a) => e(r).md ? (t(), l("div", {
|
|
509
517
|
key: 0,
|
|
510
518
|
class: "info",
|
|
511
|
-
onMouseleave: a[1] || (a[1] = (
|
|
519
|
+
onMouseleave: a[1] || (a[1] = (c) => o.value = !1)
|
|
512
520
|
}, [
|
|
513
521
|
o.value ? (t(), l("div", {
|
|
514
522
|
key: 0,
|
|
@@ -517,27 +525,28 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
517
525
|
`info__bubble--${n.where}`
|
|
518
526
|
])
|
|
519
527
|
}, [
|
|
520
|
-
I("div",
|
|
528
|
+
I("div", vn, [
|
|
521
529
|
A(n.$slots, "text", {}, void 0, !0)
|
|
522
530
|
])
|
|
523
|
-
], 2)) :
|
|
531
|
+
], 2)) : b("", !0),
|
|
524
532
|
I("div", {
|
|
525
|
-
onMouseover: a[0] || (a[0] = (
|
|
533
|
+
onMouseover: a[0] || (a[0] = (c) => o.value = !0)
|
|
526
534
|
}, [
|
|
527
535
|
A(n.$slots, "default", {}, void 0, !0)
|
|
528
536
|
], 32)
|
|
529
537
|
], 32)) : A(n.$slots, "default", { key: 1 }, void 0, !0);
|
|
530
538
|
}
|
|
531
|
-
})
|
|
539
|
+
});
|
|
540
|
+
const bn = /* @__PURE__ */ D(yn, [["__scopeId", "data-v-15a38847"]]), hn = { class: "input" }, gn = {
|
|
532
541
|
key: 0,
|
|
533
542
|
class: "input__label"
|
|
534
|
-
},
|
|
543
|
+
}, $n = {
|
|
535
544
|
key: 1,
|
|
536
545
|
class: "input__hint"
|
|
537
546
|
}, kn = ["placeholder", "readonly", "value"], Vn = ["value"], Cn = {
|
|
538
547
|
key: 1,
|
|
539
548
|
class: "input__clipboard"
|
|
540
|
-
}, On = /* @__PURE__ */
|
|
549
|
+
}, On = /* @__PURE__ */ z({
|
|
541
550
|
__name: "aeria-input",
|
|
542
551
|
props: {
|
|
543
552
|
modelValue: {},
|
|
@@ -552,9 +561,9 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
552
561
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
553
562
|
setup(p, { emit: r }) {
|
|
554
563
|
var Z;
|
|
555
|
-
const o = p, n = r, a = o.property || {},
|
|
564
|
+
const o = p, n = r, a = o.property || {}, c = "icon" in a || "inputType" in a && a.inputType === "search", u = fe("searchOnly", !1), _ = fe("innerInputLabel", !1), d = !u && (o.readOnly || a.readOnly), g = (h) => (n("clipboardCopy", h), navigator.clipboard.writeText(h)), i = fe("inputVariant", o.variant) || "normal", v = Object.assign(Object.assign({}, o), {
|
|
556
565
|
name: o.propertyName,
|
|
557
|
-
readonly:
|
|
566
|
+
readonly: d,
|
|
558
567
|
type: (() => {
|
|
559
568
|
if ("type" in a)
|
|
560
569
|
switch (a.type) {
|
|
@@ -573,96 +582,96 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
573
582
|
return "text";
|
|
574
583
|
}
|
|
575
584
|
})(),
|
|
576
|
-
placeholder:
|
|
585
|
+
placeholder: _ ? a.description || o.propertyName : a.placeholder
|
|
577
586
|
});
|
|
578
|
-
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (
|
|
579
|
-
o.modelValue !== null &&
|
|
587
|
+
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (v.min = a.minimum), a.exclusiveMinimum && (v.min = a.exclusiveMinimum + 1), a.maximum && (v.max = a.maximum), a.exclusiveMaximum && (v.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (v.type = !u && a.format === "date-time" ? "datetime-local" : "date"), v.minlength = a.minLength, v.maxlength = a.maxLength)), v.type === "text" && u && (v.type = "search"), We(() => {
|
|
588
|
+
o.modelValue !== null && M(o.modelValue);
|
|
580
589
|
});
|
|
581
|
-
const
|
|
582
|
-
if (typeof
|
|
583
|
-
return
|
|
584
|
-
if (!(
|
|
590
|
+
const $ = (h) => {
|
|
591
|
+
if (typeof h == "string")
|
|
592
|
+
return h;
|
|
593
|
+
if (!(h instanceof Date))
|
|
585
594
|
return "";
|
|
586
|
-
switch (
|
|
595
|
+
switch (v.type) {
|
|
587
596
|
case "date":
|
|
588
|
-
return
|
|
597
|
+
return h.toISOString().slice(0, 10);
|
|
589
598
|
case "datetime-local":
|
|
590
|
-
return
|
|
599
|
+
return h.toISOString().slice(0, 19);
|
|
591
600
|
default:
|
|
592
601
|
throw new Error();
|
|
593
602
|
}
|
|
594
|
-
},
|
|
595
|
-
ue(() => o.modelValue, (
|
|
596
|
-
|
|
603
|
+
}, f = ee(""), B = ((Z = o.property) == null ? void 0 : Z.type) === "string" && o.property.mask ? wt(o.property.mask) : null;
|
|
604
|
+
ue(() => o.modelValue, (h) => {
|
|
605
|
+
f.value = (() => {
|
|
597
606
|
if (B)
|
|
598
|
-
return
|
|
607
|
+
return h ? B.enmask(String(h), void 0, {
|
|
599
608
|
defaultValue: !0
|
|
600
609
|
}) : "";
|
|
601
|
-
switch (
|
|
610
|
+
switch (v.type) {
|
|
602
611
|
case "date":
|
|
603
612
|
case "datetime-local":
|
|
604
|
-
return
|
|
613
|
+
return $(h);
|
|
605
614
|
}
|
|
606
|
-
switch (
|
|
615
|
+
switch (h) {
|
|
607
616
|
case null:
|
|
608
617
|
case void 0:
|
|
609
618
|
return "";
|
|
610
619
|
default:
|
|
611
|
-
return
|
|
620
|
+
return h;
|
|
612
621
|
}
|
|
613
622
|
})();
|
|
614
623
|
}, {
|
|
615
624
|
immediate: !0
|
|
616
625
|
});
|
|
617
|
-
const
|
|
626
|
+
const s = (h) => {
|
|
618
627
|
var G;
|
|
619
|
-
return typeof
|
|
628
|
+
return typeof f.value == "string" && ((G = o.property) == null ? void 0 : G.type) === "string" && B !== null ? (f.value = B.enmask(f.value, void 0, {
|
|
620
629
|
defaultValue: !0
|
|
621
|
-
}), o.property.maskedValue === !0 ?
|
|
622
|
-
},
|
|
630
|
+
}), o.property.maskedValue === !0 ? f.value : B.unmask(f.value)) : h;
|
|
631
|
+
}, M = (h) => {
|
|
623
632
|
const G = (() => {
|
|
624
|
-
if (!
|
|
625
|
-
return
|
|
626
|
-
switch (
|
|
633
|
+
if (!h || typeof h != "string")
|
|
634
|
+
return h;
|
|
635
|
+
switch (v.type) {
|
|
627
636
|
case "number":
|
|
628
637
|
case "integer":
|
|
629
|
-
return Number(
|
|
638
|
+
return Number(h);
|
|
630
639
|
case "date":
|
|
631
640
|
case "date-time":
|
|
632
|
-
return
|
|
641
|
+
return h;
|
|
633
642
|
default:
|
|
634
|
-
return
|
|
643
|
+
return s(h);
|
|
635
644
|
}
|
|
636
645
|
})();
|
|
637
646
|
n("input", G), n("update:modelValue", G);
|
|
638
|
-
}, E = (
|
|
639
|
-
const G =
|
|
640
|
-
|
|
647
|
+
}, E = (h) => {
|
|
648
|
+
const G = h.target.value;
|
|
649
|
+
f.value = G, M(G);
|
|
641
650
|
};
|
|
642
|
-
return (
|
|
651
|
+
return (h, G) => {
|
|
643
652
|
const oe = ne("focus"), w = ne("clickable");
|
|
644
|
-
return t(), l("label",
|
|
645
|
-
e(
|
|
646
|
-
|
|
653
|
+
return t(), l("label", hn, [
|
|
654
|
+
e(_) ? b("", !0) : (t(), l("div", gn, [
|
|
655
|
+
h.$slots.default ? A(h.$slots, "default", { key: 0 }, void 0, !0) : A(h.$slots, "description", { key: 1 }, void 0, !0)
|
|
647
656
|
])),
|
|
648
|
-
|
|
649
|
-
A(
|
|
650
|
-
])) :
|
|
657
|
+
h.$slots.hint ? (t(), l("div", $n, [
|
|
658
|
+
A(h.$slots, "hint", {}, void 0, !0)
|
|
659
|
+
])) : b("", !0),
|
|
651
660
|
"element" in e(a) && e(a).element === "textarea" ? (t(), l("div", {
|
|
652
661
|
key: 2,
|
|
653
662
|
class: W([
|
|
654
663
|
"input__container",
|
|
655
664
|
"input__container--textarea",
|
|
656
|
-
`input__container--${e(
|
|
665
|
+
`input__container--${e(i)}`
|
|
657
666
|
])
|
|
658
667
|
}, [
|
|
659
668
|
J(I("textarea", {
|
|
660
|
-
placeholder: e(
|
|
661
|
-
readonly: e(
|
|
662
|
-
value:
|
|
669
|
+
placeholder: e(v).placeholder,
|
|
670
|
+
readonly: e(v).readonly,
|
|
671
|
+
value: h.modelValue,
|
|
663
672
|
class: W([
|
|
664
673
|
"input__textarea",
|
|
665
|
-
`input__input--${e(
|
|
674
|
+
`input__input--${e(i)}`
|
|
666
675
|
]),
|
|
667
676
|
onInput: E
|
|
668
677
|
}, null, 42, kn), [
|
|
@@ -672,56 +681,57 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
672
681
|
key: 3,
|
|
673
682
|
class: W([
|
|
674
683
|
"input__container",
|
|
675
|
-
`input__container--${e(
|
|
684
|
+
`input__container--${e(i)}`
|
|
676
685
|
])
|
|
677
686
|
}, [
|
|
678
|
-
J(I("input", U(e(
|
|
679
|
-
value:
|
|
687
|
+
J(I("input", U(e(v), {
|
|
688
|
+
value: f.value,
|
|
680
689
|
"data-component": "input",
|
|
681
690
|
class: [
|
|
682
691
|
"input__input",
|
|
683
|
-
`input__input--${e(
|
|
684
|
-
{ "input__input--icon": e(
|
|
685
|
-
{ "input__input--readOnly": e(
|
|
692
|
+
`input__input--${e(i)}`,
|
|
693
|
+
{ "input__input--icon": e(c) },
|
|
694
|
+
{ "input__input--readOnly": e(d) }
|
|
686
695
|
],
|
|
687
696
|
onInput: E,
|
|
688
697
|
onChange: G[0] || (G[0] = (te) => n("change", te))
|
|
689
698
|
}), null, 16, Vn), [
|
|
690
699
|
[oe, e(a).focus]
|
|
691
700
|
]),
|
|
692
|
-
e(
|
|
701
|
+
e(c) ? (t(), V(Y, {
|
|
693
702
|
key: 0,
|
|
694
703
|
icon: e(a).icon || "magnifying-glass",
|
|
695
704
|
class: W([
|
|
696
705
|
"input__icon",
|
|
697
|
-
`input__icon--${e(
|
|
706
|
+
`input__icon--${e(i)}`
|
|
698
707
|
])
|
|
699
|
-
}, null, 8, ["icon", "class"])) :
|
|
700
|
-
e(
|
|
701
|
-
L(
|
|
702
|
-
text:
|
|
703
|
-
|
|
708
|
+
}, null, 8, ["icon", "class"])) : b("", !0),
|
|
709
|
+
e(d) ? (t(), l("div", Cn, [
|
|
710
|
+
L(bn, null, {
|
|
711
|
+
text: y(() => G[2] || (G[2] = [
|
|
712
|
+
Q("Copiar")
|
|
704
713
|
])),
|
|
705
|
-
default:
|
|
714
|
+
default: y(() => [
|
|
706
715
|
J(L(Y, {
|
|
707
716
|
reactive: "",
|
|
708
717
|
icon: "clipboard",
|
|
709
|
-
onClick: G[1] || (G[1] = Re((te) =>
|
|
718
|
+
onClick: G[1] || (G[1] = Re((te) => g(String(h.modelValue || "")), ["prevent"]))
|
|
710
719
|
}, null, 512), [
|
|
711
720
|
[w]
|
|
712
721
|
])
|
|
713
722
|
]),
|
|
714
723
|
_: 1
|
|
715
724
|
})
|
|
716
|
-
])) :
|
|
725
|
+
])) : b("", !0)
|
|
717
726
|
], 2))
|
|
718
727
|
]);
|
|
719
728
|
};
|
|
720
729
|
}
|
|
721
|
-
})
|
|
730
|
+
});
|
|
731
|
+
const Oe = /* @__PURE__ */ D(On, [["__scopeId", "data-v-b4ebd684"]]), An = {
|
|
722
732
|
key: 1,
|
|
723
733
|
value: ""
|
|
724
|
-
}, In = ["value", "data-selected"], Bn = /* @__PURE__ */
|
|
734
|
+
}, In = ["value", "data-selected"], Bn = /* @__PURE__ */ z({
|
|
725
735
|
__name: "aeria-select",
|
|
726
736
|
props: {
|
|
727
737
|
modelValue: {},
|
|
@@ -737,54 +747,55 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
737
747
|
},
|
|
738
748
|
emits: ["update:modelValue", "change"],
|
|
739
749
|
setup(p, { emit: r }) {
|
|
740
|
-
const o = p, n = r, a = ee(null),
|
|
741
|
-
n("update:modelValue",
|
|
742
|
-
},
|
|
743
|
-
|
|
744
|
-
},
|
|
745
|
-
return o.multiple && ue(() => o.modelValue, (
|
|
746
|
-
var
|
|
750
|
+
const o = p, n = r, a = ee(null), c = o.property, u = (i) => {
|
|
751
|
+
n("update:modelValue", i), n("change", i);
|
|
752
|
+
}, _ = (i) => {
|
|
753
|
+
i === "" || i === null ? u(null) : o.booleanRef ? u(i === "true") : u(i);
|
|
754
|
+
}, d = (i) => Array.isArray(o.modelValue) ? o.modelValue.includes(i) : o.modelValue === i, g = K(() => o.multiple ? typeof o.multiple == "number" ? o.multiple : 5 : 1);
|
|
755
|
+
return o.multiple && ue(() => o.modelValue, (i) => {
|
|
756
|
+
var $;
|
|
747
757
|
if (!a.value)
|
|
748
758
|
return;
|
|
749
|
-
const
|
|
750
|
-
|
|
751
|
-
}), (
|
|
759
|
+
const v = a.value.querySelector('option[data-selected="true"]');
|
|
760
|
+
v && v.removeAttribute("data-selected"), ($ = a.value.querySelector(`option[value="${i}"]`)) == null || $.setAttribute("data-selected", "true");
|
|
761
|
+
}), (i, v) => i.readOnly ? (t(), V(Oe, {
|
|
752
762
|
key: 1,
|
|
753
763
|
"read-only": "",
|
|
754
|
-
"model-value":
|
|
764
|
+
"model-value": i.modelValue
|
|
755
765
|
}, null, 8, ["model-value"])) : (t(), l("select", U({ key: 0 }, {
|
|
756
|
-
size:
|
|
757
|
-
value:
|
|
766
|
+
size: g.value,
|
|
767
|
+
value: i.modelValue
|
|
758
768
|
}, {
|
|
759
769
|
ref_key: "select",
|
|
760
770
|
ref: a,
|
|
761
771
|
class: {
|
|
762
772
|
select: !0,
|
|
763
|
-
"select--multiple":
|
|
764
|
-
"select--outline": !
|
|
773
|
+
"select--multiple": !!g.value,
|
|
774
|
+
"select--outline": !i.noOutline
|
|
765
775
|
},
|
|
766
|
-
onChange:
|
|
776
|
+
onChange: v[0] || (v[0] = ($) => _($.target.value))
|
|
767
777
|
}), [
|
|
768
|
-
e(
|
|
778
|
+
e(c) && e(c).icon ? (t(), V(Y, {
|
|
769
779
|
key: 0,
|
|
770
|
-
icon: e(
|
|
771
|
-
}, null, 8, ["icon"])) :
|
|
772
|
-
!o.multiple && !
|
|
773
|
-
(t(!0), l(P, null, H(e(
|
|
774
|
-
var
|
|
780
|
+
icon: e(c).icon
|
|
781
|
+
}, null, 8, ["icon"])) : b("", !0),
|
|
782
|
+
!o.multiple && !i.required ? (t(), l("option", An, C(e(q)("none")), 1)) : b("", !0),
|
|
783
|
+
(t(!0), l(P, null, H(e(c) && "enum" in e(c) ? e(c).enum : [], ($) => {
|
|
784
|
+
var f;
|
|
775
785
|
return t(), l("option", {
|
|
776
|
-
key: String(
|
|
777
|
-
value:
|
|
778
|
-
"data-selected":
|
|
779
|
-
}, C((
|
|
786
|
+
key: String($),
|
|
787
|
+
value: $,
|
|
788
|
+
"data-selected": d($)
|
|
789
|
+
}, C((f = e(c)) != null && f.translate ? e(q)($) : $), 9, In);
|
|
780
790
|
}), 128)),
|
|
781
|
-
A(
|
|
791
|
+
A(i.$slots, "default", {}, void 0, !0)
|
|
782
792
|
], 16));
|
|
783
793
|
}
|
|
784
|
-
})
|
|
794
|
+
});
|
|
795
|
+
const Xe = /* @__PURE__ */ D(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { class: "pagination" }, wn = { class: "pagination__arrows" }, Tn = ["value"], jn = {
|
|
785
796
|
key: 0,
|
|
786
797
|
class: "pagination__summary"
|
|
787
|
-
}, Rn = /* @__PURE__ */
|
|
798
|
+
}, Rn = /* @__PURE__ */ z({
|
|
788
799
|
__name: "aeria-pagination",
|
|
789
800
|
props: {
|
|
790
801
|
pagination: {},
|
|
@@ -794,103 +805,104 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
794
805
|
setup(p, { emit: r }) {
|
|
795
806
|
const o = p, n = r, a = K({
|
|
796
807
|
get: () => Math.floor(o.pagination.offset / o.pagination.limit),
|
|
797
|
-
set: (
|
|
798
|
-
o.pagination.offset =
|
|
808
|
+
set: (g) => {
|
|
809
|
+
o.pagination.offset = g * o.pagination.limit;
|
|
799
810
|
}
|
|
800
|
-
}),
|
|
811
|
+
}), c = K({
|
|
801
812
|
get: () => o.pagination.limit,
|
|
802
|
-
set: (
|
|
803
|
-
o.pagination.limit = Number(
|
|
813
|
+
set: (g) => {
|
|
814
|
+
o.pagination.limit = Number(g);
|
|
804
815
|
}
|
|
805
|
-
}), u = ee(a.value ? a.value + 1 : 1),
|
|
806
|
-
a.value =
|
|
816
|
+
}), u = ee(a.value ? a.value + 1 : 1), _ = K(() => Math.ceil(o.pagination.recordsTotal / o.pagination.limit)), d = (g) => {
|
|
817
|
+
a.value = g === "previous" ? a.value - 1 : a.value + 1;
|
|
807
818
|
};
|
|
808
819
|
return ue([
|
|
809
820
|
a,
|
|
810
|
-
|
|
811
|
-
], ([
|
|
812
|
-
u.value =
|
|
813
|
-
offset: a.value *
|
|
814
|
-
limit:
|
|
821
|
+
c
|
|
822
|
+
], ([g]) => {
|
|
823
|
+
u.value = g + 1, n("paginate", {
|
|
824
|
+
offset: a.value * c.value,
|
|
825
|
+
limit: c.value
|
|
815
826
|
});
|
|
816
|
-
}), (
|
|
827
|
+
}), (g, i) => (t(), l("div", Sn, [
|
|
817
828
|
I("div", wn, [
|
|
818
|
-
L(
|
|
829
|
+
L(ye, {
|
|
819
830
|
disabled: a.value === 0,
|
|
820
|
-
onClick:
|
|
831
|
+
onClick: i[0] || (i[0] = (v) => a.value = 0)
|
|
821
832
|
}, {
|
|
822
|
-
default:
|
|
833
|
+
default: y(() => [
|
|
823
834
|
L(Y, { icon: "caret-double-left" })
|
|
824
835
|
]),
|
|
825
836
|
_: 1
|
|
826
837
|
}, 8, ["disabled"]),
|
|
827
|
-
L(
|
|
838
|
+
L(ye, {
|
|
828
839
|
disabled: a.value === 0,
|
|
829
|
-
onClick:
|
|
840
|
+
onClick: i[1] || (i[1] = (v) => d("previous"))
|
|
830
841
|
}, {
|
|
831
|
-
default:
|
|
842
|
+
default: y(() => [
|
|
832
843
|
L(Y, { icon: "caret-left" })
|
|
833
844
|
]),
|
|
834
845
|
_: 1
|
|
835
846
|
}, 8, ["disabled"]),
|
|
836
|
-
L(
|
|
837
|
-
disabled: a.value ===
|
|
838
|
-
onClick:
|
|
847
|
+
L(ye, {
|
|
848
|
+
disabled: a.value === _.value - 1,
|
|
849
|
+
onClick: i[2] || (i[2] = (v) => d("next"))
|
|
839
850
|
}, {
|
|
840
|
-
default:
|
|
851
|
+
default: y(() => [
|
|
841
852
|
L(Y, { icon: "caret-right" })
|
|
842
853
|
]),
|
|
843
854
|
_: 1
|
|
844
855
|
}, 8, ["disabled"]),
|
|
845
|
-
L(
|
|
846
|
-
disabled: a.value ===
|
|
847
|
-
onClick:
|
|
856
|
+
L(ye, {
|
|
857
|
+
disabled: a.value === _.value - 1,
|
|
858
|
+
onClick: i[3] || (i[3] = (v) => a.value = _.value - 1)
|
|
848
859
|
}, {
|
|
849
|
-
default:
|
|
860
|
+
default: y(() => [
|
|
850
861
|
L(Y, { icon: "caret-double-right" })
|
|
851
862
|
]),
|
|
852
863
|
_: 1
|
|
853
864
|
}, 8, ["disabled"]),
|
|
854
865
|
L(Xe, {
|
|
855
|
-
modelValue:
|
|
856
|
-
"onUpdate:modelValue":
|
|
866
|
+
modelValue: c.value,
|
|
867
|
+
"onUpdate:modelValue": i[4] || (i[4] = (v) => c.value = v),
|
|
857
868
|
property: {
|
|
858
869
|
enum: [],
|
|
859
870
|
icon: "list"
|
|
860
871
|
},
|
|
861
872
|
class: "pagination__control"
|
|
862
873
|
}, {
|
|
863
|
-
default:
|
|
864
|
-
(t(!0), l(P, null, H(e(
|
|
865
|
-
key: `limit-${
|
|
866
|
-
value:
|
|
867
|
-
}, C(
|
|
874
|
+
default: y(() => [
|
|
875
|
+
(t(!0), l(P, null, H(e(Tt), (v) => (t(), l("option", {
|
|
876
|
+
key: `limit-${v}`,
|
|
877
|
+
value: v
|
|
878
|
+
}, C(v), 9, Tn))), 128))
|
|
868
879
|
]),
|
|
869
880
|
_: 1
|
|
870
881
|
}, 8, ["modelValue"])
|
|
871
882
|
]),
|
|
872
|
-
|
|
873
|
-
|
|
883
|
+
g.noSummary ? b("", !0) : (t(), l("div", jn, [
|
|
884
|
+
Q(C(e(q)("Page")) + " ", 1),
|
|
874
885
|
(t(), V(Oe, {
|
|
875
886
|
key: a.value,
|
|
876
887
|
modelValue: u.value,
|
|
877
|
-
"onUpdate:modelValue":
|
|
888
|
+
"onUpdate:modelValue": i[5] || (i[5] = (v) => u.value = v),
|
|
878
889
|
property: {
|
|
879
890
|
type: "number",
|
|
880
891
|
minimum: 1
|
|
881
892
|
},
|
|
882
893
|
style: { height: "100%" },
|
|
883
|
-
onChange:
|
|
894
|
+
onChange: i[6] || (i[6] = (v) => {
|
|
884
895
|
a.value = u.value === 0 ? 0 : u.value - 1;
|
|
885
896
|
})
|
|
886
897
|
}, null, 8, ["modelValue"])),
|
|
887
|
-
I("span", null, C(e(q)("of")) + " " + C(
|
|
898
|
+
I("span", null, C(e(q)("of")) + " " + C(_.value), 1)
|
|
888
899
|
]))
|
|
889
900
|
]));
|
|
890
901
|
}
|
|
891
|
-
})
|
|
902
|
+
});
|
|
903
|
+
const qn = /* @__PURE__ */ D(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { class: "checkbox__text" }, Mn = ["innerHTML"], zn = { class: "checkbox__hint" }, Fn = ["innerHTML"], Un = {
|
|
892
904
|
inheritAttrs: !1
|
|
893
|
-
}, En = /* @__PURE__ */
|
|
905
|
+
}, En = /* @__PURE__ */ z({
|
|
894
906
|
...Un,
|
|
895
907
|
__name: "aeria-checkbox",
|
|
896
908
|
props: {
|
|
@@ -906,7 +918,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
906
918
|
},
|
|
907
919
|
emits: ["update:modelValue", "change"],
|
|
908
920
|
setup(p, { emit: r }) {
|
|
909
|
-
const o = p, n = o.property, a = o.readOnly || (n == null ? void 0 : n.readOnly),
|
|
921
|
+
const o = p, n = o.property, a = o.readOnly || (n == null ? void 0 : n.readOnly), c = (() => {
|
|
910
922
|
if (n && "type" in n)
|
|
911
923
|
switch (n.type) {
|
|
912
924
|
case "array":
|
|
@@ -914,19 +926,19 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
914
926
|
return "checkbox";
|
|
915
927
|
}
|
|
916
928
|
return "radio";
|
|
917
|
-
})(), u = r,
|
|
929
|
+
})(), u = r, _ = o.value || !1, d = K({
|
|
918
930
|
get: () => {
|
|
919
|
-
var
|
|
931
|
+
var i;
|
|
920
932
|
if (n) {
|
|
921
933
|
if ("type" in n && n.type === "boolean")
|
|
922
934
|
return !!o.value;
|
|
923
935
|
if ("items" in n)
|
|
924
|
-
return (
|
|
936
|
+
return (i = o.modelValue) == null ? void 0 : i.includes(o.value);
|
|
925
937
|
}
|
|
926
938
|
return o.modelValue === o.value;
|
|
927
939
|
},
|
|
928
940
|
set: () => {
|
|
929
|
-
var
|
|
941
|
+
var i;
|
|
930
942
|
if (!a) {
|
|
931
943
|
if (n) {
|
|
932
944
|
if ("type" in n && n.type === "boolean") {
|
|
@@ -934,23 +946,23 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
934
946
|
return;
|
|
935
947
|
}
|
|
936
948
|
if ("items" in n) {
|
|
937
|
-
if ((
|
|
938
|
-
u("update:modelValue", o.modelValue.filter((
|
|
949
|
+
if ((i = o.modelValue) != null && i.includes(_)) {
|
|
950
|
+
u("update:modelValue", o.modelValue.filter((v) => v !== _));
|
|
939
951
|
return;
|
|
940
952
|
}
|
|
941
|
-
u("update:modelValue", [
|
|
953
|
+
u("update:modelValue", [_].concat(o.modelValue || []));
|
|
942
954
|
return;
|
|
943
955
|
}
|
|
944
956
|
}
|
|
945
957
|
u("update:modelValue", o.value);
|
|
946
958
|
}
|
|
947
959
|
}
|
|
948
|
-
}),
|
|
949
|
-
a &&
|
|
960
|
+
}), g = (i) => {
|
|
961
|
+
a && i.preventDefault();
|
|
950
962
|
};
|
|
951
|
-
return (
|
|
952
|
-
var
|
|
953
|
-
const
|
|
963
|
+
return (i, v) => {
|
|
964
|
+
var f, B;
|
|
965
|
+
const $ = ne("clickable");
|
|
954
966
|
return J((t(), l("label", {
|
|
955
967
|
class: W([
|
|
956
968
|
"checkbox",
|
|
@@ -958,39 +970,40 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
958
970
|
])
|
|
959
971
|
}, [
|
|
960
972
|
J(I("input", U({
|
|
961
|
-
"onUpdate:modelValue":
|
|
973
|
+
"onUpdate:modelValue": v[0] || (v[0] = (s) => d.value = s)
|
|
962
974
|
}, {
|
|
963
|
-
type: e(
|
|
975
|
+
type: e(c),
|
|
964
976
|
readOnly: e(a),
|
|
965
|
-
checked:
|
|
977
|
+
checked: d.value
|
|
966
978
|
}, {
|
|
967
979
|
class: "checkbox__input",
|
|
968
|
-
onClick:
|
|
980
|
+
onClick: g
|
|
969
981
|
}), null, 16), [
|
|
970
|
-
[
|
|
982
|
+
[$t, d.value]
|
|
971
983
|
]),
|
|
972
984
|
I("div", Ln, [
|
|
973
985
|
I("div", null, [
|
|
974
|
-
|
|
986
|
+
i.$slots.description ? A(i.$slots, "description", { key: 0 }, void 0, !0) : e(_) ? (t(), l("div", {
|
|
975
987
|
key: 1,
|
|
976
|
-
innerHTML: (
|
|
977
|
-
}, null, 8,
|
|
988
|
+
innerHTML: (f = e(n)) != null && f.translate ? e(q)(e(_)) : e(_)
|
|
989
|
+
}, null, 8, Mn)) : A(i.$slots, "default", { key: 2 }, void 0, !0)
|
|
978
990
|
]),
|
|
979
|
-
I("div",
|
|
980
|
-
|
|
991
|
+
I("div", zn, [
|
|
992
|
+
i.$slots.hint ? A(i.$slots, "hint", { key: 0 }, void 0, !0) : (B = e(n)) != null && B.hint ? (t(), l("div", {
|
|
981
993
|
key: 1,
|
|
982
994
|
innerHTML: e(n).hint
|
|
983
|
-
}, null, 8, Fn)) :
|
|
995
|
+
}, null, 8, Fn)) : b("", !0)
|
|
984
996
|
])
|
|
985
997
|
])
|
|
986
998
|
], 2)), [
|
|
987
|
-
[
|
|
999
|
+
[$]
|
|
988
1000
|
]);
|
|
989
1001
|
};
|
|
990
1002
|
}
|
|
991
|
-
})
|
|
1003
|
+
});
|
|
1004
|
+
const Hn = /* @__PURE__ */ D(En, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
|
|
992
1005
|
inheritAttrs: !1
|
|
993
|
-
}, Qn = /* @__PURE__ */
|
|
1006
|
+
}, Qn = /* @__PURE__ */ z({
|
|
994
1007
|
...Dn,
|
|
995
1008
|
__name: "aeria-options",
|
|
996
1009
|
props: {
|
|
@@ -1005,39 +1018,40 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1005
1018
|
},
|
|
1006
1019
|
emits: ["update:modelValue"],
|
|
1007
1020
|
setup(p, { emit: r }) {
|
|
1008
|
-
const o = p, n = r, a = o.readOnly || o.property.readOnly,
|
|
1009
|
-
n("update:modelValue",
|
|
1021
|
+
const o = p, n = r, a = o.readOnly || o.property.readOnly, c = "items" in o.property ? o.property.items.enum : o.property.enum, u = (_) => {
|
|
1022
|
+
n("update:modelValue", _);
|
|
1010
1023
|
};
|
|
1011
|
-
return
|
|
1024
|
+
return ft(() => {
|
|
1012
1025
|
o.modelValue || n(
|
|
1013
1026
|
"update:modelValue",
|
|
1014
1027
|
"items" in o.property ? [] : ""
|
|
1015
1028
|
);
|
|
1016
|
-
}), (
|
|
1029
|
+
}), (_, d) => (t(), l("div", {
|
|
1017
1030
|
class: "options",
|
|
1018
|
-
style:
|
|
1019
|
-
--columns: ${
|
|
1031
|
+
style: $e(`
|
|
1032
|
+
--columns: ${_.columns};
|
|
1020
1033
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1021
1034
|
`)
|
|
1022
1035
|
}, [
|
|
1023
|
-
(t(!0), l(P, null, H(e(
|
|
1024
|
-
key: `option-${
|
|
1036
|
+
(t(!0), l(P, null, H(e(c), (g) => (t(), l("div", {
|
|
1037
|
+
key: `option-${g}`,
|
|
1025
1038
|
class: "options__checkbox"
|
|
1026
1039
|
}, [
|
|
1027
1040
|
L(Hn, U({ ref_for: !0 }, {
|
|
1028
|
-
value:
|
|
1041
|
+
value: g,
|
|
1029
1042
|
readOnly: e(a),
|
|
1030
|
-
property:
|
|
1043
|
+
property: _.property
|
|
1031
1044
|
}, {
|
|
1032
|
-
"model-value":
|
|
1045
|
+
"model-value": _.modelValue,
|
|
1033
1046
|
"onUpdate:modelValue": u
|
|
1034
1047
|
}), null, 16, ["model-value"])
|
|
1035
1048
|
]))), 128))
|
|
1036
1049
|
], 4));
|
|
1037
1050
|
}
|
|
1038
|
-
})
|
|
1051
|
+
});
|
|
1052
|
+
const Gn = /* @__PURE__ */ D(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { class: "switch-wrapper" }, Yn = { key: 1 }, Kn = {
|
|
1039
1053
|
inheritAttrs: !1
|
|
1040
|
-
}, Xn = /* @__PURE__ */
|
|
1054
|
+
}, Xn = /* @__PURE__ */ z({
|
|
1041
1055
|
...Kn,
|
|
1042
1056
|
__name: "aeria-switch",
|
|
1043
1057
|
props: {
|
|
@@ -1051,41 +1065,42 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1051
1065
|
},
|
|
1052
1066
|
emits: ["update:modelValue", "change"],
|
|
1053
1067
|
setup(p, { emit: r }) {
|
|
1054
|
-
const o = p, n = r, a = o.property,
|
|
1055
|
-
|
|
1068
|
+
const o = p, n = r, a = o.property, c = o.readOnly || (a == null ? void 0 : a.readOnly), u = () => {
|
|
1069
|
+
c || (n("change", !o.modelValue), n("update:modelValue", !o.modelValue));
|
|
1056
1070
|
};
|
|
1057
|
-
return (
|
|
1058
|
-
var
|
|
1059
|
-
const
|
|
1071
|
+
return (_, d) => {
|
|
1072
|
+
var i;
|
|
1073
|
+
const g = ne("clickable");
|
|
1060
1074
|
return t(), l("div", Wn, [
|
|
1061
1075
|
J((t(), l("a", {
|
|
1062
1076
|
class: W([
|
|
1063
1077
|
"switch",
|
|
1064
|
-
{ "switch--active":
|
|
1065
|
-
{ "switch--readOnly": e(
|
|
1078
|
+
{ "switch--active": _.modelValue },
|
|
1079
|
+
{ "switch--readOnly": e(c) }
|
|
1066
1080
|
]),
|
|
1067
1081
|
onClick: Re(u, ["stop"])
|
|
1068
1082
|
}, [
|
|
1069
|
-
|
|
1083
|
+
d[0] || (d[0] = I("div", { class: "switch__slider" }, null, -1)),
|
|
1070
1084
|
I("div", {
|
|
1071
1085
|
class: W([
|
|
1072
1086
|
"switch__dummy",
|
|
1073
|
-
{ "switch__dummy--flex": !
|
|
1087
|
+
{ "switch__dummy--flex": !_.modelValue }
|
|
1074
1088
|
])
|
|
1075
1089
|
}, null, 2)
|
|
1076
1090
|
], 2)), [
|
|
1077
|
-
[
|
|
1078
|
-
blocked: e(
|
|
1091
|
+
[g, {
|
|
1092
|
+
blocked: e(c)
|
|
1079
1093
|
}]
|
|
1080
1094
|
]),
|
|
1081
|
-
|
|
1095
|
+
_.$slots.default ? A(_.$slots, "default", { key: 0 }, void 0, !0) : (t(), l("div", Yn, C(((i = e(a)) == null ? void 0 : i.description) || _.propertyName), 1))
|
|
1082
1096
|
]);
|
|
1083
1097
|
};
|
|
1084
1098
|
}
|
|
1085
|
-
})
|
|
1099
|
+
});
|
|
1100
|
+
const Jn = /* @__PURE__ */ D(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { class: "picture" }, Pn = { style: { position: "fixed", top: "50%", left: "50%", transform: "translate(-50%, -50%)" } }, Nn = ["src", "alt"], xn = {
|
|
1086
1101
|
key: 0,
|
|
1087
1102
|
class: "picture__meta"
|
|
1088
|
-
}, eo = ["src"], to = { key: 5 }, no = /* @__PURE__ */
|
|
1103
|
+
}, eo = ["src"], to = { key: 5 }, no = /* @__PURE__ */ z({
|
|
1089
1104
|
__name: "aeria-picture",
|
|
1090
1105
|
props: {
|
|
1091
1106
|
url: {},
|
|
@@ -1100,9 +1115,9 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1100
1115
|
meta: {}
|
|
1101
1116
|
},
|
|
1102
1117
|
setup(p) {
|
|
1103
|
-
const r = p, o = K(() => r.fileId ? `${
|
|
1104
|
-
return (a,
|
|
1105
|
-
var
|
|
1118
|
+
const r = p, o = K(() => r.fileId ? `${vt}/file/${r.fileId}/picture` : r.url || r.modelValue), n = ee(!1);
|
|
1119
|
+
return (a, c) => {
|
|
1120
|
+
var _;
|
|
1106
1121
|
const u = ne("overlay");
|
|
1107
1122
|
return t(), l("figure", Zn, [
|
|
1108
1123
|
o.value && n.value ? (t(), V(Ge, {
|
|
@@ -1117,9 +1132,9 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1117
1132
|
max-height: 60vh;
|
|
1118
1133
|
object-fit: contain;
|
|
1119
1134
|
`,
|
|
1120
|
-
onClick:
|
|
1135
|
+
onClick: c[0] || (c[0] = (d) => n.value = !0)
|
|
1121
1136
|
}, null, 8, Nn),
|
|
1122
|
-
(
|
|
1137
|
+
(_ = a.meta) != null && _.owner ? (t(), l("div", xn, C(a.t("created_by")) + " " + C(a.meta.owner.name) + " em " + C(a.formatDateTime(a.meta.created_at, { hours: !0 })), 1)) : b("", !0)
|
|
1123
1138
|
])), [
|
|
1124
1139
|
[u, {
|
|
1125
1140
|
layer: 60,
|
|
@@ -1128,7 +1143,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1128
1143
|
}
|
|
1129
1144
|
}]
|
|
1130
1145
|
])
|
|
1131
|
-
])) :
|
|
1146
|
+
])) : b("", !0),
|
|
1132
1147
|
o.value ? (t(), l("img", {
|
|
1133
1148
|
key: 1,
|
|
1134
1149
|
src: o.value,
|
|
@@ -1137,12 +1152,12 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1137
1152
|
{ "picture__image--bordered": a.bordered },
|
|
1138
1153
|
{ "picture__image--expandable": a.expandable }
|
|
1139
1154
|
]),
|
|
1140
|
-
style:
|
|
1155
|
+
style: $e(`
|
|
1141
1156
|
object-fit: ${a.objectFit || "cover"};
|
|
1142
1157
|
width: ${a.width || "100%"};
|
|
1143
1158
|
height: ${a.height || "100%"};
|
|
1144
1159
|
`),
|
|
1145
|
-
onClick:
|
|
1160
|
+
onClick: c[1] || (c[1] = () => {
|
|
1146
1161
|
a.expandable && (n.value = !0);
|
|
1147
1162
|
})
|
|
1148
1163
|
}, null, 14, eo)) : a.$slots.fallback ? A(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? A(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), l("svg", {
|
|
@@ -1153,12 +1168,12 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1153
1168
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1154
1169
|
viewBox: "0 0 200 200",
|
|
1155
1170
|
preserveAspectRatio: "none",
|
|
1156
|
-
style:
|
|
1171
|
+
style: $e(`
|
|
1157
1172
|
object-fit: ${a.objectFit || "cover"};
|
|
1158
1173
|
width: ${a.width || "100%"};
|
|
1159
1174
|
height: ${a.height || "100%"};
|
|
1160
1175
|
`)
|
|
1161
|
-
},
|
|
1176
|
+
}, c[2] || (c[2] = [
|
|
1162
1177
|
I("line", {
|
|
1163
1178
|
x1: "0",
|
|
1164
1179
|
y1: "0",
|
|
@@ -1178,30 +1193,31 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1178
1193
|
]), 6)),
|
|
1179
1194
|
a.$slots.caption ? (t(), l("figcaption", to, [
|
|
1180
1195
|
A(a.$slots, "caption", {}, void 0, !0)
|
|
1181
|
-
])) :
|
|
1196
|
+
])) : b("", !0)
|
|
1182
1197
|
]);
|
|
1183
1198
|
};
|
|
1184
1199
|
}
|
|
1185
|
-
})
|
|
1200
|
+
});
|
|
1201
|
+
const Ue = /* @__PURE__ */ D(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { class: "item" }, ao = { class: "item__presentation" }, lo = {
|
|
1186
1202
|
key: 1,
|
|
1187
1203
|
class: "item__name"
|
|
1188
|
-
},
|
|
1204
|
+
}, so = { class: "item__size" }, io = /* @__PURE__ */ z({
|
|
1189
1205
|
__name: "aeria-file-item",
|
|
1190
1206
|
props: {
|
|
1191
1207
|
modelValue: {}
|
|
1192
1208
|
},
|
|
1193
1209
|
setup(p) {
|
|
1194
1210
|
const r = p, o = "_id" in r.modelValue ? r.modelValue : r.modelValue.file, n = (a) => {
|
|
1195
|
-
const
|
|
1196
|
-
return `${(a / Math.pow(1024,
|
|
1211
|
+
const c = a === 0 ? 0 : Math.floor(Math.log(a) / Math.log(1024));
|
|
1212
|
+
return `${(a / Math.pow(1024, c)).toFixed(2)} ${[
|
|
1197
1213
|
"B",
|
|
1198
1214
|
"kB",
|
|
1199
1215
|
"MB",
|
|
1200
1216
|
"GB",
|
|
1201
1217
|
"TB"
|
|
1202
|
-
][
|
|
1218
|
+
][c]}`;
|
|
1203
1219
|
};
|
|
1204
|
-
return (a,
|
|
1220
|
+
return (a, c) => (t(), l("div", oo, [
|
|
1205
1221
|
"_id" in e(o) && e(o).type.startsWith("image/") ? (t(), V(Ue, {
|
|
1206
1222
|
key: 0,
|
|
1207
1223
|
bordered: "",
|
|
@@ -1209,7 +1225,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1209
1225
|
alt: e(o).name,
|
|
1210
1226
|
url: e(o).link,
|
|
1211
1227
|
class: "item__picture"
|
|
1212
|
-
}, null, 8, ["alt", "url"])) :
|
|
1228
|
+
}, null, 8, ["alt", "url"])) : b("", !0),
|
|
1213
1229
|
I("div", ao, [
|
|
1214
1230
|
"_id" in e(o) ? (t(), V(Y, {
|
|
1215
1231
|
key: 0,
|
|
@@ -1218,22 +1234,23 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1218
1234
|
target: "_blank",
|
|
1219
1235
|
class: "item__name item__name--link"
|
|
1220
1236
|
}, {
|
|
1221
|
-
default:
|
|
1222
|
-
|
|
1237
|
+
default: y(() => [
|
|
1238
|
+
Q(C(e(o).name), 1)
|
|
1223
1239
|
]),
|
|
1224
1240
|
_: 1
|
|
1225
1241
|
}, 8, ["href"])) : (t(), l("div", lo, C(e(o).name), 1)),
|
|
1226
|
-
I("div",
|
|
1242
|
+
I("div", so, C(n(e(o).size)), 1)
|
|
1227
1243
|
]),
|
|
1228
1244
|
I("div", null, [
|
|
1229
1245
|
A(a.$slots, "default", {}, void 0, !0)
|
|
1230
1246
|
])
|
|
1231
1247
|
]));
|
|
1232
1248
|
}
|
|
1233
|
-
})
|
|
1249
|
+
});
|
|
1250
|
+
const ro = /* @__PURE__ */ D(io, [["__scopeId", "data-v-85a82246"]]), uo = { class: "file" }, co = ["accept", "multiple"], po = {
|
|
1234
1251
|
key: 1,
|
|
1235
1252
|
class: "file__list"
|
|
1236
|
-
},
|
|
1253
|
+
}, _o = /* @__PURE__ */ z({
|
|
1237
1254
|
__name: "aeria-file",
|
|
1238
1255
|
props: {
|
|
1239
1256
|
modelValue: {},
|
|
@@ -1249,25 +1266,25 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1249
1266
|
},
|
|
1250
1267
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1251
1268
|
setup(p, { emit: r }) {
|
|
1252
|
-
const o = p, n = o.property &&
|
|
1269
|
+
const o = p, n = o.property && me(o.property), a = r, u = Me() ? Ee() : null, _ = o.multiple || o.property && "type" in o.property && o.property.type === "array", d = K(() => {
|
|
1253
1270
|
if (o.modelValue)
|
|
1254
1271
|
return Array.isArray(o.modelValue) ? o.modelValue : [o.modelValue];
|
|
1255
|
-
}),
|
|
1272
|
+
}), g = ($) => new Promise((f) => {
|
|
1256
1273
|
const B = new FileReader();
|
|
1257
|
-
B.onload = () =>
|
|
1258
|
-
}),
|
|
1259
|
-
const
|
|
1260
|
-
if (!
|
|
1274
|
+
B.onload = () => f(B.result), B.readAsArrayBuffer($);
|
|
1275
|
+
}), i = async ($) => {
|
|
1276
|
+
const f = $.target.files;
|
|
1277
|
+
if (!f)
|
|
1261
1278
|
return;
|
|
1262
1279
|
const B = [];
|
|
1263
|
-
for (const
|
|
1264
|
-
const
|
|
1280
|
+
for (const s of f) {
|
|
1281
|
+
const M = await g(s);
|
|
1265
1282
|
if (u) {
|
|
1266
|
-
const { data: { error: E, result: Z } } = await
|
|
1283
|
+
const { data: { error: E, result: Z } } = await jt(`${vt}/${u.$id}/upload?name=${s.name}`, M, {
|
|
1267
1284
|
params: {
|
|
1268
1285
|
method: "POST",
|
|
1269
1286
|
headers: {
|
|
1270
|
-
"content-type":
|
|
1287
|
+
"content-type": s.type || "application/octet-stream",
|
|
1271
1288
|
"x-stream-request": "1"
|
|
1272
1289
|
}
|
|
1273
1290
|
}
|
|
@@ -1276,69 +1293,70 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1276
1293
|
return;
|
|
1277
1294
|
B.unshift({
|
|
1278
1295
|
tempId: Z.tempId,
|
|
1279
|
-
file:
|
|
1296
|
+
file: s
|
|
1280
1297
|
});
|
|
1281
1298
|
} else
|
|
1282
1299
|
B.unshift({
|
|
1283
|
-
file:
|
|
1300
|
+
file: s
|
|
1284
1301
|
});
|
|
1285
1302
|
}
|
|
1286
|
-
|
|
1287
|
-
},
|
|
1303
|
+
_ ? a("update:modelValue", Array.isArray(o.modelValue) ? B.concat(o.modelValue) : B) : a("update:modelValue", B[0]), a("update:content", B), a("change", B);
|
|
1304
|
+
}, v = async ($) => {
|
|
1288
1305
|
if (!o.modelValue)
|
|
1289
1306
|
throw new Error();
|
|
1290
|
-
const
|
|
1291
|
-
|
|
1307
|
+
const f = Array.isArray(o.modelValue) ? o.modelValue.filter((B, s) => s !== $) : [];
|
|
1308
|
+
_ ? a("update:modelValue", f) : a("update:modelValue", null), a("update:content", f), a("change", f);
|
|
1292
1309
|
};
|
|
1293
|
-
return (
|
|
1294
|
-
var
|
|
1310
|
+
return ($, f) => {
|
|
1311
|
+
var s, M;
|
|
1295
1312
|
const B = ne("clickable");
|
|
1296
1313
|
return t(), l("div", uo, [
|
|
1297
|
-
|
|
1314
|
+
$.readOnly ? b("", !0) : (t(), l("input", {
|
|
1298
1315
|
key: 0,
|
|
1299
1316
|
ref: "file",
|
|
1300
1317
|
type: "file",
|
|
1301
|
-
accept: (
|
|
1302
|
-
multiple: e(
|
|
1303
|
-
onChange:
|
|
1318
|
+
accept: (M = (s = e(n)) == null ? void 0 : s.accept) == null ? void 0 : M.join(","),
|
|
1319
|
+
multiple: e(_),
|
|
1320
|
+
onChange: i
|
|
1304
1321
|
}, null, 40, co)),
|
|
1305
|
-
|
|
1306
|
-
(t(!0), l(P, null, H(
|
|
1322
|
+
d.value && d.value.length > 0 ? (t(), l("div", po, [
|
|
1323
|
+
(t(!0), l(P, null, H(d.value, (E, Z) => (t(), V(ro, {
|
|
1307
1324
|
key: "_id" in E ? String(E._id) : E.file.name,
|
|
1308
1325
|
"model-value": E
|
|
1309
1326
|
}, {
|
|
1310
|
-
default:
|
|
1311
|
-
|
|
1327
|
+
default: y(() => [
|
|
1328
|
+
$.readOnly ? b("", !0) : J((t(), V(Y, {
|
|
1312
1329
|
key: 0,
|
|
1313
1330
|
reactive: "",
|
|
1314
1331
|
icon: "trash",
|
|
1315
|
-
onClick: (
|
|
1332
|
+
onClick: (h) => v(Z)
|
|
1316
1333
|
}, null, 8, ["onClick"])), [
|
|
1317
1334
|
[B]
|
|
1318
1335
|
])
|
|
1319
1336
|
]),
|
|
1320
1337
|
_: 2
|
|
1321
1338
|
}, 1032, ["model-value"]))), 128))
|
|
1322
|
-
])) :
|
|
1339
|
+
])) : b("", !0)
|
|
1323
1340
|
]);
|
|
1324
1341
|
};
|
|
1325
1342
|
}
|
|
1326
|
-
})
|
|
1343
|
+
});
|
|
1344
|
+
const mo = /* @__PURE__ */ D(_o, [["__scopeId", "data-v-9950a715"]]), fo = { class: "container" }, vo = {
|
|
1327
1345
|
key: 1,
|
|
1328
1346
|
class: "container__footer"
|
|
1329
|
-
},
|
|
1347
|
+
}, yo = /* @__PURE__ */ z({
|
|
1330
1348
|
__name: "aeria-search-container",
|
|
1331
1349
|
props: {
|
|
1332
1350
|
observeScroll: { type: Boolean }
|
|
1333
1351
|
},
|
|
1334
1352
|
emits: ["endReached"],
|
|
1335
1353
|
setup(p, { emit: r }) {
|
|
1336
|
-
const o = p, n = r, a = ee(null),
|
|
1354
|
+
const o = p, n = r, a = ee(null), c = o.observeScroll ? Ye(a, {
|
|
1337
1355
|
antecipate: 100
|
|
1338
1356
|
}).reachedEnd : null;
|
|
1339
|
-
return
|
|
1357
|
+
return c !== null && ue(c, (u) => {
|
|
1340
1358
|
u && n("endReached", u);
|
|
1341
|
-
}), (u,
|
|
1359
|
+
}), (u, _) => (t(), l("div", fo, [
|
|
1342
1360
|
u.$slots.default ? (t(), l("div", {
|
|
1343
1361
|
key: 0,
|
|
1344
1362
|
ref_key: "containerEl",
|
|
@@ -1346,13 +1364,14 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1346
1364
|
class: "container__content"
|
|
1347
1365
|
}, [
|
|
1348
1366
|
A(u.$slots, "default", {}, void 0, !0)
|
|
1349
|
-
], 512)) :
|
|
1350
|
-
u.$slots.footer ? (t(), l("div",
|
|
1367
|
+
], 512)) : b("", !0),
|
|
1368
|
+
u.$slots.footer ? (t(), l("div", vo, [
|
|
1351
1369
|
A(u.$slots, "footer", {}, void 0, !0)
|
|
1352
|
-
])) :
|
|
1370
|
+
])) : b("", !0)
|
|
1353
1371
|
]));
|
|
1354
1372
|
}
|
|
1355
|
-
})
|
|
1373
|
+
});
|
|
1374
|
+
const dt = /* @__PURE__ */ D(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { class: "item__values" }, ho = /* @__PURE__ */ z({
|
|
1356
1375
|
__name: "aeria-search-item",
|
|
1357
1376
|
props: {
|
|
1358
1377
|
item: {},
|
|
@@ -1363,65 +1382,66 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1363
1382
|
},
|
|
1364
1383
|
emits: ["update:modelValue", "change"],
|
|
1365
1384
|
setup(p, { emit: r }) {
|
|
1366
|
-
const o = Be(), n = p, a = r,
|
|
1367
|
-
if (
|
|
1385
|
+
const o = Be(), n = p, a = r, c = n.property, u = me(c), _ = Ee(), d = K(() => n.modelValue ? Array.isArray(n.modelValue) ? Array.isArray(n.modelValue) && Object.values(n.modelValue).some(({ _id: $ }) => n.item._id === $) : n.modelValue._id === n.item._id : !1), g = () => {
|
|
1386
|
+
if (d.value)
|
|
1368
1387
|
return;
|
|
1369
|
-
const
|
|
1370
|
-
let
|
|
1371
|
-
"items" in
|
|
1372
|
-
},
|
|
1373
|
-
if (u.purge && (
|
|
1388
|
+
const $ = (B) => B.filter((s) => !!s._id);
|
|
1389
|
+
let f;
|
|
1390
|
+
"items" in c ? n.modelValue ? f = $(Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue]) : f = [] : f = n.modelValue, Array.isArray(f) ? a("update:modelValue", f.concat([n.item])) : a("update:modelValue", n.item), a("change", n.item);
|
|
1391
|
+
}, i = async ($) => {
|
|
1392
|
+
if (u.purge && ($ != null && $.purge)) {
|
|
1374
1393
|
const { _id: B } = n.item;
|
|
1375
|
-
await
|
|
1394
|
+
await _.$actions.remove({
|
|
1376
1395
|
filters: {
|
|
1377
1396
|
_id: B
|
|
1378
1397
|
}
|
|
1379
1398
|
});
|
|
1380
1399
|
}
|
|
1381
|
-
const
|
|
1382
|
-
const B = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [],
|
|
1383
|
-
return B.splice(
|
|
1400
|
+
const f = () => {
|
|
1401
|
+
const B = Array.isArray(n.modelValue) ? Array.from(n.modelValue) : [], s = B.findIndex((M) => M._id === n.item._id);
|
|
1402
|
+
return B.splice(s, 1), B;
|
|
1384
1403
|
};
|
|
1385
|
-
a("update:modelValue", "items" in
|
|
1386
|
-
},
|
|
1404
|
+
a("update:modelValue", "items" in c ? f() : null);
|
|
1405
|
+
}, v = () => {
|
|
1387
1406
|
if (n.readOnly) {
|
|
1388
1407
|
o.push({
|
|
1389
1408
|
path: `/dashboard/c/${u.$ref}/${n.item._id}`
|
|
1390
1409
|
});
|
|
1391
1410
|
return;
|
|
1392
1411
|
}
|
|
1393
|
-
return
|
|
1412
|
+
return d.value ? i() : g();
|
|
1394
1413
|
};
|
|
1395
|
-
return (
|
|
1414
|
+
return ($, f) => {
|
|
1396
1415
|
const B = ne("clickable");
|
|
1397
1416
|
return J((t(), l("div", {
|
|
1398
1417
|
class: W({
|
|
1399
1418
|
item: !0,
|
|
1400
|
-
"item--selected":
|
|
1419
|
+
"item--selected": d.value
|
|
1401
1420
|
}),
|
|
1402
|
-
onClick:
|
|
1421
|
+
onClick: v
|
|
1403
1422
|
}, [
|
|
1404
|
-
A(
|
|
1405
|
-
I("div",
|
|
1406
|
-
(t(!0), l(P, null, H(
|
|
1407
|
-
key: `index-${
|
|
1423
|
+
A($.$slots, "default", {}, void 0, !0),
|
|
1424
|
+
I("div", bo, [
|
|
1425
|
+
(t(!0), l(P, null, H($.indexes, (s, M) => (t(), l("div", {
|
|
1426
|
+
key: `index-${$.item._id}-${M}`,
|
|
1408
1427
|
class: "item__value"
|
|
1409
|
-
}, C(
|
|
1428
|
+
}, C($.item[s]), 1))), 128))
|
|
1410
1429
|
]),
|
|
1411
|
-
|
|
1430
|
+
$.readOnly ? (t(), V(Y, {
|
|
1412
1431
|
key: 0,
|
|
1413
1432
|
icon: "arrow-square-out",
|
|
1414
1433
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
1415
|
-
})) :
|
|
1434
|
+
})) : b("", !0)
|
|
1416
1435
|
], 2)), [
|
|
1417
1436
|
[B]
|
|
1418
1437
|
]);
|
|
1419
1438
|
};
|
|
1420
1439
|
}
|
|
1421
|
-
})
|
|
1440
|
+
});
|
|
1441
|
+
const De = /* @__PURE__ */ D(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { class: "search__panel" }, $o = { key: 1 }, ko = { key: 0 }, Vo = { key: 1 }, Co = { class: "search__summary" }, Oo = {
|
|
1422
1442
|
key: 1,
|
|
1423
1443
|
class: "search"
|
|
1424
|
-
}, Ao = { key: 0 }, Fe = 10, Io = /* @__PURE__ */
|
|
1444
|
+
}, Ao = { key: 0 }, Fe = 10, Io = /* @__PURE__ */ z({
|
|
1425
1445
|
__name: "aeria-search",
|
|
1426
1446
|
props: {
|
|
1427
1447
|
modelValue: {},
|
|
@@ -1436,27 +1456,27 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1436
1456
|
},
|
|
1437
1457
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1438
1458
|
setup(p, { emit: r }) {
|
|
1439
|
-
const o = p, n = re("meta"), a =
|
|
1440
|
-
|
|
1441
|
-
const
|
|
1459
|
+
const o = p, n = re("meta"), a = me(o.property), c = o.panel !== void 0 ? K(() => o.panel) : ee(!1), u = r, _ = re(me(o.property).$ref), d = Me(), g = d ? Ee() : null, i = a.indexes;
|
|
1460
|
+
ge(ze, me(o.property).$ref), ge("innerInputLabel", !0), ge("omitInputLabels", !0);
|
|
1461
|
+
const v = ee(o.modelValue), $ = ee({
|
|
1442
1462
|
data: [],
|
|
1443
1463
|
pagination: {}
|
|
1444
|
-
}),
|
|
1464
|
+
}), f = K(() => $.value.data), B = K(() => $.value.pagination), s = ee(0), M = ee(!1), E = ee(""), Z = () => {
|
|
1445
1465
|
const k = {};
|
|
1446
|
-
if (
|
|
1447
|
-
const N = e(
|
|
1448
|
-
k[N] =
|
|
1466
|
+
if (d) {
|
|
1467
|
+
const N = e(d);
|
|
1468
|
+
k[N] = g;
|
|
1449
1469
|
}
|
|
1450
1470
|
return a.constraints ? Ut(a.constraints, k) : {};
|
|
1451
|
-
},
|
|
1452
|
-
|
|
1453
|
-
}, G = async () => E.value.length === 0 ?
|
|
1471
|
+
}, h = () => {
|
|
1472
|
+
f.value.length < B.value.recordsTotal && (s.value += 1, oe());
|
|
1473
|
+
}, G = async () => E.value.length === 0 ? _.$actions.custom("getAll", {
|
|
1454
1474
|
limit: Fe,
|
|
1455
|
-
offset:
|
|
1475
|
+
offset: s.value * Fe,
|
|
1456
1476
|
filters: Z()
|
|
1457
|
-
}) :
|
|
1477
|
+
}) : _.$actions.custom("getAll", {
|
|
1458
1478
|
limit: Fe,
|
|
1459
|
-
offset:
|
|
1479
|
+
offset: s.value * Fe,
|
|
1460
1480
|
filters: {
|
|
1461
1481
|
$text: {
|
|
1462
1482
|
$search: `"${E.value}"`,
|
|
@@ -1465,7 +1485,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1465
1485
|
...Z()
|
|
1466
1486
|
}
|
|
1467
1487
|
}), oe = async () => {
|
|
1468
|
-
if (
|
|
1488
|
+
if (_.loading.getAll)
|
|
1469
1489
|
return;
|
|
1470
1490
|
const { error: k, result: N } = await G();
|
|
1471
1491
|
if (k) {
|
|
@@ -1475,17 +1495,17 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1475
1495
|
});
|
|
1476
1496
|
return;
|
|
1477
1497
|
}
|
|
1478
|
-
|
|
1479
|
-
}, [w] =
|
|
1498
|
+
$.value.pagination = N.pagination, s.value === 0 && $.value.data.splice(0), $.value.data.push(...N.data);
|
|
1499
|
+
}, [w] = yt({
|
|
1480
1500
|
delay: 800
|
|
1481
1501
|
})(() => {
|
|
1482
|
-
|
|
1502
|
+
s.value = 0, oe(), M.value = !1;
|
|
1483
1503
|
}), te = () => {
|
|
1484
|
-
|
|
1504
|
+
M.value = !0, w();
|
|
1485
1505
|
}, ke = () => {
|
|
1486
|
-
"effect" in
|
|
1506
|
+
"effect" in c ? u("update:panel", !0) : c.value = !0, oe();
|
|
1487
1507
|
}, ce = () => {
|
|
1488
|
-
|
|
1508
|
+
s.value = 0, $.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
|
|
1489
1509
|
};
|
|
1490
1510
|
ue(() => E.value.length, (k, N) => {
|
|
1491
1511
|
k && !N && oe();
|
|
@@ -1493,14 +1513,14 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1493
1513
|
o.selectOnly && oe();
|
|
1494
1514
|
});
|
|
1495
1515
|
const ae = (k) => {
|
|
1496
|
-
|
|
1516
|
+
v.value = k, o.selectOnly || u("update:modelValue", k);
|
|
1497
1517
|
}, O = () => {
|
|
1498
|
-
ce(), u("update:modelValue",
|
|
1518
|
+
ce(), u("update:modelValue", v.value);
|
|
1499
1519
|
};
|
|
1500
1520
|
return (k, N) => {
|
|
1501
1521
|
const le = ne("clickable");
|
|
1502
1522
|
return t(), l("div", null, [
|
|
1503
|
-
e(
|
|
1523
|
+
e(c) ? (t(), V(Ge, {
|
|
1504
1524
|
key: 0,
|
|
1505
1525
|
to: "main"
|
|
1506
1526
|
}, [
|
|
@@ -1509,26 +1529,26 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1509
1529
|
"close-hint": "",
|
|
1510
1530
|
title: `${e(q)("action.select", { capitalize: !0 })} ${e(q)(k.propertyName)}`,
|
|
1511
1531
|
"overlay-layer": 65,
|
|
1512
|
-
"model-value": e(
|
|
1532
|
+
"model-value": e(c),
|
|
1513
1533
|
style: { "--panel-max-width": "36rem" },
|
|
1514
1534
|
onClose: ce,
|
|
1515
1535
|
onOverlayClick: ce
|
|
1516
1536
|
}, {
|
|
1517
|
-
footer:
|
|
1518
|
-
L(
|
|
1537
|
+
footer: y(() => [
|
|
1538
|
+
L(pe, {
|
|
1519
1539
|
large: "",
|
|
1520
1540
|
onClick: O
|
|
1521
1541
|
}, {
|
|
1522
|
-
default:
|
|
1523
|
-
|
|
1542
|
+
default: y(() => [
|
|
1543
|
+
Q(C(e(q)("action.save", { capitalize: !0 })), 1)
|
|
1524
1544
|
]),
|
|
1525
1545
|
_: 1
|
|
1526
1546
|
})
|
|
1527
1547
|
]),
|
|
1528
|
-
default:
|
|
1529
|
-
var
|
|
1548
|
+
default: y(() => {
|
|
1549
|
+
var m, T;
|
|
1530
1550
|
return [
|
|
1531
|
-
I("div",
|
|
1551
|
+
I("div", go, [
|
|
1532
1552
|
L(Oe, U({
|
|
1533
1553
|
modelValue: E.value,
|
|
1534
1554
|
"onUpdate:modelValue": N[0] || (N[0] = (F) => E.value = F)
|
|
@@ -1539,69 +1559,69 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1539
1559
|
inputType: "search"
|
|
1540
1560
|
}
|
|
1541
1561
|
}, { onInput: te }), null, 16, ["modelValue"]),
|
|
1542
|
-
|
|
1562
|
+
f.value.length ? (t(), V(dt, {
|
|
1543
1563
|
key: 0,
|
|
1544
1564
|
"observe-scroll": "",
|
|
1545
|
-
onEndReached:
|
|
1565
|
+
onEndReached: h
|
|
1546
1566
|
}, {
|
|
1547
|
-
default:
|
|
1548
|
-
(t(!0), l(P, null, H(
|
|
1567
|
+
default: y(() => [
|
|
1568
|
+
(t(!0), l(P, null, H(f.value, (F) => (t(), V(De, U({ ref_for: !0 }, {
|
|
1549
1569
|
item: F,
|
|
1550
|
-
indexes: e(
|
|
1570
|
+
indexes: e(i),
|
|
1551
1571
|
property: k.property
|
|
1552
1572
|
}, {
|
|
1553
1573
|
key: `matching-${F._id}`,
|
|
1554
|
-
modelValue:
|
|
1555
|
-
"onUpdate:modelValue": N[1] || (N[1] = (X) =>
|
|
1574
|
+
modelValue: v.value,
|
|
1575
|
+
"onUpdate:modelValue": N[1] || (N[1] = (X) => v.value = X)
|
|
1556
1576
|
}), null, 16, ["modelValue"]))), 128))
|
|
1557
1577
|
]),
|
|
1558
1578
|
_: 1
|
|
1559
|
-
})) : (t(), l("div",
|
|
1560
|
-
|
|
1579
|
+
})) : (t(), l("div", $o, [
|
|
1580
|
+
M.value ? (t(), l("div", ko, C(e(q)("searching", { capitalize: !0 })) + "... ", 1)) : !e(_).loading.getAll && Object.values(E.value).filter((F) => !!F).length > 0 && !("items" in k.property && ((m = k.modelValue) != null && m.length) || !Array.isArray(k.modelValue) && ((T = k.modelValue) != null && T._id)) ? (t(), l("div", Vo, C(e(q)("no_results", { capitalize: !0 })), 1)) : b("", !0)
|
|
1561
1581
|
]))
|
|
1562
1582
|
]),
|
|
1563
|
-
I("div", Co, C(e(q)("showing", { capitalize: !0 })) + " " + C(
|
|
1583
|
+
I("div", Co, C(e(q)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(q)("of")) + " " + C(B.value.recordsTotal), 1)
|
|
1564
1584
|
];
|
|
1565
1585
|
}),
|
|
1566
1586
|
_: 1
|
|
1567
1587
|
}, 8, ["title", "model-value"])
|
|
1568
|
-
])) :
|
|
1569
|
-
k.selectOnly ?
|
|
1570
|
-
L(
|
|
1571
|
-
default:
|
|
1572
|
-
var
|
|
1588
|
+
])) : b("", !0),
|
|
1589
|
+
k.selectOnly ? b("", !0) : (t(), l("div", Oo, [
|
|
1590
|
+
L(dt, null, _e({
|
|
1591
|
+
default: y(() => {
|
|
1592
|
+
var m;
|
|
1573
1593
|
return [
|
|
1574
1594
|
"items" in k.property ? (t(), l("div", Ao, [
|
|
1575
|
-
(t(!0), l(P, null, H(k.modelValue, (
|
|
1576
|
-
item:
|
|
1577
|
-
indexes: e(
|
|
1595
|
+
(t(!0), l(P, null, H(k.modelValue, (T) => (t(), V(De, U({ ref_for: !0 }, {
|
|
1596
|
+
item: T,
|
|
1597
|
+
indexes: e(i),
|
|
1578
1598
|
property: k.property,
|
|
1579
1599
|
readOnly: k.readOnly,
|
|
1580
1600
|
modelValue: k.modelValue
|
|
1581
1601
|
}, {
|
|
1582
|
-
key: `selected-${
|
|
1602
|
+
key: `selected-${T._id}`,
|
|
1583
1603
|
"onUpdate:modelValue": ae
|
|
1584
1604
|
}), null, 16))), 128))
|
|
1585
|
-
])) : (
|
|
1605
|
+
])) : (m = k.modelValue) != null && m._id ? (t(), V(De, U({ key: 1 }, {
|
|
1586
1606
|
item: k.modelValue,
|
|
1587
|
-
indexes: e(
|
|
1607
|
+
indexes: e(i),
|
|
1588
1608
|
property: e(a),
|
|
1589
1609
|
readOnly: k.readOnly,
|
|
1590
1610
|
modelValue: k.modelValue
|
|
1591
|
-
}, { "onUpdate:modelValue": ae }), null, 16)) :
|
|
1611
|
+
}, { "onUpdate:modelValue": ae }), null, 16)) : b("", !0)
|
|
1592
1612
|
];
|
|
1593
1613
|
}),
|
|
1594
1614
|
_: 2
|
|
1595
1615
|
}, [
|
|
1596
1616
|
k.readOnly ? void 0 : {
|
|
1597
1617
|
name: "footer",
|
|
1598
|
-
fn:
|
|
1618
|
+
fn: y(() => [
|
|
1599
1619
|
J((t(), V(Y, {
|
|
1600
1620
|
icon: "plus",
|
|
1601
1621
|
onClick: ke
|
|
1602
1622
|
}, {
|
|
1603
|
-
default:
|
|
1604
|
-
|
|
1623
|
+
default: y(() => [
|
|
1624
|
+
Q(C(e(q)("action.select", { capitalize: !0 })), 1)
|
|
1605
1625
|
]),
|
|
1606
1626
|
_: 1
|
|
1607
1627
|
})), [
|
|
@@ -1615,12 +1635,13 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1615
1635
|
]);
|
|
1616
1636
|
};
|
|
1617
1637
|
}
|
|
1618
|
-
})
|
|
1638
|
+
});
|
|
1639
|
+
const Bo = /* @__PURE__ */ D(Io, [["__scopeId", "data-v-b5466d6b"]]), pt = (p, r) => {
|
|
1619
1640
|
const o = "items" in p ? p.items : p, n = {
|
|
1620
1641
|
options: Gn,
|
|
1621
1642
|
select: Xe,
|
|
1622
1643
|
switch: Jn,
|
|
1623
|
-
file:
|
|
1644
|
+
file: mo,
|
|
1624
1645
|
search: Bo,
|
|
1625
1646
|
input: Oe,
|
|
1626
1647
|
form: He
|
|
@@ -1637,24 +1658,24 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1637
1658
|
if (p.element === "select")
|
|
1638
1659
|
return "select";
|
|
1639
1660
|
}
|
|
1640
|
-
const
|
|
1641
|
-
return
|
|
1661
|
+
const c = me(p);
|
|
1662
|
+
return c ? c.inline ? "form" : c.$ref === "file" ? "file" : "search" : "items" in p && p.uniqueItems ? "options" : "enum" in o ? "select" : "input";
|
|
1642
1663
|
})();
|
|
1643
1664
|
return r[a] ? r[a] : n[a];
|
|
1644
1665
|
}, So = (p, r, o) => {
|
|
1645
1666
|
p ?? (p = []);
|
|
1646
1667
|
const n = "items" in r ? r.items : r;
|
|
1647
1668
|
if ("$ref" in n) {
|
|
1648
|
-
const a = re(n.$ref, o),
|
|
1649
|
-
return p.push(
|
|
1669
|
+
const a = re(n.$ref, o), c = Ae(a.$freshItem);
|
|
1670
|
+
return p.push(c);
|
|
1650
1671
|
}
|
|
1651
1672
|
return "properties" in n ? p.push(Ft(n)) : "type" in n && n.type === "boolean" ? p.push({}) : p.push(null);
|
|
1652
1673
|
}, wo = (p, r) => {
|
|
1653
1674
|
p.splice(r, 1);
|
|
1654
|
-
},
|
|
1675
|
+
}, To = {
|
|
1655
1676
|
key: 0,
|
|
1656
1677
|
class: "form__header"
|
|
1657
|
-
},
|
|
1678
|
+
}, jo = { class: "form__fieldset" }, Ro = { key: 0 }, qo = ["innerHTML"], Lo = ["onInput"], Mo = { key: 4 }, zo = { value: "true" }, Fo = { value: "false" }, Uo = {
|
|
1658
1679
|
key: 5,
|
|
1659
1680
|
style: { display: "grid", "row-gap": ".4rem" }
|
|
1660
1681
|
}, Eo = { key: 0 }, Ho = {
|
|
@@ -1666,7 +1687,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1666
1687
|
}, Qo = { key: 0 }, Go = { key: 1 }, Wo = {
|
|
1667
1688
|
key: 2,
|
|
1668
1689
|
class: "form__footer"
|
|
1669
|
-
}, Yo = /* @__PURE__ */
|
|
1690
|
+
}, Yo = /* @__PURE__ */ z({
|
|
1670
1691
|
__name: "aeria-form",
|
|
1671
1692
|
props: {
|
|
1672
1693
|
modelValue: {},
|
|
@@ -1696,17 +1717,17 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1696
1717
|
setup(p, { emit: r }) {
|
|
1697
1718
|
var le;
|
|
1698
1719
|
const o = Ke(), n = p, a = r;
|
|
1699
|
-
|
|
1720
|
+
ft(() => {
|
|
1700
1721
|
n.modelValue || a("update:modelValue", n.property && "items" in n.property ? [] : {});
|
|
1701
1722
|
});
|
|
1702
|
-
const
|
|
1723
|
+
const c = n.property && me(n.property), u = c ? c.$ref : n.collection || Me(), _ = n.readOnly || ((le = n.property) == null ? void 0 : le.readOnly), d = u ? re(e(u)) : null;
|
|
1703
1724
|
!u && process.env.NODE_ENV !== "production" && console.warn("aeria-form was used without providing storeId or specifying collection prop, some features may not work as intended");
|
|
1704
|
-
const
|
|
1705
|
-
const
|
|
1706
|
-
if (!
|
|
1725
|
+
const g = ee(!1), i = K(() => {
|
|
1726
|
+
const m = (() => !n.form && n.property ? "type" in n.property && n.property.type === "object" ? "properties" in n.property ? n.property.properties : void 0 : d == null ? void 0 : d.properties : n.form)();
|
|
1727
|
+
if (!m)
|
|
1707
1728
|
return;
|
|
1708
|
-
const
|
|
1709
|
-
if (n.includeId && (
|
|
1729
|
+
const T = {};
|
|
1730
|
+
if (n.includeId && (T._id = {
|
|
1710
1731
|
type: "string",
|
|
1711
1732
|
readOnly: !0
|
|
1712
1733
|
}), n.includeTimestamps) {
|
|
@@ -1716,37 +1737,37 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1716
1737
|
readOnly: !0,
|
|
1717
1738
|
isTimestamp: !0
|
|
1718
1739
|
};
|
|
1719
|
-
|
|
1740
|
+
m.created_at || (T.created_at = F), m.created_at || (T.updated_at = F);
|
|
1720
1741
|
}
|
|
1721
|
-
return Object.assign(
|
|
1722
|
-
}),
|
|
1723
|
-
const
|
|
1724
|
-
return n[
|
|
1725
|
-
},
|
|
1726
|
-
u &&
|
|
1727
|
-
const
|
|
1728
|
-
|
|
1742
|
+
return Object.assign(T, m), T;
|
|
1743
|
+
}), v = K(() => n.layout || (d == null ? void 0 : d.description.formLayout)), $ = (m) => {
|
|
1744
|
+
const T = fe(m, n[m]);
|
|
1745
|
+
return n[m] && ge(m, n[m]), T;
|
|
1746
|
+
}, f = K(() => n.validationErrors !== null ? n.validationErrors : d == null ? void 0 : d.validationErrors), B = $("formComponents") || {}, s = $("propertyComponents") || {}, M = $("omitFormHeader"), E = $("omitInputLabels"), Z = $("innerInputLabel");
|
|
1747
|
+
u && ge(ze, u), ge("searchOnly", n.searchOnly);
|
|
1748
|
+
const h = (m) => i.value ? Object.entries(i.value).filter(([T, F]) => !F.noForm && m([
|
|
1749
|
+
T,
|
|
1729
1750
|
F
|
|
1730
|
-
])) : null, G = (
|
|
1751
|
+
])) : null, G = (m, T) => {
|
|
1731
1752
|
var X;
|
|
1732
|
-
if (n.searchOnly || !u || n.includeId &&
|
|
1753
|
+
if (n.searchOnly || !u || n.includeId && m === "_id" || n.includeTimestamps && T.isTimestamp)
|
|
1733
1754
|
return !0;
|
|
1734
|
-
const F = n.property && "properties" in n.property ? n.property.form : (X =
|
|
1735
|
-
return !F || F.includes(
|
|
1736
|
-
}, oe =
|
|
1737
|
-
var R,
|
|
1738
|
-
const F = [], X = ((
|
|
1739
|
-
if (!
|
|
1755
|
+
const F = n.property && "properties" in n.property ? n.property.form : (X = d == null ? void 0 : d.description) == null ? void 0 : X.form;
|
|
1756
|
+
return !F || F.includes(m);
|
|
1757
|
+
}, oe = h(([m, T]) => G(m, T)), w = Le(), te = {}, ke = (m, T) => {
|
|
1758
|
+
var R, ie, j, se;
|
|
1759
|
+
const F = [], X = ((ie = (R = v.value) == null ? void 0 : R.fields) == null ? void 0 : ie[m]) || ((se = (j = v.value) == null ? void 0 : j.fields) == null ? void 0 : se.$default);
|
|
1760
|
+
if (!T)
|
|
1740
1761
|
return;
|
|
1741
1762
|
if (X != null && X.if && !n.searchOnly) {
|
|
1742
|
-
const
|
|
1763
|
+
const ve = Qe(
|
|
1743
1764
|
n.modelValue,
|
|
1744
1765
|
X.if
|
|
1745
1766
|
);
|
|
1746
|
-
|
|
1767
|
+
ve.satisfied || (te[m] && (d ? n.modelValue[m] = typeof d.$freshItem[m] == "object" ? Ae(d.$freshItem[m]) : d.$freshItem[m] : n.modelValue[m] = [
|
|
1747
1768
|
void 0,
|
|
1748
1769
|
null
|
|
1749
|
-
].includes(n.modelValue[
|
|
1770
|
+
].includes(n.modelValue[m]) ? null : n.modelValue[m].constructor()), F.push("display: none;")), te[m] = ve.satisfied;
|
|
1750
1771
|
}
|
|
1751
1772
|
const S = w.value.md && (X == null ? void 0 : X.span) || 6;
|
|
1752
1773
|
return F.push(`
|
|
@@ -1761,264 +1782,265 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
1761
1782
|
padding: 1rem 0;
|
|
1762
1783
|
margin: 1rem 0;
|
|
1763
1784
|
`)), F.join("");
|
|
1764
|
-
}, ce = (
|
|
1785
|
+
}, ce = (m) => m === null || m instanceof Object && !Object.keys(m).length, ae = K(() => n.required ? n.required : n.property && "required" in n.property ? n.property.required : d == null ? void 0 : d.description.required), O = K(() => n.form ? Et(
|
|
1765
1786
|
n.modelValue,
|
|
1766
1787
|
n.form,
|
|
1767
1788
|
ae.value,
|
|
1768
|
-
|
|
1769
|
-
) : !0), k = (
|
|
1789
|
+
d == null ? void 0 : d.description
|
|
1790
|
+
) : !0), k = (m, T) => {
|
|
1770
1791
|
var F;
|
|
1771
|
-
return (F =
|
|
1772
|
-
}, N = (
|
|
1773
|
-
if (!(
|
|
1774
|
-
return
|
|
1792
|
+
return (F = f.value) != null && F[m] && (typeof f.value[m].index != "number" || f.value[m].index === T) ? f.value[m].errors : null;
|
|
1793
|
+
}, N = (m) => {
|
|
1794
|
+
if (!(_ || m.readOnly) && !n.parentPropertyName && !n.parentCollection && !g.value)
|
|
1795
|
+
return g.value = !0, !0;
|
|
1775
1796
|
};
|
|
1776
|
-
return (
|
|
1797
|
+
return (m, T) => {
|
|
1777
1798
|
const F = ne("clickable"), X = ne("focus");
|
|
1778
1799
|
return t(), l("form", {
|
|
1779
1800
|
class: "form",
|
|
1780
|
-
style:
|
|
1801
|
+
style: $e(`row-gap: ${e(M) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1781
1802
|
}, [
|
|
1782
|
-
|
|
1783
|
-
A(
|
|
1784
|
-
])) :
|
|
1785
|
-
A(
|
|
1786
|
-
I("fieldset",
|
|
1803
|
+
m.$slots.header && !e(M) ? (t(), l("header", To, [
|
|
1804
|
+
A(m.$slots, "header", {}, void 0, !0)
|
|
1805
|
+
])) : b("", !0),
|
|
1806
|
+
A(m.$slots, "default", {}, void 0, !0),
|
|
1807
|
+
I("fieldset", jo, [
|
|
1787
1808
|
(t(!0), l(P, null, H(e(oe), ([S, R]) => {
|
|
1788
|
-
var
|
|
1809
|
+
var ie, j, se, ve, be, Je, Ze, Pe, Ne, xe, et, tt, nt, ot;
|
|
1789
1810
|
return t(), l("div", {
|
|
1790
1811
|
key: `field-${S}`,
|
|
1791
|
-
style:
|
|
1812
|
+
style: $e(ke(S, R)),
|
|
1792
1813
|
class: W({
|
|
1793
1814
|
form__field: !0,
|
|
1794
1815
|
"form__field--form": "properties" in R
|
|
1795
1816
|
})
|
|
1796
1817
|
}, [
|
|
1797
|
-
(!("type" in R) || R.type !== "boolean" ||
|
|
1818
|
+
(!("type" in R) || R.type !== "boolean" || m.searchOnly) && !R.noLabel && !e(E) && !e(Z) ? (t(), l("label", Ro, [
|
|
1798
1819
|
I("div", {
|
|
1799
1820
|
class: W({
|
|
1800
1821
|
"form__field-label": !0,
|
|
1801
1822
|
"form__field-label--section": "items" in R ? "properties" in R.items : "properties" in R,
|
|
1802
|
-
"form__field-required-hint":
|
|
1823
|
+
"form__field-required-hint": m.highlightRequired && !e(_) && !m.searchOnly && (!ae.value || e(ct)(S, ae.value, m.modelValue))
|
|
1803
1824
|
})
|
|
1804
1825
|
}, C(R.description || e(q)(S)), 3),
|
|
1805
1826
|
R.hint ? (t(), l("div", {
|
|
1806
1827
|
key: 0,
|
|
1807
1828
|
innerHTML: R.hint
|
|
1808
|
-
}, null, 8, qo)) :
|
|
1809
|
-
])) :
|
|
1810
|
-
|
|
1829
|
+
}, null, 8, qo)) : b("", !0)
|
|
1830
|
+
])) : b("", !0),
|
|
1831
|
+
m.$slots[`field-${S}`] ? A(m.$slots, `field-${S}`, U({
|
|
1811
1832
|
key: 1,
|
|
1812
1833
|
ref_for: !0
|
|
1813
1834
|
}, {
|
|
1814
|
-
readOnly: e(
|
|
1835
|
+
readOnly: e(_),
|
|
1815
1836
|
property: R,
|
|
1816
1837
|
propertyName: S,
|
|
1817
|
-
modelValue:
|
|
1818
|
-
}), void 0, !0) : (
|
|
1838
|
+
modelValue: m.modelValue
|
|
1839
|
+
}), void 0, !0) : (se = (j = (ie = m.layout) == null ? void 0 : ie.fields) == null ? void 0 : j[S]) != null && se.component && e(s)[m.layout.fields[S].component.name] ? (t(), V(he(e(s)[m.layout.fields[S].component.name]), U({
|
|
1819
1840
|
key: 2,
|
|
1820
|
-
modelValue:
|
|
1821
|
-
"onUpdate:modelValue": (x) =>
|
|
1841
|
+
modelValue: m.modelValue[S],
|
|
1842
|
+
"onUpdate:modelValue": (x) => m.modelValue[S] = x,
|
|
1822
1843
|
ref_for: !0
|
|
1823
1844
|
}, {
|
|
1824
|
-
readOnly: e(
|
|
1845
|
+
readOnly: e(_),
|
|
1825
1846
|
property: R,
|
|
1826
1847
|
propertyName: S,
|
|
1827
|
-
required: !
|
|
1828
|
-
...
|
|
1848
|
+
required: !m.searchOnly && (!ae.value || e(ct)(S, ae.value, m.modelValue)),
|
|
1849
|
+
...m.layout.fields[S].component.props || {}
|
|
1829
1850
|
}, {
|
|
1830
1851
|
onInput: (x) => a("input", S),
|
|
1831
|
-
onChange:
|
|
1832
|
-
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) &&
|
|
1852
|
+
onChange: T[0] || (T[0] = (x) => a("change", x))
|
|
1853
|
+
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])) : "format" in R && ["date", "date-time"].includes(R.format) && m.searchOnly ? (t(), l("div", {
|
|
1833
1854
|
key: 3,
|
|
1834
1855
|
style: { display: "grid", "grid-template-columns": "repeat(2, 1fr)", "column-gap": "1rem" },
|
|
1835
1856
|
onInput: (x) => a("input", S),
|
|
1836
|
-
onChange:
|
|
1857
|
+
onChange: T[1] || (T[1] = (x) => a("change", x))
|
|
1837
1858
|
}, [
|
|
1838
1859
|
L(Oe, U({
|
|
1839
|
-
modelValue:
|
|
1840
|
-
"onUpdate:modelValue": (x) =>
|
|
1860
|
+
modelValue: m.modelValue[S].$gte,
|
|
1861
|
+
"onUpdate:modelValue": (x) => m.modelValue[S].$gte = x,
|
|
1841
1862
|
ref_for: !0
|
|
1842
1863
|
}, {
|
|
1843
1864
|
property: R,
|
|
1844
1865
|
propertyName: S
|
|
1845
1866
|
}), null, 16, ["modelValue", "onUpdate:modelValue"]),
|
|
1846
1867
|
L(Oe, U({
|
|
1847
|
-
modelValue:
|
|
1848
|
-
"onUpdate:modelValue": (x) =>
|
|
1868
|
+
modelValue: m.modelValue[S].$lte,
|
|
1869
|
+
"onUpdate:modelValue": (x) => m.modelValue[S].$lte = x,
|
|
1849
1870
|
ref_for: !0
|
|
1850
1871
|
}, {
|
|
1851
1872
|
property: R,
|
|
1852
1873
|
propertyName: S
|
|
1853
1874
|
}), null, 16, ["modelValue", "onUpdate:modelValue"])
|
|
1854
|
-
], 40, Lo)) : "type" in R && R.type === "boolean" &&
|
|
1875
|
+
], 40, Lo)) : "type" in R && R.type === "boolean" && m.searchOnly ? (t(), l("div", Mo, [
|
|
1855
1876
|
L(Xe, U({ ref_for: !0 }, {
|
|
1856
1877
|
property: R,
|
|
1857
1878
|
propertyName: S
|
|
1858
1879
|
}, {
|
|
1859
1880
|
"boolean-ref": "",
|
|
1860
|
-
"model-value":
|
|
1861
|
-
onChange:
|
|
1881
|
+
"model-value": m.modelValue[S],
|
|
1882
|
+
onChange: T[2] || (T[2] = (x) => a("change", x)),
|
|
1862
1883
|
"onUpdate:modelValue": (x) => {
|
|
1863
|
-
|
|
1884
|
+
m.modelValue[S] = x;
|
|
1864
1885
|
}
|
|
1865
1886
|
}), {
|
|
1866
|
-
default:
|
|
1867
|
-
I("option",
|
|
1887
|
+
default: y(() => [
|
|
1888
|
+
I("option", zo, C(e(q)("yes")), 1),
|
|
1868
1889
|
I("option", Fo, C(e(q)("no")), 1)
|
|
1869
1890
|
]),
|
|
1870
1891
|
_: 2
|
|
1871
1892
|
}, 1040, ["model-value", "onUpdate:modelValue"])
|
|
1872
|
-
])) :
|
|
1873
|
-
e(
|
|
1874
|
-
L(
|
|
1893
|
+
])) : m.modelValue && "items" in R && !R.uniqueItems && (!("$ref" in R.items) || R.items.inline) ? (t(), l("div", Uo, [
|
|
1894
|
+
e(_) ? b("", !0) : (t(), l("div", Eo, [
|
|
1895
|
+
L(pe, {
|
|
1875
1896
|
small: "",
|
|
1876
1897
|
variant: "alt",
|
|
1877
1898
|
icon: "plus",
|
|
1878
|
-
disabled: !("inline" in R.items && R.items.inline) && (((
|
|
1899
|
+
disabled: !("inline" in R.items && R.items.inline) && (((ve = m.modelValue[S]) == null ? void 0 : ve.length) >= R.maxItems || ce((Je = m.modelValue[S]) == null ? void 0 : Je[((be = m.modelValue[S]) == null ? void 0 : be.length) - 1])),
|
|
1879
1900
|
onClick: Re((x) => {
|
|
1880
|
-
|
|
1901
|
+
m.modelValue[S] || (m.modelValue[S] = []), e(So)(m.modelValue[S], R, e(o));
|
|
1881
1902
|
}, ["prevent"])
|
|
1882
1903
|
}, {
|
|
1883
|
-
default:
|
|
1884
|
-
|
|
1904
|
+
default: y(() => [
|
|
1905
|
+
Q(C(e(q)("action.add", { capitalize: !0 })), 1)
|
|
1885
1906
|
]),
|
|
1886
1907
|
_: 2
|
|
1887
1908
|
}, 1032, ["disabled", "onClick"])
|
|
1888
1909
|
])),
|
|
1889
|
-
((Ze =
|
|
1890
|
-
(t(!0), l(P, null, H(
|
|
1891
|
-
var at, lt,
|
|
1910
|
+
((Ze = m.modelValue[S]) == null ? void 0 : Ze.length) > 0 ? (t(), l("div", Ho, [
|
|
1911
|
+
(t(!0), l(P, null, H(m.modelValue[S], (x, we) => {
|
|
1912
|
+
var at, lt, st, it, rt, ut;
|
|
1892
1913
|
return t(), l("div", {
|
|
1893
1914
|
key: `rep-${S}-${e(Ht)(x, we)}`,
|
|
1894
1915
|
class: "form__array-item"
|
|
1895
1916
|
}, [
|
|
1896
|
-
e(
|
|
1917
|
+
e(_) ? b("", !0) : J((t(), V(Y, {
|
|
1897
1918
|
key: 0,
|
|
1898
1919
|
icon: "trash",
|
|
1899
1920
|
class: "form__array-remove",
|
|
1900
|
-
onClick: Re((
|
|
1921
|
+
onClick: Re((Te) => e(wo)(m.modelValue[S], we), ["prevent"])
|
|
1901
1922
|
}, {
|
|
1902
|
-
default:
|
|
1903
|
-
|
|
1923
|
+
default: y(() => [
|
|
1924
|
+
Q(C(e(q)("action.remove", { capitalize: !0 })), 1)
|
|
1904
1925
|
]),
|
|
1905
1926
|
_: 2
|
|
1906
1927
|
}, 1032, ["onClick"])), [
|
|
1907
1928
|
[F]
|
|
1908
1929
|
]),
|
|
1909
|
-
(t(), V(
|
|
1910
|
-
modelValue:
|
|
1911
|
-
"onUpdate:modelValue": (
|
|
1930
|
+
(t(), V(he(e(pt)(R, e(B))), U({
|
|
1931
|
+
modelValue: m.modelValue[S][we],
|
|
1932
|
+
"onUpdate:modelValue": (Te) => m.modelValue[S][we] = Te,
|
|
1912
1933
|
ref_for: !0
|
|
1913
1934
|
}, {
|
|
1914
|
-
readOnly: e(
|
|
1935
|
+
readOnly: e(_),
|
|
1915
1936
|
property: R.items,
|
|
1916
1937
|
propertyName: S,
|
|
1917
1938
|
parentCollection: e(u),
|
|
1918
|
-
parentPropertyName:
|
|
1919
|
-
columns: ((
|
|
1939
|
+
parentPropertyName: m.parentPropertyName,
|
|
1940
|
+
columns: ((st = (lt = (at = m.layout) == null ? void 0 : at.fields) == null ? void 0 : lt[S]) == null ? void 0 : st.optionsColumns) || ((ut = (rt = (it = m.layout) == null ? void 0 : it.fields) == null ? void 0 : rt.$default) == null ? void 0 : ut.optionsColumns),
|
|
1920
1941
|
validationErrors: k(S, we),
|
|
1921
1942
|
...R.componentProps || {}
|
|
1922
1943
|
}, {
|
|
1923
|
-
onInput: (
|
|
1924
|
-
onChange:
|
|
1944
|
+
onInput: (Te) => a("input", S),
|
|
1945
|
+
onChange: T[3] || (T[3] = (Te) => a("change", Te))
|
|
1925
1946
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"]))
|
|
1926
1947
|
]);
|
|
1927
1948
|
}), 128))
|
|
1928
|
-
])) :
|
|
1929
|
-
])) :
|
|
1949
|
+
])) : b("", !0)
|
|
1950
|
+
])) : m.modelValue ? J((t(), V(he(e(pt)(R, e(B))), U({
|
|
1930
1951
|
key: 6,
|
|
1931
|
-
modelValue:
|
|
1932
|
-
"onUpdate:modelValue": (x) =>
|
|
1952
|
+
modelValue: m.modelValue[S],
|
|
1953
|
+
"onUpdate:modelValue": (x) => m.modelValue[S] = x,
|
|
1933
1954
|
ref_for: !0
|
|
1934
1955
|
}, {
|
|
1935
|
-
readOnly: e(
|
|
1956
|
+
readOnly: e(_),
|
|
1936
1957
|
property: R,
|
|
1937
1958
|
propertyName: S,
|
|
1938
|
-
parentPropertyName:
|
|
1959
|
+
parentPropertyName: m.parentPropertyName,
|
|
1939
1960
|
parentCollection: e(u),
|
|
1940
|
-
columns: ((xe = (Ne = (Pe =
|
|
1961
|
+
columns: ((xe = (Ne = (Pe = m.layout) == null ? void 0 : Pe.fields) == null ? void 0 : Ne[S]) == null ? void 0 : xe.optionsColumns) || ((nt = (tt = (et = m.layout) == null ? void 0 : et.fields) == null ? void 0 : tt.$default) == null ? void 0 : nt.optionsColumns),
|
|
1941
1962
|
...R.componentProps || {},
|
|
1942
1963
|
validationErrors: k(S)
|
|
1943
1964
|
}, {
|
|
1944
1965
|
onInput: (x) => a("input", S),
|
|
1945
|
-
onChange:
|
|
1946
|
-
onClipboardCopy:
|
|
1966
|
+
onChange: T[4] || (T[4] = (x) => a("change", x)),
|
|
1967
|
+
onClipboardCopy: T[5] || (T[5] = (x) => a("clipboardCopy", x))
|
|
1947
1968
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1948
1969
|
[X, N(R)]
|
|
1949
|
-
]) :
|
|
1950
|
-
(ot =
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
])) :
|
|
1970
|
+
]) : b("", !0),
|
|
1971
|
+
(ot = f.value) != null && ot[S] ? (t(), l("div", Do, [
|
|
1972
|
+
f.value[S].type ? (t(), l("span", Qo, C(e(q)(`validation_error.${f.value[S].type}`)), 1)) : b("", !0),
|
|
1973
|
+
f.value[S].detail ? (t(), l("span", Go, C(e(q)(f.value[S].detail)), 1)) : b("", !0)
|
|
1974
|
+
])) : b("", !0)
|
|
1954
1975
|
], 6);
|
|
1955
1976
|
}), 128))
|
|
1956
1977
|
]),
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
A(
|
|
1978
|
+
m.$slots.after ? A(m.$slots, "after", { key: 1 }, void 0, !0) : b("", !0),
|
|
1979
|
+
m.$slots.footer ? (t(), l("div", Wo, [
|
|
1980
|
+
A(m.$slots, "footer", de(Ce({
|
|
1960
1981
|
isInsertReady: O.value
|
|
1961
1982
|
})), void 0, !0)
|
|
1962
|
-
])) :
|
|
1983
|
+
])) : b("", !0)
|
|
1963
1984
|
], 4);
|
|
1964
1985
|
};
|
|
1965
1986
|
}
|
|
1966
|
-
})
|
|
1987
|
+
});
|
|
1988
|
+
const He = /* @__PURE__ */ D(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @__PURE__ */ z({
|
|
1967
1989
|
__name: "aeria-filter-panel",
|
|
1968
1990
|
emits: ["update:modelValue"],
|
|
1969
1991
|
setup(p, { emit: r }) {
|
|
1970
|
-
const o = r, n = Ee(), a = Be(),
|
|
1992
|
+
const o = r, n = Ee(), a = Be(), c = e(fe(ze)), u = () => {
|
|
1971
1993
|
if (n.pagination.offset = 0, n.$actions.filter(), o("update:modelValue", !1), "query" in a.currentRoute && a.currentRoute.query && typeof a.currentRoute.query == "object") {
|
|
1972
|
-
const
|
|
1973
|
-
for (const
|
|
1974
|
-
|
|
1994
|
+
const _ = a.currentRoute.query;
|
|
1995
|
+
for (const d of Object.keys(_))
|
|
1996
|
+
d.startsWith(`${c}.`) && delete _[d];
|
|
1975
1997
|
}
|
|
1976
1998
|
a.push(qe(a.currentRoute.value, {
|
|
1977
1999
|
query: Rt(n)
|
|
1978
2000
|
}));
|
|
1979
2001
|
};
|
|
1980
|
-
return (
|
|
2002
|
+
return (_, d) => (t(), V(Se, {
|
|
1981
2003
|
"close-hint": "",
|
|
1982
2004
|
"fixed-right": "",
|
|
1983
|
-
title:
|
|
1984
|
-
onClose:
|
|
1985
|
-
onOverlayClick:
|
|
2005
|
+
title: _.t("filter_by", { capitalize: !0 }),
|
|
2006
|
+
onClose: d[2] || (d[2] = (g) => o("update:modelValue", !1)),
|
|
2007
|
+
onOverlayClick: d[3] || (d[3] = (g) => o("update:modelValue", !1))
|
|
1986
2008
|
}, {
|
|
1987
|
-
footer:
|
|
1988
|
-
e(n).filtersCount > 0 ? (t(), V(
|
|
2009
|
+
footer: y(() => [
|
|
2010
|
+
e(n).filtersCount > 0 ? (t(), V(pe, {
|
|
1989
2011
|
key: 0,
|
|
1990
2012
|
variant: "transparent",
|
|
1991
|
-
onClick:
|
|
2013
|
+
onClick: d[1] || (d[1] = (g) => {
|
|
1992
2014
|
e(n).$actions.clearFilters(), u(), o("update:modelValue", !1);
|
|
1993
2015
|
})
|
|
1994
2016
|
}, {
|
|
1995
|
-
default:
|
|
1996
|
-
|
|
2017
|
+
default: y(() => [
|
|
2018
|
+
Q(C(_.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
1997
2019
|
L(Ve, null, {
|
|
1998
|
-
default:
|
|
1999
|
-
|
|
2020
|
+
default: y(() => [
|
|
2021
|
+
Q(C(e(n).filtersCount), 1)
|
|
2000
2022
|
]),
|
|
2001
2023
|
_: 1
|
|
2002
2024
|
})
|
|
2003
2025
|
]),
|
|
2004
2026
|
_: 1
|
|
2005
|
-
})) :
|
|
2006
|
-
L(
|
|
2027
|
+
})) : b("", !0),
|
|
2028
|
+
L(pe, {
|
|
2007
2029
|
large: "",
|
|
2008
2030
|
icon: "funnel",
|
|
2009
2031
|
disabled: !e(n).hasActiveFilters,
|
|
2010
2032
|
onClick: u
|
|
2011
2033
|
}, {
|
|
2012
|
-
default:
|
|
2013
|
-
|
|
2034
|
+
default: y(() => [
|
|
2035
|
+
Q(C(_.t("action.filter", { capitalize: !0 })), 1)
|
|
2014
2036
|
]),
|
|
2015
2037
|
_: 1
|
|
2016
2038
|
}, 8, ["disabled"])
|
|
2017
2039
|
]),
|
|
2018
|
-
default:
|
|
2040
|
+
default: y(() => [
|
|
2019
2041
|
L(He, U({
|
|
2020
2042
|
modelValue: e(n).filters,
|
|
2021
|
-
"onUpdate:modelValue":
|
|
2043
|
+
"onUpdate:modelValue": d[0] || (d[0] = (g) => e(n).filters = g)
|
|
2022
2044
|
}, {
|
|
2023
2045
|
searchOnly: !0,
|
|
2024
2046
|
form: e(n).availableFilters,
|
|
@@ -2028,7 +2050,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2028
2050
|
_: 1
|
|
2029
2051
|
}, 8, ["title"]));
|
|
2030
2052
|
}
|
|
2031
|
-
}), Xo = /* @__PURE__ */
|
|
2053
|
+
}), Xo = /* @__PURE__ */ z({
|
|
2032
2054
|
__name: "aeria-insert-panel",
|
|
2033
2055
|
props: {
|
|
2034
2056
|
individualActions: {},
|
|
@@ -2044,111 +2066,111 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2044
2066
|
},
|
|
2045
2067
|
emits: ["update:visible", "update:modelValue", "insert", "cancel"],
|
|
2046
2068
|
setup(p, { emit: r }) {
|
|
2047
|
-
const o = p, n = r, a = re("meta"),
|
|
2069
|
+
const o = p, n = r, a = re("meta"), c = o.collection, u = re(c);
|
|
2048
2070
|
We(() => {
|
|
2049
2071
|
o.modelValue && u.$actions.setItem(o.modelValue);
|
|
2050
2072
|
});
|
|
2051
|
-
const
|
|
2052
|
-
const { error:
|
|
2053
|
-
|
|
2054
|
-
}, { t:
|
|
2073
|
+
const _ = K(() => o.form ? u.$actions.useProperties(o.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
|
|
2074
|
+
const { error: $, result: f } = await u.$actions.deepInsert();
|
|
2075
|
+
$ || (n("update:visible", !1), n("update:modelValue", f), n("insert", f), u.$actions.clearItem());
|
|
2076
|
+
}, { t: g } = Bt(), i = () => {
|
|
2055
2077
|
a.$actions.ask({
|
|
2056
2078
|
action: () => {
|
|
2057
2079
|
u.$actions.clearItem(), u.validationErrors = {}, n("cancel");
|
|
2058
2080
|
},
|
|
2059
|
-
body:
|
|
2081
|
+
body: g("prompt.close_panel")
|
|
2060
2082
|
});
|
|
2061
|
-
},
|
|
2083
|
+
}, v = () => a.$actions.spawnToast({
|
|
2062
2084
|
icon: "info",
|
|
2063
|
-
text:
|
|
2085
|
+
text: g("copied_to_clipboard")
|
|
2064
2086
|
});
|
|
2065
|
-
return ue(() => u.item._id, (
|
|
2066
|
-
|
|
2067
|
-
}), (
|
|
2087
|
+
return ue(() => u.item._id, ($) => {
|
|
2088
|
+
$ === null && n("update:visible", !1);
|
|
2089
|
+
}), ($, f) => {
|
|
2068
2090
|
const B = ne("clickable");
|
|
2069
2091
|
return t(), V(Se, U({
|
|
2070
|
-
modelValue:
|
|
2092
|
+
modelValue: $.visible,
|
|
2071
2093
|
loading: e(u).loading.get,
|
|
2072
|
-
float:
|
|
2073
|
-
fixedRight:
|
|
2074
|
-
}, { onOverlayClick:
|
|
2075
|
-
extra:
|
|
2076
|
-
|
|
2094
|
+
float: $.float,
|
|
2095
|
+
fixedRight: $.fixedRight
|
|
2096
|
+
}, { onOverlayClick: i }), _e({
|
|
2097
|
+
extra: y(() => [
|
|
2098
|
+
$.individualActions ? (t(), V(Ie, U({ key: 0 }, {
|
|
2077
2099
|
subject: e(u).item,
|
|
2078
|
-
actions:
|
|
2100
|
+
actions: $.individualActions.filter(({ action: s }) => s !== "spawnEdit"),
|
|
2079
2101
|
overlayLayer: 60
|
|
2080
2102
|
}, {
|
|
2081
|
-
onActionClick:
|
|
2103
|
+
onActionClick: f[2] || (f[2] = (s) => n("update:visible", !1))
|
|
2082
2104
|
}), {
|
|
2083
|
-
default:
|
|
2084
|
-
visible:
|
|
2105
|
+
default: y(({
|
|
2106
|
+
visible: s
|
|
2085
2107
|
}) => [
|
|
2086
2108
|
e(u).item._id ? J((t(), V(Y, {
|
|
2087
2109
|
key: 0,
|
|
2088
2110
|
reactive: "",
|
|
2089
|
-
active:
|
|
2111
|
+
active: s,
|
|
2090
2112
|
icon: "dots-three"
|
|
2091
2113
|
}, null, 8, ["active"])), [
|
|
2092
2114
|
[B]
|
|
2093
|
-
]) :
|
|
2115
|
+
]) : b("", !0)
|
|
2094
2116
|
]),
|
|
2095
2117
|
_: 1
|
|
2096
|
-
}, 16)) :
|
|
2118
|
+
}, 16)) : b("", !0)
|
|
2097
2119
|
]),
|
|
2098
|
-
default:
|
|
2120
|
+
default: y(() => [
|
|
2099
2121
|
L(He, U({
|
|
2100
2122
|
modelValue: e(u).item,
|
|
2101
|
-
"onUpdate:modelValue":
|
|
2123
|
+
"onUpdate:modelValue": f[0] || (f[0] = (s) => e(u).item = s)
|
|
2102
2124
|
}, {
|
|
2103
|
-
collection: e(
|
|
2104
|
-
readOnly:
|
|
2105
|
-
includeId:
|
|
2106
|
-
includeTimestamps:
|
|
2107
|
-
form:
|
|
2125
|
+
collection: e(c),
|
|
2126
|
+
readOnly: $.readOnly,
|
|
2127
|
+
includeId: $.includeId,
|
|
2128
|
+
includeTimestamps: $.includeTimestamps,
|
|
2129
|
+
form: _.value,
|
|
2108
2130
|
layout: e(u).description.formLayout || {}
|
|
2109
2131
|
}, {
|
|
2110
2132
|
focus: "",
|
|
2111
|
-
onClipboardCopy:
|
|
2112
|
-
onAdd:
|
|
2113
|
-
}),
|
|
2114
|
-
H(Object.keys(
|
|
2115
|
-
name:
|
|
2116
|
-
fn:
|
|
2117
|
-
A(
|
|
2133
|
+
onClipboardCopy: v,
|
|
2134
|
+
onAdd: f[1] || (f[1] = (s) => s.preventDefault())
|
|
2135
|
+
}), _e({ _: 2 }, [
|
|
2136
|
+
H(Object.keys($.$slots).filter((s) => s.startsWith("field-")), (s) => ({
|
|
2137
|
+
name: s,
|
|
2138
|
+
fn: y((M) => [
|
|
2139
|
+
A($.$slots, s, de(Ce(M)))
|
|
2118
2140
|
])
|
|
2119
2141
|
}))
|
|
2120
2142
|
]), 1040, ["modelValue"])
|
|
2121
2143
|
]),
|
|
2122
2144
|
_: 2
|
|
2123
2145
|
}, [
|
|
2124
|
-
|
|
2146
|
+
$.$slots.header ? {
|
|
2125
2147
|
name: "header",
|
|
2126
|
-
fn:
|
|
2127
|
-
A(
|
|
2148
|
+
fn: y(() => [
|
|
2149
|
+
A($.$slots, "header")
|
|
2128
2150
|
]),
|
|
2129
2151
|
key: "0"
|
|
2130
2152
|
} : void 0,
|
|
2131
|
-
|
|
2153
|
+
$.readOnly ? void 0 : {
|
|
2132
2154
|
name: "footer",
|
|
2133
|
-
fn:
|
|
2134
|
-
|
|
2155
|
+
fn: y(() => [
|
|
2156
|
+
$.float || $.fixedRight ? (t(), V(pe, {
|
|
2135
2157
|
key: 0,
|
|
2136
2158
|
variant: "transparent",
|
|
2137
|
-
onClick:
|
|
2159
|
+
onClick: i
|
|
2138
2160
|
}, {
|
|
2139
|
-
default:
|
|
2140
|
-
|
|
2161
|
+
default: y(() => [
|
|
2162
|
+
Q(C(e(g)("action.cancel", { capitalize: !0 })), 1)
|
|
2141
2163
|
]),
|
|
2142
2164
|
_: 1
|
|
2143
|
-
})) :
|
|
2144
|
-
L(
|
|
2165
|
+
})) : b("", !0),
|
|
2166
|
+
L(pe, {
|
|
2145
2167
|
large: "",
|
|
2146
2168
|
disabled: !e(u).isInsertReady || e(u).loading.get,
|
|
2147
2169
|
loading: e(u).loading.insert,
|
|
2148
|
-
onClick:
|
|
2170
|
+
onClick: d
|
|
2149
2171
|
}, {
|
|
2150
|
-
default:
|
|
2151
|
-
|
|
2172
|
+
default: y(() => [
|
|
2173
|
+
Q(C(e(g)("action.insert", { capitalize: !0 })), 1)
|
|
2152
2174
|
]),
|
|
2153
2175
|
_: 1
|
|
2154
2176
|
}, 8, ["disabled", "loading"])
|
|
@@ -2158,7 +2180,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2158
2180
|
]), 1040);
|
|
2159
2181
|
};
|
|
2160
2182
|
}
|
|
2161
|
-
}),
|
|
2183
|
+
}), ht = (p, r) => {
|
|
2162
2184
|
if (r) {
|
|
2163
2185
|
if (!p) {
|
|
2164
2186
|
r.filtersPreset = {}, r.preferredTableProperties = [], r.pagination.offset = 0;
|
|
@@ -2173,13 +2195,13 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2173
2195
|
return ue(() => n.value.query.section, (a) => {
|
|
2174
2196
|
if (p) {
|
|
2175
2197
|
if (p.description.filtersPresets) {
|
|
2176
|
-
const
|
|
2177
|
-
|
|
2198
|
+
const c = a || Object.keys(p.description.filtersPresets)[0];
|
|
2199
|
+
ht(p.description.filtersPresets[c], p);
|
|
2178
2200
|
}
|
|
2179
2201
|
if (r.persistInQuery) {
|
|
2180
|
-
const
|
|
2181
|
-
|
|
2182
|
-
$search: `"${
|
|
2202
|
+
const c = n.value.query;
|
|
2203
|
+
c.offset && (p.pagination.offset = +c.offset), c.limit && (p.pagination.limit = +c.limit), c.search && (p.textQuery = c.search, p.filters.$text = {
|
|
2204
|
+
$search: `"${c.search}"`,
|
|
2183
2205
|
$caseSensitive: !1
|
|
2184
2206
|
});
|
|
2185
2207
|
}
|
|
@@ -2193,19 +2215,19 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2193
2215
|
}, Po = { key: 0 }, No = { key: 1 }, xo = { key: 0 }, ea = ["checked"], ta = {
|
|
2194
2216
|
key: 1,
|
|
2195
2217
|
style: { "text-align": "right" }
|
|
2196
|
-
}, na = { key: 2 }, oa = { key: 3 }, aa = ["onClick"], la = { key: 0 },
|
|
2218
|
+
}, na = { key: 2 }, oa = { key: 3 }, aa = ["onClick"], la = { key: 0 }, sa = ["value"], ia = { class: "table__cell-mobile-label" }, ra = {
|
|
2197
2219
|
key: 0,
|
|
2198
2220
|
class: "table__cell-container"
|
|
2199
2221
|
}, ua = {
|
|
2200
2222
|
key: 1,
|
|
2201
2223
|
class: "table__cell-container"
|
|
2202
|
-
},
|
|
2224
|
+
}, ca = { class: "table__cell-grid" }, da = { key: 0 }, pa = { key: 1 }, _a = { key: 0 }, ma = ["href"], fa = { key: 3 }, va = { key: 1 }, ya = { key: 2 }, ba = { key: 0 }, ha = { key: 1 }, ga = { key: 2 }, $a = {
|
|
2203
2225
|
key: 1,
|
|
2204
2226
|
class: "no-print"
|
|
2205
2227
|
}, ka = { class: "table__cell-actions" }, Va = {
|
|
2206
2228
|
key: 2,
|
|
2207
2229
|
class: "no-print table__mobile-actions"
|
|
2208
|
-
}, Ca = ["id"], Oa = { key: 1 }, Aa = ["colspan"], Ia = { class: "table__empty" }, Ba = /* @__PURE__ */
|
|
2230
|
+
}, Ca = ["id"], Oa = { key: 1 }, Aa = ["colspan"], Ia = { class: "table__empty" }, Ba = /* @__PURE__ */ z({
|
|
2209
2231
|
__name: "aeria-table",
|
|
2210
2232
|
props: {
|
|
2211
2233
|
columns: {},
|
|
@@ -2217,101 +2239,101 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2217
2239
|
},
|
|
2218
2240
|
emits: ["itemClick"],
|
|
2219
2241
|
setup(p, { emit: r }) {
|
|
2220
|
-
const o = p, n = r, a = Le(),
|
|
2242
|
+
const o = p, n = r, a = Le(), c = o.collection || Me(), u = c ? re(typeof c == "string" ? c : c.value) : null, _ = K({
|
|
2221
2243
|
get: () => u == null ? void 0 : u.selected,
|
|
2222
|
-
set: (
|
|
2223
|
-
}),
|
|
2224
|
-
var
|
|
2225
|
-
const B = (
|
|
2226
|
-
return !a.value.xl || !B || !o.actions ? [] : o.actions.filter((
|
|
2227
|
-
const E = B[
|
|
2228
|
-
return E &&
|
|
2244
|
+
set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
|
|
2245
|
+
}), d = K(() => o.columns ? Object.keys(o.columns).length + Number(o.checkbox) : 0), g = (f, B) => f.button ? typeof f.button == "object" ? Qe(B, f.button).satisfied : f.button : !1, i = (f) => {
|
|
2246
|
+
var s;
|
|
2247
|
+
const B = (s = o.layout) == null ? void 0 : s.actions;
|
|
2248
|
+
return !a.value.xl || !B || !o.actions ? [] : o.actions.filter((M) => {
|
|
2249
|
+
const E = B[M.action];
|
|
2250
|
+
return E && g(E, f);
|
|
2229
2251
|
});
|
|
2230
|
-
},
|
|
2231
|
-
var
|
|
2252
|
+
}, v = (f) => {
|
|
2253
|
+
var s;
|
|
2232
2254
|
if (!o.actions)
|
|
2233
2255
|
return [];
|
|
2234
|
-
const B = (
|
|
2235
|
-
return !a.value.xl || !B ? o.actions : o.actions.filter((
|
|
2236
|
-
const E = B[
|
|
2237
|
-
if (
|
|
2256
|
+
const B = (s = o.layout) == null ? void 0 : s.actions;
|
|
2257
|
+
return !a.value.xl || !B ? o.actions : o.actions.filter((M) => {
|
|
2258
|
+
const E = B[M.action];
|
|
2259
|
+
if (M.roles) {
|
|
2238
2260
|
const Z = re("user");
|
|
2239
|
-
if (!
|
|
2261
|
+
if (!bt(M.roles, Z.currentUser.roles))
|
|
2240
2262
|
return !1;
|
|
2241
2263
|
}
|
|
2242
|
-
return !E ||
|
|
2264
|
+
return !E || !g(E, f);
|
|
2243
2265
|
});
|
|
2244
|
-
},
|
|
2266
|
+
}, $ = (f, B) => {
|
|
2245
2267
|
var E, Z;
|
|
2246
|
-
const
|
|
2247
|
-
return
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
).satisfied ||
|
|
2268
|
+
const s = [], M = (Z = (E = o.layout) == null ? void 0 : E.actions) == null ? void 0 : Z[B.action];
|
|
2269
|
+
return M != null && M.if && (Qe(
|
|
2270
|
+
f,
|
|
2271
|
+
M.if
|
|
2272
|
+
).satisfied || s.push("display: none;")), s.join("");
|
|
2251
2273
|
};
|
|
2252
|
-
return (
|
|
2253
|
-
var
|
|
2254
|
-
const
|
|
2255
|
-
return
|
|
2256
|
-
|
|
2257
|
-
A(
|
|
2274
|
+
return (f, B) => {
|
|
2275
|
+
var M, E, Z;
|
|
2276
|
+
const s = ne("clickable");
|
|
2277
|
+
return d.value > 0 || f.$slots.thead ? (t(), l("table", Zo, [
|
|
2278
|
+
f.$slots.thead ? (t(), l("thead", Po, [
|
|
2279
|
+
A(f.$slots, "thead", {}, void 0, !0)
|
|
2258
2280
|
])) : (t(), l("thead", No, [
|
|
2259
2281
|
I("tr", null, [
|
|
2260
|
-
|
|
2282
|
+
f.checkbox && e(u) && e(a).md ? (t(), l("th", xo, [
|
|
2261
2283
|
I("input", {
|
|
2262
2284
|
type: "checkbox",
|
|
2263
2285
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2264
|
-
onChange: B[0] || (B[0] = (
|
|
2286
|
+
onChange: B[0] || (B[0] = (h) => e(u).$actions.selectAllItems(h.target.checked))
|
|
2265
2287
|
}, null, 40, ea)
|
|
2266
|
-
])) :
|
|
2267
|
-
(t(!0), l(P, null, H(Object.entries(
|
|
2288
|
+
])) : b("", !0),
|
|
2289
|
+
(t(!0), l(P, null, H(Object.entries(f.columns), ([h, G], oe) => (t(), l("th", {
|
|
2268
2290
|
key: `header-${oe}`,
|
|
2269
2291
|
class: "table__header"
|
|
2270
|
-
}, C(G.description || e(q)(
|
|
2271
|
-
(
|
|
2292
|
+
}, C(G.description || e(q)(h)), 1))), 128)),
|
|
2293
|
+
(M = f.actions) != null && M.length ? (t(), l("th", ta)) : b("", !0)
|
|
2272
2294
|
])
|
|
2273
2295
|
])),
|
|
2274
|
-
|
|
2275
|
-
A(
|
|
2296
|
+
f.$slots.tbody ? (t(), l("tbody", na, [
|
|
2297
|
+
A(f.$slots, "tbody", {}, void 0, !0)
|
|
2276
2298
|
])) : (t(), l("tbody", oa, [
|
|
2277
|
-
(t(!0), l(P, null, H(
|
|
2299
|
+
(t(!0), l(P, null, H(f.rows, (h) => {
|
|
2278
2300
|
var G, oe;
|
|
2279
2301
|
return t(), l("tr", {
|
|
2280
|
-
key:
|
|
2281
|
-
onClick: (w) => n("itemClick",
|
|
2302
|
+
key: h._id,
|
|
2303
|
+
onClick: (w) => n("itemClick", h)
|
|
2282
2304
|
}, [
|
|
2283
|
-
e(u) &&
|
|
2305
|
+
e(u) && f.checkbox && e(a).md ? (t(), l("td", la, [
|
|
2284
2306
|
J(I("input", {
|
|
2285
|
-
"onUpdate:modelValue": B[1] || (B[1] = (w) =>
|
|
2307
|
+
"onUpdate:modelValue": B[1] || (B[1] = (w) => _.value = w),
|
|
2286
2308
|
type: "checkbox",
|
|
2287
|
-
value:
|
|
2288
|
-
}, null, 8,
|
|
2289
|
-
[kt,
|
|
2309
|
+
value: h._id
|
|
2310
|
+
}, null, 8, sa), [
|
|
2311
|
+
[kt, _.value]
|
|
2290
2312
|
])
|
|
2291
|
-
])) :
|
|
2292
|
-
(t(!0), l(P, null, H(Object.entries(
|
|
2313
|
+
])) : b("", !0),
|
|
2314
|
+
(t(!0), l(P, null, H(Object.entries(f.columns), ([w, te], ke) => {
|
|
2293
2315
|
var ce, ae, O;
|
|
2294
2316
|
return t(), l("td", {
|
|
2295
|
-
key: `column-${
|
|
2317
|
+
key: `column-${h._id}-${ke}`
|
|
2296
2318
|
}, [
|
|
2297
|
-
I("div",
|
|
2298
|
-
`row-${w}` in
|
|
2299
|
-
A(
|
|
2319
|
+
I("div", ia, C(te.description || e(q)(w)), 1),
|
|
2320
|
+
`row-${w}` in f.$slots ? (t(), l("div", ra, [
|
|
2321
|
+
A(f.$slots, `row-${w}`, U({ ref_for: !0 }, {
|
|
2300
2322
|
store: e(u),
|
|
2301
2323
|
column: w,
|
|
2302
2324
|
property: te,
|
|
2303
|
-
row:
|
|
2325
|
+
row: h
|
|
2304
2326
|
}), void 0, !0)
|
|
2305
2327
|
])) : (t(), l("div", ua, [
|
|
2306
|
-
I("div",
|
|
2307
|
-
"type" in te && te.type === "boolean" ? (t(), l("div",
|
|
2308
|
-
|
|
2328
|
+
I("div", ca, [
|
|
2329
|
+
"type" in te && te.type === "boolean" ? (t(), l("div", da, [
|
|
2330
|
+
h[w] ? (t(), V(Y, {
|
|
2309
2331
|
key: 0,
|
|
2310
2332
|
icon: "check",
|
|
2311
2333
|
"icon-classes": "aeria-blueish"
|
|
2312
2334
|
}, {
|
|
2313
|
-
default:
|
|
2314
|
-
|
|
2335
|
+
default: y(() => [
|
|
2336
|
+
Q(C(e(q)("yes")), 1)
|
|
2315
2337
|
]),
|
|
2316
2338
|
_: 1
|
|
2317
2339
|
})) : (t(), V(Y, {
|
|
@@ -2319,80 +2341,80 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2319
2341
|
icon: "x",
|
|
2320
2342
|
"icon-classes": "aeria-redish"
|
|
2321
2343
|
}, {
|
|
2322
|
-
default:
|
|
2323
|
-
|
|
2344
|
+
default: y(() => [
|
|
2345
|
+
Q(C(e(q)("no")), 1)
|
|
2324
2346
|
]),
|
|
2325
2347
|
_: 1
|
|
2326
2348
|
}))
|
|
2327
|
-
])) : ((ce = e(
|
|
2328
|
-
|
|
2329
|
-
"items" in te &&
|
|
2349
|
+
])) : ((ce = e(me)(te)) == null ? void 0 : ce.$ref) === "file" ? (t(), l("div", pa, [
|
|
2350
|
+
h[w] ? (t(), l("div", _a, [
|
|
2351
|
+
"items" in te && h[w][0] && /^image/.test(h[w][0].type) ? (t(), V(Ue, {
|
|
2330
2352
|
key: 0,
|
|
2331
|
-
modelValue:
|
|
2332
|
-
"onUpdate:modelValue": (k) =>
|
|
2353
|
+
modelValue: h[w][0].link,
|
|
2354
|
+
"onUpdate:modelValue": (k) => h[w][0].link = k,
|
|
2333
2355
|
expandable: "",
|
|
2334
|
-
meta:
|
|
2356
|
+
meta: h[w][0],
|
|
2335
2357
|
alt: "Row image",
|
|
2336
2358
|
class: "table__picture"
|
|
2337
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(
|
|
2359
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[w].type) ? (t(), V(Ue, {
|
|
2338
2360
|
key: 1,
|
|
2339
|
-
modelValue:
|
|
2340
|
-
"onUpdate:modelValue": (k) =>
|
|
2361
|
+
modelValue: h[w].link,
|
|
2362
|
+
"onUpdate:modelValue": (k) => h[w].link = k,
|
|
2341
2363
|
expandable: "",
|
|
2342
|
-
meta:
|
|
2364
|
+
meta: h[w],
|
|
2343
2365
|
alt: "Row image",
|
|
2344
2366
|
class: "table__picture"
|
|
2345
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) :
|
|
2367
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[w].link ? (t(), l("a", {
|
|
2346
2368
|
key: 2,
|
|
2347
|
-
href:
|
|
2369
|
+
href: h[w].link,
|
|
2348
2370
|
style: { "font-size": "10pt" }
|
|
2349
|
-
}, C(
|
|
2350
|
-
])) : (t(), l("div",
|
|
2351
|
-
])) : (t(), l("div",
|
|
2352
|
-
e(u) ? (t(), l("span",
|
|
2353
|
-
value:
|
|
2371
|
+
}, C(h[w].filename), 9, ma)) : (t(), l("div", fa, " - "))
|
|
2372
|
+
])) : (t(), l("div", va, " - "))
|
|
2373
|
+
])) : (t(), l("div", ya, [
|
|
2374
|
+
e(u) ? (t(), l("span", ba, C(e(u).$actions.formatValue({
|
|
2375
|
+
value: h[w],
|
|
2354
2376
|
key: w,
|
|
2355
2377
|
property: te
|
|
2356
|
-
})), 1)) : (t(), l("span",
|
|
2357
|
-
((O = (ae = e(
|
|
2358
|
-
(t(!0), l(P, null, H(e(
|
|
2378
|
+
})), 1)) : (t(), l("span", ha, C(Array.isArray(h[w]) ? h[w].filter((k) => !!k).join(", ") : [void 0, null].includes(h[w]) ? "-" : h[w]), 1)),
|
|
2379
|
+
((O = (ae = e(me)(te)) == null ? void 0 : ae.indexes) == null ? void 0 : O.length) > 1 ? (t(), l("div", ga, [
|
|
2380
|
+
(t(!0), l(P, null, H(e(me)(te).indexes.slice(1, 2), (k, N) => (t(), l("div", {
|
|
2359
2381
|
key: `subvalue-${N}`,
|
|
2360
2382
|
class: "table__cell-subvalue"
|
|
2361
2383
|
}, C(e(u).$actions.formatValue({
|
|
2362
|
-
value:
|
|
2384
|
+
value: h[w],
|
|
2363
2385
|
key: w,
|
|
2364
2386
|
property: te,
|
|
2365
2387
|
index: k
|
|
2366
2388
|
})), 1))), 128))
|
|
2367
|
-
])) :
|
|
2389
|
+
])) : b("", !0)
|
|
2368
2390
|
]))
|
|
2369
2391
|
])
|
|
2370
2392
|
]))
|
|
2371
2393
|
]);
|
|
2372
2394
|
}), 128)),
|
|
2373
|
-
(G =
|
|
2395
|
+
(G = f.actions) != null && G.length && e(a).md ? (t(), l("td", $a, [
|
|
2374
2396
|
I("div", ka, [
|
|
2375
|
-
(t(!0), l(P, null, H(
|
|
2397
|
+
(t(!0), l(P, null, H(i(h), (w) => (t(), V(pe, {
|
|
2376
2398
|
key: `action-${w.action}`,
|
|
2377
2399
|
small: "",
|
|
2378
2400
|
variant: "alt",
|
|
2379
2401
|
icon: w.icon,
|
|
2380
|
-
style:
|
|
2381
|
-
onClick: (te) => w.click(
|
|
2402
|
+
style: $e($(h, w)),
|
|
2403
|
+
onClick: (te) => w.click(h)
|
|
2382
2404
|
}, {
|
|
2383
|
-
default:
|
|
2384
|
-
|
|
2405
|
+
default: y(() => [
|
|
2406
|
+
Q(C(e(q)(w.label)), 1)
|
|
2385
2407
|
]),
|
|
2386
2408
|
_: 2
|
|
2387
2409
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2388
|
-
|
|
2410
|
+
v(h).length > 0 ? (t(), V(Ie, U({
|
|
2389
2411
|
key: 0,
|
|
2390
2412
|
ref_for: !0
|
|
2391
2413
|
}, {
|
|
2392
|
-
subject:
|
|
2393
|
-
actions:
|
|
2414
|
+
subject: h,
|
|
2415
|
+
actions: v(h)
|
|
2394
2416
|
}), {
|
|
2395
|
-
default:
|
|
2417
|
+
default: y(({
|
|
2396
2418
|
visible: w
|
|
2397
2419
|
}) => [
|
|
2398
2420
|
J(L(Y, {
|
|
@@ -2400,70 +2422,71 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2400
2422
|
active: w,
|
|
2401
2423
|
icon: "dots-three"
|
|
2402
2424
|
}, null, 8, ["active"]), [
|
|
2403
|
-
[
|
|
2425
|
+
[s]
|
|
2404
2426
|
])
|
|
2405
2427
|
]),
|
|
2406
2428
|
_: 2
|
|
2407
|
-
}, 1040)) :
|
|
2429
|
+
}, 1040)) : b("", !0)
|
|
2408
2430
|
])
|
|
2409
|
-
])) : (oe =
|
|
2431
|
+
])) : (oe = f.actions) != null && oe.length ? (t(), l("td", Va, [
|
|
2410
2432
|
I("div", {
|
|
2411
2433
|
class: "table__mobile-actions-grid",
|
|
2412
|
-
style:
|
|
2434
|
+
style: $e(`grid-template-columns: repeat(${i(h).length + (v(h).length ? 1 : 0)}, 1fr);`)
|
|
2413
2435
|
}, [
|
|
2414
|
-
(t(!0), l(P, null, H(
|
|
2436
|
+
(t(!0), l(P, null, H(i(h), (w) => (t(), V(ye, {
|
|
2415
2437
|
key: `action-${w.action}`,
|
|
2416
2438
|
class: "table__mobile-actions-button",
|
|
2417
|
-
onClick: (te) => w.click(
|
|
2439
|
+
onClick: (te) => w.click(h)
|
|
2418
2440
|
}, {
|
|
2419
|
-
default:
|
|
2441
|
+
default: y(() => [
|
|
2420
2442
|
L(Y, {
|
|
2421
2443
|
icon: w.icon || "gear"
|
|
2422
2444
|
}, {
|
|
2423
|
-
default:
|
|
2424
|
-
|
|
2445
|
+
default: y(() => [
|
|
2446
|
+
Q(C(e(q)(w.label)), 1)
|
|
2425
2447
|
]),
|
|
2426
2448
|
_: 2
|
|
2427
2449
|
}, 1032, ["icon"])
|
|
2428
2450
|
]),
|
|
2429
2451
|
_: 2
|
|
2430
2452
|
}, 1032, ["onClick"]))), 128)),
|
|
2431
|
-
|
|
2453
|
+
v(h).length > 0 ? (t(), V(Ie, U({
|
|
2432
2454
|
key: 0,
|
|
2433
2455
|
ref_for: !0
|
|
2434
2456
|
}, {
|
|
2435
|
-
subject:
|
|
2436
|
-
actions:
|
|
2457
|
+
subject: h,
|
|
2458
|
+
actions: v(h)
|
|
2437
2459
|
}), {
|
|
2438
|
-
default:
|
|
2460
|
+
default: y(() => [
|
|
2439
2461
|
L(Y, {
|
|
2440
2462
|
icon: "dots-three",
|
|
2441
2463
|
class: "table__mobile-actions-button"
|
|
2442
2464
|
})
|
|
2443
2465
|
]),
|
|
2444
2466
|
_: 2
|
|
2445
|
-
}, 1040)) :
|
|
2467
|
+
}, 1040)) : b("", !0)
|
|
2446
2468
|
], 4),
|
|
2447
2469
|
I("div", {
|
|
2448
|
-
id: `dropdown-${
|
|
2470
|
+
id: `dropdown-${h._id}`
|
|
2449
2471
|
}, null, 8, Ca)
|
|
2450
|
-
])) :
|
|
2472
|
+
])) : b("", !0)
|
|
2451
2473
|
], 8, aa);
|
|
2452
2474
|
}), 128))
|
|
2453
2475
|
])),
|
|
2454
2476
|
I("tfoot", null, [
|
|
2455
|
-
|
|
2477
|
+
f.$slots.tfoot ? A(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((Z = e(u)) != null && Z.loading.getAll) ? (t(), l("tr", Oa, [
|
|
2456
2478
|
I("td", {
|
|
2457
|
-
colspan:
|
|
2479
|
+
colspan: d.value + 1
|
|
2458
2480
|
}, [
|
|
2459
2481
|
I("div", Ia, C(e(q)("no_results", { capitalize: !0 })) + ". ", 1)
|
|
2460
2482
|
], 8, Aa)
|
|
2461
|
-
])) :
|
|
2483
|
+
])) : b("", !0)
|
|
2462
2484
|
])
|
|
2463
|
-
])) :
|
|
2485
|
+
])) : b("", !0);
|
|
2464
2486
|
};
|
|
2465
2487
|
}
|
|
2466
|
-
})
|
|
2488
|
+
});
|
|
2489
|
+
const Sa = /* @__PURE__ */ D(Ba, [["__scopeId", "data-v-89303bb6"]]), wa = /* @__PURE__ */ z({
|
|
2467
2490
|
__name: "aeria-tabular",
|
|
2468
2491
|
props: {
|
|
2469
2492
|
individualActions: {},
|
|
@@ -2471,8 +2494,8 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2471
2494
|
componentProps: {}
|
|
2472
2495
|
},
|
|
2473
2496
|
setup(p) {
|
|
2474
|
-
const r = p, o =
|
|
2475
|
-
const
|
|
2497
|
+
const r = p, o = je(), n = Me(), a = K(() => {
|
|
2498
|
+
const c = {
|
|
2476
2499
|
collection: n,
|
|
2477
2500
|
checkbox: o.hasSelectionActions,
|
|
2478
2501
|
columns: o.tableProperties,
|
|
@@ -2480,23 +2503,23 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2480
2503
|
actions: r.individualActions,
|
|
2481
2504
|
layout: o.tableLayout
|
|
2482
2505
|
};
|
|
2483
|
-
return Object.assign(
|
|
2506
|
+
return Object.assign(c, r.componentProps);
|
|
2484
2507
|
});
|
|
2485
|
-
return (
|
|
2486
|
-
|
|
2508
|
+
return (c, u) => (t(), l("div", null, [
|
|
2509
|
+
c.$slots.inner ? A(c.$slots, "inner", { key: 0 }) : b("", !0),
|
|
2487
2510
|
e(o).properties ? (t(), V(Sa, U({ key: 1 }, a.value, {
|
|
2488
2511
|
key: e(o).$id
|
|
2489
|
-
}),
|
|
2490
|
-
H(Object.keys(
|
|
2491
|
-
name:
|
|
2492
|
-
fn:
|
|
2493
|
-
A(
|
|
2512
|
+
}), _e({ _: 2 }, [
|
|
2513
|
+
H(Object.keys(c.$slots).filter((_) => !["inner"].includes(_)), (_) => ({
|
|
2514
|
+
name: _,
|
|
2515
|
+
fn: y((d) => [
|
|
2516
|
+
A(c.$slots, _, de(Ce(d)))
|
|
2494
2517
|
])
|
|
2495
2518
|
}))
|
|
2496
|
-
]), 1040)) :
|
|
2519
|
+
]), 1040)) : b("", !0)
|
|
2497
2520
|
]));
|
|
2498
2521
|
}
|
|
2499
|
-
}),
|
|
2522
|
+
}), Ta = /* @__PURE__ */ z({
|
|
2500
2523
|
__name: "aeria-grid",
|
|
2501
2524
|
props: {
|
|
2502
2525
|
list: { type: Boolean }
|
|
@@ -2511,10 +2534,11 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2511
2534
|
A(r.$slots, "default", {}, void 0, !0)
|
|
2512
2535
|
], 2));
|
|
2513
2536
|
}
|
|
2514
|
-
})
|
|
2537
|
+
});
|
|
2538
|
+
const ja = /* @__PURE__ */ D(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key: 0 }, qa = {
|
|
2515
2539
|
key: 1,
|
|
2516
2540
|
class: "card__information"
|
|
2517
|
-
}, La = /* @__PURE__ */
|
|
2541
|
+
}, La = /* @__PURE__ */ z({
|
|
2518
2542
|
__name: "aeria-grid",
|
|
2519
2543
|
props: {
|
|
2520
2544
|
individualActions: {},
|
|
@@ -2523,69 +2547,69 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2523
2547
|
componentName: {}
|
|
2524
2548
|
},
|
|
2525
2549
|
setup(p) {
|
|
2526
|
-
const o = p.layoutOptions, n =
|
|
2527
|
-
return (
|
|
2528
|
-
const
|
|
2529
|
-
return t(), V(
|
|
2530
|
-
list:
|
|
2550
|
+
const o = p.layoutOptions, n = je(), a = (c) => Array.isArray(c) ? c[0] : c;
|
|
2551
|
+
return (c, u) => {
|
|
2552
|
+
const _ = ne("clickable");
|
|
2553
|
+
return t(), V(ja, {
|
|
2554
|
+
list: c.componentName === "list"
|
|
2531
2555
|
}, {
|
|
2532
|
-
default:
|
|
2533
|
-
(t(!0), l(P, null, H(e(n).items, (
|
|
2534
|
-
key:
|
|
2535
|
-
inactive: !!(e(o).active && !
|
|
2536
|
-
horizontal:
|
|
2537
|
-
},
|
|
2538
|
-
footer:
|
|
2539
|
-
e(o).title ? (t(), l("div", Ra, C(
|
|
2540
|
-
e(o).information ? (t(), l("div", qa, C(
|
|
2556
|
+
default: y(() => [
|
|
2557
|
+
(t(!0), l(P, null, H(e(n).items, (d) => (t(), V(sn, {
|
|
2558
|
+
key: d._id,
|
|
2559
|
+
inactive: !!(e(o).active && !d[e(o).active]),
|
|
2560
|
+
horizontal: c.componentName === "list"
|
|
2561
|
+
}, _e({
|
|
2562
|
+
footer: y(() => [
|
|
2563
|
+
e(o).title ? (t(), l("div", Ra, C(d[e(o).title]), 1)) : b("", !0),
|
|
2564
|
+
e(o).information ? (t(), l("div", qa, C(d[e(o).information]), 1)) : b("", !0)
|
|
2541
2565
|
]),
|
|
2542
|
-
actions:
|
|
2543
|
-
var
|
|
2566
|
+
actions: y(() => {
|
|
2567
|
+
var g;
|
|
2544
2568
|
return [
|
|
2545
|
-
(
|
|
2569
|
+
(g = c.individualActions) != null && g.length ? (t(), V(Ie, U({
|
|
2546
2570
|
key: 0,
|
|
2547
2571
|
ref_for: !0
|
|
2548
2572
|
}, {
|
|
2549
|
-
subject:
|
|
2550
|
-
actions:
|
|
2573
|
+
subject: d,
|
|
2574
|
+
actions: c.individualActions
|
|
2551
2575
|
}), {
|
|
2552
|
-
default:
|
|
2553
|
-
visible:
|
|
2576
|
+
default: y(({
|
|
2577
|
+
visible: i
|
|
2554
2578
|
}) => [
|
|
2555
2579
|
J(L(Y, {
|
|
2556
2580
|
reactive: "",
|
|
2557
|
-
active:
|
|
2581
|
+
active: i,
|
|
2558
2582
|
icon: "dots-three-vertical"
|
|
2559
2583
|
}, null, 8, ["active"]), [
|
|
2560
|
-
[
|
|
2584
|
+
[_]
|
|
2561
2585
|
])
|
|
2562
2586
|
]),
|
|
2563
2587
|
_: 2
|
|
2564
|
-
}, 1040)) :
|
|
2588
|
+
}, 1040)) : b("", !0)
|
|
2565
2589
|
];
|
|
2566
2590
|
}),
|
|
2567
|
-
default:
|
|
2568
|
-
var
|
|
2591
|
+
default: y(() => {
|
|
2592
|
+
var g;
|
|
2569
2593
|
return [
|
|
2570
2594
|
L(Ue, {
|
|
2571
2595
|
alt: "Item picture",
|
|
2572
2596
|
expandable: "",
|
|
2573
|
-
url: (
|
|
2574
|
-
meta: a(
|
|
2597
|
+
url: (g = a(d[e(o).picture])) == null ? void 0 : g.link,
|
|
2598
|
+
meta: a(d[e(o).picture])
|
|
2575
2599
|
}, null, 8, ["url", "meta"])
|
|
2576
2600
|
];
|
|
2577
2601
|
}),
|
|
2578
2602
|
_: 2
|
|
2579
2603
|
}, [
|
|
2580
|
-
e(o).badge && Array.isArray(
|
|
2604
|
+
e(o).badge && Array.isArray(d[e(o).badge]) ? {
|
|
2581
2605
|
name: "badge",
|
|
2582
|
-
fn:
|
|
2583
|
-
(t(!0), l(P, null, H(
|
|
2584
|
-
key: `${
|
|
2606
|
+
fn: y(() => [
|
|
2607
|
+
(t(!0), l(P, null, H(d[e(o).badge], (g) => (t(), V(Ve, {
|
|
2608
|
+
key: `${d._id}-${g}`,
|
|
2585
2609
|
large: ""
|
|
2586
2610
|
}, {
|
|
2587
|
-
default:
|
|
2588
|
-
|
|
2611
|
+
default: y(() => [
|
|
2612
|
+
Q(C(e(o).translateBadge ? e(q)(g) : g), 1)
|
|
2589
2613
|
]),
|
|
2590
2614
|
_: 2
|
|
2591
2615
|
}, 1024))), 128))
|
|
@@ -2593,10 +2617,10 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2593
2617
|
key: "0"
|
|
2594
2618
|
} : e(o).badge ? {
|
|
2595
2619
|
name: "badge",
|
|
2596
|
-
fn:
|
|
2620
|
+
fn: y(() => [
|
|
2597
2621
|
L(Ve, null, {
|
|
2598
|
-
default:
|
|
2599
|
-
|
|
2622
|
+
default: y(() => [
|
|
2623
|
+
Q(C(e(o).translateBadge ? e(q)(d[e(o).badge]) : d[e(o).badge]), 1)
|
|
2600
2624
|
]),
|
|
2601
2625
|
_: 2
|
|
2602
2626
|
}, 1024)
|
|
@@ -2609,11 +2633,12 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2609
2633
|
}, 8, ["list"]);
|
|
2610
2634
|
};
|
|
2611
2635
|
}
|
|
2612
|
-
})
|
|
2636
|
+
});
|
|
2637
|
+
const _t = /* @__PURE__ */ D(La, [["__scopeId", "data-v-cfdb8783"]]), Ma = (p) => ({
|
|
2613
2638
|
tabular: wa,
|
|
2614
|
-
grid:
|
|
2615
|
-
list:
|
|
2616
|
-
})[p],
|
|
2639
|
+
grid: _t,
|
|
2640
|
+
list: _t
|
|
2641
|
+
})[p], za = {
|
|
2617
2642
|
key: 2,
|
|
2618
2643
|
class: "crud__controls"
|
|
2619
2644
|
}, Fa = {
|
|
@@ -2622,7 +2647,7 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2622
2647
|
}, Ua = { class: "crud__actions" }, Ea = { class: "crud__context-badge" }, Ha = { key: 0 }, Da = {
|
|
2623
2648
|
key: 3,
|
|
2624
2649
|
class: "crud__pagination"
|
|
2625
|
-
},
|
|
2650
|
+
}, mt = 30, Qa = /* @__PURE__ */ z({
|
|
2626
2651
|
__name: "aeria-crud",
|
|
2627
2652
|
props: {
|
|
2628
2653
|
collection: {},
|
|
@@ -2638,156 +2663,156 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2638
2663
|
},
|
|
2639
2664
|
emits: ["uiEvent"],
|
|
2640
2665
|
setup(p, { emit: r }) {
|
|
2641
|
-
const o = ee(!1), n = ee(!1), a = ee((...O) => null),
|
|
2666
|
+
const o = ee(!1), n = ee(!1), a = ee((...O) => null), c = ee(), u = p, _ = r, d = Be(), g = yt({
|
|
2642
2667
|
delay: 600
|
|
2643
|
-
}),
|
|
2668
|
+
}), i = re("meta"), v = Le(), { reachedEnd: $, detach: f } = Ye(null, {
|
|
2644
2669
|
antecipate: 600
|
|
2645
|
-
}), B = !
|
|
2646
|
-
B && ue(
|
|
2647
|
-
O &&
|
|
2670
|
+
}), B = !v.value.md || u.scrollPagination;
|
|
2671
|
+
B && ue($, (O) => {
|
|
2672
|
+
O && s.pagination.recordsTotal > s.items.length && Z.value < mt && (Z.value += 1, G());
|
|
2648
2673
|
});
|
|
2649
|
-
const
|
|
2650
|
-
Jo(
|
|
2674
|
+
const s = qt(u.collection);
|
|
2675
|
+
Jo(s, {
|
|
2651
2676
|
persistInQuery: !u.noQueryPersistence
|
|
2652
2677
|
});
|
|
2653
|
-
const
|
|
2654
|
-
a.value = E[0],
|
|
2655
|
-
const Z = ee(0),
|
|
2656
|
-
|
|
2678
|
+
const M = Ke(), E = u.action ? e(u.action) : Lt(s, d, M);
|
|
2679
|
+
a.value = E[0], c.value = E[1];
|
|
2680
|
+
const Z = ee(0), h = ee(!1), G = async (O) => {
|
|
2681
|
+
s.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || s.$filters), Object.assign(s.activeFilters, s.filtersPreset);
|
|
2657
2682
|
const k = {
|
|
2658
|
-
filters:
|
|
2659
|
-
limit:
|
|
2660
|
-
offset:
|
|
2661
|
-
project:
|
|
2683
|
+
filters: s.activeFilters,
|
|
2684
|
+
limit: s.pagination.limit,
|
|
2685
|
+
offset: s.pagination.offset,
|
|
2686
|
+
project: s.preferredTableProperties.length > 0 ? s.preferredTableProperties : s.description.table || Object.keys(s.properties)
|
|
2662
2687
|
};
|
|
2663
|
-
Z.value > 0 && (k.limit = 15, k.offset = Z.value * k.limit),
|
|
2664
|
-
const { error: N, result: le } = await
|
|
2688
|
+
Z.value > 0 && (k.limit = 15, k.offset = Z.value * k.limit), s.description.tableMeta && (k.project = k.project.concat(s.description.tableMeta)), O && Object.assign(k, O), s.loading.getAll = !0;
|
|
2689
|
+
const { error: N, result: le } = await s.$actions.retrieveItems(k);
|
|
2665
2690
|
if (N)
|
|
2666
2691
|
return;
|
|
2667
|
-
const { data:
|
|
2668
|
-
|
|
2692
|
+
const { data: m, pagination: T } = le;
|
|
2693
|
+
s.pagination.recordsCount = T.recordsCount, s.pagination.recordsTotal = T.recordsTotal, Z.value === 0 && s.items.splice(0), s.items.push(...m), s.loading.getAll = !1, h.value = !0;
|
|
2669
2694
|
}, oe = async (O) => {
|
|
2670
|
-
|
|
2695
|
+
d.push(qe(d.currentRoute.value, {
|
|
2671
2696
|
query: {
|
|
2672
2697
|
offset: O.offset,
|
|
2673
2698
|
limit: O.limit
|
|
2674
2699
|
}
|
|
2675
|
-
})),
|
|
2676
|
-
}, w =
|
|
2700
|
+
})), s.pagination.offset = O.offset, s.pagination.limit = O.limit, G();
|
|
2701
|
+
}, w = fe("noResultsComponent", null);
|
|
2677
2702
|
ue(() => [
|
|
2678
|
-
|
|
2679
|
-
|
|
2703
|
+
d.currentRoute.value.path,
|
|
2704
|
+
d.currentRoute.value.query.section
|
|
2680
2705
|
], async (O, k) => {
|
|
2681
2706
|
if (k && k[0] === O[0] && k[1] === O[1])
|
|
2682
2707
|
return;
|
|
2683
|
-
const N =
|
|
2684
|
-
if (
|
|
2685
|
-
const le =
|
|
2686
|
-
Object.keys(le).length > 0 && Object.assign(
|
|
2708
|
+
const N = d.currentRoute.value;
|
|
2709
|
+
if (i.view.title = u.collection, !u.noFetch && (!N.query._popstate || s.itemsCount === 0)) {
|
|
2710
|
+
const le = Mt(s, N.query);
|
|
2711
|
+
Object.keys(le).length > 0 && Object.assign(s.filters, le), await G();
|
|
2687
2712
|
}
|
|
2688
2713
|
}, {
|
|
2689
2714
|
immediate: !0,
|
|
2690
2715
|
flush: "post"
|
|
2691
2716
|
});
|
|
2692
|
-
const [te] =
|
|
2717
|
+
const [te] = g((O) => (d.push(qe(d.currentRoute.value, {
|
|
2693
2718
|
query: {
|
|
2694
2719
|
search: O || void 0
|
|
2695
2720
|
}
|
|
2696
|
-
})), O ? (
|
|
2721
|
+
})), O ? (s.filters = Object.assign(Ae(s.freshFilters), {
|
|
2697
2722
|
$text: {
|
|
2698
2723
|
$search: `"${O}"`,
|
|
2699
2724
|
$caseSensitive: !1
|
|
2700
2725
|
}
|
|
2701
2726
|
}), G({
|
|
2702
2727
|
offset: 0
|
|
2703
|
-
})) : (
|
|
2704
|
-
ue(() =>
|
|
2728
|
+
})) : (s.filters = Ae(s.freshFilters), Z.value = 0, G())));
|
|
2729
|
+
ue(() => s.textQuery, (O) => {
|
|
2705
2730
|
te(O);
|
|
2706
2731
|
});
|
|
2707
2732
|
const ke = (O) => {
|
|
2708
2733
|
O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
|
|
2709
2734
|
};
|
|
2710
2735
|
Vt(() => {
|
|
2711
|
-
|
|
2712
|
-
}), ue(() =>
|
|
2736
|
+
s.$actions.clearFilters(), s.textQuery = "", f();
|
|
2737
|
+
}), ue(() => c.value, async (O) => {
|
|
2713
2738
|
var le;
|
|
2714
2739
|
const k = Ae(O);
|
|
2715
2740
|
let N;
|
|
2716
2741
|
if (k)
|
|
2717
|
-
if ((k.name === "spawnEdit" || k.name === "duplicate") && (N =
|
|
2742
|
+
if ((k.name === "spawnEdit" || k.name === "duplicate") && (N = s.$actions.get({
|
|
2718
2743
|
filters: {
|
|
2719
2744
|
_id: k.params._id
|
|
2720
2745
|
}
|
|
2721
2746
|
})), k.name === "spawnAdd")
|
|
2722
|
-
|
|
2723
|
-
delete
|
|
2747
|
+
s.$actions.clearItem(), (le = k.params) != null && le.item && (s.$actions.setItem(k.params.item), Object.keys(k.params.item).forEach((m) => {
|
|
2748
|
+
delete s.referenceItem[m];
|
|
2724
2749
|
})), o.value = "add";
|
|
2725
2750
|
else if (k.name === "spawnEdit")
|
|
2726
|
-
|
|
2751
|
+
s.$actions.setItem(k.params), o.value = "edit";
|
|
2727
2752
|
else if (k.name === "duplicate") {
|
|
2728
2753
|
await N;
|
|
2729
|
-
const
|
|
2730
|
-
if (!(F in
|
|
2754
|
+
const m = Object.entries(s.item).reduce((T, [F, X]) => {
|
|
2755
|
+
if (!(F in s.properties))
|
|
2731
2756
|
return {
|
|
2732
|
-
...
|
|
2757
|
+
...T,
|
|
2733
2758
|
[F]: X
|
|
2734
2759
|
};
|
|
2735
|
-
const S =
|
|
2760
|
+
const S = s.properties[F];
|
|
2736
2761
|
if (S.readOnly)
|
|
2737
|
-
return
|
|
2738
|
-
const R = (
|
|
2739
|
-
const
|
|
2740
|
-
if (!
|
|
2741
|
-
return
|
|
2742
|
-
if (
|
|
2762
|
+
return T;
|
|
2763
|
+
const R = (ie) => {
|
|
2764
|
+
const j = me(S);
|
|
2765
|
+
if (!j)
|
|
2766
|
+
return ie;
|
|
2767
|
+
if (j.$ref === "file")
|
|
2743
2768
|
return {};
|
|
2744
|
-
if (
|
|
2745
|
-
const { _id:
|
|
2746
|
-
return
|
|
2769
|
+
if (j.inline && ie) {
|
|
2770
|
+
const { _id: se, ...ve } = ie;
|
|
2771
|
+
return ve;
|
|
2747
2772
|
}
|
|
2748
|
-
return
|
|
2773
|
+
return ie;
|
|
2749
2774
|
};
|
|
2750
2775
|
return X = Array.isArray(X) ? X.map(R) : R(X), {
|
|
2751
|
-
...
|
|
2776
|
+
...T,
|
|
2752
2777
|
[F]: X
|
|
2753
2778
|
};
|
|
2754
2779
|
}, {});
|
|
2755
|
-
|
|
2780
|
+
s.$actions.setItem(m), delete s.item._id, s.referenceItem = {}, o.value = "duplicate";
|
|
2756
2781
|
} else
|
|
2757
|
-
|
|
2782
|
+
_("uiEvent", k);
|
|
2758
2783
|
}, {
|
|
2759
2784
|
deep: !0
|
|
2760
2785
|
}), ue(() => o, ({ value: O }) => {
|
|
2761
|
-
O === !1 &&
|
|
2786
|
+
O === !1 && s.$actions.clearItem();
|
|
2762
2787
|
});
|
|
2763
2788
|
const ce = K(() => {
|
|
2764
2789
|
if (!u.noActions)
|
|
2765
|
-
return
|
|
2790
|
+
return s.individualActions.map((O) => ({
|
|
2766
2791
|
click: a.value(O),
|
|
2767
2792
|
...O
|
|
2768
2793
|
}));
|
|
2769
|
-
}), ae = K(() =>
|
|
2770
|
-
return
|
|
2771
|
-
var
|
|
2794
|
+
}), ae = K(() => s.actions.filter((O) => !O.button));
|
|
2795
|
+
return ge(ze, K(() => u.collection)), (O, k) => {
|
|
2796
|
+
var m, T, F, X, S, R, ie;
|
|
2772
2797
|
const N = ne("clickable"), le = ne("loading");
|
|
2773
2798
|
return t(), l(P, null, [
|
|
2774
2799
|
n.value ? (t(), V(Ko, {
|
|
2775
|
-
key: e(
|
|
2800
|
+
key: e(s).$id,
|
|
2776
2801
|
modelValue: n.value,
|
|
2777
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
2778
|
-
}, null, 8, ["modelValue"])) :
|
|
2802
|
+
"onUpdate:modelValue": k[0] || (k[0] = (j) => n.value = j)
|
|
2803
|
+
}, null, 8, ["modelValue"])) : b("", !0),
|
|
2779
2804
|
o.value ? (t(), V(Xo, U({
|
|
2780
2805
|
key: 1,
|
|
2781
2806
|
visible: o.value,
|
|
2782
|
-
"onUpdate:visible": k[1] || (k[1] = (
|
|
2807
|
+
"onUpdate:visible": k[1] || (k[1] = (j) => o.value = j),
|
|
2783
2808
|
"fixed-right": ""
|
|
2784
2809
|
}, {
|
|
2785
2810
|
collection: O.collection,
|
|
2786
2811
|
individualActions: ce.value
|
|
2787
2812
|
}, {
|
|
2788
|
-
onCancel: k[2] || (k[2] = (
|
|
2789
|
-
}),
|
|
2790
|
-
header:
|
|
2813
|
+
onCancel: k[2] || (k[2] = (j) => o.value = !1)
|
|
2814
|
+
}), _e({
|
|
2815
|
+
header: y(() => [
|
|
2791
2816
|
I("span", null, C((() => {
|
|
2792
2817
|
switch (o.value) {
|
|
2793
2818
|
case "add":
|
|
@@ -2803,80 +2828,80 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2803
2828
|
]),
|
|
2804
2829
|
_: 2
|
|
2805
2830
|
}, [
|
|
2806
|
-
H(Object.keys(O.$slots).filter((
|
|
2807
|
-
name:
|
|
2808
|
-
fn:
|
|
2809
|
-
A(O.$slots,
|
|
2831
|
+
H(Object.keys(O.$slots).filter((j) => j.startsWith("field-")), (j) => ({
|
|
2832
|
+
name: j,
|
|
2833
|
+
fn: y((se) => [
|
|
2834
|
+
A(O.$slots, j, de(Ce(se)), void 0, !0)
|
|
2810
2835
|
])
|
|
2811
2836
|
}))
|
|
2812
|
-
]), 1040, ["visible"])) :
|
|
2813
|
-
!O.noActions && (e(
|
|
2814
|
-
e(
|
|
2837
|
+
]), 1040, ["visible"])) : b("", !0),
|
|
2838
|
+
!O.noActions && (e(s).description.search || Object.keys(e(s).availableFilters).length > 0 || ((m = e(s)) == null ? void 0 : m.actions.length) > 0 || O.$slots.actions || !O.noLayoutToggle && e(s).description.layout && ((T = e(s).description.layout) == null ? void 0 : T.name) !== "tabular") ? (t(), l("div", za, [
|
|
2839
|
+
e(s).description.search ? (t(), l("div", Fa, [
|
|
2815
2840
|
L(Oe, U({
|
|
2816
|
-
modelValue: e(
|
|
2817
|
-
"onUpdate:modelValue": k[3] || (k[3] = (
|
|
2841
|
+
modelValue: e(s).textQuery,
|
|
2842
|
+
"onUpdate:modelValue": k[3] || (k[3] = (j) => e(s).textQuery = j)
|
|
2818
2843
|
}, {
|
|
2819
2844
|
property: {
|
|
2820
2845
|
type: "string",
|
|
2821
|
-
placeholder: e(
|
|
2846
|
+
placeholder: e(s).description.search.placeholder || "Pesquise aqui",
|
|
2822
2847
|
inputType: "search"
|
|
2823
2848
|
}
|
|
2824
2849
|
}), null, 16, ["modelValue"])
|
|
2825
|
-
])) :
|
|
2850
|
+
])) : b("", !0),
|
|
2826
2851
|
I("div", Ua, [
|
|
2827
|
-
ae.value.length > 0 || !O.noLayoutToggle && e(
|
|
2828
|
-
default:
|
|
2829
|
-
L(
|
|
2852
|
+
ae.value.length > 0 || !O.noLayoutToggle && e(s).description.layout && ((F = e(s).description.layout) == null ? void 0 : F.name) !== "tabular" ? (t(), V(Ie, { key: 0 }, _e({
|
|
2853
|
+
default: y(() => [
|
|
2854
|
+
L(pe, {
|
|
2830
2855
|
variant: "alt",
|
|
2831
2856
|
icon: "sliders"
|
|
2832
2857
|
}, {
|
|
2833
|
-
default:
|
|
2834
|
-
e(
|
|
2835
|
-
default:
|
|
2836
|
-
|
|
2858
|
+
default: y(() => [
|
|
2859
|
+
e(s).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2860
|
+
default: y(() => [
|
|
2861
|
+
Q(C(e(s).filtersCount), 1)
|
|
2837
2862
|
]),
|
|
2838
2863
|
_: 1
|
|
2839
|
-
})) :
|
|
2864
|
+
})) : b("", !0)
|
|
2840
2865
|
]),
|
|
2841
2866
|
_: 1
|
|
2842
2867
|
})
|
|
2843
2868
|
]),
|
|
2844
2869
|
_: 2
|
|
2845
2870
|
}, [
|
|
2846
|
-
Object.keys(e(
|
|
2871
|
+
Object.keys(e(s).availableFilters).length > 0 ? {
|
|
2847
2872
|
name: "filter",
|
|
2848
|
-
fn:
|
|
2873
|
+
fn: y(() => [
|
|
2849
2874
|
J((t(), V(Y, {
|
|
2850
2875
|
icon: "funnel",
|
|
2851
|
-
onClick: k[4] || (k[4] = (
|
|
2876
|
+
onClick: k[4] || (k[4] = (j) => n.value = !0)
|
|
2852
2877
|
}, {
|
|
2853
|
-
default:
|
|
2854
|
-
|
|
2878
|
+
default: y(() => [
|
|
2879
|
+
Q(C(e(q)("filters", { capitalize: !0 })), 1)
|
|
2855
2880
|
]),
|
|
2856
2881
|
_: 1
|
|
2857
2882
|
})), [
|
|
2858
2883
|
[N]
|
|
2859
2884
|
]),
|
|
2860
2885
|
I("div", Ea, [
|
|
2861
|
-
e(
|
|
2862
|
-
default:
|
|
2863
|
-
|
|
2886
|
+
e(s).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2887
|
+
default: y(() => [
|
|
2888
|
+
Q(C(e(s).filtersCount), 1)
|
|
2864
2889
|
]),
|
|
2865
2890
|
_: 1
|
|
2866
|
-
})) :
|
|
2891
|
+
})) : b("", !0)
|
|
2867
2892
|
])
|
|
2868
2893
|
]),
|
|
2869
2894
|
key: "0"
|
|
2870
2895
|
} : void 0,
|
|
2871
|
-
!O.noLayoutToggle && e(
|
|
2896
|
+
!O.noLayoutToggle && e(s).description.layout && ((X = e(s).description.layout) == null ? void 0 : X.name) !== "tabular" ? {
|
|
2872
2897
|
name: "layout-toggle",
|
|
2873
|
-
fn:
|
|
2898
|
+
fn: y(() => [
|
|
2874
2899
|
J((t(), V(Y, {
|
|
2875
2900
|
icon: "table",
|
|
2876
|
-
onClick: k[5] || (k[5] = (
|
|
2901
|
+
onClick: k[5] || (k[5] = (j) => ke(e(s)))
|
|
2877
2902
|
}, {
|
|
2878
|
-
default:
|
|
2879
|
-
|
|
2903
|
+
default: y(() => [
|
|
2904
|
+
Q(C(e(q)("change_layout", { capitalize: !0 })), 1)
|
|
2880
2905
|
]),
|
|
2881
2906
|
_: 1
|
|
2882
2907
|
})), [
|
|
@@ -2885,113 +2910,114 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
2885
2910
|
]),
|
|
2886
2911
|
key: "1"
|
|
2887
2912
|
} : void 0,
|
|
2888
|
-
H(ae.value, (
|
|
2889
|
-
name: `action-${
|
|
2890
|
-
fn:
|
|
2891
|
-
|
|
2913
|
+
H(ae.value, (j, se) => ({
|
|
2914
|
+
name: `action-${se}`,
|
|
2915
|
+
fn: y(() => [
|
|
2916
|
+
j ? (t(), V(Y, {
|
|
2892
2917
|
key: 0,
|
|
2893
|
-
icon:
|
|
2894
|
-
disabled: e(
|
|
2895
|
-
onClick: (
|
|
2918
|
+
icon: j.icon || "gear",
|
|
2919
|
+
disabled: e(s).selected.length === 0 && "selection" in j && j.selection,
|
|
2920
|
+
onClick: (ve) => a.value(j)({ _id: e(s).selected.map((be) => typeof be == "string" || be._id) })
|
|
2896
2921
|
}, {
|
|
2897
|
-
default:
|
|
2898
|
-
|
|
2922
|
+
default: y(() => [
|
|
2923
|
+
Q(C(e(q)(j.label, { capitalize: !0 })), 1)
|
|
2899
2924
|
]),
|
|
2900
2925
|
_: 2
|
|
2901
|
-
}, 1032, ["icon", "disabled", "onClick"])) :
|
|
2926
|
+
}, 1032, ["icon", "disabled", "onClick"])) : b("", !0)
|
|
2902
2927
|
])
|
|
2903
2928
|
}))
|
|
2904
|
-
]), 1024)) : Object.keys(e(
|
|
2929
|
+
]), 1024)) : Object.keys(e(s).availableFilters).length > 0 ? (t(), V(pe, {
|
|
2905
2930
|
key: 1,
|
|
2906
2931
|
variant: "alt",
|
|
2907
2932
|
icon: "funnel",
|
|
2908
|
-
onClick: k[6] || (k[6] = (
|
|
2933
|
+
onClick: k[6] || (k[6] = (j) => n.value = !0)
|
|
2909
2934
|
}, {
|
|
2910
|
-
default:
|
|
2935
|
+
default: y(() => [
|
|
2911
2936
|
k[8] || (k[8] = I("div", null, "Filtros", -1)),
|
|
2912
|
-
e(
|
|
2913
|
-
default:
|
|
2914
|
-
|
|
2937
|
+
e(s).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2938
|
+
default: y(() => [
|
|
2939
|
+
Q(C(e(s).filtersCount), 1)
|
|
2915
2940
|
]),
|
|
2916
2941
|
_: 1
|
|
2917
|
-
})) :
|
|
2942
|
+
})) : b("", !0)
|
|
2918
2943
|
]),
|
|
2919
2944
|
_: 1
|
|
2920
|
-
})) :
|
|
2921
|
-
(t(!0), l(P, null, H(e(
|
|
2922
|
-
key: `action-${
|
|
2923
|
-
icon:
|
|
2924
|
-
disabled: e(
|
|
2925
|
-
onClick: (
|
|
2945
|
+
})) : b("", !0),
|
|
2946
|
+
(t(!0), l(P, null, H(e(s).actions.filter((j) => j.button), (j, se) => (t(), V(pe, {
|
|
2947
|
+
key: `action-${se}`,
|
|
2948
|
+
icon: j.icon,
|
|
2949
|
+
disabled: e(s).selected.length === 0 && "selection" in j && j.selection,
|
|
2950
|
+
onClick: (ve) => a.value(j)({ _id: e(s).selected.map((be) => typeof be == "string" || be._id) })
|
|
2926
2951
|
}, {
|
|
2927
|
-
default:
|
|
2928
|
-
|
|
2952
|
+
default: y(() => [
|
|
2953
|
+
Q(C(e(q)(j.label, { capitalize: !0 })), 1)
|
|
2929
2954
|
]),
|
|
2930
2955
|
_: 2
|
|
2931
2956
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2932
|
-
O.$slots.actions ? A(O.$slots, "actions", { key: 2 }, void 0, !0) :
|
|
2957
|
+
O.$slots.actions ? A(O.$slots, "actions", { key: 2 }, void 0, !0) : b("", !0)
|
|
2933
2958
|
])
|
|
2934
|
-
])) :
|
|
2959
|
+
])) : b("", !0),
|
|
2935
2960
|
J((t(), l("div", null, [
|
|
2936
|
-
e(
|
|
2937
|
-
e(w) ? (t(), V(
|
|
2938
|
-
collection: e(
|
|
2961
|
+
e(s).itemsCount === 0 && !e(s).loading.getAll && h.value && (e(w) || O.$slots.empty) ? (t(), l("div", Ha, [
|
|
2962
|
+
e(w) ? (t(), V(he(e(w)), de(U({ key: 0 }, {
|
|
2963
|
+
collection: e(s).$id
|
|
2939
2964
|
})), {
|
|
2940
|
-
default:
|
|
2941
|
-
e(
|
|
2965
|
+
default: y(() => [
|
|
2966
|
+
e(s).filtersCount === 0 && e(s).description.actions && "spawnAdd" in e(s).description.actions ? (t(), V(pe, {
|
|
2942
2967
|
key: 0,
|
|
2943
2968
|
icon: "plus",
|
|
2944
|
-
onClick: k[7] || (k[7] = (
|
|
2969
|
+
onClick: k[7] || (k[7] = (j) => a.value({
|
|
2945
2970
|
action: "spawnAdd",
|
|
2946
2971
|
event: "spawnAdd"
|
|
2947
2972
|
})())
|
|
2948
2973
|
}, {
|
|
2949
|
-
default:
|
|
2950
|
-
|
|
2974
|
+
default: y(() => [
|
|
2975
|
+
Q(C(e(q)("add_first_item", { capitalize: !0 })), 1)
|
|
2951
2976
|
]),
|
|
2952
2977
|
_: 1
|
|
2953
|
-
})) :
|
|
2978
|
+
})) : b("", !0)
|
|
2954
2979
|
]),
|
|
2955
2980
|
_: 1
|
|
2956
|
-
}, 16)) : A(O.$slots, "empty",
|
|
2957
|
-
collection: e(
|
|
2981
|
+
}, 16)) : A(O.$slots, "empty", de(U({ key: 1 }, {
|
|
2982
|
+
collection: e(s).$id
|
|
2958
2983
|
})), void 0, !0)
|
|
2959
|
-
])) : O.$slots.component ? A(O.$slots, "component",
|
|
2960
|
-
store: e(
|
|
2961
|
-
})), void 0, !0) : (t(), V(
|
|
2984
|
+
])) : O.$slots.component ? A(O.$slots, "component", de(U({ key: 1 }, {
|
|
2985
|
+
store: e(s)
|
|
2986
|
+
})), void 0, !0) : (t(), V(he(e(Ma)(((S = O.layout) == null ? void 0 : S.name) || e(s).$currentLayout)), U({ key: 2 }, {
|
|
2962
2987
|
individualActions: ce.value,
|
|
2963
|
-
layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(
|
|
2988
|
+
layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(s).layout.options,
|
|
2964
2989
|
componentProps: O.componentProps
|
|
2965
2990
|
}, {
|
|
2966
|
-
"component-name": ((
|
|
2967
|
-
}),
|
|
2968
|
-
H(Object.keys(O.$slots).filter((
|
|
2969
|
-
name:
|
|
2970
|
-
fn:
|
|
2971
|
-
A(O.$slots,
|
|
2991
|
+
"component-name": ((ie = O.layout) == null ? void 0 : ie.name) || e(s).$currentLayout
|
|
2992
|
+
}), _e({ _: 2 }, [
|
|
2993
|
+
H(Object.keys(O.$slots).filter((j) => j.startsWith("row-")), (j) => ({
|
|
2994
|
+
name: j,
|
|
2995
|
+
fn: y((se) => [
|
|
2996
|
+
A(O.$slots, j, de(Ce(se)), void 0, !0)
|
|
2972
2997
|
])
|
|
2973
2998
|
})),
|
|
2974
2999
|
O.$slots.tfoot ? {
|
|
2975
3000
|
name: "tfoot",
|
|
2976
|
-
fn:
|
|
3001
|
+
fn: y(() => [
|
|
2977
3002
|
A(O.$slots, "tfoot", {}, void 0, !0)
|
|
2978
3003
|
]),
|
|
2979
3004
|
key: "0"
|
|
2980
3005
|
} : void 0
|
|
2981
3006
|
]), 1040, ["component-name"]))
|
|
2982
3007
|
])), [
|
|
2983
|
-
[le, (!e(B) || Z.value ===
|
|
3008
|
+
[le, (!e(B) || Z.value === mt) && e(s).loading.getAll]
|
|
2984
3009
|
]),
|
|
2985
|
-
!e(B) && !O.noControls && !e(
|
|
3010
|
+
!e(B) && !O.noControls && !e(s).loading.getAll && e(s).itemsCount > 0 ? (t(), l("div", Da, [
|
|
2986
3011
|
L(qn, {
|
|
2987
|
-
pagination: e(
|
|
3012
|
+
pagination: e(s).pagination,
|
|
2988
3013
|
onPaginate: oe
|
|
2989
3014
|
}, null, 8, ["pagination"])
|
|
2990
|
-
])) :
|
|
3015
|
+
])) : b("", !0)
|
|
2991
3016
|
], 64);
|
|
2992
3017
|
};
|
|
2993
3018
|
}
|
|
2994
|
-
})
|
|
3019
|
+
});
|
|
3020
|
+
const Al = /* @__PURE__ */ D(Qa, [["__scopeId", "data-v-d64cb42a"]]), Ga = { class: "prompt" }, Wa = /* @__PURE__ */ z({
|
|
2995
3021
|
__name: "aeria-prompt",
|
|
2996
3022
|
props: {
|
|
2997
3023
|
title: {},
|
|
@@ -3005,45 +3031,39 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
3005
3031
|
float: "",
|
|
3006
3032
|
"fill-footer": "",
|
|
3007
3033
|
"close-hint": !1,
|
|
3034
|
+
title: n.title,
|
|
3008
3035
|
style: { "--panel-min-width": "32rem" }
|
|
3009
|
-
},
|
|
3010
|
-
footer:
|
|
3036
|
+
}, {
|
|
3037
|
+
footer: y(() => [
|
|
3011
3038
|
I("div", {
|
|
3012
3039
|
class: "prompt__options",
|
|
3013
|
-
style:
|
|
3040
|
+
style: $e(`grid-template-columns: repeat(${Object.keys(n.options).length}, 1fr)`)
|
|
3014
3041
|
}, [
|
|
3015
|
-
(t(!0), l(P, null, H(Object.entries(n.options), ([
|
|
3016
|
-
key: `option-${
|
|
3042
|
+
(t(!0), l(P, null, H(Object.entries(n.options), ([c, u], _) => (t(), V(ye, {
|
|
3043
|
+
key: `option-${_}`,
|
|
3017
3044
|
class: W([
|
|
3018
3045
|
"prompt__option",
|
|
3019
3046
|
`prompt__option--${u.variant || "primary"}`
|
|
3020
3047
|
]),
|
|
3021
|
-
onClick: (
|
|
3048
|
+
onClick: (d) => u.click ? u.click(c, u) : o(c, u)
|
|
3022
3049
|
}, {
|
|
3023
|
-
default:
|
|
3024
|
-
|
|
3050
|
+
default: y(() => [
|
|
3051
|
+
Q(C(u.title), 1)
|
|
3025
3052
|
]),
|
|
3026
3053
|
_: 2
|
|
3027
3054
|
}, 1032, ["class", "onClick"]))), 128))
|
|
3028
3055
|
], 4)
|
|
3029
3056
|
]),
|
|
3030
|
-
default:
|
|
3057
|
+
default: y(() => [
|
|
3031
3058
|
I("div", Ga, [
|
|
3032
3059
|
A(n.$slots, "default", {}, void 0, !0)
|
|
3033
3060
|
])
|
|
3034
3061
|
]),
|
|
3035
|
-
_:
|
|
3036
|
-
}, [
|
|
3037
|
-
n.title ? {
|
|
3038
|
-
name: "title",
|
|
3039
|
-
fn: _(() => [
|
|
3040
|
-
D(C(n.title), 1)
|
|
3041
|
-
]),
|
|
3042
|
-
key: "0"
|
|
3043
|
-
} : void 0
|
|
3044
|
-
]), 1024));
|
|
3062
|
+
_: 3
|
|
3063
|
+
}, 8, ["title"]));
|
|
3045
3064
|
}
|
|
3046
|
-
})
|
|
3065
|
+
});
|
|
3066
|
+
const Ya = /* @__PURE__ */ D(Wa, [["__scopeId", "data-v-4cbfd28f"]]), Ka = { class: "toast__content" }, Xa = { class: "toast__time" }, Ja = /* @__PURE__ */ z({
|
|
3047
3067
|
__name: "aeria-toast",
|
|
3048
3068
|
props: {
|
|
3049
3069
|
idx: {},
|
|
@@ -3060,8 +3080,8 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
3060
3080
|
toast: !0,
|
|
3061
3081
|
"toast--animate": e(r).toasts[0].itr === o.itr
|
|
3062
3082
|
}),
|
|
3063
|
-
onAnimationend: n[0] || (n[0] = (
|
|
3064
|
-
onClick: n[1] || (n[1] = (
|
|
3083
|
+
onAnimationend: n[0] || (n[0] = (c) => e(r).$actions.popToast()),
|
|
3084
|
+
onClick: n[1] || (n[1] = (c) => e(r).$actions.popToast(o.itr))
|
|
3065
3085
|
}, [
|
|
3066
3086
|
L(Y, U(
|
|
3067
3087
|
o.icon ? { icon: o.icon } : { icon: "warning-circle" },
|
|
@@ -3076,12 +3096,13 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
3076
3096
|
]);
|
|
3077
3097
|
};
|
|
3078
3098
|
}
|
|
3079
|
-
})
|
|
3099
|
+
});
|
|
3100
|
+
const Za = /* @__PURE__ */ D(Ja, [["__scopeId", "data-v-606d47bf"]]), Pa = ["innerHTML"], Na = { class: "main__toasts" }, xa = ["innerHTML"], el = /* @__PURE__ */ z({
|
|
3080
3101
|
__name: "aeria-main",
|
|
3081
3102
|
setup(p) {
|
|
3082
3103
|
const r = re("meta"), o = K(() => r.themeOverride || r.theme);
|
|
3083
3104
|
return (n, a) => {
|
|
3084
|
-
const
|
|
3105
|
+
const c = Ct("router-view");
|
|
3085
3106
|
return t(), l("main", {
|
|
3086
3107
|
id: "main",
|
|
3087
3108
|
class: W([
|
|
@@ -3091,14 +3112,14 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
3091
3112
|
])
|
|
3092
3113
|
}, [
|
|
3093
3114
|
(t(), V(Ot, null, {
|
|
3094
|
-
default:
|
|
3095
|
-
L(
|
|
3096
|
-
default:
|
|
3097
|
-
(t(), V(
|
|
3098
|
-
H(Object.keys(n.$slots), (
|
|
3099
|
-
name:
|
|
3100
|
-
fn:
|
|
3101
|
-
A(n.$slots,
|
|
3115
|
+
default: y(() => [
|
|
3116
|
+
L(c, null, {
|
|
3117
|
+
default: y(({ Component: u }) => [
|
|
3118
|
+
(t(), V(he(u), null, _e({ _: 2 }, [
|
|
3119
|
+
H(Object.keys(n.$slots), (_) => ({
|
|
3120
|
+
name: _,
|
|
3121
|
+
fn: y(() => [
|
|
3122
|
+
A(n.$slots, _, {}, void 0, !0)
|
|
3102
3123
|
])
|
|
3103
3124
|
}))
|
|
3104
3125
|
]), 1024))
|
|
@@ -3118,27 +3139,27 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
3118
3139
|
"overlay-layer": 70,
|
|
3119
3140
|
onOverlayClick: a[1] || (a[1] = (u) => e(r).modal.visible = !1)
|
|
3120
3141
|
}), {
|
|
3121
|
-
default:
|
|
3142
|
+
default: y(() => [
|
|
3122
3143
|
e(r).modal.body ? (t(), l("div", {
|
|
3123
3144
|
key: 0,
|
|
3124
3145
|
style: { "white-space": "pre-wrap" },
|
|
3125
3146
|
innerHTML: e(r).modal.body
|
|
3126
|
-
}, null, 8, Pa)) :
|
|
3127
|
-
e(r).modal.component ? (t(), V(
|
|
3147
|
+
}, null, 8, Pa)) : b("", !0),
|
|
3148
|
+
e(r).modal.component ? (t(), V(he(e(r).modal.component), { key: 1 })) : b("", !0)
|
|
3128
3149
|
]),
|
|
3129
3150
|
_: 1
|
|
3130
3151
|
}, 16, ["modelValue"]),
|
|
3131
|
-
e(r).prompt.visible ? (t(), V(Ya,
|
|
3132
|
-
default:
|
|
3133
|
-
|
|
3152
|
+
e(r).prompt.visible ? (t(), V(Ya, de(U({ key: 0 }, e(r).prompt)), {
|
|
3153
|
+
default: y(() => [
|
|
3154
|
+
Q(C(e(r).prompt.body), 1)
|
|
3134
3155
|
]),
|
|
3135
3156
|
_: 1
|
|
3136
|
-
}, 16)) :
|
|
3157
|
+
}, 16)) : b("", !0),
|
|
3137
3158
|
I("div", Na, [
|
|
3138
3159
|
(t(!0), l(P, null, H(e(r).toasts, (u) => (t(), V(Za, U({ ref_for: !0 }, u, {
|
|
3139
3160
|
key: `toast-${u.itr}`
|
|
3140
3161
|
}), {
|
|
3141
|
-
default:
|
|
3162
|
+
default: y(() => [
|
|
3142
3163
|
I("div", {
|
|
3143
3164
|
innerHTML: e(q)(u.text)
|
|
3144
3165
|
}, null, 8, xa)
|
|
@@ -3149,7 +3170,9 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
3149
3170
|
], 2);
|
|
3150
3171
|
};
|
|
3151
3172
|
}
|
|
3152
|
-
})
|
|
3173
|
+
});
|
|
3174
|
+
const Il = /* @__PURE__ */ D(el, [["__scopeId", "data-v-8f232683"]]);
|
|
3175
|
+
const tl = {}, nl = { class: "menu" };
|
|
3153
3176
|
function ol(p, r) {
|
|
3154
3177
|
return t(), l("menu", nl, [
|
|
3155
3178
|
(t(!0), l(P, null, H(Object.keys(p.$slots), (o) => (t(), l("div", {
|
|
@@ -3160,16 +3183,16 @@ function ol(p, r) {
|
|
|
3160
3183
|
]))), 128))
|
|
3161
3184
|
]);
|
|
3162
3185
|
}
|
|
3163
|
-
const Bl = /* @__PURE__ */
|
|
3186
|
+
const Bl = /* @__PURE__ */ D(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb"]]), al = { class: "tabs" }, ll = {
|
|
3164
3187
|
key: 0,
|
|
3165
3188
|
class: "tabs__horizontal"
|
|
3166
|
-
},
|
|
3189
|
+
}, sl = {
|
|
3167
3190
|
key: 0,
|
|
3168
3191
|
class: "tabs__tab tabs__tab--info"
|
|
3169
|
-
},
|
|
3192
|
+
}, il = ["onClick"], rl = {
|
|
3170
3193
|
key: 1,
|
|
3171
3194
|
class: "tabs__context-menu"
|
|
3172
|
-
}, ul = ["onClick"],
|
|
3195
|
+
}, ul = ["onClick"], cl = /* @__PURE__ */ z({
|
|
3173
3196
|
__name: "aeria-tabs",
|
|
3174
3197
|
props: {
|
|
3175
3198
|
query: {},
|
|
@@ -3177,72 +3200,72 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3177
3200
|
dropdown: { type: Boolean }
|
|
3178
3201
|
},
|
|
3179
3202
|
setup(p) {
|
|
3180
|
-
const r = p, o = At(), n = Be(), a = Le(),
|
|
3203
|
+
const r = p, o = At(), n = Be(), a = Le(), c = K(() => {
|
|
3181
3204
|
if (r.query) {
|
|
3182
|
-
const
|
|
3183
|
-
if (
|
|
3184
|
-
return
|
|
3205
|
+
const _ = n.currentRoute.value.query[r.query];
|
|
3206
|
+
if (_)
|
|
3207
|
+
return _;
|
|
3185
3208
|
} else if (r.param) {
|
|
3186
|
-
const
|
|
3187
|
-
if (
|
|
3188
|
-
return
|
|
3209
|
+
const _ = n.currentRoute.value.params[r.param];
|
|
3210
|
+
if (_)
|
|
3211
|
+
return _;
|
|
3189
3212
|
}
|
|
3190
3213
|
return Object.keys(o)[0];
|
|
3191
|
-
}), u = (
|
|
3214
|
+
}), u = (_) => {
|
|
3192
3215
|
r.query && n.push(qe(n.currentRoute.value, {
|
|
3193
3216
|
query: {
|
|
3194
|
-
[r.query]:
|
|
3217
|
+
[r.query]: _
|
|
3195
3218
|
}
|
|
3196
3219
|
})), r.param && n.push(qe(n.currentRoute.value, {
|
|
3197
3220
|
params: {
|
|
3198
|
-
[r.param]:
|
|
3221
|
+
[r.param]: _
|
|
3199
3222
|
}
|
|
3200
3223
|
}));
|
|
3201
3224
|
};
|
|
3202
|
-
return (
|
|
3203
|
-
const
|
|
3225
|
+
return (_, d) => {
|
|
3226
|
+
const g = ne("clickable");
|
|
3204
3227
|
return t(), l("div", al, [
|
|
3205
|
-
e(a).md && !
|
|
3206
|
-
|
|
3207
|
-
A(
|
|
3208
|
-
])) :
|
|
3209
|
-
(t(!0), l(P, null, H(Object.keys(
|
|
3210
|
-
key:
|
|
3228
|
+
e(a).md && !_.dropdown ? (t(), l("div", ll, [
|
|
3229
|
+
_.$slots.default ? (t(), l("div", sl, [
|
|
3230
|
+
A(_.$slots, "default", {}, void 0, !0)
|
|
3231
|
+
])) : b("", !0),
|
|
3232
|
+
(t(!0), l(P, null, H(Object.keys(_.$slots).filter((i) => i !== "default"), (i, v) => (t(), l("div", {
|
|
3233
|
+
key: i,
|
|
3211
3234
|
class: W({
|
|
3212
3235
|
tabs__tab: !0,
|
|
3213
|
-
"tabs__tab--current":
|
|
3236
|
+
"tabs__tab--current": i === c.value || !c.value && v === 0
|
|
3214
3237
|
}),
|
|
3215
|
-
onClick: (
|
|
3238
|
+
onClick: ($) => u(i)
|
|
3216
3239
|
}, [
|
|
3217
|
-
A(
|
|
3218
|
-
], 10,
|
|
3240
|
+
A(_.$slots, i, {}, void 0, !0)
|
|
3241
|
+
], 10, il))), 128))
|
|
3219
3242
|
])) : (t(), l("div", rl, [
|
|
3220
|
-
L(Ie, null,
|
|
3221
|
-
default:
|
|
3243
|
+
L(Ie, null, _e({
|
|
3244
|
+
default: y(({ visible: i }) => [
|
|
3222
3245
|
J((t(), V(Y, {
|
|
3223
3246
|
"icon-right": "",
|
|
3224
|
-
active:
|
|
3247
|
+
active: i,
|
|
3225
3248
|
icon: "caret-down",
|
|
3226
3249
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
3227
3250
|
class: "tabs__context-menu-icon"
|
|
3228
3251
|
}, {
|
|
3229
|
-
default:
|
|
3230
|
-
A(
|
|
3252
|
+
default: y(() => [
|
|
3253
|
+
A(_.$slots, c.value, {}, void 0, !0)
|
|
3231
3254
|
]),
|
|
3232
3255
|
_: 2
|
|
3233
3256
|
}, 1032, ["active"])), [
|
|
3234
|
-
[
|
|
3257
|
+
[g]
|
|
3235
3258
|
])
|
|
3236
3259
|
]),
|
|
3237
3260
|
_: 2
|
|
3238
3261
|
}, [
|
|
3239
|
-
H(Object.keys(
|
|
3240
|
-
name:
|
|
3241
|
-
fn:
|
|
3262
|
+
H(Object.keys(_.$slots).filter((i) => i !== "default"), (i) => ({
|
|
3263
|
+
name: i,
|
|
3264
|
+
fn: y(() => [
|
|
3242
3265
|
I("div", {
|
|
3243
|
-
onClick: (
|
|
3266
|
+
onClick: (v) => u(i)
|
|
3244
3267
|
}, [
|
|
3245
|
-
A(
|
|
3268
|
+
A(_.$slots, i, {}, void 0, !0)
|
|
3246
3269
|
], 8, ul)
|
|
3247
3270
|
])
|
|
3248
3271
|
}))
|
|
@@ -3251,7 +3274,8 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3251
3274
|
]);
|
|
3252
3275
|
};
|
|
3253
3276
|
}
|
|
3254
|
-
})
|
|
3277
|
+
});
|
|
3278
|
+
const dl = /* @__PURE__ */ D(cl, [["__scopeId", "data-v-a20914ab"]]), pl = z({
|
|
3255
3279
|
props: {
|
|
3256
3280
|
initialValue: String,
|
|
3257
3281
|
promise: Promise
|
|
@@ -3262,57 +3286,58 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3262
3286
|
r.value = o;
|
|
3263
3287
|
}), () => It("div", String(r.value));
|
|
3264
3288
|
}
|
|
3265
|
-
}),
|
|
3289
|
+
}), _l = ["onClick"], ml = { key: 1 }, fl = /* @__PURE__ */ z({
|
|
3266
3290
|
__name: "aeria-crud-topbar",
|
|
3267
3291
|
props: {
|
|
3268
3292
|
collection: {}
|
|
3269
3293
|
},
|
|
3270
3294
|
setup(p) {
|
|
3271
|
-
const r = p, n = Be().currentRoute, a = Ke(),
|
|
3272
|
-
const { error:
|
|
3273
|
-
filters:
|
|
3295
|
+
const r = p, n = Be().currentRoute, a = Ke(), c = K(() => r.collection ? je(r.collection, a) : typeof n.value.meta.collection == "string" ? je(n.value.meta.collection, a) : typeof n.value.params.collection == "string" ? je(n.value.params.collection, a) : null), u = async (_, d) => {
|
|
3296
|
+
const { error: g, result: i } = await d.$functions[_.badgeFunction]({
|
|
3297
|
+
filters: _.filters
|
|
3274
3298
|
});
|
|
3275
|
-
return
|
|
3299
|
+
return g ? 0 : i;
|
|
3276
3300
|
};
|
|
3277
|
-
return (
|
|
3301
|
+
return (_, d) => c.value && c.value.description.filtersPresets ? (t(), V(dl, {
|
|
3278
3302
|
key: 0,
|
|
3279
3303
|
dropdown: "",
|
|
3280
3304
|
query: "section"
|
|
3281
|
-
},
|
|
3282
|
-
H(Object.entries(
|
|
3283
|
-
name:
|
|
3284
|
-
fn:
|
|
3305
|
+
}, _e({ _: 2 }, [
|
|
3306
|
+
H(Object.entries(c.value.description.filtersPresets), ([g, i]) => ({
|
|
3307
|
+
name: g,
|
|
3308
|
+
fn: y(() => [
|
|
3285
3309
|
I("div", {
|
|
3286
3310
|
class: "topbar__preset",
|
|
3287
|
-
onClick: (
|
|
3311
|
+
onClick: (v) => e(ht)(i, c.value)
|
|
3288
3312
|
}, [
|
|
3289
|
-
|
|
3313
|
+
i.icon ? (t(), V(Y, {
|
|
3290
3314
|
key: 0,
|
|
3291
|
-
icon:
|
|
3315
|
+
icon: i.icon
|
|
3292
3316
|
}, {
|
|
3293
|
-
default:
|
|
3294
|
-
|
|
3317
|
+
default: y(() => [
|
|
3318
|
+
Q(C(i.label || e(q)(g, { plural: !0 })), 1)
|
|
3295
3319
|
]),
|
|
3296
3320
|
_: 2
|
|
3297
|
-
}, 1032, ["icon"])) : (t(), l("div",
|
|
3298
|
-
|
|
3299
|
-
default:
|
|
3321
|
+
}, 1032, ["icon"])) : (t(), l("div", ml, C(i.label || e(q)(g, { plural: !0 })), 1)),
|
|
3322
|
+
i.badgeFunction ? (t(), V(Ve, { key: 2 }, {
|
|
3323
|
+
default: y(() => [
|
|
3300
3324
|
L(e(pl), {
|
|
3301
3325
|
"initial-value": "0",
|
|
3302
|
-
promise: u(
|
|
3326
|
+
promise: u(i, c.value)
|
|
3303
3327
|
}, null, 8, ["promise"])
|
|
3304
3328
|
]),
|
|
3305
3329
|
_: 2
|
|
3306
|
-
}, 1024)) :
|
|
3307
|
-
], 8,
|
|
3330
|
+
}, 1024)) : b("", !0)
|
|
3331
|
+
], 8, _l)
|
|
3308
3332
|
])
|
|
3309
3333
|
}))
|
|
3310
|
-
]), 1024)) :
|
|
3334
|
+
]), 1024)) : b("", !0);
|
|
3311
3335
|
}
|
|
3312
|
-
})
|
|
3336
|
+
});
|
|
3337
|
+
const vl = /* @__PURE__ */ D(fl, [["__scopeId", "data-v-f0a45677"]]), yl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3313
3338
|
__proto__: null,
|
|
3314
|
-
default:
|
|
3315
|
-
}, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */
|
|
3339
|
+
default: vl
|
|
3340
|
+
}, Symbol.toStringTag, { value: "Module" })), Sl = /* @__PURE__ */ z({
|
|
3316
3341
|
__name: "aeria-password-form",
|
|
3317
3342
|
props: {
|
|
3318
3343
|
modelValue: {}
|
|
@@ -3320,12 +3345,12 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3320
3345
|
emits: ["update:modelValue"],
|
|
3321
3346
|
setup(p) {
|
|
3322
3347
|
const r = p;
|
|
3323
|
-
|
|
3324
|
-
const o =
|
|
3348
|
+
ge(ze, null);
|
|
3349
|
+
const o = zt(), n = K(() => o(
|
|
3325
3350
|
r.modelValue.password,
|
|
3326
3351
|
r.modelValue.confirmation
|
|
3327
3352
|
));
|
|
3328
|
-
return (a,
|
|
3353
|
+
return (a, c) => (t(), V(He, {
|
|
3329
3354
|
form: {
|
|
3330
3355
|
password: {
|
|
3331
3356
|
type: "string",
|
|
@@ -3339,11 +3364,11 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3339
3364
|
}
|
|
3340
3365
|
},
|
|
3341
3366
|
"model-value": a.modelValue,
|
|
3342
|
-
"onUpdate:modelValue":
|
|
3367
|
+
"onUpdate:modelValue": c[0] || (c[0] = (u) => a.$emit("update:modelValue", u))
|
|
3343
3368
|
}, {
|
|
3344
|
-
after:
|
|
3369
|
+
after: y(() => [
|
|
3345
3370
|
I("div", null, C(n.value || "Senhas conferem"), 1),
|
|
3346
|
-
A(a.$slots, "default",
|
|
3371
|
+
A(a.$slots, "default", de(Ce({ passwordError: n.value })))
|
|
3347
3372
|
]),
|
|
3348
3373
|
_: 3
|
|
3349
3374
|
}, 8, ["model-value"]));
|
|
@@ -3366,7 +3391,7 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3366
3391
|
{
|
|
3367
3392
|
path: "signin",
|
|
3368
3393
|
name: "/user/signin",
|
|
3369
|
-
component: () => import("./signin-
|
|
3394
|
+
component: () => import("./signin-80046a53.js"),
|
|
3370
3395
|
meta: {
|
|
3371
3396
|
title: "Sign in"
|
|
3372
3397
|
}
|
|
@@ -3374,7 +3399,7 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3374
3399
|
{
|
|
3375
3400
|
path: "signup",
|
|
3376
3401
|
name: "/user/signup",
|
|
3377
|
-
component: () => import("./signup-
|
|
3402
|
+
component: () => import("./signup-2b9cbf2c.js"),
|
|
3378
3403
|
meta: {
|
|
3379
3404
|
title: "Sign up"
|
|
3380
3405
|
}
|
|
@@ -3382,7 +3407,7 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3382
3407
|
{
|
|
3383
3408
|
path: "redefine-password",
|
|
3384
3409
|
name: "/user/redefine-password",
|
|
3385
|
-
component: () => import("./redefine-password-
|
|
3410
|
+
component: () => import("./redefine-password-a556ab1e.js"),
|
|
3386
3411
|
meta: {
|
|
3387
3412
|
title: "Redefine password"
|
|
3388
3413
|
}
|
|
@@ -3390,13 +3415,13 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3390
3415
|
{
|
|
3391
3416
|
path: "activation",
|
|
3392
3417
|
name: "/user/activation",
|
|
3393
|
-
component: () => import("./activation-
|
|
3418
|
+
component: () => import("./activation-9b511196.js"),
|
|
3394
3419
|
meta: {
|
|
3395
3420
|
title: "Activate user"
|
|
3396
3421
|
}
|
|
3397
3422
|
}
|
|
3398
3423
|
])
|
|
3399
|
-
}),
|
|
3424
|
+
}), Tl = (p, r = []) => ({
|
|
3400
3425
|
path: "/dashboard",
|
|
3401
3426
|
name: "/builtin:dashboard",
|
|
3402
3427
|
component: p,
|
|
@@ -3412,8 +3437,8 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3412
3437
|
name: "/dashboard/:collection",
|
|
3413
3438
|
props: !0,
|
|
3414
3439
|
components: {
|
|
3415
|
-
default: () => import("./index-
|
|
3416
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3440
|
+
default: () => import("./index-13f71246.js"),
|
|
3441
|
+
topbar: () => Promise.resolve().then(() => yl)
|
|
3417
3442
|
},
|
|
3418
3443
|
meta: {
|
|
3419
3444
|
title: ({ collectionName: o, t: n }) => n(o, {
|
|
@@ -3426,7 +3451,7 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3426
3451
|
name: "/dashboard/:collection/:id",
|
|
3427
3452
|
props: !0,
|
|
3428
3453
|
components: {
|
|
3429
|
-
default: () => import("./_id_-
|
|
3454
|
+
default: () => import("./_id_-35671aff.js")
|
|
3430
3455
|
},
|
|
3431
3456
|
meta: {
|
|
3432
3457
|
title: ({ collectionName: o, t: n }) => n(o, {
|
|
@@ -3446,7 +3471,7 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3446
3471
|
children: [
|
|
3447
3472
|
{
|
|
3448
3473
|
path: "profile",
|
|
3449
|
-
component: () => import("./index-
|
|
3474
|
+
component: () => import("./index-17786102.js"),
|
|
3450
3475
|
meta: {
|
|
3451
3476
|
title: "User profile",
|
|
3452
3477
|
icon: "user-square"
|
|
@@ -3455,7 +3480,7 @@ const Bl = /* @__PURE__ */ Q(tl, [["render", ol], ["__scopeId", "data-v-3cfef7fb
|
|
|
3455
3480
|
{
|
|
3456
3481
|
path: "changepass",
|
|
3457
3482
|
name: "/dashboard/user/changepass",
|
|
3458
|
-
component: () => import("./index-
|
|
3483
|
+
component: () => import("./index-54fc64aa.js"),
|
|
3459
3484
|
meta: {
|
|
3460
3485
|
title: "Change password",
|
|
3461
3486
|
icon: "lock"
|
|
@@ -3471,11 +3496,11 @@ export {
|
|
|
3471
3496
|
pl as C,
|
|
3472
3497
|
Ya as D,
|
|
3473
3498
|
Za as E,
|
|
3474
|
-
|
|
3499
|
+
vl as F,
|
|
3475
3500
|
wl as G,
|
|
3476
|
-
|
|
3501
|
+
Tl as H,
|
|
3477
3502
|
Sl as _,
|
|
3478
|
-
|
|
3503
|
+
pe as a,
|
|
3479
3504
|
Y as b,
|
|
3480
3505
|
Hn as c,
|
|
3481
3506
|
Al as d,
|
|
@@ -3483,20 +3508,20 @@ export {
|
|
|
3483
3508
|
Ue as f,
|
|
3484
3509
|
Bl as g,
|
|
3485
3510
|
Se as h,
|
|
3486
|
-
|
|
3511
|
+
D as i,
|
|
3487
3512
|
Ol as j,
|
|
3488
3513
|
Ve as k,
|
|
3489
|
-
|
|
3514
|
+
ye as l,
|
|
3490
3515
|
sn as m,
|
|
3491
3516
|
Ie as n,
|
|
3492
|
-
|
|
3517
|
+
ja as o,
|
|
3493
3518
|
Ko as p,
|
|
3494
|
-
|
|
3519
|
+
bn as q,
|
|
3495
3520
|
Il as r,
|
|
3496
3521
|
qn as s,
|
|
3497
3522
|
Sa as t,
|
|
3498
|
-
|
|
3499
|
-
|
|
3523
|
+
dl as u,
|
|
3524
|
+
mo as v,
|
|
3500
3525
|
Oe as w,
|
|
3501
3526
|
Gn as x,
|
|
3502
3527
|
Bo as y,
|