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