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