@aeria-ui/ui 0.0.160 → 0.0.162
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_-27a53395.js → _id_-ceb07ba3.js} +1 -1
- package/dist/{activation-d4f6bfd3.js → activation-c67694fb.js} +1 -1
- package/dist/components/aeria-table/aeria-table.vue.d.ts +1 -0
- package/dist/{index-b72557b8.js → index-629e6cbc.js} +1 -1
- package/dist/{index-344010b1.js → index-a3679b90.js} +570 -567
- package/dist/{index-1254b96e.js → index-d6818c5b.js} +1 -1
- package/dist/{index-778db0f9.js → index-f74dbcac.js} +1 -1
- package/dist/{redefine-password-d30a850b.js → redefine-password-9c1f1202.js} +1 -1
- package/dist/{signin-0f3fd855.js → signin-466c153d.js} +1 -1
- package/dist/{signup-a6e0d10a.js → signup-b5f7c7cb.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as F, ref as ee, resolveDirective as
|
|
1
|
+
import { defineComponent as F, ref as ee, resolveDirective as te, openBlock as t, createElementBlock as l, normalizeClass as Y, Fragment as P, renderList as D, withDirectives as N, toDisplayString as C, createCommentVNode as g, createTextVNode as W, unref as e, renderSlot as I, withModifiers as Re, inject as ve, computed as J, createElementVNode as B, mergeProps as z, createBlock as V, withCtx as b, resolveDynamicComponent as ge, useCssVars as gt, normalizeProps as de, guardReactiveProps as Ce, Teleport as We, createVNode as L, onMounted as Ye, watch as ce, vModelDynamic as $t, onBeforeMount as vt, normalizeStyle as ke, provide as $e, createSlots as _e, vModelCheckbox as kt, onUnmounted as Vt, resolveComponent as Ct, Suspense as Ot, useSlots as At, h as It } from "vue";
|
|
2
2
|
import { t as q, useI18n as Bt } from "@aeria-ui/i18n";
|
|
3
|
-
import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ke, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as yt, request as jt, useDebounce as
|
|
3
|
+
import { INSTANCE_VARS_SYMBOL as St, useScrollObserver as Ke, useBreakpoints as Le, useMask as wt, PAGINATION_PER_PAGE_DEFAULTS as Tt, API_URL as yt, request as jt, useDebounce as bt, convertToSearchQuery as Rt, useParentCollectionStore as je, useCollectionStore as qt, useAction as Lt, convertFromSearchQuery as Mt, usePasswordPolicy as zt } from "@aeria-ui/core";
|
|
4
4
|
import { arraysIntersect as Ge, deepClone as Ae, getReferenceProperty as me, freshItem as Ft, isRequired as dt, evaluateCondition as Ee, deepMerge as qe } from "@aeriajs/common";
|
|
5
5
|
import { useStore as ie, 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";
|
|
@@ -18,23 +18,23 @@ 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 c =
|
|
21
|
+
const c = te("clickable");
|
|
22
22
|
return t(), l("div", {
|
|
23
|
-
class:
|
|
23
|
+
class: Y({
|
|
24
24
|
accordion: !0,
|
|
25
25
|
"accordion--padded": !o.noPadding
|
|
26
26
|
})
|
|
27
27
|
}, [
|
|
28
|
-
(t(!0), l(
|
|
28
|
+
(t(!0), l(P, null, D(Object.keys(o.$slots).filter((u) => u !== "default"), (u, m) => (t(), l("div", {
|
|
29
29
|
key: u,
|
|
30
30
|
class: "accordion__slot"
|
|
31
31
|
}, [
|
|
32
|
-
|
|
32
|
+
N((t(), l("div", {
|
|
33
33
|
class: "accordion__header",
|
|
34
34
|
onClick: (d) => r.value === u ? r.value = null : r.value = u
|
|
35
35
|
}, [
|
|
36
36
|
o.enumerate ? (t(), l("span", Qt, C(m + 1) + ". ", 1)) : g("", !0),
|
|
37
|
-
|
|
37
|
+
W(" " + C(o.headers[u] ? n(o.headers[u]) : e(q)(u)), 1)
|
|
38
38
|
], 8, Dt)), [
|
|
39
39
|
[c]
|
|
40
40
|
]),
|
|
@@ -46,12 +46,12 @@ const Dt = ["onClick"], Qt = { key: 0 }, Gt = {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
const
|
|
49
|
+
const G = (p, r) => {
|
|
50
50
|
const n = p.__vccOpts || p;
|
|
51
51
|
for (const [o, a] of r)
|
|
52
52
|
n[o] = a;
|
|
53
53
|
return n;
|
|
54
|
-
}, Al = /* @__PURE__ */
|
|
54
|
+
}, Al = /* @__PURE__ */ G(Wt, [["__scopeId", "data-v-3ea933d4"]]), Yt = /* @__PURE__ */ F({
|
|
55
55
|
__name: "aeria-badge",
|
|
56
56
|
props: {
|
|
57
57
|
large: { type: Boolean },
|
|
@@ -59,7 +59,7 @@ const Q = (p, r) => {
|
|
|
59
59
|
},
|
|
60
60
|
setup(p) {
|
|
61
61
|
return (r, n) => (t(), l("div", {
|
|
62
|
-
class:
|
|
62
|
+
class: Y([
|
|
63
63
|
"badge",
|
|
64
64
|
{ "badge--large": r.large },
|
|
65
65
|
{ "badge--alt": r.alt }
|
|
@@ -69,7 +69,7 @@ const Q = (p, r) => {
|
|
|
69
69
|
], 2));
|
|
70
70
|
}
|
|
71
71
|
});
|
|
72
|
-
const Ve = /* @__PURE__ */
|
|
72
|
+
const Ve = /* @__PURE__ */ G(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @__PURE__ */ F({
|
|
73
73
|
__name: "aeria-bare-button",
|
|
74
74
|
props: {
|
|
75
75
|
disabled: { type: Boolean }
|
|
@@ -80,7 +80,7 @@ const Ve = /* @__PURE__ */ Q(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @_
|
|
|
80
80
|
n.disabled || o("click", c);
|
|
81
81
|
};
|
|
82
82
|
return (c, u) => (t(), l("button", {
|
|
83
|
-
class:
|
|
83
|
+
class: Y([
|
|
84
84
|
"barebutton",
|
|
85
85
|
`barebutton--${c.disabled ? "disabled" : "enabled"}`
|
|
86
86
|
]),
|
|
@@ -90,7 +90,7 @@ const Ve = /* @__PURE__ */ Q(Yt, [["__scopeId", "data-v-4cbce7ef"]]), Kt = /* @_
|
|
|
90
90
|
], 2));
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
const
|
|
93
|
+
const be = /* @__PURE__ */ G(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["href"], Jt = {
|
|
94
94
|
key: 0,
|
|
95
95
|
"data-component": "icon-label"
|
|
96
96
|
}, Zt = /* @__PURE__ */ F({
|
|
@@ -104,12 +104,12 @@ const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
104
104
|
active: { type: Boolean }
|
|
105
105
|
},
|
|
106
106
|
setup(p) {
|
|
107
|
-
const r = p, n =
|
|
107
|
+
const r = p, n = ve(St, {}), o = typeof r.reactive == "boolean" ? r.reactive : ve("iconReactive", !1), a = J(() => {
|
|
108
108
|
var c;
|
|
109
109
|
return (c = r.icon) != null && c.includes(":") ? r.icon : `regular:${r.icon}`;
|
|
110
110
|
});
|
|
111
111
|
return (c, u) => (t(), l("a", {
|
|
112
|
-
class:
|
|
112
|
+
class: Y([
|
|
113
113
|
"icon",
|
|
114
114
|
{ "icon--reactive": e(o) },
|
|
115
115
|
{ "icon--active": c.active },
|
|
@@ -117,7 +117,7 @@ const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
117
117
|
])
|
|
118
118
|
}, [
|
|
119
119
|
B("div", {
|
|
120
|
-
class:
|
|
120
|
+
class: Y([
|
|
121
121
|
"icon__icon",
|
|
122
122
|
{ "icon__icon--right": c.iconRight }
|
|
123
123
|
])
|
|
@@ -141,7 +141,7 @@ const ye = /* @__PURE__ */ Q(Kt, [["__scopeId", "data-v-1883f6a0"]]), Xt = ["hre
|
|
|
141
141
|
], 2));
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
|
-
const
|
|
144
|
+
const K = /* @__PURE__ */ G(Zt, [["__scopeId", "data-v-263a2782"]]), Pt = { class: "button__content" }, Nt = {
|
|
145
145
|
key: 1,
|
|
146
146
|
class: "button__content"
|
|
147
147
|
}, xt = /* @__PURE__ */ F({
|
|
@@ -156,17 +156,17 @@ const Y = /* @__PURE__ */ Q(Zt, [["__scopeId", "data-v-263a2782"]]), Pt = { clas
|
|
|
156
156
|
loading: { type: Boolean }
|
|
157
157
|
},
|
|
158
158
|
setup(p) {
|
|
159
|
-
const r = p, n =
|
|
159
|
+
const r = p, n = ve("buttonVariant", r.variant) || "primary", o = (() => {
|
|
160
160
|
switch (!0) {
|
|
161
161
|
case r.small:
|
|
162
162
|
return "small";
|
|
163
163
|
case r.large:
|
|
164
164
|
return "large";
|
|
165
165
|
}
|
|
166
|
-
return
|
|
166
|
+
return ve("buttonSize", r.size) || "medium";
|
|
167
167
|
})();
|
|
168
|
-
return (a, c) => (t(), V(
|
|
169
|
-
class:
|
|
168
|
+
return (a, c) => (t(), V(be, {
|
|
169
|
+
class: Y([
|
|
170
170
|
"button",
|
|
171
171
|
`button--${e(n)}`,
|
|
172
172
|
`button--${e(o)}`,
|
|
@@ -174,12 +174,12 @@ const Y = /* @__PURE__ */ Q(Zt, [["__scopeId", "data-v-263a2782"]]), Pt = { clas
|
|
|
174
174
|
]),
|
|
175
175
|
disabled: a.disabled || a.loading
|
|
176
176
|
}, {
|
|
177
|
-
default:
|
|
178
|
-
a.icon ? (t(), V(
|
|
177
|
+
default: b(() => [
|
|
178
|
+
a.icon ? (t(), V(K, {
|
|
179
179
|
key: 0,
|
|
180
180
|
icon: a.icon
|
|
181
181
|
}, {
|
|
182
|
-
default:
|
|
182
|
+
default: b(() => [
|
|
183
183
|
B("div", Pt, [
|
|
184
184
|
I(a.$slots, "default", {}, void 0, !0)
|
|
185
185
|
])
|
|
@@ -193,7 +193,7 @@ const Y = /* @__PURE__ */ Q(Zt, [["__scopeId", "data-v-263a2782"]]), Pt = { clas
|
|
|
193
193
|
}, 8, ["class", "disabled"]));
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
|
-
const pe = /* @__PURE__ */
|
|
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({
|
|
197
197
|
__name: "aeria-card",
|
|
198
198
|
props: {
|
|
199
199
|
inactive: { type: Boolean },
|
|
@@ -201,7 +201,7 @@ const pe = /* @__PURE__ */ Q(xt, [["__scopeId", "data-v-e9f582db"]]), en = { cla
|
|
|
201
201
|
},
|
|
202
202
|
setup(p) {
|
|
203
203
|
return (r, n) => (t(), l("div", {
|
|
204
|
-
class:
|
|
204
|
+
class: Y([
|
|
205
205
|
"card",
|
|
206
206
|
{ "card--inactive": r.inactive },
|
|
207
207
|
{ "card--horizontal": r.horizontal }
|
|
@@ -226,7 +226,7 @@ const pe = /* @__PURE__ */ Q(xt, [["__scopeId", "data-v-e9f582db"]]), en = { cla
|
|
|
226
226
|
], 2));
|
|
227
227
|
}
|
|
228
228
|
});
|
|
229
|
-
const sn = /* @__PURE__ */
|
|
229
|
+
const sn = /* @__PURE__ */ G(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { class: "panel__header-left" }, un = { key: 1 }, cn = {
|
|
230
230
|
key: 2,
|
|
231
231
|
style: { "margin-left": "auto" }
|
|
232
232
|
}, dn = /* @__PURE__ */ F({
|
|
@@ -260,19 +260,19 @@ const sn = /* @__PURE__ */ Q(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
|
|
|
260
260
|
o("update:collapsed", s), a.value = s;
|
|
261
261
|
};
|
|
262
262
|
return (s, y) => {
|
|
263
|
-
const $ =
|
|
264
|
-
return s.modelValue ?
|
|
263
|
+
const $ = te("clickable"), f = te("loading"), A = te("overlay");
|
|
264
|
+
return s.modelValue ? N((t(), l("div", {
|
|
265
265
|
key: 0,
|
|
266
|
-
class:
|
|
266
|
+
class: Y([
|
|
267
267
|
"panel",
|
|
268
268
|
{ "panel--fixed": s.fixedRight }
|
|
269
269
|
])
|
|
270
270
|
}, [
|
|
271
|
-
(t(), V(
|
|
271
|
+
(t(), V(ge(
|
|
272
272
|
s.float || s.fixedRight ? "dialog" : "div"
|
|
273
273
|
), {
|
|
274
274
|
"data-component": "panel",
|
|
275
|
-
class:
|
|
275
|
+
class: Y([
|
|
276
276
|
"aeria-surface",
|
|
277
277
|
"panel__content",
|
|
278
278
|
{ "panel__content--float": s.float },
|
|
@@ -284,10 +284,10 @@ const sn = /* @__PURE__ */ Q(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
|
|
|
284
284
|
]),
|
|
285
285
|
onClick: y[2] || (y[2] = (i) => i.stopPropagation())
|
|
286
286
|
}, {
|
|
287
|
-
default:
|
|
287
|
+
default: b(() => [
|
|
288
288
|
s.$slots.header || s.title ? (t(), l("div", {
|
|
289
289
|
key: 0,
|
|
290
|
-
class:
|
|
290
|
+
class: Y([
|
|
291
291
|
"panel__header",
|
|
292
292
|
{ "panel__header--collapsed": a.value },
|
|
293
293
|
{ "panel__header--outer": s.outerHeader }
|
|
@@ -299,21 +299,21 @@ const sn = /* @__PURE__ */ Q(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
|
|
|
299
299
|
I(s.$slots, "extra", {}, void 0, !0)
|
|
300
300
|
])) : g("", !0)
|
|
301
301
|
]),
|
|
302
|
-
s.collapsible && a.value ?
|
|
302
|
+
s.collapsible && a.value ? N((t(), V(K, {
|
|
303
303
|
key: 0,
|
|
304
304
|
reactive: "",
|
|
305
305
|
icon: "plus",
|
|
306
306
|
onClick: y[0] || (y[0] = (i) => v(!a.value))
|
|
307
307
|
}, null, 512)), [
|
|
308
308
|
[$]
|
|
309
|
-
]) : s.collapsible && !a.value ?
|
|
309
|
+
]) : s.collapsible && !a.value ? N((t(), V(K, {
|
|
310
310
|
key: 1,
|
|
311
311
|
reactive: "",
|
|
312
312
|
icon: "minus",
|
|
313
313
|
onClick: y[1] || (y[1] = (i) => v(!a.value))
|
|
314
314
|
}, null, 512)), [
|
|
315
315
|
[$]
|
|
316
|
-
]) : s.closeHint ?
|
|
316
|
+
]) : s.closeHint ? N((t(), V(K, {
|
|
317
317
|
key: 2,
|
|
318
318
|
reactive: "",
|
|
319
319
|
icon: "x",
|
|
@@ -322,12 +322,12 @@ const sn = /* @__PURE__ */ Q(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
|
|
|
322
322
|
[$]
|
|
323
323
|
]) : g("", !0)
|
|
324
324
|
], 2)) : g("", !0),
|
|
325
|
-
a.value ? g("", !0) :
|
|
325
|
+
a.value ? g("", !0) : N((t(), l("div", {
|
|
326
326
|
key: 1,
|
|
327
327
|
ref_key: "body",
|
|
328
328
|
ref: c,
|
|
329
329
|
tabindex: "0",
|
|
330
|
-
class:
|
|
330
|
+
class: Y([
|
|
331
331
|
"panel__body",
|
|
332
332
|
{ "panel__body--padded": !s.fill }
|
|
333
333
|
])
|
|
@@ -338,7 +338,7 @@ const sn = /* @__PURE__ */ Q(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
|
|
|
338
338
|
]),
|
|
339
339
|
s.$slots.footer ? (t(), l("div", {
|
|
340
340
|
key: 2,
|
|
341
|
-
class:
|
|
341
|
+
class: Y([
|
|
342
342
|
"panel__footer",
|
|
343
343
|
{ "panel__footer--padded": !s.fillFooter },
|
|
344
344
|
{ "panel__footer--shadowed": !e(u) }
|
|
@@ -360,7 +360,7 @@ const sn = /* @__PURE__ */ Q(ln, [["__scopeId", "data-v-e7d2c665"]]), rn = { cla
|
|
|
360
360
|
};
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
|
-
const Se = /* @__PURE__ */
|
|
363
|
+
const Se = /* @__PURE__ */ G(dn, [["__scopeId", "data-v-3075829a"]]), pn = { class: "content__body" }, _n = {
|
|
364
364
|
key: 0,
|
|
365
365
|
class: "content__section"
|
|
366
366
|
}, mn = { class: "content__item" }, fn = /* @__PURE__ */ F({
|
|
@@ -388,7 +388,7 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
388
388
|
action: d,
|
|
389
389
|
subject: s
|
|
390
390
|
}), a.value = !1;
|
|
391
|
-
}, m =
|
|
391
|
+
}, m = J(() => {
|
|
392
392
|
if (!o.value)
|
|
393
393
|
return {
|
|
394
394
|
x: 0,
|
|
@@ -402,8 +402,8 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
402
402
|
};
|
|
403
403
|
});
|
|
404
404
|
return (d, v) => {
|
|
405
|
-
const s =
|
|
406
|
-
return t(), l(
|
|
405
|
+
const s = te("overlay");
|
|
406
|
+
return t(), l(P, null, [
|
|
407
407
|
Object.keys(d.$slots).some((y) => y !== "default") || d.actions !== void 0 && d.actions.length > 0 ? (t(), l("div", {
|
|
408
408
|
key: 0,
|
|
409
409
|
ref_key: "contextmenu",
|
|
@@ -423,7 +423,7 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
423
423
|
key: 1,
|
|
424
424
|
to: "main"
|
|
425
425
|
}, [
|
|
426
|
-
|
|
426
|
+
N((t(), V(Se, {
|
|
427
427
|
modelValue: a.value,
|
|
428
428
|
"onUpdate:modelValue": v[4] || (v[4] = (y) => a.value = y),
|
|
429
429
|
fill: "",
|
|
@@ -431,7 +431,7 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
431
431
|
class: "content",
|
|
432
432
|
style: { "--panel-min-width": "0" }
|
|
433
433
|
}, {
|
|
434
|
-
default:
|
|
434
|
+
default: b(() => [
|
|
435
435
|
B("div", pn, [
|
|
436
436
|
d.$slots.header ? (t(), l("div", _n, [
|
|
437
437
|
I(d.$slots, "header", {}, void 0, !0)
|
|
@@ -441,11 +441,11 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
441
441
|
class: "content__section",
|
|
442
442
|
onClick: v[1] || (v[1] = (y) => a.value = !1)
|
|
443
443
|
}, [
|
|
444
|
-
(t(!0), l(
|
|
444
|
+
(t(!0), l(P, null, D(Object.keys(d.$slots).filter((y) => !["default", "extra", "header"].includes(y)), (y, $) => (t(), V(be, {
|
|
445
445
|
key: `slot-${$}`,
|
|
446
446
|
class: "content__item content__item--reactive"
|
|
447
447
|
}, {
|
|
448
|
-
default:
|
|
448
|
+
default: b(() => [
|
|
449
449
|
I(d.$slots, y, {}, void 0, !0)
|
|
450
450
|
]),
|
|
451
451
|
_: 2
|
|
@@ -456,17 +456,17 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
456
456
|
class: "content__section",
|
|
457
457
|
onClick: v[2] || (v[2] = (y) => a.value = !1)
|
|
458
458
|
}, [
|
|
459
|
-
(t(!0), l(
|
|
459
|
+
(t(!0), l(P, null, D(c(d.actions), (y, $) => (t(), V(be, {
|
|
460
460
|
key: `action-${$}`,
|
|
461
461
|
class: "content__item content__item--reactive",
|
|
462
462
|
onClick: (f) => u(y, d.subject)
|
|
463
463
|
}, {
|
|
464
|
-
default:
|
|
465
|
-
L(
|
|
464
|
+
default: b(() => [
|
|
465
|
+
L(K, {
|
|
466
466
|
icon: y.icon || "gear"
|
|
467
467
|
}, {
|
|
468
|
-
default:
|
|
469
|
-
|
|
468
|
+
default: b(() => [
|
|
469
|
+
W(C(y.translate ? e(q)(y.label, { capitalize: !0 }) : y.label), 1)
|
|
470
470
|
]),
|
|
471
471
|
_: 2
|
|
472
472
|
}, 1032, ["icon"])
|
|
@@ -504,7 +504,7 @@ const Se = /* @__PURE__ */ Q(dn, [["__scopeId", "data-v-3075829a"]]), pn = { cla
|
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
506
|
});
|
|
507
|
-
const Ie = /* @__PURE__ */
|
|
507
|
+
const Ie = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-ee3ea72f"]]), vn = { class: "info__content" }, yn = /* @__PURE__ */ F({
|
|
508
508
|
__name: "aeria-info",
|
|
509
509
|
props: {
|
|
510
510
|
where: { default: "top" }
|
|
@@ -518,7 +518,7 @@ const Ie = /* @__PURE__ */ Q(fn, [["__scopeId", "data-v-ee3ea72f"]]), vn = { cla
|
|
|
518
518
|
}, [
|
|
519
519
|
n.value ? (t(), l("div", {
|
|
520
520
|
key: 0,
|
|
521
|
-
class:
|
|
521
|
+
class: Y([
|
|
522
522
|
"info__bubble",
|
|
523
523
|
`info__bubble--${o.where}`
|
|
524
524
|
])
|
|
@@ -535,7 +535,7 @@ const Ie = /* @__PURE__ */ Q(fn, [["__scopeId", "data-v-ee3ea72f"]]), vn = { cla
|
|
|
535
535
|
], 32)) : I(o.$slots, "default", { key: 1 }, void 0, !0);
|
|
536
536
|
}
|
|
537
537
|
});
|
|
538
|
-
const
|
|
538
|
+
const bn = /* @__PURE__ */ G(yn, [["__scopeId", "data-v-15a38847"]]), hn = { class: "input" }, gn = {
|
|
539
539
|
key: 0,
|
|
540
540
|
class: "input__label"
|
|
541
541
|
}, $n = {
|
|
@@ -558,8 +558,8 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
558
558
|
},
|
|
559
559
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
560
560
|
setup(p, { emit: r }) {
|
|
561
|
-
var
|
|
562
|
-
const n = p, o = r, a = n.property || {}, c = "icon" in a || "inputType" in a && a.inputType === "search", u =
|
|
561
|
+
var X;
|
|
562
|
+
const n = p, o = r, a = n.property || {}, c = "icon" in a || "inputType" in a && a.inputType === "search", u = ve("searchOnly", !1), m = ve("innerInputLabel", !1), d = !u && (n.readOnly || a.readOnly), v = (h) => (o("clipboardCopy", h), navigator.clipboard.writeText(h)), s = ve("inputVariant", n.variant) || "normal", y = Object.assign(Object.assign({}, n), {
|
|
563
563
|
name: n.propertyName,
|
|
564
564
|
readonly: d,
|
|
565
565
|
type: (() => {
|
|
@@ -585,92 +585,94 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
585
585
|
"type" in a && ((a.type === "number" || a.type === "integer") && (a.minimum && (y.min = a.minimum), a.exclusiveMinimum && (y.min = a.exclusiveMinimum + 1), a.maximum && (y.max = a.maximum), a.exclusiveMaximum && (y.max = a.exclusiveMaximum - 1)), a.type === "string" && ((a.format === "date" || a.format === "date-time") && (y.type = !u && a.format === "date-time" ? "datetime-local" : "date"), y.minlength = a.minLength, y.maxlength = a.maxLength)), y.type === "text" && u && (y.type = "search"), Ye(() => {
|
|
586
586
|
n.modelValue !== null && M(n.modelValue);
|
|
587
587
|
});
|
|
588
|
-
const $ = (
|
|
589
|
-
let
|
|
590
|
-
if (typeof
|
|
591
|
-
|
|
592
|
-
else if (
|
|
593
|
-
|
|
588
|
+
const $ = (h) => {
|
|
589
|
+
let H;
|
|
590
|
+
if (typeof h == "string")
|
|
591
|
+
H = h;
|
|
592
|
+
else if (h instanceof Date)
|
|
593
|
+
H = h.toISOString();
|
|
594
594
|
else
|
|
595
595
|
return "";
|
|
596
596
|
switch (y.type) {
|
|
597
597
|
case "date":
|
|
598
|
-
return
|
|
598
|
+
return H.slice(0, 10);
|
|
599
599
|
case "datetime-local":
|
|
600
|
-
return
|
|
600
|
+
return H.slice(0, 19);
|
|
601
601
|
default:
|
|
602
602
|
throw new Error();
|
|
603
603
|
}
|
|
604
|
-
}, f = ee(""), A = ((
|
|
605
|
-
|
|
604
|
+
}, f = ee(""), A = ((X = n.property) == null ? void 0 : X.type) === "string" && n.property.mask ? wt(n.property.mask) : null;
|
|
605
|
+
ce(() => n.modelValue, (h) => {
|
|
606
606
|
f.value = (() => {
|
|
607
607
|
if (A)
|
|
608
|
-
return
|
|
608
|
+
return h ? A.enmask(String(h), void 0, {
|
|
609
609
|
defaultValue: !0
|
|
610
610
|
}) : "";
|
|
611
611
|
switch (y.type) {
|
|
612
612
|
case "date":
|
|
613
613
|
case "datetime-local":
|
|
614
|
-
return $(
|
|
614
|
+
return $(h);
|
|
615
615
|
}
|
|
616
|
-
switch (
|
|
616
|
+
switch (h) {
|
|
617
617
|
case null:
|
|
618
618
|
case void 0:
|
|
619
619
|
return "";
|
|
620
620
|
default:
|
|
621
|
-
return
|
|
621
|
+
return h;
|
|
622
622
|
}
|
|
623
623
|
})();
|
|
624
624
|
}, {
|
|
625
625
|
immediate: !0
|
|
626
626
|
});
|
|
627
|
-
const i = (
|
|
628
|
-
var
|
|
629
|
-
return typeof f.value == "string" && ((
|
|
627
|
+
const i = (h) => {
|
|
628
|
+
var H;
|
|
629
|
+
return typeof f.value == "string" && ((H = n.property) == null ? void 0 : H.type) === "string" && A !== null ? (f.value = A.enmask(f.value, void 0, {
|
|
630
630
|
defaultValue: !0
|
|
631
|
-
}), n.property.maskedValue === !0 ? f.value : A.unmask(f.value)) :
|
|
632
|
-
}, M = (
|
|
633
|
-
const
|
|
634
|
-
if (
|
|
635
|
-
return
|
|
631
|
+
}), n.property.maskedValue === !0 ? f.value : A.unmask(f.value)) : h;
|
|
632
|
+
}, M = (h) => {
|
|
633
|
+
const H = (() => {
|
|
634
|
+
if (typeof h != "string")
|
|
635
|
+
return h;
|
|
636
|
+
if (y.type !== "text" && h === "")
|
|
637
|
+
return null;
|
|
636
638
|
switch (y.type) {
|
|
637
639
|
case "number":
|
|
638
640
|
case "integer":
|
|
639
|
-
return Number(
|
|
641
|
+
return Number(h);
|
|
640
642
|
case "date":
|
|
641
643
|
case "date-time":
|
|
642
|
-
return typeof
|
|
644
|
+
return typeof h == "string" ? new Date(h) : h;
|
|
643
645
|
default:
|
|
644
|
-
return i(
|
|
646
|
+
return i(h);
|
|
645
647
|
}
|
|
646
648
|
})();
|
|
647
|
-
o("input",
|
|
648
|
-
}, E = (
|
|
649
|
-
const
|
|
650
|
-
f.value =
|
|
649
|
+
o("input", H), o("update:modelValue", H);
|
|
650
|
+
}, E = (h) => {
|
|
651
|
+
const H = h.target.value;
|
|
652
|
+
f.value = H, M(H);
|
|
651
653
|
};
|
|
652
|
-
return (
|
|
653
|
-
const oe =
|
|
654
|
-
return t(), l("label",
|
|
654
|
+
return (h, H) => {
|
|
655
|
+
const oe = te("focus"), ue = te("clickable");
|
|
656
|
+
return t(), l("label", hn, [
|
|
655
657
|
e(m) ? g("", !0) : (t(), l("div", gn, [
|
|
656
|
-
|
|
658
|
+
h.$slots.default ? I(h.$slots, "default", { key: 0 }, void 0, !0) : I(h.$slots, "description", { key: 1 }, void 0, !0)
|
|
657
659
|
])),
|
|
658
|
-
|
|
659
|
-
I(
|
|
660
|
+
h.$slots.hint ? (t(), l("div", $n, [
|
|
661
|
+
I(h.$slots, "hint", {}, void 0, !0)
|
|
660
662
|
])) : g("", !0),
|
|
661
663
|
"element" in e(a) && e(a).element === "textarea" ? (t(), l("div", {
|
|
662
664
|
key: 2,
|
|
663
|
-
class:
|
|
665
|
+
class: Y([
|
|
664
666
|
"input__container",
|
|
665
667
|
"input__container--textarea",
|
|
666
668
|
`input__container--${e(s)}`
|
|
667
669
|
])
|
|
668
670
|
}, [
|
|
669
|
-
|
|
671
|
+
N(B("textarea", {
|
|
670
672
|
placeholder: e(y).placeholder,
|
|
671
673
|
readonly: e(y).readonly,
|
|
672
|
-
value:
|
|
673
|
-
class:
|
|
674
|
+
value: h.modelValue,
|
|
675
|
+
class: Y([
|
|
674
676
|
"input__textarea",
|
|
675
677
|
`input__input--${e(s)}`
|
|
676
678
|
]),
|
|
@@ -680,12 +682,12 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
680
682
|
])
|
|
681
683
|
], 2)) : (t(), l("div", {
|
|
682
684
|
key: 3,
|
|
683
|
-
class:
|
|
685
|
+
class: Y([
|
|
684
686
|
"input__container",
|
|
685
687
|
`input__container--${e(s)}`
|
|
686
688
|
])
|
|
687
689
|
}, [
|
|
688
|
-
|
|
690
|
+
N(B("input", z(e(y), {
|
|
689
691
|
value: f.value,
|
|
690
692
|
"data-component": "input",
|
|
691
693
|
class: [
|
|
@@ -695,30 +697,30 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
695
697
|
{ "input__input--readOnly": e(d) }
|
|
696
698
|
],
|
|
697
699
|
onInput: E,
|
|
698
|
-
onChange:
|
|
700
|
+
onChange: H[0] || (H[0] = (w) => o("change", w))
|
|
699
701
|
}), null, 16, Vn), [
|
|
700
702
|
[oe, e(a).focus]
|
|
701
703
|
]),
|
|
702
|
-
e(c) ? (t(), V(
|
|
704
|
+
e(c) ? (t(), V(K, {
|
|
703
705
|
key: 0,
|
|
704
706
|
icon: e(a).icon || "magnifying-glass",
|
|
705
|
-
class:
|
|
707
|
+
class: Y([
|
|
706
708
|
"input__icon",
|
|
707
709
|
`input__icon--${e(s)}`
|
|
708
710
|
])
|
|
709
711
|
}, null, 8, ["icon", "class"])) : g("", !0),
|
|
710
712
|
e(d) ? (t(), l("div", Cn, [
|
|
711
|
-
L(
|
|
712
|
-
text:
|
|
713
|
-
|
|
713
|
+
L(bn, null, {
|
|
714
|
+
text: b(() => H[2] || (H[2] = [
|
|
715
|
+
W("Copiar")
|
|
714
716
|
])),
|
|
715
|
-
default:
|
|
716
|
-
|
|
717
|
+
default: b(() => [
|
|
718
|
+
N(L(K, {
|
|
717
719
|
reactive: "",
|
|
718
720
|
icon: "clipboard",
|
|
719
|
-
onClick:
|
|
721
|
+
onClick: H[1] || (H[1] = Re((w) => v(String(h.modelValue || "")), ["prevent"]))
|
|
720
722
|
}, null, 512), [
|
|
721
|
-
[
|
|
723
|
+
[ue]
|
|
722
724
|
])
|
|
723
725
|
]),
|
|
724
726
|
_: 1
|
|
@@ -729,7 +731,7 @@ const hn = /* @__PURE__ */ Q(yn, [["__scopeId", "data-v-15a38847"]]), bn = { cla
|
|
|
729
731
|
};
|
|
730
732
|
}
|
|
731
733
|
});
|
|
732
|
-
const Oe = /* @__PURE__ */
|
|
734
|
+
const Oe = /* @__PURE__ */ G(On, [["__scopeId", "data-v-d310fbbb"]]), An = {
|
|
733
735
|
key: 1,
|
|
734
736
|
value: ""
|
|
735
737
|
}, In = ["value", "data-selected"], Bn = /* @__PURE__ */ F({
|
|
@@ -752,8 +754,8 @@ const Oe = /* @__PURE__ */ Q(On, [["__scopeId", "data-v-31001eea"]]), An = {
|
|
|
752
754
|
o("update:modelValue", s), o("change", s);
|
|
753
755
|
}, m = (s) => {
|
|
754
756
|
s === "" || s === null ? u(null) : n.booleanRef ? u(s === "true") : u(s);
|
|
755
|
-
}, d = (s) => Array.isArray(n.modelValue) ? n.modelValue.includes(s) : n.modelValue === s, v =
|
|
756
|
-
return n.multiple &&
|
|
757
|
+
}, d = (s) => Array.isArray(n.modelValue) ? n.modelValue.includes(s) : n.modelValue === s, v = J(() => n.multiple ? typeof n.multiple == "number" ? n.multiple : 5 : 1);
|
|
758
|
+
return n.multiple && ce(() => n.modelValue, (s) => {
|
|
757
759
|
var $;
|
|
758
760
|
if (!a.value)
|
|
759
761
|
return;
|
|
@@ -776,12 +778,12 @@ const Oe = /* @__PURE__ */ Q(On, [["__scopeId", "data-v-31001eea"]]), An = {
|
|
|
776
778
|
},
|
|
777
779
|
onChange: y[0] || (y[0] = ($) => m($.target.value))
|
|
778
780
|
}), [
|
|
779
|
-
e(c) && e(c).icon ? (t(), V(
|
|
781
|
+
e(c) && e(c).icon ? (t(), V(K, {
|
|
780
782
|
key: 0,
|
|
781
783
|
icon: e(c).icon
|
|
782
784
|
}, null, 8, ["icon"])) : g("", !0),
|
|
783
785
|
!n.multiple && !s.required ? (t(), l("option", An, C(e(q)("none")), 1)) : g("", !0),
|
|
784
|
-
(t(!0), l(
|
|
786
|
+
(t(!0), l(P, null, D(e(c) && "enum" in e(c) ? e(c).enum : [], ($) => {
|
|
785
787
|
var f;
|
|
786
788
|
return t(), l("option", {
|
|
787
789
|
key: String($),
|
|
@@ -793,7 +795,7 @@ const Oe = /* @__PURE__ */ Q(On, [["__scopeId", "data-v-31001eea"]]), An = {
|
|
|
793
795
|
], 16));
|
|
794
796
|
}
|
|
795
797
|
});
|
|
796
|
-
const Je = /* @__PURE__ */
|
|
798
|
+
const Je = /* @__PURE__ */ G(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { class: "pagination" }, wn = { class: "pagination__arrows" }, Tn = ["value"], jn = {
|
|
797
799
|
key: 0,
|
|
798
800
|
class: "pagination__summary"
|
|
799
801
|
}, Rn = /* @__PURE__ */ F({
|
|
@@ -804,20 +806,20 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
804
806
|
},
|
|
805
807
|
emits: ["paginate"],
|
|
806
808
|
setup(p, { emit: r }) {
|
|
807
|
-
const n = p, o = r, a =
|
|
809
|
+
const n = p, o = r, a = J({
|
|
808
810
|
get: () => Math.floor(n.pagination.offset / n.pagination.limit),
|
|
809
811
|
set: (v) => {
|
|
810
812
|
n.pagination.offset = v * n.pagination.limit;
|
|
811
813
|
}
|
|
812
|
-
}), c =
|
|
814
|
+
}), c = J({
|
|
813
815
|
get: () => n.pagination.limit,
|
|
814
816
|
set: (v) => {
|
|
815
817
|
n.pagination.limit = Number(v);
|
|
816
818
|
}
|
|
817
|
-
}), u = ee(a.value ? a.value + 1 : 1), m =
|
|
819
|
+
}), u = ee(a.value ? a.value + 1 : 1), m = J(() => Math.ceil(n.pagination.recordsTotal / n.pagination.limit)), d = (v) => {
|
|
818
820
|
a.value = v === "previous" ? a.value - 1 : a.value + 1;
|
|
819
821
|
};
|
|
820
|
-
return
|
|
822
|
+
return ce([
|
|
821
823
|
a,
|
|
822
824
|
c
|
|
823
825
|
], ([v]) => {
|
|
@@ -827,39 +829,39 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
827
829
|
});
|
|
828
830
|
}), (v, s) => (t(), l("div", Sn, [
|
|
829
831
|
B("div", wn, [
|
|
830
|
-
L(
|
|
832
|
+
L(be, {
|
|
831
833
|
disabled: a.value === 0,
|
|
832
834
|
onClick: s[0] || (s[0] = (y) => a.value = 0)
|
|
833
835
|
}, {
|
|
834
|
-
default:
|
|
835
|
-
L(
|
|
836
|
+
default: b(() => [
|
|
837
|
+
L(K, { icon: "caret-double-left" })
|
|
836
838
|
]),
|
|
837
839
|
_: 1
|
|
838
840
|
}, 8, ["disabled"]),
|
|
839
|
-
L(
|
|
841
|
+
L(be, {
|
|
840
842
|
disabled: a.value === 0,
|
|
841
843
|
onClick: s[1] || (s[1] = (y) => d("previous"))
|
|
842
844
|
}, {
|
|
843
|
-
default:
|
|
844
|
-
L(
|
|
845
|
+
default: b(() => [
|
|
846
|
+
L(K, { icon: "caret-left" })
|
|
845
847
|
]),
|
|
846
848
|
_: 1
|
|
847
849
|
}, 8, ["disabled"]),
|
|
848
|
-
L(
|
|
850
|
+
L(be, {
|
|
849
851
|
disabled: a.value === m.value - 1,
|
|
850
852
|
onClick: s[2] || (s[2] = (y) => d("next"))
|
|
851
853
|
}, {
|
|
852
|
-
default:
|
|
853
|
-
L(
|
|
854
|
+
default: b(() => [
|
|
855
|
+
L(K, { icon: "caret-right" })
|
|
854
856
|
]),
|
|
855
857
|
_: 1
|
|
856
858
|
}, 8, ["disabled"]),
|
|
857
|
-
L(
|
|
859
|
+
L(be, {
|
|
858
860
|
disabled: a.value === m.value - 1,
|
|
859
861
|
onClick: s[3] || (s[3] = (y) => a.value = m.value - 1)
|
|
860
862
|
}, {
|
|
861
|
-
default:
|
|
862
|
-
L(
|
|
863
|
+
default: b(() => [
|
|
864
|
+
L(K, { icon: "caret-double-right" })
|
|
863
865
|
]),
|
|
864
866
|
_: 1
|
|
865
867
|
}, 8, ["disabled"]),
|
|
@@ -872,8 +874,8 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
872
874
|
},
|
|
873
875
|
class: "pagination__control"
|
|
874
876
|
}, {
|
|
875
|
-
default:
|
|
876
|
-
(t(!0), l(
|
|
877
|
+
default: b(() => [
|
|
878
|
+
(t(!0), l(P, null, D(e(Tt), (y) => (t(), l("option", {
|
|
877
879
|
key: `limit-${y}`,
|
|
878
880
|
value: y
|
|
879
881
|
}, C(y), 9, Tn))), 128))
|
|
@@ -882,7 +884,7 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
882
884
|
}, 8, ["modelValue"])
|
|
883
885
|
]),
|
|
884
886
|
v.noSummary ? g("", !0) : (t(), l("div", jn, [
|
|
885
|
-
|
|
887
|
+
W(C(e(q)("Page")) + " ", 1),
|
|
886
888
|
(t(), V(Oe, {
|
|
887
889
|
key: a.value,
|
|
888
890
|
modelValue: u.value,
|
|
@@ -901,7 +903,7 @@ const Je = /* @__PURE__ */ Q(Bn, [["__scopeId", "data-v-50bbcc3b"]]), Sn = { cla
|
|
|
901
903
|
]));
|
|
902
904
|
}
|
|
903
905
|
});
|
|
904
|
-
const qn = /* @__PURE__ */
|
|
906
|
+
const qn = /* @__PURE__ */ G(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { class: "checkbox__text" }, Mn = ["innerHTML"], zn = { class: "checkbox__hint" }, Fn = ["innerHTML"], En = {
|
|
905
907
|
inheritAttrs: !1
|
|
906
908
|
}, Un = /* @__PURE__ */ F({
|
|
907
909
|
...En,
|
|
@@ -927,7 +929,7 @@ const qn = /* @__PURE__ */ Q(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
927
929
|
return "checkbox";
|
|
928
930
|
}
|
|
929
931
|
return "radio";
|
|
930
|
-
})(), u = r, m = n.value || !1, d =
|
|
932
|
+
})(), u = r, m = n.value || !1, d = J({
|
|
931
933
|
get: () => {
|
|
932
934
|
var s;
|
|
933
935
|
if (o) {
|
|
@@ -963,14 +965,14 @@ const qn = /* @__PURE__ */ Q(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
963
965
|
};
|
|
964
966
|
return (s, y) => {
|
|
965
967
|
var f, A;
|
|
966
|
-
const $ =
|
|
967
|
-
return
|
|
968
|
-
class:
|
|
968
|
+
const $ = te("clickable");
|
|
969
|
+
return N((t(), l("label", {
|
|
970
|
+
class: Y([
|
|
969
971
|
"checkbox",
|
|
970
972
|
{ "checkbox--readOnly": e(a) }
|
|
971
973
|
])
|
|
972
974
|
}, [
|
|
973
|
-
|
|
975
|
+
N(B("input", z({
|
|
974
976
|
"onUpdate:modelValue": y[0] || (y[0] = (i) => d.value = i)
|
|
975
977
|
}, {
|
|
976
978
|
type: e(c),
|
|
@@ -1002,7 +1004,7 @@ const qn = /* @__PURE__ */ Q(Rn, [["__scopeId", "data-v-ae7235de"]]), Ln = { cla
|
|
|
1002
1004
|
};
|
|
1003
1005
|
}
|
|
1004
1006
|
});
|
|
1005
|
-
const Hn = /* @__PURE__ */
|
|
1007
|
+
const Hn = /* @__PURE__ */ G(Un, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
|
|
1006
1008
|
inheritAttrs: !1
|
|
1007
1009
|
}, Qn = /* @__PURE__ */ F({
|
|
1008
1010
|
...Dn,
|
|
@@ -1029,12 +1031,12 @@ const Hn = /* @__PURE__ */ Q(Un, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
|
|
|
1029
1031
|
);
|
|
1030
1032
|
}), (m, d) => (t(), l("div", {
|
|
1031
1033
|
class: "options",
|
|
1032
|
-
style:
|
|
1034
|
+
style: ke(`
|
|
1033
1035
|
--columns: ${m.columns};
|
|
1034
1036
|
grid-template-columns: repeat(var(--columns), 1fr);
|
|
1035
1037
|
`)
|
|
1036
1038
|
}, [
|
|
1037
|
-
(t(!0), l(
|
|
1039
|
+
(t(!0), l(P, null, D(e(c), (v) => (t(), l("div", {
|
|
1038
1040
|
key: `option-${v}`,
|
|
1039
1041
|
class: "options__checkbox"
|
|
1040
1042
|
}, [
|
|
@@ -1050,7 +1052,7 @@ const Hn = /* @__PURE__ */ Q(Un, [["__scopeId", "data-v-7e6efc77"]]), Dn = {
|
|
|
1050
1052
|
], 4));
|
|
1051
1053
|
}
|
|
1052
1054
|
});
|
|
1053
|
-
const Gn = /* @__PURE__ */
|
|
1055
|
+
const Gn = /* @__PURE__ */ G(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { class: "switch-wrapper" }, Yn = { key: 1 }, Kn = {
|
|
1054
1056
|
inheritAttrs: !1
|
|
1055
1057
|
}, Xn = /* @__PURE__ */ F({
|
|
1056
1058
|
...Kn,
|
|
@@ -1071,10 +1073,10 @@ const Gn = /* @__PURE__ */ Q(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { cla
|
|
|
1071
1073
|
};
|
|
1072
1074
|
return (m, d) => {
|
|
1073
1075
|
var s;
|
|
1074
|
-
const v =
|
|
1076
|
+
const v = te("clickable");
|
|
1075
1077
|
return t(), l("div", Wn, [
|
|
1076
|
-
|
|
1077
|
-
class:
|
|
1078
|
+
N((t(), l("a", {
|
|
1079
|
+
class: Y([
|
|
1078
1080
|
"switch",
|
|
1079
1081
|
{ "switch--active": m.modelValue },
|
|
1080
1082
|
{ "switch--readOnly": e(c) }
|
|
@@ -1083,7 +1085,7 @@ const Gn = /* @__PURE__ */ Q(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { cla
|
|
|
1083
1085
|
}, [
|
|
1084
1086
|
d[0] || (d[0] = B("div", { class: "switch__slider" }, null, -1)),
|
|
1085
1087
|
B("div", {
|
|
1086
|
-
class:
|
|
1088
|
+
class: Y([
|
|
1087
1089
|
"switch__dummy",
|
|
1088
1090
|
{ "switch__dummy--flex": !m.modelValue }
|
|
1089
1091
|
])
|
|
@@ -1098,7 +1100,7 @@ const Gn = /* @__PURE__ */ Q(Qn, [["__scopeId", "data-v-bcfc697e"]]), Wn = { cla
|
|
|
1098
1100
|
};
|
|
1099
1101
|
}
|
|
1100
1102
|
});
|
|
1101
|
-
const Jn = /* @__PURE__ */
|
|
1103
|
+
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 = {
|
|
1102
1104
|
key: 0,
|
|
1103
1105
|
class: "picture__meta"
|
|
1104
1106
|
}, eo = ["src"], to = { key: 5 }, no = /* @__PURE__ */ F({
|
|
@@ -1116,16 +1118,16 @@ const Jn = /* @__PURE__ */ Q(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1116
1118
|
meta: {}
|
|
1117
1119
|
},
|
|
1118
1120
|
setup(p) {
|
|
1119
|
-
const r = p, n =
|
|
1121
|
+
const r = p, n = J(() => r.fileId ? `${yt}/file/${r.fileId}/picture` : r.url || r.modelValue), o = ee(!1);
|
|
1120
1122
|
return (a, c) => {
|
|
1121
1123
|
var m;
|
|
1122
|
-
const u =
|
|
1124
|
+
const u = te("overlay");
|
|
1123
1125
|
return t(), l("figure", Zn, [
|
|
1124
1126
|
n.value && o.value ? (t(), V(We, {
|
|
1125
1127
|
key: 0,
|
|
1126
1128
|
to: "main"
|
|
1127
1129
|
}, [
|
|
1128
|
-
|
|
1130
|
+
N((t(), l("div", Pn, [
|
|
1129
1131
|
B("img", {
|
|
1130
1132
|
src: n.value,
|
|
1131
1133
|
alt: a.alt,
|
|
@@ -1148,12 +1150,12 @@ const Jn = /* @__PURE__ */ Q(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1148
1150
|
n.value ? (t(), l("img", {
|
|
1149
1151
|
key: 1,
|
|
1150
1152
|
src: n.value,
|
|
1151
|
-
class:
|
|
1153
|
+
class: Y([
|
|
1152
1154
|
"picture__image",
|
|
1153
1155
|
{ "picture__image--bordered": a.bordered },
|
|
1154
1156
|
{ "picture__image--expandable": a.expandable }
|
|
1155
1157
|
]),
|
|
1156
|
-
style:
|
|
1158
|
+
style: ke(`
|
|
1157
1159
|
object-fit: ${a.objectFit || "cover"};
|
|
1158
1160
|
width: ${a.width || "100%"};
|
|
1159
1161
|
height: ${a.height || "100%"};
|
|
@@ -1163,13 +1165,13 @@ const Jn = /* @__PURE__ */ Q(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1163
1165
|
})
|
|
1164
1166
|
}, null, 14, eo)) : a.$slots.fallback ? I(a.$slots, "fallback", { key: 2 }, void 0, !0) : a.$slots.default ? I(a.$slots, "default", { key: 3 }, void 0, !0) : (t(), l("svg", {
|
|
1165
1167
|
key: 4,
|
|
1166
|
-
class:
|
|
1168
|
+
class: Y(["picture__background", [
|
|
1167
1169
|
{ "picture__image--bordered": a.bordered }
|
|
1168
1170
|
]]),
|
|
1169
1171
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1170
1172
|
viewBox: "0 0 200 200",
|
|
1171
1173
|
preserveAspectRatio: "none",
|
|
1172
|
-
style:
|
|
1174
|
+
style: ke(`
|
|
1173
1175
|
object-fit: ${a.objectFit || "cover"};
|
|
1174
1176
|
width: ${a.width || "100%"};
|
|
1175
1177
|
height: ${a.height || "100%"};
|
|
@@ -1199,7 +1201,7 @@ const Jn = /* @__PURE__ */ Q(Xn, [["__scopeId", "data-v-ae45597d"]]), Zn = { cla
|
|
|
1199
1201
|
};
|
|
1200
1202
|
}
|
|
1201
1203
|
});
|
|
1202
|
-
const Ue = /* @__PURE__ */
|
|
1204
|
+
const Ue = /* @__PURE__ */ G(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { class: "item" }, ao = { class: "item__presentation" }, lo = {
|
|
1203
1205
|
key: 1,
|
|
1204
1206
|
class: "item__name"
|
|
1205
1207
|
}, so = { class: "item__size" }, io = /* @__PURE__ */ F({
|
|
@@ -1228,15 +1230,15 @@ const Ue = /* @__PURE__ */ Q(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { cla
|
|
|
1228
1230
|
class: "item__picture"
|
|
1229
1231
|
}, null, 8, ["alt", "url"])) : g("", !0),
|
|
1230
1232
|
B("div", ao, [
|
|
1231
|
-
"_id" in e(n) ? (t(), V(
|
|
1233
|
+
"_id" in e(n) ? (t(), V(K, {
|
|
1232
1234
|
key: 0,
|
|
1233
1235
|
icon: "arrow-square-out",
|
|
1234
1236
|
href: e(n).link,
|
|
1235
1237
|
target: "_blank",
|
|
1236
1238
|
class: "item__name item__name--link"
|
|
1237
1239
|
}, {
|
|
1238
|
-
default:
|
|
1239
|
-
|
|
1240
|
+
default: b(() => [
|
|
1241
|
+
W(C(e(n).name), 1)
|
|
1240
1242
|
]),
|
|
1241
1243
|
_: 1
|
|
1242
1244
|
}, 8, ["href"])) : (t(), l("div", lo, C(e(n).name), 1)),
|
|
@@ -1248,7 +1250,7 @@ const Ue = /* @__PURE__ */ Q(no, [["__scopeId", "data-v-9e6a58b0"]]), oo = { cla
|
|
|
1248
1250
|
]));
|
|
1249
1251
|
}
|
|
1250
1252
|
});
|
|
1251
|
-
const ro = /* @__PURE__ */
|
|
1253
|
+
const ro = /* @__PURE__ */ G(io, [["__scopeId", "data-v-85a82246"]]), uo = { class: "file" }, co = ["accept", "multiple"], po = {
|
|
1252
1254
|
key: 1,
|
|
1253
1255
|
class: "file__list"
|
|
1254
1256
|
}, _o = /* @__PURE__ */ F({
|
|
@@ -1267,7 +1269,7 @@ const ro = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1267
1269
|
},
|
|
1268
1270
|
emits: ["update:content", "change", "update:modelValue"],
|
|
1269
1271
|
setup(p, { emit: r }) {
|
|
1270
|
-
const n = p, o = n.property && me(n.property), a = r, u = Me() ? He() : null, m = n.multiple || n.property && "type" in n.property && n.property.type === "array", d =
|
|
1272
|
+
const n = p, o = n.property && me(n.property), a = r, u = Me() ? He() : null, m = n.multiple || n.property && "type" in n.property && n.property.type === "array", d = J(() => {
|
|
1271
1273
|
if (n.modelValue)
|
|
1272
1274
|
return Array.isArray(n.modelValue) ? n.modelValue : [n.modelValue];
|
|
1273
1275
|
}), v = ($) => new Promise((f) => {
|
|
@@ -1281,7 +1283,7 @@ const ro = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1281
1283
|
for (const i of f) {
|
|
1282
1284
|
const M = await v(i);
|
|
1283
1285
|
if (u) {
|
|
1284
|
-
const { data: { error: E, result:
|
|
1286
|
+
const { data: { error: E, result: X } } = await jt(`${yt}/${u.$id}/upload?name=${i.name}`, M, {
|
|
1285
1287
|
params: {
|
|
1286
1288
|
method: "POST",
|
|
1287
1289
|
headers: {
|
|
@@ -1293,7 +1295,7 @@ const ro = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1293
1295
|
if (E)
|
|
1294
1296
|
return;
|
|
1295
1297
|
A.unshift({
|
|
1296
|
-
tempId:
|
|
1298
|
+
tempId: X.tempId,
|
|
1297
1299
|
file: i
|
|
1298
1300
|
});
|
|
1299
1301
|
} else
|
|
@@ -1310,7 +1312,7 @@ const ro = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1310
1312
|
};
|
|
1311
1313
|
return ($, f) => {
|
|
1312
1314
|
var i, M;
|
|
1313
|
-
const A =
|
|
1315
|
+
const A = te("clickable");
|
|
1314
1316
|
return t(), l("div", uo, [
|
|
1315
1317
|
$.readOnly ? g("", !0) : (t(), l("input", {
|
|
1316
1318
|
key: 0,
|
|
@@ -1321,16 +1323,16 @@ const ro = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1321
1323
|
onChange: s
|
|
1322
1324
|
}, null, 40, co)),
|
|
1323
1325
|
d.value && d.value.length > 0 ? (t(), l("div", po, [
|
|
1324
|
-
(t(!0), l(
|
|
1326
|
+
(t(!0), l(P, null, D(d.value, (E, X) => (t(), V(ro, {
|
|
1325
1327
|
key: "_id" in E ? String(E._id) : E.file.name,
|
|
1326
1328
|
"model-value": E
|
|
1327
1329
|
}, {
|
|
1328
|
-
default:
|
|
1329
|
-
$.readOnly ? g("", !0) :
|
|
1330
|
+
default: b(() => [
|
|
1331
|
+
$.readOnly ? g("", !0) : N((t(), V(K, {
|
|
1330
1332
|
key: 0,
|
|
1331
1333
|
reactive: "",
|
|
1332
1334
|
icon: "trash",
|
|
1333
|
-
onClick: (
|
|
1335
|
+
onClick: (h) => y(X)
|
|
1334
1336
|
}, null, 8, ["onClick"])), [
|
|
1335
1337
|
[A]
|
|
1336
1338
|
])
|
|
@@ -1342,7 +1344,7 @@ const ro = /* @__PURE__ */ Q(io, [["__scopeId", "data-v-85a82246"]]), uo = { cla
|
|
|
1342
1344
|
};
|
|
1343
1345
|
}
|
|
1344
1346
|
});
|
|
1345
|
-
const mo = /* @__PURE__ */
|
|
1347
|
+
const mo = /* @__PURE__ */ G(_o, [["__scopeId", "data-v-9950a715"]]), fo = { class: "container" }, vo = {
|
|
1346
1348
|
key: 1,
|
|
1347
1349
|
class: "container__footer"
|
|
1348
1350
|
}, yo = /* @__PURE__ */ F({
|
|
@@ -1355,7 +1357,7 @@ const mo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-9950a715"]]), fo = { cla
|
|
|
1355
1357
|
const n = p, o = r, a = ee(null), c = n.observeScroll ? Ke(a, {
|
|
1356
1358
|
antecipate: 100
|
|
1357
1359
|
}).reachedEnd : null;
|
|
1358
|
-
return c !== null &&
|
|
1360
|
+
return c !== null && ce(c, (u) => {
|
|
1359
1361
|
u && o("endReached", u);
|
|
1360
1362
|
}), (u, m) => (t(), l("div", fo, [
|
|
1361
1363
|
u.$slots.default ? (t(), l("div", {
|
|
@@ -1372,7 +1374,7 @@ const mo = /* @__PURE__ */ Q(_o, [["__scopeId", "data-v-9950a715"]]), fo = { cla
|
|
|
1372
1374
|
]));
|
|
1373
1375
|
}
|
|
1374
1376
|
});
|
|
1375
|
-
const pt = /* @__PURE__ */
|
|
1377
|
+
const pt = /* @__PURE__ */ G(yo, [["__scopeId", "data-v-c86e2d2a"]]), bo = { class: "item__values" }, ho = /* @__PURE__ */ F({
|
|
1376
1378
|
__name: "aeria-search-item",
|
|
1377
1379
|
props: {
|
|
1378
1380
|
item: {},
|
|
@@ -1383,7 +1385,7 @@ const pt = /* @__PURE__ */ Q(yo, [["__scopeId", "data-v-c86e2d2a"]]), ho = { cla
|
|
|
1383
1385
|
},
|
|
1384
1386
|
emits: ["update:modelValue", "change"],
|
|
1385
1387
|
setup(p, { emit: r }) {
|
|
1386
|
-
const n = Be(), o = p, a = r, c = o.property, u = me(c), m = He(), d =
|
|
1388
|
+
const n = Be(), o = p, a = r, c = o.property, u = me(c), m = He(), d = J(() => o.modelValue ? Array.isArray(o.modelValue) ? Array.isArray(o.modelValue) && Object.values(o.modelValue).some(({ _id: $ }) => o.item._id === $) : o.modelValue._id === o.item._id : !1), v = () => {
|
|
1387
1389
|
if (d.value)
|
|
1388
1390
|
return;
|
|
1389
1391
|
const $ = (A) => A.filter((i) => !!i._id);
|
|
@@ -1413,22 +1415,22 @@ const pt = /* @__PURE__ */ Q(yo, [["__scopeId", "data-v-c86e2d2a"]]), ho = { cla
|
|
|
1413
1415
|
return d.value ? s() : v();
|
|
1414
1416
|
};
|
|
1415
1417
|
return ($, f) => {
|
|
1416
|
-
const A =
|
|
1417
|
-
return
|
|
1418
|
-
class:
|
|
1418
|
+
const A = te("clickable");
|
|
1419
|
+
return N((t(), l("div", {
|
|
1420
|
+
class: Y({
|
|
1419
1421
|
item: !0,
|
|
1420
1422
|
"item--selected": d.value
|
|
1421
1423
|
}),
|
|
1422
1424
|
onClick: y
|
|
1423
1425
|
}, [
|
|
1424
1426
|
I($.$slots, "default", {}, void 0, !0),
|
|
1425
|
-
B("div",
|
|
1426
|
-
(t(!0), l(
|
|
1427
|
+
B("div", bo, [
|
|
1428
|
+
(t(!0), l(P, null, D($.indexes, (i, M) => (t(), l("div", {
|
|
1427
1429
|
key: `index-${$.item._id}-${M}`,
|
|
1428
1430
|
class: "item__value"
|
|
1429
1431
|
}, C($.item[i]), 1))), 128))
|
|
1430
1432
|
]),
|
|
1431
|
-
$.readOnly ? (t(), V(
|
|
1433
|
+
$.readOnly ? (t(), V(K, {
|
|
1432
1434
|
key: 0,
|
|
1433
1435
|
icon: "arrow-square-out",
|
|
1434
1436
|
style: { "--icon-color": "var(--theme-brand-color-contrast)" }
|
|
@@ -1439,7 +1441,7 @@ const pt = /* @__PURE__ */ Q(yo, [["__scopeId", "data-v-c86e2d2a"]]), ho = { cla
|
|
|
1439
1441
|
};
|
|
1440
1442
|
}
|
|
1441
1443
|
});
|
|
1442
|
-
const Qe = /* @__PURE__ */
|
|
1444
|
+
const Qe = /* @__PURE__ */ G(ho, [["__scopeId", "data-v-10ee6b3b"]]), go = { class: "search__panel" }, $o = { key: 1 }, ko = { key: 0 }, Vo = { key: 1 }, Co = { class: "search__summary" }, Oo = {
|
|
1443
1445
|
key: 1,
|
|
1444
1446
|
class: "search"
|
|
1445
1447
|
}, Ao = { key: 0 }, Fe = 10, Io = /* @__PURE__ */ F({
|
|
@@ -1457,24 +1459,24 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1457
1459
|
},
|
|
1458
1460
|
emits: ["update:modelValue", "change", "update:panel"],
|
|
1459
1461
|
setup(p, { emit: r }) {
|
|
1460
|
-
const n = p, o = ie("meta"), a = me(n.property), c = n.panel !== void 0 ?
|
|
1461
|
-
|
|
1462
|
+
const n = p, o = ie("meta"), a = me(n.property), c = n.panel !== void 0 ? J(() => n.panel) : ee(!1), u = r, m = ie(me(n.property).$ref), d = Me(), v = d ? He() : null, s = a.indexes;
|
|
1463
|
+
$e(ze, me(n.property).$ref), $e("innerInputLabel", !0), $e("omitInputLabels", !0);
|
|
1462
1464
|
const y = ee(n.modelValue), $ = ee({
|
|
1463
1465
|
data: [],
|
|
1464
1466
|
pagination: {}
|
|
1465
|
-
}), f =
|
|
1467
|
+
}), f = J(() => $.value.data), A = J(() => $.value.pagination), i = ee(0), M = ee(!1), E = ee(""), X = () => {
|
|
1466
1468
|
const k = {};
|
|
1467
1469
|
if (d) {
|
|
1468
|
-
const
|
|
1469
|
-
k[
|
|
1470
|
+
const Q = e(d);
|
|
1471
|
+
k[Q] = v;
|
|
1470
1472
|
}
|
|
1471
1473
|
return a.constraints ? Et(a.constraints, k) : {};
|
|
1472
|
-
},
|
|
1474
|
+
}, h = () => {
|
|
1473
1475
|
f.value.length < A.value.recordsTotal && (i.value += 1, oe());
|
|
1474
|
-
},
|
|
1476
|
+
}, H = async () => E.value.length === 0 ? m.$actions.custom("getAll", {
|
|
1475
1477
|
limit: Fe,
|
|
1476
1478
|
offset: i.value * Fe,
|
|
1477
|
-
filters:
|
|
1479
|
+
filters: X()
|
|
1478
1480
|
}) : m.$actions.custom("getAll", {
|
|
1479
1481
|
limit: Fe,
|
|
1480
1482
|
offset: i.value * Fe,
|
|
@@ -1483,12 +1485,12 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1483
1485
|
$search: `"${E.value}"`,
|
|
1484
1486
|
$caseSensitive: !1
|
|
1485
1487
|
},
|
|
1486
|
-
...
|
|
1488
|
+
...X()
|
|
1487
1489
|
}
|
|
1488
1490
|
}), oe = async () => {
|
|
1489
1491
|
if (m.loading.getAll)
|
|
1490
1492
|
return;
|
|
1491
|
-
const { error: k, result:
|
|
1493
|
+
const { error: k, result: Q } = await H();
|
|
1492
1494
|
if (k) {
|
|
1493
1495
|
o.$actions.spawnToast({
|
|
1494
1496
|
text: "Request failed",
|
|
@@ -1496,30 +1498,30 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1496
1498
|
});
|
|
1497
1499
|
return;
|
|
1498
1500
|
}
|
|
1499
|
-
$.value.pagination =
|
|
1500
|
-
}, [
|
|
1501
|
+
$.value.pagination = Q.pagination, i.value === 0 && $.value.data.splice(0), $.value.data.push(...Q.data);
|
|
1502
|
+
}, [ue] = bt({
|
|
1501
1503
|
delay: 800
|
|
1502
1504
|
})(() => {
|
|
1503
1505
|
i.value = 0, oe(), M.value = !1;
|
|
1504
|
-
}),
|
|
1505
|
-
M.value = !0,
|
|
1506
|
-
},
|
|
1506
|
+
}), w = () => {
|
|
1507
|
+
M.value = !0, ue();
|
|
1508
|
+
}, ne = () => {
|
|
1507
1509
|
"effect" in c ? u("update:panel", !0) : c.value = !0, oe();
|
|
1508
|
-
},
|
|
1510
|
+
}, fe = () => {
|
|
1509
1511
|
i.value = 0, $.value.data.splice(0), "effect" in c ? u("update:panel", !1) : c.value = !1;
|
|
1510
1512
|
};
|
|
1511
|
-
|
|
1512
|
-
k && !
|
|
1513
|
+
ce(() => E.value.length, (k, Q) => {
|
|
1514
|
+
k && !Q && oe();
|
|
1513
1515
|
}), Ye(() => {
|
|
1514
1516
|
n.selectOnly && oe();
|
|
1515
1517
|
});
|
|
1516
|
-
const
|
|
1518
|
+
const le = (k) => {
|
|
1517
1519
|
y.value = k, n.selectOnly || u("update:modelValue", k);
|
|
1518
1520
|
}, O = () => {
|
|
1519
|
-
|
|
1521
|
+
fe(), u("update:modelValue", y.value);
|
|
1520
1522
|
};
|
|
1521
|
-
return (k,
|
|
1522
|
-
const
|
|
1523
|
+
return (k, Q) => {
|
|
1524
|
+
const ae = te("clickable");
|
|
1523
1525
|
return t(), l("div", null, [
|
|
1524
1526
|
e(c) ? (t(), V(We, {
|
|
1525
1527
|
key: 0,
|
|
@@ -1532,53 +1534,53 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1532
1534
|
"overlay-layer": 65,
|
|
1533
1535
|
"model-value": e(c),
|
|
1534
1536
|
style: { "--panel-max-width": "36rem" },
|
|
1535
|
-
onClose:
|
|
1536
|
-
onOverlayClick:
|
|
1537
|
+
onClose: fe,
|
|
1538
|
+
onOverlayClick: fe
|
|
1537
1539
|
}, {
|
|
1538
|
-
footer:
|
|
1540
|
+
footer: b(() => [
|
|
1539
1541
|
L(pe, {
|
|
1540
1542
|
large: "",
|
|
1541
1543
|
onClick: O
|
|
1542
1544
|
}, {
|
|
1543
|
-
default:
|
|
1544
|
-
|
|
1545
|
+
default: b(() => [
|
|
1546
|
+
W(C(e(q)("action.save", { capitalize: !0 })), 1)
|
|
1545
1547
|
]),
|
|
1546
1548
|
_: 1
|
|
1547
1549
|
})
|
|
1548
1550
|
]),
|
|
1549
|
-
default:
|
|
1551
|
+
default: b(() => {
|
|
1550
1552
|
var _, T;
|
|
1551
1553
|
return [
|
|
1552
1554
|
B("div", go, [
|
|
1553
1555
|
L(Oe, z({
|
|
1554
1556
|
modelValue: E.value,
|
|
1555
|
-
"onUpdate:modelValue":
|
|
1557
|
+
"onUpdate:modelValue": Q[0] || (Q[0] = (U) => E.value = U)
|
|
1556
1558
|
}, {
|
|
1557
1559
|
property: {
|
|
1558
1560
|
type: "string",
|
|
1559
1561
|
placeholder: "Pesquise aqui",
|
|
1560
1562
|
inputType: "search"
|
|
1561
1563
|
}
|
|
1562
|
-
}, { onInput:
|
|
1564
|
+
}, { onInput: w }), null, 16, ["modelValue"]),
|
|
1563
1565
|
f.value.length ? (t(), V(pt, {
|
|
1564
1566
|
key: 0,
|
|
1565
1567
|
"observe-scroll": "",
|
|
1566
|
-
onEndReached:
|
|
1568
|
+
onEndReached: h
|
|
1567
1569
|
}, {
|
|
1568
|
-
default:
|
|
1569
|
-
(t(!0), l(
|
|
1570
|
-
item:
|
|
1570
|
+
default: b(() => [
|
|
1571
|
+
(t(!0), l(P, null, D(f.value, (U) => (t(), V(Qe, z({ ref_for: !0 }, {
|
|
1572
|
+
item: U,
|
|
1571
1573
|
indexes: e(s),
|
|
1572
1574
|
property: k.property
|
|
1573
1575
|
}, {
|
|
1574
|
-
key: `matching-${
|
|
1576
|
+
key: `matching-${U._id}`,
|
|
1575
1577
|
modelValue: y.value,
|
|
1576
|
-
"onUpdate:modelValue":
|
|
1578
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (Z) => y.value = Z)
|
|
1577
1579
|
}), null, 16, ["modelValue"]))), 128))
|
|
1578
1580
|
]),
|
|
1579
1581
|
_: 1
|
|
1580
1582
|
})) : (t(), l("div", $o, [
|
|
1581
|
-
M.value ? (t(), l("div", ko, C(e(q)("searching", { capitalize: !0 })) + "... ", 1)) : !e(m).loading.getAll && Object.values(E.value).filter((
|
|
1583
|
+
M.value ? (t(), l("div", ko, C(e(q)("searching", { capitalize: !0 })) + "... ", 1)) : !e(m).loading.getAll && Object.values(E.value).filter((U) => !!U).length > 0 && !("items" in k.property && ((_ = k.modelValue) != null && _.length) || !Array.isArray(k.modelValue) && ((T = k.modelValue) != null && T._id)) ? (t(), l("div", Vo, C(e(q)("no_results", { capitalize: !0 })), 1)) : g("", !0)
|
|
1582
1584
|
]))
|
|
1583
1585
|
]),
|
|
1584
1586
|
B("div", Co, C(e(q)("showing", { capitalize: !0 })) + " " + C(f.value.length) + " " + C(e(q)("of")) + " " + C(A.value.recordsTotal), 1)
|
|
@@ -1589,11 +1591,11 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1589
1591
|
])) : g("", !0),
|
|
1590
1592
|
k.selectOnly ? g("", !0) : (t(), l("div", Oo, [
|
|
1591
1593
|
L(pt, null, _e({
|
|
1592
|
-
default:
|
|
1594
|
+
default: b(() => {
|
|
1593
1595
|
var _;
|
|
1594
1596
|
return [
|
|
1595
1597
|
"items" in k.property ? (t(), l("div", Ao, [
|
|
1596
|
-
(t(!0), l(
|
|
1598
|
+
(t(!0), l(P, null, D(k.modelValue, (T) => (t(), V(Qe, z({ ref_for: !0 }, {
|
|
1597
1599
|
item: T,
|
|
1598
1600
|
indexes: e(s),
|
|
1599
1601
|
property: k.property,
|
|
@@ -1601,7 +1603,7 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1601
1603
|
modelValue: k.modelValue
|
|
1602
1604
|
}, {
|
|
1603
1605
|
key: `selected-${T._id}`,
|
|
1604
|
-
"onUpdate:modelValue":
|
|
1606
|
+
"onUpdate:modelValue": le
|
|
1605
1607
|
}), null, 16))), 128))
|
|
1606
1608
|
])) : (_ = k.modelValue) != null && _._id ? (t(), V(Qe, z({ key: 1 }, {
|
|
1607
1609
|
item: k.modelValue,
|
|
@@ -1609,24 +1611,24 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1609
1611
|
property: e(a),
|
|
1610
1612
|
readOnly: k.readOnly,
|
|
1611
1613
|
modelValue: k.modelValue
|
|
1612
|
-
}, { "onUpdate:modelValue":
|
|
1614
|
+
}, { "onUpdate:modelValue": le }), null, 16)) : g("", !0)
|
|
1613
1615
|
];
|
|
1614
1616
|
}),
|
|
1615
1617
|
_: 2
|
|
1616
1618
|
}, [
|
|
1617
1619
|
k.readOnly ? void 0 : {
|
|
1618
1620
|
name: "footer",
|
|
1619
|
-
fn:
|
|
1620
|
-
|
|
1621
|
+
fn: b(() => [
|
|
1622
|
+
N((t(), V(K, {
|
|
1621
1623
|
icon: "plus",
|
|
1622
|
-
onClick:
|
|
1624
|
+
onClick: ne
|
|
1623
1625
|
}, {
|
|
1624
|
-
default:
|
|
1625
|
-
|
|
1626
|
+
default: b(() => [
|
|
1627
|
+
W(C(e(q)("action.select", { capitalize: !0 })), 1)
|
|
1626
1628
|
]),
|
|
1627
1629
|
_: 1
|
|
1628
1630
|
})), [
|
|
1629
|
-
[
|
|
1631
|
+
[ae]
|
|
1630
1632
|
])
|
|
1631
1633
|
]),
|
|
1632
1634
|
key: "0"
|
|
@@ -1637,7 +1639,7 @@ const Qe = /* @__PURE__ */ Q(bo, [["__scopeId", "data-v-10ee6b3b"]]), go = { cla
|
|
|
1637
1639
|
};
|
|
1638
1640
|
}
|
|
1639
1641
|
});
|
|
1640
|
-
const Bo = /* @__PURE__ */
|
|
1642
|
+
const Bo = /* @__PURE__ */ G(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r) => {
|
|
1641
1643
|
const n = "items" in p ? p.items : p, o = {
|
|
1642
1644
|
options: Gn,
|
|
1643
1645
|
select: Je,
|
|
@@ -1716,14 +1718,14 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1716
1718
|
},
|
|
1717
1719
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
1718
1720
|
setup(p, { emit: r }) {
|
|
1719
|
-
var
|
|
1721
|
+
var ae;
|
|
1720
1722
|
const n = Xe(), o = p, a = r;
|
|
1721
1723
|
vt(() => {
|
|
1722
1724
|
o.modelValue || a("update:modelValue", o.property && "items" in o.property ? [] : {});
|
|
1723
1725
|
});
|
|
1724
|
-
const c = o.property && me(o.property), u = c ? c.$ref : o.collection || Me(), m = o.readOnly || ((
|
|
1726
|
+
const c = o.property && me(o.property), u = c ? c.$ref : o.collection || Me(), m = o.readOnly || ((ae = o.property) == null ? void 0 : ae.readOnly), d = u ? ie(e(u)) : null;
|
|
1725
1727
|
!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 v = ee(!1), s =
|
|
1728
|
+
const v = ee(!1), s = J(() => {
|
|
1727
1729
|
const _ = (() => !o.form && o.property ? "type" in o.property && o.property.type === "object" ? "properties" in o.property ? o.property.properties : void 0 : d == null ? void 0 : d.properties : o.form)();
|
|
1728
1730
|
if (!_)
|
|
1729
1731
|
return;
|
|
@@ -1732,96 +1734,96 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1732
1734
|
type: "string",
|
|
1733
1735
|
readOnly: !0
|
|
1734
1736
|
}), o.includeTimestamps) {
|
|
1735
|
-
const
|
|
1737
|
+
const U = {
|
|
1736
1738
|
type: "string",
|
|
1737
1739
|
format: "date-time",
|
|
1738
1740
|
readOnly: !0,
|
|
1739
1741
|
isTimestamp: !0
|
|
1740
1742
|
};
|
|
1741
|
-
_.created_at || (T.created_at =
|
|
1743
|
+
_.created_at || (T.created_at = U), _.created_at || (T.updated_at = U);
|
|
1742
1744
|
}
|
|
1743
1745
|
return Object.assign(T, _), T;
|
|
1744
|
-
}), y =
|
|
1745
|
-
const T =
|
|
1746
|
-
return o[_] &&
|
|
1747
|
-
}, f =
|
|
1748
|
-
u &&
|
|
1749
|
-
const
|
|
1746
|
+
}), y = J(() => o.layout || (d == null ? void 0 : d.description.formLayout)), $ = (_) => {
|
|
1747
|
+
const T = ve(_, o[_]);
|
|
1748
|
+
return o[_] && $e(_, o[_]), T;
|
|
1749
|
+
}, f = J(() => o.validationErrors !== null ? o.validationErrors : d == null ? void 0 : d.validationErrors), A = $("formComponents") || {}, i = $("propertyComponents") || {}, M = $("omitFormHeader"), E = $("omitInputLabels"), X = $("innerInputLabel");
|
|
1750
|
+
u && $e(ze, u), $e("searchOnly", o.searchOnly);
|
|
1751
|
+
const h = (_) => s.value ? Object.entries(s.value).filter(([T, U]) => !U.noForm && _([
|
|
1750
1752
|
T,
|
|
1751
|
-
|
|
1752
|
-
])) : null,
|
|
1753
|
-
var
|
|
1753
|
+
U
|
|
1754
|
+
])) : null, H = (_, T) => {
|
|
1755
|
+
var Z;
|
|
1754
1756
|
if (o.searchOnly || !u || o.includeId && _ === "_id" || o.includeTimestamps && T.isTimestamp)
|
|
1755
1757
|
return !0;
|
|
1756
|
-
const
|
|
1757
|
-
return !
|
|
1758
|
-
}, oe =
|
|
1758
|
+
const U = o.property && "properties" in o.property ? o.property.form : (Z = d == null ? void 0 : d.description) == null ? void 0 : Z.form;
|
|
1759
|
+
return !U || U.includes(_);
|
|
1760
|
+
}, oe = h(([_, T]) => H(_, T)), ue = Le(), w = {}, ne = (_, T) => {
|
|
1759
1761
|
var R, re, j, se;
|
|
1760
|
-
const
|
|
1762
|
+
const U = [], Z = ((re = (R = y.value) == null ? void 0 : R.fields) == null ? void 0 : re[_]) || ((se = (j = y.value) == null ? void 0 : j.fields) == null ? void 0 : se.$default);
|
|
1761
1763
|
if (!T)
|
|
1762
1764
|
return;
|
|
1763
|
-
if (
|
|
1764
|
-
const
|
|
1765
|
+
if (Z != null && Z.if && !o.searchOnly) {
|
|
1766
|
+
const ye = Ee(
|
|
1765
1767
|
o.modelValue,
|
|
1766
|
-
|
|
1768
|
+
Z.if
|
|
1767
1769
|
);
|
|
1768
|
-
|
|
1770
|
+
ye.satisfied || (w[_] && (d ? o.modelValue[_] = typeof d.$freshItem[_] == "object" ? Ae(d.$freshItem[_]) : d.$freshItem[_] : o.modelValue[_] = [
|
|
1769
1771
|
void 0,
|
|
1770
1772
|
null
|
|
1771
|
-
].includes(o.modelValue[_]) ? null : o.modelValue[_].constructor()),
|
|
1773
|
+
].includes(o.modelValue[_]) ? null : o.modelValue[_].constructor()), U.push("display: none;")), w[_] = ye.satisfied;
|
|
1772
1774
|
}
|
|
1773
|
-
const S =
|
|
1774
|
-
return
|
|
1775
|
+
const S = ue.value.md && (Z == null ? void 0 : Z.span) || 6;
|
|
1776
|
+
return U.push(`
|
|
1775
1777
|
--field-span: ${S};
|
|
1776
1778
|
grid-column: span var(--field-span) / span var(--field-span);
|
|
1777
|
-
`),
|
|
1778
|
-
--vertical-spacing: ${
|
|
1779
|
+
`), Z && (Z.verticalSpacing && U.push(`
|
|
1780
|
+
--vertical-spacing: ${Z.verticalSpacing};
|
|
1779
1781
|
padding: var(--vertical-spacing) 0;
|
|
1780
|
-
`),
|
|
1782
|
+
`), Z.separator && U.push(`
|
|
1781
1783
|
border-top: 1px solid var(--theme-border-color);
|
|
1782
1784
|
border-width: 1px 0 1px 0;
|
|
1783
1785
|
padding: 1rem 0;
|
|
1784
1786
|
margin: 1rem 0;
|
|
1785
|
-
`)),
|
|
1786
|
-
},
|
|
1787
|
+
`)), U.join("");
|
|
1788
|
+
}, fe = (_) => _ === null || _ instanceof Object && !Object.keys(_).length, le = J(() => o.required ? o.required : o.property && "required" in o.property ? o.property.required : d == null ? void 0 : d.description.required), O = J(() => o.form ? Ut(
|
|
1787
1789
|
o.modelValue,
|
|
1788
1790
|
o.form,
|
|
1789
|
-
|
|
1791
|
+
le.value,
|
|
1790
1792
|
d == null ? void 0 : d.description
|
|
1791
1793
|
) : !0), k = (_, T) => {
|
|
1792
|
-
var
|
|
1793
|
-
return (
|
|
1794
|
-
},
|
|
1794
|
+
var U;
|
|
1795
|
+
return (U = f.value) != null && U[_] && (typeof f.value[_].index != "number" || f.value[_].index === T) ? f.value[_].errors : null;
|
|
1796
|
+
}, Q = (_) => {
|
|
1795
1797
|
if (!(m || _.readOnly) && !o.parentPropertyName && !o.parentCollection && !v.value)
|
|
1796
1798
|
return v.value = !0, !0;
|
|
1797
1799
|
};
|
|
1798
1800
|
return (_, T) => {
|
|
1799
|
-
const
|
|
1801
|
+
const U = te("clickable"), Z = te("focus");
|
|
1800
1802
|
return t(), l("form", {
|
|
1801
1803
|
class: "form",
|
|
1802
|
-
style:
|
|
1804
|
+
style: ke(`row-gap: ${e(M) ? ".8rem" : "var(--form-internal-gap, 1.6rem);"};`)
|
|
1803
1805
|
}, [
|
|
1804
1806
|
_.$slots.header && !e(M) ? (t(), l("header", To, [
|
|
1805
1807
|
I(_.$slots, "header", {}, void 0, !0)
|
|
1806
1808
|
])) : g("", !0),
|
|
1807
1809
|
I(_.$slots, "default", {}, void 0, !0),
|
|
1808
1810
|
B("fieldset", jo, [
|
|
1809
|
-
(t(!0), l(
|
|
1810
|
-
var re, j, se,
|
|
1811
|
+
(t(!0), l(P, null, D(e(oe), ([S, R]) => {
|
|
1812
|
+
var re, j, se, ye, he, Ze, Pe, Ne, xe, et, tt, nt, ot, at;
|
|
1811
1813
|
return t(), l("div", {
|
|
1812
1814
|
key: `field-${S}`,
|
|
1813
|
-
style:
|
|
1814
|
-
class:
|
|
1815
|
+
style: ke(ne(S, R)),
|
|
1816
|
+
class: Y({
|
|
1815
1817
|
form__field: !0,
|
|
1816
1818
|
"form__field--form": "properties" in R
|
|
1817
1819
|
})
|
|
1818
1820
|
}, [
|
|
1819
|
-
(!("type" in R) || R.type !== "boolean" || _.searchOnly) && !R.noLabel && !e(E) && !e(
|
|
1821
|
+
(!("type" in R) || R.type !== "boolean" || _.searchOnly) && !R.noLabel && !e(E) && !e(X) ? (t(), l("label", Ro, [
|
|
1820
1822
|
B("div", {
|
|
1821
|
-
class:
|
|
1823
|
+
class: Y({
|
|
1822
1824
|
"form__field-label": !0,
|
|
1823
1825
|
"form__field-label--section": "items" in R ? "properties" in R.items : "properties" in R,
|
|
1824
|
-
"form__field-required-hint": _.highlightRequired && !e(m) && !_.searchOnly && (!
|
|
1826
|
+
"form__field-required-hint": _.highlightRequired && !e(m) && !_.searchOnly && (!le.value || e(dt)(S, le.value, _.modelValue))
|
|
1825
1827
|
})
|
|
1826
1828
|
}, C(R.description || e(q)(S)), 3),
|
|
1827
1829
|
R.hint ? (t(), l("div", {
|
|
@@ -1837,7 +1839,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1837
1839
|
property: R,
|
|
1838
1840
|
propertyName: S,
|
|
1839
1841
|
modelValue: _.modelValue
|
|
1840
|
-
}), void 0, !0) : (se = (j = (re = _.layout) == null ? void 0 : re.fields) == null ? void 0 : j[S]) != null && se.component && e(i)[_.layout.fields[S].component.name] ? (t(), V(
|
|
1842
|
+
}), void 0, !0) : (se = (j = (re = _.layout) == null ? void 0 : re.fields) == null ? void 0 : j[S]) != null && se.component && e(i)[_.layout.fields[S].component.name] ? (t(), V(ge(e(i)[_.layout.fields[S].component.name]), z({
|
|
1841
1843
|
key: 2,
|
|
1842
1844
|
modelValue: _.modelValue[S],
|
|
1843
1845
|
"onUpdate:modelValue": (x) => _.modelValue[S] = x,
|
|
@@ -1846,7 +1848,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1846
1848
|
readOnly: e(m),
|
|
1847
1849
|
property: R,
|
|
1848
1850
|
propertyName: S,
|
|
1849
|
-
required: !_.searchOnly && (!
|
|
1851
|
+
required: !_.searchOnly && (!le.value || e(dt)(S, le.value, _.modelValue)),
|
|
1850
1852
|
..._.layout.fields[S].component.props || {}
|
|
1851
1853
|
}, {
|
|
1852
1854
|
onInput: (x) => a("input", S),
|
|
@@ -1885,7 +1887,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1885
1887
|
_.modelValue[S] = x;
|
|
1886
1888
|
}
|
|
1887
1889
|
}), {
|
|
1888
|
-
default:
|
|
1890
|
+
default: b(() => [
|
|
1889
1891
|
B("option", zo, C(e(q)("yes")), 1),
|
|
1890
1892
|
B("option", Fo, C(e(q)("no")), 1)
|
|
1891
1893
|
]),
|
|
@@ -1897,38 +1899,38 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1897
1899
|
small: "",
|
|
1898
1900
|
variant: "alt",
|
|
1899
1901
|
icon: "plus",
|
|
1900
|
-
disabled: !("inline" in R.items && R.items.inline) && (((
|
|
1902
|
+
disabled: !("inline" in R.items && R.items.inline) && (((ye = _.modelValue[S]) == null ? void 0 : ye.length) >= R.maxItems || fe((Ze = _.modelValue[S]) == null ? void 0 : Ze[((he = _.modelValue[S]) == null ? void 0 : he.length) - 1])),
|
|
1901
1903
|
onClick: Re((x) => {
|
|
1902
1904
|
_.modelValue[S] || (_.modelValue[S] = []), e(So)(_.modelValue[S], R, e(n));
|
|
1903
1905
|
}, ["prevent"])
|
|
1904
1906
|
}, {
|
|
1905
|
-
default:
|
|
1906
|
-
|
|
1907
|
+
default: b(() => [
|
|
1908
|
+
W(C(e(q)("action.add", { capitalize: !0 })), 1)
|
|
1907
1909
|
]),
|
|
1908
1910
|
_: 2
|
|
1909
1911
|
}, 1032, ["disabled", "onClick"])
|
|
1910
1912
|
])),
|
|
1911
1913
|
((Pe = _.modelValue[S]) == null ? void 0 : Pe.length) > 0 ? (t(), l("div", Ho, [
|
|
1912
|
-
(t(!0), l(
|
|
1914
|
+
(t(!0), l(P, null, D(_.modelValue[S], (x, we) => {
|
|
1913
1915
|
var lt, st, it, rt, ut, ct;
|
|
1914
1916
|
return t(), l("div", {
|
|
1915
1917
|
key: `rep-${S}-${e(Ht)(x, we)}`,
|
|
1916
1918
|
class: "form__array-item"
|
|
1917
1919
|
}, [
|
|
1918
|
-
e(m) ? g("", !0) :
|
|
1920
|
+
e(m) ? g("", !0) : N((t(), V(K, {
|
|
1919
1921
|
key: 0,
|
|
1920
1922
|
icon: "trash",
|
|
1921
1923
|
class: "form__array-remove",
|
|
1922
1924
|
onClick: Re((Te) => e(wo)(_.modelValue[S], we), ["prevent"])
|
|
1923
1925
|
}, {
|
|
1924
|
-
default:
|
|
1925
|
-
|
|
1926
|
+
default: b(() => [
|
|
1927
|
+
W(C(e(q)("action.remove", { capitalize: !0 })), 1)
|
|
1926
1928
|
]),
|
|
1927
1929
|
_: 2
|
|
1928
1930
|
}, 1032, ["onClick"])), [
|
|
1929
|
-
[
|
|
1931
|
+
[U]
|
|
1930
1932
|
]),
|
|
1931
|
-
(t(), V(
|
|
1933
|
+
(t(), V(ge(e(_t)(R, e(A))), z({
|
|
1932
1934
|
modelValue: _.modelValue[S][we],
|
|
1933
1935
|
"onUpdate:modelValue": (Te) => _.modelValue[S][we] = Te,
|
|
1934
1936
|
ref_for: !0
|
|
@@ -1948,7 +1950,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1948
1950
|
]);
|
|
1949
1951
|
}), 128))
|
|
1950
1952
|
])) : g("", !0)
|
|
1951
|
-
])) : _.modelValue ?
|
|
1953
|
+
])) : _.modelValue ? N((t(), V(ge(e(_t)(R, e(A))), z({
|
|
1952
1954
|
key: 6,
|
|
1953
1955
|
modelValue: _.modelValue[S],
|
|
1954
1956
|
"onUpdate:modelValue": (x) => _.modelValue[S] = x,
|
|
@@ -1967,7 +1969,7 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1967
1969
|
onChange: T[4] || (T[4] = (x) => a("change", x)),
|
|
1968
1970
|
onClipboardCopy: T[5] || (T[5] = (x) => a("clipboardCopy", x))
|
|
1969
1971
|
}), null, 16, ["modelValue", "onUpdate:modelValue", "onInput"])), [
|
|
1970
|
-
[
|
|
1972
|
+
[Z, Q(R)]
|
|
1971
1973
|
]) : g("", !0),
|
|
1972
1974
|
(at = f.value) != null && at[S] ? (t(), l("div", Do, [
|
|
1973
1975
|
f.value[S].type ? (t(), l("span", Qo, C(e(q)(`validation_error.${f.value[S].type}`)), 1)) : g("", !0),
|
|
@@ -1986,11 +1988,11 @@ const Bo = /* @__PURE__ */ Q(Io, [["__scopeId", "data-v-b5466d6b"]]), _t = (p, r
|
|
|
1986
1988
|
};
|
|
1987
1989
|
}
|
|
1988
1990
|
});
|
|
1989
|
-
const De = /* @__PURE__ */
|
|
1991
|
+
const De = /* @__PURE__ */ G(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @__PURE__ */ F({
|
|
1990
1992
|
__name: "aeria-filter-panel",
|
|
1991
1993
|
emits: ["update:modelValue"],
|
|
1992
1994
|
setup(p, { emit: r }) {
|
|
1993
|
-
const n = r, o = He(), a = Be(), c = e(
|
|
1995
|
+
const n = r, o = He(), a = Be(), c = e(ve(ze)), u = () => {
|
|
1994
1996
|
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
1997
|
const v = a.currentRoute.query;
|
|
1996
1998
|
for (const s of Object.keys(v))
|
|
@@ -2008,7 +2010,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2008
2010
|
onClose: d[2] || (d[2] = (v) => n("update:modelValue", !1)),
|
|
2009
2011
|
onOverlayClick: d[3] || (d[3] = (v) => n("update:modelValue", !1))
|
|
2010
2012
|
}, {
|
|
2011
|
-
footer:
|
|
2013
|
+
footer: b(() => [
|
|
2012
2014
|
e(o).filtersCount > 0 ? (t(), V(pe, {
|
|
2013
2015
|
key: 0,
|
|
2014
2016
|
variant: "transparent",
|
|
@@ -2016,11 +2018,11 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2016
2018
|
e(o).$actions.clearFilters(), u(), n("update:modelValue", !1);
|
|
2017
2019
|
})
|
|
2018
2020
|
}, {
|
|
2019
|
-
default:
|
|
2020
|
-
|
|
2021
|
+
default: b(() => [
|
|
2022
|
+
W(C(m.t("action.clear", { capitalize: !0 })) + " ", 1),
|
|
2021
2023
|
L(Ve, null, {
|
|
2022
|
-
default:
|
|
2023
|
-
|
|
2024
|
+
default: b(() => [
|
|
2025
|
+
W(C(e(o).filtersCount), 1)
|
|
2024
2026
|
]),
|
|
2025
2027
|
_: 1
|
|
2026
2028
|
})
|
|
@@ -2033,13 +2035,13 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2033
2035
|
disabled: !e(o).hasActiveFilters,
|
|
2034
2036
|
onClick: u
|
|
2035
2037
|
}, {
|
|
2036
|
-
default:
|
|
2037
|
-
|
|
2038
|
+
default: b(() => [
|
|
2039
|
+
W(C(m.t("action.filter", { capitalize: !0 })), 1)
|
|
2038
2040
|
]),
|
|
2039
2041
|
_: 1
|
|
2040
2042
|
}, 8, ["disabled"])
|
|
2041
2043
|
]),
|
|
2042
|
-
default:
|
|
2044
|
+
default: b(() => [
|
|
2043
2045
|
L(De, z({
|
|
2044
2046
|
modelValue: e(o).filters,
|
|
2045
2047
|
"onUpdate:modelValue": d[0] || (d[0] = (v) => e(o).filters = v)
|
|
@@ -2072,7 +2074,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2072
2074
|
Ye(() => {
|
|
2073
2075
|
n.modelValue && u.$actions.setItem(n.modelValue);
|
|
2074
2076
|
});
|
|
2075
|
-
const m =
|
|
2077
|
+
const m = J(() => n.form ? u.$actions.useProperties(n.form) : u.description.form ? u.$actions.useProperties(u.description.form) : u.properties), d = async () => {
|
|
2076
2078
|
const { error: $, result: f } = await u.$actions.deepInsert();
|
|
2077
2079
|
if ($) {
|
|
2078
2080
|
if ("code" in $)
|
|
@@ -2104,17 +2106,17 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2104
2106
|
icon: "info",
|
|
2105
2107
|
text: v("copied_to_clipboard")
|
|
2106
2108
|
});
|
|
2107
|
-
return
|
|
2109
|
+
return ce(() => u.item._id, ($) => {
|
|
2108
2110
|
$ === null && o("update:visible", !1);
|
|
2109
2111
|
}), ($, f) => {
|
|
2110
|
-
const A =
|
|
2112
|
+
const A = te("clickable");
|
|
2111
2113
|
return t(), V(Se, z({
|
|
2112
2114
|
modelValue: $.visible,
|
|
2113
2115
|
loading: e(u).loading.get,
|
|
2114
2116
|
float: $.float,
|
|
2115
2117
|
fixedRight: $.fixedRight
|
|
2116
2118
|
}, { onOverlayClick: s }), _e({
|
|
2117
|
-
extra:
|
|
2119
|
+
extra: b(() => [
|
|
2118
2120
|
$.individualActions ? (t(), V(Ie, z({ key: 0 }, {
|
|
2119
2121
|
subject: e(u).item,
|
|
2120
2122
|
actions: $.individualActions.filter(({ action: i }) => i !== "spawnEdit"),
|
|
@@ -2122,10 +2124,10 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2122
2124
|
}, {
|
|
2123
2125
|
onActionClick: f[2] || (f[2] = (i) => o("update:visible", !1))
|
|
2124
2126
|
}), {
|
|
2125
|
-
default:
|
|
2127
|
+
default: b(({
|
|
2126
2128
|
visible: i
|
|
2127
2129
|
}) => [
|
|
2128
|
-
e(u).item._id ?
|
|
2130
|
+
e(u).item._id ? N((t(), V(K, {
|
|
2129
2131
|
key: 0,
|
|
2130
2132
|
reactive: "",
|
|
2131
2133
|
active: i,
|
|
@@ -2137,7 +2139,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2137
2139
|
_: 1
|
|
2138
2140
|
}, 16)) : g("", !0)
|
|
2139
2141
|
]),
|
|
2140
|
-
default:
|
|
2142
|
+
default: b(() => [
|
|
2141
2143
|
L(De, z({
|
|
2142
2144
|
modelValue: e(u).item,
|
|
2143
2145
|
"onUpdate:modelValue": f[0] || (f[0] = (i) => e(u).item = i)
|
|
@@ -2155,7 +2157,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2155
2157
|
}), _e({ _: 2 }, [
|
|
2156
2158
|
D(Object.keys($.$slots).filter((i) => i.startsWith("field-")), (i) => ({
|
|
2157
2159
|
name: i,
|
|
2158
|
-
fn:
|
|
2160
|
+
fn: b((M) => [
|
|
2159
2161
|
I($.$slots, i, de(Ce(M)))
|
|
2160
2162
|
])
|
|
2161
2163
|
}))
|
|
@@ -2165,21 +2167,21 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2165
2167
|
}, [
|
|
2166
2168
|
$.$slots.header ? {
|
|
2167
2169
|
name: "header",
|
|
2168
|
-
fn:
|
|
2170
|
+
fn: b(() => [
|
|
2169
2171
|
I($.$slots, "header")
|
|
2170
2172
|
]),
|
|
2171
2173
|
key: "0"
|
|
2172
2174
|
} : void 0,
|
|
2173
2175
|
$.readOnly ? void 0 : {
|
|
2174
2176
|
name: "footer",
|
|
2175
|
-
fn:
|
|
2177
|
+
fn: b(() => [
|
|
2176
2178
|
$.float || $.fixedRight ? (t(), V(pe, {
|
|
2177
2179
|
key: 0,
|
|
2178
2180
|
variant: "transparent",
|
|
2179
2181
|
onClick: s
|
|
2180
2182
|
}, {
|
|
2181
|
-
default:
|
|
2182
|
-
|
|
2183
|
+
default: b(() => [
|
|
2184
|
+
W(C(e(v)("action.cancel", { capitalize: !0 })), 1)
|
|
2183
2185
|
]),
|
|
2184
2186
|
_: 1
|
|
2185
2187
|
})) : g("", !0),
|
|
@@ -2189,8 +2191,8 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2189
2191
|
loading: e(u).loading.insert,
|
|
2190
2192
|
onClick: d
|
|
2191
2193
|
}, {
|
|
2192
|
-
default:
|
|
2193
|
-
|
|
2194
|
+
default: b(() => [
|
|
2195
|
+
W(C(e(v)("action.insert", { capitalize: !0 })), 1)
|
|
2194
2196
|
]),
|
|
2195
2197
|
_: 1
|
|
2196
2198
|
}, 8, ["disabled", "loading"])
|
|
@@ -2200,7 +2202,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2200
2202
|
]), 1040);
|
|
2201
2203
|
};
|
|
2202
2204
|
}
|
|
2203
|
-
}),
|
|
2205
|
+
}), ht = (p, r) => {
|
|
2204
2206
|
if (r) {
|
|
2205
2207
|
if (!p) {
|
|
2206
2208
|
r.filtersPreset = {}, r.preferredTableProperties = [], r.pagination.offset = 0;
|
|
@@ -2212,11 +2214,11 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2212
2214
|
persistInQuery: !0
|
|
2213
2215
|
}) => {
|
|
2214
2216
|
const o = Be().currentRoute;
|
|
2215
|
-
return
|
|
2217
|
+
return ce(() => o.value.query.section, (a) => {
|
|
2216
2218
|
if (p) {
|
|
2217
2219
|
if (p.description.filtersPresets) {
|
|
2218
2220
|
const c = a || Object.keys(p.description.filtersPresets)[0];
|
|
2219
|
-
|
|
2221
|
+
ht(p.description.filtersPresets[c], p);
|
|
2220
2222
|
}
|
|
2221
2223
|
if (r.persistInQuery) {
|
|
2222
2224
|
const c = o.value.query;
|
|
@@ -2241,7 +2243,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2241
2243
|
}, ua = {
|
|
2242
2244
|
key: 1,
|
|
2243
2245
|
class: "table__cell-container"
|
|
2244
|
-
}, ca = { class: "table__cell-grid" }, da = { key: 0 }, pa = { key: 1 }, _a = { key: 0 }, ma = ["href"], fa = { key: 3 }, va = { key: 1 }, ya = { key: 2 },
|
|
2246
|
+
}, ca = { class: "table__cell-grid" }, da = { key: 0 }, pa = { key: 1 }, _a = { key: 0 }, ma = ["href"], fa = { key: 3 }, va = { key: 1 }, ya = { key: 2 }, ba = { key: 0 }, ha = { key: 1 }, ga = { key: 2 }, $a = {
|
|
2245
2247
|
key: 1,
|
|
2246
2248
|
class: "no-print"
|
|
2247
2249
|
}, ka = { class: "table__cell-actions" }, Va = {
|
|
@@ -2259,16 +2261,16 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2259
2261
|
},
|
|
2260
2262
|
emits: ["itemClick"],
|
|
2261
2263
|
setup(p, { emit: r }) {
|
|
2262
|
-
const n = p, o = r, a = Le(), c = n.collection || Me(), u = c ? ie(typeof c == "string" ? c : c.value) : null, m =
|
|
2264
|
+
const n = p, o = r, a = Le(), c = n.collection || Me(), u = c ? ie(typeof c == "string" ? c : c.value) : null, m = J({
|
|
2263
2265
|
get: () => u == null ? void 0 : u.selected,
|
|
2264
2266
|
set: (f) => u == null ? void 0 : u.$actions.selectManyItems(f, !0)
|
|
2265
|
-
}), d =
|
|
2267
|
+
}), d = J(() => n.columns ? Object.keys(n.columns).length + Number(n.checkbox) : 0), v = (f, A) => f.button ? typeof f.button == "object" ? Ee(A, f.button).satisfied : f.button : !1, s = (f) => {
|
|
2266
2268
|
var i;
|
|
2267
2269
|
const A = (i = n.layout) == null ? void 0 : i.actions;
|
|
2268
2270
|
return !a.value.xl || !A || !n.actions ? [] : n.actions.filter((M) => {
|
|
2269
2271
|
if (M.roles) {
|
|
2270
|
-
const
|
|
2271
|
-
if (!Ge(M.roles,
|
|
2272
|
+
const X = ie("user");
|
|
2273
|
+
if (!Ge(M.roles, X.currentUser.roles))
|
|
2272
2274
|
return !1;
|
|
2273
2275
|
}
|
|
2274
2276
|
const E = A[M.action];
|
|
@@ -2282,8 +2284,8 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2282
2284
|
return !a.value.xl || !A ? n.actions : n.actions.filter((M) => {
|
|
2283
2285
|
const E = A[M.action];
|
|
2284
2286
|
if (M.roles) {
|
|
2285
|
-
const
|
|
2286
|
-
if (!Ge(M.roles,
|
|
2287
|
+
const X = ie("user");
|
|
2288
|
+
if (!Ge(M.roles, X.currentUser.roles))
|
|
2287
2289
|
return !1;
|
|
2288
2290
|
}
|
|
2289
2291
|
return E ? E.if ? Ee(
|
|
@@ -2292,16 +2294,16 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2292
2294
|
).satisfied : !v(E, f) : !0;
|
|
2293
2295
|
});
|
|
2294
2296
|
}, $ = (f, A) => {
|
|
2295
|
-
var E,
|
|
2296
|
-
const i = [], M = (
|
|
2297
|
+
var E, X;
|
|
2298
|
+
const i = [], M = (X = (E = n.layout) == null ? void 0 : E.actions) == null ? void 0 : X[A.action];
|
|
2297
2299
|
return M != null && M.if && (Ee(
|
|
2298
2300
|
f,
|
|
2299
2301
|
M.if
|
|
2300
2302
|
).satisfied || i.push("display: none;")), i.join("");
|
|
2301
2303
|
};
|
|
2302
2304
|
return (f, A) => {
|
|
2303
|
-
var M, E,
|
|
2304
|
-
const i =
|
|
2305
|
+
var M, E, X;
|
|
2306
|
+
const i = te("clickable");
|
|
2305
2307
|
return d.value > 0 || f.$slots.thead ? (t(), l("table", Zo, [
|
|
2306
2308
|
f.$slots.thead ? (t(), l("thead", Po, [
|
|
2307
2309
|
I(f.$slots, "thead", {}, void 0, !0)
|
|
@@ -2311,108 +2313,109 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2311
2313
|
B("input", {
|
|
2312
2314
|
type: "checkbox",
|
|
2313
2315
|
checked: e(u).selected.length > 0 && e(u).selected.length === e(u).itemsCount,
|
|
2314
|
-
onChange: A[0] || (A[0] = (
|
|
2316
|
+
onChange: A[0] || (A[0] = (h) => e(u).$actions.selectAllItems(h.target.checked))
|
|
2315
2317
|
}, null, 40, ea)
|
|
2316
2318
|
])) : g("", !0),
|
|
2317
|
-
(t(!0), l(
|
|
2319
|
+
(t(!0), l(P, null, D(Object.entries(f.columns), ([h, H], oe) => (t(), l("th", {
|
|
2318
2320
|
key: `header-${oe}`,
|
|
2319
2321
|
class: "table__header"
|
|
2320
|
-
}, C(
|
|
2322
|
+
}, C(H.description || e(q)(h)), 1))), 128)),
|
|
2321
2323
|
(M = f.actions) != null && M.length ? (t(), l("th", ta)) : g("", !0)
|
|
2322
2324
|
])
|
|
2323
2325
|
])),
|
|
2324
2326
|
f.$slots.tbody ? (t(), l("tbody", na, [
|
|
2325
2327
|
I(f.$slots, "tbody", {}, void 0, !0)
|
|
2326
2328
|
])) : (t(), l("tbody", oa, [
|
|
2327
|
-
(t(!0), l(
|
|
2328
|
-
var
|
|
2329
|
+
(t(!0), l(P, null, D(f.rows, (h, H) => {
|
|
2330
|
+
var oe, ue;
|
|
2329
2331
|
return t(), l("tr", {
|
|
2330
|
-
key:
|
|
2331
|
-
onClick: (w) => o("itemClick",
|
|
2332
|
+
key: h._id,
|
|
2333
|
+
onClick: (w) => o("itemClick", h)
|
|
2332
2334
|
}, [
|
|
2333
2335
|
e(u) && f.checkbox && e(a).md ? (t(), l("td", la, [
|
|
2334
|
-
|
|
2336
|
+
N(B("input", {
|
|
2335
2337
|
"onUpdate:modelValue": A[1] || (A[1] = (w) => m.value = w),
|
|
2336
2338
|
type: "checkbox",
|
|
2337
|
-
value:
|
|
2339
|
+
value: h._id
|
|
2338
2340
|
}, null, 8, sa), [
|
|
2339
2341
|
[kt, m.value]
|
|
2340
2342
|
])
|
|
2341
2343
|
])) : g("", !0),
|
|
2342
|
-
(t(!0), l(
|
|
2343
|
-
var
|
|
2344
|
+
(t(!0), l(P, null, D(Object.entries(f.columns), ([w, ne], fe) => {
|
|
2345
|
+
var le, O, k;
|
|
2344
2346
|
return t(), l("td", {
|
|
2345
|
-
key: `column-${
|
|
2347
|
+
key: `column-${h._id}-${fe}`
|
|
2346
2348
|
}, [
|
|
2347
|
-
B("div", ia, C(
|
|
2349
|
+
B("div", ia, C(ne.description || e(q)(w)), 1),
|
|
2348
2350
|
`row-${w}` in f.$slots ? (t(), l("div", ra, [
|
|
2349
2351
|
I(f.$slots, `row-${w}`, z({ ref_for: !0 }, {
|
|
2350
2352
|
store: e(u),
|
|
2351
2353
|
column: w,
|
|
2352
|
-
property:
|
|
2353
|
-
row:
|
|
2354
|
+
property: ne,
|
|
2355
|
+
row: h,
|
|
2356
|
+
rowIndex: H
|
|
2354
2357
|
}), void 0, !0)
|
|
2355
2358
|
])) : (t(), l("div", ua, [
|
|
2356
2359
|
B("div", ca, [
|
|
2357
|
-
"type" in
|
|
2358
|
-
|
|
2360
|
+
"type" in ne && ne.type === "boolean" ? (t(), l("div", da, [
|
|
2361
|
+
h[w] ? (t(), V(K, {
|
|
2359
2362
|
key: 0,
|
|
2360
2363
|
icon: "check",
|
|
2361
2364
|
"icon-classes": "aeria-blueish"
|
|
2362
2365
|
}, {
|
|
2363
|
-
default:
|
|
2364
|
-
|
|
2366
|
+
default: b(() => [
|
|
2367
|
+
W(C(e(q)("yes")), 1)
|
|
2365
2368
|
]),
|
|
2366
2369
|
_: 1
|
|
2367
|
-
})) : (t(), V(
|
|
2370
|
+
})) : (t(), V(K, {
|
|
2368
2371
|
key: 1,
|
|
2369
2372
|
icon: "x",
|
|
2370
2373
|
"icon-classes": "aeria-redish"
|
|
2371
2374
|
}, {
|
|
2372
|
-
default:
|
|
2373
|
-
|
|
2375
|
+
default: b(() => [
|
|
2376
|
+
W(C(e(q)("no")), 1)
|
|
2374
2377
|
]),
|
|
2375
2378
|
_: 1
|
|
2376
2379
|
}))
|
|
2377
|
-
])) : ((
|
|
2378
|
-
|
|
2379
|
-
"items" in
|
|
2380
|
+
])) : ((le = e(me)(ne)) == null ? void 0 : le.$ref) === "file" ? (t(), l("div", pa, [
|
|
2381
|
+
h[w] ? (t(), l("div", _a, [
|
|
2382
|
+
"items" in ne && h[w][0] && /^image/.test(h[w][0].type) ? (t(), V(Ue, {
|
|
2380
2383
|
key: 0,
|
|
2381
|
-
modelValue:
|
|
2382
|
-
"onUpdate:modelValue": (
|
|
2384
|
+
modelValue: h[w][0].link,
|
|
2385
|
+
"onUpdate:modelValue": (Q) => h[w][0].link = Q,
|
|
2383
2386
|
expandable: "",
|
|
2384
|
-
meta:
|
|
2387
|
+
meta: h[w][0],
|
|
2385
2388
|
alt: "Row image",
|
|
2386
2389
|
class: "table__picture"
|
|
2387
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(
|
|
2390
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(h[w].type) ? (t(), V(Ue, {
|
|
2388
2391
|
key: 1,
|
|
2389
|
-
modelValue:
|
|
2390
|
-
"onUpdate:modelValue": (
|
|
2392
|
+
modelValue: h[w].link,
|
|
2393
|
+
"onUpdate:modelValue": (Q) => h[w].link = Q,
|
|
2391
2394
|
expandable: "",
|
|
2392
|
-
meta:
|
|
2395
|
+
meta: h[w],
|
|
2393
2396
|
alt: "Row image",
|
|
2394
2397
|
class: "table__picture"
|
|
2395
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) :
|
|
2398
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : h[w].link ? (t(), l("a", {
|
|
2396
2399
|
key: 2,
|
|
2397
|
-
href:
|
|
2400
|
+
href: h[w].link,
|
|
2398
2401
|
style: { "font-size": "10pt" }
|
|
2399
|
-
}, C(
|
|
2402
|
+
}, C(h[w].filename), 9, ma)) : (t(), l("div", fa, " - "))
|
|
2400
2403
|
])) : (t(), l("div", va, " - "))
|
|
2401
2404
|
])) : (t(), l("div", ya, [
|
|
2402
|
-
e(u) ? (t(), l("span",
|
|
2403
|
-
value:
|
|
2405
|
+
e(u) ? (t(), l("span", ba, C(e(u).$actions.formatValue({
|
|
2406
|
+
value: h[w],
|
|
2404
2407
|
key: w,
|
|
2405
|
-
property:
|
|
2406
|
-
})), 1)) : (t(), l("span",
|
|
2407
|
-
((
|
|
2408
|
-
(t(!0), l(
|
|
2409
|
-
key: `subvalue-${
|
|
2408
|
+
property: ne
|
|
2409
|
+
})), 1)) : (t(), l("span", ha, C(Array.isArray(h[w]) ? h[w].filter((Q) => !!Q).join(", ") : [void 0, null].includes(h[w]) ? "-" : h[w]), 1)),
|
|
2410
|
+
((k = (O = e(me)(ne)) == null ? void 0 : O.indexes) == null ? void 0 : k.length) > 1 ? (t(), l("div", ga, [
|
|
2411
|
+
(t(!0), l(P, null, D(e(me)(ne).indexes.slice(1, 2), (Q, ae) => (t(), l("div", {
|
|
2412
|
+
key: `subvalue-${ae}`,
|
|
2410
2413
|
class: "table__cell-subvalue"
|
|
2411
2414
|
}, C(e(u).$actions.formatValue({
|
|
2412
|
-
value:
|
|
2415
|
+
value: h[w],
|
|
2413
2416
|
key: w,
|
|
2414
|
-
property:
|
|
2415
|
-
index:
|
|
2417
|
+
property: ne,
|
|
2418
|
+
index: Q
|
|
2416
2419
|
})), 1))), 128))
|
|
2417
2420
|
])) : g("", !0)
|
|
2418
2421
|
]))
|
|
@@ -2420,32 +2423,32 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2420
2423
|
]))
|
|
2421
2424
|
]);
|
|
2422
2425
|
}), 128)),
|
|
2423
|
-
(
|
|
2426
|
+
(oe = f.actions) != null && oe.length && e(a).md ? (t(), l("td", $a, [
|
|
2424
2427
|
B("div", ka, [
|
|
2425
|
-
(t(!0), l(
|
|
2428
|
+
(t(!0), l(P, null, D(s(h), (w) => (t(), V(pe, {
|
|
2426
2429
|
key: `action-${w.action}`,
|
|
2427
2430
|
small: "",
|
|
2428
2431
|
variant: "alt",
|
|
2429
2432
|
icon: w.icon,
|
|
2430
|
-
style:
|
|
2431
|
-
onClick: (
|
|
2433
|
+
style: ke($(h, w)),
|
|
2434
|
+
onClick: (ne) => w.click(h)
|
|
2432
2435
|
}, {
|
|
2433
|
-
default:
|
|
2434
|
-
|
|
2436
|
+
default: b(() => [
|
|
2437
|
+
W(C(e(q)(w.label)), 1)
|
|
2435
2438
|
]),
|
|
2436
2439
|
_: 2
|
|
2437
2440
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2438
|
-
y(
|
|
2441
|
+
y(h).length > 0 ? (t(), V(Ie, z({
|
|
2439
2442
|
key: 0,
|
|
2440
2443
|
ref_for: !0
|
|
2441
2444
|
}, {
|
|
2442
|
-
subject:
|
|
2443
|
-
actions: y(
|
|
2445
|
+
subject: h,
|
|
2446
|
+
actions: y(h)
|
|
2444
2447
|
}), {
|
|
2445
|
-
default:
|
|
2448
|
+
default: b(({
|
|
2446
2449
|
visible: w
|
|
2447
2450
|
}) => [
|
|
2448
|
-
|
|
2451
|
+
N(L(K, {
|
|
2449
2452
|
reactive: "",
|
|
2450
2453
|
active: w,
|
|
2451
2454
|
icon: "dots-three"
|
|
@@ -2456,37 +2459,37 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2456
2459
|
_: 2
|
|
2457
2460
|
}, 1040)) : g("", !0)
|
|
2458
2461
|
])
|
|
2459
|
-
])) : (
|
|
2462
|
+
])) : (ue = f.actions) != null && ue.length ? (t(), l("td", Va, [
|
|
2460
2463
|
B("div", {
|
|
2461
2464
|
class: "table__mobile-actions-grid",
|
|
2462
|
-
style:
|
|
2465
|
+
style: ke(`grid-template-columns: repeat(${s(h).length + (y(h).length ? 1 : 0)}, 1fr);`)
|
|
2463
2466
|
}, [
|
|
2464
|
-
(t(!0), l(
|
|
2467
|
+
(t(!0), l(P, null, D(s(h), (w) => (t(), V(be, {
|
|
2465
2468
|
key: `action-${w.action}`,
|
|
2466
2469
|
class: "table__mobile-actions-button",
|
|
2467
|
-
onClick: (
|
|
2470
|
+
onClick: (ne) => w.click(h)
|
|
2468
2471
|
}, {
|
|
2469
|
-
default:
|
|
2470
|
-
L(
|
|
2472
|
+
default: b(() => [
|
|
2473
|
+
L(K, {
|
|
2471
2474
|
icon: w.icon || "gear"
|
|
2472
2475
|
}, {
|
|
2473
|
-
default:
|
|
2474
|
-
|
|
2476
|
+
default: b(() => [
|
|
2477
|
+
W(C(e(q)(w.label)), 1)
|
|
2475
2478
|
]),
|
|
2476
2479
|
_: 2
|
|
2477
2480
|
}, 1032, ["icon"])
|
|
2478
2481
|
]),
|
|
2479
2482
|
_: 2
|
|
2480
2483
|
}, 1032, ["onClick"]))), 128)),
|
|
2481
|
-
y(
|
|
2484
|
+
y(h).length > 0 ? (t(), V(Ie, z({
|
|
2482
2485
|
key: 0,
|
|
2483
2486
|
ref_for: !0
|
|
2484
2487
|
}, {
|
|
2485
|
-
subject:
|
|
2486
|
-
actions: y(
|
|
2488
|
+
subject: h,
|
|
2489
|
+
actions: y(h)
|
|
2487
2490
|
}), {
|
|
2488
|
-
default:
|
|
2489
|
-
L(
|
|
2491
|
+
default: b(() => [
|
|
2492
|
+
L(K, {
|
|
2490
2493
|
icon: "dots-three",
|
|
2491
2494
|
class: "table__mobile-actions-button"
|
|
2492
2495
|
})
|
|
@@ -2495,14 +2498,14 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2495
2498
|
}, 1040)) : g("", !0)
|
|
2496
2499
|
], 4),
|
|
2497
2500
|
B("div", {
|
|
2498
|
-
id: `dropdown-${
|
|
2501
|
+
id: `dropdown-${h._id}`
|
|
2499
2502
|
}, null, 8, Ca)
|
|
2500
2503
|
])) : g("", !0)
|
|
2501
2504
|
], 8, aa);
|
|
2502
2505
|
}), 128))
|
|
2503
2506
|
])),
|
|
2504
2507
|
B("tfoot", null, [
|
|
2505
|
-
f.$slots.tfoot ? I(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((
|
|
2508
|
+
f.$slots.tfoot ? I(f.$slots, "tfoot", { key: 0 }, void 0, !0) : f.columns && !((E = f.rows) != null && E.length) && !((X = e(u)) != null && X.loading.getAll) ? (t(), l("tr", Oa, [
|
|
2506
2509
|
B("td", {
|
|
2507
2510
|
colspan: d.value + 1
|
|
2508
2511
|
}, [
|
|
@@ -2514,7 +2517,7 @@ const De = /* @__PURE__ */ Q(Yo, [["__scopeId", "data-v-e9376cc1"]]), Ko = /* @_
|
|
|
2514
2517
|
};
|
|
2515
2518
|
}
|
|
2516
2519
|
});
|
|
2517
|
-
const Sa = /* @__PURE__ */
|
|
2520
|
+
const Sa = /* @__PURE__ */ G(Ba, [["__scopeId", "data-v-e01a149a"]]), wa = /* @__PURE__ */ F({
|
|
2518
2521
|
__name: "aeria-tabular",
|
|
2519
2522
|
props: {
|
|
2520
2523
|
individualActions: {},
|
|
@@ -2522,7 +2525,7 @@ const Sa = /* @__PURE__ */ Q(Ba, [["__scopeId", "data-v-660daba6"]]), wa = /* @_
|
|
|
2522
2525
|
componentProps: {}
|
|
2523
2526
|
},
|
|
2524
2527
|
setup(p) {
|
|
2525
|
-
const r = p, n = je(), o = Me(), a =
|
|
2528
|
+
const r = p, n = je(), o = Me(), a = J(() => {
|
|
2526
2529
|
const c = {
|
|
2527
2530
|
collection: o,
|
|
2528
2531
|
checkbox: n.hasSelectionActions,
|
|
@@ -2540,7 +2543,7 @@ const Sa = /* @__PURE__ */ Q(Ba, [["__scopeId", "data-v-660daba6"]]), wa = /* @_
|
|
|
2540
2543
|
}), _e({ _: 2 }, [
|
|
2541
2544
|
D(Object.keys(c.$slots).filter((m) => !["inner"].includes(m)), (m) => ({
|
|
2542
2545
|
name: m,
|
|
2543
|
-
fn:
|
|
2546
|
+
fn: b((d) => [
|
|
2544
2547
|
I(c.$slots, m, de(Ce(d)))
|
|
2545
2548
|
])
|
|
2546
2549
|
}))
|
|
@@ -2554,7 +2557,7 @@ const Sa = /* @__PURE__ */ Q(Ba, [["__scopeId", "data-v-660daba6"]]), wa = /* @_
|
|
|
2554
2557
|
},
|
|
2555
2558
|
setup(p) {
|
|
2556
2559
|
return (r, n) => (t(), l("div", {
|
|
2557
|
-
class:
|
|
2560
|
+
class: Y([
|
|
2558
2561
|
"grid",
|
|
2559
2562
|
{ "grid--list": r.list }
|
|
2560
2563
|
])
|
|
@@ -2563,7 +2566,7 @@ const Sa = /* @__PURE__ */ Q(Ba, [["__scopeId", "data-v-660daba6"]]), wa = /* @_
|
|
|
2563
2566
|
], 2));
|
|
2564
2567
|
}
|
|
2565
2568
|
});
|
|
2566
|
-
const ja = /* @__PURE__ */
|
|
2569
|
+
const ja = /* @__PURE__ */ G(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key: 0 }, qa = {
|
|
2567
2570
|
key: 1,
|
|
2568
2571
|
class: "card__information"
|
|
2569
2572
|
}, La = {
|
|
@@ -2580,25 +2583,25 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2580
2583
|
setup(p) {
|
|
2581
2584
|
const n = p.layoutOptions, o = je(), a = (c) => Array.isArray(c) ? c[0] : c;
|
|
2582
2585
|
return (c, u) => {
|
|
2583
|
-
const m =
|
|
2586
|
+
const m = te("clickable");
|
|
2584
2587
|
return t(), V(ja, {
|
|
2585
2588
|
list: c.componentName === "list"
|
|
2586
2589
|
}, {
|
|
2587
|
-
default:
|
|
2588
|
-
(t(!0), l(
|
|
2590
|
+
default: b(() => [
|
|
2591
|
+
(t(!0), l(P, null, D(e(o).items, (d) => (t(), V(sn, {
|
|
2589
2592
|
key: d._id,
|
|
2590
2593
|
inactive: !!(e(n).active && !d[e(n).active]),
|
|
2591
2594
|
horizontal: c.componentName === "list"
|
|
2592
2595
|
}, _e({
|
|
2593
|
-
footer:
|
|
2596
|
+
footer: b(() => [
|
|
2594
2597
|
e(n).title ? (t(), l("div", Ra, C(d[e(n).title]), 1)) : g("", !0),
|
|
2595
2598
|
Array.isArray(e(n).information) ? (t(), l("div", qa, [
|
|
2596
|
-
(t(!0), l(
|
|
2599
|
+
(t(!0), l(P, null, D(e(n).information, (v) => (t(), l("div", {
|
|
2597
2600
|
key: `info-${v}`
|
|
2598
2601
|
}, C(d[v]), 1))), 128))
|
|
2599
2602
|
])) : e(n).information ? (t(), l("div", La, C(d[e(n).information]), 1)) : g("", !0)
|
|
2600
2603
|
]),
|
|
2601
|
-
actions:
|
|
2604
|
+
actions: b(() => {
|
|
2602
2605
|
var v;
|
|
2603
2606
|
return [
|
|
2604
2607
|
(v = c.individualActions) != null && v.length ? (t(), V(Ie, z({
|
|
@@ -2608,10 +2611,10 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2608
2611
|
subject: d,
|
|
2609
2612
|
actions: c.individualActions
|
|
2610
2613
|
}), {
|
|
2611
|
-
default:
|
|
2614
|
+
default: b(({
|
|
2612
2615
|
visible: s
|
|
2613
2616
|
}) => [
|
|
2614
|
-
|
|
2617
|
+
N(L(K, {
|
|
2615
2618
|
reactive: "",
|
|
2616
2619
|
active: s,
|
|
2617
2620
|
icon: "dots-three-vertical"
|
|
@@ -2623,7 +2626,7 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2623
2626
|
}, 1040)) : g("", !0)
|
|
2624
2627
|
];
|
|
2625
2628
|
}),
|
|
2626
|
-
default:
|
|
2629
|
+
default: b(() => {
|
|
2627
2630
|
var v, s;
|
|
2628
2631
|
return [
|
|
2629
2632
|
L(Ue, z({
|
|
@@ -2641,13 +2644,13 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2641
2644
|
}, [
|
|
2642
2645
|
e(n).badge && Array.isArray(d[e(n).badge]) ? {
|
|
2643
2646
|
name: "badge",
|
|
2644
|
-
fn:
|
|
2645
|
-
(t(!0), l(
|
|
2647
|
+
fn: b(() => [
|
|
2648
|
+
(t(!0), l(P, null, D(d[e(n).badge], (v) => (t(), V(Ve, {
|
|
2646
2649
|
key: `${d._id}-${v}`,
|
|
2647
2650
|
large: ""
|
|
2648
2651
|
}, {
|
|
2649
|
-
default:
|
|
2650
|
-
|
|
2652
|
+
default: b(() => [
|
|
2653
|
+
W(C(e(n).translateBadge ? e(q)(v) : v), 1)
|
|
2651
2654
|
]),
|
|
2652
2655
|
_: 2
|
|
2653
2656
|
}, 1024))), 128))
|
|
@@ -2655,10 +2658,10 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2655
2658
|
key: "0"
|
|
2656
2659
|
} : e(n).badge ? {
|
|
2657
2660
|
name: "badge",
|
|
2658
|
-
fn:
|
|
2661
|
+
fn: b(() => [
|
|
2659
2662
|
L(Ve, null, {
|
|
2660
|
-
default:
|
|
2661
|
-
|
|
2663
|
+
default: b(() => [
|
|
2664
|
+
W(C(e(n).translateBadge ? e(q)(d[e(n).badge]) : d[e(n).badge]), 1)
|
|
2662
2665
|
]),
|
|
2663
2666
|
_: 2
|
|
2664
2667
|
}, 1024)
|
|
@@ -2672,7 +2675,7 @@ const ja = /* @__PURE__ */ Q(Ta, [["__scopeId", "data-v-4839c834"]]), Ra = { key
|
|
|
2672
2675
|
};
|
|
2673
2676
|
}
|
|
2674
2677
|
});
|
|
2675
|
-
const mt = /* @__PURE__ */
|
|
2678
|
+
const mt = /* @__PURE__ */ G(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) => ({
|
|
2676
2679
|
tabular: wa,
|
|
2677
2680
|
grid: mt,
|
|
2678
2681
|
list: mt
|
|
@@ -2701,13 +2704,13 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2701
2704
|
},
|
|
2702
2705
|
emits: ["uiEvent"],
|
|
2703
2706
|
setup(p, { emit: r }) {
|
|
2704
|
-
const n = ee(!1), o = ee(!1), a = ee((...O) => null), c = ee(), u = p, m = r, d = Be(), v =
|
|
2707
|
+
const n = ee(!1), o = ee(!1), a = ee((...O) => null), c = ee(), u = p, m = r, d = Be(), v = bt({
|
|
2705
2708
|
delay: 600
|
|
2706
2709
|
}), s = ie("meta"), y = Le(), { reachedEnd: $, detach: f } = Ke(null, {
|
|
2707
2710
|
antecipate: 600
|
|
2708
2711
|
}), A = !y.value.md || u.scrollPagination;
|
|
2709
|
-
A &&
|
|
2710
|
-
O && i.pagination.recordsTotal > i.items.length &&
|
|
2712
|
+
A && ce($, (O) => {
|
|
2713
|
+
O && i.pagination.recordsTotal > i.items.length && X.value < ft && (X.value += 1, H());
|
|
2711
2714
|
});
|
|
2712
2715
|
const i = qt(u.collection);
|
|
2713
2716
|
Jo(i, {
|
|
@@ -2715,7 +2718,7 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2715
2718
|
});
|
|
2716
2719
|
const M = Xe(), E = u.action ? e(u.action) : Lt(i, d, M);
|
|
2717
2720
|
a.value = E[0], c.value = E[1];
|
|
2718
|
-
const
|
|
2721
|
+
const X = ee(0), h = ee(!1), H = async (O) => {
|
|
2719
2722
|
i.activeFilters = Object.assign({}, (O == null ? void 0 : O.filters) || i.$filters), Object.assign(i.activeFilters, i.filtersPreset);
|
|
2720
2723
|
const k = {
|
|
2721
2724
|
filters: i.activeFilters,
|
|
@@ -2723,36 +2726,36 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2723
2726
|
offset: i.pagination.offset,
|
|
2724
2727
|
project: i.preferredTableProperties.length > 0 ? i.preferredTableProperties : i.description.table || Object.keys(i.properties)
|
|
2725
2728
|
};
|
|
2726
|
-
|
|
2727
|
-
const { error:
|
|
2728
|
-
if (
|
|
2729
|
+
X.value > 0 && (k.limit = 15, k.offset = X.value * k.limit), i.description.tableMeta && (k.project = k.project.concat(i.description.tableMeta)), O && Object.assign(k, O), i.loading.getAll = !0;
|
|
2730
|
+
const { error: Q, result: ae } = await i.$actions.retrieveItems(k);
|
|
2731
|
+
if (Q)
|
|
2729
2732
|
return;
|
|
2730
|
-
const { data: _, pagination: T } =
|
|
2731
|
-
i.pagination.recordsCount = T.recordsCount, i.pagination.recordsTotal = T.recordsTotal,
|
|
2733
|
+
const { data: _, pagination: T } = ae;
|
|
2734
|
+
i.pagination.recordsCount = T.recordsCount, i.pagination.recordsTotal = T.recordsTotal, X.value === 0 && i.items.splice(0), i.items.push(..._), i.loading.getAll = !1, h.value = !0;
|
|
2732
2735
|
}, oe = async (O) => {
|
|
2733
2736
|
d.push(qe(d.currentRoute.value, {
|
|
2734
2737
|
query: {
|
|
2735
2738
|
offset: O.offset,
|
|
2736
2739
|
limit: O.limit
|
|
2737
2740
|
}
|
|
2738
|
-
})), i.pagination.offset = O.offset, i.pagination.limit = O.limit,
|
|
2739
|
-
},
|
|
2740
|
-
|
|
2741
|
+
})), i.pagination.offset = O.offset, i.pagination.limit = O.limit, H();
|
|
2742
|
+
}, ue = ve("noResultsComponent", null);
|
|
2743
|
+
ce(() => [
|
|
2741
2744
|
d.currentRoute.value.path,
|
|
2742
2745
|
d.currentRoute.value.query.section
|
|
2743
2746
|
], async (O, k) => {
|
|
2744
2747
|
if (k && k[0] === O[0] && k[1] === O[1])
|
|
2745
2748
|
return;
|
|
2746
|
-
const
|
|
2747
|
-
if (s.view.title = u.collection, !u.noFetch && (!
|
|
2748
|
-
const
|
|
2749
|
-
Object.keys(
|
|
2749
|
+
const Q = d.currentRoute.value;
|
|
2750
|
+
if (s.view.title = u.collection, !u.noFetch && (!Q.query._popstate || i.itemsCount === 0)) {
|
|
2751
|
+
const ae = Mt(i, Q.query);
|
|
2752
|
+
Object.keys(ae).length > 0 && Object.assign(i.filters, ae), await H();
|
|
2750
2753
|
}
|
|
2751
2754
|
}, {
|
|
2752
2755
|
immediate: !0,
|
|
2753
2756
|
flush: "post"
|
|
2754
2757
|
});
|
|
2755
|
-
const [
|
|
2758
|
+
const [w] = v((O) => (d.push(qe(d.currentRoute.value, {
|
|
2756
2759
|
query: {
|
|
2757
2760
|
search: O || void 0
|
|
2758
2761
|
}
|
|
@@ -2761,41 +2764,41 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2761
2764
|
$search: `"${O}"`,
|
|
2762
2765
|
$caseSensitive: !1
|
|
2763
2766
|
}
|
|
2764
|
-
}),
|
|
2767
|
+
}), H({
|
|
2765
2768
|
offset: 0
|
|
2766
|
-
})) : (i.filters = Ae(i.freshFilters),
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
+
})) : (i.filters = Ae(i.freshFilters), X.value = 0, H())));
|
|
2770
|
+
ce(() => i.textQuery, (O) => {
|
|
2771
|
+
w(O);
|
|
2769
2772
|
});
|
|
2770
|
-
const
|
|
2773
|
+
const ne = (O) => {
|
|
2771
2774
|
O.currentLayout = O.currentLayout === "tabular" ? O.description.layout.name : "tabular";
|
|
2772
2775
|
};
|
|
2773
2776
|
Vt(() => {
|
|
2774
2777
|
i.$actions.clearFilters(), i.textQuery = "", f();
|
|
2775
|
-
}),
|
|
2776
|
-
var
|
|
2778
|
+
}), ce(() => c.value, async (O) => {
|
|
2779
|
+
var ae;
|
|
2777
2780
|
const k = Ae(O);
|
|
2778
|
-
let
|
|
2781
|
+
let Q;
|
|
2779
2782
|
if (k)
|
|
2780
|
-
if ((k.name === "spawnEdit" || k.name === "duplicate") && (
|
|
2783
|
+
if ((k.name === "spawnEdit" || k.name === "duplicate") && (Q = i.$actions.get({
|
|
2781
2784
|
filters: {
|
|
2782
2785
|
_id: k.params._id
|
|
2783
2786
|
}
|
|
2784
2787
|
})), k.name === "spawnAdd")
|
|
2785
|
-
i.$actions.clearItem(), (
|
|
2788
|
+
i.$actions.clearItem(), (ae = k.params) != null && ae.item && (i.$actions.setItem(k.params.item), Object.keys(k.params.item).forEach((_) => {
|
|
2786
2789
|
delete i.referenceItem[_];
|
|
2787
2790
|
})), n.value = "add";
|
|
2788
2791
|
else if (k.name === "spawnEdit")
|
|
2789
2792
|
i.$actions.setItem(k.params), n.value = "edit";
|
|
2790
2793
|
else if (k.name === "duplicate") {
|
|
2791
|
-
await
|
|
2792
|
-
const _ = Object.entries(i.item).reduce((T, [
|
|
2793
|
-
if (!(
|
|
2794
|
+
await Q;
|
|
2795
|
+
const _ = Object.entries(i.item).reduce((T, [U, Z]) => {
|
|
2796
|
+
if (!(U in i.properties))
|
|
2794
2797
|
return {
|
|
2795
2798
|
...T,
|
|
2796
|
-
[
|
|
2799
|
+
[U]: Z
|
|
2797
2800
|
};
|
|
2798
|
-
const S = i.properties[
|
|
2801
|
+
const S = i.properties[U];
|
|
2799
2802
|
if (S.readOnly)
|
|
2800
2803
|
return T;
|
|
2801
2804
|
const R = (re) => {
|
|
@@ -2805,14 +2808,14 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2805
2808
|
if (j.$ref === "file")
|
|
2806
2809
|
return {};
|
|
2807
2810
|
if (j.inline && re) {
|
|
2808
|
-
const { _id: se, ...
|
|
2809
|
-
return
|
|
2811
|
+
const { _id: se, ...ye } = re;
|
|
2812
|
+
return ye;
|
|
2810
2813
|
}
|
|
2811
2814
|
return re;
|
|
2812
2815
|
};
|
|
2813
|
-
return
|
|
2816
|
+
return Z = Array.isArray(Z) ? Z.map(R) : R(Z), {
|
|
2814
2817
|
...T,
|
|
2815
|
-
[
|
|
2818
|
+
[U]: Z
|
|
2816
2819
|
};
|
|
2817
2820
|
}, {});
|
|
2818
2821
|
i.$actions.setItem(_), delete i.item._id, i.referenceItem = {}, n.value = "duplicate";
|
|
@@ -2820,20 +2823,20 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2820
2823
|
m("uiEvent", k);
|
|
2821
2824
|
}, {
|
|
2822
2825
|
deep: !0
|
|
2823
|
-
}),
|
|
2826
|
+
}), ce(() => n, ({ value: O }) => {
|
|
2824
2827
|
O === !1 && i.$actions.clearItem();
|
|
2825
2828
|
});
|
|
2826
|
-
const
|
|
2829
|
+
const fe = J(() => {
|
|
2827
2830
|
if (!u.noActions)
|
|
2828
2831
|
return i.individualActions.map((O) => ({
|
|
2829
2832
|
click: a.value(O),
|
|
2830
2833
|
...O
|
|
2831
2834
|
}));
|
|
2832
|
-
}),
|
|
2833
|
-
return
|
|
2834
|
-
var _, T,
|
|
2835
|
-
const
|
|
2836
|
-
return t(), l(
|
|
2835
|
+
}), le = J(() => i.actions.filter((O) => !O.button));
|
|
2836
|
+
return $e(ze, J(() => u.collection)), (O, k) => {
|
|
2837
|
+
var _, T, U, Z, S, R, re;
|
|
2838
|
+
const Q = te("clickable"), ae = te("loading");
|
|
2839
|
+
return t(), l(P, null, [
|
|
2837
2840
|
o.value ? (t(), V(Ko, {
|
|
2838
2841
|
key: e(i).$id,
|
|
2839
2842
|
modelValue: o.value,
|
|
@@ -2846,11 +2849,11 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2846
2849
|
"fixed-right": ""
|
|
2847
2850
|
}, {
|
|
2848
2851
|
collection: O.collection,
|
|
2849
|
-
individualActions:
|
|
2852
|
+
individualActions: fe.value
|
|
2850
2853
|
}, {
|
|
2851
2854
|
onCancel: k[2] || (k[2] = (j) => n.value = !1)
|
|
2852
2855
|
}), _e({
|
|
2853
|
-
header:
|
|
2856
|
+
header: b(() => [
|
|
2854
2857
|
B("span", null, C((() => {
|
|
2855
2858
|
switch (n.value) {
|
|
2856
2859
|
case "add":
|
|
@@ -2868,7 +2871,7 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2868
2871
|
}, [
|
|
2869
2872
|
D(Object.keys(O.$slots).filter((j) => j.startsWith("field-")), (j) => ({
|
|
2870
2873
|
name: j,
|
|
2871
|
-
fn:
|
|
2874
|
+
fn: b((se) => [
|
|
2872
2875
|
I(O.$slots, j, de(Ce(se)), void 0, !0)
|
|
2873
2876
|
])
|
|
2874
2877
|
}))
|
|
@@ -2887,16 +2890,16 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2887
2890
|
}), null, 16, ["modelValue"])
|
|
2888
2891
|
])) : g("", !0),
|
|
2889
2892
|
B("div", Ua, [
|
|
2890
|
-
|
|
2891
|
-
default:
|
|
2893
|
+
le.value.length > 0 || !O.noLayoutToggle && e(i).description.layout && ((U = e(i).description.layout) == null ? void 0 : U.name) !== "tabular" ? (t(), V(Ie, { key: 0 }, _e({
|
|
2894
|
+
default: b(() => [
|
|
2892
2895
|
L(pe, {
|
|
2893
2896
|
variant: "alt",
|
|
2894
2897
|
icon: "sliders"
|
|
2895
2898
|
}, {
|
|
2896
|
-
default:
|
|
2899
|
+
default: b(() => [
|
|
2897
2900
|
e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2898
|
-
default:
|
|
2899
|
-
|
|
2901
|
+
default: b(() => [
|
|
2902
|
+
W(C(e(i).filtersCount), 1)
|
|
2900
2903
|
]),
|
|
2901
2904
|
_: 1
|
|
2902
2905
|
})) : g("", !0)
|
|
@@ -2908,22 +2911,22 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2908
2911
|
}, [
|
|
2909
2912
|
Object.keys(e(i).availableFilters).length > 0 ? {
|
|
2910
2913
|
name: "filter",
|
|
2911
|
-
fn:
|
|
2912
|
-
|
|
2914
|
+
fn: b(() => [
|
|
2915
|
+
N((t(), V(K, {
|
|
2913
2916
|
icon: "funnel",
|
|
2914
2917
|
onClick: k[4] || (k[4] = (j) => o.value = !0)
|
|
2915
2918
|
}, {
|
|
2916
|
-
default:
|
|
2917
|
-
|
|
2919
|
+
default: b(() => [
|
|
2920
|
+
W(C(e(q)("filters", { capitalize: !0 })), 1)
|
|
2918
2921
|
]),
|
|
2919
2922
|
_: 1
|
|
2920
2923
|
})), [
|
|
2921
|
-
[
|
|
2924
|
+
[Q]
|
|
2922
2925
|
]),
|
|
2923
2926
|
B("div", Ha, [
|
|
2924
2927
|
e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2925
|
-
default:
|
|
2926
|
-
|
|
2928
|
+
default: b(() => [
|
|
2929
|
+
W(C(e(i).filtersCount), 1)
|
|
2927
2930
|
]),
|
|
2928
2931
|
_: 1
|
|
2929
2932
|
})) : g("", !0)
|
|
@@ -2931,34 +2934,34 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2931
2934
|
]),
|
|
2932
2935
|
key: "0"
|
|
2933
2936
|
} : void 0,
|
|
2934
|
-
!O.noLayoutToggle && e(i).description.layout && ((
|
|
2937
|
+
!O.noLayoutToggle && e(i).description.layout && ((Z = e(i).description.layout) == null ? void 0 : Z.name) !== "tabular" ? {
|
|
2935
2938
|
name: "layout-toggle",
|
|
2936
|
-
fn:
|
|
2937
|
-
|
|
2939
|
+
fn: b(() => [
|
|
2940
|
+
N((t(), V(K, {
|
|
2938
2941
|
icon: "table",
|
|
2939
|
-
onClick: k[5] || (k[5] = (j) =>
|
|
2942
|
+
onClick: k[5] || (k[5] = (j) => ne(e(i)))
|
|
2940
2943
|
}, {
|
|
2941
|
-
default:
|
|
2942
|
-
|
|
2944
|
+
default: b(() => [
|
|
2945
|
+
W(C(e(q)("change_layout", { capitalize: !0 })), 1)
|
|
2943
2946
|
]),
|
|
2944
2947
|
_: 1
|
|
2945
2948
|
})), [
|
|
2946
|
-
[
|
|
2949
|
+
[Q]
|
|
2947
2950
|
])
|
|
2948
2951
|
]),
|
|
2949
2952
|
key: "1"
|
|
2950
2953
|
} : void 0,
|
|
2951
|
-
D(
|
|
2954
|
+
D(le.value, (j, se) => ({
|
|
2952
2955
|
name: `action-${se}`,
|
|
2953
|
-
fn:
|
|
2954
|
-
j ? (t(), V(
|
|
2956
|
+
fn: b(() => [
|
|
2957
|
+
j ? (t(), V(K, {
|
|
2955
2958
|
key: 0,
|
|
2956
2959
|
icon: j.icon || "gear",
|
|
2957
2960
|
disabled: e(i).selected.length === 0 && "selection" in j && j.selection,
|
|
2958
|
-
onClick: (
|
|
2961
|
+
onClick: (ye) => a.value(j)({ _id: e(i).selected.map((he) => typeof he == "string" || he._id) })
|
|
2959
2962
|
}, {
|
|
2960
|
-
default:
|
|
2961
|
-
|
|
2963
|
+
default: b(() => [
|
|
2964
|
+
W(C(e(q)(j.label, { capitalize: !0 })), 1)
|
|
2962
2965
|
]),
|
|
2963
2966
|
_: 2
|
|
2964
2967
|
}, 1032, ["icon", "disabled", "onClick"])) : g("", !0)
|
|
@@ -2970,37 +2973,37 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
2970
2973
|
icon: "funnel",
|
|
2971
2974
|
onClick: k[6] || (k[6] = (j) => o.value = !0)
|
|
2972
2975
|
}, {
|
|
2973
|
-
default:
|
|
2976
|
+
default: b(() => [
|
|
2974
2977
|
k[8] || (k[8] = B("div", null, "Filtros", -1)),
|
|
2975
2978
|
e(i).filtersCount ? (t(), V(Ve, { key: 0 }, {
|
|
2976
|
-
default:
|
|
2977
|
-
|
|
2979
|
+
default: b(() => [
|
|
2980
|
+
W(C(e(i).filtersCount), 1)
|
|
2978
2981
|
]),
|
|
2979
2982
|
_: 1
|
|
2980
2983
|
})) : g("", !0)
|
|
2981
2984
|
]),
|
|
2982
2985
|
_: 1
|
|
2983
2986
|
})) : g("", !0),
|
|
2984
|
-
(t(!0), l(
|
|
2987
|
+
(t(!0), l(P, null, D(e(i).actions.filter((j) => j.button), (j, se) => (t(), V(pe, {
|
|
2985
2988
|
key: `action-${se}`,
|
|
2986
2989
|
icon: j.icon,
|
|
2987
2990
|
disabled: e(i).selected.length === 0 && "selection" in j && j.selection,
|
|
2988
|
-
onClick: (
|
|
2991
|
+
onClick: (ye) => a.value(j)({ _id: e(i).selected.map((he) => typeof he == "string" || he._id) })
|
|
2989
2992
|
}, {
|
|
2990
|
-
default:
|
|
2991
|
-
|
|
2993
|
+
default: b(() => [
|
|
2994
|
+
W(C(e(q)(j.label, { capitalize: !0 })), 1)
|
|
2992
2995
|
]),
|
|
2993
2996
|
_: 2
|
|
2994
2997
|
}, 1032, ["icon", "disabled", "onClick"]))), 128)),
|
|
2995
2998
|
O.$slots.actions ? I(O.$slots, "actions", { key: 2 }, void 0, !0) : g("", !0)
|
|
2996
2999
|
])
|
|
2997
3000
|
])) : g("", !0),
|
|
2998
|
-
|
|
2999
|
-
e(i).itemsCount === 0 && !e(i).loading.getAll &&
|
|
3000
|
-
e(
|
|
3001
|
+
N((t(), l("div", null, [
|
|
3002
|
+
e(i).itemsCount === 0 && !e(i).loading.getAll && h.value && (e(ue) || O.$slots.empty) ? (t(), l("div", Da, [
|
|
3003
|
+
e(ue) ? (t(), V(ge(e(ue)), de(z({ key: 0 }, {
|
|
3001
3004
|
collection: e(i).$id
|
|
3002
3005
|
})), {
|
|
3003
|
-
default:
|
|
3006
|
+
default: b(() => [
|
|
3004
3007
|
e(i).filtersCount === 0 && e(i).description.actions && "spawnAdd" in e(i).description.actions ? (t(), V(pe, {
|
|
3005
3008
|
key: 0,
|
|
3006
3009
|
icon: "plus",
|
|
@@ -3009,8 +3012,8 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
3009
3012
|
event: "spawnAdd"
|
|
3010
3013
|
})())
|
|
3011
3014
|
}, {
|
|
3012
|
-
default:
|
|
3013
|
-
|
|
3015
|
+
default: b(() => [
|
|
3016
|
+
W(C(e(q)("add_first_item", { capitalize: !0 })), 1)
|
|
3014
3017
|
]),
|
|
3015
3018
|
_: 1
|
|
3016
3019
|
})) : g("", !0)
|
|
@@ -3021,8 +3024,8 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
3021
3024
|
})), void 0, !0)
|
|
3022
3025
|
])) : O.$slots.component ? I(O.$slots, "component", de(z({ key: 1 }, {
|
|
3023
3026
|
store: e(i)
|
|
3024
|
-
})), void 0, !0) : (t(), V(
|
|
3025
|
-
individualActions:
|
|
3027
|
+
})), void 0, !0) : (t(), V(ge(e(za)(((S = O.layout) == null ? void 0 : S.name) || e(i).$currentLayout)), z({ key: 2 }, {
|
|
3028
|
+
individualActions: fe.value,
|
|
3026
3029
|
layoutOptions: ((R = O.layout) == null ? void 0 : R.options) || e(i).layout.options,
|
|
3027
3030
|
componentProps: O.componentProps
|
|
3028
3031
|
}, {
|
|
@@ -3030,20 +3033,20 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
3030
3033
|
}), _e({ _: 2 }, [
|
|
3031
3034
|
D(Object.keys(O.$slots).filter((j) => j.startsWith("row-")), (j) => ({
|
|
3032
3035
|
name: j,
|
|
3033
|
-
fn:
|
|
3036
|
+
fn: b((se) => [
|
|
3034
3037
|
I(O.$slots, j, de(Ce(se)), void 0, !0)
|
|
3035
3038
|
])
|
|
3036
3039
|
})),
|
|
3037
3040
|
O.$slots.tfoot ? {
|
|
3038
3041
|
name: "tfoot",
|
|
3039
|
-
fn:
|
|
3042
|
+
fn: b(() => [
|
|
3040
3043
|
I(O.$slots, "tfoot", {}, void 0, !0)
|
|
3041
3044
|
]),
|
|
3042
3045
|
key: "0"
|
|
3043
3046
|
} : void 0
|
|
3044
3047
|
]), 1040, ["component-name"]))
|
|
3045
3048
|
])), [
|
|
3046
|
-
[
|
|
3049
|
+
[ae, (!e(A) || X.value === ft) && e(i).loading.getAll]
|
|
3047
3050
|
]),
|
|
3048
3051
|
!e(A) && !O.noControls && !e(i).loading.getAll && e(i).itemsCount > 0 ? (t(), l("div", Qa, [
|
|
3049
3052
|
L(qn, {
|
|
@@ -3055,7 +3058,7 @@ const mt = /* @__PURE__ */ Q(Ma, [["__scopeId", "data-v-dd8f3bb7"]]), za = (p) =
|
|
|
3055
3058
|
};
|
|
3056
3059
|
}
|
|
3057
3060
|
});
|
|
3058
|
-
const Il = /* @__PURE__ */
|
|
3061
|
+
const Il = /* @__PURE__ */ G(Ga, [["__scopeId", "data-v-d64cb42a"]]), Wa = { class: "prompt" }, Ya = /* @__PURE__ */ F({
|
|
3059
3062
|
__name: "aeria-prompt",
|
|
3060
3063
|
props: {
|
|
3061
3064
|
title: {},
|
|
@@ -3072,27 +3075,27 @@ const Il = /* @__PURE__ */ Q(Ga, [["__scopeId", "data-v-d64cb42a"]]), Wa = { cla
|
|
|
3072
3075
|
title: o.title,
|
|
3073
3076
|
style: { "--panel-min-width": "32rem" }
|
|
3074
3077
|
}, {
|
|
3075
|
-
footer:
|
|
3078
|
+
footer: b(() => [
|
|
3076
3079
|
B("div", {
|
|
3077
3080
|
class: "prompt__options",
|
|
3078
|
-
style:
|
|
3081
|
+
style: ke(`grid-template-columns: repeat(${Object.keys(o.options).length}, 1fr)`)
|
|
3079
3082
|
}, [
|
|
3080
|
-
(t(!0), l(
|
|
3083
|
+
(t(!0), l(P, null, D(Object.entries(o.options), ([c, u], m) => (t(), V(be, {
|
|
3081
3084
|
key: `option-${m}`,
|
|
3082
|
-
class:
|
|
3085
|
+
class: Y([
|
|
3083
3086
|
"prompt__option",
|
|
3084
3087
|
`prompt__option--${u.variant || "primary"}`
|
|
3085
3088
|
]),
|
|
3086
3089
|
onClick: (d) => u.click ? u.click(c, u) : n(c, u)
|
|
3087
3090
|
}, {
|
|
3088
|
-
default:
|
|
3089
|
-
|
|
3091
|
+
default: b(() => [
|
|
3092
|
+
W(C(u.title), 1)
|
|
3090
3093
|
]),
|
|
3091
3094
|
_: 2
|
|
3092
3095
|
}, 1032, ["class", "onClick"]))), 128))
|
|
3093
3096
|
], 4)
|
|
3094
3097
|
]),
|
|
3095
|
-
default:
|
|
3098
|
+
default: b(() => [
|
|
3096
3099
|
B("div", Wa, [
|
|
3097
3100
|
I(o.$slots, "default", {}, void 0, !0)
|
|
3098
3101
|
])
|
|
@@ -3101,7 +3104,7 @@ const Il = /* @__PURE__ */ Q(Ga, [["__scopeId", "data-v-d64cb42a"]]), Wa = { cla
|
|
|
3101
3104
|
}, 8, ["title"]));
|
|
3102
3105
|
}
|
|
3103
3106
|
});
|
|
3104
|
-
const Ka = /* @__PURE__ */
|
|
3107
|
+
const Ka = /* @__PURE__ */ G(Ya, [["__scopeId", "data-v-4cbfd28f"]]), Xa = { class: "toast__content" }, Ja = { class: "toast__time" }, Za = /* @__PURE__ */ F({
|
|
3105
3108
|
__name: "aeria-toast",
|
|
3106
3109
|
props: {
|
|
3107
3110
|
idx: {},
|
|
@@ -3112,16 +3115,16 @@ const Ka = /* @__PURE__ */ Q(Ya, [["__scopeId", "data-v-4cbfd28f"]]), Xa = { cla
|
|
|
3112
3115
|
setup(p) {
|
|
3113
3116
|
const r = ie("meta");
|
|
3114
3117
|
return (n, o) => {
|
|
3115
|
-
const a =
|
|
3116
|
-
return
|
|
3117
|
-
class:
|
|
3118
|
+
const a = te("clickable");
|
|
3119
|
+
return N((t(), l("div", {
|
|
3120
|
+
class: Y({
|
|
3118
3121
|
toast: !0,
|
|
3119
3122
|
"toast--animate": e(r).toasts[0].itr === n.itr
|
|
3120
3123
|
}),
|
|
3121
3124
|
onAnimationend: o[0] || (o[0] = (c) => e(r).$actions.popToast()),
|
|
3122
3125
|
onClick: o[1] || (o[1] = (c) => e(r).$actions.popToast(n.itr))
|
|
3123
3126
|
}, [
|
|
3124
|
-
L(
|
|
3127
|
+
L(K, z(
|
|
3125
3128
|
n.icon ? { icon: n.icon } : { icon: "warning-circle" },
|
|
3126
3129
|
{ style: { "--icon-size": "4rem", "--icon-color": "var(--theme-brand-color-shade-3)" } }
|
|
3127
3130
|
), null, 16),
|
|
@@ -3135,28 +3138,28 @@ const Ka = /* @__PURE__ */ Q(Ya, [["__scopeId", "data-v-4cbfd28f"]]), Xa = { cla
|
|
|
3135
3138
|
};
|
|
3136
3139
|
}
|
|
3137
3140
|
});
|
|
3138
|
-
const Pa = /* @__PURE__ */
|
|
3141
|
+
const Pa = /* @__PURE__ */ G(Za, [["__scopeId", "data-v-606d47bf"]]), Na = ["innerHTML"], xa = { class: "main__toasts" }, el = ["innerHTML"], tl = /* @__PURE__ */ F({
|
|
3139
3142
|
__name: "aeria-main",
|
|
3140
3143
|
setup(p) {
|
|
3141
|
-
const r = ie("meta"), n =
|
|
3144
|
+
const r = ie("meta"), n = J(() => r.themeOverride || r.theme);
|
|
3142
3145
|
return (o, a) => {
|
|
3143
3146
|
const c = Ct("router-view");
|
|
3144
3147
|
return t(), l("main", {
|
|
3145
3148
|
id: "main",
|
|
3146
|
-
class:
|
|
3149
|
+
class: Y([
|
|
3147
3150
|
"main",
|
|
3148
3151
|
`main--${n.value}`,
|
|
3149
3152
|
{ dark: n.value === "dark" }
|
|
3150
3153
|
])
|
|
3151
3154
|
}, [
|
|
3152
3155
|
(t(), V(Ot, null, {
|
|
3153
|
-
default:
|
|
3156
|
+
default: b(() => [
|
|
3154
3157
|
L(c, null, {
|
|
3155
|
-
default:
|
|
3156
|
-
(t(), V(
|
|
3158
|
+
default: b(({ Component: u }) => [
|
|
3159
|
+
(t(), V(ge(u), null, _e({ _: 2 }, [
|
|
3157
3160
|
D(Object.keys(o.$slots), (m) => ({
|
|
3158
3161
|
name: m,
|
|
3159
|
-
fn:
|
|
3162
|
+
fn: b(() => [
|
|
3160
3163
|
I(o.$slots, m, {}, void 0, !0)
|
|
3161
3164
|
])
|
|
3162
3165
|
}))
|
|
@@ -3177,27 +3180,27 @@ const Pa = /* @__PURE__ */ Q(Za, [["__scopeId", "data-v-606d47bf"]]), Na = ["inn
|
|
|
3177
3180
|
"overlay-layer": 70,
|
|
3178
3181
|
onOverlayClick: a[1] || (a[1] = (u) => e(r).modal.visible = !1)
|
|
3179
3182
|
}), {
|
|
3180
|
-
default:
|
|
3183
|
+
default: b(() => [
|
|
3181
3184
|
e(r).modal.body ? (t(), l("div", {
|
|
3182
3185
|
key: 0,
|
|
3183
3186
|
style: { "white-space": "pre-wrap" },
|
|
3184
3187
|
innerHTML: e(r).modal.body
|
|
3185
3188
|
}, null, 8, Na)) : g("", !0),
|
|
3186
|
-
e(r).modal.component ? (t(), V(
|
|
3189
|
+
e(r).modal.component ? (t(), V(ge(e(r).modal.component), { key: 1 })) : g("", !0)
|
|
3187
3190
|
]),
|
|
3188
3191
|
_: 1
|
|
3189
3192
|
}, 16, ["modelValue"]),
|
|
3190
3193
|
e(r).prompt.visible ? (t(), V(Ka, de(z({ key: 0 }, e(r).prompt)), {
|
|
3191
|
-
default:
|
|
3192
|
-
|
|
3194
|
+
default: b(() => [
|
|
3195
|
+
W(C(e(r).prompt.body), 1)
|
|
3193
3196
|
]),
|
|
3194
3197
|
_: 1
|
|
3195
3198
|
}, 16)) : g("", !0),
|
|
3196
3199
|
B("div", xa, [
|
|
3197
|
-
(t(!0), l(
|
|
3200
|
+
(t(!0), l(P, null, D(e(r).toasts, (u) => (t(), V(Pa, z({ ref_for: !0 }, u, {
|
|
3198
3201
|
key: `toast-${u.itr}`
|
|
3199
3202
|
}), {
|
|
3200
|
-
default:
|
|
3203
|
+
default: b(() => [
|
|
3201
3204
|
B("div", {
|
|
3202
3205
|
innerHTML: e(q)(u.text)
|
|
3203
3206
|
}, null, 8, el)
|
|
@@ -3209,11 +3212,11 @@ const Pa = /* @__PURE__ */ Q(Za, [["__scopeId", "data-v-606d47bf"]]), Na = ["inn
|
|
|
3209
3212
|
};
|
|
3210
3213
|
}
|
|
3211
3214
|
});
|
|
3212
|
-
const Bl = /* @__PURE__ */
|
|
3215
|
+
const Bl = /* @__PURE__ */ G(tl, [["__scopeId", "data-v-09c961fa"]]);
|
|
3213
3216
|
const nl = {}, ol = { class: "menu" };
|
|
3214
3217
|
function al(p, r) {
|
|
3215
3218
|
return t(), l("menu", ol, [
|
|
3216
|
-
(t(!0), l(
|
|
3219
|
+
(t(!0), l(P, null, D(Object.keys(p.$slots), (n) => (t(), l("div", {
|
|
3217
3220
|
key: n,
|
|
3218
3221
|
class: "menu__entry"
|
|
3219
3222
|
}, [
|
|
@@ -3221,7 +3224,7 @@ function al(p, r) {
|
|
|
3221
3224
|
]))), 128))
|
|
3222
3225
|
]);
|
|
3223
3226
|
}
|
|
3224
|
-
const Sl = /* @__PURE__ */
|
|
3227
|
+
const Sl = /* @__PURE__ */ G(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb"]]), ll = { class: "tabs" }, sl = {
|
|
3225
3228
|
key: 0,
|
|
3226
3229
|
class: "tabs__horizontal"
|
|
3227
3230
|
}, il = {
|
|
@@ -3238,7 +3241,7 @@ const Sl = /* @__PURE__ */ Q(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3238
3241
|
dropdown: { type: Boolean }
|
|
3239
3242
|
},
|
|
3240
3243
|
setup(p) {
|
|
3241
|
-
const r = p, n = At(), o = Be(), a = Le(), c =
|
|
3244
|
+
const r = p, n = At(), o = Be(), a = Le(), c = J(() => {
|
|
3242
3245
|
if (r.query) {
|
|
3243
3246
|
const m = o.currentRoute.value.query[r.query];
|
|
3244
3247
|
if (m)
|
|
@@ -3261,15 +3264,15 @@ const Sl = /* @__PURE__ */ Q(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3261
3264
|
}));
|
|
3262
3265
|
};
|
|
3263
3266
|
return (m, d) => {
|
|
3264
|
-
const v =
|
|
3267
|
+
const v = te("clickable");
|
|
3265
3268
|
return t(), l("div", ll, [
|
|
3266
3269
|
e(a).md && !m.dropdown ? (t(), l("div", sl, [
|
|
3267
3270
|
m.$slots.default ? (t(), l("div", il, [
|
|
3268
3271
|
I(m.$slots, "default", {}, void 0, !0)
|
|
3269
3272
|
])) : g("", !0),
|
|
3270
|
-
(t(!0), l(
|
|
3273
|
+
(t(!0), l(P, null, D(Object.keys(m.$slots).filter((s) => s !== "default"), (s, y) => (t(), l("div", {
|
|
3271
3274
|
key: s,
|
|
3272
|
-
class:
|
|
3275
|
+
class: Y({
|
|
3273
3276
|
tabs__tab: !0,
|
|
3274
3277
|
"tabs__tab--current": s === c.value || !c.value && y === 0
|
|
3275
3278
|
}),
|
|
@@ -3279,15 +3282,15 @@ const Sl = /* @__PURE__ */ Q(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3279
3282
|
], 10, rl))), 128))
|
|
3280
3283
|
])) : (t(), l("div", ul, [
|
|
3281
3284
|
L(Ie, null, _e({
|
|
3282
|
-
default:
|
|
3283
|
-
|
|
3285
|
+
default: b(({ visible: s }) => [
|
|
3286
|
+
N((t(), V(K, {
|
|
3284
3287
|
"icon-right": "",
|
|
3285
3288
|
active: s,
|
|
3286
3289
|
icon: "caret-down",
|
|
3287
3290
|
style: { "--icon-color": "var(--theme-brand-color-shade-1)" },
|
|
3288
3291
|
class: "tabs__context-menu-icon"
|
|
3289
3292
|
}, {
|
|
3290
|
-
default:
|
|
3293
|
+
default: b(() => [
|
|
3291
3294
|
I(m.$slots, c.value, {}, void 0, !0)
|
|
3292
3295
|
]),
|
|
3293
3296
|
_: 2
|
|
@@ -3299,7 +3302,7 @@ const Sl = /* @__PURE__ */ Q(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3299
3302
|
}, [
|
|
3300
3303
|
D(Object.keys(m.$slots).filter((s) => s !== "default"), (s) => ({
|
|
3301
3304
|
name: s,
|
|
3302
|
-
fn:
|
|
3305
|
+
fn: b(() => [
|
|
3303
3306
|
B("div", {
|
|
3304
3307
|
onClick: (y) => u(s)
|
|
3305
3308
|
}, [
|
|
@@ -3313,7 +3316,7 @@ const Sl = /* @__PURE__ */ Q(nl, [["render", al], ["__scopeId", "data-v-3cfef7fb
|
|
|
3313
3316
|
};
|
|
3314
3317
|
}
|
|
3315
3318
|
});
|
|
3316
|
-
const pl = /* @__PURE__ */
|
|
3319
|
+
const pl = /* @__PURE__ */ G(dl, [["__scopeId", "data-v-a20914ab"]]), _l = F({
|
|
3317
3320
|
props: {
|
|
3318
3321
|
initialValue: String,
|
|
3319
3322
|
promise: Promise
|
|
@@ -3330,7 +3333,7 @@ const pl = /* @__PURE__ */ Q(dl, [["__scopeId", "data-v-a20914ab"]]), _l = F({
|
|
|
3330
3333
|
collection: {}
|
|
3331
3334
|
},
|
|
3332
3335
|
setup(p) {
|
|
3333
|
-
const r = p, o = Be().currentRoute, a = Xe(), c =
|
|
3336
|
+
const r = p, o = Be().currentRoute, a = Xe(), c = 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, d) => {
|
|
3334
3337
|
const { error: v, result: s } = await d.$functions[m.badgeFunction]({
|
|
3335
3338
|
filters: m.filters
|
|
3336
3339
|
});
|
|
@@ -3343,22 +3346,22 @@ const pl = /* @__PURE__ */ Q(dl, [["__scopeId", "data-v-a20914ab"]]), _l = F({
|
|
|
3343
3346
|
}, _e({ _: 2 }, [
|
|
3344
3347
|
D(Object.entries(c.value.description.filtersPresets), ([v, s]) => ({
|
|
3345
3348
|
name: v,
|
|
3346
|
-
fn:
|
|
3349
|
+
fn: b(() => [
|
|
3347
3350
|
B("div", {
|
|
3348
3351
|
class: "topbar__preset",
|
|
3349
|
-
onClick: (y) => e(
|
|
3352
|
+
onClick: (y) => e(ht)(s, c.value)
|
|
3350
3353
|
}, [
|
|
3351
|
-
s.icon ? (t(), V(
|
|
3354
|
+
s.icon ? (t(), V(K, {
|
|
3352
3355
|
key: 0,
|
|
3353
3356
|
icon: s.icon
|
|
3354
3357
|
}, {
|
|
3355
|
-
default:
|
|
3356
|
-
|
|
3358
|
+
default: b(() => [
|
|
3359
|
+
W(C(s.label || e(q)(v, { plural: !0 })), 1)
|
|
3357
3360
|
]),
|
|
3358
3361
|
_: 2
|
|
3359
3362
|
}, 1032, ["icon"])) : (t(), l("div", fl, C(s.label || e(q)(v, { plural: !0 })), 1)),
|
|
3360
3363
|
s.badgeFunction ? (t(), V(Ve, { key: 2 }, {
|
|
3361
|
-
default:
|
|
3364
|
+
default: b(() => [
|
|
3362
3365
|
L(e(_l), {
|
|
3363
3366
|
"initial-value": "0",
|
|
3364
3367
|
promise: u(s, c.value)
|
|
@@ -3372,7 +3375,7 @@ const pl = /* @__PURE__ */ Q(dl, [["__scopeId", "data-v-a20914ab"]]), _l = F({
|
|
|
3372
3375
|
]), 1024)) : g("", !0);
|
|
3373
3376
|
}
|
|
3374
3377
|
});
|
|
3375
|
-
const yl = /* @__PURE__ */
|
|
3378
|
+
const yl = /* @__PURE__ */ G(vl, [["__scopeId", "data-v-f0a45677"]]), bl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3376
3379
|
__proto__: null,
|
|
3377
3380
|
default: yl
|
|
3378
3381
|
}, Symbol.toStringTag, { value: "Module" })), wl = /* @__PURE__ */ F({
|
|
@@ -3383,8 +3386,8 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3383
3386
|
emits: ["update:modelValue"],
|
|
3384
3387
|
setup(p) {
|
|
3385
3388
|
const r = p;
|
|
3386
|
-
|
|
3387
|
-
const n = zt(), o =
|
|
3389
|
+
$e(ze, null);
|
|
3390
|
+
const n = zt(), o = J(() => n(
|
|
3388
3391
|
r.modelValue.password,
|
|
3389
3392
|
r.modelValue.confirmation
|
|
3390
3393
|
));
|
|
@@ -3404,7 +3407,7 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3404
3407
|
"model-value": a.modelValue,
|
|
3405
3408
|
"onUpdate:modelValue": c[0] || (c[0] = (u) => a.$emit("update:modelValue", u))
|
|
3406
3409
|
}, {
|
|
3407
|
-
after:
|
|
3410
|
+
after: b(() => [
|
|
3408
3411
|
B("div", null, C(o.value || "Senhas conferem"), 1),
|
|
3409
3412
|
I(a.$slots, "default", de(Ce({ passwordError: o.value })))
|
|
3410
3413
|
]),
|
|
@@ -3429,7 +3432,7 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3429
3432
|
{
|
|
3430
3433
|
path: "signin",
|
|
3431
3434
|
name: "/user/signin",
|
|
3432
|
-
component: () => import("./signin-
|
|
3435
|
+
component: () => import("./signin-466c153d.js"),
|
|
3433
3436
|
meta: {
|
|
3434
3437
|
title: "Sign in"
|
|
3435
3438
|
}
|
|
@@ -3437,7 +3440,7 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3437
3440
|
{
|
|
3438
3441
|
path: "signup",
|
|
3439
3442
|
name: "/user/signup",
|
|
3440
|
-
component: () => import("./signup-
|
|
3443
|
+
component: () => import("./signup-b5f7c7cb.js"),
|
|
3441
3444
|
meta: {
|
|
3442
3445
|
title: "Sign up"
|
|
3443
3446
|
}
|
|
@@ -3445,7 +3448,7 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3445
3448
|
{
|
|
3446
3449
|
path: "redefine-password",
|
|
3447
3450
|
name: "/user/redefine-password",
|
|
3448
|
-
component: () => import("./redefine-password-
|
|
3451
|
+
component: () => import("./redefine-password-9c1f1202.js"),
|
|
3449
3452
|
meta: {
|
|
3450
3453
|
title: "Redefine password"
|
|
3451
3454
|
}
|
|
@@ -3453,7 +3456,7 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3453
3456
|
{
|
|
3454
3457
|
path: "activation",
|
|
3455
3458
|
name: "/user/activation",
|
|
3456
|
-
component: () => import("./activation-
|
|
3459
|
+
component: () => import("./activation-c67694fb.js"),
|
|
3457
3460
|
meta: {
|
|
3458
3461
|
title: "Activate user"
|
|
3459
3462
|
}
|
|
@@ -3475,8 +3478,8 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3475
3478
|
name: "/dashboard/:collection",
|
|
3476
3479
|
props: !0,
|
|
3477
3480
|
components: {
|
|
3478
|
-
default: () => import("./index-
|
|
3479
|
-
topbar: () => Promise.resolve().then(() =>
|
|
3481
|
+
default: () => import("./index-f74dbcac.js"),
|
|
3482
|
+
topbar: () => Promise.resolve().then(() => bl)
|
|
3480
3483
|
},
|
|
3481
3484
|
meta: {
|
|
3482
3485
|
title: ({ collectionName: n, t: o }) => o(n, {
|
|
@@ -3489,7 +3492,7 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3489
3492
|
name: "/dashboard/:collection/:id",
|
|
3490
3493
|
props: !0,
|
|
3491
3494
|
components: {
|
|
3492
|
-
default: () => import("./_id_-
|
|
3495
|
+
default: () => import("./_id_-ceb07ba3.js")
|
|
3493
3496
|
},
|
|
3494
3497
|
meta: {
|
|
3495
3498
|
title: ({ collectionName: n, t: o }) => o(n, {
|
|
@@ -3509,7 +3512,7 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3509
3512
|
children: [
|
|
3510
3513
|
{
|
|
3511
3514
|
path: "profile",
|
|
3512
|
-
component: () => import("./index-
|
|
3515
|
+
component: () => import("./index-629e6cbc.js"),
|
|
3513
3516
|
meta: {
|
|
3514
3517
|
title: "User profile",
|
|
3515
3518
|
icon: "user-square"
|
|
@@ -3518,7 +3521,7 @@ const yl = /* @__PURE__ */ Q(vl, [["__scopeId", "data-v-f0a45677"]]), hl = /* @_
|
|
|
3518
3521
|
{
|
|
3519
3522
|
path: "changepass",
|
|
3520
3523
|
name: "/dashboard/user/changepass",
|
|
3521
|
-
component: () => import("./index-
|
|
3524
|
+
component: () => import("./index-d6818c5b.js"),
|
|
3522
3525
|
meta: {
|
|
3523
3526
|
title: "Change password",
|
|
3524
3527
|
icon: "lock"
|
|
@@ -3537,9 +3540,9 @@ export {
|
|
|
3537
3540
|
yl as F,
|
|
3538
3541
|
Tl as G,
|
|
3539
3542
|
jl as H,
|
|
3540
|
-
|
|
3543
|
+
G as _,
|
|
3541
3544
|
pe as a,
|
|
3542
|
-
|
|
3545
|
+
K as b,
|
|
3543
3546
|
wl as c,
|
|
3544
3547
|
Hn as d,
|
|
3545
3548
|
Il as e,
|
|
@@ -3549,12 +3552,12 @@ export {
|
|
|
3549
3552
|
Se as i,
|
|
3550
3553
|
Al as j,
|
|
3551
3554
|
Ve as k,
|
|
3552
|
-
|
|
3555
|
+
be as l,
|
|
3553
3556
|
sn as m,
|
|
3554
3557
|
Ie as n,
|
|
3555
3558
|
ja as o,
|
|
3556
3559
|
Ko as p,
|
|
3557
|
-
|
|
3560
|
+
bn as q,
|
|
3558
3561
|
Bl as r,
|
|
3559
3562
|
qn as s,
|
|
3560
3563
|
Sa as t,
|