st-comp 0.0.147 → 0.0.148
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/components.d.ts +3 -3
- package/es/ChartLayout.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +22 -20
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +631 -566
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +83 -77
- package/es/KlineNew.cjs +2 -2
- package/es/KlineNew.js +14 -10
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +95 -89
- package/es/Table.cjs +1 -1
- package/es/Table.js +62 -58
- package/es/User.cjs +1 -1
- package/es/User.js +151 -146
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +1 -2384
- package/es/VirtualTable.cjs +13 -1
- package/es/VirtualTable.js +2800 -1
- package/es/_initCloneObject-476b02ce.cjs +1 -0
- package/es/{_initCloneObject-a8dcd058.js → _initCloneObject-ec5c9523.js} +5 -5
- package/es/{base-00ce90ec.cjs → base-6ccc8fc2.cjs} +3 -3
- package/es/{base-674a354a.js → base-950bac7e.js} +59 -58
- package/es/castArray-374558a5.cjs +1 -0
- package/es/castArray-c770910d.js +10 -0
- package/es/config-provider-c87e277f.cjs +1 -0
- package/es/config-provider-feed0e8a.js +47 -0
- package/es/debounce-a6b4f91b.cjs +1 -0
- package/es/debounce-c64fb3b5.js +83 -0
- package/es/dropdown-6bdb3cf4.cjs +1 -0
- package/es/{dropdown-ce30ada6.js → dropdown-c9272ca3.js} +31 -30
- package/es/el-button-b8f71c7d.cjs +1 -0
- package/es/{el-button-7b9f5933.js → el-button-d7b6eebd.js} +12 -12
- package/es/{el-empty-87154b6d.cjs → el-empty-12eece57.cjs} +1 -1
- package/es/{el-empty-39b3aed7.js → el-empty-89a523ed.js} +5 -5
- package/es/{el-form-item-fc6f80ab.js → el-form-item-55d36086.js} +72 -71
- package/es/el-form-item-ebbf096d.cjs +12 -0
- package/es/el-input-2c7e70a3.cjs +1 -0
- package/es/{el-input-d249ac86.js → el-input-cb528574.js} +65 -63
- package/es/el-input-number-8e168e83.cjs +1 -0
- package/es/{el-input-number-2066fbb7.js → el-input-number-ce30bfa8.js} +22 -21
- package/es/el-message-612c2346.cjs +1 -0
- package/es/{el-message-9859835d.js → el-message-d51d032b.js} +80 -78
- package/es/{el-overlay-f0757cc4.js → el-overlay-07414277.js} +70 -69
- package/es/el-overlay-fb255b83.cjs +1 -0
- package/es/el-popper-8360bd91.cjs +1 -0
- package/es/el-popper-f4b01f85.js +2262 -0
- package/es/el-scrollbar-271142ad.cjs +1 -0
- package/es/el-scrollbar-e8e93751.js +201 -0
- package/es/el-select-2e71d4af.cjs +1 -0
- package/es/{el-select-bcbb7e55.js → el-select-e71af2e6.js} +333 -329
- package/es/el-table-column-9fe79f05.cjs +14 -0
- package/es/el-table-column-dc562f14.js +3933 -0
- package/es/el-tag-930e7b32.cjs +1 -0
- package/es/el-tag-d65768f4.js +279 -0
- package/es/index-0ed86daf.cjs +3 -0
- package/es/index-121e2861.js +306 -0
- package/es/index-18416440.cjs +1 -0
- package/es/index-674d2fd7.cjs +1 -0
- package/es/index-709675d5.js +59 -0
- package/es/{index-45de4a12.js → index-92ba4292.js} +13 -13
- package/es/index-aece600c.js +81 -0
- package/es/index-da646183.cjs +1 -0
- package/es/raf-2d77cbbe.cjs +1 -0
- package/es/raf-f55e0daa.js +6 -0
- package/es/{scroll-cca17da0.cjs → scroll-c8ac196e.cjs} +1 -1
- package/es/{scroll-cb696ed2.js → scroll-ca84f80a.js} +1 -1
- package/es/style.css +1 -1
- package/es/typescript-7ae59c4c.js +4 -0
- package/es/typescript-b63f8e83.cjs +1 -0
- package/es/use-form-common-props-4d37077d.js +586 -0
- package/es/use-form-common-props-c1960844.cjs +2 -0
- package/es/{zh-cn-ef7d7220.js → zh-cn-23c8e0d1.js} +2 -2
- package/es/{zh-cn-37af467d.cjs → zh-cn-414d7f0c.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-24f8572c.js → index-ffeb163e.js} +2 -2
- package/lib/{python-2143eee4.js → python-0ec8f68c.js} +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/utils.js +1 -1
- package/es/_initCloneObject-7493ecd5.cjs +0 -1
- package/es/config-provider-419ffbf2.js +0 -120
- package/es/config-provider-68414290.cjs +0 -3
- package/es/dropdown-127a8c0d.cjs +0 -1
- package/es/el-button-c00975e1.cjs +0 -1
- package/es/el-checkbox-group-0554b352.js +0 -67
- package/es/el-checkbox-group-7a313d34.cjs +0 -1
- package/es/el-form-item-7867f64d.cjs +0 -12
- package/es/el-input-2ff1628c.cjs +0 -1
- package/es/el-input-number-d6801a5c.cjs +0 -1
- package/es/el-message-ffcf690c.cjs +0 -1
- package/es/el-overlay-91784be2.cjs +0 -1
- package/es/el-popover-4db657e2.cjs +0 -1
- package/es/el-popover-b7b43c1f.js +0 -138
- package/es/el-scrollbar-35bac6b3.js +0 -2452
- package/es/el-scrollbar-ec09bbd3.cjs +0 -1
- package/es/el-select-0785c35a.cjs +0 -1
- package/es/el-table-column-2478adf8.cjs +0 -14
- package/es/el-table-column-c1e1a206.js +0 -3798
- package/es/el-tag-13ee17b3.cjs +0 -1
- package/es/el-tag-73372c6c.js +0 -359
- package/es/index-07b61d12.cjs +0 -1
- package/es/index-65b719a4.cjs +0 -1
- package/es/index-8b5fbc11.js +0 -66
- package/es/index-8c85d7c5.js +0 -858
- package/es/index-a49f4743.cjs +0 -2
package/es/index-8c85d7c5.js
DELETED
|
@@ -1,858 +0,0 @@
|
|
|
1
|
-
import { R as Pe, T as Ae, A as re, U as Oe, V as Ne, k as ze, i as k, m as we, W as Me, b as $, e as H, d as Z, u as Be, j as Ue, h as Re, _ as q, w as ge, f as Ve, c as ae, l as De, n as Ke } from "./base-674a354a.js";
|
|
2
|
-
import { ref as E, getCurrentInstance as O, inject as y, computed as x, unref as h, defineComponent as u, openBlock as c, createElementBlock as i, mergeProps as ke, renderSlot as N, createElementVNode as l, onMounted as z, watch as A, toRef as He, onUnmounted as $e, onBeforeUnmount as W, provide as Ze, nextTick as se, createBlock as qe, Teleport as We } from "vue";
|
|
3
|
-
var je = function() {
|
|
4
|
-
try {
|
|
5
|
-
var e = Pe(Object, "defineProperty");
|
|
6
|
-
return e({}, "", {}), e;
|
|
7
|
-
} catch {
|
|
8
|
-
}
|
|
9
|
-
}();
|
|
10
|
-
const ne = je;
|
|
11
|
-
var Ye = 9007199254740991, Je = /^(?:0|[1-9]\d*)$/;
|
|
12
|
-
function Xe(e, t) {
|
|
13
|
-
var r = typeof e;
|
|
14
|
-
return t = t ?? Ye, !!t && (r == "number" || r != "symbol" && Je.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
15
|
-
}
|
|
16
|
-
function Qe(e, t, r) {
|
|
17
|
-
t == "__proto__" && ne ? ne(e, t, {
|
|
18
|
-
configurable: !0,
|
|
19
|
-
enumerable: !0,
|
|
20
|
-
value: r,
|
|
21
|
-
writable: !0
|
|
22
|
-
}) : e[t] = r;
|
|
23
|
-
}
|
|
24
|
-
var Ge = Object.prototype, et = Ge.hasOwnProperty;
|
|
25
|
-
function tt(e, t, r) {
|
|
26
|
-
var a = e[t];
|
|
27
|
-
(!(et.call(e, t) && Ae(a, r)) || r === void 0 && !(t in e)) && Qe(e, t, r);
|
|
28
|
-
}
|
|
29
|
-
function l2(e) {
|
|
30
|
-
return e === void 0;
|
|
31
|
-
}
|
|
32
|
-
function c2(e, t, r, a) {
|
|
33
|
-
if (!re(e))
|
|
34
|
-
return e;
|
|
35
|
-
t = Oe(t, e);
|
|
36
|
-
for (var s = -1, o = t.length, d = o - 1, p = e; p != null && ++s < o; ) {
|
|
37
|
-
var v = Ne(t[s]), f = r;
|
|
38
|
-
if (v === "__proto__" || v === "constructor" || v === "prototype")
|
|
39
|
-
return e;
|
|
40
|
-
if (s != d) {
|
|
41
|
-
var L = p[v];
|
|
42
|
-
f = a ? a(L, v, p) : void 0, f === void 0 && (f = re(L) ? L : Xe(t[s + 1]) ? [] : {});
|
|
43
|
-
}
|
|
44
|
-
tt(p, v, f), p = p[v];
|
|
45
|
-
}
|
|
46
|
-
return e;
|
|
47
|
-
}
|
|
48
|
-
const oe = {
|
|
49
|
-
current: 0
|
|
50
|
-
}, ue = E(0), rt = 2e3, le = Symbol("elZIndexContextKey"), at = Symbol("zIndexContextKey"), i2 = (e) => {
|
|
51
|
-
const t = O() ? y(le, oe) : oe, r = e || (O() ? y(at, void 0) : void 0), a = x(() => {
|
|
52
|
-
const d = h(r);
|
|
53
|
-
return ze(d) ? d : rt;
|
|
54
|
-
}), s = x(() => a.value + ue.value), o = () => (t.current++, ue.value = t.current, s.value);
|
|
55
|
-
return !k && !y(le) && we("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
56
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
|
|
57
|
-
initialZIndex: a,
|
|
58
|
-
currentZIndex: s,
|
|
59
|
-
nextZIndex: o
|
|
60
|
-
};
|
|
61
|
-
}, st = ["", "default", "small", "large"], _2 = Me({
|
|
62
|
-
type: String,
|
|
63
|
-
values: st,
|
|
64
|
-
required: !1
|
|
65
|
-
}), nt = Symbol("size"), ot = () => {
|
|
66
|
-
const e = y(nt, {});
|
|
67
|
-
return x(() => h(e.size) || "");
|
|
68
|
-
}, ut = Symbol("emptyValuesContextKey"), lt = "use-empty-values", ct = ["", void 0, null], it = void 0, d2 = $({
|
|
69
|
-
emptyValues: Array,
|
|
70
|
-
valueOnClear: {
|
|
71
|
-
type: [String, Number, Boolean, Function],
|
|
72
|
-
default: void 0,
|
|
73
|
-
validator: (e) => H(e) ? !e() : !e
|
|
74
|
-
}
|
|
75
|
-
}), p2 = (e, t) => {
|
|
76
|
-
const r = O() ? y(ut, E({})) : E({}), a = x(() => e.emptyValues || r.value.emptyValues || ct), s = x(() => H(e.valueOnClear) ? e.valueOnClear() : e.valueOnClear !== void 0 ? e.valueOnClear : H(r.value.valueOnClear) ? r.value.valueOnClear() : r.value.valueOnClear !== void 0 ? r.value.valueOnClear : t !== void 0 ? t : it), o = (d) => a.value.includes(d);
|
|
77
|
-
return a.value.includes(s.value) || we(lt, "value-on-clear should be a value of empty-values"), {
|
|
78
|
-
emptyValues: a,
|
|
79
|
-
valueOnClear: s,
|
|
80
|
-
isEmptyValue: o
|
|
81
|
-
};
|
|
82
|
-
}, v2 = "update:modelValue", f2 = "change", m2 = "input", _t = $({
|
|
83
|
-
size: {
|
|
84
|
-
type: Z([Number, String])
|
|
85
|
-
},
|
|
86
|
-
color: {
|
|
87
|
-
type: String
|
|
88
|
-
}
|
|
89
|
-
}), dt = u({
|
|
90
|
-
name: "ElIcon",
|
|
91
|
-
inheritAttrs: !1
|
|
92
|
-
}), pt = /* @__PURE__ */ u({
|
|
93
|
-
...dt,
|
|
94
|
-
props: _t,
|
|
95
|
-
setup(e) {
|
|
96
|
-
const t = e, r = Be("icon"), a = x(() => {
|
|
97
|
-
const { size: s, color: o } = t;
|
|
98
|
-
return !s && !o ? {} : {
|
|
99
|
-
fontSize: Ue(s) ? void 0 : Re(s),
|
|
100
|
-
"--color": o
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
|
-
return (s, o) => (c(), i("i", ke({
|
|
104
|
-
class: h(r).b(),
|
|
105
|
-
style: h(a)
|
|
106
|
-
}, s.$attrs), [
|
|
107
|
-
N(s.$slots, "default")
|
|
108
|
-
], 16));
|
|
109
|
-
}
|
|
110
|
-
});
|
|
111
|
-
var vt = /* @__PURE__ */ q(pt, [["__file", "icon.vue"]]);
|
|
112
|
-
const w2 = ge(vt);
|
|
113
|
-
/*! Element Plus Icons Vue v2.3.1 */
|
|
114
|
-
var ft = /* @__PURE__ */ u({
|
|
115
|
-
name: "ArrowDown",
|
|
116
|
-
__name: "arrow-down",
|
|
117
|
-
setup(e) {
|
|
118
|
-
return (t, r) => (c(), i("svg", {
|
|
119
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
120
|
-
viewBox: "0 0 1024 1024"
|
|
121
|
-
}, [
|
|
122
|
-
l("path", {
|
|
123
|
-
fill: "currentColor",
|
|
124
|
-
d: "M831.872 340.864 512 652.672 192.128 340.864a30.592 30.592 0 0 0-42.752 0 29.12 29.12 0 0 0 0 41.6L489.664 714.24a32 32 0 0 0 44.672 0l340.288-331.712a29.12 29.12 0 0 0 0-41.728 30.592 30.592 0 0 0-42.752 0z"
|
|
125
|
-
})
|
|
126
|
-
]));
|
|
127
|
-
}
|
|
128
|
-
}), g2 = ft, mt = /* @__PURE__ */ u({
|
|
129
|
-
name: "ArrowLeft",
|
|
130
|
-
__name: "arrow-left",
|
|
131
|
-
setup(e) {
|
|
132
|
-
return (t, r) => (c(), i("svg", {
|
|
133
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
134
|
-
viewBox: "0 0 1024 1024"
|
|
135
|
-
}, [
|
|
136
|
-
l("path", {
|
|
137
|
-
fill: "currentColor",
|
|
138
|
-
d: "M609.408 149.376 277.76 489.6a32 32 0 0 0 0 44.672l331.648 340.352a29.12 29.12 0 0 0 41.728 0 30.592 30.592 0 0 0 0-42.752L339.264 511.936l311.872-319.872a30.592 30.592 0 0 0 0-42.688 29.12 29.12 0 0 0-41.728 0z"
|
|
139
|
-
})
|
|
140
|
-
]));
|
|
141
|
-
}
|
|
142
|
-
}), E2 = mt, wt = /* @__PURE__ */ u({
|
|
143
|
-
name: "ArrowRight",
|
|
144
|
-
__name: "arrow-right",
|
|
145
|
-
setup(e) {
|
|
146
|
-
return (t, r) => (c(), i("svg", {
|
|
147
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
148
|
-
viewBox: "0 0 1024 1024"
|
|
149
|
-
}, [
|
|
150
|
-
l("path", {
|
|
151
|
-
fill: "currentColor",
|
|
152
|
-
d: "M340.864 149.312a30.592 30.592 0 0 0 0 42.752L652.736 512 340.864 831.872a30.592 30.592 0 0 0 0 42.752 29.12 29.12 0 0 0 41.728 0L714.24 534.336a32 32 0 0 0 0-44.672L382.592 149.376a29.12 29.12 0 0 0-41.728 0z"
|
|
153
|
-
})
|
|
154
|
-
]));
|
|
155
|
-
}
|
|
156
|
-
}), h2 = wt, gt = /* @__PURE__ */ u({
|
|
157
|
-
name: "ArrowUp",
|
|
158
|
-
__name: "arrow-up",
|
|
159
|
-
setup(e) {
|
|
160
|
-
return (t, r) => (c(), i("svg", {
|
|
161
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
162
|
-
viewBox: "0 0 1024 1024"
|
|
163
|
-
}, [
|
|
164
|
-
l("path", {
|
|
165
|
-
fill: "currentColor",
|
|
166
|
-
d: "m488.832 344.32-339.84 356.672a32 32 0 0 0 0 44.16l.384.384a29.44 29.44 0 0 0 42.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0 0 42.688 0l.384-.384a32 32 0 0 0 0-44.16L535.168 344.32a32 32 0 0 0-46.336 0"
|
|
167
|
-
})
|
|
168
|
-
]));
|
|
169
|
-
}
|
|
170
|
-
}), y2 = gt, Et = /* @__PURE__ */ u({
|
|
171
|
-
name: "CircleCheck",
|
|
172
|
-
__name: "circle-check",
|
|
173
|
-
setup(e) {
|
|
174
|
-
return (t, r) => (c(), i("svg", {
|
|
175
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
176
|
-
viewBox: "0 0 1024 1024"
|
|
177
|
-
}, [
|
|
178
|
-
l("path", {
|
|
179
|
-
fill: "currentColor",
|
|
180
|
-
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
|
181
|
-
}),
|
|
182
|
-
l("path", {
|
|
183
|
-
fill: "currentColor",
|
|
184
|
-
d: "M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752l265.344-265.408z"
|
|
185
|
-
})
|
|
186
|
-
]));
|
|
187
|
-
}
|
|
188
|
-
}), ht = Et, yt = /* @__PURE__ */ u({
|
|
189
|
-
name: "CircleCloseFilled",
|
|
190
|
-
__name: "circle-close-filled",
|
|
191
|
-
setup(e) {
|
|
192
|
-
return (t, r) => (c(), i("svg", {
|
|
193
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
194
|
-
viewBox: "0 0 1024 1024"
|
|
195
|
-
}, [
|
|
196
|
-
l("path", {
|
|
197
|
-
fill: "currentColor",
|
|
198
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
|
|
199
|
-
})
|
|
200
|
-
]));
|
|
201
|
-
}
|
|
202
|
-
}), Ee = yt, xt = /* @__PURE__ */ u({
|
|
203
|
-
name: "CircleClose",
|
|
204
|
-
__name: "circle-close",
|
|
205
|
-
setup(e) {
|
|
206
|
-
return (t, r) => (c(), i("svg", {
|
|
207
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
208
|
-
viewBox: "0 0 1024 1024"
|
|
209
|
-
}, [
|
|
210
|
-
l("path", {
|
|
211
|
-
fill: "currentColor",
|
|
212
|
-
d: "m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"
|
|
213
|
-
}),
|
|
214
|
-
l("path", {
|
|
215
|
-
fill: "currentColor",
|
|
216
|
-
d: "M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"
|
|
217
|
-
})
|
|
218
|
-
]));
|
|
219
|
-
}
|
|
220
|
-
}), Ct = xt, bt = /* @__PURE__ */ u({
|
|
221
|
-
name: "Close",
|
|
222
|
-
__name: "close",
|
|
223
|
-
setup(e) {
|
|
224
|
-
return (t, r) => (c(), i("svg", {
|
|
225
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
226
|
-
viewBox: "0 0 1024 1024"
|
|
227
|
-
}, [
|
|
228
|
-
l("path", {
|
|
229
|
-
fill: "currentColor",
|
|
230
|
-
d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
|
|
231
|
-
})
|
|
232
|
-
]));
|
|
233
|
-
}
|
|
234
|
-
}), he = bt, Lt = /* @__PURE__ */ u({
|
|
235
|
-
name: "DArrowLeft",
|
|
236
|
-
__name: "d-arrow-left",
|
|
237
|
-
setup(e) {
|
|
238
|
-
return (t, r) => (c(), i("svg", {
|
|
239
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
240
|
-
viewBox: "0 0 1024 1024"
|
|
241
|
-
}, [
|
|
242
|
-
l("path", {
|
|
243
|
-
fill: "currentColor",
|
|
244
|
-
d: "M529.408 149.376a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L259.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L197.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224zm256 0a29.12 29.12 0 0 1 41.728 0 30.592 30.592 0 0 1 0 42.688L515.264 511.936l311.872 319.936a30.592 30.592 0 0 1-.512 43.264 29.12 29.12 0 0 1-41.216-.512L453.76 534.272a32 32 0 0 1 0-44.672l331.648-340.224z"
|
|
245
|
-
})
|
|
246
|
-
]));
|
|
247
|
-
}
|
|
248
|
-
}), x2 = Lt, Tt = /* @__PURE__ */ u({
|
|
249
|
-
name: "DArrowRight",
|
|
250
|
-
__name: "d-arrow-right",
|
|
251
|
-
setup(e) {
|
|
252
|
-
return (t, r) => (c(), i("svg", {
|
|
253
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
254
|
-
viewBox: "0 0 1024 1024"
|
|
255
|
-
}, [
|
|
256
|
-
l("path", {
|
|
257
|
-
fill: "currentColor",
|
|
258
|
-
d: "M452.864 149.312a29.12 29.12 0 0 1 41.728.064L826.24 489.664a32 32 0 0 1 0 44.672L494.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L764.736 512 452.864 192a30.592 30.592 0 0 1 0-42.688m-256 0a29.12 29.12 0 0 1 41.728.064L570.24 489.664a32 32 0 0 1 0 44.672L238.592 874.624a29.12 29.12 0 0 1-41.728 0 30.592 30.592 0 0 1 0-42.752L508.736 512 196.864 192a30.592 30.592 0 0 1 0-42.688z"
|
|
259
|
-
})
|
|
260
|
-
]));
|
|
261
|
-
}
|
|
262
|
-
}), C2 = Tt, Ft = /* @__PURE__ */ u({
|
|
263
|
-
name: "Hide",
|
|
264
|
-
__name: "hide",
|
|
265
|
-
setup(e) {
|
|
266
|
-
return (t, r) => (c(), i("svg", {
|
|
267
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
268
|
-
viewBox: "0 0 1024 1024"
|
|
269
|
-
}, [
|
|
270
|
-
l("path", {
|
|
271
|
-
fill: "currentColor",
|
|
272
|
-
d: "M876.8 156.8c0-9.6-3.2-16-9.6-22.4-6.4-6.4-12.8-9.6-22.4-9.6-9.6 0-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176C44.8 438.4 0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4 0 9.6 3.2 16 9.6 22.4 6.4 6.4 12.8 9.6 22.4 9.6 9.6 0 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4Zm-646.4 528c-76.8-70.4-128-128-153.6-172.8 28.8-48 80-105.6 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4Zm140.8-96c-12.8-22.4-19.2-48-19.2-76.8 0-44.8 16-83.2 48-112 32-28.8 67.2-48 112-48 28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6-28.8 48-80 105.6-153.6 172.8-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176C979.199 585.6 1024 528 1024 512s-48.001-73.6-134.401-176Z"
|
|
273
|
-
}),
|
|
274
|
-
l("path", {
|
|
275
|
-
fill: "currentColor",
|
|
276
|
-
d: "M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112-32 28.8-67.2 48-112 48Z"
|
|
277
|
-
})
|
|
278
|
-
]));
|
|
279
|
-
}
|
|
280
|
-
}), b2 = Ft, It = /* @__PURE__ */ u({
|
|
281
|
-
name: "InfoFilled",
|
|
282
|
-
__name: "info-filled",
|
|
283
|
-
setup(e) {
|
|
284
|
-
return (t, r) => (c(), i("svg", {
|
|
285
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
286
|
-
viewBox: "0 0 1024 1024"
|
|
287
|
-
}, [
|
|
288
|
-
l("path", {
|
|
289
|
-
fill: "currentColor",
|
|
290
|
-
d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
|
|
291
|
-
})
|
|
292
|
-
]));
|
|
293
|
-
}
|
|
294
|
-
}), ye = It, St = /* @__PURE__ */ u({
|
|
295
|
-
name: "Loading",
|
|
296
|
-
__name: "loading",
|
|
297
|
-
setup(e) {
|
|
298
|
-
return (t, r) => (c(), i("svg", {
|
|
299
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
300
|
-
viewBox: "0 0 1024 1024"
|
|
301
|
-
}, [
|
|
302
|
-
l("path", {
|
|
303
|
-
fill: "currentColor",
|
|
304
|
-
d: "M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248zm452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248zM828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0z"
|
|
305
|
-
})
|
|
306
|
-
]));
|
|
307
|
-
}
|
|
308
|
-
}), Pt = St, At = /* @__PURE__ */ u({
|
|
309
|
-
name: "Minus",
|
|
310
|
-
__name: "minus",
|
|
311
|
-
setup(e) {
|
|
312
|
-
return (t, r) => (c(), i("svg", {
|
|
313
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
314
|
-
viewBox: "0 0 1024 1024"
|
|
315
|
-
}, [
|
|
316
|
-
l("path", {
|
|
317
|
-
fill: "currentColor",
|
|
318
|
-
d: "M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64"
|
|
319
|
-
})
|
|
320
|
-
]));
|
|
321
|
-
}
|
|
322
|
-
}), L2 = At, Ot = /* @__PURE__ */ u({
|
|
323
|
-
name: "MoreFilled",
|
|
324
|
-
__name: "more-filled",
|
|
325
|
-
setup(e) {
|
|
326
|
-
return (t, r) => (c(), i("svg", {
|
|
327
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
328
|
-
viewBox: "0 0 1024 1024"
|
|
329
|
-
}, [
|
|
330
|
-
l("path", {
|
|
331
|
-
fill: "currentColor",
|
|
332
|
-
d: "M176 416a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224m336 0a112 112 0 1 1 0 224 112 112 0 0 1 0-224"
|
|
333
|
-
})
|
|
334
|
-
]));
|
|
335
|
-
}
|
|
336
|
-
}), T2 = Ot, Nt = /* @__PURE__ */ u({
|
|
337
|
-
name: "More",
|
|
338
|
-
__name: "more",
|
|
339
|
-
setup(e) {
|
|
340
|
-
return (t, r) => (c(), i("svg", {
|
|
341
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
342
|
-
viewBox: "0 0 1024 1024"
|
|
343
|
-
}, [
|
|
344
|
-
l("path", {
|
|
345
|
-
fill: "currentColor",
|
|
346
|
-
d: "M176 416a112 112 0 1 0 0 224 112 112 0 0 0 0-224m0 64a48 48 0 1 1 0 96 48 48 0 0 1 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96m336-64a112 112 0 1 1 0 224 112 112 0 0 1 0-224m0 64a48 48 0 1 0 0 96 48 48 0 0 0 0-96"
|
|
347
|
-
})
|
|
348
|
-
]));
|
|
349
|
-
}
|
|
350
|
-
}), F2 = Nt, zt = /* @__PURE__ */ u({
|
|
351
|
-
name: "Plus",
|
|
352
|
-
__name: "plus",
|
|
353
|
-
setup(e) {
|
|
354
|
-
return (t, r) => (c(), i("svg", {
|
|
355
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
356
|
-
viewBox: "0 0 1024 1024"
|
|
357
|
-
}, [
|
|
358
|
-
l("path", {
|
|
359
|
-
fill: "currentColor",
|
|
360
|
-
d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
|
|
361
|
-
})
|
|
362
|
-
]));
|
|
363
|
-
}
|
|
364
|
-
}), I2 = zt, Mt = /* @__PURE__ */ u({
|
|
365
|
-
name: "QuestionFilled",
|
|
366
|
-
__name: "question-filled",
|
|
367
|
-
setup(e) {
|
|
368
|
-
return (t, r) => (c(), i("svg", {
|
|
369
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
370
|
-
viewBox: "0 0 1024 1024"
|
|
371
|
-
}, [
|
|
372
|
-
l("path", {
|
|
373
|
-
fill: "currentColor",
|
|
374
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m23.744 191.488c-52.096 0-92.928 14.784-123.2 44.352-30.976 29.568-45.76 70.4-45.76 122.496h80.256c0-29.568 5.632-52.8 17.6-68.992 13.376-19.712 35.2-28.864 66.176-28.864 23.936 0 42.944 6.336 56.32 19.712 12.672 13.376 19.712 31.68 19.712 54.912 0 17.6-6.336 34.496-19.008 49.984l-8.448 9.856c-45.76 40.832-73.216 70.4-82.368 89.408-9.856 19.008-14.08 42.24-14.08 68.992v9.856h80.96v-9.856c0-16.896 3.52-31.68 10.56-45.76 6.336-12.672 15.488-24.64 28.16-35.2 33.792-29.568 54.208-48.576 60.544-55.616 16.896-22.528 26.048-51.392 26.048-86.592 0-42.944-14.08-76.736-42.24-101.376-28.16-25.344-65.472-37.312-111.232-37.312zm-12.672 406.208a54.272 54.272 0 0 0-38.72 14.784 49.408 49.408 0 0 0-15.488 38.016c0 15.488 4.928 28.16 15.488 38.016A54.848 54.848 0 0 0 523.072 768c15.488 0 28.16-4.928 38.72-14.784a51.52 51.52 0 0 0 16.192-38.72 51.968 51.968 0 0 0-15.488-38.016 55.936 55.936 0 0 0-39.424-14.784z"
|
|
375
|
-
})
|
|
376
|
-
]));
|
|
377
|
-
}
|
|
378
|
-
}), S2 = Mt, Bt = /* @__PURE__ */ u({
|
|
379
|
-
name: "Right",
|
|
380
|
-
__name: "right",
|
|
381
|
-
setup(e) {
|
|
382
|
-
return (t, r) => (c(), i("svg", {
|
|
383
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
384
|
-
viewBox: "0 0 1024 1024"
|
|
385
|
-
}, [
|
|
386
|
-
l("path", {
|
|
387
|
-
fill: "currentColor",
|
|
388
|
-
d: "M754.752 480H160a32 32 0 1 0 0 64h594.752L521.344 777.344a32 32 0 0 0 45.312 45.312l288-288a32 32 0 0 0 0-45.312l-288-288a32 32 0 1 0-45.312 45.312z"
|
|
389
|
-
})
|
|
390
|
-
]));
|
|
391
|
-
}
|
|
392
|
-
}), P2 = Bt, Ut = /* @__PURE__ */ u({
|
|
393
|
-
name: "SuccessFilled",
|
|
394
|
-
__name: "success-filled",
|
|
395
|
-
setup(e) {
|
|
396
|
-
return (t, r) => (c(), i("svg", {
|
|
397
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
398
|
-
viewBox: "0 0 1024 1024"
|
|
399
|
-
}, [
|
|
400
|
-
l("path", {
|
|
401
|
-
fill: "currentColor",
|
|
402
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.272 38.272 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
|
|
403
|
-
})
|
|
404
|
-
]));
|
|
405
|
-
}
|
|
406
|
-
}), xe = Ut, Rt = /* @__PURE__ */ u({
|
|
407
|
-
name: "UserFilled",
|
|
408
|
-
__name: "user-filled",
|
|
409
|
-
setup(e) {
|
|
410
|
-
return (t, r) => (c(), i("svg", {
|
|
411
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
412
|
-
viewBox: "0 0 1024 1024"
|
|
413
|
-
}, [
|
|
414
|
-
l("path", {
|
|
415
|
-
fill: "currentColor",
|
|
416
|
-
d: "M288 320a224 224 0 1 0 448 0 224 224 0 1 0-448 0m544 608H160a32 32 0 0 1-32-32v-96a160 160 0 0 1 160-160h448a160 160 0 0 1 160 160v96a32 32 0 0 1-32 32z"
|
|
417
|
-
})
|
|
418
|
-
]));
|
|
419
|
-
}
|
|
420
|
-
}), A2 = Rt, Vt = /* @__PURE__ */ u({
|
|
421
|
-
name: "View",
|
|
422
|
-
__name: "view",
|
|
423
|
-
setup(e) {
|
|
424
|
-
return (t, r) => (c(), i("svg", {
|
|
425
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
426
|
-
viewBox: "0 0 1024 1024"
|
|
427
|
-
}, [
|
|
428
|
-
l("path", {
|
|
429
|
-
fill: "currentColor",
|
|
430
|
-
d: "M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288zm0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.192 160.192 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"
|
|
431
|
-
})
|
|
432
|
-
]));
|
|
433
|
-
}
|
|
434
|
-
}), O2 = Vt, Dt = /* @__PURE__ */ u({
|
|
435
|
-
name: "WarningFilled",
|
|
436
|
-
__name: "warning-filled",
|
|
437
|
-
setup(e) {
|
|
438
|
-
return (t, r) => (c(), i("svg", {
|
|
439
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
440
|
-
viewBox: "0 0 1024 1024"
|
|
441
|
-
}, [
|
|
442
|
-
l("path", {
|
|
443
|
-
fill: "currentColor",
|
|
444
|
-
d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.432 58.432 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.432 58.432 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
|
|
445
|
-
})
|
|
446
|
-
]));
|
|
447
|
-
}
|
|
448
|
-
}), Ce = Dt;
|
|
449
|
-
const N2 = Z([
|
|
450
|
-
String,
|
|
451
|
-
Object,
|
|
452
|
-
Function
|
|
453
|
-
]), z2 = {
|
|
454
|
-
Close: he
|
|
455
|
-
}, M2 = {
|
|
456
|
-
Close: he,
|
|
457
|
-
SuccessFilled: xe,
|
|
458
|
-
InfoFilled: ye,
|
|
459
|
-
WarningFilled: Ce,
|
|
460
|
-
CircleCloseFilled: Ee
|
|
461
|
-
}, B2 = {
|
|
462
|
-
success: xe,
|
|
463
|
-
warning: Ce,
|
|
464
|
-
error: Ee,
|
|
465
|
-
info: ye
|
|
466
|
-
}, U2 = {
|
|
467
|
-
validating: Pt,
|
|
468
|
-
success: ht,
|
|
469
|
-
error: Ct
|
|
470
|
-
}, j = Symbol("formContextKey"), be = Symbol("formItemContextKey"), R2 = () => {
|
|
471
|
-
const e = y(j, void 0), t = y(be, void 0);
|
|
472
|
-
return {
|
|
473
|
-
form: e,
|
|
474
|
-
formItem: t
|
|
475
|
-
};
|
|
476
|
-
}, V2 = (e, {
|
|
477
|
-
formItemContext: t,
|
|
478
|
-
disableIdGeneration: r,
|
|
479
|
-
disableIdManagement: a
|
|
480
|
-
}) => {
|
|
481
|
-
r || (r = E(!1)), a || (a = E(!1));
|
|
482
|
-
const s = E();
|
|
483
|
-
let o;
|
|
484
|
-
const d = x(() => {
|
|
485
|
-
var p;
|
|
486
|
-
return !!(!(e.label || e.ariaLabel) && t && t.inputIds && ((p = t.inputIds) == null ? void 0 : p.length) <= 1);
|
|
487
|
-
});
|
|
488
|
-
return z(() => {
|
|
489
|
-
o = A([He(e, "id"), r], ([p, v]) => {
|
|
490
|
-
const f = p ?? (v ? void 0 : Ve().value);
|
|
491
|
-
f !== s.value && (t != null && t.removeInputId && (s.value && t.removeInputId(s.value), !(a != null && a.value) && !v && f && t.addInputId(f)), s.value = f);
|
|
492
|
-
}, { immediate: !0 });
|
|
493
|
-
}), $e(() => {
|
|
494
|
-
o && o(), t != null && t.removeInputId && s.value && t.removeInputId(s.value);
|
|
495
|
-
}), {
|
|
496
|
-
isLabeledByFormItem: d,
|
|
497
|
-
inputId: s
|
|
498
|
-
};
|
|
499
|
-
}, Le = (e) => {
|
|
500
|
-
const t = O();
|
|
501
|
-
return x(() => {
|
|
502
|
-
var r, a;
|
|
503
|
-
return (a = (r = t == null ? void 0 : t.proxy) == null ? void 0 : r.$props) == null ? void 0 : a[e];
|
|
504
|
-
});
|
|
505
|
-
}, D2 = (e, t = {}) => {
|
|
506
|
-
const r = E(void 0), a = t.prop ? r : Le("size"), s = t.global ? r : ot(), o = t.form ? { size: void 0 } : y(j, void 0), d = t.formItem ? { size: void 0 } : y(be, void 0);
|
|
507
|
-
return x(() => a.value || h(e) || (d == null ? void 0 : d.size) || (o == null ? void 0 : o.size) || s.value || "");
|
|
508
|
-
}, K2 = (e) => {
|
|
509
|
-
const t = Le("disabled"), r = y(j, void 0);
|
|
510
|
-
return x(() => t.value || h(e) || (r == null ? void 0 : r.disabled) || !1);
|
|
511
|
-
}, Kt = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])', kt = (e) => process.env.NODE_ENV === "test" ? !0 : getComputedStyle(e).position === "fixed" ? !1 : e.offsetParent !== null, k2 = (e) => Array.from(e.querySelectorAll(Kt)).filter((t) => Te(t) && kt(t)), Te = (e) => {
|
|
512
|
-
if (e.tabIndex > 0 || e.tabIndex === 0 && e.getAttribute("tabIndex") !== null)
|
|
513
|
-
return !0;
|
|
514
|
-
if (e.tabIndex < 0 || e.hasAttribute("disabled") || e.getAttribute("aria-disabled") === "true")
|
|
515
|
-
return !1;
|
|
516
|
-
switch (e.nodeName) {
|
|
517
|
-
case "A":
|
|
518
|
-
return !!e.href && e.rel !== "ignore";
|
|
519
|
-
case "INPUT":
|
|
520
|
-
return !(e.type === "hidden" || e.type === "file");
|
|
521
|
-
case "BUTTON":
|
|
522
|
-
case "SELECT":
|
|
523
|
-
case "TEXTAREA":
|
|
524
|
-
return !0;
|
|
525
|
-
default:
|
|
526
|
-
return !1;
|
|
527
|
-
}
|
|
528
|
-
}, H2 = function(e, t, ...r) {
|
|
529
|
-
let a;
|
|
530
|
-
t.includes("mouse") || t.includes("click") ? a = "MouseEvents" : t.includes("key") ? a = "KeyboardEvent" : a = "HTMLEvents";
|
|
531
|
-
const s = document.createEvent(a);
|
|
532
|
-
return s.initEvent(t, ...r), e.dispatchEvent(s), e;
|
|
533
|
-
}, D = "focus-trap.focus-after-trapped", K = "focus-trap.focus-after-released", Ht = "focus-trap.focusout-prevented", ce = {
|
|
534
|
-
cancelable: !0,
|
|
535
|
-
bubbles: !1
|
|
536
|
-
}, $t = {
|
|
537
|
-
cancelable: !0,
|
|
538
|
-
bubbles: !1
|
|
539
|
-
}, ie = "focusAfterTrapped", _e = "focusAfterReleased", Zt = Symbol("elFocusTrap"), Y = E(), M = E(0), J = E(0);
|
|
540
|
-
let I = 0;
|
|
541
|
-
const Fe = (e) => {
|
|
542
|
-
const t = [], r = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
543
|
-
acceptNode: (a) => {
|
|
544
|
-
const s = a.tagName === "INPUT" && a.type === "hidden";
|
|
545
|
-
return a.disabled || a.hidden || s ? NodeFilter.FILTER_SKIP : a.tabIndex >= 0 || a === document.activeElement ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
546
|
-
}
|
|
547
|
-
});
|
|
548
|
-
for (; r.nextNode(); )
|
|
549
|
-
t.push(r.currentNode);
|
|
550
|
-
return t;
|
|
551
|
-
}, de = (e, t) => {
|
|
552
|
-
for (const r of e)
|
|
553
|
-
if (!qt(r, t))
|
|
554
|
-
return r;
|
|
555
|
-
}, qt = (e, t) => {
|
|
556
|
-
if (process.env.NODE_ENV === "test")
|
|
557
|
-
return !1;
|
|
558
|
-
if (getComputedStyle(e).visibility === "hidden")
|
|
559
|
-
return !0;
|
|
560
|
-
for (; e; ) {
|
|
561
|
-
if (t && e === t)
|
|
562
|
-
return !1;
|
|
563
|
-
if (getComputedStyle(e).display === "none")
|
|
564
|
-
return !0;
|
|
565
|
-
e = e.parentElement;
|
|
566
|
-
}
|
|
567
|
-
return !1;
|
|
568
|
-
}, Wt = (e) => {
|
|
569
|
-
const t = Fe(e), r = de(t, e), a = de(t.reverse(), e);
|
|
570
|
-
return [r, a];
|
|
571
|
-
}, jt = (e) => e instanceof HTMLInputElement && "select" in e, b = (e, t) => {
|
|
572
|
-
if (e && e.focus) {
|
|
573
|
-
const r = document.activeElement;
|
|
574
|
-
let a = !1;
|
|
575
|
-
ae(e) && !Te(e) && !e.getAttribute("tabindex") && (e.setAttribute("tabindex", "-1"), a = !0), e.focus({ preventScroll: !0 }), J.value = window.performance.now(), e !== r && jt(e) && t && e.select(), ae(e) && a && e.removeAttribute("tabindex");
|
|
576
|
-
}
|
|
577
|
-
};
|
|
578
|
-
function pe(e, t) {
|
|
579
|
-
const r = [...e], a = e.indexOf(t);
|
|
580
|
-
return a !== -1 && r.splice(a, 1), r;
|
|
581
|
-
}
|
|
582
|
-
const Yt = () => {
|
|
583
|
-
let e = [];
|
|
584
|
-
return {
|
|
585
|
-
push: (a) => {
|
|
586
|
-
const s = e[0];
|
|
587
|
-
s && a !== s && s.pause(), e = pe(e, a), e.unshift(a);
|
|
588
|
-
},
|
|
589
|
-
remove: (a) => {
|
|
590
|
-
var s, o;
|
|
591
|
-
e = pe(e, a), (o = (s = e[0]) == null ? void 0 : s.resume) == null || o.call(s);
|
|
592
|
-
}
|
|
593
|
-
};
|
|
594
|
-
}, Jt = (e, t = !1) => {
|
|
595
|
-
const r = document.activeElement;
|
|
596
|
-
for (const a of e)
|
|
597
|
-
if (b(a, t), document.activeElement !== r)
|
|
598
|
-
return;
|
|
599
|
-
}, ve = Yt(), Xt = () => M.value > J.value, S = () => {
|
|
600
|
-
Y.value = "pointer", M.value = window.performance.now();
|
|
601
|
-
}, fe = () => {
|
|
602
|
-
Y.value = "keyboard", M.value = window.performance.now();
|
|
603
|
-
}, Qt = () => (z(() => {
|
|
604
|
-
I === 0 && (document.addEventListener("mousedown", S), document.addEventListener("touchstart", S), document.addEventListener("keydown", fe)), I++;
|
|
605
|
-
}), W(() => {
|
|
606
|
-
I--, I <= 0 && (document.removeEventListener("mousedown", S), document.removeEventListener("touchstart", S), document.removeEventListener("keydown", fe));
|
|
607
|
-
}), {
|
|
608
|
-
focusReason: Y,
|
|
609
|
-
lastUserFocusTimestamp: M,
|
|
610
|
-
lastAutomatedFocusTimestamp: J
|
|
611
|
-
}), P = (e) => new CustomEvent(Ht, {
|
|
612
|
-
...$t,
|
|
613
|
-
detail: e
|
|
614
|
-
}), Ie = {
|
|
615
|
-
tab: "Tab",
|
|
616
|
-
enter: "Enter",
|
|
617
|
-
space: "Space",
|
|
618
|
-
left: "ArrowLeft",
|
|
619
|
-
up: "ArrowUp",
|
|
620
|
-
right: "ArrowRight",
|
|
621
|
-
down: "ArrowDown",
|
|
622
|
-
esc: "Escape",
|
|
623
|
-
delete: "Delete",
|
|
624
|
-
backspace: "Backspace",
|
|
625
|
-
numpadEnter: "NumpadEnter",
|
|
626
|
-
pageUp: "PageUp",
|
|
627
|
-
pageDown: "PageDown",
|
|
628
|
-
home: "Home",
|
|
629
|
-
end: "End"
|
|
630
|
-
};
|
|
631
|
-
let T = [];
|
|
632
|
-
const me = (e) => {
|
|
633
|
-
e.code === Ie.esc && T.forEach((t) => t(e));
|
|
634
|
-
}, Gt = (e) => {
|
|
635
|
-
z(() => {
|
|
636
|
-
T.length === 0 && document.addEventListener("keydown", me), k && T.push(e);
|
|
637
|
-
}), W(() => {
|
|
638
|
-
T = T.filter((t) => t !== e), T.length === 0 && k && document.removeEventListener("keydown", me);
|
|
639
|
-
});
|
|
640
|
-
}, e2 = u({
|
|
641
|
-
name: "ElFocusTrap",
|
|
642
|
-
inheritAttrs: !1,
|
|
643
|
-
props: {
|
|
644
|
-
loop: Boolean,
|
|
645
|
-
trapped: Boolean,
|
|
646
|
-
focusTrapEl: Object,
|
|
647
|
-
focusStartEl: {
|
|
648
|
-
type: [Object, String],
|
|
649
|
-
default: "first"
|
|
650
|
-
}
|
|
651
|
-
},
|
|
652
|
-
emits: [
|
|
653
|
-
ie,
|
|
654
|
-
_e,
|
|
655
|
-
"focusin",
|
|
656
|
-
"focusout",
|
|
657
|
-
"focusout-prevented",
|
|
658
|
-
"release-requested"
|
|
659
|
-
],
|
|
660
|
-
setup(e, { emit: t }) {
|
|
661
|
-
const r = E();
|
|
662
|
-
let a, s;
|
|
663
|
-
const { focusReason: o } = Qt();
|
|
664
|
-
Gt((n) => {
|
|
665
|
-
e.trapped && !d.paused && t("release-requested", n);
|
|
666
|
-
});
|
|
667
|
-
const d = {
|
|
668
|
-
paused: !1,
|
|
669
|
-
pause() {
|
|
670
|
-
this.paused = !0;
|
|
671
|
-
},
|
|
672
|
-
resume() {
|
|
673
|
-
this.paused = !1;
|
|
674
|
-
}
|
|
675
|
-
}, p = (n) => {
|
|
676
|
-
if (!e.loop && !e.trapped || d.paused)
|
|
677
|
-
return;
|
|
678
|
-
const { code: _, altKey: m, ctrlKey: w, metaKey: g, currentTarget: G, shiftKey: ee } = n, { loop: te } = e, Se = _ === Ie.tab && !m && !w && !g, F = document.activeElement;
|
|
679
|
-
if (Se && F) {
|
|
680
|
-
const U = G, [R, V] = Wt(U);
|
|
681
|
-
if (R && V) {
|
|
682
|
-
if (!ee && F === V) {
|
|
683
|
-
const C = P({
|
|
684
|
-
focusReason: o.value
|
|
685
|
-
});
|
|
686
|
-
t("focusout-prevented", C), C.defaultPrevented || (n.preventDefault(), te && b(R, !0));
|
|
687
|
-
} else if (ee && [R, U].includes(F)) {
|
|
688
|
-
const C = P({
|
|
689
|
-
focusReason: o.value
|
|
690
|
-
});
|
|
691
|
-
t("focusout-prevented", C), C.defaultPrevented || (n.preventDefault(), te && b(V, !0));
|
|
692
|
-
}
|
|
693
|
-
} else if (F === U) {
|
|
694
|
-
const C = P({
|
|
695
|
-
focusReason: o.value
|
|
696
|
-
});
|
|
697
|
-
t("focusout-prevented", C), C.defaultPrevented || n.preventDefault();
|
|
698
|
-
}
|
|
699
|
-
}
|
|
700
|
-
};
|
|
701
|
-
Ze(Zt, {
|
|
702
|
-
focusTrapRef: r,
|
|
703
|
-
onKeydown: p
|
|
704
|
-
}), A(() => e.focusTrapEl, (n) => {
|
|
705
|
-
n && (r.value = n);
|
|
706
|
-
}, { immediate: !0 }), A([r], ([n], [_]) => {
|
|
707
|
-
n && (n.addEventListener("keydown", p), n.addEventListener("focusin", L), n.addEventListener("focusout", B)), _ && (_.removeEventListener("keydown", p), _.removeEventListener("focusin", L), _.removeEventListener("focusout", B));
|
|
708
|
-
});
|
|
709
|
-
const v = (n) => {
|
|
710
|
-
t(ie, n);
|
|
711
|
-
}, f = (n) => t(_e, n), L = (n) => {
|
|
712
|
-
const _ = h(r);
|
|
713
|
-
if (!_)
|
|
714
|
-
return;
|
|
715
|
-
const m = n.target, w = n.relatedTarget, g = m && _.contains(m);
|
|
716
|
-
e.trapped || w && _.contains(w) || (a = w), g && t("focusin", n), !d.paused && e.trapped && (g ? s = m : b(s, !0));
|
|
717
|
-
}, B = (n) => {
|
|
718
|
-
const _ = h(r);
|
|
719
|
-
if (!(d.paused || !_))
|
|
720
|
-
if (e.trapped) {
|
|
721
|
-
const m = n.relatedTarget;
|
|
722
|
-
!De(m) && !_.contains(m) && setTimeout(() => {
|
|
723
|
-
if (!d.paused && e.trapped) {
|
|
724
|
-
const w = P({
|
|
725
|
-
focusReason: o.value
|
|
726
|
-
});
|
|
727
|
-
t("focusout-prevented", w), w.defaultPrevented || b(s, !0);
|
|
728
|
-
}
|
|
729
|
-
}, 0);
|
|
730
|
-
} else {
|
|
731
|
-
const m = n.target;
|
|
732
|
-
m && _.contains(m) || t("focusout", n);
|
|
733
|
-
}
|
|
734
|
-
};
|
|
735
|
-
async function X() {
|
|
736
|
-
await se();
|
|
737
|
-
const n = h(r);
|
|
738
|
-
if (n) {
|
|
739
|
-
ve.push(d);
|
|
740
|
-
const _ = n.contains(document.activeElement) ? a : document.activeElement;
|
|
741
|
-
if (a = _, !n.contains(_)) {
|
|
742
|
-
const w = new Event(D, ce);
|
|
743
|
-
n.addEventListener(D, v), n.dispatchEvent(w), w.defaultPrevented || se(() => {
|
|
744
|
-
let g = e.focusStartEl;
|
|
745
|
-
Ke(g) || (b(g), document.activeElement !== g && (g = "first")), g === "first" && Jt(Fe(n), !0), (document.activeElement === _ || g === "container") && b(n);
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
}
|
|
749
|
-
}
|
|
750
|
-
function Q() {
|
|
751
|
-
const n = h(r);
|
|
752
|
-
if (n) {
|
|
753
|
-
n.removeEventListener(D, v);
|
|
754
|
-
const _ = new CustomEvent(K, {
|
|
755
|
-
...ce,
|
|
756
|
-
detail: {
|
|
757
|
-
focusReason: o.value
|
|
758
|
-
}
|
|
759
|
-
});
|
|
760
|
-
n.addEventListener(K, f), n.dispatchEvent(_), !_.defaultPrevented && (o.value == "keyboard" || !Xt() || n.contains(document.activeElement)) && b(a ?? document.body), n.removeEventListener(K, f), ve.remove(d);
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
return z(() => {
|
|
764
|
-
e.trapped && X(), A(() => e.trapped, (n) => {
|
|
765
|
-
n ? X() : Q();
|
|
766
|
-
});
|
|
767
|
-
}), W(() => {
|
|
768
|
-
e.trapped && Q(), r.value && (r.value.removeEventListener("keydown", p), r.value.removeEventListener("focusin", L), r.value.removeEventListener("focusout", B), r.value = void 0);
|
|
769
|
-
}), {
|
|
770
|
-
onKeydown: p
|
|
771
|
-
};
|
|
772
|
-
}
|
|
773
|
-
});
|
|
774
|
-
function t2(e, t, r, a, s, o) {
|
|
775
|
-
return N(e.$slots, "default", { handleKeydown: e.onKeydown });
|
|
776
|
-
}
|
|
777
|
-
var $2 = /* @__PURE__ */ q(e2, [["render", t2], ["__file", "focus-trap.vue"]]);
|
|
778
|
-
const r2 = $({
|
|
779
|
-
to: {
|
|
780
|
-
type: Z([String, Object]),
|
|
781
|
-
required: !0
|
|
782
|
-
},
|
|
783
|
-
disabled: Boolean
|
|
784
|
-
}), a2 = /* @__PURE__ */ u({
|
|
785
|
-
__name: "teleport",
|
|
786
|
-
props: r2,
|
|
787
|
-
setup(e) {
|
|
788
|
-
return (t, r) => t.disabled ? N(t.$slots, "default", { key: 0 }) : (c(), qe(We, {
|
|
789
|
-
key: 1,
|
|
790
|
-
to: t.to
|
|
791
|
-
}, [
|
|
792
|
-
N(t.$slots, "default")
|
|
793
|
-
], 8, ["to"]));
|
|
794
|
-
}
|
|
795
|
-
});
|
|
796
|
-
var s2 = /* @__PURE__ */ q(a2, [["__file", "teleport.vue"]]);
|
|
797
|
-
const Z2 = ge(s2);
|
|
798
|
-
export {
|
|
799
|
-
H2 as $,
|
|
800
|
-
T2 as A,
|
|
801
|
-
k2 as B,
|
|
802
|
-
f2 as C,
|
|
803
|
-
$2 as D,
|
|
804
|
-
w2 as E,
|
|
805
|
-
Pt as F,
|
|
806
|
-
ye as G,
|
|
807
|
-
Zt as H,
|
|
808
|
-
m2 as I,
|
|
809
|
-
z2 as J,
|
|
810
|
-
l2 as K,
|
|
811
|
-
Z2 as L,
|
|
812
|
-
p2 as M,
|
|
813
|
-
A2 as N,
|
|
814
|
-
P2 as O,
|
|
815
|
-
x2 as P,
|
|
816
|
-
C2 as Q,
|
|
817
|
-
ot as R,
|
|
818
|
-
nt as S,
|
|
819
|
-
B2 as T,
|
|
820
|
-
v2 as U,
|
|
821
|
-
U2 as V,
|
|
822
|
-
E2 as W,
|
|
823
|
-
h2 as X,
|
|
824
|
-
Ee as Y,
|
|
825
|
-
j as Z,
|
|
826
|
-
be as _,
|
|
827
|
-
he as a,
|
|
828
|
-
F2 as a0,
|
|
829
|
-
Xe as a1,
|
|
830
|
-
ne as a2,
|
|
831
|
-
Te as a3,
|
|
832
|
-
b as a4,
|
|
833
|
-
Ie as b,
|
|
834
|
-
st as c,
|
|
835
|
-
_2 as d,
|
|
836
|
-
R2 as e,
|
|
837
|
-
K2 as f,
|
|
838
|
-
g2 as g,
|
|
839
|
-
y2 as h,
|
|
840
|
-
N2 as i,
|
|
841
|
-
c2 as j,
|
|
842
|
-
ut as k,
|
|
843
|
-
i2 as l,
|
|
844
|
-
L2 as m,
|
|
845
|
-
rt as n,
|
|
846
|
-
d2 as o,
|
|
847
|
-
I2 as p,
|
|
848
|
-
S2 as q,
|
|
849
|
-
V2 as r,
|
|
850
|
-
b2 as s,
|
|
851
|
-
Ct as t,
|
|
852
|
-
D2 as u,
|
|
853
|
-
O2 as v,
|
|
854
|
-
M2 as w,
|
|
855
|
-
Qe as x,
|
|
856
|
-
tt as y,
|
|
857
|
-
at as z
|
|
858
|
-
};
|