@toife/vue 2.0.22 → 2.0.24
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.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { createElementBlock as p, openBlock as i, renderSlot as g, defineComponent as
|
|
1
|
+
import { createElementBlock as p, openBlock as i, renderSlot as g, defineComponent as b, ref as m, computed as x, reactive as ue, watch as N, onMounted as j, Fragment as q, withDirectives as F, createCommentVNode as z, normalizeStyle as T, normalizeClass as B, vShow as K, createElementVNode as $, createVNode as G, createBlock as V, withCtx as P, toDisplayString as A, renderList as U, createTextVNode as M, createApp as J, h as Q, provide as de, unref as O, onUnmounted as re, resolveDynamicComponent as ke, markRaw as $e, inject as pe, useAttrs as we, nextTick as ce } from "vue";
|
|
2
2
|
import { gesture as ae } from "@toife/gesture";
|
|
3
|
-
import { useRouter as fe, useRoute as
|
|
3
|
+
import { useRouter as fe, useRoute as xe } from "vue-router";
|
|
4
4
|
const Te = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), Se = () => {
|
|
5
5
|
const t = document.activeElement;
|
|
6
6
|
t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) && t.blur();
|
|
@@ -13,13 +13,13 @@ const Te = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isC
|
|
|
13
13
|
for (const [s, n] of o)
|
|
14
14
|
e[s] = n;
|
|
15
15
|
return e;
|
|
16
|
-
},
|
|
17
|
-
function
|
|
18
|
-
return i(), p("div",
|
|
16
|
+
}, Ce = {}, Ie = { class: "t-app" };
|
|
17
|
+
function ze(t, o) {
|
|
18
|
+
return i(), p("div", Ie, [
|
|
19
19
|
g(t.$slots, "default")
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
|
-
const Ee = /* @__PURE__ */ _(
|
|
22
|
+
const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
|
|
23
23
|
__name: "t-present",
|
|
24
24
|
props: {
|
|
25
25
|
keepalive: { type: Boolean, default: !0 },
|
|
@@ -33,19 +33,19 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
33
33
|
},
|
|
34
34
|
emits: ["dismiss"],
|
|
35
35
|
setup(t, { expose: o, emit: e }) {
|
|
36
|
-
const s = m(0), n = m(!1), l = m(), u = m(), r = t, v = e, y =
|
|
36
|
+
const s = m(0), n = m(!1), l = m(), u = m(), r = t, v = e, y = x(() => n.value || r.keepalive), d = m(!1), a = ue({
|
|
37
37
|
"--t-present-backdrop-opacity": "0.4",
|
|
38
38
|
"--t-present-transition": "0.2s",
|
|
39
39
|
"--t-present-content-transform": "0px",
|
|
40
40
|
"--t-present-content-opacity": "1"
|
|
41
|
-
}), c =
|
|
42
|
-
r.backdrop ?
|
|
41
|
+
}), c = x(() => r.duration / 1e3 + "s"), f = (w) => {
|
|
42
|
+
r.backdrop ? w?.backdropOpacity && (a["--t-present-backdrop-opacity"] = w.backdropOpacity) : a["--t-present-backdrop-opacity"] = "0", w.transition && (a["--t-present-transition"] = w.transition), w.contentTransform && (a["--t-present-content-transform"] = w.contentTransform), w.contentOpacity && (a["--t-present-content-opacity"] = w.contentOpacity);
|
|
43
43
|
}, k = () => {
|
|
44
44
|
if (r.bounce !== void 0 && !d.value) {
|
|
45
45
|
d.value = !0;
|
|
46
|
-
let
|
|
47
|
-
(r.placement == "bottom" || r.placement == "right") && (
|
|
48
|
-
contentTransform:
|
|
46
|
+
let w = r.bounce;
|
|
47
|
+
(r.placement == "bottom" || r.placement == "right") && (w = `calc(${r.bounce} * -1)`), f({
|
|
48
|
+
contentTransform: w,
|
|
49
49
|
transition: c.value,
|
|
50
50
|
backdropOpacity: "0.4",
|
|
51
51
|
contentOpacity: "1"
|
|
@@ -61,56 +61,57 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
61
61
|
backdropOpacity: "0.4",
|
|
62
62
|
contentOpacity: "1"
|
|
63
63
|
});
|
|
64
|
-
},
|
|
65
|
-
let
|
|
66
|
-
r.placement == "bottom" || r.placement == "right" ?
|
|
67
|
-
contentTransform:
|
|
64
|
+
}, h = () => {
|
|
65
|
+
let w = "0px", se = "1";
|
|
66
|
+
r.placement == "bottom" || r.placement == "right" ? w = "100%" : r.placement == "top" || r.placement == "left" ? w = "-100%" : r.placement == "center" && (w = "0px", se = "0"), f({
|
|
67
|
+
contentTransform: w,
|
|
68
68
|
transition: c.value,
|
|
69
69
|
contentOpacity: se,
|
|
70
70
|
backdropOpacity: "0"
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
|
-
|
|
73
|
+
N(() => r.visible, () => {
|
|
74
74
|
r.visible ? (d.value = !1, n.value = !0, s.value = Ke.getNewIndex(), setTimeout(() => {
|
|
75
75
|
k();
|
|
76
|
-
}, 50)) : (
|
|
76
|
+
}, 50)) : (h(), setTimeout(() => {
|
|
77
77
|
n.value = !1;
|
|
78
78
|
}, 200));
|
|
79
79
|
}), o({
|
|
80
80
|
render: f,
|
|
81
81
|
open: k,
|
|
82
|
-
close:
|
|
82
|
+
close: h
|
|
83
83
|
});
|
|
84
|
-
const
|
|
85
|
-
|
|
84
|
+
const W = (w) => {
|
|
85
|
+
w.preventDefault(), v("dismiss", "backdrop");
|
|
86
86
|
};
|
|
87
|
-
return
|
|
88
|
-
r.visible ? k() :
|
|
89
|
-
}), (
|
|
87
|
+
return j(() => {
|
|
88
|
+
r.visible ? k() : h();
|
|
89
|
+
}), (w, se) => (i(), p(q, null, [
|
|
90
90
|
y.value ? F((i(), p("div", {
|
|
91
91
|
key: 0,
|
|
92
|
-
class: B(["t-present", [{ [
|
|
92
|
+
class: B(["t-present", [{ [w.placement]: !0 }, r.class]]),
|
|
93
93
|
ref_key: "present",
|
|
94
94
|
ref: u,
|
|
95
95
|
style: T([a, { zIndex: s.value }, r.style])
|
|
96
96
|
}, [
|
|
97
|
-
g(
|
|
97
|
+
g(w.$slots, "default", {}, void 0, !0)
|
|
98
98
|
], 6)), [
|
|
99
99
|
[K, n.value]
|
|
100
|
-
]) :
|
|
100
|
+
]) : z("", !0),
|
|
101
101
|
y.value ? F((i(), p("div", {
|
|
102
102
|
key: 1,
|
|
103
103
|
class: "t-present-backdrop",
|
|
104
|
-
onClick:
|
|
104
|
+
onClick: W,
|
|
105
|
+
onTouchend: W,
|
|
105
106
|
ref_key: "backdrop",
|
|
106
107
|
ref: l,
|
|
107
108
|
style: T([a, { zIndex: s.value - 1 }, r.style])
|
|
108
|
-
}, null,
|
|
109
|
+
}, null, 36)), [
|
|
109
110
|
[K, n.value]
|
|
110
|
-
]) :
|
|
111
|
+
]) : z("", !0)
|
|
111
112
|
], 64));
|
|
112
113
|
}
|
|
113
|
-
}), H = /* @__PURE__ */ _(Ve, [["__scopeId", "data-v-
|
|
114
|
+
}), H = /* @__PURE__ */ _(Ve, [["__scopeId", "data-v-b7870f48"]]), Pe = /* @__PURE__ */ b({
|
|
114
115
|
__name: "t-loading-icon",
|
|
115
116
|
props: {
|
|
116
117
|
size: {
|
|
@@ -137,7 +138,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
137
138
|
}), Z = /* @__PURE__ */ _(Pe, [["__scopeId", "data-v-7c463303"]]), Re = { class: "t-button-content" }, Ae = {
|
|
138
139
|
key: 0,
|
|
139
140
|
class: "loader"
|
|
140
|
-
}, Oe = /* @__PURE__ */
|
|
141
|
+
}, Oe = /* @__PURE__ */ b({
|
|
141
142
|
__name: "t-button",
|
|
142
143
|
props: {
|
|
143
144
|
color: { default: null },
|
|
@@ -150,7 +151,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
150
151
|
activeBackground: { type: Boolean, default: !1 }
|
|
151
152
|
},
|
|
152
153
|
setup(t) {
|
|
153
|
-
const o = t, e =
|
|
154
|
+
const o = t, e = x(() => {
|
|
154
155
|
let s;
|
|
155
156
|
return o.variant == "default" && (o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? s = {
|
|
156
157
|
"--border": "none",
|
|
@@ -200,17 +201,17 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
200
201
|
[K, !o.loading]
|
|
201
202
|
]),
|
|
202
203
|
o.loading ? (i(), p("span", Ae, [
|
|
203
|
-
|
|
204
|
+
G(Z, {
|
|
204
205
|
color: "var(--color)",
|
|
205
206
|
type: o.loadingType
|
|
206
207
|
}, null, 8, ["type"])
|
|
207
|
-
])) :
|
|
208
|
+
])) : z("", !0)
|
|
208
209
|
], 6));
|
|
209
210
|
}
|
|
210
|
-
}), Y = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-
|
|
211
|
+
}), Y = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-d8c9aca1"]]), Xe = {
|
|
211
212
|
key: 0,
|
|
212
213
|
class: "t-alert-header"
|
|
213
|
-
}, De = { class: "t-alert-content" }, We = { class: "t-alert-footer" }, Ne = /* @__PURE__ */
|
|
214
|
+
}, De = { class: "t-alert-content" }, We = { class: "t-alert-footer" }, Ne = /* @__PURE__ */ b({
|
|
214
215
|
__name: "t-alert",
|
|
215
216
|
props: {
|
|
216
217
|
title: {},
|
|
@@ -220,12 +221,12 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
220
221
|
},
|
|
221
222
|
emits: ["dismiss"],
|
|
222
223
|
setup(t, { expose: o, emit: e }) {
|
|
223
|
-
const s = t, n =
|
|
224
|
-
|
|
224
|
+
const s = t, n = e, l = m(!1), u = m(), r = m(!1), v = () => {
|
|
225
|
+
l.value = !0;
|
|
225
226
|
}, y = (a) => {
|
|
226
|
-
|
|
227
|
+
l.value = !1, a.handler && a.handler(), n("dismiss", "choose", a?.data);
|
|
227
228
|
}, d = (a) => {
|
|
228
|
-
s.dismiss && s.dismiss.includes(a) ? (
|
|
229
|
+
s.dismiss && s.dismiss.includes(a) ? (l.value = !1, n("dismiss", a)) : a == "backdrop" && (r.value = !0, setTimeout(() => {
|
|
229
230
|
r.value = !1;
|
|
230
231
|
}, 300));
|
|
231
232
|
};
|
|
@@ -235,7 +236,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
235
236
|
placement: "center",
|
|
236
237
|
backdrop: !0,
|
|
237
238
|
keepalive: !1,
|
|
238
|
-
visible:
|
|
239
|
+
visible: l.value,
|
|
239
240
|
onDismiss: d
|
|
240
241
|
}, {
|
|
241
242
|
default: P(() => [
|
|
@@ -245,14 +246,14 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
245
246
|
ref: u
|
|
246
247
|
}, [
|
|
247
248
|
g(a.$slots, "header", {}, () => [
|
|
248
|
-
s.title ? (i(), p("div", Xe, A(s.title), 1)) :
|
|
249
|
+
s.title ? (i(), p("div", Xe, A(s.title), 1)) : z("", !0)
|
|
249
250
|
], !0),
|
|
250
251
|
g(a.$slots, "content", {}, () => [
|
|
251
252
|
$("div", De, A(s.message), 1)
|
|
252
253
|
], !0),
|
|
253
254
|
g(a.$slots, "footer", {}, () => [
|
|
254
255
|
$("div", We, [
|
|
255
|
-
(i(!0), p(q, null,
|
|
256
|
+
(i(!0), p(q, null, U(s.actions, (f) => (i(), V(Y, {
|
|
256
257
|
color: f.color,
|
|
257
258
|
variant: f.variant,
|
|
258
259
|
onClick: (k) => y(f)
|
|
@@ -269,7 +270,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
269
270
|
_: 3
|
|
270
271
|
}, 8, ["visible"]));
|
|
271
272
|
}
|
|
272
|
-
}), me = /* @__PURE__ */ _(Ne, [["__scopeId", "data-v-
|
|
273
|
+
}), me = /* @__PURE__ */ _(Ne, [["__scopeId", "data-v-fe19a4e9"]]), bo = (t = {}) => ({
|
|
273
274
|
open() {
|
|
274
275
|
return new Promise((o) => {
|
|
275
276
|
let e = document.body.querySelector(".t-app");
|
|
@@ -294,7 +295,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
294
295
|
}, 50);
|
|
295
296
|
});
|
|
296
297
|
}
|
|
297
|
-
}), qe = /* @__PURE__ */
|
|
298
|
+
}), qe = /* @__PURE__ */ b({
|
|
298
299
|
__name: "t-action",
|
|
299
300
|
props: {
|
|
300
301
|
actions: {},
|
|
@@ -303,16 +304,16 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
303
304
|
},
|
|
304
305
|
emits: ["dismiss"],
|
|
305
306
|
setup(t, { expose: o, emit: e }) {
|
|
306
|
-
const s = t, n =
|
|
307
|
-
|
|
307
|
+
const s = t, n = e, l = m(!1), u = m(), r = m(!1), v = () => {
|
|
308
|
+
l.value = !0;
|
|
308
309
|
}, y = (a) => {
|
|
309
|
-
|
|
310
|
+
l.value = !1, a.handler && a.handler(), n("dismiss", "choose", a?.data);
|
|
310
311
|
}, d = (a) => {
|
|
311
|
-
s.dismiss && s.dismiss.includes(a) ? (
|
|
312
|
+
s.dismiss && s.dismiss.includes(a) ? (l.value = !1, n("dismiss", a)) : a == "backdrop" && (r.value = !0, setTimeout(() => {
|
|
312
313
|
r.value = !1;
|
|
313
314
|
}, 300));
|
|
314
315
|
};
|
|
315
|
-
return
|
|
316
|
+
return N(() => s.visible, (a) => {
|
|
316
317
|
a ? v() : close();
|
|
317
318
|
}), o({
|
|
318
319
|
open: v,
|
|
@@ -321,7 +322,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
321
322
|
placement: "bottom",
|
|
322
323
|
backdrop: !0,
|
|
323
324
|
keepalive: !1,
|
|
324
|
-
visible:
|
|
325
|
+
visible: l.value,
|
|
325
326
|
onDismiss: d
|
|
326
327
|
}, {
|
|
327
328
|
default: P(() => [
|
|
@@ -330,12 +331,12 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
330
331
|
ref_key: "container",
|
|
331
332
|
ref: u
|
|
332
333
|
}, [
|
|
333
|
-
(i(!0), p(q, null,
|
|
334
|
-
(i(!0), p(q, null,
|
|
334
|
+
(i(!0), p(q, null, U(s.actions, (f) => (i(), p("div", null, [
|
|
335
|
+
(i(!0), p(q, null, U(f, (k) => (i(), V(Y, {
|
|
335
336
|
color: k.color,
|
|
336
337
|
size: k.size,
|
|
337
338
|
variant: k.variant,
|
|
338
|
-
onClick: (
|
|
339
|
+
onClick: (h) => y(k),
|
|
339
340
|
block: ""
|
|
340
341
|
}, {
|
|
341
342
|
default: P(() => [
|
|
@@ -349,7 +350,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
349
350
|
_: 1
|
|
350
351
|
}, 8, ["visible"]));
|
|
351
352
|
}
|
|
352
|
-
}), Me = /* @__PURE__ */ _(qe, [["__scopeId", "data-v-
|
|
353
|
+
}), Me = /* @__PURE__ */ _(qe, [["__scopeId", "data-v-7db152ee"]]), ho = (t = {}) => ({
|
|
353
354
|
open() {
|
|
354
355
|
return new Promise((o) => {
|
|
355
356
|
let e = document.body.querySelector(".t-app");
|
|
@@ -374,7 +375,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
374
375
|
}, 50);
|
|
375
376
|
});
|
|
376
377
|
}
|
|
377
|
-
}), Le = { class: "t-loading" }, He = /* @__PURE__ */
|
|
378
|
+
}), Le = { class: "t-loading" }, He = /* @__PURE__ */ b({
|
|
378
379
|
__name: "t-loading",
|
|
379
380
|
props: {
|
|
380
381
|
type: { default: "spinner" }
|
|
@@ -398,7 +399,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
398
399
|
default: P(() => [
|
|
399
400
|
$("div", Le, [
|
|
400
401
|
g(r.$slots, "default", {}, () => [
|
|
401
|
-
|
|
402
|
+
G(Z, {
|
|
402
403
|
type: s.type
|
|
403
404
|
}, null, 8, ["type"])
|
|
404
405
|
], !0)
|
|
@@ -407,7 +408,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
407
408
|
_: 3
|
|
408
409
|
}, 8, ["visible"]));
|
|
409
410
|
}
|
|
410
|
-
}), Fe = /* @__PURE__ */ _(He, [["__scopeId", "data-v-8f84c14e"]]),
|
|
411
|
+
}), Fe = /* @__PURE__ */ _(He, [["__scopeId", "data-v-8f84c14e"]]), ko = (t = {}) => {
|
|
411
412
|
const o = m(), e = document.body.querySelector(".t-app");
|
|
412
413
|
let s = null, n = null;
|
|
413
414
|
return {
|
|
@@ -437,27 +438,27 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
437
438
|
getNewIndex() {
|
|
438
439
|
return ie.value += 2, ie.value;
|
|
439
440
|
}
|
|
440
|
-
}, X = ue([]), ee = m(!0),
|
|
441
|
-
let e =
|
|
441
|
+
}, X = ue([]), ee = m(!0), I = m(!1), R = m(-1), C = x(() => X[R.value]), L = x(() => X[R.value + 1] || void 0), E = x(() => X[X.length - 2]), ve = x(() => !I.value && ee.value && E.value), D = (t = !0) => {
|
|
442
|
+
let e = C.value.target.closest(".t-app").offsetWidth;
|
|
442
443
|
return t ? e + "px" : e;
|
|
443
444
|
}, te = {
|
|
444
445
|
reset() {
|
|
445
|
-
|
|
446
|
-
const t = D(), o =
|
|
446
|
+
I.value = !0;
|
|
447
|
+
const t = D(), o = C.value.target, e = E.value.target;
|
|
447
448
|
o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", e.style.transition = "transform 0.35s ease", e.style.transform = `translateX(calc(${t} / 100 * 30 * -1)) scale(0.5) perspective(${t}) rotateY(30deg)`, document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
|
|
448
|
-
|
|
449
|
+
I.value = !1;
|
|
449
450
|
}, 400);
|
|
450
451
|
},
|
|
451
452
|
move(t) {
|
|
452
453
|
if (!ve.value) return;
|
|
453
|
-
const o = D(!1), e = o + "px", s = t / o * 100, n =
|
|
454
|
+
const o = D(!1), e = o + "px", s = t / o * 100, n = C.value.target, l = E.value.target;
|
|
454
455
|
t > 15 && t <= o && (n.style.transition = "transform 0s ease", n.style.transform = `translateX(${t}px)`, l.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), l.style.transform = `translateX(calc((${e} / 100 * 30 * -1) + ((${e} / 100 * 30) / 100 * ${s}))) scale(${0.5 + 0.5 / 100 * s}) perspective(${e}) rotateY(${30 - 30 / 100 * s}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * s}`));
|
|
455
456
|
},
|
|
456
457
|
back(t) {
|
|
457
458
|
if (!E.value) return;
|
|
458
459
|
const o = D();
|
|
459
|
-
|
|
460
|
-
le(),
|
|
460
|
+
C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = `translateX(${o}) scale(1)`, E.value.target.style.transition = "transform 0.35s ease", E.value.target.style.transform = `translateX(0px) scale(1) perspective(${o}) 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(() => {
|
|
461
|
+
le(), I.value = !1, R.value -= 1, t && t();
|
|
461
462
|
}, 400);
|
|
462
463
|
},
|
|
463
464
|
next(t) {
|
|
@@ -466,31 +467,31 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
466
467
|
R.value += 1, t && t();
|
|
467
468
|
return;
|
|
468
469
|
}
|
|
469
|
-
|
|
470
|
+
I.value = !0;
|
|
470
471
|
const o = L.value.target, e = D();
|
|
471
472
|
o.style.transform = `translateX(${e})`, o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
|
|
472
|
-
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"),
|
|
473
|
-
|
|
473
|
+
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"), C.value && (C.value.target.style.transitionOrigin = "left center", C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = `translateX(calc(${e} / 100 * 30 * -1)) scale(0.5) perspective(${e}) rotateY(30deg)`), setTimeout(() => {
|
|
474
|
+
I.value = !1, R.value += 1, t && t();
|
|
474
475
|
}, 400);
|
|
475
476
|
}, 100);
|
|
476
477
|
}
|
|
477
478
|
}, oe = {
|
|
478
479
|
reset() {
|
|
479
|
-
|
|
480
|
-
const t = D(), o =
|
|
480
|
+
I.value = !0;
|
|
481
|
+
const t = D(), o = C.value.target, e = E.value.target;
|
|
481
482
|
o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", e.style.transition = "transform 0.35s ease", e.style.transform = `translateX(calc(${t} / 100 * 30 * -1))`, document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
|
|
482
|
-
|
|
483
|
+
I.value = !1;
|
|
483
484
|
}, 400);
|
|
484
485
|
},
|
|
485
486
|
move(t) {
|
|
486
|
-
const o = D(!1), e = o + "px", s = t / o * 100, n =
|
|
487
|
+
const o = D(!1), e = o + "px", s = t / o * 100, n = C.value.target, l = E.value.target;
|
|
487
488
|
t > 15 && t <= o && (n.style.transition = "transform 0s ease", n.style.transform = `translateX(${t}px)`, l.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), l.style.transform = `translateX(calc((${e} / 100 * 30 * -1) + ((${e} / 100 * 30) / 100 * ${s})))`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * s}`));
|
|
488
489
|
},
|
|
489
490
|
back(t) {
|
|
490
491
|
if (!E.value) return;
|
|
491
492
|
const o = D();
|
|
492
|
-
|
|
493
|
-
le(),
|
|
493
|
+
C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = `translateX(${o}) scale(1)`, E.value.target.style.transition = "transform 0.35s ease", E.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(() => {
|
|
494
|
+
le(), I.value = !1, R.value -= 1, t && t();
|
|
494
495
|
}, 400);
|
|
495
496
|
},
|
|
496
497
|
next(t) {
|
|
@@ -499,21 +500,21 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
499
500
|
R.value += 1, t && t();
|
|
500
501
|
return;
|
|
501
502
|
}
|
|
502
|
-
|
|
503
|
+
I.value = !0;
|
|
503
504
|
const o = L.value.target, e = D();
|
|
504
505
|
o.style.transform = `translateX(${e})`, o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
|
|
505
|
-
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"),
|
|
506
|
-
|
|
506
|
+
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"), C.value && (C.value.target.style.transitionOrigin = "left center", C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = `translateX(calc(${e} / 100 * 30 * -1))`), setTimeout(() => {
|
|
507
|
+
I.value = !1, R.value += 1, t && t();
|
|
507
508
|
}, 400);
|
|
508
509
|
}, 100);
|
|
509
510
|
}
|
|
510
|
-
},
|
|
511
|
+
}, Ue = (t) => {
|
|
511
512
|
X.push(t);
|
|
512
|
-
},
|
|
513
|
+
}, je = (t, o) => {
|
|
513
514
|
X[t].target = o;
|
|
514
515
|
}, le = (t) => {
|
|
515
516
|
t || X.pop();
|
|
516
|
-
},
|
|
517
|
+
}, Ge = () => {
|
|
517
518
|
X.splice(0, X.length);
|
|
518
519
|
}, Je = () => {
|
|
519
520
|
ee.value = !1;
|
|
@@ -528,24 +529,24 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
528
529
|
}, tt = (t) => {
|
|
529
530
|
t == "scale" && te.reset(), t == "transform" && oe.reset();
|
|
530
531
|
}, S = {
|
|
531
|
-
isBusy:
|
|
532
|
+
isBusy: I,
|
|
532
533
|
isSwipeable: ve,
|
|
533
534
|
reset: tt,
|
|
534
535
|
next: Ze,
|
|
535
536
|
back: Ye,
|
|
536
537
|
move: et,
|
|
537
538
|
screens: X,
|
|
538
|
-
addScreen:
|
|
539
|
-
addScreenEl:
|
|
539
|
+
addScreen: Ue,
|
|
540
|
+
addScreenEl: je,
|
|
540
541
|
removeScreen: le,
|
|
541
|
-
removeAllScreen:
|
|
542
|
+
removeAllScreen: Ge,
|
|
542
543
|
lockSwipe: Je,
|
|
543
544
|
unlockSwipe: Qe,
|
|
544
545
|
swipeable: ee,
|
|
545
|
-
currentScreen:
|
|
546
|
+
currentScreen: C,
|
|
546
547
|
lastScreen: E,
|
|
547
548
|
nextScreen: L
|
|
548
|
-
}, ot = { class: "t-toast-content" }, st = /* @__PURE__ */
|
|
549
|
+
}, ot = { class: "t-toast-content" }, st = /* @__PURE__ */ b({
|
|
549
550
|
__name: "t-toast",
|
|
550
551
|
props: {
|
|
551
552
|
message: {},
|
|
@@ -566,10 +567,10 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
566
567
|
u.value = !1, l.value = !1, n("dismiss");
|
|
567
568
|
}, 300);
|
|
568
569
|
};
|
|
569
|
-
|
|
570
|
+
N(() => s.visible, (a) => {
|
|
570
571
|
a ? v() : y();
|
|
571
572
|
});
|
|
572
|
-
const d =
|
|
573
|
+
const d = x(() => {
|
|
573
574
|
let a;
|
|
574
575
|
return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? a = {
|
|
575
576
|
"--border": "none",
|
|
@@ -620,9 +621,9 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
|
|
|
620
621
|
g(a.$slots, "content", {}, () => [
|
|
621
622
|
$("div", ot, A(s.message), 1)
|
|
622
623
|
], !0)
|
|
623
|
-
], 6)) :
|
|
624
|
+
], 6)) : z("", !0);
|
|
624
625
|
}
|
|
625
|
-
}), ye = /* @__PURE__ */ _(st, [["__scopeId", "data-v-2802d43f"]]),
|
|
626
|
+
}), ye = /* @__PURE__ */ _(st, [["__scopeId", "data-v-2802d43f"]]), $o = (t = {}) => ({
|
|
626
627
|
open() {
|
|
627
628
|
let o = document.body.querySelector(".t-app");
|
|
628
629
|
if (!o) return;
|
|
@@ -653,7 +654,7 @@ function _e() {
|
|
|
653
654
|
height: nt
|
|
654
655
|
};
|
|
655
656
|
}
|
|
656
|
-
const rt = /* @__PURE__ */
|
|
657
|
+
const rt = /* @__PURE__ */ b({
|
|
657
658
|
__name: "t-cable",
|
|
658
659
|
props: {
|
|
659
660
|
keyboard: { type: Boolean, default: !1 },
|
|
@@ -670,13 +671,13 @@ const rt = /* @__PURE__ */ h({
|
|
|
670
671
|
g(s.$slots, "default", {}, void 0, !0)
|
|
671
672
|
], 6));
|
|
672
673
|
}
|
|
673
|
-
}), at = /* @__PURE__ */ _(rt, [["__scopeId", "data-v-
|
|
674
|
+
}), at = /* @__PURE__ */ _(rt, [["__scopeId", "data-v-27e0d794"]]), lt = /* @__PURE__ */ b({
|
|
674
675
|
__name: "t-card",
|
|
675
676
|
props: {
|
|
676
677
|
color: { default: null }
|
|
677
678
|
},
|
|
678
679
|
setup(t) {
|
|
679
|
-
const o = t, e =
|
|
680
|
+
const o = t, e = x(() => {
|
|
680
681
|
let s;
|
|
681
682
|
return o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? s = {
|
|
682
683
|
"--background": "var(--t-color-status-" + o.color + ")"
|
|
@@ -699,7 +700,7 @@ function ut(t, o) {
|
|
|
699
700
|
g(t.$slots, "default", {}, void 0, !0)
|
|
700
701
|
]);
|
|
701
702
|
}
|
|
702
|
-
const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0"]]), dt = /* @__PURE__ */
|
|
703
|
+
const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0"]]), dt = /* @__PURE__ */ b({
|
|
703
704
|
__name: "t-refresher",
|
|
704
705
|
props: {
|
|
705
706
|
threshold: { default: 120 },
|
|
@@ -717,7 +718,7 @@ const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0
|
|
|
717
718
|
}, a = () => {
|
|
718
719
|
n.value = 0, l.value = !1, v = !1, e("cancel");
|
|
719
720
|
};
|
|
720
|
-
return
|
|
721
|
+
return N(() => u.value, () => {
|
|
721
722
|
r && r.destroy();
|
|
722
723
|
let c = u.value.closest(".t-content");
|
|
723
724
|
c && (r = ae(c, {
|
|
@@ -736,8 +737,8 @@ const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0
|
|
|
736
737
|
d();
|
|
737
738
|
return;
|
|
738
739
|
}
|
|
739
|
-
const
|
|
740
|
-
n.value =
|
|
740
|
+
const h = f < 0 ? 0 : f;
|
|
741
|
+
n.value = h, e("move", h);
|
|
741
742
|
},
|
|
742
743
|
up({ deltaY: f, initialDirection: k }) {
|
|
743
744
|
l.value || v || k != "down" || (s.variant == "up" && f >= s.threshold ? d() : a());
|
|
@@ -769,7 +770,7 @@ function vt(t, o) {
|
|
|
769
770
|
g(t.$slots, "default", {}, void 0, !0)
|
|
770
771
|
]);
|
|
771
772
|
}
|
|
772
|
-
const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c"]]), yt = /* @__PURE__ */
|
|
773
|
+
const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c"]]), yt = /* @__PURE__ */ b({
|
|
773
774
|
__name: "t-swipe-screen",
|
|
774
775
|
props: {
|
|
775
776
|
variant: { default: "scale" },
|
|
@@ -781,7 +782,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
781
782
|
let e = {};
|
|
782
783
|
const s = o, n = t;
|
|
783
784
|
let l;
|
|
784
|
-
const u = n.router || fe(), r = n.route ||
|
|
785
|
+
const u = n.router || fe(), r = n.route || xe(), v = u.getRoutes(), y = m();
|
|
785
786
|
for (let c of v)
|
|
786
787
|
e[c.name] = c.component || c.components;
|
|
787
788
|
const d = (c) => {
|
|
@@ -795,11 +796,11 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
795
796
|
s("change");
|
|
796
797
|
}));
|
|
797
798
|
};
|
|
798
|
-
return
|
|
799
|
+
return N(() => r.name, (c, f) => {
|
|
799
800
|
c != S.currentScreen.value?.name && (S.lastScreen.value?.name == c ? S.back(n.variant, () => {
|
|
800
801
|
s("change");
|
|
801
802
|
}) : d(r.name));
|
|
802
|
-
}),
|
|
803
|
+
}), j(() => {
|
|
803
804
|
d(r.name), l = ae(document.body, {
|
|
804
805
|
beforeEvent(c) {
|
|
805
806
|
return !!S.isSwipeable.value;
|
|
@@ -825,11 +826,11 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
825
826
|
}), re(() => {
|
|
826
827
|
l && l.destroy(), S.removeAllScreen();
|
|
827
828
|
}), (c, f) => (i(), p(q, null, [
|
|
828
|
-
(i(!0), p(q, null,
|
|
829
|
+
(i(!0), p(q, null, U(O(S).screens, (k, h) => (i(), V(be, {
|
|
829
830
|
ref_for: !0,
|
|
830
|
-
ref: (
|
|
831
|
-
style: T({ zIndex:
|
|
832
|
-
key:
|
|
831
|
+
ref: (W) => a(h, W),
|
|
832
|
+
style: T({ zIndex: h + (h == O(S).screens.length - 1 ? 2 : 1) }),
|
|
833
|
+
key: h
|
|
833
834
|
}, {
|
|
834
835
|
default: P(() => [
|
|
835
836
|
(i(), V(ke(k.component.default)))
|
|
@@ -844,7 +845,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
844
845
|
}, null, 4)
|
|
845
846
|
], 64));
|
|
846
847
|
}
|
|
847
|
-
}), _t = /* @__PURE__ */ _(yt, [["__scopeId", "data-v-4d584b03"]]), gt = /* @__PURE__ */
|
|
848
|
+
}), _t = /* @__PURE__ */ _(yt, [["__scopeId", "data-v-4d584b03"]]), gt = /* @__PURE__ */ b({
|
|
848
849
|
__name: "t-toolbar",
|
|
849
850
|
props: {
|
|
850
851
|
placement: { default: null },
|
|
@@ -852,7 +853,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
852
853
|
size: { default: "50px" }
|
|
853
854
|
},
|
|
854
855
|
setup(t) {
|
|
855
|
-
const o = t, e = pe("cableState"), s =
|
|
856
|
+
const o = t, e = pe("cableState"), s = x(() => o?.placement || e?.placement);
|
|
856
857
|
return (n, l) => (i(), p("div", {
|
|
857
858
|
class: B(["t-toolbar", { [s.value]: !0, safe: o.safe }]),
|
|
858
859
|
style: T({ "--t-size-toolbar": o.size })
|
|
@@ -862,14 +863,14 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
862
863
|
])
|
|
863
864
|
], 6));
|
|
864
865
|
}
|
|
865
|
-
}), bt = /* @__PURE__ */ _(gt, [["__scopeId", "data-v-1ee9866d"]]), ht = /* @__PURE__ */
|
|
866
|
+
}), bt = /* @__PURE__ */ _(gt, [["__scopeId", "data-v-1ee9866d"]]), ht = /* @__PURE__ */ b({
|
|
866
867
|
__name: "t-back-button",
|
|
867
868
|
props: {
|
|
868
869
|
to: {},
|
|
869
870
|
router: {}
|
|
870
871
|
},
|
|
871
872
|
setup(t) {
|
|
872
|
-
const o = t, e =
|
|
873
|
+
const o = t, e = we(), s = o.router || fe(), n = (l) => {
|
|
873
874
|
if (e.onBack) {
|
|
874
875
|
e.onBack(l);
|
|
875
876
|
return;
|
|
@@ -884,16 +885,16 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
884
885
|
g(l.$slots, "default", {}, () => [
|
|
885
886
|
u[0] || (u[0] = $("i", { class: "ri-arrow-left-s-line" }, null, -1))
|
|
886
887
|
], !0)
|
|
887
|
-
])) :
|
|
888
|
+
])) : z("", !0);
|
|
888
889
|
}
|
|
889
|
-
}), kt = /* @__PURE__ */ _(ht, [["__scopeId", "data-v-
|
|
890
|
+
}), kt = /* @__PURE__ */ _(ht, [["__scopeId", "data-v-437fb635"]]), $t = /* @__PURE__ */ b({
|
|
890
891
|
__name: "t-text",
|
|
891
892
|
props: {
|
|
892
893
|
color: { default: "var(--t-color-text)" },
|
|
893
894
|
size: { default: "standard" }
|
|
894
895
|
},
|
|
895
896
|
setup(t) {
|
|
896
|
-
const o = t, e =
|
|
897
|
+
const o = t, e = x(() => {
|
|
897
898
|
let s, n = o.color;
|
|
898
899
|
return o.size == "standard" ? s = "var(--t-fs-10)" : o.size == "small" ? s = "var(--t-fs-08)" : o.size == "large" ? s = "var(--t-fs-12)" : s = o.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (n = `var(--t-color-status-${o.color})`), {
|
|
899
900
|
"--color": n,
|
|
@@ -907,7 +908,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
907
908
|
g(s.$slots, "default", {}, void 0, !0)
|
|
908
909
|
], 4));
|
|
909
910
|
}
|
|
910
|
-
}), ne = /* @__PURE__ */ _($t, [["__scopeId", "data-v-f0f94f05"]]),
|
|
911
|
+
}), ne = /* @__PURE__ */ _($t, [["__scopeId", "data-v-f0f94f05"]]), wt = /* @__PURE__ */ b({
|
|
911
912
|
__name: "t-gesture-indicator",
|
|
912
913
|
props: {
|
|
913
914
|
placement: { default: "bottom" }
|
|
@@ -917,7 +918,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
917
918
|
class: B(["t-gesture-indicator", { [o.placement]: !0 }])
|
|
918
919
|
}, null, 2));
|
|
919
920
|
}
|
|
920
|
-
}), he = /* @__PURE__ */ _(
|
|
921
|
+
}), he = /* @__PURE__ */ _(wt, [["__scopeId", "data-v-ed8f7308"]]), xt = /* @__PURE__ */ b({
|
|
921
922
|
__name: "t-sheet",
|
|
922
923
|
props: {
|
|
923
924
|
background: { default: "var(--t-color-surface)" },
|
|
@@ -930,13 +931,15 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
930
931
|
backdrop: { type: Boolean, default: !0 },
|
|
931
932
|
rounded: { type: Boolean, default: !0 },
|
|
932
933
|
indicator: { type: Boolean, default: !0 },
|
|
934
|
+
duration: { default: 200 },
|
|
935
|
+
bounce: {},
|
|
933
936
|
style: {}
|
|
934
937
|
},
|
|
935
938
|
emits: ["dismiss"],
|
|
936
939
|
setup(t, { emit: o }) {
|
|
937
940
|
const e = t, s = o, n = m(), l = m(), u = m(!1);
|
|
938
941
|
let r = null;
|
|
939
|
-
const v =
|
|
942
|
+
const v = x(() => {
|
|
940
943
|
if (e.placement == "bottom") return "down";
|
|
941
944
|
if (e.placement == "top") return "up";
|
|
942
945
|
if (e.placement == "left") return "left";
|
|
@@ -948,7 +951,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
948
951
|
u.value = !1;
|
|
949
952
|
}, 300);
|
|
950
953
|
};
|
|
951
|
-
return
|
|
954
|
+
return N(() => n.value, (a) => {
|
|
952
955
|
a && (r = ae(n.value, {
|
|
953
956
|
isMoving: !1,
|
|
954
957
|
options: {
|
|
@@ -965,9 +968,9 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
965
968
|
},
|
|
966
969
|
move({ deltaY: c, deltaX: f, initialDirection: k }) {
|
|
967
970
|
if (k != v.value) return;
|
|
968
|
-
let
|
|
969
|
-
e.placement == "bottom" || e.placement == "top" ?
|
|
970
|
-
contentTransform:
|
|
971
|
+
let h = 0;
|
|
972
|
+
e.placement == "bottom" || e.placement == "top" ? h = c : h = f, e.placement == "bottom" && (h = c > 0 ? c : 0), e.placement == "top" && (h = c < 0 ? c : 0), e.placement == "left" && (h = f < 0 ? f : 0), e.placement == "right" && (h = f > 0 ? f : 0), (e.placement == "bottom" && (h >= 10 || this.isMoving) || e.placement == "top" && (h <= -10 || this.isMoving) || e.placement == "left" && (h <= -10 || this.isMoving) || e.placement == "right" && (h >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
|
|
973
|
+
contentTransform: h + "px",
|
|
971
974
|
transition: "0s"
|
|
972
975
|
}));
|
|
973
976
|
},
|
|
@@ -976,8 +979,8 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
976
979
|
l.value.open();
|
|
977
980
|
return;
|
|
978
981
|
}
|
|
979
|
-
let
|
|
980
|
-
e.placement == "bottom" || e.placement == "top" ? (
|
|
982
|
+
let h, W, w;
|
|
983
|
+
e.placement == "bottom" || e.placement == "top" ? (h = n.value.offsetHeight, w = c) : (h = n.value.offsetWidth, w = f), W = w / h * 100, W > 50 ? s("dismiss", "gesture") : l.value.open();
|
|
981
984
|
},
|
|
982
985
|
cancel() {
|
|
983
986
|
this.isMoving = !1, d(), l.value.open();
|
|
@@ -988,6 +991,8 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
988
991
|
}), (a, c) => (i(), V(H, {
|
|
989
992
|
ref_key: "present",
|
|
990
993
|
ref: l,
|
|
994
|
+
duration: e.duration,
|
|
995
|
+
bounce: e.bounce,
|
|
991
996
|
class: B(e.class),
|
|
992
997
|
placement: e.placement,
|
|
993
998
|
backdrop: a.backdrop,
|
|
@@ -1000,7 +1005,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
1000
1005
|
e.gesture && e.indicator && e.placement != "center" ? (i(), V(he, {
|
|
1001
1006
|
key: 0,
|
|
1002
1007
|
placement: e.placement
|
|
1003
|
-
}, null, 8, ["placement"])) :
|
|
1008
|
+
}, null, 8, ["placement"])) : z("", !0),
|
|
1004
1009
|
$("div", {
|
|
1005
1010
|
class: B(["t-sheet", { fullscreen: e.fullscreen, [e.placement]: !0, rounded: a.rounded }]),
|
|
1006
1011
|
style: T({ "--background": e.background }),
|
|
@@ -1011,9 +1016,9 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
1011
1016
|
], 6)
|
|
1012
1017
|
]),
|
|
1013
1018
|
_: 3
|
|
1014
|
-
}, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
|
|
1019
|
+
}, 8, ["duration", "bounce", "class", "placement", "backdrop", "visible", "keepalive", "style"]));
|
|
1015
1020
|
}
|
|
1016
|
-
}), Tt = /* @__PURE__ */ _(
|
|
1021
|
+
}), Tt = /* @__PURE__ */ _(xt, [["__scopeId", "data-v-7592e0e6"]]), St = { class: "t-input-label" }, Bt = { class: "t-input-content" }, Ct = ["placeholder", "value", "type", "readonly"], It = /* @__PURE__ */ b({
|
|
1017
1022
|
__name: "t-input",
|
|
1018
1023
|
props: {
|
|
1019
1024
|
size: { default: "standard" },
|
|
@@ -1029,7 +1034,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
1029
1034
|
},
|
|
1030
1035
|
emits: ["update:modelValue"],
|
|
1031
1036
|
setup(t, { emit: o }) {
|
|
1032
|
-
const e = t, s = o, n = m(!1), l = m(null), u =
|
|
1037
|
+
const e = t, s = o, n = m(!1), l = m(null), u = x(
|
|
1033
1038
|
() => !(e.modelValue === "" || e.modelValue == null)
|
|
1034
1039
|
), r = (d) => {
|
|
1035
1040
|
s("update:modelValue", d.target.value);
|
|
@@ -1063,7 +1068,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
1063
1068
|
onFocus: v,
|
|
1064
1069
|
onBlur: y,
|
|
1065
1070
|
readonly: d.readonly
|
|
1066
|
-
}, null, 40,
|
|
1071
|
+
}, null, 40, Ct),
|
|
1067
1072
|
g(d.$slots, "end", {}, void 0, !0)
|
|
1068
1073
|
])
|
|
1069
1074
|
]),
|
|
@@ -1083,10 +1088,10 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
|
|
|
1083
1088
|
M(A(d.help), 1)
|
|
1084
1089
|
]),
|
|
1085
1090
|
_: 1
|
|
1086
|
-
})) :
|
|
1091
|
+
})) : z("", !0)
|
|
1087
1092
|
], 2));
|
|
1088
1093
|
}
|
|
1089
|
-
}),
|
|
1094
|
+
}), zt = /* @__PURE__ */ _(It, [["__scopeId", "data-v-11ddaa71"]]), Et = {};
|
|
1090
1095
|
function Vt(t, o) {
|
|
1091
1096
|
return i(), p("textarea");
|
|
1092
1097
|
}
|
|
@@ -1094,15 +1099,16 @@ const Pt = /* @__PURE__ */ _(Et, [["render", Vt]]), Rt = {};
|
|
|
1094
1099
|
function At(t, o) {
|
|
1095
1100
|
return i(), p("div");
|
|
1096
1101
|
}
|
|
1097
|
-
const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = {
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
}
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1102
|
+
const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt = /* @__PURE__ */ b({
|
|
1103
|
+
__name: "t-grid",
|
|
1104
|
+
props: {
|
|
1105
|
+
gap: { default: 0 },
|
|
1106
|
+
template: { default: 1 }
|
|
1107
|
+
},
|
|
1108
|
+
setup(t) {
|
|
1109
|
+
return (o, e) => (i(), p("div", Xt));
|
|
1110
|
+
}
|
|
1111
|
+
}), Wt = /* @__PURE__ */ _(Dt, [["__scopeId", "data-v-93ba455c"]]), Nt = /* @__PURE__ */ b({
|
|
1106
1112
|
__name: "t-divider",
|
|
1107
1113
|
props: {
|
|
1108
1114
|
direction: { default: "horizontal" }
|
|
@@ -1113,20 +1119,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1113
1119
|
class: B(["t-divider", { [o.direction]: !0 }])
|
|
1114
1120
|
}, null, 2));
|
|
1115
1121
|
}
|
|
1116
|
-
}),
|
|
1122
|
+
}), qt = /* @__PURE__ */ _(Nt, [["__scopeId", "data-v-47ee8991"]]), Mt = /* @__PURE__ */ b({
|
|
1117
1123
|
__name: "t-toggle-password",
|
|
1118
1124
|
props: {
|
|
1119
1125
|
color: { default: "warning" }
|
|
1120
1126
|
},
|
|
1121
1127
|
emits: ["change"],
|
|
1122
1128
|
setup(t, { emit: o }) {
|
|
1123
|
-
const e = t, s = o, n = m(!1), l = m(), u =
|
|
1129
|
+
const e = t, s = o, n = m(!1), l = m(), u = x(() => {
|
|
1124
1130
|
let y = e.color;
|
|
1125
1131
|
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) && (y = `var(--t-color-status-${e.color})`), {
|
|
1126
1132
|
"--color": y
|
|
1127
1133
|
};
|
|
1128
1134
|
}), r = () => l.value?.parentElement?.querySelector?.("input");
|
|
1129
|
-
|
|
1135
|
+
j(() => {
|
|
1130
1136
|
let y = r();
|
|
1131
1137
|
y && (n.value = y.type != "password", s("change", n.value));
|
|
1132
1138
|
});
|
|
@@ -1143,20 +1149,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1143
1149
|
}, [
|
|
1144
1150
|
n.value ? g(y.$slots, "on", { key: 0 }, () => [
|
|
1145
1151
|
d[0] || (d[0] = $("i", { class: "ri-eye-line" }, null, -1))
|
|
1146
|
-
], !0) :
|
|
1147
|
-
n.value ?
|
|
1152
|
+
], !0) : z("", !0),
|
|
1153
|
+
n.value ? z("", !0) : g(y.$slots, "off", { key: 1 }, () => [
|
|
1148
1154
|
d[1] || (d[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
|
|
1149
1155
|
], !0)
|
|
1150
1156
|
], 4));
|
|
1151
1157
|
}
|
|
1152
|
-
}),
|
|
1158
|
+
}), Lt = /* @__PURE__ */ _(Mt, [["__scopeId", "data-v-3268e9e3"]]), Ht = /* @__PURE__ */ b({
|
|
1153
1159
|
__name: "t-avatar",
|
|
1154
1160
|
props: {
|
|
1155
1161
|
square: { type: Boolean, default: !1 },
|
|
1156
1162
|
size: { default: "standard" }
|
|
1157
1163
|
},
|
|
1158
1164
|
setup(t) {
|
|
1159
|
-
const o = t, e =
|
|
1165
|
+
const o = t, e = x(() => o.size == "small" ? "24px" : o.size == "standard" ? "40px" : o.size == "large" ? "60px" : o.size);
|
|
1160
1166
|
return (s, n) => (i(), p("div", {
|
|
1161
1167
|
class: B(["t-avatar", { square: s.square }]),
|
|
1162
1168
|
style: T({ "--size": e.value })
|
|
@@ -1164,13 +1170,13 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1164
1170
|
g(s.$slots, "default", {}, void 0, !0)
|
|
1165
1171
|
], 6));
|
|
1166
1172
|
}
|
|
1167
|
-
}),
|
|
1173
|
+
}), Ft = /* @__PURE__ */ _(Ht, [["__scopeId", "data-v-1d223827"]]), Kt = { class: "t-collapse-title" }, Ut = {
|
|
1168
1174
|
key: 0,
|
|
1169
1175
|
class: "icon"
|
|
1170
|
-
},
|
|
1176
|
+
}, jt = {
|
|
1171
1177
|
key: 1,
|
|
1172
1178
|
class: "icon"
|
|
1173
|
-
},
|
|
1179
|
+
}, Gt = { class: "t-collapse-content" }, Jt = /* @__PURE__ */ b({
|
|
1174
1180
|
__name: "t-collapse",
|
|
1175
1181
|
props: {
|
|
1176
1182
|
title: {}
|
|
@@ -1189,20 +1195,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1189
1195
|
onClick: r
|
|
1190
1196
|
}, [
|
|
1191
1197
|
g(v.$slots, "icon"),
|
|
1192
|
-
$("div",
|
|
1198
|
+
$("div", Kt, [
|
|
1193
1199
|
g(v.$slots, "title", {}, () => [
|
|
1194
1200
|
M(A(e.title), 1)
|
|
1195
1201
|
])
|
|
1196
1202
|
]),
|
|
1197
1203
|
g(v.$slots, "toggle", {}, () => [
|
|
1198
|
-
n.value ? (i(), p("div",
|
|
1204
|
+
n.value ? (i(), p("div", Ut, [...y[0] || (y[0] = [
|
|
1199
1205
|
$("i", { class: "ri-arrow-up-s-line" }, null, -1)
|
|
1200
|
-
])])) : (i(), p("div",
|
|
1206
|
+
])])) : (i(), p("div", jt, [...y[1] || (y[1] = [
|
|
1201
1207
|
$("i", { class: "ri-arrow-down-s-line" }, null, -1)
|
|
1202
1208
|
])]))
|
|
1203
1209
|
])
|
|
1204
1210
|
]),
|
|
1205
|
-
$("div",
|
|
1211
|
+
$("div", Gt, [
|
|
1206
1212
|
$("div", {
|
|
1207
1213
|
ref_key: "content",
|
|
1208
1214
|
ref: u
|
|
@@ -1214,7 +1220,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1214
1220
|
])
|
|
1215
1221
|
], 6));
|
|
1216
1222
|
}
|
|
1217
|
-
}),
|
|
1223
|
+
}), Qt = /* @__PURE__ */ b({
|
|
1218
1224
|
__name: "t-switch",
|
|
1219
1225
|
props: {
|
|
1220
1226
|
modelValue: { type: Boolean },
|
|
@@ -1224,7 +1230,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1224
1230
|
setup(t, { emit: o }) {
|
|
1225
1231
|
const e = t, s = o, n = () => {
|
|
1226
1232
|
s("update:modelValue", !e.modelValue);
|
|
1227
|
-
}, l =
|
|
1233
|
+
}, l = x(() => {
|
|
1228
1234
|
let u = {
|
|
1229
1235
|
"--background": e.color,
|
|
1230
1236
|
"--color": "#ffffff"
|
|
@@ -1242,20 +1248,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1242
1248
|
$("div", { class: "t-switch-icon" }, null, -1)
|
|
1243
1249
|
])], 6));
|
|
1244
1250
|
}
|
|
1245
|
-
}),
|
|
1251
|
+
}), Zt = /* @__PURE__ */ _(Qt, [["__scopeId", "data-v-3616970e"]]), Yt = /* @__PURE__ */ b({
|
|
1246
1252
|
__name: "t-tab",
|
|
1247
1253
|
props: {
|
|
1248
1254
|
value: {},
|
|
1249
1255
|
disabled: { type: Boolean, default: !1 }
|
|
1250
1256
|
},
|
|
1251
1257
|
setup(t) {
|
|
1252
|
-
const o = t, e = pe("tabsState"), s =
|
|
1258
|
+
const o = t, e = pe("tabsState"), s = x(() => e.activeValue.value === o.value), n = () => {
|
|
1253
1259
|
o.disabled || e.setValue(o.value);
|
|
1254
1260
|
};
|
|
1255
1261
|
return (l, u) => (i(), p("li", {
|
|
1256
1262
|
class: B(["t-tab", { active: s.value }])
|
|
1257
1263
|
}, [
|
|
1258
|
-
|
|
1264
|
+
G(Y, {
|
|
1259
1265
|
variant: "text",
|
|
1260
1266
|
onClick: n,
|
|
1261
1267
|
size: O(e).size,
|
|
@@ -1268,7 +1274,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1268
1274
|
}, 8, ["size", "color"])
|
|
1269
1275
|
], 2));
|
|
1270
1276
|
}
|
|
1271
|
-
}),
|
|
1277
|
+
}), eo = /* @__PURE__ */ _(Yt, [["__scopeId", "data-v-4b7f4e98"]]), to = /* @__PURE__ */ b({
|
|
1272
1278
|
__name: "t-tabs",
|
|
1273
1279
|
props: {
|
|
1274
1280
|
placement: { default: "top-start" },
|
|
@@ -1282,10 +1288,10 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1282
1288
|
},
|
|
1283
1289
|
emits: ["update:modelValue"],
|
|
1284
1290
|
setup(t, { emit: o }) {
|
|
1285
|
-
const e = t, s = o, n = m("0px"), l = m(0), u = m(0), r = m(), v =
|
|
1291
|
+
const e = t, s = o, n = m("0px"), l = m(0), u = m(0), r = m(), v = x(() => {
|
|
1286
1292
|
let a = "", c = "";
|
|
1287
1293
|
return e.variant == "text" && (a = "transparent", ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? c = `var(--t-color-status-${e.color})` : c = e.color), e.variant == "border-under" && (c = "currentColor", ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? a = `var(--t-color-status-${e.color})` : a = e.color), e.variant == "tag" && (["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? (a = `var(--t-color-status-${e.color})`, c = `var(--t-color-status-${e.color}-text)`) : (a = e.color, c = "currentColor")), { background: a, text: c };
|
|
1288
|
-
}), y =
|
|
1294
|
+
}), y = x(() => e.variant == "border-under" ? {
|
|
1289
1295
|
"--transform": n.value,
|
|
1290
1296
|
"--border": e.border + "px"
|
|
1291
1297
|
} : e.variant == "tag" ? {
|
|
@@ -1324,16 +1330,16 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1324
1330
|
}
|
|
1325
1331
|
};
|
|
1326
1332
|
return de("tabsState", {
|
|
1327
|
-
activeValue:
|
|
1333
|
+
activeValue: x(() => e.modelValue),
|
|
1328
1334
|
color: v.value,
|
|
1329
1335
|
size: e.size,
|
|
1330
1336
|
variant: e.variant,
|
|
1331
1337
|
setValue: (a) => {
|
|
1332
1338
|
s("update:modelValue", a);
|
|
1333
1339
|
}
|
|
1334
|
-
}),
|
|
1340
|
+
}), N(() => e.modelValue, async () => {
|
|
1335
1341
|
await ce(), d();
|
|
1336
|
-
}),
|
|
1342
|
+
}), j(async () => {
|
|
1337
1343
|
await ce(), d();
|
|
1338
1344
|
}), (a, c) => (i(), p("ul", {
|
|
1339
1345
|
ref_key: "container",
|
|
@@ -1344,20 +1350,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1344
1350
|
g(a.$slots, "default", {}, void 0, !0)
|
|
1345
1351
|
], 6));
|
|
1346
1352
|
}
|
|
1347
|
-
}),
|
|
1353
|
+
}), oo = /* @__PURE__ */ _(to, [["__scopeId", "data-v-8d370631"]]), so = /* @__PURE__ */ b({
|
|
1348
1354
|
__name: "t-loading-app",
|
|
1349
1355
|
setup(t) {
|
|
1350
1356
|
return (o, e) => (i(), V(ge, null, {
|
|
1351
1357
|
default: P(() => [
|
|
1352
|
-
|
|
1358
|
+
G(Z, { type: "spinner" })
|
|
1353
1359
|
]),
|
|
1354
1360
|
_: 1
|
|
1355
1361
|
}));
|
|
1356
1362
|
}
|
|
1357
|
-
}),
|
|
1363
|
+
}), no = /* @__PURE__ */ _(so, [["__scopeId", "data-v-1436aa9f"]]), ro = { key: 0 }, ao = {
|
|
1358
1364
|
key: 0,
|
|
1359
1365
|
class: "t-checkbox-label"
|
|
1360
|
-
},
|
|
1366
|
+
}, lo = /* @__PURE__ */ b({
|
|
1361
1367
|
__name: "t-checkbox",
|
|
1362
1368
|
props: {
|
|
1363
1369
|
label: { default: "" },
|
|
@@ -1370,7 +1376,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1370
1376
|
},
|
|
1371
1377
|
emits: ["update:modelValue"],
|
|
1372
1378
|
setup(t, { emit: o }) {
|
|
1373
|
-
const e = t, s = o, n =
|
|
1379
|
+
const e = t, s = o, n = x(() => {
|
|
1374
1380
|
let r = {
|
|
1375
1381
|
"--background": e.color,
|
|
1376
1382
|
"--color": "#ffffff"
|
|
@@ -1379,7 +1385,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1379
1385
|
"--background": `var(--t-color-status-${e.color})`,
|
|
1380
1386
|
"--color": `var(--t-color-status-${e.color}-text)`
|
|
1381
1387
|
}), r;
|
|
1382
|
-
}), l =
|
|
1388
|
+
}), l = x(() => e.multiple ? e.modelValue.includes(e.value) : e.value === void 0 ? e.modelValue : e.modelValue == e.value), u = () => {
|
|
1383
1389
|
if (e.multiple) {
|
|
1384
1390
|
let r = e.modelValue;
|
|
1385
1391
|
e.modelValue.includes(e.value) ? r.splice(r.indexOf(e.value), 1) : r.push(e.value), s("update:modelValue", r);
|
|
@@ -1393,17 +1399,17 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1393
1399
|
$("div", {
|
|
1394
1400
|
class: B(`t-checkbox-${r.type}`)
|
|
1395
1401
|
}, [
|
|
1396
|
-
r.type == "radio" ? (i(), p("div",
|
|
1402
|
+
r.type == "radio" ? (i(), p("div", ro)) : z("", !0),
|
|
1397
1403
|
r.type == "check" ? g(r.$slots, "icon", { key: 1 }, () => [
|
|
1398
1404
|
v[0] || (v[0] = $("i", { class: "ri-check-line" }, null, -1))
|
|
1399
|
-
], !0) :
|
|
1405
|
+
], !0) : z("", !0)
|
|
1400
1406
|
], 2),
|
|
1401
1407
|
g(r.$slots, "label", {}, () => [
|
|
1402
|
-
r.label ? (i(), p("span",
|
|
1408
|
+
r.label ? (i(), p("span", ao, A(e.label), 1)) : z("", !0)
|
|
1403
1409
|
], !0)
|
|
1404
1410
|
], 6));
|
|
1405
1411
|
}
|
|
1406
|
-
}),
|
|
1412
|
+
}), co = /* @__PURE__ */ _(lo, [["__scopeId", "data-v-5cc0c692"]]), io = /* @__PURE__ */ b({
|
|
1407
1413
|
__name: "t-keyboard-space",
|
|
1408
1414
|
setup(t) {
|
|
1409
1415
|
const { height: o } = _e();
|
|
@@ -1412,7 +1418,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1412
1418
|
style: T({ "--height": O(o) + "px" })
|
|
1413
1419
|
}, null, 4));
|
|
1414
1420
|
}
|
|
1415
|
-
}),
|
|
1421
|
+
}), uo = /* @__PURE__ */ _(io, [["__scopeId", "data-v-4b06018d"]]), po = /* @__PURE__ */ b({
|
|
1416
1422
|
__name: "t-skeleton",
|
|
1417
1423
|
props: {
|
|
1418
1424
|
width: { default: "100%" },
|
|
@@ -1421,7 +1427,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1421
1427
|
color: { default: null }
|
|
1422
1428
|
},
|
|
1423
1429
|
setup(t) {
|
|
1424
|
-
const o = t, e =
|
|
1430
|
+
const o = t, e = x(() => ({
|
|
1425
1431
|
"--width": o.width,
|
|
1426
1432
|
"--height": o.height,
|
|
1427
1433
|
"--radius": o.radius
|
|
@@ -1431,13 +1437,13 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1431
1437
|
style: T(e.value)
|
|
1432
1438
|
}, null, 4));
|
|
1433
1439
|
}
|
|
1434
|
-
}),
|
|
1440
|
+
}), fo = /* @__PURE__ */ _(po, [["__scopeId", "data-v-877bbdb5"]]), mo = /* @__PURE__ */ b({
|
|
1435
1441
|
__name: "t-ripple",
|
|
1436
1442
|
props: {
|
|
1437
1443
|
color: { default: "primary" }
|
|
1438
1444
|
},
|
|
1439
1445
|
setup(t) {
|
|
1440
|
-
const o = t, e =
|
|
1446
|
+
const o = t, e = x(() => {
|
|
1441
1447
|
let s = {};
|
|
1442
1448
|
return o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? s = {
|
|
1443
1449
|
"--color": "var(--t-color-status-" + o.color + ")"
|
|
@@ -1452,18 +1458,18 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
|
|
|
1452
1458
|
style: T(e.value)
|
|
1453
1459
|
}, null, 4));
|
|
1454
1460
|
}
|
|
1455
|
-
}),
|
|
1461
|
+
}), vo = /* @__PURE__ */ _(mo, [["__scopeId", "data-v-42cb3d71"]]), wo = () => ({
|
|
1456
1462
|
install: (t) => {
|
|
1457
|
-
Be(), t.component("t-app", Ee), t.component("t-screen", be), t.component("t-swipe-screen", _t), t.component("t-cable", at), t.component("t-toolbar", bt), t.component("t-content", ge), t.component("t-card", lt), t.component("t-refresher", pt), t.component("t-button", Y), t.component("t-back-button", kt), t.component("t-present", H), t.component("t-text", ne), t.component("t-sheet", Tt), t.component("t-gesture-indicator", he), t.component("t-input",
|
|
1463
|
+
Be(), t.component("t-app", Ee), t.component("t-screen", be), t.component("t-swipe-screen", _t), t.component("t-cable", at), t.component("t-toolbar", bt), t.component("t-content", ge), t.component("t-card", lt), t.component("t-refresher", pt), t.component("t-button", Y), t.component("t-back-button", kt), t.component("t-present", H), t.component("t-text", ne), t.component("t-sheet", Tt), t.component("t-gesture-indicator", he), t.component("t-input", zt), t.component("t-textarea", Pt), t.component("t-rich-text", Ot), t.component("t-grid", Wt), t.component("t-divider", qt), t.component("t-toggle-password", Lt), t.component("t-loading-icon", Z), t.component("t-alert", me), t.component("t-avatar", Ft), t.component("t-collapse", Jt), t.component("t-toast", ye), t.component("t-switch", Zt), t.component("t-tab", eo), t.component("t-tabs", oo), t.component("t-loading-app", no), t.component("t-checkbox", co), t.component("t-keyboard-space", uo), t.component("t-skeleton", fo), t.component("t-ripple", vo);
|
|
1458
1464
|
}
|
|
1459
1465
|
});
|
|
1460
1466
|
export {
|
|
1461
1467
|
Se as blurCurrentActive,
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1468
|
+
ho as createAction,
|
|
1469
|
+
bo as createAlert,
|
|
1470
|
+
ko as createLoading,
|
|
1471
|
+
$o as createToast,
|
|
1472
|
+
wo as createToife,
|
|
1467
1473
|
Te as isFormElement,
|
|
1468
1474
|
Ke as presentController,
|
|
1469
1475
|
S as screenController,
|