@toife/vue 1.2.38 → 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 H, h as U, provide as oe, unref as E, onUnmounted as G, 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: {
@@ -115,10 +116,10 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
115
116
  "aria-label": "Loading..."
116
117
  }, null, 4));
117
118
  }
118
- }), X = /* @__PURE__ */ _(we, [["__scopeId", "data-v-7c463303"]]), Te = { class: "t-button-content" }, xe = {
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,23 +176,23 @@ 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
  ]),
183
184
  s.loading ? (c(), p("span", xe, [
184
- W(X, {
185
+ W(U, {
185
186
  color: "var(--color)",
186
187
  type: s.loadingType
187
188
  }, null, 8, ["type"])
188
189
  ])) : I("", !0)
189
190
  ], 6));
190
191
  }
191
- }), j = /* @__PURE__ */ _(Se, [["__scopeId", "data-v-185a9e49"]]), ze = {
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(j, {
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))
@@ -257,9 +258,9 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
257
258
  if (!e) return;
258
259
  const t = document.createElement("div"), n = v();
259
260
  e.appendChild(t);
260
- const r = H({
261
+ const r = G({
261
262
  render() {
262
- return U(re, {
263
+ return H(re, {
263
264
  ...o,
264
265
  ref: n,
265
266
  onDismiss: (i, a) => {
@@ -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(j, {
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))
@@ -333,9 +334,9 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
333
334
  if (!e) return;
334
335
  const t = document.createElement("div"), n = v();
335
336
  e.appendChild(t);
336
- const r = H({
337
+ const r = G({
337
338
  render() {
338
- return U(Ve, {
339
+ return H(Ve, {
339
340
  ...o,
340
341
  ref: n,
341
342
  onDismiss: (i, a) => {
@@ -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,16 +367,16 @@ 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", {}, () => [
378
- W(X, {
377
+ w("div", Me, [
378
+ b(a.$slots, "default", {}, () => [
379
+ W(U, {
379
380
  type: t.type
380
381
  }, null, 8, ["type"])
381
382
  ], !0)
@@ -390,9 +391,9 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
390
391
  return {
391
392
  open() {
392
393
  return new Promise((r) => {
393
- e && (n = document.createElement("div"), e.appendChild(n), t = H({
394
+ e && (n = document.createElement("div"), e.appendChild(n), t = G({
394
395
  render() {
395
- return U(Ae, {
396
+ return H(Ae, {
396
397
  ...o,
397
398
  ref: s
398
399
  });
@@ -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(() => {
@@ -465,7 +466,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
465
466
  return t.variant == "default" && (t.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? l = {
466
467
  "--border": "none",
467
468
  "--color": "var(--t-color-status-" + t.color + "-text)",
468
- "--background": "var(--t-color-status-" + t.color + ")"
469
+ "--background": "rgba(var(--t-color-status-" + t.color + "-rgb), 1)"
469
470
  } : l = {
470
471
  "--border": "none",
471
472
  "--color": "var(--t-color-text)",
@@ -473,7 +474,7 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
473
474
  } : l = {
474
475
  "--border": "none",
475
476
  "--color": "var(--t-color-text)",
476
- "--background": "var(--t-color-surface)"
477
+ "--background": "rgba(var(--t-color-surface-rgb), 1)"
477
478
  }), t.variant == "text" && (t.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? l = {
478
479
  "--border": "none",
479
480
  "--color": "var(--t-color-status-" + t.color + ")",
@@ -501,22 +502,22 @@ 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 })
509
510
  }, M(t.message), 7)) : I("", !0);
510
511
  }
511
- }), ae = /* @__PURE__ */ _(We, [["__scopeId", "data-v-310a3cb0"]]), po = (o = {}) => ({
512
+ }), ae = /* @__PURE__ */ _(We, [["__scopeId", "data-v-e6895831"]]), po = (o = {}) => ({
512
513
  open() {
513
514
  let s = document.body.querySelector(".t-app");
514
515
  if (!s) return;
515
516
  const e = document.createElement("div"), t = v();
516
517
  s.appendChild(e);
517
- const n = H({
518
+ const n = G({
518
519
  render() {
519
- return U(ae, {
520
+ return H(ae, {
520
521
  ...o,
521
522
  ref: t,
522
523
  onDismiss: () => {
@@ -531,13 +532,13 @@ const ke = /* @__PURE__ */ _(ge, [["render", be]]), $e = /* @__PURE__ */ b({
531
532
  t.value?.open?.();
532
533
  }, 50);
533
534
  }
534
- }), He = v(0);
535
+ }), Ge = v(0);
535
536
  function le() {
536
537
  return {
537
- height: He
538
+ height: Ge
538
539
  };
539
540
  }
540
- const Ue = /* @__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 Ue = /* @__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
- }), Xe = /* @__PURE__ */ _(Ue, [["__scopeId", "data-v-5234450f"]]), je = /* @__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 Ue = /* @__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
- }), Fe = {}, Ge = { class: "t-content" };
581
+ }), je = {}, Fe = { class: "t-content" };
581
582
  function Ke(o, s) {
582
- return c(), p("div", Ge, [
583
- h(o.$slots, "default", {}, void 0, !0)
583
+ return c(), p("div", Fe, [
584
+ b(o.$slots, "default", {}, void 0, !0)
584
585
  ]);
585
586
  }
586
- const ce = /* @__PURE__ */ _(Fe, [["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__ */ _(Fe, [["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);
@@ -619,7 +620,7 @@ const ce = /* @__PURE__ */ _(Fe, [["render", Ke], ["__scopeId", "data-v-af750e89
619
620
  }, {
620
621
  passive: !1
621
622
  }));
622
- }), G(() => {
623
+ }), F(() => {
623
624
  i && i.destroy();
624
625
  }), (y, l) => O((c(), p("div", {
625
626
  class: "t-refresher",
@@ -627,7 +628,7 @@ const ce = /* @__PURE__ */ _(Fe, [["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__ */ _(Fe, [["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
- }), G(() => {
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, {
709
+ }), F(() => {
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,20 +785,20 @@ 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
- }), F = /* @__PURE__ */ _(lt, [["__scopeId", "data-v-f0f94f05"]]), ct = /* @__PURE__ */ b({
791
- __name: "t-pull-signal",
791
+ }), j = /* @__PURE__ */ _(lt, [["__scopeId", "data-v-f0f94f05"]]), ct = /* @__PURE__ */ g({
792
+ __name: "t-gesture-indicator",
792
793
  props: {
793
794
  placement: { default: "bottom" }
794
795
  },
795
796
  setup(o) {
796
797
  return (s, e) => (c(), p("div", {
797
- class: S(["t-pull-bar", { [s.placement]: !0 }])
798
+ class: S(["t-gesture-indicator", { [s.placement]: !0 }])
798
799
  }, null, 2));
799
800
  }
800
- }), ue = /* @__PURE__ */ _(ct, [["__scopeId", "data-v-daa38c85"]]), 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)" },
@@ -810,13 +811,14 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
810
811
  backdrop: { type: Boolean, default: !0 },
811
812
  rounded: { type: Boolean, default: !0 },
812
813
  radius: { type: Boolean, default: !0 },
813
- closeButton: { type: Boolean, default: !0 }
814
+ indicator: { type: Boolean, default: !0 },
815
+ style: {}
814
816
  },
815
817
  emits: ["dismiss"],
816
818
  setup(o, { emit: s }) {
817
819
  const e = o, t = s, n = v(), r = v(), i = v(!1);
818
820
  let a = null;
819
- const d = x(() => {
821
+ const u = x(() => {
820
822
  if (e.placement == "bottom") return "down";
821
823
  if (e.placement == "top") return "up";
822
824
  if (e.placement == "left") return "left";
@@ -834,38 +836,38 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
834
836
  options: {
835
837
  minDist: 30
836
838
  },
837
- beforeEvent(g) {
839
+ beforeEvent(k) {
838
840
  return !(i.value || !e.gesture || e.placement == "center");
839
841
  },
840
842
  down() {
841
843
  this.isMoving = !1;
842
844
  },
843
- fast({ initialDirection: g }) {
844
- 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();
845
847
  },
846
- move({ deltaY: g, deltaX: u, initialDirection: k }) {
847
- if (k != d.value) return;
848
+ move({ deltaY: k, deltaX: d, initialDirection: h }) {
849
+ if (h != u.value) return;
848
850
  let f = 0;
849
- 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({
850
852
  contentTransform: f + "px",
851
853
  transition: "0s"
852
854
  }));
853
855
  },
854
- up({ deltaY: g, deltaX: u, initialDirection: k }) {
855
- 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) {
856
858
  r.value.open();
857
859
  return;
858
860
  }
859
861
  let f, z, P;
860
- 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();
861
863
  },
862
864
  cancel() {
863
865
  this.isMoving = !1, y(), r.value.open();
864
866
  }
865
867
  }));
866
- }), G(() => {
868
+ }), F(() => {
867
869
  a && a.destroy();
868
- }), (l, g) => (c(), B(D, {
870
+ }), (l, k) => (c(), B(D, {
869
871
  ref_key: "present",
870
872
  ref: r,
871
873
  class: S(e.class),
@@ -873,35 +875,27 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
873
875
  backdrop: l.backdrop,
874
876
  visible: e.visible,
875
877
  keepalive: e.keepalive,
876
- onDismiss: m
878
+ onDismiss: m,
879
+ style: T(e.style)
877
880
  }, {
878
881
  default: V(() => [
879
- e.gesture && e.placement != "center" ? (c(), B(ue, {
882
+ e.indicator && e.placement != "center" ? (c(), B(ue, {
880
883
  key: 0,
881
884
  placement: e.placement
882
885
  }, null, 8, ["placement"])) : I("", !0),
883
- e.closeButton && e.placement == "center" ? (c(), p("button", {
884
- key: 1,
885
- class: "t-sheet-close",
886
- onClick: g[0] || (g[0] = (u) => m("close-button"))
887
- }, [
888
- h(l.$slots, "close-icon", {}, () => [
889
- g[1] || (g[1] = $("i", { class: "ri-close-large-line" }, null, -1))
890
- ], !0)
891
- ])) : I("", !0),
892
- $("div", {
886
+ w("div", {
893
887
  class: S(["t-sheet", { fullscreen: e.fullscreen, [e.placement]: !0, rounded: l.rounded, radius: e.radius }]),
894
888
  style: T({ "--background": e.background }),
895
889
  ref_key: "sheet",
896
890
  ref: n
897
891
  }, [
898
- h(l.$slots, "default", {}, void 0, !0)
892
+ b(l.$slots, "default", {}, void 0, !0)
899
893
  ], 6)
900
894
  ]),
901
895
  _: 3
902
- }, 8, ["class", "placement", "backdrop", "visible", "keepalive"]));
896
+ }, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
903
897
  }
904
- }), ut = /* @__PURE__ */ _(it, [["__scopeId", "data-v-0962ab7e"]]), 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({
905
899
  __name: "t-input",
906
900
  props: {
907
901
  size: { default: "standard" },
@@ -922,20 +916,20 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
922
916
  return (r, i) => (c(), p("div", {
923
917
  class: S(["t-input", { rounded: e.rounded, ["size-" + e.size]: !0, ["variant-" + e.variant]: !0 }])
924
918
  }, [
925
- $("label", null, [
926
- $("span", dt, M(r.label), 1),
927
- $("div", pt, [
928
- h(r.$slots, "start", {}, void 0, !0),
929
- $("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", {
930
924
  type: r.type,
931
925
  placeholder: r.placeholder,
932
926
  value: r.modelValue,
933
927
  onInput: n
934
928
  }, null, 40, ft),
935
- h(r.$slots, "end", {}, void 0, !0)
929
+ b(r.$slots, "end", {}, void 0, !0)
936
930
  ])
937
931
  ]),
938
- e.error ? (c(), B(F, {
932
+ e.error ? (c(), B(j, {
939
933
  key: 0,
940
934
  color: "danger"
941
935
  }, {
@@ -943,7 +937,7 @@ const ie = /* @__PURE__ */ _(Ze, [["render", et], ["__scopeId", "data-v-c2a3436c
943
937
  R(M(e.error), 1)
944
938
  ]),
945
939
  _: 1
946
- })) : e.help ? (c(), B(F, {
940
+ })) : e.help ? (c(), B(j, {
947
941
  key: 1,
948
942
  color: "secondary"
949
943
  }, {
@@ -970,7 +964,7 @@ const xt = /* @__PURE__ */ _($t, [["render", Tt]]), St = {}, zt = { class: "t-gr
970
964
  function It(o, s) {
971
965
  return c(), p("div", zt);
972
966
  }
973
- const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
967
+ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ g({
974
968
  __name: "t-divider",
975
969
  props: {
976
970
  direction: { default: "horizontal" }
@@ -981,7 +975,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
981
975
  class: S(["t-divider", { [s.direction]: !0 }])
982
976
  }, null, 2));
983
977
  }
984
- }), Et = /* @__PURE__ */ _(Ct, [["__scopeId", "data-v-47ee8991"]]), Vt = /* @__PURE__ */ b({
978
+ }), Et = /* @__PURE__ */ _(Ct, [["__scopeId", "data-v-47ee8991"]]), Vt = /* @__PURE__ */ g({
985
979
  __name: "t-toggle-password",
986
980
  props: {
987
981
  color: { default: "warning" }
@@ -998,7 +992,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
998
992
  let m = a();
999
993
  m && (n.value = m.type != "password", t("change", n.value));
1000
994
  });
1001
- const d = () => {
995
+ const u = () => {
1002
996
  let m = a();
1003
997
  m && (n.value = !n.value, n.value ? m.type = "text" : m.type = "password", t("change", n.value));
1004
998
  };
@@ -1007,17 +1001,17 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1007
1001
  ref: r,
1008
1002
  class: "t-toggle-password",
1009
1003
  style: T(i.value),
1010
- onClick: d
1004
+ onClick: u
1011
1005
  }, [
1012
- n.value ? h(m.$slots, "on", { key: 0 }, () => [
1013
- 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))
1014
1008
  ], !0) : I("", !0),
1015
- n.value ? I("", !0) : h(m.$slots, "off", { key: 1 }, () => [
1016
- 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))
1017
1011
  ], !0)
1018
1012
  ], 4));
1019
1013
  }
1020
- }), Mt = /* @__PURE__ */ _(Vt, [["__scopeId", "data-v-3268e9e3"]]), Pt = /* @__PURE__ */ b({
1014
+ }), Mt = /* @__PURE__ */ _(Vt, [["__scopeId", "data-v-3268e9e3"]]), Pt = /* @__PURE__ */ g({
1021
1015
  __name: "t-avatar",
1022
1016
  props: {
1023
1017
  square: { type: Boolean, default: !1 },
@@ -1029,7 +1023,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1029
1023
  class: S(["t-avatar", { square: t.square }]),
1030
1024
  style: T({ "--size": e.value })
1031
1025
  }, [
1032
- h(t.$slots, "default", {}, void 0, !0)
1026
+ b(t.$slots, "default", {}, void 0, !0)
1033
1027
  ], 6));
1034
1028
  }
1035
1029
  }), At = /* @__PURE__ */ _(Pt, [["__scopeId", "data-v-24384c2f"]]), Rt = { class: "t-collapse-title" }, Dt = {
@@ -1038,7 +1032,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1038
1032
  }, Ot = {
1039
1033
  key: 1,
1040
1034
  class: "icon"
1041
- }, Nt = { class: "t-collapse-content" }, qt = /* @__PURE__ */ b({
1035
+ }, Nt = { class: "t-collapse-content" }, qt = /* @__PURE__ */ g({
1042
1036
  __name: "t-collapse",
1043
1037
  props: {
1044
1038
  title: {}
@@ -1048,41 +1042,41 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1048
1042
  const e = o, t = s, n = v(!1), r = v(""), i = v(), a = () => {
1049
1043
  n.value = !n.value, r.value = `calc(${i.value.offsetHeight}px + 2rem)`, t("change", n.value);
1050
1044
  };
1051
- return t("change", n.value), (d, m) => (c(), p("div", {
1045
+ return t("change", n.value), (u, m) => (c(), p("div", {
1052
1046
  class: S(["t-collapse", { open: n.value }]),
1053
1047
  style: T({ "--height": r.value })
1054
1048
  }, [
1055
- $("div", {
1049
+ w("div", {
1056
1050
  class: "t-collapse-header",
1057
1051
  onClick: a
1058
1052
  }, [
1059
- h(d.$slots, "icon"),
1060
- $("div", Rt, [
1061
- h(d.$slots, "title", {}, () => [
1053
+ b(u.$slots, "icon"),
1054
+ w("div", Rt, [
1055
+ b(u.$slots, "title", {}, () => [
1062
1056
  R(M(e.title), 1)
1063
1057
  ])
1064
1058
  ]),
1065
- h(d.$slots, "toggle", {}, () => [
1059
+ b(u.$slots, "toggle", {}, () => [
1066
1060
  n.value ? (c(), p("div", Dt, [...m[0] || (m[0] = [
1067
- $("i", { class: "ri-arrow-up-s-line" }, null, -1)
1061
+ w("i", { class: "ri-arrow-up-s-line" }, null, -1)
1068
1062
  ])])) : (c(), p("div", Ot, [...m[1] || (m[1] = [
1069
- $("i", { class: "ri-arrow-down-s-line" }, null, -1)
1063
+ w("i", { class: "ri-arrow-down-s-line" }, null, -1)
1070
1064
  ])]))
1071
1065
  ])
1072
1066
  ]),
1073
- $("div", Nt, [
1074
- $("div", {
1067
+ w("div", Nt, [
1068
+ w("div", {
1075
1069
  ref_key: "content",
1076
1070
  ref: i
1077
1071
  }, [
1078
- h(d.$slots, "content", {}, () => [
1079
- h(d.$slots, "default")
1072
+ b(u.$slots, "content", {}, () => [
1073
+ b(u.$slots, "default")
1080
1074
  ])
1081
1075
  ], 512)
1082
1076
  ])
1083
1077
  ], 6));
1084
1078
  }
1085
- }), Lt = /* @__PURE__ */ b({
1079
+ }), Lt = /* @__PURE__ */ g({
1086
1080
  __name: "t-switch",
1087
1081
  props: {
1088
1082
  modelValue: { type: Boolean },
@@ -1107,10 +1101,10 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1107
1101
  style: T(r.value),
1108
1102
  onClick: n
1109
1103
  }, [...a[0] || (a[0] = [
1110
- $("div", { class: "t-switch-icon" }, null, -1)
1104
+ w("div", { class: "t-switch-icon" }, null, -1)
1111
1105
  ])], 6));
1112
1106
  }
1113
- }), Wt = /* @__PURE__ */ _(Lt, [["__scopeId", "data-v-3616970e"]]), Ht = /* @__PURE__ */ b({
1107
+ }), Wt = /* @__PURE__ */ _(Lt, [["__scopeId", "data-v-3616970e"]]), Gt = /* @__PURE__ */ g({
1114
1108
  __name: "t-tab",
1115
1109
  props: {
1116
1110
  value: {}
@@ -1122,20 +1116,20 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1122
1116
  return (r, i) => (c(), p("li", {
1123
1117
  class: S(["t-tab", { active: t.value }])
1124
1118
  }, [
1125
- W(j, {
1119
+ W(X, {
1126
1120
  variant: "text",
1127
1121
  onClick: n,
1128
1122
  size: E(e).size,
1129
1123
  color: t.value && E(e).variant == "text" ? E(e).color : void 0
1130
1124
  }, {
1131
1125
  default: V(() => [
1132
- h(r.$slots, "default", {}, void 0, !0)
1126
+ b(r.$slots, "default", {}, void 0, !0)
1133
1127
  ]),
1134
1128
  _: 3
1135
1129
  }, 8, ["size", "color"])
1136
1130
  ], 2));
1137
1131
  }
1138
- }), Ut = /* @__PURE__ */ _(Ht, [["__scopeId", "data-v-36c12a50"]]), Xt = /* @__PURE__ */ b({
1132
+ }), Ht = /* @__PURE__ */ _(Gt, [["__scopeId", "data-v-36c12a50"]]), Ut = /* @__PURE__ */ g({
1139
1133
  __name: "t-tabs",
1140
1134
  props: {
1141
1135
  placement: { default: "top-start" },
@@ -1148,20 +1142,20 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1148
1142
  emits: ["update:modelValue"],
1149
1143
  setup(o, { emit: s }) {
1150
1144
  const e = o, t = s, n = v("0px"), r = v(), i = x(() => {
1151
- let d = e.color;
1152
- 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;
1153
1147
  }), a = () => {
1154
1148
  setTimeout(() => {
1155
1149
  if (e.placement.startsWith("top-") || e.placement.startsWith("bottom-")) {
1156
- let d = r.value.querySelector(".active");
1157
- if (d) {
1158
- 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;
1159
1153
  n.value = m + y - e.border / 2 + "px";
1160
1154
  }
1161
1155
  } else if (e.placement.startsWith("left-") || e.placement.startsWith("right-")) {
1162
- let d = r.value.querySelector(".active");
1163
- if (d) {
1164
- 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;
1165
1159
  n.value = m + y - e.border / 2 + "px";
1166
1160
  }
1167
1161
  }
@@ -1172,34 +1166,34 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1172
1166
  color: i.value,
1173
1167
  size: e.size,
1174
1168
  variant: e.variant,
1175
- setActive: (d) => {
1176
- t("update:modelValue", d), a();
1169
+ setActive: (u) => {
1170
+ t("update:modelValue", u), a();
1177
1171
  }
1178
1172
  }), K(() => {
1179
1173
  a();
1180
- }), (d, m) => (c(), p("ul", {
1174
+ }), (u, m) => (c(), p("ul", {
1181
1175
  ref_key: "container",
1182
1176
  ref: r,
1183
- class: S(["t-tabs", { [d.placement]: !0, [d.variant]: !0 }]),
1184
- 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" })
1185
1179
  }, [
1186
- h(d.$slots, "default", {}, void 0, !0)
1180
+ b(u.$slots, "default", {}, void 0, !0)
1187
1181
  ], 6));
1188
1182
  }
1189
- }), jt = /* @__PURE__ */ _(Xt, [["__scopeId", "data-v-65a2c74c"]]), Ft = /* @__PURE__ */ b({
1183
+ }), Xt = /* @__PURE__ */ _(Ut, [["__scopeId", "data-v-65a2c74c"]]), jt = /* @__PURE__ */ g({
1190
1184
  __name: "t-loading-app",
1191
1185
  setup(o) {
1192
1186
  return (s, e) => (c(), B(ce, null, {
1193
1187
  default: V(() => [
1194
- W(X, { type: "spinner" })
1188
+ W(U, { type: "spinner" })
1195
1189
  ]),
1196
1190
  _: 1
1197
1191
  }));
1198
1192
  }
1199
- }), Gt = /* @__PURE__ */ _(Ft, [["__scopeId", "data-v-1436aa9f"]]), Kt = { key: 0 }, Jt = {
1193
+ }), Ft = /* @__PURE__ */ _(jt, [["__scopeId", "data-v-1436aa9f"]]), Kt = { key: 0 }, Jt = {
1200
1194
  key: 0,
1201
1195
  class: "t-checkbox-label"
1202
- }, Qt = /* @__PURE__ */ b({
1196
+ }, Qt = /* @__PURE__ */ g({
1203
1197
  __name: "t-checkbox",
1204
1198
  props: {
1205
1199
  label: { default: "" },
@@ -1227,23 +1221,23 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1227
1221
  e.modelValue.includes(e.value) ? a.splice(a.indexOf(e.value), 1) : a.push(e.value), t("update:modelValue", a);
1228
1222
  } else e.value === void 0 ? t("update:modelValue", !e.modelValue) : t("update:modelValue", e.value);
1229
1223
  };
1230
- return (a, d) => (c(), p("div", {
1224
+ return (a, u) => (c(), p("div", {
1231
1225
  class: S(["t-checkbox", { active: r.value }]),
1232
1226
  style: T(n.value),
1233
1227
  onClick: i
1234
1228
  }, [
1235
- $("div", {
1229
+ w("div", {
1236
1230
  class: S(`t-checkbox-${a.type}`)
1237
1231
  }, [
1238
1232
  a.type == "radio" ? (c(), p("div", Kt)) : I("", !0),
1239
- a.type == "check" ? h(a.$slots, "icon", { key: 1 }, () => [
1240
- 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))
1241
1235
  ], !0) : I("", !0)
1242
1236
  ], 2),
1243
1237
  a.label ? (c(), p("span", Jt, M(e.label), 1)) : I("", !0)
1244
1238
  ], 6));
1245
1239
  }
1246
- }), Zt = /* @__PURE__ */ _(Qt, [["__scopeId", "data-v-d558d0b0"]]), Yt = /* @__PURE__ */ b({
1240
+ }), Zt = /* @__PURE__ */ _(Qt, [["__scopeId", "data-v-d558d0b0"]]), Yt = /* @__PURE__ */ g({
1247
1241
  __name: "t-keyboard",
1248
1242
  setup(o) {
1249
1243
  const { height: s } = le();
@@ -1252,7 +1246,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1252
1246
  style: T({ "--height": E(s) + "px" })
1253
1247
  }, null, 4));
1254
1248
  }
1255
- }), eo = /* @__PURE__ */ _(Yt, [["__scopeId", "data-v-5d3fa1da"]]), to = /* @__PURE__ */ b({
1249
+ }), eo = /* @__PURE__ */ _(Yt, [["__scopeId", "data-v-5d3fa1da"]]), to = /* @__PURE__ */ g({
1256
1250
  __name: "t-skeleton",
1257
1251
  props: {
1258
1252
  width: { default: "100%" },
@@ -1271,7 +1265,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1271
1265
  style: T(e.value)
1272
1266
  }, null, 4));
1273
1267
  }
1274
- }), oo = /* @__PURE__ */ _(to, [["__scopeId", "data-v-877bbdb5"]]), so = /* @__PURE__ */ b({
1268
+ }), oo = /* @__PURE__ */ _(to, [["__scopeId", "data-v-877bbdb5"]]), so = /* @__PURE__ */ g({
1275
1269
  __name: "t-ripple",
1276
1270
  props: {
1277
1271
  color: { default: "primary" }
@@ -1294,7 +1288,7 @@ const Bt = /* @__PURE__ */ _(St, [["render", It]]), Ct = /* @__PURE__ */ b({
1294
1288
  }
1295
1289
  }), no = /* @__PURE__ */ _(so, [["__scopeId", "data-v-42cb3d71"]]), fo = () => ({
1296
1290
  install: (o) => {
1297
- ye(), o.component("t-app", ke), o.component("t-screen", ie), o.component("t-swipe-screen", ot), o.component("t-cable", Xe), o.component("t-toolbar", nt), o.component("t-content", ce), o.component("t-card", je), o.component("t-refresher", Qe), o.component("t-button", j), o.component("t-back-button", at), o.component("t-present", D), o.component("t-text", F), o.component("t-sheet", ut), o.component("t-pull-signal", ue), o.component("t-input", vt), o.component("t-textarea", gt), o.component("t-rich-text", kt), o.component("t-grid", xt), o.component("t-grid-item", Bt), o.component("t-divider", Et), o.component("t-toggle-password", Mt), o.component("t-loading-icon", X), o.component("t-alert", re), o.component("t-avatar", At), o.component("t-collapse", qt), o.component("t-toast", ae), o.component("t-switch", Wt), o.component("t-tab", Ut), o.component("t-tabs", jt), o.component("t-loading-app", Gt), o.component("t-checkbox", Zt), o.component("t-keyboard", eo), o.component("t-skeleton", oo), o.component("t-ripple", no);
1291
+ ye(), o.component("t-app", ke), o.component("t-screen", ie), o.component("t-swipe-screen", ot), o.component("t-cable", Ue), o.component("t-toolbar", nt), o.component("t-content", ce), o.component("t-card", Xe), o.component("t-refresher", Qe), o.component("t-button", X), o.component("t-back-button", at), o.component("t-present", D), o.component("t-text", j), o.component("t-sheet", ut), o.component("t-gesture-indicator", ue), o.component("t-input", vt), o.component("t-textarea", gt), o.component("t-rich-text", kt), o.component("t-grid", xt), o.component("t-grid-item", Bt), o.component("t-divider", Et), o.component("t-toggle-password", Mt), o.component("t-loading-icon", U), o.component("t-alert", re), o.component("t-avatar", At), o.component("t-collapse", qt), o.component("t-toast", ae), o.component("t-switch", Wt), o.component("t-tab", Ht), o.component("t-tabs", Xt), o.component("t-loading-app", Ft), o.component("t-checkbox", Zt), o.component("t-keyboard", eo), o.component("t-skeleton", oo), o.component("t-ripple", no);
1298
1292
  }
1299
1293
  });
1300
1294
  export {
@@ -1306,6 +1300,6 @@ export {
1306
1300
  fo as createToife,
1307
1301
  ve as isFormElement,
1308
1302
  Re as presentController,
1309
- w as screenController,
1303
+ $ as screenController,
1310
1304
  le as useKeyboard
1311
1305
  };