@validol4ik/uikit 0.2.1 → 0.2.12
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/uikit.cjs +1 -1
- package/dist/uikit.es.js +371 -335
- package/package.json +1 -1
package/dist/uikit.es.js
CHANGED
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import { computed as c, markRaw as
|
|
2
|
-
const
|
|
1
|
+
import { computed as c, markRaw as ye, defineComponent as U, getCurrentInstance as ie, h as v, ref as A, onBeforeUnmount as Me, Transition as Te, withDirectives as ze, openBlock as K, createBlock as ke, unref as Q, normalizeClass as Y, withCtx as we, createElementBlock as ee, createCommentVNode as ae, renderSlot as je, reactive as Ie, onMounted as Ne, createVNode as De, mergeProps as Ke, withModifiers as Ae, normalizeStyle as He } from "vue";
|
|
2
|
+
const N = {
|
|
3
3
|
SM: "sm",
|
|
4
4
|
MD: "md",
|
|
5
5
|
LG: "lg"
|
|
6
6
|
};
|
|
7
|
-
var
|
|
8
|
-
const
|
|
7
|
+
var xe = /* @__PURE__ */ ((e) => (e.sm = "3px 9px", e.md = "5px 12px", e.lg = "9px 20px", e))(xe || {});
|
|
8
|
+
const _e = {
|
|
9
9
|
PRIMARY: "primary",
|
|
10
10
|
INFO: "info",
|
|
11
11
|
NEGATIVE: "negative",
|
|
12
12
|
POSITIVE: "positive"
|
|
13
|
-
},
|
|
13
|
+
}, te = {
|
|
14
14
|
xs: 18,
|
|
15
15
|
sm: 24,
|
|
16
16
|
md: 32,
|
|
17
17
|
lg: 38,
|
|
18
18
|
xl: 46
|
|
19
|
-
},
|
|
19
|
+
}, Ee = {
|
|
20
20
|
size: String
|
|
21
21
|
};
|
|
22
|
-
function
|
|
23
|
-
return c(() => e.size !== void 0 ? { fontSize: e.size in
|
|
22
|
+
function Ce(e, n = te) {
|
|
23
|
+
return c(() => e.size !== void 0 ? { fontSize: e.size in n ? `${n[e.size]}px` : e.size } : null);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return Object.defineProperty(e,
|
|
27
|
-
get:
|
|
25
|
+
function Ve(e, n, r, o) {
|
|
26
|
+
return Object.defineProperty(e, n, {
|
|
27
|
+
get: r,
|
|
28
28
|
set: o,
|
|
29
29
|
enumerable: !0
|
|
30
30
|
}), e;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
33
|
-
return
|
|
32
|
+
function G(e) {
|
|
33
|
+
return ye(U(e));
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return
|
|
35
|
+
function Fe(e) {
|
|
36
|
+
return ye(e);
|
|
37
37
|
}
|
|
38
|
-
function
|
|
39
|
-
return e !== void 0 && e() ||
|
|
38
|
+
function ne(e, n) {
|
|
39
|
+
return e !== void 0 && e() || n;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
42
|
-
return e !== void 0 ?
|
|
41
|
+
function D(e, n) {
|
|
42
|
+
return e !== void 0 ? n.concat(e()) : n;
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const le = "0 0 24 24", se = (e) => e, Z = (e) => `ionicons ${e}`, Se = {
|
|
45
45
|
"mdi-": (e) => `mdi ${e}`,
|
|
46
|
-
"icon-":
|
|
46
|
+
"icon-": se,
|
|
47
47
|
// fontawesome equiv
|
|
48
48
|
"bt-": (e) => `bt ${e}`,
|
|
49
49
|
"eva-": (e) => `eva ${e}`,
|
|
50
|
-
"ion-md":
|
|
51
|
-
"ion-ios":
|
|
52
|
-
"ion-logo":
|
|
53
|
-
"iconfont ":
|
|
50
|
+
"ion-md": Z,
|
|
51
|
+
"ion-ios": Z,
|
|
52
|
+
"ion-logo": Z,
|
|
53
|
+
"iconfont ": se,
|
|
54
54
|
"ti-": (e) => `themify-icon ${e}`,
|
|
55
55
|
"bi-": (e) => `bootstrap-icons ${e}`
|
|
56
|
-
},
|
|
56
|
+
}, $e = {
|
|
57
57
|
o_: "-outlined",
|
|
58
58
|
r_: "-round",
|
|
59
59
|
s_: "-sharp"
|
|
60
|
-
},
|
|
60
|
+
}, qe = {
|
|
61
61
|
sym_o_: "-outlined",
|
|
62
62
|
sym_r_: "-rounded",
|
|
63
63
|
sym_s_: "-sharp"
|
|
64
|
-
},
|
|
64
|
+
}, Qe = new RegExp("^(" + Object.keys(Se).join("|") + ")"), Ye = new RegExp("^(" + Object.keys($e).join("|") + ")"), ue = new RegExp("^(" + Object.keys(qe).join("|") + ")"), We = /^[Mm]\s?[-+]?\.?\d/, Ue = /^img:/, Ge = /^svguse:/, Xe = /^ion-/, Ze = /^(fa-(sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, ce = G({
|
|
65
65
|
name: "QIcon",
|
|
66
66
|
props: {
|
|
67
|
-
...
|
|
67
|
+
...Ee,
|
|
68
68
|
tag: {
|
|
69
69
|
type: String,
|
|
70
70
|
default: "i"
|
|
@@ -74,15 +74,15 @@ const ae = "0 0 24 24", le = (e) => e, X = (e) => `ionicons ${e}`, Ee = {
|
|
|
74
74
|
left: Boolean,
|
|
75
75
|
right: Boolean
|
|
76
76
|
},
|
|
77
|
-
setup(e, { slots:
|
|
78
|
-
const { proxy: { $q:
|
|
77
|
+
setup(e, { slots: n }) {
|
|
78
|
+
const { proxy: { $q: r } } = ie(), o = Ce(e), t = c(
|
|
79
79
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
80
80
|
), s = c(() => {
|
|
81
81
|
let u, a = e.name;
|
|
82
82
|
if (a === "none" || !a)
|
|
83
83
|
return { none: !0 };
|
|
84
|
-
if (
|
|
85
|
-
const d =
|
|
84
|
+
if (r.iconMapFn !== null) {
|
|
85
|
+
const d = r.iconMapFn(a);
|
|
86
86
|
if (d !== void 0)
|
|
87
87
|
if (d.icon !== void 0) {
|
|
88
88
|
if (a = d.icon, a === "none" || !a)
|
|
@@ -93,8 +93,8 @@ const ae = "0 0 24 24", le = (e) => e, X = (e) => `ionicons ${e}`, Ee = {
|
|
|
93
93
|
content: d.content !== void 0 ? d.content : " "
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
|
-
if (
|
|
97
|
-
const [d, h =
|
|
96
|
+
if (We.test(a) === !0) {
|
|
97
|
+
const [d, h = le] = a.split("|");
|
|
98
98
|
return {
|
|
99
99
|
svg: !0,
|
|
100
100
|
viewBox: h,
|
|
@@ -104,13 +104,13 @@ const ae = "0 0 24 24", le = (e) => e, X = (e) => `ionicons ${e}`, Ee = {
|
|
|
104
104
|
})
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
|
-
if (
|
|
107
|
+
if (Ue.test(a) === !0)
|
|
108
108
|
return {
|
|
109
109
|
img: !0,
|
|
110
110
|
src: a.substring(4)
|
|
111
111
|
};
|
|
112
|
-
if (
|
|
113
|
-
const [d, h =
|
|
112
|
+
if (Ge.test(a) === !0) {
|
|
113
|
+
const [d, h = le] = a.split("|");
|
|
114
114
|
return {
|
|
115
115
|
svguse: !0,
|
|
116
116
|
src: d.substring(7),
|
|
@@ -118,21 +118,21 @@ const ae = "0 0 24 24", le = (e) => e, X = (e) => `ionicons ${e}`, Ee = {
|
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
120
|
let x = " ";
|
|
121
|
-
const g = a.match(
|
|
121
|
+
const g = a.match(Qe);
|
|
122
122
|
if (g !== null)
|
|
123
|
-
u =
|
|
124
|
-
else if (
|
|
123
|
+
u = Se[g[1]](a);
|
|
124
|
+
else if (Ze.test(a) === !0)
|
|
125
125
|
u = a;
|
|
126
|
-
else if (
|
|
127
|
-
u = `ionicons ion-${
|
|
128
|
-
else if (
|
|
126
|
+
else if (Xe.test(a) === !0)
|
|
127
|
+
u = `ionicons ion-${r.platform.is.ios === !0 ? "ios" : "md"}${a.substring(3)}`;
|
|
128
|
+
else if (ue.test(a) === !0) {
|
|
129
129
|
u = "notranslate material-symbols";
|
|
130
|
-
const d = a.match(
|
|
131
|
-
d !== null && (a = a.substring(6), u +=
|
|
130
|
+
const d = a.match(ue);
|
|
131
|
+
d !== null && (a = a.substring(6), u += qe[d[1]]), x = a;
|
|
132
132
|
} else {
|
|
133
133
|
u = "notranslate material-icons";
|
|
134
134
|
const d = a.match(Ye);
|
|
135
|
-
d !== null && (a = a.substring(2), u +=
|
|
135
|
+
d !== null && (a = a.substring(2), u += $e[d[1]]), x = a;
|
|
136
136
|
}
|
|
137
137
|
return {
|
|
138
138
|
cls: u,
|
|
@@ -141,58 +141,58 @@ const ae = "0 0 24 24", le = (e) => e, X = (e) => `ionicons ${e}`, Ee = {
|
|
|
141
141
|
});
|
|
142
142
|
return () => {
|
|
143
143
|
const u = {
|
|
144
|
-
class:
|
|
144
|
+
class: t.value,
|
|
145
145
|
style: o.value,
|
|
146
146
|
"aria-hidden": "true",
|
|
147
147
|
role: "presentation"
|
|
148
148
|
};
|
|
149
|
-
return s.value.none === !0 ? v(e.tag, u,
|
|
149
|
+
return s.value.none === !0 ? v(e.tag, u, ne(n.default)) : s.value.img === !0 ? v(e.tag, u, D(n.default, [
|
|
150
150
|
v("img", { src: s.value.src })
|
|
151
|
-
])) : s.value.svg === !0 ? v(e.tag, u,
|
|
151
|
+
])) : s.value.svg === !0 ? v(e.tag, u, D(n.default, [
|
|
152
152
|
v("svg", {
|
|
153
153
|
viewBox: s.value.viewBox || "0 0 24 24"
|
|
154
154
|
}, s.value.nodes)
|
|
155
|
-
])) : s.value.svguse === !0 ? v(e.tag, u,
|
|
155
|
+
])) : s.value.svguse === !0 ? v(e.tag, u, D(n.default, [
|
|
156
156
|
v("svg", {
|
|
157
157
|
viewBox: s.value.viewBox
|
|
158
158
|
}, [
|
|
159
159
|
v("use", { "xlink:href": s.value.src })
|
|
160
160
|
])
|
|
161
|
-
])) : (s.value.cls !== void 0 && (u.class += " " + s.value.cls), v(e.tag, u,
|
|
161
|
+
])) : (s.value.cls !== void 0 && (u.class += " " + s.value.cls), v(e.tag, u, D(n.default, [
|
|
162
162
|
s.value.content
|
|
163
163
|
])));
|
|
164
164
|
};
|
|
165
165
|
}
|
|
166
|
-
}),
|
|
166
|
+
}), Je = {
|
|
167
167
|
size: {
|
|
168
168
|
type: [String, Number],
|
|
169
169
|
default: "1em"
|
|
170
170
|
},
|
|
171
171
|
color: String
|
|
172
172
|
};
|
|
173
|
-
function
|
|
173
|
+
function et(e) {
|
|
174
174
|
return {
|
|
175
|
-
cSize: c(() => e.size in
|
|
175
|
+
cSize: c(() => e.size in te ? `${te[e.size]}px` : e.size),
|
|
176
176
|
classes: c(
|
|
177
177
|
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
178
178
|
)
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
const
|
|
181
|
+
const tt = G({
|
|
182
182
|
name: "QSpinner",
|
|
183
183
|
props: {
|
|
184
|
-
...
|
|
184
|
+
...Je,
|
|
185
185
|
thickness: {
|
|
186
186
|
type: Number,
|
|
187
187
|
default: 5
|
|
188
188
|
}
|
|
189
189
|
},
|
|
190
190
|
setup(e) {
|
|
191
|
-
const { cSize:
|
|
191
|
+
const { cSize: n, classes: r } = et(e);
|
|
192
192
|
return () => v("svg", {
|
|
193
|
-
class:
|
|
194
|
-
width:
|
|
195
|
-
height:
|
|
193
|
+
class: r.value + " q-spinner-mat",
|
|
194
|
+
width: n.value,
|
|
195
|
+
height: n.value,
|
|
196
196
|
viewBox: "25 25 50 50"
|
|
197
197
|
}, [
|
|
198
198
|
v("circle", {
|
|
@@ -208,12 +208,12 @@ const Je = ie({
|
|
|
208
208
|
]);
|
|
209
209
|
}
|
|
210
210
|
});
|
|
211
|
-
function
|
|
212
|
-
const
|
|
213
|
-
for (const o in
|
|
214
|
-
|
|
211
|
+
function nt(e, n) {
|
|
212
|
+
const r = e.style;
|
|
213
|
+
for (const o in n)
|
|
214
|
+
r[o] = n[o];
|
|
215
215
|
}
|
|
216
|
-
const
|
|
216
|
+
const X = {
|
|
217
217
|
hasPassive: !1,
|
|
218
218
|
passiveCapture: !0,
|
|
219
219
|
notPassiveCapture: !0
|
|
@@ -221,7 +221,7 @@ const G = {
|
|
|
221
221
|
try {
|
|
222
222
|
const e = Object.defineProperty({}, "passive", {
|
|
223
223
|
get() {
|
|
224
|
-
Object.assign(
|
|
224
|
+
Object.assign(X, {
|
|
225
225
|
hasPassive: !0,
|
|
226
226
|
passive: { passive: !0 },
|
|
227
227
|
notPassive: { passive: !1 },
|
|
@@ -233,121 +233,121 @@ try {
|
|
|
233
233
|
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
234
234
|
} catch {
|
|
235
235
|
}
|
|
236
|
-
function
|
|
236
|
+
function ot(e) {
|
|
237
237
|
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]), {
|
|
238
238
|
top: e.clientY,
|
|
239
239
|
left: e.clientX
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function Le(e) {
|
|
243
243
|
e.stopPropagation();
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function rt(e) {
|
|
246
246
|
e.cancelable !== !1 && e.preventDefault();
|
|
247
247
|
}
|
|
248
248
|
function O(e) {
|
|
249
249
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
250
250
|
}
|
|
251
|
-
function
|
|
252
|
-
const o = `__q_${
|
|
253
|
-
e[o] = e[o] !== void 0 ? e[o].concat(
|
|
254
|
-
|
|
251
|
+
function it(e, n, r) {
|
|
252
|
+
const o = `__q_${n}_evt`;
|
|
253
|
+
e[o] = e[o] !== void 0 ? e[o].concat(r) : r, r.forEach((t) => {
|
|
254
|
+
t[0].addEventListener(t[1], e[t[2]], X[t[3]]);
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
|
-
function
|
|
258
|
-
const
|
|
259
|
-
e[
|
|
260
|
-
o[0].removeEventListener(o[1], e[o[2]],
|
|
261
|
-
}), e[
|
|
257
|
+
function at(e, n) {
|
|
258
|
+
const r = `__q_${n}_evt`;
|
|
259
|
+
e[r] !== void 0 && (e[r].forEach((o) => {
|
|
260
|
+
o[0].removeEventListener(o[1], e[o[2]], X[o[3]]);
|
|
261
|
+
}), e[r] = void 0);
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function lt(e) {
|
|
264
264
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
265
265
|
}
|
|
266
|
-
function
|
|
267
|
-
return
|
|
266
|
+
function oe(e, n) {
|
|
267
|
+
return lt(e) === !0 ? !1 : [].concat(n).includes(e.keyCode);
|
|
268
268
|
}
|
|
269
|
-
function
|
|
270
|
-
let
|
|
269
|
+
function st(e, n = 250) {
|
|
270
|
+
let r = !1, o;
|
|
271
271
|
return function() {
|
|
272
|
-
return
|
|
273
|
-
|
|
274
|
-
},
|
|
272
|
+
return r === !1 && (r = !0, setTimeout(() => {
|
|
273
|
+
r = !1;
|
|
274
|
+
}, n), o = e.apply(this, arguments)), o;
|
|
275
275
|
};
|
|
276
276
|
}
|
|
277
|
-
function
|
|
278
|
-
|
|
279
|
-
const
|
|
280
|
-
let s =
|
|
277
|
+
function de(e, n, r, o) {
|
|
278
|
+
r.modifiers.stop === !0 && Le(e);
|
|
279
|
+
const t = r.modifiers.color;
|
|
280
|
+
let s = r.modifiers.center;
|
|
281
281
|
s = s === !0 || o === !0;
|
|
282
|
-
const u = document.createElement("span"), a = document.createElement("span"), x =
|
|
283
|
-
a.className = "q-ripple__inner",
|
|
282
|
+
const u = document.createElement("span"), a = document.createElement("span"), x = ot(e), { left: g, top: d, width: h, height: l } = n.getBoundingClientRect(), y = Math.sqrt(h * h + l * l), b = y / 2, k = `${(h - y) / 2}px`, f = s ? k : `${x.left - g - b}px`, w = `${(l - y) / 2}px`, B = s ? w : `${x.top - d - b}px`;
|
|
283
|
+
a.className = "q-ripple__inner", nt(a, {
|
|
284
284
|
height: `${y}px`,
|
|
285
285
|
width: `${y}px`,
|
|
286
286
|
transform: `translate3d(${f},${B},0) scale3d(.2,.2,1)`,
|
|
287
287
|
opacity: 0
|
|
288
|
-
}), u.className = `q-ripple${
|
|
288
|
+
}), u.className = `q-ripple${t ? " text-" + t : ""}`, u.setAttribute("dir", "ltr"), u.appendChild(a), n.appendChild(u);
|
|
289
289
|
const L = () => {
|
|
290
290
|
u.remove(), clearTimeout(P);
|
|
291
291
|
};
|
|
292
|
-
|
|
292
|
+
r.abort.push(L);
|
|
293
293
|
let P = setTimeout(() => {
|
|
294
294
|
a.classList.add("q-ripple__inner--enter"), a.style.transform = `translate3d(${k},${w},0) scale3d(1,1,1)`, a.style.opacity = 0.2, P = setTimeout(() => {
|
|
295
295
|
a.classList.remove("q-ripple__inner--enter"), a.classList.add("q-ripple__inner--leave"), a.style.opacity = 0, P = setTimeout(() => {
|
|
296
|
-
u.remove(),
|
|
296
|
+
u.remove(), r.abort.splice(r.abort.indexOf(L), 1);
|
|
297
297
|
}, 275);
|
|
298
298
|
}, 250);
|
|
299
299
|
}, 50);
|
|
300
300
|
}
|
|
301
|
-
function
|
|
302
|
-
const
|
|
301
|
+
function fe(e, { modifiers: n, value: r, arg: o }) {
|
|
302
|
+
const t = Object.assign({}, e.cfg.ripple, n, r);
|
|
303
303
|
e.modifiers = {
|
|
304
|
-
early:
|
|
305
|
-
stop:
|
|
306
|
-
center:
|
|
307
|
-
color:
|
|
308
|
-
keyCodes: [].concat(
|
|
304
|
+
early: t.early === !0,
|
|
305
|
+
stop: t.stop === !0,
|
|
306
|
+
center: t.center === !0,
|
|
307
|
+
color: t.color || o,
|
|
308
|
+
keyCodes: [].concat(t.keyCodes || 13)
|
|
309
309
|
};
|
|
310
310
|
}
|
|
311
|
-
const
|
|
311
|
+
const ut = Fe(
|
|
312
312
|
{
|
|
313
313
|
name: "ripple",
|
|
314
|
-
beforeMount(e,
|
|
315
|
-
const
|
|
316
|
-
if (
|
|
314
|
+
beforeMount(e, n) {
|
|
315
|
+
const r = n.instance.$.appContext.config.globalProperties.$q.config || {};
|
|
316
|
+
if (r.ripple === !1)
|
|
317
317
|
return;
|
|
318
318
|
const o = {
|
|
319
|
-
cfg:
|
|
320
|
-
enabled:
|
|
319
|
+
cfg: r,
|
|
320
|
+
enabled: n.value !== !1,
|
|
321
321
|
modifiers: {},
|
|
322
322
|
abort: [],
|
|
323
|
-
start(
|
|
324
|
-
o.enabled === !0 &&
|
|
323
|
+
start(t) {
|
|
324
|
+
o.enabled === !0 && t.qSkipRipple !== !0 && t.type === (o.modifiers.early === !0 ? "pointerdown" : "click") && de(t, e, o, t.qKeyEvent === !0);
|
|
325
325
|
},
|
|
326
|
-
keystart:
|
|
327
|
-
o.enabled === !0 &&
|
|
326
|
+
keystart: st((t) => {
|
|
327
|
+
o.enabled === !0 && t.qSkipRipple !== !0 && oe(t, o.modifiers.keyCodes) === !0 && t.type === `key${o.modifiers.early === !0 ? "down" : "up"}` && de(t, e, o, !0);
|
|
328
328
|
}, 300)
|
|
329
329
|
};
|
|
330
|
-
|
|
330
|
+
fe(o, n), e.__qripple = o, it(o, "main", [
|
|
331
331
|
[e, "pointerdown", "start", "passive"],
|
|
332
332
|
[e, "click", "start", "passive"],
|
|
333
333
|
[e, "keydown", "keystart", "passive"],
|
|
334
334
|
[e, "keyup", "keystart", "passive"]
|
|
335
335
|
]);
|
|
336
336
|
},
|
|
337
|
-
updated(e,
|
|
338
|
-
if (
|
|
339
|
-
const
|
|
340
|
-
|
|
337
|
+
updated(e, n) {
|
|
338
|
+
if (n.oldValue !== n.value) {
|
|
339
|
+
const r = e.__qripple;
|
|
340
|
+
r !== void 0 && (r.enabled = n.value !== !1, r.enabled === !0 && Object(n.value) === n.value && fe(r, n));
|
|
341
341
|
}
|
|
342
342
|
},
|
|
343
343
|
beforeUnmount(e) {
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
}),
|
|
344
|
+
const n = e.__qripple;
|
|
345
|
+
n !== void 0 && (n.abort.forEach((r) => {
|
|
346
|
+
r();
|
|
347
|
+
}), at(n, "main"), delete e._qripple);
|
|
348
348
|
}
|
|
349
349
|
}
|
|
350
|
-
),
|
|
350
|
+
), Pe = {
|
|
351
351
|
left: "start",
|
|
352
352
|
center: "center",
|
|
353
353
|
right: "end",
|
|
@@ -355,53 +355,53 @@ const lt = Ae(
|
|
|
355
355
|
around: "around",
|
|
356
356
|
evenly: "evenly",
|
|
357
357
|
stretch: "stretch"
|
|
358
|
-
},
|
|
358
|
+
}, ct = Object.keys(Pe), dt = {
|
|
359
359
|
align: {
|
|
360
360
|
type: String,
|
|
361
|
-
validator: (e) =>
|
|
361
|
+
validator: (e) => ct.includes(e)
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
|
-
function
|
|
364
|
+
function ft(e) {
|
|
365
365
|
return c(() => {
|
|
366
|
-
const
|
|
367
|
-
return `${e.vertical === !0 ? "items" : "justify"}-${
|
|
366
|
+
const n = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
367
|
+
return `${e.vertical === !0 ? "items" : "justify"}-${Pe[n]}`;
|
|
368
368
|
});
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function vt(e) {
|
|
371
371
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function ve(e) {
|
|
374
374
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
375
375
|
}
|
|
376
|
-
function
|
|
377
|
-
return (e.aliasOf || e) === (
|
|
376
|
+
function me(e, n) {
|
|
377
|
+
return (e.aliasOf || e) === (n.aliasOf || n);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
380
|
-
for (const
|
|
381
|
-
const o =
|
|
379
|
+
function mt(e, n) {
|
|
380
|
+
for (const r in n) {
|
|
381
|
+
const o = n[r], t = e[r];
|
|
382
382
|
if (typeof o == "string") {
|
|
383
|
-
if (o !==
|
|
383
|
+
if (o !== t)
|
|
384
384
|
return !1;
|
|
385
|
-
} else if (Array.isArray(
|
|
385
|
+
} else if (Array.isArray(t) === !1 || t.length !== o.length || o.some((s, u) => s !== t[u]))
|
|
386
386
|
return !1;
|
|
387
387
|
}
|
|
388
388
|
return !0;
|
|
389
389
|
}
|
|
390
|
-
function
|
|
391
|
-
return Array.isArray(
|
|
390
|
+
function pe(e, n) {
|
|
391
|
+
return Array.isArray(n) === !0 ? e.length === n.length && e.every((r, o) => r === n[o]) : e.length === 1 && e[0] === n;
|
|
392
392
|
}
|
|
393
|
-
function
|
|
394
|
-
return Array.isArray(e) === !0 ?
|
|
393
|
+
function pt(e, n) {
|
|
394
|
+
return Array.isArray(e) === !0 ? pe(e, n) : Array.isArray(n) === !0 ? pe(n, e) : e === n;
|
|
395
395
|
}
|
|
396
|
-
function
|
|
397
|
-
if (Object.keys(e).length !== Object.keys(
|
|
396
|
+
function bt(e, n) {
|
|
397
|
+
if (Object.keys(e).length !== Object.keys(n).length)
|
|
398
398
|
return !1;
|
|
399
|
-
for (const
|
|
400
|
-
if (
|
|
399
|
+
for (const r in e)
|
|
400
|
+
if (pt(e[r], n[r]) === !1)
|
|
401
401
|
return !1;
|
|
402
402
|
return !0;
|
|
403
403
|
}
|
|
404
|
-
const
|
|
404
|
+
const gt = {
|
|
405
405
|
// router-link
|
|
406
406
|
to: [String, Object],
|
|
407
407
|
replace: Boolean,
|
|
@@ -411,8 +411,8 @@ const pt = {
|
|
|
411
411
|
// state
|
|
412
412
|
disable: Boolean
|
|
413
413
|
};
|
|
414
|
-
function
|
|
415
|
-
const
|
|
414
|
+
function ht({ fallbackTag: e, useDisableForRouterLinkProps: n = !0 } = {}) {
|
|
415
|
+
const r = ie(), { props: o, proxy: t, emit: s } = r, u = vt(r), a = c(() => o.disable !== !0 && o.href !== void 0), x = n === !0 ? c(
|
|
416
416
|
() => u === !0 && o.disable !== !0 && a.value !== !0 && o.to !== void 0 && o.to !== null && o.to !== ""
|
|
417
417
|
) : c(
|
|
418
418
|
() => u === !0 && a.value !== !0 && o.to !== void 0 && o.to !== null && o.to !== ""
|
|
@@ -428,34 +428,34 @@ function bt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
428
428
|
const { matched: m } = g.value, { length: _ } = m, C = m[_ - 1];
|
|
429
429
|
if (C === void 0)
|
|
430
430
|
return -1;
|
|
431
|
-
const
|
|
432
|
-
if (
|
|
431
|
+
const $ = t.$route.matched;
|
|
432
|
+
if ($.length === 0)
|
|
433
433
|
return -1;
|
|
434
|
-
const
|
|
435
|
-
|
|
434
|
+
const q = $.findIndex(
|
|
435
|
+
me.bind(null, C)
|
|
436
436
|
);
|
|
437
|
-
if (
|
|
438
|
-
return
|
|
439
|
-
const
|
|
437
|
+
if (q !== -1)
|
|
438
|
+
return q;
|
|
439
|
+
const V = ve(m[_ - 2]);
|
|
440
440
|
return (
|
|
441
441
|
// we are dealing with nested routes
|
|
442
|
-
_ > 1 &&
|
|
443
|
-
|
|
444
|
-
) :
|
|
442
|
+
_ > 1 && ve(C) === V && $[$.length - 1].path !== V ? $.findIndex(
|
|
443
|
+
me.bind(null, m[_ - 2])
|
|
444
|
+
) : q
|
|
445
445
|
);
|
|
446
446
|
}), k = c(
|
|
447
|
-
() => d.value === !0 && b.value !== -1 &&
|
|
447
|
+
() => d.value === !0 && b.value !== -1 && mt(t.$route.params, g.value.params)
|
|
448
448
|
), f = c(
|
|
449
|
-
() => k.value === !0 && b.value ===
|
|
449
|
+
() => k.value === !0 && b.value === t.$route.matched.length - 1 && bt(t.$route.params, g.value.params)
|
|
450
450
|
), w = c(() => d.value === !0 ? f.value === !0 ? ` ${o.exactActiveClass} ${o.activeClass}` : o.exact === !0 ? "" : k.value === !0 ? ` ${o.activeClass}` : "" : "");
|
|
451
451
|
function B(m) {
|
|
452
452
|
try {
|
|
453
|
-
return
|
|
453
|
+
return t.$router.resolve(m);
|
|
454
454
|
} catch {
|
|
455
455
|
}
|
|
456
456
|
return null;
|
|
457
457
|
}
|
|
458
|
-
function L(m, { returnRouterError: _, to: C = o.to, replace:
|
|
458
|
+
function L(m, { returnRouterError: _, to: C = o.to, replace: $ = o.replace } = {}) {
|
|
459
459
|
if (o.disable === !0)
|
|
460
460
|
return m.preventDefault(), Promise.resolve(!1);
|
|
461
461
|
if (
|
|
@@ -465,8 +465,8 @@ function bt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
465
465
|
)
|
|
466
466
|
return Promise.resolve(!1);
|
|
467
467
|
m.preventDefault();
|
|
468
|
-
const
|
|
469
|
-
return _ === !0 ?
|
|
468
|
+
const q = t.$router[$ === !0 ? "replace" : "push"](C);
|
|
469
|
+
return _ === !0 ? q : q.then(() => {
|
|
470
470
|
}).catch(() => {
|
|
471
471
|
});
|
|
472
472
|
}
|
|
@@ -492,26 +492,26 @@ function bt({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
|
492
492
|
navigateOnClick: P
|
|
493
493
|
};
|
|
494
494
|
}
|
|
495
|
-
const
|
|
495
|
+
const be = {
|
|
496
496
|
none: 0,
|
|
497
497
|
xs: 4,
|
|
498
498
|
sm: 8,
|
|
499
499
|
md: 16,
|
|
500
500
|
lg: 24,
|
|
501
501
|
xl: 32
|
|
502
|
-
},
|
|
502
|
+
}, yt = {
|
|
503
503
|
xs: 8,
|
|
504
504
|
sm: 10,
|
|
505
505
|
md: 14,
|
|
506
506
|
lg: 20,
|
|
507
507
|
xl: 24
|
|
508
|
-
},
|
|
509
|
-
function
|
|
510
|
-
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" :
|
|
508
|
+
}, kt = ["button", "submit", "reset"], wt = /[^\s]\/[^\s]/, xt = ["flat", "outline", "push", "unelevated"];
|
|
509
|
+
function _t(e, n) {
|
|
510
|
+
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : n;
|
|
511
511
|
}
|
|
512
|
-
const
|
|
513
|
-
...
|
|
514
|
-
...
|
|
512
|
+
const Et = {
|
|
513
|
+
...Ee,
|
|
514
|
+
...gt,
|
|
515
515
|
type: {
|
|
516
516
|
type: String,
|
|
517
517
|
default: "button"
|
|
@@ -519,8 +519,8 @@ const xt = {
|
|
|
519
519
|
label: [Number, String],
|
|
520
520
|
icon: String,
|
|
521
521
|
iconRight: String,
|
|
522
|
-
...
|
|
523
|
-
(e,
|
|
522
|
+
...xt.reduce(
|
|
523
|
+
(e, n) => (e[n] = Boolean) && e,
|
|
524
524
|
{}
|
|
525
525
|
),
|
|
526
526
|
square: Boolean,
|
|
@@ -541,7 +541,7 @@ const xt = {
|
|
|
541
541
|
default: !0
|
|
542
542
|
},
|
|
543
543
|
align: {
|
|
544
|
-
...
|
|
544
|
+
...dt.align,
|
|
545
545
|
default: "center"
|
|
546
546
|
},
|
|
547
547
|
stack: Boolean,
|
|
@@ -551,17 +551,17 @@ const xt = {
|
|
|
551
551
|
default: null
|
|
552
552
|
},
|
|
553
553
|
disable: Boolean
|
|
554
|
-
},
|
|
555
|
-
...
|
|
554
|
+
}, Ct = {
|
|
555
|
+
...Et,
|
|
556
556
|
round: Boolean
|
|
557
557
|
};
|
|
558
|
-
function
|
|
559
|
-
const
|
|
558
|
+
function St(e) {
|
|
559
|
+
const n = Ce(e, yt), r = ft(e), { hasRouterLink: o, hasLink: t, linkTag: s, linkAttrs: u, navigateOnClick: a } = ht({
|
|
560
560
|
fallbackTag: "button"
|
|
561
561
|
}), x = c(() => {
|
|
562
|
-
const f = e.fab === !1 && e.fabMini === !1 ?
|
|
562
|
+
const f = e.fab === !1 && e.fabMini === !1 ? n.value : {};
|
|
563
563
|
return e.padding !== void 0 ? Object.assign({}, f, {
|
|
564
|
-
padding: e.padding.split(/\s+/).map((w) => w in
|
|
564
|
+
padding: e.padding.split(/\s+/).map((w) => w in be ? be[w] + "px" : w).join(" "),
|
|
565
565
|
minWidth: "0",
|
|
566
566
|
minHeight: "0"
|
|
567
567
|
}) : f;
|
|
@@ -569,9 +569,9 @@ function Et(e) {
|
|
|
569
569
|
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
570
570
|
), d = c(
|
|
571
571
|
() => e.disable !== !0 && e.loading !== !0
|
|
572
|
-
), h = c(() => d.value === !0 ? e.tabindex || 0 : -1), l = c(() =>
|
|
572
|
+
), h = c(() => d.value === !0 ? e.tabindex || 0 : -1), l = c(() => _t(e, "standard")), y = c(() => {
|
|
573
573
|
const f = { tabindex: h.value };
|
|
574
|
-
return
|
|
574
|
+
return t.value === !0 ? Object.assign(f, u.value) : kt.includes(e.type) === !0 && (f.type = e.type), s.value === "a" ? (e.disable === !0 ? f["aria-disabled"] = "true" : f.href === void 0 && (f.role = "button"), o.value !== !0 && wt.test(e.type) === !0 && (f.type = e.type)) : e.disable === !0 && (f.disabled = "", f["aria-disabled"] = "true"), e.loading === !0 && e.percentage !== void 0 && Object.assign(f, {
|
|
575
575
|
role: "progressbar",
|
|
576
576
|
"aria-valuemin": 0,
|
|
577
577
|
"aria-valuemax": 100,
|
|
@@ -583,33 +583,33 @@ function Et(e) {
|
|
|
583
583
|
const w = e.round === !0 ? "round" : `rectangle${g.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
584
584
|
return `q-btn--${l.value} q-btn--${w}` + (f !== void 0 ? " " + f : "") + (d.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" : "");
|
|
585
585
|
}), k = c(
|
|
586
|
-
() =>
|
|
586
|
+
() => r.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
587
587
|
);
|
|
588
588
|
return {
|
|
589
589
|
classes: b,
|
|
590
590
|
style: x,
|
|
591
591
|
innerClasses: k,
|
|
592
592
|
attributes: y,
|
|
593
|
-
hasLink:
|
|
593
|
+
hasLink: t,
|
|
594
594
|
linkTag: s,
|
|
595
595
|
navigateOnClick: a,
|
|
596
596
|
isActionable: d
|
|
597
597
|
};
|
|
598
598
|
}
|
|
599
|
-
const { passiveCapture: E } =
|
|
599
|
+
const { passiveCapture: E } = X;
|
|
600
600
|
let M = null, T = null, z = null;
|
|
601
|
-
const
|
|
601
|
+
const $t = G({
|
|
602
602
|
name: "QBtn",
|
|
603
603
|
props: {
|
|
604
|
-
...
|
|
604
|
+
...Ct,
|
|
605
605
|
percentage: Number,
|
|
606
606
|
darkPercentage: Boolean,
|
|
607
607
|
onTouchstart: [Function, Array]
|
|
608
608
|
},
|
|
609
609
|
emits: ["click", "keydown", "mousedown", "keyup"],
|
|
610
|
-
setup(e, { slots:
|
|
611
|
-
const { proxy: o } =
|
|
612
|
-
classes:
|
|
610
|
+
setup(e, { slots: n, emit: r }) {
|
|
611
|
+
const { proxy: o } = ie(), {
|
|
612
|
+
classes: t,
|
|
613
613
|
style: s,
|
|
614
614
|
innerClasses: u,
|
|
615
615
|
attributes: a,
|
|
@@ -617,7 +617,7 @@ const Ct = ie({
|
|
|
617
617
|
linkTag: g,
|
|
618
618
|
navigateOnClick: d,
|
|
619
619
|
isActionable: h
|
|
620
|
-
} =
|
|
620
|
+
} = St(e), l = A(null), y = A(null);
|
|
621
621
|
let b = null, k, f = null;
|
|
622
622
|
const w = c(
|
|
623
623
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
@@ -625,8 +625,8 @@ const Ct = ie({
|
|
|
625
625
|
keyCodes: x.value === !0 ? [13, 32] : [13],
|
|
626
626
|
...e.ripple === !0 ? {} : e.ripple
|
|
627
627
|
}), L = c(() => ({ center: e.round })), P = c(() => {
|
|
628
|
-
const
|
|
629
|
-
return
|
|
628
|
+
const i = Math.max(0, Math.min(100, e.percentage));
|
|
629
|
+
return i > 0 ? { transition: "transform 0.6s", transform: `translateX(${i - 100}%)` } : {};
|
|
630
630
|
}), m = c(() => {
|
|
631
631
|
if (e.loading === !0)
|
|
632
632
|
return {
|
|
@@ -637,16 +637,16 @@ const Ct = ie({
|
|
|
637
637
|
onKeyup: I
|
|
638
638
|
};
|
|
639
639
|
if (h.value === !0) {
|
|
640
|
-
const
|
|
640
|
+
const i = {
|
|
641
641
|
onClick: C,
|
|
642
|
-
onKeydown:
|
|
643
|
-
onMousedown:
|
|
642
|
+
onKeydown: $,
|
|
643
|
+
onMousedown: V
|
|
644
644
|
};
|
|
645
645
|
if (o.$q.platform.has.touch === !0) {
|
|
646
646
|
const p = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
647
|
-
|
|
647
|
+
i[`onTouchstart${p}`] = q;
|
|
648
648
|
}
|
|
649
|
-
return
|
|
649
|
+
return i;
|
|
650
650
|
}
|
|
651
651
|
return {
|
|
652
652
|
// needed; especially for disabled <a> tags
|
|
@@ -654,15 +654,15 @@ const Ct = ie({
|
|
|
654
654
|
};
|
|
655
655
|
}), _ = c(() => ({
|
|
656
656
|
ref: l,
|
|
657
|
-
class: "q-btn q-btn-item non-selectable no-outline " +
|
|
657
|
+
class: "q-btn q-btn-item non-selectable no-outline " + t.value,
|
|
658
658
|
style: s.value,
|
|
659
659
|
...a.value,
|
|
660
660
|
...m.value
|
|
661
661
|
}));
|
|
662
|
-
function C(
|
|
662
|
+
function C(i) {
|
|
663
663
|
if (l.value !== null) {
|
|
664
|
-
if (
|
|
665
|
-
if (
|
|
664
|
+
if (i !== void 0) {
|
|
665
|
+
if (i.defaultPrevented === !0)
|
|
666
666
|
return;
|
|
667
667
|
const p = document.activeElement;
|
|
668
668
|
if (e.type === "submit" && p !== document.body && l.value.contains(p) === !1 && p.contains(l.value) === !1) {
|
|
@@ -673,58 +673,58 @@ const Ct = ie({
|
|
|
673
673
|
document.addEventListener("keydown", O, !0), document.addEventListener("keyup", F, E), l.value.addEventListener("blur", F, E);
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
|
-
d(
|
|
676
|
+
d(i);
|
|
677
677
|
}
|
|
678
678
|
}
|
|
679
|
-
function
|
|
680
|
-
l.value !== null && (
|
|
679
|
+
function $(i) {
|
|
680
|
+
l.value !== null && (r("keydown", i), oe(i, [13, 32]) === !0 && T !== l.value && (T !== null && j(), i.defaultPrevented !== !0 && (l.value.focus(), T = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("keyup", S, !0), l.value.addEventListener("blur", S, E)), O(i)));
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
l.value !== null && (
|
|
682
|
+
function q(i) {
|
|
683
|
+
l.value !== null && (r("touchstart", i), i.defaultPrevented !== !0 && (M !== l.value && (M !== null && j(), M = l.value, b = i.target, b.addEventListener("touchcancel", S, E), b.addEventListener("touchend", S, E)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
|
|
684
684
|
f = null, k = !1;
|
|
685
685
|
}, 200)));
|
|
686
686
|
}
|
|
687
|
-
function
|
|
688
|
-
l.value !== null && (
|
|
687
|
+
function V(i) {
|
|
688
|
+
l.value !== null && (i.qSkipRipple = k === !0, r("mousedown", i), i.defaultPrevented !== !0 && z !== l.value && (z !== null && j(), z = l.value, l.value.classList.add("q-btn--active"), document.addEventListener("mouseup", S, E)));
|
|
689
689
|
}
|
|
690
|
-
function
|
|
691
|
-
if (l.value !== null && !(
|
|
692
|
-
if (
|
|
693
|
-
if (T === l.value &&
|
|
694
|
-
const p = new MouseEvent("click",
|
|
695
|
-
p.qKeyEvent = !0,
|
|
690
|
+
function S(i) {
|
|
691
|
+
if (l.value !== null && !(i !== void 0 && i.type === "blur" && document.activeElement === l.value)) {
|
|
692
|
+
if (i !== void 0 && i.type === "keyup") {
|
|
693
|
+
if (T === l.value && oe(i, [13, 32]) === !0) {
|
|
694
|
+
const p = new MouseEvent("click", i);
|
|
695
|
+
p.qKeyEvent = !0, i.defaultPrevented === !0 && rt(p), i.cancelBubble === !0 && Le(p), l.value.dispatchEvent(p), O(i), i.qKeyEvent = !0;
|
|
696
696
|
}
|
|
697
|
-
|
|
697
|
+
r("keyup", i);
|
|
698
698
|
}
|
|
699
699
|
j();
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
function j(
|
|
702
|
+
function j(i) {
|
|
703
703
|
const p = y.value;
|
|
704
|
-
|
|
704
|
+
i !== !0 && (M === l.value || z === l.value) && p !== null && p !== document.activeElement && (p.setAttribute("tabindex", -1), p.focus()), M === l.value && (b !== null && (b.removeEventListener("touchcancel", S, E), b.removeEventListener("touchend", S, E)), M = b = null), z === l.value && (document.removeEventListener("mouseup", S, E), z = null), T === l.value && (document.removeEventListener("keyup", S, !0), l.value !== null && l.value.removeEventListener("blur", S, E), T = null), l.value !== null && l.value.classList.remove("q-btn--active");
|
|
705
705
|
}
|
|
706
|
-
function I(
|
|
707
|
-
O(
|
|
706
|
+
function I(i) {
|
|
707
|
+
O(i), i.qSkipRipple = !0;
|
|
708
708
|
}
|
|
709
|
-
return
|
|
709
|
+
return Me(() => {
|
|
710
710
|
j(!0);
|
|
711
711
|
}), Object.assign(o, {
|
|
712
|
-
click: (
|
|
713
|
-
h.value === !0 && C(
|
|
712
|
+
click: (i) => {
|
|
713
|
+
h.value === !0 && C(i);
|
|
714
714
|
}
|
|
715
715
|
}), () => {
|
|
716
|
-
let
|
|
717
|
-
e.icon !== void 0 &&
|
|
718
|
-
v(
|
|
716
|
+
let i = [];
|
|
717
|
+
e.icon !== void 0 && i.push(
|
|
718
|
+
v(ce, {
|
|
719
719
|
name: e.icon,
|
|
720
720
|
left: e.stack !== !0 && w.value === !0,
|
|
721
721
|
role: "img",
|
|
722
722
|
"aria-hidden": "true"
|
|
723
723
|
})
|
|
724
|
-
), w.value === !0 &&
|
|
724
|
+
), w.value === !0 && i.push(
|
|
725
725
|
v("span", { class: "block" }, [e.label])
|
|
726
|
-
),
|
|
727
|
-
v(
|
|
726
|
+
), i = D(n.default, i), e.iconRight !== void 0 && e.round === !1 && i.push(
|
|
727
|
+
v(ce, {
|
|
728
728
|
name: e.iconRight,
|
|
729
729
|
right: e.stack !== !0 && w.value === !0,
|
|
730
730
|
role: "img",
|
|
@@ -749,24 +749,24 @@ const Ct = ie({
|
|
|
749
749
|
), p.push(
|
|
750
750
|
v("span", {
|
|
751
751
|
class: "q-btn__content text-center col items-center q-anchor--skip " + u.value
|
|
752
|
-
},
|
|
752
|
+
}, i)
|
|
753
753
|
), e.loading !== null && p.push(
|
|
754
|
-
v(
|
|
754
|
+
v(Te, {
|
|
755
755
|
name: "q-transition--fade"
|
|
756
756
|
}, () => e.loading === !0 ? [
|
|
757
757
|
v("span", {
|
|
758
758
|
key: "loading",
|
|
759
759
|
class: "absolute-full flex flex-center"
|
|
760
|
-
},
|
|
760
|
+
}, n.loading !== void 0 ? n.loading() : [v(tt)])
|
|
761
761
|
] : null)
|
|
762
|
-
),
|
|
762
|
+
), ze(
|
|
763
763
|
v(
|
|
764
764
|
g.value,
|
|
765
765
|
_.value,
|
|
766
766
|
p
|
|
767
767
|
),
|
|
768
768
|
[[
|
|
769
|
-
|
|
769
|
+
ut,
|
|
770
770
|
B.value,
|
|
771
771
|
void 0,
|
|
772
772
|
L.value
|
|
@@ -774,13 +774,13 @@ const Ct = ie({
|
|
|
774
774
|
);
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
}),
|
|
777
|
+
}), qt = /* @__PURE__ */ U({
|
|
778
778
|
__name: "index",
|
|
779
779
|
props: {
|
|
780
|
-
size: { default:
|
|
780
|
+
size: { default: N.MD },
|
|
781
781
|
transparent: { type: Boolean },
|
|
782
782
|
rounded: { type: Boolean },
|
|
783
|
-
color: { default:
|
|
783
|
+
color: { default: _e.PRIMARY },
|
|
784
784
|
iconLeft: {},
|
|
785
785
|
iconRight: {},
|
|
786
786
|
iconMiddle: {},
|
|
@@ -794,26 +794,26 @@ const Ct = ie({
|
|
|
794
794
|
},
|
|
795
795
|
emits: ["click"],
|
|
796
796
|
setup(e) {
|
|
797
|
-
const
|
|
797
|
+
const n = e, r = c(() => [
|
|
798
798
|
"app-btn",
|
|
799
799
|
{
|
|
800
|
-
"app-btn_default": !
|
|
801
|
-
"app-btn_trans":
|
|
802
|
-
"app-btn_rounded":
|
|
803
|
-
"app-btn_sm":
|
|
804
|
-
"app-btn_md":
|
|
805
|
-
"app-btn_lg":
|
|
806
|
-
"app-btn_icon-left":
|
|
807
|
-
"app-btn_icon-right":
|
|
808
|
-
"app-btn_icon-middle":
|
|
800
|
+
"app-btn_default": !n.transparent,
|
|
801
|
+
"app-btn_trans": n.transparent,
|
|
802
|
+
"app-btn_rounded": n.rounded,
|
|
803
|
+
"app-btn_sm": n.size === N.SM,
|
|
804
|
+
"app-btn_md": n.size === N.MD,
|
|
805
|
+
"app-btn_lg": n.size === N.LG,
|
|
806
|
+
"app-btn_icon-left": n.iconLeft,
|
|
807
|
+
"app-btn_icon-right": n.iconRight,
|
|
808
|
+
"app-btn_icon-middle": n.iconMiddle
|
|
809
809
|
},
|
|
810
|
-
`app-btn_${
|
|
810
|
+
`app-btn_${n.color}`
|
|
811
811
|
]);
|
|
812
|
-
return (o,
|
|
812
|
+
return (o, t) => (K(), ke(Q($t), {
|
|
813
813
|
"no-caps": "",
|
|
814
814
|
unelevated: "",
|
|
815
|
-
class: Y(
|
|
816
|
-
padding:
|
|
815
|
+
class: Y(r.value),
|
|
816
|
+
padding: Q(xe)[n.size || Q(N).MD],
|
|
817
817
|
loading: o.loading,
|
|
818
818
|
disabled: o.disabled || void 0,
|
|
819
819
|
to: o.to,
|
|
@@ -821,10 +821,10 @@ const Ct = ie({
|
|
|
821
821
|
target: o.target,
|
|
822
822
|
type: o.submit ? "submit" : void 0,
|
|
823
823
|
"aria-label": o.ariaLabel,
|
|
824
|
-
onClick:
|
|
824
|
+
onClick: t[0] || (t[0] = (s) => o.$emit("click", s))
|
|
825
825
|
}, {
|
|
826
|
-
default:
|
|
827
|
-
o.iconLeft || o.iconMiddle ? (K(),
|
|
826
|
+
default: we(() => [
|
|
827
|
+
o.iconLeft || o.iconMiddle ? (K(), ee("i", {
|
|
828
828
|
key: 0,
|
|
829
829
|
class: Y([
|
|
830
830
|
"icon-kl",
|
|
@@ -832,9 +832,9 @@ const Ct = ie({
|
|
|
832
832
|
`icon-kl-${o.iconLeft || o.iconMiddle}`,
|
|
833
833
|
o.transparent ? `text-${o.color}` : "text-secondary"
|
|
834
834
|
])
|
|
835
|
-
}, null, 2)) :
|
|
836
|
-
|
|
837
|
-
o.iconRight ? (K(),
|
|
835
|
+
}, null, 2)) : ae("", !0),
|
|
836
|
+
je(o.$slots, "default", {}, void 0, !0),
|
|
837
|
+
o.iconRight ? (K(), ee("i", {
|
|
838
838
|
key: 1,
|
|
839
839
|
class: Y([
|
|
840
840
|
"icon-kl",
|
|
@@ -842,82 +842,82 @@ const Ct = ie({
|
|
|
842
842
|
`icon-kl-${o.iconRight}`,
|
|
843
843
|
o.transparent ? `text-${o.color}` : "text-secondary"
|
|
844
844
|
])
|
|
845
|
-
}, null, 2)) :
|
|
845
|
+
}, null, 2)) : ae("", !0)
|
|
846
846
|
]),
|
|
847
847
|
_: 3
|
|
848
848
|
}, 8, ["class", "padding", "loading", "disabled", "to", "href", "target", "type", "aria-label"]));
|
|
849
849
|
}
|
|
850
|
-
}),
|
|
851
|
-
const
|
|
852
|
-
for (const [o,
|
|
853
|
-
|
|
854
|
-
return
|
|
855
|
-
},
|
|
850
|
+
}), Re = (e, n) => {
|
|
851
|
+
const r = e.__vccOpts || e;
|
|
852
|
+
for (const [o, t] of n)
|
|
853
|
+
r[o] = t;
|
|
854
|
+
return r;
|
|
855
|
+
}, Lt = /* @__PURE__ */ Re(qt, [["__scopeId", "data-v-5b3b0602"]]), H = A(
|
|
856
856
|
!1
|
|
857
857
|
);
|
|
858
|
-
let
|
|
859
|
-
function
|
|
860
|
-
const
|
|
858
|
+
let re;
|
|
859
|
+
function Pt(e, n) {
|
|
860
|
+
const r = /(edg|edge|edga|edgios)\/([\w.]+)/.exec(e) || /(opr)[\/]([\w.]+)/.exec(e) || /(vivaldi)[\/]([\w.]+)/.exec(e) || /(chrome|crios)[\/]([\w.]+)/.exec(e) || /(version)(applewebkit)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+).*(version)[\/]([\w.]+).*(safari)[\/]([\w.]+)/.exec(e) || /(firefox|fxios)[\/]([\w.]+)/.exec(e) || /(webkit)[\/]([\w.]+)/.exec(e) || /(opera)(?:.*version|)[\/]([\w.]+)/.exec(e) || [];
|
|
861
861
|
return {
|
|
862
|
-
browser:
|
|
863
|
-
version:
|
|
864
|
-
platform:
|
|
862
|
+
browser: r[5] || r[3] || r[1] || "",
|
|
863
|
+
version: r[4] || r[2] || "0",
|
|
864
|
+
platform: n[0] || ""
|
|
865
865
|
};
|
|
866
866
|
}
|
|
867
|
-
function
|
|
867
|
+
function Rt(e) {
|
|
868
868
|
return /(ipad)/.exec(e) || /(ipod)/.exec(e) || /(windows phone)/.exec(e) || /(iphone)/.exec(e) || /(kindle)/.exec(e) || /(silk)/.exec(e) || /(android)/.exec(e) || /(win)/.exec(e) || /(mac)/.exec(e) || /(linux)/.exec(e) || /(cros)/.exec(e) || /(playbook)/.exec(e) || /(bb)/.exec(e) || /(blackberry)/.exec(e) || [];
|
|
869
869
|
}
|
|
870
|
-
const
|
|
871
|
-
function
|
|
872
|
-
const
|
|
873
|
-
o.browser && (
|
|
874
|
-
const s =
|
|
875
|
-
if (s === !0 ||
|
|
876
|
-
(
|
|
877
|
-
|
|
870
|
+
const Be = "ontouchstart" in window || window.navigator.maxTouchPoints > 0;
|
|
871
|
+
function Bt(e) {
|
|
872
|
+
const n = e.toLowerCase(), r = Rt(n), o = Pt(n, r), t = {};
|
|
873
|
+
o.browser && (t[o.browser] = !0, t.version = o.version, t.versionNumber = parseInt(o.version, 10)), o.platform && (t[o.platform] = !0);
|
|
874
|
+
const s = t.android || t.ios || t.bb || t.blackberry || t.ipad || t.iphone || t.ipod || t.kindle || t.playbook || t.silk || t["windows phone"];
|
|
875
|
+
if (s === !0 || n.indexOf("mobile") !== -1 ? t.mobile = !0 : t.desktop = !0, t["windows phone"] && (t.winphone = !0, delete t["windows phone"]), t.edga || t.edgios || t.edg ? (t.edge = !0, o.browser = "edge") : t.crios ? (t.chrome = !0, o.browser = "chrome") : t.fxios && (t.firefox = !0, o.browser = "firefox"), (t.ipod || t.ipad || t.iphone) && (t.ios = !0), t.vivaldi && (o.browser = "vivaldi", t.vivaldi = !0), // Chrome, Opera 15+, Vivaldi and Safari are webkit based browsers
|
|
876
|
+
(t.chrome || t.opr || t.safari || t.vivaldi || t.mobile === !0 && t.ios !== !0 && s !== !0) && (t.webkit = !0), t.opr && (o.browser = "opera", t.opera = !0), t.safari && (t.blackberry || t.bb ? (o.browser = "blackberry", t.blackberry = !0) : t.playbook ? (o.browser = "playbook", t.playbook = !0) : t.android ? (o.browser = "android", t.android = !0) : t.kindle ? (o.browser = "kindle", t.kindle = !0) : t.silk && (o.browser = "silk", t.silk = !0)), t.name = o.browser, t.platform = o.platform, n.indexOf("electron") !== -1)
|
|
877
|
+
t.electron = !0;
|
|
878
878
|
else if (document.location.href.indexOf("-extension://") !== -1)
|
|
879
|
-
|
|
879
|
+
t.bex = !0;
|
|
880
880
|
else {
|
|
881
|
-
if (window.Capacitor !== void 0 ? (
|
|
882
|
-
delete
|
|
881
|
+
if (window.Capacitor !== void 0 ? (t.capacitor = !0, t.nativeMobile = !0, t.nativeMobileWrapper = "capacitor") : (window._cordovaNative !== void 0 || window.cordova !== void 0) && (t.cordova = !0, t.nativeMobile = !0, t.nativeMobileWrapper = "cordova"), H.value === !0 && (re = { is: { ...t } }), Be === !0 && t.mac === !0 && (t.desktop === !0 && t.safari === !0 || t.nativeMobile === !0 && t.android !== !0 && t.ios !== !0 && t.ipad !== !0)) {
|
|
882
|
+
delete t.mac, delete t.desktop;
|
|
883
883
|
const u = Math.min(window.innerHeight, window.innerWidth) > 414 ? "ipad" : "iphone";
|
|
884
|
-
Object.assign(
|
|
884
|
+
Object.assign(t, {
|
|
885
885
|
mobile: !0,
|
|
886
886
|
ios: !0,
|
|
887
887
|
platform: u,
|
|
888
888
|
[u]: !0
|
|
889
889
|
});
|
|
890
890
|
}
|
|
891
|
-
|
|
891
|
+
t.mobile !== !0 && window.navigator.userAgentData && window.navigator.userAgentData.mobile && (delete t.desktop, t.mobile = !0);
|
|
892
892
|
}
|
|
893
|
-
return
|
|
893
|
+
return t;
|
|
894
894
|
}
|
|
895
|
-
const
|
|
895
|
+
const ge = navigator.userAgent || navigator.vendor || window.opera, Ot = {
|
|
896
896
|
has: {
|
|
897
897
|
touch: !1,
|
|
898
898
|
webStorage: !1
|
|
899
899
|
},
|
|
900
900
|
within: { iframe: !1 }
|
|
901
|
-
},
|
|
902
|
-
userAgent:
|
|
903
|
-
is:
|
|
901
|
+
}, W = {
|
|
902
|
+
userAgent: ge,
|
|
903
|
+
is: Bt(ge),
|
|
904
904
|
has: {
|
|
905
|
-
touch:
|
|
905
|
+
touch: Be
|
|
906
906
|
},
|
|
907
907
|
within: {
|
|
908
908
|
iframe: window.self !== window.top
|
|
909
909
|
}
|
|
910
|
-
},
|
|
910
|
+
}, he = {
|
|
911
911
|
install(e) {
|
|
912
|
-
const { $q:
|
|
913
|
-
|
|
914
|
-
Object.assign(
|
|
915
|
-
}),
|
|
912
|
+
const { $q: n } = e;
|
|
913
|
+
H.value === !0 ? (e.onSSRHydrated.push(() => {
|
|
914
|
+
Object.assign(n.platform, W), H.value = !1;
|
|
915
|
+
}), n.platform = Ie(this)) : n.platform = this;
|
|
916
916
|
}
|
|
917
917
|
};
|
|
918
918
|
{
|
|
919
919
|
let e;
|
|
920
|
-
|
|
920
|
+
Ve(W.has, "webStorage", () => {
|
|
921
921
|
if (e !== void 0)
|
|
922
922
|
return e;
|
|
923
923
|
try {
|
|
@@ -926,45 +926,76 @@ const be = navigator.userAgent || navigator.vendor || window.opera, Rt = {
|
|
|
926
926
|
} catch {
|
|
927
927
|
}
|
|
928
928
|
return e = !1, !1;
|
|
929
|
-
}), Object.assign(
|
|
929
|
+
}), Object.assign(he, W), H.value === !0 && (Object.assign(he, re, Ot), re = null);
|
|
930
930
|
}
|
|
931
|
-
|
|
932
|
-
|
|
931
|
+
function Mt() {
|
|
932
|
+
const e = A(!H.value);
|
|
933
|
+
return e.value === !1 && Ne(() => {
|
|
934
|
+
e.value = !0;
|
|
935
|
+
}), { isHydrated: e };
|
|
936
|
+
}
|
|
937
|
+
const Tt = G({
|
|
938
|
+
name: "QNoSsr",
|
|
939
|
+
props: {
|
|
940
|
+
tag: {
|
|
941
|
+
type: String,
|
|
942
|
+
default: "div"
|
|
943
|
+
},
|
|
944
|
+
placeholder: String
|
|
945
|
+
},
|
|
946
|
+
setup(e, { slots: n }) {
|
|
947
|
+
const { isHydrated: r } = Mt();
|
|
948
|
+
return () => {
|
|
949
|
+
if (r.value === !0) {
|
|
950
|
+
const s = ne(n.default);
|
|
951
|
+
return s === void 0 ? s : s.length > 1 ? v(e.tag, {}, s) : s[0];
|
|
952
|
+
}
|
|
953
|
+
const o = {
|
|
954
|
+
class: "q-no-ssr-placeholder"
|
|
955
|
+
}, t = ne(n.placeholder);
|
|
956
|
+
if (t !== void 0)
|
|
957
|
+
return t.length > 1 ? v(e.tag, o, t) : t[0];
|
|
958
|
+
if (e.placeholder !== void 0)
|
|
959
|
+
return v(e.tag, o, e.placeholder);
|
|
960
|
+
};
|
|
961
|
+
}
|
|
962
|
+
}), R = [];
|
|
963
|
+
function Oe(e) {
|
|
933
964
|
R[R.length - 1](e);
|
|
934
965
|
}
|
|
935
|
-
function
|
|
936
|
-
|
|
966
|
+
function zt(e) {
|
|
967
|
+
W.is.desktop === !0 && (R.push(e), R.length === 1 && document.body.addEventListener("focusin", Oe));
|
|
937
968
|
}
|
|
938
|
-
function
|
|
939
|
-
const
|
|
940
|
-
|
|
969
|
+
function jt(e) {
|
|
970
|
+
const n = R.indexOf(e);
|
|
971
|
+
n !== -1 && (R.splice(n, 1), R.length === 0 && document.body.removeEventListener("focusin", Oe));
|
|
941
972
|
}
|
|
942
|
-
function
|
|
943
|
-
const
|
|
944
|
-
|
|
945
|
-
const
|
|
973
|
+
function It(e) {
|
|
974
|
+
const n = document.createElement("textarea");
|
|
975
|
+
n.value = e, n.contentEditable = "true", n.style.position = "fixed";
|
|
976
|
+
const r = () => {
|
|
946
977
|
};
|
|
947
|
-
|
|
978
|
+
zt(r), document.body.appendChild(n), n.focus(), n.select();
|
|
948
979
|
const o = document.execCommand("copy");
|
|
949
|
-
return
|
|
980
|
+
return n.remove(), jt(r), o;
|
|
950
981
|
}
|
|
951
|
-
function
|
|
952
|
-
return navigator.clipboard !== void 0 ? navigator.clipboard.writeText(e) : new Promise((
|
|
953
|
-
const o =
|
|
954
|
-
o ?
|
|
982
|
+
function Nt(e) {
|
|
983
|
+
return navigator.clipboard !== void 0 ? navigator.clipboard.writeText(e) : new Promise((n, r) => {
|
|
984
|
+
const o = It(e);
|
|
985
|
+
o ? n(!0) : r(o);
|
|
955
986
|
});
|
|
956
987
|
}
|
|
957
|
-
const
|
|
988
|
+
const J = {
|
|
958
989
|
COPY: "copy_o",
|
|
959
990
|
COPIED: "copied_o"
|
|
960
|
-
},
|
|
991
|
+
}, At = /* @__PURE__ */ U({
|
|
961
992
|
__name: "index",
|
|
962
993
|
props: {
|
|
963
994
|
text: {},
|
|
964
995
|
size: {},
|
|
965
996
|
transparent: { type: Boolean, default: !0 },
|
|
966
997
|
rounded: { type: Boolean },
|
|
967
|
-
color: { default:
|
|
998
|
+
color: { default: _e.INFO },
|
|
968
999
|
iconLeft: {},
|
|
969
1000
|
iconRight: {},
|
|
970
1001
|
iconMiddle: {},
|
|
@@ -977,21 +1008,26 @@ const Z = {
|
|
|
977
1008
|
ariaLabel: {}
|
|
978
1009
|
},
|
|
979
1010
|
setup(e) {
|
|
980
|
-
const
|
|
981
|
-
|
|
982
|
-
|
|
1011
|
+
const n = e, r = A(J.COPY), o = () => {
|
|
1012
|
+
r.value = J.COPIED, setTimeout(() => {
|
|
1013
|
+
r.value = J.COPY;
|
|
983
1014
|
}, 2e3);
|
|
984
|
-
},
|
|
985
|
-
|
|
1015
|
+
}, t = () => {
|
|
1016
|
+
Nt(n.text).then(o).catch((s) => {
|
|
986
1017
|
console.log(s);
|
|
987
1018
|
});
|
|
988
1019
|
};
|
|
989
|
-
return (s, u) => (K(),
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1020
|
+
return (s, u) => (K(), ke(Tt, null, {
|
|
1021
|
+
default: we(() => [
|
|
1022
|
+
De(Q(Lt), Ke(n, {
|
|
1023
|
+
"icon-middle": r.value,
|
|
1024
|
+
onClick: Ae(t, ["prevent"])
|
|
1025
|
+
}), null, 16, ["icon-middle"])
|
|
1026
|
+
]),
|
|
1027
|
+
_: 1
|
|
1028
|
+
}));
|
|
993
1029
|
}
|
|
994
|
-
}),
|
|
1030
|
+
}), Dt = /* @__PURE__ */ U({
|
|
995
1031
|
__name: "index",
|
|
996
1032
|
props: {
|
|
997
1033
|
name: {},
|
|
@@ -999,14 +1035,14 @@ const Z = {
|
|
|
999
1035
|
color: {}
|
|
1000
1036
|
},
|
|
1001
1037
|
setup(e) {
|
|
1002
|
-
return (
|
|
1003
|
-
class: Y(["icon-kl", `icon-kl-${
|
|
1004
|
-
style:
|
|
1038
|
+
return (n, r) => (K(), ee("i", {
|
|
1039
|
+
class: Y(["icon-kl", `icon-kl-${n.name}`, n.color ? `text-${n.color}` : ""]),
|
|
1040
|
+
style: He(n.size ? `font-size: ${n.size}` : void 0)
|
|
1005
1041
|
}, null, 6));
|
|
1006
1042
|
}
|
|
1007
|
-
}),
|
|
1043
|
+
}), Ht = /* @__PURE__ */ Re(Dt, [["__scopeId", "data-v-73419357"]]);
|
|
1008
1044
|
export {
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1045
|
+
Lt as AppButton,
|
|
1046
|
+
Ht as AppIcon,
|
|
1047
|
+
At as CopyButton
|
|
1012
1048
|
};
|