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