@validol4ik/uikit 0.4.10 → 0.4.12
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-Brk4ZtiF.cjs → AppButtonCopy-3Fzy0yAC.cjs} +1 -1
- package/dist/{AppButtonCopy-CKJG9x84.js → AppButtonCopy-C0dCS9kH.js} +1 -1
- package/dist/{AppSelect-CLC9ncKt.js → AppSelect-CJ7lepXJ.js} +2 -2
- package/dist/{AppSelect-D10eX6iO.cjs → AppSelect-ClkN4yqF.cjs} +1 -1
- package/dist/{DropdownButton-B1TfiIzK.js → DropdownButton-BRrrSH-F.js} +2 -2
- package/dist/{DropdownButton-CELFRZ9Z.cjs → DropdownButton-DDKnFeJV.cjs} +1 -1
- package/dist/{QMenu-DYJBr-eW.js → QMenu-C3VTu7VM.js} +1 -1
- package/dist/{QMenu-CUcASiv7.cjs → QMenu-hqXaPOL1.cjs} +1 -1
- package/dist/{index-CCGzAkrR.js → index-B71Odafx.js} +132 -130
- package/dist/{index-xA0H_IQC.cjs → index-fyO-JsmM.cjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as u, markRaw as
|
|
1
|
+
import { computed as u, markRaw as ke, defineComponent as Q, h as p, withDirectives as le, getCurrentInstance as W, unref as H, ref as Y, onBeforeUnmount as Ae, Transition as ze, openBlock as S, createBlock as _e, normalizeClass as A, withCtx as Te, createElementBlock as B, createCommentVNode as z, 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
2
|
const we = {
|
|
3
3
|
PRIMARY: "primary",
|
|
4
4
|
INFO: "info"
|
|
@@ -6,7 +6,7 @@ const we = {
|
|
|
6
6
|
SM: "sm",
|
|
7
7
|
MD: "md",
|
|
8
8
|
LG: "lg"
|
|
9
|
-
},
|
|
9
|
+
}, Ne = {
|
|
10
10
|
[$.SM]: "3px 9px",
|
|
11
11
|
[$.MD]: "5px 12px",
|
|
12
12
|
[$.LG]: "9px 20px"
|
|
@@ -16,22 +16,22 @@ const we = {
|
|
|
16
16
|
md: 32,
|
|
17
17
|
lg: 38,
|
|
18
18
|
xl: 46
|
|
19
|
-
},
|
|
19
|
+
}, re = {
|
|
20
20
|
size: String
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function ie(e, t = ne) {
|
|
23
23
|
return u(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return
|
|
25
|
+
function J(e) {
|
|
26
|
+
return ke(Q(e));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function Ke(e) {
|
|
29
|
+
return ke(e);
|
|
30
30
|
}
|
|
31
31
|
function Fe(e, t) {
|
|
32
32
|
return e !== void 0 && e() || t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Nt(e, t) {
|
|
35
35
|
if (e !== void 0) {
|
|
36
36
|
const n = e();
|
|
37
37
|
if (n != null)
|
|
@@ -39,27 +39,27 @@ function Kt(e, t) {
|
|
|
39
39
|
}
|
|
40
40
|
return t;
|
|
41
41
|
}
|
|
42
|
-
function
|
|
42
|
+
function V(e, t) {
|
|
43
43
|
return e !== void 0 ? t.concat(e()) : t;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Kt(e, t) {
|
|
46
46
|
return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
|
|
47
47
|
}
|
|
48
48
|
function Ft(e, t, n, a, o, s) {
|
|
49
49
|
t.key = a + o;
|
|
50
50
|
const r = p(e, t, n);
|
|
51
|
-
return o === !0 ?
|
|
51
|
+
return o === !0 ? le(r, s()) : r;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
54
54
|
"mdi-": (e) => `mdi ${e}`,
|
|
55
|
-
"icon-":
|
|
55
|
+
"icon-": ce,
|
|
56
56
|
// fontawesome equiv
|
|
57
57
|
"bt-": (e) => `bt ${e}`,
|
|
58
58
|
"eva-": (e) => `eva ${e}`,
|
|
59
|
-
"ion-md":
|
|
60
|
-
"ion-ios":
|
|
61
|
-
"ion-logo":
|
|
62
|
-
"iconfont ":
|
|
59
|
+
"ion-md": te,
|
|
60
|
+
"ion-ios": te,
|
|
61
|
+
"ion-logo": te,
|
|
62
|
+
"iconfont ": ce,
|
|
63
63
|
"ti-": (e) => `themify-icon ${e}`,
|
|
64
64
|
"bi-": (e) => `bootstrap-icons ${e}`
|
|
65
65
|
}, Ce = {
|
|
@@ -70,10 +70,10 @@ const se = "0 0 24 24", ue = (e) => e, ee = (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(Be).join("|") + ")"), Ge = new RegExp("^(" + Object.keys(Ce).join("|") + ")"),
|
|
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,
|
|
77
77
|
tag: {
|
|
78
78
|
type: String,
|
|
79
79
|
default: "i"
|
|
@@ -84,7 +84,7 @@ const se = "0 0 24 24", ue = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
84
84
|
right: Boolean
|
|
85
85
|
},
|
|
86
86
|
setup(e, { slots: t }) {
|
|
87
|
-
const { proxy: { $q: n } } =
|
|
87
|
+
const { proxy: { $q: n } } = W(), a = ie(e), o = u(
|
|
88
88
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
89
89
|
), s = u(() => {
|
|
90
90
|
let r, i = e.name;
|
|
@@ -102,8 +102,8 @@ const se = "0 0 24 24", ue = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
102
102
|
content: f.content !== void 0 ? f.content : " "
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
if (
|
|
106
|
-
const [f, _ =
|
|
105
|
+
if (Ue.test(i) === !0) {
|
|
106
|
+
const [f, _ = ue] = i.split("|");
|
|
107
107
|
return {
|
|
108
108
|
svg: !0,
|
|
109
109
|
viewBox: _,
|
|
@@ -113,13 +113,13 @@ const se = "0 0 24 24", ue = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
113
113
|
})
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
if (
|
|
116
|
+
if (He.test(i) === !0)
|
|
117
117
|
return {
|
|
118
118
|
img: !0,
|
|
119
119
|
src: i.substring(4)
|
|
120
120
|
};
|
|
121
121
|
if (Ye.test(i) === !0) {
|
|
122
|
-
const [f, _ =
|
|
122
|
+
const [f, _ = ue] = i.split("|");
|
|
123
123
|
return {
|
|
124
124
|
svguse: !0,
|
|
125
125
|
src: f.substring(7),
|
|
@@ -134,9 +134,9 @@ const se = "0 0 24 24", ue = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
134
134
|
r = i;
|
|
135
135
|
else if (Xe.test(i) === !0)
|
|
136
136
|
r = `ionicons ion-${n.platform.is.ios === !0 ? "ios" : "md"}${i.substring(3)}`;
|
|
137
|
-
else if (
|
|
137
|
+
else if (de.test(i) === !0) {
|
|
138
138
|
r = "notranslate material-symbols";
|
|
139
|
-
const f = i.match(
|
|
139
|
+
const f = i.match(de);
|
|
140
140
|
f !== null && (i = i.substring(6), r += Le[f[1]]), q = i;
|
|
141
141
|
} else {
|
|
142
142
|
r = "notranslate material-icons";
|
|
@@ -155,19 +155,19 @@ const se = "0 0 24 24", ue = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
155
155
|
"aria-hidden": "true",
|
|
156
156
|
role: "presentation"
|
|
157
157
|
};
|
|
158
|
-
return s.value.none === !0 ? p(e.tag, r, Fe(t.default)) : s.value.img === !0 ? p(e.tag, r,
|
|
158
|
+
return s.value.none === !0 ? p(e.tag, r, Fe(t.default)) : s.value.img === !0 ? p(e.tag, r, V(t.default, [
|
|
159
159
|
p("img", { src: s.value.src })
|
|
160
|
-
])) : s.value.svg === !0 ? p(e.tag, r,
|
|
160
|
+
])) : s.value.svg === !0 ? p(e.tag, r, V(t.default, [
|
|
161
161
|
p("svg", {
|
|
162
162
|
viewBox: s.value.viewBox || "0 0 24 24"
|
|
163
163
|
}, s.value.nodes)
|
|
164
|
-
])) : s.value.svguse === !0 ? p(e.tag, r,
|
|
164
|
+
])) : s.value.svguse === !0 ? p(e.tag, r, V(t.default, [
|
|
165
165
|
p("svg", {
|
|
166
166
|
viewBox: s.value.viewBox
|
|
167
167
|
}, [
|
|
168
168
|
p("use", { "xlink:href": s.value.src })
|
|
169
169
|
])
|
|
170
|
-
])) : (s.value.cls !== void 0 && (r.class += " " + s.value.cls), p(e.tag, r,
|
|
170
|
+
])) : (s.value.cls !== void 0 && (r.class += " " + s.value.cls), p(e.tag, r, V(t.default, [
|
|
171
171
|
s.value.content
|
|
172
172
|
])));
|
|
173
173
|
};
|
|
@@ -187,7 +187,7 @@ function Ze(e) {
|
|
|
187
187
|
)
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
const et =
|
|
190
|
+
const et = J({
|
|
191
191
|
name: "QSpinner",
|
|
192
192
|
props: {
|
|
193
193
|
...Je,
|
|
@@ -231,7 +231,7 @@ function Qt(e) {
|
|
|
231
231
|
} catch {
|
|
232
232
|
return;
|
|
233
233
|
}
|
|
234
|
-
const t =
|
|
234
|
+
const t = H(e);
|
|
235
235
|
if (t)
|
|
236
236
|
return t.$el || t;
|
|
237
237
|
}
|
|
@@ -243,7 +243,7 @@ function Gt(e, t) {
|
|
|
243
243
|
return !0;
|
|
244
244
|
return !1;
|
|
245
245
|
}
|
|
246
|
-
const
|
|
246
|
+
const Z = {
|
|
247
247
|
hasPassive: !1,
|
|
248
248
|
passiveCapture: !0,
|
|
249
249
|
notPassiveCapture: !0
|
|
@@ -251,7 +251,7 @@ const J = {
|
|
|
251
251
|
try {
|
|
252
252
|
const e = Object.defineProperty({}, "passive", {
|
|
253
253
|
get() {
|
|
254
|
-
Object.assign(
|
|
254
|
+
Object.assign(Z, {
|
|
255
255
|
hasPassive: !0,
|
|
256
256
|
passive: { passive: !0 },
|
|
257
257
|
notPassive: { passive: !1 },
|
|
@@ -263,7 +263,7 @@ try {
|
|
|
263
263
|
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
264
264
|
} catch {
|
|
265
265
|
}
|
|
266
|
-
function
|
|
266
|
+
function Ut() {
|
|
267
267
|
}
|
|
268
268
|
function nt(e) {
|
|
269
269
|
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]), {
|
|
@@ -271,7 +271,7 @@ function nt(e) {
|
|
|
271
271
|
left: e.clientX
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Ht(e) {
|
|
275
275
|
if (e.path)
|
|
276
276
|
return e.path;
|
|
277
277
|
if (e.composedPath)
|
|
@@ -296,13 +296,13 @@ function D(e) {
|
|
|
296
296
|
function lt(e, t, n) {
|
|
297
297
|
const a = `__q_${t}_evt`;
|
|
298
298
|
e[a] = e[a] !== void 0 ? e[a].concat(n) : n, n.forEach((o) => {
|
|
299
|
-
o[0].addEventListener(o[1], e[o[2]],
|
|
299
|
+
o[0].addEventListener(o[1], e[o[2]], Z[o[3]]);
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
302
|
function ot(e, t) {
|
|
303
303
|
const n = `__q_${t}_evt`;
|
|
304
304
|
e[n] !== void 0 && (e[n].forEach((a) => {
|
|
305
|
-
a[0].removeEventListener(a[1], e[a[2]],
|
|
305
|
+
a[0].removeEventListener(a[1], e[a[2]], Z[a[3]]);
|
|
306
306
|
}), e[n] = void 0);
|
|
307
307
|
}
|
|
308
308
|
function rt(e) {
|
|
@@ -319,7 +319,7 @@ function it(e, t = 250) {
|
|
|
319
319
|
}, t), a = e.apply(this, arguments)), a;
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function ve(e, t, n, a) {
|
|
323
323
|
n.modifiers.stop === !0 && Ee(e);
|
|
324
324
|
const o = n.modifiers.color;
|
|
325
325
|
let s = n.modifiers.center;
|
|
@@ -343,7 +343,7 @@ function fe(e, t, n, a) {
|
|
|
343
343
|
}, 250);
|
|
344
344
|
}, 50);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function ge(e, { modifiers: t, value: n, arg: a }) {
|
|
347
347
|
const o = Object.assign({}, e.cfg.ripple, t, n);
|
|
348
348
|
e.modifiers = {
|
|
349
349
|
early: o.early === !0,
|
|
@@ -353,7 +353,7 @@ function ve(e, { modifiers: t, value: n, arg: a }) {
|
|
|
353
353
|
keyCodes: [].concat(o.keyCodes || 13)
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
const st =
|
|
356
|
+
const st = Ke(
|
|
357
357
|
{
|
|
358
358
|
name: "ripple",
|
|
359
359
|
beforeMount(e, t) {
|
|
@@ -366,13 +366,13 @@ const st = Ve(
|
|
|
366
366
|
modifiers: {},
|
|
367
367
|
abort: [],
|
|
368
368
|
start(o) {
|
|
369
|
-
a.enabled === !0 && o.qSkipRipple !== !0 && o.type === (a.modifiers.early === !0 ? "pointerdown" : "click") &&
|
|
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
|
-
a.enabled === !0 && o.qSkipRipple !== !0 && ae(o, a.modifiers.keyCodes) === !0 && o.type === `key${a.modifiers.early === !0 ? "down" : "up"}` &&
|
|
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
|
-
|
|
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"],
|
|
@@ -382,7 +382,7 @@ const st = Ve(
|
|
|
382
382
|
updated(e, t) {
|
|
383
383
|
if (t.oldValue !== t.value) {
|
|
384
384
|
const n = e.__qripple;
|
|
385
|
-
n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value &&
|
|
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) {
|
|
@@ -428,10 +428,10 @@ function ft(e) {
|
|
|
428
428
|
function Xt(e) {
|
|
429
429
|
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function pe(e) {
|
|
432
432
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function me(e, t) {
|
|
435
435
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
436
436
|
}
|
|
437
437
|
function vt(e, t) {
|
|
@@ -445,11 +445,11 @@ function vt(e, t) {
|
|
|
445
445
|
}
|
|
446
446
|
return !0;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function he(e, t) {
|
|
449
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
|
-
return Array.isArray(e) === !0 ?
|
|
452
|
+
return Array.isArray(e) === !0 ? he(e, t) : Array.isArray(t) === !0 ? he(t, e) : e === t;
|
|
453
453
|
}
|
|
454
454
|
function pt(e, t) {
|
|
455
455
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
@@ -482,7 +482,7 @@ const Me = {
|
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
484
|
function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
485
|
-
const n =
|
|
485
|
+
const n = W(), { props: a, proxy: o, emit: s } = n, r = ft(n), i = u(() => a.disable !== !0 && a.href !== void 0), q = t === !0 ? u(
|
|
486
486
|
() => r === !0 && a.disable !== !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
487
487
|
) : u(
|
|
488
488
|
() => r === !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
@@ -502,15 +502,15 @@ function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
502
502
|
if (P.length === 0)
|
|
503
503
|
return -1;
|
|
504
504
|
const T = P.findIndex(
|
|
505
|
-
|
|
505
|
+
me.bind(null, E)
|
|
506
506
|
);
|
|
507
507
|
if (T !== -1)
|
|
508
508
|
return T;
|
|
509
|
-
const G =
|
|
509
|
+
const G = pe(b[C - 2]);
|
|
510
510
|
return (
|
|
511
511
|
// we are dealing with nested routes
|
|
512
|
-
C > 1 &&
|
|
513
|
-
|
|
512
|
+
C > 1 && pe(E) === G && P[P.length - 1].path !== G ? P.findIndex(
|
|
513
|
+
me.bind(null, b[C - 2])
|
|
514
514
|
) : T
|
|
515
515
|
);
|
|
516
516
|
}), g = u(
|
|
@@ -562,7 +562,7 @@ function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
562
562
|
navigateOnClick: O
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
|
-
const
|
|
565
|
+
const be = {
|
|
566
566
|
none: 0,
|
|
567
567
|
xs: 4,
|
|
568
568
|
sm: 8,
|
|
@@ -584,7 +584,7 @@ function Jt(e) {
|
|
|
584
584
|
return t !== void 0 ? { [t]: !0 } : {};
|
|
585
585
|
}
|
|
586
586
|
const _t = {
|
|
587
|
-
...
|
|
587
|
+
...re,
|
|
588
588
|
...Me,
|
|
589
589
|
type: {
|
|
590
590
|
type: String,
|
|
@@ -630,12 +630,12 @@ const _t = {
|
|
|
630
630
|
round: Boolean
|
|
631
631
|
};
|
|
632
632
|
function qt(e) {
|
|
633
|
-
const t =
|
|
633
|
+
const t = ie(e, ht), n = dt(e), { hasRouterLink: a, hasLink: o, linkTag: s, linkAttrs: r, navigateOnClick: i } = mt({
|
|
634
634
|
fallbackTag: "button"
|
|
635
635
|
}), q = u(() => {
|
|
636
636
|
const d = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
637
637
|
return e.padding !== void 0 ? Object.assign({}, d, {
|
|
638
|
-
padding: e.padding.split(/\s+/).map((h) => h in
|
|
638
|
+
padding: e.padding.split(/\s+/).map((h) => h in be ? be[h] + "px" : h).join(" "),
|
|
639
639
|
minWidth: "0",
|
|
640
640
|
minHeight: "0"
|
|
641
641
|
}) : d;
|
|
@@ -670,9 +670,9 @@ function qt(e) {
|
|
|
670
670
|
isActionable: f
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
const { passiveCapture: L } =
|
|
673
|
+
const { passiveCapture: L } = Z;
|
|
674
674
|
let x = null, j = null, I = null;
|
|
675
|
-
const St =
|
|
675
|
+
const St = J({
|
|
676
676
|
name: "QBtn",
|
|
677
677
|
props: {
|
|
678
678
|
...$t,
|
|
@@ -682,7 +682,7 @@ const St = W({
|
|
|
682
682
|
},
|
|
683
683
|
emits: ["click", "keydown", "mousedown", "keyup"],
|
|
684
684
|
setup(e, { slots: t, emit: n }) {
|
|
685
|
-
const { proxy: a } =
|
|
685
|
+
const { proxy: a } = W(), {
|
|
686
686
|
classes: o,
|
|
687
687
|
style: s,
|
|
688
688
|
innerClasses: r,
|
|
@@ -691,7 +691,7 @@ const St = W({
|
|
|
691
691
|
linkTag: k,
|
|
692
692
|
navigateOnClick: f,
|
|
693
693
|
isActionable: _
|
|
694
|
-
} = qt(e), l =
|
|
694
|
+
} = qt(e), l = Y(null), v = Y(null);
|
|
695
695
|
let m = null, g, d = null;
|
|
696
696
|
const h = u(
|
|
697
697
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
@@ -704,11 +704,11 @@ const St = W({
|
|
|
704
704
|
}), b = u(() => {
|
|
705
705
|
if (e.loading === !0)
|
|
706
706
|
return {
|
|
707
|
-
onMousedown:
|
|
708
|
-
onTouchstart:
|
|
709
|
-
onClick:
|
|
710
|
-
onKeydown:
|
|
711
|
-
onKeyup:
|
|
707
|
+
onMousedown: K,
|
|
708
|
+
onTouchstart: K,
|
|
709
|
+
onClick: K,
|
|
710
|
+
onKeydown: K,
|
|
711
|
+
onKeyup: K
|
|
712
712
|
};
|
|
713
713
|
if (_.value === !0) {
|
|
714
714
|
const c = {
|
|
@@ -741,25 +741,25 @@ const St = W({
|
|
|
741
741
|
const y = document.activeElement;
|
|
742
742
|
if (e.type === "submit" && y !== document.body && l.value.contains(y) === !1 && y.contains(l.value) === !1) {
|
|
743
743
|
l.value.focus();
|
|
744
|
-
const
|
|
745
|
-
document.removeEventListener("keydown", D, !0), document.removeEventListener("keyup",
|
|
744
|
+
const U = () => {
|
|
745
|
+
document.removeEventListener("keydown", D, !0), document.removeEventListener("keyup", U, L), l.value !== null && l.value.removeEventListener("blur", U, L);
|
|
746
746
|
};
|
|
747
|
-
document.addEventListener("keydown", D, !0), document.addEventListener("keyup",
|
|
747
|
+
document.addEventListener("keydown", D, !0), document.addEventListener("keyup", U, L), l.value.addEventListener("blur", U, L);
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
f(c);
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
function P(c) {
|
|
754
|
-
l.value !== null && (n("keydown", c), ae(c, [13, 32]) === !0 && j !== l.value && (j !== null &&
|
|
754
|
+
l.value !== null && (n("keydown", c), ae(c, [13, 32]) === !0 && j !== l.value && (j !== null && N(), c.defaultPrevented !== !0 && (l.value.focus(), j = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("keyup", R, !0), l.value.addEventListener("blur", R, L)), D(c)));
|
|
755
755
|
}
|
|
756
756
|
function T(c) {
|
|
757
|
-
l.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (x !== l.value && (x !== null &&
|
|
757
|
+
l.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (x !== l.value && (x !== null && N(), x = l.value, m = c.target, m.addEventListener("touchcancel", R, L), m.addEventListener("touchend", R, L)), g = !0, d !== null && clearTimeout(d), d = setTimeout(() => {
|
|
758
758
|
d = null, g = !1;
|
|
759
759
|
}, 200)));
|
|
760
760
|
}
|
|
761
761
|
function G(c) {
|
|
762
|
-
l.value !== null && (c.qSkipRipple = g === !0, n("mousedown", c), c.defaultPrevented !== !0 && I !== l.value && (I !== null &&
|
|
762
|
+
l.value !== null && (c.qSkipRipple = g === !0, n("mousedown", c), c.defaultPrevented !== !0 && I !== l.value && (I !== null && N(), I = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("mouseup", R, L)));
|
|
763
763
|
}
|
|
764
764
|
function R(c) {
|
|
765
765
|
if (l.value !== null && !(c !== void 0 && c.type === "blur" && document.activeElement === l.value)) {
|
|
@@ -770,18 +770,18 @@ const St = W({
|
|
|
770
770
|
}
|
|
771
771
|
n("keyup", c);
|
|
772
772
|
}
|
|
773
|
-
|
|
773
|
+
N();
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function N(c) {
|
|
777
777
|
const y = v.value;
|
|
778
778
|
c !== !0 && (x === l.value || I === l.value) && y !== null && y !== document.activeElement && (y.setAttribute("tabindex", -1), y.focus()), x === l.value && (m !== null && (m.removeEventListener("touchcancel", R, L), m.removeEventListener("touchend", R, L)), x = m = null), I === l.value && (document.removeEventListener("mouseup", R, L), I = null), j === l.value && (document.removeEventListener("keyup", R, !0), l.value !== null && l.value.removeEventListener("blur", R, L), j = null), l.value !== null && l.value.classList.remove("q-btn--active");
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function K(c) {
|
|
781
781
|
D(c), c.qSkipRipple = !0;
|
|
782
782
|
}
|
|
783
783
|
return Ae(() => {
|
|
784
|
-
|
|
784
|
+
N(!0);
|
|
785
785
|
}), Object.assign(a, {
|
|
786
786
|
click: (c) => {
|
|
787
787
|
_.value === !0 && E(c);
|
|
@@ -789,15 +789,15 @@ const St = W({
|
|
|
789
789
|
}), () => {
|
|
790
790
|
let c = [];
|
|
791
791
|
e.icon !== void 0 && c.push(
|
|
792
|
-
p(
|
|
792
|
+
p(fe, {
|
|
793
793
|
name: e.icon,
|
|
794
794
|
left: e.stack !== !0 && h.value === !0,
|
|
795
795
|
role: "img"
|
|
796
796
|
})
|
|
797
797
|
), h.value === !0 && c.push(
|
|
798
798
|
p("span", { class: "block" }, [e.label])
|
|
799
|
-
), c =
|
|
800
|
-
p(
|
|
799
|
+
), c = V(t.default, c), e.iconRight !== void 0 && e.round === !1 && c.push(
|
|
800
|
+
p(fe, {
|
|
801
801
|
name: e.iconRight,
|
|
802
802
|
right: e.stack !== !0 && h.value === !0,
|
|
803
803
|
role: "img"
|
|
@@ -831,7 +831,7 @@ const St = W({
|
|
|
831
831
|
class: "absolute-full flex flex-center"
|
|
832
832
|
}, t.loading !== void 0 ? t.loading() : [p(et)])
|
|
833
833
|
] : null)
|
|
834
|
-
),
|
|
834
|
+
), le(
|
|
835
835
|
p(
|
|
836
836
|
k.value,
|
|
837
837
|
C.value,
|
|
@@ -885,11 +885,11 @@ const St = W({
|
|
|
885
885
|
},
|
|
886
886
|
`app-btn_${t.color}`
|
|
887
887
|
]);
|
|
888
|
-
return (a, o) => (S(), _e(
|
|
888
|
+
return (a, o) => (S(), _e(H(St), {
|
|
889
889
|
"no-caps": "",
|
|
890
890
|
unelevated: "",
|
|
891
891
|
class: A(n.value),
|
|
892
|
-
padding:
|
|
892
|
+
padding: H(Ne)[a.size || H($).MD],
|
|
893
893
|
loading: a.loading,
|
|
894
894
|
disable: a.disabled || void 0,
|
|
895
895
|
to: a.to,
|
|
@@ -912,7 +912,7 @@ const St = W({
|
|
|
912
912
|
}, null, 2)) : z("", !0),
|
|
913
913
|
$e(a.$slots, "default", {}, void 0, !0),
|
|
914
914
|
a.label ? (S(), B(qe, { key: 1 }, [
|
|
915
|
-
Oe(
|
|
915
|
+
Oe(X(a.label), 1)
|
|
916
916
|
], 64)) : z("", !0),
|
|
917
917
|
a.iconRight ? (S(), B("i", {
|
|
918
918
|
key: 2,
|
|
@@ -927,12 +927,12 @@ const St = W({
|
|
|
927
927
|
_: 3
|
|
928
928
|
}, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
|
|
929
929
|
}
|
|
930
|
-
}),
|
|
930
|
+
}), ee = (e, t) => {
|
|
931
931
|
const n = e.__vccOpts || e;
|
|
932
932
|
for (const [a, o] of t)
|
|
933
933
|
n[a] = o;
|
|
934
934
|
return n;
|
|
935
|
-
}, Zt = /* @__PURE__ */
|
|
935
|
+
}, Zt = /* @__PURE__ */ ee(wt, [["__scopeId", "data-v-99788ad1"]]), Bt = {
|
|
936
936
|
key: 0,
|
|
937
937
|
class: "app-toggle__label app-toggle__label_left"
|
|
938
938
|
}, Ct = { class: "app-toggle__container" }, Lt = ["checked", "disabled"], Et = { class: "app-toggle__thumb" }, Rt = {
|
|
@@ -972,7 +972,7 @@ const St = W({
|
|
|
972
972
|
return (r, i) => (S(), B("div", {
|
|
973
973
|
class: A(s.value)
|
|
974
974
|
}, [
|
|
975
|
-
r.label && r.labelLeft ? (S(), B("span", Bt,
|
|
975
|
+
r.label && r.labelLeft ? (S(), B("span", Bt, X(r.label), 1)) : z("", !0),
|
|
976
976
|
F("label", Ct, [
|
|
977
977
|
F("input", {
|
|
978
978
|
type: "checkbox",
|
|
@@ -1002,10 +1002,10 @@ const St = W({
|
|
|
1002
1002
|
], 2),
|
|
1003
1003
|
$e(r.$slots, "default", {}, void 0, !0)
|
|
1004
1004
|
]),
|
|
1005
|
-
r.label && !r.labelLeft ? (S(), B("span", Rt,
|
|
1005
|
+
r.label && !r.labelLeft ? (S(), B("span", Rt, X(r.label), 1)) : z("", !0)
|
|
1006
1006
|
], 2));
|
|
1007
1007
|
}
|
|
1008
|
-
}), en = /* @__PURE__ */
|
|
1008
|
+
}), en = /* @__PURE__ */ ee(Mt, [["__scopeId", "data-v-e0e56123"]]), Pt = /* @__PURE__ */ Q({
|
|
1009
1009
|
__name: "AppIcon",
|
|
1010
1010
|
props: {
|
|
1011
1011
|
name: {},
|
|
@@ -1018,7 +1018,7 @@ const St = W({
|
|
|
1018
1018
|
style: Se(t.size ? `font-size: ${t.size}` : void 0)
|
|
1019
1019
|
}, null, 6));
|
|
1020
1020
|
}
|
|
1021
|
-
}), tn = /* @__PURE__ */
|
|
1021
|
+
}), tn = /* @__PURE__ */ ee(Pt, [["__scopeId", "data-v-941765ee"]]), At = {
|
|
1022
1022
|
dark: {
|
|
1023
1023
|
type: Boolean,
|
|
1024
1024
|
default: null
|
|
@@ -1034,16 +1034,16 @@ const Tt = {
|
|
|
1034
1034
|
lg: 10,
|
|
1035
1035
|
xl: 14
|
|
1036
1036
|
};
|
|
1037
|
-
function
|
|
1037
|
+
function ye(e, t, n) {
|
|
1038
1038
|
return {
|
|
1039
1039
|
transform: t === !0 ? `translateX(${n.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
|
-
const Ot =
|
|
1042
|
+
const Ot = J({
|
|
1043
1043
|
name: "QLinearProgress",
|
|
1044
1044
|
props: {
|
|
1045
1045
|
...At,
|
|
1046
|
-
...
|
|
1046
|
+
...re,
|
|
1047
1047
|
value: {
|
|
1048
1048
|
type: Number,
|
|
1049
1049
|
default: 0
|
|
@@ -1063,14 +1063,14 @@ const Ot = W({
|
|
|
1063
1063
|
instantFeedback: Boolean
|
|
1064
1064
|
},
|
|
1065
1065
|
setup(e, { slots: t }) {
|
|
1066
|
-
const { proxy: n } =
|
|
1066
|
+
const { proxy: n } = W(), a = zt(e, n.$q), o = ie(e, Tt), s = u(() => e.indeterminate === !0 || e.query === !0), r = u(() => e.reverse !== e.query), i = u(() => ({
|
|
1067
1067
|
...o.value !== null ? o.value : {},
|
|
1068
1068
|
"--q-linear-progress-speed": `${e.animationSpeed}ms`
|
|
1069
1069
|
})), q = u(
|
|
1070
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" : "")
|
|
1071
|
-
), k = u(() =>
|
|
1071
|
+
), k = u(() => ye(e.buffer !== void 0 ? e.buffer : 1, r.value, n.$q)), f = u(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), _ = u(
|
|
1072
1072
|
() => `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}` : "")
|
|
1073
|
-
), l = u(() =>
|
|
1073
|
+
), l = u(() => ye(s.value === !0 ? 1 : e.value, r.value, n.$q)), v = u(
|
|
1074
1074
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${s.value === !0 ? "in" : ""}determinate`
|
|
1075
1075
|
), m = u(() => ({ width: `${e.value * 100}%` })), g = u(
|
|
1076
1076
|
() => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
|
|
@@ -1098,13 +1098,13 @@ const Ot = W({
|
|
|
1098
1098
|
"aria-valuemin": 0,
|
|
1099
1099
|
"aria-valuemax": 1,
|
|
1100
1100
|
"aria-valuenow": e.indeterminate === !0 ? void 0 : e.value
|
|
1101
|
-
},
|
|
1101
|
+
}, V(t.default, d));
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
1104
|
}), Dt = {
|
|
1105
1105
|
key: 0,
|
|
1106
1106
|
class: "code-field__label"
|
|
1107
|
-
}, xt = { class: "code-field__inputs" }, jt = ["
|
|
1107
|
+
}, xt = { class: "code-field__inputs" }, jt = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], It = /* @__PURE__ */ Q({
|
|
1108
1108
|
__name: "AppCodeInput",
|
|
1109
1109
|
props: {
|
|
1110
1110
|
length: { default: 5 },
|
|
@@ -1117,7 +1117,7 @@ const Ot = W({
|
|
|
1117
1117
|
},
|
|
1118
1118
|
emits: ["update:modelValue", "completed"],
|
|
1119
1119
|
setup(e, { emit: t }) {
|
|
1120
|
-
const n = e, a = t, o =
|
|
1120
|
+
const n = e, a = t, o = Y(Array(n.length).fill("")), s = Y([]), r = u(() => [
|
|
1121
1121
|
"code-field",
|
|
1122
1122
|
{
|
|
1123
1123
|
"code-field_sm": n.size === $.SM,
|
|
@@ -1133,19 +1133,19 @@ const Ot = W({
|
|
|
1133
1133
|
var d;
|
|
1134
1134
|
const g = l.target.value;
|
|
1135
1135
|
if (g.length === 1)
|
|
1136
|
-
|
|
1136
|
+
v < n.length - 1 && s.value && ((d = s.value[v + 1]) == null || d.focus());
|
|
1137
1137
|
else if (g.length > 1) {
|
|
1138
1138
|
const h = g.slice(0, n.length - v).split("");
|
|
1139
1139
|
h.forEach((w, M) => {
|
|
1140
1140
|
o.value[v + M] = w;
|
|
1141
|
-
}),
|
|
1141
|
+
}), se(() => {
|
|
1142
1142
|
var w;
|
|
1143
1143
|
s.value && ((w = s.value[Math.min(v + h.length, n.length - 1)]) == null || w.focus());
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
|
-
}, k = (l
|
|
1147
|
-
var
|
|
1148
|
-
o.value[
|
|
1146
|
+
}, k = (l) => {
|
|
1147
|
+
var v;
|
|
1148
|
+
o.value[l] === "" && s.value && l > 0 && ((v = s.value[l - 1]) == null || v.focus());
|
|
1149
1149
|
}, f = (l, v) => {
|
|
1150
1150
|
var d;
|
|
1151
1151
|
l.preventDefault();
|
|
@@ -1154,12 +1154,12 @@ const Ot = W({
|
|
|
1154
1154
|
const g = m.slice(0, n.length - v).split("");
|
|
1155
1155
|
g.forEach((h, w) => {
|
|
1156
1156
|
o.value[v + w] = h;
|
|
1157
|
-
}),
|
|
1157
|
+
}), se(() => {
|
|
1158
1158
|
var h;
|
|
1159
1159
|
s.value && ((h = s.value[Math.min(v + g.length, n.length - 1)]) == null || h.focus());
|
|
1160
1160
|
});
|
|
1161
1161
|
};
|
|
1162
|
-
|
|
1162
|
+
De(
|
|
1163
1163
|
o,
|
|
1164
1164
|
(l) => {
|
|
1165
1165
|
const v = l.join("");
|
|
@@ -1170,17 +1170,17 @@ const Ot = W({
|
|
|
1170
1170
|
const _ = (l) => {
|
|
1171
1171
|
a("update:modelValue", l), l.length === n.length && !l.includes(" ") && a("completed", l);
|
|
1172
1172
|
};
|
|
1173
|
-
return
|
|
1173
|
+
return xe(() => {
|
|
1174
1174
|
n.autofocus && s.value && s.value[0] && s.value[0].focus();
|
|
1175
1175
|
}), (l, v) => (S(), B("div", {
|
|
1176
1176
|
class: A(r.value),
|
|
1177
1177
|
style: Se(i.value)
|
|
1178
1178
|
}, [
|
|
1179
|
-
l.label ? (S(), B("label", Dt,
|
|
1179
|
+
l.label ? (S(), B("label", Dt, X(l.label), 1)) : z("", !0),
|
|
1180
1180
|
F("div", xt, [
|
|
1181
|
-
(S(!0), B(qe, null,
|
|
1181
|
+
(S(!0), B(qe, null, je(l.length, (m, g) => le((S(), B("input", {
|
|
1182
1182
|
key: g,
|
|
1183
|
-
|
|
1183
|
+
"onUpdate:modelValue": (d) => o.value[g] = d,
|
|
1184
1184
|
ref_for: !0,
|
|
1185
1185
|
ref_key: "inputRefs",
|
|
1186
1186
|
ref: s,
|
|
@@ -1189,9 +1189,11 @@ const Ot = W({
|
|
|
1189
1189
|
class: "code-field__input",
|
|
1190
1190
|
disabled: l.disabled || l.loading,
|
|
1191
1191
|
onInput: (d) => q(d, g),
|
|
1192
|
-
onKeydown:
|
|
1192
|
+
onKeydown: Ie((d) => k(g), ["backspace"]),
|
|
1193
1193
|
onPaste: (d) => f(d, g)
|
|
1194
|
-
}, null, 40, jt))
|
|
1194
|
+
}, null, 40, jt)), [
|
|
1195
|
+
[Ve, o.value[g]]
|
|
1196
|
+
])), 128))
|
|
1195
1197
|
]),
|
|
1196
1198
|
l.loading ? (S(), _e(Ot, {
|
|
1197
1199
|
key: 1,
|
|
@@ -1202,12 +1204,12 @@ const Ot = W({
|
|
|
1202
1204
|
}, null, 8, ["color"])) : z("", !0)
|
|
1203
1205
|
], 6));
|
|
1204
1206
|
}
|
|
1205
|
-
}), nn = /* @__PURE__ */
|
|
1206
|
-
() => import("./AppButtonCopy-
|
|
1207
|
-
), ln =
|
|
1208
|
-
() => import("./AppSelect-
|
|
1209
|
-
), on =
|
|
1210
|
-
() => import("./DropdownButton-
|
|
1207
|
+
}), nn = /* @__PURE__ */ ee(It, [["__scopeId", "data-v-d6040441"]]), an = oe(
|
|
1208
|
+
() => import("./AppButtonCopy-C0dCS9kH.js")
|
|
1209
|
+
), ln = oe(
|
|
1210
|
+
() => import("./AppSelect-CJ7lepXJ.js")
|
|
1211
|
+
), on = oe(
|
|
1212
|
+
() => import("./DropdownButton-BRrrSH-F.js")
|
|
1211
1213
|
);
|
|
1212
1214
|
export {
|
|
1213
1215
|
Zt as A,
|
|
@@ -1225,28 +1227,28 @@ export {
|
|
|
1225
1227
|
nn as M,
|
|
1226
1228
|
en as N,
|
|
1227
1229
|
tn as O,
|
|
1228
|
-
|
|
1230
|
+
fe as Q,
|
|
1229
1231
|
st as R,
|
|
1230
1232
|
$ as S,
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1233
|
+
ee as _,
|
|
1234
|
+
ie as a,
|
|
1235
|
+
V as b,
|
|
1236
|
+
J as c,
|
|
1237
|
+
re as d,
|
|
1236
1238
|
At as e,
|
|
1237
1239
|
mt as f,
|
|
1238
|
-
|
|
1240
|
+
Nt as g,
|
|
1239
1241
|
Fe as h,
|
|
1240
1242
|
ae as i,
|
|
1241
1243
|
Wt as j,
|
|
1242
1244
|
et as k,
|
|
1243
1245
|
Ft as l,
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1246
|
+
Kt as m,
|
|
1247
|
+
Z as n,
|
|
1248
|
+
Ht as o,
|
|
1247
1249
|
at as p,
|
|
1248
1250
|
Gt as q,
|
|
1249
|
-
|
|
1251
|
+
Ut as r,
|
|
1250
1252
|
D as s,
|
|
1251
1253
|
Ee as t,
|
|
1252
1254
|
zt as u,
|