@toife/vue 2.0.6 → 2.0.8
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/index.css +1 -1
- package/dist/index.es.js +235 -240
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { createElementBlock as p, openBlock as c, renderSlot as b, defineComponent as h, ref as v, computed as w, reactive as ce, watch as D, onMounted as G, Fragment as W, withDirectives as
|
|
2
|
-
import { gesture as
|
|
3
|
-
import { useRouter as de, useRoute as
|
|
4
|
-
const
|
|
1
|
+
import { createElementBlock as p, openBlock as c, renderSlot as b, defineComponent as h, ref as v, computed as w, reactive as ce, watch as D, onMounted as G, Fragment as W, withDirectives as M, createCommentVNode as I, normalizeStyle as x, normalizeClass as S, vShow as H, createElementVNode as $, createVNode as U, createBlock as E, withCtx as V, toDisplayString as R, renderList as F, createTextVNode as N, createApp as j, h as K, provide as ie, unref as A, onUnmounted as se, resolveDynamicComponent as be, markRaw as he, inject as ue, useAttrs as ke, nextTick as ae } from "vue";
|
|
2
|
+
import { gesture as re } from "@toife/gesture";
|
|
3
|
+
import { useRouter as de, useRoute as $e } from "vue-router";
|
|
4
|
+
const we = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isContentEditable), xe = () => {
|
|
5
5
|
const e = document.activeElement;
|
|
6
6
|
e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable) && e.blur();
|
|
7
|
-
},
|
|
7
|
+
}, Te = () => {
|
|
8
8
|
document.addEventListener("contextmenu", (e) => e.preventDefault()), document.addEventListener("pointerup", (e) => {
|
|
9
|
-
!
|
|
9
|
+
!we(e.target) && xe();
|
|
10
10
|
});
|
|
11
11
|
}, g = (e, o) => {
|
|
12
12
|
const t = e.__vccOpts || e;
|
|
13
13
|
for (const [s, r] of o)
|
|
14
14
|
t[s] = r;
|
|
15
15
|
return t;
|
|
16
|
-
},
|
|
16
|
+
}, Se = {}, Be = { class: "t-app" };
|
|
17
17
|
function ze(e, o) {
|
|
18
|
-
return c(), p("div",
|
|
18
|
+
return c(), p("div", Be, [
|
|
19
19
|
b(e.$slots, "default")
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
|
-
const Ie = /* @__PURE__ */ g(
|
|
22
|
+
const Ie = /* @__PURE__ */ g(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
|
|
23
23
|
__name: "t-present",
|
|
24
24
|
props: {
|
|
25
25
|
keepalive: { type: Boolean, default: !0 },
|
|
@@ -31,14 +31,14 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["dismiss"],
|
|
33
33
|
setup(e, { expose: o, emit: t }) {
|
|
34
|
-
const s = v(0), r = v(!1), l = v(), d = v(), a = e, f = t, y = w(() => r.value || a.keepalive),
|
|
34
|
+
const s = v(0), r = v(!1), l = v(), d = v(), a = e, f = t, y = w(() => r.value || a.keepalive), i = ce({
|
|
35
35
|
"--t-present-backdrop-opacity": "0.4",
|
|
36
36
|
"--t-present-transition": "0.2s",
|
|
37
37
|
"--t-present-content-transform": "0px",
|
|
38
38
|
"--t-present-content-opacity": "1"
|
|
39
39
|
}), n = (m) => {
|
|
40
|
-
a.backdrop ? m?.backdropOpacity && (
|
|
41
|
-
},
|
|
40
|
+
a.backdrop ? m?.backdropOpacity && (i["--t-present-backdrop-opacity"] = m.backdropOpacity) : i["--t-present-backdrop-opacity"] = "0", m?.transition && (i["--t-present-transition"] = m.transition, i["--t-present-transition"] = m.transition), m?.contentTransform && (i["--t-present-content-transform"] = m.contentTransform), m?.contentOpacity && (i["--t-present-content-opacity"] = m.contentOpacity);
|
|
41
|
+
}, u = () => {
|
|
42
42
|
n({
|
|
43
43
|
contentTransform: "0px",
|
|
44
44
|
transition: "0.2s",
|
|
@@ -55,46 +55,46 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
D(() => a.visible, () => {
|
|
58
|
-
a.visible ? (r.value = !0, s.value =
|
|
59
|
-
|
|
58
|
+
a.visible ? (r.value = !0, s.value = He.getNewIndex(), setTimeout(() => {
|
|
59
|
+
u();
|
|
60
60
|
}, 50)) : (_(), setTimeout(() => {
|
|
61
61
|
r.value = !1;
|
|
62
62
|
}, 200));
|
|
63
63
|
}), o({
|
|
64
64
|
render: n,
|
|
65
|
-
open:
|
|
65
|
+
open: u,
|
|
66
66
|
close: _
|
|
67
67
|
});
|
|
68
68
|
const k = (m) => {
|
|
69
69
|
m.preventDefault(), f("dismiss", "backdrop");
|
|
70
70
|
};
|
|
71
71
|
return G(() => {
|
|
72
|
-
a.visible ?
|
|
72
|
+
a.visible ? u() : _();
|
|
73
73
|
}), (m, O) => (c(), p(W, null, [
|
|
74
|
-
y.value ?
|
|
74
|
+
y.value ? M((c(), p("div", {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: S(["t-present", [{ [m.placement]: !0 }, a.class]]),
|
|
77
77
|
ref_key: "present",
|
|
78
78
|
ref: d,
|
|
79
|
-
style: x([
|
|
79
|
+
style: x([i, { zIndex: s.value }, a.style])
|
|
80
80
|
}, [
|
|
81
81
|
b(m.$slots, "default", {}, void 0, !0)
|
|
82
82
|
], 6)), [
|
|
83
83
|
[H, r.value]
|
|
84
|
-
]) :
|
|
85
|
-
y.value ?
|
|
84
|
+
]) : I("", !0),
|
|
85
|
+
y.value ? M((c(), p("div", {
|
|
86
86
|
key: 1,
|
|
87
87
|
class: "t-present-backdrop",
|
|
88
88
|
onClick: k,
|
|
89
89
|
ref_key: "backdrop",
|
|
90
90
|
ref: l,
|
|
91
|
-
style: x([
|
|
91
|
+
style: x([i, { zIndex: s.value - 1 }, a.style])
|
|
92
92
|
}, null, 4)), [
|
|
93
93
|
[H, r.value]
|
|
94
|
-
]) :
|
|
94
|
+
]) : I("", !0)
|
|
95
95
|
], 64));
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
97
|
+
}), L = /* @__PURE__ */ g(Ce, [["__scopeId", "data-v-1b25059f"]]), Ee = /* @__PURE__ */ h({
|
|
98
98
|
__name: "t-loading-icon",
|
|
99
99
|
props: {
|
|
100
100
|
size: {
|
|
@@ -118,10 +118,10 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
118
118
|
"aria-label": "Loading..."
|
|
119
119
|
}, null, 4));
|
|
120
120
|
}
|
|
121
|
-
}), J = /* @__PURE__ */ g(
|
|
121
|
+
}), J = /* @__PURE__ */ g(Ee, [["__scopeId", "data-v-7c463303"]]), Ve = { class: "t-button-content" }, Pe = {
|
|
122
122
|
key: 0,
|
|
123
123
|
class: "loader"
|
|
124
|
-
},
|
|
124
|
+
}, Re = /* @__PURE__ */ h({
|
|
125
125
|
__name: "t-button",
|
|
126
126
|
props: {
|
|
127
127
|
color: { default: null },
|
|
@@ -178,23 +178,23 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
178
178
|
class: S(["t-button", { "active-background": o.activeBackground, rounded: o.rounded, block: o.block, ["size-" + o.size]: !0 }]),
|
|
179
179
|
style: x(t.value)
|
|
180
180
|
}, [
|
|
181
|
-
|
|
181
|
+
M($("span", Ve, [
|
|
182
182
|
b(s.$slots, "default", {}, void 0, !0)
|
|
183
183
|
], 512), [
|
|
184
184
|
[H, !o.loading]
|
|
185
185
|
]),
|
|
186
|
-
o.loading ? (c(), p("span",
|
|
186
|
+
o.loading ? (c(), p("span", Pe, [
|
|
187
187
|
U(J, {
|
|
188
188
|
color: "var(--color)",
|
|
189
189
|
type: o.loadingType
|
|
190
190
|
}, null, 8, ["type"])
|
|
191
|
-
])) :
|
|
191
|
+
])) : I("", !0)
|
|
192
192
|
], 6));
|
|
193
193
|
}
|
|
194
|
-
}), Q = /* @__PURE__ */ g(
|
|
194
|
+
}), Q = /* @__PURE__ */ g(Re, [["__scopeId", "data-v-185a9e49"]]), Ae = {
|
|
195
195
|
key: 0,
|
|
196
196
|
class: "t-alert-header"
|
|
197
|
-
},
|
|
197
|
+
}, Xe = { class: "t-alert-content" }, De = { class: "t-alert-footer" }, Oe = /* @__PURE__ */ h({
|
|
198
198
|
__name: "t-alert",
|
|
199
199
|
props: {
|
|
200
200
|
title: {},
|
|
@@ -208,19 +208,19 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
208
208
|
r.value = !0;
|
|
209
209
|
}, y = (n) => {
|
|
210
210
|
r.value = !1, n.handler && n.handler(), l("dismiss", "choose", n?.data);
|
|
211
|
-
},
|
|
211
|
+
}, i = (n) => {
|
|
212
212
|
s.dismiss && s.dismiss.includes(n) ? (r.value = !1, l("dismiss", n)) : n == "backdrop" && (a.value = !0, setTimeout(() => {
|
|
213
213
|
a.value = !1;
|
|
214
214
|
}, 300));
|
|
215
215
|
};
|
|
216
216
|
return o({
|
|
217
217
|
open: f
|
|
218
|
-
}), (n,
|
|
218
|
+
}), (n, u) => (c(), E(L, {
|
|
219
219
|
placement: "center",
|
|
220
220
|
backdrop: !0,
|
|
221
221
|
keepalive: !1,
|
|
222
222
|
visible: r.value,
|
|
223
|
-
onDismiss:
|
|
223
|
+
onDismiss: i
|
|
224
224
|
}, {
|
|
225
225
|
default: V(() => [
|
|
226
226
|
$("div", {
|
|
@@ -229,13 +229,13 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
229
229
|
ref: d
|
|
230
230
|
}, [
|
|
231
231
|
b(n.$slots, "header", {}, () => [
|
|
232
|
-
s.title ? (c(), p("div",
|
|
232
|
+
s.title ? (c(), p("div", Ae, R(s.title), 1)) : I("", !0)
|
|
233
233
|
], !0),
|
|
234
234
|
b(n.$slots, "content", {}, () => [
|
|
235
|
-
$("div",
|
|
235
|
+
$("div", Xe, R(s.message), 1)
|
|
236
236
|
], !0),
|
|
237
237
|
b(n.$slots, "footer", {}, () => [
|
|
238
|
-
$("div",
|
|
238
|
+
$("div", De, [
|
|
239
239
|
(c(!0), p(W, null, F(s.actions, (_) => (c(), E(Q, {
|
|
240
240
|
color: _.color,
|
|
241
241
|
variant: _.variant,
|
|
@@ -253,7 +253,7 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
253
253
|
_: 3
|
|
254
254
|
}, 8, ["visible"]));
|
|
255
255
|
}
|
|
256
|
-
}), pe = /* @__PURE__ */ g(
|
|
256
|
+
}), pe = /* @__PURE__ */ g(Oe, [["__scopeId", "data-v-05d0c578"]]), $o = (e = {}) => ({
|
|
257
257
|
open() {
|
|
258
258
|
return new Promise((o) => {
|
|
259
259
|
let t = document.body.querySelector(".t-app");
|
|
@@ -278,7 +278,7 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
278
278
|
}, 50);
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
}),
|
|
281
|
+
}), We = /* @__PURE__ */ h({
|
|
282
282
|
__name: "t-action",
|
|
283
283
|
props: {
|
|
284
284
|
actions: {},
|
|
@@ -291,7 +291,7 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
291
291
|
r.value = !0;
|
|
292
292
|
}, y = (n) => {
|
|
293
293
|
r.value = !1, n.handler && n.handler(), l("dismiss", "choose", n?.data);
|
|
294
|
-
},
|
|
294
|
+
}, i = (n) => {
|
|
295
295
|
s.dismiss && s.dismiss.includes(n) ? (r.value = !1, l("dismiss", n)) : n == "backdrop" && (a.value = !0, setTimeout(() => {
|
|
296
296
|
a.value = !1;
|
|
297
297
|
}, 300));
|
|
@@ -301,12 +301,12 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
301
301
|
}), o({
|
|
302
302
|
open: f,
|
|
303
303
|
close
|
|
304
|
-
}), (n,
|
|
304
|
+
}), (n, u) => (c(), E(L, {
|
|
305
305
|
placement: "bottom",
|
|
306
306
|
backdrop: !0,
|
|
307
307
|
keepalive: !1,
|
|
308
308
|
visible: r.value,
|
|
309
|
-
onDismiss:
|
|
309
|
+
onDismiss: i
|
|
310
310
|
}, {
|
|
311
311
|
default: V(() => [
|
|
312
312
|
$("div", {
|
|
@@ -333,7 +333,7 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
333
333
|
_: 1
|
|
334
334
|
}, 8, ["visible"]));
|
|
335
335
|
}
|
|
336
|
-
}),
|
|
336
|
+
}), Ne = /* @__PURE__ */ g(We, [["__scopeId", "data-v-844fb240"]]), wo = (e = {}) => ({
|
|
337
337
|
open() {
|
|
338
338
|
return new Promise((o) => {
|
|
339
339
|
let t = document.body.querySelector(".t-app");
|
|
@@ -342,7 +342,7 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
342
342
|
t.appendChild(s);
|
|
343
343
|
const l = j({
|
|
344
344
|
render() {
|
|
345
|
-
return K(
|
|
345
|
+
return K(Ne, {
|
|
346
346
|
...e,
|
|
347
347
|
ref: r,
|
|
348
348
|
onDismiss: (d, a) => {
|
|
@@ -373,7 +373,7 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
373
373
|
close: () => {
|
|
374
374
|
r.value = !1;
|
|
375
375
|
}
|
|
376
|
-
}), (a, f) => (c(), E(
|
|
376
|
+
}), (a, f) => (c(), E(L, {
|
|
377
377
|
placement: "center",
|
|
378
378
|
backdrop: !0,
|
|
379
379
|
keepalive: !1,
|
|
@@ -391,7 +391,7 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
391
391
|
_: 3
|
|
392
392
|
}, 8, ["visible"]));
|
|
393
393
|
}
|
|
394
|
-
}),
|
|
394
|
+
}), Me = /* @__PURE__ */ g(Le, [["__scopeId", "data-v-8f84c14e"]]), xo = (e = {}) => {
|
|
395
395
|
const o = v(), t = document.body.querySelector(".t-app");
|
|
396
396
|
let s = null, r = null;
|
|
397
397
|
return {
|
|
@@ -399,7 +399,7 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
399
399
|
return new Promise((l) => {
|
|
400
400
|
t && (r = document.createElement("div"), t.appendChild(r), s = j({
|
|
401
401
|
render() {
|
|
402
|
-
return K(
|
|
402
|
+
return K(Me, {
|
|
403
403
|
...e,
|
|
404
404
|
ref: o
|
|
405
405
|
});
|
|
@@ -417,112 +417,112 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
}, le = v(1e3),
|
|
420
|
+
}, le = v(1e3), He = {
|
|
421
421
|
getNewIndex() {
|
|
422
422
|
return le.value += 2, le.value;
|
|
423
423
|
}
|
|
424
|
-
}, X = ce([]), Z = v(!0),
|
|
424
|
+
}, X = ce([]), Z = v(!0), z = v(!1), P = v(-1), B = w(() => X[P.value]), q = w(() => X[P.value + 1] || void 0), C = w(() => X[X.length - 2]), fe = w(() => !z.value && Z.value && C.value), Y = {
|
|
425
425
|
reset() {
|
|
426
|
-
|
|
427
|
-
const e = B.value.target, o =
|
|
426
|
+
z.value = !0;
|
|
427
|
+
const e = B.value.target, o = C.value.target;
|
|
428
428
|
e.style.transition = "transform 0.35s ease", e.style.transform = "translateX(0px)", o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
|
|
429
|
-
|
|
429
|
+
z.value = !1;
|
|
430
430
|
}, 400);
|
|
431
431
|
},
|
|
432
432
|
move(e) {
|
|
433
433
|
if (!fe.value) return;
|
|
434
|
-
const o = window.innerWidth, t = e / o * 100, s = B.value.target, r =
|
|
434
|
+
const o = window.innerWidth, t = e / o * 100, s = B.value.target, r = C.value.target;
|
|
435
435
|
e > 15 && e <= o && (e = e > 0 ? e : 0, s.style.transition = "transform 0s ease", s.style.transform = `translateX(${e}px)`, r.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), r.style.transform = `translateX(calc((var(--t-app-width) / 100 * 30 * -1) + ((var(--t-app-width) / 100 * 30) / 100 * ${t}))) scale(${0.5 + 0.5 / 100 * t}) perspective(var(--t-app-width)) rotateY(${30 - 30 / 100 * t}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * t}`));
|
|
436
436
|
},
|
|
437
437
|
back(e) {
|
|
438
|
-
|
|
439
|
-
|
|
438
|
+
C.value && (B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = "translateX(0px) scale(1) perspective(var(--t-app-width)) rotateY(0deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), z.value = !0, setTimeout(() => {
|
|
439
|
+
ne(), z.value = !1, P.value -= 1, e && e();
|
|
440
440
|
}, 400));
|
|
441
441
|
},
|
|
442
442
|
next(e) {
|
|
443
|
-
if (!
|
|
443
|
+
if (!q.value) return;
|
|
444
444
|
if (P.value == -1) {
|
|
445
445
|
P.value += 1, e && e();
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
|
-
|
|
449
|
-
let o =
|
|
448
|
+
z.value = !0;
|
|
449
|
+
let o = q.value.target;
|
|
450
450
|
o.style.transform = "translateX(var(--t-app-width))", o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
|
|
451
451
|
o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), B.value && (B.value.target.style.transitionOrigin = "left center", B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)"), setTimeout(() => {
|
|
452
|
-
|
|
452
|
+
z.value = !1, P.value += 1, e && e();
|
|
453
453
|
}, 400);
|
|
454
454
|
}, 100);
|
|
455
455
|
}
|
|
456
456
|
}, ee = {
|
|
457
457
|
reset() {
|
|
458
|
-
|
|
459
|
-
const e = B.value.target, o =
|
|
458
|
+
z.value = !0;
|
|
459
|
+
const e = B.value.target, o = C.value.target;
|
|
460
460
|
e.style.transition = "transform 0.35s ease", e.style.transform = "translateX(0px)", o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1))", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
|
|
461
|
-
|
|
461
|
+
z.value = !1;
|
|
462
462
|
}, 400);
|
|
463
463
|
},
|
|
464
464
|
move(e) {
|
|
465
|
-
const o = window.innerWidth, t = e / o * 100, s = B.value.target, r =
|
|
465
|
+
const o = window.innerWidth, t = e / o * 100, s = B.value.target, r = C.value.target;
|
|
466
466
|
e > 15 && e <= o && (e = e > 0 ? e : 0, s.style.transition = "transform 0s ease", s.style.transform = `translateX(${e}px)`, r.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), r.style.transform = `translateX(calc((var(--t-app-width) / 100 * 30 * -1) + ((var(--t-app-width) / 100 * 30) / 100 * ${t})))`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * t}`));
|
|
467
467
|
},
|
|
468
468
|
back(e) {
|
|
469
|
-
|
|
470
|
-
|
|
469
|
+
C.value && (B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), z.value = !0, setTimeout(() => {
|
|
470
|
+
ne(), z.value = !1, P.value -= 1, e && e();
|
|
471
471
|
}, 400));
|
|
472
472
|
},
|
|
473
473
|
next(e) {
|
|
474
|
-
if (!
|
|
474
|
+
if (!q.value) return;
|
|
475
475
|
if (P.value == -1) {
|
|
476
476
|
P.value += 1, e && e();
|
|
477
477
|
return;
|
|
478
478
|
}
|
|
479
|
-
|
|
480
|
-
let o =
|
|
479
|
+
z.value = !0;
|
|
480
|
+
let o = q.value.target;
|
|
481
481
|
o.style.transform = "translateX(var(--t-app-width))", o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
|
|
482
482
|
o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), B.value && (B.value.target.style.transitionOrigin = "left center", B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1))"), setTimeout(() => {
|
|
483
|
-
|
|
483
|
+
z.value = !1, P.value += 1, e && e();
|
|
484
484
|
}, 400);
|
|
485
485
|
}, 100);
|
|
486
486
|
}
|
|
487
|
-
},
|
|
487
|
+
}, Fe = (e) => {
|
|
488
488
|
X.push(e);
|
|
489
|
-
},
|
|
489
|
+
}, Ge = (e, o) => {
|
|
490
490
|
X[e].target = o;
|
|
491
|
-
},
|
|
491
|
+
}, ne = (e) => {
|
|
492
492
|
e || X.pop();
|
|
493
|
-
},
|
|
493
|
+
}, Ue = () => {
|
|
494
494
|
X.splice(0, X.length);
|
|
495
|
-
},
|
|
495
|
+
}, je = () => {
|
|
496
496
|
Z.value = !1;
|
|
497
|
-
},
|
|
497
|
+
}, Ke = () => {
|
|
498
498
|
Z.value = !0;
|
|
499
|
-
},
|
|
499
|
+
}, Je = (e, o) => {
|
|
500
500
|
e == "scale" && Y.next(o), e == "transform" && ee.next(o);
|
|
501
|
-
},
|
|
501
|
+
}, Qe = (e, o) => {
|
|
502
502
|
e == "scale" && Y.back(o), e == "transform" && ee.back(o);
|
|
503
|
-
},
|
|
503
|
+
}, Ze = (e, o) => {
|
|
504
504
|
e == "scale" && Y.move(o), e == "transform" && ee.move(o);
|
|
505
|
-
},
|
|
505
|
+
}, Ye = (e) => {
|
|
506
506
|
e == "scale" && Y.reset(), e == "transform" && ee.reset();
|
|
507
507
|
}, T = {
|
|
508
|
-
isBusy:
|
|
508
|
+
isBusy: z,
|
|
509
509
|
isSwipeable: fe,
|
|
510
|
-
reset:
|
|
511
|
-
next:
|
|
512
|
-
back:
|
|
513
|
-
move:
|
|
510
|
+
reset: Ye,
|
|
511
|
+
next: Je,
|
|
512
|
+
back: Qe,
|
|
513
|
+
move: Ze,
|
|
514
514
|
screens: X,
|
|
515
|
-
addScreen:
|
|
516
|
-
addScreenEl:
|
|
517
|
-
removeScreen:
|
|
518
|
-
removeAllScreen:
|
|
519
|
-
lockSwipe:
|
|
520
|
-
unlockSwipe:
|
|
515
|
+
addScreen: Fe,
|
|
516
|
+
addScreenEl: Ge,
|
|
517
|
+
removeScreen: ne,
|
|
518
|
+
removeAllScreen: Ue,
|
|
519
|
+
lockSwipe: je,
|
|
520
|
+
unlockSwipe: Ke,
|
|
521
521
|
swipeable: Z,
|
|
522
522
|
currentScreen: B,
|
|
523
|
-
lastScreen:
|
|
524
|
-
nextScreen:
|
|
525
|
-
},
|
|
523
|
+
lastScreen: C,
|
|
524
|
+
nextScreen: q
|
|
525
|
+
}, et = { class: "t-toast-content" }, tt = /* @__PURE__ */ h({
|
|
526
526
|
__name: "t-toast",
|
|
527
527
|
props: {
|
|
528
528
|
message: {},
|
|
@@ -546,7 +546,7 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
546
546
|
D(() => s.visible, (n) => {
|
|
547
547
|
n ? f() : y();
|
|
548
548
|
});
|
|
549
|
-
const
|
|
549
|
+
const i = w(() => {
|
|
550
550
|
let n;
|
|
551
551
|
return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? n = {
|
|
552
552
|
"--border": "none",
|
|
@@ -589,17 +589,17 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
589
589
|
return o({
|
|
590
590
|
open: f,
|
|
591
591
|
close: y
|
|
592
|
-
}), (n,
|
|
592
|
+
}), (n, u) => d.value ? (c(), p("div", {
|
|
593
593
|
key: 0,
|
|
594
594
|
class: S(["t-toast", { [s.placement]: !0, open: l.value, closing: a.value }]),
|
|
595
|
-
style: x({ "--space": s.space, ...
|
|
595
|
+
style: x({ "--space": s.space, ...i.value })
|
|
596
596
|
}, [
|
|
597
597
|
b(n.$slots, "content", {}, () => [
|
|
598
|
-
$("div",
|
|
598
|
+
$("div", et, R(s.message), 1)
|
|
599
599
|
], !0)
|
|
600
|
-
], 6)) :
|
|
600
|
+
], 6)) : I("", !0);
|
|
601
601
|
}
|
|
602
|
-
}), me = /* @__PURE__ */ g(
|
|
602
|
+
}), me = /* @__PURE__ */ g(tt, [["__scopeId", "data-v-2802d43f"]]), To = (e = {}) => ({
|
|
603
603
|
open() {
|
|
604
604
|
let o = document.body.querySelector(".t-app");
|
|
605
605
|
if (!o) return;
|
|
@@ -624,13 +624,13 @@ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
624
624
|
}, e.duration + 10);
|
|
625
625
|
}, 50);
|
|
626
626
|
}
|
|
627
|
-
}),
|
|
627
|
+
}), ot = v(0);
|
|
628
628
|
function ve() {
|
|
629
629
|
return {
|
|
630
|
-
height:
|
|
630
|
+
height: ot
|
|
631
631
|
};
|
|
632
632
|
}
|
|
633
|
-
const
|
|
633
|
+
const st = /* @__PURE__ */ h({
|
|
634
634
|
__name: "t-cable",
|
|
635
635
|
props: {
|
|
636
636
|
keyboard: { type: Boolean, default: !1 },
|
|
@@ -647,7 +647,7 @@ const rt = /* @__PURE__ */ h({
|
|
|
647
647
|
b(s.$slots, "default", {}, void 0, !0)
|
|
648
648
|
], 6));
|
|
649
649
|
}
|
|
650
|
-
}),
|
|
650
|
+
}), rt = /* @__PURE__ */ g(st, [["__scopeId", "data-v-6cae224b"]]), nt = /* @__PURE__ */ h({
|
|
651
651
|
__name: "t-card",
|
|
652
652
|
props: {
|
|
653
653
|
color: { default: null }
|
|
@@ -670,13 +670,13 @@ const rt = /* @__PURE__ */ h({
|
|
|
670
670
|
b(s.$slots, "default")
|
|
671
671
|
], 4));
|
|
672
672
|
}
|
|
673
|
-
}),
|
|
674
|
-
function
|
|
675
|
-
return c(), p("div",
|
|
673
|
+
}), at = {}, lt = { class: "t-content" };
|
|
674
|
+
function ct(e, o) {
|
|
675
|
+
return c(), p("div", lt, [
|
|
676
676
|
b(e.$slots, "default", {}, void 0, !0)
|
|
677
677
|
]);
|
|
678
678
|
}
|
|
679
|
-
const ye = /* @__PURE__ */ g(
|
|
679
|
+
const ye = /* @__PURE__ */ g(at, [["render", ct], ["__scopeId", "data-v-af750e89"]]), it = /* @__PURE__ */ h({
|
|
680
680
|
__name: "t-refresher",
|
|
681
681
|
props: {
|
|
682
682
|
threshold: { default: 120 },
|
|
@@ -689,15 +689,15 @@ const ye = /* @__PURE__ */ g(lt, [["render", it], ["__scopeId", "data-v-af750e89
|
|
|
689
689
|
let a, f = !1;
|
|
690
690
|
const y = () => {
|
|
691
691
|
l.value = !1, r.value = 0, a && a.cancel(), f = !1;
|
|
692
|
-
},
|
|
692
|
+
}, i = () => {
|
|
693
693
|
f = !0, l.value = !0, r.value = s.threshold, t("refresh", y);
|
|
694
694
|
}, n = () => {
|
|
695
695
|
r.value = 0, l.value = !1, f = !1, t("cancel");
|
|
696
696
|
};
|
|
697
697
|
return D(() => d.value, () => {
|
|
698
698
|
a && a.destroy();
|
|
699
|
-
let
|
|
700
|
-
|
|
699
|
+
let u = d.value.closest(".t-content");
|
|
700
|
+
u && (a = re(u, {
|
|
701
701
|
options: {
|
|
702
702
|
minDist: 60
|
|
703
703
|
},
|
|
@@ -707,14 +707,14 @@ const ye = /* @__PURE__ */ g(lt, [["render", it], ["__scopeId", "data-v-af750e89
|
|
|
707
707
|
move({ deltaY: _, initialDirection: k }) {
|
|
708
708
|
if (l.value || f || k != "down") return;
|
|
709
709
|
if (s.variant == "max" && _ >= s.threshold) {
|
|
710
|
-
|
|
710
|
+
i();
|
|
711
711
|
return;
|
|
712
712
|
}
|
|
713
713
|
const m = _ < 0 ? 0 : _;
|
|
714
714
|
r.value = m, t("move", m);
|
|
715
715
|
},
|
|
716
716
|
up({ deltaY: _, initialDirection: k }) {
|
|
717
|
-
l.value || f || k != "down" || (s.variant == "up" && _ >= s.threshold ?
|
|
717
|
+
l.value || f || k != "down" || (s.variant == "up" && _ >= s.threshold ? i() : n());
|
|
718
718
|
},
|
|
719
719
|
cancel() {
|
|
720
720
|
l.value || f || n();
|
|
@@ -722,14 +722,14 @@ const ye = /* @__PURE__ */ g(lt, [["render", it], ["__scopeId", "data-v-af750e89
|
|
|
722
722
|
}, {
|
|
723
723
|
passive: !1
|
|
724
724
|
}));
|
|
725
|
-
}),
|
|
725
|
+
}), se(() => {
|
|
726
726
|
a && a.destroy();
|
|
727
|
-
}), (
|
|
728
|
-
class: S(["t-refresher", { safe:
|
|
727
|
+
}), (u, _) => M((c(), p("div", {
|
|
728
|
+
class: S(["t-refresher", { safe: u.safe }]),
|
|
729
729
|
ref_key: "container",
|
|
730
730
|
ref: d
|
|
731
731
|
}, [
|
|
732
|
-
b(
|
|
732
|
+
b(u.$slots, "default", {
|
|
733
733
|
offset: r.value,
|
|
734
734
|
refreshing: l.value
|
|
735
735
|
}, void 0, !0)
|
|
@@ -737,13 +737,13 @@ const ye = /* @__PURE__ */ g(lt, [["render", it], ["__scopeId", "data-v-af750e89
|
|
|
737
737
|
[H, r.value > 0]
|
|
738
738
|
]);
|
|
739
739
|
}
|
|
740
|
-
}),
|
|
741
|
-
function
|
|
742
|
-
return c(), p("div",
|
|
740
|
+
}), ut = /* @__PURE__ */ g(it, [["__scopeId", "data-v-1d52477a"]]), dt = {}, pt = { class: "t-screen" };
|
|
741
|
+
function ft(e, o) {
|
|
742
|
+
return c(), p("div", pt, [
|
|
743
743
|
b(e.$slots, "default", {}, void 0, !0)
|
|
744
744
|
]);
|
|
745
745
|
}
|
|
746
|
-
const _e = /* @__PURE__ */ g(
|
|
746
|
+
const _e = /* @__PURE__ */ g(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c"]]), mt = /* @__PURE__ */ h({
|
|
747
747
|
__name: "t-swipe-screen",
|
|
748
748
|
props: {
|
|
749
749
|
variant: { default: "scale" },
|
|
@@ -755,7 +755,7 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
755
755
|
let t = {};
|
|
756
756
|
const s = o, r = e;
|
|
757
757
|
let l;
|
|
758
|
-
const d = r.router || de(), a = r.route ||
|
|
758
|
+
const d = r.router || de(), a = r.route || $e(), f = d.getRoutes();
|
|
759
759
|
for (let n of f)
|
|
760
760
|
t[n.name] = n.component || n.components;
|
|
761
761
|
const y = (n) => {
|
|
@@ -764,28 +764,28 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
764
764
|
target: null,
|
|
765
765
|
component: he(t[n] || null)
|
|
766
766
|
});
|
|
767
|
-
},
|
|
768
|
-
!
|
|
767
|
+
}, i = (n, u) => {
|
|
768
|
+
!u || T.screens[n].target || (T.addScreenEl(n, u.$el), T.nextScreen && T.next(r.variant, () => {
|
|
769
769
|
s("change");
|
|
770
770
|
}));
|
|
771
771
|
};
|
|
772
|
-
return D(() => a.name, (n,
|
|
772
|
+
return D(() => a.name, (n, u) => {
|
|
773
773
|
n != T.currentScreen.value?.name && (T.lastScreen.value?.name == n ? T.back(r.variant, () => {
|
|
774
774
|
s("change");
|
|
775
775
|
}) : y(a.name));
|
|
776
776
|
}), G(() => {
|
|
777
|
-
y(a.name), l =
|
|
777
|
+
y(a.name), l = re(document.body, {
|
|
778
778
|
beforeEvent(n) {
|
|
779
779
|
return !!T.isSwipeable.value;
|
|
780
780
|
},
|
|
781
781
|
fast({ initialDirection: n }) {
|
|
782
782
|
T.lastScreen.value && n == "right" && d.back();
|
|
783
783
|
},
|
|
784
|
-
move({ deltaX: n, initialDirection:
|
|
785
|
-
|
|
784
|
+
move({ deltaX: n, initialDirection: u }) {
|
|
785
|
+
u == "right" && T.move(r.variant, n);
|
|
786
786
|
},
|
|
787
|
-
up({ deltaX: n, initialDirection:
|
|
788
|
-
if (
|
|
787
|
+
up({ deltaX: n, initialDirection: u }) {
|
|
788
|
+
if (u != "right") {
|
|
789
789
|
T.reset(r.variant);
|
|
790
790
|
return;
|
|
791
791
|
}
|
|
@@ -796,12 +796,12 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
796
796
|
T.reset(r.variant);
|
|
797
797
|
}
|
|
798
798
|
});
|
|
799
|
-
}),
|
|
799
|
+
}), se(() => {
|
|
800
800
|
l && l.destroy(), T.removeAllScreen();
|
|
801
|
-
}), (n,
|
|
801
|
+
}), (n, u) => (c(), p(W, null, [
|
|
802
802
|
(c(!0), p(W, null, F(A(T).screens, (_, k) => (c(), E(_e, {
|
|
803
803
|
ref_for: !0,
|
|
804
|
-
ref: (m) =>
|
|
804
|
+
ref: (m) => i(k, m),
|
|
805
805
|
style: x({ zIndex: k + (k == A(T).screens.length - 1 ? 2 : 1) }),
|
|
806
806
|
key: k
|
|
807
807
|
}, {
|
|
@@ -816,7 +816,7 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
816
816
|
}, null, 4)
|
|
817
817
|
], 64));
|
|
818
818
|
}
|
|
819
|
-
}),
|
|
819
|
+
}), vt = /* @__PURE__ */ g(mt, [["__scopeId", "data-v-23e0cfda"]]), yt = /* @__PURE__ */ h({
|
|
820
820
|
__name: "t-toolbar",
|
|
821
821
|
props: {
|
|
822
822
|
placement: { default: null },
|
|
@@ -834,7 +834,7 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
834
834
|
])
|
|
835
835
|
], 6));
|
|
836
836
|
}
|
|
837
|
-
}),
|
|
837
|
+
}), _t = /* @__PURE__ */ g(yt, [["__scopeId", "data-v-1ee9866d"]]), gt = /* @__PURE__ */ h({
|
|
838
838
|
__name: "t-back-button",
|
|
839
839
|
props: {
|
|
840
840
|
to: {},
|
|
@@ -856,9 +856,9 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
856
856
|
b(l.$slots, "default", {}, () => [
|
|
857
857
|
d[0] || (d[0] = $("i", { class: "ri-arrow-left-s-line" }, null, -1))
|
|
858
858
|
], !0)
|
|
859
|
-
])) :
|
|
859
|
+
])) : I("", !0);
|
|
860
860
|
}
|
|
861
|
-
}),
|
|
861
|
+
}), bt = /* @__PURE__ */ g(gt, [["__scopeId", "data-v-dcf9d363"]]), ht = /* @__PURE__ */ h({
|
|
862
862
|
__name: "t-text",
|
|
863
863
|
props: {
|
|
864
864
|
color: { default: "var(--t-color-text)" },
|
|
@@ -879,7 +879,7 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
879
879
|
b(s.$slots, "default", {}, void 0, !0)
|
|
880
880
|
], 4));
|
|
881
881
|
}
|
|
882
|
-
}),
|
|
882
|
+
}), oe = /* @__PURE__ */ g(ht, [["__scopeId", "data-v-f0f94f05"]]), kt = /* @__PURE__ */ h({
|
|
883
883
|
__name: "t-gesture-indicator",
|
|
884
884
|
props: {
|
|
885
885
|
placement: { default: "bottom" }
|
|
@@ -889,7 +889,7 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
889
889
|
class: S(["t-gesture-indicator", { [o.placement]: !0 }])
|
|
890
890
|
}, null, 2));
|
|
891
891
|
}
|
|
892
|
-
}), ge = /* @__PURE__ */ g(
|
|
892
|
+
}), ge = /* @__PURE__ */ g(kt, [["__scopeId", "data-v-ed8f7308"]]), $t = /* @__PURE__ */ h({
|
|
893
893
|
__name: "t-sheet",
|
|
894
894
|
props: {
|
|
895
895
|
background: { default: "var(--t-color-surface)" },
|
|
@@ -916,49 +916,49 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
916
916
|
if (t.placement == "right") return "right";
|
|
917
917
|
}), y = (n) => {
|
|
918
918
|
s("dismiss", n);
|
|
919
|
-
},
|
|
919
|
+
}, i = () => {
|
|
920
920
|
d.value = !0, setTimeout(() => {
|
|
921
921
|
d.value = !1;
|
|
922
922
|
}, 300);
|
|
923
923
|
};
|
|
924
924
|
return D(() => r.value, (n) => {
|
|
925
|
-
n && (a =
|
|
925
|
+
n && (a = re(r.value, {
|
|
926
926
|
isMoving: !1,
|
|
927
927
|
options: {
|
|
928
928
|
minDist: 30
|
|
929
929
|
},
|
|
930
|
-
beforeEvent(
|
|
930
|
+
beforeEvent(u) {
|
|
931
931
|
return !(d.value || !t.gesture || t.placement == "center");
|
|
932
932
|
},
|
|
933
933
|
down() {
|
|
934
934
|
this.isMoving = !1;
|
|
935
935
|
},
|
|
936
|
-
fast({ initialDirection:
|
|
937
|
-
|
|
936
|
+
fast({ initialDirection: u }) {
|
|
937
|
+
i(), u == f.value ? s("dismiss", "gesture") : l.value.open();
|
|
938
938
|
},
|
|
939
|
-
move({ deltaY:
|
|
939
|
+
move({ deltaY: u, deltaX: _, initialDirection: k }) {
|
|
940
940
|
if (k != f.value) return;
|
|
941
941
|
let m = 0;
|
|
942
|
-
t.placement == "bottom" || t.placement == "top" ? m =
|
|
942
|
+
t.placement == "bottom" || t.placement == "top" ? m = u : m = _, t.placement == "bottom" && (m = u > 0 ? u : 0), t.placement == "top" && (m = u < 0 ? u : 0), t.placement == "left" && (m = _ < 0 ? _ : 0), t.placement == "right" && (m = _ > 0 ? _ : 0), (t.placement == "bottom" && (m >= 10 || this.isMoving) || t.placement == "top" && (m <= -10 || this.isMoving) || t.placement == "left" && (m <= -10 || this.isMoving) || t.placement == "right" && (m >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
|
|
943
943
|
contentTransform: m + "px",
|
|
944
944
|
transition: "0s"
|
|
945
945
|
}));
|
|
946
946
|
},
|
|
947
|
-
up({ deltaY:
|
|
948
|
-
if (this.isMoving = !1,
|
|
947
|
+
up({ deltaY: u, deltaX: _, initialDirection: k }) {
|
|
948
|
+
if (this.isMoving = !1, i(), k != f.value) {
|
|
949
949
|
l.value.open();
|
|
950
950
|
return;
|
|
951
951
|
}
|
|
952
952
|
let m, O, te;
|
|
953
|
-
t.placement == "bottom" || t.placement == "top" ? (m = r.value.offsetHeight, te =
|
|
953
|
+
t.placement == "bottom" || t.placement == "top" ? (m = r.value.offsetHeight, te = u) : (m = r.value.offsetWidth, te = _), O = te / m * 100, O > 50 ? s("dismiss", "gesture") : l.value.open();
|
|
954
954
|
},
|
|
955
955
|
cancel() {
|
|
956
|
-
this.isMoving = !1,
|
|
956
|
+
this.isMoving = !1, i(), l.value.open();
|
|
957
957
|
}
|
|
958
958
|
}));
|
|
959
|
-
}),
|
|
959
|
+
}), se(() => {
|
|
960
960
|
a && a.destroy();
|
|
961
|
-
}), (n,
|
|
961
|
+
}), (n, u) => (c(), E(L, {
|
|
962
962
|
ref_key: "present",
|
|
963
963
|
ref: l,
|
|
964
964
|
class: S(t.class),
|
|
@@ -973,7 +973,7 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
973
973
|
t.gesture && t.indicator && t.placement != "center" ? (c(), E(ge, {
|
|
974
974
|
key: 0,
|
|
975
975
|
placement: t.placement
|
|
976
|
-
}, null, 8, ["placement"])) :
|
|
976
|
+
}, null, 8, ["placement"])) : I("", !0),
|
|
977
977
|
$("div", {
|
|
978
978
|
class: S(["t-sheet", { fullscreen: t.fullscreen, [t.placement]: !0, rounded: n.rounded, radius: t.radius }]),
|
|
979
979
|
style: x({ "--background": t.background }),
|
|
@@ -986,7 +986,7 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
986
986
|
_: 3
|
|
987
987
|
}, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
|
|
988
988
|
}
|
|
989
|
-
}),
|
|
989
|
+
}), wt = /* @__PURE__ */ g($t, [["__scopeId", "data-v-6f7063f0"]]), xt = { class: "t-input-label" }, Tt = { class: "t-input-content" }, St = ["placeholder", "value", "type", "readonly"], Bt = /* @__PURE__ */ h({
|
|
990
990
|
__name: "t-input",
|
|
991
991
|
props: {
|
|
992
992
|
size: { default: "standard" },
|
|
@@ -1004,83 +1004,78 @@ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c
|
|
|
1004
1004
|
setup(e, { emit: o }) {
|
|
1005
1005
|
const t = e, s = o, r = v(!1), l = v(null), d = w(
|
|
1006
1006
|
() => !(t.modelValue === "" || t.modelValue == null)
|
|
1007
|
-
), a = (
|
|
1008
|
-
s("update:modelValue",
|
|
1009
|
-
}, f = async (
|
|
1010
|
-
r.value = !0
|
|
1011
|
-
const n = l.value;
|
|
1012
|
-
if (n) {
|
|
1013
|
-
const i = document.createRange(), _ = window.getSelection();
|
|
1014
|
-
i.selectNodeContents(n), i.collapse(!1), _?.removeAllRanges(), _?.addRange(i), n.focus();
|
|
1015
|
-
}
|
|
1007
|
+
), a = (i) => {
|
|
1008
|
+
s("update:modelValue", i.target.value);
|
|
1009
|
+
}, f = async (i) => {
|
|
1010
|
+
r.value = !0;
|
|
1016
1011
|
}, y = () => {
|
|
1017
1012
|
r.value = !1;
|
|
1018
1013
|
};
|
|
1019
|
-
return (
|
|
1014
|
+
return (i, n) => (c(), p("div", {
|
|
1020
1015
|
class: S(["t-input", {
|
|
1021
|
-
rounded:
|
|
1022
|
-
["size-" +
|
|
1023
|
-
["variant-" +
|
|
1016
|
+
rounded: i.rounded,
|
|
1017
|
+
["size-" + i.size]: !0,
|
|
1018
|
+
["variant-" + i.variant]: !0,
|
|
1024
1019
|
focus: r.value,
|
|
1025
1020
|
"has-value": d.value,
|
|
1026
|
-
readonly:
|
|
1021
|
+
readonly: i.readonly
|
|
1027
1022
|
}])
|
|
1028
1023
|
}, [
|
|
1029
1024
|
$("label", null, [
|
|
1030
|
-
$("span",
|
|
1031
|
-
$("div",
|
|
1032
|
-
b(
|
|
1025
|
+
$("span", xt, R(i.label), 1),
|
|
1026
|
+
$("div", Tt, [
|
|
1027
|
+
b(i.$slots, "start", {}, void 0, !0),
|
|
1033
1028
|
$("input", {
|
|
1034
1029
|
ref_key: "editable",
|
|
1035
1030
|
ref: l,
|
|
1036
1031
|
class: "t-input-editable",
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1032
|
+
placeholder: i.placeholder,
|
|
1033
|
+
value: i.modelValue,
|
|
1034
|
+
type: i.type,
|
|
1040
1035
|
onInput: a,
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
}, null, 40,
|
|
1045
|
-
b(
|
|
1036
|
+
onFocus: f,
|
|
1037
|
+
onBlur: y,
|
|
1038
|
+
readonly: i.readonly
|
|
1039
|
+
}, null, 40, St),
|
|
1040
|
+
b(i.$slots, "end", {}, void 0, !0)
|
|
1046
1041
|
])
|
|
1047
1042
|
]),
|
|
1048
|
-
|
|
1043
|
+
i.error ? (c(), E(oe, {
|
|
1049
1044
|
key: 0,
|
|
1050
1045
|
color: "danger"
|
|
1051
1046
|
}, {
|
|
1052
1047
|
default: V(() => [
|
|
1053
|
-
N(R(
|
|
1048
|
+
N(R(i.error), 1)
|
|
1054
1049
|
]),
|
|
1055
1050
|
_: 1
|
|
1056
|
-
})) :
|
|
1051
|
+
})) : i.help ? (c(), E(oe, {
|
|
1057
1052
|
key: 1,
|
|
1058
1053
|
color: "secondary"
|
|
1059
1054
|
}, {
|
|
1060
1055
|
default: V(() => [
|
|
1061
|
-
N(R(
|
|
1056
|
+
N(R(i.help), 1)
|
|
1062
1057
|
]),
|
|
1063
1058
|
_: 1
|
|
1064
|
-
})) :
|
|
1059
|
+
})) : I("", !0)
|
|
1065
1060
|
], 2));
|
|
1066
1061
|
}
|
|
1067
|
-
}), zt = /* @__PURE__ */ g(
|
|
1068
|
-
function
|
|
1062
|
+
}), zt = /* @__PURE__ */ g(Bt, [["__scopeId", "data-v-11ddaa71"]]), It = {};
|
|
1063
|
+
function Ct(e, o) {
|
|
1069
1064
|
return c(), p("textarea");
|
|
1070
1065
|
}
|
|
1071
|
-
const
|
|
1072
|
-
function
|
|
1066
|
+
const Et = /* @__PURE__ */ g(It, [["render", Ct]]), Vt = {};
|
|
1067
|
+
function Pt(e, o) {
|
|
1073
1068
|
return c(), p("div");
|
|
1074
1069
|
}
|
|
1075
|
-
const
|
|
1076
|
-
function
|
|
1077
|
-
return c(), p("div",
|
|
1070
|
+
const Rt = /* @__PURE__ */ g(Vt, [["render", Pt]]), At = {}, Xt = { class: "t-grid" };
|
|
1071
|
+
function Dt(e, o) {
|
|
1072
|
+
return c(), p("div", Xt);
|
|
1078
1073
|
}
|
|
1079
|
-
const
|
|
1074
|
+
const Ot = /* @__PURE__ */ g(At, [["render", Dt]]), Wt = {}, Nt = { class: "t-grid-item" };
|
|
1080
1075
|
function qt(e, o) {
|
|
1081
|
-
return c(), p("div",
|
|
1076
|
+
return c(), p("div", Nt);
|
|
1082
1077
|
}
|
|
1083
|
-
const Lt = /* @__PURE__ */ g(
|
|
1078
|
+
const Lt = /* @__PURE__ */ g(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
1084
1079
|
__name: "t-divider",
|
|
1085
1080
|
props: {
|
|
1086
1081
|
direction: { default: "horizontal" }
|
|
@@ -1091,7 +1086,7 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1091
1086
|
class: S(["t-divider", { [o.direction]: !0 }])
|
|
1092
1087
|
}, null, 2));
|
|
1093
1088
|
}
|
|
1094
|
-
}),
|
|
1089
|
+
}), Ht = /* @__PURE__ */ g(Mt, [["__scopeId", "data-v-47ee8991"]]), Ft = /* @__PURE__ */ h({
|
|
1095
1090
|
__name: "t-toggle-password",
|
|
1096
1091
|
props: {
|
|
1097
1092
|
color: { default: "warning" }
|
|
@@ -1112,7 +1107,7 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1112
1107
|
let y = a();
|
|
1113
1108
|
y && (r.value = !r.value, r.value ? y.type = "text" : y.type = "password", s("change", r.value));
|
|
1114
1109
|
};
|
|
1115
|
-
return (y,
|
|
1110
|
+
return (y, i) => (c(), p("button", {
|
|
1116
1111
|
ref_key: "toggle",
|
|
1117
1112
|
ref: l,
|
|
1118
1113
|
class: "t-toggle-password",
|
|
@@ -1120,14 +1115,14 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1120
1115
|
onClick: f
|
|
1121
1116
|
}, [
|
|
1122
1117
|
r.value ? b(y.$slots, "on", { key: 0 }, () => [
|
|
1123
|
-
|
|
1124
|
-
], !0) :
|
|
1125
|
-
r.value ?
|
|
1126
|
-
|
|
1118
|
+
i[0] || (i[0] = $("i", { class: "ri-eye-line" }, null, -1))
|
|
1119
|
+
], !0) : I("", !0),
|
|
1120
|
+
r.value ? I("", !0) : b(y.$slots, "off", { key: 1 }, () => [
|
|
1121
|
+
i[1] || (i[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
|
|
1127
1122
|
], !0)
|
|
1128
1123
|
], 4));
|
|
1129
1124
|
}
|
|
1130
|
-
}),
|
|
1125
|
+
}), Gt = /* @__PURE__ */ g(Ft, [["__scopeId", "data-v-3268e9e3"]]), Ut = /* @__PURE__ */ h({
|
|
1131
1126
|
__name: "t-avatar",
|
|
1132
1127
|
props: {
|
|
1133
1128
|
square: { type: Boolean, default: !1 },
|
|
@@ -1142,13 +1137,13 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1142
1137
|
b(s.$slots, "default", {}, void 0, !0)
|
|
1143
1138
|
], 6));
|
|
1144
1139
|
}
|
|
1145
|
-
}),
|
|
1140
|
+
}), jt = /* @__PURE__ */ g(Ut, [["__scopeId", "data-v-24384c2f"]]), Kt = { class: "t-collapse-title" }, Jt = {
|
|
1146
1141
|
key: 0,
|
|
1147
1142
|
class: "icon"
|
|
1148
|
-
},
|
|
1143
|
+
}, Qt = {
|
|
1149
1144
|
key: 1,
|
|
1150
1145
|
class: "icon"
|
|
1151
|
-
},
|
|
1146
|
+
}, Zt = { class: "t-collapse-content" }, Yt = /* @__PURE__ */ h({
|
|
1152
1147
|
__name: "t-collapse",
|
|
1153
1148
|
props: {
|
|
1154
1149
|
title: {}
|
|
@@ -1167,20 +1162,20 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1167
1162
|
onClick: a
|
|
1168
1163
|
}, [
|
|
1169
1164
|
b(f.$slots, "icon"),
|
|
1170
|
-
$("div",
|
|
1165
|
+
$("div", Kt, [
|
|
1171
1166
|
b(f.$slots, "title", {}, () => [
|
|
1172
1167
|
N(R(t.title), 1)
|
|
1173
1168
|
])
|
|
1174
1169
|
]),
|
|
1175
1170
|
b(f.$slots, "toggle", {}, () => [
|
|
1176
|
-
r.value ? (c(), p("div",
|
|
1171
|
+
r.value ? (c(), p("div", Jt, [...y[0] || (y[0] = [
|
|
1177
1172
|
$("i", { class: "ri-arrow-up-s-line" }, null, -1)
|
|
1178
|
-
])])) : (c(), p("div",
|
|
1173
|
+
])])) : (c(), p("div", Qt, [...y[1] || (y[1] = [
|
|
1179
1174
|
$("i", { class: "ri-arrow-down-s-line" }, null, -1)
|
|
1180
1175
|
])]))
|
|
1181
1176
|
])
|
|
1182
1177
|
]),
|
|
1183
|
-
$("div",
|
|
1178
|
+
$("div", Zt, [
|
|
1184
1179
|
$("div", {
|
|
1185
1180
|
ref_key: "content",
|
|
1186
1181
|
ref: d
|
|
@@ -1192,7 +1187,7 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1192
1187
|
])
|
|
1193
1188
|
], 6));
|
|
1194
1189
|
}
|
|
1195
|
-
}),
|
|
1190
|
+
}), eo = /* @__PURE__ */ h({
|
|
1196
1191
|
__name: "t-switch",
|
|
1197
1192
|
props: {
|
|
1198
1193
|
modelValue: { type: Boolean },
|
|
@@ -1220,7 +1215,7 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1220
1215
|
$("div", { class: "t-switch-icon" }, null, -1)
|
|
1221
1216
|
])], 6));
|
|
1222
1217
|
}
|
|
1223
|
-
}),
|
|
1218
|
+
}), to = /* @__PURE__ */ g(eo, [["__scopeId", "data-v-3616970e"]]), oo = /* @__PURE__ */ h({
|
|
1224
1219
|
__name: "t-tab",
|
|
1225
1220
|
props: {
|
|
1226
1221
|
value: {},
|
|
@@ -1246,7 +1241,7 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1246
1241
|
}, 8, ["size", "color"])
|
|
1247
1242
|
], 2));
|
|
1248
1243
|
}
|
|
1249
|
-
}),
|
|
1244
|
+
}), so = /* @__PURE__ */ g(oo, [["__scopeId", "data-v-4b7f4e98"]]), ro = /* @__PURE__ */ h({
|
|
1250
1245
|
__name: "t-tabs",
|
|
1251
1246
|
props: {
|
|
1252
1247
|
placement: { default: "top-start" },
|
|
@@ -1261,8 +1256,8 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1261
1256
|
emits: ["update:modelValue"],
|
|
1262
1257
|
setup(e, { emit: o }) {
|
|
1263
1258
|
const t = e, s = o, r = v("0px"), l = v(0), d = v(0), a = v(), f = w(() => {
|
|
1264
|
-
let n = "",
|
|
1265
|
-
return t.variant == "text" && (n = "transparent", ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ?
|
|
1259
|
+
let n = "", u = "";
|
|
1260
|
+
return t.variant == "text" && (n = "transparent", ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? u = `var(--t-color-status-${t.color})` : u = t.color), t.variant == "border-under" && (u = "currentColor", ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? n = `var(--t-color-status-${t.color})` : n = t.color), t.variant == "tag" && (["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? (n = `var(--t-color-status-${t.color})`, u = `var(--t-color-status-${t.color}-text)`) : (n = t.color, u = "currentColor")), { background: n, text: u };
|
|
1266
1261
|
}), y = w(() => t.variant == "border-under" ? {
|
|
1267
1262
|
"--transform": r.value,
|
|
1268
1263
|
"--border": t.border + "px"
|
|
@@ -1273,23 +1268,23 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1273
1268
|
"--width": l.value - t.margin[1] * 2 + "px",
|
|
1274
1269
|
"--transform": r.value,
|
|
1275
1270
|
"--radius": t.radius + "px"
|
|
1276
|
-
} : {}),
|
|
1271
|
+
} : {}), i = () => {
|
|
1277
1272
|
if (t.variant == "border-under") {
|
|
1278
1273
|
let n = a.value.querySelector(".active");
|
|
1279
1274
|
if (n) {
|
|
1280
1275
|
if (t.placement.startsWith("top-") || t.placement.startsWith("bottom-")) {
|
|
1281
|
-
let
|
|
1282
|
-
r.value =
|
|
1276
|
+
let u = n.getBoundingClientRect().left - a.value.getBoundingClientRect().left + a.value.scrollLeft, _ = n.offsetWidth / 2;
|
|
1277
|
+
r.value = u + _ - t.border / 2 + "px";
|
|
1283
1278
|
} else if (t.placement.startsWith("left-") || t.placement.startsWith("right-")) {
|
|
1284
|
-
let
|
|
1285
|
-
r.value =
|
|
1279
|
+
let u = n.getBoundingClientRect().top - a.value.getBoundingClientRect().top + a.value.scrollTop, _ = n.offsetHeight / 2;
|
|
1280
|
+
r.value = u + _ - t.border / 2 + "px";
|
|
1286
1281
|
}
|
|
1287
1282
|
}
|
|
1288
1283
|
}
|
|
1289
1284
|
if (t.variant == "tag") {
|
|
1290
1285
|
let n = a.value.querySelector(".active");
|
|
1291
1286
|
if (n) {
|
|
1292
|
-
let
|
|
1287
|
+
let u = n.offsetWidth, _ = n.offsetHeight;
|
|
1293
1288
|
if (t.placement.startsWith("top-") || t.placement.startsWith("bottom-")) {
|
|
1294
1289
|
let k = n.getBoundingClientRect().left - a.value.getBoundingClientRect().left + a.value.scrollLeft;
|
|
1295
1290
|
r.value = k + "px";
|
|
@@ -1297,7 +1292,7 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1297
1292
|
let k = n.getBoundingClientRect().top - a.value.getBoundingClientRect().top + a.value.scrollTop;
|
|
1298
1293
|
r.value = k + "px";
|
|
1299
1294
|
}
|
|
1300
|
-
l.value =
|
|
1295
|
+
l.value = u, d.value = _;
|
|
1301
1296
|
}
|
|
1302
1297
|
}
|
|
1303
1298
|
};
|
|
@@ -1310,10 +1305,10 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1310
1305
|
s("update:modelValue", n);
|
|
1311
1306
|
}
|
|
1312
1307
|
}), D(() => t.modelValue, async () => {
|
|
1313
|
-
await
|
|
1308
|
+
await ae(), i();
|
|
1314
1309
|
}), G(async () => {
|
|
1315
|
-
await
|
|
1316
|
-
}), (n,
|
|
1310
|
+
await ae(), i();
|
|
1311
|
+
}), (n, u) => (c(), p("ul", {
|
|
1317
1312
|
ref_key: "container",
|
|
1318
1313
|
ref: a,
|
|
1319
1314
|
class: S(["t-tabs", { [n.placement]: !0, [`variant-${n.variant}`]: !0 }]),
|
|
@@ -1322,7 +1317,7 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1322
1317
|
b(n.$slots, "default", {}, void 0, !0)
|
|
1323
1318
|
], 6));
|
|
1324
1319
|
}
|
|
1325
|
-
}),
|
|
1320
|
+
}), no = /* @__PURE__ */ g(ro, [["__scopeId", "data-v-8d370631"]]), ao = /* @__PURE__ */ h({
|
|
1326
1321
|
__name: "t-loading-app",
|
|
1327
1322
|
setup(e) {
|
|
1328
1323
|
return (o, t) => (c(), E(ye, null, {
|
|
@@ -1332,10 +1327,10 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1332
1327
|
_: 1
|
|
1333
1328
|
}));
|
|
1334
1329
|
}
|
|
1335
|
-
}),
|
|
1330
|
+
}), lo = /* @__PURE__ */ g(ao, [["__scopeId", "data-v-1436aa9f"]]), co = { key: 0 }, io = {
|
|
1336
1331
|
key: 0,
|
|
1337
1332
|
class: "t-checkbox-label"
|
|
1338
|
-
},
|
|
1333
|
+
}, uo = /* @__PURE__ */ h({
|
|
1339
1334
|
__name: "t-checkbox",
|
|
1340
1335
|
props: {
|
|
1341
1336
|
label: { default: "" },
|
|
@@ -1371,17 +1366,17 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1371
1366
|
$("div", {
|
|
1372
1367
|
class: S(`t-checkbox-${a.type}`)
|
|
1373
1368
|
}, [
|
|
1374
|
-
a.type == "radio" ? (c(), p("div",
|
|
1369
|
+
a.type == "radio" ? (c(), p("div", co)) : I("", !0),
|
|
1375
1370
|
a.type == "check" ? b(a.$slots, "icon", { key: 1 }, () => [
|
|
1376
1371
|
f[0] || (f[0] = $("i", { class: "ri-check-line" }, null, -1))
|
|
1377
|
-
], !0) :
|
|
1372
|
+
], !0) : I("", !0)
|
|
1378
1373
|
], 2),
|
|
1379
1374
|
b(a.$slots, "label", {}, () => [
|
|
1380
|
-
a.label ? (c(), p("span",
|
|
1375
|
+
a.label ? (c(), p("span", io, R(t.label), 1)) : I("", !0)
|
|
1381
1376
|
], !0)
|
|
1382
1377
|
], 6));
|
|
1383
1378
|
}
|
|
1384
|
-
}),
|
|
1379
|
+
}), po = /* @__PURE__ */ g(uo, [["__scopeId", "data-v-0e13abc3"]]), fo = /* @__PURE__ */ h({
|
|
1385
1380
|
__name: "t-keyboard-space",
|
|
1386
1381
|
setup(e) {
|
|
1387
1382
|
const { height: o } = ve();
|
|
@@ -1390,7 +1385,7 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1390
1385
|
style: x({ "--height": A(o) + "px" })
|
|
1391
1386
|
}, null, 4));
|
|
1392
1387
|
}
|
|
1393
|
-
}),
|
|
1388
|
+
}), mo = /* @__PURE__ */ g(fo, [["__scopeId", "data-v-4b06018d"]]), vo = /* @__PURE__ */ h({
|
|
1394
1389
|
__name: "t-skeleton",
|
|
1395
1390
|
props: {
|
|
1396
1391
|
width: { default: "100%" },
|
|
@@ -1409,7 +1404,7 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1409
1404
|
style: x(t.value)
|
|
1410
1405
|
}, null, 4));
|
|
1411
1406
|
}
|
|
1412
|
-
}),
|
|
1407
|
+
}), yo = /* @__PURE__ */ g(vo, [["__scopeId", "data-v-877bbdb5"]]), _o = /* @__PURE__ */ h({
|
|
1413
1408
|
__name: "t-ripple",
|
|
1414
1409
|
props: {
|
|
1415
1410
|
color: { default: "primary" }
|
|
@@ -1430,20 +1425,20 @@ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
|
|
|
1430
1425
|
style: x(t.value)
|
|
1431
1426
|
}, null, 4));
|
|
1432
1427
|
}
|
|
1433
|
-
}),
|
|
1428
|
+
}), go = /* @__PURE__ */ g(_o, [["__scopeId", "data-v-42cb3d71"]]), So = () => ({
|
|
1434
1429
|
install: (e) => {
|
|
1435
|
-
|
|
1430
|
+
Te(), e.component("t-app", Ie), e.component("t-screen", _e), e.component("t-swipe-screen", vt), e.component("t-cable", rt), e.component("t-toolbar", _t), e.component("t-content", ye), e.component("t-card", nt), e.component("t-refresher", ut), e.component("t-button", Q), e.component("t-back-button", bt), e.component("t-present", L), e.component("t-text", oe), e.component("t-sheet", wt), e.component("t-gesture-indicator", ge), e.component("t-input", zt), e.component("t-textarea", Et), e.component("t-rich-text", Rt), e.component("t-grid", Ot), e.component("t-grid-item", Lt), e.component("t-divider", Ht), e.component("t-toggle-password", Gt), e.component("t-loading-icon", J), e.component("t-alert", pe), e.component("t-avatar", jt), e.component("t-collapse", Yt), e.component("t-toast", me), e.component("t-switch", to), e.component("t-tab", so), e.component("t-tabs", no), e.component("t-loading-app", lo), e.component("t-checkbox", po), e.component("t-keyboard-space", mo), e.component("t-skeleton", yo), e.component("t-ripple", go);
|
|
1436
1431
|
}
|
|
1437
1432
|
});
|
|
1438
1433
|
export {
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1434
|
+
xe as blurCurrentActive,
|
|
1435
|
+
wo as createAction,
|
|
1436
|
+
$o as createAlert,
|
|
1437
|
+
xo as createLoading,
|
|
1438
|
+
To as createToast,
|
|
1439
|
+
So as createToife,
|
|
1440
|
+
we as isFormElement,
|
|
1441
|
+
He as presentController,
|
|
1447
1442
|
T as screenController,
|
|
1448
1443
|
ve as useKeyboard
|
|
1449
1444
|
};
|