@validol4ik/uikit 0.6.3 → 0.6.5
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-8MnX1kAq.cjs → AppButtonCopy-4GxKBcWx.cjs} +1 -1
- package/dist/{AppButtonCopy-UVVRHZJh.js → AppButtonCopy-CcsAzDik.js} +25 -27
- package/dist/{AppSelect-48yCktjO.js → AppSelect-BtUUK2ea.js} +2 -2
- package/dist/{AppSelect-BNvVUv4k.cjs → AppSelect-Tg7_Uj55.cjs} +1 -1
- package/dist/{DropdownButton-Bw49fipB.js → DropdownButton-CZwBMGcA.js} +2 -2
- package/dist/{DropdownButton-Ci7qVgAw.cjs → DropdownButton-DXQzSYcl.cjs} +1 -1
- package/dist/{QMenu-D61TwxYh.js → QMenu-P1hqLpnc.js} +1 -1
- package/dist/{QMenu-BxE85UZy.cjs → QMenu-cWjMyOHy.cjs} +1 -1
- package/dist/index-CNCrt1w6.cjs +1 -0
- package/dist/{index-Bl47gkS1.js → index-CtoDgaeS.js} +200 -204
- package/dist/kl.woff +0 -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 +0 -2
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +1 -1
- package/dist/index-BxPlTOIx.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 B, 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 we = {
|
|
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 a = e();
|
|
37
|
+
if (a != null)
|
|
38
|
+
return a.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, a, n, o, d) {
|
|
49
|
+
t.key = n + o;
|
|
50
|
+
const l = m(e, t, a);
|
|
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}`, Be = {
|
|
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}`, Ce = {
|
|
|
62
62
|
"iconfont ": ce,
|
|
63
63
|
"ti-": (e) => `themify-icon ${e}`,
|
|
64
64
|
"bi-": (e) => `bootstrap-icons ${e}`
|
|
65
|
-
},
|
|
65
|
+
}, Ce = {
|
|
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}`, Ce = {
|
|
|
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(Be).join("|") + ")"), Ge = new RegExp("^(" + Object.keys(Ce).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}`, Ce = {
|
|
|
84
84
|
right: Boolean
|
|
85
85
|
},
|
|
86
86
|
setup(e, { slots: t }) {
|
|
87
|
-
const { proxy: { $q:
|
|
87
|
+
const { proxy: { $q: a } } = W(), n = 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 (a.iconMapFn !== null) {
|
|
94
|
+
const f = a.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}`, Ce = {
|
|
|
129
129
|
let S = " ";
|
|
130
130
|
const y = r.match(Qe);
|
|
131
131
|
if (y !== null)
|
|
132
|
-
l =
|
|
132
|
+
l = Be[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-${a.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}`, Ce = {
|
|
|
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 += Ce[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}`, Ce = {
|
|
|
151
151
|
return () => {
|
|
152
152
|
const l = {
|
|
153
153
|
class: o.value,
|
|
154
|
-
style:
|
|
154
|
+
style: n.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: a } = Ze(e);
|
|
201
201
|
return () => m("svg", {
|
|
202
|
-
class:
|
|
202
|
+
class: a.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
|
-
n
|
|
221
|
+
const a = e.style;
|
|
222
|
+
for (const n in t)
|
|
223
|
+
a[n] = t[n];
|
|
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 a = e.nextElementSibling; a !== null; a = a.nextElementSibling)
|
|
242
|
+
if (a.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 a = e.target;
|
|
281
|
+
for (; a; ) {
|
|
282
|
+
if (t.push(a), a.tagName === "HTML")
|
|
283
283
|
return t.push(document), t.push(window), t;
|
|
284
|
-
|
|
284
|
+
a = a.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, a) {
|
|
297
|
+
const n = `__q_${t}_evt`;
|
|
298
|
+
e[n] = e[n] !== void 0 ? e[n].concat(a) : a, a.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 a = `__q_${t}_evt`;
|
|
304
|
+
e[a] !== void 0 && (e[a].forEach((n) => {
|
|
305
|
+
n[0].removeEventListener(n[1], e[n[2]], Z[n[3]]);
|
|
306
|
+
}), e[a] = 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 a = !1, n;
|
|
316
316
|
return function() {
|
|
317
|
-
return
|
|
318
|
-
|
|
319
|
-
}, t),
|
|
317
|
+
return a === !1 && (a = !0, setTimeout(() => {
|
|
318
|
+
a = !1;
|
|
319
|
+
}, t), n = e.apply(this, arguments)), n;
|
|
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, a, n) {
|
|
323
|
+
a.modifiers.stop === !0 && Ee(e);
|
|
324
|
+
const o = a.modifiers.color;
|
|
325
|
+
let d = a.modifiers.center;
|
|
326
|
+
d = d === !0 || n === !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, n, a) {
|
|
|
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 w = () => {
|
|
335
|
+
l.remove(), clearTimeout(C);
|
|
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
|
+
a.abort.push(w);
|
|
338
|
+
let C = 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, C = setTimeout(() => {
|
|
340
|
+
r.classList.remove("q-ripple__inner--enter"), r.classList.add("q-ripple__inner--leave"), r.style.opacity = 0, C = setTimeout(() => {
|
|
341
|
+
l.remove(), a.abort.splice(a.abort.indexOf(w), 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: a, arg: n }) {
|
|
347
|
+
const o = Object.assign({}, e.cfg.ripple, t, a);
|
|
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 || n,
|
|
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 a = t.instance.$.appContext.config.globalProperties.$q.config || {};
|
|
361
|
+
if (a.ripple === !1)
|
|
362
362
|
return;
|
|
363
|
-
const
|
|
364
|
-
cfg:
|
|
363
|
+
const n = {
|
|
364
|
+
cfg: a,
|
|
365
365
|
enabled: t.value !== !1,
|
|
366
366
|
modifiers: {},
|
|
367
367
|
abort: [],
|
|
368
368
|
start(o) {
|
|
369
|
-
|
|
369
|
+
n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ve(o, e, n, o.qKeyEvent === !0);
|
|
370
370
|
},
|
|
371
371
|
keystart: it((o) => {
|
|
372
|
-
|
|
372
|
+
n.enabled === !0 && o.qSkipRipple !== !0 && ae(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ve(o, e, n, !0);
|
|
373
373
|
}, 300)
|
|
374
374
|
};
|
|
375
|
-
ge(
|
|
375
|
+
ge(n, t), e.__qripple = n, lt(n, "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 a = e.__qripple;
|
|
385
|
+
a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value && ge(a, 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((a) => {
|
|
391
|
+
a();
|
|
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 a in t) {
|
|
439
|
+
const n = t[a], o = e[a];
|
|
440
|
+
if (typeof n == "string") {
|
|
441
|
+
if (n !== o)
|
|
442
442
|
return !1;
|
|
443
|
-
} else if (Array.isArray(o) === !1 || o.length !==
|
|
443
|
+
} else if (Array.isArray(o) === !1 || o.length !== n.length || n.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((a, n) => a === t[n]) : 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 a in e)
|
|
458
|
+
if (gt(e[a], t[a]) === !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 a = W(), { props: n, proxy: o, emit: d } = a, l = ft(a), r = s(() => n.disable !== !0 && n.href !== void 0), S = t === !0 ? s(
|
|
486
|
+
() => l === !0 && n.disable !== !0 && r.value !== !0 && n.to !== void 0 && n.to !== null && n.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 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
489
|
+
), y = s(() => S.value === !0 ? _(n.to) : null), f = s(() => y.value !== null), k = s(() => r.value === !0 || f.value === !0), u = s(() => n.type === "a" || k.value === !0 ? "a" : n.tag || e || "div"), q = s(() => r.value === !0 ? {
|
|
490
|
+
href: n.href,
|
|
491
|
+
target: n.target
|
|
492
492
|
} : f.value === !0 ? {
|
|
493
493
|
href: y.value.href,
|
|
494
|
-
target:
|
|
494
|
+
target: n.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 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : g.value === !0 ? ` ${n.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 w(h, { returnRouterError: E, to: M = n.to, replace: A = n.replace } = {}) {
|
|
529
|
+
if (n.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 || n.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 C(h) {
|
|
544
544
|
if (f.value === !0) {
|
|
545
|
-
const E = (M) =>
|
|
545
|
+
const E = (M) => w(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: w,
|
|
562
|
+
navigateOnClick: C
|
|
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), a = dt(e), { hasRouterLink: n, 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"), n.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
|
+
() => a.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: a }) {
|
|
685
|
+
const { proxy: n } = 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
|
+
}), w = s(() => ({ center: e.round })), C = 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 (n.$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 && (a("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 && (a("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, a("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
|
+
a("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(n, {
|
|
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: C.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
|
+
w.value
|
|
845
845
|
]]
|
|
846
846
|
);
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
}),
|
|
849
|
+
}), wt = /* @__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: we.PRIMARY },
|
|
857
857
|
iconLeft: {},
|
|
858
858
|
iconRight: {},
|
|
859
859
|
iconMiddle: {},
|
|
@@ -865,66 +865,62 @@ const St = J({
|
|
|
865
865
|
submit: { type: Boolean },
|
|
866
866
|
ariaLabel: {},
|
|
867
867
|
label: {},
|
|
868
|
-
download: {}
|
|
869
|
-
prevent: { type: Boolean },
|
|
870
|
-
stop: { type: Boolean }
|
|
868
|
+
download: {}
|
|
871
869
|
},
|
|
872
870
|
emits: ["click"],
|
|
873
|
-
setup(e
|
|
874
|
-
const
|
|
871
|
+
setup(e) {
|
|
872
|
+
const t = e, a = s(() => [
|
|
875
873
|
"app-btn",
|
|
876
874
|
{
|
|
877
|
-
"app-btn_default": !
|
|
878
|
-
"app-btn_trans":
|
|
879
|
-
"app-btn_flat":
|
|
880
|
-
"app-btn_rounded":
|
|
881
|
-
"app-btn_sm":
|
|
882
|
-
"app-btn_md":
|
|
883
|
-
"app-btn_lg":
|
|
884
|
-
"app-btn_icon-left":
|
|
885
|
-
"app-btn_icon-right":
|
|
886
|
-
"app-btn_icon-middle":
|
|
875
|
+
"app-btn_default": !t.transparent && !t.flat,
|
|
876
|
+
"app-btn_trans": t.transparent,
|
|
877
|
+
"app-btn_flat": t.flat,
|
|
878
|
+
"app-btn_rounded": t.rounded,
|
|
879
|
+
"app-btn_sm": t.size === $.SM,
|
|
880
|
+
"app-btn_md": t.size === $.MD,
|
|
881
|
+
"app-btn_lg": t.size === $.LG,
|
|
882
|
+
"app-btn_icon-left": t.iconLeft,
|
|
883
|
+
"app-btn_icon-right": t.iconRight,
|
|
884
|
+
"app-btn_icon-middle": t.iconMiddle
|
|
887
885
|
},
|
|
888
|
-
`app-btn_${
|
|
889
|
-
])
|
|
890
|
-
|
|
891
|
-
};
|
|
892
|
-
return (l, r) => (C(), _e(H(St), {
|
|
886
|
+
`app-btn_${t.color}`
|
|
887
|
+
]);
|
|
888
|
+
return (n, o) => (B(), _e(H(St), {
|
|
893
889
|
"no-caps": "",
|
|
894
890
|
unelevated: "",
|
|
895
|
-
class: z(
|
|
896
|
-
padding: H(Ne)[
|
|
897
|
-
loading:
|
|
898
|
-
disable:
|
|
899
|
-
to:
|
|
900
|
-
href:
|
|
901
|
-
target:
|
|
902
|
-
type:
|
|
903
|
-
"aria-label":
|
|
904
|
-
download:
|
|
905
|
-
onClick: d
|
|
891
|
+
class: z(a.value),
|
|
892
|
+
padding: H(Ne)[n.size || H($).MD],
|
|
893
|
+
loading: n.loading,
|
|
894
|
+
disable: n.disabled || void 0,
|
|
895
|
+
to: n.to,
|
|
896
|
+
href: n.href,
|
|
897
|
+
target: n.target,
|
|
898
|
+
type: n.submit ? "submit" : void 0,
|
|
899
|
+
"aria-label": n.ariaLabel,
|
|
900
|
+
download: n.download,
|
|
901
|
+
onClick: o[0] || (o[0] = (d) => n.$emit("click", d))
|
|
906
902
|
}, {
|
|
907
903
|
default: Te(() => [
|
|
908
|
-
|
|
904
|
+
n.iconLeft || n.iconMiddle ? (B(), L("i", {
|
|
909
905
|
key: 0,
|
|
910
906
|
class: z([
|
|
911
907
|
"icon-kl",
|
|
912
|
-
|
|
913
|
-
`icon-kl-${
|
|
914
|
-
|
|
908
|
+
n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
|
|
909
|
+
`icon-kl-${n.iconLeft || n.iconMiddle}`,
|
|
910
|
+
n.transparent || n.flat ? `text-${n.color}` : "text-secondary"
|
|
915
911
|
])
|
|
916
912
|
}, null, 2)) : T("", !0),
|
|
917
|
-
$e(
|
|
918
|
-
|
|
919
|
-
Oe(X(
|
|
913
|
+
$e(n.$slots, "default", {}, void 0, !0),
|
|
914
|
+
n.label ? (B(), L(qe, { key: 1 }, [
|
|
915
|
+
Oe(X(n.label), 1)
|
|
920
916
|
], 64)) : T("", !0),
|
|
921
|
-
|
|
917
|
+
n.iconRight ? (B(), L("i", {
|
|
922
918
|
key: 2,
|
|
923
919
|
class: z([
|
|
924
920
|
"icon-kl",
|
|
925
921
|
"icon-kl_right",
|
|
926
|
-
`icon-kl-${
|
|
927
|
-
|
|
922
|
+
`icon-kl-${n.iconRight}`,
|
|
923
|
+
n.transparent ? `text-${n.color}` : "text-secondary"
|
|
928
924
|
])
|
|
929
925
|
}, null, 2)) : T("", !0)
|
|
930
926
|
]),
|
|
@@ -932,14 +928,14 @@ const St = J({
|
|
|
932
928
|
}, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
|
|
933
929
|
}
|
|
934
930
|
}), ee = (e, t) => {
|
|
935
|
-
const
|
|
936
|
-
for (const [
|
|
937
|
-
n
|
|
938
|
-
return
|
|
939
|
-
}, Zt = /* @__PURE__ */ ee(
|
|
931
|
+
const a = e.__vccOpts || e;
|
|
932
|
+
for (const [n, o] of t)
|
|
933
|
+
a[n] = o;
|
|
934
|
+
return a;
|
|
935
|
+
}, Zt = /* @__PURE__ */ ee(wt, [["__scopeId", "data-v-99788ad1"]]), Bt = {
|
|
940
936
|
key: 0,
|
|
941
937
|
class: "app-toggle__label app-toggle__label_left"
|
|
942
|
-
},
|
|
938
|
+
}, Ct = { class: "app-toggle__container" }, Lt = ["checked", "disabled"], Et = { class: "app-toggle__thumb" }, Rt = {
|
|
943
939
|
key: 1,
|
|
944
940
|
class: "app-toggle__label"
|
|
945
941
|
}, Mt = /* @__PURE__ */ Q({
|
|
@@ -949,7 +945,7 @@ const St = J({
|
|
|
949
945
|
size: { default: $.MD },
|
|
950
946
|
label: {},
|
|
951
947
|
disabled: { type: Boolean },
|
|
952
|
-
color: { default:
|
|
948
|
+
color: { default: we.PRIMARY },
|
|
953
949
|
iconColor: {},
|
|
954
950
|
icon: {},
|
|
955
951
|
iconActive: {},
|
|
@@ -957,27 +953,27 @@ const St = J({
|
|
|
957
953
|
},
|
|
958
954
|
emits: ["update:modelValue"],
|
|
959
955
|
setup(e, { emit: t }) {
|
|
960
|
-
const
|
|
961
|
-
get: () =>
|
|
956
|
+
const a = e, n = t, o = s({
|
|
957
|
+
get: () => a.modelValue,
|
|
962
958
|
set: (l) => {
|
|
963
|
-
|
|
959
|
+
n("update:modelValue", l);
|
|
964
960
|
}
|
|
965
961
|
}), d = s(() => [
|
|
966
962
|
"app-toggle",
|
|
967
963
|
{
|
|
968
|
-
"app-toggle_sm":
|
|
969
|
-
"app-toggle_md":
|
|
970
|
-
"app-toggle_lg":
|
|
964
|
+
"app-toggle_sm": a.size === $.SM,
|
|
965
|
+
"app-toggle_md": a.size === $.MD,
|
|
966
|
+
"app-toggle_lg": a.size === $.LG,
|
|
971
967
|
"app-toggle_active": o.value,
|
|
972
|
-
"app-toggle_disabled":
|
|
968
|
+
"app-toggle_disabled": a.disabled
|
|
973
969
|
},
|
|
974
|
-
`app-toggle_${
|
|
970
|
+
`app-toggle_${a.color}`
|
|
975
971
|
]);
|
|
976
|
-
return (l, r) => (
|
|
972
|
+
return (l, r) => (B(), L("div", {
|
|
977
973
|
class: z(d.value)
|
|
978
974
|
}, [
|
|
979
|
-
l.label && l.labelLeft ? (
|
|
980
|
-
F("label",
|
|
975
|
+
l.label && l.labelLeft ? (B(), L("span", Bt, X(l.label), 1)) : T("", !0),
|
|
976
|
+
F("label", Ct, [
|
|
981
977
|
F("input", {
|
|
982
978
|
type: "checkbox",
|
|
983
979
|
checked: o.value,
|
|
@@ -989,11 +985,11 @@ const St = J({
|
|
|
989
985
|
class: z(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
|
|
990
986
|
}, [
|
|
991
987
|
F("span", Et, [
|
|
992
|
-
l.icon && !l.modelValue ? (
|
|
988
|
+
l.icon && !l.modelValue ? (B(), L("i", {
|
|
993
989
|
key: 0,
|
|
994
990
|
class: z(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
|
|
995
991
|
}, null, 2)) : T("", !0),
|
|
996
|
-
l.modelValue && (l.iconActive || l.icon) ? (
|
|
992
|
+
l.modelValue && (l.iconActive || l.icon) ? (B(), L("i", {
|
|
997
993
|
key: 1,
|
|
998
994
|
class: z([
|
|
999
995
|
"icon-kl",
|
|
@@ -1006,7 +1002,7 @@ const St = J({
|
|
|
1006
1002
|
], 2),
|
|
1007
1003
|
$e(l.$slots, "default", {}, void 0, !0)
|
|
1008
1004
|
]),
|
|
1009
|
-
l.label && !l.labelLeft ? (
|
|
1005
|
+
l.label && !l.labelLeft ? (B(), L("span", Rt, X(l.label), 1)) : T("", !0)
|
|
1010
1006
|
], 2));
|
|
1011
1007
|
}
|
|
1012
1008
|
}), en = /* @__PURE__ */ ee(Mt, [["__scopeId", "data-v-e0e56123"]]), Pt = /* @__PURE__ */ Q({
|
|
@@ -1017,7 +1013,7 @@ const St = J({
|
|
|
1017
1013
|
color: {}
|
|
1018
1014
|
},
|
|
1019
1015
|
setup(e) {
|
|
1020
|
-
return (t,
|
|
1016
|
+
return (t, a) => (B(), L("i", {
|
|
1021
1017
|
class: z(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
|
|
1022
1018
|
style: Se(t.size ? `font-size: ${t.size}` : void 0)
|
|
1023
1019
|
}, null, 6));
|
|
@@ -1038,9 +1034,9 @@ const Tt = {
|
|
|
1038
1034
|
lg: 10,
|
|
1039
1035
|
xl: 14
|
|
1040
1036
|
};
|
|
1041
|
-
function ye(e, t,
|
|
1037
|
+
function ye(e, t, a) {
|
|
1042
1038
|
return {
|
|
1043
|
-
transform: t === !0 ? `translateX(${
|
|
1039
|
+
transform: t === !0 ? `translateX(${a.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
|
|
1044
1040
|
};
|
|
1045
1041
|
}
|
|
1046
1042
|
const Ot = J({
|
|
@@ -1067,14 +1063,14 @@ const Ot = J({
|
|
|
1067
1063
|
instantFeedback: Boolean
|
|
1068
1064
|
},
|
|
1069
1065
|
setup(e, { slots: t }) {
|
|
1070
|
-
const { proxy:
|
|
1066
|
+
const { proxy: a } = W(), n = zt(e, a.$q), o = ie(e, Tt), d = s(() => e.indeterminate === !0 || e.query === !0), l = s(() => e.reverse !== e.query), r = s(() => ({
|
|
1071
1067
|
...o.value !== null ? o.value : {},
|
|
1072
1068
|
"--q-linear-progress-speed": `${e.animationSpeed}ms`
|
|
1073
1069
|
})), S = s(
|
|
1074
1070
|
() => "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" : "")
|
|
1075
|
-
), y = s(() => ye(e.buffer !== void 0 ? e.buffer : 1, l.value,
|
|
1076
|
-
() => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${
|
|
1077
|
-
), u = s(() => ye(d.value === !0 ? 1 : e.value, l.value,
|
|
1071
|
+
), y = s(() => ye(e.buffer !== void 0 ? e.buffer : 1, l.value, a.$q)), f = s(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), k = s(
|
|
1072
|
+
() => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${n.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
|
|
1073
|
+
), u = s(() => ye(d.value === !0 ? 1 : e.value, l.value, a.$q)), q = s(
|
|
1078
1074
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${d.value === !0 ? "in" : ""}determinate`
|
|
1079
1075
|
), i = s(() => ({ width: `${e.value * 100}%` })), g = s(
|
|
1080
1076
|
() => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
|
|
@@ -1120,31 +1116,31 @@ const Ot = J({
|
|
|
1120
1116
|
color: {}
|
|
1121
1117
|
},
|
|
1122
1118
|
emits: ["update:modelValue", "completed"],
|
|
1123
|
-
setup(e, { expose: t, emit:
|
|
1124
|
-
const
|
|
1119
|
+
setup(e, { expose: t, emit: a }) {
|
|
1120
|
+
const n = e, o = a, d = Y(Array(n.length).fill("")), l = Y([]), r = s(() => [
|
|
1125
1121
|
"code-field",
|
|
1126
1122
|
{
|
|
1127
|
-
"code-field_sm":
|
|
1128
|
-
"code-field_md":
|
|
1129
|
-
"code-field_lg":
|
|
1130
|
-
"code-field_disabled":
|
|
1123
|
+
"code-field_sm": n.size === $.SM,
|
|
1124
|
+
"code-field_md": n.size === $.MD,
|
|
1125
|
+
"code-field_lg": n.size === $.LG,
|
|
1126
|
+
"code-field_disabled": n.disabled || n.loading
|
|
1131
1127
|
},
|
|
1132
|
-
`code-field_${
|
|
1128
|
+
`code-field_${n.color}`
|
|
1133
1129
|
]), S = s(() => {
|
|
1134
1130
|
let i = "";
|
|
1135
|
-
return
|
|
1131
|
+
return n.size == $.SM && (i += `width: ${n.length * 26 + (n.length - 1) * 5}px`), n.size == $.MD && (i += `width: ${n.length * 32 + (n.length - 1) * 8}px`), n.size == $.LG && (i += `width: ${n.length * 44 + (n.length - 1) * 10}px`), i;
|
|
1136
1132
|
}), y = (i, g) => {
|
|
1137
1133
|
var _;
|
|
1138
1134
|
const p = i.target.value;
|
|
1139
1135
|
if (p.length === 1)
|
|
1140
|
-
g <
|
|
1136
|
+
g < n.length - 1 && l.value && ((_ = l.value[g + 1]) == null || _.focus());
|
|
1141
1137
|
else if (p.length > 1) {
|
|
1142
|
-
const
|
|
1143
|
-
|
|
1144
|
-
d.value[g + h] =
|
|
1138
|
+
const w = p.slice(0, n.length - g).split("");
|
|
1139
|
+
w.forEach((C, h) => {
|
|
1140
|
+
d.value[g + h] = C;
|
|
1145
1141
|
}), se(() => {
|
|
1146
|
-
var
|
|
1147
|
-
l.value && ((
|
|
1142
|
+
var C;
|
|
1143
|
+
l.value && ((C = l.value[Math.min(g + w.length, n.length - 1)]) == null || C.focus());
|
|
1148
1144
|
});
|
|
1149
1145
|
}
|
|
1150
1146
|
}, f = (i) => {
|
|
@@ -1155,12 +1151,12 @@ const Ot = J({
|
|
|
1155
1151
|
i.preventDefault();
|
|
1156
1152
|
const v = ((_ = i.clipboardData) == null ? void 0 : _.getData("text")) ?? "";
|
|
1157
1153
|
if (!v) return;
|
|
1158
|
-
const p = v.slice(0,
|
|
1159
|
-
p.forEach((
|
|
1160
|
-
d.value[g +
|
|
1154
|
+
const p = v.slice(0, n.length - g).split("");
|
|
1155
|
+
p.forEach((w, C) => {
|
|
1156
|
+
d.value[g + C] = w;
|
|
1161
1157
|
}), se(() => {
|
|
1162
|
-
var
|
|
1163
|
-
l.value && ((
|
|
1158
|
+
var w;
|
|
1159
|
+
l.value && ((w = l.value[Math.min(g + p.length, n.length - 1)]) == null || w.focus());
|
|
1164
1160
|
});
|
|
1165
1161
|
};
|
|
1166
1162
|
De(
|
|
@@ -1172,21 +1168,21 @@ const Ot = J({
|
|
|
1172
1168
|
{ deep: !0 }
|
|
1173
1169
|
);
|
|
1174
1170
|
const u = (i) => {
|
|
1175
|
-
o("update:modelValue", i), i.length ===
|
|
1171
|
+
o("update:modelValue", i), i.length === n.length && !i.includes(" ") && o("completed", i);
|
|
1176
1172
|
}, q = (i) => {
|
|
1177
|
-
i && (d.value = i.split("").slice(0,
|
|
1173
|
+
i && (d.value = i.split("").slice(0, n.length));
|
|
1178
1174
|
};
|
|
1179
1175
|
return xe(() => {
|
|
1180
|
-
|
|
1176
|
+
n.autofocus && l.value && l.value[0] && l.value[0].focus();
|
|
1181
1177
|
}), t({
|
|
1182
1178
|
injectCode: q
|
|
1183
|
-
}), (i, g) => (
|
|
1179
|
+
}), (i, g) => (B(), L("div", {
|
|
1184
1180
|
class: z(r.value),
|
|
1185
1181
|
style: Se(S.value)
|
|
1186
1182
|
}, [
|
|
1187
|
-
i.label ? (
|
|
1183
|
+
i.label ? (B(), L("label", Dt, X(i.label), 1)) : T("", !0),
|
|
1188
1184
|
F("div", xt, [
|
|
1189
|
-
(
|
|
1185
|
+
(B(!0), L(qe, null, je(i.length, (v, p) => le((B(), L("input", {
|
|
1190
1186
|
key: p,
|
|
1191
1187
|
"onUpdate:modelValue": (_) => d.value[p] = _,
|
|
1192
1188
|
ref_for: !0,
|
|
@@ -1203,7 +1199,7 @@ const Ot = J({
|
|
|
1203
1199
|
[Ve, d.value[p]]
|
|
1204
1200
|
])), 128))
|
|
1205
1201
|
]),
|
|
1206
|
-
i.loading ? (
|
|
1202
|
+
i.loading ? (B(), _e(Ot, {
|
|
1207
1203
|
key: 1,
|
|
1208
1204
|
indeterminate: "",
|
|
1209
1205
|
rounded: "",
|
|
@@ -1213,16 +1209,16 @@ const Ot = J({
|
|
|
1213
1209
|
], 6));
|
|
1214
1210
|
}
|
|
1215
1211
|
}), nn = /* @__PURE__ */ ee(It, [["__scopeId", "data-v-44914130"]]), an = oe(
|
|
1216
|
-
() => import("./AppButtonCopy-
|
|
1212
|
+
() => import("./AppButtonCopy-CcsAzDik.js")
|
|
1217
1213
|
), ln = oe(
|
|
1218
|
-
() => import("./AppSelect-
|
|
1214
|
+
() => import("./AppSelect-BtUUK2ea.js")
|
|
1219
1215
|
), on = oe(
|
|
1220
|
-
() => import("./DropdownButton-
|
|
1216
|
+
() => import("./DropdownButton-CZwBMGcA.js")
|
|
1221
1217
|
);
|
|
1222
1218
|
export {
|
|
1223
1219
|
Zt as A,
|
|
1224
1220
|
ot as B,
|
|
1225
|
-
|
|
1221
|
+
we as C,
|
|
1226
1222
|
ft as D,
|
|
1227
1223
|
Yt as E,
|
|
1228
1224
|
Xt as F,
|