@aeria-ui/ui 0.0.83 → 0.0.85
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_-96ff658c.js} +1 -1
- package/dist/{activation-2ed66520.js → activation-4323bfe9.js} +1 -1
- package/dist/components/dashboard/aeria-prompt/aeria-prompt.vue.d.ts +2 -2
- package/dist/{index-9523beb0.js → index-147848e1.js} +1 -1
- package/dist/{index-7fac40c1.js → index-537a3137.js} +1 -1
- package/dist/{index-9adc5fef.js → index-8e02a4aa.js} +1 -1
- package/dist/{index-abff4997.js → index-c6befed9.js} +731 -720
- package/dist/{signin-ca755540.js → signin-154b251f.js} +1 -1
- package/dist/{signup-d80a59fb.js → signup-13a3075f.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui.js +1 -1
- package/package.json +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as 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 wt, onUnmounted as Bt, 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
|
|
279
|
+
const we = /* @__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
|
-
x((t(), $(
|
|
426
|
-
modelValue:
|
|
427
|
-
"onUpdate:modelValue":
|
|
425
|
+
x((t(), $(we, {
|
|
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,23 +528,23 @@ 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 = {
|
|
542
542
|
key: 1,
|
|
543
543
|
class: "input__hint"
|
|
544
|
-
}, In = ["placeholder", "readonly", "value"], An = ["value"],
|
|
544
|
+
}, In = ["placeholder", "readonly", "value"], An = ["value"], wn = {
|
|
545
545
|
key: 1,
|
|
546
546
|
class: "input__clipboard"
|
|
547
|
-
},
|
|
547
|
+
}, Bn = /* @__PURE__ */ E({
|
|
548
548
|
__name: "aeria-input",
|
|
549
549
|
props: {
|
|
550
550
|
modelValue: {},
|
|
@@ -557,19 +557,19 @@ const kn = /* @__PURE__ */ K(gn, [["__scopeId", "data-v-7e2a5440"]]), Vn = { cla
|
|
|
557
557
|
},
|
|
558
558
|
emits: ["update:modelValue", "input", "change", "clipboardCopy"],
|
|
559
559
|
setup(c, { emit: r }) {
|
|
560
|
-
var
|
|
561
|
-
const l = c, n = r,
|
|
560
|
+
var w;
|
|
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 = ((w = l.property) == null ? void 0 : w.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 (
|
|
643
|
-
const
|
|
652
|
+
return (j, K) => {
|
|
653
|
+
const B = 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
|
-
[
|
|
679
|
+
[B, 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,19 +695,19 @@ 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
|
-
[
|
|
700
|
+
[B, 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
|
`)
|
|
699
709
|
}, null, 8, ["icon", "class"])) : y("", !0),
|
|
700
|
-
e(d) ? (t(), s("div",
|
|
710
|
+
e(d) ? (t(), s("div", wn, [
|
|
701
711
|
F(kn, null, {
|
|
702
712
|
text: v(() => [
|
|
703
713
|
Q("Copiar")
|
|
@@ -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(Bn, [["__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:
|
|
1257
|
+
const { data: { error: P, result: w } } = await qt(`${gt}/${i.$id}/upload?name=${S.name}`, R, {
|
|
1248
1258
|
params: {
|
|
1249
1259
|
method: "POST",
|
|
1250
1260
|
headers: {
|
|
@@ -1256,43 +1266,43 @@ const He = /* @__PURE__ */ K(po, [["__scopeId", "data-v-153a2e0f"]]), _o = { cla
|
|
|
1256
1266
|
if (P)
|
|
1257
1267
|
return;
|
|
1258
1268
|
n("update:modelValue", {
|
|
1259
|
-
tempId:
|
|
1269
|
+
tempId: w.tempId,
|
|
1260
1270
|
file: S
|
|
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, w, j, K, B;
|
|
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
|
-
(
|
|
1293
|
+
(w = b.modelValue) != null && w._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
|
-
])) : (
|
|
1315
|
+
])) : (B = b.modelValue) != null && B._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" }, wo = { class: "search__input" }, Bo = ["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({}), w = () => {
|
|
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, B());
|
|
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:
|
|
1453
|
-
filters:
|
|
1462
|
+
offset: b.value * Ee,
|
|
1463
|
+
filters: w()
|
|
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,18 +1473,18 @@ 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
|
+
...w(),
|
|
1469
1479
|
...z.length > 0 && {
|
|
1470
1480
|
$or: z
|
|
1471
1481
|
}
|
|
1472
1482
|
}
|
|
1473
1483
|
});
|
|
1474
|
-
},
|
|
1484
|
+
}, B = 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,22 +1492,22 @@ 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, B(), 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, B();
|
|
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
|
-
z && !U &&
|
|
1499
|
-
}),
|
|
1500
|
-
l.selectOnly &&
|
|
1508
|
+
z && !U && B();
|
|
1509
|
+
}), bt(() => {
|
|
1510
|
+
l.selectOnly && B();
|
|
1501
1511
|
});
|
|
1502
1512
|
const ne = (z) => {
|
|
1503
1513
|
p.value = z, l.selectOnly || i("update:modelValue", z);
|
|
@@ -1507,16 +1517,16 @@ 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
|
}, [
|
|
1514
|
-
F(
|
|
1524
|
+
F(we, {
|
|
1515
1525
|
float: "",
|
|
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
|
-
I("div",
|
|
1540
|
-
e(
|
|
1549
|
+
I("div", wo, [
|
|
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,10 +1555,10 @@ 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
|
-
}, k(e(L)(g)), 9,
|
|
1561
|
+
}, k(e(L)(g)), 9, Bo))), 128))
|
|
1552
1562
|
]),
|
|
1553
1563
|
_: 1
|
|
1554
1564
|
}, 8, ["modelValue"])) : y("", !0),
|
|
@@ -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"), w = 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
|
-
},
|
|
1762
|
-
var q, fe,
|
|
1763
|
-
const
|
|
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
|
+
}, B = j(([f, M]) => K(f, M)), te = qe(), V = {}, T = (f, M) => {
|
|
1772
|
+
var q, fe, Be, Se;
|
|
1773
|
+
const D = [], g = ((fe = (q = o.value) == null ? void 0 : q.fields) == null ? void 0 : fe[f]) || ((Se = (Be = o.value) == null ? void 0 : Be.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,
|
|
1813
|
-
var fe,
|
|
1821
|
+
I("fieldset", Ho, [
|
|
1822
|
+
(t(!0), s(N, null, H(e(B), ([O, q]) => {
|
|
1823
|
+
var fe, Be, 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
|
-
(!("type" in q) || q.type !== "boolean" || f.searchOnly) && !q.noLabel && !e(P) && !e(
|
|
1829
|
+
(!("type" in q) || q.type !== "boolean" || f.searchOnly) && !q.noLabel && !e(P) && !e(w) ? (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 = (
|
|
1850
|
+
}), void 0, !0) : (Se = (Be = (fe = f.layout) == null ? void 0 : fe.fields) == null ? void 0 : Be[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,33 +1992,33 @@ 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
|
};
|
|
2000
|
-
return (_, d) => (t(), $(
|
|
2010
|
+
return (_, d) => (t(), $(we, {
|
|
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
|
-
return t(), $(
|
|
2090
|
+
return t(), $(we, {
|
|
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,19 +2205,19 @@ 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 = {
|
|
2208
2218
|
key: 1,
|
|
2209
2219
|
class: "table__cell-container"
|
|
2210
|
-
}, ka = { class: "table__cell-grid" }, Va = { key: 0 }, Ca = { key: 1 }, Oa = { key: 0 }, Ia = ["href"], Aa = { key: 3 },
|
|
2220
|
+
}, ka = { class: "table__cell-grid" }, Va = { key: 0 }, Ca = { key: 1 }, Oa = { key: 0 }, Ia = ["href"], Aa = { key: 3 }, wa = { key: 1 }, Ba = { key: 2 }, Sa = { key: 0 }, Ta = { key: 1 }, ja = { key: 2 }, Ra = {
|
|
2211
2221
|
key: 1,
|
|
2212
2222
|
class: "no-print"
|
|
2213
2223
|
}, La = { class: "table__cell-actions" }, za = {
|
|
@@ -2229,91 +2239,91 @@ 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
|
-
onChange: A[0] || (A[0] = (
|
|
2282
|
+
onChange: A[0] || (A[0] = (w) => e(u).$actions.selectAllItems(w.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), ([w, j], K) => (t(), s("th", {
|
|
2286
|
+
key: `header-${K}`,
|
|
2277
2287
|
class: "table__header"
|
|
2278
|
-
}, k(
|
|
2288
|
+
}, k(j.description || e(L)(w)), 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, (w) => {
|
|
2296
|
+
var j, K;
|
|
2287
2297
|
return t(), s("tr", {
|
|
2288
|
-
key:
|
|
2289
|
-
onClick: (
|
|
2298
|
+
key: w._id,
|
|
2299
|
+
onClick: (B) => n("itemClick", w)
|
|
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
|
-
"onUpdate:modelValue": A[1] || (A[1] = (
|
|
2303
|
+
"onUpdate:modelValue": A[1] || (A[1] = (B) => _.value = B),
|
|
2294
2304
|
type: "checkbox",
|
|
2295
|
-
value:
|
|
2296
|
-
}, null, 8,
|
|
2297
|
-
[
|
|
2305
|
+
value: w._id
|
|
2306
|
+
}, null, 8, ha), [
|
|
2307
|
+
[wt, _.value]
|
|
2298
2308
|
])
|
|
2299
2309
|
])) : y("", !0),
|
|
2300
|
-
(t(!0), s(N, null,
|
|
2310
|
+
(t(!0), s(N, null, H(Object.entries(m.columns), ([B, te], V) => {
|
|
2301
2311
|
var T, ae, le;
|
|
2302
2312
|
return t(), s("td", {
|
|
2303
|
-
key: `column-${
|
|
2313
|
+
key: `column-${w._id}-${V}`
|
|
2304
2314
|
}, [
|
|
2305
|
-
I("div",
|
|
2306
|
-
`row-${
|
|
2307
|
-
C(m.$slots, `row-${
|
|
2315
|
+
I("div", ba, k(te.description || e(L)(B)), 1),
|
|
2316
|
+
`row-${B}` in m.$slots ? (t(), s("div", $a, [
|
|
2317
|
+
C(m.$slots, `row-${B}`, G({ ref_for: !0 }, {
|
|
2308
2318
|
store: e(u),
|
|
2309
|
-
column:
|
|
2319
|
+
column: B,
|
|
2310
2320
|
property: te,
|
|
2311
|
-
row:
|
|
2321
|
+
row: w
|
|
2312
2322
|
}), void 0, !0)
|
|
2313
2323
|
])) : (t(), s("div", ga, [
|
|
2314
2324
|
I("div", ka, [
|
|
2315
2325
|
"type" in te && te.type === "boolean" ? (t(), s("div", Va, [
|
|
2316
|
-
B
|
|
2326
|
+
w[B] ? (t(), $(Z, {
|
|
2317
2327
|
key: 0,
|
|
2318
2328
|
icon: "check",
|
|
2319
2329
|
"icon-classes": "aeria-blueish"
|
|
@@ -2333,42 +2343,42 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2333
2343
|
_: 1
|
|
2334
2344
|
}))
|
|
2335
2345
|
])) : ((T = e(me)(te)) == null ? void 0 : T.$ref) === "file" ? (t(), s("div", Ca, [
|
|
2336
|
-
B
|
|
2337
|
-
"items" in te && B
|
|
2346
|
+
w[B] ? (t(), s("div", Oa, [
|
|
2347
|
+
"items" in te && w[B][0] && /^image/.test(w[B][0].type) ? (t(), $(De, {
|
|
2338
2348
|
key: 0,
|
|
2339
|
-
modelValue: B
|
|
2340
|
-
"onUpdate:modelValue": (ne) => B
|
|
2349
|
+
modelValue: w[B][0].link,
|
|
2350
|
+
"onUpdate:modelValue": (ne) => w[B][0].link = ne,
|
|
2341
2351
|
expandable: "",
|
|
2342
|
-
meta: B
|
|
2352
|
+
meta: w[B][0],
|
|
2343
2353
|
alt: "Row image",
|
|
2344
2354
|
class: "table__picture"
|
|
2345
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(B
|
|
2355
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : /^image/.test(w[B].type) ? (t(), $(De, {
|
|
2346
2356
|
key: 1,
|
|
2347
|
-
modelValue: B
|
|
2348
|
-
"onUpdate:modelValue": (ne) => B
|
|
2357
|
+
modelValue: w[B].link,
|
|
2358
|
+
"onUpdate:modelValue": (ne) => w[B].link = ne,
|
|
2349
2359
|
expandable: "",
|
|
2350
|
-
meta: B
|
|
2360
|
+
meta: w[B],
|
|
2351
2361
|
alt: "Row image",
|
|
2352
2362
|
class: "table__picture"
|
|
2353
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : B
|
|
2363
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "meta"])) : w[B].link ? (t(), s("a", {
|
|
2354
2364
|
key: 2,
|
|
2355
|
-
href: B
|
|
2365
|
+
href: w[B].link,
|
|
2356
2366
|
style: { "font-size": "10pt" }
|
|
2357
|
-
}, k(B
|
|
2358
|
-
])) : (t(), s("div",
|
|
2359
|
-
])) : (t(), s("div",
|
|
2367
|
+
}, k(w[B].filename), 9, Ia)) : (t(), s("div", Aa, " - "))
|
|
2368
|
+
])) : (t(), s("div", wa, " - "))
|
|
2369
|
+
])) : (t(), s("div", Ba, [
|
|
2360
2370
|
e(u) ? (t(), s("span", Sa, k(e(u).$actions.formatValue({
|
|
2361
|
-
value: B
|
|
2362
|
-
key:
|
|
2371
|
+
value: w[B],
|
|
2372
|
+
key: B,
|
|
2363
2373
|
property: te
|
|
2364
|
-
})), 1)) : (t(), s("span", Ta, k(Array.isArray(B
|
|
2374
|
+
})), 1)) : (t(), s("span", Ta, k(Array.isArray(w[B]) ? w[B].filter((ne) => !!ne).join(", ") : [void 0, null].includes(w[B]) ? "-" : w[B]), 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({
|
|
2370
|
-
value: B
|
|
2371
|
-
key:
|
|
2380
|
+
value: w[B],
|
|
2381
|
+
key: B,
|
|
2372
2382
|
property: te,
|
|
2373
2383
|
index: ne
|
|
2374
2384
|
})), 1))), 128))
|
|
@@ -2378,70 +2388,70 @@ 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,
|
|
2384
|
-
key: `action-${
|
|
2393
|
+
(t(!0), s(N, null, H(h(w), (B) => (t(), $(re, {
|
|
2394
|
+
key: `action-${B.action}`,
|
|
2385
2395
|
small: "",
|
|
2386
2396
|
variant: "transparent",
|
|
2387
|
-
icon:
|
|
2388
|
-
style:
|
|
2389
|
-
onClick: (te) =>
|
|
2397
|
+
icon: B.icon,
|
|
2398
|
+
style: be(o(w, B)),
|
|
2399
|
+
onClick: (te) => B.click(w)
|
|
2390
2400
|
}, {
|
|
2391
2401
|
default: v(() => [
|
|
2392
|
-
Q(k(e(L)(
|
|
2402
|
+
Q(k(e(L)(B.label)), 1)
|
|
2393
2403
|
]),
|
|
2394
2404
|
_: 2
|
|
2395
2405
|
}, 1032, ["icon", "style", "onClick"]))), 128)),
|
|
2396
|
-
p(
|
|
2406
|
+
p(w).length > 0 ? (t(), $(Oe, G({
|
|
2397
2407
|
key: 0,
|
|
2398
2408
|
ref_for: !0
|
|
2399
2409
|
}, {
|
|
2400
|
-
subject:
|
|
2401
|
-
actions: p(
|
|
2410
|
+
subject: w,
|
|
2411
|
+
actions: p(w)
|
|
2402
2412
|
}), {
|
|
2403
2413
|
default: v(({
|
|
2404
|
-
visible:
|
|
2414
|
+
visible: B
|
|
2405
2415
|
}) => [
|
|
2406
2416
|
x(F(Z, {
|
|
2407
2417
|
reactive: "",
|
|
2408
|
-
active:
|
|
2418
|
+
active: B,
|
|
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(w).length + (p(w).length ? 1 : 0)}, 1fr);`)
|
|
2421
2431
|
}, [
|
|
2422
|
-
(t(!0), s(N, null,
|
|
2423
|
-
key: `action-${
|
|
2432
|
+
(t(!0), s(N, null, H(h(w), (B) => (t(), $(ve, {
|
|
2433
|
+
key: `action-${B.action}`,
|
|
2424
2434
|
class: "table__mobile-actions-button",
|
|
2425
|
-
onClick: (te) =>
|
|
2435
|
+
onClick: (te) => B.click(w)
|
|
2426
2436
|
}, {
|
|
2427
2437
|
default: v(() => [
|
|
2428
2438
|
F(Z, {
|
|
2429
|
-
icon:
|
|
2439
|
+
icon: B.icon || "gear"
|
|
2430
2440
|
}, {
|
|
2431
2441
|
default: v(() => [
|
|
2432
|
-
Q(k(e(L)(
|
|
2442
|
+
Q(k(e(L)(B.label)), 1)
|
|
2433
2443
|
]),
|
|
2434
2444
|
_: 2
|
|
2435
2445
|
}, 1032, ["icon"])
|
|
2436
2446
|
]),
|
|
2437
2447
|
_: 2
|
|
2438
2448
|
}, 1032, ["onClick"]))), 128)),
|
|
2439
|
-
p(
|
|
2449
|
+
p(w).length > 0 ? (t(), $(Oe, G({
|
|
2440
2450
|
key: 0,
|
|
2441
2451
|
ref_for: !0
|
|
2442
2452
|
}, {
|
|
2443
|
-
subject:
|
|
2444
|
-
actions: p(
|
|
2453
|
+
subject: w,
|
|
2454
|
+
actions: p(w)
|
|
2445
2455
|
}), {
|
|
2446
2456
|
default: v(() => [
|
|
2447
2457
|
F(Z, {
|
|
@@ -2454,19 +2464,19 @@ const We = /* @__PURE__ */ K(oa, [["__scopeId", "data-v-e02fe7fe"]]), aa = /* @_
|
|
|
2454
2464
|
], 4)
|
|
2455
2465
|
])) : y("", !0),
|
|
2456
2466
|
I("div", {
|
|
2457
|
-
id: `dropdown-${
|
|
2467
|
+
id: `dropdown-${w._id}`
|
|
2458
2468
|
}, null, 8, Ma)
|
|
2459
2469
|
], 8, va);
|
|
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-24d396f4"), 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
|
-
})),
|
|
2680
|
-
},
|
|
2689
|
+
})), o.pagination.offset = V.offset, o.pagination.limit = V.limit, R();
|
|
2690
|
+
}, w = _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
|
-
|
|
2715
|
-
|
|
2724
|
+
Bt(() => {
|
|
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
|
|
2777
|
+
const B = W(() => o.individualActions.map((V) => ({
|
|
2768
2778
|
click: Le.value(V),
|
|
2769
2779
|
...V
|
|
2770
|
-
}))), te = W(() =>
|
|
2771
|
-
return ye(Ue, W(() => l.collection)), ye("individualActions",
|
|
2772
|
-
var ne, se, z, U, f, M,
|
|
2780
|
+
}))), te = W(() => o.actions.filter((V) => !V.button));
|
|
2781
|
+
return ye(Ue, W(() => l.collection)), ye("individualActions", B), (V, T) => {
|
|
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,16 +2940,17 @@ 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(
|
|
2935
|
-
collection: e(
|
|
2943
|
+
e(o).itemsCount === 0 && !e(o).loading.getAll && S.value && (e(w) || V.$slots.empty) ? (t(), s("div", tl, [
|
|
2944
|
+
e(w) ? (t(), $(he(e(w)), 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)({
|
|
2942
|
-
action: "spawnAdd"
|
|
2952
|
+
action: "spawnAdd",
|
|
2953
|
+
event: "spawnAdd"
|
|
2943
2954
|
})())
|
|
2944
2955
|
}, {
|
|
2945
2956
|
default: v(() => [
|
|
@@ -2950,18 +2961,18 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ja = (c) => (De("data-v-c189
|
|
|
2950
2961
|
]),
|
|
2951
2962
|
_: 1
|
|
2952
2963
|
}, 16)) : C(V.$slots, "empty", de(G({ key: 1 }, {
|
|
2953
|
-
collection: e(
|
|
2964
|
+
collection: e(o).$id
|
|
2954
2965
|
})), void 0, !0)
|
|
2955
2966
|
])) : V.$slots.component ? C(V.$slots, "component", de(G({ key: 1 }, {
|
|
2956
|
-
store: e(
|
|
2957
|
-
})), void 0, !0) : (t(), $(
|
|
2958
|
-
individualActions:
|
|
2959
|
-
layoutOptions: ((M = V.layout) == null ? void 0 : M.options) || e(
|
|
2967
|
+
store: e(o)
|
|
2968
|
+
})), void 0, !0) : (t(), $(he(e(Ya)(((f = V.layout) == null ? void 0 : f.name) || e(o).$currentLayout)), G({ key: 2 }, {
|
|
2969
|
+
individualActions: B.value,
|
|
2970
|
+
layoutOptions: ((M = V.layout) == null ? void 0 : M.options) || e(o).layout.options,
|
|
2960
2971
|
componentProps: V.componentProps
|
|
2961
2972
|
}, {
|
|
2962
|
-
"component-name": ((
|
|
2973
|
+
"component-name": ((D = V.layout) == null ? void 0 : D.name) || e(o).$currentLayout
|
|
2963
2974
|
}), ce({ _: 2 }, [
|
|
2964
|
-
|
|
2975
|
+
H(Object.keys(V.$slots).filter((g) => g.startsWith("row-")), (g) => ({
|
|
2965
2976
|
name: g,
|
|
2966
2977
|
fn: v((O) => [
|
|
2967
2978
|
C(V.$slots, g, de(ge(O)), void 0, !0)
|
|
@@ -2976,11 +2987,11 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ja = (c) => (De("data-v-c189
|
|
|
2976
2987
|
} : void 0
|
|
2977
2988
|
]), 1040, ["component-name"]))
|
|
2978
2989
|
])), [
|
|
2979
|
-
[le, (!e(p) ||
|
|
2990
|
+
[le, (!e(p) || b.value === ht) && e(o).loading.getAll]
|
|
2980
2991
|
]),
|
|
2981
|
-
!e(
|
|
2992
|
+
!e(o).loading.getAll && e(o).itemsCount > 0 ? (t(), s("div", nl, [
|
|
2982
2993
|
F(Fn, {
|
|
2983
|
-
pagination: e(
|
|
2994
|
+
pagination: e(o).pagination,
|
|
2984
2995
|
onPaginate: P
|
|
2985
2996
|
}, null, 8, ["pagination"])
|
|
2986
2997
|
])) : y("", !0)
|
|
@@ -2988,17 +2999,17 @@ const Ve = J(!1), Le = J((...c) => null), yt = J(), Ja = (c) => (De("data-v-c189
|
|
|
2988
2999
|
};
|
|
2989
3000
|
}
|
|
2990
3001
|
});
|
|
2991
|
-
const Ul = /* @__PURE__ */
|
|
3002
|
+
const Ul = /* @__PURE__ */ X(ol, [["__scopeId", "data-v-24d396f4"]]), al = { class: "prompt" }, ll = /* @__PURE__ */ E({
|
|
2992
3003
|
__name: "aeria-prompt",
|
|
2993
3004
|
props: {
|
|
2994
3005
|
title: {},
|
|
2995
|
-
|
|
3006
|
+
options: {}
|
|
2996
3007
|
},
|
|
2997
3008
|
setup(c) {
|
|
2998
|
-
const r = ie("meta"), l = (n,
|
|
2999
|
-
r.$actions.fulfillPrompt(n,
|
|
3009
|
+
const r = ie("meta"), l = (n, a) => {
|
|
3010
|
+
r.$actions.fulfillPrompt(n, a);
|
|
3000
3011
|
};
|
|
3001
|
-
return (n,
|
|
3012
|
+
return (n, a) => (t(), $(we, {
|
|
3002
3013
|
float: "",
|
|
3003
3014
|
"fill-footer": "",
|
|
3004
3015
|
"close-hint": !1,
|
|
@@ -3006,14 +3017,14 @@ const Ul = /* @__PURE__ */ K(ol, [["__scopeId", "data-v-c189a79e"]]), al = { cla
|
|
|
3006
3017
|
}, ce({
|
|
3007
3018
|
footer: v(() => [
|
|
3008
3019
|
I("div", {
|
|
3009
|
-
class: "
|
|
3010
|
-
style:
|
|
3020
|
+
class: "prompt__options",
|
|
3021
|
+
style: be(`grid-template-columns: repeat(${Object.keys(n.options).length}, 1fr)`)
|
|
3011
3022
|
}, [
|
|
3012
|
-
(t(!0), s(N, null,
|
|
3013
|
-
key: `
|
|
3014
|
-
class:
|
|
3015
|
-
|
|
3016
|
-
|
|
3023
|
+
(t(!0), s(N, null, H(Object.entries(n.options), ([i, u], _) => (t(), $(ve, {
|
|
3024
|
+
key: `option-${_}`,
|
|
3025
|
+
class: Y(`
|
|
3026
|
+
prompt__option
|
|
3027
|
+
prompt__option--${u.variant || "primary"}
|
|
3017
3028
|
`),
|
|
3018
3029
|
onClick: (d) => u.click ? u.click(i, u) : l(i, u)
|
|
3019
3030
|
}, {
|
|
@@ -3041,7 +3052,7 @@ const Ul = /* @__PURE__ */ K(ol, [["__scopeId", "data-v-c189a79e"]]), al = { cla
|
|
|
3041
3052
|
]), 1024));
|
|
3042
3053
|
}
|
|
3043
3054
|
});
|
|
3044
|
-
const sl = /* @__PURE__ */
|
|
3055
|
+
const sl = /* @__PURE__ */ X(ll, [["__scopeId", "data-v-c069c1ef"]]), il = { class: "toast__content" }, rl = { class: "toast__time" }, ul = /* @__PURE__ */ E({
|
|
3045
3056
|
__name: "aeria-toast",
|
|
3046
3057
|
props: {
|
|
3047
3058
|
idx: {},
|
|
@@ -3052,9 +3063,9 @@ const sl = /* @__PURE__ */ K(ll, [["__scopeId", "data-v-32d9d465"]]), il = { cla
|
|
|
3052
3063
|
setup(c) {
|
|
3053
3064
|
const r = ie("meta");
|
|
3054
3065
|
return (l, n) => {
|
|
3055
|
-
const
|
|
3066
|
+
const a = oe("clickable");
|
|
3056
3067
|
return x((t(), s("div", {
|
|
3057
|
-
class:
|
|
3068
|
+
class: Y({
|
|
3058
3069
|
toast: !0,
|
|
3059
3070
|
"toast--animate": e(r).toasts[0].itr === l.itr
|
|
3060
3071
|
}),
|
|
@@ -3070,20 +3081,20 @@ const sl = /* @__PURE__ */ K(ll, [["__scopeId", "data-v-32d9d465"]]), il = { cla
|
|
|
3070
3081
|
I("div", rl, k(l.formatDateTime(l.date, { hoursOnly: !0 })), 1)
|
|
3071
3082
|
])
|
|
3072
3083
|
], 34)), [
|
|
3073
|
-
[
|
|
3084
|
+
[a]
|
|
3074
3085
|
]);
|
|
3075
3086
|
};
|
|
3076
3087
|
}
|
|
3077
3088
|
});
|
|
3078
|
-
const cl = /* @__PURE__ */
|
|
3089
|
+
const cl = /* @__PURE__ */ X(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["innerHTML"], pl = { class: "main__toasts" }, _l = ["innerHTML"], ml = /* @__PURE__ */ E({
|
|
3079
3090
|
__name: "aeria-main",
|
|
3080
3091
|
setup(c) {
|
|
3081
3092
|
const r = ie("meta"), l = W(() => r.themeOverride || r.theme);
|
|
3082
|
-
return (n,
|
|
3093
|
+
return (n, a) => {
|
|
3083
3094
|
const i = St("router-view");
|
|
3084
3095
|
return t(), s("main", {
|
|
3085
3096
|
id: "main",
|
|
3086
|
-
class:
|
|
3097
|
+
class: Y(`
|
|
3087
3098
|
main
|
|
3088
3099
|
main--${l.value}
|
|
3089
3100
|
${l.value === "dark" && "tw-dark"}
|
|
@@ -3093,8 +3104,8 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
|
|
|
3093
3104
|
default: v(() => [
|
|
3094
3105
|
F(i, null, {
|
|
3095
3106
|
default: v(({ Component: u }) => [
|
|
3096
|
-
(t(), $(
|
|
3097
|
-
|
|
3107
|
+
(t(), $(he(u), null, ce({ _: 2 }, [
|
|
3108
|
+
H(Object.keys(n.$slots), (_) => ({
|
|
3098
3109
|
name: _,
|
|
3099
3110
|
fn: v(() => [
|
|
3100
3111
|
C(n.$slots, _, {}, void 0, !0)
|
|
@@ -3108,14 +3119,14 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
|
|
|
3108
3119
|
_: 3
|
|
3109
3120
|
})),
|
|
3110
3121
|
C(n.$slots, "default", {}, void 0, !0),
|
|
3111
|
-
F(
|
|
3122
|
+
F(we, G({
|
|
3112
3123
|
modelValue: e(r).modal.visible,
|
|
3113
|
-
"onUpdate:modelValue":
|
|
3124
|
+
"onUpdate:modelValue": a[0] || (a[0] = (u) => e(r).modal.visible = u),
|
|
3114
3125
|
float: "",
|
|
3115
3126
|
"close-hint": ""
|
|
3116
3127
|
}, e(r).modal, {
|
|
3117
3128
|
"overlay-layer": 70,
|
|
3118
|
-
onOverlayClick:
|
|
3129
|
+
onOverlayClick: a[1] || (a[1] = (u) => e(r).modal.visible = !1)
|
|
3119
3130
|
}), {
|
|
3120
3131
|
default: v(() => [
|
|
3121
3132
|
e(r).modal.body ? (t(), s("div", {
|
|
@@ -3123,7 +3134,7 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
|
|
|
3123
3134
|
style: { "white-space": "pre-wrap" },
|
|
3124
3135
|
innerHTML: e(r).modal.body
|
|
3125
3136
|
}, null, 8, dl)) : y("", !0),
|
|
3126
|
-
e(r).modal.component ? (t(), $(
|
|
3137
|
+
e(r).modal.component ? (t(), $(he(e(r).modal.component), { key: 1 })) : y("", !0)
|
|
3127
3138
|
]),
|
|
3128
3139
|
_: 1
|
|
3129
3140
|
}, 16, ["modelValue"]),
|
|
@@ -3134,7 +3145,7 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
|
|
|
3134
3145
|
_: 1
|
|
3135
3146
|
}, 16)) : y("", !0),
|
|
3136
3147
|
I("div", pl, [
|
|
3137
|
-
(t(!0), s(N, null,
|
|
3148
|
+
(t(!0), s(N, null, H(e(r).toasts, (u) => (t(), $(cl, G({ ref_for: !0 }, u, {
|
|
3138
3149
|
key: `toast-${u.itr}`
|
|
3139
3150
|
}), {
|
|
3140
3151
|
default: v(() => [
|
|
@@ -3149,11 +3160,11 @@ const cl = /* @__PURE__ */ K(ul, [["__scopeId", "data-v-21bbe178"]]), dl = ["inn
|
|
|
3149
3160
|
};
|
|
3150
3161
|
}
|
|
3151
3162
|
});
|
|
3152
|
-
const El = /* @__PURE__ */
|
|
3163
|
+
const El = /* @__PURE__ */ X(ml, [["__scopeId", "data-v-1166be3d"]]);
|
|
3153
3164
|
const fl = {}, vl = { class: "menu" };
|
|
3154
3165
|
function yl(c, r) {
|
|
3155
3166
|
return t(), s("menu", vl, [
|
|
3156
|
-
(t(!0), s(N, null,
|
|
3167
|
+
(t(!0), s(N, null, H(Object.keys(c.$slots), (l) => (t(), s("div", {
|
|
3157
3168
|
key: l,
|
|
3158
3169
|
class: "menu__entry"
|
|
3159
3170
|
}, [
|
|
@@ -3161,7 +3172,7 @@ function yl(c, r) {
|
|
|
3161
3172
|
]))), 128))
|
|
3162
3173
|
]);
|
|
3163
3174
|
}
|
|
3164
|
-
const
|
|
3175
|
+
const Dl = /* @__PURE__ */ X(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb"]]), hl = { class: "tabs" }, bl = {
|
|
3165
3176
|
key: 0,
|
|
3166
3177
|
class: "tabs__horizontal"
|
|
3167
3178
|
}, $l = {
|
|
@@ -3178,7 +3189,7 @@ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3178
3189
|
dropdown: { type: Boolean }
|
|
3179
3190
|
},
|
|
3180
3191
|
setup(c) {
|
|
3181
|
-
const r = c, l = jt(), n = Ae(),
|
|
3192
|
+
const r = c, l = jt(), n = Ae(), a = qe(), i = W(() => {
|
|
3182
3193
|
if (r.query) {
|
|
3183
3194
|
const _ = n.currentRoute.value.query[r.query];
|
|
3184
3195
|
if (_)
|
|
@@ -3201,17 +3212,17 @@ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3201
3212
|
}));
|
|
3202
3213
|
};
|
|
3203
3214
|
return (_, d) => {
|
|
3204
|
-
const
|
|
3205
|
-
return t(), s("div",
|
|
3206
|
-
e(
|
|
3215
|
+
const h = oe("clickable");
|
|
3216
|
+
return t(), s("div", hl, [
|
|
3217
|
+
e(a).md && !_.dropdown ? (t(), s("div", bl, [
|
|
3207
3218
|
_.$slots.default ? (t(), s("div", $l, [
|
|
3208
3219
|
C(_.$slots, "default", {}, void 0, !0)
|
|
3209
3220
|
])) : y("", !0),
|
|
3210
|
-
(t(!0), s(N, null,
|
|
3221
|
+
(t(!0), s(N, null, H(Object.keys(_.$slots).filter((p) => p !== "default"), (p, o) => (t(), s("div", {
|
|
3211
3222
|
key: p,
|
|
3212
|
-
class:
|
|
3223
|
+
class: Y({
|
|
3213
3224
|
tabs__tab: !0,
|
|
3214
|
-
"tabs__tab--current": p === i.value || !i.value &&
|
|
3225
|
+
"tabs__tab--current": p === i.value || !i.value && o === 0
|
|
3215
3226
|
}),
|
|
3216
3227
|
onClick: (m) => u(p)
|
|
3217
3228
|
}, [
|
|
@@ -3232,16 +3243,16 @@ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3232
3243
|
]),
|
|
3233
3244
|
_: 2
|
|
3234
3245
|
}, 1032, ["active"])), [
|
|
3235
|
-
[
|
|
3246
|
+
[h]
|
|
3236
3247
|
])
|
|
3237
3248
|
]),
|
|
3238
3249
|
_: 2
|
|
3239
3250
|
}, [
|
|
3240
|
-
|
|
3251
|
+
H(Object.keys(_.$slots).filter((p) => p !== "default"), (p) => ({
|
|
3241
3252
|
name: p,
|
|
3242
3253
|
fn: v(() => [
|
|
3243
3254
|
I("div", {
|
|
3244
|
-
onClick: (
|
|
3255
|
+
onClick: (o) => u(p)
|
|
3245
3256
|
}, [
|
|
3246
3257
|
C(_.$slots, p, {}, void 0, !0)
|
|
3247
3258
|
], 8, Vl)
|
|
@@ -3253,7 +3264,7 @@ const Hl = /* @__PURE__ */ K(fl, [["render", yl], ["__scopeId", "data-v-3cfef7fb
|
|
|
3253
3264
|
};
|
|
3254
3265
|
}
|
|
3255
3266
|
});
|
|
3256
|
-
const Ol = /* @__PURE__ */
|
|
3267
|
+
const Ol = /* @__PURE__ */ X(Cl, [["__scopeId", "data-v-a20914ab"]]), Il = E({
|
|
3257
3268
|
props: {
|
|
3258
3269
|
initialValue: String,
|
|
3259
3270
|
promise: Promise
|
|
@@ -3264,39 +3275,39 @@ const Ol = /* @__PURE__ */ K(Cl, [["__scopeId", "data-v-a20914ab"]]), Il = E({
|
|
|
3264
3275
|
r.value = l;
|
|
3265
3276
|
}), () => Rt("div", r.value);
|
|
3266
3277
|
}
|
|
3267
|
-
}), Al = ["onClick"],
|
|
3278
|
+
}), Al = ["onClick"], wl = { key: 1 }, Bl = /* @__PURE__ */ E({
|
|
3268
3279
|
__name: "aeria-crud-topbar",
|
|
3269
3280
|
props: {
|
|
3270
3281
|
collection: {}
|
|
3271
3282
|
},
|
|
3272
3283
|
setup(c) {
|
|
3273
|
-
const r = c, n = Ae().currentRoute,
|
|
3274
|
-
const { error:
|
|
3284
|
+
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) => {
|
|
3285
|
+
const { error: h, result: p } = await d.$functions[_.badgeFunction]({
|
|
3275
3286
|
filters: _.filters
|
|
3276
3287
|
});
|
|
3277
|
-
return
|
|
3288
|
+
return h ? 0 : p;
|
|
3278
3289
|
};
|
|
3279
3290
|
return (_, d) => i.value && i.value.description.filtersPresets ? (t(), $(Ol, {
|
|
3280
3291
|
key: 0,
|
|
3281
3292
|
dropdown: "",
|
|
3282
3293
|
query: "section"
|
|
3283
3294
|
}, ce({ _: 2 }, [
|
|
3284
|
-
|
|
3285
|
-
name:
|
|
3295
|
+
H(Object.entries(i.value.description.filtersPresets), ([h, p]) => ({
|
|
3296
|
+
name: h,
|
|
3286
3297
|
fn: v(() => [
|
|
3287
3298
|
I("div", {
|
|
3288
3299
|
class: "topbar__preset",
|
|
3289
|
-
onClick: (
|
|
3300
|
+
onClick: (o) => e(Ot)(p, i.value)
|
|
3290
3301
|
}, [
|
|
3291
3302
|
p.icon ? (t(), $(Z, {
|
|
3292
3303
|
key: 0,
|
|
3293
3304
|
icon: p.icon
|
|
3294
3305
|
}, {
|
|
3295
3306
|
default: v(() => [
|
|
3296
|
-
Q(k(p.label || e(L)(
|
|
3307
|
+
Q(k(p.label || e(L)(h, { plural: !0 })), 1)
|
|
3297
3308
|
]),
|
|
3298
3309
|
_: 2
|
|
3299
|
-
}, 1032, ["icon"])) : (t(), s("div",
|
|
3310
|
+
}, 1032, ["icon"])) : (t(), s("div", wl, k(p.label || e(L)(h, { plural: !0 })), 1)),
|
|
3300
3311
|
p.badgeFunction ? (t(), $($e, { key: 2 }, {
|
|
3301
3312
|
default: v(() => [
|
|
3302
3313
|
F(e(Il), {
|
|
@@ -3312,10 +3323,10 @@ const Ol = /* @__PURE__ */ K(Cl, [["__scopeId", "data-v-a20914ab"]]), Il = E({
|
|
|
3312
3323
|
]), 1024)) : y("", !0);
|
|
3313
3324
|
}
|
|
3314
3325
|
});
|
|
3315
|
-
const Sl = /* @__PURE__ */
|
|
3326
|
+
const Sl = /* @__PURE__ */ X(Bl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3316
3327
|
__proto__: null,
|
|
3317
3328
|
default: Sl
|
|
3318
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
3329
|
+
}, Symbol.toStringTag, { value: "Module" })), Hl = /* @__PURE__ */ E({
|
|
3319
3330
|
__name: "aeria-password-form",
|
|
3320
3331
|
props: {
|
|
3321
3332
|
modelValue: {}
|
|
@@ -3328,7 +3339,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
|
|
|
3328
3339
|
r.modelValue.password,
|
|
3329
3340
|
r.modelValue.confirmation
|
|
3330
3341
|
));
|
|
3331
|
-
return (
|
|
3342
|
+
return (a, i) => (t(), $(We, {
|
|
3332
3343
|
form: {
|
|
3333
3344
|
password: {
|
|
3334
3345
|
type: "string",
|
|
@@ -3341,12 +3352,12 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
|
|
|
3341
3352
|
inputType: "password"
|
|
3342
3353
|
}
|
|
3343
3354
|
},
|
|
3344
|
-
"model-value":
|
|
3345
|
-
"onUpdate:modelValue": i[0] || (i[0] = (u) =>
|
|
3355
|
+
"model-value": a.modelValue,
|
|
3356
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => a.$emit("update:modelValue", u))
|
|
3346
3357
|
}, {
|
|
3347
3358
|
after: v(() => [
|
|
3348
3359
|
I("div", null, k(n.value || "Senhas conferem"), 1),
|
|
3349
|
-
C(
|
|
3360
|
+
C(a.$slots, "default", de(ge({ passwordError: n.value })))
|
|
3350
3361
|
]),
|
|
3351
3362
|
_: 3
|
|
3352
3363
|
}, 8, ["model-value"]));
|
|
@@ -3369,7 +3380,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
|
|
|
3369
3380
|
{
|
|
3370
3381
|
path: "signin",
|
|
3371
3382
|
name: "/user/signin",
|
|
3372
|
-
component: () => import("./signin-
|
|
3383
|
+
component: () => import("./signin-154b251f.js"),
|
|
3373
3384
|
meta: {
|
|
3374
3385
|
title: "Autenticação"
|
|
3375
3386
|
}
|
|
@@ -3377,7 +3388,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
|
|
|
3377
3388
|
{
|
|
3378
3389
|
path: "signup",
|
|
3379
3390
|
name: "/user/signup",
|
|
3380
|
-
component: () => import("./signup-
|
|
3391
|
+
component: () => import("./signup-13a3075f.js"),
|
|
3381
3392
|
meta: {
|
|
3382
3393
|
title: "Registro"
|
|
3383
3394
|
}
|
|
@@ -3385,7 +3396,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
|
|
|
3385
3396
|
{
|
|
3386
3397
|
path: "activation",
|
|
3387
3398
|
name: "/user/activation",
|
|
3388
|
-
component: () => import("./activation-
|
|
3399
|
+
component: () => import("./activation-4323bfe9.js"),
|
|
3389
3400
|
meta: {
|
|
3390
3401
|
title: "Ativação"
|
|
3391
3402
|
}
|
|
@@ -3407,7 +3418,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
|
|
|
3407
3418
|
name: "/dashboard/:collection",
|
|
3408
3419
|
props: !0,
|
|
3409
3420
|
components: {
|
|
3410
|
-
default: () => import("./index-
|
|
3421
|
+
default: () => import("./index-537a3137.js"),
|
|
3411
3422
|
topbar: () => Promise.resolve().then(() => Tl)
|
|
3412
3423
|
},
|
|
3413
3424
|
meta: {
|
|
@@ -3419,7 +3430,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
|
|
|
3419
3430
|
name: "/dashboard/:collection/:id",
|
|
3420
3431
|
props: !0,
|
|
3421
3432
|
components: {
|
|
3422
|
-
default: () => import("./_id_-
|
|
3433
|
+
default: () => import("./_id_-96ff658c.js")
|
|
3423
3434
|
},
|
|
3424
3435
|
meta: {
|
|
3425
3436
|
title: "%viewTitle%"
|
|
@@ -3437,7 +3448,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
|
|
|
3437
3448
|
children: [
|
|
3438
3449
|
{
|
|
3439
3450
|
path: "profile",
|
|
3440
|
-
component: () => import("./index-
|
|
3451
|
+
component: () => import("./index-8e02a4aa.js"),
|
|
3441
3452
|
meta: {
|
|
3442
3453
|
title: "Meu perfil",
|
|
3443
3454
|
icon: "user-square"
|
|
@@ -3446,7 +3457,7 @@ const Sl = /* @__PURE__ */ K(wl, [["__scopeId", "data-v-85c3b087"]]), Tl = /* @_
|
|
|
3446
3457
|
{
|
|
3447
3458
|
path: "changepass",
|
|
3448
3459
|
name: "/dashboard/user/changepass",
|
|
3449
|
-
component: () => import("./index-
|
|
3460
|
+
component: () => import("./index-147848e1.js"),
|
|
3450
3461
|
meta: {
|
|
3451
3462
|
title: "Mudar senha",
|
|
3452
3463
|
icon: "lock"
|
|
@@ -3464,16 +3475,16 @@ export {
|
|
|
3464
3475
|
Sl as E,
|
|
3465
3476
|
Ql as F,
|
|
3466
3477
|
Gl as G,
|
|
3467
|
-
|
|
3478
|
+
Hl as _,
|
|
3468
3479
|
re as a,
|
|
3469
3480
|
Z as b,
|
|
3470
3481
|
Wn as c,
|
|
3471
3482
|
Ul as d,
|
|
3472
3483
|
la as e,
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3484
|
+
De as f,
|
|
3485
|
+
Dl as g,
|
|
3486
|
+
we as h,
|
|
3487
|
+
X as i,
|
|
3477
3488
|
Fl as j,
|
|
3478
3489
|
$e as k,
|
|
3479
3490
|
ve as l,
|
|
@@ -3483,7 +3494,7 @@ export {
|
|
|
3483
3494
|
kn as p,
|
|
3484
3495
|
El as q,
|
|
3485
3496
|
Fn as r,
|
|
3486
|
-
|
|
3497
|
+
Da as s,
|
|
3487
3498
|
Ol as t,
|
|
3488
3499
|
go as u,
|
|
3489
3500
|
ke as v,
|