st-comp 0.0.143 → 0.0.144
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/es/ChartLayout.js +2 -2
- package/es/ConfigProvider.cjs +1 -1
- package/es/ConfigProvider.js +28 -11
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +22 -24
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +28 -27
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -14
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +24 -25
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +12 -12
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +16 -16
- package/es/Table.cjs +1 -1
- package/es/Table.js +16 -16
- package/es/User.cjs +1 -1
- package/es/User.js +510 -382
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +37 -36
- package/es/VirtualTable.js +10 -10
- package/es/_initCloneObject-14b53c6f.js +81 -0
- package/es/_initCloneObject-441db749.cjs +1 -0
- package/es/{base-3ecbc734.js → base-437d17f3.js} +25 -25
- package/es/{castArray-7d3fc921.js → castArray-4251bbe4.js} +1 -1
- package/es/{config-provider-83904b4d.js → config-provider-55482a43.js} +3 -3
- package/es/{debounce-7344b088.js → debounce-ac30be50.js} +14 -14
- package/es/{dropdown-7da44c8f.js → dropdown-634b5e27.js} +4 -4
- package/es/{dropdown-9a974876.cjs → dropdown-d7c59a21.cjs} +1 -1
- package/es/{el-button-24f79286.js → el-button-e1665717.js} +3 -3
- package/es/el-checkbox-group-492b95cc.cjs +1 -0
- package/es/el-checkbox-group-e8fece80.js +67 -0
- package/es/{el-empty-79c5f7a8.js → el-empty-bacc6613.js} +1 -1
- package/es/el-form-item-5bdffd07.cjs +12 -0
- package/es/el-form-item-af1855f0.js +1262 -0
- package/es/{el-input-6c6f5bda.cjs → el-input-23e2bac3.cjs} +1 -1
- package/es/{el-input-ee7db655.js → el-input-4961b99f.js} +71 -71
- package/es/{el-input-number-0524d787.cjs → el-input-number-40a81eb5.cjs} +1 -1
- package/es/{el-input-number-63c21037.js → el-input-number-610fc8ba.js} +24 -24
- package/es/{el-menu-item-dc904a35.cjs → el-menu-item-78b858f2.cjs} +1 -1
- package/es/{el-menu-item-0d92e7dc.js → el-menu-item-7d04c11a.js} +7 -7
- package/es/{el-message-71aa42ca.js → el-message-c3b3ac96.js} +16 -16
- package/es/{el-message-562e923d.cjs → el-message-d4df8136.cjs} +1 -1
- package/es/{el-overlay-6056c89a.js → el-overlay-12dd9b35.js} +140 -137
- package/es/el-overlay-bc0790a2.cjs +1 -0
- package/es/{el-popover-c8b2456c.js → el-popover-0aa071f2.js} +4 -4
- package/es/{el-popover-8735b1fa.cjs → el-popover-8a77e015.cjs} +1 -1
- package/es/el-popper-50100766.js +2262 -0
- package/es/el-popper-746070ba.cjs +1 -0
- package/es/{el-scrollbar-66f3bb72.js → el-scrollbar-562d0595.js} +11 -11
- package/es/{el-select-5fb7d469.js → el-select-9381b156.js} +55 -55
- package/es/el-select-b162dffc.cjs +1 -0
- package/es/{el-table-column-560db3aa.js → el-table-column-55bffba5.js} +1049 -1124
- package/es/el-table-column-6d761fce.cjs +14 -0
- package/es/el-tag-985d9aff.js +279 -0
- package/es/el-tag-c51a6490.cjs +1 -0
- package/es/{index-68ee64fa.js → index-09e01b1d.js} +7 -7
- package/es/{index-fa07a823.js → index-0cb48e01.js} +81 -78
- package/es/index-39ec9741.js +112 -0
- package/es/index-3bf8d597.cjs +1 -0
- package/es/index-a387515d.cjs +1 -0
- package/es/index-a902a0d9.js +59 -0
- package/es/index-deb8de52.cjs +1 -0
- package/es/{raf-377cf8f5.js → raf-b128c7b7.js} +1 -1
- package/es/{scroll-1efa8148.js → scroll-387fcfdb.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-9c0363ac.js → use-form-common-props-f377e500.js} +30 -30
- package/es/{vnode-cfcdab70.js → vnode-7dfd4ed5.js} +1 -1
- package/es/{zh-cn-4a476dc8.js → zh-cn-eb9c2820.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +141 -141
- package/lib/{index-a992391a.js → index-e7a32fed.js} +12131 -11996
- package/lib/{python-58a62aaf.js → python-ae8d98bd.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/ConfigProvider/index.vue +28 -0
- package/packages/User/index.vue +87 -1
- package/es/el-form-item-7d32befa.cjs +0 -12
- package/es/el-form-item-afc3dcf2.js +0 -1324
- package/es/el-overlay-891dcc40.cjs +0 -1
- package/es/el-popper-d3eef7ed.js +0 -2093
- package/es/el-popper-f62316cd.cjs +0 -1
- package/es/el-select-928f8c19.cjs +0 -1
- package/es/el-table-column-dd8b62aa.cjs +0 -14
- package/es/el-tag-3b03d13e.cjs +0 -1
- package/es/el-tag-6a31c968.js +0 -450
- package/es/event-09e37cc8.js +0 -6
- package/es/event-61f49698.cjs +0 -1
- package/es/index-80a2b137.cjs +0 -1
- package/es/index-a1ecf26c.js +0 -167
- package/es/index-e1e83173.cjs +0 -1
- package/es/refs-46cf8186.js +0 -9
- package/es/refs-d00b710b.cjs +0 -1
package/es/el-tag-6a31c968.js
DELETED
|
@@ -1,450 +0,0 @@
|
|
|
1
|
-
import { U as R, Q as h, R as we, D as j, P as K, V as $e, F as E, W as N, X as L, Y as ce, Z as O, S as W, O as he, E as Oe, $ as le, a0 as ge, K as Pe, a1 as Ee, j as me, s as Se, m as xe } from "./base-3ecbc734.js";
|
|
2
|
-
import { j as pe, g as Le, e as Me, k as Re, i as Ce } from "./el-popper-d3eef7ed.js";
|
|
3
|
-
import { M as Ie } from "./use-form-common-props-9c0363ac.js";
|
|
4
|
-
var De = R(h, "WeakMap");
|
|
5
|
-
const B = De;
|
|
6
|
-
function je(e) {
|
|
7
|
-
return e != null && pe(e.length) && !we(e);
|
|
8
|
-
}
|
|
9
|
-
var Be = Object.prototype;
|
|
10
|
-
function Ue(e) {
|
|
11
|
-
var r = e && e.constructor, t = typeof r == "function" && r.prototype || Be;
|
|
12
|
-
return e === t;
|
|
13
|
-
}
|
|
14
|
-
function Ge(e, r) {
|
|
15
|
-
for (var t = -1, n = Array(e); ++t < e; )
|
|
16
|
-
n[t] = r(t);
|
|
17
|
-
return n;
|
|
18
|
-
}
|
|
19
|
-
function Fe() {
|
|
20
|
-
return !1;
|
|
21
|
-
}
|
|
22
|
-
var de = typeof exports == "object" && exports && !exports.nodeType && exports, Y = de && typeof module == "object" && module && !module.nodeType && module, He = Y && Y.exports === de, Z = He ? h.Buffer : void 0, Ke = Z ? Z.isBuffer : void 0, Ne = Ke || Fe;
|
|
23
|
-
const U = Ne;
|
|
24
|
-
var qe = "[object Arguments]", We = "[object Array]", Ye = "[object Boolean]", Ze = "[object Date]", ze = "[object Error]", Qe = "[object Function]", Xe = "[object Map]", Je = "[object Number]", Ve = "[object Object]", ke = "[object RegExp]", er = "[object Set]", rr = "[object String]", tr = "[object WeakMap]", nr = "[object ArrayBuffer]", ar = "[object DataView]", sr = "[object Float32Array]", ir = "[object Float64Array]", or = "[object Int8Array]", fr = "[object Int16Array]", ur = "[object Int32Array]", cr = "[object Uint8Array]", lr = "[object Uint8ClampedArray]", gr = "[object Uint16Array]", pr = "[object Uint32Array]", u = {};
|
|
25
|
-
u[sr] = u[ir] = u[or] = u[fr] = u[ur] = u[cr] = u[lr] = u[gr] = u[pr] = !0;
|
|
26
|
-
u[qe] = u[We] = u[nr] = u[Ye] = u[ar] = u[Ze] = u[ze] = u[Qe] = u[Xe] = u[Je] = u[Ve] = u[ke] = u[er] = u[rr] = u[tr] = !1;
|
|
27
|
-
function dr(e) {
|
|
28
|
-
return j(e) && pe(e.length) && !!u[K(e)];
|
|
29
|
-
}
|
|
30
|
-
function yr(e) {
|
|
31
|
-
return function(r) {
|
|
32
|
-
return e(r);
|
|
33
|
-
};
|
|
34
|
-
}
|
|
35
|
-
var ye = typeof exports == "object" && exports && !exports.nodeType && exports, P = ye && typeof module == "object" && module && !module.nodeType && module, vr = P && P.exports === ye, I = vr && $e.process, _r = function() {
|
|
36
|
-
try {
|
|
37
|
-
var e = P && P.require && P.require("util").types;
|
|
38
|
-
return e || I && I.binding && I.binding("util");
|
|
39
|
-
} catch {
|
|
40
|
-
}
|
|
41
|
-
}();
|
|
42
|
-
const z = _r;
|
|
43
|
-
var Q = z && z.isTypedArray, Ar = Q ? yr(Q) : dr;
|
|
44
|
-
const ve = Ar;
|
|
45
|
-
var Tr = Object.prototype, br = Tr.hasOwnProperty;
|
|
46
|
-
function wr(e, r) {
|
|
47
|
-
var t = E(e), n = !t && Le(e), s = !t && !n && U(e), a = !t && !n && !s && ve(e), o = t || n || s || a, i = o ? Ge(e.length, String) : [], c = i.length;
|
|
48
|
-
for (var f in e)
|
|
49
|
-
(r || br.call(e, f)) && !(o && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
50
|
-
(f == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
51
|
-
s && (f == "offset" || f == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
52
|
-
a && (f == "buffer" || f == "byteLength" || f == "byteOffset") || // Skip index properties.
|
|
53
|
-
Ie(f, c))) && i.push(f);
|
|
54
|
-
return i;
|
|
55
|
-
}
|
|
56
|
-
function $r(e, r) {
|
|
57
|
-
return function(t) {
|
|
58
|
-
return e(r(t));
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
var hr = $r(Object.keys, Object);
|
|
62
|
-
const Or = hr;
|
|
63
|
-
var Pr = Object.prototype, Er = Pr.hasOwnProperty;
|
|
64
|
-
function mr(e) {
|
|
65
|
-
if (!Ue(e))
|
|
66
|
-
return Or(e);
|
|
67
|
-
var r = [];
|
|
68
|
-
for (var t in Object(e))
|
|
69
|
-
Er.call(e, t) && t != "constructor" && r.push(t);
|
|
70
|
-
return r;
|
|
71
|
-
}
|
|
72
|
-
function _e(e) {
|
|
73
|
-
return je(e) ? wr(e) : mr(e);
|
|
74
|
-
}
|
|
75
|
-
function Sr() {
|
|
76
|
-
this.__data__ = new N(), this.size = 0;
|
|
77
|
-
}
|
|
78
|
-
function xr(e) {
|
|
79
|
-
var r = this.__data__, t = r.delete(e);
|
|
80
|
-
return this.size = r.size, t;
|
|
81
|
-
}
|
|
82
|
-
function Lr(e) {
|
|
83
|
-
return this.__data__.get(e);
|
|
84
|
-
}
|
|
85
|
-
function Mr(e) {
|
|
86
|
-
return this.__data__.has(e);
|
|
87
|
-
}
|
|
88
|
-
var Rr = 200;
|
|
89
|
-
function Cr(e, r) {
|
|
90
|
-
var t = this.__data__;
|
|
91
|
-
if (t instanceof N) {
|
|
92
|
-
var n = t.__data__;
|
|
93
|
-
if (!L || n.length < Rr - 1)
|
|
94
|
-
return n.push([e, r]), this.size = ++t.size, this;
|
|
95
|
-
t = this.__data__ = new ce(n);
|
|
96
|
-
}
|
|
97
|
-
return t.set(e, r), this.size = t.size, this;
|
|
98
|
-
}
|
|
99
|
-
function _(e) {
|
|
100
|
-
var r = this.__data__ = new N(e);
|
|
101
|
-
this.size = r.size;
|
|
102
|
-
}
|
|
103
|
-
_.prototype.clear = Sr;
|
|
104
|
-
_.prototype.delete = xr;
|
|
105
|
-
_.prototype.get = Lr;
|
|
106
|
-
_.prototype.has = Mr;
|
|
107
|
-
_.prototype.set = Cr;
|
|
108
|
-
function Ir(e, r) {
|
|
109
|
-
for (var t = -1, n = e == null ? 0 : e.length, s = 0, a = []; ++t < n; ) {
|
|
110
|
-
var o = e[t];
|
|
111
|
-
r(o, t, e) && (a[s++] = o);
|
|
112
|
-
}
|
|
113
|
-
return a;
|
|
114
|
-
}
|
|
115
|
-
function Dr() {
|
|
116
|
-
return [];
|
|
117
|
-
}
|
|
118
|
-
var jr = Object.prototype, Br = jr.propertyIsEnumerable, X = Object.getOwnPropertySymbols, Ur = X ? function(e) {
|
|
119
|
-
return e == null ? [] : (e = Object(e), Ir(X(e), function(r) {
|
|
120
|
-
return Br.call(e, r);
|
|
121
|
-
}));
|
|
122
|
-
} : Dr;
|
|
123
|
-
const Gr = Ur;
|
|
124
|
-
function Fr(e, r, t) {
|
|
125
|
-
var n = r(e);
|
|
126
|
-
return E(e) ? n : Me(n, t(e));
|
|
127
|
-
}
|
|
128
|
-
function J(e) {
|
|
129
|
-
return Fr(e, _e, Gr);
|
|
130
|
-
}
|
|
131
|
-
var Hr = R(h, "DataView");
|
|
132
|
-
const G = Hr;
|
|
133
|
-
var Kr = R(h, "Promise");
|
|
134
|
-
const F = Kr;
|
|
135
|
-
var Nr = R(h, "Set");
|
|
136
|
-
const H = Nr;
|
|
137
|
-
var V = "[object Map]", qr = "[object Object]", k = "[object Promise]", ee = "[object Set]", re = "[object WeakMap]", te = "[object DataView]", Wr = O(G), Yr = O(L), Zr = O(F), zr = O(H), Qr = O(B), $ = K;
|
|
138
|
-
(G && $(new G(new ArrayBuffer(1))) != te || L && $(new L()) != V || F && $(F.resolve()) != k || H && $(new H()) != ee || B && $(new B()) != re) && ($ = function(e) {
|
|
139
|
-
var r = K(e), t = r == qr ? e.constructor : void 0, n = t ? O(t) : "";
|
|
140
|
-
if (n)
|
|
141
|
-
switch (n) {
|
|
142
|
-
case Wr:
|
|
143
|
-
return te;
|
|
144
|
-
case Yr:
|
|
145
|
-
return V;
|
|
146
|
-
case Zr:
|
|
147
|
-
return k;
|
|
148
|
-
case zr:
|
|
149
|
-
return ee;
|
|
150
|
-
case Qr:
|
|
151
|
-
return re;
|
|
152
|
-
}
|
|
153
|
-
return r;
|
|
154
|
-
});
|
|
155
|
-
const ne = $;
|
|
156
|
-
var Xr = h.Uint8Array;
|
|
157
|
-
const ae = Xr;
|
|
158
|
-
var Jr = "__lodash_hash_undefined__";
|
|
159
|
-
function Vr(e) {
|
|
160
|
-
return this.__data__.set(e, Jr), this;
|
|
161
|
-
}
|
|
162
|
-
function kr(e) {
|
|
163
|
-
return this.__data__.has(e);
|
|
164
|
-
}
|
|
165
|
-
function M(e) {
|
|
166
|
-
var r = -1, t = e == null ? 0 : e.length;
|
|
167
|
-
for (this.__data__ = new ce(); ++r < t; )
|
|
168
|
-
this.add(e[r]);
|
|
169
|
-
}
|
|
170
|
-
M.prototype.add = M.prototype.push = Vr;
|
|
171
|
-
M.prototype.has = kr;
|
|
172
|
-
function et(e, r) {
|
|
173
|
-
for (var t = -1, n = e == null ? 0 : e.length; ++t < n; )
|
|
174
|
-
if (r(e[t], t, e))
|
|
175
|
-
return !0;
|
|
176
|
-
return !1;
|
|
177
|
-
}
|
|
178
|
-
function rt(e, r) {
|
|
179
|
-
return e.has(r);
|
|
180
|
-
}
|
|
181
|
-
var tt = 1, nt = 2;
|
|
182
|
-
function Ae(e, r, t, n, s, a) {
|
|
183
|
-
var o = t & tt, i = e.length, c = r.length;
|
|
184
|
-
if (i != c && !(o && c > i))
|
|
185
|
-
return !1;
|
|
186
|
-
var f = a.get(e), p = a.get(r);
|
|
187
|
-
if (f && p)
|
|
188
|
-
return f == r && p == e;
|
|
189
|
-
var g = -1, l = !0, y = t & nt ? new M() : void 0;
|
|
190
|
-
for (a.set(e, r), a.set(r, e); ++g < i; ) {
|
|
191
|
-
var d = e[g], v = r[g];
|
|
192
|
-
if (n)
|
|
193
|
-
var A = o ? n(v, d, g, r, e, a) : n(d, v, g, e, r, a);
|
|
194
|
-
if (A !== void 0) {
|
|
195
|
-
if (A)
|
|
196
|
-
continue;
|
|
197
|
-
l = !1;
|
|
198
|
-
break;
|
|
199
|
-
}
|
|
200
|
-
if (y) {
|
|
201
|
-
if (!et(r, function(b, w) {
|
|
202
|
-
if (!rt(y, w) && (d === b || s(d, b, t, n, a)))
|
|
203
|
-
return y.push(w);
|
|
204
|
-
})) {
|
|
205
|
-
l = !1;
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
} else if (!(d === v || s(d, v, t, n, a))) {
|
|
209
|
-
l = !1;
|
|
210
|
-
break;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
return a.delete(e), a.delete(r), l;
|
|
214
|
-
}
|
|
215
|
-
function at(e) {
|
|
216
|
-
var r = -1, t = Array(e.size);
|
|
217
|
-
return e.forEach(function(n, s) {
|
|
218
|
-
t[++r] = [s, n];
|
|
219
|
-
}), t;
|
|
220
|
-
}
|
|
221
|
-
function st(e) {
|
|
222
|
-
var r = -1, t = Array(e.size);
|
|
223
|
-
return e.forEach(function(n) {
|
|
224
|
-
t[++r] = n;
|
|
225
|
-
}), t;
|
|
226
|
-
}
|
|
227
|
-
var it = 1, ot = 2, ft = "[object Boolean]", ut = "[object Date]", ct = "[object Error]", lt = "[object Map]", gt = "[object Number]", pt = "[object RegExp]", dt = "[object Set]", yt = "[object String]", vt = "[object Symbol]", _t = "[object ArrayBuffer]", At = "[object DataView]", se = W ? W.prototype : void 0, D = se ? se.valueOf : void 0;
|
|
228
|
-
function Tt(e, r, t, n, s, a, o) {
|
|
229
|
-
switch (t) {
|
|
230
|
-
case At:
|
|
231
|
-
if (e.byteLength != r.byteLength || e.byteOffset != r.byteOffset)
|
|
232
|
-
return !1;
|
|
233
|
-
e = e.buffer, r = r.buffer;
|
|
234
|
-
case _t:
|
|
235
|
-
return !(e.byteLength != r.byteLength || !a(new ae(e), new ae(r)));
|
|
236
|
-
case ft:
|
|
237
|
-
case ut:
|
|
238
|
-
case gt:
|
|
239
|
-
return he(+e, +r);
|
|
240
|
-
case ct:
|
|
241
|
-
return e.name == r.name && e.message == r.message;
|
|
242
|
-
case pt:
|
|
243
|
-
case yt:
|
|
244
|
-
return e == r + "";
|
|
245
|
-
case lt:
|
|
246
|
-
var i = at;
|
|
247
|
-
case dt:
|
|
248
|
-
var c = n & it;
|
|
249
|
-
if (i || (i = st), e.size != r.size && !c)
|
|
250
|
-
return !1;
|
|
251
|
-
var f = o.get(e);
|
|
252
|
-
if (f)
|
|
253
|
-
return f == r;
|
|
254
|
-
n |= ot, o.set(e, r);
|
|
255
|
-
var p = Ae(i(e), i(r), n, s, a, o);
|
|
256
|
-
return o.delete(e), p;
|
|
257
|
-
case vt:
|
|
258
|
-
if (D)
|
|
259
|
-
return D.call(e) == D.call(r);
|
|
260
|
-
}
|
|
261
|
-
return !1;
|
|
262
|
-
}
|
|
263
|
-
var bt = 1, wt = Object.prototype, $t = wt.hasOwnProperty;
|
|
264
|
-
function ht(e, r, t, n, s, a) {
|
|
265
|
-
var o = t & bt, i = J(e), c = i.length, f = J(r), p = f.length;
|
|
266
|
-
if (c != p && !o)
|
|
267
|
-
return !1;
|
|
268
|
-
for (var g = c; g--; ) {
|
|
269
|
-
var l = i[g];
|
|
270
|
-
if (!(o ? l in r : $t.call(r, l)))
|
|
271
|
-
return !1;
|
|
272
|
-
}
|
|
273
|
-
var y = a.get(e), d = a.get(r);
|
|
274
|
-
if (y && d)
|
|
275
|
-
return y == r && d == e;
|
|
276
|
-
var v = !0;
|
|
277
|
-
a.set(e, r), a.set(r, e);
|
|
278
|
-
for (var A = o; ++g < c; ) {
|
|
279
|
-
l = i[g];
|
|
280
|
-
var b = e[l], w = r[l];
|
|
281
|
-
if (n)
|
|
282
|
-
var q = o ? n(w, b, l, r, e, a) : n(b, w, l, e, r, a);
|
|
283
|
-
if (!(q === void 0 ? b === w || s(b, w, t, n, a) : q)) {
|
|
284
|
-
v = !1;
|
|
285
|
-
break;
|
|
286
|
-
}
|
|
287
|
-
A || (A = l == "constructor");
|
|
288
|
-
}
|
|
289
|
-
if (v && !A) {
|
|
290
|
-
var m = e.constructor, S = r.constructor;
|
|
291
|
-
m != S && "constructor" in e && "constructor" in r && !(typeof m == "function" && m instanceof m && typeof S == "function" && S instanceof S) && (v = !1);
|
|
292
|
-
}
|
|
293
|
-
return a.delete(e), a.delete(r), v;
|
|
294
|
-
}
|
|
295
|
-
var Ot = 1, ie = "[object Arguments]", oe = "[object Array]", x = "[object Object]", Pt = Object.prototype, fe = Pt.hasOwnProperty;
|
|
296
|
-
function Et(e, r, t, n, s, a) {
|
|
297
|
-
var o = E(e), i = E(r), c = o ? oe : ne(e), f = i ? oe : ne(r);
|
|
298
|
-
c = c == ie ? x : c, f = f == ie ? x : f;
|
|
299
|
-
var p = c == x, g = f == x, l = c == f;
|
|
300
|
-
if (l && U(e)) {
|
|
301
|
-
if (!U(r))
|
|
302
|
-
return !1;
|
|
303
|
-
o = !0, p = !1;
|
|
304
|
-
}
|
|
305
|
-
if (l && !p)
|
|
306
|
-
return a || (a = new _()), o || ve(e) ? Ae(e, r, t, n, s, a) : Tt(e, r, c, t, n, s, a);
|
|
307
|
-
if (!(t & Ot)) {
|
|
308
|
-
var y = p && fe.call(e, "__wrapped__"), d = g && fe.call(r, "__wrapped__");
|
|
309
|
-
if (y || d) {
|
|
310
|
-
var v = y ? e.value() : e, A = d ? r.value() : r;
|
|
311
|
-
return a || (a = new _()), s(v, A, t, n, a);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
return l ? (a || (a = new _()), ht(e, r, t, n, s, a)) : !1;
|
|
315
|
-
}
|
|
316
|
-
function C(e, r, t, n, s) {
|
|
317
|
-
return e === r ? !0 : e == null || r == null || !j(e) && !j(r) ? e !== e && r !== r : Et(e, r, t, n, C, s);
|
|
318
|
-
}
|
|
319
|
-
var mt = 1, St = 2;
|
|
320
|
-
function xt(e, r, t, n) {
|
|
321
|
-
var s = t.length, a = s, o = !n;
|
|
322
|
-
if (e == null)
|
|
323
|
-
return !a;
|
|
324
|
-
for (e = Object(e); s--; ) {
|
|
325
|
-
var i = t[s];
|
|
326
|
-
if (o && i[2] ? i[1] !== e[i[0]] : !(i[0] in e))
|
|
327
|
-
return !1;
|
|
328
|
-
}
|
|
329
|
-
for (; ++s < a; ) {
|
|
330
|
-
i = t[s];
|
|
331
|
-
var c = i[0], f = e[c], p = i[1];
|
|
332
|
-
if (o && i[2]) {
|
|
333
|
-
if (f === void 0 && !(c in e))
|
|
334
|
-
return !1;
|
|
335
|
-
} else {
|
|
336
|
-
var g = new _();
|
|
337
|
-
if (n)
|
|
338
|
-
var l = n(f, p, c, e, r, g);
|
|
339
|
-
if (!(l === void 0 ? C(p, f, mt | St, n, g) : l))
|
|
340
|
-
return !1;
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
return !0;
|
|
344
|
-
}
|
|
345
|
-
function Te(e) {
|
|
346
|
-
return e === e && !Oe(e);
|
|
347
|
-
}
|
|
348
|
-
function Lt(e) {
|
|
349
|
-
for (var r = _e(e), t = r.length; t--; ) {
|
|
350
|
-
var n = r[t], s = e[n];
|
|
351
|
-
r[t] = [n, s, Te(s)];
|
|
352
|
-
}
|
|
353
|
-
return r;
|
|
354
|
-
}
|
|
355
|
-
function be(e, r) {
|
|
356
|
-
return function(t) {
|
|
357
|
-
return t == null ? !1 : t[e] === r && (r !== void 0 || e in Object(t));
|
|
358
|
-
};
|
|
359
|
-
}
|
|
360
|
-
function Mt(e) {
|
|
361
|
-
var r = Lt(e);
|
|
362
|
-
return r.length == 1 && r[0][2] ? be(r[0][0], r[0][1]) : function(t) {
|
|
363
|
-
return t === e || xt(t, e, r);
|
|
364
|
-
};
|
|
365
|
-
}
|
|
366
|
-
var Rt = 1, Ct = 2;
|
|
367
|
-
function It(e, r) {
|
|
368
|
-
return le(e) && Te(r) ? be(ge(e), r) : function(t) {
|
|
369
|
-
var n = Pe(t, e);
|
|
370
|
-
return n === void 0 && n === r ? Re(t, e) : C(r, n, Rt | Ct);
|
|
371
|
-
};
|
|
372
|
-
}
|
|
373
|
-
function Dt(e) {
|
|
374
|
-
return function(r) {
|
|
375
|
-
return r == null ? void 0 : r[e];
|
|
376
|
-
};
|
|
377
|
-
}
|
|
378
|
-
function jt(e) {
|
|
379
|
-
return function(r) {
|
|
380
|
-
return Ee(r, e);
|
|
381
|
-
};
|
|
382
|
-
}
|
|
383
|
-
function Bt(e) {
|
|
384
|
-
return le(e) ? Dt(ge(e)) : jt(e);
|
|
385
|
-
}
|
|
386
|
-
function Ht(e) {
|
|
387
|
-
return typeof e == "function" ? e : e == null ? Ce : typeof e == "object" ? E(e) ? It(e[0], e[1]) : Mt(e) : Bt(e);
|
|
388
|
-
}
|
|
389
|
-
function Kt(e, r) {
|
|
390
|
-
return C(e, r);
|
|
391
|
-
}
|
|
392
|
-
const T = /* @__PURE__ */ new Map();
|
|
393
|
-
if (me) {
|
|
394
|
-
let e;
|
|
395
|
-
document.addEventListener("mousedown", (r) => e = r), document.addEventListener("mouseup", (r) => {
|
|
396
|
-
if (e) {
|
|
397
|
-
for (const t of T.values())
|
|
398
|
-
for (const { documentHandler: n } of t)
|
|
399
|
-
n(r, e);
|
|
400
|
-
e = void 0;
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
}
|
|
404
|
-
function ue(e, r) {
|
|
405
|
-
let t = [];
|
|
406
|
-
return Se(r.arg) ? t = r.arg : xe(r.arg) && t.push(r.arg), function(n, s) {
|
|
407
|
-
const a = r.instance.popperRef, o = n.target, i = s == null ? void 0 : s.target, c = !r || !r.instance, f = !o || !i, p = e.contains(o) || e.contains(i), g = e === o, l = t.length && t.some((d) => d == null ? void 0 : d.contains(o)) || t.length && t.includes(i), y = a && (a.contains(o) || a.contains(i));
|
|
408
|
-
c || f || p || g || l || y || r.value(n, s);
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
const Nt = {
|
|
412
|
-
beforeMount(e, r) {
|
|
413
|
-
T.has(e) || T.set(e, []), T.get(e).push({
|
|
414
|
-
documentHandler: ue(e, r),
|
|
415
|
-
bindingFn: r.value
|
|
416
|
-
});
|
|
417
|
-
},
|
|
418
|
-
updated(e, r) {
|
|
419
|
-
T.has(e) || T.set(e, []);
|
|
420
|
-
const t = T.get(e), n = t.findIndex((a) => a.bindingFn === r.oldValue), s = {
|
|
421
|
-
documentHandler: ue(e, r),
|
|
422
|
-
bindingFn: r.value
|
|
423
|
-
};
|
|
424
|
-
n >= 0 ? t.splice(n, 1, s) : t.push(s);
|
|
425
|
-
},
|
|
426
|
-
unmounted(e) {
|
|
427
|
-
T.delete(e);
|
|
428
|
-
}
|
|
429
|
-
};
|
|
430
|
-
export {
|
|
431
|
-
Nt as C,
|
|
432
|
-
_ as S,
|
|
433
|
-
ae as U,
|
|
434
|
-
ne as a,
|
|
435
|
-
Fr as b,
|
|
436
|
-
yr as c,
|
|
437
|
-
U as d,
|
|
438
|
-
J as e,
|
|
439
|
-
Ht as f,
|
|
440
|
-
Gr as g,
|
|
441
|
-
je as h,
|
|
442
|
-
Kt as i,
|
|
443
|
-
Ue as j,
|
|
444
|
-
_e as k,
|
|
445
|
-
wr as l,
|
|
446
|
-
ve as m,
|
|
447
|
-
z as n,
|
|
448
|
-
$r as o,
|
|
449
|
-
Dr as s
|
|
450
|
-
};
|
package/es/event-09e37cc8.js
DELETED
package/es/event-61f49698.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const E="update:modelValue",N="change",T="input";exports.CHANGE_EVENT=N;exports.INPUT_EVENT=T;exports.UPDATE_MODEL_EVENT=E;
|
package/es/index-80a2b137.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),h=require("./el-scrollbar-d1c3e7f7.cjs"),p=require("./base-ec05f348.cjs"),C=require("./use-form-common-props-1b84d8f4.cjs");function g(s,{beforeFocus:a,afterFocus:r,beforeBlur:m,afterBlur:l}={}){const d=e.getCurrentInstance(),{emit:f}=d,n=e.shallowRef(),i=e.ref(!1),o=t=>{p.isFunction(a)&&a(t)||i.value||(i.value=!0,f("focus",t),r==null||r())},c=t=>{var u;p.isFunction(m)&&m(t)||t.relatedTarget&&((u=n.value)!=null&&u.contains(t.relatedTarget))||(i.value=!1,f("blur",t),l==null||l())},v=()=>{var t,u;(t=n.value)!=null&&t.contains(document.activeElement)&&n.value!==document.activeElement||(u=s.value)==null||u.focus()};return e.watch(n,t=>{t&&t.setAttribute("tabindex","-1")}),h.useEventListener(n,"focus",o,!0),h.useEventListener(n,"blur",c,!0),h.useEventListener(n,"click",v,!0),process.env.NODE_ENV==="test"&&e.onMounted(()=>{const t=p.isElement(s.value)?s.value:document.querySelector("input,textarea");t&&(h.useEventListener(t,"focus",o,!0),h.useEventListener(t,"blur",c,!0))}),{isFocused:i,wrapperRef:n,handleFocus:o,handleBlur:c}}const E=s=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(s);function b({afterComposition:s,emit:a}){const r=e.ref(!1),m=n=>{a==null||a("compositionstart",n),r.value=!0},l=n=>{var i;a==null||a("compositionupdate",n);const o=(i=n.target)==null?void 0:i.value,c=o[o.length-1]||"";r.value=!E(c)},d=n=>{a==null||a("compositionend",n),r.value&&(r.value=!1,e.nextTick(()=>s(n)))};return{isComposing:r,handleComposition:n=>{n.type==="compositionend"?d(n):l(n)},handleCompositionStart:m,handleCompositionUpdate:l,handleCompositionEnd:d}}const k=p.buildProps({type:{type:String,values:["primary","success","info","warning","danger"],default:"primary"},closable:Boolean,disableTransitions:Boolean,hit:Boolean,color:String,size:{type:String,values:C.componentSizes},effect:{type:String,values:["dark","light","plain"],default:"light"},round:Boolean}),y={close:s=>s instanceof MouseEvent,click:s=>s instanceof MouseEvent},_=e.defineComponent({name:"ElTag"}),S=e.defineComponent({..._,props:k,emits:y,setup(s,{emit:a}){const r=s,m=C.useFormSize(),l=p.useNamespace("tag"),d=e.computed(()=>{const{type:o,hit:c,effect:v,closable:t,round:u}=r;return[l.b(),l.is("closable",t),l.m(o||"primary"),l.m(m.value),l.m(v),l.is("hit",c),l.is("round",u)]}),f=o=>{a("close",o)},n=o=>{a("click",o)},i=o=>{var c,v,t;(t=(v=(c=o==null?void 0:o.component)==null?void 0:c.subTree)==null?void 0:v.component)!=null&&t.bum&&(o.component.subTree.component.bum=null)};return(o,c)=>o.disableTransitions?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(e.unref(d)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:n},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(C.ElIcon),{key:0,class:e.normalizeClass(e.unref(l).e("close")),onClick:e.withModifiers(f,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(C.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)):(e.openBlock(),e.createBlock(e.Transition,{key:1,name:`${e.unref(l).namespace.value}-zoom-in-center`,appear:"",onVnodeMounted:i},{default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(d)),style:e.normalizeStyle({backgroundColor:o.color}),onClick:n},[e.createElementVNode("span",{class:e.normalizeClass(e.unref(l).e("content"))},[e.renderSlot(o.$slots,"default")],2),o.closable?(e.openBlock(),e.createBlock(e.unref(C.ElIcon),{key:0,class:e.normalizeClass(e.unref(l).e("close")),onClick:e.withModifiers(f,["stop"])},{default:e.withCtx(()=>[e.createVNode(e.unref(C.close_default))]),_:1},8,["class","onClick"])):e.createCommentVNode("v-if",!0)],6)]),_:3},8,["name"]))}});var z=p._export_sfc(S,[["__file","tag.vue"]]);const B=p.withInstall(z);exports.ElTag=B;exports.tagProps=k;exports.useComposition=b;exports.useFocusController=g;
|
package/es/index-a1ecf26c.js
DELETED
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { getCurrentInstance as M, shallowRef as V, ref as F, watch as A, onMounted as I, nextTick as K, defineComponent as N, computed as $, openBlock as h, createElementBlock as D, normalizeClass as v, unref as c, normalizeStyle as E, createElementVNode as g, renderSlot as _, createBlock as b, withModifiers as y, withCtx as k, createVNode as S, createCommentVNode as T, Transition as P } from "vue";
|
|
2
|
-
import { b as C } from "./el-scrollbar-66f3bb72.js";
|
|
3
|
-
import { m as R, h as w, b as q, u as x, _ as L, w as O } from "./base-3ecbc734.js";
|
|
4
|
-
import { c as U, a as j, E as B, K as z } from "./use-form-common-props-9c0363ac.js";
|
|
5
|
-
function se(t, {
|
|
6
|
-
beforeFocus: l,
|
|
7
|
-
afterFocus: i,
|
|
8
|
-
beforeBlur: p,
|
|
9
|
-
afterBlur: s
|
|
10
|
-
} = {}) {
|
|
11
|
-
const d = M(), { emit: m } = d, o = V(), u = F(!1), e = (n) => {
|
|
12
|
-
w(l) && l(n) || u.value || (u.value = !0, m("focus", n), i == null || i());
|
|
13
|
-
}, a = (n) => {
|
|
14
|
-
var r;
|
|
15
|
-
w(p) && p(n) || n.relatedTarget && ((r = o.value) != null && r.contains(n.relatedTarget)) || (u.value = !1, m("blur", n), s == null || s());
|
|
16
|
-
}, f = () => {
|
|
17
|
-
var n, r;
|
|
18
|
-
(n = o.value) != null && n.contains(document.activeElement) && o.value !== document.activeElement || (r = t.value) == null || r.focus();
|
|
19
|
-
};
|
|
20
|
-
return A(o, (n) => {
|
|
21
|
-
n && n.setAttribute("tabindex", "-1");
|
|
22
|
-
}), C(o, "focus", e, !0), C(o, "blur", a, !0), C(o, "click", f, !0), process.env.NODE_ENV === "test" && I(() => {
|
|
23
|
-
const n = R(t.value) ? t.value : document.querySelector("input,textarea");
|
|
24
|
-
n && (C(n, "focus", e, !0), C(n, "blur", a, !0));
|
|
25
|
-
}), {
|
|
26
|
-
isFocused: u,
|
|
27
|
-
wrapperRef: o,
|
|
28
|
-
handleFocus: e,
|
|
29
|
-
handleBlur: a
|
|
30
|
-
};
|
|
31
|
-
}
|
|
32
|
-
const G = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t);
|
|
33
|
-
function te({
|
|
34
|
-
afterComposition: t,
|
|
35
|
-
emit: l
|
|
36
|
-
}) {
|
|
37
|
-
const i = F(!1), p = (o) => {
|
|
38
|
-
l == null || l("compositionstart", o), i.value = !0;
|
|
39
|
-
}, s = (o) => {
|
|
40
|
-
var u;
|
|
41
|
-
l == null || l("compositionupdate", o);
|
|
42
|
-
const e = (u = o.target) == null ? void 0 : u.value, a = e[e.length - 1] || "";
|
|
43
|
-
i.value = !G(a);
|
|
44
|
-
}, d = (o) => {
|
|
45
|
-
l == null || l("compositionend", o), i.value && (i.value = !1, K(() => t(o)));
|
|
46
|
-
};
|
|
47
|
-
return {
|
|
48
|
-
isComposing: i,
|
|
49
|
-
handleComposition: (o) => {
|
|
50
|
-
o.type === "compositionend" ? d(o) : s(o);
|
|
51
|
-
},
|
|
52
|
-
handleCompositionStart: p,
|
|
53
|
-
handleCompositionUpdate: s,
|
|
54
|
-
handleCompositionEnd: d
|
|
55
|
-
};
|
|
56
|
-
}
|
|
57
|
-
const H = q({
|
|
58
|
-
type: {
|
|
59
|
-
type: String,
|
|
60
|
-
values: ["primary", "success", "info", "warning", "danger"],
|
|
61
|
-
default: "primary"
|
|
62
|
-
},
|
|
63
|
-
closable: Boolean,
|
|
64
|
-
disableTransitions: Boolean,
|
|
65
|
-
hit: Boolean,
|
|
66
|
-
color: String,
|
|
67
|
-
size: {
|
|
68
|
-
type: String,
|
|
69
|
-
values: U
|
|
70
|
-
},
|
|
71
|
-
effect: {
|
|
72
|
-
type: String,
|
|
73
|
-
values: ["dark", "light", "plain"],
|
|
74
|
-
default: "light"
|
|
75
|
-
},
|
|
76
|
-
round: Boolean
|
|
77
|
-
}), J = {
|
|
78
|
-
close: (t) => t instanceof MouseEvent,
|
|
79
|
-
click: (t) => t instanceof MouseEvent
|
|
80
|
-
}, Q = N({
|
|
81
|
-
name: "ElTag"
|
|
82
|
-
}), W = /* @__PURE__ */ N({
|
|
83
|
-
...Q,
|
|
84
|
-
props: H,
|
|
85
|
-
emits: J,
|
|
86
|
-
setup(t, { emit: l }) {
|
|
87
|
-
const i = t, p = j(), s = x("tag"), d = $(() => {
|
|
88
|
-
const { type: e, hit: a, effect: f, closable: n, round: r } = i;
|
|
89
|
-
return [
|
|
90
|
-
s.b(),
|
|
91
|
-
s.is("closable", n),
|
|
92
|
-
s.m(e || "primary"),
|
|
93
|
-
s.m(p.value),
|
|
94
|
-
s.m(f),
|
|
95
|
-
s.is("hit", a),
|
|
96
|
-
s.is("round", r)
|
|
97
|
-
];
|
|
98
|
-
}), m = (e) => {
|
|
99
|
-
l("close", e);
|
|
100
|
-
}, o = (e) => {
|
|
101
|
-
l("click", e);
|
|
102
|
-
}, u = (e) => {
|
|
103
|
-
var a, f, n;
|
|
104
|
-
(n = (f = (a = e == null ? void 0 : e.component) == null ? void 0 : a.subTree) == null ? void 0 : f.component) != null && n.bum && (e.component.subTree.component.bum = null);
|
|
105
|
-
};
|
|
106
|
-
return (e, a) => e.disableTransitions ? (h(), D("span", {
|
|
107
|
-
key: 0,
|
|
108
|
-
class: v(c(d)),
|
|
109
|
-
style: E({ backgroundColor: e.color }),
|
|
110
|
-
onClick: o
|
|
111
|
-
}, [
|
|
112
|
-
g("span", {
|
|
113
|
-
class: v(c(s).e("content"))
|
|
114
|
-
}, [
|
|
115
|
-
_(e.$slots, "default")
|
|
116
|
-
], 2),
|
|
117
|
-
e.closable ? (h(), b(c(B), {
|
|
118
|
-
key: 0,
|
|
119
|
-
class: v(c(s).e("close")),
|
|
120
|
-
onClick: y(m, ["stop"])
|
|
121
|
-
}, {
|
|
122
|
-
default: k(() => [
|
|
123
|
-
S(c(z))
|
|
124
|
-
]),
|
|
125
|
-
_: 1
|
|
126
|
-
}, 8, ["class", "onClick"])) : T("v-if", !0)
|
|
127
|
-
], 6)) : (h(), b(P, {
|
|
128
|
-
key: 1,
|
|
129
|
-
name: `${c(s).namespace.value}-zoom-in-center`,
|
|
130
|
-
appear: "",
|
|
131
|
-
onVnodeMounted: u
|
|
132
|
-
}, {
|
|
133
|
-
default: k(() => [
|
|
134
|
-
g("span", {
|
|
135
|
-
class: v(c(d)),
|
|
136
|
-
style: E({ backgroundColor: e.color }),
|
|
137
|
-
onClick: o
|
|
138
|
-
}, [
|
|
139
|
-
g("span", {
|
|
140
|
-
class: v(c(s).e("content"))
|
|
141
|
-
}, [
|
|
142
|
-
_(e.$slots, "default")
|
|
143
|
-
], 2),
|
|
144
|
-
e.closable ? (h(), b(c(B), {
|
|
145
|
-
key: 0,
|
|
146
|
-
class: v(c(s).e("close")),
|
|
147
|
-
onClick: y(m, ["stop"])
|
|
148
|
-
}, {
|
|
149
|
-
default: k(() => [
|
|
150
|
-
S(c(z))
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 8, ["class", "onClick"])) : T("v-if", !0)
|
|
154
|
-
], 6)
|
|
155
|
-
]),
|
|
156
|
-
_: 3
|
|
157
|
-
}, 8, ["name"]));
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
var X = /* @__PURE__ */ L(W, [["__file", "tag.vue"]]);
|
|
161
|
-
const le = O(X);
|
|
162
|
-
export {
|
|
163
|
-
le as E,
|
|
164
|
-
te as a,
|
|
165
|
-
H as t,
|
|
166
|
-
se as u
|
|
167
|
-
};
|
package/es/index-e1e83173.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const r=require("vue"),f=require("./base-ec05f348.cjs");function Q(e){return e===void 0}const Z='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',ee=e=>process.env.NODE_ENV==="test"?!0:getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,te=e=>Array.from(e.querySelectorAll(Z)).filter(t=>O(t)&&ee(t)),O=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.tabIndex<0||e.hasAttribute("disabled")||e.getAttribute("aria-disabled")==="true")return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}},ne=function(e,t,...s){let o;t.includes("mouse")||t.includes("click")?o="MouseEvents":t.includes("key")?o="KeyboardEvent":o="HTMLEvents";const c=document.createEvent(o);return c.initEvent(t,...s),e.dispatchEvent(c),e},A="focus-trap.focus-after-trapped",C="focus-trap.focus-after-released",oe="focus-trap.focusout-prevented",$={cancelable:!0,bubbles:!1},se={cancelable:!0,bubbles:!1},H="focusAfterTrapped",M="focusAfterReleased",X=Symbol("elFocusTrap"),N=r.ref(),h=r.ref(0),R=r.ref(0);let F=0;const z=e=>{const t=[],s=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{const c=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||c?NodeFilter.FILTER_SKIP:o.tabIndex>=0||o===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;s.nextNode();)t.push(s.currentNode);return t},q=(e,t)=>{for(const s of e)if(!re(s,t))return s},re=(e,t)=>{if(process.env.NODE_ENV==="test")return!1;if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1},ue=e=>{const t=z(e),s=q(t,e),o=q(t.reverse(),e);return[s,o]},ce=e=>e instanceof HTMLInputElement&&"select"in e,p=(e,t)=>{if(e&&e.focus){const s=document.activeElement;let o=!1;f.isElement(e)&&!O(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),o=!0),e.focus({preventScroll:!0}),R.value=window.performance.now(),e!==s&&ce(e)&&t&&e.select(),f.isElement(e)&&o&&e.removeAttribute("tabindex")}};function j(e,t){const s=[...e],o=e.indexOf(t);return o!==-1&&s.splice(o,1),s}const ae=()=>{let e=[];return{push:o=>{const c=e[0];c&&o!==c&&c.pause(),e=j(e,o),e.unshift(o)},remove:o=>{var c,l;e=j(e,o),(l=(c=e[0])==null?void 0:c.resume)==null||l.call(c)}}},ie=(e,t=!1)=>{const s=document.activeElement;for(const o of e)if(p(o,t),document.activeElement!==s)return},J=ae(),de=()=>h.value>R.value,_=()=>{N.value="pointer",h.value=window.performance.now()},W=()=>{N.value="keyboard",h.value=window.performance.now()},fe=()=>(r.onMounted(()=>{F===0&&(document.addEventListener("mousedown",_),document.addEventListener("touchstart",_),document.addEventListener("keydown",W)),F++}),r.onBeforeUnmount(()=>{F--,F<=0&&(document.removeEventListener("mousedown",_),document.removeEventListener("touchstart",_),document.removeEventListener("keydown",W))}),{focusReason:N,lastUserFocusTimestamp:h,lastAutomatedFocusTimestamp:R}),y=e=>new CustomEvent(oe,{...se,detail:e}),U={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"};let b=[];const Y=e=>{e.code===U.esc&&b.forEach(t=>t(e))},le=e=>{r.onMounted(()=>{b.length===0&&document.addEventListener("keydown",Y),f.isClient&&b.push(e)}),r.onBeforeUnmount(()=>{b=b.filter(t=>t!==e),b.length===0&&f.isClient&&document.removeEventListener("keydown",Y)})},pe=r.defineComponent({name:"ElFocusTrap",inheritAttrs:!1,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[H,M,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:t}){const s=r.ref();let o,c;const{focusReason:l}=fe();le(n=>{e.trapped&&!v.paused&&t("release-requested",n)});const v={paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}},T=n=>{if(!e.loop&&!e.trapped||v.paused)return;const{code:u,altKey:a,ctrlKey:i,metaKey:d,currentTarget:K,shiftKey:B}=n,{loop:V}=e,G=u===U.tab&&!a&&!i&&!d,m=document.activeElement;if(G&&m){const w=K,[P,L]=ue(w);if(P&&L){if(!B&&m===L){const E=y({focusReason:l.value});t("focusout-prevented",E),E.defaultPrevented||(n.preventDefault(),V&&p(P,!0))}else if(B&&[P,w].includes(m)){const E=y({focusReason:l.value});t("focusout-prevented",E),E.defaultPrevented||(n.preventDefault(),V&&p(L,!0))}}else if(m===w){const E=y({focusReason:l.value});t("focusout-prevented",E),E.defaultPrevented||n.preventDefault()}}};r.provide(X,{focusTrapRef:s,onKeydown:T}),r.watch(()=>e.focusTrapEl,n=>{n&&(s.value=n)},{immediate:!0}),r.watch([s],([n],[u])=>{n&&(n.addEventListener("keydown",T),n.addEventListener("focusin",S),n.addEventListener("focusout",g)),u&&(u.removeEventListener("keydown",T),u.removeEventListener("focusin",S),u.removeEventListener("focusout",g))});const k=n=>{t(H,n)},I=n=>t(M,n),S=n=>{const u=r.unref(s);if(!u)return;const a=n.target,i=n.relatedTarget,d=a&&u.contains(a);e.trapped||i&&u.contains(i)||(o=i),d&&t("focusin",n),!v.paused&&e.trapped&&(d?c=a:p(c,!0))},g=n=>{const u=r.unref(s);if(!(v.paused||!u))if(e.trapped){const a=n.relatedTarget;!f.isNil(a)&&!u.contains(a)&&setTimeout(()=>{if(!v.paused&&e.trapped){const i=y({focusReason:l.value});t("focusout-prevented",i),i.defaultPrevented||p(c,!0)}},0)}else{const a=n.target;a&&u.contains(a)||t("focusout",n)}};async function D(){await r.nextTick();const n=r.unref(s);if(n){J.push(v);const u=n.contains(document.activeElement)?o:document.activeElement;if(o=u,!n.contains(u)){const i=new Event(A,$);n.addEventListener(A,k),n.dispatchEvent(i),i.defaultPrevented||r.nextTick(()=>{let d=e.focusStartEl;f.isString(d)||(p(d),document.activeElement!==d&&(d="first")),d==="first"&&ie(z(n),!0),(document.activeElement===u||d==="container")&&p(n)})}}}function x(){const n=r.unref(s);if(n){n.removeEventListener(A,k);const u=new CustomEvent(C,{...$,detail:{focusReason:l.value}});n.addEventListener(C,I),n.dispatchEvent(u),!u.defaultPrevented&&(l.value=="keyboard"||!de()||n.contains(document.activeElement))&&p(o??document.body),n.removeEventListener(C,I),J.remove(v)}}return r.onMounted(()=>{e.trapped&&D(),r.watch(()=>e.trapped,n=>{n?D():x()})}),r.onBeforeUnmount(()=>{e.trapped&&x(),s.value&&(s.value.removeEventListener("keydown",T),s.value.removeEventListener("focusin",S),s.value.removeEventListener("focusout",g),s.value=void 0)}),{onKeydown:T}}});function Ee(e,t,s,o,c,l){return r.renderSlot(e.$slots,"default",{handleKeydown:e.onKeydown})}var ve=f._export_sfc(pe,[["render",Ee],["__file","focus-trap.vue"]]);const be=f.buildProps({to:{type:f.definePropType([String,Object]),required:!0},disabled:Boolean}),Te=r.defineComponent({__name:"teleport",props:be,setup(e){return(t,s)=>t.disabled?r.renderSlot(t.$slots,"default",{key:0}):(r.openBlock(),r.createBlock(r.Teleport,{key:1,to:t.to},[r.renderSlot(t.$slots,"default")],8,["to"]))}});var me=f._export_sfc(Te,[["__file","teleport.vue"]]);const Fe=f.withInstall(me);exports.EVENT_CODE=U;exports.ElFocusTrap=ve;exports.ElTeleport=Fe;exports.FOCUS_TRAP_INJECTION_KEY=X;exports.isFocusable=O;exports.isUndefined=Q;exports.obtainAllFocusableElements=te;exports.triggerEvent=ne;exports.tryFocus=p;
|
package/es/refs-46cf8186.js
DELETED
package/es/refs-d00b710b.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const c=require("./base-ec05f348.cjs"),t=(...o)=>e=>{o.forEach(s=>{c.isFunction(s)?s(e):s.value=e})};exports.composeRefs=t;
|