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