st-comp 0.0.136 → 0.0.137
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.cjs +1 -1
- package/es/ChartLayout.js +2 -2
- package/es/Dialog.cjs +1 -1
- package/es/Dialog.js +11 -11
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +89 -89
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +13 -13
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +22 -22
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +11 -11
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +73 -73
- package/es/Table.cjs +1 -1
- package/es/Table.js +24 -24
- package/es/TreeMap.cjs +1 -2
- package/es/TreeMap.js +1 -163
- package/es/User.cjs +1 -1
- package/es/User.js +32 -32
- package/es/VarietySearch.cjs +1 -1
- package/es/VarietySearch.js +421 -422
- package/es/VirtualTable.cjs +2 -2
- package/es/VirtualTable.js +10 -10
- package/es/{base-3ecbc734.js → base-7ecff73f.js} +68 -68
- package/es/{base-ec05f348.cjs → base-b384d332.cjs} +1 -1
- package/es/{castArray-a45823fe.cjs → castArray-21cb8c6a.cjs} +1 -1
- package/es/{castArray-7d3fc921.js → castArray-d87e6d83.js} +1 -1
- package/es/{config-provider-7cdfca4d.cjs → config-provider-08c54ec3.cjs} +1 -1
- package/es/{config-provider-83904b4d.js → config-provider-c6d33ae0.js} +3 -3
- package/es/{debounce-7344b088.js → debounce-24a2e3ec.js} +25 -25
- package/es/debounce-2ecf2d1f.cjs +1 -0
- package/es/{dropdown-9a974876.cjs → dropdown-1de99dc2.cjs} +1 -1
- package/es/{dropdown-7da44c8f.js → dropdown-6f212b92.js} +4 -4
- package/es/{el-button-24f79286.js → el-button-26f1342d.js} +11 -11
- package/es/{el-button-196807af.cjs → el-button-d234707c.cjs} +1 -1
- package/es/{el-empty-19ea04f4.cjs → el-empty-2d7a61d4.cjs} +1 -1
- package/es/{el-empty-79c5f7a8.js → el-empty-aa6a8f05.js} +1 -1
- package/es/{el-form-item-7d32befa.cjs → el-form-item-466b1601.cjs} +2 -2
- package/es/{el-form-item-afc3dcf2.js → el-form-item-f7a1de00.js} +107 -107
- package/es/{el-input-ee7db655.js → el-input-d0f5c98c.js} +46 -46
- package/es/el-input-fd2b3a26.cjs +1 -0
- package/es/el-input-number-509152ff.cjs +1 -0
- package/es/{el-input-number-63c21037.js → el-input-number-944a4ee2.js} +25 -25
- package/es/{el-menu-item-0d92e7dc.js → el-menu-item-726bb0bc.js} +112 -112
- package/es/el-menu-item-83e9739a.cjs +1 -0
- package/es/{el-message-562e923d.cjs → el-message-67684e35.cjs} +1 -1
- package/es/{el-message-71aa42ca.js → el-message-8149ff2d.js} +38 -38
- package/es/{el-overlay-6056c89a.js → el-overlay-7abe3c16.js} +96 -96
- package/es/{el-overlay-891dcc40.cjs → el-overlay-7d8307c8.cjs} +1 -1
- package/es/{el-popover-8735b1fa.cjs → el-popover-129a9692.cjs} +1 -1
- package/es/{el-popover-c8b2456c.js → el-popover-73df49b7.js} +20 -20
- package/es/el-popper-3d8f2656.cjs +1 -0
- package/es/{el-popper-d3eef7ed.js → el-popper-92dc6e44.js} +134 -134
- package/es/{el-scrollbar-66f3bb72.js → el-scrollbar-9f1b83f8.js} +10 -10
- package/es/el-scrollbar-a01fea99.cjs +1 -0
- package/es/{el-select-5fb7d469.js → el-select-1b3092ab.js} +10 -10
- package/es/el-select-d3f8b31c.cjs +1 -0
- package/es/el-table-column-1319b1ba.cjs +14 -0
- package/es/{el-table-column-560db3aa.js → el-table-column-a781f780.js} +117 -117
- package/es/{el-tag-6a31c968.js → el-tag-4323606a.js} +93 -93
- package/es/{el-tag-3b03d13e.cjs → el-tag-6d45f0b2.cjs} +1 -1
- package/es/{index-a1ecf26c.js → index-0d6776f7.js} +21 -21
- package/es/{index-80a2b137.cjs → index-2d697ae8.cjs} +1 -1
- package/es/{index-fa07a823.js → index-81702fc3.js} +13 -13
- package/es/{index-68ee64fa.js → index-bc7c8ad4.js} +27 -27
- package/es/{index-8a0b1c53.cjs → index-cb665c76.cjs} +1 -1
- package/es/{index-e1e83173.cjs → index-e0fa2f71.cjs} +1 -1
- package/es/{raf-377cf8f5.js → raf-196eee8e.js} +1 -1
- package/es/{raf-8fc301fd.cjs → raf-930895a1.cjs} +1 -1
- package/es/{refs-d00b710b.cjs → refs-4b61ff18.cjs} +1 -1
- package/es/refs-de750cc1.js +9 -0
- package/es/{scroll-41224831.cjs → scroll-495227b0.cjs} +1 -1
- package/es/{scroll-1efa8148.js → scroll-8e2a4c8b.js} +1 -1
- package/es/style.css +1 -1
- package/es/{use-form-common-props-9c0363ac.js → use-form-common-props-1075088e.js} +74 -74
- package/es/{use-form-common-props-1b84d8f4.cjs → use-form-common-props-41091f5f.cjs} +2 -2
- package/es/{vnode-7fbc61e1.cjs → vnode-44ebae3f.cjs} +1 -1
- package/es/{vnode-cfcdab70.js → vnode-85a8ebd8.js} +1 -1
- package/es/{zh-cn-4a476dc8.js → zh-cn-3d9d6ecf.js} +2 -2
- package/es/{zh-cn-ab9a583d.cjs → zh-cn-44d71e6d.cjs} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +1 -1
- package/lib/{index-73a5840c.js → index-4926b969.js} +7 -8
- package/lib/{python-bb104d23.js → python-26e17fc9.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietySearch/index.vue +6 -1
- package/es/debounce-b2ff12bd.cjs +0 -1
- package/es/el-input-6c6f5bda.cjs +0 -1
- package/es/el-input-number-0524d787.cjs +0 -1
- package/es/el-menu-item-dc904a35.cjs +0 -1
- package/es/el-popper-f62316cd.cjs +0 -1
- package/es/el-scrollbar-d1c3e7f7.cjs +0 -1
- package/es/el-select-928f8c19.cjs +0 -1
- package/es/el-table-column-dd8b62aa.cjs +0 -14
- package/es/refs-46cf8186.js +0 -9
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as y, onMounted as R, onBeforeUnmount as k, defineComponent as ee, provide as ae, watch as A, unref as T, nextTick as M, renderSlot as N, openBlock as ce, createBlock as ue, Teleport as ie } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { G as q, b as j, p as de, _ as te, x as fe, d as le, e as pe, w as ve } from "./base-7ecff73f.js";
|
|
3
3
|
function De(e) {
|
|
4
4
|
return e === void 0;
|
|
5
5
|
}
|
|
@@ -31,7 +31,7 @@ const Ee = 'a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="
|
|
|
31
31
|
}, me = {
|
|
32
32
|
cancelable: !0,
|
|
33
33
|
bubbles: !1
|
|
34
|
-
},
|
|
34
|
+
}, G = "focusAfterTrapped", J = "focusAfterReleased", Fe = Symbol("elFocusTrap"), I = y(), h = y(0), U = y(0);
|
|
35
35
|
let m = 0;
|
|
36
36
|
const se = (e) => {
|
|
37
37
|
const t = [], o = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -43,7 +43,7 @@ const se = (e) => {
|
|
|
43
43
|
for (; o.nextNode(); )
|
|
44
44
|
t.push(o.currentNode);
|
|
45
45
|
return t;
|
|
46
|
-
},
|
|
46
|
+
}, X = (e, t) => {
|
|
47
47
|
for (const o of e)
|
|
48
48
|
if (!_e(o, t))
|
|
49
49
|
return o;
|
|
@@ -61,7 +61,7 @@ const se = (e) => {
|
|
|
61
61
|
}
|
|
62
62
|
return !1;
|
|
63
63
|
}, ye = (e) => {
|
|
64
|
-
const t = se(e), o =
|
|
64
|
+
const t = se(e), o = X(t, e), s = X(t.reverse(), e);
|
|
65
65
|
return [o, s];
|
|
66
66
|
}, he = (e) => e instanceof HTMLInputElement && "select" in e, l = (e, t) => {
|
|
67
67
|
if (e && e.focus) {
|
|
@@ -70,7 +70,7 @@ const se = (e) => {
|
|
|
70
70
|
q(e) && !ne(e) && !e.getAttribute("tabindex") && (e.setAttribute("tabindex", "-1"), s = !0), e.focus({ preventScroll: !0 }), U.value = window.performance.now(), e !== o && he(e) && t && e.select(), q(e) && s && e.removeAttribute("tabindex");
|
|
71
71
|
}
|
|
72
72
|
};
|
|
73
|
-
function
|
|
73
|
+
function Y(e, t) {
|
|
74
74
|
const o = [...e], s = e.indexOf(t);
|
|
75
75
|
return s !== -1 && o.splice(s, 1), o;
|
|
76
76
|
}
|
|
@@ -79,11 +79,11 @@ const we = () => {
|
|
|
79
79
|
return {
|
|
80
80
|
push: (s) => {
|
|
81
81
|
const a = e[0];
|
|
82
|
-
a && s !== a && a.pause(), e =
|
|
82
|
+
a && s !== a && a.pause(), e = Y(e, s), e.unshift(s);
|
|
83
83
|
},
|
|
84
84
|
remove: (s) => {
|
|
85
85
|
var a, d;
|
|
86
|
-
e =
|
|
86
|
+
e = Y(e, s), (d = (a = e[0]) == null ? void 0 : a.resume) == null || d.call(a);
|
|
87
87
|
}
|
|
88
88
|
};
|
|
89
89
|
}, Pe = (e, t = !1) => {
|
|
@@ -91,7 +91,7 @@ const we = () => {
|
|
|
91
91
|
for (const s of e)
|
|
92
92
|
if (l(s, t), document.activeElement !== o)
|
|
93
93
|
return;
|
|
94
|
-
},
|
|
94
|
+
}, z = we(), Se = () => h.value > U.value, F = () => {
|
|
95
95
|
I.value = "pointer", h.value = window.performance.now();
|
|
96
96
|
}, Q = () => {
|
|
97
97
|
I.value = "keyboard", h.value = window.performance.now();
|
|
@@ -145,8 +145,8 @@ const Z = (e) => {
|
|
|
145
145
|
}
|
|
146
146
|
},
|
|
147
147
|
emits: [
|
|
148
|
+
G,
|
|
148
149
|
J,
|
|
149
|
-
X,
|
|
150
150
|
"focusin",
|
|
151
151
|
"focusout",
|
|
152
152
|
"focusout-prevented",
|
|
@@ -202,8 +202,8 @@ const Z = (e) => {
|
|
|
202
202
|
n && (n.addEventListener("keydown", E), n.addEventListener("focusin", w), n.addEventListener("focusout", P)), r && (r.removeEventListener("keydown", E), r.removeEventListener("focusin", w), r.removeEventListener("focusout", P));
|
|
203
203
|
});
|
|
204
204
|
const D = (n) => {
|
|
205
|
-
t(
|
|
206
|
-
}, x = (n) => t(
|
|
205
|
+
t(G, n);
|
|
206
|
+
}, x = (n) => t(J, n), w = (n) => {
|
|
207
207
|
const r = T(o);
|
|
208
208
|
if (!r)
|
|
209
209
|
return;
|
|
@@ -231,7 +231,7 @@ const Z = (e) => {
|
|
|
231
231
|
await M();
|
|
232
232
|
const n = T(o);
|
|
233
233
|
if (n) {
|
|
234
|
-
|
|
234
|
+
z.push(p);
|
|
235
235
|
const r = n.contains(document.activeElement) ? s : document.activeElement;
|
|
236
236
|
if (s = r, !n.contains(r)) {
|
|
237
237
|
const u = new Event(C, W);
|
|
@@ -252,7 +252,7 @@ const Z = (e) => {
|
|
|
252
252
|
focusReason: d.value
|
|
253
253
|
}
|
|
254
254
|
});
|
|
255
|
-
n.addEventListener(O, x), n.dispatchEvent(r), !r.defaultPrevented && (d.value == "keyboard" || !Se() || n.contains(document.activeElement)) && l(s ?? document.body), n.removeEventListener(O, x),
|
|
255
|
+
n.addEventListener(O, x), n.dispatchEvent(r), !r.defaultPrevented && (d.value == "keyboard" || !Se() || n.contains(document.activeElement)) && l(s ?? document.body), n.removeEventListener(O, x), z.remove(p);
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
return R(() => {
|
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import { ref as C, getCurrentInstance as f, provide as x, computed as l, unref as i, inject as y, watch as I } from "vue";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
const
|
|
5
|
-
function
|
|
6
|
-
return n == null ? n :
|
|
2
|
+
import { C as b, s as p, D as z, E as _, l as S, F as K, u as G } from "./base-7ecff73f.js";
|
|
3
|
+
import { g as O, z as $, S as k, h as E, j as N, k as F } from "./use-form-common-props-1075088e.js";
|
|
4
|
+
const g = Symbol();
|
|
5
|
+
function P(n, o, a) {
|
|
6
|
+
return n == null ? n : O(n, o, a);
|
|
7
7
|
}
|
|
8
|
-
const d = (n) => Object.keys(n),
|
|
8
|
+
const d = (n) => Object.keys(n), j = (n, o, a) => ({
|
|
9
9
|
get value() {
|
|
10
10
|
return b(n, o, a);
|
|
11
11
|
},
|
|
12
12
|
set value(t) {
|
|
13
|
-
|
|
13
|
+
P(n, o, t);
|
|
14
14
|
}
|
|
15
15
|
}), v = C();
|
|
16
|
-
function
|
|
17
|
-
const a = f() ? y(
|
|
16
|
+
function m(n, o = void 0) {
|
|
17
|
+
const a = f() ? y(g, v) : v;
|
|
18
18
|
return n ? l(() => {
|
|
19
19
|
var t, s;
|
|
20
20
|
return (s = (t = a.value) == null ? void 0 : t[n]) != null ? s : o;
|
|
21
21
|
}) : a;
|
|
22
22
|
}
|
|
23
|
-
function
|
|
24
|
-
const a =
|
|
23
|
+
function A(n, o) {
|
|
24
|
+
const a = m(), t = S(n, l(() => {
|
|
25
25
|
var e;
|
|
26
|
-
return ((e = a.value) == null ? void 0 : e.namespace) ||
|
|
27
|
-
})), s =
|
|
26
|
+
return ((e = a.value) == null ? void 0 : e.namespace) || K;
|
|
27
|
+
})), s = G(l(() => {
|
|
28
28
|
var e;
|
|
29
29
|
return (e = a.value) == null ? void 0 : e.locale;
|
|
30
|
-
})), r =
|
|
30
|
+
})), r = N(l(() => {
|
|
31
31
|
var e;
|
|
32
|
-
return ((e = a.value) == null ? void 0 : e.zIndex) ||
|
|
32
|
+
return ((e = a.value) == null ? void 0 : e.zIndex) || F;
|
|
33
33
|
})), u = l(() => {
|
|
34
34
|
var e;
|
|
35
35
|
return i(o) || ((e = a.value) == null ? void 0 : e.size) || "";
|
|
36
36
|
});
|
|
37
|
-
return
|
|
37
|
+
return V(l(() => i(a) || {})), {
|
|
38
38
|
ns: t,
|
|
39
39
|
locale: s,
|
|
40
40
|
zIndex: r,
|
|
41
41
|
size: u
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
const
|
|
44
|
+
const V = (n, o, a = !1) => {
|
|
45
45
|
var t;
|
|
46
|
-
const s = !!f(), r = s ?
|
|
46
|
+
const s = !!f(), r = s ? m() : void 0, u = (t = o == null ? void 0 : o.provide) != null ? t : s ? x : void 0;
|
|
47
47
|
if (!u) {
|
|
48
48
|
p("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
51
51
|
const e = l(() => {
|
|
52
52
|
const c = i(n);
|
|
53
|
-
return r != null && r.value ?
|
|
53
|
+
return r != null && r.value ? Z(r.value, c) : c;
|
|
54
54
|
});
|
|
55
|
-
return u(
|
|
55
|
+
return u(g, e), u(z, l(() => e.value.locale)), u(_, l(() => e.value.namespace)), u($, l(() => e.value.zIndex)), u(k, {
|
|
56
56
|
size: l(() => e.value.size || "")
|
|
57
|
-
}), u(
|
|
57
|
+
}), u(E, l(() => ({
|
|
58
58
|
emptyValues: e.value.emptyValues,
|
|
59
59
|
valueOnClear: e.value.valueOnClear
|
|
60
60
|
}))), (a || !v.value) && (v.value = e.value), e;
|
|
61
|
-
},
|
|
61
|
+
}, Z = (n, o) => {
|
|
62
62
|
const a = [.../* @__PURE__ */ new Set([...d(n), ...d(o)])], t = {};
|
|
63
63
|
for (const s of a)
|
|
64
64
|
t[s] = o[s] !== void 0 ? o[s] : n[s];
|
|
65
65
|
return t;
|
|
66
|
-
},
|
|
66
|
+
}, J = ({ from: n, replacement: o, scope: a, version: t, ref: s, type: r = "API" }, u) => {
|
|
67
67
|
I(() => i(u), (e) => {
|
|
68
68
|
e && p(a, `[${r}] ${n} is about to be deprecated in version ${t}, please use ${o} instead.
|
|
69
69
|
For more detail, please visit: ${s}
|
|
@@ -73,9 +73,9 @@ For more detail, please visit: ${s}
|
|
|
73
73
|
});
|
|
74
74
|
};
|
|
75
75
|
export {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
m as a,
|
|
77
|
+
A as b,
|
|
78
|
+
j as g,
|
|
79
|
+
V as p,
|
|
80
80
|
J as u
|
|
81
81
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";const n=require("vue"),s=require("./base-
|
|
1
|
+
"use strict";const n=require("vue"),s=require("./base-b384d332.cjs"),c=require("./use-form-common-props-41091f5f.cjs"),m=Symbol();function C(o,u,t){return o==null?o:c.baseSet(o,u,t)}const f=o=>Object.keys(o),b=(o,u,t)=>({get value(){return s.get(o,u,t)},set value(l){C(o,u,l)}}),d=n.ref();function v(o,u=void 0){const t=n.getCurrentInstance()?n.inject(m,d):d;return o?n.computed(()=>{var l,r;return(r=(l=t.value)==null?void 0:l[o])!=null?r:u}):t}function y(o,u){const t=v(),l=s.useNamespace(o,n.computed(()=>{var e;return((e=t.value)==null?void 0:e.namespace)||s.defaultNamespace})),r=s.useLocale(n.computed(()=>{var e;return(e=t.value)==null?void 0:e.locale})),i=c.useZIndex(n.computed(()=>{var e;return((e=t.value)==null?void 0:e.zIndex)||c.defaultInitialZIndex})),a=n.computed(()=>{var e;return n.unref(u)||((e=t.value)==null?void 0:e.size)||""});return g(n.computed(()=>n.unref(t)||{})),{ns:l,locale:r,zIndex:i,size:a}}const g=(o,u,t=!1)=>{var l;const r=!!n.getCurrentInstance(),i=r?v():void 0,a=(l=u==null?void 0:u.provide)!=null?l:r?n.provide:void 0;if(!a){s.debugWarn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const e=n.computed(()=>{const p=n.unref(o);return i!=null&&i.value?I(i.value,p):p});return a(m,e),a(s.localeContextKey,n.computed(()=>e.value.locale)),a(s.namespaceContextKey,n.computed(()=>e.value.namespace)),a(c.zIndexContextKey,n.computed(()=>e.value.zIndex)),a(c.SIZE_INJECTION_KEY,{size:n.computed(()=>e.value.size||"")}),a(c.emptyValuesContextKey,n.computed(()=>({emptyValues:e.value.emptyValues,valueOnClear:e.value.valueOnClear}))),(t||!d.value)&&(d.value=e.value),e},I=(o,u)=>{const t=[...new Set([...f(o),...f(u)])],l={};for(const r of t)l[r]=u[r]!==void 0?u[r]:o[r];return l},x=({from:o,replacement:u,scope:t,version:l,ref:r,type:i="API"},a)=>{n.watch(()=>n.unref(a),e=>{e&&s.debugWarn(t,`[${i}] ${o} is about to be deprecated in version ${l}, please use ${u} instead.
|
|
2
2
|
For more detail, please visit: ${r}
|
|
3
3
|
`)},{immediate:!0})};exports.getProp=b;exports.provideGlobalConfig=g;exports.useDeprecated=x;exports.useGlobalComponentSettings=y;exports.useGlobalConfig=v;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("vue"),f=require("./base-
|
|
1
|
+
"use strict";const r=require("vue"),f=require("./base-b384d332.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$1(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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./base-
|
|
1
|
+
"use strict";const i=require("./base-b384d332.cjs"),t=e=>i.isClient?window.requestAnimationFrame(e):setTimeout(e,16),n=e=>i.isClient?window.cancelAnimationFrame(e):clearTimeout(e);exports.cAF=n;exports.rAF=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./base-
|
|
1
|
+
"use strict";const c=require("./base-b384d332.cjs"),t=(...o)=>e=>{o.forEach(s=>{c.isFunction(s)?s(e):s.value=e})};exports.composeRefs=t;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./base-
|
|
1
|
+
"use strict";const c=require("./base-b384d332.cjs");let r;const h=o=>{var l;if(!c.isClient)return 0;if(r!==void 0)return r;const t=document.createElement("div");t.className=`${o}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const e=t.offsetWidth;t.style.overflow="scroll";const s=document.createElement("div");s.style.width="100%",t.appendChild(s);const i=s.offsetWidth;return(l=t.parentNode)==null||l.removeChild(t),r=e-i,r};function u(o,l){if(!c.isClient)return;if(!l){o.scrollTop=0;return}const t=[];let e=l.offsetParent;for(;e!==null&&o!==e&&o.contains(e);)t.push(e),e=e.offsetParent;const s=l.offsetTop+t.reduce((d,p)=>d+p.offsetTop,0),i=s+l.offsetHeight,n=o.scrollTop,f=n+o.clientHeight;s<n?o.scrollTop=s:i>f&&(o.scrollTop=i-o.clientHeight)}exports.getScrollBarWidth=h;exports.scrollIntoView=u;
|