@validol4ik/uikit 0.6.10 → 0.7.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-Cpoz6v02.js → AppButtonCopy-Dj46pNGB.js} +1 -1
- package/dist/{AppButtonCopy-UfvMMx3V.cjs → AppButtonCopy-DnqF8jZQ.cjs} +1 -1
- package/dist/AppSelect-B3eGqxF7.cjs +1 -0
- package/dist/{AppSelect-JVVrifzF.js → AppSelect-ztwsDF-p.js} +756 -752
- package/dist/{DropdownButton-pcp6W_7i.js → DropdownButton-BE2k1gTw.js} +88 -89
- package/dist/DropdownButton-DpTSg2fU.cjs +1 -0
- package/dist/{QMenu-TwM_-QHE.js → QMenu-CrcmhT0u.js} +1 -1
- package/dist/{QMenu-B07m1rKE.cjs → QMenu-DNRkchme.cjs} +1 -1
- package/dist/{index-B0t4qh6b.js → index-BV2qSN9C.js} +485 -433
- package/dist/index-DXwv6jwP.cjs +1 -0
- package/dist/kl.woff +0 -0
- package/dist/style.css +1 -1
- package/dist/types/bootFiles/iconSet.d.ts +2 -0
- package/dist/types/components/buttons/AppButton/types.d.ts +1 -0
- package/dist/types/components/buttons/DropdownButton/types.d.ts +1 -0
- package/dist/types/components/constants.d.ts +3 -0
- package/dist/types/components/form/AppSegment/AppSegment.vue.d.ts +30 -0
- package/dist/types/components/form/AppSegment/types.d.ts +7 -0
- package/dist/types/components/form/AppSelect/AppSelect.vue.d.ts +4 -0
- package/dist/types/components/types.d.ts +1 -1
- package/dist/types/index.d.ts +8 -1
- package/dist/types/types/types.d.ts +1 -0
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +7 -5
- package/package.json +7 -1
- package/dist/AppSelect-9OPvOErd.cjs +0 -1
- package/dist/DropdownButton-BK_sSxXA.cjs +0 -1
- package/dist/index-BEJxpQtP.cjs +0 -1
|
@@ -1,37 +1,47 @@
|
|
|
1
|
-
import { computed as
|
|
2
|
-
const
|
|
1
|
+
import { computed as c, markRaw as Se, defineComponent as F, h as m, withDirectives as se, getCurrentInstance as Z, unref as W, ref as J, onBeforeUnmount as Oe, Transition as De, createBlock as Ce, openBlock as S, normalizeClass as M, withCtx as Ie, createElementBlock as C, createCommentVNode as T, renderSlot as re, Fragment as ie, createTextVNode as we, toDisplayString as H, createElementVNode as D, normalizeStyle as ue, watch as xe, onMounted as je, renderList as Be, withKeys as Ve, vModelText as Ke, nextTick as ve, mergeModels as Ne, useModel as Fe, defineAsyncComponent as ce } from "vue";
|
|
2
|
+
const Gt = ({ app: e }) => {
|
|
3
|
+
const t = e.config.globalProperties.$q;
|
|
4
|
+
t.iconMapFn = (a) => {
|
|
5
|
+
if (a.startsWith("icon-kl:"))
|
|
6
|
+
return {
|
|
7
|
+
cls: `icon-kl icon-kl-${a.slice(8)}`
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
}, Le = {
|
|
3
11
|
PRIMARY: "primary",
|
|
4
12
|
INFO: "info"
|
|
5
|
-
},
|
|
13
|
+
}, B = {
|
|
6
14
|
SM: "sm",
|
|
7
15
|
MD: "md",
|
|
8
|
-
LG: "lg"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
[
|
|
12
|
-
[
|
|
16
|
+
LG: "lg",
|
|
17
|
+
XL: "xl"
|
|
18
|
+
}, Qe = {
|
|
19
|
+
[B.SM]: "3px 9px",
|
|
20
|
+
[B.MD]: "5px 12px",
|
|
21
|
+
[B.LG]: "6px 15px",
|
|
22
|
+
[B.XL]: "9px 20px"
|
|
13
23
|
}, le = {
|
|
14
24
|
xs: 18,
|
|
15
25
|
sm: 24,
|
|
16
26
|
md: 32,
|
|
17
27
|
lg: 38,
|
|
18
28
|
xl: 46
|
|
19
|
-
},
|
|
29
|
+
}, de = {
|
|
20
30
|
size: String
|
|
21
31
|
};
|
|
22
|
-
function
|
|
23
|
-
return
|
|
32
|
+
function fe(e, t = le) {
|
|
33
|
+
return c(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
24
34
|
}
|
|
25
|
-
function
|
|
26
|
-
return
|
|
35
|
+
function ee(e) {
|
|
36
|
+
return Se(F(e));
|
|
27
37
|
}
|
|
28
|
-
function
|
|
29
|
-
return
|
|
38
|
+
function Ue(e) {
|
|
39
|
+
return Se(e);
|
|
30
40
|
}
|
|
31
|
-
function
|
|
41
|
+
function Xe(e, t) {
|
|
32
42
|
return e !== void 0 && e() || t;
|
|
33
43
|
}
|
|
34
|
-
function
|
|
44
|
+
function Yt(e, t) {
|
|
35
45
|
if (e !== void 0) {
|
|
36
46
|
const a = e();
|
|
37
47
|
if (a != null)
|
|
@@ -42,15 +52,15 @@ function Kt(e, t) {
|
|
|
42
52
|
function N(e, t) {
|
|
43
53
|
return e !== void 0 ? t.concat(e()) : t;
|
|
44
54
|
}
|
|
45
|
-
function
|
|
55
|
+
function Wt(e, t) {
|
|
46
56
|
return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
|
|
47
57
|
}
|
|
48
|
-
function
|
|
58
|
+
function Jt(e, t, a, n, o, r) {
|
|
49
59
|
t.key = n + o;
|
|
50
60
|
const l = m(e, t, a);
|
|
51
|
-
return o === !0 ?
|
|
61
|
+
return o === !0 ? se(l, r()) : l;
|
|
52
62
|
}
|
|
53
|
-
const
|
|
63
|
+
const ge = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ee = {
|
|
54
64
|
"mdi-": (e) => `mdi ${e}`,
|
|
55
65
|
"icon-": ne,
|
|
56
66
|
// fontawesome equiv
|
|
@@ -64,18 +74,18 @@ const de = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ce = {
|
|
|
64
74
|
"bi-": (e) => `bootstrap-icons ${e}`,
|
|
65
75
|
"i-": ne
|
|
66
76
|
// UnoCSS pure icons
|
|
67
|
-
},
|
|
77
|
+
}, Re = {
|
|
68
78
|
o_: "-outlined",
|
|
69
79
|
r_: "-round",
|
|
70
80
|
s_: "-sharp"
|
|
71
|
-
},
|
|
81
|
+
}, Me = {
|
|
72
82
|
sym_o_: "-outlined",
|
|
73
83
|
sym_r_: "-rounded",
|
|
74
84
|
sym_s_: "-sharp"
|
|
75
|
-
},
|
|
85
|
+
}, He = new RegExp("^(" + Object.keys(Ee).join("|") + ")"), Ge = new RegExp("^(" + Object.keys(Re).join("|") + ")"), pe = new RegExp("^(" + Object.keys(Me).join("|") + ")"), Ye = /^[Mm]\s?[-+]?\.?\d/, We = /^img:/, Je = /^svguse:/, Ze = /^ion-/, et = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, me = ee({
|
|
76
86
|
name: "QIcon",
|
|
77
87
|
props: {
|
|
78
|
-
...
|
|
88
|
+
...de,
|
|
79
89
|
tag: {
|
|
80
90
|
type: String,
|
|
81
91
|
default: "i"
|
|
@@ -86,17 +96,17 @@ const de = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ce = {
|
|
|
86
96
|
right: Boolean
|
|
87
97
|
},
|
|
88
98
|
setup(e, { slots: t }) {
|
|
89
|
-
const { proxy: { $q: a } } =
|
|
99
|
+
const { proxy: { $q: a } } = Z(), n = fe(e), o = c(
|
|
90
100
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
91
|
-
),
|
|
92
|
-
let l,
|
|
93
|
-
if (
|
|
101
|
+
), r = c(() => {
|
|
102
|
+
let l, s = e.name;
|
|
103
|
+
if (s === "none" || !s)
|
|
94
104
|
return { none: !0 };
|
|
95
105
|
if (a.iconMapFn !== null) {
|
|
96
|
-
const f = a.iconMapFn(
|
|
106
|
+
const f = a.iconMapFn(s);
|
|
97
107
|
if (f !== void 0)
|
|
98
108
|
if (f.icon !== void 0) {
|
|
99
|
-
if (
|
|
109
|
+
if (s = f.icon, s === "none" || !s)
|
|
100
110
|
return { none: !0 };
|
|
101
111
|
} else
|
|
102
112
|
return {
|
|
@@ -104,50 +114,50 @@ const de = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ce = {
|
|
|
104
114
|
content: f.content !== void 0 ? f.content : " "
|
|
105
115
|
};
|
|
106
116
|
}
|
|
107
|
-
if (
|
|
108
|
-
const [f,
|
|
117
|
+
if (Ye.test(s) === !0) {
|
|
118
|
+
const [f, _ = ge] = s.split("|");
|
|
109
119
|
return {
|
|
110
120
|
svg: !0,
|
|
111
|
-
viewBox:
|
|
121
|
+
viewBox: _,
|
|
112
122
|
nodes: f.split("&&").map((d) => {
|
|
113
|
-
const [q,
|
|
114
|
-
return m("path", { style:
|
|
123
|
+
const [q, u, g] = d.split("@@");
|
|
124
|
+
return m("path", { style: u, d: q, transform: g });
|
|
115
125
|
})
|
|
116
126
|
};
|
|
117
127
|
}
|
|
118
|
-
if (
|
|
128
|
+
if (We.test(s) === !0)
|
|
119
129
|
return {
|
|
120
130
|
img: !0,
|
|
121
|
-
src:
|
|
131
|
+
src: s.substring(4)
|
|
122
132
|
};
|
|
123
|
-
if (
|
|
124
|
-
const [f,
|
|
133
|
+
if (Je.test(s) === !0) {
|
|
134
|
+
const [f, _ = ge] = s.split("|");
|
|
125
135
|
return {
|
|
126
136
|
svguse: !0,
|
|
127
137
|
src: f.substring(7),
|
|
128
|
-
viewBox:
|
|
138
|
+
viewBox: _
|
|
129
139
|
};
|
|
130
140
|
}
|
|
131
|
-
let
|
|
132
|
-
const
|
|
133
|
-
if (
|
|
134
|
-
l =
|
|
135
|
-
else if (
|
|
136
|
-
l =
|
|
137
|
-
else if (
|
|
138
|
-
l = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${
|
|
139
|
-
else if (
|
|
141
|
+
let k = " ";
|
|
142
|
+
const b = s.match(He);
|
|
143
|
+
if (b !== null)
|
|
144
|
+
l = Ee[b[1]](s);
|
|
145
|
+
else if (et.test(s) === !0)
|
|
146
|
+
l = s;
|
|
147
|
+
else if (Ze.test(s) === !0)
|
|
148
|
+
l = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${s.substring(3)}`;
|
|
149
|
+
else if (pe.test(s) === !0) {
|
|
140
150
|
l = "notranslate material-symbols";
|
|
141
|
-
const f =
|
|
142
|
-
f !== null && (
|
|
151
|
+
const f = s.match(pe);
|
|
152
|
+
f !== null && (s = s.substring(6), l += Me[f[1]]), k = s;
|
|
143
153
|
} else {
|
|
144
154
|
l = "notranslate material-icons";
|
|
145
|
-
const f =
|
|
146
|
-
f !== null && (
|
|
155
|
+
const f = s.match(Ge);
|
|
156
|
+
f !== null && (s = s.substring(2), l += Re[f[1]]), k = s;
|
|
147
157
|
}
|
|
148
158
|
return {
|
|
149
159
|
cls: l,
|
|
150
|
-
content:
|
|
160
|
+
content: k
|
|
151
161
|
};
|
|
152
162
|
});
|
|
153
163
|
return () => {
|
|
@@ -156,49 +166,49 @@ const de = "0 0 24 24", ne = (e) => e, ae = (e) => `ionicons ${e}`, Ce = {
|
|
|
156
166
|
style: n.value,
|
|
157
167
|
"aria-hidden": "true"
|
|
158
168
|
};
|
|
159
|
-
return
|
|
160
|
-
m("img", { src:
|
|
161
|
-
])) :
|
|
169
|
+
return r.value.none === !0 ? m(e.tag, l, Xe(t.default)) : r.value.img === !0 ? m(e.tag, l, N(t.default, [
|
|
170
|
+
m("img", { src: r.value.src })
|
|
171
|
+
])) : r.value.svg === !0 ? m(e.tag, l, N(t.default, [
|
|
162
172
|
m("svg", {
|
|
163
|
-
viewBox:
|
|
164
|
-
},
|
|
165
|
-
])) :
|
|
173
|
+
viewBox: r.value.viewBox || "0 0 24 24"
|
|
174
|
+
}, r.value.nodes)
|
|
175
|
+
])) : r.value.svguse === !0 ? m(e.tag, l, N(t.default, [
|
|
166
176
|
m("svg", {
|
|
167
|
-
viewBox:
|
|
177
|
+
viewBox: r.value.viewBox
|
|
168
178
|
}, [
|
|
169
|
-
m("use", { "xlink:href":
|
|
179
|
+
m("use", { "xlink:href": r.value.src })
|
|
170
180
|
])
|
|
171
|
-
])) : (
|
|
172
|
-
|
|
181
|
+
])) : (r.value.cls !== void 0 && (l.class += " " + r.value.cls), m(e.tag, l, N(t.default, [
|
|
182
|
+
r.value.content
|
|
173
183
|
])));
|
|
174
184
|
};
|
|
175
185
|
}
|
|
176
|
-
}),
|
|
186
|
+
}), tt = {
|
|
177
187
|
size: {
|
|
178
188
|
type: [String, Number],
|
|
179
189
|
default: "1em"
|
|
180
190
|
},
|
|
181
191
|
color: String
|
|
182
192
|
};
|
|
183
|
-
function
|
|
193
|
+
function nt(e) {
|
|
184
194
|
return {
|
|
185
|
-
cSize:
|
|
186
|
-
classes:
|
|
195
|
+
cSize: c(() => e.size in le ? `${le[e.size]}px` : e.size),
|
|
196
|
+
classes: c(
|
|
187
197
|
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
188
198
|
)
|
|
189
199
|
};
|
|
190
200
|
}
|
|
191
|
-
const
|
|
201
|
+
const at = ee({
|
|
192
202
|
name: "QSpinner",
|
|
193
203
|
props: {
|
|
194
|
-
...
|
|
204
|
+
...tt,
|
|
195
205
|
thickness: {
|
|
196
206
|
type: Number,
|
|
197
207
|
default: 5
|
|
198
208
|
}
|
|
199
209
|
},
|
|
200
210
|
setup(e) {
|
|
201
|
-
const { cSize: t, classes: a } =
|
|
211
|
+
const { cSize: t, classes: a } = nt(e);
|
|
202
212
|
return () => m("svg", {
|
|
203
213
|
class: a.value + " q-spinner-mat",
|
|
204
214
|
width: t.value,
|
|
@@ -218,12 +228,12 @@ const tt = Z({
|
|
|
218
228
|
]);
|
|
219
229
|
}
|
|
220
230
|
});
|
|
221
|
-
function
|
|
231
|
+
function lt(e, t) {
|
|
222
232
|
const a = e.style;
|
|
223
233
|
for (const n in t)
|
|
224
234
|
a[n] = t[n];
|
|
225
235
|
}
|
|
226
|
-
function
|
|
236
|
+
function Zt(e) {
|
|
227
237
|
if (e == null)
|
|
228
238
|
return;
|
|
229
239
|
if (typeof e == "string")
|
|
@@ -232,11 +242,11 @@ function Gt(e) {
|
|
|
232
242
|
} catch {
|
|
233
243
|
return;
|
|
234
244
|
}
|
|
235
|
-
const t =
|
|
245
|
+
const t = W(e);
|
|
236
246
|
if (t)
|
|
237
247
|
return t.$el || t;
|
|
238
248
|
}
|
|
239
|
-
function
|
|
249
|
+
function en(e, t) {
|
|
240
250
|
if (e == null || e.contains(t) === !0)
|
|
241
251
|
return !0;
|
|
242
252
|
for (let a = e.nextElementSibling; a !== null; a = a.nextElementSibling)
|
|
@@ -244,7 +254,7 @@ function Ut(e, t) {
|
|
|
244
254
|
return !0;
|
|
245
255
|
return !1;
|
|
246
256
|
}
|
|
247
|
-
const
|
|
257
|
+
const te = {
|
|
248
258
|
hasPassive: !1,
|
|
249
259
|
passiveCapture: !0,
|
|
250
260
|
notPassiveCapture: !0
|
|
@@ -252,7 +262,7 @@ const ee = {
|
|
|
252
262
|
try {
|
|
253
263
|
const e = Object.defineProperty({}, "passive", {
|
|
254
264
|
get() {
|
|
255
|
-
Object.assign(
|
|
265
|
+
Object.assign(te, {
|
|
256
266
|
hasPassive: !0,
|
|
257
267
|
passive: { passive: !0 },
|
|
258
268
|
notPassive: { passive: !1 },
|
|
@@ -264,15 +274,15 @@ try {
|
|
|
264
274
|
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
265
275
|
} catch {
|
|
266
276
|
}
|
|
267
|
-
function
|
|
277
|
+
function tn() {
|
|
268
278
|
}
|
|
269
|
-
function
|
|
279
|
+
function ot(e) {
|
|
270
280
|
return e.touches && e.touches[0] ? e = e.touches[0] : e.changedTouches && e.changedTouches[0] ? e = e.changedTouches[0] : e.targetTouches && e.targetTouches[0] && (e = e.targetTouches[0]), {
|
|
271
281
|
top: e.clientY,
|
|
272
282
|
left: e.clientX
|
|
273
283
|
};
|
|
274
284
|
}
|
|
275
|
-
function
|
|
285
|
+
function nn(e) {
|
|
276
286
|
if (e.path)
|
|
277
287
|
return e.path;
|
|
278
288
|
if (e.composedPath)
|
|
@@ -285,34 +295,34 @@ function Yt(e) {
|
|
|
285
295
|
a = a.parentElement;
|
|
286
296
|
}
|
|
287
297
|
}
|
|
288
|
-
function
|
|
298
|
+
function Pe(e) {
|
|
289
299
|
e.stopPropagation();
|
|
290
300
|
}
|
|
291
|
-
function
|
|
301
|
+
function st(e) {
|
|
292
302
|
e.cancelable !== !1 && e.preventDefault();
|
|
293
303
|
}
|
|
294
304
|
function x(e) {
|
|
295
305
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
296
306
|
}
|
|
297
|
-
function
|
|
307
|
+
function rt(e, t, a) {
|
|
298
308
|
const n = `__q_${t}_evt`;
|
|
299
309
|
e[n] = e[n] !== void 0 ? e[n].concat(a) : a, a.forEach((o) => {
|
|
300
|
-
o[0].addEventListener(o[1], e[o[2]],
|
|
310
|
+
o[0].addEventListener(o[1], e[o[2]], te[o[3]]);
|
|
301
311
|
});
|
|
302
312
|
}
|
|
303
|
-
function
|
|
313
|
+
function it(e, t) {
|
|
304
314
|
const a = `__q_${t}_evt`;
|
|
305
315
|
e[a] !== void 0 && (e[a].forEach((n) => {
|
|
306
|
-
n[0].removeEventListener(n[1], e[n[2]],
|
|
316
|
+
n[0].removeEventListener(n[1], e[n[2]], te[n[3]]);
|
|
307
317
|
}), e[a] = void 0);
|
|
308
318
|
}
|
|
309
|
-
function
|
|
319
|
+
function ut(e) {
|
|
310
320
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
311
321
|
}
|
|
312
322
|
function oe(e, t) {
|
|
313
|
-
return
|
|
323
|
+
return ut(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
314
324
|
}
|
|
315
|
-
function
|
|
325
|
+
function ct(e, t = 250) {
|
|
316
326
|
let a = !1, n;
|
|
317
327
|
return function() {
|
|
318
328
|
return a === !1 && (a = !0, setTimeout(() => {
|
|
@@ -320,31 +330,31 @@ function st(e, t = 250) {
|
|
|
320
330
|
}, t), n = e.apply(this, arguments)), n;
|
|
321
331
|
};
|
|
322
332
|
}
|
|
323
|
-
function
|
|
324
|
-
a.modifiers.stop === !0 &&
|
|
333
|
+
function he(e, t, a, n) {
|
|
334
|
+
a.modifiers.stop === !0 && Pe(e);
|
|
325
335
|
const o = a.modifiers.color;
|
|
326
|
-
let
|
|
327
|
-
|
|
328
|
-
const l = document.createElement("span"),
|
|
329
|
-
|
|
336
|
+
let r = a.modifiers.center;
|
|
337
|
+
r = r === !0 || n === !0;
|
|
338
|
+
const l = document.createElement("span"), s = document.createElement("span"), k = ot(e), { left: b, top: f, width: _, height: d } = t.getBoundingClientRect(), q = Math.sqrt(_ * _ + d * d), u = q / 2, g = `${(_ - q) / 2}px`, v = r ? g : `${k.left - b - u}px`, p = `${(d - q) / 2}px`, $ = r ? p : `${k.top - f - u}px`;
|
|
339
|
+
s.className = "q-ripple__inner", lt(s, {
|
|
330
340
|
height: `${q}px`,
|
|
331
341
|
width: `${q}px`,
|
|
332
|
-
transform: `translate3d(${v},${
|
|
342
|
+
transform: `translate3d(${v},${$},0) scale3d(.2,.2,1)`,
|
|
333
343
|
opacity: 0
|
|
334
|
-
}), l.className = `q-ripple${o ? " text-" + o : ""}`, l.setAttribute("dir", "ltr"), l.appendChild(
|
|
344
|
+
}), l.className = `q-ripple${o ? " text-" + o : ""}`, l.setAttribute("dir", "ltr"), l.appendChild(s), t.appendChild(l);
|
|
335
345
|
const w = () => {
|
|
336
|
-
l.remove(), clearTimeout(
|
|
346
|
+
l.remove(), clearTimeout(L);
|
|
337
347
|
};
|
|
338
348
|
a.abort.push(w);
|
|
339
|
-
let
|
|
340
|
-
|
|
341
|
-
|
|
349
|
+
let L = setTimeout(() => {
|
|
350
|
+
s.classList.add("q-ripple__inner--enter"), s.style.transform = `translate3d(${g},${p},0) scale3d(1,1,1)`, s.style.opacity = 0.2, L = setTimeout(() => {
|
|
351
|
+
s.classList.remove("q-ripple__inner--enter"), s.classList.add("q-ripple__inner--leave"), s.style.opacity = 0, L = setTimeout(() => {
|
|
342
352
|
l.remove(), a.abort.splice(a.abort.indexOf(w), 1);
|
|
343
353
|
}, 275);
|
|
344
354
|
}, 250);
|
|
345
355
|
}, 50);
|
|
346
356
|
}
|
|
347
|
-
function
|
|
357
|
+
function be(e, { modifiers: t, value: a, arg: n }) {
|
|
348
358
|
const o = Object.assign({}, e.cfg.ripple, t, a);
|
|
349
359
|
e.modifiers = {
|
|
350
360
|
early: o.early === !0,
|
|
@@ -354,7 +364,7 @@ function pe(e, { modifiers: t, value: a, arg: n }) {
|
|
|
354
364
|
keyCodes: [].concat(o.keyCodes || 13)
|
|
355
365
|
};
|
|
356
366
|
}
|
|
357
|
-
const
|
|
367
|
+
const dt = Ue(
|
|
358
368
|
{
|
|
359
369
|
name: "ripple",
|
|
360
370
|
beforeMount(e, t) {
|
|
@@ -366,13 +376,13 @@ const ut = Fe(
|
|
|
366
376
|
modifiers: {},
|
|
367
377
|
abort: [],
|
|
368
378
|
start(o) {
|
|
369
|
-
n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") &&
|
|
379
|
+
n.enabled === !0 && o.qSkipRipple !== !0 && o.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && he(o, e, n, o.qKeyEvent === !0);
|
|
370
380
|
},
|
|
371
|
-
keystart:
|
|
372
|
-
n.enabled === !0 && o.qSkipRipple !== !0 && oe(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` &&
|
|
381
|
+
keystart: ct((o) => {
|
|
382
|
+
n.enabled === !0 && o.qSkipRipple !== !0 && oe(o, n.modifiers.keyCodes) === !0 && o.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && he(o, e, n, !0);
|
|
373
383
|
}, 300)
|
|
374
384
|
};
|
|
375
|
-
|
|
385
|
+
be(n, t), e.__qripple = n, rt(n, "main", [
|
|
376
386
|
[e, "pointerdown", "start", "passive"],
|
|
377
387
|
[e, "click", "start", "passive"],
|
|
378
388
|
[e, "keydown", "keystart", "passive"],
|
|
@@ -382,17 +392,17 @@ const ut = Fe(
|
|
|
382
392
|
updated(e, t) {
|
|
383
393
|
if (t.oldValue !== t.value) {
|
|
384
394
|
const a = e.__qripple;
|
|
385
|
-
a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value &&
|
|
395
|
+
a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value && be(a, t));
|
|
386
396
|
}
|
|
387
397
|
},
|
|
388
398
|
beforeUnmount(e) {
|
|
389
399
|
const t = e.__qripple;
|
|
390
400
|
t !== void 0 && (t.abort.forEach((a) => {
|
|
391
401
|
a();
|
|
392
|
-
}),
|
|
402
|
+
}), it(t, "main"), delete e._qripple);
|
|
393
403
|
}
|
|
394
404
|
}
|
|
395
|
-
),
|
|
405
|
+
), Ae = {
|
|
396
406
|
left: "start",
|
|
397
407
|
center: "center",
|
|
398
408
|
right: "end",
|
|
@@ -400,19 +410,19 @@ const ut = Fe(
|
|
|
400
410
|
around: "around",
|
|
401
411
|
evenly: "evenly",
|
|
402
412
|
stretch: "stretch"
|
|
403
|
-
},
|
|
413
|
+
}, ft = Object.keys(Ae), vt = {
|
|
404
414
|
align: {
|
|
405
415
|
type: String,
|
|
406
|
-
validator: (e) =>
|
|
416
|
+
validator: (e) => ft.includes(e)
|
|
407
417
|
}
|
|
408
418
|
};
|
|
409
|
-
function
|
|
410
|
-
return
|
|
419
|
+
function gt(e) {
|
|
420
|
+
return c(() => {
|
|
411
421
|
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
412
|
-
return `${e.vertical === !0 ? "items" : "justify"}-${
|
|
422
|
+
return `${e.vertical === !0 ? "items" : "justify"}-${Ae[t]}`;
|
|
413
423
|
});
|
|
414
424
|
}
|
|
415
|
-
function
|
|
425
|
+
function an(e) {
|
|
416
426
|
if (Object(e.$parent) === e.$parent)
|
|
417
427
|
return e.$parent;
|
|
418
428
|
let { parent: t } = e.$;
|
|
@@ -422,44 +432,44 @@ function Xt(e) {
|
|
|
422
432
|
t = t.parent;
|
|
423
433
|
}
|
|
424
434
|
}
|
|
425
|
-
function
|
|
435
|
+
function pt(e) {
|
|
426
436
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
427
437
|
}
|
|
428
|
-
function
|
|
438
|
+
function ln(e) {
|
|
429
439
|
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
430
440
|
}
|
|
431
|
-
function
|
|
441
|
+
function ye(e) {
|
|
432
442
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
433
443
|
}
|
|
434
|
-
function
|
|
444
|
+
function ke(e, t) {
|
|
435
445
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
436
446
|
}
|
|
437
|
-
function
|
|
447
|
+
function mt(e, t) {
|
|
438
448
|
for (const a in t) {
|
|
439
449
|
const n = t[a], o = e[a];
|
|
440
450
|
if (typeof n == "string") {
|
|
441
451
|
if (n !== o)
|
|
442
452
|
return !1;
|
|
443
|
-
} else if (Array.isArray(o) === !1 || o.length !== n.length || n.some((
|
|
453
|
+
} else if (Array.isArray(o) === !1 || o.length !== n.length || n.some((r, l) => r !== o[l]))
|
|
444
454
|
return !1;
|
|
445
455
|
}
|
|
446
456
|
return !0;
|
|
447
457
|
}
|
|
448
|
-
function
|
|
458
|
+
function _e(e, t) {
|
|
449
459
|
return Array.isArray(t) === !0 ? e.length === t.length && e.every((a, n) => a === t[n]) : e.length === 1 && e[0] === t;
|
|
450
460
|
}
|
|
451
|
-
function
|
|
452
|
-
return Array.isArray(e) === !0 ?
|
|
461
|
+
function ht(e, t) {
|
|
462
|
+
return Array.isArray(e) === !0 ? _e(e, t) : Array.isArray(t) === !0 ? _e(t, e) : e === t;
|
|
453
463
|
}
|
|
454
|
-
function
|
|
464
|
+
function bt(e, t) {
|
|
455
465
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
456
466
|
return !1;
|
|
457
467
|
for (const a in e)
|
|
458
|
-
if (
|
|
468
|
+
if (ht(e[a], t[a]) === !1)
|
|
459
469
|
return !1;
|
|
460
470
|
return !0;
|
|
461
471
|
}
|
|
462
|
-
const
|
|
472
|
+
const ze = {
|
|
463
473
|
// router-link
|
|
464
474
|
to: [String, Object],
|
|
465
475
|
replace: Boolean,
|
|
@@ -468,8 +478,8 @@ const Pe = {
|
|
|
468
478
|
target: String,
|
|
469
479
|
// state
|
|
470
480
|
disable: Boolean
|
|
471
|
-
},
|
|
472
|
-
...
|
|
481
|
+
}, on = {
|
|
482
|
+
...ze,
|
|
473
483
|
// router-link
|
|
474
484
|
exact: Boolean,
|
|
475
485
|
activeClass: {
|
|
@@ -481,51 +491,51 @@ const Pe = {
|
|
|
481
491
|
default: "q-router-link--exact-active"
|
|
482
492
|
}
|
|
483
493
|
};
|
|
484
|
-
function
|
|
485
|
-
const a =
|
|
486
|
-
() => l === !0 && n.disable !== !0 &&
|
|
487
|
-
) :
|
|
488
|
-
() => l === !0 &&
|
|
489
|
-
),
|
|
494
|
+
function yt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
495
|
+
const a = Z(), { props: n, proxy: o, emit: r } = a, l = pt(a), s = c(() => n.disable !== !0 && n.href !== void 0), k = t === !0 ? c(
|
|
496
|
+
() => l === !0 && n.disable !== !0 && s.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
497
|
+
) : c(
|
|
498
|
+
() => l === !0 && s.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
499
|
+
), b = c(() => k.value === !0 ? $(n.to) : null), f = c(() => b.value !== null), _ = c(() => s.value === !0 || f.value === !0), d = c(() => n.type === "a" || _.value === !0 ? "a" : n.tag || e || "div"), q = c(() => s.value === !0 ? {
|
|
490
500
|
href: n.href,
|
|
491
501
|
target: n.target
|
|
492
502
|
} : f.value === !0 ? {
|
|
493
|
-
href:
|
|
503
|
+
href: b.value.href,
|
|
494
504
|
target: n.target
|
|
495
|
-
} : {}),
|
|
505
|
+
} : {}), u = c(() => {
|
|
496
506
|
if (f.value === !1)
|
|
497
507
|
return -1;
|
|
498
|
-
const { matched: h } =
|
|
499
|
-
if (
|
|
508
|
+
const { matched: h } = b.value, { length: E } = h, P = h[E - 1];
|
|
509
|
+
if (P === void 0)
|
|
500
510
|
return -1;
|
|
501
|
-
const
|
|
502
|
-
if (
|
|
511
|
+
const z = o.$route.matched;
|
|
512
|
+
if (z.length === 0)
|
|
503
513
|
return -1;
|
|
504
|
-
const O =
|
|
505
|
-
|
|
514
|
+
const O = z.findIndex(
|
|
515
|
+
ke.bind(null, P)
|
|
506
516
|
);
|
|
507
517
|
if (O !== -1)
|
|
508
518
|
return O;
|
|
509
|
-
const
|
|
519
|
+
const Y = ye(h[E - 2]);
|
|
510
520
|
return (
|
|
511
521
|
// we are dealing with nested routes
|
|
512
|
-
E > 1 &&
|
|
513
|
-
|
|
522
|
+
E > 1 && ye(P) === Y && z[z.length - 1].path !== Y ? z.findIndex(
|
|
523
|
+
ke.bind(null, h[E - 2])
|
|
514
524
|
) : O
|
|
515
525
|
);
|
|
516
|
-
}), g =
|
|
517
|
-
() => f.value === !0 &&
|
|
518
|
-
), v =
|
|
519
|
-
() => g.value === !0 &&
|
|
520
|
-
), p =
|
|
521
|
-
function
|
|
526
|
+
}), g = c(
|
|
527
|
+
() => f.value === !0 && u.value !== -1 && mt(o.$route.params, b.value.params)
|
|
528
|
+
), v = c(
|
|
529
|
+
() => g.value === !0 && u.value === o.$route.matched.length - 1 && bt(o.$route.params, b.value.params)
|
|
530
|
+
), p = c(() => f.value === !0 ? v.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : g.value === !0 ? ` ${n.activeClass}` : "" : "");
|
|
531
|
+
function $(h) {
|
|
522
532
|
try {
|
|
523
533
|
return o.$router.resolve(h);
|
|
524
534
|
} catch {
|
|
525
535
|
}
|
|
526
536
|
return null;
|
|
527
537
|
}
|
|
528
|
-
function w(h, { returnRouterError: E, to:
|
|
538
|
+
function w(h, { returnRouterError: E, to: P = n.to, replace: z = n.replace } = {}) {
|
|
529
539
|
if (n.disable === !0)
|
|
530
540
|
return h.preventDefault(), Promise.resolve(!1);
|
|
531
541
|
if (
|
|
@@ -535,57 +545,57 @@ function ht({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
535
545
|
)
|
|
536
546
|
return Promise.resolve(!1);
|
|
537
547
|
h.preventDefault();
|
|
538
|
-
const O = o.$router[
|
|
548
|
+
const O = o.$router[z === !0 ? "replace" : "push"](P);
|
|
539
549
|
return E === !0 ? O : O.then(() => {
|
|
540
550
|
}).catch(() => {
|
|
541
551
|
});
|
|
542
552
|
}
|
|
543
|
-
function
|
|
553
|
+
function L(h) {
|
|
544
554
|
if (f.value === !0) {
|
|
545
|
-
const E = (
|
|
546
|
-
|
|
555
|
+
const E = (P) => w(h, P);
|
|
556
|
+
r("click", h, E), h.defaultPrevented !== !0 && E();
|
|
547
557
|
} else
|
|
548
|
-
|
|
558
|
+
r("click", h);
|
|
549
559
|
}
|
|
550
560
|
return {
|
|
551
561
|
hasRouterLink: f,
|
|
552
|
-
hasHrefLink:
|
|
553
|
-
hasLink:
|
|
562
|
+
hasHrefLink: s,
|
|
563
|
+
hasLink: _,
|
|
554
564
|
linkTag: d,
|
|
555
|
-
resolvedLink:
|
|
565
|
+
resolvedLink: b,
|
|
556
566
|
linkIsActive: g,
|
|
557
567
|
linkIsExactActive: v,
|
|
558
568
|
linkClass: p,
|
|
559
569
|
linkAttrs: q,
|
|
560
|
-
getLink:
|
|
570
|
+
getLink: $,
|
|
561
571
|
navigateToRouterLink: w,
|
|
562
|
-
navigateOnClick:
|
|
572
|
+
navigateOnClick: L
|
|
563
573
|
};
|
|
564
574
|
}
|
|
565
|
-
const
|
|
575
|
+
const $e = {
|
|
566
576
|
none: 0,
|
|
567
577
|
xs: 4,
|
|
568
578
|
sm: 8,
|
|
569
579
|
md: 16,
|
|
570
580
|
lg: 24,
|
|
571
581
|
xl: 32
|
|
572
|
-
},
|
|
582
|
+
}, kt = {
|
|
573
583
|
xs: 8,
|
|
574
584
|
sm: 10,
|
|
575
585
|
md: 14,
|
|
576
586
|
lg: 20,
|
|
577
587
|
xl: 24
|
|
578
|
-
},
|
|
579
|
-
function
|
|
588
|
+
}, _t = ["button", "submit", "reset"], $t = /[^\s]\/[^\s]/, qt = ["flat", "outline", "push", "unelevated"];
|
|
589
|
+
function Te(e, t) {
|
|
580
590
|
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
|
|
581
591
|
}
|
|
582
|
-
function
|
|
583
|
-
const t =
|
|
592
|
+
function sn(e) {
|
|
593
|
+
const t = Te(e);
|
|
584
594
|
return t !== void 0 ? { [t]: !0 } : {};
|
|
585
595
|
}
|
|
586
|
-
const
|
|
587
|
-
...
|
|
588
|
-
...
|
|
596
|
+
const St = {
|
|
597
|
+
...de,
|
|
598
|
+
...ze,
|
|
589
599
|
type: {
|
|
590
600
|
type: String,
|
|
591
601
|
default: "button"
|
|
@@ -593,7 +603,7 @@ const $t = {
|
|
|
593
603
|
label: [Number, String],
|
|
594
604
|
icon: String,
|
|
595
605
|
iconRight: String,
|
|
596
|
-
...
|
|
606
|
+
...qt.reduce(
|
|
597
607
|
(e, t) => (e[t] = Boolean) && e,
|
|
598
608
|
{}
|
|
599
609
|
),
|
|
@@ -615,7 +625,7 @@ const $t = {
|
|
|
615
625
|
default: !0
|
|
616
626
|
},
|
|
617
627
|
align: {
|
|
618
|
-
...
|
|
628
|
+
...vt.align,
|
|
619
629
|
default: "center"
|
|
620
630
|
},
|
|
621
631
|
stack: Boolean,
|
|
@@ -625,100 +635,100 @@ const $t = {
|
|
|
625
635
|
default: null
|
|
626
636
|
},
|
|
627
637
|
disable: Boolean
|
|
628
|
-
},
|
|
629
|
-
|
|
638
|
+
}, Ct = {
|
|
639
|
+
...St,
|
|
630
640
|
round: Boolean
|
|
631
641
|
};
|
|
632
|
-
function
|
|
633
|
-
const t =
|
|
642
|
+
function wt(e) {
|
|
643
|
+
const t = fe(e, kt), a = gt(e), { hasRouterLink: n, hasLink: o, linkTag: r, linkAttrs: l, navigateOnClick: s } = yt({
|
|
634
644
|
fallbackTag: "button"
|
|
635
|
-
}),
|
|
645
|
+
}), k = c(() => {
|
|
636
646
|
const v = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
637
647
|
return e.padding !== void 0 ? Object.assign({}, v, {
|
|
638
|
-
padding: e.padding.split(/\s+/).map((p) => p in
|
|
648
|
+
padding: e.padding.split(/\s+/).map((p) => p in $e ? $e[p] + "px" : p).join(" "),
|
|
639
649
|
minWidth: "0",
|
|
640
650
|
minHeight: "0"
|
|
641
651
|
}) : v;
|
|
642
|
-
}),
|
|
652
|
+
}), b = c(
|
|
643
653
|
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
644
|
-
), f =
|
|
654
|
+
), f = c(
|
|
645
655
|
() => e.disable !== !0 && e.loading !== !0
|
|
646
|
-
),
|
|
647
|
-
const v = { tabindex:
|
|
648
|
-
return o.value === !0 ? Object.assign(v, l.value) :
|
|
656
|
+
), _ = c(() => f.value === !0 ? e.tabindex || 0 : -1), d = c(() => Te(e, "standard")), q = c(() => {
|
|
657
|
+
const v = { tabindex: _.value };
|
|
658
|
+
return o.value === !0 ? Object.assign(v, l.value) : _t.includes(e.type) === !0 && (v.type = e.type), r.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"), n.value !== !0 && $t.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
659
|
role: "progressbar",
|
|
650
660
|
"aria-valuemin": 0,
|
|
651
661
|
"aria-valuemax": 100,
|
|
652
662
|
"aria-valuenow": e.percentage
|
|
653
663
|
}), v;
|
|
654
|
-
}),
|
|
664
|
+
}), u = c(() => {
|
|
655
665
|
let v;
|
|
656
666
|
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${
|
|
667
|
+
const p = e.round === !0 ? "round" : `rectangle${b.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
658
668
|
return `q-btn--${d.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 =
|
|
669
|
+
}), g = c(
|
|
660
670
|
() => a.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
661
671
|
);
|
|
662
672
|
return {
|
|
663
|
-
classes:
|
|
664
|
-
style:
|
|
673
|
+
classes: u,
|
|
674
|
+
style: k,
|
|
665
675
|
innerClasses: g,
|
|
666
676
|
attributes: q,
|
|
667
677
|
hasLink: o,
|
|
668
|
-
linkTag:
|
|
669
|
-
navigateOnClick:
|
|
678
|
+
linkTag: r,
|
|
679
|
+
navigateOnClick: s,
|
|
670
680
|
isActionable: f
|
|
671
681
|
};
|
|
672
682
|
}
|
|
673
|
-
const { passiveCapture: R } =
|
|
674
|
-
let j = null,
|
|
675
|
-
const
|
|
683
|
+
const { passiveCapture: R } = te;
|
|
684
|
+
let j = null, V = null, K = null;
|
|
685
|
+
const Bt = ee({
|
|
676
686
|
name: "QBtn",
|
|
677
687
|
props: {
|
|
678
|
-
...
|
|
688
|
+
...Ct,
|
|
679
689
|
percentage: Number,
|
|
680
690
|
darkPercentage: Boolean,
|
|
681
691
|
onTouchstart: [Function, Array]
|
|
682
692
|
},
|
|
683
693
|
emits: ["click", "keydown", "mousedown", "keyup"],
|
|
684
694
|
setup(e, { slots: t, emit: a }) {
|
|
685
|
-
const { proxy: n } =
|
|
695
|
+
const { proxy: n } = Z(), {
|
|
686
696
|
classes: o,
|
|
687
|
-
style:
|
|
697
|
+
style: r,
|
|
688
698
|
innerClasses: l,
|
|
689
|
-
attributes:
|
|
690
|
-
hasLink:
|
|
691
|
-
linkTag:
|
|
699
|
+
attributes: s,
|
|
700
|
+
hasLink: k,
|
|
701
|
+
linkTag: b,
|
|
692
702
|
navigateOnClick: f,
|
|
693
|
-
isActionable:
|
|
694
|
-
} =
|
|
695
|
-
let
|
|
696
|
-
const p =
|
|
703
|
+
isActionable: _
|
|
704
|
+
} = wt(e), d = J(null), q = J(null);
|
|
705
|
+
let u = null, g, v = null;
|
|
706
|
+
const p = c(
|
|
697
707
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
698
|
-
),
|
|
699
|
-
keyCodes:
|
|
708
|
+
), $ = c(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
709
|
+
keyCodes: k.value === !0 ? [13, 32] : [13],
|
|
700
710
|
...e.ripple === !0 ? {} : e.ripple
|
|
701
|
-
}), w =
|
|
711
|
+
}), w = c(() => ({ center: e.round })), L = c(() => {
|
|
702
712
|
const i = Math.max(0, Math.min(100, e.percentage));
|
|
703
713
|
return i > 0 ? { transition: "transform 0.6s", transform: `translateX(${i - 100}%)` } : {};
|
|
704
|
-
}), h =
|
|
714
|
+
}), h = c(() => {
|
|
705
715
|
if (e.loading === !0)
|
|
706
716
|
return {
|
|
707
|
-
onMousedown:
|
|
708
|
-
onTouchstart:
|
|
709
|
-
onClick:
|
|
710
|
-
onKeydown:
|
|
711
|
-
onKeyup:
|
|
717
|
+
onMousedown: U,
|
|
718
|
+
onTouchstart: U,
|
|
719
|
+
onClick: U,
|
|
720
|
+
onKeydown: U,
|
|
721
|
+
onKeyup: U
|
|
712
722
|
};
|
|
713
|
-
if (
|
|
723
|
+
if (_.value === !0) {
|
|
714
724
|
const i = {
|
|
715
|
-
onClick:
|
|
716
|
-
onKeydown:
|
|
717
|
-
onMousedown:
|
|
725
|
+
onClick: P,
|
|
726
|
+
onKeydown: z,
|
|
727
|
+
onMousedown: Y
|
|
718
728
|
};
|
|
719
729
|
if (n.$q.platform.has.touch === !0) {
|
|
720
|
-
const
|
|
721
|
-
i[`onTouchstart${
|
|
730
|
+
const y = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
731
|
+
i[`onTouchstart${y}`] = O;
|
|
722
732
|
}
|
|
723
733
|
return i;
|
|
724
734
|
}
|
|
@@ -726,71 +736,71 @@ const wt = Z({
|
|
|
726
736
|
// needed; especially for disabled <a> tags
|
|
727
737
|
onClick: x
|
|
728
738
|
};
|
|
729
|
-
}), E =
|
|
739
|
+
}), E = c(() => ({
|
|
730
740
|
ref: d,
|
|
731
741
|
class: "q-btn q-btn-item non-selectable no-outline " + o.value,
|
|
732
|
-
style:
|
|
733
|
-
...
|
|
742
|
+
style: r.value,
|
|
743
|
+
...s.value,
|
|
734
744
|
...h.value
|
|
735
745
|
}));
|
|
736
|
-
function
|
|
746
|
+
function P(i) {
|
|
737
747
|
if (d.value !== null) {
|
|
738
748
|
if (i !== void 0) {
|
|
739
749
|
if (i.defaultPrevented === !0) return;
|
|
740
|
-
const
|
|
741
|
-
if (e.type === "submit" &&
|
|
750
|
+
const y = document.activeElement;
|
|
751
|
+
if (e.type === "submit" && y !== document.body && d.value.contains(y) === !1 && y.contains(d.value) === !1) {
|
|
742
752
|
i.qAvoidFocus !== !0 && d.value.focus();
|
|
743
|
-
const
|
|
744
|
-
var
|
|
745
|
-
document.removeEventListener("keydown", x, !0), document.removeEventListener("keyup",
|
|
753
|
+
const I = () => {
|
|
754
|
+
var X;
|
|
755
|
+
document.removeEventListener("keydown", x, !0), document.removeEventListener("keyup", I, R), (X = d.value) == null || X.removeEventListener("blur", I, R);
|
|
746
756
|
};
|
|
747
|
-
document.addEventListener("keydown", x, !0), document.addEventListener("keyup",
|
|
757
|
+
document.addEventListener("keydown", x, !0), document.addEventListener("keyup", I, R), d.value.addEventListener("blur", I, R);
|
|
748
758
|
}
|
|
749
759
|
}
|
|
750
760
|
f(i);
|
|
751
761
|
}
|
|
752
762
|
}
|
|
753
|
-
function
|
|
754
|
-
d.value !== null && (a("keydown", i), oe(i, [13, 32]) === !0 &&
|
|
763
|
+
function z(i) {
|
|
764
|
+
d.value !== null && (a("keydown", i), oe(i, [13, 32]) === !0 && V !== d.value && (V !== null && Q(), i.defaultPrevented !== !0 && (i.qAvoidFocus !== !0 && d.value.focus(), V = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", A, !0), d.value.addEventListener("blur", A, R)), x(i)));
|
|
755
765
|
}
|
|
756
766
|
function O(i) {
|
|
757
|
-
d.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (j !== d.value && (j !== null &&
|
|
767
|
+
d.value !== null && (a("touchstart", i), i.defaultPrevented !== !0 && (j !== d.value && (j !== null && Q(), j = d.value, u = i.target, u.addEventListener("touchcancel", A, R), u.addEventListener("touchend", A, R)), g = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
|
|
758
768
|
v = null, g = !1;
|
|
759
769
|
}, 200)));
|
|
760
770
|
}
|
|
761
|
-
function
|
|
762
|
-
d.value !== null && (i.qSkipRipple = g === !0, a("mousedown", i), i.defaultPrevented !== !0 &&
|
|
771
|
+
function Y(i) {
|
|
772
|
+
d.value !== null && (i.qSkipRipple = g === !0, a("mousedown", i), i.defaultPrevented !== !0 && K !== d.value && (K !== null && Q(), K = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", A, R)));
|
|
763
773
|
}
|
|
764
|
-
function
|
|
774
|
+
function A(i) {
|
|
765
775
|
if (d.value !== null && !((i == null ? void 0 : i.type) === "blur" && document.activeElement === d.value)) {
|
|
766
776
|
if ((i == null ? void 0 : i.type) === "keyup") {
|
|
767
|
-
if (
|
|
768
|
-
const
|
|
769
|
-
|
|
777
|
+
if (V === d.value && oe(i, [13, 32]) === !0) {
|
|
778
|
+
const y = new MouseEvent("click", i);
|
|
779
|
+
y.qKeyEvent = !0, i.defaultPrevented === !0 && st(y), i.cancelBubble === !0 && Pe(y), d.value.dispatchEvent(y), x(i), i.qKeyEvent = !0;
|
|
770
780
|
}
|
|
771
781
|
a("keyup", i);
|
|
772
782
|
}
|
|
773
|
-
|
|
783
|
+
Q();
|
|
774
784
|
}
|
|
775
785
|
}
|
|
776
|
-
function
|
|
777
|
-
var
|
|
778
|
-
const
|
|
779
|
-
i !== !0 && (j === d.value ||
|
|
786
|
+
function Q(i) {
|
|
787
|
+
var I, X;
|
|
788
|
+
const y = q.value;
|
|
789
|
+
i !== !0 && (j === d.value || K === d.value) && y !== null && y !== document.activeElement && (y.setAttribute("tabindex", -1), y.focus()), j === d.value && (u !== null && (u.removeEventListener("touchcancel", A, R), u.removeEventListener("touchend", A, R)), j = u = null), K === d.value && (document.removeEventListener("mouseup", A, R), K = null), V === d.value && (document.removeEventListener("keyup", A, !0), (I = d.value) == null || I.removeEventListener("blur", A, R), V = null), (X = d.value) == null || X.classList.remove("q-btn--active");
|
|
780
790
|
}
|
|
781
|
-
function
|
|
791
|
+
function U(i) {
|
|
782
792
|
x(i), i.qSkipRipple = !0;
|
|
783
793
|
}
|
|
784
|
-
return
|
|
785
|
-
|
|
794
|
+
return Oe(() => {
|
|
795
|
+
Q(!0);
|
|
786
796
|
}), Object.assign(n, {
|
|
787
797
|
click: (i) => {
|
|
788
|
-
|
|
798
|
+
_.value === !0 && P(i);
|
|
789
799
|
}
|
|
790
800
|
}), () => {
|
|
791
801
|
let i = [];
|
|
792
802
|
e.icon !== void 0 && i.push(
|
|
793
|
-
m(
|
|
803
|
+
m(me, {
|
|
794
804
|
name: e.icon,
|
|
795
805
|
left: e.stack !== !0 && p.value === !0,
|
|
796
806
|
role: "img"
|
|
@@ -798,63 +808,63 @@ const wt = Z({
|
|
|
798
808
|
), p.value === !0 && i.push(
|
|
799
809
|
m("span", { class: "block" }, [e.label])
|
|
800
810
|
), i = N(t.default, i), e.iconRight !== void 0 && e.round === !1 && i.push(
|
|
801
|
-
m(
|
|
811
|
+
m(me, {
|
|
802
812
|
name: e.iconRight,
|
|
803
813
|
right: e.stack !== !0 && p.value === !0,
|
|
804
814
|
role: "img"
|
|
805
815
|
})
|
|
806
816
|
);
|
|
807
|
-
const
|
|
817
|
+
const y = [
|
|
808
818
|
m("span", {
|
|
809
819
|
class: "q-focus-helper",
|
|
810
820
|
ref: q
|
|
811
821
|
})
|
|
812
822
|
];
|
|
813
|
-
return e.loading === !0 && e.percentage !== void 0 &&
|
|
823
|
+
return e.loading === !0 && e.percentage !== void 0 && y.push(
|
|
814
824
|
m("span", {
|
|
815
825
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
816
826
|
}, [
|
|
817
827
|
m("span", {
|
|
818
828
|
class: "q-btn__progress-indicator fit block",
|
|
819
|
-
style:
|
|
829
|
+
style: L.value
|
|
820
830
|
})
|
|
821
831
|
])
|
|
822
|
-
),
|
|
832
|
+
), y.push(
|
|
823
833
|
m("span", {
|
|
824
834
|
class: "q-btn__content text-center col items-center q-anchor--skip " + l.value
|
|
825
835
|
}, i)
|
|
826
|
-
), e.loading !== null &&
|
|
827
|
-
m(
|
|
836
|
+
), e.loading !== null && y.push(
|
|
837
|
+
m(De, {
|
|
828
838
|
name: "q-transition--fade"
|
|
829
839
|
}, () => e.loading === !0 ? [
|
|
830
840
|
m("span", {
|
|
831
841
|
key: "loading",
|
|
832
842
|
class: "absolute-full flex flex-center"
|
|
833
|
-
}, t.loading !== void 0 ? t.loading() : [m(
|
|
843
|
+
}, t.loading !== void 0 ? t.loading() : [m(at)])
|
|
834
844
|
] : null)
|
|
835
|
-
),
|
|
845
|
+
), se(
|
|
836
846
|
m(
|
|
837
|
-
|
|
847
|
+
b.value,
|
|
838
848
|
E.value,
|
|
839
|
-
|
|
849
|
+
y
|
|
840
850
|
),
|
|
841
851
|
[[
|
|
842
|
-
|
|
843
|
-
|
|
852
|
+
dt,
|
|
853
|
+
$.value,
|
|
844
854
|
void 0,
|
|
845
855
|
w.value
|
|
846
856
|
]]
|
|
847
857
|
);
|
|
848
858
|
};
|
|
849
859
|
}
|
|
850
|
-
}),
|
|
860
|
+
}), Lt = /* @__PURE__ */ F({
|
|
851
861
|
__name: "AppButton",
|
|
852
862
|
props: {
|
|
853
|
-
size: { default:
|
|
863
|
+
size: { default: B.MD },
|
|
854
864
|
transparent: { type: Boolean },
|
|
855
865
|
flat: { type: Boolean },
|
|
856
866
|
rounded: { type: Boolean },
|
|
857
|
-
color: { default:
|
|
867
|
+
color: { default: Le.PRIMARY },
|
|
858
868
|
iconLeft: {},
|
|
859
869
|
iconRight: {},
|
|
860
870
|
iconMiddle: {},
|
|
@@ -870,27 +880,25 @@ const wt = Z({
|
|
|
870
880
|
},
|
|
871
881
|
emits: ["click"],
|
|
872
882
|
setup(e) {
|
|
873
|
-
const t = e, a =
|
|
883
|
+
const t = e, a = c(() => [
|
|
874
884
|
"app-btn",
|
|
875
885
|
{
|
|
876
886
|
"app-btn_default": !t.transparent && !t.flat,
|
|
877
887
|
"app-btn_trans": t.transparent,
|
|
878
888
|
"app-btn_flat": t.flat,
|
|
879
889
|
"app-btn_rounded": t.rounded,
|
|
880
|
-
"app-btn_sm": t.size === $.SM,
|
|
881
|
-
"app-btn_md": t.size === $.MD,
|
|
882
|
-
"app-btn_lg": t.size === $.LG,
|
|
883
890
|
"app-btn_icon-left": t.iconLeft,
|
|
884
891
|
"app-btn_icon-right": t.iconRight,
|
|
885
892
|
"app-btn_icon-middle": t.iconMiddle
|
|
886
893
|
},
|
|
894
|
+
`app-btn_${t.size}`,
|
|
887
895
|
`app-btn_${t.color}`
|
|
888
896
|
]);
|
|
889
|
-
return (n, o) => (
|
|
897
|
+
return (n, o) => (S(), Ce(W(Bt), {
|
|
890
898
|
"no-caps": "",
|
|
891
899
|
unelevated: "",
|
|
892
|
-
class:
|
|
893
|
-
padding:
|
|
900
|
+
class: M(a.value),
|
|
901
|
+
padding: W(Qe)[n.size || W(B).MD],
|
|
894
902
|
loading: n.loading,
|
|
895
903
|
disable: n.disabled || void 0,
|
|
896
904
|
to: n.to,
|
|
@@ -899,25 +907,25 @@ const wt = Z({
|
|
|
899
907
|
type: n.submit ? "submit" : void 0,
|
|
900
908
|
"aria-label": n.ariaLabel,
|
|
901
909
|
download: n.download,
|
|
902
|
-
onClick: o[0] || (o[0] = (
|
|
910
|
+
onClick: o[0] || (o[0] = (r) => n.$emit("click", r))
|
|
903
911
|
}, {
|
|
904
|
-
default:
|
|
905
|
-
n.iconLeft || n.iconMiddle ? (
|
|
912
|
+
default: Ie(() => [
|
|
913
|
+
n.iconLeft || n.iconMiddle ? (S(), C("i", {
|
|
906
914
|
key: 0,
|
|
907
|
-
class:
|
|
915
|
+
class: M([
|
|
908
916
|
"icon-kl",
|
|
909
917
|
n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
|
|
910
918
|
`icon-kl-${n.iconLeft || n.iconMiddle}`,
|
|
911
919
|
n.transparent || n.flat ? `text-${n.color}` : "text-secondary"
|
|
912
920
|
])
|
|
913
921
|
}, null, 2)) : T("", !0),
|
|
914
|
-
|
|
915
|
-
n.label ? (
|
|
916
|
-
|
|
922
|
+
re(n.$slots, "default", {}, void 0, !0),
|
|
923
|
+
n.label ? (S(), C(ie, { key: 1 }, [
|
|
924
|
+
we(H(n.label), 1)
|
|
917
925
|
], 64)) : T("", !0),
|
|
918
|
-
n.iconRight ? (
|
|
926
|
+
n.iconRight ? (S(), C("i", {
|
|
919
927
|
key: 2,
|
|
920
|
-
class:
|
|
928
|
+
class: M([
|
|
921
929
|
"icon-kl",
|
|
922
930
|
"icon-kl_right",
|
|
923
931
|
`icon-kl-${n.iconRight}`,
|
|
@@ -928,25 +936,25 @@ const wt = Z({
|
|
|
928
936
|
_: 3
|
|
929
937
|
}, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label", "download"]));
|
|
930
938
|
}
|
|
931
|
-
}),
|
|
939
|
+
}), G = (e, t) => {
|
|
932
940
|
const a = e.__vccOpts || e;
|
|
933
941
|
for (const [n, o] of t)
|
|
934
942
|
a[n] = o;
|
|
935
943
|
return a;
|
|
936
|
-
},
|
|
944
|
+
}, rn = /* @__PURE__ */ G(Lt, [["__scopeId", "data-v-44d5548c"]]), Et = {
|
|
937
945
|
key: 0,
|
|
938
946
|
class: "app-toggle__label app-toggle__label_left"
|
|
939
|
-
},
|
|
947
|
+
}, Rt = { class: "app-toggle__container" }, Mt = ["checked", "disabled"], Pt = { class: "app-toggle__thumb" }, At = {
|
|
940
948
|
key: 1,
|
|
941
949
|
class: "app-toggle__label"
|
|
942
|
-
},
|
|
950
|
+
}, zt = /* @__PURE__ */ F({
|
|
943
951
|
__name: "AppToggle",
|
|
944
952
|
props: {
|
|
945
953
|
modelValue: { type: Boolean },
|
|
946
|
-
size: { default:
|
|
954
|
+
size: { default: B.MD },
|
|
947
955
|
label: {},
|
|
948
956
|
disabled: { type: Boolean },
|
|
949
|
-
color: { default:
|
|
957
|
+
color: { default: Le.PRIMARY },
|
|
950
958
|
iconColor: {},
|
|
951
959
|
icon: {},
|
|
952
960
|
iconActive: {},
|
|
@@ -954,45 +962,45 @@ const wt = Z({
|
|
|
954
962
|
},
|
|
955
963
|
emits: ["update:modelValue"],
|
|
956
964
|
setup(e, { emit: t }) {
|
|
957
|
-
const a = e, n = t, o =
|
|
965
|
+
const a = e, n = t, o = c({
|
|
958
966
|
get: () => a.modelValue,
|
|
959
967
|
set: (l) => {
|
|
960
968
|
n("update:modelValue", l);
|
|
961
969
|
}
|
|
962
|
-
}),
|
|
970
|
+
}), r = c(() => [
|
|
963
971
|
"app-toggle",
|
|
964
972
|
{
|
|
965
|
-
"app-toggle_sm": a.size ===
|
|
966
|
-
"app-toggle_md": a.size ===
|
|
967
|
-
"app-toggle_lg": a.size ===
|
|
973
|
+
"app-toggle_sm": a.size === B.SM,
|
|
974
|
+
"app-toggle_md": a.size === B.MD,
|
|
975
|
+
"app-toggle_lg": a.size === B.LG,
|
|
968
976
|
"app-toggle_active": o.value,
|
|
969
977
|
"app-toggle_disabled": a.disabled
|
|
970
978
|
},
|
|
971
979
|
`app-toggle_${a.color}`
|
|
972
980
|
]);
|
|
973
|
-
return (l,
|
|
974
|
-
class:
|
|
981
|
+
return (l, s) => (S(), C("div", {
|
|
982
|
+
class: M(r.value)
|
|
975
983
|
}, [
|
|
976
|
-
l.label && l.labelLeft ? (
|
|
977
|
-
|
|
978
|
-
|
|
984
|
+
l.label && l.labelLeft ? (S(), C("span", Et, H(l.label), 1)) : T("", !0),
|
|
985
|
+
D("label", Rt, [
|
|
986
|
+
D("input", {
|
|
979
987
|
type: "checkbox",
|
|
980
988
|
checked: o.value,
|
|
981
|
-
onChange:
|
|
989
|
+
onChange: s[0] || (s[0] = (k) => o.value = !o.value),
|
|
982
990
|
disabled: l.disabled,
|
|
983
991
|
class: "app-toggle__input"
|
|
984
|
-
}, null, 40,
|
|
985
|
-
|
|
986
|
-
class:
|
|
992
|
+
}, null, 40, Mt),
|
|
993
|
+
D("span", {
|
|
994
|
+
class: M(["app-toggle__slider", o.value ? `bg-${l.color}` : ""])
|
|
987
995
|
}, [
|
|
988
|
-
|
|
989
|
-
l.icon && !l.modelValue ? (
|
|
996
|
+
D("span", Pt, [
|
|
997
|
+
l.icon && !l.modelValue ? (S(), C("i", {
|
|
990
998
|
key: 0,
|
|
991
|
-
class:
|
|
999
|
+
class: M(["icon-kl", `icon-kl-${l.icon}`, "app-toggle__icon"])
|
|
992
1000
|
}, null, 2)) : T("", !0),
|
|
993
|
-
l.modelValue && (l.iconActive || l.icon) ? (
|
|
1001
|
+
l.modelValue && (l.iconActive || l.icon) ? (S(), C("i", {
|
|
994
1002
|
key: 1,
|
|
995
|
-
class:
|
|
1003
|
+
class: M([
|
|
996
1004
|
"icon-kl",
|
|
997
1005
|
`icon-kl-${l.iconActive || l.icon}`,
|
|
998
1006
|
"app-toggle__icon",
|
|
@@ -1001,12 +1009,12 @@ const wt = Z({
|
|
|
1001
1009
|
}, null, 2)) : T("", !0)
|
|
1002
1010
|
])
|
|
1003
1011
|
], 2),
|
|
1004
|
-
|
|
1012
|
+
re(l.$slots, "default", {}, void 0, !0)
|
|
1005
1013
|
]),
|
|
1006
|
-
l.label && !l.labelLeft ? (
|
|
1014
|
+
l.label && !l.labelLeft ? (S(), C("span", At, H(l.label), 1)) : T("", !0)
|
|
1007
1015
|
], 2));
|
|
1008
1016
|
}
|
|
1009
|
-
}),
|
|
1017
|
+
}), un = /* @__PURE__ */ G(zt, [["__scopeId", "data-v-e0e56123"]]), Tt = /* @__PURE__ */ F({
|
|
1010
1018
|
__name: "AppIcon",
|
|
1011
1019
|
props: {
|
|
1012
1020
|
name: {},
|
|
@@ -1014,37 +1022,37 @@ const wt = Z({
|
|
|
1014
1022
|
color: {}
|
|
1015
1023
|
},
|
|
1016
1024
|
setup(e) {
|
|
1017
|
-
return (t, a) => (
|
|
1018
|
-
class:
|
|
1019
|
-
style:
|
|
1025
|
+
return (t, a) => (S(), C("i", {
|
|
1026
|
+
class: M(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
|
|
1027
|
+
style: ue(t.size ? `font-size: ${t.size}` : void 0)
|
|
1020
1028
|
}, null, 6));
|
|
1021
1029
|
}
|
|
1022
|
-
}),
|
|
1030
|
+
}), cn = /* @__PURE__ */ G(Tt, [["__scopeId", "data-v-941765ee"]]), Ot = {
|
|
1023
1031
|
dark: {
|
|
1024
1032
|
type: Boolean,
|
|
1025
1033
|
default: null
|
|
1026
1034
|
}
|
|
1027
1035
|
};
|
|
1028
|
-
function
|
|
1029
|
-
return
|
|
1036
|
+
function Dt(e, t) {
|
|
1037
|
+
return c(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
1030
1038
|
}
|
|
1031
|
-
const
|
|
1039
|
+
const It = {
|
|
1032
1040
|
xs: 2,
|
|
1033
1041
|
sm: 4,
|
|
1034
1042
|
md: 6,
|
|
1035
1043
|
lg: 10,
|
|
1036
1044
|
xl: 14
|
|
1037
1045
|
};
|
|
1038
|
-
function
|
|
1046
|
+
function qe(e, t, a) {
|
|
1039
1047
|
return {
|
|
1040
1048
|
transform: t === !0 ? `translateX(${a.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
|
|
1041
1049
|
};
|
|
1042
1050
|
}
|
|
1043
|
-
const
|
|
1051
|
+
const xt = ee({
|
|
1044
1052
|
name: "QLinearProgress",
|
|
1045
1053
|
props: {
|
|
1046
|
-
...
|
|
1047
|
-
...
|
|
1054
|
+
...Ot,
|
|
1055
|
+
...de,
|
|
1048
1056
|
value: {
|
|
1049
1057
|
type: Number,
|
|
1050
1058
|
default: 0
|
|
@@ -1064,37 +1072,37 @@ const Dt = Z({
|
|
|
1064
1072
|
instantFeedback: Boolean
|
|
1065
1073
|
},
|
|
1066
1074
|
setup(e, { slots: t }) {
|
|
1067
|
-
const { proxy: a } =
|
|
1075
|
+
const { proxy: a } = Z(), n = Dt(e, a.$q), o = fe(e, It), r = c(() => e.indeterminate === !0 || e.query === !0), l = c(() => e.reverse !== e.query), s = c(() => ({
|
|
1068
1076
|
...o.value !== null ? o.value : {},
|
|
1069
1077
|
"--q-linear-progress-speed": `${e.animationSpeed}ms`
|
|
1070
|
-
})),
|
|
1078
|
+
})), k = c(
|
|
1071
1079
|
() => "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" : "")
|
|
1072
|
-
),
|
|
1080
|
+
), b = c(() => qe(e.buffer !== void 0 ? e.buffer : 1, l.value, a.$q)), f = c(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), _ = c(
|
|
1073
1081
|
() => `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}` : "")
|
|
1074
|
-
), d =
|
|
1075
|
-
() => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${
|
|
1076
|
-
),
|
|
1082
|
+
), d = c(() => qe(r.value === !0 ? 1 : e.value, l.value, a.$q)), q = c(
|
|
1083
|
+
() => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${r.value === !0 ? "in" : ""}determinate`
|
|
1084
|
+
), u = c(() => ({ width: `${e.value * 100}%` })), g = c(
|
|
1077
1085
|
() => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
|
|
1078
1086
|
);
|
|
1079
1087
|
return () => {
|
|
1080
1088
|
const v = [
|
|
1081
1089
|
m("div", {
|
|
1082
|
-
class:
|
|
1083
|
-
style:
|
|
1090
|
+
class: _.value,
|
|
1091
|
+
style: b.value
|
|
1084
1092
|
}),
|
|
1085
1093
|
m("div", {
|
|
1086
1094
|
class: q.value,
|
|
1087
1095
|
style: d.value
|
|
1088
1096
|
})
|
|
1089
1097
|
];
|
|
1090
|
-
return e.stripe === !0 &&
|
|
1098
|
+
return e.stripe === !0 && r.value === !1 && v.push(
|
|
1091
1099
|
m("div", {
|
|
1092
1100
|
class: g.value,
|
|
1093
|
-
style:
|
|
1101
|
+
style: u.value
|
|
1094
1102
|
})
|
|
1095
1103
|
), m("div", {
|
|
1096
|
-
class:
|
|
1097
|
-
style:
|
|
1104
|
+
class: k.value,
|
|
1105
|
+
style: s.value,
|
|
1098
1106
|
role: "progressbar",
|
|
1099
1107
|
"aria-valuemin": 0,
|
|
1100
1108
|
"aria-valuemax": 1,
|
|
@@ -1102,14 +1110,14 @@ const Dt = Z({
|
|
|
1102
1110
|
}, N(t.default, v));
|
|
1103
1111
|
};
|
|
1104
1112
|
}
|
|
1105
|
-
}),
|
|
1113
|
+
}), jt = {
|
|
1106
1114
|
key: 0,
|
|
1107
1115
|
class: "code-field__label"
|
|
1108
|
-
},
|
|
1116
|
+
}, Vt = { class: "code-field__inputs" }, Kt = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], Nt = /* @__PURE__ */ F({
|
|
1109
1117
|
__name: "AppCodeInput",
|
|
1110
1118
|
props: {
|
|
1111
1119
|
length: { default: 5 },
|
|
1112
|
-
size: { default:
|
|
1120
|
+
size: { default: B.MD },
|
|
1113
1121
|
label: {},
|
|
1114
1122
|
disabled: { type: Boolean },
|
|
1115
1123
|
loading: { type: Boolean },
|
|
@@ -1118,148 +1126,192 @@ const Dt = Z({
|
|
|
1118
1126
|
},
|
|
1119
1127
|
emits: ["update:modelValue", "completed"],
|
|
1120
1128
|
setup(e, { expose: t, emit: a }) {
|
|
1121
|
-
const n = e, o = a,
|
|
1129
|
+
const n = e, o = a, r = J(Array(n.length).fill("")), l = J([]), s = c(() => [
|
|
1122
1130
|
"code-field",
|
|
1123
1131
|
{
|
|
1124
|
-
"code-field_sm": n.size === $.SM,
|
|
1125
|
-
"code-field_md": n.size === $.MD,
|
|
1126
|
-
"code-field_lg": n.size === $.LG,
|
|
1127
1132
|
"code-field_disabled": n.disabled || n.loading
|
|
1128
1133
|
},
|
|
1134
|
+
`code-field_${n.size}`,
|
|
1129
1135
|
`code-field_${n.color}`
|
|
1130
|
-
]),
|
|
1131
|
-
let
|
|
1132
|
-
return n.size ==
|
|
1133
|
-
}),
|
|
1134
|
-
var
|
|
1135
|
-
const p =
|
|
1136
|
+
]), k = c(() => {
|
|
1137
|
+
let u = "";
|
|
1138
|
+
return n.size == B.SM && (u += `width: ${n.length * 26 + (n.length - 1) * 5}px`), n.size == B.MD && (u += `width: ${n.length * 32 + (n.length - 1) * 8}px`), n.size == B.LG && (u += `width: ${n.length * 44 + (n.length - 1) * 10}px`), u;
|
|
1139
|
+
}), b = (u, g) => {
|
|
1140
|
+
var $;
|
|
1141
|
+
const p = u.target.value;
|
|
1136
1142
|
if (p.length === 1)
|
|
1137
|
-
g < n.length - 1 && l.value && ((
|
|
1143
|
+
g < n.length - 1 && l.value && (($ = l.value[g + 1]) == null || $.focus());
|
|
1138
1144
|
else if (p.length > 1) {
|
|
1139
1145
|
const w = p.slice(0, n.length - g).split("");
|
|
1140
|
-
w.forEach((
|
|
1141
|
-
|
|
1142
|
-
}),
|
|
1143
|
-
var
|
|
1144
|
-
l.value && ((
|
|
1146
|
+
w.forEach((L, h) => {
|
|
1147
|
+
r.value[g + h] = L;
|
|
1148
|
+
}), ve(() => {
|
|
1149
|
+
var L;
|
|
1150
|
+
l.value && ((L = l.value[Math.min(g + w.length, n.length - 1)]) == null || L.focus());
|
|
1145
1151
|
});
|
|
1146
1152
|
}
|
|
1147
|
-
}, f = (
|
|
1153
|
+
}, f = (u) => {
|
|
1148
1154
|
var g;
|
|
1149
|
-
|
|
1150
|
-
},
|
|
1151
|
-
var
|
|
1152
|
-
|
|
1153
|
-
const v = ((
|
|
1155
|
+
r.value[u] === "" && l.value && u > 0 && ((g = l.value[u - 1]) == null || g.focus());
|
|
1156
|
+
}, _ = (u, g) => {
|
|
1157
|
+
var $;
|
|
1158
|
+
u.preventDefault();
|
|
1159
|
+
const v = (($ = u.clipboardData) == null ? void 0 : $.getData("text")) ?? "";
|
|
1154
1160
|
if (!v) return;
|
|
1155
1161
|
const p = v.slice(0, n.length - g).split("");
|
|
1156
|
-
p.forEach((w,
|
|
1157
|
-
|
|
1158
|
-
}),
|
|
1162
|
+
p.forEach((w, L) => {
|
|
1163
|
+
r.value[g + L] = w;
|
|
1164
|
+
}), ve(() => {
|
|
1159
1165
|
var w;
|
|
1160
1166
|
l.value && ((w = l.value[Math.min(g + p.length, n.length - 1)]) == null || w.focus());
|
|
1161
1167
|
});
|
|
1162
1168
|
};
|
|
1163
1169
|
xe(
|
|
1164
|
-
|
|
1165
|
-
(
|
|
1166
|
-
const g =
|
|
1170
|
+
r,
|
|
1171
|
+
(u) => {
|
|
1172
|
+
const g = u.join("");
|
|
1167
1173
|
d(g);
|
|
1168
1174
|
},
|
|
1169
1175
|
{ deep: !0 }
|
|
1170
1176
|
);
|
|
1171
|
-
const d = (
|
|
1172
|
-
o("update:modelValue",
|
|
1173
|
-
}, q = (
|
|
1174
|
-
|
|
1177
|
+
const d = (u) => {
|
|
1178
|
+
o("update:modelValue", u), u.length === n.length && !u.includes(" ") && o("completed", u);
|
|
1179
|
+
}, q = (u) => {
|
|
1180
|
+
u && (r.value = u.split("").slice(0, n.length));
|
|
1175
1181
|
};
|
|
1176
1182
|
return je(() => {
|
|
1177
1183
|
n.autofocus && l.value && l.value[0] && l.value[0].focus();
|
|
1178
1184
|
}), t({
|
|
1179
1185
|
injectCode: q
|
|
1180
|
-
}), (
|
|
1181
|
-
class:
|
|
1182
|
-
style:
|
|
1186
|
+
}), (u, g) => (S(), C("div", {
|
|
1187
|
+
class: M(s.value),
|
|
1188
|
+
style: ue(k.value)
|
|
1183
1189
|
}, [
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
(
|
|
1190
|
+
u.label ? (S(), C("label", jt, H(u.label), 1)) : T("", !0),
|
|
1191
|
+
D("div", Vt, [
|
|
1192
|
+
(S(!0), C(ie, null, Be(u.length, (v, p) => se((S(), C("input", {
|
|
1187
1193
|
key: p,
|
|
1188
|
-
"onUpdate:modelValue": (
|
|
1194
|
+
"onUpdate:modelValue": ($) => r.value[p] = $,
|
|
1189
1195
|
ref_for: !0,
|
|
1190
1196
|
ref_key: "inputRefs",
|
|
1191
1197
|
ref: l,
|
|
1192
|
-
type: "
|
|
1198
|
+
type: "number",
|
|
1193
1199
|
maxlength: "1",
|
|
1194
1200
|
class: "code-field__input",
|
|
1195
|
-
disabled:
|
|
1196
|
-
onInput: (
|
|
1197
|
-
onKeydown: Ve((
|
|
1198
|
-
onPaste: (
|
|
1199
|
-
}, null, 40,
|
|
1200
|
-
[
|
|
1201
|
+
disabled: u.disabled || u.loading,
|
|
1202
|
+
onInput: ($) => b($, p),
|
|
1203
|
+
onKeydown: Ve(($) => f(p), ["backspace"]),
|
|
1204
|
+
onPaste: ($) => _($, p)
|
|
1205
|
+
}, null, 40, Kt)), [
|
|
1206
|
+
[Ke, r.value[p]]
|
|
1201
1207
|
])), 128))
|
|
1202
1208
|
]),
|
|
1203
|
-
|
|
1209
|
+
u.loading ? (S(), Ce(xt, {
|
|
1204
1210
|
key: 1,
|
|
1205
1211
|
indeterminate: "",
|
|
1206
1212
|
rounded: "",
|
|
1207
|
-
color:
|
|
1213
|
+
color: u.color,
|
|
1208
1214
|
class: "code-field__loading"
|
|
1209
1215
|
}, null, 8, ["color"])) : T("", !0)
|
|
1210
1216
|
], 6));
|
|
1211
1217
|
}
|
|
1212
|
-
}),
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
+
}), dn = /* @__PURE__ */ G(Nt, [["__scopeId", "data-v-4e11db87"]]), Ft = { class: "app-segment__track" }, Qt = { class: "app-segment__buttons" }, Ut = ["onClick", "disabled"], Xt = /* @__PURE__ */ F({
|
|
1219
|
+
__name: "AppSegment",
|
|
1220
|
+
props: /* @__PURE__ */ Ne({
|
|
1221
|
+
options: {},
|
|
1222
|
+
disabled: { type: Boolean },
|
|
1223
|
+
size: { default: B.MD }
|
|
1224
|
+
}, {
|
|
1225
|
+
modelValue: {},
|
|
1226
|
+
modelModifiers: {}
|
|
1227
|
+
}),
|
|
1228
|
+
emits: ["update:modelValue"],
|
|
1229
|
+
setup(e) {
|
|
1230
|
+
const t = Fe(e, "modelValue"), a = e, n = c(
|
|
1231
|
+
() => a.options.findIndex((r) => r.value === t.value)
|
|
1232
|
+
);
|
|
1233
|
+
function o(r) {
|
|
1234
|
+
a.disabled || (t.value = r);
|
|
1235
|
+
}
|
|
1236
|
+
return (r, l) => (S(), C("div", {
|
|
1237
|
+
class: M(["app-segment", [{ "app-segment_disabled": r.disabled }, `app-segment_${r.size}`]])
|
|
1238
|
+
}, [
|
|
1239
|
+
D("div", Ft, [
|
|
1240
|
+
D("div", {
|
|
1241
|
+
class: "app-segment__thumb",
|
|
1242
|
+
style: ue({
|
|
1243
|
+
width: `${100 / r.options.length}%`,
|
|
1244
|
+
transform: `translateX(${n.value * 100}%)`
|
|
1245
|
+
})
|
|
1246
|
+
}, null, 4)
|
|
1247
|
+
]),
|
|
1248
|
+
D("div", Qt, [
|
|
1249
|
+
(S(!0), C(ie, null, Be(r.options, (s, k) => (S(), C("button", {
|
|
1250
|
+
key: k,
|
|
1251
|
+
class: M(["app-segment__btn", { active: t.value === s.value }]),
|
|
1252
|
+
onClick: (b) => o(s.value),
|
|
1253
|
+
disabled: r.disabled
|
|
1254
|
+
}, [
|
|
1255
|
+
re(r.$slots, "option", { option: s }, () => [
|
|
1256
|
+
we(H(s.label), 1)
|
|
1257
|
+
], !0)
|
|
1258
|
+
], 10, Ut))), 128))
|
|
1259
|
+
])
|
|
1260
|
+
], 2));
|
|
1261
|
+
}
|
|
1262
|
+
}), fn = /* @__PURE__ */ G(Xt, [["__scopeId", "data-v-ff56abdf"]]), vn = ce(
|
|
1263
|
+
() => import("./AppButtonCopy-Dj46pNGB.js")
|
|
1264
|
+
), gn = ce(
|
|
1265
|
+
() => import("./AppSelect-ztwsDF-p.js")
|
|
1266
|
+
), pn = ce(
|
|
1267
|
+
() => import("./DropdownButton-BE2k1gTw.js")
|
|
1218
1268
|
);
|
|
1219
1269
|
export {
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1270
|
+
rn as A,
|
|
1271
|
+
it as B,
|
|
1272
|
+
Le as C,
|
|
1273
|
+
pt as D,
|
|
1274
|
+
an as E,
|
|
1275
|
+
ln as F,
|
|
1276
|
+
Zt as G,
|
|
1277
|
+
lt as H,
|
|
1278
|
+
ot as I,
|
|
1279
|
+
pn as J,
|
|
1280
|
+
vn as K,
|
|
1281
|
+
gn as L,
|
|
1282
|
+
fn as M,
|
|
1283
|
+
dn as N,
|
|
1284
|
+
un as O,
|
|
1285
|
+
cn as P,
|
|
1286
|
+
me as Q,
|
|
1287
|
+
dt as R,
|
|
1288
|
+
B as S,
|
|
1289
|
+
Gt as T,
|
|
1290
|
+
G as _,
|
|
1291
|
+
Ot as a,
|
|
1292
|
+
Dt as b,
|
|
1293
|
+
ee as c,
|
|
1294
|
+
fe as d,
|
|
1243
1295
|
N as e,
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1296
|
+
on as f,
|
|
1297
|
+
yt as g,
|
|
1298
|
+
Xe as h,
|
|
1247
1299
|
oe as i,
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1300
|
+
Yt as j,
|
|
1301
|
+
at as k,
|
|
1302
|
+
Jt as l,
|
|
1303
|
+
Wt as m,
|
|
1304
|
+
te as n,
|
|
1305
|
+
nn as o,
|
|
1306
|
+
st as p,
|
|
1307
|
+
en as q,
|
|
1308
|
+
tn as r,
|
|
1257
1309
|
x as s,
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1310
|
+
ut as t,
|
|
1311
|
+
de as u,
|
|
1312
|
+
Pe as v,
|
|
1313
|
+
St as w,
|
|
1314
|
+
sn as x,
|
|
1315
|
+
Bt as y,
|
|
1316
|
+
rt as z
|
|
1265
1317
|
};
|