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