st-comp 0.0.262 → 0.0.263
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 +4 -4
- package/es/CustomFunction.js +31 -31
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +37 -36
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +839 -1593
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +1198 -1
- package/es/KlineConfig.js +89 -89
- package/es/KlineNew.js +17 -17
- package/es/KlinePlus.js +20 -20
- package/es/MonacoEditor.js +25 -25
- package/es/Pagination.js +113 -113
- package/es/PasswordPrompt.js +3 -3
- package/es/Table.js +29 -29
- package/es/User.js +25 -25
- package/es/VarSelectDialog.cjs +1 -1
- package/es/VarSelectDialog.js +27 -27
- package/es/VarietyAiHelper.js +27 -27
- package/es/VarietyAutoComplete.js +11 -11
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +55 -54
- package/es/{VarietySelect-faef4799.js → VarietySelect-9f267958.js} +4 -4
- package/es/VarietyTextCopy.js +13 -13
- package/es/VirtualTable.js +74 -74
- package/es/{_initCloneObject-009eedf8.js → _initCloneObject-69c8ae23.js} +7 -7
- package/es/{base-7ff209fc.js → base-29f73b05.js} +40 -40
- package/es/{castArray-b9f1609f.js → castArray-609a313e.js} +1 -1
- package/es/{config-provider-071b8bec.js → config-provider-7860903c.js} +6 -6
- package/es/{debounce-23c2f7e1.js → debounce-a09ce9a3.js} +1 -1
- package/es/{dropdown-9941f401.js → dropdown-497442b7.js} +4 -4
- package/es/{el-autocomplete-43f205b0.js → el-autocomplete-27c60cc8.js} +17 -17
- package/es/{el-button-7f58608d.js → el-button-e2c63c08.js} +33 -33
- package/es/{el-checkbox-40664b27.js → el-checkbox-71ebd862.js} +17 -17
- package/es/el-checkbox-group-0ea8fbf8.cjs +1 -0
- package/es/el-checkbox-group-4ed993c7.js +1 -0
- package/es/{el-dialog-2f10a2f4.js → el-dialog-eedcfd3e.js} +15 -15
- package/es/{el-divider-4e66c835.js → el-divider-523e5874.js} +1 -1
- package/es/{el-empty-e0d826de.js → el-empty-f5a1607a.js} +5 -5
- package/es/{el-form-item-2b68cdf5.js → el-form-item-bdcfd297.js} +36 -36
- package/es/{el-input-31a818d4.js → el-input-d47281da.js} +36 -36
- package/es/{el-checkbox-group-f775e73f.cjs → el-input-number-3d94fa58.cjs} +1 -1
- package/es/{el-checkbox-group-3ddad0d7.js → el-input-number-c8018cb1.js} +34 -34
- package/es/{el-loading-3e350f5e.js → el-loading-0cd81d05.js} +5 -5
- package/es/el-menu-item-26071fd6.cjs +1 -0
- package/es/el-menu-item-dac65bb3.js +769 -0
- package/es/{el-message-box-a3aa9b89.js → el-message-box-fea4fca8.js} +11 -11
- package/es/{el-overlay-4e9a99e0.js → el-overlay-1ee0338d.js} +59 -59
- package/es/{el-popconfirm-c2896741.js → el-popconfirm-089b8bec.js} +12 -12
- package/es/{el-popper-003b3af7.js → el-popper-c9b3d3cf.js} +177 -177
- package/es/{el-segmented-4ae54e6a.js → el-segmented-9d3a9e11.js} +8 -8
- package/es/{el-select-19ee0e79.js → el-select-e51e11c1.js} +65 -65
- package/es/{el-table-column-3be856d7.js → el-table-column-05d292a8.js} +16 -16
- package/es/{el-tag-19cc5b59.js → el-tag-17cd04a1.js} +14 -14
- package/es/{el-text-9a7a4f0f.js → el-text-2710fff3.js} +2 -2
- package/es/{index-6917da9d.js → index-0ee486ad.js} +43 -43
- package/es/{index-19ac550e.js → index-0f79095c.js} +49 -49
- package/es/{index-308aab33.js → index-1d9b50de.js} +34 -34
- package/es/{index-d898531c.js → index-8391a3df.js} +37 -37
- package/es/{index-41dd5a1c.js → index-8a54ceeb.js} +10 -10
- package/es/{index-b56d81e8.js → index-95e5d454.js} +3 -3
- package/es/{index-f3799536.js → index-b0117ba2.js} +2 -2
- package/es/{index-6d530e54.js → index-bcd895a0.js} +13 -13
- package/es/{index-e17987ac.js → index-c2b9bbfd.js} +30 -30
- package/es/{index-808db9b4.js → index-c71e37dc.js} +11 -11
- package/es/{index-f402d1da.js → index-de24705f.js} +1 -1
- package/es/{index-99abf4ff.js → index-f30561d3.js} +17 -17
- package/es/{python-be79c7c1.js → python-99011a53.js} +25 -25
- package/es/raf-744cf95a.js +6 -0
- package/es/{scroll-8642151c.js → scroll-6799bafc.js} +5 -5
- package/es/style.css +1 -1
- package/es/{use-form-common-props-d170ccfd.js → use-form-common-props-cb0ca65c.js} +72 -72
- package/es/{use-global-config-74436b92.js → use-global-config-cdaeca54.js} +14 -14
- package/es/{validator-672bad4a.js → validator-4ab9774f.js} +1 -1
- package/es/{vnode-6d2615f0.js → vnode-a83e6de8.js} +1 -1
- package/es/{zh-cn-ed10eeb1.js → zh-cn-8a6390a4.js} +2 -2
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-c3ddbee7.js → index-0969ca9d.js} +784 -783
- package/lib/{python-da8fd227.js → python-506107bf.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/KlineBasic/index.vue +1 -1
- package/es/raf-ba3dfafe.js +0 -6
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { getCurrentInstance as Ae, inject as Te, ref as
|
|
2
|
-
import { b as be,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
var he = L(
|
|
1
|
+
import { getCurrentInstance as Ae, inject as Te, ref as V, computed as H } from "vue";
|
|
2
|
+
import { b as be, e as Oe, x as I, j as le } from "./base-29f73b05.js";
|
|
3
|
+
import { n as L, r as w, d as we, a as R, b as N, o as $e, c as h, L as K, M as j, p as ce, q as $, S as z, e as me } from "./index-8391a3df.js";
|
|
4
|
+
import { z as pe, p as Pe, n as Ee, q as Se } from "./use-form-common-props-cb0ca65c.js";
|
|
5
|
+
var he = L(w, "WeakMap");
|
|
6
6
|
const D = he;
|
|
7
7
|
function je(e) {
|
|
8
|
-
return e != null && pe(e.length) && !
|
|
8
|
+
return e != null && pe(e.length) && !we(e);
|
|
9
9
|
}
|
|
10
10
|
var xe = Object.prototype;
|
|
11
11
|
function Le(e) {
|
|
@@ -20,11 +20,11 @@ function Ce(e, r) {
|
|
|
20
20
|
function Me() {
|
|
21
21
|
return !1;
|
|
22
22
|
}
|
|
23
|
-
var ge = typeof exports == "object" && exports && !exports.nodeType && exports, W = ge && typeof module == "object" && module && !module.nodeType && module, Ie = W && W.exports === ge, Y = Ie ?
|
|
23
|
+
var ge = typeof exports == "object" && exports && !exports.nodeType && exports, W = ge && typeof module == "object" && module && !module.nodeType && module, Ie = W && W.exports === ge, Y = Ie ? w.Buffer : void 0, Re = Y ? Y.isBuffer : void 0, De = Re || Me;
|
|
24
24
|
const U = De;
|
|
25
|
-
var Ue = "[object Arguments]", Be = "[object Array]", Fe = "[object Boolean]", Ge = "[object Date]", Ne = "[object Error]", Ke = "[object Function]",
|
|
25
|
+
var Ue = "[object Arguments]", Be = "[object Array]", Fe = "[object Boolean]", Ge = "[object Date]", Ne = "[object Error]", Ke = "[object Function]", qe = "[object Map]", Ve = "[object Number]", He = "[object Object]", ze = "[object RegExp]", We = "[object Set]", Ye = "[object String]", Ze = "[object WeakMap]", Je = "[object ArrayBuffer]", Qe = "[object DataView]", Xe = "[object Float32Array]", ke = "[object Float64Array]", er = "[object Int8Array]", rr = "[object Int16Array]", tr = "[object Int32Array]", nr = "[object Uint8Array]", ar = "[object Uint8ClampedArray]", sr = "[object Uint16Array]", ir = "[object Uint32Array]", i = {};
|
|
26
26
|
i[Xe] = i[ke] = i[er] = i[rr] = i[tr] = i[nr] = i[ar] = i[sr] = i[ir] = !0;
|
|
27
|
-
i[Ue] = i[Be] = i[Je] = i[Fe] = i[Qe] = i[Ge] = i[Ne] = i[Ke] = i[
|
|
27
|
+
i[Ue] = i[Be] = i[Je] = i[Fe] = i[Qe] = i[Ge] = i[Ne] = i[Ke] = i[qe] = i[Ve] = i[He] = i[ze] = i[We] = i[Ye] = i[Ze] = !1;
|
|
28
28
|
function or(e) {
|
|
29
29
|
return R(e) && pe(e.length) && !!i[N(e)];
|
|
30
30
|
}
|
|
@@ -33,9 +33,9 @@ function ur(e) {
|
|
|
33
33
|
return e(r);
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
var de = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
36
|
+
var de = typeof exports == "object" && exports && !exports.nodeType && exports, m = de && typeof module == "object" && module && !module.nodeType && module, fr = m && m.exports === de, C = fr && $e.process, lr = function() {
|
|
37
37
|
try {
|
|
38
|
-
var e =
|
|
38
|
+
var e = m && m.require && m.require("util").types;
|
|
39
39
|
return e || C && C.binding && C.binding("util");
|
|
40
40
|
} catch {
|
|
41
41
|
}
|
|
@@ -73,14 +73,14 @@ function br(e) {
|
|
|
73
73
|
function Or(e) {
|
|
74
74
|
return je(e) ? dr(e) : br(e);
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function wr() {
|
|
77
77
|
this.__data__ = new K(), this.size = 0;
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function $r(e) {
|
|
80
80
|
var r = this.__data__, t = r.delete(e);
|
|
81
81
|
return this.size = r.size, t;
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function mr(e) {
|
|
84
84
|
return this.__data__.get(e);
|
|
85
85
|
}
|
|
86
86
|
function Pr(e) {
|
|
@@ -101,9 +101,9 @@ function A(e) {
|
|
|
101
101
|
var r = this.__data__ = new K(e);
|
|
102
102
|
this.size = r.size;
|
|
103
103
|
}
|
|
104
|
-
A.prototype.clear =
|
|
105
|
-
A.prototype.delete =
|
|
106
|
-
A.prototype.get =
|
|
104
|
+
A.prototype.clear = wr;
|
|
105
|
+
A.prototype.delete = $r;
|
|
106
|
+
A.prototype.get = mr;
|
|
107
107
|
A.prototype.has = Pr;
|
|
108
108
|
A.prototype.set = Sr;
|
|
109
109
|
function hr(e, r) {
|
|
@@ -129,15 +129,15 @@ function Ir(e, r, t) {
|
|
|
129
129
|
function X(e) {
|
|
130
130
|
return Ir(e, Or, Mr);
|
|
131
131
|
}
|
|
132
|
-
var Rr = L(
|
|
132
|
+
var Rr = L(w, "DataView");
|
|
133
133
|
const B = Rr;
|
|
134
|
-
var Dr = L(
|
|
134
|
+
var Dr = L(w, "Promise");
|
|
135
135
|
const F = Dr;
|
|
136
|
-
var Ur = L(
|
|
136
|
+
var Ur = L(w, "Set");
|
|
137
137
|
const G = Ur;
|
|
138
|
-
var k = "[object Map]", Br = "[object Object]", ee = "[object Promise]", re = "[object Set]", te = "[object WeakMap]", ne = "[object DataView]", Fr =
|
|
138
|
+
var k = "[object Map]", Br = "[object Object]", ee = "[object Promise]", re = "[object Set]", te = "[object WeakMap]", ne = "[object DataView]", Fr = $(B), Gr = $(j), Nr = $(F), Kr = $(G), qr = $(D), O = N;
|
|
139
139
|
(B && O(new B(new ArrayBuffer(1))) != ne || j && O(new j()) != k || F && O(F.resolve()) != ee || G && O(new G()) != re || D && O(new D()) != te) && (O = function(e) {
|
|
140
|
-
var r = N(e), t = r == Br ? e.constructor : void 0, n = t ?
|
|
140
|
+
var r = N(e), t = r == Br ? e.constructor : void 0, n = t ? $(t) : "";
|
|
141
141
|
if (n)
|
|
142
142
|
switch (n) {
|
|
143
143
|
case Fr:
|
|
@@ -148,14 +148,14 @@ var k = "[object Map]", Br = "[object Object]", ee = "[object Promise]", re = "[
|
|
|
148
148
|
return ee;
|
|
149
149
|
case Kr:
|
|
150
150
|
return re;
|
|
151
|
-
case
|
|
151
|
+
case qr:
|
|
152
152
|
return te;
|
|
153
153
|
}
|
|
154
154
|
return r;
|
|
155
155
|
});
|
|
156
156
|
const ae = O;
|
|
157
|
-
var
|
|
158
|
-
const se =
|
|
157
|
+
var Vr = w.Uint8Array;
|
|
158
|
+
const se = Vr;
|
|
159
159
|
var Hr = "__lodash_hash_undefined__";
|
|
160
160
|
function zr(e) {
|
|
161
161
|
return this.__data__.set(e, Hr), this;
|
|
@@ -237,7 +237,7 @@ function gt(e, r, t, n, o, a, s) {
|
|
|
237
237
|
case tt:
|
|
238
238
|
case nt:
|
|
239
239
|
case it:
|
|
240
|
-
return
|
|
240
|
+
return me(+e, +r);
|
|
241
241
|
case at:
|
|
242
242
|
return e.name == r.name && e.message == r.message;
|
|
243
243
|
case ot:
|
|
@@ -280,8 +280,8 @@ function _t(e, r, t, n, o, a) {
|
|
|
280
280
|
c = f[p];
|
|
281
281
|
var T = e[c], b = r[c];
|
|
282
282
|
if (n)
|
|
283
|
-
var
|
|
284
|
-
if (!(
|
|
283
|
+
var q = s ? n(b, T, c, r, e, a) : n(T, b, c, e, r, a);
|
|
284
|
+
if (!(q === void 0 ? T === b || o(T, b, t, n, a) : q)) {
|
|
285
285
|
d = !1;
|
|
286
286
|
break;
|
|
287
287
|
}
|
|
@@ -320,7 +320,7 @@ function _e(e, r, t, n, o) {
|
|
|
320
320
|
function Ot(e, r) {
|
|
321
321
|
return _e(e, r);
|
|
322
322
|
}
|
|
323
|
-
const
|
|
323
|
+
const wt = Symbol("emptyValuesContextKey"), $t = ["", void 0, null], mt = void 0, jt = be({
|
|
324
324
|
emptyValues: Array,
|
|
325
325
|
valueOnClear: {
|
|
326
326
|
type: Oe([
|
|
@@ -333,7 +333,7 @@ const mt = Symbol("emptyValuesContextKey"), wt = ["", void 0, null], $t = void 0
|
|
|
333
333
|
validator: (e) => (e = I(e) ? e() : e, le(e) ? e.every((r) => !r) : !e)
|
|
334
334
|
}
|
|
335
335
|
}), xt = (e, r) => {
|
|
336
|
-
const t = Ae() ? Te(
|
|
336
|
+
const t = Ae() ? Te(wt, V({})) : V({}), n = H(() => e.emptyValues || t.value.emptyValues || $t), o = H(() => I(e.valueOnClear) ? e.valueOnClear() : e.valueOnClear !== void 0 ? e.valueOnClear : I(t.value.valueOnClear) ? t.value.valueOnClear() : t.value.valueOnClear !== void 0 ? t.value.valueOnClear : r !== void 0 ? r : mt), a = (s) => {
|
|
337
337
|
let f = !0;
|
|
338
338
|
return le(s) ? f = n.value.some((l) => Ot(s, l)) : f = n.value.includes(s), f;
|
|
339
339
|
};
|
|
@@ -347,22 +347,22 @@ export {
|
|
|
347
347
|
A as S,
|
|
348
348
|
se as U,
|
|
349
349
|
je as a,
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
350
|
+
U as b,
|
|
351
|
+
ye as c,
|
|
352
|
+
Ir as d,
|
|
353
|
+
ae as e,
|
|
354
|
+
ur as f,
|
|
355
355
|
Mr as g,
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
356
|
+
X as h,
|
|
357
|
+
Ot as i,
|
|
358
|
+
Le as j,
|
|
359
359
|
Or as k,
|
|
360
|
-
|
|
361
|
-
|
|
360
|
+
dr as l,
|
|
361
|
+
jt as m,
|
|
362
362
|
Z as n,
|
|
363
363
|
yr as o,
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
_e as p,
|
|
365
|
+
wt as q,
|
|
366
366
|
jr as s,
|
|
367
|
-
|
|
367
|
+
xt as u
|
|
368
368
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { b as re,
|
|
2
|
-
import { S as q,
|
|
3
|
-
import {
|
|
4
|
-
import { ref as y, onMounted as k, onBeforeUnmount as I, defineComponent as ce, provide as we, watch as A, unref as T, nextTick as
|
|
1
|
+
import { b as re, s as M, g as Ee, _ as oe, c as me, e as Te, w as be } from "./base-29f73b05.js";
|
|
2
|
+
import { S as q, c as ae, k as ue, t as he, h as ge } from "./index-8391a3df.js";
|
|
3
|
+
import { y as W, p as ie, q as ye, z as Fe, n as Se, A as Pe } from "./use-form-common-props-cb0ca65c.js";
|
|
4
|
+
import { ref as y, onMounted as k, onBeforeUnmount as I, defineComponent as ce, provide as we, watch as A, unref as T, nextTick as z, renderSlot as N, openBlock as _e, createBlock as Le, Teleport as Ae } from "vue";
|
|
5
5
|
function Ce(e) {
|
|
6
6
|
return e;
|
|
7
7
|
}
|
|
@@ -47,10 +47,10 @@ var xe = W ? function(e, t) {
|
|
|
47
47
|
const De = xe;
|
|
48
48
|
var $e = Re(De);
|
|
49
49
|
const Ke = $e;
|
|
50
|
-
var
|
|
51
|
-
function
|
|
52
|
-
return t =
|
|
53
|
-
for (var s = arguments, r = -1, a =
|
|
50
|
+
var G = Math.max;
|
|
51
|
+
function He(e, t, n) {
|
|
52
|
+
return t = G(t === void 0 ? e.length - 1 : t, 0), function() {
|
|
53
|
+
for (var s = arguments, r = -1, a = G(s.length - t, 0), i = Array(a); ++r < a; )
|
|
54
54
|
i[r] = s[t + r];
|
|
55
55
|
r = -1;
|
|
56
56
|
for (var c = Array(t + 1); ++r < t; )
|
|
@@ -59,12 +59,12 @@ function Be(e, t, n) {
|
|
|
59
59
|
};
|
|
60
60
|
}
|
|
61
61
|
var J = q ? q.isConcatSpreadable : void 0;
|
|
62
|
-
function
|
|
62
|
+
function Be(e) {
|
|
63
63
|
return ae(e) || ie(e) || !!(J && e && e[J]);
|
|
64
64
|
}
|
|
65
65
|
function le(e, t, n, s, r) {
|
|
66
66
|
var a = -1, i = e.length;
|
|
67
|
-
for (n || (n =
|
|
67
|
+
for (n || (n = Be), r || (r = []); ++a < i; ) {
|
|
68
68
|
var c = e[a];
|
|
69
69
|
t > 0 && n(c) ? t > 1 ? le(c, t - 1, n, s, r) : ye(r, c) : s || (r[r.length] = c);
|
|
70
70
|
}
|
|
@@ -75,7 +75,7 @@ function Ve(e) {
|
|
|
75
75
|
return t ? le(e, 1) : [];
|
|
76
76
|
}
|
|
77
77
|
function Me(e) {
|
|
78
|
-
return Ke(
|
|
78
|
+
return Ke(He(e, void 0, Ve), e + "");
|
|
79
79
|
}
|
|
80
80
|
function qe(e, t) {
|
|
81
81
|
return e != null && t in Object(e);
|
|
@@ -90,10 +90,10 @@ function We(e, t, n) {
|
|
|
90
90
|
}
|
|
91
91
|
return a || ++s != r ? a : (r = e == null ? 0 : e.length, !!r && Fe(r) && Se(i, r) && (ae(e) || ie(e)));
|
|
92
92
|
}
|
|
93
|
-
function
|
|
93
|
+
function ze(e, t) {
|
|
94
94
|
return e != null && We(e, t, qe);
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function Ge(e, t, n) {
|
|
97
97
|
for (var s = -1, r = t.length, a = {}; ++s < r; ) {
|
|
98
98
|
var i = t[s], c = ge(e, i);
|
|
99
99
|
n(c, i) && Pe(a, ue(i, e), c);
|
|
@@ -101,8 +101,8 @@ function ze(e, t, n) {
|
|
|
101
101
|
return a;
|
|
102
102
|
}
|
|
103
103
|
function Je(e, t) {
|
|
104
|
-
return
|
|
105
|
-
return
|
|
104
|
+
return Ge(e, t, function(n, s) {
|
|
105
|
+
return ze(e, s);
|
|
106
106
|
});
|
|
107
107
|
}
|
|
108
108
|
var Xe = Me(function(e, t) {
|
|
@@ -189,7 +189,7 @@ const fe = (e) => {
|
|
|
189
189
|
}, at = (e) => {
|
|
190
190
|
const t = fe(e), n = j(t, e), s = j(t.reverse(), e);
|
|
191
191
|
return [n, s];
|
|
192
|
-
}, ut = (e) => e instanceof HTMLInputElement && "select" in e,
|
|
192
|
+
}, ut = (e) => e instanceof HTMLInputElement && "select" in e, v = (e, t) => {
|
|
193
193
|
if (e) {
|
|
194
194
|
const n = document.activeElement;
|
|
195
195
|
tt(e, { preventScroll: !0 }), U.value = window.performance.now(), e !== n && ut(e) && t && e.select();
|
|
@@ -214,7 +214,7 @@ const it = () => {
|
|
|
214
214
|
}, ct = (e, t = !1) => {
|
|
215
215
|
const n = document.activeElement;
|
|
216
216
|
for (const s of e)
|
|
217
|
-
if (
|
|
217
|
+
if (v(s, t), document.activeElement !== n)
|
|
218
218
|
return;
|
|
219
219
|
}, te = it(), lt = () => F.value > U.value, h = () => {
|
|
220
220
|
R.value = "pointer", F.value = window.performance.now();
|
|
@@ -231,7 +231,7 @@ const it = () => {
|
|
|
231
231
|
}), g = (e) => new CustomEvent(nt, {
|
|
232
232
|
...st,
|
|
233
233
|
detail: e
|
|
234
|
-
}),
|
|
234
|
+
}), pe = {
|
|
235
235
|
tab: "Tab",
|
|
236
236
|
enter: "Enter",
|
|
237
237
|
space: "Space",
|
|
@@ -250,14 +250,14 @@ const it = () => {
|
|
|
250
250
|
};
|
|
251
251
|
let E = [];
|
|
252
252
|
const se = (e) => {
|
|
253
|
-
e.code ===
|
|
253
|
+
e.code === pe.esc && E.forEach((t) => t(e));
|
|
254
254
|
}, ft = (e) => {
|
|
255
255
|
k(() => {
|
|
256
256
|
E.length === 0 && document.addEventListener("keydown", se), M && E.push(e);
|
|
257
257
|
}), I(() => {
|
|
258
258
|
E = E.filter((t) => t !== e), E.length === 0 && M && document.removeEventListener("keydown", se);
|
|
259
259
|
});
|
|
260
|
-
},
|
|
260
|
+
}, pt = ce({
|
|
261
261
|
name: "ElFocusTrap",
|
|
262
262
|
inheritAttrs: !1,
|
|
263
263
|
props: {
|
|
@@ -295,26 +295,26 @@ const se = (e) => {
|
|
|
295
295
|
}, c = (o) => {
|
|
296
296
|
if (!e.loop && !e.trapped || i.paused)
|
|
297
297
|
return;
|
|
298
|
-
const { code: u, altKey: l, ctrlKey: d, metaKey: f, currentTarget:
|
|
299
|
-
if (
|
|
300
|
-
const w =
|
|
298
|
+
const { code: u, altKey: l, ctrlKey: d, metaKey: f, currentTarget: H, shiftKey: B } = o, { loop: V } = e, ve = u === pe.tab && !l && !d && !f, m = document.activeElement;
|
|
299
|
+
if (ve && m) {
|
|
300
|
+
const w = H, [_, L] = at(w);
|
|
301
301
|
if (_ && L) {
|
|
302
|
-
if (!
|
|
303
|
-
const
|
|
302
|
+
if (!B && m === L) {
|
|
303
|
+
const p = g({
|
|
304
304
|
focusReason: a.value
|
|
305
305
|
});
|
|
306
|
-
t("focusout-prevented",
|
|
307
|
-
} else if (
|
|
308
|
-
const
|
|
306
|
+
t("focusout-prevented", p), p.defaultPrevented || (o.preventDefault(), V && v(_, !0));
|
|
307
|
+
} else if (B && [_, w].includes(m)) {
|
|
308
|
+
const p = g({
|
|
309
309
|
focusReason: a.value
|
|
310
310
|
});
|
|
311
|
-
t("focusout-prevented",
|
|
311
|
+
t("focusout-prevented", p), p.defaultPrevented || (o.preventDefault(), V && v(L, !0));
|
|
312
312
|
}
|
|
313
313
|
} else if (m === w) {
|
|
314
|
-
const
|
|
314
|
+
const p = g({
|
|
315
315
|
focusReason: a.value
|
|
316
316
|
});
|
|
317
|
-
t("focusout-prevented",
|
|
317
|
+
t("focusout-prevented", p), p.defaultPrevented || o.preventDefault();
|
|
318
318
|
}
|
|
319
319
|
}
|
|
320
320
|
};
|
|
@@ -333,7 +333,7 @@ const se = (e) => {
|
|
|
333
333
|
if (!u)
|
|
334
334
|
return;
|
|
335
335
|
const l = o.target, d = o.relatedTarget, f = l && u.contains(l);
|
|
336
|
-
e.trapped || d && u.contains(d) || (s = d), f && t("focusin", o), !i.paused && e.trapped && (f ? r = l :
|
|
336
|
+
e.trapped || d && u.contains(d) || (s = d), f && t("focusin", o), !i.paused && e.trapped && (f ? r = l : v(r, !0));
|
|
337
337
|
}, P = (o) => {
|
|
338
338
|
const u = T(n);
|
|
339
339
|
if (!(i.paused || !u))
|
|
@@ -344,7 +344,7 @@ const se = (e) => {
|
|
|
344
344
|
const d = g({
|
|
345
345
|
focusReason: a.value
|
|
346
346
|
});
|
|
347
|
-
t("focusout-prevented", d), d.defaultPrevented ||
|
|
347
|
+
t("focusout-prevented", d), d.defaultPrevented || v(r, !0);
|
|
348
348
|
}
|
|
349
349
|
}, 0);
|
|
350
350
|
} else {
|
|
@@ -353,16 +353,16 @@ const se = (e) => {
|
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
355
|
async function $() {
|
|
356
|
-
await
|
|
356
|
+
await z();
|
|
357
357
|
const o = T(n);
|
|
358
358
|
if (o) {
|
|
359
359
|
te.push(i);
|
|
360
360
|
const u = o.contains(document.activeElement) ? s : document.activeElement;
|
|
361
361
|
if (s = u, !o.contains(u)) {
|
|
362
362
|
const d = new Event(C, Y);
|
|
363
|
-
o.addEventListener(C, x), o.dispatchEvent(d), d.defaultPrevented ||
|
|
363
|
+
o.addEventListener(C, x), o.dispatchEvent(d), d.defaultPrevented || z(() => {
|
|
364
364
|
let f = e.focusStartEl;
|
|
365
|
-
me(f) || (
|
|
365
|
+
me(f) || (v(f), document.activeElement !== f && (f = "first")), f === "first" && ct(fe(o), !0), (document.activeElement === u || f === "container") && v(o);
|
|
366
366
|
});
|
|
367
367
|
}
|
|
368
368
|
}
|
|
@@ -377,7 +377,7 @@ const se = (e) => {
|
|
|
377
377
|
focusReason: a.value
|
|
378
378
|
}
|
|
379
379
|
});
|
|
380
|
-
o.addEventListener(O, D), o.dispatchEvent(u), !u.defaultPrevented && (a.value == "keyboard" || !lt() || o.contains(document.activeElement)) &&
|
|
380
|
+
o.addEventListener(O, D), o.dispatchEvent(u), !u.defaultPrevented && (a.value == "keyboard" || !lt() || o.contains(document.activeElement)) && v(s ?? document.body), o.removeEventListener(O, D), te.remove(i), s = null, r = null;
|
|
381
381
|
}
|
|
382
382
|
}
|
|
383
383
|
return k(() => {
|
|
@@ -391,10 +391,10 @@ const se = (e) => {
|
|
|
391
391
|
};
|
|
392
392
|
}
|
|
393
393
|
});
|
|
394
|
-
function
|
|
394
|
+
function vt(e, t, n, s, r, a) {
|
|
395
395
|
return N(e.$slots, "default", { handleKeydown: e.onKeydown });
|
|
396
396
|
}
|
|
397
|
-
var Nt = /* @__PURE__ */ oe(
|
|
397
|
+
var Nt = /* @__PURE__ */ oe(pt, [["render", vt], ["__file", "focus-trap.vue"]]);
|
|
398
398
|
const Et = re({
|
|
399
399
|
to: {
|
|
400
400
|
type: Te([String, Object]),
|
|
@@ -417,24 +417,24 @@ var Tt = /* @__PURE__ */ oe(mt, [["__file", "teleport.vue"]]);
|
|
|
417
417
|
const kt = be(Tt);
|
|
418
418
|
export {
|
|
419
419
|
Pt as C,
|
|
420
|
-
|
|
420
|
+
pe as E,
|
|
421
421
|
rt as F,
|
|
422
422
|
wt as I,
|
|
423
423
|
St as U,
|
|
424
|
-
|
|
424
|
+
_t as a,
|
|
425
425
|
kt as b,
|
|
426
|
-
|
|
426
|
+
Nt as c,
|
|
427
427
|
Lt as d,
|
|
428
|
-
|
|
428
|
+
He as e,
|
|
429
429
|
tt as f,
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
430
|
+
le as g,
|
|
431
|
+
ze as h,
|
|
432
|
+
Ce as i,
|
|
433
|
+
Et as j,
|
|
434
|
+
de as k,
|
|
435
435
|
Ct as o,
|
|
436
436
|
Ye as p,
|
|
437
437
|
Ke as s,
|
|
438
|
-
|
|
438
|
+
Ot as t,
|
|
439
439
|
At as u
|
|
440
440
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as x, inject as Z, ref as f, computed as R, onBeforeUnmount as oe, toRef as q, openBlock as k, createBlock as D, Transition as ae, unref as w, withCtx as ee, withDirectives as re, createElementVNode as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as x, inject as Z, ref as f, computed as R, onBeforeUnmount as oe, toRef as q, openBlock as k, createBlock as D, Transition as ae, unref as w, withCtx as ee, withDirectives as re, createElementVNode as $, normalizeClass as P, withModifiers as se, normalizeStyle as j, vShow as ne, createElementBlock as te, Fragment as ie, createVNode as G, watch as X, nextTick as Y, provide as ce, reactive as ue, onActivated as ve, onMounted as fe, onUpdated as me, resolveDynamicComponent as de, renderSlot as pe, createCommentVNode as he } from "vue";
|
|
2
|
+
import { c as I, u as F } from "./use-form-common-props-cb0ca65c.js";
|
|
3
3
|
import { B as be, r as ge, G as C } from "./el-scrollbar-323542e7.js";
|
|
4
|
-
import { b as K, _ as U, u as le,
|
|
5
|
-
import {
|
|
4
|
+
import { b as K, _ as U, u as le, s as ye, e as Se, p as N, n as J, f as we, w as ze } from "./base-29f73b05.js";
|
|
5
|
+
import { a as _e, u as Ee } from "./index-0f79095c.js";
|
|
6
6
|
const V = Symbol("scrollbarContextKey"), Te = K({
|
|
7
7
|
vertical: Boolean,
|
|
8
8
|
size: String,
|
|
@@ -16,15 +16,15 @@ const V = Symbol("scrollbarContextKey"), Te = K({
|
|
|
16
16
|
__name: "thumb",
|
|
17
17
|
props: Te,
|
|
18
18
|
setup(z) {
|
|
19
|
-
const
|
|
19
|
+
const d = z, r = Z(V), l = le("scrollbar");
|
|
20
20
|
r || _e(He, "can not inject scrollbar context");
|
|
21
|
-
const c = f(),
|
|
21
|
+
const c = f(), m = f(), g = f({}), p = f(!1);
|
|
22
22
|
let s = !1, n = !1, v = 0, y = 0, o = ye ? document.onselectstart : null;
|
|
23
|
-
const e = R(() => be[
|
|
24
|
-
size:
|
|
25
|
-
move:
|
|
23
|
+
const e = R(() => be[d.vertical ? "vertical" : "horizontal"]), h = R(() => ge({
|
|
24
|
+
size: d.size,
|
|
25
|
+
move: d.move,
|
|
26
26
|
bar: e.value
|
|
27
|
-
})), b = R(() => c.value[e.value.offset] ** 2 / r.wrapElement[e.value.scrollSize] /
|
|
27
|
+
})), b = R(() => c.value[e.value.offset] ** 2 / r.wrapElement[e.value.scrollSize] / d.ratio / m.value[e.value.offset]), T = (i) => {
|
|
28
28
|
var S;
|
|
29
29
|
if (i.stopPropagation(), i.ctrlKey || [1, 2].includes(i.button))
|
|
30
30
|
return;
|
|
@@ -32,24 +32,24 @@ const V = Symbol("scrollbarContextKey"), Te = K({
|
|
|
32
32
|
const u = i.currentTarget;
|
|
33
33
|
u && (g.value[e.value.axis] = u[e.value.offset] - (i[e.value.client] - u.getBoundingClientRect()[e.value.direction]));
|
|
34
34
|
}, _ = (i) => {
|
|
35
|
-
if (!
|
|
35
|
+
if (!m.value || !c.value || !r.wrapElement)
|
|
36
36
|
return;
|
|
37
|
-
const S = Math.abs(i.target.getBoundingClientRect()[e.value.direction] - i[e.value.client]), u =
|
|
37
|
+
const S = Math.abs(i.target.getBoundingClientRect()[e.value.direction] - i[e.value.client]), u = m.value[e.value.offset] / 2, t = (S - u) * 100 * b.value / c.value[e.value.offset];
|
|
38
38
|
r.wrapElement[e.value.scroll] = t * r.wrapElement[e.value.scrollSize] / 100;
|
|
39
39
|
}, E = (i) => {
|
|
40
40
|
i.stopImmediatePropagation(), s = !0, v = r.wrapElement.scrollHeight, y = r.wrapElement.scrollWidth, document.addEventListener("mousemove", B), document.addEventListener("mouseup", L), o = document.onselectstart, document.onselectstart = () => !1;
|
|
41
41
|
}, B = (i) => {
|
|
42
|
-
if (!c.value || !
|
|
42
|
+
if (!c.value || !m.value || s === !1)
|
|
43
43
|
return;
|
|
44
44
|
const S = g.value[e.value.axis];
|
|
45
45
|
if (!S)
|
|
46
46
|
return;
|
|
47
|
-
const u = (c.value.getBoundingClientRect()[e.value.direction] - i[e.value.client]) * -1, t =
|
|
47
|
+
const u = (c.value.getBoundingClientRect()[e.value.direction] - i[e.value.client]) * -1, t = m.value[e.value.offset] - S, a = (u - t) * 100 * b.value / c.value[e.value.offset];
|
|
48
48
|
e.value.scroll === "scrollLeft" ? r.wrapElement[e.value.scroll] = a * y / 100 : r.wrapElement[e.value.scroll] = a * v / 100;
|
|
49
49
|
}, L = () => {
|
|
50
50
|
s = !1, g.value[e.value.axis] = 0, document.removeEventListener("mousemove", B), document.removeEventListener("mouseup", L), A(), n && (p.value = !1);
|
|
51
51
|
}, W = () => {
|
|
52
|
-
n = !1, p.value = !!
|
|
52
|
+
n = !1, p.value = !!d.size;
|
|
53
53
|
}, O = () => {
|
|
54
54
|
n = !0, p.value = s;
|
|
55
55
|
};
|
|
@@ -64,7 +64,7 @@ const V = Symbol("scrollbarContextKey"), Te = K({
|
|
|
64
64
|
persisted: ""
|
|
65
65
|
}, {
|
|
66
66
|
default: ee(() => [
|
|
67
|
-
re(
|
|
67
|
+
re($("div", {
|
|
68
68
|
ref_key: "instance",
|
|
69
69
|
ref: c,
|
|
70
70
|
class: P([w(l).e("bar"), w(l).is(w(e).key)]),
|
|
@@ -72,11 +72,11 @@ const V = Symbol("scrollbarContextKey"), Te = K({
|
|
|
72
72
|
onClick: se(() => {
|
|
73
73
|
}, ["stop"])
|
|
74
74
|
}, [
|
|
75
|
-
|
|
75
|
+
$("div", {
|
|
76
76
|
ref_key: "thumb",
|
|
77
|
-
ref:
|
|
77
|
+
ref: m,
|
|
78
78
|
class: P(w(l).e("thumb")),
|
|
79
|
-
style:
|
|
79
|
+
style: j(w(h)),
|
|
80
80
|
onMousedown: T
|
|
81
81
|
}, null, 38)
|
|
82
82
|
], 42, ["onClick"]), [
|
|
@@ -100,13 +100,13 @@ const Re = K({
|
|
|
100
100
|
}), Le = /* @__PURE__ */ x({
|
|
101
101
|
__name: "bar",
|
|
102
102
|
props: Re,
|
|
103
|
-
setup(z, { expose:
|
|
104
|
-
const r = z, l = Z(V), c = f(0),
|
|
105
|
-
return
|
|
103
|
+
setup(z, { expose: d }) {
|
|
104
|
+
const r = z, l = Z(V), c = f(0), m = f(0), g = f(""), p = f(""), s = f(1), n = f(1);
|
|
105
|
+
return d({
|
|
106
106
|
handleScroll: (o) => {
|
|
107
107
|
if (o) {
|
|
108
108
|
const e = o.offsetHeight - C, h = o.offsetWidth - C;
|
|
109
|
-
|
|
109
|
+
m.value = o.scrollTop * 100 / e * s.value, c.value = o.scrollLeft * 100 / h * n.value;
|
|
110
110
|
}
|
|
111
111
|
},
|
|
112
112
|
update: () => {
|
|
@@ -124,7 +124,7 @@ const Re = K({
|
|
|
124
124
|
always: o.always
|
|
125
125
|
}, null, 8, ["move", "ratio", "size", "always"]),
|
|
126
126
|
G(Q, {
|
|
127
|
-
move:
|
|
127
|
+
move: m.value,
|
|
128
128
|
ratio: s.value,
|
|
129
129
|
size: p.value,
|
|
130
130
|
vertical: "",
|
|
@@ -185,17 +185,17 @@ const ke = K({
|
|
|
185
185
|
"end-reached": (z) => ["left", "right", "top", "bottom"].includes(z),
|
|
186
186
|
scroll: ({
|
|
187
187
|
scrollTop: z,
|
|
188
|
-
scrollLeft:
|
|
189
|
-
}) => [z,
|
|
188
|
+
scrollLeft: d
|
|
189
|
+
}) => [z, d].every(N)
|
|
190
190
|
}, Be = "ElScrollbar", Oe = x({
|
|
191
191
|
name: Be
|
|
192
192
|
}), Ae = /* @__PURE__ */ x({
|
|
193
193
|
...Oe,
|
|
194
194
|
props: ke,
|
|
195
195
|
emits: Pe,
|
|
196
|
-
setup(z, { expose:
|
|
196
|
+
setup(z, { expose: d, emit: r }) {
|
|
197
197
|
const l = z, c = le("scrollbar");
|
|
198
|
-
let
|
|
198
|
+
let m, g, p, s = 0, n = 0, v = "";
|
|
199
199
|
const y = {
|
|
200
200
|
bottom: !1,
|
|
201
201
|
top: !1,
|
|
@@ -257,7 +257,7 @@ const ke = K({
|
|
|
257
257
|
(t = b.value) == null || t.update(), y[v] = !1;
|
|
258
258
|
};
|
|
259
259
|
return X(() => l.noresize, (t) => {
|
|
260
|
-
t ? (
|
|
260
|
+
t ? (m == null || m(), g == null || g(), p == null || p()) : ({ stop: m } = F(h, u), { stop: g } = F(e, u), p = I("resize", u));
|
|
261
261
|
}, { immediate: !0 }), X(() => [l.maxHeight, l.height], () => {
|
|
262
262
|
l.native || Y(() => {
|
|
263
263
|
var t;
|
|
@@ -272,7 +272,7 @@ const ke = K({
|
|
|
272
272
|
l.native || Y(() => {
|
|
273
273
|
u();
|
|
274
274
|
});
|
|
275
|
-
}),
|
|
275
|
+
}), me(() => u()), d({
|
|
276
276
|
wrapRef: e,
|
|
277
277
|
update: u,
|
|
278
278
|
scrollTo: A,
|
|
@@ -284,20 +284,20 @@ const ke = K({
|
|
|
284
284
|
ref: o,
|
|
285
285
|
class: P(w(c).b())
|
|
286
286
|
}, [
|
|
287
|
-
|
|
287
|
+
$("div", {
|
|
288
288
|
ref_key: "wrapRef",
|
|
289
289
|
ref: e,
|
|
290
290
|
class: P(w(_)),
|
|
291
|
-
style:
|
|
291
|
+
style: j(w(T)),
|
|
292
292
|
tabindex: t.tabindex,
|
|
293
293
|
onScroll: O
|
|
294
294
|
}, [
|
|
295
|
-
(k(), D(
|
|
295
|
+
(k(), D(de(t.tag), {
|
|
296
296
|
id: t.id,
|
|
297
297
|
ref_key: "resizeRef",
|
|
298
298
|
ref: h,
|
|
299
299
|
class: P(w(E)),
|
|
300
|
-
style:
|
|
300
|
+
style: j(t.viewStyle),
|
|
301
301
|
role: t.role,
|
|
302
302
|
"aria-label": t.ariaLabel,
|
|
303
303
|
"aria-orientation": t.ariaOrientation
|