@validol4ik/uikit 0.3.24 → 0.3.25
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/types/boot.d.ts +0 -2
- package/dist/types/index.d.ts +6 -0
- package/dist/types/plugin.d.ts +0 -5
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +4443 -5
- package/package.json +1 -1
- package/dist/AppButton-Bz5mz9Mx.cjs +0 -1
- package/dist/AppButton-DGne1Zdn.js +0 -390
- package/dist/AppButtonCopy-CWQXqXtn.js +0 -62
- package/dist/AppButtonCopy-Vyc1hnYD.cjs +0 -1
- package/dist/AppIcon-Bupq345T.js +0 -19
- package/dist/AppIcon-CZ4SweU2.cjs +0 -1
- package/dist/AppSelect-DVxNpiFx.cjs +0 -1
- package/dist/AppSelect-DWfwIpXY.js +0 -3327
- package/dist/_plugin-vue_export-helper-BHFhmbuH.cjs +0 -1
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/boot/boot.cjs +0 -1
- package/dist/boot/boot.es.js +0 -7
- package/dist/components-C9kjME7-.js +0 -16
- package/dist/components-TUA38xWT.cjs +0 -1
- package/dist/focusout-DjvPXP_b.js +0 -135
- package/dist/focusout-DzWGke-4.cjs +0 -1
- package/dist/plugin/plugin.cjs +0 -1
- package/dist/plugin/plugin.es.js +0 -9
- package/dist/types/components/components.d.ts +0 -49
- package/dist/types/uikit.d.ts +0 -1
- package/dist/use-router-link-BgNwCOFX.js +0 -576
- package/dist/use-router-link-DiPB_4Ct.cjs +0 -1
|
@@ -1,576 +0,0 @@
|
|
|
1
|
-
import { computed as c, markRaw as K, defineComponent as U, h as f, withDirectives as Y, getCurrentInstance as N, unref as X } from "vue";
|
|
2
|
-
const xe = {
|
|
3
|
-
PRIMARY: "primary",
|
|
4
|
-
INFO: "info"
|
|
5
|
-
}, _e = {
|
|
6
|
-
SM: "sm",
|
|
7
|
-
MD: "md",
|
|
8
|
-
LG: "lg"
|
|
9
|
-
}, C = {
|
|
10
|
-
xs: 18,
|
|
11
|
-
sm: 24,
|
|
12
|
-
md: 32,
|
|
13
|
-
lg: 38,
|
|
14
|
-
xl: 46
|
|
15
|
-
}, G = {
|
|
16
|
-
size: String
|
|
17
|
-
};
|
|
18
|
-
function Z(e, t = C) {
|
|
19
|
-
return c(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
20
|
-
}
|
|
21
|
-
function F(e) {
|
|
22
|
-
return K(U(e));
|
|
23
|
-
}
|
|
24
|
-
function J(e) {
|
|
25
|
-
return K(e);
|
|
26
|
-
}
|
|
27
|
-
function W(e, t) {
|
|
28
|
-
return e !== void 0 && e() || t;
|
|
29
|
-
}
|
|
30
|
-
function Re(e, t) {
|
|
31
|
-
if (e !== void 0) {
|
|
32
|
-
const n = e();
|
|
33
|
-
if (n != null)
|
|
34
|
-
return n.slice();
|
|
35
|
-
}
|
|
36
|
-
return t;
|
|
37
|
-
}
|
|
38
|
-
function P(e, t) {
|
|
39
|
-
return e !== void 0 ? t.concat(e()) : t;
|
|
40
|
-
}
|
|
41
|
-
function we(e, t) {
|
|
42
|
-
return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
|
|
43
|
-
}
|
|
44
|
-
function Ee(e, t, n, r, i, u) {
|
|
45
|
-
t.key = r + i;
|
|
46
|
-
const a = f(e, t, n);
|
|
47
|
-
return i === !0 ? Y(a, u()) : a;
|
|
48
|
-
}
|
|
49
|
-
const A = "0 0 24 24", j = (e) => e, q = (e) => `ionicons ${e}`, Q = {
|
|
50
|
-
"mdi-": (e) => `mdi ${e}`,
|
|
51
|
-
"icon-": j,
|
|
52
|
-
// fontawesome equiv
|
|
53
|
-
"bt-": (e) => `bt ${e}`,
|
|
54
|
-
"eva-": (e) => `eva ${e}`,
|
|
55
|
-
"ion-md": q,
|
|
56
|
-
"ion-ios": q,
|
|
57
|
-
"ion-logo": q,
|
|
58
|
-
"iconfont ": j,
|
|
59
|
-
"ti-": (e) => `themify-icon ${e}`,
|
|
60
|
-
"bi-": (e) => `bootstrap-icons ${e}`
|
|
61
|
-
}, V = {
|
|
62
|
-
o_: "-outlined",
|
|
63
|
-
r_: "-round",
|
|
64
|
-
s_: "-sharp"
|
|
65
|
-
}, H = {
|
|
66
|
-
sym_o_: "-outlined",
|
|
67
|
-
sym_r_: "-rounded",
|
|
68
|
-
sym_s_: "-sharp"
|
|
69
|
-
}, ee = new RegExp("^(" + Object.keys(Q).join("|") + ")"), te = new RegExp("^(" + Object.keys(V).join("|") + ")"), M = new RegExp("^(" + Object.keys(H).join("|") + ")"), ne = /^[Mm]\s?[-+]?\.?\d/, re = /^img:/, se = /^svguse:/, ie = /^ion-/, ae = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, Pe = F({
|
|
70
|
-
name: "QIcon",
|
|
71
|
-
props: {
|
|
72
|
-
...G,
|
|
73
|
-
tag: {
|
|
74
|
-
type: String,
|
|
75
|
-
default: "i"
|
|
76
|
-
},
|
|
77
|
-
name: String,
|
|
78
|
-
color: String,
|
|
79
|
-
left: Boolean,
|
|
80
|
-
right: Boolean
|
|
81
|
-
},
|
|
82
|
-
setup(e, { slots: t }) {
|
|
83
|
-
const { proxy: { $q: n } } = N(), r = Z(e), i = c(
|
|
84
|
-
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
85
|
-
), u = c(() => {
|
|
86
|
-
let a, s = e.name;
|
|
87
|
-
if (s === "none" || !s)
|
|
88
|
-
return { none: !0 };
|
|
89
|
-
if (n.iconMapFn !== null) {
|
|
90
|
-
const o = n.iconMapFn(s);
|
|
91
|
-
if (o !== void 0)
|
|
92
|
-
if (o.icon !== void 0) {
|
|
93
|
-
if (s = o.icon, s === "none" || !s)
|
|
94
|
-
return { none: !0 };
|
|
95
|
-
} else
|
|
96
|
-
return {
|
|
97
|
-
cls: o.cls,
|
|
98
|
-
content: o.content !== void 0 ? o.content : " "
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
if (ne.test(s) === !0) {
|
|
102
|
-
const [o, d = A] = s.split("|");
|
|
103
|
-
return {
|
|
104
|
-
svg: !0,
|
|
105
|
-
viewBox: d,
|
|
106
|
-
nodes: o.split("&&").map((y) => {
|
|
107
|
-
const [m, k, g] = y.split("@@");
|
|
108
|
-
return f("path", { style: k, d: m, transform: g });
|
|
109
|
-
})
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
if (re.test(s) === !0)
|
|
113
|
-
return {
|
|
114
|
-
img: !0,
|
|
115
|
-
src: s.substring(4)
|
|
116
|
-
};
|
|
117
|
-
if (se.test(s) === !0) {
|
|
118
|
-
const [o, d = A] = s.split("|");
|
|
119
|
-
return {
|
|
120
|
-
svguse: !0,
|
|
121
|
-
src: o.substring(7),
|
|
122
|
-
viewBox: d
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
let h = " ";
|
|
126
|
-
const p = s.match(ee);
|
|
127
|
-
if (p !== null)
|
|
128
|
-
a = Q[p[1]](s);
|
|
129
|
-
else if (ae.test(s) === !0)
|
|
130
|
-
a = s;
|
|
131
|
-
else if (ie.test(s) === !0)
|
|
132
|
-
a = `ionicons ion-${n.platform.is.ios === !0 ? "ios" : "md"}${s.substring(3)}`;
|
|
133
|
-
else if (M.test(s) === !0) {
|
|
134
|
-
a = "notranslate material-symbols";
|
|
135
|
-
const o = s.match(M);
|
|
136
|
-
o !== null && (s = s.substring(6), a += H[o[1]]), h = s;
|
|
137
|
-
} else {
|
|
138
|
-
a = "notranslate material-icons";
|
|
139
|
-
const o = s.match(te);
|
|
140
|
-
o !== null && (s = s.substring(2), a += V[o[1]]), h = s;
|
|
141
|
-
}
|
|
142
|
-
return {
|
|
143
|
-
cls: a,
|
|
144
|
-
content: h
|
|
145
|
-
};
|
|
146
|
-
});
|
|
147
|
-
return () => {
|
|
148
|
-
const a = {
|
|
149
|
-
class: i.value,
|
|
150
|
-
style: r.value,
|
|
151
|
-
"aria-hidden": "true",
|
|
152
|
-
role: "presentation"
|
|
153
|
-
};
|
|
154
|
-
return u.value.none === !0 ? f(e.tag, a, W(t.default)) : u.value.img === !0 ? f(e.tag, a, P(t.default, [
|
|
155
|
-
f("img", { src: u.value.src })
|
|
156
|
-
])) : u.value.svg === !0 ? f(e.tag, a, P(t.default, [
|
|
157
|
-
f("svg", {
|
|
158
|
-
viewBox: u.value.viewBox || "0 0 24 24"
|
|
159
|
-
}, u.value.nodes)
|
|
160
|
-
])) : u.value.svguse === !0 ? f(e.tag, a, P(t.default, [
|
|
161
|
-
f("svg", {
|
|
162
|
-
viewBox: u.value.viewBox
|
|
163
|
-
}, [
|
|
164
|
-
f("use", { "xlink:href": u.value.src })
|
|
165
|
-
])
|
|
166
|
-
])) : (u.value.cls !== void 0 && (a.class += " " + u.value.cls), f(e.tag, a, P(t.default, [
|
|
167
|
-
u.value.content
|
|
168
|
-
])));
|
|
169
|
-
};
|
|
170
|
-
}
|
|
171
|
-
}), oe = {
|
|
172
|
-
size: {
|
|
173
|
-
type: [String, Number],
|
|
174
|
-
default: "1em"
|
|
175
|
-
},
|
|
176
|
-
color: String
|
|
177
|
-
};
|
|
178
|
-
function ue(e) {
|
|
179
|
-
return {
|
|
180
|
-
cSize: c(() => e.size in C ? `${C[e.size]}px` : e.size),
|
|
181
|
-
classes: c(
|
|
182
|
-
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
183
|
-
)
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
const qe = F({
|
|
187
|
-
name: "QSpinner",
|
|
188
|
-
props: {
|
|
189
|
-
...oe,
|
|
190
|
-
thickness: {
|
|
191
|
-
type: Number,
|
|
192
|
-
default: 5
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
setup(e) {
|
|
196
|
-
const { cSize: t, classes: n } = ue(e);
|
|
197
|
-
return () => f("svg", {
|
|
198
|
-
class: n.value + " q-spinner-mat",
|
|
199
|
-
width: t.value,
|
|
200
|
-
height: t.value,
|
|
201
|
-
viewBox: "25 25 50 50"
|
|
202
|
-
}, [
|
|
203
|
-
f("circle", {
|
|
204
|
-
class: "path",
|
|
205
|
-
cx: "50",
|
|
206
|
-
cy: "50",
|
|
207
|
-
r: "20",
|
|
208
|
-
fill: "none",
|
|
209
|
-
stroke: "currentColor",
|
|
210
|
-
"stroke-width": e.thickness,
|
|
211
|
-
"stroke-miterlimit": "10"
|
|
212
|
-
})
|
|
213
|
-
]);
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
function le(e, t) {
|
|
217
|
-
const n = e.style;
|
|
218
|
-
for (const r in t)
|
|
219
|
-
n[r] = t[r];
|
|
220
|
-
}
|
|
221
|
-
function Ce(e) {
|
|
222
|
-
if (e == null)
|
|
223
|
-
return;
|
|
224
|
-
if (typeof e == "string")
|
|
225
|
-
try {
|
|
226
|
-
return document.querySelector(e) || void 0;
|
|
227
|
-
} catch {
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
const t = X(e);
|
|
231
|
-
if (t)
|
|
232
|
-
return t.$el || t;
|
|
233
|
-
}
|
|
234
|
-
function Oe(e, t) {
|
|
235
|
-
if (e == null || e.contains(t) === !0)
|
|
236
|
-
return !0;
|
|
237
|
-
for (let n = e.nextElementSibling; n !== null; n = n.nextElementSibling)
|
|
238
|
-
if (n.contains(t))
|
|
239
|
-
return !0;
|
|
240
|
-
return !1;
|
|
241
|
-
}
|
|
242
|
-
const O = {
|
|
243
|
-
hasPassive: !1,
|
|
244
|
-
passiveCapture: !0,
|
|
245
|
-
notPassiveCapture: !0
|
|
246
|
-
};
|
|
247
|
-
try {
|
|
248
|
-
const e = Object.defineProperty({}, "passive", {
|
|
249
|
-
get() {
|
|
250
|
-
Object.assign(O, {
|
|
251
|
-
hasPassive: !0,
|
|
252
|
-
passive: { passive: !0 },
|
|
253
|
-
notPassive: { passive: !1 },
|
|
254
|
-
passiveCapture: { passive: !0, capture: !0 },
|
|
255
|
-
notPassiveCapture: { passive: !1, capture: !0 }
|
|
256
|
-
});
|
|
257
|
-
}
|
|
258
|
-
});
|
|
259
|
-
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
260
|
-
} catch {
|
|
261
|
-
}
|
|
262
|
-
function Le() {
|
|
263
|
-
}
|
|
264
|
-
function ce(e) {
|
|
265
|
-
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]), {
|
|
266
|
-
top: e.clientY,
|
|
267
|
-
left: e.clientX
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
function Ae(e) {
|
|
271
|
-
if (e.path)
|
|
272
|
-
return e.path;
|
|
273
|
-
if (e.composedPath)
|
|
274
|
-
return e.composedPath();
|
|
275
|
-
const t = [];
|
|
276
|
-
let n = e.target;
|
|
277
|
-
for (; n; ) {
|
|
278
|
-
if (t.push(n), n.tagName === "HTML")
|
|
279
|
-
return t.push(document), t.push(window), t;
|
|
280
|
-
n = n.parentElement;
|
|
281
|
-
}
|
|
282
|
-
}
|
|
283
|
-
function fe(e) {
|
|
284
|
-
e.stopPropagation();
|
|
285
|
-
}
|
|
286
|
-
function je(e) {
|
|
287
|
-
e.cancelable !== !1 && e.preventDefault();
|
|
288
|
-
}
|
|
289
|
-
function Me(e) {
|
|
290
|
-
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
291
|
-
}
|
|
292
|
-
function pe(e, t, n) {
|
|
293
|
-
const r = `__q_${t}_evt`;
|
|
294
|
-
e[r] = e[r] !== void 0 ? e[r].concat(n) : n, n.forEach((i) => {
|
|
295
|
-
i[0].addEventListener(i[1], e[i[2]], O[i[3]]);
|
|
296
|
-
});
|
|
297
|
-
}
|
|
298
|
-
function de(e, t) {
|
|
299
|
-
const n = `__q_${t}_evt`;
|
|
300
|
-
e[n] !== void 0 && (e[n].forEach((r) => {
|
|
301
|
-
r[0].removeEventListener(r[1], e[r[2]], O[r[3]]);
|
|
302
|
-
}), e[n] = void 0);
|
|
303
|
-
}
|
|
304
|
-
function ve(e) {
|
|
305
|
-
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
306
|
-
}
|
|
307
|
-
function me(e, t) {
|
|
308
|
-
return ve(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
309
|
-
}
|
|
310
|
-
function he(e, t = 250) {
|
|
311
|
-
let n = !1, r;
|
|
312
|
-
return function() {
|
|
313
|
-
return n === !1 && (n = !0, setTimeout(() => {
|
|
314
|
-
n = !1;
|
|
315
|
-
}, t), r = e.apply(this, arguments)), r;
|
|
316
|
-
};
|
|
317
|
-
}
|
|
318
|
-
function z(e, t, n, r) {
|
|
319
|
-
n.modifiers.stop === !0 && fe(e);
|
|
320
|
-
const i = n.modifiers.color;
|
|
321
|
-
let u = n.modifiers.center;
|
|
322
|
-
u = u === !0 || r === !0;
|
|
323
|
-
const a = document.createElement("span"), s = document.createElement("span"), h = ce(e), { left: p, top: o, width: d, height: y } = t.getBoundingClientRect(), m = Math.sqrt(d * d + y * y), k = m / 2, g = `${(d - m) / 2}px`, R = u ? g : `${h.left - p - k}px`, w = `${(y - m) / 2}px`, E = u ? w : `${h.top - o - k}px`;
|
|
324
|
-
s.className = "q-ripple__inner", le(s, {
|
|
325
|
-
height: `${m}px`,
|
|
326
|
-
width: `${m}px`,
|
|
327
|
-
transform: `translate3d(${R},${E},0) scale3d(.2,.2,1)`,
|
|
328
|
-
opacity: 0
|
|
329
|
-
}), a.className = `q-ripple${i ? " text-" + i : ""}`, a.setAttribute("dir", "ltr"), a.appendChild(s), t.appendChild(a);
|
|
330
|
-
const x = () => {
|
|
331
|
-
a.remove(), clearTimeout(_);
|
|
332
|
-
};
|
|
333
|
-
n.abort.push(x);
|
|
334
|
-
let _ = setTimeout(() => {
|
|
335
|
-
s.classList.add("q-ripple__inner--enter"), s.style.transform = `translate3d(${g},${w},0) scale3d(1,1,1)`, s.style.opacity = 0.2, _ = setTimeout(() => {
|
|
336
|
-
s.classList.remove("q-ripple__inner--enter"), s.classList.add("q-ripple__inner--leave"), s.style.opacity = 0, _ = setTimeout(() => {
|
|
337
|
-
a.remove(), n.abort.splice(n.abort.indexOf(x), 1);
|
|
338
|
-
}, 275);
|
|
339
|
-
}, 250);
|
|
340
|
-
}, 50);
|
|
341
|
-
}
|
|
342
|
-
function B(e, { modifiers: t, value: n, arg: r }) {
|
|
343
|
-
const i = Object.assign({}, e.cfg.ripple, t, n);
|
|
344
|
-
e.modifiers = {
|
|
345
|
-
early: i.early === !0,
|
|
346
|
-
stop: i.stop === !0,
|
|
347
|
-
center: i.center === !0,
|
|
348
|
-
color: i.color || r,
|
|
349
|
-
keyCodes: [].concat(i.keyCodes || 13)
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
const ze = J(
|
|
353
|
-
{
|
|
354
|
-
name: "ripple",
|
|
355
|
-
beforeMount(e, t) {
|
|
356
|
-
const n = t.instance.$.appContext.config.globalProperties.$q.config || {};
|
|
357
|
-
if (n.ripple === !1)
|
|
358
|
-
return;
|
|
359
|
-
const r = {
|
|
360
|
-
cfg: n,
|
|
361
|
-
enabled: t.value !== !1,
|
|
362
|
-
modifiers: {},
|
|
363
|
-
abort: [],
|
|
364
|
-
start(i) {
|
|
365
|
-
r.enabled === !0 && i.qSkipRipple !== !0 && i.type === (r.modifiers.early === !0 ? "pointerdown" : "click") && z(i, e, r, i.qKeyEvent === !0);
|
|
366
|
-
},
|
|
367
|
-
keystart: he((i) => {
|
|
368
|
-
r.enabled === !0 && i.qSkipRipple !== !0 && me(i, r.modifiers.keyCodes) === !0 && i.type === `key${r.modifiers.early === !0 ? "down" : "up"}` && z(i, e, r, !0);
|
|
369
|
-
}, 300)
|
|
370
|
-
};
|
|
371
|
-
B(r, t), e.__qripple = r, pe(r, "main", [
|
|
372
|
-
[e, "pointerdown", "start", "passive"],
|
|
373
|
-
[e, "click", "start", "passive"],
|
|
374
|
-
[e, "keydown", "keystart", "passive"],
|
|
375
|
-
[e, "keyup", "keystart", "passive"]
|
|
376
|
-
]);
|
|
377
|
-
},
|
|
378
|
-
updated(e, t) {
|
|
379
|
-
if (t.oldValue !== t.value) {
|
|
380
|
-
const n = e.__qripple;
|
|
381
|
-
n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value && B(n, t));
|
|
382
|
-
}
|
|
383
|
-
},
|
|
384
|
-
beforeUnmount(e) {
|
|
385
|
-
const t = e.__qripple;
|
|
386
|
-
t !== void 0 && (t.abort.forEach((n) => {
|
|
387
|
-
n();
|
|
388
|
-
}), de(t, "main"), delete e._qripple);
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
);
|
|
392
|
-
function Be(e) {
|
|
393
|
-
if (Object(e.$parent) === e.$parent)
|
|
394
|
-
return e.$parent;
|
|
395
|
-
let { parent: t } = e.$;
|
|
396
|
-
for (; Object(t) === t; ) {
|
|
397
|
-
if (Object(t.proxy) === t.proxy)
|
|
398
|
-
return t.proxy;
|
|
399
|
-
t = t.parent;
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
function ge(e) {
|
|
403
|
-
return e.appContext.config.globalProperties.$router !== void 0;
|
|
404
|
-
}
|
|
405
|
-
function Te(e) {
|
|
406
|
-
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
407
|
-
}
|
|
408
|
-
function T(e) {
|
|
409
|
-
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
410
|
-
}
|
|
411
|
-
function I(e, t) {
|
|
412
|
-
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
413
|
-
}
|
|
414
|
-
function ye(e, t) {
|
|
415
|
-
for (const n in t) {
|
|
416
|
-
const r = t[n], i = e[n];
|
|
417
|
-
if (typeof r == "string") {
|
|
418
|
-
if (r !== i)
|
|
419
|
-
return !1;
|
|
420
|
-
} else if (Array.isArray(i) === !1 || i.length !== r.length || r.some((u, a) => u !== i[a]))
|
|
421
|
-
return !1;
|
|
422
|
-
}
|
|
423
|
-
return !0;
|
|
424
|
-
}
|
|
425
|
-
function D(e, t) {
|
|
426
|
-
return Array.isArray(t) === !0 ? e.length === t.length && e.every((n, r) => n === t[r]) : e.length === 1 && e[0] === t;
|
|
427
|
-
}
|
|
428
|
-
function ke(e, t) {
|
|
429
|
-
return Array.isArray(e) === !0 ? D(e, t) : Array.isArray(t) === !0 ? D(t, e) : e === t;
|
|
430
|
-
}
|
|
431
|
-
function be(e, t) {
|
|
432
|
-
if (Object.keys(e).length !== Object.keys(t).length)
|
|
433
|
-
return !1;
|
|
434
|
-
for (const n in e)
|
|
435
|
-
if (ke(e[n], t[n]) === !1)
|
|
436
|
-
return !1;
|
|
437
|
-
return !0;
|
|
438
|
-
}
|
|
439
|
-
const $e = {
|
|
440
|
-
// router-link
|
|
441
|
-
to: [String, Object],
|
|
442
|
-
replace: Boolean,
|
|
443
|
-
// regular <a> link
|
|
444
|
-
href: String,
|
|
445
|
-
target: String,
|
|
446
|
-
// state
|
|
447
|
-
disable: Boolean
|
|
448
|
-
}, Ie = {
|
|
449
|
-
...$e,
|
|
450
|
-
// router-link
|
|
451
|
-
exact: Boolean,
|
|
452
|
-
activeClass: {
|
|
453
|
-
type: String,
|
|
454
|
-
default: "q-router-link--active"
|
|
455
|
-
},
|
|
456
|
-
exactActiveClass: {
|
|
457
|
-
type: String,
|
|
458
|
-
default: "q-router-link--exact-active"
|
|
459
|
-
}
|
|
460
|
-
};
|
|
461
|
-
function De({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
462
|
-
const n = N(), { props: r, proxy: i, emit: u } = n, a = ge(n), s = c(() => r.disable !== !0 && r.href !== void 0), h = t === !0 ? c(
|
|
463
|
-
() => a === !0 && r.disable !== !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""
|
|
464
|
-
) : c(
|
|
465
|
-
() => a === !0 && s.value !== !0 && r.to !== void 0 && r.to !== null && r.to !== ""
|
|
466
|
-
), p = c(() => h.value === !0 ? E(r.to) : null), o = c(() => p.value !== null), d = c(() => s.value === !0 || o.value === !0), y = c(() => r.type === "a" || d.value === !0 ? "a" : r.tag || e || "div"), m = c(() => s.value === !0 ? {
|
|
467
|
-
href: r.href,
|
|
468
|
-
target: r.target
|
|
469
|
-
} : o.value === !0 ? {
|
|
470
|
-
href: p.value.href,
|
|
471
|
-
target: r.target
|
|
472
|
-
} : {}), k = c(() => {
|
|
473
|
-
if (o.value === !1)
|
|
474
|
-
return -1;
|
|
475
|
-
const { matched: l } = p.value, { length: v } = l, b = l[v - 1];
|
|
476
|
-
if (b === void 0)
|
|
477
|
-
return -1;
|
|
478
|
-
const $ = i.$route.matched;
|
|
479
|
-
if ($.length === 0)
|
|
480
|
-
return -1;
|
|
481
|
-
const S = $.findIndex(
|
|
482
|
-
I.bind(null, b)
|
|
483
|
-
);
|
|
484
|
-
if (S !== -1)
|
|
485
|
-
return S;
|
|
486
|
-
const L = T(l[v - 2]);
|
|
487
|
-
return (
|
|
488
|
-
// we are dealing with nested routes
|
|
489
|
-
v > 1 && T(b) === L && $[$.length - 1].path !== L ? $.findIndex(
|
|
490
|
-
I.bind(null, l[v - 2])
|
|
491
|
-
) : S
|
|
492
|
-
);
|
|
493
|
-
}), g = c(
|
|
494
|
-
() => o.value === !0 && k.value !== -1 && ye(i.$route.params, p.value.params)
|
|
495
|
-
), R = c(
|
|
496
|
-
() => g.value === !0 && k.value === i.$route.matched.length - 1 && be(i.$route.params, p.value.params)
|
|
497
|
-
), w = c(() => o.value === !0 ? R.value === !0 ? ` ${r.exactActiveClass} ${r.activeClass}` : r.exact === !0 ? "" : g.value === !0 ? ` ${r.activeClass}` : "" : "");
|
|
498
|
-
function E(l) {
|
|
499
|
-
try {
|
|
500
|
-
return i.$router.resolve(l);
|
|
501
|
-
} catch {
|
|
502
|
-
}
|
|
503
|
-
return null;
|
|
504
|
-
}
|
|
505
|
-
function x(l, { returnRouterError: v, to: b = r.to, replace: $ = r.replace } = {}) {
|
|
506
|
-
if (r.disable === !0)
|
|
507
|
-
return l.preventDefault(), Promise.resolve(!1);
|
|
508
|
-
if (
|
|
509
|
-
// don't redirect with control keys;
|
|
510
|
-
// should match RouterLink from Vue Router
|
|
511
|
-
l.metaKey || l.altKey || l.ctrlKey || l.shiftKey || l.button !== void 0 && l.button !== 0 || r.target === "_blank"
|
|
512
|
-
)
|
|
513
|
-
return Promise.resolve(!1);
|
|
514
|
-
l.preventDefault();
|
|
515
|
-
const S = i.$router[$ === !0 ? "replace" : "push"](b);
|
|
516
|
-
return v === !0 ? S : S.then(() => {
|
|
517
|
-
}).catch(() => {
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
function _(l) {
|
|
521
|
-
if (o.value === !0) {
|
|
522
|
-
const v = (b) => x(l, b);
|
|
523
|
-
u("click", l, v), l.defaultPrevented !== !0 && v();
|
|
524
|
-
} else
|
|
525
|
-
u("click", l);
|
|
526
|
-
}
|
|
527
|
-
return {
|
|
528
|
-
hasRouterLink: o,
|
|
529
|
-
hasHrefLink: s,
|
|
530
|
-
hasLink: d,
|
|
531
|
-
linkTag: y,
|
|
532
|
-
resolvedLink: p,
|
|
533
|
-
linkIsActive: g,
|
|
534
|
-
linkIsExactActive: R,
|
|
535
|
-
linkClass: w,
|
|
536
|
-
linkAttrs: m,
|
|
537
|
-
getLink: E,
|
|
538
|
-
navigateToRouterLink: x,
|
|
539
|
-
navigateOnClick: _
|
|
540
|
-
};
|
|
541
|
-
}
|
|
542
|
-
export {
|
|
543
|
-
Ae as A,
|
|
544
|
-
Le as B,
|
|
545
|
-
xe as C,
|
|
546
|
-
ve as D,
|
|
547
|
-
Pe as Q,
|
|
548
|
-
ze as R,
|
|
549
|
-
_e as S,
|
|
550
|
-
De as a,
|
|
551
|
-
$e as b,
|
|
552
|
-
G as c,
|
|
553
|
-
F as d,
|
|
554
|
-
fe as e,
|
|
555
|
-
qe as f,
|
|
556
|
-
W as g,
|
|
557
|
-
P as h,
|
|
558
|
-
me as i,
|
|
559
|
-
Re as j,
|
|
560
|
-
Ie as k,
|
|
561
|
-
O as l,
|
|
562
|
-
Ee as m,
|
|
563
|
-
we as n,
|
|
564
|
-
pe as o,
|
|
565
|
-
je as p,
|
|
566
|
-
de as q,
|
|
567
|
-
Be as r,
|
|
568
|
-
Me as s,
|
|
569
|
-
Te as t,
|
|
570
|
-
Z as u,
|
|
571
|
-
ge as v,
|
|
572
|
-
Ce as w,
|
|
573
|
-
le as x,
|
|
574
|
-
ce as y,
|
|
575
|
-
Oe as z
|
|
576
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const s=require("vue"),ne={PRIMARY:"primary",INFO:"info"},re={SM:"sm",MD:"md",LG:"lg"},q={xs:18,sm:24,md:32,lg:38,xl:46},K={size:String};function N(e,t=q){return s.computed(()=>e.size!==void 0?{fontSize:e.size in t?`${t[e.size]}px`:e.size}:null)}function O(e){return s.markRaw(s.defineComponent(e))}function oe(e){return s.markRaw(e)}function F(e,t){return e!==void 0&&e()||t}function ie(e,t){if(e!==void 0){const n=e();if(n!=null)return n.slice()}return t}function x(e,t){return e!==void 0?t.concat(e()):t}function se(e,t){return e===void 0?t:t!==void 0?t.concat(e()):e()}function ae(e,t,n,r,i,c){t.key=r+i;const a=s.h(e,t,n);return i===!0?s.withDirectives(a,c()):a}const M="0 0 24 24",A=e=>e,C=e=>`ionicons ${e}`,H={"mdi-":e=>`mdi ${e}`,"icon-":A,"bt-":e=>`bt ${e}`,"eva-":e=>`eva ${e}`,"ion-md":C,"ion-ios":C,"ion-logo":C,"iconfont ":A,"ti-":e=>`themify-icon ${e}`,"bi-":e=>`bootstrap-icons ${e}`},Q={o_:"-outlined",r_:"-round",s_:"-sharp"},U={sym_o_:"-outlined",sym_r_:"-rounded",sym_s_:"-sharp"},ue=new RegExp("^("+Object.keys(H).join("|")+")"),ce=new RegExp("^("+Object.keys(Q).join("|")+")"),I=new RegExp("^("+Object.keys(U).join("|")+")"),le=/^[Mm]\s?[-+]?\.?\d/,fe=/^img:/,pe=/^svguse:/,de=/^ion-/,ve=/^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /,me=O({name:"QIcon",props:{...K,tag:{type:String,default:"i"},name:String,color:String,left:Boolean,right:Boolean},setup(e,{slots:t}){const{proxy:{$q:n}}=s.getCurrentInstance(),r=N(e),i=s.computed(()=>"q-icon"+(e.left===!0?" on-left":"")+(e.right===!0?" on-right":"")+(e.color!==void 0?` text-${e.color}`:"")),c=s.computed(()=>{let a,o=e.name;if(o==="none"||!o)return{none:!0};if(n.iconMapFn!==null){const u=n.iconMapFn(o);if(u!==void 0)if(u.icon!==void 0){if(o=u.icon,o==="none"||!o)return{none:!0}}else return{cls:u.cls,content:u.content!==void 0?u.content:" "}}if(le.test(o)===!0){const[u,p=M]=o.split("|");return{svg:!0,viewBox:p,nodes:u.split("&&").map(g=>{const[v,y,h]=g.split("@@");return s.h("path",{style:y,d:v,transform:h})})}}if(fe.test(o)===!0)return{img:!0,src:o.substring(4)};if(pe.test(o)===!0){const[u,p=M]=o.split("|");return{svguse:!0,src:u.substring(7),viewBox:p}}let m=" ";const f=o.match(ue);if(f!==null)a=H[f[1]](o);else if(ve.test(o)===!0)a=o;else if(de.test(o)===!0)a=`ionicons ion-${n.platform.is.ios===!0?"ios":"md"}${o.substring(3)}`;else if(I.test(o)===!0){a="notranslate material-symbols";const u=o.match(I);u!==null&&(o=o.substring(6),a+=U[u[1]]),m=o}else{a="notranslate material-icons";const u=o.match(ce);u!==null&&(o=o.substring(2),a+=Q[u[1]]),m=o}return{cls:a,content:m}});return()=>{const a={class:i.value,style:r.value,"aria-hidden":"true",role:"presentation"};return c.value.none===!0?s.h(e.tag,a,F(t.default)):c.value.img===!0?s.h(e.tag,a,x(t.default,[s.h("img",{src:c.value.src})])):c.value.svg===!0?s.h(e.tag,a,x(t.default,[s.h("svg",{viewBox:c.value.viewBox||"0 0 24 24"},c.value.nodes)])):c.value.svguse===!0?s.h(e.tag,a,x(t.default,[s.h("svg",{viewBox:c.value.viewBox},[s.h("use",{"xlink:href":c.value.src})])])):(c.value.cls!==void 0&&(a.class+=" "+c.value.cls),s.h(e.tag,a,x(t.default,[c.value.content])))}}}),he={size:{type:[String,Number],default:"1em"},color:String};function ge(e){return{cSize:s.computed(()=>e.size in q?`${q[e.size]}px`:e.size),classes:s.computed(()=>"q-spinner"+(e.color?` text-${e.color}`:""))}}const ye=O({name:"QSpinner",props:{...he,thickness:{type:Number,default:5}},setup(e){const{cSize:t,classes:n}=ge(e);return()=>s.h("svg",{class:n.value+" q-spinner-mat",width:t.value,height:t.value,viewBox:"25 25 50 50"},[s.h("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none",stroke:"currentColor","stroke-width":e.thickness,"stroke-miterlimit":"10"})])}});function V(e,t){const n=e.style;for(const r in t)n[r]=t[r]}function ke(e){if(e==null)return;if(typeof e=="string")try{return document.querySelector(e)||void 0}catch{return}const t=s.unref(e);if(t)return t.$el||t}function Se(e,t){if(e==null||e.contains(t)===!0)return!0;for(let n=e.nextElementSibling;n!==null;n=n.nextElementSibling)if(n.contains(t))return!0;return!1}const w={hasPassive:!1,passiveCapture:!0,notPassiveCapture:!0};try{const e=Object.defineProperty({},"passive",{get(){Object.assign(w,{hasPassive:!0,passive:{passive:!0},notPassive:{passive:!1},passiveCapture:{passive:!0,capture:!0},notPassiveCapture:{passive:!1,capture:!0}})}});window.addEventListener("qtest",null,e),window.removeEventListener("qtest",null,e)}catch{}function be(){}function Y(e){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]),{top:e.clientY,left:e.clientX}}function $e(e){if(e.path)return e.path;if(e.composedPath)return e.composedPath();const t=[];let n=e.target;for(;n;){if(t.push(n),n.tagName==="HTML")return t.push(document),t.push(window),t;n=n.parentElement}}function X(e){e.stopPropagation()}function Re(e){e.cancelable!==!1&&e.preventDefault()}function xe(e){e.cancelable!==!1&&e.preventDefault(),e.stopPropagation()}function Z(e,t,n){const r=`__q_${t}_evt`;e[r]=e[r]!==void 0?e[r].concat(n):n,n.forEach(i=>{i[0].addEventListener(i[1],e[i[2]],w[i[3]])})}function G(e,t){const n=`__q_${t}_evt`;e[n]!==void 0&&(e[n].forEach(r=>{r[0].removeEventListener(r[1],e[r[2]],w[r[3]])}),e[n]=void 0)}function J(e){return e!==Object(e)||e.isComposing===!0||e.qKeyEvent===!0}function W(e,t){return J(e)===!0?!1:[].concat(t).includes(e.keyCode)}function Pe(e,t=250){let n=!1,r;return function(){return n===!1&&(n=!0,setTimeout(()=>{n=!1},t),r=e.apply(this,arguments)),r}}function j(e,t,n,r){n.modifiers.stop===!0&&X(e);const i=n.modifiers.color;let c=n.modifiers.center;c=c===!0||r===!0;const a=document.createElement("span"),o=document.createElement("span"),m=Y(e),{left:f,top:u,width:p,height:g}=t.getBoundingClientRect(),v=Math.sqrt(p*p+g*g),y=v/2,h=`${(p-v)/2}px`,P=c?h:`${m.left-f-y}px`,E=`${(g-v)/2}px`,_=c?E:`${m.top-u-y}px`;o.className="q-ripple__inner",V(o,{height:`${v}px`,width:`${v}px`,transform:`translate3d(${P},${_},0) scale3d(.2,.2,1)`,opacity:0}),a.className=`q-ripple${i?" text-"+i:""}`,a.setAttribute("dir","ltr"),a.appendChild(o),t.appendChild(a);const $=()=>{a.remove(),clearTimeout(R)};n.abort.push($);let R=setTimeout(()=>{o.classList.add("q-ripple__inner--enter"),o.style.transform=`translate3d(${h},${E},0) scale3d(1,1,1)`,o.style.opacity=.2,R=setTimeout(()=>{o.classList.remove("q-ripple__inner--enter"),o.classList.add("q-ripple__inner--leave"),o.style.opacity=0,R=setTimeout(()=>{a.remove(),n.abort.splice(n.abort.indexOf($),1)},275)},250)},50)}function z(e,{modifiers:t,value:n,arg:r}){const i=Object.assign({},e.cfg.ripple,t,n);e.modifiers={early:i.early===!0,stop:i.stop===!0,center:i.center===!0,color:i.color||r,keyCodes:[].concat(i.keyCodes||13)}}const Ee=oe({name:"ripple",beforeMount(e,t){const n=t.instance.$.appContext.config.globalProperties.$q.config||{};if(n.ripple===!1)return;const r={cfg:n,enabled:t.value!==!1,modifiers:{},abort:[],start(i){r.enabled===!0&&i.qSkipRipple!==!0&&i.type===(r.modifiers.early===!0?"pointerdown":"click")&&j(i,e,r,i.qKeyEvent===!0)},keystart:Pe(i=>{r.enabled===!0&&i.qSkipRipple!==!0&&W(i,r.modifiers.keyCodes)===!0&&i.type===`key${r.modifiers.early===!0?"down":"up"}`&&j(i,e,r,!0)},300)};z(r,t),e.__qripple=r,Z(r,"main",[[e,"pointerdown","start","passive"],[e,"click","start","passive"],[e,"keydown","keystart","passive"],[e,"keyup","keystart","passive"]])},updated(e,t){if(t.oldValue!==t.value){const n=e.__qripple;n!==void 0&&(n.enabled=t.value!==!1,n.enabled===!0&&Object(t.value)===t.value&&z(n,t))}},beforeUnmount(e){const t=e.__qripple;t!==void 0&&(t.abort.forEach(n=>{n()}),G(t,"main"),delete e._qripple)}});function _e(e){if(Object(e.$parent)===e.$parent)return e.$parent;let{parent:t}=e.$;for(;Object(t)===t;){if(Object(t.proxy)===t.proxy)return t.proxy;t=t.parent}}function ee(e){return e.appContext.config.globalProperties.$router!==void 0}function we(e){return e.isUnmounted===!0||e.isDeactivated===!0}function B(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}function T(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ce(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(Array.isArray(i)===!1||i.length!==r.length||r.some((c,a)=>c!==i[a]))return!1}return!0}function D(e,t){return Array.isArray(t)===!0?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function qe(e,t){return Array.isArray(e)===!0?D(e,t):Array.isArray(t)===!0?D(t,e):e===t}function Oe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(qe(e[n],t[n])===!1)return!1;return!0}const te={to:[String,Object],replace:Boolean,href:String,target:String,disable:Boolean},Le={...te,exact:Boolean,activeClass:{type:String,default:"q-router-link--active"},exactActiveClass:{type:String,default:"q-router-link--exact-active"}};function Me({fallbackTag:e,useDisableForRouterLinkProps:t=!0}={}){const n=s.getCurrentInstance(),{props:r,proxy:i,emit:c}=n,a=ee(n),o=s.computed(()=>r.disable!==!0&&r.href!==void 0),m=t===!0?s.computed(()=>a===!0&&r.disable!==!0&&o.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""):s.computed(()=>a===!0&&o.value!==!0&&r.to!==void 0&&r.to!==null&&r.to!==""),f=s.computed(()=>m.value===!0?_(r.to):null),u=s.computed(()=>f.value!==null),p=s.computed(()=>o.value===!0||u.value===!0),g=s.computed(()=>r.type==="a"||p.value===!0?"a":r.tag||e||"div"),v=s.computed(()=>o.value===!0?{href:r.href,target:r.target}:u.value===!0?{href:f.value.href,target:r.target}:{}),y=s.computed(()=>{if(u.value===!1)return-1;const{matched:l}=f.value,{length:d}=l,k=l[d-1];if(k===void 0)return-1;const S=i.$route.matched;if(S.length===0)return-1;const b=S.findIndex(T.bind(null,k));if(b!==-1)return b;const L=B(l[d-2]);return d>1&&B(k)===L&&S[S.length-1].path!==L?S.findIndex(T.bind(null,l[d-2])):b}),h=s.computed(()=>u.value===!0&&y.value!==-1&&Ce(i.$route.params,f.value.params)),P=s.computed(()=>h.value===!0&&y.value===i.$route.matched.length-1&&Oe(i.$route.params,f.value.params)),E=s.computed(()=>u.value===!0?P.value===!0?` ${r.exactActiveClass} ${r.activeClass}`:r.exact===!0?"":h.value===!0?` ${r.activeClass}`:"":"");function _(l){try{return i.$router.resolve(l)}catch{}return null}function $(l,{returnRouterError:d,to:k=r.to,replace:S=r.replace}={}){if(r.disable===!0)return l.preventDefault(),Promise.resolve(!1);if(l.metaKey||l.altKey||l.ctrlKey||l.shiftKey||l.button!==void 0&&l.button!==0||r.target==="_blank")return Promise.resolve(!1);l.preventDefault();const b=i.$router[S===!0?"replace":"push"](k);return d===!0?b:b.then(()=>{}).catch(()=>{})}function R(l){if(u.value===!0){const d=k=>$(l,k);c("click",l,d),l.defaultPrevented!==!0&&d()}else c("click",l)}return{hasRouterLink:u,hasHrefLink:o,hasLink:p,linkTag:g,resolvedLink:f,linkIsActive:h,linkIsExactActive:P,linkClass:E,linkAttrs:v,getLink:_,navigateToRouterLink:$,navigateOnClick:R}}exports.COLORS=ne;exports.QIcon=me;exports.QSpinner=ye;exports.Ripple=Ee;exports.SIZES=re;exports.addEvt=Z;exports.childHasFocus=Se;exports.cleanEvt=G;exports.createComponent=O;exports.css=V;exports.getElement=ke;exports.getEventPath=$e;exports.getParentProxy=_e;exports.hDir=ae;exports.hMergeSlot=x;exports.hMergeSlotSafely=se;exports.hSlot=F;exports.hUniqueSlot=ie;exports.isKeyCode=W;exports.listenOpts=w;exports.noop=be;exports.position=Y;exports.prevent=Re;exports.shouldIgnoreKey=J;exports.stop=X;exports.stopAndPrevent=xe;exports.useRouterLink=Me;exports.useRouterLinkNonMatchingProps=te;exports.useRouterLinkProps=Le;exports.useSize=N;exports.useSizeProps=K;exports.vmHasRouter=ee;exports.vmIsDestroyed=we;
|