@validol4ik/uikit 0.4.12 → 0.5.1
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-3Fzy0yAC.cjs → AppButtonCopy-4GxKBcWx.cjs} +1 -1
- package/dist/{AppButtonCopy-C0dCS9kH.js → AppButtonCopy-CcsAzDik.js} +1 -1
- package/dist/{AppSelect-CJ7lepXJ.js → AppSelect-BtUUK2ea.js} +2 -2
- package/dist/{AppSelect-ClkN4yqF.cjs → AppSelect-Tg7_Uj55.cjs} +1 -1
- package/dist/{DropdownButton-BRrrSH-F.js → DropdownButton-CZwBMGcA.js} +128 -123
- package/dist/DropdownButton-DXQzSYcl.cjs +1 -0
- package/dist/{QMenu-C3VTu7VM.js → QMenu-P1hqLpnc.js} +1 -1
- package/dist/{QMenu-hqXaPOL1.cjs → QMenu-cWjMyOHy.cjs} +1 -1
- package/dist/index-CNCrt1w6.cjs +1 -0
- package/dist/{index-B71Odafx.js → index-CtoDgaeS.js} +419 -415
- package/dist/style.css +1 -1
- package/dist/types/components/buttons/DropdownButton/DropdownButton.vue.d.ts +8 -2
- package/dist/types/components/buttons/DropdownButton/types.d.ts +1 -1
- package/dist/types/components/form/AppCodeInput/AppCodeInput.vue.d.ts +3 -1
- package/dist/types/index.d.ts +18 -3
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +1 -1
- package/dist/DropdownButton-DDKnFeJV.cjs +0 -1
- package/dist/index-fyO-JsmM.cjs +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { computed as
|
|
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
2
|
const we = {
|
|
3
3
|
PRIMARY: "primary",
|
|
4
4
|
INFO: "info"
|
|
@@ -20,7 +20,7 @@ const we = {
|
|
|
20
20
|
size: String
|
|
21
21
|
};
|
|
22
22
|
function ie(e, t = ne) {
|
|
23
|
-
return
|
|
23
|
+
return s(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
24
24
|
}
|
|
25
25
|
function J(e) {
|
|
26
26
|
return ke(Q(e));
|
|
@@ -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,10 +45,10 @@ 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
|
|
51
|
-
return o === !0 ? le(
|
|
48
|
+
function Ft(e, t, a, n, o, d) {
|
|
49
|
+
t.key = n + o;
|
|
50
|
+
const l = m(e, t, a);
|
|
51
|
+
return o === !0 ? le(l, d()) : l;
|
|
52
52
|
}
|
|
53
53
|
const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
54
54
|
"mdi-": (e) => `mdi ${e}`,
|
|
@@ -84,17 +84,17 @@ const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
|
84
84
|
right: Boolean
|
|
85
85
|
},
|
|
86
86
|
setup(e, { slots: t }) {
|
|
87
|
-
const { proxy: { $q:
|
|
87
|
+
const { proxy: { $q: 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
|
-
),
|
|
90
|
-
let
|
|
91
|
-
if (
|
|
89
|
+
), d = s(() => {
|
|
90
|
+
let l, r = e.name;
|
|
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
|
-
if (
|
|
97
|
+
if (r = f.icon, r === "none" || !r)
|
|
98
98
|
return { none: !0 };
|
|
99
99
|
} else
|
|
100
100
|
return {
|
|
@@ -102,73 +102,73 @@ const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
|
102
102
|
content: f.content !== void 0 ? f.content : " "
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
if (Ue.test(
|
|
106
|
-
const [f,
|
|
105
|
+
if (Ue.test(r) === !0) {
|
|
106
|
+
const [f, k = ue] = r.split("|");
|
|
107
107
|
return {
|
|
108
108
|
svg: !0,
|
|
109
|
-
viewBox:
|
|
110
|
-
nodes: f.split("&&").map((
|
|
111
|
-
const [
|
|
112
|
-
return
|
|
109
|
+
viewBox: k,
|
|
110
|
+
nodes: f.split("&&").map((u) => {
|
|
111
|
+
const [q, i, g] = u.split("@@");
|
|
112
|
+
return m("path", { style: i, d: q, transform: g });
|
|
113
113
|
})
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
if (He.test(
|
|
116
|
+
if (He.test(r) === !0)
|
|
117
117
|
return {
|
|
118
118
|
img: !0,
|
|
119
|
-
src:
|
|
119
|
+
src: r.substring(4)
|
|
120
120
|
};
|
|
121
|
-
if (Ye.test(
|
|
122
|
-
const [f,
|
|
121
|
+
if (Ye.test(r) === !0) {
|
|
122
|
+
const [f, k = ue] = r.split("|");
|
|
123
123
|
return {
|
|
124
124
|
svguse: !0,
|
|
125
125
|
src: f.substring(7),
|
|
126
|
-
viewBox:
|
|
126
|
+
viewBox: k
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
|
-
let
|
|
130
|
-
const
|
|
131
|
-
if (
|
|
132
|
-
|
|
133
|
-
else if (We.test(
|
|
134
|
-
|
|
135
|
-
else if (Xe.test(
|
|
136
|
-
|
|
137
|
-
else if (de.test(
|
|
138
|
-
|
|
139
|
-
const f =
|
|
140
|
-
f !== null && (
|
|
129
|
+
let S = " ";
|
|
130
|
+
const y = r.match(Qe);
|
|
131
|
+
if (y !== null)
|
|
132
|
+
l = Be[y[1]](r);
|
|
133
|
+
else if (We.test(r) === !0)
|
|
134
|
+
l = r;
|
|
135
|
+
else if (Xe.test(r) === !0)
|
|
136
|
+
l = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${r.substring(3)}`;
|
|
137
|
+
else if (de.test(r) === !0) {
|
|
138
|
+
l = "notranslate material-symbols";
|
|
139
|
+
const f = r.match(de);
|
|
140
|
+
f !== null && (r = r.substring(6), l += Le[f[1]]), S = r;
|
|
141
141
|
} else {
|
|
142
|
-
|
|
143
|
-
const f =
|
|
144
|
-
f !== null && (
|
|
142
|
+
l = "notranslate material-icons";
|
|
143
|
+
const f = r.match(Ge);
|
|
144
|
+
f !== null && (r = r.substring(2), l += Ce[f[1]]), S = r;
|
|
145
145
|
}
|
|
146
146
|
return {
|
|
147
|
-
cls:
|
|
148
|
-
content:
|
|
147
|
+
cls: l,
|
|
148
|
+
content: S
|
|
149
149
|
};
|
|
150
150
|
});
|
|
151
151
|
return () => {
|
|
152
|
-
const
|
|
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
|
};
|
|
158
|
-
return
|
|
159
|
-
|
|
160
|
-
])) :
|
|
161
|
-
|
|
162
|
-
viewBox:
|
|
163
|
-
},
|
|
164
|
-
])) :
|
|
165
|
-
|
|
166
|
-
viewBox:
|
|
158
|
+
return d.value.none === !0 ? m(e.tag, l, Fe(t.default)) : d.value.img === !0 ? m(e.tag, l, V(t.default, [
|
|
159
|
+
m("img", { src: d.value.src })
|
|
160
|
+
])) : d.value.svg === !0 ? m(e.tag, l, V(t.default, [
|
|
161
|
+
m("svg", {
|
|
162
|
+
viewBox: d.value.viewBox || "0 0 24 24"
|
|
163
|
+
}, d.value.nodes)
|
|
164
|
+
])) : d.value.svguse === !0 ? m(e.tag, l, V(t.default, [
|
|
165
|
+
m("svg", {
|
|
166
|
+
viewBox: d.value.viewBox
|
|
167
167
|
}, [
|
|
168
|
-
|
|
168
|
+
m("use", { "xlink:href": d.value.src })
|
|
169
169
|
])
|
|
170
|
-
])) : (
|
|
171
|
-
|
|
170
|
+
])) : (d.value.cls !== void 0 && (l.class += " " + d.value.cls), m(e.tag, l, V(t.default, [
|
|
171
|
+
d.value.content
|
|
172
172
|
])));
|
|
173
173
|
};
|
|
174
174
|
}
|
|
@@ -181,8 +181,8 @@ const ue = "0 0 24 24", ce = (e) => e, te = (e) => `ionicons ${e}`, Be = {
|
|
|
181
181
|
};
|
|
182
182
|
function Ze(e) {
|
|
183
183
|
return {
|
|
184
|
-
cSize:
|
|
185
|
-
classes:
|
|
184
|
+
cSize: s(() => e.size in ne ? `${ne[e.size]}px` : e.size),
|
|
185
|
+
classes: s(
|
|
186
186
|
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
187
187
|
)
|
|
188
188
|
};
|
|
@@ -197,14 +197,14 @@ const et = J({
|
|
|
197
197
|
}
|
|
198
198
|
},
|
|
199
199
|
setup(e) {
|
|
200
|
-
const { cSize: t, classes:
|
|
201
|
-
return () =>
|
|
202
|
-
class:
|
|
200
|
+
const { cSize: t, classes: a } = Ze(e);
|
|
201
|
+
return () => m("svg", {
|
|
202
|
+
class: a.value + " q-spinner-mat",
|
|
203
203
|
width: t.value,
|
|
204
204
|
height: t.value,
|
|
205
205
|
viewBox: "25 25 50 50"
|
|
206
206
|
}, [
|
|
207
|
-
|
|
207
|
+
m("circle", {
|
|
208
208
|
class: "path",
|
|
209
209
|
cx: "50",
|
|
210
210
|
cy: "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,44 +312,44 @@ 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
|
|
326
|
-
|
|
327
|
-
const
|
|
328
|
-
|
|
329
|
-
height: `${
|
|
330
|
-
width: `${
|
|
331
|
-
transform: `translate3d(${
|
|
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
|
+
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
|
+
r.className = "q-ripple__inner", tt(r, {
|
|
329
|
+
height: `${q}px`,
|
|
330
|
+
width: `${q}px`,
|
|
331
|
+
transform: `translate3d(${v},${_},0) scale3d(.2,.2,1)`,
|
|
332
332
|
opacity: 0
|
|
333
|
-
}),
|
|
334
|
-
const
|
|
335
|
-
|
|
333
|
+
}), l.className = `q-ripple${o ? " text-" + o : ""}`, l.setAttribute("dir", "ltr"), l.appendChild(r), t.appendChild(l);
|
|
334
|
+
const w = () => {
|
|
335
|
+
l.remove(), clearTimeout(C);
|
|
336
336
|
};
|
|
337
|
-
|
|
338
|
-
let
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
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
|
}
|
|
@@ -407,7 +407,7 @@ const st = Ke(
|
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
function dt(e) {
|
|
410
|
-
return
|
|
410
|
+
return s(() => {
|
|
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
|
});
|
|
@@ -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,84 +482,84 @@ const Me = {
|
|
|
482
482
|
}
|
|
483
483
|
};
|
|
484
484
|
function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
485
|
-
const
|
|
486
|
-
() =>
|
|
487
|
-
) :
|
|
488
|
-
() =>
|
|
489
|
-
),
|
|
490
|
-
href:
|
|
491
|
-
target:
|
|
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
|
+
) : s(
|
|
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
|
-
href:
|
|
494
|
-
target:
|
|
495
|
-
} : {}),
|
|
493
|
+
href: y.value.href,
|
|
494
|
+
target: n.target
|
|
495
|
+
} : {}), i = s(() => {
|
|
496
496
|
if (f.value === !1)
|
|
497
497
|
return -1;
|
|
498
|
-
const { matched:
|
|
499
|
-
if (
|
|
498
|
+
const { matched: h } = y.value, { length: E } = h, M = h[E - 1];
|
|
499
|
+
if (M === void 0)
|
|
500
500
|
return -1;
|
|
501
|
-
const
|
|
502
|
-
if (
|
|
501
|
+
const A = o.$route.matched;
|
|
502
|
+
if (A.length === 0)
|
|
503
503
|
return -1;
|
|
504
|
-
const
|
|
505
|
-
me.bind(null,
|
|
504
|
+
const O = A.findIndex(
|
|
505
|
+
me.bind(null, M)
|
|
506
506
|
);
|
|
507
|
-
if (
|
|
508
|
-
return
|
|
509
|
-
const G = pe(
|
|
507
|
+
if (O !== -1)
|
|
508
|
+
return O;
|
|
509
|
+
const G = pe(h[E - 2]);
|
|
510
510
|
return (
|
|
511
511
|
// we are dealing with nested routes
|
|
512
|
-
|
|
513
|
-
me.bind(null,
|
|
514
|
-
) :
|
|
512
|
+
E > 1 && pe(M) === G && A[A.length - 1].path !== G ? A.findIndex(
|
|
513
|
+
me.bind(null, h[E - 2])
|
|
514
|
+
) : O
|
|
515
515
|
);
|
|
516
|
-
}), g =
|
|
517
|
-
() => f.value === !0 &&
|
|
518
|
-
),
|
|
519
|
-
() => g.value === !0 &&
|
|
520
|
-
),
|
|
521
|
-
function
|
|
516
|
+
}), g = s(
|
|
517
|
+
() => f.value === !0 && i.value !== -1 && vt(o.$route.params, y.value.params)
|
|
518
|
+
), v = s(
|
|
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 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : g.value === !0 ? ` ${n.activeClass}` : "" : "");
|
|
521
|
+
function _(h) {
|
|
522
522
|
try {
|
|
523
|
-
return o.$router.resolve(
|
|
523
|
+
return o.$router.resolve(h);
|
|
524
524
|
} catch {
|
|
525
525
|
}
|
|
526
526
|
return null;
|
|
527
527
|
}
|
|
528
|
-
function
|
|
529
|
-
if (
|
|
530
|
-
return
|
|
528
|
+
function w(h, { returnRouterError: E, to: M = n.to, replace: A = n.replace } = {}) {
|
|
529
|
+
if (n.disable === !0)
|
|
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
|
-
|
|
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
|
-
|
|
538
|
-
const
|
|
539
|
-
return
|
|
537
|
+
h.preventDefault();
|
|
538
|
+
const O = o.$router[A === !0 ? "replace" : "push"](M);
|
|
539
|
+
return E === !0 ? O : O.then(() => {
|
|
540
540
|
}).catch(() => {
|
|
541
541
|
});
|
|
542
542
|
}
|
|
543
|
-
function
|
|
543
|
+
function C(h) {
|
|
544
544
|
if (f.value === !0) {
|
|
545
|
-
const
|
|
546
|
-
|
|
545
|
+
const E = (M) => w(h, M);
|
|
546
|
+
d("click", h, E), h.defaultPrevented !== !0 && E();
|
|
547
547
|
} else
|
|
548
|
-
|
|
548
|
+
d("click", h);
|
|
549
549
|
}
|
|
550
550
|
return {
|
|
551
551
|
hasRouterLink: f,
|
|
552
|
-
hasHrefLink:
|
|
553
|
-
hasLink:
|
|
554
|
-
linkTag:
|
|
555
|
-
resolvedLink:
|
|
552
|
+
hasHrefLink: r,
|
|
553
|
+
hasLink: k,
|
|
554
|
+
linkTag: u,
|
|
555
|
+
resolvedLink: y,
|
|
556
556
|
linkIsActive: g,
|
|
557
|
-
linkIsExactActive:
|
|
558
|
-
linkClass:
|
|
559
|
-
linkAttrs:
|
|
560
|
-
getLink:
|
|
561
|
-
navigateToRouterLink:
|
|
562
|
-
navigateOnClick:
|
|
557
|
+
linkIsExactActive: v,
|
|
558
|
+
linkClass: p,
|
|
559
|
+
linkAttrs: q,
|
|
560
|
+
getLink: _,
|
|
561
|
+
navigateToRouterLink: w,
|
|
562
|
+
navigateOnClick: C
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
565
|
const be = {
|
|
@@ -630,47 +630,47 @@ 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
|
-
}),
|
|
636
|
-
const
|
|
637
|
-
return e.padding !== void 0 ? Object.assign({},
|
|
638
|
-
padding: e.padding.split(/\s+/).map((
|
|
635
|
+
}), S = s(() => {
|
|
636
|
+
const v = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
637
|
+
return e.padding !== void 0 ? Object.assign({}, v, {
|
|
638
|
+
padding: e.padding.split(/\s+/).map((p) => p in be ? be[p] + "px" : p).join(" "),
|
|
639
639
|
minWidth: "0",
|
|
640
640
|
minHeight: "0"
|
|
641
|
-
}) :
|
|
642
|
-
}),
|
|
641
|
+
}) : v;
|
|
642
|
+
}), y = s(
|
|
643
643
|
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
644
|
-
), f =
|
|
644
|
+
), f = s(
|
|
645
645
|
() => e.disable !== !0 && e.loading !== !0
|
|
646
|
-
),
|
|
647
|
-
const
|
|
648
|
-
return o.value === !0 ? Object.assign(
|
|
646
|
+
), k = s(() => f.value === !0 ? e.tabindex || 0 : -1), u = s(() => Pe(e, "standard")), q = s(() => {
|
|
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"), 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,
|
|
652
652
|
"aria-valuenow": e.percentage
|
|
653
|
-
}),
|
|
654
|
-
}),
|
|
655
|
-
let
|
|
656
|
-
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ?
|
|
657
|
-
const
|
|
658
|
-
return `q-btn--${
|
|
659
|
-
}), g =
|
|
660
|
-
() =>
|
|
653
|
+
}), v;
|
|
654
|
+
}), i = s(() => {
|
|
655
|
+
let v;
|
|
656
|
+
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? v = `text-${e.textColor || e.color}` : v = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (v = `text-${e.textColor}`);
|
|
657
|
+
const p = e.round === !0 ? "round" : `rectangle${y.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
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
|
+
}), g = s(
|
|
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
|
-
classes:
|
|
664
|
-
style:
|
|
663
|
+
classes: i,
|
|
664
|
+
style: S,
|
|
665
665
|
innerClasses: g,
|
|
666
|
-
attributes:
|
|
666
|
+
attributes: q,
|
|
667
667
|
hasLink: o,
|
|
668
|
-
linkTag:
|
|
669
|
-
navigateOnClick:
|
|
668
|
+
linkTag: d,
|
|
669
|
+
navigateOnClick: r,
|
|
670
670
|
isActionable: f
|
|
671
671
|
};
|
|
672
672
|
}
|
|
673
|
-
const { passiveCapture:
|
|
673
|
+
const { passiveCapture: R } = Z;
|
|
674
674
|
let x = null, j = null, I = null;
|
|
675
675
|
const St = J({
|
|
676
676
|
name: "QBtn",
|
|
@@ -681,27 +681,27 @@ 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
|
-
style:
|
|
688
|
-
innerClasses:
|
|
689
|
-
attributes:
|
|
690
|
-
hasLink:
|
|
691
|
-
linkTag:
|
|
687
|
+
style: d,
|
|
688
|
+
innerClasses: l,
|
|
689
|
+
attributes: r,
|
|
690
|
+
hasLink: S,
|
|
691
|
+
linkTag: y,
|
|
692
692
|
navigateOnClick: f,
|
|
693
|
-
isActionable:
|
|
694
|
-
} = qt(e),
|
|
695
|
-
let
|
|
696
|
-
const
|
|
693
|
+
isActionable: k
|
|
694
|
+
} = qt(e), u = Y(null), q = Y(null);
|
|
695
|
+
let i = null, g, v = null;
|
|
696
|
+
const p = s(
|
|
697
697
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
698
|
-
),
|
|
699
|
-
keyCodes:
|
|
698
|
+
), _ = s(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
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(() => {
|
|
705
705
|
if (e.loading === !0)
|
|
706
706
|
return {
|
|
707
707
|
onMousedown: K,
|
|
@@ -710,15 +710,15 @@ const St = J({
|
|
|
710
710
|
onKeydown: K,
|
|
711
711
|
onKeyup: K
|
|
712
712
|
};
|
|
713
|
-
if (
|
|
713
|
+
if (k.value === !0) {
|
|
714
714
|
const c = {
|
|
715
|
-
onClick:
|
|
716
|
-
onKeydown:
|
|
715
|
+
onClick: M,
|
|
716
|
+
onKeydown: A,
|
|
717
717
|
onMousedown: G
|
|
718
718
|
};
|
|
719
|
-
if (
|
|
720
|
-
const
|
|
721
|
-
c[`onTouchstart${
|
|
719
|
+
if (n.$q.platform.has.touch === !0) {
|
|
720
|
+
const b = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
721
|
+
c[`onTouchstart${b}`] = O;
|
|
722
722
|
}
|
|
723
723
|
return c;
|
|
724
724
|
}
|
|
@@ -726,122 +726,122 @@ const St = J({
|
|
|
726
726
|
// needed; especially for disabled <a> tags
|
|
727
727
|
onClick: D
|
|
728
728
|
};
|
|
729
|
-
}),
|
|
730
|
-
ref:
|
|
729
|
+
}), E = s(() => ({
|
|
730
|
+
ref: u,
|
|
731
731
|
class: "q-btn q-btn-item non-selectable no-outline " + o.value,
|
|
732
|
-
style:
|
|
733
|
-
...
|
|
734
|
-
...
|
|
732
|
+
style: d.value,
|
|
733
|
+
...r.value,
|
|
734
|
+
...h.value
|
|
735
735
|
}));
|
|
736
|
-
function
|
|
737
|
-
if (
|
|
736
|
+
function M(c) {
|
|
737
|
+
if (u.value !== null) {
|
|
738
738
|
if (c !== void 0) {
|
|
739
739
|
if (c.defaultPrevented === !0)
|
|
740
740
|
return;
|
|
741
|
-
const
|
|
742
|
-
if (e.type === "submit" &&
|
|
743
|
-
|
|
741
|
+
const b = document.activeElement;
|
|
742
|
+
if (e.type === "submit" && b !== document.body && u.value.contains(b) === !1 && b.contains(u.value) === !1) {
|
|
743
|
+
u.value.focus();
|
|
744
744
|
const U = () => {
|
|
745
|
-
document.removeEventListener("keydown", D, !0), document.removeEventListener("keyup", U,
|
|
745
|
+
document.removeEventListener("keydown", D, !0), document.removeEventListener("keyup", U, R), u.value !== null && u.value.removeEventListener("blur", U, R);
|
|
746
746
|
};
|
|
747
|
-
document.addEventListener("keydown", D, !0), document.addEventListener("keyup", U,
|
|
747
|
+
document.addEventListener("keydown", D, !0), document.addEventListener("keyup", U, R), u.value.addEventListener("blur", U, R);
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
f(c);
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
|
|
753
|
+
function A(c) {
|
|
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
|
-
function
|
|
757
|
-
|
|
758
|
-
|
|
756
|
+
function O(c) {
|
|
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
|
+
v = null, g = !1;
|
|
759
759
|
}, 200)));
|
|
760
760
|
}
|
|
761
761
|
function G(c) {
|
|
762
|
-
|
|
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
|
-
function
|
|
765
|
-
if (
|
|
764
|
+
function P(c) {
|
|
765
|
+
if (u.value !== null && !(c !== void 0 && c.type === "blur" && document.activeElement === u.value)) {
|
|
766
766
|
if (c !== void 0 && c.type === "keyup") {
|
|
767
|
-
if (j ===
|
|
768
|
-
const
|
|
769
|
-
|
|
767
|
+
if (j === u.value && ae(c, [13, 32]) === !0) {
|
|
768
|
+
const b = new MouseEvent("click", c);
|
|
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
|
}
|
|
775
775
|
}
|
|
776
776
|
function N(c) {
|
|
777
|
-
const
|
|
778
|
-
c !== !0 && (x ===
|
|
777
|
+
const b = q.value;
|
|
778
|
+
c !== !0 && (x === u.value || I === u.value) && b !== null && b !== document.activeElement && (b.setAttribute("tabindex", -1), b.focus()), x === u.value && (i !== null && (i.removeEventListener("touchcancel", P, R), i.removeEventListener("touchend", P, R)), x = i = null), I === u.value && (document.removeEventListener("mouseup", P, R), I = null), j === u.value && (document.removeEventListener("keyup", P, !0), u.value !== null && u.value.removeEventListener("blur", P, R), j = null), u.value !== null && u.value.classList.remove("q-btn--active");
|
|
779
779
|
}
|
|
780
780
|
function K(c) {
|
|
781
781
|
D(c), c.qSkipRipple = !0;
|
|
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
|
}
|
|
789
789
|
}), () => {
|
|
790
790
|
let c = [];
|
|
791
791
|
e.icon !== void 0 && c.push(
|
|
792
|
-
|
|
792
|
+
m(fe, {
|
|
793
793
|
name: e.icon,
|
|
794
|
-
left: e.stack !== !0 &&
|
|
794
|
+
left: e.stack !== !0 && p.value === !0,
|
|
795
795
|
role: "img"
|
|
796
796
|
})
|
|
797
|
-
),
|
|
798
|
-
|
|
797
|
+
), p.value === !0 && c.push(
|
|
798
|
+
m("span", { class: "block" }, [e.label])
|
|
799
799
|
), c = V(t.default, c), e.iconRight !== void 0 && e.round === !1 && c.push(
|
|
800
|
-
|
|
800
|
+
m(fe, {
|
|
801
801
|
name: e.iconRight,
|
|
802
|
-
right: e.stack !== !0 &&
|
|
802
|
+
right: e.stack !== !0 && p.value === !0,
|
|
803
803
|
role: "img"
|
|
804
804
|
})
|
|
805
805
|
);
|
|
806
|
-
const
|
|
807
|
-
|
|
806
|
+
const b = [
|
|
807
|
+
m("span", {
|
|
808
808
|
class: "q-focus-helper",
|
|
809
|
-
ref:
|
|
809
|
+
ref: q
|
|
810
810
|
})
|
|
811
811
|
];
|
|
812
|
-
return e.loading === !0 && e.percentage !== void 0 &&
|
|
813
|
-
|
|
812
|
+
return e.loading === !0 && e.percentage !== void 0 && b.push(
|
|
813
|
+
m("span", {
|
|
814
814
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
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
|
-
),
|
|
822
|
-
|
|
823
|
-
class: "q-btn__content text-center col items-center q-anchor--skip " +
|
|
821
|
+
), b.push(
|
|
822
|
+
m("span", {
|
|
823
|
+
class: "q-btn__content text-center col items-center q-anchor--skip " + l.value
|
|
824
824
|
}, c)
|
|
825
|
-
), e.loading !== null &&
|
|
826
|
-
|
|
825
|
+
), e.loading !== null && b.push(
|
|
826
|
+
m(ze, {
|
|
827
827
|
name: "q-transition--fade"
|
|
828
828
|
}, () => e.loading === !0 ? [
|
|
829
|
-
|
|
829
|
+
m("span", {
|
|
830
830
|
key: "loading",
|
|
831
831
|
class: "absolute-full flex flex-center"
|
|
832
|
-
}, t.loading !== void 0 ? t.loading() : [
|
|
832
|
+
}, t.loading !== void 0 ? t.loading() : [m(et)])
|
|
833
833
|
] : null)
|
|
834
834
|
), le(
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
835
|
+
m(
|
|
836
|
+
y.value,
|
|
837
|
+
E.value,
|
|
838
|
+
b
|
|
839
839
|
),
|
|
840
840
|
[[
|
|
841
841
|
st,
|
|
842
|
-
|
|
842
|
+
_.value,
|
|
843
843
|
void 0,
|
|
844
|
-
|
|
844
|
+
w.value
|
|
845
845
|
]]
|
|
846
846
|
);
|
|
847
847
|
};
|
|
@@ -869,7 +869,7 @@ const St = J({
|
|
|
869
869
|
},
|
|
870
870
|
emits: ["click"],
|
|
871
871
|
setup(e) {
|
|
872
|
-
const t = e,
|
|
872
|
+
const t = e, a = s(() => [
|
|
873
873
|
"app-btn",
|
|
874
874
|
{
|
|
875
875
|
"app-btn_default": !t.transparent && !t.flat,
|
|
@@ -885,53 +885,53 @@ const St = J({
|
|
|
885
885
|
},
|
|
886
886
|
`app-btn_${t.color}`
|
|
887
887
|
]);
|
|
888
|
-
return (
|
|
888
|
+
return (n, o) => (B(), _e(H(St), {
|
|
889
889
|
"no-caps": "",
|
|
890
890
|
unelevated: "",
|
|
891
|
-
class:
|
|
892
|
-
padding: H(Ne)[
|
|
893
|
-
loading:
|
|
894
|
-
disable:
|
|
895
|
-
to:
|
|
896
|
-
href:
|
|
897
|
-
target:
|
|
898
|
-
type:
|
|
899
|
-
"aria-label":
|
|
900
|
-
download:
|
|
901
|
-
onClick: o[0] || (o[0] = (
|
|
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))
|
|
902
902
|
}, {
|
|
903
903
|
default: Te(() => [
|
|
904
|
-
|
|
904
|
+
n.iconLeft || n.iconMiddle ? (B(), L("i", {
|
|
905
905
|
key: 0,
|
|
906
|
-
class:
|
|
906
|
+
class: z([
|
|
907
907
|
"icon-kl",
|
|
908
|
-
|
|
909
|
-
`icon-kl-${
|
|
910
|
-
|
|
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"
|
|
911
911
|
])
|
|
912
|
-
}, null, 2)) :
|
|
913
|
-
$e(
|
|
914
|
-
|
|
915
|
-
Oe(X(
|
|
916
|
-
], 64)) :
|
|
917
|
-
|
|
912
|
+
}, null, 2)) : T("", !0),
|
|
913
|
+
$e(n.$slots, "default", {}, void 0, !0),
|
|
914
|
+
n.label ? (B(), L(qe, { key: 1 }, [
|
|
915
|
+
Oe(X(n.label), 1)
|
|
916
|
+
], 64)) : T("", !0),
|
|
917
|
+
n.iconRight ? (B(), L("i", {
|
|
918
918
|
key: 2,
|
|
919
|
-
class:
|
|
919
|
+
class: z([
|
|
920
920
|
"icon-kl",
|
|
921
921
|
"icon-kl_right",
|
|
922
|
-
`icon-kl-${
|
|
923
|
-
|
|
922
|
+
`icon-kl-${n.iconRight}`,
|
|
923
|
+
n.transparent ? `text-${n.color}` : "text-secondary"
|
|
924
924
|
])
|
|
925
|
-
}, null, 2)) :
|
|
925
|
+
}, null, 2)) : T("", !0)
|
|
926
926
|
]),
|
|
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
|
-
const
|
|
932
|
-
for (const [
|
|
933
|
-
n
|
|
934
|
-
return
|
|
931
|
+
const a = e.__vccOpts || e;
|
|
932
|
+
for (const [n, o] of t)
|
|
933
|
+
a[n] = o;
|
|
934
|
+
return a;
|
|
935
935
|
}, Zt = /* @__PURE__ */ ee(wt, [["__scopeId", "data-v-99788ad1"]]), Bt = {
|
|
936
936
|
key: 0,
|
|
937
937
|
class: "app-toggle__label app-toggle__label_left"
|
|
@@ -953,56 +953,56 @@ const St = J({
|
|
|
953
953
|
},
|
|
954
954
|
emits: ["update:modelValue"],
|
|
955
955
|
setup(e, { emit: t }) {
|
|
956
|
-
const
|
|
957
|
-
get: () =>
|
|
958
|
-
set: (
|
|
959
|
-
|
|
956
|
+
const a = e, n = t, o = s({
|
|
957
|
+
get: () => a.modelValue,
|
|
958
|
+
set: (l) => {
|
|
959
|
+
n("update:modelValue", l);
|
|
960
960
|
}
|
|
961
|
-
}),
|
|
961
|
+
}), d = s(() => [
|
|
962
962
|
"app-toggle",
|
|
963
963
|
{
|
|
964
|
-
"app-toggle_sm":
|
|
965
|
-
"app-toggle_md":
|
|
966
|
-
"app-toggle_lg":
|
|
964
|
+
"app-toggle_sm": a.size === $.SM,
|
|
965
|
+
"app-toggle_md": a.size === $.MD,
|
|
966
|
+
"app-toggle_lg": a.size === $.LG,
|
|
967
967
|
"app-toggle_active": o.value,
|
|
968
|
-
"app-toggle_disabled":
|
|
968
|
+
"app-toggle_disabled": a.disabled
|
|
969
969
|
},
|
|
970
|
-
`app-toggle_${
|
|
970
|
+
`app-toggle_${a.color}`
|
|
971
971
|
]);
|
|
972
|
-
return (
|
|
973
|
-
class:
|
|
972
|
+
return (l, r) => (B(), L("div", {
|
|
973
|
+
class: z(d.value)
|
|
974
974
|
}, [
|
|
975
|
-
|
|
975
|
+
l.label && l.labelLeft ? (B(), L("span", Bt, X(l.label), 1)) : T("", !0),
|
|
976
976
|
F("label", Ct, [
|
|
977
977
|
F("input", {
|
|
978
978
|
type: "checkbox",
|
|
979
979
|
checked: o.value,
|
|
980
|
-
onChange:
|
|
981
|
-
disabled:
|
|
980
|
+
onChange: r[0] || (r[0] = (S) => o.value = !o.value),
|
|
981
|
+
disabled: l.disabled,
|
|
982
982
|
class: "app-toggle__input"
|
|
983
983
|
}, null, 40, Lt),
|
|
984
984
|
F("span", {
|
|
985
|
-
class:
|
|
985
|
+
class: z(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
|
|
986
986
|
}, [
|
|
987
987
|
F("span", Et, [
|
|
988
|
-
|
|
988
|
+
l.icon && !l.modelValue ? (B(), L("i", {
|
|
989
989
|
key: 0,
|
|
990
|
-
class:
|
|
991
|
-
}, null, 2)) :
|
|
992
|
-
|
|
990
|
+
class: z(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
|
|
991
|
+
}, null, 2)) : T("", !0),
|
|
992
|
+
l.modelValue && (l.iconActive || l.icon) ? (B(), L("i", {
|
|
993
993
|
key: 1,
|
|
994
|
-
class:
|
|
994
|
+
class: z([
|
|
995
995
|
"icon-kl",
|
|
996
|
-
`icon-kl-${
|
|
996
|
+
`icon-kl-${l.iconActive || l.icon}`,
|
|
997
997
|
"app-toggle__icon",
|
|
998
|
-
o.value ? `text-${
|
|
998
|
+
o.value ? `text-${l.iconColor}` : ""
|
|
999
999
|
])
|
|
1000
|
-
}, null, 2)) :
|
|
1000
|
+
}, null, 2)) : T("", !0)
|
|
1001
1001
|
])
|
|
1002
1002
|
], 2),
|
|
1003
|
-
$e(
|
|
1003
|
+
$e(l.$slots, "default", {}, void 0, !0)
|
|
1004
1004
|
]),
|
|
1005
|
-
|
|
1005
|
+
l.label && !l.labelLeft ? (B(), L("span", Rt, X(l.label), 1)) : T("", !0)
|
|
1006
1006
|
], 2));
|
|
1007
1007
|
}
|
|
1008
1008
|
}), en = /* @__PURE__ */ ee(Mt, [["__scopeId", "data-v-e0e56123"]]), Pt = /* @__PURE__ */ Q({
|
|
@@ -1013,8 +1013,8 @@ const St = J({
|
|
|
1013
1013
|
color: {}
|
|
1014
1014
|
},
|
|
1015
1015
|
setup(e) {
|
|
1016
|
-
return (t,
|
|
1017
|
-
class:
|
|
1016
|
+
return (t, a) => (B(), L("i", {
|
|
1017
|
+
class: z(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
|
|
1018
1018
|
style: Se(t.size ? `font-size: ${t.size}` : void 0)
|
|
1019
1019
|
}, null, 6));
|
|
1020
1020
|
}
|
|
@@ -1025,7 +1025,7 @@ const St = J({
|
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
1027
1027
|
function zt(e, t) {
|
|
1028
|
-
return
|
|
1028
|
+
return s(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
1029
1029
|
}
|
|
1030
1030
|
const Tt = {
|
|
1031
1031
|
xs: 2,
|
|
@@ -1034,9 +1034,9 @@ const Tt = {
|
|
|
1034
1034
|
lg: 10,
|
|
1035
1035
|
xl: 14
|
|
1036
1036
|
};
|
|
1037
|
-
function ye(e, t,
|
|
1037
|
+
function ye(e, t, a) {
|
|
1038
1038
|
return {
|
|
1039
|
-
transform: t === !0 ? `translateX(${
|
|
1039
|
+
transform: t === !0 ? `translateX(${a.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
|
|
1040
1040
|
};
|
|
1041
1041
|
}
|
|
1042
1042
|
const Ot = J({
|
|
@@ -1063,42 +1063,42 @@ const Ot = J({
|
|
|
1063
1063
|
instantFeedback: Boolean
|
|
1064
1064
|
},
|
|
1065
1065
|
setup(e, { slots: t }) {
|
|
1066
|
-
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(() => ({
|
|
1067
1067
|
...o.value !== null ? o.value : {},
|
|
1068
1068
|
"--q-linear-progress-speed": `${e.animationSpeed}ms`
|
|
1069
|
-
})),
|
|
1069
|
+
})), S = s(
|
|
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
|
-
),
|
|
1072
|
-
() => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${
|
|
1073
|
-
),
|
|
1074
|
-
() => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${
|
|
1075
|
-
),
|
|
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(
|
|
1074
|
+
() => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${d.value === !0 ? "in" : ""}determinate`
|
|
1075
|
+
), i = s(() => ({ width: `${e.value * 100}%` })), g = s(
|
|
1076
1076
|
() => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
|
|
1077
1077
|
);
|
|
1078
1078
|
return () => {
|
|
1079
|
-
const
|
|
1080
|
-
|
|
1081
|
-
class:
|
|
1082
|
-
style:
|
|
1079
|
+
const v = [
|
|
1080
|
+
m("div", {
|
|
1081
|
+
class: k.value,
|
|
1082
|
+
style: y.value
|
|
1083
1083
|
}),
|
|
1084
|
-
|
|
1085
|
-
class:
|
|
1086
|
-
style:
|
|
1084
|
+
m("div", {
|
|
1085
|
+
class: q.value,
|
|
1086
|
+
style: u.value
|
|
1087
1087
|
})
|
|
1088
1088
|
];
|
|
1089
|
-
return e.stripe === !0 &&
|
|
1090
|
-
|
|
1089
|
+
return e.stripe === !0 && d.value === !1 && v.push(
|
|
1090
|
+
m("div", {
|
|
1091
1091
|
class: g.value,
|
|
1092
|
-
style:
|
|
1092
|
+
style: i.value
|
|
1093
1093
|
})
|
|
1094
|
-
),
|
|
1095
|
-
class:
|
|
1096
|
-
style:
|
|
1094
|
+
), m("div", {
|
|
1095
|
+
class: S.value,
|
|
1096
|
+
style: r.value,
|
|
1097
1097
|
role: "progressbar",
|
|
1098
1098
|
"aria-valuemin": 0,
|
|
1099
1099
|
"aria-valuemax": 1,
|
|
1100
1100
|
"aria-valuenow": e.indeterminate === !0 ? void 0 : e.value
|
|
1101
|
-
}, V(t.default,
|
|
1101
|
+
}, V(t.default, v));
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
1104
|
}), Dt = {
|
|
@@ -1116,8 +1116,8 @@ const Ot = J({
|
|
|
1116
1116
|
color: {}
|
|
1117
1117
|
},
|
|
1118
1118
|
emits: ["update:modelValue", "completed"],
|
|
1119
|
-
setup(e, {
|
|
1120
|
-
const n = e,
|
|
1119
|
+
setup(e, { expose: t, emit: a }) {
|
|
1120
|
+
const n = e, o = a, d = Y(Array(n.length).fill("")), l = Y([]), r = s(() => [
|
|
1121
1121
|
"code-field",
|
|
1122
1122
|
{
|
|
1123
1123
|
"code-field_sm": n.size === $.SM,
|
|
@@ -1126,90 +1126,94 @@ const Ot = J({
|
|
|
1126
1126
|
"code-field_disabled": n.disabled || n.loading
|
|
1127
1127
|
},
|
|
1128
1128
|
`code-field_${n.color}`
|
|
1129
|
-
]),
|
|
1130
|
-
let
|
|
1131
|
-
return n.size == $.SM && (
|
|
1132
|
-
}),
|
|
1133
|
-
var
|
|
1134
|
-
const
|
|
1135
|
-
if (
|
|
1136
|
-
|
|
1137
|
-
else if (
|
|
1138
|
-
const
|
|
1139
|
-
|
|
1140
|
-
|
|
1129
|
+
]), S = s(() => {
|
|
1130
|
+
let i = "";
|
|
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;
|
|
1132
|
+
}), y = (i, g) => {
|
|
1133
|
+
var _;
|
|
1134
|
+
const p = i.target.value;
|
|
1135
|
+
if (p.length === 1)
|
|
1136
|
+
g < n.length - 1 && l.value && ((_ = l.value[g + 1]) == null || _.focus());
|
|
1137
|
+
else if (p.length > 1) {
|
|
1138
|
+
const w = p.slice(0, n.length - g).split("");
|
|
1139
|
+
w.forEach((C, h) => {
|
|
1140
|
+
d.value[g + h] = C;
|
|
1141
1141
|
}), se(() => {
|
|
1142
|
-
var
|
|
1143
|
-
|
|
1142
|
+
var C;
|
|
1143
|
+
l.value && ((C = l.value[Math.min(g + w.length, n.length - 1)]) == null || C.focus());
|
|
1144
1144
|
});
|
|
1145
1145
|
}
|
|
1146
|
-
},
|
|
1147
|
-
var
|
|
1148
|
-
|
|
1149
|
-
},
|
|
1150
|
-
var
|
|
1151
|
-
|
|
1152
|
-
const
|
|
1153
|
-
if (!
|
|
1154
|
-
const
|
|
1155
|
-
|
|
1156
|
-
|
|
1146
|
+
}, f = (i) => {
|
|
1147
|
+
var g;
|
|
1148
|
+
d.value[i] === "" && l.value && i > 0 && ((g = l.value[i - 1]) == null || g.focus());
|
|
1149
|
+
}, k = (i, g) => {
|
|
1150
|
+
var _;
|
|
1151
|
+
i.preventDefault();
|
|
1152
|
+
const v = ((_ = i.clipboardData) == null ? void 0 : _.getData("text")) ?? "";
|
|
1153
|
+
if (!v) return;
|
|
1154
|
+
const p = v.slice(0, n.length - g).split("");
|
|
1155
|
+
p.forEach((w, C) => {
|
|
1156
|
+
d.value[g + C] = w;
|
|
1157
1157
|
}), se(() => {
|
|
1158
|
-
var
|
|
1159
|
-
|
|
1158
|
+
var w;
|
|
1159
|
+
l.value && ((w = l.value[Math.min(g + p.length, n.length - 1)]) == null || w.focus());
|
|
1160
1160
|
});
|
|
1161
1161
|
};
|
|
1162
1162
|
De(
|
|
1163
|
-
|
|
1164
|
-
(
|
|
1165
|
-
const
|
|
1166
|
-
|
|
1163
|
+
d,
|
|
1164
|
+
(i) => {
|
|
1165
|
+
const g = i.join("");
|
|
1166
|
+
u(g);
|
|
1167
1167
|
},
|
|
1168
1168
|
{ deep: !0 }
|
|
1169
1169
|
);
|
|
1170
|
-
const
|
|
1171
|
-
|
|
1170
|
+
const u = (i) => {
|
|
1171
|
+
o("update:modelValue", i), i.length === n.length && !i.includes(" ") && o("completed", i);
|
|
1172
|
+
}, q = (i) => {
|
|
1173
|
+
i && (d.value = i.split("").slice(0, n.length));
|
|
1172
1174
|
};
|
|
1173
1175
|
return xe(() => {
|
|
1174
|
-
n.autofocus &&
|
|
1175
|
-
}), (
|
|
1176
|
-
|
|
1177
|
-
|
|
1176
|
+
n.autofocus && l.value && l.value[0] && l.value[0].focus();
|
|
1177
|
+
}), t({
|
|
1178
|
+
injectCode: q
|
|
1179
|
+
}), (i, g) => (B(), L("div", {
|
|
1180
|
+
class: z(r.value),
|
|
1181
|
+
style: Se(S.value)
|
|
1178
1182
|
}, [
|
|
1179
|
-
|
|
1183
|
+
i.label ? (B(), L("label", Dt, X(i.label), 1)) : T("", !0),
|
|
1180
1184
|
F("div", xt, [
|
|
1181
|
-
(
|
|
1182
|
-
key:
|
|
1183
|
-
"onUpdate:modelValue": (
|
|
1185
|
+
(B(!0), L(qe, null, je(i.length, (v, p) => le((B(), L("input", {
|
|
1186
|
+
key: p,
|
|
1187
|
+
"onUpdate:modelValue": (_) => d.value[p] = _,
|
|
1184
1188
|
ref_for: !0,
|
|
1185
1189
|
ref_key: "inputRefs",
|
|
1186
|
-
ref:
|
|
1190
|
+
ref: l,
|
|
1187
1191
|
type: "text",
|
|
1188
1192
|
maxlength: "1",
|
|
1189
1193
|
class: "code-field__input",
|
|
1190
|
-
disabled:
|
|
1191
|
-
onInput: (
|
|
1192
|
-
onKeydown: Ie((
|
|
1193
|
-
onPaste: (
|
|
1194
|
+
disabled: i.disabled || i.loading,
|
|
1195
|
+
onInput: (_) => y(_, p),
|
|
1196
|
+
onKeydown: Ie((_) => f(p), ["backspace"]),
|
|
1197
|
+
onPaste: (_) => k(_, p)
|
|
1194
1198
|
}, null, 40, jt)), [
|
|
1195
|
-
[Ve,
|
|
1199
|
+
[Ve, d.value[p]]
|
|
1196
1200
|
])), 128))
|
|
1197
1201
|
]),
|
|
1198
|
-
|
|
1202
|
+
i.loading ? (B(), _e(Ot, {
|
|
1199
1203
|
key: 1,
|
|
1200
1204
|
indeterminate: "",
|
|
1201
1205
|
rounded: "",
|
|
1202
|
-
color:
|
|
1206
|
+
color: i.color,
|
|
1203
1207
|
class: "code-field__loading"
|
|
1204
|
-
}, null, 8, ["color"])) :
|
|
1208
|
+
}, null, 8, ["color"])) : T("", !0)
|
|
1205
1209
|
], 6));
|
|
1206
1210
|
}
|
|
1207
|
-
}), nn = /* @__PURE__ */ ee(It, [["__scopeId", "data-v-
|
|
1208
|
-
() => import("./AppButtonCopy-
|
|
1211
|
+
}), nn = /* @__PURE__ */ ee(It, [["__scopeId", "data-v-44914130"]]), an = oe(
|
|
1212
|
+
() => import("./AppButtonCopy-CcsAzDik.js")
|
|
1209
1213
|
), ln = oe(
|
|
1210
|
-
() => import("./AppSelect-
|
|
1214
|
+
() => import("./AppSelect-BtUUK2ea.js")
|
|
1211
1215
|
), on = oe(
|
|
1212
|
-
() => import("./DropdownButton-
|
|
1216
|
+
() => import("./DropdownButton-CZwBMGcA.js")
|
|
1213
1217
|
);
|
|
1214
1218
|
export {
|
|
1215
1219
|
Zt as A,
|