@validol4ik/uikit 0.7.4 → 0.7.5
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-BxIKLbwj.cjs → AppButtonCopy-B51hyMd1.cjs} +1 -1
- package/dist/{AppButtonCopy-CQItDNqg.js → AppButtonCopy-D1LXQMmX.js} +1 -1
- package/dist/{AppSelect-DPSeFPtt.cjs → AppSelect-AdbvdZUi.cjs} +1 -1
- package/dist/{AppSelect-BSBsAKPs.js → AppSelect-DVEWnVCH.js} +4 -3
- package/dist/{DropdownButton-Dqg8kqPg.cjs → DropdownButton-D7EJUeDC.cjs} +1 -1
- package/dist/{DropdownButton-B-NTZXjl.js → DropdownButton-TuZuD8GY.js} +2 -2
- package/dist/{QMenu-CqwHVhVH.js → QMenu-6BFoPggJ.js} +251 -238
- package/dist/QMenu-uB6Zqa0Q.cjs +1 -0
- package/dist/{index-B8rGKrFf.js → index-DgY0kstn.js} +444 -511
- package/dist/index-Ik1k1L31.cjs +1 -0
- package/dist/style.css +1 -1
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.es.js +1 -1
- package/package.json +1 -1
- package/dist/QMenu-BeQ-7x7q.cjs +0 -1
- package/dist/index-A0f7F3DW.cjs +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { computed as r, markRaw as
|
|
2
|
-
const
|
|
1
|
+
import { computed as r, markRaw as Ce, defineComponent as F, h as g, withDirectives as ge, getCurrentInstance as ee, unref as Z, ref as W, onBeforeUnmount as De, Transition as Ne, createBlock as ne, openBlock as h, normalizeClass as L, withCtx as Fe, createElementBlock as _, createCommentVNode as A, renderSlot as ae, Fragment as le, createTextVNode as we, toDisplayString as Y, createElementVNode as T, toRaw as Q, createVNode as Ke, normalizeStyle as oe, watch as Qe, onMounted as Ue, renderList as Ee, withKeys as He, vModelText as Xe, nextTick as pe, mergeModels as We, useModel as Ye, defineAsyncComponent as me } from "vue";
|
|
2
|
+
const gn = ({ app: e }) => {
|
|
3
3
|
const t = e.config.globalProperties.$q;
|
|
4
4
|
t.iconMapFn = (n) => {
|
|
5
5
|
if (n.startsWith("icon-kl:"))
|
|
@@ -7,7 +7,7 @@ const _n = ({ app: e }) => {
|
|
|
7
7
|
cls: `icon-kl icon-kl-${n.slice(8)}`
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
},
|
|
10
|
+
}, Le = {
|
|
11
11
|
PRIMARY: "primary",
|
|
12
12
|
INFO: "info"
|
|
13
13
|
}, z = {
|
|
@@ -15,33 +15,33 @@ const _n = ({ app: e }) => {
|
|
|
15
15
|
MD: "md",
|
|
16
16
|
LG: "lg",
|
|
17
17
|
XL: "xl"
|
|
18
|
-
},
|
|
18
|
+
}, Ge = {
|
|
19
19
|
[z.SM]: "3px 9px",
|
|
20
20
|
[z.MD]: "5px 12px",
|
|
21
21
|
[z.LG]: "6px 15px",
|
|
22
22
|
[z.XL]: "9px 20px"
|
|
23
|
-
},
|
|
23
|
+
}, de = {
|
|
24
24
|
xs: 18,
|
|
25
25
|
sm: 24,
|
|
26
26
|
md: 32,
|
|
27
27
|
lg: 38,
|
|
28
28
|
xl: 46
|
|
29
|
-
},
|
|
29
|
+
}, se = {
|
|
30
30
|
size: String
|
|
31
31
|
};
|
|
32
|
-
function
|
|
32
|
+
function ie(e, t = de) {
|
|
33
33
|
return r(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
34
34
|
}
|
|
35
35
|
function te(e) {
|
|
36
|
-
return
|
|
36
|
+
return Ce(F(e));
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return
|
|
38
|
+
function Je(e) {
|
|
39
|
+
return Ce(e);
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function Re(e, t) {
|
|
42
42
|
return e !== void 0 && e() || t;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function mn(e, t) {
|
|
45
45
|
if (e !== void 0) {
|
|
46
46
|
const n = e();
|
|
47
47
|
if (n != null)
|
|
@@ -52,40 +52,40 @@ function $n(e, t) {
|
|
|
52
52
|
function N(e, t) {
|
|
53
53
|
return e !== void 0 ? t.concat(e()) : t;
|
|
54
54
|
}
|
|
55
|
-
function
|
|
55
|
+
function pn(e, t) {
|
|
56
56
|
return e === void 0 ? t : t !== void 0 ? t.concat(e()) : e();
|
|
57
57
|
}
|
|
58
|
-
function
|
|
58
|
+
function bn(e, t, n, a, s, l) {
|
|
59
59
|
t.key = a + s;
|
|
60
|
-
const o =
|
|
61
|
-
return s === !0 ?
|
|
60
|
+
const o = g(e, t, n);
|
|
61
|
+
return s === !0 ? ge(o, l()) : o;
|
|
62
62
|
}
|
|
63
|
-
const be = "0 0 24 24",
|
|
63
|
+
const be = "0 0 24 24", ue = (e) => e, ce = (e) => `ionicons ${e}`, Pe = {
|
|
64
64
|
"mdi-": (e) => `mdi ${e}`,
|
|
65
|
-
"icon-":
|
|
65
|
+
"icon-": ue,
|
|
66
66
|
// fontawesome equiv
|
|
67
67
|
"bt-": (e) => `bt ${e}`,
|
|
68
68
|
"eva-": (e) => `eva ${e}`,
|
|
69
|
-
"ion-md":
|
|
70
|
-
"ion-ios":
|
|
71
|
-
"ion-logo":
|
|
72
|
-
"iconfont ":
|
|
69
|
+
"ion-md": ce,
|
|
70
|
+
"ion-ios": ce,
|
|
71
|
+
"ion-logo": ce,
|
|
72
|
+
"iconfont ": ue,
|
|
73
73
|
"ti-": (e) => `themify-icon ${e}`,
|
|
74
74
|
"bi-": (e) => `bootstrap-icons ${e}`,
|
|
75
|
-
"i-":
|
|
75
|
+
"i-": ue
|
|
76
76
|
// UnoCSS pure icons
|
|
77
|
-
},
|
|
77
|
+
}, Me = {
|
|
78
78
|
o_: "-outlined",
|
|
79
79
|
r_: "-round",
|
|
80
80
|
s_: "-sharp"
|
|
81
|
-
},
|
|
81
|
+
}, Ae = {
|
|
82
82
|
sym_o_: "-outlined",
|
|
83
83
|
sym_r_: "-rounded",
|
|
84
84
|
sym_s_: "-sharp"
|
|
85
|
-
},
|
|
85
|
+
}, Ze = new RegExp("^(" + Object.keys(Pe).join("|") + ")"), et = new RegExp("^(" + Object.keys(Me).join("|") + ")"), he = new RegExp("^(" + Object.keys(Ae).join("|") + ")"), tt = /^[Mm]\s?[-+]?\.?\d/, nt = /^img:/, at = /^svguse:/, lt = /^ion-/, ot = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, fe = te({
|
|
86
86
|
name: "QIcon",
|
|
87
87
|
props: {
|
|
88
|
-
...
|
|
88
|
+
...se,
|
|
89
89
|
tag: {
|
|
90
90
|
type: String,
|
|
91
91
|
default: "i"
|
|
@@ -96,7 +96,7 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
|
|
|
96
96
|
right: Boolean
|
|
97
97
|
},
|
|
98
98
|
setup(e, { slots: t }) {
|
|
99
|
-
const { proxy: { $q: n } } = ee(), a =
|
|
99
|
+
const { proxy: { $q: n } } = ee(), a = ie(e), s = r(
|
|
100
100
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
101
101
|
), l = r(() => {
|
|
102
102
|
let o, i = e.name;
|
|
@@ -114,23 +114,23 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
|
|
|
114
114
|
content: f.content !== void 0 ? f.content : " "
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
if (
|
|
117
|
+
if (tt.test(i) === !0) {
|
|
118
118
|
const [f, S = be] = i.split("|");
|
|
119
119
|
return {
|
|
120
120
|
svg: !0,
|
|
121
121
|
viewBox: S,
|
|
122
122
|
nodes: f.split("&&").map((d) => {
|
|
123
|
-
const [q, u,
|
|
124
|
-
return
|
|
123
|
+
const [q, u, m] = d.split("@@");
|
|
124
|
+
return g("path", { style: u, d: q, transform: m });
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
|
-
if (
|
|
128
|
+
if (nt.test(i) === !0)
|
|
129
129
|
return {
|
|
130
130
|
img: !0,
|
|
131
131
|
src: i.substring(4)
|
|
132
132
|
};
|
|
133
|
-
if (
|
|
133
|
+
if (at.test(i) === !0) {
|
|
134
134
|
const [f, S = be] = i.split("|");
|
|
135
135
|
return {
|
|
136
136
|
svguse: !0,
|
|
@@ -139,21 +139,21 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
|
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
let $ = " ";
|
|
142
|
-
const
|
|
143
|
-
if (
|
|
144
|
-
o =
|
|
145
|
-
else if (
|
|
142
|
+
const k = i.match(Ze);
|
|
143
|
+
if (k !== null)
|
|
144
|
+
o = Pe[k[1]](i);
|
|
145
|
+
else if (ot.test(i) === !0)
|
|
146
146
|
o = i;
|
|
147
|
-
else if (
|
|
147
|
+
else if (lt.test(i) === !0)
|
|
148
148
|
o = `ionicons ion-${n.platform.is.ios === !0 ? "ios" : "md"}${i.substring(3)}`;
|
|
149
|
-
else if (
|
|
149
|
+
else if (he.test(i) === !0) {
|
|
150
150
|
o = "notranslate material-symbols";
|
|
151
|
-
const f = i.match(
|
|
152
|
-
f !== null && (i = i.substring(6), o +=
|
|
151
|
+
const f = i.match(he);
|
|
152
|
+
f !== null && (i = i.substring(6), o += Ae[f[1]]), $ = i;
|
|
153
153
|
} else {
|
|
154
154
|
o = "notranslate material-icons";
|
|
155
|
-
const f = i.match(
|
|
156
|
-
f !== null && (i = i.substring(2), o +=
|
|
155
|
+
const f = i.match(et);
|
|
156
|
+
f !== null && (i = i.substring(2), o += Me[f[1]]), $ = i;
|
|
157
157
|
}
|
|
158
158
|
return {
|
|
159
159
|
cls: o,
|
|
@@ -166,56 +166,56 @@ const be = "0 0 24 24", fe = (e) => e, ve = (e) => `ionicons ${e}`, Ve = {
|
|
|
166
166
|
style: a.value,
|
|
167
167
|
"aria-hidden": "true"
|
|
168
168
|
};
|
|
169
|
-
return l.value.none === !0 ?
|
|
170
|
-
|
|
171
|
-
])) : l.value.svg === !0 ?
|
|
172
|
-
|
|
169
|
+
return l.value.none === !0 ? g(e.tag, o, Re(t.default)) : l.value.img === !0 ? g(e.tag, o, N(t.default, [
|
|
170
|
+
g("img", { src: l.value.src })
|
|
171
|
+
])) : l.value.svg === !0 ? g(e.tag, o, N(t.default, [
|
|
172
|
+
g("svg", {
|
|
173
173
|
viewBox: l.value.viewBox || "0 0 24 24"
|
|
174
174
|
}, l.value.nodes)
|
|
175
|
-
])) : l.value.svguse === !0 ?
|
|
176
|
-
|
|
175
|
+
])) : l.value.svguse === !0 ? g(e.tag, o, N(t.default, [
|
|
176
|
+
g("svg", {
|
|
177
177
|
viewBox: l.value.viewBox
|
|
178
178
|
}, [
|
|
179
|
-
|
|
179
|
+
g("use", { "xlink:href": l.value.src })
|
|
180
180
|
])
|
|
181
|
-
])) : (l.value.cls !== void 0 && (o.class += " " + l.value.cls),
|
|
181
|
+
])) : (l.value.cls !== void 0 && (o.class += " " + l.value.cls), g(e.tag, o, N(t.default, [
|
|
182
182
|
l.value.content
|
|
183
183
|
])));
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
}),
|
|
186
|
+
}), st = {
|
|
187
187
|
size: {
|
|
188
188
|
type: [String, Number],
|
|
189
189
|
default: "1em"
|
|
190
190
|
},
|
|
191
191
|
color: String
|
|
192
192
|
};
|
|
193
|
-
function
|
|
193
|
+
function it(e) {
|
|
194
194
|
return {
|
|
195
|
-
cSize: r(() => e.size in
|
|
195
|
+
cSize: r(() => e.size in de ? `${de[e.size]}px` : e.size),
|
|
196
196
|
classes: r(
|
|
197
197
|
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
198
198
|
)
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const Ve = te({
|
|
202
202
|
name: "QSpinner",
|
|
203
203
|
props: {
|
|
204
|
-
...
|
|
204
|
+
...st,
|
|
205
205
|
thickness: {
|
|
206
206
|
type: Number,
|
|
207
207
|
default: 5
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
setup(e) {
|
|
211
|
-
const { cSize: t, classes: n } =
|
|
212
|
-
return () =>
|
|
211
|
+
const { cSize: t, classes: n } = it(e);
|
|
212
|
+
return () => g("svg", {
|
|
213
213
|
class: n.value + " q-spinner-mat",
|
|
214
214
|
width: t.value,
|
|
215
215
|
height: t.value,
|
|
216
216
|
viewBox: "25 25 50 50"
|
|
217
217
|
}, [
|
|
218
|
-
|
|
218
|
+
g("circle", {
|
|
219
219
|
class: "path",
|
|
220
220
|
cx: "50",
|
|
221
221
|
cy: "50",
|
|
@@ -228,12 +228,12 @@ const ze = te({
|
|
|
228
228
|
]);
|
|
229
229
|
}
|
|
230
230
|
});
|
|
231
|
-
function
|
|
231
|
+
function rt(e, t) {
|
|
232
232
|
const n = e.style;
|
|
233
233
|
for (const a in t)
|
|
234
234
|
n[a] = t[a];
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function hn(e) {
|
|
237
237
|
if (e == null)
|
|
238
238
|
return;
|
|
239
239
|
if (typeof e == "string")
|
|
@@ -246,7 +246,7 @@ function Cn(e) {
|
|
|
246
246
|
if (t)
|
|
247
247
|
return t.$el || t;
|
|
248
248
|
}
|
|
249
|
-
function
|
|
249
|
+
function yn(e, t) {
|
|
250
250
|
if (e == null || e.contains(t) === !0)
|
|
251
251
|
return !0;
|
|
252
252
|
for (let n = e.nextElementSibling; n !== null; n = n.nextElementSibling)
|
|
@@ -254,7 +254,7 @@ function Bn(e, t) {
|
|
|
254
254
|
return !0;
|
|
255
255
|
return !1;
|
|
256
256
|
}
|
|
257
|
-
const
|
|
257
|
+
const re = {
|
|
258
258
|
hasPassive: !1,
|
|
259
259
|
passiveCapture: !0,
|
|
260
260
|
notPassiveCapture: !0
|
|
@@ -262,7 +262,7 @@ const de = {
|
|
|
262
262
|
try {
|
|
263
263
|
const e = Object.defineProperty({}, "passive", {
|
|
264
264
|
get() {
|
|
265
|
-
Object.assign(
|
|
265
|
+
Object.assign(re, {
|
|
266
266
|
hasPassive: !0,
|
|
267
267
|
passive: { passive: !0 },
|
|
268
268
|
notPassive: { passive: !1 },
|
|
@@ -274,15 +274,15 @@ try {
|
|
|
274
274
|
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
275
275
|
} catch {
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function kn() {
|
|
278
278
|
}
|
|
279
|
-
function
|
|
279
|
+
function ut(e) {
|
|
280
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]), {
|
|
281
281
|
top: e.clientY,
|
|
282
282
|
left: e.clientX
|
|
283
283
|
};
|
|
284
284
|
}
|
|
285
|
-
function
|
|
285
|
+
function _n(e) {
|
|
286
286
|
if (e.path)
|
|
287
287
|
return e.path;
|
|
288
288
|
if (e.composedPath)
|
|
@@ -295,34 +295,34 @@ function En(e) {
|
|
|
295
295
|
n = n.parentElement;
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
|
-
function
|
|
298
|
+
function Ie(e) {
|
|
299
299
|
e.stopPropagation();
|
|
300
300
|
}
|
|
301
|
-
function
|
|
301
|
+
function ct(e) {
|
|
302
302
|
e.cancelable !== !1 && e.preventDefault();
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function j(e) {
|
|
305
305
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function dt(e, t, n) {
|
|
308
308
|
const a = `__q_${t}_evt`;
|
|
309
309
|
e[a] = e[a] !== void 0 ? e[a].concat(n) : n, n.forEach((s) => {
|
|
310
|
-
s[0].addEventListener(s[1], e[s[2]],
|
|
310
|
+
s[0].addEventListener(s[1], e[s[2]], re[s[3]]);
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
|
-
function
|
|
313
|
+
function ft(e, t) {
|
|
314
314
|
const n = `__q_${t}_evt`;
|
|
315
315
|
e[n] !== void 0 && (e[n].forEach((a) => {
|
|
316
|
-
a[0].removeEventListener(a[1], e[a[2]],
|
|
316
|
+
a[0].removeEventListener(a[1], e[a[2]], re[a[3]]);
|
|
317
317
|
}), e[n] = void 0);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function vt(e) {
|
|
320
320
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
return
|
|
322
|
+
function ve(e, t) {
|
|
323
|
+
return vt(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function gt(e, t = 250) {
|
|
326
326
|
let n = !1, a;
|
|
327
327
|
return function() {
|
|
328
328
|
return n === !1 && (n = !0, setTimeout(() => {
|
|
@@ -331,15 +331,15 @@ function pt(e, t = 250) {
|
|
|
331
331
|
};
|
|
332
332
|
}
|
|
333
333
|
function ye(e, t, n, a) {
|
|
334
|
-
n.modifiers.stop === !0 &&
|
|
334
|
+
n.modifiers.stop === !0 && Ie(e);
|
|
335
335
|
const s = n.modifiers.color;
|
|
336
336
|
let l = n.modifiers.center;
|
|
337
337
|
l = l === !0 || a === !0;
|
|
338
|
-
const o = document.createElement("span"), i = document.createElement("span"), $ =
|
|
339
|
-
i.className = "q-ripple__inner",
|
|
338
|
+
const o = document.createElement("span"), i = document.createElement("span"), $ = ut(e), { left: k, top: f, width: S, height: d } = t.getBoundingClientRect(), q = Math.sqrt(S * S + d * d), u = q / 2, m = `${(S - q) / 2}px`, v = l ? m : `${$.left - k - u}px`, b = `${(d - q) / 2}px`, B = l ? b : `${$.top - f - u}px`;
|
|
339
|
+
i.className = "q-ripple__inner", rt(i, {
|
|
340
340
|
height: `${q}px`,
|
|
341
341
|
width: `${q}px`,
|
|
342
|
-
transform: `translate3d(${v},${
|
|
342
|
+
transform: `translate3d(${v},${B},0) scale3d(.2,.2,1)`,
|
|
343
343
|
opacity: 0
|
|
344
344
|
}), o.className = `q-ripple${s ? " text-" + s : ""}`, o.setAttribute("dir", "ltr"), o.appendChild(i), t.appendChild(o);
|
|
345
345
|
const w = () => {
|
|
@@ -347,14 +347,14 @@ function ye(e, t, n, a) {
|
|
|
347
347
|
};
|
|
348
348
|
n.abort.push(w);
|
|
349
349
|
let E = setTimeout(() => {
|
|
350
|
-
i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${
|
|
350
|
+
i.classList.add("q-ripple__inner--enter"), i.style.transform = `translate3d(${m},${b},0) scale3d(1,1,1)`, i.style.opacity = 0.2, E = setTimeout(() => {
|
|
351
351
|
i.classList.remove("q-ripple__inner--enter"), i.classList.add("q-ripple__inner--leave"), i.style.opacity = 0, E = setTimeout(() => {
|
|
352
352
|
o.remove(), n.abort.splice(n.abort.indexOf(w), 1);
|
|
353
353
|
}, 275);
|
|
354
354
|
}, 250);
|
|
355
355
|
}, 50);
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function ke(e, { modifiers: t, value: n, arg: a }) {
|
|
358
358
|
const s = Object.assign({}, e.cfg.ripple, t, n);
|
|
359
359
|
e.modifiers = {
|
|
360
360
|
early: s.early === !0,
|
|
@@ -364,7 +364,7 @@ function _e(e, { modifiers: t, value: n, arg: a }) {
|
|
|
364
364
|
keyCodes: [].concat(s.keyCodes || 13)
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
|
-
const
|
|
367
|
+
const mt = Je(
|
|
368
368
|
{
|
|
369
369
|
name: "ripple",
|
|
370
370
|
beforeMount(e, t) {
|
|
@@ -378,11 +378,11 @@ const ht = Me(
|
|
|
378
378
|
start(s) {
|
|
379
379
|
a.enabled === !0 && s.qSkipRipple !== !0 && s.type === (a.modifiers.early === !0 ? "pointerdown" : "click") && ye(s, e, a, s.qKeyEvent === !0);
|
|
380
380
|
},
|
|
381
|
-
keystart:
|
|
382
|
-
a.enabled === !0 && s.qSkipRipple !== !0 &&
|
|
381
|
+
keystart: gt((s) => {
|
|
382
|
+
a.enabled === !0 && s.qSkipRipple !== !0 && ve(s, a.modifiers.keyCodes) === !0 && s.type === `key${a.modifiers.early === !0 ? "down" : "up"}` && ye(s, e, a, !0);
|
|
383
383
|
}, 300)
|
|
384
384
|
};
|
|
385
|
-
|
|
385
|
+
ke(a, t), e.__qripple = a, dt(a, "main", [
|
|
386
386
|
[e, "pointerdown", "start", "passive"],
|
|
387
387
|
[e, "click", "start", "passive"],
|
|
388
388
|
[e, "keydown", "keystart", "passive"],
|
|
@@ -392,17 +392,17 @@ const ht = Me(
|
|
|
392
392
|
updated(e, t) {
|
|
393
393
|
if (t.oldValue !== t.value) {
|
|
394
394
|
const n = e.__qripple;
|
|
395
|
-
n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value &&
|
|
395
|
+
n !== void 0 && (n.enabled = t.value !== !1, n.enabled === !0 && Object(t.value) === t.value && ke(n, t));
|
|
396
396
|
}
|
|
397
397
|
},
|
|
398
398
|
beforeUnmount(e) {
|
|
399
399
|
const t = e.__qripple;
|
|
400
400
|
t !== void 0 && (t.abort.forEach((n) => {
|
|
401
401
|
n();
|
|
402
|
-
}),
|
|
402
|
+
}), ft(t, "main"), delete e._qripple);
|
|
403
403
|
}
|
|
404
404
|
}
|
|
405
|
-
),
|
|
405
|
+
), Te = {
|
|
406
406
|
left: "start",
|
|
407
407
|
center: "center",
|
|
408
408
|
right: "end",
|
|
@@ -410,19 +410,19 @@ const ht = Me(
|
|
|
410
410
|
around: "around",
|
|
411
411
|
evenly: "evenly",
|
|
412
412
|
stretch: "stretch"
|
|
413
|
-
},
|
|
413
|
+
}, pt = Object.keys(Te), bt = {
|
|
414
414
|
align: {
|
|
415
415
|
type: String,
|
|
416
|
-
validator: (e) =>
|
|
416
|
+
validator: (e) => pt.includes(e)
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
|
-
function
|
|
419
|
+
function ht(e) {
|
|
420
420
|
return r(() => {
|
|
421
421
|
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
422
|
-
return `${e.vertical === !0 ? "items" : "justify"}-${
|
|
422
|
+
return `${e.vertical === !0 ? "items" : "justify"}-${Te[t]}`;
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function $n(e) {
|
|
426
426
|
if (Object(e.$parent) === e.$parent)
|
|
427
427
|
return e.$parent;
|
|
428
428
|
let { parent: t } = e.$;
|
|
@@ -432,19 +432,19 @@ function ne(e) {
|
|
|
432
432
|
t = t.parent;
|
|
433
433
|
}
|
|
434
434
|
}
|
|
435
|
-
function
|
|
435
|
+
function yt(e) {
|
|
436
436
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
437
437
|
}
|
|
438
|
-
function
|
|
438
|
+
function qn(e) {
|
|
439
439
|
return e.isUnmounted === !0 || e.isDeactivated === !0;
|
|
440
440
|
}
|
|
441
|
-
function
|
|
441
|
+
function _e(e) {
|
|
442
442
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
443
443
|
}
|
|
444
|
-
function
|
|
444
|
+
function $e(e, t) {
|
|
445
445
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
446
446
|
}
|
|
447
|
-
function
|
|
447
|
+
function kt(e, t) {
|
|
448
448
|
for (const n in t) {
|
|
449
449
|
const a = t[n], s = e[n];
|
|
450
450
|
if (typeof a == "string") {
|
|
@@ -455,21 +455,21 @@ function $t(e, t) {
|
|
|
455
455
|
}
|
|
456
456
|
return !0;
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function qe(e, t) {
|
|
459
459
|
return Array.isArray(t) === !0 ? e.length === t.length && e.every((n, a) => n === t[a]) : e.length === 1 && e[0] === t;
|
|
460
460
|
}
|
|
461
|
-
function
|
|
462
|
-
return Array.isArray(e) === !0 ?
|
|
461
|
+
function _t(e, t) {
|
|
462
|
+
return Array.isArray(e) === !0 ? qe(e, t) : Array.isArray(t) === !0 ? qe(t, e) : e === t;
|
|
463
463
|
}
|
|
464
|
-
function
|
|
464
|
+
function $t(e, t) {
|
|
465
465
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
466
466
|
return !1;
|
|
467
467
|
for (const n in e)
|
|
468
|
-
if (
|
|
468
|
+
if (_t(e[n], t[n]) === !1)
|
|
469
469
|
return !1;
|
|
470
470
|
return !0;
|
|
471
471
|
}
|
|
472
|
-
const
|
|
472
|
+
const ze = {
|
|
473
473
|
// router-link
|
|
474
474
|
to: [String, Object],
|
|
475
475
|
replace: Boolean,
|
|
@@ -478,8 +478,8 @@ const De = {
|
|
|
478
478
|
target: String,
|
|
479
479
|
// state
|
|
480
480
|
disable: Boolean
|
|
481
|
-
},
|
|
482
|
-
...
|
|
481
|
+
}, Sn = {
|
|
482
|
+
...ze,
|
|
483
483
|
// router-link
|
|
484
484
|
exact: Boolean,
|
|
485
485
|
activeClass: {
|
|
@@ -491,111 +491,111 @@ const De = {
|
|
|
491
491
|
default: "q-router-link--exact-active"
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
|
-
function
|
|
495
|
-
const n = ee(), { props: a, proxy: s, emit: l } = n, o =
|
|
494
|
+
function qt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
495
|
+
const n = ee(), { props: a, proxy: s, emit: l } = n, o = yt(n), i = r(() => a.disable !== !0 && a.href !== void 0), $ = t === !0 ? r(
|
|
496
496
|
() => o === !0 && a.disable !== !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
497
497
|
) : r(
|
|
498
498
|
() => o === !0 && i.value !== !0 && a.to !== void 0 && a.to !== null && a.to !== ""
|
|
499
|
-
),
|
|
499
|
+
), k = r(() => $.value === !0 ? B(a.to) : null), f = r(() => k.value !== null), S = r(() => i.value === !0 || f.value === !0), d = r(() => a.type === "a" || S.value === !0 ? "a" : a.tag || e || "div"), q = r(() => i.value === !0 ? {
|
|
500
500
|
href: a.href,
|
|
501
501
|
target: a.target
|
|
502
502
|
} : f.value === !0 ? {
|
|
503
|
-
href:
|
|
503
|
+
href: k.value.href,
|
|
504
504
|
target: a.target
|
|
505
505
|
} : {}), u = r(() => {
|
|
506
506
|
if (f.value === !1)
|
|
507
507
|
return -1;
|
|
508
|
-
const { matched:
|
|
509
|
-
if (
|
|
508
|
+
const { matched: y } = k.value, { length: R } = y, P = y[R - 1];
|
|
509
|
+
if (P === void 0)
|
|
510
510
|
return -1;
|
|
511
|
-
const
|
|
512
|
-
if (
|
|
511
|
+
const x = s.$route.matched;
|
|
512
|
+
if (x.length === 0)
|
|
513
513
|
return -1;
|
|
514
|
-
const
|
|
515
|
-
|
|
514
|
+
const O = x.findIndex(
|
|
515
|
+
$e.bind(null, P)
|
|
516
516
|
);
|
|
517
|
-
if (
|
|
518
|
-
return
|
|
519
|
-
const
|
|
517
|
+
if (O !== -1)
|
|
518
|
+
return O;
|
|
519
|
+
const K = _e(y[R - 2]);
|
|
520
520
|
return (
|
|
521
521
|
// we are dealing with nested routes
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
) :
|
|
522
|
+
R > 1 && _e(P) === K && x[x.length - 1].path !== K ? x.findIndex(
|
|
523
|
+
$e.bind(null, y[R - 2])
|
|
524
|
+
) : O
|
|
525
525
|
);
|
|
526
|
-
}),
|
|
527
|
-
() => f.value === !0 && u.value !== -1 &&
|
|
526
|
+
}), m = r(
|
|
527
|
+
() => f.value === !0 && u.value !== -1 && kt(s.$route.params, k.value.params)
|
|
528
528
|
), v = r(
|
|
529
|
-
() =>
|
|
530
|
-
),
|
|
531
|
-
function
|
|
529
|
+
() => m.value === !0 && u.value === s.$route.matched.length - 1 && $t(s.$route.params, k.value.params)
|
|
530
|
+
), b = r(() => f.value === !0 ? v.value === !0 ? ` ${a.exactActiveClass} ${a.activeClass}` : a.exact === !0 ? "" : m.value === !0 ? ` ${a.activeClass}` : "" : "");
|
|
531
|
+
function B(y) {
|
|
532
532
|
try {
|
|
533
|
-
return s.$router.resolve(
|
|
533
|
+
return s.$router.resolve(y);
|
|
534
534
|
} catch {
|
|
535
535
|
}
|
|
536
536
|
return null;
|
|
537
537
|
}
|
|
538
|
-
function w(
|
|
538
|
+
function w(y, { returnRouterError: R, to: P = a.to, replace: x = a.replace } = {}) {
|
|
539
539
|
if (a.disable === !0)
|
|
540
|
-
return
|
|
540
|
+
return y.preventDefault(), Promise.resolve(!1);
|
|
541
541
|
if (
|
|
542
542
|
// don't redirect with control keys;
|
|
543
543
|
// should match RouterLink from Vue Router
|
|
544
|
-
|
|
544
|
+
y.metaKey || y.altKey || y.ctrlKey || y.shiftKey || y.button !== void 0 && y.button !== 0 || a.target === "_blank"
|
|
545
545
|
)
|
|
546
546
|
return Promise.resolve(!1);
|
|
547
|
-
|
|
548
|
-
const
|
|
549
|
-
return
|
|
547
|
+
y.preventDefault();
|
|
548
|
+
const O = s.$router[x === !0 ? "replace" : "push"](P);
|
|
549
|
+
return R === !0 ? O : O.then(() => {
|
|
550
550
|
}).catch(() => {
|
|
551
551
|
});
|
|
552
552
|
}
|
|
553
|
-
function E(
|
|
553
|
+
function E(y) {
|
|
554
554
|
if (f.value === !0) {
|
|
555
|
-
const
|
|
556
|
-
l("click",
|
|
555
|
+
const R = (P) => w(y, P);
|
|
556
|
+
l("click", y, R), y.defaultPrevented !== !0 && R();
|
|
557
557
|
} else
|
|
558
|
-
l("click",
|
|
558
|
+
l("click", y);
|
|
559
559
|
}
|
|
560
560
|
return {
|
|
561
561
|
hasRouterLink: f,
|
|
562
562
|
hasHrefLink: i,
|
|
563
563
|
hasLink: S,
|
|
564
564
|
linkTag: d,
|
|
565
|
-
resolvedLink:
|
|
566
|
-
linkIsActive:
|
|
565
|
+
resolvedLink: k,
|
|
566
|
+
linkIsActive: m,
|
|
567
567
|
linkIsExactActive: v,
|
|
568
|
-
linkClass:
|
|
568
|
+
linkClass: b,
|
|
569
569
|
linkAttrs: q,
|
|
570
|
-
getLink:
|
|
570
|
+
getLink: B,
|
|
571
571
|
navigateToRouterLink: w,
|
|
572
572
|
navigateOnClick: E
|
|
573
573
|
};
|
|
574
574
|
}
|
|
575
|
-
const
|
|
575
|
+
const Se = {
|
|
576
576
|
none: 0,
|
|
577
577
|
xs: 4,
|
|
578
578
|
sm: 8,
|
|
579
579
|
md: 16,
|
|
580
580
|
lg: 24,
|
|
581
581
|
xl: 32
|
|
582
|
-
},
|
|
582
|
+
}, St = {
|
|
583
583
|
xs: 8,
|
|
584
584
|
sm: 10,
|
|
585
585
|
md: 14,
|
|
586
586
|
lg: 20,
|
|
587
587
|
xl: 24
|
|
588
|
-
},
|
|
588
|
+
}, Bt = ["button", "submit", "reset"], Ct = /[^\s]\/[^\s]/, wt = ["flat", "outline", "push", "unelevated"];
|
|
589
589
|
function xe(e, t) {
|
|
590
590
|
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
|
|
591
591
|
}
|
|
592
|
-
function
|
|
592
|
+
function Bn(e) {
|
|
593
593
|
const t = xe(e);
|
|
594
594
|
return t !== void 0 ? { [t]: !0 } : {};
|
|
595
595
|
}
|
|
596
|
-
const
|
|
597
|
-
...
|
|
598
|
-
...
|
|
596
|
+
const Et = {
|
|
597
|
+
...se,
|
|
598
|
+
...ze,
|
|
599
599
|
type: {
|
|
600
600
|
type: String,
|
|
601
601
|
default: "button"
|
|
@@ -603,7 +603,7 @@ const Pt = {
|
|
|
603
603
|
label: [Number, String],
|
|
604
604
|
icon: String,
|
|
605
605
|
iconRight: String,
|
|
606
|
-
...
|
|
606
|
+
...wt.reduce(
|
|
607
607
|
(e, t) => (e[t] = Boolean) && e,
|
|
608
608
|
{}
|
|
609
609
|
),
|
|
@@ -625,7 +625,7 @@ const Pt = {
|
|
|
625
625
|
default: !0
|
|
626
626
|
},
|
|
627
627
|
align: {
|
|
628
|
-
...
|
|
628
|
+
...bt.align,
|
|
629
629
|
default: "center"
|
|
630
630
|
},
|
|
631
631
|
stack: Boolean,
|
|
@@ -635,27 +635,27 @@ const Pt = {
|
|
|
635
635
|
default: null
|
|
636
636
|
},
|
|
637
637
|
disable: Boolean
|
|
638
|
-
},
|
|
639
|
-
...
|
|
638
|
+
}, Lt = {
|
|
639
|
+
...Et,
|
|
640
640
|
round: Boolean
|
|
641
641
|
};
|
|
642
|
-
function
|
|
643
|
-
const t =
|
|
642
|
+
function Rt(e) {
|
|
643
|
+
const t = ie(e, St), n = ht(e), { hasRouterLink: a, hasLink: s, linkTag: l, linkAttrs: o, navigateOnClick: i } = qt({
|
|
644
644
|
fallbackTag: "button"
|
|
645
645
|
}), $ = r(() => {
|
|
646
646
|
const v = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
647
647
|
return e.padding !== void 0 ? Object.assign({}, v, {
|
|
648
|
-
padding: e.padding.split(/\s+/).map((
|
|
648
|
+
padding: e.padding.split(/\s+/).map((b) => b in Se ? Se[b] + "px" : b).join(" "),
|
|
649
649
|
minWidth: "0",
|
|
650
650
|
minHeight: "0"
|
|
651
651
|
}) : v;
|
|
652
|
-
}),
|
|
652
|
+
}), k = r(
|
|
653
653
|
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
654
654
|
), f = r(
|
|
655
655
|
() => e.disable !== !0 && e.loading !== !0
|
|
656
656
|
), S = r(() => f.value === !0 ? e.tabindex || 0 : -1), d = r(() => xe(e, "standard")), q = r(() => {
|
|
657
657
|
const v = { tabindex: S.value };
|
|
658
|
-
return s.value === !0 ? Object.assign(v, o.value) :
|
|
658
|
+
return s.value === !0 ? Object.assign(v, o.value) : Bt.includes(e.type) === !0 && (v.type = e.type), l.value === "a" ? (e.disable === !0 ? v["aria-disabled"] = "true" : v.href === void 0 && (v.role = "button"), a.value !== !0 && Ct.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, {
|
|
659
659
|
role: "progressbar",
|
|
660
660
|
"aria-valuemin": 0,
|
|
661
661
|
"aria-valuemax": 100,
|
|
@@ -664,15 +664,15 @@ function Mt(e) {
|
|
|
664
664
|
}), u = r(() => {
|
|
665
665
|
let v;
|
|
666
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}`);
|
|
667
|
-
const
|
|
668
|
-
return `q-btn--${d.value} q-btn--${
|
|
669
|
-
}),
|
|
667
|
+
const b = e.round === !0 ? "round" : `rectangle${k.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
668
|
+
return `q-btn--${d.value} q-btn--${b}` + (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" : "");
|
|
669
|
+
}), m = r(
|
|
670
670
|
() => n.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
671
671
|
);
|
|
672
672
|
return {
|
|
673
673
|
classes: u,
|
|
674
674
|
style: $,
|
|
675
|
-
innerClasses:
|
|
675
|
+
innerClasses: m,
|
|
676
676
|
attributes: q,
|
|
677
677
|
hasLink: s,
|
|
678
678
|
linkTag: l,
|
|
@@ -680,12 +680,12 @@ function Mt(e) {
|
|
|
680
680
|
isActionable: f
|
|
681
681
|
};
|
|
682
682
|
}
|
|
683
|
-
const { passiveCapture: I } =
|
|
683
|
+
const { passiveCapture: I } = re;
|
|
684
684
|
let U = null, H = null, X = null;
|
|
685
|
-
const
|
|
685
|
+
const Pt = te({
|
|
686
686
|
name: "QBtn",
|
|
687
687
|
props: {
|
|
688
|
-
...
|
|
688
|
+
...Lt,
|
|
689
689
|
percentage: Number,
|
|
690
690
|
darkPercentage: Boolean,
|
|
691
691
|
onTouchstart: [Function, Array]
|
|
@@ -698,20 +698,20 @@ const At = te({
|
|
|
698
698
|
innerClasses: o,
|
|
699
699
|
attributes: i,
|
|
700
700
|
hasLink: $,
|
|
701
|
-
linkTag:
|
|
701
|
+
linkTag: k,
|
|
702
702
|
navigateOnClick: f,
|
|
703
703
|
isActionable: S
|
|
704
|
-
} =
|
|
705
|
-
let u = null,
|
|
706
|
-
const
|
|
704
|
+
} = Rt(e), d = W(null), q = W(null);
|
|
705
|
+
let u = null, m, v = null;
|
|
706
|
+
const b = r(
|
|
707
707
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
708
|
-
),
|
|
708
|
+
), B = r(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
709
709
|
keyCodes: $.value === !0 ? [13, 32] : [13],
|
|
710
710
|
...e.ripple === !0 ? {} : e.ripple
|
|
711
711
|
}), w = r(() => ({ center: e.round })), E = r(() => {
|
|
712
712
|
const c = Math.max(0, Math.min(100, e.percentage));
|
|
713
713
|
return c > 0 ? { transition: "transform 0.6s", transform: `translateX(${c - 100}%)` } : {};
|
|
714
|
-
}),
|
|
714
|
+
}), y = r(() => {
|
|
715
715
|
if (e.loading === !0)
|
|
716
716
|
return {
|
|
717
717
|
onMousedown: M,
|
|
@@ -722,61 +722,61 @@ const At = te({
|
|
|
722
722
|
};
|
|
723
723
|
if (S.value === !0) {
|
|
724
724
|
const c = {
|
|
725
|
-
onClick:
|
|
726
|
-
onKeydown:
|
|
727
|
-
onMousedown:
|
|
725
|
+
onClick: P,
|
|
726
|
+
onKeydown: x,
|
|
727
|
+
onMousedown: K
|
|
728
728
|
};
|
|
729
729
|
if (a.$q.platform.has.touch === !0) {
|
|
730
|
-
const
|
|
731
|
-
c[`onTouchstart${
|
|
730
|
+
const C = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
731
|
+
c[`onTouchstart${C}`] = O;
|
|
732
732
|
}
|
|
733
733
|
return c;
|
|
734
734
|
}
|
|
735
735
|
return {
|
|
736
736
|
// needed; especially for disabled <a> tags
|
|
737
|
-
onClick:
|
|
737
|
+
onClick: j
|
|
738
738
|
};
|
|
739
|
-
}),
|
|
739
|
+
}), R = r(() => ({
|
|
740
740
|
ref: d,
|
|
741
741
|
class: "q-btn q-btn-item non-selectable no-outline " + s.value,
|
|
742
742
|
style: l.value,
|
|
743
743
|
...i.value,
|
|
744
|
-
...
|
|
744
|
+
...y.value
|
|
745
745
|
}));
|
|
746
|
-
function
|
|
746
|
+
function P(c) {
|
|
747
747
|
if (d.value !== null) {
|
|
748
748
|
if (c !== void 0) {
|
|
749
749
|
if (c.defaultPrevented === !0) return;
|
|
750
|
-
const
|
|
751
|
-
if (e.type === "submit" &&
|
|
750
|
+
const C = document.activeElement;
|
|
751
|
+
if (e.type === "submit" && C !== document.body && d.value.contains(C) === !1 && C.contains(d.value) === !1) {
|
|
752
752
|
c.qAvoidFocus !== !0 && d.value.focus();
|
|
753
|
-
const
|
|
753
|
+
const D = () => {
|
|
754
754
|
var J;
|
|
755
|
-
document.removeEventListener("keydown",
|
|
755
|
+
document.removeEventListener("keydown", j, !0), document.removeEventListener("keyup", D, I), (J = d.value) == null || J.removeEventListener("blur", D, I);
|
|
756
756
|
};
|
|
757
|
-
document.addEventListener("keydown",
|
|
757
|
+
document.addEventListener("keydown", j, !0), document.addEventListener("keyup", D, I), d.value.addEventListener("blur", D, I);
|
|
758
758
|
}
|
|
759
759
|
}
|
|
760
760
|
f(c);
|
|
761
761
|
}
|
|
762
762
|
}
|
|
763
|
-
function
|
|
764
|
-
d.value !== null && (n("keydown", c),
|
|
763
|
+
function x(c) {
|
|
764
|
+
d.value !== null && (n("keydown", c), ve(c, [13, 32]) === !0 && H !== d.value && (H !== null && p(), c.defaultPrevented !== !0 && (c.qAvoidFocus !== !0 && d.value.focus(), H = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("keyup", V, !0), d.value.addEventListener("blur", V, I)), j(c)));
|
|
765
765
|
}
|
|
766
|
-
function
|
|
767
|
-
d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && p(), U = d.value, u = c.target, u.addEventListener("touchcancel", V, I), u.addEventListener("touchend", V, I)),
|
|
768
|
-
v = null,
|
|
766
|
+
function O(c) {
|
|
767
|
+
d.value !== null && (n("touchstart", c), c.defaultPrevented !== !0 && (U !== d.value && (U !== null && p(), U = d.value, u = c.target, u.addEventListener("touchcancel", V, I), u.addEventListener("touchend", V, I)), m = !0, v !== null && clearTimeout(v), v = setTimeout(() => {
|
|
768
|
+
v = null, m = !1;
|
|
769
769
|
}, 200)));
|
|
770
770
|
}
|
|
771
|
-
function
|
|
772
|
-
d.value !== null && (c.qSkipRipple =
|
|
771
|
+
function K(c) {
|
|
772
|
+
d.value !== null && (c.qSkipRipple = m === !0, n("mousedown", c), c.defaultPrevented !== !0 && X !== d.value && (X !== null && p(), X = d.value, d.value.classList.add("q-btn--active"), document.addEventListener("mouseup", V, I)));
|
|
773
773
|
}
|
|
774
774
|
function V(c) {
|
|
775
775
|
if (d.value !== null && !((c == null ? void 0 : c.type) === "blur" && document.activeElement === d.value)) {
|
|
776
776
|
if ((c == null ? void 0 : c.type) === "keyup") {
|
|
777
|
-
if (H === d.value &&
|
|
778
|
-
const
|
|
779
|
-
|
|
777
|
+
if (H === d.value && ve(c, [13, 32]) === !0) {
|
|
778
|
+
const C = new MouseEvent("click", c);
|
|
779
|
+
C.qKeyEvent = !0, c.defaultPrevented === !0 && ct(C), c.cancelBubble === !0 && Ie(C), d.value.dispatchEvent(C), j(c), c.qKeyEvent = !0;
|
|
780
780
|
}
|
|
781
781
|
n("keyup", c);
|
|
782
782
|
}
|
|
@@ -784,87 +784,87 @@ const At = te({
|
|
|
784
784
|
}
|
|
785
785
|
}
|
|
786
786
|
function p(c) {
|
|
787
|
-
var
|
|
788
|
-
const
|
|
789
|
-
c !== !0 && (U === d.value || X === d.value) &&
|
|
787
|
+
var D, J;
|
|
788
|
+
const C = q.value;
|
|
789
|
+
c !== !0 && (U === d.value || X === d.value) && C !== null && C !== document.activeElement && (C.setAttribute("tabindex", -1), C.focus()), U === d.value && (u !== null && (u.removeEventListener("touchcancel", V, I), u.removeEventListener("touchend", V, I)), U = u = null), X === d.value && (document.removeEventListener("mouseup", V, I), X = null), H === d.value && (document.removeEventListener("keyup", V, !0), (D = d.value) == null || D.removeEventListener("blur", V, I), H = null), (J = d.value) == null || J.classList.remove("q-btn--active");
|
|
790
790
|
}
|
|
791
791
|
function M(c) {
|
|
792
|
-
|
|
792
|
+
j(c), c.qSkipRipple = !0;
|
|
793
793
|
}
|
|
794
|
-
return
|
|
794
|
+
return De(() => {
|
|
795
795
|
p(!0);
|
|
796
796
|
}), Object.assign(a, {
|
|
797
797
|
click: (c) => {
|
|
798
|
-
S.value === !0 &&
|
|
798
|
+
S.value === !0 && P(c);
|
|
799
799
|
}
|
|
800
800
|
}), () => {
|
|
801
801
|
let c = [];
|
|
802
802
|
e.icon !== void 0 && c.push(
|
|
803
|
-
|
|
803
|
+
g(fe, {
|
|
804
804
|
name: e.icon,
|
|
805
|
-
left: e.stack !== !0 &&
|
|
805
|
+
left: e.stack !== !0 && b.value === !0,
|
|
806
806
|
role: "img"
|
|
807
807
|
})
|
|
808
|
-
),
|
|
809
|
-
|
|
808
|
+
), b.value === !0 && c.push(
|
|
809
|
+
g("span", { class: "block" }, [e.label])
|
|
810
810
|
), c = N(t.default, c), e.iconRight !== void 0 && e.round === !1 && c.push(
|
|
811
|
-
|
|
811
|
+
g(fe, {
|
|
812
812
|
name: e.iconRight,
|
|
813
|
-
right: e.stack !== !0 &&
|
|
813
|
+
right: e.stack !== !0 && b.value === !0,
|
|
814
814
|
role: "img"
|
|
815
815
|
})
|
|
816
816
|
);
|
|
817
|
-
const
|
|
818
|
-
|
|
817
|
+
const C = [
|
|
818
|
+
g("span", {
|
|
819
819
|
class: "q-focus-helper",
|
|
820
820
|
ref: q
|
|
821
821
|
})
|
|
822
822
|
];
|
|
823
|
-
return e.loading === !0 && e.percentage !== void 0 &&
|
|
824
|
-
|
|
823
|
+
return e.loading === !0 && e.percentage !== void 0 && C.push(
|
|
824
|
+
g("span", {
|
|
825
825
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
826
826
|
}, [
|
|
827
|
-
|
|
827
|
+
g("span", {
|
|
828
828
|
class: "q-btn__progress-indicator fit block",
|
|
829
829
|
style: E.value
|
|
830
830
|
})
|
|
831
831
|
])
|
|
832
|
-
),
|
|
833
|
-
|
|
832
|
+
), C.push(
|
|
833
|
+
g("span", {
|
|
834
834
|
class: "q-btn__content text-center col items-center q-anchor--skip " + o.value
|
|
835
835
|
}, c)
|
|
836
|
-
), e.loading !== null &&
|
|
837
|
-
|
|
836
|
+
), e.loading !== null && C.push(
|
|
837
|
+
g(Ne, {
|
|
838
838
|
name: "q-transition--fade"
|
|
839
839
|
}, () => e.loading === !0 ? [
|
|
840
|
-
|
|
840
|
+
g("span", {
|
|
841
841
|
key: "loading",
|
|
842
842
|
class: "absolute-full flex flex-center"
|
|
843
|
-
}, t.loading !== void 0 ? t.loading() : [
|
|
843
|
+
}, t.loading !== void 0 ? t.loading() : [g(Ve)])
|
|
844
844
|
] : null)
|
|
845
|
-
),
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
845
|
+
), ge(
|
|
846
|
+
g(
|
|
847
|
+
k.value,
|
|
848
|
+
R.value,
|
|
849
|
+
C
|
|
850
850
|
),
|
|
851
851
|
[[
|
|
852
|
-
|
|
853
|
-
|
|
852
|
+
mt,
|
|
853
|
+
B.value,
|
|
854
854
|
void 0,
|
|
855
855
|
w.value
|
|
856
856
|
]]
|
|
857
857
|
);
|
|
858
858
|
};
|
|
859
859
|
}
|
|
860
|
-
}),
|
|
860
|
+
}), Mt = /* @__PURE__ */ F({
|
|
861
861
|
__name: "AppButton",
|
|
862
862
|
props: {
|
|
863
863
|
size: { default: z.MD },
|
|
864
864
|
transparent: { type: Boolean },
|
|
865
865
|
flat: { type: Boolean },
|
|
866
866
|
rounded: { type: Boolean },
|
|
867
|
-
color: { default:
|
|
867
|
+
color: { default: Le.PRIMARY },
|
|
868
868
|
iconLeft: {},
|
|
869
869
|
iconRight: {},
|
|
870
870
|
iconMiddle: {},
|
|
@@ -894,11 +894,11 @@ const At = te({
|
|
|
894
894
|
`app-btn_${t.size}`,
|
|
895
895
|
`app-btn_${t.color}`
|
|
896
896
|
]);
|
|
897
|
-
return (a, s) => (
|
|
897
|
+
return (a, s) => (h(), ne(Z(Pt), {
|
|
898
898
|
"no-caps": "",
|
|
899
899
|
unelevated: "",
|
|
900
900
|
class: L(n.value),
|
|
901
|
-
padding: Z(
|
|
901
|
+
padding: Z(Ge)[a.size || Z(z).MD],
|
|
902
902
|
loading: a.loading,
|
|
903
903
|
disable: a.disabled || void 0,
|
|
904
904
|
to: a.to,
|
|
@@ -909,8 +909,8 @@ const At = te({
|
|
|
909
909
|
download: a.download,
|
|
910
910
|
onClick: s[0] || (s[0] = (l) => a.$emit("click", l))
|
|
911
911
|
}, {
|
|
912
|
-
default:
|
|
913
|
-
a.iconLeft || a.iconMiddle ? (
|
|
912
|
+
default: Fe(() => [
|
|
913
|
+
a.iconLeft || a.iconMiddle ? (h(), _("i", {
|
|
914
914
|
key: 0,
|
|
915
915
|
class: L([
|
|
916
916
|
"icon-kl",
|
|
@@ -919,11 +919,11 @@ const At = te({
|
|
|
919
919
|
a.transparent || a.flat ? `text-${a.color}` : "text-secondary"
|
|
920
920
|
])
|
|
921
921
|
}, null, 2)) : A("", !0),
|
|
922
|
-
|
|
923
|
-
a.label ? (
|
|
924
|
-
|
|
922
|
+
ae(a.$slots, "default", {}, void 0, !0),
|
|
923
|
+
a.label ? (h(), _(le, { key: 1 }, [
|
|
924
|
+
we(Y(a.label), 1)
|
|
925
925
|
], 64)) : A("", !0),
|
|
926
|
-
a.iconRight ? (
|
|
926
|
+
a.iconRight ? (h(), _("i", {
|
|
927
927
|
key: 2,
|
|
928
928
|
class: L([
|
|
929
929
|
"icon-kl",
|
|
@@ -941,20 +941,20 @@ const At = te({
|
|
|
941
941
|
for (const [a, s] of t)
|
|
942
942
|
n[a] = s;
|
|
943
943
|
return n;
|
|
944
|
-
},
|
|
944
|
+
}, Cn = /* @__PURE__ */ G(Mt, [["__scopeId", "data-v-44d5548c"]]), At = {
|
|
945
945
|
key: 0,
|
|
946
946
|
class: "app-toggle__label app-toggle__label_left"
|
|
947
|
-
},
|
|
947
|
+
}, Vt = { class: "app-toggle__container" }, It = ["checked", "disabled"], Tt = { class: "app-toggle__thumb" }, zt = {
|
|
948
948
|
key: 1,
|
|
949
949
|
class: "app-toggle__label"
|
|
950
|
-
},
|
|
950
|
+
}, xt = /* @__PURE__ */ F({
|
|
951
951
|
__name: "AppToggle",
|
|
952
952
|
props: {
|
|
953
953
|
modelValue: { type: Boolean },
|
|
954
954
|
size: { default: z.MD },
|
|
955
955
|
label: {},
|
|
956
956
|
disabled: { type: Boolean },
|
|
957
|
-
color: { default:
|
|
957
|
+
color: { default: Le.PRIMARY },
|
|
958
958
|
iconColor: {},
|
|
959
959
|
icon: {},
|
|
960
960
|
iconActive: {},
|
|
@@ -976,27 +976,27 @@ const At = te({
|
|
|
976
976
|
`app-toggle_${n.size}`,
|
|
977
977
|
`app-toggle_${n.color}`
|
|
978
978
|
]);
|
|
979
|
-
return (o, i) => (
|
|
979
|
+
return (o, i) => (h(), _("div", {
|
|
980
980
|
class: L(l.value)
|
|
981
981
|
}, [
|
|
982
|
-
o.label && o.labelLeft ? (
|
|
983
|
-
T("label",
|
|
982
|
+
o.label && o.labelLeft ? (h(), _("span", At, Y(o.label), 1)) : A("", !0),
|
|
983
|
+
T("label", Vt, [
|
|
984
984
|
T("input", {
|
|
985
985
|
type: "checkbox",
|
|
986
986
|
checked: s.value,
|
|
987
987
|
onChange: i[0] || (i[0] = ($) => s.value = !s.value),
|
|
988
988
|
disabled: o.disabled,
|
|
989
989
|
class: "app-toggle__input"
|
|
990
|
-
}, null, 40,
|
|
990
|
+
}, null, 40, It),
|
|
991
991
|
T("span", {
|
|
992
992
|
class: L(["app-toggle__slider", s.value ? `bg-${o.color}` : ""])
|
|
993
993
|
}, [
|
|
994
|
-
T("span",
|
|
995
|
-
o.icon && !o.modelValue ? (
|
|
994
|
+
T("span", Tt, [
|
|
995
|
+
o.icon && !o.modelValue ? (h(), _("i", {
|
|
996
996
|
key: 0,
|
|
997
997
|
class: L(["icon-kl", `icon-kl-${o.icon}`, "app-toggle__icon"])
|
|
998
998
|
}, null, 2)) : A("", !0),
|
|
999
|
-
o.modelValue && (o.iconActive || o.icon) ? (
|
|
999
|
+
o.modelValue && (o.iconActive || o.icon) ? (h(), _("i", {
|
|
1000
1000
|
key: 1,
|
|
1001
1001
|
class: L([
|
|
1002
1002
|
"icon-kl",
|
|
@@ -1007,22 +1007,22 @@ const At = te({
|
|
|
1007
1007
|
}, null, 2)) : A("", !0)
|
|
1008
1008
|
])
|
|
1009
1009
|
], 2),
|
|
1010
|
-
|
|
1010
|
+
ae(o.$slots, "default", {}, void 0, !0)
|
|
1011
1011
|
]),
|
|
1012
|
-
o.label && !o.labelLeft ? (
|
|
1012
|
+
o.label && !o.labelLeft ? (h(), _("span", zt, Y(o.label), 1)) : A("", !0)
|
|
1013
1013
|
], 2));
|
|
1014
1014
|
}
|
|
1015
|
-
}),
|
|
1015
|
+
}), Ot = /* @__PURE__ */ G(xt, [["__scopeId", "data-v-c6702cb0"]]), Oe = {
|
|
1016
1016
|
dark: {
|
|
1017
1017
|
type: Boolean,
|
|
1018
1018
|
default: null
|
|
1019
1019
|
}
|
|
1020
1020
|
};
|
|
1021
|
-
function
|
|
1021
|
+
function je(e, t) {
|
|
1022
1022
|
return r(() => e.dark === null ? t.dark.isActive : e.dark);
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1025
|
-
const n = W(null), a = r(() => e.disable === !0 ? null :
|
|
1024
|
+
function jt(e, t) {
|
|
1025
|
+
const n = W(null), a = r(() => e.disable === !0 ? null : g("span", {
|
|
1026
1026
|
ref: n,
|
|
1027
1027
|
class: "no-outline",
|
|
1028
1028
|
tabindex: -1
|
|
@@ -1036,32 +1036,32 @@ function Nt(e, t) {
|
|
|
1036
1036
|
refocusTarget: s
|
|
1037
1037
|
};
|
|
1038
1038
|
}
|
|
1039
|
-
const
|
|
1039
|
+
const Dt = {
|
|
1040
1040
|
name: String
|
|
1041
1041
|
};
|
|
1042
|
-
function
|
|
1042
|
+
function Nt(e = {}) {
|
|
1043
1043
|
return (t, n, a) => {
|
|
1044
1044
|
t[n](
|
|
1045
|
-
|
|
1045
|
+
g("input", {
|
|
1046
1046
|
class: "hidden" + (a || ""),
|
|
1047
1047
|
...e.value
|
|
1048
1048
|
})
|
|
1049
1049
|
);
|
|
1050
1050
|
};
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function wn(e) {
|
|
1053
1053
|
return r(() => e.name || e.for);
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1055
|
+
const Ft = {
|
|
1056
1056
|
xs: 30,
|
|
1057
1057
|
sm: 35,
|
|
1058
1058
|
md: 40,
|
|
1059
1059
|
lg: 50,
|
|
1060
1060
|
xl: 60
|
|
1061
|
-
},
|
|
1062
|
-
...
|
|
1063
|
-
...
|
|
1064
|
-
...
|
|
1061
|
+
}, Kt = {
|
|
1062
|
+
...Oe,
|
|
1063
|
+
...se,
|
|
1064
|
+
...Dt,
|
|
1065
1065
|
modelValue: {
|
|
1066
1066
|
required: !0,
|
|
1067
1067
|
default: null
|
|
@@ -1085,19 +1085,19 @@ const Qt = {
|
|
|
1085
1085
|
dense: Boolean,
|
|
1086
1086
|
disable: Boolean,
|
|
1087
1087
|
tabindex: [String, Number]
|
|
1088
|
-
},
|
|
1089
|
-
function
|
|
1090
|
-
const { props: n, slots: a, emit: s, proxy: l } = ee(), { $q: o } = l, i =
|
|
1088
|
+
}, Qt = ["update:modelValue"];
|
|
1089
|
+
function Ut(e, t) {
|
|
1090
|
+
const { props: n, slots: a, emit: s, proxy: l } = ee(), { $q: o } = l, i = je(n, o), $ = W(null), { refocusTargetEl: k, refocusTarget: f } = jt(n, $), S = ie(n, Ft), d = r(
|
|
1091
1091
|
() => n.val !== void 0 && Array.isArray(n.modelValue)
|
|
1092
1092
|
), q = r(() => {
|
|
1093
1093
|
const p = Q(n.val);
|
|
1094
1094
|
return d.value === !0 ? n.modelValue.findIndex((M) => Q(M) === p) : -1;
|
|
1095
|
-
}), u = r(() => d.value === !0 ? q.value !== -1 : Q(n.modelValue) === Q(n.trueValue)),
|
|
1096
|
-
() => u.value === !1 &&
|
|
1097
|
-
),
|
|
1095
|
+
}), u = r(() => d.value === !0 ? q.value !== -1 : Q(n.modelValue) === Q(n.trueValue)), m = r(() => d.value === !0 ? q.value === -1 : Q(n.modelValue) === Q(n.falseValue)), v = r(
|
|
1096
|
+
() => u.value === !1 && m.value === !1
|
|
1097
|
+
), b = r(() => n.disable === !0 ? -1 : n.tabindex || 0), B = r(
|
|
1098
1098
|
() => `q-${e} cursor-pointer no-outline row inline no-wrap items-center` + (n.disable === !0 ? " disabled" : "") + (i.value === !0 ? ` q-${e}--dark` : "") + (n.dense === !0 ? ` q-${e}--dense` : "") + (n.leftLabel === !0 ? " reverse" : "")
|
|
1099
1099
|
), w = r(() => {
|
|
1100
|
-
const p = u.value === !0 ? "truthy" :
|
|
1100
|
+
const p = u.value === !0 ? "truthy" : m.value === !0 ? "falsy" : "indet", M = n.color !== void 0 && (n.keepColor === !0 || m.value !== !0) ? ` text-${n.color}` : "";
|
|
1101
1101
|
return `q-${e}__inner relative-position non-selectable q-${e}__inner--${p}${M}`;
|
|
1102
1102
|
}), E = r(() => {
|
|
1103
1103
|
const p = { type: "checkbox" };
|
|
@@ -1108,19 +1108,19 @@ function Xt(e, t) {
|
|
|
1108
1108
|
name: n.name,
|
|
1109
1109
|
value: d.value === !0 ? n.val : n.trueValue
|
|
1110
1110
|
}), p;
|
|
1111
|
-
}),
|
|
1111
|
+
}), y = Nt(E), R = r(() => {
|
|
1112
1112
|
const p = {
|
|
1113
|
-
tabindex:
|
|
1113
|
+
tabindex: b.value,
|
|
1114
1114
|
role: "checkbox",
|
|
1115
1115
|
"aria-label": n.label,
|
|
1116
1116
|
"aria-checked": v.value === !0 ? "mixed" : u.value === !0 ? "true" : "false"
|
|
1117
1117
|
};
|
|
1118
1118
|
return n.disable === !0 && (p["aria-disabled"] = "true"), p;
|
|
1119
1119
|
});
|
|
1120
|
-
function
|
|
1121
|
-
p !== void 0 && (
|
|
1120
|
+
function P(p) {
|
|
1121
|
+
p !== void 0 && (j(p), f(p)), n.disable !== !0 && s("update:modelValue", x(), p);
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1123
|
+
function x() {
|
|
1124
1124
|
if (d.value === !0) {
|
|
1125
1125
|
if (u.value === !0) {
|
|
1126
1126
|
const p = n.modelValue.slice();
|
|
@@ -1131,169 +1131,105 @@ function Xt(e, t) {
|
|
|
1131
1131
|
if (u.value === !0) {
|
|
1132
1132
|
if (n.toggleOrder !== "ft" || n.toggleIndeterminate === !1)
|
|
1133
1133
|
return n.falseValue;
|
|
1134
|
-
} else if (
|
|
1134
|
+
} else if (m.value === !0) {
|
|
1135
1135
|
if (n.toggleOrder === "ft" || n.toggleIndeterminate === !1)
|
|
1136
1136
|
return n.trueValue;
|
|
1137
1137
|
} else
|
|
1138
1138
|
return n.toggleOrder !== "ft" ? n.trueValue : n.falseValue;
|
|
1139
1139
|
return n.indeterminateValue;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1142
|
-
(p.keyCode === 13 || p.keyCode === 32) &&
|
|
1141
|
+
function O(p) {
|
|
1142
|
+
(p.keyCode === 13 || p.keyCode === 32) && j(p);
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1145
|
-
(p.keyCode === 13 || p.keyCode === 32) &&
|
|
1144
|
+
function K(p) {
|
|
1145
|
+
(p.keyCode === 13 || p.keyCode === 32) && P(p);
|
|
1146
1146
|
}
|
|
1147
1147
|
const V = t(u, v);
|
|
1148
|
-
return Object.assign(l, { toggle:
|
|
1148
|
+
return Object.assign(l, { toggle: P }), () => {
|
|
1149
1149
|
const p = V();
|
|
1150
|
-
n.disable !== !0 &&
|
|
1150
|
+
n.disable !== !0 && y(
|
|
1151
1151
|
p,
|
|
1152
1152
|
"unshift",
|
|
1153
1153
|
` q-${e}__native absolute q-ma-none q-pa-none`
|
|
1154
1154
|
);
|
|
1155
1155
|
const M = [
|
|
1156
|
-
|
|
1156
|
+
g("div", {
|
|
1157
1157
|
class: w.value,
|
|
1158
1158
|
style: S.value,
|
|
1159
1159
|
"aria-hidden": "true"
|
|
1160
1160
|
}, p)
|
|
1161
1161
|
];
|
|
1162
|
-
|
|
1163
|
-
const c = n.label !== void 0 ? N(a.default, [n.label]) :
|
|
1162
|
+
k.value !== null && M.push(k.value);
|
|
1163
|
+
const c = n.label !== void 0 ? N(a.default, [n.label]) : Re(a.default);
|
|
1164
1164
|
return c !== void 0 && M.push(
|
|
1165
|
-
|
|
1165
|
+
g("div", {
|
|
1166
1166
|
class: `q-${e}__label q-anchor--skip`
|
|
1167
1167
|
}, c)
|
|
1168
|
-
),
|
|
1168
|
+
), g("div", {
|
|
1169
1169
|
ref: $,
|
|
1170
|
-
class:
|
|
1171
|
-
...
|
|
1172
|
-
onClick:
|
|
1173
|
-
onKeydown:
|
|
1174
|
-
onKeyup:
|
|
1170
|
+
class: B.value,
|
|
1171
|
+
...R.value,
|
|
1172
|
+
onClick: P,
|
|
1173
|
+
onKeydown: O,
|
|
1174
|
+
onKeyup: K
|
|
1175
1175
|
}, M);
|
|
1176
1176
|
};
|
|
1177
1177
|
}
|
|
1178
|
-
const
|
|
1178
|
+
const Ht = () => g("div", {
|
|
1179
1179
|
key: "svg",
|
|
1180
1180
|
class: "q-checkbox__bg absolute"
|
|
1181
1181
|
}, [
|
|
1182
|
-
|
|
1182
|
+
g("svg", {
|
|
1183
1183
|
class: "q-checkbox__svg fit absolute-full",
|
|
1184
1184
|
viewBox: "0 0 24 24"
|
|
1185
1185
|
}, [
|
|
1186
|
-
|
|
1186
|
+
g("path", {
|
|
1187
1187
|
class: "q-checkbox__truthy",
|
|
1188
1188
|
fill: "none",
|
|
1189
1189
|
d: "M1.73,12.91 8.1,19.28 22.79,4.59"
|
|
1190
1190
|
}),
|
|
1191
|
-
|
|
1191
|
+
g("path", {
|
|
1192
1192
|
class: "q-checkbox__indet",
|
|
1193
1193
|
d: "M4,14H20V10H4"
|
|
1194
1194
|
})
|
|
1195
1195
|
])
|
|
1196
|
-
]),
|
|
1196
|
+
]), Xt = te({
|
|
1197
1197
|
name: "QCheckbox",
|
|
1198
|
-
props:
|
|
1199
|
-
emits:
|
|
1198
|
+
props: Kt,
|
|
1199
|
+
emits: Qt,
|
|
1200
1200
|
setup(e) {
|
|
1201
|
-
const t =
|
|
1201
|
+
const t = Ht();
|
|
1202
1202
|
function n(a, s) {
|
|
1203
1203
|
const l = r(
|
|
1204
1204
|
() => (a.value === !0 ? e.checkedIcon : s.value === !0 ? e.indeterminateIcon : e.uncheckedIcon) || null
|
|
1205
1205
|
);
|
|
1206
1206
|
return () => l.value !== null ? [
|
|
1207
|
-
|
|
1207
|
+
g("div", {
|
|
1208
1208
|
key: "icon",
|
|
1209
1209
|
class: "q-checkbox__icon-container absolute-full flex flex-center no-wrap"
|
|
1210
1210
|
}, [
|
|
1211
|
-
|
|
1211
|
+
g(fe, {
|
|
1212
1212
|
class: "q-checkbox__icon",
|
|
1213
1213
|
name: l.value
|
|
1214
1214
|
})
|
|
1215
1215
|
])
|
|
1216
1216
|
] : [t];
|
|
1217
1217
|
}
|
|
1218
|
-
return
|
|
1219
|
-
}
|
|
1220
|
-
}), Gt = [];
|
|
1221
|
-
function Jt(e) {
|
|
1222
|
-
return Gt.find(
|
|
1223
|
-
(t) => t.contentEl !== null && t.contentEl.contains(e)
|
|
1224
|
-
);
|
|
1225
|
-
}
|
|
1226
|
-
function Zt(e, t) {
|
|
1227
|
-
do {
|
|
1228
|
-
if (e.$options.name === "QMenu") {
|
|
1229
|
-
if (e.hide(t), e.$props.separateClosePopup === !0)
|
|
1230
|
-
return ne(e);
|
|
1231
|
-
} else if (e.__qPortal === !0) {
|
|
1232
|
-
const n = ne(e);
|
|
1233
|
-
return (n == null ? void 0 : n.$options.name) === "QPopupProxy" ? (e.hide(t), n) : e;
|
|
1234
|
-
}
|
|
1235
|
-
e = ne(e);
|
|
1236
|
-
} while (e != null);
|
|
1237
|
-
}
|
|
1238
|
-
function en(e, t, n) {
|
|
1239
|
-
for (; n !== 0 && e !== void 0 && e !== null; ) {
|
|
1240
|
-
if (e.__qPortal === !0) {
|
|
1241
|
-
if (n--, e.$options.name === "QMenu") {
|
|
1242
|
-
e = Zt(e, t);
|
|
1243
|
-
continue;
|
|
1244
|
-
}
|
|
1245
|
-
e.hide(t);
|
|
1246
|
-
}
|
|
1247
|
-
e = ne(e);
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
function Be(e) {
|
|
1251
|
-
if (e === !1)
|
|
1252
|
-
return 0;
|
|
1253
|
-
if (e === !0 || e === void 0)
|
|
1254
|
-
return 1;
|
|
1255
|
-
const t = parseInt(e, 10);
|
|
1256
|
-
return isNaN(t) ? 0 : t;
|
|
1257
|
-
}
|
|
1258
|
-
const tn = Me(
|
|
1259
|
-
{
|
|
1260
|
-
name: "close-popup",
|
|
1261
|
-
beforeMount(e, { value: t }) {
|
|
1262
|
-
const n = {
|
|
1263
|
-
depth: Be(t),
|
|
1264
|
-
handler(a) {
|
|
1265
|
-
n.depth !== 0 && setTimeout(() => {
|
|
1266
|
-
const s = Jt(e);
|
|
1267
|
-
s !== void 0 && en(s, a, n.depth);
|
|
1268
|
-
});
|
|
1269
|
-
},
|
|
1270
|
-
handlerKey(a) {
|
|
1271
|
-
le(a, 13) === !0 && n.handler(a);
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
|
-
e.__qclosepopup = n, e.addEventListener("click", n.handler), e.addEventListener("keyup", n.handlerKey);
|
|
1275
|
-
},
|
|
1276
|
-
updated(e, { value: t, oldValue: n }) {
|
|
1277
|
-
t !== n && (e.__qclosepopup.depth = Be(t));
|
|
1278
|
-
},
|
|
1279
|
-
beforeUnmount(e) {
|
|
1280
|
-
const t = e.__qclosepopup;
|
|
1281
|
-
e.removeEventListener("click", t.handler), e.removeEventListener("keyup", t.handlerKey), delete e.__qclosepopup;
|
|
1282
|
-
}
|
|
1218
|
+
return Ut("checkbox", n);
|
|
1283
1219
|
}
|
|
1284
|
-
),
|
|
1220
|
+
}), Wt = {
|
|
1285
1221
|
key: 0,
|
|
1286
1222
|
class: "menu-item__loading"
|
|
1287
|
-
},
|
|
1223
|
+
}, Yt = {
|
|
1288
1224
|
key: 0,
|
|
1289
1225
|
class: "menu-item__checked"
|
|
1290
|
-
},
|
|
1226
|
+
}, Gt = {
|
|
1291
1227
|
key: 2,
|
|
1292
1228
|
class: "menu-item__icon"
|
|
1293
|
-
},
|
|
1229
|
+
}, Jt = { class: "menu-item__label" }, Zt = {
|
|
1294
1230
|
key: 3,
|
|
1295
1231
|
class: "menu-item__icon-right icon-kl icon-kl-arrow-right"
|
|
1296
|
-
},
|
|
1232
|
+
}, en = /* @__PURE__ */ F({
|
|
1297
1233
|
__name: "PopupItem",
|
|
1298
1234
|
props: {
|
|
1299
1235
|
label: {},
|
|
@@ -1318,7 +1254,7 @@ const tn = Me(
|
|
|
1318
1254
|
const n = e, a = t, s = () => {
|
|
1319
1255
|
(n.toggle || n.checkbox) && !n.disabled && a("update:modelValue", !n.modelValue);
|
|
1320
1256
|
};
|
|
1321
|
-
return (l, o) =>
|
|
1257
|
+
return (l, o) => (h(), _("div", {
|
|
1322
1258
|
class: L(["menu-item", [
|
|
1323
1259
|
{ "menu-item_gap": l.gap },
|
|
1324
1260
|
{ "menu-item_disabled": l.disabled },
|
|
@@ -1330,49 +1266,47 @@ const tn = Me(
|
|
|
1330
1266
|
T("div", {
|
|
1331
1267
|
class: L(["row items-center no-wrap", `text-${l.color ? l.color : "dark"}`])
|
|
1332
1268
|
}, [
|
|
1333
|
-
l.loading ? (
|
|
1334
|
-
|
|
1269
|
+
l.loading ? (h(), _("div", Wt, [
|
|
1270
|
+
Ke(Z(Ve), {
|
|
1335
1271
|
size: "19px",
|
|
1336
1272
|
color: l.color ? l.color : "dark"
|
|
1337
1273
|
}, null, 8, ["color"])
|
|
1338
|
-
])) : (
|
|
1339
|
-
l.checked ? (
|
|
1274
|
+
])) : (h(), _(le, { key: 1 }, [
|
|
1275
|
+
l.checked ? (h(), _("div", Yt, [...o[2] || (o[2] = [
|
|
1340
1276
|
T("i", { class: "icon-kl icon-kl-check" }, null, -1)
|
|
1341
1277
|
])])) : A("", !0),
|
|
1342
|
-
l.checkbox ? (
|
|
1278
|
+
l.checkbox ? (h(), ne(Xt, {
|
|
1343
1279
|
key: 1,
|
|
1344
1280
|
class: "menu-item__checkbox",
|
|
1345
1281
|
size: "34px",
|
|
1346
1282
|
"model-value": l.modelValue,
|
|
1347
1283
|
"onUpdate:modelValue": o[0] || (o[0] = (i) => a("update:modelValue", i))
|
|
1348
1284
|
}, null, 8, ["model-value"])) : A("", !0),
|
|
1349
|
-
l.icon ? (
|
|
1285
|
+
l.icon ? (h(), _("div", Gt, [
|
|
1350
1286
|
T("i", {
|
|
1351
1287
|
class: L(`icon-kl icon-kl-${l.icon}`),
|
|
1352
|
-
style:
|
|
1288
|
+
style: oe({ fontSize: l.iconSize || "27px" })
|
|
1353
1289
|
}, null, 6)
|
|
1354
1290
|
])) : A("", !0)
|
|
1355
1291
|
], 64)),
|
|
1356
|
-
T("span",
|
|
1292
|
+
T("span", Jt, Y(l.label), 1)
|
|
1357
1293
|
], 2),
|
|
1358
|
-
l.$slots.right ?
|
|
1294
|
+
l.$slots.right ? ae(l.$slots, "right", { key: 0 }, void 0, !0) : l.toggle ? (h(), ne(Ot, {
|
|
1359
1295
|
key: 1,
|
|
1360
1296
|
class: "menu-item__toggle",
|
|
1361
1297
|
"model-value": l.modelValue,
|
|
1362
1298
|
disabled: l.disabled || l.loading,
|
|
1363
1299
|
"onUpdate:modelValue": o[1] || (o[1] = (i) => a("update:modelValue", i))
|
|
1364
|
-
}, null, 8, ["model-value", "disabled"])) : l.iconRight ? (
|
|
1300
|
+
}, null, 8, ["model-value", "disabled"])) : l.iconRight ? (h(), _("i", {
|
|
1365
1301
|
key: 2,
|
|
1366
1302
|
class: L([
|
|
1367
1303
|
"menu-item__icon-right menu-item__icon-right_custom icon-kl",
|
|
1368
1304
|
`icon-kl-${l.iconRight}`
|
|
1369
1305
|
])
|
|
1370
|
-
}, null, 2)) : !l.noArrow && !l.loading ? (
|
|
1371
|
-
], 2))
|
|
1372
|
-
[tn, !l.toggle && !l.checkbox && !l.persistent && !l.disabled]
|
|
1373
|
-
]);
|
|
1306
|
+
}, null, 2)) : !l.noArrow && !l.loading ? (h(), _("i", Zt)) : A("", !0)
|
|
1307
|
+
], 2));
|
|
1374
1308
|
}
|
|
1375
|
-
}),
|
|
1309
|
+
}), En = /* @__PURE__ */ G(en, [["__scopeId", "data-v-d4a152db"]]), tn = /* @__PURE__ */ F({
|
|
1376
1310
|
__name: "AppIcon",
|
|
1377
1311
|
props: {
|
|
1378
1312
|
name: {},
|
|
@@ -1380,28 +1314,28 @@ const tn = Me(
|
|
|
1380
1314
|
color: {}
|
|
1381
1315
|
},
|
|
1382
1316
|
setup(e) {
|
|
1383
|
-
return (t, n) => (
|
|
1317
|
+
return (t, n) => (h(), _("i", {
|
|
1384
1318
|
class: L(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
|
|
1385
|
-
style:
|
|
1319
|
+
style: oe(t.size ? `font-size: ${t.size}` : void 0)
|
|
1386
1320
|
}, null, 6));
|
|
1387
1321
|
}
|
|
1388
|
-
}),
|
|
1322
|
+
}), Ln = /* @__PURE__ */ G(tn, [["__scopeId", "data-v-941765ee"]]), nn = {
|
|
1389
1323
|
xs: 2,
|
|
1390
1324
|
sm: 4,
|
|
1391
1325
|
md: 6,
|
|
1392
1326
|
lg: 10,
|
|
1393
1327
|
xl: 14
|
|
1394
1328
|
};
|
|
1395
|
-
function
|
|
1329
|
+
function Be(e, t, n) {
|
|
1396
1330
|
return {
|
|
1397
1331
|
transform: t === !0 ? `translateX(${n.lang.rtl === !0 ? "-" : ""}100%) scale3d(${-e},1,1)` : `scale3d(${e},1,1)`
|
|
1398
1332
|
};
|
|
1399
1333
|
}
|
|
1400
|
-
const
|
|
1334
|
+
const an = te({
|
|
1401
1335
|
name: "QLinearProgress",
|
|
1402
1336
|
props: {
|
|
1403
|
-
...
|
|
1404
|
-
...
|
|
1337
|
+
...Oe,
|
|
1338
|
+
...se,
|
|
1405
1339
|
value: {
|
|
1406
1340
|
type: Number,
|
|
1407
1341
|
default: 0
|
|
@@ -1421,35 +1355,35 @@ const dn = te({
|
|
|
1421
1355
|
instantFeedback: Boolean
|
|
1422
1356
|
},
|
|
1423
1357
|
setup(e, { slots: t }) {
|
|
1424
|
-
const { proxy: n } = ee(), a =
|
|
1358
|
+
const { proxy: n } = ee(), a = je(e, n.$q), s = ie(e, nn), l = r(() => e.indeterminate === !0 || e.query === !0), o = r(() => e.reverse !== e.query), i = r(() => ({
|
|
1425
1359
|
...s.value !== null ? s.value : {},
|
|
1426
1360
|
"--q-linear-progress-speed": `${e.animationSpeed}ms`
|
|
1427
1361
|
})), $ = r(
|
|
1428
1362
|
() => "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" : "")
|
|
1429
|
-
),
|
|
1363
|
+
), k = r(() => Be(e.buffer !== void 0 ? e.buffer : 1, o.value, n.$q)), f = r(() => `with${e.instantFeedback === !0 ? "out" : ""}-transition`), S = r(
|
|
1430
1364
|
() => `q-linear-progress__track absolute-full q-linear-progress__track--${f.value} q-linear-progress__track--${a.value === !0 ? "dark" : "light"}` + (e.trackColor !== void 0 ? ` bg-${e.trackColor}` : "")
|
|
1431
|
-
), d = r(() =>
|
|
1365
|
+
), d = r(() => Be(l.value === !0 ? 1 : e.value, o.value, n.$q)), q = r(
|
|
1432
1366
|
() => `q-linear-progress__model absolute-full q-linear-progress__model--${f.value} q-linear-progress__model--${l.value === !0 ? "in" : ""}determinate`
|
|
1433
|
-
), u = r(() => ({ width: `${e.value * 100}%` })),
|
|
1367
|
+
), u = r(() => ({ width: `${e.value * 100}%` })), m = r(
|
|
1434
1368
|
() => `q-linear-progress__stripe absolute-${e.reverse === !0 ? "right" : "left"} q-linear-progress__stripe--${f.value}`
|
|
1435
1369
|
);
|
|
1436
1370
|
return () => {
|
|
1437
1371
|
const v = [
|
|
1438
|
-
|
|
1372
|
+
g("div", {
|
|
1439
1373
|
class: S.value,
|
|
1440
|
-
style:
|
|
1374
|
+
style: k.value
|
|
1441
1375
|
}),
|
|
1442
|
-
|
|
1376
|
+
g("div", {
|
|
1443
1377
|
class: q.value,
|
|
1444
1378
|
style: d.value
|
|
1445
1379
|
})
|
|
1446
1380
|
];
|
|
1447
1381
|
return e.stripe === !0 && l.value === !1 && v.push(
|
|
1448
|
-
|
|
1449
|
-
class:
|
|
1382
|
+
g("div", {
|
|
1383
|
+
class: m.value,
|
|
1450
1384
|
style: u.value
|
|
1451
1385
|
})
|
|
1452
|
-
),
|
|
1386
|
+
), g("div", {
|
|
1453
1387
|
class: $.value,
|
|
1454
1388
|
style: i.value,
|
|
1455
1389
|
role: "progressbar",
|
|
@@ -1459,10 +1393,10 @@ const dn = te({
|
|
|
1459
1393
|
}, N(t.default, v));
|
|
1460
1394
|
};
|
|
1461
1395
|
}
|
|
1462
|
-
}),
|
|
1396
|
+
}), ln = {
|
|
1463
1397
|
key: 0,
|
|
1464
1398
|
class: "code-field__label"
|
|
1465
|
-
},
|
|
1399
|
+
}, on = { class: "code-field__inputs" }, sn = ["onUpdate:modelValue", "disabled", "onInput", "onKeydown", "onPaste"], rn = /* @__PURE__ */ F({
|
|
1466
1400
|
__name: "AppCodeInput",
|
|
1467
1401
|
props: {
|
|
1468
1402
|
length: { default: 5 },
|
|
@@ -1485,41 +1419,41 @@ const dn = te({
|
|
|
1485
1419
|
]), $ = r(() => {
|
|
1486
1420
|
let u = "";
|
|
1487
1421
|
return a.size == z.SM && (u += `width: ${a.length * 26 + (a.length - 1) * 5}px`), a.size == z.MD && (u += `width: ${a.length * 32 + (a.length - 1) * 8}px`), a.size == z.LG && (u += `width: ${a.length * 44 + (a.length - 1) * 10}px`), u;
|
|
1488
|
-
}),
|
|
1489
|
-
var
|
|
1490
|
-
const
|
|
1491
|
-
if (
|
|
1492
|
-
|
|
1493
|
-
else if (
|
|
1494
|
-
const w =
|
|
1495
|
-
w.forEach((E,
|
|
1496
|
-
l.value[
|
|
1497
|
-
}),
|
|
1422
|
+
}), k = (u, m) => {
|
|
1423
|
+
var B;
|
|
1424
|
+
const b = u.target.value;
|
|
1425
|
+
if (b.length === 1)
|
|
1426
|
+
m < a.length - 1 && o.value && ((B = o.value[m + 1]) == null || B.focus());
|
|
1427
|
+
else if (b.length > 1) {
|
|
1428
|
+
const w = b.slice(0, a.length - m).split("");
|
|
1429
|
+
w.forEach((E, y) => {
|
|
1430
|
+
l.value[m + y] = E;
|
|
1431
|
+
}), pe(() => {
|
|
1498
1432
|
var E;
|
|
1499
|
-
o.value && ((E = o.value[Math.min(
|
|
1433
|
+
o.value && ((E = o.value[Math.min(m + w.length, a.length - 1)]) == null || E.focus());
|
|
1500
1434
|
});
|
|
1501
1435
|
}
|
|
1502
1436
|
}, f = (u) => {
|
|
1503
|
-
var
|
|
1504
|
-
l.value[u] === "" && o.value && u > 0 && ((
|
|
1505
|
-
}, S = (u,
|
|
1506
|
-
var
|
|
1437
|
+
var m;
|
|
1438
|
+
l.value[u] === "" && o.value && u > 0 && ((m = o.value[u - 1]) == null || m.focus());
|
|
1439
|
+
}, S = (u, m) => {
|
|
1440
|
+
var B;
|
|
1507
1441
|
u.preventDefault();
|
|
1508
|
-
const v = ((
|
|
1442
|
+
const v = ((B = u.clipboardData) == null ? void 0 : B.getData("text")) ?? "";
|
|
1509
1443
|
if (!v) return;
|
|
1510
|
-
const
|
|
1511
|
-
|
|
1512
|
-
l.value[
|
|
1513
|
-
}),
|
|
1444
|
+
const b = v.slice(0, a.length - m).split("");
|
|
1445
|
+
b.forEach((w, E) => {
|
|
1446
|
+
l.value[m + E] = w;
|
|
1447
|
+
}), pe(() => {
|
|
1514
1448
|
var w;
|
|
1515
|
-
o.value && ((w = o.value[Math.min(
|
|
1449
|
+
o.value && ((w = o.value[Math.min(m + b.length, a.length - 1)]) == null || w.focus());
|
|
1516
1450
|
});
|
|
1517
1451
|
};
|
|
1518
|
-
|
|
1452
|
+
Qe(
|
|
1519
1453
|
l,
|
|
1520
1454
|
(u) => {
|
|
1521
|
-
const
|
|
1522
|
-
d(
|
|
1455
|
+
const m = u.join("");
|
|
1456
|
+
d(m);
|
|
1523
1457
|
},
|
|
1524
1458
|
{ deep: !0 }
|
|
1525
1459
|
);
|
|
@@ -1528,19 +1462,19 @@ const dn = te({
|
|
|
1528
1462
|
}, q = (u) => {
|
|
1529
1463
|
u && (l.value = u.split("").slice(0, a.length));
|
|
1530
1464
|
};
|
|
1531
|
-
return
|
|
1465
|
+
return Ue(() => {
|
|
1532
1466
|
a.autofocus && o.value && o.value[0] && o.value[0].focus();
|
|
1533
1467
|
}), t({
|
|
1534
1468
|
injectCode: q
|
|
1535
|
-
}), (u,
|
|
1469
|
+
}), (u, m) => (h(), _("div", {
|
|
1536
1470
|
class: L(i.value),
|
|
1537
|
-
style:
|
|
1471
|
+
style: oe($.value)
|
|
1538
1472
|
}, [
|
|
1539
|
-
u.label ? (
|
|
1540
|
-
T("div",
|
|
1541
|
-
(
|
|
1542
|
-
key:
|
|
1543
|
-
"onUpdate:modelValue": (
|
|
1473
|
+
u.label ? (h(), _("label", ln, Y(u.label), 1)) : A("", !0),
|
|
1474
|
+
T("div", on, [
|
|
1475
|
+
(h(!0), _(le, null, Ee(u.length, (v, b) => ge((h(), _("input", {
|
|
1476
|
+
key: b,
|
|
1477
|
+
"onUpdate:modelValue": (B) => l.value[b] = B,
|
|
1544
1478
|
ref_for: !0,
|
|
1545
1479
|
ref_key: "inputRefs",
|
|
1546
1480
|
ref: o,
|
|
@@ -1548,14 +1482,14 @@ const dn = te({
|
|
|
1548
1482
|
maxlength: "1",
|
|
1549
1483
|
class: "code-field__input",
|
|
1550
1484
|
disabled: u.disabled || u.loading,
|
|
1551
|
-
onInput: (
|
|
1552
|
-
onKeydown:
|
|
1553
|
-
onPaste: (
|
|
1554
|
-
}, null, 40,
|
|
1555
|
-
[
|
|
1485
|
+
onInput: (B) => k(B, b),
|
|
1486
|
+
onKeydown: He((B) => f(b), ["backspace"]),
|
|
1487
|
+
onPaste: (B) => S(B, b)
|
|
1488
|
+
}, null, 40, sn)), [
|
|
1489
|
+
[Xe, l.value[b]]
|
|
1556
1490
|
])), 128))
|
|
1557
1491
|
]),
|
|
1558
|
-
u.loading ? (
|
|
1492
|
+
u.loading ? (h(), ne(an, {
|
|
1559
1493
|
key: 1,
|
|
1560
1494
|
indeterminate: "",
|
|
1561
1495
|
rounded: "",
|
|
@@ -1564,9 +1498,9 @@ const dn = te({
|
|
|
1564
1498
|
}, null, 8, ["color"])) : A("", !0)
|
|
1565
1499
|
], 6));
|
|
1566
1500
|
}
|
|
1567
|
-
}),
|
|
1501
|
+
}), Rn = /* @__PURE__ */ G(rn, [["__scopeId", "data-v-4e11db87"]]), un = { class: "app-segment__track" }, cn = { class: "app-segment__buttons" }, dn = ["onClick", "disabled"], fn = /* @__PURE__ */ F({
|
|
1568
1502
|
__name: "AppSegment",
|
|
1569
|
-
props: /* @__PURE__ */
|
|
1503
|
+
props: /* @__PURE__ */ We({
|
|
1570
1504
|
options: {},
|
|
1571
1505
|
disabled: { type: Boolean },
|
|
1572
1506
|
size: { default: z.MD }
|
|
@@ -1576,95 +1510,94 @@ const dn = te({
|
|
|
1576
1510
|
}),
|
|
1577
1511
|
emits: ["update:modelValue"],
|
|
1578
1512
|
setup(e) {
|
|
1579
|
-
const t =
|
|
1513
|
+
const t = Ye(e, "modelValue"), n = e, a = r(
|
|
1580
1514
|
() => n.options.findIndex((l) => l.value === t.value)
|
|
1581
1515
|
);
|
|
1582
1516
|
function s(l) {
|
|
1583
1517
|
n.disabled || (t.value = l);
|
|
1584
1518
|
}
|
|
1585
|
-
return (l, o) => (
|
|
1519
|
+
return (l, o) => (h(), _("div", {
|
|
1586
1520
|
class: L(["app-segment", [{ "app-segment_disabled": l.disabled }, `app-segment_${l.size}`]])
|
|
1587
1521
|
}, [
|
|
1588
|
-
T("div",
|
|
1522
|
+
T("div", un, [
|
|
1589
1523
|
T("div", {
|
|
1590
1524
|
class: "app-segment__thumb",
|
|
1591
|
-
style:
|
|
1525
|
+
style: oe({
|
|
1592
1526
|
width: `${100 / l.options.length}%`,
|
|
1593
1527
|
transform: `translateX(${a.value * 100}%)`
|
|
1594
1528
|
})
|
|
1595
1529
|
}, null, 4)
|
|
1596
1530
|
]),
|
|
1597
|
-
T("div",
|
|
1598
|
-
(
|
|
1531
|
+
T("div", cn, [
|
|
1532
|
+
(h(!0), _(le, null, Ee(l.options, (i, $) => (h(), _("button", {
|
|
1599
1533
|
key: $,
|
|
1600
1534
|
class: L(["app-segment__btn", { active: t.value === i.value }]),
|
|
1601
|
-
onClick: (
|
|
1535
|
+
onClick: (k) => s(i.value),
|
|
1602
1536
|
disabled: l.disabled
|
|
1603
1537
|
}, [
|
|
1604
|
-
|
|
1605
|
-
|
|
1538
|
+
ae(l.$slots, "option", { option: i }, () => [
|
|
1539
|
+
we(Y(i.label), 1)
|
|
1606
1540
|
], !0)
|
|
1607
|
-
], 10,
|
|
1541
|
+
], 10, dn))), 128))
|
|
1608
1542
|
])
|
|
1609
1543
|
], 2));
|
|
1610
1544
|
}
|
|
1611
|
-
}),
|
|
1612
|
-
() => import("./AppButtonCopy-
|
|
1613
|
-
),
|
|
1614
|
-
() => import("./AppSelect-
|
|
1615
|
-
),
|
|
1616
|
-
() => import("./DropdownButton-
|
|
1545
|
+
}), Pn = /* @__PURE__ */ G(fn, [["__scopeId", "data-v-ff56abdf"]]), Mn = me(
|
|
1546
|
+
() => import("./AppButtonCopy-D1LXQMmX.js")
|
|
1547
|
+
), An = me(
|
|
1548
|
+
() => import("./AppSelect-DVEWnVCH.js")
|
|
1549
|
+
), Vn = me(
|
|
1550
|
+
() => import("./DropdownButton-TuZuD8GY.js")
|
|
1617
1551
|
);
|
|
1618
1552
|
export {
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1553
|
+
Cn as A,
|
|
1554
|
+
Pt as B,
|
|
1555
|
+
Le as C,
|
|
1556
|
+
dt as D,
|
|
1557
|
+
ft as E,
|
|
1558
|
+
yt as F,
|
|
1559
|
+
$n as G,
|
|
1560
|
+
qn as H,
|
|
1561
|
+
hn as I,
|
|
1562
|
+
rt as J,
|
|
1563
|
+
ut as K,
|
|
1564
|
+
Vn as L,
|
|
1565
|
+
Mn as M,
|
|
1566
|
+
An as N,
|
|
1567
|
+
Pn as O,
|
|
1568
|
+
En as P,
|
|
1569
|
+
fe as Q,
|
|
1570
|
+
mt as R,
|
|
1637
1571
|
z as S,
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
_n as X,
|
|
1572
|
+
Rn as T,
|
|
1573
|
+
Ot as U,
|
|
1574
|
+
Ln as V,
|
|
1575
|
+
gn as W,
|
|
1643
1576
|
G as _,
|
|
1644
|
-
|
|
1645
|
-
|
|
1577
|
+
je as a,
|
|
1578
|
+
Ve as b,
|
|
1646
1579
|
te as c,
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1580
|
+
se as d,
|
|
1581
|
+
ie as e,
|
|
1582
|
+
bn as f,
|
|
1583
|
+
pn as g,
|
|
1584
|
+
Re as h,
|
|
1585
|
+
Sn as i,
|
|
1586
|
+
qt as j,
|
|
1587
|
+
ve as k,
|
|
1588
|
+
mn as l,
|
|
1589
|
+
re as m,
|
|
1590
|
+
_n as n,
|
|
1591
|
+
yn as o,
|
|
1592
|
+
ct as p,
|
|
1593
|
+
kn as q,
|
|
1594
|
+
Dt as r,
|
|
1595
|
+
j as s,
|
|
1596
|
+
wn as t,
|
|
1597
|
+
Oe as u,
|
|
1598
|
+
vt as v,
|
|
1599
|
+
Ie as w,
|
|
1667
1600
|
N as x,
|
|
1668
|
-
|
|
1669
|
-
|
|
1601
|
+
Et as y,
|
|
1602
|
+
Bn as z
|
|
1670
1603
|
};
|