@toife/vue 2.0.24 → 2.0.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,12 +1,12 @@
1
- import { createElementBlock as p, openBlock as i, renderSlot as g, defineComponent as b, ref as m, computed as x, reactive as ue, watch as N, onMounted as j, Fragment as q, withDirectives as F, createCommentVNode as z, normalizeStyle as T, normalizeClass as B, vShow as K, createElementVNode as $, createVNode as G, createBlock as V, withCtx as P, toDisplayString as A, renderList as U, createTextVNode as M, createApp as J, h as Q, provide as de, unref as O, onUnmounted as re, resolveDynamicComponent as ke, markRaw as $e, inject as pe, useAttrs as we, nextTick as ce } from "vue";
1
+ import { createElementBlock as f, openBlock as i, renderSlot as g, defineComponent as b, ref as v, computed as w, reactive as ue, watch as N, onMounted as j, Fragment as q, withDirectives as F, createCommentVNode as z, normalizeStyle as x, normalizeClass as B, vShow as K, createElementVNode as $, createVNode as G, createBlock as V, withCtx as P, toDisplayString as A, renderList as U, createTextVNode as M, createApp as J, h as Q, provide as de, unref as O, onUnmounted as re, resolveDynamicComponent as ke, markRaw as $e, inject as pe, useAttrs as Te, nextTick as ce } from "vue";
2
2
  import { gesture as ae } from "@toife/gesture";
3
- import { useRouter as fe, useRoute as xe } from "vue-router";
4
- const Te = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), Se = () => {
3
+ import { useRouter as fe, useRoute as we } from "vue-router";
4
+ const xe = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), Se = () => {
5
5
  const t = document.activeElement;
6
6
  t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) && t.blur();
7
7
  }, Be = () => {
8
8
  document.addEventListener("contextmenu", (t) => t.preventDefault()), document.addEventListener("pointerup", (t) => {
9
- !Te(t.target) && Se();
9
+ !xe(t.target) && Se();
10
10
  }), "virtualKeyboard" in navigator && (navigator.virtualKeyboard.overlaysContent = !0);
11
11
  }, _ = (t, o) => {
12
12
  const e = t.__vccOpts || t;
@@ -15,7 +15,7 @@ const Te = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isC
15
15
  return e;
16
16
  }, Ce = {}, Ie = { class: "t-app" };
17
17
  function ze(t, o) {
18
- return i(), p("div", Ie, [
18
+ return i(), f("div", Ie, [
19
19
  g(t.$slots, "default")
20
20
  ]);
21
21
  }
@@ -33,79 +33,79 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
33
33
  },
34
34
  emits: ["dismiss"],
35
35
  setup(t, { expose: o, emit: e }) {
36
- const s = m(0), n = m(!1), l = m(), u = m(), r = t, v = e, y = x(() => n.value || r.keepalive), d = m(!1), a = ue({
36
+ const s = v(0), n = v(!1), l = v(), u = v(), r = t, d = e, y = w(() => n.value || r.keepalive), p = v(!1), a = ue({
37
37
  "--t-present-backdrop-opacity": "0.4",
38
38
  "--t-present-transition": "0.2s",
39
39
  "--t-present-content-transform": "0px",
40
40
  "--t-present-content-opacity": "1"
41
- }), c = x(() => r.duration / 1e3 + "s"), f = (w) => {
42
- r.backdrop ? w?.backdropOpacity && (a["--t-present-backdrop-opacity"] = w.backdropOpacity) : a["--t-present-backdrop-opacity"] = "0", w.transition && (a["--t-present-transition"] = w.transition), w.contentTransform && (a["--t-present-content-transform"] = w.contentTransform), w.contentOpacity && (a["--t-present-content-opacity"] = w.contentOpacity);
41
+ }), c = w(() => r.duration / 1e3 + "s"), m = (T) => {
42
+ r.backdrop ? T?.backdropOpacity && (a["--t-present-backdrop-opacity"] = T.backdropOpacity) : a["--t-present-backdrop-opacity"] = "0", T.transition && (a["--t-present-transition"] = T.transition), T.contentTransform && (a["--t-present-content-transform"] = T.contentTransform), T.contentOpacity && (a["--t-present-content-opacity"] = T.contentOpacity);
43
43
  }, k = () => {
44
- if (r.bounce !== void 0 && !d.value) {
45
- d.value = !0;
46
- let w = r.bounce;
47
- (r.placement == "bottom" || r.placement == "right") && (w = `calc(${r.bounce} * -1)`), f({
48
- contentTransform: w,
44
+ if (r.bounce !== void 0 && !p.value) {
45
+ p.value = !0;
46
+ let T = r.bounce;
47
+ (r.placement == "bottom" || r.placement == "right") && (T = `calc(${r.bounce} * -1)`), m({
48
+ contentTransform: T,
49
49
  transition: c.value,
50
50
  backdropOpacity: "0.4",
51
51
  contentOpacity: "1"
52
52
  }), setTimeout(() => {
53
- f({
53
+ m({
54
54
  contentTransform: "0px"
55
55
  });
56
56
  }, r.duration);
57
57
  } else
58
- f({
58
+ m({
59
59
  contentTransform: "0px",
60
60
  transition: c.value,
61
61
  backdropOpacity: "0.4",
62
62
  contentOpacity: "1"
63
63
  });
64
64
  }, h = () => {
65
- let w = "0px", se = "1";
66
- r.placement == "bottom" || r.placement == "right" ? w = "100%" : r.placement == "top" || r.placement == "left" ? w = "-100%" : r.placement == "center" && (w = "0px", se = "0"), f({
67
- contentTransform: w,
65
+ let T = "0px", se = "1";
66
+ r.placement == "bottom" || r.placement == "right" ? T = "100%" : r.placement == "top" || r.placement == "left" ? T = "-100%" : r.placement == "center" && (T = "0px", se = "0"), m({
67
+ contentTransform: T,
68
68
  transition: c.value,
69
69
  contentOpacity: se,
70
70
  backdropOpacity: "0"
71
71
  });
72
72
  };
73
73
  N(() => r.visible, () => {
74
- r.visible ? (d.value = !1, n.value = !0, s.value = Ke.getNewIndex(), setTimeout(() => {
74
+ r.visible ? (p.value = !1, n.value = !0, s.value = Ke.getNewIndex(), setTimeout(() => {
75
75
  k();
76
76
  }, 50)) : (h(), setTimeout(() => {
77
77
  n.value = !1;
78
78
  }, 200));
79
79
  }), o({
80
- render: f,
80
+ render: m,
81
81
  open: k,
82
82
  close: h
83
83
  });
84
- const W = (w) => {
85
- w.preventDefault(), v("dismiss", "backdrop");
84
+ const W = (T) => {
85
+ T.preventDefault(), d("dismiss", "backdrop");
86
86
  };
87
87
  return j(() => {
88
88
  r.visible ? k() : h();
89
- }), (w, se) => (i(), p(q, null, [
90
- y.value ? F((i(), p("div", {
89
+ }), (T, se) => (i(), f(q, null, [
90
+ y.value ? F((i(), f("div", {
91
91
  key: 0,
92
- class: B(["t-present", [{ [w.placement]: !0 }, r.class]]),
92
+ class: B(["t-present", [{ [T.placement]: !0 }, r.class]]),
93
93
  ref_key: "present",
94
94
  ref: u,
95
- style: T([a, { zIndex: s.value }, r.style])
95
+ style: x([a, { zIndex: s.value }, r.style])
96
96
  }, [
97
- g(w.$slots, "default", {}, void 0, !0)
97
+ g(T.$slots, "default", {}, void 0, !0)
98
98
  ], 6)), [
99
99
  [K, n.value]
100
100
  ]) : z("", !0),
101
- y.value ? F((i(), p("div", {
101
+ y.value ? F((i(), f("div", {
102
102
  key: 1,
103
103
  class: "t-present-backdrop",
104
104
  onClick: W,
105
105
  onTouchend: W,
106
106
  ref_key: "backdrop",
107
107
  ref: l,
108
- style: T([a, { zIndex: s.value - 1 }, r.style])
108
+ style: x([a, { zIndex: s.value - 1 }, r.style])
109
109
  }, null, 36)), [
110
110
  [K, n.value]
111
111
  ]) : z("", !0)
@@ -124,9 +124,9 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
124
124
  }
125
125
  },
126
126
  setup(t) {
127
- return (o, e) => (i(), p("span", {
127
+ return (o, e) => (i(), f("span", {
128
128
  class: "t-loading-icon",
129
- style: T({
129
+ style: x({
130
130
  width: t.size,
131
131
  height: t.size,
132
132
  borderTopColor: t.color
@@ -151,7 +151,7 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
151
151
  activeBackground: { type: Boolean, default: !1 }
152
152
  },
153
153
  setup(t) {
154
- const o = t, e = x(() => {
154
+ const o = t, e = w(() => {
155
155
  let s;
156
156
  return o.variant == "default" && (o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? s = {
157
157
  "--border": "none",
@@ -191,16 +191,16 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
191
191
  "--background": "transparent"
192
192
  }), s;
193
193
  });
194
- return (s, n) => (i(), p("button", {
194
+ return (s, n) => (i(), f("button", {
195
195
  class: B(["t-button", { "active-background": o.activeBackground, rounded: o.rounded, block: o.block, ["size-" + o.size]: !0 }]),
196
- style: T(e.value)
196
+ style: x(e.value)
197
197
  }, [
198
198
  F($("span", Re, [
199
199
  g(s.$slots, "default", {}, void 0, !0)
200
200
  ], 512), [
201
201
  [K, !o.loading]
202
202
  ]),
203
- o.loading ? (i(), p("span", Ae, [
203
+ o.loading ? (i(), f("span", Ae, [
204
204
  G(Z, {
205
205
  color: "var(--color)",
206
206
  type: o.loadingType
@@ -221,23 +221,23 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
221
221
  },
222
222
  emits: ["dismiss"],
223
223
  setup(t, { expose: o, emit: e }) {
224
- const s = t, n = e, l = m(!1), u = m(), r = m(!1), v = () => {
224
+ const s = t, n = e, l = v(!1), u = v(), r = v(!1), d = () => {
225
225
  l.value = !0;
226
226
  }, y = (a) => {
227
227
  l.value = !1, a.handler && a.handler(), n("dismiss", "choose", a?.data);
228
- }, d = (a) => {
228
+ }, p = (a) => {
229
229
  s.dismiss && s.dismiss.includes(a) ? (l.value = !1, n("dismiss", a)) : a == "backdrop" && (r.value = !0, setTimeout(() => {
230
230
  r.value = !1;
231
231
  }, 300));
232
232
  };
233
233
  return o({
234
- open: v
234
+ open: d
235
235
  }), (a, c) => (i(), V(H, {
236
236
  placement: "center",
237
237
  backdrop: !0,
238
238
  keepalive: !1,
239
239
  visible: l.value,
240
- onDismiss: d
240
+ onDismiss: p
241
241
  }, {
242
242
  default: P(() => [
243
243
  $("div", {
@@ -246,20 +246,20 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
246
246
  ref: u
247
247
  }, [
248
248
  g(a.$slots, "header", {}, () => [
249
- s.title ? (i(), p("div", Xe, A(s.title), 1)) : z("", !0)
249
+ s.title ? (i(), f("div", Xe, A(s.title), 1)) : z("", !0)
250
250
  ], !0),
251
251
  g(a.$slots, "content", {}, () => [
252
252
  $("div", De, A(s.message), 1)
253
253
  ], !0),
254
254
  g(a.$slots, "footer", {}, () => [
255
255
  $("div", We, [
256
- (i(!0), p(q, null, U(s.actions, (f) => (i(), V(Y, {
257
- color: f.color,
258
- variant: f.variant,
259
- onClick: (k) => y(f)
256
+ (i(!0), f(q, null, U(s.actions, (m) => (i(), V(Y, {
257
+ color: m.color,
258
+ variant: m.variant,
259
+ onClick: (k) => y(m)
260
260
  }, {
261
261
  default: P(() => [
262
- M(A(f.text), 1)
262
+ M(A(m.text), 1)
263
263
  ]),
264
264
  _: 2
265
265
  }, 1032, ["color", "variant", "onClick"]))), 256))
@@ -275,7 +275,7 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
275
275
  return new Promise((o) => {
276
276
  let e = document.body.querySelector(".t-app");
277
277
  if (!e) return;
278
- const s = document.createElement("div"), n = m();
278
+ const s = document.createElement("div"), n = v();
279
279
  e.appendChild(s);
280
280
  const l = J({
281
281
  render() {
@@ -304,26 +304,26 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
304
304
  },
305
305
  emits: ["dismiss"],
306
306
  setup(t, { expose: o, emit: e }) {
307
- const s = t, n = e, l = m(!1), u = m(), r = m(!1), v = () => {
307
+ const s = t, n = e, l = v(!1), u = v(), r = v(!1), d = () => {
308
308
  l.value = !0;
309
309
  }, y = (a) => {
310
310
  l.value = !1, a.handler && a.handler(), n("dismiss", "choose", a?.data);
311
- }, d = (a) => {
311
+ }, p = (a) => {
312
312
  s.dismiss && s.dismiss.includes(a) ? (l.value = !1, n("dismiss", a)) : a == "backdrop" && (r.value = !0, setTimeout(() => {
313
313
  r.value = !1;
314
314
  }, 300));
315
315
  };
316
316
  return N(() => s.visible, (a) => {
317
- a ? v() : close();
317
+ a ? d() : close();
318
318
  }), o({
319
- open: v,
319
+ open: d,
320
320
  close
321
321
  }), (a, c) => (i(), V(H, {
322
322
  placement: "bottom",
323
323
  backdrop: !0,
324
324
  keepalive: !1,
325
325
  visible: l.value,
326
- onDismiss: d
326
+ onDismiss: p
327
327
  }, {
328
328
  default: P(() => [
329
329
  $("div", {
@@ -331,8 +331,8 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
331
331
  ref_key: "container",
332
332
  ref: u
333
333
  }, [
334
- (i(!0), p(q, null, U(s.actions, (f) => (i(), p("div", null, [
335
- (i(!0), p(q, null, U(f, (k) => (i(), V(Y, {
334
+ (i(!0), f(q, null, U(s.actions, (m) => (i(), f("div", null, [
335
+ (i(!0), f(q, null, U(m, (k) => (i(), V(Y, {
336
336
  color: k.color,
337
337
  size: k.size,
338
338
  variant: k.variant,
@@ -355,7 +355,7 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
355
355
  return new Promise((o) => {
356
356
  let e = document.body.querySelector(".t-app");
357
357
  if (!e) return;
358
- const s = document.createElement("div"), n = m();
358
+ const s = document.createElement("div"), n = v();
359
359
  e.appendChild(s);
360
360
  const l = J({
361
361
  render() {
@@ -382,7 +382,7 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
382
382
  },
383
383
  emits: ["dismiss"],
384
384
  setup(t, { expose: o, emit: e }) {
385
- const s = t, n = m(!1);
385
+ const s = t, n = v(!1);
386
386
  return o({
387
387
  open: () => {
388
388
  n.value = !0;
@@ -390,7 +390,7 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
390
390
  close: () => {
391
391
  n.value = !1;
392
392
  }
393
- }), (r, v) => (i(), V(H, {
393
+ }), (r, d) => (i(), V(H, {
394
394
  placement: "center",
395
395
  backdrop: !0,
396
396
  keepalive: !1,
@@ -409,7 +409,7 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
409
409
  }, 8, ["visible"]));
410
410
  }
411
411
  }), Fe = /* @__PURE__ */ _(He, [["__scopeId", "data-v-8f84c14e"]]), ko = (t = {}) => {
412
- const o = m(), e = document.body.querySelector(".t-app");
412
+ const o = v(), e = document.body.querySelector(".t-app");
413
413
  let s = null, n = null;
414
414
  return {
415
415
  open() {
@@ -434,11 +434,11 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
434
434
  });
435
435
  }
436
436
  };
437
- }, ie = m(1e3), Ke = {
437
+ }, ie = v(1e3), Ke = {
438
438
  getNewIndex() {
439
439
  return ie.value += 2, ie.value;
440
440
  }
441
- }, X = ue([]), ee = m(!0), I = m(!1), R = m(-1), C = x(() => X[R.value]), L = x(() => X[R.value + 1] || void 0), E = x(() => X[X.length - 2]), ve = x(() => !I.value && ee.value && E.value), D = (t = !0) => {
441
+ }, X = ue([]), ee = v(!0), I = v(!1), R = v(-1), C = w(() => X[R.value]), L = w(() => X[R.value + 1] || void 0), E = w(() => X[X.length - 2]), ve = w(() => !I.value && ee.value && E.value), D = (t = !0) => {
442
442
  let e = C.value.target.closest(".t-app").offsetWidth;
443
443
  return t ? e + "px" : e;
444
444
  }, te = {
@@ -558,7 +558,7 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
558
558
  },
559
559
  emits: ["dismiss"],
560
560
  setup(t, { expose: o, emit: e }) {
561
- const s = t, n = e, l = m(!1), u = m(!1), r = m(!1), v = () => {
561
+ const s = t, n = e, l = v(!1), u = v(!1), r = v(!1), d = () => {
562
562
  u.value = !0, r.value = !1, setTimeout(() => {
563
563
  l.value = !0;
564
564
  }, 10);
@@ -568,9 +568,9 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
568
568
  }, 300);
569
569
  };
570
570
  N(() => s.visible, (a) => {
571
- a ? v() : y();
571
+ a ? d() : y();
572
572
  });
573
- const d = x(() => {
573
+ const p = w(() => {
574
574
  let a;
575
575
  return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? a = {
576
576
  "--border": "none",
@@ -611,12 +611,12 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
611
611
  }), a;
612
612
  });
613
613
  return o({
614
- open: v,
614
+ open: d,
615
615
  close: y
616
- }), (a, c) => u.value ? (i(), p("div", {
616
+ }), (a, c) => u.value ? (i(), f("div", {
617
617
  key: 0,
618
618
  class: B(["t-toast", { [s.placement]: !0, open: l.value, closing: r.value }]),
619
- style: T({ "--space": s.space, ...d.value })
619
+ style: x({ "--space": s.space, ...p.value })
620
620
  }, [
621
621
  g(a.$slots, "content", {}, () => [
622
622
  $("div", ot, A(s.message), 1)
@@ -627,7 +627,7 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
627
627
  open() {
628
628
  let o = document.body.querySelector(".t-app");
629
629
  if (!o) return;
630
- const e = document.createElement("div"), s = m();
630
+ const e = document.createElement("div"), s = v();
631
631
  o.appendChild(e);
632
632
  const n = J({
633
633
  render() {
@@ -648,7 +648,7 @@ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
648
648
  }, t.duration + 10);
649
649
  }, 50);
650
650
  }
651
- }), nt = m(0);
651
+ }), nt = v(0);
652
652
  function _e() {
653
653
  return {
654
654
  height: nt
@@ -664,9 +664,9 @@ const rt = /* @__PURE__ */ b({
664
664
  const o = t, { height: e } = _e();
665
665
  return de("cableState", {
666
666
  placement: o.placement
667
- }), (s, n) => (i(), p("div", {
667
+ }), (s, n) => (i(), f("div", {
668
668
  class: B(["t-cable", { keyboard: o.keyboard && O(e) > 0, [o.placement]: !0 }]),
669
- style: T({ "--t-keyboard-height": O(e) + "px", "--t-keyboard-transition": O(e) > 0 ? "0.3s" : "0.1s" })
669
+ style: x({ "--t-keyboard-height": O(e) + "px", "--t-keyboard-transition": O(e) > 0 ? "0.3s" : "0.1s" })
670
670
  }, [
671
671
  g(s.$slots, "default", {}, void 0, !0)
672
672
  ], 6));
@@ -677,7 +677,7 @@ const rt = /* @__PURE__ */ b({
677
677
  color: { default: null }
678
678
  },
679
679
  setup(t) {
680
- const o = t, e = x(() => {
680
+ const o = t, e = w(() => {
681
681
  let s;
682
682
  return o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? s = {
683
683
  "--background": "var(--t-color-status-" + o.color + ")"
@@ -687,16 +687,16 @@ const rt = /* @__PURE__ */ b({
687
687
  "--background": "var(--t-color-surface)"
688
688
  }, s;
689
689
  });
690
- return (s, n) => (i(), p("div", {
690
+ return (s, n) => (i(), f("div", {
691
691
  class: "t-card",
692
- style: T(e.value)
692
+ style: x(e.value)
693
693
  }, [
694
694
  g(s.$slots, "default")
695
695
  ], 4));
696
696
  }
697
697
  }), ct = {}, it = { class: "t-content" };
698
698
  function ut(t, o) {
699
- return i(), p("div", it, [
699
+ return i(), f("div", it, [
700
700
  g(t.$slots, "default", {}, void 0, !0)
701
701
  ]);
702
702
  }
@@ -709,14 +709,14 @@ const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0
709
709
  },
710
710
  emits: ["refresh", "move", "cancel", "start"],
711
711
  setup(t, { emit: o }) {
712
- const e = o, s = t, n = m(0), l = m(!1), u = m();
713
- let r, v = !1;
712
+ const e = o, s = t, n = v(0), l = v(!1), u = v();
713
+ let r, d = !1;
714
714
  const y = () => {
715
- l.value = !1, n.value = 0, v = !1;
716
- }, d = () => {
717
- v = !0, l.value = !0, n.value = s.threshold, e("refresh", y);
715
+ l.value = !1, n.value = 0, d = !1;
716
+ }, p = () => {
717
+ d = !0, l.value = !0, n.value = s.threshold, e("refresh", y);
718
718
  }, a = () => {
719
- n.value = 0, l.value = !1, v = !1, e("cancel");
719
+ n.value = 0, l.value = !1, d = !1, e("cancel");
720
720
  };
721
721
  return N(() => u.value, () => {
722
722
  r && r.destroy();
@@ -729,29 +729,29 @@ const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0
729
729
  return !(c.scrollTop > 0);
730
730
  },
731
731
  down() {
732
- l.value || v || e("start");
732
+ l.value || d || e("start");
733
733
  },
734
- move({ deltaY: f, initialDirection: k }) {
735
- if (l.value || v || k != "down") return;
736
- if (s.variant == "max" && f >= s.threshold) {
737
- d();
734
+ move({ deltaY: m, initialDirection: k }) {
735
+ if (l.value || d || k != "down") return;
736
+ if (s.variant == "max" && m >= s.threshold) {
737
+ p();
738
738
  return;
739
739
  }
740
- const h = f < 0 ? 0 : f;
740
+ const h = m < 0 ? 0 : m;
741
741
  n.value = h, e("move", h);
742
742
  },
743
- up({ deltaY: f, initialDirection: k }) {
744
- l.value || v || k != "down" || (s.variant == "up" && f >= s.threshold ? d() : a());
743
+ up({ deltaY: m, initialDirection: k }) {
744
+ l.value || d || k != "down" || (s.variant == "up" && m >= s.threshold ? p() : a());
745
745
  },
746
746
  cancel() {
747
- l.value || v || a();
747
+ l.value || d || a();
748
748
  }
749
749
  }, {
750
750
  passive: !1
751
751
  }));
752
752
  }), re(() => {
753
753
  r && r.destroy();
754
- }), (c, f) => F((i(), p("div", {
754
+ }), (c, m) => F((i(), f("div", {
755
755
  class: B(["t-refresher", { safe: c.safe }]),
756
756
  ref_key: "container",
757
757
  ref: u
@@ -766,7 +766,7 @@ const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0
766
766
  }
767
767
  }), pt = /* @__PURE__ */ _(dt, [["__scopeId", "data-v-c77146a5"]]), ft = {}, mt = { class: "t-screen" };
768
768
  function vt(t, o) {
769
- return i(), p("div", mt, [
769
+ return i(), f("div", mt, [
770
770
  g(t.$slots, "default", {}, void 0, !0)
771
771
  ]);
772
772
  }
@@ -782,37 +782,37 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
782
782
  let e = {};
783
783
  const s = o, n = t;
784
784
  let l;
785
- const u = n.router || fe(), r = n.route || xe(), v = u.getRoutes(), y = m();
786
- for (let c of v)
785
+ const u = n.router || fe(), r = n.route || we(), d = u.getRoutes(), y = v();
786
+ for (let c of d)
787
787
  e[c.name] = c.component || c.components;
788
- const d = (c) => {
788
+ const p = (c) => {
789
789
  c && S.addScreen({
790
790
  name: c,
791
791
  target: null,
792
792
  component: $e(e[c] || null)
793
793
  });
794
- }, a = (c, f) => {
795
- !f || S.screens[c].target || (S.addScreenEl(c, f.$el), S.nextScreen && S.next(n.variant, () => {
794
+ }, a = (c, m) => {
795
+ !m || S.screens[c].target || (S.addScreenEl(c, m.$el), S.nextScreen && S.next(n.variant, () => {
796
796
  s("change");
797
797
  }));
798
798
  };
799
- return N(() => r.name, (c, f) => {
799
+ return N(() => r.name, (c, m) => {
800
800
  c != S.currentScreen.value?.name && (S.lastScreen.value?.name == c ? S.back(n.variant, () => {
801
801
  s("change");
802
- }) : d(r.name));
802
+ }) : p(r.name));
803
803
  }), j(() => {
804
- d(r.name), l = ae(document.body, {
804
+ p(r.name), l = ae(document.body, {
805
805
  beforeEvent(c) {
806
806
  return !!S.isSwipeable.value;
807
807
  },
808
808
  fast({ initialDirection: c }) {
809
809
  S.lastScreen.value && c == "right" && u.back();
810
810
  },
811
- move({ deltaX: c, initialDirection: f }) {
812
- f == "right" && S.move(n.variant, c);
811
+ move({ deltaX: c, initialDirection: m }) {
812
+ m == "right" && S.move(n.variant, c);
813
813
  },
814
- up({ deltaX: c, initialDirection: f }) {
815
- if (f != "right") {
814
+ up({ deltaX: c, initialDirection: m }) {
815
+ if (m != "right") {
816
816
  S.reset(n.variant);
817
817
  return;
818
818
  }
@@ -825,11 +825,11 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
825
825
  });
826
826
  }), re(() => {
827
827
  l && l.destroy(), S.removeAllScreen();
828
- }), (c, f) => (i(), p(q, null, [
829
- (i(!0), p(q, null, U(O(S).screens, (k, h) => (i(), V(be, {
828
+ }), (c, m) => (i(), f(q, null, [
829
+ (i(!0), f(q, null, U(O(S).screens, (k, h) => (i(), V(be, {
830
830
  ref_for: !0,
831
831
  ref: (W) => a(h, W),
832
- style: T({ zIndex: h + (h == O(S).screens.length - 1 ? 2 : 1) }),
832
+ style: x({ zIndex: h + (h == O(S).screens.length - 1 ? 2 : 1) }),
833
833
  key: h
834
834
  }, {
835
835
  default: P(() => [
@@ -841,7 +841,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
841
841
  class: "t-swipe-backdrop",
842
842
  ref_key: "backdrop",
843
843
  ref: y,
844
- style: T({ zIndex: O(S).screens.length })
844
+ style: x({ zIndex: O(S).screens.length })
845
845
  }, null, 4)
846
846
  ], 64));
847
847
  }
@@ -853,10 +853,10 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
853
853
  size: { default: "50px" }
854
854
  },
855
855
  setup(t) {
856
- const o = t, e = pe("cableState"), s = x(() => o?.placement || e?.placement);
857
- return (n, l) => (i(), p("div", {
856
+ const o = t, e = pe("cableState"), s = w(() => o?.placement || e?.placement);
857
+ return (n, l) => (i(), f("div", {
858
858
  class: B(["t-toolbar", { [s.value]: !0, safe: o.safe }]),
859
- style: T({ "--t-size-toolbar": o.size })
859
+ style: x({ "--t-size-toolbar": o.size })
860
860
  }, [
861
861
  $("div", null, [
862
862
  g(n.$slots, "default", {}, void 0, !0)
@@ -870,14 +870,14 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
870
870
  router: {}
871
871
  },
872
872
  setup(t) {
873
- const o = t, e = we(), s = o.router || fe(), n = (l) => {
873
+ const o = t, e = Te(), s = o.router || fe(), n = (l) => {
874
874
  if (e.onBack) {
875
875
  e.onBack(l);
876
876
  return;
877
877
  }
878
878
  S.lastScreen.value ? s?.back?.() : o.to && s?.push?.(o.to);
879
879
  };
880
- return (l, u) => l.to || O(S).lastScreen ? (i(), p("button", {
880
+ return (l, u) => l.to || O(S).lastScreen ? (i(), f("button", {
881
881
  key: 0,
882
882
  class: "t-back-button",
883
883
  onClick: n
@@ -894,31 +894,31 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
894
894
  size: { default: "standard" }
895
895
  },
896
896
  setup(t) {
897
- const o = t, e = x(() => {
897
+ const o = t, e = w(() => {
898
898
  let s, n = o.color;
899
899
  return o.size == "standard" ? s = "var(--t-fs-10)" : o.size == "small" ? s = "var(--t-fs-08)" : o.size == "large" ? s = "var(--t-fs-12)" : s = o.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (n = `var(--t-color-status-${o.color})`), {
900
900
  "--color": n,
901
901
  "--font-size": s
902
902
  };
903
903
  });
904
- return (s, n) => (i(), p("span", {
904
+ return (s, n) => (i(), f("span", {
905
905
  class: "t-text",
906
- style: T(e.value)
906
+ style: x(e.value)
907
907
  }, [
908
908
  g(s.$slots, "default", {}, void 0, !0)
909
909
  ], 4));
910
910
  }
911
- }), ne = /* @__PURE__ */ _($t, [["__scopeId", "data-v-f0f94f05"]]), wt = /* @__PURE__ */ b({
911
+ }), ne = /* @__PURE__ */ _($t, [["__scopeId", "data-v-f0f94f05"]]), Tt = /* @__PURE__ */ b({
912
912
  __name: "t-gesture-indicator",
913
913
  props: {
914
914
  placement: { default: "bottom" }
915
915
  },
916
916
  setup(t) {
917
- return (o, e) => (i(), p("div", {
917
+ return (o, e) => (i(), f("div", {
918
918
  class: B(["t-gesture-indicator", { [o.placement]: !0 }])
919
919
  }, null, 2));
920
920
  }
921
- }), he = /* @__PURE__ */ _(wt, [["__scopeId", "data-v-ed8f7308"]]), xt = /* @__PURE__ */ b({
921
+ }), he = /* @__PURE__ */ _(Tt, [["__scopeId", "data-v-ed8f7308"]]), wt = /* @__PURE__ */ b({
922
922
  __name: "t-sheet",
923
923
  props: {
924
924
  background: { default: "var(--t-color-surface)" },
@@ -929,7 +929,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
929
929
  placement: { default: "bottom" },
930
930
  keepalive: { type: Boolean, default: !0 },
931
931
  backdrop: { type: Boolean, default: !0 },
932
- rounded: { type: Boolean, default: !0 },
932
+ rounded: { type: Boolean, default: !1 },
933
933
  indicator: { type: Boolean, default: !0 },
934
934
  duration: { default: 200 },
935
935
  bounce: {},
@@ -937,16 +937,16 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
937
937
  },
938
938
  emits: ["dismiss"],
939
939
  setup(t, { emit: o }) {
940
- const e = t, s = o, n = m(), l = m(), u = m(!1);
940
+ const e = t, s = o, n = v(), l = v(), u = v(!1);
941
941
  let r = null;
942
- const v = x(() => {
942
+ const d = w(() => {
943
943
  if (e.placement == "bottom") return "down";
944
944
  if (e.placement == "top") return "up";
945
945
  if (e.placement == "left") return "left";
946
946
  if (e.placement == "right") return "right";
947
947
  }), y = (a) => {
948
948
  s("dismiss", a);
949
- }, d = () => {
949
+ }, p = () => {
950
950
  u.value = !0, setTimeout(() => {
951
951
  u.value = !1;
952
952
  }, 300);
@@ -964,26 +964,26 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
964
964
  this.isMoving = !1;
965
965
  },
966
966
  fast({ initialDirection: c }) {
967
- d(), c == v.value ? s("dismiss", "gesture") : l.value.open();
967
+ p(), c == d.value ? s("dismiss", "gesture") : l.value.open();
968
968
  },
969
- move({ deltaY: c, deltaX: f, initialDirection: k }) {
970
- if (k != v.value) return;
969
+ move({ deltaY: c, deltaX: m, initialDirection: k }) {
970
+ if (k != d.value) return;
971
971
  let h = 0;
972
- e.placement == "bottom" || e.placement == "top" ? h = c : h = f, e.placement == "bottom" && (h = c > 0 ? c : 0), e.placement == "top" && (h = c < 0 ? c : 0), e.placement == "left" && (h = f < 0 ? f : 0), e.placement == "right" && (h = f > 0 ? f : 0), (e.placement == "bottom" && (h >= 10 || this.isMoving) || e.placement == "top" && (h <= -10 || this.isMoving) || e.placement == "left" && (h <= -10 || this.isMoving) || e.placement == "right" && (h >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
972
+ e.placement == "bottom" || e.placement == "top" ? h = c : h = m, e.placement == "bottom" && (h = c > 0 ? c : 0), e.placement == "top" && (h = c < 0 ? c : 0), e.placement == "left" && (h = m < 0 ? m : 0), e.placement == "right" && (h = m > 0 ? m : 0), (e.placement == "bottom" && (h >= 10 || this.isMoving) || e.placement == "top" && (h <= -10 || this.isMoving) || e.placement == "left" && (h <= -10 || this.isMoving) || e.placement == "right" && (h >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
973
973
  contentTransform: h + "px",
974
974
  transition: "0s"
975
975
  }));
976
976
  },
977
- up({ deltaY: c, deltaX: f, initialDirection: k }) {
978
- if (this.isMoving = !1, d(), k != v.value) {
977
+ up({ deltaY: c, deltaX: m, initialDirection: k }) {
978
+ if (this.isMoving = !1, p(), k != d.value) {
979
979
  l.value.open();
980
980
  return;
981
981
  }
982
- let h, W, w;
983
- e.placement == "bottom" || e.placement == "top" ? (h = n.value.offsetHeight, w = c) : (h = n.value.offsetWidth, w = f), W = w / h * 100, W > 50 ? s("dismiss", "gesture") : l.value.open();
982
+ let h, W, T;
983
+ e.placement == "bottom" || e.placement == "top" ? (h = n.value.offsetHeight, T = c) : (h = n.value.offsetWidth, T = m), W = T / h * 100, W > 50 ? s("dismiss", "gesture") : l.value.open();
984
984
  },
985
985
  cancel() {
986
- this.isMoving = !1, d(), l.value.open();
986
+ this.isMoving = !1, p(), l.value.open();
987
987
  }
988
988
  }));
989
989
  }), re(() => {
@@ -999,7 +999,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
999
999
  visible: e.visible,
1000
1000
  keepalive: e.keepalive,
1001
1001
  onDismiss: y,
1002
- style: T(e.style)
1002
+ style: x(e.style)
1003
1003
  }, {
1004
1004
  default: P(() => [
1005
1005
  e.gesture && e.indicator && e.placement != "center" ? (i(), V(he, {
@@ -1008,7 +1008,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1008
1008
  }, null, 8, ["placement"])) : z("", !0),
1009
1009
  $("div", {
1010
1010
  class: B(["t-sheet", { fullscreen: e.fullscreen, [e.placement]: !0, rounded: a.rounded }]),
1011
- style: T({ "--background": e.background }),
1011
+ style: x({ "--background": e.background }),
1012
1012
  ref_key: "sheet",
1013
1013
  ref: n
1014
1014
  }, [
@@ -1018,7 +1018,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1018
1018
  _: 3
1019
1019
  }, 8, ["duration", "bounce", "class", "placement", "backdrop", "visible", "keepalive", "style"]));
1020
1020
  }
1021
- }), Tt = /* @__PURE__ */ _(xt, [["__scopeId", "data-v-7592e0e6"]]), St = { class: "t-input-label" }, Bt = { class: "t-input-content" }, Ct = ["placeholder", "value", "type", "readonly"], It = /* @__PURE__ */ b({
1021
+ }), xt = /* @__PURE__ */ _(wt, [["__scopeId", "data-v-dcfbb6a3"]]), St = { class: "t-input-label" }, Bt = { class: "t-input-content" }, Ct = ["placeholder", "value", "type", "readonly"], It = /* @__PURE__ */ b({
1022
1022
  __name: "t-input",
1023
1023
  props: {
1024
1024
  size: { default: "standard" },
@@ -1034,58 +1034,58 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1034
1034
  },
1035
1035
  emits: ["update:modelValue"],
1036
1036
  setup(t, { emit: o }) {
1037
- const e = t, s = o, n = m(!1), l = m(null), u = x(
1037
+ const e = t, s = o, n = v(!1), l = v(null), u = w(
1038
1038
  () => !(e.modelValue === "" || e.modelValue == null)
1039
- ), r = (d) => {
1040
- s("update:modelValue", d.target.value);
1041
- }, v = async (d) => {
1039
+ ), r = (p) => {
1040
+ s("update:modelValue", p.target.value);
1041
+ }, d = async (p) => {
1042
1042
  n.value = !0;
1043
1043
  }, y = () => {
1044
1044
  n.value = !1;
1045
1045
  };
1046
- return (d, a) => (i(), p("div", {
1046
+ return (p, a) => (i(), f("div", {
1047
1047
  class: B(["t-input", {
1048
- rounded: d.rounded,
1049
- ["size-" + d.size]: !0,
1050
- ["variant-" + d.variant]: !0,
1048
+ rounded: p.rounded,
1049
+ ["size-" + p.size]: !0,
1050
+ ["variant-" + p.variant]: !0,
1051
1051
  focus: n.value,
1052
1052
  "has-value": u.value,
1053
- readonly: d.readonly
1053
+ readonly: p.readonly
1054
1054
  }])
1055
1055
  }, [
1056
1056
  $("label", null, [
1057
- $("span", St, A(d.label), 1),
1057
+ $("span", St, A(p.label), 1),
1058
1058
  $("div", Bt, [
1059
- g(d.$slots, "start", {}, void 0, !0),
1059
+ g(p.$slots, "start", {}, void 0, !0),
1060
1060
  $("input", {
1061
1061
  ref_key: "editable",
1062
1062
  ref: l,
1063
1063
  class: "t-input-editable",
1064
- placeholder: d.placeholder,
1065
- value: d.modelValue,
1066
- type: d.type,
1064
+ placeholder: p.placeholder,
1065
+ value: p.modelValue,
1066
+ type: p.type,
1067
1067
  onInput: r,
1068
- onFocus: v,
1068
+ onFocus: d,
1069
1069
  onBlur: y,
1070
- readonly: d.readonly
1070
+ readonly: p.readonly
1071
1071
  }, null, 40, Ct),
1072
- g(d.$slots, "end", {}, void 0, !0)
1072
+ g(p.$slots, "end", {}, void 0, !0)
1073
1073
  ])
1074
1074
  ]),
1075
- d.error ? (i(), V(ne, {
1075
+ p.error ? (i(), V(ne, {
1076
1076
  key: 0,
1077
1077
  color: "danger"
1078
1078
  }, {
1079
1079
  default: P(() => [
1080
- M(A(d.error), 1)
1080
+ M(A(p.error), 1)
1081
1081
  ]),
1082
1082
  _: 1
1083
- })) : d.help ? (i(), V(ne, {
1083
+ })) : p.help ? (i(), V(ne, {
1084
1084
  key: 1,
1085
1085
  color: "secondary"
1086
1086
  }, {
1087
1087
  default: P(() => [
1088
- M(A(d.help), 1)
1088
+ M(A(p.help), 1)
1089
1089
  ]),
1090
1090
  _: 1
1091
1091
  })) : z("", !0)
@@ -1093,11 +1093,11 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1093
1093
  }
1094
1094
  }), zt = /* @__PURE__ */ _(It, [["__scopeId", "data-v-11ddaa71"]]), Et = {};
1095
1095
  function Vt(t, o) {
1096
- return i(), p("textarea");
1096
+ return i(), f("textarea");
1097
1097
  }
1098
1098
  const Pt = /* @__PURE__ */ _(Et, [["render", Vt]]), Rt = {};
1099
1099
  function At(t, o) {
1100
- return i(), p("div");
1100
+ return i(), f("div");
1101
1101
  }
1102
1102
  const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt = /* @__PURE__ */ b({
1103
1103
  __name: "t-grid",
@@ -1106,7 +1106,7 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1106
1106
  template: { default: 1 }
1107
1107
  },
1108
1108
  setup(t) {
1109
- return (o, e) => (i(), p("div", Xt));
1109
+ return (o, e) => (i(), f("div", Xt));
1110
1110
  }
1111
1111
  }), Wt = /* @__PURE__ */ _(Dt, [["__scopeId", "data-v-93ba455c"]]), Nt = /* @__PURE__ */ b({
1112
1112
  __name: "t-divider",
@@ -1115,7 +1115,7 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1115
1115
  },
1116
1116
  setup(t) {
1117
1117
  const o = t;
1118
- return (e, s) => (i(), p("div", {
1118
+ return (e, s) => (i(), f("div", {
1119
1119
  class: B(["t-divider", { [o.direction]: !0 }])
1120
1120
  }, null, 2));
1121
1121
  }
@@ -1126,7 +1126,7 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1126
1126
  },
1127
1127
  emits: ["change"],
1128
1128
  setup(t, { emit: o }) {
1129
- const e = t, s = o, n = m(!1), l = m(), u = x(() => {
1129
+ const e = t, s = o, n = v(!1), l = v(), u = w(() => {
1130
1130
  let y = e.color;
1131
1131
  return ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) && (y = `var(--t-color-status-${e.color})`), {
1132
1132
  "--color": y
@@ -1136,22 +1136,22 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1136
1136
  let y = r();
1137
1137
  y && (n.value = y.type != "password", s("change", n.value));
1138
1138
  });
1139
- const v = () => {
1139
+ const d = () => {
1140
1140
  let y = r();
1141
1141
  y && (n.value = !n.value, n.value ? y.type = "text" : y.type = "password", s("change", n.value));
1142
1142
  };
1143
- return (y, d) => (i(), p("button", {
1143
+ return (y, p) => (i(), f("button", {
1144
1144
  ref_key: "toggle",
1145
1145
  ref: l,
1146
1146
  class: "t-toggle-password",
1147
- style: T(u.value),
1148
- onClick: v
1147
+ style: x(u.value),
1148
+ onClick: d
1149
1149
  }, [
1150
1150
  n.value ? g(y.$slots, "on", { key: 0 }, () => [
1151
- d[0] || (d[0] = $("i", { class: "ri-eye-line" }, null, -1))
1151
+ p[0] || (p[0] = $("i", { class: "ri-eye-line" }, null, -1))
1152
1152
  ], !0) : z("", !0),
1153
1153
  n.value ? z("", !0) : g(y.$slots, "off", { key: 1 }, () => [
1154
- d[1] || (d[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
1154
+ p[1] || (p[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
1155
1155
  ], !0)
1156
1156
  ], 4));
1157
1157
  }
@@ -1162,10 +1162,10 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1162
1162
  size: { default: "standard" }
1163
1163
  },
1164
1164
  setup(t) {
1165
- const o = t, e = x(() => o.size == "small" ? "24px" : o.size == "standard" ? "40px" : o.size == "large" ? "60px" : o.size);
1166
- return (s, n) => (i(), p("div", {
1165
+ const o = t, e = w(() => o.size == "small" ? "24px" : o.size == "standard" ? "40px" : o.size == "large" ? "60px" : o.size);
1166
+ return (s, n) => (i(), f("div", {
1167
1167
  class: B(["t-avatar", { square: s.square }]),
1168
- style: T({ "--size": e.value })
1168
+ style: x({ "--size": e.value })
1169
1169
  }, [
1170
1170
  g(s.$slots, "default", {}, void 0, !0)
1171
1171
  ], 6));
@@ -1183,27 +1183,27 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1183
1183
  },
1184
1184
  emits: ["change"],
1185
1185
  setup(t, { emit: o }) {
1186
- const e = t, s = o, n = m(!1), l = m(""), u = m(), r = () => {
1186
+ const e = t, s = o, n = v(!1), l = v(""), u = v(), r = () => {
1187
1187
  n.value = !n.value, l.value = `calc(${u.value.offsetHeight}px + 2rem)`, s("change", n.value);
1188
1188
  };
1189
- return s("change", n.value), (v, y) => (i(), p("div", {
1189
+ return s("change", n.value), (d, y) => (i(), f("div", {
1190
1190
  class: B(["t-collapse", { open: n.value }]),
1191
- style: T({ "--height": l.value })
1191
+ style: x({ "--height": l.value })
1192
1192
  }, [
1193
1193
  $("div", {
1194
1194
  class: "t-collapse-header",
1195
1195
  onClick: r
1196
1196
  }, [
1197
- g(v.$slots, "icon"),
1197
+ g(d.$slots, "icon"),
1198
1198
  $("div", Kt, [
1199
- g(v.$slots, "title", {}, () => [
1199
+ g(d.$slots, "title", {}, () => [
1200
1200
  M(A(e.title), 1)
1201
1201
  ])
1202
1202
  ]),
1203
- g(v.$slots, "toggle", {}, () => [
1204
- n.value ? (i(), p("div", Ut, [...y[0] || (y[0] = [
1203
+ g(d.$slots, "toggle", {}, () => [
1204
+ n.value ? (i(), f("div", Ut, [...y[0] || (y[0] = [
1205
1205
  $("i", { class: "ri-arrow-up-s-line" }, null, -1)
1206
- ])])) : (i(), p("div", jt, [...y[1] || (y[1] = [
1206
+ ])])) : (i(), f("div", jt, [...y[1] || (y[1] = [
1207
1207
  $("i", { class: "ri-arrow-down-s-line" }, null, -1)
1208
1208
  ])]))
1209
1209
  ])
@@ -1213,8 +1213,8 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1213
1213
  ref_key: "content",
1214
1214
  ref: u
1215
1215
  }, [
1216
- g(v.$slots, "content", {}, () => [
1217
- g(v.$slots, "default")
1216
+ g(d.$slots, "content", {}, () => [
1217
+ g(d.$slots, "default")
1218
1218
  ])
1219
1219
  ], 512)
1220
1220
  ])
@@ -1230,7 +1230,7 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1230
1230
  setup(t, { emit: o }) {
1231
1231
  const e = t, s = o, n = () => {
1232
1232
  s("update:modelValue", !e.modelValue);
1233
- }, l = x(() => {
1233
+ }, l = w(() => {
1234
1234
  let u = {
1235
1235
  "--background": e.color,
1236
1236
  "--color": "#ffffff"
@@ -1240,9 +1240,9 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1240
1240
  "--color": `var(--t-color-status-${e.color}-text)`
1241
1241
  }), u;
1242
1242
  });
1243
- return (u, r) => (i(), p("div", {
1243
+ return (u, r) => (i(), f("div", {
1244
1244
  class: B(["t-switch", { on: e.modelValue }]),
1245
- style: T(l.value),
1245
+ style: x(l.value),
1246
1246
  onClick: n
1247
1247
  }, [...r[0] || (r[0] = [
1248
1248
  $("div", { class: "t-switch-icon" }, null, -1)
@@ -1255,10 +1255,10 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1255
1255
  disabled: { type: Boolean, default: !1 }
1256
1256
  },
1257
1257
  setup(t) {
1258
- const o = t, e = pe("tabsState"), s = x(() => e.activeValue.value === o.value), n = () => {
1258
+ const o = t, e = pe("tabsState"), s = w(() => e.activeValue.value === o.value), n = () => {
1259
1259
  o.disabled || e.setValue(o.value);
1260
1260
  };
1261
- return (l, u) => (i(), p("li", {
1261
+ return (l, u) => (i(), f("li", {
1262
1262
  class: B(["t-tab", { active: s.value }])
1263
1263
  }, [
1264
1264
  G(Y, {
@@ -1288,10 +1288,10 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1288
1288
  },
1289
1289
  emits: ["update:modelValue"],
1290
1290
  setup(t, { emit: o }) {
1291
- const e = t, s = o, n = m("0px"), l = m(0), u = m(0), r = m(), v = x(() => {
1291
+ const e = t, s = o, n = v("0px"), l = v(0), u = v(0), r = v(), d = w(() => {
1292
1292
  let a = "", c = "";
1293
1293
  return e.variant == "text" && (a = "transparent", ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? c = `var(--t-color-status-${e.color})` : c = e.color), e.variant == "border-under" && (c = "currentColor", ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? a = `var(--t-color-status-${e.color})` : a = e.color), e.variant == "tag" && (["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? (a = `var(--t-color-status-${e.color})`, c = `var(--t-color-status-${e.color}-text)`) : (a = e.color, c = "currentColor")), { background: a, text: c };
1294
- }), y = x(() => e.variant == "border-under" ? {
1294
+ }), y = w(() => e.variant == "border-under" ? {
1295
1295
  "--transform": n.value,
1296
1296
  "--border": e.border + "px"
1297
1297
  } : e.variant == "tag" ? {
@@ -1301,23 +1301,23 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1301
1301
  "--width": l.value - e.margin[1] * 2 + "px",
1302
1302
  "--transform": n.value,
1303
1303
  "--radius": e.radius + "px"
1304
- } : {}), d = () => {
1304
+ } : {}), p = () => {
1305
1305
  if (e.variant == "border-under") {
1306
1306
  let a = r.value.querySelector(".active");
1307
1307
  if (a) {
1308
1308
  if (e.placement.startsWith("top-") || e.placement.startsWith("bottom-")) {
1309
- let c = a.getBoundingClientRect().left - r.value.getBoundingClientRect().left + r.value.scrollLeft, f = a.offsetWidth / 2;
1310
- n.value = c + f - e.border / 2 + "px";
1309
+ let c = a.getBoundingClientRect().left - r.value.getBoundingClientRect().left + r.value.scrollLeft, m = a.offsetWidth / 2;
1310
+ n.value = c + m - e.border / 2 + "px";
1311
1311
  } else if (e.placement.startsWith("left-") || e.placement.startsWith("right-")) {
1312
- let c = a.getBoundingClientRect().top - r.value.getBoundingClientRect().top + r.value.scrollTop, f = a.offsetHeight / 2;
1313
- n.value = c + f - e.border / 2 + "px";
1312
+ let c = a.getBoundingClientRect().top - r.value.getBoundingClientRect().top + r.value.scrollTop, m = a.offsetHeight / 2;
1313
+ n.value = c + m - e.border / 2 + "px";
1314
1314
  }
1315
1315
  }
1316
1316
  }
1317
1317
  if (e.variant == "tag") {
1318
1318
  let a = r.value.querySelector(".active");
1319
1319
  if (a) {
1320
- let c = a.offsetWidth, f = a.offsetHeight;
1320
+ let c = a.offsetWidth, m = a.offsetHeight;
1321
1321
  if (e.placement.startsWith("top-") || e.placement.startsWith("bottom-")) {
1322
1322
  let k = a.getBoundingClientRect().left - r.value.getBoundingClientRect().left + r.value.scrollLeft;
1323
1323
  n.value = k + "px";
@@ -1325,27 +1325,27 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1325
1325
  let k = a.getBoundingClientRect().top - r.value.getBoundingClientRect().top + r.value.scrollTop;
1326
1326
  n.value = k + "px";
1327
1327
  }
1328
- l.value = c, u.value = f;
1328
+ l.value = c, u.value = m;
1329
1329
  }
1330
1330
  }
1331
1331
  };
1332
1332
  return de("tabsState", {
1333
- activeValue: x(() => e.modelValue),
1334
- color: v.value,
1333
+ activeValue: w(() => e.modelValue),
1334
+ color: d.value,
1335
1335
  size: e.size,
1336
1336
  variant: e.variant,
1337
1337
  setValue: (a) => {
1338
1338
  s("update:modelValue", a);
1339
1339
  }
1340
1340
  }), N(() => e.modelValue, async () => {
1341
- await ce(), d();
1341
+ await ce(), p();
1342
1342
  }), j(async () => {
1343
- await ce(), d();
1344
- }), (a, c) => (i(), p("ul", {
1343
+ await ce(), p();
1344
+ }), (a, c) => (i(), f("ul", {
1345
1345
  ref_key: "container",
1346
1346
  ref: r,
1347
1347
  class: B(["t-tabs", { [a.placement]: !0, [`variant-${a.variant}`]: !0 }]),
1348
- style: T([{ "--background": v.value.background, "--color": v.value.text }, y.value])
1348
+ style: x([{ "--background": d.value.background, "--color": d.value.text }, y.value])
1349
1349
  }, [
1350
1350
  g(a.$slots, "default", {}, void 0, !0)
1351
1351
  ], 6));
@@ -1376,7 +1376,7 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1376
1376
  },
1377
1377
  emits: ["update:modelValue"],
1378
1378
  setup(t, { emit: o }) {
1379
- const e = t, s = o, n = x(() => {
1379
+ const e = t, s = o, n = w(() => {
1380
1380
  let r = {
1381
1381
  "--background": e.color,
1382
1382
  "--color": "#ffffff"
@@ -1385,37 +1385,38 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1385
1385
  "--background": `var(--t-color-status-${e.color})`,
1386
1386
  "--color": `var(--t-color-status-${e.color}-text)`
1387
1387
  }), r;
1388
- }), l = x(() => e.multiple ? e.modelValue.includes(e.value) : e.value === void 0 ? e.modelValue : e.modelValue == e.value), u = () => {
1389
- if (e.multiple) {
1390
- let r = e.modelValue;
1391
- e.modelValue.includes(e.value) ? r.splice(r.indexOf(e.value), 1) : r.push(e.value), s("update:modelValue", r);
1388
+ }), l = w(() => e.multiple ? e.modelValue.includes(e.value) : e.value === void 0 ? e.modelValue : e.modelValue == e.value), u = (r) => {
1389
+ if (r.preventDefault(), r.stopPropagation(), e.multiple) {
1390
+ let d = e.modelValue;
1391
+ e.modelValue.includes(e.value) ? d.splice(d.indexOf(e.value), 1) : d.push(e.value), s("update:modelValue", d);
1392
1392
  } else e.value === void 0 ? s("update:modelValue", !e.modelValue) : s("update:modelValue", e.value);
1393
1393
  };
1394
- return (r, v) => (i(), p("div", {
1394
+ return (r, d) => (i(), f("div", {
1395
1395
  class: B(["t-checkbox", { active: l.value }]),
1396
- style: T(n.value),
1397
- onClick: u
1396
+ style: x(n.value),
1397
+ onClick: u,
1398
+ onTouchend: u
1398
1399
  }, [
1399
1400
  $("div", {
1400
1401
  class: B(`t-checkbox-${r.type}`)
1401
1402
  }, [
1402
- r.type == "radio" ? (i(), p("div", ro)) : z("", !0),
1403
+ r.type == "radio" ? (i(), f("div", ro)) : z("", !0),
1403
1404
  r.type == "check" ? g(r.$slots, "icon", { key: 1 }, () => [
1404
- v[0] || (v[0] = $("i", { class: "ri-check-line" }, null, -1))
1405
+ d[0] || (d[0] = $("i", { class: "ri-check-line" }, null, -1))
1405
1406
  ], !0) : z("", !0)
1406
1407
  ], 2),
1407
1408
  g(r.$slots, "label", {}, () => [
1408
- r.label ? (i(), p("span", ao, A(e.label), 1)) : z("", !0)
1409
+ r.label ? (i(), f("span", ao, A(e.label), 1)) : z("", !0)
1409
1410
  ], !0)
1410
- ], 6));
1411
+ ], 38));
1411
1412
  }
1412
- }), co = /* @__PURE__ */ _(lo, [["__scopeId", "data-v-5cc0c692"]]), io = /* @__PURE__ */ b({
1413
+ }), co = /* @__PURE__ */ _(lo, [["__scopeId", "data-v-0f5d6aae"]]), io = /* @__PURE__ */ b({
1413
1414
  __name: "t-keyboard-space",
1414
1415
  setup(t) {
1415
1416
  const { height: o } = _e();
1416
- return (e, s) => (i(), p("div", {
1417
+ return (e, s) => (i(), f("div", {
1417
1418
  class: "t-keyboard-space",
1418
- style: T({ "--height": O(o) + "px" })
1419
+ style: x({ "--height": O(o) + "px" })
1419
1420
  }, null, 4));
1420
1421
  }
1421
1422
  }), uo = /* @__PURE__ */ _(io, [["__scopeId", "data-v-4b06018d"]]), po = /* @__PURE__ */ b({
@@ -1427,14 +1428,14 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1427
1428
  color: { default: null }
1428
1429
  },
1429
1430
  setup(t) {
1430
- const o = t, e = x(() => ({
1431
+ const o = t, e = w(() => ({
1431
1432
  "--width": o.width,
1432
1433
  "--height": o.height,
1433
1434
  "--radius": o.radius
1434
1435
  }));
1435
- return (s, n) => (i(), p("div", {
1436
+ return (s, n) => (i(), f("div", {
1436
1437
  class: "t-skeleton",
1437
- style: T(e.value)
1438
+ style: x(e.value)
1438
1439
  }, null, 4));
1439
1440
  }
1440
1441
  }), fo = /* @__PURE__ */ _(po, [["__scopeId", "data-v-877bbdb5"]]), mo = /* @__PURE__ */ b({
@@ -1443,7 +1444,7 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1443
1444
  color: { default: "primary" }
1444
1445
  },
1445
1446
  setup(t) {
1446
- const o = t, e = x(() => {
1447
+ const o = t, e = w(() => {
1447
1448
  let s = {};
1448
1449
  return o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? s = {
1449
1450
  "--color": "var(--t-color-status-" + o.color + ")"
@@ -1453,14 +1454,14 @@ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt
1453
1454
  "--color": "var(--t-color-surface)"
1454
1455
  }, s;
1455
1456
  });
1456
- return (s, n) => (i(), p("div", {
1457
+ return (s, n) => (i(), f("div", {
1457
1458
  class: "t-ripple",
1458
- style: T(e.value)
1459
+ style: x(e.value)
1459
1460
  }, null, 4));
1460
1461
  }
1461
- }), vo = /* @__PURE__ */ _(mo, [["__scopeId", "data-v-42cb3d71"]]), wo = () => ({
1462
+ }), vo = /* @__PURE__ */ _(mo, [["__scopeId", "data-v-42cb3d71"]]), To = () => ({
1462
1463
  install: (t) => {
1463
- Be(), t.component("t-app", Ee), t.component("t-screen", be), t.component("t-swipe-screen", _t), t.component("t-cable", at), t.component("t-toolbar", bt), t.component("t-content", ge), t.component("t-card", lt), t.component("t-refresher", pt), t.component("t-button", Y), t.component("t-back-button", kt), t.component("t-present", H), t.component("t-text", ne), t.component("t-sheet", Tt), t.component("t-gesture-indicator", he), t.component("t-input", zt), t.component("t-textarea", Pt), t.component("t-rich-text", Ot), t.component("t-grid", Wt), t.component("t-divider", qt), t.component("t-toggle-password", Lt), t.component("t-loading-icon", Z), t.component("t-alert", me), t.component("t-avatar", Ft), t.component("t-collapse", Jt), t.component("t-toast", ye), t.component("t-switch", Zt), t.component("t-tab", eo), t.component("t-tabs", oo), t.component("t-loading-app", no), t.component("t-checkbox", co), t.component("t-keyboard-space", uo), t.component("t-skeleton", fo), t.component("t-ripple", vo);
1464
+ Be(), t.component("t-app", Ee), t.component("t-screen", be), t.component("t-swipe-screen", _t), t.component("t-cable", at), t.component("t-toolbar", bt), t.component("t-content", ge), t.component("t-card", lt), t.component("t-refresher", pt), t.component("t-button", Y), t.component("t-back-button", kt), t.component("t-present", H), t.component("t-text", ne), t.component("t-sheet", xt), t.component("t-gesture-indicator", he), t.component("t-input", zt), t.component("t-textarea", Pt), t.component("t-rich-text", Ot), t.component("t-grid", Wt), t.component("t-divider", qt), t.component("t-toggle-password", Lt), t.component("t-loading-icon", Z), t.component("t-alert", me), t.component("t-avatar", Ft), t.component("t-collapse", Jt), t.component("t-toast", ye), t.component("t-switch", Zt), t.component("t-tab", eo), t.component("t-tabs", oo), t.component("t-loading-app", no), t.component("t-checkbox", co), t.component("t-keyboard-space", uo), t.component("t-skeleton", fo), t.component("t-ripple", vo);
1464
1465
  }
1465
1466
  });
1466
1467
  export {
@@ -1469,8 +1470,8 @@ export {
1469
1470
  bo as createAlert,
1470
1471
  ko as createLoading,
1471
1472
  $o as createToast,
1472
- wo as createToife,
1473
- Te as isFormElement,
1473
+ To as createToife,
1474
+ xe as isFormElement,
1474
1475
  Ke as presentController,
1475
1476
  S as screenController,
1476
1477
  _e as useKeyboard