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