@toife/vue 1.3.6 → 2.0.0

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,25 +1,25 @@
1
- import { createElementBlock as p, openBlock as c, renderSlot as b, defineComponent as h, ref as v, computed as w, reactive as ce, watch as X, onMounted as G, Fragment as W, withDirectives as M, createCommentVNode as I, normalizeStyle as x, normalizeClass as S, vShow as H, createElementVNode as $, createVNode as U, createBlock as E, withCtx as V, toDisplayString as R, renderList as F, createTextVNode as N, createApp as j, h as K, provide as ie, unref as A, onUnmounted as se, resolveDynamicComponent as be, markRaw as he, inject as ue, useAttrs as ke, nextTick as ae } from "vue";
2
- import { gesture as re } from "@toife/gesture";
3
- import { useRouter as de, useRoute as $e } from "vue-router";
4
- const we = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isContentEditable), xe = () => {
1
+ import { createElementBlock as p, openBlock as c, renderSlot as b, defineComponent as h, ref as v, computed as w, reactive as ce, watch as X, onMounted as G, Fragment as W, withDirectives as L, createCommentVNode as z, normalizeStyle as x, normalizeClass as S, vShow as H, createElementVNode as $, createVNode as U, createBlock as E, withCtx as P, toDisplayString as V, renderList as F, createTextVNode as N, createApp as j, h as K, provide as ie, unref as A, onUnmounted as re, resolveDynamicComponent as be, markRaw as he, inject as ue, useAttrs as ke, withModifiers as $e, nextTick as oe } from "vue";
2
+ import { gesture as ne } from "@toife/gesture";
3
+ import { useRouter as de, useRoute as we } from "vue-router";
4
+ const xe = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isContentEditable), Te = () => {
5
5
  const e = document.activeElement;
6
6
  e && (e.tagName === "INPUT" || e.tagName === "TEXTAREA" || e.isContentEditable) && e.blur();
7
- }, Te = () => {
7
+ }, Se = () => {
8
8
  document.addEventListener("contextmenu", (e) => e.preventDefault()), document.addEventListener("selectstart", (e) => e.preventDefault()), document.addEventListener("pointerup", (e) => {
9
- !we(e.target) && xe();
9
+ !xe(e.target) && Te();
10
10
  });
11
- }, _ = (e, o) => {
11
+ }, g = (e, o) => {
12
12
  const t = e.__vccOpts || e;
13
13
  for (const [s, r] of o)
14
14
  t[s] = r;
15
15
  return t;
16
- }, Se = {}, Be = { class: "t-app" };
16
+ }, Be = {}, Ce = { class: "t-app" };
17
17
  function ze(e, o) {
18
- return c(), p("div", Be, [
18
+ return c(), p("div", Ce, [
19
19
  b(e.$slots, "default")
20
20
  ]);
21
21
  }
22
- const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
22
+ const Ie = /* @__PURE__ */ g(Be, [["render", ze]]), Ee = /* @__PURE__ */ h({
23
23
  __name: "t-present",
24
24
  props: {
25
25
  keepalive: { type: Boolean, default: !0 },
@@ -31,21 +31,21 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
31
31
  },
32
32
  emits: ["dismiss"],
33
33
  setup(e, { expose: o, emit: t }) {
34
- const s = v(0), r = v(!1), l = v(), d = v(), a = e, f = t, i = w(() => r.value || a.keepalive), g = ce({
34
+ const s = v(0), r = v(!1), l = v(), d = v(), a = e, f = t, y = w(() => r.value || a.keepalive), u = ce({
35
35
  "--t-present-backdrop-opacity": "0.4",
36
36
  "--t-present-transition": "0.2s",
37
37
  "--t-present-content-transform": "0px",
38
38
  "--t-present-content-opacity": "1"
39
39
  }), n = (m) => {
40
- a.backdrop ? m?.backdropOpacity && (g["--t-present-backdrop-opacity"] = m.backdropOpacity) : g["--t-present-backdrop-opacity"] = "0", m?.transition && (g["--t-present-transition"] = m.transition, g["--t-present-transition"] = m.transition), m?.contentTransform && (g["--t-present-content-transform"] = m.contentTransform), m?.contentOpacity && (g["--t-present-content-opacity"] = m.contentOpacity);
41
- }, u = () => {
40
+ a.backdrop ? m?.backdropOpacity && (u["--t-present-backdrop-opacity"] = m.backdropOpacity) : u["--t-present-backdrop-opacity"] = "0", m?.transition && (u["--t-present-transition"] = m.transition, u["--t-present-transition"] = m.transition), m?.contentTransform && (u["--t-present-content-transform"] = m.contentTransform), m?.contentOpacity && (u["--t-present-content-opacity"] = m.contentOpacity);
41
+ }, i = () => {
42
42
  n({
43
43
  contentTransform: "0px",
44
44
  transition: "0.2s",
45
45
  backdropOpacity: "0.4",
46
46
  contentOpacity: "1"
47
47
  });
48
- }, y = () => {
48
+ }, _ = () => {
49
49
  let m = "0px", O = "1";
50
50
  a.placement == "bottom" || a.placement == "right" ? m = "100%" : a.placement == "top" || a.placement == "left" ? m = "-100%" : a.placement == "center" && (m = "0px", O = "0"), n({
51
51
  contentTransform: m,
@@ -55,46 +55,46 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
55
55
  });
56
56
  };
57
57
  X(() => a.visible, () => {
58
- a.visible ? (r.value = !0, s.value = He.getNewIndex(), setTimeout(() => {
59
- u();
60
- }, 50)) : (y(), setTimeout(() => {
58
+ a.visible ? (r.value = !0, s.value = Fe.getNewIndex(), setTimeout(() => {
59
+ i();
60
+ }, 50)) : (_(), setTimeout(() => {
61
61
  r.value = !1;
62
62
  }, 200));
63
63
  }), o({
64
64
  render: n,
65
- open: u,
66
- close: y
65
+ open: i,
66
+ close: _
67
67
  });
68
68
  const k = (m) => {
69
69
  m.preventDefault(), f("dismiss", "backdrop");
70
70
  };
71
71
  return G(() => {
72
- a.visible ? u() : y();
72
+ a.visible ? i() : _();
73
73
  }), (m, O) => (c(), p(W, null, [
74
- i.value ? M((c(), p("div", {
74
+ y.value ? L((c(), p("div", {
75
75
  key: 0,
76
76
  class: S(["t-present", [{ [m.placement]: !0 }, a.class]]),
77
77
  ref_key: "present",
78
78
  ref: d,
79
- style: x([g, { zIndex: s.value }, a.style])
79
+ style: x([u, { zIndex: s.value }, a.style])
80
80
  }, [
81
81
  b(m.$slots, "default", {}, void 0, !0)
82
82
  ], 6)), [
83
83
  [H, r.value]
84
- ]) : I("", !0),
85
- i.value ? M((c(), p("div", {
84
+ ]) : z("", !0),
85
+ y.value ? L((c(), p("div", {
86
86
  key: 1,
87
87
  class: "t-present-backdrop",
88
88
  onClick: k,
89
89
  ref_key: "backdrop",
90
90
  ref: l,
91
- style: x([g, { zIndex: s.value - 1 }, a.style])
91
+ style: x([u, { zIndex: s.value - 1 }, a.style])
92
92
  }, null, 4)), [
93
93
  [H, r.value]
94
- ]) : I("", !0)
94
+ ]) : z("", !0)
95
95
  ], 64));
96
96
  }
97
- }), L = /* @__PURE__ */ _(Ce, [["__scopeId", "data-v-1b25059f"]]), Ee = /* @__PURE__ */ h({
97
+ }), q = /* @__PURE__ */ g(Ee, [["__scopeId", "data-v-1b25059f"]]), Ve = /* @__PURE__ */ h({
98
98
  __name: "t-loading-icon",
99
99
  props: {
100
100
  size: {
@@ -118,10 +118,10 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
118
118
  "aria-label": "Loading..."
119
119
  }, null, 4));
120
120
  }
121
- }), J = /* @__PURE__ */ _(Ee, [["__scopeId", "data-v-7c463303"]]), Ve = { class: "t-button-content" }, Pe = {
121
+ }), J = /* @__PURE__ */ g(Ve, [["__scopeId", "data-v-7c463303"]]), Pe = { class: "t-button-content" }, Re = {
122
122
  key: 0,
123
123
  class: "loader"
124
- }, Re = /* @__PURE__ */ h({
124
+ }, Ae = /* @__PURE__ */ h({
125
125
  __name: "t-button",
126
126
  props: {
127
127
  color: { default: null },
@@ -178,23 +178,23 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
178
178
  class: S(["t-button", { "active-background": o.activeBackground, rounded: o.rounded, block: o.block, ["size-" + o.size]: !0 }]),
179
179
  style: x(t.value)
180
180
  }, [
181
- M($("span", Ve, [
181
+ L($("span", Pe, [
182
182
  b(s.$slots, "default", {}, void 0, !0)
183
183
  ], 512), [
184
184
  [H, !o.loading]
185
185
  ]),
186
- o.loading ? (c(), p("span", Pe, [
186
+ o.loading ? (c(), p("span", Re, [
187
187
  U(J, {
188
188
  color: "var(--color)",
189
189
  type: o.loadingType
190
190
  }, null, 8, ["type"])
191
- ])) : I("", !0)
191
+ ])) : z("", !0)
192
192
  ], 6));
193
193
  }
194
- }), Q = /* @__PURE__ */ _(Re, [["__scopeId", "data-v-185a9e49"]]), Ae = {
194
+ }), Q = /* @__PURE__ */ g(Ae, [["__scopeId", "data-v-185a9e49"]]), De = {
195
195
  key: 0,
196
196
  class: "t-alert-header"
197
- }, De = { class: "t-alert-content" }, Xe = { class: "t-alert-footer" }, Oe = /* @__PURE__ */ h({
197
+ }, Xe = { class: "t-alert-content" }, Oe = { class: "t-alert-footer" }, We = /* @__PURE__ */ h({
198
198
  __name: "t-alert",
199
199
  props: {
200
200
  title: {},
@@ -206,43 +206,43 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
206
206
  setup(e, { expose: o, emit: t }) {
207
207
  const s = e, r = v(!1), l = t, d = v(), a = v(!1), f = () => {
208
208
  r.value = !0;
209
- }, i = (n) => {
209
+ }, y = (n) => {
210
210
  r.value = !1, n.handler && n.handler(), l("dismiss", "choose", n?.data);
211
- }, g = (n) => {
211
+ }, u = (n) => {
212
212
  s.dismiss && s.dismiss.includes(n) ? (r.value = !1, l("dismiss", n)) : n == "backdrop" && (a.value = !0, setTimeout(() => {
213
213
  a.value = !1;
214
214
  }, 300));
215
215
  };
216
216
  return o({
217
217
  open: f
218
- }), (n, u) => (c(), E(L, {
218
+ }), (n, i) => (c(), E(q, {
219
219
  placement: "center",
220
220
  backdrop: !0,
221
221
  keepalive: !1,
222
222
  visible: r.value,
223
- onDismiss: g
223
+ onDismiss: u
224
224
  }, {
225
- default: V(() => [
225
+ default: P(() => [
226
226
  $("div", {
227
227
  class: S(["t-alert", { pop: a.value }]),
228
228
  ref_key: "container",
229
229
  ref: d
230
230
  }, [
231
231
  b(n.$slots, "header", {}, () => [
232
- s.title ? (c(), p("div", Ae, R(s.title), 1)) : I("", !0)
232
+ s.title ? (c(), p("div", De, V(s.title), 1)) : z("", !0)
233
233
  ], !0),
234
234
  b(n.$slots, "content", {}, () => [
235
- $("div", De, R(s.message), 1)
235
+ $("div", Xe, V(s.message), 1)
236
236
  ], !0),
237
237
  b(n.$slots, "footer", {}, () => [
238
- $("div", Xe, [
239
- (c(!0), p(W, null, F(s.actions, (y) => (c(), E(Q, {
240
- color: y.color,
241
- variant: y.variant,
242
- onClick: (k) => i(y)
238
+ $("div", Oe, [
239
+ (c(!0), p(W, null, F(s.actions, (_) => (c(), E(Q, {
240
+ color: _.color,
241
+ variant: _.variant,
242
+ onClick: (k) => y(_)
243
243
  }, {
244
- default: V(() => [
245
- N(R(y.text), 1)
244
+ default: P(() => [
245
+ N(V(_.text), 1)
246
246
  ]),
247
247
  _: 2
248
248
  }, 1032, ["color", "variant", "onClick"]))), 256))
@@ -253,7 +253,7 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
253
253
  _: 3
254
254
  }, 8, ["visible"]));
255
255
  }
256
- }), pe = /* @__PURE__ */ _(Oe, [["__scopeId", "data-v-05d0c578"]]), $o = (e = {}) => ({
256
+ }), pe = /* @__PURE__ */ g(We, [["__scopeId", "data-v-05d0c578"]]), wo = (e = {}) => ({
257
257
  open() {
258
258
  return new Promise((o) => {
259
259
  let t = document.body.querySelector(".t-app");
@@ -278,7 +278,7 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
278
278
  }, 50);
279
279
  });
280
280
  }
281
- }), We = /* @__PURE__ */ h({
281
+ }), Ne = /* @__PURE__ */ h({
282
282
  __name: "t-action",
283
283
  props: {
284
284
  actions: {},
@@ -289,9 +289,9 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
289
289
  setup(e, { expose: o, emit: t }) {
290
290
  const s = e, r = v(!1), l = t, d = v(), a = v(!1), f = () => {
291
291
  r.value = !0;
292
- }, i = (n) => {
292
+ }, y = (n) => {
293
293
  r.value = !1, n.handler && n.handler(), l("dismiss", "choose", n?.data);
294
- }, g = (n) => {
294
+ }, u = (n) => {
295
295
  s.dismiss && s.dismiss.includes(n) ? (r.value = !1, l("dismiss", n)) : n == "backdrop" && (a.value = !0, setTimeout(() => {
296
296
  a.value = !1;
297
297
  }, 300));
@@ -301,29 +301,29 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
301
301
  }), o({
302
302
  open: f,
303
303
  close
304
- }), (n, u) => (c(), E(L, {
304
+ }), (n, i) => (c(), E(q, {
305
305
  placement: "bottom",
306
306
  backdrop: !0,
307
307
  keepalive: !1,
308
308
  visible: r.value,
309
- onDismiss: g
309
+ onDismiss: u
310
310
  }, {
311
- default: V(() => [
311
+ default: P(() => [
312
312
  $("div", {
313
313
  class: S(["t-action", { pop: a.value }]),
314
314
  ref_key: "container",
315
315
  ref: d
316
316
  }, [
317
- (c(!0), p(W, null, F(s.actions, (y) => (c(), p("div", null, [
318
- (c(!0), p(W, null, F(y, (k) => (c(), E(Q, {
317
+ (c(!0), p(W, null, F(s.actions, (_) => (c(), p("div", null, [
318
+ (c(!0), p(W, null, F(_, (k) => (c(), E(Q, {
319
319
  color: k.color,
320
320
  size: k.size,
321
321
  variant: k.variant,
322
- onClick: (m) => i(k),
322
+ onClick: (m) => y(k),
323
323
  block: ""
324
324
  }, {
325
- default: V(() => [
326
- N(R(k.text), 1)
325
+ default: P(() => [
326
+ N(V(k.text), 1)
327
327
  ]),
328
328
  _: 2
329
329
  }, 1032, ["color", "size", "variant", "onClick"]))), 256))
@@ -333,7 +333,7 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
333
333
  _: 1
334
334
  }, 8, ["visible"]));
335
335
  }
336
- }), Ne = /* @__PURE__ */ _(We, [["__scopeId", "data-v-844fb240"]]), wo = (e = {}) => ({
336
+ }), Me = /* @__PURE__ */ g(Ne, [["__scopeId", "data-v-844fb240"]]), xo = (e = {}) => ({
337
337
  open() {
338
338
  return new Promise((o) => {
339
339
  let t = document.body.querySelector(".t-app");
@@ -342,7 +342,7 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
342
342
  t.appendChild(s);
343
343
  const l = j({
344
344
  render() {
345
- return K(Ne, {
345
+ return K(Me, {
346
346
  ...e,
347
347
  ref: r,
348
348
  onDismiss: (d, a) => {
@@ -373,13 +373,13 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
373
373
  close: () => {
374
374
  r.value = !1;
375
375
  }
376
- }), (a, f) => (c(), E(L, {
376
+ }), (a, f) => (c(), E(q, {
377
377
  placement: "center",
378
378
  backdrop: !0,
379
379
  keepalive: !1,
380
380
  visible: r.value
381
381
  }, {
382
- default: V(() => [
382
+ default: P(() => [
383
383
  $("div", qe, [
384
384
  b(a.$slots, "default", {}, () => [
385
385
  U(J, {
@@ -391,7 +391,7 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
391
391
  _: 3
392
392
  }, 8, ["visible"]));
393
393
  }
394
- }), Me = /* @__PURE__ */ _(Le, [["__scopeId", "data-v-8f84c14e"]]), xo = (e = {}) => {
394
+ }), He = /* @__PURE__ */ g(Le, [["__scopeId", "data-v-8f84c14e"]]), To = (e = {}) => {
395
395
  const o = v(), t = document.body.querySelector(".t-app");
396
396
  let s = null, r = null;
397
397
  return {
@@ -399,7 +399,7 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
399
399
  return new Promise((l) => {
400
400
  t && (r = document.createElement("div"), t.appendChild(r), s = j({
401
401
  render() {
402
- return K(Me, {
402
+ return K(He, {
403
403
  ...e,
404
404
  ref: o
405
405
  });
@@ -417,112 +417,112 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
417
417
  });
418
418
  }
419
419
  };
420
- }, le = v(1e3), He = {
420
+ }, le = v(1e3), Fe = {
421
421
  getNewIndex() {
422
422
  return le.value += 2, le.value;
423
423
  }
424
- }, D = ce([]), Z = v(!0), z = v(!1), P = v(-1), B = w(() => D[P.value]), q = w(() => D[P.value + 1] || void 0), C = w(() => D[D.length - 2]), fe = w(() => !z.value && Z.value && C.value), Y = {
424
+ }, D = ce([]), Z = v(!0), C = v(!1), R = v(-1), B = w(() => D[R.value]), M = w(() => D[R.value + 1] || void 0), I = w(() => D[D.length - 2]), fe = w(() => !C.value && Z.value && I.value), Y = {
425
425
  reset() {
426
- z.value = !0;
427
- const e = B.value.target, o = C.value.target;
426
+ C.value = !0;
427
+ const e = B.value.target, o = I.value.target;
428
428
  e.style.transition = "transform 0.35s ease", e.style.transform = "translateX(0px)", o.style.transition = "transform 0.35s ease", o.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(() => {
429
- z.value = !1;
429
+ C.value = !1;
430
430
  }, 400);
431
431
  },
432
432
  move(e) {
433
433
  if (!fe.value) return;
434
- const o = window.innerWidth, t = e / o * 100, s = B.value.target, r = C.value.target;
434
+ const o = window.innerWidth, t = e / o * 100, s = B.value.target, r = I.value.target;
435
435
  e > 15 && e <= o && (e = e > 0 ? e : 0, s.style.transition = "transform 0s ease", s.style.transform = `translateX(${e}px)`, r.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), r.style.transform = `translateX(calc((var(--t-app-width) / 100 * 30 * -1) + ((var(--t-app-width) / 100 * 30) / 100 * ${t}))) scale(${0.5 + 0.5 / 100 * t}) perspective(var(--t-app-width)) rotateY(${30 - 30 / 100 * t}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * t}`));
436
436
  },
437
437
  back(e) {
438
- C.value && (B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", C.value.target.style.transition = "transform 0.35s ease", C.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"), z.value = !0, setTimeout(() => {
439
- ne(), z.value = !1, P.value -= 1, e && e();
438
+ I.value && (B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", I.value.target.style.transition = "transform 0.35s ease", I.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"), C.value = !0, setTimeout(() => {
439
+ ae(), C.value = !1, R.value -= 1, e && e();
440
440
  }, 400));
441
441
  },
442
442
  next(e) {
443
- if (!q.value) return;
444
- if (P.value == -1) {
445
- P.value += 1, e && e();
443
+ if (!M.value) return;
444
+ if (R.value == -1) {
445
+ R.value += 1, e && e();
446
446
  return;
447
447
  }
448
- z.value = !0;
449
- let o = q.value.target;
448
+ C.value = !0;
449
+ let o = M.value.target;
450
450
  o.style.transform = "translateX(var(--t-app-width))", o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
451
451
  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"), B.value && (B.value.target.style.transitionOrigin = "left center", B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)"), setTimeout(() => {
452
- z.value = !1, P.value += 1, e && e();
452
+ C.value = !1, R.value += 1, e && e();
453
453
  }, 400);
454
454
  }, 100);
455
455
  }
456
456
  }, ee = {
457
457
  reset() {
458
- z.value = !0;
459
- const e = B.value.target, o = C.value.target;
458
+ C.value = !0;
459
+ const e = B.value.target, o = I.value.target;
460
460
  e.style.transition = "transform 0.35s ease", e.style.transform = "translateX(0px)", o.style.transition = "transform 0.35s ease", o.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1))", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), setTimeout(() => {
461
- z.value = !1;
461
+ C.value = !1;
462
462
  }, 400);
463
463
  },
464
464
  move(e) {
465
- const o = window.innerWidth, t = e / o * 100, s = B.value.target, r = C.value.target;
465
+ const o = window.innerWidth, t = e / o * 100, s = B.value.target, r = I.value.target;
466
466
  e > 15 && e <= o && (e = e > 0 ? e : 0, s.style.transition = "transform 0s ease", s.style.transform = `translateX(${e}px)`, r.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), r.style.transform = `translateX(calc((var(--t-app-width) / 100 * 30 * -1) + ((var(--t-app-width) / 100 * 30) / 100 * ${t})))`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * t}`));
467
467
  },
468
468
  back(e) {
469
- C.value && (B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", C.value.target.style.transition = "transform 0.35s ease", C.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"), z.value = !0, setTimeout(() => {
470
- ne(), z.value = !1, P.value -= 1, e && e();
469
+ I.value && (B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", I.value.target.style.transition = "transform 0.35s ease", I.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(() => {
470
+ ae(), C.value = !1, R.value -= 1, e && e();
471
471
  }, 400));
472
472
  },
473
473
  next(e) {
474
- if (!q.value) return;
475
- if (P.value == -1) {
476
- P.value += 1, e && e();
474
+ if (!M.value) return;
475
+ if (R.value == -1) {
476
+ R.value += 1, e && e();
477
477
  return;
478
478
  }
479
- z.value = !0;
480
- let o = q.value.target;
479
+ C.value = !0;
480
+ let o = M.value.target;
481
481
  o.style.transform = "translateX(var(--t-app-width))", o.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
482
482
  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"), B.value && (B.value.target.style.transitionOrigin = "left center", B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1))"), setTimeout(() => {
483
- z.value = !1, P.value += 1, e && e();
483
+ C.value = !1, R.value += 1, e && e();
484
484
  }, 400);
485
485
  }, 100);
486
486
  }
487
- }, Fe = (e) => {
487
+ }, Ge = (e) => {
488
488
  D.push(e);
489
- }, Ge = (e, o) => {
489
+ }, Ue = (e, o) => {
490
490
  D[e].target = o;
491
- }, ne = (e) => {
491
+ }, ae = (e) => {
492
492
  e || D.pop();
493
- }, Ue = () => {
494
- D.splice(0, D.length);
495
493
  }, je = () => {
496
- Z.value = !1;
494
+ D.splice(0, D.length);
497
495
  }, Ke = () => {
496
+ Z.value = !1;
497
+ }, Je = () => {
498
498
  Z.value = !0;
499
- }, Je = (e, o) => {
500
- e == "scale" && Y.next(o), e == "transform" && ee.next(o);
501
499
  }, Qe = (e, o) => {
502
- e == "scale" && Y.back(o), e == "transform" && ee.back(o);
500
+ e == "scale" && Y.next(o), e == "transform" && ee.next(o);
503
501
  }, Ze = (e, o) => {
502
+ e == "scale" && Y.back(o), e == "transform" && ee.back(o);
503
+ }, Ye = (e, o) => {
504
504
  e == "scale" && Y.move(o), e == "transform" && ee.move(o);
505
- }, Ye = (e) => {
505
+ }, et = (e) => {
506
506
  e == "scale" && Y.reset(), e == "transform" && ee.reset();
507
507
  }, T = {
508
- isBusy: z,
508
+ isBusy: C,
509
509
  isSwipeable: fe,
510
- reset: Ye,
511
- next: Je,
512
- back: Qe,
513
- move: Ze,
510
+ reset: et,
511
+ next: Qe,
512
+ back: Ze,
513
+ move: Ye,
514
514
  screens: D,
515
- addScreen: Fe,
516
- addScreenEl: Ge,
517
- removeScreen: ne,
518
- removeAllScreen: Ue,
519
- lockSwipe: je,
520
- unlockSwipe: Ke,
515
+ addScreen: Ge,
516
+ addScreenEl: Ue,
517
+ removeScreen: ae,
518
+ removeAllScreen: je,
519
+ lockSwipe: Ke,
520
+ unlockSwipe: Je,
521
521
  swipeable: Z,
522
522
  currentScreen: B,
523
- lastScreen: C,
524
- nextScreen: q
525
- }, et = { class: "t-toast-content" }, tt = /* @__PURE__ */ h({
523
+ lastScreen: I,
524
+ nextScreen: M
525
+ }, tt = { class: "t-toast-content" }, ot = /* @__PURE__ */ h({
526
526
  __name: "t-toast",
527
527
  props: {
528
528
  message: {},
@@ -538,15 +538,15 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
538
538
  d.value = !0, a.value = !1, setTimeout(() => {
539
539
  l.value = !0;
540
540
  }, 10);
541
- }, i = () => {
541
+ }, y = () => {
542
542
  a.value = !0, setTimeout(() => {
543
543
  d.value = !1, l.value = !1, r("dismiss");
544
544
  }, 300);
545
545
  };
546
546
  X(() => s.visible, (n) => {
547
- n ? f() : i();
547
+ n ? f() : y();
548
548
  });
549
- const g = w(() => {
549
+ const u = w(() => {
550
550
  let n;
551
551
  return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? n = {
552
552
  "--border": "none",
@@ -588,18 +588,18 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
588
588
  });
589
589
  return o({
590
590
  open: f,
591
- close: i
592
- }), (n, u) => d.value ? (c(), p("div", {
591
+ close: y
592
+ }), (n, i) => d.value ? (c(), p("div", {
593
593
  key: 0,
594
594
  class: S(["t-toast", { [s.placement]: !0, open: l.value, closing: a.value }]),
595
- style: x({ "--space": s.space, ...g.value })
595
+ style: x({ "--space": s.space, ...u.value })
596
596
  }, [
597
597
  b(n.$slots, "content", {}, () => [
598
- $("div", et, R(s.message), 1)
598
+ $("div", tt, V(s.message), 1)
599
599
  ], !0)
600
- ], 6)) : I("", !0);
600
+ ], 6)) : z("", !0);
601
601
  }
602
- }), me = /* @__PURE__ */ _(tt, [["__scopeId", "data-v-2802d43f"]]), To = (e = {}) => ({
602
+ }), me = /* @__PURE__ */ g(ot, [["__scopeId", "data-v-2802d43f"]]), So = (e = {}) => ({
603
603
  open() {
604
604
  let o = document.body.querySelector(".t-app");
605
605
  if (!o) return;
@@ -624,13 +624,13 @@ const Ie = /* @__PURE__ */ _(Se, [["render", ze]]), Ce = /* @__PURE__ */ h({
624
624
  }, e.duration + 10);
625
625
  }, 50);
626
626
  }
627
- }), ot = v(0);
627
+ }), st = v(0);
628
628
  function ve() {
629
629
  return {
630
- height: ot
630
+ height: st
631
631
  };
632
632
  }
633
- const st = /* @__PURE__ */ h({
633
+ const rt = /* @__PURE__ */ h({
634
634
  __name: "t-cable",
635
635
  props: {
636
636
  keyboard: { type: Boolean, default: !1 },
@@ -647,7 +647,7 @@ const st = /* @__PURE__ */ h({
647
647
  b(s.$slots, "default", {}, void 0, !0)
648
648
  ], 6));
649
649
  }
650
- }), rt = /* @__PURE__ */ _(st, [["__scopeId", "data-v-6cae224b"]]), nt = /* @__PURE__ */ h({
650
+ }), nt = /* @__PURE__ */ g(rt, [["__scopeId", "data-v-6cae224b"]]), at = /* @__PURE__ */ h({
651
651
  __name: "t-card",
652
652
  props: {
653
653
  color: { default: null }
@@ -670,13 +670,13 @@ const st = /* @__PURE__ */ h({
670
670
  b(s.$slots, "default")
671
671
  ], 4));
672
672
  }
673
- }), at = {}, lt = { class: "t-content" };
674
- function ct(e, o) {
675
- return c(), p("div", lt, [
673
+ }), lt = {}, ct = { class: "t-content" };
674
+ function it(e, o) {
675
+ return c(), p("div", ct, [
676
676
  b(e.$slots, "default", {}, void 0, !0)
677
677
  ]);
678
678
  }
679
- const ye = /* @__PURE__ */ _(at, [["render", ct], ["__scopeId", "data-v-af750e89"]]), it = /* @__PURE__ */ h({
679
+ const ye = /* @__PURE__ */ g(lt, [["render", it], ["__scopeId", "data-v-af750e89"]]), ut = /* @__PURE__ */ h({
680
680
  __name: "t-refresher",
681
681
  props: {
682
682
  threshold: { default: 120 },
@@ -687,34 +687,34 @@ const ye = /* @__PURE__ */ _(at, [["render", ct], ["__scopeId", "data-v-af750e89
687
687
  setup(e, { emit: o }) {
688
688
  const t = o, s = e, r = v(0), l = v(!1), d = v();
689
689
  let a, f = !1;
690
- const i = () => {
690
+ const y = () => {
691
691
  l.value = !1, r.value = 0, a && a.cancel(), f = !1;
692
- }, g = () => {
693
- f = !0, l.value = !0, r.value = s.threshold, t("refresh", i);
692
+ }, u = () => {
693
+ f = !0, l.value = !0, r.value = s.threshold, t("refresh", y);
694
694
  }, n = () => {
695
695
  r.value = 0, l.value = !1, f = !1, t("cancel");
696
696
  };
697
697
  return X(() => d.value, () => {
698
698
  a && a.destroy();
699
- let u = d.value.closest(".t-content");
700
- u && (a = re(u, {
699
+ let i = d.value.closest(".t-content");
700
+ i && (a = ne(i, {
701
701
  options: {
702
702
  minDist: 60
703
703
  },
704
704
  down() {
705
705
  l.value || f || t("start");
706
706
  },
707
- move({ deltaY: y, initialDirection: k }) {
707
+ move({ deltaY: _, initialDirection: k }) {
708
708
  if (l.value || f || k != "down") return;
709
- if (s.variant == "max" && y >= s.threshold) {
710
- g();
709
+ if (s.variant == "max" && _ >= s.threshold) {
710
+ u();
711
711
  return;
712
712
  }
713
- const m = y < 0 ? 0 : y;
713
+ const m = _ < 0 ? 0 : _;
714
714
  r.value = m, t("move", m);
715
715
  },
716
- up({ deltaY: y, initialDirection: k }) {
717
- l.value || f || k != "down" || (s.variant == "up" && y >= s.threshold ? g() : n());
716
+ up({ deltaY: _, initialDirection: k }) {
717
+ l.value || f || k != "down" || (s.variant == "up" && _ >= s.threshold ? u() : n());
718
718
  },
719
719
  cancel() {
720
720
  l.value || f || n();
@@ -722,14 +722,14 @@ const ye = /* @__PURE__ */ _(at, [["render", ct], ["__scopeId", "data-v-af750e89
722
722
  }, {
723
723
  passive: !1
724
724
  }));
725
- }), se(() => {
725
+ }), re(() => {
726
726
  a && a.destroy();
727
- }), (u, y) => M((c(), p("div", {
728
- class: S(["t-refresher", { safe: u.safe }]),
727
+ }), (i, _) => L((c(), p("div", {
728
+ class: S(["t-refresher", { safe: i.safe }]),
729
729
  ref_key: "container",
730
730
  ref: d
731
731
  }, [
732
- b(u.$slots, "default", {
732
+ b(i.$slots, "default", {
733
733
  offset: r.value,
734
734
  refreshing: l.value
735
735
  }, void 0, !0)
@@ -737,13 +737,13 @@ const ye = /* @__PURE__ */ _(at, [["render", ct], ["__scopeId", "data-v-af750e89
737
737
  [H, r.value > 0]
738
738
  ]);
739
739
  }
740
- }), ut = /* @__PURE__ */ _(it, [["__scopeId", "data-v-1d52477a"]]), dt = {}, pt = { class: "t-screen" };
741
- function ft(e, o) {
742
- return c(), p("div", pt, [
740
+ }), dt = /* @__PURE__ */ g(ut, [["__scopeId", "data-v-1d52477a"]]), pt = {}, ft = { class: "t-screen" };
741
+ function mt(e, o) {
742
+ return c(), p("div", ft, [
743
743
  b(e.$slots, "default", {}, void 0, !0)
744
744
  ]);
745
745
  }
746
- const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c"]]), mt = /* @__PURE__ */ h({
746
+ const _e = /* @__PURE__ */ g(pt, [["render", mt], ["__scopeId", "data-v-c2a3436c"]]), vt = /* @__PURE__ */ h({
747
747
  __name: "t-swipe-screen",
748
748
  props: {
749
749
  variant: { default: "scale" },
@@ -755,58 +755,58 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
755
755
  let t = {};
756
756
  const s = o, r = e;
757
757
  let l;
758
- const d = r.router || de(), a = r.route || $e(), f = d.getRoutes();
758
+ const d = r.router || de(), a = r.route || we(), f = d.getRoutes();
759
759
  for (let n of f)
760
760
  t[n.name] = n.component || n.components;
761
- const i = (n) => {
761
+ const y = (n) => {
762
762
  n && T.addScreen({
763
763
  name: n,
764
764
  target: null,
765
765
  component: he(t[n] || null)
766
766
  });
767
- }, g = (n, u) => {
768
- !u || T.screens[n].target || (T.addScreenEl(n, u.$el), T.nextScreen && T.next(r.variant, () => {
767
+ }, u = (n, i) => {
768
+ !i || T.screens[n].target || (T.addScreenEl(n, i.$el), T.nextScreen && T.next(r.variant, () => {
769
769
  s("change");
770
770
  }));
771
771
  };
772
- return X(() => a.name, (n, u) => {
772
+ return X(() => a.name, (n, i) => {
773
773
  n != T.currentScreen.value?.name && (T.lastScreen.value?.name == n ? T.back(r.variant, () => {
774
774
  s("change");
775
- }) : i(a.name));
775
+ }) : y(a.name));
776
776
  }), G(() => {
777
- i(a.name), l = re(document.body, {
777
+ y(a.name), l = ne(document.body, {
778
778
  beforeEvent(n) {
779
779
  return !!T.isSwipeable.value;
780
780
  },
781
781
  fast({ initialDirection: n }) {
782
782
  T.lastScreen.value && n == "right" && d.back();
783
783
  },
784
- move({ deltaX: n, initialDirection: u }) {
785
- u == "right" && T.move(r.variant, n);
784
+ move({ deltaX: n, initialDirection: i }) {
785
+ i == "right" && T.move(r.variant, n);
786
786
  },
787
- up({ deltaX: n, initialDirection: u }) {
788
- if (u != "right") {
787
+ up({ deltaX: n, initialDirection: i }) {
788
+ if (i != "right") {
789
789
  T.reset(r.variant);
790
790
  return;
791
791
  }
792
- const y = window.innerWidth;
793
- n / y * 100 >= 50 ? d.back() : T.reset(r.variant);
792
+ const _ = window.innerWidth;
793
+ n / _ * 100 >= 50 ? d.back() : T.reset(r.variant);
794
794
  },
795
795
  cancel() {
796
796
  T.reset(r.variant);
797
797
  }
798
798
  });
799
- }), se(() => {
799
+ }), re(() => {
800
800
  l && l.destroy(), T.removeAllScreen();
801
- }), (n, u) => (c(), p(W, null, [
802
- (c(!0), p(W, null, F(A(T).screens, (y, k) => (c(), E(_e, {
801
+ }), (n, i) => (c(), p(W, null, [
802
+ (c(!0), p(W, null, F(A(T).screens, (_, k) => (c(), E(_e, {
803
803
  ref_for: !0,
804
- ref: (m) => g(k, m),
804
+ ref: (m) => u(k, m),
805
805
  style: x({ zIndex: k + (k == A(T).screens.length - 1 ? 2 : 1) }),
806
806
  key: k
807
807
  }, {
808
- default: V(() => [
809
- (c(), E(be(y.component.default)))
808
+ default: P(() => [
809
+ (c(), E(be(_.component.default)))
810
810
  ]),
811
811
  _: 2
812
812
  }, 1032, ["style"]))), 128)),
@@ -816,7 +816,7 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
816
816
  }, null, 4)
817
817
  ], 64));
818
818
  }
819
- }), vt = /* @__PURE__ */ _(mt, [["__scopeId", "data-v-23e0cfda"]]), yt = /* @__PURE__ */ h({
819
+ }), yt = /* @__PURE__ */ g(vt, [["__scopeId", "data-v-23e0cfda"]]), _t = /* @__PURE__ */ h({
820
820
  __name: "t-toolbar",
821
821
  props: {
822
822
  placement: { default: null },
@@ -834,7 +834,7 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
834
834
  ])
835
835
  ], 6));
836
836
  }
837
- }), _t = /* @__PURE__ */ _(yt, [["__scopeId", "data-v-1ee9866d"]]), gt = /* @__PURE__ */ h({
837
+ }), gt = /* @__PURE__ */ g(_t, [["__scopeId", "data-v-1ee9866d"]]), bt = /* @__PURE__ */ h({
838
838
  __name: "t-back-button",
839
839
  props: {
840
840
  to: {},
@@ -856,9 +856,9 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
856
856
  b(l.$slots, "default", {}, () => [
857
857
  d[0] || (d[0] = $("i", { class: "ri-arrow-left-s-line" }, null, -1))
858
858
  ], !0)
859
- ])) : I("", !0);
859
+ ])) : z("", !0);
860
860
  }
861
- }), bt = /* @__PURE__ */ _(gt, [["__scopeId", "data-v-dcf9d363"]]), ht = /* @__PURE__ */ h({
861
+ }), ht = /* @__PURE__ */ g(bt, [["__scopeId", "data-v-dcf9d363"]]), kt = /* @__PURE__ */ h({
862
862
  __name: "t-text",
863
863
  props: {
864
864
  color: { default: "var(--t-color-text)" },
@@ -879,7 +879,7 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
879
879
  b(s.$slots, "default", {}, void 0, !0)
880
880
  ], 4));
881
881
  }
882
- }), oe = /* @__PURE__ */ _(ht, [["__scopeId", "data-v-f0f94f05"]]), kt = /* @__PURE__ */ h({
882
+ }), se = /* @__PURE__ */ g(kt, [["__scopeId", "data-v-f0f94f05"]]), $t = /* @__PURE__ */ h({
883
883
  __name: "t-gesture-indicator",
884
884
  props: {
885
885
  placement: { default: "bottom" }
@@ -889,7 +889,7 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
889
889
  class: S(["t-gesture-indicator", { [o.placement]: !0 }])
890
890
  }, null, 2));
891
891
  }
892
- }), ge = /* @__PURE__ */ _(kt, [["__scopeId", "data-v-ed8f7308"]]), $t = /* @__PURE__ */ h({
892
+ }), ge = /* @__PURE__ */ g($t, [["__scopeId", "data-v-ed8f7308"]]), wt = /* @__PURE__ */ h({
893
893
  __name: "t-sheet",
894
894
  props: {
895
895
  background: { default: "var(--t-color-surface)" },
@@ -914,51 +914,51 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
914
914
  if (t.placement == "top") return "up";
915
915
  if (t.placement == "left") return "left";
916
916
  if (t.placement == "right") return "right";
917
- }), i = (n) => {
917
+ }), y = (n) => {
918
918
  s("dismiss", n);
919
- }, g = () => {
919
+ }, u = () => {
920
920
  d.value = !0, setTimeout(() => {
921
921
  d.value = !1;
922
922
  }, 300);
923
923
  };
924
924
  return X(() => r.value, (n) => {
925
- n && (a = re(r.value, {
925
+ n && (a = ne(r.value, {
926
926
  isMoving: !1,
927
927
  options: {
928
928
  minDist: 30
929
929
  },
930
- beforeEvent(u) {
930
+ beforeEvent(i) {
931
931
  return !(d.value || !t.gesture || t.placement == "center");
932
932
  },
933
933
  down() {
934
934
  this.isMoving = !1;
935
935
  },
936
- fast({ initialDirection: u }) {
937
- g(), u == f.value ? s("dismiss", "gesture") : l.value.open();
936
+ fast({ initialDirection: i }) {
937
+ u(), i == f.value ? s("dismiss", "gesture") : l.value.open();
938
938
  },
939
- move({ deltaY: u, deltaX: y, initialDirection: k }) {
939
+ move({ deltaY: i, deltaX: _, initialDirection: k }) {
940
940
  if (k != f.value) return;
941
941
  let m = 0;
942
- t.placement == "bottom" || t.placement == "top" ? m = u : m = y, t.placement == "bottom" && (m = u > 0 ? u : 0), t.placement == "top" && (m = u < 0 ? u : 0), t.placement == "left" && (m = y < 0 ? y : 0), t.placement == "right" && (m = y > 0 ? y : 0), (t.placement == "bottom" && (m >= 10 || this.isMoving) || t.placement == "top" && (m <= -10 || this.isMoving) || t.placement == "left" && (m <= -10 || this.isMoving) || t.placement == "right" && (m >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
942
+ t.placement == "bottom" || t.placement == "top" ? m = i : m = _, t.placement == "bottom" && (m = i > 0 ? i : 0), t.placement == "top" && (m = i < 0 ? i : 0), t.placement == "left" && (m = _ < 0 ? _ : 0), t.placement == "right" && (m = _ > 0 ? _ : 0), (t.placement == "bottom" && (m >= 10 || this.isMoving) || t.placement == "top" && (m <= -10 || this.isMoving) || t.placement == "left" && (m <= -10 || this.isMoving) || t.placement == "right" && (m >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
943
943
  contentTransform: m + "px",
944
944
  transition: "0s"
945
945
  }));
946
946
  },
947
- up({ deltaY: u, deltaX: y, initialDirection: k }) {
948
- if (this.isMoving = !1, g(), k != f.value) {
947
+ up({ deltaY: i, deltaX: _, initialDirection: k }) {
948
+ if (this.isMoving = !1, u(), k != f.value) {
949
949
  l.value.open();
950
950
  return;
951
951
  }
952
952
  let m, O, te;
953
- t.placement == "bottom" || t.placement == "top" ? (m = r.value.offsetHeight, te = u) : (m = r.value.offsetWidth, te = y), O = te / m * 100, O > 50 ? s("dismiss", "gesture") : l.value.open();
953
+ t.placement == "bottom" || t.placement == "top" ? (m = r.value.offsetHeight, te = i) : (m = r.value.offsetWidth, te = _), O = te / m * 100, O > 50 ? s("dismiss", "gesture") : l.value.open();
954
954
  },
955
955
  cancel() {
956
- this.isMoving = !1, g(), l.value.open();
956
+ this.isMoving = !1, u(), l.value.open();
957
957
  }
958
958
  }));
959
- }), se(() => {
959
+ }), re(() => {
960
960
  a && a.destroy();
961
- }), (n, u) => (c(), E(L, {
961
+ }), (n, i) => (c(), E(q, {
962
962
  ref_key: "present",
963
963
  ref: l,
964
964
  class: S(t.class),
@@ -966,14 +966,14 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
966
966
  backdrop: n.backdrop,
967
967
  visible: t.visible,
968
968
  keepalive: t.keepalive,
969
- onDismiss: i,
969
+ onDismiss: y,
970
970
  style: x(t.style)
971
971
  }, {
972
- default: V(() => [
972
+ default: P(() => [
973
973
  t.gesture && t.indicator && t.placement != "center" ? (c(), E(ge, {
974
974
  key: 0,
975
975
  placement: t.placement
976
- }, null, 8, ["placement"])) : I("", !0),
976
+ }, null, 8, ["placement"])) : z("", !0),
977
977
  $("div", {
978
978
  class: S(["t-sheet", { fullscreen: t.fullscreen, [t.placement]: !0, rounded: n.rounded, radius: t.radius }]),
979
979
  style: x({ "--background": t.background }),
@@ -986,7 +986,7 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
986
986
  _: 3
987
987
  }, 8, ["class", "placement", "backdrop", "visible", "keepalive", "style"]));
988
988
  }
989
- }), wt = /* @__PURE__ */ _($t, [["__scopeId", "data-v-6f7063f0"]]), xt = { class: "t-input-label" }, Tt = { class: "t-input-content" }, St = ["type", "placeholder", "value"], Bt = /* @__PURE__ */ h({
989
+ }), xt = /* @__PURE__ */ g(wt, [["__scopeId", "data-v-6f7063f0"]]), Tt = { class: "t-input-label" }, St = { class: "t-input-content" }, Bt = ["data-placeholder"], Ct = /* @__PURE__ */ h({
990
990
  __name: "t-input",
991
991
  props: {
992
992
  size: { default: "standard" },
@@ -997,71 +997,89 @@ const _e = /* @__PURE__ */ _(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
997
997
  help: {},
998
998
  error: {},
999
999
  modelValue: { default: "" },
1000
- variant: { default: "default" }
1000
+ variant: { default: "default" },
1001
+ readonly: { type: Boolean, default: !1 }
1001
1002
  },
1002
1003
  emits: ["update:modelValue"],
1003
1004
  setup(e, { emit: o }) {
1004
- const t = e, s = o, r = v(!1), l = w(() => !(t.modelValue === "" || t.modelValue === null || t.modelValue === void 0)), d = (i) => {
1005
- s("update:modelValue", i.target.value);
1006
- }, a = () => {
1007
- r.value = !0;
1008
- }, f = () => {
1005
+ const t = e, s = o, r = v(!1), l = v(null), d = w(
1006
+ () => !(t.modelValue === "" || t.modelValue == null)
1007
+ ), a = (u) => {
1008
+ s("update:modelValue", u.target.textContent);
1009
+ }, f = async (u) => {
1010
+ r.value = !0, await oe();
1011
+ const n = l.value;
1012
+ if (n) {
1013
+ const i = document.createRange(), _ = window.getSelection();
1014
+ i.selectNodeContents(n), i.collapse(!1), _?.removeAllRanges(), _?.addRange(i), n.focus();
1015
+ }
1016
+ }, y = () => {
1009
1017
  r.value = !1;
1010
1018
  };
1011
- return (i, g) => (c(), p("div", {
1012
- class: S(["t-input", { rounded: i.rounded, ["size-" + i.size]: !0, ["variant-" + i.variant]: !0, focus: r.value, "has-value": l.value }])
1019
+ return (u, n) => (c(), p("div", {
1020
+ class: S(["t-input", {
1021
+ rounded: u.rounded,
1022
+ ["size-" + u.size]: !0,
1023
+ ["variant-" + u.variant]: !0,
1024
+ focus: r.value,
1025
+ "has-value": d.value,
1026
+ readonly: u.readonly
1027
+ }])
1013
1028
  }, [
1014
1029
  $("label", null, [
1015
- $("span", xt, R(i.label), 1),
1016
- $("div", Tt, [
1017
- b(i.$slots, "start", {}, void 0, !0),
1018
- $("input", {
1019
- type: i.type,
1020
- placeholder: i.variant == "default" ? i.placeholder : "",
1021
- value: i.modelValue,
1022
- onInput: d,
1023
- onFocus: a,
1024
- onBlur: f
1025
- }, null, 40, St),
1026
- b(i.$slots, "end", {}, void 0, !0)
1030
+ $("span", Tt, V(u.label), 1),
1031
+ $("div", St, [
1032
+ b(u.$slots, "start", {}, void 0, !0),
1033
+ $("div", {
1034
+ ref_key: "editable",
1035
+ ref: l,
1036
+ class: "t-input-editable",
1037
+ contenteditable: "true",
1038
+ "data-placeholder": u.placeholder,
1039
+ onInput: a,
1040
+ onTouchstart: $e(f, ["prevent"]),
1041
+ onMousedown: f,
1042
+ onBlur: y
1043
+ }, V(u.modelValue), 41, Bt),
1044
+ b(u.$slots, "end", {}, void 0, !0)
1027
1045
  ])
1028
1046
  ]),
1029
- i.error ? (c(), E(oe, {
1047
+ u.error ? (c(), E(se, {
1030
1048
  key: 0,
1031
1049
  color: "danger"
1032
1050
  }, {
1033
- default: V(() => [
1034
- N(R(i.error), 1)
1051
+ default: P(() => [
1052
+ N(V(u.error), 1)
1035
1053
  ]),
1036
1054
  _: 1
1037
- })) : i.help ? (c(), E(oe, {
1055
+ })) : u.help ? (c(), E(se, {
1038
1056
  key: 1,
1039
1057
  color: "secondary"
1040
1058
  }, {
1041
- default: V(() => [
1042
- N(R(i.help), 1)
1059
+ default: P(() => [
1060
+ N(V(u.help), 1)
1043
1061
  ]),
1044
1062
  _: 1
1045
- })) : I("", !0)
1063
+ })) : z("", !0)
1046
1064
  ], 2));
1047
1065
  }
1048
- }), zt = /* @__PURE__ */ _(Bt, [["__scopeId", "data-v-fd2173ab"]]), It = {};
1049
- function Ct(e, o) {
1066
+ }), zt = /* @__PURE__ */ g(Ct, [["__scopeId", "data-v-d3f6bd7c"]]), It = {};
1067
+ function Et(e, o) {
1050
1068
  return c(), p("textarea");
1051
1069
  }
1052
- const Et = /* @__PURE__ */ _(It, [["render", Ct]]), Vt = {};
1053
- function Pt(e, o) {
1070
+ const Vt = /* @__PURE__ */ g(It, [["render", Et]]), Pt = {};
1071
+ function Rt(e, o) {
1054
1072
  return c(), p("div");
1055
1073
  }
1056
- const Rt = /* @__PURE__ */ _(Vt, [["render", Pt]]), At = {}, Dt = { class: "t-grid" };
1057
- function Xt(e, o) {
1058
- return c(), p("div", Dt);
1074
+ const At = /* @__PURE__ */ g(Pt, [["render", Rt]]), Dt = {}, Xt = { class: "t-grid" };
1075
+ function Ot(e, o) {
1076
+ return c(), p("div", Xt);
1059
1077
  }
1060
- const Ot = /* @__PURE__ */ _(At, [["render", Xt]]), Wt = {}, Nt = { class: "t-grid-item" };
1078
+ const Wt = /* @__PURE__ */ g(Dt, [["render", Ot]]), Nt = {}, Mt = { class: "t-grid-item" };
1061
1079
  function qt(e, o) {
1062
- return c(), p("div", Nt);
1080
+ return c(), p("div", Mt);
1063
1081
  }
1064
- const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1082
+ const Lt = /* @__PURE__ */ g(Nt, [["render", qt]]), Ht = /* @__PURE__ */ h({
1065
1083
  __name: "t-divider",
1066
1084
  props: {
1067
1085
  direction: { default: "horizontal" }
@@ -1072,7 +1090,7 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1072
1090
  class: S(["t-divider", { [o.direction]: !0 }])
1073
1091
  }, null, 2));
1074
1092
  }
1075
- }), Ht = /* @__PURE__ */ _(Mt, [["__scopeId", "data-v-47ee8991"]]), Ft = /* @__PURE__ */ h({
1093
+ }), Ft = /* @__PURE__ */ g(Ht, [["__scopeId", "data-v-47ee8991"]]), Gt = /* @__PURE__ */ h({
1076
1094
  __name: "t-toggle-password",
1077
1095
  props: {
1078
1096
  color: { default: "warning" }
@@ -1080,35 +1098,35 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1080
1098
  emits: ["change"],
1081
1099
  setup(e, { emit: o }) {
1082
1100
  const t = e, s = o, r = v(!1), l = v(), d = w(() => {
1083
- let i = t.color;
1084
- return ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) && (i = `var(--t-color-status-${t.color})`), {
1085
- "--color": i
1101
+ let y = t.color;
1102
+ return ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) && (y = `var(--t-color-status-${t.color})`), {
1103
+ "--color": y
1086
1104
  };
1087
1105
  }), a = () => l.value?.parentElement?.querySelector?.("input");
1088
1106
  G(() => {
1089
- let i = a();
1090
- i && (r.value = i.type != "password", s("change", r.value));
1107
+ let y = a();
1108
+ y && (r.value = y.type != "password", s("change", r.value));
1091
1109
  });
1092
1110
  const f = () => {
1093
- let i = a();
1094
- i && (r.value = !r.value, r.value ? i.type = "text" : i.type = "password", s("change", r.value));
1111
+ let y = a();
1112
+ y && (r.value = !r.value, r.value ? y.type = "text" : y.type = "password", s("change", r.value));
1095
1113
  };
1096
- return (i, g) => (c(), p("button", {
1114
+ return (y, u) => (c(), p("button", {
1097
1115
  ref_key: "toggle",
1098
1116
  ref: l,
1099
1117
  class: "t-toggle-password",
1100
1118
  style: x(d.value),
1101
1119
  onClick: f
1102
1120
  }, [
1103
- r.value ? b(i.$slots, "on", { key: 0 }, () => [
1104
- g[0] || (g[0] = $("i", { class: "ri-eye-line" }, null, -1))
1105
- ], !0) : I("", !0),
1106
- r.value ? I("", !0) : b(i.$slots, "off", { key: 1 }, () => [
1107
- g[1] || (g[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
1121
+ r.value ? b(y.$slots, "on", { key: 0 }, () => [
1122
+ u[0] || (u[0] = $("i", { class: "ri-eye-line" }, null, -1))
1123
+ ], !0) : z("", !0),
1124
+ r.value ? z("", !0) : b(y.$slots, "off", { key: 1 }, () => [
1125
+ u[1] || (u[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
1108
1126
  ], !0)
1109
1127
  ], 4));
1110
1128
  }
1111
- }), Gt = /* @__PURE__ */ _(Ft, [["__scopeId", "data-v-3268e9e3"]]), Ut = /* @__PURE__ */ h({
1129
+ }), Ut = /* @__PURE__ */ g(Gt, [["__scopeId", "data-v-3268e9e3"]]), jt = /* @__PURE__ */ h({
1112
1130
  __name: "t-avatar",
1113
1131
  props: {
1114
1132
  square: { type: Boolean, default: !1 },
@@ -1123,13 +1141,13 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1123
1141
  b(s.$slots, "default", {}, void 0, !0)
1124
1142
  ], 6));
1125
1143
  }
1126
- }), jt = /* @__PURE__ */ _(Ut, [["__scopeId", "data-v-24384c2f"]]), Kt = { class: "t-collapse-title" }, Jt = {
1144
+ }), Kt = /* @__PURE__ */ g(jt, [["__scopeId", "data-v-24384c2f"]]), Jt = { class: "t-collapse-title" }, Qt = {
1127
1145
  key: 0,
1128
1146
  class: "icon"
1129
- }, Qt = {
1147
+ }, Zt = {
1130
1148
  key: 1,
1131
1149
  class: "icon"
1132
- }, Zt = { class: "t-collapse-content" }, Yt = /* @__PURE__ */ h({
1150
+ }, Yt = { class: "t-collapse-content" }, eo = /* @__PURE__ */ h({
1133
1151
  __name: "t-collapse",
1134
1152
  props: {
1135
1153
  title: {}
@@ -1139,7 +1157,7 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1139
1157
  const t = e, s = o, r = v(!1), l = v(""), d = v(), a = () => {
1140
1158
  r.value = !r.value, l.value = `calc(${d.value.offsetHeight}px + 2rem)`, s("change", r.value);
1141
1159
  };
1142
- return s("change", r.value), (f, i) => (c(), p("div", {
1160
+ return s("change", r.value), (f, y) => (c(), p("div", {
1143
1161
  class: S(["t-collapse", { open: r.value }]),
1144
1162
  style: x({ "--height": l.value })
1145
1163
  }, [
@@ -1148,20 +1166,20 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1148
1166
  onClick: a
1149
1167
  }, [
1150
1168
  b(f.$slots, "icon"),
1151
- $("div", Kt, [
1169
+ $("div", Jt, [
1152
1170
  b(f.$slots, "title", {}, () => [
1153
- N(R(t.title), 1)
1171
+ N(V(t.title), 1)
1154
1172
  ])
1155
1173
  ]),
1156
1174
  b(f.$slots, "toggle", {}, () => [
1157
- r.value ? (c(), p("div", Jt, [...i[0] || (i[0] = [
1175
+ r.value ? (c(), p("div", Qt, [...y[0] || (y[0] = [
1158
1176
  $("i", { class: "ri-arrow-up-s-line" }, null, -1)
1159
- ])])) : (c(), p("div", Qt, [...i[1] || (i[1] = [
1177
+ ])])) : (c(), p("div", Zt, [...y[1] || (y[1] = [
1160
1178
  $("i", { class: "ri-arrow-down-s-line" }, null, -1)
1161
1179
  ])]))
1162
1180
  ])
1163
1181
  ]),
1164
- $("div", Zt, [
1182
+ $("div", Yt, [
1165
1183
  $("div", {
1166
1184
  ref_key: "content",
1167
1185
  ref: d
@@ -1173,7 +1191,7 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1173
1191
  ])
1174
1192
  ], 6));
1175
1193
  }
1176
- }), eo = /* @__PURE__ */ h({
1194
+ }), to = /* @__PURE__ */ h({
1177
1195
  __name: "t-switch",
1178
1196
  props: {
1179
1197
  modelValue: { type: Boolean },
@@ -1201,7 +1219,7 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1201
1219
  $("div", { class: "t-switch-icon" }, null, -1)
1202
1220
  ])], 6));
1203
1221
  }
1204
- }), to = /* @__PURE__ */ _(eo, [["__scopeId", "data-v-3616970e"]]), oo = /* @__PURE__ */ h({
1222
+ }), oo = /* @__PURE__ */ g(to, [["__scopeId", "data-v-3616970e"]]), so = /* @__PURE__ */ h({
1205
1223
  __name: "t-tab",
1206
1224
  props: {
1207
1225
  value: {}
@@ -1219,14 +1237,14 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1219
1237
  size: A(t).size,
1220
1238
  color: s.value ? A(t).color.text : void 0
1221
1239
  }, {
1222
- default: V(() => [
1240
+ default: P(() => [
1223
1241
  b(l.$slots, "default", {}, void 0, !0)
1224
1242
  ]),
1225
1243
  _: 3
1226
1244
  }, 8, ["size", "color"])
1227
1245
  ], 2));
1228
1246
  }
1229
- }), so = /* @__PURE__ */ _(oo, [["__scopeId", "data-v-481e97b6"]]), ro = /* @__PURE__ */ h({
1247
+ }), ro = /* @__PURE__ */ g(so, [["__scopeId", "data-v-481e97b6"]]), no = /* @__PURE__ */ h({
1230
1248
  __name: "t-tabs",
1231
1249
  props: {
1232
1250
  placement: { default: "top-start" },
@@ -1241,9 +1259,9 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1241
1259
  emits: ["update:modelValue"],
1242
1260
  setup(e, { emit: o }) {
1243
1261
  const t = e, s = o, r = v("0px"), l = v(0), d = v(0), a = v(), f = w(() => {
1244
- let n = "", u = "";
1245
- return t.variant == "text" && (n = "transparent", ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? u = `var(--t-color-status-${t.color})` : u = t.color), t.variant == "border-under" && (u = "currentColor", ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? n = `var(--t-color-status-${t.color})` : n = t.color), t.variant == "tag" && (["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? (n = `var(--t-color-status-${t.color})`, u = `var(--t-color-status-${t.color}-text)`) : (n = t.color, u = "currentColor")), { background: n, text: u };
1246
- }), i = w(() => t.variant == "border-under" ? {
1262
+ let n = "", i = "";
1263
+ return t.variant == "text" && (n = "transparent", ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? i = `var(--t-color-status-${t.color})` : i = t.color), t.variant == "border-under" && (i = "currentColor", ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? n = `var(--t-color-status-${t.color})` : n = t.color), t.variant == "tag" && (["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) ? (n = `var(--t-color-status-${t.color})`, i = `var(--t-color-status-${t.color}-text)`) : (n = t.color, i = "currentColor")), { background: n, text: i };
1264
+ }), y = w(() => t.variant == "border-under" ? {
1247
1265
  "--transform": r.value,
1248
1266
  "--border": t.border + "px"
1249
1267
  } : t.variant == "tag" ? {
@@ -1253,23 +1271,23 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1253
1271
  "--width": l.value - t.margin[1] * 2 + "px",
1254
1272
  "--transform": r.value,
1255
1273
  "--radius": t.radius + "px"
1256
- } : {}), g = () => {
1274
+ } : {}), u = () => {
1257
1275
  if (t.variant == "border-under") {
1258
1276
  let n = a.value.querySelector(".active");
1259
1277
  if (n) {
1260
1278
  if (t.placement.startsWith("top-") || t.placement.startsWith("bottom-")) {
1261
- let u = n.getBoundingClientRect().left - a.value.getBoundingClientRect().left + a.value.scrollLeft, y = n.offsetWidth / 2;
1262
- r.value = u + y - t.border / 2 + "px";
1279
+ let i = n.getBoundingClientRect().left - a.value.getBoundingClientRect().left + a.value.scrollLeft, _ = n.offsetWidth / 2;
1280
+ r.value = i + _ - t.border / 2 + "px";
1263
1281
  } else if (t.placement.startsWith("left-") || t.placement.startsWith("right-")) {
1264
- let u = n.getBoundingClientRect().top - a.value.getBoundingClientRect().top + a.value.scrollTop, y = n.offsetHeight / 2;
1265
- r.value = u + y - t.border / 2 + "px";
1282
+ let i = n.getBoundingClientRect().top - a.value.getBoundingClientRect().top + a.value.scrollTop, _ = n.offsetHeight / 2;
1283
+ r.value = i + _ - t.border / 2 + "px";
1266
1284
  }
1267
1285
  }
1268
1286
  }
1269
1287
  if (t.variant == "tag") {
1270
1288
  let n = a.value.querySelector(".active");
1271
1289
  if (n) {
1272
- let u = n.offsetWidth, y = n.offsetHeight;
1290
+ let i = n.offsetWidth, _ = n.offsetHeight;
1273
1291
  if (t.placement.startsWith("top-") || t.placement.startsWith("bottom-")) {
1274
1292
  let k = n.getBoundingClientRect().left - a.value.getBoundingClientRect().left + a.value.scrollLeft;
1275
1293
  r.value = k + "px";
@@ -1277,7 +1295,7 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1277
1295
  let k = n.getBoundingClientRect().top - a.value.getBoundingClientRect().top + a.value.scrollTop;
1278
1296
  r.value = k + "px";
1279
1297
  }
1280
- l.value = u, d.value = y;
1298
+ l.value = i, d.value = _;
1281
1299
  }
1282
1300
  }
1283
1301
  };
@@ -1290,32 +1308,32 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1290
1308
  s("update:modelValue", n);
1291
1309
  }
1292
1310
  }), X(() => t.modelValue, async () => {
1293
- await ae(), g();
1311
+ await oe(), u();
1294
1312
  }), G(async () => {
1295
- await ae(), g();
1296
- }), (n, u) => (c(), p("ul", {
1313
+ await oe(), u();
1314
+ }), (n, i) => (c(), p("ul", {
1297
1315
  ref_key: "container",
1298
1316
  ref: a,
1299
1317
  class: S(["t-tabs", { [n.placement]: !0, [`variant-${n.variant}`]: !0 }]),
1300
- style: x([{ "--background": f.value.background, "--color": f.value.text }, i.value])
1318
+ style: x([{ "--background": f.value.background, "--color": f.value.text }, y.value])
1301
1319
  }, [
1302
1320
  b(n.$slots, "default", {}, void 0, !0)
1303
1321
  ], 6));
1304
1322
  }
1305
- }), no = /* @__PURE__ */ _(ro, [["__scopeId", "data-v-8d370631"]]), ao = /* @__PURE__ */ h({
1323
+ }), ao = /* @__PURE__ */ g(no, [["__scopeId", "data-v-8d370631"]]), lo = /* @__PURE__ */ h({
1306
1324
  __name: "t-loading-app",
1307
1325
  setup(e) {
1308
1326
  return (o, t) => (c(), E(ye, null, {
1309
- default: V(() => [
1327
+ default: P(() => [
1310
1328
  U(J, { type: "spinner" })
1311
1329
  ]),
1312
1330
  _: 1
1313
1331
  }));
1314
1332
  }
1315
- }), lo = /* @__PURE__ */ _(ao, [["__scopeId", "data-v-1436aa9f"]]), co = { key: 0 }, io = {
1333
+ }), co = /* @__PURE__ */ g(lo, [["__scopeId", "data-v-1436aa9f"]]), io = { key: 0 }, uo = {
1316
1334
  key: 0,
1317
1335
  class: "t-checkbox-label"
1318
- }, uo = /* @__PURE__ */ h({
1336
+ }, po = /* @__PURE__ */ h({
1319
1337
  __name: "t-checkbox",
1320
1338
  props: {
1321
1339
  label: { default: "" },
@@ -1351,26 +1369,26 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1351
1369
  $("div", {
1352
1370
  class: S(`t-checkbox-${a.type}`)
1353
1371
  }, [
1354
- a.type == "radio" ? (c(), p("div", co)) : I("", !0),
1372
+ a.type == "radio" ? (c(), p("div", io)) : z("", !0),
1355
1373
  a.type == "check" ? b(a.$slots, "icon", { key: 1 }, () => [
1356
1374
  f[0] || (f[0] = $("i", { class: "ri-check-line" }, null, -1))
1357
- ], !0) : I("", !0)
1375
+ ], !0) : z("", !0)
1358
1376
  ], 2),
1359
1377
  b(a.$slots, "label", {}, () => [
1360
- a.label ? (c(), p("span", io, R(t.label), 1)) : I("", !0)
1378
+ a.label ? (c(), p("span", uo, V(t.label), 1)) : z("", !0)
1361
1379
  ], !0)
1362
1380
  ], 6));
1363
1381
  }
1364
- }), po = /* @__PURE__ */ _(uo, [["__scopeId", "data-v-0e13abc3"]]), fo = /* @__PURE__ */ h({
1365
- __name: "t-keyboard",
1382
+ }), fo = /* @__PURE__ */ g(po, [["__scopeId", "data-v-0e13abc3"]]), mo = /* @__PURE__ */ h({
1383
+ __name: "t-keyboard-space",
1366
1384
  setup(e) {
1367
1385
  const { height: o } = ve();
1368
1386
  return (t, s) => (c(), p("div", {
1369
- class: "t-keyboard",
1387
+ class: "t-keyboard-space",
1370
1388
  style: x({ "--height": A(o) + "px" })
1371
1389
  }, null, 4));
1372
1390
  }
1373
- }), mo = /* @__PURE__ */ _(fo, [["__scopeId", "data-v-5d3fa1da"]]), vo = /* @__PURE__ */ h({
1391
+ }), vo = /* @__PURE__ */ g(mo, [["__scopeId", "data-v-4b06018d"]]), yo = /* @__PURE__ */ h({
1374
1392
  __name: "t-skeleton",
1375
1393
  props: {
1376
1394
  width: { default: "100%" },
@@ -1389,7 +1407,7 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1389
1407
  style: x(t.value)
1390
1408
  }, null, 4));
1391
1409
  }
1392
- }), yo = /* @__PURE__ */ _(vo, [["__scopeId", "data-v-877bbdb5"]]), _o = /* @__PURE__ */ h({
1410
+ }), _o = /* @__PURE__ */ g(yo, [["__scopeId", "data-v-877bbdb5"]]), go = /* @__PURE__ */ h({
1393
1411
  __name: "t-ripple",
1394
1412
  props: {
1395
1413
  color: { default: "primary" }
@@ -1410,20 +1428,20 @@ const Lt = /* @__PURE__ */ _(Wt, [["render", qt]]), Mt = /* @__PURE__ */ h({
1410
1428
  style: x(t.value)
1411
1429
  }, null, 4));
1412
1430
  }
1413
- }), go = /* @__PURE__ */ _(_o, [["__scopeId", "data-v-42cb3d71"]]), So = () => ({
1431
+ }), bo = /* @__PURE__ */ g(go, [["__scopeId", "data-v-42cb3d71"]]), Bo = () => ({
1414
1432
  install: (e) => {
1415
- Te(), e.component("t-app", Ie), e.component("t-screen", _e), e.component("t-swipe-screen", vt), e.component("t-cable", rt), e.component("t-toolbar", _t), e.component("t-content", ye), e.component("t-card", nt), e.component("t-refresher", ut), e.component("t-button", Q), e.component("t-back-button", bt), e.component("t-present", L), e.component("t-text", oe), e.component("t-sheet", wt), e.component("t-gesture-indicator", ge), e.component("t-input", zt), e.component("t-textarea", Et), e.component("t-rich-text", Rt), e.component("t-grid", Ot), e.component("t-grid-item", Lt), e.component("t-divider", Ht), e.component("t-toggle-password", Gt), e.component("t-loading-icon", J), e.component("t-alert", pe), e.component("t-avatar", jt), e.component("t-collapse", Yt), e.component("t-toast", me), e.component("t-switch", to), e.component("t-tab", so), e.component("t-tabs", no), e.component("t-loading-app", lo), e.component("t-checkbox", po), e.component("t-keyboard", mo), e.component("t-skeleton", yo), e.component("t-ripple", go);
1433
+ Se(), e.component("t-app", Ie), e.component("t-screen", _e), e.component("t-swipe-screen", yt), e.component("t-cable", nt), e.component("t-toolbar", gt), e.component("t-content", ye), e.component("t-card", at), e.component("t-refresher", dt), e.component("t-button", Q), e.component("t-back-button", ht), e.component("t-present", q), e.component("t-text", se), e.component("t-sheet", xt), e.component("t-gesture-indicator", ge), e.component("t-input", zt), e.component("t-textarea", Vt), e.component("t-rich-text", At), e.component("t-grid", Wt), e.component("t-grid-item", Lt), e.component("t-divider", Ft), e.component("t-toggle-password", Ut), e.component("t-loading-icon", J), e.component("t-alert", pe), e.component("t-avatar", Kt), e.component("t-collapse", eo), e.component("t-toast", me), e.component("t-switch", oo), e.component("t-tab", ro), e.component("t-tabs", ao), e.component("t-loading-app", co), e.component("t-checkbox", fo), e.component("t-keyboard-space", vo), e.component("t-skeleton", _o), e.component("t-ripple", bo);
1416
1434
  }
1417
1435
  });
1418
1436
  export {
1419
- xe as blurCurrentActive,
1420
- wo as createAction,
1421
- $o as createAlert,
1422
- xo as createLoading,
1423
- To as createToast,
1424
- So as createToife,
1425
- we as isFormElement,
1426
- He as presentController,
1437
+ Te as blurCurrentActive,
1438
+ xo as createAction,
1439
+ wo as createAlert,
1440
+ To as createLoading,
1441
+ So as createToast,
1442
+ Bo as createToife,
1443
+ xe as isFormElement,
1444
+ Fe as presentController,
1427
1445
  T as screenController,
1428
1446
  ve as useKeyboard
1429
1447
  };