@toife/vue 1.1.5 → 1.1.7
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.css +1 -1
- package/dist/index.es.js +211 -211
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { createElementBlock as m, openBlock as c, renderSlot as h, defineComponent as T, ref as _, computed as S, reactive as Z, watch as D, onUnmounted as A, Fragment as V, withDirectives as Y, createCommentVNode as
|
|
1
|
+
import { createElementBlock as m, openBlock as c, renderSlot as h, defineComponent as T, ref as _, computed as S, reactive as Z, watch as D, onUnmounted as A, Fragment as V, withDirectives as Y, createCommentVNode as z, normalizeStyle as x, normalizeClass as I, vShow as U, createElementVNode as k, createVNode as ee, createBlock as E, withCtx as P, toDisplayString as C, renderList as W, createTextVNode as q, createApp as F, h as G, unref as R, onMounted as te, resolveDynamicComponent as le, markRaw as ce } from "vue";
|
|
2
2
|
import { gesture as N } from "@toife/gesture";
|
|
3
3
|
import { useRouter as oe, useRoute as ie } from "vue-router";
|
|
4
|
-
const O = (
|
|
5
|
-
const
|
|
6
|
-
|
|
4
|
+
const O = (t) => t && (t.tagName == "INPUT" || t.tagName == "TEXTAREA" || t.isContentEditable), X = () => {
|
|
5
|
+
const t = document.activeElement;
|
|
6
|
+
t && (t.tagName === "INPUT" || t.tagName === "TEXTAREA" || t.isContentEditable) && t.blur();
|
|
7
7
|
}, ue = () => {
|
|
8
|
-
document.addEventListener("contextmenu", (
|
|
9
|
-
!O(
|
|
8
|
+
document.addEventListener("contextmenu", (t) => t.preventDefault()), document.addEventListener("selectstart", (t) => t.preventDefault()), document.addEventListener("pointerup", (t) => {
|
|
9
|
+
!O(t.target) && X();
|
|
10
10
|
});
|
|
11
|
-
}, g = (
|
|
12
|
-
const n =
|
|
13
|
-
for (const [
|
|
14
|
-
n[
|
|
11
|
+
}, g = (t, o) => {
|
|
12
|
+
const n = t.__vccOpts || t;
|
|
13
|
+
for (const [e, r] of o)
|
|
14
|
+
n[e] = r;
|
|
15
15
|
return n;
|
|
16
16
|
}, de = {}, pe = { class: "t-app" };
|
|
17
|
-
function fe(
|
|
17
|
+
function fe(t, o) {
|
|
18
18
|
return c(), m("div", pe, [
|
|
19
|
-
h(
|
|
19
|
+
h(t.$slots, "default")
|
|
20
20
|
]);
|
|
21
21
|
}
|
|
22
22
|
const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
@@ -28,8 +28,8 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
28
28
|
placement: { default: "bottom" }
|
|
29
29
|
},
|
|
30
30
|
emits: ["dismiss"],
|
|
31
|
-
setup(
|
|
32
|
-
const
|
|
31
|
+
setup(t, { expose: o, emit: n }) {
|
|
32
|
+
const e = _(0), r = _(!1), a = _(), l = _(), i = t, y = n, p = S(() => r.value || i.keepalive), v = Z({
|
|
33
33
|
"--t-present-backdrop-opacity": "0.4",
|
|
34
34
|
"--t-present-transition": "0.2s",
|
|
35
35
|
"--t-present-content-transform": "0px",
|
|
@@ -53,7 +53,7 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
53
53
|
});
|
|
54
54
|
};
|
|
55
55
|
D(() => i.visible, () => {
|
|
56
|
-
i.visible ? (r.value = !0,
|
|
56
|
+
i.visible ? (r.value = !0, e.value = Se.getNewIndex(), setTimeout(() => {
|
|
57
57
|
s();
|
|
58
58
|
}, 50)) : (d(), setTimeout(() => {
|
|
59
59
|
r.value = !1;
|
|
@@ -67,7 +67,7 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
67
67
|
return D(() => a.value, (u) => {
|
|
68
68
|
u && (b = N(a.value, {
|
|
69
69
|
beforeEvent(w) {
|
|
70
|
-
return w.stopPropagation(), O(w.target) || (w.preventDefault(),
|
|
70
|
+
return w.stopPropagation(), O(w.target) || (w.preventDefault(), X()), w.type == "pointerup";
|
|
71
71
|
},
|
|
72
72
|
up() {
|
|
73
73
|
y("dismiss", "backdrop");
|
|
@@ -81,24 +81,24 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
81
81
|
class: I(["t-present", { [u.placement]: !0 }]),
|
|
82
82
|
ref_key: "present",
|
|
83
83
|
ref: l,
|
|
84
|
-
style: x({ ...v, zIndex:
|
|
84
|
+
style: x({ ...v, zIndex: e.value })
|
|
85
85
|
}, [
|
|
86
86
|
h(u.$slots, "default", {}, void 0, !0)
|
|
87
87
|
], 6)), [
|
|
88
88
|
[U, r.value]
|
|
89
|
-
]) :
|
|
89
|
+
]) : z("", !0),
|
|
90
90
|
p.value ? Y((c(), m("div", {
|
|
91
91
|
key: 1,
|
|
92
92
|
class: "t-present-backdrop",
|
|
93
93
|
ref_key: "backdrop",
|
|
94
94
|
ref: a,
|
|
95
|
-
style: x({ ...v, zIndex:
|
|
95
|
+
style: x({ ...v, zIndex: e.value - 1 })
|
|
96
96
|
}, null, 4)), [
|
|
97
97
|
[U, r.value]
|
|
98
|
-
]) :
|
|
98
|
+
]) : z("", !0)
|
|
99
99
|
], 64));
|
|
100
100
|
}
|
|
101
|
-
}),
|
|
101
|
+
}), L = /* @__PURE__ */ g(ve, [["__scopeId", "data-v-dc2a4bc9"]]), _e = /* @__PURE__ */ T({
|
|
102
102
|
__name: "t-loading-icon",
|
|
103
103
|
props: {
|
|
104
104
|
size: {
|
|
@@ -110,13 +110,13 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
110
110
|
default: "var(--t-color-text)"
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
setup(
|
|
113
|
+
setup(t) {
|
|
114
114
|
return (o, n) => (c(), m("span", {
|
|
115
115
|
class: "t-loading-icon",
|
|
116
116
|
style: x({
|
|
117
|
-
width:
|
|
118
|
-
height:
|
|
119
|
-
borderTopColor:
|
|
117
|
+
width: t.size,
|
|
118
|
+
height: t.size,
|
|
119
|
+
borderTopColor: t.color
|
|
120
120
|
}),
|
|
121
121
|
role: "status",
|
|
122
122
|
"aria-label": "Loading..."
|
|
@@ -137,53 +137,53 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
137
137
|
variant: { default: "default" },
|
|
138
138
|
activeBackground: { type: Boolean, default: !1 }
|
|
139
139
|
},
|
|
140
|
-
setup(
|
|
141
|
-
const o =
|
|
142
|
-
let
|
|
143
|
-
return o.variant == "default" && (o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ?
|
|
140
|
+
setup(t) {
|
|
141
|
+
const o = t, n = S(() => {
|
|
142
|
+
let e;
|
|
143
|
+
return o.variant == "default" && (o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? e = {
|
|
144
144
|
"--border": "none",
|
|
145
145
|
"--color": "var(--t-color-status-" + o.color + "-text)",
|
|
146
146
|
"--background": "var(--t-color-status-" + o.color + ")"
|
|
147
|
-
} :
|
|
147
|
+
} : e = {
|
|
148
148
|
"--border": "none",
|
|
149
149
|
"--color": "var(--t-color-text)",
|
|
150
150
|
"--background": o.color
|
|
151
|
-
} :
|
|
151
|
+
} : e = {
|
|
152
152
|
"--border": "none",
|
|
153
153
|
"--color": "var(--t-color-text)",
|
|
154
154
|
"--background": "var(--t-color-surface)"
|
|
155
|
-
}), o.variant == "text" && (o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ?
|
|
155
|
+
}), o.variant == "text" && (o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? e = {
|
|
156
156
|
"--border": "none",
|
|
157
157
|
"--color": "var(--t-color-status-" + o.color + ")",
|
|
158
158
|
"--background": "transparent"
|
|
159
|
-
} :
|
|
159
|
+
} : e = {
|
|
160
160
|
"--border": "none",
|
|
161
161
|
"--color": o.color,
|
|
162
162
|
"--background": "transparent"
|
|
163
|
-
} :
|
|
163
|
+
} : e = {
|
|
164
164
|
"--border": "none",
|
|
165
165
|
"--color": "var(--t-color-text)",
|
|
166
166
|
"--background": "transparent"
|
|
167
|
-
}), o.variant == "outline" && (o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ?
|
|
167
|
+
}), o.variant == "outline" && (o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? e = {
|
|
168
168
|
"--border": "0.55px solid var(--t-color-status-" + o.color + ")",
|
|
169
169
|
"--color": "var(--t-color-status-" + o.color + ")",
|
|
170
170
|
"--background": "transparent"
|
|
171
|
-
} :
|
|
171
|
+
} : e = {
|
|
172
172
|
"--border": "0.55px solid " + o.color,
|
|
173
173
|
"--color": o.color,
|
|
174
174
|
"--background": "transparent"
|
|
175
|
-
} :
|
|
175
|
+
} : e = {
|
|
176
176
|
"--border": "0.55px solid var(--t-color-text)",
|
|
177
177
|
"--color": "var(--t-color-text)",
|
|
178
178
|
"--background": "transparent"
|
|
179
|
-
}),
|
|
179
|
+
}), e;
|
|
180
180
|
});
|
|
181
|
-
return (
|
|
181
|
+
return (e, r) => (c(), m("button", {
|
|
182
182
|
class: I(["t-button", { "active-background": o.activeBackground, rounded: o.rounded, block: o.block, ["size-" + o.size]: !0 }]),
|
|
183
183
|
style: x(n.value)
|
|
184
184
|
}, [
|
|
185
185
|
Y(k("span", null, [
|
|
186
|
-
h(
|
|
186
|
+
h(e.$slots, "default", {}, void 0, !0)
|
|
187
187
|
], 512), [
|
|
188
188
|
[U, !o.loading]
|
|
189
189
|
]),
|
|
@@ -192,7 +192,7 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
192
192
|
color: "var(--color)",
|
|
193
193
|
type: o.loadingType
|
|
194
194
|
}, null, 8, ["type"])
|
|
195
|
-
])) :
|
|
195
|
+
])) : z("", !0)
|
|
196
196
|
], 6));
|
|
197
197
|
}
|
|
198
198
|
}), M = /* @__PURE__ */ g(ge, [["__scopeId", "data-v-07bf1b8d"]]), be = {
|
|
@@ -206,8 +206,8 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
206
206
|
actions: {}
|
|
207
207
|
},
|
|
208
208
|
emits: ["close"],
|
|
209
|
-
setup(
|
|
210
|
-
const
|
|
209
|
+
setup(t, { expose: o, emit: n }) {
|
|
210
|
+
const e = t, r = _(!1), a = n, l = _();
|
|
211
211
|
let i;
|
|
212
212
|
const y = _(!1), p = () => {
|
|
213
213
|
r.value = !0;
|
|
@@ -223,12 +223,12 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
223
223
|
}), D(() => l.value, (s) => {
|
|
224
224
|
s && (i = N(l.value, {
|
|
225
225
|
beforeEvent(d) {
|
|
226
|
-
return d.stopPropagation(), O(d.target) || (d.preventDefault(),
|
|
226
|
+
return d.stopPropagation(), O(d.target) || (d.preventDefault(), X()), !1;
|
|
227
227
|
}
|
|
228
228
|
}));
|
|
229
229
|
}), A(() => {
|
|
230
230
|
i && i.destroy();
|
|
231
|
-
}), (s, d) => (c(),
|
|
231
|
+
}), (s, d) => (c(), E(L, {
|
|
232
232
|
placement: "center",
|
|
233
233
|
backdrop: !0,
|
|
234
234
|
keepalive: !1,
|
|
@@ -242,20 +242,20 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
242
242
|
ref: l
|
|
243
243
|
}, [
|
|
244
244
|
h(s.$slots, "header", {}, () => [
|
|
245
|
-
|
|
245
|
+
e.title ? (c(), m("div", be, C(e.title), 1)) : z("", !0)
|
|
246
246
|
], !0),
|
|
247
247
|
h(s.$slots, "content", {}, () => [
|
|
248
|
-
k("div", he, C(
|
|
248
|
+
k("div", he, C(e.message), 1)
|
|
249
249
|
], !0),
|
|
250
250
|
h(s.$slots, "footer", {}, () => [
|
|
251
251
|
k("div", ke, [
|
|
252
|
-
(c(!0), m(V, null, W(
|
|
252
|
+
(c(!0), m(V, null, W(e.actions, (b) => (c(), E(M, {
|
|
253
253
|
color: b.color,
|
|
254
254
|
variant: b.variant,
|
|
255
255
|
onClick: (u) => v(b)
|
|
256
256
|
}, {
|
|
257
257
|
default: P(() => [
|
|
258
|
-
|
|
258
|
+
q(C(b.text), 1)
|
|
259
259
|
]),
|
|
260
260
|
_: 2
|
|
261
261
|
}, 1032, ["color", "variant", "onClick"]))), 256))
|
|
@@ -266,27 +266,27 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
266
266
|
_: 3
|
|
267
267
|
}, 8, ["visible"]));
|
|
268
268
|
}
|
|
269
|
-
}), ne = /* @__PURE__ */ g($e, [["__scopeId", "data-v-5b4773ce"]]), Vt = (
|
|
269
|
+
}), ne = /* @__PURE__ */ g($e, [["__scopeId", "data-v-5b4773ce"]]), Vt = (t = {}) => ({
|
|
270
270
|
open() {
|
|
271
271
|
return new Promise((o) => {
|
|
272
272
|
let n = document.body.querySelector(".t-app");
|
|
273
273
|
if (!n) return;
|
|
274
|
-
const
|
|
275
|
-
n.appendChild(
|
|
274
|
+
const e = document.createElement("div"), r = _();
|
|
275
|
+
n.appendChild(e);
|
|
276
276
|
const a = F({
|
|
277
277
|
render() {
|
|
278
278
|
return G(ne, {
|
|
279
|
-
...
|
|
279
|
+
...t,
|
|
280
280
|
ref: r,
|
|
281
281
|
onClose: (l) => {
|
|
282
282
|
setTimeout(() => {
|
|
283
|
-
a.unmount(),
|
|
283
|
+
a.unmount(), e.remove();
|
|
284
284
|
}, 300), o(l);
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
288
|
});
|
|
289
|
-
a.mount(
|
|
289
|
+
a.mount(e), setTimeout(() => {
|
|
290
290
|
r.value?.open?.();
|
|
291
291
|
}, 50);
|
|
292
292
|
});
|
|
@@ -297,8 +297,8 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
297
297
|
actions: {}
|
|
298
298
|
},
|
|
299
299
|
emits: ["close"],
|
|
300
|
-
setup(
|
|
301
|
-
const
|
|
300
|
+
setup(t, { expose: o, emit: n }) {
|
|
301
|
+
const e = t, r = _(!1), a = n, l = _();
|
|
302
302
|
let i;
|
|
303
303
|
const y = _(!1), p = () => {
|
|
304
304
|
r.value = !0;
|
|
@@ -314,12 +314,12 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
314
314
|
}), D(() => l.value, (s) => {
|
|
315
315
|
s && (i = N(l.value, {
|
|
316
316
|
beforeEvent(d) {
|
|
317
|
-
return d.stopPropagation(), O(d.target) || (d.preventDefault(),
|
|
317
|
+
return d.stopPropagation(), O(d.target) || (d.preventDefault(), X()), !1;
|
|
318
318
|
}
|
|
319
319
|
}));
|
|
320
320
|
}), A(() => {
|
|
321
321
|
i && i.destroy();
|
|
322
|
-
}), (s, d) => (c(),
|
|
322
|
+
}), (s, d) => (c(), E(L, {
|
|
323
323
|
placement: "bottom",
|
|
324
324
|
backdrop: !0,
|
|
325
325
|
keepalive: !1,
|
|
@@ -332,8 +332,8 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
332
332
|
ref_key: "container",
|
|
333
333
|
ref: l
|
|
334
334
|
}, [
|
|
335
|
-
(c(!0), m(V, null, W(
|
|
336
|
-
(c(!0), m(V, null, W(b, (u) => (c(),
|
|
335
|
+
(c(!0), m(V, null, W(e.actions, (b) => (c(), m("div", null, [
|
|
336
|
+
(c(!0), m(V, null, W(b, (u) => (c(), E(M, {
|
|
337
337
|
color: u.color,
|
|
338
338
|
size: u.size,
|
|
339
339
|
variant: u.variant,
|
|
@@ -341,7 +341,7 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
341
341
|
block: ""
|
|
342
342
|
}, {
|
|
343
343
|
default: P(() => [
|
|
344
|
-
|
|
344
|
+
q(C(u.text), 1)
|
|
345
345
|
]),
|
|
346
346
|
_: 2
|
|
347
347
|
}, 1032, ["color", "size", "variant", "onClick"]))), 256))
|
|
@@ -351,27 +351,27 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
351
351
|
_: 1
|
|
352
352
|
}, 8, ["visible"]));
|
|
353
353
|
}
|
|
354
|
-
}), we = /* @__PURE__ */ g(Te, [["__scopeId", "data-v-42000b04"]]), At = (
|
|
354
|
+
}), we = /* @__PURE__ */ g(Te, [["__scopeId", "data-v-42000b04"]]), At = (t = {}) => ({
|
|
355
355
|
open() {
|
|
356
356
|
return new Promise((o) => {
|
|
357
357
|
let n = document.body.querySelector(".t-app");
|
|
358
358
|
if (!n) return;
|
|
359
|
-
const
|
|
360
|
-
n.appendChild(
|
|
359
|
+
const e = document.createElement("div"), r = _();
|
|
360
|
+
n.appendChild(e);
|
|
361
361
|
const a = F({
|
|
362
362
|
render() {
|
|
363
363
|
return G(we, {
|
|
364
|
-
...
|
|
364
|
+
...t,
|
|
365
365
|
ref: r,
|
|
366
366
|
onClose: (l) => {
|
|
367
367
|
setTimeout(() => {
|
|
368
|
-
a.unmount(),
|
|
368
|
+
a.unmount(), e.remove();
|
|
369
369
|
}, 300), o(l);
|
|
370
370
|
}
|
|
371
371
|
});
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
|
-
a.mount(
|
|
374
|
+
a.mount(e), setTimeout(() => {
|
|
375
375
|
r.value?.open?.();
|
|
376
376
|
}, 50);
|
|
377
377
|
});
|
|
@@ -382,8 +382,8 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
382
382
|
type: { default: "spinner" }
|
|
383
383
|
},
|
|
384
384
|
emits: ["close"],
|
|
385
|
-
setup(
|
|
386
|
-
const
|
|
385
|
+
setup(t, { expose: o, emit: n }) {
|
|
386
|
+
const e = t, r = _(!1), a = _();
|
|
387
387
|
let l;
|
|
388
388
|
return o({
|
|
389
389
|
open: () => {
|
|
@@ -395,12 +395,12 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
395
395
|
}), D(() => a.value, (p) => {
|
|
396
396
|
p && (l = N(a.value, {
|
|
397
397
|
beforeEvent(v) {
|
|
398
|
-
return v.stopPropagation(), O(v.target) || (v.preventDefault(),
|
|
398
|
+
return v.stopPropagation(), O(v.target) || (v.preventDefault(), X()), !1;
|
|
399
399
|
}
|
|
400
400
|
}));
|
|
401
401
|
}), A(() => {
|
|
402
402
|
l && l.destroy();
|
|
403
|
-
}), (p, v) => (c(),
|
|
403
|
+
}), (p, v) => (c(), E(L, {
|
|
404
404
|
placement: "center",
|
|
405
405
|
backdrop: !0,
|
|
406
406
|
keepalive: !1,
|
|
@@ -414,7 +414,7 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
414
414
|
}, [
|
|
415
415
|
h(p.$slots, "default", {}, () => [
|
|
416
416
|
ee(K, {
|
|
417
|
-
type:
|
|
417
|
+
type: e.type
|
|
418
418
|
}, null, 8, ["type"])
|
|
419
419
|
], !0)
|
|
420
420
|
], 512)
|
|
@@ -422,20 +422,20 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
422
422
|
_: 3
|
|
423
423
|
}, 8, ["visible"]));
|
|
424
424
|
}
|
|
425
|
-
}), Ie = /* @__PURE__ */ g(xe, [["__scopeId", "data-v-96624ceb"]]), Ot = (
|
|
425
|
+
}), Ie = /* @__PURE__ */ g(xe, [["__scopeId", "data-v-96624ceb"]]), Ot = (t = {}) => {
|
|
426
426
|
const o = _(), n = document.body.querySelector(".t-app");
|
|
427
|
-
let
|
|
427
|
+
let e = null, r = null;
|
|
428
428
|
return {
|
|
429
429
|
open() {
|
|
430
430
|
return new Promise((a) => {
|
|
431
|
-
n && (r = document.createElement("div"), n.appendChild(r),
|
|
431
|
+
n && (r = document.createElement("div"), n.appendChild(r), e = F({
|
|
432
432
|
render() {
|
|
433
433
|
return G(Ie, {
|
|
434
|
-
...
|
|
434
|
+
...t,
|
|
435
435
|
ref: o
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
|
-
}),
|
|
438
|
+
}), e.mount(r), setTimeout(() => {
|
|
439
439
|
o.value?.open?.(), a(!0);
|
|
440
440
|
}, 50));
|
|
441
441
|
});
|
|
@@ -443,7 +443,7 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
443
443
|
close() {
|
|
444
444
|
return new Promise((a) => {
|
|
445
445
|
o.value?.close?.(), setTimeout(() => {
|
|
446
|
-
|
|
446
|
+
e?.unmount?.(), r?.remove?.(), a(!0);
|
|
447
447
|
}, 300);
|
|
448
448
|
});
|
|
449
449
|
}
|
|
@@ -452,14 +452,14 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
452
452
|
getNewIndex() {
|
|
453
453
|
return J.value += 2, J.value;
|
|
454
454
|
}
|
|
455
|
-
}, B = Z([]),
|
|
456
|
-
B.push(
|
|
457
|
-
},
|
|
458
|
-
|
|
455
|
+
}, B = Z([]), ze = (t) => {
|
|
456
|
+
B.push(t);
|
|
457
|
+
}, Ee = (t) => {
|
|
458
|
+
t || B.pop();
|
|
459
459
|
}, $ = {
|
|
460
460
|
screens: B,
|
|
461
|
-
addScreen:
|
|
462
|
-
removeScreen:
|
|
461
|
+
addScreen: ze,
|
|
462
|
+
removeScreen: Ee,
|
|
463
463
|
hasPrevious: S(() => B.length > 1),
|
|
464
464
|
currentScreen: S(() => B[B.length - 1]),
|
|
465
465
|
lastScreen: S(() => {
|
|
@@ -477,50 +477,50 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
477
477
|
variant: { default: "default" }
|
|
478
478
|
},
|
|
479
479
|
emits: ["close"],
|
|
480
|
-
setup(
|
|
481
|
-
const
|
|
480
|
+
setup(t, { expose: o, emit: n }) {
|
|
481
|
+
const e = t, r = n, a = _(!1), l = _(!1), i = _(!1), y = () => {
|
|
482
482
|
l.value = !0, i.value = !1, setTimeout(() => {
|
|
483
483
|
a.value = !0;
|
|
484
484
|
}, 10), setTimeout(() => {
|
|
485
485
|
p();
|
|
486
|
-
},
|
|
486
|
+
}, e.duration + 10);
|
|
487
487
|
}, p = () => {
|
|
488
488
|
i.value = !0, setTimeout(() => {
|
|
489
489
|
l.value = !1, a.value = !1, r("close");
|
|
490
490
|
}, 300);
|
|
491
491
|
}, v = S(() => {
|
|
492
492
|
let f;
|
|
493
|
-
return
|
|
493
|
+
return e.variant == "default" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? f = {
|
|
494
494
|
"--border": "none",
|
|
495
|
-
"--color": "var(--t-color-status-" +
|
|
496
|
-
"--background": "rgba(var(--t-color-status-" +
|
|
495
|
+
"--color": "var(--t-color-status-" + e.color + "-text)",
|
|
496
|
+
"--background": "rgba(var(--t-color-status-" + e.color + "-rgb), 0.6)"
|
|
497
497
|
} : f = {
|
|
498
498
|
"--border": "none",
|
|
499
499
|
"--color": "var(--t-color-text)",
|
|
500
|
-
"--background":
|
|
500
|
+
"--background": e.color
|
|
501
501
|
} : f = {
|
|
502
502
|
"--border": "none",
|
|
503
503
|
"--color": "var(--t-color-text)",
|
|
504
504
|
"--background": "rgba(var(--t-color-surface-rgb), 0.6)"
|
|
505
|
-
}),
|
|
505
|
+
}), e.variant == "text" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? f = {
|
|
506
506
|
"--border": "none",
|
|
507
|
-
"--color": "var(--t-color-status-" +
|
|
507
|
+
"--color": "var(--t-color-status-" + e.color + ")",
|
|
508
508
|
"--background": "transparent"
|
|
509
509
|
} : f = {
|
|
510
510
|
"--border": "none",
|
|
511
|
-
"--color":
|
|
511
|
+
"--color": e.color,
|
|
512
512
|
"--background": "transparent"
|
|
513
513
|
} : f = {
|
|
514
514
|
"--border": "none",
|
|
515
515
|
"--color": "var(--t-color-text)",
|
|
516
516
|
"--background": "transparent"
|
|
517
|
-
}),
|
|
518
|
-
"--border": "0.55px solid var(--t-color-status-" +
|
|
519
|
-
"--color": "var(--t-color-status-" +
|
|
517
|
+
}), e.variant == "outline" && (e.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(e.color) ? f = {
|
|
518
|
+
"--border": "0.55px solid var(--t-color-status-" + e.color + ")",
|
|
519
|
+
"--color": "var(--t-color-status-" + e.color + ")",
|
|
520
520
|
"--background": "transparent"
|
|
521
521
|
} : f = {
|
|
522
|
-
"--border": "0.55px solid " +
|
|
523
|
-
"--color":
|
|
522
|
+
"--border": "0.55px solid " + e.color,
|
|
523
|
+
"--color": e.color,
|
|
524
524
|
"--background": "transparent"
|
|
525
525
|
} : f = {
|
|
526
526
|
"--border": "0.55px solid var(--t-color-text)",
|
|
@@ -532,21 +532,21 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
532
532
|
open: y
|
|
533
533
|
}), (f, s) => l.value ? (c(), m("div", {
|
|
534
534
|
key: 0,
|
|
535
|
-
class: I(["t-toast", { [
|
|
536
|
-
style: x({ "--space":
|
|
537
|
-
}, C(
|
|
535
|
+
class: I(["t-toast", { [e.placement]: !0, open: a.value, closing: i.value }]),
|
|
536
|
+
style: x({ "--space": e.space, ...v.value })
|
|
537
|
+
}, C(e.message), 7)) : z("", !0);
|
|
538
538
|
}
|
|
539
|
-
}), re = /* @__PURE__ */ g(Be, [["__scopeId", "data-v-5159a3c5"]]),
|
|
539
|
+
}), re = /* @__PURE__ */ g(Be, [["__scopeId", "data-v-5159a3c5"]]), Xt = (t = {}) => ({
|
|
540
540
|
open() {
|
|
541
541
|
let o = document.body.querySelector(".t-app");
|
|
542
542
|
if (!o) return;
|
|
543
|
-
const n = document.createElement("div"),
|
|
543
|
+
const n = document.createElement("div"), e = _();
|
|
544
544
|
o.appendChild(n);
|
|
545
545
|
const r = F({
|
|
546
546
|
render() {
|
|
547
547
|
return G(re, {
|
|
548
|
-
...
|
|
549
|
-
ref:
|
|
548
|
+
...t,
|
|
549
|
+
ref: e,
|
|
550
550
|
onClose: () => {
|
|
551
551
|
setTimeout(() => {
|
|
552
552
|
r.unmount(), n.remove();
|
|
@@ -556,7 +556,7 @@ const me = /* @__PURE__ */ g(de, [["render", fe]]), ve = /* @__PURE__ */ T({
|
|
|
556
556
|
}
|
|
557
557
|
});
|
|
558
558
|
r.mount(n), setTimeout(() => {
|
|
559
|
-
|
|
559
|
+
e.value?.open?.();
|
|
560
560
|
}, 50);
|
|
561
561
|
}
|
|
562
562
|
}), Ce = _(0);
|
|
@@ -571,13 +571,13 @@ const De = /* @__PURE__ */ T({
|
|
|
571
571
|
keyboard: { type: Boolean, default: !0 },
|
|
572
572
|
placement: { default: "bottom" }
|
|
573
573
|
},
|
|
574
|
-
setup(
|
|
575
|
-
const o =
|
|
576
|
-
return (
|
|
574
|
+
setup(t) {
|
|
575
|
+
const o = t, { height: n } = Pe();
|
|
576
|
+
return (e, r) => (c(), m("div", {
|
|
577
577
|
class: I(["t-cable", { keyboard: o.keyboard && R(n) > 0, [o.placement]: !0 }]),
|
|
578
578
|
style: x({ "--t-keyboard-height": R(n) + "px", "--t-keyboard-transition": R(n) > 0 ? "0.3s" : "0.1s" })
|
|
579
579
|
}, [
|
|
580
|
-
h(
|
|
580
|
+
h(e.$slots, "default", {}, void 0, !0)
|
|
581
581
|
], 6));
|
|
582
582
|
}
|
|
583
583
|
}), Re = /* @__PURE__ */ g(De, [["__scopeId", "data-v-ecb72421"]]), Ne = /* @__PURE__ */ T({
|
|
@@ -585,42 +585,42 @@ const De = /* @__PURE__ */ T({
|
|
|
585
585
|
props: {
|
|
586
586
|
color: { default: null }
|
|
587
587
|
},
|
|
588
|
-
setup(
|
|
589
|
-
const o =
|
|
590
|
-
let
|
|
591
|
-
return o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ?
|
|
588
|
+
setup(t) {
|
|
589
|
+
const o = t, n = S(() => {
|
|
590
|
+
let e;
|
|
591
|
+
return o.color ? ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) ? e = {
|
|
592
592
|
"--background": "var(--t-color-status-" + o.color + ")"
|
|
593
|
-
} :
|
|
593
|
+
} : e = {
|
|
594
594
|
"--background": o.color
|
|
595
|
-
} :
|
|
595
|
+
} : e = {
|
|
596
596
|
"--background": "var(--t-color-surface)"
|
|
597
|
-
},
|
|
597
|
+
}, e;
|
|
598
598
|
});
|
|
599
|
-
return (
|
|
599
|
+
return (e, r) => (c(), m("div", {
|
|
600
600
|
class: "t-card",
|
|
601
601
|
style: x(n.value)
|
|
602
602
|
}, [
|
|
603
|
-
h(
|
|
603
|
+
h(e.$slots, "default")
|
|
604
604
|
], 4));
|
|
605
605
|
}
|
|
606
606
|
}), Ve = {}, Ae = { class: "t-content" };
|
|
607
|
-
function Oe(
|
|
607
|
+
function Oe(t, o) {
|
|
608
608
|
return c(), m("div", Ae, [
|
|
609
|
-
h(
|
|
609
|
+
h(t.$slots, "default", {}, void 0, !0)
|
|
610
610
|
]);
|
|
611
611
|
}
|
|
612
|
-
const
|
|
612
|
+
const Xe = /* @__PURE__ */ g(Ve, [["render", Oe], ["__scopeId", "data-v-9a833657"]]), Q = 80, qe = /* @__PURE__ */ T({
|
|
613
613
|
__name: "t-refresher",
|
|
614
614
|
emits: ["refresh"],
|
|
615
|
-
setup(
|
|
616
|
-
const n = o,
|
|
615
|
+
setup(t, { emit: o }) {
|
|
616
|
+
const n = o, e = _(0), r = _(!1), a = _();
|
|
617
617
|
let l, i = !1;
|
|
618
618
|
const y = () => {
|
|
619
|
-
r.value = !1,
|
|
619
|
+
r.value = !1, e.value = 0, l && l.cancel(), setTimeout(() => {
|
|
620
620
|
i = !1;
|
|
621
621
|
}, 2e3);
|
|
622
622
|
}, p = () => {
|
|
623
|
-
i = !0, r.value = !0,
|
|
623
|
+
i = !0, r.value = !0, e.value = Q, n("refresh", y);
|
|
624
624
|
};
|
|
625
625
|
return D(() => a.value, () => {
|
|
626
626
|
l && l.destroy();
|
|
@@ -630,13 +630,13 @@ const Le = /* @__PURE__ */ g(Ve, [["render", Oe], ["__scopeId", "data-v-9a833657
|
|
|
630
630
|
minDist: 60
|
|
631
631
|
},
|
|
632
632
|
move({ dy: f }) {
|
|
633
|
-
r.value || i || f < 0 || (f >= 120 ? p() :
|
|
633
|
+
r.value || i || f < 0 || (f >= 120 ? p() : e.value = f);
|
|
634
634
|
},
|
|
635
635
|
up({ dy: f }) {
|
|
636
|
-
r.value || i || (f > Q ? p() :
|
|
636
|
+
r.value || i || (f > Q ? p() : e.value = 0);
|
|
637
637
|
},
|
|
638
638
|
cancel() {
|
|
639
|
-
r.value = !1,
|
|
639
|
+
r.value = !1, e.value = 0;
|
|
640
640
|
}
|
|
641
641
|
}));
|
|
642
642
|
}), A(() => {
|
|
@@ -645,7 +645,7 @@ const Le = /* @__PURE__ */ g(Ve, [["render", Oe], ["__scopeId", "data-v-9a833657
|
|
|
645
645
|
class: "t-refresher",
|
|
646
646
|
ref_key: "container",
|
|
647
647
|
ref: a,
|
|
648
|
-
style: x({ height: `${
|
|
648
|
+
style: x({ height: `${e.value}px` })
|
|
649
649
|
}, [
|
|
650
650
|
k("img", {
|
|
651
651
|
class: I({ spiner: r.value }),
|
|
@@ -654,21 +654,21 @@ const Le = /* @__PURE__ */ g(Ve, [["render", Oe], ["__scopeId", "data-v-9a833657
|
|
|
654
654
|
style: { width: "22px", height: "22px" }
|
|
655
655
|
}, null, 2)
|
|
656
656
|
], 4)), [
|
|
657
|
-
[U,
|
|
657
|
+
[U, e.value > 0]
|
|
658
658
|
]);
|
|
659
659
|
}
|
|
660
|
-
}),
|
|
661
|
-
function We(
|
|
660
|
+
}), Le = /* @__PURE__ */ g(qe, [["__scopeId", "data-v-688c5394"]]), Ye = {}, Ue = { class: "t-screen" };
|
|
661
|
+
function We(t, o) {
|
|
662
662
|
return c(), m("div", Ue, [
|
|
663
|
-
h(
|
|
663
|
+
h(t.$slots, "default", {}, void 0, !0)
|
|
664
664
|
]);
|
|
665
665
|
}
|
|
666
666
|
const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649"]]), Fe = /* @__PURE__ */ T({
|
|
667
667
|
__name: "t-swipe-screen",
|
|
668
668
|
emits: ["change"],
|
|
669
|
-
setup(
|
|
669
|
+
setup(t, { emit: o }) {
|
|
670
670
|
let n = {};
|
|
671
|
-
const
|
|
671
|
+
const e = oe(), r = ie(), a = e.getRoutes(), l = _(!1), i = o;
|
|
672
672
|
for (let s of a)
|
|
673
673
|
n[s.name] = s.components;
|
|
674
674
|
const y = (s) => {
|
|
@@ -708,7 +708,7 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
708
708
|
(s.type == "pointerup" || s.type == "pointercancel") && (this.pointerId = null);
|
|
709
709
|
},
|
|
710
710
|
fast({ d: s }) {
|
|
711
|
-
s == "right" &&
|
|
711
|
+
s == "right" && e.back();
|
|
712
712
|
},
|
|
713
713
|
move({ dx: s }) {
|
|
714
714
|
const d = window.innerWidth, b = s / d * 100, u = $.currentScreen.value.target, w = $.lastScreen?.value?.target;
|
|
@@ -719,21 +719,21 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
719
719
|
},
|
|
720
720
|
up({ dx: s }) {
|
|
721
721
|
const d = window.innerWidth;
|
|
722
|
-
s / d * 100 >= 50 ?
|
|
722
|
+
s / d * 100 >= 50 ? e.back() : f();
|
|
723
723
|
},
|
|
724
724
|
cancel() {
|
|
725
725
|
f();
|
|
726
726
|
}
|
|
727
727
|
});
|
|
728
728
|
}), (s, d) => (c(), m(V, null, [
|
|
729
|
-
(c(!0), m(V, null, W(R($).screens, (b, u) => (c(),
|
|
729
|
+
(c(!0), m(V, null, W(R($).screens, (b, u) => (c(), E(se, {
|
|
730
730
|
ref_for: !0,
|
|
731
731
|
ref: (w) => p(u, w),
|
|
732
732
|
style: x({ zIndex: u + (u == R($).screens.length - 1 ? 2 : 1) }),
|
|
733
733
|
key: u
|
|
734
734
|
}, {
|
|
735
735
|
default: P(() => [
|
|
736
|
-
(c(),
|
|
736
|
+
(c(), E(le(b.component.default)))
|
|
737
737
|
]),
|
|
738
738
|
_: 2
|
|
739
739
|
}, 1032, ["style"]))), 128)),
|
|
@@ -749,9 +749,9 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
749
749
|
placement: { default: "bottom" },
|
|
750
750
|
size: { default: "50px" }
|
|
751
751
|
},
|
|
752
|
-
setup(
|
|
753
|
-
const o =
|
|
754
|
-
return (n,
|
|
752
|
+
setup(t) {
|
|
753
|
+
const o = t;
|
|
754
|
+
return (n, e) => (c(), m("div", {
|
|
755
755
|
class: I(["t-toolbar", { [o.placement]: !0 }]),
|
|
756
756
|
style: x({ "--t-size-toolbar": o.size })
|
|
757
757
|
}, [
|
|
@@ -765,19 +765,19 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
765
765
|
props: {
|
|
766
766
|
to: {}
|
|
767
767
|
},
|
|
768
|
-
setup(
|
|
769
|
-
const o = oe(), n =
|
|
768
|
+
setup(t) {
|
|
769
|
+
const o = oe(), n = t, e = () => {
|
|
770
770
|
$.hasPrevious.value ? o?.back?.() : n.to && o?.push?.(n.to);
|
|
771
771
|
};
|
|
772
772
|
return (r, a) => r.to || R($).hasPrevious ? (c(), m("button", {
|
|
773
773
|
key: 0,
|
|
774
774
|
class: "t-back-button",
|
|
775
|
-
onClick:
|
|
775
|
+
onClick: e
|
|
776
776
|
}, [
|
|
777
777
|
h(r.$slots, "default", {}, () => [
|
|
778
778
|
a[0] || (a[0] = k("i", { class: "ri-arrow-left-s-line" }, null, -1))
|
|
779
779
|
], !0)
|
|
780
|
-
])) :
|
|
780
|
+
])) : z("", !0);
|
|
781
781
|
}
|
|
782
782
|
}), Me = /* @__PURE__ */ g(Ke, [["__scopeId", "data-v-ed626a3d"]]), Je = /* @__PURE__ */ T({
|
|
783
783
|
__name: "t-text",
|
|
@@ -785,19 +785,19 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
785
785
|
color: { default: "var(--t-color-text)" },
|
|
786
786
|
size: { default: "standard" }
|
|
787
787
|
},
|
|
788
|
-
setup(
|
|
789
|
-
const o =
|
|
790
|
-
let
|
|
791
|
-
return o.size == "standard" ?
|
|
788
|
+
setup(t) {
|
|
789
|
+
const o = t, n = S(() => {
|
|
790
|
+
let e, r = o.color;
|
|
791
|
+
return o.size == "standard" ? e = "var(--t-fs-10)" : o.size == "small" ? e = "var(--t-fs-08)" : o.size == "large" ? e = "var(--t-fs-12)" : e = o.size, ["warning", "info", "danger", "primary", "secondary", "success"].includes(o.color) && (r = `var(--t-color-status-${o.color})`), {
|
|
792
792
|
"--color": r,
|
|
793
|
-
"--font-size":
|
|
793
|
+
"--font-size": e
|
|
794
794
|
};
|
|
795
795
|
});
|
|
796
|
-
return (
|
|
796
|
+
return (e, r) => (c(), m("span", {
|
|
797
797
|
class: "t-text",
|
|
798
798
|
style: x(n.value)
|
|
799
799
|
}, [
|
|
800
|
-
h(
|
|
800
|
+
h(e.$slots, "default", {}, void 0, !0)
|
|
801
801
|
], 4));
|
|
802
802
|
}
|
|
803
803
|
}), j = /* @__PURE__ */ g(Je, [["__scopeId", "data-v-f0f94f05"]]), Qe = /* @__PURE__ */ T({
|
|
@@ -805,7 +805,7 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
805
805
|
props: {
|
|
806
806
|
placement: { default: "bottom" }
|
|
807
807
|
},
|
|
808
|
-
setup(
|
|
808
|
+
setup(t) {
|
|
809
809
|
return (o, n) => (c(), m("div", {
|
|
810
810
|
class: I(["t-pull-bar", { [o.placement]: !0 }])
|
|
811
811
|
}, null, 2));
|
|
@@ -825,8 +825,8 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
825
825
|
closeButton: { type: Boolean, default: !0 }
|
|
826
826
|
},
|
|
827
827
|
emits: ["dismiss"],
|
|
828
|
-
setup(
|
|
829
|
-
const n =
|
|
828
|
+
setup(t, { emit: o }) {
|
|
829
|
+
const n = t, e = o, r = _(), a = _(), l = _(!1);
|
|
830
830
|
let i = null;
|
|
831
831
|
const y = S(() => {
|
|
832
832
|
if (n.placement == "bottom") return "down";
|
|
@@ -834,7 +834,7 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
834
834
|
if (n.placement == "left") return "left";
|
|
835
835
|
if (n.placement == "right") return "right";
|
|
836
836
|
}), p = (f) => {
|
|
837
|
-
|
|
837
|
+
e("dismiss", f);
|
|
838
838
|
}, v = () => {
|
|
839
839
|
l.value = !0, setTimeout(() => {
|
|
840
840
|
l.value = !1;
|
|
@@ -848,13 +848,13 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
848
848
|
pointerId: null,
|
|
849
849
|
beforeEvent(s) {
|
|
850
850
|
let d = !1, b = !1;
|
|
851
|
-
return l.value || !n.gesture || n.placement == "center" ? d = !0 : this.pointerId ? (d = !0, b = this.pointerId == s.pointerId) : s.type == "pointerdown" && (this.pointerId = s.pointerId, d = !0, b = !0), d && (s.stopPropagation(), O(s.target) || (s.preventDefault(),
|
|
851
|
+
return l.value || !n.gesture || n.placement == "center" ? d = !0 : this.pointerId ? (d = !0, b = this.pointerId == s.pointerId) : s.type == "pointerdown" && (this.pointerId = s.pointerId, d = !0, b = !0), d && (s.stopPropagation(), O(s.target) || (s.preventDefault(), X())), b;
|
|
852
852
|
},
|
|
853
853
|
afterEvent(s) {
|
|
854
854
|
(s.type == "pointerup" || s.type == "pointercancel") && (this.pointerId = null);
|
|
855
855
|
},
|
|
856
856
|
fast({ d: s }) {
|
|
857
|
-
v(), s == y.value ?
|
|
857
|
+
v(), s == y.value ? e("dismiss", "gesture") : a.value.open();
|
|
858
858
|
},
|
|
859
859
|
move({ dy: s, dx: d, d: b }) {
|
|
860
860
|
if (b != y.value) return;
|
|
@@ -870,7 +870,7 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
870
870
|
return;
|
|
871
871
|
}
|
|
872
872
|
let u, w, H;
|
|
873
|
-
n.placement == "bottom" || n.placement == "top" ? (u = r.value.offsetHeight, H = s) : (u = r.value.offsetWidth, H = d), w = H / u * 100, w > 50 ?
|
|
873
|
+
n.placement == "bottom" || n.placement == "top" ? (u = r.value.offsetHeight, H = s) : (u = r.value.offsetWidth, H = d), w = H / u * 100, w > 50 ? e("dismiss", "gesture") : a.value.open();
|
|
874
874
|
},
|
|
875
875
|
cancel() {
|
|
876
876
|
v(), a.value.open();
|
|
@@ -878,7 +878,7 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
878
878
|
}));
|
|
879
879
|
}), A(() => {
|
|
880
880
|
i && i.destroy();
|
|
881
|
-
}), (f, s) => (c(),
|
|
881
|
+
}), (f, s) => (c(), E(L, {
|
|
882
882
|
ref_key: "present",
|
|
883
883
|
ref: a,
|
|
884
884
|
placement: n.placement,
|
|
@@ -888,10 +888,10 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
888
888
|
onDismiss: p
|
|
889
889
|
}, {
|
|
890
890
|
default: P(() => [
|
|
891
|
-
n.gesture && n.placement != "center" ? (c(),
|
|
891
|
+
n.gesture && n.placement != "center" ? (c(), E(ae, {
|
|
892
892
|
key: 0,
|
|
893
893
|
placement: n.placement
|
|
894
|
-
}, null, 8, ["placement"])) :
|
|
894
|
+
}, null, 8, ["placement"])) : z("", !0),
|
|
895
895
|
n.closeButton && n.placement == "center" ? (c(), m("button", {
|
|
896
896
|
key: 1,
|
|
897
897
|
class: "t-sheet-close",
|
|
@@ -900,7 +900,7 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
900
900
|
h(f.$slots, "close-icon", {}, () => [
|
|
901
901
|
s[1] || (s[1] = k("i", { class: "ri-close-large-line" }, null, -1))
|
|
902
902
|
], !0)
|
|
903
|
-
])) :
|
|
903
|
+
])) : z("", !0),
|
|
904
904
|
k("div", {
|
|
905
905
|
class: I(["t-sheet", { fullscreen: n.fullscreen, [n.placement]: !0, rounded: f.rounded, radius: n.radius }]),
|
|
906
906
|
style: x({ "--background": n.background }),
|
|
@@ -927,9 +927,9 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
927
927
|
variant: { default: "normal" }
|
|
928
928
|
},
|
|
929
929
|
emits: ["update:modelValue"],
|
|
930
|
-
setup(
|
|
931
|
-
const n =
|
|
932
|
-
|
|
930
|
+
setup(t, { emit: o }) {
|
|
931
|
+
const n = t, e = o, r = (a) => {
|
|
932
|
+
e("update:modelValue", a.target.value);
|
|
933
933
|
};
|
|
934
934
|
return (a, l) => (c(), m("div", {
|
|
935
935
|
class: I(["t-input", { rounded: n.rounded, ["size-" + n.size]: !0 }])
|
|
@@ -947,39 +947,39 @@ const se = /* @__PURE__ */ g(Ye, [["render", We], ["__scopeId", "data-v-66ea8649
|
|
|
947
947
|
h(a.$slots, "end", {}, void 0, !0)
|
|
948
948
|
])
|
|
949
949
|
]),
|
|
950
|
-
n.error ? (c(),
|
|
950
|
+
n.error ? (c(), E(j, {
|
|
951
951
|
key: 0,
|
|
952
952
|
color: "danger"
|
|
953
953
|
}, {
|
|
954
954
|
default: P(() => [
|
|
955
|
-
|
|
955
|
+
q(C(n.error), 1)
|
|
956
956
|
]),
|
|
957
957
|
_: 1
|
|
958
|
-
})) : n.help ? (c(),
|
|
958
|
+
})) : n.help ? (c(), E(j, {
|
|
959
959
|
key: 1,
|
|
960
960
|
color: "secondary"
|
|
961
961
|
}, {
|
|
962
962
|
default: P(() => [
|
|
963
|
-
|
|
963
|
+
q(C(n.help), 1)
|
|
964
964
|
]),
|
|
965
965
|
_: 1
|
|
966
|
-
})) :
|
|
966
|
+
})) : z("", !0)
|
|
967
967
|
], 2));
|
|
968
968
|
}
|
|
969
969
|
}), st = /* @__PURE__ */ g(rt, [["__scopeId", "data-v-75bf0d19"]]), at = {};
|
|
970
|
-
function lt(
|
|
970
|
+
function lt(t, o) {
|
|
971
971
|
return c(), m("textarea");
|
|
972
972
|
}
|
|
973
973
|
const ct = /* @__PURE__ */ g(at, [["render", lt]]), it = {};
|
|
974
|
-
function ut(
|
|
974
|
+
function ut(t, o) {
|
|
975
975
|
return c(), m("div");
|
|
976
976
|
}
|
|
977
977
|
const dt = /* @__PURE__ */ g(it, [["render", ut]]), pt = {}, ft = { class: "t-grid" };
|
|
978
|
-
function mt(
|
|
978
|
+
function mt(t, o) {
|
|
979
979
|
return c(), m("div", ft);
|
|
980
980
|
}
|
|
981
981
|
const vt = /* @__PURE__ */ g(pt, [["render", mt]]), _t = {}, yt = { class: "t-grid-item" };
|
|
982
|
-
function gt(
|
|
982
|
+
function gt(t, o) {
|
|
983
983
|
return c(), m("div", yt);
|
|
984
984
|
}
|
|
985
985
|
const bt = /* @__PURE__ */ g(_t, [["render", gt]]), ht = /* @__PURE__ */ T({
|
|
@@ -987,9 +987,9 @@ const bt = /* @__PURE__ */ g(_t, [["render", gt]]), ht = /* @__PURE__ */ T({
|
|
|
987
987
|
props: {
|
|
988
988
|
type: { default: "horizontal" }
|
|
989
989
|
},
|
|
990
|
-
setup(
|
|
991
|
-
const o =
|
|
992
|
-
return (n,
|
|
990
|
+
setup(t) {
|
|
991
|
+
const o = t;
|
|
992
|
+
return (n, e) => (c(), m("div", {
|
|
993
993
|
class: I(["t-divider", { [o.type]: !0 }])
|
|
994
994
|
}, null, 2));
|
|
995
995
|
}
|
|
@@ -999,8 +999,8 @@ const bt = /* @__PURE__ */ g(_t, [["render", gt]]), ht = /* @__PURE__ */ T({
|
|
|
999
999
|
color: { default: "warning" }
|
|
1000
1000
|
},
|
|
1001
1001
|
emits: ["change"],
|
|
1002
|
-
setup(
|
|
1003
|
-
const n =
|
|
1002
|
+
setup(t, { emit: o }) {
|
|
1003
|
+
const n = t, e = o, r = _(!1), a = _(), l = S(() => {
|
|
1004
1004
|
let p = n.color;
|
|
1005
1005
|
return ["warning", "info", "danger", "primary", "secondary", "success"].includes(n.color) && (p = `var(--t-color-status-${n.color})`), {
|
|
1006
1006
|
"--color": p
|
|
@@ -1008,11 +1008,11 @@ const bt = /* @__PURE__ */ g(_t, [["render", gt]]), ht = /* @__PURE__ */ T({
|
|
|
1008
1008
|
}), i = () => a.value?.parentElement?.querySelector?.("input");
|
|
1009
1009
|
te(() => {
|
|
1010
1010
|
let p = i();
|
|
1011
|
-
p && (r.value = p.type != "password",
|
|
1011
|
+
p && (r.value = p.type != "password", e("change", r.value));
|
|
1012
1012
|
});
|
|
1013
1013
|
const y = () => {
|
|
1014
1014
|
let p = i();
|
|
1015
|
-
p && (r.value = !r.value, r.value ? p.type = "text" : p.type = "password",
|
|
1015
|
+
p && (r.value = !r.value, r.value ? p.type = "text" : p.type = "password", e("change", r.value));
|
|
1016
1016
|
};
|
|
1017
1017
|
return (p, v) => (c(), m("button", {
|
|
1018
1018
|
ref_key: "toggle",
|
|
@@ -1023,8 +1023,8 @@ const bt = /* @__PURE__ */ g(_t, [["render", gt]]), ht = /* @__PURE__ */ T({
|
|
|
1023
1023
|
}, [
|
|
1024
1024
|
r.value ? h(p.$slots, "on", { key: 0 }, () => [
|
|
1025
1025
|
v[0] || (v[0] = k("i", { class: "ri-eye-line" }, null, -1))
|
|
1026
|
-
], !0) :
|
|
1027
|
-
r.value ?
|
|
1026
|
+
], !0) : z("", !0),
|
|
1027
|
+
r.value ? z("", !0) : h(p.$slots, "off", { key: 1 }, () => [
|
|
1028
1028
|
v[1] || (v[1] = k("i", { class: "ri-eye-off-line" }, null, -1))
|
|
1029
1029
|
], !0)
|
|
1030
1030
|
], 4));
|
|
@@ -1035,32 +1035,32 @@ const bt = /* @__PURE__ */ g(_t, [["render", gt]]), ht = /* @__PURE__ */ T({
|
|
|
1035
1035
|
square: { type: Boolean, default: !1 },
|
|
1036
1036
|
size: { default: "standard" }
|
|
1037
1037
|
},
|
|
1038
|
-
setup(
|
|
1039
|
-
const o =
|
|
1040
|
-
return (
|
|
1041
|
-
class: I(["t-avatar", { square:
|
|
1038
|
+
setup(t) {
|
|
1039
|
+
const o = t, n = S(() => o.size == "small" ? "24px" : o.size == "standard" ? "40px" : o.size == "large" ? "60px" : o.size);
|
|
1040
|
+
return (e, r) => (c(), m("div", {
|
|
1041
|
+
class: I(["t-avatar", { square: e.square }]),
|
|
1042
1042
|
style: x({ "--size": n.value })
|
|
1043
1043
|
}, [
|
|
1044
|
-
h(
|
|
1044
|
+
h(e.$slots, "default", {}, void 0, !0)
|
|
1045
1045
|
], 6));
|
|
1046
1046
|
}
|
|
1047
1047
|
}), xt = /* @__PURE__ */ g(wt, [["__scopeId", "data-v-24384c2f"]]), It = { class: "t-collapse-title" }, St = {
|
|
1048
1048
|
key: 0,
|
|
1049
1049
|
class: "icon"
|
|
1050
|
-
},
|
|
1050
|
+
}, zt = {
|
|
1051
1051
|
key: 1,
|
|
1052
1052
|
class: "icon"
|
|
1053
|
-
},
|
|
1053
|
+
}, Et = { class: "t-collapse-content" }, Bt = /* @__PURE__ */ T({
|
|
1054
1054
|
__name: "t-collapse",
|
|
1055
1055
|
props: {
|
|
1056
1056
|
title: {}
|
|
1057
1057
|
},
|
|
1058
1058
|
emits: ["change"],
|
|
1059
|
-
setup(
|
|
1060
|
-
const n =
|
|
1061
|
-
r.value = !r.value, a.value = `calc(${l.value.offsetHeight}px + 2rem)`,
|
|
1059
|
+
setup(t, { emit: o }) {
|
|
1060
|
+
const n = t, e = o, r = _(!1), a = _(""), l = _(), i = () => {
|
|
1061
|
+
r.value = !r.value, a.value = `calc(${l.value.offsetHeight}px + 2rem)`, e("change", r.value);
|
|
1062
1062
|
};
|
|
1063
|
-
return
|
|
1063
|
+
return e("change", r.value), (y, p) => (c(), m("div", {
|
|
1064
1064
|
class: I(["t-collapse", { open: r.value }]),
|
|
1065
1065
|
style: x({ "--height": a.value })
|
|
1066
1066
|
}, [
|
|
@@ -1071,18 +1071,18 @@ const bt = /* @__PURE__ */ g(_t, [["render", gt]]), ht = /* @__PURE__ */ T({
|
|
|
1071
1071
|
h(y.$slots, "icon"),
|
|
1072
1072
|
k("div", It, [
|
|
1073
1073
|
h(y.$slots, "title", {}, () => [
|
|
1074
|
-
|
|
1074
|
+
q(C(n.title), 1)
|
|
1075
1075
|
])
|
|
1076
1076
|
]),
|
|
1077
1077
|
h(y.$slots, "toggle", {}, () => [
|
|
1078
1078
|
r.value ? (c(), m("div", St, [...p[0] || (p[0] = [
|
|
1079
1079
|
k("i", { class: "ri-arrow-up-s-line" }, null, -1)
|
|
1080
|
-
])])) : (c(), m("div",
|
|
1080
|
+
])])) : (c(), m("div", zt, [...p[1] || (p[1] = [
|
|
1081
1081
|
k("i", { class: "ri-arrow-down-s-line" }, null, -1)
|
|
1082
1082
|
])]))
|
|
1083
1083
|
])
|
|
1084
1084
|
]),
|
|
1085
|
-
k("div",
|
|
1085
|
+
k("div", Et, [
|
|
1086
1086
|
k("div", {
|
|
1087
1087
|
ref_key: "content",
|
|
1088
1088
|
ref: l
|
|
@@ -1101,9 +1101,9 @@ const bt = /* @__PURE__ */ g(_t, [["render", gt]]), ht = /* @__PURE__ */ T({
|
|
|
1101
1101
|
color: { default: "primary" }
|
|
1102
1102
|
},
|
|
1103
1103
|
emits: ["update:modelValue"],
|
|
1104
|
-
setup(
|
|
1105
|
-
const n =
|
|
1106
|
-
|
|
1104
|
+
setup(t, { emit: o }) {
|
|
1105
|
+
const n = t, e = o, r = () => {
|
|
1106
|
+
e("update:modelValue", !n.modelValue);
|
|
1107
1107
|
}, a = S(() => {
|
|
1108
1108
|
let l = {
|
|
1109
1109
|
"--background": n.color,
|
|
@@ -1122,18 +1122,18 @@ const bt = /* @__PURE__ */ g(_t, [["render", gt]]), ht = /* @__PURE__ */ T({
|
|
|
1122
1122
|
k("div", { class: "t-switch-icon" }, null, -1)
|
|
1123
1123
|
])], 6));
|
|
1124
1124
|
}
|
|
1125
|
-
}), Pt = /* @__PURE__ */ g(Ct, [["__scopeId", "data-v-3616970e"]]),
|
|
1126
|
-
install: (
|
|
1127
|
-
ue(),
|
|
1125
|
+
}), Pt = /* @__PURE__ */ g(Ct, [["__scopeId", "data-v-3616970e"]]), qt = () => ({
|
|
1126
|
+
install: (t) => {
|
|
1127
|
+
ue(), t.component("t-app", me), t.component("t-screen", se), t.component("t-swipe-screen", Ge), t.component("t-cable", Re), t.component("t-toolbar", je), t.component("t-content", Xe), t.component("t-card", Ne), t.component("t-refresher", Le), t.component("t-button", M), t.component("t-back-button", Me), t.component("t-present", L), t.component("t-text", j), t.component("t-sheet", et), t.component("t-pull-signal", ae), t.component("t-input", st), t.component("t-textarea", ct), t.component("t-rich-text", dt), t.component("t-grid", vt), t.component("t-grid-item", bt), t.component("t-divider", kt), t.component("t-toggle-password", Tt), t.component("t-loading-icon", K), t.component("t-alert", ne), t.component("t-avatar", xt), t.component("t-collapse", Bt), t.component("t-toast", re), t.component("t-switch", Pt);
|
|
1128
1128
|
}
|
|
1129
1129
|
});
|
|
1130
1130
|
export {
|
|
1131
|
-
|
|
1131
|
+
X as blurCurrentActive,
|
|
1132
1132
|
At as createAction,
|
|
1133
1133
|
Vt as createAlert,
|
|
1134
1134
|
Ot as createLoading,
|
|
1135
|
-
|
|
1136
|
-
|
|
1135
|
+
Xt as createToast,
|
|
1136
|
+
qt as createToife,
|
|
1137
1137
|
O as isFormElement,
|
|
1138
1138
|
Se as presentController,
|
|
1139
1139
|
$ as screenController,
|