@validol4ik/uikit 0.4.5 → 0.4.7
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-pK8pl5t8.js → AppButtonCopy-BAJDATwH.js} +1 -1
- package/dist/{AppButtonCopy-BAOIWTYi.cjs → AppButtonCopy-DC3Dy-P9.cjs} +1 -1
- package/dist/{AppSelect-DZnlZcq6.cjs → AppSelect-C4qbc8mB.cjs} +1 -1
- package/dist/{AppSelect-CnQd1IAO.js → AppSelect-CnoOOUQ9.js} +2 -2
- package/dist/{DropdownButton-BHzaQB4O.js → DropdownButton-BhopZ7Zq.js} +2 -2
- package/dist/{DropdownButton-CXwHngnX.cjs → DropdownButton-CoPZFOIK.cjs} +1 -1
- package/dist/{QMenu-4YcWS85F.js → QMenu-B0XjB-Ao.js} +1 -1
- package/dist/{QMenu-CpgYKR_O.cjs → QMenu-QSoe-Mhv.cjs} +1 -1
- package/dist/{index-DYNR39SC.js → index-BEAKbg3k.js} +231 -233
- package/dist/{index-TqkCOfYg.cjs → index-B_s6sq0L.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 i, markRaw as
|
|
1
|
+
import { computed as i, markRaw as ye, defineComponent as G, h as p, withDirectives as ke, getCurrentInstance as X, unref as Q, ref as te, onBeforeUnmount as Ae, Transition as ze, openBlock as S, createBlock as _e, normalizeClass as z, withCtx as Te, createElementBlock as C, createCommentVNode as T, 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 ie, withKeys as Ne, defineAsyncComponent as le } 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
|
+
}, oe = {
|
|
20
20
|
size: String
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function re(e, t = ne) {
|
|
23
23
|
return i(() => 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 ye(G(e));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
28
|
+
function Ve(e) {
|
|
29
|
+
return ye(e);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Fe(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 N(e, t) {
|
|
43
43
|
return e !== void 0 ? t.concat(e()) : t;
|
|
44
44
|
}
|
|
45
|
-
function
|
|
45
|
+
function Vt(e, t) {
|
|
46
46
|
return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
|
|
47
47
|
}
|
|
48
|
-
function
|
|
48
|
+
function Ft(e, t, n, a, o, d) {
|
|
49
49
|
t.key = a + o;
|
|
50
|
-
const l =
|
|
51
|
-
return o === !0 ?
|
|
50
|
+
const l = p(e, t, n);
|
|
51
|
+
return o === !0 ? ke(l, d()) : l;
|
|
52
52
|
}
|
|
53
|
-
const
|
|
53
|
+
const se = "0 0 24 24", ue = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
54
54
|
"mdi-": (e) => `mdi ${e}`,
|
|
55
|
-
"icon-":
|
|
55
|
+
"icon-": ue,
|
|
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 ": ue,
|
|
63
63
|
"ti-": (e) => `themify-icon ${e}`,
|
|
64
64
|
"bi-": (e) => `bootstrap-icons ${e}`
|
|
65
65
|
}, Ce = {
|
|
@@ -70,10 +70,10 @@ const ue = "0 0 24 24", ce = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
70
70
|
sym_o_: "-outlined",
|
|
71
71
|
sym_r_: "-rounded",
|
|
72
72
|
sym_s_: "-sharp"
|
|
73
|
-
},
|
|
73
|
+
}, Qe = new RegExp("^(" + Object.keys(Be).join("|") + ")"), Ge = new RegExp("^(" + Object.keys(Ce).join("|") + ")"), ce = new RegExp("^(" + Object.keys(Le).join("|") + ")"), He = /^[Mm]\s?[-+]?\.?\d/, Ue = /^img:/, Ye = /^svguse:/, Xe = /^ion-/, We = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, de = W({
|
|
74
74
|
name: "QIcon",
|
|
75
75
|
props: {
|
|
76
|
-
...
|
|
76
|
+
...oe,
|
|
77
77
|
tag: {
|
|
78
78
|
type: String,
|
|
79
79
|
default: "i"
|
|
@@ -84,7 +84,7 @@ const ue = "0 0 24 24", ce = (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 = re(e), o = i(
|
|
88
88
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
89
89
|
), d = i(() => {
|
|
90
90
|
let l, r = e.name;
|
|
@@ -103,23 +103,23 @@ const ue = "0 0 24 24", ce = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
if (He.test(r) === !0) {
|
|
106
|
-
const [v, _ =
|
|
106
|
+
const [v, _ = se] = r.split("|");
|
|
107
107
|
return {
|
|
108
108
|
svg: !0,
|
|
109
109
|
viewBox: _,
|
|
110
110
|
nodes: v.split("&&").map((s) => {
|
|
111
111
|
const [f, g, h] = s.split("@@");
|
|
112
|
-
return
|
|
112
|
+
return p("path", { style: g, d: f, transform: h });
|
|
113
113
|
})
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
-
if (
|
|
116
|
+
if (Ue.test(r) === !0)
|
|
117
117
|
return {
|
|
118
118
|
img: !0,
|
|
119
119
|
src: r.substring(4)
|
|
120
120
|
};
|
|
121
|
-
if (
|
|
122
|
-
const [v, _ =
|
|
121
|
+
if (Ye.test(r) === !0) {
|
|
122
|
+
const [v, _ = se] = r.split("|");
|
|
123
123
|
return {
|
|
124
124
|
svguse: !0,
|
|
125
125
|
src: v.substring(7),
|
|
@@ -127,20 +127,20 @@ const ue = "0 0 24 24", ce = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
let q = " ";
|
|
130
|
-
const k = r.match(
|
|
130
|
+
const k = r.match(Qe);
|
|
131
131
|
if (k !== null)
|
|
132
132
|
l = Be[k[1]](r);
|
|
133
|
-
else if (Je.test(r) === !0)
|
|
134
|
-
l = r;
|
|
135
133
|
else if (We.test(r) === !0)
|
|
134
|
+
l = r;
|
|
135
|
+
else if (Xe.test(r) === !0)
|
|
136
136
|
l = `ionicons ion-${n.platform.is.ios === !0 ? "ios" : "md"}${r.substring(3)}`;
|
|
137
|
-
else if (
|
|
137
|
+
else if (ce.test(r) === !0) {
|
|
138
138
|
l = "notranslate material-symbols";
|
|
139
|
-
const v = r.match(
|
|
139
|
+
const v = r.match(ce);
|
|
140
140
|
v !== null && (r = r.substring(6), l += Le[v[1]]), q = r;
|
|
141
141
|
} else {
|
|
142
142
|
l = "notranslate material-icons";
|
|
143
|
-
const v = r.match(
|
|
143
|
+
const v = r.match(Ge);
|
|
144
144
|
v !== null && (r = r.substring(2), l += Ce[v[1]]), q = r;
|
|
145
145
|
}
|
|
146
146
|
return {
|
|
@@ -155,31 +155,31 @@ const ue = "0 0 24 24", ce = (e) => e, ee = (e) => `ionicons ${e}`, Be = {
|
|
|
155
155
|
"aria-hidden": "true",
|
|
156
156
|
role: "presentation"
|
|
157
157
|
};
|
|
158
|
-
return d.value.none === !0 ?
|
|
159
|
-
|
|
160
|
-
])) : d.value.svg === !0 ?
|
|
161
|
-
|
|
158
|
+
return d.value.none === !0 ? p(e.tag, l, Fe(t.default)) : d.value.img === !0 ? p(e.tag, l, N(t.default, [
|
|
159
|
+
p("img", { src: d.value.src })
|
|
160
|
+
])) : d.value.svg === !0 ? p(e.tag, l, N(t.default, [
|
|
161
|
+
p("svg", {
|
|
162
162
|
viewBox: d.value.viewBox || "0 0 24 24"
|
|
163
163
|
}, d.value.nodes)
|
|
164
|
-
])) : d.value.svguse === !0 ?
|
|
165
|
-
|
|
164
|
+
])) : d.value.svguse === !0 ? p(e.tag, l, N(t.default, [
|
|
165
|
+
p("svg", {
|
|
166
166
|
viewBox: d.value.viewBox
|
|
167
167
|
}, [
|
|
168
|
-
|
|
168
|
+
p("use", { "xlink:href": d.value.src })
|
|
169
169
|
])
|
|
170
|
-
])) : (d.value.cls !== void 0 && (l.class += " " + d.value.cls),
|
|
170
|
+
])) : (d.value.cls !== void 0 && (l.class += " " + d.value.cls), p(e.tag, l, N(t.default, [
|
|
171
171
|
d.value.content
|
|
172
172
|
])));
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
|
-
}),
|
|
175
|
+
}), Je = {
|
|
176
176
|
size: {
|
|
177
177
|
type: [String, Number],
|
|
178
178
|
default: "1em"
|
|
179
179
|
},
|
|
180
180
|
color: String
|
|
181
181
|
};
|
|
182
|
-
function
|
|
182
|
+
function Ze(e) {
|
|
183
183
|
return {
|
|
184
184
|
cSize: i(() => e.size in ne ? `${ne[e.size]}px` : e.size),
|
|
185
185
|
classes: i(
|
|
@@ -187,24 +187,24 @@ function et(e) {
|
|
|
187
187
|
)
|
|
188
188
|
};
|
|
189
189
|
}
|
|
190
|
-
const
|
|
190
|
+
const et = W({
|
|
191
191
|
name: "QSpinner",
|
|
192
192
|
props: {
|
|
193
|
-
...
|
|
193
|
+
...Je,
|
|
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 } =
|
|
201
|
-
return () =>
|
|
200
|
+
const { cSize: t, classes: n } = Ze(e);
|
|
201
|
+
return () => p("svg", {
|
|
202
202
|
class: n.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
|
+
p("circle", {
|
|
208
208
|
class: "path",
|
|
209
209
|
cx: "50",
|
|
210
210
|
cy: "50",
|
|
@@ -217,12 +217,12 @@ const tt = W({
|
|
|
217
217
|
]);
|
|
218
218
|
}
|
|
219
219
|
});
|
|
220
|
-
function
|
|
220
|
+
function tt(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 Qt(e) {
|
|
226
226
|
if (e == null)
|
|
227
227
|
return;
|
|
228
228
|
if (typeof e == "string")
|
|
@@ -235,7 +235,7 @@ function Gt(e) {
|
|
|
235
235
|
if (t)
|
|
236
236
|
return t.$el || t;
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function Gt(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 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]), {
|
|
270
270
|
top: e.clientY,
|
|
271
271
|
left: e.clientX
|
|
272
272
|
};
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function Ut(e) {
|
|
275
275
|
if (e.path)
|
|
276
276
|
return e.path;
|
|
277
277
|
if (e.composedPath)
|
|
@@ -287,31 +287,31 @@ function Yt(e) {
|
|
|
287
287
|
function Ee(e) {
|
|
288
288
|
e.stopPropagation();
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function at(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 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
299
|
o[0].addEventListener(o[1], e[o[2]], J[o[3]]);
|
|
300
300
|
});
|
|
301
301
|
}
|
|
302
|
-
function
|
|
302
|
+
function ot(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 rt(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 rt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function it(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 st(e, t = 250) {
|
|
|
319
319
|
}, t), a = e.apply(this, arguments)), a;
|
|
320
320
|
};
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function fe(e, t, n, a) {
|
|
323
323
|
n.modifiers.stop === !0 && Ee(e);
|
|
324
324
|
const o = n.modifiers.color;
|
|
325
325
|
let d = n.modifiers.center;
|
|
326
326
|
d = d === !0 || a === !0;
|
|
327
|
-
const l = document.createElement("span"), r = document.createElement("span"), q =
|
|
328
|
-
r.className = "q-ripple__inner",
|
|
327
|
+
const l = document.createElement("span"), r = document.createElement("span"), q = nt(e), { left: k, top: v, width: _, height: s } = t.getBoundingClientRect(), f = Math.sqrt(_ * _ + s * s), g = f / 2, h = `${(_ - f) / 2}px`, c = d ? h : `${q.left - k - g}px`, m = `${(s - f) / 2}px`, w = d ? m : `${q.top - v - g}px`;
|
|
328
|
+
r.className = "q-ripple__inner", tt(r, {
|
|
329
329
|
height: `${f}px`,
|
|
330
330
|
width: `${f}px`,
|
|
331
331
|
transform: `translate3d(${c},${w},0) scale3d(.2,.2,1)`,
|
|
@@ -336,14 +336,14 @@ function ve(e, t, n, a) {
|
|
|
336
336
|
};
|
|
337
337
|
n.abort.push(B);
|
|
338
338
|
let P = setTimeout(() => {
|
|
339
|
-
r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${h},${
|
|
339
|
+
r.classList.add("q-ripple__inner--enter"), r.style.transform = `translate3d(${h},${m},0) scale3d(1,1,1)`, r.style.opacity = 0.2, P = setTimeout(() => {
|
|
340
340
|
r.classList.remove("q-ripple__inner--enter"), r.classList.add("q-ripple__inner--leave"), r.style.opacity = 0, P = setTimeout(() => {
|
|
341
341
|
l.remove(), n.abort.splice(n.abort.indexOf(B), 1);
|
|
342
342
|
}, 275);
|
|
343
343
|
}, 250);
|
|
344
344
|
}, 50);
|
|
345
345
|
}
|
|
346
|
-
function
|
|
346
|
+
function ve(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 ge(e, { modifiers: t, value: n, arg: a }) {
|
|
|
353
353
|
keyCodes: [].concat(o.keyCodes || 13)
|
|
354
354
|
};
|
|
355
355
|
}
|
|
356
|
-
const
|
|
356
|
+
const st = Ve(
|
|
357
357
|
{
|
|
358
358
|
name: "ripple",
|
|
359
359
|
beforeMount(e, t) {
|
|
@@ -366,13 +366,13 @@ const ut = Fe(
|
|
|
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") && fe(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: it((o) => {
|
|
372
|
+
a.enabled === !0 && o.qSkipRipple !== !0 && ae(o, a.modifiers.keyCodes) === !0 && o.type === `key${a.modifiers.early === !0 ? "down" : "up"}` && fe(o, e, a, !0);
|
|
373
373
|
}, 300)
|
|
374
374
|
};
|
|
375
|
-
|
|
375
|
+
ve(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,14 +382,14 @@ const ut = Fe(
|
|
|
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 && ve(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
|
+
}), ot(t, "main"), delete e._qripple);
|
|
393
393
|
}
|
|
394
394
|
}
|
|
395
395
|
), Re = {
|
|
@@ -400,19 +400,19 @@ const ut = Fe(
|
|
|
400
400
|
around: "around",
|
|
401
401
|
evenly: "evenly",
|
|
402
402
|
stretch: "stretch"
|
|
403
|
-
},
|
|
403
|
+
}, ut = Object.keys(Re), ct = {
|
|
404
404
|
align: {
|
|
405
405
|
type: String,
|
|
406
|
-
validator: (e) =>
|
|
406
|
+
validator: (e) => ut.includes(e)
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
|
-
function
|
|
409
|
+
function dt(e) {
|
|
410
410
|
return i(() => {
|
|
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 Yt(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 Xt(e) {
|
|
|
422
422
|
t = t.parent;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function ft(e) {
|
|
426
426
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function Xt(e) {
|
|
429
429
|
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
430
430
|
}
|
|
431
|
-
function
|
|
431
|
+
function ge(e) {
|
|
432
432
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function pe(e, t) {
|
|
435
435
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function vt(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 gt(e, t) {
|
|
|
445
445
|
}
|
|
446
446
|
return !0;
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function me(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
|
|
452
|
-
return Array.isArray(e) === !0 ?
|
|
451
|
+
function gt(e, t) {
|
|
452
|
+
return Array.isArray(e) === !0 ? me(e, t) : Array.isArray(t) === !0 ? me(t, e) : e === t;
|
|
453
453
|
}
|
|
454
|
-
function
|
|
454
|
+
function pt(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 (gt(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
|
+
}, Wt = {
|
|
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: d } = n, l =
|
|
484
|
+
function mt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
485
|
+
const n = X(), { props: a, proxy: o, emit: d } = n, l = ft(n), r = i(() => a.disable !== !0 && a.href !== void 0), q = t === !0 ? i(
|
|
486
486
|
() => l === !0 && a.disable !== !0 && r.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
487
487
|
) : i(
|
|
488
488
|
() => l === !0 && r.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
@@ -502,22 +502,22 @@ function ht({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
502
502
|
if (A.length === 0)
|
|
503
503
|
return -1;
|
|
504
504
|
const O = A.findIndex(
|
|
505
|
-
|
|
505
|
+
pe.bind(null, R)
|
|
506
506
|
);
|
|
507
507
|
if (O !== -1)
|
|
508
508
|
return O;
|
|
509
|
-
const
|
|
509
|
+
const H = ge(b[L - 2]);
|
|
510
510
|
return (
|
|
511
511
|
// we are dealing with nested routes
|
|
512
|
-
L > 1 &&
|
|
513
|
-
|
|
512
|
+
L > 1 && ge(R) === H && A[A.length - 1].path !== H ? A.findIndex(
|
|
513
|
+
pe.bind(null, b[L - 2])
|
|
514
514
|
) : O
|
|
515
515
|
);
|
|
516
516
|
}), h = i(
|
|
517
|
-
() => v.value === !0 && g.value !== -1 &&
|
|
517
|
+
() => v.value === !0 && g.value !== -1 && vt(o.$route.params, k.value.params)
|
|
518
518
|
), c = i(
|
|
519
|
-
() => h.value === !0 && g.value === o.$route.matched.length - 1 &&
|
|
520
|
-
),
|
|
519
|
+
() => h.value === !0 && g.value === o.$route.matched.length - 1 && pt(o.$route.params, k.value.params)
|
|
520
|
+
), m = i(() => v.value === !0 ? c.value === !0 ? ` ${a.exactActiveClass} ${a.activeClass}` : a.exact === !0 ? "" : h.value === !0 ? ` ${a.activeClass}` : "" : "");
|
|
521
521
|
function w(b) {
|
|
522
522
|
try {
|
|
523
523
|
return o.$router.resolve(b);
|
|
@@ -555,36 +555,36 @@ function ht({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
555
555
|
resolvedLink: k,
|
|
556
556
|
linkIsActive: h,
|
|
557
557
|
linkIsExactActive: c,
|
|
558
|
-
linkClass:
|
|
558
|
+
linkClass: m,
|
|
559
559
|
linkAttrs: f,
|
|
560
560
|
getLink: w,
|
|
561
561
|
navigateToRouterLink: B,
|
|
562
562
|
navigateOnClick: P
|
|
563
563
|
};
|
|
564
564
|
}
|
|
565
|
-
const
|
|
565
|
+
const he = {
|
|
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
|
+
}, ht = {
|
|
573
573
|
xs: 8,
|
|
574
574
|
sm: 10,
|
|
575
575
|
md: 14,
|
|
576
576
|
lg: 20,
|
|
577
577
|
xl: 24
|
|
578
|
-
},
|
|
578
|
+
}, bt = ["button", "submit", "reset"], yt = /[^\s]\/[^\s]/, kt = ["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 Jt(e) {
|
|
583
583
|
const t = Pe(e);
|
|
584
584
|
return t !== void 0 ? { [t]: !0 } : {};
|
|
585
585
|
}
|
|
586
|
-
const
|
|
587
|
-
...
|
|
586
|
+
const _t = {
|
|
587
|
+
...oe,
|
|
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
|
+
...kt.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
|
+
...ct.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
|
+
}, $t = {
|
|
629
|
+
..._t,
|
|
630
630
|
round: Boolean
|
|
631
631
|
};
|
|
632
|
-
function
|
|
633
|
-
const t =
|
|
632
|
+
function qt(e) {
|
|
633
|
+
const t = re(e, ht), n = dt(e), { hasRouterLink: a, hasLink: o, linkTag: d, linkAttrs: l, navigateOnClick: r } = mt({
|
|
634
634
|
fallbackTag: "button"
|
|
635
635
|
}), q = i(() => {
|
|
636
636
|
const c = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
637
637
|
return e.padding !== void 0 ? Object.assign({}, c, {
|
|
638
|
-
padding: e.padding.split(/\s+/).map((
|
|
638
|
+
padding: e.padding.split(/\s+/).map((m) => m in he ? he[m] + "px" : m).join(" "),
|
|
639
639
|
minWidth: "0",
|
|
640
640
|
minHeight: "0"
|
|
641
641
|
}) : c;
|
|
@@ -645,7 +645,7 @@ function St(e) {
|
|
|
645
645
|
() => e.disable !== !0 && e.loading !== !0
|
|
646
646
|
), _ = i(() => v.value === !0 ? e.tabindex || 0 : -1), s = i(() => Pe(e, "standard")), f = i(() => {
|
|
647
647
|
const c = { tabindex: _.value };
|
|
648
|
-
return o.value === !0 ? Object.assign(c, l.value) :
|
|
648
|
+
return o.value === !0 ? Object.assign(c, l.value) : bt.includes(e.type) === !0 && (c.type = e.type), d.value === "a" ? (e.disable === !0 ? c["aria-disabled"] = "true" : c.href === void 0 && (c.role = "button"), a.value !== !0 && yt.test(e.type) === !0 && (c.type = e.type)) : e.disable === !0 && (c.disabled = "", c["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(c, {
|
|
649
649
|
role: "progressbar",
|
|
650
650
|
"aria-valuemin": 0,
|
|
651
651
|
"aria-valuemax": 100,
|
|
@@ -654,8 +654,8 @@ function St(e) {
|
|
|
654
654
|
}), g = i(() => {
|
|
655
655
|
let c;
|
|
656
656
|
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? c = `text-${e.textColor || e.color}` : c = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (c = `text-${e.textColor}`);
|
|
657
|
-
const
|
|
658
|
-
return `q-btn--${s.value} q-btn--${
|
|
657
|
+
const m = e.round === !0 ? "round" : `rectangle${k.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
658
|
+
return `q-btn--${s.value} q-btn--${m}` + (c !== void 0 ? " " + c : "") + (v.value === !0 ? " q-btn--actionable q-focusable q-hoverable" : e.disable === !0 ? " disabled" : "") + (e.fab === !0 ? " q-btn--fab" : e.fabMini === !0 ? " q-btn--fab-mini" : "") + (e.noCaps === !0 ? " q-btn--no-uppercase" : "") + (e.dense === !0 ? " q-btn--dense" : "") + (e.stretch === !0 ? " no-border-radius self-stretch" : "") + (e.glossy === !0 ? " glossy" : "") + (e.square ? " q-btn--square" : "");
|
|
659
659
|
}), h = i(
|
|
660
660
|
() => n.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
661
661
|
);
|
|
@@ -672,10 +672,10 @@ function St(e) {
|
|
|
672
672
|
}
|
|
673
673
|
const { passiveCapture: E } = J;
|
|
674
674
|
let x = null, j = null, I = null;
|
|
675
|
-
const
|
|
675
|
+
const St = W({
|
|
676
676
|
name: "QBtn",
|
|
677
677
|
props: {
|
|
678
|
-
|
|
678
|
+
...$t,
|
|
679
679
|
percentage: Number,
|
|
680
680
|
darkPercentage: Boolean,
|
|
681
681
|
onTouchstart: [Function, Array]
|
|
@@ -691,9 +691,9 @@ const wt = W({
|
|
|
691
691
|
linkTag: k,
|
|
692
692
|
navigateOnClick: v,
|
|
693
693
|
isActionable: _
|
|
694
|
-
} =
|
|
694
|
+
} = qt(e), s = te(null), f = te(null);
|
|
695
695
|
let g = null, h, c = null;
|
|
696
|
-
const
|
|
696
|
+
const m = i(
|
|
697
697
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
698
698
|
), w = i(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
699
699
|
keyCodes: q.value === !0 ? [13, 32] : [13],
|
|
@@ -704,17 +704,17 @@ const wt = W({
|
|
|
704
704
|
}), b = i(() => {
|
|
705
705
|
if (e.loading === !0)
|
|
706
706
|
return {
|
|
707
|
-
onMousedown:
|
|
708
|
-
onTouchstart:
|
|
709
|
-
onClick:
|
|
710
|
-
onKeydown:
|
|
711
|
-
onKeyup:
|
|
707
|
+
onMousedown: V,
|
|
708
|
+
onTouchstart: V,
|
|
709
|
+
onClick: V,
|
|
710
|
+
onKeydown: V,
|
|
711
|
+
onKeyup: V
|
|
712
712
|
};
|
|
713
713
|
if (_.value === !0) {
|
|
714
714
|
const u = {
|
|
715
715
|
onClick: R,
|
|
716
716
|
onKeydown: A,
|
|
717
|
-
onMousedown:
|
|
717
|
+
onMousedown: H
|
|
718
718
|
};
|
|
719
719
|
if (a.$q.platform.has.touch === !0) {
|
|
720
720
|
const y = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
@@ -741,47 +741,47 @@ const wt = W({
|
|
|
741
741
|
const y = document.activeElement;
|
|
742
742
|
if (e.type === "submit" && y !== document.body && s.value.contains(y) === !1 && y.contains(s.value) === !1) {
|
|
743
743
|
s.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, E), s.value !== null && s.value.removeEventListener("blur", U, E);
|
|
746
746
|
};
|
|
747
|
-
document.addEventListener("keydown", D, !0), document.addEventListener("keyup",
|
|
747
|
+
document.addEventListener("keydown", D, !0), document.addEventListener("keyup", U, E), s.value.addEventListener("blur", U, E);
|
|
748
748
|
}
|
|
749
749
|
}
|
|
750
750
|
v(u);
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
753
|
function A(u) {
|
|
754
|
-
s.value !== null && (n("keydown", u), ae(u, [13, 32]) === !0 && j !== s.value && (j !== null &&
|
|
754
|
+
s.value !== null && (n("keydown", u), ae(u, [13, 32]) === !0 && j !== s.value && (j !== null && K(), u.defaultPrevented !== !0 && (s.value.focus(), j = s.value, s.value.classList.add("q-btn--active"), document.addEventListener("keyup", M, !0), s.value.addEventListener("blur", M, E)), D(u)));
|
|
755
755
|
}
|
|
756
756
|
function O(u) {
|
|
757
|
-
s.value !== null && (n("touchstart", u), u.defaultPrevented !== !0 && (x !== s.value && (x !== null &&
|
|
757
|
+
s.value !== null && (n("touchstart", u), u.defaultPrevented !== !0 && (x !== s.value && (x !== null && K(), x = s.value, g = u.target, g.addEventListener("touchcancel", M, E), g.addEventListener("touchend", M, E)), h = !0, c !== null && clearTimeout(c), c = setTimeout(() => {
|
|
758
758
|
c = null, h = !1;
|
|
759
759
|
}, 200)));
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
s.value !== null && (u.qSkipRipple = h === !0, n("mousedown", u), u.defaultPrevented !== !0 && I !== s.value && (I !== null &&
|
|
761
|
+
function H(u) {
|
|
762
|
+
s.value !== null && (u.qSkipRipple = h === !0, n("mousedown", u), u.defaultPrevented !== !0 && I !== s.value && (I !== null && K(), I = s.value, s.value.classList.add("q-btn--active"), document.addEventListener("mouseup", M, E)));
|
|
763
763
|
}
|
|
764
764
|
function M(u) {
|
|
765
765
|
if (s.value !== null && !(u !== void 0 && u.type === "blur" && document.activeElement === s.value)) {
|
|
766
766
|
if (u !== void 0 && u.type === "keyup") {
|
|
767
767
|
if (j === s.value && ae(u, [13, 32]) === !0) {
|
|
768
768
|
const y = new MouseEvent("click", u);
|
|
769
|
-
y.qKeyEvent = !0, u.defaultPrevented === !0 &&
|
|
769
|
+
y.qKeyEvent = !0, u.defaultPrevented === !0 && at(y), u.cancelBubble === !0 && Ee(y), s.value.dispatchEvent(y), D(u), u.qKeyEvent = !0;
|
|
770
770
|
}
|
|
771
771
|
n("keyup", u);
|
|
772
772
|
}
|
|
773
|
-
|
|
773
|
+
K();
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function K(u) {
|
|
777
777
|
const y = f.value;
|
|
778
778
|
u !== !0 && (x === s.value || I === s.value) && y !== null && y !== document.activeElement && (y.setAttribute("tabindex", -1), y.focus()), x === s.value && (g !== null && (g.removeEventListener("touchcancel", M, E), g.removeEventListener("touchend", M, E)), x = g = null), I === s.value && (document.removeEventListener("mouseup", M, E), I = null), j === s.value && (document.removeEventListener("keyup", M, !0), s.value !== null && s.value.removeEventListener("blur", M, E), j = null), s.value !== null && s.value.classList.remove("q-btn--active");
|
|
779
779
|
}
|
|
780
|
-
function
|
|
780
|
+
function V(u) {
|
|
781
781
|
D(u), u.qSkipRipple = !0;
|
|
782
782
|
}
|
|
783
783
|
return Ae(() => {
|
|
784
|
-
|
|
784
|
+
K(!0);
|
|
785
785
|
}), Object.assign(a, {
|
|
786
786
|
click: (u) => {
|
|
787
787
|
_.value === !0 && R(u);
|
|
@@ -789,56 +789,56 @@ const wt = W({
|
|
|
789
789
|
}), () => {
|
|
790
790
|
let u = [];
|
|
791
791
|
e.icon !== void 0 && u.push(
|
|
792
|
-
|
|
792
|
+
p(de, {
|
|
793
793
|
name: e.icon,
|
|
794
|
-
left: e.stack !== !0 &&
|
|
794
|
+
left: e.stack !== !0 && m.value === !0,
|
|
795
795
|
role: "img"
|
|
796
796
|
})
|
|
797
|
-
),
|
|
798
|
-
|
|
799
|
-
), u =
|
|
800
|
-
|
|
797
|
+
), m.value === !0 && u.push(
|
|
798
|
+
p("span", { class: "block" }, [e.label])
|
|
799
|
+
), u = N(t.default, u), e.iconRight !== void 0 && e.round === !1 && u.push(
|
|
800
|
+
p(de, {
|
|
801
801
|
name: e.iconRight,
|
|
802
|
-
right: e.stack !== !0 &&
|
|
802
|
+
right: e.stack !== !0 && m.value === !0,
|
|
803
803
|
role: "img"
|
|
804
804
|
})
|
|
805
805
|
);
|
|
806
806
|
const y = [
|
|
807
|
-
|
|
807
|
+
p("span", {
|
|
808
808
|
class: "q-focus-helper",
|
|
809
809
|
ref: f
|
|
810
810
|
})
|
|
811
811
|
];
|
|
812
812
|
return e.loading === !0 && e.percentage !== void 0 && y.push(
|
|
813
|
-
|
|
813
|
+
p("span", {
|
|
814
814
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
815
815
|
}, [
|
|
816
|
-
|
|
816
|
+
p("span", {
|
|
817
817
|
class: "q-btn__progress-indicator fit block",
|
|
818
818
|
style: P.value
|
|
819
819
|
})
|
|
820
820
|
])
|
|
821
821
|
), y.push(
|
|
822
|
-
|
|
822
|
+
p("span", {
|
|
823
823
|
class: "q-btn__content text-center col items-center q-anchor--skip " + l.value
|
|
824
824
|
}, u)
|
|
825
825
|
), e.loading !== null && y.push(
|
|
826
|
-
|
|
826
|
+
p(ze, {
|
|
827
827
|
name: "q-transition--fade"
|
|
828
828
|
}, () => e.loading === !0 ? [
|
|
829
|
-
|
|
829
|
+
p("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() : [p(et)])
|
|
833
833
|
] : null)
|
|
834
|
-
),
|
|
835
|
-
|
|
834
|
+
), ke(
|
|
835
|
+
p(
|
|
836
836
|
k.value,
|
|
837
837
|
L.value,
|
|
838
838
|
y
|
|
839
839
|
),
|
|
840
840
|
[[
|
|
841
|
-
|
|
841
|
+
st,
|
|
842
842
|
w.value,
|
|
843
843
|
void 0,
|
|
844
844
|
B.value
|
|
@@ -846,7 +846,7 @@ const wt = W({
|
|
|
846
846
|
);
|
|
847
847
|
};
|
|
848
848
|
}
|
|
849
|
-
}),
|
|
849
|
+
}), wt = /* @__PURE__ */ G({
|
|
850
850
|
__name: "AppButton",
|
|
851
851
|
props: {
|
|
852
852
|
size: { default: $.MD },
|
|
@@ -885,7 +885,7 @@ const wt = W({
|
|
|
885
885
|
},
|
|
886
886
|
`app-btn_${t.color}`
|
|
887
887
|
]);
|
|
888
|
-
return (a, o) => (S(), _e(Q(
|
|
888
|
+
return (a, o) => (S(), _e(Q(St), {
|
|
889
889
|
"no-caps": "",
|
|
890
890
|
unelevated: "",
|
|
891
891
|
class: z(n.value),
|
|
@@ -932,13 +932,13 @@ const wt = W({
|
|
|
932
932
|
for (const [a, o] of t)
|
|
933
933
|
n[a] = o;
|
|
934
934
|
return n;
|
|
935
|
-
},
|
|
935
|
+
}, Zt = /* @__PURE__ */ Z(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 = {
|
|
939
939
|
key: 1,
|
|
940
940
|
class: "app-toggle__label"
|
|
941
|
-
},
|
|
941
|
+
}, Mt = /* @__PURE__ */ G({
|
|
942
942
|
__name: "AppToggle",
|
|
943
943
|
props: {
|
|
944
944
|
modelValue: { type: Boolean },
|
|
@@ -972,19 +972,19 @@ const wt = W({
|
|
|
972
972
|
return (l, r) => (S(), C("div", {
|
|
973
973
|
class: z(d.value)
|
|
974
974
|
}, [
|
|
975
|
-
l.label && l.labelLeft ? (S(), C("span",
|
|
976
|
-
F("label",
|
|
975
|
+
l.label && l.labelLeft ? (S(), C("span", Bt, Y(l.label), 1)) : T("", !0),
|
|
976
|
+
F("label", Ct, [
|
|
977
977
|
F("input", {
|
|
978
978
|
type: "checkbox",
|
|
979
979
|
checked: o.value,
|
|
980
980
|
onChange: r[0] || (r[0] = (q) => o.value = !o.value),
|
|
981
981
|
disabled: l.disabled,
|
|
982
982
|
class: "app-toggle__input"
|
|
983
|
-
}, null, 40,
|
|
983
|
+
}, null, 40, Lt),
|
|
984
984
|
F("span", {
|
|
985
985
|
class: z(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
|
|
986
986
|
}, [
|
|
987
|
-
F("span",
|
|
987
|
+
F("span", Et, [
|
|
988
988
|
l.icon && !l.modelValue ? (S(), C("i", {
|
|
989
989
|
key: 0,
|
|
990
990
|
class: z(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
|
|
@@ -1002,10 +1002,10 @@ const wt = W({
|
|
|
1002
1002
|
], 2),
|
|
1003
1003
|
$e(l.$slots, "default", {}, void 0, !0)
|
|
1004
1004
|
]),
|
|
1005
|
-
l.label && !l.labelLeft ? (S(), C("span",
|
|
1005
|
+
l.label && !l.labelLeft ? (S(), C("span", Rt, Y(l.label), 1)) : T("", !0)
|
|
1006
1006
|
], 2));
|
|
1007
1007
|
}
|
|
1008
|
-
}),
|
|
1008
|
+
}), en = /* @__PURE__ */ Z(Mt, [["__scopeId", "data-v-e0e56123"]]), Pt = /* @__PURE__ */ G({
|
|
1009
1009
|
__name: "AppIcon",
|
|
1010
1010
|
props: {
|
|
1011
1011
|
name: {},
|
|
@@ -1018,32 +1018,32 @@ const wt = W({
|
|
|
1018
1018
|
style: Se(t.size ? `font-size: ${t.size}` : void 0)
|
|
1019
1019
|
}, null, 6));
|
|
1020
1020
|
}
|
|
1021
|
-
}),
|
|
1021
|
+
}), tn = /* @__PURE__ */ Z(Pt, [["__scopeId", "data-v-941765ee"]]), At = {
|
|
1022
1022
|
dark: {
|
|
1023
1023
|
type: Boolean,
|
|
1024
1024
|
default: null
|
|
1025
1025
|
}
|
|
1026
1026
|
};
|
|
1027
|
-
function
|
|
1027
|
+
function zt(e, t) {
|
|
1028
1028
|
return i(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
1029
1029
|
}
|
|
1030
|
-
const
|
|
1030
|
+
const Tt = {
|
|
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 be(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 Ot = W({
|
|
1043
1043
|
name: "QLinearProgress",
|
|
1044
1044
|
props: {
|
|
1045
|
-
...
|
|
1046
|
-
...
|
|
1045
|
+
...At,
|
|
1046
|
+
...oe,
|
|
1047
1047
|
value: {
|
|
1048
1048
|
type: Number,
|
|
1049
1049
|
default: 0
|
|
@@ -1063,48 +1063,48 @@ const Dt = 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 = zt(e, n.$q), o = re(e, Tt), d = i(() => e.indeterminate === !0 || e.query === !0), l = i(() => e.reverse !== e.query), r = i(() => ({
|
|
1067
1067
|
...o.value !== null ? o.value : {},
|
|
1068
1068
|
"--q-linear-progress-speed": `${e.animationSpeed}ms`
|
|
1069
1069
|
})), q = i(
|
|
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 = i(() =>
|
|
1071
|
+
), k = i(() => be(e.buffer !== void 0 ? e.buffer : 1, l.value, n.$q)), v = i(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), _ = i(
|
|
1072
1072
|
() => `q-linear-progress__track absolute-full q-linear-progress__track--${v.value} q-linear-progress__track--${a.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
|
|
1073
|
-
), s = i(() =>
|
|
1073
|
+
), s = i(() => be(d.value === !0 ? 1 : e.value, l.value, n.$q)), f = i(
|
|
1074
1074
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${v.value} q-linear-progress__model--${d.value === !0 ? "in" : ""}determinate`
|
|
1075
1075
|
), g = i(() => ({ width: `${e.value * 100}%` })), h = i(
|
|
1076
1076
|
() => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${v.value}`
|
|
1077
1077
|
);
|
|
1078
1078
|
return () => {
|
|
1079
1079
|
const c = [
|
|
1080
|
-
|
|
1080
|
+
p("div", {
|
|
1081
1081
|
class: _.value,
|
|
1082
1082
|
style: k.value
|
|
1083
1083
|
}),
|
|
1084
|
-
|
|
1084
|
+
p("div", {
|
|
1085
1085
|
class: f.value,
|
|
1086
1086
|
style: s.value
|
|
1087
1087
|
})
|
|
1088
1088
|
];
|
|
1089
1089
|
return e.stripe === !0 && d.value === !1 && c.push(
|
|
1090
|
-
|
|
1090
|
+
p("div", {
|
|
1091
1091
|
class: h.value,
|
|
1092
1092
|
style: g.value
|
|
1093
1093
|
})
|
|
1094
|
-
),
|
|
1094
|
+
), p("div", {
|
|
1095
1095
|
class: q.value,
|
|
1096
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
|
-
},
|
|
1101
|
+
}, N(t.default, c));
|
|
1102
1102
|
};
|
|
1103
1103
|
}
|
|
1104
|
-
}),
|
|
1104
|
+
}), Dt = {
|
|
1105
1105
|
key: 0,
|
|
1106
1106
|
class: "code-field__label"
|
|
1107
|
-
},
|
|
1107
|
+
}, xt = { class: "code-field__inputs" }, jt = ["value", "disabled", "onInput", "onKeydown", "onPaste"], It = /* @__PURE__ */ G({
|
|
1108
1108
|
__name: "AppCodeInput",
|
|
1109
1109
|
props: {
|
|
1110
1110
|
length: { default: 5 },
|
|
@@ -1130,15 +1130,15 @@ const Dt = W({
|
|
|
1130
1130
|
let f = "";
|
|
1131
1131
|
return n.size == $.SM && (f += `width: ${n.length * 26 + (n.length - 1) * 5}px`), n.size == $.MD && (f += `width: ${n.length * 32 + (n.length - 1) * 8}px`), n.size == $.LG && (f += `width: ${n.length * 44 + (n.length - 1) * 10}px`), f;
|
|
1132
1132
|
}), k = (f, g) => {
|
|
1133
|
-
var
|
|
1133
|
+
var m;
|
|
1134
1134
|
const c = f.target.value;
|
|
1135
1135
|
if (c.length === 1)
|
|
1136
|
-
d.value[g] = c, g < o - 1 && l.value && ((
|
|
1136
|
+
d.value[g] = c, g < o - 1 && l.value && ((m = l.value[g + 1]) == null || m.focus());
|
|
1137
1137
|
else if (c.length > 1) {
|
|
1138
1138
|
const w = c.slice(0, o - g).split("");
|
|
1139
1139
|
w.forEach((B, P) => {
|
|
1140
1140
|
d.value[g + P] = B;
|
|
1141
|
-
}),
|
|
1141
|
+
}), ie(() => {
|
|
1142
1142
|
var B;
|
|
1143
1143
|
l.value && ((B = l.value[Math.min(g + w.length, o - 1)]) == null || B.focus());
|
|
1144
1144
|
});
|
|
@@ -1147,14 +1147,14 @@ const Dt = W({
|
|
|
1147
1147
|
var h;
|
|
1148
1148
|
d.value[g] === "" && l.value && g > 0 && l.value[g - 1] && ((h = l.value[g - 1]) == null || h.focus());
|
|
1149
1149
|
}, _ = (f, g) => {
|
|
1150
|
-
var
|
|
1150
|
+
var m;
|
|
1151
1151
|
f.preventDefault();
|
|
1152
|
-
const h = ((
|
|
1152
|
+
const h = ((m = f.clipboardData) == null ? void 0 : m.getData("text")) ?? "";
|
|
1153
1153
|
if (!h) return;
|
|
1154
1154
|
const c = h.slice(0, o - g).split("");
|
|
1155
1155
|
c.forEach((w, B) => {
|
|
1156
1156
|
d.value[g + B] = w;
|
|
1157
|
-
}),
|
|
1157
|
+
}), ie(() => {
|
|
1158
1158
|
var w;
|
|
1159
1159
|
l.value && ((w = l.value[Math.min(g + c.length, o - 1)]) == null || w.focus());
|
|
1160
1160
|
});
|
|
@@ -1172,11 +1172,11 @@ const Dt = W({
|
|
|
1172
1172
|
class: z(r.value),
|
|
1173
1173
|
style: Se(q.value)
|
|
1174
1174
|
}, [
|
|
1175
|
-
f.label ? (S(), C("label",
|
|
1176
|
-
F("div",
|
|
1177
|
-
(S(!0), C(qe, null, Ie(Q(o), (h, c) =>
|
|
1175
|
+
f.label ? (S(), C("label", Dt, Y(f.label), 1)) : T("", !0),
|
|
1176
|
+
F("div", xt, [
|
|
1177
|
+
(S(!0), C(qe, null, Ie(Q(o), (h, c) => (S(), C("input", {
|
|
1178
1178
|
key: c,
|
|
1179
|
-
|
|
1179
|
+
value: d.value[c],
|
|
1180
1180
|
ref_for: !0,
|
|
1181
1181
|
ref_key: "inputRefs",
|
|
1182
1182
|
ref: l,
|
|
@@ -1184,14 +1184,12 @@ const Dt = W({
|
|
|
1184
1184
|
maxlength: "1",
|
|
1185
1185
|
class: "code-field__input",
|
|
1186
1186
|
disabled: f.disabled || f.loading,
|
|
1187
|
-
onInput: (
|
|
1188
|
-
onKeydown:
|
|
1189
|
-
onPaste: (
|
|
1190
|
-
}, null, 40,
|
|
1191
|
-
[Ne, d.value[c]]
|
|
1192
|
-
])), 128))
|
|
1187
|
+
onInput: (m) => k(m, c),
|
|
1188
|
+
onKeydown: Ne((m) => v(m, c), ["backspace"]),
|
|
1189
|
+
onPaste: (m) => _(m, c)
|
|
1190
|
+
}, null, 40, jt))), 128))
|
|
1193
1191
|
]),
|
|
1194
|
-
f.loading ? (S(), _e(
|
|
1192
|
+
f.loading ? (S(), _e(Ot, {
|
|
1195
1193
|
key: 1,
|
|
1196
1194
|
indeterminate: "",
|
|
1197
1195
|
rounded: "",
|
|
@@ -1200,57 +1198,57 @@ const Dt = W({
|
|
|
1200
1198
|
}, null, 8, ["color"])) : T("", !0)
|
|
1201
1199
|
], 6));
|
|
1202
1200
|
}
|
|
1203
|
-
}),
|
|
1204
|
-
() => import("./AppButtonCopy-
|
|
1205
|
-
),
|
|
1206
|
-
() => import("./AppSelect-
|
|
1207
|
-
),
|
|
1208
|
-
() => import("./DropdownButton-
|
|
1201
|
+
}), nn = /* @__PURE__ */ Z(It, [["__scopeId", "data-v-b6098eec"]]), an = le(
|
|
1202
|
+
() => import("./AppButtonCopy-BAJDATwH.js")
|
|
1203
|
+
), ln = le(
|
|
1204
|
+
() => import("./AppSelect-CnoOOUQ9.js")
|
|
1205
|
+
), on = le(
|
|
1206
|
+
() => import("./DropdownButton-BhopZ7Zq.js")
|
|
1209
1207
|
);
|
|
1210
1208
|
export {
|
|
1211
|
-
|
|
1212
|
-
|
|
1209
|
+
Zt as A,
|
|
1210
|
+
ot as B,
|
|
1213
1211
|
we as C,
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1212
|
+
ft as D,
|
|
1213
|
+
Yt as E,
|
|
1214
|
+
Xt as F,
|
|
1215
|
+
Qt as G,
|
|
1216
|
+
tt as H,
|
|
1217
|
+
nt as I,
|
|
1218
|
+
on as J,
|
|
1219
|
+
an as K,
|
|
1220
|
+
ln as L,
|
|
1221
|
+
nn as M,
|
|
1222
|
+
en as N,
|
|
1223
|
+
tn as O,
|
|
1224
|
+
de as Q,
|
|
1225
|
+
st as R,
|
|
1228
1226
|
$ as S,
|
|
1229
1227
|
Z as _,
|
|
1230
|
-
|
|
1231
|
-
|
|
1228
|
+
re as a,
|
|
1229
|
+
N as b,
|
|
1232
1230
|
W as c,
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1231
|
+
oe as d,
|
|
1232
|
+
At as e,
|
|
1233
|
+
mt as f,
|
|
1236
1234
|
Kt as g,
|
|
1237
|
-
|
|
1235
|
+
Fe as h,
|
|
1238
1236
|
ae as i,
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1237
|
+
Wt as j,
|
|
1238
|
+
et as k,
|
|
1239
|
+
Ft as l,
|
|
1240
|
+
Vt as m,
|
|
1243
1241
|
J as n,
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1242
|
+
Ut as o,
|
|
1243
|
+
at as p,
|
|
1244
|
+
Gt as q,
|
|
1247
1245
|
Ht as r,
|
|
1248
1246
|
D as s,
|
|
1249
1247
|
Ee as t,
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1248
|
+
zt as u,
|
|
1249
|
+
rt as v,
|
|
1250
|
+
Jt as w,
|
|
1251
|
+
_t as x,
|
|
1252
|
+
St as y,
|
|
1253
|
+
lt as z
|
|
1256
1254
|
};
|