@toife/vue 1.1.47 → 1.1.49

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { createElementBlock as _, openBlock as u, renderSlot as h, defineComponent as T, ref as y, computed as S, reactive as te, watch as A, Fragment as V, withDirectives as Y, createCommentVNode as C, normalizeStyle as w, normalizeClass as x, vShow as H, createElementVNode as $, createVNode as j, onUnmounted as L, createBlock as z, withCtx as E, toDisplayString as D, renderList as U, createTextVNode as O, createApp as F, h as G, unref as P, onMounted as Q, resolveDynamicComponent as ce, markRaw as ie, inject as ue, provide as de } from "vue";
1
+ import { createElementBlock as _, openBlock as u, renderSlot as h, defineComponent as T, ref as y, computed as I, reactive as te, watch as A, Fragment as V, withDirectives as Y, createCommentVNode as C, normalizeStyle as w, normalizeClass as x, vShow as H, createElementVNode as $, createVNode as j, onUnmounted as L, createBlock as S, withCtx as E, toDisplayString as D, renderList as U, createTextVNode as O, createApp as F, h as G, unref as P, onMounted as Q, resolveDynamicComponent as ce, markRaw as ie, inject as ue, provide as de } from "vue";
2
2
  import { gesture as N } from "@toife/gesture";
3
3
  import { useRouter as oe, useRoute as pe } from "vue-router";
4
4
  const q = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), X = () => {
@@ -8,13 +8,13 @@ const q = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isCo
8
8
  document.addEventListener("contextmenu", (t) => t.preventDefault()), document.addEventListener("selectstart", (t) => t.preventDefault()), document.addEventListener("pointerup", (t) => {
9
9
  !q(t.target) && X();
10
10
  });
11
- }, b = (t, n) => {
11
+ }, b = (t, s) => {
12
12
  const o = t.__vccOpts || t;
13
- for (const [e, s] of n)
14
- o[e] = s;
13
+ for (const [e, n] of s)
14
+ o[e] = n;
15
15
  return o;
16
16
  }, me = {}, ve = { class: "t-app" };
17
- function _e(t, n) {
17
+ function _e(t, s) {
18
18
  return u(), _("div", ve, [
19
19
  h(t.$slots, "default")
20
20
  ]);
@@ -26,11 +26,12 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
26
26
  visible: { type: Boolean, default: !1 },
27
27
  backdrop: { type: Boolean, default: !0 },
28
28
  placement: { default: "bottom" },
29
- fullscreen: { type: Boolean, default: !1 }
29
+ fullscreen: { type: Boolean, default: !1 },
30
+ size: { default: "fit-content" }
30
31
  },
31
32
  emits: ["dismiss"],
32
- setup(t, { expose: n, emit: o }) {
33
- const e = y(0), s = y(!1), r = y(), c = y(), i = t, d = o, p = S(() => s.value || i.keepalive), f = te({
33
+ setup(t, { expose: s, emit: o }) {
34
+ const e = y(0), n = y(!1), r = y(), c = y(), i = t, d = o, p = I(() => n.value || i.keepalive), f = te({
34
35
  "--t-present-backdrop-opacity": "0.4",
35
36
  "--t-present-transition": "0.2s",
36
37
  "--t-present-content-transform": "0px",
@@ -45,21 +46,21 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
45
46
  contentOpacity: "1"
46
47
  });
47
48
  }, a = () => {
48
- let m = "0px", I = "1";
49
- i.placement == "bottom" || i.placement == "right" ? m = "100%" : i.placement == "top" || i.placement == "left" ? m = "-100%" : i.placement == "center" && (m = "0px", I = "0"), v({
49
+ let m = "0px", z = "1";
50
+ i.placement == "bottom" || i.placement == "right" ? m = "100%" : i.placement == "top" || i.placement == "left" ? m = "-100%" : i.placement == "center" && (m = "0px", z = "0"), v({
50
51
  contentTransform: m,
51
52
  transition: "0.2s",
52
- contentOpacity: I,
53
+ contentOpacity: z,
53
54
  backdropOpacity: "0"
54
55
  });
55
56
  };
56
57
  A(() => i.visible, () => {
57
- i.visible ? (s.value = !0, e.value = Ce.getNewIndex(), setTimeout(() => {
58
+ i.visible ? (n.value = !0, e.value = Ce.getNewIndex(), setTimeout(() => {
58
59
  l();
59
60
  }, 50)) : (a(), setTimeout(() => {
60
- s.value = !1;
61
+ n.value = !1;
61
62
  }, 200));
62
- }), n({
63
+ }), s({
63
64
  render: v,
64
65
  open: l,
65
66
  close: a
@@ -67,17 +68,17 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
67
68
  const g = (m) => {
68
69
  m.preventDefault(), d("dismiss", "backdrop");
69
70
  };
70
- return a(), (m, I) => (u(), _(V, null, [
71
+ return a(), (m, z) => (u(), _(V, null, [
71
72
  p.value ? Y((u(), _("div", {
72
73
  key: 0,
73
74
  class: x(["t-present", { [m.placement]: !0, fullscreen: i.fullscreen }]),
74
75
  ref_key: "present",
75
76
  ref: c,
76
- style: w({ ...f, zIndex: e.value })
77
+ style: w({ ...f, zIndex: e.value, "--size": i.size })
77
78
  }, [
78
79
  h(m.$slots, "default", {}, void 0, !0)
79
80
  ], 6)), [
80
- [H, s.value]
81
+ [H, n.value]
81
82
  ]) : C("", !0),
82
83
  p.value ? Y((u(), _("div", {
83
84
  key: 1,
@@ -87,11 +88,11 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
87
88
  ref: r,
88
89
  style: w({ ...f, zIndex: e.value - 1 })
89
90
  }, null, 4)), [
90
- [H, s.value]
91
+ [H, n.value]
91
92
  ]) : C("", !0)
92
93
  ], 64));
93
94
  }
94
- }), W = /* @__PURE__ */ b(ge, [["__scopeId", "data-v-0e153af5"]]), be = /* @__PURE__ */ T({
95
+ }), W = /* @__PURE__ */ b(ge, [["__scopeId", "data-v-cd09c539"]]), be = /* @__PURE__ */ T({
95
96
  __name: "t-loading-icon",
96
97
  props: {
97
98
  size: {
@@ -104,7 +105,7 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
104
105
  }
105
106
  },
106
107
  setup(t) {
107
- return (n, o) => (u(), _("span", {
108
+ return (s, o) => (u(), _("span", {
108
109
  class: "t-loading-icon",
109
110
  style: w({
110
111
  width: t.size,
@@ -131,39 +132,39 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
131
132
  activeBackground: { type: Boolean, default: !1 }
132
133
  },
133
134
  setup(t) {
134
- const n = t, o = S(() => {
135
+ const s = t, o = I(() => {
135
136
  let e;
136
- return n.variant == "default" && (n.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) ? e = {
137
+ return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? e = {
137
138
  "--border": "none",
138
- "--color": "var(--t-color-status-" + n.color + "-text)",
139
- "--background": "var(--t-color-status-" + n.color + ")"
139
+ "--color": "var(--t-color-status-" + s.color + "-text)",
140
+ "--background": "var(--t-color-status-" + s.color + ")"
140
141
  } : e = {
141
142
  "--border": "none",
142
143
  "--color": "var(--t-color-text)",
143
- "--background": n.color
144
+ "--background": s.color
144
145
  } : e = {
145
146
  "--border": "none",
146
147
  "--color": "var(--t-color-text)",
147
148
  "--background": "var(--t-color-surface)"
148
- }), n.variant == "text" && (n.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) ? e = {
149
+ }), s.variant == "text" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? e = {
149
150
  "--border": "none",
150
- "--color": "var(--t-color-status-" + n.color + ")",
151
+ "--color": "var(--t-color-status-" + s.color + ")",
151
152
  "--background": "transparent"
152
153
  } : e = {
153
154
  "--border": "none",
154
- "--color": n.color,
155
+ "--color": s.color,
155
156
  "--background": "transparent"
156
157
  } : e = {
157
158
  "--border": "none",
158
159
  "--color": "var(--t-color-text)",
159
160
  "--background": "transparent"
160
- }), n.variant == "outline" && (n.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) ? e = {
161
- "--border": "0.55px solid var(--t-color-status-" + n.color + ")",
162
- "--color": "var(--t-color-status-" + n.color + ")",
161
+ }), s.variant == "outline" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? e = {
162
+ "--border": "0.55px solid var(--t-color-status-" + s.color + ")",
163
+ "--color": "var(--t-color-status-" + s.color + ")",
163
164
  "--background": "transparent"
164
165
  } : e = {
165
- "--border": "0.55px solid " + n.color,
166
- "--color": n.color,
166
+ "--border": "0.55px solid " + s.color,
167
+ "--color": s.color,
167
168
  "--background": "transparent"
168
169
  } : e = {
169
170
  "--border": "0.55px solid var(--t-color-text)",
@@ -171,19 +172,19 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
171
172
  "--background": "transparent"
172
173
  }), e;
173
174
  });
174
- return (e, s) => (u(), _("button", {
175
- class: x(["t-button", { "active-background": n.activeBackground, rounded: n.rounded, block: n.block, ["size-" + n.size]: !0 }]),
175
+ return (e, n) => (u(), _("button", {
176
+ class: x(["t-button", { "active-background": s.activeBackground, rounded: s.rounded, block: s.block, ["size-" + s.size]: !0 }]),
176
177
  style: w(o.value)
177
178
  }, [
178
179
  Y($("span", null, [
179
180
  h(e.$slots, "default", {}, void 0, !0)
180
181
  ], 512), [
181
- [H, !n.loading]
182
+ [H, !s.loading]
182
183
  ]),
183
- n.loading ? (u(), _("span", he, [
184
+ s.loading ? (u(), _("span", he, [
184
185
  j(K, {
185
186
  color: "var(--color)",
186
- type: n.loadingType
187
+ type: s.loadingType
187
188
  }, null, 8, ["type"])
188
189
  ])) : C("", !0)
189
190
  ], 6));
@@ -197,22 +198,23 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
197
198
  title: {},
198
199
  message: {},
199
200
  actions: {},
200
- dismiss: {}
201
+ dismiss: {},
202
+ size: {}
201
203
  },
202
204
  emits: ["dismiss"],
203
- setup(t, { expose: n, emit: o }) {
204
- const e = t, s = y(!1), r = o, c = y();
205
+ setup(t, { expose: s, emit: o }) {
206
+ const e = t, n = y(!1), r = o, c = y();
205
207
  let i;
206
208
  const d = y(!1), p = () => {
207
- s.value = !0;
209
+ n.value = !0;
208
210
  }, f = (l) => {
209
- s.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
211
+ n.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
210
212
  }, v = (l) => {
211
- e.dismiss && e.dismiss.includes(l) ? (s.value = !1, r("dismiss", l)) : l == "backdrop" && (d.value = !0, setTimeout(() => {
213
+ e.dismiss && e.dismiss.includes(l) ? (n.value = !1, r("dismiss", l)) : l == "backdrop" && (d.value = !0, setTimeout(() => {
212
214
  d.value = !1;
213
215
  }, 300));
214
216
  };
215
- return n({
217
+ return s({
216
218
  open: p
217
219
  }), A(() => c.value, (l) => {
218
220
  l && (i = N(c.value, {
@@ -222,11 +224,12 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
222
224
  }));
223
225
  }), L(() => {
224
226
  i && i.destroy();
225
- }), (l, a) => (u(), z(W, {
227
+ }), (l, a) => (u(), S(W, {
226
228
  placement: "center",
229
+ size: e.size,
227
230
  backdrop: !0,
228
231
  keepalive: !1,
229
- visible: s.value,
232
+ visible: n.value,
230
233
  onDismiss: v
231
234
  }, {
232
235
  default: E(() => [
@@ -243,7 +246,7 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
243
246
  ], !0),
244
247
  h(l.$slots, "footer", {}, () => [
245
248
  $("div", we, [
246
- (u(!0), _(V, null, U(e.actions, (g) => (u(), z(M, {
249
+ (u(!0), _(V, null, U(e.actions, (g) => (u(), S(M, {
247
250
  color: g.color,
248
251
  variant: g.variant,
249
252
  onClick: (m) => f(g)
@@ -258,53 +261,54 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
258
261
  ], 2)
259
262
  ]),
260
263
  _: 3
261
- }, 8, ["visible"]));
264
+ }, 8, ["size", "visible"]));
262
265
  }
263
- }), ne = /* @__PURE__ */ b(xe, [["__scopeId", "data-v-5cf415ec"]]), Ut = (t = {}) => ({
266
+ }), se = /* @__PURE__ */ b(xe, [["__scopeId", "data-v-7e6d6324"]]), Ut = (t = {}) => ({
264
267
  open() {
265
- return new Promise((n) => {
268
+ return new Promise((s) => {
266
269
  let o = document.body.querySelector(".t-app");
267
270
  if (!o) return;
268
- const e = document.createElement("div"), s = y();
271
+ const e = document.createElement("div"), n = y();
269
272
  o.appendChild(e);
270
273
  const r = F({
271
274
  render() {
272
- return G(ne, {
275
+ return G(se, {
273
276
  ...t,
274
- ref: s,
277
+ ref: n,
275
278
  onDismiss: (c, i) => {
276
279
  setTimeout(() => {
277
280
  r.unmount(), e.remove();
278
- }, 300), n(i);
281
+ }, 300), s(i);
279
282
  }
280
283
  });
281
284
  }
282
285
  });
283
286
  r.mount(e), setTimeout(() => {
284
- s.value?.open?.();
287
+ n.value?.open?.();
285
288
  }, 50);
286
289
  });
287
290
  }
288
- }), Ie = /* @__PURE__ */ T({
291
+ }), ze = /* @__PURE__ */ T({
289
292
  __name: "t-action",
290
293
  props: {
291
294
  actions: {},
292
- dismiss: {}
295
+ dismiss: {},
296
+ size: {}
293
297
  },
294
298
  emits: ["dismiss"],
295
- setup(t, { expose: n, emit: o }) {
296
- const e = t, s = y(!1), r = o, c = y();
299
+ setup(t, { expose: s, emit: o }) {
300
+ const e = t, n = y(!1), r = o, c = y();
297
301
  let i;
298
302
  const d = y(!1), p = () => {
299
- s.value = !0;
303
+ n.value = !0;
300
304
  }, f = (l) => {
301
- s.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
305
+ n.value = !1, l.handler && l.handler(), r("dismiss", "choose", l?.data);
302
306
  }, v = (l) => {
303
- e.dismiss && e.dismiss.includes(l) ? (s.value = !1, r("dismiss", l)) : l == "backdrop" && (d.value = !0, setTimeout(() => {
307
+ e.dismiss && e.dismiss.includes(l) ? (n.value = !1, r("dismiss", l)) : l == "backdrop" && (d.value = !0, setTimeout(() => {
304
308
  d.value = !1;
305
309
  }, 300));
306
310
  };
307
- return n({
311
+ return s({
308
312
  open: p
309
313
  }), A(() => c.value, (l) => {
310
314
  l && (i = N(c.value, {
@@ -314,11 +318,12 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
314
318
  }));
315
319
  }), L(() => {
316
320
  i && i.destroy();
317
- }), (l, a) => (u(), z(W, {
321
+ }), (l, a) => (u(), S(W, {
318
322
  placement: "bottom",
323
+ size: e.size,
319
324
  backdrop: !0,
320
325
  keepalive: !1,
321
- visible: s.value,
326
+ visible: n.value,
322
327
  onDismiss: v
323
328
  }, {
324
329
  default: E(() => [
@@ -328,11 +333,11 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
328
333
  ref: c
329
334
  }, [
330
335
  (u(!0), _(V, null, U(e.actions, (g) => (u(), _("div", null, [
331
- (u(!0), _(V, null, U(g, (m) => (u(), z(M, {
336
+ (u(!0), _(V, null, U(g, (m) => (u(), S(M, {
332
337
  color: m.color,
333
338
  size: m.size,
334
339
  variant: m.variant,
335
- onClick: (I) => f(m),
340
+ onClick: (z) => f(m),
336
341
  block: ""
337
342
  }, {
338
343
  default: E(() => [
@@ -344,48 +349,49 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
344
349
  ], 2)
345
350
  ]),
346
351
  _: 1
347
- }, 8, ["visible"]));
352
+ }, 8, ["size", "visible"]));
348
353
  }
349
- }), Se = /* @__PURE__ */ b(Ie, [["__scopeId", "data-v-5c29cf79"]]), jt = (t = {}) => ({
354
+ }), Ie = /* @__PURE__ */ b(ze, [["__scopeId", "data-v-e46c8d32"]]), jt = (t = {}) => ({
350
355
  open() {
351
- return new Promise((n) => {
356
+ return new Promise((s) => {
352
357
  let o = document.body.querySelector(".t-app");
353
358
  if (!o) return;
354
- const e = document.createElement("div"), s = y();
359
+ const e = document.createElement("div"), n = y();
355
360
  o.appendChild(e);
356
361
  const r = F({
357
362
  render() {
358
- return G(Se, {
363
+ return G(Ie, {
359
364
  ...t,
360
- ref: s,
365
+ ref: n,
361
366
  onDismiss: (c, i) => {
362
367
  setTimeout(() => {
363
368
  r.unmount(), e.remove();
364
- }, 300), n(i);
369
+ }, 300), s(i);
365
370
  }
366
371
  });
367
372
  }
368
373
  });
369
374
  r.mount(e), setTimeout(() => {
370
- s.value?.open?.();
375
+ n.value?.open?.();
371
376
  }, 50);
372
377
  });
373
378
  }
374
- }), ze = /* @__PURE__ */ T({
379
+ }), Se = /* @__PURE__ */ T({
375
380
  __name: "t-loading",
376
381
  props: {
377
- type: { default: "spinner" }
382
+ type: { default: "spinner" },
383
+ size: {}
378
384
  },
379
385
  emits: ["dismiss"],
380
- setup(t, { expose: n, emit: o }) {
381
- const e = t, s = y(!1), r = y();
386
+ setup(t, { expose: s, emit: o }) {
387
+ const e = t, n = y(!1), r = y();
382
388
  let c;
383
- return n({
389
+ return s({
384
390
  open: () => {
385
- s.value = !0;
391
+ n.value = !0;
386
392
  },
387
393
  close: () => {
388
- s.value = !1;
394
+ n.value = !1;
389
395
  }
390
396
  }), A(() => r.value, (p) => {
391
397
  p && (c = N(r.value, {
@@ -395,11 +401,12 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
395
401
  }));
396
402
  }), L(() => {
397
403
  c && c.destroy();
398
- }), (p, f) => (u(), z(W, {
404
+ }), (p, f) => (u(), S(W, {
399
405
  placement: "center",
406
+ size: e.size,
400
407
  backdrop: !0,
401
408
  keepalive: !1,
402
- visible: s.value
409
+ visible: n.value
403
410
  }, {
404
411
  default: E(() => [
405
412
  $("div", {
@@ -415,30 +422,30 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
415
422
  ], 512)
416
423
  ]),
417
424
  _: 3
418
- }, 8, ["visible"]));
425
+ }, 8, ["size", "visible"]));
419
426
  }
420
- }), Be = /* @__PURE__ */ b(ze, [["__scopeId", "data-v-d048a41d"]]), Ft = (t = {}) => {
421
- const n = y(), o = document.body.querySelector(".t-app");
422
- let e = null, s = null;
427
+ }), Be = /* @__PURE__ */ b(Se, [["__scopeId", "data-v-dfc4f636"]]), Ft = (t = {}) => {
428
+ const s = y(), o = document.body.querySelector(".t-app");
429
+ let e = null, n = null;
423
430
  return {
424
431
  open() {
425
432
  return new Promise((r) => {
426
- o && (s = document.createElement("div"), o.appendChild(s), e = F({
433
+ o && (n = document.createElement("div"), o.appendChild(n), e = F({
427
434
  render() {
428
435
  return G(Be, {
429
436
  ...t,
430
- ref: n
437
+ ref: s
431
438
  });
432
439
  }
433
- }), e.mount(s), setTimeout(() => {
434
- n.value?.open?.(), r(!0);
440
+ }), e.mount(n), setTimeout(() => {
441
+ s.value?.open?.(), r(!0);
435
442
  }, 50));
436
443
  });
437
444
  },
438
445
  close() {
439
446
  return new Promise((r) => {
440
- n.value?.close?.(), setTimeout(() => {
441
- e?.unmount?.(), s?.remove?.(), r(!0);
447
+ s.value?.close?.(), setTimeout(() => {
448
+ e?.unmount?.(), n?.remove?.(), r(!0);
442
449
  }, 300);
443
450
  });
444
451
  }
@@ -458,9 +465,9 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
458
465
  addScreen: Ee,
459
466
  removeScreen: Pe,
460
467
  removeAllScreen: De,
461
- hasPrevious: S(() => B.length > 1),
462
- currentScreen: S(() => B[B.length - 1]),
463
- lastScreen: S(() => {
468
+ hasPrevious: I(() => B.length > 1),
469
+ currentScreen: I(() => B[B.length - 1]),
470
+ lastScreen: I(() => {
464
471
  if (!(B.length < 2))
465
472
  return B[B.length - 2];
466
473
  })
@@ -475,8 +482,8 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
475
482
  variant: { default: "default" }
476
483
  },
477
484
  emits: ["dismiss"],
478
- setup(t, { expose: n, emit: o }) {
479
- const e = t, s = o, r = y(!1), c = y(!1), i = y(!1), d = () => {
485
+ setup(t, { expose: s, emit: o }) {
486
+ const e = t, n = o, r = y(!1), c = y(!1), i = y(!1), d = () => {
480
487
  c.value = !0, i.value = !1, setTimeout(() => {
481
488
  r.value = !0;
482
489
  }, 10), setTimeout(() => {
@@ -484,9 +491,9 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
484
491
  }, e.duration + 10);
485
492
  }, p = () => {
486
493
  i.value = !0, setTimeout(() => {
487
- c.value = !1, r.value = !1, s("dismiss");
494
+ c.value = !1, r.value = !1, n("dismiss");
488
495
  }, 300);
489
- }, f = S(() => {
496
+ }, f = I(() => {
490
497
  let v;
491
498
  return e.variant == "default" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? v = {
492
499
  "--border": "none",
@@ -526,7 +533,7 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
526
533
  "--background": "transparent"
527
534
  }), v;
528
535
  });
529
- return n({
536
+ return s({
530
537
  open: d
531
538
  }), (v, l) => c.value ? (u(), _("div", {
532
539
  key: 0,
@@ -534,26 +541,26 @@ const ye = /* @__PURE__ */ b(me, [["render", _e]]), ge = /* @__PURE__ */ T({
534
541
  style: w({ "--space": e.space, ...f.value })
535
542
  }, D(e.message), 7)) : C("", !0);
536
543
  }
537
- }), se = /* @__PURE__ */ b(Re, [["__scopeId", "data-v-61960e03"]]), Gt = (t = {}) => ({
544
+ }), ne = /* @__PURE__ */ b(Re, [["__scopeId", "data-v-61960e03"]]), Gt = (t = {}) => ({
538
545
  open() {
539
- let n = document.body.querySelector(".t-app");
540
- if (!n) return;
546
+ let s = document.body.querySelector(".t-app");
547
+ if (!s) return;
541
548
  const o = document.createElement("div"), e = y();
542
- n.appendChild(o);
543
- const s = F({
549
+ s.appendChild(o);
550
+ const n = F({
544
551
  render() {
545
- return G(se, {
552
+ return G(ne, {
546
553
  ...t,
547
554
  ref: e,
548
555
  onDismiss: () => {
549
556
  setTimeout(() => {
550
- s.unmount(), o.remove();
557
+ n.unmount(), o.remove();
551
558
  }, 300);
552
559
  }
553
560
  });
554
561
  }
555
562
  });
556
- s.mount(o), setTimeout(() => {
563
+ n.mount(o), setTimeout(() => {
557
564
  e.value?.open?.();
558
565
  }, 50);
559
566
  }
@@ -570,9 +577,9 @@ const Le = /* @__PURE__ */ T({
570
577
  placement: { default: "bottom" }
571
578
  },
572
579
  setup(t) {
573
- const n = t, { height: o } = Ve();
574
- return (e, s) => (u(), _("div", {
575
- class: x(["t-cable", { keyboard: n.keyboard && P(o) > 0, [n.placement]: !0 }]),
580
+ const s = t, { height: o } = Ve();
581
+ return (e, n) => (u(), _("div", {
582
+ class: x(["t-cable", { keyboard: s.keyboard && P(o) > 0, [s.placement]: !0 }]),
576
583
  style: w({ "--t-keyboard-height": P(o) + "px", "--t-keyboard-transition": P(o) > 0 ? "0.3s" : "0.1s" })
577
584
  }, [
578
585
  h(e.$slots, "default", {}, void 0, !0)
@@ -584,17 +591,17 @@ const Le = /* @__PURE__ */ T({
584
591
  color: { default: null }
585
592
  },
586
593
  setup(t) {
587
- const n = t, o = S(() => {
594
+ const s = t, o = I(() => {
588
595
  let e;
589
- return n.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) ? e = {
590
- "--background": "var(--t-color-status-" + n.color + ")"
596
+ return s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? e = {
597
+ "--background": "var(--t-color-status-" + s.color + ")"
591
598
  } : e = {
592
- "--background": n.color
599
+ "--background": s.color
593
600
  } : e = {
594
601
  "--background": "var(--t-color-surface)"
595
602
  }, e;
596
603
  });
597
- return (e, s) => (u(), _("div", {
604
+ return (e, n) => (u(), _("div", {
598
605
  class: "t-card",
599
606
  style: w(o.value)
600
607
  }, [
@@ -602,23 +609,23 @@ const Le = /* @__PURE__ */ T({
602
609
  ], 4));
603
610
  }
604
611
  }), qe = {}, Xe = { class: "t-content" };
605
- function We(t, n) {
612
+ function We(t, s) {
606
613
  return u(), _("div", Xe, [
607
614
  h(t.$slots, "default", {}, void 0, !0)
608
615
  ]);
609
616
  }
610
- const re = /* @__PURE__ */ b(qe, [["render", We], ["__scopeId", "data-v-da5d10c1"]]), ee = 80, Ye = /* @__PURE__ */ T({
617
+ const re = /* @__PURE__ */ b(qe, [["render", We], ["__scopeId", "data-v-d58accf4"]]), ee = 80, Ye = /* @__PURE__ */ T({
611
618
  __name: "t-refresher",
612
619
  emits: ["refresh"],
613
- setup(t, { emit: n }) {
614
- const o = n, e = y(0), s = y(!1), r = y();
620
+ setup(t, { emit: s }) {
621
+ const o = s, e = y(0), n = y(!1), r = y();
615
622
  let c, i = !1;
616
623
  const d = () => {
617
- s.value = !1, e.value = 0, c && c.cancel(), setTimeout(() => {
624
+ n.value = !1, e.value = 0, c && c.cancel(), setTimeout(() => {
618
625
  i = !1;
619
626
  }, 2e3);
620
627
  }, p = () => {
621
- i = !0, s.value = !0, e.value = ee, o("refresh", d);
628
+ i = !0, n.value = !0, e.value = ee, o("refresh", d);
622
629
  };
623
630
  return A(() => r.value, () => {
624
631
  c && c.destroy();
@@ -628,13 +635,13 @@ const re = /* @__PURE__ */ b(qe, [["render", We], ["__scopeId", "data-v-da5d10c1
628
635
  minDist: 60
629
636
  },
630
637
  move({ dy: v, e: l }) {
631
- s.value || i || v < 0 || (v > 5 && f.scrollTop == 0 && (l.preventDefault(), f.classList.add("scroll-hidden")), v >= 120 ? p() : v > 10 && (e.value = v));
638
+ n.value || i || v < 0 || (v > 5 && f.scrollTop == 0 && (l.preventDefault(), f.classList.add("scroll-hidden")), v >= 120 ? p() : v > 10 && (e.value = v));
632
639
  },
633
640
  up({ dy: v, e: l }) {
634
- f.classList.remove("scroll-hidden"), !(s.value || i) && (v > ee ? p() : e.value = 0);
641
+ f.classList.remove("scroll-hidden"), !(n.value || i) && (v > ee ? p() : e.value = 0);
635
642
  },
636
643
  cancel() {
637
- f.classList.remove("scroll-hidden"), !(s.value || i) && (s.value = !1, e.value = 0);
644
+ f.classList.remove("scroll-hidden"), !(n.value || i) && (n.value = !1, e.value = 0);
638
645
  }
639
646
  }, {
640
647
  passive: !1
@@ -648,7 +655,7 @@ const re = /* @__PURE__ */ b(qe, [["render", We], ["__scopeId", "data-v-da5d10c1
648
655
  style: w({ height: `${e.value}px` })
649
656
  }, [
650
657
  $("img", {
651
- class: x({ spiner: s.value }),
658
+ class: x({ spiner: n.value }),
652
659
  src: "https://static.toikit.com/toikit/home_2.png?v=3",
653
660
  alt: "Loading...",
654
661
  style: { width: "22px", height: "22px" }
@@ -658,7 +665,7 @@ const re = /* @__PURE__ */ b(qe, [["render", We], ["__scopeId", "data-v-da5d10c1
658
665
  ]);
659
666
  }
660
667
  }), He = /* @__PURE__ */ b(Ye, [["__scopeId", "data-v-ac2b2370"]]), Ue = {}, je = { class: "t-screen" };
661
- function Fe(t, n) {
668
+ function Fe(t, s) {
662
669
  return u(), _("div", je, [
663
670
  h(t.$slots, "default", {}, void 0, !0)
664
671
  ]);
@@ -666,9 +673,9 @@ function Fe(t, n) {
666
673
  const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c"]]), Ge = /* @__PURE__ */ T({
667
674
  __name: "t-swipe-screen",
668
675
  emits: ["change"],
669
- setup(t, { emit: n }) {
676
+ setup(t, { emit: s }) {
670
677
  let o = {};
671
- const e = oe(), s = pe(), r = e.getRoutes(), c = y(!1), i = n;
678
+ const e = oe(), n = pe(), r = e.getRoutes(), c = y(!1), i = s;
672
679
  for (let a of r)
673
680
  o[a.name] = a.components;
674
681
  const d = (a) => {
@@ -688,7 +695,7 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
688
695
  k.removeScreen(), i("change"), c.value = !1;
689
696
  }, 400);
690
697
  };
691
- d(s.name), A(() => s.name, (a, g) => {
698
+ d(n.name), A(() => n.name, (a, g) => {
692
699
  a != k.currentScreen.value.name && (k.lastScreen.value?.name == a ? f() : d(a));
693
700
  });
694
701
  const v = () => {
@@ -712,9 +719,9 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
712
719
  a == "right" && e.back();
713
720
  },
714
721
  move({ dx: a }) {
715
- const g = window.innerWidth, m = a / g * 100, I = k.currentScreen.value.target, R = k.lastScreen?.value?.target;
722
+ const g = window.innerWidth, m = a / g * 100, z = k.currentScreen.value.target, R = k.lastScreen?.value?.target;
716
723
  if (a > 15 && a <= g) {
717
- I.style.transition = "transform 0s ease", I.style.transform = `translateX(${a}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 * ${m}))) scale(${0.5 + 0.5 / 100 * m}) perspective(var(--t-app-width)) rotateY(${30 - 30 / 100 * m}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * m}`);
724
+ z.style.transition = "transform 0s ease", z.style.transform = `translateX(${a}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 * ${m}))) scale(${0.5 + 0.5 / 100 * m}) perspective(var(--t-app-width)) rotateY(${30 - 30 / 100 * m}deg)`, document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", `${0.5 - 0.5 / 100 * m}`);
718
725
  return;
719
726
  }
720
727
  },
@@ -729,14 +736,14 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
729
736
  }), L(() => {
730
737
  l && l.destroy(), k.removeAllScreen();
731
738
  }), (a, g) => (u(), _(V, null, [
732
- (u(!0), _(V, null, U(P(k).screens, (m, I) => (u(), z(ae, {
739
+ (u(!0), _(V, null, U(P(k).screens, (m, z) => (u(), S(ae, {
733
740
  ref_for: !0,
734
- ref: (R) => p(I, R),
735
- style: w({ zIndex: I + (I == P(k).screens.length - 1 ? 2 : 1) }),
736
- key: I
741
+ ref: (R) => p(z, R),
742
+ style: w({ zIndex: z + (z == P(k).screens.length - 1 ? 2 : 1) }),
743
+ key: z
737
744
  }, {
738
745
  default: E(() => [
739
- (u(), z(ce(m.component.default)))
746
+ (u(), S(ce(m.component.default)))
740
747
  ]),
741
748
  _: 2
742
749
  }, 1032, ["style"]))), 128)),
@@ -753,10 +760,10 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
753
760
  size: { default: "50px" }
754
761
  },
755
762
  setup(t) {
756
- const n = t;
763
+ const s = t;
757
764
  return (o, e) => (u(), _("div", {
758
- class: x(["t-toolbar", { [n.placement]: !0 }]),
759
- style: w({ "--t-size-toolbar": n.size })
765
+ class: x(["t-toolbar", { [s.placement]: !0 }]),
766
+ style: w({ "--t-size-toolbar": s.size })
760
767
  }, [
761
768
  $("div", null, [
762
769
  h(o.$slots, "default", {}, void 0, !0)
@@ -769,15 +776,15 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
769
776
  to: {}
770
777
  },
771
778
  setup(t) {
772
- const n = oe(), o = t, e = () => {
773
- k.hasPrevious.value ? n?.back?.() : o.to && n?.push?.(o.to);
779
+ const s = oe(), o = t, e = () => {
780
+ k.hasPrevious.value ? s?.back?.() : o.to && s?.push?.(o.to);
774
781
  };
775
- return (s, r) => s.to || P(k).hasPrevious ? (u(), _("button", {
782
+ return (n, r) => n.to || P(k).hasPrevious ? (u(), _("button", {
776
783
  key: 0,
777
784
  class: "t-back-button",
778
785
  onClick: e
779
786
  }, [
780
- h(s.$slots, "default", {}, () => [
787
+ h(n.$slots, "default", {}, () => [
781
788
  r[0] || (r[0] = $("i", { class: "ri-arrow-left-s-line" }, null, -1))
782
789
  ], !0)
783
790
  ])) : C("", !0);
@@ -789,14 +796,14 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
789
796
  size: { default: "standard" }
790
797
  },
791
798
  setup(t) {
792
- const n = t, o = S(() => {
793
- let e, s = n.color;
794
- return n.size == "standard" ? e = "var(--t-fs-10)" : n.size == "small" ? e = "var(--t-fs-08)" : n.size == "large" ? e = "var(--t-fs-12)" : e = n.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) && (s = `var(--t-color-status-${n.color})`), {
795
- "--color": s,
799
+ const s = t, o = I(() => {
800
+ let e, n = s.color;
801
+ return s.size == "standard" ? e = "var(--t-fs-10)" : s.size == "small" ? e = "var(--t-fs-08)" : s.size == "large" ? e = "var(--t-fs-12)" : e = s.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) && (n = `var(--t-color-status-${s.color})`), {
802
+ "--color": n,
796
803
  "--font-size": e
797
804
  };
798
805
  });
799
- return (e, s) => (u(), _("span", {
806
+ return (e, n) => (u(), _("span", {
800
807
  class: "t-text",
801
808
  style: w(o.value)
802
809
  }, [
@@ -809,8 +816,8 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
809
816
  placement: { default: "bottom" }
810
817
  },
811
818
  setup(t) {
812
- return (n, o) => (u(), _("div", {
813
- class: x(["t-pull-bar", { [n.placement]: !0 }])
819
+ return (s, o) => (u(), _("div", {
820
+ class: x(["t-pull-bar", { [s.placement]: !0 }])
814
821
  }, null, 2));
815
822
  }
816
823
  }), le = /* @__PURE__ */ b(tt, [["__scopeId", "data-v-daa38c85"]]), ot = /* @__PURE__ */ T({
@@ -825,13 +832,14 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
825
832
  backdrop: { type: Boolean, default: !0 },
826
833
  rounded: { type: Boolean, default: !0 },
827
834
  radius: { type: Boolean, default: !0 },
835
+ size: {},
828
836
  closeButton: { type: Boolean, default: !0 }
829
837
  },
830
838
  emits: ["dismiss"],
831
- setup(t, { emit: n }) {
832
- const o = t, e = n, s = y(), r = y(), c = y(!1);
839
+ setup(t, { emit: s }) {
840
+ const o = t, e = s, n = y(), r = y(), c = y(!1);
833
841
  let i = null;
834
- const d = S(() => {
842
+ const d = I(() => {
835
843
  if (o.placement == "bottom") return "down";
836
844
  if (o.placement == "top") return "up";
837
845
  if (o.placement == "left") return "left";
@@ -843,8 +851,8 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
843
851
  c.value = !1;
844
852
  }, 300);
845
853
  };
846
- return A(() => s.value, (v) => {
847
- v && (i = N(s.value, {
854
+ return A(() => n.value, (v) => {
855
+ v && (i = N(n.value, {
848
856
  options: {
849
857
  minDist: 30
850
858
  },
@@ -872,8 +880,8 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
872
880
  r.value.open();
873
881
  return;
874
882
  }
875
- let m, I, R;
876
- o.placement == "bottom" || o.placement == "top" ? (m = s.value.offsetHeight, R = l) : (m = s.value.offsetWidth, R = a), I = R / m * 100, I > 50 ? e("dismiss", "gesture") : r.value.open();
883
+ let m, z, R;
884
+ o.placement == "bottom" || o.placement == "top" ? (m = n.value.offsetHeight, R = l) : (m = n.value.offsetWidth, R = a), z = R / m * 100, z > 50 ? e("dismiss", "gesture") : r.value.open();
877
885
  },
878
886
  cancel() {
879
887
  f(), r.value.open();
@@ -881,9 +889,10 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
881
889
  }));
882
890
  }), L(() => {
883
891
  i && i.destroy();
884
- }), (v, l) => (u(), z(W, {
892
+ }), (v, l) => (u(), S(W, {
885
893
  ref_key: "present",
886
894
  ref: r,
895
+ size: o.size,
887
896
  fullscreen: o.fullscreen,
888
897
  placement: o.placement,
889
898
  backdrop: v.backdrop,
@@ -892,7 +901,7 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
892
901
  onDismiss: p
893
902
  }, {
894
903
  default: E(() => [
895
- o.gesture && o.placement != "center" ? (u(), z(le, {
904
+ o.gesture && o.placement != "center" ? (u(), S(le, {
896
905
  key: 0,
897
906
  placement: o.placement
898
907
  }, null, 8, ["placement"])) : C("", !0),
@@ -909,15 +918,15 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
909
918
  class: x(["t-sheet", { fullscreen: o.fullscreen, [o.placement]: !0, rounded: v.rounded, radius: o.radius }]),
910
919
  style: w({ "--background": o.background }),
911
920
  ref_key: "sheet",
912
- ref: s
921
+ ref: n
913
922
  }, [
914
923
  h(v.$slots, "default", {}, void 0, !0)
915
924
  ], 6)
916
925
  ]),
917
926
  _: 3
918
- }, 8, ["fullscreen", "placement", "backdrop", "visible", "keepalive"]));
927
+ }, 8, ["size", "fullscreen", "placement", "backdrop", "visible", "keepalive"]));
919
928
  }
920
- }), nt = /* @__PURE__ */ b(ot, [["__scopeId", "data-v-3a82ec37"]]), st = { class: "t-input-label" }, rt = { class: "t-input-content" }, at = ["type", "placeholder", "value"], lt = /* @__PURE__ */ T({
929
+ }), st = /* @__PURE__ */ b(ot, [["__scopeId", "data-v-f3241fc7"]]), nt = { class: "t-input-label" }, rt = { class: "t-input-content" }, at = ["type", "placeholder", "value"], lt = /* @__PURE__ */ T({
921
930
  __name: "t-input",
922
931
  props: {
923
932
  size: { default: "standard" },
@@ -931,27 +940,27 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
931
940
  variant: { default: "default" }
932
941
  },
933
942
  emits: ["update:modelValue"],
934
- setup(t, { emit: n }) {
935
- const o = t, e = n, s = (r) => {
943
+ setup(t, { emit: s }) {
944
+ const o = t, e = s, n = (r) => {
936
945
  e("update:modelValue", r.target.value);
937
946
  };
938
947
  return (r, c) => (u(), _("div", {
939
948
  class: x(["t-input", { rounded: o.rounded, ["size-" + o.size]: !0, ["variant-" + o.variant]: !0 }])
940
949
  }, [
941
950
  $("label", null, [
942
- $("span", st, D(r.label), 1),
951
+ $("span", nt, D(r.label), 1),
943
952
  $("div", rt, [
944
953
  h(r.$slots, "start", {}, void 0, !0),
945
954
  $("input", {
946
955
  type: r.type,
947
956
  placeholder: r.placeholder,
948
957
  value: r.modelValue,
949
- onInput: s
958
+ onInput: n
950
959
  }, null, 40, at),
951
960
  h(r.$slots, "end", {}, void 0, !0)
952
961
  ])
953
962
  ]),
954
- o.error ? (u(), z(J, {
963
+ o.error ? (u(), S(J, {
955
964
  key: 0,
956
965
  color: "danger"
957
966
  }, {
@@ -959,7 +968,7 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
959
968
  O(D(o.error), 1)
960
969
  ]),
961
970
  _: 1
962
- })) : o.help ? (u(), z(J, {
971
+ })) : o.help ? (u(), S(J, {
963
972
  key: 1,
964
973
  color: "secondary"
965
974
  }, {
@@ -971,19 +980,19 @@ const ae = /* @__PURE__ */ b(Ue, [["render", Fe], ["__scopeId", "data-v-c2a3436c
971
980
  ], 2));
972
981
  }
973
982
  }), ct = /* @__PURE__ */ b(lt, [["__scopeId", "data-v-1a9425cf"]]), it = {};
974
- function ut(t, n) {
983
+ function ut(t, s) {
975
984
  return u(), _("textarea");
976
985
  }
977
986
  const dt = /* @__PURE__ */ b(it, [["render", ut]]), pt = {};
978
- function ft(t, n) {
987
+ function ft(t, s) {
979
988
  return u(), _("div");
980
989
  }
981
990
  const mt = /* @__PURE__ */ b(pt, [["render", ft]]), vt = {}, _t = { class: "t-grid" };
982
- function yt(t, n) {
991
+ function yt(t, s) {
983
992
  return u(), _("div", _t);
984
993
  }
985
994
  const gt = /* @__PURE__ */ b(vt, [["render", yt]]), bt = {}, ht = { class: "t-grid-item" };
986
- function kt(t, n) {
995
+ function kt(t, s) {
987
996
  return u(), _("div", ht);
988
997
  }
989
998
  const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
@@ -992,9 +1001,9 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
992
1001
  direction: { default: "horizontal" }
993
1002
  },
994
1003
  setup(t) {
995
- const n = t;
1004
+ const s = t;
996
1005
  return (o, e) => (u(), _("div", {
997
- class: x(["t-divider", { [n.direction]: !0 }])
1006
+ class: x(["t-divider", { [s.direction]: !0 }])
998
1007
  }, null, 2));
999
1008
  }
1000
1009
  }), wt = /* @__PURE__ */ b(Tt, [["__scopeId", "data-v-47ee8991"]]), xt = /* @__PURE__ */ T({
@@ -1003,8 +1012,8 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1003
1012
  color: { default: "warning" }
1004
1013
  },
1005
1014
  emits: ["change"],
1006
- setup(t, { emit: n }) {
1007
- const o = t, e = n, s = y(!1), r = y(), c = S(() => {
1015
+ setup(t, { emit: s }) {
1016
+ const o = t, e = s, n = y(!1), r = y(), c = I(() => {
1008
1017
  let p = o.color;
1009
1018
  return ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (p = `var(--t-color-status-${o.color})`), {
1010
1019
  "--color": p
@@ -1012,11 +1021,11 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1012
1021
  }), i = () => r.value?.parentElement?.querySelector?.("input");
1013
1022
  Q(() => {
1014
1023
  let p = i();
1015
- p && (s.value = p.type != "password", e("change", s.value));
1024
+ p && (n.value = p.type != "password", e("change", n.value));
1016
1025
  });
1017
1026
  const d = () => {
1018
1027
  let p = i();
1019
- p && (s.value = !s.value, s.value ? p.type = "text" : p.type = "password", e("change", s.value));
1028
+ p && (n.value = !n.value, n.value ? p.type = "text" : p.type = "password", e("change", n.value));
1020
1029
  };
1021
1030
  return (p, f) => (u(), _("button", {
1022
1031
  ref_key: "toggle",
@@ -1025,30 +1034,30 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1025
1034
  style: w(c.value),
1026
1035
  onClick: d
1027
1036
  }, [
1028
- s.value ? h(p.$slots, "on", { key: 0 }, () => [
1037
+ n.value ? h(p.$slots, "on", { key: 0 }, () => [
1029
1038
  f[0] || (f[0] = $("i", { class: "ri-eye-line" }, null, -1))
1030
1039
  ], !0) : C("", !0),
1031
- s.value ? C("", !0) : h(p.$slots, "off", { key: 1 }, () => [
1040
+ n.value ? C("", !0) : h(p.$slots, "off", { key: 1 }, () => [
1032
1041
  f[1] || (f[1] = $("i", { class: "ri-eye-off-line" }, null, -1))
1033
1042
  ], !0)
1034
1043
  ], 4));
1035
1044
  }
1036
- }), It = /* @__PURE__ */ b(xt, [["__scopeId", "data-v-3268e9e3"]]), St = /* @__PURE__ */ T({
1045
+ }), zt = /* @__PURE__ */ b(xt, [["__scopeId", "data-v-3268e9e3"]]), It = /* @__PURE__ */ T({
1037
1046
  __name: "t-avatar",
1038
1047
  props: {
1039
1048
  square: { type: Boolean, default: !1 },
1040
1049
  size: { default: "standard" }
1041
1050
  },
1042
1051
  setup(t) {
1043
- const n = t, o = S(() => n.size == "small" ? "24px" : n.size == "standard" ? "40px" : n.size == "large" ? "60px" : n.size);
1044
- return (e, s) => (u(), _("div", {
1052
+ const s = t, o = I(() => s.size == "small" ? "24px" : s.size == "standard" ? "40px" : s.size == "large" ? "60px" : s.size);
1053
+ return (e, n) => (u(), _("div", {
1045
1054
  class: x(["t-avatar", { square: e.square }]),
1046
1055
  style: w({ "--size": o.value })
1047
1056
  }, [
1048
1057
  h(e.$slots, "default", {}, void 0, !0)
1049
1058
  ], 6));
1050
1059
  }
1051
- }), zt = /* @__PURE__ */ b(St, [["__scopeId", "data-v-24384c2f"]]), Bt = { class: "t-collapse-title" }, Ct = {
1060
+ }), St = /* @__PURE__ */ b(It, [["__scopeId", "data-v-24384c2f"]]), Bt = { class: "t-collapse-title" }, Ct = {
1052
1061
  key: 0,
1053
1062
  class: "icon"
1054
1063
  }, Et = {
@@ -1060,12 +1069,12 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1060
1069
  title: {}
1061
1070
  },
1062
1071
  emits: ["change"],
1063
- setup(t, { emit: n }) {
1064
- const o = t, e = n, s = y(!1), r = y(""), c = y(), i = () => {
1065
- s.value = !s.value, r.value = `calc(${c.value.offsetHeight}px + 2rem)`, e("change", s.value);
1072
+ setup(t, { emit: s }) {
1073
+ const o = t, e = s, n = y(!1), r = y(""), c = y(), i = () => {
1074
+ n.value = !n.value, r.value = `calc(${c.value.offsetHeight}px + 2rem)`, e("change", n.value);
1066
1075
  };
1067
- return e("change", s.value), (d, p) => (u(), _("div", {
1068
- class: x(["t-collapse", { open: s.value }]),
1076
+ return e("change", n.value), (d, p) => (u(), _("div", {
1077
+ class: x(["t-collapse", { open: n.value }]),
1069
1078
  style: w({ "--height": r.value })
1070
1079
  }, [
1071
1080
  $("div", {
@@ -1079,7 +1088,7 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1079
1088
  ])
1080
1089
  ]),
1081
1090
  h(d.$slots, "toggle", {}, () => [
1082
- s.value ? (u(), _("div", Ct, [...p[0] || (p[0] = [
1091
+ n.value ? (u(), _("div", Ct, [...p[0] || (p[0] = [
1083
1092
  $("i", { class: "ri-arrow-up-s-line" }, null, -1)
1084
1093
  ])])) : (u(), _("div", Et, [...p[1] || (p[1] = [
1085
1094
  $("i", { class: "ri-arrow-down-s-line" }, null, -1)
@@ -1105,10 +1114,10 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1105
1114
  color: { default: "primary" }
1106
1115
  },
1107
1116
  emits: ["update:modelValue"],
1108
- setup(t, { emit: n }) {
1109
- const o = t, e = n, s = () => {
1117
+ setup(t, { emit: s }) {
1118
+ const o = t, e = s, n = () => {
1110
1119
  e("update:modelValue", !o.modelValue);
1111
- }, r = S(() => {
1120
+ }, r = I(() => {
1112
1121
  let c = {
1113
1122
  "--background": o.color,
1114
1123
  "--color": "#ffffff"
@@ -1121,7 +1130,7 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1121
1130
  return (c, i) => (u(), _("div", {
1122
1131
  class: x(["t-switch", { on: o.modelValue }]),
1123
1132
  style: w(r.value),
1124
- onClick: s
1133
+ onClick: n
1125
1134
  }, [...i[0] || (i[0] = [
1126
1135
  $("div", { class: "t-switch-icon" }, null, -1)
1127
1136
  ])], 6));
@@ -1132,15 +1141,15 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1132
1141
  value: {}
1133
1142
  },
1134
1143
  setup(t) {
1135
- const n = t, o = ue("tabsState"), e = S(() => o.active.value === n.value), s = () => {
1136
- o.setActive(n.value);
1144
+ const s = t, o = ue("tabsState"), e = I(() => o.active.value === s.value), n = () => {
1145
+ o.setActive(s.value);
1137
1146
  };
1138
1147
  return (r, c) => (u(), _("li", {
1139
1148
  class: x(["t-tab", { active: e.value }])
1140
1149
  }, [
1141
1150
  j(M, {
1142
1151
  variant: "text",
1143
- onClick: s,
1152
+ onClick: n,
1144
1153
  size: P(o).size,
1145
1154
  color: e.value && P(o).variant == "text" ? P(o).color : void 0
1146
1155
  }, {
@@ -1162,8 +1171,8 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1162
1171
  size: { default: "standard" }
1163
1172
  },
1164
1173
  emits: ["update:modelValue"],
1165
- setup(t, { emit: n }) {
1166
- const o = t, e = n, s = y("0px"), r = y(), c = S(() => {
1174
+ setup(t, { emit: s }) {
1175
+ const o = t, e = s, n = y("0px"), r = y(), c = I(() => {
1167
1176
  let d = o.color;
1168
1177
  return ["warning", "info", "danger", "primary", "secondary", "success"].includes(d) && (d = `var(--t-color-status-${d})`), d;
1169
1178
  }), i = () => {
@@ -1172,19 +1181,19 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1172
1181
  let d = r.value.querySelector(".active");
1173
1182
  if (d) {
1174
1183
  let p = d.getBoundingClientRect().left - r.value.getBoundingClientRect().left + r.value.scrollLeft, f = d.offsetWidth / 2;
1175
- s.value = p + f - o.border / 2 + "px";
1184
+ n.value = p + f - o.border / 2 + "px";
1176
1185
  }
1177
1186
  } else if (o.placement.startsWith("left-") || o.placement.startsWith("right-")) {
1178
1187
  let d = r.value.querySelector(".active");
1179
1188
  if (d) {
1180
1189
  let p = d.getBoundingClientRect().top - r.value.getBoundingClientRect().top + r.value.scrollTop, f = d.offsetHeight / 2;
1181
- s.value = p + f - o.border / 2 + "px";
1190
+ n.value = p + f - o.border / 2 + "px";
1182
1191
  }
1183
1192
  }
1184
1193
  }, 50);
1185
1194
  };
1186
1195
  return de("tabsState", {
1187
- active: S(() => o.modelValue),
1196
+ active: I(() => o.modelValue),
1188
1197
  color: c.value,
1189
1198
  size: o.size,
1190
1199
  variant: o.variant,
@@ -1197,7 +1206,7 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1197
1206
  ref_key: "container",
1198
1207
  ref: r,
1199
1208
  class: x(["t-tabs", { [d.placement]: !0, [d.variant]: !0 }]),
1200
- style: w({ "--color": c.value, "--transform": s.value, "--border": d.border + "px" })
1209
+ style: w({ "--color": c.value, "--transform": n.value, "--border": d.border + "px" })
1201
1210
  }, [
1202
1211
  h(d.$slots, "default", {}, void 0, !0)
1203
1212
  ], 6));
@@ -1205,7 +1214,7 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1205
1214
  }), Ot = /* @__PURE__ */ b(Nt, [["__scopeId", "data-v-65a2c74c"]]), qt = /* @__PURE__ */ T({
1206
1215
  __name: "t-loading-app",
1207
1216
  setup(t) {
1208
- return (n, o) => (u(), z(re, null, {
1217
+ return (s, o) => (u(), S(re, null, {
1209
1218
  default: E(() => [
1210
1219
  j(K, { type: "spinner" })
1211
1220
  ]),
@@ -1214,7 +1223,7 @@ const $t = /* @__PURE__ */ b(bt, [["render", kt]]), Tt = /* @__PURE__ */ T({
1214
1223
  }
1215
1224
  }), Xt = /* @__PURE__ */ b(qt, [["__scopeId", "data-v-1436aa9f"]]), Kt = () => ({
1216
1225
  install: (t) => {
1217
- fe(), t.component("t-app", ye), t.component("t-screen", ae), t.component("t-swipe-screen", Ke), t.component("t-cable", Ne), t.component("t-toolbar", Je), t.component("t-content", re), t.component("t-card", Oe), t.component("t-refresher", He), t.component("t-button", M), t.component("t-back-button", Ze), t.component("t-present", W), t.component("t-text", J), t.component("t-sheet", nt), t.component("t-pull-signal", le), t.component("t-input", ct), t.component("t-textarea", dt), t.component("t-rich-text", mt), t.component("t-grid", gt), t.component("t-grid-item", $t), t.component("t-divider", wt), t.component("t-toggle-password", It), t.component("t-loading-icon", K), t.component("t-alert", ne), t.component("t-avatar", zt), t.component("t-collapse", Dt), t.component("t-toast", se), t.component("t-switch", At), t.component("t-tab", Lt), t.component("t-tabs", Ot), t.component("t-loading-app", Xt);
1226
+ fe(), t.component("t-app", ye), t.component("t-screen", ae), t.component("t-swipe-screen", Ke), t.component("t-cable", Ne), t.component("t-toolbar", Je), t.component("t-content", re), t.component("t-card", Oe), t.component("t-refresher", He), t.component("t-button", M), t.component("t-back-button", Ze), t.component("t-present", W), t.component("t-text", J), t.component("t-sheet", st), t.component("t-pull-signal", le), t.component("t-input", ct), t.component("t-textarea", dt), t.component("t-rich-text", mt), t.component("t-grid", gt), t.component("t-grid-item", $t), t.component("t-divider", wt), t.component("t-toggle-password", zt), t.component("t-loading-icon", K), t.component("t-alert", se), t.component("t-avatar", St), t.component("t-collapse", Dt), t.component("t-toast", ne), t.component("t-switch", At), t.component("t-tab", Lt), t.component("t-tabs", Ot), t.component("t-loading-app", Xt);
1218
1227
  }
1219
1228
  });
1220
1229
  export {