st-comp 0.0.186 → 0.0.187
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 +13 -12
- package/es/CustomFunction.cjs +1 -1
- package/es/CustomFunction.js +21 -18
- package/es/FactorWarning.cjs +1 -1
- package/es/FactorWarning.js +27 -24
- package/es/Kline.cjs +1 -1
- package/es/Kline.js +14 -11
- package/es/KlineBasic.cjs +1 -1
- package/es/KlineBasic.js +23 -20
- package/es/KlineConfig.cjs +1 -1
- package/es/KlineConfig.js +18 -15
- package/es/KlineNew.cjs +1 -1
- package/es/KlineNew.js +13 -10
- package/es/KlinePlus.cjs +1 -1
- package/es/KlinePlus.js +16 -13
- package/es/Pagination.cjs +1 -1
- package/es/Pagination.js +63 -60
- package/es/Table.cjs +1 -1
- package/es/Table.js +31 -29
- package/es/User.cjs +1 -1
- package/es/User.js +50 -47
- package/es/VarSelectDialog.cjs +3 -3
- package/es/VarSelectDialog.js +165 -478
- package/es/VarietyAutoComplete.cjs +1 -0
- package/es/VarietyAutoComplete.js +84 -0
- package/es/VarietySearch.cjs +6 -6
- package/es/VarietySearch.js +47 -44
- package/es/VirtualTable.cjs +1 -1
- package/es/VirtualTable.js +31 -29
- package/es/_initCloneObject-25b9751e.cjs +1 -0
- package/es/{_initCloneObject-00cee14a.js → _initCloneObject-e473908b.js} +24 -23
- package/es/config-provider-87edaad3.cjs +1 -0
- package/es/{config-provider-89aba243.js → config-provider-8863d600.js} +10 -9
- package/es/{debounce-0b77a317.cjs → debounce-62f5b6e8.cjs} +1 -1
- package/es/{debounce-5f2ec4be.js → debounce-ccdceb02.js} +18 -18
- package/es/{dropdown-babf55db.cjs → dropdown-41097c52.cjs} +1 -1
- package/es/{dropdown-0fd8bdbd.js → dropdown-9b1f2f66.js} +2 -2
- package/es/el-autocomplete-03bc5b82.cjs +1 -0
- package/es/el-autocomplete-79142038.js +328 -0
- package/es/{el-button-338a49b7.cjs → el-button-8dd00125.cjs} +1 -1
- package/es/{el-button-f44cb2cf.js → el-button-e9ca802c.js} +2 -2
- package/es/{el-dialog-c2451c86.js → el-dialog-98b77ce1.js} +7 -7
- package/es/{el-dialog-45250561.cjs → el-dialog-ae8da57b.cjs} +1 -1
- package/es/el-empty-1697ded8.cjs +1 -0
- package/es/{el-empty-87a86f30.js → el-empty-34086220.js} +11 -10
- package/es/{el-form-item-64c14a64.js → el-form-item-1117a48f.js} +52 -51
- package/es/el-form-item-f66f8499.cjs +12 -0
- package/es/{el-input-ef6edbf3.js → el-input-2714f71f.js} +3 -3
- package/es/{el-input-c663697a.cjs → el-input-fc445025.cjs} +1 -1
- package/es/{el-input-number-5fda0890.cjs → el-input-number-25e0cdc0.cjs} +1 -1
- package/es/{el-input-number-cda5c4e1.js → el-input-number-657ec056.js} +4 -4
- package/es/{el-loading-8c3379d5.cjs → el-loading-4028e070.cjs} +1 -1
- package/es/{el-loading-1be77e7c.js → el-loading-a980dadc.js} +1 -1
- package/es/{el-menu-item-cf9e0e36.cjs → el-menu-item-940c40eb.cjs} +1 -1
- package/es/{el-menu-item-84a4b594.js → el-menu-item-c2ccd259.js} +4 -4
- package/es/{el-message-c500161d.cjs → el-message-0a3a0f2a.cjs} +1 -1
- package/es/{el-message-ba131b90.js → el-message-25e15a78.js} +4 -4
- package/es/{el-message-box-38779ab9.js → el-message-box-08498df3.js} +9 -9
- package/es/{el-message-box-743c461a.cjs → el-message-box-194cfd71.cjs} +1 -1
- package/es/{el-overlay-a6f43919.js → el-overlay-55b8b63b.js} +17 -17
- package/es/{el-overlay-39e2e96f.cjs → el-overlay-f42f765e.cjs} +1 -1
- package/es/{el-popconfirm-08b4221f.cjs → el-popconfirm-204d8607.cjs} +1 -1
- package/es/{el-popconfirm-16597a41.js → el-popconfirm-a1637c22.js} +4 -4
- package/es/{el-popper-05a8f271.js → el-popper-26aebdb6.js} +54 -54
- package/es/{el-popper-dca2de0d.cjs → el-popper-f194e471.cjs} +1 -1
- package/es/el-scrollbar-1c9093bf.cjs +1 -0
- package/es/el-scrollbar-e74f90d9.js +395 -0
- package/es/{el-segmented-c2952e4c.cjs → el-segmented-51f6d786.cjs} +1 -1
- package/es/{el-segmented-d68dfe31.js → el-segmented-85c9467d.js} +3 -3
- package/es/{el-select-7846f331.js → el-select-7b52dfc9.js} +106 -103
- package/es/el-select-f416ce28.cjs +1 -0
- package/es/el-table-column-8e24a62f.cjs +14 -0
- package/es/{el-table-column-cd63e722.js → el-table-column-f8a4f27b.js} +144 -142
- package/es/el-tag-65658264.cjs +1 -0
- package/es/{el-tag-914c96a9.js → el-tag-7de14b18.js} +23 -22
- package/es/index-02f7b722.cjs +1 -0
- package/es/{index-b132c1b1.js → index-30e29356.js} +1 -1
- package/es/index-482f09b5.js +204 -0
- package/es/{index-1c409d46.cjs → index-4a8be5b9.cjs} +1 -1
- package/es/{index-e6deec5d.cjs → index-4cd86c5e.cjs} +1 -1
- package/es/{index-20749652.js → index-520cfefa.js} +2 -2
- package/es/index-62df8bda.cjs +1 -0
- package/es/index-89502796.js +314 -0
- package/es/index-9780a537.cjs +1 -0
- package/es/index-b9cbb01d.js +60 -0
- package/es/index-bb833443.cjs +1 -0
- package/es/index-fee2efa8.js +375 -0
- package/es/style.css +1 -1
- package/es/use-global-config-51cce73d.js +72 -0
- package/es/use-global-config-b6bc4c2f.cjs +1 -0
- package/es/{validator-f66b0f34.cjs → validator-ed9fb862.cjs} +1 -1
- package/es/{validator-90d3e848.js → validator-fe13c731.js} +1 -1
- package/es/vnode-b906ae6d.cjs +1 -0
- package/es/vnode-c51c8aa3.js +14 -0
- package/es/{zh-cn-de7ae601.cjs → zh-cn-3771d788.cjs} +1 -1
- package/es/{zh-cn-530f1ed1.js → zh-cn-4fb50443.js} +1 -1
- package/lib/bundle.js +1 -1
- package/lib/bundle.umd.cjs +130 -130
- package/lib/{index-26fab3e5.js → index-73ca8189.js} +4620 -4552
- package/lib/{python-c34eeb40.js → python-a61cab9a.js} +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/packages/VarietyAutoComplete/index.ts +8 -0
- package/packages/VarietyAutoComplete/index.vue +89 -0
- package/packages/index.ts +2 -0
- package/src/pages/VarietyAutoComplete/index.vue +19 -0
- package/src/router/routes.ts +5 -0
- package/es/_initCloneObject-4dd3c9a4.cjs +0 -1
- package/es/config-provider-d82ea78c.cjs +0 -1
- package/es/el-empty-bb2b0235.cjs +0 -1
- package/es/el-form-item-b5f6081b.cjs +0 -12
- package/es/el-scrollbar-31d72626.js +0 -763
- package/es/el-scrollbar-802d874d.cjs +0 -1
- package/es/el-select-8337856d.cjs +0 -1
- package/es/el-table-column-34f080b5.cjs +0 -14
- package/es/el-tag-a2e99294.cjs +0 -1
- package/es/index-34592e82.js +0 -513
- package/es/index-3a74eae4.cjs +0 -1
- package/es/use-global-config-53be2b7d.js +0 -71
- package/es/use-global-config-f3664595.cjs +0 -1
- package/es/vnode-6d51e502.cjs +0 -1
- package/es/vnode-8ddc4f78.js +0 -70
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
import { l as ee, e as te, a as Q, b as ne, i as z, j as re, t as se, u as oe } from "./index-89502796.js";
|
|
2
|
+
import { M as ie, O as B, P as H, H as P, C as ae, Q as le, s as Z, R as U, S as ue, p as ce, I as de, e as fe } from "./base-62a70f61.js";
|
|
3
|
+
import { watch as g, ref as _, getCurrentInstance as h, inject as m, computed as O, unref as w, onMounted as pe, toRef as ve, onUnmounted as me } from "vue";
|
|
4
|
+
import { l as _e, k as ye, t as Ie, c as G, i as E, z as X, A as q, n as Y } from "./index-35129268.js";
|
|
5
|
+
var Oe = function() {
|
|
6
|
+
try {
|
|
7
|
+
var e = ee(Object, "defineProperty");
|
|
8
|
+
return e({}, "", {}), e;
|
|
9
|
+
} catch {
|
|
10
|
+
}
|
|
11
|
+
}();
|
|
12
|
+
const x = Oe;
|
|
13
|
+
var be = 9007199254740991, he = /^(?:0|[1-9]\d*)$/;
|
|
14
|
+
function ge(e, t) {
|
|
15
|
+
var n = typeof e;
|
|
16
|
+
return t = t ?? be, !!t && (n == "number" || n != "symbol" && he.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
17
|
+
}
|
|
18
|
+
function we(e, t, n) {
|
|
19
|
+
t == "__proto__" && x ? x(e, t, {
|
|
20
|
+
configurable: !0,
|
|
21
|
+
enumerable: !0,
|
|
22
|
+
value: n,
|
|
23
|
+
writable: !0
|
|
24
|
+
}) : e[t] = n;
|
|
25
|
+
}
|
|
26
|
+
var Ee = Object.prototype, Pe = Ee.hasOwnProperty;
|
|
27
|
+
function Se(e, t, n) {
|
|
28
|
+
var r = e[t];
|
|
29
|
+
(!(Pe.call(e, t) && te(r, n)) || n === void 0 && !(t in e)) && we(e, t, n);
|
|
30
|
+
}
|
|
31
|
+
var ze = 9007199254740991;
|
|
32
|
+
function Ve(e) {
|
|
33
|
+
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= ze;
|
|
34
|
+
}
|
|
35
|
+
var xe = "[object Arguments]";
|
|
36
|
+
function A(e) {
|
|
37
|
+
return Q(e) && ne(e) == xe;
|
|
38
|
+
}
|
|
39
|
+
var D = Object.prototype, Ae = D.hasOwnProperty, Ce = D.propertyIsEnumerable, Te = A(function() {
|
|
40
|
+
return arguments;
|
|
41
|
+
}()) ? A : function(e) {
|
|
42
|
+
return Q(e) && Ae.call(e, "callee") && !Ce.call(e, "callee");
|
|
43
|
+
};
|
|
44
|
+
const ke = Te;
|
|
45
|
+
function et(e, t) {
|
|
46
|
+
for (var n = -1, r = t.length, o = e.length; ++n < r; )
|
|
47
|
+
e[o + n] = t[n];
|
|
48
|
+
return e;
|
|
49
|
+
}
|
|
50
|
+
function tt(e, t, n, r) {
|
|
51
|
+
if (!z(e))
|
|
52
|
+
return e;
|
|
53
|
+
t = re(t, e);
|
|
54
|
+
for (var o = -1, c = t.length, s = c - 1, i = e; i != null && ++o < c; ) {
|
|
55
|
+
var a = se(t[o]), l = n;
|
|
56
|
+
if (a === "__proto__" || a === "constructor" || a === "prototype")
|
|
57
|
+
return e;
|
|
58
|
+
if (o != s) {
|
|
59
|
+
var d = i[a];
|
|
60
|
+
l = r ? r(d, a, i) : void 0, l === void 0 && (l = z(d) ? d : ge(t[o + 1]) ? [] : {});
|
|
61
|
+
}
|
|
62
|
+
Se(i, a, l), i = i[a];
|
|
63
|
+
}
|
|
64
|
+
return e;
|
|
65
|
+
}
|
|
66
|
+
function y(e) {
|
|
67
|
+
var t;
|
|
68
|
+
const n = H(e);
|
|
69
|
+
return (t = n == null ? void 0 : n.$el) != null ? t : n;
|
|
70
|
+
}
|
|
71
|
+
const b = Z ? window : void 0;
|
|
72
|
+
function I(...e) {
|
|
73
|
+
let t, n, r, o;
|
|
74
|
+
if (ie(e[0]) || Array.isArray(e[0]) ? ([n, r, o] = e, t = b) : [t, n, r, o] = e, !t)
|
|
75
|
+
return B;
|
|
76
|
+
Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
|
|
77
|
+
const c = [], s = () => {
|
|
78
|
+
c.forEach((d) => d()), c.length = 0;
|
|
79
|
+
}, i = (d, p, u, f) => (d.addEventListener(p, u, f), () => d.removeEventListener(p, u, f)), a = g(() => [y(t), H(o)], ([d, p]) => {
|
|
80
|
+
s(), d && c.push(...n.flatMap((u) => r.map((f) => i(d, u, f, p))));
|
|
81
|
+
}, { immediate: !0, flush: "post" }), l = () => {
|
|
82
|
+
a(), s();
|
|
83
|
+
};
|
|
84
|
+
return P(l), l;
|
|
85
|
+
}
|
|
86
|
+
let C = !1;
|
|
87
|
+
function nt(e, t, n = {}) {
|
|
88
|
+
const { window: r = b, ignore: o = [], capture: c = !0, detectIframe: s = !1 } = n;
|
|
89
|
+
if (!r)
|
|
90
|
+
return;
|
|
91
|
+
ae && !C && (C = !0, Array.from(r.document.body.children).forEach((u) => u.addEventListener("click", B)));
|
|
92
|
+
let i = !0;
|
|
93
|
+
const a = (u) => o.some((f) => {
|
|
94
|
+
if (typeof f == "string")
|
|
95
|
+
return Array.from(r.document.querySelectorAll(f)).some((v) => v === u.target || u.composedPath().includes(v));
|
|
96
|
+
{
|
|
97
|
+
const v = y(f);
|
|
98
|
+
return v && (u.target === v || u.composedPath().includes(v));
|
|
99
|
+
}
|
|
100
|
+
}), d = [
|
|
101
|
+
I(r, "click", (u) => {
|
|
102
|
+
const f = y(e);
|
|
103
|
+
if (!(!f || f === u.target || u.composedPath().includes(f))) {
|
|
104
|
+
if (u.detail === 0 && (i = !a(u)), !i) {
|
|
105
|
+
i = !0;
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
t(u);
|
|
109
|
+
}
|
|
110
|
+
}, { passive: !0, capture: c }),
|
|
111
|
+
I(r, "pointerdown", (u) => {
|
|
112
|
+
const f = y(e);
|
|
113
|
+
f && (i = !u.composedPath().includes(f) && !a(u));
|
|
114
|
+
}, { passive: !0 }),
|
|
115
|
+
s && I(r, "blur", (u) => {
|
|
116
|
+
var f;
|
|
117
|
+
const v = y(e);
|
|
118
|
+
((f = r.document.activeElement) == null ? void 0 : f.tagName) === "IFRAME" && !(v != null && v.contains(r.document.activeElement)) && t(u);
|
|
119
|
+
})
|
|
120
|
+
].filter(Boolean);
|
|
121
|
+
return () => d.forEach((u) => u());
|
|
122
|
+
}
|
|
123
|
+
function rt(e = {}) {
|
|
124
|
+
var t;
|
|
125
|
+
const { window: n = b } = e, r = (t = e.document) != null ? t : n == null ? void 0 : n.document, o = le(() => null, () => r == null ? void 0 : r.activeElement);
|
|
126
|
+
return n && (I(n, "blur", (c) => {
|
|
127
|
+
c.relatedTarget === null && o.trigger();
|
|
128
|
+
}, !0), I(n, "focus", o.trigger, !0)), o;
|
|
129
|
+
}
|
|
130
|
+
function J(e, t = !1) {
|
|
131
|
+
const n = _(), r = () => n.value = !!e();
|
|
132
|
+
return r(), U(r, t), n;
|
|
133
|
+
}
|
|
134
|
+
const T = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, F = "__vueuse_ssr_handlers__";
|
|
135
|
+
T[F] = T[F] || {};
|
|
136
|
+
var $ = Object.getOwnPropertySymbols, Fe = Object.prototype.hasOwnProperty, $e = Object.prototype.propertyIsEnumerable, Ne = (e, t) => {
|
|
137
|
+
var n = {};
|
|
138
|
+
for (var r in e)
|
|
139
|
+
Fe.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
140
|
+
if (e != null && $)
|
|
141
|
+
for (var r of $(e))
|
|
142
|
+
t.indexOf(r) < 0 && $e.call(e, r) && (n[r] = e[r]);
|
|
143
|
+
return n;
|
|
144
|
+
};
|
|
145
|
+
function st(e, t, n = {}) {
|
|
146
|
+
const r = n, { window: o = b } = r, c = Ne(r, ["window"]);
|
|
147
|
+
let s;
|
|
148
|
+
const i = J(() => o && "ResizeObserver" in o), a = () => {
|
|
149
|
+
s && (s.disconnect(), s = void 0);
|
|
150
|
+
}, l = g(() => y(e), (p) => {
|
|
151
|
+
a(), i.value && o && p && (s = new ResizeObserver(t), s.observe(p, c));
|
|
152
|
+
}, { immediate: !0, flush: "post" }), d = () => {
|
|
153
|
+
a(), l();
|
|
154
|
+
};
|
|
155
|
+
return P(d), {
|
|
156
|
+
isSupported: i,
|
|
157
|
+
stop: d
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
var N = Object.getOwnPropertySymbols, je = Object.prototype.hasOwnProperty, We = Object.prototype.propertyIsEnumerable, Le = (e, t) => {
|
|
161
|
+
var n = {};
|
|
162
|
+
for (var r in e)
|
|
163
|
+
je.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
164
|
+
if (e != null && N)
|
|
165
|
+
for (var r of N(e))
|
|
166
|
+
t.indexOf(r) < 0 && We.call(e, r) && (n[r] = e[r]);
|
|
167
|
+
return n;
|
|
168
|
+
};
|
|
169
|
+
function ot(e, t, n = {}) {
|
|
170
|
+
const r = n, { window: o = b } = r, c = Le(r, ["window"]);
|
|
171
|
+
let s;
|
|
172
|
+
const i = J(() => o && "MutationObserver" in o), a = () => {
|
|
173
|
+
s && (s.disconnect(), s = void 0);
|
|
174
|
+
}, l = g(() => y(e), (p) => {
|
|
175
|
+
a(), i.value && o && p && (s = new MutationObserver(t), s.observe(p, c));
|
|
176
|
+
}, { immediate: !0 }), d = () => {
|
|
177
|
+
a(), l();
|
|
178
|
+
};
|
|
179
|
+
return P(d), {
|
|
180
|
+
isSupported: i,
|
|
181
|
+
stop: d
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
var j;
|
|
185
|
+
(function(e) {
|
|
186
|
+
e.UP = "UP", e.RIGHT = "RIGHT", e.DOWN = "DOWN", e.LEFT = "LEFT", e.NONE = "NONE";
|
|
187
|
+
})(j || (j = {}));
|
|
188
|
+
var Re = Object.defineProperty, W = Object.getOwnPropertySymbols, Ke = Object.prototype.hasOwnProperty, Me = Object.prototype.propertyIsEnumerable, L = (e, t, n) => t in e ? Re(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Qe = (e, t) => {
|
|
189
|
+
for (var n in t || (t = {}))
|
|
190
|
+
Ke.call(t, n) && L(e, n, t[n]);
|
|
191
|
+
if (W)
|
|
192
|
+
for (var n of W(t))
|
|
193
|
+
Me.call(t, n) && L(e, n, t[n]);
|
|
194
|
+
return e;
|
|
195
|
+
};
|
|
196
|
+
const Be = {
|
|
197
|
+
easeInSine: [0.12, 0, 0.39, 0],
|
|
198
|
+
easeOutSine: [0.61, 1, 0.88, 1],
|
|
199
|
+
easeInOutSine: [0.37, 0, 0.63, 1],
|
|
200
|
+
easeInQuad: [0.11, 0, 0.5, 0],
|
|
201
|
+
easeOutQuad: [0.5, 1, 0.89, 1],
|
|
202
|
+
easeInOutQuad: [0.45, 0, 0.55, 1],
|
|
203
|
+
easeInCubic: [0.32, 0, 0.67, 0],
|
|
204
|
+
easeOutCubic: [0.33, 1, 0.68, 1],
|
|
205
|
+
easeInOutCubic: [0.65, 0, 0.35, 1],
|
|
206
|
+
easeInQuart: [0.5, 0, 0.75, 0],
|
|
207
|
+
easeOutQuart: [0.25, 1, 0.5, 1],
|
|
208
|
+
easeInOutQuart: [0.76, 0, 0.24, 1],
|
|
209
|
+
easeInQuint: [0.64, 0, 0.78, 0],
|
|
210
|
+
easeOutQuint: [0.22, 1, 0.36, 1],
|
|
211
|
+
easeInOutQuint: [0.83, 0, 0.17, 1],
|
|
212
|
+
easeInExpo: [0.7, 0, 0.84, 0],
|
|
213
|
+
easeOutExpo: [0.16, 1, 0.3, 1],
|
|
214
|
+
easeInOutExpo: [0.87, 0, 0.13, 1],
|
|
215
|
+
easeInCirc: [0.55, 0, 1, 0.45],
|
|
216
|
+
easeOutCirc: [0, 0.55, 0.45, 1],
|
|
217
|
+
easeInOutCirc: [0.85, 0, 0.15, 1],
|
|
218
|
+
easeInBack: [0.36, 0, 0.66, -0.56],
|
|
219
|
+
easeOutBack: [0.34, 1.56, 0.64, 1],
|
|
220
|
+
easeInOutBack: [0.68, -0.6, 0.32, 1.6]
|
|
221
|
+
};
|
|
222
|
+
Qe({
|
|
223
|
+
linear: ue
|
|
224
|
+
}, Be);
|
|
225
|
+
function it(e = {}) {
|
|
226
|
+
const {
|
|
227
|
+
window: t = b,
|
|
228
|
+
initialWidth: n = 1 / 0,
|
|
229
|
+
initialHeight: r = 1 / 0,
|
|
230
|
+
listenOrientation: o = !0,
|
|
231
|
+
includeScrollbar: c = !0
|
|
232
|
+
} = e, s = _(n), i = _(r), a = () => {
|
|
233
|
+
t && (c ? (s.value = t.innerWidth, i.value = t.innerHeight) : (s.value = t.document.documentElement.clientWidth, i.value = t.document.documentElement.clientHeight));
|
|
234
|
+
};
|
|
235
|
+
return a(), U(a), I("resize", a, { passive: !0 }), o && I("orientationchange", a, { passive: !0 }), { width: s, height: i };
|
|
236
|
+
}
|
|
237
|
+
const R = {
|
|
238
|
+
current: 0
|
|
239
|
+
}, K = _(0), He = 2e3, M = Symbol("elZIndexContextKey"), Ze = Symbol("zIndexContextKey"), at = (e) => {
|
|
240
|
+
const t = h() ? m(M, R) : R, n = e || (h() ? m(Ze, void 0) : void 0), r = O(() => {
|
|
241
|
+
const s = w(n);
|
|
242
|
+
return ce(s) ? s : He;
|
|
243
|
+
}), o = O(() => r.value + K.value), c = () => (t.current++, K.value = t.current, o.value);
|
|
244
|
+
return !Z && m(M), {
|
|
245
|
+
initialZIndex: r,
|
|
246
|
+
currentZIndex: o,
|
|
247
|
+
nextZIndex: c
|
|
248
|
+
};
|
|
249
|
+
}, Ue = ["", "default", "small", "large"], lt = de({
|
|
250
|
+
type: String,
|
|
251
|
+
values: Ue,
|
|
252
|
+
required: !1
|
|
253
|
+
}), Ge = Symbol("size"), Xe = () => {
|
|
254
|
+
const e = m(Ge, {});
|
|
255
|
+
return O(() => w(e.size) || "");
|
|
256
|
+
}, ut = fe([
|
|
257
|
+
String,
|
|
258
|
+
Object,
|
|
259
|
+
Function
|
|
260
|
+
]), ct = {
|
|
261
|
+
Close: G
|
|
262
|
+
}, dt = {
|
|
263
|
+
Close: G,
|
|
264
|
+
SuccessFilled: X,
|
|
265
|
+
InfoFilled: E,
|
|
266
|
+
WarningFilled: q,
|
|
267
|
+
CircleCloseFilled: Y
|
|
268
|
+
}, ft = {
|
|
269
|
+
primary: E,
|
|
270
|
+
success: X,
|
|
271
|
+
warning: q,
|
|
272
|
+
error: Y,
|
|
273
|
+
info: E
|
|
274
|
+
}, pt = {
|
|
275
|
+
validating: _e,
|
|
276
|
+
success: ye,
|
|
277
|
+
error: Ie
|
|
278
|
+
}, S = Symbol("formContextKey"), V = Symbol("formItemContextKey"), vt = () => {
|
|
279
|
+
const e = m(S, void 0), t = m(V, void 0);
|
|
280
|
+
return {
|
|
281
|
+
form: e,
|
|
282
|
+
formItem: t
|
|
283
|
+
};
|
|
284
|
+
}, mt = (e, {
|
|
285
|
+
formItemContext: t,
|
|
286
|
+
disableIdGeneration: n,
|
|
287
|
+
disableIdManagement: r
|
|
288
|
+
}) => {
|
|
289
|
+
n || (n = _(!1)), r || (r = _(!1));
|
|
290
|
+
const o = h(), c = () => {
|
|
291
|
+
let l = o == null ? void 0 : o.parent;
|
|
292
|
+
for (; l; ) {
|
|
293
|
+
if (l.type.name === "ElFormItem")
|
|
294
|
+
return !1;
|
|
295
|
+
if (l.type.name === "ElLabelWrap")
|
|
296
|
+
return !0;
|
|
297
|
+
l = l.parent;
|
|
298
|
+
}
|
|
299
|
+
return !1;
|
|
300
|
+
}, s = _();
|
|
301
|
+
let i;
|
|
302
|
+
const a = O(() => {
|
|
303
|
+
var l;
|
|
304
|
+
return !!(!(e.label || e.ariaLabel) && t && t.inputIds && ((l = t.inputIds) == null ? void 0 : l.length) <= 1);
|
|
305
|
+
});
|
|
306
|
+
return pe(() => {
|
|
307
|
+
i = g([ve(e, "id"), n], ([l, d]) => {
|
|
308
|
+
const p = l ?? (d ? void 0 : oe().value);
|
|
309
|
+
p !== s.value && (t != null && t.removeInputId && !c() && (s.value && t.removeInputId(s.value), !(r != null && r.value) && !d && p && t.addInputId(p)), s.value = p);
|
|
310
|
+
}, { immediate: !0 });
|
|
311
|
+
}), me(() => {
|
|
312
|
+
i && i(), t != null && t.removeInputId && s.value && t.removeInputId(s.value);
|
|
313
|
+
}), {
|
|
314
|
+
isLabeledByFormItem: a,
|
|
315
|
+
inputId: s
|
|
316
|
+
};
|
|
317
|
+
}, k = (e) => {
|
|
318
|
+
const t = h();
|
|
319
|
+
return O(() => {
|
|
320
|
+
var n, r;
|
|
321
|
+
return (r = (n = t == null ? void 0 : t.proxy) == null ? void 0 : n.$props) == null ? void 0 : r[e];
|
|
322
|
+
});
|
|
323
|
+
}, _t = (e, t = {}) => {
|
|
324
|
+
const n = _(void 0), r = t.prop ? n : k("size"), o = t.global ? n : Xe(), c = t.form ? { size: void 0 } : m(S, void 0), s = t.formItem ? { size: void 0 } : m(V, void 0);
|
|
325
|
+
return O(() => r.value || w(e) || (s == null ? void 0 : s.size) || (c == null ? void 0 : c.size) || o.value || "");
|
|
326
|
+
}, yt = (e) => {
|
|
327
|
+
const t = k("disabled"), n = m(S, void 0);
|
|
328
|
+
return O(() => t.value || w(e) || (n == null ? void 0 : n.disabled) || !1);
|
|
329
|
+
}, It = 4, Ot = {
|
|
330
|
+
vertical: {
|
|
331
|
+
offset: "offsetHeight",
|
|
332
|
+
scroll: "scrollTop",
|
|
333
|
+
scrollSize: "scrollHeight",
|
|
334
|
+
size: "height",
|
|
335
|
+
key: "vertical",
|
|
336
|
+
axis: "Y",
|
|
337
|
+
client: "clientY",
|
|
338
|
+
direction: "top"
|
|
339
|
+
},
|
|
340
|
+
horizontal: {
|
|
341
|
+
offset: "offsetWidth",
|
|
342
|
+
scroll: "scrollLeft",
|
|
343
|
+
scrollSize: "scrollWidth",
|
|
344
|
+
size: "width",
|
|
345
|
+
key: "horizontal",
|
|
346
|
+
axis: "X",
|
|
347
|
+
client: "clientX",
|
|
348
|
+
direction: "left"
|
|
349
|
+
}
|
|
350
|
+
}, bt = ({
|
|
351
|
+
move: e,
|
|
352
|
+
size: t,
|
|
353
|
+
bar: n
|
|
354
|
+
}) => ({
|
|
355
|
+
[n.size]: t,
|
|
356
|
+
transform: `translate${n.axis}(${e}%)`
|
|
357
|
+
});
|
|
358
|
+
export {
|
|
359
|
+
tt as A,
|
|
360
|
+
Ot as B,
|
|
361
|
+
ct as C,
|
|
362
|
+
bt as D,
|
|
363
|
+
Ze as E,
|
|
364
|
+
He as F,
|
|
365
|
+
It as G,
|
|
366
|
+
Ge as S,
|
|
367
|
+
dt as T,
|
|
368
|
+
pt as V,
|
|
369
|
+
y as a,
|
|
370
|
+
it as b,
|
|
371
|
+
I as c,
|
|
372
|
+
vt as d,
|
|
373
|
+
_t as e,
|
|
374
|
+
mt as f,
|
|
375
|
+
yt as g,
|
|
376
|
+
lt as h,
|
|
377
|
+
ut as i,
|
|
378
|
+
rt as j,
|
|
379
|
+
Ue as k,
|
|
380
|
+
Xe as l,
|
|
381
|
+
ft as m,
|
|
382
|
+
ge as n,
|
|
383
|
+
we as o,
|
|
384
|
+
ke as p,
|
|
385
|
+
et as q,
|
|
386
|
+
Se as r,
|
|
387
|
+
S as s,
|
|
388
|
+
V as t,
|
|
389
|
+
st as u,
|
|
390
|
+
nt as v,
|
|
391
|
+
ot as w,
|
|
392
|
+
at as x,
|
|
393
|
+
x as y,
|
|
394
|
+
Ve as z
|
|
395
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue"),c=require("./el-scrollbar-
|
|
1
|
+
"use strict";const e=require("vue"),c=require("./el-scrollbar-1c9093bf.cjs"),l=require("./base-ef747d02.cjs"),d=require("./el-popper-f194e471.cjs"),q=require("./index-9780a537.cjs"),y={label:"label",value:"value",disabled:"disabled"},D=l.buildProps({direction:{type:l.definePropType(String),default:"horizontal"},options:{type:l.definePropType(Array),default:()=>[]},modelValue:{type:[String,Number,Boolean],default:void 0},props:{type:l.definePropType(Object),default:()=>y},block:Boolean,size:c.useSizeProp,disabled:Boolean,validateEvent:{type:Boolean,default:!0},id:String,name:String,...d.useAriaProps(["ariaLabel"])}),F={[d.UPDATE_MODEL_EVENT]:o=>l.isString(o)||l.isNumber(o)||l.isBoolean(o),[d.CHANGE_EVENT]:o=>l.isString(o)||l.isNumber(o)||l.isBoolean(o)},$=e.defineComponent({name:"ElSegmented"}),x=e.defineComponent({...$,props:D,emits:F,setup(o,{emit:v}){const n=o,a=l.useNamespace("segmented"),S=q.useId(),I=c.useFormSize(),V=c.useFormDisabled(),{formItem:u}=c.useFormItem(),{inputId:C,isLabeledByFormItem:h}=c.useFormItemInputId(n,{formItemContext:u}),m=e.ref(null),_=c.useActiveElement(),s=e.reactive({isInit:!1,width:0,height:0,translateX:0,translateY:0,focusVisible:!1}),N=t=>{const r=f(t);v(d.UPDATE_MODEL_EVENT,r),v(d.CHANGE_EVENT,r)},p=e.computed(()=>({...y,...n.props})),k=t=>t,f=t=>l.isObject(t)?t[p.value.value]:t,z=t=>l.isObject(t)?t[p.value.label]:t,b=t=>!!(V.value||l.isObject(t)&&t[p.value.disabled]),E=t=>n.modelValue===f(t),B=t=>n.options.find(r=>f(r)===t),P=t=>[a.e("item"),a.is("selected",E(t)),a.is("disabled",b(t))],g=()=>{if(!m.value)return;const t=m.value.querySelector(".is-selected"),r=m.value.querySelector(".is-selected input");if(!t||!r){s.width=0,s.height=0,s.translateX=0,s.translateY=0,s.focusVisible=!1;return}s.isInit=!0,n.direction==="vertical"?(s.height=t.offsetHeight,s.translateY=t.offsetTop):(s.width=t.offsetWidth,s.translateX=t.offsetLeft);try{s.focusVisible=r.matches(":focus-visible")}catch{}},T=e.computed(()=>[a.b(),a.m(I.value),a.is("block",n.block)]),w=e.computed(()=>({width:n.direction==="vertical"?"100%":`${s.width}px`,height:n.direction==="vertical"?`${s.height}px`:"100%",transform:n.direction==="vertical"?`translateY(${s.translateY}px)`:`translateX(${s.translateX}px)`,display:s.isInit?"block":"none"})),A=e.computed(()=>[a.e("item-selected"),a.is("disabled",b(B(n.modelValue))),a.is("focus-visible",s.focusVisible)]),L=e.computed(()=>n.name||S.value);return c.useResizeObserver(m,g),e.watch(_,g),e.watch(()=>n.modelValue,()=>{var t;g(),n.validateEvent&&((t=u==null?void 0:u.validate)==null||t.call(u,"change").catch(r=>d.debugWarn()))},{flush:"post"}),(t,r)=>t.options.length?(e.openBlock(),e.createElementBlock("div",{key:0,id:e.unref(C),ref_key:"segmentedRef",ref:m,class:e.normalizeClass(e.unref(T)),role:"radiogroup","aria-label":e.unref(h)?void 0:t.ariaLabel||"segmented","aria-labelledby":e.unref(h)?e.unref(u).labelId:void 0},[e.createElementVNode("div",{class:e.normalizeClass([e.unref(a).e("group"),e.unref(a).m(n.direction)])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(w)),class:e.normalizeClass(e.unref(A))},null,6),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.options,(i,O)=>(e.openBlock(),e.createElementBlock("label",{key:O,class:e.normalizeClass(P(i))},[e.createElementVNode("input",{class:e.normalizeClass(e.unref(a).e("item-input")),type:"radio",name:e.unref(L),disabled:b(i),checked:E(i),onChange:j=>N(i)},null,42,["name","disabled","checked","onChange"]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(a).e("item-label"))},[e.renderSlot(t.$slots,"default",{item:k(i)},()=>[e.createTextVNode(e.toDisplayString(z(i)),1)])],2)],2))),128))],2)],10,["id","aria-label","aria-labelledby"])):e.createCommentVNode("v-if",!0)}});var X=l._export_sfc(x,[["__file","segmented.vue"]]);const Y=l.withInstall(X);exports.ElSegmented=Y;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as w, ref as W, reactive as G, computed as u, watch as V, openBlock as v, createElementBlock as h, unref as l, normalizeClass as r, createElementVNode as m, normalizeStyle as M, Fragment as J, renderList as K, renderSlot as Q, createTextVNode as Z, toDisplayString as ee, createCommentVNode as te } from "vue";
|
|
2
|
-
import { h as se, e as ae, g as le, d as ne, f as oe, j as ie, u as re } from "./el-scrollbar-
|
|
2
|
+
import { h as se, e as ae, g as le, d as ne, f as oe, j as ie, u as re } from "./el-scrollbar-e74f90d9.js";
|
|
3
3
|
import { b as de, e as y, c as C, p as k, o as N, u as ce, _ as ue, f as S, w as me } from "./base-62a70f61.js";
|
|
4
|
-
import { u as pe, U as z, C as B, d as fe } from "./el-popper-
|
|
5
|
-
import {
|
|
4
|
+
import { u as pe, U as z, C as B, d as fe } from "./el-popper-26aebdb6.js";
|
|
5
|
+
import { u as be } from "./index-89502796.js";
|
|
6
6
|
const P = {
|
|
7
7
|
label: "label",
|
|
8
8
|
value: "value",
|