@toife/vue 1.2.16 → 1.2.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.es.js +292 -284
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createElementBlock as
|
|
1
|
+
import { createElementBlock as f, openBlock as c, renderSlot as y, defineComponent as k, ref as v, computed as z, reactive as ee, watch as L, Fragment as A, withDirectives as O, createCommentVNode as I, normalizeStyle as w, normalizeClass as x, vShow as N, createElementVNode as b, createVNode as W, createBlock as B, withCtx as V, toDisplayString as M, renderList as q, createTextVNode as R, createApp as X, h as H, unref as E, onUnmounted as G, onMounted as K, resolveDynamicComponent as ce, markRaw as ie, inject as ue, provide as de } from "vue";
|
|
2
2
|
import { gesture as Y } from "@toife/gesture";
|
|
3
3
|
import { useRouter as te, useRoute as pe } from "vue-router";
|
|
4
4
|
const fe = (o) => o && (o.tagName == "INPUT" || o.tagName == "TEXTAREA" || o.isContentEditable), me = () => {
|
|
@@ -8,18 +8,18 @@ const fe = (o) => o && (o.tagName == "INPUT" || o.tagName == "TEXTAREA" || o.isC
|
|
|
8
8
|
document.addEventListener("contextmenu", (o) => o.preventDefault()), document.addEventListener("selectstart", (o) => o.preventDefault()), document.addEventListener("pointerup", (o) => {
|
|
9
9
|
!fe(o.target) && me();
|
|
10
10
|
});
|
|
11
|
-
},
|
|
11
|
+
}, g = (o, s) => {
|
|
12
12
|
const e = o.__vccOpts || o;
|
|
13
13
|
for (const [t, n] of s)
|
|
14
14
|
e[t] = n;
|
|
15
15
|
return e;
|
|
16
|
-
}, _e = {},
|
|
17
|
-
function
|
|
18
|
-
return c(),
|
|
19
|
-
|
|
16
|
+
}, _e = {}, ge = { class: "t-app" };
|
|
17
|
+
function ye(o, s) {
|
|
18
|
+
return c(), f("div", ge, [
|
|
19
|
+
y(o.$slots, "default")
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
|
-
const
|
|
22
|
+
const he = /* @__PURE__ */ g(_e, [["render", ye]]), be = /* @__PURE__ */ k({
|
|
23
23
|
__name: "t-present",
|
|
24
24
|
props: {
|
|
25
25
|
keepalive: { type: Boolean, default: !0 },
|
|
@@ -29,13 +29,13 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
29
29
|
},
|
|
30
30
|
emits: ["dismiss"],
|
|
31
31
|
setup(o, { expose: s, emit: e }) {
|
|
32
|
-
const t =
|
|
32
|
+
const t = v(0), n = v(!1), r = v(), i = v(), a = o, u = e, m = z(() => n.value || a.keepalive), _ = ee({
|
|
33
33
|
"--t-present-backdrop-opacity": "0.4",
|
|
34
34
|
"--t-present-transition": "0.2s",
|
|
35
35
|
"--t-present-content-transform": "0px",
|
|
36
36
|
"--t-present-content-opacity": "1"
|
|
37
|
-
}), l = (
|
|
38
|
-
a.backdrop ?
|
|
37
|
+
}), l = (p) => {
|
|
38
|
+
a.backdrop ? p?.backdropOpacity && (_["--t-present-backdrop-opacity"] = p.backdropOpacity) : _["--t-present-backdrop-opacity"] = "0", p?.transition && (_["--t-present-transition"] = p.transition, _["--t-present-transition"] = p.transition), p?.contentTransform && (_["--t-present-content-transform"] = p.contentTransform), p?.contentOpacity && (_["--t-present-content-opacity"] = p.contentOpacity);
|
|
39
39
|
}, $ = () => {
|
|
40
40
|
l({
|
|
41
41
|
contentTransform: "0px",
|
|
@@ -44,16 +44,16 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
44
44
|
contentOpacity: "1"
|
|
45
45
|
});
|
|
46
46
|
}, d = () => {
|
|
47
|
-
let
|
|
48
|
-
a.placement == "bottom" || a.placement == "right" ?
|
|
49
|
-
contentTransform:
|
|
47
|
+
let p = "0px", S = "1";
|
|
48
|
+
a.placement == "bottom" || a.placement == "right" ? p = "100%" : a.placement == "top" || a.placement == "left" ? p = "-100%" : a.placement == "center" && (p = "0px", S = "0"), l({
|
|
49
|
+
contentTransform: p,
|
|
50
50
|
transition: "0.2s",
|
|
51
51
|
contentOpacity: S,
|
|
52
52
|
backdropOpacity: "0"
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
|
-
|
|
56
|
-
a.visible ? (n.value = !0, t.value =
|
|
55
|
+
L(() => a.visible, () => {
|
|
56
|
+
a.visible ? (n.value = !0, t.value = Me.getNewIndex(), setTimeout(() => {
|
|
57
57
|
$();
|
|
58
58
|
}, 50)) : (d(), setTimeout(() => {
|
|
59
59
|
n.value = !1;
|
|
@@ -63,34 +63,34 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
63
63
|
open: $,
|
|
64
64
|
close: d
|
|
65
65
|
});
|
|
66
|
-
const
|
|
67
|
-
|
|
66
|
+
const h = (p) => {
|
|
67
|
+
p.preventDefault(), u("dismiss", "backdrop");
|
|
68
68
|
};
|
|
69
|
-
return d(), (
|
|
70
|
-
|
|
69
|
+
return d(), (p, S) => (c(), f(A, null, [
|
|
70
|
+
m.value ? O((c(), f("div", {
|
|
71
71
|
key: 0,
|
|
72
|
-
class: x(["t-present", { [
|
|
72
|
+
class: x(["t-present", { [p.placement]: !0 }]),
|
|
73
73
|
ref_key: "present",
|
|
74
74
|
ref: i,
|
|
75
|
-
style: w({ ...
|
|
75
|
+
style: w({ ..._, zIndex: t.value })
|
|
76
76
|
}, [
|
|
77
|
-
|
|
77
|
+
y(p.$slots, "default", {}, void 0, !0)
|
|
78
78
|
], 6)), [
|
|
79
79
|
[N, n.value]
|
|
80
80
|
]) : I("", !0),
|
|
81
|
-
|
|
81
|
+
m.value ? O((c(), f("div", {
|
|
82
82
|
key: 1,
|
|
83
83
|
class: "t-present-backdrop",
|
|
84
|
-
onClick:
|
|
84
|
+
onClick: h,
|
|
85
85
|
ref_key: "backdrop",
|
|
86
86
|
ref: r,
|
|
87
|
-
style: w({ ...
|
|
87
|
+
style: w({ ..._, zIndex: t.value - 1 })
|
|
88
88
|
}, null, 4)), [
|
|
89
89
|
[N, n.value]
|
|
90
90
|
]) : I("", !0)
|
|
91
91
|
], 64));
|
|
92
92
|
}
|
|
93
|
-
}),
|
|
93
|
+
}), D = /* @__PURE__ */ g(be, [["__scopeId", "data-v-3d0c3227"]]), ke = /* @__PURE__ */ k({
|
|
94
94
|
__name: "t-loading-icon",
|
|
95
95
|
props: {
|
|
96
96
|
size: {
|
|
@@ -103,7 +103,7 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
setup(o) {
|
|
106
|
-
return (s, e) => (c(),
|
|
106
|
+
return (s, e) => (c(), f("span", {
|
|
107
107
|
class: "t-loading-icon",
|
|
108
108
|
style: w({
|
|
109
109
|
width: o.size,
|
|
@@ -114,7 +114,7 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
114
114
|
"aria-label": "Loading..."
|
|
115
115
|
}, null, 4));
|
|
116
116
|
}
|
|
117
|
-
}),
|
|
117
|
+
}), U = /* @__PURE__ */ g(ke, [["__scopeId", "data-v-7c463303"]]), $e = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "loader"
|
|
120
120
|
}, Te = /* @__PURE__ */ k({
|
|
@@ -170,24 +170,24 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
170
170
|
"--background": "transparent"
|
|
171
171
|
}), t;
|
|
172
172
|
});
|
|
173
|
-
return (t, n) => (c(),
|
|
173
|
+
return (t, n) => (c(), f("button", {
|
|
174
174
|
class: x(["t-button", { "active-background": s.activeBackground, rounded: s.rounded, block: s.block, ["size-" + s.size]: !0 }]),
|
|
175
175
|
style: w(e.value)
|
|
176
176
|
}, [
|
|
177
|
-
O(
|
|
178
|
-
|
|
177
|
+
O(b("span", null, [
|
|
178
|
+
y(t.$slots, "default", {}, void 0, !0)
|
|
179
179
|
], 512), [
|
|
180
180
|
[N, !s.loading]
|
|
181
181
|
]),
|
|
182
|
-
s.loading ? (c(),
|
|
183
|
-
|
|
182
|
+
s.loading ? (c(), f("span", $e, [
|
|
183
|
+
W(U, {
|
|
184
184
|
color: "var(--color)",
|
|
185
185
|
type: s.loadingType
|
|
186
186
|
}, null, 8, ["type"])
|
|
187
187
|
])) : I("", !0)
|
|
188
188
|
], 6));
|
|
189
189
|
}
|
|
190
|
-
}),
|
|
190
|
+
}), j = /* @__PURE__ */ g(Te, [["__scopeId", "data-v-74d8380d"]]), we = {
|
|
191
191
|
key: 0,
|
|
192
192
|
class: "t-alert-header"
|
|
193
193
|
}, xe = { class: "t-alert-content" }, Se = { class: "t-alert-footer" }, ze = /* @__PURE__ */ k({
|
|
@@ -200,45 +200,45 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
200
200
|
},
|
|
201
201
|
emits: ["dismiss"],
|
|
202
202
|
setup(o, { expose: s, emit: e }) {
|
|
203
|
-
const t = o, n =
|
|
203
|
+
const t = o, n = v(!1), r = e, i = v(), a = v(!1), u = () => {
|
|
204
204
|
n.value = !0;
|
|
205
|
-
}, f = (l) => {
|
|
206
|
-
n.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
|
|
207
205
|
}, m = (l) => {
|
|
206
|
+
n.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
|
|
207
|
+
}, _ = (l) => {
|
|
208
208
|
t.dismiss && t.dismiss.includes(l) ? (n.value = !1, r("dismiss", l)) : l == "backdrop" && (a.value = !0, setTimeout(() => {
|
|
209
209
|
a.value = !1;
|
|
210
210
|
}, 300));
|
|
211
211
|
};
|
|
212
212
|
return s({
|
|
213
213
|
open: u
|
|
214
|
-
}), (l, $) => (c(), B(
|
|
214
|
+
}), (l, $) => (c(), B(D, {
|
|
215
215
|
placement: "center",
|
|
216
216
|
backdrop: !0,
|
|
217
217
|
keepalive: !1,
|
|
218
218
|
visible: n.value,
|
|
219
|
-
onDismiss:
|
|
219
|
+
onDismiss: _
|
|
220
220
|
}, {
|
|
221
221
|
default: V(() => [
|
|
222
|
-
|
|
222
|
+
b("div", {
|
|
223
223
|
class: x(["t-alert", { pop: a.value }]),
|
|
224
224
|
ref_key: "container",
|
|
225
225
|
ref: i
|
|
226
226
|
}, [
|
|
227
|
-
|
|
228
|
-
t.title ? (c(),
|
|
227
|
+
y(l.$slots, "header", {}, () => [
|
|
228
|
+
t.title ? (c(), f("div", we, M(t.title), 1)) : I("", !0)
|
|
229
229
|
], !0),
|
|
230
|
-
|
|
231
|
-
|
|
230
|
+
y(l.$slots, "content", {}, () => [
|
|
231
|
+
b("div", xe, M(t.message), 1)
|
|
232
232
|
], !0),
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
(c(!0),
|
|
233
|
+
y(l.$slots, "footer", {}, () => [
|
|
234
|
+
b("div", Se, [
|
|
235
|
+
(c(!0), f(A, null, q(t.actions, (d) => (c(), B(j, {
|
|
236
236
|
color: d.color,
|
|
237
237
|
variant: d.variant,
|
|
238
|
-
onClick: (
|
|
238
|
+
onClick: (h) => m(d)
|
|
239
239
|
}, {
|
|
240
240
|
default: V(() => [
|
|
241
|
-
|
|
241
|
+
R(M(d.text), 1)
|
|
242
242
|
]),
|
|
243
243
|
_: 2
|
|
244
244
|
}, 1032, ["color", "variant", "onClick"]))), 256))
|
|
@@ -249,16 +249,16 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
249
249
|
_: 3
|
|
250
250
|
}, 8, ["visible"]));
|
|
251
251
|
}
|
|
252
|
-
}), oe = /* @__PURE__ */
|
|
252
|
+
}), oe = /* @__PURE__ */ g(ze, [["__scopeId", "data-v-05d0c578"]]), Zt = (o = {}) => ({
|
|
253
253
|
open() {
|
|
254
254
|
return new Promise((s) => {
|
|
255
255
|
let e = document.body.querySelector(".t-app");
|
|
256
256
|
if (!e) return;
|
|
257
|
-
const t = document.createElement("div"), n =
|
|
257
|
+
const t = document.createElement("div"), n = v();
|
|
258
258
|
e.appendChild(t);
|
|
259
|
-
const r =
|
|
259
|
+
const r = X({
|
|
260
260
|
render() {
|
|
261
|
-
return
|
|
261
|
+
return H(oe, {
|
|
262
262
|
...o,
|
|
263
263
|
ref: n,
|
|
264
264
|
onDismiss: (i, a) => {
|
|
@@ -282,40 +282,40 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
282
282
|
},
|
|
283
283
|
emits: ["dismiss"],
|
|
284
284
|
setup(o, { expose: s, emit: e }) {
|
|
285
|
-
const t = o, n =
|
|
285
|
+
const t = o, n = v(!1), r = e, i = v(), a = v(!1), u = () => {
|
|
286
286
|
n.value = !0;
|
|
287
|
-
}, f = (l) => {
|
|
288
|
-
n.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
|
|
289
287
|
}, m = (l) => {
|
|
288
|
+
n.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
|
|
289
|
+
}, _ = (l) => {
|
|
290
290
|
t.dismiss && t.dismiss.includes(l) ? (n.value = !1, r("dismiss", l)) : l == "backdrop" && (a.value = !0, setTimeout(() => {
|
|
291
291
|
a.value = !1;
|
|
292
292
|
}, 300));
|
|
293
293
|
};
|
|
294
294
|
return s({
|
|
295
295
|
open: u
|
|
296
|
-
}), (l, $) => (c(), B(
|
|
296
|
+
}), (l, $) => (c(), B(D, {
|
|
297
297
|
placement: "bottom",
|
|
298
298
|
backdrop: !0,
|
|
299
299
|
keepalive: !1,
|
|
300
300
|
visible: n.value,
|
|
301
|
-
onDismiss:
|
|
301
|
+
onDismiss: _
|
|
302
302
|
}, {
|
|
303
303
|
default: V(() => [
|
|
304
|
-
|
|
304
|
+
b("div", {
|
|
305
305
|
class: x(["t-action", { pop: a.value }]),
|
|
306
306
|
ref_key: "container",
|
|
307
307
|
ref: i
|
|
308
308
|
}, [
|
|
309
|
-
(c(!0),
|
|
310
|
-
(c(!0),
|
|
311
|
-
color:
|
|
312
|
-
size:
|
|
313
|
-
variant:
|
|
314
|
-
onClick: (
|
|
309
|
+
(c(!0), f(A, null, q(t.actions, (d) => (c(), f("div", null, [
|
|
310
|
+
(c(!0), f(A, null, q(d, (h) => (c(), B(j, {
|
|
311
|
+
color: h.color,
|
|
312
|
+
size: h.size,
|
|
313
|
+
variant: h.variant,
|
|
314
|
+
onClick: (p) => m(h),
|
|
315
315
|
block: ""
|
|
316
316
|
}, {
|
|
317
317
|
default: V(() => [
|
|
318
|
-
|
|
318
|
+
R(M(h.text), 1)
|
|
319
319
|
]),
|
|
320
320
|
_: 2
|
|
321
321
|
}, 1032, ["color", "size", "variant", "onClick"]))), 256))
|
|
@@ -325,16 +325,16 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
325
325
|
_: 1
|
|
326
326
|
}, 8, ["visible"]));
|
|
327
327
|
}
|
|
328
|
-
}), Be = /* @__PURE__ */
|
|
328
|
+
}), Be = /* @__PURE__ */ g(Ie, [["__scopeId", "data-v-c6bccffb"]]), eo = (o = {}) => ({
|
|
329
329
|
open() {
|
|
330
330
|
return new Promise((s) => {
|
|
331
331
|
let e = document.body.querySelector(".t-app");
|
|
332
332
|
if (!e) return;
|
|
333
|
-
const t = document.createElement("div"), n =
|
|
333
|
+
const t = document.createElement("div"), n = v();
|
|
334
334
|
e.appendChild(t);
|
|
335
|
-
const r =
|
|
335
|
+
const r = X({
|
|
336
336
|
render() {
|
|
337
|
-
return
|
|
337
|
+
return H(Be, {
|
|
338
338
|
...o,
|
|
339
339
|
ref: n,
|
|
340
340
|
onDismiss: (i, a) => {
|
|
@@ -357,7 +357,7 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
357
357
|
},
|
|
358
358
|
emits: ["dismiss"],
|
|
359
359
|
setup(o, { expose: s, emit: e }) {
|
|
360
|
-
const t = o, n =
|
|
360
|
+
const t = o, n = v(!1);
|
|
361
361
|
return s({
|
|
362
362
|
open: () => {
|
|
363
363
|
n.value = !0;
|
|
@@ -365,16 +365,16 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
365
365
|
close: () => {
|
|
366
366
|
n.value = !1;
|
|
367
367
|
}
|
|
368
|
-
}), (a, u) => (c(), B(
|
|
368
|
+
}), (a, u) => (c(), B(D, {
|
|
369
369
|
placement: "center",
|
|
370
370
|
backdrop: !0,
|
|
371
371
|
keepalive: !1,
|
|
372
372
|
visible: n.value
|
|
373
373
|
}, {
|
|
374
374
|
default: V(() => [
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
375
|
+
b("div", Ce, [
|
|
376
|
+
y(a.$slots, "default", {}, () => [
|
|
377
|
+
W(U, {
|
|
378
378
|
type: t.type
|
|
379
379
|
}, null, 8, ["type"])
|
|
380
380
|
], !0)
|
|
@@ -383,15 +383,15 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
383
383
|
_: 3
|
|
384
384
|
}, 8, ["visible"]));
|
|
385
385
|
}
|
|
386
|
-
}), Ve = /* @__PURE__ */
|
|
387
|
-
const s =
|
|
386
|
+
}), Ve = /* @__PURE__ */ g(Ee, [["__scopeId", "data-v-8f84c14e"]]), to = (o = {}) => {
|
|
387
|
+
const s = v(), e = document.body.querySelector(".t-app");
|
|
388
388
|
let t = null, n = null;
|
|
389
389
|
return {
|
|
390
390
|
open() {
|
|
391
391
|
return new Promise((r) => {
|
|
392
|
-
e && (n = document.createElement("div"), e.appendChild(n), t =
|
|
392
|
+
e && (n = document.createElement("div"), e.appendChild(n), t = X({
|
|
393
393
|
render() {
|
|
394
|
-
return
|
|
394
|
+
return H(Ve, {
|
|
395
395
|
...o,
|
|
396
396
|
ref: s
|
|
397
397
|
});
|
|
@@ -409,28 +409,28 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
409
409
|
});
|
|
410
410
|
}
|
|
411
411
|
};
|
|
412
|
-
}, Q =
|
|
412
|
+
}, Q = v(1e3), Me = {
|
|
413
413
|
getNewIndex() {
|
|
414
414
|
return Q.value += 2, Q.value;
|
|
415
415
|
}
|
|
416
|
-
}, C = ee([]),
|
|
416
|
+
}, C = ee([]), Pe = (o) => {
|
|
417
417
|
C.push(o);
|
|
418
|
-
},
|
|
418
|
+
}, Ae = (o) => {
|
|
419
419
|
o || C.pop();
|
|
420
|
-
},
|
|
420
|
+
}, Re = () => {
|
|
421
421
|
C.splice(0, C.length);
|
|
422
422
|
}, T = {
|
|
423
423
|
screens: C,
|
|
424
|
-
addScreen:
|
|
425
|
-
removeScreen:
|
|
426
|
-
removeAllScreen:
|
|
424
|
+
addScreen: Pe,
|
|
425
|
+
removeScreen: Ae,
|
|
426
|
+
removeAllScreen: Re,
|
|
427
427
|
hasPrevious: z(() => C.length > 1),
|
|
428
428
|
currentScreen: z(() => C[C.length - 1]),
|
|
429
429
|
lastScreen: z(() => {
|
|
430
430
|
if (!(C.length < 2))
|
|
431
431
|
return C[C.length - 2];
|
|
432
432
|
})
|
|
433
|
-
},
|
|
433
|
+
}, De = /* @__PURE__ */ k({
|
|
434
434
|
__name: "t-toast",
|
|
435
435
|
props: {
|
|
436
436
|
message: {},
|
|
@@ -442,17 +442,17 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
442
442
|
},
|
|
443
443
|
emits: ["dismiss"],
|
|
444
444
|
setup(o, { expose: s, emit: e }) {
|
|
445
|
-
const t = o, n = e, r =
|
|
445
|
+
const t = o, n = e, r = v(!1), i = v(!1), a = v(!1), u = () => {
|
|
446
446
|
i.value = !0, a.value = !1, setTimeout(() => {
|
|
447
447
|
r.value = !0;
|
|
448
448
|
}, 10), setTimeout(() => {
|
|
449
|
-
|
|
449
|
+
m();
|
|
450
450
|
}, t.duration + 10);
|
|
451
|
-
},
|
|
451
|
+
}, m = () => {
|
|
452
452
|
a.value = !0, setTimeout(() => {
|
|
453
453
|
i.value = !1, r.value = !1, n("dismiss");
|
|
454
454
|
}, 300);
|
|
455
|
-
},
|
|
455
|
+
}, _ = z(() => {
|
|
456
456
|
let l;
|
|
457
457
|
return t.variant == "default" && (t.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? l = {
|
|
458
458
|
"--border": "none",
|
|
@@ -494,21 +494,21 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
494
494
|
});
|
|
495
495
|
return s({
|
|
496
496
|
open: u
|
|
497
|
-
}), (l, $) => i.value ? (c(),
|
|
497
|
+
}), (l, $) => i.value ? (c(), f("div", {
|
|
498
498
|
key: 0,
|
|
499
499
|
class: x(["t-toast", { [t.placement]: !0, open: r.value, closing: a.value }]),
|
|
500
|
-
style: w({ "--space": t.space, ...
|
|
501
|
-
},
|
|
500
|
+
style: w({ "--space": t.space, ..._.value })
|
|
501
|
+
}, M(t.message), 7)) : I("", !0);
|
|
502
502
|
}
|
|
503
|
-
}), se = /* @__PURE__ */
|
|
503
|
+
}), se = /* @__PURE__ */ g(De, [["__scopeId", "data-v-61960e03"]]), oo = (o = {}) => ({
|
|
504
504
|
open() {
|
|
505
505
|
let s = document.body.querySelector(".t-app");
|
|
506
506
|
if (!s) return;
|
|
507
|
-
const e = document.createElement("div"), t =
|
|
507
|
+
const e = document.createElement("div"), t = v();
|
|
508
508
|
s.appendChild(e);
|
|
509
|
-
const n =
|
|
509
|
+
const n = X({
|
|
510
510
|
render() {
|
|
511
|
-
return
|
|
511
|
+
return H(se, {
|
|
512
512
|
...o,
|
|
513
513
|
ref: t,
|
|
514
514
|
onDismiss: () => {
|
|
@@ -523,7 +523,7 @@ const be = /* @__PURE__ */ y(_e, [["render", ge]]), he = /* @__PURE__ */ k({
|
|
|
523
523
|
t.value?.open?.();
|
|
524
524
|
}, 50);
|
|
525
525
|
}
|
|
526
|
-
}), Oe =
|
|
526
|
+
}), Oe = v(0);
|
|
527
527
|
function ne() {
|
|
528
528
|
return {
|
|
529
529
|
height: Oe
|
|
@@ -537,14 +537,14 @@ const Ne = /* @__PURE__ */ k({
|
|
|
537
537
|
},
|
|
538
538
|
setup(o) {
|
|
539
539
|
const s = o, { height: e } = ne();
|
|
540
|
-
return (t, n) => (c(),
|
|
540
|
+
return (t, n) => (c(), f("div", {
|
|
541
541
|
class: x(["t-cable", { keyboard: s.keyboard && E(e) > 0, [s.placement]: !0 }]),
|
|
542
542
|
style: w({ "--t-keyboard-height": E(e) + "px", "--t-keyboard-transition": E(e) > 0 ? "0.3s" : "0.1s" })
|
|
543
543
|
}, [
|
|
544
|
-
|
|
544
|
+
y(t.$slots, "default", {}, void 0, !0)
|
|
545
545
|
], 6));
|
|
546
546
|
}
|
|
547
|
-
}), qe = /* @__PURE__ */
|
|
547
|
+
}), qe = /* @__PURE__ */ g(Ne, [["__scopeId", "data-v-ecb72421"]]), Le = /* @__PURE__ */ k({
|
|
548
548
|
__name: "t-card",
|
|
549
549
|
props: {
|
|
550
550
|
color: { default: null }
|
|
@@ -560,60 +560,64 @@ const Ne = /* @__PURE__ */ k({
|
|
|
560
560
|
"--background": "var(--t-color-surface)"
|
|
561
561
|
}, t;
|
|
562
562
|
});
|
|
563
|
-
return (t, n) => (c(),
|
|
563
|
+
return (t, n) => (c(), f("div", {
|
|
564
564
|
class: "t-card",
|
|
565
565
|
style: w(e.value)
|
|
566
566
|
}, [
|
|
567
|
-
|
|
567
|
+
y(t.$slots, "default")
|
|
568
568
|
], 4));
|
|
569
569
|
}
|
|
570
|
-
}),
|
|
571
|
-
function
|
|
572
|
-
return c(),
|
|
573
|
-
|
|
570
|
+
}), We = {}, Xe = { class: "t-content" };
|
|
571
|
+
function He(o, s) {
|
|
572
|
+
return c(), f("div", Xe, [
|
|
573
|
+
y(o.$slots, "default", {}, void 0, !0)
|
|
574
574
|
]);
|
|
575
575
|
}
|
|
576
|
-
const re = /* @__PURE__ */
|
|
576
|
+
const re = /* @__PURE__ */ g(We, [["render", He], ["__scopeId", "data-v-3fd76212"]]), Z = 80, Ue = /* @__PURE__ */ k({
|
|
577
577
|
__name: "t-refresher",
|
|
578
578
|
emits: ["refresh"],
|
|
579
579
|
setup(o, { emit: s }) {
|
|
580
|
-
const e = s, t =
|
|
580
|
+
const e = s, t = v(0), n = v(!1), r = v();
|
|
581
581
|
let i, a = !1;
|
|
582
582
|
const u = () => {
|
|
583
583
|
n.value = !1, t.value = 0, i && i.cancel(), setTimeout(() => {
|
|
584
584
|
a = !1;
|
|
585
585
|
}, 2e3);
|
|
586
|
-
},
|
|
586
|
+
}, m = () => {
|
|
587
587
|
a = !0, n.value = !0, t.value = Z, e("refresh", u);
|
|
588
588
|
};
|
|
589
|
-
return
|
|
589
|
+
return L(() => r.value, () => {
|
|
590
590
|
i && i.destroy();
|
|
591
|
-
let
|
|
592
|
-
|
|
591
|
+
let _ = r.value.closest(".t-content");
|
|
592
|
+
_ && (i = Y(_, {
|
|
593
|
+
isMoving: !1,
|
|
593
594
|
options: {
|
|
594
595
|
minDist: 60
|
|
595
596
|
},
|
|
597
|
+
down() {
|
|
598
|
+
this.isMoving = !1;
|
|
599
|
+
},
|
|
596
600
|
move({ deltaY: l, initialDirection: $ }) {
|
|
597
|
-
n.value || a || $ != "down" || (l
|
|
601
|
+
n.value || a || $ != "down" || (l >= 120 ? (this.isMoving = !1, m()) : (l > 10 || this.isMoving && l >= 0) && (this.isMoving = !0, t.value = l));
|
|
598
602
|
},
|
|
599
603
|
up({ deltaY: l, initialDirection: $ }) {
|
|
600
|
-
|
|
604
|
+
this.isMoving = !1, !(n.value || a) && (l > Z && $ == "down" ? m() : t.value = 0);
|
|
601
605
|
},
|
|
602
606
|
cancel() {
|
|
603
|
-
|
|
607
|
+
this.isMoving = !1, !(n.value || a) && (n.value = !1, t.value = 0);
|
|
604
608
|
}
|
|
605
609
|
}, {
|
|
606
610
|
passive: !1
|
|
607
611
|
}));
|
|
608
|
-
}),
|
|
612
|
+
}), G(() => {
|
|
609
613
|
i && i.destroy();
|
|
610
|
-
}), (
|
|
614
|
+
}), (_, l) => O((c(), f("div", {
|
|
611
615
|
class: "t-refresher",
|
|
612
616
|
ref_key: "container",
|
|
613
617
|
ref: r,
|
|
614
618
|
style: w({ height: `${t.value}px` })
|
|
615
619
|
}, [
|
|
616
|
-
|
|
620
|
+
b("img", {
|
|
617
621
|
class: x({ spiner: n.value }),
|
|
618
622
|
src: "https://static.toikit.com/toikit/home_2.png?v=3",
|
|
619
623
|
alt: "Loading...",
|
|
@@ -623,18 +627,18 @@ const re = /* @__PURE__ */ y(Xe, [["render", Ue], ["__scopeId", "data-v-3fd76212
|
|
|
623
627
|
[N, t.value > 0]
|
|
624
628
|
]);
|
|
625
629
|
}
|
|
626
|
-
}),
|
|
627
|
-
function
|
|
628
|
-
return c(),
|
|
629
|
-
|
|
630
|
+
}), je = /* @__PURE__ */ g(Ue, [["__scopeId", "data-v-3091373e"]]), Fe = {}, Ge = { class: "t-screen" };
|
|
631
|
+
function Ke(o, s) {
|
|
632
|
+
return c(), f("div", Ge, [
|
|
633
|
+
y(o.$slots, "default", {}, void 0, !0)
|
|
630
634
|
]);
|
|
631
635
|
}
|
|
632
|
-
const ae = /* @__PURE__ */
|
|
636
|
+
const ae = /* @__PURE__ */ g(Fe, [["render", Ke], ["__scopeId", "data-v-c2a3436c"]]), Ye = /* @__PURE__ */ k({
|
|
633
637
|
__name: "t-swipe-screen",
|
|
634
638
|
emits: ["change"],
|
|
635
639
|
setup(o, { emit: s }) {
|
|
636
640
|
let e = {};
|
|
637
|
-
const t = te(), n = pe(), r = t.getRoutes(), i =
|
|
641
|
+
const t = te(), n = pe(), r = t.getRoutes(), i = v(!1), a = s;
|
|
638
642
|
for (let d of r)
|
|
639
643
|
e[d.name] = d.components;
|
|
640
644
|
const u = (d) => {
|
|
@@ -643,75 +647,75 @@ const ae = /* @__PURE__ */ y(Ge, [["render", Me], ["__scopeId", "data-v-c2a3436c
|
|
|
643
647
|
target: null,
|
|
644
648
|
component: ie(e[d] || null)
|
|
645
649
|
});
|
|
646
|
-
},
|
|
647
|
-
!
|
|
648
|
-
|
|
650
|
+
}, m = (d, h) => {
|
|
651
|
+
!h || T.screens[d].target || (T.screens[d].target = h.$el, d > 0 && (i.value = !0, h.$el.style.transform = "translateX(var(--t-app-width))", h.$el.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
|
|
652
|
+
h.$el.style.transition = "transform 0.35s ease", h.$el.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), T.screens.length > 1 && (T.lastScreen.value.target.style.transitionOrigin = "left center", T.lastScreen.value.target.style.transition = "transform 0.35s ease", T.lastScreen.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)"), setTimeout(() => {
|
|
649
653
|
a("change"), i.value = !1;
|
|
650
654
|
}, 400);
|
|
651
655
|
}, 100)));
|
|
652
|
-
},
|
|
656
|
+
}, _ = () => {
|
|
653
657
|
T.currentScreen.value.target.style.transition = "transform 0.35s ease", T.currentScreen.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", T.lastScreen.value.target.style.transition = "transform 0.35s ease", T.lastScreen.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(() => {
|
|
654
658
|
T.removeScreen(), a("change"), i.value = !1;
|
|
655
659
|
}, 400);
|
|
656
660
|
};
|
|
657
|
-
u(n.name),
|
|
658
|
-
d != T.currentScreen.value.name && (T.lastScreen.value?.name == d ?
|
|
661
|
+
u(n.name), L(() => n.name, (d, h) => {
|
|
662
|
+
d != T.currentScreen.value.name && (T.lastScreen.value?.name == d ? _() : u(d));
|
|
659
663
|
});
|
|
660
664
|
const l = () => {
|
|
661
665
|
i.value = !0;
|
|
662
|
-
const d = T.currentScreen.value.target,
|
|
663
|
-
d.style.transition = "transform 0.35s ease", d.style.transform = "translateX(0px)",
|
|
666
|
+
const d = T.currentScreen.value.target, h = T.lastScreen.value.target;
|
|
667
|
+
d.style.transition = "transform 0.35s ease", d.style.transform = "translateX(0px)", h.style.transition = "transform 0.35s ease", h.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
|
|
664
668
|
i.value = !1;
|
|
665
669
|
}, 400);
|
|
666
670
|
};
|
|
667
671
|
let $;
|
|
668
|
-
return
|
|
672
|
+
return K(() => {
|
|
669
673
|
$ = Y(document.body, {
|
|
670
|
-
|
|
674
|
+
isMoving: !1,
|
|
671
675
|
beforeEvent(d) {
|
|
672
676
|
return !(i.value || T.screens.length < 2);
|
|
673
677
|
},
|
|
674
678
|
fast({ initialDirection: d }) {
|
|
675
679
|
d == "right" && t.back();
|
|
676
680
|
},
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
}
|
|
681
|
+
down() {
|
|
682
|
+
this.isMoving = !1;
|
|
683
|
+
},
|
|
684
|
+
move({ deltaX: d, initialDirection: h }) {
|
|
685
|
+
if (h != "right") return;
|
|
686
|
+
const p = window.innerWidth, S = d / p * 100, P = T.currentScreen.value.target, J = T.lastScreen?.value?.target;
|
|
687
|
+
(d > 15 && d <= p || this.isMoving && d >= 0) && (this.isMoving = !0, P.style.transition = "transform 0s ease", P.style.transform = `translateX(${d}px)`, J.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), J.style.transform = `translateX(calc((var(--t-app-width) / 100 * 30 * -1) + ((var(--t-app-width) / 100 * 30) / 100 * ${S}))) scale(${0.5 + 0.5 / 100 * S}) perspective(var(--t-app-width)) rotateY(${30 - 30 / 100 * S}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * S}`));
|
|
684
688
|
},
|
|
685
|
-
up({ deltaX: d, initialDirection:
|
|
686
|
-
|
|
687
|
-
const
|
|
688
|
-
d /
|
|
689
|
+
up({ deltaX: d, initialDirection: h }) {
|
|
690
|
+
this.isMoving = !1, h != "right" && l();
|
|
691
|
+
const p = window.innerWidth;
|
|
692
|
+
d / p * 100 >= 50 ? t.back() : l();
|
|
689
693
|
},
|
|
690
694
|
cancel() {
|
|
691
|
-
l();
|
|
695
|
+
this.isMoving = !1, l();
|
|
692
696
|
}
|
|
693
697
|
});
|
|
694
|
-
}),
|
|
698
|
+
}), G(() => {
|
|
695
699
|
$ && $.destroy(), T.removeAllScreen();
|
|
696
|
-
}), (d,
|
|
697
|
-
(c(!0),
|
|
700
|
+
}), (d, h) => (c(), f(A, null, [
|
|
701
|
+
(c(!0), f(A, null, q(E(T).screens, (p, S) => (c(), B(ae, {
|
|
698
702
|
ref_for: !0,
|
|
699
|
-
ref: (
|
|
703
|
+
ref: (P) => m(S, P),
|
|
700
704
|
style: w({ zIndex: S + (S == E(T).screens.length - 1 ? 2 : 1) }),
|
|
701
705
|
key: S
|
|
702
706
|
}, {
|
|
703
707
|
default: V(() => [
|
|
704
|
-
(c(), B(ce(
|
|
708
|
+
(c(), B(ce(p.component.default)))
|
|
705
709
|
]),
|
|
706
710
|
_: 2
|
|
707
711
|
}, 1032, ["style"]))), 128)),
|
|
708
|
-
|
|
712
|
+
b("div", {
|
|
709
713
|
class: "t-swipe-backdrop",
|
|
710
714
|
style: w({ zIndex: E(T).screens.length })
|
|
711
715
|
}, null, 4)
|
|
712
716
|
], 64));
|
|
713
717
|
}
|
|
714
|
-
}), Je = /* @__PURE__ */
|
|
718
|
+
}), Je = /* @__PURE__ */ g(Ye, [["__scopeId", "data-v-60a4bd35"]]), Qe = /* @__PURE__ */ k({
|
|
715
719
|
__name: "t-toolbar",
|
|
716
720
|
props: {
|
|
717
721
|
placement: { default: "bottom" },
|
|
@@ -720,16 +724,16 @@ const ae = /* @__PURE__ */ y(Ge, [["render", Me], ["__scopeId", "data-v-c2a3436c
|
|
|
720
724
|
},
|
|
721
725
|
setup(o) {
|
|
722
726
|
const s = o;
|
|
723
|
-
return (e, t) => (c(),
|
|
727
|
+
return (e, t) => (c(), f("div", {
|
|
724
728
|
class: x(["t-toolbar", { [s.placement]: !0, safe: s.safe }]),
|
|
725
729
|
style: w({ "--t-size-toolbar": s.size })
|
|
726
730
|
}, [
|
|
727
|
-
|
|
728
|
-
|
|
731
|
+
b("div", null, [
|
|
732
|
+
y(e.$slots, "default", {}, void 0, !0)
|
|
729
733
|
])
|
|
730
734
|
], 6));
|
|
731
735
|
}
|
|
732
|
-
}), Ze = /* @__PURE__ */
|
|
736
|
+
}), Ze = /* @__PURE__ */ g(Qe, [["__scopeId", "data-v-db1924b1"]]), et = /* @__PURE__ */ k({
|
|
733
737
|
__name: "t-back-button",
|
|
734
738
|
props: {
|
|
735
739
|
to: {}
|
|
@@ -738,17 +742,17 @@ const ae = /* @__PURE__ */ y(Ge, [["render", Me], ["__scopeId", "data-v-c2a3436c
|
|
|
738
742
|
const s = te(), e = o, t = () => {
|
|
739
743
|
T.hasPrevious.value ? s?.back?.() : e.to && s?.push?.(e.to);
|
|
740
744
|
};
|
|
741
|
-
return (n, r) => n.to || E(T).hasPrevious ? (c(),
|
|
745
|
+
return (n, r) => n.to || E(T).hasPrevious ? (c(), f("button", {
|
|
742
746
|
key: 0,
|
|
743
747
|
class: "t-back-button",
|
|
744
748
|
onClick: t
|
|
745
749
|
}, [
|
|
746
|
-
|
|
747
|
-
r[0] || (r[0] =
|
|
750
|
+
y(n.$slots, "default", {}, () => [
|
|
751
|
+
r[0] || (r[0] = b("i", { class: "ri-arrow-left-s-line" }, null, -1))
|
|
748
752
|
], !0)
|
|
749
753
|
])) : I("", !0);
|
|
750
754
|
}
|
|
751
|
-
}), tt = /* @__PURE__ */
|
|
755
|
+
}), tt = /* @__PURE__ */ g(et, [["__scopeId", "data-v-ed626a3d"]]), ot = /* @__PURE__ */ k({
|
|
752
756
|
__name: "t-text",
|
|
753
757
|
props: {
|
|
754
758
|
color: { default: "var(--t-color-text)" },
|
|
@@ -762,24 +766,24 @@ const ae = /* @__PURE__ */ y(Ge, [["render", Me], ["__scopeId", "data-v-c2a3436c
|
|
|
762
766
|
"--font-size": t
|
|
763
767
|
};
|
|
764
768
|
});
|
|
765
|
-
return (t, n) => (c(),
|
|
769
|
+
return (t, n) => (c(), f("span", {
|
|
766
770
|
class: "t-text",
|
|
767
771
|
style: w(e.value)
|
|
768
772
|
}, [
|
|
769
|
-
|
|
773
|
+
y(t.$slots, "default", {}, void 0, !0)
|
|
770
774
|
], 4));
|
|
771
775
|
}
|
|
772
|
-
}),
|
|
776
|
+
}), F = /* @__PURE__ */ g(ot, [["__scopeId", "data-v-f0f94f05"]]), st = /* @__PURE__ */ k({
|
|
773
777
|
__name: "t-pull-signal",
|
|
774
778
|
props: {
|
|
775
779
|
placement: { default: "bottom" }
|
|
776
780
|
},
|
|
777
781
|
setup(o) {
|
|
778
|
-
return (s, e) => (c(),
|
|
782
|
+
return (s, e) => (c(), f("div", {
|
|
779
783
|
class: x(["t-pull-bar", { [s.placement]: !0 }])
|
|
780
784
|
}, null, 2));
|
|
781
785
|
}
|
|
782
|
-
}), le = /* @__PURE__ */
|
|
786
|
+
}), le = /* @__PURE__ */ g(st, [["__scopeId", "data-v-daa38c85"]]), nt = /* @__PURE__ */ k({
|
|
783
787
|
__name: "t-sheet",
|
|
784
788
|
props: {
|
|
785
789
|
background: { default: "var(--t-color-surface)" },
|
|
@@ -795,89 +799,93 @@ const ae = /* @__PURE__ */ y(Ge, [["render", Me], ["__scopeId", "data-v-c2a3436c
|
|
|
795
799
|
},
|
|
796
800
|
emits: ["dismiss"],
|
|
797
801
|
setup(o, { emit: s }) {
|
|
798
|
-
const e = o, t = s, n =
|
|
802
|
+
const e = o, t = s, n = v(), r = v(), i = v(!1);
|
|
799
803
|
let a = null;
|
|
800
804
|
const u = z(() => {
|
|
801
805
|
if (e.placement == "bottom") return "down";
|
|
802
806
|
if (e.placement == "top") return "up";
|
|
803
807
|
if (e.placement == "left") return "left";
|
|
804
808
|
if (e.placement == "right") return "right";
|
|
805
|
-
}),
|
|
809
|
+
}), m = (l) => {
|
|
806
810
|
t("dismiss", l);
|
|
807
|
-
},
|
|
811
|
+
}, _ = () => {
|
|
808
812
|
i.value = !0, setTimeout(() => {
|
|
809
813
|
i.value = !1;
|
|
810
814
|
}, 300);
|
|
811
815
|
};
|
|
812
|
-
return
|
|
816
|
+
return L(() => n.value, (l) => {
|
|
813
817
|
l && (a = Y(n.value, {
|
|
818
|
+
isMoving: !1,
|
|
814
819
|
options: {
|
|
815
820
|
minDist: 30
|
|
816
821
|
},
|
|
817
822
|
beforeEvent($) {
|
|
818
823
|
return !(i.value || !e.gesture || e.placement == "center");
|
|
819
824
|
},
|
|
825
|
+
down() {
|
|
826
|
+
this.isMoving = !1;
|
|
827
|
+
},
|
|
820
828
|
fast({ initialDirection: $ }) {
|
|
821
|
-
|
|
829
|
+
_(), $ == u.value ? t("dismiss", "gesture") : r.value.open();
|
|
822
830
|
},
|
|
823
|
-
move({ deltaY: $, deltaX: d, initialDirection:
|
|
824
|
-
if (
|
|
825
|
-
let
|
|
826
|
-
e.placement == "bottom" || e.placement == "top" ?
|
|
827
|
-
contentTransform:
|
|
831
|
+
move({ deltaY: $, deltaX: d, initialDirection: h }) {
|
|
832
|
+
if (h != u.value) return;
|
|
833
|
+
let p = 0;
|
|
834
|
+
e.placement == "bottom" || e.placement == "top" ? p = $ : p = d, (e.placement == "bottom" && (p >= 10 || this.isMoving && p >= 0) || e.placement == "top" && (p <= -10 || this.isMoving && p <= 0) || e.placement == "left" && (p >= 10 || this.isMoving && p >= 0) || e.placement == "right" && (p <= -10 || this.isMoving && p <= 0)) && (this.isMoving = !0, r.value.render({
|
|
835
|
+
contentTransform: p + "px",
|
|
828
836
|
transition: "0s"
|
|
829
|
-
});
|
|
837
|
+
}));
|
|
830
838
|
},
|
|
831
|
-
up({ deltaY: $, deltaX: d, initialDirection:
|
|
832
|
-
if (
|
|
839
|
+
up({ deltaY: $, deltaX: d, initialDirection: h }) {
|
|
840
|
+
if (this.isMoving = !1, _(), h != u.value) {
|
|
833
841
|
r.value.open();
|
|
834
842
|
return;
|
|
835
843
|
}
|
|
836
|
-
let
|
|
837
|
-
e.placement == "bottom" || e.placement == "top" ? (
|
|
844
|
+
let p, S, P;
|
|
845
|
+
e.placement == "bottom" || e.placement == "top" ? (p = n.value.offsetHeight, P = $) : (p = n.value.offsetWidth, P = d), S = P / p * 100, S > 50 ? t("dismiss", "gesture") : r.value.open();
|
|
838
846
|
},
|
|
839
847
|
cancel() {
|
|
840
|
-
|
|
848
|
+
this.isMoving = !1, _(), r.value.open();
|
|
841
849
|
}
|
|
842
850
|
}));
|
|
843
|
-
}),
|
|
851
|
+
}), G(() => {
|
|
844
852
|
a && a.destroy();
|
|
845
|
-
}), (l, $) => (c(), B(
|
|
853
|
+
}), (l, $) => (c(), B(D, {
|
|
846
854
|
ref_key: "present",
|
|
847
855
|
ref: r,
|
|
848
856
|
placement: e.placement,
|
|
849
857
|
backdrop: l.backdrop,
|
|
850
858
|
visible: e.visible,
|
|
851
859
|
keepalive: e.keepalive,
|
|
852
|
-
onDismiss:
|
|
860
|
+
onDismiss: m
|
|
853
861
|
}, {
|
|
854
862
|
default: V(() => [
|
|
855
863
|
e.gesture && e.placement != "center" ? (c(), B(le, {
|
|
856
864
|
key: 0,
|
|
857
865
|
placement: e.placement
|
|
858
866
|
}, null, 8, ["placement"])) : I("", !0),
|
|
859
|
-
e.closeButton && e.placement == "center" ? (c(),
|
|
867
|
+
e.closeButton && e.placement == "center" ? (c(), f("button", {
|
|
860
868
|
key: 1,
|
|
861
869
|
class: "t-sheet-close",
|
|
862
|
-
onClick: $[0] || ($[0] = (d) =>
|
|
870
|
+
onClick: $[0] || ($[0] = (d) => m("close-button"))
|
|
863
871
|
}, [
|
|
864
|
-
|
|
865
|
-
$[1] || ($[1] =
|
|
872
|
+
y(l.$slots, "close-icon", {}, () => [
|
|
873
|
+
$[1] || ($[1] = b("i", { class: "ri-close-large-line" }, null, -1))
|
|
866
874
|
], !0)
|
|
867
875
|
])) : I("", !0),
|
|
868
|
-
|
|
876
|
+
b("div", {
|
|
869
877
|
class: x(["t-sheet", { fullscreen: e.fullscreen, [e.placement]: !0, rounded: l.rounded, radius: e.radius }]),
|
|
870
878
|
style: w({ "--background": e.background }),
|
|
871
879
|
ref_key: "sheet",
|
|
872
880
|
ref: n
|
|
873
881
|
}, [
|
|
874
|
-
|
|
882
|
+
y(l.$slots, "default", {}, void 0, !0)
|
|
875
883
|
], 6)
|
|
876
884
|
]),
|
|
877
885
|
_: 3
|
|
878
886
|
}, 8, ["placement", "backdrop", "visible", "keepalive"]));
|
|
879
887
|
}
|
|
880
|
-
}), rt = /* @__PURE__ */
|
|
888
|
+
}), rt = /* @__PURE__ */ g(nt, [["__scopeId", "data-v-f4a002a4"]]), at = { class: "t-input-label" }, lt = { class: "t-input-content" }, ct = ["type", "placeholder", "value"], it = /* @__PURE__ */ k({
|
|
881
889
|
__name: "t-input",
|
|
882
890
|
props: {
|
|
883
891
|
size: { default: "standard" },
|
|
@@ -895,105 +903,105 @@ const ae = /* @__PURE__ */ y(Ge, [["render", Me], ["__scopeId", "data-v-c2a3436c
|
|
|
895
903
|
const e = o, t = s, n = (r) => {
|
|
896
904
|
t("update:modelValue", r.target.value);
|
|
897
905
|
};
|
|
898
|
-
return (r, i) => (c(),
|
|
906
|
+
return (r, i) => (c(), f("div", {
|
|
899
907
|
class: x(["t-input", { rounded: e.rounded, ["size-" + e.size]: !0, ["variant-" + e.variant]: !0 }])
|
|
900
908
|
}, [
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
909
|
+
b("label", null, [
|
|
910
|
+
b("span", at, M(r.label), 1),
|
|
911
|
+
b("div", lt, [
|
|
912
|
+
y(r.$slots, "start", {}, void 0, !0),
|
|
913
|
+
b("input", {
|
|
906
914
|
type: r.type,
|
|
907
915
|
placeholder: r.placeholder,
|
|
908
916
|
value: r.modelValue,
|
|
909
917
|
onInput: n
|
|
910
918
|
}, null, 40, ct),
|
|
911
|
-
|
|
919
|
+
y(r.$slots, "end", {}, void 0, !0)
|
|
912
920
|
])
|
|
913
921
|
]),
|
|
914
|
-
e.error ? (c(), B(
|
|
922
|
+
e.error ? (c(), B(F, {
|
|
915
923
|
key: 0,
|
|
916
924
|
color: "danger"
|
|
917
925
|
}, {
|
|
918
926
|
default: V(() => [
|
|
919
|
-
|
|
927
|
+
R(M(e.error), 1)
|
|
920
928
|
]),
|
|
921
929
|
_: 1
|
|
922
|
-
})) : e.help ? (c(), B(
|
|
930
|
+
})) : e.help ? (c(), B(F, {
|
|
923
931
|
key: 1,
|
|
924
932
|
color: "secondary"
|
|
925
933
|
}, {
|
|
926
934
|
default: V(() => [
|
|
927
|
-
|
|
935
|
+
R(M(e.help), 1)
|
|
928
936
|
]),
|
|
929
937
|
_: 1
|
|
930
938
|
})) : I("", !0)
|
|
931
939
|
], 2));
|
|
932
940
|
}
|
|
933
|
-
}), ut = /* @__PURE__ */
|
|
941
|
+
}), ut = /* @__PURE__ */ g(it, [["__scopeId", "data-v-1a9425cf"]]), dt = {};
|
|
934
942
|
function pt(o, s) {
|
|
935
|
-
return c(),
|
|
943
|
+
return c(), f("textarea");
|
|
936
944
|
}
|
|
937
|
-
const ft = /* @__PURE__ */
|
|
945
|
+
const ft = /* @__PURE__ */ g(dt, [["render", pt]]), mt = {};
|
|
938
946
|
function vt(o, s) {
|
|
939
|
-
return c(),
|
|
947
|
+
return c(), f("div");
|
|
940
948
|
}
|
|
941
|
-
const _t = /* @__PURE__ */
|
|
942
|
-
function
|
|
943
|
-
return c(),
|
|
949
|
+
const _t = /* @__PURE__ */ g(mt, [["render", vt]]), gt = {}, yt = { class: "t-grid" };
|
|
950
|
+
function ht(o, s) {
|
|
951
|
+
return c(), f("div", yt);
|
|
944
952
|
}
|
|
945
|
-
const
|
|
953
|
+
const bt = /* @__PURE__ */ g(gt, [["render", ht]]), kt = {}, $t = { class: "t-grid-item" };
|
|
946
954
|
function Tt(o, s) {
|
|
947
|
-
return c(),
|
|
955
|
+
return c(), f("div", $t);
|
|
948
956
|
}
|
|
949
|
-
const wt = /* @__PURE__ */
|
|
957
|
+
const wt = /* @__PURE__ */ g(kt, [["render", Tt]]), xt = /* @__PURE__ */ k({
|
|
950
958
|
__name: "t-divider",
|
|
951
959
|
props: {
|
|
952
960
|
direction: { default: "horizontal" }
|
|
953
961
|
},
|
|
954
962
|
setup(o) {
|
|
955
963
|
const s = o;
|
|
956
|
-
return (e, t) => (c(),
|
|
964
|
+
return (e, t) => (c(), f("div", {
|
|
957
965
|
class: x(["t-divider", { [s.direction]: !0 }])
|
|
958
966
|
}, null, 2));
|
|
959
967
|
}
|
|
960
|
-
}), St = /* @__PURE__ */
|
|
968
|
+
}), St = /* @__PURE__ */ g(xt, [["__scopeId", "data-v-47ee8991"]]), zt = /* @__PURE__ */ k({
|
|
961
969
|
__name: "t-toggle-password",
|
|
962
970
|
props: {
|
|
963
971
|
color: { default: "warning" }
|
|
964
972
|
},
|
|
965
973
|
emits: ["change"],
|
|
966
974
|
setup(o, { emit: s }) {
|
|
967
|
-
const e = o, t = s, n =
|
|
968
|
-
let
|
|
969
|
-
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) && (
|
|
970
|
-
"--color":
|
|
975
|
+
const e = o, t = s, n = v(!1), r = v(), i = z(() => {
|
|
976
|
+
let m = e.color;
|
|
977
|
+
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) && (m = `var(--t-color-status-${e.color})`), {
|
|
978
|
+
"--color": m
|
|
971
979
|
};
|
|
972
980
|
}), a = () => r.value?.parentElement?.querySelector?.("input");
|
|
973
|
-
|
|
974
|
-
let
|
|
975
|
-
|
|
981
|
+
K(() => {
|
|
982
|
+
let m = a();
|
|
983
|
+
m && (n.value = m.type != "password", t("change", n.value));
|
|
976
984
|
});
|
|
977
985
|
const u = () => {
|
|
978
|
-
let
|
|
979
|
-
|
|
986
|
+
let m = a();
|
|
987
|
+
m && (n.value = !n.value, n.value ? m.type = "text" : m.type = "password", t("change", n.value));
|
|
980
988
|
};
|
|
981
|
-
return (
|
|
989
|
+
return (m, _) => (c(), f("button", {
|
|
982
990
|
ref_key: "toggle",
|
|
983
991
|
ref: r,
|
|
984
992
|
class: "t-toggle-password",
|
|
985
993
|
style: w(i.value),
|
|
986
994
|
onClick: u
|
|
987
995
|
}, [
|
|
988
|
-
n.value ?
|
|
989
|
-
|
|
996
|
+
n.value ? y(m.$slots, "on", { key: 0 }, () => [
|
|
997
|
+
_[0] || (_[0] = b("i", { class: "ri-eye-line" }, null, -1))
|
|
990
998
|
], !0) : I("", !0),
|
|
991
|
-
n.value ? I("", !0) :
|
|
992
|
-
|
|
999
|
+
n.value ? I("", !0) : y(m.$slots, "off", { key: 1 }, () => [
|
|
1000
|
+
_[1] || (_[1] = b("i", { class: "ri-eye-off-line" }, null, -1))
|
|
993
1001
|
], !0)
|
|
994
1002
|
], 4));
|
|
995
1003
|
}
|
|
996
|
-
}), It = /* @__PURE__ */
|
|
1004
|
+
}), It = /* @__PURE__ */ g(zt, [["__scopeId", "data-v-3268e9e3"]]), Bt = /* @__PURE__ */ k({
|
|
997
1005
|
__name: "t-avatar",
|
|
998
1006
|
props: {
|
|
999
1007
|
square: { type: Boolean, default: !1 },
|
|
@@ -1001,64 +1009,64 @@ const wt = /* @__PURE__ */ y(kt, [["render", Tt]]), xt = /* @__PURE__ */ k({
|
|
|
1001
1009
|
},
|
|
1002
1010
|
setup(o) {
|
|
1003
1011
|
const s = o, e = z(() => s.size == "small" ? "24px" : s.size == "standard" ? "40px" : s.size == "large" ? "60px" : s.size);
|
|
1004
|
-
return (t, n) => (c(),
|
|
1012
|
+
return (t, n) => (c(), f("div", {
|
|
1005
1013
|
class: x(["t-avatar", { square: t.square }]),
|
|
1006
1014
|
style: w({ "--size": e.value })
|
|
1007
1015
|
}, [
|
|
1008
|
-
|
|
1016
|
+
y(t.$slots, "default", {}, void 0, !0)
|
|
1009
1017
|
], 6));
|
|
1010
1018
|
}
|
|
1011
|
-
}), Ct = /* @__PURE__ */
|
|
1019
|
+
}), Ct = /* @__PURE__ */ g(Bt, [["__scopeId", "data-v-24384c2f"]]), Et = { class: "t-collapse-title" }, Vt = {
|
|
1012
1020
|
key: 0,
|
|
1013
1021
|
class: "icon"
|
|
1014
|
-
},
|
|
1022
|
+
}, Mt = {
|
|
1015
1023
|
key: 1,
|
|
1016
1024
|
class: "icon"
|
|
1017
|
-
},
|
|
1025
|
+
}, Pt = { class: "t-collapse-content" }, At = /* @__PURE__ */ k({
|
|
1018
1026
|
__name: "t-collapse",
|
|
1019
1027
|
props: {
|
|
1020
1028
|
title: {}
|
|
1021
1029
|
},
|
|
1022
1030
|
emits: ["change"],
|
|
1023
1031
|
setup(o, { emit: s }) {
|
|
1024
|
-
const e = o, t = s, n =
|
|
1032
|
+
const e = o, t = s, n = v(!1), r = v(""), i = v(), a = () => {
|
|
1025
1033
|
n.value = !n.value, r.value = `calc(${i.value.offsetHeight}px + 2rem)`, t("change", n.value);
|
|
1026
1034
|
};
|
|
1027
|
-
return t("change", n.value), (u,
|
|
1035
|
+
return t("change", n.value), (u, m) => (c(), f("div", {
|
|
1028
1036
|
class: x(["t-collapse", { open: n.value }]),
|
|
1029
1037
|
style: w({ "--height": r.value })
|
|
1030
1038
|
}, [
|
|
1031
|
-
|
|
1039
|
+
b("div", {
|
|
1032
1040
|
class: "t-collapse-header",
|
|
1033
1041
|
onClick: a
|
|
1034
1042
|
}, [
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1043
|
+
y(u.$slots, "icon"),
|
|
1044
|
+
b("div", Et, [
|
|
1045
|
+
y(u.$slots, "title", {}, () => [
|
|
1046
|
+
R(M(e.title), 1)
|
|
1039
1047
|
])
|
|
1040
1048
|
]),
|
|
1041
|
-
|
|
1042
|
-
n.value ? (c(),
|
|
1043
|
-
|
|
1044
|
-
])])) : (c(),
|
|
1045
|
-
|
|
1049
|
+
y(u.$slots, "toggle", {}, () => [
|
|
1050
|
+
n.value ? (c(), f("div", Vt, [...m[0] || (m[0] = [
|
|
1051
|
+
b("i", { class: "ri-arrow-up-s-line" }, null, -1)
|
|
1052
|
+
])])) : (c(), f("div", Mt, [...m[1] || (m[1] = [
|
|
1053
|
+
b("i", { class: "ri-arrow-down-s-line" }, null, -1)
|
|
1046
1054
|
])]))
|
|
1047
1055
|
])
|
|
1048
1056
|
]),
|
|
1049
|
-
|
|
1050
|
-
|
|
1057
|
+
b("div", Pt, [
|
|
1058
|
+
b("div", {
|
|
1051
1059
|
ref_key: "content",
|
|
1052
1060
|
ref: i
|
|
1053
1061
|
}, [
|
|
1054
|
-
|
|
1055
|
-
|
|
1062
|
+
y(u.$slots, "content", {}, () => [
|
|
1063
|
+
y(u.$slots, "default")
|
|
1056
1064
|
])
|
|
1057
1065
|
], 512)
|
|
1058
1066
|
])
|
|
1059
1067
|
], 6));
|
|
1060
1068
|
}
|
|
1061
|
-
}),
|
|
1069
|
+
}), Rt = /* @__PURE__ */ k({
|
|
1062
1070
|
__name: "t-switch",
|
|
1063
1071
|
props: {
|
|
1064
1072
|
modelValue: { type: Boolean },
|
|
@@ -1078,15 +1086,15 @@ const wt = /* @__PURE__ */ y(kt, [["render", Tt]]), xt = /* @__PURE__ */ k({
|
|
|
1078
1086
|
"--color": `var(--t-color-status-${e.color}-text)`
|
|
1079
1087
|
}), i;
|
|
1080
1088
|
});
|
|
1081
|
-
return (i, a) => (c(),
|
|
1089
|
+
return (i, a) => (c(), f("div", {
|
|
1082
1090
|
class: x(["t-switch", { on: e.modelValue }]),
|
|
1083
1091
|
style: w(r.value),
|
|
1084
1092
|
onClick: n
|
|
1085
1093
|
}, [...a[0] || (a[0] = [
|
|
1086
|
-
|
|
1094
|
+
b("div", { class: "t-switch-icon" }, null, -1)
|
|
1087
1095
|
])], 6));
|
|
1088
1096
|
}
|
|
1089
|
-
}),
|
|
1097
|
+
}), Dt = /* @__PURE__ */ g(Rt, [["__scopeId", "data-v-3616970e"]]), Ot = /* @__PURE__ */ k({
|
|
1090
1098
|
__name: "t-tab",
|
|
1091
1099
|
props: {
|
|
1092
1100
|
value: {}
|
|
@@ -1095,23 +1103,23 @@ const wt = /* @__PURE__ */ y(kt, [["render", Tt]]), xt = /* @__PURE__ */ k({
|
|
|
1095
1103
|
const s = o, e = ue("tabsState"), t = z(() => e.active.value === s.value), n = () => {
|
|
1096
1104
|
e.setActive(s.value);
|
|
1097
1105
|
};
|
|
1098
|
-
return (r, i) => (c(),
|
|
1106
|
+
return (r, i) => (c(), f("li", {
|
|
1099
1107
|
class: x(["t-tab", { active: t.value }])
|
|
1100
1108
|
}, [
|
|
1101
|
-
|
|
1109
|
+
W(j, {
|
|
1102
1110
|
variant: "text",
|
|
1103
1111
|
onClick: n,
|
|
1104
1112
|
size: E(e).size,
|
|
1105
1113
|
color: t.value && E(e).variant == "text" ? E(e).color : void 0
|
|
1106
1114
|
}, {
|
|
1107
1115
|
default: V(() => [
|
|
1108
|
-
|
|
1116
|
+
y(r.$slots, "default", {}, void 0, !0)
|
|
1109
1117
|
]),
|
|
1110
1118
|
_: 3
|
|
1111
1119
|
}, 8, ["size", "color"])
|
|
1112
1120
|
], 2));
|
|
1113
1121
|
}
|
|
1114
|
-
}), Nt = /* @__PURE__ */
|
|
1122
|
+
}), Nt = /* @__PURE__ */ g(Ot, [["__scopeId", "data-v-36c12a50"]]), qt = /* @__PURE__ */ k({
|
|
1115
1123
|
__name: "t-tabs",
|
|
1116
1124
|
props: {
|
|
1117
1125
|
placement: { default: "top-start" },
|
|
@@ -1123,7 +1131,7 @@ const wt = /* @__PURE__ */ y(kt, [["render", Tt]]), xt = /* @__PURE__ */ k({
|
|
|
1123
1131
|
},
|
|
1124
1132
|
emits: ["update:modelValue"],
|
|
1125
1133
|
setup(o, { emit: s }) {
|
|
1126
|
-
const e = o, t = s, n =
|
|
1134
|
+
const e = o, t = s, n = v("0px"), r = v(), i = z(() => {
|
|
1127
1135
|
let u = e.color;
|
|
1128
1136
|
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(u) && (u = `var(--t-color-status-${u})`), u;
|
|
1129
1137
|
}), a = () => {
|
|
@@ -1131,14 +1139,14 @@ const wt = /* @__PURE__ */ y(kt, [["render", Tt]]), xt = /* @__PURE__ */ k({
|
|
|
1131
1139
|
if (e.placement.startsWith("top-") || e.placement.startsWith("bottom-")) {
|
|
1132
1140
|
let u = r.value.querySelector(".active");
|
|
1133
1141
|
if (u) {
|
|
1134
|
-
let
|
|
1135
|
-
n.value =
|
|
1142
|
+
let m = u.getBoundingClientRect().left - r.value.getBoundingClientRect().left + r.value.scrollLeft, _ = u.offsetWidth / 2;
|
|
1143
|
+
n.value = m + _ - e.border / 2 + "px";
|
|
1136
1144
|
}
|
|
1137
1145
|
} else if (e.placement.startsWith("left-") || e.placement.startsWith("right-")) {
|
|
1138
1146
|
let u = r.value.querySelector(".active");
|
|
1139
1147
|
if (u) {
|
|
1140
|
-
let
|
|
1141
|
-
n.value =
|
|
1148
|
+
let m = u.getBoundingClientRect().top - r.value.getBoundingClientRect().top + r.value.scrollTop, _ = u.offsetHeight / 2;
|
|
1149
|
+
n.value = m + _ - e.border / 2 + "px";
|
|
1142
1150
|
}
|
|
1143
1151
|
}
|
|
1144
1152
|
}, 50);
|
|
@@ -1151,31 +1159,31 @@ const wt = /* @__PURE__ */ y(kt, [["render", Tt]]), xt = /* @__PURE__ */ k({
|
|
|
1151
1159
|
setActive: (u) => {
|
|
1152
1160
|
t("update:modelValue", u), a();
|
|
1153
1161
|
}
|
|
1154
|
-
}),
|
|
1162
|
+
}), K(() => {
|
|
1155
1163
|
a();
|
|
1156
|
-
}), (u,
|
|
1164
|
+
}), (u, m) => (c(), f("ul", {
|
|
1157
1165
|
ref_key: "container",
|
|
1158
1166
|
ref: r,
|
|
1159
1167
|
class: x(["t-tabs", { [u.placement]: !0, [u.variant]: !0 }]),
|
|
1160
1168
|
style: w({ "--color": i.value, "--transform": n.value, "--border": u.border + "px" })
|
|
1161
1169
|
}, [
|
|
1162
|
-
|
|
1170
|
+
y(u.$slots, "default", {}, void 0, !0)
|
|
1163
1171
|
], 6));
|
|
1164
1172
|
}
|
|
1165
|
-
}),
|
|
1173
|
+
}), Lt = /* @__PURE__ */ g(qt, [["__scopeId", "data-v-65a2c74c"]]), Wt = /* @__PURE__ */ k({
|
|
1166
1174
|
__name: "t-loading-app",
|
|
1167
1175
|
setup(o) {
|
|
1168
1176
|
return (s, e) => (c(), B(re, null, {
|
|
1169
1177
|
default: V(() => [
|
|
1170
|
-
|
|
1178
|
+
W(U, { type: "spinner" })
|
|
1171
1179
|
]),
|
|
1172
1180
|
_: 1
|
|
1173
1181
|
}));
|
|
1174
1182
|
}
|
|
1175
|
-
}),
|
|
1183
|
+
}), Xt = /* @__PURE__ */ g(Wt, [["__scopeId", "data-v-1436aa9f"]]), Ht = { key: 0 }, Ut = {
|
|
1176
1184
|
key: 0,
|
|
1177
1185
|
class: "t-checkbox-label"
|
|
1178
|
-
},
|
|
1186
|
+
}, jt = /* @__PURE__ */ k({
|
|
1179
1187
|
__name: "t-checkbox",
|
|
1180
1188
|
props: {
|
|
1181
1189
|
label: { default: "" },
|
|
@@ -1203,34 +1211,34 @@ const wt = /* @__PURE__ */ y(kt, [["render", Tt]]), xt = /* @__PURE__ */ k({
|
|
|
1203
1211
|
e.modelValue.includes(e.value) ? a.splice(a.indexOf(e.value), 1) : a.push(e.value), t("update:modelValue", a);
|
|
1204
1212
|
} else e.value === void 0 ? t("update:modelValue", !e.modelValue) : t("update:modelValue", e.value);
|
|
1205
1213
|
};
|
|
1206
|
-
return (a, u) => (c(),
|
|
1214
|
+
return (a, u) => (c(), f("div", {
|
|
1207
1215
|
class: x(["t-checkbox", { active: r.value }]),
|
|
1208
1216
|
style: w(n.value),
|
|
1209
1217
|
onClick: i
|
|
1210
1218
|
}, [
|
|
1211
|
-
|
|
1219
|
+
b("div", {
|
|
1212
1220
|
class: x(`t-checkbox-${a.type}`)
|
|
1213
1221
|
}, [
|
|
1214
|
-
a.type == "radio" ? (c(),
|
|
1215
|
-
a.type == "check" ?
|
|
1216
|
-
u[0] || (u[0] =
|
|
1222
|
+
a.type == "radio" ? (c(), f("div", Ht)) : I("", !0),
|
|
1223
|
+
a.type == "check" ? y(a.$slots, "icon", { key: 1 }, () => [
|
|
1224
|
+
u[0] || (u[0] = b("i", { class: "ri-check-line" }, null, -1))
|
|
1217
1225
|
], !0) : I("", !0)
|
|
1218
1226
|
], 2),
|
|
1219
|
-
a.label ? (c(),
|
|
1227
|
+
a.label ? (c(), f("span", Ut, M(e.label), 1)) : I("", !0)
|
|
1220
1228
|
], 6));
|
|
1221
1229
|
}
|
|
1222
|
-
}),
|
|
1230
|
+
}), Ft = /* @__PURE__ */ g(jt, [["__scopeId", "data-v-d558d0b0"]]), Gt = /* @__PURE__ */ k({
|
|
1223
1231
|
__name: "t-keyboard",
|
|
1224
1232
|
setup(o) {
|
|
1225
1233
|
const { height: s } = ne();
|
|
1226
|
-
return (e, t) => (c(),
|
|
1234
|
+
return (e, t) => (c(), f("div", {
|
|
1227
1235
|
class: "t-keyboard",
|
|
1228
1236
|
style: w({ "--height": E(s) + "px" })
|
|
1229
1237
|
}, null, 4));
|
|
1230
1238
|
}
|
|
1231
|
-
}),
|
|
1239
|
+
}), Kt = /* @__PURE__ */ g(Gt, [["__scopeId", "data-v-5d3fa1da"]]), so = () => ({
|
|
1232
1240
|
install: (o) => {
|
|
1233
|
-
ve(), o.component("t-app",
|
|
1241
|
+
ve(), o.component("t-app", he), o.component("t-screen", ae), o.component("t-swipe-screen", Je), o.component("t-cable", qe), o.component("t-toolbar", Ze), o.component("t-content", re), o.component("t-card", Le), o.component("t-refresher", je), o.component("t-button", j), o.component("t-back-button", tt), o.component("t-present", D), o.component("t-text", F), o.component("t-sheet", rt), o.component("t-pull-signal", le), o.component("t-input", ut), o.component("t-textarea", ft), o.component("t-rich-text", _t), o.component("t-grid", bt), o.component("t-grid-item", wt), o.component("t-divider", St), o.component("t-toggle-password", It), o.component("t-loading-icon", U), o.component("t-alert", oe), o.component("t-avatar", Ct), o.component("t-collapse", At), o.component("t-toast", se), o.component("t-switch", Dt), o.component("t-tab", Nt), o.component("t-tabs", Lt), o.component("t-loading-app", Xt), o.component("t-checkbox", Ft), o.component("t-keyboard", Kt);
|
|
1234
1242
|
}
|
|
1235
1243
|
});
|
|
1236
1244
|
export {
|
|
@@ -1241,7 +1249,7 @@ export {
|
|
|
1241
1249
|
oo as createToast,
|
|
1242
1250
|
so as createToife,
|
|
1243
1251
|
fe as isFormElement,
|
|
1244
|
-
|
|
1252
|
+
Me as presentController,
|
|
1245
1253
|
T as screenController,
|
|
1246
1254
|
ne as useKeyboard
|
|
1247
1255
|
};
|