@validol4ik/uikit 0.4.8 → 0.4.11
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-aA3mzCa_.cjs → AppButtonCopy-BMBsol37.cjs} +1 -1
- package/dist/{AppButtonCopy-BT6q49kK.js → AppButtonCopy-DVw7F15T.js} +1 -1
- package/dist/{AppSelect-DIHAfwoW.cjs → AppSelect-CCTEGNLN.cjs} +1 -1
- package/dist/{AppSelect-Do_cZtgV.js → AppSelect-GSRA0lfd.js} +2 -2
- package/dist/{DropdownButton-Db5Fg7F4.cjs → DropdownButton-CbwyDwrX.cjs} +1 -1
- package/dist/{DropdownButton-C3ruSpgA.js → DropdownButton-DuQ2poIa.js} +2 -2
- package/dist/{QMenu-3ZP8gFo1.js → QMenu-Bycyvbkz.js} +1 -1
- package/dist/{QMenu-B3E52vh7.cjs → QMenu-CPJOI-Fy.cjs} +1 -1
- package/dist/{index-BlSH-SX9.js → index-BC4sq_F6.js} +211 -205
- package/dist/{index-BnRUGJHj.cjs → index-DNqdG9xO.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 X, unref as H, ref as te, 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 Y, createElementVNode as F, normalizeStyle as Se, useTemplateRef as De, watch as xe, onMounted as je, renderList as Ie, nextTick as se, withKeys as Ve, vModelText as Ne, defineAsyncComponent as oe } from "vue";
|
|
2
2
|
const we = {
|
|
3
3
|
PRIMARY: "primary",
|
|
4
4
|
INFO: "info"
|
|
@@ -16,19 +16,19 @@ 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
25
|
function W(e) {
|
|
26
|
-
return
|
|
26
|
+
return ke(Q(e));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function Fe(e) {
|
|
29
|
+
return ke(e);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Qe(e, t) {
|
|
32
32
|
return e !== void 0 && e() || t;
|
|
33
33
|
}
|
|
34
34
|
function Kt(e, t) {
|
|
@@ -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 Ft(e, t) {
|
|
46
46
|
return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Qt(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, ee = (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
59
|
"ion-md": ee,
|
|
60
60
|
"ion-ios": ee,
|
|
61
61
|
"ion-logo": ee,
|
|
62
|
-
"iconfont ":
|
|
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
|
-
},
|
|
73
|
+
}, Ge = new RegExp("^(" + Object.keys(Be).join("|") + ")"), Ue = new RegExp("^(" + Object.keys(Ce).join("|") + ")"), de = new RegExp("^(" + Object.keys(Le).join("|") + ")"), He = /^[Mm]\s?[-+]?\.?\d/, Ye = /^img:/, Xe = /^svguse:/, We = /^ion-/, Je = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, fe = W({
|
|
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 } } = X(), a =
|
|
87
|
+
const { proxy: { $q: n } } = X(), 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;
|
|
@@ -103,7 +103,7 @@ const se = "0 0 24 24", ue = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
if (He.test(i) === !0) {
|
|
106
|
-
const [f, _ =
|
|
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 (Ye.test(i) === !0)
|
|
117
117
|
return {
|
|
118
118
|
img: !0,
|
|
119
119
|
src: i.substring(4)
|
|
120
120
|
};
|
|
121
|
-
if (
|
|
122
|
-
const [f, _ =
|
|
121
|
+
if (Xe.test(i) === !0) {
|
|
122
|
+
const [f, _ = ue] = i.split("|");
|
|
123
123
|
return {
|
|
124
124
|
svguse: !0,
|
|
125
125
|
src: f.substring(7),
|
|
@@ -127,20 +127,20 @@ const se = "0 0 24 24", ue = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
let q = " ";
|
|
130
|
-
const k = i.match(
|
|
130
|
+
const k = i.match(Ge);
|
|
131
131
|
if (k !== null)
|
|
132
132
|
r = Be[k[1]](i);
|
|
133
|
-
else if (
|
|
133
|
+
else if (Je.test(i) === !0)
|
|
134
134
|
r = i;
|
|
135
|
-
else if (
|
|
135
|
+
else if (We.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";
|
|
143
|
-
const f = i.match(
|
|
143
|
+
const f = i.match(Ue);
|
|
144
144
|
f !== null && (i = i.substring(2), r += Ce[f[1]]), q = i;
|
|
145
145
|
}
|
|
146
146
|
return {
|
|
@@ -155,31 +155,31 @@ 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,
|
|
158
|
+
return s.value.none === !0 ? p(e.tag, r, Qe(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
|
};
|
|
174
174
|
}
|
|
175
|
-
}),
|
|
175
|
+
}), Ze = {
|
|
176
176
|
size: {
|
|
177
177
|
type: [String, Number],
|
|
178
178
|
default: "1em"
|
|
179
179
|
},
|
|
180
180
|
color: String
|
|
181
181
|
};
|
|
182
|
-
function
|
|
182
|
+
function et(e) {
|
|
183
183
|
return {
|
|
184
184
|
cSize: u(() => e.size in ne ? `${ne[e.size]}px` : e.size),
|
|
185
185
|
classes: u(
|
|
@@ -187,17 +187,17 @@ function Ze(e) {
|
|
|
187
187
|
)
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const tt = W({
|
|
191
191
|
name: "QSpinner",
|
|
192
192
|
props: {
|
|
193
|
-
...
|
|
193
|
+
...Ze,
|
|
194
194
|
thickness: {
|
|
195
195
|
type: Number,
|
|
196
196
|
default: 5
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
199
|
setup(e) {
|
|
200
|
-
const { cSize: t, classes: n } =
|
|
200
|
+
const { cSize: t, classes: n } = et(e);
|
|
201
201
|
return () => p("svg", {
|
|
202
202
|
class: n.value + " q-spinner-mat",
|
|
203
203
|
width: t.value,
|
|
@@ -217,12 +217,12 @@ const et = W({
|
|
|
217
217
|
]);
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
|
-
function
|
|
220
|
+
function nt(e, t) {
|
|
221
221
|
const n = e.style;
|
|
222
222
|
for (const a in t)
|
|
223
223
|
n[a] = t[a];
|
|
224
224
|
}
|
|
225
|
-
function
|
|
225
|
+
function Gt(e) {
|
|
226
226
|
if (e == null)
|
|
227
227
|
return;
|
|
228
228
|
if (typeof e == "string")
|
|
@@ -231,11 +231,11 @@ 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
|
}
|
|
238
|
-
function
|
|
238
|
+
function Ut(e, t) {
|
|
239
239
|
if (e == null || e.contains(t) === !0)
|
|
240
240
|
return !0;
|
|
241
241
|
for (let n = e.nextElementSibling; n !== null; n = n.nextElementSibling)
|
|
@@ -265,13 +265,13 @@ try {
|
|
|
265
265
|
}
|
|
266
266
|
function Ht() {
|
|
267
267
|
}
|
|
268
|
-
function
|
|
268
|
+
function at(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]), {
|
|
270
270
|
top: e.clientY,
|
|
271
271
|
left: e.clientX
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Yt(e) {
|
|
275
275
|
if (e.path)
|
|
276
276
|
return e.path;
|
|
277
277
|
if (e.composedPath)
|
|
@@ -287,31 +287,31 @@ function Ut(e) {
|
|
|
287
287
|
function Ee(e) {
|
|
288
288
|
e.stopPropagation();
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function lt(e) {
|
|
291
291
|
e.cancelable !== !1 && e.preventDefault();
|
|
292
292
|
}
|
|
293
293
|
function D(e) {
|
|
294
294
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
295
295
|
}
|
|
296
|
-
function
|
|
296
|
+
function ot(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
299
|
o[0].addEventListener(o[1], e[o[2]], J[o[3]]);
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function rt(e, t) {
|
|
303
303
|
const n = `__q_${t}_evt`;
|
|
304
304
|
e[n] !== void 0 && (e[n].forEach((a) => {
|
|
305
305
|
a[0].removeEventListener(a[1], e[a[2]], J[a[3]]);
|
|
306
306
|
}), e[n] = void 0);
|
|
307
307
|
}
|
|
308
|
-
function
|
|
308
|
+
function it(e) {
|
|
309
309
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
310
310
|
}
|
|
311
311
|
function ae(e, t) {
|
|
312
|
-
return
|
|
312
|
+
return it(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function st(e, t = 250) {
|
|
315
315
|
let n = !1, a;
|
|
316
316
|
return function() {
|
|
317
317
|
return n === !1 && (n = !0, setTimeout(() => {
|
|
@@ -319,13 +319,13 @@ 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;
|
|
326
326
|
s = s === !0 || a === !0;
|
|
327
|
-
const r = document.createElement("span"), i = document.createElement("span"), q =
|
|
328
|
-
i.className = "q-ripple__inner",
|
|
327
|
+
const r = document.createElement("span"), i = document.createElement("span"), q = at(e), { left: k, top: f, width: _, height: l } = t.getBoundingClientRect(), v = Math.sqrt(_ * _ + l * l), m = v / 2, g = `${(_ - v) / 2}px`, d = s ? g : `${q.left - k - m}px`, h = `${(l - v) / 2}px`, w = s ? h : `${q.top - f - m}px`;
|
|
328
|
+
i.className = "q-ripple__inner", nt(i, {
|
|
329
329
|
height: `${v}px`,
|
|
330
330
|
width: `${v}px`,
|
|
331
331
|
transform: `translate3d(${d},${w},0) scale3d(.2,.2,1)`,
|
|
@@ -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
|
|
356
|
+
const ut = Fe(
|
|
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
|
-
keystart:
|
|
372
|
-
a.enabled === !0 && o.qSkipRipple !== !0 && ae(o, a.modifiers.keyCodes) === !0 && o.type === `key${a.modifiers.early === !0 ? "down" : "up"}` &&
|
|
371
|
+
keystart: st((o) => {
|
|
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, ot(a, "main", [
|
|
376
376
|
[e, "pointerdown", "start", "passive"],
|
|
377
377
|
[e, "click", "start", "passive"],
|
|
378
378
|
[e, "keydown", "keystart", "passive"],
|
|
@@ -382,14 +382,14 @@ 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) {
|
|
389
389
|
const t = e.__qripple;
|
|
390
390
|
t !== void 0 && (t.abort.forEach((n) => {
|
|
391
391
|
n();
|
|
392
|
-
}),
|
|
392
|
+
}), rt(t, "main"), delete e._qripple);
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
), Re = {
|
|
@@ -400,19 +400,19 @@ const st = Ve(
|
|
|
400
400
|
around: "around",
|
|
401
401
|
evenly: "evenly",
|
|
402
402
|
stretch: "stretch"
|
|
403
|
-
},
|
|
403
|
+
}, ct = Object.keys(Re), dt = {
|
|
404
404
|
align: {
|
|
405
405
|
type: String,
|
|
406
|
-
validator: (e) =>
|
|
406
|
+
validator: (e) => ct.includes(e)
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
|
-
function
|
|
409
|
+
function ft(e) {
|
|
410
410
|
return u(() => {
|
|
411
411
|
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
412
412
|
return `${e.vertical === !0 ? "items" : "justify"}-${Re[t]}`;
|
|
413
413
|
});
|
|
414
414
|
}
|
|
415
|
-
function
|
|
415
|
+
function Xt(e) {
|
|
416
416
|
if (Object(e.$parent) === e.$parent)
|
|
417
417
|
return e.$parent;
|
|
418
418
|
let { parent: t } = e.$;
|
|
@@ -422,19 +422,19 @@ function Yt(e) {
|
|
|
422
422
|
t = t.parent;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function vt(e) {
|
|
426
426
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Wt(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
|
-
function
|
|
437
|
+
function gt(e, t) {
|
|
438
438
|
for (const n in t) {
|
|
439
439
|
const a = t[n], o = e[n];
|
|
440
440
|
if (typeof a == "string") {
|
|
@@ -445,17 +445,17 @@ 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
|
-
function gt(e, t) {
|
|
452
|
-
return Array.isArray(e) === !0 ? me(e, t) : Array.isArray(t) === !0 ? me(t, e) : e === t;
|
|
453
|
-
}
|
|
454
451
|
function pt(e, t) {
|
|
452
|
+
return Array.isArray(e) === !0 ? he(e, t) : Array.isArray(t) === !0 ? he(t, e) : e === t;
|
|
453
|
+
}
|
|
454
|
+
function mt(e, t) {
|
|
455
455
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
456
456
|
return !1;
|
|
457
457
|
for (const n in e)
|
|
458
|
-
if (
|
|
458
|
+
if (pt(e[n], t[n]) === !1)
|
|
459
459
|
return !1;
|
|
460
460
|
return !0;
|
|
461
461
|
}
|
|
@@ -468,7 +468,7 @@ const Me = {
|
|
|
468
468
|
target: String,
|
|
469
469
|
// state
|
|
470
470
|
disable: Boolean
|
|
471
|
-
},
|
|
471
|
+
}, Jt = {
|
|
472
472
|
...Me,
|
|
473
473
|
// router-link
|
|
474
474
|
exact: Boolean,
|
|
@@ -481,8 +481,8 @@ const Me = {
|
|
|
481
481
|
default: "q-router-link--exact-active"
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
|
-
function
|
|
485
|
-
const n = X(), { props: a, proxy: o, emit: s } = n, r =
|
|
484
|
+
function ht({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
485
|
+
const n = X(), { props: a, proxy: o, emit: s } = n, r = vt(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,21 +502,21 @@ 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(
|
|
517
|
-
() => f.value === !0 && m.value !== -1 &&
|
|
517
|
+
() => f.value === !0 && m.value !== -1 && gt(o.$route.params, k.value.params)
|
|
518
518
|
), d = u(
|
|
519
|
-
() => g.value === !0 && m.value === o.$route.matched.length - 1 &&
|
|
519
|
+
() => g.value === !0 && m.value === o.$route.matched.length - 1 && mt(o.$route.params, k.value.params)
|
|
520
520
|
), h = u(() => f.value === !0 ? d.value === !0 ? ` ${a.exactActiveClass} ${a.activeClass}` : a.exact === !0 ? "" : g.value === !0 ? ` ${a.activeClass}` : "" : "");
|
|
521
521
|
function w(b) {
|
|
522
522
|
try {
|
|
@@ -562,29 +562,29 @@ 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,
|
|
569
569
|
md: 16,
|
|
570
570
|
lg: 24,
|
|
571
571
|
xl: 32
|
|
572
|
-
},
|
|
572
|
+
}, bt = {
|
|
573
573
|
xs: 8,
|
|
574
574
|
sm: 10,
|
|
575
575
|
md: 14,
|
|
576
576
|
lg: 20,
|
|
577
577
|
xl: 24
|
|
578
|
-
},
|
|
578
|
+
}, yt = ["button", "submit", "reset"], kt = /[^\s]\/[^\s]/, _t = ["flat", "outline", "push", "unelevated"];
|
|
579
579
|
function Pe(e, t) {
|
|
580
580
|
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
|
|
581
581
|
}
|
|
582
|
-
function
|
|
582
|
+
function Zt(e) {
|
|
583
583
|
const t = Pe(e);
|
|
584
584
|
return t !== void 0 ? { [t]: !0 } : {};
|
|
585
585
|
}
|
|
586
|
-
const
|
|
587
|
-
...
|
|
586
|
+
const $t = {
|
|
587
|
+
...re,
|
|
588
588
|
...Me,
|
|
589
589
|
type: {
|
|
590
590
|
type: String,
|
|
@@ -593,7 +593,7 @@ const _t = {
|
|
|
593
593
|
label: [Number, String],
|
|
594
594
|
icon: String,
|
|
595
595
|
iconRight: String,
|
|
596
|
-
...
|
|
596
|
+
..._t.reduce(
|
|
597
597
|
(e, t) => (e[t] = Boolean) && e,
|
|
598
598
|
{}
|
|
599
599
|
),
|
|
@@ -615,7 +615,7 @@ const _t = {
|
|
|
615
615
|
default: !0
|
|
616
616
|
},
|
|
617
617
|
align: {
|
|
618
|
-
...
|
|
618
|
+
...dt.align,
|
|
619
619
|
default: "center"
|
|
620
620
|
},
|
|
621
621
|
stack: Boolean,
|
|
@@ -625,17 +625,17 @@ const _t = {
|
|
|
625
625
|
default: null
|
|
626
626
|
},
|
|
627
627
|
disable: Boolean
|
|
628
|
-
},
|
|
629
|
-
|
|
628
|
+
}, qt = {
|
|
629
|
+
...$t,
|
|
630
630
|
round: Boolean
|
|
631
631
|
};
|
|
632
|
-
function
|
|
633
|
-
const t =
|
|
632
|
+
function St(e) {
|
|
633
|
+
const t = ie(e, bt), n = ft(e), { hasRouterLink: a, hasLink: o, linkTag: s, linkAttrs: r, navigateOnClick: i } = ht({
|
|
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;
|
|
@@ -645,7 +645,7 @@ function qt(e) {
|
|
|
645
645
|
() => e.disable !== !0 && e.loading !== !0
|
|
646
646
|
), _ = u(() => f.value === !0 ? e.tabindex || 0 : -1), l = u(() => Pe(e, "standard")), v = u(() => {
|
|
647
647
|
const d = { tabindex: _.value };
|
|
648
|
-
return o.value === !0 ? Object.assign(d, r.value) :
|
|
648
|
+
return o.value === !0 ? Object.assign(d, r.value) : yt.includes(e.type) === !0 && (d.type = e.type), s.value === "a" ? (e.disable === !0 ? d["aria-disabled"] = "true" : d.href === void 0 && (d.role = "button"), a.value !== !0 && kt.test(e.type) === !0 && (d.type = e.type)) : e.disable === !0 && (d.disabled = "", d["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(d, {
|
|
649
649
|
role: "progressbar",
|
|
650
650
|
"aria-valuemin": 0,
|
|
651
651
|
"aria-valuemax": 100,
|
|
@@ -672,10 +672,10 @@ function qt(e) {
|
|
|
672
672
|
}
|
|
673
673
|
const { passiveCapture: L } = J;
|
|
674
674
|
let x = null, j = null, I = null;
|
|
675
|
-
const
|
|
675
|
+
const wt = W({
|
|
676
676
|
name: "QBtn",
|
|
677
677
|
props: {
|
|
678
|
-
|
|
678
|
+
...qt,
|
|
679
679
|
percentage: Number,
|
|
680
680
|
darkPercentage: Boolean,
|
|
681
681
|
onTouchstart: [Function, Array]
|
|
@@ -691,7 +691,7 @@ const St = W({
|
|
|
691
691
|
linkTag: k,
|
|
692
692
|
navigateOnClick: f,
|
|
693
693
|
isActionable: _
|
|
694
|
-
} =
|
|
694
|
+
} = St(e), l = te(null), v = te(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,47 +741,47 @@ 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)) {
|
|
766
766
|
if (c !== void 0 && c.type === "keyup") {
|
|
767
767
|
if (j === l.value && ae(c, [13, 32]) === !0) {
|
|
768
768
|
const y = new MouseEvent("click", c);
|
|
769
|
-
y.qKeyEvent = !0, c.defaultPrevented === !0 &&
|
|
769
|
+
y.qKeyEvent = !0, c.defaultPrevented === !0 && lt(y), c.cancelBubble === !0 && Ee(y), l.value.dispatchEvent(y), D(c), c.qKeyEvent = !0;
|
|
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"
|
|
@@ -829,16 +829,16 @@ const St = W({
|
|
|
829
829
|
p("span", {
|
|
830
830
|
key: "loading",
|
|
831
831
|
class: "absolute-full flex flex-center"
|
|
832
|
-
}, t.loading !== void 0 ? t.loading() : [p(
|
|
832
|
+
}, t.loading !== void 0 ? t.loading() : [p(tt)])
|
|
833
833
|
] : null)
|
|
834
|
-
),
|
|
834
|
+
), le(
|
|
835
835
|
p(
|
|
836
836
|
k.value,
|
|
837
837
|
C.value,
|
|
838
838
|
y
|
|
839
839
|
),
|
|
840
840
|
[[
|
|
841
|
-
|
|
841
|
+
ut,
|
|
842
842
|
w.value,
|
|
843
843
|
void 0,
|
|
844
844
|
M.value
|
|
@@ -846,7 +846,7 @@ const St = W({
|
|
|
846
846
|
);
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
}),
|
|
849
|
+
}), Bt = /* @__PURE__ */ Q({
|
|
850
850
|
__name: "AppButton",
|
|
851
851
|
props: {
|
|
852
852
|
size: { default: $.MD },
|
|
@@ -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(wt), {
|
|
889
889
|
"no-caps": "",
|
|
890
890
|
unelevated: "",
|
|
891
891
|
class: A(n.value),
|
|
892
|
-
padding:
|
|
892
|
+
padding: H(Ke)[a.size || H($).MD],
|
|
893
893
|
loading: a.loading,
|
|
894
894
|
disable: a.disabled || void 0,
|
|
895
895
|
to: a.to,
|
|
@@ -932,13 +932,13 @@ const St = W({
|
|
|
932
932
|
for (const [a, o] of t)
|
|
933
933
|
n[a] = o;
|
|
934
934
|
return n;
|
|
935
|
-
},
|
|
935
|
+
}, en = /* @__PURE__ */ Z(Bt, [["__scopeId", "data-v-99788ad1"]]), Ct = {
|
|
936
936
|
key: 0,
|
|
937
937
|
class: "app-toggle__label app-toggle__label_left"
|
|
938
|
-
},
|
|
938
|
+
}, Lt = { class: "app-toggle__container" }, Et = ["checked", "disabled"], Rt = { class: "app-toggle__thumb" }, Mt = {
|
|
939
939
|
key: 1,
|
|
940
940
|
class: "app-toggle__label"
|
|
941
|
-
},
|
|
941
|
+
}, Pt = /* @__PURE__ */ Q({
|
|
942
942
|
__name: "AppToggle",
|
|
943
943
|
props: {
|
|
944
944
|
modelValue: { type: Boolean },
|
|
@@ -972,19 +972,19 @@ 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",
|
|
976
|
-
F("label",
|
|
975
|
+
r.label && r.labelLeft ? (S(), B("span", Ct, Y(r.label), 1)) : z("", !0),
|
|
976
|
+
F("label", Lt, [
|
|
977
977
|
F("input", {
|
|
978
978
|
type: "checkbox",
|
|
979
979
|
checked: o.value,
|
|
980
980
|
onChange: i[0] || (i[0] = (q) => o.value = !o.value),
|
|
981
981
|
disabled: r.disabled,
|
|
982
982
|
class: "app-toggle__input"
|
|
983
|
-
}, null, 40,
|
|
983
|
+
}, null, 40, Et),
|
|
984
984
|
F("span", {
|
|
985
985
|
class: A(["app-toggle__slider", o.value ? `bg-${r.color}` : ""])
|
|
986
986
|
}, [
|
|
987
|
-
F("span",
|
|
987
|
+
F("span", Rt, [
|
|
988
988
|
r.icon && !r.modelValue ? (S(), B("i", {
|
|
989
989
|
key: 0,
|
|
990
990
|
class: A(["icon-kl", `icon-kl-${r.icon}`, "app-toggle__icon"])
|
|
@@ -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",
|
|
1005
|
+
r.label && !r.labelLeft ? (S(), B("span", Mt, Y(r.label), 1)) : z("", !0)
|
|
1006
1006
|
], 2));
|
|
1007
1007
|
}
|
|
1008
|
-
}),
|
|
1008
|
+
}), tn = /* @__PURE__ */ Z(Pt, [["__scopeId", "data-v-e0e56123"]]), At = /* @__PURE__ */ Q({
|
|
1009
1009
|
__name: "AppIcon",
|
|
1010
1010
|
props: {
|
|
1011
1011
|
name: {},
|
|
@@ -1018,32 +1018,32 @@ const St = W({
|
|
|
1018
1018
|
style: Se(t.size ? `font-size: ${t.size}` : void 0)
|
|
1019
1019
|
}, null, 6));
|
|
1020
1020
|
}
|
|
1021
|
-
}),
|
|
1021
|
+
}), nn = /* @__PURE__ */ Z(At, [["__scopeId", "data-v-941765ee"]]), zt = {
|
|
1022
1022
|
dark: {
|
|
1023
1023
|
type: Boolean,
|
|
1024
1024
|
default: null
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
1027
|
-
function
|
|
1027
|
+
function Tt(e, t) {
|
|
1028
1028
|
return u(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
1029
1029
|
}
|
|
1030
|
-
const
|
|
1030
|
+
const Ot = {
|
|
1031
1031
|
xs: 2,
|
|
1032
1032
|
sm: 4,
|
|
1033
1033
|
md: 6,
|
|
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
|
|
1042
|
+
const Dt = W({
|
|
1043
1043
|
name: "QLinearProgress",
|
|
1044
1044
|
props: {
|
|
1045
|
-
...
|
|
1046
|
-
...
|
|
1045
|
+
...zt,
|
|
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 } = X(), a =
|
|
1066
|
+
const { proxy: n } = X(), a = Tt(e, n.$q), o = ie(e, Ot), 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
|
+
}), xt = {
|
|
1105
1105
|
key: 0,
|
|
1106
1106
|
class: "code-field__label"
|
|
1107
|
-
},
|
|
1107
|
+
}, jt = { class: "code-field__inputs" }, It = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], Vt = /* @__PURE__ */ Q({
|
|
1108
1108
|
__name: "AppCodeInput",
|
|
1109
1109
|
props: {
|
|
1110
1110
|
length: { default: 5 },
|
|
@@ -1131,21 +1131,21 @@ const Ot = W({
|
|
|
1131
1131
|
return n.size == $.SM && (l += `width: ${n.length * 26 + (n.length - 1) * 5}px`), n.size == $.MD && (l += `width: ${n.length * 32 + (n.length - 1) * 8}px`), n.size == $.LG && (l += `width: ${n.length * 44 + (n.length - 1) * 10}px`), l;
|
|
1132
1132
|
}), q = (l, v) => {
|
|
1133
1133
|
var d;
|
|
1134
|
-
const
|
|
1134
|
+
const m = l.target, g = m.value;
|
|
1135
1135
|
if (g.length === 1)
|
|
1136
|
-
|
|
1136
|
+
console.log("input", m.value), 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,15 +1154,19 @@ 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
|
-
xe(
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1162
|
+
xe(
|
|
1163
|
+
o,
|
|
1164
|
+
(l) => {
|
|
1165
|
+
const v = l.join("");
|
|
1166
|
+
_(v);
|
|
1167
|
+
},
|
|
1168
|
+
{ deep: !0 }
|
|
1169
|
+
);
|
|
1166
1170
|
const _ = (l) => {
|
|
1167
1171
|
a("update:modelValue", l), l.length === n.length && !l.includes(" ") && a("completed", l);
|
|
1168
1172
|
};
|
|
@@ -1172,11 +1176,11 @@ const Ot = W({
|
|
|
1172
1176
|
class: A(r.value),
|
|
1173
1177
|
style: Se(i.value)
|
|
1174
1178
|
}, [
|
|
1175
|
-
l.label ? (S(), B("label",
|
|
1176
|
-
F("div",
|
|
1177
|
-
(S(!0), B(qe, null, Ie(l.length, (m, g) => (S(), B("input", {
|
|
1179
|
+
l.label ? (S(), B("label", xt, Y(l.label), 1)) : z("", !0),
|
|
1180
|
+
F("div", jt, [
|
|
1181
|
+
(S(!0), B(qe, null, Ie(l.length, (m, g) => le((S(), B("input", {
|
|
1178
1182
|
key: g,
|
|
1179
|
-
|
|
1183
|
+
"onUpdate:modelValue": (d) => o.value[g] = d,
|
|
1180
1184
|
ref_for: !0,
|
|
1181
1185
|
ref_key: "inputRefs",
|
|
1182
1186
|
ref: s,
|
|
@@ -1185,11 +1189,13 @@ const Ot = W({
|
|
|
1185
1189
|
class: "code-field__input",
|
|
1186
1190
|
disabled: l.disabled || l.loading,
|
|
1187
1191
|
onInput: (d) => q(d, g),
|
|
1188
|
-
onKeydown:
|
|
1192
|
+
onKeydown: Ve((d) => k(g), ["backspace"]),
|
|
1189
1193
|
onPaste: (d) => f(d, g)
|
|
1190
|
-
}, null, 40,
|
|
1194
|
+
}, null, 40, It)), [
|
|
1195
|
+
[Ne, o.value[g]]
|
|
1196
|
+
])), 128))
|
|
1191
1197
|
]),
|
|
1192
|
-
l.loading ? (S(), _e(
|
|
1198
|
+
l.loading ? (S(), _e(Dt, {
|
|
1193
1199
|
key: 1,
|
|
1194
1200
|
indeterminate: "",
|
|
1195
1201
|
rounded: "",
|
|
@@ -1198,57 +1204,57 @@ const Ot = W({
|
|
|
1198
1204
|
}, null, 8, ["color"])) : z("", !0)
|
|
1199
1205
|
], 6));
|
|
1200
1206
|
}
|
|
1201
|
-
}),
|
|
1202
|
-
() => import("./AppButtonCopy-
|
|
1203
|
-
),
|
|
1204
|
-
() => import("./AppSelect-
|
|
1205
|
-
),
|
|
1206
|
-
() => import("./DropdownButton-
|
|
1207
|
+
}), an = /* @__PURE__ */ Z(Vt, [["__scopeId", "data-v-b7363163"]]), ln = oe(
|
|
1208
|
+
() => import("./AppButtonCopy-DVw7F15T.js")
|
|
1209
|
+
), on = oe(
|
|
1210
|
+
() => import("./AppSelect-GSRA0lfd.js")
|
|
1211
|
+
), rn = oe(
|
|
1212
|
+
() => import("./DropdownButton-DuQ2poIa.js")
|
|
1207
1213
|
);
|
|
1208
1214
|
export {
|
|
1209
|
-
|
|
1210
|
-
|
|
1215
|
+
en as A,
|
|
1216
|
+
rt as B,
|
|
1211
1217
|
we as C,
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1218
|
+
vt as D,
|
|
1219
|
+
Xt as E,
|
|
1220
|
+
Wt as F,
|
|
1221
|
+
Gt as G,
|
|
1222
|
+
nt as H,
|
|
1223
|
+
at as I,
|
|
1224
|
+
rn as J,
|
|
1225
|
+
ln as K,
|
|
1226
|
+
on as L,
|
|
1227
|
+
an as M,
|
|
1228
|
+
tn as N,
|
|
1229
|
+
nn as O,
|
|
1230
|
+
fe as Q,
|
|
1231
|
+
ut as R,
|
|
1226
1232
|
$ as S,
|
|
1227
1233
|
Z as _,
|
|
1228
|
-
|
|
1229
|
-
|
|
1234
|
+
ie as a,
|
|
1235
|
+
V as b,
|
|
1230
1236
|
W as c,
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1237
|
+
re as d,
|
|
1238
|
+
zt as e,
|
|
1239
|
+
ht as f,
|
|
1234
1240
|
Kt as g,
|
|
1235
|
-
|
|
1241
|
+
Qe as h,
|
|
1236
1242
|
ae as i,
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1243
|
+
Jt as j,
|
|
1244
|
+
tt as k,
|
|
1245
|
+
Qt as l,
|
|
1246
|
+
Ft as m,
|
|
1241
1247
|
J as n,
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1248
|
+
Yt as o,
|
|
1249
|
+
lt as p,
|
|
1250
|
+
Ut as q,
|
|
1245
1251
|
Ht as r,
|
|
1246
1252
|
D as s,
|
|
1247
1253
|
Ee as t,
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
+
Tt as u,
|
|
1255
|
+
it as v,
|
|
1256
|
+
Zt as w,
|
|
1257
|
+
$t as x,
|
|
1258
|
+
wt as y,
|
|
1259
|
+
ot as z
|
|
1254
1260
|
};
|