@validol4ik/uikit 0.2.16 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/helpers/requiredRule.d.ts +8 -0
- package/dist/components/AppIcon/iconsList.d.ts +2 -2
- package/dist/components/AppIcon/index.vue.d.ts +1 -11
- package/dist/components/AppIcon/types.d.ts +2 -3
- package/dist/components/buttons/AppButton/index.vue.d.ts +15 -32
- package/dist/components/buttons/AppButton/types.d.ts +10 -11
- package/dist/components/buttons/CopyButton/constants.d.ts +0 -1
- package/dist/components/buttons/CopyButton/index.vue.d.ts +3 -27
- package/dist/components/buttons/CopyButton/types.d.ts +0 -1
- package/dist/components/constants.d.ts +12 -4
- package/dist/components/form/AppSelect/types.d.ts +22 -0
- package/dist/components/index.d.ts +5 -103
- package/dist/components/types.d.ts +1 -3
- package/dist/favicon.svg +18 -0
- package/dist/icons/icons.d.ts +1 -1
- package/dist/icons/index.d.ts +0 -1
- package/dist/icons.css +1 -1
- package/dist/index-CVNghYQb.cjs +1 -0
- package/dist/{index-BVIDc3Sg.js → index-CahnauxT.js} +254 -250
- package/dist/{index-CVoafFTm.js → index-ChN-hiVg.js} +85 -51
- package/dist/index-IrXRxHX3.cjs +1 -0
- package/dist/index.css +1 -1
- package/dist/kl.woff +0 -0
- package/dist/uikit.cjs +1 -1
- package/dist/uikit.d.ts +1 -0
- package/dist/uikit.es.js +1 -1
- package/package.json +26 -26
- package/dist/components/buttons/constants.d.ts +0 -6
- package/dist/index-B9ZSbRrQ.cjs +0 -1
- package/dist/index-CwmnOiuC.cjs +0 -1
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { computed as u, markRaw as de, defineComponent as
|
|
2
|
-
const
|
|
1
|
+
import { computed as u, markRaw as de, defineComponent as X, getCurrentInstance as Z, h as v, ref as ee, onBeforeUnmount as ke, Transition as $e, withDirectives as qe, openBlock as I, createBlock as Ee, unref as Y, normalizeClass as V, withCtx as Le, createElementBlock as F, createCommentVNode as G, renderSlot as Ce, Fragment as Se, createTextVNode as _e, toDisplayString as Re, normalizeStyle as Be, defineAsyncComponent as xe } from "vue";
|
|
2
|
+
const we = {
|
|
3
|
+
PRIMARY: "primary",
|
|
4
|
+
INFO: "info"
|
|
5
|
+
}, B = {
|
|
3
6
|
SM: "sm",
|
|
4
7
|
MD: "md",
|
|
5
8
|
LG: "lg"
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
NEGATIVE: "negative",
|
|
12
|
-
POSITIVE: "positive"
|
|
13
|
-
}, G = {
|
|
9
|
+
}, Pe = {
|
|
10
|
+
[B.SM]: "3px 9px",
|
|
11
|
+
[B.MD]: "5px 12px",
|
|
12
|
+
[B.LG]: "9px 20px"
|
|
13
|
+
}, U = {
|
|
14
14
|
xs: 18,
|
|
15
15
|
sm: 24,
|
|
16
16
|
md: 32,
|
|
17
17
|
lg: 38,
|
|
18
18
|
xl: 46
|
|
19
|
-
},
|
|
19
|
+
}, fe = {
|
|
20
20
|
size: String
|
|
21
21
|
};
|
|
22
|
-
function
|
|
22
|
+
function ve(e, t = U) {
|
|
23
23
|
return u(() => e.size !== void 0 ? { fontSize: e.size in t ? `${t[e.size]}px` : e.size } : null);
|
|
24
24
|
}
|
|
25
|
-
function
|
|
26
|
-
return de(
|
|
25
|
+
function J(e) {
|
|
26
|
+
return de(X(e));
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Me(e) {
|
|
29
29
|
return de(e);
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Te(e, t) {
|
|
32
32
|
return e !== void 0 && e() || t;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function D(e, t) {
|
|
35
35
|
return e !== void 0 ? t.concat(e()) : t;
|
|
36
36
|
}
|
|
37
|
-
const te = "0 0 24 24", ne = (e) => e,
|
|
37
|
+
const te = "0 0 24 24", ne = (e) => e, H = (e) => `ionicons ${e}`, ge = {
|
|
38
38
|
"mdi-": (e) => `mdi ${e}`,
|
|
39
39
|
"icon-": ne,
|
|
40
40
|
// fontawesome equiv
|
|
41
41
|
"bt-": (e) => `bt ${e}`,
|
|
42
42
|
"eva-": (e) => `eva ${e}`,
|
|
43
|
-
"ion-md":
|
|
44
|
-
"ion-ios":
|
|
45
|
-
"ion-logo":
|
|
43
|
+
"ion-md": H,
|
|
44
|
+
"ion-ios": H,
|
|
45
|
+
"ion-logo": H,
|
|
46
46
|
"iconfont ": ne,
|
|
47
47
|
"ti-": (e) => `themify-icon ${e}`,
|
|
48
48
|
"bi-": (e) => `bootstrap-icons ${e}`
|
|
49
|
-
},
|
|
49
|
+
}, me = {
|
|
50
50
|
o_: "-outlined",
|
|
51
51
|
r_: "-round",
|
|
52
52
|
s_: "-sharp"
|
|
53
|
-
},
|
|
53
|
+
}, pe = {
|
|
54
54
|
sym_o_: "-outlined",
|
|
55
55
|
sym_r_: "-rounded",
|
|
56
56
|
sym_s_: "-sharp"
|
|
57
|
-
},
|
|
57
|
+
}, Oe = new RegExp("^(" + Object.keys(ge).join("|") + ")"), ze = new RegExp("^(" + Object.keys(me).join("|") + ")"), ae = new RegExp("^(" + Object.keys(pe).join("|") + ")"), Ae = /^[Mm]\s?[-+]?\.?\d/, je = /^img:/, Ie = /^svguse:/, De = /^ion-/, Ke = /^(fa-(classic|sharp|solid|regular|light|brands|duotone|thin)|[lf]a[srlbdk]?) /, re = J({
|
|
58
58
|
name: "QIcon",
|
|
59
59
|
props: {
|
|
60
|
-
...
|
|
60
|
+
...fe,
|
|
61
61
|
tag: {
|
|
62
62
|
type: String,
|
|
63
63
|
default: "i"
|
|
@@ -68,17 +68,17 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
|
|
|
68
68
|
right: Boolean
|
|
69
69
|
},
|
|
70
70
|
setup(e, { slots: t }) {
|
|
71
|
-
const { proxy: { $q: a } } =
|
|
71
|
+
const { proxy: { $q: a } } = Z(), n = ve(e), i = u(
|
|
72
72
|
() => "q-icon" + (e.left === !0 ? " on-left" : "") + (e.right === !0 ? " on-right" : "") + (e.color !== void 0 ? ` text-${e.color}` : "")
|
|
73
73
|
), d = u(() => {
|
|
74
|
-
let c,
|
|
75
|
-
if (
|
|
74
|
+
let c, l = e.name;
|
|
75
|
+
if (l === "none" || !l)
|
|
76
76
|
return { none: !0 };
|
|
77
77
|
if (a.iconMapFn !== null) {
|
|
78
|
-
const s = a.iconMapFn(
|
|
78
|
+
const s = a.iconMapFn(l);
|
|
79
79
|
if (s !== void 0)
|
|
80
80
|
if (s.icon !== void 0) {
|
|
81
|
-
if (
|
|
81
|
+
if (l = s.icon, l === "none" || !l)
|
|
82
82
|
return { none: !0 };
|
|
83
83
|
} else
|
|
84
84
|
return {
|
|
@@ -86,46 +86,46 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
|
|
|
86
86
|
content: s.content !== void 0 ? s.content : " "
|
|
87
87
|
};
|
|
88
88
|
}
|
|
89
|
-
if (
|
|
90
|
-
const [s,
|
|
89
|
+
if (Ae.test(l) === !0) {
|
|
90
|
+
const [s, h = te] = l.split("|");
|
|
91
91
|
return {
|
|
92
92
|
svg: !0,
|
|
93
|
-
viewBox:
|
|
94
|
-
nodes: s.split("&&").map((
|
|
95
|
-
const [y, p, k] =
|
|
93
|
+
viewBox: h,
|
|
94
|
+
nodes: s.split("&&").map((o) => {
|
|
95
|
+
const [y, p, k] = o.split("@@");
|
|
96
96
|
return v("path", { style: p, d: y, transform: k });
|
|
97
97
|
})
|
|
98
98
|
};
|
|
99
99
|
}
|
|
100
|
-
if (
|
|
100
|
+
if (je.test(l) === !0)
|
|
101
101
|
return {
|
|
102
102
|
img: !0,
|
|
103
|
-
src:
|
|
103
|
+
src: l.substring(4)
|
|
104
104
|
};
|
|
105
|
-
if (
|
|
106
|
-
const [s,
|
|
105
|
+
if (Ie.test(l) === !0) {
|
|
106
|
+
const [s, h = te] = l.split("|");
|
|
107
107
|
return {
|
|
108
108
|
svguse: !0,
|
|
109
109
|
src: s.substring(7),
|
|
110
|
-
viewBox:
|
|
110
|
+
viewBox: h
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
let q = " ";
|
|
114
|
-
const
|
|
115
|
-
if (
|
|
116
|
-
c = ge[
|
|
117
|
-
else if (
|
|
118
|
-
c =
|
|
119
|
-
else if (
|
|
120
|
-
c = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${
|
|
121
|
-
else if (ae.test(
|
|
114
|
+
const b = l.match(Oe);
|
|
115
|
+
if (b !== null)
|
|
116
|
+
c = ge[b[1]](l);
|
|
117
|
+
else if (Ke.test(l) === !0)
|
|
118
|
+
c = l;
|
|
119
|
+
else if (De.test(l) === !0)
|
|
120
|
+
c = `ionicons ion-${a.platform.is.ios === !0 ? "ios" : "md"}${l.substring(3)}`;
|
|
121
|
+
else if (ae.test(l) === !0) {
|
|
122
122
|
c = "notranslate material-symbols";
|
|
123
|
-
const s =
|
|
124
|
-
s !== null && (
|
|
123
|
+
const s = l.match(ae);
|
|
124
|
+
s !== null && (l = l.substring(6), c += pe[s[1]]), q = l;
|
|
125
125
|
} else {
|
|
126
126
|
c = "notranslate material-icons";
|
|
127
|
-
const s =
|
|
128
|
-
s !== null && (
|
|
127
|
+
const s = l.match(ze);
|
|
128
|
+
s !== null && (l = l.substring(2), c += me[s[1]]), q = l;
|
|
129
129
|
}
|
|
130
130
|
return {
|
|
131
131
|
cls: c,
|
|
@@ -139,49 +139,49 @@ const te = "0 0 24 24", ne = (e) => e, U = (e) => `ionicons ${e}`, ge = {
|
|
|
139
139
|
"aria-hidden": "true",
|
|
140
140
|
role: "presentation"
|
|
141
141
|
};
|
|
142
|
-
return d.value.none === !0 ? v(e.tag, c,
|
|
142
|
+
return d.value.none === !0 ? v(e.tag, c, Te(t.default)) : d.value.img === !0 ? v(e.tag, c, D(t.default, [
|
|
143
143
|
v("img", { src: d.value.src })
|
|
144
|
-
])) : d.value.svg === !0 ? v(e.tag, c,
|
|
144
|
+
])) : d.value.svg === !0 ? v(e.tag, c, D(t.default, [
|
|
145
145
|
v("svg", {
|
|
146
146
|
viewBox: d.value.viewBox || "0 0 24 24"
|
|
147
147
|
}, d.value.nodes)
|
|
148
|
-
])) : d.value.svguse === !0 ? v(e.tag, c,
|
|
148
|
+
])) : d.value.svguse === !0 ? v(e.tag, c, D(t.default, [
|
|
149
149
|
v("svg", {
|
|
150
150
|
viewBox: d.value.viewBox
|
|
151
151
|
}, [
|
|
152
152
|
v("use", { "xlink:href": d.value.src })
|
|
153
153
|
])
|
|
154
|
-
])) : (d.value.cls !== void 0 && (c.class += " " + d.value.cls), v(e.tag, c,
|
|
154
|
+
])) : (d.value.cls !== void 0 && (c.class += " " + d.value.cls), v(e.tag, c, D(t.default, [
|
|
155
155
|
d.value.content
|
|
156
156
|
])));
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
}),
|
|
159
|
+
}), Ne = {
|
|
160
160
|
size: {
|
|
161
161
|
type: [String, Number],
|
|
162
162
|
default: "1em"
|
|
163
163
|
},
|
|
164
164
|
color: String
|
|
165
165
|
};
|
|
166
|
-
function
|
|
166
|
+
function Ve(e) {
|
|
167
167
|
return {
|
|
168
|
-
cSize: u(() => e.size in
|
|
168
|
+
cSize: u(() => e.size in U ? `${U[e.size]}px` : e.size),
|
|
169
169
|
classes: u(
|
|
170
170
|
() => "q-spinner" + (e.color ? ` text-${e.color}` : "")
|
|
171
171
|
)
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
|
-
const
|
|
174
|
+
const Fe = J({
|
|
175
175
|
name: "QSpinner",
|
|
176
176
|
props: {
|
|
177
|
-
...
|
|
177
|
+
...Ne,
|
|
178
178
|
thickness: {
|
|
179
179
|
type: Number,
|
|
180
180
|
default: 5
|
|
181
181
|
}
|
|
182
182
|
},
|
|
183
183
|
setup(e) {
|
|
184
|
-
const { cSize: t, classes: a } =
|
|
184
|
+
const { cSize: t, classes: a } = Ve(e);
|
|
185
185
|
return () => v("svg", {
|
|
186
186
|
class: a.value + " q-spinner-mat",
|
|
187
187
|
width: t.value,
|
|
@@ -201,12 +201,12 @@ const Ke = Z({
|
|
|
201
201
|
]);
|
|
202
202
|
}
|
|
203
203
|
});
|
|
204
|
-
function
|
|
204
|
+
function Qe(e, t) {
|
|
205
205
|
const a = e.style;
|
|
206
206
|
for (const n in t)
|
|
207
207
|
a[n] = t[n];
|
|
208
208
|
}
|
|
209
|
-
const
|
|
209
|
+
const Q = {
|
|
210
210
|
hasPassive: !1,
|
|
211
211
|
passiveCapture: !0,
|
|
212
212
|
notPassiveCapture: !0
|
|
@@ -214,7 +214,7 @@ const F = {
|
|
|
214
214
|
try {
|
|
215
215
|
const e = Object.defineProperty({}, "passive", {
|
|
216
216
|
get() {
|
|
217
|
-
Object.assign(
|
|
217
|
+
Object.assign(Q, {
|
|
218
218
|
hasPassive: !0,
|
|
219
219
|
passive: { passive: !0 },
|
|
220
220
|
notPassive: { passive: !1 },
|
|
@@ -226,7 +226,7 @@ try {
|
|
|
226
226
|
window.addEventListener("qtest", null, e), window.removeEventListener("qtest", null, e);
|
|
227
227
|
} catch {
|
|
228
228
|
}
|
|
229
|
-
function
|
|
229
|
+
function Ye(e) {
|
|
230
230
|
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]), {
|
|
231
231
|
top: e.clientY,
|
|
232
232
|
left: e.clientX
|
|
@@ -235,31 +235,31 @@ function Ve(e) {
|
|
|
235
235
|
function be(e) {
|
|
236
236
|
e.stopPropagation();
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function Ge(e) {
|
|
239
239
|
e.cancelable !== !1 && e.preventDefault();
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function M(e) {
|
|
242
242
|
e.cancelable !== !1 && e.preventDefault(), e.stopPropagation();
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function He(e, t, a) {
|
|
245
245
|
const n = `__q_${t}_evt`;
|
|
246
246
|
e[n] = e[n] !== void 0 ? e[n].concat(a) : a, a.forEach((i) => {
|
|
247
|
-
i[0].addEventListener(i[1], e[i[2]],
|
|
247
|
+
i[0].addEventListener(i[1], e[i[2]], Q[i[3]]);
|
|
248
248
|
});
|
|
249
249
|
}
|
|
250
250
|
function Ue(e, t) {
|
|
251
251
|
const a = `__q_${t}_evt`;
|
|
252
252
|
e[a] !== void 0 && (e[a].forEach((n) => {
|
|
253
|
-
n[0].removeEventListener(n[1], e[n[2]],
|
|
253
|
+
n[0].removeEventListener(n[1], e[n[2]], Q[n[3]]);
|
|
254
254
|
}), e[a] = void 0);
|
|
255
255
|
}
|
|
256
|
-
function
|
|
256
|
+
function We(e) {
|
|
257
257
|
return e !== Object(e) || e.isComposing === !0 || e.qKeyEvent === !0;
|
|
258
258
|
}
|
|
259
|
-
function
|
|
260
|
-
return
|
|
259
|
+
function W(e, t) {
|
|
260
|
+
return We(e) === !0 ? !1 : [].concat(t).includes(e.keyCode);
|
|
261
261
|
}
|
|
262
|
-
function
|
|
262
|
+
function Xe(e, t = 250) {
|
|
263
263
|
let a = !1, n;
|
|
264
264
|
return function() {
|
|
265
265
|
return a === !1 && (a = !0, setTimeout(() => {
|
|
@@ -272,26 +272,26 @@ function ie(e, t, a, n) {
|
|
|
272
272
|
const i = a.modifiers.color;
|
|
273
273
|
let d = a.modifiers.center;
|
|
274
274
|
d = d === !0 || n === !0;
|
|
275
|
-
const c = document.createElement("span"),
|
|
276
|
-
|
|
275
|
+
const c = document.createElement("span"), l = document.createElement("span"), q = Ye(e), { left: b, top: s, width: h, height: o } = t.getBoundingClientRect(), y = Math.sqrt(h * h + o * o), p = y / 2, k = `${(h - y) / 2}px`, f = d ? k : `${q.left - b - p}px`, $ = `${(o - y) / 2}px`, P = d ? $ : `${q.top - s - p}px`;
|
|
276
|
+
l.className = "q-ripple__inner", Qe(l, {
|
|
277
277
|
height: `${y}px`,
|
|
278
278
|
width: `${y}px`,
|
|
279
|
-
transform: `translate3d(${f},${
|
|
279
|
+
transform: `translate3d(${f},${P},0) scale3d(.2,.2,1)`,
|
|
280
280
|
opacity: 0
|
|
281
|
-
}), c.className = `q-ripple${i ? " text-" + i : ""}`, c.setAttribute("dir", "ltr"), c.appendChild(
|
|
282
|
-
const
|
|
281
|
+
}), c.className = `q-ripple${i ? " text-" + i : ""}`, c.setAttribute("dir", "ltr"), c.appendChild(l), t.appendChild(c);
|
|
282
|
+
const x = () => {
|
|
283
283
|
c.remove(), clearTimeout(w);
|
|
284
284
|
};
|
|
285
|
-
a.abort.push(
|
|
285
|
+
a.abort.push(x);
|
|
286
286
|
let w = setTimeout(() => {
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
c.remove(), a.abort.splice(a.abort.indexOf(
|
|
287
|
+
l.classList.add("q-ripple__inner--enter"), l.style.transform = `translate3d(${k},${$},0) scale3d(1,1,1)`, l.style.opacity = 0.2, w = setTimeout(() => {
|
|
288
|
+
l.classList.remove("q-ripple__inner--enter"), l.classList.add("q-ripple__inner--leave"), l.style.opacity = 0, w = setTimeout(() => {
|
|
289
|
+
c.remove(), a.abort.splice(a.abort.indexOf(x), 1);
|
|
290
290
|
}, 275);
|
|
291
291
|
}, 250);
|
|
292
292
|
}, 50);
|
|
293
293
|
}
|
|
294
|
-
function
|
|
294
|
+
function le(e, { modifiers: t, value: a, arg: n }) {
|
|
295
295
|
const i = Object.assign({}, e.cfg.ripple, t, a);
|
|
296
296
|
e.modifiers = {
|
|
297
297
|
early: i.early === !0,
|
|
@@ -301,7 +301,7 @@ function oe(e, { modifiers: t, value: a, arg: n }) {
|
|
|
301
301
|
keyCodes: [].concat(i.keyCodes || 13)
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
const
|
|
304
|
+
const Ze = Me(
|
|
305
305
|
{
|
|
306
306
|
name: "ripple",
|
|
307
307
|
beforeMount(e, t) {
|
|
@@ -316,11 +316,11 @@ const He = we(
|
|
|
316
316
|
start(i) {
|
|
317
317
|
n.enabled === !0 && i.qSkipRipple !== !0 && i.type === (n.modifiers.early === !0 ? "pointerdown" : "click") && ie(i, e, n, i.qKeyEvent === !0);
|
|
318
318
|
},
|
|
319
|
-
keystart:
|
|
320
|
-
n.enabled === !0 && i.qSkipRipple !== !0 &&
|
|
319
|
+
keystart: Xe((i) => {
|
|
320
|
+
n.enabled === !0 && i.qSkipRipple !== !0 && W(i, n.modifiers.keyCodes) === !0 && i.type === `key${n.modifiers.early === !0 ? "down" : "up"}` && ie(i, e, n, !0);
|
|
321
321
|
}, 300)
|
|
322
322
|
};
|
|
323
|
-
|
|
323
|
+
le(n, t), e.__qripple = n, He(n, "main", [
|
|
324
324
|
[e, "pointerdown", "start", "passive"],
|
|
325
325
|
[e, "click", "start", "passive"],
|
|
326
326
|
[e, "keydown", "keystart", "passive"],
|
|
@@ -330,7 +330,7 @@ const He = we(
|
|
|
330
330
|
updated(e, t) {
|
|
331
331
|
if (t.oldValue !== t.value) {
|
|
332
332
|
const a = e.__qripple;
|
|
333
|
-
a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value &&
|
|
333
|
+
a !== void 0 && (a.enabled = t.value !== !1, a.enabled === !0 && Object(t.value) === t.value && le(a, t));
|
|
334
334
|
}
|
|
335
335
|
},
|
|
336
336
|
beforeUnmount(e) {
|
|
@@ -340,7 +340,7 @@ const He = we(
|
|
|
340
340
|
}), Ue(t, "main"), delete e._qripple);
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
),
|
|
343
|
+
), he = {
|
|
344
344
|
left: "start",
|
|
345
345
|
center: "center",
|
|
346
346
|
right: "end",
|
|
@@ -348,28 +348,28 @@ const He = we(
|
|
|
348
348
|
around: "around",
|
|
349
349
|
evenly: "evenly",
|
|
350
350
|
stretch: "stretch"
|
|
351
|
-
},
|
|
351
|
+
}, Je = Object.keys(he), et = {
|
|
352
352
|
align: {
|
|
353
353
|
type: String,
|
|
354
|
-
validator: (e) =>
|
|
354
|
+
validator: (e) => Je.includes(e)
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
function
|
|
357
|
+
function tt(e) {
|
|
358
358
|
return u(() => {
|
|
359
359
|
const t = e.align === void 0 ? e.vertical === !0 ? "stretch" : "left" : e.align;
|
|
360
|
-
return `${e.vertical === !0 ? "items" : "justify"}-${
|
|
360
|
+
return `${e.vertical === !0 ? "items" : "justify"}-${he[t]}`;
|
|
361
361
|
});
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function nt(e) {
|
|
364
364
|
return e.appContext.config.globalProperties.$router !== void 0;
|
|
365
365
|
}
|
|
366
|
-
function
|
|
366
|
+
function oe(e) {
|
|
367
367
|
return e ? e.aliasOf ? e.aliasOf.path : e.path : "";
|
|
368
368
|
}
|
|
369
369
|
function ue(e, t) {
|
|
370
370
|
return (e.aliasOf || e) === (t.aliasOf || t);
|
|
371
371
|
}
|
|
372
|
-
function
|
|
372
|
+
function at(e, t) {
|
|
373
373
|
for (const a in t) {
|
|
374
374
|
const n = t[a], i = e[a];
|
|
375
375
|
if (typeof n == "string") {
|
|
@@ -383,18 +383,18 @@ function et(e, t) {
|
|
|
383
383
|
function se(e, t) {
|
|
384
384
|
return Array.isArray(t) === !0 ? e.length === t.length && e.every((a, n) => a === t[n]) : e.length === 1 && e[0] === t;
|
|
385
385
|
}
|
|
386
|
-
function
|
|
386
|
+
function rt(e, t) {
|
|
387
387
|
return Array.isArray(e) === !0 ? se(e, t) : Array.isArray(t) === !0 ? se(t, e) : e === t;
|
|
388
388
|
}
|
|
389
|
-
function
|
|
389
|
+
function it(e, t) {
|
|
390
390
|
if (Object.keys(e).length !== Object.keys(t).length)
|
|
391
391
|
return !1;
|
|
392
392
|
for (const a in e)
|
|
393
|
-
if (
|
|
393
|
+
if (rt(e[a], t[a]) === !1)
|
|
394
394
|
return !1;
|
|
395
395
|
return !0;
|
|
396
396
|
}
|
|
397
|
-
const
|
|
397
|
+
const lt = {
|
|
398
398
|
// router-link
|
|
399
399
|
to: [String, Object],
|
|
400
400
|
replace: Boolean,
|
|
@@ -404,84 +404,84 @@ const at = {
|
|
|
404
404
|
// state
|
|
405
405
|
disable: Boolean
|
|
406
406
|
};
|
|
407
|
-
function
|
|
408
|
-
const a =
|
|
409
|
-
() => c === !0 && n.disable !== !0 &&
|
|
407
|
+
function ot({ fallbackTag: e, useDisableForRouterLinkProps: t = !0 } = {}) {
|
|
408
|
+
const a = Z(), { props: n, proxy: i, emit: d } = a, c = nt(a), l = u(() => n.disable !== !0 && n.href !== void 0), q = t === !0 ? u(
|
|
409
|
+
() => c === !0 && n.disable !== !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
410
410
|
) : u(
|
|
411
|
-
() => c === !0 &&
|
|
412
|
-
),
|
|
411
|
+
() => c === !0 && l.value !== !0 && n.to !== void 0 && n.to !== null && n.to !== ""
|
|
412
|
+
), b = u(() => q.value === !0 ? P(n.to) : null), s = u(() => b.value !== null), h = u(() => l.value === !0 || s.value === !0), o = u(() => n.type === "a" || h.value === !0 ? "a" : n.tag || e || "div"), y = u(() => l.value === !0 ? {
|
|
413
413
|
href: n.href,
|
|
414
414
|
target: n.target
|
|
415
415
|
} : s.value === !0 ? {
|
|
416
|
-
href:
|
|
416
|
+
href: b.value.href,
|
|
417
417
|
target: n.target
|
|
418
418
|
} : {}), p = u(() => {
|
|
419
419
|
if (s.value === !1)
|
|
420
420
|
return -1;
|
|
421
|
-
const { matched:
|
|
421
|
+
const { matched: g } = b.value, { length: E } = g, C = g[E - 1];
|
|
422
422
|
if (C === void 0)
|
|
423
423
|
return -1;
|
|
424
|
-
const
|
|
425
|
-
if (
|
|
424
|
+
const _ = i.$route.matched;
|
|
425
|
+
if (_.length === 0)
|
|
426
426
|
return -1;
|
|
427
|
-
const R =
|
|
427
|
+
const R = _.findIndex(
|
|
428
428
|
ue.bind(null, C)
|
|
429
429
|
);
|
|
430
430
|
if (R !== -1)
|
|
431
431
|
return R;
|
|
432
|
-
const
|
|
432
|
+
const K = oe(g[E - 2]);
|
|
433
433
|
return (
|
|
434
434
|
// we are dealing with nested routes
|
|
435
|
-
E > 1 &&
|
|
436
|
-
ue.bind(null,
|
|
435
|
+
E > 1 && oe(C) === K && _[_.length - 1].path !== K ? _.findIndex(
|
|
436
|
+
ue.bind(null, g[E - 2])
|
|
437
437
|
) : R
|
|
438
438
|
);
|
|
439
439
|
}), k = u(
|
|
440
|
-
() => s.value === !0 && p.value !== -1 &&
|
|
440
|
+
() => s.value === !0 && p.value !== -1 && at(i.$route.params, b.value.params)
|
|
441
441
|
), f = u(
|
|
442
|
-
() => k.value === !0 && p.value === i.$route.matched.length - 1 &&
|
|
442
|
+
() => k.value === !0 && p.value === i.$route.matched.length - 1 && it(i.$route.params, b.value.params)
|
|
443
443
|
), $ = u(() => s.value === !0 ? f.value === !0 ? ` ${n.exactActiveClass} ${n.activeClass}` : n.exact === !0 ? "" : k.value === !0 ? ` ${n.activeClass}` : "" : "");
|
|
444
|
-
function
|
|
444
|
+
function P(g) {
|
|
445
445
|
try {
|
|
446
|
-
return i.$router.resolve(
|
|
446
|
+
return i.$router.resolve(g);
|
|
447
447
|
} catch {
|
|
448
448
|
}
|
|
449
449
|
return null;
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function x(g, { returnRouterError: E, to: C = n.to, replace: _ = n.replace } = {}) {
|
|
452
452
|
if (n.disable === !0)
|
|
453
|
-
return
|
|
453
|
+
return g.preventDefault(), Promise.resolve(!1);
|
|
454
454
|
if (
|
|
455
455
|
// don't redirect with control keys;
|
|
456
456
|
// should match RouterLink from Vue Router
|
|
457
|
-
|
|
457
|
+
g.metaKey || g.altKey || g.ctrlKey || g.shiftKey || g.button !== void 0 && g.button !== 0 || n.target === "_blank"
|
|
458
458
|
)
|
|
459
459
|
return Promise.resolve(!1);
|
|
460
|
-
|
|
461
|
-
const R = i.$router[
|
|
460
|
+
g.preventDefault();
|
|
461
|
+
const R = i.$router[_ === !0 ? "replace" : "push"](C);
|
|
462
462
|
return E === !0 ? R : R.then(() => {
|
|
463
463
|
}).catch(() => {
|
|
464
464
|
});
|
|
465
465
|
}
|
|
466
|
-
function w(
|
|
466
|
+
function w(g) {
|
|
467
467
|
if (s.value === !0) {
|
|
468
|
-
const E = (C) =>
|
|
469
|
-
d("click",
|
|
468
|
+
const E = (C) => x(g, C);
|
|
469
|
+
d("click", g, E), g.defaultPrevented !== !0 && E();
|
|
470
470
|
} else
|
|
471
|
-
d("click",
|
|
471
|
+
d("click", g);
|
|
472
472
|
}
|
|
473
473
|
return {
|
|
474
474
|
hasRouterLink: s,
|
|
475
|
-
hasHrefLink:
|
|
476
|
-
hasLink:
|
|
477
|
-
linkTag:
|
|
478
|
-
resolvedLink:
|
|
475
|
+
hasHrefLink: l,
|
|
476
|
+
hasLink: h,
|
|
477
|
+
linkTag: o,
|
|
478
|
+
resolvedLink: b,
|
|
479
479
|
linkIsActive: k,
|
|
480
480
|
linkIsExactActive: f,
|
|
481
481
|
linkClass: $,
|
|
482
482
|
linkAttrs: y,
|
|
483
|
-
getLink:
|
|
484
|
-
navigateToRouterLink:
|
|
483
|
+
getLink: P,
|
|
484
|
+
navigateToRouterLink: x,
|
|
485
485
|
navigateOnClick: w
|
|
486
486
|
};
|
|
487
487
|
}
|
|
@@ -492,19 +492,19 @@ const ce = {
|
|
|
492
492
|
md: 16,
|
|
493
493
|
lg: 24,
|
|
494
494
|
xl: 32
|
|
495
|
-
},
|
|
495
|
+
}, ut = {
|
|
496
496
|
xs: 8,
|
|
497
497
|
sm: 10,
|
|
498
498
|
md: 14,
|
|
499
499
|
lg: 20,
|
|
500
500
|
xl: 24
|
|
501
|
-
},
|
|
502
|
-
function
|
|
501
|
+
}, st = ["button", "submit", "reset"], ct = /[^\s]\/[^\s]/, dt = ["flat", "outline", "push", "unelevated"];
|
|
502
|
+
function ft(e, t) {
|
|
503
503
|
return e.flat === !0 ? "flat" : e.outline === !0 ? "outline" : e.push === !0 ? "push" : e.unelevated === !0 ? "unelevated" : t;
|
|
504
504
|
}
|
|
505
|
-
const
|
|
506
|
-
...
|
|
507
|
-
...
|
|
505
|
+
const vt = {
|
|
506
|
+
...fe,
|
|
507
|
+
...lt,
|
|
508
508
|
type: {
|
|
509
509
|
type: String,
|
|
510
510
|
default: "button"
|
|
@@ -512,7 +512,7 @@ const ct = {
|
|
|
512
512
|
label: [Number, String],
|
|
513
513
|
icon: String,
|
|
514
514
|
iconRight: String,
|
|
515
|
-
...
|
|
515
|
+
...dt.reduce(
|
|
516
516
|
(e, t) => (e[t] = Boolean) && e,
|
|
517
517
|
{}
|
|
518
518
|
),
|
|
@@ -534,7 +534,7 @@ const ct = {
|
|
|
534
534
|
default: !0
|
|
535
535
|
},
|
|
536
536
|
align: {
|
|
537
|
-
...
|
|
537
|
+
...et.align,
|
|
538
538
|
default: "center"
|
|
539
539
|
},
|
|
540
540
|
stack: Boolean,
|
|
@@ -544,12 +544,12 @@ const ct = {
|
|
|
544
544
|
default: null
|
|
545
545
|
},
|
|
546
546
|
disable: Boolean
|
|
547
|
-
},
|
|
548
|
-
...
|
|
547
|
+
}, gt = {
|
|
548
|
+
...vt,
|
|
549
549
|
round: Boolean
|
|
550
550
|
};
|
|
551
|
-
function
|
|
552
|
-
const t =
|
|
551
|
+
function mt(e) {
|
|
552
|
+
const t = ve(e, ut), a = tt(e), { hasRouterLink: n, hasLink: i, linkTag: d, linkAttrs: c, navigateOnClick: l } = ot({
|
|
553
553
|
fallbackTag: "button"
|
|
554
554
|
}), q = u(() => {
|
|
555
555
|
const f = e.fab === !1 && e.fabMini === !1 ? t.value : {};
|
|
@@ -558,13 +558,13 @@ function ft(e) {
|
|
|
558
558
|
minWidth: "0",
|
|
559
559
|
minHeight: "0"
|
|
560
560
|
}) : f;
|
|
561
|
-
}),
|
|
561
|
+
}), b = u(
|
|
562
562
|
() => e.rounded === !0 || e.fab === !0 || e.fabMini === !0
|
|
563
563
|
), s = u(
|
|
564
564
|
() => e.disable !== !0 && e.loading !== !0
|
|
565
|
-
),
|
|
566
|
-
const f = { tabindex:
|
|
567
|
-
return i.value === !0 ? Object.assign(f, c.value) :
|
|
565
|
+
), h = u(() => s.value === !0 ? e.tabindex || 0 : -1), o = u(() => ft(e, "standard")), y = u(() => {
|
|
566
|
+
const f = { tabindex: h.value };
|
|
567
|
+
return i.value === !0 ? Object.assign(f, c.value) : st.includes(e.type) === !0 && (f.type = e.type), d.value === "a" ? (e.disable === !0 ? f["aria-disabled"] = "true" : f.href === void 0 && (f.role = "button"), n.value !== !0 && ct.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, {
|
|
568
568
|
role: "progressbar",
|
|
569
569
|
"aria-valuemin": 0,
|
|
570
570
|
"aria-valuemax": 100,
|
|
@@ -573,8 +573,8 @@ function ft(e) {
|
|
|
573
573
|
}), p = u(() => {
|
|
574
574
|
let f;
|
|
575
575
|
e.color !== void 0 ? e.flat === !0 || e.outline === !0 ? f = `text-${e.textColor || e.color}` : f = `bg-${e.color} text-${e.textColor || "white"}` : e.textColor && (f = `text-${e.textColor}`);
|
|
576
|
-
const $ = e.round === !0 ? "round" : `rectangle${
|
|
577
|
-
return `q-btn--${
|
|
576
|
+
const $ = e.round === !0 ? "round" : `rectangle${b.value === !0 ? " q-btn--rounded" : e.square === !0 ? " q-btn--square" : ""}`;
|
|
577
|
+
return `q-btn--${o.value} q-btn--${$}` + (f !== void 0 ? " " + f : "") + (s.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" : "");
|
|
578
578
|
}), k = u(
|
|
579
579
|
() => a.value + (e.stack === !0 ? " column" : " row") + (e.noWrap === !0 ? " no-wrap text-no-wrap" : "") + (e.loading === !0 ? " q-btn__content--hidden" : "")
|
|
580
580
|
);
|
|
@@ -585,107 +585,107 @@ function ft(e) {
|
|
|
585
585
|
attributes: y,
|
|
586
586
|
hasLink: i,
|
|
587
587
|
linkTag: d,
|
|
588
|
-
navigateOnClick:
|
|
588
|
+
navigateOnClick: l,
|
|
589
589
|
isActionable: s
|
|
590
590
|
};
|
|
591
591
|
}
|
|
592
|
-
const { passiveCapture:
|
|
593
|
-
let T = null,
|
|
594
|
-
const
|
|
592
|
+
const { passiveCapture: L } = Q;
|
|
593
|
+
let T = null, O = null, z = null;
|
|
594
|
+
const pt = J({
|
|
595
595
|
name: "QBtn",
|
|
596
596
|
props: {
|
|
597
|
-
...
|
|
597
|
+
...gt,
|
|
598
598
|
percentage: Number,
|
|
599
599
|
darkPercentage: Boolean,
|
|
600
600
|
onTouchstart: [Function, Array]
|
|
601
601
|
},
|
|
602
602
|
emits: ["click", "keydown", "mousedown", "keyup"],
|
|
603
603
|
setup(e, { slots: t, emit: a }) {
|
|
604
|
-
const { proxy: n } =
|
|
604
|
+
const { proxy: n } = Z(), {
|
|
605
605
|
classes: i,
|
|
606
606
|
style: d,
|
|
607
607
|
innerClasses: c,
|
|
608
|
-
attributes:
|
|
608
|
+
attributes: l,
|
|
609
609
|
hasLink: q,
|
|
610
|
-
linkTag:
|
|
610
|
+
linkTag: b,
|
|
611
611
|
navigateOnClick: s,
|
|
612
|
-
isActionable:
|
|
613
|
-
} =
|
|
612
|
+
isActionable: h
|
|
613
|
+
} = mt(e), o = ee(null), y = ee(null);
|
|
614
614
|
let p = null, k, f = null;
|
|
615
615
|
const $ = u(
|
|
616
616
|
() => e.label !== void 0 && e.label !== null && e.label !== ""
|
|
617
|
-
),
|
|
617
|
+
), P = u(() => e.disable === !0 || e.ripple === !1 ? !1 : {
|
|
618
618
|
keyCodes: q.value === !0 ? [13, 32] : [13],
|
|
619
619
|
...e.ripple === !0 ? {} : e.ripple
|
|
620
|
-
}),
|
|
620
|
+
}), x = u(() => ({ center: e.round })), w = u(() => {
|
|
621
621
|
const r = Math.max(0, Math.min(100, e.percentage));
|
|
622
622
|
return r > 0 ? { transition: "transform 0.6s", transform: `translateX(${r - 100}%)` } : {};
|
|
623
|
-
}),
|
|
623
|
+
}), g = u(() => {
|
|
624
624
|
if (e.loading === !0)
|
|
625
625
|
return {
|
|
626
|
-
onMousedown:
|
|
627
|
-
onTouchstart:
|
|
628
|
-
onClick:
|
|
629
|
-
onKeydown:
|
|
630
|
-
onKeyup:
|
|
626
|
+
onMousedown: j,
|
|
627
|
+
onTouchstart: j,
|
|
628
|
+
onClick: j,
|
|
629
|
+
onKeydown: j,
|
|
630
|
+
onKeyup: j
|
|
631
631
|
};
|
|
632
|
-
if (
|
|
632
|
+
if (h.value === !0) {
|
|
633
633
|
const r = {
|
|
634
634
|
onClick: C,
|
|
635
|
-
onKeydown:
|
|
636
|
-
onMousedown:
|
|
635
|
+
onKeydown: _,
|
|
636
|
+
onMousedown: K
|
|
637
637
|
};
|
|
638
638
|
if (n.$q.platform.has.touch === !0) {
|
|
639
|
-
const
|
|
640
|
-
r[`onTouchstart${
|
|
639
|
+
const m = e.onTouchstart !== void 0 ? "" : "Passive";
|
|
640
|
+
r[`onTouchstart${m}`] = R;
|
|
641
641
|
}
|
|
642
642
|
return r;
|
|
643
643
|
}
|
|
644
644
|
return {
|
|
645
645
|
// needed; especially for disabled <a> tags
|
|
646
|
-
onClick:
|
|
646
|
+
onClick: M
|
|
647
647
|
};
|
|
648
648
|
}), E = u(() => ({
|
|
649
|
-
ref:
|
|
649
|
+
ref: o,
|
|
650
650
|
class: "q-btn q-btn-item non-selectable no-outline " + i.value,
|
|
651
651
|
style: d.value,
|
|
652
|
-
...
|
|
653
|
-
...
|
|
652
|
+
...l.value,
|
|
653
|
+
...g.value
|
|
654
654
|
}));
|
|
655
655
|
function C(r) {
|
|
656
|
-
if (
|
|
656
|
+
if (o.value !== null) {
|
|
657
657
|
if (r !== void 0) {
|
|
658
658
|
if (r.defaultPrevented === !0)
|
|
659
659
|
return;
|
|
660
|
-
const
|
|
661
|
-
if (e.type === "submit" &&
|
|
662
|
-
|
|
663
|
-
const
|
|
664
|
-
document.removeEventListener("keydown",
|
|
660
|
+
const m = document.activeElement;
|
|
661
|
+
if (e.type === "submit" && m !== document.body && o.value.contains(m) === !1 && m.contains(o.value) === !1) {
|
|
662
|
+
o.value.focus();
|
|
663
|
+
const N = () => {
|
|
664
|
+
document.removeEventListener("keydown", M, !0), document.removeEventListener("keyup", N, L), o.value !== null && o.value.removeEventListener("blur", N, L);
|
|
665
665
|
};
|
|
666
|
-
document.addEventListener("keydown",
|
|
666
|
+
document.addEventListener("keydown", M, !0), document.addEventListener("keyup", N, L), o.value.addEventListener("blur", N, L);
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
s(r);
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
function
|
|
673
|
-
|
|
672
|
+
function _(r) {
|
|
673
|
+
o.value !== null && (a("keydown", r), W(r, [13, 32]) === !0 && O !== o.value && (O !== null && A(), r.defaultPrevented !== !0 && (o.value.focus(), O = o.value, o.value.classList.add("q-btn--active"), document.addEventListener("keyup", S, !0), o.value.addEventListener("blur", S, L)), M(r)));
|
|
674
674
|
}
|
|
675
675
|
function R(r) {
|
|
676
|
-
|
|
676
|
+
o.value !== null && (a("touchstart", r), r.defaultPrevented !== !0 && (T !== o.value && (T !== null && A(), T = o.value, p = r.target, p.addEventListener("touchcancel", S, L), p.addEventListener("touchend", S, L)), k = !0, f !== null && clearTimeout(f), f = setTimeout(() => {
|
|
677
677
|
f = null, k = !1;
|
|
678
678
|
}, 200)));
|
|
679
679
|
}
|
|
680
|
-
function
|
|
681
|
-
|
|
680
|
+
function K(r) {
|
|
681
|
+
o.value !== null && (r.qSkipRipple = k === !0, a("mousedown", r), r.defaultPrevented !== !0 && z !== o.value && (z !== null && A(), z = o.value, o.value.classList.add("q-btn--active"), document.addEventListener("mouseup", S, L)));
|
|
682
682
|
}
|
|
683
|
-
function
|
|
684
|
-
if (
|
|
683
|
+
function S(r) {
|
|
684
|
+
if (o.value !== null && !(r !== void 0 && r.type === "blur" && document.activeElement === o.value)) {
|
|
685
685
|
if (r !== void 0 && r.type === "keyup") {
|
|
686
|
-
if (
|
|
687
|
-
const
|
|
688
|
-
|
|
686
|
+
if (O === o.value && W(r, [13, 32]) === !0) {
|
|
687
|
+
const m = new MouseEvent("click", r);
|
|
688
|
+
m.qKeyEvent = !0, r.defaultPrevented === !0 && Ge(m), r.cancelBubble === !0 && be(m), o.value.dispatchEvent(m), M(r), r.qKeyEvent = !0;
|
|
689
689
|
}
|
|
690
690
|
a("keyup", r);
|
|
691
691
|
}
|
|
@@ -693,17 +693,17 @@ const vt = Z({
|
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
function A(r) {
|
|
696
|
-
const
|
|
697
|
-
r !== !0 && (T ===
|
|
696
|
+
const m = y.value;
|
|
697
|
+
r !== !0 && (T === o.value || z === o.value) && m !== null && m !== document.activeElement && (m.setAttribute("tabindex", -1), m.focus()), T === o.value && (p !== null && (p.removeEventListener("touchcancel", S, L), p.removeEventListener("touchend", S, L)), T = p = null), z === o.value && (document.removeEventListener("mouseup", S, L), z = null), O === o.value && (document.removeEventListener("keyup", S, !0), o.value !== null && o.value.removeEventListener("blur", S, L), O = null), o.value !== null && o.value.classList.remove("q-btn--active");
|
|
698
698
|
}
|
|
699
|
-
function
|
|
700
|
-
|
|
699
|
+
function j(r) {
|
|
700
|
+
M(r), r.qSkipRipple = !0;
|
|
701
701
|
}
|
|
702
|
-
return
|
|
702
|
+
return ke(() => {
|
|
703
703
|
A(!0);
|
|
704
704
|
}), Object.assign(n, {
|
|
705
705
|
click: (r) => {
|
|
706
|
-
|
|
706
|
+
h.value === !0 && C(r);
|
|
707
707
|
}
|
|
708
708
|
}), () => {
|
|
709
709
|
let r = [];
|
|
@@ -711,26 +711,24 @@ const vt = Z({
|
|
|
711
711
|
v(re, {
|
|
712
712
|
name: e.icon,
|
|
713
713
|
left: e.stack !== !0 && $.value === !0,
|
|
714
|
-
role: "img"
|
|
715
|
-
"aria-hidden": "true"
|
|
714
|
+
role: "img"
|
|
716
715
|
})
|
|
717
716
|
), $.value === !0 && r.push(
|
|
718
717
|
v("span", { class: "block" }, [e.label])
|
|
719
|
-
), r =
|
|
718
|
+
), r = D(t.default, r), e.iconRight !== void 0 && e.round === !1 && r.push(
|
|
720
719
|
v(re, {
|
|
721
720
|
name: e.iconRight,
|
|
722
721
|
right: e.stack !== !0 && $.value === !0,
|
|
723
|
-
role: "img"
|
|
724
|
-
"aria-hidden": "true"
|
|
722
|
+
role: "img"
|
|
725
723
|
})
|
|
726
724
|
);
|
|
727
|
-
const
|
|
725
|
+
const m = [
|
|
728
726
|
v("span", {
|
|
729
727
|
class: "q-focus-helper",
|
|
730
728
|
ref: y
|
|
731
729
|
})
|
|
732
730
|
];
|
|
733
|
-
return e.loading === !0 && e.percentage !== void 0 &&
|
|
731
|
+
return e.loading === !0 && e.percentage !== void 0 && m.push(
|
|
734
732
|
v("span", {
|
|
735
733
|
class: "q-btn__progress absolute-full overflow-hidden" + (e.darkPercentage === !0 ? " q-btn__progress--dark" : "")
|
|
736
734
|
}, [
|
|
@@ -739,76 +737,79 @@ const vt = Z({
|
|
|
739
737
|
style: w.value
|
|
740
738
|
})
|
|
741
739
|
])
|
|
742
|
-
),
|
|
740
|
+
), m.push(
|
|
743
741
|
v("span", {
|
|
744
742
|
class: "q-btn__content text-center col items-center q-anchor--skip " + c.value
|
|
745
743
|
}, r)
|
|
746
|
-
), e.loading !== null &&
|
|
747
|
-
v(
|
|
744
|
+
), e.loading !== null && m.push(
|
|
745
|
+
v($e, {
|
|
748
746
|
name: "q-transition--fade"
|
|
749
747
|
}, () => e.loading === !0 ? [
|
|
750
748
|
v("span", {
|
|
751
749
|
key: "loading",
|
|
752
750
|
class: "absolute-full flex flex-center"
|
|
753
|
-
}, t.loading !== void 0 ? t.loading() : [v(
|
|
751
|
+
}, t.loading !== void 0 ? t.loading() : [v(Fe)])
|
|
754
752
|
] : null)
|
|
755
|
-
),
|
|
753
|
+
), qe(
|
|
756
754
|
v(
|
|
757
|
-
|
|
755
|
+
b.value,
|
|
758
756
|
E.value,
|
|
759
|
-
|
|
757
|
+
m
|
|
760
758
|
),
|
|
761
759
|
[[
|
|
762
|
-
|
|
763
|
-
|
|
760
|
+
Ze,
|
|
761
|
+
P.value,
|
|
764
762
|
void 0,
|
|
765
|
-
|
|
763
|
+
x.value
|
|
766
764
|
]]
|
|
767
765
|
);
|
|
768
766
|
};
|
|
769
767
|
}
|
|
770
|
-
}),
|
|
768
|
+
}), bt = /* @__PURE__ */ X({
|
|
771
769
|
__name: "index",
|
|
772
770
|
props: {
|
|
773
|
-
size: { default:
|
|
771
|
+
size: { default: B.MD },
|
|
774
772
|
transparent: { type: Boolean },
|
|
773
|
+
flat: { type: Boolean },
|
|
775
774
|
rounded: { type: Boolean },
|
|
776
|
-
color: { default:
|
|
775
|
+
color: { default: we.PRIMARY },
|
|
777
776
|
iconLeft: {},
|
|
778
777
|
iconRight: {},
|
|
779
778
|
iconMiddle: {},
|
|
780
779
|
disabled: { type: Boolean },
|
|
781
|
-
loading: { type:
|
|
780
|
+
loading: { type: Boolean },
|
|
782
781
|
to: {},
|
|
783
782
|
href: {},
|
|
784
783
|
target: {},
|
|
785
784
|
submit: { type: Boolean },
|
|
786
|
-
ariaLabel: {}
|
|
785
|
+
ariaLabel: {},
|
|
786
|
+
label: {}
|
|
787
787
|
},
|
|
788
788
|
emits: ["click"],
|
|
789
789
|
setup(e) {
|
|
790
790
|
const t = e, a = u(() => [
|
|
791
791
|
"app-btn",
|
|
792
792
|
{
|
|
793
|
-
"app-btn_default": !t.transparent,
|
|
793
|
+
"app-btn_default": !t.transparent && !t.flat,
|
|
794
794
|
"app-btn_trans": t.transparent,
|
|
795
|
+
"app-btn_flat": t.flat,
|
|
795
796
|
"app-btn_rounded": t.rounded,
|
|
796
|
-
"app-btn_sm": t.size ===
|
|
797
|
-
"app-btn_md": t.size ===
|
|
798
|
-
"app-btn_lg": t.size ===
|
|
797
|
+
"app-btn_sm": t.size === B.SM,
|
|
798
|
+
"app-btn_md": t.size === B.MD,
|
|
799
|
+
"app-btn_lg": t.size === B.LG,
|
|
799
800
|
"app-btn_icon-left": t.iconLeft,
|
|
800
801
|
"app-btn_icon-right": t.iconRight,
|
|
801
802
|
"app-btn_icon-middle": t.iconMiddle
|
|
802
803
|
},
|
|
803
804
|
`app-btn_${t.color}`
|
|
804
805
|
]);
|
|
805
|
-
return (n, i) => (
|
|
806
|
+
return (n, i) => (I(), Ee(Y(pt), {
|
|
806
807
|
"no-caps": "",
|
|
807
808
|
unelevated: "",
|
|
808
809
|
class: V(a.value),
|
|
809
|
-
padding:
|
|
810
|
+
padding: Y(Pe)[n.size || Y(B).MD],
|
|
810
811
|
loading: n.loading,
|
|
811
|
-
|
|
812
|
+
disable: n.disabled || void 0,
|
|
812
813
|
to: n.to,
|
|
813
814
|
href: n.href,
|
|
814
815
|
target: n.target,
|
|
@@ -816,36 +817,39 @@ const vt = Z({
|
|
|
816
817
|
"aria-label": n.ariaLabel,
|
|
817
818
|
onClick: i[0] || (i[0] = (d) => n.$emit("click", d))
|
|
818
819
|
}, {
|
|
819
|
-
default:
|
|
820
|
-
n.iconLeft || n.iconMiddle ? (
|
|
820
|
+
default: Le(() => [
|
|
821
|
+
n.iconLeft || n.iconMiddle ? (I(), F("i", {
|
|
821
822
|
key: 0,
|
|
822
823
|
class: V([
|
|
823
824
|
"icon-kl",
|
|
824
825
|
n.iconLeft ? "icon-kl_left" : "icon-kl_middle",
|
|
825
826
|
`icon-kl-${n.iconLeft || n.iconMiddle}`,
|
|
826
|
-
n.transparent ? `text-${n.color}` : "text-secondary"
|
|
827
|
+
n.transparent || n.flat ? `text-${n.color}` : "text-secondary"
|
|
827
828
|
])
|
|
828
|
-
}, null, 2)) :
|
|
829
|
-
|
|
830
|
-
n.
|
|
831
|
-
|
|
829
|
+
}, null, 2)) : G("", !0),
|
|
830
|
+
Ce(n.$slots, "default", {}, void 0, !0),
|
|
831
|
+
n.label ? (I(), F(Se, { key: 1 }, [
|
|
832
|
+
_e(Re(n.label), 1)
|
|
833
|
+
], 64)) : G("", !0),
|
|
834
|
+
n.iconRight ? (I(), F("i", {
|
|
835
|
+
key: 2,
|
|
832
836
|
class: V([
|
|
833
837
|
"icon-kl",
|
|
834
838
|
"icon-kl_right",
|
|
835
839
|
`icon-kl-${n.iconRight}`,
|
|
836
840
|
n.transparent ? `text-${n.color}` : "text-secondary"
|
|
837
841
|
])
|
|
838
|
-
}, null, 2)) :
|
|
842
|
+
}, null, 2)) : G("", !0)
|
|
839
843
|
]),
|
|
840
844
|
_: 3
|
|
841
|
-
}, 8, ["class", "padding", "loading", "
|
|
845
|
+
}, 8, ["class", "padding", "loading", "disable", "to", "href", "target", "type", "aria-label"]));
|
|
842
846
|
}
|
|
843
|
-
}),
|
|
847
|
+
}), ye = (e, t) => {
|
|
844
848
|
const a = e.__vccOpts || e;
|
|
845
849
|
for (const [n, i] of t)
|
|
846
850
|
a[n] = i;
|
|
847
851
|
return a;
|
|
848
|
-
},
|
|
852
|
+
}, kt = /* @__PURE__ */ ye(bt, [["__scopeId", "data-v-ac94630a"]]), ht = /* @__PURE__ */ X({
|
|
849
853
|
__name: "index",
|
|
850
854
|
props: {
|
|
851
855
|
name: {},
|
|
@@ -853,17 +857,17 @@ const vt = Z({
|
|
|
853
857
|
color: {}
|
|
854
858
|
},
|
|
855
859
|
setup(e) {
|
|
856
|
-
return (t, a) => (
|
|
860
|
+
return (t, a) => (I(), F("i", {
|
|
857
861
|
class: V(["icon-kl", `icon-kl-${t.name}`, t.color ? `text-${t.color}` : ""]),
|
|
858
|
-
style:
|
|
862
|
+
style: Be(t.size ? `font-size: ${t.size}` : void 0)
|
|
859
863
|
}, null, 6));
|
|
860
864
|
}
|
|
861
|
-
}),
|
|
862
|
-
() => import("./index-
|
|
865
|
+
}), $t = /* @__PURE__ */ ye(ht, [["__scopeId", "data-v-73419357"]]), qt = xe(
|
|
866
|
+
() => import("./index-ChN-hiVg.js")
|
|
863
867
|
);
|
|
864
868
|
export {
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
+
kt as A,
|
|
870
|
+
we as C,
|
|
871
|
+
qt as a,
|
|
872
|
+
$t as i
|
|
869
873
|
};
|