@toife/vue 1.3.3 → 1.3.4
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/t-tabs.vue.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +226 -228
- 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 u, renderSlot as g, defineComponent as h, ref as m, computed as w, reactive as
|
|
1
|
+
import { createElementBlock as p, openBlock as u, renderSlot as g, defineComponent as h, ref as m, computed as w, reactive as ce, watch as X, onMounted as G, Fragment as N, withDirectives as W, createCommentVNode as E, normalizeStyle as T, normalizeClass as S, vShow as H, createElementVNode as k, createVNode as U, createBlock as V, withCtx as P, toDisplayString as A, renderList as F, createTextVNode as q, createApp as j, h as K, provide as ie, unref as C, onUnmounted as se, resolveDynamicComponent as be, markRaw as he, inject as ue, useAttrs as ke, nextTick as ae } from "vue";
|
|
2
2
|
import { gesture as re } from "@toife/gesture";
|
|
3
|
-
import { useRouter as
|
|
4
|
-
const
|
|
3
|
+
import { useRouter as de, useRoute as $e } from "vue-router";
|
|
4
|
+
const we = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isContentEditable), Te = () => {
|
|
5
5
|
const e = document.activeElement;
|
|
6
6
|
e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable) && e.blur();
|
|
7
|
-
},
|
|
7
|
+
}, xe = () => {
|
|
8
8
|
document.addEventListener("contextmenu", (e) => e.preventDefault()), document.addEventListener("selectstart", (e) => e.preventDefault()), document.addEventListener("pointerup", (e) => {
|
|
9
|
-
|
|
9
|
+
!we(e.target) && Te();
|
|
10
10
|
});
|
|
11
11
|
}, v = (e, t) => {
|
|
12
12
|
const o = e.__vccOpts || e;
|
|
13
13
|
for (const [s, r] of t)
|
|
14
14
|
o[s] = r;
|
|
15
15
|
return o;
|
|
16
|
-
},
|
|
17
|
-
function
|
|
18
|
-
return u(), p("div",
|
|
16
|
+
}, Se = {}, ze = { class: "t-app" };
|
|
17
|
+
function Ie(e, t) {
|
|
18
|
+
return u(), p("div", ze, [
|
|
19
19
|
g(e.$slots, "default")
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ h({
|
|
23
23
|
__name: "t-present",
|
|
24
24
|
props: {
|
|
25
25
|
keepalive: { type: Boolean, default: !0 },
|
|
@@ -31,14 +31,14 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["dismiss"],
|
|
33
33
|
setup(e, { expose: t, emit: o }) {
|
|
34
|
-
const s = m(0), r = m(!1), l = m(), d = m(), n = e, c = o, i = w(() => r.value || n.keepalive),
|
|
34
|
+
const s = m(0), r = m(!1), l = m(), d = m(), n = e, c = o, i = w(() => r.value || n.keepalive), y = 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
|
}), a = (f) => {
|
|
40
|
-
n.backdrop ? f?.backdropOpacity && (
|
|
41
|
-
},
|
|
40
|
+
n.backdrop ? f?.backdropOpacity && (y["--t-present-backdrop-opacity"] = f.backdropOpacity) : y["--t-present-backdrop-opacity"] = "0", f?.transition && (y["--t-present-transition"] = f.transition, y["--t-present-transition"] = f.transition), f?.contentTransform && (y["--t-present-content-transform"] = f.contentTransform), f?.contentOpacity && (y["--t-present-content-opacity"] = f.contentOpacity);
|
|
41
|
+
}, _ = () => {
|
|
42
42
|
a({
|
|
43
43
|
contentTransform: "0px",
|
|
44
44
|
transition: "0.2s",
|
|
@@ -55,28 +55,28 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
X(() => n.visible, () => {
|
|
58
|
-
n.visible ? (r.value = !0, s.value =
|
|
59
|
-
|
|
58
|
+
n.visible ? (r.value = !0, s.value = He.getNewIndex(), setTimeout(() => {
|
|
59
|
+
_();
|
|
60
60
|
}, 50)) : (b(), setTimeout(() => {
|
|
61
61
|
r.value = !1;
|
|
62
62
|
}, 200));
|
|
63
63
|
}), t({
|
|
64
64
|
render: a,
|
|
65
|
-
open:
|
|
65
|
+
open: _,
|
|
66
66
|
close: b
|
|
67
67
|
});
|
|
68
68
|
const $ = (f) => {
|
|
69
69
|
f.preventDefault(), c("dismiss", "backdrop");
|
|
70
70
|
};
|
|
71
71
|
return G(() => {
|
|
72
|
-
n.visible ?
|
|
72
|
+
n.visible ? _() : b();
|
|
73
73
|
}), (f, O) => (u(), p(N, null, [
|
|
74
74
|
i.value ? W((u(), p("div", {
|
|
75
75
|
key: 0,
|
|
76
76
|
class: S(["t-present", [{ [f.placement]: !0 }, n.class]]),
|
|
77
77
|
ref_key: "present",
|
|
78
78
|
ref: d,
|
|
79
|
-
style: T([
|
|
79
|
+
style: T([y, { zIndex: s.value }, n.style])
|
|
80
80
|
}, [
|
|
81
81
|
g(f.$slots, "default", {}, void 0, !0)
|
|
82
82
|
], 6)), [
|
|
@@ -88,13 +88,13 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
88
88
|
onClick: $,
|
|
89
89
|
ref_key: "backdrop",
|
|
90
90
|
ref: l,
|
|
91
|
-
style: T([
|
|
91
|
+
style: T([y, { zIndex: s.value - 1 }, n.style])
|
|
92
92
|
}, null, 4)), [
|
|
93
93
|
[H, r.value]
|
|
94
94
|
]) : E("", !0)
|
|
95
95
|
], 64));
|
|
96
96
|
}
|
|
97
|
-
}), M = /* @__PURE__ */ v(
|
|
97
|
+
}), M = /* @__PURE__ */ v(Be, [["__scopeId", "data-v-1b25059f"]]), Ve = /* @__PURE__ */ h({
|
|
98
98
|
__name: "t-loading-icon",
|
|
99
99
|
props: {
|
|
100
100
|
size: {
|
|
@@ -118,10 +118,10 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
118
118
|
"aria-label": "Loading..."
|
|
119
119
|
}, null, 4));
|
|
120
120
|
}
|
|
121
|
-
}), J = /* @__PURE__ */ v(
|
|
121
|
+
}), J = /* @__PURE__ */ v(Ve, [["__scopeId", "data-v-7c463303"]]), Ce = { 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 },
|
|
@@ -183,7 +183,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
183
183
|
], 512), [
|
|
184
184
|
[H, !t.loading]
|
|
185
185
|
]),
|
|
186
|
-
t.loading ? (u(), p("span",
|
|
186
|
+
t.loading ? (u(), p("span", Pe, [
|
|
187
187
|
U(J, {
|
|
188
188
|
color: "var(--color)",
|
|
189
189
|
type: t.loadingType
|
|
@@ -191,10 +191,10 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
191
191
|
])) : E("", !0)
|
|
192
192
|
], 6));
|
|
193
193
|
}
|
|
194
|
-
}), Q = /* @__PURE__ */ v(
|
|
194
|
+
}), Q = /* @__PURE__ */ v(Re, [["__scopeId", "data-v-185a9e49"]]), Ae = {
|
|
195
195
|
key: 0,
|
|
196
196
|
class: "t-alert-header"
|
|
197
|
-
},
|
|
197
|
+
}, De = { class: "t-alert-content" }, Xe = { 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__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
208
208
|
r.value = !0;
|
|
209
209
|
}, i = (a) => {
|
|
210
210
|
r.value = !1, a.handler && a.handler(), l("dismiss", "choose", a?.data);
|
|
211
|
-
},
|
|
211
|
+
}, y = (a) => {
|
|
212
212
|
s.dismiss && s.dismiss.includes(a) ? (r.value = !1, l("dismiss", a)) : a == "backdrop" && (n.value = !0, setTimeout(() => {
|
|
213
213
|
n.value = !1;
|
|
214
214
|
}, 300));
|
|
215
215
|
};
|
|
216
216
|
return t({
|
|
217
217
|
open: c
|
|
218
|
-
}), (a,
|
|
218
|
+
}), (a, _) => (u(), V(M, {
|
|
219
219
|
placement: "center",
|
|
220
220
|
backdrop: !0,
|
|
221
221
|
keepalive: !1,
|
|
222
222
|
visible: r.value,
|
|
223
|
-
onDismiss:
|
|
223
|
+
onDismiss: y
|
|
224
224
|
}, {
|
|
225
225
|
default: P(() => [
|
|
226
226
|
k("div", {
|
|
@@ -229,20 +229,20 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
229
229
|
ref: d
|
|
230
230
|
}, [
|
|
231
231
|
g(a.$slots, "header", {}, () => [
|
|
232
|
-
s.title ? (u(), p("div", Ae,
|
|
232
|
+
s.title ? (u(), p("div", Ae, A(s.title), 1)) : E("", !0)
|
|
233
233
|
], !0),
|
|
234
234
|
g(a.$slots, "content", {}, () => [
|
|
235
|
-
k("div",
|
|
235
|
+
k("div", De, A(s.message), 1)
|
|
236
236
|
], !0),
|
|
237
237
|
g(a.$slots, "footer", {}, () => [
|
|
238
|
-
k("div",
|
|
239
|
-
(u(!0), p(N, null, F(s.actions, (b) => (u(),
|
|
238
|
+
k("div", Xe, [
|
|
239
|
+
(u(!0), p(N, null, F(s.actions, (b) => (u(), V(Q, {
|
|
240
240
|
color: b.color,
|
|
241
241
|
variant: b.variant,
|
|
242
242
|
onClick: ($) => i(b)
|
|
243
243
|
}, {
|
|
244
244
|
default: P(() => [
|
|
245
|
-
q(
|
|
245
|
+
q(A(b.text), 1)
|
|
246
246
|
]),
|
|
247
247
|
_: 2
|
|
248
248
|
}, 1032, ["color", "variant", "onClick"]))), 256))
|
|
@@ -253,7 +253,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
253
253
|
_: 3
|
|
254
254
|
}, 8, ["visible"]));
|
|
255
255
|
}
|
|
256
|
-
}),
|
|
256
|
+
}), pe = /* @__PURE__ */ v(Oe, [["__scopeId", "data-v-05d0c578"]]), $o = (e = {}) => ({
|
|
257
257
|
open() {
|
|
258
258
|
return new Promise((t) => {
|
|
259
259
|
let o = document.body.querySelector(".t-app");
|
|
@@ -262,7 +262,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
262
262
|
o.appendChild(s);
|
|
263
263
|
const l = j({
|
|
264
264
|
render() {
|
|
265
|
-
return K(
|
|
265
|
+
return K(pe, {
|
|
266
266
|
...e,
|
|
267
267
|
ref: r,
|
|
268
268
|
onDismiss: (d, n) => {
|
|
@@ -278,7 +278,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
278
278
|
}, 50);
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
|
-
}),
|
|
281
|
+
}), Ne = /* @__PURE__ */ h({
|
|
282
282
|
__name: "t-action",
|
|
283
283
|
props: {
|
|
284
284
|
actions: {},
|
|
@@ -291,7 +291,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
291
291
|
r.value = !0;
|
|
292
292
|
}, i = (a) => {
|
|
293
293
|
r.value = !1, a.handler && a.handler(), l("dismiss", "choose", a?.data);
|
|
294
|
-
},
|
|
294
|
+
}, y = (a) => {
|
|
295
295
|
s.dismiss && s.dismiss.includes(a) ? (r.value = !1, l("dismiss", a)) : a == "backdrop" && (n.value = !0, setTimeout(() => {
|
|
296
296
|
n.value = !1;
|
|
297
297
|
}, 300));
|
|
@@ -301,12 +301,12 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
301
301
|
}), t({
|
|
302
302
|
open: c,
|
|
303
303
|
close
|
|
304
|
-
}), (a,
|
|
304
|
+
}), (a, _) => (u(), V(M, {
|
|
305
305
|
placement: "bottom",
|
|
306
306
|
backdrop: !0,
|
|
307
307
|
keepalive: !1,
|
|
308
308
|
visible: r.value,
|
|
309
|
-
onDismiss:
|
|
309
|
+
onDismiss: y
|
|
310
310
|
}, {
|
|
311
311
|
default: P(() => [
|
|
312
312
|
k("div", {
|
|
@@ -315,7 +315,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
315
315
|
ref: d
|
|
316
316
|
}, [
|
|
317
317
|
(u(!0), p(N, null, F(s.actions, (b) => (u(), p("div", null, [
|
|
318
|
-
(u(!0), p(N, null, F(b, ($) => (u(),
|
|
318
|
+
(u(!0), p(N, null, F(b, ($) => (u(), V(Q, {
|
|
319
319
|
color: $.color,
|
|
320
320
|
size: $.size,
|
|
321
321
|
variant: $.variant,
|
|
@@ -323,7 +323,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
323
323
|
block: ""
|
|
324
324
|
}, {
|
|
325
325
|
default: P(() => [
|
|
326
|
-
q(
|
|
326
|
+
q(A($.text), 1)
|
|
327
327
|
]),
|
|
328
328
|
_: 2
|
|
329
329
|
}, 1032, ["color", "size", "variant", "onClick"]))), 256))
|
|
@@ -333,7 +333,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
333
333
|
_: 1
|
|
334
334
|
}, 8, ["visible"]));
|
|
335
335
|
}
|
|
336
|
-
}),
|
|
336
|
+
}), qe = /* @__PURE__ */ v(Ne, [["__scopeId", "data-v-844fb240"]]), wo = (e = {}) => ({
|
|
337
337
|
open() {
|
|
338
338
|
return new Promise((t) => {
|
|
339
339
|
let o = document.body.querySelector(".t-app");
|
|
@@ -342,7 +342,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
342
342
|
o.appendChild(s);
|
|
343
343
|
const l = j({
|
|
344
344
|
render() {
|
|
345
|
-
return K(
|
|
345
|
+
return K(qe, {
|
|
346
346
|
...e,
|
|
347
347
|
ref: r,
|
|
348
348
|
onDismiss: (d, n) => {
|
|
@@ -358,7 +358,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
358
358
|
}, 50);
|
|
359
359
|
});
|
|
360
360
|
}
|
|
361
|
-
}),
|
|
361
|
+
}), Le = { class: "t-loading" }, Me = /* @__PURE__ */ h({
|
|
362
362
|
__name: "t-loading",
|
|
363
363
|
props: {
|
|
364
364
|
type: { default: "spinner" }
|
|
@@ -373,14 +373,14 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
373
373
|
close: () => {
|
|
374
374
|
r.value = !1;
|
|
375
375
|
}
|
|
376
|
-
}), (n, c) => (u(),
|
|
376
|
+
}), (n, c) => (u(), V(M, {
|
|
377
377
|
placement: "center",
|
|
378
378
|
backdrop: !0,
|
|
379
379
|
keepalive: !1,
|
|
380
380
|
visible: r.value
|
|
381
381
|
}, {
|
|
382
382
|
default: P(() => [
|
|
383
|
-
k("div",
|
|
383
|
+
k("div", Le, [
|
|
384
384
|
g(n.$slots, "default", {}, () => [
|
|
385
385
|
U(J, {
|
|
386
386
|
type: s.type
|
|
@@ -391,7 +391,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
391
391
|
_: 3
|
|
392
392
|
}, 8, ["visible"]));
|
|
393
393
|
}
|
|
394
|
-
}),
|
|
394
|
+
}), We = /* @__PURE__ */ v(Me, [["__scopeId", "data-v-8f84c14e"]]), To = (e = {}) => {
|
|
395
395
|
const t = m(), o = document.body.querySelector(".t-app");
|
|
396
396
|
let s = null, r = null;
|
|
397
397
|
return {
|
|
@@ -399,7 +399,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
399
399
|
return new Promise((l) => {
|
|
400
400
|
o && (r = document.createElement("div"), o.appendChild(r), s = j({
|
|
401
401
|
render() {
|
|
402
|
-
return K(
|
|
402
|
+
return K(We, {
|
|
403
403
|
...e,
|
|
404
404
|
ref: t
|
|
405
405
|
});
|
|
@@ -417,11 +417,11 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
417
417
|
});
|
|
418
418
|
}
|
|
419
419
|
};
|
|
420
|
-
},
|
|
420
|
+
}, le = m(1e3), He = {
|
|
421
421
|
getNewIndex() {
|
|
422
|
-
return
|
|
422
|
+
return le.value += 2, le.value;
|
|
423
423
|
}
|
|
424
|
-
}, D =
|
|
424
|
+
}, D = ce([]), Z = m(!0), I = m(!1), R = m(-1), z = w(() => D[R.value]), L = w(() => D[R.value + 1] || void 0), B = w(() => D[D.length - 2]), fe = w(() => !I.value && Z.value && B.value), Y = {
|
|
425
425
|
reset() {
|
|
426
426
|
I.value = !0;
|
|
427
427
|
const e = z.value.target, t = B.value.target;
|
|
@@ -430,26 +430,26 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
430
430
|
}, 400);
|
|
431
431
|
},
|
|
432
432
|
move(e) {
|
|
433
|
-
if (!
|
|
433
|
+
if (!fe.value) return;
|
|
434
434
|
const t = window.innerWidth, o = e / t * 100, s = z.value.target, r = B.value.target;
|
|
435
435
|
e > 15 && e <= t && (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 * ${o}))) scale(${0.5 + 0.5 / 100 * o}) perspective(var(--t-app-width)) rotateY(${30 - 30 / 100 * o}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * o}`));
|
|
436
436
|
},
|
|
437
437
|
back(e) {
|
|
438
438
|
B.value && (z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", B.value.target.style.transition = "transform 0.35s ease", B.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"), I.value = !0, setTimeout(() => {
|
|
439
|
-
ne(), I.value = !1,
|
|
439
|
+
ne(), I.value = !1, R.value -= 1, e && e();
|
|
440
440
|
}, 400));
|
|
441
441
|
},
|
|
442
442
|
next(e) {
|
|
443
443
|
if (!L.value) return;
|
|
444
|
-
if (
|
|
445
|
-
|
|
444
|
+
if (R.value == -1) {
|
|
445
|
+
R.value += 1, e && e();
|
|
446
446
|
return;
|
|
447
447
|
}
|
|
448
448
|
I.value = !0;
|
|
449
449
|
let t = L.value.target;
|
|
450
450
|
t.style.transform = "translateX(var(--t-app-width))", t.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
|
|
451
451
|
t.style.transition = "transform 0.35s ease", t.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), z.value && (z.value.target.style.transitionOrigin = "left center", z.value.target.style.transition = "transform 0.35s ease", z.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
|
-
I.value = !1,
|
|
452
|
+
I.value = !1, R.value += 1, e && e();
|
|
453
453
|
}, 400);
|
|
454
454
|
}, 100);
|
|
455
455
|
}
|
|
@@ -467,62 +467,62 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
467
467
|
},
|
|
468
468
|
back(e) {
|
|
469
469
|
B.value && (z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", B.value.target.style.transition = "transform 0.35s ease", B.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"), I.value = !0, setTimeout(() => {
|
|
470
|
-
ne(), I.value = !1,
|
|
470
|
+
ne(), I.value = !1, R.value -= 1, e && e();
|
|
471
471
|
}, 400));
|
|
472
472
|
},
|
|
473
473
|
next(e) {
|
|
474
474
|
if (!L.value) return;
|
|
475
|
-
if (
|
|
476
|
-
|
|
475
|
+
if (R.value == -1) {
|
|
476
|
+
R.value += 1, e && e();
|
|
477
477
|
return;
|
|
478
478
|
}
|
|
479
479
|
I.value = !0;
|
|
480
480
|
let t = L.value.target;
|
|
481
481
|
t.style.transform = "translateX(var(--t-app-width))", t.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
|
|
482
482
|
t.style.transition = "transform 0.35s ease", t.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), z.value && (z.value.target.style.transitionOrigin = "left center", z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1))"), setTimeout(() => {
|
|
483
|
-
I.value = !1,
|
|
483
|
+
I.value = !1, R.value += 1, e && e();
|
|
484
484
|
}, 400);
|
|
485
485
|
}, 100);
|
|
486
486
|
}
|
|
487
|
-
},
|
|
487
|
+
}, Fe = (e) => {
|
|
488
488
|
D.push(e);
|
|
489
|
-
},
|
|
489
|
+
}, Ge = (e, t) => {
|
|
490
490
|
D[e].target = t;
|
|
491
491
|
}, ne = (e) => {
|
|
492
492
|
e || D.pop();
|
|
493
|
-
}, Ge = () => {
|
|
494
|
-
D.splice(0, D.length);
|
|
495
493
|
}, Ue = () => {
|
|
496
|
-
|
|
494
|
+
D.splice(0, D.length);
|
|
497
495
|
}, je = () => {
|
|
496
|
+
Z.value = !1;
|
|
497
|
+
}, Ke = () => {
|
|
498
498
|
Z.value = !0;
|
|
499
|
-
}, Ke = (e, t) => {
|
|
500
|
-
e == "scale" && Y.next(t), e == "transform" && ee.next(t);
|
|
501
499
|
}, Je = (e, t) => {
|
|
502
|
-
e == "scale" && Y.
|
|
500
|
+
e == "scale" && Y.next(t), e == "transform" && ee.next(t);
|
|
503
501
|
}, Qe = (e, t) => {
|
|
502
|
+
e == "scale" && Y.back(t), e == "transform" && ee.back(t);
|
|
503
|
+
}, Ze = (e, t) => {
|
|
504
504
|
e == "scale" && Y.move(t), e == "transform" && ee.move(t);
|
|
505
|
-
},
|
|
505
|
+
}, Ye = (e) => {
|
|
506
506
|
e == "scale" && Y.reset(), e == "transform" && ee.reset();
|
|
507
507
|
}, x = {
|
|
508
508
|
isBusy: I,
|
|
509
|
-
isSwipeable:
|
|
510
|
-
reset:
|
|
511
|
-
next:
|
|
512
|
-
back:
|
|
513
|
-
move:
|
|
509
|
+
isSwipeable: fe,
|
|
510
|
+
reset: Ye,
|
|
511
|
+
next: Je,
|
|
512
|
+
back: Qe,
|
|
513
|
+
move: Ze,
|
|
514
514
|
screens: D,
|
|
515
|
-
addScreen:
|
|
516
|
-
addScreenEl:
|
|
515
|
+
addScreen: Fe,
|
|
516
|
+
addScreenEl: Ge,
|
|
517
517
|
removeScreen: ne,
|
|
518
|
-
removeAllScreen:
|
|
519
|
-
lockSwipe:
|
|
520
|
-
unlockSwipe:
|
|
518
|
+
removeAllScreen: Ue,
|
|
519
|
+
lockSwipe: je,
|
|
520
|
+
unlockSwipe: Ke,
|
|
521
521
|
swipeable: Z,
|
|
522
522
|
currentScreen: z,
|
|
523
523
|
lastScreen: B,
|
|
524
524
|
nextScreen: L
|
|
525
|
-
},
|
|
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__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
546
546
|
X(() => s.visible, (a) => {
|
|
547
547
|
a ? c() : i();
|
|
548
548
|
});
|
|
549
|
-
const
|
|
549
|
+
const y = w(() => {
|
|
550
550
|
let a;
|
|
551
551
|
return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? a = {
|
|
552
552
|
"--border": "none",
|
|
@@ -589,17 +589,17 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
589
589
|
return t({
|
|
590
590
|
open: c,
|
|
591
591
|
close: i
|
|
592
|
-
}), (a,
|
|
592
|
+
}), (a, _) => d.value ? (u(), p("div", {
|
|
593
593
|
key: 0,
|
|
594
594
|
class: S(["t-toast", { [s.placement]: !0, open: l.value, closing: n.value }]),
|
|
595
|
-
style: T({ "--space": s.space, ...
|
|
595
|
+
style: T({ "--space": s.space, ...y.value })
|
|
596
596
|
}, [
|
|
597
597
|
g(a.$slots, "content", {}, () => [
|
|
598
|
-
k("div",
|
|
598
|
+
k("div", et, A(s.message), 1)
|
|
599
599
|
], !0)
|
|
600
600
|
], 6)) : E("", !0);
|
|
601
601
|
}
|
|
602
|
-
}),
|
|
602
|
+
}), me = /* @__PURE__ */ v(tt, [["__scopeId", "data-v-2802d43f"]]), xo = (e = {}) => ({
|
|
603
603
|
open() {
|
|
604
604
|
let t = document.body.querySelector(".t-app");
|
|
605
605
|
if (!t) return;
|
|
@@ -607,7 +607,7 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
607
607
|
t.appendChild(o);
|
|
608
608
|
const r = j({
|
|
609
609
|
render() {
|
|
610
|
-
return K(
|
|
610
|
+
return K(me, {
|
|
611
611
|
...e,
|
|
612
612
|
ref: s,
|
|
613
613
|
onDismiss: () => {
|
|
@@ -624,30 +624,30 @@ const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
|
624
624
|
}, e.duration + 10);
|
|
625
625
|
}, 50);
|
|
626
626
|
}
|
|
627
|
-
}),
|
|
628
|
-
function
|
|
627
|
+
}), ot = m(0);
|
|
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 },
|
|
637
637
|
placement: { default: "bottom" }
|
|
638
638
|
},
|
|
639
639
|
setup(e) {
|
|
640
|
-
const t = e, { height: o } =
|
|
641
|
-
return
|
|
640
|
+
const t = e, { height: o } = ve();
|
|
641
|
+
return ie("cableState", {
|
|
642
642
|
placement: t.placement
|
|
643
643
|
}), (s, r) => (u(), p("div", {
|
|
644
|
-
class: S(["t-cable", { keyboard: t.keyboard &&
|
|
645
|
-
style: T({ "--t-keyboard-height":
|
|
644
|
+
class: S(["t-cable", { keyboard: t.keyboard && C(o) > 0, [t.placement]: !0 }]),
|
|
645
|
+
style: T({ "--t-keyboard-height": C(o) + "px", "--t-keyboard-transition": C(o) > 0 ? "0.3s" : "0.1s" })
|
|
646
646
|
}, [
|
|
647
647
|
g(s.$slots, "default", {}, void 0, !0)
|
|
648
648
|
], 6));
|
|
649
649
|
}
|
|
650
|
-
}),
|
|
650
|
+
}), rt = /* @__PURE__ */ v(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 ot = /* @__PURE__ */ h({
|
|
|
670
670
|
g(s.$slots, "default")
|
|
671
671
|
], 4));
|
|
672
672
|
}
|
|
673
|
-
}),
|
|
674
|
-
function
|
|
675
|
-
return u(), p("div",
|
|
673
|
+
}), at = {}, lt = { class: "t-content" };
|
|
674
|
+
function ct(e, t) {
|
|
675
|
+
return u(), p("div", lt, [
|
|
676
676
|
g(e.$slots, "default", {}, void 0, !0)
|
|
677
677
|
]);
|
|
678
678
|
}
|
|
679
|
-
const
|
|
679
|
+
const ye = /* @__PURE__ */ v(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 ve = /* @__PURE__ */ v(nt, [["render", lt], ["__scopeId", "data-v-af750e89
|
|
|
689
689
|
let n, c = !1;
|
|
690
690
|
const i = () => {
|
|
691
691
|
l.value = !1, r.value = 0, n && n.cancel(), c = !1;
|
|
692
|
-
},
|
|
692
|
+
}, y = () => {
|
|
693
693
|
c = !0, l.value = !0, r.value = s.threshold, o("refresh", i);
|
|
694
694
|
}, a = () => {
|
|
695
695
|
r.value = 0, l.value = !1, c = !1, o("cancel");
|
|
696
696
|
};
|
|
697
697
|
return X(() => d.value, () => {
|
|
698
698
|
n && n.destroy();
|
|
699
|
-
let
|
|
700
|
-
|
|
699
|
+
let _ = d.value.closest(".t-content");
|
|
700
|
+
_ && (n = re(_, {
|
|
701
701
|
options: {
|
|
702
702
|
minDist: 60
|
|
703
703
|
},
|
|
@@ -707,14 +707,14 @@ const ve = /* @__PURE__ */ v(nt, [["render", lt], ["__scopeId", "data-v-af750e89
|
|
|
707
707
|
move({ deltaY: b, initialDirection: $ }) {
|
|
708
708
|
if (l.value || c || $ != "down") return;
|
|
709
709
|
if (s.variant == "max" && b >= s.threshold) {
|
|
710
|
-
|
|
710
|
+
y();
|
|
711
711
|
return;
|
|
712
712
|
}
|
|
713
713
|
const f = b < 0 ? 0 : b;
|
|
714
714
|
r.value = f, o("move", f);
|
|
715
715
|
},
|
|
716
716
|
up({ deltaY: b, initialDirection: $ }) {
|
|
717
|
-
l.value || c || $ != "down" || (s.variant == "up" && b >= s.threshold ?
|
|
717
|
+
l.value || c || $ != "down" || (s.variant == "up" && b >= s.threshold ? y() : a());
|
|
718
718
|
},
|
|
719
719
|
cancel() {
|
|
720
720
|
l.value || c || a();
|
|
@@ -724,12 +724,12 @@ const ve = /* @__PURE__ */ v(nt, [["render", lt], ["__scopeId", "data-v-af750e89
|
|
|
724
724
|
}));
|
|
725
725
|
}), se(() => {
|
|
726
726
|
n && n.destroy();
|
|
727
|
-
}), (
|
|
728
|
-
class: S(["t-refresher", { safe:
|
|
727
|
+
}), (_, b) => W((u(), p("div", {
|
|
728
|
+
class: S(["t-refresher", { safe: _.safe }]),
|
|
729
729
|
ref_key: "container",
|
|
730
730
|
ref: d
|
|
731
731
|
}, [
|
|
732
|
-
g(
|
|
732
|
+
g(_.$slots, "default", {
|
|
733
733
|
offset: r.value,
|
|
734
734
|
refreshing: l.value
|
|
735
735
|
}, void 0, !0)
|
|
@@ -737,13 +737,13 @@ const ve = /* @__PURE__ */ v(nt, [["render", lt], ["__scopeId", "data-v-af750e89
|
|
|
737
737
|
[H, r.value > 0]
|
|
738
738
|
]);
|
|
739
739
|
}
|
|
740
|
-
}),
|
|
741
|
-
function
|
|
742
|
-
return u(), p("div",
|
|
740
|
+
}), ut = /* @__PURE__ */ v(it, [["__scopeId", "data-v-1d52477a"]]), dt = {}, pt = { class: "t-screen" };
|
|
741
|
+
function ft(e, t) {
|
|
742
|
+
return u(), p("div", pt, [
|
|
743
743
|
g(e.$slots, "default", {}, void 0, !0)
|
|
744
744
|
]);
|
|
745
745
|
}
|
|
746
|
-
const _e = /* @__PURE__ */ v(
|
|
746
|
+
const _e = /* @__PURE__ */ v(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,21 +755,21 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
755
755
|
let o = {};
|
|
756
756
|
const s = t, r = e;
|
|
757
757
|
let l;
|
|
758
|
-
const d = r.router ||
|
|
758
|
+
const d = r.router || de(), n = r.route || $e(), c = d.getRoutes();
|
|
759
759
|
for (let a of c)
|
|
760
760
|
o[a.name] = a.component || a.components;
|
|
761
761
|
const i = (a) => {
|
|
762
762
|
a && x.addScreen({
|
|
763
763
|
name: a,
|
|
764
764
|
target: null,
|
|
765
|
-
component:
|
|
765
|
+
component: he(o[a] || null)
|
|
766
766
|
});
|
|
767
|
-
},
|
|
768
|
-
!
|
|
767
|
+
}, y = (a, _) => {
|
|
768
|
+
!_ || x.screens[a].target || (x.addScreenEl(a, _.$el), x.nextScreen && x.next(r.variant, () => {
|
|
769
769
|
s("change");
|
|
770
770
|
}));
|
|
771
771
|
};
|
|
772
|
-
return X(() => n.name, (a,
|
|
772
|
+
return X(() => n.name, (a, _) => {
|
|
773
773
|
a != x.currentScreen.value?.name && (x.lastScreen.value?.name == a ? x.back(r.variant, () => {
|
|
774
774
|
s("change");
|
|
775
775
|
}) : i(n.name));
|
|
@@ -781,11 +781,11 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
781
781
|
fast({ initialDirection: a }) {
|
|
782
782
|
x.lastScreen.value && a == "right" && d.back();
|
|
783
783
|
},
|
|
784
|
-
move({ deltaX: a, initialDirection:
|
|
785
|
-
|
|
784
|
+
move({ deltaX: a, initialDirection: _ }) {
|
|
785
|
+
_ == "right" && x.move(r.variant, a);
|
|
786
786
|
},
|
|
787
|
-
up({ deltaX: a, initialDirection:
|
|
788
|
-
if (
|
|
787
|
+
up({ deltaX: a, initialDirection: _ }) {
|
|
788
|
+
if (_ != "right") {
|
|
789
789
|
x.reset(r.variant);
|
|
790
790
|
return;
|
|
791
791
|
}
|
|
@@ -798,25 +798,25 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
798
798
|
});
|
|
799
799
|
}), se(() => {
|
|
800
800
|
l && l.destroy(), x.removeAllScreen();
|
|
801
|
-
}), (a,
|
|
802
|
-
(u(!0), p(N, null, F(
|
|
801
|
+
}), (a, _) => (u(), p(N, null, [
|
|
802
|
+
(u(!0), p(N, null, F(C(x).screens, (b, $) => (u(), V(_e, {
|
|
803
803
|
ref_for: !0,
|
|
804
|
-
ref: (f) =>
|
|
805
|
-
style: T({ zIndex: $ + ($ ==
|
|
804
|
+
ref: (f) => y($, f),
|
|
805
|
+
style: T({ zIndex: $ + ($ == C(x).screens.length - 1 ? 2 : 1) }),
|
|
806
806
|
key: $
|
|
807
807
|
}, {
|
|
808
808
|
default: P(() => [
|
|
809
|
-
(u(),
|
|
809
|
+
(u(), V(be(b.component.default)))
|
|
810
810
|
]),
|
|
811
811
|
_: 2
|
|
812
812
|
}, 1032, ["style"]))), 128)),
|
|
813
813
|
k("div", {
|
|
814
814
|
class: "t-swipe-backdrop",
|
|
815
|
-
style: T({ zIndex:
|
|
815
|
+
style: T({ zIndex: C(x).screens.length })
|
|
816
816
|
}, null, 4)
|
|
817
817
|
], 64));
|
|
818
818
|
}
|
|
819
|
-
}),
|
|
819
|
+
}), vt = /* @__PURE__ */ v(mt, [["__scopeId", "data-v-23e0cfda"]]), yt = /* @__PURE__ */ h({
|
|
820
820
|
__name: "t-toolbar",
|
|
821
821
|
props: {
|
|
822
822
|
placement: { default: null },
|
|
@@ -824,7 +824,7 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
824
824
|
size: { default: "50px" }
|
|
825
825
|
},
|
|
826
826
|
setup(e) {
|
|
827
|
-
const t = e, o =
|
|
827
|
+
const t = e, o = ue("cableState"), s = w(() => t?.placement || o?.placement);
|
|
828
828
|
return (r, l) => (u(), p("div", {
|
|
829
829
|
class: S(["t-toolbar", { [s.value]: !0, safe: t.safe }]),
|
|
830
830
|
style: T({ "--t-size-toolbar": t.size })
|
|
@@ -834,21 +834,21 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
834
834
|
])
|
|
835
835
|
], 6));
|
|
836
836
|
}
|
|
837
|
-
}), _t = /* @__PURE__ */ v(
|
|
837
|
+
}), _t = /* @__PURE__ */ v(yt, [["__scopeId", "data-v-1ee9866d"]]), gt = /* @__PURE__ */ h({
|
|
838
838
|
__name: "t-back-button",
|
|
839
839
|
props: {
|
|
840
840
|
to: {},
|
|
841
841
|
router: {}
|
|
842
842
|
},
|
|
843
843
|
setup(e) {
|
|
844
|
-
const t = e, o =
|
|
844
|
+
const t = e, o = ke(), s = t.router || de(), r = (l) => {
|
|
845
845
|
if (o.onBack) {
|
|
846
846
|
o.onBack(l);
|
|
847
847
|
return;
|
|
848
848
|
}
|
|
849
849
|
x.lastScreen.value ? s?.back?.() : t.to && s?.push?.(t.to);
|
|
850
850
|
};
|
|
851
|
-
return (l, d) => l.to ||
|
|
851
|
+
return (l, d) => l.to || C(x).lastScreen ? (u(), p("button", {
|
|
852
852
|
key: 0,
|
|
853
853
|
class: "t-back-button",
|
|
854
854
|
onClick: r
|
|
@@ -858,7 +858,7 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
858
858
|
], !0)
|
|
859
859
|
])) : E("", !0);
|
|
860
860
|
}
|
|
861
|
-
}),
|
|
861
|
+
}), bt = /* @__PURE__ */ v(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__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
879
879
|
g(s.$slots, "default", {}, void 0, !0)
|
|
880
880
|
], 4));
|
|
881
881
|
}
|
|
882
|
-
}), oe = /* @__PURE__ */ v(
|
|
882
|
+
}), oe = /* @__PURE__ */ v(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__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
889
889
|
class: S(["t-gesture-indicator", { [t.placement]: !0 }])
|
|
890
890
|
}, null, 2));
|
|
891
891
|
}
|
|
892
|
-
}),
|
|
892
|
+
}), ge = /* @__PURE__ */ v(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,7 +916,7 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
916
916
|
if (o.placement == "right") return "right";
|
|
917
917
|
}), i = (a) => {
|
|
918
918
|
s("dismiss", a);
|
|
919
|
-
},
|
|
919
|
+
}, y = () => {
|
|
920
920
|
d.value = !0, setTimeout(() => {
|
|
921
921
|
d.value = !1;
|
|
922
922
|
}, 300);
|
|
@@ -927,38 +927,38 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
927
927
|
options: {
|
|
928
928
|
minDist: 30
|
|
929
929
|
},
|
|
930
|
-
beforeEvent(
|
|
930
|
+
beforeEvent(_) {
|
|
931
931
|
return !(d.value || !o.gesture || o.placement == "center");
|
|
932
932
|
},
|
|
933
933
|
down() {
|
|
934
934
|
this.isMoving = !1;
|
|
935
935
|
},
|
|
936
|
-
fast({ initialDirection:
|
|
937
|
-
|
|
936
|
+
fast({ initialDirection: _ }) {
|
|
937
|
+
y(), _ == c.value ? s("dismiss", "gesture") : l.value.open();
|
|
938
938
|
},
|
|
939
|
-
move({ deltaY:
|
|
939
|
+
move({ deltaY: _, deltaX: b, initialDirection: $ }) {
|
|
940
940
|
if ($ != c.value) return;
|
|
941
941
|
let f = 0;
|
|
942
|
-
o.placement == "bottom" || o.placement == "top" ? f =
|
|
942
|
+
o.placement == "bottom" || o.placement == "top" ? f = _ : f = b, o.placement == "bottom" && (f = _ > 0 ? _ : 0), o.placement == "top" && (f = _ < 0 ? _ : 0), o.placement == "left" && (f = b < 0 ? b : 0), o.placement == "right" && (f = b > 0 ? b : 0), (o.placement == "bottom" && (f >= 10 || this.isMoving) || o.placement == "top" && (f <= -10 || this.isMoving) || o.placement == "left" && (f <= -10 || this.isMoving) || o.placement == "right" && (f >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
|
|
943
943
|
contentTransform: f + "px",
|
|
944
944
|
transition: "0s"
|
|
945
945
|
}));
|
|
946
946
|
},
|
|
947
|
-
up({ deltaY:
|
|
948
|
-
if (this.isMoving = !1,
|
|
947
|
+
up({ deltaY: _, deltaX: b, initialDirection: $ }) {
|
|
948
|
+
if (this.isMoving = !1, y(), $ != c.value) {
|
|
949
949
|
l.value.open();
|
|
950
950
|
return;
|
|
951
951
|
}
|
|
952
952
|
let f, O, te;
|
|
953
|
-
o.placement == "bottom" || o.placement == "top" ? (f = r.value.offsetHeight, te =
|
|
953
|
+
o.placement == "bottom" || o.placement == "top" ? (f = r.value.offsetHeight, te = _) : (f = r.value.offsetWidth, te = b), O = te / f * 100, O > 50 ? s("dismiss", "gesture") : l.value.open();
|
|
954
954
|
},
|
|
955
955
|
cancel() {
|
|
956
|
-
this.isMoving = !1,
|
|
956
|
+
this.isMoving = !1, y(), l.value.open();
|
|
957
957
|
}
|
|
958
958
|
}));
|
|
959
959
|
}), se(() => {
|
|
960
960
|
n && n.destroy();
|
|
961
|
-
}), (a,
|
|
961
|
+
}), (a, _) => (u(), V(M, {
|
|
962
962
|
ref_key: "present",
|
|
963
963
|
ref: l,
|
|
964
964
|
class: S(o.class),
|
|
@@ -970,7 +970,7 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
970
970
|
style: T(o.style)
|
|
971
971
|
}, {
|
|
972
972
|
default: P(() => [
|
|
973
|
-
o.gesture && o.indicator && o.placement != "center" ? (u(),
|
|
973
|
+
o.gesture && o.indicator && o.placement != "center" ? (u(), V(ge, {
|
|
974
974
|
key: 0,
|
|
975
975
|
placement: o.placement
|
|
976
976
|
}, null, 8, ["placement"])) : E("", !0),
|
|
@@ -986,7 +986,7 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
986
986
|
_: 3
|
|
987
987
|
}, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
|
|
988
988
|
}
|
|
989
|
-
}),
|
|
989
|
+
}), wt = /* @__PURE__ */ v($t, [["__scopeId", "data-v-6f7063f0"]]), Tt = { class: "t-input-label" }, xt = { class: "t-input-content" }, St = ["type", "placeholder", "value"], zt = /* @__PURE__ */ h({
|
|
990
990
|
__name: "t-input",
|
|
991
991
|
props: {
|
|
992
992
|
size: { default: "standard" },
|
|
@@ -1008,12 +1008,12 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
1008
1008
|
}, c = () => {
|
|
1009
1009
|
r.value = !1;
|
|
1010
1010
|
};
|
|
1011
|
-
return (i,
|
|
1011
|
+
return (i, y) => (u(), p("div", {
|
|
1012
1012
|
class: S(["t-input", { rounded: i.rounded, ["size-" + i.size]: !0, ["variant-" + i.variant]: !0, focus: r.value, "has-value": l.value }])
|
|
1013
1013
|
}, [
|
|
1014
1014
|
k("label", null, [
|
|
1015
|
-
k("span",
|
|
1016
|
-
k("div",
|
|
1015
|
+
k("span", Tt, A(i.label), 1),
|
|
1016
|
+
k("div", xt, [
|
|
1017
1017
|
g(i.$slots, "start", {}, void 0, !0),
|
|
1018
1018
|
k("input", {
|
|
1019
1019
|
type: i.type,
|
|
@@ -1022,46 +1022,46 @@ const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
1022
1022
|
onInput: d,
|
|
1023
1023
|
onFocus: n,
|
|
1024
1024
|
onBlur: c
|
|
1025
|
-
}, null, 40,
|
|
1025
|
+
}, null, 40, St),
|
|
1026
1026
|
g(i.$slots, "end", {}, void 0, !0)
|
|
1027
1027
|
])
|
|
1028
1028
|
]),
|
|
1029
|
-
i.error ? (u(),
|
|
1029
|
+
i.error ? (u(), V(oe, {
|
|
1030
1030
|
key: 0,
|
|
1031
1031
|
color: "danger"
|
|
1032
1032
|
}, {
|
|
1033
1033
|
default: P(() => [
|
|
1034
|
-
q(
|
|
1034
|
+
q(A(i.error), 1)
|
|
1035
1035
|
]),
|
|
1036
1036
|
_: 1
|
|
1037
|
-
})) : i.help ? (u(),
|
|
1037
|
+
})) : i.help ? (u(), V(oe, {
|
|
1038
1038
|
key: 1,
|
|
1039
1039
|
color: "secondary"
|
|
1040
1040
|
}, {
|
|
1041
1041
|
default: P(() => [
|
|
1042
|
-
q(
|
|
1042
|
+
q(A(i.help), 1)
|
|
1043
1043
|
]),
|
|
1044
1044
|
_: 1
|
|
1045
1045
|
})) : E("", !0)
|
|
1046
1046
|
], 2));
|
|
1047
1047
|
}
|
|
1048
|
-
}),
|
|
1049
|
-
function
|
|
1048
|
+
}), It = /* @__PURE__ */ v(zt, [["__scopeId", "data-v-fd2173ab"]]), Et = {};
|
|
1049
|
+
function Bt(e, t) {
|
|
1050
1050
|
return u(), p("textarea");
|
|
1051
1051
|
}
|
|
1052
|
-
const
|
|
1053
|
-
function
|
|
1052
|
+
const Vt = /* @__PURE__ */ v(Et, [["render", Bt]]), Ct = {};
|
|
1053
|
+
function Pt(e, t) {
|
|
1054
1054
|
return u(), p("div");
|
|
1055
1055
|
}
|
|
1056
|
-
const
|
|
1057
|
-
function
|
|
1058
|
-
return u(), p("div",
|
|
1056
|
+
const Rt = /* @__PURE__ */ v(Ct, [["render", Pt]]), At = {}, Dt = { class: "t-grid" };
|
|
1057
|
+
function Xt(e, t) {
|
|
1058
|
+
return u(), p("div", Dt);
|
|
1059
1059
|
}
|
|
1060
|
-
const
|
|
1061
|
-
function
|
|
1062
|
-
return u(), p("div",
|
|
1060
|
+
const Ot = /* @__PURE__ */ v(At, [["render", Xt]]), Nt = {}, qt = { class: "t-grid-item" };
|
|
1061
|
+
function Lt(e, t) {
|
|
1062
|
+
return u(), p("div", qt);
|
|
1063
1063
|
}
|
|
1064
|
-
const
|
|
1064
|
+
const Mt = /* @__PURE__ */ v(Nt, [["render", Lt]]), Wt = /* @__PURE__ */ h({
|
|
1065
1065
|
__name: "t-divider",
|
|
1066
1066
|
props: {
|
|
1067
1067
|
direction: { default: "horizontal" }
|
|
@@ -1072,7 +1072,7 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1072
1072
|
class: S(["t-divider", { [t.direction]: !0 }])
|
|
1073
1073
|
}, null, 2));
|
|
1074
1074
|
}
|
|
1075
|
-
}),
|
|
1075
|
+
}), Ht = /* @__PURE__ */ v(Wt, [["__scopeId", "data-v-47ee8991"]]), Ft = /* @__PURE__ */ h({
|
|
1076
1076
|
__name: "t-toggle-password",
|
|
1077
1077
|
props: {
|
|
1078
1078
|
color: { default: "warning" }
|
|
@@ -1093,7 +1093,7 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1093
1093
|
let i = n();
|
|
1094
1094
|
i && (r.value = !r.value, r.value ? i.type = "text" : i.type = "password", s("change", r.value));
|
|
1095
1095
|
};
|
|
1096
|
-
return (i,
|
|
1096
|
+
return (i, y) => (u(), p("button", {
|
|
1097
1097
|
ref_key: "toggle",
|
|
1098
1098
|
ref: l,
|
|
1099
1099
|
class: "t-toggle-password",
|
|
@@ -1101,14 +1101,14 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1101
1101
|
onClick: c
|
|
1102
1102
|
}, [
|
|
1103
1103
|
r.value ? g(i.$slots, "on", { key: 0 }, () => [
|
|
1104
|
-
|
|
1104
|
+
y[0] || (y[0] = k("i", { class: "ri-eye-line" }, null, -1))
|
|
1105
1105
|
], !0) : E("", !0),
|
|
1106
1106
|
r.value ? E("", !0) : g(i.$slots, "off", { key: 1 }, () => [
|
|
1107
|
-
|
|
1107
|
+
y[1] || (y[1] = k("i", { class: "ri-eye-off-line" }, null, -1))
|
|
1108
1108
|
], !0)
|
|
1109
1109
|
], 4));
|
|
1110
1110
|
}
|
|
1111
|
-
}),
|
|
1111
|
+
}), Gt = /* @__PURE__ */ v(Ft, [["__scopeId", "data-v-3268e9e3"]]), Ut = /* @__PURE__ */ h({
|
|
1112
1112
|
__name: "t-avatar",
|
|
1113
1113
|
props: {
|
|
1114
1114
|
square: { type: Boolean, default: !1 },
|
|
@@ -1123,13 +1123,13 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1123
1123
|
g(s.$slots, "default", {}, void 0, !0)
|
|
1124
1124
|
], 6));
|
|
1125
1125
|
}
|
|
1126
|
-
}),
|
|
1126
|
+
}), jt = /* @__PURE__ */ v(Ut, [["__scopeId", "data-v-24384c2f"]]), Kt = { class: "t-collapse-title" }, Jt = {
|
|
1127
1127
|
key: 0,
|
|
1128
1128
|
class: "icon"
|
|
1129
|
-
},
|
|
1129
|
+
}, Qt = {
|
|
1130
1130
|
key: 1,
|
|
1131
1131
|
class: "icon"
|
|
1132
|
-
},
|
|
1132
|
+
}, Zt = { class: "t-collapse-content" }, Yt = /* @__PURE__ */ h({
|
|
1133
1133
|
__name: "t-collapse",
|
|
1134
1134
|
props: {
|
|
1135
1135
|
title: {}
|
|
@@ -1148,20 +1148,20 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1148
1148
|
onClick: n
|
|
1149
1149
|
}, [
|
|
1150
1150
|
g(c.$slots, "icon"),
|
|
1151
|
-
k("div",
|
|
1151
|
+
k("div", Kt, [
|
|
1152
1152
|
g(c.$slots, "title", {}, () => [
|
|
1153
|
-
q(
|
|
1153
|
+
q(A(o.title), 1)
|
|
1154
1154
|
])
|
|
1155
1155
|
]),
|
|
1156
1156
|
g(c.$slots, "toggle", {}, () => [
|
|
1157
|
-
r.value ? (u(), p("div",
|
|
1157
|
+
r.value ? (u(), p("div", Jt, [...i[0] || (i[0] = [
|
|
1158
1158
|
k("i", { class: "ri-arrow-up-s-line" }, null, -1)
|
|
1159
|
-
])])) : (u(), p("div",
|
|
1159
|
+
])])) : (u(), p("div", Qt, [...i[1] || (i[1] = [
|
|
1160
1160
|
k("i", { class: "ri-arrow-down-s-line" }, null, -1)
|
|
1161
1161
|
])]))
|
|
1162
1162
|
])
|
|
1163
1163
|
]),
|
|
1164
|
-
k("div",
|
|
1164
|
+
k("div", Zt, [
|
|
1165
1165
|
k("div", {
|
|
1166
1166
|
ref_key: "content",
|
|
1167
1167
|
ref: d
|
|
@@ -1173,7 +1173,7 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1173
1173
|
])
|
|
1174
1174
|
], 6));
|
|
1175
1175
|
}
|
|
1176
|
-
}),
|
|
1176
|
+
}), eo = /* @__PURE__ */ h({
|
|
1177
1177
|
__name: "t-switch",
|
|
1178
1178
|
props: {
|
|
1179
1179
|
modelValue: { type: Boolean },
|
|
@@ -1201,14 +1201,14 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1201
1201
|
k("div", { class: "t-switch-icon" }, null, -1)
|
|
1202
1202
|
])], 6));
|
|
1203
1203
|
}
|
|
1204
|
-
}),
|
|
1204
|
+
}), to = /* @__PURE__ */ v(eo, [["__scopeId", "data-v-3616970e"]]), oo = /* @__PURE__ */ h({
|
|
1205
1205
|
__name: "t-tab",
|
|
1206
1206
|
props: {
|
|
1207
1207
|
value: {}
|
|
1208
1208
|
},
|
|
1209
1209
|
setup(e) {
|
|
1210
|
-
const t = e, o =
|
|
1211
|
-
o.
|
|
1210
|
+
const t = e, o = ue("tabsState"), s = w(() => o.activeValue.value === t.value), r = () => {
|
|
1211
|
+
o.setValue(t.value);
|
|
1212
1212
|
};
|
|
1213
1213
|
return (l, d) => (u(), p("li", {
|
|
1214
1214
|
class: S(["t-tab", { active: s.value }])
|
|
@@ -1216,8 +1216,8 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1216
1216
|
U(Q, {
|
|
1217
1217
|
variant: "text",
|
|
1218
1218
|
onClick: r,
|
|
1219
|
-
size:
|
|
1220
|
-
color: s.value &&
|
|
1219
|
+
size: C(o).size,
|
|
1220
|
+
color: s.value && C(o).variant == "text" ? C(o).color : void 0
|
|
1221
1221
|
}, {
|
|
1222
1222
|
default: P(() => [
|
|
1223
1223
|
g(l.$slots, "default", {}, void 0, !0)
|
|
@@ -1226,7 +1226,7 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1226
1226
|
}, 8, ["size", "color"])
|
|
1227
1227
|
], 2));
|
|
1228
1228
|
}
|
|
1229
|
-
}),
|
|
1229
|
+
}), so = /* @__PURE__ */ v(oo, [["__scopeId", "data-v-c1a0215f"]]), ro = /* @__PURE__ */ h({
|
|
1230
1230
|
__name: "t-tabs",
|
|
1231
1231
|
props: {
|
|
1232
1232
|
placement: { default: "top-start" },
|
|
@@ -1242,34 +1242,32 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1242
1242
|
let c = o.color;
|
|
1243
1243
|
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(c) && (c = `var(--t-color-status-${c})`), c;
|
|
1244
1244
|
}), n = () => {
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
r.value = i + _ - o.border / 2 + "px";
|
|
1251
|
-
}
|
|
1252
|
-
} else if (o.placement.startsWith("left-") || o.placement.startsWith("right-")) {
|
|
1253
|
-
let c = l.value.querySelector(".active");
|
|
1254
|
-
if (c) {
|
|
1255
|
-
let i = c.getBoundingClientRect().top - l.value.getBoundingClientRect().top + l.value.scrollTop, _ = c.offsetHeight / 2;
|
|
1256
|
-
r.value = i + _ - o.border / 2 + "px";
|
|
1257
|
-
}
|
|
1245
|
+
if (o.placement.startsWith("top-") || o.placement.startsWith("bottom-")) {
|
|
1246
|
+
let c = l.value.querySelector(".active");
|
|
1247
|
+
if (c) {
|
|
1248
|
+
let i = c.getBoundingClientRect().left - l.value.getBoundingClientRect().left + l.value.scrollLeft, y = c.offsetWidth / 2;
|
|
1249
|
+
r.value = i + y - o.border / 2 + "px";
|
|
1258
1250
|
}
|
|
1259
|
-
}
|
|
1251
|
+
} else if (o.placement.startsWith("left-") || o.placement.startsWith("right-")) {
|
|
1252
|
+
let c = l.value.querySelector(".active");
|
|
1253
|
+
if (c) {
|
|
1254
|
+
let i = c.getBoundingClientRect().top - l.value.getBoundingClientRect().top + l.value.scrollTop, y = c.offsetHeight / 2;
|
|
1255
|
+
r.value = i + y - o.border / 2 + "px";
|
|
1256
|
+
}
|
|
1257
|
+
}
|
|
1260
1258
|
};
|
|
1261
|
-
return
|
|
1262
|
-
|
|
1259
|
+
return ie("tabsState", {
|
|
1260
|
+
activeValue: w(() => o.modelValue),
|
|
1263
1261
|
color: d.value,
|
|
1264
1262
|
size: o.size,
|
|
1265
1263
|
variant: o.variant,
|
|
1266
|
-
|
|
1264
|
+
setValue: (c) => {
|
|
1267
1265
|
s("update:modelValue", c);
|
|
1268
1266
|
}
|
|
1269
|
-
}),
|
|
1270
|
-
n();
|
|
1271
|
-
}),
|
|
1272
|
-
n();
|
|
1267
|
+
}), X(() => o.modelValue, async () => {
|
|
1268
|
+
await ae(), n();
|
|
1269
|
+
}), G(async () => {
|
|
1270
|
+
await ae(), n();
|
|
1273
1271
|
}), (c, i) => (u(), p("ul", {
|
|
1274
1272
|
ref_key: "container",
|
|
1275
1273
|
ref: l,
|
|
@@ -1279,20 +1277,20 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1279
1277
|
g(c.$slots, "default", {}, void 0, !0)
|
|
1280
1278
|
], 6));
|
|
1281
1279
|
}
|
|
1282
|
-
}),
|
|
1280
|
+
}), no = /* @__PURE__ */ v(ro, [["__scopeId", "data-v-aa4a542a"]]), ao = /* @__PURE__ */ h({
|
|
1283
1281
|
__name: "t-loading-app",
|
|
1284
1282
|
setup(e) {
|
|
1285
|
-
return (t, o) => (u(),
|
|
1283
|
+
return (t, o) => (u(), V(ye, null, {
|
|
1286
1284
|
default: P(() => [
|
|
1287
1285
|
U(J, { type: "spinner" })
|
|
1288
1286
|
]),
|
|
1289
1287
|
_: 1
|
|
1290
1288
|
}));
|
|
1291
1289
|
}
|
|
1292
|
-
}),
|
|
1290
|
+
}), lo = /* @__PURE__ */ v(ao, [["__scopeId", "data-v-1436aa9f"]]), co = { key: 0 }, io = {
|
|
1293
1291
|
key: 0,
|
|
1294
1292
|
class: "t-checkbox-label"
|
|
1295
|
-
},
|
|
1293
|
+
}, uo = /* @__PURE__ */ h({
|
|
1296
1294
|
__name: "t-checkbox",
|
|
1297
1295
|
props: {
|
|
1298
1296
|
label: { default: "" },
|
|
@@ -1328,26 +1326,26 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1328
1326
|
k("div", {
|
|
1329
1327
|
class: S(`t-checkbox-${n.type}`)
|
|
1330
1328
|
}, [
|
|
1331
|
-
n.type == "radio" ? (u(), p("div",
|
|
1329
|
+
n.type == "radio" ? (u(), p("div", co)) : E("", !0),
|
|
1332
1330
|
n.type == "check" ? g(n.$slots, "icon", { key: 1 }, () => [
|
|
1333
1331
|
c[0] || (c[0] = k("i", { class: "ri-check-line" }, null, -1))
|
|
1334
1332
|
], !0) : E("", !0)
|
|
1335
1333
|
], 2),
|
|
1336
1334
|
g(n.$slots, "label", {}, () => [
|
|
1337
|
-
n.label ? (u(), p("span",
|
|
1335
|
+
n.label ? (u(), p("span", io, A(o.label), 1)) : E("", !0)
|
|
1338
1336
|
], !0)
|
|
1339
1337
|
], 6));
|
|
1340
1338
|
}
|
|
1341
|
-
}),
|
|
1339
|
+
}), po = /* @__PURE__ */ v(uo, [["__scopeId", "data-v-0e13abc3"]]), fo = /* @__PURE__ */ h({
|
|
1342
1340
|
__name: "t-keyboard",
|
|
1343
1341
|
setup(e) {
|
|
1344
|
-
const { height: t } =
|
|
1342
|
+
const { height: t } = ve();
|
|
1345
1343
|
return (o, s) => (u(), p("div", {
|
|
1346
1344
|
class: "t-keyboard",
|
|
1347
|
-
style: T({ "--height":
|
|
1345
|
+
style: T({ "--height": C(t) + "px" })
|
|
1348
1346
|
}, null, 4));
|
|
1349
1347
|
}
|
|
1350
|
-
}),
|
|
1348
|
+
}), mo = /* @__PURE__ */ v(fo, [["__scopeId", "data-v-5d3fa1da"]]), vo = /* @__PURE__ */ h({
|
|
1351
1349
|
__name: "t-skeleton",
|
|
1352
1350
|
props: {
|
|
1353
1351
|
width: { default: "100%" },
|
|
@@ -1366,7 +1364,7 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1366
1364
|
style: T(o.value)
|
|
1367
1365
|
}, null, 4));
|
|
1368
1366
|
}
|
|
1369
|
-
}),
|
|
1367
|
+
}), yo = /* @__PURE__ */ v(vo, [["__scopeId", "data-v-877bbdb5"]]), _o = /* @__PURE__ */ h({
|
|
1370
1368
|
__name: "t-ripple",
|
|
1371
1369
|
props: {
|
|
1372
1370
|
color: { default: "primary" }
|
|
@@ -1387,20 +1385,20 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
|
1387
1385
|
style: T(o.value)
|
|
1388
1386
|
}, null, 4));
|
|
1389
1387
|
}
|
|
1390
|
-
}),
|
|
1388
|
+
}), go = /* @__PURE__ */ v(_o, [["__scopeId", "data-v-42cb3d71"]]), So = () => ({
|
|
1391
1389
|
install: (e) => {
|
|
1392
|
-
|
|
1390
|
+
xe(), e.component("t-app", Ee), 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", M), e.component("t-text", oe), e.component("t-sheet", wt), e.component("t-gesture-indicator", ge), e.component("t-input", It), e.component("t-textarea", Vt), e.component("t-rich-text", Rt), e.component("t-grid", Ot), e.component("t-grid-item", Mt), 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", mo), e.component("t-skeleton", yo), e.component("t-ripple", go);
|
|
1393
1391
|
}
|
|
1394
1392
|
});
|
|
1395
1393
|
export {
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1394
|
+
Te as blurCurrentActive,
|
|
1395
|
+
wo as createAction,
|
|
1396
|
+
$o as createAlert,
|
|
1397
|
+
To as createLoading,
|
|
1398
|
+
xo as createToast,
|
|
1399
|
+
So as createToife,
|
|
1400
|
+
we as isFormElement,
|
|
1401
|
+
He as presentController,
|
|
1404
1402
|
x as screenController,
|
|
1405
|
-
|
|
1403
|
+
ve as useKeyboard
|
|
1406
1404
|
};
|