@toife/vue 2.0.22 → 2.0.23

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,6 +1,6 @@
1
- import { createElementBlock as p, openBlock as i, renderSlot as g, defineComponent as h, ref as m, computed as w, reactive as ue, watch as W, onMounted as U, Fragment as q, withDirectives as F, createCommentVNode as I, normalizeStyle as T, normalizeClass as B, vShow as K, createElementVNode as $, createVNode as j, createBlock as V, withCtx as P, toDisplayString as A, renderList as G, createTextVNode as M, createApp as J, h as Q, provide as de, unref as O, onUnmounted as re, resolveDynamicComponent as ke, markRaw as $e, inject as pe, useAttrs as xe, nextTick as ce } from "vue";
1
+ import { createElementBlock as p, openBlock as i, renderSlot as g, defineComponent as b, ref as m, computed as x, reactive as ue, watch as W, onMounted as j, Fragment as q, withDirectives as F, createCommentVNode as z, normalizeStyle as T, normalizeClass as B, vShow as K, createElementVNode as $, createVNode as G, createBlock as V, withCtx as P, toDisplayString as A, renderList as U, createTextVNode as M, createApp as J, h as Q, provide as de, unref as O, onUnmounted as re, resolveDynamicComponent as ke, markRaw as $e, inject as pe, useAttrs as we, nextTick as ce } from "vue";
2
2
  import { gesture as ae } from "@toife/gesture";
3
- import { useRouter as fe, useRoute as we } from "vue-router";
3
+ import { useRouter as fe, useRoute as xe } from "vue-router";
4
4
  const Te = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), Se = () => {
5
5
  const t = document.activeElement;
6
6
  t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) && t.blur();
@@ -13,13 +13,13 @@ const Te = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isC
13
13
  for (const [s, n] of o)
14
14
  e[s] = n;
15
15
  return e;
16
- }, ze = {}, Ce = { class: "t-app" };
17
- function Ie(t, o) {
18
- return i(), p("div", Ce, [
16
+ }, Ce = {}, Ie = { class: "t-app" };
17
+ function ze(t, o) {
18
+ return i(), p("div", Ie, [
19
19
  g(t.$slots, "default")
20
20
  ]);
21
21
  }
22
- const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
22
+ const Ee = /* @__PURE__ */ _(Ce, [["render", ze]]), Ve = /* @__PURE__ */ b({
23
23
  __name: "t-present",
24
24
  props: {
25
25
  keepalive: { type: Boolean, default: !0 },
@@ -33,19 +33,19 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
33
33
  },
34
34
  emits: ["dismiss"],
35
35
  setup(t, { expose: o, emit: e }) {
36
- const s = m(0), n = m(!1), l = m(), u = m(), r = t, v = e, y = w(() => n.value || r.keepalive), d = m(!1), a = ue({
36
+ const s = m(0), n = m(!1), l = m(), u = m(), r = t, v = e, y = x(() => n.value || r.keepalive), d = m(!1), a = ue({
37
37
  "--t-present-backdrop-opacity": "0.4",
38
38
  "--t-present-transition": "0.2s",
39
39
  "--t-present-content-transform": "0px",
40
40
  "--t-present-content-opacity": "1"
41
- }), c = w(() => r.duration / 1e3 + "s"), f = (x) => {
42
- r.backdrop ? x?.backdropOpacity && (a["--t-present-backdrop-opacity"] = x.backdropOpacity) : a["--t-present-backdrop-opacity"] = "0", x?.transition && (a["--t-present-transition"] = x.transition), x?.contentTransform && (a["--t-present-content-transform"] = x.contentTransform), x?.contentOpacity && (a["--t-present-content-opacity"] = x.contentOpacity);
41
+ }), c = x(() => r.duration / 1e3 + "s"), f = (w) => {
42
+ r.backdrop ? w?.backdropOpacity && (a["--t-present-backdrop-opacity"] = w.backdropOpacity) : a["--t-present-backdrop-opacity"] = "0", w.transition && (a["--t-present-transition"] = w.transition), w.contentTransform && (a["--t-present-content-transform"] = w.contentTransform), w.contentOpacity && (a["--t-present-content-opacity"] = w.contentOpacity);
43
43
  }, k = () => {
44
44
  if (r.bounce !== void 0 && !d.value) {
45
45
  d.value = !0;
46
- let x = r.bounce;
47
- (r.placement == "bottom" || r.placement == "right") && (x = `calc(${r.bounce} * -1)`), f({
48
- contentTransform: x,
46
+ let w = r.bounce;
47
+ (r.placement == "bottom" || r.placement == "right") && (w = `calc(${r.bounce} * -1)`), f({
48
+ contentTransform: w,
49
49
  transition: c.value,
50
50
  backdropOpacity: "0.4",
51
51
  contentOpacity: "1"
@@ -61,10 +61,10 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
61
61
  backdropOpacity: "0.4",
62
62
  contentOpacity: "1"
63
63
  });
64
- }, b = () => {
65
- let x = "0px", se = "1";
66
- r.placement == "bottom" || r.placement == "right" ? x = "100%" : r.placement == "top" || r.placement == "left" ? x = "-100%" : r.placement == "center" && (x = "0px", se = "0"), f({
67
- contentTransform: x,
64
+ }, h = () => {
65
+ let w = "0px", se = "1";
66
+ r.placement == "bottom" || r.placement == "right" ? w = "100%" : r.placement == "top" || r.placement == "left" ? w = "-100%" : r.placement == "center" && (w = "0px", se = "0"), f({
67
+ contentTransform: w,
68
68
  transition: c.value,
69
69
  contentOpacity: se,
70
70
  backdropOpacity: "0"
@@ -73,31 +73,31 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
73
73
  W(() => r.visible, () => {
74
74
  r.visible ? (d.value = !1, n.value = !0, s.value = Ke.getNewIndex(), setTimeout(() => {
75
75
  k();
76
- }, 50)) : (b(), setTimeout(() => {
76
+ }, 50)) : (h(), setTimeout(() => {
77
77
  n.value = !1;
78
78
  }, 200));
79
79
  }), o({
80
80
  render: f,
81
81
  open: k,
82
- close: b
82
+ close: h
83
83
  });
84
- const N = (x) => {
85
- x.preventDefault(), v("dismiss", "backdrop");
84
+ const N = (w) => {
85
+ w.preventDefault(), v("dismiss", "backdrop");
86
86
  };
87
- return U(() => {
88
- r.visible ? k() : b();
89
- }), (x, se) => (i(), p(q, null, [
87
+ return j(() => {
88
+ r.visible ? k() : h();
89
+ }), (w, se) => (i(), p(q, null, [
90
90
  y.value ? F((i(), p("div", {
91
91
  key: 0,
92
- class: B(["t-present", [{ [x.placement]: !0 }, r.class]]),
92
+ class: B(["t-present", [{ [w.placement]: !0 }, r.class]]),
93
93
  ref_key: "present",
94
94
  ref: u,
95
95
  style: T([a, { zIndex: s.value }, r.style])
96
96
  }, [
97
- g(x.$slots, "default", {}, void 0, !0)
97
+ g(w.$slots, "default", {}, void 0, !0)
98
98
  ], 6)), [
99
99
  [K, n.value]
100
- ]) : I("", !0),
100
+ ]) : z("", !0),
101
101
  y.value ? F((i(), p("div", {
102
102
  key: 1,
103
103
  class: "t-present-backdrop",
@@ -107,10 +107,10 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
107
107
  style: T([a, { zIndex: s.value - 1 }, r.style])
108
108
  }, null, 4)), [
109
109
  [K, n.value]
110
- ]) : I("", !0)
110
+ ]) : z("", !0)
111
111
  ], 64));
112
112
  }
113
- }), H = /* @__PURE__ */ _(Ve, [["__scopeId", "data-v-51935b1a"]]), Pe = /* @__PURE__ */ h({
113
+ }), H = /* @__PURE__ */ _(Ve, [["__scopeId", "data-v-d0ed0aab"]]), Pe = /* @__PURE__ */ b({
114
114
  __name: "t-loading-icon",
115
115
  props: {
116
116
  size: {
@@ -137,7 +137,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
137
137
  }), Z = /* @__PURE__ */ _(Pe, [["__scopeId", "data-v-7c463303"]]), Re = { class: "t-button-content" }, Ae = {
138
138
  key: 0,
139
139
  class: "loader"
140
- }, Oe = /* @__PURE__ */ h({
140
+ }, Oe = /* @__PURE__ */ b({
141
141
  __name: "t-button",
142
142
  props: {
143
143
  color: { default: null },
@@ -150,7 +150,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
150
150
  activeBackground: { type: Boolean, default: !1 }
151
151
  },
152
152
  setup(t) {
153
- const o = t, e = w(() => {
153
+ const o = t, e = x(() => {
154
154
  let s;
155
155
  return o.variant == "default" && (o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? s = {
156
156
  "--border": "none",
@@ -200,17 +200,17 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
200
200
  [K, !o.loading]
201
201
  ]),
202
202
  o.loading ? (i(), p("span", Ae, [
203
- j(Z, {
203
+ G(Z, {
204
204
  color: "var(--color)",
205
205
  type: o.loadingType
206
206
  }, null, 8, ["type"])
207
- ])) : I("", !0)
207
+ ])) : z("", !0)
208
208
  ], 6));
209
209
  }
210
- }), Y = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-185a9e49"]]), Xe = {
210
+ }), Y = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-d8c9aca1"]]), Xe = {
211
211
  key: 0,
212
212
  class: "t-alert-header"
213
- }, De = { class: "t-alert-content" }, We = { class: "t-alert-footer" }, Ne = /* @__PURE__ */ h({
213
+ }, De = { class: "t-alert-content" }, We = { class: "t-alert-footer" }, Ne = /* @__PURE__ */ b({
214
214
  __name: "t-alert",
215
215
  props: {
216
216
  title: {},
@@ -220,12 +220,12 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
220
220
  },
221
221
  emits: ["dismiss"],
222
222
  setup(t, { expose: o, emit: e }) {
223
- const s = t, n = m(!1), l = e, u = m(), r = m(!1), v = () => {
224
- n.value = !0;
223
+ const s = t, n = e, l = m(!1), u = m(), r = m(!1), v = () => {
224
+ l.value = !0;
225
225
  }, y = (a) => {
226
- n.value = !1, a.handler && a.handler(), l("dismiss", "choose", a?.data);
226
+ l.value = !1, a.handler && a.handler(), n("dismiss", "choose", a?.data);
227
227
  }, d = (a) => {
228
- s.dismiss && s.dismiss.includes(a) ? (n.value = !1, l("dismiss", a)) : a == "backdrop" && (r.value = !0, setTimeout(() => {
228
+ s.dismiss && s.dismiss.includes(a) ? (l.value = !1, n("dismiss", a)) : a == "backdrop" && (r.value = !0, setTimeout(() => {
229
229
  r.value = !1;
230
230
  }, 300));
231
231
  };
@@ -235,7 +235,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
235
235
  placement: "center",
236
236
  backdrop: !0,
237
237
  keepalive: !1,
238
- visible: n.value,
238
+ visible: l.value,
239
239
  onDismiss: d
240
240
  }, {
241
241
  default: P(() => [
@@ -245,14 +245,14 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
245
245
  ref: u
246
246
  }, [
247
247
  g(a.$slots, "header", {}, () => [
248
- s.title ? (i(), p("div", Xe, A(s.title), 1)) : I("", !0)
248
+ s.title ? (i(), p("div", Xe, A(s.title), 1)) : z("", !0)
249
249
  ], !0),
250
250
  g(a.$slots, "content", {}, () => [
251
251
  $("div", De, A(s.message), 1)
252
252
  ], !0),
253
253
  g(a.$slots, "footer", {}, () => [
254
254
  $("div", We, [
255
- (i(!0), p(q, null, G(s.actions, (f) => (i(), V(Y, {
255
+ (i(!0), p(q, null, U(s.actions, (f) => (i(), V(Y, {
256
256
  color: f.color,
257
257
  variant: f.variant,
258
258
  onClick: (k) => y(f)
@@ -269,7 +269,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
269
269
  _: 3
270
270
  }, 8, ["visible"]));
271
271
  }
272
- }), me = /* @__PURE__ */ _(Ne, [["__scopeId", "data-v-05d0c578"]]), wo = (t = {}) => ({
272
+ }), me = /* @__PURE__ */ _(Ne, [["__scopeId", "data-v-fe19a4e9"]]), bo = (t = {}) => ({
273
273
  open() {
274
274
  return new Promise((o) => {
275
275
  let e = document.body.querySelector(".t-app");
@@ -294,7 +294,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
294
294
  }, 50);
295
295
  });
296
296
  }
297
- }), qe = /* @__PURE__ */ h({
297
+ }), qe = /* @__PURE__ */ b({
298
298
  __name: "t-action",
299
299
  props: {
300
300
  actions: {},
@@ -303,12 +303,12 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
303
303
  },
304
304
  emits: ["dismiss"],
305
305
  setup(t, { expose: o, emit: e }) {
306
- const s = t, n = m(!1), l = e, u = m(), r = m(!1), v = () => {
307
- n.value = !0;
306
+ const s = t, n = e, l = m(!1), u = m(), r = m(!1), v = () => {
307
+ l.value = !0;
308
308
  }, y = (a) => {
309
- n.value = !1, a.handler && a.handler(), l("dismiss", "choose", a?.data);
309
+ l.value = !1, a.handler && a.handler(), n("dismiss", "choose", a?.data);
310
310
  }, d = (a) => {
311
- s.dismiss && s.dismiss.includes(a) ? (n.value = !1, l("dismiss", a)) : a == "backdrop" && (r.value = !0, setTimeout(() => {
311
+ s.dismiss && s.dismiss.includes(a) ? (l.value = !1, n("dismiss", a)) : a == "backdrop" && (r.value = !0, setTimeout(() => {
312
312
  r.value = !1;
313
313
  }, 300));
314
314
  };
@@ -321,7 +321,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
321
321
  placement: "bottom",
322
322
  backdrop: !0,
323
323
  keepalive: !1,
324
- visible: n.value,
324
+ visible: l.value,
325
325
  onDismiss: d
326
326
  }, {
327
327
  default: P(() => [
@@ -330,12 +330,12 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
330
330
  ref_key: "container",
331
331
  ref: u
332
332
  }, [
333
- (i(!0), p(q, null, G(s.actions, (f) => (i(), p("div", null, [
334
- (i(!0), p(q, null, G(f, (k) => (i(), V(Y, {
333
+ (i(!0), p(q, null, U(s.actions, (f) => (i(), p("div", null, [
334
+ (i(!0), p(q, null, U(f, (k) => (i(), V(Y, {
335
335
  color: k.color,
336
336
  size: k.size,
337
337
  variant: k.variant,
338
- onClick: (b) => y(k),
338
+ onClick: (h) => y(k),
339
339
  block: ""
340
340
  }, {
341
341
  default: P(() => [
@@ -349,7 +349,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
349
349
  _: 1
350
350
  }, 8, ["visible"]));
351
351
  }
352
- }), Me = /* @__PURE__ */ _(qe, [["__scopeId", "data-v-9fc077a4"]]), To = (t = {}) => ({
352
+ }), Me = /* @__PURE__ */ _(qe, [["__scopeId", "data-v-7db152ee"]]), ho = (t = {}) => ({
353
353
  open() {
354
354
  return new Promise((o) => {
355
355
  let e = document.body.querySelector(".t-app");
@@ -374,7 +374,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
374
374
  }, 50);
375
375
  });
376
376
  }
377
- }), Le = { class: "t-loading" }, He = /* @__PURE__ */ h({
377
+ }), Le = { class: "t-loading" }, He = /* @__PURE__ */ b({
378
378
  __name: "t-loading",
379
379
  props: {
380
380
  type: { default: "spinner" }
@@ -398,7 +398,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
398
398
  default: P(() => [
399
399
  $("div", Le, [
400
400
  g(r.$slots, "default", {}, () => [
401
- j(Z, {
401
+ G(Z, {
402
402
  type: s.type
403
403
  }, null, 8, ["type"])
404
404
  ], !0)
@@ -407,7 +407,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
407
407
  _: 3
408
408
  }, 8, ["visible"]));
409
409
  }
410
- }), Fe = /* @__PURE__ */ _(He, [["__scopeId", "data-v-8f84c14e"]]), So = (t = {}) => {
410
+ }), Fe = /* @__PURE__ */ _(He, [["__scopeId", "data-v-8f84c14e"]]), ko = (t = {}) => {
411
411
  const o = m(), e = document.body.querySelector(".t-app");
412
412
  let s = null, n = null;
413
413
  return {
@@ -437,27 +437,27 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
437
437
  getNewIndex() {
438
438
  return ie.value += 2, ie.value;
439
439
  }
440
- }, X = ue([]), ee = m(!0), C = m(!1), R = m(-1), z = w(() => X[R.value]), L = w(() => X[R.value + 1] || void 0), E = w(() => X[X.length - 2]), ve = w(() => !C.value && ee.value && E.value), D = (t = !0) => {
441
- let e = z.value.target.closest(".t-app").offsetWidth;
440
+ }, X = ue([]), ee = m(!0), I = m(!1), R = m(-1), C = x(() => X[R.value]), L = x(() => X[R.value + 1] || void 0), E = x(() => X[X.length - 2]), ve = x(() => !I.value && ee.value && E.value), D = (t = !0) => {
441
+ let e = C.value.target.closest(".t-app").offsetWidth;
442
442
  return t ? e + "px" : e;
443
443
  }, te = {
444
444
  reset() {
445
- C.value = !0;
446
- const t = D(), o = z.value.target, e = E.value.target;
445
+ I.value = !0;
446
+ const t = D(), o = C.value.target, e = E.value.target;
447
447
  o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", e.style.transition = "transform 0.35s ease", e.style.transform = `translateX(calc(${t} / 100 * 30 * -1)) scale(0.5) perspective(${t}) rotateY(30deg)`, document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
448
- C.value = !1;
448
+ I.value = !1;
449
449
  }, 400);
450
450
  },
451
451
  move(t) {
452
452
  if (!ve.value) return;
453
- const o = D(!1), e = o + "px", s = t / o * 100, n = z.value.target, l = E.value.target;
453
+ const o = D(!1), e = o + "px", s = t / o * 100, n = C.value.target, l = E.value.target;
454
454
  t > 15 && t <= o && (n.style.transition = "transform 0s ease", n.style.transform = `translateX(${t}px)`, l.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), l.style.transform = `translateX(calc((${e} / 100 * 30 * -1) + ((${e} / 100 * 30) / 100 * ${s}))) scale(${0.5 + 0.5 / 100 * s}) perspective(${e}) rotateY(${30 - 30 / 100 * s}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * s}`));
455
455
  },
456
456
  back(t) {
457
457
  if (!E.value) return;
458
458
  const o = D();
459
- z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = `translateX(${o}) scale(1)`, E.value.target.style.transition = "transform 0.35s ease", E.value.target.style.transform = `translateX(0px) scale(1) perspective(${o}) rotateY(0deg)`, document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), C.value = !0, setTimeout(() => {
460
- le(), C.value = !1, R.value -= 1, t && t();
459
+ C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = `translateX(${o}) scale(1)`, E.value.target.style.transition = "transform 0.35s ease", E.value.target.style.transform = `translateX(0px) scale(1) perspective(${o}) 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(() => {
460
+ le(), I.value = !1, R.value -= 1, t && t();
461
461
  }, 400);
462
462
  },
463
463
  next(t) {
@@ -466,31 +466,31 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
466
466
  R.value += 1, t && t();
467
467
  return;
468
468
  }
469
- C.value = !0;
469
+ I.value = !0;
470
470
  const o = L.value.target, e = D();
471
471
  o.style.transform = `translateX(${e})`, o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
472
- o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), z.value && (z.value.target.style.transitionOrigin = "left center", z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = `translateX(calc(${e} / 100 * 30 * -1)) scale(0.5) perspective(${e}) rotateY(30deg)`), setTimeout(() => {
473
- C.value = !1, R.value += 1, t && t();
472
+ o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), C.value && (C.value.target.style.transitionOrigin = "left center", C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = `translateX(calc(${e} / 100 * 30 * -1)) scale(0.5) perspective(${e}) rotateY(30deg)`), setTimeout(() => {
473
+ I.value = !1, R.value += 1, t && t();
474
474
  }, 400);
475
475
  }, 100);
476
476
  }
477
477
  }, oe = {
478
478
  reset() {
479
- C.value = !0;
480
- const t = D(), o = z.value.target, e = E.value.target;
479
+ I.value = !0;
480
+ const t = D(), o = C.value.target, e = E.value.target;
481
481
  o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", e.style.transition = "transform 0.35s ease", e.style.transform = `translateX(calc(${t} / 100 * 30 * -1))`, document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
482
- C.value = !1;
482
+ I.value = !1;
483
483
  }, 400);
484
484
  },
485
485
  move(t) {
486
- const o = D(!1), e = o + "px", s = t / o * 100, n = z.value.target, l = E.value.target;
486
+ const o = D(!1), e = o + "px", s = t / o * 100, n = C.value.target, l = E.value.target;
487
487
  t > 15 && t <= o && (n.style.transition = "transform 0s ease", n.style.transform = `translateX(${t}px)`, l.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), l.style.transform = `translateX(calc((${e} / 100 * 30 * -1) + ((${e} / 100 * 30) / 100 * ${s})))`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * s}`));
488
488
  },
489
489
  back(t) {
490
490
  if (!E.value) return;
491
491
  const o = D();
492
- z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = `translateX(${o}) scale(1)`, E.value.target.style.transition = "transform 0.35s ease", E.value.target.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), C.value = !0, setTimeout(() => {
493
- le(), C.value = !1, R.value -= 1, t && t();
492
+ C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = `translateX(${o}) scale(1)`, E.value.target.style.transition = "transform 0.35s ease", E.value.target.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), I.value = !0, setTimeout(() => {
493
+ le(), I.value = !1, R.value -= 1, t && t();
494
494
  }, 400);
495
495
  },
496
496
  next(t) {
@@ -499,21 +499,21 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
499
499
  R.value += 1, t && t();
500
500
  return;
501
501
  }
502
- C.value = !0;
502
+ I.value = !0;
503
503
  const o = L.value.target, e = D();
504
504
  o.style.transform = `translateX(${e})`, o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
505
- o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), z.value && (z.value.target.style.transitionOrigin = "left center", z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = `translateX(calc(${e} / 100 * 30 * -1))`), setTimeout(() => {
506
- C.value = !1, R.value += 1, t && t();
505
+ o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), C.value && (C.value.target.style.transitionOrigin = "left center", C.value.target.style.transition = "transform 0.35s ease", C.value.target.style.transform = `translateX(calc(${e} / 100 * 30 * -1))`), setTimeout(() => {
506
+ I.value = !1, R.value += 1, t && t();
507
507
  }, 400);
508
508
  }, 100);
509
509
  }
510
- }, Ge = (t) => {
510
+ }, Ue = (t) => {
511
511
  X.push(t);
512
- }, Ue = (t, o) => {
512
+ }, je = (t, o) => {
513
513
  X[t].target = o;
514
514
  }, le = (t) => {
515
515
  t || X.pop();
516
- }, je = () => {
516
+ }, Ge = () => {
517
517
  X.splice(0, X.length);
518
518
  }, Je = () => {
519
519
  ee.value = !1;
@@ -528,24 +528,24 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
528
528
  }, tt = (t) => {
529
529
  t == "scale" && te.reset(), t == "transform" && oe.reset();
530
530
  }, S = {
531
- isBusy: C,
531
+ isBusy: I,
532
532
  isSwipeable: ve,
533
533
  reset: tt,
534
534
  next: Ze,
535
535
  back: Ye,
536
536
  move: et,
537
537
  screens: X,
538
- addScreen: Ge,
539
- addScreenEl: Ue,
538
+ addScreen: Ue,
539
+ addScreenEl: je,
540
540
  removeScreen: le,
541
- removeAllScreen: je,
541
+ removeAllScreen: Ge,
542
542
  lockSwipe: Je,
543
543
  unlockSwipe: Qe,
544
544
  swipeable: ee,
545
- currentScreen: z,
545
+ currentScreen: C,
546
546
  lastScreen: E,
547
547
  nextScreen: L
548
- }, ot = { class: "t-toast-content" }, st = /* @__PURE__ */ h({
548
+ }, ot = { class: "t-toast-content" }, st = /* @__PURE__ */ b({
549
549
  __name: "t-toast",
550
550
  props: {
551
551
  message: {},
@@ -569,7 +569,7 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
569
569
  W(() => s.visible, (a) => {
570
570
  a ? v() : y();
571
571
  });
572
- const d = w(() => {
572
+ const d = x(() => {
573
573
  let a;
574
574
  return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? a = {
575
575
  "--border": "none",
@@ -620,9 +620,9 @@ const Ee = /* @__PURE__ */ _(ze, [["render", Ie]]), Ve = /* @__PURE__ */ h({
620
620
  g(a.$slots, "content", {}, () => [
621
621
  $("div", ot, A(s.message), 1)
622
622
  ], !0)
623
- ], 6)) : I("", !0);
623
+ ], 6)) : z("", !0);
624
624
  }
625
- }), ye = /* @__PURE__ */ _(st, [["__scopeId", "data-v-2802d43f"]]), Bo = (t = {}) => ({
625
+ }), ye = /* @__PURE__ */ _(st, [["__scopeId", "data-v-2802d43f"]]), $o = (t = {}) => ({
626
626
  open() {
627
627
  let o = document.body.querySelector(".t-app");
628
628
  if (!o) return;
@@ -653,7 +653,7 @@ function _e() {
653
653
  height: nt
654
654
  };
655
655
  }
656
- const rt = /* @__PURE__ */ h({
656
+ const rt = /* @__PURE__ */ b({
657
657
  __name: "t-cable",
658
658
  props: {
659
659
  keyboard: { type: Boolean, default: !1 },
@@ -670,13 +670,13 @@ const rt = /* @__PURE__ */ h({
670
670
  g(s.$slots, "default", {}, void 0, !0)
671
671
  ], 6));
672
672
  }
673
- }), at = /* @__PURE__ */ _(rt, [["__scopeId", "data-v-6cae224b"]]), lt = /* @__PURE__ */ h({
673
+ }), at = /* @__PURE__ */ _(rt, [["__scopeId", "data-v-27e0d794"]]), lt = /* @__PURE__ */ b({
674
674
  __name: "t-card",
675
675
  props: {
676
676
  color: { default: null }
677
677
  },
678
678
  setup(t) {
679
- const o = t, e = w(() => {
679
+ const o = t, e = x(() => {
680
680
  let s;
681
681
  return o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? s = {
682
682
  "--background": "var(--t-color-status-" + o.color + ")"
@@ -699,7 +699,7 @@ function ut(t, o) {
699
699
  g(t.$slots, "default", {}, void 0, !0)
700
700
  ]);
701
701
  }
702
- const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0"]]), dt = /* @__PURE__ */ h({
702
+ const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0"]]), dt = /* @__PURE__ */ b({
703
703
  __name: "t-refresher",
704
704
  props: {
705
705
  threshold: { default: 120 },
@@ -736,8 +736,8 @@ const ge = /* @__PURE__ */ _(ct, [["render", ut], ["__scopeId", "data-v-ce0031a0
736
736
  d();
737
737
  return;
738
738
  }
739
- const b = f < 0 ? 0 : f;
740
- n.value = b, e("move", b);
739
+ const h = f < 0 ? 0 : f;
740
+ n.value = h, e("move", h);
741
741
  },
742
742
  up({ deltaY: f, initialDirection: k }) {
743
743
  l.value || v || k != "down" || (s.variant == "up" && f >= s.threshold ? d() : a());
@@ -769,7 +769,7 @@ function vt(t, o) {
769
769
  g(t.$slots, "default", {}, void 0, !0)
770
770
  ]);
771
771
  }
772
- const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c"]]), yt = /* @__PURE__ */ h({
772
+ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c"]]), yt = /* @__PURE__ */ b({
773
773
  __name: "t-swipe-screen",
774
774
  props: {
775
775
  variant: { default: "scale" },
@@ -781,7 +781,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
781
781
  let e = {};
782
782
  const s = o, n = t;
783
783
  let l;
784
- const u = n.router || fe(), r = n.route || we(), v = u.getRoutes(), y = m();
784
+ const u = n.router || fe(), r = n.route || xe(), v = u.getRoutes(), y = m();
785
785
  for (let c of v)
786
786
  e[c.name] = c.component || c.components;
787
787
  const d = (c) => {
@@ -799,7 +799,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
799
799
  c != S.currentScreen.value?.name && (S.lastScreen.value?.name == c ? S.back(n.variant, () => {
800
800
  s("change");
801
801
  }) : d(r.name));
802
- }), U(() => {
802
+ }), j(() => {
803
803
  d(r.name), l = ae(document.body, {
804
804
  beforeEvent(c) {
805
805
  return !!S.isSwipeable.value;
@@ -825,11 +825,11 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
825
825
  }), re(() => {
826
826
  l && l.destroy(), S.removeAllScreen();
827
827
  }), (c, f) => (i(), p(q, null, [
828
- (i(!0), p(q, null, G(O(S).screens, (k, b) => (i(), V(be, {
828
+ (i(!0), p(q, null, U(O(S).screens, (k, h) => (i(), V(be, {
829
829
  ref_for: !0,
830
- ref: (N) => a(b, N),
831
- style: T({ zIndex: b + (b == O(S).screens.length - 1 ? 2 : 1) }),
832
- key: b
830
+ ref: (N) => a(h, N),
831
+ style: T({ zIndex: h + (h == O(S).screens.length - 1 ? 2 : 1) }),
832
+ key: h
833
833
  }, {
834
834
  default: P(() => [
835
835
  (i(), V(ke(k.component.default)))
@@ -844,7 +844,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
844
844
  }, null, 4)
845
845
  ], 64));
846
846
  }
847
- }), _t = /* @__PURE__ */ _(yt, [["__scopeId", "data-v-4d584b03"]]), gt = /* @__PURE__ */ h({
847
+ }), _t = /* @__PURE__ */ _(yt, [["__scopeId", "data-v-4d584b03"]]), gt = /* @__PURE__ */ b({
848
848
  __name: "t-toolbar",
849
849
  props: {
850
850
  placement: { default: null },
@@ -852,7 +852,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
852
852
  size: { default: "50px" }
853
853
  },
854
854
  setup(t) {
855
- const o = t, e = pe("cableState"), s = w(() => o?.placement || e?.placement);
855
+ const o = t, e = pe("cableState"), s = x(() => o?.placement || e?.placement);
856
856
  return (n, l) => (i(), p("div", {
857
857
  class: B(["t-toolbar", { [s.value]: !0, safe: o.safe }]),
858
858
  style: T({ "--t-size-toolbar": o.size })
@@ -862,14 +862,14 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
862
862
  ])
863
863
  ], 6));
864
864
  }
865
- }), bt = /* @__PURE__ */ _(gt, [["__scopeId", "data-v-1ee9866d"]]), ht = /* @__PURE__ */ h({
865
+ }), bt = /* @__PURE__ */ _(gt, [["__scopeId", "data-v-1ee9866d"]]), ht = /* @__PURE__ */ b({
866
866
  __name: "t-back-button",
867
867
  props: {
868
868
  to: {},
869
869
  router: {}
870
870
  },
871
871
  setup(t) {
872
- const o = t, e = xe(), s = o.router || fe(), n = (l) => {
872
+ const o = t, e = we(), s = o.router || fe(), n = (l) => {
873
873
  if (e.onBack) {
874
874
  e.onBack(l);
875
875
  return;
@@ -884,16 +884,16 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
884
884
  g(l.$slots, "default", {}, () => [
885
885
  u[0] || (u[0] = $("i", { class: "ri-arrow-left-s-line" }, null, -1))
886
886
  ], !0)
887
- ])) : I("", !0);
887
+ ])) : z("", !0);
888
888
  }
889
- }), kt = /* @__PURE__ */ _(ht, [["__scopeId", "data-v-dcf9d363"]]), $t = /* @__PURE__ */ h({
889
+ }), kt = /* @__PURE__ */ _(ht, [["__scopeId", "data-v-437fb635"]]), $t = /* @__PURE__ */ b({
890
890
  __name: "t-text",
891
891
  props: {
892
892
  color: { default: "var(--t-color-text)" },
893
893
  size: { default: "standard" }
894
894
  },
895
895
  setup(t) {
896
- const o = t, e = w(() => {
896
+ const o = t, e = x(() => {
897
897
  let s, n = o.color;
898
898
  return o.size == "standard" ? s = "var(--t-fs-10)" : o.size == "small" ? s = "var(--t-fs-08)" : o.size == "large" ? s = "var(--t-fs-12)" : s = o.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (n = `var(--t-color-status-${o.color})`), {
899
899
  "--color": n,
@@ -907,7 +907,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
907
907
  g(s.$slots, "default", {}, void 0, !0)
908
908
  ], 4));
909
909
  }
910
- }), ne = /* @__PURE__ */ _($t, [["__scopeId", "data-v-f0f94f05"]]), xt = /* @__PURE__ */ h({
910
+ }), ne = /* @__PURE__ */ _($t, [["__scopeId", "data-v-f0f94f05"]]), wt = /* @__PURE__ */ b({
911
911
  __name: "t-gesture-indicator",
912
912
  props: {
913
913
  placement: { default: "bottom" }
@@ -917,7 +917,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
917
917
  class: B(["t-gesture-indicator", { [o.placement]: !0 }])
918
918
  }, null, 2));
919
919
  }
920
- }), he = /* @__PURE__ */ _(xt, [["__scopeId", "data-v-ed8f7308"]]), wt = /* @__PURE__ */ h({
920
+ }), he = /* @__PURE__ */ _(wt, [["__scopeId", "data-v-ed8f7308"]]), xt = /* @__PURE__ */ b({
921
921
  __name: "t-sheet",
922
922
  props: {
923
923
  background: { default: "var(--t-color-surface)" },
@@ -930,13 +930,15 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
930
930
  backdrop: { type: Boolean, default: !0 },
931
931
  rounded: { type: Boolean, default: !0 },
932
932
  indicator: { type: Boolean, default: !0 },
933
+ duration: { default: 200 },
934
+ bounce: {},
933
935
  style: {}
934
936
  },
935
937
  emits: ["dismiss"],
936
938
  setup(t, { emit: o }) {
937
939
  const e = t, s = o, n = m(), l = m(), u = m(!1);
938
940
  let r = null;
939
- const v = w(() => {
941
+ const v = x(() => {
940
942
  if (e.placement == "bottom") return "down";
941
943
  if (e.placement == "top") return "up";
942
944
  if (e.placement == "left") return "left";
@@ -965,9 +967,9 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
965
967
  },
966
968
  move({ deltaY: c, deltaX: f, initialDirection: k }) {
967
969
  if (k != v.value) return;
968
- let b = 0;
969
- e.placement == "bottom" || e.placement == "top" ? b = c : b = f, e.placement == "bottom" && (b = c > 0 ? c : 0), e.placement == "top" && (b = c < 0 ? c : 0), e.placement == "left" && (b = f < 0 ? f : 0), e.placement == "right" && (b = f > 0 ? f : 0), (e.placement == "bottom" && (b >= 10 || this.isMoving) || e.placement == "top" && (b <= -10 || this.isMoving) || e.placement == "left" && (b <= -10 || this.isMoving) || e.placement == "right" && (b >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
970
- contentTransform: b + "px",
970
+ let h = 0;
971
+ e.placement == "bottom" || e.placement == "top" ? h = c : h = f, e.placement == "bottom" && (h = c > 0 ? c : 0), e.placement == "top" && (h = c < 0 ? c : 0), e.placement == "left" && (h = f < 0 ? f : 0), e.placement == "right" && (h = f > 0 ? f : 0), (e.placement == "bottom" && (h >= 10 || this.isMoving) || e.placement == "top" && (h <= -10 || this.isMoving) || e.placement == "left" && (h <= -10 || this.isMoving) || e.placement == "right" && (h >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
972
+ contentTransform: h + "px",
971
973
  transition: "0s"
972
974
  }));
973
975
  },
@@ -976,8 +978,8 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
976
978
  l.value.open();
977
979
  return;
978
980
  }
979
- let b, N, x;
980
- e.placement == "bottom" || e.placement == "top" ? (b = n.value.offsetHeight, x = c) : (b = n.value.offsetWidth, x = f), N = x / b * 100, N > 50 ? s("dismiss", "gesture") : l.value.open();
981
+ let h, N, w;
982
+ e.placement == "bottom" || e.placement == "top" ? (h = n.value.offsetHeight, w = c) : (h = n.value.offsetWidth, w = f), N = w / h * 100, N > 50 ? s("dismiss", "gesture") : l.value.open();
981
983
  },
982
984
  cancel() {
983
985
  this.isMoving = !1, d(), l.value.open();
@@ -988,6 +990,8 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
988
990
  }), (a, c) => (i(), V(H, {
989
991
  ref_key: "present",
990
992
  ref: l,
993
+ duration: e.duration,
994
+ bounce: e.bounce,
991
995
  class: B(e.class),
992
996
  placement: e.placement,
993
997
  backdrop: a.backdrop,
@@ -1000,7 +1004,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1000
1004
  e.gesture && e.indicator && e.placement != "center" ? (i(), V(he, {
1001
1005
  key: 0,
1002
1006
  placement: e.placement
1003
- }, null, 8, ["placement"])) : I("", !0),
1007
+ }, null, 8, ["placement"])) : z("", !0),
1004
1008
  $("div", {
1005
1009
  class: B(["t-sheet", { fullscreen: e.fullscreen, [e.placement]: !0, rounded: a.rounded }]),
1006
1010
  style: T({ "--background": e.background }),
@@ -1011,9 +1015,9 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1011
1015
  ], 6)
1012
1016
  ]),
1013
1017
  _: 3
1014
- }, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
1018
+ }, 8, ["duration", "bounce", "class", "placement", "backdrop", "visible", "keepalive", "style"]));
1015
1019
  }
1016
- }), Tt = /* @__PURE__ */ _(wt, [["__scopeId", "data-v-729ed53a"]]), St = { class: "t-input-label" }, Bt = { class: "t-input-content" }, zt = ["placeholder", "value", "type", "readonly"], Ct = /* @__PURE__ */ h({
1020
+ }), Tt = /* @__PURE__ */ _(xt, [["__scopeId", "data-v-7592e0e6"]]), St = { class: "t-input-label" }, Bt = { class: "t-input-content" }, Ct = ["placeholder", "value", "type", "readonly"], It = /* @__PURE__ */ b({
1017
1021
  __name: "t-input",
1018
1022
  props: {
1019
1023
  size: { default: "standard" },
@@ -1029,7 +1033,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1029
1033
  },
1030
1034
  emits: ["update:modelValue"],
1031
1035
  setup(t, { emit: o }) {
1032
- const e = t, s = o, n = m(!1), l = m(null), u = w(
1036
+ const e = t, s = o, n = m(!1), l = m(null), u = x(
1033
1037
  () => !(e.modelValue === "" || e.modelValue == null)
1034
1038
  ), r = (d) => {
1035
1039
  s("update:modelValue", d.target.value);
@@ -1063,7 +1067,7 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1063
1067
  onFocus: v,
1064
1068
  onBlur: y,
1065
1069
  readonly: d.readonly
1066
- }, null, 40, zt),
1070
+ }, null, 40, Ct),
1067
1071
  g(d.$slots, "end", {}, void 0, !0)
1068
1072
  ])
1069
1073
  ]),
@@ -1083,10 +1087,10 @@ const be = /* @__PURE__ */ _(ft, [["render", vt], ["__scopeId", "data-v-c2a3436c
1083
1087
  M(A(d.help), 1)
1084
1088
  ]),
1085
1089
  _: 1
1086
- })) : I("", !0)
1090
+ })) : z("", !0)
1087
1091
  ], 2));
1088
1092
  }
1089
- }), It = /* @__PURE__ */ _(Ct, [["__scopeId", "data-v-11ddaa71"]]), Et = {};
1093
+ }), zt = /* @__PURE__ */ _(It, [["__scopeId", "data-v-11ddaa71"]]), Et = {};
1090
1094
  function Vt(t, o) {
1091
1095
  return i(), p("textarea");
1092
1096
  }
@@ -1094,15 +1098,16 @@ const Pt = /* @__PURE__ */ _(Et, [["render", Vt]]), Rt = {};
1094
1098
  function At(t, o) {
1095
1099
  return i(), p("div");
1096
1100
  }
1097
- const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = {}, Dt = { class: "t-grid" };
1098
- function Wt(t, o) {
1099
- return i(), p("div", Dt);
1100
- }
1101
- const Nt = /* @__PURE__ */ _(Xt, [["render", Wt]]), qt = {}, Mt = { class: "t-grid-item" };
1102
- function Lt(t, o) {
1103
- return i(), p("div", Mt);
1104
- }
1105
- const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1101
+ const Ot = /* @__PURE__ */ _(Rt, [["render", At]]), Xt = { class: "t-grid" }, Dt = /* @__PURE__ */ b({
1102
+ __name: "t-grid",
1103
+ props: {
1104
+ gap: { default: 0 },
1105
+ template: { default: 1 }
1106
+ },
1107
+ setup(t) {
1108
+ return (o, e) => (i(), p("div", Xt));
1109
+ }
1110
+ }), Wt = /* @__PURE__ */ _(Dt, [["__scopeId", "data-v-93ba455c"]]), Nt = /* @__PURE__ */ b({
1106
1111
  __name: "t-divider",
1107
1112
  props: {
1108
1113
  direction: { default: "horizontal" }
@@ -1113,20 +1118,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1113
1118
  class: B(["t-divider", { [o.direction]: !0 }])
1114
1119
  }, null, 2));
1115
1120
  }
1116
- }), Kt = /* @__PURE__ */ _(Ft, [["__scopeId", "data-v-47ee8991"]]), Gt = /* @__PURE__ */ h({
1121
+ }), qt = /* @__PURE__ */ _(Nt, [["__scopeId", "data-v-47ee8991"]]), Mt = /* @__PURE__ */ b({
1117
1122
  __name: "t-toggle-password",
1118
1123
  props: {
1119
1124
  color: { default: "warning" }
1120
1125
  },
1121
1126
  emits: ["change"],
1122
1127
  setup(t, { emit: o }) {
1123
- const e = t, s = o, n = m(!1), l = m(), u = w(() => {
1128
+ const e = t, s = o, n = m(!1), l = m(), u = x(() => {
1124
1129
  let y = e.color;
1125
1130
  return ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) && (y = `var(--t-color-status-${e.color})`), {
1126
1131
  "--color": y
1127
1132
  };
1128
1133
  }), r = () => l.value?.parentElement?.querySelector?.("input");
1129
- U(() => {
1134
+ j(() => {
1130
1135
  let y = r();
1131
1136
  y && (n.value = y.type != "password", s("change", n.value));
1132
1137
  });
@@ -1143,20 +1148,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1143
1148
  }, [
1144
1149
  n.value ? g(y.$slots, "on", { key: 0 }, () => [
1145
1150
  d[0] || (d[0] = $("i", { class: "ri-eye-line" }, null, -1))
1146
- ], !0) : I("", !0),
1147
- n.value ? I("", !0) : g(y.$slots, "off", { key: 1 }, () => [
1151
+ ], !0) : z("", !0),
1152
+ n.value ? z("", !0) : g(y.$slots, "off", { key: 1 }, () => [
1148
1153
  d[1] || (d[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
1149
1154
  ], !0)
1150
1155
  ], 4));
1151
1156
  }
1152
- }), Ut = /* @__PURE__ */ _(Gt, [["__scopeId", "data-v-3268e9e3"]]), jt = /* @__PURE__ */ h({
1157
+ }), Lt = /* @__PURE__ */ _(Mt, [["__scopeId", "data-v-3268e9e3"]]), Ht = /* @__PURE__ */ b({
1153
1158
  __name: "t-avatar",
1154
1159
  props: {
1155
1160
  square: { type: Boolean, default: !1 },
1156
1161
  size: { default: "standard" }
1157
1162
  },
1158
1163
  setup(t) {
1159
- const o = t, e = w(() => o.size == "small" ? "24px" : o.size == "standard" ? "40px" : o.size == "large" ? "60px" : o.size);
1164
+ const o = t, e = x(() => o.size == "small" ? "24px" : o.size == "standard" ? "40px" : o.size == "large" ? "60px" : o.size);
1160
1165
  return (s, n) => (i(), p("div", {
1161
1166
  class: B(["t-avatar", { square: s.square }]),
1162
1167
  style: T({ "--size": e.value })
@@ -1164,13 +1169,13 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1164
1169
  g(s.$slots, "default", {}, void 0, !0)
1165
1170
  ], 6));
1166
1171
  }
1167
- }), Jt = /* @__PURE__ */ _(jt, [["__scopeId", "data-v-24384c2f"]]), Qt = { class: "t-collapse-title" }, Zt = {
1172
+ }), Ft = /* @__PURE__ */ _(Ht, [["__scopeId", "data-v-1d223827"]]), Kt = { class: "t-collapse-title" }, Ut = {
1168
1173
  key: 0,
1169
1174
  class: "icon"
1170
- }, Yt = {
1175
+ }, jt = {
1171
1176
  key: 1,
1172
1177
  class: "icon"
1173
- }, eo = { class: "t-collapse-content" }, to = /* @__PURE__ */ h({
1178
+ }, Gt = { class: "t-collapse-content" }, Jt = /* @__PURE__ */ b({
1174
1179
  __name: "t-collapse",
1175
1180
  props: {
1176
1181
  title: {}
@@ -1189,20 +1194,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1189
1194
  onClick: r
1190
1195
  }, [
1191
1196
  g(v.$slots, "icon"),
1192
- $("div", Qt, [
1197
+ $("div", Kt, [
1193
1198
  g(v.$slots, "title", {}, () => [
1194
1199
  M(A(e.title), 1)
1195
1200
  ])
1196
1201
  ]),
1197
1202
  g(v.$slots, "toggle", {}, () => [
1198
- n.value ? (i(), p("div", Zt, [...y[0] || (y[0] = [
1203
+ n.value ? (i(), p("div", Ut, [...y[0] || (y[0] = [
1199
1204
  $("i", { class: "ri-arrow-up-s-line" }, null, -1)
1200
- ])])) : (i(), p("div", Yt, [...y[1] || (y[1] = [
1205
+ ])])) : (i(), p("div", jt, [...y[1] || (y[1] = [
1201
1206
  $("i", { class: "ri-arrow-down-s-line" }, null, -1)
1202
1207
  ])]))
1203
1208
  ])
1204
1209
  ]),
1205
- $("div", eo, [
1210
+ $("div", Gt, [
1206
1211
  $("div", {
1207
1212
  ref_key: "content",
1208
1213
  ref: u
@@ -1214,7 +1219,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1214
1219
  ])
1215
1220
  ], 6));
1216
1221
  }
1217
- }), oo = /* @__PURE__ */ h({
1222
+ }), Qt = /* @__PURE__ */ b({
1218
1223
  __name: "t-switch",
1219
1224
  props: {
1220
1225
  modelValue: { type: Boolean },
@@ -1224,7 +1229,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1224
1229
  setup(t, { emit: o }) {
1225
1230
  const e = t, s = o, n = () => {
1226
1231
  s("update:modelValue", !e.modelValue);
1227
- }, l = w(() => {
1232
+ }, l = x(() => {
1228
1233
  let u = {
1229
1234
  "--background": e.color,
1230
1235
  "--color": "#ffffff"
@@ -1242,20 +1247,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1242
1247
  $("div", { class: "t-switch-icon" }, null, -1)
1243
1248
  ])], 6));
1244
1249
  }
1245
- }), so = /* @__PURE__ */ _(oo, [["__scopeId", "data-v-3616970e"]]), no = /* @__PURE__ */ h({
1250
+ }), Zt = /* @__PURE__ */ _(Qt, [["__scopeId", "data-v-3616970e"]]), Yt = /* @__PURE__ */ b({
1246
1251
  __name: "t-tab",
1247
1252
  props: {
1248
1253
  value: {},
1249
1254
  disabled: { type: Boolean, default: !1 }
1250
1255
  },
1251
1256
  setup(t) {
1252
- const o = t, e = pe("tabsState"), s = w(() => e.activeValue.value === o.value), n = () => {
1257
+ const o = t, e = pe("tabsState"), s = x(() => e.activeValue.value === o.value), n = () => {
1253
1258
  o.disabled || e.setValue(o.value);
1254
1259
  };
1255
1260
  return (l, u) => (i(), p("li", {
1256
1261
  class: B(["t-tab", { active: s.value }])
1257
1262
  }, [
1258
- j(Y, {
1263
+ G(Y, {
1259
1264
  variant: "text",
1260
1265
  onClick: n,
1261
1266
  size: O(e).size,
@@ -1268,7 +1273,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1268
1273
  }, 8, ["size", "color"])
1269
1274
  ], 2));
1270
1275
  }
1271
- }), ro = /* @__PURE__ */ _(no, [["__scopeId", "data-v-4b7f4e98"]]), ao = /* @__PURE__ */ h({
1276
+ }), eo = /* @__PURE__ */ _(Yt, [["__scopeId", "data-v-4b7f4e98"]]), to = /* @__PURE__ */ b({
1272
1277
  __name: "t-tabs",
1273
1278
  props: {
1274
1279
  placement: { default: "top-start" },
@@ -1282,10 +1287,10 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1282
1287
  },
1283
1288
  emits: ["update:modelValue"],
1284
1289
  setup(t, { emit: o }) {
1285
- const e = t, s = o, n = m("0px"), l = m(0), u = m(0), r = m(), v = w(() => {
1290
+ const e = t, s = o, n = m("0px"), l = m(0), u = m(0), r = m(), v = x(() => {
1286
1291
  let a = "", c = "";
1287
1292
  return e.variant == "text" && (a = "transparent", ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? c = `var(--t-color-status-${e.color})` : c = e.color), e.variant == "border-under" && (c = "currentColor", ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? a = `var(--t-color-status-${e.color})` : a = e.color), e.variant == "tag" && (["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? (a = `var(--t-color-status-${e.color})`, c = `var(--t-color-status-${e.color}-text)`) : (a = e.color, c = "currentColor")), { background: a, text: c };
1288
- }), y = w(() => e.variant == "border-under" ? {
1293
+ }), y = x(() => e.variant == "border-under" ? {
1289
1294
  "--transform": n.value,
1290
1295
  "--border": e.border + "px"
1291
1296
  } : e.variant == "tag" ? {
@@ -1324,7 +1329,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1324
1329
  }
1325
1330
  };
1326
1331
  return de("tabsState", {
1327
- activeValue: w(() => e.modelValue),
1332
+ activeValue: x(() => e.modelValue),
1328
1333
  color: v.value,
1329
1334
  size: e.size,
1330
1335
  variant: e.variant,
@@ -1333,7 +1338,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1333
1338
  }
1334
1339
  }), W(() => e.modelValue, async () => {
1335
1340
  await ce(), d();
1336
- }), U(async () => {
1341
+ }), j(async () => {
1337
1342
  await ce(), d();
1338
1343
  }), (a, c) => (i(), p("ul", {
1339
1344
  ref_key: "container",
@@ -1344,20 +1349,20 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1344
1349
  g(a.$slots, "default", {}, void 0, !0)
1345
1350
  ], 6));
1346
1351
  }
1347
- }), lo = /* @__PURE__ */ _(ao, [["__scopeId", "data-v-8d370631"]]), co = /* @__PURE__ */ h({
1352
+ }), oo = /* @__PURE__ */ _(to, [["__scopeId", "data-v-8d370631"]]), so = /* @__PURE__ */ b({
1348
1353
  __name: "t-loading-app",
1349
1354
  setup(t) {
1350
1355
  return (o, e) => (i(), V(ge, null, {
1351
1356
  default: P(() => [
1352
- j(Z, { type: "spinner" })
1357
+ G(Z, { type: "spinner" })
1353
1358
  ]),
1354
1359
  _: 1
1355
1360
  }));
1356
1361
  }
1357
- }), io = /* @__PURE__ */ _(co, [["__scopeId", "data-v-1436aa9f"]]), uo = { key: 0 }, po = {
1362
+ }), no = /* @__PURE__ */ _(so, [["__scopeId", "data-v-1436aa9f"]]), ro = { key: 0 }, ao = {
1358
1363
  key: 0,
1359
1364
  class: "t-checkbox-label"
1360
- }, fo = /* @__PURE__ */ h({
1365
+ }, lo = /* @__PURE__ */ b({
1361
1366
  __name: "t-checkbox",
1362
1367
  props: {
1363
1368
  label: { default: "" },
@@ -1370,7 +1375,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1370
1375
  },
1371
1376
  emits: ["update:modelValue"],
1372
1377
  setup(t, { emit: o }) {
1373
- const e = t, s = o, n = w(() => {
1378
+ const e = t, s = o, n = x(() => {
1374
1379
  let r = {
1375
1380
  "--background": e.color,
1376
1381
  "--color": "#ffffff"
@@ -1379,7 +1384,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1379
1384
  "--background": `var(--t-color-status-${e.color})`,
1380
1385
  "--color": `var(--t-color-status-${e.color}-text)`
1381
1386
  }), r;
1382
- }), l = w(() => e.multiple ? e.modelValue.includes(e.value) : e.value === void 0 ? e.modelValue : e.modelValue == e.value), u = () => {
1387
+ }), l = x(() => e.multiple ? e.modelValue.includes(e.value) : e.value === void 0 ? e.modelValue : e.modelValue == e.value), u = () => {
1383
1388
  if (e.multiple) {
1384
1389
  let r = e.modelValue;
1385
1390
  e.modelValue.includes(e.value) ? r.splice(r.indexOf(e.value), 1) : r.push(e.value), s("update:modelValue", r);
@@ -1393,17 +1398,17 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1393
1398
  $("div", {
1394
1399
  class: B(`t-checkbox-${r.type}`)
1395
1400
  }, [
1396
- r.type == "radio" ? (i(), p("div", uo)) : I("", !0),
1401
+ r.type == "radio" ? (i(), p("div", ro)) : z("", !0),
1397
1402
  r.type == "check" ? g(r.$slots, "icon", { key: 1 }, () => [
1398
1403
  v[0] || (v[0] = $("i", { class: "ri-check-line" }, null, -1))
1399
- ], !0) : I("", !0)
1404
+ ], !0) : z("", !0)
1400
1405
  ], 2),
1401
1406
  g(r.$slots, "label", {}, () => [
1402
- r.label ? (i(), p("span", po, A(e.label), 1)) : I("", !0)
1407
+ r.label ? (i(), p("span", ao, A(e.label), 1)) : z("", !0)
1403
1408
  ], !0)
1404
1409
  ], 6));
1405
1410
  }
1406
- }), mo = /* @__PURE__ */ _(fo, [["__scopeId", "data-v-0e13abc3"]]), vo = /* @__PURE__ */ h({
1411
+ }), co = /* @__PURE__ */ _(lo, [["__scopeId", "data-v-5cc0c692"]]), io = /* @__PURE__ */ b({
1407
1412
  __name: "t-keyboard-space",
1408
1413
  setup(t) {
1409
1414
  const { height: o } = _e();
@@ -1412,7 +1417,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1412
1417
  style: T({ "--height": O(o) + "px" })
1413
1418
  }, null, 4));
1414
1419
  }
1415
- }), yo = /* @__PURE__ */ _(vo, [["__scopeId", "data-v-4b06018d"]]), _o = /* @__PURE__ */ h({
1420
+ }), uo = /* @__PURE__ */ _(io, [["__scopeId", "data-v-4b06018d"]]), po = /* @__PURE__ */ b({
1416
1421
  __name: "t-skeleton",
1417
1422
  props: {
1418
1423
  width: { default: "100%" },
@@ -1421,7 +1426,7 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1421
1426
  color: { default: null }
1422
1427
  },
1423
1428
  setup(t) {
1424
- const o = t, e = w(() => ({
1429
+ const o = t, e = x(() => ({
1425
1430
  "--width": o.width,
1426
1431
  "--height": o.height,
1427
1432
  "--radius": o.radius
@@ -1431,13 +1436,13 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1431
1436
  style: T(e.value)
1432
1437
  }, null, 4));
1433
1438
  }
1434
- }), go = /* @__PURE__ */ _(_o, [["__scopeId", "data-v-877bbdb5"]]), bo = /* @__PURE__ */ h({
1439
+ }), fo = /* @__PURE__ */ _(po, [["__scopeId", "data-v-877bbdb5"]]), mo = /* @__PURE__ */ b({
1435
1440
  __name: "t-ripple",
1436
1441
  props: {
1437
1442
  color: { default: "primary" }
1438
1443
  },
1439
1444
  setup(t) {
1440
- const o = t, e = w(() => {
1445
+ const o = t, e = x(() => {
1441
1446
  let s = {};
1442
1447
  return o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? s = {
1443
1448
  "--color": "var(--t-color-status-" + o.color + ")"
@@ -1452,18 +1457,18 @@ const Ht = /* @__PURE__ */ _(qt, [["render", Lt]]), Ft = /* @__PURE__ */ h({
1452
1457
  style: T(e.value)
1453
1458
  }, null, 4));
1454
1459
  }
1455
- }), ho = /* @__PURE__ */ _(bo, [["__scopeId", "data-v-42cb3d71"]]), zo = () => ({
1460
+ }), vo = /* @__PURE__ */ _(mo, [["__scopeId", "data-v-42cb3d71"]]), wo = () => ({
1456
1461
  install: (t) => {
1457
- Be(), t.component("t-app", Ee), t.component("t-screen", be), t.component("t-swipe-screen", _t), t.component("t-cable", at), t.component("t-toolbar", bt), t.component("t-content", ge), t.component("t-card", lt), t.component("t-refresher", pt), t.component("t-button", Y), t.component("t-back-button", kt), t.component("t-present", H), t.component("t-text", ne), t.component("t-sheet", Tt), t.component("t-gesture-indicator", he), t.component("t-input", It), t.component("t-textarea", Pt), t.component("t-rich-text", Ot), t.component("t-grid", Nt), t.component("t-grid-item", Ht), t.component("t-divider", Kt), t.component("t-toggle-password", Ut), t.component("t-loading-icon", Z), t.component("t-alert", me), t.component("t-avatar", Jt), t.component("t-collapse", to), t.component("t-toast", ye), t.component("t-switch", so), t.component("t-tab", ro), t.component("t-tabs", lo), t.component("t-loading-app", io), t.component("t-checkbox", mo), t.component("t-keyboard-space", yo), t.component("t-skeleton", go), t.component("t-ripple", ho);
1462
+ Be(), t.component("t-app", Ee), t.component("t-screen", be), t.component("t-swipe-screen", _t), t.component("t-cable", at), t.component("t-toolbar", bt), t.component("t-content", ge), t.component("t-card", lt), t.component("t-refresher", pt), t.component("t-button", Y), t.component("t-back-button", kt), t.component("t-present", H), t.component("t-text", ne), t.component("t-sheet", Tt), t.component("t-gesture-indicator", he), t.component("t-input", zt), t.component("t-textarea", Pt), t.component("t-rich-text", Ot), t.component("t-grid", Wt), t.component("t-divider", qt), t.component("t-toggle-password", Lt), t.component("t-loading-icon", Z), t.component("t-alert", me), t.component("t-avatar", Ft), t.component("t-collapse", Jt), t.component("t-toast", ye), t.component("t-switch", Zt), t.component("t-tab", eo), t.component("t-tabs", oo), t.component("t-loading-app", no), t.component("t-checkbox", co), t.component("t-keyboard-space", uo), t.component("t-skeleton", fo), t.component("t-ripple", vo);
1458
1463
  }
1459
1464
  });
1460
1465
  export {
1461
1466
  Se as blurCurrentActive,
1462
- To as createAction,
1463
- wo as createAlert,
1464
- So as createLoading,
1465
- Bo as createToast,
1466
- zo as createToife,
1467
+ ho as createAction,
1468
+ bo as createAlert,
1469
+ ko as createLoading,
1470
+ $o as createToast,
1471
+ wo as createToife,
1467
1472
  Te as isFormElement,
1468
1473
  Ke as presentController,
1469
1474
  S as screenController,