@toife/vue 1.2.40 → 1.2.41

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,4 +1,4 @@
1
- import { createElementBlock as p, openBlock as c, renderSlot as h, defineComponent as b, ref as v, computed as x, reactive as te, watch as L, Fragment as A, withDirectives as O, createCommentVNode as I, normalizeStyle as T, normalizeClass as S, vShow as N, createElementVNode as $, createVNode as W, createBlock as B, withCtx as V, toDisplayString as M, renderList as q, createTextVNode as R, createApp as G, h as H, provide as oe, unref as E, onUnmounted as F, onMounted as K, resolveDynamicComponent as de, markRaw as pe, inject as se, useAttrs as fe } from "vue";
1
+ import { createElementBlock as p, openBlock as c, renderSlot as b, defineComponent as g, ref as v, computed as x, reactive as te, watch as L, Fragment as A, withDirectives as O, createCommentVNode as I, normalizeStyle as T, normalizeClass as S, vShow as N, createElementVNode as w, createVNode as W, createBlock as B, withCtx as V, toDisplayString as M, renderList as q, createTextVNode as R, createApp as G, h as H, provide as oe, unref as E, onUnmounted as F, onMounted as K, resolveDynamicComponent as de, markRaw as pe, inject as se, useAttrs as fe } from "vue";
2
2
  import { gesture as J } from "@toife/gesture";
3
3
  import { useRouter as ne, useRoute as me } from "vue-router";
4
4
  const ve = (o) => o && (o.tagName == "INPUT" || o.tagName == "TEXTAREA" || o.isContentEditable), _e = () => {
@@ -16,35 +16,36 @@ const ve = (o) => o && (o.tagName == "INPUT" || o.tagName == "TEXTAREA" || o.isC
16
16
  }, ge = {}, he = { class: "t-app" };
17
17
  function be(o, s) {
18
18
  return c(), p("div", he, [
19
- h(o.$slots, "default")
19
+ b(o.$slots, "default")
20
20
  ]);
21
21
  }
22
- const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
22
+ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ g({
23
23
  __name: "t-present",
24
24
  props: {
25
25
  keepalive: { type: Boolean, default: !0 },
26
26
  visible: { type: Boolean, default: !1 },
27
27
  backdrop: { type: Boolean, default: !0 },
28
28
  placement: { default: "bottom" },
29
+ style: {},
29
30
  class: {}
30
31
  },
31
32
  emits: ["dismiss"],
32
33
  setup(o, { expose: s, emit: e }) {
33
- const t = v(0), n = v(!1), r = v(), i = v(), a = o, d = e, m = x(() => n.value || a.keepalive), y = te({
34
+ const t = v(0), n = v(!1), r = v(), i = v(), a = o, u = e, m = x(() => n.value || a.keepalive), y = te({
34
35
  "--t-present-backdrop-opacity": "0.4",
35
36
  "--t-present-transition": "0.2s",
36
37
  "--t-present-content-transform": "0px",
37
38
  "--t-present-content-opacity": "1"
38
39
  }), l = (f) => {
39
40
  a.backdrop ? f?.backdropOpacity && (y["--t-present-backdrop-opacity"] = f.backdropOpacity) : y["--t-present-backdrop-opacity"] = "0", f?.transition && (y["--t-present-transition"] = f.transition, y["--t-present-transition"] = f.transition), f?.contentTransform && (y["--t-present-content-transform"] = f.contentTransform), f?.contentOpacity && (y["--t-present-content-opacity"] = f.contentOpacity);
40
- }, g = () => {
41
+ }, k = () => {
41
42
  l({
42
43
  contentTransform: "0px",
43
44
  transition: "0.2s",
44
45
  backdropOpacity: "0.4",
45
46
  contentOpacity: "1"
46
47
  });
47
- }, u = () => {
48
+ }, d = () => {
48
49
  let f = "0px", z = "1";
49
50
  a.placement == "bottom" || a.placement == "right" ? f = "100%" : a.placement == "top" || a.placement == "left" ? f = "-100%" : a.placement == "center" && (f = "0px", z = "0"), l({
50
51
  contentTransform: f,
@@ -55,43 +56,43 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
55
56
  };
56
57
  L(() => a.visible, () => {
57
58
  a.visible ? (n.value = !0, t.value = Re.getNewIndex(), setTimeout(() => {
58
- g();
59
- }, 50)) : (u(), setTimeout(() => {
59
+ k();
60
+ }, 50)) : (d(), setTimeout(() => {
60
61
  n.value = !1;
61
62
  }, 200));
62
63
  }), s({
63
64
  render: l,
64
- open: g,
65
- close: u
65
+ open: k,
66
+ close: d
66
67
  });
67
- const k = (f) => {
68
- f.preventDefault(), d("dismiss", "backdrop");
68
+ const h = (f) => {
69
+ f.preventDefault(), u("dismiss", "backdrop");
69
70
  };
70
- return u(), (f, z) => (c(), p(A, null, [
71
+ return d(), (f, z) => (c(), p(A, null, [
71
72
  m.value ? O((c(), p("div", {
72
73
  key: 0,
73
74
  class: S(["t-present", [{ [f.placement]: !0 }, a.class]]),
74
75
  ref_key: "present",
75
76
  ref: i,
76
- style: T({ ...y, zIndex: t.value })
77
+ style: T([y, { zIndex: t.value }, a.style])
77
78
  }, [
78
- h(f.$slots, "default", {}, void 0, !0)
79
+ b(f.$slots, "default", {}, void 0, !0)
79
80
  ], 6)), [
80
81
  [N, n.value]
81
82
  ]) : I("", !0),
82
83
  m.value ? O((c(), p("div", {
83
84
  key: 1,
84
85
  class: "t-present-backdrop",
85
- onClick: k,
86
+ onClick: h,
86
87
  ref_key: "backdrop",
87
88
  ref: r,
88
- style: T({ ...y, zIndex: t.value - 1 })
89
+ style: T([y, { zIndex: t.value - 1 }, a.style])
89
90
  }, null, 4)), [
90
91
  [N, n.value]
91
92
  ]) : I("", !0)
92
93
  ], 64));
93
94
  }
94
- }), D = /* @__PURE__ */ _($e, [["__scopeId", "data-v-9a62d911"]]), we = /* @__PURE__ */ b({
95
+ }), D = /* @__PURE__ */ _($e, [["__scopeId", "data-v-8eb6e6e4"]]), we = /* @__PURE__ */ g({
95
96
  __name: "t-loading-icon",
96
97
  props: {
97
98
  size: {
@@ -118,7 +119,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
118
119
  }), U = /* @__PURE__ */ _(we, [["__scopeId", "data-v-7c463303"]]), Te = { class: "t-button-content" }, xe = {
119
120
  key: 0,
120
121
  class: "loader"
121
- }, Se = /* @__PURE__ */ b({
122
+ }, Se = /* @__PURE__ */ g({
122
123
  __name: "t-button",
123
124
  props: {
124
125
  color: { default: null },
@@ -175,8 +176,8 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
175
176
  class: S(["t-button", { "active-background": s.activeBackground, rounded: s.rounded, block: s.block, ["size-" + s.size]: !0 }]),
176
177
  style: T(e.value)
177
178
  }, [
178
- O($("span", Te, [
179
- h(t.$slots, "default", {}, void 0, !0)
179
+ O(w("span", Te, [
180
+ b(t.$slots, "default", {}, void 0, !0)
180
181
  ], 512), [
181
182
  [N, !s.loading]
182
183
  ]),
@@ -191,7 +192,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
191
192
  }), X = /* @__PURE__ */ _(Se, [["__scopeId", "data-v-185a9e49"]]), ze = {
192
193
  key: 0,
193
194
  class: "t-alert-header"
194
- }, Ie = { class: "t-alert-content" }, Be = { class: "t-alert-footer" }, Ce = /* @__PURE__ */ b({
195
+ }, Ie = { class: "t-alert-content" }, Be = { class: "t-alert-footer" }, Ce = /* @__PURE__ */ g({
195
196
  __name: "t-alert",
196
197
  props: {
197
198
  title: {},
@@ -201,7 +202,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
201
202
  },
202
203
  emits: ["dismiss"],
203
204
  setup(o, { expose: s, emit: e }) {
204
- const t = o, n = v(!1), r = e, i = v(), a = v(!1), d = () => {
205
+ const t = o, n = v(!1), r = e, i = v(), a = v(!1), u = () => {
205
206
  n.value = !0;
206
207
  }, m = (l) => {
207
208
  n.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
@@ -211,8 +212,8 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
211
212
  }, 300));
212
213
  };
213
214
  return s({
214
- open: d
215
- }), (l, g) => (c(), B(D, {
215
+ open: u
216
+ }), (l, k) => (c(), B(D, {
216
217
  placement: "center",
217
218
  backdrop: !0,
218
219
  keepalive: !1,
@@ -220,26 +221,26 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
220
221
  onDismiss: y
221
222
  }, {
222
223
  default: V(() => [
223
- $("div", {
224
+ w("div", {
224
225
  class: S(["t-alert", { pop: a.value }]),
225
226
  ref_key: "container",
226
227
  ref: i
227
228
  }, [
228
- h(l.$slots, "header", {}, () => [
229
+ b(l.$slots, "header", {}, () => [
229
230
  t.title ? (c(), p("div", ze, M(t.title), 1)) : I("", !0)
230
231
  ], !0),
231
- h(l.$slots, "content", {}, () => [
232
- $("div", Ie, M(t.message), 1)
232
+ b(l.$slots, "content", {}, () => [
233
+ w("div", Ie, M(t.message), 1)
233
234
  ], !0),
234
- h(l.$slots, "footer", {}, () => [
235
- $("div", Be, [
236
- (c(!0), p(A, null, q(t.actions, (u) => (c(), B(X, {
237
- color: u.color,
238
- variant: u.variant,
239
- onClick: (k) => m(u)
235
+ b(l.$slots, "footer", {}, () => [
236
+ w("div", Be, [
237
+ (c(!0), p(A, null, q(t.actions, (d) => (c(), B(X, {
238
+ color: d.color,
239
+ variant: d.variant,
240
+ onClick: (h) => m(d)
240
241
  }, {
241
242
  default: V(() => [
242
- R(M(u.text), 1)
243
+ R(M(d.text), 1)
243
244
  ]),
244
245
  _: 2
245
246
  }, 1032, ["color", "variant", "onClick"]))), 256))
@@ -275,7 +276,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
275
276
  }, 50);
276
277
  });
277
278
  }
278
- }), Ee = /* @__PURE__ */ b({
279
+ }), Ee = /* @__PURE__ */ g({
279
280
  __name: "t-action",
280
281
  props: {
281
282
  actions: {},
@@ -283,7 +284,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
283
284
  },
284
285
  emits: ["dismiss"],
285
286
  setup(o, { expose: s, emit: e }) {
286
- const t = o, n = v(!1), r = e, i = v(), a = v(!1), d = () => {
287
+ const t = o, n = v(!1), r = e, i = v(), a = v(!1), u = () => {
287
288
  n.value = !0;
288
289
  }, m = (l) => {
289
290
  n.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
@@ -293,8 +294,8 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
293
294
  }, 300));
294
295
  };
295
296
  return s({
296
- open: d
297
- }), (l, g) => (c(), B(D, {
297
+ open: u
298
+ }), (l, k) => (c(), B(D, {
298
299
  placement: "bottom",
299
300
  backdrop: !0,
300
301
  keepalive: !1,
@@ -302,21 +303,21 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
302
303
  onDismiss: y
303
304
  }, {
304
305
  default: V(() => [
305
- $("div", {
306
+ w("div", {
306
307
  class: S(["t-action", { pop: a.value }]),
307
308
  ref_key: "container",
308
309
  ref: i
309
310
  }, [
310
- (c(!0), p(A, null, q(t.actions, (u) => (c(), p("div", null, [
311
- (c(!0), p(A, null, q(u, (k) => (c(), B(X, {
312
- color: k.color,
313
- size: k.size,
314
- variant: k.variant,
315
- onClick: (f) => m(k),
311
+ (c(!0), p(A, null, q(t.actions, (d) => (c(), p("div", null, [
312
+ (c(!0), p(A, null, q(d, (h) => (c(), B(X, {
313
+ color: h.color,
314
+ size: h.size,
315
+ variant: h.variant,
316
+ onClick: (f) => m(h),
316
317
  block: ""
317
318
  }, {
318
319
  default: V(() => [
319
- R(M(k.text), 1)
320
+ R(M(h.text), 1)
320
321
  ]),
321
322
  _: 2
322
323
  }, 1032, ["color", "size", "variant", "onClick"]))), 256))
@@ -351,7 +352,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
351
352
  }, 50);
352
353
  });
353
354
  }
354
- }), Me = { class: "t-loading" }, Pe = /* @__PURE__ */ b({
355
+ }), Me = { class: "t-loading" }, Pe = /* @__PURE__ */ g({
355
356
  __name: "t-loading",
356
357
  props: {
357
358
  type: { default: "spinner" }
@@ -366,15 +367,15 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
366
367
  close: () => {
367
368
  n.value = !1;
368
369
  }
369
- }), (a, d) => (c(), B(D, {
370
+ }), (a, u) => (c(), B(D, {
370
371
  placement: "center",
371
372
  backdrop: !0,
372
373
  keepalive: !1,
373
374
  visible: n.value
374
375
  }, {
375
376
  default: V(() => [
376
- $("div", Me, [
377
- h(a.$slots, "default", {}, () => [
377
+ w("div", Me, [
378
+ b(a.$slots, "default", {}, () => [
378
379
  W(U, {
379
380
  type: t.type
380
381
  }, null, 8, ["type"])
@@ -424,7 +425,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
424
425
  Q.value = !1;
425
426
  }, Le = () => {
426
427
  Q.value = !0;
427
- }, w = {
428
+ }, $ = {
428
429
  screens: C,
429
430
  addScreen: De,
430
431
  removeScreen: Oe,
@@ -438,7 +439,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
438
439
  if (!(C.length < 2))
439
440
  return C[C.length - 2];
440
441
  })
441
- }, We = /* @__PURE__ */ b({
442
+ }, We = /* @__PURE__ */ g({
442
443
  __name: "t-toast",
443
444
  props: {
444
445
  message: {},
@@ -450,7 +451,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
450
451
  },
451
452
  emits: ["dismiss"],
452
453
  setup(o, { expose: s, emit: e }) {
453
- const t = o, n = e, r = v(!1), i = v(!1), a = v(!1), d = () => {
454
+ const t = o, n = e, r = v(!1), i = v(!1), a = v(!1), u = () => {
454
455
  i.value = !0, a.value = !1, setTimeout(() => {
455
456
  r.value = !0;
456
457
  }, 10), setTimeout(() => {
@@ -501,8 +502,8 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
501
502
  }), l;
502
503
  });
503
504
  return s({
504
- open: d
505
- }), (l, g) => i.value ? (c(), p("div", {
505
+ open: u
506
+ }), (l, k) => i.value ? (c(), p("div", {
506
507
  key: 0,
507
508
  class: S(["t-toast", { [t.placement]: !0, open: r.value, closing: a.value }]),
508
509
  style: T({ "--space": t.space, ...y.value })
@@ -537,7 +538,7 @@ function le() {
537
538
  height: Ge
538
539
  };
539
540
  }
540
- const He = /* @__PURE__ */ b({
541
+ const He = /* @__PURE__ */ g({
541
542
  __name: "t-cable",
542
543
  props: {
543
544
  keyboard: { type: Boolean, default: !0 },
@@ -551,10 +552,10 @@ const He = /* @__PURE__ */ b({
551
552
  class: S(["t-cable", { keyboard: s.keyboard && E(e) > 0, [s.placement]: !0 }]),
552
553
  style: T({ "--t-keyboard-height": E(e) + "px", "--t-keyboard-transition": E(e) > 0 ? "0.3s" : "0.1s" })
553
554
  }, [
554
- h(t.$slots, "default", {}, void 0, !0)
555
+ b(t.$slots, "default", {}, void 0, !0)
555
556
  ], 6));
556
557
  }
557
- }), Ue = /* @__PURE__ */ _(He, [["__scopeId", "data-v-5234450f"]]), Xe = /* @__PURE__ */ b({
558
+ }), Ue = /* @__PURE__ */ _(He, [["__scopeId", "data-v-5234450f"]]), Xe = /* @__PURE__ */ g({
558
559
  __name: "t-card",
559
560
  props: {
560
561
  color: { default: null }
@@ -574,27 +575,27 @@ const He = /* @__PURE__ */ b({
574
575
  class: "t-card",
575
576
  style: T(e.value)
576
577
  }, [
577
- h(t.$slots, "default")
578
+ b(t.$slots, "default")
578
579
  ], 4));
579
580
  }
580
581
  }), je = {}, Fe = { class: "t-content" };
581
582
  function Ke(o, s) {
582
583
  return c(), p("div", Fe, [
583
- h(o.$slots, "default", {}, void 0, !0)
584
+ b(o.$slots, "default", {}, void 0, !0)
584
585
  ]);
585
586
  }
586
- const ce = /* @__PURE__ */ _(je, [["render", Ke], ["__scopeId", "data-v-af750e89"]]), ee = 80, Je = /* @__PURE__ */ b({
587
+ const ce = /* @__PURE__ */ _(je, [["render", Ke], ["__scopeId", "data-v-af750e89"]]), ee = 80, Je = /* @__PURE__ */ g({
587
588
  __name: "t-refresher",
588
589
  emits: ["refresh"],
589
590
  setup(o, { emit: s }) {
590
591
  const e = s, t = v(0), n = v(!1), r = v();
591
592
  let i, a = !1;
592
- const d = () => {
593
+ const u = () => {
593
594
  n.value = !1, t.value = 0, i && i.cancel(), setTimeout(() => {
594
595
  a = !1;
595
596
  }, 2e3);
596
597
  }, m = () => {
597
- a = !0, n.value = !0, t.value = ee, e("refresh", d);
598
+ a = !0, n.value = !0, t.value = ee, e("refresh", u);
598
599
  };
599
600
  return L(() => r.value, () => {
600
601
  i && i.destroy();
@@ -607,11 +608,11 @@ const ce = /* @__PURE__ */ _(je, [["render", Ke], ["__scopeId", "data-v-af750e89
607
608
  down() {
608
609
  this.isMoving = !1;
609
610
  },
610
- move({ deltaY: l, initialDirection: g }) {
611
- n.value || a || g != "down" || (l >= 120 ? (this.isMoving = !1, m()) : (l > 10 || this.isMoving) && (this.isMoving = !0, t.value = l > 0 ? l : 0));
611
+ move({ deltaY: l, initialDirection: k }) {
612
+ n.value || a || k != "down" || (l >= 120 ? (this.isMoving = !1, m()) : (l > 10 || this.isMoving) && (this.isMoving = !0, t.value = l > 0 ? l : 0));
612
613
  },
613
- up({ deltaY: l, initialDirection: g }) {
614
- this.isMoving = !1, !(n.value || a) && (l > ee && g == "down" ? m() : t.value = 0);
614
+ up({ deltaY: l, initialDirection: k }) {
615
+ this.isMoving = !1, !(n.value || a) && (l > ee && k == "down" ? m() : t.value = 0);
615
616
  },
616
617
  cancel() {
617
618
  this.isMoving = !1, !(n.value || a) && (n.value = !1, t.value = 0);
@@ -627,7 +628,7 @@ const ce = /* @__PURE__ */ _(je, [["render", Ke], ["__scopeId", "data-v-af750e89
627
628
  ref: r,
628
629
  style: T({ height: `${t.value}px` })
629
630
  }, [
630
- $("img", {
631
+ w("img", {
631
632
  class: S({ spiner: n.value }),
632
633
  src: "https://static.toikit.com/toikit/home_2.png?v=3",
633
634
  alt: "Loading...",
@@ -640,78 +641,78 @@ const ce = /* @__PURE__ */ _(je, [["render", Ke], ["__scopeId", "data-v-af750e89
640
641
  }), Qe = /* @__PURE__ */ _(Je, [["__scopeId", "data-v-c6364c14"]]), Ze = {}, Ye = { class: "t-screen" };
641
642
  function et(o, s) {
642
643
  return c(), p("div", Ye, [
643
- h(o.$slots, "default", {}, void 0, !0)
644
+ b(o.$slots, "default", {}, void 0, !0)
644
645
  ]);
645
646
  }
646
- const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c"]]), tt = /* @__PURE__ */ b({
647
+ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c"]]), tt = /* @__PURE__ */ g({
647
648
  __name: "t-swipe-screen",
648
649
  emits: ["change"],
649
650
  setup(o, { emit: s }) {
650
651
  let e = {};
651
652
  const t = ne(), n = me(), r = t.getRoutes(), i = v(!1), a = s;
652
- for (let u of r)
653
- e[u.name] = u.components;
654
- const d = (u) => {
655
- u && w.addScreen({
656
- name: u,
653
+ for (let d of r)
654
+ e[d.name] = d.components;
655
+ const u = (d) => {
656
+ d && $.addScreen({
657
+ name: d,
657
658
  target: null,
658
- component: pe(e[u] || null)
659
+ component: pe(e[d] || null)
659
660
  });
660
- }, m = (u, k) => {
661
- !k || w.screens[u].target || (w.screens[u].target = k.$el, u > 0 && (i.value = !0, k.$el.style.transform = "translateX(var(--t-app-width))", k.$el.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
662
- k.$el.style.transition = "transform 0.35s ease", k.$el.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), w.screens.length > 1 && (w.lastScreen.value.target.style.transitionOrigin = "left center", w.lastScreen.value.target.style.transition = "transform 0.35s ease", w.lastScreen.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)"), setTimeout(() => {
661
+ }, m = (d, h) => {
662
+ !h || $.screens[d].target || ($.screens[d].target = h.$el, d > 0 && (i.value = !0, h.$el.style.transform = "translateX(var(--t-app-width))", h.$el.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
663
+ h.$el.style.transition = "transform 0.35s ease", h.$el.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), $.screens.length > 1 && ($.lastScreen.value.target.style.transitionOrigin = "left center", $.lastScreen.value.target.style.transition = "transform 0.35s ease", $.lastScreen.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)"), setTimeout(() => {
663
664
  a("change"), i.value = !1;
664
665
  }, 400);
665
666
  }, 100)));
666
667
  }, y = () => {
667
- w.currentScreen.value.target.style.transition = "transform 0.35s ease", w.currentScreen.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", w.lastScreen.value.target.style.transition = "transform 0.35s ease", w.lastScreen.value.target.style.transform = "translateX(0px) scale(1) perspective(var(--t-app-width)) rotateY(0deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), i.value = !0, setTimeout(() => {
668
- w.removeScreen(), a("change"), i.value = !1;
668
+ $.currentScreen.value.target.style.transition = "transform 0.35s ease", $.currentScreen.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", $.lastScreen.value.target.style.transition = "transform 0.35s ease", $.lastScreen.value.target.style.transform = "translateX(0px) scale(1) perspective(var(--t-app-width)) rotateY(0deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), i.value = !0, setTimeout(() => {
669
+ $.removeScreen(), a("change"), i.value = !1;
669
670
  }, 400);
670
671
  };
671
- d(n.name), L(() => n.name, (u, k) => {
672
- u != w.currentScreen.value.name && (w.lastScreen.value?.name == u ? y() : d(u));
672
+ u(n.name), L(() => n.name, (d, h) => {
673
+ d != $.currentScreen.value.name && ($.lastScreen.value?.name == d ? y() : u(d));
673
674
  });
674
675
  const l = () => {
675
676
  i.value = !0;
676
- const u = w.currentScreen.value.target, k = w.lastScreen.value.target;
677
- u.style.transition = "transform 0.35s ease", u.style.transform = "translateX(0px)", k.style.transition = "transform 0.35s ease", k.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
677
+ const d = $.currentScreen.value.target, h = $.lastScreen.value.target;
678
+ d.style.transition = "transform 0.35s ease", d.style.transform = "translateX(0px)", h.style.transition = "transform 0.35s ease", h.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
678
679
  i.value = !1;
679
680
  }, 400);
680
681
  };
681
- let g;
682
+ let k;
682
683
  return K(() => {
683
- g = J(document.body, {
684
+ k = J(document.body, {
684
685
  isMoving: !1,
685
- beforeEvent(u) {
686
- return !(i.value || !w.swipeable.value || w.screens.length < 2);
686
+ beforeEvent(d) {
687
+ return !(i.value || !$.swipeable.value || $.screens.length < 2);
687
688
  },
688
- fast({ initialDirection: u }) {
689
- u == "right" && t.back();
689
+ fast({ initialDirection: d }) {
690
+ d == "right" && t.back();
690
691
  },
691
692
  down() {
692
693
  this.isMoving = !1;
693
694
  },
694
- move({ deltaX: u, initialDirection: k }) {
695
- if (k != "right") return;
696
- const f = window.innerWidth, z = u / f * 100, P = w.currentScreen.value.target, Z = w.lastScreen?.value?.target;
697
- (u > 15 && u <= f || this.isMoving) && (u = u > 0 ? u : 0, this.isMoving = !0, P.style.transition = "transform 0s ease", P.style.transform = `translateX(${u}px)`, Z.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), Z.style.transform = `translateX(calc((var(--t-app-width) / 100 * 30 * -1) + ((var(--t-app-width) / 100 * 30) / 100 * ${z}))) scale(${0.5 + 0.5 / 100 * z}) perspective(var(--t-app-width)) rotateY(${30 - 30 / 100 * z}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * z}`));
695
+ move({ deltaX: d, initialDirection: h }) {
696
+ if (h != "right") return;
697
+ const f = window.innerWidth, z = d / f * 100, P = $.currentScreen.value.target, Z = $.lastScreen?.value?.target;
698
+ (d > 15 && d <= f || this.isMoving) && (d = d > 0 ? d : 0, this.isMoving = !0, P.style.transition = "transform 0s ease", P.style.transform = `translateX(${d}px)`, Z.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), Z.style.transform = `translateX(calc((var(--t-app-width) / 100 * 30 * -1) + ((var(--t-app-width) / 100 * 30) / 100 * ${z}))) scale(${0.5 + 0.5 / 100 * z}) perspective(var(--t-app-width)) rotateY(${30 - 30 / 100 * z}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * z}`));
698
699
  },
699
- up({ deltaX: u, initialDirection: k }) {
700
- this.isMoving = !1, k != "right" && l();
700
+ up({ deltaX: d, initialDirection: h }) {
701
+ this.isMoving = !1, h != "right" && l();
701
702
  const f = window.innerWidth;
702
- u / f * 100 >= 50 ? t.back() : l();
703
+ d / f * 100 >= 50 ? t.back() : l();
703
704
  },
704
705
  cancel() {
705
706
  this.isMoving = !1, l();
706
707
  }
707
708
  });
708
709
  }), F(() => {
709
- g && g.destroy(), w.removeAllScreen();
710
- }), (u, k) => (c(), p(A, null, [
711
- (c(!0), p(A, null, q(E(w).screens, (f, z) => (c(), B(ie, {
710
+ k && k.destroy(), $.removeAllScreen();
711
+ }), (d, h) => (c(), p(A, null, [
712
+ (c(!0), p(A, null, q(E($).screens, (f, z) => (c(), B(ie, {
712
713
  ref_for: !0,
713
714
  ref: (P) => m(z, P),
714
- style: T({ zIndex: z + (z == E(w).screens.length - 1 ? 2 : 1) }),
715
+ style: T({ zIndex: z + (z == E($).screens.length - 1 ? 2 : 1) }),
715
716
  key: z
716
717
  }, {
717
718
  default: V(() => [
@@ -719,13 +720,13 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
719
720
  ]),
720
721
  _: 2
721
722
  }, 1032, ["style"]))), 128)),
722
- $("div", {
723
+ w("div", {
723
724
  class: "t-swipe-backdrop",
724
- style: T({ zIndex: E(w).screens.length })
725
+ style: T({ zIndex: E($).screens.length })
725
726
  }, null, 4)
726
727
  ], 64));
727
728
  }
728
- }), ot = /* @__PURE__ */ _(tt, [["__scopeId", "data-v-abea77ec"]]), st = /* @__PURE__ */ b({
729
+ }), ot = /* @__PURE__ */ _(tt, [["__scopeId", "data-v-abea77ec"]]), st = /* @__PURE__ */ g({
729
730
  __name: "t-toolbar",
730
731
  props: {
731
732
  placement: { default: null },
@@ -738,12 +739,12 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
738
739
  class: S(["t-toolbar", { [t.value]: !0, safe: s.safe }]),
739
740
  style: T({ "--t-size-toolbar": s.size })
740
741
  }, [
741
- $("div", null, [
742
- h(n.$slots, "default", {}, void 0, !0)
742
+ w("div", null, [
743
+ b(n.$slots, "default", {}, void 0, !0)
743
744
  ])
744
745
  ], 6));
745
746
  }
746
- }), nt = /* @__PURE__ */ _(st, [["__scopeId", "data-v-1ee9866d"]]), rt = /* @__PURE__ */ b({
747
+ }), nt = /* @__PURE__ */ _(st, [["__scopeId", "data-v-1ee9866d"]]), rt = /* @__PURE__ */ g({
747
748
  __name: "t-back-button",
748
749
  props: {
749
750
  to: {}
@@ -754,19 +755,19 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
754
755
  t.onBack(r);
755
756
  return;
756
757
  }
757
- w.hasPrevious.value ? s?.back?.() : e.to && s?.push?.(e.to);
758
+ $.hasPrevious.value ? s?.back?.() : e.to && s?.push?.(e.to);
758
759
  };
759
- return (r, i) => r.to || E(w).hasPrevious ? (c(), p("button", {
760
+ return (r, i) => r.to || E($).hasPrevious ? (c(), p("button", {
760
761
  key: 0,
761
762
  class: "t-back-button",
762
763
  onClick: n
763
764
  }, [
764
- h(r.$slots, "default", {}, () => [
765
- i[0] || (i[0] = $("i", { class: "ri-arrow-left-s-line" }, null, -1))
765
+ b(r.$slots, "default", {}, () => [
766
+ i[0] || (i[0] = w("i", { class: "ri-arrow-left-s-line" }, null, -1))
766
767
  ], !0)
767
768
  ])) : I("", !0);
768
769
  }
769
- }), at = /* @__PURE__ */ _(rt, [["__scopeId", "data-v-c36ac784"]]), lt = /* @__PURE__ */ b({
770
+ }), at = /* @__PURE__ */ _(rt, [["__scopeId", "data-v-c36ac784"]]), lt = /* @__PURE__ */ g({
770
771
  __name: "t-text",
771
772
  props: {
772
773
  color: { default: "var(--t-color-text)" },
@@ -784,10 +785,10 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
784
785
  class: "t-text",
785
786
  style: T(e.value)
786
787
  }, [
787
- h(t.$slots, "default", {}, void 0, !0)
788
+ b(t.$slots, "default", {}, void 0, !0)
788
789
  ], 4));
789
790
  }
790
- }), j = /* @__PURE__ */ _(lt, [["__scopeId", "data-v-f0f94f05"]]), ct = /* @__PURE__ */ b({
791
+ }), j = /* @__PURE__ */ _(lt, [["__scopeId", "data-v-f0f94f05"]]), ct = /* @__PURE__ */ g({
791
792
  __name: "t-gesture-indicator",
792
793
  props: {
793
794
  placement: { default: "bottom" }
@@ -797,7 +798,7 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
797
798
  class: S(["t-gesture-indicator", { [s.placement]: !0 }])
798
799
  }, null, 2));
799
800
  }
800
- }), ue = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-ed8f7308"]]), it = /* @__PURE__ */ b({
801
+ }), ue = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-ed8f7308"]]), it = /* @__PURE__ */ g({
801
802
  __name: "t-sheet",
802
803
  props: {
803
804
  background: { default: "var(--t-color-surface)" },
@@ -811,13 +812,13 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
811
812
  rounded: { type: Boolean, default: !0 },
812
813
  radius: { type: Boolean, default: !0 },
813
814
  indicator: { type: Boolean, default: !0 },
814
- closeButton: { type: Boolean, default: !0 }
815
+ style: {}
815
816
  },
816
817
  emits: ["dismiss"],
817
818
  setup(o, { emit: s }) {
818
819
  const e = o, t = s, n = v(), r = v(), i = v(!1);
819
820
  let a = null;
820
- const d = x(() => {
821
+ const u = x(() => {
821
822
  if (e.placement == "bottom") return "down";
822
823
  if (e.placement == "top") return "up";
823
824
  if (e.placement == "left") return "left";
@@ -835,30 +836,30 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
835
836
  options: {
836
837
  minDist: 30
837
838
  },
838
- beforeEvent(g) {
839
+ beforeEvent(k) {
839
840
  return !(i.value || !e.gesture || e.placement == "center");
840
841
  },
841
842
  down() {
842
843
  this.isMoving = !1;
843
844
  },
844
- fast({ initialDirection: g }) {
845
- y(), g == d.value ? t("dismiss", "gesture") : r.value.open();
845
+ fast({ initialDirection: k }) {
846
+ y(), k == u.value ? t("dismiss", "gesture") : r.value.open();
846
847
  },
847
- move({ deltaY: g, deltaX: u, initialDirection: k }) {
848
- if (k != d.value) return;
848
+ move({ deltaY: k, deltaX: d, initialDirection: h }) {
849
+ if (h != u.value) return;
849
850
  let f = 0;
850
- e.placement == "bottom" || e.placement == "top" ? f = g : f = u, e.placement == "bottom" && (f = g > 0 ? g : 0), e.placement == "top" && (f = g < 0 ? g : 0), e.placement == "left" && (f = u < 0 ? g : 0), e.placement == "right" && (f = u > 0 ? g : 0), (e.placement == "bottom" && (f >= 10 || this.isMoving) || e.placement == "top" && (f <= -10 || this.isMoving) || e.placement == "left" && (f >= 10 || this.isMoving) || e.placement == "right" && (f <= -10 || this.isMoving)) && (this.isMoving = !0, r.value.render({
851
+ e.placement == "bottom" || e.placement == "top" ? f = k : f = d, e.placement == "bottom" && (f = k > 0 ? k : 0), e.placement == "top" && (f = k < 0 ? k : 0), e.placement == "left" && (f = d < 0 ? k : 0), e.placement == "right" && (f = d > 0 ? k : 0), (e.placement == "bottom" && (f >= 10 || this.isMoving) || e.placement == "top" && (f <= -10 || this.isMoving) || e.placement == "left" && (f >= 10 || this.isMoving) || e.placement == "right" && (f <= -10 || this.isMoving)) && (this.isMoving = !0, r.value.render({
851
852
  contentTransform: f + "px",
852
853
  transition: "0s"
853
854
  }));
854
855
  },
855
- up({ deltaY: g, deltaX: u, initialDirection: k }) {
856
- if (this.isMoving = !1, y(), k != d.value) {
856
+ up({ deltaY: k, deltaX: d, initialDirection: h }) {
857
+ if (this.isMoving = !1, y(), h != u.value) {
857
858
  r.value.open();
858
859
  return;
859
860
  }
860
861
  let f, z, P;
861
- e.placement == "bottom" || e.placement == "top" ? (f = n.value.offsetHeight, P = g) : (f = n.value.offsetWidth, P = u), z = P / f * 100, z > 50 ? t("dismiss", "gesture") : r.value.open();
862
+ e.placement == "bottom" || e.placement == "top" ? (f = n.value.offsetHeight, P = k) : (f = n.value.offsetWidth, P = d), z = P / f * 100, z > 50 ? t("dismiss", "gesture") : r.value.open();
862
863
  },
863
864
  cancel() {
864
865
  this.isMoving = !1, y(), r.value.open();
@@ -866,7 +867,7 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
866
867
  }));
867
868
  }), F(() => {
868
869
  a && a.destroy();
869
- }), (l, g) => (c(), B(D, {
870
+ }), (l, k) => (c(), B(D, {
870
871
  ref_key: "present",
871
872
  ref: r,
872
873
  class: S(e.class),
@@ -874,35 +875,27 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
874
875
  backdrop: l.backdrop,
875
876
  visible: e.visible,
876
877
  keepalive: e.keepalive,
877
- onDismiss: m
878
+ onDismiss: m,
879
+ style: T(e.style)
878
880
  }, {
879
881
  default: V(() => [
880
882
  e.indicator && e.placement != "center" ? (c(), B(ue, {
881
883
  key: 0,
882
884
  placement: e.placement
883
885
  }, null, 8, ["placement"])) : I("", !0),
884
- e.closeButton && e.placement == "center" ? (c(), p("button", {
885
- key: 1,
886
- class: "t-sheet-close",
887
- onClick: g[0] || (g[0] = (u) => m("close-button"))
888
- }, [
889
- h(l.$slots, "close-icon", {}, () => [
890
- g[1] || (g[1] = $("i", { class: "ri-close-large-line" }, null, -1))
891
- ], !0)
892
- ])) : I("", !0),
893
- $("div", {
886
+ w("div", {
894
887
  class: S(["t-sheet", { fullscreen: e.fullscreen, [e.placement]: !0, rounded: l.rounded, radius: e.radius }]),
895
888
  style: T({ "--background": e.background }),
896
889
  ref_key: "sheet",
897
890
  ref: n
898
891
  }, [
899
- h(l.$slots, "default", {}, void 0, !0)
892
+ b(l.$slots, "default", {}, void 0, !0)
900
893
  ], 6)
901
894
  ]),
902
895
  _: 3
903
- }, 8, ["class", "placement", "backdrop", "visible", "keepalive"]));
896
+ }, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
904
897
  }
905
- }), ut = /* @__PURE__ */ _(it, [["__scopeId", "data-v-b7f7ad66"]]), dt = { class: "t-input-label" }, pt = { class: "t-input-content" }, ft = ["type", "placeholder", "value"], mt = /* @__PURE__ */ b({
898
+ }), ut = /* @__PURE__ */ _(it, [["__scopeId", "data-v-610d8572"]]), dt = { class: "t-input-label" }, pt = { class: "t-input-content" }, ft = ["type", "placeholder", "value"], mt = /* @__PURE__ */ g({
906
899
  __name: "t-input",
907
900
  props: {
908
901
  size: { default: "standard" },
@@ -923,17 +916,17 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
923
916
  return (r, i) => (c(), p("div", {
924
917
  class: S(["t-input", { rounded: e.rounded, ["size-" + e.size]: !0, ["variant-" + e.variant]: !0 }])
925
918
  }, [
926
- $("label", null, [
927
- $("span", dt, M(r.label), 1),
928
- $("div", pt, [
929
- h(r.$slots, "start", {}, void 0, !0),
930
- $("input", {
919
+ w("label", null, [
920
+ w("span", dt, M(r.label), 1),
921
+ w("div", pt, [
922
+ b(r.$slots, "start", {}, void 0, !0),
923
+ w("input", {
931
924
  type: r.type,
932
925
  placeholder: r.placeholder,
933
926
  value: r.modelValue,
934
927
  onInput: n
935
928
  }, null, 40, ft),
936
- h(r.$slots, "end", {}, void 0, !0)
929
+ b(r.$slots, "end", {}, void 0, !0)
937
930
  ])
938
931
  ]),
939
932
  e.error ? (c(), B(j, {
@@ -971,7 +964,7 @@ const xt = /* @__PURE__ */ _($t, [["render", Tt]]), St = {}, zt = { class: "t-gr
971
964
  function It(o, s) {
972
965
  return c(), p("div", zt);
973
966
  }
974
- const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
967
+ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ g({
975
968
  __name: "t-divider",
976
969
  props: {
977
970
  direction: { default: "horizontal" }
@@ -982,7 +975,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
982
975
  class: S(["t-divider", { [s.direction]: !0 }])
983
976
  }, null, 2));
984
977
  }
985
- }), Et = /* @__PURE__ */ _(Ct, [["__scopeId", "data-v-47ee8991"]]), Vt = /* @__PURE__ */ b({
978
+ }), Et = /* @__PURE__ */ _(Ct, [["__scopeId", "data-v-47ee8991"]]), Vt = /* @__PURE__ */ g({
986
979
  __name: "t-toggle-password",
987
980
  props: {
988
981
  color: { default: "warning" }
@@ -999,7 +992,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
999
992
  let m = a();
1000
993
  m && (n.value = m.type != "password", t("change", n.value));
1001
994
  });
1002
- const d = () => {
995
+ const u = () => {
1003
996
  let m = a();
1004
997
  m && (n.value = !n.value, n.value ? m.type = "text" : m.type = "password", t("change", n.value));
1005
998
  };
@@ -1008,17 +1001,17 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1008
1001
  ref: r,
1009
1002
  class: "t-toggle-password",
1010
1003
  style: T(i.value),
1011
- onClick: d
1004
+ onClick: u
1012
1005
  }, [
1013
- n.value ? h(m.$slots, "on", { key: 0 }, () => [
1014
- y[0] || (y[0] = $("i", { class: "ri-eye-line" }, null, -1))
1006
+ n.value ? b(m.$slots, "on", { key: 0 }, () => [
1007
+ y[0] || (y[0] = w("i", { class: "ri-eye-line" }, null, -1))
1015
1008
  ], !0) : I("", !0),
1016
- n.value ? I("", !0) : h(m.$slots, "off", { key: 1 }, () => [
1017
- y[1] || (y[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
1009
+ n.value ? I("", !0) : b(m.$slots, "off", { key: 1 }, () => [
1010
+ y[1] || (y[1] = w("i", { class: "ri-eye-off-line" }, null, -1))
1018
1011
  ], !0)
1019
1012
  ], 4));
1020
1013
  }
1021
- }), Mt = /* @__PURE__ */ _(Vt, [["__scopeId", "data-v-3268e9e3"]]), Pt = /* @__PURE__ */ b({
1014
+ }), Mt = /* @__PURE__ */ _(Vt, [["__scopeId", "data-v-3268e9e3"]]), Pt = /* @__PURE__ */ g({
1022
1015
  __name: "t-avatar",
1023
1016
  props: {
1024
1017
  square: { type: Boolean, default: !1 },
@@ -1030,7 +1023,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1030
1023
  class: S(["t-avatar", { square: t.square }]),
1031
1024
  style: T({ "--size": e.value })
1032
1025
  }, [
1033
- h(t.$slots, "default", {}, void 0, !0)
1026
+ b(t.$slots, "default", {}, void 0, !0)
1034
1027
  ], 6));
1035
1028
  }
1036
1029
  }), At = /* @__PURE__ */ _(Pt, [["__scopeId", "data-v-24384c2f"]]), Rt = { class: "t-collapse-title" }, Dt = {
@@ -1039,7 +1032,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1039
1032
  }, Ot = {
1040
1033
  key: 1,
1041
1034
  class: "icon"
1042
- }, Nt = { class: "t-collapse-content" }, qt = /* @__PURE__ */ b({
1035
+ }, Nt = { class: "t-collapse-content" }, qt = /* @__PURE__ */ g({
1043
1036
  __name: "t-collapse",
1044
1037
  props: {
1045
1038
  title: {}
@@ -1049,41 +1042,41 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1049
1042
  const e = o, t = s, n = v(!1), r = v(""), i = v(), a = () => {
1050
1043
  n.value = !n.value, r.value = `calc(${i.value.offsetHeight}px + 2rem)`, t("change", n.value);
1051
1044
  };
1052
- return t("change", n.value), (d, m) => (c(), p("div", {
1045
+ return t("change", n.value), (u, m) => (c(), p("div", {
1053
1046
  class: S(["t-collapse", { open: n.value }]),
1054
1047
  style: T({ "--height": r.value })
1055
1048
  }, [
1056
- $("div", {
1049
+ w("div", {
1057
1050
  class: "t-collapse-header",
1058
1051
  onClick: a
1059
1052
  }, [
1060
- h(d.$slots, "icon"),
1061
- $("div", Rt, [
1062
- h(d.$slots, "title", {}, () => [
1053
+ b(u.$slots, "icon"),
1054
+ w("div", Rt, [
1055
+ b(u.$slots, "title", {}, () => [
1063
1056
  R(M(e.title), 1)
1064
1057
  ])
1065
1058
  ]),
1066
- h(d.$slots, "toggle", {}, () => [
1059
+ b(u.$slots, "toggle", {}, () => [
1067
1060
  n.value ? (c(), p("div", Dt, [...m[0] || (m[0] = [
1068
- $("i", { class: "ri-arrow-up-s-line" }, null, -1)
1061
+ w("i", { class: "ri-arrow-up-s-line" }, null, -1)
1069
1062
  ])])) : (c(), p("div", Ot, [...m[1] || (m[1] = [
1070
- $("i", { class: "ri-arrow-down-s-line" }, null, -1)
1063
+ w("i", { class: "ri-arrow-down-s-line" }, null, -1)
1071
1064
  ])]))
1072
1065
  ])
1073
1066
  ]),
1074
- $("div", Nt, [
1075
- $("div", {
1067
+ w("div", Nt, [
1068
+ w("div", {
1076
1069
  ref_key: "content",
1077
1070
  ref: i
1078
1071
  }, [
1079
- h(d.$slots, "content", {}, () => [
1080
- h(d.$slots, "default")
1072
+ b(u.$slots, "content", {}, () => [
1073
+ b(u.$slots, "default")
1081
1074
  ])
1082
1075
  ], 512)
1083
1076
  ])
1084
1077
  ], 6));
1085
1078
  }
1086
- }), Lt = /* @__PURE__ */ b({
1079
+ }), Lt = /* @__PURE__ */ g({
1087
1080
  __name: "t-switch",
1088
1081
  props: {
1089
1082
  modelValue: { type: Boolean },
@@ -1108,10 +1101,10 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1108
1101
  style: T(r.value),
1109
1102
  onClick: n
1110
1103
  }, [...a[0] || (a[0] = [
1111
- $("div", { class: "t-switch-icon" }, null, -1)
1104
+ w("div", { class: "t-switch-icon" }, null, -1)
1112
1105
  ])], 6));
1113
1106
  }
1114
- }), Wt = /* @__PURE__ */ _(Lt, [["__scopeId", "data-v-3616970e"]]), Gt = /* @__PURE__ */ b({
1107
+ }), Wt = /* @__PURE__ */ _(Lt, [["__scopeId", "data-v-3616970e"]]), Gt = /* @__PURE__ */ g({
1115
1108
  __name: "t-tab",
1116
1109
  props: {
1117
1110
  value: {}
@@ -1130,13 +1123,13 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1130
1123
  color: t.value && E(e).variant == "text" ? E(e).color : void 0
1131
1124
  }, {
1132
1125
  default: V(() => [
1133
- h(r.$slots, "default", {}, void 0, !0)
1126
+ b(r.$slots, "default", {}, void 0, !0)
1134
1127
  ]),
1135
1128
  _: 3
1136
1129
  }, 8, ["size", "color"])
1137
1130
  ], 2));
1138
1131
  }
1139
- }), Ht = /* @__PURE__ */ _(Gt, [["__scopeId", "data-v-36c12a50"]]), Ut = /* @__PURE__ */ b({
1132
+ }), Ht = /* @__PURE__ */ _(Gt, [["__scopeId", "data-v-36c12a50"]]), Ut = /* @__PURE__ */ g({
1140
1133
  __name: "t-tabs",
1141
1134
  props: {
1142
1135
  placement: { default: "top-start" },
@@ -1149,20 +1142,20 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1149
1142
  emits: ["update:modelValue"],
1150
1143
  setup(o, { emit: s }) {
1151
1144
  const e = o, t = s, n = v("0px"), r = v(), i = x(() => {
1152
- let d = e.color;
1153
- return ["warning", "info", "danger", "primary", "secondary", "success"].includes(d) && (d = `var(--t-color-status-${d})`), d;
1145
+ let u = e.color;
1146
+ return ["warning", "info", "danger", "primary", "secondary", "success"].includes(u) && (u = `var(--t-color-status-${u})`), u;
1154
1147
  }), a = () => {
1155
1148
  setTimeout(() => {
1156
1149
  if (e.placement.startsWith("top-") || e.placement.startsWith("bottom-")) {
1157
- let d = r.value.querySelector(".active");
1158
- if (d) {
1159
- let m = d.getBoundingClientRect().left - r.value.getBoundingClientRect().left + r.value.scrollLeft, y = d.offsetWidth / 2;
1150
+ let u = r.value.querySelector(".active");
1151
+ if (u) {
1152
+ let m = u.getBoundingClientRect().left - r.value.getBoundingClientRect().left + r.value.scrollLeft, y = u.offsetWidth / 2;
1160
1153
  n.value = m + y - e.border / 2 + "px";
1161
1154
  }
1162
1155
  } else if (e.placement.startsWith("left-") || e.placement.startsWith("right-")) {
1163
- let d = r.value.querySelector(".active");
1164
- if (d) {
1165
- let m = d.getBoundingClientRect().top - r.value.getBoundingClientRect().top + r.value.scrollTop, y = d.offsetHeight / 2;
1156
+ let u = r.value.querySelector(".active");
1157
+ if (u) {
1158
+ let m = u.getBoundingClientRect().top - r.value.getBoundingClientRect().top + r.value.scrollTop, y = u.offsetHeight / 2;
1166
1159
  n.value = m + y - e.border / 2 + "px";
1167
1160
  }
1168
1161
  }
@@ -1173,21 +1166,21 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1173
1166
  color: i.value,
1174
1167
  size: e.size,
1175
1168
  variant: e.variant,
1176
- setActive: (d) => {
1177
- t("update:modelValue", d), a();
1169
+ setActive: (u) => {
1170
+ t("update:modelValue", u), a();
1178
1171
  }
1179
1172
  }), K(() => {
1180
1173
  a();
1181
- }), (d, m) => (c(), p("ul", {
1174
+ }), (u, m) => (c(), p("ul", {
1182
1175
  ref_key: "container",
1183
1176
  ref: r,
1184
- class: S(["t-tabs", { [d.placement]: !0, [d.variant]: !0 }]),
1185
- style: T({ "--color": i.value, "--transform": n.value, "--border": d.border + "px" })
1177
+ class: S(["t-tabs", { [u.placement]: !0, [u.variant]: !0 }]),
1178
+ style: T({ "--color": i.value, "--transform": n.value, "--border": u.border + "px" })
1186
1179
  }, [
1187
- h(d.$slots, "default", {}, void 0, !0)
1180
+ b(u.$slots, "default", {}, void 0, !0)
1188
1181
  ], 6));
1189
1182
  }
1190
- }), Xt = /* @__PURE__ */ _(Ut, [["__scopeId", "data-v-65a2c74c"]]), jt = /* @__PURE__ */ b({
1183
+ }), Xt = /* @__PURE__ */ _(Ut, [["__scopeId", "data-v-65a2c74c"]]), jt = /* @__PURE__ */ g({
1191
1184
  __name: "t-loading-app",
1192
1185
  setup(o) {
1193
1186
  return (s, e) => (c(), B(ce, null, {
@@ -1200,7 +1193,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1200
1193
  }), Ft = /* @__PURE__ */ _(jt, [["__scopeId", "data-v-1436aa9f"]]), Kt = { key: 0 }, Jt = {
1201
1194
  key: 0,
1202
1195
  class: "t-checkbox-label"
1203
- }, Qt = /* @__PURE__ */ b({
1196
+ }, Qt = /* @__PURE__ */ g({
1204
1197
  __name: "t-checkbox",
1205
1198
  props: {
1206
1199
  label: { default: "" },
@@ -1228,23 +1221,23 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1228
1221
  e.modelValue.includes(e.value) ? a.splice(a.indexOf(e.value), 1) : a.push(e.value), t("update:modelValue", a);
1229
1222
  } else e.value === void 0 ? t("update:modelValue", !e.modelValue) : t("update:modelValue", e.value);
1230
1223
  };
1231
- return (a, d) => (c(), p("div", {
1224
+ return (a, u) => (c(), p("div", {
1232
1225
  class: S(["t-checkbox", { active: r.value }]),
1233
1226
  style: T(n.value),
1234
1227
  onClick: i
1235
1228
  }, [
1236
- $("div", {
1229
+ w("div", {
1237
1230
  class: S(`t-checkbox-${a.type}`)
1238
1231
  }, [
1239
1232
  a.type == "radio" ? (c(), p("div", Kt)) : I("", !0),
1240
- a.type == "check" ? h(a.$slots, "icon", { key: 1 }, () => [
1241
- d[0] || (d[0] = $("i", { class: "ri-check-line" }, null, -1))
1233
+ a.type == "check" ? b(a.$slots, "icon", { key: 1 }, () => [
1234
+ u[0] || (u[0] = w("i", { class: "ri-check-line" }, null, -1))
1242
1235
  ], !0) : I("", !0)
1243
1236
  ], 2),
1244
1237
  a.label ? (c(), p("span", Jt, M(e.label), 1)) : I("", !0)
1245
1238
  ], 6));
1246
1239
  }
1247
- }), Zt = /* @__PURE__ */ _(Qt, [["__scopeId", "data-v-d558d0b0"]]), Yt = /* @__PURE__ */ b({
1240
+ }), Zt = /* @__PURE__ */ _(Qt, [["__scopeId", "data-v-d558d0b0"]]), Yt = /* @__PURE__ */ g({
1248
1241
  __name: "t-keyboard",
1249
1242
  setup(o) {
1250
1243
  const { height: s } = le();
@@ -1253,7 +1246,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1253
1246
  style: T({ "--height": E(s) + "px" })
1254
1247
  }, null, 4));
1255
1248
  }
1256
- }), eo = /* @__PURE__ */ _(Yt, [["__scopeId", "data-v-5d3fa1da"]]), to = /* @__PURE__ */ b({
1249
+ }), eo = /* @__PURE__ */ _(Yt, [["__scopeId", "data-v-5d3fa1da"]]), to = /* @__PURE__ */ g({
1257
1250
  __name: "t-skeleton",
1258
1251
  props: {
1259
1252
  width: { default: "100%" },
@@ -1272,7 +1265,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1272
1265
  style: T(e.value)
1273
1266
  }, null, 4));
1274
1267
  }
1275
- }), oo = /* @__PURE__ */ _(to, [["__scopeId", "data-v-877bbdb5"]]), so = /* @__PURE__ */ b({
1268
+ }), oo = /* @__PURE__ */ _(to, [["__scopeId", "data-v-877bbdb5"]]), so = /* @__PURE__ */ g({
1276
1269
  __name: "t-ripple",
1277
1270
  props: {
1278
1271
  color: { default: "primary" }
@@ -1307,6 +1300,6 @@ export {
1307
1300
  fo as createToife,
1308
1301
  ve as isFormElement,
1309
1302
  Re as presentController,
1310
- w as screenController,
1303
+ $ as screenController,
1311
1304
  le as useKeyboard
1312
1305
  };