@validol4ik/uikit 0.6.0 → 0.6.3
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/{AppButtonCopy-4GxKBcWx.cjs → AppButtonCopy-8MnX1kAq.cjs} +1 -1
- package/dist/{AppButtonCopy-CcsAzDik.js → AppButtonCopy-UVVRHZJh.js} +27 -25
- package/dist/{AppSelect-BtUUK2ea.js → AppSelect-48yCktjO.js} +2 -2
- package/dist/{AppSelect-Tg7_Uj55.cjs → AppSelect-BNvVUv4k.cjs} +1 -1
- package/dist/{DropdownButton-CZwBMGcA.js → DropdownButton-Bw49fipB.js} +2 -2
- package/dist/{DropdownButton-DXQzSYcl.cjs → DropdownButton-Ci7qVgAw.cjs} +1 -1
- package/dist/{QMenu-cWjMyOHy.cjs → QMenu-BxE85UZy.cjs} +1 -1
- package/dist/{QMenu-P1hqLpnc.js → QMenu-D61TwxYh.js} +1 -1
- package/dist/{index-CtoDgaeS.js → index-Bl47gkS1.js} +204 -200
- package/dist/index-BxPlTOIx.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/types/components/AppIcon/iconsList.d.ts +2 -2
- package/dist/types/components/buttons/AppButton/types.d.ts +2 -0
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-CNCrt1w6.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as s, markRaw as ke, defineComponent as Q, h as m, withDirectives as le, getCurrentInstance as W, unref as H, ref as Y, onBeforeUnmount as Ae, Transition as ze, openBlock as
|
|
2
|
-
const
|
|
1
|
+
import { computed as s, markRaw as ke, defineComponent as Q, h as m, withDirectives as le, getCurrentInstance as W, unref as H, ref as Y, onBeforeUnmount as Ae, Transition as ze, openBlock as C, createBlock as _e, normalizeClass as z, withCtx as Te, createElementBlock as L, createCommentVNode as T, renderSlot as $e, Fragment as qe, createTextVNode as Oe, toDisplayString as X, createElementVNode as F, normalizeStyle as Se, watch as De, onMounted as xe, renderList as je, nextTick as se, withKeys as Ie, vModelText as Ve, defineAsyncComponent as oe } from "vue";
|
|
2
|
+
const Be = {
|
|
3
3
|
PRIMARY: "primary",
|
|
4
4
|
INFO: "info"
|
|
5
5
|
}, $ = {
|
|
@@ -33,9 +33,9 @@ function Fe(e, t) {
|
|
|
33
33
|
}
|
|
34
34
|
function Nt(e, t) {
|
|
35
35
|
if (e !== void 0) {
|
|
36
|
-
const
|
|
37
|
-
if (
|
|
38
|
-
return
|
|
36
|
+
const n = e();
|
|
37
|
+
if (n != null)
|
|
38
|
+
return n.slice();
|
|
39
39
|
}
|
|
40
40
|
return t;
|
|
41
41
|
}
|
|
@@ -45,12 +45,12 @@ function V(e, t) {
|
|
|
45
45
|
function Kt(e, t) {
|
|
46
46
|
return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
|
|
47
47
|
}
|
|
48
|
-
function Ft(e, t,
|
|
49
|
-
t.key =
|
|
50
|
-
const l = m(e, t,
|
|
48
|
+
function Ft(e, t, n, a, o, d) {
|
|
49
|
+
t.key = a + o;
|
|
50
|
+
const l = m(e, t, n);
|
|
51
51
|
return o === !0 ? le(l, d()) : l;
|
|
52
52
|
}
|
|
53
|
-
const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`,
|
|
53
|
+
const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Ce = {
|
|
54
54
|
"mdi-": (e) => `mdi ${e}`,
|
|
55
55
|
"icon-": ce,
|
|
56
56
|
// fontawesome equiv
|
|
@@ -62,7 +62,7 @@ const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
|
62
62
|
"iconfont ": ce,
|
|
63
63
|
"ti-": (e) => `themify-icon ${e}`,
|
|
64
64
|
"bi-": (e) => `bootstrap-icons ${e}`
|
|
65
|
-
},
|
|
65
|
+
}, we = {
|
|
66
66
|
o_: "-outlined",
|
|
67
67
|
r_: "-round",
|
|
68
68
|
s_: "-sharp"
|
|
@@ -70,7 +70,7 @@ const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
|
70
70
|
sym_o_: "-outlined",
|
|
71
71
|
sym_r_: "-rounded",
|
|
72
72
|
sym_s_: "-sharp"
|
|
73
|
-
}, Qe = new RegExp("^(" + Object.keys(
|
|
73
|
+
}, Qe = new RegExp("^(" + Object.keys(Ce).join("|") + ")"), Ge = new RegExp("^(" + Object.keys(we).join("|") + ")"), de = new RegExp("^(" + Object.keys(Le).join("|") + ")"), Ue = /^[Mm]\s?[-+]?\.?\d/, He = /^img:/, Ye = /^svguse:/, Xe = /^ion-/, We = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, fe = J({
|
|
74
74
|
name: "QIcon",
|
|
75
75
|
props: {
|
|
76
76
|
...re,
|
|
@@ -84,14 +84,14 @@ const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
|
84
84
|
right: Boolean
|
|
85
85
|
},
|
|
86
86
|
setup(e, { slots: t }) {
|
|
87
|
-
const { proxy: { $q:
|
|
87
|
+
const { proxy: { $q: n } } = W(), a = ie(e), o = s(
|
|
88
88
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
89
89
|
), d = s(() => {
|
|
90
90
|
let l, r = e.name;
|
|
91
91
|
if (r === "none" || !r)
|
|
92
92
|
return { none: !0 };
|
|
93
|
-
if (
|
|
94
|
-
const f =
|
|
93
|
+
if (n.iconMapFn !== null) {
|
|
94
|
+
const f = n.iconMapFn(r);
|
|
95
95
|
if (f !== void 0)
|
|
96
96
|
if (f.icon !== void 0) {
|
|
97
97
|
if (r = f.icon, r === "none" || !r)
|
|
@@ -129,11 +129,11 @@ const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
|
129
129
|
let S = " ";
|
|
130
130
|
const y = r.match(Qe);
|
|
131
131
|
if (y !== null)
|
|
132
|
-
l =
|
|
132
|
+
l = Ce[y[1]](r);
|
|
133
133
|
else if (We.test(r) === !0)
|
|
134
134
|
l = r;
|
|
135
135
|
else if (Xe.test(r) === !0)
|
|
136
|
-
l = `ionicons ion-${
|
|
136
|
+
l = `ionicons ion-${n.platform.is.ios === !0 ? "ios" : "md"}${r.substring(3)}`;
|
|
137
137
|
else if (de.test(r) === !0) {
|
|
138
138
|
l = "notranslate material-symbols";
|
|
139
139
|
const f = r.match(de);
|
|
@@ -141,7 +141,7 @@ const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
|
141
141
|
} else {
|
|
142
142
|
l = "notranslate material-icons";
|
|
143
143
|
const f = r.match(Ge);
|
|
144
|
-
f !== null && (r = r.substring(2), l +=
|
|
144
|
+
f !== null && (r = r.substring(2), l += we[f[1]]), S = r;
|
|
145
145
|
}
|
|
146
146
|
return {
|
|
147
147
|
cls: l,
|
|
@@ -151,7 +151,7 @@ const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
|
151
151
|
return () => {
|
|
152
152
|
const l = {
|
|
153
153
|
class: o.value,
|
|
154
|
-
style:
|
|
154
|
+
style: a.value,
|
|
155
155
|
"aria-hidden": "true",
|
|
156
156
|
role: "presentation"
|
|
157
157
|
};
|
|
@@ -197,9 +197,9 @@ const et = J({
|
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
199
|
setup(e) {
|
|
200
|
-
const { cSize: t, classes:
|
|
200
|
+
const { cSize: t, classes: n } = Ze(e);
|
|
201
201
|
return () => m("svg", {
|
|
202
|
-
class:
|
|
202
|
+
class: n.value + " q-spinner-mat",
|
|
203
203
|
width: t.value,
|
|
204
204
|
height: t.value,
|
|
205
205
|
viewBox: "25 25 50 50"
|
|
@@ -218,9 +218,9 @@ const et = J({
|
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
220
|
function tt(e, t) {
|
|
221
|
-
const
|
|
222
|
-
for (const
|
|
223
|
-
a
|
|
221
|
+
const n = e.style;
|
|
222
|
+
for (const a in t)
|
|
223
|
+
n[a] = t[a];
|
|
224
224
|
}
|
|
225
225
|
function Qt(e) {
|
|
226
226
|
if (e == null)
|
|
@@ -238,8 +238,8 @@ function Qt(e) {
|
|
|
238
238
|
function Gt(e, t) {
|
|
239
239
|
if (e == null || e.contains(t) === !0)
|
|
240
240
|
return !0;
|
|
241
|
-
for (let
|
|
242
|
-
if (
|
|
241
|
+
for (let n = e.nextElementSibling; n !== null; n = n.nextElementSibling)
|
|
242
|
+
if (n.contains(t))
|
|
243
243
|
return !0;
|
|
244
244
|
return !1;
|
|
245
245
|
}
|
|
@@ -277,11 +277,11 @@ function Ht(e) {
|
|
|
277
277
|
if (e.composedPath)
|
|
278
278
|
return e.composedPath();
|
|
279
279
|
const t = [];
|
|
280
|
-
let
|
|
281
|
-
for (;
|
|
282
|
-
if (t.push(
|
|
280
|
+
let n = e.target;
|
|
281
|
+
for (; n; ) {
|
|
282
|
+
if (t.push(n), n.tagName === "HTML")
|
|
283
283
|
return t.push(document), t.push(window), t;
|
|
284
|
-
|
|
284
|
+
n = n.parentElement;
|
|
285
285
|
}
|
|
286
286
|
}
|
|
287
287
|
function Ee(e) {
|
|
@@ -293,17 +293,17 @@ function at(e) {
|
|
|
293
293
|
function D(e) {
|
|
294
294
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
295
295
|
}
|
|
296
|
-
function lt(e, t,
|
|
297
|
-
const
|
|
298
|
-
e[
|
|
296
|
+
function lt(e, t, n) {
|
|
297
|
+
const a = `__q_${t}_evt`;
|
|
298
|
+
e[a] = e[a] !== void 0 ? e[a].concat(n) : n, n.forEach((o) => {
|
|
299
299
|
o[0].addEventListener(o[1], e[o[2]], Z[o[3]]);
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
function ot(e, t) {
|
|
303
|
-
const
|
|
304
|
-
e[
|
|
305
|
-
|
|
306
|
-
}), e[
|
|
303
|
+
const n = `__q_${t}_evt`;
|
|
304
|
+
e[n] !== void 0 && (e[n].forEach((a) => {
|
|
305
|
+
a[0].removeEventListener(a[1], e[a[2]], Z[a[3]]);
|
|
306
|
+
}), e[n] = void 0);
|
|
307
307
|
}
|
|
308
308
|
function rt(e) {
|
|
309
309
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
@@ -312,18 +312,18 @@ function ae(e, t) {
|
|
|
312
312
|
return rt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
313
313
|
}
|
|
314
314
|
function it(e, t = 250) {
|
|
315
|
-
let
|
|
315
|
+
let n = !1, a;
|
|
316
316
|
return function() {
|
|
317
|
-
return
|
|
318
|
-
|
|
319
|
-
}, t),
|
|
317
|
+
return n === !1 && (n = !0, setTimeout(() => {
|
|
318
|
+
n = !1;
|
|
319
|
+
}, t), a = e.apply(this, arguments)), a;
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
function ve(e, t,
|
|
323
|
-
|
|
324
|
-
const o =
|
|
325
|
-
let d =
|
|
326
|
-
d = d === !0 ||
|
|
322
|
+
function ve(e, t, n, a) {
|
|
323
|
+
n.modifiers.stop === !0 && Ee(e);
|
|
324
|
+
const o = n.modifiers.color;
|
|
325
|
+
let d = n.modifiers.center;
|
|
326
|
+
d = d === !0 || a === !0;
|
|
327
327
|
const l = document.createElement("span"), r = document.createElement("span"), S = nt(e), { left: y, top: f, width: k, height: u } = t.getBoundingClientRect(), q = Math.sqrt(k * k + u * u), i = q / 2, g = `${(k - q) / 2}px`, v = d ? g : `${S.left - y - i}px`, p = `${(u - q) / 2}px`, _ = d ? p : `${S.top - f - i}px`;
|
|
328
328
|
r.className = "q-ripple__inner", tt(r, {
|
|
329
329
|
height: `${q}px`,
|
|
@@ -331,25 +331,25 @@ function ve(e, t, a, n) {
|
|
|
331
331
|
transform: `translate3d(${v},${_},0) scale3d(.2,.2,1)`,
|
|
332
332
|
opacity: 0
|
|
333
333
|
}), l.className = `q-ripple${o ? " text-" + o : ""}`, l.setAttribute("dir", "ltr"), l.appendChild(r), t.appendChild(l);
|
|
334
|
-
const
|
|
335
|
-
l.remove(), clearTimeout(
|
|
334
|
+
const B = () => {
|
|
335
|
+
l.remove(), clearTimeout(w);
|
|
336
336
|
};
|
|
337
|
-
|
|
338
|
-
let
|
|
339
|
-
r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${g},${p},0) scale3d(1,1,1)`, r.style.opacity = 0.2,
|
|
340
|
-
r.classList.remove("q-ripple__inner--enter"), r.classList.add("q-ripple__inner--leave"), r.style.opacity = 0,
|
|
341
|
-
l.remove(),
|
|
337
|
+
n.abort.push(B);
|
|
338
|
+
let w = setTimeout(() => {
|
|
339
|
+
r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${g},${p},0) scale3d(1,1,1)`, r.style.opacity = 0.2, w = setTimeout(() => {
|
|
340
|
+
r.classList.remove("q-ripple__inner--enter"), r.classList.add("q-ripple__inner--leave"), r.style.opacity = 0, w = setTimeout(() => {
|
|
341
|
+
l.remove(), n.abort.splice(n.abort.indexOf(B), 1);
|
|
342
342
|
}, 275);
|
|
343
343
|
}, 250);
|
|
344
344
|
}, 50);
|
|
345
345
|
}
|
|
346
|
-
function ge(e, { modifiers: t, value:
|
|
347
|
-
const o = Object.assign({}, e.cfg.ripple, t,
|
|
346
|
+
function ge(e, { modifiers: t, value: n, arg: a }) {
|
|
347
|
+
const o = Object.assign({}, e.cfg.ripple, t, n);
|
|
348
348
|
e.modifiers = {
|
|
349
349
|
early: o.early === !0,
|
|
350
350
|
stop: o.stop === !0,
|
|
351
351
|
center: o.center === !0,
|
|
352
|
-
color: o.color ||
|
|
352
|
+
color: o.color || a,
|
|
353
353
|
keyCodes: [].concat(o.keyCodes || 13)
|
|
354
354
|
};
|
|
355
355
|
}
|
|
@@ -357,22 +357,22 @@ const st = Ke(
|
|
|
357
357
|
{
|
|
358
358
|
name: "ripple",
|
|
359
359
|
beforeMount(e, t) {
|
|
360
|
-
const
|
|
361
|
-
if (
|
|
360
|
+
const n = t.instance.$.appContext.config.globalProperties.$q.config || {};
|
|
361
|
+
if (n.ripple === !1)
|
|
362
362
|
return;
|
|
363
|
-
const
|
|
364
|
-
cfg:
|
|
363
|
+
const a = {
|
|
364
|
+
cfg: n,
|
|
365
365
|
enabled: t.value !== !1,
|
|
366
366
|
modifiers: {},
|
|
367
367
|
abort: [],
|
|
368
368
|
start(o) {
|
|
369
|
-
|
|
369
|
+
a.enabled === !0 && o.qSkipRipple !== !0 && o.type === (a.modifiers.early === !0 ? "pointerdown" : "click") && ve(o, e, a, o.qKeyEvent === !0);
|
|
370
370
|
},
|
|
371
371
|
keystart: it((o) => {
|
|
372
|
-
|
|
372
|
+
a.enabled === !0 && o.qSkipRipple !== !0 && ae(o, a.modifiers.keyCodes) === !0 && o.type === `key${a.modifiers.early === !0 ? "down" : "up"}` && ve(o, e, a, !0);
|
|
373
373
|
}, 300)
|
|
374
374
|
};
|
|
375
|
-
ge(
|
|
375
|
+
ge(a, t), e.__qripple = a, lt(a, "main", [
|
|
376
376
|
[e, "pointerdown", "start", "passive"],
|
|
377
377
|
[e, "click", "start", "passive"],
|
|
378
378
|
[e, "keydown", "keystart", "passive"],
|
|
@@ -381,14 +381,14 @@ const st = Ke(
|
|
|
381
381
|
},
|
|
382
382
|
updated(e, t) {
|
|
383
383
|
if (t.oldValue !== t.value) {
|
|
384
|
-
const
|
|
385
|
-
|
|
384
|
+
const n = e.__qripple;
|
|
385
|
+
n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value && ge(n, t));
|
|
386
386
|
}
|
|
387
387
|
},
|
|
388
388
|
beforeUnmount(e) {
|
|
389
389
|
const t = e.__qripple;
|
|
390
|
-
t !== void 0 && (t.abort.forEach((
|
|
391
|
-
|
|
390
|
+
t !== void 0 && (t.abort.forEach((n) => {
|
|
391
|
+
n();
|
|
392
392
|
}), ot(t, "main"), delete e._qripple);
|
|
393
393
|
}
|
|
394
394
|
}
|
|
@@ -435,18 +435,18 @@ function me(e, t) {
|
|
|
435
435
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
436
436
|
}
|
|
437
437
|
function vt(e, t) {
|
|
438
|
-
for (const
|
|
439
|
-
const
|
|
440
|
-
if (typeof
|
|
441
|
-
if (
|
|
438
|
+
for (const n in t) {
|
|
439
|
+
const a = t[n], o = e[n];
|
|
440
|
+
if (typeof a == "string") {
|
|
441
|
+
if (a !== o)
|
|
442
442
|
return !1;
|
|
443
|
-
} else if (Array.isArray(o) === !1 || o.length !==
|
|
443
|
+
} else if (Array.isArray(o) === !1 || o.length !== a.length || a.some((d, l) => d !== o[l]))
|
|
444
444
|
return !1;
|
|
445
445
|
}
|
|
446
446
|
return !0;
|
|
447
447
|
}
|
|
448
448
|
function he(e, t) {
|
|
449
|
-
return Array.isArray(t) === !0 ? e.length === t.length && e.every((
|
|
449
|
+
return Array.isArray(t) === !0 ? e.length === t.length && e.every((n, a) => n === t[a]) : e.length === 1 && e[0] === t;
|
|
450
450
|
}
|
|
451
451
|
function gt(e, t) {
|
|
452
452
|
return Array.isArray(e) === !0 ? he(e, t) : Array.isArray(t) === !0 ? he(t, e) : e === t;
|
|
@@ -454,8 +454,8 @@ function gt(e, t) {
|
|
|
454
454
|
function pt(e, t) {
|
|
455
455
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
456
456
|
return !1;
|
|
457
|
-
for (const
|
|
458
|
-
if (gt(e[
|
|
457
|
+
for (const n in e)
|
|
458
|
+
if (gt(e[n], t[n]) === !1)
|
|
459
459
|
return !1;
|
|
460
460
|
return !0;
|
|
461
461
|
}
|
|
@@ -482,16 +482,16 @@ const Me = {
|
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
484
|
function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
485
|
-
const
|
|
486
|
-
() => l === !0 &&
|
|
485
|
+
const n = W(), { props: a, proxy: o, emit: d } = n, l = ft(n), r = s(() => a.disable !== !0 && a.href !== void 0), S = t === !0 ? s(
|
|
486
|
+
() => l === !0 && a.disable !== !0 && r.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
487
487
|
) : s(
|
|
488
|
-
() => l === !0 && r.value !== !0 &&
|
|
489
|
-
), y = s(() => S.value === !0 ? _(
|
|
490
|
-
href:
|
|
491
|
-
target:
|
|
488
|
+
() => l === !0 && r.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
489
|
+
), y = s(() => S.value === !0 ? _(a.to) : null), f = s(() => y.value !== null), k = s(() => r.value === !0 || f.value === !0), u = s(() => a.type === "a" || k.value === !0 ? "a" : a.tag || e || "div"), q = s(() => r.value === !0 ? {
|
|
490
|
+
href: a.href,
|
|
491
|
+
target: a.target
|
|
492
492
|
} : f.value === !0 ? {
|
|
493
493
|
href: y.value.href,
|
|
494
|
-
target:
|
|
494
|
+
target: a.target
|
|
495
495
|
} : {}), i = s(() => {
|
|
496
496
|
if (f.value === !1)
|
|
497
497
|
return -1;
|
|
@@ -517,7 +517,7 @@ function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
517
517
|
() => f.value === !0 && i.value !== -1 && vt(o.$route.params, y.value.params)
|
|
518
518
|
), v = s(
|
|
519
519
|
() => g.value === !0 && i.value === o.$route.matched.length - 1 && pt(o.$route.params, y.value.params)
|
|
520
|
-
), p = s(() => f.value === !0 ? v.value === !0 ? ` ${
|
|
520
|
+
), p = s(() => f.value === !0 ? v.value === !0 ? ` ${a.exactActiveClass} ${a.activeClass}` : a.exact === !0 ? "" : g.value === !0 ? ` ${a.activeClass}` : "" : "");
|
|
521
521
|
function _(h) {
|
|
522
522
|
try {
|
|
523
523
|
return o.$router.resolve(h);
|
|
@@ -525,13 +525,13 @@ function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
525
525
|
}
|
|
526
526
|
return null;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
529
|
-
if (
|
|
528
|
+
function B(h, { returnRouterError: E, to: M = a.to, replace: A = a.replace } = {}) {
|
|
529
|
+
if (a.disable === !0)
|
|
530
530
|
return h.preventDefault(), Promise.resolve(!1);
|
|
531
531
|
if (
|
|
532
532
|
// don't redirect with control keys;
|
|
533
533
|
// should match RouterLink from Vue Router
|
|
534
|
-
h.metaKey || h.altKey || h.ctrlKey || h.shiftKey || h.button !== void 0 && h.button !== 0 ||
|
|
534
|
+
h.metaKey || h.altKey || h.ctrlKey || h.shiftKey || h.button !== void 0 && h.button !== 0 || a.target === "_blank"
|
|
535
535
|
)
|
|
536
536
|
return Promise.resolve(!1);
|
|
537
537
|
h.preventDefault();
|
|
@@ -540,9 +540,9 @@ function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
540
540
|
}).catch(() => {
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function w(h) {
|
|
544
544
|
if (f.value === !0) {
|
|
545
|
-
const E = (M) =>
|
|
545
|
+
const E = (M) => B(h, M);
|
|
546
546
|
d("click", h, E), h.defaultPrevented !== !0 && E();
|
|
547
547
|
} else
|
|
548
548
|
d("click", h);
|
|
@@ -558,8 +558,8 @@ function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
558
558
|
linkClass: p,
|
|
559
559
|
linkAttrs: q,
|
|
560
560
|
getLink: _,
|
|
561
|
-
navigateToRouterLink:
|
|
562
|
-
navigateOnClick:
|
|
561
|
+
navigateToRouterLink: B,
|
|
562
|
+
navigateOnClick: w
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
565
|
const be = {
|
|
@@ -630,7 +630,7 @@ const _t = {
|
|
|
630
630
|
round: Boolean
|
|
631
631
|
};
|
|
632
632
|
function qt(e) {
|
|
633
|
-
const t = ie(e, ht),
|
|
633
|
+
const t = ie(e, ht), n = dt(e), { hasRouterLink: a, hasLink: o, linkTag: d, linkAttrs: l, navigateOnClick: r } = mt({
|
|
634
634
|
fallbackTag: "button"
|
|
635
635
|
}), S = s(() => {
|
|
636
636
|
const v = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
@@ -645,7 +645,7 @@ function qt(e) {
|
|
|
645
645
|
() => e.disable !== !0 && e.loading !== !0
|
|
646
646
|
), k = s(() => f.value === !0 ? e.tabindex || 0 : -1), u = s(() => Pe(e, "standard")), q = s(() => {
|
|
647
647
|
const v = { tabindex: k.value };
|
|
648
|
-
return o.value === !0 ? Object.assign(v, l.value) : bt.includes(e.type) === !0 && (v.type = e.type), d.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"),
|
|
648
|
+
return o.value === !0 ? Object.assign(v, l.value) : bt.includes(e.type) === !0 && (v.type = e.type), d.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"), a.value !== !0 && yt.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, {
|
|
649
649
|
role: "progressbar",
|
|
650
650
|
"aria-valuemin": 0,
|
|
651
651
|
"aria-valuemax": 100,
|
|
@@ -657,7 +657,7 @@ function qt(e) {
|
|
|
657
657
|
const p = e.round === !0 ? "round" : `rectangle${y.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
658
658
|
return `q-btn--${u.value} q-btn--${p}` + (v !== void 0 ? " " + v : "") + (f.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" : "");
|
|
659
659
|
}), g = s(
|
|
660
|
-
() =>
|
|
660
|
+
() => n.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
661
661
|
);
|
|
662
662
|
return {
|
|
663
663
|
classes: i,
|
|
@@ -681,8 +681,8 @@ const St = J({
|
|
|
681
681
|
onTouchstart: [Function, Array]
|
|
682
682
|
},
|
|
683
683
|
emits: ["click", "keydown", "mousedown", "keyup"],
|
|
684
|
-
setup(e, { slots: t, emit:
|
|
685
|
-
const { proxy:
|
|
684
|
+
setup(e, { slots: t, emit: n }) {
|
|
685
|
+
const { proxy: a } = W(), {
|
|
686
686
|
classes: o,
|
|
687
687
|
style: d,
|
|
688
688
|
innerClasses: l,
|
|
@@ -698,7 +698,7 @@ const St = J({
|
|
|
698
698
|
), _ = s(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
699
699
|
keyCodes: S.value === !0 ? [13, 32] : [13],
|
|
700
700
|
...e.ripple === !0 ? {} : e.ripple
|
|
701
|
-
}),
|
|
701
|
+
}), B = s(() => ({ center: e.round })), w = s(() => {
|
|
702
702
|
const c = Math.max(0, Math.min(100, e.percentage));
|
|
703
703
|
return c > 0 ? { transition: "transform 0.6s", transform: `translateX(${c - 100}%)` } : {};
|
|
704
704
|
}), h = s(() => {
|
|
@@ -716,7 +716,7 @@ const St = J({
|
|
|
716
716
|
onKeydown: A,
|
|
717
717
|
onMousedown: G
|
|
718
718
|
};
|
|
719
|
-
if (
|
|
719
|
+
if (a.$q.platform.has.touch === !0) {
|
|
720
720
|
const b = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
721
721
|
c[`onTouchstart${b}`] = O;
|
|
722
722
|
}
|
|
@@ -751,15 +751,15 @@ const St = J({
|
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
function A(c) {
|
|
754
|
-
u.value !== null && (
|
|
754
|
+
u.value !== null && (n("keydown", c), ae(c, [13, 32]) === !0 && j !== u.value && (j !== null && N(), c.defaultPrevented !== !0 && (u.value.focus(), j = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("keyup", P, !0), u.value.addEventListener("blur", P, R)), D(c)));
|
|
755
755
|
}
|
|
756
756
|
function O(c) {
|
|
757
|
-
u.value !== null && (
|
|
757
|
+
u.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (x !== u.value && (x !== null && N(), x = u.value, i = c.target, i.addEventListener("touchcancel", P, R), i.addEventListener("touchend", P, R)), g = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
|
|
758
758
|
v = null, g = !1;
|
|
759
759
|
}, 200)));
|
|
760
760
|
}
|
|
761
761
|
function G(c) {
|
|
762
|
-
u.value !== null && (c.qSkipRipple = g === !0,
|
|
762
|
+
u.value !== null && (c.qSkipRipple = g === !0, n("mousedown", c), c.defaultPrevented !== !0 && I !== u.value && (I !== null && N(), I = u.value, u.value.classList.add("q-btn--active"), document.addEventListener("mouseup", P, R)));
|
|
763
763
|
}
|
|
764
764
|
function P(c) {
|
|
765
765
|
if (u.value !== null && !(c !== void 0 && c.type === "blur" && document.activeElement === u.value)) {
|
|
@@ -768,7 +768,7 @@ const St = J({
|
|
|
768
768
|
const b = new MouseEvent("click", c);
|
|
769
769
|
b.qKeyEvent = !0, c.defaultPrevented === !0 && at(b), c.cancelBubble === !0 && Ee(b), u.value.dispatchEvent(b), D(c), c.qKeyEvent = !0;
|
|
770
770
|
}
|
|
771
|
-
|
|
771
|
+
n("keyup", c);
|
|
772
772
|
}
|
|
773
773
|
N();
|
|
774
774
|
}
|
|
@@ -782,7 +782,7 @@ const St = J({
|
|
|
782
782
|
}
|
|
783
783
|
return Ae(() => {
|
|
784
784
|
N(!0);
|
|
785
|
-
}), Object.assign(
|
|
785
|
+
}), Object.assign(a, {
|
|
786
786
|
click: (c) => {
|
|
787
787
|
k.value === !0 && M(c);
|
|
788
788
|
}
|
|
@@ -815,7 +815,7 @@ const St = J({
|
|
|
815
815
|
}, [
|
|
816
816
|
m("span", {
|
|
817
817
|
class: "q-btn__progress-indicator fit block",
|
|
818
|
-
style:
|
|
818
|
+
style: w.value
|
|
819
819
|
})
|
|
820
820
|
])
|
|
821
821
|
), b.push(
|
|
@@ -841,19 +841,19 @@ const St = J({
|
|
|
841
841
|
st,
|
|
842
842
|
_.value,
|
|
843
843
|
void 0,
|
|
844
|
-
|
|
844
|
+
B.value
|
|
845
845
|
]]
|
|
846
846
|
);
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
}),
|
|
849
|
+
}), Bt = /* @__PURE__ */ Q({
|
|
850
850
|
__name: "AppButton",
|
|
851
851
|
props: {
|
|
852
852
|
size: { default: $.MD },
|
|
853
853
|
transparent: { type: Boolean },
|
|
854
854
|
flat: { type: Boolean },
|
|
855
855
|
rounded: { type: Boolean },
|
|
856
|
-
color: { default:
|
|
856
|
+
color: { default: Be.PRIMARY },
|
|
857
857
|
iconLeft: {},
|
|
858
858
|
iconRight: {},
|
|
859
859
|
iconMiddle: {},
|
|
@@ -865,62 +865,66 @@ const St = J({
|
|
|
865
865
|
submit: { type: Boolean },
|
|
866
866
|
ariaLabel: {},
|
|
867
867
|
label: {},
|
|
868
|
-
download: {}
|
|
868
|
+
download: {},
|
|
869
|
+
prevent: { type: Boolean },
|
|
870
|
+
stop: { type: Boolean }
|
|
869
871
|
},
|
|
870
872
|
emits: ["click"],
|
|
871
|
-
setup(e) {
|
|
872
|
-
const
|
|
873
|
+
setup(e, { emit: t }) {
|
|
874
|
+
const n = e, a = t, o = s(() => [
|
|
873
875
|
"app-btn",
|
|
874
876
|
{
|
|
875
|
-
"app-btn_default": !
|
|
876
|
-
"app-btn_trans":
|
|
877
|
-
"app-btn_flat":
|
|
878
|
-
"app-btn_rounded":
|
|
879
|
-
"app-btn_sm":
|
|
880
|
-
"app-btn_md":
|
|
881
|
-
"app-btn_lg":
|
|
882
|
-
"app-btn_icon-left":
|
|
883
|
-
"app-btn_icon-right":
|
|
884
|
-
"app-btn_icon-middle":
|
|
877
|
+
"app-btn_default": !n.transparent && !n.flat,
|
|
878
|
+
"app-btn_trans": n.transparent,
|
|
879
|
+
"app-btn_flat": n.flat,
|
|
880
|
+
"app-btn_rounded": n.rounded,
|
|
881
|
+
"app-btn_sm": n.size === $.SM,
|
|
882
|
+
"app-btn_md": n.size === $.MD,
|
|
883
|
+
"app-btn_lg": n.size === $.LG,
|
|
884
|
+
"app-btn_icon-left": n.iconLeft,
|
|
885
|
+
"app-btn_icon-right": n.iconRight,
|
|
886
|
+
"app-btn_icon-middle": n.iconMiddle
|
|
885
887
|
},
|
|
886
|
-
`app-btn_${
|
|
887
|
-
])
|
|
888
|
-
|
|
888
|
+
`app-btn_${n.color}`
|
|
889
|
+
]), d = (l) => {
|
|
890
|
+
n.stop && l.stopPropagation(), n.prevent && l.preventDefault(), a("click", l);
|
|
891
|
+
};
|
|
892
|
+
return (l, r) => (C(), _e(H(St), {
|
|
889
893
|
"no-caps": "",
|
|
890
894
|
unelevated: "",
|
|
891
|
-
class: z(
|
|
892
|
-
padding: H(Ne)[
|
|
893
|
-
loading:
|
|
894
|
-
disable:
|
|
895
|
-
to:
|
|
896
|
-
href:
|
|
897
|
-
target:
|
|
898
|
-
type:
|
|
899
|
-
"aria-label":
|
|
900
|
-
download:
|
|
901
|
-
onClick:
|
|
895
|
+
class: z(o.value),
|
|
896
|
+
padding: H(Ne)[l.size || H($).MD],
|
|
897
|
+
loading: l.loading,
|
|
898
|
+
disable: l.disabled || void 0,
|
|
899
|
+
to: l.to,
|
|
900
|
+
href: l.href,
|
|
901
|
+
target: l.target,
|
|
902
|
+
type: l.submit ? "submit" : void 0,
|
|
903
|
+
"aria-label": l.ariaLabel,
|
|
904
|
+
download: l.download,
|
|
905
|
+
onClick: d
|
|
902
906
|
}, {
|
|
903
907
|
default: Te(() => [
|
|
904
|
-
|
|
908
|
+
l.iconLeft || l.iconMiddle ? (C(), L("i", {
|
|
905
909
|
key: 0,
|
|
906
910
|
class: z([
|
|
907
911
|
"icon-kl",
|
|
908
|
-
|
|
909
|
-
`icon-kl-${
|
|
910
|
-
|
|
912
|
+
l.iconLeft ? "icon-kl_left" : "icon-kl_middle",
|
|
913
|
+
`icon-kl-${l.iconLeft || l.iconMiddle}`,
|
|
914
|
+
l.transparent || l.flat ? `text-${l.color}` : "text-secondary"
|
|
911
915
|
])
|
|
912
916
|
}, null, 2)) : T("", !0),
|
|
913
|
-
$e(
|
|
914
|
-
|
|
915
|
-
Oe(X(
|
|
917
|
+
$e(l.$slots, "default", {}, void 0, !0),
|
|
918
|
+
l.label ? (C(), L(qe, { key: 1 }, [
|
|
919
|
+
Oe(X(l.label), 1)
|
|
916
920
|
], 64)) : T("", !0),
|
|
917
|
-
|
|
921
|
+
l.iconRight ? (C(), L("i", {
|
|
918
922
|
key: 2,
|
|
919
923
|
class: z([
|
|
920
924
|
"icon-kl",
|
|
921
925
|
"icon-kl_right",
|
|
922
|
-
`icon-kl-${
|
|
923
|
-
|
|
926
|
+
`icon-kl-${l.iconRight}`,
|
|
927
|
+
l.transparent ? `text-${l.color}` : "text-secondary"
|
|
924
928
|
])
|
|
925
929
|
}, null, 2)) : T("", !0)
|
|
926
930
|
]),
|
|
@@ -928,14 +932,14 @@ const St = J({
|
|
|
928
932
|
}, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
|
|
929
933
|
}
|
|
930
934
|
}), ee = (e, t) => {
|
|
931
|
-
const
|
|
932
|
-
for (const [
|
|
933
|
-
a
|
|
934
|
-
return
|
|
935
|
-
}, Zt = /* @__PURE__ */ ee(
|
|
935
|
+
const n = e.__vccOpts || e;
|
|
936
|
+
for (const [a, o] of t)
|
|
937
|
+
n[a] = o;
|
|
938
|
+
return n;
|
|
939
|
+
}, Zt = /* @__PURE__ */ ee(Bt, [["__scopeId", "data-v-51c7c5a3"]]), Ct = {
|
|
936
940
|
key: 0,
|
|
937
941
|
class: "app-toggle__label app-toggle__label_left"
|
|
938
|
-
},
|
|
942
|
+
}, wt = { class: "app-toggle__container" }, Lt = ["checked", "disabled"], Et = { class: "app-toggle__thumb" }, Rt = {
|
|
939
943
|
key: 1,
|
|
940
944
|
class: "app-toggle__label"
|
|
941
945
|
}, Mt = /* @__PURE__ */ Q({
|
|
@@ -945,7 +949,7 @@ const St = J({
|
|
|
945
949
|
size: { default: $.MD },
|
|
946
950
|
label: {},
|
|
947
951
|
disabled: { type: Boolean },
|
|
948
|
-
color: { default:
|
|
952
|
+
color: { default: Be.PRIMARY },
|
|
949
953
|
iconColor: {},
|
|
950
954
|
icon: {},
|
|
951
955
|
iconActive: {},
|
|
@@ -953,27 +957,27 @@ const St = J({
|
|
|
953
957
|
},
|
|
954
958
|
emits: ["update:modelValue"],
|
|
955
959
|
setup(e, { emit: t }) {
|
|
956
|
-
const
|
|
957
|
-
get: () =>
|
|
960
|
+
const n = e, a = t, o = s({
|
|
961
|
+
get: () => n.modelValue,
|
|
958
962
|
set: (l) => {
|
|
959
|
-
|
|
963
|
+
a("update:modelValue", l);
|
|
960
964
|
}
|
|
961
965
|
}), d = s(() => [
|
|
962
966
|
"app-toggle",
|
|
963
967
|
{
|
|
964
|
-
"app-toggle_sm":
|
|
965
|
-
"app-toggle_md":
|
|
966
|
-
"app-toggle_lg":
|
|
968
|
+
"app-toggle_sm": n.size === $.SM,
|
|
969
|
+
"app-toggle_md": n.size === $.MD,
|
|
970
|
+
"app-toggle_lg": n.size === $.LG,
|
|
967
971
|
"app-toggle_active": o.value,
|
|
968
|
-
"app-toggle_disabled":
|
|
972
|
+
"app-toggle_disabled": n.disabled
|
|
969
973
|
},
|
|
970
|
-
`app-toggle_${
|
|
974
|
+
`app-toggle_${n.color}`
|
|
971
975
|
]);
|
|
972
|
-
return (l, r) => (
|
|
976
|
+
return (l, r) => (C(), L("div", {
|
|
973
977
|
class: z(d.value)
|
|
974
978
|
}, [
|
|
975
|
-
l.label && l.labelLeft ? (
|
|
976
|
-
F("label",
|
|
979
|
+
l.label && l.labelLeft ? (C(), L("span", Ct, X(l.label), 1)) : T("", !0),
|
|
980
|
+
F("label", wt, [
|
|
977
981
|
F("input", {
|
|
978
982
|
type: "checkbox",
|
|
979
983
|
checked: o.value,
|
|
@@ -985,11 +989,11 @@ const St = J({
|
|
|
985
989
|
class: z(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
|
|
986
990
|
}, [
|
|
987
991
|
F("span", Et, [
|
|
988
|
-
l.icon && !l.modelValue ? (
|
|
992
|
+
l.icon && !l.modelValue ? (C(), L("i", {
|
|
989
993
|
key: 0,
|
|
990
994
|
class: z(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
|
|
991
995
|
}, null, 2)) : T("", !0),
|
|
992
|
-
l.modelValue && (l.iconActive || l.icon) ? (
|
|
996
|
+
l.modelValue && (l.iconActive || l.icon) ? (C(), L("i", {
|
|
993
997
|
key: 1,
|
|
994
998
|
class: z([
|
|
995
999
|
"icon-kl",
|
|
@@ -1002,7 +1006,7 @@ const St = J({
|
|
|
1002
1006
|
], 2),
|
|
1003
1007
|
$e(l.$slots, "default", {}, void 0, !0)
|
|
1004
1008
|
]),
|
|
1005
|
-
l.label && !l.labelLeft ? (
|
|
1009
|
+
l.label && !l.labelLeft ? (C(), L("span", Rt, X(l.label), 1)) : T("", !0)
|
|
1006
1010
|
], 2));
|
|
1007
1011
|
}
|
|
1008
1012
|
}), en = /* @__PURE__ */ ee(Mt, [["__scopeId", "data-v-e0e56123"]]), Pt = /* @__PURE__ */ Q({
|
|
@@ -1013,7 +1017,7 @@ const St = J({
|
|
|
1013
1017
|
color: {}
|
|
1014
1018
|
},
|
|
1015
1019
|
setup(e) {
|
|
1016
|
-
return (t,
|
|
1020
|
+
return (t, n) => (C(), L("i", {
|
|
1017
1021
|
class: z(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
|
|
1018
1022
|
style: Se(t.size ? `font-size: ${t.size}` : void 0)
|
|
1019
1023
|
}, null, 6));
|
|
@@ -1034,9 +1038,9 @@ const Tt = {
|
|
|
1034
1038
|
lg: 10,
|
|
1035
1039
|
xl: 14
|
|
1036
1040
|
};
|
|
1037
|
-
function ye(e, t,
|
|
1041
|
+
function ye(e, t, n) {
|
|
1038
1042
|
return {
|
|
1039
|
-
transform: t === !0 ? `translateX(${
|
|
1043
|
+
transform: t === !0 ? `translateX(${n.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
|
|
1040
1044
|
};
|
|
1041
1045
|
}
|
|
1042
1046
|
const Ot = J({
|
|
@@ -1063,14 +1067,14 @@ const Ot = J({
|
|
|
1063
1067
|
instantFeedback: Boolean
|
|
1064
1068
|
},
|
|
1065
1069
|
setup(e, { slots: t }) {
|
|
1066
|
-
const { proxy:
|
|
1070
|
+
const { proxy: n } = W(), a = zt(e, n.$q), o = ie(e, Tt), d = s(() => e.indeterminate === !0 || e.query === !0), l = s(() => e.reverse !== e.query), r = s(() => ({
|
|
1067
1071
|
...o.value !== null ? o.value : {},
|
|
1068
1072
|
"--q-linear-progress-speed": `${e.animationSpeed}ms`
|
|
1069
1073
|
})), S = s(
|
|
1070
1074
|
() => "q-linear-progress" + (e.color !== void 0 ? ` text-${e.color}` : "") + (e.reverse === !0 || e.query === !0 ? " q-linear-progress--reverse" : "") + (e.rounded === !0 ? " rounded-borders" : "")
|
|
1071
|
-
), y = s(() => ye(e.buffer !== void 0 ? e.buffer : 1, l.value,
|
|
1072
|
-
() => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${
|
|
1073
|
-
), u = s(() => ye(d.value === !0 ? 1 : e.value, l.value,
|
|
1075
|
+
), y = s(() => ye(e.buffer !== void 0 ? e.buffer : 1, l.value, n.$q)), f = s(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), k = s(
|
|
1076
|
+
() => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${a.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
|
|
1077
|
+
), u = s(() => ye(d.value === !0 ? 1 : e.value, l.value, n.$q)), q = s(
|
|
1074
1078
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${d.value === !0 ? "in" : ""}determinate`
|
|
1075
1079
|
), i = s(() => ({ width: `${e.value * 100}%` })), g = s(
|
|
1076
1080
|
() => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
|
|
@@ -1116,31 +1120,31 @@ const Ot = J({
|
|
|
1116
1120
|
color: {}
|
|
1117
1121
|
},
|
|
1118
1122
|
emits: ["update:modelValue", "completed"],
|
|
1119
|
-
setup(e, { expose: t, emit:
|
|
1120
|
-
const
|
|
1123
|
+
setup(e, { expose: t, emit: n }) {
|
|
1124
|
+
const a = e, o = n, d = Y(Array(a.length).fill("")), l = Y([]), r = s(() => [
|
|
1121
1125
|
"code-field",
|
|
1122
1126
|
{
|
|
1123
|
-
"code-field_sm":
|
|
1124
|
-
"code-field_md":
|
|
1125
|
-
"code-field_lg":
|
|
1126
|
-
"code-field_disabled":
|
|
1127
|
+
"code-field_sm": a.size === $.SM,
|
|
1128
|
+
"code-field_md": a.size === $.MD,
|
|
1129
|
+
"code-field_lg": a.size === $.LG,
|
|
1130
|
+
"code-field_disabled": a.disabled || a.loading
|
|
1127
1131
|
},
|
|
1128
|
-
`code-field_${
|
|
1132
|
+
`code-field_${a.color}`
|
|
1129
1133
|
]), S = s(() => {
|
|
1130
1134
|
let i = "";
|
|
1131
|
-
return
|
|
1135
|
+
return a.size == $.SM && (i += `width: ${a.length * 26 + (a.length - 1) * 5}px`), a.size == $.MD && (i += `width: ${a.length * 32 + (a.length - 1) * 8}px`), a.size == $.LG && (i += `width: ${a.length * 44 + (a.length - 1) * 10}px`), i;
|
|
1132
1136
|
}), y = (i, g) => {
|
|
1133
1137
|
var _;
|
|
1134
1138
|
const p = i.target.value;
|
|
1135
1139
|
if (p.length === 1)
|
|
1136
|
-
g <
|
|
1140
|
+
g < a.length - 1 && l.value && ((_ = l.value[g + 1]) == null || _.focus());
|
|
1137
1141
|
else if (p.length > 1) {
|
|
1138
|
-
const
|
|
1139
|
-
|
|
1140
|
-
d.value[g + h] =
|
|
1142
|
+
const B = p.slice(0, a.length - g).split("");
|
|
1143
|
+
B.forEach((w, h) => {
|
|
1144
|
+
d.value[g + h] = w;
|
|
1141
1145
|
}), se(() => {
|
|
1142
|
-
var
|
|
1143
|
-
l.value && ((
|
|
1146
|
+
var w;
|
|
1147
|
+
l.value && ((w = l.value[Math.min(g + B.length, a.length - 1)]) == null || w.focus());
|
|
1144
1148
|
});
|
|
1145
1149
|
}
|
|
1146
1150
|
}, f = (i) => {
|
|
@@ -1151,12 +1155,12 @@ const Ot = J({
|
|
|
1151
1155
|
i.preventDefault();
|
|
1152
1156
|
const v = ((_ = i.clipboardData) == null ? void 0 : _.getData("text")) ?? "";
|
|
1153
1157
|
if (!v) return;
|
|
1154
|
-
const p = v.slice(0,
|
|
1155
|
-
p.forEach((
|
|
1156
|
-
d.value[g +
|
|
1158
|
+
const p = v.slice(0, a.length - g).split("");
|
|
1159
|
+
p.forEach((B, w) => {
|
|
1160
|
+
d.value[g + w] = B;
|
|
1157
1161
|
}), se(() => {
|
|
1158
|
-
var
|
|
1159
|
-
l.value && ((
|
|
1162
|
+
var B;
|
|
1163
|
+
l.value && ((B = l.value[Math.min(g + p.length, a.length - 1)]) == null || B.focus());
|
|
1160
1164
|
});
|
|
1161
1165
|
};
|
|
1162
1166
|
De(
|
|
@@ -1168,21 +1172,21 @@ const Ot = J({
|
|
|
1168
1172
|
{ deep: !0 }
|
|
1169
1173
|
);
|
|
1170
1174
|
const u = (i) => {
|
|
1171
|
-
o("update:modelValue", i), i.length ===
|
|
1175
|
+
o("update:modelValue", i), i.length === a.length && !i.includes(" ") && o("completed", i);
|
|
1172
1176
|
}, q = (i) => {
|
|
1173
|
-
i && (d.value = i.split("").slice(0,
|
|
1177
|
+
i && (d.value = i.split("").slice(0, a.length));
|
|
1174
1178
|
};
|
|
1175
1179
|
return xe(() => {
|
|
1176
|
-
|
|
1180
|
+
a.autofocus && l.value && l.value[0] && l.value[0].focus();
|
|
1177
1181
|
}), t({
|
|
1178
1182
|
injectCode: q
|
|
1179
|
-
}), (i, g) => (
|
|
1183
|
+
}), (i, g) => (C(), L("div", {
|
|
1180
1184
|
class: z(r.value),
|
|
1181
1185
|
style: Se(S.value)
|
|
1182
1186
|
}, [
|
|
1183
|
-
i.label ? (
|
|
1187
|
+
i.label ? (C(), L("label", Dt, X(i.label), 1)) : T("", !0),
|
|
1184
1188
|
F("div", xt, [
|
|
1185
|
-
(
|
|
1189
|
+
(C(!0), L(qe, null, je(i.length, (v, p) => le((C(), L("input", {
|
|
1186
1190
|
key: p,
|
|
1187
1191
|
"onUpdate:modelValue": (_) => d.value[p] = _,
|
|
1188
1192
|
ref_for: !0,
|
|
@@ -1199,7 +1203,7 @@ const Ot = J({
|
|
|
1199
1203
|
[Ve, d.value[p]]
|
|
1200
1204
|
])), 128))
|
|
1201
1205
|
]),
|
|
1202
|
-
i.loading ? (
|
|
1206
|
+
i.loading ? (C(), _e(Ot, {
|
|
1203
1207
|
key: 1,
|
|
1204
1208
|
indeterminate: "",
|
|
1205
1209
|
rounded: "",
|
|
@@ -1209,16 +1213,16 @@ const Ot = J({
|
|
|
1209
1213
|
], 6));
|
|
1210
1214
|
}
|
|
1211
1215
|
}), nn = /* @__PURE__ */ ee(It, [["__scopeId", "data-v-44914130"]]), an = oe(
|
|
1212
|
-
() => import("./AppButtonCopy-
|
|
1216
|
+
() => import("./AppButtonCopy-UVVRHZJh.js")
|
|
1213
1217
|
), ln = oe(
|
|
1214
|
-
() => import("./AppSelect-
|
|
1218
|
+
() => import("./AppSelect-48yCktjO.js")
|
|
1215
1219
|
), on = oe(
|
|
1216
|
-
() => import("./DropdownButton-
|
|
1220
|
+
() => import("./DropdownButton-Bw49fipB.js")
|
|
1217
1221
|
);
|
|
1218
1222
|
export {
|
|
1219
1223
|
Zt as A,
|
|
1220
1224
|
ot as B,
|
|
1221
|
-
|
|
1225
|
+
Be as C,
|
|
1222
1226
|
ft as D,
|
|
1223
1227
|
Yt as E,
|
|
1224
1228
|
Xt as F,
|