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