@toife/vue 1.2.47 → 1.2.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/components/t-refresher.vue.d.ts +6 -0
- package/dist/index.css +1 -1
- package/dist/index.es.js +207 -207
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -8,13 +8,13 @@ const we = (e) => e && (e.tagName == "INPUT" || e.tagName == "TEXTAREA" || e.isC
|
|
|
8
8
|
document.addEventListener("contextmenu", (e) => e.preventDefault()), document.addEventListener("selectstart", (e) => e.preventDefault()), document.addEventListener("pointerup", (e) => {
|
|
9
9
|
!we(e.target) && xe();
|
|
10
10
|
});
|
|
11
|
-
}, v = (e,
|
|
12
|
-
const
|
|
13
|
-
for (const [o, n] of
|
|
14
|
-
|
|
15
|
-
return
|
|
11
|
+
}, v = (e, s) => {
|
|
12
|
+
const t = e.__vccOpts || e;
|
|
13
|
+
for (const [o, n] of s)
|
|
14
|
+
t[o] = n;
|
|
15
|
+
return t;
|
|
16
16
|
}, Se = {}, ze = { class: "t-app" };
|
|
17
|
-
function Ie(e,
|
|
17
|
+
function Ie(e, s) {
|
|
18
18
|
return c(), d("div", ze, [
|
|
19
19
|
g(e.$slots, "default")
|
|
20
20
|
]);
|
|
@@ -30,8 +30,8 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
30
30
|
class: {}
|
|
31
31
|
},
|
|
32
32
|
emits: ["dismiss"],
|
|
33
|
-
setup(e, { expose:
|
|
34
|
-
const o = m(0), n = m(!1), l = m(), u = m(), a = e, i =
|
|
33
|
+
setup(e, { expose: s, emit: t }) {
|
|
34
|
+
const o = m(0), n = m(!1), l = m(), u = m(), a = e, i = t, p = w(() => n.value || a.keepalive), _ = ce({
|
|
35
35
|
"--t-present-backdrop-opacity": "0.4",
|
|
36
36
|
"--t-present-transition": "0.2s",
|
|
37
37
|
"--t-present-content-transform": "0px",
|
|
@@ -60,7 +60,7 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
60
60
|
}, 50)) : ($(), setTimeout(() => {
|
|
61
61
|
n.value = !1;
|
|
62
62
|
}, 200));
|
|
63
|
-
}),
|
|
63
|
+
}), s({
|
|
64
64
|
render: r,
|
|
65
65
|
open: y,
|
|
66
66
|
close: $
|
|
@@ -105,7 +105,7 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
105
105
|
}
|
|
106
106
|
},
|
|
107
107
|
setup(e) {
|
|
108
|
-
return (
|
|
108
|
+
return (s, t) => (c(), d("span", {
|
|
109
109
|
class: "t-loading-icon",
|
|
110
110
|
style: k({
|
|
111
111
|
width: e.size,
|
|
@@ -132,39 +132,39 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
132
132
|
activeBackground: { type: Boolean, default: !1 }
|
|
133
133
|
},
|
|
134
134
|
setup(e) {
|
|
135
|
-
const
|
|
135
|
+
const s = e, t = w(() => {
|
|
136
136
|
let o;
|
|
137
|
-
return
|
|
137
|
+
return s.variant == "default" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? o = {
|
|
138
138
|
"--border": "none",
|
|
139
|
-
"--color": "var(--t-color-status-" +
|
|
140
|
-
"--background": "var(--t-color-status-" +
|
|
139
|
+
"--color": "var(--t-color-status-" + s.color + "-text)",
|
|
140
|
+
"--background": "var(--t-color-status-" + s.color + ")"
|
|
141
141
|
} : o = {
|
|
142
142
|
"--border": "none",
|
|
143
143
|
"--color": "var(--t-color-text)",
|
|
144
|
-
"--background":
|
|
144
|
+
"--background": s.color
|
|
145
145
|
} : o = {
|
|
146
146
|
"--border": "none",
|
|
147
147
|
"--color": "var(--t-color-text)",
|
|
148
148
|
"--background": "var(--t-color-surface)"
|
|
149
|
-
}),
|
|
149
|
+
}), s.variant == "text" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? o = {
|
|
150
150
|
"--border": "none",
|
|
151
|
-
"--color": "var(--t-color-status-" +
|
|
151
|
+
"--color": "var(--t-color-status-" + s.color + ")",
|
|
152
152
|
"--background": "transparent"
|
|
153
153
|
} : o = {
|
|
154
154
|
"--border": "none",
|
|
155
|
-
"--color":
|
|
155
|
+
"--color": s.color,
|
|
156
156
|
"--background": "transparent"
|
|
157
157
|
} : o = {
|
|
158
158
|
"--border": "none",
|
|
159
159
|
"--color": "var(--t-color-text)",
|
|
160
160
|
"--background": "transparent"
|
|
161
|
-
}),
|
|
162
|
-
"--border": "0.55px solid var(--t-color-status-" +
|
|
163
|
-
"--color": "var(--t-color-status-" +
|
|
161
|
+
}), s.variant == "outline" && (s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? o = {
|
|
162
|
+
"--border": "0.55px solid var(--t-color-status-" + s.color + ")",
|
|
163
|
+
"--color": "var(--t-color-status-" + s.color + ")",
|
|
164
164
|
"--background": "transparent"
|
|
165
165
|
} : o = {
|
|
166
|
-
"--border": "0.55px solid " +
|
|
167
|
-
"--color":
|
|
166
|
+
"--border": "0.55px solid " + s.color,
|
|
167
|
+
"--color": s.color,
|
|
168
168
|
"--background": "transparent"
|
|
169
169
|
} : o = {
|
|
170
170
|
"--border": "0.55px solid var(--t-color-text)",
|
|
@@ -173,18 +173,18 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
173
173
|
}), o;
|
|
174
174
|
});
|
|
175
175
|
return (o, n) => (c(), d("button", {
|
|
176
|
-
class: T(["t-button", { "active-background":
|
|
177
|
-
style: k(
|
|
176
|
+
class: T(["t-button", { "active-background": s.activeBackground, rounded: s.rounded, block: s.block, ["size-" + s.size]: !0 }]),
|
|
177
|
+
style: k(t.value)
|
|
178
178
|
}, [
|
|
179
179
|
W(h("span", Ve, [
|
|
180
180
|
g(o.$slots, "default", {}, void 0, !0)
|
|
181
181
|
], 512), [
|
|
182
|
-
[H, !
|
|
182
|
+
[H, !s.loading]
|
|
183
183
|
]),
|
|
184
|
-
|
|
184
|
+
s.loading ? (c(), d("span", Pe, [
|
|
185
185
|
U(K, {
|
|
186
186
|
color: "var(--color)",
|
|
187
|
-
type:
|
|
187
|
+
type: s.loadingType
|
|
188
188
|
}, null, 8, ["type"])
|
|
189
189
|
])) : E("", !0)
|
|
190
190
|
], 6));
|
|
@@ -201,8 +201,8 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
201
201
|
dismiss: {}
|
|
202
202
|
},
|
|
203
203
|
emits: ["dismiss"],
|
|
204
|
-
setup(e, { expose:
|
|
205
|
-
const o = e, n = m(!1), l =
|
|
204
|
+
setup(e, { expose: s, emit: t }) {
|
|
205
|
+
const o = e, n = m(!1), l = t, u = m(), a = m(!1), i = () => {
|
|
206
206
|
n.value = !0;
|
|
207
207
|
}, p = (r) => {
|
|
208
208
|
n.value = !1, r.handler && r.handler(), l("dismiss", "choose", r?.data);
|
|
@@ -211,7 +211,7 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
211
211
|
a.value = !1;
|
|
212
212
|
}, 300));
|
|
213
213
|
};
|
|
214
|
-
return
|
|
214
|
+
return s({
|
|
215
215
|
open: i
|
|
216
216
|
}), (r, y) => (c(), C(L, {
|
|
217
217
|
placement: "center",
|
|
@@ -253,11 +253,11 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
253
253
|
}
|
|
254
254
|
}), pe = /* @__PURE__ */ v(Xe, [["__scopeId", "data-v-05d0c578"]]), ks = (e = {}) => ({
|
|
255
255
|
open() {
|
|
256
|
-
return new Promise((
|
|
257
|
-
let
|
|
258
|
-
if (!
|
|
256
|
+
return new Promise((s) => {
|
|
257
|
+
let t = document.body.querySelector(".t-app");
|
|
258
|
+
if (!t) return;
|
|
259
259
|
const o = document.createElement("div"), n = m();
|
|
260
|
-
|
|
260
|
+
t.appendChild(o);
|
|
261
261
|
const l = j({
|
|
262
262
|
render() {
|
|
263
263
|
return F(pe, {
|
|
@@ -266,7 +266,7 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
266
266
|
onDismiss: (u, a) => {
|
|
267
267
|
setTimeout(() => {
|
|
268
268
|
l.unmount(), o.remove();
|
|
269
|
-
}, 300),
|
|
269
|
+
}, 300), s({ type: u, data: a });
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
272
|
}
|
|
@@ -284,8 +284,8 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
284
284
|
dismiss: {}
|
|
285
285
|
},
|
|
286
286
|
emits: ["dismiss"],
|
|
287
|
-
setup(e, { expose:
|
|
288
|
-
const o = e, n = m(!1), l =
|
|
287
|
+
setup(e, { expose: s, emit: t }) {
|
|
288
|
+
const o = e, n = m(!1), l = t, u = m(), a = m(!1), i = () => {
|
|
289
289
|
n.value = !0;
|
|
290
290
|
}, p = (r) => {
|
|
291
291
|
n.value = !1, r.handler && r.handler(), l("dismiss", "choose", r?.data);
|
|
@@ -296,7 +296,7 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
296
296
|
};
|
|
297
297
|
return O(() => o.visible, (r) => {
|
|
298
298
|
r ? i() : close();
|
|
299
|
-
}),
|
|
299
|
+
}), s({
|
|
300
300
|
open: i,
|
|
301
301
|
close
|
|
302
302
|
}), (r, y) => (c(), C(L, {
|
|
@@ -333,11 +333,11 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
333
333
|
}
|
|
334
334
|
}), Ne = /* @__PURE__ */ v(Oe, [["__scopeId", "data-v-e693a02a"]]), $s = (e = {}) => ({
|
|
335
335
|
open() {
|
|
336
|
-
return new Promise((
|
|
337
|
-
let
|
|
338
|
-
if (!
|
|
336
|
+
return new Promise((s) => {
|
|
337
|
+
let t = document.body.querySelector(".t-app");
|
|
338
|
+
if (!t) return;
|
|
339
339
|
const o = document.createElement("div"), n = m();
|
|
340
|
-
|
|
340
|
+
t.appendChild(o);
|
|
341
341
|
const l = j({
|
|
342
342
|
render() {
|
|
343
343
|
return F(Ne, {
|
|
@@ -346,7 +346,7 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
346
346
|
onDismiss: (u, a) => {
|
|
347
347
|
setTimeout(() => {
|
|
348
348
|
l.unmount(), o.remove();
|
|
349
|
-
}, 300),
|
|
349
|
+
}, 300), s({ type: u, data: a });
|
|
350
350
|
}
|
|
351
351
|
});
|
|
352
352
|
}
|
|
@@ -362,9 +362,9 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
362
362
|
type: { default: "spinner" }
|
|
363
363
|
},
|
|
364
364
|
emits: ["dismiss"],
|
|
365
|
-
setup(e, { expose:
|
|
365
|
+
setup(e, { expose: s, emit: t }) {
|
|
366
366
|
const o = e, n = m(!1);
|
|
367
|
-
return
|
|
367
|
+
return s({
|
|
368
368
|
open: () => {
|
|
369
369
|
n.value = !0;
|
|
370
370
|
},
|
|
@@ -390,26 +390,26 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
390
390
|
}, 8, ["visible"]));
|
|
391
391
|
}
|
|
392
392
|
}), We = /* @__PURE__ */ v(Le, [["__scopeId", "data-v-8f84c14e"]]), ws = (e = {}) => {
|
|
393
|
-
const
|
|
393
|
+
const s = m(), t = document.body.querySelector(".t-app");
|
|
394
394
|
let o = null, n = null;
|
|
395
395
|
return {
|
|
396
396
|
open() {
|
|
397
397
|
return new Promise((l) => {
|
|
398
|
-
|
|
398
|
+
t && (n = document.createElement("div"), t.appendChild(n), o = j({
|
|
399
399
|
render() {
|
|
400
400
|
return F(We, {
|
|
401
401
|
...e,
|
|
402
|
-
ref:
|
|
402
|
+
ref: s
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
405
|
}), o.mount(n), setTimeout(() => {
|
|
406
|
-
|
|
406
|
+
s.value?.open?.(), l(!0);
|
|
407
407
|
}, 50));
|
|
408
408
|
});
|
|
409
409
|
},
|
|
410
410
|
close() {
|
|
411
411
|
return new Promise((l) => {
|
|
412
|
-
|
|
412
|
+
s.value?.close?.(), setTimeout(() => {
|
|
413
413
|
o?.unmount?.(), n?.remove?.(), l(!0);
|
|
414
414
|
}, 300);
|
|
415
415
|
});
|
|
@@ -422,15 +422,15 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
422
422
|
}, M = ce([]), Q = m(!0), I = m(!1), A = m(-1), z = w(() => M[A.value]), q = w(() => M[A.value + 1] || void 0), B = w(() => M[M.length - 2]), fe = w(() => !I.value && Q.value && B.value), Z = {
|
|
423
423
|
reset() {
|
|
424
424
|
I.value = !0;
|
|
425
|
-
const e = z.value.target,
|
|
426
|
-
e.style.transition = "transform 0.35s ease", e.style.transform = "translateX(0px)",
|
|
425
|
+
const e = z.value.target, s = B.value.target;
|
|
426
|
+
e.style.transition = "transform 0.35s ease", e.style.transform = "translateX(0px)", s.style.transition = "transform 0.35s ease", s.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(() => {
|
|
427
427
|
I.value = !1;
|
|
428
428
|
}, 400);
|
|
429
429
|
},
|
|
430
430
|
move(e) {
|
|
431
431
|
if (!fe.value) return;
|
|
432
|
-
const
|
|
433
|
-
e > 15 && e <=
|
|
432
|
+
const s = window.innerWidth, t = e / s * 100, o = z.value.target, n = B.value.target;
|
|
433
|
+
e > 15 && e <= s && (e = e > 0 ? e : 0, o.style.transition = "transform 0s ease", o.style.transform = `translateX(${e}px)`, n.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), n.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}`));
|
|
434
434
|
},
|
|
435
435
|
back(e) {
|
|
436
436
|
B.value && (z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(0px) scale(1) perspective(var(--t-app-width)) rotateY(0deg)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), I.value = !0, setTimeout(() => {
|
|
@@ -444,9 +444,9 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
444
444
|
return;
|
|
445
445
|
}
|
|
446
446
|
I.value = !0;
|
|
447
|
-
let
|
|
448
|
-
|
|
449
|
-
|
|
447
|
+
let s = q.value.target;
|
|
448
|
+
s.style.transform = "translateX(var(--t-app-width))", s.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
|
|
449
|
+
s.style.transition = "transform 0.35s ease", s.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), z.value && (z.value.target.style.transitionOrigin = "left center", z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1)) scale(0.5) perspective(var(--t-app-width)) rotateY(30deg)"), setTimeout(() => {
|
|
450
450
|
I.value = !1, A.value += 1, e && e();
|
|
451
451
|
}, 400);
|
|
452
452
|
}, 100);
|
|
@@ -454,14 +454,14 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
454
454
|
}, Y = {
|
|
455
455
|
reset() {
|
|
456
456
|
I.value = !0;
|
|
457
|
-
const e = z.value.target,
|
|
458
|
-
e.style.transition = "transform 0.35s ease", e.style.transform = "translateX(0px)",
|
|
457
|
+
const e = z.value.target, s = B.value.target;
|
|
458
|
+
e.style.transition = "transform 0.35s ease", e.style.transform = "translateX(0px)", s.style.transition = "transform 0.35s ease", s.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(() => {
|
|
459
459
|
I.value = !1;
|
|
460
460
|
}, 400);
|
|
461
461
|
},
|
|
462
462
|
move(e) {
|
|
463
|
-
const
|
|
464
|
-
e > 15 && e <=
|
|
463
|
+
const s = window.innerWidth, t = e / s * 100, o = z.value.target, n = B.value.target;
|
|
464
|
+
e > 15 && e <= s && (e = e > 0 ? e : 0, o.style.transition = "transform 0s ease", o.style.transform = `translateX(${e}px)`, n.style.transition = "transform 0s ease", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), n.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}`));
|
|
465
465
|
},
|
|
466
466
|
back(e) {
|
|
467
467
|
B.value && (z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = "translateX(var(--t-app-width)) scale(1)", B.value.target.style.transition = "transform 0.35s ease", B.value.target.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), I.value = !0, setTimeout(() => {
|
|
@@ -475,17 +475,17 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
477
|
I.value = !0;
|
|
478
|
-
let
|
|
479
|
-
|
|
480
|
-
|
|
478
|
+
let s = q.value.target;
|
|
479
|
+
s.style.transform = "translateX(var(--t-app-width))", s.transitionOrigin = "center", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0"), setTimeout(() => {
|
|
480
|
+
s.style.transition = "transform 0.35s ease", s.style.transform = "translateX(0px)", document.documentElement.style.setProperty("--t-screen-backdrop-duration", "0.35s"), document.documentElement.style.setProperty("--t-swipe-backdrop-opacity", "0.5"), z.value && (z.value.target.style.transitionOrigin = "left center", z.value.target.style.transition = "transform 0.35s ease", z.value.target.style.transform = "translateX(calc(var(--t-app-width) / 100 * 30 * -1))"), setTimeout(() => {
|
|
481
481
|
I.value = !1, A.value += 1, e && e();
|
|
482
482
|
}, 400);
|
|
483
483
|
}, 100);
|
|
484
484
|
}
|
|
485
485
|
}, Ge = (e) => {
|
|
486
486
|
M.push(e);
|
|
487
|
-
}, Ue = (e,
|
|
488
|
-
M[e].target =
|
|
487
|
+
}, Ue = (e, s) => {
|
|
488
|
+
M[e].target = s;
|
|
489
489
|
}, re = (e) => {
|
|
490
490
|
e || M.pop();
|
|
491
491
|
}, je = () => {
|
|
@@ -494,12 +494,12 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
494
494
|
Q.value = !1;
|
|
495
495
|
}, Ke = () => {
|
|
496
496
|
Q.value = !0;
|
|
497
|
-
}, Je = (e,
|
|
498
|
-
e == "scale" && Z.next(
|
|
499
|
-
}, Qe = (e,
|
|
500
|
-
e == "scale" && Z.back(
|
|
501
|
-
}, Ze = (e,
|
|
502
|
-
e == "scale" && Z.move(
|
|
497
|
+
}, Je = (e, s) => {
|
|
498
|
+
e == "scale" && Z.next(s), e == "transform" && Y.next(s);
|
|
499
|
+
}, Qe = (e, s) => {
|
|
500
|
+
e == "scale" && Z.back(s), e == "transform" && Y.back(s);
|
|
501
|
+
}, Ze = (e, s) => {
|
|
502
|
+
e == "scale" && Z.move(s), e == "transform" && Y.move(s);
|
|
503
503
|
}, Ye = (e) => {
|
|
504
504
|
e == "scale" && Z.reset(), e == "transform" && Y.reset();
|
|
505
505
|
}, x = {
|
|
@@ -531,8 +531,8 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
531
531
|
visible: { type: Boolean, default: !1 }
|
|
532
532
|
},
|
|
533
533
|
emits: ["dismiss"],
|
|
534
|
-
setup(e, { expose:
|
|
535
|
-
const o = e, n =
|
|
534
|
+
setup(e, { expose: s, emit: t }) {
|
|
535
|
+
const o = e, n = t, l = m(!1), u = m(!1), a = m(!1), i = () => {
|
|
536
536
|
u.value = !0, a.value = !1, setTimeout(() => {
|
|
537
537
|
l.value = !0;
|
|
538
538
|
}, 10);
|
|
@@ -584,7 +584,7 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
584
584
|
"--background": "transparent"
|
|
585
585
|
}), r;
|
|
586
586
|
});
|
|
587
|
-
return
|
|
587
|
+
return s({
|
|
588
588
|
open: i,
|
|
589
589
|
close: p
|
|
590
590
|
}), (r, y) => u.value ? (c(), d("div", {
|
|
@@ -599,10 +599,10 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
599
599
|
}
|
|
600
600
|
}), me = /* @__PURE__ */ v(tt, [["__scopeId", "data-v-7011351e"]]), xs = (e = {}) => ({
|
|
601
601
|
open() {
|
|
602
|
-
let
|
|
603
|
-
if (!
|
|
604
|
-
const
|
|
605
|
-
|
|
602
|
+
let s = document.body.querySelector(".t-app");
|
|
603
|
+
if (!s) return;
|
|
604
|
+
const t = document.createElement("div"), o = m();
|
|
605
|
+
s.appendChild(t);
|
|
606
606
|
const n = j({
|
|
607
607
|
render() {
|
|
608
608
|
return F(me, {
|
|
@@ -610,13 +610,13 @@ const Ee = /* @__PURE__ */ v(Se, [["render", Ie]]), Be = /* @__PURE__ */ b({
|
|
|
610
610
|
ref: o,
|
|
611
611
|
onDismiss: () => {
|
|
612
612
|
setTimeout(() => {
|
|
613
|
-
n.unmount(),
|
|
613
|
+
n.unmount(), t.remove();
|
|
614
614
|
}, 300);
|
|
615
615
|
}
|
|
616
616
|
});
|
|
617
617
|
}
|
|
618
618
|
});
|
|
619
|
-
n.mount(
|
|
619
|
+
n.mount(t), setTimeout(() => {
|
|
620
620
|
o.value?.open?.(), setTimeout(() => {
|
|
621
621
|
o.value?.close?.();
|
|
622
622
|
}, e.duration + 10);
|
|
@@ -635,12 +635,12 @@ const ot = /* @__PURE__ */ b({
|
|
|
635
635
|
placement: { default: "bottom" }
|
|
636
636
|
},
|
|
637
637
|
setup(e) {
|
|
638
|
-
const
|
|
638
|
+
const s = e, { height: t } = ve();
|
|
639
639
|
return ie("cableState", {
|
|
640
|
-
placement:
|
|
640
|
+
placement: s.placement
|
|
641
641
|
}), (o, n) => (c(), d("div", {
|
|
642
|
-
class: T(["t-cable", { keyboard:
|
|
643
|
-
style: k({ "--t-keyboard-height": V(
|
|
642
|
+
class: T(["t-cable", { keyboard: s.keyboard && V(t) > 0, [s.placement]: !0 }]),
|
|
643
|
+
style: k({ "--t-keyboard-height": V(t) + "px", "--t-keyboard-transition": V(t) > 0 ? "0.3s" : "0.1s" })
|
|
644
644
|
}, [
|
|
645
645
|
g(o.$slots, "default", {}, void 0, !0)
|
|
646
646
|
], 6));
|
|
@@ -651,41 +651,41 @@ const ot = /* @__PURE__ */ b({
|
|
|
651
651
|
color: { default: null }
|
|
652
652
|
},
|
|
653
653
|
setup(e) {
|
|
654
|
-
const
|
|
654
|
+
const s = e, t = w(() => {
|
|
655
655
|
let o;
|
|
656
|
-
return
|
|
657
|
-
"--background": "var(--t-color-status-" +
|
|
656
|
+
return s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? o = {
|
|
657
|
+
"--background": "var(--t-color-status-" + s.color + ")"
|
|
658
658
|
} : o = {
|
|
659
|
-
"--background":
|
|
659
|
+
"--background": s.color
|
|
660
660
|
} : o = {
|
|
661
661
|
"--background": "var(--t-color-surface)"
|
|
662
662
|
}, o;
|
|
663
663
|
});
|
|
664
664
|
return (o, n) => (c(), d("div", {
|
|
665
665
|
class: "t-card",
|
|
666
|
-
style: k(
|
|
666
|
+
style: k(t.value)
|
|
667
667
|
}, [
|
|
668
668
|
g(o.$slots, "default")
|
|
669
669
|
], 4));
|
|
670
670
|
}
|
|
671
671
|
}), at = {}, lt = { class: "t-content" };
|
|
672
|
-
function ct(e,
|
|
672
|
+
function ct(e, s) {
|
|
673
673
|
return c(), d("div", lt, [
|
|
674
674
|
g(e.$slots, "default", {}, void 0, !0)
|
|
675
675
|
]);
|
|
676
676
|
}
|
|
677
677
|
const _e = /* @__PURE__ */ v(at, [["render", ct], ["__scopeId", "data-v-af750e89"]]), le = 80, it = /* @__PURE__ */ b({
|
|
678
678
|
__name: "t-refresher",
|
|
679
|
-
emits: ["refresh"],
|
|
680
|
-
setup(e, { emit:
|
|
681
|
-
const
|
|
679
|
+
emits: ["refresh", "move", "cancel", "start"],
|
|
680
|
+
setup(e, { emit: s }) {
|
|
681
|
+
const t = s, o = m(0), n = m(!1), l = m();
|
|
682
682
|
let u, a = !1;
|
|
683
683
|
const i = () => {
|
|
684
684
|
n.value = !1, o.value = 0, u && u.cancel(), setTimeout(() => {
|
|
685
685
|
a = !1;
|
|
686
686
|
}, 2e3);
|
|
687
687
|
}, p = () => {
|
|
688
|
-
a = !0, n.value = !0, o.value = le,
|
|
688
|
+
a = !0, n.value = !0, o.value = le, t("refresh", i);
|
|
689
689
|
};
|
|
690
690
|
return O(() => l.value, () => {
|
|
691
691
|
u && u.destroy();
|
|
@@ -696,16 +696,16 @@ const _e = /* @__PURE__ */ v(at, [["render", ct], ["__scopeId", "data-v-af750e89
|
|
|
696
696
|
minDist: 60
|
|
697
697
|
},
|
|
698
698
|
down() {
|
|
699
|
-
this.isMoving = !1;
|
|
699
|
+
this.isMoving = !1, t("start");
|
|
700
700
|
},
|
|
701
701
|
move({ deltaY: r, initialDirection: y }) {
|
|
702
|
-
n.value || a || y != "down" || (r >= 120 ? (this.isMoving = !1, p()) : (r > 10 || this.isMoving) && (this.isMoving = !0, o.value = r > 0 ? r : 0));
|
|
702
|
+
n.value || a || y != "down" || (r >= 120 ? (this.isMoving = !1, p()) : (r > 10 || this.isMoving) && (this.isMoving = !0, o.value = r > 0 ? r : 0, t("move", r)));
|
|
703
703
|
},
|
|
704
704
|
up({ deltaY: r, initialDirection: y }) {
|
|
705
|
-
this.isMoving = !1, !(n.value || a) && (r > le && y == "down" ? p() : o.value = 0);
|
|
705
|
+
this.isMoving = !1, !(n.value || a) && (r > le && y == "down" ? p() : (o.value = 0, t("cancel")));
|
|
706
706
|
},
|
|
707
707
|
cancel() {
|
|
708
|
-
this.isMoving = !1, !(n.value || a) && (n.value = !1, o.value = 0);
|
|
708
|
+
this.isMoving = !1, !(n.value || a) && (n.value = !1, o.value = 0, t("cancel"));
|
|
709
709
|
}
|
|
710
710
|
}, {
|
|
711
711
|
passive: !1
|
|
@@ -728,8 +728,8 @@ const _e = /* @__PURE__ */ v(at, [["render", ct], ["__scopeId", "data-v-af750e89
|
|
|
728
728
|
[H, o.value > 0]
|
|
729
729
|
]);
|
|
730
730
|
}
|
|
731
|
-
}), ut = /* @__PURE__ */ v(it, [["__scopeId", "data-v-
|
|
732
|
-
function ft(e,
|
|
731
|
+
}), ut = /* @__PURE__ */ v(it, [["__scopeId", "data-v-abd4007f"]]), dt = {}, pt = { class: "t-screen" };
|
|
732
|
+
function ft(e, s) {
|
|
733
733
|
return c(), d("div", pt, [
|
|
734
734
|
g(e.$slots, "default", {}, void 0, !0)
|
|
735
735
|
]);
|
|
@@ -740,17 +740,17 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
740
740
|
variant: { default: "scale" }
|
|
741
741
|
},
|
|
742
742
|
emits: ["change"],
|
|
743
|
-
setup(e, { emit:
|
|
744
|
-
let
|
|
745
|
-
const o = de(), n = $e(), l = o.getRoutes(), u =
|
|
743
|
+
setup(e, { emit: s }) {
|
|
744
|
+
let t = {};
|
|
745
|
+
const o = de(), n = $e(), l = o.getRoutes(), u = s, a = e;
|
|
746
746
|
let i;
|
|
747
747
|
for (let r of l)
|
|
748
|
-
|
|
748
|
+
t[r.name] = r.components;
|
|
749
749
|
const p = (r) => {
|
|
750
750
|
r && x.addScreen({
|
|
751
751
|
name: r,
|
|
752
752
|
target: null,
|
|
753
|
-
component: he(
|
|
753
|
+
component: he(t[r] || null)
|
|
754
754
|
});
|
|
755
755
|
}, _ = (r, y) => {
|
|
756
756
|
!y || x.screens[r].target || (x.addScreenEl(r, y.$el), x.nextScreen && x.next(a.variant, () => {
|
|
@@ -812,10 +812,10 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
812
812
|
size: { default: "50px" }
|
|
813
813
|
},
|
|
814
814
|
setup(e) {
|
|
815
|
-
const
|
|
815
|
+
const s = e, t = ue("cableState"), o = w(() => s?.placement || t?.placement);
|
|
816
816
|
return (n, l) => (c(), d("div", {
|
|
817
|
-
class: T(["t-toolbar", { [o.value]: !0, safe:
|
|
818
|
-
style: k({ "--t-size-toolbar":
|
|
817
|
+
class: T(["t-toolbar", { [o.value]: !0, safe: s.safe }]),
|
|
818
|
+
style: k({ "--t-size-toolbar": s.size })
|
|
819
819
|
}, [
|
|
820
820
|
h("div", null, [
|
|
821
821
|
g(n.$slots, "default", {}, void 0, !0)
|
|
@@ -828,12 +828,12 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
828
828
|
to: {}
|
|
829
829
|
},
|
|
830
830
|
setup(e) {
|
|
831
|
-
const
|
|
831
|
+
const s = de(), t = e, o = ke(), n = (l) => {
|
|
832
832
|
if (o.onBack) {
|
|
833
833
|
o.onBack(l);
|
|
834
834
|
return;
|
|
835
835
|
}
|
|
836
|
-
x.lastScreen.value ?
|
|
836
|
+
x.lastScreen.value ? s?.back?.() : t.to && s?.push?.(t.to);
|
|
837
837
|
};
|
|
838
838
|
return (l, u) => l.to || V(x).lastScreen ? (c(), d("button", {
|
|
839
839
|
key: 0,
|
|
@@ -852,16 +852,16 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
852
852
|
size: { default: "standard" }
|
|
853
853
|
},
|
|
854
854
|
setup(e) {
|
|
855
|
-
const
|
|
856
|
-
let o, n =
|
|
857
|
-
return
|
|
855
|
+
const s = e, t = w(() => {
|
|
856
|
+
let o, n = s.color;
|
|
857
|
+
return s.size == "standard" ? o = "var(--t-fs-10)" : s.size == "small" ? o = "var(--t-fs-08)" : s.size == "large" ? o = "var(--t-fs-12)" : o = s.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) && (n = `var(--t-color-status-${s.color})`), {
|
|
858
858
|
"--color": n,
|
|
859
859
|
"--font-size": o
|
|
860
860
|
};
|
|
861
861
|
});
|
|
862
862
|
return (o, n) => (c(), d("span", {
|
|
863
863
|
class: "t-text",
|
|
864
|
-
style: k(
|
|
864
|
+
style: k(t.value)
|
|
865
865
|
}, [
|
|
866
866
|
g(o.$slots, "default", {}, void 0, !0)
|
|
867
867
|
], 4));
|
|
@@ -872,8 +872,8 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
872
872
|
placement: { default: "bottom" }
|
|
873
873
|
},
|
|
874
874
|
setup(e) {
|
|
875
|
-
return (
|
|
876
|
-
class: T(["t-gesture-indicator", { [
|
|
875
|
+
return (s, t) => (c(), d("div", {
|
|
876
|
+
class: T(["t-gesture-indicator", { [s.placement]: !0 }])
|
|
877
877
|
}, null, 2));
|
|
878
878
|
}
|
|
879
879
|
}), ge = /* @__PURE__ */ v(kt, [["__scopeId", "data-v-ed8f7308"]]), $t = /* @__PURE__ */ b({
|
|
@@ -893,14 +893,14 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
893
893
|
style: {}
|
|
894
894
|
},
|
|
895
895
|
emits: ["dismiss"],
|
|
896
|
-
setup(e, { emit:
|
|
897
|
-
const
|
|
896
|
+
setup(e, { emit: s }) {
|
|
897
|
+
const t = e, o = s, n = m(), l = m(), u = m(!1);
|
|
898
898
|
let a = null;
|
|
899
899
|
const i = w(() => {
|
|
900
|
-
if (
|
|
901
|
-
if (
|
|
902
|
-
if (
|
|
903
|
-
if (
|
|
900
|
+
if (t.placement == "bottom") return "down";
|
|
901
|
+
if (t.placement == "top") return "up";
|
|
902
|
+
if (t.placement == "left") return "left";
|
|
903
|
+
if (t.placement == "right") return "right";
|
|
904
904
|
}), p = (r) => {
|
|
905
905
|
o("dismiss", r);
|
|
906
906
|
}, _ = () => {
|
|
@@ -915,7 +915,7 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
915
915
|
minDist: 30
|
|
916
916
|
},
|
|
917
917
|
beforeEvent(y) {
|
|
918
|
-
return !(u.value || !
|
|
918
|
+
return !(u.value || !t.gesture || t.placement == "center");
|
|
919
919
|
},
|
|
920
920
|
down() {
|
|
921
921
|
this.isMoving = !1;
|
|
@@ -926,7 +926,7 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
926
926
|
move({ deltaY: y, deltaX: $, initialDirection: S }) {
|
|
927
927
|
if (S != i.value) return;
|
|
928
928
|
let f = 0;
|
|
929
|
-
|
|
929
|
+
t.placement == "bottom" || t.placement == "top" ? f = y : f = $, t.placement == "bottom" && (f = y > 0 ? y : 0), t.placement == "top" && (f = y < 0 ? y : 0), t.placement == "left" && (f = $ < 0 ? $ : 0), t.placement == "right" && (f = $ > 0 ? $ : 0), (t.placement == "bottom" && (f >= 10 || this.isMoving) || t.placement == "top" && (f <= -10 || this.isMoving) || t.placement == "left" && (f <= -10 || this.isMoving) || t.placement == "right" && (f >= 10 || this.isMoving)) && (this.isMoving = !0, l.value.render({
|
|
930
930
|
contentTransform: f + "px",
|
|
931
931
|
transition: "0s"
|
|
932
932
|
}));
|
|
@@ -937,7 +937,7 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
937
937
|
return;
|
|
938
938
|
}
|
|
939
939
|
let f, D, ee;
|
|
940
|
-
|
|
940
|
+
t.placement == "bottom" || t.placement == "top" ? (f = n.value.offsetHeight, ee = y) : (f = n.value.offsetWidth, ee = $), D = ee / f * 100, D > 50 ? o("dismiss", "gesture") : l.value.open();
|
|
941
941
|
},
|
|
942
942
|
cancel() {
|
|
943
943
|
this.isMoving = !1, _(), l.value.open();
|
|
@@ -948,22 +948,22 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
948
948
|
}), (r, y) => (c(), C(L, {
|
|
949
949
|
ref_key: "present",
|
|
950
950
|
ref: l,
|
|
951
|
-
class: T(
|
|
952
|
-
placement:
|
|
951
|
+
class: T(t.class),
|
|
952
|
+
placement: t.placement,
|
|
953
953
|
backdrop: r.backdrop,
|
|
954
|
-
visible:
|
|
955
|
-
keepalive:
|
|
954
|
+
visible: t.visible,
|
|
955
|
+
keepalive: t.keepalive,
|
|
956
956
|
onDismiss: p,
|
|
957
|
-
style: k(
|
|
957
|
+
style: k(t.style)
|
|
958
958
|
}, {
|
|
959
959
|
default: P(() => [
|
|
960
|
-
|
|
960
|
+
t.gesture && t.indicator && t.placement != "center" ? (c(), C(ge, {
|
|
961
961
|
key: 0,
|
|
962
|
-
placement:
|
|
962
|
+
placement: t.placement
|
|
963
963
|
}, null, 8, ["placement"])) : E("", !0),
|
|
964
964
|
h("div", {
|
|
965
|
-
class: T(["t-sheet", { fullscreen:
|
|
966
|
-
style: k({ "--background":
|
|
965
|
+
class: T(["t-sheet", { fullscreen: t.fullscreen, [t.placement]: !0, rounded: r.rounded, radius: t.radius }]),
|
|
966
|
+
style: k({ "--background": t.background }),
|
|
967
967
|
ref_key: "sheet",
|
|
968
968
|
ref: n
|
|
969
969
|
}, [
|
|
@@ -987,12 +987,12 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
987
987
|
variant: { default: "default" }
|
|
988
988
|
},
|
|
989
989
|
emits: ["update:modelValue"],
|
|
990
|
-
setup(e, { emit:
|
|
991
|
-
const
|
|
990
|
+
setup(e, { emit: s }) {
|
|
991
|
+
const t = e, o = s, n = (l) => {
|
|
992
992
|
o("update:modelValue", l.target.value);
|
|
993
993
|
};
|
|
994
994
|
return (l, u) => (c(), d("div", {
|
|
995
|
-
class: T(["t-input", { rounded:
|
|
995
|
+
class: T(["t-input", { rounded: t.rounded, ["size-" + t.size]: !0, ["variant-" + t.variant]: !0 }])
|
|
996
996
|
}, [
|
|
997
997
|
h("label", null, [
|
|
998
998
|
h("span", xt, R(l.label), 1),
|
|
@@ -1007,39 +1007,39 @@ const ye = /* @__PURE__ */ v(dt, [["render", ft], ["__scopeId", "data-v-c2a3436c
|
|
|
1007
1007
|
g(l.$slots, "end", {}, void 0, !0)
|
|
1008
1008
|
])
|
|
1009
1009
|
]),
|
|
1010
|
-
|
|
1010
|
+
t.error ? (c(), C(te, {
|
|
1011
1011
|
key: 0,
|
|
1012
1012
|
color: "danger"
|
|
1013
1013
|
}, {
|
|
1014
1014
|
default: P(() => [
|
|
1015
|
-
N(R(
|
|
1015
|
+
N(R(t.error), 1)
|
|
1016
1016
|
]),
|
|
1017
1017
|
_: 1
|
|
1018
|
-
})) :
|
|
1018
|
+
})) : t.help ? (c(), C(te, {
|
|
1019
1019
|
key: 1,
|
|
1020
1020
|
color: "secondary"
|
|
1021
1021
|
}, {
|
|
1022
1022
|
default: P(() => [
|
|
1023
|
-
N(R(
|
|
1023
|
+
N(R(t.help), 1)
|
|
1024
1024
|
]),
|
|
1025
1025
|
_: 1
|
|
1026
1026
|
})) : E("", !0)
|
|
1027
1027
|
], 2));
|
|
1028
1028
|
}
|
|
1029
1029
|
}), It = /* @__PURE__ */ v(zt, [["__scopeId", "data-v-1a9425cf"]]), Et = {};
|
|
1030
|
-
function Bt(e,
|
|
1030
|
+
function Bt(e, s) {
|
|
1031
1031
|
return c(), d("textarea");
|
|
1032
1032
|
}
|
|
1033
1033
|
const Ct = /* @__PURE__ */ v(Et, [["render", Bt]]), Vt = {};
|
|
1034
|
-
function Pt(e,
|
|
1034
|
+
function Pt(e, s) {
|
|
1035
1035
|
return c(), d("div");
|
|
1036
1036
|
}
|
|
1037
1037
|
const At = /* @__PURE__ */ v(Vt, [["render", Pt]]), Rt = {}, Mt = { class: "t-grid" };
|
|
1038
|
-
function Dt(e,
|
|
1038
|
+
function Dt(e, s) {
|
|
1039
1039
|
return c(), d("div", Mt);
|
|
1040
1040
|
}
|
|
1041
1041
|
const Xt = /* @__PURE__ */ v(Rt, [["render", Dt]]), Ot = {}, Nt = { class: "t-grid-item" };
|
|
1042
|
-
function qt(e,
|
|
1042
|
+
function qt(e, s) {
|
|
1043
1043
|
return c(), d("div", Nt);
|
|
1044
1044
|
}
|
|
1045
1045
|
const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
@@ -1048,9 +1048,9 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1048
1048
|
direction: { default: "horizontal" }
|
|
1049
1049
|
},
|
|
1050
1050
|
setup(e) {
|
|
1051
|
-
const
|
|
1052
|
-
return (
|
|
1053
|
-
class: T(["t-divider", { [
|
|
1051
|
+
const s = e;
|
|
1052
|
+
return (t, o) => (c(), d("div", {
|
|
1053
|
+
class: T(["t-divider", { [s.direction]: !0 }])
|
|
1054
1054
|
}, null, 2));
|
|
1055
1055
|
}
|
|
1056
1056
|
}), Ht = /* @__PURE__ */ v(Wt, [["__scopeId", "data-v-47ee8991"]]), Gt = /* @__PURE__ */ b({
|
|
@@ -1059,10 +1059,10 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1059
1059
|
color: { default: "warning" }
|
|
1060
1060
|
},
|
|
1061
1061
|
emits: ["change"],
|
|
1062
|
-
setup(e, { emit:
|
|
1063
|
-
const
|
|
1064
|
-
let p =
|
|
1065
|
-
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(
|
|
1062
|
+
setup(e, { emit: s }) {
|
|
1063
|
+
const t = e, o = s, n = m(!1), l = m(), u = w(() => {
|
|
1064
|
+
let p = t.color;
|
|
1065
|
+
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) && (p = `var(--t-color-status-${t.color})`), {
|
|
1066
1066
|
"--color": p
|
|
1067
1067
|
};
|
|
1068
1068
|
}), a = () => l.value?.parentElement?.querySelector?.("input");
|
|
@@ -1096,10 +1096,10 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1096
1096
|
size: { default: "standard" }
|
|
1097
1097
|
},
|
|
1098
1098
|
setup(e) {
|
|
1099
|
-
const
|
|
1099
|
+
const s = e, t = w(() => s.size == "small" ? "24px" : s.size == "standard" ? "40px" : s.size == "large" ? "60px" : s.size);
|
|
1100
1100
|
return (o, n) => (c(), d("div", {
|
|
1101
1101
|
class: T(["t-avatar", { square: o.square }]),
|
|
1102
|
-
style: k({ "--size":
|
|
1102
|
+
style: k({ "--size": t.value })
|
|
1103
1103
|
}, [
|
|
1104
1104
|
g(o.$slots, "default", {}, void 0, !0)
|
|
1105
1105
|
], 6));
|
|
@@ -1116,8 +1116,8 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1116
1116
|
title: {}
|
|
1117
1117
|
},
|
|
1118
1118
|
emits: ["change"],
|
|
1119
|
-
setup(e, { emit:
|
|
1120
|
-
const
|
|
1119
|
+
setup(e, { emit: s }) {
|
|
1120
|
+
const t = e, o = s, n = m(!1), l = m(""), u = m(), a = () => {
|
|
1121
1121
|
n.value = !n.value, l.value = `calc(${u.value.offsetHeight}px + 2rem)`, o("change", n.value);
|
|
1122
1122
|
};
|
|
1123
1123
|
return o("change", n.value), (i, p) => (c(), d("div", {
|
|
@@ -1131,7 +1131,7 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1131
1131
|
g(i.$slots, "icon"),
|
|
1132
1132
|
h("div", Kt, [
|
|
1133
1133
|
g(i.$slots, "title", {}, () => [
|
|
1134
|
-
N(R(
|
|
1134
|
+
N(R(t.title), 1)
|
|
1135
1135
|
])
|
|
1136
1136
|
]),
|
|
1137
1137
|
g(i.$slots, "toggle", {}, () => [
|
|
@@ -1161,21 +1161,21 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1161
1161
|
color: { default: "primary" }
|
|
1162
1162
|
},
|
|
1163
1163
|
emits: ["update:modelValue"],
|
|
1164
|
-
setup(e, { emit:
|
|
1165
|
-
const
|
|
1166
|
-
o("update:modelValue", !
|
|
1164
|
+
setup(e, { emit: s }) {
|
|
1165
|
+
const t = e, o = s, n = () => {
|
|
1166
|
+
o("update:modelValue", !t.modelValue);
|
|
1167
1167
|
}, l = w(() => {
|
|
1168
1168
|
let u = {
|
|
1169
|
-
"--background":
|
|
1169
|
+
"--background": t.color,
|
|
1170
1170
|
"--color": "#ffffff"
|
|
1171
1171
|
};
|
|
1172
|
-
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(
|
|
1173
|
-
"--background": `var(--t-color-status-${
|
|
1174
|
-
"--color": `var(--t-color-status-${
|
|
1172
|
+
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) && (u = {
|
|
1173
|
+
"--background": `var(--t-color-status-${t.color})`,
|
|
1174
|
+
"--color": `var(--t-color-status-${t.color}-text)`
|
|
1175
1175
|
}), u;
|
|
1176
1176
|
});
|
|
1177
1177
|
return (u, a) => (c(), d("div", {
|
|
1178
|
-
class: T(["t-switch", { on:
|
|
1178
|
+
class: T(["t-switch", { on: t.modelValue }]),
|
|
1179
1179
|
style: k(l.value),
|
|
1180
1180
|
onClick: n
|
|
1181
1181
|
}, [...a[0] || (a[0] = [
|
|
@@ -1188,8 +1188,8 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1188
1188
|
value: {}
|
|
1189
1189
|
},
|
|
1190
1190
|
setup(e) {
|
|
1191
|
-
const
|
|
1192
|
-
|
|
1191
|
+
const s = e, t = ue("tabsState"), o = w(() => t.active.value === s.value), n = () => {
|
|
1192
|
+
t.setActive(s.value);
|
|
1193
1193
|
};
|
|
1194
1194
|
return (l, u) => (c(), d("li", {
|
|
1195
1195
|
class: T(["t-tab", { active: o.value }])
|
|
@@ -1197,8 +1197,8 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1197
1197
|
U(J, {
|
|
1198
1198
|
variant: "text",
|
|
1199
1199
|
onClick: n,
|
|
1200
|
-
size: V(
|
|
1201
|
-
color: o.value && V(
|
|
1200
|
+
size: V(t).size,
|
|
1201
|
+
color: o.value && V(t).variant == "text" ? V(t).color : void 0
|
|
1202
1202
|
}, {
|
|
1203
1203
|
default: P(() => [
|
|
1204
1204
|
g(l.$slots, "default", {}, void 0, !0)
|
|
@@ -1218,32 +1218,32 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1218
1218
|
size: { default: "standard" }
|
|
1219
1219
|
},
|
|
1220
1220
|
emits: ["update:modelValue"],
|
|
1221
|
-
setup(e, { emit:
|
|
1222
|
-
const
|
|
1223
|
-
let i =
|
|
1221
|
+
setup(e, { emit: s }) {
|
|
1222
|
+
const t = e, o = s, n = m("0px"), l = m(), u = w(() => {
|
|
1223
|
+
let i = t.color;
|
|
1224
1224
|
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(i) && (i = `var(--t-color-status-${i})`), i;
|
|
1225
1225
|
}), a = () => {
|
|
1226
1226
|
setTimeout(() => {
|
|
1227
|
-
if (
|
|
1227
|
+
if (t.placement.startsWith("top-") || t.placement.startsWith("bottom-")) {
|
|
1228
1228
|
let i = l.value.querySelector(".active");
|
|
1229
1229
|
if (i) {
|
|
1230
1230
|
let p = i.getBoundingClientRect().left - l.value.getBoundingClientRect().left + l.value.scrollLeft, _ = i.offsetWidth / 2;
|
|
1231
|
-
n.value = p + _ -
|
|
1231
|
+
n.value = p + _ - t.border / 2 + "px";
|
|
1232
1232
|
}
|
|
1233
|
-
} else if (
|
|
1233
|
+
} else if (t.placement.startsWith("left-") || t.placement.startsWith("right-")) {
|
|
1234
1234
|
let i = l.value.querySelector(".active");
|
|
1235
1235
|
if (i) {
|
|
1236
1236
|
let p = i.getBoundingClientRect().top - l.value.getBoundingClientRect().top + l.value.scrollTop, _ = i.offsetHeight / 2;
|
|
1237
|
-
n.value = p + _ -
|
|
1237
|
+
n.value = p + _ - t.border / 2 + "px";
|
|
1238
1238
|
}
|
|
1239
1239
|
}
|
|
1240
1240
|
}, 50);
|
|
1241
1241
|
};
|
|
1242
1242
|
return ie("tabsState", {
|
|
1243
|
-
active: w(() =>
|
|
1243
|
+
active: w(() => t.modelValue),
|
|
1244
1244
|
color: u.value,
|
|
1245
|
-
size:
|
|
1246
|
-
variant:
|
|
1245
|
+
size: t.size,
|
|
1246
|
+
variant: t.variant,
|
|
1247
1247
|
setActive: (i) => {
|
|
1248
1248
|
o("update:modelValue", i), a();
|
|
1249
1249
|
}
|
|
@@ -1261,7 +1261,7 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1261
1261
|
}), rs = /* @__PURE__ */ v(ns, [["__scopeId", "data-v-3a46d2df"]]), as = /* @__PURE__ */ b({
|
|
1262
1262
|
__name: "t-loading-app",
|
|
1263
1263
|
setup(e) {
|
|
1264
|
-
return (
|
|
1264
|
+
return (s, t) => (c(), C(_e, null, {
|
|
1265
1265
|
default: P(() => [
|
|
1266
1266
|
U(K, { type: "spinner" })
|
|
1267
1267
|
]),
|
|
@@ -1283,21 +1283,21 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1283
1283
|
color: { default: "primary" }
|
|
1284
1284
|
},
|
|
1285
1285
|
emits: ["update:modelValue"],
|
|
1286
|
-
setup(e, { emit:
|
|
1287
|
-
const
|
|
1286
|
+
setup(e, { emit: s }) {
|
|
1287
|
+
const t = e, o = s, n = w(() => {
|
|
1288
1288
|
let a = {
|
|
1289
|
-
"--background":
|
|
1289
|
+
"--background": t.color,
|
|
1290
1290
|
"--color": "#ffffff"
|
|
1291
1291
|
};
|
|
1292
|
-
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(
|
|
1293
|
-
"--background": `var(--t-color-status-${
|
|
1294
|
-
"--color": `var(--t-color-status-${
|
|
1292
|
+
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(t.color) && (a = {
|
|
1293
|
+
"--background": `var(--t-color-status-${t.color})`,
|
|
1294
|
+
"--color": `var(--t-color-status-${t.color}-text)`
|
|
1295
1295
|
}), a;
|
|
1296
|
-
}), l = w(() =>
|
|
1297
|
-
if (
|
|
1298
|
-
let a =
|
|
1299
|
-
|
|
1300
|
-
} else
|
|
1296
|
+
}), l = w(() => t.multiple ? t.modelValue.includes(t.value) : t.value === void 0 ? t.modelValue : t.modelValue == t.value), u = () => {
|
|
1297
|
+
if (t.multiple) {
|
|
1298
|
+
let a = t.modelValue;
|
|
1299
|
+
t.modelValue.includes(t.value) ? a.splice(a.indexOf(t.value), 1) : a.push(t.value), o("update:modelValue", a);
|
|
1300
|
+
} else t.value === void 0 ? o("update:modelValue", !t.modelValue) : o("update:modelValue", t.value);
|
|
1301
1301
|
};
|
|
1302
1302
|
return (a, i) => (c(), d("div", {
|
|
1303
1303
|
class: T(["t-checkbox", { active: l.value }]),
|
|
@@ -1312,16 +1312,16 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1312
1312
|
i[0] || (i[0] = h("i", { class: "ri-check-line" }, null, -1))
|
|
1313
1313
|
], !0) : E("", !0)
|
|
1314
1314
|
], 2),
|
|
1315
|
-
a.label ? (c(), d("span", is, R(
|
|
1315
|
+
a.label ? (c(), d("span", is, R(t.label), 1)) : E("", !0)
|
|
1316
1316
|
], 6));
|
|
1317
1317
|
}
|
|
1318
1318
|
}), ds = /* @__PURE__ */ v(us, [["__scopeId", "data-v-d558d0b0"]]), ps = /* @__PURE__ */ b({
|
|
1319
1319
|
__name: "t-keyboard",
|
|
1320
1320
|
setup(e) {
|
|
1321
|
-
const { height:
|
|
1322
|
-
return (
|
|
1321
|
+
const { height: s } = ve();
|
|
1322
|
+
return (t, o) => (c(), d("div", {
|
|
1323
1323
|
class: "t-keyboard",
|
|
1324
|
-
style: k({ "--height": V(
|
|
1324
|
+
style: k({ "--height": V(s) + "px" })
|
|
1325
1325
|
}, null, 4));
|
|
1326
1326
|
}
|
|
1327
1327
|
}), fs = /* @__PURE__ */ v(ps, [["__scopeId", "data-v-5d3fa1da"]]), ms = /* @__PURE__ */ b({
|
|
@@ -1333,14 +1333,14 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1333
1333
|
color: { default: null }
|
|
1334
1334
|
},
|
|
1335
1335
|
setup(e) {
|
|
1336
|
-
const
|
|
1337
|
-
"--width":
|
|
1338
|
-
"--height":
|
|
1339
|
-
"--radius":
|
|
1336
|
+
const s = e, t = w(() => ({
|
|
1337
|
+
"--width": s.width,
|
|
1338
|
+
"--height": s.height,
|
|
1339
|
+
"--radius": s.radius
|
|
1340
1340
|
}));
|
|
1341
1341
|
return (o, n) => (c(), d("div", {
|
|
1342
1342
|
class: "t-skeleton",
|
|
1343
|
-
style: k(
|
|
1343
|
+
style: k(t.value)
|
|
1344
1344
|
}, null, 4));
|
|
1345
1345
|
}
|
|
1346
1346
|
}), vs = /* @__PURE__ */ v(ms, [["__scopeId", "data-v-877bbdb5"]]), _s = /* @__PURE__ */ b({
|
|
@@ -1349,19 +1349,19 @@ const Lt = /* @__PURE__ */ v(Ot, [["render", qt]]), Wt = /* @__PURE__ */ b({
|
|
|
1349
1349
|
color: { default: "primary" }
|
|
1350
1350
|
},
|
|
1351
1351
|
setup(e) {
|
|
1352
|
-
const
|
|
1352
|
+
const s = e, t = w(() => {
|
|
1353
1353
|
let o = {};
|
|
1354
|
-
return
|
|
1355
|
-
"--color": "var(--t-color-status-" +
|
|
1354
|
+
return s.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(s.color) ? o = {
|
|
1355
|
+
"--color": "var(--t-color-status-" + s.color + ")"
|
|
1356
1356
|
} : o = {
|
|
1357
|
-
"--color":
|
|
1357
|
+
"--color": s.color
|
|
1358
1358
|
} : o = {
|
|
1359
1359
|
"--color": "var(--t-color-surface)"
|
|
1360
1360
|
}, o;
|
|
1361
1361
|
});
|
|
1362
1362
|
return (o, n) => (c(), d("div", {
|
|
1363
1363
|
class: "t-ripple",
|
|
1364
|
-
style: k(
|
|
1364
|
+
style: k(t.value)
|
|
1365
1365
|
}, null, 4));
|
|
1366
1366
|
}
|
|
1367
1367
|
}), ys = /* @__PURE__ */ v(_s, [["__scopeId", "data-v-42cb3d71"]]), Ts = () => ({
|