@toife/vue 1.2.64 → 1.2.66
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-refresher.vue.d.ts +4 -0
- package/dist/index.css +1 -1
- package/dist/index.es.js +455 -446
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createElementBlock as p, openBlock as
|
|
2
|
-
import { gesture as
|
|
1
|
+
import { createElementBlock as p, openBlock as u, renderSlot as b, defineComponent as h, ref as m, computed as w, reactive as le, watch as N, Fragment as O, withDirectives as W, createCommentVNode as E, normalizeStyle as T, normalizeClass as S, vShow as H, createElementVNode as k, createVNode as G, createBlock as C, withCtx as P, toDisplayString as R, renderList as F, createTextVNode as q, createApp as U, h as j, provide as ce, unref as V, onUnmounted as oe, onMounted as se, resolveDynamicComponent as ge, markRaw as be, inject as ie, useAttrs as he } from "vue";
|
|
2
|
+
import { gesture as re } from "@toife/gesture";
|
|
3
3
|
import { useRouter as ue, useRoute as ke } from "vue-router";
|
|
4
4
|
const $e = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isContentEditable), we = () => {
|
|
5
5
|
const e = document.activeElement;
|
|
@@ -8,18 +8,18 @@ const $e = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isC
|
|
|
8
8
|
document.addEventListener("contextmenu", (e) => e.preventDefault()), document.addEventListener("selectstart", (e) => e.preventDefault()), document.addEventListener("pointerup", (e) => {
|
|
9
9
|
!$e(e.target) && we();
|
|
10
10
|
});
|
|
11
|
-
},
|
|
11
|
+
}, v = (e, t) => {
|
|
12
12
|
const o = e.__vccOpts || e;
|
|
13
|
-
for (const [s,
|
|
14
|
-
o[s] =
|
|
13
|
+
for (const [s, r] of t)
|
|
14
|
+
o[s] = r;
|
|
15
15
|
return o;
|
|
16
16
|
}, xe = {}, Se = { class: "t-app" };
|
|
17
17
|
function ze(e, t) {
|
|
18
|
-
return
|
|
19
|
-
|
|
18
|
+
return u(), p("div", Se, [
|
|
19
|
+
b(e.$slots, "default")
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
|
-
const Ie = /* @__PURE__ */
|
|
22
|
+
const Ie = /* @__PURE__ */ v(xe, [["render", ze]]), Ee = /* @__PURE__ */ h({
|
|
23
23
|
__name: "t-present",
|
|
24
24
|
props: {
|
|
25
25
|
keepalive: { type: Boolean, default: !0 },
|
|
@@ -31,68 +31,68 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["dismiss"],
|
|
33
33
|
setup(e, { expose: t, emit: o }) {
|
|
34
|
-
const s = m(0),
|
|
34
|
+
const s = m(0), r = m(!1), l = m(), d = m(), n = e, c = o, i = w(() => r.value || n.keepalive), _ = le({
|
|
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
|
-
}),
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
|
|
39
|
+
}), a = (f) => {
|
|
40
|
+
n.backdrop ? f?.backdropOpacity && (_["--t-present-backdrop-opacity"] = f.backdropOpacity) : _["--t-present-backdrop-opacity"] = "0", f?.transition && (_["--t-present-transition"] = f.transition, _["--t-present-transition"] = f.transition), f?.contentTransform && (_["--t-present-content-transform"] = f.contentTransform), f?.contentOpacity && (_["--t-present-content-opacity"] = f.contentOpacity);
|
|
41
|
+
}, y = () => {
|
|
42
|
+
a({
|
|
43
43
|
contentTransform: "0px",
|
|
44
44
|
transition: "0.2s",
|
|
45
45
|
backdropOpacity: "0.4",
|
|
46
46
|
contentOpacity: "1"
|
|
47
47
|
});
|
|
48
|
-
},
|
|
49
|
-
let f = "0px",
|
|
50
|
-
|
|
48
|
+
}, g = () => {
|
|
49
|
+
let f = "0px", X = "1";
|
|
50
|
+
n.placement == "bottom" || n.placement == "right" ? f = "100%" : n.placement == "top" || n.placement == "left" ? f = "-100%" : n.placement == "center" && (f = "0px", X = "0"), a({
|
|
51
51
|
contentTransform: f,
|
|
52
52
|
transition: "0.2s",
|
|
53
|
-
contentOpacity:
|
|
53
|
+
contentOpacity: X,
|
|
54
54
|
backdropOpacity: "0"
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
}, 50)) : (
|
|
61
|
-
|
|
57
|
+
N(() => n.visible, () => {
|
|
58
|
+
n.visible ? (r.value = !0, s.value = We.getNewIndex(), setTimeout(() => {
|
|
59
|
+
y();
|
|
60
|
+
}, 50)) : (g(), setTimeout(() => {
|
|
61
|
+
r.value = !1;
|
|
62
62
|
}, 200));
|
|
63
63
|
}), t({
|
|
64
|
-
render:
|
|
65
|
-
open:
|
|
66
|
-
close:
|
|
64
|
+
render: a,
|
|
65
|
+
open: y,
|
|
66
|
+
close: g
|
|
67
67
|
});
|
|
68
|
-
const
|
|
69
|
-
f.preventDefault(),
|
|
68
|
+
const $ = (f) => {
|
|
69
|
+
f.preventDefault(), c("dismiss", "backdrop");
|
|
70
70
|
};
|
|
71
|
-
return
|
|
72
|
-
|
|
71
|
+
return g(), (f, X) => (u(), p(O, null, [
|
|
72
|
+
i.value ? W((u(), p("div", {
|
|
73
73
|
key: 0,
|
|
74
|
-
class:
|
|
74
|
+
class: S(["t-present", [{ [f.placement]: !0 }, n.class]]),
|
|
75
75
|
ref_key: "present",
|
|
76
76
|
ref: d,
|
|
77
|
-
style:
|
|
77
|
+
style: T([_, { zIndex: s.value }, n.style])
|
|
78
78
|
}, [
|
|
79
|
-
|
|
79
|
+
b(f.$slots, "default", {}, void 0, !0)
|
|
80
80
|
], 6)), [
|
|
81
|
-
[H,
|
|
81
|
+
[H, r.value]
|
|
82
82
|
]) : E("", !0),
|
|
83
|
-
|
|
83
|
+
i.value ? W((u(), p("div", {
|
|
84
84
|
key: 1,
|
|
85
85
|
class: "t-present-backdrop",
|
|
86
|
-
onClick:
|
|
86
|
+
onClick: $,
|
|
87
87
|
ref_key: "backdrop",
|
|
88
88
|
ref: l,
|
|
89
|
-
style:
|
|
89
|
+
style: T([_, { zIndex: s.value - 1 }, n.style])
|
|
90
90
|
}, null, 4)), [
|
|
91
|
-
[H,
|
|
91
|
+
[H, r.value]
|
|
92
92
|
]) : E("", !0)
|
|
93
93
|
], 64));
|
|
94
94
|
}
|
|
95
|
-
}),
|
|
95
|
+
}), M = /* @__PURE__ */ v(Ee, [["__scopeId", "data-v-8eb6e6e4"]]), Be = /* @__PURE__ */ h({
|
|
96
96
|
__name: "t-loading-icon",
|
|
97
97
|
props: {
|
|
98
98
|
size: {
|
|
@@ -105,9 +105,9 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
setup(e) {
|
|
108
|
-
return (t, o) => (
|
|
108
|
+
return (t, o) => (u(), p("span", {
|
|
109
109
|
class: "t-loading-icon",
|
|
110
|
-
style:
|
|
110
|
+
style: T({
|
|
111
111
|
width: e.size,
|
|
112
112
|
height: e.size,
|
|
113
113
|
borderTopColor: e.color
|
|
@@ -116,10 +116,10 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
116
116
|
"aria-label": "Loading..."
|
|
117
117
|
}, null, 4));
|
|
118
118
|
}
|
|
119
|
-
}), K = /* @__PURE__ */
|
|
119
|
+
}), K = /* @__PURE__ */ v(Be, [["__scopeId", "data-v-7c463303"]]), Ce = { class: "t-button-content" }, Ve = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "loader"
|
|
122
|
-
}, Pe = /* @__PURE__ */
|
|
122
|
+
}, Pe = /* @__PURE__ */ h({
|
|
123
123
|
__name: "t-button",
|
|
124
124
|
props: {
|
|
125
125
|
color: { default: null },
|
|
@@ -132,7 +132,7 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
132
132
|
activeBackground: { type: Boolean, default: !1 }
|
|
133
133
|
},
|
|
134
134
|
setup(e) {
|
|
135
|
-
const t = e, o =
|
|
135
|
+
const t = e, o = w(() => {
|
|
136
136
|
let s;
|
|
137
137
|
return t.variant == "default" && (t.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? s = {
|
|
138
138
|
"--border": "none",
|
|
@@ -172,16 +172,16 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
172
172
|
"--background": "transparent"
|
|
173
173
|
}), s;
|
|
174
174
|
});
|
|
175
|
-
return (s,
|
|
176
|
-
class:
|
|
177
|
-
style:
|
|
175
|
+
return (s, r) => (u(), p("button", {
|
|
176
|
+
class: S(["t-button", { "active-background": t.activeBackground, rounded: t.rounded, block: t.block, ["size-" + t.size]: !0 }]),
|
|
177
|
+
style: T(o.value)
|
|
178
178
|
}, [
|
|
179
179
|
W(k("span", Ce, [
|
|
180
|
-
|
|
180
|
+
b(s.$slots, "default", {}, void 0, !0)
|
|
181
181
|
], 512), [
|
|
182
182
|
[H, !t.loading]
|
|
183
183
|
]),
|
|
184
|
-
t.loading ? (
|
|
184
|
+
t.loading ? (u(), p("span", Ve, [
|
|
185
185
|
G(K, {
|
|
186
186
|
color: "var(--color)",
|
|
187
187
|
type: t.loadingType
|
|
@@ -189,10 +189,10 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
189
189
|
])) : E("", !0)
|
|
190
190
|
], 6));
|
|
191
191
|
}
|
|
192
|
-
}), J = /* @__PURE__ */
|
|
192
|
+
}), J = /* @__PURE__ */ v(Pe, [["__scopeId", "data-v-185a9e49"]]), Ae = {
|
|
193
193
|
key: 0,
|
|
194
194
|
class: "t-alert-header"
|
|
195
|
-
}, Re = { class: "t-alert-content" },
|
|
195
|
+
}, Re = { class: "t-alert-content" }, De = { class: "t-alert-footer" }, Xe = /* @__PURE__ */ h({
|
|
196
196
|
__name: "t-alert",
|
|
197
197
|
props: {
|
|
198
198
|
title: {},
|
|
@@ -202,45 +202,45 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
202
202
|
},
|
|
203
203
|
emits: ["dismiss"],
|
|
204
204
|
setup(e, { expose: t, emit: o }) {
|
|
205
|
-
const s = e,
|
|
206
|
-
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
},
|
|
210
|
-
s.dismiss && s.dismiss.includes(
|
|
211
|
-
|
|
205
|
+
const s = e, r = m(!1), l = o, d = m(), n = m(!1), c = () => {
|
|
206
|
+
r.value = !0;
|
|
207
|
+
}, i = (a) => {
|
|
208
|
+
r.value = !1, a.handler && a.handler(), l("dismiss", "choose", a?.data);
|
|
209
|
+
}, _ = (a) => {
|
|
210
|
+
s.dismiss && s.dismiss.includes(a) ? (r.value = !1, l("dismiss", a)) : a == "backdrop" && (n.value = !0, setTimeout(() => {
|
|
211
|
+
n.value = !1;
|
|
212
212
|
}, 300));
|
|
213
213
|
};
|
|
214
214
|
return t({
|
|
215
|
-
open:
|
|
216
|
-
}), (
|
|
215
|
+
open: c
|
|
216
|
+
}), (a, y) => (u(), C(M, {
|
|
217
217
|
placement: "center",
|
|
218
218
|
backdrop: !0,
|
|
219
219
|
keepalive: !1,
|
|
220
|
-
visible:
|
|
221
|
-
onDismiss:
|
|
220
|
+
visible: r.value,
|
|
221
|
+
onDismiss: _
|
|
222
222
|
}, {
|
|
223
223
|
default: P(() => [
|
|
224
224
|
k("div", {
|
|
225
|
-
class:
|
|
225
|
+
class: S(["t-alert", { pop: n.value }]),
|
|
226
226
|
ref_key: "container",
|
|
227
227
|
ref: d
|
|
228
228
|
}, [
|
|
229
|
-
|
|
230
|
-
s.title ? (
|
|
229
|
+
b(a.$slots, "header", {}, () => [
|
|
230
|
+
s.title ? (u(), p("div", Ae, R(s.title), 1)) : E("", !0)
|
|
231
231
|
], !0),
|
|
232
|
-
|
|
232
|
+
b(a.$slots, "content", {}, () => [
|
|
233
233
|
k("div", Re, R(s.message), 1)
|
|
234
234
|
], !0),
|
|
235
|
-
|
|
236
|
-
k("div",
|
|
237
|
-
(
|
|
238
|
-
color:
|
|
239
|
-
variant:
|
|
240
|
-
onClick: (
|
|
235
|
+
b(a.$slots, "footer", {}, () => [
|
|
236
|
+
k("div", De, [
|
|
237
|
+
(u(!0), p(O, null, F(s.actions, (g) => (u(), C(J, {
|
|
238
|
+
color: g.color,
|
|
239
|
+
variant: g.variant,
|
|
240
|
+
onClick: ($) => i(g)
|
|
241
241
|
}, {
|
|
242
242
|
default: P(() => [
|
|
243
|
-
|
|
243
|
+
q(R(g.text), 1)
|
|
244
244
|
]),
|
|
245
245
|
_: 2
|
|
246
246
|
}, 1032, ["color", "variant", "onClick"]))), 256))
|
|
@@ -251,32 +251,32 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
251
251
|
_: 3
|
|
252
252
|
}, 8, ["visible"]));
|
|
253
253
|
}
|
|
254
|
-
}), de = /* @__PURE__ */
|
|
254
|
+
}), de = /* @__PURE__ */ v(Xe, [["__scopeId", "data-v-05d0c578"]]), ko = (e = {}) => ({
|
|
255
255
|
open() {
|
|
256
256
|
return new Promise((t) => {
|
|
257
257
|
let o = document.body.querySelector(".t-app");
|
|
258
258
|
if (!o) return;
|
|
259
|
-
const s = document.createElement("div"),
|
|
259
|
+
const s = document.createElement("div"), r = m();
|
|
260
260
|
o.appendChild(s);
|
|
261
261
|
const l = U({
|
|
262
262
|
render() {
|
|
263
263
|
return j(de, {
|
|
264
264
|
...e,
|
|
265
|
-
ref:
|
|
266
|
-
onDismiss: (d,
|
|
265
|
+
ref: r,
|
|
266
|
+
onDismiss: (d, n) => {
|
|
267
267
|
setTimeout(() => {
|
|
268
268
|
l.unmount(), s.remove();
|
|
269
|
-
}, 300), t({ type: d, data:
|
|
269
|
+
}, 300), t({ type: d, data: n });
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
272
|
}
|
|
273
273
|
});
|
|
274
274
|
l.mount(s), setTimeout(() => {
|
|
275
|
-
|
|
275
|
+
r.value?.open?.();
|
|
276
276
|
}, 50);
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
}),
|
|
279
|
+
}), Oe = /* @__PURE__ */ h({
|
|
280
280
|
__name: "t-action",
|
|
281
281
|
props: {
|
|
282
282
|
actions: {},
|
|
@@ -285,43 +285,43 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
285
285
|
},
|
|
286
286
|
emits: ["dismiss"],
|
|
287
287
|
setup(e, { expose: t, emit: o }) {
|
|
288
|
-
const s = e,
|
|
289
|
-
|
|
290
|
-
},
|
|
291
|
-
|
|
292
|
-
},
|
|
293
|
-
s.dismiss && s.dismiss.includes(
|
|
294
|
-
|
|
288
|
+
const s = e, r = m(!1), l = o, d = m(), n = m(!1), c = () => {
|
|
289
|
+
r.value = !0;
|
|
290
|
+
}, i = (a) => {
|
|
291
|
+
r.value = !1, a.handler && a.handler(), l("dismiss", "choose", a?.data);
|
|
292
|
+
}, _ = (a) => {
|
|
293
|
+
s.dismiss && s.dismiss.includes(a) ? (r.value = !1, l("dismiss", a)) : a == "backdrop" && (n.value = !0, setTimeout(() => {
|
|
294
|
+
n.value = !1;
|
|
295
295
|
}, 300));
|
|
296
296
|
};
|
|
297
|
-
return
|
|
298
|
-
|
|
297
|
+
return N(() => s.visible, (a) => {
|
|
298
|
+
a ? c() : close();
|
|
299
299
|
}), t({
|
|
300
|
-
open:
|
|
300
|
+
open: c,
|
|
301
301
|
close
|
|
302
|
-
}), (
|
|
302
|
+
}), (a, y) => (u(), C(M, {
|
|
303
303
|
placement: "bottom",
|
|
304
304
|
backdrop: !0,
|
|
305
305
|
keepalive: !1,
|
|
306
|
-
visible:
|
|
307
|
-
onDismiss:
|
|
306
|
+
visible: r.value,
|
|
307
|
+
onDismiss: _
|
|
308
308
|
}, {
|
|
309
309
|
default: P(() => [
|
|
310
310
|
k("div", {
|
|
311
|
-
class:
|
|
311
|
+
class: S(["t-action", { pop: n.value }]),
|
|
312
312
|
ref_key: "container",
|
|
313
313
|
ref: d
|
|
314
314
|
}, [
|
|
315
|
-
(
|
|
316
|
-
(
|
|
317
|
-
color:
|
|
318
|
-
size:
|
|
319
|
-
variant:
|
|
320
|
-
onClick: (f) =>
|
|
315
|
+
(u(!0), p(O, null, F(s.actions, (g) => (u(), p("div", null, [
|
|
316
|
+
(u(!0), p(O, null, F(g, ($) => (u(), C(J, {
|
|
317
|
+
color: $.color,
|
|
318
|
+
size: $.size,
|
|
319
|
+
variant: $.variant,
|
|
320
|
+
onClick: (f) => i($),
|
|
321
321
|
block: ""
|
|
322
322
|
}, {
|
|
323
323
|
default: P(() => [
|
|
324
|
-
|
|
324
|
+
q(R($.text), 1)
|
|
325
325
|
]),
|
|
326
326
|
_: 2
|
|
327
327
|
}, 1032, ["color", "size", "variant", "onClick"]))), 256))
|
|
@@ -331,55 +331,55 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
331
331
|
_: 1
|
|
332
332
|
}, 8, ["visible"]));
|
|
333
333
|
}
|
|
334
|
-
}),
|
|
334
|
+
}), Ne = /* @__PURE__ */ v(Oe, [["__scopeId", "data-v-e693a02a"]]), $o = (e = {}) => ({
|
|
335
335
|
open() {
|
|
336
336
|
return new Promise((t) => {
|
|
337
337
|
let o = document.body.querySelector(".t-app");
|
|
338
338
|
if (!o) return;
|
|
339
|
-
const s = document.createElement("div"),
|
|
339
|
+
const s = document.createElement("div"), r = m();
|
|
340
340
|
o.appendChild(s);
|
|
341
341
|
const l = U({
|
|
342
342
|
render() {
|
|
343
|
-
return j(
|
|
343
|
+
return j(Ne, {
|
|
344
344
|
...e,
|
|
345
|
-
ref:
|
|
346
|
-
onDismiss: (d,
|
|
345
|
+
ref: r,
|
|
346
|
+
onDismiss: (d, n) => {
|
|
347
347
|
setTimeout(() => {
|
|
348
348
|
l.unmount(), s.remove();
|
|
349
|
-
}, 300), t({ type: d, data:
|
|
349
|
+
}, 300), t({ type: d, data: n });
|
|
350
350
|
}
|
|
351
351
|
});
|
|
352
352
|
}
|
|
353
353
|
});
|
|
354
354
|
l.mount(s), setTimeout(() => {
|
|
355
|
-
|
|
355
|
+
r.value?.open?.();
|
|
356
356
|
}, 50);
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
-
}),
|
|
359
|
+
}), qe = { class: "t-loading" }, Le = /* @__PURE__ */ h({
|
|
360
360
|
__name: "t-loading",
|
|
361
361
|
props: {
|
|
362
362
|
type: { default: "spinner" }
|
|
363
363
|
},
|
|
364
364
|
emits: ["dismiss"],
|
|
365
365
|
setup(e, { expose: t, emit: o }) {
|
|
366
|
-
const s = e,
|
|
366
|
+
const s = e, r = m(!1);
|
|
367
367
|
return t({
|
|
368
368
|
open: () => {
|
|
369
|
-
|
|
369
|
+
r.value = !0;
|
|
370
370
|
},
|
|
371
371
|
close: () => {
|
|
372
|
-
|
|
372
|
+
r.value = !1;
|
|
373
373
|
}
|
|
374
|
-
}), (
|
|
374
|
+
}), (n, c) => (u(), C(M, {
|
|
375
375
|
placement: "center",
|
|
376
376
|
backdrop: !0,
|
|
377
377
|
keepalive: !1,
|
|
378
|
-
visible:
|
|
378
|
+
visible: r.value
|
|
379
379
|
}, {
|
|
380
380
|
default: P(() => [
|
|
381
|
-
k("div",
|
|
382
|
-
|
|
381
|
+
k("div", qe, [
|
|
382
|
+
b(n.$slots, "default", {}, () => [
|
|
383
383
|
G(K, {
|
|
384
384
|
type: s.type
|
|
385
385
|
}, null, 8, ["type"])
|
|
@@ -389,20 +389,20 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
389
389
|
_: 3
|
|
390
390
|
}, 8, ["visible"]));
|
|
391
391
|
}
|
|
392
|
-
}),
|
|
392
|
+
}), Me = /* @__PURE__ */ v(Le, [["__scopeId", "data-v-8f84c14e"]]), wo = (e = {}) => {
|
|
393
393
|
const t = m(), o = document.body.querySelector(".t-app");
|
|
394
|
-
let s = null,
|
|
394
|
+
let s = null, r = null;
|
|
395
395
|
return {
|
|
396
396
|
open() {
|
|
397
397
|
return new Promise((l) => {
|
|
398
|
-
o && (
|
|
398
|
+
o && (r = document.createElement("div"), o.appendChild(r), s = U({
|
|
399
399
|
render() {
|
|
400
|
-
return j(
|
|
400
|
+
return j(Me, {
|
|
401
401
|
...e,
|
|
402
402
|
ref: t
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
|
-
}), s.mount(
|
|
405
|
+
}), s.mount(r), setTimeout(() => {
|
|
406
406
|
t.value?.open?.(), l(!0);
|
|
407
407
|
}, 50));
|
|
408
408
|
});
|
|
@@ -410,7 +410,7 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
410
410
|
close() {
|
|
411
411
|
return new Promise((l) => {
|
|
412
412
|
t.value?.close?.(), setTimeout(() => {
|
|
413
|
-
s?.unmount?.(),
|
|
413
|
+
s?.unmount?.(), r?.remove?.(), l(!0);
|
|
414
414
|
}, 300);
|
|
415
415
|
});
|
|
416
416
|
}
|
|
@@ -419,7 +419,7 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
419
419
|
getNewIndex() {
|
|
420
420
|
return ae.value += 2, ae.value;
|
|
421
421
|
}
|
|
422
|
-
},
|
|
422
|
+
}, D = le([]), Q = m(!0), I = m(!1), A = m(-1), z = w(() => D[A.value]), L = w(() => D[A.value + 1] || void 0), B = w(() => D[D.length - 2]), pe = w(() => !I.value && Q.value && B.value), Z = {
|
|
423
423
|
reset() {
|
|
424
424
|
I.value = !0;
|
|
425
425
|
const e = z.value.target, t = B.value.target;
|
|
@@ -429,22 +429,22 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
429
429
|
},
|
|
430
430
|
move(e) {
|
|
431
431
|
if (!pe.value) return;
|
|
432
|
-
const t = window.innerWidth, o = e / t * 100, s = z.value.target,
|
|
433
|
-
e > 15 && e <= t && (e = e > 0 ? e : 0, s.style.transition = "transform 0s ease", s.style.transform = `translateX(${e}px)`,
|
|
432
|
+
const t = window.innerWidth, o = e / t * 100, s = z.value.target, r = B.value.target;
|
|
433
|
+
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}`));
|
|
434
434
|
},
|
|
435
435
|
back(e) {
|
|
436
436
|
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(() => {
|
|
437
|
-
|
|
437
|
+
ne(), I.value = !1, A.value -= 1, e && e();
|
|
438
438
|
}, 400));
|
|
439
439
|
},
|
|
440
440
|
next(e) {
|
|
441
|
-
if (!
|
|
441
|
+
if (!L.value) return;
|
|
442
442
|
if (A.value == -1) {
|
|
443
443
|
A.value += 1, e && e();
|
|
444
444
|
return;
|
|
445
445
|
}
|
|
446
446
|
I.value = !0;
|
|
447
|
-
let t =
|
|
447
|
+
let t = L.value.target;
|
|
448
448
|
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(() => {
|
|
449
449
|
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(() => {
|
|
450
450
|
I.value = !1, A.value += 1, e && e();
|
|
@@ -460,22 +460,22 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
460
460
|
}, 400);
|
|
461
461
|
},
|
|
462
462
|
move(e) {
|
|
463
|
-
const t = window.innerWidth, o = e / t * 100, s = z.value.target,
|
|
464
|
-
e > 15 && e <= t && (e = e > 0 ? e : 0, s.style.transition = "transform 0s ease", s.style.transform = `translateX(${e}px)`,
|
|
463
|
+
const t = window.innerWidth, o = e / t * 100, s = z.value.target, r = B.value.target;
|
|
464
|
+
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})))`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * o}`));
|
|
465
465
|
},
|
|
466
466
|
back(e) {
|
|
467
467
|
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(() => {
|
|
468
|
-
|
|
468
|
+
ne(), I.value = !1, A.value -= 1, e && e();
|
|
469
469
|
}, 400));
|
|
470
470
|
},
|
|
471
471
|
next(e) {
|
|
472
|
-
if (!
|
|
472
|
+
if (!L.value) return;
|
|
473
473
|
if (A.value == -1) {
|
|
474
474
|
A.value += 1, e && e();
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
477
|
I.value = !0;
|
|
478
|
-
let t =
|
|
478
|
+
let t = L.value.target;
|
|
479
479
|
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(() => {
|
|
480
480
|
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(() => {
|
|
481
481
|
I.value = !1, A.value += 1, e && e();
|
|
@@ -483,13 +483,13 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
483
483
|
}, 100);
|
|
484
484
|
}
|
|
485
485
|
}, He = (e) => {
|
|
486
|
-
|
|
486
|
+
D.push(e);
|
|
487
487
|
}, Fe = (e, t) => {
|
|
488
|
-
|
|
489
|
-
},
|
|
490
|
-
e ||
|
|
488
|
+
D[e].target = t;
|
|
489
|
+
}, ne = (e) => {
|
|
490
|
+
e || D.pop();
|
|
491
491
|
}, Ge = () => {
|
|
492
|
-
|
|
492
|
+
D.splice(0, D.length);
|
|
493
493
|
}, Ue = () => {
|
|
494
494
|
Q.value = !1;
|
|
495
495
|
}, je = () => {
|
|
@@ -502,25 +502,25 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
502
502
|
e == "scale" && Z.move(t), e == "transform" && Y.move(t);
|
|
503
503
|
}, Ze = (e) => {
|
|
504
504
|
e == "scale" && Z.reset(), e == "transform" && Y.reset();
|
|
505
|
-
},
|
|
505
|
+
}, x = {
|
|
506
506
|
isBusy: I,
|
|
507
507
|
isSwipeable: pe,
|
|
508
508
|
reset: Ze,
|
|
509
509
|
next: Ke,
|
|
510
510
|
back: Je,
|
|
511
511
|
move: Qe,
|
|
512
|
-
screens:
|
|
512
|
+
screens: D,
|
|
513
513
|
addScreen: He,
|
|
514
514
|
addScreenEl: Fe,
|
|
515
|
-
removeScreen:
|
|
515
|
+
removeScreen: ne,
|
|
516
516
|
removeAllScreen: Ge,
|
|
517
517
|
lockSwipe: Ue,
|
|
518
518
|
unlockSwipe: je,
|
|
519
519
|
swipeable: Q,
|
|
520
520
|
currentScreen: z,
|
|
521
521
|
lastScreen: B,
|
|
522
|
-
nextScreen:
|
|
523
|
-
}, Ye = { class: "t-toast-content" }, et = /* @__PURE__ */
|
|
522
|
+
nextScreen: L
|
|
523
|
+
}, Ye = { class: "t-toast-content" }, et = /* @__PURE__ */ h({
|
|
524
524
|
__name: "t-toast",
|
|
525
525
|
props: {
|
|
526
526
|
message: {},
|
|
@@ -532,91 +532,91 @@ const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
|
532
532
|
},
|
|
533
533
|
emits: ["dismiss"],
|
|
534
534
|
setup(e, { expose: t, emit: o }) {
|
|
535
|
-
const s = e,
|
|
536
|
-
d.value = !0,
|
|
535
|
+
const s = e, r = o, l = m(!1), d = m(!1), n = m(!1), c = () => {
|
|
536
|
+
d.value = !0, n.value = !1, setTimeout(() => {
|
|
537
537
|
l.value = !0;
|
|
538
538
|
}, 10);
|
|
539
|
-
},
|
|
540
|
-
|
|
541
|
-
d.value = !1, l.value = !1,
|
|
539
|
+
}, i = () => {
|
|
540
|
+
n.value = !0, setTimeout(() => {
|
|
541
|
+
d.value = !1, l.value = !1, r("dismiss");
|
|
542
542
|
}, 300);
|
|
543
543
|
};
|
|
544
|
-
|
|
545
|
-
|
|
544
|
+
N(() => s.visible, (a) => {
|
|
545
|
+
a ? c() : i();
|
|
546
546
|
});
|
|
547
|
-
const
|
|
548
|
-
let
|
|
549
|
-
return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ?
|
|
547
|
+
const _ = w(() => {
|
|
548
|
+
let a;
|
|
549
|
+
return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? a = {
|
|
550
550
|
"--border": "none",
|
|
551
551
|
"--color": "var(--t-color-status-" + s.color + "-text)",
|
|
552
552
|
"--background": "rgba(var(--t-color-status-" + s.color + "-rgb), 1)"
|
|
553
|
-
} :
|
|
553
|
+
} : a = {
|
|
554
554
|
"--border": "none",
|
|
555
555
|
"--color": "var(--t-color-text)",
|
|
556
556
|
"--background": s.color
|
|
557
|
-
} :
|
|
557
|
+
} : a = {
|
|
558
558
|
"--border": "none",
|
|
559
559
|
"--color": "var(--t-color-text)",
|
|
560
560
|
"--background": "rgba(var(--t-color-surface-rgb), 1)"
|
|
561
|
-
}), s.variant == "text" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ?
|
|
561
|
+
}), s.variant == "text" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? a = {
|
|
562
562
|
"--border": "none",
|
|
563
563
|
"--color": "var(--t-color-status-" + s.color + ")",
|
|
564
564
|
"--background": "transparent"
|
|
565
|
-
} :
|
|
565
|
+
} : a = {
|
|
566
566
|
"--border": "none",
|
|
567
567
|
"--color": s.color,
|
|
568
568
|
"--background": "transparent"
|
|
569
|
-
} :
|
|
569
|
+
} : a = {
|
|
570
570
|
"--border": "none",
|
|
571
571
|
"--color": "var(--t-color-text)",
|
|
572
572
|
"--background": "transparent"
|
|
573
|
-
}), s.variant == "outline" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ?
|
|
573
|
+
}), s.variant == "outline" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? a = {
|
|
574
574
|
"--border": "0.55px solid var(--t-color-status-" + s.color + ")",
|
|
575
575
|
"--color": "var(--t-color-status-" + s.color + ")",
|
|
576
576
|
"--background": "transparent"
|
|
577
|
-
} :
|
|
577
|
+
} : a = {
|
|
578
578
|
"--border": "0.55px solid " + s.color,
|
|
579
579
|
"--color": s.color,
|
|
580
580
|
"--background": "transparent"
|
|
581
|
-
} :
|
|
581
|
+
} : a = {
|
|
582
582
|
"--border": "0.55px solid var(--t-color-text)",
|
|
583
583
|
"--color": "var(--t-color-text)",
|
|
584
584
|
"--background": "transparent"
|
|
585
|
-
}),
|
|
585
|
+
}), a;
|
|
586
586
|
});
|
|
587
587
|
return t({
|
|
588
|
-
open:
|
|
589
|
-
close:
|
|
590
|
-
}), (
|
|
588
|
+
open: c,
|
|
589
|
+
close: i
|
|
590
|
+
}), (a, y) => d.value ? (u(), p("div", {
|
|
591
591
|
key: 0,
|
|
592
|
-
class:
|
|
593
|
-
style:
|
|
592
|
+
class: S(["t-toast", { [s.placement]: !0, open: l.value, closing: n.value }]),
|
|
593
|
+
style: T({ "--space": s.space, ..._.value })
|
|
594
594
|
}, [
|
|
595
|
-
|
|
595
|
+
b(a.$slots, "content", {}, () => [
|
|
596
596
|
k("div", Ye, R(s.message), 1)
|
|
597
597
|
], !0)
|
|
598
598
|
], 6)) : E("", !0);
|
|
599
599
|
}
|
|
600
|
-
}), fe = /* @__PURE__ */
|
|
600
|
+
}), fe = /* @__PURE__ */ v(et, [["__scopeId", "data-v-7011351e"]]), To = (e = {}) => ({
|
|
601
601
|
open() {
|
|
602
602
|
let t = document.body.querySelector(".t-app");
|
|
603
603
|
if (!t) return;
|
|
604
604
|
const o = document.createElement("div"), s = m();
|
|
605
605
|
t.appendChild(o);
|
|
606
|
-
const
|
|
606
|
+
const r = U({
|
|
607
607
|
render() {
|
|
608
608
|
return j(fe, {
|
|
609
609
|
...e,
|
|
610
610
|
ref: s,
|
|
611
611
|
onDismiss: () => {
|
|
612
612
|
setTimeout(() => {
|
|
613
|
-
|
|
613
|
+
r.unmount(), o.remove();
|
|
614
614
|
}, 300);
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
});
|
|
619
|
-
|
|
619
|
+
r.mount(o), setTimeout(() => {
|
|
620
620
|
s.value?.open?.(), setTimeout(() => {
|
|
621
621
|
s.value?.close?.();
|
|
622
622
|
}, e.duration + 10);
|
|
@@ -628,7 +628,7 @@ function me() {
|
|
|
628
628
|
height: tt
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
const ot = /* @__PURE__ */
|
|
631
|
+
const ot = /* @__PURE__ */ h({
|
|
632
632
|
__name: "t-cable",
|
|
633
633
|
props: {
|
|
634
634
|
keyboard: { type: Boolean, default: !1 },
|
|
@@ -638,20 +638,20 @@ const ot = /* @__PURE__ */ b({
|
|
|
638
638
|
const t = e, { height: o } = me();
|
|
639
639
|
return ce("cableState", {
|
|
640
640
|
placement: t.placement
|
|
641
|
-
}), (s,
|
|
642
|
-
class:
|
|
643
|
-
style:
|
|
641
|
+
}), (s, r) => (u(), p("div", {
|
|
642
|
+
class: S(["t-cable", { keyboard: t.keyboard && V(o) > 0, [t.placement]: !0 }]),
|
|
643
|
+
style: T({ "--t-keyboard-height": V(o) + "px", "--t-keyboard-transition": V(o) > 0 ? "0.3s" : "0.1s" })
|
|
644
644
|
}, [
|
|
645
|
-
|
|
645
|
+
b(s.$slots, "default", {}, void 0, !0)
|
|
646
646
|
], 6));
|
|
647
647
|
}
|
|
648
|
-
}), st = /* @__PURE__ */
|
|
648
|
+
}), st = /* @__PURE__ */ v(ot, [["__scopeId", "data-v-6cae224b"]]), rt = /* @__PURE__ */ h({
|
|
649
649
|
__name: "t-card",
|
|
650
650
|
props: {
|
|
651
651
|
color: { default: null }
|
|
652
652
|
},
|
|
653
653
|
setup(e) {
|
|
654
|
-
const t = e, o =
|
|
654
|
+
const t = e, o = w(() => {
|
|
655
655
|
let s;
|
|
656
656
|
return t.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? s = {
|
|
657
657
|
"--background": "var(--t-color-status-" + t.color + ")"
|
|
@@ -661,80 +661,89 @@ const ot = /* @__PURE__ */ b({
|
|
|
661
661
|
"--background": "var(--t-color-surface)"
|
|
662
662
|
}, s;
|
|
663
663
|
});
|
|
664
|
-
return (s,
|
|
664
|
+
return (s, r) => (u(), p("div", {
|
|
665
665
|
class: "t-card",
|
|
666
|
-
style:
|
|
666
|
+
style: T(o.value)
|
|
667
667
|
}, [
|
|
668
|
-
|
|
668
|
+
b(s.$slots, "default")
|
|
669
669
|
], 4));
|
|
670
670
|
}
|
|
671
|
-
}),
|
|
671
|
+
}), nt = {}, at = { class: "t-content" };
|
|
672
672
|
function lt(e, t) {
|
|
673
|
-
return
|
|
674
|
-
|
|
673
|
+
return u(), p("div", at, [
|
|
674
|
+
b(e.$slots, "default", {}, void 0, !0)
|
|
675
675
|
]);
|
|
676
676
|
}
|
|
677
|
-
const ve = /* @__PURE__ */
|
|
677
|
+
const ve = /* @__PURE__ */ v(nt, [["render", lt], ["__scopeId", "data-v-af750e89"]]), ct = /* @__PURE__ */ h({
|
|
678
678
|
__name: "t-refresher",
|
|
679
679
|
props: {
|
|
680
|
-
threshold: { default:
|
|
680
|
+
threshold: { default: 120 },
|
|
681
|
+
safe: { type: Boolean, default: !1 },
|
|
682
|
+
variant: { default: "max" }
|
|
681
683
|
},
|
|
682
684
|
emits: ["refresh", "move", "cancel", "start"],
|
|
683
685
|
setup(e, { emit: t }) {
|
|
684
|
-
const o = t, s = e,
|
|
685
|
-
let
|
|
686
|
-
const
|
|
687
|
-
l.value = !1,
|
|
688
|
-
|
|
686
|
+
const o = t, s = e, r = m(0), l = m(!1), d = m();
|
|
687
|
+
let n, c = !1;
|
|
688
|
+
const i = () => {
|
|
689
|
+
l.value = !1, r.value = 0, n && n.cancel(), setTimeout(() => {
|
|
690
|
+
c = !1;
|
|
689
691
|
}, 2e3);
|
|
690
|
-
},
|
|
691
|
-
|
|
692
|
+
}, _ = () => {
|
|
693
|
+
c = !0, l.value = !0, r.value = s.threshold, o("refresh", i);
|
|
694
|
+
}, a = () => {
|
|
695
|
+
r.value = 0, l.value = !1, c = !1, o("cancel");
|
|
692
696
|
};
|
|
693
|
-
return
|
|
694
|
-
|
|
695
|
-
let
|
|
696
|
-
|
|
697
|
-
isMoving: !1,
|
|
697
|
+
return N(() => d.value, () => {
|
|
698
|
+
n && n.destroy();
|
|
699
|
+
let y = d.value.closest(".t-content");
|
|
700
|
+
y && (n = re(y, {
|
|
698
701
|
options: {
|
|
699
702
|
minDist: 60
|
|
700
703
|
},
|
|
701
704
|
down() {
|
|
702
|
-
|
|
705
|
+
l.value || c || o("start");
|
|
703
706
|
},
|
|
704
|
-
move({ deltaY:
|
|
705
|
-
l.value ||
|
|
707
|
+
move({ deltaY: g, initialDirection: $ }) {
|
|
708
|
+
if (!(l.value || c || $ != "down")) {
|
|
709
|
+
if (s.variant == "max" && g >= s.threshold) {
|
|
710
|
+
_();
|
|
711
|
+
return;
|
|
712
|
+
}
|
|
713
|
+
g > 10 && (r.value = g > 0 ? g : 0, o("move", g));
|
|
714
|
+
}
|
|
706
715
|
},
|
|
707
|
-
up({ deltaY:
|
|
708
|
-
|
|
716
|
+
up({ deltaY: g, initialDirection: $ }) {
|
|
717
|
+
l.value || c || $ != "down" || (s.variant == "up" && g >= s.threshold ? _() : a());
|
|
709
718
|
},
|
|
710
719
|
cancel() {
|
|
711
|
-
|
|
720
|
+
l.value || c || a();
|
|
712
721
|
}
|
|
713
722
|
}, {
|
|
714
723
|
passive: !1
|
|
715
724
|
}));
|
|
716
725
|
}), oe(() => {
|
|
717
|
-
|
|
718
|
-
}), (
|
|
719
|
-
class: "t-refresher",
|
|
726
|
+
n && n.destroy();
|
|
727
|
+
}), (y, g) => W((u(), p("div", {
|
|
728
|
+
class: S(["t-refresher", { safe: y.safe }]),
|
|
720
729
|
ref_key: "container",
|
|
721
730
|
ref: d
|
|
722
731
|
}, [
|
|
723
|
-
|
|
724
|
-
offset:
|
|
732
|
+
b(y.$slots, "default", {
|
|
733
|
+
offset: r.value,
|
|
725
734
|
refreshing: l.value
|
|
726
735
|
}, void 0, !0)
|
|
727
|
-
],
|
|
728
|
-
[H,
|
|
736
|
+
], 2)), [
|
|
737
|
+
[H, r.value > 0]
|
|
729
738
|
]);
|
|
730
739
|
}
|
|
731
|
-
}), it = /* @__PURE__ */
|
|
740
|
+
}), it = /* @__PURE__ */ v(ct, [["__scopeId", "data-v-80ef3d39"]]), ut = {}, dt = { class: "t-screen" };
|
|
732
741
|
function pt(e, t) {
|
|
733
|
-
return
|
|
734
|
-
|
|
742
|
+
return u(), p("div", dt, [
|
|
743
|
+
b(e.$slots, "default", {}, void 0, !0)
|
|
735
744
|
]);
|
|
736
745
|
}
|
|
737
|
-
const _e = /* @__PURE__ */
|
|
746
|
+
const _e = /* @__PURE__ */ v(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c"]]), ft = /* @__PURE__ */ h({
|
|
738
747
|
__name: "t-swipe-screen",
|
|
739
748
|
props: {
|
|
740
749
|
variant: { default: "scale" },
|
|
@@ -744,70 +753,70 @@ const _e = /* @__PURE__ */ _(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
744
753
|
emits: ["change"],
|
|
745
754
|
setup(e, { emit: t }) {
|
|
746
755
|
let o = {};
|
|
747
|
-
const s = t,
|
|
756
|
+
const s = t, r = e;
|
|
748
757
|
let l;
|
|
749
|
-
const d =
|
|
750
|
-
for (let
|
|
751
|
-
o[
|
|
752
|
-
const
|
|
753
|
-
|
|
754
|
-
name:
|
|
758
|
+
const d = r.router || ue(), n = r.route || ke(), c = d.getRoutes();
|
|
759
|
+
for (let a of c)
|
|
760
|
+
o[a.name] = a.component || a.components;
|
|
761
|
+
const i = (a) => {
|
|
762
|
+
a && x.addScreen({
|
|
763
|
+
name: a,
|
|
755
764
|
target: null,
|
|
756
|
-
component: be(o[
|
|
765
|
+
component: be(o[a] || null)
|
|
757
766
|
});
|
|
758
|
-
},
|
|
759
|
-
!
|
|
767
|
+
}, _ = (a, y) => {
|
|
768
|
+
!y || x.screens[a].target || (x.addScreenEl(a, y.$el), x.nextScreen && x.next(r.variant, () => {
|
|
760
769
|
s("change");
|
|
761
770
|
}));
|
|
762
771
|
};
|
|
763
|
-
return
|
|
764
|
-
|
|
772
|
+
return N(() => n.name, (a, y) => {
|
|
773
|
+
a != x.currentScreen.value?.name && (x.lastScreen.value?.name == a ? x.back(r.variant, () => {
|
|
765
774
|
s("change");
|
|
766
|
-
}) :
|
|
775
|
+
}) : i(n.name));
|
|
767
776
|
}), se(() => {
|
|
768
|
-
|
|
769
|
-
beforeEvent(
|
|
770
|
-
return !!
|
|
777
|
+
i(n.name), l = re(document.body, {
|
|
778
|
+
beforeEvent(a) {
|
|
779
|
+
return !!x.isSwipeable.value;
|
|
771
780
|
},
|
|
772
|
-
fast({ initialDirection:
|
|
773
|
-
|
|
781
|
+
fast({ initialDirection: a }) {
|
|
782
|
+
x.lastScreen.value && a == "right" && d.back();
|
|
774
783
|
},
|
|
775
|
-
move({ deltaX:
|
|
776
|
-
|
|
784
|
+
move({ deltaX: a, initialDirection: y }) {
|
|
785
|
+
y == "right" && x.move(r.variant, a);
|
|
777
786
|
},
|
|
778
|
-
up({ deltaX:
|
|
779
|
-
if (
|
|
780
|
-
|
|
787
|
+
up({ deltaX: a, initialDirection: y }) {
|
|
788
|
+
if (y != "right") {
|
|
789
|
+
x.reset(r.variant);
|
|
781
790
|
return;
|
|
782
791
|
}
|
|
783
|
-
const
|
|
784
|
-
|
|
792
|
+
const g = window.innerWidth;
|
|
793
|
+
a / g * 100 >= 50 ? d.back() : x.reset(r.variant);
|
|
785
794
|
},
|
|
786
795
|
cancel() {
|
|
787
|
-
|
|
796
|
+
x.reset(r.variant);
|
|
788
797
|
}
|
|
789
798
|
});
|
|
790
799
|
}), oe(() => {
|
|
791
|
-
l && l.destroy(),
|
|
792
|
-
}), (
|
|
793
|
-
(
|
|
800
|
+
l && l.destroy(), x.removeAllScreen();
|
|
801
|
+
}), (a, y) => (u(), p(O, null, [
|
|
802
|
+
(u(!0), p(O, null, F(V(x).screens, (g, $) => (u(), C(_e, {
|
|
794
803
|
ref_for: !0,
|
|
795
|
-
ref: (f) =>
|
|
796
|
-
style:
|
|
797
|
-
key:
|
|
804
|
+
ref: (f) => _($, f),
|
|
805
|
+
style: T({ zIndex: $ + ($ == V(x).screens.length - 1 ? 2 : 1) }),
|
|
806
|
+
key: $
|
|
798
807
|
}, {
|
|
799
808
|
default: P(() => [
|
|
800
|
-
(
|
|
809
|
+
(u(), C(ge(g.component.default)))
|
|
801
810
|
]),
|
|
802
811
|
_: 2
|
|
803
812
|
}, 1032, ["style"]))), 128)),
|
|
804
813
|
k("div", {
|
|
805
814
|
class: "t-swipe-backdrop",
|
|
806
|
-
style:
|
|
815
|
+
style: T({ zIndex: V(x).screens.length })
|
|
807
816
|
}, null, 4)
|
|
808
817
|
], 64));
|
|
809
818
|
}
|
|
810
|
-
}), mt = /* @__PURE__ */
|
|
819
|
+
}), mt = /* @__PURE__ */ v(ft, [["__scopeId", "data-v-23e0cfda"]]), vt = /* @__PURE__ */ h({
|
|
811
820
|
__name: "t-toolbar",
|
|
812
821
|
props: {
|
|
813
822
|
placement: { default: null },
|
|
@@ -815,72 +824,72 @@ const _e = /* @__PURE__ */ _(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
815
824
|
size: { default: "50px" }
|
|
816
825
|
},
|
|
817
826
|
setup(e) {
|
|
818
|
-
const t = e, o = ie("cableState"), s =
|
|
819
|
-
return (
|
|
820
|
-
class:
|
|
821
|
-
style:
|
|
827
|
+
const t = e, o = ie("cableState"), s = w(() => t?.placement || o?.placement);
|
|
828
|
+
return (r, l) => (u(), p("div", {
|
|
829
|
+
class: S(["t-toolbar", { [s.value]: !0, safe: t.safe }]),
|
|
830
|
+
style: T({ "--t-size-toolbar": t.size })
|
|
822
831
|
}, [
|
|
823
832
|
k("div", null, [
|
|
824
|
-
|
|
833
|
+
b(r.$slots, "default", {}, void 0, !0)
|
|
825
834
|
])
|
|
826
835
|
], 6));
|
|
827
836
|
}
|
|
828
|
-
}), _t = /* @__PURE__ */
|
|
837
|
+
}), _t = /* @__PURE__ */ v(vt, [["__scopeId", "data-v-1ee9866d"]]), yt = /* @__PURE__ */ h({
|
|
829
838
|
__name: "t-back-button",
|
|
830
839
|
props: {
|
|
831
840
|
to: {},
|
|
832
841
|
router: {}
|
|
833
842
|
},
|
|
834
843
|
setup(e) {
|
|
835
|
-
const t = e, o = he(), s = t.router || ue(),
|
|
844
|
+
const t = e, o = he(), s = t.router || ue(), r = (l) => {
|
|
836
845
|
if (o.onBack) {
|
|
837
846
|
o.onBack(l);
|
|
838
847
|
return;
|
|
839
848
|
}
|
|
840
|
-
|
|
849
|
+
x.lastScreen.value ? s?.back?.() : t.to && s?.push?.(t.to);
|
|
841
850
|
};
|
|
842
|
-
return (l, d) => l.to || V(
|
|
851
|
+
return (l, d) => l.to || V(x).lastScreen ? (u(), p("button", {
|
|
843
852
|
key: 0,
|
|
844
853
|
class: "t-back-button",
|
|
845
|
-
onClick:
|
|
854
|
+
onClick: r
|
|
846
855
|
}, [
|
|
847
|
-
|
|
856
|
+
b(l.$slots, "default", {}, () => [
|
|
848
857
|
d[0] || (d[0] = k("i", { class: "ri-arrow-left-s-line" }, null, -1))
|
|
849
858
|
], !0)
|
|
850
859
|
])) : E("", !0);
|
|
851
860
|
}
|
|
852
|
-
}), gt = /* @__PURE__ */
|
|
861
|
+
}), gt = /* @__PURE__ */ v(yt, [["__scopeId", "data-v-dcf9d363"]]), bt = /* @__PURE__ */ h({
|
|
853
862
|
__name: "t-text",
|
|
854
863
|
props: {
|
|
855
864
|
color: { default: "var(--t-color-text)" },
|
|
856
865
|
size: { default: "standard" }
|
|
857
866
|
},
|
|
858
867
|
setup(e) {
|
|
859
|
-
const t = e, o =
|
|
860
|
-
let s,
|
|
861
|
-
return t.size == "standard" ? s = "var(--t-fs-10)" : t.size == "small" ? s = "var(--t-fs-08)" : t.size == "large" ? s = "var(--t-fs-12)" : s = t.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) && (
|
|
862
|
-
"--color":
|
|
868
|
+
const t = e, o = w(() => {
|
|
869
|
+
let s, r = t.color;
|
|
870
|
+
return t.size == "standard" ? s = "var(--t-fs-10)" : t.size == "small" ? s = "var(--t-fs-08)" : t.size == "large" ? s = "var(--t-fs-12)" : s = t.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) && (r = `var(--t-color-status-${t.color})`), {
|
|
871
|
+
"--color": r,
|
|
863
872
|
"--font-size": s
|
|
864
873
|
};
|
|
865
874
|
});
|
|
866
|
-
return (s,
|
|
875
|
+
return (s, r) => (u(), p("span", {
|
|
867
876
|
class: "t-text",
|
|
868
|
-
style:
|
|
877
|
+
style: T(o.value)
|
|
869
878
|
}, [
|
|
870
|
-
|
|
879
|
+
b(s.$slots, "default", {}, void 0, !0)
|
|
871
880
|
], 4));
|
|
872
881
|
}
|
|
873
|
-
}), te = /* @__PURE__ */
|
|
882
|
+
}), te = /* @__PURE__ */ v(bt, [["__scopeId", "data-v-f0f94f05"]]), ht = /* @__PURE__ */ h({
|
|
874
883
|
__name: "t-gesture-indicator",
|
|
875
884
|
props: {
|
|
876
885
|
placement: { default: "bottom" }
|
|
877
886
|
},
|
|
878
887
|
setup(e) {
|
|
879
|
-
return (t, o) => (
|
|
880
|
-
class:
|
|
888
|
+
return (t, o) => (u(), p("div", {
|
|
889
|
+
class: S(["t-gesture-indicator", { [t.placement]: !0 }])
|
|
881
890
|
}, null, 2));
|
|
882
891
|
}
|
|
883
|
-
}), ye = /* @__PURE__ */
|
|
892
|
+
}), ye = /* @__PURE__ */ v(ht, [["__scopeId", "data-v-ed8f7308"]]), kt = /* @__PURE__ */ h({
|
|
884
893
|
__name: "t-sheet",
|
|
885
894
|
props: {
|
|
886
895
|
background: { default: "var(--t-color-surface)" },
|
|
@@ -898,86 +907,86 @@ const _e = /* @__PURE__ */ _(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
898
907
|
},
|
|
899
908
|
emits: ["dismiss"],
|
|
900
909
|
setup(e, { emit: t }) {
|
|
901
|
-
const o = e, s = t,
|
|
902
|
-
let
|
|
903
|
-
const
|
|
910
|
+
const o = e, s = t, r = m(), l = m(), d = m(!1);
|
|
911
|
+
let n = null;
|
|
912
|
+
const c = w(() => {
|
|
904
913
|
if (o.placement == "bottom") return "down";
|
|
905
914
|
if (o.placement == "top") return "up";
|
|
906
915
|
if (o.placement == "left") return "left";
|
|
907
916
|
if (o.placement == "right") return "right";
|
|
908
|
-
}),
|
|
909
|
-
s("dismiss",
|
|
910
|
-
},
|
|
917
|
+
}), i = (a) => {
|
|
918
|
+
s("dismiss", a);
|
|
919
|
+
}, _ = () => {
|
|
911
920
|
d.value = !0, setTimeout(() => {
|
|
912
921
|
d.value = !1;
|
|
913
922
|
}, 300);
|
|
914
923
|
};
|
|
915
|
-
return
|
|
916
|
-
|
|
924
|
+
return N(() => r.value, (a) => {
|
|
925
|
+
a && (n = re(r.value, {
|
|
917
926
|
isMoving: !1,
|
|
918
927
|
options: {
|
|
919
928
|
minDist: 30
|
|
920
929
|
},
|
|
921
|
-
beforeEvent(
|
|
930
|
+
beforeEvent(y) {
|
|
922
931
|
return !(d.value || !o.gesture || o.placement == "center");
|
|
923
932
|
},
|
|
924
933
|
down() {
|
|
925
934
|
this.isMoving = !1;
|
|
926
935
|
},
|
|
927
|
-
fast({ initialDirection:
|
|
928
|
-
|
|
936
|
+
fast({ initialDirection: y }) {
|
|
937
|
+
_(), y == c.value ? s("dismiss", "gesture") : l.value.open();
|
|
929
938
|
},
|
|
930
|
-
move({ deltaY:
|
|
931
|
-
if (
|
|
939
|
+
move({ deltaY: y, deltaX: g, initialDirection: $ }) {
|
|
940
|
+
if ($ != c.value) return;
|
|
932
941
|
let f = 0;
|
|
933
|
-
o.placement == "bottom" || o.placement == "top" ? f =
|
|
942
|
+
o.placement == "bottom" || o.placement == "top" ? f = y : f = g, o.placement == "bottom" && (f = y > 0 ? y : 0), o.placement == "top" && (f = y < 0 ? y : 0), o.placement == "left" && (f = g < 0 ? g : 0), o.placement == "right" && (f = g > 0 ? g : 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({
|
|
934
943
|
contentTransform: f + "px",
|
|
935
944
|
transition: "0s"
|
|
936
945
|
}));
|
|
937
946
|
},
|
|
938
|
-
up({ deltaY:
|
|
939
|
-
if (this.isMoving = !1,
|
|
947
|
+
up({ deltaY: y, deltaX: g, initialDirection: $ }) {
|
|
948
|
+
if (this.isMoving = !1, _(), $ != c.value) {
|
|
940
949
|
l.value.open();
|
|
941
950
|
return;
|
|
942
951
|
}
|
|
943
|
-
let f,
|
|
944
|
-
o.placement == "bottom" || o.placement == "top" ? (f =
|
|
952
|
+
let f, X, ee;
|
|
953
|
+
o.placement == "bottom" || o.placement == "top" ? (f = r.value.offsetHeight, ee = y) : (f = r.value.offsetWidth, ee = g), X = ee / f * 100, X > 50 ? s("dismiss", "gesture") : l.value.open();
|
|
945
954
|
},
|
|
946
955
|
cancel() {
|
|
947
|
-
this.isMoving = !1,
|
|
956
|
+
this.isMoving = !1, _(), l.value.open();
|
|
948
957
|
}
|
|
949
958
|
}));
|
|
950
959
|
}), oe(() => {
|
|
951
|
-
|
|
952
|
-
}), (
|
|
960
|
+
n && n.destroy();
|
|
961
|
+
}), (a, y) => (u(), C(M, {
|
|
953
962
|
ref_key: "present",
|
|
954
963
|
ref: l,
|
|
955
|
-
class:
|
|
964
|
+
class: S(o.class),
|
|
956
965
|
placement: o.placement,
|
|
957
|
-
backdrop:
|
|
966
|
+
backdrop: a.backdrop,
|
|
958
967
|
visible: o.visible,
|
|
959
968
|
keepalive: o.keepalive,
|
|
960
|
-
onDismiss:
|
|
961
|
-
style:
|
|
969
|
+
onDismiss: i,
|
|
970
|
+
style: T(o.style)
|
|
962
971
|
}, {
|
|
963
972
|
default: P(() => [
|
|
964
|
-
o.gesture && o.indicator && o.placement != "center" ? (
|
|
973
|
+
o.gesture && o.indicator && o.placement != "center" ? (u(), C(ye, {
|
|
965
974
|
key: 0,
|
|
966
975
|
placement: o.placement
|
|
967
976
|
}, null, 8, ["placement"])) : E("", !0),
|
|
968
977
|
k("div", {
|
|
969
|
-
class:
|
|
970
|
-
style:
|
|
978
|
+
class: S(["t-sheet", { fullscreen: o.fullscreen, [o.placement]: !0, rounded: a.rounded, radius: o.radius }]),
|
|
979
|
+
style: T({ "--background": o.background }),
|
|
971
980
|
ref_key: "sheet",
|
|
972
|
-
ref:
|
|
981
|
+
ref: r
|
|
973
982
|
}, [
|
|
974
|
-
|
|
983
|
+
b(a.$slots, "default", {}, void 0, !0)
|
|
975
984
|
], 6)
|
|
976
985
|
]),
|
|
977
986
|
_: 3
|
|
978
987
|
}, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
|
|
979
988
|
}
|
|
980
|
-
}), $t = /* @__PURE__ */
|
|
989
|
+
}), $t = /* @__PURE__ */ v(kt, [["__scopeId", "data-v-71a5b877"]]), wt = { class: "t-input-label" }, Tt = { class: "t-input-content" }, xt = ["type", "placeholder", "value"], St = /* @__PURE__ */ h({
|
|
981
990
|
__name: "t-input",
|
|
982
991
|
props: {
|
|
983
992
|
size: { default: "standard" },
|
|
@@ -992,162 +1001,162 @@ const _e = /* @__PURE__ */ _(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c
|
|
|
992
1001
|
},
|
|
993
1002
|
emits: ["update:modelValue"],
|
|
994
1003
|
setup(e, { emit: t }) {
|
|
995
|
-
const o = e, s = t,
|
|
996
|
-
s("update:modelValue",
|
|
997
|
-
},
|
|
998
|
-
|
|
999
|
-
},
|
|
1000
|
-
|
|
1004
|
+
const o = e, s = t, r = m(!1), l = w(() => !(o.modelValue === "" || o.modelValue === null || o.modelValue === void 0)), d = (i) => {
|
|
1005
|
+
s("update:modelValue", i.target.value);
|
|
1006
|
+
}, n = () => {
|
|
1007
|
+
r.value = !0;
|
|
1008
|
+
}, c = () => {
|
|
1009
|
+
r.value = !1;
|
|
1001
1010
|
};
|
|
1002
|
-
return (
|
|
1003
|
-
class:
|
|
1011
|
+
return (i, _) => (u(), p("div", {
|
|
1012
|
+
class: S(["t-input", { rounded: i.rounded, ["size-" + i.size]: !0, ["variant-" + i.variant]: !0, focus: r.value, "has-value": l.value }])
|
|
1004
1013
|
}, [
|
|
1005
1014
|
k("label", null, [
|
|
1006
|
-
k("span", wt, R(
|
|
1015
|
+
k("span", wt, R(i.label), 1),
|
|
1007
1016
|
k("div", Tt, [
|
|
1008
|
-
|
|
1017
|
+
b(i.$slots, "start", {}, void 0, !0),
|
|
1009
1018
|
k("input", {
|
|
1010
|
-
type:
|
|
1011
|
-
placeholder:
|
|
1012
|
-
value:
|
|
1019
|
+
type: i.type,
|
|
1020
|
+
placeholder: i.variant == "default" ? i.placeholder : "",
|
|
1021
|
+
value: i.modelValue,
|
|
1013
1022
|
onInput: d,
|
|
1014
|
-
onFocus:
|
|
1015
|
-
onBlur:
|
|
1023
|
+
onFocus: n,
|
|
1024
|
+
onBlur: c
|
|
1016
1025
|
}, null, 40, xt),
|
|
1017
|
-
|
|
1026
|
+
b(i.$slots, "end", {}, void 0, !0)
|
|
1018
1027
|
])
|
|
1019
1028
|
]),
|
|
1020
|
-
|
|
1029
|
+
i.error ? (u(), C(te, {
|
|
1021
1030
|
key: 0,
|
|
1022
1031
|
color: "danger"
|
|
1023
1032
|
}, {
|
|
1024
1033
|
default: P(() => [
|
|
1025
|
-
|
|
1034
|
+
q(R(i.error), 1)
|
|
1026
1035
|
]),
|
|
1027
1036
|
_: 1
|
|
1028
|
-
})) :
|
|
1037
|
+
})) : i.help ? (u(), C(te, {
|
|
1029
1038
|
key: 1,
|
|
1030
1039
|
color: "secondary"
|
|
1031
1040
|
}, {
|
|
1032
1041
|
default: P(() => [
|
|
1033
|
-
|
|
1042
|
+
q(R(i.help), 1)
|
|
1034
1043
|
]),
|
|
1035
1044
|
_: 1
|
|
1036
1045
|
})) : E("", !0)
|
|
1037
1046
|
], 2));
|
|
1038
1047
|
}
|
|
1039
|
-
}), zt = /* @__PURE__ */
|
|
1048
|
+
}), zt = /* @__PURE__ */ v(St, [["__scopeId", "data-v-fffdda84"]]), It = {};
|
|
1040
1049
|
function Et(e, t) {
|
|
1041
|
-
return
|
|
1050
|
+
return u(), p("textarea");
|
|
1042
1051
|
}
|
|
1043
|
-
const Bt = /* @__PURE__ */
|
|
1052
|
+
const Bt = /* @__PURE__ */ v(It, [["render", Et]]), Ct = {};
|
|
1044
1053
|
function Vt(e, t) {
|
|
1045
|
-
return
|
|
1054
|
+
return u(), p("div");
|
|
1046
1055
|
}
|
|
1047
|
-
const Pt = /* @__PURE__ */
|
|
1048
|
-
function
|
|
1049
|
-
return
|
|
1056
|
+
const Pt = /* @__PURE__ */ v(Ct, [["render", Vt]]), At = {}, Rt = { class: "t-grid" };
|
|
1057
|
+
function Dt(e, t) {
|
|
1058
|
+
return u(), p("div", Rt);
|
|
1050
1059
|
}
|
|
1051
|
-
const
|
|
1052
|
-
function
|
|
1053
|
-
return
|
|
1060
|
+
const Xt = /* @__PURE__ */ v(At, [["render", Dt]]), Ot = {}, Nt = { class: "t-grid-item" };
|
|
1061
|
+
function qt(e, t) {
|
|
1062
|
+
return u(), p("div", Nt);
|
|
1054
1063
|
}
|
|
1055
|
-
const
|
|
1064
|
+
const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Mt = /* @__PURE__ */ h({
|
|
1056
1065
|
__name: "t-divider",
|
|
1057
1066
|
props: {
|
|
1058
1067
|
direction: { default: "horizontal" }
|
|
1059
1068
|
},
|
|
1060
1069
|
setup(e) {
|
|
1061
1070
|
const t = e;
|
|
1062
|
-
return (o, s) => (
|
|
1063
|
-
class:
|
|
1071
|
+
return (o, s) => (u(), p("div", {
|
|
1072
|
+
class: S(["t-divider", { [t.direction]: !0 }])
|
|
1064
1073
|
}, null, 2));
|
|
1065
1074
|
}
|
|
1066
|
-
}), Wt = /* @__PURE__ */
|
|
1075
|
+
}), Wt = /* @__PURE__ */ v(Mt, [["__scopeId", "data-v-47ee8991"]]), Ht = /* @__PURE__ */ h({
|
|
1067
1076
|
__name: "t-toggle-password",
|
|
1068
1077
|
props: {
|
|
1069
1078
|
color: { default: "warning" }
|
|
1070
1079
|
},
|
|
1071
1080
|
emits: ["change"],
|
|
1072
1081
|
setup(e, { emit: t }) {
|
|
1073
|
-
const o = e, s = t,
|
|
1074
|
-
let
|
|
1075
|
-
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (
|
|
1076
|
-
"--color":
|
|
1082
|
+
const o = e, s = t, r = m(!1), l = m(), d = w(() => {
|
|
1083
|
+
let i = o.color;
|
|
1084
|
+
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (i = `var(--t-color-status-${o.color})`), {
|
|
1085
|
+
"--color": i
|
|
1077
1086
|
};
|
|
1078
|
-
}),
|
|
1087
|
+
}), n = () => l.value?.parentElement?.querySelector?.("input");
|
|
1079
1088
|
se(() => {
|
|
1080
|
-
let
|
|
1081
|
-
|
|
1089
|
+
let i = n();
|
|
1090
|
+
i && (r.value = i.type != "password", s("change", r.value));
|
|
1082
1091
|
});
|
|
1083
|
-
const
|
|
1084
|
-
let
|
|
1085
|
-
|
|
1092
|
+
const c = () => {
|
|
1093
|
+
let i = n();
|
|
1094
|
+
i && (r.value = !r.value, r.value ? i.type = "text" : i.type = "password", s("change", r.value));
|
|
1086
1095
|
};
|
|
1087
|
-
return (
|
|
1096
|
+
return (i, _) => (u(), p("button", {
|
|
1088
1097
|
ref_key: "toggle",
|
|
1089
1098
|
ref: l,
|
|
1090
1099
|
class: "t-toggle-password",
|
|
1091
|
-
style:
|
|
1092
|
-
onClick:
|
|
1100
|
+
style: T(d.value),
|
|
1101
|
+
onClick: c
|
|
1093
1102
|
}, [
|
|
1094
|
-
|
|
1095
|
-
|
|
1103
|
+
r.value ? b(i.$slots, "on", { key: 0 }, () => [
|
|
1104
|
+
_[0] || (_[0] = k("i", { class: "ri-eye-line" }, null, -1))
|
|
1096
1105
|
], !0) : E("", !0),
|
|
1097
|
-
|
|
1098
|
-
|
|
1106
|
+
r.value ? E("", !0) : b(i.$slots, "off", { key: 1 }, () => [
|
|
1107
|
+
_[1] || (_[1] = k("i", { class: "ri-eye-off-line" }, null, -1))
|
|
1099
1108
|
], !0)
|
|
1100
1109
|
], 4));
|
|
1101
1110
|
}
|
|
1102
|
-
}), Ft = /* @__PURE__ */
|
|
1111
|
+
}), Ft = /* @__PURE__ */ v(Ht, [["__scopeId", "data-v-3268e9e3"]]), Gt = /* @__PURE__ */ h({
|
|
1103
1112
|
__name: "t-avatar",
|
|
1104
1113
|
props: {
|
|
1105
1114
|
square: { type: Boolean, default: !1 },
|
|
1106
1115
|
size: { default: "standard" }
|
|
1107
1116
|
},
|
|
1108
1117
|
setup(e) {
|
|
1109
|
-
const t = e, o =
|
|
1110
|
-
return (s,
|
|
1111
|
-
class:
|
|
1112
|
-
style:
|
|
1118
|
+
const t = e, o = w(() => t.size == "small" ? "24px" : t.size == "standard" ? "40px" : t.size == "large" ? "60px" : t.size);
|
|
1119
|
+
return (s, r) => (u(), p("div", {
|
|
1120
|
+
class: S(["t-avatar", { square: s.square }]),
|
|
1121
|
+
style: T({ "--size": o.value })
|
|
1113
1122
|
}, [
|
|
1114
|
-
|
|
1123
|
+
b(s.$slots, "default", {}, void 0, !0)
|
|
1115
1124
|
], 6));
|
|
1116
1125
|
}
|
|
1117
|
-
}), Ut = /* @__PURE__ */
|
|
1126
|
+
}), Ut = /* @__PURE__ */ v(Gt, [["__scopeId", "data-v-24384c2f"]]), jt = { class: "t-collapse-title" }, Kt = {
|
|
1118
1127
|
key: 0,
|
|
1119
1128
|
class: "icon"
|
|
1120
1129
|
}, Jt = {
|
|
1121
1130
|
key: 1,
|
|
1122
1131
|
class: "icon"
|
|
1123
|
-
}, Qt = { class: "t-collapse-content" }, Zt = /* @__PURE__ */
|
|
1132
|
+
}, Qt = { class: "t-collapse-content" }, Zt = /* @__PURE__ */ h({
|
|
1124
1133
|
__name: "t-collapse",
|
|
1125
1134
|
props: {
|
|
1126
1135
|
title: {}
|
|
1127
1136
|
},
|
|
1128
1137
|
emits: ["change"],
|
|
1129
1138
|
setup(e, { emit: t }) {
|
|
1130
|
-
const o = e, s = t,
|
|
1131
|
-
|
|
1139
|
+
const o = e, s = t, r = m(!1), l = m(""), d = m(), n = () => {
|
|
1140
|
+
r.value = !r.value, l.value = `calc(${d.value.offsetHeight}px + 2rem)`, s("change", r.value);
|
|
1132
1141
|
};
|
|
1133
|
-
return s("change",
|
|
1134
|
-
class:
|
|
1135
|
-
style:
|
|
1142
|
+
return s("change", r.value), (c, i) => (u(), p("div", {
|
|
1143
|
+
class: S(["t-collapse", { open: r.value }]),
|
|
1144
|
+
style: T({ "--height": l.value })
|
|
1136
1145
|
}, [
|
|
1137
1146
|
k("div", {
|
|
1138
1147
|
class: "t-collapse-header",
|
|
1139
|
-
onClick:
|
|
1148
|
+
onClick: n
|
|
1140
1149
|
}, [
|
|
1141
|
-
|
|
1150
|
+
b(c.$slots, "icon"),
|
|
1142
1151
|
k("div", jt, [
|
|
1143
|
-
|
|
1144
|
-
|
|
1152
|
+
b(c.$slots, "title", {}, () => [
|
|
1153
|
+
q(R(o.title), 1)
|
|
1145
1154
|
])
|
|
1146
1155
|
]),
|
|
1147
|
-
|
|
1148
|
-
|
|
1156
|
+
b(c.$slots, "toggle", {}, () => [
|
|
1157
|
+
r.value ? (u(), p("div", Kt, [...i[0] || (i[0] = [
|
|
1149
1158
|
k("i", { class: "ri-arrow-up-s-line" }, null, -1)
|
|
1150
|
-
])])) : (
|
|
1159
|
+
])])) : (u(), p("div", Jt, [...i[1] || (i[1] = [
|
|
1151
1160
|
k("i", { class: "ri-arrow-down-s-line" }, null, -1)
|
|
1152
1161
|
])]))
|
|
1153
1162
|
])
|
|
@@ -1157,14 +1166,14 @@ const qt = /* @__PURE__ */ _(Xt, [["render", Nt]]), Lt = /* @__PURE__ */ b({
|
|
|
1157
1166
|
ref_key: "content",
|
|
1158
1167
|
ref: d
|
|
1159
1168
|
}, [
|
|
1160
|
-
|
|
1161
|
-
|
|
1169
|
+
b(c.$slots, "content", {}, () => [
|
|
1170
|
+
b(c.$slots, "default")
|
|
1162
1171
|
])
|
|
1163
1172
|
], 512)
|
|
1164
1173
|
])
|
|
1165
1174
|
], 6));
|
|
1166
1175
|
}
|
|
1167
|
-
}), Yt = /* @__PURE__ */
|
|
1176
|
+
}), Yt = /* @__PURE__ */ h({
|
|
1168
1177
|
__name: "t-switch",
|
|
1169
1178
|
props: {
|
|
1170
1179
|
modelValue: { type: Boolean },
|
|
@@ -1172,9 +1181,9 @@ const qt = /* @__PURE__ */ _(Xt, [["render", Nt]]), Lt = /* @__PURE__ */ b({
|
|
|
1172
1181
|
},
|
|
1173
1182
|
emits: ["update:modelValue"],
|
|
1174
1183
|
setup(e, { emit: t }) {
|
|
1175
|
-
const o = e, s = t,
|
|
1184
|
+
const o = e, s = t, r = () => {
|
|
1176
1185
|
s("update:modelValue", !o.modelValue);
|
|
1177
|
-
}, l =
|
|
1186
|
+
}, l = w(() => {
|
|
1178
1187
|
let d = {
|
|
1179
1188
|
"--background": o.color,
|
|
1180
1189
|
"--color": "#ffffff"
|
|
@@ -1184,40 +1193,40 @@ const qt = /* @__PURE__ */ _(Xt, [["render", Nt]]), Lt = /* @__PURE__ */ b({
|
|
|
1184
1193
|
"--color": `var(--t-color-status-${o.color}-text)`
|
|
1185
1194
|
}), d;
|
|
1186
1195
|
});
|
|
1187
|
-
return (d,
|
|
1188
|
-
class:
|
|
1189
|
-
style:
|
|
1190
|
-
onClick:
|
|
1191
|
-
}, [...
|
|
1196
|
+
return (d, n) => (u(), p("div", {
|
|
1197
|
+
class: S(["t-switch", { on: o.modelValue }]),
|
|
1198
|
+
style: T(l.value),
|
|
1199
|
+
onClick: r
|
|
1200
|
+
}, [...n[0] || (n[0] = [
|
|
1192
1201
|
k("div", { class: "t-switch-icon" }, null, -1)
|
|
1193
1202
|
])], 6));
|
|
1194
1203
|
}
|
|
1195
|
-
}), eo = /* @__PURE__ */
|
|
1204
|
+
}), eo = /* @__PURE__ */ v(Yt, [["__scopeId", "data-v-3616970e"]]), to = /* @__PURE__ */ h({
|
|
1196
1205
|
__name: "t-tab",
|
|
1197
1206
|
props: {
|
|
1198
1207
|
value: {}
|
|
1199
1208
|
},
|
|
1200
1209
|
setup(e) {
|
|
1201
|
-
const t = e, o = ie("tabsState"), s =
|
|
1210
|
+
const t = e, o = ie("tabsState"), s = w(() => o.active.value === t.value), r = () => {
|
|
1202
1211
|
o.setActive(t.value);
|
|
1203
1212
|
};
|
|
1204
|
-
return (l, d) => (
|
|
1205
|
-
class:
|
|
1213
|
+
return (l, d) => (u(), p("li", {
|
|
1214
|
+
class: S(["t-tab", { active: s.value }])
|
|
1206
1215
|
}, [
|
|
1207
1216
|
G(J, {
|
|
1208
1217
|
variant: "text",
|
|
1209
|
-
onClick:
|
|
1218
|
+
onClick: r,
|
|
1210
1219
|
size: V(o).size,
|
|
1211
1220
|
color: s.value && V(o).variant == "text" ? V(o).color : void 0
|
|
1212
1221
|
}, {
|
|
1213
1222
|
default: P(() => [
|
|
1214
|
-
|
|
1223
|
+
b(l.$slots, "default", {}, void 0, !0)
|
|
1215
1224
|
]),
|
|
1216
1225
|
_: 3
|
|
1217
1226
|
}, 8, ["size", "color"])
|
|
1218
1227
|
], 2));
|
|
1219
1228
|
}
|
|
1220
|
-
}), oo = /* @__PURE__ */
|
|
1229
|
+
}), oo = /* @__PURE__ */ v(to, [["__scopeId", "data-v-f810d905"]]), so = /* @__PURE__ */ h({
|
|
1221
1230
|
__name: "t-tabs",
|
|
1222
1231
|
props: {
|
|
1223
1232
|
placement: { default: "top-start" },
|
|
@@ -1229,59 +1238,59 @@ const qt = /* @__PURE__ */ _(Xt, [["render", Nt]]), Lt = /* @__PURE__ */ b({
|
|
|
1229
1238
|
},
|
|
1230
1239
|
emits: ["update:modelValue"],
|
|
1231
1240
|
setup(e, { emit: t }) {
|
|
1232
|
-
const o = e, s = t,
|
|
1233
|
-
let
|
|
1234
|
-
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(
|
|
1235
|
-
}),
|
|
1241
|
+
const o = e, s = t, r = m("0px"), l = m(), d = w(() => {
|
|
1242
|
+
let c = o.color;
|
|
1243
|
+
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(c) && (c = `var(--t-color-status-${c})`), c;
|
|
1244
|
+
}), n = () => {
|
|
1236
1245
|
setTimeout(() => {
|
|
1237
1246
|
if (o.placement.startsWith("top-") || o.placement.startsWith("bottom-")) {
|
|
1238
|
-
let
|
|
1239
|
-
if (
|
|
1240
|
-
let
|
|
1241
|
-
|
|
1247
|
+
let c = l.value.querySelector(".active");
|
|
1248
|
+
if (c) {
|
|
1249
|
+
let i = c.getBoundingClientRect().left - l.value.getBoundingClientRect().left + l.value.scrollLeft, _ = c.offsetWidth / 2;
|
|
1250
|
+
r.value = i + _ - o.border / 2 + "px";
|
|
1242
1251
|
}
|
|
1243
1252
|
} else if (o.placement.startsWith("left-") || o.placement.startsWith("right-")) {
|
|
1244
|
-
let
|
|
1245
|
-
if (
|
|
1246
|
-
let
|
|
1247
|
-
|
|
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";
|
|
1248
1257
|
}
|
|
1249
1258
|
}
|
|
1250
1259
|
}, 50);
|
|
1251
1260
|
};
|
|
1252
1261
|
return ce("tabsState", {
|
|
1253
|
-
active:
|
|
1262
|
+
active: w(() => o.modelValue),
|
|
1254
1263
|
color: d.value,
|
|
1255
1264
|
size: o.size,
|
|
1256
1265
|
variant: o.variant,
|
|
1257
|
-
setActive: (
|
|
1258
|
-
s("update:modelValue",
|
|
1266
|
+
setActive: (c) => {
|
|
1267
|
+
s("update:modelValue", c), n();
|
|
1259
1268
|
}
|
|
1260
1269
|
}), se(() => {
|
|
1261
|
-
|
|
1262
|
-
}), (
|
|
1270
|
+
n();
|
|
1271
|
+
}), (c, i) => (u(), p("ul", {
|
|
1263
1272
|
ref_key: "container",
|
|
1264
1273
|
ref: l,
|
|
1265
|
-
class:
|
|
1266
|
-
style:
|
|
1274
|
+
class: S(["t-tabs", { [c.placement]: !0, [c.variant]: !0 }]),
|
|
1275
|
+
style: T({ "--color": d.value, "--transform": r.value, "--border": c.border + "px" })
|
|
1267
1276
|
}, [
|
|
1268
|
-
|
|
1277
|
+
b(c.$slots, "default", {}, void 0, !0)
|
|
1269
1278
|
], 6));
|
|
1270
1279
|
}
|
|
1271
|
-
}),
|
|
1280
|
+
}), ro = /* @__PURE__ */ v(so, [["__scopeId", "data-v-3a46d2df"]]), no = /* @__PURE__ */ h({
|
|
1272
1281
|
__name: "t-loading-app",
|
|
1273
1282
|
setup(e) {
|
|
1274
|
-
return (t, o) => (
|
|
1283
|
+
return (t, o) => (u(), C(ve, null, {
|
|
1275
1284
|
default: P(() => [
|
|
1276
1285
|
G(K, { type: "spinner" })
|
|
1277
1286
|
]),
|
|
1278
1287
|
_: 1
|
|
1279
1288
|
}));
|
|
1280
1289
|
}
|
|
1281
|
-
}), ao = /* @__PURE__ */
|
|
1290
|
+
}), ao = /* @__PURE__ */ v(no, [["__scopeId", "data-v-1436aa9f"]]), lo = { key: 0 }, co = {
|
|
1282
1291
|
key: 0,
|
|
1283
1292
|
class: "t-checkbox-label"
|
|
1284
|
-
}, io = /* @__PURE__ */
|
|
1293
|
+
}, io = /* @__PURE__ */ h({
|
|
1285
1294
|
__name: "t-checkbox",
|
|
1286
1295
|
props: {
|
|
1287
1296
|
label: { default: "" },
|
|
@@ -1294,49 +1303,49 @@ const qt = /* @__PURE__ */ _(Xt, [["render", Nt]]), Lt = /* @__PURE__ */ b({
|
|
|
1294
1303
|
},
|
|
1295
1304
|
emits: ["update:modelValue"],
|
|
1296
1305
|
setup(e, { emit: t }) {
|
|
1297
|
-
const o = e, s = t,
|
|
1298
|
-
let
|
|
1306
|
+
const o = e, s = t, r = w(() => {
|
|
1307
|
+
let n = {
|
|
1299
1308
|
"--background": o.color,
|
|
1300
1309
|
"--color": "#ffffff"
|
|
1301
1310
|
};
|
|
1302
|
-
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (
|
|
1311
|
+
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (n = {
|
|
1303
1312
|
"--background": `var(--t-color-status-${o.color})`,
|
|
1304
1313
|
"--color": `var(--t-color-status-${o.color}-text)`
|
|
1305
|
-
}),
|
|
1306
|
-
}), l =
|
|
1314
|
+
}), n;
|
|
1315
|
+
}), l = w(() => o.multiple ? o.modelValue.includes(o.value) : o.value === void 0 ? o.modelValue : o.modelValue == o.value), d = () => {
|
|
1307
1316
|
if (o.multiple) {
|
|
1308
|
-
let
|
|
1309
|
-
o.modelValue.includes(o.value) ?
|
|
1317
|
+
let n = o.modelValue;
|
|
1318
|
+
o.modelValue.includes(o.value) ? n.splice(n.indexOf(o.value), 1) : n.push(o.value), s("update:modelValue", n);
|
|
1310
1319
|
} else o.value === void 0 ? s("update:modelValue", !o.modelValue) : s("update:modelValue", o.value);
|
|
1311
1320
|
};
|
|
1312
|
-
return (
|
|
1313
|
-
class:
|
|
1314
|
-
style:
|
|
1321
|
+
return (n, c) => (u(), p("div", {
|
|
1322
|
+
class: S(["t-checkbox", { active: l.value }]),
|
|
1323
|
+
style: T(r.value),
|
|
1315
1324
|
onClick: d
|
|
1316
1325
|
}, [
|
|
1317
1326
|
k("div", {
|
|
1318
|
-
class:
|
|
1327
|
+
class: S(`t-checkbox-${n.type}`)
|
|
1319
1328
|
}, [
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1329
|
+
n.type == "radio" ? (u(), p("div", lo)) : E("", !0),
|
|
1330
|
+
n.type == "check" ? b(n.$slots, "icon", { key: 1 }, () => [
|
|
1331
|
+
c[0] || (c[0] = k("i", { class: "ri-check-line" }, null, -1))
|
|
1323
1332
|
], !0) : E("", !0)
|
|
1324
1333
|
], 2),
|
|
1325
|
-
|
|
1326
|
-
|
|
1334
|
+
b(n.$slots, "label", {}, () => [
|
|
1335
|
+
n.label ? (u(), p("span", co, R(o.label), 1)) : E("", !0)
|
|
1327
1336
|
], !0)
|
|
1328
1337
|
], 6));
|
|
1329
1338
|
}
|
|
1330
|
-
}), uo = /* @__PURE__ */
|
|
1339
|
+
}), uo = /* @__PURE__ */ v(io, [["__scopeId", "data-v-0e13abc3"]]), po = /* @__PURE__ */ h({
|
|
1331
1340
|
__name: "t-keyboard",
|
|
1332
1341
|
setup(e) {
|
|
1333
1342
|
const { height: t } = me();
|
|
1334
|
-
return (o, s) => (
|
|
1343
|
+
return (o, s) => (u(), p("div", {
|
|
1335
1344
|
class: "t-keyboard",
|
|
1336
|
-
style:
|
|
1345
|
+
style: T({ "--height": V(t) + "px" })
|
|
1337
1346
|
}, null, 4));
|
|
1338
1347
|
}
|
|
1339
|
-
}), fo = /* @__PURE__ */
|
|
1348
|
+
}), fo = /* @__PURE__ */ v(po, [["__scopeId", "data-v-5d3fa1da"]]), mo = /* @__PURE__ */ h({
|
|
1340
1349
|
__name: "t-skeleton",
|
|
1341
1350
|
props: {
|
|
1342
1351
|
width: { default: "100%" },
|
|
@@ -1345,23 +1354,23 @@ const qt = /* @__PURE__ */ _(Xt, [["render", Nt]]), Lt = /* @__PURE__ */ b({
|
|
|
1345
1354
|
color: { default: null }
|
|
1346
1355
|
},
|
|
1347
1356
|
setup(e) {
|
|
1348
|
-
const t = e, o =
|
|
1357
|
+
const t = e, o = w(() => ({
|
|
1349
1358
|
"--width": t.width,
|
|
1350
1359
|
"--height": t.height,
|
|
1351
1360
|
"--radius": t.radius
|
|
1352
1361
|
}));
|
|
1353
|
-
return (s,
|
|
1362
|
+
return (s, r) => (u(), p("div", {
|
|
1354
1363
|
class: "t-skeleton",
|
|
1355
|
-
style:
|
|
1364
|
+
style: T(o.value)
|
|
1356
1365
|
}, null, 4));
|
|
1357
1366
|
}
|
|
1358
|
-
}), vo = /* @__PURE__ */
|
|
1367
|
+
}), vo = /* @__PURE__ */ v(mo, [["__scopeId", "data-v-877bbdb5"]]), _o = /* @__PURE__ */ h({
|
|
1359
1368
|
__name: "t-ripple",
|
|
1360
1369
|
props: {
|
|
1361
1370
|
color: { default: "primary" }
|
|
1362
1371
|
},
|
|
1363
1372
|
setup(e) {
|
|
1364
|
-
const t = e, o =
|
|
1373
|
+
const t = e, o = w(() => {
|
|
1365
1374
|
let s = {};
|
|
1366
1375
|
return t.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? s = {
|
|
1367
1376
|
"--color": "var(--t-color-status-" + t.color + ")"
|
|
@@ -1371,14 +1380,14 @@ const qt = /* @__PURE__ */ _(Xt, [["render", Nt]]), Lt = /* @__PURE__ */ b({
|
|
|
1371
1380
|
"--color": "var(--t-color-surface)"
|
|
1372
1381
|
}, s;
|
|
1373
1382
|
});
|
|
1374
|
-
return (s,
|
|
1383
|
+
return (s, r) => (u(), p("div", {
|
|
1375
1384
|
class: "t-ripple",
|
|
1376
|
-
style:
|
|
1385
|
+
style: T(o.value)
|
|
1377
1386
|
}, null, 4));
|
|
1378
1387
|
}
|
|
1379
|
-
}), yo = /* @__PURE__ */
|
|
1388
|
+
}), yo = /* @__PURE__ */ v(_o, [["__scopeId", "data-v-42cb3d71"]]), xo = () => ({
|
|
1380
1389
|
install: (e) => {
|
|
1381
|
-
Te(), e.component("t-app", Ie), e.component("t-screen", _e), e.component("t-swipe-screen", mt), e.component("t-cable", st), e.component("t-toolbar", _t), e.component("t-content", ve), e.component("t-card",
|
|
1390
|
+
Te(), e.component("t-app", Ie), e.component("t-screen", _e), e.component("t-swipe-screen", mt), e.component("t-cable", st), e.component("t-toolbar", _t), e.component("t-content", ve), e.component("t-card", rt), e.component("t-refresher", it), e.component("t-button", J), e.component("t-back-button", gt), e.component("t-present", M), e.component("t-text", te), e.component("t-sheet", $t), e.component("t-gesture-indicator", ye), e.component("t-input", zt), e.component("t-textarea", Bt), e.component("t-rich-text", Pt), e.component("t-grid", Xt), e.component("t-grid-item", Lt), e.component("t-divider", Wt), e.component("t-toggle-password", Ft), e.component("t-loading-icon", K), e.component("t-alert", de), e.component("t-avatar", Ut), e.component("t-collapse", Zt), e.component("t-toast", fe), e.component("t-switch", eo), e.component("t-tab", oo), e.component("t-tabs", ro), e.component("t-loading-app", ao), e.component("t-checkbox", uo), e.component("t-keyboard", fo), e.component("t-skeleton", vo), e.component("t-ripple", yo);
|
|
1382
1391
|
}
|
|
1383
1392
|
});
|
|
1384
1393
|
export {
|
|
@@ -1390,6 +1399,6 @@ export {
|
|
|
1390
1399
|
xo as createToife,
|
|
1391
1400
|
$e as isFormElement,
|
|
1392
1401
|
We as presentController,
|
|
1393
|
-
|
|
1402
|
+
x as screenController,
|
|
1394
1403
|
me as useKeyboard
|
|
1395
1404
|
};
|