@toife/vue 1.2.62 → 1.2.64
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 +28 -3
- package/dist/index.css +1 -1
- package/dist/index.es.js +265 -265
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { createElementBlock as p, openBlock as i, renderSlot as g, defineComponent as b, ref as m, computed as
|
|
1
|
+
import { createElementBlock as p, openBlock as i, renderSlot as g, defineComponent as b, ref as m, computed as $, reactive as le, watch as O, Fragment as X, withDirectives as W, createCommentVNode as E, normalizeStyle as w, normalizeClass as x, vShow as H, createElementVNode as k, createVNode as G, createBlock as C, withCtx as P, toDisplayString as R, renderList as F, createTextVNode as N, 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
2
|
import { gesture as ne } from "@toife/gesture";
|
|
3
|
-
import { useRouter as
|
|
4
|
-
const
|
|
3
|
+
import { useRouter as ue, useRoute as ke } from "vue-router";
|
|
4
|
+
const $e = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isContentEditable), we = () => {
|
|
5
5
|
const e = document.activeElement;
|
|
6
6
|
e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable) && e.blur();
|
|
7
|
-
},
|
|
7
|
+
}, Te = () => {
|
|
8
8
|
document.addEventListener("contextmenu", (e) => e.preventDefault()), document.addEventListener("selectstart", (e) => e.preventDefault()), document.addEventListener("pointerup", (e) => {
|
|
9
|
-
|
|
9
|
+
!$e(e.target) && we();
|
|
10
10
|
});
|
|
11
11
|
}, _ = (e, t) => {
|
|
12
12
|
const o = e.__vccOpts || e;
|
|
13
13
|
for (const [s, n] of t)
|
|
14
14
|
o[s] = n;
|
|
15
15
|
return o;
|
|
16
|
-
},
|
|
17
|
-
function
|
|
18
|
-
return i(), p("div",
|
|
16
|
+
}, xe = {}, Se = { class: "t-app" };
|
|
17
|
+
function ze(e, t) {
|
|
18
|
+
return i(), p("div", Se, [
|
|
19
19
|
g(e.$slots, "default")
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const Ie = /* @__PURE__ */ _(xe, [["render", ze]]), Ee = /* @__PURE__ */ b({
|
|
23
23
|
__name: "t-present",
|
|
24
24
|
props: {
|
|
25
25
|
keepalive: { type: Boolean, default: !0 },
|
|
@@ -31,21 +31,21 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
31
31
|
},
|
|
32
32
|
emits: ["dismiss"],
|
|
33
33
|
setup(e, { expose: t, emit: o }) {
|
|
34
|
-
const s = m(0), n = m(!1), l = m(), d = m(), a = e, u = o, c =
|
|
34
|
+
const s = m(0), n = m(!1), l = m(), d = m(), a = e, u = o, c = $(() => n.value || a.keepalive), y = 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
39
|
}), r = (f) => {
|
|
40
|
-
a.backdrop ? f?.backdropOpacity && (
|
|
41
|
-
},
|
|
40
|
+
a.backdrop ? f?.backdropOpacity && (y["--t-present-backdrop-opacity"] = f.backdropOpacity) : y["--t-present-backdrop-opacity"] = "0", f?.transition && (y["--t-present-transition"] = f.transition, y["--t-present-transition"] = f.transition), f?.contentTransform && (y["--t-present-content-transform"] = f.contentTransform), f?.contentOpacity && (y["--t-present-content-opacity"] = f.contentOpacity);
|
|
41
|
+
}, v = () => {
|
|
42
42
|
r({
|
|
43
43
|
contentTransform: "0px",
|
|
44
44
|
transition: "0.2s",
|
|
45
45
|
backdropOpacity: "0.4",
|
|
46
46
|
contentOpacity: "1"
|
|
47
47
|
});
|
|
48
|
-
},
|
|
48
|
+
}, h = () => {
|
|
49
49
|
let f = "0px", D = "1";
|
|
50
50
|
a.placement == "bottom" || a.placement == "right" ? f = "100%" : a.placement == "top" || a.placement == "left" ? f = "-100%" : a.placement == "center" && (f = "0px", D = "0"), r({
|
|
51
51
|
contentTransform: f,
|
|
@@ -55,26 +55,26 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
55
55
|
});
|
|
56
56
|
};
|
|
57
57
|
O(() => a.visible, () => {
|
|
58
|
-
a.visible ? (n.value = !0, s.value =
|
|
59
|
-
|
|
60
|
-
}, 50)) : (
|
|
58
|
+
a.visible ? (n.value = !0, s.value = We.getNewIndex(), setTimeout(() => {
|
|
59
|
+
v();
|
|
60
|
+
}, 50)) : (h(), setTimeout(() => {
|
|
61
61
|
n.value = !1;
|
|
62
62
|
}, 200));
|
|
63
63
|
}), t({
|
|
64
64
|
render: r,
|
|
65
|
-
open:
|
|
66
|
-
close:
|
|
65
|
+
open: v,
|
|
66
|
+
close: h
|
|
67
67
|
});
|
|
68
68
|
const S = (f) => {
|
|
69
69
|
f.preventDefault(), u("dismiss", "backdrop");
|
|
70
70
|
};
|
|
71
|
-
return
|
|
71
|
+
return h(), (f, D) => (i(), p(X, null, [
|
|
72
72
|
c.value ? W((i(), p("div", {
|
|
73
73
|
key: 0,
|
|
74
74
|
class: x(["t-present", [{ [f.placement]: !0 }, a.class]]),
|
|
75
75
|
ref_key: "present",
|
|
76
76
|
ref: d,
|
|
77
|
-
style:
|
|
77
|
+
style: w([y, { zIndex: s.value }, a.style])
|
|
78
78
|
}, [
|
|
79
79
|
g(f.$slots, "default", {}, void 0, !0)
|
|
80
80
|
], 6)), [
|
|
@@ -86,13 +86,13 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
86
86
|
onClick: S,
|
|
87
87
|
ref_key: "backdrop",
|
|
88
88
|
ref: l,
|
|
89
|
-
style:
|
|
89
|
+
style: w([y, { zIndex: s.value - 1 }, a.style])
|
|
90
90
|
}, null, 4)), [
|
|
91
91
|
[H, n.value]
|
|
92
92
|
]) : E("", !0)
|
|
93
93
|
], 64));
|
|
94
94
|
}
|
|
95
|
-
}), L = /* @__PURE__ */ _(
|
|
95
|
+
}), L = /* @__PURE__ */ _(Ee, [["__scopeId", "data-v-8eb6e6e4"]]), Be = /* @__PURE__ */ b({
|
|
96
96
|
__name: "t-loading-icon",
|
|
97
97
|
props: {
|
|
98
98
|
size: {
|
|
@@ -107,7 +107,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
107
107
|
setup(e) {
|
|
108
108
|
return (t, o) => (i(), p("span", {
|
|
109
109
|
class: "t-loading-icon",
|
|
110
|
-
style:
|
|
110
|
+
style: w({
|
|
111
111
|
width: e.size,
|
|
112
112
|
height: e.size,
|
|
113
113
|
borderTopColor: e.color
|
|
@@ -116,10 +116,10 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
116
116
|
"aria-label": "Loading..."
|
|
117
117
|
}, null, 4));
|
|
118
118
|
}
|
|
119
|
-
}), K = /* @__PURE__ */ _(
|
|
119
|
+
}), K = /* @__PURE__ */ _(Be, [["__scopeId", "data-v-7c463303"]]), Ce = { class: "t-button-content" }, Ve = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "loader"
|
|
122
|
-
},
|
|
122
|
+
}, Pe = /* @__PURE__ */ b({
|
|
123
123
|
__name: "t-button",
|
|
124
124
|
props: {
|
|
125
125
|
color: { default: null },
|
|
@@ -132,7 +132,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__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 = $(() => {
|
|
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",
|
|
@@ -174,14 +174,14 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
174
174
|
});
|
|
175
175
|
return (s, n) => (i(), p("button", {
|
|
176
176
|
class: x(["t-button", { "active-background": t.activeBackground, rounded: t.rounded, block: t.block, ["size-" + t.size]: !0 }]),
|
|
177
|
-
style:
|
|
177
|
+
style: w(o.value)
|
|
178
178
|
}, [
|
|
179
|
-
W(
|
|
179
|
+
W(k("span", Ce, [
|
|
180
180
|
g(s.$slots, "default", {}, void 0, !0)
|
|
181
181
|
], 512), [
|
|
182
182
|
[H, !t.loading]
|
|
183
183
|
]),
|
|
184
|
-
t.loading ? (i(), p("span",
|
|
184
|
+
t.loading ? (i(), p("span", Ve, [
|
|
185
185
|
G(K, {
|
|
186
186
|
color: "var(--color)",
|
|
187
187
|
type: t.loadingType
|
|
@@ -189,10 +189,10 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
189
189
|
])) : E("", !0)
|
|
190
190
|
], 6));
|
|
191
191
|
}
|
|
192
|
-
}), J = /* @__PURE__ */ _(
|
|
192
|
+
}), J = /* @__PURE__ */ _(Pe, [["__scopeId", "data-v-185a9e49"]]), Ae = {
|
|
193
193
|
key: 0,
|
|
194
194
|
class: "t-alert-header"
|
|
195
|
-
},
|
|
195
|
+
}, Re = { class: "t-alert-content" }, Me = { class: "t-alert-footer" }, De = /* @__PURE__ */ b({
|
|
196
196
|
__name: "t-alert",
|
|
197
197
|
props: {
|
|
198
198
|
title: {},
|
|
@@ -206,41 +206,41 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
206
206
|
n.value = !0;
|
|
207
207
|
}, c = (r) => {
|
|
208
208
|
n.value = !1, r.handler && r.handler(), l("dismiss", "choose", r?.data);
|
|
209
|
-
},
|
|
209
|
+
}, y = (r) => {
|
|
210
210
|
s.dismiss && s.dismiss.includes(r) ? (n.value = !1, l("dismiss", r)) : r == "backdrop" && (a.value = !0, setTimeout(() => {
|
|
211
211
|
a.value = !1;
|
|
212
212
|
}, 300));
|
|
213
213
|
};
|
|
214
214
|
return t({
|
|
215
215
|
open: u
|
|
216
|
-
}), (r,
|
|
216
|
+
}), (r, v) => (i(), C(L, {
|
|
217
217
|
placement: "center",
|
|
218
218
|
backdrop: !0,
|
|
219
219
|
keepalive: !1,
|
|
220
220
|
visible: n.value,
|
|
221
|
-
onDismiss:
|
|
221
|
+
onDismiss: y
|
|
222
222
|
}, {
|
|
223
223
|
default: P(() => [
|
|
224
|
-
|
|
224
|
+
k("div", {
|
|
225
225
|
class: x(["t-alert", { pop: a.value }]),
|
|
226
226
|
ref_key: "container",
|
|
227
227
|
ref: d
|
|
228
228
|
}, [
|
|
229
229
|
g(r.$slots, "header", {}, () => [
|
|
230
|
-
s.title ? (i(), p("div",
|
|
230
|
+
s.title ? (i(), p("div", Ae, R(s.title), 1)) : E("", !0)
|
|
231
231
|
], !0),
|
|
232
232
|
g(r.$slots, "content", {}, () => [
|
|
233
|
-
|
|
233
|
+
k("div", Re, R(s.message), 1)
|
|
234
234
|
], !0),
|
|
235
235
|
g(r.$slots, "footer", {}, () => [
|
|
236
|
-
|
|
237
|
-
(i(!0), p(X, null, F(s.actions, (
|
|
238
|
-
color:
|
|
239
|
-
variant:
|
|
240
|
-
onClick: (S) => c(
|
|
236
|
+
k("div", Me, [
|
|
237
|
+
(i(!0), p(X, null, F(s.actions, (h) => (i(), C(J, {
|
|
238
|
+
color: h.color,
|
|
239
|
+
variant: h.variant,
|
|
240
|
+
onClick: (S) => c(h)
|
|
241
241
|
}, {
|
|
242
242
|
default: P(() => [
|
|
243
|
-
N(R(
|
|
243
|
+
N(R(h.text), 1)
|
|
244
244
|
]),
|
|
245
245
|
_: 2
|
|
246
246
|
}, 1032, ["color", "variant", "onClick"]))), 256))
|
|
@@ -251,7 +251,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
251
251
|
_: 3
|
|
252
252
|
}, 8, ["visible"]));
|
|
253
253
|
}
|
|
254
|
-
}),
|
|
254
|
+
}), de = /* @__PURE__ */ _(De, [["__scopeId", "data-v-05d0c578"]]), ko = (e = {}) => ({
|
|
255
255
|
open() {
|
|
256
256
|
return new Promise((t) => {
|
|
257
257
|
let o = document.body.querySelector(".t-app");
|
|
@@ -260,7 +260,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
260
260
|
o.appendChild(s);
|
|
261
261
|
const l = U({
|
|
262
262
|
render() {
|
|
263
|
-
return j(
|
|
263
|
+
return j(de, {
|
|
264
264
|
...e,
|
|
265
265
|
ref: n,
|
|
266
266
|
onDismiss: (d, a) => {
|
|
@@ -276,7 +276,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
276
276
|
}, 50);
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
|
-
}),
|
|
279
|
+
}), Xe = /* @__PURE__ */ b({
|
|
280
280
|
__name: "t-action",
|
|
281
281
|
props: {
|
|
282
282
|
actions: {},
|
|
@@ -289,7 +289,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
289
289
|
n.value = !0;
|
|
290
290
|
}, c = (r) => {
|
|
291
291
|
n.value = !1, r.handler && r.handler(), l("dismiss", "choose", r?.data);
|
|
292
|
-
},
|
|
292
|
+
}, y = (r) => {
|
|
293
293
|
s.dismiss && s.dismiss.includes(r) ? (n.value = !1, l("dismiss", r)) : r == "backdrop" && (a.value = !0, setTimeout(() => {
|
|
294
294
|
a.value = !1;
|
|
295
295
|
}, 300));
|
|
@@ -299,21 +299,21 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
299
299
|
}), t({
|
|
300
300
|
open: u,
|
|
301
301
|
close
|
|
302
|
-
}), (r,
|
|
302
|
+
}), (r, v) => (i(), C(L, {
|
|
303
303
|
placement: "bottom",
|
|
304
304
|
backdrop: !0,
|
|
305
305
|
keepalive: !1,
|
|
306
306
|
visible: n.value,
|
|
307
|
-
onDismiss:
|
|
307
|
+
onDismiss: y
|
|
308
308
|
}, {
|
|
309
309
|
default: P(() => [
|
|
310
|
-
|
|
310
|
+
k("div", {
|
|
311
311
|
class: x(["t-action", { pop: a.value }]),
|
|
312
312
|
ref_key: "container",
|
|
313
313
|
ref: d
|
|
314
314
|
}, [
|
|
315
|
-
(i(!0), p(X, null, F(s.actions, (
|
|
316
|
-
(i(!0), p(X, null, F(
|
|
315
|
+
(i(!0), p(X, null, F(s.actions, (h) => (i(), p("div", null, [
|
|
316
|
+
(i(!0), p(X, null, F(h, (S) => (i(), C(J, {
|
|
317
317
|
color: S.color,
|
|
318
318
|
size: S.size,
|
|
319
319
|
variant: S.variant,
|
|
@@ -331,7 +331,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
331
331
|
_: 1
|
|
332
332
|
}, 8, ["visible"]));
|
|
333
333
|
}
|
|
334
|
-
}),
|
|
334
|
+
}), Oe = /* @__PURE__ */ _(Xe, [["__scopeId", "data-v-e693a02a"]]), $o = (e = {}) => ({
|
|
335
335
|
open() {
|
|
336
336
|
return new Promise((t) => {
|
|
337
337
|
let o = document.body.querySelector(".t-app");
|
|
@@ -340,7 +340,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
340
340
|
o.appendChild(s);
|
|
341
341
|
const l = U({
|
|
342
342
|
render() {
|
|
343
|
-
return j(
|
|
343
|
+
return j(Oe, {
|
|
344
344
|
...e,
|
|
345
345
|
ref: n,
|
|
346
346
|
onDismiss: (d, a) => {
|
|
@@ -356,7 +356,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
356
356
|
}, 50);
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
|
-
}),
|
|
359
|
+
}), Ne = { class: "t-loading" }, qe = /* @__PURE__ */ b({
|
|
360
360
|
__name: "t-loading",
|
|
361
361
|
props: {
|
|
362
362
|
type: { default: "spinner" }
|
|
@@ -378,7 +378,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
378
378
|
visible: n.value
|
|
379
379
|
}, {
|
|
380
380
|
default: P(() => [
|
|
381
|
-
|
|
381
|
+
k("div", Ne, [
|
|
382
382
|
g(a.$slots, "default", {}, () => [
|
|
383
383
|
G(K, {
|
|
384
384
|
type: s.type
|
|
@@ -389,7 +389,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
389
389
|
_: 3
|
|
390
390
|
}, 8, ["visible"]));
|
|
391
391
|
}
|
|
392
|
-
}),
|
|
392
|
+
}), Le = /* @__PURE__ */ _(qe, [["__scopeId", "data-v-8f84c14e"]]), wo = (e = {}) => {
|
|
393
393
|
const t = m(), o = document.body.querySelector(".t-app");
|
|
394
394
|
let s = null, n = null;
|
|
395
395
|
return {
|
|
@@ -397,7 +397,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
397
397
|
return new Promise((l) => {
|
|
398
398
|
o && (n = document.createElement("div"), o.appendChild(n), s = U({
|
|
399
399
|
render() {
|
|
400
|
-
return j(
|
|
400
|
+
return j(Le, {
|
|
401
401
|
...e,
|
|
402
402
|
ref: t
|
|
403
403
|
});
|
|
@@ -415,11 +415,11 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
};
|
|
418
|
-
}, ae = m(1e3),
|
|
418
|
+
}, ae = m(1e3), We = {
|
|
419
419
|
getNewIndex() {
|
|
420
420
|
return ae.value += 2, ae.value;
|
|
421
421
|
}
|
|
422
|
-
}, M =
|
|
422
|
+
}, M = le([]), Q = m(!0), I = m(!1), A = m(-1), z = $(() => M[A.value]), q = $(() => M[A.value + 1] || void 0), B = $(() => M[M.length - 2]), pe = $(() => !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;
|
|
@@ -428,7 +428,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
428
428
|
}, 400);
|
|
429
429
|
},
|
|
430
430
|
move(e) {
|
|
431
|
-
if (!
|
|
431
|
+
if (!pe.value) return;
|
|
432
432
|
const t = window.innerWidth, o = e / t * 100, s = z.value.target, n = B.value.target;
|
|
433
433
|
e > 15 && e <= t && (e = e > 0 ? e : 0, s.style.transition = "transform 0s ease", s.style.transform = `translateX(${e}px)`, n.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), n.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
|
},
|
|
@@ -482,45 +482,45 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
482
482
|
}, 400);
|
|
483
483
|
}, 100);
|
|
484
484
|
}
|
|
485
|
-
},
|
|
485
|
+
}, He = (e) => {
|
|
486
486
|
M.push(e);
|
|
487
|
-
},
|
|
487
|
+
}, Fe = (e, t) => {
|
|
488
488
|
M[e].target = t;
|
|
489
489
|
}, re = (e) => {
|
|
490
490
|
e || M.pop();
|
|
491
|
-
},
|
|
491
|
+
}, Ge = () => {
|
|
492
492
|
M.splice(0, M.length);
|
|
493
|
-
},
|
|
493
|
+
}, Ue = () => {
|
|
494
494
|
Q.value = !1;
|
|
495
|
-
},
|
|
495
|
+
}, je = () => {
|
|
496
496
|
Q.value = !0;
|
|
497
|
-
},
|
|
497
|
+
}, Ke = (e, t) => {
|
|
498
498
|
e == "scale" && Z.next(t), e == "transform" && Y.next(t);
|
|
499
|
-
},
|
|
499
|
+
}, Je = (e, t) => {
|
|
500
500
|
e == "scale" && Z.back(t), e == "transform" && Y.back(t);
|
|
501
|
-
},
|
|
501
|
+
}, Qe = (e, t) => {
|
|
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
|
}, T = {
|
|
506
506
|
isBusy: I,
|
|
507
|
-
isSwipeable:
|
|
508
|
-
reset:
|
|
509
|
-
next:
|
|
510
|
-
back:
|
|
511
|
-
move:
|
|
507
|
+
isSwipeable: pe,
|
|
508
|
+
reset: Ze,
|
|
509
|
+
next: Ke,
|
|
510
|
+
back: Je,
|
|
511
|
+
move: Qe,
|
|
512
512
|
screens: M,
|
|
513
|
-
addScreen:
|
|
514
|
-
addScreenEl:
|
|
513
|
+
addScreen: He,
|
|
514
|
+
addScreenEl: Fe,
|
|
515
515
|
removeScreen: re,
|
|
516
|
-
removeAllScreen:
|
|
517
|
-
lockSwipe:
|
|
518
|
-
unlockSwipe:
|
|
516
|
+
removeAllScreen: Ge,
|
|
517
|
+
lockSwipe: Ue,
|
|
518
|
+
unlockSwipe: je,
|
|
519
519
|
swipeable: Q,
|
|
520
520
|
currentScreen: z,
|
|
521
521
|
lastScreen: B,
|
|
522
522
|
nextScreen: q
|
|
523
|
-
},
|
|
523
|
+
}, Ye = { class: "t-toast-content" }, et = /* @__PURE__ */ b({
|
|
524
524
|
__name: "t-toast",
|
|
525
525
|
props: {
|
|
526
526
|
message: {},
|
|
@@ -544,7 +544,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
544
544
|
O(() => s.visible, (r) => {
|
|
545
545
|
r ? u() : c();
|
|
546
546
|
});
|
|
547
|
-
const
|
|
547
|
+
const y = $(() => {
|
|
548
548
|
let r;
|
|
549
549
|
return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? r = {
|
|
550
550
|
"--border": "none",
|
|
@@ -587,17 +587,17 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
587
587
|
return t({
|
|
588
588
|
open: u,
|
|
589
589
|
close: c
|
|
590
|
-
}), (r,
|
|
590
|
+
}), (r, v) => d.value ? (i(), p("div", {
|
|
591
591
|
key: 0,
|
|
592
592
|
class: x(["t-toast", { [s.placement]: !0, open: l.value, closing: a.value }]),
|
|
593
|
-
style:
|
|
593
|
+
style: w({ "--space": s.space, ...y.value })
|
|
594
594
|
}, [
|
|
595
595
|
g(r.$slots, "content", {}, () => [
|
|
596
|
-
|
|
596
|
+
k("div", Ye, R(s.message), 1)
|
|
597
597
|
], !0)
|
|
598
598
|
], 6)) : E("", !0);
|
|
599
599
|
}
|
|
600
|
-
}),
|
|
600
|
+
}), fe = /* @__PURE__ */ _(et, [["__scopeId", "data-v-7011351e"]]), To = (e = {}) => ({
|
|
601
601
|
open() {
|
|
602
602
|
let t = document.body.querySelector(".t-app");
|
|
603
603
|
if (!t) return;
|
|
@@ -605,7 +605,7 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
605
605
|
t.appendChild(o);
|
|
606
606
|
const n = U({
|
|
607
607
|
render() {
|
|
608
|
-
return j(
|
|
608
|
+
return j(fe, {
|
|
609
609
|
...e,
|
|
610
610
|
ref: s,
|
|
611
611
|
onDismiss: () => {
|
|
@@ -622,36 +622,36 @@ const Ee = /* @__PURE__ */ _(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
622
622
|
}, e.duration + 10);
|
|
623
623
|
}, 50);
|
|
624
624
|
}
|
|
625
|
-
}),
|
|
626
|
-
function
|
|
625
|
+
}), tt = m(0);
|
|
626
|
+
function me() {
|
|
627
627
|
return {
|
|
628
|
-
height:
|
|
628
|
+
height: tt
|
|
629
629
|
};
|
|
630
630
|
}
|
|
631
|
-
const
|
|
631
|
+
const ot = /* @__PURE__ */ b({
|
|
632
632
|
__name: "t-cable",
|
|
633
633
|
props: {
|
|
634
634
|
keyboard: { type: Boolean, default: !1 },
|
|
635
635
|
placement: { default: "bottom" }
|
|
636
636
|
},
|
|
637
637
|
setup(e) {
|
|
638
|
-
const t = e, { height: o } =
|
|
639
|
-
return
|
|
638
|
+
const t = e, { height: o } = me();
|
|
639
|
+
return ce("cableState", {
|
|
640
640
|
placement: t.placement
|
|
641
641
|
}), (s, n) => (i(), p("div", {
|
|
642
642
|
class: x(["t-cable", { keyboard: t.keyboard && V(o) > 0, [t.placement]: !0 }]),
|
|
643
|
-
style:
|
|
643
|
+
style: w({ "--t-keyboard-height": V(o) + "px", "--t-keyboard-transition": V(o) > 0 ? "0.3s" : "0.1s" })
|
|
644
644
|
}, [
|
|
645
645
|
g(s.$slots, "default", {}, void 0, !0)
|
|
646
646
|
], 6));
|
|
647
647
|
}
|
|
648
|
-
}),
|
|
648
|
+
}), st = /* @__PURE__ */ _(ot, [["__scopeId", "data-v-6cae224b"]]), nt = /* @__PURE__ */ b({
|
|
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 = $(() => {
|
|
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 + ")"
|
|
@@ -663,34 +663,37 @@ const st = /* @__PURE__ */ b({
|
|
|
663
663
|
});
|
|
664
664
|
return (s, n) => (i(), p("div", {
|
|
665
665
|
class: "t-card",
|
|
666
|
-
style:
|
|
666
|
+
style: w(o.value)
|
|
667
667
|
}, [
|
|
668
668
|
g(s.$slots, "default")
|
|
669
669
|
], 4));
|
|
670
670
|
}
|
|
671
|
-
}),
|
|
672
|
-
function
|
|
673
|
-
return i(), p("div",
|
|
671
|
+
}), rt = {}, at = { class: "t-content" };
|
|
672
|
+
function lt(e, t) {
|
|
673
|
+
return i(), p("div", at, [
|
|
674
674
|
g(e.$slots, "default", {}, void 0, !0)
|
|
675
675
|
]);
|
|
676
676
|
}
|
|
677
|
-
const
|
|
677
|
+
const ve = /* @__PURE__ */ _(rt, [["render", lt], ["__scopeId", "data-v-af750e89"]]), ct = /* @__PURE__ */ b({
|
|
678
678
|
__name: "t-refresher",
|
|
679
|
+
props: {
|
|
680
|
+
threshold: { default: 80 }
|
|
681
|
+
},
|
|
679
682
|
emits: ["refresh", "move", "cancel", "start"],
|
|
680
683
|
setup(e, { emit: t }) {
|
|
681
|
-
const o = t, s = m(0),
|
|
682
|
-
let
|
|
683
|
-
const
|
|
684
|
-
|
|
685
|
-
|
|
684
|
+
const o = t, s = e, n = m(0), l = m(!1), d = m();
|
|
685
|
+
let a, u = !1;
|
|
686
|
+
const c = () => {
|
|
687
|
+
l.value = !1, n.value = 0, a && a.cancel(), setTimeout(() => {
|
|
688
|
+
u = !1;
|
|
686
689
|
}, 2e3);
|
|
687
|
-
},
|
|
688
|
-
|
|
690
|
+
}, y = () => {
|
|
691
|
+
u = !0, l.value = !0, n.value = s.threshold, o("refresh", c);
|
|
689
692
|
};
|
|
690
|
-
return O(() =>
|
|
691
|
-
|
|
692
|
-
let
|
|
693
|
-
|
|
693
|
+
return O(() => d.value, () => {
|
|
694
|
+
a && a.destroy();
|
|
695
|
+
let r = d.value.closest(".t-content");
|
|
696
|
+
r && (a = ne(r, {
|
|
694
697
|
isMoving: !1,
|
|
695
698
|
options: {
|
|
696
699
|
minDist: 60
|
|
@@ -698,43 +701,40 @@ const _e = /* @__PURE__ */ _(at, [["render", ct], ["__scopeId", "data-v-af750e89
|
|
|
698
701
|
down() {
|
|
699
702
|
this.isMoving = !1, o("start");
|
|
700
703
|
},
|
|
701
|
-
move({ deltaY:
|
|
702
|
-
|
|
704
|
+
move({ deltaY: v, initialDirection: h }) {
|
|
705
|
+
l.value || u || h != "down" || (v >= 120 ? (this.isMoving = !1, y()) : (v > 10 || this.isMoving) && (this.isMoving = !0, n.value = v > 0 ? v : 0, o("move", v)));
|
|
703
706
|
},
|
|
704
|
-
up({ deltaY:
|
|
705
|
-
this.isMoving = !1, !(
|
|
707
|
+
up({ deltaY: v, initialDirection: h }) {
|
|
708
|
+
this.isMoving = !1, !(l.value || u) && (v > s.threshold && h == "down" ? y() : (n.value = 0, o("cancel")));
|
|
706
709
|
},
|
|
707
710
|
cancel() {
|
|
708
|
-
this.isMoving = !1, !(
|
|
711
|
+
this.isMoving = !1, !(l.value || u) && (l.value = !1, n.value = 0, o("cancel"));
|
|
709
712
|
}
|
|
710
713
|
}, {
|
|
711
714
|
passive: !1
|
|
712
715
|
}));
|
|
713
716
|
}), oe(() => {
|
|
714
|
-
|
|
715
|
-
}), (
|
|
717
|
+
a && a.destroy();
|
|
718
|
+
}), (r, v) => W((i(), p("div", {
|
|
716
719
|
class: "t-refresher",
|
|
717
720
|
ref_key: "container",
|
|
718
|
-
ref:
|
|
719
|
-
style: k({ height: `${s.value}px` })
|
|
721
|
+
ref: d
|
|
720
722
|
}, [
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
], 4)), [
|
|
728
|
-
[H, s.value > 0]
|
|
723
|
+
g(r.$slots, "default", {
|
|
724
|
+
offset: n.value,
|
|
725
|
+
refreshing: l.value
|
|
726
|
+
}, void 0, !0)
|
|
727
|
+
], 512)), [
|
|
728
|
+
[H, n.value > 0]
|
|
729
729
|
]);
|
|
730
730
|
}
|
|
731
|
-
}),
|
|
732
|
-
function
|
|
733
|
-
return i(), p("div",
|
|
731
|
+
}), it = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-6359f08e"]]), ut = {}, dt = { class: "t-screen" };
|
|
732
|
+
function pt(e, t) {
|
|
733
|
+
return i(), p("div", dt, [
|
|
734
734
|
g(e.$slots, "default", {}, void 0, !0)
|
|
735
735
|
]);
|
|
736
736
|
}
|
|
737
|
-
const
|
|
737
|
+
const _e = /* @__PURE__ */ _(ut, [["render", pt], ["__scopeId", "data-v-c2a3436c"]]), ft = /* @__PURE__ */ b({
|
|
738
738
|
__name: "t-swipe-screen",
|
|
739
739
|
props: {
|
|
740
740
|
variant: { default: "scale" },
|
|
@@ -746,21 +746,21 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
746
746
|
let o = {};
|
|
747
747
|
const s = t, n = e;
|
|
748
748
|
let l;
|
|
749
|
-
const d = n.router ||
|
|
749
|
+
const d = n.router || ue(), a = n.route || ke(), u = d.getRoutes();
|
|
750
750
|
for (let r of u)
|
|
751
751
|
o[r.name] = r.component || r.components;
|
|
752
752
|
const c = (r) => {
|
|
753
753
|
r && T.addScreen({
|
|
754
754
|
name: r,
|
|
755
755
|
target: null,
|
|
756
|
-
component:
|
|
756
|
+
component: be(o[r] || null)
|
|
757
757
|
});
|
|
758
|
-
},
|
|
759
|
-
!
|
|
758
|
+
}, y = (r, v) => {
|
|
759
|
+
!v || T.screens[r].target || (T.addScreenEl(r, v.$el), T.nextScreen && T.next(n.variant, () => {
|
|
760
760
|
s("change");
|
|
761
761
|
}));
|
|
762
762
|
};
|
|
763
|
-
return O(() => a.name, (r,
|
|
763
|
+
return O(() => a.name, (r, v) => {
|
|
764
764
|
r != T.currentScreen.value?.name && (T.lastScreen.value?.name == r ? T.back(n.variant, () => {
|
|
765
765
|
s("change");
|
|
766
766
|
}) : c(a.name));
|
|
@@ -772,16 +772,16 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
772
772
|
fast({ initialDirection: r }) {
|
|
773
773
|
T.lastScreen.value && r == "right" && d.back();
|
|
774
774
|
},
|
|
775
|
-
move({ deltaX: r, initialDirection:
|
|
776
|
-
|
|
775
|
+
move({ deltaX: r, initialDirection: v }) {
|
|
776
|
+
v == "right" && T.move(n.variant, r);
|
|
777
777
|
},
|
|
778
|
-
up({ deltaX: r, initialDirection:
|
|
779
|
-
if (
|
|
778
|
+
up({ deltaX: r, initialDirection: v }) {
|
|
779
|
+
if (v != "right") {
|
|
780
780
|
T.reset(n.variant);
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
|
-
const
|
|
784
|
-
r /
|
|
783
|
+
const h = window.innerWidth;
|
|
784
|
+
r / h * 100 >= 50 ? d.back() : T.reset(n.variant);
|
|
785
785
|
},
|
|
786
786
|
cancel() {
|
|
787
787
|
T.reset(n.variant);
|
|
@@ -789,25 +789,25 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
789
789
|
});
|
|
790
790
|
}), oe(() => {
|
|
791
791
|
l && l.destroy(), T.removeAllScreen();
|
|
792
|
-
}), (r,
|
|
793
|
-
(i(!0), p(X, null, F(V(T).screens, (
|
|
792
|
+
}), (r, v) => (i(), p(X, null, [
|
|
793
|
+
(i(!0), p(X, null, F(V(T).screens, (h, S) => (i(), C(_e, {
|
|
794
794
|
ref_for: !0,
|
|
795
|
-
ref: (f) =>
|
|
796
|
-
style:
|
|
795
|
+
ref: (f) => y(S, f),
|
|
796
|
+
style: w({ zIndex: S + (S == V(T).screens.length - 1 ? 2 : 1) }),
|
|
797
797
|
key: S
|
|
798
798
|
}, {
|
|
799
799
|
default: P(() => [
|
|
800
|
-
(i(), C(
|
|
800
|
+
(i(), C(ge(h.component.default)))
|
|
801
801
|
]),
|
|
802
802
|
_: 2
|
|
803
803
|
}, 1032, ["style"]))), 128)),
|
|
804
|
-
|
|
804
|
+
k("div", {
|
|
805
805
|
class: "t-swipe-backdrop",
|
|
806
|
-
style:
|
|
806
|
+
style: w({ zIndex: V(T).screens.length })
|
|
807
807
|
}, null, 4)
|
|
808
808
|
], 64));
|
|
809
809
|
}
|
|
810
|
-
}),
|
|
810
|
+
}), mt = /* @__PURE__ */ _(ft, [["__scopeId", "data-v-23e0cfda"]]), vt = /* @__PURE__ */ b({
|
|
811
811
|
__name: "t-toolbar",
|
|
812
812
|
props: {
|
|
813
813
|
placement: { default: null },
|
|
@@ -815,24 +815,24 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
815
815
|
size: { default: "50px" }
|
|
816
816
|
},
|
|
817
817
|
setup(e) {
|
|
818
|
-
const t = e, o =
|
|
818
|
+
const t = e, o = ie("cableState"), s = $(() => t?.placement || o?.placement);
|
|
819
819
|
return (n, l) => (i(), p("div", {
|
|
820
820
|
class: x(["t-toolbar", { [s.value]: !0, safe: t.safe }]),
|
|
821
|
-
style:
|
|
821
|
+
style: w({ "--t-size-toolbar": t.size })
|
|
822
822
|
}, [
|
|
823
|
-
|
|
823
|
+
k("div", null, [
|
|
824
824
|
g(n.$slots, "default", {}, void 0, !0)
|
|
825
825
|
])
|
|
826
826
|
], 6));
|
|
827
827
|
}
|
|
828
|
-
}),
|
|
828
|
+
}), _t = /* @__PURE__ */ _(vt, [["__scopeId", "data-v-1ee9866d"]]), yt = /* @__PURE__ */ b({
|
|
829
829
|
__name: "t-back-button",
|
|
830
830
|
props: {
|
|
831
831
|
to: {},
|
|
832
832
|
router: {}
|
|
833
833
|
},
|
|
834
834
|
setup(e) {
|
|
835
|
-
const t = e, o =
|
|
835
|
+
const t = e, o = he(), s = t.router || ue(), n = (l) => {
|
|
836
836
|
if (o.onBack) {
|
|
837
837
|
o.onBack(l);
|
|
838
838
|
return;
|
|
@@ -845,18 +845,18 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
845
845
|
onClick: n
|
|
846
846
|
}, [
|
|
847
847
|
g(l.$slots, "default", {}, () => [
|
|
848
|
-
d[0] || (d[0] =
|
|
848
|
+
d[0] || (d[0] = k("i", { class: "ri-arrow-left-s-line" }, null, -1))
|
|
849
849
|
], !0)
|
|
850
850
|
])) : E("", !0);
|
|
851
851
|
}
|
|
852
|
-
}),
|
|
852
|
+
}), gt = /* @__PURE__ */ _(yt, [["__scopeId", "data-v-dcf9d363"]]), bt = /* @__PURE__ */ b({
|
|
853
853
|
__name: "t-text",
|
|
854
854
|
props: {
|
|
855
855
|
color: { default: "var(--t-color-text)" },
|
|
856
856
|
size: { default: "standard" }
|
|
857
857
|
},
|
|
858
858
|
setup(e) {
|
|
859
|
-
const t = e, o =
|
|
859
|
+
const t = e, o = $(() => {
|
|
860
860
|
let s, n = t.color;
|
|
861
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) && (n = `var(--t-color-status-${t.color})`), {
|
|
862
862
|
"--color": n,
|
|
@@ -865,12 +865,12 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
865
865
|
});
|
|
866
866
|
return (s, n) => (i(), p("span", {
|
|
867
867
|
class: "t-text",
|
|
868
|
-
style:
|
|
868
|
+
style: w(o.value)
|
|
869
869
|
}, [
|
|
870
870
|
g(s.$slots, "default", {}, void 0, !0)
|
|
871
871
|
], 4));
|
|
872
872
|
}
|
|
873
|
-
}), te = /* @__PURE__ */ _(
|
|
873
|
+
}), te = /* @__PURE__ */ _(bt, [["__scopeId", "data-v-f0f94f05"]]), ht = /* @__PURE__ */ b({
|
|
874
874
|
__name: "t-gesture-indicator",
|
|
875
875
|
props: {
|
|
876
876
|
placement: { default: "bottom" }
|
|
@@ -880,7 +880,7 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
880
880
|
class: x(["t-gesture-indicator", { [t.placement]: !0 }])
|
|
881
881
|
}, null, 2));
|
|
882
882
|
}
|
|
883
|
-
}),
|
|
883
|
+
}), ye = /* @__PURE__ */ _(ht, [["__scopeId", "data-v-ed8f7308"]]), kt = /* @__PURE__ */ b({
|
|
884
884
|
__name: "t-sheet",
|
|
885
885
|
props: {
|
|
886
886
|
background: { default: "var(--t-color-surface)" },
|
|
@@ -900,14 +900,14 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
900
900
|
setup(e, { emit: t }) {
|
|
901
901
|
const o = e, s = t, n = m(), l = m(), d = m(!1);
|
|
902
902
|
let a = null;
|
|
903
|
-
const u =
|
|
903
|
+
const u = $(() => {
|
|
904
904
|
if (o.placement == "bottom") return "down";
|
|
905
905
|
if (o.placement == "top") return "up";
|
|
906
906
|
if (o.placement == "left") return "left";
|
|
907
907
|
if (o.placement == "right") return "right";
|
|
908
908
|
}), c = (r) => {
|
|
909
909
|
s("dismiss", r);
|
|
910
|
-
},
|
|
910
|
+
}, y = () => {
|
|
911
911
|
d.value = !0, setTimeout(() => {
|
|
912
912
|
d.value = !1;
|
|
913
913
|
}, 300);
|
|
@@ -918,38 +918,38 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
918
918
|
options: {
|
|
919
919
|
minDist: 30
|
|
920
920
|
},
|
|
921
|
-
beforeEvent(
|
|
921
|
+
beforeEvent(v) {
|
|
922
922
|
return !(d.value || !o.gesture || o.placement == "center");
|
|
923
923
|
},
|
|
924
924
|
down() {
|
|
925
925
|
this.isMoving = !1;
|
|
926
926
|
},
|
|
927
|
-
fast({ initialDirection:
|
|
928
|
-
|
|
927
|
+
fast({ initialDirection: v }) {
|
|
928
|
+
y(), v == u.value ? s("dismiss", "gesture") : l.value.open();
|
|
929
929
|
},
|
|
930
|
-
move({ deltaY:
|
|
930
|
+
move({ deltaY: v, deltaX: h, initialDirection: S }) {
|
|
931
931
|
if (S != u.value) return;
|
|
932
932
|
let f = 0;
|
|
933
|
-
o.placement == "bottom" || o.placement == "top" ? f =
|
|
933
|
+
o.placement == "bottom" || o.placement == "top" ? f = v : f = h, o.placement == "bottom" && (f = v > 0 ? v : 0), o.placement == "top" && (f = v < 0 ? v : 0), o.placement == "left" && (f = h < 0 ? h : 0), o.placement == "right" && (f = h > 0 ? h : 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
934
|
contentTransform: f + "px",
|
|
935
935
|
transition: "0s"
|
|
936
936
|
}));
|
|
937
937
|
},
|
|
938
|
-
up({ deltaY:
|
|
939
|
-
if (this.isMoving = !1,
|
|
938
|
+
up({ deltaY: v, deltaX: h, initialDirection: S }) {
|
|
939
|
+
if (this.isMoving = !1, y(), S != u.value) {
|
|
940
940
|
l.value.open();
|
|
941
941
|
return;
|
|
942
942
|
}
|
|
943
943
|
let f, D, ee;
|
|
944
|
-
o.placement == "bottom" || o.placement == "top" ? (f = n.value.offsetHeight, ee =
|
|
944
|
+
o.placement == "bottom" || o.placement == "top" ? (f = n.value.offsetHeight, ee = v) : (f = n.value.offsetWidth, ee = h), D = ee / f * 100, D > 50 ? s("dismiss", "gesture") : l.value.open();
|
|
945
945
|
},
|
|
946
946
|
cancel() {
|
|
947
|
-
this.isMoving = !1,
|
|
947
|
+
this.isMoving = !1, y(), l.value.open();
|
|
948
948
|
}
|
|
949
949
|
}));
|
|
950
950
|
}), oe(() => {
|
|
951
951
|
a && a.destroy();
|
|
952
|
-
}), (r,
|
|
952
|
+
}), (r, v) => (i(), C(L, {
|
|
953
953
|
ref_key: "present",
|
|
954
954
|
ref: l,
|
|
955
955
|
class: x(o.class),
|
|
@@ -958,16 +958,16 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
958
958
|
visible: o.visible,
|
|
959
959
|
keepalive: o.keepalive,
|
|
960
960
|
onDismiss: c,
|
|
961
|
-
style:
|
|
961
|
+
style: w(o.style)
|
|
962
962
|
}, {
|
|
963
963
|
default: P(() => [
|
|
964
|
-
o.gesture && o.indicator && o.placement != "center" ? (i(), C(
|
|
964
|
+
o.gesture && o.indicator && o.placement != "center" ? (i(), C(ye, {
|
|
965
965
|
key: 0,
|
|
966
966
|
placement: o.placement
|
|
967
967
|
}, null, 8, ["placement"])) : E("", !0),
|
|
968
|
-
|
|
968
|
+
k("div", {
|
|
969
969
|
class: x(["t-sheet", { fullscreen: o.fullscreen, [o.placement]: !0, rounded: r.rounded, radius: o.radius }]),
|
|
970
|
-
style:
|
|
970
|
+
style: w({ "--background": o.background }),
|
|
971
971
|
ref_key: "sheet",
|
|
972
972
|
ref: n
|
|
973
973
|
}, [
|
|
@@ -977,7 +977,7 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
977
977
|
_: 3
|
|
978
978
|
}, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
|
|
979
979
|
}
|
|
980
|
-
}),
|
|
980
|
+
}), $t = /* @__PURE__ */ _(kt, [["__scopeId", "data-v-71a5b877"]]), wt = { class: "t-input-label" }, Tt = { class: "t-input-content" }, xt = ["type", "placeholder", "value"], St = /* @__PURE__ */ b({
|
|
981
981
|
__name: "t-input",
|
|
982
982
|
props: {
|
|
983
983
|
size: { default: "standard" },
|
|
@@ -992,28 +992,28 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
992
992
|
},
|
|
993
993
|
emits: ["update:modelValue"],
|
|
994
994
|
setup(e, { emit: t }) {
|
|
995
|
-
const o = e, s = t, n = m(!1), l =
|
|
995
|
+
const o = e, s = t, n = m(!1), l = $(() => !(o.modelValue === "" || o.modelValue === null || o.modelValue === void 0)), d = (c) => {
|
|
996
996
|
s("update:modelValue", c.target.value);
|
|
997
997
|
}, a = () => {
|
|
998
998
|
n.value = !0;
|
|
999
999
|
}, u = () => {
|
|
1000
1000
|
n.value = !1;
|
|
1001
1001
|
};
|
|
1002
|
-
return (c,
|
|
1002
|
+
return (c, y) => (i(), p("div", {
|
|
1003
1003
|
class: x(["t-input", { rounded: c.rounded, ["size-" + c.size]: !0, ["variant-" + c.variant]: !0, focus: n.value, "has-value": l.value }])
|
|
1004
1004
|
}, [
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1005
|
+
k("label", null, [
|
|
1006
|
+
k("span", wt, R(c.label), 1),
|
|
1007
|
+
k("div", Tt, [
|
|
1008
1008
|
g(c.$slots, "start", {}, void 0, !0),
|
|
1009
|
-
|
|
1009
|
+
k("input", {
|
|
1010
1010
|
type: c.type,
|
|
1011
1011
|
placeholder: c.variant == "default" ? c.placeholder : "",
|
|
1012
1012
|
value: c.modelValue,
|
|
1013
1013
|
onInput: d,
|
|
1014
1014
|
onFocus: a,
|
|
1015
1015
|
onBlur: u
|
|
1016
|
-
}, null, 40,
|
|
1016
|
+
}, null, 40, xt),
|
|
1017
1017
|
g(c.$slots, "end", {}, void 0, !0)
|
|
1018
1018
|
])
|
|
1019
1019
|
]),
|
|
@@ -1036,23 +1036,23 @@ const ye = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
1036
1036
|
})) : E("", !0)
|
|
1037
1037
|
], 2));
|
|
1038
1038
|
}
|
|
1039
|
-
}),
|
|
1040
|
-
function
|
|
1039
|
+
}), zt = /* @__PURE__ */ _(St, [["__scopeId", "data-v-fffdda84"]]), It = {};
|
|
1040
|
+
function Et(e, t) {
|
|
1041
1041
|
return i(), p("textarea");
|
|
1042
1042
|
}
|
|
1043
|
-
const
|
|
1044
|
-
function
|
|
1043
|
+
const Bt = /* @__PURE__ */ _(It, [["render", Et]]), Ct = {};
|
|
1044
|
+
function Vt(e, t) {
|
|
1045
1045
|
return i(), p("div");
|
|
1046
1046
|
}
|
|
1047
|
-
const
|
|
1048
|
-
function
|
|
1049
|
-
return i(), p("div",
|
|
1047
|
+
const Pt = /* @__PURE__ */ _(Ct, [["render", Vt]]), At = {}, Rt = { class: "t-grid" };
|
|
1048
|
+
function Mt(e, t) {
|
|
1049
|
+
return i(), p("div", Rt);
|
|
1050
1050
|
}
|
|
1051
|
-
const
|
|
1052
|
-
function
|
|
1053
|
-
return i(), p("div",
|
|
1051
|
+
const Dt = /* @__PURE__ */ _(At, [["render", Mt]]), Xt = {}, Ot = { class: "t-grid-item" };
|
|
1052
|
+
function Nt(e, t) {
|
|
1053
|
+
return i(), p("div", Ot);
|
|
1054
1054
|
}
|
|
1055
|
-
const
|
|
1055
|
+
const qt = /* @__PURE__ */ _(Xt, [["render", Nt]]), Lt = /* @__PURE__ */ b({
|
|
1056
1056
|
__name: "t-divider",
|
|
1057
1057
|
props: {
|
|
1058
1058
|
direction: { default: "horizontal" }
|
|
@@ -1063,14 +1063,14 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1063
1063
|
class: x(["t-divider", { [t.direction]: !0 }])
|
|
1064
1064
|
}, null, 2));
|
|
1065
1065
|
}
|
|
1066
|
-
}),
|
|
1066
|
+
}), Wt = /* @__PURE__ */ _(Lt, [["__scopeId", "data-v-47ee8991"]]), Ht = /* @__PURE__ */ b({
|
|
1067
1067
|
__name: "t-toggle-password",
|
|
1068
1068
|
props: {
|
|
1069
1069
|
color: { default: "warning" }
|
|
1070
1070
|
},
|
|
1071
1071
|
emits: ["change"],
|
|
1072
1072
|
setup(e, { emit: t }) {
|
|
1073
|
-
const o = e, s = t, n = m(!1), l = m(), d =
|
|
1073
|
+
const o = e, s = t, n = m(!1), l = m(), d = $(() => {
|
|
1074
1074
|
let c = o.color;
|
|
1075
1075
|
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (c = `var(--t-color-status-${o.color})`), {
|
|
1076
1076
|
"--color": c
|
|
@@ -1084,43 +1084,43 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1084
1084
|
let c = a();
|
|
1085
1085
|
c && (n.value = !n.value, n.value ? c.type = "text" : c.type = "password", s("change", n.value));
|
|
1086
1086
|
};
|
|
1087
|
-
return (c,
|
|
1087
|
+
return (c, y) => (i(), p("button", {
|
|
1088
1088
|
ref_key: "toggle",
|
|
1089
1089
|
ref: l,
|
|
1090
1090
|
class: "t-toggle-password",
|
|
1091
|
-
style:
|
|
1091
|
+
style: w(d.value),
|
|
1092
1092
|
onClick: u
|
|
1093
1093
|
}, [
|
|
1094
1094
|
n.value ? g(c.$slots, "on", { key: 0 }, () => [
|
|
1095
|
-
|
|
1095
|
+
y[0] || (y[0] = k("i", { class: "ri-eye-line" }, null, -1))
|
|
1096
1096
|
], !0) : E("", !0),
|
|
1097
1097
|
n.value ? E("", !0) : g(c.$slots, "off", { key: 1 }, () => [
|
|
1098
|
-
|
|
1098
|
+
y[1] || (y[1] = k("i", { class: "ri-eye-off-line" }, null, -1))
|
|
1099
1099
|
], !0)
|
|
1100
1100
|
], 4));
|
|
1101
1101
|
}
|
|
1102
|
-
}),
|
|
1102
|
+
}), Ft = /* @__PURE__ */ _(Ht, [["__scopeId", "data-v-3268e9e3"]]), Gt = /* @__PURE__ */ b({
|
|
1103
1103
|
__name: "t-avatar",
|
|
1104
1104
|
props: {
|
|
1105
1105
|
square: { type: Boolean, default: !1 },
|
|
1106
1106
|
size: { default: "standard" }
|
|
1107
1107
|
},
|
|
1108
1108
|
setup(e) {
|
|
1109
|
-
const t = e, o =
|
|
1109
|
+
const t = e, o = $(() => t.size == "small" ? "24px" : t.size == "standard" ? "40px" : t.size == "large" ? "60px" : t.size);
|
|
1110
1110
|
return (s, n) => (i(), p("div", {
|
|
1111
1111
|
class: x(["t-avatar", { square: s.square }]),
|
|
1112
|
-
style:
|
|
1112
|
+
style: w({ "--size": o.value })
|
|
1113
1113
|
}, [
|
|
1114
1114
|
g(s.$slots, "default", {}, void 0, !0)
|
|
1115
1115
|
], 6));
|
|
1116
1116
|
}
|
|
1117
|
-
}),
|
|
1117
|
+
}), Ut = /* @__PURE__ */ _(Gt, [["__scopeId", "data-v-24384c2f"]]), jt = { class: "t-collapse-title" }, Kt = {
|
|
1118
1118
|
key: 0,
|
|
1119
1119
|
class: "icon"
|
|
1120
|
-
},
|
|
1120
|
+
}, Jt = {
|
|
1121
1121
|
key: 1,
|
|
1122
1122
|
class: "icon"
|
|
1123
|
-
},
|
|
1123
|
+
}, Qt = { class: "t-collapse-content" }, Zt = /* @__PURE__ */ b({
|
|
1124
1124
|
__name: "t-collapse",
|
|
1125
1125
|
props: {
|
|
1126
1126
|
title: {}
|
|
@@ -1132,28 +1132,28 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1132
1132
|
};
|
|
1133
1133
|
return s("change", n.value), (u, c) => (i(), p("div", {
|
|
1134
1134
|
class: x(["t-collapse", { open: n.value }]),
|
|
1135
|
-
style:
|
|
1135
|
+
style: w({ "--height": l.value })
|
|
1136
1136
|
}, [
|
|
1137
|
-
|
|
1137
|
+
k("div", {
|
|
1138
1138
|
class: "t-collapse-header",
|
|
1139
1139
|
onClick: a
|
|
1140
1140
|
}, [
|
|
1141
1141
|
g(u.$slots, "icon"),
|
|
1142
|
-
|
|
1142
|
+
k("div", jt, [
|
|
1143
1143
|
g(u.$slots, "title", {}, () => [
|
|
1144
1144
|
N(R(o.title), 1)
|
|
1145
1145
|
])
|
|
1146
1146
|
]),
|
|
1147
1147
|
g(u.$slots, "toggle", {}, () => [
|
|
1148
|
-
n.value ? (i(), p("div",
|
|
1149
|
-
|
|
1150
|
-
])])) : (i(), p("div",
|
|
1151
|
-
|
|
1148
|
+
n.value ? (i(), p("div", Kt, [...c[0] || (c[0] = [
|
|
1149
|
+
k("i", { class: "ri-arrow-up-s-line" }, null, -1)
|
|
1150
|
+
])])) : (i(), p("div", Jt, [...c[1] || (c[1] = [
|
|
1151
|
+
k("i", { class: "ri-arrow-down-s-line" }, null, -1)
|
|
1152
1152
|
])]))
|
|
1153
1153
|
])
|
|
1154
1154
|
]),
|
|
1155
|
-
|
|
1156
|
-
|
|
1155
|
+
k("div", Qt, [
|
|
1156
|
+
k("div", {
|
|
1157
1157
|
ref_key: "content",
|
|
1158
1158
|
ref: d
|
|
1159
1159
|
}, [
|
|
@@ -1164,7 +1164,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1164
1164
|
])
|
|
1165
1165
|
], 6));
|
|
1166
1166
|
}
|
|
1167
|
-
}),
|
|
1167
|
+
}), Yt = /* @__PURE__ */ b({
|
|
1168
1168
|
__name: "t-switch",
|
|
1169
1169
|
props: {
|
|
1170
1170
|
modelValue: { type: Boolean },
|
|
@@ -1174,7 +1174,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1174
1174
|
setup(e, { emit: t }) {
|
|
1175
1175
|
const o = e, s = t, n = () => {
|
|
1176
1176
|
s("update:modelValue", !o.modelValue);
|
|
1177
|
-
}, l =
|
|
1177
|
+
}, l = $(() => {
|
|
1178
1178
|
let d = {
|
|
1179
1179
|
"--background": o.color,
|
|
1180
1180
|
"--color": "#ffffff"
|
|
@@ -1186,19 +1186,19 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1186
1186
|
});
|
|
1187
1187
|
return (d, a) => (i(), p("div", {
|
|
1188
1188
|
class: x(["t-switch", { on: o.modelValue }]),
|
|
1189
|
-
style:
|
|
1189
|
+
style: w(l.value),
|
|
1190
1190
|
onClick: n
|
|
1191
1191
|
}, [...a[0] || (a[0] = [
|
|
1192
|
-
|
|
1192
|
+
k("div", { class: "t-switch-icon" }, null, -1)
|
|
1193
1193
|
])], 6));
|
|
1194
1194
|
}
|
|
1195
|
-
}),
|
|
1195
|
+
}), eo = /* @__PURE__ */ _(Yt, [["__scopeId", "data-v-3616970e"]]), to = /* @__PURE__ */ b({
|
|
1196
1196
|
__name: "t-tab",
|
|
1197
1197
|
props: {
|
|
1198
1198
|
value: {}
|
|
1199
1199
|
},
|
|
1200
1200
|
setup(e) {
|
|
1201
|
-
const t = e, o =
|
|
1201
|
+
const t = e, o = ie("tabsState"), s = $(() => o.active.value === t.value), n = () => {
|
|
1202
1202
|
o.setActive(t.value);
|
|
1203
1203
|
};
|
|
1204
1204
|
return (l, d) => (i(), p("li", {
|
|
@@ -1217,7 +1217,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1217
1217
|
}, 8, ["size", "color"])
|
|
1218
1218
|
], 2));
|
|
1219
1219
|
}
|
|
1220
|
-
}),
|
|
1220
|
+
}), oo = /* @__PURE__ */ _(to, [["__scopeId", "data-v-f810d905"]]), so = /* @__PURE__ */ b({
|
|
1221
1221
|
__name: "t-tabs",
|
|
1222
1222
|
props: {
|
|
1223
1223
|
placement: { default: "top-start" },
|
|
@@ -1229,7 +1229,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1229
1229
|
},
|
|
1230
1230
|
emits: ["update:modelValue"],
|
|
1231
1231
|
setup(e, { emit: t }) {
|
|
1232
|
-
const o = e, s = t, n = m("0px"), l = m(), d =
|
|
1232
|
+
const o = e, s = t, n = m("0px"), l = m(), d = $(() => {
|
|
1233
1233
|
let u = o.color;
|
|
1234
1234
|
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(u) && (u = `var(--t-color-status-${u})`), u;
|
|
1235
1235
|
}), a = () => {
|
|
@@ -1237,20 +1237,20 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1237
1237
|
if (o.placement.startsWith("top-") || o.placement.startsWith("bottom-")) {
|
|
1238
1238
|
let u = l.value.querySelector(".active");
|
|
1239
1239
|
if (u) {
|
|
1240
|
-
let c = u.getBoundingClientRect().left - l.value.getBoundingClientRect().left + l.value.scrollLeft,
|
|
1241
|
-
n.value = c +
|
|
1240
|
+
let c = u.getBoundingClientRect().left - l.value.getBoundingClientRect().left + l.value.scrollLeft, y = u.offsetWidth / 2;
|
|
1241
|
+
n.value = c + y - o.border / 2 + "px";
|
|
1242
1242
|
}
|
|
1243
1243
|
} else if (o.placement.startsWith("left-") || o.placement.startsWith("right-")) {
|
|
1244
1244
|
let u = l.value.querySelector(".active");
|
|
1245
1245
|
if (u) {
|
|
1246
|
-
let c = u.getBoundingClientRect().top - l.value.getBoundingClientRect().top + l.value.scrollTop,
|
|
1247
|
-
n.value = c +
|
|
1246
|
+
let c = u.getBoundingClientRect().top - l.value.getBoundingClientRect().top + l.value.scrollTop, y = u.offsetHeight / 2;
|
|
1247
|
+
n.value = c + y - o.border / 2 + "px";
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
1250
|
}, 50);
|
|
1251
1251
|
};
|
|
1252
|
-
return
|
|
1253
|
-
active:
|
|
1252
|
+
return ce("tabsState", {
|
|
1253
|
+
active: $(() => o.modelValue),
|
|
1254
1254
|
color: d.value,
|
|
1255
1255
|
size: o.size,
|
|
1256
1256
|
variant: o.variant,
|
|
@@ -1263,25 +1263,25 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1263
1263
|
ref_key: "container",
|
|
1264
1264
|
ref: l,
|
|
1265
1265
|
class: x(["t-tabs", { [u.placement]: !0, [u.variant]: !0 }]),
|
|
1266
|
-
style:
|
|
1266
|
+
style: w({ "--color": d.value, "--transform": n.value, "--border": u.border + "px" })
|
|
1267
1267
|
}, [
|
|
1268
1268
|
g(u.$slots, "default", {}, void 0, !0)
|
|
1269
1269
|
], 6));
|
|
1270
1270
|
}
|
|
1271
|
-
}),
|
|
1271
|
+
}), no = /* @__PURE__ */ _(so, [["__scopeId", "data-v-3a46d2df"]]), ro = /* @__PURE__ */ b({
|
|
1272
1272
|
__name: "t-loading-app",
|
|
1273
1273
|
setup(e) {
|
|
1274
|
-
return (t, o) => (i(), C(
|
|
1274
|
+
return (t, o) => (i(), C(ve, null, {
|
|
1275
1275
|
default: P(() => [
|
|
1276
1276
|
G(K, { type: "spinner" })
|
|
1277
1277
|
]),
|
|
1278
1278
|
_: 1
|
|
1279
1279
|
}));
|
|
1280
1280
|
}
|
|
1281
|
-
}),
|
|
1281
|
+
}), ao = /* @__PURE__ */ _(ro, [["__scopeId", "data-v-1436aa9f"]]), lo = { key: 0 }, co = {
|
|
1282
1282
|
key: 0,
|
|
1283
1283
|
class: "t-checkbox-label"
|
|
1284
|
-
},
|
|
1284
|
+
}, io = /* @__PURE__ */ b({
|
|
1285
1285
|
__name: "t-checkbox",
|
|
1286
1286
|
props: {
|
|
1287
1287
|
label: { default: "" },
|
|
@@ -1294,7 +1294,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1294
1294
|
},
|
|
1295
1295
|
emits: ["update:modelValue"],
|
|
1296
1296
|
setup(e, { emit: t }) {
|
|
1297
|
-
const o = e, s = t, n =
|
|
1297
|
+
const o = e, s = t, n = $(() => {
|
|
1298
1298
|
let a = {
|
|
1299
1299
|
"--background": o.color,
|
|
1300
1300
|
"--color": "#ffffff"
|
|
@@ -1303,7 +1303,7 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1303
1303
|
"--background": `var(--t-color-status-${o.color})`,
|
|
1304
1304
|
"--color": `var(--t-color-status-${o.color}-text)`
|
|
1305
1305
|
}), a;
|
|
1306
|
-
}), l =
|
|
1306
|
+
}), l = $(() => o.multiple ? o.modelValue.includes(o.value) : o.value === void 0 ? o.modelValue : o.modelValue == o.value), d = () => {
|
|
1307
1307
|
if (o.multiple) {
|
|
1308
1308
|
let a = o.modelValue;
|
|
1309
1309
|
o.modelValue.includes(o.value) ? a.splice(a.indexOf(o.value), 1) : a.push(o.value), s("update:modelValue", a);
|
|
@@ -1311,32 +1311,32 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1311
1311
|
};
|
|
1312
1312
|
return (a, u) => (i(), p("div", {
|
|
1313
1313
|
class: x(["t-checkbox", { active: l.value }]),
|
|
1314
|
-
style:
|
|
1314
|
+
style: w(n.value),
|
|
1315
1315
|
onClick: d
|
|
1316
1316
|
}, [
|
|
1317
|
-
|
|
1317
|
+
k("div", {
|
|
1318
1318
|
class: x(`t-checkbox-${a.type}`)
|
|
1319
1319
|
}, [
|
|
1320
|
-
a.type == "radio" ? (i(), p("div",
|
|
1320
|
+
a.type == "radio" ? (i(), p("div", lo)) : E("", !0),
|
|
1321
1321
|
a.type == "check" ? g(a.$slots, "icon", { key: 1 }, () => [
|
|
1322
|
-
u[0] || (u[0] =
|
|
1322
|
+
u[0] || (u[0] = k("i", { class: "ri-check-line" }, null, -1))
|
|
1323
1323
|
], !0) : E("", !0)
|
|
1324
1324
|
], 2),
|
|
1325
1325
|
g(a.$slots, "label", {}, () => [
|
|
1326
|
-
a.label ? (i(), p("span",
|
|
1326
|
+
a.label ? (i(), p("span", co, R(o.label), 1)) : E("", !0)
|
|
1327
1327
|
], !0)
|
|
1328
1328
|
], 6));
|
|
1329
1329
|
}
|
|
1330
|
-
}),
|
|
1330
|
+
}), uo = /* @__PURE__ */ _(io, [["__scopeId", "data-v-0e13abc3"]]), po = /* @__PURE__ */ b({
|
|
1331
1331
|
__name: "t-keyboard",
|
|
1332
1332
|
setup(e) {
|
|
1333
|
-
const { height: t } =
|
|
1333
|
+
const { height: t } = me();
|
|
1334
1334
|
return (o, s) => (i(), p("div", {
|
|
1335
1335
|
class: "t-keyboard",
|
|
1336
|
-
style:
|
|
1336
|
+
style: w({ "--height": V(t) + "px" })
|
|
1337
1337
|
}, null, 4));
|
|
1338
1338
|
}
|
|
1339
|
-
}),
|
|
1339
|
+
}), fo = /* @__PURE__ */ _(po, [["__scopeId", "data-v-5d3fa1da"]]), mo = /* @__PURE__ */ b({
|
|
1340
1340
|
__name: "t-skeleton",
|
|
1341
1341
|
props: {
|
|
1342
1342
|
width: { default: "100%" },
|
|
@@ -1345,23 +1345,23 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1345
1345
|
color: { default: null }
|
|
1346
1346
|
},
|
|
1347
1347
|
setup(e) {
|
|
1348
|
-
const t = e, o =
|
|
1348
|
+
const t = e, o = $(() => ({
|
|
1349
1349
|
"--width": t.width,
|
|
1350
1350
|
"--height": t.height,
|
|
1351
1351
|
"--radius": t.radius
|
|
1352
1352
|
}));
|
|
1353
1353
|
return (s, n) => (i(), p("div", {
|
|
1354
1354
|
class: "t-skeleton",
|
|
1355
|
-
style:
|
|
1355
|
+
style: w(o.value)
|
|
1356
1356
|
}, null, 4));
|
|
1357
1357
|
}
|
|
1358
|
-
}),
|
|
1358
|
+
}), vo = /* @__PURE__ */ _(mo, [["__scopeId", "data-v-877bbdb5"]]), _o = /* @__PURE__ */ b({
|
|
1359
1359
|
__name: "t-ripple",
|
|
1360
1360
|
props: {
|
|
1361
1361
|
color: { default: "primary" }
|
|
1362
1362
|
},
|
|
1363
1363
|
setup(e) {
|
|
1364
|
-
const t = e, o =
|
|
1364
|
+
const t = e, o = $(() => {
|
|
1365
1365
|
let s = {};
|
|
1366
1366
|
return t.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? s = {
|
|
1367
1367
|
"--color": "var(--t-color-status-" + t.color + ")"
|
|
@@ -1373,23 +1373,23 @@ const Lt = /* @__PURE__ */ _(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1373
1373
|
});
|
|
1374
1374
|
return (s, n) => (i(), p("div", {
|
|
1375
1375
|
class: "t-ripple",
|
|
1376
|
-
style:
|
|
1376
|
+
style: w(o.value)
|
|
1377
1377
|
}, null, 4));
|
|
1378
1378
|
}
|
|
1379
|
-
}),
|
|
1379
|
+
}), yo = /* @__PURE__ */ _(_o, [["__scopeId", "data-v-42cb3d71"]]), xo = () => ({
|
|
1380
1380
|
install: (e) => {
|
|
1381
|
-
|
|
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", nt), e.component("t-refresher", it), e.component("t-button", J), e.component("t-back-button", gt), e.component("t-present", L), 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", Dt), e.component("t-grid-item", qt), 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", no), 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
1382
|
}
|
|
1383
1383
|
});
|
|
1384
1384
|
export {
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1385
|
+
we as blurCurrentActive,
|
|
1386
|
+
$o as createAction,
|
|
1387
|
+
ko as createAlert,
|
|
1388
|
+
wo as createLoading,
|
|
1389
|
+
To as createToast,
|
|
1390
|
+
xo as createToife,
|
|
1391
|
+
$e as isFormElement,
|
|
1392
|
+
We as presentController,
|
|
1393
1393
|
T as screenController,
|
|
1394
|
-
|
|
1394
|
+
me as useKeyboard
|
|
1395
1395
|
};
|