@toife/vue 1.1.24 → 1.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,5 +1,5 @@
1
- import { createElementBlock as m, openBlock as c, renderSlot as b, defineComponent as T, ref as y, computed as S, reactive as te, watch as R, onUnmounted as N, Fragment as A, withDirectives as W, createCommentVNode as z, normalizeStyle as w, normalizeClass as I, vShow as Y, createElementVNode as k, createVNode as M, createBlock as E, withCtx as B, toDisplayString as P, renderList as H, createTextVNode as X, createApp as U, h as j, unref as D, onMounted as J, resolveDynamicComponent as le, markRaw as ce, inject as ie, provide as ue } from "vue";
2
- import { gesture as V } from "@toife/gesture";
1
+ import { createElementBlock as _, openBlock as c, renderSlot as b, defineComponent as T, ref as y, computed as I, reactive as te, watch as R, Fragment as V, withDirectives as W, createCommentVNode as z, normalizeStyle as w, normalizeClass as x, vShow as Y, createElementVNode as h, createVNode as M, onUnmounted as L, createBlock as B, withCtx as C, toDisplayString as P, renderList as H, createTextVNode as N, createApp as U, h as j, unref as D, onMounted as J, resolveDynamicComponent as le, markRaw as ce, inject as ie, provide as ue } from "vue";
2
+ import { gesture as A } from "@toife/gesture";
3
3
  import { useRouter as oe, useRoute as de } from "vue-router";
4
4
  const O = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), q = () => {
5
5
  const t = document.activeElement;
@@ -15,7 +15,7 @@ const O = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isCo
15
15
  return o;
16
16
  }, fe = {}, me = { class: "t-app" };
17
17
  function ve(t, n) {
18
- return c(), m("div", me, [
18
+ return c(), _("div", me, [
19
19
  b(t.$slots, "default")
20
20
  ]);
21
21
  }
@@ -29,76 +29,68 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
29
29
  },
30
30
  emits: ["dismiss"],
31
31
  setup(t, { expose: n, emit: o }) {
32
- const e = y(0), s = y(!1), a = y(), l = y(), i = t, u = o, d = S(() => s.value || i.keepalive), v = te({
32
+ const e = y(0), s = y(!1), a = y(), l = y(), i = t, u = o, d = I(() => s.value || i.keepalive), p = te({
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
- }), _ = (f) => {
38
- i.backdrop ? f?.backdropOpacity && (v["--t-present-backdrop-opacity"] = f.backdropOpacity) : v["--t-present-backdrop-opacity"] = "0", f?.transition && (v["--t-present-transition"] = f.transition, v["--t-present-transition"] = f.transition), f?.contentTransform && (v["--t-present-content-transform"] = f.contentTransform), f?.contentOpacity && (v["--t-present-content-opacity"] = f.contentOpacity);
37
+ }), v = (f) => {
38
+ i.backdrop ? f?.backdropOpacity && (p["--t-present-backdrop-opacity"] = f.backdropOpacity) : p["--t-present-backdrop-opacity"] = "0", f?.transition && (p["--t-present-transition"] = f.transition, p["--t-present-transition"] = f.transition), f?.contentTransform && (p["--t-present-content-transform"] = f.contentTransform), f?.contentOpacity && (p["--t-present-content-opacity"] = f.contentOpacity);
39
39
  }, r = () => {
40
- _({
40
+ v({
41
41
  contentTransform: "0px",
42
42
  transition: "0.2s",
43
43
  backdropOpacity: "0.4",
44
44
  contentOpacity: "1"
45
45
  });
46
- }, p = () => {
47
- let f = "0px", x = "1";
48
- i.placement == "bottom" || i.placement == "right" ? f = "100%" : i.placement == "top" || i.placement == "left" ? f = "-100%" : i.placement == "center" && (f = "0px", x = "0"), _({
46
+ }, m = () => {
47
+ let f = "0px", S = "1";
48
+ i.placement == "bottom" || i.placement == "right" ? f = "100%" : i.placement == "top" || i.placement == "left" ? f = "-100%" : i.placement == "center" && (f = "0px", S = "0"), v({
49
49
  contentTransform: f,
50
50
  transition: "0.2s",
51
- contentOpacity: x,
51
+ contentOpacity: S,
52
52
  backdropOpacity: "0"
53
53
  });
54
54
  };
55
55
  R(() => i.visible, () => {
56
- i.visible ? (s.value = !0, e.value = Ee.getNewIndex(), setTimeout(() => {
56
+ i.visible ? (s.value = !0, e.value = Be.getNewIndex(), setTimeout(() => {
57
57
  r();
58
- }, 50)) : (p(), setTimeout(() => {
58
+ }, 50)) : (m(), setTimeout(() => {
59
59
  s.value = !1;
60
60
  }, 200));
61
61
  }), n({
62
- render: _,
62
+ render: v,
63
63
  open: r,
64
- close: p
64
+ close: m
65
65
  });
66
- let h;
67
- return R(() => a.value, (f) => {
68
- f && (h = V(a.value, {
69
- beforeEvent(x) {
70
- return x.stopPropagation(), O(x.target) || (x.preventDefault(), q()), x.type == "pointerdown";
71
- },
72
- up() {
73
- u("dismiss", "backdrop");
74
- }
75
- }));
76
- }), N(() => {
77
- h && h.destroy();
78
- }), p(), (f, x) => (c(), m(A, null, [
79
- d.value ? W((c(), m("div", {
66
+ const k = (f) => {
67
+ f.preventDefault(), u("dismiss", "backdrop");
68
+ };
69
+ return m(), (f, S) => (c(), _(V, null, [
70
+ d.value ? W((c(), _("div", {
80
71
  key: 0,
81
- class: I(["t-present", { [f.placement]: !0 }]),
72
+ class: x(["t-present", { [f.placement]: !0 }]),
82
73
  ref_key: "present",
83
74
  ref: l,
84
- style: w({ ...v, zIndex: e.value })
75
+ style: w({ ...p, zIndex: e.value })
85
76
  }, [
86
77
  b(f.$slots, "default", {}, void 0, !0)
87
78
  ], 6)), [
88
79
  [Y, s.value]
89
80
  ]) : z("", !0),
90
- d.value ? W((c(), m("div", {
81
+ d.value ? W((c(), _("div", {
91
82
  key: 1,
92
83
  class: "t-present-backdrop",
84
+ onClick: k,
93
85
  ref_key: "backdrop",
94
86
  ref: a,
95
- style: w({ ...v, zIndex: e.value - 1 })
87
+ style: w({ ...p, zIndex: e.value - 1 })
96
88
  }, null, 4)), [
97
89
  [Y, s.value]
98
90
  ]) : z("", !0)
99
91
  ], 64));
100
92
  }
101
- }), L = /* @__PURE__ */ g(ye, [["__scopeId", "data-v-84c0b568"]]), ge = /* @__PURE__ */ T({
93
+ }), X = /* @__PURE__ */ g(ye, [["__scopeId", "data-v-0ec92514"]]), ge = /* @__PURE__ */ T({
102
94
  __name: "t-loading-icon",
103
95
  props: {
104
96
  size: {
@@ -111,7 +103,7 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
111
103
  }
112
104
  },
113
105
  setup(t) {
114
- return (n, o) => (c(), m("span", {
106
+ return (n, o) => (c(), _("span", {
115
107
  class: "t-loading-icon",
116
108
  style: w({
117
109
  width: t.size,
@@ -138,7 +130,7 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
138
130
  activeBackground: { type: Boolean, default: !1 }
139
131
  },
140
132
  setup(t) {
141
- const n = t, o = S(() => {
133
+ const n = t, o = I(() => {
142
134
  let e;
143
135
  return n.variant == "default" && (n.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) ? e = {
144
136
  "--border": "none",
@@ -178,16 +170,16 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
178
170
  "--background": "transparent"
179
171
  }), e;
180
172
  });
181
- return (e, s) => (c(), m("button", {
182
- class: I(["t-button", { "active-background": n.activeBackground, rounded: n.rounded, block: n.block, ["size-" + n.size]: !0 }]),
173
+ return (e, s) => (c(), _("button", {
174
+ class: x(["t-button", { "active-background": n.activeBackground, rounded: n.rounded, block: n.block, ["size-" + n.size]: !0 }]),
183
175
  style: w(o.value)
184
176
  }, [
185
- W(k("span", null, [
177
+ W(h("span", null, [
186
178
  b(e.$slots, "default", {}, void 0, !0)
187
179
  ], 512), [
188
180
  [Y, !n.loading]
189
181
  ]),
190
- n.loading ? (c(), m("span", be, [
182
+ n.loading ? (c(), _("span", be, [
191
183
  M(Q, {
192
184
  color: "var(--color)",
193
185
  type: n.loadingType
@@ -212,9 +204,9 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
212
204
  let i;
213
205
  const u = y(!1), d = () => {
214
206
  s.value = !0;
215
- }, v = (r) => {
207
+ }, p = (r) => {
216
208
  s.value = !1, r.handler && r.handler(), a("dismiss", "choose", r?.data);
217
- }, _ = (r) => {
209
+ }, v = (r) => {
218
210
  e.dismiss && e.dismiss.includes(r) ? (s.value = !1, a("dismiss", r)) : r == "backdrop" && (u.value = !0, setTimeout(() => {
219
211
  u.value = !1;
220
212
  }, 300));
@@ -222,41 +214,41 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
222
214
  return n({
223
215
  open: d
224
216
  }), R(() => l.value, (r) => {
225
- r && (i = V(l.value, {
226
- beforeEvent(p) {
227
- return p.stopPropagation(), O(p.target) || (p.preventDefault(), q()), !1;
217
+ r && (i = A(l.value, {
218
+ beforeEvent(m) {
219
+ return m.stopPropagation(), O(m.target) || (m.preventDefault(), q()), !1;
228
220
  }
229
221
  }));
230
- }), N(() => {
222
+ }), L(() => {
231
223
  i && i.destroy();
232
- }), (r, p) => (c(), E(L, {
224
+ }), (r, m) => (c(), B(X, {
233
225
  placement: "center",
234
226
  backdrop: !0,
235
227
  keepalive: !1,
236
228
  visible: s.value,
237
- onDismiss: _
229
+ onDismiss: v
238
230
  }, {
239
- default: B(() => [
240
- k("div", {
241
- class: I(["t-alert", { pop: u.value }]),
231
+ default: C(() => [
232
+ h("div", {
233
+ class: x(["t-alert", { pop: u.value }]),
242
234
  ref_key: "container",
243
235
  ref: l
244
236
  }, [
245
237
  b(r.$slots, "header", {}, () => [
246
- e.title ? (c(), m("div", ke, P(e.title), 1)) : z("", !0)
238
+ e.title ? (c(), _("div", ke, P(e.title), 1)) : z("", !0)
247
239
  ], !0),
248
240
  b(r.$slots, "content", {}, () => [
249
- k("div", $e, P(e.message), 1)
241
+ h("div", $e, P(e.message), 1)
250
242
  ], !0),
251
243
  b(r.$slots, "footer", {}, () => [
252
- k("div", Te, [
253
- (c(!0), m(A, null, H(e.actions, (h) => (c(), E(F, {
254
- color: h.color,
255
- variant: h.variant,
256
- onClick: (f) => v(h)
244
+ h("div", Te, [
245
+ (c(!0), _(V, null, H(e.actions, (k) => (c(), B(F, {
246
+ color: k.color,
247
+ variant: k.variant,
248
+ onClick: (f) => p(k)
257
249
  }, {
258
- default: B(() => [
259
- X(P(h.text), 1)
250
+ default: C(() => [
251
+ N(P(k.text), 1)
260
252
  ]),
261
253
  _: 2
262
254
  }, 1032, ["color", "variant", "onClick"]))), 256))
@@ -304,9 +296,9 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
304
296
  let i;
305
297
  const u = y(!1), d = () => {
306
298
  s.value = !0;
307
- }, v = (r) => {
299
+ }, p = (r) => {
308
300
  s.value = !1, r.handler && r.handler(), a("dismiss", "choose", r?.data);
309
- }, _ = (r) => {
301
+ }, v = (r) => {
310
302
  e.dismiss && e.dismiss.includes(r) ? (s.value = !1, a("dismiss", r)) : r == "backdrop" && (u.value = !0, setTimeout(() => {
311
303
  u.value = !1;
312
304
  }, 300));
@@ -314,36 +306,36 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
314
306
  return n({
315
307
  open: d
316
308
  }), R(() => l.value, (r) => {
317
- r && (i = V(l.value, {
318
- beforeEvent(p) {
319
- return p.stopPropagation(), O(p.target) || (p.preventDefault(), q()), !1;
309
+ r && (i = A(l.value, {
310
+ beforeEvent(m) {
311
+ return m.stopPropagation(), O(m.target) || (m.preventDefault(), q()), !1;
320
312
  }
321
313
  }));
322
- }), N(() => {
314
+ }), L(() => {
323
315
  i && i.destroy();
324
- }), (r, p) => (c(), E(L, {
316
+ }), (r, m) => (c(), B(X, {
325
317
  placement: "bottom",
326
318
  backdrop: !0,
327
319
  keepalive: !1,
328
320
  visible: s.value,
329
- onDismiss: _
321
+ onDismiss: v
330
322
  }, {
331
- default: B(() => [
332
- k("div", {
333
- class: I(["t-action", { pop: u.value }]),
323
+ default: C(() => [
324
+ h("div", {
325
+ class: x(["t-action", { pop: u.value }]),
334
326
  ref_key: "container",
335
327
  ref: l
336
328
  }, [
337
- (c(!0), m(A, null, H(e.actions, (h) => (c(), m("div", null, [
338
- (c(!0), m(A, null, H(h, (f) => (c(), E(F, {
329
+ (c(!0), _(V, null, H(e.actions, (k) => (c(), _("div", null, [
330
+ (c(!0), _(V, null, H(k, (f) => (c(), B(F, {
339
331
  color: f.color,
340
332
  size: f.size,
341
333
  variant: f.variant,
342
- onClick: (x) => v(f),
334
+ onClick: (S) => p(f),
343
335
  block: ""
344
336
  }, {
345
- default: B(() => [
346
- X(P(f.text), 1)
337
+ default: C(() => [
338
+ N(P(f.text), 1)
347
339
  ]),
348
340
  _: 2
349
341
  }, 1032, ["color", "size", "variant", "onClick"]))), 256))
@@ -395,21 +387,21 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
395
387
  s.value = !1;
396
388
  }
397
389
  }), R(() => a.value, (d) => {
398
- d && (l = V(a.value, {
399
- beforeEvent(v) {
400
- return v.stopPropagation(), O(v.target) || (v.preventDefault(), q()), !1;
390
+ d && (l = A(a.value, {
391
+ beforeEvent(p) {
392
+ return p.stopPropagation(), O(p.target) || (p.preventDefault(), q()), !1;
401
393
  }
402
394
  }));
403
- }), N(() => {
395
+ }), L(() => {
404
396
  l && l.destroy();
405
- }), (d, v) => (c(), E(L, {
397
+ }), (d, p) => (c(), B(X, {
406
398
  placement: "center",
407
399
  backdrop: !0,
408
400
  keepalive: !1,
409
401
  visible: s.value
410
402
  }, {
411
- default: B(() => [
412
- k("div", {
403
+ default: C(() => [
404
+ h("div", {
413
405
  class: "t-loading",
414
406
  ref_key: "container",
415
407
  ref: a
@@ -450,23 +442,23 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
450
442
  });
451
443
  }
452
444
  };
453
- }, Z = y(1e3), Ee = {
445
+ }, Z = y(1e3), Be = {
454
446
  getNewIndex() {
455
447
  return Z.value += 2, Z.value;
456
448
  }
457
- }, C = te([]), Be = (t) => {
458
- C.push(t);
459
- }, Ce = (t) => {
460
- t || C.pop();
449
+ }, E = te([]), Ce = (t) => {
450
+ E.push(t);
451
+ }, Ee = (t) => {
452
+ t || E.pop();
461
453
  }, $ = {
462
- screens: C,
463
- addScreen: Be,
464
- removeScreen: Ce,
465
- hasPrevious: S(() => C.length > 1),
466
- currentScreen: S(() => C[C.length - 1]),
467
- lastScreen: S(() => {
468
- if (!(C.length < 2))
469
- return C[C.length - 2];
454
+ screens: E,
455
+ addScreen: Ce,
456
+ removeScreen: Ee,
457
+ hasPrevious: I(() => E.length > 1),
458
+ currentScreen: I(() => E[E.length - 1]),
459
+ lastScreen: I(() => {
460
+ if (!(E.length < 2))
461
+ return E[E.length - 2];
470
462
  })
471
463
  }, Pe = /* @__PURE__ */ T({
472
464
  __name: "t-toast",
@@ -490,52 +482,52 @@ const _e = /* @__PURE__ */ g(fe, [["render", ve]]), ye = /* @__PURE__ */ T({
490
482
  i.value = !0, setTimeout(() => {
491
483
  l.value = !1, a.value = !1, s("dismiss");
492
484
  }, 300);
493
- }, v = S(() => {
494
- let _;
495
- return e.variant == "default" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? _ = {
485
+ }, p = I(() => {
486
+ let v;
487
+ return e.variant == "default" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? v = {
496
488
  "--border": "none",
497
489
  "--color": "var(--t-color-status-" + e.color + "-text)",
498
490
  "--background": "rgba(var(--t-color-status-" + e.color + "-rgb), 0.6)"
499
- } : _ = {
491
+ } : v = {
500
492
  "--border": "none",
501
493
  "--color": "var(--t-color-text)",
502
494
  "--background": e.color
503
- } : _ = {
495
+ } : v = {
504
496
  "--border": "none",
505
497
  "--color": "var(--t-color-text)",
506
498
  "--background": "rgba(var(--t-color-surface-rgb), 0.6)"
507
- }), e.variant == "text" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? _ = {
499
+ }), e.variant == "text" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? v = {
508
500
  "--border": "none",
509
501
  "--color": "var(--t-color-status-" + e.color + ")",
510
502
  "--background": "transparent"
511
- } : _ = {
503
+ } : v = {
512
504
  "--border": "none",
513
505
  "--color": e.color,
514
506
  "--background": "transparent"
515
- } : _ = {
507
+ } : v = {
516
508
  "--border": "none",
517
509
  "--color": "var(--t-color-text)",
518
510
  "--background": "transparent"
519
- }), e.variant == "outline" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? _ = {
511
+ }), e.variant == "outline" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? v = {
520
512
  "--border": "0.55px solid var(--t-color-status-" + e.color + ")",
521
513
  "--color": "var(--t-color-status-" + e.color + ")",
522
514
  "--background": "transparent"
523
- } : _ = {
515
+ } : v = {
524
516
  "--border": "0.55px solid " + e.color,
525
517
  "--color": e.color,
526
518
  "--background": "transparent"
527
- } : _ = {
519
+ } : v = {
528
520
  "--border": "0.55px solid var(--t-color-text)",
529
521
  "--color": "var(--t-color-text)",
530
522
  "--background": "transparent"
531
- }), _;
523
+ }), v;
532
524
  });
533
525
  return n({
534
526
  open: u
535
- }), (_, r) => l.value ? (c(), m("div", {
527
+ }), (v, r) => l.value ? (c(), _("div", {
536
528
  key: 0,
537
- class: I(["t-toast", { [e.placement]: !0, open: a.value, closing: i.value }]),
538
- style: w({ "--space": e.space, ...v.value })
529
+ class: x(["t-toast", { [e.placement]: !0, open: a.value, closing: i.value }]),
530
+ style: w({ "--space": e.space, ...p.value })
539
531
  }, P(e.message), 7)) : z("", !0);
540
532
  }
541
533
  }), se = /* @__PURE__ */ g(Pe, [["__scopeId", "data-v-98e8be37"]]), Ut = (t = {}) => ({
@@ -575,8 +567,8 @@ const Ve = /* @__PURE__ */ T({
575
567
  },
576
568
  setup(t) {
577
569
  const n = t, { height: o } = Re();
578
- return (e, s) => (c(), m("div", {
579
- class: I(["t-cable", { keyboard: n.keyboard && D(o) > 0, [n.placement]: !0 }]),
570
+ return (e, s) => (c(), _("div", {
571
+ class: x(["t-cable", { keyboard: n.keyboard && D(o) > 0, [n.placement]: !0 }]),
580
572
  style: w({ "--t-keyboard-height": D(o) + "px", "--t-keyboard-transition": D(o) > 0 ? "0.3s" : "0.1s" })
581
573
  }, [
582
574
  b(e.$slots, "default", {}, void 0, !0)
@@ -588,7 +580,7 @@ const Ve = /* @__PURE__ */ T({
588
580
  color: { default: null }
589
581
  },
590
582
  setup(t) {
591
- const n = t, o = S(() => {
583
+ const n = t, o = I(() => {
592
584
  let e;
593
585
  return n.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) ? e = {
594
586
  "--background": "var(--t-color-status-" + n.color + ")"
@@ -598,20 +590,20 @@ const Ve = /* @__PURE__ */ T({
598
590
  "--background": "var(--t-color-surface)"
599
591
  }, e;
600
592
  });
601
- return (e, s) => (c(), m("div", {
593
+ return (e, s) => (c(), _("div", {
602
594
  class: "t-card",
603
595
  style: w(o.value)
604
596
  }, [
605
597
  b(e.$slots, "default")
606
598
  ], 4));
607
599
  }
608
- }), Oe = {}, qe = { class: "t-content" };
609
- function Xe(t, n) {
610
- return c(), m("div", qe, [
600
+ }), Le = {}, Oe = { class: "t-content" };
601
+ function qe(t, n) {
602
+ return c(), _("div", Oe, [
611
603
  b(t.$slots, "default", {}, void 0, !0)
612
604
  ]);
613
605
  }
614
- const Le = /* @__PURE__ */ g(Oe, [["render", Xe], ["__scopeId", "data-v-9a833657"]]), ee = 80, We = /* @__PURE__ */ T({
606
+ const Xe = /* @__PURE__ */ g(Le, [["render", qe], ["__scopeId", "data-v-9a833657"]]), ee = 80, We = /* @__PURE__ */ T({
615
607
  __name: "t-refresher",
616
608
  emits: ["refresh"],
617
609
  setup(t, { emit: n }) {
@@ -626,33 +618,33 @@ const Le = /* @__PURE__ */ g(Oe, [["render", Xe], ["__scopeId", "data-v-9a833657
626
618
  };
627
619
  return R(() => a.value, () => {
628
620
  l && l.destroy();
629
- let v = a.value.closest(".t-content");
630
- v && (l = V(v, {
621
+ let p = a.value.closest(".t-content");
622
+ p && (l = A(p, {
631
623
  options: {
632
624
  minDist: 60
633
625
  },
634
- move({ dy: _, e: r }) {
635
- s.value || i || _ < 0 || (_ >= 120 ? d() : e.value = _);
626
+ move({ dy: v, e: r }) {
627
+ s.value || i || v < 0 || (v > 5 && p.scrollTop == 0 && (r.preventDefault(), p.classList.add("refresh-pulling")), v >= 120 ? d() : e.value = v);
636
628
  },
637
- up({ dy: _, e: r }) {
638
- s.value || i || (_ > ee ? d() : e.value = 0);
629
+ up({ dy: v, e: r }) {
630
+ p.classList.remove("refresh-pulling"), !(s.value || i) && (v > ee ? d() : e.value = 0);
639
631
  },
640
632
  cancel() {
641
- s.value = !1, e.value = 0;
633
+ p.classList.remove("refresh-pulling"), s.value = !1, e.value = 0;
642
634
  }
643
635
  }, {
644
636
  passive: !1
645
637
  }));
646
- }), N(() => {
638
+ }), L(() => {
647
639
  l && l.destroy();
648
- }), (v, _) => W((c(), m("div", {
640
+ }), (p, v) => W((c(), _("div", {
649
641
  class: "t-refresher",
650
642
  ref_key: "container",
651
643
  ref: a,
652
644
  style: w({ height: `${e.value}px` })
653
645
  }, [
654
- k("img", {
655
- class: I({ spiner: s.value }),
646
+ h("img", {
647
+ class: x({ spiner: s.value }),
656
648
  src: "https://static.toikit.com/toikit/home_2.png?v=3",
657
649
  alt: "Loading...",
658
650
  style: { width: "22px", height: "22px" }
@@ -661,9 +653,9 @@ const Le = /* @__PURE__ */ g(Oe, [["render", Xe], ["__scopeId", "data-v-9a833657
661
653
  [Y, e.value > 0]
662
654
  ]);
663
655
  }
664
- }), Ye = /* @__PURE__ */ g(We, [["__scopeId", "data-v-696c775e"]]), He = {}, Ue = { class: "t-screen" };
656
+ }), Ye = /* @__PURE__ */ g(We, [["__scopeId", "data-v-d68a6adf"]]), He = {}, Ue = { class: "t-screen" };
665
657
  function je(t, n) {
666
- return c(), m("div", Ue, [
658
+ return c(), _("div", Ue, [
667
659
  b(t.$slots, "default", {}, void 0, !0)
668
660
  ]);
669
661
  }
@@ -681,73 +673,73 @@ const re = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
681
673
  target: null,
682
674
  component: ce(o[r] || null)
683
675
  });
684
- }, d = (r, p) => {
685
- !p || $.screens[r].target || ($.screens[r].target = p.$el, r > 0 && (l.value = !0, p.$el.style.transform = "translateX(100vw)", p.$el.transitionOrigin = "center", document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
686
- p.$el.style.transition = "transform 0.35s ease", p.$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"), $.screens.length > 1 && ($.lastScreen.value.target.style.transitionOrigin = "left center", $.lastScreen.value.target.style.transition = "transform 0.35s ease", $.lastScreen.value.target.style.transform = "translateX(-30vw) scale(0.5) perspective(100vw) rotateY(30deg)"), setTimeout(() => {
676
+ }, d = (r, m) => {
677
+ !m || $.screens[r].target || ($.screens[r].target = m.$el, r > 0 && (l.value = !0, m.$el.style.transform = "translateX(100vw)", m.$el.transitionOrigin = "center", document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
678
+ m.$el.style.transition = "transform 0.35s ease", m.$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"), $.screens.length > 1 && ($.lastScreen.value.target.style.transitionOrigin = "left center", $.lastScreen.value.target.style.transition = "transform 0.35s ease", $.lastScreen.value.target.style.transform = "translateX(-30vw) scale(0.5) perspective(100vw) rotateY(30deg)"), setTimeout(() => {
687
679
  i("change"), l.value = !1;
688
680
  }, 400);
689
681
  }, 100)));
690
- }, v = () => {
682
+ }, p = () => {
691
683
  $.currentScreen.value.target.style.transition = "transform 0.35s ease", $.currentScreen.value.target.style.transform = "translateX(100vw) scale(1)", $.lastScreen.value.target.style.transition = "transform 0.35s ease", $.lastScreen.value.target.style.transform = "translateX(0px) scale(1) perspective(100vw) rotateY(0deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), l.value = !0, setTimeout(() => {
692
684
  $.removeScreen(), i("change"), l.value = !1;
693
685
  }, 400);
694
686
  };
695
- u(s.name), R(() => s.name, (r, p) => {
696
- r != $.currentScreen.value.name && ($.lastScreen.value?.name == r ? v() : u(r));
687
+ u(s.name), R(() => s.name, (r, m) => {
688
+ r != $.currentScreen.value.name && ($.lastScreen.value?.name == r ? p() : u(r));
697
689
  });
698
- const _ = () => {
690
+ const v = () => {
699
691
  l.value = !0;
700
- const r = $.currentScreen.value.target, p = $.lastScreen.value.target;
701
- r.style.transition = "transform 0.35s ease", r.style.transform = "translateX(0px)", p.style.transition = "transform 0.35s ease", p.style.transform = "translateX(-30vw) scale(0.5) perspective(100vw) rotateY(30deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
692
+ const r = $.currentScreen.value.target, m = $.lastScreen.value.target;
693
+ r.style.transition = "transform 0.35s ease", r.style.transform = "translateX(0px)", m.style.transition = "transform 0.35s ease", m.style.transform = "translateX(-30vw) scale(0.5) perspective(100vw) rotateY(30deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
702
694
  l.value = !1;
703
695
  }, 400);
704
696
  };
705
697
  return J(() => {
706
- V(document, {
698
+ A(document, {
707
699
  pointerId: null,
708
700
  beforeEvent(r) {
709
701
  return l.value || $.screens.length < 2 ? !1 : (r.type == "pointerdown" && !this.pointerId && (this.pointerId = r.pointerId), this.pointerId == r.pointerId);
710
702
  },
711
- afterEvent(r, p) {
712
- (r == "up" || r == "cancel") && (this.pointerId = null);
703
+ afterEvent(r) {
704
+ (r.type == "pointerup" || r.type == "pointercancel") && (this.pointerId = null);
713
705
  },
714
706
  fast({ d: r }) {
715
707
  r == "right" && e.back();
716
708
  },
717
709
  move({ dx: r }) {
718
- const p = window.innerWidth, h = r / p * 100, f = $.currentScreen.value.target, x = $.lastScreen?.value?.target;
719
- if (r > 0 && r <= p) {
720
- f.style.transition = "transform 0s ease", f.style.transform = `translateX(${r}px)`, x.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), x.style.transform = `translateX(calc(-30vw + (30vw / 100 * ${h}))) scale(${0.5 + 0.5 / 100 * h}) perspective(100vw) rotateY(${30 - 30 / 100 * h}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * h}`);
710
+ const m = window.innerWidth, k = r / m * 100, f = $.currentScreen.value.target, S = $.lastScreen?.value?.target;
711
+ if (r > 0 && r <= m) {
712
+ f.style.transition = "transform 0s ease", f.style.transform = `translateX(${r}px)`, S.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), S.style.transform = `translateX(calc(-30vw + (30vw / 100 * ${k}))) scale(${0.5 + 0.5 / 100 * k}) perspective(100vw) rotateY(${30 - 30 / 100 * k}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * k}`);
721
713
  return;
722
714
  }
723
715
  },
724
716
  up({ dx: r }) {
725
- const p = window.innerWidth;
726
- r / p * 100 >= 50 ? e.back() : _();
717
+ const m = window.innerWidth;
718
+ r / m * 100 >= 50 ? e.back() : v();
727
719
  },
728
720
  cancel() {
729
- _();
721
+ v();
730
722
  }
731
723
  });
732
- }), (r, p) => (c(), m(A, null, [
733
- (c(!0), m(A, null, H(D($).screens, (h, f) => (c(), E(re, {
724
+ }), (r, m) => (c(), _(V, null, [
725
+ (c(!0), _(V, null, H(D($).screens, (k, f) => (c(), B(re, {
734
726
  ref_for: !0,
735
- ref: (x) => d(f, x),
727
+ ref: (S) => d(f, S),
736
728
  style: w({ zIndex: f + (f == D($).screens.length - 1 ? 2 : 1) }),
737
729
  key: f
738
730
  }, {
739
- default: B(() => [
740
- (c(), E(le(h.component.default)))
731
+ default: C(() => [
732
+ (c(), B(le(k.component.default)))
741
733
  ]),
742
734
  _: 2
743
735
  }, 1032, ["style"]))), 128)),
744
- k("div", {
736
+ h("div", {
745
737
  class: "t-swipe-backdrop",
746
738
  style: w({ zIndex: D($).screens.length })
747
739
  }, null, 4)
748
740
  ], 64));
749
741
  }
750
- }), Ge = /* @__PURE__ */ g(Fe, [["__scopeId", "data-v-16f52a17"]]), Ke = /* @__PURE__ */ T({
742
+ }), Ge = /* @__PURE__ */ g(Fe, [["__scopeId", "data-v-a934ea26"]]), Ke = /* @__PURE__ */ T({
751
743
  __name: "t-toolbar",
752
744
  props: {
753
745
  placement: { default: "bottom" },
@@ -755,11 +747,11 @@ const re = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
755
747
  },
756
748
  setup(t) {
757
749
  const n = t;
758
- return (o, e) => (c(), m("div", {
759
- class: I(["t-toolbar", { [n.placement]: !0 }]),
750
+ return (o, e) => (c(), _("div", {
751
+ class: x(["t-toolbar", { [n.placement]: !0 }]),
760
752
  style: w({ "--t-size-toolbar": n.size })
761
753
  }, [
762
- k("div", null, [
754
+ h("div", null, [
763
755
  b(o.$slots, "default", {}, void 0, !0)
764
756
  ])
765
757
  ], 6));
@@ -773,13 +765,13 @@ const re = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
773
765
  const n = oe(), o = t, e = () => {
774
766
  $.hasPrevious.value ? n?.back?.() : o.to && n?.push?.(o.to);
775
767
  };
776
- return (s, a) => s.to || D($).hasPrevious ? (c(), m("button", {
768
+ return (s, a) => s.to || D($).hasPrevious ? (c(), _("button", {
777
769
  key: 0,
778
770
  class: "t-back-button",
779
771
  onClick: e
780
772
  }, [
781
773
  b(s.$slots, "default", {}, () => [
782
- a[0] || (a[0] = k("i", { class: "ri-arrow-left-s-line" }, null, -1))
774
+ a[0] || (a[0] = h("i", { class: "ri-arrow-left-s-line" }, null, -1))
783
775
  ], !0)
784
776
  ])) : z("", !0);
785
777
  }
@@ -790,14 +782,14 @@ const re = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
790
782
  size: { default: "standard" }
791
783
  },
792
784
  setup(t) {
793
- const n = t, o = S(() => {
785
+ const n = t, o = I(() => {
794
786
  let e, s = n.color;
795
787
  return n.size == "standard" ? e = "var(--t-fs-10)" : n.size == "small" ? e = "var(--t-fs-08)" : n.size == "large" ? e = "var(--t-fs-12)" : e = n.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) && (s = `var(--t-color-status-${n.color})`), {
796
788
  "--color": s,
797
789
  "--font-size": e
798
790
  };
799
791
  });
800
- return (e, s) => (c(), m("span", {
792
+ return (e, s) => (c(), _("span", {
801
793
  class: "t-text",
802
794
  style: w(o.value)
803
795
  }, [
@@ -810,8 +802,8 @@ const re = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
810
802
  placement: { default: "bottom" }
811
803
  },
812
804
  setup(t) {
813
- return (n, o) => (c(), m("div", {
814
- class: I(["t-pull-bar", { [n.placement]: !0 }])
805
+ return (n, o) => (c(), _("div", {
806
+ class: x(["t-pull-bar", { [n.placement]: !0 }])
815
807
  }, null, 2));
816
808
  }
817
809
  }), ae = /* @__PURE__ */ g(et, [["__scopeId", "data-v-daa38c85"]]), tt = /* @__PURE__ */ T({
@@ -832,92 +824,92 @@ const re = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
832
824
  setup(t, { emit: n }) {
833
825
  const o = t, e = n, s = y(), a = y(), l = y(!1);
834
826
  let i = null;
835
- const u = S(() => {
827
+ const u = I(() => {
836
828
  if (o.placement == "bottom") return "down";
837
829
  if (o.placement == "top") return "up";
838
830
  if (o.placement == "left") return "left";
839
831
  if (o.placement == "right") return "right";
840
- }), d = (_) => {
841
- e("dismiss", _);
842
- }, v = () => {
832
+ }), d = (v) => {
833
+ e("dismiss", v);
834
+ }, p = () => {
843
835
  l.value = !0, setTimeout(() => {
844
836
  l.value = !1;
845
837
  }, 300);
846
838
  };
847
- return R(() => s.value, (_) => {
848
- _ && (i = V(s.value, {
839
+ return R(() => s.value, (v) => {
840
+ v && (i = A(s.value, {
849
841
  options: {
850
842
  minDist: 30
851
843
  },
852
844
  pointerId: null,
853
845
  beforeEvent(r) {
854
- let p = !1, h = !1;
855
- return l.value || !o.gesture || o.placement == "center" ? p = !0 : this.pointerId ? (p = !0, h = this.pointerId == r.pointerId) : r.type == "pointerdown" && (this.pointerId = r.pointerId, p = !0, h = !0), p && (r.stopPropagation(), O(r.target) || (r.preventDefault(), q())), h;
846
+ let m = !1, k = !1;
847
+ return l.value || !o.gesture || o.placement == "center" ? m = !0 : this.pointerId ? (m = !0, k = this.pointerId == r.pointerId) : r.type == "pointerdown" && (this.pointerId = r.pointerId, m = !0, k = !0), m && (r.stopPropagation(), O(r.target) || (r.preventDefault(), q())), k;
856
848
  },
857
- afterEvent(r, p) {
858
- (r == "up" || r == "cancel") && (this.pointerId = null);
849
+ afterEvent(r) {
850
+ (r.type == "pointerup" || r.type == "pointercancel") && (this.pointerId = null);
859
851
  },
860
852
  fast({ d: r }) {
861
- v(), r == u.value ? e("dismiss", "gesture") : a.value.open();
853
+ p(), r == u.value ? e("dismiss", "gesture") : a.value.open();
862
854
  },
863
- move({ dy: r, dx: p, d: h }) {
864
- if (h != u.value) return;
855
+ move({ dy: r, dx: m, d: k }) {
856
+ if (k != u.value) return;
865
857
  let f = 0;
866
- o.placement == "bottom" || o.placement == "top" ? f = r : f = p, a.value.render({
858
+ o.placement == "bottom" || o.placement == "top" ? f = r : f = m, a.value.render({
867
859
  contentTransform: f + "px",
868
860
  transition: "0s"
869
861
  });
870
862
  },
871
- up({ dy: r, dx: p, d: h }) {
872
- if (v(), h != u.value) {
863
+ up({ dy: r, dx: m, d: k }) {
864
+ if (p(), k != u.value) {
873
865
  a.value.open();
874
866
  return;
875
867
  }
876
- let f, x, G;
877
- o.placement == "bottom" || o.placement == "top" ? (f = s.value.offsetHeight, G = r) : (f = s.value.offsetWidth, G = p), x = G / f * 100, x > 50 ? e("dismiss", "gesture") : a.value.open();
868
+ let f, S, G;
869
+ o.placement == "bottom" || o.placement == "top" ? (f = s.value.offsetHeight, G = r) : (f = s.value.offsetWidth, G = m), S = G / f * 100, S > 50 ? e("dismiss", "gesture") : a.value.open();
878
870
  },
879
871
  cancel() {
880
- v(), a.value.open();
872
+ p(), a.value.open();
881
873
  }
882
874
  }));
883
- }), N(() => {
875
+ }), L(() => {
884
876
  i && i.destroy();
885
- }), (_, r) => (c(), E(L, {
877
+ }), (v, r) => (c(), B(X, {
886
878
  ref_key: "present",
887
879
  ref: a,
888
880
  placement: o.placement,
889
- backdrop: _.backdrop,
881
+ backdrop: v.backdrop,
890
882
  visible: o.visible,
891
883
  keepalive: o.keepalive,
892
884
  onDismiss: d
893
885
  }, {
894
- default: B(() => [
895
- o.gesture && o.placement != "center" ? (c(), E(ae, {
886
+ default: C(() => [
887
+ o.gesture && o.placement != "center" ? (c(), B(ae, {
896
888
  key: 0,
897
889
  placement: o.placement
898
890
  }, null, 8, ["placement"])) : z("", !0),
899
- o.closeButton && o.placement == "center" ? (c(), m("button", {
891
+ o.closeButton && o.placement == "center" ? (c(), _("button", {
900
892
  key: 1,
901
893
  class: "t-sheet-close",
902
- onClick: r[0] || (r[0] = (p) => d("close-button"))
894
+ onClick: r[0] || (r[0] = (m) => d("close-button"))
903
895
  }, [
904
- b(_.$slots, "close-icon", {}, () => [
905
- r[1] || (r[1] = k("i", { class: "ri-close-large-line" }, null, -1))
896
+ b(v.$slots, "close-icon", {}, () => [
897
+ r[1] || (r[1] = h("i", { class: "ri-close-large-line" }, null, -1))
906
898
  ], !0)
907
899
  ])) : z("", !0),
908
- k("div", {
909
- class: I(["t-sheet", { fullscreen: o.fullscreen, [o.placement]: !0, rounded: _.rounded, radius: o.radius }]),
900
+ h("div", {
901
+ class: x(["t-sheet", { fullscreen: o.fullscreen, [o.placement]: !0, rounded: v.rounded, radius: o.radius }]),
910
902
  style: w({ "--background": o.background }),
911
903
  ref_key: "sheet",
912
904
  ref: s
913
905
  }, [
914
- b(_.$slots, "default", {}, void 0, !0)
906
+ b(v.$slots, "default", {}, void 0, !0)
915
907
  ], 6)
916
908
  ]),
917
909
  _: 3
918
910
  }, 8, ["placement", "backdrop", "visible", "keepalive"]));
919
911
  }
920
- }), ot = /* @__PURE__ */ g(tt, [["__scopeId", "data-v-170e2041"]]), nt = { class: "t-input-label" }, st = { class: "t-input-content" }, rt = ["type", "placeholder", "value"], at = /* @__PURE__ */ T({
912
+ }), ot = /* @__PURE__ */ g(tt, [["__scopeId", "data-v-14b7fc93"]]), nt = { class: "t-input-label" }, st = { class: "t-input-content" }, rt = ["type", "placeholder", "value"], at = /* @__PURE__ */ T({
921
913
  __name: "t-input",
922
914
  props: {
923
915
  size: { default: "standard" },
@@ -935,14 +927,14 @@ const re = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
935
927
  const o = t, e = n, s = (a) => {
936
928
  e("update:modelValue", a.target.value);
937
929
  };
938
- return (a, l) => (c(), m("div", {
939
- class: I(["t-input", { rounded: o.rounded, ["size-" + o.size]: !0, ["variant-" + o.variant]: !0 }])
930
+ return (a, l) => (c(), _("div", {
931
+ class: x(["t-input", { rounded: o.rounded, ["size-" + o.size]: !0, ["variant-" + o.variant]: !0 }])
940
932
  }, [
941
- k("label", null, [
942
- k("span", nt, P(a.label), 1),
943
- k("div", st, [
933
+ h("label", null, [
934
+ h("span", nt, P(a.label), 1),
935
+ h("div", st, [
944
936
  b(a.$slots, "start", {}, void 0, !0),
945
- k("input", {
937
+ h("input", {
946
938
  type: a.type,
947
939
  placeholder: a.placeholder,
948
940
  value: a.modelValue,
@@ -951,20 +943,20 @@ const re = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
951
943
  b(a.$slots, "end", {}, void 0, !0)
952
944
  ])
953
945
  ]),
954
- o.error ? (c(), E(K, {
946
+ o.error ? (c(), B(K, {
955
947
  key: 0,
956
948
  color: "danger"
957
949
  }, {
958
- default: B(() => [
959
- X(P(o.error), 1)
950
+ default: C(() => [
951
+ N(P(o.error), 1)
960
952
  ]),
961
953
  _: 1
962
- })) : o.help ? (c(), E(K, {
954
+ })) : o.help ? (c(), B(K, {
963
955
  key: 1,
964
956
  color: "secondary"
965
957
  }, {
966
- default: B(() => [
967
- X(P(o.help), 1)
958
+ default: C(() => [
959
+ N(P(o.help), 1)
968
960
  ]),
969
961
  _: 1
970
962
  })) : z("", !0)
@@ -972,19 +964,19 @@ const re = /* @__PURE__ */ g(He, [["render", je], ["__scopeId", "data-v-66ea8649
972
964
  }
973
965
  }), lt = /* @__PURE__ */ g(at, [["__scopeId", "data-v-1a9425cf"]]), ct = {};
974
966
  function it(t, n) {
975
- return c(), m("textarea");
967
+ return c(), _("textarea");
976
968
  }
977
969
  const ut = /* @__PURE__ */ g(ct, [["render", it]]), dt = {};
978
970
  function pt(t, n) {
979
- return c(), m("div");
971
+ return c(), _("div");
980
972
  }
981
973
  const ft = /* @__PURE__ */ g(dt, [["render", pt]]), mt = {}, vt = { class: "t-grid" };
982
974
  function _t(t, n) {
983
- return c(), m("div", vt);
975
+ return c(), _("div", vt);
984
976
  }
985
977
  const yt = /* @__PURE__ */ g(mt, [["render", _t]]), gt = {}, bt = { class: "t-grid-item" };
986
978
  function ht(t, n) {
987
- return c(), m("div", bt);
979
+ return c(), _("div", bt);
988
980
  }
989
981
  const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
990
982
  __name: "t-divider",
@@ -993,8 +985,8 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
993
985
  },
994
986
  setup(t) {
995
987
  const n = t;
996
- return (o, e) => (c(), m("div", {
997
- class: I(["t-divider", { [n.direction]: !0 }])
988
+ return (o, e) => (c(), _("div", {
989
+ class: x(["t-divider", { [n.direction]: !0 }])
998
990
  }, null, 2));
999
991
  }
1000
992
  }), Tt = /* @__PURE__ */ g($t, [["__scopeId", "data-v-47ee8991"]]), wt = /* @__PURE__ */ T({
@@ -1004,7 +996,7 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1004
996
  },
1005
997
  emits: ["change"],
1006
998
  setup(t, { emit: n }) {
1007
- const o = t, e = n, s = y(!1), a = y(), l = S(() => {
999
+ const o = t, e = n, s = y(!1), a = y(), l = I(() => {
1008
1000
  let d = o.color;
1009
1001
  return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (d = `var(--t-color-status-${o.color})`), {
1010
1002
  "--color": d
@@ -1018,7 +1010,7 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1018
1010
  let d = i();
1019
1011
  d && (s.value = !s.value, s.value ? d.type = "text" : d.type = "password", e("change", s.value));
1020
1012
  };
1021
- return (d, v) => (c(), m("button", {
1013
+ return (d, p) => (c(), _("button", {
1022
1014
  ref_key: "toggle",
1023
1015
  ref: a,
1024
1016
  class: "t-toggle-password",
@@ -1026,10 +1018,10 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1026
1018
  onClick: u
1027
1019
  }, [
1028
1020
  s.value ? b(d.$slots, "on", { key: 0 }, () => [
1029
- v[0] || (v[0] = k("i", { class: "ri-eye-line" }, null, -1))
1021
+ p[0] || (p[0] = h("i", { class: "ri-eye-line" }, null, -1))
1030
1022
  ], !0) : z("", !0),
1031
1023
  s.value ? z("", !0) : b(d.$slots, "off", { key: 1 }, () => [
1032
- v[1] || (v[1] = k("i", { class: "ri-eye-off-line" }, null, -1))
1024
+ p[1] || (p[1] = h("i", { class: "ri-eye-off-line" }, null, -1))
1033
1025
  ], !0)
1034
1026
  ], 4));
1035
1027
  }
@@ -1040,21 +1032,21 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1040
1032
  size: { default: "standard" }
1041
1033
  },
1042
1034
  setup(t) {
1043
- const n = t, o = S(() => n.size == "small" ? "24px" : n.size == "standard" ? "40px" : n.size == "large" ? "60px" : n.size);
1044
- return (e, s) => (c(), m("div", {
1045
- class: I(["t-avatar", { square: e.square }]),
1035
+ const n = t, o = I(() => n.size == "small" ? "24px" : n.size == "standard" ? "40px" : n.size == "large" ? "60px" : n.size);
1036
+ return (e, s) => (c(), _("div", {
1037
+ class: x(["t-avatar", { square: e.square }]),
1046
1038
  style: w({ "--size": o.value })
1047
1039
  }, [
1048
1040
  b(e.$slots, "default", {}, void 0, !0)
1049
1041
  ], 6));
1050
1042
  }
1051
- }), St = /* @__PURE__ */ g(It, [["__scopeId", "data-v-24384c2f"]]), zt = { class: "t-collapse-title" }, Et = {
1043
+ }), St = /* @__PURE__ */ g(It, [["__scopeId", "data-v-24384c2f"]]), zt = { class: "t-collapse-title" }, Bt = {
1052
1044
  key: 0,
1053
1045
  class: "icon"
1054
- }, Bt = {
1046
+ }, Ct = {
1055
1047
  key: 1,
1056
1048
  class: "icon"
1057
- }, Ct = { class: "t-collapse-content" }, Pt = /* @__PURE__ */ T({
1049
+ }, Et = { class: "t-collapse-content" }, Pt = /* @__PURE__ */ T({
1058
1050
  __name: "t-collapse",
1059
1051
  props: {
1060
1052
  title: {}
@@ -1064,30 +1056,30 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1064
1056
  const o = t, e = n, s = y(!1), a = y(""), l = y(), i = () => {
1065
1057
  s.value = !s.value, a.value = `calc(${l.value.offsetHeight}px + 2rem)`, e("change", s.value);
1066
1058
  };
1067
- return e("change", s.value), (u, d) => (c(), m("div", {
1068
- class: I(["t-collapse", { open: s.value }]),
1059
+ return e("change", s.value), (u, d) => (c(), _("div", {
1060
+ class: x(["t-collapse", { open: s.value }]),
1069
1061
  style: w({ "--height": a.value })
1070
1062
  }, [
1071
- k("div", {
1063
+ h("div", {
1072
1064
  class: "t-collapse-header",
1073
1065
  onClick: i
1074
1066
  }, [
1075
1067
  b(u.$slots, "icon"),
1076
- k("div", zt, [
1068
+ h("div", zt, [
1077
1069
  b(u.$slots, "title", {}, () => [
1078
- X(P(o.title), 1)
1070
+ N(P(o.title), 1)
1079
1071
  ])
1080
1072
  ]),
1081
1073
  b(u.$slots, "toggle", {}, () => [
1082
- s.value ? (c(), m("div", Et, [...d[0] || (d[0] = [
1083
- k("i", { class: "ri-arrow-up-s-line" }, null, -1)
1084
- ])])) : (c(), m("div", Bt, [...d[1] || (d[1] = [
1085
- k("i", { class: "ri-arrow-down-s-line" }, null, -1)
1074
+ s.value ? (c(), _("div", Bt, [...d[0] || (d[0] = [
1075
+ h("i", { class: "ri-arrow-up-s-line" }, null, -1)
1076
+ ])])) : (c(), _("div", Ct, [...d[1] || (d[1] = [
1077
+ h("i", { class: "ri-arrow-down-s-line" }, null, -1)
1086
1078
  ])]))
1087
1079
  ])
1088
1080
  ]),
1089
- k("div", Ct, [
1090
- k("div", {
1081
+ h("div", Et, [
1082
+ h("div", {
1091
1083
  ref_key: "content",
1092
1084
  ref: l
1093
1085
  }, [
@@ -1108,7 +1100,7 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1108
1100
  setup(t, { emit: n }) {
1109
1101
  const o = t, e = n, s = () => {
1110
1102
  e("update:modelValue", !o.modelValue);
1111
- }, a = S(() => {
1103
+ }, a = I(() => {
1112
1104
  let l = {
1113
1105
  "--background": o.color,
1114
1106
  "--color": "#ffffff"
@@ -1118,12 +1110,12 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1118
1110
  "--color": `var(--t-color-status-${o.color}-text)`
1119
1111
  }), l;
1120
1112
  });
1121
- return (l, i) => (c(), m("div", {
1122
- class: I(["t-switch", { on: o.modelValue }]),
1113
+ return (l, i) => (c(), _("div", {
1114
+ class: x(["t-switch", { on: o.modelValue }]),
1123
1115
  style: w(a.value),
1124
1116
  onClick: s
1125
1117
  }, [...i[0] || (i[0] = [
1126
- k("div", { class: "t-switch-icon" }, null, -1)
1118
+ h("div", { class: "t-switch-icon" }, null, -1)
1127
1119
  ])], 6));
1128
1120
  }
1129
1121
  }), Rt = /* @__PURE__ */ g(Dt, [["__scopeId", "data-v-3616970e"]]), Vt = /* @__PURE__ */ T({
@@ -1132,18 +1124,18 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1132
1124
  value: {}
1133
1125
  },
1134
1126
  setup(t) {
1135
- const n = t, o = ie("tabsState"), e = S(() => o.active.value === n.value), s = () => {
1127
+ const n = t, o = ie("tabsState"), e = I(() => o.active.value === n.value), s = () => {
1136
1128
  o.setActive(n.value);
1137
1129
  };
1138
- return (a, l) => (c(), m("li", {
1139
- class: I(["t-tab", { active: e.value }])
1130
+ return (a, l) => (c(), _("li", {
1131
+ class: x(["t-tab", { active: e.value }])
1140
1132
  }, [
1141
1133
  M(F, {
1142
1134
  variant: "text",
1143
1135
  onClick: s,
1144
1136
  color: e.value && D(o).variant == "text" ? D(o).color : void 0
1145
1137
  }, {
1146
- default: B(() => [
1138
+ default: C(() => [
1147
1139
  b(a.$slots, "default", {}, void 0, !0)
1148
1140
  ]),
1149
1141
  _: 3
@@ -1161,7 +1153,7 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1161
1153
  },
1162
1154
  emits: ["update:modelValue"],
1163
1155
  setup(t, { emit: n }) {
1164
- const o = t, e = n, s = y("0px"), a = y(), l = S(() => {
1156
+ const o = t, e = n, s = y("0px"), a = y(), l = I(() => {
1165
1157
  let u = o.color;
1166
1158
  return ["warning", "info", "danger", "primary", "secondary", "success"].includes(u) && (u = `var(--t-color-status-${u})`), u;
1167
1159
  }), i = () => {
@@ -1169,20 +1161,20 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1169
1161
  if (o.placement.startsWith("top-") || o.placement.startsWith("bottom-")) {
1170
1162
  let u = a.value.querySelector(".active");
1171
1163
  if (u) {
1172
- let d = u.getBoundingClientRect().left - a.value.getBoundingClientRect().left, v = u.offsetWidth / 2;
1173
- s.value = d + v - o.border / 2 + "px";
1164
+ let d = u.getBoundingClientRect().left - a.value.getBoundingClientRect().left, p = u.offsetWidth / 2;
1165
+ s.value = d + p - o.border / 2 + "px";
1174
1166
  }
1175
1167
  } else if (o.placement.startsWith("left-") || o.placement.startsWith("right-")) {
1176
1168
  let u = a.value.querySelector(".active");
1177
1169
  if (u) {
1178
- let d = u.getBoundingClientRect().top - a.value.getBoundingClientRect().top, v = u.offsetHeight / 2;
1179
- s.value = d + v - o.border / 2 + "px";
1170
+ let d = u.getBoundingClientRect().top - a.value.getBoundingClientRect().top, p = u.offsetHeight / 2;
1171
+ s.value = d + p - o.border / 2 + "px";
1180
1172
  }
1181
1173
  }
1182
1174
  }, 50);
1183
1175
  };
1184
1176
  return ue("tabsState", {
1185
- active: S(() => o.modelValue),
1177
+ active: I(() => o.modelValue),
1186
1178
  color: l.value,
1187
1179
  variant: o.variant,
1188
1180
  setActive: (u) => {
@@ -1190,18 +1182,18 @@ const kt = /* @__PURE__ */ g(gt, [["render", ht]]), $t = /* @__PURE__ */ T({
1190
1182
  }
1191
1183
  }), J(() => {
1192
1184
  i();
1193
- }), (u, d) => (c(), m("ul", {
1185
+ }), (u, d) => (c(), _("ul", {
1194
1186
  ref_key: "container",
1195
1187
  ref: a,
1196
- class: I(["t-tabs", { [u.placement]: !0, [u.variant]: !0 }]),
1188
+ class: x(["t-tabs", { [u.placement]: !0, [u.variant]: !0 }]),
1197
1189
  style: w({ "--color": l.value, "--transform": s.value, "--border": u.border + "px" })
1198
1190
  }, [
1199
1191
  b(u.$slots, "default", {}, void 0, !0)
1200
1192
  ], 6));
1201
1193
  }
1202
- }), Ot = /* @__PURE__ */ g(Nt, [["__scopeId", "data-v-2f040d31"]]), jt = () => ({
1194
+ }), Lt = /* @__PURE__ */ g(Nt, [["__scopeId", "data-v-2f040d31"]]), jt = () => ({
1203
1195
  install: (t) => {
1204
- pe(), t.component("t-app", _e), t.component("t-screen", re), t.component("t-swipe-screen", Ge), t.component("t-cable", Ae), t.component("t-toolbar", Me), t.component("t-content", Le), t.component("t-card", Ne), t.component("t-refresher", Ye), t.component("t-button", F), t.component("t-back-button", Qe), t.component("t-present", L), t.component("t-text", K), t.component("t-sheet", ot), t.component("t-pull-signal", ae), t.component("t-input", lt), t.component("t-textarea", ut), t.component("t-rich-text", ft), t.component("t-grid", yt), t.component("t-grid-item", kt), t.component("t-divider", Tt), t.component("t-toggle-password", xt), t.component("t-loading-icon", Q), t.component("t-alert", ne), t.component("t-avatar", St), t.component("t-collapse", Pt), t.component("t-toast", se), t.component("t-switch", Rt), t.component("t-tab", At), t.component("t-tabs", Ot);
1196
+ pe(), t.component("t-app", _e), t.component("t-screen", re), t.component("t-swipe-screen", Ge), t.component("t-cable", Ae), t.component("t-toolbar", Me), t.component("t-content", Xe), t.component("t-card", Ne), t.component("t-refresher", Ye), t.component("t-button", F), t.component("t-back-button", Qe), t.component("t-present", X), t.component("t-text", K), t.component("t-sheet", ot), t.component("t-pull-signal", ae), t.component("t-input", lt), t.component("t-textarea", ut), t.component("t-rich-text", ft), t.component("t-grid", yt), t.component("t-grid-item", kt), t.component("t-divider", Tt), t.component("t-toggle-password", xt), t.component("t-loading-icon", Q), t.component("t-alert", ne), t.component("t-avatar", St), t.component("t-collapse", Pt), t.component("t-toast", se), t.component("t-switch", Rt), t.component("t-tab", At), t.component("t-tabs", Lt);
1205
1197
  }
1206
1198
  });
1207
1199
  export {
@@ -1212,7 +1204,7 @@ export {
1212
1204
  Ut as createToast,
1213
1205
  jt as createToife,
1214
1206
  O as isFormElement,
1215
- Ee as presentController,
1207
+ Be as presentController,
1216
1208
  $ as screenController,
1217
1209
  Re as useKeyboard
1218
1210
  };