@selfeesas/shared-components 0.1.8 → 0.2.0
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.
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
const
|
|
1
|
+
import { computed as i, markRaw as fe, defineComponent as G, getCurrentInstance as J, h as m, useAttrs as we, createBlock as W, openBlock as I, mergeProps as Z, withCtx as ee, createElementBlock as ve, Fragment as Be, renderList as Le, createVNode as me, ref as te, onBeforeUnmount as Re, Transition as Pe, withDirectives as Ae, inject as ne, createCommentVNode as Te } from "vue";
|
|
2
|
+
const X = {
|
|
3
3
|
xs: 18,
|
|
4
4
|
sm: 24,
|
|
5
5
|
md: 32,
|
|
6
6
|
lg: 38,
|
|
7
7
|
xl: 46
|
|
8
|
-
},
|
|
8
|
+
}, ge = {
|
|
9
9
|
size: String
|
|
10
10
|
};
|
|
11
|
-
function
|
|
12
|
-
return
|
|
11
|
+
function be(e, t = X) {
|
|
12
|
+
return i(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
return
|
|
14
|
+
function K(e) {
|
|
15
|
+
return fe(G(e));
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
return
|
|
17
|
+
function Oe(e) {
|
|
18
|
+
return fe(e);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function he(e, t) {
|
|
21
21
|
return e !== void 0 && e() || t;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
23
|
+
function j(e, t) {
|
|
24
24
|
return e !== void 0 ? t.concat(e()) : t;
|
|
25
25
|
}
|
|
26
|
-
const
|
|
26
|
+
const re = "0 0 24 24", H = (e) => e, U = (e) => `ionicons ${e}`, ye = {
|
|
27
27
|
"mdi-": (e) => `mdi ${e}`,
|
|
28
|
-
"icon-":
|
|
28
|
+
"icon-": H,
|
|
29
29
|
// fontawesome equiv
|
|
30
30
|
"bt-": (e) => `bt ${e}`,
|
|
31
31
|
"eva-": (e) => `eva ${e}`,
|
|
32
|
-
"ion-md":
|
|
33
|
-
"ion-ios":
|
|
34
|
-
"ion-logo":
|
|
35
|
-
"iconfont ":
|
|
32
|
+
"ion-md": U,
|
|
33
|
+
"ion-ios": U,
|
|
34
|
+
"ion-logo": U,
|
|
35
|
+
"iconfont ": H,
|
|
36
36
|
"ti-": (e) => `themify-icon ${e}`,
|
|
37
37
|
"bi-": (e) => `bootstrap-icons ${e}`,
|
|
38
|
-
"i-":
|
|
38
|
+
"i-": H
|
|
39
39
|
// UnoCSS pure icons
|
|
40
|
-
},
|
|
40
|
+
}, pe = {
|
|
41
41
|
o_: "-outlined",
|
|
42
42
|
r_: "-round",
|
|
43
43
|
s_: "-sharp"
|
|
44
|
-
},
|
|
44
|
+
}, ke = {
|
|
45
45
|
sym_o_: "-outlined",
|
|
46
46
|
sym_r_: "-rounded",
|
|
47
47
|
sym_s_: "-sharp"
|
|
48
|
-
},
|
|
48
|
+
}, ze = new RegExp("^(" + Object.keys(ye).join("|") + ")"), je = new RegExp("^(" + Object.keys(pe).join("|") + ")"), ae = new RegExp("^(" + Object.keys(ke).join("|") + ")"), Me = /^[Mm]\s?[-+]?\.?\d/, Fe = /^img:/, Ne = /^svguse:/, Ie = /^ion-/, Ke = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, D = K({
|
|
49
49
|
name: "QIcon",
|
|
50
50
|
props: {
|
|
51
|
-
...
|
|
51
|
+
...ge,
|
|
52
52
|
tag: {
|
|
53
53
|
type: String,
|
|
54
54
|
default: "i"
|
|
@@ -59,126 +59,456 @@ const Y = "0 0 24 24", F = (e) => e, V = (e) => `ionicons ${e}`, se = {
|
|
|
59
59
|
right: Boolean
|
|
60
60
|
},
|
|
61
61
|
setup(e, { slots: t }) {
|
|
62
|
-
const { proxy: { $q:
|
|
62
|
+
const { proxy: { $q: r } } = J(), n = be(e), a = i(
|
|
63
63
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
64
|
-
),
|
|
65
|
-
let
|
|
66
|
-
if (
|
|
64
|
+
), c = i(() => {
|
|
65
|
+
let s, o = e.name;
|
|
66
|
+
if (o === "none" || !o)
|
|
67
67
|
return { none: !0 };
|
|
68
|
-
if (
|
|
69
|
-
const
|
|
70
|
-
if (
|
|
71
|
-
if (
|
|
72
|
-
if (
|
|
68
|
+
if (r.iconMapFn !== null) {
|
|
69
|
+
const d = r.iconMapFn(o);
|
|
70
|
+
if (d !== void 0)
|
|
71
|
+
if (d.icon !== void 0) {
|
|
72
|
+
if (o = d.icon, o === "none" || !o)
|
|
73
73
|
return { none: !0 };
|
|
74
74
|
} else
|
|
75
75
|
return {
|
|
76
|
-
cls:
|
|
77
|
-
content:
|
|
76
|
+
cls: d.cls,
|
|
77
|
+
content: d.content !== void 0 ? d.content : " "
|
|
78
78
|
};
|
|
79
79
|
}
|
|
80
|
-
if (
|
|
81
|
-
const [
|
|
80
|
+
if (Me.test(o) === !0) {
|
|
81
|
+
const [d, b = re] = o.split("|");
|
|
82
82
|
return {
|
|
83
83
|
svg: !0,
|
|
84
|
-
viewBox:
|
|
85
|
-
nodes:
|
|
86
|
-
const [
|
|
87
|
-
return
|
|
84
|
+
viewBox: b,
|
|
85
|
+
nodes: d.split("&&").map((l) => {
|
|
86
|
+
const [f, g, k] = l.split("@@");
|
|
87
|
+
return m("path", { style: g, d: f, transform: k });
|
|
88
88
|
})
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
if (
|
|
91
|
+
if (Fe.test(o) === !0)
|
|
92
92
|
return {
|
|
93
93
|
img: !0,
|
|
94
|
-
src:
|
|
94
|
+
src: o.substring(4)
|
|
95
95
|
};
|
|
96
|
-
if (
|
|
97
|
-
const [
|
|
96
|
+
if (Ne.test(o) === !0) {
|
|
97
|
+
const [d, b = re] = o.split("|");
|
|
98
98
|
return {
|
|
99
99
|
svguse: !0,
|
|
100
|
-
src:
|
|
101
|
-
viewBox:
|
|
100
|
+
src: d.substring(7),
|
|
101
|
+
viewBox: b
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
let
|
|
105
|
-
const
|
|
106
|
-
if (
|
|
107
|
-
|
|
108
|
-
else if (
|
|
109
|
-
|
|
110
|
-
else if (
|
|
111
|
-
|
|
112
|
-
else if (
|
|
113
|
-
|
|
114
|
-
const
|
|
115
|
-
|
|
104
|
+
let h = " ";
|
|
105
|
+
const y = o.match(ze);
|
|
106
|
+
if (y !== null)
|
|
107
|
+
s = ye[y[1]](o);
|
|
108
|
+
else if (Ke.test(o) === !0)
|
|
109
|
+
s = o;
|
|
110
|
+
else if (Ie.test(o) === !0)
|
|
111
|
+
s = `ionicons ion-${r.platform.is.ios === !0 ? "ios" : "md"}${o.substring(3)}`;
|
|
112
|
+
else if (ae.test(o) === !0) {
|
|
113
|
+
s = "notranslate material-symbols";
|
|
114
|
+
const d = o.match(ae);
|
|
115
|
+
d !== null && (o = o.substring(6), s += ke[d[1]]), h = o;
|
|
116
116
|
} else {
|
|
117
|
-
|
|
118
|
-
const
|
|
119
|
-
|
|
117
|
+
s = "notranslate material-icons";
|
|
118
|
+
const d = o.match(je);
|
|
119
|
+
d !== null && (o = o.substring(2), s += pe[d[1]]), h = o;
|
|
120
120
|
}
|
|
121
121
|
return {
|
|
122
|
-
cls:
|
|
123
|
-
content:
|
|
122
|
+
cls: s,
|
|
123
|
+
content: h
|
|
124
124
|
};
|
|
125
125
|
});
|
|
126
126
|
return () => {
|
|
127
|
-
const
|
|
128
|
-
class:
|
|
127
|
+
const s = {
|
|
128
|
+
class: a.value,
|
|
129
129
|
style: n.value,
|
|
130
130
|
"aria-hidden": "true"
|
|
131
131
|
};
|
|
132
|
-
return
|
|
133
|
-
|
|
134
|
-
])) :
|
|
135
|
-
|
|
136
|
-
viewBox:
|
|
137
|
-
},
|
|
138
|
-
])) :
|
|
139
|
-
|
|
140
|
-
viewBox:
|
|
132
|
+
return c.value.none === !0 ? m(e.tag, s, he(t.default)) : c.value.img === !0 ? m(e.tag, s, j(t.default, [
|
|
133
|
+
m("img", { src: c.value.src })
|
|
134
|
+
])) : c.value.svg === !0 ? m(e.tag, s, j(t.default, [
|
|
135
|
+
m("svg", {
|
|
136
|
+
viewBox: c.value.viewBox || "0 0 24 24"
|
|
137
|
+
}, c.value.nodes)
|
|
138
|
+
])) : c.value.svguse === !0 ? m(e.tag, s, j(t.default, [
|
|
139
|
+
m("svg", {
|
|
140
|
+
viewBox: c.value.viewBox
|
|
141
141
|
}, [
|
|
142
|
-
|
|
142
|
+
m("use", { "xlink:href": c.value.src })
|
|
143
143
|
])
|
|
144
|
-
])) : (
|
|
145
|
-
|
|
144
|
+
])) : (c.value.cls !== void 0 && (s.class += " " + c.value.cls), m(e.tag, s, j(t.default, [
|
|
145
|
+
c.value.content
|
|
146
146
|
])));
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
|
-
})
|
|
149
|
+
});
|
|
150
|
+
function Ce(e, t) {
|
|
151
|
+
typeof t.type == "symbol" ? Array.isArray(t.children) === !0 && t.children.forEach((r) => {
|
|
152
|
+
Ce(e, r);
|
|
153
|
+
}) : e.add(t);
|
|
154
|
+
}
|
|
155
|
+
function Qe(e) {
|
|
156
|
+
const t = /* @__PURE__ */ new Set();
|
|
157
|
+
return e.forEach((r) => {
|
|
158
|
+
Ce(t, r);
|
|
159
|
+
}), Array.from(t);
|
|
160
|
+
}
|
|
161
|
+
function De(e) {
|
|
162
|
+
return e.appContext.config.globalProperties.$router !== void 0;
|
|
163
|
+
}
|
|
164
|
+
function le(e) {
|
|
165
|
+
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
166
|
+
}
|
|
167
|
+
function oe(e, t) {
|
|
168
|
+
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
169
|
+
}
|
|
170
|
+
function Ve(e, t) {
|
|
171
|
+
for (const r in t) {
|
|
172
|
+
const n = t[r], a = e[r];
|
|
173
|
+
if (typeof n == "string") {
|
|
174
|
+
if (n !== a)
|
|
175
|
+
return !1;
|
|
176
|
+
} else if (Array.isArray(a) === !1 || a.length !== n.length || n.some((c, s) => c !== a[s]))
|
|
177
|
+
return !1;
|
|
178
|
+
}
|
|
179
|
+
return !0;
|
|
180
|
+
}
|
|
181
|
+
function ue(e, t) {
|
|
182
|
+
return Array.isArray(t) === !0 ? e.length === t.length && e.every((r, n) => r === t[n]) : e.length === 1 && e[0] === t;
|
|
183
|
+
}
|
|
184
|
+
function He(e, t) {
|
|
185
|
+
return Array.isArray(e) === !0 ? ue(e, t) : Array.isArray(t) === !0 ? ue(t, e) : e === t;
|
|
186
|
+
}
|
|
187
|
+
function Ue(e, t) {
|
|
188
|
+
if (Object.keys(e).length !== Object.keys(t).length)
|
|
189
|
+
return !1;
|
|
190
|
+
for (const r in e)
|
|
191
|
+
if (He(e[r], t[r]) === !1)
|
|
192
|
+
return !1;
|
|
193
|
+
return !0;
|
|
194
|
+
}
|
|
195
|
+
const xe = {
|
|
196
|
+
// router-link
|
|
197
|
+
to: [String, Object],
|
|
198
|
+
replace: Boolean,
|
|
199
|
+
// regular <a> link
|
|
200
|
+
href: String,
|
|
201
|
+
target: String,
|
|
202
|
+
// state
|
|
203
|
+
disable: Boolean
|
|
204
|
+
}, We = {
|
|
205
|
+
...xe,
|
|
206
|
+
// router-link
|
|
207
|
+
exact: Boolean,
|
|
208
|
+
activeClass: {
|
|
209
|
+
type: String,
|
|
210
|
+
default: "q-router-link--active"
|
|
211
|
+
},
|
|
212
|
+
exactActiveClass: {
|
|
213
|
+
type: String,
|
|
214
|
+
default: "q-router-link--exact-active"
|
|
215
|
+
}
|
|
216
|
+
};
|
|
217
|
+
function qe({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
218
|
+
const r = J(), { props: n, proxy: a, emit: c } = r, s = De(r), o = i(() => n.disable !== !0 && n.href !== void 0), h = t === !0 ? i(
|
|
219
|
+
() => s === !0 && n.disable !== !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
220
|
+
) : i(
|
|
221
|
+
() => s === !0 && o.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
222
|
+
), y = i(() => h.value === !0 ? w(n.to) : null), d = i(() => y.value !== null), b = i(() => o.value === !0 || d.value === !0), l = i(() => n.type === "a" || b.value === !0 ? "a" : n.tag || e || "div"), f = i(() => o.value === !0 ? {
|
|
223
|
+
href: n.href,
|
|
224
|
+
target: n.target
|
|
225
|
+
} : d.value === !0 ? {
|
|
226
|
+
href: y.value.href,
|
|
227
|
+
target: n.target
|
|
228
|
+
} : {}), g = i(() => {
|
|
229
|
+
if (d.value === !1)
|
|
230
|
+
return -1;
|
|
231
|
+
const { matched: p } = y.value, { length: q } = p, E = p[q - 1];
|
|
232
|
+
if (E === void 0)
|
|
233
|
+
return -1;
|
|
234
|
+
const $ = a.$route.matched;
|
|
235
|
+
if ($.length === 0)
|
|
236
|
+
return -1;
|
|
237
|
+
const B = $.findIndex(
|
|
238
|
+
oe.bind(null, E)
|
|
239
|
+
);
|
|
240
|
+
if (B !== -1)
|
|
241
|
+
return B;
|
|
242
|
+
const Q = le(p[q - 2]);
|
|
243
|
+
return (
|
|
244
|
+
// we are dealing with nested routes
|
|
245
|
+
q > 1 && le(E) === Q && $[$.length - 1].path !== Q ? $.findIndex(
|
|
246
|
+
oe.bind(null, p[q - 2])
|
|
247
|
+
) : B
|
|
248
|
+
);
|
|
249
|
+
}), k = i(
|
|
250
|
+
() => d.value === !0 && g.value !== -1 && Ve(a.$route.params, y.value.params)
|
|
251
|
+
), v = i(
|
|
252
|
+
() => k.value === !0 && g.value === a.$route.matched.length - 1 && Ue(a.$route.params, y.value.params)
|
|
253
|
+
), x = i(() => d.value === !0 ? v.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
|
|
254
|
+
function w(p) {
|
|
255
|
+
try {
|
|
256
|
+
return a.$router.resolve(p);
|
|
257
|
+
} catch {
|
|
258
|
+
}
|
|
259
|
+
return null;
|
|
260
|
+
}
|
|
261
|
+
function L(p, { returnRouterError: q, to: E = n.to, replace: $ = n.replace } = {}) {
|
|
262
|
+
if (n.disable === !0)
|
|
263
|
+
return p.preventDefault(), Promise.resolve(!1);
|
|
264
|
+
if (
|
|
265
|
+
// don't redirect with control keys;
|
|
266
|
+
// should match RouterLink from Vue Router
|
|
267
|
+
p.metaKey || p.altKey || p.ctrlKey || p.shiftKey || p.button !== void 0 && p.button !== 0 || n.target === "_blank"
|
|
268
|
+
)
|
|
269
|
+
return Promise.resolve(!1);
|
|
270
|
+
p.preventDefault();
|
|
271
|
+
const B = a.$router[$ === !0 ? "replace" : "push"](E);
|
|
272
|
+
return q === !0 ? B : B.then(() => {
|
|
273
|
+
}).catch(() => {
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
function R(p) {
|
|
277
|
+
if (d.value === !0) {
|
|
278
|
+
const q = (E) => L(p, E);
|
|
279
|
+
c("click", p, q), p.defaultPrevented !== !0 && q();
|
|
280
|
+
} else
|
|
281
|
+
c("click", p);
|
|
282
|
+
}
|
|
283
|
+
return {
|
|
284
|
+
hasRouterLink: d,
|
|
285
|
+
hasHrefLink: o,
|
|
286
|
+
hasLink: b,
|
|
287
|
+
linkTag: l,
|
|
288
|
+
resolvedLink: y,
|
|
289
|
+
linkIsActive: k,
|
|
290
|
+
linkIsExactActive: v,
|
|
291
|
+
linkClass: x,
|
|
292
|
+
linkAttrs: f,
|
|
293
|
+
getLink: w,
|
|
294
|
+
navigateToRouterLink: L,
|
|
295
|
+
navigateOnClick: R
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
const Xe = K({
|
|
299
|
+
name: "QBreadcrumbsEl",
|
|
300
|
+
props: {
|
|
301
|
+
...We,
|
|
302
|
+
label: String,
|
|
303
|
+
icon: String,
|
|
304
|
+
tag: {
|
|
305
|
+
type: String,
|
|
306
|
+
default: "span"
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
emits: ["click"],
|
|
310
|
+
setup(e, { slots: t }) {
|
|
311
|
+
const { linkTag: r, linkAttrs: n, linkClass: a, navigateOnClick: c } = qe(), s = i(() => ({
|
|
312
|
+
class: "q-breadcrumbs__el q-link flex inline items-center relative-position " + (e.disable !== !0 ? "q-link--focusable" + a.value : "q-breadcrumbs__el--disable"),
|
|
313
|
+
...n.value,
|
|
314
|
+
onClick: c
|
|
315
|
+
})), o = i(
|
|
316
|
+
() => "q-breadcrumbs__el-icon" + (e.label !== void 0 ? " q-breadcrumbs__el-icon--with-label" : "")
|
|
317
|
+
);
|
|
318
|
+
return () => {
|
|
319
|
+
const h = [];
|
|
320
|
+
return e.icon !== void 0 && h.push(
|
|
321
|
+
m(D, {
|
|
322
|
+
class: o.value,
|
|
323
|
+
name: e.icon
|
|
324
|
+
})
|
|
325
|
+
), e.label !== void 0 && h.push(e.label), m(
|
|
326
|
+
r.value,
|
|
327
|
+
{ ...s.value },
|
|
328
|
+
j(t.default, h)
|
|
329
|
+
);
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
}), _e = {
|
|
333
|
+
left: "start",
|
|
334
|
+
center: "center",
|
|
335
|
+
right: "end",
|
|
336
|
+
between: "between",
|
|
337
|
+
around: "around",
|
|
338
|
+
evenly: "evenly",
|
|
339
|
+
stretch: "stretch"
|
|
340
|
+
}, Ye = Object.keys(_e), Ee = {
|
|
341
|
+
align: {
|
|
342
|
+
type: String,
|
|
343
|
+
validator: (e) => Ye.includes(e)
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
function Se(e) {
|
|
347
|
+
return i(() => {
|
|
348
|
+
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
349
|
+
return `${e.vertical === !0 ? "items" : "justify"}-${_e[t]}`;
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
const Ge = ["", !0], Je = K({
|
|
353
|
+
name: "QBreadcrumbs",
|
|
354
|
+
props: {
|
|
355
|
+
...Ee,
|
|
356
|
+
separator: {
|
|
357
|
+
type: String,
|
|
358
|
+
default: "/"
|
|
359
|
+
},
|
|
360
|
+
separatorColor: String,
|
|
361
|
+
activeColor: {
|
|
362
|
+
type: String,
|
|
363
|
+
default: "primary"
|
|
364
|
+
},
|
|
365
|
+
gutter: {
|
|
366
|
+
type: String,
|
|
367
|
+
validator: (e) => ["none", "xs", "sm", "md", "lg", "xl"].includes(e),
|
|
368
|
+
default: "sm"
|
|
369
|
+
}
|
|
370
|
+
},
|
|
371
|
+
setup(e, { slots: t }) {
|
|
372
|
+
const r = Se(e), n = i(
|
|
373
|
+
() => `flex items-center ${r.value}${e.gutter === "none" ? "" : ` q-gutter-${e.gutter}`}`
|
|
374
|
+
), a = i(() => e.separatorColor ? ` text-${e.separatorColor}` : ""), c = i(() => ` text-${e.activeColor}`);
|
|
375
|
+
return () => {
|
|
376
|
+
if (t.default === void 0) return;
|
|
377
|
+
const s = Qe(
|
|
378
|
+
he(t.default)
|
|
379
|
+
);
|
|
380
|
+
if (s.length === 0) return;
|
|
381
|
+
let o = 1;
|
|
382
|
+
const h = [], y = s.filter((b) => {
|
|
383
|
+
var l;
|
|
384
|
+
return ((l = b.type) == null ? void 0 : l.name) === "QBreadcrumbsEl";
|
|
385
|
+
}).length, d = t.separator !== void 0 ? t.separator : () => e.separator;
|
|
386
|
+
return s.forEach((b) => {
|
|
387
|
+
var l;
|
|
388
|
+
if (((l = b.type) == null ? void 0 : l.name) === "QBreadcrumbsEl") {
|
|
389
|
+
const f = o < y, g = b.props !== null && Ge.includes(b.props.disable), k = (f === !0 ? "" : " q-breadcrumbs--last") + (g !== !0 && f === !0 ? c.value : "");
|
|
390
|
+
o++, h.push(
|
|
391
|
+
m("div", {
|
|
392
|
+
class: `flex items-center${k}`
|
|
393
|
+
}, [b])
|
|
394
|
+
), f === !0 && h.push(
|
|
395
|
+
m("div", {
|
|
396
|
+
class: "q-breadcrumbs__separator" + a.value
|
|
397
|
+
}, d())
|
|
398
|
+
);
|
|
399
|
+
} else
|
|
400
|
+
h.push(b);
|
|
401
|
+
}), m("div", {
|
|
402
|
+
class: "q-breadcrumbs"
|
|
403
|
+
}, [
|
|
404
|
+
m("div", { class: n.value }, h)
|
|
405
|
+
]);
|
|
406
|
+
};
|
|
407
|
+
}
|
|
408
|
+
}), xt = /* @__PURE__ */ G({
|
|
409
|
+
inheritAttrs: !1,
|
|
410
|
+
__name: "Breadcrumbs",
|
|
411
|
+
props: {
|
|
412
|
+
activeColor: {},
|
|
413
|
+
separatorIcon: {},
|
|
414
|
+
separatorSize: {},
|
|
415
|
+
separatorColor: {},
|
|
416
|
+
store: {},
|
|
417
|
+
navStore: {},
|
|
418
|
+
route: {},
|
|
419
|
+
router: {},
|
|
420
|
+
breadcrumbConfig: {},
|
|
421
|
+
separator: {},
|
|
422
|
+
gutter: {},
|
|
423
|
+
align: {}
|
|
424
|
+
},
|
|
425
|
+
setup(e) {
|
|
426
|
+
const t = e, r = we(), n = i(() => {
|
|
427
|
+
const { activeColor: l, separatorIcon: f, separatorSize: g, separatorColor: k, ...v } = r;
|
|
428
|
+
return v;
|
|
429
|
+
}), a = (l) => ({
|
|
430
|
+
"data-cy": l.dataCy,
|
|
431
|
+
class: "cursor-pointer text-h5",
|
|
432
|
+
color: l.color
|
|
433
|
+
}), c = i(() => t.activeColor || "primary"), s = i(() => t.separatorIcon || "chevron_right"), o = i(() => t.separatorSize || "2em"), h = i(() => t.separatorColor || "primary"), y = i(() => ({
|
|
434
|
+
store: t.store,
|
|
435
|
+
route: t.route,
|
|
436
|
+
navStore: t.navStore || {}
|
|
437
|
+
})), d = i(() => {
|
|
438
|
+
const l = [];
|
|
439
|
+
return t.breadcrumbConfig.forEach((f) => {
|
|
440
|
+
if (!f.shouldRender(y.value))
|
|
441
|
+
return;
|
|
442
|
+
const g = f.getLabel ? f.getLabel(y.value) : f.defaultLabel, k = f.getColor ? f.getColor(y.value) : "dark", v = {
|
|
443
|
+
name: f.routeName,
|
|
444
|
+
...f.getRouteParams && {
|
|
445
|
+
params: f.getRouteParams(y.value)
|
|
446
|
+
}
|
|
447
|
+
}, x = f.clearActions ? f.clearActions.map((w) => () => w(y.value)) : [];
|
|
448
|
+
l.push({
|
|
449
|
+
label: g,
|
|
450
|
+
dataCy: f.dataCy,
|
|
451
|
+
color: k,
|
|
452
|
+
route: v,
|
|
453
|
+
clearActions: x
|
|
454
|
+
});
|
|
455
|
+
}), l;
|
|
456
|
+
}), b = (l) => {
|
|
457
|
+
l.clearActions && l.clearActions.forEach((f) => f()), t.router.push(l.route);
|
|
458
|
+
};
|
|
459
|
+
return (l, f) => (I(), W(Je, Z({
|
|
460
|
+
"active-color": c.value,
|
|
461
|
+
class: "text-brown"
|
|
462
|
+
}, n.value), {
|
|
463
|
+
separator: ee(() => [
|
|
464
|
+
me(D, {
|
|
465
|
+
size: o.value,
|
|
466
|
+
name: s.value,
|
|
467
|
+
color: h.value
|
|
468
|
+
}, null, 8, ["size", "name", "color"])
|
|
469
|
+
]),
|
|
470
|
+
default: ee(() => [
|
|
471
|
+
(I(!0), ve(Be, null, Le(d.value, (g, k) => (I(), W(Xe, Z({ key: k }, { ref_for: !0 }, a(g), {
|
|
472
|
+
label: g.label,
|
|
473
|
+
onClick: (v) => b(g)
|
|
474
|
+
}), null, 16, ["label", "onClick"]))), 128))
|
|
475
|
+
]),
|
|
476
|
+
_: 1
|
|
477
|
+
}, 16, ["active-color"]));
|
|
478
|
+
}
|
|
479
|
+
}), Ze = {
|
|
150
480
|
size: {
|
|
151
481
|
type: [String, Number],
|
|
152
482
|
default: "1em"
|
|
153
483
|
},
|
|
154
484
|
color: String
|
|
155
485
|
};
|
|
156
|
-
function
|
|
486
|
+
function et(e) {
|
|
157
487
|
return {
|
|
158
|
-
cSize:
|
|
159
|
-
classes:
|
|
488
|
+
cSize: i(() => e.size in X ? `${X[e.size]}px` : e.size),
|
|
489
|
+
classes: i(
|
|
160
490
|
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
161
491
|
)
|
|
162
492
|
};
|
|
163
493
|
}
|
|
164
|
-
const
|
|
494
|
+
const tt = K({
|
|
165
495
|
name: "QSpinner",
|
|
166
496
|
props: {
|
|
167
|
-
...
|
|
497
|
+
...Ze,
|
|
168
498
|
thickness: {
|
|
169
499
|
type: Number,
|
|
170
500
|
default: 5
|
|
171
501
|
}
|
|
172
502
|
},
|
|
173
503
|
setup(e) {
|
|
174
|
-
const { cSize: t, classes:
|
|
175
|
-
return () =>
|
|
176
|
-
class:
|
|
504
|
+
const { cSize: t, classes: r } = et(e);
|
|
505
|
+
return () => m("svg", {
|
|
506
|
+
class: r.value + " q-spinner-mat",
|
|
177
507
|
width: t.value,
|
|
178
508
|
height: t.value,
|
|
179
509
|
viewBox: "25 25 50 50"
|
|
180
510
|
}, [
|
|
181
|
-
|
|
511
|
+
m("circle", {
|
|
182
512
|
class: "path",
|
|
183
513
|
cx: "50",
|
|
184
514
|
cy: "50",
|
|
@@ -191,12 +521,12 @@ const Oe = W({
|
|
|
191
521
|
]);
|
|
192
522
|
}
|
|
193
523
|
});
|
|
194
|
-
function
|
|
195
|
-
const
|
|
524
|
+
function nt(e, t) {
|
|
525
|
+
const r = e.style;
|
|
196
526
|
for (const n in t)
|
|
197
|
-
|
|
527
|
+
r[n] = t[n];
|
|
198
528
|
}
|
|
199
|
-
const
|
|
529
|
+
const V = {
|
|
200
530
|
hasPassive: !1,
|
|
201
531
|
passiveCapture: !0,
|
|
202
532
|
notPassiveCapture: !0
|
|
@@ -204,7 +534,7 @@ const N = {
|
|
|
204
534
|
try {
|
|
205
535
|
const e = Object.defineProperty({}, "passive", {
|
|
206
536
|
get() {
|
|
207
|
-
Object.assign(
|
|
537
|
+
Object.assign(V, {
|
|
208
538
|
hasPassive: !0,
|
|
209
539
|
passive: { passive: !0 },
|
|
210
540
|
notPassive: { passive: !1 },
|
|
@@ -216,100 +546,100 @@ try {
|
|
|
216
546
|
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
217
547
|
} catch {
|
|
218
548
|
}
|
|
219
|
-
function
|
|
549
|
+
function rt(e) {
|
|
220
550
|
return e.touches && e.touches[0] ? e = e.touches[0] : e.changedTouches && e.changedTouches[0] ? e = e.changedTouches[0] : e.targetTouches && e.targetTouches[0] && (e = e.targetTouches[0]), {
|
|
221
551
|
top: e.clientY,
|
|
222
552
|
left: e.clientX
|
|
223
553
|
};
|
|
224
554
|
}
|
|
225
|
-
function
|
|
555
|
+
function $e(e) {
|
|
226
556
|
e.stopPropagation();
|
|
227
557
|
}
|
|
228
|
-
function
|
|
558
|
+
function at(e) {
|
|
229
559
|
e.cancelable !== !1 && e.preventDefault();
|
|
230
560
|
}
|
|
231
|
-
function
|
|
561
|
+
function A(e) {
|
|
232
562
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
233
563
|
}
|
|
234
|
-
function
|
|
564
|
+
function lt(e, t, r) {
|
|
235
565
|
const n = `__q_${t}_evt`;
|
|
236
|
-
e[n] = e[n] !== void 0 ? e[n].concat(
|
|
237
|
-
|
|
566
|
+
e[n] = e[n] !== void 0 ? e[n].concat(r) : r, r.forEach((a) => {
|
|
567
|
+
a[0].addEventListener(a[1], e[a[2]], V[a[3]]);
|
|
238
568
|
});
|
|
239
569
|
}
|
|
240
|
-
function
|
|
241
|
-
const
|
|
242
|
-
e[
|
|
243
|
-
n[0].removeEventListener(n[1], e[n[2]],
|
|
244
|
-
}), e[
|
|
570
|
+
function ot(e, t) {
|
|
571
|
+
const r = `__q_${t}_evt`;
|
|
572
|
+
e[r] !== void 0 && (e[r].forEach((n) => {
|
|
573
|
+
n[0].removeEventListener(n[1], e[n[2]], V[n[3]]);
|
|
574
|
+
}), e[r] = void 0);
|
|
245
575
|
}
|
|
246
|
-
function
|
|
576
|
+
function ut(e) {
|
|
247
577
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
248
578
|
}
|
|
249
|
-
function
|
|
250
|
-
return
|
|
579
|
+
function Y(e, t) {
|
|
580
|
+
return ut(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
251
581
|
}
|
|
252
|
-
function
|
|
253
|
-
let
|
|
582
|
+
function st(e, t = 250) {
|
|
583
|
+
let r = !1, n;
|
|
254
584
|
return function() {
|
|
255
|
-
return
|
|
256
|
-
|
|
585
|
+
return r === !1 && (r = !0, setTimeout(() => {
|
|
586
|
+
r = !1;
|
|
257
587
|
}, t), n = e.apply(this, arguments)), n;
|
|
258
588
|
};
|
|
259
589
|
}
|
|
260
|
-
function
|
|
261
|
-
|
|
262
|
-
const
|
|
263
|
-
let
|
|
264
|
-
|
|
265
|
-
const
|
|
266
|
-
|
|
267
|
-
height: `${
|
|
268
|
-
width: `${
|
|
269
|
-
transform: `translate3d(${
|
|
590
|
+
function se(e, t, r, n) {
|
|
591
|
+
r.modifiers.stop === !0 && $e(e);
|
|
592
|
+
const a = r.modifiers.color;
|
|
593
|
+
let c = r.modifiers.center;
|
|
594
|
+
c = c === !0 || n === !0;
|
|
595
|
+
const s = document.createElement("span"), o = document.createElement("span"), h = rt(e), { left: y, top: d, width: b, height: l } = t.getBoundingClientRect(), f = Math.sqrt(b * b + l * l), g = f / 2, k = `${(b - f) / 2}px`, v = c ? k : `${h.left - y - g}px`, x = `${(l - f) / 2}px`, w = c ? x : `${h.top - d - g}px`;
|
|
596
|
+
o.className = "q-ripple__inner", nt(o, {
|
|
597
|
+
height: `${f}px`,
|
|
598
|
+
width: `${f}px`,
|
|
599
|
+
transform: `translate3d(${v},${w},0) scale3d(.2,.2,1)`,
|
|
270
600
|
opacity: 0
|
|
271
|
-
}),
|
|
272
|
-
const
|
|
273
|
-
|
|
601
|
+
}), s.className = `q-ripple${a ? " text-" + a : ""}`, s.setAttribute("dir", "ltr"), s.appendChild(o), t.appendChild(s);
|
|
602
|
+
const L = () => {
|
|
603
|
+
s.remove(), clearTimeout(R);
|
|
274
604
|
};
|
|
275
|
-
|
|
276
|
-
let
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
605
|
+
r.abort.push(L);
|
|
606
|
+
let R = setTimeout(() => {
|
|
607
|
+
o.classList.add("q-ripple__inner--enter"), o.style.transform = `translate3d(${k},${x},0) scale3d(1,1,1)`, o.style.opacity = 0.2, R = setTimeout(() => {
|
|
608
|
+
o.classList.remove("q-ripple__inner--enter"), o.classList.add("q-ripple__inner--leave"), o.style.opacity = 0, R = setTimeout(() => {
|
|
609
|
+
s.remove(), r.abort.splice(r.abort.indexOf(L), 1);
|
|
280
610
|
}, 275);
|
|
281
611
|
}, 250);
|
|
282
612
|
}, 50);
|
|
283
613
|
}
|
|
284
|
-
function
|
|
285
|
-
const
|
|
614
|
+
function ie(e, { modifiers: t, value: r, arg: n }) {
|
|
615
|
+
const a = Object.assign({}, e.cfg.ripple, t, r);
|
|
286
616
|
e.modifiers = {
|
|
287
|
-
early:
|
|
288
|
-
stop:
|
|
289
|
-
center:
|
|
290
|
-
color:
|
|
291
|
-
keyCodes: [].concat(
|
|
617
|
+
early: a.early === !0,
|
|
618
|
+
stop: a.stop === !0,
|
|
619
|
+
center: a.center === !0,
|
|
620
|
+
color: a.color || n,
|
|
621
|
+
keyCodes: [].concat(a.keyCodes || 13)
|
|
292
622
|
};
|
|
293
623
|
}
|
|
294
|
-
const
|
|
624
|
+
const it = Oe(
|
|
295
625
|
{
|
|
296
626
|
name: "ripple",
|
|
297
627
|
beforeMount(e, t) {
|
|
298
|
-
const
|
|
299
|
-
if (
|
|
628
|
+
const r = t.instance.$.appContext.config.globalProperties.$q.config || {};
|
|
629
|
+
if (r.ripple === !1) return;
|
|
300
630
|
const n = {
|
|
301
|
-
cfg:
|
|
631
|
+
cfg: r,
|
|
302
632
|
enabled: t.value !== !1,
|
|
303
633
|
modifiers: {},
|
|
304
634
|
abort: [],
|
|
305
|
-
start(
|
|
306
|
-
n.enabled === !0 &&
|
|
635
|
+
start(a) {
|
|
636
|
+
n.enabled === !0 && a.qSkipRipple !== !0 && a.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && se(a, e, n, a.qKeyEvent === !0);
|
|
307
637
|
},
|
|
308
|
-
keystart:
|
|
309
|
-
n.enabled === !0 &&
|
|
638
|
+
keystart: st((a) => {
|
|
639
|
+
n.enabled === !0 && a.qSkipRipple !== !0 && Y(a, n.modifiers.keyCodes) === !0 && a.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && se(a, e, n, !0);
|
|
310
640
|
}, 300)
|
|
311
641
|
};
|
|
312
|
-
|
|
642
|
+
ie(n, t), e.__qripple = n, lt(n, "main", [
|
|
313
643
|
[e, "pointerdown", "start", "passive"],
|
|
314
644
|
[e, "click", "start", "passive"],
|
|
315
645
|
[e, "keydown", "keystart", "passive"],
|
|
@@ -318,182 +648,37 @@ const Ne = $e(
|
|
|
318
648
|
},
|
|
319
649
|
updated(e, t) {
|
|
320
650
|
if (t.oldValue !== t.value) {
|
|
321
|
-
const
|
|
322
|
-
|
|
651
|
+
const r = e.__qripple;
|
|
652
|
+
r !== void 0 && (r.enabled = t.value !== !1, r.enabled === !0 && Object(t.value) === t.value && ie(r, t));
|
|
323
653
|
}
|
|
324
654
|
},
|
|
325
655
|
beforeUnmount(e) {
|
|
326
656
|
const t = e.__qripple;
|
|
327
|
-
t !== void 0 && (t.abort.forEach((
|
|
328
|
-
|
|
329
|
-
}),
|
|
657
|
+
t !== void 0 && (t.abort.forEach((r) => {
|
|
658
|
+
r();
|
|
659
|
+
}), ot(t, "main"), delete e._qripple);
|
|
330
660
|
}
|
|
331
661
|
}
|
|
332
|
-
),
|
|
333
|
-
left: "start",
|
|
334
|
-
center: "center",
|
|
335
|
-
right: "end",
|
|
336
|
-
between: "between",
|
|
337
|
-
around: "around",
|
|
338
|
-
evenly: "evenly",
|
|
339
|
-
stretch: "stretch"
|
|
340
|
-
}, Fe = Object.keys(ve), Ve = {
|
|
341
|
-
align: {
|
|
342
|
-
type: String,
|
|
343
|
-
validator: (e) => Fe.includes(e)
|
|
344
|
-
}
|
|
345
|
-
};
|
|
346
|
-
function Qe(e) {
|
|
347
|
-
return s(() => {
|
|
348
|
-
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
349
|
-
return `${e.vertical === !0 ? "items" : "justify"}-${ve[t]}`;
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
function He(e) {
|
|
353
|
-
return e.appContext.config.globalProperties.$router !== void 0;
|
|
354
|
-
}
|
|
355
|
-
function te(e) {
|
|
356
|
-
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
357
|
-
}
|
|
358
|
-
function ne(e, t) {
|
|
359
|
-
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
360
|
-
}
|
|
361
|
-
function Ue(e, t) {
|
|
362
|
-
for (const a in t) {
|
|
363
|
-
const n = t[a], i = e[a];
|
|
364
|
-
if (typeof n == "string") {
|
|
365
|
-
if (n !== i)
|
|
366
|
-
return !1;
|
|
367
|
-
} else if (Array.isArray(i) === !1 || i.length !== n.length || n.some((f, c) => f !== i[c]))
|
|
368
|
-
return !1;
|
|
369
|
-
}
|
|
370
|
-
return !0;
|
|
371
|
-
}
|
|
372
|
-
function ae(e, t) {
|
|
373
|
-
return Array.isArray(t) === !0 ? e.length === t.length && e.every((a, n) => a === t[n]) : e.length === 1 && e[0] === t;
|
|
374
|
-
}
|
|
375
|
-
function We(e, t) {
|
|
376
|
-
return Array.isArray(e) === !0 ? ae(e, t) : Array.isArray(t) === !0 ? ae(t, e) : e === t;
|
|
377
|
-
}
|
|
378
|
-
function Xe(e, t) {
|
|
379
|
-
if (Object.keys(e).length !== Object.keys(t).length)
|
|
380
|
-
return !1;
|
|
381
|
-
for (const a in e)
|
|
382
|
-
if (We(e[a], t[a]) === !1)
|
|
383
|
-
return !1;
|
|
384
|
-
return !0;
|
|
385
|
-
}
|
|
386
|
-
const Ye = {
|
|
387
|
-
// router-link
|
|
388
|
-
to: [String, Object],
|
|
389
|
-
replace: Boolean,
|
|
390
|
-
// regular <a> link
|
|
391
|
-
href: String,
|
|
392
|
-
target: String,
|
|
393
|
-
// state
|
|
394
|
-
disable: Boolean
|
|
395
|
-
};
|
|
396
|
-
function Ge({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
397
|
-
const a = U(), { props: n, proxy: i, emit: f } = a, c = He(a), u = s(() => n.disable !== !0 && n.href !== void 0), x = t === !0 ? s(
|
|
398
|
-
() => c === !0 && n.disable !== !0 && u.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
399
|
-
) : s(
|
|
400
|
-
() => c === !0 && u.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
401
|
-
), b = s(() => x.value === !0 ? P(n.to) : null), l = s(() => b.value !== null), y = s(() => u.value === !0 || l.value === !0), o = s(() => n.type === "a" || y.value === !0 ? "a" : n.tag || e || "div"), p = s(() => u.value === !0 ? {
|
|
402
|
-
href: n.href,
|
|
403
|
-
target: n.target
|
|
404
|
-
} : l.value === !0 ? {
|
|
405
|
-
href: b.value.href,
|
|
406
|
-
target: n.target
|
|
407
|
-
} : {}), h = s(() => {
|
|
408
|
-
if (l.value === !1)
|
|
409
|
-
return -1;
|
|
410
|
-
const { matched: g } = b.value, { length: $ } = g, _ = g[$ - 1];
|
|
411
|
-
if (_ === void 0)
|
|
412
|
-
return -1;
|
|
413
|
-
const w = i.$route.matched;
|
|
414
|
-
if (w.length === 0)
|
|
415
|
-
return -1;
|
|
416
|
-
const C = w.findIndex(
|
|
417
|
-
ne.bind(null, _)
|
|
418
|
-
);
|
|
419
|
-
if (C !== -1)
|
|
420
|
-
return C;
|
|
421
|
-
const I = te(g[$ - 2]);
|
|
422
|
-
return (
|
|
423
|
-
// we are dealing with nested routes
|
|
424
|
-
$ > 1 && te(_) === I && w[w.length - 1].path !== I ? w.findIndex(
|
|
425
|
-
ne.bind(null, g[$ - 2])
|
|
426
|
-
) : C
|
|
427
|
-
);
|
|
428
|
-
}), k = s(
|
|
429
|
-
() => l.value === !0 && h.value !== -1 && Ue(i.$route.params, b.value.params)
|
|
430
|
-
), d = s(
|
|
431
|
-
() => k.value === !0 && h.value === i.$route.matched.length - 1 && Xe(i.$route.params, b.value.params)
|
|
432
|
-
), q = s(() => l.value === !0 ? d.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
|
|
433
|
-
function P(g) {
|
|
434
|
-
try {
|
|
435
|
-
return i.$router.resolve(g);
|
|
436
|
-
} catch {
|
|
437
|
-
}
|
|
438
|
-
return null;
|
|
439
|
-
}
|
|
440
|
-
function B(g, { returnRouterError: $, to: _ = n.to, replace: w = n.replace } = {}) {
|
|
441
|
-
if (n.disable === !0)
|
|
442
|
-
return g.preventDefault(), Promise.resolve(!1);
|
|
443
|
-
if (
|
|
444
|
-
// don't redirect with control keys;
|
|
445
|
-
// should match RouterLink from Vue Router
|
|
446
|
-
g.metaKey || g.altKey || g.ctrlKey || g.shiftKey || g.button !== void 0 && g.button !== 0 || n.target === "_blank"
|
|
447
|
-
)
|
|
448
|
-
return Promise.resolve(!1);
|
|
449
|
-
g.preventDefault();
|
|
450
|
-
const C = i.$router[w === !0 ? "replace" : "push"](_);
|
|
451
|
-
return $ === !0 ? C : C.then(() => {
|
|
452
|
-
}).catch(() => {
|
|
453
|
-
});
|
|
454
|
-
}
|
|
455
|
-
function L(g) {
|
|
456
|
-
if (l.value === !0) {
|
|
457
|
-
const $ = (_) => B(g, _);
|
|
458
|
-
f("click", g, $), g.defaultPrevented !== !0 && $();
|
|
459
|
-
} else
|
|
460
|
-
f("click", g);
|
|
461
|
-
}
|
|
462
|
-
return {
|
|
463
|
-
hasRouterLink: l,
|
|
464
|
-
hasHrefLink: u,
|
|
465
|
-
hasLink: y,
|
|
466
|
-
linkTag: o,
|
|
467
|
-
resolvedLink: b,
|
|
468
|
-
linkIsActive: k,
|
|
469
|
-
linkIsExactActive: d,
|
|
470
|
-
linkClass: q,
|
|
471
|
-
linkAttrs: p,
|
|
472
|
-
getLink: P,
|
|
473
|
-
navigateToRouterLink: B,
|
|
474
|
-
navigateOnClick: L
|
|
475
|
-
};
|
|
476
|
-
}
|
|
477
|
-
const re = {
|
|
662
|
+
), ce = {
|
|
478
663
|
none: 0,
|
|
479
664
|
xs: 4,
|
|
480
665
|
sm: 8,
|
|
481
666
|
md: 16,
|
|
482
667
|
lg: 24,
|
|
483
668
|
xl: 32
|
|
484
|
-
},
|
|
669
|
+
}, ct = {
|
|
485
670
|
xs: 8,
|
|
486
671
|
sm: 10,
|
|
487
672
|
md: 14,
|
|
488
673
|
lg: 20,
|
|
489
674
|
xl: 24
|
|
490
|
-
},
|
|
491
|
-
function
|
|
675
|
+
}, dt = ["button", "submit", "reset"], ft = /[^\s]\/[^\s]/, vt = ["flat", "outline", "push", "unelevated"];
|
|
676
|
+
function mt(e, t) {
|
|
492
677
|
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
|
|
493
678
|
}
|
|
494
|
-
const
|
|
495
|
-
...
|
|
496
|
-
...
|
|
679
|
+
const gt = {
|
|
680
|
+
...ge,
|
|
681
|
+
...xe,
|
|
497
682
|
type: {
|
|
498
683
|
type: String,
|
|
499
684
|
default: "button"
|
|
@@ -501,7 +686,7 @@ const at = {
|
|
|
501
686
|
label: [Number, String],
|
|
502
687
|
icon: String,
|
|
503
688
|
iconRight: String,
|
|
504
|
-
...
|
|
689
|
+
...vt.reduce(
|
|
505
690
|
(e, t) => (e[t] = Boolean) && e,
|
|
506
691
|
{}
|
|
507
692
|
),
|
|
@@ -523,7 +708,7 @@ const at = {
|
|
|
523
708
|
default: !0
|
|
524
709
|
},
|
|
525
710
|
align: {
|
|
526
|
-
...
|
|
711
|
+
...Ee.align,
|
|
527
712
|
default: "center"
|
|
528
713
|
},
|
|
529
714
|
stack: Boolean,
|
|
@@ -533,262 +718,315 @@ const at = {
|
|
|
533
718
|
default: null
|
|
534
719
|
},
|
|
535
720
|
disable: Boolean
|
|
536
|
-
},
|
|
537
|
-
...
|
|
721
|
+
}, bt = {
|
|
722
|
+
...gt,
|
|
538
723
|
round: Boolean
|
|
539
724
|
};
|
|
540
|
-
function
|
|
541
|
-
const t =
|
|
725
|
+
function ht(e) {
|
|
726
|
+
const t = be(e, ct), r = Se(e), { hasRouterLink: n, hasLink: a, linkTag: c, linkAttrs: s, navigateOnClick: o } = qe({
|
|
542
727
|
fallbackTag: "button"
|
|
543
|
-
}),
|
|
544
|
-
const
|
|
545
|
-
return e.padding !== void 0 ? Object.assign({},
|
|
546
|
-
padding: e.padding.split(/\s+/).map((
|
|
728
|
+
}), h = i(() => {
|
|
729
|
+
const v = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
730
|
+
return e.padding !== void 0 ? Object.assign({}, v, {
|
|
731
|
+
padding: e.padding.split(/\s+/).map((x) => x in ce ? ce[x] + "px" : x).join(" "),
|
|
547
732
|
minWidth: "0",
|
|
548
733
|
minHeight: "0"
|
|
549
|
-
}) :
|
|
550
|
-
}),
|
|
734
|
+
}) : v;
|
|
735
|
+
}), y = i(
|
|
551
736
|
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
552
|
-
),
|
|
737
|
+
), d = i(
|
|
553
738
|
() => e.disable !== !0 && e.loading !== !0
|
|
554
|
-
),
|
|
555
|
-
const
|
|
556
|
-
return
|
|
739
|
+
), b = i(() => d.value === !0 ? e.tabindex || 0 : -1), l = i(() => mt(e, "standard")), f = i(() => {
|
|
740
|
+
const v = { tabindex: b.value };
|
|
741
|
+
return a.value === !0 ? Object.assign(v, s.value) : dt.includes(e.type) === !0 && (v.type = e.type), c.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"), n.value !== !0 && ft.test(e.type) === !0 && (v.type = e.type)) : e.disable === !0 && (v.disabled = "", v["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(v, {
|
|
557
742
|
role: "progressbar",
|
|
558
743
|
"aria-valuemin": 0,
|
|
559
744
|
"aria-valuemax": 100,
|
|
560
745
|
"aria-valuenow": e.percentage
|
|
561
|
-
}),
|
|
562
|
-
}),
|
|
563
|
-
let
|
|
564
|
-
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ?
|
|
565
|
-
const
|
|
566
|
-
return `q-btn--${
|
|
567
|
-
}), k =
|
|
568
|
-
() =>
|
|
746
|
+
}), v;
|
|
747
|
+
}), g = i(() => {
|
|
748
|
+
let v;
|
|
749
|
+
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? v = `text-${e.textColor || e.color}` : v = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (v = `text-${e.textColor}`);
|
|
750
|
+
const x = e.round === !0 ? "round" : `rectangle${y.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
751
|
+
return `q-btn--${l.value} q-btn--${x}` + (v !== void 0 ? " " + v : "") + (d.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
|
|
752
|
+
}), k = i(
|
|
753
|
+
() => r.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
569
754
|
);
|
|
570
755
|
return {
|
|
571
|
-
classes:
|
|
572
|
-
style:
|
|
756
|
+
classes: g,
|
|
757
|
+
style: h,
|
|
573
758
|
innerClasses: k,
|
|
574
|
-
attributes:
|
|
575
|
-
hasLink:
|
|
576
|
-
linkTag:
|
|
577
|
-
navigateOnClick:
|
|
578
|
-
isActionable:
|
|
759
|
+
attributes: f,
|
|
760
|
+
hasLink: a,
|
|
761
|
+
linkTag: c,
|
|
762
|
+
navigateOnClick: o,
|
|
763
|
+
isActionable: d
|
|
579
764
|
};
|
|
580
765
|
}
|
|
581
|
-
const { passiveCapture:
|
|
582
|
-
let
|
|
583
|
-
const
|
|
766
|
+
const { passiveCapture: _ } = V;
|
|
767
|
+
let T = null, O = null, z = null;
|
|
768
|
+
const de = K({
|
|
584
769
|
name: "QBtn",
|
|
585
770
|
props: {
|
|
586
|
-
...
|
|
771
|
+
...bt,
|
|
587
772
|
percentage: Number,
|
|
588
773
|
darkPercentage: Boolean,
|
|
589
774
|
onTouchstart: [Function, Array]
|
|
590
775
|
},
|
|
591
776
|
emits: ["click", "keydown", "mousedown", "keyup"],
|
|
592
|
-
setup(e, { slots: t, emit:
|
|
593
|
-
const { proxy: n } =
|
|
594
|
-
classes:
|
|
595
|
-
style:
|
|
596
|
-
innerClasses:
|
|
597
|
-
attributes:
|
|
598
|
-
hasLink:
|
|
599
|
-
linkTag:
|
|
600
|
-
navigateOnClick:
|
|
601
|
-
isActionable:
|
|
602
|
-
} =
|
|
603
|
-
let
|
|
604
|
-
const
|
|
777
|
+
setup(e, { slots: t, emit: r }) {
|
|
778
|
+
const { proxy: n } = J(), {
|
|
779
|
+
classes: a,
|
|
780
|
+
style: c,
|
|
781
|
+
innerClasses: s,
|
|
782
|
+
attributes: o,
|
|
783
|
+
hasLink: h,
|
|
784
|
+
linkTag: y,
|
|
785
|
+
navigateOnClick: d,
|
|
786
|
+
isActionable: b
|
|
787
|
+
} = ht(e), l = te(null), f = te(null);
|
|
788
|
+
let g = null, k, v = null;
|
|
789
|
+
const x = i(
|
|
605
790
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
606
|
-
),
|
|
607
|
-
keyCodes:
|
|
791
|
+
), w = i(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
792
|
+
keyCodes: h.value === !0 ? [13, 32] : [13],
|
|
608
793
|
...e.ripple === !0 ? {} : e.ripple
|
|
609
|
-
}),
|
|
610
|
-
const
|
|
611
|
-
return
|
|
612
|
-
}),
|
|
794
|
+
}), L = i(() => ({ center: e.round })), R = i(() => {
|
|
795
|
+
const u = Math.max(0, Math.min(100, e.percentage));
|
|
796
|
+
return u > 0 ? { transition: "transform 0.6s", transform: `translateX(${u - 100}%)` } : {};
|
|
797
|
+
}), p = i(() => {
|
|
613
798
|
if (e.loading === !0)
|
|
614
799
|
return {
|
|
615
|
-
onMousedown:
|
|
616
|
-
onTouchstart:
|
|
617
|
-
onClick:
|
|
618
|
-
onKeydown:
|
|
619
|
-
onKeyup:
|
|
800
|
+
onMousedown: F,
|
|
801
|
+
onTouchstart: F,
|
|
802
|
+
onClick: F,
|
|
803
|
+
onKeydown: F,
|
|
804
|
+
onKeyup: F
|
|
620
805
|
};
|
|
621
|
-
if (
|
|
622
|
-
const
|
|
623
|
-
onClick:
|
|
624
|
-
onKeydown:
|
|
625
|
-
onMousedown:
|
|
806
|
+
if (b.value === !0) {
|
|
807
|
+
const u = {
|
|
808
|
+
onClick: E,
|
|
809
|
+
onKeydown: $,
|
|
810
|
+
onMousedown: Q
|
|
626
811
|
};
|
|
627
812
|
if (n.$q.platform.has.touch === !0) {
|
|
628
|
-
const
|
|
629
|
-
|
|
813
|
+
const C = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
814
|
+
u[`onTouchstart${C}`] = B;
|
|
630
815
|
}
|
|
631
|
-
return
|
|
816
|
+
return u;
|
|
632
817
|
}
|
|
633
818
|
return {
|
|
634
819
|
// needed; especially for disabled <a> tags
|
|
635
|
-
onClick:
|
|
820
|
+
onClick: A
|
|
636
821
|
};
|
|
637
|
-
}),
|
|
638
|
-
ref:
|
|
639
|
-
class: "q-btn q-btn-item non-selectable no-outline " +
|
|
640
|
-
style:
|
|
641
|
-
...
|
|
642
|
-
...
|
|
822
|
+
}), q = i(() => ({
|
|
823
|
+
ref: l,
|
|
824
|
+
class: "q-btn q-btn-item non-selectable no-outline " + a.value,
|
|
825
|
+
style: c.value,
|
|
826
|
+
...o.value,
|
|
827
|
+
...p.value
|
|
643
828
|
}));
|
|
644
|
-
function
|
|
645
|
-
if (
|
|
646
|
-
if (
|
|
647
|
-
if (
|
|
648
|
-
const
|
|
649
|
-
if (e.type === "submit" &&
|
|
650
|
-
|
|
651
|
-
const
|
|
652
|
-
var
|
|
653
|
-
document.removeEventListener("keydown",
|
|
829
|
+
function E(u) {
|
|
830
|
+
if (l.value !== null) {
|
|
831
|
+
if (u !== void 0) {
|
|
832
|
+
if (u.defaultPrevented === !0) return;
|
|
833
|
+
const C = document.activeElement;
|
|
834
|
+
if (e.type === "submit" && C !== document.body && l.value.contains(C) === !1 && C.contains(l.value) === !1) {
|
|
835
|
+
u.qAvoidFocus !== !0 && l.value.focus();
|
|
836
|
+
const P = () => {
|
|
837
|
+
var N;
|
|
838
|
+
document.removeEventListener("keydown", A, !0), document.removeEventListener("keyup", P, _), (N = l.value) == null || N.removeEventListener("blur", P, _);
|
|
654
839
|
};
|
|
655
|
-
document.addEventListener("keydown",
|
|
840
|
+
document.addEventListener("keydown", A, !0), document.addEventListener("keyup", P, _), l.value.addEventListener("blur", P, _);
|
|
656
841
|
}
|
|
657
842
|
}
|
|
658
|
-
|
|
843
|
+
d(u);
|
|
659
844
|
}
|
|
660
845
|
}
|
|
661
|
-
function
|
|
662
|
-
|
|
846
|
+
function $(u) {
|
|
847
|
+
l.value !== null && (r("keydown", u), Y(u, [13, 32]) === !0 && O !== l.value && (O !== null && M(), u.defaultPrevented !== !0 && (u.qAvoidFocus !== !0 && l.value.focus(), O = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("keyup", S, !0), l.value.addEventListener("blur", S, _)), A(u)));
|
|
663
848
|
}
|
|
664
|
-
function
|
|
665
|
-
|
|
666
|
-
|
|
849
|
+
function B(u) {
|
|
850
|
+
l.value !== null && (r("touchstart", u), u.defaultPrevented !== !0 && (T !== l.value && (T !== null && M(), T = l.value, g = u.target, g.addEventListener("touchcancel", S, _), g.addEventListener("touchend", S, _)), k = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
|
|
851
|
+
v = null, k = !1;
|
|
667
852
|
}, 200)));
|
|
668
853
|
}
|
|
669
|
-
function
|
|
670
|
-
|
|
854
|
+
function Q(u) {
|
|
855
|
+
l.value !== null && (u.qSkipRipple = k === !0, r("mousedown", u), u.defaultPrevented !== !0 && z !== l.value && (z !== null && M(), z = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("mouseup", S, _)));
|
|
671
856
|
}
|
|
672
|
-
function S(
|
|
673
|
-
if (
|
|
674
|
-
if ((
|
|
675
|
-
if (
|
|
676
|
-
const
|
|
677
|
-
|
|
857
|
+
function S(u) {
|
|
858
|
+
if (l.value !== null && !((u == null ? void 0 : u.type) === "blur" && document.activeElement === l.value)) {
|
|
859
|
+
if ((u == null ? void 0 : u.type) === "keyup") {
|
|
860
|
+
if (O === l.value && Y(u, [13, 32]) === !0) {
|
|
861
|
+
const C = new MouseEvent("click", u);
|
|
862
|
+
C.qKeyEvent = !0, u.defaultPrevented === !0 && at(C), u.cancelBubble === !0 && $e(C), l.value.dispatchEvent(C), A(u), u.qKeyEvent = !0;
|
|
678
863
|
}
|
|
679
|
-
|
|
864
|
+
r("keyup", u);
|
|
680
865
|
}
|
|
681
|
-
|
|
866
|
+
M();
|
|
682
867
|
}
|
|
683
868
|
}
|
|
684
|
-
function
|
|
685
|
-
var
|
|
686
|
-
const
|
|
687
|
-
|
|
869
|
+
function M(u) {
|
|
870
|
+
var P, N;
|
|
871
|
+
const C = f.value;
|
|
872
|
+
u !== !0 && (T === l.value || z === l.value) && C !== null && C !== document.activeElement && (C.setAttribute("tabindex", -1), C.focus()), T === l.value && (g !== null && (g.removeEventListener("touchcancel", S, _), g.removeEventListener("touchend", S, _)), T = g = null), z === l.value && (document.removeEventListener("mouseup", S, _), z = null), O === l.value && (document.removeEventListener("keyup", S, !0), (P = l.value) == null || P.removeEventListener("blur", S, _), O = null), (N = l.value) == null || N.classList.remove("q-btn--active");
|
|
688
873
|
}
|
|
689
|
-
function
|
|
690
|
-
|
|
874
|
+
function F(u) {
|
|
875
|
+
A(u), u.qSkipRipple = !0;
|
|
691
876
|
}
|
|
692
|
-
return
|
|
693
|
-
|
|
877
|
+
return Re(() => {
|
|
878
|
+
M(!0);
|
|
694
879
|
}), Object.assign(n, {
|
|
695
|
-
click: (
|
|
696
|
-
|
|
880
|
+
click: (u) => {
|
|
881
|
+
b.value === !0 && E(u);
|
|
697
882
|
}
|
|
698
883
|
}), () => {
|
|
699
|
-
let
|
|
700
|
-
e.icon !== void 0 &&
|
|
701
|
-
|
|
884
|
+
let u = [];
|
|
885
|
+
e.icon !== void 0 && u.push(
|
|
886
|
+
m(D, {
|
|
702
887
|
name: e.icon,
|
|
703
|
-
left: e.stack !== !0 &&
|
|
888
|
+
left: e.stack !== !0 && x.value === !0,
|
|
704
889
|
role: "img"
|
|
705
890
|
})
|
|
706
|
-
),
|
|
707
|
-
|
|
708
|
-
),
|
|
709
|
-
|
|
891
|
+
), x.value === !0 && u.push(
|
|
892
|
+
m("span", { class: "block" }, [e.label])
|
|
893
|
+
), u = j(t.default, u), e.iconRight !== void 0 && e.round === !1 && u.push(
|
|
894
|
+
m(D, {
|
|
710
895
|
name: e.iconRight,
|
|
711
|
-
right: e.stack !== !0 &&
|
|
896
|
+
right: e.stack !== !0 && x.value === !0,
|
|
712
897
|
role: "img"
|
|
713
898
|
})
|
|
714
899
|
);
|
|
715
|
-
const
|
|
716
|
-
|
|
900
|
+
const C = [
|
|
901
|
+
m("span", {
|
|
717
902
|
class: "q-focus-helper",
|
|
718
|
-
ref:
|
|
903
|
+
ref: f
|
|
719
904
|
})
|
|
720
905
|
];
|
|
721
|
-
return e.loading === !0 && e.percentage !== void 0 &&
|
|
722
|
-
|
|
906
|
+
return e.loading === !0 && e.percentage !== void 0 && C.push(
|
|
907
|
+
m("span", {
|
|
723
908
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
724
909
|
}, [
|
|
725
|
-
|
|
910
|
+
m("span", {
|
|
726
911
|
class: "q-btn__progress-indicator fit block",
|
|
727
|
-
style:
|
|
912
|
+
style: R.value
|
|
728
913
|
})
|
|
729
914
|
])
|
|
730
|
-
),
|
|
731
|
-
|
|
732
|
-
class: "q-btn__content text-center col items-center q-anchor--skip " +
|
|
733
|
-
},
|
|
734
|
-
), e.loading !== null &&
|
|
735
|
-
|
|
915
|
+
), C.push(
|
|
916
|
+
m("span", {
|
|
917
|
+
class: "q-btn__content text-center col items-center q-anchor--skip " + s.value
|
|
918
|
+
}, u)
|
|
919
|
+
), e.loading !== null && C.push(
|
|
920
|
+
m(Pe, {
|
|
736
921
|
name: "q-transition--fade"
|
|
737
922
|
}, () => e.loading === !0 ? [
|
|
738
|
-
|
|
923
|
+
m("span", {
|
|
739
924
|
key: "loading",
|
|
740
925
|
class: "absolute-full flex flex-center"
|
|
741
|
-
}, t.loading !== void 0 ? t.loading() : [
|
|
926
|
+
}, t.loading !== void 0 ? t.loading() : [m(tt)])
|
|
742
927
|
] : null)
|
|
743
|
-
),
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
928
|
+
), Ae(
|
|
929
|
+
m(
|
|
930
|
+
y.value,
|
|
931
|
+
q.value,
|
|
932
|
+
C
|
|
748
933
|
),
|
|
749
934
|
[[
|
|
750
|
-
|
|
751
|
-
|
|
935
|
+
it,
|
|
936
|
+
w.value,
|
|
752
937
|
void 0,
|
|
753
|
-
|
|
938
|
+
L.value
|
|
754
939
|
]]
|
|
755
940
|
);
|
|
756
941
|
};
|
|
757
942
|
}
|
|
758
|
-
}),
|
|
759
|
-
|
|
943
|
+
}), yt = { class: "row justify-between" }, pt = /* @__PURE__ */ G({
|
|
944
|
+
__name: "NavButton",
|
|
760
945
|
props: {
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
},
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
946
|
+
from: {},
|
|
947
|
+
to: { default: void 0 },
|
|
948
|
+
labelFrom: {},
|
|
949
|
+
labelTo: { default: void 0 },
|
|
950
|
+
params: { default: () => ({}) }
|
|
951
|
+
},
|
|
952
|
+
setup(e) {
|
|
953
|
+
const t = e, r = ne("navContext"), n = ne("router");
|
|
954
|
+
function a(c) {
|
|
955
|
+
if (!r || !n) {
|
|
956
|
+
console.warn("Dependencies not available:", { navContext: r, router: n });
|
|
957
|
+
return;
|
|
958
|
+
}
|
|
959
|
+
r.setTabs();
|
|
960
|
+
const s = c === "back" ? t.from : t.to;
|
|
961
|
+
if (!s) {
|
|
962
|
+
console.warn("Destination not provided:", c);
|
|
963
|
+
return;
|
|
964
|
+
}
|
|
965
|
+
n.push({
|
|
966
|
+
name: s,
|
|
967
|
+
params: t.params
|
|
968
|
+
});
|
|
768
969
|
}
|
|
970
|
+
return (c, s) => (I(), ve("div", yt, [
|
|
971
|
+
me(de, {
|
|
972
|
+
icon: "chevron_left",
|
|
973
|
+
"rounded-sm": "",
|
|
974
|
+
label: c.labelFrom,
|
|
975
|
+
onClick: s[0] || (s[0] = (o) => a("back")),
|
|
976
|
+
"data-cy": "go-back"
|
|
977
|
+
}, null, 8, ["label"]),
|
|
978
|
+
c.labelTo ? (I(), W(de, {
|
|
979
|
+
key: 0,
|
|
980
|
+
label: c.labelTo,
|
|
981
|
+
color: "primary",
|
|
982
|
+
"text-color": "white",
|
|
983
|
+
"icon-right": "chevron_right",
|
|
984
|
+
"rounded-sm": "",
|
|
985
|
+
"data-cy": "go-next",
|
|
986
|
+
onClick: s[1] || (s[1] = (o) => a("next"))
|
|
987
|
+
}, null, 8, ["label"])) : Te("", !0)
|
|
988
|
+
]));
|
|
769
989
|
}
|
|
770
|
-
}),
|
|
771
|
-
const
|
|
772
|
-
for (const [n,
|
|
773
|
-
|
|
774
|
-
return
|
|
775
|
-
};
|
|
776
|
-
function
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
e.
|
|
789
|
-
|
|
790
|
-
|
|
990
|
+
}), kt = (e, t) => {
|
|
991
|
+
const r = e.__vccOpts || e;
|
|
992
|
+
for (const [n, a] of t)
|
|
993
|
+
r[n] = a;
|
|
994
|
+
return r;
|
|
995
|
+
}, qt = /* @__PURE__ */ kt(pt, [["__scopeId", "data-v-b3b54f7e"]]);
|
|
996
|
+
function _t(e) {
|
|
997
|
+
var t, r;
|
|
998
|
+
return {
|
|
999
|
+
entity: e.entity,
|
|
1000
|
+
dataCy: e.dataCy,
|
|
1001
|
+
defaultLabel: e.defaultLabel,
|
|
1002
|
+
routeName: e.routeName,
|
|
1003
|
+
shouldRender: e.customShouldRender || (({ store: n }) => e.storeField ? !!n[e.storeField] : !0),
|
|
1004
|
+
getLabel: e.getLabel || (e.labelField ? ({ store: n }) => {
|
|
1005
|
+
var a;
|
|
1006
|
+
return e.storeField && ((a = n[e.storeField]) == null ? void 0 : a[e.labelField]) || e.defaultLabel;
|
|
1007
|
+
} : void 0),
|
|
1008
|
+
getColor: e.customGetColor || (({ store: n }) => e.storeField && n[e.storeField] ? "primary" : "dark"),
|
|
1009
|
+
getRouteParams: e.routeParamKey && e.routeParamField ? ({ store: n }) => {
|
|
1010
|
+
var a;
|
|
1011
|
+
return {
|
|
1012
|
+
[e.routeParamKey]: e.storeField && ((a = n[e.storeField]) == null ? void 0 : a[e.routeParamField])
|
|
1013
|
+
};
|
|
1014
|
+
} : void 0,
|
|
1015
|
+
clearActions: [
|
|
1016
|
+
...((t = e.clearMethods) == null ? void 0 : t.map(
|
|
1017
|
+
(n) => ({ store: a }) => {
|
|
1018
|
+
var c;
|
|
1019
|
+
return (c = a[n]) == null ? void 0 : c.call(a);
|
|
1020
|
+
}
|
|
1021
|
+
)) || [],
|
|
1022
|
+
...((r = e.navActions) == null ? void 0 : r.map(
|
|
1023
|
+
(n) => ({ navStore: a }) => n(a)
|
|
1024
|
+
)) || []
|
|
1025
|
+
]
|
|
1026
|
+
};
|
|
1027
|
+
}
|
|
791
1028
|
export {
|
|
792
|
-
|
|
793
|
-
|
|
1029
|
+
xt as Breadcrumbs,
|
|
1030
|
+
qt as NavButton,
|
|
1031
|
+
_t as createBreadcrumb
|
|
794
1032
|
};
|